From 18be5d96c098cbff2f47a10028c3606263049873 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Fri, 7 Apr 2023 17:26:21 +0800 Subject: [PATCH] Auto Submit --- color.less | 24 ++-- index.html | 2 +- ...nt__Profile__Edit__index.a0cda081.async.js | 12 -- ...nt__Profile__Edit__index.d3552d6c.async.js | 12 ++ p__Account__Profile__index.0d67ede8.async.js | 12 ++ p__Account__Profile__index.ae3c99e9.async.js | 12 -- ...CourseGroup__List__index.44c06228.async.js | 12 +- ...pHomework__Detail__index.68a00ccf.async.js | 122 +++++++++--------- ...tatistics__Detail__index.1fa18561.async.js | 2 +- ...cs__StudentDetail__index.9907a447.async.js | 2 +- ...ed__Assembly__TeamDateil.683b464c.async.js | 2 +- ...nnovation__PublicDataSet.0d22ae73.async.js | 10 +- umi.458f39be.js => umi.ea13d0f9.js | 2 +- 13 files changed, 113 insertions(+), 113 deletions(-) delete mode 100644 p__Account__Profile__Edit__index.a0cda081.async.js create mode 100644 p__Account__Profile__Edit__index.d3552d6c.async.js create mode 100644 p__Account__Profile__index.0d67ede8.async.js delete mode 100644 p__Account__Profile__index.ae3c99e9.async.js rename umi.458f39be.js => umi.ea13d0f9.js (99%) diff --git a/color.less b/color.less index 7a963be18a..3fe8095099 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(28, 180, 170, 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(203, 212, 120, 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(28, 180, 170, 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(203, 212, 120, 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(28, 180, 170, 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(203, 212, 120, 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(28, 180, 170, 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(203, 212, 120, 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(28, 180, 170, 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(203, 212, 120, 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(112, 50, 210, 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(103, 93, 133, 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(112, 50, 210, 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(103, 93, 133, 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(112, 50, 210, 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(103, 93, 133, 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(112, 50, 210, 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(103, 93, 133, 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(112, 50, 210, 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(112, 50, 210, 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(103, 93, 133, 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(103, 93, 133, 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;} @@ -1479,7 +1479,7 @@ tr.ant-table-expanded-row:hover > td {background: #fbfbfb;} .ant-tag-green-inverse {color: #fff;background: #52c41a;border-color: #52c41a;} .ant-tag-blue {color: #1890ff;background: #e6f7ff;border-color: #91d5ff;} .ant-tag-blue-inverse {color: #fff;background: #1890ff;border-color: #1890ff;} -.ant-tag-geekblue {color: #2f54eb;background: color(~`colorPalette("@{modal-content-bg}", 1)`);border-color: #adc6ff;} +.ant-tag-geekblue {color: #2f54eb;background: #f0f5ff;border-color: #adc6ff;} .ant-tag-geekblue-inverse {color: #fff;background: #2f54eb;border-color: #2f54eb;} .ant-tag-purple {color: #722ed1;background: #f9f0ff;border-color: #d3adf7;} .ant-tag-purple-inverse {color: #fff;background: #722ed1;border-color: #722ed1;} diff --git a/index.html b/index.html index 2bce2f165e..ef5027296b 100644 --- a/index.html +++ b/index.html @@ -127,6 +127,6 @@ - + diff --git a/p__Account__Profile__Edit__index.a0cda081.async.js b/p__Account__Profile__Edit__index.a0cda081.async.js deleted file mode 100644 index 2367d3eb27..0000000000 --- a/p__Account__Profile__Edit__index.a0cda081.async.js +++ /dev/null @@ -1,12 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[31,16],{"4nbu":function(me,J,e){"use strict";var M=e("2qtc"),j=e("kLXV"),q=e("+L6B"),N=e("2/Rp"),_=e("miYZ"),U=e("tsqr"),X=e("9og8"),ae=e("y8nQ"),B=e("Vl3Y"),te=e("tJVT"),O=e("PpiC"),S=e("5NDa"),y=e("5rEg"),W=e("WmNS"),K=e.n(W),F=e("q1tI"),z=e.n(F),oe=e("9kvl"),w=e("JzwI"),Ee=e.n(w),ie=y.a.TextArea,G=function(L){var Y=L.account,ve=L.globalSetting,de=L.loading,pe=L.dispatch,be=L.schoolName,V=L.departmentName,ye=L.visible,H=L.onClose,Z=H===void 0?function(){}:H,c=L.onSuccess,Q=c===void 0?function(){}:c,f=Object(O.a)(L,["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"]),r=B.a.useForm(),d=Object(te.a)(r,1),o=d[0],u=Object(F.useRef)();Object(F.useEffect)(function(){u.current=f.schoolId},[f.schoolId]),Object(F.useEffect)(function(){o.setFieldsValue({department:V})},[V]);var b=function(){var C=Object(X.a)(K.a.mark(function P(v){var h,a,n,l;return K.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return h=v||{},a=h.department,n=h.remarks,m.next=3,pe({type:"account/appplyDepartment",payload:{school_id:u.current,name:a,remarks:n}});case 3:l=m.sent,Z(),l&&(U.b.success("\u65B0\u589E\u9662\u7CFB/\u90E8\u95E8\u6210\u529F\uFF01"),Q(a));case 6:case"end":return m.stop()}},P)}));return function(v){return C.apply(this,arguments)}}();return z.a.createElement(j.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:ye,title:"\u7533\u8BF7\u6DFB\u52A0\u5B50\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},z.a.createElement(B.a,{className:Ee.a.formWrap,form:o,labelCol:{span:4},wrapperCol:{span:20},onFinish:b},z.a.createElement(B.a.Item,{label:"\u5355\u4F4D\u540D\u79F0\uFF1A"},be),z.a.createElement(B.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"}]},z.a.createElement(y.a,{placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"})),z.a.createElement(B.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},z.a.createElement(ie,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),z.a.createElement("div",{className:Ee.a.footerWrap},z.a.createElement(B.a.Item,null,z.a.createElement(N.a,{className:"mr5",size:"large",onClick:function(){Z()}},"\u53D6\u6D88"),z.a.createElement(N.a,{size:"large",type:"primary",htmlType:"submit",loading:de["account/appplyDepartment"]},"\u4FDD\u5B58")))))};J.a=Object(oe.a)(function(ce){var L=ce.account,Y=ce.loading,ve=ce.globalSetting;return{account:L,globalSetting:ve,loading:Y.effects}})(G)},"7ixt":function(me,J,e){"use strict";e.d(J,"a",function(){return q});var M={adjustX:1,adjustY:1},j=[0,0],q={left:{points:["cr","cl"],overflow:M,offset:[-4,0],targetOffset:j},right:{points:["cl","cr"],overflow:M,offset:[4,0],targetOffset:j},top:{points:["bc","tc"],overflow:M,offset:[0,-4],targetOffset:j},bottom:{points:["tc","bc"],overflow:M,offset:[0,4],targetOffset:j},topLeft:{points:["bl","tl"],overflow:M,offset:[0,-4],targetOffset:j},leftTop:{points:["tr","tl"],overflow:M,offset:[-4,0],targetOffset:j},topRight:{points:["br","tr"],overflow:M,offset:[0,-4],targetOffset:j},rightTop:{points:["tl","tr"],overflow:M,offset:[4,0],targetOffset:j},bottomRight:{points:["tr","br"],overflow:M,offset:[0,4],targetOffset:j},rightBottom:{points:["bl","br"],overflow:M,offset:[4,0],targetOffset:j},bottomLeft:{points:["tl","bl"],overflow:M,offset:[0,4],targetOffset:j},leftBottom:{points:["br","bl"],overflow:M,offset:[-4,0],targetOffset:j}},N=q},BU3w:function(me,J,e){"use strict";e.d(J,"a",function(){return U});var M=e("MNnm"),j="rc-util-key";function q(X){if(X.attachTo)return X.attachTo;var ae=document.querySelector("head");return ae||document.body}function N(X){var ae,B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(M.a)())return null;var te=document.createElement("style");if((ae=B.csp)===null||ae===void 0?void 0:ae.nonce){var O;te.nonce=(O=B.csp)===null||O===void 0?void 0:O.nonce}te.innerHTML=X;var S=q(B),y=S.firstChild;return B.prepend&&S.prepend?S.prepend(te):B.prepend&&y?S.insertBefore(te,y):S.appendChild(te),te}var _=new Map;function U(X,ae){var B=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},te=q(B);if(!_.has(te)){var O=N("",B),S=O.parentNode;_.set(te,S),S.removeChild(O)}var y=Array.from(_.get(te).children).find(function(oe){return oe.tagName==="STYLE"&&oe[j]===ae});if(y){var W,K;if(((W=B.csp)===null||W===void 0?void 0:W.nonce)&&y.nonce!==((K=B.csp)===null||K===void 0?void 0:K.nonce)){var F;y.nonce=(F=B.csp)===null||F===void 0?void 0:F.nonce}return y.innerHTML!==X&&(y.innerHTML=X),y}var z=N(X,B);return z[j]=ae,z}},GfqC:function(me,J,e){"use strict";var M=e("q1tI"),j=e.n(M),q=e("TSYQ"),N=e.n(q);function _(f,r){var d="cannot "+f.method+" "+f.action+" "+r.status+"'",o=new Error(d);return o.status=r.status,o.method=f.method,o.url=f.action,o}function U(f){var r=f.responseText||f.response;if(!r)return r;try{return JSON.parse(r)}catch(d){return r}}function X(f){var r=new XMLHttpRequest;f.onProgress&&r.upload&&(r.upload.onprogress=function(b){b.total>0&&(b.percent=b.loaded/b.total*100),f.onProgress(b)});var d=new FormData;f.data&&Object.keys(f.data).forEach(function(u){var b=f.data[u];if(Array.isArray(b)){b.forEach(function(C){d.append(u+"[]",C)});return}d.append(u,f.data[u])}),f.file instanceof Blob?d.append(f.filename,f.file,f.file.name):d.append(f.filename,f.file),r.onerror=function(b){f.onError(b)},r.onload=function(){return r.status<200||r.status>=300?f.onError(_(f,r),U(r)):f.onSuccess(U(r),r)},r.open(f.method,f.action,!0),f.withCredentials&&"withCredentials"in r&&(r.withCredentials=!0);var o=f.headers||{};return o["X-Requested-With"]!==null&&r.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(function(u){o[u]!==null&&r.setRequestHeader(u,o[u])}),r.send(d),{abort:function(){r.abort()}}}var ae=+new Date,B=0;function te(){return"rc-upload-"+ae+"-"+ ++B}function O(f,r){return f.indexOf(r,f.length-r.length)!==-1}var S=function(f,r){if(f&&r){var d=Array.isArray(r)?r:r.split(","),o=f.name||"",u=f.type||"",b=u.replace(/\/.*$/,"");return d.some(function(C){var P=C.trim();return P.charAt(0)==="."?O(o.toLowerCase(),P.toLowerCase()):/\/\*$/.test(P)?b===P.replace(/\/.*$/,""):u===P})}return!0};function y(f,r){var d=f.createReader(),o=[];function u(){d.readEntries(function(b){var C=Array.prototype.slice.apply(b);o=o.concat(C);var P=!C.length;P?r(o):u()})}u()}var W=function(r,d,o){var u=function b(C,P){P=P||"",C.isFile?C.file(function(v){o(v)&&(C.fullPath&&!v.webkitRelativePath&&(Object.defineProperties(v,{webkitRelativePath:{writable:!0}}),v.webkitRelativePath=C.fullPath.replace(/^\//,""),Object.defineProperties(v,{webkitRelativePath:{writable:!1}})),d([v]))}):C.isDirectory&&y(C,function(v){v.forEach(function(h){b(h,""+P+C.name+"/")})})};r.forEach(function(b){u(b.webkitGetAsEntry())})},K=W,F=Object.assign||function(f){for(var r=1;r=0)continue;if(!Object.prototype.hasOwnProperty.call(f,o))continue;d[o]=f[o]}return d}function ie(f,r){if(!(f instanceof r))throw new TypeError("Cannot call a class as a function")}function G(f,r){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:f}function ce(f,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);f.prototype=Object.create(r&&r.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(f,r):f.__proto__=r)}var L=function(r){return Object.keys(r).reduce(function(d,o){return(o.substr(0,5)==="data-"||o.substr(0,5)==="aria-"||o==="role")&&(d[o]=r[o]),d},{})},Y=function(f){ce(r,f);function r(){var d,o,u,b;ie(this,r);for(var C=arguments.length,P=Array(C),v=0;v-1})},de=K.a.TextArea,pe=function(V){var ye=V.account,H=V.globalSetting,Z=V.loading,c=V.dispatch,Q=V.schoolName,f=V.visible,r=V.onClose,d=r===void 0?function(){}:r,o=V.onSuccess,u=o===void 0?function(){}:o,b=Object(y.a)(V,["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"]),C=O.a.useForm(),P=Object(S.a)(C,1),v=P[0];Object(oe.useEffect)(function(){v.setFieldsValue({name:Q})},[Q]);var h=function(){var a=Object(B.a)(z.a.mark(function n(l){var i,m,t,p,s,g,E;return z.a.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return i=l||{},m=i.name,t=i.city,p=t===void 0?[]:t,s=i.address,g=i.remarks,T.next=3,c({type:"account/appplySchool",payload:{name:m,province:p[0],city:p[1],address:s,remarks:g}});case 3:E=T.sent,d(),E&&(ae.b.success("\u65B0\u589E\u5B66\u6821/\u5355\u4F4D\u6210\u529F\uFF01"),u(m));case 6:case"end":return T.stop()}},n)}));return function(l){return a.apply(this,arguments)}}();return w.a.createElement(j.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:f,title:"\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},w.a.createElement(O.a,{className:Y.a.formWrap,form:v,labelCol:{span:4},wrapperCol:{span:20},onFinish:h},w.a.createElement(O.a.Item,{label:"\u5355\u4F4D\u5168\u79F0\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},w.a.createElement(K.a,{placeholder:"\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"})),w.a.createElement("div",{className:"".concat(Y.a.flexRow," ").concat(Y.a.example)},w.a.createElement("div",null,"\u793A\u4F8B\uFF1A"),w.a.createElement("div",{className:Y.a.flexColumn},w.a.createElement("div",null,w.a.createElement(ie.a,{style:{color:"rgb(82, 196, 26)"}}),w.a.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),w.a.createElement("div",null,w.a.createElement(G.a,{style:{color:"red"}}),w.a.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625")))),w.a.createElement(O.a.Item,{label:"\u5730\u533A\uFF1A",name:"city"},w.a.createElement(U.a,{allowClear:!0,size:"large",options:ce.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:ve}})),w.a.createElement(O.a.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},w.a.createElement(K.a,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),w.a.createElement(O.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},w.a.createElement(de,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),w.a.createElement("div",{className:Y.a.footerWrap},w.a.createElement(O.a.Item,null,w.a.createElement(N.a,{className:"mr5",size:"large",onClick:function(){d()}},"\u53D6\u6D88"),w.a.createElement(N.a,{size:"large",type:"primary",htmlType:"submit",loading:Z["account/appplySchool"]},"\u4FDD\u5B58")))))};J.a=Object(Ee.a)(function(be){var V=be.account,ye=be.loading,H=be.globalSetting;return{account:V,globalSetting:H,loading:ye.effects}})(pe)},JzwI:function(me,J,e){me.exports={flexRow:"flexRow___OsWMo",flexColumn:"flexColumn___2c88T",formWrap:"formWrap___ir8nR",example:"example___tgHq4",footerWrap:"footerWrap___C29I6"}},LdHM:function(me,J,e){"use strict";e.d(J,"b",function(){return Ee}),e.d(J,"a",function(){return G});var M=e("1OyB"),j=e("vuIU"),q=e("Ji7U"),N=e("LK+K"),_=e("q1tI"),U=e("rePB"),X=e("Ff2n"),ae=e("ODXe"),B=e("4IlW"),te=e("bX4T"),O=e("YrtM"),S=e("TSYQ"),y=e.n(S),W=e("+nKL"),K=e("8OUc"),F=function(o,u){var b=o.prefixCls,C=o.id,P=o.flattenOptions,v=o.childrenAsData,h=o.values,a=o.searchValue,n=o.multiple,l=o.defaultActiveFirstOption,i=o.height,m=o.itemHeight,t=o.notFoundContent,p=o.open,s=o.menuItemSelectedIcon,g=o.virtual,E=o.onSelect,D=o.onToggleOpen,T=o.onActiveValue,le=o.onScroll,k=o.onMouseEnter,x="".concat(b,"-item"),$=Object(O.a)(function(){return P},[p,P],function(ge,ee){return ee[0]&&ge[1]!==ee[1]}),he=_.useRef(null),fe=function(ee){ee.preventDefault()},re=function(ee){he.current&&he.current.scrollTo({index:ee})},Me=function(ee){for(var ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,De=$.length,je=0;je1&&arguments[1]!==void 0?arguments[1]:!1;return Object(L.a)(d).map(function(u,b){if(!_.isValidElement(u)||!u.type)return null;var C=u.type.isSelectOptGroup,P=u.key,v=u.props,h=v.children,a=Object(X.a)(v,["children"]);return o||!C?Y(u):Object(ce.a)(Object(ce.a)({key:"__RC_SELECT_GRP__".concat(P===null?b:P,"__"),label:P},a),{},{options:ve(h)})}).filter(function(u){return u})}var de=e("2Qr1"),pe=e("qNPg"),be=e("U8pU"),V=e("Kwbf"),ye=e("WKfj");function H(d){var o=d.mode,u=d.options,b=d.children,C=d.backfill,P=d.allowClear,v=d.placeholder,h=d.getInputElement,a=d.showSearch,n=d.onSearch,l=d.defaultOpen,i=d.autoFocus,m=d.labelInValue,t=d.value,p=d.inputValue,s=d.optionLabelProp,g=o==="multiple"||o==="tags",E=a!==void 0?a:g||o==="combobox",D=u||ve(b);if(Object(V.a)(o!=="tags"||D.every(function(x){return!x.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),o==="tags"||o==="combobox"){var T=D.some(function(x){return x.options?x.options.some(function($){return typeof("value"in $?$.value:$.key)=="number"}):typeof("value"in x?x.value:x.key)=="number"});Object(V.a)(!T,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(V.a)(o!=="combobox"||!s,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(V.a)(o==="combobox"||!C,"`backfill` only works with `combobox` mode."),Object(V.a)(o==="combobox"||!h,"`getInputElement` only work with `combobox` mode."),Object(V.b)(o!=="combobox"||!h||!P||!v,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),n&&!E&&o!=="combobox"&&o!=="tags"&&Object(V.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(V.b)(!l||i,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),t!=null){var le=Object(ye.d)(t);Object(V.a)(!m||le.every(function(x){return Object(be.a)(x)==="object"&&("key"in x||"value"in x)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(V.a)(!g||Array.isArray(t),"`value` should be array when `mode` is `multiple` or `tags`")}if(b){var k=null;Object(L.a)(b).some(function(x){if(!_.isValidElement(x)||!x.type)return!1;var $=x.type;if($.isSelectOption)return!1;if($.isSelectOptGroup){var he=Object(L.a)(x.props.children).every(function(fe){return!_.isValidElement(fe)||!x.type||fe.type.isSelectOption?!0:(k=fe.type,!1)});return!he}return k=$,!0}),k&&Object(V.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(k.displayName||k.name||k,"`.")),Object(V.a)(p===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var Z=H,c=Object(pe.a)({prefixCls:"rc-select",components:{optionList:oe},convertChildrenToData:ve,flattenOptions:de.d,getLabeledValue:de.e,filterOptions:de.b,isValueDisabled:de.g,findValueOption:de.c,warningProps:Z,fillOptionsWithMissingValue:de.a}),Q=function(d){Object(q.a)(u,d);var o=Object(N.a)(u);function u(){var b;return Object(M.a)(this,u),b=o.apply(this,arguments),b.selectRef=_.createRef(),b.focus=function(){b.selectRef.current.focus()},b.blur=function(){b.selectRef.current.blur()},b}return Object(j.a)(u,[{key:"render",value:function(){return _.createElement(c,Object.assign({ref:this.selectRef},this.props))}}]),u}(_.Component);Q.Option=Ee,Q.OptGroup=G;var f=Q,r=J.c=f},Lo1I:function(me,J,e){me.exports={wrap:"wrap___1qvdb",content:"content___1_m94",hint:"hint___nSK1F",title:"title___2q9jC",titleWrap:"titleWrap___1O9xz",formWrap:"formWrap___2WseM",identityWrap:"identityWrap___2NSHB",schoolHintWrap:"schoolHintWrap___tihDG",colorCDCDCD:"colorCDCDCD___2WwD1",color0152d9:"color0152d9___2HFJQ",submitButton:"submitButton___2RxzB",submitButtondiv:"submitButtondiv___1xAxe",glow:"glow___3XNnL",staffidInput:"staffidInput___122cJ"}},OLES:function(me,J,e){"use strict";var M=e("U8pU"),j=e("VTBJ"),q=e("Ff2n"),N=e("q1tI"),_=e("uciX"),U=e("7ixt"),X=function(y){var W=y.overlay,K=y.prefixCls,F=y.id,z=y.overlayInnerStyle;return N.createElement("div",{className:"".concat(K,"-inner"),id:F,role:"tooltip",style:z},typeof W=="function"?W():W)},ae=X,B=function(y,W){var K=y.overlayClassName,F=y.trigger,z=F===void 0?["hover"]:F,oe=y.mouseEnterDelay,w=oe===void 0?0:oe,Ee=y.mouseLeaveDelay,ie=Ee===void 0?.1:Ee,G=y.overlayStyle,ce=y.prefixCls,L=ce===void 0?"rc-tooltip":ce,Y=y.children,ve=y.onVisibleChange,de=y.afterVisibleChange,pe=y.transitionName,be=y.animation,V=y.placement,ye=V===void 0?"right":V,H=y.align,Z=H===void 0?{}:H,c=y.destroyTooltipOnHide,Q=c===void 0?!1:c,f=y.defaultVisible,r=y.getTooltipContainer,d=y.overlayInnerStyle,o=Object(q.a)(y,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),u=Object(N.useRef)(null);Object(N.useImperativeHandle)(W,function(){return u.current});var b=Object(j.a)({},o);"visible"in y&&(b.popupVisible=y.visible);var C=function(){var n=y.arrowContent,l=n===void 0?null:n,i=y.overlay,m=y.id;return[N.createElement("div",{className:"".concat(L,"-arrow"),key:"arrow"},l),N.createElement(ae,{key:"content",prefixCls:L,id:m,overlay:i,overlayInnerStyle:d})]},P=!1,v=!1;if(typeof Q=="boolean")P=Q;else if(Q&&Object(M.a)(Q)==="object"){var h=Q.keepParent;P=h===!0,v=h===!1}return N.createElement(_.a,Object.assign({popupClassName:K,prefixCls:L,popup:C,action:z,builtinPlacements:U.a,popupPlacement:ye,ref:u,popupAlign:Z,getPopupContainer:r,onPopupVisibleChange:ve,afterPopupVisibleChange:de,popupTransitionName:pe,popupAnimation:be,defaultPopupVisible:f,destroyPopupOnHide:P,autoDestroy:v,mouseLeaveDelay:ie,popupStyle:G,mouseEnterDelay:w},b),Y)},te=Object(N.forwardRef)(B),O=J.a=te},RuH0:function(me,J,e){me.exports={flexRow:"flexRow___1vtNB",flexColumn:"flexColumn___38Gv5",formWrap:"formWrap___6xwEb",example:"example___226lp",footerWrap:"footerWrap___238nx"}},RxwV:function(me,J,e){"use strict";var M=e("q1tI"),j=e("uciX"),q=e("2W6z"),N=e.n(q),_=e("4IlW"),U=e("uK0f"),X=e.n(U);function ae(a,n){if(a===n)return!0;if(!a||!n)return!1;var l=a.length;if(n.length!==l)return!1;for(var i=0;i0;(fe||t.isLeaf===!1)&&($+=" ".concat(g,"-menu-item-expand"),t.loading||(he=M.createElement("span",{className:"".concat(g,"-menu-item-expand-icon")},D))),E==="hover"&&(fe||t.isLeaf===!1)&&(x={onMouseEnter:this.delayOnSelect.bind(this,le),onMouseLeave:this.delayOnSelect.bind(this),onClick:le}),this.isActiveOption(t,p)&&($+=" ".concat(g,"-menu-item-active"),x.ref=this.saveMenuItem(p)),t.disabled&&($+=" ".concat(g,"-menu-item-disabled"));var re=null;t.loading&&($+=" ".concat(g,"-menu-item-loading"),re=T||null);var Me="";return"title"in t?Me=t.title:typeof t[this.getFieldName("label")]=="string"&&(Me=t[this.getFieldName("label")]),M.createElement("li",Object.assign({key:t[this.getFieldName("value")],className:$,title:Me},x,{role:"menuitem",onMouseDown:function(Ie){return Ie.preventDefault()}}),t[this.getFieldName("label")],he,re)}},{key:"getActiveOptions",value:function(t){var p=this,s=this.props.options,g=t||this.props.activeValue;return X()(s,function(E,D){return E[p.getFieldName("value")]===g[D]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var t=this,p=this.props.options,s=this.getActiveOptions().map(function(g){return g[t.getFieldName("children")]}).filter(function(g){return!!g});return s.unshift(p),s}},{key:"delayOnSelect",value:function(t){for(var p=this,s=arguments.length,g=new Array(s>1?s-1:0),E=1;E=0)continue;if(!Object.prototype.propertyIsEnumerable.call(a,i))continue;l[i]=a[i]}}return l}function ve(a,n){if(a==null)return{};var l={},i=Object.keys(a),m,t;for(t=0;t=0)continue;l[m]=a[m]}return l}function de(a){return ye(a)||V(a)||be(a)||pe()}function pe(){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 be(a,n){if(!a)return;if(typeof a=="string")return H(a,n);var l=Object.prototype.toString.call(a).slice(8,-1);if(l==="Object"&&a.constructor&&(l=a.constructor.name),l==="Map"||l==="Set")return Array.from(a);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return H(a,n)}function V(a){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(a))return Array.from(a)}function ye(a){if(Array.isArray(a))return H(a)}function H(a,n){(n==null||n>a.length)&&(n=a.length);for(var l=0,i=new Array(n);l=T.length?0:k):(k-=1,k=k<0?T.length-1:k):k=0,E[D]=T[k][t.getFieldName("value")]}else if(s.keyCode===_.a.LEFT||s.keyCode===_.a.BACKSPACE)s.preventDefault(),E.splice(E.length-1,1);else if(s.keyCode===_.a.RIGHT)s.preventDefault(),T[le]&&T[le][t.getFieldName("children")]&&E.push(T[le][t.getFieldName("children")][0][t.getFieldName("value")]);else if(s.keyCode===_.a.ESC||s.keyCode===_.a.TAB){t.setPopupVisible(!1);return}(!E||E.length===0)&&t.setPopupVisible(!1);var x=t.getActiveOptions(E),$=x[x.length-1];t.handleMenuSelect($,x.length-1,s),t.props.onKeyDown&&t.props.onKeyDown(s)},t.saveTrigger=function(s){t.trigger=s};var p=[];return"value"in m?p=m.value||[]:"defaultValue"in m&&(p=m.defaultValue||[]),N()(!("filedNames"in m),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),t.state={popupVisible:m.popupVisible,activeValue:p,value:p,prevProps:m},t.defaultFieldNames={label:"label",value:"value",children:"children"},t}return Q(i,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(t){var p=this.defaultFieldNames,s=this.props,g=s.fieldNames,E=s.filedNames;return"filedNames"in this.props?E[t]||p[t]:g[t]||p[t]}},{key:"getFieldNames",value:function(){var t=this.props,p=t.fieldNames,s=t.filedNames;return"filedNames"in this.props?s:p}},{key:"getCurrentLevelOptions",value:function(){var t=this,p=this.props.options,s=p===void 0?[]:p,g=this.state.activeValue,E=g===void 0?[]:g,D=X()(s,function(T,le){return T[t.getFieldName("value")]===E[le]},{childrenKeyName:this.getFieldName("children")});return D[D.length-2]?D[D.length-2][this.getFieldName("children")]:de(s).filter(function(T){return!T.disabled})}},{key:"getActiveOptions",value:function(t){var p=this;return X()(this.props.options||[],function(s,g){return s[p.getFieldName("value")]===t[g]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var t=this.props,p=t.prefixCls,s=t.transitionName,g=t.popupClassName,E=t.options,D=E===void 0?[]:E,T=t.disabled,le=t.builtinPlacements,k=t.popupPlacement,x=t.children,$=t.dropdownRender,he=Y(t,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),fe=M.createElement("div",null),re="";D&&D.length>0?fe=M.createElement(ie,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):re=" ".concat(p,"-menus-empty");var Me=fe;return $&&(Me=$(fe)),M.createElement(j.a,Object.assign({ref:this.saveTrigger},he,{popupPlacement:k,builtinPlacements:le,popupTransitionName:s,action:T?[]:["click"],popupVisible:T?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(p,"-menus"),popupClassName:g+re,popup:Me}),M.cloneElement(x,{onKeyDown:this.handleKeyDown,tabIndex:T?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(t,p){var s=p.prevProps,g=s===void 0?{}:s,E={prevProps:t};return"value"in t&&!ae(g.value,t.value)&&(E.value=t.value||[],"loadData"in t||(E.activeValue=t.value||[])),"popupVisible"in t&&(E.popupVisible=t.popupVisible),E}}]),i}(M.Component);return a.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:ce,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},a}(),v=P,h=J.a=v},UZu5:function(me,J,e){},Y1PL:function(me,J,e){"use strict";e.r(J),e.d(J,"ResizableTextArea",function(){return b});var M=e("wx14"),j=e("1OyB"),q=e("vuIU"),N=e("Ji7U"),_=e("LK+K"),U=e("q1tI"),X=e("VTBJ"),ae=e("rePB"),B=e("Zm9Q"),te=e("Kwbf"),O=e("c+Xe"),S=e("m+aA"),y=e("bdgK"),W=new Map;function K(v){v.forEach(function(h){var a,n=h.target;(a=W.get(n))===null||a===void 0||a.forEach(function(l){return l(n)})})}var F=new y.default(K),z=null,oe=null;function w(v,h){W.has(v)||(W.set(v,new Set),F.observe(v)),W.get(v).add(h)}function Ee(v,h){W.has(v)&&(W.get(v).delete(h),W.get(v).size||(F.unobserve(v),W.delete(v)))}var ie=function(v){Object(N.a)(a,v);var h=Object(_.a)(a);function a(){return Object(j.a)(this,a),h.apply(this,arguments)}return Object(q.a)(a,[{key:"render",value:function(){return this.props.children}}]),a}(U.Component),G=U.createContext(null);function ce(v){var h=v.children,a=v.onBatchResize,n=U.useRef(0),l=U.useRef([]),i=U.useContext(G),m=U.useCallback(function(t,p,s){n.current+=1;var g=n.current;l.current.push({size:t,element:p,data:s}),Promise.resolve().then(function(){g===n.current&&(a==null||a(l.current),l.current=[])}),i==null||i(t,p,s)},[a,i]);return U.createElement(G.Provider,{value:m},h)}function L(v){var h=v.children,a=v.disabled,n=U.useRef(null),l=U.useRef(null),i=U.useContext(G),m=U.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),t=U.isValidElement(h)&&Object(O.c)(h),p=t?h.ref:null,s=U.useMemo(function(){return Object(O.a)(p,n)},[p,n]),g=U.useRef(v);g.current=v;var E=U.useCallback(function(D){var T=g.current,le=T.onResize,k=T.data,x=D.getBoundingClientRect(),$=x.width,he=x.height,fe=D.offsetWidth,re=D.offsetHeight,Me=Math.floor($),Ye=Math.floor(he);if(m.current.width!==Me||m.current.height!==Ye||m.current.offsetWidth!==fe||m.current.offsetHeight!==re){var Ie={width:Me,height:Ye,offsetWidth:fe,offsetHeight:re};m.current=Ie;var Ce=fe===Math.round($)?$:fe,tt=re===Math.round(he)?he:re,Fe=Object(X.a)(Object(X.a)({},Ie),{},{offsetWidth:Ce,offsetHeight:tt});i==null||i(Fe,D,k),le&&Promise.resolve().then(function(){le(Fe,D)})}},[]);return U.useEffect(function(){var D=Object(S.a)(n.current)||Object(S.a)(l.current);return D&&!a&&w(D,E),function(){return Ee(D,E)}},[n.current,a]),U.createElement(ie,{ref:l},t?U.cloneElement(h,{ref:s}):h)}var Y="rc-observer-key";function ve(v){var h=v.children,a=Object(B.a)(h);return a.map(function(n,l){var i=(n==null?void 0:n.key)||"".concat(Y,"-").concat(l);return U.createElement(L,Object(M.a)({},v,{key:i}),n)})}ve.Collection=ce;var de=ve,pe=e("bT9E"),be=e("TSYQ"),V=e.n(be),ye=` - min-height:0 !important; - max-height:none !important; - height:0 !important; - visibility:hidden !important; - overflow:hidden !important; - position:absolute !important; - z-index:-1000 !important; - top:0 !important; - right:0 !important -`,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"],Z={},c;function Q(v){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=v.getAttribute("id")||v.getAttribute("data-reactid")||v.getAttribute("name");if(h&&Z[a])return Z[a];var n=window.getComputedStyle(v),l=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),m=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),t=H.map(function(s){return"".concat(s,":").concat(n.getPropertyValue(s))}).join(";"),p={sizingStyle:t,paddingSize:i,borderSize:m,boxSizing:l};return h&&a&&(Z[a]=p),p}function f(v){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=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)),v.getAttribute("wrap")?c.setAttribute("wrap",v.getAttribute("wrap")):c.removeAttribute("wrap");var l=Q(v,h),i=l.paddingSize,m=l.borderSize,t=l.boxSizing,p=l.sizingStyle;c.setAttribute("style","".concat(p,";").concat(ye)),c.value=v.value||v.placeholder||"";var s=Number.MIN_SAFE_INTEGER,g=Number.MAX_SAFE_INTEGER,E=c.scrollHeight,D;if(t==="border-box"?E+=m:t==="content-box"&&(E-=i),a!==null||n!==null){c.value=" ";var T=c.scrollHeight-i;a!==null&&(s=T*a,t==="border-box"&&(s=s+i+m),E=Math.max(s,E)),n!==null&&(g=T*n,t==="border-box"&&(g=g+i+m),D=E>g?"":"hidden",E=Math.min(g,E))}return{height:E,minHeight:s,maxHeight:g,overflowY:D,resize:"none"}}var r=e("Gytx"),d=e.n(r),o;(function(v){v[v.NONE=0]="NONE",v[v.RESIZING=1]="RESIZING",v[v.RESIZED=2]="RESIZED"})(o||(o={}));var u=function(v){Object(N.a)(a,v);var h=Object(_.a)(a);function a(n){var l;return Object(j.a)(this,a),l=h.call(this,n),l.nextFrameActionId=void 0,l.resizeFrameId=void 0,l.textArea=void 0,l.saveTextArea=function(i){l.textArea=i},l.handleResize=function(i){var m=l.state.resizeStatus,t=l.props,p=t.autoSize,s=t.onResize;if(m!==o.NONE)return;typeof s=="function"&&s(i),p&&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 m=i.minRows,t=i.maxRows,p=f(l.textArea,!1,m,t);l.setState({textareaStyles:p,resizeStatus:o.RESIZING},function(){cancelAnimationFrame(l.resizeFrameId),l.resizeFrameId=requestAnimationFrame(function(){l.setState({resizeStatus:o.RESIZED},function(){l.resizeFrameId=requestAnimationFrame(function(){l.setState({resizeStatus:o.NONE}),l.fixFirefoxAutoScroll()})})})})},l.renderTextArea=function(){var i=l.props,m=i.prefixCls,t=m===void 0?"rc-textarea":m,p=i.autoSize,s=i.onResize,g=i.className,E=i.disabled,D=l.state,T=D.textareaStyles,le=D.resizeStatus,k=Object(pe.a)(l.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),x=V()(t,g,Object(ae.a)({},"".concat(t,"-disabled"),E));"value"in k&&(k.value=k.value||"");var $=Object(X.a)(Object(X.a)(Object(X.a)({},l.props.style),T),le===o.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return U.createElement(de,{onResize:l.handleResize,disabled:!(p||s)},U.createElement("textarea",Object(M.a)({},k,{className:x,style:$,ref:l.saveTextArea})))},l.state={textareaStyles:{},resizeStatus:o.NONE},l}return Object(q.a)(a,[{key:"componentDidUpdate",value:function(l){(l.value!==this.props.value||!d()(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(m){}}},{key:"render",value:function(){return this.renderTextArea()}}]),a}(U.Component),b=u,C=function(v){Object(N.a)(a,v);var h=Object(_.a)(a);function a(n){var l;Object(j.a)(this,a),l=h.call(this,n),l.resizableTextArea=void 0,l.focus=function(){l.resizableTextArea.textArea.focus()},l.saveTextArea=function(m){l.resizableTextArea=m},l.handleChange=function(m){var t=l.props.onChange;l.setValue(m.target.value,function(){l.resizableTextArea.resizeTextarea()}),t&&t(m)},l.handleKeyDown=function(m){var t=l.props,p=t.onPressEnter,s=t.onKeyDown;m.keyCode===13&&p&&p(m),s&&s(m)};var i=typeof n.value=="undefined"||n.value===null?n.defaultValue:n.value;return l.state={value:i},l}return Object(q.a)(a,[{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 U.createElement(b,Object(M.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}}]),a}(U.Component),P=J.default=C},Z3SC:function(me,J,e){"use strict";e.r(J),e.d(J,"identityMap",function(){return t});var M=e("+L6B"),j=e("2/Rp"),q=e("DZo9"),N=e("8z0m"),_=e("oBTY"),U=e("7Kak"),X=e("9yH6"),ae=e("O3gP"),B=e("lrIw"),te=e("14J3"),O=e("BMrR"),S=e("jCWc"),y=e("kPKH"),W=e("5Dmo"),K=e("3S7+"),F=e("0Owb"),z=e("2qtc"),oe=e("kLXV"),w=e("k1fw"),Ee=e("miYZ"),ie=e("tsqr"),G=e("9og8"),ce=e("y8nQ"),L=e("Vl3Y"),Y=e("tJVT"),ve=e("PpiC"),de=e("5NDa"),pe=e("5rEg"),be=e("OaEy"),V=e("2fM7"),ye=e("WmNS"),H=e.n(ye),Z=e("q1tI"),c=e.n(Z),Q=e("9kvl"),f=e("Lo1I"),r=e.n(f),d=e("HoYA"),o=e("4nbu"),u=e("yTi+"),b=e.n(u),C=e("1vsH"),P=e("l04A"),v=e("ye1Q"),h=e("xvlK"),a=e("kaH+"),n=e("dhSg"),l=e("m3rI"),i=V.a.Option,m=pe.a.TextArea,t={teacher:"\u6559\u5E08",student:"\u5B66\u751F",professional:"\u4E13\u4E1A\u4EBA\u58EB"},p=10,s=20,g=function(D){var T,le,k=D.user,x=D.account,$=D.globalSetting,he=D.shixunHomeworks,fe=D.loading,re=D.dispatch,Me=Object(ve.a)(D,["user","account","globalSetting","shixunHomeworks","loading","dispatch"]),Ye=L.a.useForm(),Ie=Object(Y.a)(Ye,1),Ce=Ie[0],tt=Object(Z.useState)({}),Fe=Object(Y.a)(tt,2),se=Fe[0],Be=Fe[1],ge=Object(Z.useState)([]),ee=Object(Y.a)(ge,2),ue=ee[0],De=ee[1],je=Object(Z.useState)([]),Oe=Object(Y.a)(je,2),We=Oe[0],ze=Oe[1],ke=Object(Z.useState)([]),Qe=Object(Y.a)(ke,2),Je=Qe[0],ut=Qe[1],mt=Object(Z.useState)([]),it=Object(Y.a)(mt,2),at=it[0],$e=it[1],He=Object(Z.useState)(!0),st=Object(Y.a)(He,2),Xe=st[0],lt=st[1],ft=Object(Z.useState)(!1),Ut=Object(Y.a)(ft,2),Yt=Ut[0],Jt=Ut[1],Zt=Object(Z.useState)(),Tt=Object(Y.a)(Zt,2),qe=Tt[0],xt=Tt[1],Qt=Object(Z.useState)(null),St=Object(Y.a)(Qt,2),Nt=St[0],qt=St[1],ea=Object(Z.useState)(!0),Ft=Object(Y.a)(ea,2),ta=Ft[0],Lt=Ft[1],aa=Object(Z.useState)(),wt=Object(Y.a)(aa,2),va=wt[0],_a=wt[1],la=Object(Z.useState)(!1),It=Object(Y.a)(la,2),na=It[0],pa=It[1],oa=Object(Z.useState)([]),Bt=Object(Y.a)(oa,2),ct=Bt[0],Wt=Bt[1],Kt=x.basicInfo,Vt=Kt===void 0?{}:Kt,zt=Vt&&Vt.professional_certification=="certified",dt=zt?{visible:!1}:{visible:!1};Object(Z.useEffect)(function(){kt()},[]),Object(Z.useEffect)(function(){Object(G.a)(H.a.mark(function A(){var R,I;return H.a.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.next=2,$t((R=x.basicInfo)===null||R===void 0?void 0:R.school_id);case 2:I=ne.sent,ut(I==null?void 0:I.departments);case 4:case"end":return ne.stop()}},A)}))()},[(T=x.basicInfo)===null||T===void 0?void 0:T.school_id]);var kt=function(){var A=Object(G.a)(H.a.mark(function R(){var I;return H.a.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return Lt(!0),ne.next=3,re({type:"account/getSchoolOption"});case 3:I=ne.sent,Lt(!1),De(I==null?void 0:I.schools);case 6:case"end":return ne.stop()}},R)}));return function(){return A.apply(this,arguments)}}(),$t=function(R){return R?re({type:"account/getDepartmentOption",payload:{id:R}}):void 0};Object(Z.useEffect)(function(){if(!x.basicInfo)return;var A=x.basicInfo,R={nickname:A.nickname,name:A.show_realname?A.name:Object(C.E)(A.name),gender:A.gender,city:[A.location,A.location_city],identity:A.identity,school:A.school_name,department:A.department_name,studentNo:A.student_id,edu_entry_year:A.edu_entry_year,edu_background:A.edu_background,brief_introduction:A.brief_introduction,jobTitle:A.identity=="teacher"?A.technical_title:"\u6559\u6388",manager:A.identity=="professional"?A.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};A!=null&&A.face_image&&Wt([{uid:"111",name:"111",url:l.a.API_SERVER+A.face_image}]),xt(A.name),lt(A.show_realname),qt(A.identity),Ce.setFieldsValue(R),Be(R)},[x.basicInfo]);var ba=function(){re({type:"account/setActionTabs",payload:{key:"Account-AppplySchool"}})},ra=function(){if(!ue.find(function(R){return R.name===se.school})){ie.b.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}re({type:"account/setActionTabs",payload:{key:"Account-AppplyDepartment"}})},ua=function(R){var I;if(Be(Object(w.a)({},Ce.getFieldsValue())),"school"in R){ze(ue.filter(function(ne){return ne.name.includes(R.school)}));var _e=(ue.find(function(ne){return ne.name===R.school})||{}).id;_e?Ht(R.school):(Ce.setFieldsValue({department:""}),Be(Object(w.a)(Object(w.a)({},se),{school:R.school,department:""})))}(R==null||((I=R.nickname)===null||I===void 0)?void 0:I.length)<=0&&(lt(!0),Ce.setFieldsValue({name:qe})),"name"in R&&xt(R.name)},ia=function(){var R=!Xe;lt(R);var I=R?qe:Object(C.E)(qe);Ce.setFieldsValue({name:I})},Ht=function(){var A=Object(G.a)(H.a.mark(function R(I,_e){var ne,Ke,Le,Te,Ae,Se;return H.a.wrap(function(Pe){for(;;)switch(Pe.prev=Pe.next){case 0:return Te=(ne=ue.find(function(et){return et.name===I}))===null||ne===void 0?void 0:ne.id,Pe.next=3,$t(Te);case 3:if(Pe.t0=Pe.sent,Pe.t0){Pe.next=6;break}Pe.t0={};case 6:Ae=Pe.t0,ut(Ae==null?void 0:Ae.departments),Se=_e||(Ae==null||((Ke=Ae.departments)===null||Ke===void 0||((Le=Ke[0])===null||Le===void 0))?void 0:Le.name),Ce.setFieldsValue({department:Se}),Be(Object(w.a)(Object(w.a)({},se),{school:I,department:Se}));case 11:case"end":return Pe.stop()}},R)}));return function(I,_e){return A.apply(this,arguments)}}(),sa=function(){var A=Object(G.a)(H.a.mark(function R(I){return H.a.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:return ne.next=2,kt();case 2:Ce.setFieldsValue({school:I,department:""}),Be(Object(w.a)(Object(w.a)({},se),{school:I,department:""}));case 4:case"end":return ne.stop()}},R)}));return function(I){return A.apply(this,arguments)}}(),ha=function(){var A=Object(G.a)(H.a.mark(function R(I){return H.a.wrap(function(ne){for(;;)switch(ne.prev=ne.next){case 0:oe.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:I?"\u60A8\u5DF2\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u4FEE\u6539\u59D3\u540D\u9700\u8981\u64A4\u9500\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u662F\u5426\u786E\u5B9A\u64A4\u9500?":"\u60A8\u5DF2\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u4FEE\u6539\u4FE1\u606F\u9700\u8981\u64A4\u9500\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u662F\u5426\u786E\u5B9A\u64A4\u9500?",onOk:function(){var Ke=Object(G.a)(H.a.mark(function Te(){var Ae,Se,Ge,Pe;return H.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(!I){Re.next=6;break}return Re.next=3,Object(P.g)({login:(Ae=k.userInfo)===null||Ae===void 0?void 0:Ae.login});case 3:Re.t0=Re.sent,Re.next=9;break;case 6:return Re.next=8,Object(P.i)({login:(Se=k.userInfo)===null||Se===void 0?void 0:Se.login});case 8:Re.t0=Re.sent;case 9:Ge=Re.t0,Ge&&(ie.b.success(I?"\u64A4\u9500\u5B9E\u540D\u8BA4\u8BC1\u6210\u529F":"\u64A4\u9500\u804C\u4E1A\u8BA4\u8BC1\u6210\u529F"),re({type:"account/getBasicInfo",payload:{login:(Pe=k.userInfo)===null||Pe===void 0?void 0:Pe.login}}));case 11:case"end":return Re.stop()}},Te)}));function Le(){return Ke.apply(this,arguments)}return Le}()});case 1:case"end":return ne.stop()}},R)}));return function(I){return A.apply(this,arguments)}}(),Ea=function(){var R=new Date().getFullYear();return Array(31).fill({}).map(function(I,_e){return c.a.createElement(i,{key:_e,value:R-_e},c.a.createElement("span",null,R-_e))})},ca=function(){var A=Object(G.a)(H.a.mark(function R(I){var _e,ne,Ke,Le,Te,Ae,Se,Ge,Pe,et,Re,vt,_t,Ze,Gt,pt,bt,we,Ve,xe,ht,Et,yt,nt,gt,Ot;return H.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(Ke=I.nickname,Le=I.gender,Te=I.identity,Ae=I.studentNo,Se=I.jobTitle,Ge=I.manager,Pe=I.school,et=I.department,Re=I.edu_background,vt=I.edu_entry_year,_t=I.brief_introduction,Ze=I.face_image,Gt=I.staff_id,pt=(_e=Je.find(function(ot){return ot.name===et}))===null||_e===void 0?void 0:_e.id,bt=(ne=ue.find(function(ot){return ot.name===Pe}))===null||ne===void 0?void 0:ne.id,we=x.basicInfo,Ve=[],we.authentication!="uncertified"&&(qe!=we.name&&Ve.push("\u59D3\u540D"),Le!=we.gender&&Ve.push("\u6027\u522B")),xe=[],zt&&(Te!=we.identity?xe.push("\u804C\u4E1A"):(se.identity==="student"&&(Ae!=we.student_id&&xe.push("\u804C\u4E1A")),se.identity==="teacher"&&(Se!=we.technical_title&&xe.push("\u804C\u4E1A")),se.identity==="professional"&&(Ge!=we.technical_title&&xe.push("\u804C\u4E1A"))),Pe!=we.school_name&&xe.push("\u5B66\u6821/\u5355\u4F4D"),et!=we.department_name&&xe.push("\u9662\u7CFB/\u90E8\u95E8")),!(Ve.length>0||xe.length>0)){Ne.next=12;break}oe.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u672C\u6B21\u4FEE\u6539\u6D89\u53CA".concat(Ve.toString().replaceAll(",","\u3001")).concat(Ve.length>0&&xe.length>0?"\u3001":"").concat(xe.toString().replaceAll(",","\u3001"),"\uFF0C\u9700\u8981\u91CD\u65B0\u8FDB\u884C").concat(Ve.length>0?"\u5B9E\u540D\u8BA4\u8BC1":"").concat(Ve.length>0&&xe.length>0?"\u548C":"").concat(xe.length>0?"\u804C\u4E1A\u8BA4\u8BC1":"","\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FEE\u6539"),onOk:function(){var ot=Object(G.a)(H.a.mark(function fa(){var Ct,Dt,Pt,At,Rt,rt,Mt,jt;return H.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(!(Ve.length>0)){Ue.next=3;break}return Ue.next=3,Object(P.g)({login:(At=k.userInfo)===null||At===void 0?void 0:At.login});case 3:if(!(xe.length>0)){Ue.next=6;break}return Ue.next=6,Object(P.i)({login:(Rt=k.userInfo)===null||Rt===void 0?void 0:Rt.login});case 6:return Ue.next=8,re({type:"account/updateAccount",payload:{id:(Ct=x.basicInfo)===null||Ct===void 0?void 0:Ct.id,department_id:pt,gender:Le,identity:Te,location,name:qe,nickname:Ke,school_id:bt,edu_background:Re,edu_entry_year:vt,show_realname:Xe,brief_introduction:_t,student_id:Ae,technical_title:Se||Ge,face_image:Ze==null||((Dt=Ze.file)===null||Dt===void 0||((Pt=Dt.response)===null||Pt===void 0))?void 0:Pt.id,staff_id:Gt}});case 8:if(rt=Ue.sent,!((rt==null?void 0:rt.status)===-1)){Ue.next=11;break}return Ue.abrupt("return");case 11:if(!rt){Ue.next=19;break}if(ie.b.info("\u4FDD\u5B58\u6210\u529F"),(Mt=x.basicInfo)!==null&&Mt!==void 0&&Mt.base_info_completed||re({type:"user/getUserInfo"}),re({type:"account/getBasicInfo",payload:{login:(jt=k.userInfo)===null||jt===void 0?void 0:jt.login}}),!(Te!==Nt&&Te==="teacher")){Ue.next=17;break}return Ue.abrupt("return");case 17:localStorage.getItem("Noviceguide")==="0"||re({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:4,href:"/classrooms",text:c.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")}}),Q.d.push("/account/profile");case 19:case"end":return Ue.stop()}},fa)}));function ma(){return ot.apply(this,arguments)}return ma}()}),Ne.next=25;break;case 12:return Ne.next=14,re({type:"account/updateAccount",payload:{id:(ht=x.basicInfo)===null||ht===void 0?void 0:ht.id,department_id:pt,gender:Le,identity:Te,location,name:qe,nickname:Ke,school_id:bt,edu_background:Re,edu_entry_year:vt,show_realname:Xe,brief_introduction:_t,student_id:Ae,technical_title:Se||Ge,face_image:Ze==null||((Et=Ze.file)===null||Et===void 0||((yt=Et.response)===null||yt===void 0))?void 0:yt.id}});case 14:if(nt=Ne.sent,!((nt==null?void 0:nt.status)===-1)){Ne.next=17;break}return Ne.abrupt("return");case 17:if(!nt){Ne.next=25;break}if(ie.b.info("\u4FDD\u5B58\u6210\u529F"),(gt=x.basicInfo)!==null&>!==void 0&>.base_info_completed||re({type:"user/getUserInfo"}),re({type:"account/getBasicInfo",payload:{login:(Ot=k.userInfo)===null||Ot===void 0?void 0:Ot.login}}),!(Te!==Nt&&Te==="teacher")){Ne.next=23;break}return Ne.abrupt("return");case 23:localStorage.getItem("Noviceguide")==="0"||re({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:4,href:"/classrooms",text:c.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")}}),Q.d.push("/account/profile");case 25:case"end":return Ne.stop()}},R)}));return function(I){return A.apply(this,arguments)}}(),Xt=function(){Jt(!1),Q.d.push("/account/profile")},da=c.a.createElement("div",null,na?c.a.createElement(v.a,null):c.a.createElement(h.a,null),c.a.createElement("div",{style:{marginTop:8}},"\u4E0A\u4F20")),ya=function(R,I){var _e=new FileReader;_e.addEventListener("load",function(){return I(_e.result)}),_e.readAsDataURL(R)};return c.a.createElement("section",{className:r.a.wrap},c.a.createElement("div",{className:r.a.content},c.a.createElement("div",{className:r.a.titleWrap},c.a.createElement("div",{className:r.a.title},"\u57FA\u672C\u4FE1\u606F")),c.a.createElement(L.a,{form:Ce,className:r.a.formWrap,layout:"horizontal",onValuesChange:ua,onFinish:ca},c.a.createElement(L.a.Item,{label:"\u59D3\u540D",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(p,"\u4E2A\u5B57\u7B26")},{validator:C.H}],extra:c.a.createElement("span",null,se.nickname?Xe?"\u663E\u793A\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D":"\u9690\u85CF\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u4F60\u7684\u6635\u79F0":"\u586B\u5199\u6635\u79F0\u540E\u53EF\u8BBE\u7F6E\u59D3\u540D\u8FDB\u884C\u9690\u85CF\uFF08\u5F53\u8FDB\u884C\u59D3\u540D\u641C\u7D22\u65F6\uFF0C\u4F1A\u5C55\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D\uFF09")},c.a.createElement(pe.a,{disabled:se.nickname?!Xe:!1,placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(p,"\u4E2A\u5B57\u7B26"),maxLength:p,addonAfter:se.nickname?c.a.createElement("i",{style:{lineHeight:"26px"},className:"iconfont ".concat(Xe?"icon-xianshi":"icon-yincang"," font18 ").concat(r.a.color0152d9),onClick:ia}):null})),c.a.createElement(O.a,{gutter:[10,0]},c.a.createElement(y.a,null,c.a.createElement(K.a,Object(F.a)({placement:"bottom",title:function(){return c.a.createElement("div",null,c.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),c.a.createElement("div",null,"\u53EF\u5728",c.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},dt),c.a.createElement(L.a.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},c.a.createElement(V.a,{style:{width:160}},c.a.createElement(i,{value:"teacher"},"\u6559\u5E08"),c.a.createElement(i,{value:"student"},"\u5B66\u751F"))))),c.a.createElement(y.a,null,se.identity==="student"&&c.a.createElement(K.a,Object(F.a)({placement:"bottom",title:function(){return c.a.createElement("div",null,c.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),c.a.createElement("div",null,"\u53EF\u5728",c.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},dt),c.a.createElement(L.a.Item,{initialValue:se.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},c.a.createElement(pe.a,{style:{width:200},type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),se.identity==="teacher"&&c.a.createElement(K.a,Object(F.a)({placement:"bottom",title:function(){return c.a.createElement("div",null,c.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),c.a.createElement("div",null,"\u53EF\u5728",c.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},dt),c.a.createElement(L.a.Item,{initialValue:se.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},c.a.createElement(V.a,{style:{width:200}},c.a.createElement(i,{value:"\u6559\u6388"},"\u6559\u6388"),c.a.createElement(i,{value:"\u7814\u7A76\u5458"},"\u7814\u7A76\u5458"),c.a.createElement(i,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),c.a.createElement(i,{value:"\u526F\u7814\u7A76\u5458"},"\u526F\u7814\u7A76\u5458"),c.a.createElement(i,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),c.a.createElement(i,{value:"\u52A9\u7406\u7814\u7A76\u5458"},"\u52A9\u7406\u7814\u7A76\u5458"),c.a.createElement(i,{value:"\u52A9\u7406\u6559\u6388"},"\u52A9\u7406\u6559\u6388"))))),(se.identity==="teacher"||se.identity==="professional")&&c.a.createElement(y.a,{flex:1},c.a.createElement(L.a.Item,{label:"\u5DE5\u53F7",name:"studentNo",labelCol:{span:4},rules:[{required:!0},{validator:function(R,I){var _e=/[\u4E00-\u9FA5]/g;return _e.test(I)?Promise.reject("\u8BF7\u52FF\u8F93\u5165\u4E2D\u6587\u5B57\u7B26"):Promise.resolve()}}]},c.a.createElement(pe.a,{className:r.a.staffidInput})))),c.a.createElement(K.a,Object(F.a)({placement:"bottom",title:function(){return c.a.createElement("div",null,c.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),c.a.createElement("div",null,"\u53EF\u5728",c.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},dt),c.a.createElement(L.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",wrapperCol:{span:10},extra:!ta&&se.department&&!(Je!=null&&Je.find(function(A){return A.name===se.department}))&&c.a.createElement("div",{className:r.a.schoolHintWrap},c.a.createElement("span",{className:r.a.colorCDCDCD},se.department?"\u672A\u627E\u5230\u5305\u542B\u201C".concat(se.department,"\u201D\u7684\u9AD8\u6821\uFF0C"):"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),c.a.createElement("span",{className:"".concat(r.a.color0152d9," current"),onClick:ra},"\u7533\u8BF7\u65B0\u589E"))},c.a.createElement(B.a,{showSearch:!0,onChange:function(R){return $e(Je.filter(function(I){return I.name.includes(R)}))},options:at==null?void 0:at.map(function(A){return{value:A.name}})}))),c.a.createElement(L.a.Item,{labelCol:{span:3},wrapperCol:{span:4},label:"\u6027\u522B",className:"mb0"},c.a.createElement(L.a.Item,{name:"gender"},c.a.createElement(X.a.Group,null,c.a.createElement(X.a,{value:0},"\u7537"),c.a.createElement(X.a,{value:1},"\u5973")))),c.a.createElement("div",{style:{display:"flex"}},c.a.createElement(L.a.Item,{label:"\u4E0A\u4F20\u8BC1\u4EF6\u7167",wrapperCol:{span:10},name:"face_image"},c.a.createElement(N.a,{listType:"picture-card",withCredentials:!0,className:"avatar-uploader",fileList:ct,onPreview:function(R){n.a.publish("preview-image",R.thumbUrl||R.url)},action:"".concat(l.a.API_SERVER,"/api/attachments.json"),beforeUpload:function(R){var I=R.type==="image/jpeg"||R.type==="image/png";if(!I)return ie.b.error("\u60A8\u4E0A\u4F20\u7684\u4E0D\u662FJPG/PNG\u7C7B\u578B\u6587\u4EF6"),Promise.reject();var _e=R.size/1024/1024<1;return _e?I&&_e:(ie.b.error("\u6587\u4EF6\u4E0D\u80FD\u5927\u4E8E1MB"),Promise.reject())},onChange:function(R){Wt(Object(_.a)(R.fileList))}},(ct==null?void 0:ct.length)>0?null:da)),c.a.createElement("div",{style:{marginLeft:16,color:"#666666",display:"flex",flexDirection:"column",marginTop:5}},c.a.createElement("span",null,"\u8981\u6C42\uFF1A"),c.a.createElement("span",null,"1.\u5B66\u751F\u7167\u7247\u5FC5\u987B\u4E3A\u9AD8\u6E05\u7684\u4EBA\u8138\u7167"),c.a.createElement("span",null,"2.\u6309\u7167 \u59D3\u540D-\u5B66\u53F7 \u7684\u65B9\u5F0F\u6765\u547D\u540D\u7167\u7247"),c.a.createElement("span",null,"3.\u56FE\u7247\u5927\u5C0F\u57281MB\u4EE5\u5185"))),c.a.createElement(L.a.Item,null,c.a.createElement(j.a,{className:"".concat(he.actionTabs.type===2?r.a.submitButtondiv:r.a.submitButton," ml100"),size:"large",type:"primary",htmlType:"submit",loading:fe["account/editAccount"]},"\u4FDD\u5B58"),c.a.createElement(j.a,{className:r.a.submitButton,size:"large",onClick:function(){return Q.d.push("/account/profile")}},"\u53D6\u6D88")))),c.a.createElement("div",{className:"".concat(r.a.hint," font14")},"* \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"),c.a.createElement(d.a,{visible:x.actionTabs.key==="Account-AppplySchool",onClose:function(){re({type:"account/setActionTabs",payload:{}})},schoolName:se.school,onSuccess:sa}),c.a.createElement(o.a,{visible:x.actionTabs.key==="Account-AppplyDepartment",onClose:function(){re({type:"account/setActionTabs",payload:{}})},schoolId:(le=ue.find(function(A){return A.name===se.school}))===null||le===void 0?void 0:le.id,schoolName:se.school,departmentName:se.department,onSuccess:function(R){return Ht(se.school,R)}}),c.a.createElement(oe.a,{centered:!0,destroyOnClose:!0,visible:Yt,title:"\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:648,onCancel:Xt,onOk:Xt},c.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},c.a.createElement("aside",{style:{padding:"8px 70px"}},c.a.createElement("span",{style:{letterSpacing:1}},"\u57FA\u4E8E\u60A8\u6240\u5728\u9662\u6821\u4E0E\u5E73\u53F0\u6709\u6DF1\u5EA6\u5408\u4F5C\uFF0C\u6211\u4EEC\u7279\u610F\u4E3A\u60A8\u914D\u5907\u4E86\u5E73\u53F0\u76841\u5BF91\u52A9"),c.a.createElement("br",null),"\u6559\uFF0C\u60A8\u53EF\u4EE5\u626B\u63CF\u4E0B\u65B9\u4E8C\u7EF4\u7801\u6DFB\u52A0\u52A9\u7406\u5FAE\u4FE1\uFF0C\u6211\u4EEC\u5C067*24\u5C0F\u65F6\u4E3A\u60A8\u7B54\u7591\u89E3\u60D1\u3002"),c.a.createElement("img",{src:b.a,width:162,height:162}))),c.a.createElement(a.a,null))};J.default=Object(Q.a)(function(E){var D=E.user,T=E.account,le=E.loading,k=E.globalSetting,x=E.shixunHomeworks;return{user:D,account:T,globalSetting:k,loading:le.effects,shixunHomeworks:x}})(g)},ZpRC:function(me,J,e){"use strict";function M(O){return typeof O=="object"&&O!=null&&O.nodeType===1}function j(O,S){return(!S||O!=="hidden")&&O!=="visible"&&O!=="clip"}function q(O,S){if(O.clientHeightS||F>O&&z=S&&oe>=y?F-O-W:z>S&&oey?z-S+K:0}var _=function(O,S){var y=window,W=S.scrollMode,K=S.block,F=S.inline,z=S.boundary,oe=S.skipOverflowHiddenElements,w=typeof z=="function"?z:function(T){return T!==z};if(!M(O))throw new TypeError("Invalid target");for(var Ee=document.scrollingElement||document.documentElement,ie=[],G=O;M(G)&&w(G);){if((G=G.parentElement)===Ee){ie.push(G);break}G!=null&&G===document.body&&q(G)&&!q(document.documentElement)||G!=null&&q(G,oe)&&ie.push(G)}for(var ce=y.visualViewport?y.visualViewport.width:innerWidth,L=y.visualViewport?y.visualViewport.height:innerHeight,Y=window.scrollX||pageXOffset,ve=window.scrollY||pageYOffset,de=O.getBoundingClientRect(),pe=de.height,be=de.width,V=de.top,ye=de.right,H=de.bottom,Z=de.left,c=K==="start"||K==="nearest"?V:K==="end"?H:V+pe/2,Q=F==="center"?Z+be/2:F==="end"?ye:Z,f=[],r=0;r=0&&Z>=0&&H<=L&&ye<=ce&&V>=C&&H<=v&&Z>=h&&ye<=P)return f;var a=getComputedStyle(d),n=parseInt(a.borderLeftWidth,10),l=parseInt(a.borderTopWidth,10),i=parseInt(a.borderRightWidth,10),m=parseInt(a.borderBottomWidth,10),t=0,p=0,s="offsetWidth"in d?d.offsetWidth-d.clientWidth-n-i:0,g="offsetHeight"in d?d.offsetHeight-d.clientHeight-l-m:0;if(Ee===d)t=K==="start"?c:K==="end"?c-L:K==="nearest"?N(ve,ve+L,L,l,m,ve+c,ve+c+pe,pe):c-L/2,p=F==="start"?Q:F==="center"?Q-ce/2:F==="end"?Q-ce:N(Y,Y+ce,ce,n,i,Y+Q,Y+Q+be,be),t=Math.max(0,t+ve),p=Math.max(0,p+Y);else{t=K==="start"?c-C-l:K==="end"?c-v+m+g:K==="nearest"?N(C,v,u,l,m+g,c,c+pe,pe):c-(C+u/2)+g/2,p=F==="start"?Q-h-n:F==="center"?Q-(h+b/2)+s/2:F==="end"?Q-P+i+s:N(h,P,b,n,i+s,Q,Q+be,be);var E=d.scrollLeft,D=d.scrollTop;c+=D-(t=Math.max(0,Math.min(D+t,d.scrollHeight-u+g))),Q+=E-(p=Math.max(0,Math.min(E+p,d.scrollWidth-b+s)))}f.push({el:d,top:t,left:p})}return f};function U(O){return O===Object(O)&&Object.keys(O).length!==0}function X(O,S){S===void 0&&(S="auto");var y="scrollBehavior"in document.body.style;O.forEach(function(W){var K=W.el,F=W.top,z=W.left;K.scroll&&y?K.scroll({top:F,left:z,behavior:S}):(K.scrollTop=F,K.scrollLeft=z)})}function ae(O){return O===!1?{block:"end",inline:"nearest"}:U(O)?O:{block:"start",inline:"nearest"}}function B(O,S){var y=!O.ownerDocument.documentElement.contains(O);if(U(S)&&typeof S.behavior=="function")return S.behavior(y?[]:_(O,S));if(y)return;var W=ae(S);return X(_(O,W),W.behavior)}var te=J.a=B},bT9E:function(me,J,e){"use strict";e.d(J,"a",function(){return j});var M=e("VTBJ");function j(q,N){var _=Object(M.a)({},q);return Array.isArray(N)&&N.forEach(function(U){delete _[U]}),_}},gJ3r:function(me,J,e){"use strict";e.d(J,"a",function(){return M});var M=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},"kaH+":function(me,J,e){"use strict";var M=e("+L6B"),j=e("2/Rp"),q=e("tJVT"),N=e("q1tI"),_=e.n(N),U=e("UZu5"),X=e.n(U),ae=e("dhSg"),B=e("rLCj"),te=e("dF/Y"),O=e("4i/N");J.a=function(){var S=Object(N.useState)(""),y=Object(q.a)(S,2),W=y[0],K=y[1],F=Object(N.useState)(0),z=Object(q.a)(F,2),oe=z[0],w=z[1],Ee=Object(N.useRef)("");Object(N.useEffect)(function(){var L=ae.a.subscribe("preview-image",function(Y){K(Y),document.body.style.overflow="hidden"});return L},[]),Object(N.useEffect)(function(){return document.addEventListener("keydown",ie),function(){document.removeEventListener("keydown",ie)}},[]),Object(N.useEffect)(function(){Ee.current=W},[W]);function ie(L){L.keyCode==27&&Ee.current&&G()}function G(){document.body.style.overflow="auto",K("")}function ce(){w(oe+90)}return _.a.createElement(N.Fragment,null,W?_.a.createElement("div",{className:"image-preview-container"},_.a.createElement("div",{className:"button-group"},_.a.createElement(j.a,{onClick:ce},"\u65CB\u8F6C",_.a.createElement(B.a,null)),_.a.createElement(j.a,{href:W},"\u4E0B\u8F7D",_.a.createElement(te.a,null)),_.a.createElement(j.a,{onClick:G},"\u5173\u95ED",_.a.createElement(O.a,null))),_.a.createElement("div",{className:"preview-wrp-group"},_.a.createElement("img",{className:"image-preview",src:W,alt:"\u9884\u89C8\u5927\u56FE",style:{transform:"rotate(".concat(oe,"deg)")}}))):null)}},uK0f:function(me,J,e){(function(M,j){me.exports=j()})(this,function(){"use strict";function M(j,q,N){N=N||{},N.childrenKeyName=N.childrenKeyName||"children";var _=j||[],U=[],X=0;do{var ae=_.filter(function(B){return q(B,X)})[0];if(!ae)break;U.push(ae),_=ae[N.childrenKeyName]||[],X+=1}while(_.length>0);return U}return M})},"yTi+":function(me,J,e){me.exports=e.p+"static/AssistantCode3.9bae6615.jpeg"}}]); diff --git a/p__Account__Profile__Edit__index.d3552d6c.async.js b/p__Account__Profile__Edit__index.d3552d6c.async.js new file mode 100644 index 0000000000..108dc004fd --- /dev/null +++ b/p__Account__Profile__Edit__index.d3552d6c.async.js @@ -0,0 +1,12 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[31,16],{"4nbu":function(ce,J,e){"use strict";var R=e("2qtc"),M=e("kLXV"),te=e("+L6B"),x=e("2/Rp"),p=e("miYZ"),j=e("tsqr"),X=e("9og8"),oe=e("y8nQ"),w=e("Vl3Y"),le=e("tJVT"),C=e("PpiC"),T=e("5NDa"),g=e("5rEg"),I=e("WmNS"),B=e.n(I),S=e("q1tI"),V=e.n(S),re=e("9kvl"),F=e("JzwI"),he=e.n(F),ie=g.a.TextArea,G=function(N){var Y=N.account,fe=N.globalSetting,de=N.loading,pe=N.dispatch,_e=N.schoolName,W=N.departmentName,Ee=N.visible,$=N.onClose,Q=$===void 0?function(){}:$,d=N.onSuccess,ee=d===void 0?function(){}:d,f=Object(C.a)(N,["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"]),r=w.a.useForm(),c=Object(le.a)(r,1),o=c[0],u=Object(S.useRef)();Object(S.useEffect)(function(){u.current=f.schoolId},[f.schoolId]),Object(S.useEffect)(function(){o.setFieldsValue({department:W})},[W]);var b=function(){var D=Object(X.a)(B.a.mark(function A(v){var h,a,n,l;return B.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return h=v||{},a=h.department,n=h.remarks,m.next=3,pe({type:"account/appplyDepartment",payload:{school_id:u.current,name:a,remarks:n}});case 3:l=m.sent,Q(),l&&(j.b.success("\u65B0\u589E\u9662\u7CFB/\u90E8\u95E8\u6210\u529F\uFF01"),ee(a));case 6:case"end":return m.stop()}},A)}));return function(v){return D.apply(this,arguments)}}();return V.a.createElement(M.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:Ee,title:"\u7533\u8BF7\u6DFB\u52A0\u5B50\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},V.a.createElement(w.a,{className:he.a.formWrap,form:o,labelCol:{span:4},wrapperCol:{span:20},onFinish:b},V.a.createElement(w.a.Item,{label:"\u5355\u4F4D\u540D\u79F0\uFF1A"},_e),V.a.createElement(w.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"}]},V.a.createElement(g.a,{placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"})),V.a.createElement(w.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},V.a.createElement(ie,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),V.a.createElement("div",{className:he.a.footerWrap},V.a.createElement(w.a.Item,null,V.a.createElement(x.a,{className:"mr5",size:"large",onClick:function(){Q()}},"\u53D6\u6D88"),V.a.createElement(x.a,{size:"large",type:"primary",htmlType:"submit",loading:de["account/appplyDepartment"]},"\u4FDD\u5B58")))))};J.a=Object(re.a)(function(se){var N=se.account,Y=se.loading,fe=se.globalSetting;return{account:N,globalSetting:fe,loading:Y.effects}})(G)},"7ixt":function(ce,J,e){"use strict";e.d(J,"a",function(){return te});var R={adjustX:1,adjustY:1},M=[0,0],te={left:{points:["cr","cl"],overflow:R,offset:[-4,0],targetOffset:M},right:{points:["cl","cr"],overflow:R,offset:[4,0],targetOffset:M},top:{points:["bc","tc"],overflow:R,offset:[0,-4],targetOffset:M},bottom:{points:["tc","bc"],overflow:R,offset:[0,4],targetOffset:M},topLeft:{points:["bl","tl"],overflow:R,offset:[0,-4],targetOffset:M},leftTop:{points:["tr","tl"],overflow:R,offset:[-4,0],targetOffset:M},topRight:{points:["br","tr"],overflow:R,offset:[0,-4],targetOffset:M},rightTop:{points:["tl","tr"],overflow:R,offset:[4,0],targetOffset:M},bottomRight:{points:["tr","br"],overflow:R,offset:[0,4],targetOffset:M},rightBottom:{points:["bl","br"],overflow:R,offset:[4,0],targetOffset:M},bottomLeft:{points:["tl","bl"],overflow:R,offset:[0,4],targetOffset:M},leftBottom:{points:["br","bl"],overflow:R,offset:[-4,0],targetOffset:M}},x=te},BU3w:function(ce,J,e){"use strict";e.d(J,"a",function(){return j});var R=e("MNnm"),M="rc-util-key";function te(X){if(X.attachTo)return X.attachTo;var oe=document.querySelector("head");return oe||document.body}function x(X){var oe,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(R.a)())return null;var le=document.createElement("style");if((oe=w.csp)===null||oe===void 0?void 0:oe.nonce){var C;le.nonce=(C=w.csp)===null||C===void 0?void 0:C.nonce}le.innerHTML=X;var T=te(w),g=T.firstChild;return w.prepend&&T.prepend?T.prepend(le):w.prepend&&g?T.insertBefore(le,g):T.appendChild(le),le}var p=new Map;function j(X,oe){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},le=te(w);if(!p.has(le)){var C=x("",w),T=C.parentNode;p.set(le,T),T.removeChild(C)}var g=Array.from(p.get(le).children).find(function(re){return re.tagName==="STYLE"&&re[M]===oe});if(g){var I,B;if(((I=w.csp)===null||I===void 0?void 0:I.nonce)&&g.nonce!==((B=w.csp)===null||B===void 0?void 0:B.nonce)){var S;g.nonce=(S=w.csp)===null||S===void 0?void 0:S.nonce}return g.innerHTML!==X&&(g.innerHTML=X),g}var V=x(X,w);return V[M]=oe,V}},GfqC:function(ce,J,e){"use strict";var R=e("q1tI"),M=e.n(R),te=e("TSYQ"),x=e.n(te);function p(f,r){var c="cannot "+f.method+" "+f.action+" "+r.status+"'",o=new Error(c);return o.status=r.status,o.method=f.method,o.url=f.action,o}function j(f){var r=f.responseText||f.response;if(!r)return r;try{return JSON.parse(r)}catch(c){return r}}function X(f){var r=new XMLHttpRequest;f.onProgress&&r.upload&&(r.upload.onprogress=function(b){b.total>0&&(b.percent=b.loaded/b.total*100),f.onProgress(b)});var c=new FormData;f.data&&Object.keys(f.data).forEach(function(u){var b=f.data[u];if(Array.isArray(b)){b.forEach(function(D){c.append(u+"[]",D)});return}c.append(u,f.data[u])}),f.file instanceof Blob?c.append(f.filename,f.file,f.file.name):c.append(f.filename,f.file),r.onerror=function(b){f.onError(b)},r.onload=function(){return r.status<200||r.status>=300?f.onError(p(f,r),j(r)):f.onSuccess(j(r),r)},r.open(f.method,f.action,!0),f.withCredentials&&"withCredentials"in r&&(r.withCredentials=!0);var o=f.headers||{};return o["X-Requested-With"]!==null&&r.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(function(u){o[u]!==null&&r.setRequestHeader(u,o[u])}),r.send(c),{abort:function(){r.abort()}}}var oe=+new Date,w=0;function le(){return"rc-upload-"+oe+"-"+ ++w}function C(f,r){return f.indexOf(r,f.length-r.length)!==-1}var T=function(f,r){if(f&&r){var c=Array.isArray(r)?r:r.split(","),o=f.name||"",u=f.type||"",b=u.replace(/\/.*$/,"");return c.some(function(D){var A=D.trim();return A.charAt(0)==="."?C(o.toLowerCase(),A.toLowerCase()):/\/\*$/.test(A)?b===A.replace(/\/.*$/,""):u===A})}return!0};function g(f,r){var c=f.createReader(),o=[];function u(){c.readEntries(function(b){var D=Array.prototype.slice.apply(b);o=o.concat(D);var A=!D.length;A?r(o):u()})}u()}var I=function(r,c,o){var u=function b(D,A){A=A||"",D.isFile?D.file(function(v){o(v)&&(D.fullPath&&!v.webkitRelativePath&&(Object.defineProperties(v,{webkitRelativePath:{writable:!0}}),v.webkitRelativePath=D.fullPath.replace(/^\//,""),Object.defineProperties(v,{webkitRelativePath:{writable:!1}})),c([v]))}):D.isDirectory&&g(D,function(v){v.forEach(function(h){b(h,""+A+D.name+"/")})})};r.forEach(function(b){u(b.webkitGetAsEntry())})},B=I,S=Object.assign||function(f){for(var r=1;r=0)continue;if(!Object.prototype.hasOwnProperty.call(f,o))continue;c[o]=f[o]}return c}function ie(f,r){if(!(f instanceof r))throw new TypeError("Cannot call a class as a function")}function G(f,r){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:f}function se(f,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);f.prototype=Object.create(r&&r.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(f,r):f.__proto__=r)}var N=function(r){return Object.keys(r).reduce(function(c,o){return(o.substr(0,5)==="data-"||o.substr(0,5)==="aria-"||o==="role")&&(c[o]=r[o]),c},{})},Y=function(f){se(r,f);function r(){var c,o,u,b;ie(this,r);for(var D=arguments.length,A=Array(D),v=0;v-1})},de=B.a.TextArea,pe=function(W){var Ee=W.account,$=W.globalSetting,Q=W.loading,d=W.dispatch,ee=W.schoolName,f=W.visible,r=W.onClose,c=r===void 0?function(){}:r,o=W.onSuccess,u=o===void 0?function(){}:o,b=Object(g.a)(W,["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"]),D=C.a.useForm(),A=Object(T.a)(D,1),v=A[0];Object(re.useEffect)(function(){v.setFieldsValue({name:ee})},[ee]);var h=function(){var a=Object(w.a)(V.a.mark(function n(l){var i,m,t,_,s,O,E;return V.a.wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return i=l||{},m=i.name,t=i.city,_=t===void 0?[]:t,s=i.address,O=i.remarks,U.next=3,d({type:"account/appplySchool",payload:{name:m,province:_[0],city:_[1],address:s,remarks:O}});case 3:E=U.sent,c(),E&&(oe.b.success("\u65B0\u589E\u5B66\u6821/\u5355\u4F4D\u6210\u529F\uFF01"),u(m));case 6:case"end":return U.stop()}},n)}));return function(l){return a.apply(this,arguments)}}();return F.a.createElement(M.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:f,title:"\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},F.a.createElement(C.a,{className:Y.a.formWrap,form:v,labelCol:{span:4},wrapperCol:{span:20},onFinish:h},F.a.createElement(C.a.Item,{label:"\u5355\u4F4D\u5168\u79F0\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},F.a.createElement(B.a,{placeholder:"\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"})),F.a.createElement("div",{className:"".concat(Y.a.flexRow," ").concat(Y.a.example)},F.a.createElement("div",null,"\u793A\u4F8B\uFF1A"),F.a.createElement("div",{className:Y.a.flexColumn},F.a.createElement("div",null,F.a.createElement(ie.a,{style:{color:"rgb(82, 196, 26)"}}),F.a.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),F.a.createElement("div",null,F.a.createElement(G.a,{style:{color:"red"}}),F.a.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625")))),F.a.createElement(C.a.Item,{label:"\u5730\u533A\uFF1A",name:"city"},F.a.createElement(j.a,{allowClear:!0,size:"large",options:se.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:fe}})),F.a.createElement(C.a.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},F.a.createElement(B.a,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),F.a.createElement(C.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},F.a.createElement(de,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),F.a.createElement("div",{className:Y.a.footerWrap},F.a.createElement(C.a.Item,null,F.a.createElement(x.a,{className:"mr5",size:"large",onClick:function(){c()}},"\u53D6\u6D88"),F.a.createElement(x.a,{size:"large",type:"primary",htmlType:"submit",loading:Q["account/appplySchool"]},"\u4FDD\u5B58")))))};J.a=Object(he.a)(function(_e){var W=_e.account,Ee=_e.loading,$=_e.globalSetting;return{account:W,globalSetting:$,loading:Ee.effects}})(pe)},JzwI:function(ce,J,e){ce.exports={flexRow:"flexRow___OsWMo",flexColumn:"flexColumn___2c88T",formWrap:"formWrap___ir8nR",example:"example___tgHq4",footerWrap:"footerWrap___C29I6"}},LdHM:function(ce,J,e){"use strict";e.d(J,"b",function(){return he}),e.d(J,"a",function(){return G});var R=e("1OyB"),M=e("vuIU"),te=e("Ji7U"),x=e("LK+K"),p=e("q1tI"),j=e("rePB"),X=e("Ff2n"),oe=e("ODXe"),w=e("4IlW"),le=e("bX4T"),C=e("YrtM"),T=e("TSYQ"),g=e.n(T),I=e("+nKL"),B=e("8OUc"),S=function(o,u){var b=o.prefixCls,D=o.id,A=o.flattenOptions,v=o.childrenAsData,h=o.values,a=o.searchValue,n=o.multiple,l=o.defaultActiveFirstOption,i=o.height,m=o.itemHeight,t=o.notFoundContent,_=o.open,s=o.menuItemSelectedIcon,O=o.virtual,E=o.onSelect,P=o.onToggleOpen,U=o.onActiveValue,ae=o.onScroll,K=o.onMouseEnter,k="".concat(b,"-item"),z=Object(C.a)(function(){return A},[_,A],function(ye,q){return q[0]&&ye[1]!==q[1]}),be=p.useRef(null),Z=function(q){q.preventDefault()},Re=function(q){be.current&&be.current.scrollTo({index:q})},Me=function(q){for(var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Oe=z.length,je=0;je1&&arguments[1]!==void 0?arguments[1]:!1;return Object(N.a)(c).map(function(u,b){if(!p.isValidElement(u)||!u.type)return null;var D=u.type.isSelectOptGroup,A=u.key,v=u.props,h=v.children,a=Object(X.a)(v,["children"]);return o||!D?Y(u):Object(se.a)(Object(se.a)({key:"__RC_SELECT_GRP__".concat(A===null?b:A,"__"),label:A},a),{},{options:fe(h)})}).filter(function(u){return u})}var de=e("2Qr1"),pe=e("qNPg"),_e=e("U8pU"),W=e("Kwbf"),Ee=e("WKfj");function $(c){var o=c.mode,u=c.options,b=c.children,D=c.backfill,A=c.allowClear,v=c.placeholder,h=c.getInputElement,a=c.showSearch,n=c.onSearch,l=c.defaultOpen,i=c.autoFocus,m=c.labelInValue,t=c.value,_=c.inputValue,s=c.optionLabelProp,O=o==="multiple"||o==="tags",E=a!==void 0?a:O||o==="combobox",P=u||fe(b);if(Object(W.a)(o!=="tags"||P.every(function(k){return!k.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),o==="tags"||o==="combobox"){var U=P.some(function(k){return k.options?k.options.some(function(z){return typeof("value"in z?z.value:z.key)=="number"}):typeof("value"in k?k.value:k.key)=="number"});Object(W.a)(!U,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(W.a)(o!=="combobox"||!s,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(W.a)(o==="combobox"||!D,"`backfill` only works with `combobox` mode."),Object(W.a)(o==="combobox"||!h,"`getInputElement` only work with `combobox` mode."),Object(W.b)(o!=="combobox"||!h||!A||!v,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),n&&!E&&o!=="combobox"&&o!=="tags"&&Object(W.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(W.b)(!l||i,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),t!=null){var ae=Object(Ee.d)(t);Object(W.a)(!m||ae.every(function(k){return Object(_e.a)(k)==="object"&&("key"in k||"value"in k)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(W.a)(!O||Array.isArray(t),"`value` should be array when `mode` is `multiple` or `tags`")}if(b){var K=null;Object(N.a)(b).some(function(k){if(!p.isValidElement(k)||!k.type)return!1;var z=k.type;if(z.isSelectOption)return!1;if(z.isSelectOptGroup){var be=Object(N.a)(k.props.children).every(function(Z){return!p.isValidElement(Z)||!k.type||Z.type.isSelectOption?!0:(K=Z.type,!1)});return!be}return K=z,!0}),K&&Object(W.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(K.displayName||K.name||K,"`.")),Object(W.a)(_===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var Q=$,d=Object(pe.a)({prefixCls:"rc-select",components:{optionList:re},convertChildrenToData:fe,flattenOptions:de.d,getLabeledValue:de.e,filterOptions:de.b,isValueDisabled:de.g,findValueOption:de.c,warningProps:Q,fillOptionsWithMissingValue:de.a}),ee=function(c){Object(te.a)(u,c);var o=Object(x.a)(u);function u(){var b;return Object(R.a)(this,u),b=o.apply(this,arguments),b.selectRef=p.createRef(),b.focus=function(){b.selectRef.current.focus()},b.blur=function(){b.selectRef.current.blur()},b}return Object(M.a)(u,[{key:"render",value:function(){return p.createElement(d,Object.assign({ref:this.selectRef},this.props))}}]),u}(p.Component);ee.Option=he,ee.OptGroup=G;var f=ee,r=J.c=f},Lo1I:function(ce,J,e){ce.exports={wrap:"wrap___1qvdb",content:"content___1_m94",hint:"hint___nSK1F",title:"title___2q9jC",titleWrap:"titleWrap___1O9xz",formWrap:"formWrap___2WseM",identityWrap:"identityWrap___2NSHB",schoolHintWrap:"schoolHintWrap___tihDG",colorCDCDCD:"colorCDCDCD___2WwD1",color0152d9:"color0152d9___2HFJQ",submitButton:"submitButton___2RxzB",submitButtondiv:"submitButtondiv___1xAxe",glow:"glow___3XNnL",staffidInput:"staffidInput___122cJ"}},OLES:function(ce,J,e){"use strict";var R=e("U8pU"),M=e("VTBJ"),te=e("Ff2n"),x=e("q1tI"),p=e("uciX"),j=e("7ixt"),X=function(g){var I=g.overlay,B=g.prefixCls,S=g.id,V=g.overlayInnerStyle;return x.createElement("div",{className:"".concat(B,"-inner"),id:S,role:"tooltip",style:V},typeof I=="function"?I():I)},oe=X,w=function(g,I){var B=g.overlayClassName,S=g.trigger,V=S===void 0?["hover"]:S,re=g.mouseEnterDelay,F=re===void 0?0:re,he=g.mouseLeaveDelay,ie=he===void 0?.1:he,G=g.overlayStyle,se=g.prefixCls,N=se===void 0?"rc-tooltip":se,Y=g.children,fe=g.onVisibleChange,de=g.afterVisibleChange,pe=g.transitionName,_e=g.animation,W=g.placement,Ee=W===void 0?"right":W,$=g.align,Q=$===void 0?{}:$,d=g.destroyTooltipOnHide,ee=d===void 0?!1:d,f=g.defaultVisible,r=g.getTooltipContainer,c=g.overlayInnerStyle,o=Object(te.a)(g,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),u=Object(x.useRef)(null);Object(x.useImperativeHandle)(I,function(){return u.current});var b=Object(M.a)({},o);"visible"in g&&(b.popupVisible=g.visible);var D=function(){var n=g.arrowContent,l=n===void 0?null:n,i=g.overlay,m=g.id;return[x.createElement("div",{className:"".concat(N,"-arrow"),key:"arrow"},l),x.createElement(oe,{key:"content",prefixCls:N,id:m,overlay:i,overlayInnerStyle:c})]},A=!1,v=!1;if(typeof ee=="boolean")A=ee;else if(ee&&Object(R.a)(ee)==="object"){var h=ee.keepParent;A=h===!0,v=h===!1}return x.createElement(p.a,Object.assign({popupClassName:B,prefixCls:N,popup:D,action:V,builtinPlacements:j.a,popupPlacement:Ee,ref:u,popupAlign:Q,getPopupContainer:r,onPopupVisibleChange:fe,afterPopupVisibleChange:de,popupTransitionName:pe,popupAnimation:_e,defaultPopupVisible:f,destroyPopupOnHide:A,autoDestroy:v,mouseLeaveDelay:ie,popupStyle:G,mouseEnterDelay:F},b),Y)},le=Object(x.forwardRef)(w),C=J.a=le},RuH0:function(ce,J,e){ce.exports={flexRow:"flexRow___1vtNB",flexColumn:"flexColumn___38Gv5",formWrap:"formWrap___6xwEb",example:"example___226lp",footerWrap:"footerWrap___238nx"}},RxwV:function(ce,J,e){"use strict";var R=e("q1tI"),M=e("uciX"),te=e("2W6z"),x=e.n(te),p=e("4IlW"),j=e("uK0f"),X=e.n(j);function oe(a,n){if(a===n)return!0;if(!a||!n)return!1;var l=a.length;if(n.length!==l)return!1;for(var i=0;i0;(Z||t.isLeaf===!1)&&(z+=" ".concat(O,"-menu-item-expand"),t.loading||(be=R.createElement("span",{className:"".concat(O,"-menu-item-expand-icon")},P))),E==="hover"&&(Z||t.isLeaf===!1)&&(k={onMouseEnter:this.delayOnSelect.bind(this,ae),onMouseLeave:this.delayOnSelect.bind(this),onClick:ae}),this.isActiveOption(t,_)&&(z+=" ".concat(O,"-menu-item-active"),k.ref=this.saveMenuItem(_)),t.disabled&&(z+=" ".concat(O,"-menu-item-disabled"));var Re=null;t.loading&&(z+=" ".concat(O,"-menu-item-loading"),Re=U||null);var Me="";return"title"in t?Me=t.title:typeof t[this.getFieldName("label")]=="string"&&(Me=t[this.getFieldName("label")]),R.createElement("li",Object.assign({key:t[this.getFieldName("value")],className:z,title:Me},k,{role:"menuitem",onMouseDown:function(De){return De.preventDefault()}}),t[this.getFieldName("label")],be,Re)}},{key:"getActiveOptions",value:function(t){var _=this,s=this.props.options,O=t||this.props.activeValue;return X()(s,function(E,P){return E[_.getFieldName("value")]===O[P]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var t=this,_=this.props.options,s=this.getActiveOptions().map(function(O){return O[t.getFieldName("children")]}).filter(function(O){return!!O});return s.unshift(_),s}},{key:"delayOnSelect",value:function(t){for(var _=this,s=arguments.length,O=new Array(s>1?s-1:0),E=1;E=0)continue;if(!Object.prototype.propertyIsEnumerable.call(a,i))continue;l[i]=a[i]}}return l}function fe(a,n){if(a==null)return{};var l={},i=Object.keys(a),m,t;for(t=0;t=0)continue;l[m]=a[m]}return l}function de(a){return Ee(a)||W(a)||_e(a)||pe()}function pe(){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 _e(a,n){if(!a)return;if(typeof a=="string")return $(a,n);var l=Object.prototype.toString.call(a).slice(8,-1);if(l==="Object"&&a.constructor&&(l=a.constructor.name),l==="Map"||l==="Set")return Array.from(a);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return $(a,n)}function W(a){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(a))return Array.from(a)}function Ee(a){if(Array.isArray(a))return $(a)}function $(a,n){(n==null||n>a.length)&&(n=a.length);for(var l=0,i=new Array(n);l=U.length?0:K):(K-=1,K=K<0?U.length-1:K):K=0,E[P]=U[K][t.getFieldName("value")]}else if(s.keyCode===p.a.LEFT||s.keyCode===p.a.BACKSPACE)s.preventDefault(),E.splice(E.length-1,1);else if(s.keyCode===p.a.RIGHT)s.preventDefault(),U[ae]&&U[ae][t.getFieldName("children")]&&E.push(U[ae][t.getFieldName("children")][0][t.getFieldName("value")]);else if(s.keyCode===p.a.ESC||s.keyCode===p.a.TAB){t.setPopupVisible(!1);return}(!E||E.length===0)&&t.setPopupVisible(!1);var k=t.getActiveOptions(E),z=k[k.length-1];t.handleMenuSelect(z,k.length-1,s),t.props.onKeyDown&&t.props.onKeyDown(s)},t.saveTrigger=function(s){t.trigger=s};var _=[];return"value"in m?_=m.value||[]:"defaultValue"in m&&(_=m.defaultValue||[]),x()(!("filedNames"in m),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),t.state={popupVisible:m.popupVisible,activeValue:_,value:_,prevProps:m},t.defaultFieldNames={label:"label",value:"value",children:"children"},t}return ee(i,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(t){var _=this.defaultFieldNames,s=this.props,O=s.fieldNames,E=s.filedNames;return"filedNames"in this.props?E[t]||_[t]:O[t]||_[t]}},{key:"getFieldNames",value:function(){var t=this.props,_=t.fieldNames,s=t.filedNames;return"filedNames"in this.props?s:_}},{key:"getCurrentLevelOptions",value:function(){var t=this,_=this.props.options,s=_===void 0?[]:_,O=this.state.activeValue,E=O===void 0?[]:O,P=X()(s,function(U,ae){return U[t.getFieldName("value")]===E[ae]},{childrenKeyName:this.getFieldName("children")});return P[P.length-2]?P[P.length-2][this.getFieldName("children")]:de(s).filter(function(U){return!U.disabled})}},{key:"getActiveOptions",value:function(t){var _=this;return X()(this.props.options||[],function(s,O){return s[_.getFieldName("value")]===t[O]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var t=this.props,_=t.prefixCls,s=t.transitionName,O=t.popupClassName,E=t.options,P=E===void 0?[]:E,U=t.disabled,ae=t.builtinPlacements,K=t.popupPlacement,k=t.children,z=t.dropdownRender,be=Y(t,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),Z=R.createElement("div",null),Re="";P&&P.length>0?Z=R.createElement(ie,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):Re=" ".concat(_,"-menus-empty");var Me=Z;return z&&(Me=z(Z)),R.createElement(M.a,Object.assign({ref:this.saveTrigger},be,{popupPlacement:K,builtinPlacements:ae,popupTransitionName:s,action:U?[]:["click"],popupVisible:U?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(_,"-menus"),popupClassName:O+Re,popup:Me}),R.cloneElement(k,{onKeyDown:this.handleKeyDown,tabIndex:U?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(t,_){var s=_.prevProps,O=s===void 0?{}:s,E={prevProps:t};return"value"in t&&!oe(O.value,t.value)&&(E.value=t.value||[],"loadData"in t||(E.activeValue=t.value||[])),"popupVisible"in t&&(E.popupVisible=t.popupVisible),E}}]),i}(R.Component);return a.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:se,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},a}(),v=A,h=J.a=v},UZu5:function(ce,J,e){},Y1PL:function(ce,J,e){"use strict";e.r(J),e.d(J,"ResizableTextArea",function(){return b});var R=e("wx14"),M=e("1OyB"),te=e("vuIU"),x=e("Ji7U"),p=e("LK+K"),j=e("q1tI"),X=e("VTBJ"),oe=e("rePB"),w=e("Zm9Q"),le=e("Kwbf"),C=e("c+Xe"),T=e("m+aA"),g=e("bdgK"),I=new Map;function B(v){v.forEach(function(h){var a,n=h.target;(a=I.get(n))===null||a===void 0||a.forEach(function(l){return l(n)})})}var S=new g.default(B),V=null,re=null;function F(v,h){I.has(v)||(I.set(v,new Set),S.observe(v)),I.get(v).add(h)}function he(v,h){I.has(v)&&(I.get(v).delete(h),I.get(v).size||(S.unobserve(v),I.delete(v)))}var ie=function(v){Object(x.a)(a,v);var h=Object(p.a)(a);function a(){return Object(M.a)(this,a),h.apply(this,arguments)}return Object(te.a)(a,[{key:"render",value:function(){return this.props.children}}]),a}(j.Component),G=j.createContext(null);function se(v){var h=v.children,a=v.onBatchResize,n=j.useRef(0),l=j.useRef([]),i=j.useContext(G),m=j.useCallback(function(t,_,s){n.current+=1;var O=n.current;l.current.push({size:t,element:_,data:s}),Promise.resolve().then(function(){O===n.current&&(a==null||a(l.current),l.current=[])}),i==null||i(t,_,s)},[a,i]);return j.createElement(G.Provider,{value:m},h)}function N(v){var h=v.children,a=v.disabled,n=j.useRef(null),l=j.useRef(null),i=j.useContext(G),m=j.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),t=j.isValidElement(h)&&Object(C.c)(h),_=t?h.ref:null,s=j.useMemo(function(){return Object(C.a)(_,n)},[_,n]),O=j.useRef(v);O.current=v;var E=j.useCallback(function(P){var U=O.current,ae=U.onResize,K=U.data,k=P.getBoundingClientRect(),z=k.width,be=k.height,Z=P.offsetWidth,Re=P.offsetHeight,Me=Math.floor(z),Ye=Math.floor(be);if(m.current.width!==Me||m.current.height!==Ye||m.current.offsetWidth!==Z||m.current.offsetHeight!==Re){var De={width:Me,height:Ye,offsetWidth:Z,offsetHeight:Re};m.current=De;var Le=Z===Math.round(z)?z:Z,Ze=Re===Math.round(be)?be:Re,ne=Object(X.a)(Object(X.a)({},De),{},{offsetWidth:Le,offsetHeight:Ze});i==null||i(ne,P,K),ae&&Promise.resolve().then(function(){ae(ne,P)})}},[]);return j.useEffect(function(){var P=Object(T.a)(n.current)||Object(T.a)(l.current);return P&&!a&&F(P,E),function(){return he(P,E)}},[n.current,a]),j.createElement(ie,{ref:l},t?j.cloneElement(h,{ref:s}):h)}var Y="rc-observer-key";function fe(v){var h=v.children,a=Object(w.a)(h);return a.map(function(n,l){var i=(n==null?void 0:n.key)||"".concat(Y,"-").concat(l);return j.createElement(N,Object(R.a)({},v,{key:i}),n)})}fe.Collection=se;var de=fe,pe=e("bT9E"),_e=e("TSYQ"),W=e.n(_e),Ee=` + min-height:0 !important; + max-height:none !important; + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important +`,$=["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"],Q={},d;function ee(v){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=v.getAttribute("id")||v.getAttribute("data-reactid")||v.getAttribute("name");if(h&&Q[a])return Q[a];var n=window.getComputedStyle(v),l=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),m=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),t=$.map(function(s){return"".concat(s,":").concat(n.getPropertyValue(s))}).join(";"),_={sizingStyle:t,paddingSize:i,borderSize:m,boxSizing:l};return h&&a&&(Q[a]=_),_}function f(v){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;d||(d=document.createElement("textarea"),d.setAttribute("tab-index","-1"),d.setAttribute("aria-hidden","true"),document.body.appendChild(d)),v.getAttribute("wrap")?d.setAttribute("wrap",v.getAttribute("wrap")):d.removeAttribute("wrap");var l=ee(v,h),i=l.paddingSize,m=l.borderSize,t=l.boxSizing,_=l.sizingStyle;d.setAttribute("style","".concat(_,";").concat(Ee)),d.value=v.value||v.placeholder||"";var s=Number.MIN_SAFE_INTEGER,O=Number.MAX_SAFE_INTEGER,E=d.scrollHeight,P;if(t==="border-box"?E+=m:t==="content-box"&&(E-=i),a!==null||n!==null){d.value=" ";var U=d.scrollHeight-i;a!==null&&(s=U*a,t==="border-box"&&(s=s+i+m),E=Math.max(s,E)),n!==null&&(O=U*n,t==="border-box"&&(O=O+i+m),P=E>O?"":"hidden",E=Math.min(O,E))}return{height:E,minHeight:s,maxHeight:O,overflowY:P,resize:"none"}}var r=e("Gytx"),c=e.n(r),o;(function(v){v[v.NONE=0]="NONE",v[v.RESIZING=1]="RESIZING",v[v.RESIZED=2]="RESIZED"})(o||(o={}));var u=function(v){Object(x.a)(a,v);var h=Object(p.a)(a);function a(n){var l;return Object(M.a)(this,a),l=h.call(this,n),l.nextFrameActionId=void 0,l.resizeFrameId=void 0,l.textArea=void 0,l.saveTextArea=function(i){l.textArea=i},l.handleResize=function(i){var m=l.state.resizeStatus,t=l.props,_=t.autoSize,s=t.onResize;if(m!==o.NONE)return;typeof s=="function"&&s(i),_&&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 m=i.minRows,t=i.maxRows,_=f(l.textArea,!1,m,t);l.setState({textareaStyles:_,resizeStatus:o.RESIZING},function(){cancelAnimationFrame(l.resizeFrameId),l.resizeFrameId=requestAnimationFrame(function(){l.setState({resizeStatus:o.RESIZED},function(){l.resizeFrameId=requestAnimationFrame(function(){l.setState({resizeStatus:o.NONE}),l.fixFirefoxAutoScroll()})})})})},l.renderTextArea=function(){var i=l.props,m=i.prefixCls,t=m===void 0?"rc-textarea":m,_=i.autoSize,s=i.onResize,O=i.className,E=i.disabled,P=l.state,U=P.textareaStyles,ae=P.resizeStatus,K=Object(pe.a)(l.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),k=W()(t,O,Object(oe.a)({},"".concat(t,"-disabled"),E));"value"in K&&(K.value=K.value||"");var z=Object(X.a)(Object(X.a)(Object(X.a)({},l.props.style),U),ae===o.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return j.createElement(de,{onResize:l.handleResize,disabled:!(_||s)},j.createElement("textarea",Object(R.a)({},K,{className:k,style:z,ref:l.saveTextArea})))},l.state={textareaStyles:{},resizeStatus:o.NONE},l}return Object(te.a)(a,[{key:"componentDidUpdate",value:function(l){(l.value!==this.props.value||!c()(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(m){}}},{key:"render",value:function(){return this.renderTextArea()}}]),a}(j.Component),b=u,D=function(v){Object(x.a)(a,v);var h=Object(p.a)(a);function a(n){var l;Object(M.a)(this,a),l=h.call(this,n),l.resizableTextArea=void 0,l.focus=function(){l.resizableTextArea.textArea.focus()},l.saveTextArea=function(m){l.resizableTextArea=m},l.handleChange=function(m){var t=l.props.onChange;l.setValue(m.target.value,function(){l.resizableTextArea.resizeTextarea()}),t&&t(m)},l.handleKeyDown=function(m){var t=l.props,_=t.onPressEnter,s=t.onKeyDown;m.keyCode===13&&_&&_(m),s&&s(m)};var i=typeof n.value=="undefined"||n.value===null?n.defaultValue:n.value;return l.state={value:i},l}return Object(te.a)(a,[{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 j.createElement(b,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}}]),a}(j.Component),A=J.default=D},Z3SC:function(ce,J,e){"use strict";e.r(J),e.d(J,"identityMap",function(){return t});var R=e("+L6B"),M=e("2/Rp"),te=e("DZo9"),x=e("8z0m"),p=e("oBTY"),j=e("7Kak"),X=e("9yH6"),oe=e("O3gP"),w=e("lrIw"),le=e("14J3"),C=e("BMrR"),T=e("jCWc"),g=e("kPKH"),I=e("5Dmo"),B=e("3S7+"),S=e("0Owb"),V=e("2qtc"),re=e("kLXV"),F=e("k1fw"),he=e("miYZ"),ie=e("tsqr"),G=e("9og8"),se=e("y8nQ"),N=e("Vl3Y"),Y=e("tJVT"),fe=e("PpiC"),de=e("5NDa"),pe=e("5rEg"),_e=e("OaEy"),W=e("2fM7"),Ee=e("WmNS"),$=e.n(Ee),Q=e("q1tI"),d=e.n(Q),ee=e("9kvl"),f=e("Lo1I"),r=e.n(f),c=e("HoYA"),o=e("4nbu"),u=e("yTi+"),b=e.n(u),D=e("1vsH"),A=e("l04A"),v=e("ye1Q"),h=e("xvlK"),a=e("kaH+"),n=e("dhSg"),l=e("m3rI"),i=W.a.Option,m=pe.a.TextArea,t={teacher:"\u6559\u5E08",student:"\u5B66\u751F",professional:"\u4E13\u4E1A\u4EBA\u58EB"},_=10,s=20,O=function(P){var U,ae=P.user,K=P.account,k=P.globalSetting,z=P.shixunHomeworks,be=P.loading,Z=P.dispatch,Re=Object(fe.a)(P,["user","account","globalSetting","shixunHomeworks","loading","dispatch"]),Me=N.a.useForm(),Ye=Object(Y.a)(Me,1),De=Ye[0],Le=Object(Q.useState)({}),Ze=Object(Y.a)(Le,2),ne=Ze[0],We=Ze[1],et=Object(Q.useState)([]),ye=Object(Y.a)(et,2),q=ye[0],ve=ye[1],Oe=Object(Q.useState)([]),je=Object(Y.a)(Oe,2),ge=je[0],we=je[1],$e=Object(Q.useState)([]),Ke=Object(Y.a)($e,2),Te=Ke[0],rt=Ke[1],ct=Object(Q.useState)([]),ut=Object(Y.a)(ct,2),tt=ut[0],mt=ut[1],He=Object(Q.useState)(!0),Ve=Object(Y.a)(He,2),Xe=Ve[0],at=Ve[1],ft=Object(Q.useState)(!1),it=Object(Y.a)(ft,2),Gt=it[0],Yt=it[1],Jt=Object(Q.useState)(),Ut=Object(Y.a)(Jt,2),Qe=Ut[0],Tt=Ut[1],Zt=Object(Q.useState)(null),xt=Object(Y.a)(Zt,2),St=xt[0],Qt=xt[1],qt=Object(Q.useState)(!0),Nt=Object(Y.a)(qt,2),ea=Nt[0],Ft=Nt[1],ta=Object(Q.useState)(),Lt=Object(Y.a)(ta,2),fa=Lt[0],va=Lt[1],aa=Object(Q.useState)(!1),wt=Object(Y.a)(aa,2),la=wt[0],pa=wt[1],na=Object(Q.useState)([]),It=Object(Y.a)(na,2),st=It[0],Bt=It[1],Wt=K.basicInfo,Kt=Wt===void 0?{}:Wt,Vt=Kt&&Kt.professional_certification=="certified",dt=Vt?{visible:!1}:{visible:!1};Object(Q.useEffect)(function(){zt(),Object(G.a)($.a.mark(function H(){var y;return $.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.next=2,kt();case 2:y=ue.sent,rt(y==null?void 0:y.departments);case 4:case"end":return ue.stop()}},H)}))()},[]);var zt=function(){var H=Object(G.a)($.a.mark(function y(){var L;return $.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return Ft(!0),me.next=3,Z({type:"account/getSchoolOption"});case 3:L=me.sent,Ft(!1),ve(L==null?void 0:L.schools);case 6:case"end":return me.stop()}},y)}));return function(){return H.apply(this,arguments)}}(),kt=function(){return Z({type:"account/getDepartmentOption",payload:{id:1}})};Object(Q.useEffect)(function(){var H;if(!K.basicInfo)return;var y=K.basicInfo,L={nickname:y.nickname,name:y.show_realname?y.name:Object(D.E)(y.name),gender:y.gender,city:[y.location,y.location_city],identity:y.identity,school:y.school_name,department:y.department_name||((H=Te[0])===null||H===void 0?void 0:H.name),studentNo:y.student_id,edu_entry_year:y.edu_entry_year,edu_background:y.edu_background,brief_introduction:y.brief_introduction,jobTitle:y.identity=="teacher"?y.technical_title:"\u6559\u6388",manager:y.identity=="professional"?y.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};y!=null&&y.face_image&&Bt([{uid:"111",name:"111",url:l.a.API_SERVER+y.face_image}]),Tt(y.name),at(y.show_realname),Qt(y.identity),De.setFieldsValue(L),We(L)},[K.basicInfo,Te]);var _a=function(){Z({type:"account/setActionTabs",payload:{key:"Account-AppplySchool"}})},oa=function(){if(!q.find(function(y){return y.name===ne.school})){ie.b.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}Z({type:"account/setActionTabs",payload:{key:"Account-AppplyDepartment"}})},ra=function(y){var L;if(We(Object(F.a)({},De.getFieldsValue())),"school"in y){we(q.filter(function(me){return me.name.includes(y.school)}));var ue=(q.find(function(me){return me.name===y.school})||{}).id;ue?$t(y.school):(De.setFieldsValue({department:""}),We(Object(F.a)(Object(F.a)({},ne),{school:y.school,department:""})))}(y==null||((L=y.nickname)===null||L===void 0)?void 0:L.length)<=0&&(at(!0),De.setFieldsValue({name:Qe})),"name"in y&&Tt(y.name)},ua=function(){var y=!Xe;at(y);var L=y?Qe:Object(D.E)(Qe);De.setFieldsValue({name:L})},$t=function(){var H=Object(G.a)($.a.mark(function y(L,ue){var me,ze,Ie,Se,Pe,Ne;return $.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Se=(me=q.find(function(qe){return qe.name===L}))===null||me===void 0?void 0:me.id,Ce.next=3,kt();case 3:if(Ce.t0=Ce.sent,Ce.t0){Ce.next=6;break}Ce.t0={};case 6:Pe=Ce.t0,rt(Pe==null?void 0:Pe.departments),Ne=ue||(Pe==null||((ze=Pe.departments)===null||ze===void 0||((Ie=ze[0])===null||Ie===void 0))?void 0:Ie.name),De.setFieldsValue({department:Ne}),We(Object(F.a)(Object(F.a)({},ne),{school:L,department:Ne}));case 11:case"end":return Ce.stop()}},y)}));return function(L,ue){return H.apply(this,arguments)}}(),ia=function(){var H=Object(G.a)($.a.mark(function y(L){return $.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return me.next=2,zt();case 2:De.setFieldsValue({school:L,department:""}),We(Object(F.a)(Object(F.a)({},ne),{school:L,department:""}));case 4:case"end":return me.stop()}},y)}));return function(L){return H.apply(this,arguments)}}(),ba=function(){var H=Object(G.a)($.a.mark(function y(L){return $.a.wrap(function(me){for(;;)switch(me.prev=me.next){case 0:re.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:L?"\u60A8\u5DF2\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u4FEE\u6539\u59D3\u540D\u9700\u8981\u64A4\u9500\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u662F\u5426\u786E\u5B9A\u64A4\u9500?":"\u60A8\u5DF2\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u4FEE\u6539\u4FE1\u606F\u9700\u8981\u64A4\u9500\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u662F\u5426\u786E\u5B9A\u64A4\u9500?",onOk:function(){var ze=Object(G.a)($.a.mark(function Se(){var Pe,Ne,Ge,Ce;return $.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(!L){Ae.next=6;break}return Ae.next=3,Object(A.g)({login:(Pe=ae.userInfo)===null||Pe===void 0?void 0:Pe.login});case 3:Ae.t0=Ae.sent,Ae.next=9;break;case 6:return Ae.next=8,Object(A.i)({login:(Ne=ae.userInfo)===null||Ne===void 0?void 0:Ne.login});case 8:Ae.t0=Ae.sent;case 9:Ge=Ae.t0,Ge&&(ie.b.success(L?"\u64A4\u9500\u5B9E\u540D\u8BA4\u8BC1\u6210\u529F":"\u64A4\u9500\u804C\u4E1A\u8BA4\u8BC1\u6210\u529F"),Z({type:"account/getBasicInfo",payload:{login:(Ce=ae.userInfo)===null||Ce===void 0?void 0:Ce.login}}));case 11:case"end":return Ae.stop()}},Se)}));function Ie(){return ze.apply(this,arguments)}return Ie}()});case 1:case"end":return me.stop()}},y)}));return function(L){return H.apply(this,arguments)}}(),ha=function(){var y=new Date().getFullYear();return Array(31).fill({}).map(function(L,ue){return d.a.createElement(i,{key:ue,value:y-ue},d.a.createElement("span",null,y-ue))})},sa=function(){var H=Object(G.a)($.a.mark(function y(L){var ue,me,ze,Ie,Se,Pe,Ne,Ge,Ce,qe,Ae,vt,pt,Je,Xt,_t,bt,Be,ke,xe,ht,Et,yt,lt,gt,Ot;return $.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(ze=L.nickname,Ie=L.gender,Se=L.identity,Pe=L.studentNo,Ne=L.jobTitle,Ge=L.manager,Ce=L.school,qe=L.department,Ae=L.edu_background,vt=L.edu_entry_year,pt=L.brief_introduction,Je=L.face_image,Xt=L.staff_id,_t=(ue=Te.find(function(nt){return nt.name===qe}))===null||ue===void 0?void 0:ue.id,bt=(me=q.find(function(nt){return nt.name===Ce}))===null||me===void 0?void 0:me.id,Be=K.basicInfo,ke=[],Be.authentication!="uncertified"&&(Qe!=Be.name&&ke.push("\u59D3\u540D"),Ie!=Be.gender&&ke.push("\u6027\u522B")),xe=[],Vt&&(Se!=Be.identity?xe.push("\u804C\u4E1A"):(ne.identity==="student"&&(Pe!=Be.student_id&&xe.push("\u804C\u4E1A")),ne.identity==="teacher"&&(Ne!=Be.technical_title&&xe.push("\u804C\u4E1A")),ne.identity==="professional"&&(Ge!=Be.technical_title&&xe.push("\u804C\u4E1A"))),Ce!=Be.school_name&&xe.push("\u5B66\u6821/\u5355\u4F4D"),qe!=Be.department_name&&xe.push("\u9662\u7CFB/\u90E8\u95E8")),!(ke.length>0||xe.length>0)){Fe.next=12;break}re.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u672C\u6B21\u4FEE\u6539\u6D89\u53CA".concat(ke.toString().replaceAll(",","\u3001")).concat(ke.length>0&&xe.length>0?"\u3001":"").concat(xe.toString().replaceAll(",","\u3001"),"\uFF0C\u9700\u8981\u91CD\u65B0\u8FDB\u884C").concat(ke.length>0?"\u5B9E\u540D\u8BA4\u8BC1":"").concat(ke.length>0&&xe.length>0?"\u548C":"").concat(xe.length>0?"\u804C\u4E1A\u8BA4\u8BC1":"","\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FEE\u6539"),onOk:function(){var nt=Object(G.a)($.a.mark(function ma(){var Ct,Dt,Pt,At,Rt,ot,Mt,jt;return $.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(!(ke.length>0)){Ue.next=3;break}return Ue.next=3,Object(A.g)({login:(At=ae.userInfo)===null||At===void 0?void 0:At.login});case 3:if(!(xe.length>0)){Ue.next=6;break}return Ue.next=6,Object(A.i)({login:(Rt=ae.userInfo)===null||Rt===void 0?void 0:Rt.login});case 6:return Ue.next=8,Z({type:"account/updateAccount",payload:{id:(Ct=K.basicInfo)===null||Ct===void 0?void 0:Ct.id,department_id:_t,gender:Ie,identity:Se,location,name:Qe,nickname:ze,school_id:bt,edu_background:Ae,edu_entry_year:vt,show_realname:Xe,brief_introduction:pt,student_id:Pe,technical_title:Ne||Ge,face_image:Je==null||((Dt=Je.file)===null||Dt===void 0||((Pt=Dt.response)===null||Pt===void 0))?void 0:Pt.id,staff_id:Xt}});case 8:if(ot=Ue.sent,!((ot==null?void 0:ot.status)===-1)){Ue.next=11;break}return Ue.abrupt("return");case 11:if(!ot){Ue.next=19;break}if(ie.b.info("\u4FDD\u5B58\u6210\u529F"),(Mt=K.basicInfo)!==null&&Mt!==void 0&&Mt.base_info_completed||Z({type:"user/getUserInfo"}),Z({type:"account/getBasicInfo",payload:{login:(jt=ae.userInfo)===null||jt===void 0?void 0:jt.login}}),!(Se!==St&&Se==="teacher")){Ue.next=17;break}return Ue.abrupt("return");case 17:localStorage.getItem("Noviceguide")==="0"||Z({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:4,href:"/classrooms",text:d.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")}}),ee.d.push("/account/profile");case 19:case"end":return Ue.stop()}},ma)}));function ca(){return nt.apply(this,arguments)}return ca}()}),Fe.next=25;break;case 12:return Fe.next=14,Z({type:"account/updateAccount",payload:{id:(ht=K.basicInfo)===null||ht===void 0?void 0:ht.id,department_id:_t,gender:Ie,identity:Se,location,name:Qe,nickname:ze,school_id:bt,edu_background:Ae,edu_entry_year:vt,show_realname:Xe,brief_introduction:pt,student_id:Pe,technical_title:Ne||Ge,face_image:Je==null||((Et=Je.file)===null||Et===void 0||((yt=Et.response)===null||yt===void 0))?void 0:yt.id}});case 14:if(lt=Fe.sent,!((lt==null?void 0:lt.status)===-1)){Fe.next=17;break}return Fe.abrupt("return");case 17:if(!lt){Fe.next=25;break}if(ie.b.info("\u4FDD\u5B58\u6210\u529F"),(gt=K.basicInfo)!==null&>!==void 0&>.base_info_completed||Z({type:"user/getUserInfo"}),Z({type:"account/getBasicInfo",payload:{login:(Ot=ae.userInfo)===null||Ot===void 0?void 0:Ot.login}}),!(Se!==St&&Se==="teacher")){Fe.next=23;break}return Fe.abrupt("return");case 23:localStorage.getItem("Noviceguide")==="0"||Z({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:4,href:"/classrooms",text:d.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")}}),ee.d.push("/account/profile");case 25:case"end":return Fe.stop()}},y)}));return function(L){return H.apply(this,arguments)}}(),Ht=function(){Yt(!1),ee.d.push("/account/profile")},da=d.a.createElement("div",null,la?d.a.createElement(v.a,null):d.a.createElement(h.a,null),d.a.createElement("div",{style:{marginTop:8}},"\u4E0A\u4F20")),Ea=function(y,L){var ue=new FileReader;ue.addEventListener("load",function(){return L(ue.result)}),ue.readAsDataURL(y)};return d.a.createElement("section",{className:r.a.wrap},d.a.createElement("div",{className:r.a.content},d.a.createElement("div",{className:r.a.titleWrap},d.a.createElement("div",{className:r.a.title},"\u57FA\u672C\u4FE1\u606F")),d.a.createElement(N.a,{form:De,className:r.a.formWrap,layout:"horizontal",onValuesChange:ra,onFinish:sa},d.a.createElement(N.a.Item,{label:"\u59D3\u540D",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(_,"\u4E2A\u5B57\u7B26")},{validator:D.H}],extra:d.a.createElement("span",null,ne.nickname?Xe?"\u663E\u793A\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D":"\u9690\u85CF\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u4F60\u7684\u6635\u79F0":"\u586B\u5199\u6635\u79F0\u540E\u53EF\u8BBE\u7F6E\u59D3\u540D\u8FDB\u884C\u9690\u85CF\uFF08\u5F53\u8FDB\u884C\u59D3\u540D\u641C\u7D22\u65F6\uFF0C\u4F1A\u5C55\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D\uFF09")},d.a.createElement(pe.a,{disabled:ne.nickname?!Xe:!1,placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(_,"\u4E2A\u5B57\u7B26"),maxLength:_,addonAfter:ne.nickname?d.a.createElement("i",{style:{lineHeight:"26px"},className:"iconfont ".concat(Xe?"icon-xianshi":"icon-yincang"," font18 ").concat(r.a.color0152d9),onClick:ua}):null})),d.a.createElement(C.a,{gutter:[10,0]},d.a.createElement(g.a,null,d.a.createElement(B.a,Object(S.a)({placement:"bottom",title:function(){return d.a.createElement("div",null,d.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),d.a.createElement("div",null,"\u53EF\u5728",d.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},dt),d.a.createElement(N.a.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},d.a.createElement(W.a,{style:{width:160}},d.a.createElement(i,{value:"teacher"},"\u6559\u5E08"),d.a.createElement(i,{value:"student"},"\u5B66\u751F"))))),d.a.createElement(g.a,null,ne.identity==="student"&&d.a.createElement(B.a,Object(S.a)({placement:"bottom",title:function(){return d.a.createElement("div",null,d.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),d.a.createElement("div",null,"\u53EF\u5728",d.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},dt),d.a.createElement(N.a.Item,{initialValue:ne.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},d.a.createElement(pe.a,{style:{width:200},type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),ne.identity==="teacher"&&d.a.createElement(B.a,Object(S.a)({placement:"bottom",title:function(){return d.a.createElement("div",null,d.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),d.a.createElement("div",null,"\u53EF\u5728",d.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},dt),d.a.createElement(N.a.Item,{initialValue:ne.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},d.a.createElement(W.a,{style:{width:200}},d.a.createElement(i,{value:"\u6559\u6388"},"\u6559\u6388"),d.a.createElement(i,{value:"\u7814\u7A76\u5458"},"\u7814\u7A76\u5458"),d.a.createElement(i,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),d.a.createElement(i,{value:"\u526F\u7814\u7A76\u5458"},"\u526F\u7814\u7A76\u5458"),d.a.createElement(i,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),d.a.createElement(i,{value:"\u52A9\u7406\u7814\u7A76\u5458"},"\u52A9\u7406\u7814\u7A76\u5458"),d.a.createElement(i,{value:"\u52A9\u7406\u6559\u6388"},"\u52A9\u7406\u6559\u6388"))))),(ne.identity==="teacher"||ne.identity==="professional")&&d.a.createElement(g.a,{flex:1},d.a.createElement(N.a.Item,{label:"\u5DE5\u53F7",name:"studentNo",labelCol:{span:4},rules:[{required:!0},{validator:function(y,L){var ue=/[\u4E00-\u9FA5]/g;return ue.test(L)?Promise.reject("\u8BF7\u52FF\u8F93\u5165\u4E2D\u6587\u5B57\u7B26"):Promise.resolve()}}]},d.a.createElement(pe.a,{className:r.a.staffidInput})))),d.a.createElement(B.a,Object(S.a)({placement:"bottom",title:function(){return d.a.createElement("div",null,d.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),d.a.createElement("div",null,"\u53EF\u5728",d.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},dt),d.a.createElement(N.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",wrapperCol:{span:10},extra:!ea&&ne.department&&!(Te!=null&&Te.find(function(H){return H.name===ne.department}))&&d.a.createElement("div",{className:r.a.schoolHintWrap},d.a.createElement("span",{className:r.a.colorCDCDCD},ne.department?"\u672A\u627E\u5230\u5305\u542B\u201C".concat(ne.department,"\u201D\u7684\u9AD8\u6821\uFF0C"):"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),d.a.createElement("span",{className:"".concat(r.a.color0152d9," current"),onClick:oa},"\u7533\u8BF7\u65B0\u589E"))},d.a.createElement(w.a,{showSearch:!0,onChange:function(y){return mt(Te==null?void 0:Te.filter(function(L){return L.name.includes(y)}))},options:tt==null?void 0:tt.map(function(H){return{value:H.name}})}))),d.a.createElement(N.a.Item,{labelCol:{span:3},wrapperCol:{span:4},label:"\u6027\u522B",className:"mb0"},d.a.createElement(N.a.Item,{name:"gender"},d.a.createElement(X.a.Group,null,d.a.createElement(X.a,{value:0},"\u7537"),d.a.createElement(X.a,{value:1},"\u5973")))),d.a.createElement("div",{style:{display:"flex"}},d.a.createElement(N.a.Item,{label:"\u4E0A\u4F20\u8BC1\u4EF6\u7167",wrapperCol:{span:10},name:"face_image"},d.a.createElement(x.a,{listType:"picture-card",withCredentials:!0,className:"avatar-uploader",fileList:st,onPreview:function(y){n.a.publish("preview-image",y.thumbUrl||y.url)},action:"".concat(l.a.API_SERVER,"/api/attachments.json"),beforeUpload:function(y){var L=y.type==="image/jpeg"||y.type==="image/png";if(!L)return ie.b.error("\u60A8\u4E0A\u4F20\u7684\u4E0D\u662FJPG/PNG\u7C7B\u578B\u6587\u4EF6"),Promise.reject();var ue=y.size/1024/1024<1;return ue?L&&ue:(ie.b.error("\u6587\u4EF6\u4E0D\u80FD\u5927\u4E8E1MB"),Promise.reject())},onChange:function(y){Bt(Object(p.a)(y.fileList))}},(st==null?void 0:st.length)>0?null:da)),d.a.createElement("div",{style:{marginLeft:16,color:"#666666",display:"flex",flexDirection:"column",marginTop:5}},d.a.createElement("span",null,"\u8981\u6C42\uFF1A"),d.a.createElement("span",null,"1.\u5B66\u751F\u7167\u7247\u5FC5\u987B\u4E3A\u9AD8\u6E05\u7684\u4EBA\u8138\u7167"),d.a.createElement("span",null,"2.\u6309\u7167 \u59D3\u540D-\u5B66\u53F7 \u7684\u65B9\u5F0F\u6765\u547D\u540D\u7167\u7247"),d.a.createElement("span",null,"3.\u56FE\u7247\u5927\u5C0F\u57281MB\u4EE5\u5185"))),d.a.createElement(N.a.Item,null,d.a.createElement(M.a,{className:"".concat(z.actionTabs.type===2?r.a.submitButtondiv:r.a.submitButton," ml100"),size:"large",type:"primary",htmlType:"submit",loading:be["account/editAccount"]},"\u4FDD\u5B58"),d.a.createElement(M.a,{className:r.a.submitButton,size:"large",onClick:function(){return ee.d.push("/account/profile")}},"\u53D6\u6D88")))),d.a.createElement("div",{className:"".concat(r.a.hint," font14")},"* \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"),d.a.createElement(c.a,{visible:K.actionTabs.key==="Account-AppplySchool",onClose:function(){Z({type:"account/setActionTabs",payload:{}})},schoolName:ne.school,onSuccess:ia}),d.a.createElement(o.a,{visible:K.actionTabs.key==="Account-AppplyDepartment",onClose:function(){Z({type:"account/setActionTabs",payload:{}})},schoolId:(U=q.find(function(H){return H.name===ne.school}))===null||U===void 0?void 0:U.id,schoolName:ne.school,departmentName:ne.department,onSuccess:function(y){return $t(ne.school,y)}}),d.a.createElement(re.a,{centered:!0,destroyOnClose:!0,visible:Gt,title:"\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:648,onCancel:Ht,onOk:Ht},d.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},d.a.createElement("aside",{style:{padding:"8px 70px"}},d.a.createElement("span",{style:{letterSpacing:1}},"\u57FA\u4E8E\u60A8\u6240\u5728\u9662\u6821\u4E0E\u5E73\u53F0\u6709\u6DF1\u5EA6\u5408\u4F5C\uFF0C\u6211\u4EEC\u7279\u610F\u4E3A\u60A8\u914D\u5907\u4E86\u5E73\u53F0\u76841\u5BF91\u52A9"),d.a.createElement("br",null),"\u6559\uFF0C\u60A8\u53EF\u4EE5\u626B\u63CF\u4E0B\u65B9\u4E8C\u7EF4\u7801\u6DFB\u52A0\u52A9\u7406\u5FAE\u4FE1\uFF0C\u6211\u4EEC\u5C067*24\u5C0F\u65F6\u4E3A\u60A8\u7B54\u7591\u89E3\u60D1\u3002"),d.a.createElement("img",{src:b.a,width:162,height:162}))),d.a.createElement(a.a,null))};J.default=Object(ee.a)(function(E){var P=E.user,U=E.account,ae=E.loading,K=E.globalSetting,k=E.shixunHomeworks;return{user:P,account:U,globalSetting:K,loading:ae.effects,shixunHomeworks:k}})(O)},ZpRC:function(ce,J,e){"use strict";function R(C){return typeof C=="object"&&C!=null&&C.nodeType===1}function M(C,T){return(!T||C!=="hidden")&&C!=="visible"&&C!=="clip"}function te(C,T){if(C.clientHeightT||S>C&&V=T&&re>=g?S-C-I:V>T&&reg?V-T+B:0}var p=function(C,T){var g=window,I=T.scrollMode,B=T.block,S=T.inline,V=T.boundary,re=T.skipOverflowHiddenElements,F=typeof V=="function"?V:function(U){return U!==V};if(!R(C))throw new TypeError("Invalid target");for(var he=document.scrollingElement||document.documentElement,ie=[],G=C;R(G)&&F(G);){if((G=G.parentElement)===he){ie.push(G);break}G!=null&&G===document.body&&te(G)&&!te(document.documentElement)||G!=null&&te(G,re)&&ie.push(G)}for(var se=g.visualViewport?g.visualViewport.width:innerWidth,N=g.visualViewport?g.visualViewport.height:innerHeight,Y=window.scrollX||pageXOffset,fe=window.scrollY||pageYOffset,de=C.getBoundingClientRect(),pe=de.height,_e=de.width,W=de.top,Ee=de.right,$=de.bottom,Q=de.left,d=B==="start"||B==="nearest"?W:B==="end"?$:W+pe/2,ee=S==="center"?Q+_e/2:S==="end"?Ee:Q,f=[],r=0;r=0&&Q>=0&&$<=N&&Ee<=se&&W>=D&&$<=v&&Q>=h&&Ee<=A)return f;var a=getComputedStyle(c),n=parseInt(a.borderLeftWidth,10),l=parseInt(a.borderTopWidth,10),i=parseInt(a.borderRightWidth,10),m=parseInt(a.borderBottomWidth,10),t=0,_=0,s="offsetWidth"in c?c.offsetWidth-c.clientWidth-n-i:0,O="offsetHeight"in c?c.offsetHeight-c.clientHeight-l-m:0;if(he===c)t=B==="start"?d:B==="end"?d-N:B==="nearest"?x(fe,fe+N,N,l,m,fe+d,fe+d+pe,pe):d-N/2,_=S==="start"?ee:S==="center"?ee-se/2:S==="end"?ee-se:x(Y,Y+se,se,n,i,Y+ee,Y+ee+_e,_e),t=Math.max(0,t+fe),_=Math.max(0,_+Y);else{t=B==="start"?d-D-l:B==="end"?d-v+m+O:B==="nearest"?x(D,v,u,l,m+O,d,d+pe,pe):d-(D+u/2)+O/2,_=S==="start"?ee-h-n:S==="center"?ee-(h+b/2)+s/2:S==="end"?ee-A+i+s:x(h,A,b,n,i+s,ee,ee+_e,_e);var E=c.scrollLeft,P=c.scrollTop;d+=P-(t=Math.max(0,Math.min(P+t,c.scrollHeight-u+O))),ee+=E-(_=Math.max(0,Math.min(E+_,c.scrollWidth-b+s)))}f.push({el:c,top:t,left:_})}return f};function j(C){return C===Object(C)&&Object.keys(C).length!==0}function X(C,T){T===void 0&&(T="auto");var g="scrollBehavior"in document.body.style;C.forEach(function(I){var B=I.el,S=I.top,V=I.left;B.scroll&&g?B.scroll({top:S,left:V,behavior:T}):(B.scrollTop=S,B.scrollLeft=V)})}function oe(C){return C===!1?{block:"end",inline:"nearest"}:j(C)?C:{block:"start",inline:"nearest"}}function w(C,T){var g=!C.ownerDocument.documentElement.contains(C);if(j(T)&&typeof T.behavior=="function")return T.behavior(g?[]:p(C,T));if(g)return;var I=oe(T);return X(p(C,I),I.behavior)}var le=J.a=w},bT9E:function(ce,J,e){"use strict";e.d(J,"a",function(){return M});var R=e("VTBJ");function M(te,x){var p=Object(R.a)({},te);return Array.isArray(x)&&x.forEach(function(j){delete p[j]}),p}},gJ3r:function(ce,J,e){"use strict";e.d(J,"a",function(){return R});var R=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},"kaH+":function(ce,J,e){"use strict";var R=e("+L6B"),M=e("2/Rp"),te=e("tJVT"),x=e("q1tI"),p=e.n(x),j=e("UZu5"),X=e.n(j),oe=e("dhSg"),w=e("rLCj"),le=e("dF/Y"),C=e("4i/N");J.a=function(){var T=Object(x.useState)(""),g=Object(te.a)(T,2),I=g[0],B=g[1],S=Object(x.useState)(0),V=Object(te.a)(S,2),re=V[0],F=V[1],he=Object(x.useRef)("");Object(x.useEffect)(function(){var N=oe.a.subscribe("preview-image",function(Y){B(Y),document.body.style.overflow="hidden"});return N},[]),Object(x.useEffect)(function(){return document.addEventListener("keydown",ie),function(){document.removeEventListener("keydown",ie)}},[]),Object(x.useEffect)(function(){he.current=I},[I]);function ie(N){N.keyCode==27&&he.current&&G()}function G(){document.body.style.overflow="auto",B("")}function se(){F(re+90)}return p.a.createElement(x.Fragment,null,I?p.a.createElement("div",{className:"image-preview-container"},p.a.createElement("div",{className:"button-group"},p.a.createElement(M.a,{onClick:se},"\u65CB\u8F6C",p.a.createElement(w.a,null)),p.a.createElement(M.a,{href:I},"\u4E0B\u8F7D",p.a.createElement(le.a,null)),p.a.createElement(M.a,{onClick:G},"\u5173\u95ED",p.a.createElement(C.a,null))),p.a.createElement("div",{className:"preview-wrp-group"},p.a.createElement("img",{className:"image-preview",src:I,alt:"\u9884\u89C8\u5927\u56FE",style:{transform:"rotate(".concat(re,"deg)")}}))):null)}},uK0f:function(ce,J,e){(function(R,M){ce.exports=M()})(this,function(){"use strict";function R(M,te,x){x=x||{},x.childrenKeyName=x.childrenKeyName||"children";var p=M||[],j=[],X=0;do{var oe=p.filter(function(w){return te(w,X)})[0];if(!oe)break;j.push(oe),p=oe[x.childrenKeyName]||[],X+=1}while(p.length>0);return j}return R})},"yTi+":function(ce,J,e){ce.exports=e.p+"static/AssistantCode3.9bae6615.jpeg"}}]); diff --git a/p__Account__Profile__index.0d67ede8.async.js b/p__Account__Profile__index.0d67ede8.async.js new file mode 100644 index 0000000000..94a87c3352 --- /dev/null +++ b/p__Account__Profile__index.0d67ede8.async.js @@ -0,0 +1,12 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[32,16,31],{"4nbu":function(ce,H,e){"use strict";var j=e("2qtc"),T=e("kLXV"),te=e("+L6B"),U=e("2/Rp"),v=e("miYZ"),x=e("tsqr"),G=e("9og8"),oe=e("y8nQ"),D=e("Vl3Y"),le=e("tJVT"),O=e("PpiC"),M=e("5NDa"),g=e("5rEg"),I=e("WmNS"),B=e.n(I),N=e("q1tI"),K=e.n(N),re=e("9kvl"),S=e("JzwI"),se=e.n(S),ue=g.a.TextArea,$=function(L){var J=L.account,w=L.globalSetting,fe=L.loading,_e=L.dispatch,be=L.schoolName,V=L.departmentName,Ee=L.visible,Y=L.onClose,q=Y===void 0?function(){}:Y,d=L.onSuccess,ae=d===void 0?function(){}:d,f=Object(O.a)(L,["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"]),r=D.a.useForm(),c=Object(le.a)(r,1),o=c[0],u=Object(N.useRef)();Object(N.useEffect)(function(){u.current=f.schoolId},[f.schoolId]),Object(N.useEffect)(function(){o.setFieldsValue({department:V})},[V]);var b=function(){var P=Object(G.a)(B.a.mark(function R(_){var h,a,n,l;return B.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return h=_||{},a=h.department,n=h.remarks,m.next=3,_e({type:"account/appplyDepartment",payload:{school_id:u.current,name:a,remarks:n}});case 3:l=m.sent,q(),l&&(x.b.success("\u65B0\u589E\u9662\u7CFB/\u90E8\u95E8\u6210\u529F\uFF01"),ae(a));case 6:case"end":return m.stop()}},R)}));return function(_){return P.apply(this,arguments)}}();return K.a.createElement(T.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:Ee,title:"\u7533\u8BF7\u6DFB\u52A0\u5B50\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},K.a.createElement(D.a,{className:se.a.formWrap,form:o,labelCol:{span:4},wrapperCol:{span:20},onFinish:b},K.a.createElement(D.a.Item,{label:"\u5355\u4F4D\u540D\u79F0\uFF1A"},be),K.a.createElement(D.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"}]},K.a.createElement(g.a,{placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"})),K.a.createElement(D.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},K.a.createElement(ue,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),K.a.createElement("div",{className:se.a.footerWrap},K.a.createElement(D.a.Item,null,K.a.createElement(U.a,{className:"mr5",size:"large",onClick:function(){q()}},"\u53D6\u6D88"),K.a.createElement(U.a,{size:"large",type:"primary",htmlType:"submit",loading:fe["account/appplyDepartment"]},"\u4FDD\u5B58")))))};H.a=Object(re.a)(function(me){var L=me.account,J=me.loading,w=me.globalSetting;return{account:L,globalSetting:w,loading:J.effects}})($)},"4w5S":function(ce,H,e){"use strict";e.r(H);var j=e("DZo9"),T=e("8z0m"),te=e("y8nQ"),U=e("Vl3Y"),v=e("+L6B"),x=e("2/Rp"),G=e("PpiC"),oe=e("q1tI"),D=e.n(oe),le=e("9kvl"),O=e("vjIP"),M=e.n(O),g=e("Z3SC"),I=e("1vsH"),B=e("m3rI"),N=e("kaH+"),K=e("dhSg"),re=function(se){var ue=se.account,$=se.globalSetting,me=se.loading,L=se.dispatch,J=Object(G.a)(se,["account","globalSetting","loading","dispatch"]),w=ue.basicInfo;return D.a.createElement("section",{className:M.a.wrap},D.a.createElement("div",{className:M.a.content},D.a.createElement("div",{className:M.a.titleWrap},D.a.createElement("div",{className:M.a.title},"\u57FA\u672C\u4FE1\u606F"),D.a.createElement(x.a,{type:"primary",ghost:!0,onClick:function(){localStorage.getItem("Noviceguide")==="0"||L({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:2,href:"/account/profile/edit",text:D.a.createElement("div",null,"\u8BF7\u60A8\u5B8C\u5584\u4E00\u4E0B\u5E73\u53F0\u7684\u57FA\u672C\u4FE1\u606F\uFF0C\u5305\u62EC\uFF1A\u6635\u79F0\u3001\u804C\u4E1A\u3001\u5B66\u6821/\u5355\u4F4D\uFF0C \u70B9\u51FB\u4FDD\u5B58")}}),le.d.push("/account/profile/edit")}},"\u4FEE\u6539")),D.a.createElement(U.a,{className:M.a.formWrap,labelCol:{span:3},wrapperCol:{span:21},layout:"horizontal"},D.a.createElement(U.a.Item,{label:"\u59D3\u540D"},(w==null?void 0:w.show_realname)==!0?w==null?void 0:w.name:Object(I.E)(w==null?void 0:w.name)),D.a.createElement(U.a.Item,{label:"\u804C\u4E1A"},g.identityMap[w==null?void 0:w.identity],"\u3000",w==null?void 0:w.technical_title,D.a.createElement("span",{style:{marginLeft:12}},w==null?void 0:w.student_id)),D.a.createElement(U.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8"},w==null?void 0:w.department_name),D.a.createElement(U.a.Item,{label:"\u6027\u522B"},(w==null?void 0:w.gender)==0?"\u7537":"\u5973"),(w==null?void 0:w.face_image)&&D.a.createElement(U.a.Item,{label:"\u4E0A\u4F20\u8BC1\u4EF6\u7167"},D.a.createElement(T.a,{listType:"picture-card",withCredentials:!0,disabled:!0,onPreview:function(_e){K.a.publish("preview-image",_e.thumbUrl||_e.url)},className:"avatar-uploader",fileList:[{uid:"111",name:"111",url:B.a.API_SERVER+(w==null?void 0:w.face_image)}]})))),D.a.createElement("div",{className:"".concat(M.a.hint," font14")},"* \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"),D.a.createElement(N.a,null))};H.default=Object(le.a)(function(S){var se=S.account,ue=S.loading,$=S.globalSetting;return{account:se,globalSetting:$,loading:ue.models.index}})(re)},"7ixt":function(ce,H,e){"use strict";e.d(H,"a",function(){return te});var j={adjustX:1,adjustY:1},T=[0,0],te={left:{points:["cr","cl"],overflow:j,offset:[-4,0],targetOffset:T},right:{points:["cl","cr"],overflow:j,offset:[4,0],targetOffset:T},top:{points:["bc","tc"],overflow:j,offset:[0,-4],targetOffset:T},bottom:{points:["tc","bc"],overflow:j,offset:[0,4],targetOffset:T},topLeft:{points:["bl","tl"],overflow:j,offset:[0,-4],targetOffset:T},leftTop:{points:["tr","tl"],overflow:j,offset:[-4,0],targetOffset:T},topRight:{points:["br","tr"],overflow:j,offset:[0,-4],targetOffset:T},rightTop:{points:["tl","tr"],overflow:j,offset:[4,0],targetOffset:T},bottomRight:{points:["tr","br"],overflow:j,offset:[0,4],targetOffset:T},rightBottom:{points:["bl","br"],overflow:j,offset:[4,0],targetOffset:T},bottomLeft:{points:["tl","bl"],overflow:j,offset:[0,4],targetOffset:T},leftBottom:{points:["br","bl"],overflow:j,offset:[-4,0],targetOffset:T}},U=te},BU3w:function(ce,H,e){"use strict";e.d(H,"a",function(){return x});var j=e("MNnm"),T="rc-util-key";function te(G){if(G.attachTo)return G.attachTo;var oe=document.querySelector("head");return oe||document.body}function U(G){var oe,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(j.a)())return null;var le=document.createElement("style");if((oe=D.csp)===null||oe===void 0?void 0:oe.nonce){var O;le.nonce=(O=D.csp)===null||O===void 0?void 0:O.nonce}le.innerHTML=G;var M=te(D),g=M.firstChild;return D.prepend&&M.prepend?M.prepend(le):D.prepend&&g?M.insertBefore(le,g):M.appendChild(le),le}var v=new Map;function x(G,oe){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},le=te(D);if(!v.has(le)){var O=U("",D),M=O.parentNode;v.set(le,M),M.removeChild(O)}var g=Array.from(v.get(le).children).find(function(re){return re.tagName==="STYLE"&&re[T]===oe});if(g){var I,B;if(((I=D.csp)===null||I===void 0?void 0:I.nonce)&&g.nonce!==((B=D.csp)===null||B===void 0?void 0:B.nonce)){var N;g.nonce=(N=D.csp)===null||N===void 0?void 0:N.nonce}return g.innerHTML!==G&&(g.innerHTML=G),g}var K=U(G,D);return K[T]=oe,K}},GfqC:function(ce,H,e){"use strict";var j=e("q1tI"),T=e.n(j),te=e("TSYQ"),U=e.n(te);function v(f,r){var c="cannot "+f.method+" "+f.action+" "+r.status+"'",o=new Error(c);return o.status=r.status,o.method=f.method,o.url=f.action,o}function x(f){var r=f.responseText||f.response;if(!r)return r;try{return JSON.parse(r)}catch(c){return r}}function G(f){var r=new XMLHttpRequest;f.onProgress&&r.upload&&(r.upload.onprogress=function(b){b.total>0&&(b.percent=b.loaded/b.total*100),f.onProgress(b)});var c=new FormData;f.data&&Object.keys(f.data).forEach(function(u){var b=f.data[u];if(Array.isArray(b)){b.forEach(function(P){c.append(u+"[]",P)});return}c.append(u,f.data[u])}),f.file instanceof Blob?c.append(f.filename,f.file,f.file.name):c.append(f.filename,f.file),r.onerror=function(b){f.onError(b)},r.onload=function(){return r.status<200||r.status>=300?f.onError(v(f,r),x(r)):f.onSuccess(x(r),r)},r.open(f.method,f.action,!0),f.withCredentials&&"withCredentials"in r&&(r.withCredentials=!0);var o=f.headers||{};return o["X-Requested-With"]!==null&&r.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(function(u){o[u]!==null&&r.setRequestHeader(u,o[u])}),r.send(c),{abort:function(){r.abort()}}}var oe=+new Date,D=0;function le(){return"rc-upload-"+oe+"-"+ ++D}function O(f,r){return f.indexOf(r,f.length-r.length)!==-1}var M=function(f,r){if(f&&r){var c=Array.isArray(r)?r:r.split(","),o=f.name||"",u=f.type||"",b=u.replace(/\/.*$/,"");return c.some(function(P){var R=P.trim();return R.charAt(0)==="."?O(o.toLowerCase(),R.toLowerCase()):/\/\*$/.test(R)?b===R.replace(/\/.*$/,""):u===R})}return!0};function g(f,r){var c=f.createReader(),o=[];function u(){c.readEntries(function(b){var P=Array.prototype.slice.apply(b);o=o.concat(P);var R=!P.length;R?r(o):u()})}u()}var I=function(r,c,o){var u=function b(P,R){R=R||"",P.isFile?P.file(function(_){o(_)&&(P.fullPath&&!_.webkitRelativePath&&(Object.defineProperties(_,{webkitRelativePath:{writable:!0}}),_.webkitRelativePath=P.fullPath.replace(/^\//,""),Object.defineProperties(_,{webkitRelativePath:{writable:!1}})),c([_]))}):P.isDirectory&&g(P,function(_){_.forEach(function(h){b(h,""+R+P.name+"/")})})};r.forEach(function(b){u(b.webkitGetAsEntry())})},B=I,N=Object.assign||function(f){for(var r=1;r=0)continue;if(!Object.prototype.hasOwnProperty.call(f,o))continue;c[o]=f[o]}return c}function ue(f,r){if(!(f instanceof r))throw new TypeError("Cannot call a class as a function")}function $(f,r){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:f}function me(f,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);f.prototype=Object.create(r&&r.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(f,r):f.__proto__=r)}var L=function(r){return Object.keys(r).reduce(function(c,o){return(o.substr(0,5)==="data-"||o.substr(0,5)==="aria-"||o==="role")&&(c[o]=r[o]),c},{})},J=function(f){me(r,f);function r(){var c,o,u,b;ue(this,r);for(var P=arguments.length,R=Array(P),_=0;_-1})},fe=B.a.TextArea,_e=function(V){var Ee=V.account,Y=V.globalSetting,q=V.loading,d=V.dispatch,ae=V.schoolName,f=V.visible,r=V.onClose,c=r===void 0?function(){}:r,o=V.onSuccess,u=o===void 0?function(){}:o,b=Object(g.a)(V,["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"]),P=O.a.useForm(),R=Object(M.a)(P,1),_=R[0];Object(re.useEffect)(function(){_.setFieldsValue({name:ae})},[ae]);var h=function(){var a=Object(D.a)(K.a.mark(function n(l){var i,m,t,p,s,C,E;return K.a.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return i=l||{},m=i.name,t=i.city,p=t===void 0?[]:t,s=i.address,C=i.remarks,F.next=3,d({type:"account/appplySchool",payload:{name:m,province:p[0],city:p[1],address:s,remarks:C}});case 3:E=F.sent,c(),E&&(oe.b.success("\u65B0\u589E\u5B66\u6821/\u5355\u4F4D\u6210\u529F\uFF01"),u(m));case 6:case"end":return F.stop()}},n)}));return function(l){return a.apply(this,arguments)}}();return S.a.createElement(T.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:f,title:"\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},S.a.createElement(O.a,{className:J.a.formWrap,form:_,labelCol:{span:4},wrapperCol:{span:20},onFinish:h},S.a.createElement(O.a.Item,{label:"\u5355\u4F4D\u5168\u79F0\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},S.a.createElement(B.a,{placeholder:"\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"})),S.a.createElement("div",{className:"".concat(J.a.flexRow," ").concat(J.a.example)},S.a.createElement("div",null,"\u793A\u4F8B\uFF1A"),S.a.createElement("div",{className:J.a.flexColumn},S.a.createElement("div",null,S.a.createElement(ue.a,{style:{color:"rgb(82, 196, 26)"}}),S.a.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),S.a.createElement("div",null,S.a.createElement($.a,{style:{color:"red"}}),S.a.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625")))),S.a.createElement(O.a.Item,{label:"\u5730\u533A\uFF1A",name:"city"},S.a.createElement(x.a,{allowClear:!0,size:"large",options:me.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:w}})),S.a.createElement(O.a.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},S.a.createElement(B.a,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),S.a.createElement(O.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},S.a.createElement(fe,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),S.a.createElement("div",{className:J.a.footerWrap},S.a.createElement(O.a.Item,null,S.a.createElement(U.a,{className:"mr5",size:"large",onClick:function(){c()}},"\u53D6\u6D88"),S.a.createElement(U.a,{size:"large",type:"primary",htmlType:"submit",loading:q["account/appplySchool"]},"\u4FDD\u5B58")))))};H.a=Object(se.a)(function(be){var V=be.account,Ee=be.loading,Y=be.globalSetting;return{account:V,globalSetting:Y,loading:Ee.effects}})(_e)},JzwI:function(ce,H,e){ce.exports={flexRow:"flexRow___OsWMo",flexColumn:"flexColumn___2c88T",formWrap:"formWrap___ir8nR",example:"example___tgHq4",footerWrap:"footerWrap___C29I6"}},LdHM:function(ce,H,e){"use strict";e.d(H,"b",function(){return se}),e.d(H,"a",function(){return $});var j=e("1OyB"),T=e("vuIU"),te=e("Ji7U"),U=e("LK+K"),v=e("q1tI"),x=e("rePB"),G=e("Ff2n"),oe=e("ODXe"),D=e("4IlW"),le=e("bX4T"),O=e("YrtM"),M=e("TSYQ"),g=e.n(M),I=e("+nKL"),B=e("8OUc"),N=function(o,u){var b=o.prefixCls,P=o.id,R=o.flattenOptions,_=o.childrenAsData,h=o.values,a=o.searchValue,n=o.multiple,l=o.defaultActiveFirstOption,i=o.height,m=o.itemHeight,t=o.notFoundContent,p=o.open,s=o.menuItemSelectedIcon,C=o.virtual,E=o.onSelect,A=o.onToggleOpen,F=o.onActiveValue,ne=o.onScroll,z=o.onMouseEnter,X="".concat(b,"-item"),k=Object(O.a)(function(){return R},[p,R],function(ye,ee){return ee[0]&&ye[1]!==ee[1]}),he=v.useRef(null),Q=function(ee){ee.preventDefault()},Re=function(ee){he.current&&he.current.scrollTo({index:ee})},Me=function(ee){for(var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Oe=k.length,Ue=0;Ue1&&arguments[1]!==void 0?arguments[1]:!1;return Object(L.a)(c).map(function(u,b){if(!v.isValidElement(u)||!u.type)return null;var P=u.type.isSelectOptGroup,R=u.key,_=u.props,h=_.children,a=Object(G.a)(_,["children"]);return o||!P?J(u):Object(me.a)(Object(me.a)({key:"__RC_SELECT_GRP__".concat(R===null?b:R,"__"),label:R},a),{},{options:w(h)})}).filter(function(u){return u})}var fe=e("2Qr1"),_e=e("qNPg"),be=e("U8pU"),V=e("Kwbf"),Ee=e("WKfj");function Y(c){var o=c.mode,u=c.options,b=c.children,P=c.backfill,R=c.allowClear,_=c.placeholder,h=c.getInputElement,a=c.showSearch,n=c.onSearch,l=c.defaultOpen,i=c.autoFocus,m=c.labelInValue,t=c.value,p=c.inputValue,s=c.optionLabelProp,C=o==="multiple"||o==="tags",E=a!==void 0?a:C||o==="combobox",A=u||w(b);if(Object(V.a)(o!=="tags"||A.every(function(X){return!X.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),o==="tags"||o==="combobox"){var F=A.some(function(X){return X.options?X.options.some(function(k){return typeof("value"in k?k.value:k.key)=="number"}):typeof("value"in X?X.value:X.key)=="number"});Object(V.a)(!F,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(V.a)(o!=="combobox"||!s,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(V.a)(o==="combobox"||!P,"`backfill` only works with `combobox` mode."),Object(V.a)(o==="combobox"||!h,"`getInputElement` only work with `combobox` mode."),Object(V.b)(o!=="combobox"||!h||!R||!_,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),n&&!E&&o!=="combobox"&&o!=="tags"&&Object(V.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(V.b)(!l||i,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),t!=null){var ne=Object(Ee.d)(t);Object(V.a)(!m||ne.every(function(X){return Object(be.a)(X)==="object"&&("key"in X||"value"in X)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(V.a)(!C||Array.isArray(t),"`value` should be array when `mode` is `multiple` or `tags`")}if(b){var z=null;Object(L.a)(b).some(function(X){if(!v.isValidElement(X)||!X.type)return!1;var k=X.type;if(k.isSelectOption)return!1;if(k.isSelectOptGroup){var he=Object(L.a)(X.props.children).every(function(Q){return!v.isValidElement(Q)||!X.type||Q.type.isSelectOption?!0:(z=Q.type,!1)});return!he}return z=k,!0}),z&&Object(V.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(z.displayName||z.name||z,"`.")),Object(V.a)(p===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var q=Y,d=Object(_e.a)({prefixCls:"rc-select",components:{optionList:re},convertChildrenToData:w,flattenOptions:fe.d,getLabeledValue:fe.e,filterOptions:fe.b,isValueDisabled:fe.g,findValueOption:fe.c,warningProps:q,fillOptionsWithMissingValue:fe.a}),ae=function(c){Object(te.a)(u,c);var o=Object(U.a)(u);function u(){var b;return Object(j.a)(this,u),b=o.apply(this,arguments),b.selectRef=v.createRef(),b.focus=function(){b.selectRef.current.focus()},b.blur=function(){b.selectRef.current.blur()},b}return Object(T.a)(u,[{key:"render",value:function(){return v.createElement(d,Object.assign({ref:this.selectRef},this.props))}}]),u}(v.Component);ae.Option=se,ae.OptGroup=$;var f=ae,r=H.c=f},Lo1I:function(ce,H,e){ce.exports={wrap:"wrap___1qvdb",content:"content___1_m94",hint:"hint___nSK1F",title:"title___2q9jC",titleWrap:"titleWrap___1O9xz",formWrap:"formWrap___2WseM",identityWrap:"identityWrap___2NSHB",schoolHintWrap:"schoolHintWrap___tihDG",colorCDCDCD:"colorCDCDCD___2WwD1",color0152d9:"color0152d9___2HFJQ",submitButton:"submitButton___2RxzB",submitButtondiv:"submitButtondiv___1xAxe",glow:"glow___3XNnL",staffidInput:"staffidInput___122cJ"}},OLES:function(ce,H,e){"use strict";var j=e("U8pU"),T=e("VTBJ"),te=e("Ff2n"),U=e("q1tI"),v=e("uciX"),x=e("7ixt"),G=function(g){var I=g.overlay,B=g.prefixCls,N=g.id,K=g.overlayInnerStyle;return U.createElement("div",{className:"".concat(B,"-inner"),id:N,role:"tooltip",style:K},typeof I=="function"?I():I)},oe=G,D=function(g,I){var B=g.overlayClassName,N=g.trigger,K=N===void 0?["hover"]:N,re=g.mouseEnterDelay,S=re===void 0?0:re,se=g.mouseLeaveDelay,ue=se===void 0?.1:se,$=g.overlayStyle,me=g.prefixCls,L=me===void 0?"rc-tooltip":me,J=g.children,w=g.onVisibleChange,fe=g.afterVisibleChange,_e=g.transitionName,be=g.animation,V=g.placement,Ee=V===void 0?"right":V,Y=g.align,q=Y===void 0?{}:Y,d=g.destroyTooltipOnHide,ae=d===void 0?!1:d,f=g.defaultVisible,r=g.getTooltipContainer,c=g.overlayInnerStyle,o=Object(te.a)(g,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),u=Object(U.useRef)(null);Object(U.useImperativeHandle)(I,function(){return u.current});var b=Object(T.a)({},o);"visible"in g&&(b.popupVisible=g.visible);var P=function(){var n=g.arrowContent,l=n===void 0?null:n,i=g.overlay,m=g.id;return[U.createElement("div",{className:"".concat(L,"-arrow"),key:"arrow"},l),U.createElement(oe,{key:"content",prefixCls:L,id:m,overlay:i,overlayInnerStyle:c})]},R=!1,_=!1;if(typeof ae=="boolean")R=ae;else if(ae&&Object(j.a)(ae)==="object"){var h=ae.keepParent;R=h===!0,_=h===!1}return U.createElement(v.a,Object.assign({popupClassName:B,prefixCls:L,popup:P,action:K,builtinPlacements:x.a,popupPlacement:Ee,ref:u,popupAlign:q,getPopupContainer:r,onPopupVisibleChange:w,afterPopupVisibleChange:fe,popupTransitionName:_e,popupAnimation:be,defaultPopupVisible:f,destroyPopupOnHide:R,autoDestroy:_,mouseLeaveDelay:ue,popupStyle:$,mouseEnterDelay:S},b),J)},le=Object(U.forwardRef)(D),O=H.a=le},RuH0:function(ce,H,e){ce.exports={flexRow:"flexRow___1vtNB",flexColumn:"flexColumn___38Gv5",formWrap:"formWrap___6xwEb",example:"example___226lp",footerWrap:"footerWrap___238nx"}},RxwV:function(ce,H,e){"use strict";var j=e("q1tI"),T=e("uciX"),te=e("2W6z"),U=e.n(te),v=e("4IlW"),x=e("uK0f"),G=e.n(x);function oe(a,n){if(a===n)return!0;if(!a||!n)return!1;var l=a.length;if(n.length!==l)return!1;for(var i=0;i0;(Q||t.isLeaf===!1)&&(k+=" ".concat(C,"-menu-item-expand"),t.loading||(he=j.createElement("span",{className:"".concat(C,"-menu-item-expand-icon")},A))),E==="hover"&&(Q||t.isLeaf===!1)&&(X={onMouseEnter:this.delayOnSelect.bind(this,ne),onMouseLeave:this.delayOnSelect.bind(this),onClick:ne}),this.isActiveOption(t,p)&&(k+=" ".concat(C,"-menu-item-active"),X.ref=this.saveMenuItem(p)),t.disabled&&(k+=" ".concat(C,"-menu-item-disabled"));var Re=null;t.loading&&(k+=" ".concat(C,"-menu-item-loading"),Re=F||null);var Me="";return"title"in t?Me=t.title:typeof t[this.getFieldName("label")]=="string"&&(Me=t[this.getFieldName("label")]),j.createElement("li",Object.assign({key:t[this.getFieldName("value")],className:k,title:Me},X,{role:"menuitem",onMouseDown:function(Pe){return Pe.preventDefault()}}),t[this.getFieldName("label")],he,Re)}},{key:"getActiveOptions",value:function(t){var p=this,s=this.props.options,C=t||this.props.activeValue;return G()(s,function(E,A){return E[p.getFieldName("value")]===C[A]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var t=this,p=this.props.options,s=this.getActiveOptions().map(function(C){return C[t.getFieldName("children")]}).filter(function(C){return!!C});return s.unshift(p),s}},{key:"delayOnSelect",value:function(t){for(var p=this,s=arguments.length,C=new Array(s>1?s-1:0),E=1;E=0)continue;if(!Object.prototype.propertyIsEnumerable.call(a,i))continue;l[i]=a[i]}}return l}function w(a,n){if(a==null)return{};var l={},i=Object.keys(a),m,t;for(t=0;t=0)continue;l[m]=a[m]}return l}function fe(a){return Ee(a)||V(a)||be(a)||_e()}function _e(){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 be(a,n){if(!a)return;if(typeof a=="string")return Y(a,n);var l=Object.prototype.toString.call(a).slice(8,-1);if(l==="Object"&&a.constructor&&(l=a.constructor.name),l==="Map"||l==="Set")return Array.from(a);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return Y(a,n)}function V(a){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(a))return Array.from(a)}function Ee(a){if(Array.isArray(a))return Y(a)}function Y(a,n){(n==null||n>a.length)&&(n=a.length);for(var l=0,i=new Array(n);l=F.length?0:z):(z-=1,z=z<0?F.length-1:z):z=0,E[A]=F[z][t.getFieldName("value")]}else if(s.keyCode===v.a.LEFT||s.keyCode===v.a.BACKSPACE)s.preventDefault(),E.splice(E.length-1,1);else if(s.keyCode===v.a.RIGHT)s.preventDefault(),F[ne]&&F[ne][t.getFieldName("children")]&&E.push(F[ne][t.getFieldName("children")][0][t.getFieldName("value")]);else if(s.keyCode===v.a.ESC||s.keyCode===v.a.TAB){t.setPopupVisible(!1);return}(!E||E.length===0)&&t.setPopupVisible(!1);var X=t.getActiveOptions(E),k=X[X.length-1];t.handleMenuSelect(k,X.length-1,s),t.props.onKeyDown&&t.props.onKeyDown(s)},t.saveTrigger=function(s){t.trigger=s};var p=[];return"value"in m?p=m.value||[]:"defaultValue"in m&&(p=m.defaultValue||[]),U()(!("filedNames"in m),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),t.state={popupVisible:m.popupVisible,activeValue:p,value:p,prevProps:m},t.defaultFieldNames={label:"label",value:"value",children:"children"},t}return ae(i,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(t){var p=this.defaultFieldNames,s=this.props,C=s.fieldNames,E=s.filedNames;return"filedNames"in this.props?E[t]||p[t]:C[t]||p[t]}},{key:"getFieldNames",value:function(){var t=this.props,p=t.fieldNames,s=t.filedNames;return"filedNames"in this.props?s:p}},{key:"getCurrentLevelOptions",value:function(){var t=this,p=this.props.options,s=p===void 0?[]:p,C=this.state.activeValue,E=C===void 0?[]:C,A=G()(s,function(F,ne){return F[t.getFieldName("value")]===E[ne]},{childrenKeyName:this.getFieldName("children")});return A[A.length-2]?A[A.length-2][this.getFieldName("children")]:fe(s).filter(function(F){return!F.disabled})}},{key:"getActiveOptions",value:function(t){var p=this;return G()(this.props.options||[],function(s,C){return s[p.getFieldName("value")]===t[C]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var t=this.props,p=t.prefixCls,s=t.transitionName,C=t.popupClassName,E=t.options,A=E===void 0?[]:E,F=t.disabled,ne=t.builtinPlacements,z=t.popupPlacement,X=t.children,k=t.dropdownRender,he=J(t,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),Q=j.createElement("div",null),Re="";A&&A.length>0?Q=j.createElement(ue,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):Re=" ".concat(p,"-menus-empty");var Me=Q;return k&&(Me=k(Q)),j.createElement(T.a,Object.assign({ref:this.saveTrigger},he,{popupPlacement:z,builtinPlacements:ne,popupTransitionName:s,action:F?[]:["click"],popupVisible:F?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(p,"-menus"),popupClassName:C+Re,popup:Me}),j.cloneElement(X,{onKeyDown:this.handleKeyDown,tabIndex:F?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(t,p){var s=p.prevProps,C=s===void 0?{}:s,E={prevProps:t};return"value"in t&&!oe(C.value,t.value)&&(E.value=t.value||[],"loadData"in t||(E.activeValue=t.value||[])),"popupVisible"in t&&(E.popupVisible=t.popupVisible),E}}]),i}(j.Component);return a.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:me,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},a}(),_=R,h=H.a=_},UZu5:function(ce,H,e){},Y1PL:function(ce,H,e){"use strict";e.r(H),e.d(H,"ResizableTextArea",function(){return b});var j=e("wx14"),T=e("1OyB"),te=e("vuIU"),U=e("Ji7U"),v=e("LK+K"),x=e("q1tI"),G=e("VTBJ"),oe=e("rePB"),D=e("Zm9Q"),le=e("Kwbf"),O=e("c+Xe"),M=e("m+aA"),g=e("bdgK"),I=new Map;function B(_){_.forEach(function(h){var a,n=h.target;(a=I.get(n))===null||a===void 0||a.forEach(function(l){return l(n)})})}var N=new g.default(B),K=null,re=null;function S(_,h){I.has(_)||(I.set(_,new Set),N.observe(_)),I.get(_).add(h)}function se(_,h){I.has(_)&&(I.get(_).delete(h),I.get(_).size||(N.unobserve(_),I.delete(_)))}var ue=function(_){Object(U.a)(a,_);var h=Object(v.a)(a);function a(){return Object(T.a)(this,a),h.apply(this,arguments)}return Object(te.a)(a,[{key:"render",value:function(){return this.props.children}}]),a}(x.Component),$=x.createContext(null);function me(_){var h=_.children,a=_.onBatchResize,n=x.useRef(0),l=x.useRef([]),i=x.useContext($),m=x.useCallback(function(t,p,s){n.current+=1;var C=n.current;l.current.push({size:t,element:p,data:s}),Promise.resolve().then(function(){C===n.current&&(a==null||a(l.current),l.current=[])}),i==null||i(t,p,s)},[a,i]);return x.createElement($.Provider,{value:m},h)}function L(_){var h=_.children,a=_.disabled,n=x.useRef(null),l=x.useRef(null),i=x.useContext($),m=x.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),t=x.isValidElement(h)&&Object(O.c)(h),p=t?h.ref:null,s=x.useMemo(function(){return Object(O.a)(p,n)},[p,n]),C=x.useRef(_);C.current=_;var E=x.useCallback(function(A){var F=C.current,ne=F.onResize,z=F.data,X=A.getBoundingClientRect(),k=X.width,he=X.height,Q=A.offsetWidth,Re=A.offsetHeight,Me=Math.floor(k),Ye=Math.floor(he);if(m.current.width!==Me||m.current.height!==Ye||m.current.offsetWidth!==Q||m.current.offsetHeight!==Re){var Pe={width:Me,height:Ye,offsetWidth:Q,offsetHeight:Re};m.current=Pe;var Le=Q===Math.round(k)?k:Q,Ze=Re===Math.round(he)?he:Re,ie=Object(G.a)(Object(G.a)({},Pe),{},{offsetWidth:Le,offsetHeight:Ze});i==null||i(ie,A,z),ne&&Promise.resolve().then(function(){ne(ie,A)})}},[]);return x.useEffect(function(){var A=Object(M.a)(n.current)||Object(M.a)(l.current);return A&&!a&&S(A,E),function(){return se(A,E)}},[n.current,a]),x.createElement(ue,{ref:l},t?x.cloneElement(h,{ref:s}):h)}var J="rc-observer-key";function w(_){var h=_.children,a=Object(D.a)(h);return a.map(function(n,l){var i=(n==null?void 0:n.key)||"".concat(J,"-").concat(l);return x.createElement(L,Object(j.a)({},_,{key:i}),n)})}w.Collection=me;var fe=w,_e=e("bT9E"),be=e("TSYQ"),V=e.n(be),Ee=` + min-height:0 !important; + max-height:none !important; + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important +`,Y=["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"],q={},d;function ae(_){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=_.getAttribute("id")||_.getAttribute("data-reactid")||_.getAttribute("name");if(h&&q[a])return q[a];var n=window.getComputedStyle(_),l=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),m=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),t=Y.map(function(s){return"".concat(s,":").concat(n.getPropertyValue(s))}).join(";"),p={sizingStyle:t,paddingSize:i,borderSize:m,boxSizing:l};return h&&a&&(q[a]=p),p}function f(_){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;d||(d=document.createElement("textarea"),d.setAttribute("tab-index","-1"),d.setAttribute("aria-hidden","true"),document.body.appendChild(d)),_.getAttribute("wrap")?d.setAttribute("wrap",_.getAttribute("wrap")):d.removeAttribute("wrap");var l=ae(_,h),i=l.paddingSize,m=l.borderSize,t=l.boxSizing,p=l.sizingStyle;d.setAttribute("style","".concat(p,";").concat(Ee)),d.value=_.value||_.placeholder||"";var s=Number.MIN_SAFE_INTEGER,C=Number.MAX_SAFE_INTEGER,E=d.scrollHeight,A;if(t==="border-box"?E+=m:t==="content-box"&&(E-=i),a!==null||n!==null){d.value=" ";var F=d.scrollHeight-i;a!==null&&(s=F*a,t==="border-box"&&(s=s+i+m),E=Math.max(s,E)),n!==null&&(C=F*n,t==="border-box"&&(C=C+i+m),A=E>C?"":"hidden",E=Math.min(C,E))}return{height:E,minHeight:s,maxHeight:C,overflowY:A,resize:"none"}}var r=e("Gytx"),c=e.n(r),o;(function(_){_[_.NONE=0]="NONE",_[_.RESIZING=1]="RESIZING",_[_.RESIZED=2]="RESIZED"})(o||(o={}));var u=function(_){Object(U.a)(a,_);var h=Object(v.a)(a);function a(n){var l;return Object(T.a)(this,a),l=h.call(this,n),l.nextFrameActionId=void 0,l.resizeFrameId=void 0,l.textArea=void 0,l.saveTextArea=function(i){l.textArea=i},l.handleResize=function(i){var m=l.state.resizeStatus,t=l.props,p=t.autoSize,s=t.onResize;if(m!==o.NONE)return;typeof s=="function"&&s(i),p&&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 m=i.minRows,t=i.maxRows,p=f(l.textArea,!1,m,t);l.setState({textareaStyles:p,resizeStatus:o.RESIZING},function(){cancelAnimationFrame(l.resizeFrameId),l.resizeFrameId=requestAnimationFrame(function(){l.setState({resizeStatus:o.RESIZED},function(){l.resizeFrameId=requestAnimationFrame(function(){l.setState({resizeStatus:o.NONE}),l.fixFirefoxAutoScroll()})})})})},l.renderTextArea=function(){var i=l.props,m=i.prefixCls,t=m===void 0?"rc-textarea":m,p=i.autoSize,s=i.onResize,C=i.className,E=i.disabled,A=l.state,F=A.textareaStyles,ne=A.resizeStatus,z=Object(_e.a)(l.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),X=V()(t,C,Object(oe.a)({},"".concat(t,"-disabled"),E));"value"in z&&(z.value=z.value||"");var k=Object(G.a)(Object(G.a)(Object(G.a)({},l.props.style),F),ne===o.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return x.createElement(fe,{onResize:l.handleResize,disabled:!(p||s)},x.createElement("textarea",Object(j.a)({},z,{className:X,style:k,ref:l.saveTextArea})))},l.state={textareaStyles:{},resizeStatus:o.NONE},l}return Object(te.a)(a,[{key:"componentDidUpdate",value:function(l){(l.value!==this.props.value||!c()(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(m){}}},{key:"render",value:function(){return this.renderTextArea()}}]),a}(x.Component),b=u,P=function(_){Object(U.a)(a,_);var h=Object(v.a)(a);function a(n){var l;Object(T.a)(this,a),l=h.call(this,n),l.resizableTextArea=void 0,l.focus=function(){l.resizableTextArea.textArea.focus()},l.saveTextArea=function(m){l.resizableTextArea=m},l.handleChange=function(m){var t=l.props.onChange;l.setValue(m.target.value,function(){l.resizableTextArea.resizeTextarea()}),t&&t(m)},l.handleKeyDown=function(m){var t=l.props,p=t.onPressEnter,s=t.onKeyDown;m.keyCode===13&&p&&p(m),s&&s(m)};var i=typeof n.value=="undefined"||n.value===null?n.defaultValue:n.value;return l.state={value:i},l}return Object(te.a)(a,[{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 x.createElement(b,Object(j.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}}]),a}(x.Component),R=H.default=P},Z3SC:function(ce,H,e){"use strict";e.r(H),e.d(H,"identityMap",function(){return t});var j=e("+L6B"),T=e("2/Rp"),te=e("DZo9"),U=e("8z0m"),v=e("oBTY"),x=e("7Kak"),G=e("9yH6"),oe=e("O3gP"),D=e("lrIw"),le=e("14J3"),O=e("BMrR"),M=e("jCWc"),g=e("kPKH"),I=e("5Dmo"),B=e("3S7+"),N=e("0Owb"),K=e("2qtc"),re=e("kLXV"),S=e("k1fw"),se=e("miYZ"),ue=e("tsqr"),$=e("9og8"),me=e("y8nQ"),L=e("Vl3Y"),J=e("tJVT"),w=e("PpiC"),fe=e("5NDa"),_e=e("5rEg"),be=e("OaEy"),V=e("2fM7"),Ee=e("WmNS"),Y=e.n(Ee),q=e("q1tI"),d=e.n(q),ae=e("9kvl"),f=e("Lo1I"),r=e.n(f),c=e("HoYA"),o=e("4nbu"),u=e("yTi+"),b=e.n(u),P=e("1vsH"),R=e("l04A"),_=e("ye1Q"),h=e("xvlK"),a=e("kaH+"),n=e("dhSg"),l=e("m3rI"),i=V.a.Option,m=_e.a.TextArea,t={teacher:"\u6559\u5E08",student:"\u5B66\u751F",professional:"\u4E13\u4E1A\u4EBA\u58EB"},p=10,s=20,C=function(A){var F,ne=A.user,z=A.account,X=A.globalSetting,k=A.shixunHomeworks,he=A.loading,Q=A.dispatch,Re=Object(w.a)(A,["user","account","globalSetting","shixunHomeworks","loading","dispatch"]),Me=L.a.useForm(),Ye=Object(J.a)(Me,1),Pe=Ye[0],Le=Object(q.useState)({}),Ze=Object(J.a)(Le,2),ie=Ze[0],We=Ze[1],et=Object(q.useState)([]),ye=Object(J.a)(et,2),ee=ye[0],pe=ye[1],Oe=Object(q.useState)([]),Ue=Object(J.a)(Oe,2),ge=Ue[0],we=Ue[1],He=Object(q.useState)([]),Ke=Object(J.a)(He,2),Te=Ke[0],rt=Ke[1],ct=Object(q.useState)([]),ut=Object(J.a)(ct,2),tt=ut[0],mt=ut[1],$e=Object(q.useState)(!0),Ve=Object(J.a)($e,2),Xe=Ve[0],at=Ve[1],ft=Object(q.useState)(!1),it=Object(J.a)(ft,2),Gt=it[0],Yt=it[1],Jt=Object(q.useState)(),jt=Object(J.a)(Jt,2),Qe=jt[0],Tt=jt[1],Zt=Object(q.useState)(null),xt=Object(J.a)(Zt,2),St=xt[0],Qt=xt[1],qt=Object(q.useState)(!0),Ft=Object(J.a)(qt,2),ea=Ft[0],Nt=Ft[1],ta=Object(q.useState)(),Lt=Object(J.a)(ta,2),fa=Lt[0],_a=Lt[1],aa=Object(q.useState)(!1),wt=Object(J.a)(aa,2),la=wt[0],va=wt[1],na=Object(q.useState)([]),It=Object(J.a)(na,2),st=It[0],Bt=It[1],Wt=z.basicInfo,Kt=Wt===void 0?{}:Wt,Vt=Kt&&Kt.professional_certification=="certified",dt=Vt?{visible:!1}:{visible:!1};Object(q.useEffect)(function(){zt(),Object($.a)(Y.a.mark(function Z(){var y;return Y.a.wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return de.next=2,kt();case 2:y=de.sent,rt(y==null?void 0:y.departments);case 4:case"end":return de.stop()}},Z)}))()},[]);var zt=function(){var Z=Object($.a)(Y.a.mark(function y(){var W;return Y.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return Nt(!0),ve.next=3,Q({type:"account/getSchoolOption"});case 3:W=ve.sent,Nt(!1),pe(W==null?void 0:W.schools);case 6:case"end":return ve.stop()}},y)}));return function(){return Z.apply(this,arguments)}}(),kt=function(){return Q({type:"account/getDepartmentOption",payload:{id:1}})};Object(q.useEffect)(function(){var Z;if(!z.basicInfo)return;var y=z.basicInfo,W={nickname:y.nickname,name:y.show_realname?y.name:Object(P.E)(y.name),gender:y.gender,city:[y.location,y.location_city],identity:y.identity,school:y.school_name,department:y.department_name||((Z=Te[0])===null||Z===void 0?void 0:Z.name),studentNo:y.student_id,edu_entry_year:y.edu_entry_year,edu_background:y.edu_background,brief_introduction:y.brief_introduction,jobTitle:y.identity=="teacher"?y.technical_title:"\u6559\u6388",manager:y.identity=="professional"?y.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};y!=null&&y.face_image&&Bt([{uid:"111",name:"111",url:l.a.API_SERVER+y.face_image}]),Tt(y.name),at(y.show_realname),Qt(y.identity),Pe.setFieldsValue(W),We(W)},[z.basicInfo,Te]);var pa=function(){Q({type:"account/setActionTabs",payload:{key:"Account-AppplySchool"}})},oa=function(){if(!ee.find(function(y){return y.name===ie.school})){ue.b.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}Q({type:"account/setActionTabs",payload:{key:"Account-AppplyDepartment"}})},ra=function(y){var W;if(We(Object(S.a)({},Pe.getFieldsValue())),"school"in y){we(ee.filter(function(ve){return ve.name.includes(y.school)}));var de=(ee.find(function(ve){return ve.name===y.school})||{}).id;de?Ht(y.school):(Pe.setFieldsValue({department:""}),We(Object(S.a)(Object(S.a)({},ie),{school:y.school,department:""})))}(y==null||((W=y.nickname)===null||W===void 0)?void 0:W.length)<=0&&(at(!0),Pe.setFieldsValue({name:Qe})),"name"in y&&Tt(y.name)},ua=function(){var y=!Xe;at(y);var W=y?Qe:Object(P.E)(Qe);Pe.setFieldsValue({name:W})},Ht=function(){var Z=Object($.a)(Y.a.mark(function y(W,de){var ve,ze,Ie,Se,De,Fe;return Y.a.wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Se=(ve=ee.find(function(qe){return qe.name===W}))===null||ve===void 0?void 0:ve.id,Ce.next=3,kt();case 3:if(Ce.t0=Ce.sent,Ce.t0){Ce.next=6;break}Ce.t0={};case 6:De=Ce.t0,rt(De==null?void 0:De.departments),Fe=de||(De==null||((ze=De.departments)===null||ze===void 0||((Ie=ze[0])===null||Ie===void 0))?void 0:Ie.name),Pe.setFieldsValue({department:Fe}),We(Object(S.a)(Object(S.a)({},ie),{school:W,department:Fe}));case 11:case"end":return Ce.stop()}},y)}));return function(W,de){return Z.apply(this,arguments)}}(),ia=function(){var Z=Object($.a)(Y.a.mark(function y(W){return Y.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return ve.next=2,zt();case 2:Pe.setFieldsValue({school:W,department:""}),We(Object(S.a)(Object(S.a)({},ie),{school:W,department:""}));case 4:case"end":return ve.stop()}},y)}));return function(W){return Z.apply(this,arguments)}}(),ba=function(){var Z=Object($.a)(Y.a.mark(function y(W){return Y.a.wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:re.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:W?"\u60A8\u5DF2\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u4FEE\u6539\u59D3\u540D\u9700\u8981\u64A4\u9500\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u662F\u5426\u786E\u5B9A\u64A4\u9500?":"\u60A8\u5DF2\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u4FEE\u6539\u4FE1\u606F\u9700\u8981\u64A4\u9500\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u662F\u5426\u786E\u5B9A\u64A4\u9500?",onOk:function(){var ze=Object($.a)(Y.a.mark(function Se(){var De,Fe,Ge,Ce;return Y.a.wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:if(!W){Ae.next=6;break}return Ae.next=3,Object(R.g)({login:(De=ne.userInfo)===null||De===void 0?void 0:De.login});case 3:Ae.t0=Ae.sent,Ae.next=9;break;case 6:return Ae.next=8,Object(R.i)({login:(Fe=ne.userInfo)===null||Fe===void 0?void 0:Fe.login});case 8:Ae.t0=Ae.sent;case 9:Ge=Ae.t0,Ge&&(ue.b.success(W?"\u64A4\u9500\u5B9E\u540D\u8BA4\u8BC1\u6210\u529F":"\u64A4\u9500\u804C\u4E1A\u8BA4\u8BC1\u6210\u529F"),Q({type:"account/getBasicInfo",payload:{login:(Ce=ne.userInfo)===null||Ce===void 0?void 0:Ce.login}}));case 11:case"end":return Ae.stop()}},Se)}));function Ie(){return ze.apply(this,arguments)}return Ie}()});case 1:case"end":return ve.stop()}},y)}));return function(W){return Z.apply(this,arguments)}}(),ha=function(){var y=new Date().getFullYear();return Array(31).fill({}).map(function(W,de){return d.a.createElement(i,{key:de,value:y-de},d.a.createElement("span",null,y-de))})},sa=function(){var Z=Object($.a)(Y.a.mark(function y(W){var de,ve,ze,Ie,Se,De,Fe,Ge,Ce,qe,Ae,_t,vt,Je,Xt,pt,bt,Be,ke,xe,ht,Et,yt,lt,gt,Ot;return Y.a.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(ze=W.nickname,Ie=W.gender,Se=W.identity,De=W.studentNo,Fe=W.jobTitle,Ge=W.manager,Ce=W.school,qe=W.department,Ae=W.edu_background,_t=W.edu_entry_year,vt=W.brief_introduction,Je=W.face_image,Xt=W.staff_id,pt=(de=Te.find(function(nt){return nt.name===qe}))===null||de===void 0?void 0:de.id,bt=(ve=ee.find(function(nt){return nt.name===Ce}))===null||ve===void 0?void 0:ve.id,Be=z.basicInfo,ke=[],Be.authentication!="uncertified"&&(Qe!=Be.name&&ke.push("\u59D3\u540D"),Ie!=Be.gender&&ke.push("\u6027\u522B")),xe=[],Vt&&(Se!=Be.identity?xe.push("\u804C\u4E1A"):(ie.identity==="student"&&(De!=Be.student_id&&xe.push("\u804C\u4E1A")),ie.identity==="teacher"&&(Fe!=Be.technical_title&&xe.push("\u804C\u4E1A")),ie.identity==="professional"&&(Ge!=Be.technical_title&&xe.push("\u804C\u4E1A"))),Ce!=Be.school_name&&xe.push("\u5B66\u6821/\u5355\u4F4D"),qe!=Be.department_name&&xe.push("\u9662\u7CFB/\u90E8\u95E8")),!(ke.length>0||xe.length>0)){Ne.next=12;break}re.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u672C\u6B21\u4FEE\u6539\u6D89\u53CA".concat(ke.toString().replaceAll(",","\u3001")).concat(ke.length>0&&xe.length>0?"\u3001":"").concat(xe.toString().replaceAll(",","\u3001"),"\uFF0C\u9700\u8981\u91CD\u65B0\u8FDB\u884C").concat(ke.length>0?"\u5B9E\u540D\u8BA4\u8BC1":"").concat(ke.length>0&&xe.length>0?"\u548C":"").concat(xe.length>0?"\u804C\u4E1A\u8BA4\u8BC1":"","\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FEE\u6539"),onOk:function(){var nt=Object($.a)(Y.a.mark(function ma(){var Ct,Pt,Dt,At,Rt,ot,Mt,Ut;return Y.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(!(ke.length>0)){je.next=3;break}return je.next=3,Object(R.g)({login:(At=ne.userInfo)===null||At===void 0?void 0:At.login});case 3:if(!(xe.length>0)){je.next=6;break}return je.next=6,Object(R.i)({login:(Rt=ne.userInfo)===null||Rt===void 0?void 0:Rt.login});case 6:return je.next=8,Q({type:"account/updateAccount",payload:{id:(Ct=z.basicInfo)===null||Ct===void 0?void 0:Ct.id,department_id:pt,gender:Ie,identity:Se,location,name:Qe,nickname:ze,school_id:bt,edu_background:Ae,edu_entry_year:_t,show_realname:Xe,brief_introduction:vt,student_id:De,technical_title:Fe||Ge,face_image:Je==null||((Pt=Je.file)===null||Pt===void 0||((Dt=Pt.response)===null||Dt===void 0))?void 0:Dt.id,staff_id:Xt}});case 8:if(ot=je.sent,!((ot==null?void 0:ot.status)===-1)){je.next=11;break}return je.abrupt("return");case 11:if(!ot){je.next=19;break}if(ue.b.info("\u4FDD\u5B58\u6210\u529F"),(Mt=z.basicInfo)!==null&&Mt!==void 0&&Mt.base_info_completed||Q({type:"user/getUserInfo"}),Q({type:"account/getBasicInfo",payload:{login:(Ut=ne.userInfo)===null||Ut===void 0?void 0:Ut.login}}),!(Se!==St&&Se==="teacher")){je.next=17;break}return je.abrupt("return");case 17:localStorage.getItem("Noviceguide")==="0"||Q({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:4,href:"/classrooms",text:d.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")}}),ae.d.push("/account/profile");case 19:case"end":return je.stop()}},ma)}));function ca(){return nt.apply(this,arguments)}return ca}()}),Ne.next=25;break;case 12:return Ne.next=14,Q({type:"account/updateAccount",payload:{id:(ht=z.basicInfo)===null||ht===void 0?void 0:ht.id,department_id:pt,gender:Ie,identity:Se,location,name:Qe,nickname:ze,school_id:bt,edu_background:Ae,edu_entry_year:_t,show_realname:Xe,brief_introduction:vt,student_id:De,technical_title:Fe||Ge,face_image:Je==null||((Et=Je.file)===null||Et===void 0||((yt=Et.response)===null||yt===void 0))?void 0:yt.id}});case 14:if(lt=Ne.sent,!((lt==null?void 0:lt.status)===-1)){Ne.next=17;break}return Ne.abrupt("return");case 17:if(!lt){Ne.next=25;break}if(ue.b.info("\u4FDD\u5B58\u6210\u529F"),(gt=z.basicInfo)!==null&>!==void 0&>.base_info_completed||Q({type:"user/getUserInfo"}),Q({type:"account/getBasicInfo",payload:{login:(Ot=ne.userInfo)===null||Ot===void 0?void 0:Ot.login}}),!(Se!==St&&Se==="teacher")){Ne.next=23;break}return Ne.abrupt("return");case 23:localStorage.getItem("Noviceguide")==="0"||Q({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:4,href:"/classrooms",text:d.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")}}),ae.d.push("/account/profile");case 25:case"end":return Ne.stop()}},y)}));return function(W){return Z.apply(this,arguments)}}(),$t=function(){Yt(!1),ae.d.push("/account/profile")},da=d.a.createElement("div",null,la?d.a.createElement(_.a,null):d.a.createElement(h.a,null),d.a.createElement("div",{style:{marginTop:8}},"\u4E0A\u4F20")),Ea=function(y,W){var de=new FileReader;de.addEventListener("load",function(){return W(de.result)}),de.readAsDataURL(y)};return d.a.createElement("section",{className:r.a.wrap},d.a.createElement("div",{className:r.a.content},d.a.createElement("div",{className:r.a.titleWrap},d.a.createElement("div",{className:r.a.title},"\u57FA\u672C\u4FE1\u606F")),d.a.createElement(L.a,{form:Pe,className:r.a.formWrap,layout:"horizontal",onValuesChange:ra,onFinish:sa},d.a.createElement(L.a.Item,{label:"\u59D3\u540D",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(p,"\u4E2A\u5B57\u7B26")},{validator:P.H}],extra:d.a.createElement("span",null,ie.nickname?Xe?"\u663E\u793A\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D":"\u9690\u85CF\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u4F60\u7684\u6635\u79F0":"\u586B\u5199\u6635\u79F0\u540E\u53EF\u8BBE\u7F6E\u59D3\u540D\u8FDB\u884C\u9690\u85CF\uFF08\u5F53\u8FDB\u884C\u59D3\u540D\u641C\u7D22\u65F6\uFF0C\u4F1A\u5C55\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D\uFF09")},d.a.createElement(_e.a,{disabled:ie.nickname?!Xe:!1,placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(p,"\u4E2A\u5B57\u7B26"),maxLength:p,addonAfter:ie.nickname?d.a.createElement("i",{style:{lineHeight:"26px"},className:"iconfont ".concat(Xe?"icon-xianshi":"icon-yincang"," font18 ").concat(r.a.color0152d9),onClick:ua}):null})),d.a.createElement(O.a,{gutter:[10,0]},d.a.createElement(g.a,null,d.a.createElement(B.a,Object(N.a)({placement:"bottom",title:function(){return d.a.createElement("div",null,d.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),d.a.createElement("div",null,"\u53EF\u5728",d.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},dt),d.a.createElement(L.a.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},d.a.createElement(V.a,{style:{width:160}},d.a.createElement(i,{value:"teacher"},"\u6559\u5E08"),d.a.createElement(i,{value:"student"},"\u5B66\u751F"))))),d.a.createElement(g.a,null,ie.identity==="student"&&d.a.createElement(B.a,Object(N.a)({placement:"bottom",title:function(){return d.a.createElement("div",null,d.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),d.a.createElement("div",null,"\u53EF\u5728",d.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},dt),d.a.createElement(L.a.Item,{initialValue:ie.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},d.a.createElement(_e.a,{style:{width:200},type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),ie.identity==="teacher"&&d.a.createElement(B.a,Object(N.a)({placement:"bottom",title:function(){return d.a.createElement("div",null,d.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),d.a.createElement("div",null,"\u53EF\u5728",d.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},dt),d.a.createElement(L.a.Item,{initialValue:ie.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},d.a.createElement(V.a,{style:{width:200}},d.a.createElement(i,{value:"\u6559\u6388"},"\u6559\u6388"),d.a.createElement(i,{value:"\u7814\u7A76\u5458"},"\u7814\u7A76\u5458"),d.a.createElement(i,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),d.a.createElement(i,{value:"\u526F\u7814\u7A76\u5458"},"\u526F\u7814\u7A76\u5458"),d.a.createElement(i,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),d.a.createElement(i,{value:"\u52A9\u7406\u7814\u7A76\u5458"},"\u52A9\u7406\u7814\u7A76\u5458"),d.a.createElement(i,{value:"\u52A9\u7406\u6559\u6388"},"\u52A9\u7406\u6559\u6388"))))),(ie.identity==="teacher"||ie.identity==="professional")&&d.a.createElement(g.a,{flex:1},d.a.createElement(L.a.Item,{label:"\u5DE5\u53F7",name:"studentNo",labelCol:{span:4},rules:[{required:!0},{validator:function(y,W){var de=/[\u4E00-\u9FA5]/g;return de.test(W)?Promise.reject("\u8BF7\u52FF\u8F93\u5165\u4E2D\u6587\u5B57\u7B26"):Promise.resolve()}}]},d.a.createElement(_e.a,{className:r.a.staffidInput})))),d.a.createElement(B.a,Object(N.a)({placement:"bottom",title:function(){return d.a.createElement("div",null,d.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),d.a.createElement("div",null,"\u53EF\u5728",d.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},dt),d.a.createElement(L.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",wrapperCol:{span:10},extra:!ea&&ie.department&&!(Te!=null&&Te.find(function(Z){return Z.name===ie.department}))&&d.a.createElement("div",{className:r.a.schoolHintWrap},d.a.createElement("span",{className:r.a.colorCDCDCD},ie.department?"\u672A\u627E\u5230\u5305\u542B\u201C".concat(ie.department,"\u201D\u7684\u9AD8\u6821\uFF0C"):"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),d.a.createElement("span",{className:"".concat(r.a.color0152d9," current"),onClick:oa},"\u7533\u8BF7\u65B0\u589E"))},d.a.createElement(D.a,{showSearch:!0,onChange:function(y){return mt(Te==null?void 0:Te.filter(function(W){return W.name.includes(y)}))},options:tt==null?void 0:tt.map(function(Z){return{value:Z.name}})}))),d.a.createElement(L.a.Item,{labelCol:{span:3},wrapperCol:{span:4},label:"\u6027\u522B",className:"mb0"},d.a.createElement(L.a.Item,{name:"gender"},d.a.createElement(G.a.Group,null,d.a.createElement(G.a,{value:0},"\u7537"),d.a.createElement(G.a,{value:1},"\u5973")))),d.a.createElement("div",{style:{display:"flex"}},d.a.createElement(L.a.Item,{label:"\u4E0A\u4F20\u8BC1\u4EF6\u7167",wrapperCol:{span:10},name:"face_image"},d.a.createElement(U.a,{listType:"picture-card",withCredentials:!0,className:"avatar-uploader",fileList:st,onPreview:function(y){n.a.publish("preview-image",y.thumbUrl||y.url)},action:"".concat(l.a.API_SERVER,"/api/attachments.json"),beforeUpload:function(y){var W=y.type==="image/jpeg"||y.type==="image/png";if(!W)return ue.b.error("\u60A8\u4E0A\u4F20\u7684\u4E0D\u662FJPG/PNG\u7C7B\u578B\u6587\u4EF6"),Promise.reject();var de=y.size/1024/1024<1;return de?W&&de:(ue.b.error("\u6587\u4EF6\u4E0D\u80FD\u5927\u4E8E1MB"),Promise.reject())},onChange:function(y){Bt(Object(v.a)(y.fileList))}},(st==null?void 0:st.length)>0?null:da)),d.a.createElement("div",{style:{marginLeft:16,color:"#666666",display:"flex",flexDirection:"column",marginTop:5}},d.a.createElement("span",null,"\u8981\u6C42\uFF1A"),d.a.createElement("span",null,"1.\u5B66\u751F\u7167\u7247\u5FC5\u987B\u4E3A\u9AD8\u6E05\u7684\u4EBA\u8138\u7167"),d.a.createElement("span",null,"2.\u6309\u7167 \u59D3\u540D-\u5B66\u53F7 \u7684\u65B9\u5F0F\u6765\u547D\u540D\u7167\u7247"),d.a.createElement("span",null,"3.\u56FE\u7247\u5927\u5C0F\u57281MB\u4EE5\u5185"))),d.a.createElement(L.a.Item,null,d.a.createElement(T.a,{className:"".concat(k.actionTabs.type===2?r.a.submitButtondiv:r.a.submitButton," ml100"),size:"large",type:"primary",htmlType:"submit",loading:he["account/editAccount"]},"\u4FDD\u5B58"),d.a.createElement(T.a,{className:r.a.submitButton,size:"large",onClick:function(){return ae.d.push("/account/profile")}},"\u53D6\u6D88")))),d.a.createElement("div",{className:"".concat(r.a.hint," font14")},"* \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"),d.a.createElement(c.a,{visible:z.actionTabs.key==="Account-AppplySchool",onClose:function(){Q({type:"account/setActionTabs",payload:{}})},schoolName:ie.school,onSuccess:ia}),d.a.createElement(o.a,{visible:z.actionTabs.key==="Account-AppplyDepartment",onClose:function(){Q({type:"account/setActionTabs",payload:{}})},schoolId:(F=ee.find(function(Z){return Z.name===ie.school}))===null||F===void 0?void 0:F.id,schoolName:ie.school,departmentName:ie.department,onSuccess:function(y){return Ht(ie.school,y)}}),d.a.createElement(re.a,{centered:!0,destroyOnClose:!0,visible:Gt,title:"\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:648,onCancel:$t,onOk:$t},d.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},d.a.createElement("aside",{style:{padding:"8px 70px"}},d.a.createElement("span",{style:{letterSpacing:1}},"\u57FA\u4E8E\u60A8\u6240\u5728\u9662\u6821\u4E0E\u5E73\u53F0\u6709\u6DF1\u5EA6\u5408\u4F5C\uFF0C\u6211\u4EEC\u7279\u610F\u4E3A\u60A8\u914D\u5907\u4E86\u5E73\u53F0\u76841\u5BF91\u52A9"),d.a.createElement("br",null),"\u6559\uFF0C\u60A8\u53EF\u4EE5\u626B\u63CF\u4E0B\u65B9\u4E8C\u7EF4\u7801\u6DFB\u52A0\u52A9\u7406\u5FAE\u4FE1\uFF0C\u6211\u4EEC\u5C067*24\u5C0F\u65F6\u4E3A\u60A8\u7B54\u7591\u89E3\u60D1\u3002"),d.a.createElement("img",{src:b.a,width:162,height:162}))),d.a.createElement(a.a,null))};H.default=Object(ae.a)(function(E){var A=E.user,F=E.account,ne=E.loading,z=E.globalSetting,X=E.shixunHomeworks;return{user:A,account:F,globalSetting:z,loading:ne.effects,shixunHomeworks:X}})(C)},ZpRC:function(ce,H,e){"use strict";function j(O){return typeof O=="object"&&O!=null&&O.nodeType===1}function T(O,M){return(!M||O!=="hidden")&&O!=="visible"&&O!=="clip"}function te(O,M){if(O.clientHeightM||N>O&&K=M&&re>=g?N-O-I:K>M&&reg?K-M+B:0}var v=function(O,M){var g=window,I=M.scrollMode,B=M.block,N=M.inline,K=M.boundary,re=M.skipOverflowHiddenElements,S=typeof K=="function"?K:function(F){return F!==K};if(!j(O))throw new TypeError("Invalid target");for(var se=document.scrollingElement||document.documentElement,ue=[],$=O;j($)&&S($);){if(($=$.parentElement)===se){ue.push($);break}$!=null&&$===document.body&&te($)&&!te(document.documentElement)||$!=null&&te($,re)&&ue.push($)}for(var me=g.visualViewport?g.visualViewport.width:innerWidth,L=g.visualViewport?g.visualViewport.height:innerHeight,J=window.scrollX||pageXOffset,w=window.scrollY||pageYOffset,fe=O.getBoundingClientRect(),_e=fe.height,be=fe.width,V=fe.top,Ee=fe.right,Y=fe.bottom,q=fe.left,d=B==="start"||B==="nearest"?V:B==="end"?Y:V+_e/2,ae=N==="center"?q+be/2:N==="end"?Ee:q,f=[],r=0;r=0&&q>=0&&Y<=L&&Ee<=me&&V>=P&&Y<=_&&q>=h&&Ee<=R)return f;var a=getComputedStyle(c),n=parseInt(a.borderLeftWidth,10),l=parseInt(a.borderTopWidth,10),i=parseInt(a.borderRightWidth,10),m=parseInt(a.borderBottomWidth,10),t=0,p=0,s="offsetWidth"in c?c.offsetWidth-c.clientWidth-n-i:0,C="offsetHeight"in c?c.offsetHeight-c.clientHeight-l-m:0;if(se===c)t=B==="start"?d:B==="end"?d-L:B==="nearest"?U(w,w+L,L,l,m,w+d,w+d+_e,_e):d-L/2,p=N==="start"?ae:N==="center"?ae-me/2:N==="end"?ae-me:U(J,J+me,me,n,i,J+ae,J+ae+be,be),t=Math.max(0,t+w),p=Math.max(0,p+J);else{t=B==="start"?d-P-l:B==="end"?d-_+m+C:B==="nearest"?U(P,_,u,l,m+C,d,d+_e,_e):d-(P+u/2)+C/2,p=N==="start"?ae-h-n:N==="center"?ae-(h+b/2)+s/2:N==="end"?ae-R+i+s:U(h,R,b,n,i+s,ae,ae+be,be);var E=c.scrollLeft,A=c.scrollTop;d+=A-(t=Math.max(0,Math.min(A+t,c.scrollHeight-u+C))),ae+=E-(p=Math.max(0,Math.min(E+p,c.scrollWidth-b+s)))}f.push({el:c,top:t,left:p})}return f};function x(O){return O===Object(O)&&Object.keys(O).length!==0}function G(O,M){M===void 0&&(M="auto");var g="scrollBehavior"in document.body.style;O.forEach(function(I){var B=I.el,N=I.top,K=I.left;B.scroll&&g?B.scroll({top:N,left:K,behavior:M}):(B.scrollTop=N,B.scrollLeft=K)})}function oe(O){return O===!1?{block:"end",inline:"nearest"}:x(O)?O:{block:"start",inline:"nearest"}}function D(O,M){var g=!O.ownerDocument.documentElement.contains(O);if(x(M)&&typeof M.behavior=="function")return M.behavior(g?[]:v(O,M));if(g)return;var I=oe(M);return G(v(O,I),I.behavior)}var le=H.a=D},bT9E:function(ce,H,e){"use strict";e.d(H,"a",function(){return T});var j=e("VTBJ");function T(te,U){var v=Object(j.a)({},te);return Array.isArray(U)&&U.forEach(function(x){delete v[x]}),v}},gJ3r:function(ce,H,e){"use strict";e.d(H,"a",function(){return j});var j=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},"kaH+":function(ce,H,e){"use strict";var j=e("+L6B"),T=e("2/Rp"),te=e("tJVT"),U=e("q1tI"),v=e.n(U),x=e("UZu5"),G=e.n(x),oe=e("dhSg"),D=e("rLCj"),le=e("dF/Y"),O=e("4i/N");H.a=function(){var M=Object(U.useState)(""),g=Object(te.a)(M,2),I=g[0],B=g[1],N=Object(U.useState)(0),K=Object(te.a)(N,2),re=K[0],S=K[1],se=Object(U.useRef)("");Object(U.useEffect)(function(){var L=oe.a.subscribe("preview-image",function(J){B(J),document.body.style.overflow="hidden"});return L},[]),Object(U.useEffect)(function(){return document.addEventListener("keydown",ue),function(){document.removeEventListener("keydown",ue)}},[]),Object(U.useEffect)(function(){se.current=I},[I]);function ue(L){L.keyCode==27&&se.current&&$()}function $(){document.body.style.overflow="auto",B("")}function me(){S(re+90)}return v.a.createElement(U.Fragment,null,I?v.a.createElement("div",{className:"image-preview-container"},v.a.createElement("div",{className:"button-group"},v.a.createElement(T.a,{onClick:me},"\u65CB\u8F6C",v.a.createElement(D.a,null)),v.a.createElement(T.a,{href:I},"\u4E0B\u8F7D",v.a.createElement(le.a,null)),v.a.createElement(T.a,{onClick:$},"\u5173\u95ED",v.a.createElement(O.a,null))),v.a.createElement("div",{className:"preview-wrp-group"},v.a.createElement("img",{className:"image-preview",src:I,alt:"\u9884\u89C8\u5927\u56FE",style:{transform:"rotate(".concat(re,"deg)")}}))):null)}},uK0f:function(ce,H,e){(function(j,T){ce.exports=T()})(this,function(){"use strict";function j(T,te,U){U=U||{},U.childrenKeyName=U.childrenKeyName||"children";var v=T||[],x=[],G=0;do{var oe=v.filter(function(D){return te(D,G)})[0];if(!oe)break;x.push(oe),v=oe[U.childrenKeyName]||[],G+=1}while(v.length>0);return x}return j})},vjIP:function(ce,H,e){ce.exports={wrap:"wrap___1ZoME",content:"content___2ISmw",hint:"hint___1VSGa",title:"title___3mBb8",titleWrap:"titleWrap___1YH9W",formWrap:"formWrap___3ynAf"}},"yTi+":function(ce,H,e){ce.exports=e.p+"static/AssistantCode3.9bae6615.jpeg"}}]); diff --git a/p__Account__Profile__index.ae3c99e9.async.js b/p__Account__Profile__index.ae3c99e9.async.js deleted file mode 100644 index d0d08728ce..0000000000 --- a/p__Account__Profile__index.ae3c99e9.async.js +++ /dev/null @@ -1,12 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[32,16,31],{"4nbu":function(ce,H,e){"use strict";var j=e("2qtc"),T=e("kLXV"),q=e("+L6B"),U=e("2/Rp"),v=e("miYZ"),x=e("tsqr"),Y=e("9og8"),ae=e("y8nQ"),P=e("Vl3Y"),te=e("tJVT"),g=e("PpiC"),M=e("5NDa"),y=e("5rEg"),W=e("WmNS"),K=e.n(W),w=e("q1tI"),z=e.n(w),ne=e("9kvl"),F=e("JzwI"),ie=e.n(F),oe=y.a.TextArea,$=function(I){var Z=I.account,B=I.globalSetting,fe=I.loading,ve=I.dispatch,he=I.schoolName,k=I.departmentName,ye=I.visible,J=I.onClose,Q=J===void 0?function(){}:J,d=I.onSuccess,ee=d===void 0?function(){}:d,f=Object(g.a)(I,["account","globalSetting","loading","dispatch","schoolName","departmentName","visible","onClose","onSuccess"]),r=P.a.useForm(),c=Object(te.a)(r,1),o=c[0],u=Object(w.useRef)();Object(w.useEffect)(function(){u.current=f.schoolId},[f.schoolId]),Object(w.useEffect)(function(){o.setFieldsValue({department:k})},[k]);var b=function(){var C=Object(Y.a)(K.a.mark(function A(_){var h,a,n,l;return K.a.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return h=_||{},a=h.department,n=h.remarks,m.next=3,ve({type:"account/appplyDepartment",payload:{school_id:u.current,name:a,remarks:n}});case 3:l=m.sent,Q(),l&&(x.b.success("\u65B0\u589E\u9662\u7CFB/\u90E8\u95E8\u6210\u529F\uFF01"),ee(a));case 6:case"end":return m.stop()}},A)}));return function(_){return C.apply(this,arguments)}}();return z.a.createElement(T.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:ye,title:"\u7533\u8BF7\u6DFB\u52A0\u5B50\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},z.a.createElement(P.a,{className:ie.a.formWrap,form:o,labelCol:{span:4},wrapperCol:{span:20},onFinish:b},z.a.createElement(P.a.Item,{label:"\u5355\u4F4D\u540D\u79F0\uFF1A"},he),z.a.createElement(P.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"}]},z.a.createElement(y.a,{placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u6216\u8005\u5B66\u9662\u540D\u79F0"})),z.a.createElement(P.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},z.a.createElement(oe,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),z.a.createElement("div",{className:ie.a.footerWrap},z.a.createElement(P.a.Item,null,z.a.createElement(U.a,{className:"mr5",size:"large",onClick:function(){Q()}},"\u53D6\u6D88"),z.a.createElement(U.a,{size:"large",type:"primary",htmlType:"submit",loading:fe["account/appplyDepartment"]},"\u4FDD\u5B58")))))};H.a=Object(ne.a)(function(me){var I=me.account,Z=me.loading,B=me.globalSetting;return{account:I,globalSetting:B,loading:Z.effects}})($)},"4w5S":function(ce,H,e){"use strict";e.r(H);var j=e("DZo9"),T=e("8z0m"),q=e("y8nQ"),U=e("Vl3Y"),v=e("+L6B"),x=e("2/Rp"),Y=e("PpiC"),ae=e("q1tI"),P=e.n(ae),te=e("9kvl"),g=e("vjIP"),M=e.n(g),y=e("Z3SC"),W=e("1vsH"),K=e("m3rI"),w=e("kaH+"),z=e("dhSg"),ne=function(ie){var oe=ie.account,$=ie.globalSetting,me=ie.loading,I=ie.dispatch,Z=Object(Y.a)(ie,["account","globalSetting","loading","dispatch"]),B=oe.basicInfo;return P.a.createElement("section",{className:M.a.wrap},P.a.createElement("div",{className:M.a.content},P.a.createElement("div",{className:M.a.titleWrap},P.a.createElement("div",{className:M.a.title},"\u57FA\u672C\u4FE1\u606F"),P.a.createElement(x.a,{type:"primary",ghost:!0,onClick:function(){localStorage.getItem("Noviceguide")==="0"||I({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:2,href:"/account/profile/edit",text:P.a.createElement("div",null,"\u8BF7\u60A8\u5B8C\u5584\u4E00\u4E0B\u5E73\u53F0\u7684\u57FA\u672C\u4FE1\u606F\uFF0C\u5305\u62EC\uFF1A\u6635\u79F0\u3001\u804C\u4E1A\u3001\u5B66\u6821/\u5355\u4F4D\uFF0C \u70B9\u51FB\u4FDD\u5B58")}}),te.d.push("/account/profile/edit")}},"\u4FEE\u6539")),P.a.createElement(U.a,{className:M.a.formWrap,labelCol:{span:3},wrapperCol:{span:21},layout:"horizontal"},P.a.createElement(U.a.Item,{label:"\u59D3\u540D"},(B==null?void 0:B.show_realname)==!0?B==null?void 0:B.name:Object(W.E)(B==null?void 0:B.name)),P.a.createElement(U.a.Item,{label:"\u804C\u4E1A"},y.identityMap[B==null?void 0:B.identity],"\u3000",B==null?void 0:B.technical_title,P.a.createElement("span",{style:{marginLeft:12}},B==null?void 0:B.student_id)),P.a.createElement(U.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8"},B==null?void 0:B.department_name),P.a.createElement(U.a.Item,{label:"\u6027\u522B"},(B==null?void 0:B.gender)==0?"\u7537":"\u5973"),(B==null?void 0:B.face_image)&&P.a.createElement(U.a.Item,{label:"\u4E0A\u4F20\u8BC1\u4EF6\u7167"},P.a.createElement(T.a,{listType:"picture-card",withCredentials:!0,disabled:!0,onPreview:function(ve){z.a.publish("preview-image",ve.thumbUrl||ve.url)},className:"avatar-uploader",fileList:[{uid:"111",name:"111",url:K.a.API_SERVER+(B==null?void 0:B.face_image)}]})))),P.a.createElement("div",{className:"".concat(M.a.hint," font14")},"* \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"),P.a.createElement(w.a,null))};H.default=Object(te.a)(function(F){var ie=F.account,oe=F.loading,$=F.globalSetting;return{account:ie,globalSetting:$,loading:oe.models.index}})(ne)},"7ixt":function(ce,H,e){"use strict";e.d(H,"a",function(){return q});var j={adjustX:1,adjustY:1},T=[0,0],q={left:{points:["cr","cl"],overflow:j,offset:[-4,0],targetOffset:T},right:{points:["cl","cr"],overflow:j,offset:[4,0],targetOffset:T},top:{points:["bc","tc"],overflow:j,offset:[0,-4],targetOffset:T},bottom:{points:["tc","bc"],overflow:j,offset:[0,4],targetOffset:T},topLeft:{points:["bl","tl"],overflow:j,offset:[0,-4],targetOffset:T},leftTop:{points:["tr","tl"],overflow:j,offset:[-4,0],targetOffset:T},topRight:{points:["br","tr"],overflow:j,offset:[0,-4],targetOffset:T},rightTop:{points:["tl","tr"],overflow:j,offset:[4,0],targetOffset:T},bottomRight:{points:["tr","br"],overflow:j,offset:[0,4],targetOffset:T},rightBottom:{points:["bl","br"],overflow:j,offset:[4,0],targetOffset:T},bottomLeft:{points:["tl","bl"],overflow:j,offset:[0,4],targetOffset:T},leftBottom:{points:["br","bl"],overflow:j,offset:[-4,0],targetOffset:T}},U=q},BU3w:function(ce,H,e){"use strict";e.d(H,"a",function(){return x});var j=e("MNnm"),T="rc-util-key";function q(Y){if(Y.attachTo)return Y.attachTo;var ae=document.querySelector("head");return ae||document.body}function U(Y){var ae,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(j.a)())return null;var te=document.createElement("style");if((ae=P.csp)===null||ae===void 0?void 0:ae.nonce){var g;te.nonce=(g=P.csp)===null||g===void 0?void 0:g.nonce}te.innerHTML=Y;var M=q(P),y=M.firstChild;return P.prepend&&M.prepend?M.prepend(te):P.prepend&&y?M.insertBefore(te,y):M.appendChild(te),te}var v=new Map;function x(Y,ae){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},te=q(P);if(!v.has(te)){var g=U("",P),M=g.parentNode;v.set(te,M),M.removeChild(g)}var y=Array.from(v.get(te).children).find(function(ne){return ne.tagName==="STYLE"&&ne[T]===ae});if(y){var W,K;if(((W=P.csp)===null||W===void 0?void 0:W.nonce)&&y.nonce!==((K=P.csp)===null||K===void 0?void 0:K.nonce)){var w;y.nonce=(w=P.csp)===null||w===void 0?void 0:w.nonce}return y.innerHTML!==Y&&(y.innerHTML=Y),y}var z=U(Y,P);return z[T]=ae,z}},GfqC:function(ce,H,e){"use strict";var j=e("q1tI"),T=e.n(j),q=e("TSYQ"),U=e.n(q);function v(f,r){var c="cannot "+f.method+" "+f.action+" "+r.status+"'",o=new Error(c);return o.status=r.status,o.method=f.method,o.url=f.action,o}function x(f){var r=f.responseText||f.response;if(!r)return r;try{return JSON.parse(r)}catch(c){return r}}function Y(f){var r=new XMLHttpRequest;f.onProgress&&r.upload&&(r.upload.onprogress=function(b){b.total>0&&(b.percent=b.loaded/b.total*100),f.onProgress(b)});var c=new FormData;f.data&&Object.keys(f.data).forEach(function(u){var b=f.data[u];if(Array.isArray(b)){b.forEach(function(C){c.append(u+"[]",C)});return}c.append(u,f.data[u])}),f.file instanceof Blob?c.append(f.filename,f.file,f.file.name):c.append(f.filename,f.file),r.onerror=function(b){f.onError(b)},r.onload=function(){return r.status<200||r.status>=300?f.onError(v(f,r),x(r)):f.onSuccess(x(r),r)},r.open(f.method,f.action,!0),f.withCredentials&&"withCredentials"in r&&(r.withCredentials=!0);var o=f.headers||{};return o["X-Requested-With"]!==null&&r.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(function(u){o[u]!==null&&r.setRequestHeader(u,o[u])}),r.send(c),{abort:function(){r.abort()}}}var ae=+new Date,P=0;function te(){return"rc-upload-"+ae+"-"+ ++P}function g(f,r){return f.indexOf(r,f.length-r.length)!==-1}var M=function(f,r){if(f&&r){var c=Array.isArray(r)?r:r.split(","),o=f.name||"",u=f.type||"",b=u.replace(/\/.*$/,"");return c.some(function(C){var A=C.trim();return A.charAt(0)==="."?g(o.toLowerCase(),A.toLowerCase()):/\/\*$/.test(A)?b===A.replace(/\/.*$/,""):u===A})}return!0};function y(f,r){var c=f.createReader(),o=[];function u(){c.readEntries(function(b){var C=Array.prototype.slice.apply(b);o=o.concat(C);var A=!C.length;A?r(o):u()})}u()}var W=function(r,c,o){var u=function b(C,A){A=A||"",C.isFile?C.file(function(_){o(_)&&(C.fullPath&&!_.webkitRelativePath&&(Object.defineProperties(_,{webkitRelativePath:{writable:!0}}),_.webkitRelativePath=C.fullPath.replace(/^\//,""),Object.defineProperties(_,{webkitRelativePath:{writable:!1}})),c([_]))}):C.isDirectory&&y(C,function(_){_.forEach(function(h){b(h,""+A+C.name+"/")})})};r.forEach(function(b){u(b.webkitGetAsEntry())})},K=W,w=Object.assign||function(f){for(var r=1;r=0)continue;if(!Object.prototype.hasOwnProperty.call(f,o))continue;c[o]=f[o]}return c}function oe(f,r){if(!(f instanceof r))throw new TypeError("Cannot call a class as a function")}function $(f,r){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r&&(typeof r=="object"||typeof r=="function")?r:f}function me(f,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);f.prototype=Object.create(r&&r.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(f,r):f.__proto__=r)}var I=function(r){return Object.keys(r).reduce(function(c,o){return(o.substr(0,5)==="data-"||o.substr(0,5)==="aria-"||o==="role")&&(c[o]=r[o]),c},{})},Z=function(f){me(r,f);function r(){var c,o,u,b;oe(this,r);for(var C=arguments.length,A=Array(C),_=0;_-1})},fe=K.a.TextArea,ve=function(k){var ye=k.account,J=k.globalSetting,Q=k.loading,d=k.dispatch,ee=k.schoolName,f=k.visible,r=k.onClose,c=r===void 0?function(){}:r,o=k.onSuccess,u=o===void 0?function(){}:o,b=Object(y.a)(k,["account","globalSetting","loading","dispatch","schoolName","visible","onClose","onSuccess"]),C=g.a.useForm(),A=Object(M.a)(C,1),_=A[0];Object(ne.useEffect)(function(){_.setFieldsValue({name:ee})},[ee]);var h=function(){var a=Object(P.a)(z.a.mark(function n(l){var i,m,t,p,s,O,E;return z.a.wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return i=l||{},m=i.name,t=i.city,p=t===void 0?[]:t,s=i.address,O=i.remarks,N.next=3,d({type:"account/appplySchool",payload:{name:m,province:p[0],city:p[1],address:s,remarks:O}});case 3:E=N.sent,c(),E&&(ae.b.success("\u65B0\u589E\u5B66\u6821/\u5355\u4F4D\u6210\u529F\uFF01"),u(m));case 6:case"end":return N.stop()}},n)}));return function(l){return a.apply(this,arguments)}}();return F.a.createElement(T.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:f,title:"\u7533\u8BF7\u6DFB\u52A0\u5355\u4F4D\u540D\u79F0",width:"600px",footer:null},F.a.createElement(g.a,{className:Z.a.formWrap,form:_,labelCol:{span:4},wrapperCol:{span:20},onFinish:h},F.a.createElement(g.a.Item,{label:"\u5355\u4F4D\u5168\u79F0\uFF1A",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"}]},F.a.createElement(K.a,{placeholder:"\u5B66\u6821\u6216\u5DE5\u4F5C\u5355\u4F4D"})),F.a.createElement("div",{className:"".concat(Z.a.flexRow," ").concat(Z.a.example)},F.a.createElement("div",null,"\u793A\u4F8B\uFF1A"),F.a.createElement("div",{className:Z.a.flexColumn},F.a.createElement("div",null,F.a.createElement(oe.a,{style:{color:"rgb(82, 196, 26)"}}),F.a.createElement("span",{className:"font14 ml5"},"\u6B63\u786E\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u6784")),F.a.createElement("div",null,F.a.createElement($.a,{style:{color:"red"}}),F.a.createElement("span",{className:"font14 ml5"},"\u9519\u8BEF\u793A\u4F8B\uFF1A\u6570\u636E\u7ED3\u67842019\u6625")))),F.a.createElement(g.a.Item,{label:"\u5730\u533A\uFF1A",name:"city"},F.a.createElement(x.a,{allowClear:!0,size:"large",options:me.a,placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u5730",showSearch:{matchInputWidth:!0,filter:B}})),F.a.createElement(g.a.Item,{label:"\u8BE6\u7EC6\u5730\u5740\uFF1A",name:"address"},F.a.createElement(K.a,{placeholder:"\u8BF7\u586B\u5199\u5B8C\u6574\u7684\u5730\u5740\u4FE1\u606F"})),F.a.createElement(g.a.Item,{label:"\u8BF4\u660E\uFF1A",name:"remarks"},F.a.createElement(fe,{placeholder:"\u518D\u6B21\u8BF4\u660E\u7279\u522B\u60C5\u51B5\uFF08\u9009\u586B\uFF09"})),F.a.createElement("div",{className:Z.a.footerWrap},F.a.createElement(g.a.Item,null,F.a.createElement(U.a,{className:"mr5",size:"large",onClick:function(){c()}},"\u53D6\u6D88"),F.a.createElement(U.a,{size:"large",type:"primary",htmlType:"submit",loading:Q["account/appplySchool"]},"\u4FDD\u5B58")))))};H.a=Object(ie.a)(function(he){var k=he.account,ye=he.loading,J=he.globalSetting;return{account:k,globalSetting:J,loading:ye.effects}})(ve)},JzwI:function(ce,H,e){ce.exports={flexRow:"flexRow___OsWMo",flexColumn:"flexColumn___2c88T",formWrap:"formWrap___ir8nR",example:"example___tgHq4",footerWrap:"footerWrap___C29I6"}},LdHM:function(ce,H,e){"use strict";e.d(H,"b",function(){return ie}),e.d(H,"a",function(){return $});var j=e("1OyB"),T=e("vuIU"),q=e("Ji7U"),U=e("LK+K"),v=e("q1tI"),x=e("rePB"),Y=e("Ff2n"),ae=e("ODXe"),P=e("4IlW"),te=e("bX4T"),g=e("YrtM"),M=e("TSYQ"),y=e.n(M),W=e("+nKL"),K=e("8OUc"),w=function(o,u){var b=o.prefixCls,C=o.id,A=o.flattenOptions,_=o.childrenAsData,h=o.values,a=o.searchValue,n=o.multiple,l=o.defaultActiveFirstOption,i=o.height,m=o.itemHeight,t=o.notFoundContent,p=o.open,s=o.menuItemSelectedIcon,O=o.virtual,E=o.onSelect,D=o.onToggleOpen,N=o.onActiveValue,re=o.onScroll,X=o.onMouseEnter,L="".concat(b,"-item"),G=Object(g.a)(function(){return A},[p,A],function(ge,le){return le[0]&&ge[1]!==le[1]}),Ee=v.useRef(null),pe=function(le){le.preventDefault()},se=function(le){Ee.current&&Ee.current.scrollTo({index:le})},Me=function(le){for(var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Pe=G.length,Ue=0;Ue1&&arguments[1]!==void 0?arguments[1]:!1;return Object(I.a)(c).map(function(u,b){if(!v.isValidElement(u)||!u.type)return null;var C=u.type.isSelectOptGroup,A=u.key,_=u.props,h=_.children,a=Object(Y.a)(_,["children"]);return o||!C?Z(u):Object(me.a)(Object(me.a)({key:"__RC_SELECT_GRP__".concat(A===null?b:A,"__"),label:A},a),{},{options:B(h)})}).filter(function(u){return u})}var fe=e("2Qr1"),ve=e("qNPg"),he=e("U8pU"),k=e("Kwbf"),ye=e("WKfj");function J(c){var o=c.mode,u=c.options,b=c.children,C=c.backfill,A=c.allowClear,_=c.placeholder,h=c.getInputElement,a=c.showSearch,n=c.onSearch,l=c.defaultOpen,i=c.autoFocus,m=c.labelInValue,t=c.value,p=c.inputValue,s=c.optionLabelProp,O=o==="multiple"||o==="tags",E=a!==void 0?a:O||o==="combobox",D=u||B(b);if(Object(k.a)(o!=="tags"||D.every(function(L){return!L.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),o==="tags"||o==="combobox"){var N=D.some(function(L){return L.options?L.options.some(function(G){return typeof("value"in G?G.value:G.key)=="number"}):typeof("value"in L?L.value:L.key)=="number"});Object(k.a)(!N,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(k.a)(o!=="combobox"||!s,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(k.a)(o==="combobox"||!C,"`backfill` only works with `combobox` mode."),Object(k.a)(o==="combobox"||!h,"`getInputElement` only work with `combobox` mode."),Object(k.b)(o!=="combobox"||!h||!A||!_,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),n&&!E&&o!=="combobox"&&o!=="tags"&&Object(k.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(k.b)(!l||i,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),t!=null){var re=Object(ye.d)(t);Object(k.a)(!m||re.every(function(L){return Object(he.a)(L)==="object"&&("key"in L||"value"in L)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(k.a)(!O||Array.isArray(t),"`value` should be array when `mode` is `multiple` or `tags`")}if(b){var X=null;Object(I.a)(b).some(function(L){if(!v.isValidElement(L)||!L.type)return!1;var G=L.type;if(G.isSelectOption)return!1;if(G.isSelectOptGroup){var Ee=Object(I.a)(L.props.children).every(function(pe){return!v.isValidElement(pe)||!L.type||pe.type.isSelectOption?!0:(X=pe.type,!1)});return!Ee}return X=G,!0}),X&&Object(k.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(X.displayName||X.name||X,"`.")),Object(k.a)(p===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var Q=J,d=Object(ve.a)({prefixCls:"rc-select",components:{optionList:ne},convertChildrenToData:B,flattenOptions:fe.d,getLabeledValue:fe.e,filterOptions:fe.b,isValueDisabled:fe.g,findValueOption:fe.c,warningProps:Q,fillOptionsWithMissingValue:fe.a}),ee=function(c){Object(q.a)(u,c);var o=Object(U.a)(u);function u(){var b;return Object(j.a)(this,u),b=o.apply(this,arguments),b.selectRef=v.createRef(),b.focus=function(){b.selectRef.current.focus()},b.blur=function(){b.selectRef.current.blur()},b}return Object(T.a)(u,[{key:"render",value:function(){return v.createElement(d,Object.assign({ref:this.selectRef},this.props))}}]),u}(v.Component);ee.Option=ie,ee.OptGroup=$;var f=ee,r=H.c=f},Lo1I:function(ce,H,e){ce.exports={wrap:"wrap___1qvdb",content:"content___1_m94",hint:"hint___nSK1F",title:"title___2q9jC",titleWrap:"titleWrap___1O9xz",formWrap:"formWrap___2WseM",identityWrap:"identityWrap___2NSHB",schoolHintWrap:"schoolHintWrap___tihDG",colorCDCDCD:"colorCDCDCD___2WwD1",color0152d9:"color0152d9___2HFJQ",submitButton:"submitButton___2RxzB",submitButtondiv:"submitButtondiv___1xAxe",glow:"glow___3XNnL",staffidInput:"staffidInput___122cJ"}},OLES:function(ce,H,e){"use strict";var j=e("U8pU"),T=e("VTBJ"),q=e("Ff2n"),U=e("q1tI"),v=e("uciX"),x=e("7ixt"),Y=function(y){var W=y.overlay,K=y.prefixCls,w=y.id,z=y.overlayInnerStyle;return U.createElement("div",{className:"".concat(K,"-inner"),id:w,role:"tooltip",style:z},typeof W=="function"?W():W)},ae=Y,P=function(y,W){var K=y.overlayClassName,w=y.trigger,z=w===void 0?["hover"]:w,ne=y.mouseEnterDelay,F=ne===void 0?0:ne,ie=y.mouseLeaveDelay,oe=ie===void 0?.1:ie,$=y.overlayStyle,me=y.prefixCls,I=me===void 0?"rc-tooltip":me,Z=y.children,B=y.onVisibleChange,fe=y.afterVisibleChange,ve=y.transitionName,he=y.animation,k=y.placement,ye=k===void 0?"right":k,J=y.align,Q=J===void 0?{}:J,d=y.destroyTooltipOnHide,ee=d===void 0?!1:d,f=y.defaultVisible,r=y.getTooltipContainer,c=y.overlayInnerStyle,o=Object(q.a)(y,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),u=Object(U.useRef)(null);Object(U.useImperativeHandle)(W,function(){return u.current});var b=Object(T.a)({},o);"visible"in y&&(b.popupVisible=y.visible);var C=function(){var n=y.arrowContent,l=n===void 0?null:n,i=y.overlay,m=y.id;return[U.createElement("div",{className:"".concat(I,"-arrow"),key:"arrow"},l),U.createElement(ae,{key:"content",prefixCls:I,id:m,overlay:i,overlayInnerStyle:c})]},A=!1,_=!1;if(typeof ee=="boolean")A=ee;else if(ee&&Object(j.a)(ee)==="object"){var h=ee.keepParent;A=h===!0,_=h===!1}return U.createElement(v.a,Object.assign({popupClassName:K,prefixCls:I,popup:C,action:z,builtinPlacements:x.a,popupPlacement:ye,ref:u,popupAlign:Q,getPopupContainer:r,onPopupVisibleChange:B,afterPopupVisibleChange:fe,popupTransitionName:ve,popupAnimation:he,defaultPopupVisible:f,destroyPopupOnHide:A,autoDestroy:_,mouseLeaveDelay:oe,popupStyle:$,mouseEnterDelay:F},b),Z)},te=Object(U.forwardRef)(P),g=H.a=te},RuH0:function(ce,H,e){ce.exports={flexRow:"flexRow___1vtNB",flexColumn:"flexColumn___38Gv5",formWrap:"formWrap___6xwEb",example:"example___226lp",footerWrap:"footerWrap___238nx"}},RxwV:function(ce,H,e){"use strict";var j=e("q1tI"),T=e("uciX"),q=e("2W6z"),U=e.n(q),v=e("4IlW"),x=e("uK0f"),Y=e.n(x);function ae(a,n){if(a===n)return!0;if(!a||!n)return!1;var l=a.length;if(n.length!==l)return!1;for(var i=0;i0;(pe||t.isLeaf===!1)&&(G+=" ".concat(O,"-menu-item-expand"),t.loading||(Ee=j.createElement("span",{className:"".concat(O,"-menu-item-expand-icon")},D))),E==="hover"&&(pe||t.isLeaf===!1)&&(L={onMouseEnter:this.delayOnSelect.bind(this,re),onMouseLeave:this.delayOnSelect.bind(this),onClick:re}),this.isActiveOption(t,p)&&(G+=" ".concat(O,"-menu-item-active"),L.ref=this.saveMenuItem(p)),t.disabled&&(G+=" ".concat(O,"-menu-item-disabled"));var se=null;t.loading&&(G+=" ".concat(O,"-menu-item-loading"),se=N||null);var Me="";return"title"in t?Me=t.title:typeof t[this.getFieldName("label")]=="string"&&(Me=t[this.getFieldName("label")]),j.createElement("li",Object.assign({key:t[this.getFieldName("value")],className:G,title:Me},L,{role:"menuitem",onMouseDown:function(Ie){return Ie.preventDefault()}}),t[this.getFieldName("label")],Ee,se)}},{key:"getActiveOptions",value:function(t){var p=this,s=this.props.options,O=t||this.props.activeValue;return Y()(s,function(E,D){return E[p.getFieldName("value")]===O[D]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var t=this,p=this.props.options,s=this.getActiveOptions().map(function(O){return O[t.getFieldName("children")]}).filter(function(O){return!!O});return s.unshift(p),s}},{key:"delayOnSelect",value:function(t){for(var p=this,s=arguments.length,O=new Array(s>1?s-1:0),E=1;E=0)continue;if(!Object.prototype.propertyIsEnumerable.call(a,i))continue;l[i]=a[i]}}return l}function B(a,n){if(a==null)return{};var l={},i=Object.keys(a),m,t;for(t=0;t=0)continue;l[m]=a[m]}return l}function fe(a){return ye(a)||k(a)||he(a)||ve()}function ve(){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 he(a,n){if(!a)return;if(typeof a=="string")return J(a,n);var l=Object.prototype.toString.call(a).slice(8,-1);if(l==="Object"&&a.constructor&&(l=a.constructor.name),l==="Map"||l==="Set")return Array.from(a);if(l==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return J(a,n)}function k(a){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(a))return Array.from(a)}function ye(a){if(Array.isArray(a))return J(a)}function J(a,n){(n==null||n>a.length)&&(n=a.length);for(var l=0,i=new Array(n);l=N.length?0:X):(X-=1,X=X<0?N.length-1:X):X=0,E[D]=N[X][t.getFieldName("value")]}else if(s.keyCode===v.a.LEFT||s.keyCode===v.a.BACKSPACE)s.preventDefault(),E.splice(E.length-1,1);else if(s.keyCode===v.a.RIGHT)s.preventDefault(),N[re]&&N[re][t.getFieldName("children")]&&E.push(N[re][t.getFieldName("children")][0][t.getFieldName("value")]);else if(s.keyCode===v.a.ESC||s.keyCode===v.a.TAB){t.setPopupVisible(!1);return}(!E||E.length===0)&&t.setPopupVisible(!1);var L=t.getActiveOptions(E),G=L[L.length-1];t.handleMenuSelect(G,L.length-1,s),t.props.onKeyDown&&t.props.onKeyDown(s)},t.saveTrigger=function(s){t.trigger=s};var p=[];return"value"in m?p=m.value||[]:"defaultValue"in m&&(p=m.defaultValue||[]),U()(!("filedNames"in m),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),t.state={popupVisible:m.popupVisible,activeValue:p,value:p,prevProps:m},t.defaultFieldNames={label:"label",value:"value",children:"children"},t}return ee(i,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(t){var p=this.defaultFieldNames,s=this.props,O=s.fieldNames,E=s.filedNames;return"filedNames"in this.props?E[t]||p[t]:O[t]||p[t]}},{key:"getFieldNames",value:function(){var t=this.props,p=t.fieldNames,s=t.filedNames;return"filedNames"in this.props?s:p}},{key:"getCurrentLevelOptions",value:function(){var t=this,p=this.props.options,s=p===void 0?[]:p,O=this.state.activeValue,E=O===void 0?[]:O,D=Y()(s,function(N,re){return N[t.getFieldName("value")]===E[re]},{childrenKeyName:this.getFieldName("children")});return D[D.length-2]?D[D.length-2][this.getFieldName("children")]:fe(s).filter(function(N){return!N.disabled})}},{key:"getActiveOptions",value:function(t){var p=this;return Y()(this.props.options||[],function(s,O){return s[p.getFieldName("value")]===t[O]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var t=this.props,p=t.prefixCls,s=t.transitionName,O=t.popupClassName,E=t.options,D=E===void 0?[]:E,N=t.disabled,re=t.builtinPlacements,X=t.popupPlacement,L=t.children,G=t.dropdownRender,Ee=Z(t,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),pe=j.createElement("div",null),se="";D&&D.length>0?pe=j.createElement(oe,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):se=" ".concat(p,"-menus-empty");var Me=pe;return G&&(Me=G(pe)),j.createElement(T.a,Object.assign({ref:this.saveTrigger},Ee,{popupPlacement:X,builtinPlacements:re,popupTransitionName:s,action:N?[]:["click"],popupVisible:N?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(p,"-menus"),popupClassName:O+se,popup:Me}),j.cloneElement(L,{onKeyDown:this.handleKeyDown,tabIndex:N?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(t,p){var s=p.prevProps,O=s===void 0?{}:s,E={prevProps:t};return"value"in t&&!ae(O.value,t.value)&&(E.value=t.value||[],"loadData"in t||(E.activeValue=t.value||[])),"popupVisible"in t&&(E.popupVisible=t.popupVisible),E}}]),i}(j.Component);return a.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:me,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},a}(),_=A,h=H.a=_},UZu5:function(ce,H,e){},Y1PL:function(ce,H,e){"use strict";e.r(H),e.d(H,"ResizableTextArea",function(){return b});var j=e("wx14"),T=e("1OyB"),q=e("vuIU"),U=e("Ji7U"),v=e("LK+K"),x=e("q1tI"),Y=e("VTBJ"),ae=e("rePB"),P=e("Zm9Q"),te=e("Kwbf"),g=e("c+Xe"),M=e("m+aA"),y=e("bdgK"),W=new Map;function K(_){_.forEach(function(h){var a,n=h.target;(a=W.get(n))===null||a===void 0||a.forEach(function(l){return l(n)})})}var w=new y.default(K),z=null,ne=null;function F(_,h){W.has(_)||(W.set(_,new Set),w.observe(_)),W.get(_).add(h)}function ie(_,h){W.has(_)&&(W.get(_).delete(h),W.get(_).size||(w.unobserve(_),W.delete(_)))}var oe=function(_){Object(U.a)(a,_);var h=Object(v.a)(a);function a(){return Object(T.a)(this,a),h.apply(this,arguments)}return Object(q.a)(a,[{key:"render",value:function(){return this.props.children}}]),a}(x.Component),$=x.createContext(null);function me(_){var h=_.children,a=_.onBatchResize,n=x.useRef(0),l=x.useRef([]),i=x.useContext($),m=x.useCallback(function(t,p,s){n.current+=1;var O=n.current;l.current.push({size:t,element:p,data:s}),Promise.resolve().then(function(){O===n.current&&(a==null||a(l.current),l.current=[])}),i==null||i(t,p,s)},[a,i]);return x.createElement($.Provider,{value:m},h)}function I(_){var h=_.children,a=_.disabled,n=x.useRef(null),l=x.useRef(null),i=x.useContext($),m=x.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),t=x.isValidElement(h)&&Object(g.c)(h),p=t?h.ref:null,s=x.useMemo(function(){return Object(g.a)(p,n)},[p,n]),O=x.useRef(_);O.current=_;var E=x.useCallback(function(D){var N=O.current,re=N.onResize,X=N.data,L=D.getBoundingClientRect(),G=L.width,Ee=L.height,pe=D.offsetWidth,se=D.offsetHeight,Me=Math.floor(G),Ye=Math.floor(Ee);if(m.current.width!==Me||m.current.height!==Ye||m.current.offsetWidth!==pe||m.current.offsetHeight!==se){var Ie={width:Me,height:Ye,offsetWidth:pe,offsetHeight:se};m.current=Ie;var Ce=pe===Math.round(G)?G:pe,tt=se===Math.round(Ee)?Ee:se,Ne=Object(Y.a)(Object(Y.a)({},Ie),{},{offsetWidth:Ce,offsetHeight:tt});i==null||i(Ne,D,X),re&&Promise.resolve().then(function(){re(Ne,D)})}},[]);return x.useEffect(function(){var D=Object(M.a)(n.current)||Object(M.a)(l.current);return D&&!a&&F(D,E),function(){return ie(D,E)}},[n.current,a]),x.createElement(oe,{ref:l},t?x.cloneElement(h,{ref:s}):h)}var Z="rc-observer-key";function B(_){var h=_.children,a=Object(P.a)(h);return a.map(function(n,l){var i=(n==null?void 0:n.key)||"".concat(Z,"-").concat(l);return x.createElement(I,Object(j.a)({},_,{key:i}),n)})}B.Collection=me;var fe=B,ve=e("bT9E"),he=e("TSYQ"),k=e.n(he),ye=` - min-height:0 !important; - max-height:none !important; - height:0 !important; - visibility:hidden !important; - overflow:hidden !important; - position:absolute !important; - z-index:-1000 !important; - top:0 !important; - right:0 !important -`,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"],Q={},d;function ee(_){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=_.getAttribute("id")||_.getAttribute("data-reactid")||_.getAttribute("name");if(h&&Q[a])return Q[a];var n=window.getComputedStyle(_),l=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),m=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),t=J.map(function(s){return"".concat(s,":").concat(n.getPropertyValue(s))}).join(";"),p={sizingStyle:t,paddingSize:i,borderSize:m,boxSizing:l};return h&&a&&(Q[a]=p),p}function f(_){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;d||(d=document.createElement("textarea"),d.setAttribute("tab-index","-1"),d.setAttribute("aria-hidden","true"),document.body.appendChild(d)),_.getAttribute("wrap")?d.setAttribute("wrap",_.getAttribute("wrap")):d.removeAttribute("wrap");var l=ee(_,h),i=l.paddingSize,m=l.borderSize,t=l.boxSizing,p=l.sizingStyle;d.setAttribute("style","".concat(p,";").concat(ye)),d.value=_.value||_.placeholder||"";var s=Number.MIN_SAFE_INTEGER,O=Number.MAX_SAFE_INTEGER,E=d.scrollHeight,D;if(t==="border-box"?E+=m:t==="content-box"&&(E-=i),a!==null||n!==null){d.value=" ";var N=d.scrollHeight-i;a!==null&&(s=N*a,t==="border-box"&&(s=s+i+m),E=Math.max(s,E)),n!==null&&(O=N*n,t==="border-box"&&(O=O+i+m),D=E>O?"":"hidden",E=Math.min(O,E))}return{height:E,minHeight:s,maxHeight:O,overflowY:D,resize:"none"}}var r=e("Gytx"),c=e.n(r),o;(function(_){_[_.NONE=0]="NONE",_[_.RESIZING=1]="RESIZING",_[_.RESIZED=2]="RESIZED"})(o||(o={}));var u=function(_){Object(U.a)(a,_);var h=Object(v.a)(a);function a(n){var l;return Object(T.a)(this,a),l=h.call(this,n),l.nextFrameActionId=void 0,l.resizeFrameId=void 0,l.textArea=void 0,l.saveTextArea=function(i){l.textArea=i},l.handleResize=function(i){var m=l.state.resizeStatus,t=l.props,p=t.autoSize,s=t.onResize;if(m!==o.NONE)return;typeof s=="function"&&s(i),p&&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 m=i.minRows,t=i.maxRows,p=f(l.textArea,!1,m,t);l.setState({textareaStyles:p,resizeStatus:o.RESIZING},function(){cancelAnimationFrame(l.resizeFrameId),l.resizeFrameId=requestAnimationFrame(function(){l.setState({resizeStatus:o.RESIZED},function(){l.resizeFrameId=requestAnimationFrame(function(){l.setState({resizeStatus:o.NONE}),l.fixFirefoxAutoScroll()})})})})},l.renderTextArea=function(){var i=l.props,m=i.prefixCls,t=m===void 0?"rc-textarea":m,p=i.autoSize,s=i.onResize,O=i.className,E=i.disabled,D=l.state,N=D.textareaStyles,re=D.resizeStatus,X=Object(ve.a)(l.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),L=k()(t,O,Object(ae.a)({},"".concat(t,"-disabled"),E));"value"in X&&(X.value=X.value||"");var G=Object(Y.a)(Object(Y.a)(Object(Y.a)({},l.props.style),N),re===o.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return x.createElement(fe,{onResize:l.handleResize,disabled:!(p||s)},x.createElement("textarea",Object(j.a)({},X,{className:L,style:G,ref:l.saveTextArea})))},l.state={textareaStyles:{},resizeStatus:o.NONE},l}return Object(q.a)(a,[{key:"componentDidUpdate",value:function(l){(l.value!==this.props.value||!c()(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(m){}}},{key:"render",value:function(){return this.renderTextArea()}}]),a}(x.Component),b=u,C=function(_){Object(U.a)(a,_);var h=Object(v.a)(a);function a(n){var l;Object(T.a)(this,a),l=h.call(this,n),l.resizableTextArea=void 0,l.focus=function(){l.resizableTextArea.textArea.focus()},l.saveTextArea=function(m){l.resizableTextArea=m},l.handleChange=function(m){var t=l.props.onChange;l.setValue(m.target.value,function(){l.resizableTextArea.resizeTextarea()}),t&&t(m)},l.handleKeyDown=function(m){var t=l.props,p=t.onPressEnter,s=t.onKeyDown;m.keyCode===13&&p&&p(m),s&&s(m)};var i=typeof n.value=="undefined"||n.value===null?n.defaultValue:n.value;return l.state={value:i},l}return Object(q.a)(a,[{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 x.createElement(b,Object(j.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}}]),a}(x.Component),A=H.default=C},Z3SC:function(ce,H,e){"use strict";e.r(H),e.d(H,"identityMap",function(){return t});var j=e("+L6B"),T=e("2/Rp"),q=e("DZo9"),U=e("8z0m"),v=e("oBTY"),x=e("7Kak"),Y=e("9yH6"),ae=e("O3gP"),P=e("lrIw"),te=e("14J3"),g=e("BMrR"),M=e("jCWc"),y=e("kPKH"),W=e("5Dmo"),K=e("3S7+"),w=e("0Owb"),z=e("2qtc"),ne=e("kLXV"),F=e("k1fw"),ie=e("miYZ"),oe=e("tsqr"),$=e("9og8"),me=e("y8nQ"),I=e("Vl3Y"),Z=e("tJVT"),B=e("PpiC"),fe=e("5NDa"),ve=e("5rEg"),he=e("OaEy"),k=e("2fM7"),ye=e("WmNS"),J=e.n(ye),Q=e("q1tI"),d=e.n(Q),ee=e("9kvl"),f=e("Lo1I"),r=e.n(f),c=e("HoYA"),o=e("4nbu"),u=e("yTi+"),b=e.n(u),C=e("1vsH"),A=e("l04A"),_=e("ye1Q"),h=e("xvlK"),a=e("kaH+"),n=e("dhSg"),l=e("m3rI"),i=k.a.Option,m=ve.a.TextArea,t={teacher:"\u6559\u5E08",student:"\u5B66\u751F",professional:"\u4E13\u4E1A\u4EBA\u58EB"},p=10,s=20,O=function(D){var N,re,X=D.user,L=D.account,G=D.globalSetting,Ee=D.shixunHomeworks,pe=D.loading,se=D.dispatch,Me=Object(B.a)(D,["user","account","globalSetting","shixunHomeworks","loading","dispatch"]),Ye=I.a.useForm(),Ie=Object(Z.a)(Ye,1),Ce=Ie[0],tt=Object(Q.useState)({}),Ne=Object(Z.a)(tt,2),_e=Ne[0],Be=Ne[1],ge=Object(Q.useState)([]),le=Object(Z.a)(ge,2),de=le[0],Pe=le[1],Ue=Object(Q.useState)([]),Oe=Object(Z.a)(Ue,2),We=Oe[0],ze=Oe[1],ke=Object(Q.useState)([]),Qe=Object(Z.a)(ke,2),Je=Qe[0],ut=Qe[1],mt=Object(Q.useState)([]),it=Object(Z.a)(mt,2),at=it[0],He=it[1],$e=Object(Q.useState)(!0),st=Object(Z.a)($e,2),Xe=st[0],lt=st[1],ft=Object(Q.useState)(!1),jt=Object(Z.a)(ft,2),Yt=jt[0],Jt=jt[1],Zt=Object(Q.useState)(),Tt=Object(Z.a)(Zt,2),qe=Tt[0],xt=Tt[1],Qt=Object(Q.useState)(null),St=Object(Z.a)(Qt,2),Ft=St[0],qt=St[1],ea=Object(Q.useState)(!0),Nt=Object(Z.a)(ea,2),ta=Nt[0],Lt=Nt[1],aa=Object(Q.useState)(),wt=Object(Z.a)(aa,2),_a=wt[0],va=wt[1],la=Object(Q.useState)(!1),It=Object(Z.a)(la,2),na=It[0],pa=It[1],oa=Object(Q.useState)([]),Bt=Object(Z.a)(oa,2),dt=Bt[0],Wt=Bt[1],Kt=L.basicInfo,Vt=Kt===void 0?{}:Kt,zt=Vt&&Vt.professional_certification=="certified",ct=zt?{visible:!1}:{visible:!1};Object(Q.useEffect)(function(){kt()},[]),Object(Q.useEffect)(function(){Object($.a)(J.a.mark(function R(){var S,V;return J.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.next=2,Ht((S=L.basicInfo)===null||S===void 0?void 0:S.school_id);case 2:V=ue.sent,ut(V==null?void 0:V.departments);case 4:case"end":return ue.stop()}},R)}))()},[(N=L.basicInfo)===null||N===void 0?void 0:N.school_id]);var kt=function(){var R=Object($.a)(J.a.mark(function S(){var V;return J.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return Lt(!0),ue.next=3,se({type:"account/getSchoolOption"});case 3:V=ue.sent,Lt(!1),Pe(V==null?void 0:V.schools);case 6:case"end":return ue.stop()}},S)}));return function(){return R.apply(this,arguments)}}(),Ht=function(S){return S?se({type:"account/getDepartmentOption",payload:{id:S}}):void 0};Object(Q.useEffect)(function(){if(!L.basicInfo)return;var R=L.basicInfo,S={nickname:R.nickname,name:R.show_realname?R.name:Object(C.E)(R.name),gender:R.gender,city:[R.location,R.location_city],identity:R.identity,school:R.school_name,department:R.department_name,studentNo:R.student_id,edu_entry_year:R.edu_entry_year,edu_background:R.edu_background,brief_introduction:R.brief_introduction,jobTitle:R.identity=="teacher"?R.technical_title:"\u6559\u6388",manager:R.identity=="professional"?R.technical_title:"\u4F01\u4E1A\u7BA1\u7406\u8005"};R!=null&&R.face_image&&Wt([{uid:"111",name:"111",url:l.a.API_SERVER+R.face_image}]),xt(R.name),lt(R.show_realname),qt(R.identity),Ce.setFieldsValue(S),Be(S)},[L.basicInfo]);var ba=function(){se({type:"account/setActionTabs",payload:{key:"Account-AppplySchool"}})},ra=function(){if(!de.find(function(S){return S.name===_e.school})){oe.b.info("\u8BF7\u5148\u9009\u62E9\u6B63\u786E\u7684\u5355\u4F4D\u6216\u8005\u5B66\u6821\uFF01");return}se({type:"account/setActionTabs",payload:{key:"Account-AppplyDepartment"}})},ua=function(S){var V;if(Be(Object(F.a)({},Ce.getFieldsValue())),"school"in S){ze(de.filter(function(ue){return ue.name.includes(S.school)}));var be=(de.find(function(ue){return ue.name===S.school})||{}).id;be?$t(S.school):(Ce.setFieldsValue({department:""}),Be(Object(F.a)(Object(F.a)({},_e),{school:S.school,department:""})))}(S==null||((V=S.nickname)===null||V===void 0)?void 0:V.length)<=0&&(lt(!0),Ce.setFieldsValue({name:qe})),"name"in S&&xt(S.name)},ia=function(){var S=!Xe;lt(S);var V=S?qe:Object(C.E)(qe);Ce.setFieldsValue({name:V})},$t=function(){var R=Object($.a)(J.a.mark(function S(V,be){var ue,Ke,Le,Te,Ae,Se;return J.a.wrap(function(De){for(;;)switch(De.prev=De.next){case 0:return Te=(ue=de.find(function(et){return et.name===V}))===null||ue===void 0?void 0:ue.id,De.next=3,Ht(Te);case 3:if(De.t0=De.sent,De.t0){De.next=6;break}De.t0={};case 6:Ae=De.t0,ut(Ae==null?void 0:Ae.departments),Se=be||(Ae==null||((Ke=Ae.departments)===null||Ke===void 0||((Le=Ke[0])===null||Le===void 0))?void 0:Le.name),Ce.setFieldsValue({department:Se}),Be(Object(F.a)(Object(F.a)({},_e),{school:V,department:Se}));case 11:case"end":return De.stop()}},S)}));return function(V,be){return R.apply(this,arguments)}}(),sa=function(){var R=Object($.a)(J.a.mark(function S(V){return J.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.next=2,kt();case 2:Ce.setFieldsValue({school:V,department:""}),Be(Object(F.a)(Object(F.a)({},_e),{school:V,department:""}));case 4:case"end":return ue.stop()}},S)}));return function(V){return R.apply(this,arguments)}}(),ha=function(){var R=Object($.a)(J.a.mark(function S(V){return J.a.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:ne.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:V?"\u60A8\u5DF2\u901A\u8FC7\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u4FEE\u6539\u59D3\u540D\u9700\u8981\u64A4\u9500\u5B9E\u540D\u8BA4\u8BC1\uFF0C\u662F\u5426\u786E\u5B9A\u64A4\u9500?":"\u60A8\u5DF2\u901A\u8FC7\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u4FEE\u6539\u4FE1\u606F\u9700\u8981\u64A4\u9500\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u662F\u5426\u786E\u5B9A\u64A4\u9500?",onOk:function(){var Ke=Object($.a)(J.a.mark(function Te(){var Ae,Se,Ge,De;return J.a.wrap(function(Re){for(;;)switch(Re.prev=Re.next){case 0:if(!V){Re.next=6;break}return Re.next=3,Object(A.g)({login:(Ae=X.userInfo)===null||Ae===void 0?void 0:Ae.login});case 3:Re.t0=Re.sent,Re.next=9;break;case 6:return Re.next=8,Object(A.i)({login:(Se=X.userInfo)===null||Se===void 0?void 0:Se.login});case 8:Re.t0=Re.sent;case 9:Ge=Re.t0,Ge&&(oe.b.success(V?"\u64A4\u9500\u5B9E\u540D\u8BA4\u8BC1\u6210\u529F":"\u64A4\u9500\u804C\u4E1A\u8BA4\u8BC1\u6210\u529F"),se({type:"account/getBasicInfo",payload:{login:(De=X.userInfo)===null||De===void 0?void 0:De.login}}));case 11:case"end":return Re.stop()}},Te)}));function Le(){return Ke.apply(this,arguments)}return Le}()});case 1:case"end":return ue.stop()}},S)}));return function(V){return R.apply(this,arguments)}}(),Ea=function(){var S=new Date().getFullYear();return Array(31).fill({}).map(function(V,be){return d.a.createElement(i,{key:be,value:S-be},d.a.createElement("span",null,S-be))})},da=function(){var R=Object($.a)(J.a.mark(function S(V){var be,ue,Ke,Le,Te,Ae,Se,Ge,De,et,Re,_t,vt,Ze,Gt,pt,bt,we,Ve,xe,ht,Et,yt,nt,gt,Ot;return J.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(Ke=V.nickname,Le=V.gender,Te=V.identity,Ae=V.studentNo,Se=V.jobTitle,Ge=V.manager,De=V.school,et=V.department,Re=V.edu_background,_t=V.edu_entry_year,vt=V.brief_introduction,Ze=V.face_image,Gt=V.staff_id,pt=(be=Je.find(function(ot){return ot.name===et}))===null||be===void 0?void 0:be.id,bt=(ue=de.find(function(ot){return ot.name===De}))===null||ue===void 0?void 0:ue.id,we=L.basicInfo,Ve=[],we.authentication!="uncertified"&&(qe!=we.name&&Ve.push("\u59D3\u540D"),Le!=we.gender&&Ve.push("\u6027\u522B")),xe=[],zt&&(Te!=we.identity?xe.push("\u804C\u4E1A"):(_e.identity==="student"&&(Ae!=we.student_id&&xe.push("\u804C\u4E1A")),_e.identity==="teacher"&&(Se!=we.technical_title&&xe.push("\u804C\u4E1A")),_e.identity==="professional"&&(Ge!=we.technical_title&&xe.push("\u804C\u4E1A"))),De!=we.school_name&&xe.push("\u5B66\u6821/\u5355\u4F4D"),et!=we.department_name&&xe.push("\u9662\u7CFB/\u90E8\u95E8")),!(Ve.length>0||xe.length>0)){Fe.next=12;break}ne.a.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u672C\u6B21\u4FEE\u6539\u6D89\u53CA".concat(Ve.toString().replaceAll(",","\u3001")).concat(Ve.length>0&&xe.length>0?"\u3001":"").concat(xe.toString().replaceAll(",","\u3001"),"\uFF0C\u9700\u8981\u91CD\u65B0\u8FDB\u884C").concat(Ve.length>0?"\u5B9E\u540D\u8BA4\u8BC1":"").concat(Ve.length>0&&xe.length>0?"\u548C":"").concat(xe.length>0?"\u804C\u4E1A\u8BA4\u8BC1":"","\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FEE\u6539"),onOk:function(){var ot=Object($.a)(J.a.mark(function fa(){var Ct,Pt,Dt,At,Rt,rt,Mt,Ut;return J.a.wrap(function(je){for(;;)switch(je.prev=je.next){case 0:if(!(Ve.length>0)){je.next=3;break}return je.next=3,Object(A.g)({login:(At=X.userInfo)===null||At===void 0?void 0:At.login});case 3:if(!(xe.length>0)){je.next=6;break}return je.next=6,Object(A.i)({login:(Rt=X.userInfo)===null||Rt===void 0?void 0:Rt.login});case 6:return je.next=8,se({type:"account/updateAccount",payload:{id:(Ct=L.basicInfo)===null||Ct===void 0?void 0:Ct.id,department_id:pt,gender:Le,identity:Te,location,name:qe,nickname:Ke,school_id:bt,edu_background:Re,edu_entry_year:_t,show_realname:Xe,brief_introduction:vt,student_id:Ae,technical_title:Se||Ge,face_image:Ze==null||((Pt=Ze.file)===null||Pt===void 0||((Dt=Pt.response)===null||Dt===void 0))?void 0:Dt.id,staff_id:Gt}});case 8:if(rt=je.sent,!((rt==null?void 0:rt.status)===-1)){je.next=11;break}return je.abrupt("return");case 11:if(!rt){je.next=19;break}if(oe.b.info("\u4FDD\u5B58\u6210\u529F"),(Mt=L.basicInfo)!==null&&Mt!==void 0&&Mt.base_info_completed||se({type:"user/getUserInfo"}),se({type:"account/getBasicInfo",payload:{login:(Ut=X.userInfo)===null||Ut===void 0?void 0:Ut.login}}),!(Te!==Ft&&Te==="teacher")){je.next=17;break}return je.abrupt("return");case 17:localStorage.getItem("Noviceguide")==="0"||se({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:4,href:"/classrooms",text:d.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")}}),ee.d.push("/account/profile");case 19:case"end":return je.stop()}},fa)}));function ma(){return ot.apply(this,arguments)}return ma}()}),Fe.next=25;break;case 12:return Fe.next=14,se({type:"account/updateAccount",payload:{id:(ht=L.basicInfo)===null||ht===void 0?void 0:ht.id,department_id:pt,gender:Le,identity:Te,location,name:qe,nickname:Ke,school_id:bt,edu_background:Re,edu_entry_year:_t,show_realname:Xe,brief_introduction:vt,student_id:Ae,technical_title:Se||Ge,face_image:Ze==null||((Et=Ze.file)===null||Et===void 0||((yt=Et.response)===null||yt===void 0))?void 0:yt.id}});case 14:if(nt=Fe.sent,!((nt==null?void 0:nt.status)===-1)){Fe.next=17;break}return Fe.abrupt("return");case 17:if(!nt){Fe.next=25;break}if(oe.b.info("\u4FDD\u5B58\u6210\u529F"),(gt=L.basicInfo)!==null&>!==void 0&>.base_info_completed||se({type:"user/getUserInfo"}),se({type:"account/getBasicInfo",payload:{login:(Ot=X.userInfo)===null||Ot===void 0?void 0:Ot.login}}),!(Te!==Ft&&Te==="teacher")){Fe.next=23;break}return Fe.abrupt("return");case 23:localStorage.getItem("Noviceguide")==="0"||se({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:4,href:"/classrooms",text:d.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")}}),ee.d.push("/account/profile");case 25:case"end":return Fe.stop()}},S)}));return function(V){return R.apply(this,arguments)}}(),Xt=function(){Jt(!1),ee.d.push("/account/profile")},ca=d.a.createElement("div",null,na?d.a.createElement(_.a,null):d.a.createElement(h.a,null),d.a.createElement("div",{style:{marginTop:8}},"\u4E0A\u4F20")),ya=function(S,V){var be=new FileReader;be.addEventListener("load",function(){return V(be.result)}),be.readAsDataURL(S)};return d.a.createElement("section",{className:r.a.wrap},d.a.createElement("div",{className:r.a.content},d.a.createElement("div",{className:r.a.titleWrap},d.a.createElement("div",{className:r.a.title},"\u57FA\u672C\u4FE1\u606F")),d.a.createElement(I.a,{form:Ce,className:r.a.formWrap,layout:"horizontal",onValuesChange:ua,onFinish:da},d.a.createElement(I.a.Item,{label:"\u59D3\u540D",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(p,"\u4E2A\u5B57\u7B26")},{validator:C.H}],extra:d.a.createElement("span",null,_e.nickname?Xe?"\u663E\u793A\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D":"\u9690\u85CF\uFF1A\u5E73\u53F0\u5C06\u663E\u793A\u4F60\u7684\u6635\u79F0":"\u586B\u5199\u6635\u79F0\u540E\u53EF\u8BBE\u7F6E\u59D3\u540D\u8FDB\u884C\u9690\u85CF\uFF08\u5F53\u8FDB\u884C\u59D3\u540D\u641C\u7D22\u65F6\uFF0C\u4F1A\u5C55\u793A\u60A8\u7684\u771F\u5B9E\u59D3\u540D\uFF09")},d.a.createElement(ve.a,{disabled:_e.nickname?!Xe:!1,placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D\uFF0C\u6700\u5927\u9650\u5236".concat(p,"\u4E2A\u5B57\u7B26"),maxLength:p,addonAfter:_e.nickname?d.a.createElement("i",{style:{lineHeight:"26px"},className:"iconfont ".concat(Xe?"icon-xianshi":"icon-yincang"," font18 ").concat(r.a.color0152d9),onClick:ia}):null})),d.a.createElement(g.a,{gutter:[10,0]},d.a.createElement(y.a,null,d.a.createElement(K.a,Object(w.a)({placement:"bottom",title:function(){return d.a.createElement("div",null,d.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),d.a.createElement("div",null,"\u53EF\u5728",d.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},ct),d.a.createElement(I.a.Item,{label:"\u804C\u4E1A",name:"identity",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u4E1A"}]},d.a.createElement(k.a,{style:{width:160}},d.a.createElement(i,{value:"teacher"},"\u6559\u5E08"),d.a.createElement(i,{value:"student"},"\u5B66\u751F"))))),d.a.createElement(y.a,null,_e.identity==="student"&&d.a.createElement(K.a,Object(w.a)({placement:"bottom",title:function(){return d.a.createElement("div",null,d.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),d.a.createElement("div",null,"\u53EF\u5728",d.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},ct),d.a.createElement(I.a.Item,{initialValue:_e.studentNo,name:"studentNo",rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u5B66\u53F7"}]},d.a.createElement(ve.a,{style:{width:200},type:"text",placeholder:"\u8BF7\u8F93\u5165\u5B66\u53F7"}))),_e.identity==="teacher"&&d.a.createElement(K.a,Object(w.a)({placement:"bottom",title:function(){return d.a.createElement("div",null,d.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),d.a.createElement("div",null,"\u53EF\u5728",d.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},ct),d.a.createElement(I.a.Item,{initialValue:_e.jobTitle,name:"jobTitle",rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u804C\u79F0"}]},d.a.createElement(k.a,{style:{width:200}},d.a.createElement(i,{value:"\u6559\u6388"},"\u6559\u6388"),d.a.createElement(i,{value:"\u7814\u7A76\u5458"},"\u7814\u7A76\u5458"),d.a.createElement(i,{value:"\u526F\u6559\u6388"},"\u526F\u6559\u6388"),d.a.createElement(i,{value:"\u526F\u7814\u7A76\u5458"},"\u526F\u7814\u7A76\u5458"),d.a.createElement(i,{value:"\u8BB2\u5E08"},"\u8BB2\u5E08"),d.a.createElement(i,{value:"\u52A9\u7406\u7814\u7A76\u5458"},"\u52A9\u7406\u7814\u7A76\u5458"),d.a.createElement(i,{value:"\u52A9\u7406\u6559\u6388"},"\u52A9\u7406\u6559\u6388"))))),(_e.identity==="teacher"||_e.identity==="professional")&&d.a.createElement(y.a,{flex:1},d.a.createElement(I.a.Item,{label:"\u5DE5\u53F7",name:"studentNo",labelCol:{span:4},rules:[{required:!0},{validator:function(S,V){var be=/[\u4E00-\u9FA5]/g;return be.test(V)?Promise.reject("\u8BF7\u52FF\u8F93\u5165\u4E2D\u6587\u5B57\u7B26"):Promise.resolve()}}]},d.a.createElement(ve.a,{className:r.a.staffidInput})))),d.a.createElement(K.a,Object(w.a)({placement:"bottom",title:function(){return d.a.createElement("div",null,d.a.createElement("div",null,"\u5DF2\u63D0\u4EA4\u804C\u4E1A\u8BA4\u8BC1"),d.a.createElement("div",null,"\u53EF\u5728",d.a.createElement("a",{href:"/account/certification",className:"c-blue"},"\u8BA4\u8BC1\u4FE1\u606F"),"\u4E2D\u901A\u8FC7\u201C\u91CD\u65B0\u8BA4\u8BC1\u201D\u8FDB\u884C\u4FEE\u6539"))}},ct),d.a.createElement(I.a.Item,{label:"\u9662\u7CFB/\u90E8\u95E8",name:"department",wrapperCol:{span:10},extra:!ta&&_e.department&&!(Je!=null&&Je.find(function(R){return R.name===_e.department}))&&d.a.createElement("div",{className:r.a.schoolHintWrap},d.a.createElement("span",{className:r.a.colorCDCDCD},_e.department?"\u672A\u627E\u5230\u5305\u542B\u201C".concat(_e.department,"\u201D\u7684\u9AD8\u6821\uFF0C"):"\u672A\u627E\u5230\u9662\u7CFB\uFF0C"),d.a.createElement("span",{className:"".concat(r.a.color0152d9," current"),onClick:ra},"\u7533\u8BF7\u65B0\u589E"))},d.a.createElement(P.a,{showSearch:!0,onChange:function(S){return He(Je.filter(function(V){return V.name.includes(S)}))},options:at==null?void 0:at.map(function(R){return{value:R.name}})}))),d.a.createElement(I.a.Item,{labelCol:{span:3},wrapperCol:{span:4},label:"\u6027\u522B",className:"mb0"},d.a.createElement(I.a.Item,{name:"gender"},d.a.createElement(Y.a.Group,null,d.a.createElement(Y.a,{value:0},"\u7537"),d.a.createElement(Y.a,{value:1},"\u5973")))),d.a.createElement("div",{style:{display:"flex"}},d.a.createElement(I.a.Item,{label:"\u4E0A\u4F20\u8BC1\u4EF6\u7167",wrapperCol:{span:10},name:"face_image"},d.a.createElement(U.a,{listType:"picture-card",withCredentials:!0,className:"avatar-uploader",fileList:dt,onPreview:function(S){n.a.publish("preview-image",S.thumbUrl||S.url)},action:"".concat(l.a.API_SERVER,"/api/attachments.json"),beforeUpload:function(S){var V=S.type==="image/jpeg"||S.type==="image/png";if(!V)return oe.b.error("\u60A8\u4E0A\u4F20\u7684\u4E0D\u662FJPG/PNG\u7C7B\u578B\u6587\u4EF6"),Promise.reject();var be=S.size/1024/1024<1;return be?V&&be:(oe.b.error("\u6587\u4EF6\u4E0D\u80FD\u5927\u4E8E1MB"),Promise.reject())},onChange:function(S){Wt(Object(v.a)(S.fileList))}},(dt==null?void 0:dt.length)>0?null:ca)),d.a.createElement("div",{style:{marginLeft:16,color:"#666666",display:"flex",flexDirection:"column",marginTop:5}},d.a.createElement("span",null,"\u8981\u6C42\uFF1A"),d.a.createElement("span",null,"1.\u5B66\u751F\u7167\u7247\u5FC5\u987B\u4E3A\u9AD8\u6E05\u7684\u4EBA\u8138\u7167"),d.a.createElement("span",null,"2.\u6309\u7167 \u59D3\u540D-\u5B66\u53F7 \u7684\u65B9\u5F0F\u6765\u547D\u540D\u7167\u7247"),d.a.createElement("span",null,"3.\u56FE\u7247\u5927\u5C0F\u57281MB\u4EE5\u5185"))),d.a.createElement(I.a.Item,null,d.a.createElement(T.a,{className:"".concat(Ee.actionTabs.type===2?r.a.submitButtondiv:r.a.submitButton," ml100"),size:"large",type:"primary",htmlType:"submit",loading:pe["account/editAccount"]},"\u4FDD\u5B58"),d.a.createElement(T.a,{className:r.a.submitButton,size:"large",onClick:function(){return ee.d.push("/account/profile")}},"\u53D6\u6D88")))),d.a.createElement("div",{className:"".concat(r.a.hint," font14")},"* \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"),d.a.createElement(c.a,{visible:L.actionTabs.key==="Account-AppplySchool",onClose:function(){se({type:"account/setActionTabs",payload:{}})},schoolName:_e.school,onSuccess:sa}),d.a.createElement(o.a,{visible:L.actionTabs.key==="Account-AppplyDepartment",onClose:function(){se({type:"account/setActionTabs",payload:{}})},schoolId:(re=de.find(function(R){return R.name===_e.school}))===null||re===void 0?void 0:re.id,schoolName:_e.school,departmentName:_e.department,onSuccess:function(S){return $t(_e.school,S)}}),d.a.createElement(ne.a,{centered:!0,destroyOnClose:!0,visible:Yt,title:"\u6559\u5E08\u4EA4\u6D41\u793E\u533A",width:648,onCancel:Xt,onOk:Xt},d.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},d.a.createElement("aside",{style:{padding:"8px 70px"}},d.a.createElement("span",{style:{letterSpacing:1}},"\u57FA\u4E8E\u60A8\u6240\u5728\u9662\u6821\u4E0E\u5E73\u53F0\u6709\u6DF1\u5EA6\u5408\u4F5C\uFF0C\u6211\u4EEC\u7279\u610F\u4E3A\u60A8\u914D\u5907\u4E86\u5E73\u53F0\u76841\u5BF91\u52A9"),d.a.createElement("br",null),"\u6559\uFF0C\u60A8\u53EF\u4EE5\u626B\u63CF\u4E0B\u65B9\u4E8C\u7EF4\u7801\u6DFB\u52A0\u52A9\u7406\u5FAE\u4FE1\uFF0C\u6211\u4EEC\u5C067*24\u5C0F\u65F6\u4E3A\u60A8\u7B54\u7591\u89E3\u60D1\u3002"),d.a.createElement("img",{src:b.a,width:162,height:162}))),d.a.createElement(a.a,null))};H.default=Object(ee.a)(function(E){var D=E.user,N=E.account,re=E.loading,X=E.globalSetting,L=E.shixunHomeworks;return{user:D,account:N,globalSetting:X,loading:re.effects,shixunHomeworks:L}})(O)},ZpRC:function(ce,H,e){"use strict";function j(g){return typeof g=="object"&&g!=null&&g.nodeType===1}function T(g,M){return(!M||g!=="hidden")&&g!=="visible"&&g!=="clip"}function q(g,M){if(g.clientHeightM||w>g&&z=M&&ne>=y?w-g-W:z>M&&ney?z-M+K:0}var v=function(g,M){var y=window,W=M.scrollMode,K=M.block,w=M.inline,z=M.boundary,ne=M.skipOverflowHiddenElements,F=typeof z=="function"?z:function(N){return N!==z};if(!j(g))throw new TypeError("Invalid target");for(var ie=document.scrollingElement||document.documentElement,oe=[],$=g;j($)&&F($);){if(($=$.parentElement)===ie){oe.push($);break}$!=null&&$===document.body&&q($)&&!q(document.documentElement)||$!=null&&q($,ne)&&oe.push($)}for(var me=y.visualViewport?y.visualViewport.width:innerWidth,I=y.visualViewport?y.visualViewport.height:innerHeight,Z=window.scrollX||pageXOffset,B=window.scrollY||pageYOffset,fe=g.getBoundingClientRect(),ve=fe.height,he=fe.width,k=fe.top,ye=fe.right,J=fe.bottom,Q=fe.left,d=K==="start"||K==="nearest"?k:K==="end"?J:k+ve/2,ee=w==="center"?Q+he/2:w==="end"?ye:Q,f=[],r=0;r=0&&Q>=0&&J<=I&&ye<=me&&k>=C&&J<=_&&Q>=h&&ye<=A)return f;var a=getComputedStyle(c),n=parseInt(a.borderLeftWidth,10),l=parseInt(a.borderTopWidth,10),i=parseInt(a.borderRightWidth,10),m=parseInt(a.borderBottomWidth,10),t=0,p=0,s="offsetWidth"in c?c.offsetWidth-c.clientWidth-n-i:0,O="offsetHeight"in c?c.offsetHeight-c.clientHeight-l-m:0;if(ie===c)t=K==="start"?d:K==="end"?d-I:K==="nearest"?U(B,B+I,I,l,m,B+d,B+d+ve,ve):d-I/2,p=w==="start"?ee:w==="center"?ee-me/2:w==="end"?ee-me:U(Z,Z+me,me,n,i,Z+ee,Z+ee+he,he),t=Math.max(0,t+B),p=Math.max(0,p+Z);else{t=K==="start"?d-C-l:K==="end"?d-_+m+O:K==="nearest"?U(C,_,u,l,m+O,d,d+ve,ve):d-(C+u/2)+O/2,p=w==="start"?ee-h-n:w==="center"?ee-(h+b/2)+s/2:w==="end"?ee-A+i+s:U(h,A,b,n,i+s,ee,ee+he,he);var E=c.scrollLeft,D=c.scrollTop;d+=D-(t=Math.max(0,Math.min(D+t,c.scrollHeight-u+O))),ee+=E-(p=Math.max(0,Math.min(E+p,c.scrollWidth-b+s)))}f.push({el:c,top:t,left:p})}return f};function x(g){return g===Object(g)&&Object.keys(g).length!==0}function Y(g,M){M===void 0&&(M="auto");var y="scrollBehavior"in document.body.style;g.forEach(function(W){var K=W.el,w=W.top,z=W.left;K.scroll&&y?K.scroll({top:w,left:z,behavior:M}):(K.scrollTop=w,K.scrollLeft=z)})}function ae(g){return g===!1?{block:"end",inline:"nearest"}:x(g)?g:{block:"start",inline:"nearest"}}function P(g,M){var y=!g.ownerDocument.documentElement.contains(g);if(x(M)&&typeof M.behavior=="function")return M.behavior(y?[]:v(g,M));if(y)return;var W=ae(M);return Y(v(g,W),W.behavior)}var te=H.a=P},bT9E:function(ce,H,e){"use strict";e.d(H,"a",function(){return T});var j=e("VTBJ");function T(q,U){var v=Object(j.a)({},q);return Array.isArray(U)&&U.forEach(function(x){delete v[x]}),v}},gJ3r:function(ce,H,e){"use strict";e.d(H,"a",function(){return j});var j=[{value:"\u5317\u4EAC",label:"\u5317\u4EAC",children:[{value:"\u4E1C\u57CE",label:"\u4E1C\u57CE"},{value:"\u897F\u57CE",label:"\u897F\u57CE"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u4E30\u53F0",label:"\u4E30\u53F0"},{value:"\u77F3\u666F\u5C71",label:"\u77F3\u666F\u5C71"},{value:"\u6D77\u6DC0",label:"\u6D77\u6DC0"},{value:"\u95E8\u5934\u6C9F",label:"\u95E8\u5934\u6C9F"},{value:"\u623F\u5C71",label:"\u623F\u5C71"},{value:"\u901A\u5DDE",label:"\u901A\u5DDE"},{value:"\u987A\u4E49",label:"\u987A\u4E49"},{value:"\u660C\u5E73",label:"\u660C\u5E73"},{value:"\u5927\u5174",label:"\u5927\u5174"},{value:"\u5E73\u8C37",label:"\u5E73\u8C37"},{value:"\u6000\u67D4",label:"\u6000\u67D4"},{value:"\u5BC6\u4E91",label:"\u5BC6\u4E91"},{value:"\u5EF6\u5E86",label:"\u5EF6\u5E86"}]},{value:"\u4E0A\u6D77",label:"\u4E0A\u6D77",children:[{value:"\u5D07\u660E",label:"\u5D07\u660E"},{value:"\u9EC4\u6D66",label:"\u9EC4\u6D66"},{value:"\u5362\u6E7E",label:"\u5362\u6E7E"},{value:"\u5F90\u6C47",label:"\u5F90\u6C47"},{value:"\u957F\u5B81",label:"\u957F\u5B81"},{value:"\u9759\u5B89",label:"\u9759\u5B89"},{value:"\u666E\u9640",label:"\u666E\u9640"},{value:"\u95F8\u5317",label:"\u95F8\u5317"},{value:"\u8679\u53E3",label:"\u8679\u53E3"},{value:"\u6768\u6D66",label:"\u6768\u6D66"},{value:"\u95F5\u884C",label:"\u95F5\u884C"},{value:"\u5B9D\u5C71",label:"\u5B9D\u5C71"},{value:"\u5609\u5B9A",label:"\u5609\u5B9A"},{value:"\u6D66\u4E1C",label:"\u6D66\u4E1C"},{value:"\u91D1\u5C71",label:"\u91D1\u5C71"},{value:"\u677E\u6C5F",label:"\u677E\u6C5F"},{value:"\u9752\u6D66",label:"\u9752\u6D66"},{value:"\u5357\u6C47",label:"\u5357\u6C47"},{value:"\u5949\u8D24",label:"\u5949\u8D24"}]},{value:"\u5E7F\u4E1C",label:"\u5E7F\u4E1C",children:[{value:"\u5E7F\u5DDE",label:"\u5E7F\u5DDE"},{value:"\u6DF1\u5733",label:"\u6DF1\u5733"},{value:"\u73E0\u6D77",label:"\u73E0\u6D77"},{value:"\u4E1C\u839E",label:"\u4E1C\u839E"},{value:"\u4E2D\u5C71",label:"\u4E2D\u5C71"},{value:"\u4F5B\u5C71",label:"\u4F5B\u5C71"},{value:"\u60E0\u5DDE",label:"\u60E0\u5DDE"},{value:"\u6CB3\u6E90",label:"\u6CB3\u6E90"},{value:"\u6F6E\u5DDE",label:"\u6F6E\u5DDE"},{value:"\u6C5F\u95E8",label:"\u6C5F\u95E8"},{value:"\u63ED\u9633",label:"\u63ED\u9633"},{value:"\u8302\u540D",label:"\u8302\u540D"},{value:"\u6885\u5DDE",label:"\u6885\u5DDE"},{value:"\u6E05\u8FDC",label:"\u6E05\u8FDC"},{value:"\u6C55\u5934",label:"\u6C55\u5934"},{value:"\u6C55\u5C3E",label:"\u6C55\u5C3E"},{value:"\u97F6\u5173",label:"\u97F6\u5173"},{value:"\u987A\u5FB7",label:"\u987A\u5FB7"},{value:"\u9633\u6C5F",label:"\u9633\u6C5F"},{value:"\u4E91\u6D6E",label:"\u4E91\u6D6E"},{value:"\u6E5B\u6C5F",label:"\u6E5B\u6C5F"},{value:"\u8087\u5E86",label:"\u8087\u5E86"}]},{value:"\u6C5F\u82CF",label:"\u6C5F\u82CF",children:[{value:"\u5357\u4EAC",label:"\u5357\u4EAC"},{value:"\u5E38\u719F",label:"\u5E38\u719F"},{value:"\u5E38\u5DDE",label:"\u5E38\u5DDE"},{value:"\u6D77\u95E8",label:"\u6D77\u95E8"},{value:"\u6DEE\u5B89",label:"\u6DEE\u5B89"},{value:"\u6C5F\u90FD",label:"\u6C5F\u90FD"},{value:"\u6C5F\u9634",label:"\u6C5F\u9634"},{value:"\u6606\u5C71",label:"\u6606\u5C71"},{value:"\u8FDE\u4E91\u6E2F",label:"\u8FDE\u4E91\u6E2F"},{value:"\u5357\u901A",label:"\u5357\u901A"},{value:"\u542F\u4E1C",label:"\u542F\u4E1C"},{value:"\u6CAD\u9633",label:"\u6CAD\u9633"},{value:"\u5BBF\u8FC1",label:"\u5BBF\u8FC1"},{value:"\u82CF\u5DDE",label:"\u82CF\u5DDE"},{value:"\u592A\u4ED3",label:"\u592A\u4ED3"},{value:"\u6CF0\u5DDE",label:"\u6CF0\u5DDE"},{value:"\u540C\u91CC",label:"\u540C\u91CC"},{value:"\u65E0\u9521",label:"\u65E0\u9521"},{value:"\u5F90\u5DDE",label:"\u5F90\u5DDE"},{value:"\u76D0\u57CE",label:"\u76D0\u57CE"},{value:"\u626C\u5DDE",label:"\u626C\u5DDE"},{value:"\u5B9C\u5174",label:"\u5B9C\u5174"},{value:"\u4EEA\u5F81",label:"\u4EEA\u5F81"},{value:"\u5F20\u5BB6\u6E2F",label:"\u5F20\u5BB6\u6E2F"},{value:"\u9547\u6C5F",label:"\u9547\u6C5F"}]},{value:"\u91CD\u5E86",label:"\u91CD\u5E86",children:[{value:"\u4E07\u5DDE",label:"\u4E07\u5DDE"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u6E1D\u4E2D",label:"\u6E1D\u4E2D"},{value:"\u5927\u6E21\u53E3",label:"\u5927\u6E21\u53E3"},{value:"\u6C5F\u5317",label:"\u6C5F\u5317"},{value:"\u6C99\u576A\u575D",label:"\u6C99\u576A\u575D"},{value:"\u4E5D\u9F99\u5761",label:"\u4E5D\u9F99\u5761"},{value:"\u5357\u5CB8",label:"\u5357\u5CB8"},{value:"\u5317\u789A",label:"\u5317\u789A"},{value:"\u4E07\u76DB",label:"\u4E07\u76DB"},{value:"\u53CC\u6322",label:"\u53CC\u6322"},{value:"\u6E1D\u5317",label:"\u6E1D\u5317"},{value:"\u5DF4\u5357",label:"\u5DF4\u5357"},{value:"\u9ED4\u6C5F",label:"\u9ED4\u6C5F"},{value:"\u957F\u5BFF",label:"\u957F\u5BFF"},{value:"\u7DA6\u6C5F",label:"\u7DA6\u6C5F"},{value:"\u6F7C\u5357",label:"\u6F7C\u5357"},{value:"\u94DC\u6881",label:"\u94DC\u6881"},{value:"\u5927\u8DB3",label:"\u5927\u8DB3"},{value:"\u8363\u660C",label:"\u8363\u660C"},{value:"\u58C1\u5C71",label:"\u58C1\u5C71"},{value:"\u6881\u5E73",label:"\u6881\u5E73"},{value:"\u57CE\u53E3",label:"\u57CE\u53E3"},{value:"\u4E30\u90FD",label:"\u4E30\u90FD"},{value:"\u57AB\u6C5F",label:"\u57AB\u6C5F"},{value:"\u6B66\u9686",label:"\u6B66\u9686"},{value:"\u5FE0\u53BF",label:"\u5FE0\u53BF"},{value:"\u5F00\u53BF",label:"\u5F00\u53BF"},{value:"\u4E91\u9633",label:"\u4E91\u9633"},{value:"\u5949\u8282",label:"\u5949\u8282"},{value:"\u5DEB\u5C71",label:"\u5DEB\u5C71"},{value:"\u5DEB\u6EAA",label:"\u5DEB\u6EAA"},{value:"\u77F3\u67F1",label:"\u77F3\u67F1"},{value:"\u79C0\u5C71",label:"\u79C0\u5C71"},{value:"\u9149\u9633",label:"\u9149\u9633"},{value:"\u5F6D\u6C34",label:"\u5F6D\u6C34"},{value:"\u6C5F\u6D25",label:"\u6C5F\u6D25"},{value:"\u5408\u5DDD",label:"\u5408\u5DDD"},{value:"\u6C38\u5DDD",label:"\u6C38\u5DDD"},{value:"\u5357\u5DDD",label:"\u5357\u5DDD"}]},{value:"\u5B89\u5FBD",label:"\u5B89\u5FBD",children:[{value:"\u5408\u80A5",label:"\u5408\u80A5"},{value:"\u5B89\u5E86",label:"\u5B89\u5E86"},{value:"\u868C\u57E0",label:"\u868C\u57E0"},{value:"\u4EB3\u5DDE",label:"\u4EB3\u5DDE"},{value:"\u5DE2\u6E56",label:"\u5DE2\u6E56"},{value:"\u6EC1\u5DDE",label:"\u6EC1\u5DDE"},{value:"\u961C\u9633",label:"\u961C\u9633"},{value:"\u8D35\u6C60",label:"\u8D35\u6C60"},{value:"\u6DEE\u5317",label:"\u6DEE\u5317"},{value:"\u6DEE\u5316",label:"\u6DEE\u5316"},{value:"\u6DEE\u5357",label:"\u6DEE\u5357"},{value:"\u9EC4\u5C71",label:"\u9EC4\u5C71"},{value:"\u4E5D\u534E\u5C71",label:"\u4E5D\u534E\u5C71"},{value:"\u516D\u5B89",label:"\u516D\u5B89"},{value:"\u9A6C\u978D\u5C71",label:"\u9A6C\u978D\u5C71"},{value:"\u5BBF\u5DDE",label:"\u5BBF\u5DDE"},{value:"\u94DC\u9675",label:"\u94DC\u9675"},{value:"\u5C6F\u6EAA",label:"\u5C6F\u6EAA"},{value:"\u829C\u6E56",label:"\u829C\u6E56"},{value:"\u5BA3\u57CE",label:"\u5BA3\u57CE"}]},{value:"\u798F\u5EFA",label:"\u798F\u5EFA",children:[{value:"\u798F\u5DDE",label:"\u798F\u5DDE"},{value:"\u53A6\u95E8",label:"\u53A6\u95E8"},{value:"\u6CC9\u5DDE",label:"\u6CC9\u5DDE"},{value:"\u6F33\u5DDE",label:"\u6F33\u5DDE"},{value:"\u9F99\u5CA9",label:"\u9F99\u5CA9"},{value:"\u5357\u5E73",label:"\u5357\u5E73"},{value:"\u5B81\u5FB7",label:"\u5B81\u5FB7"},{value:"\u8386\u7530",label:"\u8386\u7530"},{value:"\u4E09\u660E",label:"\u4E09\u660E"}]},{value:"\u7518\u8083",label:"\u7518\u8083",children:[{value:"\u5170\u5DDE",label:"\u5170\u5DDE"},{value:"\u5609\u5CEA\u5173",label:"\u5609\u5CEA\u5173"},{value:"\u767D\u94F6",label:"\u767D\u94F6"},{value:"\u5B9A\u897F",label:"\u5B9A\u897F"},{value:"\u6566\u714C",label:"\u6566\u714C"},{value:"\u7518\u5357",label:"\u7518\u5357"},{value:"\u91D1\u660C",label:"\u91D1\u660C"},{value:"\u9152\u6CC9",label:"\u9152\u6CC9"},{value:"\u4E34\u590F",label:"\u4E34\u590F"},{value:"\u5E73\u51C9",label:"\u5E73\u51C9"},{value:"\u5929\u6C34",label:"\u5929\u6C34"},{value:"\u9647\u5357",label:"\u9647\u5357"},{value:"\u6B66\u5A01",label:"\u6B66\u5A01"},{value:"\u897F\u5CF0",label:"\u897F\u5CF0"},{value:"\u5F20\u6396",label:"\u5F20\u6396"}]},{value:"\u5E7F\u897F",label:"\u5E7F\u897F",children:[{value:"\u5357\u5B81",label:"\u5357\u5B81"},{value:"\u6765\u5BBE",label:"\u6765\u5BBE"},{value:"\u767E\u8272",label:"\u767E\u8272"},{value:"\u5317\u6D77",label:"\u5317\u6D77"},{value:"\u6842\u6797",label:"\u6842\u6797"},{value:"\u9632\u57CE\u6E2F",label:"\u9632\u57CE\u6E2F"},{value:"\u8D35\u6E2F",label:"\u8D35\u6E2F"},{value:"\u6CB3\u6C60",label:"\u6CB3\u6C60"},{value:"\u8D3A\u5DDE",label:"\u8D3A\u5DDE"},{value:"\u67F3\u5DDE",label:"\u67F3\u5DDE"},{value:"\u94A6\u5DDE",label:"\u94A6\u5DDE"},{value:"\u68A7\u5DDE",label:"\u68A7\u5DDE"},{value:"\u7389\u6797",label:"\u7389\u6797"}]},{value:"\u8D35\u5DDE",label:"\u8D35\u5DDE",children:[{value:"\u8D35\u9633",label:"\u8D35\u9633"},{value:"\u5B89\u987A",label:"\u5B89\u987A"},{value:"\u6BD5\u8282",label:"\u6BD5\u8282"},{value:"\u90FD\u5300",label:"\u90FD\u5300"},{value:"\u51EF\u91CC",label:"\u51EF\u91CC"},{value:"\u516D\u76D8\u6C34",label:"\u516D\u76D8\u6C34"},{value:"\u94DC\u4EC1",label:"\u94DC\u4EC1"},{value:"\u5174\u4E49",label:"\u5174\u4E49"},{value:"\u7389\u5C4F",label:"\u7389\u5C4F"},{value:"\u9075\u4E49",label:"\u9075\u4E49"}]},{value:"\u6D77\u5357",label:"\u6D77\u5357",children:[{value:"\u6D77\u53E3",label:"\u6D77\u53E3"},{value:"\u510B\u53BF",label:"\u510B\u53BF"},{value:"\u9675\u6C34",label:"\u9675\u6C34"},{value:"\u743C\u6D77",label:"\u743C\u6D77"},{value:"\u4E09\u4E9A",label:"\u4E09\u4E9A"},{value:"\u901A\u4EC0",label:"\u901A\u4EC0"},{value:"\u4E07\u5B81",label:"\u4E07\u5B81"}]},{value:"\u6CB3\u5317",label:"\u6CB3\u5317",children:[{value:"\u77F3\u5BB6\u5E84",label:"\u77F3\u5BB6\u5E84"},{value:"\u4FDD\u5B9A",label:"\u4FDD\u5B9A"},{value:"\u5317\u6234\u6CB3",label:"\u5317\u6234\u6CB3"},{value:"\u6CA7\u5DDE",label:"\u6CA7\u5DDE"},{value:"\u627F\u5FB7",label:"\u627F\u5FB7"},{value:"\u4E30\u6DA6",label:"\u4E30\u6DA6"},{value:"\u90AF\u90F8",label:"\u90AF\u90F8"},{value:"\u8861\u6C34",label:"\u8861\u6C34"},{value:"\u5ECA\u574A",label:"\u5ECA\u574A"},{value:"\u5357\u6234\u6CB3",label:"\u5357\u6234\u6CB3"},{value:"\u79E6\u7687\u5C9B",label:"\u79E6\u7687\u5C9B"},{value:"\u5510\u5C71",label:"\u5510\u5C71"},{value:"\u65B0\u57CE",label:"\u65B0\u57CE"},{value:"\u90A2\u53F0",label:"\u90A2\u53F0"},{value:"\u5F20\u5BB6\u53E3",label:"\u5F20\u5BB6\u53E3"}]},{value:"\u9ED1\u9F99\u6C5F",label:"\u9ED1\u9F99\u6C5F",children:[{value:"\u54C8\u5C14\u6EE8",label:"\u54C8\u5C14\u6EE8"},{value:"\u5317\u5B89",label:"\u5317\u5B89"},{value:"\u5927\u5E86",label:"\u5927\u5E86"},{value:"\u5927\u5174\u5B89\u5CAD",label:"\u5927\u5174\u5B89\u5CAD"},{value:"\u9E64\u5C97",label:"\u9E64\u5C97"},{value:"\u9ED1\u6CB3",label:"\u9ED1\u6CB3"},{value:"\u4F73\u6728\u65AF",label:"\u4F73\u6728\u65AF"},{value:"\u9E21\u897F",label:"\u9E21\u897F"},{value:"\u7261\u4E39\u6C5F",label:"\u7261\u4E39\u6C5F"},{value:"\u9F50\u9F50\u54C8\u5C14",label:"\u9F50\u9F50\u54C8\u5C14"},{value:"\u4E03\u53F0\u6CB3",label:"\u4E03\u53F0\u6CB3"},{value:"\u53CC\u9E2D\u5C71",label:"\u53CC\u9E2D\u5C71"},{value:"\u7EE5\u5316",label:"\u7EE5\u5316"},{value:"\u4F0A\u6625",label:"\u4F0A\u6625"}]},{value:"\u6CB3\u5357",label:"\u6CB3\u5357",children:[{value:"\u90D1\u5DDE",label:"\u90D1\u5DDE"},{value:"\u5B89\u9633",label:"\u5B89\u9633"},{value:"\u9E64\u58C1",label:"\u9E64\u58C1"},{value:"\u6F62\u5DDD",label:"\u6F62\u5DDD"},{value:"\u7126\u4F5C",label:"\u7126\u4F5C"},{value:"\u6D4E\u6E90",label:"\u6D4E\u6E90"},{value:"\u5F00\u5C01",label:"\u5F00\u5C01"},{value:"\u6F2F\u6CB3",label:"\u6F2F\u6CB3"},{value:"\u6D1B\u9633",label:"\u6D1B\u9633"},{value:"\u5357\u9633",label:"\u5357\u9633"},{value:"\u5E73\u9876\u5C71",label:"\u5E73\u9876\u5C71"},{value:"\u6FEE\u9633",label:"\u6FEE\u9633"},{value:"\u4E09\u95E8\u5CE1",label:"\u4E09\u95E8\u5CE1"},{value:"\u5546\u4E18",label:"\u5546\u4E18"},{value:"\u65B0\u4E61",label:"\u65B0\u4E61"},{value:"\u4FE1\u9633",label:"\u4FE1\u9633"},{value:"\u8BB8\u660C",label:"\u8BB8\u660C"},{value:"\u5468\u53E3",label:"\u5468\u53E3"},{value:"\u9A7B\u9A6C\u5E97",label:"\u9A7B\u9A6C\u5E97"}]},{value:"\u9999\u6E2F",label:"\u9999\u6E2F",children:[{value:"\u9999\u6E2F",label:"\u9999\u6E2F"},{value:"\u4E5D\u9F99",label:"\u4E5D\u9F99"},{value:"\u65B0\u754C",label:"\u65B0\u754C"}]},{value:"\u6E56\u5317",label:"\u6E56\u5317",children:[{value:"\u6B66\u6C49",label:"\u6B66\u6C49"},{value:"\u5929\u95E8",label:"\u5929\u95E8"},{value:"\u6069\u65BD",label:"\u6069\u65BD"},{value:"\u9102\u5DDE",label:"\u9102\u5DDE"},{value:"\u9EC4\u5188",label:"\u9EC4\u5188"},{value:"\u9EC4\u77F3",label:"\u9EC4\u77F3"},{value:"\u8346\u95E8",label:"\u8346\u95E8"},{value:"\u8346\u5DDE",label:"\u8346\u5DDE"},{value:"\u6F5C\u6C5F",label:"\u6F5C\u6C5F"},{value:"\u5341\u5830",label:"\u5341\u5830"},{value:"\u968F\u5DDE",label:"\u968F\u5DDE"},{value:"\u6B66\u7A74",label:"\u6B66\u7A74"},{value:"\u4ED9\u6843",label:"\u4ED9\u6843"},{value:"\u54B8\u5B81",label:"\u54B8\u5B81"},{value:"\u8944\u9633",label:"\u8944\u9633"},{value:"\u8944\u6A0A",label:"\u8944\u6A0A"},{value:"\u5B5D\u611F",label:"\u5B5D\u611F"},{value:"\u5B9C\u660C",label:"\u5B9C\u660C"}]},{value:"\u6E56\u5357",label:"\u6E56\u5357",children:[{value:"\u957F\u6C99",label:"\u957F\u6C99"},{value:"\u5E38\u5FB7",label:"\u5E38\u5FB7"},{value:"\u90F4\u5DDE",label:"\u90F4\u5DDE"},{value:"\u8861\u9633",label:"\u8861\u9633"},{value:"\u6000\u5316",label:"\u6000\u5316"},{value:"\u5409\u9996",label:"\u5409\u9996"},{value:"\u5A04\u5E95",label:"\u5A04\u5E95"},{value:"\u90B5\u9633",label:"\u90B5\u9633"},{value:"\u6E58\u6F6D",label:"\u6E58\u6F6D"},{value:"\u76CA\u9633",label:"\u76CA\u9633"},{value:"\u5CB3\u9633",label:"\u5CB3\u9633"},{value:"\u6C38\u5DDE",label:"\u6C38\u5DDE"},{value:"\u5F20\u5BB6\u754C",label:"\u5F20\u5BB6\u754C"},{value:"\u682A\u6D32",label:"\u682A\u6D32"}]},{value:"\u6C5F\u897F",label:"\u6C5F\u897F",children:[{value:"\u5357\u660C",label:"\u5357\u660C"},{value:"\u629A\u5DDE",label:"\u629A\u5DDE"},{value:"\u8D63\u5DDE",label:"\u8D63\u5DDE"},{value:"\u5409\u5B89",label:"\u5409\u5B89"},{value:"\u666F\u5FB7\u9547",label:"\u666F\u5FB7\u9547"},{value:"\u4E95\u5188\u5C71",label:"\u4E95\u5188\u5C71"},{value:"\u4E5D\u6C5F",label:"\u4E5D\u6C5F"},{value:"\u5E90\u5C71",label:"\u5E90\u5C71"},{value:"\u840D\u4E61",label:"\u840D\u4E61"},{value:"\u4E0A\u9976",label:"\u4E0A\u9976"},{value:"\u65B0\u4F59",label:"\u65B0\u4F59"},{value:"\u5B9C\u6625",label:"\u5B9C\u6625"},{value:"\u9E70\u6F6D",label:"\u9E70\u6F6D"}]},{value:"\u5409\u6797",label:"\u5409\u6797",children:[{value:"\u957F\u6625",label:"\u957F\u6625"},{value:"\u5409\u6797",label:"\u5409\u6797"},{value:"\u767D\u57CE",label:"\u767D\u57CE"},{value:"\u767D\u5C71",label:"\u767D\u5C71"},{value:"\u73F2\u6625",label:"\u73F2\u6625"},{value:"\u8FBD\u6E90",label:"\u8FBD\u6E90"},{value:"\u6885\u6CB3",label:"\u6885\u6CB3"},{value:"\u56DB\u5E73",label:"\u56DB\u5E73"},{value:"\u677E\u539F",label:"\u677E\u539F"},{value:"\u901A\u5316",label:"\u901A\u5316"},{value:"\u5EF6\u5409",label:"\u5EF6\u5409"}]},{value:"\u8FBD\u5B81",label:"\u8FBD\u5B81",children:[{value:"\u6C88\u9633",label:"\u6C88\u9633"},{value:"\u978D\u5C71",label:"\u978D\u5C71"},{value:"\u672C\u6EAA",label:"\u672C\u6EAA"},{value:"\u671D\u9633",label:"\u671D\u9633"},{value:"\u5927\u8FDE",label:"\u5927\u8FDE"},{value:"\u4E39\u4E1C",label:"\u4E39\u4E1C"},{value:"\u629A\u987A",label:"\u629A\u987A"},{value:"\u961C\u65B0",label:"\u961C\u65B0"},{value:"\u846B\u82A6\u5C9B",label:"\u846B\u82A6\u5C9B"},{value:"\u9526\u5DDE",label:"\u9526\u5DDE"},{value:"\u8FBD\u9633",label:"\u8FBD\u9633"},{value:"\u76D8\u9526",label:"\u76D8\u9526"},{value:"\u94C1\u5CAD",label:"\u94C1\u5CAD"},{value:"\u8425\u53E3",label:"\u8425\u53E3"}]},{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8",children:[{value:"\u6FB3\u95E8",label:"\u6FB3\u95E8"}]},{value:"\u5185\u8499\u53E4",label:"\u5185\u8499\u53E4",children:[{value:"\u547C\u548C\u6D69\u7279",label:"\u547C\u548C\u6D69\u7279"},{value:"\u963F\u62C9\u5584\u76DF",label:"\u963F\u62C9\u5584\u76DF"},{value:"\u5305\u5934",label:"\u5305\u5934"},{value:"\u8D64\u5CF0",label:"\u8D64\u5CF0"},{value:"\u4E1C\u80DC",label:"\u4E1C\u80DC"},{value:"\u6D77\u62C9\u5C14",label:"\u6D77\u62C9\u5C14"},{value:"\u96C6\u5B81",label:"\u96C6\u5B81"},{value:"\u4E34\u6CB3",label:"\u4E34\u6CB3"},{value:"\u901A\u8FBD",label:"\u901A\u8FBD"},{value:"\u4E4C\u6D77",label:"\u4E4C\u6D77"},{value:"\u4E4C\u5170\u6D69\u7279",label:"\u4E4C\u5170\u6D69\u7279"},{value:"\u9521\u6797\u6D69\u7279",label:"\u9521\u6797\u6D69\u7279"}]},{value:"\u5B81\u590F",label:"\u5B81\u590F",children:[{value:"\u94F6\u5DDD",label:"\u94F6\u5DDD"},{value:"\u56FA\u6E90",label:"\u56FA\u6E90"},{value:"\u77F3\u5634\u5C71",label:"\u77F3\u5634\u5C71"},{value:"\u5434\u5FE0",label:"\u5434\u5FE0"}]},{value:"\u9752\u6D77",label:"\u9752\u6D77",children:[{value:"\u897F\u5B81",label:"\u897F\u5B81"},{value:"\u5FB7\u4EE4\u54C8",label:"\u5FB7\u4EE4\u54C8"},{value:"\u683C\u5C14\u6728",label:"\u683C\u5C14\u6728"},{value:"\u5171\u548C",label:"\u5171\u548C"},{value:"\u6D77\u4E1C",label:"\u6D77\u4E1C"},{value:"\u6D77\u664F",label:"\u6D77\u664F"},{value:"\u739B\u6C81",label:"\u739B\u6C81"},{value:"\u540C\u4EC1",label:"\u540C\u4EC1"},{value:"\u7389\u6811",label:"\u7389\u6811"}]},{value:"\u5C71\u4E1C",label:"\u5C71\u4E1C",children:[{value:"\u6D4E\u5357",label:"\u6D4E\u5357"},{value:"\u6EE8\u5DDE",label:"\u6EE8\u5DDE"},{value:"\u5156\u5DDE",label:"\u5156\u5DDE"},{value:"\u5FB7\u5DDE",label:"\u5FB7\u5DDE"},{value:"\u4E1C\u8425",label:"\u4E1C\u8425"},{value:"\u83CF\u6CFD",label:"\u83CF\u6CFD"},{value:"\u6D4E\u5B81",label:"\u6D4E\u5B81"},{value:"\u83B1\u829C",label:"\u83B1\u829C"},{value:"\u804A\u57CE",label:"\u804A\u57CE"},{value:"\u4E34\u6C82",label:"\u4E34\u6C82"},{value:"\u84EC\u83B1",label:"\u84EC\u83B1"},{value:"\u9752\u5C9B",label:"\u9752\u5C9B"},{value:"\u66F2\u961C",label:"\u66F2\u961C"},{value:"\u65E5\u7167",label:"\u65E5\u7167"},{value:"\u6CF0\u5B89",label:"\u6CF0\u5B89"},{value:"\u6F4D\u574A",label:"\u6F4D\u574A"},{value:"\u5A01\u6D77",label:"\u5A01\u6D77"},{value:"\u70DF\u53F0",label:"\u70DF\u53F0"},{value:"\u67A3\u5E84",label:"\u67A3\u5E84"},{value:"\u6DC4\u535A",label:"\u6DC4\u535A"}]},{value:"\u5C71\u897F",label:"\u5C71\u897F",children:[{value:"\u592A\u539F",label:"\u592A\u539F"},{value:"\u5415\u6881",label:"\u5415\u6881"},{value:"\u957F\u6CBB",label:"\u957F\u6CBB"},{value:"\u5927\u540C",label:"\u5927\u540C"},{value:"\u5019\u9A6C",label:"\u5019\u9A6C"},{value:"\u664B\u57CE",label:"\u664B\u57CE"},{value:"\u79BB\u77F3",label:"\u79BB\u77F3"},{value:"\u4E34\u6C7E",label:"\u4E34\u6C7E"},{value:"\u5B81\u6B66",label:"\u5B81\u6B66"},{value:"\u6714\u5DDE",label:"\u6714\u5DDE"},{value:"\u5FFB\u5DDE",label:"\u5FFB\u5DDE"},{value:"\u9633\u6CC9",label:"\u9633\u6CC9"},{value:"\u6986\u6B21",label:"\u6986\u6B21"},{value:"\u664B\u4E2D",label:"\u664B\u4E2D"},{value:"\u8FD0\u57CE",label:"\u8FD0\u57CE"}]},{value:"\u9655\u897F",label:"\u9655\u897F",children:[{value:"\u897F\u5B89",label:"\u897F\u5B89"},{value:"\u5B89\u5EB7",label:"\u5B89\u5EB7"},{value:"\u5B9D\u9E21",label:"\u5B9D\u9E21"},{value:"\u6C49\u4E2D",label:"\u6C49\u4E2D"},{value:"\u6E2D\u5357",label:"\u6E2D\u5357"},{value:"\u5546\u5DDE",label:"\u5546\u5DDE"},{value:"\u7EE5\u5FB7",label:"\u7EE5\u5FB7"},{value:"\u94DC\u5DDD",label:"\u94DC\u5DDD"},{value:"\u54B8\u9633",label:"\u54B8\u9633"},{value:"\u5EF6\u5B89",label:"\u5EF6\u5B89"},{value:"\u6986\u6797",label:"\u6986\u6797"}]},{value:"\u56DB\u5DDD",label:"\u56DB\u5DDD",children:[{value:"\u6210\u90FD",label:"\u6210\u90FD"},{value:"\u5DF4\u4E2D",label:"\u5DF4\u4E2D"},{value:"\u8FBE\u5DDD",label:"\u8FBE\u5DDD"},{value:"\u5FB7\u9633",label:"\u5FB7\u9633"},{value:"\u90FD\u6C5F\u5830",label:"\u90FD\u6C5F\u5830"},{value:"\u5CE8\u7709\u5C71",label:"\u5CE8\u7709\u5C71"},{value:"\u6DAA\u9675",label:"\u6DAA\u9675"},{value:"\u5E7F\u5B89",label:"\u5E7F\u5B89"},{value:"\u5E7F\u5143",label:"\u5E7F\u5143"},{value:"\u4E5D\u5BE8\u6C9F",label:"\u4E5D\u5BE8\u6C9F"},{value:"\u5EB7\u5B9A",label:"\u5EB7\u5B9A"},{value:"\u4E50\u5C71",label:"\u4E50\u5C71"},{value:"\u6CF8\u5DDE",label:"\u6CF8\u5DDE"},{value:"\u9A6C\u5C14\u5EB7",label:"\u9A6C\u5C14\u5EB7"},{value:"\u7EF5\u9633",label:"\u7EF5\u9633"},{value:"\u7709\u5C71",label:"\u7709\u5C71"},{value:"\u5357\u5145",label:"\u5357\u5145"},{value:"\u5185\u6C5F",label:"\u5185\u6C5F"},{value:"\u6500\u679D\u82B1",label:"\u6500\u679D\u82B1"},{value:"\u9042\u5B81",label:"\u9042\u5B81"},{value:"\u6C76\u5DDD",label:"\u6C76\u5DDD"},{value:"\u897F\u660C",label:"\u897F\u660C"},{value:"\u96C5\u5B89",label:"\u96C5\u5B89"},{value:"\u5B9C\u5BBE",label:"\u5B9C\u5BBE"},{value:"\u81EA\u8D21",label:"\u81EA\u8D21"},{value:"\u8D44\u9633",label:"\u8D44\u9633"}]},{value:"\u53F0\u6E7E",label:"\u53F0\u6E7E",children:[{value:"\u53F0\u5317",label:"\u53F0\u5317"},{value:"\u57FA\u9686",label:"\u57FA\u9686"},{value:"\u53F0\u5357",label:"\u53F0\u5357"},{value:"\u53F0\u4E2D",label:"\u53F0\u4E2D"},{value:"\u9AD8\u96C4",label:"\u9AD8\u96C4"},{value:"\u5C4F\u4E1C",label:"\u5C4F\u4E1C"},{value:"\u5357\u6295",label:"\u5357\u6295"},{value:"\u4E91\u6797",label:"\u4E91\u6797"},{value:"\u65B0\u7AF9",label:"\u65B0\u7AF9"},{value:"\u5F70\u5316",label:"\u5F70\u5316"},{value:"\u82D7\u6817",label:"\u82D7\u6817"},{value:"\u5609\u4E49",label:"\u5609\u4E49"},{value:"\u6843\u56ED",label:"\u6843\u56ED"},{value:"\u5B9C\u5170",label:"\u5B9C\u5170"},{value:"\u53F0\u4E1C",label:"\u53F0\u4E1C"},{value:"\u91D1\u95E8",label:"\u91D1\u95E8"},{value:"\u9A6C\u7956",label:"\u9A6C\u7956"},{value:"\u6F8E\u6E56",label:"\u6F8E\u6E56"}]},{value:"\u5929\u6D25",label:"\u5929\u6D25",children:[{value:"\u5929\u6D25",label:"\u5929\u6D25"},{value:"\u548C\u5E73",label:"\u548C\u5E73"},{value:"\u4E1C\u4E3D",label:"\u4E1C\u4E3D"},{value:"\u6CB3\u4E1C",label:"\u6CB3\u4E1C"},{value:"\u897F\u9752",label:"\u897F\u9752"},{value:"\u6CB3\u897F",label:"\u6CB3\u897F"},{value:"\u6D25\u5357",label:"\u6D25\u5357"},{value:"\u5357\u5F00",label:"\u5357\u5F00"},{value:"\u5317\u8FB0",label:"\u5317\u8FB0"},{value:"\u6CB3\u5317",label:"\u6CB3\u5317"},{value:"\u6B66\u6E05",label:"\u6B66\u6E05"},{value:"\u7EA2\u6322",label:"\u7EA2\u6322"},{value:"\u5858\u6CBD",label:"\u5858\u6CBD"},{value:"\u6C49\u6CBD",label:"\u6C49\u6CBD"},{value:"\u5927\u6E2F",label:"\u5927\u6E2F"},{value:"\u5B81\u6CB3",label:"\u5B81\u6CB3"},{value:"\u9759\u6D77",label:"\u9759\u6D77"},{value:"\u5B9D\u577B",label:"\u5B9D\u577B"},{value:"\u84DF\u53BF",label:"\u84DF\u53BF"}]},{value:"\u65B0\u7586",label:"\u65B0\u7586",children:[{value:"\u4E4C\u9C81\u6728\u9F50",label:"\u4E4C\u9C81\u6728\u9F50"},{value:"\u963F\u514B\u82CF",label:"\u963F\u514B\u82CF"},{value:"\u963F\u52D2\u6CF0",label:"\u963F\u52D2\u6CF0"},{value:"\u963F\u56FE\u4EC0",label:"\u963F\u56FE\u4EC0"},{value:"\u535A\u4E50",label:"\u535A\u4E50"},{value:"\u660C\u5409",label:"\u660C\u5409"},{value:"\u4E1C\u5C71",label:"\u4E1C\u5C71"},{value:"\u54C8\u5BC6",label:"\u54C8\u5BC6"},{value:"\u548C\u7530",label:"\u548C\u7530"},{value:"\u5580\u4EC0",label:"\u5580\u4EC0"},{value:"\u514B\u62C9\u739B\u4F9D",label:"\u514B\u62C9\u739B\u4F9D"},{value:"\u5E93\u8F66",label:"\u5E93\u8F66"},{value:"\u5E93\u5C14\u52D2",label:"\u5E93\u5C14\u52D2"},{value:"\u594E\u5C6F",label:"\u594E\u5C6F"},{value:"\u77F3\u6CB3\u5B50",label:"\u77F3\u6CB3\u5B50"},{value:"\u5854\u57CE",label:"\u5854\u57CE"},{value:"\u5410\u9C81\u756A",label:"\u5410\u9C81\u756A"},{value:"\u4F0A\u5B81",label:"\u4F0A\u5B81"}]},{value:"\u897F\u85CF",label:"\u897F\u85CF",children:[{value:"\u62C9\u8428",label:"\u62C9\u8428"},{value:"\u963F\u91CC",label:"\u963F\u91CC"},{value:"\u660C\u90FD",label:"\u660C\u90FD"},{value:"\u6797\u829D",label:"\u6797\u829D"},{value:"\u90A3\u66F2",label:"\u90A3\u66F2"},{value:"\u65E5\u5580\u5219",label:"\u65E5\u5580\u5219"},{value:"\u5C71\u5357",label:"\u5C71\u5357"}]},{value:"\u4E91\u5357",label:"\u4E91\u5357",children:[{value:"\u6606\u660E",label:"\u6606\u660E"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4FDD\u5C71",label:"\u4FDD\u5C71"},{value:"\u695A\u96C4",label:"\u695A\u96C4"},{value:"\u5927\u7406",label:"\u5927\u7406"},{value:"\u4E1C\u5DDD",label:"\u4E1C\u5DDD"},{value:"\u4E2A\u65E7",label:"\u4E2A\u65E7"},{value:"\u666F\u6D2A",label:"\u666F\u6D2A"},{value:"\u5F00\u8FDC",label:"\u5F00\u8FDC"},{value:"\u4E34\u6CA7",label:"\u4E34\u6CA7"},{value:"\u4E3D\u6C5F",label:"\u4E3D\u6C5F"},{value:"\u516D\u5E93",label:"\u516D\u5E93"},{value:"\u6F5E\u897F",label:"\u6F5E\u897F"},{value:"\u66F2\u9756",label:"\u66F2\u9756"},{value:"\u601D\u8305",label:"\u601D\u8305"},{value:"\u6587\u5C71",label:"\u6587\u5C71"},{value:"\u897F\u53CC\u7248\u7EB3",label:"\u897F\u53CC\u7248\u7EB3"},{value:"\u7389\u6EAA",label:"\u7389\u6EAA"},{value:"\u4E2D\u7538",label:"\u4E2D\u7538"},{value:"\u662D\u901A",label:"\u662D\u901A"}]},{value:"\u6D59\u6C5F",label:"\u6D59\u6C5F",children:[{value:"\u676D\u5DDE",label:"\u676D\u5DDE"},{value:"\u6E29\u5DDE",label:"\u6E29\u5DDE"},{value:"\u5B89\u5409",label:"\u5B89\u5409"},{value:"\u6148\u6EAA",label:"\u6148\u6EAA"},{value:"\u5B9A\u6D77",label:"\u5B9A\u6D77"},{value:"\u5949\u5316",label:"\u5949\u5316"},{value:"\u6D77\u76D0",label:"\u6D77\u76D0"},{value:"\u9EC4\u5CA9",label:"\u9EC4\u5CA9"},{value:"\u6E56\u5DDE",label:"\u6E56\u5DDE"},{value:"\u5609\u5174",label:"\u5609\u5174"},{value:"\u91D1\u534E",label:"\u91D1\u534E"},{value:"\u4E34\u5B89",label:"\u4E34\u5B89"},{value:"\u4E34\u6D77",label:"\u4E34\u6D77"},{value:"\u4E3D\u6C34",label:"\u4E3D\u6C34"},{value:"\u5B81\u6CE2",label:"\u5B81\u6CE2"},{value:"\u74EF\u6D77",label:"\u74EF\u6D77"},{value:"\u5E73\u6E56",label:"\u5E73\u6E56"},{value:"\u5343\u5C9B\u6E56",label:"\u5343\u5C9B\u6E56"},{value:"\u8862\u5DDE",label:"\u8862\u5DDE"},{value:"\u6C5F\u5C71",label:"\u6C5F\u5C71"},{value:"\u745E\u5B89",label:"\u745E\u5B89"},{value:"\u7ECD\u5174",label:"\u7ECD\u5174"},{value:"\u5D4A\u5DDE",label:"\u5D4A\u5DDE"},{value:"\u53F0\u5DDE",label:"\u53F0\u5DDE"},{value:"\u6E29\u5CAD",label:"\u6E29\u5CAD"},{value:"\u4F59\u59DA",label:"\u4F59\u59DA"},{value:"\u821F\u5C71",label:"\u821F\u5C71"}]},{value:"\u6D77\u5916",label:"\u6D77\u5916",children:[{value:"\u7F8E\u56FD",label:"\u7F8E\u56FD"},{value:"\u65E5\u672C",label:"\u65E5\u672C"},{value:"\u82F1\u56FD",label:"\u82F1\u56FD"},{value:"\u6CD5\u56FD",label:"\u6CD5\u56FD"},{value:"\u5FB7\u56FD",label:"\u5FB7\u56FD"},{value:"\u5176\u4ED6",label:"\u5176\u4ED6"}]}]},"kaH+":function(ce,H,e){"use strict";var j=e("+L6B"),T=e("2/Rp"),q=e("tJVT"),U=e("q1tI"),v=e.n(U),x=e("UZu5"),Y=e.n(x),ae=e("dhSg"),P=e("rLCj"),te=e("dF/Y"),g=e("4i/N");H.a=function(){var M=Object(U.useState)(""),y=Object(q.a)(M,2),W=y[0],K=y[1],w=Object(U.useState)(0),z=Object(q.a)(w,2),ne=z[0],F=z[1],ie=Object(U.useRef)("");Object(U.useEffect)(function(){var I=ae.a.subscribe("preview-image",function(Z){K(Z),document.body.style.overflow="hidden"});return I},[]),Object(U.useEffect)(function(){return document.addEventListener("keydown",oe),function(){document.removeEventListener("keydown",oe)}},[]),Object(U.useEffect)(function(){ie.current=W},[W]);function oe(I){I.keyCode==27&&ie.current&&$()}function $(){document.body.style.overflow="auto",K("")}function me(){F(ne+90)}return v.a.createElement(U.Fragment,null,W?v.a.createElement("div",{className:"image-preview-container"},v.a.createElement("div",{className:"button-group"},v.a.createElement(T.a,{onClick:me},"\u65CB\u8F6C",v.a.createElement(P.a,null)),v.a.createElement(T.a,{href:W},"\u4E0B\u8F7D",v.a.createElement(te.a,null)),v.a.createElement(T.a,{onClick:$},"\u5173\u95ED",v.a.createElement(g.a,null))),v.a.createElement("div",{className:"preview-wrp-group"},v.a.createElement("img",{className:"image-preview",src:W,alt:"\u9884\u89C8\u5927\u56FE",style:{transform:"rotate(".concat(ne,"deg)")}}))):null)}},uK0f:function(ce,H,e){(function(j,T){ce.exports=T()})(this,function(){"use strict";function j(T,q,U){U=U||{},U.childrenKeyName=U.childrenKeyName||"children";var v=T||[],x=[],Y=0;do{var ae=v.filter(function(P){return q(P,Y)})[0];if(!ae)break;x.push(ae),v=ae[U.childrenKeyName]||[],Y+=1}while(v.length>0);return x}return j})},vjIP:function(ce,H,e){ce.exports={wrap:"wrap___1ZoME",content:"content___2ISmw",hint:"hint___1VSGa",title:"title___3mBb8",titleWrap:"titleWrap___1YH9W",formWrap:"formWrap___3ynAf"}},"yTi+":function(ce,H,e){ce.exports=e.p+"static/AssistantCode3.9bae6615.jpeg"}}]); diff --git a/p__Classrooms__Lists__CourseGroup__List__index.44c06228.async.js b/p__Classrooms__Lists__CourseGroup__List__index.44c06228.async.js index 770a4a4a71..2f6571ed69 100644 --- a/p__Classrooms__Lists__CourseGroup__List__index.44c06228.async.js +++ b/p__Classrooms__Lists__CourseGroup__List__index.44c06228.async.js @@ -1,6 +1,6 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[55,3,6,8],{"1j5w":function(Tt,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,T=/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(T,ee),chrome:u(ae,ee),device:u(k,ee)||u(H,ee)||u(le,ee)||u(T,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},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&&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},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&&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(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;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(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;le1&&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;j1&&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;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,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)}}}}]); + 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)}}}}]); diff --git a/p__Classrooms__Lists__GroupHomework__Detail__index.68a00ccf.async.js b/p__Classrooms__Lists__GroupHomework__Detail__index.68a00ccf.async.js index b2ad5f1afc..b6836adb3f 100644 --- a/p__Classrooms__Lists__GroupHomework__Detail__index.68a00ccf.async.js +++ b/p__Classrooms__Lists__GroupHomework__Detail__index.68a00ccf.async.js @@ -1,6 +1,6 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[78,3,5,6,7,8,10],{"+NIl":function(an,rt,F){(function(re){re(F("VrN/"))})(function(re){"use strict";re.defineMode("stex",function(z,I){"use strict";function K(g,n){g.cmdState.push(n)}function T(g){return g.cmdState.length>0?g.cmdState[g.cmdState.length-1]:null}function w(g){var n=g.cmdState.pop();n&&n.closeBracket()}function B(g){for(var n=g.cmdState,p=n.length-1;p>=0;p--){var d=n[p];if(d.name=="DEFAULT")continue;return d}return{styleIdentifier:function(){return null}}}function x(g,n,p){return function(){this.name=g,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 k={};k.importmodule=x("importmodule","tag",["string","builtin"]),k.documentclass=x("documentclass","tag",["","atom"]),k.usepackage=x("usepackage","tag",["atom"]),k.begin=x("begin","tag",["atom"]),k.end=x("end","tag",["atom"]),k.label=x("label","tag",["atom"]),k.ref=x("ref","tag",["atom"]),k.eqref=x("eqref","tag",["atom"]),k.cite=x("cite","tag",["atom"]),k.bibitem=x("bibitem","tag",["atom"]),k.Bibitem=x("Bibitem","tag",["atom"]),k.RBibitem=x("RBibitem","tag",["atom"]),k.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function D(g,n){g.f=n}function m(g,n){var p;if(g.match(/^\\[a-zA-Z@]+/)){var d=g.current().slice(1);return p=k.hasOwnProperty(d)?k[d]:k.DEFAULT,p=new p,K(n,p),D(n,M),p.style}if(g.match(/^\\[$&%#{}_]/))return"tag";if(g.match(/^\\[,;!\/\\]/))return"tag";if(g.match("\\["))return D(n,function(u,f){return R(u,f,"\\]")}),"keyword";if(g.match("\\("))return D(n,function(u,f){return R(u,f,"\\)")}),"keyword";if(g.match("$$"))return D(n,function(u,f){return R(u,f,"$$")}),"keyword";if(g.match("$"))return D(n,function(u,f){return R(u,f,"$")}),"keyword";var o=g.next();if(o=="%")return g.skipToEnd(),"comment";if(o=="}"||o=="]"){if(p=T(n),p)p.closeBracket(o),D(n,M);else return"error";return"bracket"}else return o=="{"||o=="["?(p=k.DEFAULT,p=new p,K(n,p),"bracket"):/\d/.test(o)?(g.eatWhile(/[\w.%]/),"atom"):(g.eatWhile(/[\w\-_]/),p=B(n),p.name=="begin"&&(p.argument=g.current()),p.styleIdentifier())}function R(g,n,p){if(g.eatSpace())return null;if(p&&g.match(p))return D(n,m),"keyword";if(g.match(/^\\[a-zA-Z@]+/))return"tag";if(g.match(/^[a-zA-Z]+/))return"variable-2";if(g.match(/^\\[$&%#{}_]/))return"tag";if(g.match(/^\\[,;!\/]/))return"tag";if(g.match(/^[\^_&]/))return"tag";if(g.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(g.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var d=g.next();return d=="{"||d=="}"||d=="["||d=="]"||d=="("||d==")"?"bracket":d=="%"?(g.skipToEnd(),"comment"):"error"}function M(g,n){var p=g.peek(),d;return p=="{"||p=="["?(d=T(n),d.openBracket(p),g.eat(p),D(n,m),"bracket"):/[ \t\r]/.test(p)?(g.eat(p),null):(D(n,m),w(n),m(g,n))}return{startState:function(){var g=I.inMathMode?function(n,p){return R(n,p)}:m;return{cmdState:[],f:g}},copyState:function(g){return{cmdState:g.cmdState.slice(),f:g.f}},token:function(g,n){return n.f(g,n)},blankLine:function(g){g.f=m,g.cmdState.length=0},lineComment:"%"}}),re.defineMIME("text/x-stex","stex"),re.defineMIME("text/x-latex","stex")})},"19Vz":function(an,rt,F){(function(re){re(F("VrN/"))})(function(re){re.defineOption("placeholder","",function(x,k,D){var m=D&&D!=re.Init;if(k&&!m)x.on("blur",T),x.on("change",w),x.on("swapDoc",w),re.on(x.getInputField(),"compositionupdate",x.state.placeholderCompose=function(){K(x)}),w(x);else if(!k&&m){x.off("blur",T),x.off("change",w),x.off("swapDoc",w),re.off(x.getInputField(),"compositionupdate",x.state.placeholderCompose),z(x);var R=x.getWrapperElement();R.className=R.className.replace(" CodeMirror-empty","")}k&&!x.hasFocus()&&T(x)});function z(x){x.state.placeholder&&(x.state.placeholder.parentNode.removeChild(x.state.placeholder),x.state.placeholder=null)}function I(x){z(x);var k=x.state.placeholder=document.createElement("pre");k.style.cssText="height: 0; overflow: visible",k.style.direction=x.getOption("direction"),k.className="CodeMirror-placeholder CodeMirror-line-like";var D=x.getOption("placeholder");typeof D=="string"&&(D=document.createTextNode(D)),k.appendChild(D),x.display.lineSpace.insertBefore(k,x.display.lineSpace.firstChild)}function K(x){setTimeout(function(){var k=!1,D=x.getInputField();D.nodeName=="TEXTAREA"?k=!D.value:x.lineCount()==1&&(k=!/[^\u200b]/.test(D.querySelector(".CodeMirror-line").textContent)),k?I(x):z(x)},20)}function T(x){B(x)&&I(x)}function w(x){var k=x.getWrapperElement(),D=B(x);k.className=k.className.replace(" CodeMirror-empty","")+(D?" CodeMirror-empty":""),D?I(x):z(x)}function B(x){return x.lineCount()===1&&x.getLine(0)===""}})},"1eCo":function(an,rt,F){(function(re){re(F("VrN/"))})(function(re){"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},I={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};re.defineMode("xml",function(K,T){var w=K.indentUnit,B={},x=T.htmlMode?z:I;for(var k in x)B[k]=x[k];for(var k in T)B[k]=T[k];var D,m;function R(i,C){function _(U){return C.tokenize=U,U(i,C)}var O=i.next();if(O=="<")return i.eat("!")?i.eat("[")?i.match("CDATA[")?_(n("atom","]]>")):null:i.match("--")?_(n("comment","-->")):i.match("DOCTYPE",!0,!0)?(i.eatWhile(/[\w\._\-]/),_(p(1))):null:i.eat("?")?(i.eatWhile(/[\w\._\-]/),C.tokenize=n("meta","?>"),"meta"):(D=i.eat("/")?"closeTag":"openTag",C.tokenize=M,"tag bracket");if(O=="&"){var N;return i.eat("#")?i.eat("x")?N=i.eatWhile(/[a-fA-F\d]/)&&i.eat(";"):N=i.eatWhile(/[\d]/)&&i.eat(";"):N=i.eatWhile(/[\w\.\-:]/)&&i.eat(";"),N?"atom":"error"}else return i.eatWhile(/[^&<]/),null}R.isInText=!0;function M(i,C){var _=i.next();if(_==">"||_=="/"&&i.eat(">"))return C.tokenize=R,D=_==">"?"endTag":"selfcloseTag","tag bracket";if(_=="=")return D="equals",null;if(_=="<"){C.tokenize=R,C.state=f,C.tagName=C.tagStart=null;var O=C.tokenize(i,C);return O?O+" tag error":"tag error"}else return/[\'\"]/.test(_)?(C.tokenize=g(_),C.stringStartCol=i.column(),C.tokenize(i,C)):(i.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function g(i){var C=function(_,O){for(;!_.eol();)if(_.next()==i){O.tokenize=M;break}return"string"};return C.isInAttribute=!0,C}function n(i,C){return function(_,O){for(;!_.eol();){if(_.match(C)){O.tokenize=R;break}_.next()}return i}}function p(i){return function(C,_){for(var O;(O=C.next())!=null;){if(O=="<")return _.tokenize=p(i+1),_.tokenize(C,_);if(O==">")if(i==1){_.tokenize=R;break}else return _.tokenize=p(i-1),_.tokenize(C,_)}return"meta"}}function d(i,C,_){this.prev=i.context,this.tagName=C,this.indent=i.indented,this.startOfLine=_,(B.doNotIndent.hasOwnProperty(C)||i.context&&i.context.noIndent)&&(this.noIndent=!0)}function o(i){i.context&&(i.context=i.context.prev)}function u(i,C){for(var _;;){if(!i.context)return;if(_=i.context.tagName,!B.contextGrabbers.hasOwnProperty(_)||!B.contextGrabbers[_].hasOwnProperty(C))return;o(i)}}function f(i,C,_){return i=="openTag"?(_.tagStart=C.column(),S):i=="closeTag"?b:f}function S(i,C,_){return i=="word"?(_.tagName=C.current(),m="tag",E):B.allowMissingTagName&&i=="endTag"?(m="tag bracket",E(i,C,_)):(m="error",S)}function b(i,C,_){if(i=="word"){var O=C.current();return _.context&&_.context.tagName!=O&&B.implicitlyClosed.hasOwnProperty(_.context.tagName)&&o(_),_.context&&_.context.tagName==O||B.matchClosing===!1?(m="tag",v):(m="tag error",P)}else return B.allowMissingTagName&&i=="endTag"?(m="tag bracket",v(i,C,_)):(m="error",P)}function v(i,C,_){return i!="endTag"?(m="error",v):(o(_),f)}function P(i,C,_){return m="error",v(i,C,_)}function E(i,C,_){if(i=="word")return m="attribute",h;if(i=="endTag"||i=="selfcloseTag"){var O=_.tagName,N=_.tagStart;return _.tagName=_.tagStart=null,i=="selfcloseTag"||B.autoSelfClosers.hasOwnProperty(O)?u(_,O):(u(_,O),_.context=new d(_,O,N==_.indented)),f}return m="error",E}function h(i,C,_){return i=="equals"?c:(B.allowMissing||(m="error"),E(i,C,_))}function c(i,C,_){return i=="string"?s:i=="word"&&B.allowUnquoted?(m="string",E):(m="error",E(i,C,_))}function s(i,C,_){return i=="string"?s:E(i,C,_)}return{startState:function(i){var C={tokenize:R,state:f,indented:i||0,tagName:null,tagStart:null,context:null};return i!=null&&(C.baseIndent=i),C},token:function(i,C){if(!C.tagName&&i.sol()&&(C.indented=i.indentation()),i.eatSpace())return null;D=null;var _=C.tokenize(i,C);return(_||D)&&_!="comment"&&(m=null,C.state=C.state(D||_,i,C),m&&(_=m=="error"?_+" error":m)),_},indent:function(i,C,_){var O=i.context;if(i.tokenize.isInAttribute)return i.tagStart==i.indented?i.stringStartCol+1:i.indented+w;if(O&&O.noIndent)return re.Pass;if(i.tokenize!=M&&i.tokenize!=R)return _?_.match(/^(\s*)/)[0].length:0;if(i.tagName)return B.multilineTagIndentPastTag!==!1?i.tagStart+i.tagName.length+2:i.tagStart+w*(B.multilineTagIndentFactor||1);if(B.alignCDATA&&/$/,blockCommentStart:"",configuration:B.htmlMode?"html":"xml",helperType:B.htmlMode?"html":"xml",skipAttribute:function(i){i.state==c&&(i.state=E)},xmlCurrentTag:function(i){return i.tagName?{name:i.tagName,close:i.type=="closeTag"}:null},xmlCurrentContext:function(i){for(var C=[],_=i.context;_;_=_.prev)_.tagName&&C.push(_.tagName);return C.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(an,rt,F){"use strict";F.d(rt,"d",function(){return Rt}),F.d(rt,"b",function(){return nt}),F.d(rt,"c",function(){return St}),F.d(rt,"a",function(){return vn});var re=F("VTBJ"),z=F("1OyB"),I=F("vuIU"),K=F("JX7q"),T=F("Ji7U"),w=F("LK+K"),B=F("q1tI"),x=F("I8Z2"),k=F("BGR+"),D=F("wx14"),m=F("rePB"),R=F("4IlW"),M=F("2GS6"),g=F("Gytx"),n=F.n(g),p=F("TSYQ"),d=F.n(p),o=F("U8pU"),u=F("ODXe"),f=/iPhone/i,S=/iPod/i,b=/iPad/i,v=/\bAndroid(?:.+)Mobile\b/i,P=/Android/i,E=/\bAndroid(?:.+)SD4930UR\b/i,h=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,c=/Windows Phone/i,s=/\bWindows(?:.+)ARM\b/i,i=/BlackBerry/i,C=/BB10/i,_=/Opera Mini/i,O=/\b(CriOS|Chrome)(?:.+)Mobile/i,N=/Mobile(?:.+)Firefox\b/i;function U(Vt,Et){return Vt.test(Et)}function H(Vt){var Et=Vt||(typeof navigator!="undefined"?navigator.userAgent:""),_t=Et.split("[FBAN");if(typeof _t[1]!="undefined"){var ct=_t,ge=Object(u.a)(ct,1);Et=ge[0]}if(_t=Et.split("Twitter"),typeof _t[1]!="undefined"){var Me=_t,wt=Object(u.a)(Me,1);Et=wt[0]}var ft={apple:{phone:U(f,Et)&&!U(c,Et),ipod:U(S,Et),tablet:!U(f,Et)&&U(b,Et)&&!U(c,Et),device:(U(f,Et)||U(S,Et)||U(b,Et))&&!U(c,Et)},amazon:{phone:U(E,Et),tablet:!U(E,Et)&&U(h,Et),device:U(E,Et)||U(h,Et)},android:{phone:!U(c,Et)&&U(E,Et)||!U(c,Et)&&U(v,Et),tablet:!U(c,Et)&&!U(E,Et)&&!U(v,Et)&&(U(h,Et)||U(P,Et)),device:!U(c,Et)&&(U(E,Et)||U(h,Et)||U(v,Et)||U(P,Et))||U(/\bokhttp\b/i,Et)},windows:{phone:U(c,Et),tablet:U(s,Et),device:U(c,Et)||U(s,Et)},other:{blackberry:U(i,Et),blackberry10:U(C,Et),opera:U(_,Et),firefox:U(N,Et),chrome:U(O,Et),device:U(i,Et)||U(C,Et)||U(_,Et)||U(N,Et)||U(O,Et)},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 G=Object(re.a)(Object(re.a)({},H()),{},{isMobile:H}),L=G;function W(){}function Z(Vt,Et,_t){var ct=Et||"";return Vt.key||"".concat(ct,"item_").concat(_t)}function oe(Vt){return"".concat(Vt,"-menu-")}function ie(Vt,Et){var _t=-1;B.Children.forEach(Vt,function(ct){_t+=1,ct&&ct.type&&ct.type.isMenuItemGroup?B.Children.forEach(ct.props.children,function(ge){_t+=1,Et(ge,_t)}):Et(ct,_t)})}function be(Vt,Et,_t){if(!Vt||_t.find)return;B.Children.forEach(Vt,function(ct){if(ct){var ge=ct.type;if(!ge||!(ge.isSubMenu||ge.isMenuItem||ge.isMenuItemGroup))return;Et.indexOf(ct.key)!==-1?_t.find=!0:ct.props.children&&be(ct.props.children,Et,_t)}})}var Je=["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"],Ae=function(Et){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct=Et&&typeof Et.getBoundingClientRect=="function"&&Et.getBoundingClientRect().width;if(ct){if(_t){var ge=getComputedStyle(Et),Me=ge.marginLeft,wt=ge.marginRight;ct+=+Me.replace("px","")+ +wt.replace("px","")}ct=+ct.toFixed(6)}return ct||0},ke=function(Et,_t,ct){Et&&Object(o.a)(Et.style)==="object"&&(Et.style[_t]=ct)},Ze=function(){return L.any},Xe=F("KQm4"),Pe=F("Ff2n"),he=F("i8i4"),le=F("bdgK"),Se=F("uciX"),ve=F("8XRh"),Ge={adjustX:1,adjustY:1},it={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]}},ee={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=it,Q=0,fe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},_e=function(Et,_t,ct){var ge=oe(_t),Me=Et.getState();Et.setState({defaultActiveFirst:Object(re.a)(Object(re.a)({},Me.defaultActiveFirst),{},Object(m.a)({},ge,ct))})},Fe=function(Vt){Object(T.a)(_t,Vt);var Et=Object(w.a)(_t);function _t(ct){var ge;Object(z.a)(this,_t),ge=Et.call(this,ct),ge.onDestroy=function(ot){ge.props.onDestroy(ot)},ge.onKeyDown=function(ot){var Wt=ot.keyCode,dn=ge.menuInstance,Bn=ge.props,kn=Bn.isOpen,Cr=Bn.store;if(Wt===R.a.ENTER)return ge.onTitleClick(ot),_e(Cr,ge.props.eventKey,!0),!0;if(Wt===R.a.RIGHT)return kn?dn.onKeyDown(ot):(ge.triggerOpenChange(!0),_e(Cr,ge.props.eventKey,!0)),!0;if(Wt===R.a.LEFT){var Ar;if(kn)Ar=dn.onKeyDown(ot);else return;return Ar||(ge.triggerOpenChange(!1),Ar=!0),Ar}return kn&&(Wt===R.a.UP||Wt===R.a.DOWN)?dn.onKeyDown(ot):void 0},ge.onOpenChange=function(ot){ge.props.onOpenChange(ot)},ge.onPopupVisibleChange=function(ot){ge.triggerOpenChange(ot,ot?"mouseenter":"mouseleave")},ge.onMouseEnter=function(ot){var Wt=ge.props,dn=Wt.eventKey,Bn=Wt.onMouseEnter,kn=Wt.store;_e(kn,ge.props.eventKey,!1),Bn({key:dn,domEvent:ot})},ge.onMouseLeave=function(ot){var Wt=ge.props,dn=Wt.parentMenu,Bn=Wt.eventKey,kn=Wt.onMouseLeave;dn.subMenuInstance=Object(K.a)(ge),kn({key:Bn,domEvent:ot})},ge.onTitleMouseEnter=function(ot){var Wt=ge.props,dn=Wt.eventKey,Bn=Wt.onItemHover,kn=Wt.onTitleMouseEnter;Bn({key:dn,hover:!0}),kn({key:dn,domEvent:ot})},ge.onTitleMouseLeave=function(ot){var Wt=ge.props,dn=Wt.parentMenu,Bn=Wt.eventKey,kn=Wt.onItemHover,Cr=Wt.onTitleMouseLeave;dn.subMenuInstance=Object(K.a)(ge),kn({key:Bn,hover:!1}),Cr({key:Bn,domEvent:ot})},ge.onTitleClick=function(ot){var Wt=Object(K.a)(ge),dn=Wt.props;if(dn.onTitleClick({key:dn.eventKey,domEvent:ot}),dn.triggerSubMenuAction==="hover")return;ge.triggerOpenChange(!dn.isOpen,"click"),_e(dn.store,ge.props.eventKey,!1)},ge.onSubMenuClick=function(ot){typeof ge.props.onClick=="function"&&ge.props.onClick(ge.addKeyPath(ot))},ge.onSelect=function(ot){ge.props.onSelect(ot)},ge.onDeselect=function(ot){ge.props.onDeselect(ot)},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(ot){ge.menuInstance=ot},ge.addKeyPath=function(ot){return Object(re.a)(Object(re.a)({},ot),{},{keyPath:(ot.keyPath||[]).concat(ge.props.eventKey)})},ge.triggerOpenChange=function(ot,Wt){var dn=ge.props.eventKey,Bn=function(){ge.onOpenChange({key:dn,item:Object(K.a)(ge),trigger:Wt,open:ot})};Wt==="mouseenter"?ge.mouseenterTimeout=setTimeout(function(){Bn()},0):Bn()},ge.isChildrenSelected=function(){var ot={find:!1};return be(ge.props.children,ge.props.selectedKeys,ot),ot.find},ge.isOpen=function(){return ge.props.openKeys.indexOf(ge.props.eventKey)!==-1},ge.adjustWidth=function(){if(!ge.subMenuTitle||!ge.menuInstance)return;var ot=he.findDOMNode(ge.menuInstance);if(ot.offsetWidth>=ge.subMenuTitle.offsetWidth)return;ot.style.minWidth="".concat(ge.subMenuTitle.offsetWidth,"px")},ge.saveSubMenuTitle=function(ot){ge.subMenuTitle=ot},ge.getBaseProps=function(){var ot=Object(K.a)(ge),Wt=ot.props;return{mode:Wt.mode==="horizontal"?"vertical":Wt.mode,visible:ge.props.isOpen,level:Wt.level+1,inlineIndent:Wt.inlineIndent,focusable:!1,onClick:ge.onSubMenuClick,onSelect:ge.onSelect,onDeselect:ge.onDeselect,onDestroy:ge.onDestroy,selectedKeys:Wt.selectedKeys,eventKey:"".concat(Wt.eventKey,"-menu-"),openKeys:Wt.openKeys,motion:Wt.motion,onOpenChange:ge.onOpenChange,subMenuOpenDelay:Wt.subMenuOpenDelay,parentMenu:Object(K.a)(ge),subMenuCloseDelay:Wt.subMenuCloseDelay,forceSubMenuRender:Wt.forceSubMenuRender,triggerSubMenuAction:Wt.triggerSubMenuAction,builtinPlacements:Wt.builtinPlacements,defaultActiveFirst:Wt.store.getState().defaultActiveFirst[oe(Wt.eventKey)],multiple:Wt.multiple,prefixCls:Wt.rootPrefixCls,id:ge.internalMenuId,manualRef:ge.saveMenuInstance,itemIcon:Wt.itemIcon,expandIcon:Wt.expandIcon,direction:Wt.direction}},ge.getMotion=function(ot,Wt){var dn=Object(K.a)(ge),Bn=dn.haveRendered,kn=ge.props,Cr=kn.motion,Ar=kn.rootPrefixCls,hr=Object(re.a)(Object(re.a)({},Cr),{},{leavedClassName:"".concat(Ar,"-hidden"),removeOnLeave:!1,motionAppear:Bn||!Wt||ot!=="inline"});return hr};var Me=ct.store,wt=ct.eventKey,ft=Me.getState(),qt=ft.defaultActiveFirst;ge.isRootMenu=!1;var on=!1;return qt&&(on=qt[wt]),_e(Me,wt,on),ge}return Object(I.a)(_t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ge=this,Me=this.props,wt=Me.mode,ft=Me.parentMenu,qt=Me.manualRef;if(qt&&qt(this),wt!=="horizontal"||!ft.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return ge.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ge=this.props,Me=ge.onDestroy,wt=ge.eventKey;Me&&Me(wt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(ge){var Me=this,wt=this.getBaseProps(),ft=this.getMotion(wt.mode,wt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||wt.visible||wt.forceSubMenuRender,!this.haveOpened)return B.createElement("div",null);var qt=wt.direction;return B.createElement(ve.default,Object.assign({visible:wt.visible},ft),function(on){var ot=on.className,Wt=on.style,dn=d()("".concat(wt.prefixCls,"-sub"),ot,Object(m.a)({},"".concat(wt.prefixCls,"-rtl"),qt==="rtl"));return B.createElement(je,Object.assign({},wt,{id:Me.internalMenuId,className:dn,style:Wt}),ge)})}},{key:"render",value:function(){var ge,Me=Object(re.a)({},this.props),wt=Me.isOpen,ft=this.getPrefixCls(),qt=Me.mode==="inline",on=d()(ft,"".concat(ft,"-").concat(Me.mode),(ge={},Object(m.a)(ge,Me.className,!!Me.className),Object(m.a)(ge,this.getOpenClassName(),wt),Object(m.a)(ge,this.getActiveClassName(),Me.active||wt&&!qt),Object(m.a)(ge,this.getDisabledClassName(),Me.disabled),Object(m.a)(ge,this.getSelectedClassName(),this.isChildrenSelected()),ge));this.internalMenuId||(Me.eventKey?this.internalMenuId="".concat(Me.eventKey,"$Menu"):(Q+=1,this.internalMenuId="$__$".concat(Q,"$Menu")));var ot={},Wt={},dn={};Me.disabled||(ot={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Wt={onClick:this.onTitleClick},dn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Bn={},kn=Me.direction;qt&&(kn==="rtl"?Bn.paddingRight=Me.inlineIndent*Me.level:Bn.paddingLeft=Me.inlineIndent*Me.level);var Cr={};this.props.isOpen&&(Cr={"aria-owns":this.internalMenuId});var Ar=null;Me.mode!=="horizontal"&&(Ar=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Ar=B.createElement(this.props.expandIcon,Object(re.a)({},this.props))));var hr=B.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Bn,className:"".concat(ft,"-title"),role:"button"},dn,Wt,{"aria-expanded":wt},Cr,{"aria-haspopup":"true",title:typeof Me.title=="string"?Me.title:void 0}),Me.title,Ar||B.createElement("i",{className:"".concat(ft,"-arrow")})),On=this.renderChildren(Me.children),Fr=Me.parentMenu.isRootMenu?Me.parentMenu.props.getPopupContainer:function(jr){return jr.parentNode},na=fe[Me.mode],Pr=Me.popupOffset?{offset:Me.popupOffset}:{},fr=Me.mode==="inline"?"":Me.popupClassName;fr+=kn==="rtl"?" ".concat(ft,"-rtl"):"";var Br=Me.disabled,qr=Me.triggerSubMenuAction,ha=Me.subMenuOpenDelay,Qt=Me.forceSubMenuRender,qn=Me.subMenuCloseDelay,oa=Me.builtinPlacements;Je.forEach(function(jr){return delete Me[jr]}),delete Me.onClick;var _a=kn==="rtl"?Object.assign({},ee,oa):Object.assign({},it,oa);return delete Me.direction,B.createElement("li",Object.assign({},Me,ot,{className:on,role:"menuitem"}),qt&&hr,qt&&On,!qt&&B.createElement(Se.a,{prefixCls:ft,popupClassName:d()("".concat(ft,"-popup"),fr),getPopupContainer:Fr,builtinPlacements:_a,popupPlacement:na,popupVisible:wt,popupAlign:Pr,popup:On,action:Br?[]:[qr],mouseEnterDelay:ha,mouseLeaveDelay:qn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Qt},hr))}}]),_t}(B.Component);Fe.defaultProps={onMouseEnter:W,onMouseLeave:W,onTitleMouseEnter:W,onTitleMouseLeave:W,onTitleClick:W,manualRef:W,mode:"vertical",title:""};var He=Object(x.b)(function(Vt,Et){var _t=Vt.openKeys,ct=Vt.activeKey,ge=Vt.selectedKeys,Me=Et.eventKey,wt=Et.subMenuKey;return{isOpen:_t.indexOf(Me)>-1,active:ct[wt]===Me,selectedKeys:ge}})(Fe);He.isSubMenu=!0;var Rt=He,Ht="menuitem-overflowed",It=.5,Bt=function(Vt){Object(T.a)(_t,Vt);var Et=Object(w.a)(_t);function _t(){var ct;return Object(z.a)(this,_t),ct=Et.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,Me=he.findDOMNode(Object(K.a)(ct));return Me?[].slice.call(Me.children).filter(function(wt){return wt.className.split(" ").indexOf("".concat(ge,"-overflowed-submenu"))<0}):[]},ct.getOverflowedSubMenuItem=function(ge,Me,wt){var ft=ct.props,qt=ft.overflowedIndicator,on=ft.level,ot=ft.mode,Wt=ft.prefixCls,dn=ft.theme;if(on!==1||ot!=="horizontal")return null;var Bn=ct.props.children[0],kn=Bn.props,Cr=kn.children,Ar=kn.title,hr=kn.style,On=Object(Pe.a)(kn,["children","title","style"]),Fr=Object(re.a)({},hr),na="".concat(ge,"-overflowed-indicator"),Pr="".concat(ge,"-overflowed-indicator");Me.length===0&&wt!==!0?Fr=Object(re.a)(Object(re.a)({},Fr),{},{display:"none"}):wt&&(Fr=Object(re.a)(Object(re.a)({},Fr),{},{visibility:"hidden",position:"absolute"}),na="".concat(na,"-placeholder"),Pr="".concat(Pr,"-placeholder"));var fr=dn?"".concat(Wt,"-").concat(dn):"",Br={};return Je.forEach(function(qr){On[qr]!==void 0&&(Br[qr]=On[qr])}),B.createElement(Rt,Object.assign({title:qt,className:"".concat(Wt,"-overflowed-submenu"),popupClassName:fr},Br,{key:na,eventKey:Pr,disabled:!1,style:Fr}),Me)},ct.setChildrenWidthAndResize=function(){if(ct.props.mode!=="horizontal")return;var ge=he.findDOMNode(Object(K.a)(ct));if(!ge)return;var Me=ge.children;if(!Me||Me.length===0)return;var wt=ge.children[Me.length-1];ke(wt,"display","inline-block");var ft=ct.getMenuItemNodes(),qt=ft.filter(function(on){return on.className.split(" ").indexOf(Ht)>=0});qt.forEach(function(on){ke(on,"display","inline-block")}),ct.menuItemSizes=ft.map(function(on){return Ae(on,!0)}),qt.forEach(function(on){ke(on,"display","none")}),ct.overflowedIndicatorWidth=Ae(ge.children[ge.children.length-1],!0),ct.originalTotalWidth=ct.menuItemSizes.reduce(function(on,ot){return on+ot},0),ct.handleResize(),ke(wt,"display","none")},ct.handleResize=function(){if(ct.props.mode!=="horizontal")return;var ge=he.findDOMNode(Object(K.a)(ct));if(!ge)return;var Me=Ae(ge);ct.overflowedItems=[];var wt=0,ft;ct.originalTotalWidth>Me+It&&(ft=-1,ct.menuItemSizes.forEach(function(qt){wt+=qt,wt+ct.overflowedIndicatorWidth<=Me&&(ft+=1)})),ct.setState({lastVisibleIndex:ft})},ct}return Object(I.a)(_t,[{key:"componentDidMount",value:function(){var ge=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Me=he.findDOMNode(this);if(!Me)return;this.resizeObserver=new le.default(function(wt){wt.forEach(function(){var ft=ge.cancelFrameId;cancelAnimationFrame(ft),ge.cancelFrameId=requestAnimationFrame(ge.setChildrenWidthAndResize)})}),[].slice.call(Me.children).concat(Me).forEach(function(wt){ge.resizeObserver.observe(wt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ge.resizeObserver.disconnect(),[].slice.call(Me.children).concat(Me).forEach(function(wt){ge.resizeObserver.observe(wt)}),ge.setChildrenWidthAndResize()}),this.mutationObserver.observe(Me,{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 Me=this,wt=this.state.lastVisibleIndex;return(ge||[]).reduce(function(ft,qt,on){var ot=qt;if(Me.props.mode==="horizontal"){var Wt=Me.getOverflowedSubMenuItem(qt.props.eventKey,[]);wt!==void 0&&Me.props.className.indexOf("".concat(Me.props.prefixCls,"-root"))!==-1&&(on>wt&&(ot=B.cloneElement(qt,{style:{display:"none"},eventKey:"".concat(qt.props.eventKey,"-hidden"),className:"".concat(Ht)})),on===wt+1&&(Me.overflowedItems=ge.slice(wt+1).map(function(Bn){return B.cloneElement(Bn,{key:Bn.props.eventKey,mode:"vertical-left"})}),Wt=Me.getOverflowedSubMenuItem(qt.props.eventKey,Me.overflowedItems)));var dn=[].concat(Object(Xe.a)(ft),[Wt,ot]);return on===ge.length-1&&dn.push(Me.getOverflowedSubMenuItem(qt.props.eventKey,[],!0)),dn}return[].concat(Object(Xe.a)(ft),[ot])},[])}},{key:"render",value:function(){var ge=this.props,Me=ge.visible,wt=ge.prefixCls,ft=ge.overflowedIndicator,qt=ge.mode,on=ge.level,ot=ge.tag,Wt=ge.children,dn=ge.theme,Bn=Object(Pe.a)(ge,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),kn=ot;return B.createElement(kn,Object.assign({},Bn),this.renderChildren(Wt))}}]),_t}(B.Component);Bt.defaultProps={tag:"div",className:""};var tn=Bt;function fn(Vt){return Vt.length?Vt.every(function(Et){return!!Et.props.disabled}):!0}function tt(Vt,Et,_t){var ct=Vt.getState();Vt.setState({activeKey:Object(re.a)(Object(re.a)({},ct.activeKey),{},Object(m.a)({},Et,_t))})}function Ke(Vt){return Vt.eventKey||"0-menu-"}function Ct(Vt,Et){var _t=Et,ct=Vt.children,ge=Vt.eventKey;if(_t){var Me;if(ie(ct,function(wt,ft){wt&&wt.props&&!wt.props.disabled&&_t===Z(wt,ge,ft)&&(Me=!0)}),Me)return _t}return _t=null,Vt.defaultActiveFirst&&ie(ct,function(wt,ft){!_t&&wt&&!wt.props.disabled&&(_t=Z(wt,ge,ft))}),_t}function Dt(Vt){if(Vt){var Et=this.instanceArray.indexOf(Vt);Et!==-1?this.instanceArray[Et]=Vt:this.instanceArray.push(Vt)}}var st=function(Vt){Object(T.a)(_t,Vt);var Et=Object(w.a)(_t);function _t(ct){var ge;return Object(z.a)(this,_t),ge=Et.call(this,ct),ge.onKeyDown=function(Me,wt){var ft=Me.keyCode,qt;if(ge.getFlatInstanceArray().forEach(function(ot){ot&&ot.props.active&&ot.onKeyDown&&(qt=ot.onKeyDown(Me))}),qt)return 1;var on=null;return(ft===R.a.UP||ft===R.a.DOWN)&&(on=ge.step(ft===R.a.UP?-1:1)),on?(Me.preventDefault(),tt(ge.props.store,Ke(ge.props),on.props.eventKey),typeof wt=="function"&&wt(on),1):void 0},ge.onItemHover=function(Me){var wt=Me.key,ft=Me.hover;tt(ge.props.store,Ke(ge.props),ft?wt:null)},ge.onDeselect=function(Me){ge.props.onDeselect(Me)},ge.onSelect=function(Me){ge.props.onSelect(Me)},ge.onClick=function(Me){ge.props.onClick(Me)},ge.onOpenChange=function(Me){ge.props.onOpenChange(Me)},ge.onDestroy=function(Me){ge.props.onDestroy(Me)},ge.getFlatInstanceArray=function(){return ge.instanceArray},ge.step=function(Me){var wt=ge.getFlatInstanceArray(),ft=ge.props.store.getState().activeKey[Ke(ge.props)],qt=wt.length;if(!qt)return null;Me<0&&(wt=wt.concat().reverse());var on=-1;if(wt.every(function(Bn,kn){return Bn&&Bn.props.eventKey===ft?(on=kn,!1):!0}),!ge.props.defaultActiveFirst&&on!==-1&&fn(wt.slice(on,qt-1)))return;var ot=(on+1)%qt,Wt=ot;do{var dn=wt[Wt];if(!dn||dn.props.disabled)Wt=(Wt+1)%qt;else return dn}while(Wt!==ot);return null},ge.renderCommonMenuItem=function(Me,wt,ft){var qt=ge.props.store.getState(),on=Object(K.a)(ge),ot=on.props,Wt=Z(Me,ot.eventKey,wt),dn=Me.props;if(!dn||typeof Me.type=="string")return Me;var Bn=Wt===qt.activeKey,kn=Object(re.a)(Object(re.a)({mode:dn.mode||ot.mode,level:ot.level,inlineIndent:ot.inlineIndent,renderMenuItem:ge.renderMenuItem,rootPrefixCls:ot.prefixCls,index:wt,parentMenu:ot.parentMenu,manualRef:dn.disabled?void 0:Object(M.a)(Me.ref,Dt.bind(Object(K.a)(ge))),eventKey:Wt,active:!dn.disabled&&Bn,multiple:ot.multiple,onClick:function(Ar){(dn.onClick||W)(Ar),ge.onClick(Ar)},onItemHover:ge.onItemHover,motion:ot.motion,subMenuOpenDelay:ot.subMenuOpenDelay,subMenuCloseDelay:ot.subMenuCloseDelay,forceSubMenuRender:ot.forceSubMenuRender,onOpenChange:ge.onOpenChange,onDeselect:ge.onDeselect,onSelect:ge.onSelect,builtinPlacements:ot.builtinPlacements,itemIcon:dn.itemIcon||ge.props.itemIcon,expandIcon:dn.expandIcon||ge.props.expandIcon},ft),{},{direction:ot.direction});return(ot.mode==="inline"||Ze())&&(kn.triggerSubMenuAction="click"),B.cloneElement(Me,kn)},ge.renderMenuItem=function(Me,wt,ft){if(!Me)return null;var qt=ge.props.store.getState(),on={openKeys:qt.openKeys,selectedKeys:qt.selectedKeys,triggerSubMenuAction:ge.props.triggerSubMenuAction,subMenuKey:ft};return ge.renderCommonMenuItem(Me,wt,on)},ct.store.setState({activeKey:Object(re.a)(Object(re.a)({},ct.store.getState().activeKey),{},Object(m.a)({},ct.eventKey,Ct(ct,ct.activeKey)))}),ge.instanceArray=[],ge}return Object(I.a)(_t,[{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 Me=this.props,wt="activeKey"in Me?Me.activeKey:Me.store.getState().activeKey[Ke(Me)],ft=Ct(Me,wt);if(ft!==wt)tt(Me.store,Ke(Me),ft);else if("activeKey"in ge){var qt=Ct(ge,ge.activeKey);ft!==qt&&tt(Me.store,Ke(Me),ft)}}},{key:"render",value:function(){var ge=this,Me=Object(D.a)({},this.props);this.instanceArray=[];var wt=d()(Me.prefixCls,Me.className,"".concat(Me.prefixCls,"-").concat(Me.mode)),ft={className:wt,role:Me.role||"menu"};Me.id&&(ft.id=Me.id),Me.focusable&&(ft.tabIndex=0,ft.onKeyDown=this.onKeyDown);var qt=Me.prefixCls,on=Me.eventKey,ot=Me.visible,Wt=Me.level,dn=Me.mode,Bn=Me.overflowedIndicator,kn=Me.theme;return Je.forEach(function(Cr){return delete Me[Cr]}),delete Me.onClick,B.createElement(tn,Object.assign({},Me,{prefixCls:qt,mode:dn,tag:"ul",level:Wt,theme:kn,visible:ot,overflowedIndicator:Bn},ft),B.Children.map(Me.children,function(Cr,Ar){return ge.renderMenuItem(Cr,Ar,on||"0-menu-")}))}}]),_t}(B.Component);st.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:W};var xt=Object(x.b)()(st),je=xt,we=F("Kwbf");function Te(Vt,Et,_t){var ct=Vt.prefixCls,ge=Vt.motion,Me=Vt.defaultMotions,wt=Me===void 0?{}:Me,ft=Vt.openAnimation,qt=Vt.openTransitionName,on=Et.switchingModeFromInline;if(ge)return ge;if(Object(o.a)(ft)==="object"&&ft)Object(we.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ft=="string")return{motionName:"".concat(ct,"-open-").concat(ft)};if(qt)return{motionName:qt};var ot=wt[_t];return ot||(on?null:wt.other)}var ue=function(Vt){Object(T.a)(_t,Vt);var Et=Object(w.a)(_t);function _t(ct){var ge;Object(z.a)(this,_t),ge=Et.call(this,ct),ge.inlineOpenKeys=[],ge.onSelect=function(ft){var qt=Object(K.a)(ge),on=qt.props;if(on.selectable){var ot=ge.store.getState(),Wt=ot.selectedKeys,dn=ft.key;on.multiple?Wt=Wt.concat([dn]):Wt=[dn],"selectedKeys"in on||ge.store.setState({selectedKeys:Wt}),on.onSelect(Object(re.a)(Object(re.a)({},ft),{},{selectedKeys:Wt}))}},ge.onClick=function(ft){var qt=ge.getRealMenuMode(),on=Object(K.a)(ge),ot=on.store,Wt=on.props.onOpenChange;qt!=="inline"&&!("openKeys"in ge.props)&&(ot.setState({openKeys:[]}),Wt([])),ge.props.onClick(ft)},ge.onKeyDown=function(ft,qt){ge.innerMenu.getWrappedInstance().onKeyDown(ft,qt)},ge.onOpenChange=function(ft){var qt=Object(K.a)(ge),on=qt.props,ot=ge.store.getState().openKeys.concat(),Wt=!1,dn=function(kn){var Cr=!1;if(kn.open)Cr=ot.indexOf(kn.key)===-1,Cr&&ot.push(kn.key);else{var Ar=ot.indexOf(kn.key);Cr=Ar!==-1,Cr&&ot.splice(Ar,1)}Wt=Wt||Cr};Array.isArray(ft)?ft.forEach(dn):dn(ft),Wt&&("openKeys"in ge.props||ge.store.setState({openKeys:ot}),on.onOpenChange(ot))},ge.onDeselect=function(ft){var qt=Object(K.a)(ge),on=qt.props;if(on.selectable){var ot=ge.store.getState().selectedKeys.concat(),Wt=ft.key,dn=ot.indexOf(Wt);dn!==-1&&ot.splice(dn,1),"selectedKeys"in on||ge.store.setState({selectedKeys:ot}),on.onDeselect(Object(re.a)(Object(re.a)({},ft),{},{selectedKeys:ot}))}},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,on=ft.target.className,ot=Object.prototype.toString.call(on)==="[object SVGAnimatedString]"?on.animVal:on,Wt=ft.propertyName==="font-size"&&ot.indexOf("anticon")>=0;(qt||Wt)&&ge.restoreModeVerticalFromInline()},ge.setInnerMenu=function(ft){ge.innerMenu=ft},ge.isRootMenu=!0;var Me=ct.defaultSelectedKeys,wt=ct.defaultOpenKeys;return"selectedKeys"in ct&&(Me=ct.selectedKeys||[]),"openKeys"in ct&&(wt=ct.openKeys||[]),ge.store=Object(x.c)({selectedKeys:Me,openKeys:wt,activeKey:{"0-menu-":Ct(ct,ct.activeKey)}}),ge.state={switchingModeFromInline:!1},ge}return Object(I.a)(_t,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ge){this.updateOpentKeysWhenSwitchMode(ge),this.updateMiniStore();var Me=this.props,wt=Me.siderCollapsed,ft=Me.inlineCollapsed,qt=Me.onOpenChange;(!ge.inlineCollapsed&&ft||!ge.siderCollapsed&&wt)&&qt([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(ge){var Me=this.props,wt=this.store,ft=this.inlineOpenKeys,qt=wt.getState(),on={};ge.mode==="inline"&&Me.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Me||((Me.inlineCollapsed&&!ge.inlineCollapsed||Me.siderCollapsed&&!ge.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=qt.openKeys.concat(),on.openKeys=[]),(!Me.inlineCollapsed&&ge.inlineCollapsed||!Me.siderCollapsed&&ge.siderCollapsed)&&(on.openKeys=ft,this.inlineOpenKeys=[])),Object.keys(on).length&&wt.setState(on)}},{key:"updateMenuDisplay",value:function(){var ge=this.props.collapsedWidth,Me=this.store,wt=this.prevOpenKeys,ft=this.getInlineCollapsed()&&(ge===0||ge==="0"||ge==="0px");ft?(this.prevOpenKeys=Me.getState().openKeys.concat(),this.store.setState({openKeys:[]})):wt&&(this.store.setState({openKeys:wt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ge=this.props.mode,Me=this.state.switchingModeFromInline,wt=this.getInlineCollapsed();return Me&&wt?"inline":wt?"vertical":ge}},{key:"getInlineCollapsed",value:function(){var ge=this.props,Me=ge.inlineCollapsed,wt=ge.siderCollapsed;return wt!==void 0?wt:Me}},{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(k.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Me=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:Me,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,Me)}),delete ge.openAnimation,delete ge.openTransitionName,B.createElement(x.a,{store:this.store},B.createElement(je,Object.assign({},ge,{ref:this.setInnerMenu}),this.props.children))}}]),_t}(B.Component);ue.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 pe=ue,me=function(Vt){Object(T.a)(_t,Vt);var Et=Object(w.a)(_t);function _t(){var ct;return Object(z.a)(this,_t),ct=Et.apply(this,arguments),ct.onKeyDown=function(ge){var Me=ge.keyCode;return Me===R.a.ENTER?(ct.onClick(ge),!0):void 0},ct.onMouseLeave=function(ge){var Me=ct.props,wt=Me.eventKey,ft=Me.onItemHover,qt=Me.onMouseLeave;ft({key:wt,hover:!1}),qt({key:wt,domEvent:ge})},ct.onMouseEnter=function(ge){var Me=ct.props,wt=Me.eventKey,ft=Me.onItemHover,qt=Me.onMouseEnter;ft({key:wt,hover:!0}),qt({key:wt,domEvent:ge})},ct.onClick=function(ge){var Me=ct.props,wt=Me.eventKey,ft=Me.multiple,qt=Me.onClick,on=Me.onSelect,ot=Me.onDeselect,Wt=Me.isSelected,dn={key:wt,keyPath:[wt],item:Object(K.a)(ct),domEvent:ge};qt(dn),ft?Wt?ot(dn):on(dn):Wt||on(dn)},ct.saveNode=function(ge){ct.node=ge},ct}return Object(I.a)(_t,[{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,Me=Object(re.a)({},this.props),wt=d()(this.getPrefixCls(),Me.className,(ge={},Object(m.a)(ge,this.getActiveClassName(),!Me.disabled&&Me.active),Object(m.a)(ge,this.getSelectedClassName(),Me.isSelected),Object(m.a)(ge,this.getDisabledClassName(),Me.disabled),ge)),ft=Object(re.a)(Object(re.a)({},Me.attribute),{},{title:typeof Me.title=="string"?Me.title:void 0,className:wt,role:Me.role||"menuitem","aria-disabled":Me.disabled});Me.role==="option"?ft=Object(re.a)(Object(re.a)({},ft),{},{role:"option","aria-selected":Me.isSelected}):(Me.role===null||Me.role==="none")&&(ft.role="none");var qt={onClick:Me.disabled?null:this.onClick,onMouseLeave:Me.disabled?null:this.onMouseLeave,onMouseEnter:Me.disabled?null:this.onMouseEnter},on=Object(re.a)({},Me.style);Me.mode==="inline"&&(Me.direction==="rtl"?on.paddingRight=Me.inlineIndent*Me.level:on.paddingLeft=Me.inlineIndent*Me.level),Je.forEach(function(Wt){return delete Me[Wt]}),delete Me.direction;var ot=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(ot=B.createElement(this.props.itemIcon,this.props)),B.createElement("li",Object.assign({},Object(k.default)(Me,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ft,qt,{style:on,ref:this.saveNode}),Me.children,ot)}}]),_t}(B.Component);me.isMenuItem=!0,me.defaultProps={onSelect:W,onMouseEnter:W,onMouseLeave:W,manualRef:W};var xe=Object(x.b)(function(Vt,Et){var _t=Vt.activeKey,ct=Vt.selectedKeys,ge=Et.eventKey,Me=Et.subMenuKey;return{active:_t[Me]===ge,isSelected:ct.indexOf(ge)!==-1}})(me),nt=xe,We=function(Vt){Object(T.a)(_t,Vt);var Et=Object(w.a)(_t);function _t(){var ct;return Object(z.a)(this,_t),ct=Et.apply(this,arguments),ct.renderInnerMenuItem=function(ge){var Me=ct.props,wt=Me.renderMenuItem,ft=Me.index;return wt(ge,ft,ct.props.subMenuKey)},ct}return Object(I.a)(_t,[{key:"render",value:function(){var ge=Object(D.a)({},this.props),Me=ge.className,wt=Me===void 0?"":Me,ft=ge.rootPrefixCls,qt="".concat(ft,"-item-group-title"),on="".concat(ft,"-item-group-list"),ot=ge.title,Wt=ge.children;return Je.forEach(function(dn){return delete ge[dn]}),delete ge.onClick,delete ge.direction,B.createElement("li",Object.assign({},ge,{className:"".concat(wt," ").concat(ft,"-item-group")}),B.createElement("div",{className:qt,title:typeof ot=="string"?ot:void 0},ot),B.createElement("ul",{className:on},B.Children.map(Wt,this.renderInnerMenuItem)))}}]),_t}(B.Component);We.isMenuItemGroup=!0,We.defaultProps={disabled:!0};var St=We,en=function(Et){var _t=Et.className,ct=Et.rootPrefixCls,ge=Et.style;return B.createElement("li",{className:"".concat(_t," ").concat(ct,"-item-divider"),style:ge})};en.defaultProps={disabled:!0,className:"",style:{}};var vn=en,Zt=rt.e=pe},"49sm":function(an,rt){var F={}.toString;an.exports=Array.isArray||function(re){return F.call(re)=="[object Array]"}},"4wi7":function(an,rt,F){"use strict";var re=F("14J3"),z=F("BMrR"),I=F("sRBo"),K=F("kaz8"),T=F("5NDa"),w=F("5rEg"),B=F("9og8"),x=F("tJVT"),k=F("WmNS"),D=F.n(k),m=F("q1tI"),R=F.n(m),M=F("oOBs"),g=F.n(M),n=F("xOL1"),p=F.n(n),d=F("BdwD"),o=function(f){var S=f.data,b=f.value,v=b===void 0?[]:b,P=f.handleChangePage,E=f.setSelectedRowKeys,h=f.selectedRowKeys,c=f.onChange,s=c===void 0?function(){}:c,i=Object(m.useState)([]),C=Object(x.a)(i,2),_=C[0],O=C[1],N=Object(m.useState)([]),U=Object(x.a)(N,2),H=U[0],G=U[1],L=Object(m.useState)([]),W=Object(x.a)(L,2),Z=W[0],oe=W[1],ie=Object(m.useState)(1),be=Object(x.a)(ie,2),Je=be[0],Ae=be[1],ke=Object(m.useState)(),Ze=Object(x.a)(ke,2),Xe=Ze[0],Pe=Ze[1];return Object(m.useEffect)(function(){O(S),G([]),oe([])},[S]),Object(m.useEffect)(function(){E&&(G(h),oe(h))},[h]),R.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},R.a.createElement("div",{className:g.a.leftdiv},R.a.createElement(w.a.Search,{size:"large",onChange:function(){var he=Object(B.a)(D.a.mark(function le(Se){return D.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:O(S.filter(function(it){var ee;return it==null||((ee=it.name)===null||ee===void 0)?void 0:ee.includes(Se.target.value)}));case 1:case"end":return Ge.stop()}},le)}));return function(le){return he.apply(this,arguments)}}(),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),_.length===0&&R.a.createElement(d.a,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),R.a.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},R.a.createElement(K.a.Group,{value:H.map(function(he){return"".concat(he.id)}),onChange:function(le){E(_.filter(function(Se){return le.includes("".concat(Se.id))}))},style:{marginTop:"10px"}},_.map(function(he,le){return R.a.createElement(z.a,{key:he.id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},R.a.createElement(K.a,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:he.is_published,value:"".concat(he.id)},R.a.createElement("div",{className:g.a.listClass},R.a.createElement("span",{className:g.a.spantitle,style:{width:he.is_published?"108px":"170px"}},he.name),he.is_published&&R.a.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03"))))})))),R.a.createElement("div",{className:g.a.rightdiv},R.a.createElement(w.a.Search,{onChange:function(le){oe(H.filter(function(Se){return Se.name.includes(le.target.value)}))},size:"large",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),Z.length===0&&R.a.createElement(d.a,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),Z.length>0&&R.a.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},R.a.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},Z.map(function(he,le){return R.a.createElement(z.a,{justify:"space-between",style:{marginTop:"10px"},key:he.id},R.a.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},he.name),R.a.createElement("img",{src:p.a,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){E(H.filter(function(ve){return"".concat(ve.id)!="".concat(he.id)}))}}))})))))};rt.a=o},"500L":function(an,rt,F){"use strict";F.d(rt,"a",function(){return b});var re=F("+L6B"),z=F("2/Rp"),I=F("2qtc"),K=F("kLXV"),T=F("9og8"),w=F("k1fw"),B=F("miYZ"),x=F("tsqr"),k=F("oBTY"),D=F("tJVT"),m=F("DZo9"),R=F("8z0m"),M=F("WmNS"),g=F.n(M),n=F("q1tI"),p=F.n(n),d=F("m3rI"),o=F("wzkS"),u=F("y5JW"),f=F("LtfV"),S=R.a.Dragger;function b(v){var P=[];return v&&v.length>0&&(P=v.map(function(E){return{uid:E.id,id:E.id,name:E.title+u.c+E.filesize,url:E.url,filesize:E.filesize,status:"done",response:{id:E.id}}})),P}rt.b=function(v){var P=v.value,E=v.onChange,h=v.action,c=v.className,s=v.maxSize,i=s===void 0?150:s,C=v.title,_=C===void 0?"\u4E0A\u4F20\u9644\u4EF6":C,O=v.showRemoveModal,N=O===void 0?!1:O,U=v.accept,H=U===void 0?"":U,G=v.additionalText,L=v.isDragger,W=v.number,Z=W===void 0?1e3:W,oe=v.aloneClear,ie=oe===void 0?!1:oe,be=v.restrict,Je=be===void 0?!0:be,Ae=Object(n.useState)(!1),ke=Object(D.a)(Ae,2),Ze=ke[0],Xe=ke[1],Pe=Object(n.useState)(P||[]),he=Object(D.a)(Pe,2),le=he[0],Se=he[1];Object(n.useEffect)(function(){P&&(Se(Object(k.a)(P)),Z===(P==null?void 0:P.length)&&Xe(!0))},[P]);var ve=function(){setTimeout(function(){le.pop(),Se(Object(k.a)(le))},500)},Ge={multiple:!0,disabled:Ze,accept:H,withCredentials:!0,fileList:le,beforeUpload:function(V,Q){var fe=V.size/1024/1024;return le.concat(Q).length>Z?(le.pop(),Se(Object(k.a)(le)),x.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(Z,"\u4E2A\u6587\u4EF6")),ie?Promise.reject():(ve(),!1)):fe=Z?Xe(!0):Xe(!1),Se(Object(k.a)(Q)),Q=Q.map(function(fe){var _e;if(fe!=null&&(_e=fe.response)!==null&&_e!==void 0&&_e.id){var Fe;fe.url="/api/attachments/".concat(fe==null||((Fe=fe.response)===null||Fe===void 0)?void 0:Fe.id)}return fe.name.indexOf(u.c)===-1&&(fe.name="".concat(fe.name).concat(u.c).concat(Object(u.a)(fe.size))),Object(w.a)({},fe)}),console.log("info:",V),E(Q)},onRemove:function(){var ee=Object(T.a)(g.a.mark(function Q(fe){var _e;return g.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:if(_e=function(){var Rt=Object(T.a)(g.a.mark(function Ht(){var It,Bt;return g.a.wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:if(It=fe.response?fe.response.id:fe.id,!It){fn.next=8;break}return fn.next=4,Object(o.d)(fe.response?fe.response.id:fe.uid);case 4:return Bt=fn.sent,fn.abrupt("return",Bt);case 8:return fn.abrupt("return",!0);case 9:case"end":return fn.stop()}},Ht)}));return function(){return Rt.apply(this,arguments)}}(),!N){He.next=5;break}return He.abrupt("return",new Promise(function(Rt,Ht){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(T.a)(g.a.mark(function tn(){var fn;return g.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return Ke.next=2,_e();case 2:fn=Ke.sent,x.b.success("\u5220\u9664\u6210\u529F"),Rt(!0);case 5:case"end":return Ke.stop()}},tn)}));function Bt(){return It.apply(this,arguments)}return Bt}(),onCancel:function(){return Rt(!1)}})}));case 5:return He.next=7,_e();case 7:return He.abrupt("return",He.sent);case 8:case"end":return He.stop()}},Q)}));function V(Q){return ee.apply(this,arguments)}return V}()};function it(ee){ee.preventDefault(),ee.stopPropagation()}return p.a.createElement("div",{className:"multi-upload ".concat(c||"")},L&&p.a.createElement(S,Ge,p.a.createElement("p",{className:"ant-upload-drag-icon"},p.a.createElement(f.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:Je?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",i,"MB) ")),G),!L&&p.a.createElement(R.a,Ge,p.a.createElement(z.a,{disabled:Ze},_),p.a.createElement("span",{onClick:it,style:{marginLeft:10,color:"#FA6400",display:Je?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",i,"MB) ")))}},"55Ip":function(an,rt,F){"use strict";F.d(rt,"a",function(){return u}),F.d(rt,"b",function(){return E});var re=F("Ty5D"),z=F("dI71"),I=F("q1tI"),K=F.n(I),T=F("YS25"),w=F("17x9"),B=F.n(w),x=F("wx14"),k=F("zLVn"),D=F("9R94"),m=function(c){Object(z.a)(s,c);function s(){for(var C,_=arguments.length,O=new Array(_),N=0;N<_;N++)O[N]=arguments[N];return C=c.call.apply(c,[this].concat(O))||this,C.history=Object(T.a)(C.props),C}var i=s.prototype;return i.render=function(){return K.a.createElement(re.c,{history:this.history,children:this.props.children})},s}(K.a.Component),R=function(c){Object(z.a)(s,c);function s(){for(var C,_=arguments.length,O=new Array(_),N=0;N<_;N++)O[N]=arguments[N];return C=c.call.apply(c,[this].concat(O))||this,C.history=Object(T.b)(C.props),C}var i=s.prototype;return i.render=function(){return K.a.createElement(re.c,{history:this.history,children:this.props.children})},s}(K.a.Component),M=function(s,i){return typeof s=="function"?s(i):s},g=function(s,i){return typeof s=="string"?Object(T.c)(s,null,null,i):s},n=function(s){return s},p=K.a.forwardRef;typeof p=="undefined"&&(p=n);function d(c){return!!(c.metaKey||c.altKey||c.ctrlKey||c.shiftKey)}var o=p(function(c,s){var i=c.innerRef,C=c.navigate,_=c.onClick,O=Object(k.a)(c,["innerRef","navigate","onClick"]),N=O.target,U=Object(x.a)({},O,{onClick:function(G){try{_&&_(G)}catch(L){throw G.preventDefault(),L}!G.defaultPrevented&&G.button===0&&(!N||N==="_self")&&!d(G)&&(G.preventDefault(),C())}});return n!==p?U.ref=s||i:U.ref=i,K.a.createElement("a",U)}),u=p(function(c,s){var i=c.component,C=i===void 0?o:i,_=c.replace,O=c.to,N=c.innerRef,U=Object(k.a)(c,["component","replace","to","innerRef"]);return K.a.createElement(re.e.Consumer,null,function(H){H||Object(D.a)(!1);var G=H.history,L=g(M(O,H.location),H.location),W=L?G.createHref(L):"",Z=Object(x.a)({},U,{href:W,navigate:function(){var ie=M(O,H.location),be=_?G.replace:G.push;be(ie)}});return n!==p?Z.ref=s||N:Z.innerRef=N,K.a.createElement(C,Z)})});if(!1)var f,S;var b=function(s){return s},v=K.a.forwardRef;typeof v=="undefined"&&(v=b);function P(){for(var c=arguments.length,s=new Array(c),i=0;i=0||_.relatedTarget.className.indexOf("".concat(H,"-next"))>=0))return;c.setState({goInputText:""}),U(c.getValidValue())},c.go=function(_){var O=c.state.goInputText;if(O==="")return;(_.keyCode===g.ENTER||_.type==="click")&&(c.setState({goInputText:""}),c.props.quickGo(c.getValidValue()))},c}return Object(T.a)(h,[{key:"getValidValue",value:function(){var s=this.state,i=s.goInputText,C=s.current;return!i||isNaN(i)?C:Number(i)}},{key:"getPageSizeOptions",value:function(){var s=this.props,i=s.pageSize,C=s.pageSizeOptions;return C.some(function(_){return _.toString()===i.toString()})?C:C.concat([i.toString()]).sort(function(_,O){var N=isNaN(Number(_))?0:Number(_),U=isNaN(Number(O))?0:Number(O);return N-U})}},{key:"render",value:function(){var s=this,i=this.props,C=i.pageSize,_=i.locale,O=i.rootPrefixCls,N=i.changeSize,U=i.quickGo,H=i.goButton,G=i.selectComponentClass,L=i.buildOptionText,W=i.selectPrefixCls,Z=i.disabled,oe=this.state.goInputText,ie="".concat(O,"-options"),be=G,Je=null,Ae=null,ke=null;if(!N&&!U)return null;var Ze=this.getPageSizeOptions();if(N&&be){var Xe=Ze.map(function(Pe,he){return k.a.createElement(be.Option,{key:he,value:Pe.toString()},(L||s.buildOptionText)(Pe))});Je=k.a.createElement(be,{disabled:Z,prefixCls:W,showSearch:!1,className:"".concat(ie,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(C||Ze[0]).toString(),onChange:this.changeSize,getPopupContainer:function(he){return he.parentNode}},Xe)}return U&&(H&&(ke=typeof H=="boolean"?k.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Z,className:"".concat(ie,"-quick-jumper-button")},_.jump_to_confirm):k.a.createElement("span",{onClick:this.go,onKeyUp:this.go},H)),Ae=k.a.createElement("div",{className:"".concat(ie,"-quick-jumper")},_.jump_to,k.a.createElement("input",{disabled:Z,type:"text",value:oe,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),_.page,ke)),k.a.createElement("li",{className:"".concat(ie)},Je,Ae)}}]),h}(k.a.Component);n.defaultProps={pageSizeOptions:["10","20","50","100"]};var p=n,d=F("N2Kk");function o(){}function u(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function f(P,E,h){return h}function S(P,E,h){var c=typeof P=="undefined"?E.pageSize:P;return Math.floor((h.total-1)/c)+1}var b=function(P){Object(w.a)(h,P);var E=Object(B.a)(h);function h(c){var s;Object(K.a)(this,h),s=E.call(this,c),s.getJumpPrevPage=function(){return Math.max(1,s.state.current-(s.props.showLessItems?3:5))},s.getJumpNextPage=function(){return Math.min(S(void 0,s.state,s.props),s.state.current+(s.props.showLessItems?3:5))},s.getItemIcon=function(N,U){var H=s.props.prefixCls,G=N||k.a.createElement("button",{type:"button","aria-label":U,className:"".concat(H,"-item-link")});return typeof N=="function"&&(G=k.a.createElement(N,Object(I.a)({},s.props))),G},s.savePaginationNode=function(N){s.paginationNode=N},s.isValid=function(N){return u(N)&&N!==s.state.current},s.shouldDisplayQuickJumper=function(){var N=s.props,U=N.showQuickJumper,H=N.pageSize,G=N.total;return G<=H?!1:U},s.handleKeyDown=function(N){(N.keyCode===g.ARROW_UP||N.keyCode===g.ARROW_DOWN)&&N.preventDefault()},s.handleKeyUp=function(N){var U=s.getValidValue(N),H=s.state.currentInputValue;U!==H&&s.setState({currentInputValue:U}),N.keyCode===g.ENTER?s.handleChange(U):N.keyCode===g.ARROW_UP?s.handleChange(U-1):N.keyCode===g.ARROW_DOWN&&s.handleChange(U+1)},s.changePageSize=function(N){var U=s.state.current,H=S(N,s.state,s.props);U=U>H?H:U,H===0&&(U=s.state.current),typeof N=="number"&&("pageSize"in s.props||s.setState({pageSize:N}),"current"in s.props||s.setState({current:U,currentInputValue:U})),s.props.onShowSizeChange(U,N),"onChange"in s.props&&s.props.onChange&&s.props.onChange(U,N)},s.handleChange=function(N){var U=s.props.disabled,H=N;if(s.isValid(H)&&!U){var G=S(void 0,s.state,s.props);H>G?H=G:H<1&&(H=1),"current"in s.props||s.setState({current:H,currentInputValue:H});var L=s.state.pageSize;return s.props.onChange(H,L),H}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?H-2:0),L=2;L=C?O=C:O=Number(i),O}},{key:"getShowSizeChanger",value:function(){var s=this.props,i=s.showSizeChanger,C=s.total,_=s.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:C>_}},{key:"renderPrev",value:function(s){var i=this.props,C=i.prevIcon,_=i.itemRender,O=_(s,"prev",this.getItemIcon(C,"prev page")),N=!this.hasPrev();return Object(x.isValidElement)(O)?Object(x.cloneElement)(O,{disabled:N}):O}},{key:"renderNext",value:function(s){var i=this.props,C=i.nextIcon,_=i.itemRender,O=_(s,"next",this.getItemIcon(C,"next page")),N=!this.hasNext();return Object(x.isValidElement)(O)?Object(x.cloneElement)(O,{disabled:N}):O}},{key:"render",value:function(){var s=this,i=this.props,C=i.prefixCls,_=i.className,O=i.style,N=i.disabled,U=i.hideOnSinglePage,H=i.total,G=i.locale,L=i.showQuickJumper,W=i.showLessItems,Z=i.showTitle,oe=i.showTotal,ie=i.simple,be=i.itemRender,Je=i.showPrevNextJumpers,Ae=i.jumpPrevIcon,ke=i.jumpNextIcon,Ze=i.selectComponentClass,Xe=i.selectPrefixCls,Pe=i.pageSizeOptions,he=this.state,le=he.current,Se=he.pageSize,ve=he.currentInputValue;if(U===!0&&H<=Se)return null;var Ge=S(void 0,this.state,this.props),it=[],ee=null,V=null,Q=null,fe=null,_e=null,Fe=L&&L.goButton,He=W?1:2,Rt=le-1>0?le-1:0,Ht=le+1=He*2&&le!==1+2&&(it[0]=Object(x.cloneElement)(it[0],{className:"".concat(C,"-item-after-jump-prev")}),it.unshift(ee)),Ge-le>=He*2&&le!==Ge-2&&(it[it.length-1]=Object(x.cloneElement)(it[it.length-1],{className:"".concat(C,"-item-before-jump-next")}),it.push(V)),Ct!==1&&it.unshift(Q),Dt!==Ge&&it.push(fe)}var je=null;oe&&(je=k.a.createElement("li",{className:"".concat(C,"-total-text")},oe(H,[H===0?0:(le-1)*Se+1,le*Se>H?H:le*Se])));var we=!this.hasPrev()||!Ge,Te=!this.hasNext()||!Ge;return k.a.createElement("ul",Object(re.a)({className:m()(C,_,Object(z.a)({},"".concat(C,"-disabled"),N)),style:O,unselectable:"unselectable",ref:this.savePaginationNode},It),je,k.a.createElement("li",{title:Z?G.prev_page:null,onClick:this.prev,tabIndex:we?null:0,onKeyPress:this.runIfEnterPrev,className:m()("".concat(C,"-prev"),Object(z.a)({},"".concat(C,"-disabled"),we)),"aria-disabled":we},this.renderPrev(Rt)),it,k.a.createElement("li",{title:Z?G.next_page:null,onClick:this.next,tabIndex:Te?null:0,onKeyPress:this.runIfEnterNext,className:m()("".concat(C,"-next"),Object(z.a)({},"".concat(C,"-disabled"),Te)),"aria-disabled":Te},this.renderNext(Ht)),k.a.createElement(p,{disabled:N,locale:G,rootPrefixCls:C,selectComponentClass:Ze,selectPrefixCls:Xe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:le,pageSize:Se,pageSizeOptions:Pe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Fe}))}}],[{key:"getDerivedStateFromProps",value:function(s,i){var C={};if("current"in s&&(C.current=s.current,s.current!==i.current&&(C.currentInputValue=C.current)),"pageSize"in s&&s.pageSize!==i.pageSize){var _=i.current,O=S(s.pageSize,i,s);_=_>O?O:_,"current"in s||(C.current=_,C.currentInputValue=_),C.pageSize=s.pageSize}return C}}]),h}(k.a.Component);b.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:d.a,style:{},itemRender:f,totalBoundaryShowSizeChanger:50};var v=b},"632R":function(an,rt,F){an.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(an,rt,F){"use strict";var re=F("wCXF"),z=F("n6Qo");F.d(rt,"b",function(){return z.a});var I=F("IBYe"),K=F("6eGT"),T=F("hW8S");F.d(rt,"a",function(){return T.a}),rt.c=re.b},"6eGT":function(an,rt,F){"use strict";function re(z){return null}rt.a=re},"6vEo":function(an,rt,F){"use strict";var re=F("2qtc"),z=F("kLXV"),I=F("cWXX"),K=F("/ezw"),T=F("14J3"),w=F("BMrR"),B=F("jCWc"),x=F("kPKH"),k=F("7Kak"),D=F("9yH6"),m=F("5NDa"),R=F("5rEg"),M=F("oBTY"),g=F("k1fw"),n=F("9og8"),p=F("y8nQ"),d=F("Vl3Y"),o=F("tJVT"),u=F("WmNS"),f=F.n(u),S=F("q1tI"),b=F.n(S),v=F("RotF"),P=F.n(v),E=F("XYT7"),h=F("Ty5D"),c=F("9kvl"),s=function(C){var _,O,N,U=C.classroomList,H=C.loading,G=C.user,L=C.dispatch,W=Object(h.i)(),Z=d.a.useForm(),oe=Object(o.a)(Z,1),ie=oe[0],be=Object(S.useState)(!0),Je=Object(o.a)(be,2),Ae=Je[0],ke=Je[1],Ze=Object(S.useState)([]),Xe=Object(o.a)(Ze,2),Pe=Xe[0],he=Xe[1],le=Object(S.useState)({page:1,limit:20,keyword:""}),Se=Object(o.a)(le,2),ve=Se[0],Ge=Se[1],it=function(){var ee=Object(n.a)(f.a.mark(function V(){var Q,fe;return f.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,L({type:"shixunHomeworks/getProjectList",payload:Object(g.a)(Object(g.a)({},W),ve)});case 2:fe=Fe.sent,fe.projects&&he([].concat(Object(M.a)(Pe),Object(M.a)(fe.projects))),((Q=fe.projects)===null||Q===void 0?void 0:Q.length)<20&&ke(!1);case 5:case"end":return Fe.stop()}},V)}));return function(){return ee.apply(this,arguments)}}();return Object(S.useEffect)(function(){U.actionTabs.key==="\u5173\u8054\u9879\u76EE"&&(it(),Pe=[],ve.page=1,ve.keyword="")},[U.actionTabs.key]),b.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)(f.a.mark(function ee(){var V,Q,fe,_e,Fe;return f.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:return Rt.next=2,ie.validateFields();case 2:return V=Object(g.a)({},ie.getFieldValue()),Q=U.actionTabs,fe=Q.selectArrs,_e=Q.cb,Rt.next=6,Object(E.O)(Object(g.a)(Object(g.a)({},V),{},{homeworkId:fe.homework_id}));case 6:Fe=Rt.sent,Fe.status===0&&(_e?_e():L({type:"classroomList/getClassroomCommonHomeworksList",payload:Object(g.a)({},U.actionTabs.params)}),L({type:"classroomList/setActionTabs",payload:{}}));case 8:case"end":return Rt.stop()}},ee)})),onCancel:function(){L({type:"classroomList/setActionTabs",payload:{}})}},b.a.createElement(K.a,{loading:H["shixunHomeworks/getProjectList"],active:!0},Pe==""?b.a.createElement("aside",null,b.a.createElement("div",{className:"tc font14 pt20"},"\u60A8\u5F53\u524D\u5C1A\u672A\u7BA1\u7406\u4EFB\u4F55\u9879\u76EE\uFF0C\u8BF7\u5148",b.a.createElement("a",{href:"".concat((_=G.navigationInfo)===null||_===void 0||((O=_.top)===null||O===void 0)?void 0:O.old_url,"/projects/deposit/new"),target:"_blank"},"\u521B\u5EFA\u9879\u76EE"),"\u518D\u5173\u8054")):b.a.createElement("aside",null,b.a.createElement("div",{className:" mb20"},b.a.createElement(R.a.Search,{onSearch:function(V){V===""?delete ve.keyword:ve.keyword=V,Pe=[],ke(!0),it()},placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0\u8FDB\u884C\u641C\u7D22",allowClear:!0,size:"large"})),b.a.createElement(d.a,{form:ie,initialValues:{}},b.a.createElement(d.a.Item,{name:"project_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE"}]},b.a.createElement(D.a.Group,null,b.a.createElement(P.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(V){ve.page++,it()},hasMore:Ae,useWindow:!1},(N=Pe)===null||N===void 0?void 0:N.map(function(ee,V){return b.a.createElement(w.a,{key:V},b.a.createElement(x.a,null,b.a.createElement(D.a,{value:ee.id},ee.name)))}))))))))};rt.a=Object(c.a)(function(i){var C=i.classroomList,_=i.user,O=i.loading;return{classroomList:C,user:_,loading:O.effects}})(s)},"7Cbv":function(an,rt,F){"use strict";var re=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),z=new Uint8Array(16);function I(){if(!re)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return re(z)}var K=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function T(M){return typeof M=="string"&&K.test(M)}for(var w=T,B=[],x=0;x<256;++x)B.push((x+256).toString(16).substr(1));function k(M){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(B[M[g+0]]+B[M[g+1]]+B[M[g+2]]+B[M[g+3]]+"-"+B[M[g+4]]+B[M[g+5]]+"-"+B[M[g+6]]+B[M[g+7]]+"-"+B[M[g+8]]+B[M[g+9]]+"-"+B[M[g+10]]+B[M[g+11]]+B[M[g+12]]+B[M[g+13]]+B[M[g+14]]+B[M[g+15]]).toLowerCase();if(!w(n))throw TypeError("Stringified UUID is invalid");return n}var D=k;function m(M,g,n){M=M||{};var p=M.random||(M.rng||I)();if(p[6]=p[6]&15|64,p[8]=p[8]&63|128,g){n=n||0;for(var d=0;d<16;++d)g[n+d]=p[d];return g}return D(p)}var R=rt.a=m},"7ahc":function(an,rt,F){"use strict";F.d(rt,"a",function(){return S});var re=F("k1fw"),z=F("0Owb"),I=F("+L6B"),K=F("2/Rp"),T=F("y8nQ"),w=F("Vl3Y"),B=F("tJVT"),x=F("OaEy"),k=F("2fM7"),D=F("q1tI"),m=F.n(D),R=F("VrN/"),M=F.n(R),g=F("p77/"),n=F.n(g),p=F("c5Ni"),d=F.n(p),o=k.a.Option,u={labelCol:{span:4},wrapperCol:{span:20}},f={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"]};rt.b=function(b){var v=b.callback,P=b.onCancel,E=Object(D.useState)("python"),h=Object(B.a)(E,2),c=h[0],s=h[1];function i(_){s(f[_][1])}function C(_){v(_)}return m.a.createElement(w.a,Object(z.a)({},u,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:C}),m.a.createElement(w.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},m.a.createElement(k.a,{onChange:i},Object.keys(f).map(function(_){return m.a.createElement(o,{key:_,value:_},f[_][0])}))),m.a.createElement(w.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},m.a.createElement(S,{mode:c})),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(K.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(K.a,{type:"ghost",onClick:P},"\u53D6\u6D88")))};function S(b){var v=b.value,P=b.onChange,E=b.mode,h=b.options,c=h===void 0?{}:h,s=Object(D.useRef)(),i=Object(D.useState)(),C=Object(B.a)(i,2),_=C[0],O=C[1];return Object(D.useEffect)(function(){if(_){function N(U){var H=U.getValue();P&&P(H)}return _.on("change",N),function(){_.off("change",N)}}},[_,P]),Object(D.useEffect)(function(){_&&_.setOption("mode",E)},[_,E]),Object(D.useEffect)(function(){_&&((v!==_.getValue()||v==="")&&setTimeout(function(){_.setValue(v||" ")},300))},[_,v]),Object(D.useEffect)(function(){if(s.current&&!_){var N=M.a.fromTextArea(s.current,Object(re.a)({mode:E,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},c));O(N)}},[s.current,_]),m.a.createElement("div",{className:"my-codemirror-container"},m.a.createElement("textarea",{ref:s}))}},"7ixt":function(an,rt,F){"use strict";F.d(rt,"a",function(){return I});var re={adjustX:1,adjustY:1},z=[0,0],I={left:{points:["cr","cl"],overflow:re,offset:[-4,0],targetOffset:z},right:{points:["cl","cr"],overflow:re,offset:[4,0],targetOffset:z},top:{points:["bc","tc"],overflow:re,offset:[0,-4],targetOffset:z},bottom:{points:["tc","bc"],overflow:re,offset:[0,4],targetOffset:z},topLeft:{points:["bl","tl"],overflow:re,offset:[0,-4],targetOffset:z},leftTop:{points:["tr","tl"],overflow:re,offset:[-4,0],targetOffset:z},topRight:{points:["br","tr"],overflow:re,offset:[0,-4],targetOffset:z},rightTop:{points:["tl","tr"],overflow:re,offset:[4,0],targetOffset:z},bottomRight:{points:["tr","br"],overflow:re,offset:[0,4],targetOffset:z},rightBottom:{points:["bl","br"],overflow:re,offset:[4,0],targetOffset:z},bottomLeft:{points:["tl","bl"],overflow:re,offset:[0,4],targetOffset:z},leftBottom:{points:["br","bl"],overflow:re,offset:[-4,0],targetOffset:z}},K=I},"815F":function(an,rt,F){"use strict";F.d(rt,"e",function(){return B}),F.d(rt,"c",function(){return k}),F.d(rt,"d",function(){return D}),F.d(rt,"a",function(){return R}),F.d(rt,"f",function(){return M}),F.d(rt,"b",function(){return g});var re=F("KQm4"),z=F("VTBJ"),I=F("Ff2n"),K=F("Zm9Q"),T=F("Kwbf"),w=F("OZM5");function B(n,p){return n!=null?n:p}function x(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=new Map;function d(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(o||[]).forEach(function(f){var S=f.key,b=f.children;Object(T.a)(S!=null,"Tree node must have a certain key: [".concat(u).concat(S,"]"));var v=String(S);Object(T.a)(!p.has(v)||S===null||S===void 0,"Same 'key' exist in the Tree: ".concat(v)),p.set(v,!0),d(b,"".concat(u).concat(v," > "))})}d(n)}function k(n){function p(d){var o=Object(K.a)(d);return o.map(function(u){if(!Object(w.i)(u))return Object(T.a)(!u,"Tree/TreeNode can only accept TreeNode as children."),null;var f=u.key,S=u.props,b=S.children,v=Object(I.a)(S,["children"]),P=Object(z.a)({key:f},v),E=p(b);return E.length&&(P.children=E),P}).filter(function(u){return u})}return p(n)}function D(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=new Set(p===!0?[]:p),o=[];function u(f){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return f.map(function(b,v){var P=Object(w.h)(S?S.pos:"0",v),E=B(b.key,P),h=Object(z.a)(Object(z.a)({},b),{},{parent:S,pos:P,children:null,data:b,isStart:[].concat(Object(re.a)(S?S.isStart:[]),[v===0]),isEnd:[].concat(Object(re.a)(S?S.isEnd:[]),[v===f.length-1])});return o.push(h),p===!0||d.has(E)?h.children=u(b.children||[],h):h.children=[],h})}return u(n),o}function m(n,p,d){var o;d?typeof d=="string"?o=function(S){return S[d]}:typeof d=="function"&&(o=function(S){return d(S)}):o=function(S,b){return B(S.key,b)};function u(f,S,b){var v=f?f.children:n,P=f?Object(w.h)(b.pos,S):"0";if(f){var E=o(f,P),h={node:f,index:S,pos:P,key:E,parentPos:b.node?b.pos:null,level:b.level+1};p(h)}v&&v.forEach(function(c,s){u(c,s,{node:f,pos:P,level:b?b.level+1:-1})})}u(null)}function R(n){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=p.initWrapper,o=p.processEntity,u=p.onProcessFinished,f=arguments.length>2?arguments[2]:void 0,S={},b={},v={posEntities:S,keyEntities:b};return d&&(v=d(v)||v),m(n,function(P){var E=P.node,h=P.index,c=P.pos,s=P.key,i=P.parentPos,C=P.level,_={node:E,index:h,key:s,pos:c,level:C},O=B(s,c);S[c]=_,b[O]=_,_.parent=S[i],_.parent&&(_.parent.children=_.parent.children||[],_.parent.children.push(_)),o&&o(_,v)},f),u&&u(v),v}function M(n,p){var d=p.expandedKeys,o=p.selectedKeys,u=p.loadedKeys,f=p.loadingKeys,S=p.checkedKeys,b=p.halfCheckedKeys,v=p.dragOverNodeKey,P=p.dropPosition,E=p.keyEntities,h=E[n],c={eventKey:n,expanded:d.indexOf(n)!==-1,selected:o.indexOf(n)!==-1,loaded:u.indexOf(n)!==-1,loading:f.indexOf(n)!==-1,checked:S.indexOf(n)!==-1,halfChecked:b.indexOf(n)!==-1,pos:String(h?h.pos:""),dragOver:v===n&&P===0,dragOverGapTop:v===n&&P===-1,dragOverGapBottom:v===n&&P===1};return c}function g(n){var p=n.data,d=n.expanded,o=n.selected,u=n.checked,f=n.loaded,S=n.loading,b=n.halfChecked,v=n.dragOver,P=n.dragOverGapTop,E=n.dragOverGapBottom,h=n.pos,c=n.active,s=Object(z.a)(Object(z.a)({},p),{},{expanded:d,selected:o,checked:u,loaded:f,loading:S,halfChecked:b,dragOver:v,dragOverGapTop:P,dragOverGapBottom:E,pos:h,active:c});return"props"in s||Object.defineProperty(s,"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`."),n}}),s}},"8B0h":function(an,rt,F){an.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(an,rt,F){(function(re){re(F("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 z=0;z-1&&K.substring(B+1,K.length);if(x)return re.findModeByExtension(x)},re.findModeByName=function(K){K=K.toLowerCase();for(var T=0;T0?M.a.createElement("span",null,"(\u5DF2\u62C6\u5206",ke,"\u4E2Azip\u5305)"):"")}),Je===(ie==null?void 0:ie.length)-1?L(be,ke>0?ke+1:0):Ae>900*1024*1024?(ke++,Ae=0,G(ke,function(){Je++,Ze()})):(Je++,Ze());case 3:case"end":return It.stop()}},Rt)})),2600)});case 1:case"end":return it.stop()}},Se)})),Xe.apply(this,arguments)},Ze=function(){return Xe.apply(this,arguments)},ie=oe||b,O(!0),Je=0,Ae=0,ke=0,be=B.a.info({width:460,title:M.a.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u9644\u4EF6,",M.a.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:M.a.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",M.a.createElement("span",{className:"c-blue"},Je+1),"/",ie==null?void 0:ie.length),maskClosable:!1,okText:"\u6211\u77E5\u9053\u4E86",onOk:function(){}}),Ze();case 9:case"end":return he.stop()}},Z)}));return function(oe){return W.apply(this,arguments)}}(),H=function(Z,oe,ie,be){var Je=oe,Ae=new window.XMLHttpRequest;return Ae.withCredentials=!0,Ae.addEventListener("load",function(ke){ie(ke,Ae)},!1),Ae.addEventListener("error",function(ke){be&&be(ke)},!1),Ae.responseType="blob",Ae.open("GET",Je),Ae.send(null),Ae},G=function(Z,oe){N.current.generateAsync({type:"blob"}).then(function(ie){var be=document.createElement("a");be.href=window.URL.createObjectURL(ie),be.download=v+"-".concat(Z)+".zip",document.body.appendChild(be);var Je=document.createEvent("MouseEvents");Je.initEvent("click",!1,!1),be.dispatchEvent(Je),document.body.removeChild(be),N.current=new n.a,oe()})},L=function(Z,oe){N.current.generateAsync({type:"blob"}).then(function(ie){var be=document.createElement("a");be.href=window.URL.createObjectURL(ie),oe>0?be.download=v+"-".concat(oe)+".zip":be.download=v+".zip",document.body.appendChild(be);var Je=document.createEvent("MouseEvents");Je.initEvent("click",!1,!1),be.dispatchEvent(Je),document.body.removeChild(be),Z.destroy(),O(!1),s(),N.current=new n.a})};return h?M.a.createElement(M.a.Fragment,null):M.a.createElement(z.a,Object(I.a)({},E,{onClick:function(){return U()},loading:_}),"\u4E0B\u8F7D")};rt.a=Object(R.forwardRef)(d)},"8hTe":function(an,rt,F){an.exports={button:"button___1wy9m"}},"9Bee":function(an,rt,F){"use strict";var re=F("DYRE"),z=F("zeV3"),I=F("+L6B"),K=F("2/Rp"),T=F("k1fw"),w=F("9og8"),B=F("tJVT"),x=F("WmNS"),k=F.n(x),D=F("q1tI"),m=F.n(D),R=F("vg9a"),M=F("DlQD"),g=F.n(M),n=F("rUJ1");function p(J,y){var A=J.match(/^(\s+)(?:```)/);if(A===null)return y;var X=A[1];return y.split(` +(window.webpackJsonp=window.webpackJsonp||[]).push([[78,3,5,6,7,8,10],{"+NIl":function(an,rt,F){(function(re){re(F("VrN/"))})(function(re){"use strict";re.defineMode("stex",function(z,I){"use strict";function K(g,n){g.cmdState.push(n)}function T(g){return g.cmdState.length>0?g.cmdState[g.cmdState.length-1]:null}function w(g){var n=g.cmdState.pop();n&&n.closeBracket()}function B(g){for(var n=g.cmdState,p=n.length-1;p>=0;p--){var d=n[p];if(d.name=="DEFAULT")continue;return d}return{styleIdentifier:function(){return null}}}function x(g,n,p){return function(){this.name=g,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 k={};k.importmodule=x("importmodule","tag",["string","builtin"]),k.documentclass=x("documentclass","tag",["","atom"]),k.usepackage=x("usepackage","tag",["atom"]),k.begin=x("begin","tag",["atom"]),k.end=x("end","tag",["atom"]),k.label=x("label","tag",["atom"]),k.ref=x("ref","tag",["atom"]),k.eqref=x("eqref","tag",["atom"]),k.cite=x("cite","tag",["atom"]),k.bibitem=x("bibitem","tag",["atom"]),k.Bibitem=x("Bibitem","tag",["atom"]),k.RBibitem=x("RBibitem","tag",["atom"]),k.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function D(g,n){g.f=n}function m(g,n){var p;if(g.match(/^\\[a-zA-Z@]+/)){var d=g.current().slice(1);return p=k.hasOwnProperty(d)?k[d]:k.DEFAULT,p=new p,K(n,p),D(n,M),p.style}if(g.match(/^\\[$&%#{}_]/))return"tag";if(g.match(/^\\[,;!\/\\]/))return"tag";if(g.match("\\["))return D(n,function(u,h){return R(u,h,"\\]")}),"keyword";if(g.match("\\("))return D(n,function(u,h){return R(u,h,"\\)")}),"keyword";if(g.match("$$"))return D(n,function(u,h){return R(u,h,"$$")}),"keyword";if(g.match("$"))return D(n,function(u,h){return R(u,h,"$")}),"keyword";var o=g.next();if(o=="%")return g.skipToEnd(),"comment";if(o=="}"||o=="]"){if(p=T(n),p)p.closeBracket(o),D(n,M);else return"error";return"bracket"}else return o=="{"||o=="["?(p=k.DEFAULT,p=new p,K(n,p),"bracket"):/\d/.test(o)?(g.eatWhile(/[\w.%]/),"atom"):(g.eatWhile(/[\w\-_]/),p=B(n),p.name=="begin"&&(p.argument=g.current()),p.styleIdentifier())}function R(g,n,p){if(g.eatSpace())return null;if(p&&g.match(p))return D(n,m),"keyword";if(g.match(/^\\[a-zA-Z@]+/))return"tag";if(g.match(/^[a-zA-Z]+/))return"variable-2";if(g.match(/^\\[$&%#{}_]/))return"tag";if(g.match(/^\\[,;!\/]/))return"tag";if(g.match(/^[\^_&]/))return"tag";if(g.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(g.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var d=g.next();return d=="{"||d=="}"||d=="["||d=="]"||d=="("||d==")"?"bracket":d=="%"?(g.skipToEnd(),"comment"):"error"}function M(g,n){var p=g.peek(),d;return p=="{"||p=="["?(d=T(n),d.openBracket(p),g.eat(p),D(n,m),"bracket"):/[ \t\r]/.test(p)?(g.eat(p),null):(D(n,m),w(n),m(g,n))}return{startState:function(){var g=I.inMathMode?function(n,p){return R(n,p)}:m;return{cmdState:[],f:g}},copyState:function(g){return{cmdState:g.cmdState.slice(),f:g.f}},token:function(g,n){return n.f(g,n)},blankLine:function(g){g.f=m,g.cmdState.length=0},lineComment:"%"}}),re.defineMIME("text/x-stex","stex"),re.defineMIME("text/x-latex","stex")})},"19Vz":function(an,rt,F){(function(re){re(F("VrN/"))})(function(re){re.defineOption("placeholder","",function(x,k,D){var m=D&&D!=re.Init;if(k&&!m)x.on("blur",T),x.on("change",w),x.on("swapDoc",w),re.on(x.getInputField(),"compositionupdate",x.state.placeholderCompose=function(){K(x)}),w(x);else if(!k&&m){x.off("blur",T),x.off("change",w),x.off("swapDoc",w),re.off(x.getInputField(),"compositionupdate",x.state.placeholderCompose),z(x);var R=x.getWrapperElement();R.className=R.className.replace(" CodeMirror-empty","")}k&&!x.hasFocus()&&T(x)});function z(x){x.state.placeholder&&(x.state.placeholder.parentNode.removeChild(x.state.placeholder),x.state.placeholder=null)}function I(x){z(x);var k=x.state.placeholder=document.createElement("pre");k.style.cssText="height: 0; overflow: visible",k.style.direction=x.getOption("direction"),k.className="CodeMirror-placeholder CodeMirror-line-like";var D=x.getOption("placeholder");typeof D=="string"&&(D=document.createTextNode(D)),k.appendChild(D),x.display.lineSpace.insertBefore(k,x.display.lineSpace.firstChild)}function K(x){setTimeout(function(){var k=!1,D=x.getInputField();D.nodeName=="TEXTAREA"?k=!D.value:x.lineCount()==1&&(k=!/[^\u200b]/.test(D.querySelector(".CodeMirror-line").textContent)),k?I(x):z(x)},20)}function T(x){B(x)&&I(x)}function w(x){var k=x.getWrapperElement(),D=B(x);k.className=k.className.replace(" CodeMirror-empty","")+(D?" CodeMirror-empty":""),D?I(x):z(x)}function B(x){return x.lineCount()===1&&x.getLine(0)===""}})},"1eCo":function(an,rt,F){(function(re){re(F("VrN/"))})(function(re){"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},I={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};re.defineMode("xml",function(K,T){var w=K.indentUnit,B={},x=T.htmlMode?z:I;for(var k in x)B[k]=x[k];for(var k in T)B[k]=T[k];var D,m;function R(i,C){function _(U){return C.tokenize=U,U(i,C)}var O=i.next();if(O=="<")return i.eat("!")?i.eat("[")?i.match("CDATA[")?_(n("atom","]]>")):null:i.match("--")?_(n("comment","-->")):i.match("DOCTYPE",!0,!0)?(i.eatWhile(/[\w\._\-]/),_(p(1))):null:i.eat("?")?(i.eatWhile(/[\w\._\-]/),C.tokenize=n("meta","?>"),"meta"):(D=i.eat("/")?"closeTag":"openTag",C.tokenize=M,"tag bracket");if(O=="&"){var N;return i.eat("#")?i.eat("x")?N=i.eatWhile(/[a-fA-F\d]/)&&i.eat(";"):N=i.eatWhile(/[\d]/)&&i.eat(";"):N=i.eatWhile(/[\w\.\-:]/)&&i.eat(";"),N?"atom":"error"}else return i.eatWhile(/[^&<]/),null}R.isInText=!0;function M(i,C){var _=i.next();if(_==">"||_=="/"&&i.eat(">"))return C.tokenize=R,D=_==">"?"endTag":"selfcloseTag","tag bracket";if(_=="=")return D="equals",null;if(_=="<"){C.tokenize=R,C.state=h,C.tagName=C.tagStart=null;var O=C.tokenize(i,C);return O?O+" tag error":"tag error"}else return/[\'\"]/.test(_)?(C.tokenize=g(_),C.stringStartCol=i.column(),C.tokenize(i,C)):(i.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function g(i){var C=function(_,O){for(;!_.eol();)if(_.next()==i){O.tokenize=M;break}return"string"};return C.isInAttribute=!0,C}function n(i,C){return function(_,O){for(;!_.eol();){if(_.match(C)){O.tokenize=R;break}_.next()}return i}}function p(i){return function(C,_){for(var O;(O=C.next())!=null;){if(O=="<")return _.tokenize=p(i+1),_.tokenize(C,_);if(O==">")if(i==1){_.tokenize=R;break}else return _.tokenize=p(i-1),_.tokenize(C,_)}return"meta"}}function d(i,C,_){this.prev=i.context,this.tagName=C,this.indent=i.indented,this.startOfLine=_,(B.doNotIndent.hasOwnProperty(C)||i.context&&i.context.noIndent)&&(this.noIndent=!0)}function o(i){i.context&&(i.context=i.context.prev)}function u(i,C){for(var _;;){if(!i.context)return;if(_=i.context.tagName,!B.contextGrabbers.hasOwnProperty(_)||!B.contextGrabbers[_].hasOwnProperty(C))return;o(i)}}function h(i,C,_){return i=="openTag"?(_.tagStart=C.column(),S):i=="closeTag"?b:h}function S(i,C,_){return i=="word"?(_.tagName=C.current(),m="tag",E):B.allowMissingTagName&&i=="endTag"?(m="tag bracket",E(i,C,_)):(m="error",S)}function b(i,C,_){if(i=="word"){var O=C.current();return _.context&&_.context.tagName!=O&&B.implicitlyClosed.hasOwnProperty(_.context.tagName)&&o(_),_.context&&_.context.tagName==O||B.matchClosing===!1?(m="tag",v):(m="tag error",P)}else return B.allowMissingTagName&&i=="endTag"?(m="tag bracket",v(i,C,_)):(m="error",P)}function v(i,C,_){return i!="endTag"?(m="error",v):(o(_),h)}function P(i,C,_){return m="error",v(i,C,_)}function E(i,C,_){if(i=="word")return m="attribute",f;if(i=="endTag"||i=="selfcloseTag"){var O=_.tagName,N=_.tagStart;return _.tagName=_.tagStart=null,i=="selfcloseTag"||B.autoSelfClosers.hasOwnProperty(O)?u(_,O):(u(_,O),_.context=new d(_,O,N==_.indented)),h}return m="error",E}function f(i,C,_){return i=="equals"?c:(B.allowMissing||(m="error"),E(i,C,_))}function c(i,C,_){return i=="string"?s:i=="word"&&B.allowUnquoted?(m="string",E):(m="error",E(i,C,_))}function s(i,C,_){return i=="string"?s:E(i,C,_)}return{startState:function(i){var C={tokenize:R,state:h,indented:i||0,tagName:null,tagStart:null,context:null};return i!=null&&(C.baseIndent=i),C},token:function(i,C){if(!C.tagName&&i.sol()&&(C.indented=i.indentation()),i.eatSpace())return null;D=null;var _=C.tokenize(i,C);return(_||D)&&_!="comment"&&(m=null,C.state=C.state(D||_,i,C),m&&(_=m=="error"?_+" error":m)),_},indent:function(i,C,_){var O=i.context;if(i.tokenize.isInAttribute)return i.tagStart==i.indented?i.stringStartCol+1:i.indented+w;if(O&&O.noIndent)return re.Pass;if(i.tokenize!=M&&i.tokenize!=R)return _?_.match(/^(\s*)/)[0].length:0;if(i.tagName)return B.multilineTagIndentPastTag!==!1?i.tagStart+i.tagName.length+2:i.tagStart+w*(B.multilineTagIndentFactor||1);if(B.alignCDATA&&/$/,blockCommentStart:"",configuration:B.htmlMode?"html":"xml",helperType:B.htmlMode?"html":"xml",skipAttribute:function(i){i.state==c&&(i.state=E)},xmlCurrentTag:function(i){return i.tagName?{name:i.tagName,close:i.type=="closeTag"}:null},xmlCurrentContext:function(i){for(var C=[],_=i.context;_;_=_.prev)_.tagName&&C.push(_.tagName);return C.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(an,rt,F){"use strict";F.d(rt,"d",function(){return Rt}),F.d(rt,"b",function(){return nt}),F.d(rt,"c",function(){return St}),F.d(rt,"a",function(){return vn});var re=F("VTBJ"),z=F("1OyB"),I=F("vuIU"),K=F("JX7q"),T=F("Ji7U"),w=F("LK+K"),B=F("q1tI"),x=F("I8Z2"),k=F("BGR+"),D=F("wx14"),m=F("rePB"),R=F("4IlW"),M=F("2GS6"),g=F("Gytx"),n=F.n(g),p=F("TSYQ"),d=F.n(p),o=F("U8pU"),u=F("ODXe"),h=/iPhone/i,S=/iPod/i,b=/iPad/i,v=/\bAndroid(?:.+)Mobile\b/i,P=/Android/i,E=/\bAndroid(?:.+)SD4930UR\b/i,f=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,c=/Windows Phone/i,s=/\bWindows(?:.+)ARM\b/i,i=/BlackBerry/i,C=/BB10/i,_=/Opera Mini/i,O=/\b(CriOS|Chrome)(?:.+)Mobile/i,N=/Mobile(?:.+)Firefox\b/i;function U(Vt,Et){return Vt.test(Et)}function H(Vt){var Et=Vt||(typeof navigator!="undefined"?navigator.userAgent:""),_t=Et.split("[FBAN");if(typeof _t[1]!="undefined"){var ct=_t,ge=Object(u.a)(ct,1);Et=ge[0]}if(_t=Et.split("Twitter"),typeof _t[1]!="undefined"){var Me=_t,wt=Object(u.a)(Me,1);Et=wt[0]}var ht={apple:{phone:U(h,Et)&&!U(c,Et),ipod:U(S,Et),tablet:!U(h,Et)&&U(b,Et)&&!U(c,Et),device:(U(h,Et)||U(S,Et)||U(b,Et))&&!U(c,Et)},amazon:{phone:U(E,Et),tablet:!U(E,Et)&&U(f,Et),device:U(E,Et)||U(f,Et)},android:{phone:!U(c,Et)&&U(E,Et)||!U(c,Et)&&U(v,Et),tablet:!U(c,Et)&&!U(E,Et)&&!U(v,Et)&&(U(f,Et)||U(P,Et)),device:!U(c,Et)&&(U(E,Et)||U(f,Et)||U(v,Et)||U(P,Et))||U(/\bokhttp\b/i,Et)},windows:{phone:U(c,Et),tablet:U(s,Et),device:U(c,Et)||U(s,Et)},other:{blackberry:U(i,Et),blackberry10:U(C,Et),opera:U(_,Et),firefox:U(N,Et),chrome:U(O,Et),device:U(i,Et)||U(C,Et)||U(_,Et)||U(N,Et)||U(O,Et)},any:null,phone:null,tablet:null};return ht.any=ht.apple.device||ht.android.device||ht.windows.device||ht.other.device,ht.phone=ht.apple.phone||ht.android.phone||ht.windows.phone,ht.tablet=ht.apple.tablet||ht.android.tablet||ht.windows.tablet,ht}var G=Object(re.a)(Object(re.a)({},H()),{},{isMobile:H}),L=G;function W(){}function Z(Vt,Et,_t){var ct=Et||"";return Vt.key||"".concat(ct,"item_").concat(_t)}function oe(Vt){return"".concat(Vt,"-menu-")}function ie(Vt,Et){var _t=-1;B.Children.forEach(Vt,function(ct){_t+=1,ct&&ct.type&&ct.type.isMenuItemGroup?B.Children.forEach(ct.props.children,function(ge){_t+=1,Et(ge,_t)}):Et(ct,_t)})}function be(Vt,Et,_t){if(!Vt||_t.find)return;B.Children.forEach(Vt,function(ct){if(ct){var ge=ct.type;if(!ge||!(ge.isSubMenu||ge.isMenuItem||ge.isMenuItemGroup))return;Et.indexOf(ct.key)!==-1?_t.find=!0:ct.props.children&&be(ct.props.children,Et,_t)}})}var Je=["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"],Ae=function(Et){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ct=Et&&typeof Et.getBoundingClientRect=="function"&&Et.getBoundingClientRect().width;if(ct){if(_t){var ge=getComputedStyle(Et),Me=ge.marginLeft,wt=ge.marginRight;ct+=+Me.replace("px","")+ +wt.replace("px","")}ct=+ct.toFixed(6)}return ct||0},ke=function(Et,_t,ct){Et&&Object(o.a)(Et.style)==="object"&&(Et.style[_t]=ct)},Ze=function(){return L.any},Xe=F("KQm4"),Pe=F("Ff2n"),fe=F("i8i4"),le=F("bdgK"),Se=F("uciX"),ve=F("8XRh"),Ge={adjustX:1,adjustY:1},it={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]}},ee={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=it,Q=0,he={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},_e=function(Et,_t,ct){var ge=oe(_t),Me=Et.getState();Et.setState({defaultActiveFirst:Object(re.a)(Object(re.a)({},Me.defaultActiveFirst),{},Object(m.a)({},ge,ct))})},Fe=function(Vt){Object(T.a)(_t,Vt);var Et=Object(w.a)(_t);function _t(ct){var ge;Object(z.a)(this,_t),ge=Et.call(this,ct),ge.onDestroy=function(ot){ge.props.onDestroy(ot)},ge.onKeyDown=function(ot){var Wt=ot.keyCode,dn=ge.menuInstance,Bn=ge.props,kn=Bn.isOpen,Cr=Bn.store;if(Wt===R.a.ENTER)return ge.onTitleClick(ot),_e(Cr,ge.props.eventKey,!0),!0;if(Wt===R.a.RIGHT)return kn?dn.onKeyDown(ot):(ge.triggerOpenChange(!0),_e(Cr,ge.props.eventKey,!0)),!0;if(Wt===R.a.LEFT){var Ar;if(kn)Ar=dn.onKeyDown(ot);else return;return Ar||(ge.triggerOpenChange(!1),Ar=!0),Ar}return kn&&(Wt===R.a.UP||Wt===R.a.DOWN)?dn.onKeyDown(ot):void 0},ge.onOpenChange=function(ot){ge.props.onOpenChange(ot)},ge.onPopupVisibleChange=function(ot){ge.triggerOpenChange(ot,ot?"mouseenter":"mouseleave")},ge.onMouseEnter=function(ot){var Wt=ge.props,dn=Wt.eventKey,Bn=Wt.onMouseEnter,kn=Wt.store;_e(kn,ge.props.eventKey,!1),Bn({key:dn,domEvent:ot})},ge.onMouseLeave=function(ot){var Wt=ge.props,dn=Wt.parentMenu,Bn=Wt.eventKey,kn=Wt.onMouseLeave;dn.subMenuInstance=Object(K.a)(ge),kn({key:Bn,domEvent:ot})},ge.onTitleMouseEnter=function(ot){var Wt=ge.props,dn=Wt.eventKey,Bn=Wt.onItemHover,kn=Wt.onTitleMouseEnter;Bn({key:dn,hover:!0}),kn({key:dn,domEvent:ot})},ge.onTitleMouseLeave=function(ot){var Wt=ge.props,dn=Wt.parentMenu,Bn=Wt.eventKey,kn=Wt.onItemHover,Cr=Wt.onTitleMouseLeave;dn.subMenuInstance=Object(K.a)(ge),kn({key:Bn,hover:!1}),Cr({key:Bn,domEvent:ot})},ge.onTitleClick=function(ot){var Wt=Object(K.a)(ge),dn=Wt.props;if(dn.onTitleClick({key:dn.eventKey,domEvent:ot}),dn.triggerSubMenuAction==="hover")return;ge.triggerOpenChange(!dn.isOpen,"click"),_e(dn.store,ge.props.eventKey,!1)},ge.onSubMenuClick=function(ot){typeof ge.props.onClick=="function"&&ge.props.onClick(ge.addKeyPath(ot))},ge.onSelect=function(ot){ge.props.onSelect(ot)},ge.onDeselect=function(ot){ge.props.onDeselect(ot)},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(ot){ge.menuInstance=ot},ge.addKeyPath=function(ot){return Object(re.a)(Object(re.a)({},ot),{},{keyPath:(ot.keyPath||[]).concat(ge.props.eventKey)})},ge.triggerOpenChange=function(ot,Wt){var dn=ge.props.eventKey,Bn=function(){ge.onOpenChange({key:dn,item:Object(K.a)(ge),trigger:Wt,open:ot})};Wt==="mouseenter"?ge.mouseenterTimeout=setTimeout(function(){Bn()},0):Bn()},ge.isChildrenSelected=function(){var ot={find:!1};return be(ge.props.children,ge.props.selectedKeys,ot),ot.find},ge.isOpen=function(){return ge.props.openKeys.indexOf(ge.props.eventKey)!==-1},ge.adjustWidth=function(){if(!ge.subMenuTitle||!ge.menuInstance)return;var ot=fe.findDOMNode(ge.menuInstance);if(ot.offsetWidth>=ge.subMenuTitle.offsetWidth)return;ot.style.minWidth="".concat(ge.subMenuTitle.offsetWidth,"px")},ge.saveSubMenuTitle=function(ot){ge.subMenuTitle=ot},ge.getBaseProps=function(){var ot=Object(K.a)(ge),Wt=ot.props;return{mode:Wt.mode==="horizontal"?"vertical":Wt.mode,visible:ge.props.isOpen,level:Wt.level+1,inlineIndent:Wt.inlineIndent,focusable:!1,onClick:ge.onSubMenuClick,onSelect:ge.onSelect,onDeselect:ge.onDeselect,onDestroy:ge.onDestroy,selectedKeys:Wt.selectedKeys,eventKey:"".concat(Wt.eventKey,"-menu-"),openKeys:Wt.openKeys,motion:Wt.motion,onOpenChange:ge.onOpenChange,subMenuOpenDelay:Wt.subMenuOpenDelay,parentMenu:Object(K.a)(ge),subMenuCloseDelay:Wt.subMenuCloseDelay,forceSubMenuRender:Wt.forceSubMenuRender,triggerSubMenuAction:Wt.triggerSubMenuAction,builtinPlacements:Wt.builtinPlacements,defaultActiveFirst:Wt.store.getState().defaultActiveFirst[oe(Wt.eventKey)],multiple:Wt.multiple,prefixCls:Wt.rootPrefixCls,id:ge.internalMenuId,manualRef:ge.saveMenuInstance,itemIcon:Wt.itemIcon,expandIcon:Wt.expandIcon,direction:Wt.direction}},ge.getMotion=function(ot,Wt){var dn=Object(K.a)(ge),Bn=dn.haveRendered,kn=ge.props,Cr=kn.motion,Ar=kn.rootPrefixCls,fr=Object(re.a)(Object(re.a)({},Cr),{},{leavedClassName:"".concat(Ar,"-hidden"),removeOnLeave:!1,motionAppear:Bn||!Wt||ot!=="inline"});return fr};var Me=ct.store,wt=ct.eventKey,ht=Me.getState(),qt=ht.defaultActiveFirst;ge.isRootMenu=!1;var on=!1;return qt&&(on=qt[wt]),_e(Me,wt,on),ge}return Object(I.a)(_t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ge=this,Me=this.props,wt=Me.mode,ht=Me.parentMenu,qt=Me.manualRef;if(qt&&qt(this),wt!=="horizontal"||!ht.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return ge.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var ge=this.props,Me=ge.onDestroy,wt=ge.eventKey;Me&&Me(wt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(ge){var Me=this,wt=this.getBaseProps(),ht=this.getMotion(wt.mode,wt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||wt.visible||wt.forceSubMenuRender,!this.haveOpened)return B.createElement("div",null);var qt=wt.direction;return B.createElement(ve.default,Object.assign({visible:wt.visible},ht),function(on){var ot=on.className,Wt=on.style,dn=d()("".concat(wt.prefixCls,"-sub"),ot,Object(m.a)({},"".concat(wt.prefixCls,"-rtl"),qt==="rtl"));return B.createElement(je,Object.assign({},wt,{id:Me.internalMenuId,className:dn,style:Wt}),ge)})}},{key:"render",value:function(){var ge,Me=Object(re.a)({},this.props),wt=Me.isOpen,ht=this.getPrefixCls(),qt=Me.mode==="inline",on=d()(ht,"".concat(ht,"-").concat(Me.mode),(ge={},Object(m.a)(ge,Me.className,!!Me.className),Object(m.a)(ge,this.getOpenClassName(),wt),Object(m.a)(ge,this.getActiveClassName(),Me.active||wt&&!qt),Object(m.a)(ge,this.getDisabledClassName(),Me.disabled),Object(m.a)(ge,this.getSelectedClassName(),this.isChildrenSelected()),ge));this.internalMenuId||(Me.eventKey?this.internalMenuId="".concat(Me.eventKey,"$Menu"):(Q+=1,this.internalMenuId="$__$".concat(Q,"$Menu")));var ot={},Wt={},dn={};Me.disabled||(ot={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Wt={onClick:this.onTitleClick},dn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Bn={},kn=Me.direction;qt&&(kn==="rtl"?Bn.paddingRight=Me.inlineIndent*Me.level:Bn.paddingLeft=Me.inlineIndent*Me.level);var Cr={};this.props.isOpen&&(Cr={"aria-owns":this.internalMenuId});var Ar=null;Me.mode!=="horizontal"&&(Ar=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Ar=B.createElement(this.props.expandIcon,Object(re.a)({},this.props))));var fr=B.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:Bn,className:"".concat(ht,"-title"),role:"button"},dn,Wt,{"aria-expanded":wt},Cr,{"aria-haspopup":"true",title:typeof Me.title=="string"?Me.title:void 0}),Me.title,Ar||B.createElement("i",{className:"".concat(ht,"-arrow")})),On=this.renderChildren(Me.children),Fr=Me.parentMenu.isRootMenu?Me.parentMenu.props.getPopupContainer:function(jr){return jr.parentNode},na=he[Me.mode],Pr=Me.popupOffset?{offset:Me.popupOffset}:{},hr=Me.mode==="inline"?"":Me.popupClassName;hr+=kn==="rtl"?" ".concat(ht,"-rtl"):"";var Br=Me.disabled,qr=Me.triggerSubMenuAction,fa=Me.subMenuOpenDelay,Qt=Me.forceSubMenuRender,qn=Me.subMenuCloseDelay,oa=Me.builtinPlacements;Je.forEach(function(jr){return delete Me[jr]}),delete Me.onClick;var _a=kn==="rtl"?Object.assign({},ee,oa):Object.assign({},it,oa);return delete Me.direction,B.createElement("li",Object.assign({},Me,ot,{className:on,role:"menuitem"}),qt&&fr,qt&&On,!qt&&B.createElement(Se.a,{prefixCls:ht,popupClassName:d()("".concat(ht,"-popup"),hr),getPopupContainer:Fr,builtinPlacements:_a,popupPlacement:na,popupVisible:wt,popupAlign:Pr,popup:On,action:Br?[]:[qr],mouseEnterDelay:fa,mouseLeaveDelay:qn,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Qt},fr))}}]),_t}(B.Component);Fe.defaultProps={onMouseEnter:W,onMouseLeave:W,onTitleMouseEnter:W,onTitleMouseLeave:W,onTitleClick:W,manualRef:W,mode:"vertical",title:""};var He=Object(x.b)(function(Vt,Et){var _t=Vt.openKeys,ct=Vt.activeKey,ge=Vt.selectedKeys,Me=Et.eventKey,wt=Et.subMenuKey;return{isOpen:_t.indexOf(Me)>-1,active:ct[wt]===Me,selectedKeys:ge}})(Fe);He.isSubMenu=!0;var Rt=He,Ht="menuitem-overflowed",It=.5,Bt=function(Vt){Object(T.a)(_t,Vt);var Et=Object(w.a)(_t);function _t(){var ct;return Object(z.a)(this,_t),ct=Et.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,Me=fe.findDOMNode(Object(K.a)(ct));return Me?[].slice.call(Me.children).filter(function(wt){return wt.className.split(" ").indexOf("".concat(ge,"-overflowed-submenu"))<0}):[]},ct.getOverflowedSubMenuItem=function(ge,Me,wt){var ht=ct.props,qt=ht.overflowedIndicator,on=ht.level,ot=ht.mode,Wt=ht.prefixCls,dn=ht.theme;if(on!==1||ot!=="horizontal")return null;var Bn=ct.props.children[0],kn=Bn.props,Cr=kn.children,Ar=kn.title,fr=kn.style,On=Object(Pe.a)(kn,["children","title","style"]),Fr=Object(re.a)({},fr),na="".concat(ge,"-overflowed-indicator"),Pr="".concat(ge,"-overflowed-indicator");Me.length===0&&wt!==!0?Fr=Object(re.a)(Object(re.a)({},Fr),{},{display:"none"}):wt&&(Fr=Object(re.a)(Object(re.a)({},Fr),{},{visibility:"hidden",position:"absolute"}),na="".concat(na,"-placeholder"),Pr="".concat(Pr,"-placeholder"));var hr=dn?"".concat(Wt,"-").concat(dn):"",Br={};return Je.forEach(function(qr){On[qr]!==void 0&&(Br[qr]=On[qr])}),B.createElement(Rt,Object.assign({title:qt,className:"".concat(Wt,"-overflowed-submenu"),popupClassName:hr},Br,{key:na,eventKey:Pr,disabled:!1,style:Fr}),Me)},ct.setChildrenWidthAndResize=function(){if(ct.props.mode!=="horizontal")return;var ge=fe.findDOMNode(Object(K.a)(ct));if(!ge)return;var Me=ge.children;if(!Me||Me.length===0)return;var wt=ge.children[Me.length-1];ke(wt,"display","inline-block");var ht=ct.getMenuItemNodes(),qt=ht.filter(function(on){return on.className.split(" ").indexOf(Ht)>=0});qt.forEach(function(on){ke(on,"display","inline-block")}),ct.menuItemSizes=ht.map(function(on){return Ae(on,!0)}),qt.forEach(function(on){ke(on,"display","none")}),ct.overflowedIndicatorWidth=Ae(ge.children[ge.children.length-1],!0),ct.originalTotalWidth=ct.menuItemSizes.reduce(function(on,ot){return on+ot},0),ct.handleResize(),ke(wt,"display","none")},ct.handleResize=function(){if(ct.props.mode!=="horizontal")return;var ge=fe.findDOMNode(Object(K.a)(ct));if(!ge)return;var Me=Ae(ge);ct.overflowedItems=[];var wt=0,ht;ct.originalTotalWidth>Me+It&&(ht=-1,ct.menuItemSizes.forEach(function(qt){wt+=qt,wt+ct.overflowedIndicatorWidth<=Me&&(ht+=1)})),ct.setState({lastVisibleIndex:ht})},ct}return Object(I.a)(_t,[{key:"componentDidMount",value:function(){var ge=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Me=fe.findDOMNode(this);if(!Me)return;this.resizeObserver=new le.default(function(wt){wt.forEach(function(){var ht=ge.cancelFrameId;cancelAnimationFrame(ht),ge.cancelFrameId=requestAnimationFrame(ge.setChildrenWidthAndResize)})}),[].slice.call(Me.children).concat(Me).forEach(function(wt){ge.resizeObserver.observe(wt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){ge.resizeObserver.disconnect(),[].slice.call(Me.children).concat(Me).forEach(function(wt){ge.resizeObserver.observe(wt)}),ge.setChildrenWidthAndResize()}),this.mutationObserver.observe(Me,{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 Me=this,wt=this.state.lastVisibleIndex;return(ge||[]).reduce(function(ht,qt,on){var ot=qt;if(Me.props.mode==="horizontal"){var Wt=Me.getOverflowedSubMenuItem(qt.props.eventKey,[]);wt!==void 0&&Me.props.className.indexOf("".concat(Me.props.prefixCls,"-root"))!==-1&&(on>wt&&(ot=B.cloneElement(qt,{style:{display:"none"},eventKey:"".concat(qt.props.eventKey,"-hidden"),className:"".concat(Ht)})),on===wt+1&&(Me.overflowedItems=ge.slice(wt+1).map(function(Bn){return B.cloneElement(Bn,{key:Bn.props.eventKey,mode:"vertical-left"})}),Wt=Me.getOverflowedSubMenuItem(qt.props.eventKey,Me.overflowedItems)));var dn=[].concat(Object(Xe.a)(ht),[Wt,ot]);return on===ge.length-1&&dn.push(Me.getOverflowedSubMenuItem(qt.props.eventKey,[],!0)),dn}return[].concat(Object(Xe.a)(ht),[ot])},[])}},{key:"render",value:function(){var ge=this.props,Me=ge.visible,wt=ge.prefixCls,ht=ge.overflowedIndicator,qt=ge.mode,on=ge.level,ot=ge.tag,Wt=ge.children,dn=ge.theme,Bn=Object(Pe.a)(ge,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),kn=ot;return B.createElement(kn,Object.assign({},Bn),this.renderChildren(Wt))}}]),_t}(B.Component);Bt.defaultProps={tag:"div",className:""};var tn=Bt;function hn(Vt){return Vt.length?Vt.every(function(Et){return!!Et.props.disabled}):!0}function tt(Vt,Et,_t){var ct=Vt.getState();Vt.setState({activeKey:Object(re.a)(Object(re.a)({},ct.activeKey),{},Object(m.a)({},Et,_t))})}function Ke(Vt){return Vt.eventKey||"0-menu-"}function Ct(Vt,Et){var _t=Et,ct=Vt.children,ge=Vt.eventKey;if(_t){var Me;if(ie(ct,function(wt,ht){wt&&wt.props&&!wt.props.disabled&&_t===Z(wt,ge,ht)&&(Me=!0)}),Me)return _t}return _t=null,Vt.defaultActiveFirst&&ie(ct,function(wt,ht){!_t&&wt&&!wt.props.disabled&&(_t=Z(wt,ge,ht))}),_t}function Dt(Vt){if(Vt){var Et=this.instanceArray.indexOf(Vt);Et!==-1?this.instanceArray[Et]=Vt:this.instanceArray.push(Vt)}}var st=function(Vt){Object(T.a)(_t,Vt);var Et=Object(w.a)(_t);function _t(ct){var ge;return Object(z.a)(this,_t),ge=Et.call(this,ct),ge.onKeyDown=function(Me,wt){var ht=Me.keyCode,qt;if(ge.getFlatInstanceArray().forEach(function(ot){ot&&ot.props.active&&ot.onKeyDown&&(qt=ot.onKeyDown(Me))}),qt)return 1;var on=null;return(ht===R.a.UP||ht===R.a.DOWN)&&(on=ge.step(ht===R.a.UP?-1:1)),on?(Me.preventDefault(),tt(ge.props.store,Ke(ge.props),on.props.eventKey),typeof wt=="function"&&wt(on),1):void 0},ge.onItemHover=function(Me){var wt=Me.key,ht=Me.hover;tt(ge.props.store,Ke(ge.props),ht?wt:null)},ge.onDeselect=function(Me){ge.props.onDeselect(Me)},ge.onSelect=function(Me){ge.props.onSelect(Me)},ge.onClick=function(Me){ge.props.onClick(Me)},ge.onOpenChange=function(Me){ge.props.onOpenChange(Me)},ge.onDestroy=function(Me){ge.props.onDestroy(Me)},ge.getFlatInstanceArray=function(){return ge.instanceArray},ge.step=function(Me){var wt=ge.getFlatInstanceArray(),ht=ge.props.store.getState().activeKey[Ke(ge.props)],qt=wt.length;if(!qt)return null;Me<0&&(wt=wt.concat().reverse());var on=-1;if(wt.every(function(Bn,kn){return Bn&&Bn.props.eventKey===ht?(on=kn,!1):!0}),!ge.props.defaultActiveFirst&&on!==-1&&hn(wt.slice(on,qt-1)))return;var ot=(on+1)%qt,Wt=ot;do{var dn=wt[Wt];if(!dn||dn.props.disabled)Wt=(Wt+1)%qt;else return dn}while(Wt!==ot);return null},ge.renderCommonMenuItem=function(Me,wt,ht){var qt=ge.props.store.getState(),on=Object(K.a)(ge),ot=on.props,Wt=Z(Me,ot.eventKey,wt),dn=Me.props;if(!dn||typeof Me.type=="string")return Me;var Bn=Wt===qt.activeKey,kn=Object(re.a)(Object(re.a)({mode:dn.mode||ot.mode,level:ot.level,inlineIndent:ot.inlineIndent,renderMenuItem:ge.renderMenuItem,rootPrefixCls:ot.prefixCls,index:wt,parentMenu:ot.parentMenu,manualRef:dn.disabled?void 0:Object(M.a)(Me.ref,Dt.bind(Object(K.a)(ge))),eventKey:Wt,active:!dn.disabled&&Bn,multiple:ot.multiple,onClick:function(Ar){(dn.onClick||W)(Ar),ge.onClick(Ar)},onItemHover:ge.onItemHover,motion:ot.motion,subMenuOpenDelay:ot.subMenuOpenDelay,subMenuCloseDelay:ot.subMenuCloseDelay,forceSubMenuRender:ot.forceSubMenuRender,onOpenChange:ge.onOpenChange,onDeselect:ge.onDeselect,onSelect:ge.onSelect,builtinPlacements:ot.builtinPlacements,itemIcon:dn.itemIcon||ge.props.itemIcon,expandIcon:dn.expandIcon||ge.props.expandIcon},ht),{},{direction:ot.direction});return(ot.mode==="inline"||Ze())&&(kn.triggerSubMenuAction="click"),B.cloneElement(Me,kn)},ge.renderMenuItem=function(Me,wt,ht){if(!Me)return null;var qt=ge.props.store.getState(),on={openKeys:qt.openKeys,selectedKeys:qt.selectedKeys,triggerSubMenuAction:ge.props.triggerSubMenuAction,subMenuKey:ht};return ge.renderCommonMenuItem(Me,wt,on)},ct.store.setState({activeKey:Object(re.a)(Object(re.a)({},ct.store.getState().activeKey),{},Object(m.a)({},ct.eventKey,Ct(ct,ct.activeKey)))}),ge.instanceArray=[],ge}return Object(I.a)(_t,[{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 Me=this.props,wt="activeKey"in Me?Me.activeKey:Me.store.getState().activeKey[Ke(Me)],ht=Ct(Me,wt);if(ht!==wt)tt(Me.store,Ke(Me),ht);else if("activeKey"in ge){var qt=Ct(ge,ge.activeKey);ht!==qt&&tt(Me.store,Ke(Me),ht)}}},{key:"render",value:function(){var ge=this,Me=Object(D.a)({},this.props);this.instanceArray=[];var wt=d()(Me.prefixCls,Me.className,"".concat(Me.prefixCls,"-").concat(Me.mode)),ht={className:wt,role:Me.role||"menu"};Me.id&&(ht.id=Me.id),Me.focusable&&(ht.tabIndex=0,ht.onKeyDown=this.onKeyDown);var qt=Me.prefixCls,on=Me.eventKey,ot=Me.visible,Wt=Me.level,dn=Me.mode,Bn=Me.overflowedIndicator,kn=Me.theme;return Je.forEach(function(Cr){return delete Me[Cr]}),delete Me.onClick,B.createElement(tn,Object.assign({},Me,{prefixCls:qt,mode:dn,tag:"ul",level:Wt,theme:kn,visible:ot,overflowedIndicator:Bn},ht),B.Children.map(Me.children,function(Cr,Ar){return ge.renderMenuItem(Cr,Ar,on||"0-menu-")}))}}]),_t}(B.Component);st.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:W};var xt=Object(x.b)()(st),je=xt,we=F("Kwbf");function Te(Vt,Et,_t){var ct=Vt.prefixCls,ge=Vt.motion,Me=Vt.defaultMotions,wt=Me===void 0?{}:Me,ht=Vt.openAnimation,qt=Vt.openTransitionName,on=Et.switchingModeFromInline;if(ge)return ge;if(Object(o.a)(ht)==="object"&&ht)Object(we.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof ht=="string")return{motionName:"".concat(ct,"-open-").concat(ht)};if(qt)return{motionName:qt};var ot=wt[_t];return ot||(on?null:wt.other)}var ue=function(Vt){Object(T.a)(_t,Vt);var Et=Object(w.a)(_t);function _t(ct){var ge;Object(z.a)(this,_t),ge=Et.call(this,ct),ge.inlineOpenKeys=[],ge.onSelect=function(ht){var qt=Object(K.a)(ge),on=qt.props;if(on.selectable){var ot=ge.store.getState(),Wt=ot.selectedKeys,dn=ht.key;on.multiple?Wt=Wt.concat([dn]):Wt=[dn],"selectedKeys"in on||ge.store.setState({selectedKeys:Wt}),on.onSelect(Object(re.a)(Object(re.a)({},ht),{},{selectedKeys:Wt}))}},ge.onClick=function(ht){var qt=ge.getRealMenuMode(),on=Object(K.a)(ge),ot=on.store,Wt=on.props.onOpenChange;qt!=="inline"&&!("openKeys"in ge.props)&&(ot.setState({openKeys:[]}),Wt([])),ge.props.onClick(ht)},ge.onKeyDown=function(ht,qt){ge.innerMenu.getWrappedInstance().onKeyDown(ht,qt)},ge.onOpenChange=function(ht){var qt=Object(K.a)(ge),on=qt.props,ot=ge.store.getState().openKeys.concat(),Wt=!1,dn=function(kn){var Cr=!1;if(kn.open)Cr=ot.indexOf(kn.key)===-1,Cr&&ot.push(kn.key);else{var Ar=ot.indexOf(kn.key);Cr=Ar!==-1,Cr&&ot.splice(Ar,1)}Wt=Wt||Cr};Array.isArray(ht)?ht.forEach(dn):dn(ht),Wt&&("openKeys"in ge.props||ge.store.setState({openKeys:ot}),on.onOpenChange(ot))},ge.onDeselect=function(ht){var qt=Object(K.a)(ge),on=qt.props;if(on.selectable){var ot=ge.store.getState().selectedKeys.concat(),Wt=ht.key,dn=ot.indexOf(Wt);dn!==-1&&ot.splice(dn,1),"selectedKeys"in on||ge.store.setState({selectedKeys:ot}),on.onDeselect(Object(re.a)(Object(re.a)({},ht),{},{selectedKeys:ot}))}},ge.onMouseEnter=function(ht){ge.restoreModeVerticalFromInline();var qt=ge.props.onMouseEnter;qt&&qt(ht)},ge.onTransitionEnd=function(ht){var qt=ht.propertyName==="width"&&ht.target===ht.currentTarget,on=ht.target.className,ot=Object.prototype.toString.call(on)==="[object SVGAnimatedString]"?on.animVal:on,Wt=ht.propertyName==="font-size"&&ot.indexOf("anticon")>=0;(qt||Wt)&&ge.restoreModeVerticalFromInline()},ge.setInnerMenu=function(ht){ge.innerMenu=ht},ge.isRootMenu=!0;var Me=ct.defaultSelectedKeys,wt=ct.defaultOpenKeys;return"selectedKeys"in ct&&(Me=ct.selectedKeys||[]),"openKeys"in ct&&(wt=ct.openKeys||[]),ge.store=Object(x.c)({selectedKeys:Me,openKeys:wt,activeKey:{"0-menu-":Ct(ct,ct.activeKey)}}),ge.state={switchingModeFromInline:!1},ge}return Object(I.a)(_t,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(ge){this.updateOpentKeysWhenSwitchMode(ge),this.updateMiniStore();var Me=this.props,wt=Me.siderCollapsed,ht=Me.inlineCollapsed,qt=Me.onOpenChange;(!ge.inlineCollapsed&&ht||!ge.siderCollapsed&&wt)&&qt([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(ge){var Me=this.props,wt=this.store,ht=this.inlineOpenKeys,qt=wt.getState(),on={};ge.mode==="inline"&&Me.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in Me||((Me.inlineCollapsed&&!ge.inlineCollapsed||Me.siderCollapsed&&!ge.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=qt.openKeys.concat(),on.openKeys=[]),(!Me.inlineCollapsed&&ge.inlineCollapsed||!Me.siderCollapsed&&ge.siderCollapsed)&&(on.openKeys=ht,this.inlineOpenKeys=[])),Object.keys(on).length&&wt.setState(on)}},{key:"updateMenuDisplay",value:function(){var ge=this.props.collapsedWidth,Me=this.store,wt=this.prevOpenKeys,ht=this.getInlineCollapsed()&&(ge===0||ge==="0"||ge==="0px");ht?(this.prevOpenKeys=Me.getState().openKeys.concat(),this.store.setState({openKeys:[]})):wt&&(this.store.setState({openKeys:wt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var ge=this.props.mode,Me=this.state.switchingModeFromInline,wt=this.getInlineCollapsed();return Me&&wt?"inline":wt?"vertical":ge}},{key:"getInlineCollapsed",value:function(){var ge=this.props,Me=ge.inlineCollapsed,wt=ge.siderCollapsed;return wt!==void 0?wt:Me}},{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(k.default)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Me=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:Me,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,Me)}),delete ge.openAnimation,delete ge.openTransitionName,B.createElement(x.a,{store:this.store},B.createElement(je,Object.assign({},ge,{ref:this.setInnerMenu}),this.props.children))}}]),_t}(B.Component);ue.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 pe=ue,me=function(Vt){Object(T.a)(_t,Vt);var Et=Object(w.a)(_t);function _t(){var ct;return Object(z.a)(this,_t),ct=Et.apply(this,arguments),ct.onKeyDown=function(ge){var Me=ge.keyCode;return Me===R.a.ENTER?(ct.onClick(ge),!0):void 0},ct.onMouseLeave=function(ge){var Me=ct.props,wt=Me.eventKey,ht=Me.onItemHover,qt=Me.onMouseLeave;ht({key:wt,hover:!1}),qt({key:wt,domEvent:ge})},ct.onMouseEnter=function(ge){var Me=ct.props,wt=Me.eventKey,ht=Me.onItemHover,qt=Me.onMouseEnter;ht({key:wt,hover:!0}),qt({key:wt,domEvent:ge})},ct.onClick=function(ge){var Me=ct.props,wt=Me.eventKey,ht=Me.multiple,qt=Me.onClick,on=Me.onSelect,ot=Me.onDeselect,Wt=Me.isSelected,dn={key:wt,keyPath:[wt],item:Object(K.a)(ct),domEvent:ge};qt(dn),ht?Wt?ot(dn):on(dn):Wt||on(dn)},ct.saveNode=function(ge){ct.node=ge},ct}return Object(I.a)(_t,[{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,Me=Object(re.a)({},this.props),wt=d()(this.getPrefixCls(),Me.className,(ge={},Object(m.a)(ge,this.getActiveClassName(),!Me.disabled&&Me.active),Object(m.a)(ge,this.getSelectedClassName(),Me.isSelected),Object(m.a)(ge,this.getDisabledClassName(),Me.disabled),ge)),ht=Object(re.a)(Object(re.a)({},Me.attribute),{},{title:typeof Me.title=="string"?Me.title:void 0,className:wt,role:Me.role||"menuitem","aria-disabled":Me.disabled});Me.role==="option"?ht=Object(re.a)(Object(re.a)({},ht),{},{role:"option","aria-selected":Me.isSelected}):(Me.role===null||Me.role==="none")&&(ht.role="none");var qt={onClick:Me.disabled?null:this.onClick,onMouseLeave:Me.disabled?null:this.onMouseLeave,onMouseEnter:Me.disabled?null:this.onMouseEnter},on=Object(re.a)({},Me.style);Me.mode==="inline"&&(Me.direction==="rtl"?on.paddingRight=Me.inlineIndent*Me.level:on.paddingLeft=Me.inlineIndent*Me.level),Je.forEach(function(Wt){return delete Me[Wt]}),delete Me.direction;var ot=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(ot=B.createElement(this.props.itemIcon,this.props)),B.createElement("li",Object.assign({},Object(k.default)(Me,["onClick","onMouseEnter","onMouseLeave","onSelect"]),ht,qt,{style:on,ref:this.saveNode}),Me.children,ot)}}]),_t}(B.Component);me.isMenuItem=!0,me.defaultProps={onSelect:W,onMouseEnter:W,onMouseLeave:W,manualRef:W};var xe=Object(x.b)(function(Vt,Et){var _t=Vt.activeKey,ct=Vt.selectedKeys,ge=Et.eventKey,Me=Et.subMenuKey;return{active:_t[Me]===ge,isSelected:ct.indexOf(ge)!==-1}})(me),nt=xe,We=function(Vt){Object(T.a)(_t,Vt);var Et=Object(w.a)(_t);function _t(){var ct;return Object(z.a)(this,_t),ct=Et.apply(this,arguments),ct.renderInnerMenuItem=function(ge){var Me=ct.props,wt=Me.renderMenuItem,ht=Me.index;return wt(ge,ht,ct.props.subMenuKey)},ct}return Object(I.a)(_t,[{key:"render",value:function(){var ge=Object(D.a)({},this.props),Me=ge.className,wt=Me===void 0?"":Me,ht=ge.rootPrefixCls,qt="".concat(ht,"-item-group-title"),on="".concat(ht,"-item-group-list"),ot=ge.title,Wt=ge.children;return Je.forEach(function(dn){return delete ge[dn]}),delete ge.onClick,delete ge.direction,B.createElement("li",Object.assign({},ge,{className:"".concat(wt," ").concat(ht,"-item-group")}),B.createElement("div",{className:qt,title:typeof ot=="string"?ot:void 0},ot),B.createElement("ul",{className:on},B.Children.map(Wt,this.renderInnerMenuItem)))}}]),_t}(B.Component);We.isMenuItemGroup=!0,We.defaultProps={disabled:!0};var St=We,en=function(Et){var _t=Et.className,ct=Et.rootPrefixCls,ge=Et.style;return B.createElement("li",{className:"".concat(_t," ").concat(ct,"-item-divider"),style:ge})};en.defaultProps={disabled:!0,className:"",style:{}};var vn=en,Zt=rt.e=pe},"49sm":function(an,rt){var F={}.toString;an.exports=Array.isArray||function(re){return F.call(re)=="[object Array]"}},"4wi7":function(an,rt,F){"use strict";var re=F("14J3"),z=F("BMrR"),I=F("sRBo"),K=F("kaz8"),T=F("5NDa"),w=F("5rEg"),B=F("9og8"),x=F("tJVT"),k=F("WmNS"),D=F.n(k),m=F("q1tI"),R=F.n(m),M=F("oOBs"),g=F.n(M),n=F("xOL1"),p=F.n(n),d=F("BdwD"),o=function(h){var S=h.data,b=h.value,v=b===void 0?[]:b,P=h.handleChangePage,E=h.setSelectedRowKeys,f=h.selectedRowKeys,c=h.onChange,s=c===void 0?function(){}:c,i=Object(m.useState)([]),C=Object(x.a)(i,2),_=C[0],O=C[1],N=Object(m.useState)([]),U=Object(x.a)(N,2),H=U[0],G=U[1],L=Object(m.useState)([]),W=Object(x.a)(L,2),Z=W[0],oe=W[1],ie=Object(m.useState)(1),be=Object(x.a)(ie,2),Je=be[0],Ae=be[1],ke=Object(m.useState)(),Ze=Object(x.a)(ke,2),Xe=Ze[0],Pe=Ze[1];return Object(m.useEffect)(function(){O(S),G([]),oe([])},[S]),Object(m.useEffect)(function(){E&&(G(f),oe(f))},[f]),R.a.createElement("div",{style:{display:"flex",justifyContent:"space-between"}},R.a.createElement("div",{className:g.a.leftdiv},R.a.createElement(w.a.Search,{size:"large",onChange:function(){var fe=Object(B.a)(D.a.mark(function le(Se){return D.a.wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:O(S.filter(function(it){var ee;return it==null||((ee=it.name)===null||ee===void 0)?void 0:ee.includes(Se.target.value)}));case 1:case"end":return Ge.stop()}},le)}));return function(le){return fe.apply(this,arguments)}}(),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),_.length===0&&R.a.createElement(d.a,{styles:{margin:"70px auto"},customText:"\u6682\u65E0\u5206\u73ED"}),R.a.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},R.a.createElement(K.a.Group,{value:H.map(function(fe){return"".concat(fe.id)}),onChange:function(le){E(_.filter(function(Se){return le.includes("".concat(Se.id))}))},style:{marginTop:"10px"}},_.map(function(fe,le){return R.a.createElement(z.a,{key:fe.id,style:{marginTop:"10px",lineHeight:"24px",display:"flex",width:200}},R.a.createElement(K.a,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:fe.is_published,value:"".concat(fe.id)},R.a.createElement("div",{className:g.a.listClass},R.a.createElement("span",{className:g.a.spantitle,style:{width:fe.is_published?"108px":"170px"}},fe.name),fe.is_published&&R.a.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03"))))})))),R.a.createElement("div",{className:g.a.rightdiv},R.a.createElement(w.a.Search,{onChange:function(le){oe(H.filter(function(Se){return Se.name.includes(le.target.value)}))},size:"large",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),Z.length===0&&R.a.createElement(d.a,{styles:{margin:"70px auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),Z.length>0&&R.a.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},R.a.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},Z.map(function(fe,le){return R.a.createElement(z.a,{justify:"space-between",style:{marginTop:"10px"},key:fe.id},R.a.createElement("div",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",marginRight:"5px",marginLeft:"5px",width:"75%"}},fe.name),R.a.createElement("img",{src:p.a,style:{cursor:"pointer",height:"16px",marginRight:17},onClick:function(){E(H.filter(function(ve){return"".concat(ve.id)!="".concat(fe.id)}))}}))})))))};rt.a=o},"500L":function(an,rt,F){"use strict";F.d(rt,"a",function(){return b});var re=F("+L6B"),z=F("2/Rp"),I=F("2qtc"),K=F("kLXV"),T=F("9og8"),w=F("k1fw"),B=F("miYZ"),x=F("tsqr"),k=F("oBTY"),D=F("tJVT"),m=F("DZo9"),R=F("8z0m"),M=F("WmNS"),g=F.n(M),n=F("q1tI"),p=F.n(n),d=F("m3rI"),o=F("wzkS"),u=F("y5JW"),h=F("LtfV"),S=R.a.Dragger;function b(v){var P=[];return v&&v.length>0&&(P=v.map(function(E){return{uid:E.id,id:E.id,name:E.title+u.c+E.filesize,url:E.url,filesize:E.filesize,status:"done",response:{id:E.id}}})),P}rt.b=function(v){var P=v.value,E=v.onChange,f=v.action,c=v.className,s=v.maxSize,i=s===void 0?150:s,C=v.title,_=C===void 0?"\u4E0A\u4F20\u9644\u4EF6":C,O=v.showRemoveModal,N=O===void 0?!1:O,U=v.accept,H=U===void 0?"":U,G=v.additionalText,L=v.isDragger,W=v.number,Z=W===void 0?1e3:W,oe=v.aloneClear,ie=oe===void 0?!1:oe,be=v.restrict,Je=be===void 0?!0:be,Ae=Object(n.useState)(!1),ke=Object(D.a)(Ae,2),Ze=ke[0],Xe=ke[1],Pe=Object(n.useState)(P||[]),fe=Object(D.a)(Pe,2),le=fe[0],Se=fe[1];Object(n.useEffect)(function(){P&&(Se(Object(k.a)(P)),Z===(P==null?void 0:P.length)&&Xe(!0))},[P]);var ve=function(){setTimeout(function(){le.pop(),Se(Object(k.a)(le))},500)},Ge={multiple:!0,disabled:Ze,accept:H,withCredentials:!0,fileList:le,beforeUpload:function(V,Q){var he=V.size/1024/1024;return le.concat(Q).length>Z?(le.pop(),Se(Object(k.a)(le)),x.b.error("\u6700\u591A\u53EA\u80FD\u4E0A\u4F20".concat(Z,"\u4E2A\u6587\u4EF6")),ie?Promise.reject():(ve(),!1)):he=Z?Xe(!0):Xe(!1),Se(Object(k.a)(Q)),Q=Q.map(function(he){var _e;if(he!=null&&(_e=he.response)!==null&&_e!==void 0&&_e.id){var Fe;he.url="/api/attachments/".concat(he==null||((Fe=he.response)===null||Fe===void 0)?void 0:Fe.id)}return he.name.indexOf(u.c)===-1&&(he.name="".concat(he.name).concat(u.c).concat(Object(u.a)(he.size))),Object(w.a)({},he)}),console.log("info:",V),E(Q)},onRemove:function(){var ee=Object(T.a)(g.a.mark(function Q(he){var _e;return g.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:if(_e=function(){var Rt=Object(T.a)(g.a.mark(function Ht(){var It,Bt;return g.a.wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:if(It=he.response?he.response.id:he.id,!It){hn.next=8;break}return hn.next=4,Object(o.d)(he.response?he.response.id:he.uid);case 4:return Bt=hn.sent,hn.abrupt("return",Bt);case 8:return hn.abrupt("return",!0);case 9:case"end":return hn.stop()}},Ht)}));return function(){return Rt.apply(this,arguments)}}(),!N){He.next=5;break}return He.abrupt("return",new Promise(function(Rt,Ht){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(T.a)(g.a.mark(function tn(){var hn;return g.a.wrap(function(Ke){for(;;)switch(Ke.prev=Ke.next){case 0:return Ke.next=2,_e();case 2:hn=Ke.sent,x.b.success("\u5220\u9664\u6210\u529F"),Rt(!0);case 5:case"end":return Ke.stop()}},tn)}));function Bt(){return It.apply(this,arguments)}return Bt}(),onCancel:function(){return Rt(!1)}})}));case 5:return He.next=7,_e();case 7:return He.abrupt("return",He.sent);case 8:case"end":return He.stop()}},Q)}));function V(Q){return ee.apply(this,arguments)}return V}()};function it(ee){ee.preventDefault(),ee.stopPropagation()}return p.a.createElement("div",{className:"multi-upload ".concat(c||"")},L&&p.a.createElement(S,Ge,p.a.createElement("p",{className:"ant-upload-drag-icon"},p.a.createElement(h.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:Je?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",i,"MB) ")),G),!L&&p.a.createElement(R.a,Ge,p.a.createElement(z.a,{disabled:Ze},_),p.a.createElement("span",{onClick:it,style:{marginLeft:10,color:"#FA6400",display:Je?"block":"none"}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",i,"MB) ")))}},"55Ip":function(an,rt,F){"use strict";F.d(rt,"a",function(){return u}),F.d(rt,"b",function(){return E});var re=F("Ty5D"),z=F("dI71"),I=F("q1tI"),K=F.n(I),T=F("YS25"),w=F("17x9"),B=F.n(w),x=F("wx14"),k=F("zLVn"),D=F("9R94"),m=function(c){Object(z.a)(s,c);function s(){for(var C,_=arguments.length,O=new Array(_),N=0;N<_;N++)O[N]=arguments[N];return C=c.call.apply(c,[this].concat(O))||this,C.history=Object(T.a)(C.props),C}var i=s.prototype;return i.render=function(){return K.a.createElement(re.c,{history:this.history,children:this.props.children})},s}(K.a.Component),R=function(c){Object(z.a)(s,c);function s(){for(var C,_=arguments.length,O=new Array(_),N=0;N<_;N++)O[N]=arguments[N];return C=c.call.apply(c,[this].concat(O))||this,C.history=Object(T.b)(C.props),C}var i=s.prototype;return i.render=function(){return K.a.createElement(re.c,{history:this.history,children:this.props.children})},s}(K.a.Component),M=function(s,i){return typeof s=="function"?s(i):s},g=function(s,i){return typeof s=="string"?Object(T.c)(s,null,null,i):s},n=function(s){return s},p=K.a.forwardRef;typeof p=="undefined"&&(p=n);function d(c){return!!(c.metaKey||c.altKey||c.ctrlKey||c.shiftKey)}var o=p(function(c,s){var i=c.innerRef,C=c.navigate,_=c.onClick,O=Object(k.a)(c,["innerRef","navigate","onClick"]),N=O.target,U=Object(x.a)({},O,{onClick:function(G){try{_&&_(G)}catch(L){throw G.preventDefault(),L}!G.defaultPrevented&&G.button===0&&(!N||N==="_self")&&!d(G)&&(G.preventDefault(),C())}});return n!==p?U.ref=s||i:U.ref=i,K.a.createElement("a",U)}),u=p(function(c,s){var i=c.component,C=i===void 0?o:i,_=c.replace,O=c.to,N=c.innerRef,U=Object(k.a)(c,["component","replace","to","innerRef"]);return K.a.createElement(re.e.Consumer,null,function(H){H||Object(D.a)(!1);var G=H.history,L=g(M(O,H.location),H.location),W=L?G.createHref(L):"",Z=Object(x.a)({},U,{href:W,navigate:function(){var ie=M(O,H.location),be=_?G.replace:G.push;be(ie)}});return n!==p?Z.ref=s||N:Z.innerRef=N,K.a.createElement(C,Z)})});if(!1)var h,S;var b=function(s){return s},v=K.a.forwardRef;typeof v=="undefined"&&(v=b);function P(){for(var c=arguments.length,s=new Array(c),i=0;i=0||_.relatedTarget.className.indexOf("".concat(H,"-next"))>=0))return;c.setState({goInputText:""}),U(c.getValidValue())},c.go=function(_){var O=c.state.goInputText;if(O==="")return;(_.keyCode===g.ENTER||_.type==="click")&&(c.setState({goInputText:""}),c.props.quickGo(c.getValidValue()))},c}return Object(T.a)(f,[{key:"getValidValue",value:function(){var s=this.state,i=s.goInputText,C=s.current;return!i||isNaN(i)?C:Number(i)}},{key:"getPageSizeOptions",value:function(){var s=this.props,i=s.pageSize,C=s.pageSizeOptions;return C.some(function(_){return _.toString()===i.toString()})?C:C.concat([i.toString()]).sort(function(_,O){var N=isNaN(Number(_))?0:Number(_),U=isNaN(Number(O))?0:Number(O);return N-U})}},{key:"render",value:function(){var s=this,i=this.props,C=i.pageSize,_=i.locale,O=i.rootPrefixCls,N=i.changeSize,U=i.quickGo,H=i.goButton,G=i.selectComponentClass,L=i.buildOptionText,W=i.selectPrefixCls,Z=i.disabled,oe=this.state.goInputText,ie="".concat(O,"-options"),be=G,Je=null,Ae=null,ke=null;if(!N&&!U)return null;var Ze=this.getPageSizeOptions();if(N&&be){var Xe=Ze.map(function(Pe,fe){return k.a.createElement(be.Option,{key:fe,value:Pe.toString()},(L||s.buildOptionText)(Pe))});Je=k.a.createElement(be,{disabled:Z,prefixCls:W,showSearch:!1,className:"".concat(ie,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(C||Ze[0]).toString(),onChange:this.changeSize,getPopupContainer:function(fe){return fe.parentNode}},Xe)}return U&&(H&&(ke=typeof H=="boolean"?k.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Z,className:"".concat(ie,"-quick-jumper-button")},_.jump_to_confirm):k.a.createElement("span",{onClick:this.go,onKeyUp:this.go},H)),Ae=k.a.createElement("div",{className:"".concat(ie,"-quick-jumper")},_.jump_to,k.a.createElement("input",{disabled:Z,type:"text",value:oe,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),_.page,ke)),k.a.createElement("li",{className:"".concat(ie)},Je,Ae)}}]),f}(k.a.Component);n.defaultProps={pageSizeOptions:["10","20","50","100"]};var p=n,d=F("N2Kk");function o(){}function u(P){return typeof P=="number"&&isFinite(P)&&Math.floor(P)===P}function h(P,E,f){return f}function S(P,E,f){var c=typeof P=="undefined"?E.pageSize:P;return Math.floor((f.total-1)/c)+1}var b=function(P){Object(w.a)(f,P);var E=Object(B.a)(f);function f(c){var s;Object(K.a)(this,f),s=E.call(this,c),s.getJumpPrevPage=function(){return Math.max(1,s.state.current-(s.props.showLessItems?3:5))},s.getJumpNextPage=function(){return Math.min(S(void 0,s.state,s.props),s.state.current+(s.props.showLessItems?3:5))},s.getItemIcon=function(N,U){var H=s.props.prefixCls,G=N||k.a.createElement("button",{type:"button","aria-label":U,className:"".concat(H,"-item-link")});return typeof N=="function"&&(G=k.a.createElement(N,Object(I.a)({},s.props))),G},s.savePaginationNode=function(N){s.paginationNode=N},s.isValid=function(N){return u(N)&&N!==s.state.current},s.shouldDisplayQuickJumper=function(){var N=s.props,U=N.showQuickJumper,H=N.pageSize,G=N.total;return G<=H?!1:U},s.handleKeyDown=function(N){(N.keyCode===g.ARROW_UP||N.keyCode===g.ARROW_DOWN)&&N.preventDefault()},s.handleKeyUp=function(N){var U=s.getValidValue(N),H=s.state.currentInputValue;U!==H&&s.setState({currentInputValue:U}),N.keyCode===g.ENTER?s.handleChange(U):N.keyCode===g.ARROW_UP?s.handleChange(U-1):N.keyCode===g.ARROW_DOWN&&s.handleChange(U+1)},s.changePageSize=function(N){var U=s.state.current,H=S(N,s.state,s.props);U=U>H?H:U,H===0&&(U=s.state.current),typeof N=="number"&&("pageSize"in s.props||s.setState({pageSize:N}),"current"in s.props||s.setState({current:U,currentInputValue:U})),s.props.onShowSizeChange(U,N),"onChange"in s.props&&s.props.onChange&&s.props.onChange(U,N)},s.handleChange=function(N){var U=s.props.disabled,H=N;if(s.isValid(H)&&!U){var G=S(void 0,s.state,s.props);H>G?H=G:H<1&&(H=1),"current"in s.props||s.setState({current:H,currentInputValue:H});var L=s.state.pageSize;return s.props.onChange(H,L),H}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?H-2:0),L=2;L=C?O=C:O=Number(i),O}},{key:"getShowSizeChanger",value:function(){var s=this.props,i=s.showSizeChanger,C=s.total,_=s.totalBoundaryShowSizeChanger;return typeof i!="undefined"?i:C>_}},{key:"renderPrev",value:function(s){var i=this.props,C=i.prevIcon,_=i.itemRender,O=_(s,"prev",this.getItemIcon(C,"prev page")),N=!this.hasPrev();return Object(x.isValidElement)(O)?Object(x.cloneElement)(O,{disabled:N}):O}},{key:"renderNext",value:function(s){var i=this.props,C=i.nextIcon,_=i.itemRender,O=_(s,"next",this.getItemIcon(C,"next page")),N=!this.hasNext();return Object(x.isValidElement)(O)?Object(x.cloneElement)(O,{disabled:N}):O}},{key:"render",value:function(){var s=this,i=this.props,C=i.prefixCls,_=i.className,O=i.style,N=i.disabled,U=i.hideOnSinglePage,H=i.total,G=i.locale,L=i.showQuickJumper,W=i.showLessItems,Z=i.showTitle,oe=i.showTotal,ie=i.simple,be=i.itemRender,Je=i.showPrevNextJumpers,Ae=i.jumpPrevIcon,ke=i.jumpNextIcon,Ze=i.selectComponentClass,Xe=i.selectPrefixCls,Pe=i.pageSizeOptions,fe=this.state,le=fe.current,Se=fe.pageSize,ve=fe.currentInputValue;if(U===!0&&H<=Se)return null;var Ge=S(void 0,this.state,this.props),it=[],ee=null,V=null,Q=null,he=null,_e=null,Fe=L&&L.goButton,He=W?1:2,Rt=le-1>0?le-1:0,Ht=le+1=He*2&&le!==1+2&&(it[0]=Object(x.cloneElement)(it[0],{className:"".concat(C,"-item-after-jump-prev")}),it.unshift(ee)),Ge-le>=He*2&&le!==Ge-2&&(it[it.length-1]=Object(x.cloneElement)(it[it.length-1],{className:"".concat(C,"-item-before-jump-next")}),it.push(V)),Ct!==1&&it.unshift(Q),Dt!==Ge&&it.push(he)}var je=null;oe&&(je=k.a.createElement("li",{className:"".concat(C,"-total-text")},oe(H,[H===0?0:(le-1)*Se+1,le*Se>H?H:le*Se])));var we=!this.hasPrev()||!Ge,Te=!this.hasNext()||!Ge;return k.a.createElement("ul",Object(re.a)({className:m()(C,_,Object(z.a)({},"".concat(C,"-disabled"),N)),style:O,unselectable:"unselectable",ref:this.savePaginationNode},It),je,k.a.createElement("li",{title:Z?G.prev_page:null,onClick:this.prev,tabIndex:we?null:0,onKeyPress:this.runIfEnterPrev,className:m()("".concat(C,"-prev"),Object(z.a)({},"".concat(C,"-disabled"),we)),"aria-disabled":we},this.renderPrev(Rt)),it,k.a.createElement("li",{title:Z?G.next_page:null,onClick:this.next,tabIndex:Te?null:0,onKeyPress:this.runIfEnterNext,className:m()("".concat(C,"-next"),Object(z.a)({},"".concat(C,"-disabled"),Te)),"aria-disabled":Te},this.renderNext(Ht)),k.a.createElement(p,{disabled:N,locale:G,rootPrefixCls:C,selectComponentClass:Ze,selectPrefixCls:Xe,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:le,pageSize:Se,pageSizeOptions:Pe,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Fe}))}}],[{key:"getDerivedStateFromProps",value:function(s,i){var C={};if("current"in s&&(C.current=s.current,s.current!==i.current&&(C.currentInputValue=C.current)),"pageSize"in s&&s.pageSize!==i.pageSize){var _=i.current,O=S(s.pageSize,i,s);_=_>O?O:_,"current"in s||(C.current=_,C.currentInputValue=_),C.pageSize=s.pageSize}return C}}]),f}(k.a.Component);b.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:d.a,style:{},itemRender:h,totalBoundaryShowSizeChanger:50};var v=b},"632R":function(an,rt,F){an.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(an,rt,F){"use strict";var re=F("wCXF"),z=F("n6Qo");F.d(rt,"b",function(){return z.a});var I=F("IBYe"),K=F("6eGT"),T=F("hW8S");F.d(rt,"a",function(){return T.a}),rt.c=re.b},"6eGT":function(an,rt,F){"use strict";function re(z){return null}rt.a=re},"6vEo":function(an,rt,F){"use strict";var re=F("2qtc"),z=F("kLXV"),I=F("cWXX"),K=F("/ezw"),T=F("14J3"),w=F("BMrR"),B=F("jCWc"),x=F("kPKH"),k=F("7Kak"),D=F("9yH6"),m=F("5NDa"),R=F("5rEg"),M=F("oBTY"),g=F("k1fw"),n=F("9og8"),p=F("y8nQ"),d=F("Vl3Y"),o=F("tJVT"),u=F("WmNS"),h=F.n(u),S=F("q1tI"),b=F.n(S),v=F("RotF"),P=F.n(v),E=F("XYT7"),f=F("Ty5D"),c=F("9kvl"),s=function(C){var _,O,N,U=C.classroomList,H=C.loading,G=C.user,L=C.dispatch,W=Object(f.i)(),Z=d.a.useForm(),oe=Object(o.a)(Z,1),ie=oe[0],be=Object(S.useState)(!0),Je=Object(o.a)(be,2),Ae=Je[0],ke=Je[1],Ze=Object(S.useState)([]),Xe=Object(o.a)(Ze,2),Pe=Xe[0],fe=Xe[1],le=Object(S.useState)({page:1,limit:20,keyword:""}),Se=Object(o.a)(le,2),ve=Se[0],Ge=Se[1],it=function(){var ee=Object(n.a)(h.a.mark(function V(){var Q,he;return h.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:return Fe.next=2,L({type:"shixunHomeworks/getProjectList",payload:Object(g.a)(Object(g.a)({},W),ve)});case 2:he=Fe.sent,he.projects&&fe([].concat(Object(M.a)(Pe),Object(M.a)(he.projects))),((Q=he.projects)===null||Q===void 0?void 0:Q.length)<20&&ke(!1);case 5:case"end":return Fe.stop()}},V)}));return function(){return ee.apply(this,arguments)}}();return Object(S.useEffect)(function(){U.actionTabs.key==="\u5173\u8054\u9879\u76EE"&&(it(),Pe=[],ve.page=1,ve.keyword="")},[U.actionTabs.key]),b.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)(h.a.mark(function ee(){var V,Q,he,_e,Fe;return h.a.wrap(function(Rt){for(;;)switch(Rt.prev=Rt.next){case 0:return Rt.next=2,ie.validateFields();case 2:return V=Object(g.a)({},ie.getFieldValue()),Q=U.actionTabs,he=Q.selectArrs,_e=Q.cb,Rt.next=6,Object(E.O)(Object(g.a)(Object(g.a)({},V),{},{homeworkId:he.homework_id}));case 6:Fe=Rt.sent,Fe.status===0&&(_e?_e():L({type:"classroomList/getClassroomCommonHomeworksList",payload:Object(g.a)({},U.actionTabs.params)}),L({type:"classroomList/setActionTabs",payload:{}}));case 8:case"end":return Rt.stop()}},ee)})),onCancel:function(){L({type:"classroomList/setActionTabs",payload:{}})}},b.a.createElement(K.a,{loading:H["shixunHomeworks/getProjectList"],active:!0},Pe==""?b.a.createElement("aside",null,b.a.createElement("div",{className:"tc font14 pt20"},"\u60A8\u5F53\u524D\u5C1A\u672A\u7BA1\u7406\u4EFB\u4F55\u9879\u76EE\uFF0C\u8BF7\u5148",b.a.createElement("a",{href:"".concat((_=G.navigationInfo)===null||_===void 0||((O=_.top)===null||O===void 0)?void 0:O.old_url,"/projects/deposit/new"),target:"_blank"},"\u521B\u5EFA\u9879\u76EE"),"\u518D\u5173\u8054")):b.a.createElement("aside",null,b.a.createElement("div",{className:" mb20"},b.a.createElement(R.a.Search,{onSearch:function(V){V===""?delete ve.keyword:ve.keyword=V,Pe=[],ke(!0),it()},placeholder:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0\u8FDB\u884C\u641C\u7D22",allowClear:!0,size:"large"})),b.a.createElement(d.a,{form:ie,initialValues:{}},b.a.createElement(d.a.Item,{name:"project_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE"}]},b.a.createElement(D.a.Group,null,b.a.createElement(P.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(V){ve.page++,it()},hasMore:Ae,useWindow:!1},(N=Pe)===null||N===void 0?void 0:N.map(function(ee,V){return b.a.createElement(w.a,{key:V},b.a.createElement(x.a,null,b.a.createElement(D.a,{value:ee.id},ee.name)))}))))))))};rt.a=Object(c.a)(function(i){var C=i.classroomList,_=i.user,O=i.loading;return{classroomList:C,user:_,loading:O.effects}})(s)},"7Cbv":function(an,rt,F){"use strict";var re=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),z=new Uint8Array(16);function I(){if(!re)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return re(z)}var K=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function T(M){return typeof M=="string"&&K.test(M)}for(var w=T,B=[],x=0;x<256;++x)B.push((x+256).toString(16).substr(1));function k(M){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(B[M[g+0]]+B[M[g+1]]+B[M[g+2]]+B[M[g+3]]+"-"+B[M[g+4]]+B[M[g+5]]+"-"+B[M[g+6]]+B[M[g+7]]+"-"+B[M[g+8]]+B[M[g+9]]+"-"+B[M[g+10]]+B[M[g+11]]+B[M[g+12]]+B[M[g+13]]+B[M[g+14]]+B[M[g+15]]).toLowerCase();if(!w(n))throw TypeError("Stringified UUID is invalid");return n}var D=k;function m(M,g,n){M=M||{};var p=M.random||(M.rng||I)();if(p[6]=p[6]&15|64,p[8]=p[8]&63|128,g){n=n||0;for(var d=0;d<16;++d)g[n+d]=p[d];return g}return D(p)}var R=rt.a=m},"7ahc":function(an,rt,F){"use strict";F.d(rt,"a",function(){return S});var re=F("k1fw"),z=F("0Owb"),I=F("+L6B"),K=F("2/Rp"),T=F("y8nQ"),w=F("Vl3Y"),B=F("tJVT"),x=F("OaEy"),k=F("2fM7"),D=F("q1tI"),m=F.n(D),R=F("VrN/"),M=F.n(R),g=F("p77/"),n=F.n(g),p=F("c5Ni"),d=F.n(p),o=k.a.Option,u={labelCol:{span:4},wrapperCol:{span:20}},h={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"]};rt.b=function(b){var v=b.callback,P=b.onCancel,E=Object(D.useState)("python"),f=Object(B.a)(E,2),c=f[0],s=f[1];function i(_){s(h[_][1])}function C(_){v(_)}return m.a.createElement(w.a,Object(z.a)({},u,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:C}),m.a.createElement(w.a.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},m.a.createElement(k.a,{onChange:i},Object.keys(h).map(function(_){return m.a.createElement(o,{key:_,value:_},h[_][0])}))),m.a.createElement(w.a.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},m.a.createElement(S,{mode:c})),m.a.createElement("div",{className:"flex-container flex-end"},m.a.createElement(K.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),m.a.createElement(K.a,{type:"ghost",onClick:P},"\u53D6\u6D88")))};function S(b){var v=b.value,P=b.onChange,E=b.mode,f=b.options,c=f===void 0?{}:f,s=Object(D.useRef)(),i=Object(D.useState)(),C=Object(B.a)(i,2),_=C[0],O=C[1];return Object(D.useEffect)(function(){if(_){function N(U){var H=U.getValue();P&&P(H)}return _.on("change",N),function(){_.off("change",N)}}},[_,P]),Object(D.useEffect)(function(){_&&_.setOption("mode",E)},[_,E]),Object(D.useEffect)(function(){_&&((v!==_.getValue()||v==="")&&setTimeout(function(){_.setValue(v||" ")},300))},[_,v]),Object(D.useEffect)(function(){if(s.current&&!_){var N=M.a.fromTextArea(s.current,Object(re.a)({mode:E,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},c));O(N)}},[s.current,_]),m.a.createElement("div",{className:"my-codemirror-container"},m.a.createElement("textarea",{ref:s}))}},"7ixt":function(an,rt,F){"use strict";F.d(rt,"a",function(){return I});var re={adjustX:1,adjustY:1},z=[0,0],I={left:{points:["cr","cl"],overflow:re,offset:[-4,0],targetOffset:z},right:{points:["cl","cr"],overflow:re,offset:[4,0],targetOffset:z},top:{points:["bc","tc"],overflow:re,offset:[0,-4],targetOffset:z},bottom:{points:["tc","bc"],overflow:re,offset:[0,4],targetOffset:z},topLeft:{points:["bl","tl"],overflow:re,offset:[0,-4],targetOffset:z},leftTop:{points:["tr","tl"],overflow:re,offset:[-4,0],targetOffset:z},topRight:{points:["br","tr"],overflow:re,offset:[0,-4],targetOffset:z},rightTop:{points:["tl","tr"],overflow:re,offset:[4,0],targetOffset:z},bottomRight:{points:["tr","br"],overflow:re,offset:[0,4],targetOffset:z},rightBottom:{points:["bl","br"],overflow:re,offset:[4,0],targetOffset:z},bottomLeft:{points:["tl","bl"],overflow:re,offset:[0,4],targetOffset:z},leftBottom:{points:["br","bl"],overflow:re,offset:[-4,0],targetOffset:z}},K=I},"815F":function(an,rt,F){"use strict";F.d(rt,"e",function(){return B}),F.d(rt,"c",function(){return k}),F.d(rt,"d",function(){return D}),F.d(rt,"a",function(){return R}),F.d(rt,"f",function(){return M}),F.d(rt,"b",function(){return g});var re=F("KQm4"),z=F("VTBJ"),I=F("Ff2n"),K=F("Zm9Q"),T=F("Kwbf"),w=F("OZM5");function B(n,p){return n!=null?n:p}function x(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=new Map;function d(o){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(o||[]).forEach(function(h){var S=h.key,b=h.children;Object(T.a)(S!=null,"Tree node must have a certain key: [".concat(u).concat(S,"]"));var v=String(S);Object(T.a)(!p.has(v)||S===null||S===void 0,"Same 'key' exist in the Tree: ".concat(v)),p.set(v,!0),d(b,"".concat(u).concat(v," > "))})}d(n)}function k(n){function p(d){var o=Object(K.a)(d);return o.map(function(u){if(!Object(w.i)(u))return Object(T.a)(!u,"Tree/TreeNode can only accept TreeNode as children."),null;var h=u.key,S=u.props,b=S.children,v=Object(I.a)(S,["children"]),P=Object(z.a)({key:h},v),E=p(b);return E.length&&(P.children=E),P}).filter(function(u){return u})}return p(n)}function D(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=new Set(p===!0?[]:p),o=[];function u(h){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return h.map(function(b,v){var P=Object(w.h)(S?S.pos:"0",v),E=B(b.key,P),f=Object(z.a)(Object(z.a)({},b),{},{parent:S,pos:P,children:null,data:b,isStart:[].concat(Object(re.a)(S?S.isStart:[]),[v===0]),isEnd:[].concat(Object(re.a)(S?S.isEnd:[]),[v===h.length-1])});return o.push(f),p===!0||d.has(E)?f.children=u(b.children||[],f):f.children=[],f})}return u(n),o}function m(n,p,d){var o;d?typeof d=="string"?o=function(S){return S[d]}:typeof d=="function"&&(o=function(S){return d(S)}):o=function(S,b){return B(S.key,b)};function u(h,S,b){var v=h?h.children:n,P=h?Object(w.h)(b.pos,S):"0";if(h){var E=o(h,P),f={node:h,index:S,pos:P,key:E,parentPos:b.node?b.pos:null,level:b.level+1};p(f)}v&&v.forEach(function(c,s){u(c,s,{node:h,pos:P,level:b?b.level+1:-1})})}u(null)}function R(n){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=p.initWrapper,o=p.processEntity,u=p.onProcessFinished,h=arguments.length>2?arguments[2]:void 0,S={},b={},v={posEntities:S,keyEntities:b};return d&&(v=d(v)||v),m(n,function(P){var E=P.node,f=P.index,c=P.pos,s=P.key,i=P.parentPos,C=P.level,_={node:E,index:f,key:s,pos:c,level:C},O=B(s,c);S[c]=_,b[O]=_,_.parent=S[i],_.parent&&(_.parent.children=_.parent.children||[],_.parent.children.push(_)),o&&o(_,v)},h),u&&u(v),v}function M(n,p){var d=p.expandedKeys,o=p.selectedKeys,u=p.loadedKeys,h=p.loadingKeys,S=p.checkedKeys,b=p.halfCheckedKeys,v=p.dragOverNodeKey,P=p.dropPosition,E=p.keyEntities,f=E[n],c={eventKey:n,expanded:d.indexOf(n)!==-1,selected:o.indexOf(n)!==-1,loaded:u.indexOf(n)!==-1,loading:h.indexOf(n)!==-1,checked:S.indexOf(n)!==-1,halfChecked:b.indexOf(n)!==-1,pos:String(f?f.pos:""),dragOver:v===n&&P===0,dragOverGapTop:v===n&&P===-1,dragOverGapBottom:v===n&&P===1};return c}function g(n){var p=n.data,d=n.expanded,o=n.selected,u=n.checked,h=n.loaded,S=n.loading,b=n.halfChecked,v=n.dragOver,P=n.dragOverGapTop,E=n.dragOverGapBottom,f=n.pos,c=n.active,s=Object(z.a)(Object(z.a)({},p),{},{expanded:d,selected:o,checked:u,loaded:h,loading:S,halfChecked:b,dragOver:v,dragOverGapTop:P,dragOverGapBottom:E,pos:f,active:c});return"props"in s||Object.defineProperty(s,"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`."),n}}),s}},"8B0h":function(an,rt,F){an.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(an,rt,F){(function(re){re(F("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 z=0;z-1&&K.substring(B+1,K.length);if(x)return re.findModeByExtension(x)},re.findModeByName=function(K){K=K.toLowerCase();for(var T=0;T0?M.a.createElement("span",null,"(\u5DF2\u62C6\u5206",ke,"\u4E2Azip\u5305)"):"")}),Je===(ie==null?void 0:ie.length)-1?L(be,ke>0?ke+1:0):Ae>900*1024*1024?(ke++,Ae=0,G(ke,function(){Je++,Ze()})):(Je++,Ze());case 3:case"end":return It.stop()}},Rt)})),2600)});case 1:case"end":return it.stop()}},Se)})),Xe.apply(this,arguments)},Ze=function(){return Xe.apply(this,arguments)},ie=oe||b,O(!0),Je=0,Ae=0,ke=0,be=B.a.info({width:460,title:M.a.createElement("div",null,"\u6B63\u5728\u5BFC\u51FA\u9644\u4EF6,",M.a.createElement("span",{className:"c-red"},"\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),content:M.a.createElement("div",null,"\u5F53\u524D\u8FDB\u5EA6: ",M.a.createElement("span",{className:"c-blue"},Je+1),"/",ie==null?void 0:ie.length),maskClosable:!1,okText:"\u6211\u77E5\u9053\u4E86",onOk:function(){}}),Ze();case 9:case"end":return fe.stop()}},Z)}));return function(oe){return W.apply(this,arguments)}}(),H=function(Z,oe,ie,be){var Je=oe,Ae=new window.XMLHttpRequest;return Ae.withCredentials=!0,Ae.addEventListener("load",function(ke){ie(ke,Ae)},!1),Ae.addEventListener("error",function(ke){be&&be(ke)},!1),Ae.responseType="blob",Ae.open("GET",Je),Ae.send(null),Ae},G=function(Z,oe){N.current.generateAsync({type:"blob"}).then(function(ie){var be=document.createElement("a");be.href=window.URL.createObjectURL(ie),be.download=v+"-".concat(Z)+".zip",document.body.appendChild(be);var Je=document.createEvent("MouseEvents");Je.initEvent("click",!1,!1),be.dispatchEvent(Je),document.body.removeChild(be),N.current=new n.a,oe()})},L=function(Z,oe){N.current.generateAsync({type:"blob"}).then(function(ie){var be=document.createElement("a");be.href=window.URL.createObjectURL(ie),oe>0?be.download=v+"-".concat(oe)+".zip":be.download=v+".zip",document.body.appendChild(be);var Je=document.createEvent("MouseEvents");Je.initEvent("click",!1,!1),be.dispatchEvent(Je),document.body.removeChild(be),Z.destroy(),O(!1),s(),N.current=new n.a})};return f?M.a.createElement(M.a.Fragment,null):M.a.createElement(z.a,Object(I.a)({},E,{onClick:function(){return U()},loading:_}),"\u4E0B\u8F7D")};rt.a=Object(R.forwardRef)(d)},"8hTe":function(an,rt,F){an.exports={button:"button___1wy9m"}},"9Bee":function(an,rt,F){"use strict";var re=F("DYRE"),z=F("zeV3"),I=F("+L6B"),K=F("2/Rp"),T=F("k1fw"),w=F("9og8"),B=F("tJVT"),x=F("WmNS"),k=F.n(x),D=F("q1tI"),m=F.n(D),R=F("vg9a"),M=F("DlQD"),g=F.n(M),n=F("rUJ1");function p(J,y){var A=J.match(/^(\s+)(?:```)/);if(A===null)return y;var X=A[1];return y.split(` `).map(function(te){var $=te.match(/^\s+/);if($===null)return te;var ze=Object(B.a)($,1),Ut=ze[0];return Ut.length>=X.length?te.slice(X.length):te}).join(` -`)}var d=[],o=["
    "],u=new g.a.Renderer,f=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function S(){d.length=0,o=["
      "]}var b={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function v(J,y,A,X){if(y>=J.length||J[y].level<=A)return y;var te=J[y];X.push("
    • "+te.text+""),y++;var $=[];return y=v(J,y,te.level,$),$.length>0&&(X.push("
        "),$.forEach(function(ze){X.push(ze)}),X.push("
      ")),X.push("
    • "),y=v(J,y,A,X),y}function P(){return v(d,0,0,o),o.push("
    "),o.join("")}var E={heading:function(y){var A=f.exec(y);if(A)return{type:"heading",raw:A[0],depth:A[1].length,text:A[2]}},fences:function(y){var A=this.rules.block.fences.exec(y);if(A){var X=A[0],te=p(X,A[3]||""),$=A[2]?A[2].trim():A[2];if(["latex","katex","math"].indexOf($)>=0){var ze=s(),Ut=te;te=ze,i[ze]={type:"block",expression:Ut}}return{type:"code",raw:X,lang:$,text:te}}}},h=/(?:\${2})([^\n`]+?)(?:\${2})/gi,c=0,s=function(){return"__special_katext_id_".concat(c++,"__")},i={};function C(){return i}function _(){c=0,i={}}function O(J){return J=J.replace(h,function(y,A){var X=s();return i[X]={type:"inline",expression:A},X}),J}var N=u.listitem;u.listitem=function(J){return N(O(J))};var U=u.paragraph;u.paragraph=function(J){return U(O(J))};var H=u.tablecell;u.tablecell=function(J,y){return H(O(J),y)},u.code=function(J,y,A){var X=(y||"").match(/\S*/)[0];return X?["latex","katex","math"].indexOf(X)>=0?"

    ".concat(J,"

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

      ".concat(J,"

      "):'
      ').concat(A?J:Object(n.escape)(J,!0),`
      `):'
      '+(A?J:Object(n.escape)(J,!0))+"
      "},u.heading=function(J,y,A){var X=this.options.headerPrefix+A.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return d.push({anchor:X,level:y,text:J}),"'+J+""},g.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),g.a.use({tokenizer:E,renderer:u});var G=g.a,L=F("SJMd"),W=F("ulZh"),Z=F.n(W),oe=F("m3rI"),ie=F("Oy/b"),be=F("p5ED"),Je=F("ErOA");/*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -14,7 +14,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 Ae=function(J,y){return(Ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,X){A.__proto__=X}||function(A,X){for(var te in X)Object.prototype.hasOwnProperty.call(X,te)&&(A[te]=X[te])})(J,y)};function ke(J,y){function A(){this.constructor=J}Ae(J,y),J.prototype=y===null?Object.create(y):(A.prototype=y.prototype,new A)}function Ze(J,y,A,X){return new(A||(A=Promise))(function(te,$){function ze(Nn){try{pn(X.next(Nn))}catch(Kt){$(Kt)}}function Ut(Nn){try{pn(X.throw(Nn))}catch(Kt){$(Kt)}}function pn(Nn){var Kt;Nn.done?te(Nn.value):(Kt=Nn.value,Kt instanceof A?Kt:new A(function(rn){rn(Kt)})).then(ze,Ut)}pn((X=X.apply(J,y||[])).next())})}function Xe(J,y){var A,X,te,$,ze={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return $={next:Ut(0),throw:Ut(1),return:Ut(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Ut(pn){return function(Nn){return function(Kt){if(A)throw new TypeError("Generator is already executing.");for(;ze;)try{if(A=1,X&&(te=2&Kt[0]?X.return:Kt[0]?X.throw||((te=X.return)&&te.call(X),0):X.next)&&!(te=te.call(X,Kt[1])).done)return te;switch(X=0,te&&(Kt=[2&Kt[0],te.value]),Kt[0]){case 0:case 1:te=Kt;break;case 4:return ze.label++,{value:Kt[1],done:!1};case 5:ze.label++,X=Kt[1],Kt=[0];continue;case 7:Kt=ze.ops.pop(),ze.trys.pop();continue;default:if(!(te=ze.trys,(te=te.length>0&&te[te.length-1])||Kt[0]!==6&&Kt[0]!==2)){ze=0;continue}if(Kt[0]===3&&(!te||Kt[1]>te[0]&&Kt[1]0&&te[te.length-1])||Kt[0]!==6&&Kt[0]!==2)){ze=0;continue}if(Kt[0]===3&&(!te||Kt[1]>te[0]&&Kt[1]')||this;return ze.colors=[],ze.addTransparent=!1,ze.colorBoxes=[],ze.colors=X,ze.currentColor=te,ze.setCurrentColor=ze.setCurrentColor.bind(ze),ze.getColorBox=ze.getColorBox.bind(ze),ze}return ke(y,J),y.prototype.getUi=function(){var A=this,X=document.createElement("div");return X.style.overflow="hidden",X.style.whiteSpace="nowrap",this.colors.forEach(function(te){var $=A.getColorBox(te);X.appendChild($),A.colorBoxes.push($)}),X},y.prototype.getColorBox=function(A){var X=this,te=this.uiStyleSettings.toolbarHeight/4,$=this.uiStyleSettings.toolbarHeight-te,ze=document.createElement("div");ze.style.display="inline-block",ze.style.boxSizing="content-box",ze.style.width=$-2+"px",ze.style.height=$-2+"px",ze.style.padding="1px",ze.style.marginRight="2px",ze.style.marginBottom="2px",ze.style.borderWidth="2px",ze.style.borderStyle="solid",ze.style.borderRadius=($+2)/2+"px",ze.style.borderColor=A===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ze.addEventListener("click",function(){X.setCurrentColor(A,ze)});var Ut=document.createElement("div");return Ut.style.display="inline-block",Ut.style.width=$-2+"px",Ut.style.height=$-2+"px",Ut.style.backgroundColor=A,Ut.style.borderRadius=$/2+"px",A==="transparent"&&(Ut.style.fill=this.uiStyleSettings.toolboxAccentColor,Ut.innerHTML=` + `))},J.prototype.show=function(y){var A;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=y,this.uiContainer.className=this.toolboxStyleClass.name+" "+((A=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&A!==void 0?A:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},J.prototype.setPanelButtons=function(y){var A,X,te=this;this.panels=y,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((A=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&A!==void 0?A:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((X=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&X!==void 0?X:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function($){var ze;$.uiStyleSettings=te.uiStyleSettings;var Ut=document.createElement("div");Ut.className=te.toolboxButtonStyleClass.name+" "+((ze=te.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ze!==void 0?ze:te.toolboxButtonStyleColorsClass.name),Ut.innerHTML=$.icon,Ut.title=$.title,Ut.addEventListener("click",function(){te.panelButtonClick($)}),te.panelButtons.push(Ut),te.buttonRow.appendChild(Ut)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},J.prototype.panelButtonClick=function(y){var A=this,X=-1;if(y!==this.activePanel){X=this.panels.indexOf(y),this.panelRow.innerHTML="";var te=y.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=y}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){A.displayMode==="inline"?A.panelRow.style.display="none":A.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function($,ze){var Ut,pn;$.className=A.toolboxButtonStyleClass.name+" "+(ze===X?""+((Ut=A.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ut!==void 0?Ut:A.toolboxActiveButtonStyleColorsClass.name):""+((pn=A.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&pn!==void 0?pn:A.toolboxButtonStyleColorsClass.name))})},J}(),he=function(J,y){this.title=J,this.icon=y},_e=function(J){function y(A,X,te,$){var ze=J.call(this,A,$||'')||this;return ze.colors=[],ze.addTransparent=!1,ze.colorBoxes=[],ze.colors=X,ze.currentColor=te,ze.setCurrentColor=ze.setCurrentColor.bind(ze),ze.getColorBox=ze.getColorBox.bind(ze),ze}return ke(y,J),y.prototype.getUi=function(){var A=this,X=document.createElement("div");return X.style.overflow="hidden",X.style.whiteSpace="nowrap",this.colors.forEach(function(te){var $=A.getColorBox(te);X.appendChild($),A.colorBoxes.push($)}),X},y.prototype.getColorBox=function(A){var X=this,te=this.uiStyleSettings.toolbarHeight/4,$=this.uiStyleSettings.toolbarHeight-te,ze=document.createElement("div");ze.style.display="inline-block",ze.style.boxSizing="content-box",ze.style.width=$-2+"px",ze.style.height=$-2+"px",ze.style.padding="1px",ze.style.marginRight="2px",ze.style.marginBottom="2px",ze.style.borderWidth="2px",ze.style.borderStyle="solid",ze.style.borderRadius=($+2)/2+"px",ze.style.borderColor=A===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ze.addEventListener("click",function(){X.setCurrentColor(A,ze)});var Ut=document.createElement("div");return Ut.style.display="inline-block",Ut.style.width=$-2+"px",Ut.style.height=$-2+"px",Ut.style.backgroundColor=A,Ut.style.borderRadius=$/2+"px",A==="transparent"&&(Ut.style.fill=this.uiStyleSettings.toolboxAccentColor,Ut.innerHTML=` - `),ze.appendChild(Ut),ze},y.prototype.setCurrentColor=function(A,X){var te=this;this.currentColor=A,this.colorBoxes.forEach(function($){$.style.borderColor=$===X?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(A)},y}(fe),Fe=function(){function J(y,A,X){this._state="new",this._isSelected=!1,this._container=y,this._overlayContainer=A,this.globalSettings=X,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(y){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(y,A){},J.prototype.dblClick=function(y,A){},J.prototype.manipulate=function(y){},J.prototype.pointerUp=function(y){this.stateChanged()},J.prototype.dispose=function(){},J.prototype.addMarkerVisualToContainer=function(y){this.container.childNodes.length>0?this.container.insertBefore(y,this.container.childNodes[0]):this.container.appendChild(y)},J.prototype.getState=function(){return{typeName:J.typeName,state:this.state,notes:this.notes}},J.prototype.restoreState=function(y){this._state=y.state,this.notes=y.notes},J.prototype.scale=function(y,A){},J.prototype.colorChanged=function(y){this.onColorChanged&&this.onColorChanged(y),this.stateChanged()},J.prototype.fillColorChanged=function(y){this.onFillColorChanged&&this.onFillColorChanged(y),this.stateChanged()},J.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var y=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),y.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(y)&&this.onStateChanged(this)}},J.typeName="MarkerBase",J}(),He=function(){function J(){this.findGripByVisual=this.findGripByVisual.bind(this)}return J.prototype.findGripByVisual=function(y){return this.topLeft.ownsTarget(y)?this.topLeft:this.topCenter.ownsTarget(y)?this.topCenter:this.topRight.ownsTarget(y)?this.topRight:this.centerLeft.ownsTarget(y)?this.centerLeft:this.centerRight.ownsTarget(y)?this.centerRight:this.bottomLeft.ownsTarget(y)?this.bottomLeft:this.bottomCenter.ownsTarget(y)?this.bottomCenter:this.bottomRight.ownsTarget(y)?this.bottomRight:void 0},J}(),Rt=function(){function J(){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 J.prototype.ownsTarget=function(y){return y===this.visual||y===this.visual.childNodes[0]||y===this.visual.childNodes[1]},J}(),Ht=function(){function J(){}return J.toITransformMatrix=function(y){return{a:y.a,b:y.b,c:y.c,d:y.d,e:y.e,f:y.f}},J.toSVGMatrix=function(y,A){return y.a=A.a,y.b=A.b,y.c=A.c,y.d=A.d,y.e=A.e,y.f=A.f,y},J}(),It=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.left=0,$.top=0,$.width=0,$.height=0,$.defaultSize={x:50,y:20},$.offsetX=0,$.offsetY=0,$.rotationAngle=0,$.CB_DISTANCE=10,$._suppressMarkerCreateEvent=!1,$.container.transform.baseVal.appendItem(he.createTransform()),$.setupControlBox(),$}return ke(y,J),Object.defineProperty(y.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"visual",{get:function(){return this._visual},set:function(A){this._visual=A;var X=he.createTransform();this._visual.transform.baseVal.appendItem(X)},enumerable:!1,configurable:!0}),y.prototype.ownsTarget=function(A){return!!J.prototype.ownsTarget.call(this,A)||!!(this.controlGrips.findGripByVisual(A)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(A))},y.prototype.pointerDown=function(A,X){J.prototype.pointerDown.call(this,A,X),this.state==="new"&&(this.left=A.x,this.top=A.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var te=this.unrotatePoint(A);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(X),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(X)){this.activeGrip=this.rotatorGrip;var $=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=$.x-this.width/2,this.top=$.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ze=this.container.transform.baseVal.getItem(0);ze.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ze,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},y.prototype.pointerUp=function(A){var X=this.state;J.prototype.pointerUp.call(this,A),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(A),this._state="select",X==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},y.prototype.moveVisual=function(A){this.visual.style.transform="translate("+A.x+"px, "+A.y+"px)"},y.prototype.manipulate=function(A){var X=this.unrotatePoint(A);this.state==="creating"?this.resize(A):this.state==="move"?(this.left=this.manipulationStartLeft+(X.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(X.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(X):this.state==="rotate"&&this.rotate(A)},y.prototype.resize=function(A){var X=this.manipulationStartLeft,te=this.manipulationStartWidth,$=this.manipulationStartTop,ze=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:X=this.manipulationStartLeft+A.x-this.manipulationStartX,te=this.manipulationStartWidth+this.manipulationStartLeft-X;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:te=this.manipulationStartWidth+A.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:$=this.manipulationStartTop+A.y-this.manipulationStartY,ze=this.manipulationStartHeight+this.manipulationStartTop-$;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ze=this.manipulationStartHeight+A.y-this.manipulationStartY}te>=0?(this.left=X,this.width=te):(this.left=X+te,this.width=-te),ze>=0?(this.top=$,this.height=ze):(this.top=$+ze,this.height=-ze),this.setSize()},y.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},y.prototype.rotate=function(A){if(Math.abs(A.x-this.centerX)>.1){var X=Math.sign(A.x-this.centerX);this.rotationAngle=180*Math.atan((A.y-this.centerY)/(A.x-this.centerX))/Math.PI+90*X,this.applyRotation()}},y.prototype.applyRotation=function(){var A=this.container.transform.baseVal.getItem(0);A.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(A,0)},y.prototype.rotatePoint=function(A){if(this.rotationAngle===0)return A;var X=this.container.getCTM(),te=he.createPoint(A.x,A.y);return{x:(te=te.matrixTransform(X)).x,y:te.y}},y.prototype.unrotatePoint=function(A){if(this.rotationAngle===0)return A;var X=this.container.getCTM();X=X.inverse();var te=he.createPoint(A.x,A.y);return{x:(te=te.matrixTransform(X)).x,y:te.y}},y.prototype.select=function(){J.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},y.prototype.deselect=function(){J.prototype.deselect.call(this),this.controlBox.style.display="none"},y.prototype.setupControlBox=function(){this.controlBox=he.createGroup();var A=he.createTransform();A.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(A),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 He,this.addControlGrips(),this.controlBox.style.display="none"},y.prototype.adjustControlBox=function(){var A=this.controlBox.transform.baseVal.getItem(0);A.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(A,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()},y.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()},y.prototype.createGrip=function(){var A=new Rt;return A.visual.transform.baseVal.appendItem(he.createTransform()),this.controlBox.appendChild(A.visual),A},y.prototype.positionGrips=function(){var A=this.controlGrips.topLeft.GRIP_SIZE,X=-A/2,te=X,$=(this.width+this.CB_DISTANCE)/2-A/2,ze=(this.height+this.CB_DISTANCE)/2-A/2,Ut=this.height+this.CB_DISTANCE-A/2,pn=this.width+this.CB_DISTANCE-A/2;this.positionGrip(this.controlGrips.topLeft.visual,X,te),this.positionGrip(this.controlGrips.topCenter.visual,$,te),this.positionGrip(this.controlGrips.topRight.visual,pn,te),this.positionGrip(this.controlGrips.centerLeft.visual,X,ze),this.positionGrip(this.controlGrips.centerRight.visual,pn,ze),this.positionGrip(this.controlGrips.bottomLeft.visual,X,Ut),this.positionGrip(this.controlGrips.bottomCenter.visual,$,Ut),this.positionGrip(this.controlGrips.bottomRight.visual,pn,Ut),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,$,te-3*this.CB_DISTANCE)},y.prototype.positionGrip=function(A,X,te){var $=A.transform.baseVal.getItem(0);$.setTranslate(X,te),A.transform.baseVal.replaceItem($,0)},y.prototype.hideControlBox=function(){this.controlBox.style.display="none"},y.prototype.showControlBox=function(){this.controlBox.style.display=""},y.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ht.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ht.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},J.prototype.getState.call(this))},y.prototype.restoreState=function(A){J.prototype.restoreState.call(this,A);var X=A;this.left=X.left,this.top=X.top,this.width=X.width,this.height=X.height,this.rotationAngle=X.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ht.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,X.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ht.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,X.containerTransformMatrix))},y.prototype.scale=function(A,X){J.prototype.scale.call(this,A,X);var te=this.rotatePoint({x:this.left,y:this.top}),$=this.unrotatePoint({x:te.x*A,y:te.y*X});this.left=$.x,this.top=$.y,this.width=this.width*A,this.height=this.height*X,this.adjustControlBox()},y}(Fe),Bt=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.fillColor="transparent",$.strokeColor="transparent",$.strokeWidth=0,$.strokeDasharray="",$.opacity=1,$.setStrokeColor=$.setStrokeColor.bind($),$.setFillColor=$.setFillColor.bind($),$.setStrokeWidth=$.setStrokeWidth.bind($),$.setStrokeDasharray=$.setStrokeDasharray.bind($),$.createVisual=$.createVisual.bind($),$}return ke(y,J),y.prototype.ownsTarget=function(A){return!(!J.prototype.ownsTarget.call(this,A)&&A!==this.visual)},y.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)},y.prototype.pointerDown=function(A,X){J.prototype.pointerDown.call(this,A,X),this.state==="new"&&(this.createVisual(),this.moveVisual(A),this._state="creating")},y.prototype.manipulate=function(A){J.prototype.manipulate.call(this,A)},y.prototype.resize=function(A){J.prototype.resize.call(this,A),this.setSize()},y.prototype.setSize=function(){J.prototype.setSize.call(this),he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},y.prototype.pointerUp=function(A){J.prototype.pointerUp.call(this,A),this.setSize()},y.prototype.setStrokeColor=function(A){this.strokeColor=A,this.visual&&he.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(A),this.stateChanged()},y.prototype.setFillColor=function(A){this.fillColor=A,this.visual&&he.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},y.prototype.setStrokeWidth=function(A){this.strokeWidth=A,this.visual&&he.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},y.prototype.setStrokeDasharray=function(A){this.strokeDasharray=A,this.visual&&he.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},y.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))},y.prototype.restoreState=function(A){var X=A;this.fillColor=X.fillColor,this.strokeColor=X.strokeColor,this.strokeWidth=X.strokeWidth,this.strokeDasharray=X.strokeDasharray,this.opacity=X.opacity,this.createVisual(),J.prototype.restoreState.call(this,A),this.setSize()},y.prototype.scale=function(A,X){J.prototype.scale.call(this,A,X),this.setSize()},y.title="Rectangle marker",y}(It),tn=function(J){function y(A,X,te,$){var ze=J.call(this,A,$||'')||this;return ze.widths=[],ze.widthBoxes=[],ze.widths=X,ze.currentWidth=te,ze.setCurrentWidth=ze.setCurrentWidth.bind(ze),ze}return ke(y,J),y.prototype.getUi=function(){var A=this,X=document.createElement("div");return X.style.display="flex",X.style.overflow="hidden",X.style.flexGrow="2",this.widths.forEach(function(te){var $=document.createElement("div");$.style.display="flex",$.style.flexGrow="2",$.style.alignItems="center",$.style.justifyContent="space-between",$.style.padding="5px",$.style.borderWidth="2px",$.style.borderStyle="solid",$.style.borderColor=te===A.currentWidth?A.uiStyleSettings.toolboxAccentColor:"transparent",$.addEventListener("click",function(){A.setCurrentWidth(te,$)}),X.appendChild($);var ze=document.createElement("div");ze.innerText=te.toString(),ze.style.marginRight="5px",$.appendChild(ze);var Ut=document.createElement("div");Ut.style.minHeight="20px",Ut.style.flexGrow="2",Ut.style.display="flex",Ut.style.alignItems="center";var pn=document.createElement("hr");pn.style.minWidth="20px",pn.style.border="0px",pn.style.borderTop=te+"px solid "+A.uiStyleSettings.toolboxColor,pn.style.flexGrow="2",Ut.appendChild(pn),$.appendChild(Ut),A.widthBoxes.push($)}),X},y.prototype.setCurrentWidth=function(A,X){var te=this;this.currentWidth=A,this.widthBoxes.forEach(function($){$.style.borderColor=$===X?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},y}(fe),fn=function(J){function y(A,X,te,$){var ze=J.call(this,A,$||'')||this;return ze.styles=[],ze.styleBoxes=[],ze.styles=X,ze.currentStyle=te,ze.setCurrentStyle=ze.setCurrentStyle.bind(ze),ze}return ke(y,J),y.prototype.getUi=function(){var A=this,X=document.createElement("div");return X.style.display="flex",X.style.overflow="hidden",X.style.flexGrow="2",this.styles.forEach(function(te){var $=document.createElement("div");$.style.display="flex",$.style.alignItems="center",$.style.justifyContent="space-between",$.style.padding="5px",$.style.borderWidth="2px",$.style.borderStyle="solid",$.style.overflow="hidden",$.style.maxWidth=100/A.styles.length-5+"%",$.style.borderColor=te===A.currentStyle?A.uiStyleSettings.toolboxAccentColor:"transparent",$.addEventListener("click",function(){A.setCurrentStyle(te,$)}),X.appendChild($);var ze=document.createElement("div");ze.style.minHeight="20px",ze.style.flexGrow="2",ze.style.overflow="hidden";var Ut=` + `),ze.appendChild(Ut),ze},y.prototype.setCurrentColor=function(A,X){var te=this;this.currentColor=A,this.colorBoxes.forEach(function($){$.style.borderColor=$===X?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(A)},y}(he),Fe=function(){function J(y,A,X){this._state="new",this._isSelected=!1,this._container=y,this._overlayContainer=A,this.globalSettings=X,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(y){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(y,A){},J.prototype.dblClick=function(y,A){},J.prototype.manipulate=function(y){},J.prototype.pointerUp=function(y){this.stateChanged()},J.prototype.dispose=function(){},J.prototype.addMarkerVisualToContainer=function(y){this.container.childNodes.length>0?this.container.insertBefore(y,this.container.childNodes[0]):this.container.appendChild(y)},J.prototype.getState=function(){return{typeName:J.typeName,state:this.state,notes:this.notes}},J.prototype.restoreState=function(y){this._state=y.state,this.notes=y.notes},J.prototype.scale=function(y,A){},J.prototype.colorChanged=function(y){this.onColorChanged&&this.onColorChanged(y),this.stateChanged()},J.prototype.fillColorChanged=function(y){this.onFillColorChanged&&this.onFillColorChanged(y),this.stateChanged()},J.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var y=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),y.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(y)&&this.onStateChanged(this)}},J.typeName="MarkerBase",J}(),He=function(){function J(){this.findGripByVisual=this.findGripByVisual.bind(this)}return J.prototype.findGripByVisual=function(y){return this.topLeft.ownsTarget(y)?this.topLeft:this.topCenter.ownsTarget(y)?this.topCenter:this.topRight.ownsTarget(y)?this.topRight:this.centerLeft.ownsTarget(y)?this.centerLeft:this.centerRight.ownsTarget(y)?this.centerRight:this.bottomLeft.ownsTarget(y)?this.bottomLeft:this.bottomCenter.ownsTarget(y)?this.bottomCenter:this.bottomRight.ownsTarget(y)?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(y){return y===this.visual||y===this.visual.childNodes[0]||y===this.visual.childNodes[1]},J}(),Ht=function(){function J(){}return J.toITransformMatrix=function(y){return{a:y.a,b:y.b,c:y.c,d:y.d,e:y.e,f:y.f}},J.toSVGMatrix=function(y,A){return y.a=A.a,y.b=A.b,y.c=A.c,y.d=A.d,y.e=A.e,y.f=A.f,y},J}(),It=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.left=0,$.top=0,$.width=0,$.height=0,$.defaultSize={x:50,y:20},$.offsetX=0,$.offsetY=0,$.rotationAngle=0,$.CB_DISTANCE=10,$._suppressMarkerCreateEvent=!1,$.container.transform.baseVal.appendItem(fe.createTransform()),$.setupControlBox(),$}return ke(y,J),Object.defineProperty(y.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"visual",{get:function(){return this._visual},set:function(A){this._visual=A;var X=fe.createTransform();this._visual.transform.baseVal.appendItem(X)},enumerable:!1,configurable:!0}),y.prototype.ownsTarget=function(A){return!!J.prototype.ownsTarget.call(this,A)||!!(this.controlGrips.findGripByVisual(A)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(A))},y.prototype.pointerDown=function(A,X){J.prototype.pointerDown.call(this,A,X),this.state==="new"&&(this.left=A.x,this.top=A.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var te=this.unrotatePoint(A);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(X),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(X)){this.activeGrip=this.rotatorGrip;var $=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=$.x-this.width/2,this.top=$.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ze=this.container.transform.baseVal.getItem(0);ze.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ze,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},y.prototype.pointerUp=function(A){var X=this.state;J.prototype.pointerUp.call(this,A),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(A),this._state="select",X==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},y.prototype.moveVisual=function(A){this.visual.style.transform="translate("+A.x+"px, "+A.y+"px)"},y.prototype.manipulate=function(A){var X=this.unrotatePoint(A);this.state==="creating"?this.resize(A):this.state==="move"?(this.left=this.manipulationStartLeft+(X.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(X.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(X):this.state==="rotate"&&this.rotate(A)},y.prototype.resize=function(A){var X=this.manipulationStartLeft,te=this.manipulationStartWidth,$=this.manipulationStartTop,ze=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:X=this.manipulationStartLeft+A.x-this.manipulationStartX,te=this.manipulationStartWidth+this.manipulationStartLeft-X;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:te=this.manipulationStartWidth+A.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:$=this.manipulationStartTop+A.y-this.manipulationStartY,ze=this.manipulationStartHeight+this.manipulationStartTop-$;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ze=this.manipulationStartHeight+A.y-this.manipulationStartY}te>=0?(this.left=X,this.width=te):(this.left=X+te,this.width=-te),ze>=0?(this.top=$,this.height=ze):(this.top=$+ze,this.height=-ze),this.setSize()},y.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},y.prototype.rotate=function(A){if(Math.abs(A.x-this.centerX)>.1){var X=Math.sign(A.x-this.centerX);this.rotationAngle=180*Math.atan((A.y-this.centerY)/(A.x-this.centerX))/Math.PI+90*X,this.applyRotation()}},y.prototype.applyRotation=function(){var A=this.container.transform.baseVal.getItem(0);A.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(A,0)},y.prototype.rotatePoint=function(A){if(this.rotationAngle===0)return A;var X=this.container.getCTM(),te=fe.createPoint(A.x,A.y);return{x:(te=te.matrixTransform(X)).x,y:te.y}},y.prototype.unrotatePoint=function(A){if(this.rotationAngle===0)return A;var X=this.container.getCTM();X=X.inverse();var te=fe.createPoint(A.x,A.y);return{x:(te=te.matrixTransform(X)).x,y:te.y}},y.prototype.select=function(){J.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},y.prototype.deselect=function(){J.prototype.deselect.call(this),this.controlBox.style.display="none"},y.prototype.setupControlBox=function(){this.controlBox=fe.createGroup();var A=fe.createTransform();A.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(A),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 He,this.addControlGrips(),this.controlBox.style.display="none"},y.prototype.adjustControlBox=function(){var A=this.controlBox.transform.baseVal.getItem(0);A.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(A,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()},y.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()},y.prototype.createGrip=function(){var A=new Rt;return A.visual.transform.baseVal.appendItem(fe.createTransform()),this.controlBox.appendChild(A.visual),A},y.prototype.positionGrips=function(){var A=this.controlGrips.topLeft.GRIP_SIZE,X=-A/2,te=X,$=(this.width+this.CB_DISTANCE)/2-A/2,ze=(this.height+this.CB_DISTANCE)/2-A/2,Ut=this.height+this.CB_DISTANCE-A/2,pn=this.width+this.CB_DISTANCE-A/2;this.positionGrip(this.controlGrips.topLeft.visual,X,te),this.positionGrip(this.controlGrips.topCenter.visual,$,te),this.positionGrip(this.controlGrips.topRight.visual,pn,te),this.positionGrip(this.controlGrips.centerLeft.visual,X,ze),this.positionGrip(this.controlGrips.centerRight.visual,pn,ze),this.positionGrip(this.controlGrips.bottomLeft.visual,X,Ut),this.positionGrip(this.controlGrips.bottomCenter.visual,$,Ut),this.positionGrip(this.controlGrips.bottomRight.visual,pn,Ut),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,$,te-3*this.CB_DISTANCE)},y.prototype.positionGrip=function(A,X,te){var $=A.transform.baseVal.getItem(0);$.setTranslate(X,te),A.transform.baseVal.replaceItem($,0)},y.prototype.hideControlBox=function(){this.controlBox.style.display="none"},y.prototype.showControlBox=function(){this.controlBox.style.display=""},y.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ht.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ht.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},J.prototype.getState.call(this))},y.prototype.restoreState=function(A){J.prototype.restoreState.call(this,A);var X=A;this.left=X.left,this.top=X.top,this.width=X.width,this.height=X.height,this.rotationAngle=X.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ht.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,X.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ht.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,X.containerTransformMatrix))},y.prototype.scale=function(A,X){J.prototype.scale.call(this,A,X);var te=this.rotatePoint({x:this.left,y:this.top}),$=this.unrotatePoint({x:te.x*A,y:te.y*X});this.left=$.x,this.top=$.y,this.width=this.width*A,this.height=this.height*X,this.adjustControlBox()},y}(Fe),Bt=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.fillColor="transparent",$.strokeColor="transparent",$.strokeWidth=0,$.strokeDasharray="",$.opacity=1,$.setStrokeColor=$.setStrokeColor.bind($),$.setFillColor=$.setFillColor.bind($),$.setStrokeWidth=$.setStrokeWidth.bind($),$.setStrokeDasharray=$.setStrokeDasharray.bind($),$.createVisual=$.createVisual.bind($),$}return ke(y,J),y.prototype.ownsTarget=function(A){return!(!J.prototype.ownsTarget.call(this,A)&&A!==this.visual)},y.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)},y.prototype.pointerDown=function(A,X){J.prototype.pointerDown.call(this,A,X),this.state==="new"&&(this.createVisual(),this.moveVisual(A),this._state="creating")},y.prototype.manipulate=function(A){J.prototype.manipulate.call(this,A)},y.prototype.resize=function(A){J.prototype.resize.call(this,A),this.setSize()},y.prototype.setSize=function(){J.prototype.setSize.call(this),fe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},y.prototype.pointerUp=function(A){J.prototype.pointerUp.call(this,A),this.setSize()},y.prototype.setStrokeColor=function(A){this.strokeColor=A,this.visual&&fe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(A),this.stateChanged()},y.prototype.setFillColor=function(A){this.fillColor=A,this.visual&&fe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},y.prototype.setStrokeWidth=function(A){this.strokeWidth=A,this.visual&&fe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},y.prototype.setStrokeDasharray=function(A){this.strokeDasharray=A,this.visual&&fe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},y.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))},y.prototype.restoreState=function(A){var X=A;this.fillColor=X.fillColor,this.strokeColor=X.strokeColor,this.strokeWidth=X.strokeWidth,this.strokeDasharray=X.strokeDasharray,this.opacity=X.opacity,this.createVisual(),J.prototype.restoreState.call(this,A),this.setSize()},y.prototype.scale=function(A,X){J.prototype.scale.call(this,A,X),this.setSize()},y.title="Rectangle marker",y}(It),tn=function(J){function y(A,X,te,$){var ze=J.call(this,A,$||'')||this;return ze.widths=[],ze.widthBoxes=[],ze.widths=X,ze.currentWidth=te,ze.setCurrentWidth=ze.setCurrentWidth.bind(ze),ze}return ke(y,J),y.prototype.getUi=function(){var A=this,X=document.createElement("div");return X.style.display="flex",X.style.overflow="hidden",X.style.flexGrow="2",this.widths.forEach(function(te){var $=document.createElement("div");$.style.display="flex",$.style.flexGrow="2",$.style.alignItems="center",$.style.justifyContent="space-between",$.style.padding="5px",$.style.borderWidth="2px",$.style.borderStyle="solid",$.style.borderColor=te===A.currentWidth?A.uiStyleSettings.toolboxAccentColor:"transparent",$.addEventListener("click",function(){A.setCurrentWidth(te,$)}),X.appendChild($);var ze=document.createElement("div");ze.innerText=te.toString(),ze.style.marginRight="5px",$.appendChild(ze);var Ut=document.createElement("div");Ut.style.minHeight="20px",Ut.style.flexGrow="2",Ut.style.display="flex",Ut.style.alignItems="center";var pn=document.createElement("hr");pn.style.minWidth="20px",pn.style.border="0px",pn.style.borderTop=te+"px solid "+A.uiStyleSettings.toolboxColor,pn.style.flexGrow="2",Ut.appendChild(pn),$.appendChild(Ut),A.widthBoxes.push($)}),X},y.prototype.setCurrentWidth=function(A,X){var te=this;this.currentWidth=A,this.widthBoxes.forEach(function($){$.style.borderColor=$===X?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},y}(he),hn=function(J){function y(A,X,te,$){var ze=J.call(this,A,$||'')||this;return ze.styles=[],ze.styleBoxes=[],ze.styles=X,ze.currentStyle=te,ze.setCurrentStyle=ze.setCurrentStyle.bind(ze),ze}return ke(y,J),y.prototype.getUi=function(){var A=this,X=document.createElement("div");return X.style.display="flex",X.style.overflow="hidden",X.style.flexGrow="2",this.styles.forEach(function(te){var $=document.createElement("div");$.style.display="flex",$.style.alignItems="center",$.style.justifyContent="space-between",$.style.padding="5px",$.style.borderWidth="2px",$.style.borderStyle="solid",$.style.overflow="hidden",$.style.maxWidth=100/A.styles.length-5+"%",$.style.borderColor=te===A.currentStyle?A.uiStyleSettings.toolboxAccentColor:"transparent",$.addEventListener("click",function(){A.setCurrentStyle(te,$)}),X.appendChild($);var ze=document.createElement("div");ze.style.minHeight="20px",ze.style.flexGrow="2",ze.style.overflow="hidden";var Ut=` - `;ze.innerHTML=Ut,$.appendChild(ze),A.styleBoxes.push($)}),X},y.prototype.setCurrentStyle=function(A,X){var te=this;this.currentStyle=A,this.styleBoxes.forEach(function($){$.style.borderColor=$===X?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},y}(fe),tt=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.strokeColor=te.defaultColor,$.strokeWidth=te.defaultStrokeWidth,$.strokeDasharray=te.defaultStrokeDasharray,$.strokePanel=new _e("Line color",te.defaultColorSet,te.defaultColor),$.strokePanel.onColorChanged=$.setStrokeColor,$.strokeWidthPanel=new tn("Line width",te.defaultStrokeWidths,te.defaultStrokeWidth),$.strokeWidthPanel.onWidthChanged=$.setStrokeWidth,$.strokeStylePanel=new fn("Line style",te.defaultStrokeDasharrays,te.defaultStrokeDasharray),$.strokeStylePanel.onStyleChanged=$.setStrokeDasharray,$}return ke(y,J),Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=J.prototype.getState.call(this);return A.typeName=y.typeName,A},y.typeName="FrameMarker",y.title="Frame marker",y.icon='',y}(Bt),Ke=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},Ct=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.x1=0,$.y1=0,$.x2=0,$.y2=0,$.defaultLength=50,$.manipulationStartX=0,$.manipulationStartY=0,$.manipulationStartX1=0,$.manipulationStartY1=0,$.manipulationStartX2=0,$.manipulationStartY2=0,$.setupControlBox(),$}return ke(y,J),y.prototype.ownsTarget=function(A){return!!J.prototype.ownsTarget.call(this,A)||!(!this.grip1.ownsTarget(A)&&!this.grip2.ownsTarget(A))},y.prototype.pointerDown=function(A,X){J.prototype.pointerDown.call(this,A,X),this.manipulationStartX=A.x,this.manipulationStartY=A.y,this.state==="new"&&(this.x1=A.x,this.y1=A.y,this.x2=A.x,this.y2=A.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(X)?this.activeGrip=this.grip1:this.grip2.ownsTarget(X)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},y.prototype.pointerUp=function(A){var X=this.state;J.prototype.pointerUp.call(this,A),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(A),this._state="select",X==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},y.prototype.adjustVisual=function(){},y.prototype.manipulate=function(A){this.state==="creating"?this.resize(A):this.state==="move"?(this.x1=this.manipulationStartX1+A.x-this.manipulationStartX,this.y1=this.manipulationStartY1+A.y-this.manipulationStartY,this.x2=this.manipulationStartX2+A.x-this.manipulationStartX,this.y2=this.manipulationStartY2+A.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(A)},y.prototype.resize=function(A){switch(this.activeGrip){case this.grip1:this.x1=A.x,this.y1=A.y;break;case this.grip2:case void 0:this.x2=A.x,this.y2=A.y}this.adjustVisual(),this.adjustControlBox()},y.prototype.select=function(){J.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},y.prototype.deselect=function(){J.prototype.deselect.call(this),this.controlBox.style.display="none"},y.prototype.setupControlBox=function(){this.controlBox=he.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},y.prototype.adjustControlBox=function(){this.positionGrips()},y.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},y.prototype.createGrip=function(){var A=new Rt;return A.visual.transform.baseVal.appendItem(he.createTransform()),this.controlBox.appendChild(A.visual),A},y.prototype.positionGrips=function(){var A=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-A/2,this.y1-A/2),this.positionGrip(this.grip2.visual,this.x2-A/2,this.y2-A/2)},y.prototype.positionGrip=function(A,X,te){var $=A.transform.baseVal.getItem(0);$.setTranslate(X,te),A.transform.baseVal.replaceItem($,0)},y.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},J.prototype.getState.call(this))},y.prototype.restoreState=function(A){J.prototype.restoreState.call(this,A);var X=A;this.x1=X.x1,this.y1=X.y1,this.x2=X.x2,this.y2=X.y2},y.prototype.scale=function(A,X){J.prototype.scale.call(this,A,X),this.x1=this.x1*A,this.y1=this.y1*X,this.x2=this.x2*A,this.y2=this.y2*X,this.adjustVisual(),this.adjustControlBox()},y}(Fe),Dt=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.strokeColor="transparent",$.strokeWidth=0,$.strokeDasharray="",$.setStrokeColor=$.setStrokeColor.bind($),$.setStrokeWidth=$.setStrokeWidth.bind($),$.setStrokeDasharray=$.setStrokeDasharray.bind($),$.strokeColor=te.defaultColor,$.strokeWidth=te.defaultStrokeWidth,$.strokeDasharray=te.defaultStrokeDasharray,$.strokePanel=new _e("Line color",te.defaultColorSet,te.defaultColor),$.strokePanel.onColorChanged=$.setStrokeColor,$.strokeWidthPanel=new tn("Line width",te.defaultStrokeWidths,te.defaultStrokeWidth),$.strokeWidthPanel.onWidthChanged=$.setStrokeWidth,$.strokeStylePanel=new fn("Line style",te.defaultStrokeDasharrays,te.defaultStrokeDasharray),$.strokeStylePanel.onStyleChanged=$.setStrokeDasharray,$}return ke(y,J),y.prototype.ownsTarget=function(A){return!(!J.prototype.ownsTarget.call(this,A)&&A!==this.visual&&A!==this.selectorLine&&A!==this.visibleLine)},y.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)},y.prototype.pointerDown=function(A,X){J.prototype.pointerDown.call(this,A,X),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},y.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()]]))},y.prototype.setStrokeColor=function(A){this.strokeColor=A,this.adjustVisual(),this.colorChanged(A)},y.prototype.setStrokeWidth=function(A){this.strokeWidth=A,this.adjustVisual()},y.prototype.setStrokeDasharray=function(A){this.strokeDasharray=A,this.adjustVisual(),this.stateChanged()},Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},J.prototype.getState.call(this));return A.typeName=y.typeName,A},y.prototype.restoreState=function(A){J.prototype.restoreState.call(this,A);var X=A;this.strokeColor=X.strokeColor,this.strokeWidth=X.strokeWidth,this.strokeDasharray=X.strokeDasharray,this.createVisual(),this.adjustVisual()},y.typeName="LineMarker",y.title="Line marker",y.icon='',y}(Ct),st=function(J){function y(A,X,te,$){var ze=J.call(this,A,$||'')||this;return ze.fonts=[],ze.fontBoxes=[],ze.fonts=X,ze.currentFont=te,ze.setCurrentFont=ze.setCurrentFont.bind(ze),ze}return ke(y,J),y.prototype.getUi=function(){var A=this,X=document.createElement("div");return X.style.overflow="hidden",X.style.flexGrow="2",this.fonts.forEach(function(te){var $=document.createElement("div");$.style.display="inline-block",$.style.alignItems="center",$.style.justifyContent="space-between",$.style.padding="5px",$.style.borderWidth="2px",$.style.borderStyle="solid",$.style.overflow="hidden",$.style.maxWidth=100/A.fonts.length-5+"%",$.style.borderColor=te===A.currentFont?A.uiStyleSettings.toolboxAccentColor:"transparent",$.addEventListener("click",function(){A.setCurrentFont(te,$)}),X.appendChild($);var ze=document.createElement("div");ze.style.display="flex",ze.style.minHeight="20px",ze.style.flexGrow="2",ze.style.fontFamily=te,ze.style.overflow="hidden";var Ut=document.createElement("div");Ut.style.whiteSpace="nowrap",Ut.style.overflow="hidden",Ut.style.textOverflow="ellipsis",Ut.innerHTML="The quick brown fox jumps over the lazy dog",ze.appendChild(Ut),$.appendChild(ze),A.fontBoxes.push($)}),X},y.prototype.setCurrentFont=function(A,X){var te=this;this.currentFont=A,this.fontBoxes.forEach(function($){$.style.borderColor=$===X?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},y}(fe),xt=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.color="transparent",$.padding=5,$.DEFAULT_TEXT="your text here",$.text=$.DEFAULT_TEXT,$.isMoved=!1,$.color=te.defaultColor,$.fontFamily=te.defaultFontFamily,$.defaultSize={x:100,y:30},$.setColor=$.setColor.bind($),$.setFont=$.setFont.bind($),$.renderText=$.renderText.bind($),$.sizeText=$.sizeText.bind($),$.textEditDivClicked=$.textEditDivClicked.bind($),$.showTextEditor=$.showTextEditor.bind($),$.setSize=$.setSize.bind($),$.positionTextEditor=$.positionTextEditor.bind($),$.colorPanel=new _e("Color",te.defaultColorSet,te.defaultColor),$.colorPanel.onColorChanged=$.setColor,$.fontFamilyPanel=new st("Font",te.defaultFontFamilies,te.defaultFontFamily),$.fontFamilyPanel.onFontChanged=$.setFont,$}return ke(y,J),y.prototype.ownsTarget=function(A){if(J.prototype.ownsTarget.call(this,A)||A===this.visual||A===this.textElement||A===this.bgRectangle)return!0;var X=!1;return this.textElement.childNodes.forEach(function(te){te===A&&(X=!0)}),X},y.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()},y.prototype.pointerDown=function(A,X){J.prototype.pointerDown.call(this,A,X),this.isMoved=!1,this.pointerDownPoint=A,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(A),this._state="creating")},y.prototype.renderText=function(){var A=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(X){A.textElement.appendChild(he.createTSpan(X.trim()===""?" ":X.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},y.prototype.getTextScale=function(){var A=this.textElement.getBBox(),X=1;if(A.width>0&&A.height>0){var te=(1*this.width-this.width*this.padding*2/100)/A.width,$=(1*this.height-this.height*this.padding*2/100)/A.height;X=Math.min(te,$)}return X},y.prototype.getTextPosition=function(A){var X=this.textElement.getBBox(),te=0,$=0;return X.width>0&&X.height>0&&(te=(this.width-X.width*A)/2,$=this.height/2-X.height*A/2),{x:te,y:$}},y.prototype.sizeText=function(){var A=this.textElement.getBBox(),X=this.getTextScale(),te=this.getTextPosition(X);te.y-=A.y*X,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+te.x+"px, "+te.y+"px) scale("+X+", "+X+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(te.x,te.y),this.textElement.transform.baseVal.getItem(1).setScale(X,X))},y.prototype.manipulate=function(A){J.prototype.manipulate.call(this,A),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(A.x-this.pointerDownPoint.x)>5||Math.abs(A.y-this.pointerDownPoint.y)>5)},y.prototype.resize=function(A){J.prototype.resize.call(this,A),this.isMoved=!0,this.setSize(),this.sizeText()},y.prototype.setSize=function(){J.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()]]))},y.prototype.pointerUp=function(A){var X=this.state;X==="creating"&&(this._suppressMarkerCreateEvent=!0),J.prototype.pointerUp.call(this,A),this.setSize(),(X==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},y.prototype.showTextEditor=function(){var A=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(X){X.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var X=Number.parseFloat(A.textEditor.style.fontSize);A.textEditor.clientWidth>=Number.parseInt(A.textEditor.style.maxWidth)&&X>.9;)X-=.1,A.textEditor.style.fontSize=Math.max(X,.9)+"em"}),this.textEditor.addEventListener("keyup",function(X){X.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(X){if(X.clipboardData){var te=X.clipboardData.getData("text"),$=window.getSelection();if(!$.rangeCount)return!1;$.deleteFromDocument(),$.getRangeAt(0).insertNode(document.createTextNode(te)),X.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){A.textEditDivClicked(A.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},y.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var A=this.getTextScale(),X=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),te=this.textElement.getBBox(),$={x:te.width*A,y:te.height*A};X.x-=$.x/2,X.y-=$.y/2,this.textEditor.style.top=X.y+"px",this.textEditor.style.left=X.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-X.x+"px",this.textEditor.style.fontSize=Math.max(16*A,12)+"px",this.textElement.style.display="none"}},y.prototype.textEditDivClicked=function(A){this.text=A.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},y.prototype.select=function(){J.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},y.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),J.prototype.deselect.call(this)},y.prototype.dblClick=function(A,X){J.prototype.dblClick.call(this,A,X),this.showTextEditor()},y.prototype.setColor=function(A){this.textElement&&he.setAttributes(this.textElement,[["fill",A]]),this.color=A,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(A)},y.prototype.setFont=function(A){this.textElement&&he.setAttributes(this.textElement,[["font-family",A]]),this.fontFamily=A,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},y.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},y.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},J.prototype.getState.call(this));return A.typeName=y.typeName,A},y.prototype.restoreState=function(A){var X=A;this.color=X.color,this.fontFamily=X.fontFamily,this.padding=X.padding,this.text=X.text,this.createVisual(),J.prototype.restoreState.call(this,A),this.setSize()},y.prototype.scale=function(A,X){J.prototype.scale.call(this,A,X),this.setSize(),this.sizeText(),this.positionTextEditor()},y.typeName="TextMarker",y.title="Text marker",y.icon='',y}(It),je=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.color="transparent",$.lineWidth=3,$.drawing=!1,$.pixelRatio=1,$.color=te.defaultColor,$.lineWidth=te.defaultStrokeWidth,$.pixelRatio=te.freehandPixelRatio,$.setColor=$.setColor.bind($),$.addCanvas=$.addCanvas.bind($),$.finishCreation=$.finishCreation.bind($),$.setLineWidth=$.setLineWidth.bind($),$.colorPanel=new _e("Color",te.defaultColorSet,te.defaultColor),$.colorPanel.onColorChanged=$.setColor,$.lineWidthPanel=new tn("Line width",te.defaultStrokeWidths,te.defaultStrokeWidth),$.lineWidthPanel.onWidthChanged=$.setLineWidth,$}return ke(y,J),y.prototype.ownsTarget=function(A){return!(!J.prototype.ownsTarget.call(this,A)&&A!==this.visual&&A!==this.drawingImage)},y.prototype.createVisual=function(){this.visual=he.createGroup(),this.drawingImage=he.createImage(),this.visual.appendChild(this.drawingImage);var A=he.createTransform();this.visual.transform.baseVal.appendItem(A),this.addMarkerVisualToContainer(this.visual)},y.prototype.pointerDown=function(A,X){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(A.x,A.y),this.drawing=!0):J.prototype.pointerDown.call(this,A,X)},y.prototype.manipulate=function(A){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(A.x,A.y),this.canvasContext.stroke()):J.prototype.manipulate.call(this,A)},y.prototype.resize=function(A){J.prototype.resize.call(this,A),he.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),he.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},y.prototype.pointerUp=function(A){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):J.prototype.pointerUp.call(this,A)},y.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)},y.prototype.select=function(){this.state==="creating"&&this.finishCreation(),J.prototype.select.call(this)},y.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),J.prototype.deselect.call(this)},y.prototype.finishCreation=function(){for(var A=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),X=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],te=X[0],$=X[1],ze=X[2],Ut=X[3],pn=!1,Nn=0;Nn0&&(pn=!0,Nn<$&&($=Nn),KtUt&&(Ut=Nn),Kt>ze&&(ze=Kt));if(pn){this.left=te/this.pixelRatio,this.top=$/this.pixelRatio,this.width=(ze-te)/this.pixelRatio,this.height=(Ut-$)/this.pixelRatio;var rn=document.createElement("canvas");rn.width=ze-te,rn.height=Ut-$,rn.getContext("2d").putImageData(this.canvasContext.getImageData(te,$,ze-te,Ut-$),0,0),this.drawingImgUrl=rn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},y.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})},y.prototype.setColor=function(A){this.color=A,this.colorChanged(A)},y.prototype.setLineWidth=function(A){this.lineWidth=A},Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=Object.assign({drawingImgUrl:this.drawingImgUrl},J.prototype.getState.call(this));return A.typeName=y.typeName,A},y.prototype.restoreState=function(A){this.createVisual(),J.prototype.restoreState.call(this,A),this.drawingImgUrl=A.drawingImgUrl,this.setDrawingImage()},y.prototype.scale=function(A,X){J.prototype.scale.call(this,A,X),this.setDrawingImage()},y.typeName="FreehandMarker",y.title="Freehand marker",y.icon='',y}(It),we=function(J){function y(A,X,te){var $=J.call(this,A,te||'')||this;return $.typeBoxes=[],$.currentType=X,$.setCurrentType=$.setCurrentType.bind($),$}return ke(y,J),y.prototype.getUi=function(){var A=this,X=document.createElement("div");X.style.display="flex",X.style.overflow="hidden",X.style.flexGrow="2";for(var te=function(Ut){var pn="both";switch(Ut){case 0:pn="both";break;case 1:pn="start";break;case 2:pn="end";break;case 3:pn="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=pn===$.currentType?$.uiStyleSettings.toolboxAccentColor:"transparent",Nn.addEventListener("click",function(){A.setCurrentType(pn,Nn)}),X.appendChild(Nn),pn==="both"||pn==="start"){var Kt=document.createElement("div");Kt.style.display="flex",Kt.style.alignItems="center",Kt.style.minHeight="20px",Kt.innerHTML=` + `;ze.innerHTML=Ut,$.appendChild(ze),A.styleBoxes.push($)}),X},y.prototype.setCurrentStyle=function(A,X){var te=this;this.currentStyle=A,this.styleBoxes.forEach(function($){$.style.borderColor=$===X?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},y}(he),tt=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.strokeColor=te.defaultColor,$.strokeWidth=te.defaultStrokeWidth,$.strokeDasharray=te.defaultStrokeDasharray,$.strokePanel=new _e("Line color",te.defaultColorSet,te.defaultColor),$.strokePanel.onColorChanged=$.setStrokeColor,$.strokeWidthPanel=new tn("Line width",te.defaultStrokeWidths,te.defaultStrokeWidth),$.strokeWidthPanel.onWidthChanged=$.setStrokeWidth,$.strokeStylePanel=new hn("Line style",te.defaultStrokeDasharrays,te.defaultStrokeDasharray),$.strokeStylePanel.onStyleChanged=$.setStrokeDasharray,$}return ke(y,J),Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=J.prototype.getState.call(this);return A.typeName=y.typeName,A},y.typeName="FrameMarker",y.title="Frame marker",y.icon='',y}(Bt),Ke=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},Ct=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.x1=0,$.y1=0,$.x2=0,$.y2=0,$.defaultLength=50,$.manipulationStartX=0,$.manipulationStartY=0,$.manipulationStartX1=0,$.manipulationStartY1=0,$.manipulationStartX2=0,$.manipulationStartY2=0,$.setupControlBox(),$}return ke(y,J),y.prototype.ownsTarget=function(A){return!!J.prototype.ownsTarget.call(this,A)||!(!this.grip1.ownsTarget(A)&&!this.grip2.ownsTarget(A))},y.prototype.pointerDown=function(A,X){J.prototype.pointerDown.call(this,A,X),this.manipulationStartX=A.x,this.manipulationStartY=A.y,this.state==="new"&&(this.x1=A.x,this.y1=A.y,this.x2=A.x,this.y2=A.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(X)?this.activeGrip=this.grip1:this.grip2.ownsTarget(X)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},y.prototype.pointerUp=function(A){var X=this.state;J.prototype.pointerUp.call(this,A),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(A),this._state="select",X==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},y.prototype.adjustVisual=function(){},y.prototype.manipulate=function(A){this.state==="creating"?this.resize(A):this.state==="move"?(this.x1=this.manipulationStartX1+A.x-this.manipulationStartX,this.y1=this.manipulationStartY1+A.y-this.manipulationStartY,this.x2=this.manipulationStartX2+A.x-this.manipulationStartX,this.y2=this.manipulationStartY2+A.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(A)},y.prototype.resize=function(A){switch(this.activeGrip){case this.grip1:this.x1=A.x,this.y1=A.y;break;case this.grip2:case void 0:this.x2=A.x,this.y2=A.y}this.adjustVisual(),this.adjustControlBox()},y.prototype.select=function(){J.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},y.prototype.deselect=function(){J.prototype.deselect.call(this),this.controlBox.style.display="none"},y.prototype.setupControlBox=function(){this.controlBox=fe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},y.prototype.adjustControlBox=function(){this.positionGrips()},y.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},y.prototype.createGrip=function(){var A=new Rt;return A.visual.transform.baseVal.appendItem(fe.createTransform()),this.controlBox.appendChild(A.visual),A},y.prototype.positionGrips=function(){var A=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-A/2,this.y1-A/2),this.positionGrip(this.grip2.visual,this.x2-A/2,this.y2-A/2)},y.prototype.positionGrip=function(A,X,te){var $=A.transform.baseVal.getItem(0);$.setTranslate(X,te),A.transform.baseVal.replaceItem($,0)},y.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},J.prototype.getState.call(this))},y.prototype.restoreState=function(A){J.prototype.restoreState.call(this,A);var X=A;this.x1=X.x1,this.y1=X.y1,this.x2=X.x2,this.y2=X.y2},y.prototype.scale=function(A,X){J.prototype.scale.call(this,A,X),this.x1=this.x1*A,this.y1=this.y1*X,this.x2=this.x2*A,this.y2=this.y2*X,this.adjustVisual(),this.adjustControlBox()},y}(Fe),Dt=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.strokeColor="transparent",$.strokeWidth=0,$.strokeDasharray="",$.setStrokeColor=$.setStrokeColor.bind($),$.setStrokeWidth=$.setStrokeWidth.bind($),$.setStrokeDasharray=$.setStrokeDasharray.bind($),$.strokeColor=te.defaultColor,$.strokeWidth=te.defaultStrokeWidth,$.strokeDasharray=te.defaultStrokeDasharray,$.strokePanel=new _e("Line color",te.defaultColorSet,te.defaultColor),$.strokePanel.onColorChanged=$.setStrokeColor,$.strokeWidthPanel=new tn("Line width",te.defaultStrokeWidths,te.defaultStrokeWidth),$.strokeWidthPanel.onWidthChanged=$.setStrokeWidth,$.strokeStylePanel=new hn("Line style",te.defaultStrokeDasharrays,te.defaultStrokeDasharray),$.strokeStylePanel.onStyleChanged=$.setStrokeDasharray,$}return ke(y,J),y.prototype.ownsTarget=function(A){return!(!J.prototype.ownsTarget.call(this,A)&&A!==this.visual&&A!==this.selectorLine&&A!==this.visibleLine)},y.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)},y.prototype.pointerDown=function(A,X){J.prototype.pointerDown.call(this,A,X),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},y.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()]]))},y.prototype.setStrokeColor=function(A){this.strokeColor=A,this.adjustVisual(),this.colorChanged(A)},y.prototype.setStrokeWidth=function(A){this.strokeWidth=A,this.adjustVisual()},y.prototype.setStrokeDasharray=function(A){this.strokeDasharray=A,this.adjustVisual(),this.stateChanged()},Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},J.prototype.getState.call(this));return A.typeName=y.typeName,A},y.prototype.restoreState=function(A){J.prototype.restoreState.call(this,A);var X=A;this.strokeColor=X.strokeColor,this.strokeWidth=X.strokeWidth,this.strokeDasharray=X.strokeDasharray,this.createVisual(),this.adjustVisual()},y.typeName="LineMarker",y.title="Line marker",y.icon='',y}(Ct),st=function(J){function y(A,X,te,$){var ze=J.call(this,A,$||'')||this;return ze.fonts=[],ze.fontBoxes=[],ze.fonts=X,ze.currentFont=te,ze.setCurrentFont=ze.setCurrentFont.bind(ze),ze}return ke(y,J),y.prototype.getUi=function(){var A=this,X=document.createElement("div");return X.style.overflow="hidden",X.style.flexGrow="2",this.fonts.forEach(function(te){var $=document.createElement("div");$.style.display="inline-block",$.style.alignItems="center",$.style.justifyContent="space-between",$.style.padding="5px",$.style.borderWidth="2px",$.style.borderStyle="solid",$.style.overflow="hidden",$.style.maxWidth=100/A.fonts.length-5+"%",$.style.borderColor=te===A.currentFont?A.uiStyleSettings.toolboxAccentColor:"transparent",$.addEventListener("click",function(){A.setCurrentFont(te,$)}),X.appendChild($);var ze=document.createElement("div");ze.style.display="flex",ze.style.minHeight="20px",ze.style.flexGrow="2",ze.style.fontFamily=te,ze.style.overflow="hidden";var Ut=document.createElement("div");Ut.style.whiteSpace="nowrap",Ut.style.overflow="hidden",Ut.style.textOverflow="ellipsis",Ut.innerHTML="The quick brown fox jumps over the lazy dog",ze.appendChild(Ut),$.appendChild(ze),A.fontBoxes.push($)}),X},y.prototype.setCurrentFont=function(A,X){var te=this;this.currentFont=A,this.fontBoxes.forEach(function($){$.style.borderColor=$===X?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},y}(he),xt=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.color="transparent",$.padding=5,$.DEFAULT_TEXT="your text here",$.text=$.DEFAULT_TEXT,$.isMoved=!1,$.color=te.defaultColor,$.fontFamily=te.defaultFontFamily,$.defaultSize={x:100,y:30},$.setColor=$.setColor.bind($),$.setFont=$.setFont.bind($),$.renderText=$.renderText.bind($),$.sizeText=$.sizeText.bind($),$.textEditDivClicked=$.textEditDivClicked.bind($),$.showTextEditor=$.showTextEditor.bind($),$.setSize=$.setSize.bind($),$.positionTextEditor=$.positionTextEditor.bind($),$.colorPanel=new _e("Color",te.defaultColorSet,te.defaultColor),$.colorPanel.onColorChanged=$.setColor,$.fontFamilyPanel=new st("Font",te.defaultFontFamilies,te.defaultFontFamily),$.fontFamilyPanel.onFontChanged=$.setFont,$}return ke(y,J),y.prototype.ownsTarget=function(A){if(J.prototype.ownsTarget.call(this,A)||A===this.visual||A===this.textElement||A===this.bgRectangle)return!0;var X=!1;return this.textElement.childNodes.forEach(function(te){te===A&&(X=!0)}),X},y.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()},y.prototype.pointerDown=function(A,X){J.prototype.pointerDown.call(this,A,X),this.isMoved=!1,this.pointerDownPoint=A,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(A),this._state="creating")},y.prototype.renderText=function(){var A=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(X){A.textElement.appendChild(fe.createTSpan(X.trim()===""?" ":X.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},y.prototype.getTextScale=function(){var A=this.textElement.getBBox(),X=1;if(A.width>0&&A.height>0){var te=(1*this.width-this.width*this.padding*2/100)/A.width,$=(1*this.height-this.height*this.padding*2/100)/A.height;X=Math.min(te,$)}return X},y.prototype.getTextPosition=function(A){var X=this.textElement.getBBox(),te=0,$=0;return X.width>0&&X.height>0&&(te=(this.width-X.width*A)/2,$=this.height/2-X.height*A/2),{x:te,y:$}},y.prototype.sizeText=function(){var A=this.textElement.getBBox(),X=this.getTextScale(),te=this.getTextPosition(X);te.y-=A.y*X,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+te.x+"px, "+te.y+"px) scale("+X+", "+X+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(te.x,te.y),this.textElement.transform.baseVal.getItem(1).setScale(X,X))},y.prototype.manipulate=function(A){J.prototype.manipulate.call(this,A),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(A.x-this.pointerDownPoint.x)>5||Math.abs(A.y-this.pointerDownPoint.y)>5)},y.prototype.resize=function(A){J.prototype.resize.call(this,A),this.isMoved=!0,this.setSize(),this.sizeText()},y.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()]]))},y.prototype.pointerUp=function(A){var X=this.state;X==="creating"&&(this._suppressMarkerCreateEvent=!0),J.prototype.pointerUp.call(this,A),this.setSize(),(X==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},y.prototype.showTextEditor=function(){var A=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(X){X.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var X=Number.parseFloat(A.textEditor.style.fontSize);A.textEditor.clientWidth>=Number.parseInt(A.textEditor.style.maxWidth)&&X>.9;)X-=.1,A.textEditor.style.fontSize=Math.max(X,.9)+"em"}),this.textEditor.addEventListener("keyup",function(X){X.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(X){if(X.clipboardData){var te=X.clipboardData.getData("text"),$=window.getSelection();if(!$.rangeCount)return!1;$.deleteFromDocument(),$.getRangeAt(0).insertNode(document.createTextNode(te)),X.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){A.textEditDivClicked(A.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},y.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var A=this.getTextScale(),X=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),te=this.textElement.getBBox(),$={x:te.width*A,y:te.height*A};X.x-=$.x/2,X.y-=$.y/2,this.textEditor.style.top=X.y+"px",this.textEditor.style.left=X.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-X.x+"px",this.textEditor.style.fontSize=Math.max(16*A,12)+"px",this.textElement.style.display="none"}},y.prototype.textEditDivClicked=function(A){this.text=A.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},y.prototype.select=function(){J.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},y.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),J.prototype.deselect.call(this)},y.prototype.dblClick=function(A,X){J.prototype.dblClick.call(this,A,X),this.showTextEditor()},y.prototype.setColor=function(A){this.textElement&&fe.setAttributes(this.textElement,[["fill",A]]),this.color=A,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(A)},y.prototype.setFont=function(A){this.textElement&&fe.setAttributes(this.textElement,[["font-family",A]]),this.fontFamily=A,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},y.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},y.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},J.prototype.getState.call(this));return A.typeName=y.typeName,A},y.prototype.restoreState=function(A){var X=A;this.color=X.color,this.fontFamily=X.fontFamily,this.padding=X.padding,this.text=X.text,this.createVisual(),J.prototype.restoreState.call(this,A),this.setSize()},y.prototype.scale=function(A,X){J.prototype.scale.call(this,A,X),this.setSize(),this.sizeText(),this.positionTextEditor()},y.typeName="TextMarker",y.title="Text marker",y.icon='',y}(It),je=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.color="transparent",$.lineWidth=3,$.drawing=!1,$.pixelRatio=1,$.color=te.defaultColor,$.lineWidth=te.defaultStrokeWidth,$.pixelRatio=te.freehandPixelRatio,$.setColor=$.setColor.bind($),$.addCanvas=$.addCanvas.bind($),$.finishCreation=$.finishCreation.bind($),$.setLineWidth=$.setLineWidth.bind($),$.colorPanel=new _e("Color",te.defaultColorSet,te.defaultColor),$.colorPanel.onColorChanged=$.setColor,$.lineWidthPanel=new tn("Line width",te.defaultStrokeWidths,te.defaultStrokeWidth),$.lineWidthPanel.onWidthChanged=$.setLineWidth,$}return ke(y,J),y.prototype.ownsTarget=function(A){return!(!J.prototype.ownsTarget.call(this,A)&&A!==this.visual&&A!==this.drawingImage)},y.prototype.createVisual=function(){this.visual=fe.createGroup(),this.drawingImage=fe.createImage(),this.visual.appendChild(this.drawingImage);var A=fe.createTransform();this.visual.transform.baseVal.appendItem(A),this.addMarkerVisualToContainer(this.visual)},y.prototype.pointerDown=function(A,X){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(A.x,A.y),this.drawing=!0):J.prototype.pointerDown.call(this,A,X)},y.prototype.manipulate=function(A){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(A.x,A.y),this.canvasContext.stroke()):J.prototype.manipulate.call(this,A)},y.prototype.resize=function(A){J.prototype.resize.call(this,A),fe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),fe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},y.prototype.pointerUp=function(A){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):J.prototype.pointerUp.call(this,A)},y.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)},y.prototype.select=function(){this.state==="creating"&&this.finishCreation(),J.prototype.select.call(this)},y.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),J.prototype.deselect.call(this)},y.prototype.finishCreation=function(){for(var A=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),X=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],te=X[0],$=X[1],ze=X[2],Ut=X[3],pn=!1,Nn=0;Nn0&&(pn=!0,Nn<$&&($=Nn),KtUt&&(Ut=Nn),Kt>ze&&(ze=Kt));if(pn){this.left=te/this.pixelRatio,this.top=$/this.pixelRatio,this.width=(ze-te)/this.pixelRatio,this.height=(Ut-$)/this.pixelRatio;var rn=document.createElement("canvas");rn.width=ze-te,rn.height=Ut-$,rn.getContext("2d").putImageData(this.canvasContext.getImageData(te,$,ze-te,Ut-$),0,0),this.drawingImgUrl=rn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},y.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})},y.prototype.setColor=function(A){this.color=A,this.colorChanged(A)},y.prototype.setLineWidth=function(A){this.lineWidth=A},Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=Object.assign({drawingImgUrl:this.drawingImgUrl},J.prototype.getState.call(this));return A.typeName=y.typeName,A},y.prototype.restoreState=function(A){this.createVisual(),J.prototype.restoreState.call(this,A),this.drawingImgUrl=A.drawingImgUrl,this.setDrawingImage()},y.prototype.scale=function(A,X){J.prototype.scale.call(this,A,X),this.setDrawingImage()},y.typeName="FreehandMarker",y.title="Freehand marker",y.icon='',y}(It),we=function(J){function y(A,X,te){var $=J.call(this,A,te||'')||this;return $.typeBoxes=[],$.currentType=X,$.setCurrentType=$.setCurrentType.bind($),$}return ke(y,J),y.prototype.getUi=function(){var A=this,X=document.createElement("div");X.style.display="flex",X.style.overflow="hidden",X.style.flexGrow="2";for(var te=function(Ut){var pn="both";switch(Ut){case 0:pn="both";break;case 1:pn="start";break;case 2:pn="end";break;case 3:pn="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=pn===$.currentType?$.uiStyleSettings.toolboxAccentColor:"transparent",Nn.addEventListener("click",function(){A.setCurrentType(pn,Nn)}),X.appendChild(Nn),pn==="both"||pn==="start"){var Kt=document.createElement("div");Kt.style.display="flex",Kt.style.alignItems="center",Kt.style.minHeight="20px",Kt.innerHTML=` `,Kt.style.marginLeft="5px",Nn.appendChild(Kt)}var rn=document.createElement("div");rn.style.display="flex",rn.style.alignItems="center",rn.style.minHeight="20px",rn.style.flexGrow="2";var At=document.createElement("hr");if(At.style.minWidth="20px",At.style.border="0px",At.style.borderTop="3px solid "+($.uiStyleSettings!==void 0?$.uiStyleSettings.toolboxColor:"#eeeeee"),At.style.flexGrow="2",rn.appendChild(At),Nn.appendChild(rn),pn==="both"||pn==="end"){var Yt=document.createElement("div");Yt.style.display="flex",Yt.style.alignItems="center",Yt.style.minHeight="20px",Yt.innerHTML=` - `,Yt.style.marginRight="5px",Nn.appendChild(Yt)}$.typeBoxes.push(Nn)},$=this,ze=0;ze<4;ze++)te(ze);return X},y.prototype.setCurrentType=function(A,X){var te=this;this.currentType=A,this.typeBoxes.forEach(function($){$.style.borderColor=$===X?te.uiStyleSettings!==void 0?te.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},y}(fe),Te=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.arrowType="end",$.arrowBaseHeight=10,$.arrowBaseWidth=10,$.getArrowPoints=$.getArrowPoints.bind($),$.setArrowType=$.setArrowType.bind($),$.arrowTypePanel=new we("Arrow type","end"),$.arrowTypePanel.onArrowTypeChanged=$.setArrowType,$}return ke(y,J),y.prototype.ownsTarget=function(A){return!(!J.prototype.ownsTarget.call(this,A)&&A!==this.arrow1&&A!==this.arrow2)},y.prototype.getArrowPoints=function(A,X){var te=this.arrowBaseWidth+2*this.strokeWidth,$=this.arrowBaseHeight+2*this.strokeWidth;return A-te/2+","+(X+$/2)+" "+A+","+(X-$/2)+" "+(A+te/2)+","+(X+$/2)},y.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)},y.prototype.pointerDown=function(A,X){J.prototype.pointerDown.call(this,A,X),this.state==="creating"&&this.createTips()},y.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",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 A=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),X=this.arrow1.transform.baseVal.getItem(0);X.setRotate(A,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(X,0);var te=this.arrow2.transform.baseVal.getItem(0);te.setRotate(A+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(te,0)}},y.prototype.setArrowType=function(A){this.arrowType=A,this.adjustVisual(),this.stateChanged()},Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=Object.assign({arrowType:this.arrowType},J.prototype.getState.call(this));return A.typeName=y.typeName,A},y.prototype.restoreState=function(A){J.prototype.restoreState.call(this,A);var X=A;this.arrowType=X.arrowType,this.createTips(),this.adjustVisual()},y.typeName="ArrowMarker",y.title="Arrow marker",y.icon='',y}(Dt),ue=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.fillColor=te.defaultFillColor,$.strokeWidth=0,$.fillPanel=new _e("Color",te.defaultColorSet,te.defaultFillColor),$.fillPanel.onColorChanged=$.setFillColor,$}return ke(y,J),Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=J.prototype.getState.call(this);return A.typeName=y.typeName,A},y.typeName="CoverMarker",y.title="Cover marker",y.icon='',y}(Bt),pe=function(J){function y(A,X,te,$){var ze=J.call(this,A,$||'')||this;return ze.opacities=[],ze.opacityBoxes=[],ze.opacities=X,ze.currentOpacity=te,ze.setCurrentOpacity=ze.setCurrentOpacity.bind(ze),ze}return ke(y,J),y.prototype.getUi=function(){var A=this,X=document.createElement("div");return X.style.display="flex",X.style.overflow="hidden",X.style.flexGrow="2",X.style.justifyContent="space-between",this.opacities.forEach(function(te){var $=document.createElement("div");$.style.display="flex",$.style.alignItems="center",$.style.justifyContent="center",$.style.padding="5px",$.style.borderWidth="2px",$.style.borderStyle="solid",$.style.borderColor=te===A.currentOpacity?A.uiStyleSettings.toolboxAccentColor:"transparent",$.addEventListener("click",function(){A.setCurrentOpacity(te,$)}),X.appendChild($);var ze=document.createElement("div");ze.innerText=100*te+"%",$.appendChild(ze),A.opacityBoxes.push($)}),X},y.prototype.setCurrentOpacity=function(A,X){var te=this;this.currentOpacity=A,this.opacityBoxes.forEach(function($){$.style.borderColor=$===X?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},y}(fe),me=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.setOpacity=$.setOpacity.bind($),$.fillColor=te.defaultHighlightColor,$.strokeWidth=0,$.opacity=te.defaultHighlightOpacity,$.fillPanel=new _e("Color",te.defaultColorSet,$.fillColor),$.fillPanel.onColorChanged=$.setFillColor,$.opacityPanel=new pe("Opacity",te.defaultOpacitySteps,$.opacity),$.opacityPanel.onOpacityChanged=$.setOpacity,$}return ke(y,J),y.prototype.setOpacity=function(A){this.opacity=A,this.visual&&he.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=J.prototype.getState.call(this);return A.typeName=y.typeName,A},y.typeName="HighlightMarker",y.title="Highlight marker",y.icon='',y}(ue),xe='',nt=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.bgColor="transparent",$.tipPosition={x:0,y:0},$.tipBase1Position={x:0,y:0},$.tipBase2Position={x:0,y:0},$.tipMoving=!1,$.color=te.defaultStrokeColor,$.bgColor=te.defaultFillColor,$.fontFamily=te.defaultFontFamily,$.defaultSize={x:100,y:30},$.setBgColor=$.setBgColor.bind($),$.getTipPoints=$.getTipPoints.bind($),$.positionTip=$.positionTip.bind($),$.setTipPoints=$.setTipPoints.bind($),$.colorPanel=new _e("Text color",te.defaultColorSet,$.color,''),$.colorPanel.onColorChanged=$.setColor,$.bgColorPanel=new _e("Fill color",te.defaultColorSet,$.bgColor,xe),$.bgColorPanel.onColorChanged=$.setBgColor,$.fontFamilyPanel=new st("Font",te.defaultFontFamilies,te.defaultFontFamily),$.fontFamilyPanel.onFontChanged=$.setFont,$.tipGrip=new Rt,$.tipGrip.visual.transform.baseVal.appendItem(he.createTransform()),$.controlBox.appendChild($.tipGrip.visual),$}return ke(y,J),y.prototype.ownsTarget=function(A){return J.prototype.ownsTarget.call(this,A)||this.tipGrip.ownsTarget(A)||this.tip===A},y.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)},y.prototype.pointerDown=function(A,X){this.state==="new"&&J.prototype.pointerDown.call(this,A,X),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(X)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):J.prototype.pointerDown.call(this,A,X)},y.prototype.pointerUp=function(A){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,J.prototype.pointerUp.call(this,A);else{var X=this.state==="creating";J.prototype.pointerUp.call(this,A),this.setTipPoints(X),this.positionTip()}},y.prototype.manipulate=function(A){if(this.tipMoving){var X=this.unrotatePoint(A);this.tipPosition={x:X.x-this.manipulationStartLeft,y:X.y-this.manipulationStartTop},this.positionTip()}else J.prototype.manipulate.call(this,A)},y.prototype.setBgColor=function(A){this.bgRectangle&&this.tip&&(he.setAttributes(this.bgRectangle,[["fill",A]]),he.setAttributes(this.tip,[["fill",A]])),this.bgColor=A,this.fillColorChanged(A)},y.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},y.prototype.setTipPoints=function(A){A===void 0&&(A=!1);var X=Math.min(this.height/2,15),te=this.height/5;A&&(this.tipPosition={x:X+te/2,y:this.height+20});var $=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?$.1)){var A=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),X=this.tip1.transform.baseVal.getItem(0);X.setRotate(A,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(X,0);var te=this.tip2.transform.baseVal.getItem(0);te.setRotate(A+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(te,0)}},Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=J.prototype.getState.call(this);return A.typeName=y.typeName,A},y.prototype.restoreState=function(A){J.prototype.restoreState.call(this,A),this.createTips(),this.adjustVisual()},y.typeName="MeasurementMarker",y.title="Measurement marker",y.icon='',y}(Dt),en=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.strokePanel.colors=te.defaultColorSet,$.fillColor="transparent",$}return ke(y,J),Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=J.prototype.getState.call(this);return A.typeName=y.typeName,A},y.typeName="EllipseFrameMarker",y.title="Ellipse frame marker",y.icon='',y}(We),vn=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(y){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(y)||(this.undoStack.push(y),JSON.stringify(this.lastRedoStep)!==JSON.stringify(y)&&this.redoStack.splice(0,this.redoStack.length))},J.prototype.replaceLastUndoStep=function(y){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=y)},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 y=this.undoStack.pop();return y!==void 0&&this.redoStack.push(y),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}(),Zt=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.strokeColor="transparent",$.strokeWidth=0,$.strokeDasharray="",$.curveX=0,$.curveY=0,$.manipulationStartCurveX=0,$.manipulationStartCurveY=0,$.setStrokeColor=$.setStrokeColor.bind($),$.setStrokeWidth=$.setStrokeWidth.bind($),$.setStrokeDasharray=$.setStrokeDasharray.bind($),$.positionGrips=$.positionGrips.bind($),$.addControlGrips=$.addControlGrips.bind($),$.adjustVisual=$.adjustVisual.bind($),$.setupControlBox=$.setupControlBox.bind($),$.resize=$.resize.bind($),$.strokeColor=te.defaultColor,$.strokeWidth=te.defaultStrokeWidth,$.strokeDasharray=te.defaultStrokeDasharray,$.strokePanel=new _e("Line color",te.defaultColorSet,te.defaultColor),$.strokePanel.onColorChanged=$.setStrokeColor,$.strokeWidthPanel=new tn("Line width",te.defaultStrokeWidths,te.defaultStrokeWidth),$.strokeWidthPanel.onWidthChanged=$.setStrokeWidth,$.strokeStylePanel=new fn("Line style",te.defaultStrokeDasharrays,te.defaultStrokeDasharray),$.strokeStylePanel.onStyleChanged=$.setStrokeDasharray,$}return ke(y,J),y.prototype.ownsTarget=function(A){return!(!J.prototype.ownsTarget.call(this,A)&&A!==this.visual&&A!==this.selectorCurve&&A!==this.visibleCurve&&!this.curveGrip.ownsTarget(A))},y.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},y.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)},y.prototype.pointerDown=function(A,X){J.prototype.pointerDown.call(this,A,X),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=A.x,this.curveY=A.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(X)&&(this.activeGrip=this.curveGrip,this._state="resize")},y.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()]]))},y.prototype.setupControlBox=function(){J.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)},y.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,J.prototype.addControlGrips.call(this)},y.prototype.positionGrips=function(){J.prototype.positionGrips.call(this);var A=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-A/2,this.curveY-A/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()))},y.prototype.manipulate=function(A){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+A.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+A.y-this.manipulationStartY),J.prototype.manipulate.call(this,A)},y.prototype.resize=function(A){this.activeGrip===this.curveGrip&&(this.curveX=A.x,this.curveY=A.y),J.prototype.resize.call(this,A),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},y.prototype.setStrokeColor=function(A){this.strokeColor=A,this.adjustVisual(),this.colorChanged(A)},y.prototype.setStrokeWidth=function(A){this.strokeWidth=A,this.adjustVisual()},y.prototype.setStrokeDasharray=function(A){this.strokeDasharray=A,this.adjustVisual()},y.prototype.scale=function(A,X){this.curveX=this.curveX*A,this.curveY=this.curveY*X,J.prototype.scale.call(this,A,X)},Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},J.prototype.getState.call(this));return A.typeName=y.typeName,A},y.prototype.restoreState=function(A){J.prototype.restoreState.call(this,A);var X=A;this.strokeColor=X.strokeColor,this.strokeWidth=X.strokeWidth,this.strokeDasharray=X.strokeDasharray,this.curveX=X.curveX,this.curveY=X.curveY,this.createVisual(),this.adjustVisual()},y.typeName="CurveMarker",y.title="Curve marker",y.icon='',y}(Ct),Vt=function(){function J(y,A){A===void 0&&(A=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=y,this.cancelable=A}return Object.defineProperty(J.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),J.prototype.preventDefault=function(){this._defaultPrevented=!0},J}(),Et=function(J){function y(A,X,te){var $=J.call(this,A,!1)||this;return $.dataUrl=X,$.state=te,$}return ke(y,J),y}(Vt),_t=function(J){function y(A,X,te){te===void 0&&(te=!1);var $=J.call(this,A,te)||this;return $.marker=X,$}return ke(y,J),y}(Vt),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(y,A){this[y].push(A)},J.prototype.removeEventListener=function(y,A){var X=this[y].indexOf(A);X>-1&&this[y].splice(X,1)},J}(),ge=function(){function J(y){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ke,this._isOpen=!1,this.undoRedoManager=new vn,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 Ge(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=y,this.targetRoot=document.body,this.width=y.clientWidth,this.height=y.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[tt,je,Te,xt,en,We,me,nt,St,ue,Dt,Zt]},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[tt,je,Te,xt,We,me,nt]},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"BASIC_MARKER_TYPES",{get:function(){return[tt,je,Te,xt,me]},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(y){var A=this;this._availableMarkerTypes.splice(0),y.forEach(function(X){if(typeof X=="string"){var te=A.ALL_MARKER_TYPES.find(function($){return $.typeName===X});te!==void 0&&A._availableMarkerTypes.push(te)}else A._availableMarkerTypes.push(X)})},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(y){this._zoomLevel=y,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(),le.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},J.prototype.show=function(){var y=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(A){return A(new Vt(y))})},J.prototype.render=function(){return Ze(this,void 0,void 0,function(){var y;return Xe(this,function(A){switch(A.label){case 0:return this.setCurrentMarker(),(y=new Se).naturalSize=this.renderAtNaturalSize,y.imageType=this.renderImageType,y.imageQuality=this.renderImageQuality,y.markersOnly=this.renderMarkersOnly,y.width=this.renderWidth,y.height=this.renderHeight,[4,y.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return A.sent(),[4,y.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,A.sent()]}})})},J.prototype.close=function(y){var A=this;if(y===void 0&&(y=!1),this.isOpen){var X=!1;y||this.eventListeners.beforeclose.forEach(function(te){var $=new Vt(A,!0);te($),$.defaultPrevented&&(X=!0)}),X||(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 Vt(A))}),this.detachEvents(),this._isOpen=!1)}},J.prototype.addMarkersToToolbar=function(){for(var y,A=[],X=0;Xthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*y:this.editorCanvas.clientWidth,X=A',y.title="Powered by marker.js",y.style.display="grid",y.style.alignItems="center",y.style.justifyItems="center",y.style.padding="3px",y.style.width="20px",y.style.height="20px",this.logoUI.appendChild(y),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 y=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=y+"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(y),1),y.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(y,A){if(y==="marker"&&A!==void 0)this.createNewMarker(A);else if(y==="action")switch(A){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 y=this;if(this._currentMarker!==void 0){var A=!1;if(this.eventListeners.markerbeforedelete.forEach(function(te){var $=new _t(y,y._currentMarker,!0);te($),$.defaultPrevented&&(A=!0)}),!A){var X=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 _t(y,X))})}}},J.prototype.clear=function(){var y=this,A=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ze){var Ut=new _t(y,void 0,!0);ze(Ut),Ut.defaultPrevented&&(A=!0)}),!A)){this.setCurrentMarker();for(var X=function(ze){var Ut=te.markers[ze];te.setCurrentMarker(te.markers[ze]),te._currentMarker.dispose(),te.markerImage.removeChild(te._currentMarker.container),te.markers.splice(te.markers.indexOf(te._currentMarker),1),te.eventListeners.markerdelete.forEach(function(pn){return pn(new _t(y,Ut))})},te=this,$=this.markers.length-1;$>=0;$--)X($);this.addUndoStep()}},Object.defineProperty(J.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),J.prototype.showNotesEditor=function(){var y;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=(y=this._currentMarker.notes)!==null&&y!==void 0?y:"",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 y=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var A=this.getState(),X=this.undoRedoManager.getLastUndoStep();if(!X||X.width===A.width&&X.height===A.height){var te=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(A),te1&&this.panTo({x:y.clientX,y:y.clientY}))},J.prototype.onPointerUp=function(y){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(y.clientX,y.clientY)),this.isDragging=!1,this.addUndoStep()},J.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},J.prototype.onKeyUp=function(y){this._currentMarker===void 0||this.notesArea!==void 0||y.key!=="Delete"&&y.key!=="Backspace"||this.deleteSelectedMarker()},J.prototype.clientToLocalCoordinates=function(y,A){var X=this.markerImage.getBoundingClientRect();return{x:(y-X.left)/this.zoomLevel,y:(A-X.top)/this.zoomLevel}},J.prototype.onWindowResize=function(){this.positionUI()},J.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var y=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=y+"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(y){le.addKey(y)},J.prototype.addEventListener=function(y,A){this.eventListeners.addEventListener(y,A)},J.prototype.removeEventListener=function(y,A){this.eventListeners.removeEventListener(y,A)},J.prototype.renderState=function(y){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(y),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(J.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),J.prototype.focus=function(){var y=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(A){return A(new Vt(y))}))},J.prototype.blur=function(){var y=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(A){return A(new Vt(y))}))},J.instanceCounter=0,J}();/* ********************************** + `,Yt.style.marginRight="5px",Nn.appendChild(Yt)}$.typeBoxes.push(Nn)},$=this,ze=0;ze<4;ze++)te(ze);return X},y.prototype.setCurrentType=function(A,X){var te=this;this.currentType=A,this.typeBoxes.forEach(function($){$.style.borderColor=$===X?te.uiStyleSettings!==void 0?te.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},y}(he),Te=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.arrowType="end",$.arrowBaseHeight=10,$.arrowBaseWidth=10,$.getArrowPoints=$.getArrowPoints.bind($),$.setArrowType=$.setArrowType.bind($),$.arrowTypePanel=new we("Arrow type","end"),$.arrowTypePanel.onArrowTypeChanged=$.setArrowType,$}return ke(y,J),y.prototype.ownsTarget=function(A){return!(!J.prototype.ownsTarget.call(this,A)&&A!==this.arrow1&&A!==this.arrow2)},y.prototype.getArrowPoints=function(A,X){var te=this.arrowBaseWidth+2*this.strokeWidth,$=this.arrowBaseHeight+2*this.strokeWidth;return A-te/2+","+(X+$/2)+" "+A+","+(X-$/2)+" "+(A+te/2)+","+(X+$/2)},y.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)},y.prototype.pointerDown=function(A,X){J.prototype.pointerDown.call(this,A,X),this.state==="creating"&&this.createTips()},y.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 A=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),X=this.arrow1.transform.baseVal.getItem(0);X.setRotate(A,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(X,0);var te=this.arrow2.transform.baseVal.getItem(0);te.setRotate(A+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(te,0)}},y.prototype.setArrowType=function(A){this.arrowType=A,this.adjustVisual(),this.stateChanged()},Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=Object.assign({arrowType:this.arrowType},J.prototype.getState.call(this));return A.typeName=y.typeName,A},y.prototype.restoreState=function(A){J.prototype.restoreState.call(this,A);var X=A;this.arrowType=X.arrowType,this.createTips(),this.adjustVisual()},y.typeName="ArrowMarker",y.title="Arrow marker",y.icon='',y}(Dt),ue=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.fillColor=te.defaultFillColor,$.strokeWidth=0,$.fillPanel=new _e("Color",te.defaultColorSet,te.defaultFillColor),$.fillPanel.onColorChanged=$.setFillColor,$}return ke(y,J),Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=J.prototype.getState.call(this);return A.typeName=y.typeName,A},y.typeName="CoverMarker",y.title="Cover marker",y.icon='',y}(Bt),pe=function(J){function y(A,X,te,$){var ze=J.call(this,A,$||'')||this;return ze.opacities=[],ze.opacityBoxes=[],ze.opacities=X,ze.currentOpacity=te,ze.setCurrentOpacity=ze.setCurrentOpacity.bind(ze),ze}return ke(y,J),y.prototype.getUi=function(){var A=this,X=document.createElement("div");return X.style.display="flex",X.style.overflow="hidden",X.style.flexGrow="2",X.style.justifyContent="space-between",this.opacities.forEach(function(te){var $=document.createElement("div");$.style.display="flex",$.style.alignItems="center",$.style.justifyContent="center",$.style.padding="5px",$.style.borderWidth="2px",$.style.borderStyle="solid",$.style.borderColor=te===A.currentOpacity?A.uiStyleSettings.toolboxAccentColor:"transparent",$.addEventListener("click",function(){A.setCurrentOpacity(te,$)}),X.appendChild($);var ze=document.createElement("div");ze.innerText=100*te+"%",$.appendChild(ze),A.opacityBoxes.push($)}),X},y.prototype.setCurrentOpacity=function(A,X){var te=this;this.currentOpacity=A,this.opacityBoxes.forEach(function($){$.style.borderColor=$===X?te.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},y}(he),me=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.setOpacity=$.setOpacity.bind($),$.fillColor=te.defaultHighlightColor,$.strokeWidth=0,$.opacity=te.defaultHighlightOpacity,$.fillPanel=new _e("Color",te.defaultColorSet,$.fillColor),$.fillPanel.onColorChanged=$.setFillColor,$.opacityPanel=new pe("Opacity",te.defaultOpacitySteps,$.opacity),$.opacityPanel.onOpacityChanged=$.setOpacity,$}return ke(y,J),y.prototype.setOpacity=function(A){this.opacity=A,this.visual&&fe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=J.prototype.getState.call(this);return A.typeName=y.typeName,A},y.typeName="HighlightMarker",y.title="Highlight marker",y.icon='',y}(ue),xe='',nt=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.bgColor="transparent",$.tipPosition={x:0,y:0},$.tipBase1Position={x:0,y:0},$.tipBase2Position={x:0,y:0},$.tipMoving=!1,$.color=te.defaultStrokeColor,$.bgColor=te.defaultFillColor,$.fontFamily=te.defaultFontFamily,$.defaultSize={x:100,y:30},$.setBgColor=$.setBgColor.bind($),$.getTipPoints=$.getTipPoints.bind($),$.positionTip=$.positionTip.bind($),$.setTipPoints=$.setTipPoints.bind($),$.colorPanel=new _e("Text color",te.defaultColorSet,$.color,''),$.colorPanel.onColorChanged=$.setColor,$.bgColorPanel=new _e("Fill color",te.defaultColorSet,$.bgColor,xe),$.bgColorPanel.onColorChanged=$.setBgColor,$.fontFamilyPanel=new st("Font",te.defaultFontFamilies,te.defaultFontFamily),$.fontFamilyPanel.onFontChanged=$.setFont,$.tipGrip=new Rt,$.tipGrip.visual.transform.baseVal.appendItem(fe.createTransform()),$.controlBox.appendChild($.tipGrip.visual),$}return ke(y,J),y.prototype.ownsTarget=function(A){return J.prototype.ownsTarget.call(this,A)||this.tipGrip.ownsTarget(A)||this.tip===A},y.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)},y.prototype.pointerDown=function(A,X){this.state==="new"&&J.prototype.pointerDown.call(this,A,X),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(X)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):J.prototype.pointerDown.call(this,A,X)},y.prototype.pointerUp=function(A){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,J.prototype.pointerUp.call(this,A);else{var X=this.state==="creating";J.prototype.pointerUp.call(this,A),this.setTipPoints(X),this.positionTip()}},y.prototype.manipulate=function(A){if(this.tipMoving){var X=this.unrotatePoint(A);this.tipPosition={x:X.x-this.manipulationStartLeft,y:X.y-this.manipulationStartTop},this.positionTip()}else J.prototype.manipulate.call(this,A)},y.prototype.setBgColor=function(A){this.bgRectangle&&this.tip&&(fe.setAttributes(this.bgRectangle,[["fill",A]]),fe.setAttributes(this.tip,[["fill",A]])),this.bgColor=A,this.fillColorChanged(A)},y.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},y.prototype.setTipPoints=function(A){A===void 0&&(A=!1);var X=Math.min(this.height/2,15),te=this.height/5;A&&(this.tipPosition={x:X+te/2,y:this.height+20});var $=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?$.1)){var A=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),X=this.tip1.transform.baseVal.getItem(0);X.setRotate(A,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(X,0);var te=this.tip2.transform.baseVal.getItem(0);te.setRotate(A+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(te,0)}},Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=J.prototype.getState.call(this);return A.typeName=y.typeName,A},y.prototype.restoreState=function(A){J.prototype.restoreState.call(this,A),this.createTips(),this.adjustVisual()},y.typeName="MeasurementMarker",y.title="Measurement marker",y.icon='',y}(Dt),en=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.strokePanel.colors=te.defaultColorSet,$.fillColor="transparent",$}return ke(y,J),Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=J.prototype.getState.call(this);return A.typeName=y.typeName,A},y.typeName="EllipseFrameMarker",y.title="Ellipse frame marker",y.icon='',y}(We),vn=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(y){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(y)||(this.undoStack.push(y),JSON.stringify(this.lastRedoStep)!==JSON.stringify(y)&&this.redoStack.splice(0,this.redoStack.length))},J.prototype.replaceLastUndoStep=function(y){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=y)},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 y=this.undoStack.pop();return y!==void 0&&this.redoStack.push(y),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}(),Zt=function(J){function y(A,X,te){var $=J.call(this,A,X,te)||this;return $.strokeColor="transparent",$.strokeWidth=0,$.strokeDasharray="",$.curveX=0,$.curveY=0,$.manipulationStartCurveX=0,$.manipulationStartCurveY=0,$.setStrokeColor=$.setStrokeColor.bind($),$.setStrokeWidth=$.setStrokeWidth.bind($),$.setStrokeDasharray=$.setStrokeDasharray.bind($),$.positionGrips=$.positionGrips.bind($),$.addControlGrips=$.addControlGrips.bind($),$.adjustVisual=$.adjustVisual.bind($),$.setupControlBox=$.setupControlBox.bind($),$.resize=$.resize.bind($),$.strokeColor=te.defaultColor,$.strokeWidth=te.defaultStrokeWidth,$.strokeDasharray=te.defaultStrokeDasharray,$.strokePanel=new _e("Line color",te.defaultColorSet,te.defaultColor),$.strokePanel.onColorChanged=$.setStrokeColor,$.strokeWidthPanel=new tn("Line width",te.defaultStrokeWidths,te.defaultStrokeWidth),$.strokeWidthPanel.onWidthChanged=$.setStrokeWidth,$.strokeStylePanel=new hn("Line style",te.defaultStrokeDasharrays,te.defaultStrokeDasharray),$.strokeStylePanel.onStyleChanged=$.setStrokeDasharray,$}return ke(y,J),y.prototype.ownsTarget=function(A){return!(!J.prototype.ownsTarget.call(this,A)&&A!==this.visual&&A!==this.selectorCurve&&A!==this.visibleCurve&&!this.curveGrip.ownsTarget(A))},y.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},y.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)},y.prototype.pointerDown=function(A,X){J.prototype.pointerDown.call(this,A,X),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=A.x,this.curveY=A.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(X)&&(this.activeGrip=this.curveGrip,this._state="resize")},y.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()]]))},y.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)},y.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,J.prototype.addControlGrips.call(this)},y.prototype.positionGrips=function(){J.prototype.positionGrips.call(this);var A=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-A/2,this.curveY-A/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()))},y.prototype.manipulate=function(A){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+A.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+A.y-this.manipulationStartY),J.prototype.manipulate.call(this,A)},y.prototype.resize=function(A){this.activeGrip===this.curveGrip&&(this.curveX=A.x,this.curveY=A.y),J.prototype.resize.call(this,A),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},y.prototype.setStrokeColor=function(A){this.strokeColor=A,this.adjustVisual(),this.colorChanged(A)},y.prototype.setStrokeWidth=function(A){this.strokeWidth=A,this.adjustVisual()},y.prototype.setStrokeDasharray=function(A){this.strokeDasharray=A,this.adjustVisual()},y.prototype.scale=function(A,X){this.curveX=this.curveX*A,this.curveY=this.curveY*X,J.prototype.scale.call(this,A,X)},Object.defineProperty(y.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),y.prototype.getState=function(){var A=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},J.prototype.getState.call(this));return A.typeName=y.typeName,A},y.prototype.restoreState=function(A){J.prototype.restoreState.call(this,A);var X=A;this.strokeColor=X.strokeColor,this.strokeWidth=X.strokeWidth,this.strokeDasharray=X.strokeDasharray,this.curveX=X.curveX,this.curveY=X.curveY,this.createVisual(),this.adjustVisual()},y.typeName="CurveMarker",y.title="Curve marker",y.icon='',y}(Ct),Vt=function(){function J(y,A){A===void 0&&(A=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=y,this.cancelable=A}return Object.defineProperty(J.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),J.prototype.preventDefault=function(){this._defaultPrevented=!0},J}(),Et=function(J){function y(A,X,te){var $=J.call(this,A,!1)||this;return $.dataUrl=X,$.state=te,$}return ke(y,J),y}(Vt),_t=function(J){function y(A,X,te){te===void 0&&(te=!1);var $=J.call(this,A,te)||this;return $.marker=X,$}return ke(y,J),y}(Vt),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(y,A){this[y].push(A)},J.prototype.removeEventListener=function(y,A){var X=this[y].indexOf(A);X>-1&&this[y].splice(X,1)},J}(),ge=function(){function J(y){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ke,this._isOpen=!1,this.undoRedoManager=new vn,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 Ge(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=y,this.targetRoot=document.body,this.width=y.clientWidth,this.height=y.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[tt,je,Te,xt,en,We,me,nt,St,ue,Dt,Zt]},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[tt,je,Te,xt,We,me,nt]},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"BASIC_MARKER_TYPES",{get:function(){return[tt,je,Te,xt,me]},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(y){var A=this;this._availableMarkerTypes.splice(0),y.forEach(function(X){if(typeof X=="string"){var te=A.ALL_MARKER_TYPES.find(function($){return $.typeName===X});te!==void 0&&A._availableMarkerTypes.push(te)}else A._availableMarkerTypes.push(X)})},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(y){this._zoomLevel=y,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(),le.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},J.prototype.show=function(){var y=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(A){return A(new Vt(y))})},J.prototype.render=function(){return Ze(this,void 0,void 0,function(){var y;return Xe(this,function(A){switch(A.label){case 0:return this.setCurrentMarker(),(y=new Se).naturalSize=this.renderAtNaturalSize,y.imageType=this.renderImageType,y.imageQuality=this.renderImageQuality,y.markersOnly=this.renderMarkersOnly,y.width=this.renderWidth,y.height=this.renderHeight,[4,y.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return A.sent(),[4,y.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,A.sent()]}})})},J.prototype.close=function(y){var A=this;if(y===void 0&&(y=!1),this.isOpen){var X=!1;y||this.eventListeners.beforeclose.forEach(function(te){var $=new Vt(A,!0);te($),$.defaultPrevented&&(X=!0)}),X||(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 Vt(A))}),this.detachEvents(),this._isOpen=!1)}},J.prototype.addMarkersToToolbar=function(){for(var y,A=[],X=0;Xthis.editorCanvas.clientHeight?this.editorCanvas.clientHeight*y:this.editorCanvas.clientWidth,X=A',y.title="Powered by marker.js",y.style.display="grid",y.style.alignItems="center",y.style.justifyItems="center",y.style.padding="3px",y.style.width="20px",y.style.height="20px",this.logoUI.appendChild(y),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 y=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=y+"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(y),1),y.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(y,A){if(y==="marker"&&A!==void 0)this.createNewMarker(A);else if(y==="action")switch(A){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 y=this;if(this._currentMarker!==void 0){var A=!1;if(this.eventListeners.markerbeforedelete.forEach(function(te){var $=new _t(y,y._currentMarker,!0);te($),$.defaultPrevented&&(A=!0)}),!A){var X=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 _t(y,X))})}}},J.prototype.clear=function(){var y=this,A=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ze){var Ut=new _t(y,void 0,!0);ze(Ut),Ut.defaultPrevented&&(A=!0)}),!A)){this.setCurrentMarker();for(var X=function(ze){var Ut=te.markers[ze];te.setCurrentMarker(te.markers[ze]),te._currentMarker.dispose(),te.markerImage.removeChild(te._currentMarker.container),te.markers.splice(te.markers.indexOf(te._currentMarker),1),te.eventListeners.markerdelete.forEach(function(pn){return pn(new _t(y,Ut))})},te=this,$=this.markers.length-1;$>=0;$--)X($);this.addUndoStep()}},Object.defineProperty(J.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),J.prototype.showNotesEditor=function(){var y;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=(y=this._currentMarker.notes)!==null&&y!==void 0?y:"",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 y=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var A=this.getState(),X=this.undoRedoManager.getLastUndoStep();if(!X||X.width===A.width&&X.height===A.height){var te=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(A),te1&&this.panTo({x:y.clientX,y:y.clientY}))},J.prototype.onPointerUp=function(y){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(y.clientX,y.clientY)),this.isDragging=!1,this.addUndoStep()},J.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},J.prototype.onKeyUp=function(y){this._currentMarker===void 0||this.notesArea!==void 0||y.key!=="Delete"&&y.key!=="Backspace"||this.deleteSelectedMarker()},J.prototype.clientToLocalCoordinates=function(y,A){var X=this.markerImage.getBoundingClientRect();return{x:(y-X.left)/this.zoomLevel,y:(A-X.top)/this.zoomLevel}},J.prototype.onWindowResize=function(){this.positionUI()},J.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var y=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=y+"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(y){le.addKey(y)},J.prototype.addEventListener=function(y,A){this.eventListeners.addEventListener(y,A)},J.prototype.removeEventListener=function(y,A){this.eventListeners.removeEventListener(y,A)},J.prototype.renderState=function(y){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(y),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(J.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),J.prototype.focus=function(){var y=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(A){return A(new Vt(y))}))},J.prototype.blur=function(){var y=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(A){return A(new Vt(y))}))},J.instanceCounter=0,J}();/* ********************************** cropro version 1.2.0 @license SEE LICENSE IN LICENSE @@ -146,7 +146,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,y){return(Me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,X){A.__proto__=X}||function(A,X){for(var te in X)Object.prototype.hasOwnProperty.call(X,te)&&(A[te]=X[te])})(J,y)};function wt(J,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");function A(){this.constructor=J}Me(J,y),J.prototype=y===null?Object.create(y):(A.prototype=y.prototype,new A)}function ft(J,y,A,X){return new(A||(A=Promise))(function(te,$){function ze(Nn){try{pn(X.next(Nn))}catch(Kt){$(Kt)}}function Ut(Nn){try{pn(X.throw(Nn))}catch(Kt){$(Kt)}}function pn(Nn){var Kt;Nn.done?te(Nn.value):(Kt=Nn.value,Kt instanceof A?Kt:new A(function(rn){rn(Kt)})).then(ze,Ut)}pn((X=X.apply(J,y||[])).next())})}function qt(J,y){var A,X,te,$,ze={label:0,sent:function(){if(1&te[0])throw te[1];return te[1]},trys:[],ops:[]};return $={next:Ut(0),throw:Ut(1),return:Ut(2)},typeof Symbol=="function"&&($[Symbol.iterator]=function(){return this}),$;function Ut(pn){return function(Nn){return function(Kt){if(A)throw new TypeError("Generator is already executing.");for(;ze;)try{if(A=1,X&&(te=2&Kt[0]?X.return:Kt[0]?X.throw||((te=X.return)&&te.call(X),0):X.next)&&!(te=te.call(X,Kt[1])).done)return te;switch(X=0,te&&(Kt=[2&Kt[0],te.value]),Kt[0]){case 0:case 1:te=Kt;break;case 4:return ze.label++,{value:Kt[1],done:!1};case 5:ze.label++,X=Kt[1],Kt=[0];continue;case 7:Kt=ze.ops.pop(),ze.trys.pop();continue;default:if(!(te=ze.trys,(te=te.length>0&&te[te.length-1])||Kt[0]!==6&&Kt[0]!==2)){ze=0;continue}if(Kt[0]===3&&(!te||Kt[1]>te[0]&&Kt[1]0&&te[te.length-1])||Kt[0]!==6&&Kt[0]!==2)){ze=0;continue}if(Kt[0]===3&&(!te||Kt[1]>te[0]&&Kt[1]0&&A>0){var X=new Fr(y,A),te=X.ratio>=1?20:X.getHorizontalLength(20),$=X.ratio<1?20:X.getVerticalLength(20),ze=document.createElementNS("http://www.w3.org/2000/svg","svg");ze.setAttribute("xmlns","http://www.w3.org/2000/svg"),ze.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(ze);var Ut=ot.createDefs();ze.appendChild(Ut);var pn=ot.createElement("clipPath",[["id","text-bg-clip"]]);Ut.appendChild(pn);var Nn=ot.createPath(ot.getHollowRectanglePath((24-te)/2,(24-$)/2,te,$,(24-te)/2+2,(24-$)/2+2,te-4,$-4));ze.appendChild(Nn);var Kt=ot.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Kt.appendChild(ot.createTSpan(y+":"+A)),ze.appendChild(Kt);var rn=Kt.getBBox();ot.setAttributes(Kt,[["x",((24-rn.width)/2).toString()],["y",((24-rn.height)/2-rn.y).toString()]]);var At=ot.createPath(ot.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(rn.width))/2,(24-Math.ceil(rn.height))/2,Math.ceil(rn.width),Math.ceil(rn.height)));return pn.appendChild(At),ot.setAttributes(Nn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(ze),ze.outerHTML}return''},J}(),Pr=function(J){function y(A,X,te){var $=J.call(this,A,X)||this;return $.isDropdownOpen=!1,$.onClick=$.dropdownButtonClicked,$.dropdownButtons=te,$}return wt(y,J),y.prototype.setupDropdown=function(){var A=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(X){X.className=A.className,X.colorsClassName=A.colorsClassName,A.dropdownBlock.appendChild(X.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},y.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},y.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},y.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},y.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},y.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},y}(hr),fr=function(){function J(y,A){this.GRIP_SIZE=10,this.color=y,this.fillColor=A,this.visual=ot.createGroup(),this.visual.appendChild(ot.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ot.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(y){return y===this.visual||y===this.visual.childNodes[0]||y===this.visual.childNodes[1]},J.prototype.setCenter=function(y,A){this.visual.childNodes.forEach(function(X){return ot.setAttributes(X,[["cx",y.toString()],["cy",A.toString()]])})},J}(),Br=function(){function J(y,A,X,te){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=y,this.canvasHeight=A,this.margin=X,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(y){this._aspectRatio=y,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(y){this._isGridVisible=y,this.gridContainer&&ot.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(y){this._zoomFactor=y,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),J.prototype.open=function(){var y=this;this.cropShadeElement=ot.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=ot.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var A=0;Athis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-A.height/2),ot.setAttributes(this.cropRectElement,[["x",A.x.toString()],["y",A.y.toString()],["width",A.width.toString()],["height",A.height.toString()]]);var X=A.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function($,ze){var Ut=A.y+X*(ze+1);ot.setAttributes($,[["x1",""+A.x],["y1",""+Ut],["x2",""+(A.x+A.width)],["y2",""+Ut]])});var te=A.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function($,ze){var Ut=A.x+te*(ze+1);ot.setAttributes($,[["x1",""+Ut],["y1",""+A.y],["x2",""+Ut],["y2",""+(A.y+A.height)]])}),ot.setAttributes(this.cropShadeElement,[["d",ot.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,A.x,A.y,A.width,A.height)]]),this.topLeftGrip.setCenter(A.x,A.y),this.topRightGrip.setCenter(A.x+A.width,A.y),this.bottomLeftGrip.setCenter(A.x,A.y+A.height),this.bottomRightGrip.setCenter(A.x+A.width,A.y+A.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(y,A){var X=this.container.getBoundingClientRect();return{x:y-X.left+this.margin,y:A-X.top+this.margin}},J.prototype.onPointerDown=function(y){this.container.setPointerCapture(y.pointerId),this.previousPoint=this.clientToLocalCoordinates(y.clientX,y.clientY),this.cropRectElement===y.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(y.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(y.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(y.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(y.target)&&(this.activeGrip=this.bottomRightGrip)},J.prototype.onPointerMove=function(y){if(this.isMoving)this.move(this.clientToLocalCoordinates(y.clientX,y.clientY));else if(this.activeGrip){var A=this.clientToLocalCoordinates(y.clientX,y.clientY);this.resize(A)}y.preventDefault()},J.prototype.onPointerUp=function(y){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(y.pointerId)},J.prototype.move=function(y){var A=y.x-this.previousPoint.x,X=y.y-this.previousPoint.y;this.zoomFactor!==1&&(A=-A/this.zoomFactor,X=-X/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+A),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+X),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=y},J.prototype.resize=function(y){var A=Object.assign({},this.cropRect),X=y.x-this.previousPoint.x,te=y.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:A.x+Xthis.canvasWidth*this.zoomFactor&&(X=this.canvasWidth*this.zoomFactor-A.width),A.width+=X}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(A.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(X),A.height=this.aspectRatio.getVerticalLength(A.width)):(A.y+=te,A.height=this.cropRect.y+this.cropRect.height-A.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?A.height=this.aspectRatio.getVerticalLength(A.width):A.height+=te}A.width<10&&(A.x=this.cropRect.x,A.width=10),A.height<10&&(A.y=this.cropRect.y,A.height=10),this.previousPoint=y,A.x>=this.margin&&A.y>=this.margin&&A.x-this.margin+A.width<=this.canvasWidth&&A.y-this.margin+A.height<=this.canvasHeight&&(this.cropRect=A,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 y=this.cropRect.x+this.cropRect.width/2,A=this.cropRect.y+this.cropRect.height/2,X=this.aspectRatio.getHorizontalLength(this.cropRect.height),te=this.aspectRatio.getVerticalLength(this.cropRect.width);X/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=y-this.cropRect.width/2,this.cropRect.y=A-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(y,A,X,te,$,ze){var Ut=X/y,pn=te/A;return{x:($.x-ze)*Ut+ze,y:($.y-ze)*pn+ze,width:$.width*Ut,height:$.height*pn}},J.prototype.scaleCanvas=function(y,A){var X=this.getRescaledRect(this.canvasWidth,this.canvasHeight,y,A,this.cropRect,this.margin);this.canvasWidth=y,this.canvasHeight=A,this.onCropChange&&this.onCropChange(X),this.setCropRectangle(X)},J}(),qr=function(){function J(y){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=y,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(y){this._angle=y,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(y){this.controlContainer.setPointerCapture(y.pointerId),this.isDragging=!0,this.previousPoint={x:y.clientX,y:y.clientY}},J.prototype.onPointerMove=function(y){this.isDragging&&(this.onAngleChange&&this.onAngleChange((y.clientX-this.previousPoint.x)/5),this.previousPoint.x=y.clientX)},J.prototype.onPointerUp=function(y){this.isDragging&&this.onAngleChange&&this.onAngleChange((y.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(y.pointerId)},J.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var y=this.angleLabelText.getBBox();ot.setAttributes(this.angleLabelElement,[["x",((this.width-y.width)/2).toString()],["y",(this.height/2).toString()]])}},J.prototype.positionScaleShape=function(){if(this.scaleShape){var y=this.scaleShape.transform.baseVal.getItem(0);y.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(y,0)}},J.prototype.getVisual=function(){var y=document.createElementNS("http://www.w3.org/2000/svg","svg");y.setAttribute("xmlns","http://www.w3.org/2000/svg"),y.setAttribute("width",this.width+"px"),y.setAttribute("height",this.height+"px"),y.setAttribute("viewBox","0 0 "+this.width+" "+this.height),y.style.flexShrink="0",document.body.appendChild(y);for(var A="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,X=1;X<=this.width/5+10;X++){var te=X%5==0?this.height/3:this.height/6;A+="h4v"+-te+"h1v"+te}A+="v1H0Z",this.scaleShape=ot.createPath(A);var $=ot.createTransform();this.scaleShape.transform.baseVal.appendItem($),y.appendChild(this.scaleShape),this.angleLabelElement=ot.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=ot.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ze=ot.createTSpan("");return ze.innerHTML="°",this.angleLabelElement.appendChild(ze),y.appendChild(this.angleLabelElement),document.body.removeChild(y),y},J}(),ha=function(){function J(){this.naturalSize=!1,this.imageType="image/png"}return J.prototype.rasterize=function(y,A,X,te,$,ze,Ut){var pn=this;return new Promise(function(Nn){var Kt=document.createElement("canvas");Kt.width=y.width.baseVal.value-2*te,Kt.height=y.height.baseVal.value-2*te;var rn=1,At=1;pn.naturalSize===!0?(rn=A.naturalWidth/(y.width.baseVal.value-2*te)/ze,At=A.naturalHeight/(y.height.baseVal.value-2*te)/Ut,Kt.width=A.naturalWidth/ze,Kt.height=A.naturalHeight/Ut):pn.width!==void 0&&pn.height!==void 0&&(rn=pn.width/X.width,At=pn.height/X.height,Kt.width*=rn,Kt.height*=At);var Yt=Kt.getContext("2d");Yt.translate(Kt.width/2,Kt.height/2),Yt.rotate($*Math.PI/180),Yt.scale(ze,Ut),Yt.translate(-Kt.width/2,-Kt.height/2),Yt.drawImage(A,0,0,Kt.width,Kt.height);var bn=document.createElement("canvas");bn.width=X.width*rn,bn.height=X.height*At,bn.getContext("2d").putImageData(Yt.getImageData((X.x-te)*rn,(X.y-te)*At,X.width*rn,X.height*At),0,0),Nn(bn.toDataURL(pn.imageType,pn.imageQuality))})},J}(),Qt=function(){function J(y){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 Wt(this.instanceNo),this.target=y,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(y){this._zoomToCropEnabled=y,y?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(y){this._isGridVisible=y,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"gridLines",{get:function(){return this._gridLines},set:function(y){this._gridLines=y,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(y){this._rotationAngle=y,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 y;return(y=this._aspectRatio)!==null&&y!==void 0?y:this.aspectRatios[0]},set:function(y){this._aspectRatio=y},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(y){y===void 0&&(y=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),y||this.closeEventListeners.forEach(function(A){return A()}),this._isOpen=!1)},J.prototype.addRenderEventListener=function(y){this.renderEventListeners.push(y)},J.prototype.removeRenderEventListener=function(y){this.renderEventListeners.indexOf(y)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(y),1)},J.prototype.addCloseEventListener=function(y){this.closeEventListeners.push(y)},J.prototype.removeCloseEventListener=function(y){this.closeEventListeners.indexOf(y)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(y),1)},J.prototype.setupResizeObserver=function(){var y=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){y.resize(y.target.clientWidth,y.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 y=1*this.target.clientWidth/this.target.clientHeight,A=this.contentDiv.clientWidth/y>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*y:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,X=A+2*this.CANVAS_MARGINy+this.CANVAS_MARGIN?this.target.offsetTop-(y+this.CANVAS_MARGIN):0;this.coverDiv.style.top=A+"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 y=this;this.topToolbar=new kn,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 A=new Ar;A.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(A);var X=[];this.aspectRatios.forEach(function(At){var Yt=new hr(na.getIcon(At.horizontal,At.vertical),At.horizontal===0&&At.vertical===0?"FREE":At.horizontal+":"+At.vertical);Yt.onClick=function(){return y.ratioButtonClicked(At)},X.push(Yt)}),this.aspectRatioButton=new Pr(na.getIcon(0,0),"Aspect ratio",X),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,A.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var te=new hr('',"Toggle grid");te.isActive=this.isGridVisible,te.onClick=function(){y.isGridVisible=!y.isGridVisible,te.isActive=y.isGridVisible},A.addButton(te);var $=new hr('',"Zoom to selection");if($.isActive=this.zoomToCropEnabled,$.onClick=function(){y.zoomToCropEnabled=!y.zoomToCropEnabled,$.isActive=y.zoomToCropEnabled},A.addButton($),!on.isLicensed){var ze=new On;this.topToolbar.addElementBlock(ze);var Ut=document.createElement("div");Ut.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var pn=document.createElement("a");pn.style.color="currentColor",pn.href="https://markerjs.com/products/cropro",pn.target="_blank",pn.innerHTML='',Ut.appendChild(pn),ze.addElement(Ut)}var Nn=new Ar;Nn.minWidth=3*this.toolbarHeight+"px",Nn.contentAlign="end",this.topToolbar.addButtonBlock(Nn);var Kt=new hr('',"OK");Kt.onClick=this.startRenderAndClose,Nn.addButton(Kt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Kt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var rn=new hr('',"Close");rn.onClick=this.close,Nn.addButton(rn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(rn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},J.prototype.addBottomToolbar=function(){var y=this;this.bottomToolbar=new kn,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 A=new Ar;A.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(A);var X=new hr('',"Rotate left");X.onClick=this.rotateLeftButtonClicked,A.addButton(X);var te=new hr('',"Rotate right");te.onClick=this.rotateRightButtonClicked,A.addButton(te);var $=new On;$.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock($),this.straightener=new qr("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){y.rotateBy(Nn),y.straightener.angle=y.rotationAngle},$.addElement(this.straightener.getUI());var ze=new Ar;ze.minWidth=2*this.toolbarHeight+"px",ze.contentAlign="end",this.bottomToolbar.addButtonBlock(ze);var Ut=new hr('',"Flip horizontal");Ut.onClick=this.flipHorizontallyButtonClicked,ze.addButton(Ut);var pn=new hr('',"Flip vertical");pn.onClick=this.flipVerticallyButtonClicked,ze.addButton(pn)},J.prototype.ratioButtonClicked=function(y){this.aspectRatio=y,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},J.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=na.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(y){if(y){var A=this.cropLayer.getRescaledRect(y.width,y.height,this.imageWidth,this.imageHeight,y.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(A),this.cropRectChanged(A),this.flippedHorizontally=y.flippedHorizontally,this.flippedVertically=y.flippedVertically,this.applyFlip(),this.rotationAngle=y.rotationAngle,this.applyRotation()}},J.prototype.clientToLocalCoordinates=function(y,A){var X=this.cropImage.getBoundingClientRect();return{x:y-X.left,y:A-X.top}},J.prototype.onWindowResize=function(){this.positionUI()},J.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var y=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=y+"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 y=this.rotationAngle-90;this.rotationAngle%90!=0&&(y+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(y)},J.prototype.rotateRightButtonClicked=function(){var y=this.rotationAngle+90;this.rotationAngle%90!=0&&(y-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(y)},J.prototype.rotateTo=function(y){y=(y=y>180?y-360:y)<=-180?y+360:y,this.rotationAngle=y,this.applyRotation()},J.prototype.rotateBy=function(y){this.rotateTo((this.rotationAngle+y)%360)},J.prototype.applyRotation=function(){var y=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var A=this.editingTargetRotationContainer.transform.baseVal.getItem(0);A.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(A,0);var X=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/X.width,this.imageHeight/X.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=y},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 ft(this,void 0,void 0,function(){var y,A;return qt(this,function(X){switch(X.label){case 0:return[4,this.render()];case 1:return y=X.sent(),A=this.getState(),this.renderEventListeners.forEach(function(te){return te(y,A)}),this.close(!0),[2]}})})},J.prototype.render=function(){return ft(this,void 0,void 0,function(){var y;return qt(this,function(A){switch(A.label){case 0:return(y=new ha).naturalSize=this.renderAtNaturalSize,y.imageType=this.renderImageType,y.imageQuality=this.renderImageQuality,y.width=this.renderWidth,y.height=this.renderHeight,this.unzoomFromCrop(),ot.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,y.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 A.sent(),[4,y.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,A.sent()]}})})},J.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Bn("toolbar",` + `))},J.prototype.removeStyleSheet=function(){var y;this.styleSheet&&(((y=this.styleSheetRoot)!==null&&y!==void 0?y:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},J}(),dn=function(J,y){this.selector=J,this.style=y},Bn=function(J,y){this.localName=J,this.style=y},kn=function(){function J(){this.blocks=[],this.display=""}return J.prototype.addButtonBlock=function(y){y.className=this.blockClassName,y.buttonClassName=this.buttonClassName,y.buttonColorsClassName=this.buttonColorsClassName,y.buttonActiveColorsClassName=this.buttonActiveColorsClassName,this.blocks.push(y)},J.prototype.addElementBlock=function(y){y.className===void 0&&(y.className=this.blockClassName),this.blocks.push(y)},J.prototype.getUI=function(){var y=document.createElement("div");return y.className=this.className+" "+this.colorsClassName+" "+this.fadeInClassName,y.style.display=this.display,this.blocks.forEach(function(A){return y.appendChild(A.getUI())}),y},J}(),Cr=function(){function J(){}return J.prototype.getUI=function(){var y=document.createElement("div");if(y.className=this.className,this.minWidth!==void 0&&(y.style.minWidth=this.minWidth),this.contentAlign!==void 0)switch(this.contentAlign){case"start":y.style.justifyContent="flex-start";break;case"center":y.style.justifyContent="center";break;case"end":y.style.justifyContent="flex-end"}return y.style.whiteSpace="nowrap",y},J}(),Ar=function(J){function y(){var A=J!==null&&J.apply(this,arguments)||this;return A.buttons=[],A}return wt(y,J),y.prototype.addButton=function(A){A.className=this.buttonClassName,A.colorsClassName=this.buttonColorsClassName,A.activeColorsClassName=this.buttonActiveColorsClassName,this.buttons.push(A)},y.prototype.getUI=function(){var A=J.prototype.getUI.call(this);return this.buttons.forEach(function(X){return A.appendChild(X.getUI())}),A},y}(Cr),fr=function(){function J(y,A){this._isActive=!1,this._isHidden=!1,this._icon=y,this.title=A,this.uiContainer=document.createElement("div"),this.adjustClassName=this.adjustClassName.bind(this)}return Object.defineProperty(J.prototype,"icon",{get:function(){return this._icon},set:function(y){this._icon=y,this.buttonContainer.innerHTML=this._icon},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isActive",{get:function(){return this._isActive},set:function(y){this._isActive=y,this.adjustClassName()},enumerable:!1,configurable:!0}),J.prototype.getUI=function(){var y=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 y.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}(),On=function(J){function y(){var A=J!==null&&J.apply(this,arguments)||this;return A.elements=[],A}return wt(y,J),y.prototype.addElement=function(A){this.elements.push(A)},y.prototype.getUI=function(){var A=J.prototype.getUI.call(this);return this.elements.forEach(function(X){return A.appendChild(X)}),A},y}(Cr),Fr=function(){function J(y,A){this.horizontal=y,this.vertical=A}return Object.defineProperty(J.prototype,"ratio",{get:function(){return 1*this.horizontal/this.vertical},enumerable:!1,configurable:!0}),J.prototype.getVerticalLength=function(y){return y/this.ratio},J.prototype.getHorizontalLength=function(y){return y*this.ratio},J}(),na=function(){function J(){}return J.getIcon=function(y,A){if(y>0&&A>0){var X=new Fr(y,A),te=X.ratio>=1?20:X.getHorizontalLength(20),$=X.ratio<1?20:X.getVerticalLength(20),ze=document.createElementNS("http://www.w3.org/2000/svg","svg");ze.setAttribute("xmlns","http://www.w3.org/2000/svg"),ze.setAttribute("viewBox","0 0 24 24"),document.body.appendChild(ze);var Ut=ot.createDefs();ze.appendChild(Ut);var pn=ot.createElement("clipPath",[["id","text-bg-clip"]]);Ut.appendChild(pn);var Nn=ot.createPath(ot.getHollowRectanglePath((24-te)/2,(24-$)/2,te,$,(24-te)/2+2,(24-$)/2+2,te-4,$-4));ze.appendChild(Nn);var Kt=ot.createText([["x","0"],["y","0"],["font-size","7px"],["font-family","monospace"]]);Kt.appendChild(ot.createTSpan(y+":"+A)),ze.appendChild(Kt);var rn=Kt.getBBox();ot.setAttributes(Kt,[["x",((24-rn.width)/2).toString()],["y",((24-rn.height)/2-rn.y).toString()]]);var At=ot.createPath(ot.getHollowRectanglePath(0,0,24,24,(24-Math.ceil(rn.width))/2,(24-Math.ceil(rn.height))/2,Math.ceil(rn.width),Math.ceil(rn.height)));return pn.appendChild(At),ot.setAttributes(Nn,[["clip-path","url(#text-bg-clip)"]]),document.body.removeChild(ze),ze.outerHTML}return''},J}(),Pr=function(J){function y(A,X,te){var $=J.call(this,A,X)||this;return $.isDropdownOpen=!1,$.onClick=$.dropdownButtonClicked,$.dropdownButtons=te,$}return wt(y,J),y.prototype.setupDropdown=function(){var A=this;this.dropdownBlock=document.createElement("div"),this.dropdownBlock.className=this.dropdownClassName+" "+this.dropdownColorsClassName,this.dropdownBlock.style.display="none",this.dropdownButtons.forEach(function(X){X.className=A.className,X.colorsClassName=A.colorsClassName,A.dropdownBlock.appendChild(X.getUI())}),this.uiContainer.appendChild(this.dropdownBlock)},y.prototype.positionDropdown=function(){this.dropdownBlock.style.left=this.uiContainer.clientLeft+"px",this.dropdownBlock.style.top=this.uiContainer.clientTop+this.uiContainer.clientHeight+"px"},y.prototype.dropdownButtonClicked=function(){this.dropdownBlock===void 0&&this.setupDropdown(),this.isDropdownOpen=!this.isDropdownOpen,this.toggleDropdown()},y.prototype.toggleDropdown=function(){this.positionDropdown(),this.dropdownBlock.style.display=this.isDropdownOpen?"inline-block":"none"},y.prototype.showDropdown=function(){this.isDropdownOpen=!0,this.toggleDropdown()},y.prototype.hideDropdown=function(){this.isDropdownOpen=!1,this.toggleDropdown()},y}(fr),hr=function(){function J(y,A){this.GRIP_SIZE=10,this.color=y,this.fillColor=A,this.visual=ot.createGroup(),this.visual.appendChild(ot.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ot.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(y){return y===this.visual||y===this.visual.childNodes[0]||y===this.visual.childNodes[1]},J.prototype.setCenter=function(y,A){this.visual.childNodes.forEach(function(X){return ot.setAttributes(X,[["cx",y.toString()],["cy",A.toString()]])})},J}(),Br=function(){function J(y,A,X,te){this.isMoving=!1,this._isGridVisible=!0,this.numberOfGridLines=2,this.horizontalGridLines=[],this.verticalGridLines=[],this._zoomFactor=1,this.cropRectChanged=!1,this.canvasWidth=y,this.canvasHeight=A,this.margin=X,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(y){this._aspectRatio=y,this.adjustCropRect(),this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(y){this._isGridVisible=y,this.gridContainer&&ot.setAttributes(this.gridContainer,[["display",this._isGridVisible?"":"none"]])},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"zoomFactor",{get:function(){return this._zoomFactor},set:function(y){this._zoomFactor=y,this.setCropRectangle(this.cropRect)},enumerable:!1,configurable:!0}),J.prototype.open=function(){var y=this;this.cropShadeElement=ot.createPath("M0,0Z",[["fill",this.cropShadeColor],["fill-opacity","0.8"]]),this.container.appendChild(this.cropShadeElement),this.gridContainer=ot.createGroup([["display",this.isGridVisible?"":"none"]]),this.container.appendChild(this.gridContainer);for(var A=0;Athis.canvasHeight/this.canvasWidth?this.margin:this.margin+this.canvasHeight/2-A.height/2),ot.setAttributes(this.cropRectElement,[["x",A.x.toString()],["y",A.y.toString()],["width",A.width.toString()],["height",A.height.toString()]]);var X=A.height/(this.numberOfGridLines+1);this.horizontalGridLines.forEach(function($,ze){var Ut=A.y+X*(ze+1);ot.setAttributes($,[["x1",""+A.x],["y1",""+Ut],["x2",""+(A.x+A.width)],["y2",""+Ut]])});var te=A.width/(this.numberOfGridLines+1);this.verticalGridLines.forEach(function($,ze){var Ut=A.x+te*(ze+1);ot.setAttributes($,[["x1",""+Ut],["y1",""+A.y],["x2",""+Ut],["y2",""+(A.y+A.height)]])}),ot.setAttributes(this.cropShadeElement,[["d",ot.getHollowRectanglePath(0,0,this.canvasWidth+2*this.margin,this.canvasHeight+2*this.margin,A.x,A.y,A.width,A.height)]]),this.topLeftGrip.setCenter(A.x,A.y),this.topRightGrip.setCenter(A.x+A.width,A.y),this.bottomLeftGrip.setCenter(A.x,A.y+A.height),this.bottomRightGrip.setCenter(A.x+A.width,A.y+A.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(y,A){var X=this.container.getBoundingClientRect();return{x:y-X.left+this.margin,y:A-X.top+this.margin}},J.prototype.onPointerDown=function(y){this.container.setPointerCapture(y.pointerId),this.previousPoint=this.clientToLocalCoordinates(y.clientX,y.clientY),this.cropRectElement===y.target?this.isMoving=!0:this.topLeftGrip.ownsTarget(y.target)?this.activeGrip=this.topLeftGrip:this.bottomLeftGrip.ownsTarget(y.target)?this.activeGrip=this.bottomLeftGrip:this.topRightGrip.ownsTarget(y.target)?this.activeGrip=this.topRightGrip:this.bottomRightGrip.ownsTarget(y.target)&&(this.activeGrip=this.bottomRightGrip)},J.prototype.onPointerMove=function(y){if(this.isMoving)this.move(this.clientToLocalCoordinates(y.clientX,y.clientY));else if(this.activeGrip){var A=this.clientToLocalCoordinates(y.clientX,y.clientY);this.resize(A)}y.preventDefault()},J.prototype.onPointerUp=function(y){this.activeGrip=void 0,this.isMoving=!1,this.container.releasePointerCapture(y.pointerId)},J.prototype.move=function(y){var A=y.x-this.previousPoint.x,X=y.y-this.previousPoint.y;this.zoomFactor!==1&&(A=-A/this.zoomFactor,X=-X/this.zoomFactor),this.cropRect.x=Math.min(Math.max(this.margin,this.cropRect.x+A),this.canvasWidth-this.cropRect.width+this.margin),this.cropRect.y=Math.min(Math.max(this.margin,this.cropRect.y+X),this.canvasHeight-this.cropRect.height+this.margin),this.onCropChange?(this.cropRectChanged=!0,this.onCropChange(this.cropRect)):this.setCropRectangle(this.cropRect),this.previousPoint=y},J.prototype.resize=function(y){var A=Object.assign({},this.cropRect),X=y.x-this.previousPoint.x,te=y.y-this.previousPoint.y;switch(this.activeGrip){case this.bottomLeftGrip:case this.topLeftGrip:A.x+Xthis.canvasWidth*this.zoomFactor&&(X=this.canvasWidth*this.zoomFactor-A.width),A.width+=X}switch(this.activeGrip){case this.topLeftGrip:case this.topRightGrip:this.aspectRatio?(A.y=this.cropRect.y-(this.activeGrip===this.topLeftGrip?-1:1)*this.aspectRatio.getVerticalLength(X),A.height=this.aspectRatio.getVerticalLength(A.width)):(A.y+=te,A.height=this.cropRect.y+this.cropRect.height-A.y);break;case this.bottomLeftGrip:case this.bottomRightGrip:this.aspectRatio?A.height=this.aspectRatio.getVerticalLength(A.width):A.height+=te}A.width<10&&(A.x=this.cropRect.x,A.width=10),A.height<10&&(A.y=this.cropRect.y,A.height=10),this.previousPoint=y,A.x>=this.margin&&A.y>=this.margin&&A.x-this.margin+A.width<=this.canvasWidth&&A.y-this.margin+A.height<=this.canvasHeight&&(this.cropRect=A,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 y=this.cropRect.x+this.cropRect.width/2,A=this.cropRect.y+this.cropRect.height/2,X=this.aspectRatio.getHorizontalLength(this.cropRect.height),te=this.aspectRatio.getVerticalLength(this.cropRect.width);X/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=y-this.cropRect.width/2,this.cropRect.y=A-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(y,A,X,te,$,ze){var Ut=X/y,pn=te/A;return{x:($.x-ze)*Ut+ze,y:($.y-ze)*pn+ze,width:$.width*Ut,height:$.height*pn}},J.prototype.scaleCanvas=function(y,A){var X=this.getRescaledRect(this.canvasWidth,this.canvasHeight,y,A,this.cropRect,this.margin);this.canvasWidth=y,this.canvasHeight=A,this.onCropChange&&this.onCropChange(X),this.setCropRectangle(X)},J}(),qr=function(){function J(y){this._angle=0,this.isDragging=!1,this.width=401,this.height=24,this.title=y,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(y){this._angle=y,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(y){this.controlContainer.setPointerCapture(y.pointerId),this.isDragging=!0,this.previousPoint={x:y.clientX,y:y.clientY}},J.prototype.onPointerMove=function(y){this.isDragging&&(this.onAngleChange&&this.onAngleChange((y.clientX-this.previousPoint.x)/5),this.previousPoint.x=y.clientX)},J.prototype.onPointerUp=function(y){this.isDragging&&this.onAngleChange&&this.onAngleChange((y.clientX-this.previousPoint.x)/5),this.isDragging=!1,this.controlContainer.releasePointerCapture(y.pointerId)},J.prototype.setAngleLabel=function(){if(this.angleLabelText){this.angleLabelText.innerHTML=""+Math.round(this._angle);var y=this.angleLabelText.getBBox();ot.setAttributes(this.angleLabelElement,[["x",((this.width-y.width)/2).toString()],["y",(this.height/2).toString()]])}},J.prototype.positionScaleShape=function(){if(this.scaleShape){var y=this.scaleShape.transform.baseVal.getItem(0);y.setTranslate(this._angle%5*5-25,0),this.scaleShape.transform.baseVal.replaceItem(y,0)}},J.prototype.getVisual=function(){var y=document.createElementNS("http://www.w3.org/2000/svg","svg");y.setAttribute("xmlns","http://www.w3.org/2000/svg"),y.setAttribute("width",this.width+"px"),y.setAttribute("height",this.height+"px"),y.setAttribute("viewBox","0 0 "+this.width+" "+this.height),y.style.flexShrink="0",document.body.appendChild(y);for(var A="M0,"+(this.height-1)+" v"+-this.height/3+"h1v"+this.height/3,X=1;X<=this.width/5+10;X++){var te=X%5==0?this.height/3:this.height/6;A+="h4v"+-te+"h1v"+te}A+="v1H0Z",this.scaleShape=ot.createPath(A);var $=ot.createTransform();this.scaleShape.transform.baseVal.appendItem($),y.appendChild(this.scaleShape),this.angleLabelElement=ot.createText([["x","0"],["y","0"],["font-size","10px"],["font-family","monospace"]]),this.angleLabelText=ot.createTSpan(""),this.angleLabelElement.appendChild(this.angleLabelText);var ze=ot.createTSpan("");return ze.innerHTML="°",this.angleLabelElement.appendChild(ze),y.appendChild(this.angleLabelElement),document.body.removeChild(y),y},J}(),fa=function(){function J(){this.naturalSize=!1,this.imageType="image/png"}return J.prototype.rasterize=function(y,A,X,te,$,ze,Ut){var pn=this;return new Promise(function(Nn){var Kt=document.createElement("canvas");Kt.width=y.width.baseVal.value-2*te,Kt.height=y.height.baseVal.value-2*te;var rn=1,At=1;pn.naturalSize===!0?(rn=A.naturalWidth/(y.width.baseVal.value-2*te)/ze,At=A.naturalHeight/(y.height.baseVal.value-2*te)/Ut,Kt.width=A.naturalWidth/ze,Kt.height=A.naturalHeight/Ut):pn.width!==void 0&&pn.height!==void 0&&(rn=pn.width/X.width,At=pn.height/X.height,Kt.width*=rn,Kt.height*=At);var Yt=Kt.getContext("2d");Yt.translate(Kt.width/2,Kt.height/2),Yt.rotate($*Math.PI/180),Yt.scale(ze,Ut),Yt.translate(-Kt.width/2,-Kt.height/2),Yt.drawImage(A,0,0,Kt.width,Kt.height);var bn=document.createElement("canvas");bn.width=X.width*rn,bn.height=X.height*At,bn.getContext("2d").putImageData(Yt.getImageData((X.x-te)*rn,(X.y-te)*At,X.width*rn,X.height*At),0,0),Nn(bn.toDataURL(pn.imageType,pn.imageQuality))})},J}(),Qt=function(){function J(y){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 Wt(this.instanceNo),this.target=y,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(y){this._zoomToCropEnabled=y,y?this.zoomToCrop():this.unzoomFromCrop()},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"isGridVisible",{get:function(){return this._isGridVisible},set:function(y){this._isGridVisible=y,this.cropLayer&&(this.cropLayer.isGridVisible=this._isGridVisible)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"gridLines",{get:function(){return this._gridLines},set:function(y){this._gridLines=y,this.cropLayer&&(this.cropLayer.numberOfGridLines=this._gridLines)},enumerable:!1,configurable:!0}),Object.defineProperty(J.prototype,"rotationAngle",{get:function(){return this._rotationAngle},set:function(y){this._rotationAngle=y,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 y;return(y=this._aspectRatio)!==null&&y!==void 0?y:this.aspectRatios[0]},set:function(y){this._aspectRatio=y},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(y){y===void 0&&(y=!1),this.isOpen&&(this.coverDiv&&this.closeUI(),this.targetObserver&&this.targetObserver.unobserve(this.target),this.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),y||this.closeEventListeners.forEach(function(A){return A()}),this._isOpen=!1)},J.prototype.addRenderEventListener=function(y){this.renderEventListeners.push(y)},J.prototype.removeRenderEventListener=function(y){this.renderEventListeners.indexOf(y)>-1&&this.renderEventListeners.splice(this.renderEventListeners.indexOf(y),1)},J.prototype.addCloseEventListener=function(y){this.closeEventListeners.push(y)},J.prototype.removeCloseEventListener=function(y){this.closeEventListeners.indexOf(y)>-1&&this.closeEventListeners.splice(this.closeEventListeners.indexOf(y),1)},J.prototype.setupResizeObserver=function(){var y=this;this.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){y.resize(y.target.clientWidth,y.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 y=1*this.target.clientWidth/this.target.clientHeight,A=this.contentDiv.clientWidth/y>this.contentDiv.clientHeight?(this.contentDiv.clientHeight-2*this.CANVAS_MARGIN)*y:this.contentDiv.clientWidth-2*this.CANVAS_MARGIN,X=A+2*this.CANVAS_MARGINy+this.CANVAS_MARGIN?this.target.offsetTop-(y+this.CANVAS_MARGIN):0;this.coverDiv.style.top=A+"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 y=this;this.topToolbar=new kn,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 A=new Ar;A.minWidth=3*this.toolbarHeight+"px",this.topToolbar.addButtonBlock(A);var X=[];this.aspectRatios.forEach(function(At){var Yt=new fr(na.getIcon(At.horizontal,At.vertical),At.horizontal===0&&At.vertical===0?"FREE":At.horizontal+":"+At.vertical);Yt.onClick=function(){return y.ratioButtonClicked(At)},X.push(Yt)}),this.aspectRatioButton=new Pr(na.getIcon(0,0),"Aspect ratio",X),this.aspectRatioButton.dropdownClassName=this.toolbarDropdownStyleClass.name,this.aspectRatioButton.dropdownColorsClassName=this.styles.settings.toolbarDropdownStyleColorsClassName?this.styles.settings.toolbarDropdownStyleColorsClassName:this.toolbarDropdownStyleColorsClass.name,A.addButton(this.aspectRatioButton),this.aspectRatios.length<2&&this.aspectRatioButton.hide();var te=new fr('',"Toggle grid");te.isActive=this.isGridVisible,te.onClick=function(){y.isGridVisible=!y.isGridVisible,te.isActive=y.isGridVisible},A.addButton(te);var $=new fr('',"Zoom to selection");if($.isActive=this.zoomToCropEnabled,$.onClick=function(){y.zoomToCropEnabled=!y.zoomToCropEnabled,$.isActive=y.zoomToCropEnabled},A.addButton($),!on.isLicensed){var ze=new On;this.topToolbar.addElementBlock(ze);var Ut=document.createElement("div");Ut.className=this.topToolbar.buttonClassName+" "+this.topToolbar.buttonColorsClassName;var pn=document.createElement("a");pn.style.color="currentColor",pn.href="https://markerjs.com/products/cropro",pn.target="_blank",pn.innerHTML='',Ut.appendChild(pn),ze.addElement(Ut)}var Nn=new Ar;Nn.minWidth=3*this.toolbarHeight+"px",Nn.contentAlign="end",this.topToolbar.addButtonBlock(Nn);var Kt=new fr('',"OK");Kt.onClick=this.startRenderAndClose,Nn.addButton(Kt),this.styles.settings.toolbarOkButtonStyleColorsClassName&&(Kt.colorsClassName=this.styles.settings.toolbarOkButtonStyleColorsClassName);var rn=new fr('',"Close");rn.onClick=this.close,Nn.addButton(rn),this.styles.settings.toolbarCloseButtonStyleColorsClassName&&(rn.colorsClassName=this.styles.settings.toolbarCloseButtonStyleColorsClassName)},J.prototype.addBottomToolbar=function(){var y=this;this.bottomToolbar=new kn,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 A=new Ar;A.minWidth=2*this.toolbarHeight+"px",this.bottomToolbar.addButtonBlock(A);var X=new fr('',"Rotate left");X.onClick=this.rotateLeftButtonClicked,A.addButton(X);var te=new fr('',"Rotate right");te.onClick=this.rotateRightButtonClicked,A.addButton(te);var $=new On;$.className=this.toolbarStraightenerBlockStyleClass.name,this.bottomToolbar.addElementBlock($),this.straightener=new qr("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){y.rotateBy(Nn),y.straightener.angle=y.rotationAngle},$.addElement(this.straightener.getUI());var ze=new Ar;ze.minWidth=2*this.toolbarHeight+"px",ze.contentAlign="end",this.bottomToolbar.addButtonBlock(ze);var Ut=new fr('',"Flip horizontal");Ut.onClick=this.flipHorizontallyButtonClicked,ze.addButton(Ut);var pn=new fr('',"Flip vertical");pn.onClick=this.flipVerticallyButtonClicked,ze.addButton(pn)},J.prototype.ratioButtonClicked=function(y){this.aspectRatio=y,this.applyAspectRatio(),this.aspectRatioButton.hideDropdown()},J.prototype.applyAspectRatio=function(){this.setCropLayerAspectRatio(),this.aspectRatioButton.icon=na.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(y){if(y){var A=this.cropLayer.getRescaledRect(y.width,y.height,this.imageWidth,this.imageHeight,y.cropRect,this.CANVAS_MARGIN);this.cropLayer.setCropRectangle(A),this.cropRectChanged(A),this.flippedHorizontally=y.flippedHorizontally,this.flippedVertically=y.flippedVertically,this.applyFlip(),this.rotationAngle=y.rotationAngle,this.applyRotation()}},J.prototype.clientToLocalCoordinates=function(y,A){var X=this.cropImage.getBoundingClientRect();return{x:y-X.left,y:A-X.top}},J.prototype.onWindowResize=function(){this.positionUI()},J.prototype.positionUI=function(){switch(this.setTopLeft(),this.displayMode){case"inline":var y=this.target.offsetTop>this.toolbarHeight?this.target.offsetTop-this.toolbarHeight:0;this.coverDiv.style.top=y+"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 y=this.rotationAngle-90;this.rotationAngle%90!=0&&(y+=this.rotationAngle>=0?90-this.rotationAngle%90:-this.rotationAngle%90),this.rotateTo(y)},J.prototype.rotateRightButtonClicked=function(){var y=this.rotationAngle+90;this.rotationAngle%90!=0&&(y-=this.rotationAngle>=0?this.rotationAngle%90:90+this.rotationAngle%90),this.rotateTo(y)},J.prototype.rotateTo=function(y){y=(y=y>180?y-360:y)<=-180?y+360:y,this.rotationAngle=y,this.applyRotation()},J.prototype.rotateBy=function(y){this.rotateTo((this.rotationAngle+y)%360)},J.prototype.applyRotation=function(){var y=this.zoomToCropEnabled;this.zoomToCropEnabled=!1,this.editingTargetRotationScaleContainer.style.transformOrigin=this.imageWidth/2+"px "+this.imageHeight/2+"px",this.editingTargetRotationScaleContainer.style.transform="scale(1)";var A=this.editingTargetRotationContainer.transform.baseVal.getItem(0);A.setRotate(this.rotationAngle,this.imageWidth/2,this.imageHeight/2),this.editingTargetRotationContainer.transform.baseVal.replaceItem(A,0);var X=this.editingTarget.getBoundingClientRect();this.scaleFactor=Math.min(this.imageWidth/X.width,this.imageHeight/X.height),this.editingTargetRotationScaleContainer.style.transform="scale("+this.scaleFactor+")",this.zoomToCropEnabled=y},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 ht(this,void 0,void 0,function(){var y,A;return qt(this,function(X){switch(X.label){case 0:return[4,this.render()];case 1:return y=X.sent(),A=this.getState(),this.renderEventListeners.forEach(function(te){return te(y,A)}),this.close(!0),[2]}})})},J.prototype.render=function(){return ht(this,void 0,void 0,function(){var y;return qt(this,function(A){switch(A.label){case 0:return(y=new fa).naturalSize=this.renderAtNaturalSize,y.imageType=this.renderImageType,y.imageQuality=this.renderImageQuality,y.width=this.renderWidth,y.height=this.renderHeight,this.unzoomFromCrop(),ot.setAttributes(this.cropLayerContainer,[["display","none"]]),[4,y.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 A.sent(),[4,y.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,A.sent()]}})})},J.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Bn("toolbar",` width: `+(this.displayMode==="inline"?"100%":"calc(100vw - "+2*this.popupMargin+"px)")+`; flex-shrink: 0; display: flex; @@ -229,28 +229,28 @@ PERFORMANCE OF THIS SOFTWARE. `)),this.toolbarStraightenerStyleColorsClass=this.styles.addClass(new Bn("toolbar_straightener_colors",` color: `+this.styles.settings.toolbarColor+`; fill: currentColor; - `))},J.instanceCounter=0,J}(),qn=F("8hTe"),oa=F.n(qn),_a=/]*>/g;function jr(J){var y=document.createElement("div");return y.innerHTML=J,y.childNodes.length===0?"":y.childNodes[0].nodeValue}var ra=rt.a=function(J){var y=J.value,A=y===void 0?"":y,X=J.edit,te=X===void 0?!1:X,$=J.className,ze=J.showTextOnly,Ut=J.showLines,pn=J.replaces,Nn=J.zoomImg,Kt=J.hasMask,rn=J.style,At=rn===void 0?{}:rn,Yt=J.stylesPrev,bn=Yt===void 0?{}:Yt,tr=String(A),Wn=Object(D.useRef)(),Jn=Object(D.useRef)(),Sr=Object(D.useState)(""),zn=Object(B.a)(Sr,2),Gn=zn[0],Un=zn[1],mn=Object(D.useState)("office"),br=Object(B.a)(mn,2),_r=br[0],Cn=br[1],or=function(){var qe=new Qt(Jn.current);qe.displayMode="popup",qe.addRenderEventListener(function(){var ht=Object(w.a)(k.a.mark(function Ee(gt){var yt;return k.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return Wn.current.style.display="none",bt.next=3,Object(Je.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:gt}});case 3:yt=bt.sent,yt!=null&&yt.id&&pn(Jn.current.getAttribute("src").replace(oe.a.API_SERVER,""),"/api/attachments/".concat(yt==null?void 0:yt.id,"?type=").concat(yt.content_type));case 5:case"end":return bt.stop()}},Ee)}));return function(Ee){return ht.apply(this,arguments)}}()),qe.show()},xr=function(){var qe=new ge(Jn.current);qe.settings.displayMode="popup",qe.addEventListener("render",function(){var ht=Object(w.a)(k.a.mark(function Ee(gt){var yt;return k.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:if(Wn.current.style.display="none",!Jn.current){bt.next=6;break}return bt.next=4,Object(Je.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:gt.dataUrl}});case 4:yt=bt.sent,yt!=null&&yt.id&&pn(Jn.current.getAttribute("src").replace(oe.a.API_SERVER,""),"/api/attachments/".concat(yt==null?void 0:yt.id,"?type=").concat(yt.content_type));case 6:case"end":return bt.stop()}},Ee)}));return function(Ee){return ht.apply(this,arguments)}}()),qe.show(),window.markerArea=qe},Ur=Object(D.useMemo)(function(){try{var $e=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,qe=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ht=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;tr=tr.replace($e,"("+oe.a.API_SERVER+"/api/attachments/").replace(qe,'"'+oe.a.API_SERVER+"/api/attachments/").replace(ht,'"'+oe.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}(),qn=F("8hTe"),oa=F.n(qn),_a=/]*>/g;function jr(J){var y=document.createElement("div");return y.innerHTML=J,y.childNodes.length===0?"":y.childNodes[0].nodeValue}var ra=rt.a=function(J){var y=J.value,A=y===void 0?"":y,X=J.edit,te=X===void 0?!1:X,$=J.className,ze=J.showTextOnly,Ut=J.showLines,pn=J.replaces,Nn=J.zoomImg,Kt=J.hasMask,rn=J.style,At=rn===void 0?{}:rn,Yt=J.stylesPrev,bn=Yt===void 0?{}:Yt,tr=String(A),Wn=Object(D.useRef)(),Jn=Object(D.useRef)(),Sr=Object(D.useState)(""),zn=Object(B.a)(Sr,2),Gn=zn[0],Un=zn[1],mn=Object(D.useState)("office"),br=Object(B.a)(mn,2),_r=br[0],Cn=br[1],or=function(){var qe=new Qt(Jn.current);qe.displayMode="popup",qe.addRenderEventListener(function(){var ft=Object(w.a)(k.a.mark(function Ee(gt){var yt;return k.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return Wn.current.style.display="none",bt.next=3,Object(Je.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:gt}});case 3:yt=bt.sent,yt!=null&&yt.id&&pn(Jn.current.getAttribute("src").replace(oe.a.API_SERVER,""),"/api/attachments/".concat(yt==null?void 0:yt.id,"?type=").concat(yt.content_type));case 5:case"end":return bt.stop()}},Ee)}));return function(Ee){return ft.apply(this,arguments)}}()),qe.show()},xr=function(){var qe=new ge(Jn.current);qe.settings.displayMode="popup",qe.addEventListener("render",function(){var ft=Object(w.a)(k.a.mark(function Ee(gt){var yt;return k.a.wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:if(Wn.current.style.display="none",!Jn.current){bt.next=6;break}return bt.next=4,Object(Je.a)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:"educoder.png",file:gt.dataUrl}});case 4:yt=bt.sent,yt!=null&&yt.id&&pn(Jn.current.getAttribute("src").replace(oe.a.API_SERVER,""),"/api/attachments/".concat(yt==null?void 0:yt.id,"?type=").concat(yt.content_type));case 6:case"end":return bt.stop()}},Ee)}));return function(Ee){return ft.apply(this,arguments)}}()),qe.show(),window.markerArea=qe},Ur=Object(D.useMemo)(function(){try{var $e=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,qe=/\"\/api\/attachments\/|\"\/attachments\/download\//g,ft=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g;tr=tr.replace($e,"("+oe.a.API_SERVER+"/api/attachments/").replace(qe,'"'+oe.a.API_SERVER+"/api/attachments/").replace(ft,'"'+oe.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]

      ",P()),S()),Ee=Ee.replace(/(__special_katext_id_\d+__)/g,function(Lt,bt){var ut=gt[bt],kt=ut.type,Mt=ut.expression;return Object(ie.renderToString)(jr(Mt)||"",{displayMode:kt==="block",throwOnError:!1,output:"html"})}),Ee=Ee.replace(/▁/g,"\u2581\u2581\u2581"),_(),ze){var yt=document.createElement("div");return yt.innerHTML=Ee,yt.innerText}return setTimeout(function(){return Ve()},500),Ee},[tr]),q=Object(D.useRef)();b.WebkitLineClamp=Ut,Ut&&(At=Object(T.a)(Object(T.a)({},At),b));function De($e){var qe=$e.target;if(qe.tagName.toUpperCase()==="IMG"){if(Nn){var ht=qe.getAttribute("src");Un(ht),Cn("image")}}else if(qe.tagName.toUpperCase()==="A"){var Ee=qe.getAttribute("href");if(Ee.indexOf("office")>-1)$e.preventDefault(),Un(Ee),Cn("office");else if(Ee.indexOf("application/pdf")>-1)$e.preventDefault(),Un(Ee),Cn("pdf");else if(Ee.indexOf("type=text")>-1)$e.preventDefault(),Un(Ee),Cn("html");else if(Ee.startsWith("#")){$e.preventDefault();var gt=document.getElementById(Ee.replace("#",""));gt&>.scrollIntoView(!0)}}}var Ve=function(){var qe,ht=(qe=q.current)===null||qe===void 0?void 0:qe.querySelectorAll("video");ht==null||ht.forEach(function(Ee){if(Ee.oncontextmenu=function(){return!1},Ee.src.indexOf(".m3u8")>-1&&!Ee.canPlayType("application/vnd.apple.mpegurl")){if(Z.a.isSupported()){var gt=new Z.a;gt.loadSource(Ee.src),gt.attachMedia(Ee)}}})};Object(D.useEffect)(function(){if(q.current&&Ur&&(Ur.match(_a)&&window.PR.prettyPrint()),q.current)return q.current.addEventListener("click",De),function(){q.current.removeEventListener("click",De),_(),S()}},[Ur,q.current,De]);var Be=function(qe){if(!te)return;qe.target.nodeName==="IMG"?(Wn.current.style.display="flex",Wn.current.style.width=qe.target.clientWidth+"px",Wn.current.style.height=qe.target.clientHeight+"px",Wn.current.style.top=qe.target.offsetTop+"px",Wn.current.style.left=qe.target.offsetLeft+"px",Jn.current.src=qe.target.getAttribute("src")):Wn.current.style.display="none"};return m.a.createElement("div",{style:{position:"relative"}},m.a.createElement("div",{ref:q,style:Object(T.a)({},At),className:"".concat($||""," markdown-body ").concat(oa.a.mdBody),onMouseOver:Be,dangerouslySetInnerHTML:{__html:Ur}}),m.a.createElement("div",{ref:Wn,className:oa.a.button},m.a.createElement(z.a,null,m.a.createElement(K.a,{onClick:function(){return or()}},"\u88C1\u526A"),m.a.createElement(K.a,{onClick:function(){return xr()}},"\u7F16\u8F91"))),m.a.createElement("img",{ref:Jn,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),m.a.createElement(be.a,{close:!0,data:Gn,hasMask:Kt,type:Gn!=null&&Gn.length?_r:"",style:Object(T.a)({},bn),onClose:function(){return Un("")}}))}},"9VGf":function(an,rt,F){"use strict";F.d(rt,"a",function(){return I});var re=F("q1tI"),z=F.n(re);function I(K,T){var w=Object(re.useRef)();Object(re.useEffect)(function(){w.current=K}),Object(re.useEffect)(function(){function B(){w.current()}if(T!==null){var x=setInterval(B,T);return function(){return clearInterval(x)}}},[T])}},BU3w:function(an,rt,F){"use strict";F.d(rt,"a",function(){return w});var re=F("MNnm"),z="rc-util-key";function I(B){if(B.attachTo)return B.attachTo;var x=document.querySelector("head");return x||document.body}function K(B){var x,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(re.a)())return null;var D=document.createElement("style");if((x=k.csp)===null||x===void 0?void 0:x.nonce){var m;D.nonce=(m=k.csp)===null||m===void 0?void 0:m.nonce}D.innerHTML=B;var R=I(k),M=R.firstChild;return k.prepend&&R.prepend?R.prepend(D):k.prepend&&M?R.insertBefore(D,M):R.appendChild(D),D}var T=new Map;function w(B,x){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=I(k);if(!T.has(D)){var m=K("",k),R=m.parentNode;T.set(D,R),R.removeChild(m)}var M=Array.from(T.get(D).children).find(function(o){return o.tagName==="STYLE"&&o[z]===x});if(M){var g,n;if(((g=k.csp)===null||g===void 0?void 0:g.nonce)&&M.nonce!==((n=k.csp)===null||n===void 0?void 0:n.nonce)){var p;M.nonce=(p=k.csp)===null||p===void 0?void 0:p.nonce}return M.innerHTML!==B&&(M.innerHTML=B),M}var d=K(B,k);return d[z]=x,d}},Bd2K:function(an,rt,F){(function(re){re(F("VrN/"),F("osHv"))})(function(re){re.defineOption("autoCloseTags",!1,function(k,D,m){if(m!=re.Init&&m&&k.removeKeyMap("autoCloseTags"),!D)return;var R={name:"autoCloseTags"};(typeof D!="object"||D.whenClosing!==!1)&&(R["'/'"]=function(M){return w(M)}),(typeof D!="object"||D.whenOpening!==!1)&&(R["'>'"]=function(M){return K(M)}),k.addKeyMap(R)});var z=["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 K(k){if(k.getOption("disableInput"))return re.Pass;for(var D=k.listSelections(),m=[],R=k.getOption("autoCloseTags"),M=0;Mg.ch&&(u=u.slice(0,u.length-n.end+g.ch));var v=u.toLowerCase();if(!u||n.type=="string"&&(n.end!=g.ch||!/[\"\']/.test(n.string.charAt(n.string.length-1))||n.string.length==1)||n.type=="tag"&&o.close||n.string.indexOf("/")==g.ch-n.start-1||S&&B(S,v)>-1||x(k,p.mode.xmlCurrentContext&&p.mode.xmlCurrentContext(d)||[],u,g,!0))return re.Pass;var P=typeof R=="object"&&R.emptyTags;if(P&&B(P,u)>-1){m[M]={text:"/>",newPos:re.Pos(g.line,g.ch+2)};continue}var E=b&&B(b,v)>-1;m[M]={indent:E,text:">"+(E?` +`)}catch(Lt){}var Ee=G(tr),gt=C();if(tr.match(/\[TOC\]/)&&(Ee=Ee.replace("

      [TOC]

      ",P()),S()),Ee=Ee.replace(/(__special_katext_id_\d+__)/g,function(Lt,bt){var ut=gt[bt],kt=ut.type,Mt=ut.expression;return Object(ie.renderToString)(jr(Mt)||"",{displayMode:kt==="block",throwOnError:!1,output:"html"})}),Ee=Ee.replace(/▁/g,"\u2581\u2581\u2581"),_(),ze){var yt=document.createElement("div");return yt.innerHTML=Ee,yt.innerText}return setTimeout(function(){return Ve()},500),Ee},[tr]),q=Object(D.useRef)();b.WebkitLineClamp=Ut,Ut&&(At=Object(T.a)(Object(T.a)({},At),b));function De($e){var qe=$e.target;if(qe.tagName.toUpperCase()==="IMG"){if(Nn){var ft=qe.getAttribute("src");Un(ft),Cn("image")}}else if(qe.tagName.toUpperCase()==="A"){var Ee=qe.getAttribute("href");if(Ee.indexOf("office")>-1)$e.preventDefault(),Un(Ee),Cn("office");else if(Ee.indexOf("application/pdf")>-1)$e.preventDefault(),Un(Ee),Cn("pdf");else if(Ee.indexOf("type=text")>-1)$e.preventDefault(),Un(Ee),Cn("html");else if(Ee.startsWith("#")){$e.preventDefault();var gt=document.getElementById(Ee.replace("#",""));gt&>.scrollIntoView(!0)}}}var Ve=function(){var qe,ft=(qe=q.current)===null||qe===void 0?void 0:qe.querySelectorAll("video");ft==null||ft.forEach(function(Ee){if(Ee.oncontextmenu=function(){return!1},Ee.src.indexOf(".m3u8")>-1&&!Ee.canPlayType("application/vnd.apple.mpegurl")){if(Z.a.isSupported()){var gt=new Z.a;gt.loadSource(Ee.src),gt.attachMedia(Ee)}}})};Object(D.useEffect)(function(){if(q.current&&Ur&&(Ur.match(_a)&&window.PR.prettyPrint()),q.current)return q.current.addEventListener("click",De),function(){q.current.removeEventListener("click",De),_(),S()}},[Ur,q.current,De]);var Be=function(qe){if(!te)return;qe.target.nodeName==="IMG"?(Wn.current.style.display="flex",Wn.current.style.width=qe.target.clientWidth+"px",Wn.current.style.height=qe.target.clientHeight+"px",Wn.current.style.top=qe.target.offsetTop+"px",Wn.current.style.left=qe.target.offsetLeft+"px",Jn.current.src=qe.target.getAttribute("src")):Wn.current.style.display="none"};return m.a.createElement("div",{style:{position:"relative"}},m.a.createElement("div",{ref:q,style:Object(T.a)({},At),className:"".concat($||""," markdown-body ").concat(oa.a.mdBody),onMouseOver:Be,dangerouslySetInnerHTML:{__html:Ur}}),m.a.createElement("div",{ref:Wn,className:oa.a.button},m.a.createElement(z.a,null,m.a.createElement(K.a,{onClick:function(){return or()}},"\u88C1\u526A"),m.a.createElement(K.a,{onClick:function(){return xr()}},"\u7F16\u8F91"))),m.a.createElement("img",{ref:Jn,src:"",alt:"sample",crossOrigin:"anonymous",style:{maxWidth:"90%",opacity:0,position:"absolute",zIndex:-1}}),m.a.createElement(be.a,{close:!0,data:Gn,hasMask:Kt,type:Gn!=null&&Gn.length?_r:"",style:Object(T.a)({},bn),onClose:function(){return Un("")}}))}},"9VGf":function(an,rt,F){"use strict";F.d(rt,"a",function(){return I});var re=F("q1tI"),z=F.n(re);function I(K,T){var w=Object(re.useRef)();Object(re.useEffect)(function(){w.current=K}),Object(re.useEffect)(function(){function B(){w.current()}if(T!==null){var x=setInterval(B,T);return function(){return clearInterval(x)}}},[T])}},BU3w:function(an,rt,F){"use strict";F.d(rt,"a",function(){return w});var re=F("MNnm"),z="rc-util-key";function I(B){if(B.attachTo)return B.attachTo;var x=document.querySelector("head");return x||document.body}function K(B){var x,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(re.a)())return null;var D=document.createElement("style");if((x=k.csp)===null||x===void 0?void 0:x.nonce){var m;D.nonce=(m=k.csp)===null||m===void 0?void 0:m.nonce}D.innerHTML=B;var R=I(k),M=R.firstChild;return k.prepend&&R.prepend?R.prepend(D):k.prepend&&M?R.insertBefore(D,M):R.appendChild(D),D}var T=new Map;function w(B,x){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=I(k);if(!T.has(D)){var m=K("",k),R=m.parentNode;T.set(D,R),R.removeChild(m)}var M=Array.from(T.get(D).children).find(function(o){return o.tagName==="STYLE"&&o[z]===x});if(M){var g,n;if(((g=k.csp)===null||g===void 0?void 0:g.nonce)&&M.nonce!==((n=k.csp)===null||n===void 0?void 0:n.nonce)){var p;M.nonce=(p=k.csp)===null||p===void 0?void 0:p.nonce}return M.innerHTML!==B&&(M.innerHTML=B),M}var d=K(B,k);return d[z]=x,d}},Bd2K:function(an,rt,F){(function(re){re(F("VrN/"),F("osHv"))})(function(re){re.defineOption("autoCloseTags",!1,function(k,D,m){if(m!=re.Init&&m&&k.removeKeyMap("autoCloseTags"),!D)return;var R={name:"autoCloseTags"};(typeof D!="object"||D.whenClosing!==!1)&&(R["'/'"]=function(M){return w(M)}),(typeof D!="object"||D.whenOpening!==!1)&&(R["'>'"]=function(M){return K(M)}),k.addKeyMap(R)});var z=["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 K(k){if(k.getOption("disableInput"))return re.Pass;for(var D=k.listSelections(),m=[],R=k.getOption("autoCloseTags"),M=0;Mg.ch&&(u=u.slice(0,u.length-n.end+g.ch));var v=u.toLowerCase();if(!u||n.type=="string"&&(n.end!=g.ch||!/[\"\']/.test(n.string.charAt(n.string.length-1))||n.string.length==1)||n.type=="tag"&&o.close||n.string.indexOf("/")==g.ch-n.start-1||S&&B(S,v)>-1||x(k,p.mode.xmlCurrentContext&&p.mode.xmlCurrentContext(d)||[],u,g,!0))return re.Pass;var P=typeof R=="object"&&R.emptyTags;if(P&&B(P,u)>-1){m[M]={text:"/>",newPos:re.Pos(g.line,g.ch+2)};continue}var E=b&&B(b,v)>-1;m[M]={indent:E,text:">"+(E?` -`:"")+"",newPos:E?re.Pos(g.line+1,0):re.Pos(g.line,g.ch+1)}}for(var h=typeof R=="object"&&R.dontIndentOnAutoClose,M=D.length-1;M>=0;M--){var c=m[M];k.replaceRange(c.text,D[M].head,D[M].anchor,"+insert");var s=k.listSelections().slice(0);s[M]={head:c.newPos,anchor:c.newPos},k.setSelections(s),!h&&c.indent&&(k.indentLine(c.newPos.line,null,!0),k.indentLine(c.newPos.line+1,null,!0))}}function T(k,D){for(var m=k.listSelections(),R=[],M=D?"/":""&&(S+=">"),R[p]=S}if(k.replaceSelections(R),m=k.listSelections(),!n)for(var p=0;p=0&&D[d]==m;d--)++p;R=n.to;for(var d=1;d0){for(var D=0;D1&&arguments[1]!==void 0?arguments[1]:"",D=[],m=0;mje.length)&&(we=je.length);for(var Te=0,ue=new Array(we);Te=je.length?{done:!0}:{done:!1,value:je[ue++]}}}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=je[Symbol.iterator](),Te.next.bind(Te)}function w(je,we){return we={exports:{}},je(we,we.exports),we.exports}var B=w(function(je){function we(){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(ue){je.exports.defaults=ue}je.exports={defaults:we(),getDefaults:we,changeDefaults:Te}}),x=B.defaults,k=B.getDefaults,D=B.changeDefaults,m=/[&<>"']/,R=/[&<>"']/g,M=/[<>"']|&(?!#?\w+;)/,g=/[<>"']|&(?!#?\w+;)/g,n={"&":"&","<":"<",">":">",'"':""","'":"'"},p=function(we){return n[we]};function d(je,we){if(we){if(m.test(je))return je.replace(R,p)}else if(M.test(je))return je.replace(g,p);return je}var o=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function u(je){return je.replace(o,function(we,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 f=/(^|[^\[])\^/g;function S(je,we){je=je.source||je,we=we||"";var Te={replace:function(pe,me){return me=me.source||me,me=me.replace(f,"$1"),je=je.replace(pe,me),Te},getRegex:function(){return new RegExp(je,we)}};return Te}var b=/[^\w:]/g,v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(je,we,Te){if(je){var ue;try{ue=decodeURIComponent(u(Te)).replace(b,"").toLowerCase()}catch(pe){return null}if(ue.indexOf("javascript:")===0||ue.indexOf("vbscript:")===0||ue.indexOf("data:")===0)return null}we&&!v.test(Te)&&(Te=i(we,Te));try{Te=encodeURI(Te).replace(/%25/g,"%")}catch(pe){return null}return Te}var E={},h=/^[^:]+:\/*[^/]*$/,c=/^([^:]+:)[\s\S]*$/,s=/^([^:]+:\/*[^/]*)[\s\S]*$/;function i(je,we){E[" "+je]||(h.test(je)?E[" "+je]=je+"/":E[" "+je]=N(je,"/",!0)),je=E[" "+je];var Te=je.indexOf(":")===-1;return we.substring(0,2)==="//"?Te?we:je.replace(c,"$1")+we:we.charAt(0)==="/"?Te?we:je.replace(s,"$1")+we:je+we}var C={exec:function(){}};function _(je){for(var we=1,Te,ue;we=0&&nt[St]==="\\";)We=!We;return We?"|":" |"}),ue=Te.split(/ \|/),pe=0;if(ue.length>we)ue.splice(we);else for(;ue.length",newPos:E?re.Pos(g.line+1,0):re.Pos(g.line,g.ch+1)}}for(var f=typeof R=="object"&&R.dontIndentOnAutoClose,M=D.length-1;M>=0;M--){var c=m[M];k.replaceRange(c.text,D[M].head,D[M].anchor,"+insert");var s=k.listSelections().slice(0);s[M]={head:c.newPos,anchor:c.newPos},k.setSelections(s),!f&&c.indent&&(k.indentLine(c.newPos.line,null,!0),k.indentLine(c.newPos.line+1,null,!0))}}function T(k,D){for(var m=k.listSelections(),R=[],M=D?"/":""&&(S+=">"),R[p]=S}if(k.replaceSelections(R),m=k.listSelections(),!n)for(var p=0;p=0&&D[d]==m;d--)++p;R=n.to;for(var d=1;d0){for(var D=0;D1&&arguments[1]!==void 0?arguments[1]:"",D=[],m=0;mje.length)&&(we=je.length);for(var Te=0,ue=new Array(we);Te=je.length?{done:!0}:{done:!1,value:je[ue++]}}}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=je[Symbol.iterator](),Te.next.bind(Te)}function w(je,we){return we={exports:{}},je(we,we.exports),we.exports}var B=w(function(je){function we(){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(ue){je.exports.defaults=ue}je.exports={defaults:we(),getDefaults:we,changeDefaults:Te}}),x=B.defaults,k=B.getDefaults,D=B.changeDefaults,m=/[&<>"']/,R=/[&<>"']/g,M=/[<>"']|&(?!#?\w+;)/,g=/[<>"']|&(?!#?\w+;)/g,n={"&":"&","<":"<",">":">",'"':""","'":"'"},p=function(we){return n[we]};function d(je,we){if(we){if(m.test(je))return je.replace(R,p)}else if(M.test(je))return je.replace(g,p);return je}var o=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function u(je){return je.replace(o,function(we,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 S(je,we){je=je.source||je,we=we||"";var Te={replace:function(pe,me){return me=me.source||me,me=me.replace(h,"$1"),je=je.replace(pe,me),Te},getRegex:function(){return new RegExp(je,we)}};return Te}var b=/[^\w:]/g,v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function P(je,we,Te){if(je){var ue;try{ue=decodeURIComponent(u(Te)).replace(b,"").toLowerCase()}catch(pe){return null}if(ue.indexOf("javascript:")===0||ue.indexOf("vbscript:")===0||ue.indexOf("data:")===0)return null}we&&!v.test(Te)&&(Te=i(we,Te));try{Te=encodeURI(Te).replace(/%25/g,"%")}catch(pe){return null}return Te}var E={},f=/^[^:]+:\/*[^/]*$/,c=/^([^:]+:)[\s\S]*$/,s=/^([^:]+:\/*[^/]*)[\s\S]*$/;function i(je,we){E[" "+je]||(f.test(je)?E[" "+je]=je+"/":E[" "+je]=N(je,"/",!0)),je=E[" "+je];var Te=je.indexOf(":")===-1;return we.substring(0,2)==="//"?Te?we:je.replace(c,"$1")+we:we.charAt(0)==="/"?Te?we:je.replace(s,"$1")+we:je+we}var C={exec:function(){}};function _(je){for(var we=1,Te,ue;we=0&&nt[St]==="\\";)We=!We;return We?"|":" |"}),ue=Te.split(/ \|/),pe=0;if(ue.length>we)ue.splice(we);else for(;ue.length=ue.length?pe.slice(ue.length):pe}).join(` `)}var Ae=function(){function je(Te){this.options=Te||L}var we=je.prototype;return we.space=function(ue){var pe=this.rules.block.newline.exec(ue);if(pe)return pe[0].length>1?{type:"space",raw:pe[0]}:{raw:` `}},we.code=function(ue,pe){var me=this.rules.block.code.exec(ue);if(me){var xe=pe[pe.length-1];if(xe&&xe.type==="paragraph")return{raw:me[0],text:me[0].trimRight()};var nt=me[0].replace(/^ {4}/gm,"");return{type:"code",raw:me[0],codeBlockStyle:"indented",text:this.options.pedantic?nt:W(nt,` `)}}},we.fences=function(ue){var pe=this.rules.block.fences.exec(ue);if(pe){var me=pe[0],xe=Je(me,pe[3]||"");return{type:"code",raw:me,lang:pe[2]?pe[2].trim():pe[2],text:xe}}},we.heading=function(ue){var pe=this.rules.block.heading.exec(ue);if(pe)return{type:"heading",raw:pe[0],depth:pe[1].length,text:pe[2]}},we.nptable=function(ue){var pe=this.rules.block.nptable.exec(ue);if(pe){var me={type:"table",header:Z(pe[1].replace(/^ *| *\| *$/g,"")),align:pe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pe[3]?pe[3].replace(/\n$/,"").split(` -`):[],raw:pe[0]};if(me.header.length===me.align.length){var xe=me.align.length,nt;for(nt=0;nt ?/gm,"");return{type:"blockquote",raw:pe[0],text:me}}},we.list=function(ue){var pe=this.rules.block.list.exec(ue);if(pe){for(var me=pe[0],xe=pe[2],nt=xe.length>1,We=xe[xe.length-1]===")",St={type:"list",raw:me,ordered:nt,start:nt?+xe.slice(0,-1):"",loose:!1,items:[]},en=pe[0].match(this.rules.block.item),vn=!1,Zt,Vt,Et,_t,ct,ge,Me,wt=en.length,ft=0;ft1||this.options.smartLists&&Et!==xe)&&(_t=en.slice(ft+1).join(` -`),St.raw=St.raw.substring(0,St.raw.length-_t.length),ft=wt-1)),ct=vn||/\n\n(?!\s*$)/.test(Zt),ft!==wt-1&&(vn=Zt.charAt(Zt.length-1)===` +`):[],raw:pe[0]};if(me.header.length===me.align.length){var xe=me.align.length,nt;for(nt=0;nt ?/gm,"");return{type:"blockquote",raw:pe[0],text:me}}},we.list=function(ue){var pe=this.rules.block.list.exec(ue);if(pe){for(var me=pe[0],xe=pe[2],nt=xe.length>1,We=xe[xe.length-1]===")",St={type:"list",raw:me,ordered:nt,start:nt?+xe.slice(0,-1):"",loose:!1,items:[]},en=pe[0].match(this.rules.block.item),vn=!1,Zt,Vt,Et,_t,ct,ge,Me,wt=en.length,ht=0;ht1||this.options.smartLists&&Et!==xe)&&(_t=en.slice(ht+1).join(` +`),St.raw=St.raw.substring(0,St.raw.length-_t.length),ht=wt-1)),ct=vn||/\n\n(?!\s*$)/.test(Zt),ht!==wt-1&&(vn=Zt.charAt(Zt.length-1)===` `,ct||(ct=vn)),ct&&(St.loose=!0),ge=/^\[[ xX]\] /.test(Zt),Me=void 0,ge&&(Me=Zt[1]!==" ",Zt=Zt.replace(/^\[[ xX]\] +/,"")),St.items.push({type:"list_item",raw:me,task:ge,checked:Me,loose:ct,text:Zt});return St}},we.html=function(ue){var pe=this.rules.block.html.exec(ue);if(pe)return{type:this.options.sanitize?"paragraph":"html",raw:pe[0],pre:!this.options.sanitizer&&(pe[1]==="pre"||pe[1]==="script"||pe[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(pe[0]):oe(pe[0]):pe[0]}},we.def=function(ue){var pe=this.rules.block.def.exec(ue);if(pe){pe[3]&&(pe[3]=pe[3].substring(1,pe[3].length-1));var me=pe[1].toLowerCase().replace(/\s+/g," ");return{tag:me,raw:pe[0],href:pe[2],title:pe[3]}}},we.table=function(ue){var pe=this.rules.block.table.exec(ue);if(pe){var me={type:"table",header:Z(pe[1].replace(/^ *| *\| *$/g,"")),align:pe[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:pe[3]?pe[3].replace(/\n$/,"").split(` `):[]};if(me.header.length===me.align.length){me.raw=pe[0];var xe=me.align.length,nt;for(nt=0;nt/i.test(xe[0])&&(pe=!1),!me&&/^<(pre|code|kbd|script)(\s|>)/i.test(xe[0])?me=!0:me&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(xe[0])&&(me=!1),{type:this.options.sanitize?"text":"html",raw:xe[0],inLink:pe,inRawBlock:me,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(xe[0]):oe(xe[0]):xe[0]}},we.link=function(ue){var pe=this.rules.inline.link.exec(ue);if(pe){var me=ie(pe[2],"()");if(me>-1){var xe=pe[0].indexOf("!")===0?5:4,nt=xe+pe[1].length+me;pe[2]=pe[2].substring(0,me),pe[0]=pe[0].substring(0,nt).trim(),pe[3]=""}var We=pe[2],St="";if(this.options.pedantic){var en=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(We);en?(We=en[1],St=en[3]):St=""}else St=pe[3]?pe[3].slice(1,-1):"";We=We.trim().replace(/^<([\s\S]*)>$/,"$1");var vn=be(pe,{href:We&&We.replace(this.rules.inline._escapes,"$1"),title:St&&St.replace(this.rules.inline._escapes,"$1")},pe[0]);return vn}},we.reflink=function(ue,pe){var me;if((me=this.rules.inline.reflink.exec(ue))||(me=this.rules.inline.nolink.exec(ue))){var xe=(me[2]||me[1]).replace(/\s+/g," ");if(xe=pe[xe.toLowerCase()],!xe||!xe.href){var nt=me[0].charAt(0);return{type:"text",raw:nt,text:nt}}var We=be(me,xe,me[0]);return We}},we.strong=function(ue,pe,me){me===void 0&&(me="");var xe=this.rules.inline.strong.start.exec(ue);if(xe&&(!xe[1]||xe[1]&&(me===""||this.rules.inline.punctuation.exec(me)))){pe=pe.slice(-1*ue.length);var nt=xe[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;nt.lastIndex=0;for(var We;(xe=nt.exec(pe))!=null;)if(We=this.rules.inline.strong.middle.exec(pe.slice(0,xe.index+3)),We)return{type:"strong",raw:ue.slice(0,We[0].length),text:ue.slice(2,We[0].length-2)}}},we.em=function(ue,pe,me){me===void 0&&(me="");var xe=this.rules.inline.em.start.exec(ue);if(xe&&(!xe[1]||xe[1]&&(me===""||this.rules.inline.punctuation.exec(me)))){pe=pe.slice(-1*ue.length);var nt=xe[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;nt.lastIndex=0;for(var We;(xe=nt.exec(pe))!=null;)if(We=this.rules.inline.em.middle.exec(pe.slice(0,xe.index+2)),We)return{type:"em",raw:ue.slice(0,We[0].length),text:ue.slice(1,We[0].length-1)}}},we.codespan=function(ue){var pe=this.rules.inline.code.exec(ue);if(pe){var me=pe[2].replace(/\n/g," "),xe=/[^ ]/.test(me),nt=me.startsWith(" ")&&me.endsWith(" ");return xe&&nt&&(me=me.substring(1,me.length-1)),me=oe(me,!0),{type:"codespan",raw:pe[0],text:me}}},we.br=function(ue){var pe=this.rules.inline.br.exec(ue);if(pe)return{type:"br",raw:pe[0]}},we.del=function(ue){var pe=this.rules.inline.del.exec(ue);if(pe)return{type:"del",raw:pe[0],text:pe[1]}},we.autolink=function(ue,pe){var me=this.rules.inline.autolink.exec(ue);if(me){var xe,nt;return me[2]==="@"?(xe=oe(this.options.mangle?pe(me[1]):me[1]),nt="mailto:"+xe):(xe=oe(me[1]),nt=xe),{type:"link",raw:me[0],text:xe,href:nt,tokens:[{type:"text",raw:xe,text:xe}]}}},we.url=function(ue,pe){var me;if(me=this.rules.inline.url.exec(ue)){var xe,nt;if(me[2]==="@")xe=oe(this.options.mangle?pe(me[0]):me[0]),nt="mailto:"+xe;else{var We;do We=me[0],me[0]=this.rules.inline._backpedal.exec(me[0])[0];while(We!==me[0]);xe=oe(me[0]),me[1]==="www."?nt="http://"+xe:nt=xe}return{type:"link",raw:me[0],text:xe,href:nt,tokens:[{type:"text",raw:xe,text:xe}]}}},we.inlineText=function(ue,pe,me){var xe=this.rules.inline.text.exec(ue);if(xe){var nt;return pe?nt=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(xe[0]):oe(xe[0]):xe[0]:nt=oe(this.options.smartypants?me(xe[0]):xe[0]),{type:"text",raw:xe[0],text:nt}}},je}(),ke=G.noopTest,Ze=G.edit,Xe=G.merge,Pe={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:ke,table:ke,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Pe._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Pe._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Pe.def=Ze(Pe.def).replace("label",Pe._label).replace("title",Pe._title).getRegex(),Pe.bullet=/(?:[*+-]|\d{1,9}[.)])/,Pe.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Pe.item=Ze(Pe.item,"gm").replace(/bull/g,Pe.bullet).getRegex(),Pe.list=Ze(Pe.list).replace(/bull/g,Pe.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Pe.def.source+")").getRegex(),Pe._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",Pe._comment=//,Pe.html=Ze(Pe.html,"i").replace("comment",Pe._comment).replace("tag",Pe._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Pe.paragraph=Ze(Pe._paragraph).replace("hr",Pe.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",Pe._tag).getRegex(),Pe.blockquote=Ze(Pe.blockquote).replace("paragraph",Pe.paragraph).getRegex(),Pe.normal=Xe({},Pe),Pe.gfm=Xe({},Pe.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*|$)"}),Pe.gfm.nptable=Ze(Pe.gfm.nptable).replace("hr",Pe.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",Pe._tag).getRegex(),Pe.gfm.table=Ze(Pe.gfm.table).replace("hr",Pe.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",Pe._tag).getRegex(),Pe.pedantic=Xe({},Pe.normal,{html:Ze(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Pe._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:ke,paragraph:Ze(Pe.normal._paragraph).replace("hr",Pe.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",Pe.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var he={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ke,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:ke,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",he.punctuation=Ze(he.punctuation).replace(/punctuation/g,he._punctuation).getRegex(),he._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",he._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",he.em.start=Ze(he.em.start).replace(/punctuation/g,he._punctuation).getRegex(),he.em.middle=Ze(he.em.middle).replace(/punctuation/g,he._punctuation).replace(/overlapSkip/g,he._overlapSkip).getRegex(),he.em.endAst=Ze(he.em.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.em.endUnd=Ze(he.em.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.start=Ze(he.strong.start).replace(/punctuation/g,he._punctuation).getRegex(),he.strong.middle=Ze(he.strong.middle).replace(/punctuation/g,he._punctuation).replace(/blockSkip/g,he._blockSkip).getRegex(),he.strong.endAst=Ze(he.strong.endAst,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.strong.endUnd=Ze(he.strong.endUnd,"g").replace(/punctuation/g,he._punctuation).getRegex(),he.blockSkip=Ze(he._blockSkip,"g").getRegex(),he.overlapSkip=Ze(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=Ze(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=Ze(he.tag).replace("comment",Pe._comment).replace("attribute",he._attribute).getRegex(),he._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,he._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,he._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,he.link=Ze(he.link).replace("label",he._label).replace("href",he._href).replace("title",he._title).getRegex(),he.reflink=Ze(he.reflink).replace("label",he._label).getRegex(),he.reflinkSearch=Ze(he.reflinkSearch,"g").replace("reflink",he.reflink).replace("nolink",he.nolink).getRegex(),he.normal=Xe({},he),he.pedantic=Xe({},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:Ze(/^!?\[(label)\]\((.*?)\)/).replace("label",he._label).getRegex(),reflink:Ze(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",he._label).getRegex()}),he.gfm=Xe({},he.normal,{escape:Ze(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&&(ue="x"+ue.toString(16)),we+="&#"+ue+";";return we}var V=function(){function je(Te){this.tokens=[],this.tokens.links=Object.create(null),this.options=Te||Se,this.options.tokenizer=this.options.tokenizer||new Ae,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ue={block:ve.normal,inline:Ge.normal};this.options.pedantic?(ue.block=ve.pedantic,ue.inline=Ge.pedantic):this.options.gfm&&(ue.block=ve.gfm,this.options.breaks?ue.inline=Ge.breaks:ue.inline=Ge.gfm),this.tokenizer.rules=ue}je.lex=function(ue,pe){var me=new je(pe);return me.lex(ue)};var we=je.prototype;return we.lex=function(ue){return ue=ue.replace(/\r\n|\r/g,` +]`).replace("lheading",Pe.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var fe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ke,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:ke,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~",fe.punctuation=Ze(fe.punctuation).replace(/punctuation/g,fe._punctuation).getRegex(),fe._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",fe._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",fe.em.start=Ze(fe.em.start).replace(/punctuation/g,fe._punctuation).getRegex(),fe.em.middle=Ze(fe.em.middle).replace(/punctuation/g,fe._punctuation).replace(/overlapSkip/g,fe._overlapSkip).getRegex(),fe.em.endAst=Ze(fe.em.endAst,"g").replace(/punctuation/g,fe._punctuation).getRegex(),fe.em.endUnd=Ze(fe.em.endUnd,"g").replace(/punctuation/g,fe._punctuation).getRegex(),fe.strong.start=Ze(fe.strong.start).replace(/punctuation/g,fe._punctuation).getRegex(),fe.strong.middle=Ze(fe.strong.middle).replace(/punctuation/g,fe._punctuation).replace(/blockSkip/g,fe._blockSkip).getRegex(),fe.strong.endAst=Ze(fe.strong.endAst,"g").replace(/punctuation/g,fe._punctuation).getRegex(),fe.strong.endUnd=Ze(fe.strong.endUnd,"g").replace(/punctuation/g,fe._punctuation).getRegex(),fe.blockSkip=Ze(fe._blockSkip,"g").getRegex(),fe.overlapSkip=Ze(fe._overlapSkip,"g").getRegex(),fe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,fe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,fe._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])?)+(?![-_])/,fe.autolink=Ze(fe.autolink).replace("scheme",fe._scheme).replace("email",fe._email).getRegex(),fe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,fe.tag=Ze(fe.tag).replace("comment",Pe._comment).replace("attribute",fe._attribute).getRegex(),fe._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,fe._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,fe._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,fe.link=Ze(fe.link).replace("label",fe._label).replace("href",fe._href).replace("title",fe._title).getRegex(),fe.reflink=Ze(fe.reflink).replace("label",fe._label).getRegex(),fe.reflinkSearch=Ze(fe.reflinkSearch,"g").replace("reflink",fe.reflink).replace("nolink",fe.nolink).getRegex(),fe.normal=Xe({},fe),fe.pedantic=Xe({},fe.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",fe._label).getRegex(),reflink:Ze(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fe._label).getRegex()}),fe.gfm=Xe({},fe.normal,{escape:Ze(fe.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&&(ue="x"+ue.toString(16)),we+="&#"+ue+";";return we}var V=function(){function je(Te){this.tokens=[],this.tokens.links=Object.create(null),this.options=Te||Se,this.options.tokenizer=this.options.tokenizer||new Ae,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var ue={block:ve.normal,inline:Ge.normal};this.options.pedantic?(ue.block=ve.pedantic,ue.inline=Ge.pedantic):this.options.gfm&&(ue.block=ve.gfm,this.options.breaks?ue.inline=Ge.breaks:ue.inline=Ge.gfm),this.tokenizer.rules=ue}je.lex=function(ue,pe){var me=new je(pe);return me.lex(ue)};var we=je.prototype;return we.lex=function(ue){return ue=ue.replace(/\r\n|\r/g,` `).replace(/\t/g," "),this.blockTokens(ue,this.tokens,!0),this.inline(this.tokens),this.tokens},we.blockTokens=function(ue,pe,me){pe===void 0&&(pe=[]),me===void 0&&(me=!0),ue=ue.replace(/^ +$/gm,"");for(var xe,nt,We,St;ue;){if(xe=this.tokenizer.space(ue)){ue=ue.substring(xe.raw.length),xe.type&&pe.push(xe);continue}if(xe=this.tokenizer.code(ue,pe)){ue=ue.substring(xe.raw.length),xe.type?pe.push(xe):(St=pe[pe.length-1],St.raw+=` `+xe.raw,St.text+=` `+xe.text);continue}if(xe=this.tokenizer.fences(ue)){ue=ue.substring(xe.raw.length),pe.push(xe);continue}if(xe=this.tokenizer.heading(ue)){ue=ue.substring(xe.raw.length),pe.push(xe);continue}if(xe=this.tokenizer.nptable(ue)){ue=ue.substring(xe.raw.length),pe.push(xe);continue}if(xe=this.tokenizer.hr(ue)){ue=ue.substring(xe.raw.length),pe.push(xe);continue}if(xe=this.tokenizer.blockquote(ue)){ue=ue.substring(xe.raw.length),xe.tokens=this.blockTokens(xe.text,[],me),pe.push(xe);continue}if(xe=this.tokenizer.list(ue)){for(ue=ue.substring(xe.raw.length),We=xe.items.length,nt=0;nt0)for(;(en=this.tokenizer.rules.inline.reflinkSearch.exec(St))!=null;)vn.includes(en[0].slice(en[0].lastIndexOf("[")+1,-1))&&(St=St.slice(0,en.index)+"["+"a".repeat(en[0].length-2)+"]"+St.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(en=this.tokenizer.rules.inline.blockSkip.exec(St))!=null;)St=St.slice(0,en.index)+"["+"a".repeat(en[0].length-2)+"]"+St.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ue;){if(We=this.tokenizer.escape(ue)){ue=ue.substring(We.raw.length),pe.push(We);continue}if(We=this.tokenizer.tag(ue,me,xe)){ue=ue.substring(We.raw.length),me=We.inLink,xe=We.inRawBlock,pe.push(We);continue}if(We=this.tokenizer.link(ue)){ue=ue.substring(We.raw.length),We.type==="link"&&(We.tokens=this.inlineTokens(We.text,[],!0,xe)),pe.push(We);continue}if(We=this.tokenizer.reflink(ue,this.tokens.links)){ue=ue.substring(We.raw.length),We.type==="link"&&(We.tokens=this.inlineTokens(We.text,[],!0,xe)),pe.push(We);continue}if(We=this.tokenizer.strong(ue,St,nt)){ue=ue.substring(We.raw.length),We.tokens=this.inlineTokens(We.text,[],me,xe),pe.push(We);continue}if(We=this.tokenizer.em(ue,St,nt)){ue=ue.substring(We.raw.length),We.tokens=this.inlineTokens(We.text,[],me,xe),pe.push(We);continue}if(We=this.tokenizer.codespan(ue)){ue=ue.substring(We.raw.length),pe.push(We);continue}if(We=this.tokenizer.br(ue)){ue=ue.substring(We.raw.length),pe.push(We);continue}if(We=this.tokenizer.del(ue)){ue=ue.substring(We.raw.length),We.tokens=this.inlineTokens(We.text,[],me,xe),pe.push(We);continue}if(We=this.tokenizer.autolink(ue,ee)){ue=ue.substring(We.raw.length),pe.push(We);continue}if(!me&&(We=this.tokenizer.url(ue,ee))){ue=ue.substring(We.raw.length),pe.push(We);continue}if(We=this.tokenizer.inlineText(ue,xe,it)){ue=ue.substring(We.raw.length),nt=We.raw.slice(-1),pe.push(We);continue}if(ue){var Zt="Infinite loop on byte: "+ue.charCodeAt(0);if(this.options.silent){console.error(Zt);break}else throw new Error(Zt)}}return pe},z(je,null,[{key:"rules",get:function(){return{block:ve,inline:Ge}}}]),je}(),Q=B.defaults,fe=G.cleanUrl,_e=G.escape,Fe=function(){function je(Te){this.options=Te||Q}var we=je.prototype;return we.code=function(ue,pe,me){var xe=(pe||"").match(/\S*/)[0];if(this.options.highlight){var nt=this.options.highlight(ue,xe);nt!=null&&nt!==ue&&(me=!0,ue=nt)}return xe?'
      '+(me?ue:_e(ue,!0))+`
      +`+xe.text);continue}if(ue){var en="Infinite loop on byte: "+ue.charCodeAt(0);if(this.options.silent){console.error(en);break}else throw new Error(en)}}return pe},we.inline=function(ue){var pe,me,xe,nt,We,St,en=ue.length;for(pe=0;pe0)for(;(en=this.tokenizer.rules.inline.reflinkSearch.exec(St))!=null;)vn.includes(en[0].slice(en[0].lastIndexOf("[")+1,-1))&&(St=St.slice(0,en.index)+"["+"a".repeat(en[0].length-2)+"]"+St.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(en=this.tokenizer.rules.inline.blockSkip.exec(St))!=null;)St=St.slice(0,en.index)+"["+"a".repeat(en[0].length-2)+"]"+St.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;ue;){if(We=this.tokenizer.escape(ue)){ue=ue.substring(We.raw.length),pe.push(We);continue}if(We=this.tokenizer.tag(ue,me,xe)){ue=ue.substring(We.raw.length),me=We.inLink,xe=We.inRawBlock,pe.push(We);continue}if(We=this.tokenizer.link(ue)){ue=ue.substring(We.raw.length),We.type==="link"&&(We.tokens=this.inlineTokens(We.text,[],!0,xe)),pe.push(We);continue}if(We=this.tokenizer.reflink(ue,this.tokens.links)){ue=ue.substring(We.raw.length),We.type==="link"&&(We.tokens=this.inlineTokens(We.text,[],!0,xe)),pe.push(We);continue}if(We=this.tokenizer.strong(ue,St,nt)){ue=ue.substring(We.raw.length),We.tokens=this.inlineTokens(We.text,[],me,xe),pe.push(We);continue}if(We=this.tokenizer.em(ue,St,nt)){ue=ue.substring(We.raw.length),We.tokens=this.inlineTokens(We.text,[],me,xe),pe.push(We);continue}if(We=this.tokenizer.codespan(ue)){ue=ue.substring(We.raw.length),pe.push(We);continue}if(We=this.tokenizer.br(ue)){ue=ue.substring(We.raw.length),pe.push(We);continue}if(We=this.tokenizer.del(ue)){ue=ue.substring(We.raw.length),We.tokens=this.inlineTokens(We.text,[],me,xe),pe.push(We);continue}if(We=this.tokenizer.autolink(ue,ee)){ue=ue.substring(We.raw.length),pe.push(We);continue}if(!me&&(We=this.tokenizer.url(ue,ee))){ue=ue.substring(We.raw.length),pe.push(We);continue}if(We=this.tokenizer.inlineText(ue,xe,it)){ue=ue.substring(We.raw.length),nt=We.raw.slice(-1),pe.push(We);continue}if(ue){var Zt="Infinite loop on byte: "+ue.charCodeAt(0);if(this.options.silent){console.error(Zt);break}else throw new Error(Zt)}}return pe},z(je,null,[{key:"rules",get:function(){return{block:ve,inline:Ge}}}]),je}(),Q=B.defaults,he=G.cleanUrl,_e=G.escape,Fe=function(){function je(Te){this.options=Te||Q}var we=je.prototype;return we.code=function(ue,pe,me){var xe=(pe||"").match(/\S*/)[0];if(this.options.highlight){var nt=this.options.highlight(ue,xe);nt!=null&&nt!==ue&&(me=!0,ue=nt)}return xe?'
      '+(me?ue:_e(ue,!0))+`
      `:"
      "+(me?ue:_e(ue,!0))+`
      `},we.blockquote=function(ue){return`
      `+ue+`
      @@ -269,17 +269,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `},we.tablerow=function(ue){return` `+ue+` `},we.tablecell=function(ue,pe){var me=pe.header?"th":"td",xe=pe.align?"<"+me+' align="'+pe.align+'">':"<"+me+">";return xe+ue+" -`},we.strong=function(ue){return""+ue+""},we.em=function(ue){return""+ue+""},we.codespan=function(ue){return""+ue+""},we.br=function(){return this.options.xhtml?"
      ":"
      "},we.del=function(ue){return""+ue+""},we.link=function(ue,pe,me){if(ue=fe(this.options.sanitize,this.options.baseUrl,ue),ue===null)return me;var xe='",xe},we.image=function(ue,pe,me){if(ue=fe(this.options.sanitize,this.options.baseUrl,ue),ue===null)return me;var xe=''+me+'":">",xe},we.text=function(ue){return ue},je}(),He=function(){function je(){}var we=je.prototype;return we.strong=function(ue){return ue},we.em=function(ue){return ue},we.codespan=function(ue){return ue},we.del=function(ue){return ue},we.html=function(ue){return ue},we.text=function(ue){return ue},we.link=function(ue,pe,me){return""+me},we.image=function(ue,pe,me){return""+me},we.br=function(){return""},je}(),Rt=function(){function je(){this.seen={}}var we=je.prototype;return we.slug=function(ue){var pe=ue.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(pe)){var me=pe;do this.seen[me]++,pe=me+"-"+this.seen[me];while(this.seen.hasOwnProperty(pe))}return this.seen[pe]=0,pe},je}(),Ht=B.defaults,It=G.unescape,Bt=function(){function je(Te){this.options=Te||Ht,this.options.renderer=this.options.renderer||new Fe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new He,this.slugger=new Rt}je.parse=function(ue,pe){var me=new je(pe);return me.parse(ue)};var we=je.prototype;return we.parse=function(ue,pe){pe===void 0&&(pe=!0);var me="",xe,nt,We,St,en,vn,Zt,Vt,Et,_t,ct,ge,Me,wt,ft,qt,on,ot,Wt=ue.length;for(xe=0;xe0&&ft.tokens[0].type==="text"?(ft.tokens[0].text=ot+" "+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=ot+" "+ft.tokens[0].tokens[0].text)):ft.tokens.unshift({type:"text",text:ot}):wt+=ot),wt+=this.parse(ft.tokens,Me),Et+=this.renderer.listitem(wt,on,qt);me+=this.renderer.list(Et,ct,ge);continue}case"html":{me+=this.renderer.html(_t.text);continue}case"paragraph":{me+=this.renderer.paragraph(this.parseInline(_t.tokens));continue}case"text":{for(Et=_t.tokens?this.parseInline(_t.tokens):_t.text;xe+1An error occurred:

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

      "+tt(We.message+"",!0)+"
      ";throw We}}st.options=st.setOptions=function(je){return tn(st.defaults,je),Ct(st.defaults),st},st.getDefaults=Ke,st.defaults=Dt,st.use=function(je){var we=tn({},je);if(je.renderer&&function(){var ue=st.defaults.renderer||new Fe,pe=function(nt){var We=ue[nt];ue[nt]=function(){for(var St=arguments.length,en=new Array(St),vn=0;vn`,triples:"",explode:"[]{}"},I=re.Pos;re.defineOption("autoCloseBrackets",!1,function(n,p,d){d&&d!=re.Init&&(n.removeKeyMap(T),n.state.closeBrackets=null),p&&(w(K(p,"pairs")),n.state.closeBrackets=p,n.addKeyMap(T))});function K(n,p){return p=="pairs"&&typeof n=="string"?n:typeof n=="object"&&n[p]!=null?n[p]:z[p]}var T={Backspace:k,Enter:D};function w(n){for(var p=0;p=0;u--){var S=o[u].head;n.replaceRange("",I(S.line,S.ch-1),I(S.line,S.ch+1),"+delete")}}function D(n){var p=x(n),d=p&&K(p,"explode");if(!d||n.getOption("disableInput"))return re.Pass;for(var o=n.listSelections(),u=0;u0;return{anchor:new I(n.anchor.line,n.anchor.ch+(p?-1:1)),head:new I(n.head.line,n.head.ch+(p?1:-1))}}function R(n,p){var d=x(n);if(!d||n.getOption("disableInput"))return re.Pass;var o=K(d,"pairs"),u=o.indexOf(p);if(u==-1)return re.Pass;for(var h=K(d,"closeBefore"),S=K(d,"triples"),b=o.charAt(u+1)==p,v=n.listSelections(),P=u%2==0,E,f=0;f=0&&n.getRange(s,I(s.line,s.ch+3))==p+p+p?i="skipThree":i="skip";else if(b&&s.ch>1&&S.indexOf(p)>=0&&n.getRange(I(s.line,s.ch-2),s)==p+p){if(s.ch>2&&/\bstring/.test(n.getTokenTypeAt(I(s.line,s.ch-2))))return re.Pass;i="addFour"}else if(b){var _=s.ch==0?" ":n.getRange(I(s.line,s.ch-1),s);if(!re.isWordChar(C)&&_!=p&&!re.isWordChar(_))i="both";else return re.Pass}else if(P&&(C.length===0||/\s/.test(C)||h.indexOf(C)>-1))i="both";else return re.Pass;if(!E)E=i;else if(E!=i)return re.Pass}var O=u%2?o.charAt(u-1):p,N=u%2?p:o.charAt(u+1);n.operation(function(){if(E=="skip")n.execCommand("goCharRight");else if(E=="skipThree")for(var U=0;U<3;U++)n.execCommand("goCharRight");else if(E=="surround"){for(var H=n.getSelections(),U=0;U0&&(ie.percent=ie.loaded/ie.total*100),G.onProgress(ie)});var W=new FormData;G.data&&Object.keys(G.data).forEach(function(oe){var ie=G.data[oe];if(Array.isArray(ie)){ie.forEach(function(be){W.append(oe+"[]",be)});return}W.append(oe,G.data[oe])}),G.file instanceof Blob?W.append(G.filename,G.file,G.file.name):W.append(G.filename,G.file),L.onerror=function(ie){G.onError(ie)},L.onload=function(){return L.status<200||L.status>=300?G.onError(T(G,L),w(L)):G.onSuccess(w(L),L)},L.open(G.method,G.action,!0),G.withCredentials&&"withCredentials"in L&&(L.withCredentials=!0);var Z=G.headers||{};return Z["X-Requested-With"]!==null&&L.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Z).forEach(function(oe){Z[oe]!==null&&L.setRequestHeader(oe,Z[oe])}),L.send(W),{abort:function(){L.abort()}}}var x=+new Date,k=0;function D(){return"rc-upload-"+x+"-"+ ++k}function m(G,L){return G.indexOf(L,G.length-L.length)!==-1}var R=function(G,L){if(G&&L){var W=Array.isArray(L)?L:L.split(","),Z=G.name||"",oe=G.type||"",ie=oe.replace(/\/.*$/,"");return W.some(function(be){var Je=be.trim();return Je.charAt(0)==="."?m(Z.toLowerCase(),Je.toLowerCase()):/\/\*$/.test(Je)?ie===Je.replace(/\/.*$/,""):oe===Je})}return!0};function M(G,L){var W=G.createReader(),Z=[];function oe(){W.readEntries(function(ie){var be=Array.prototype.slice.apply(ie);Z=Z.concat(be);var Je=!be.length;Je?L(Z):oe()})}oe()}var g=function(L,W,Z){var oe=function ie(be,Je){Je=Je||"",be.isFile?be.file(function(Ae){Z(Ae)&&(be.fullPath&&!Ae.webkitRelativePath&&(Object.defineProperties(Ae,{webkitRelativePath:{writable:!0}}),Ae.webkitRelativePath=be.fullPath.replace(/^\//,""),Object.defineProperties(Ae,{webkitRelativePath:{writable:!1}})),W([Ae]))}):be.isDirectory&&M(be,function(Ae){Ae.forEach(function(ke){ie(ke,""+Je+be.name+"/")})})};L.forEach(function(ie){oe(ie.webkitGetAsEntry())})},n=g,p=Object.assign||function(G){for(var L=1;L=0)continue;if(!Object.prototype.hasOwnProperty.call(G,Z))continue;W[Z]=G[Z]}return W}function S(G,L){if(!(G instanceof L))throw new TypeError("Cannot call a class as a function")}function b(G,L){if(!G)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:G}function v(G,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);G.prototype=Object.create(L&&L.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(G,L):G.__proto__=L)}var P=function(L){return Object.keys(L).reduce(function(W,Z){return(Z.substr(0,5)==="data-"||Z.substr(0,5)==="aria-"||Z==="role")&&(W[Z]=L[Z]),W},{})},E=function(G){v(L,G);function L(){var W,Z,oe,ie;S(this,L);for(var be=arguments.length,Je=Array(be),Ae=0;Ae0)throw new Error("Invalid string. Length must be a multiple of 4");var p=g.indexOf("=");p===-1&&(p=n);var d=p===n?0:4-p%4;return[p,d]}function x(g){var n=B(g),p=n[0],d=n[1];return(p+d)*3/4-d}function k(g,n,p){return(n+p)*3/4-p}function D(g){var n,p=B(g),d=p[0],o=p[1],u=new I(k(g,d,o)),h=0,S=o>0?d-4:d,b;for(b=0;b>16&255,u[h++]=n>>8&255,u[h++]=n&255;return o===2&&(n=z[g.charCodeAt(b)]<<2|z[g.charCodeAt(b+1)]>>4,u[h++]=n&255),o===1&&(n=z[g.charCodeAt(b)]<<10|z[g.charCodeAt(b+1)]<<4|z[g.charCodeAt(b+2)]>>2,u[h++]=n>>8&255,u[h++]=n&255),u}function m(g){return re[g>>18&63]+re[g>>12&63]+re[g>>6&63]+re[g&63]}function R(g,n,p){for(var d,o=[],u=n;uS?S:h+u));return d===1?(n=g[p-1],o.push(re[n>>2]+re[n<<4&63]+"==")):d===2&&(n=(g[p-2]<<8)+g[p-1],o.push(re[n>>10]+re[n>>4&63]+re[n<<2&63]+"=")),o.join("")}},HDXh:function(an,rt,F){"use strict";(function(re){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT -*/var z=F("H7XF"),I=F("kVK+"),K=F("49sm");rt.Buffer=x,rt.SlowBuffer=o,rt.INSPECT_MAX_BYTES=50,x.TYPED_ARRAY_SUPPORT=re.TYPED_ARRAY_SUPPORT!==void 0?re.TYPED_ARRAY_SUPPORT:T(),rt.kMaxLength=w();function T(){try{var ee=new Uint8Array(1);return ee.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ee.foo()===42&&typeof ee.subarray=="function"&&ee.subarray(1,1).byteLength===0}catch(V){return!1}}function w(){return x.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function B(ee,V){if(w()=w())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w().toString(16)+" bytes");return ee|0}function o(ee){return+ee!=ee&&(ee=0),x.alloc(+ee)}x.isBuffer=function(V){return!!(V!=null&&V._isBuffer)},x.compare=function(V,Q){if(!x.isBuffer(V)||!x.isBuffer(Q))throw new TypeError("Arguments must be Buffers");if(V===Q)return 0;for(var fe=V.length,_e=Q.length,Fe=0,He=Math.min(fe,_e);Fe>>1;case"base64":return ve(ee).length;default:if(fe)return he(ee).length;V=(""+V).toLowerCase(),fe=!0}}x.byteLength=u;function f(ee,V,Q){var fe=!1;if((V===void 0||V<0)&&(V=0),V>this.length)return"";if((Q===void 0||Q>this.length)&&(Q=this.length),Q<=0)return"";if(Q>>>=0,V>>>=0,Q<=V)return"";for(ee||(ee="utf8");;)switch(ee){case"hex":return G(this,V,Q);case"utf8":case"utf-8":return _(this,V,Q);case"ascii":return U(this,V,Q);case"latin1":case"binary":return H(this,V,Q);case"base64":return C(this,V,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,V,Q);default:if(fe)throw new TypeError("Unknown encoding: "+ee);ee=(ee+"").toLowerCase(),fe=!0}}x.prototype._isBuffer=!0;function S(ee,V,Q){var fe=ee[V];ee[V]=ee[Q],ee[Q]=fe}x.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 Q=0;Q0&&(V=this.toString("hex",0,Q).match(/.{2}/g).join(" "),this.length>Q&&(V+=" ... ")),""},x.prototype.compare=function(V,Q,fe,_e,Fe){if(!x.isBuffer(V))throw new TypeError("Argument must be a Buffer");if(Q===void 0&&(Q=0),fe===void 0&&(fe=V?V.length:0),_e===void 0&&(_e=0),Fe===void 0&&(Fe=this.length),Q<0||fe>V.length||_e<0||Fe>this.length)throw new RangeError("out of range index");if(_e>=Fe&&Q>=fe)return 0;if(_e>=Fe)return-1;if(Q>=fe)return 1;if(Q>>>=0,fe>>>=0,_e>>>=0,Fe>>>=0,this===V)return 0;for(var He=Fe-_e,Rt=fe-Q,Ht=Math.min(He,Rt),It=this.slice(_e,Fe),Bt=V.slice(Q,fe),tn=0;tn2147483647?Q=2147483647:Q<-2147483648&&(Q=-2147483648),Q=+Q,isNaN(Q)&&(Q=_e?0:ee.length-1),Q<0&&(Q=ee.length+Q),Q>=ee.length){if(_e)return-1;Q=ee.length-1}else if(Q<0)if(_e)Q=0;else return-1;if(typeof V=="string"&&(V=x.from(V,fe)),x.isBuffer(V))return V.length===0?-1:v(ee,V,Q,fe,_e);if(typeof V=="number")return V=V&255,x.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?_e?Uint8Array.prototype.indexOf.call(ee,V,Q):Uint8Array.prototype.lastIndexOf.call(ee,V,Q):v(ee,[V],Q,fe,_e);throw new TypeError("val must be string, number or Buffer")}function v(ee,V,Q,fe,_e){var Fe=1,He=ee.length,Rt=V.length;if(fe!==void 0&&(fe=String(fe).toLowerCase(),fe==="ucs2"||fe==="ucs-2"||fe==="utf16le"||fe==="utf-16le")){if(ee.length<2||V.length<2)return-1;Fe=2,He/=2,Rt/=2,Q/=2}function Ht(tt,Ke){return Fe===1?tt[Ke]:tt.readUInt16BE(Ke*Fe)}var It;if(_e){var Bt=-1;for(It=Q;ItHe&&(Q=He-Rt),It=Q;It>=0;It--){for(var tn=!0,fn=0;fn_e&&(fe=_e)):fe=_e;var Fe=V.length;if(Fe%2!==0)throw new TypeError("Invalid hex string");fe>Fe/2&&(fe=Fe/2);for(var He=0;HeFe)&&(fe=Fe),V.length>0&&(fe<0||Q<0)||Q>this.length)throw new RangeError("Attempt to write outside buffer bounds");_e||(_e="utf8");for(var He=!1;;)switch(_e){case"hex":return P(this,V,Q,fe);case"utf8":case"utf-8":return E(this,V,Q,fe);case"ascii":return h(this,V,Q,fe);case"latin1":case"binary":return c(this,V,Q,fe);case"base64":return s(this,V,Q,fe);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,V,Q,fe);default:if(He)throw new TypeError("Unknown encoding: "+_e);_e=(""+_e).toLowerCase(),He=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(ee,V,Q){return V===0&&Q===ee.length?z.fromByteArray(ee):z.fromByteArray(ee.slice(V,Q))}function _(ee,V,Q){Q=Math.min(ee.length,Q);for(var fe=[],_e=V;_e239?4:Fe>223?3:Fe>191?2:1;if(_e+Rt<=Q){var Ht,It,Bt,tn;switch(Rt){case 1:Fe<128&&(He=Fe);break;case 2:Ht=ee[_e+1],(Ht&192)===128&&(tn=(Fe&31)<<6|Ht&63,tn>127&&(He=tn));break;case 3:Ht=ee[_e+1],It=ee[_e+2],(Ht&192)===128&&(It&192)===128&&(tn=(Fe&15)<<12|(Ht&63)<<6|It&63,tn>2047&&(tn<55296||tn>57343)&&(He=tn));break;case 4:Ht=ee[_e+1],It=ee[_e+2],Bt=ee[_e+3],(Ht&192)===128&&(It&192)===128&&(Bt&192)===128&&(tn=(Fe&15)<<18|(Ht&63)<<12|(It&63)<<6|Bt&63,tn>65535&&tn<1114112&&(He=tn))}}He===null?(He=65533,Rt=1):He>65535&&(He-=65536,fe.push(He>>>10&1023|55296),He=56320|He&1023),fe.push(He),_e+=Rt}return N(fe)}var O=4096;function N(ee){var V=ee.length;if(V<=O)return String.fromCharCode.apply(String,ee);for(var Q="",fe=0;fefe)&&(Q=fe);for(var _e="",Fe=V;Fefe&&(V=fe),Q<0?(Q+=fe,Q<0&&(Q=0)):Q>fe&&(Q=fe),QQ)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUIntLE=function(V,Q,fe){V=V|0,Q=Q|0,fe||W(V,Q,this.length);for(var _e=this[V],Fe=1,He=0;++He0&&(Fe*=256);)_e+=this[V+--Q]*Fe;return _e},x.prototype.readUInt8=function(V,Q){return Q||W(V,1,this.length),this[V]},x.prototype.readUInt16LE=function(V,Q){return Q||W(V,2,this.length),this[V]|this[V+1]<<8},x.prototype.readUInt16BE=function(V,Q){return Q||W(V,2,this.length),this[V]<<8|this[V+1]},x.prototype.readUInt32LE=function(V,Q){return Q||W(V,4,this.length),(this[V]|this[V+1]<<8|this[V+2]<<16)+this[V+3]*16777216},x.prototype.readUInt32BE=function(V,Q){return Q||W(V,4,this.length),this[V]*16777216+(this[V+1]<<16|this[V+2]<<8|this[V+3])},x.prototype.readIntLE=function(V,Q,fe){V=V|0,Q=Q|0,fe||W(V,Q,this.length);for(var _e=this[V],Fe=1,He=0;++He=Fe&&(_e-=Math.pow(2,8*Q)),_e},x.prototype.readIntBE=function(V,Q,fe){V=V|0,Q=Q|0,fe||W(V,Q,this.length);for(var _e=Q,Fe=1,He=this[V+--_e];_e>0&&(Fe*=256);)He+=this[V+--_e]*Fe;return Fe*=128,He>=Fe&&(He-=Math.pow(2,8*Q)),He},x.prototype.readInt8=function(V,Q){return Q||W(V,1,this.length),this[V]&128?(255-this[V]+1)*-1:this[V]},x.prototype.readInt16LE=function(V,Q){Q||W(V,2,this.length);var fe=this[V]|this[V+1]<<8;return fe&32768?fe|4294901760:fe},x.prototype.readInt16BE=function(V,Q){Q||W(V,2,this.length);var fe=this[V+1]|this[V]<<8;return fe&32768?fe|4294901760:fe},x.prototype.readInt32LE=function(V,Q){return Q||W(V,4,this.length),this[V]|this[V+1]<<8|this[V+2]<<16|this[V+3]<<24},x.prototype.readInt32BE=function(V,Q){return Q||W(V,4,this.length),this[V]<<24|this[V+1]<<16|this[V+2]<<8|this[V+3]},x.prototype.readFloatLE=function(V,Q){return Q||W(V,4,this.length),I.read(this,V,!0,23,4)},x.prototype.readFloatBE=function(V,Q){return Q||W(V,4,this.length),I.read(this,V,!1,23,4)},x.prototype.readDoubleLE=function(V,Q){return Q||W(V,8,this.length),I.read(this,V,!0,52,8)},x.prototype.readDoubleBE=function(V,Q){return Q||W(V,8,this.length),I.read(this,V,!1,52,8)};function Z(ee,V,Q,fe,_e,Fe){if(!x.isBuffer(ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(V>_e||Vee.length)throw new RangeError("Index out of range")}x.prototype.writeUIntLE=function(V,Q,fe,_e){if(V=+V,Q=Q|0,fe=fe|0,!_e){var Fe=Math.pow(2,8*fe)-1;Z(this,V,Q,fe,Fe,0)}var He=1,Rt=0;for(this[Q]=V&255;++Rt=0&&(Rt*=256);)this[Q+He]=V/Rt&255;return Q+fe},x.prototype.writeUInt8=function(V,Q,fe){return V=+V,Q=Q|0,fe||Z(this,V,Q,1,255,0),x.TYPED_ARRAY_SUPPORT||(V=Math.floor(V)),this[Q]=V&255,Q+1};function oe(ee,V,Q,fe){V<0&&(V=65535+V+1);for(var _e=0,Fe=Math.min(ee.length-Q,2);_e>>(fe?_e:1-_e)*8}x.prototype.writeUInt16LE=function(V,Q,fe){return V=+V,Q=Q|0,fe||Z(this,V,Q,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[Q]=V&255,this[Q+1]=V>>>8):oe(this,V,Q,!0),Q+2},x.prototype.writeUInt16BE=function(V,Q,fe){return V=+V,Q=Q|0,fe||Z(this,V,Q,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[Q]=V>>>8,this[Q+1]=V&255):oe(this,V,Q,!1),Q+2};function ie(ee,V,Q,fe){V<0&&(V=4294967295+V+1);for(var _e=0,Fe=Math.min(ee.length-Q,4);_e>>(fe?_e:3-_e)*8&255}x.prototype.writeUInt32LE=function(V,Q,fe){return V=+V,Q=Q|0,fe||Z(this,V,Q,4,4294967295,0),x.TYPED_ARRAY_SUPPORT?(this[Q+3]=V>>>24,this[Q+2]=V>>>16,this[Q+1]=V>>>8,this[Q]=V&255):ie(this,V,Q,!0),Q+4},x.prototype.writeUInt32BE=function(V,Q,fe){return V=+V,Q=Q|0,fe||Z(this,V,Q,4,4294967295,0),x.TYPED_ARRAY_SUPPORT?(this[Q]=V>>>24,this[Q+1]=V>>>16,this[Q+2]=V>>>8,this[Q+3]=V&255):ie(this,V,Q,!1),Q+4},x.prototype.writeIntLE=function(V,Q,fe,_e){if(V=+V,Q=Q|0,!_e){var Fe=Math.pow(2,8*fe-1);Z(this,V,Q,fe,Fe-1,-Fe)}var He=0,Rt=1,Ht=0;for(this[Q]=V&255;++He>0)-Ht&255;return Q+fe},x.prototype.writeIntBE=function(V,Q,fe,_e){if(V=+V,Q=Q|0,!_e){var Fe=Math.pow(2,8*fe-1);Z(this,V,Q,fe,Fe-1,-Fe)}var He=fe-1,Rt=1,Ht=0;for(this[Q+He]=V&255;--He>=0&&(Rt*=256);)V<0&&Ht===0&&this[Q+He+1]!==0&&(Ht=1),this[Q+He]=(V/Rt>>0)-Ht&255;return Q+fe},x.prototype.writeInt8=function(V,Q,fe){return V=+V,Q=Q|0,fe||Z(this,V,Q,1,127,-128),x.TYPED_ARRAY_SUPPORT||(V=Math.floor(V)),V<0&&(V=255+V+1),this[Q]=V&255,Q+1},x.prototype.writeInt16LE=function(V,Q,fe){return V=+V,Q=Q|0,fe||Z(this,V,Q,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[Q]=V&255,this[Q+1]=V>>>8):oe(this,V,Q,!0),Q+2},x.prototype.writeInt16BE=function(V,Q,fe){return V=+V,Q=Q|0,fe||Z(this,V,Q,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[Q]=V>>>8,this[Q+1]=V&255):oe(this,V,Q,!1),Q+2},x.prototype.writeInt32LE=function(V,Q,fe){return V=+V,Q=Q|0,fe||Z(this,V,Q,4,2147483647,-2147483648),x.TYPED_ARRAY_SUPPORT?(this[Q]=V&255,this[Q+1]=V>>>8,this[Q+2]=V>>>16,this[Q+3]=V>>>24):ie(this,V,Q,!0),Q+4},x.prototype.writeInt32BE=function(V,Q,fe){return V=+V,Q=Q|0,fe||Z(this,V,Q,4,2147483647,-2147483648),V<0&&(V=4294967295+V+1),x.TYPED_ARRAY_SUPPORT?(this[Q]=V>>>24,this[Q+1]=V>>>16,this[Q+2]=V>>>8,this[Q+3]=V&255):ie(this,V,Q,!1),Q+4};function be(ee,V,Q,fe,_e,Fe){if(Q+fe>ee.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("Index out of range")}function Je(ee,V,Q,fe,_e){return _e||be(ee,V,Q,4,34028234663852886e22,-34028234663852886e22),I.write(ee,V,Q,fe,23,4),Q+4}x.prototype.writeFloatLE=function(V,Q,fe){return Je(this,V,Q,!0,fe)},x.prototype.writeFloatBE=function(V,Q,fe){return Je(this,V,Q,!1,fe)};function Ae(ee,V,Q,fe,_e){return _e||be(ee,V,Q,8,17976931348623157e292,-17976931348623157e292),I.write(ee,V,Q,fe,52,8),Q+8}x.prototype.writeDoubleLE=function(V,Q,fe){return Ae(this,V,Q,!0,fe)},x.prototype.writeDoubleBE=function(V,Q,fe){return Ae(this,V,Q,!1,fe)},x.prototype.copy=function(V,Q,fe,_e){if(fe||(fe=0),!_e&&_e!==0&&(_e=this.length),Q>=V.length&&(Q=V.length),Q||(Q=0),_e>0&&_e=this.length)throw new RangeError("sourceStart out of bounds");if(_e<0)throw new RangeError("sourceEnd out of bounds");_e>this.length&&(_e=this.length),V.length-Q<_e-fe&&(_e=V.length-Q+fe);var Fe=_e-fe,He;if(this===V&&fe=0;--He)V[He+Q]=this[He+fe];else if(Fe<1e3||!x.TYPED_ARRAY_SUPPORT)for(He=0;He>>0,fe=fe===void 0?this.length:fe>>>0,V||(V=0);var He;if(typeof V=="number")for(He=Q;He55295&&Q<57344){if(!_e){if(Q>56319){(V-=3)>-1&&Fe.push(239,191,189);continue}else if(He+1===fe){(V-=3)>-1&&Fe.push(239,191,189);continue}_e=Q;continue}if(Q<56320){(V-=3)>-1&&Fe.push(239,191,189),_e=Q;continue}Q=(_e-55296<<10|Q-56320)+65536}else _e&&((V-=3)>-1&&Fe.push(239,191,189));if(_e=null,Q<128){if((V-=1)<0)break;Fe.push(Q)}else if(Q<2048){if((V-=2)<0)break;Fe.push(Q>>6|192,Q&63|128)}else if(Q<65536){if((V-=3)<0)break;Fe.push(Q>>12|224,Q>>6&63|128,Q&63|128)}else if(Q<1114112){if((V-=4)<0)break;Fe.push(Q>>18|240,Q>>12&63|128,Q>>6&63|128,Q&63|128)}else throw new Error("Invalid code point")}return Fe}function le(ee){for(var V=[],Q=0;Q>8,_e=Q%256,Fe.push(_e),Fe.push(fe);return Fe}function ve(ee){return z.toByteArray(Ze(ee))}function Ge(ee,V,Q,fe){for(var _e=0;_e=V.length||_e>=ee.length);++_e)V[_e+Q]=ee[_e];return _e}function it(ee){return ee!==ee}}).call(this,F("IyRk"))},HmJG:function(an,rt,F){},I8Z2:function(an,rt,F){"use strict";F.d(rt,"a",function(){return K}),F.d(rt,"b",function(){return M}),F.d(rt,"c",function(){return n});var re=F("q1tI"),z=function(){var p=function(d,o){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var S in f)f.hasOwnProperty(S)&&(u[S]=f[S])},p(d,o)};return function(d,o){p(d,o);function u(){this.constructor=d}d.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),I=re.createContext(null),K=function(p){z(d,p);function d(){return p!==null&&p.apply(this,arguments)||this}return d.prototype.render=function(){return re.createElement(I.Provider,{value:this.props.store},this.props.children)},d}(re.Component),T=F("Gytx"),w=F.n(T),B=F("2mql"),x=F.n(B),k=function(){var p=function(d,o){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var S in f)f.hasOwnProperty(S)&&(u[S]=f[S])},p(d,o)};return function(d,o){p(d,o);function u(){this.constructor=d}d.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),D=function(){return D=Object.assign||function(p){for(var d,o=1,u=arguments.length;o=0)continue;if(!Object.prototype.hasOwnProperty.call(R,n))continue;g[n]=R[n]}return g}function x(R,M){if(!(R instanceof M))throw new TypeError("Cannot call a class as a function")}function k(R,M){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:R}function D(R,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);R.prototype=Object.create(M&&M.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(R,M):R.__proto__=M)}var m=function(R){D(M,R);function M(g){x(this,M);var n=k(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,g));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return re(M,[{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(d){}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,d=this.getParentElement(n),o=void 0;if(this.props.useWindow){var u=document.documentElement||document.body.parentNode||document.body,f=p.pageYOffset!==void 0?p.pageYOffset:u.scrollTop;this.props.isReverse?o=f:o=this.calculateOffset(n,f)}else this.props.isReverse?o=d.scrollTop:o=n.scrollHeight-d.scrollTop-d.clientHeight;o1&&arguments[1]!==void 0?arguments[1]:1,Te=He.length,ue=0;ue1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(W).map(function(oe,ie){if(!T.isValidElement(oe)||!oe.type)return null;var be=oe.type.isSelectOptGroup,Je=oe.key,Ae=oe.props,ke=Ae.children,Ze=Object(B.a)(Ae,["children"]);return Z||!be?E(oe):Object(v.a)(Object(v.a)({key:"__RC_SELECT_GRP__".concat(Je===null?ie:Je,"__"),label:Je},Ze),{},{options:h(ke)})}).filter(function(oe){return oe})}var c=F("2Qr1"),s=F("qNPg"),i=F("U8pU"),C=F("Kwbf"),_=F("WKfj");function O(W){var Z=W.mode,oe=W.options,ie=W.children,be=W.backfill,Je=W.allowClear,Ae=W.placeholder,ke=W.getInputElement,Ze=W.showSearch,Xe=W.onSearch,Pe=W.defaultOpen,he=W.autoFocus,le=W.labelInValue,Se=W.value,ve=W.inputValue,Ge=W.optionLabelProp,it=Z==="multiple"||Z==="tags",ee=Ze!==void 0?Ze:it||Z==="combobox",V=oe||h(ie);if(Object(C.a)(Z!=="tags"||V.every(function(Fe){return!Fe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Z==="tags"||Z==="combobox"){var Q=V.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(C.a)(!Q,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(C.a)(Z!=="combobox"||!Ge,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(C.a)(Z==="combobox"||!be,"`backfill` only works with `combobox` mode."),Object(C.a)(Z==="combobox"||!ke,"`getInputElement` only work with `combobox` mode."),Object(C.b)(Z!=="combobox"||!ke||!Je||!Ae,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Xe&&!ee&&Z!=="combobox"&&Z!=="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 fe=Object(_.d)(Se);Object(C.a)(!le||fe.every(function(Fe){return Object(i.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(C.a)(!it||Array.isArray(Se),"`value` should be array when `mode` is `multiple` or `tags`")}if(ie){var _e=null;Object(P.a)(ie).some(function(Fe){if(!T.isValidElement(Fe)||!Fe.type)return!1;var He=Fe.type;if(He.isSelectOption)return!1;if(He.isSelectOptGroup){var Rt=Object(P.a)(Fe.props.children).every(function(Ht){return!T.isValidElement(Ht)||!Fe.type||Ht.type.isSelectOption?!0:(_e=Ht.type,!1)});return!Rt}return _e=He,!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)(ve===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var N=O,U=Object(s.a)({prefixCls:"rc-select",components:{optionList:o},convertChildrenToData:h,flattenOptions:c.d,getLabeledValue:c.e,filterOptions:c.b,isValueDisabled:c.g,findValueOption:c.c,warningProps:N,fillOptionsWithMissingValue:c.a}),H=function(W){Object(I.a)(oe,W);var Z=Object(K.a)(oe);function oe(){var ie;return Object(re.a)(this,oe),ie=Z.apply(this,arguments),ie.selectRef=T.createRef(),ie.focus=function(){ie.selectRef.current.focus()},ie.blur=function(){ie.selectRef.current.blur()},ie}return Object(z.a)(oe,[{key:"render",value:function(){return T.createElement(U,Object.assign({ref:this.selectRef},this.props))}}]),oe}(T.Component);H.Option=f,H.OptGroup=b;var G=H,L=rt.c=G},M8RZ:function(an,rt,F){"use strict";F.d(rt,"a",function(){return k});var re=F("fWQN"),z=F("mtLc"),I=F("yKVA"),K=F("879j"),T=F("q1tI"),w=F.n(T),B=F("i8i4"),x=F.n(B),k=function(D){Object(I.a)(R,D);var m=Object(K.a)(R);function R(M){var g;Object(re.a)(this,R),g=m.call(this,M);var n=window.document;return g.node=n.createElement("div"),n.body.appendChild(g.node),g}return Object(z.a)(R,[{key:"render",value:function(){var g=this.props.children;return Object(B.createPortal)(g,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),R}(w.a.Component)},Nnv5:function(an,rt,F){an.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(an,rt,F){"use strict";F.d(rt,"a",function(){return w});var re=F("Kwbf");function z(B,x){var k=new Set;return B.forEach(function(D){x.has(D)||k.add(D)}),k}function I(B){var x=B||{},k=x.disabled,D=x.disableCheckbox,m=x.checkable;return!!(k||D)||m===!1}function K(B,x,k,D){for(var m=new Set(B),R=new Set,M=0;M<=k;M+=1){var g=x.get(M)||new Set;g.forEach(function(o){var u=o.key,f=o.node,S=o.children,b=S===void 0?[]:S;m.has(u)&&!D(f)&&b.filter(function(v){return!D(v.node)}).forEach(function(v){m.add(v.key)})})}for(var n=new Set,p=k;p>=0;p-=1){var d=x.get(p)||new Set;d.forEach(function(o){var u=o.parent,f=o.node;if(D(f)||!o.parent||n.has(o.parent.key))return;if(D(o.parent.node)){n.add(u.key);return}var S=!0,b=!1;(u.children||[]).filter(function(v){return!D(v.node)}).forEach(function(v){var P=v.key,E=m.has(P);S&&!E&&(S=!1),!b&&(E||R.has(P))&&(b=!0)}),S&&m.add(u.key),b&&R.add(u.key),n.add(u.key)})}return{checkedKeys:Array.from(m),halfCheckedKeys:Array.from(z(R,m))}}function T(B,x,k,D,m){for(var R=new Set(B),M=new Set(x),g=0;g<=D;g+=1){var n=k.get(g)||new Set;n.forEach(function(u){var f=u.key,S=u.node,b=u.children,v=b===void 0?[]:b;!R.has(f)&&!M.has(f)&&!m(S)&&v.filter(function(P){return!m(P.node)}).forEach(function(P){R.delete(P.key)})})}M=new Set;for(var p=new Set,d=D;d>=0;d-=1){var o=k.get(d)||new Set;o.forEach(function(u){var f=u.parent,S=u.node;if(m(S)||!u.parent||p.has(u.parent.key))return;if(m(u.parent.node)){p.add(f.key);return}var b=!0,v=!1;(f.children||[]).filter(function(P){return!m(P.node)}).forEach(function(P){var E=P.key,h=R.has(E);b&&!h&&(b=!1),!v&&(h||M.has(E))&&(v=!0)}),b||R.delete(f.key),v&&M.add(f.key),p.add(f.key)})}return{checkedKeys:Array.from(R),halfCheckedKeys:Array.from(z(M,R))}}function w(B,x,k,D){var m=[],R;D?R=D:R=I;var M=new Set(B.filter(function(d){var o=!!k[d];return o||m.push(d),o})),g=new Map,n=0;Object.keys(k).forEach(function(d){var o=k[d],u=o.level,f=g.get(u);f||(f=new Set,g.set(u,f)),f.add(o),n=Math.max(n,u)}),Object(re.a)(!m.length,"Tree missing follow keys: ".concat(m.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var p;return x===!0?p=K(M,g,n,R):p=T(M,x.halfCheckedKeys,g,n,R),p}},OLES:function(an,rt,F){"use strict";var re=F("U8pU"),z=F("VTBJ"),I=F("Ff2n"),K=F("q1tI"),T=F("uciX"),w=F("7ixt"),B=function(M){var g=M.overlay,n=M.prefixCls,p=M.id,d=M.overlayInnerStyle;return K.createElement("div",{className:"".concat(n,"-inner"),id:p,role:"tooltip",style:d},typeof g=="function"?g():g)},x=B,k=function(M,g){var n=M.overlayClassName,p=M.trigger,d=p===void 0?["hover"]:p,o=M.mouseEnterDelay,u=o===void 0?0:o,f=M.mouseLeaveDelay,S=f===void 0?.1:f,b=M.overlayStyle,v=M.prefixCls,P=v===void 0?"rc-tooltip":v,E=M.children,h=M.onVisibleChange,c=M.afterVisibleChange,s=M.transitionName,i=M.animation,C=M.placement,_=C===void 0?"right":C,O=M.align,N=O===void 0?{}:O,U=M.destroyTooltipOnHide,H=U===void 0?!1:U,G=M.defaultVisible,L=M.getTooltipContainer,W=M.overlayInnerStyle,Z=Object(I.a)(M,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),oe=Object(K.useRef)(null);Object(K.useImperativeHandle)(g,function(){return oe.current});var ie=Object(z.a)({},Z);"visible"in M&&(ie.popupVisible=M.visible);var be=function(){var Xe=M.arrowContent,Pe=Xe===void 0?null:Xe,he=M.overlay,le=M.id;return[K.createElement("div",{className:"".concat(P,"-arrow"),key:"arrow"},Pe),K.createElement(x,{key:"content",prefixCls:P,id:le,overlay:he,overlayInnerStyle:W})]},Je=!1,Ae=!1;if(typeof H=="boolean")Je=H;else if(H&&Object(re.a)(H)==="object"){var ke=H.keepParent;Je=ke===!0,Ae=ke===!1}return K.createElement(T.a,Object.assign({popupClassName:n,prefixCls:P,popup:be,action:d,builtinPlacements:w.a,popupPlacement:_,ref:oe,popupAlign:N,getPopupContainer:L,onPopupVisibleChange:h,afterPopupVisibleChange:c,popupTransitionName:s,popupAnimation:i,defaultPopupVisible:G,destroyPopupOnHide:Je,autoDestroy:Ae,mouseLeaveDelay:S,popupStyle:b,mouseEnterDelay:u},ie),E)},D=Object(K.forwardRef)(k),m=rt.a=D},OZM5:function(an,rt,F){"use strict";F.d(rt,"b",function(){return D}),F.d(rt,"a",function(){return m}),F.d(rt,"k",function(){return R}),F.d(rt,"h",function(){return M}),F.d(rt,"i",function(){return g}),F.d(rt,"g",function(){return n}),F.d(rt,"c",function(){return p}),F.d(rt,"d",function(){return d}),F.d(rt,"j",function(){return f}),F.d(rt,"e",function(){return S}),F.d(rt,"f",function(){return b});var re=F("KQm4"),z=F("U8pU"),I=F("Ff2n"),K=F("q1tI"),T=F.n(K),w=F("Kwbf"),B=F("WaYH"),x=.25,k=2;function D(v,P){var E=v.slice(),h=E.indexOf(P);return h>=0&&E.splice(h,1),E}function m(v,P){var E=v.slice();return E.indexOf(P)===-1&&E.push(P),E}function R(v){return v.split("-")}function M(v,P){return"".concat(v,"-").concat(P)}function g(v){return v&&v.type&&v.type.isTreeNode}function n(v,P){var E=[v],h=P[v];function c(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];s.forEach(function(i){var C=i.key,_=i.children;E.push(C),c(_)})}return c(h.children),E}function p(v,P){var E=v.clientY,h=P.selectHandle.getBoundingClientRect(),c=h.top,s=h.bottom,i=h.height,C=Math.max(i*x,k);return E<=c+C?-1:E>=s-C?1:0}function d(v,P){if(!v)return;var E=P.multiple;return E?v.slice():v.length?[v[0]]:v}var o=function(P){return P};function u(v,P){if(!v)return[];var E=P||{},h=E.processProps,c=h===void 0?o:h,s=Array.isArray(v)?v:[v];return s.map(function(i){var C=i.children,_=Object(I.a)(i,["children"]),O=u(C,P);return T.a.createElement(B.a,Object.assign({},c(_)),O)})}function f(v){if(!v)return null;var P;if(Array.isArray(v))P={checkedKeys:v,halfCheckedKeys:void 0};else if(Object(z.a)(v)==="object")P={checkedKeys:v.checked||void 0,halfCheckedKeys:v.halfChecked||void 0};else return Object(w.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function S(v,P){var E=new Set;function h(c){if(E.has(c))return;var s=P[c];if(!s)return;E.add(c);var i=s.parent,C=s.node;if(C.disabled)return;i&&h(i.key)}return(v||[]).forEach(function(c){h(c)}),Object(re.a)(E)}function b(v){var P={};return Object.keys(v).forEach(function(E){(E.startsWith("data-")||E.startsWith("aria-"))&&(P[E]=v[E])}),P}},Ot1p:function(an,rt,F){"use strict";var re=F("2qtc"),z=F("kLXV"),I=F("rAM+"),K=F("miYZ"),T=F("tsqr"),w=F("9og8"),B=F("tJVT"),x=F("jrin"),k=F("WmNS"),D=F.n(k),m=F("q1tI"),R=F.n(m),M=F("VrN/"),g=F.n(M),n=F("bdgK"),p=F("p77/"),d=F("Bd2K"),o=F("ELLl"),u=F("19Vz"),f=F("lZu9"),S=F("+NIl"),b=F("kSUc"),v=F("9Bee"),P=function(We){var St=We.value,en=St===void 0?"":St,vn=We.className,Zt=We.showTextOnly,Vt=We.showLines,Et=We.style,_t=Et===void 0?{}:Et,ct=Object(m.useMemo)(function(){return""},[en]);return R.a.createElement(R.a.Fragment,null,R.a.createElement("div",{dangerouslySetInnerHTML:{__html:ct}}))},E=F("0Owb"),h=F("dejd"),c=F("C+DQ"),s=F("1vsH"),i=F("m3rI"),C=[{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 _(We){var St=We.onActionCallback,en=We.title,vn=We.icon,Zt=We.actionName,Vt=We.className,Et=Vt===void 0?"":Vt,_t=We.children;function ct(){St(Zt)}return R.a.createElement("a",{title:en,className:Et,onClick:ct},R.a.createElement("i",{className:"md-iconfont ".concat(vn)}),_t)}var O=function(We){var St=We.watch,en=We.showNullButton,vn=We.onActionCallback,Zt=We.fullScreen,Vt=We.insertTemp,Et=We.hidetoolBar,_t=We.uuid,ct=We.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(_t,"&api=").concat(encodeURIComponent(i.a.PROXY_SERVER)));var ge=[].concat(C,[{title:"".concat(St?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(St?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return R.a.createElement("ul",{className:"markdown-toolbar-container"},!Et&&ge.map(function(Me,wt){return R.a.createElement("li",{key:wt},Me.actionName?R.a.createElement(_,Object(E.a)({},Me,{onActionCallback:vn})):R.a.createElement("span",{className:"v-line"}))}),en?R.a.createElement("li",null,R.a.createElement(_,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:vn},R.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Vt&&R.a.createElement("li",null,R.a.createElement(_,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Vt),onActionCallback:vn},R.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),R.a.createElement("li",{className:"btn-full-screen"},R.a.createElement(_,{icon:"".concat(Zt?"icon-shrink":"icon-enlarge"),title:Zt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:vn})))},N=F("M8RZ"),U=F("+L6B"),H=F("2/Rp"),G=F("y8nQ"),L=F("Vl3Y"),W=F("5NDa"),Z=F("5rEg"),oe={labelCol:{span:4},wrapperCol:{span:20}},ie=function(We){var St=We.callback,en=We.onCancel;function vn(Zt){St(Zt)}return R.a.createElement(L.a,Object(E.a)({},oe,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:vn}),R.a.createElement(L.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},R.a.createElement(Z.a,null)),R.a.createElement(L.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},R.a.createElement(Z.a,null)),R.a.createElement("div",{className:"flex-container flex-end"},R.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),R.a.createElement(H.a,{type:"ghost",onClick:en},"\u53D6\u6D88")))},be=F("7ahc"),Je=F("k1fw"),Ae=F("HmJG"),ke=F("BjJ7"),Ze=L.a.useForm,Xe={width:280,marginRight:10},Pe={labelCol:{span:5},wrapperCol:{span:19}},he=function(We){var St=We.callback,en=We.onCancel,vn=Ze(),Zt=Object(B.a)(vn,1),Vt=Zt[0],Et=Object(m.useRef)();function _t(Me){St(Object(Je.a)(Object(Je.a)({},Me),{},{name:Et.current}))}function ct(Me,wt){Vt.setFieldsValue({src:"/api/attachments/".concat(Me.id,"?type=").concat(Me.content_type),type:wt.type})}function ge(Me){var wt=Me.target.files[0];Et.current=wt.name,Se(wt,ct)}return R.a.createElement(L.a,Object(E.a)({form:Vt},Pe,{className:"upload-image-panel",onFinish:_t}),R.a.createElement(L.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},R.a.createElement("div",{className:"flex-container"},R.a.createElement(L.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},R.a.createElement(Z.a,{style:Xe})),R.a.createElement(le,{onFileChange:ge}))),R.a.createElement(L.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},R.a.createElement(Z.a,{style:{width:264}})),R.a.createElement(L.a.Item,{style:{textAlign:"right"}},R.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),R.a.createElement(H.a,{type:"ghost",onClick:en},"\u53D6\u6D88")))};function le(We){var St=We.onFileChange;return R.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",R.a.createElement("input",{type:"file",onChange:St}))}function Se(We,St){if(!We)throw new String("\u6CA1\u6709\u6587\u4EF6");var en=new FormData;en.append("editormd-image-file",We),en.append("file_param_name","editormd-image-file"),en.append("byxhr","true");var vn=new window.XMLHttpRequest;vn.withCredentials=!0,vn.addEventListener("load",function(Zt){St(JSON.parse(Zt.target.responseText),We)},!1),vn.addEventListener("error",function(Zt){console.error(Zt)},!1),vn.open("POST","".concat(ke.a,"/api/attachments.json")),vn.send(en)}var ve=F("giR+"),Ge=F("fyUT"),it=F("7Kak"),ee=F("9yH6"),V=ee.a.Group,Q={margin:"0 8px"},fe=function(We){var St=We.callback,en=We.onCancel;function vn(Zt){St(Zt)}return R.a.createElement(L.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:vn},R.a.createElement("div",{className:"flex-container"},R.a.createElement("span",{style:Q},"\u5355\u5143\u683C\u6570\uFF1A"),R.a.createElement("span",{style:Q},"\u884C\u6570"),R.a.createElement(L.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},R.a.createElement(Ge.a,null)),R.a.createElement("span",{style:Q},"\u5217\u6570"),R.a.createElement(L.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},R.a.createElement(Ge.a,null))),R.a.createElement("div",{className:"flex-container",style:{marginTop:12}},R.a.createElement("span",{style:Q},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),R.a.createElement(L.a.Item,{name:"align"},R.a.createElement(V,null,R.a.createElement(ee.a,{value:"default"},R.a.createElement("i",{className:"fa fa-align-justify"})),R.a.createElement(ee.a,{value:"left"},R.a.createElement("i",{className:"fa fa-align-left"})),R.a.createElement(ee.a,{value:"center"},R.a.createElement("i",{className:"fa fa-align-center"})),R.a.createElement(ee.a,{value:"right"},R.a.createElement("i",{className:"fa fa-align-right"}))))),R.a.createElement("div",{className:"flex-container flex-end"},R.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),R.a.createElement(H.a,{type:"ghost",onClick:en},"\u53D6\u6D88")))},_e=F("ErOA"),Fe=F("7Cbv"),He="link",Rt="upload-image",Ht="code-block",It="add-table",Bt="------------",tn={default:Bt,left:":".concat(Bt),center:":".concat(Bt,":"),right:"".concat(Bt,":")},fn=F("9VGf"),tt,Ke;function Ct(){}var Dt=0,st=1e4,xt="\u2581",je=` +*/var z=F("H7XF"),I=F("kVK+"),K=F("49sm");rt.Buffer=x,rt.SlowBuffer=o,rt.INSPECT_MAX_BYTES=50,x.TYPED_ARRAY_SUPPORT=re.TYPED_ARRAY_SUPPORT!==void 0?re.TYPED_ARRAY_SUPPORT:T(),rt.kMaxLength=w();function T(){try{var ee=new Uint8Array(1);return ee.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ee.foo()===42&&typeof ee.subarray=="function"&&ee.subarray(1,1).byteLength===0}catch(V){return!1}}function w(){return x.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function B(ee,V){if(w()=w())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+w().toString(16)+" bytes");return ee|0}function o(ee){return+ee!=ee&&(ee=0),x.alloc(+ee)}x.isBuffer=function(V){return!!(V!=null&&V._isBuffer)},x.compare=function(V,Q){if(!x.isBuffer(V)||!x.isBuffer(Q))throw new TypeError("Arguments must be Buffers");if(V===Q)return 0;for(var he=V.length,_e=Q.length,Fe=0,He=Math.min(he,_e);Fe>>1;case"base64":return ve(ee).length;default:if(he)return fe(ee).length;V=(""+V).toLowerCase(),he=!0}}x.byteLength=u;function h(ee,V,Q){var he=!1;if((V===void 0||V<0)&&(V=0),V>this.length)return"";if((Q===void 0||Q>this.length)&&(Q=this.length),Q<=0)return"";if(Q>>>=0,V>>>=0,Q<=V)return"";for(ee||(ee="utf8");;)switch(ee){case"hex":return G(this,V,Q);case"utf8":case"utf-8":return _(this,V,Q);case"ascii":return U(this,V,Q);case"latin1":case"binary":return H(this,V,Q);case"base64":return C(this,V,Q);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,V,Q);default:if(he)throw new TypeError("Unknown encoding: "+ee);ee=(ee+"").toLowerCase(),he=!0}}x.prototype._isBuffer=!0;function S(ee,V,Q){var he=ee[V];ee[V]=ee[Q],ee[Q]=he}x.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 Q=0;Q0&&(V=this.toString("hex",0,Q).match(/.{2}/g).join(" "),this.length>Q&&(V+=" ... ")),""},x.prototype.compare=function(V,Q,he,_e,Fe){if(!x.isBuffer(V))throw new TypeError("Argument must be a Buffer");if(Q===void 0&&(Q=0),he===void 0&&(he=V?V.length:0),_e===void 0&&(_e=0),Fe===void 0&&(Fe=this.length),Q<0||he>V.length||_e<0||Fe>this.length)throw new RangeError("out of range index");if(_e>=Fe&&Q>=he)return 0;if(_e>=Fe)return-1;if(Q>=he)return 1;if(Q>>>=0,he>>>=0,_e>>>=0,Fe>>>=0,this===V)return 0;for(var He=Fe-_e,Rt=he-Q,Ht=Math.min(He,Rt),It=this.slice(_e,Fe),Bt=V.slice(Q,he),tn=0;tn2147483647?Q=2147483647:Q<-2147483648&&(Q=-2147483648),Q=+Q,isNaN(Q)&&(Q=_e?0:ee.length-1),Q<0&&(Q=ee.length+Q),Q>=ee.length){if(_e)return-1;Q=ee.length-1}else if(Q<0)if(_e)Q=0;else return-1;if(typeof V=="string"&&(V=x.from(V,he)),x.isBuffer(V))return V.length===0?-1:v(ee,V,Q,he,_e);if(typeof V=="number")return V=V&255,x.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?_e?Uint8Array.prototype.indexOf.call(ee,V,Q):Uint8Array.prototype.lastIndexOf.call(ee,V,Q):v(ee,[V],Q,he,_e);throw new TypeError("val must be string, number or Buffer")}function v(ee,V,Q,he,_e){var Fe=1,He=ee.length,Rt=V.length;if(he!==void 0&&(he=String(he).toLowerCase(),he==="ucs2"||he==="ucs-2"||he==="utf16le"||he==="utf-16le")){if(ee.length<2||V.length<2)return-1;Fe=2,He/=2,Rt/=2,Q/=2}function Ht(tt,Ke){return Fe===1?tt[Ke]:tt.readUInt16BE(Ke*Fe)}var It;if(_e){var Bt=-1;for(It=Q;ItHe&&(Q=He-Rt),It=Q;It>=0;It--){for(var tn=!0,hn=0;hn_e&&(he=_e)):he=_e;var Fe=V.length;if(Fe%2!==0)throw new TypeError("Invalid hex string");he>Fe/2&&(he=Fe/2);for(var He=0;HeFe)&&(he=Fe),V.length>0&&(he<0||Q<0)||Q>this.length)throw new RangeError("Attempt to write outside buffer bounds");_e||(_e="utf8");for(var He=!1;;)switch(_e){case"hex":return P(this,V,Q,he);case"utf8":case"utf-8":return E(this,V,Q,he);case"ascii":return f(this,V,Q,he);case"latin1":case"binary":return c(this,V,Q,he);case"base64":return s(this,V,Q,he);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,V,Q,he);default:if(He)throw new TypeError("Unknown encoding: "+_e);_e=(""+_e).toLowerCase(),He=!0}},x.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function C(ee,V,Q){return V===0&&Q===ee.length?z.fromByteArray(ee):z.fromByteArray(ee.slice(V,Q))}function _(ee,V,Q){Q=Math.min(ee.length,Q);for(var he=[],_e=V;_e239?4:Fe>223?3:Fe>191?2:1;if(_e+Rt<=Q){var Ht,It,Bt,tn;switch(Rt){case 1:Fe<128&&(He=Fe);break;case 2:Ht=ee[_e+1],(Ht&192)===128&&(tn=(Fe&31)<<6|Ht&63,tn>127&&(He=tn));break;case 3:Ht=ee[_e+1],It=ee[_e+2],(Ht&192)===128&&(It&192)===128&&(tn=(Fe&15)<<12|(Ht&63)<<6|It&63,tn>2047&&(tn<55296||tn>57343)&&(He=tn));break;case 4:Ht=ee[_e+1],It=ee[_e+2],Bt=ee[_e+3],(Ht&192)===128&&(It&192)===128&&(Bt&192)===128&&(tn=(Fe&15)<<18|(Ht&63)<<12|(It&63)<<6|Bt&63,tn>65535&&tn<1114112&&(He=tn))}}He===null?(He=65533,Rt=1):He>65535&&(He-=65536,he.push(He>>>10&1023|55296),He=56320|He&1023),he.push(He),_e+=Rt}return N(he)}var O=4096;function N(ee){var V=ee.length;if(V<=O)return String.fromCharCode.apply(String,ee);for(var Q="",he=0;hehe)&&(Q=he);for(var _e="",Fe=V;Fehe&&(V=he),Q<0?(Q+=he,Q<0&&(Q=0)):Q>he&&(Q=he),QQ)throw new RangeError("Trying to access beyond buffer length")}x.prototype.readUIntLE=function(V,Q,he){V=V|0,Q=Q|0,he||W(V,Q,this.length);for(var _e=this[V],Fe=1,He=0;++He0&&(Fe*=256);)_e+=this[V+--Q]*Fe;return _e},x.prototype.readUInt8=function(V,Q){return Q||W(V,1,this.length),this[V]},x.prototype.readUInt16LE=function(V,Q){return Q||W(V,2,this.length),this[V]|this[V+1]<<8},x.prototype.readUInt16BE=function(V,Q){return Q||W(V,2,this.length),this[V]<<8|this[V+1]},x.prototype.readUInt32LE=function(V,Q){return Q||W(V,4,this.length),(this[V]|this[V+1]<<8|this[V+2]<<16)+this[V+3]*16777216},x.prototype.readUInt32BE=function(V,Q){return Q||W(V,4,this.length),this[V]*16777216+(this[V+1]<<16|this[V+2]<<8|this[V+3])},x.prototype.readIntLE=function(V,Q,he){V=V|0,Q=Q|0,he||W(V,Q,this.length);for(var _e=this[V],Fe=1,He=0;++He=Fe&&(_e-=Math.pow(2,8*Q)),_e},x.prototype.readIntBE=function(V,Q,he){V=V|0,Q=Q|0,he||W(V,Q,this.length);for(var _e=Q,Fe=1,He=this[V+--_e];_e>0&&(Fe*=256);)He+=this[V+--_e]*Fe;return Fe*=128,He>=Fe&&(He-=Math.pow(2,8*Q)),He},x.prototype.readInt8=function(V,Q){return Q||W(V,1,this.length),this[V]&128?(255-this[V]+1)*-1:this[V]},x.prototype.readInt16LE=function(V,Q){Q||W(V,2,this.length);var he=this[V]|this[V+1]<<8;return he&32768?he|4294901760:he},x.prototype.readInt16BE=function(V,Q){Q||W(V,2,this.length);var he=this[V+1]|this[V]<<8;return he&32768?he|4294901760:he},x.prototype.readInt32LE=function(V,Q){return Q||W(V,4,this.length),this[V]|this[V+1]<<8|this[V+2]<<16|this[V+3]<<24},x.prototype.readInt32BE=function(V,Q){return Q||W(V,4,this.length),this[V]<<24|this[V+1]<<16|this[V+2]<<8|this[V+3]},x.prototype.readFloatLE=function(V,Q){return Q||W(V,4,this.length),I.read(this,V,!0,23,4)},x.prototype.readFloatBE=function(V,Q){return Q||W(V,4,this.length),I.read(this,V,!1,23,4)},x.prototype.readDoubleLE=function(V,Q){return Q||W(V,8,this.length),I.read(this,V,!0,52,8)},x.prototype.readDoubleBE=function(V,Q){return Q||W(V,8,this.length),I.read(this,V,!1,52,8)};function Z(ee,V,Q,he,_e,Fe){if(!x.isBuffer(ee))throw new TypeError('"buffer" argument must be a Buffer instance');if(V>_e||Vee.length)throw new RangeError("Index out of range")}x.prototype.writeUIntLE=function(V,Q,he,_e){if(V=+V,Q=Q|0,he=he|0,!_e){var Fe=Math.pow(2,8*he)-1;Z(this,V,Q,he,Fe,0)}var He=1,Rt=0;for(this[Q]=V&255;++Rt=0&&(Rt*=256);)this[Q+He]=V/Rt&255;return Q+he},x.prototype.writeUInt8=function(V,Q,he){return V=+V,Q=Q|0,he||Z(this,V,Q,1,255,0),x.TYPED_ARRAY_SUPPORT||(V=Math.floor(V)),this[Q]=V&255,Q+1};function oe(ee,V,Q,he){V<0&&(V=65535+V+1);for(var _e=0,Fe=Math.min(ee.length-Q,2);_e>>(he?_e:1-_e)*8}x.prototype.writeUInt16LE=function(V,Q,he){return V=+V,Q=Q|0,he||Z(this,V,Q,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[Q]=V&255,this[Q+1]=V>>>8):oe(this,V,Q,!0),Q+2},x.prototype.writeUInt16BE=function(V,Q,he){return V=+V,Q=Q|0,he||Z(this,V,Q,2,65535,0),x.TYPED_ARRAY_SUPPORT?(this[Q]=V>>>8,this[Q+1]=V&255):oe(this,V,Q,!1),Q+2};function ie(ee,V,Q,he){V<0&&(V=4294967295+V+1);for(var _e=0,Fe=Math.min(ee.length-Q,4);_e>>(he?_e:3-_e)*8&255}x.prototype.writeUInt32LE=function(V,Q,he){return V=+V,Q=Q|0,he||Z(this,V,Q,4,4294967295,0),x.TYPED_ARRAY_SUPPORT?(this[Q+3]=V>>>24,this[Q+2]=V>>>16,this[Q+1]=V>>>8,this[Q]=V&255):ie(this,V,Q,!0),Q+4},x.prototype.writeUInt32BE=function(V,Q,he){return V=+V,Q=Q|0,he||Z(this,V,Q,4,4294967295,0),x.TYPED_ARRAY_SUPPORT?(this[Q]=V>>>24,this[Q+1]=V>>>16,this[Q+2]=V>>>8,this[Q+3]=V&255):ie(this,V,Q,!1),Q+4},x.prototype.writeIntLE=function(V,Q,he,_e){if(V=+V,Q=Q|0,!_e){var Fe=Math.pow(2,8*he-1);Z(this,V,Q,he,Fe-1,-Fe)}var He=0,Rt=1,Ht=0;for(this[Q]=V&255;++He>0)-Ht&255;return Q+he},x.prototype.writeIntBE=function(V,Q,he,_e){if(V=+V,Q=Q|0,!_e){var Fe=Math.pow(2,8*he-1);Z(this,V,Q,he,Fe-1,-Fe)}var He=he-1,Rt=1,Ht=0;for(this[Q+He]=V&255;--He>=0&&(Rt*=256);)V<0&&Ht===0&&this[Q+He+1]!==0&&(Ht=1),this[Q+He]=(V/Rt>>0)-Ht&255;return Q+he},x.prototype.writeInt8=function(V,Q,he){return V=+V,Q=Q|0,he||Z(this,V,Q,1,127,-128),x.TYPED_ARRAY_SUPPORT||(V=Math.floor(V)),V<0&&(V=255+V+1),this[Q]=V&255,Q+1},x.prototype.writeInt16LE=function(V,Q,he){return V=+V,Q=Q|0,he||Z(this,V,Q,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[Q]=V&255,this[Q+1]=V>>>8):oe(this,V,Q,!0),Q+2},x.prototype.writeInt16BE=function(V,Q,he){return V=+V,Q=Q|0,he||Z(this,V,Q,2,32767,-32768),x.TYPED_ARRAY_SUPPORT?(this[Q]=V>>>8,this[Q+1]=V&255):oe(this,V,Q,!1),Q+2},x.prototype.writeInt32LE=function(V,Q,he){return V=+V,Q=Q|0,he||Z(this,V,Q,4,2147483647,-2147483648),x.TYPED_ARRAY_SUPPORT?(this[Q]=V&255,this[Q+1]=V>>>8,this[Q+2]=V>>>16,this[Q+3]=V>>>24):ie(this,V,Q,!0),Q+4},x.prototype.writeInt32BE=function(V,Q,he){return V=+V,Q=Q|0,he||Z(this,V,Q,4,2147483647,-2147483648),V<0&&(V=4294967295+V+1),x.TYPED_ARRAY_SUPPORT?(this[Q]=V>>>24,this[Q+1]=V>>>16,this[Q+2]=V>>>8,this[Q+3]=V&255):ie(this,V,Q,!1),Q+4};function be(ee,V,Q,he,_e,Fe){if(Q+he>ee.length)throw new RangeError("Index out of range");if(Q<0)throw new RangeError("Index out of range")}function Je(ee,V,Q,he,_e){return _e||be(ee,V,Q,4,34028234663852886e22,-34028234663852886e22),I.write(ee,V,Q,he,23,4),Q+4}x.prototype.writeFloatLE=function(V,Q,he){return Je(this,V,Q,!0,he)},x.prototype.writeFloatBE=function(V,Q,he){return Je(this,V,Q,!1,he)};function Ae(ee,V,Q,he,_e){return _e||be(ee,V,Q,8,17976931348623157e292,-17976931348623157e292),I.write(ee,V,Q,he,52,8),Q+8}x.prototype.writeDoubleLE=function(V,Q,he){return Ae(this,V,Q,!0,he)},x.prototype.writeDoubleBE=function(V,Q,he){return Ae(this,V,Q,!1,he)},x.prototype.copy=function(V,Q,he,_e){if(he||(he=0),!_e&&_e!==0&&(_e=this.length),Q>=V.length&&(Q=V.length),Q||(Q=0),_e>0&&_e=this.length)throw new RangeError("sourceStart out of bounds");if(_e<0)throw new RangeError("sourceEnd out of bounds");_e>this.length&&(_e=this.length),V.length-Q<_e-he&&(_e=V.length-Q+he);var Fe=_e-he,He;if(this===V&&he=0;--He)V[He+Q]=this[He+he];else if(Fe<1e3||!x.TYPED_ARRAY_SUPPORT)for(He=0;He>>0,he=he===void 0?this.length:he>>>0,V||(V=0);var He;if(typeof V=="number")for(He=Q;He55295&&Q<57344){if(!_e){if(Q>56319){(V-=3)>-1&&Fe.push(239,191,189);continue}else if(He+1===he){(V-=3)>-1&&Fe.push(239,191,189);continue}_e=Q;continue}if(Q<56320){(V-=3)>-1&&Fe.push(239,191,189),_e=Q;continue}Q=(_e-55296<<10|Q-56320)+65536}else _e&&((V-=3)>-1&&Fe.push(239,191,189));if(_e=null,Q<128){if((V-=1)<0)break;Fe.push(Q)}else if(Q<2048){if((V-=2)<0)break;Fe.push(Q>>6|192,Q&63|128)}else if(Q<65536){if((V-=3)<0)break;Fe.push(Q>>12|224,Q>>6&63|128,Q&63|128)}else if(Q<1114112){if((V-=4)<0)break;Fe.push(Q>>18|240,Q>>12&63|128,Q>>6&63|128,Q&63|128)}else throw new Error("Invalid code point")}return Fe}function le(ee){for(var V=[],Q=0;Q>8,_e=Q%256,Fe.push(_e),Fe.push(he);return Fe}function ve(ee){return z.toByteArray(Ze(ee))}function Ge(ee,V,Q,he){for(var _e=0;_e=V.length||_e>=ee.length);++_e)V[_e+Q]=ee[_e];return _e}function it(ee){return ee!==ee}}).call(this,F("IyRk"))},HmJG:function(an,rt,F){},I8Z2:function(an,rt,F){"use strict";F.d(rt,"a",function(){return K}),F.d(rt,"b",function(){return M}),F.d(rt,"c",function(){return n});var re=F("q1tI"),z=function(){var p=function(d,o){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var S in h)h.hasOwnProperty(S)&&(u[S]=h[S])},p(d,o)};return function(d,o){p(d,o);function u(){this.constructor=d}d.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),I=re.createContext(null),K=function(p){z(d,p);function d(){return p!==null&&p.apply(this,arguments)||this}return d.prototype.render=function(){return re.createElement(I.Provider,{value:this.props.store},this.props.children)},d}(re.Component),T=F("Gytx"),w=F.n(T),B=F("2mql"),x=F.n(B),k=function(){var p=function(d,o){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var S in h)h.hasOwnProperty(S)&&(u[S]=h[S])},p(d,o)};return function(d,o){p(d,o);function u(){this.constructor=d}d.prototype=o===null?Object.create(o):(u.prototype=o.prototype,new u)}}(),D=function(){return D=Object.assign||function(p){for(var d,o=1,u=arguments.length;o=0)continue;if(!Object.prototype.hasOwnProperty.call(R,n))continue;g[n]=R[n]}return g}function x(R,M){if(!(R instanceof M))throw new TypeError("Cannot call a class as a function")}function k(R,M){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:R}function D(R,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);R.prototype=Object.create(M&&M.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(R,M):R.__proto__=M)}var m=function(R){D(M,R);function M(g){x(this,M);var n=k(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,g));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return re(M,[{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(d){}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,d=this.getParentElement(n),o=void 0;if(this.props.useWindow){var u=document.documentElement||document.body.parentNode||document.body,h=p.pageYOffset!==void 0?p.pageYOffset:u.scrollTop;this.props.isReverse?o=h:o=this.calculateOffset(n,h)}else this.props.isReverse?o=d.scrollTop:o=n.scrollHeight-d.scrollTop-d.clientHeight;o1&&arguments[1]!==void 0?arguments[1]:1,Te=He.length,ue=0;ue1&&arguments[1]!==void 0?arguments[1]:!1;return Object(P.a)(W).map(function(oe,ie){if(!T.isValidElement(oe)||!oe.type)return null;var be=oe.type.isSelectOptGroup,Je=oe.key,Ae=oe.props,ke=Ae.children,Ze=Object(B.a)(Ae,["children"]);return Z||!be?E(oe):Object(v.a)(Object(v.a)({key:"__RC_SELECT_GRP__".concat(Je===null?ie:Je,"__"),label:Je},Ze),{},{options:f(ke)})}).filter(function(oe){return oe})}var c=F("2Qr1"),s=F("qNPg"),i=F("U8pU"),C=F("Kwbf"),_=F("WKfj");function O(W){var Z=W.mode,oe=W.options,ie=W.children,be=W.backfill,Je=W.allowClear,Ae=W.placeholder,ke=W.getInputElement,Ze=W.showSearch,Xe=W.onSearch,Pe=W.defaultOpen,fe=W.autoFocus,le=W.labelInValue,Se=W.value,ve=W.inputValue,Ge=W.optionLabelProp,it=Z==="multiple"||Z==="tags",ee=Ze!==void 0?Ze:it||Z==="combobox",V=oe||f(ie);if(Object(C.a)(Z!=="tags"||V.every(function(Fe){return!Fe.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Z==="tags"||Z==="combobox"){var Q=V.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(C.a)(!Q,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(C.a)(Z!=="combobox"||!Ge,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(C.a)(Z==="combobox"||!be,"`backfill` only works with `combobox` mode."),Object(C.a)(Z==="combobox"||!ke,"`getInputElement` only work with `combobox` mode."),Object(C.b)(Z!=="combobox"||!ke||!Je||!Ae,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Xe&&!ee&&Z!=="combobox"&&Z!=="tags"&&Object(C.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(C.b)(!Pe||fe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Se!=null){var he=Object(_.d)(Se);Object(C.a)(!le||he.every(function(Fe){return Object(i.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(C.a)(!it||Array.isArray(Se),"`value` should be array when `mode` is `multiple` or `tags`")}if(ie){var _e=null;Object(P.a)(ie).some(function(Fe){if(!T.isValidElement(Fe)||!Fe.type)return!1;var He=Fe.type;if(He.isSelectOption)return!1;if(He.isSelectOptGroup){var Rt=Object(P.a)(Fe.props.children).every(function(Ht){return!T.isValidElement(Ht)||!Fe.type||Ht.type.isSelectOption?!0:(_e=Ht.type,!1)});return!Rt}return _e=He,!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)(ve===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var N=O,U=Object(s.a)({prefixCls:"rc-select",components:{optionList:o},convertChildrenToData:f,flattenOptions:c.d,getLabeledValue:c.e,filterOptions:c.b,isValueDisabled:c.g,findValueOption:c.c,warningProps:N,fillOptionsWithMissingValue:c.a}),H=function(W){Object(I.a)(oe,W);var Z=Object(K.a)(oe);function oe(){var ie;return Object(re.a)(this,oe),ie=Z.apply(this,arguments),ie.selectRef=T.createRef(),ie.focus=function(){ie.selectRef.current.focus()},ie.blur=function(){ie.selectRef.current.blur()},ie}return Object(z.a)(oe,[{key:"render",value:function(){return T.createElement(U,Object.assign({ref:this.selectRef},this.props))}}]),oe}(T.Component);H.Option=h,H.OptGroup=b;var G=H,L=rt.c=G},M8RZ:function(an,rt,F){"use strict";F.d(rt,"a",function(){return k});var re=F("fWQN"),z=F("mtLc"),I=F("yKVA"),K=F("879j"),T=F("q1tI"),w=F.n(T),B=F("i8i4"),x=F.n(B),k=function(D){Object(I.a)(R,D);var m=Object(K.a)(R);function R(M){var g;Object(re.a)(this,R),g=m.call(this,M);var n=window.document;return g.node=n.createElement("div"),n.body.appendChild(g.node),g}return Object(z.a)(R,[{key:"render",value:function(){var g=this.props.children;return Object(B.createPortal)(g,this.node)}},{key:"componentWillUnmount",value:function(){window.document.body.removeChild(this.node)}}]),R}(w.a.Component)},Nnv5:function(an,rt,F){an.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(an,rt,F){"use strict";F.d(rt,"a",function(){return w});var re=F("Kwbf");function z(B,x){var k=new Set;return B.forEach(function(D){x.has(D)||k.add(D)}),k}function I(B){var x=B||{},k=x.disabled,D=x.disableCheckbox,m=x.checkable;return!!(k||D)||m===!1}function K(B,x,k,D){for(var m=new Set(B),R=new Set,M=0;M<=k;M+=1){var g=x.get(M)||new Set;g.forEach(function(o){var u=o.key,h=o.node,S=o.children,b=S===void 0?[]:S;m.has(u)&&!D(h)&&b.filter(function(v){return!D(v.node)}).forEach(function(v){m.add(v.key)})})}for(var n=new Set,p=k;p>=0;p-=1){var d=x.get(p)||new Set;d.forEach(function(o){var u=o.parent,h=o.node;if(D(h)||!o.parent||n.has(o.parent.key))return;if(D(o.parent.node)){n.add(u.key);return}var S=!0,b=!1;(u.children||[]).filter(function(v){return!D(v.node)}).forEach(function(v){var P=v.key,E=m.has(P);S&&!E&&(S=!1),!b&&(E||R.has(P))&&(b=!0)}),S&&m.add(u.key),b&&R.add(u.key),n.add(u.key)})}return{checkedKeys:Array.from(m),halfCheckedKeys:Array.from(z(R,m))}}function T(B,x,k,D,m){for(var R=new Set(B),M=new Set(x),g=0;g<=D;g+=1){var n=k.get(g)||new Set;n.forEach(function(u){var h=u.key,S=u.node,b=u.children,v=b===void 0?[]:b;!R.has(h)&&!M.has(h)&&!m(S)&&v.filter(function(P){return!m(P.node)}).forEach(function(P){R.delete(P.key)})})}M=new Set;for(var p=new Set,d=D;d>=0;d-=1){var o=k.get(d)||new Set;o.forEach(function(u){var h=u.parent,S=u.node;if(m(S)||!u.parent||p.has(u.parent.key))return;if(m(u.parent.node)){p.add(h.key);return}var b=!0,v=!1;(h.children||[]).filter(function(P){return!m(P.node)}).forEach(function(P){var E=P.key,f=R.has(E);b&&!f&&(b=!1),!v&&(f||M.has(E))&&(v=!0)}),b||R.delete(h.key),v&&M.add(h.key),p.add(h.key)})}return{checkedKeys:Array.from(R),halfCheckedKeys:Array.from(z(M,R))}}function w(B,x,k,D){var m=[],R;D?R=D:R=I;var M=new Set(B.filter(function(d){var o=!!k[d];return o||m.push(d),o})),g=new Map,n=0;Object.keys(k).forEach(function(d){var o=k[d],u=o.level,h=g.get(u);h||(h=new Set,g.set(u,h)),h.add(o),n=Math.max(n,u)}),Object(re.a)(!m.length,"Tree missing follow keys: ".concat(m.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var p;return x===!0?p=K(M,g,n,R):p=T(M,x.halfCheckedKeys,g,n,R),p}},OLES:function(an,rt,F){"use strict";var re=F("U8pU"),z=F("VTBJ"),I=F("Ff2n"),K=F("q1tI"),T=F("uciX"),w=F("7ixt"),B=function(M){var g=M.overlay,n=M.prefixCls,p=M.id,d=M.overlayInnerStyle;return K.createElement("div",{className:"".concat(n,"-inner"),id:p,role:"tooltip",style:d},typeof g=="function"?g():g)},x=B,k=function(M,g){var n=M.overlayClassName,p=M.trigger,d=p===void 0?["hover"]:p,o=M.mouseEnterDelay,u=o===void 0?0:o,h=M.mouseLeaveDelay,S=h===void 0?.1:h,b=M.overlayStyle,v=M.prefixCls,P=v===void 0?"rc-tooltip":v,E=M.children,f=M.onVisibleChange,c=M.afterVisibleChange,s=M.transitionName,i=M.animation,C=M.placement,_=C===void 0?"right":C,O=M.align,N=O===void 0?{}:O,U=M.destroyTooltipOnHide,H=U===void 0?!1:U,G=M.defaultVisible,L=M.getTooltipContainer,W=M.overlayInnerStyle,Z=Object(I.a)(M,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle"]),oe=Object(K.useRef)(null);Object(K.useImperativeHandle)(g,function(){return oe.current});var ie=Object(z.a)({},Z);"visible"in M&&(ie.popupVisible=M.visible);var be=function(){var Xe=M.arrowContent,Pe=Xe===void 0?null:Xe,fe=M.overlay,le=M.id;return[K.createElement("div",{className:"".concat(P,"-arrow"),key:"arrow"},Pe),K.createElement(x,{key:"content",prefixCls:P,id:le,overlay:fe,overlayInnerStyle:W})]},Je=!1,Ae=!1;if(typeof H=="boolean")Je=H;else if(H&&Object(re.a)(H)==="object"){var ke=H.keepParent;Je=ke===!0,Ae=ke===!1}return K.createElement(T.a,Object.assign({popupClassName:n,prefixCls:P,popup:be,action:d,builtinPlacements:w.a,popupPlacement:_,ref:oe,popupAlign:N,getPopupContainer:L,onPopupVisibleChange:f,afterPopupVisibleChange:c,popupTransitionName:s,popupAnimation:i,defaultPopupVisible:G,destroyPopupOnHide:Je,autoDestroy:Ae,mouseLeaveDelay:S,popupStyle:b,mouseEnterDelay:u},ie),E)},D=Object(K.forwardRef)(k),m=rt.a=D},OZM5:function(an,rt,F){"use strict";F.d(rt,"b",function(){return D}),F.d(rt,"a",function(){return m}),F.d(rt,"k",function(){return R}),F.d(rt,"h",function(){return M}),F.d(rt,"i",function(){return g}),F.d(rt,"g",function(){return n}),F.d(rt,"c",function(){return p}),F.d(rt,"d",function(){return d}),F.d(rt,"j",function(){return h}),F.d(rt,"e",function(){return S}),F.d(rt,"f",function(){return b});var re=F("KQm4"),z=F("U8pU"),I=F("Ff2n"),K=F("q1tI"),T=F.n(K),w=F("Kwbf"),B=F("WaYH"),x=.25,k=2;function D(v,P){var E=v.slice(),f=E.indexOf(P);return f>=0&&E.splice(f,1),E}function m(v,P){var E=v.slice();return E.indexOf(P)===-1&&E.push(P),E}function R(v){return v.split("-")}function M(v,P){return"".concat(v,"-").concat(P)}function g(v){return v&&v.type&&v.type.isTreeNode}function n(v,P){var E=[v],f=P[v];function c(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];s.forEach(function(i){var C=i.key,_=i.children;E.push(C),c(_)})}return c(f.children),E}function p(v,P){var E=v.clientY,f=P.selectHandle.getBoundingClientRect(),c=f.top,s=f.bottom,i=f.height,C=Math.max(i*x,k);return E<=c+C?-1:E>=s-C?1:0}function d(v,P){if(!v)return;var E=P.multiple;return E?v.slice():v.length?[v[0]]:v}var o=function(P){return P};function u(v,P){if(!v)return[];var E=P||{},f=E.processProps,c=f===void 0?o:f,s=Array.isArray(v)?v:[v];return s.map(function(i){var C=i.children,_=Object(I.a)(i,["children"]),O=u(C,P);return T.a.createElement(B.a,Object.assign({},c(_)),O)})}function h(v){if(!v)return null;var P;if(Array.isArray(v))P={checkedKeys:v,halfCheckedKeys:void 0};else if(Object(z.a)(v)==="object")P={checkedKeys:v.checked||void 0,halfCheckedKeys:v.halfChecked||void 0};else return Object(w.a)(!1,"`checkedKeys` is not an array or an object"),null;return P}function S(v,P){var E=new Set;function f(c){if(E.has(c))return;var s=P[c];if(!s)return;E.add(c);var i=s.parent,C=s.node;if(C.disabled)return;i&&f(i.key)}return(v||[]).forEach(function(c){f(c)}),Object(re.a)(E)}function b(v){var P={};return Object.keys(v).forEach(function(E){(E.startsWith("data-")||E.startsWith("aria-"))&&(P[E]=v[E])}),P}},Ot1p:function(an,rt,F){"use strict";var re=F("2qtc"),z=F("kLXV"),I=F("rAM+"),K=F("miYZ"),T=F("tsqr"),w=F("9og8"),B=F("tJVT"),x=F("jrin"),k=F("WmNS"),D=F.n(k),m=F("q1tI"),R=F.n(m),M=F("VrN/"),g=F.n(M),n=F("bdgK"),p=F("p77/"),d=F("Bd2K"),o=F("ELLl"),u=F("19Vz"),h=F("lZu9"),S=F("+NIl"),b=F("kSUc"),v=F("9Bee"),P=function(We){var St=We.value,en=St===void 0?"":St,vn=We.className,Zt=We.showTextOnly,Vt=We.showLines,Et=We.style,_t=Et===void 0?{}:Et,ct=Object(m.useMemo)(function(){return""},[en]);return R.a.createElement(R.a.Fragment,null,R.a.createElement("div",{dangerouslySetInnerHTML:{__html:ct}}))},E=F("0Owb"),f=F("dejd"),c=F("C+DQ"),s=F("1vsH"),i=F("m3rI"),C=[{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 _(We){var St=We.onActionCallback,en=We.title,vn=We.icon,Zt=We.actionName,Vt=We.className,Et=Vt===void 0?"":Vt,_t=We.children;function ct(){St(Zt)}return R.a.createElement("a",{title:en,className:Et,onClick:ct},R.a.createElement("i",{className:"md-iconfont ".concat(vn)}),_t)}var O=function(We){var St=We.watch,en=We.showNullButton,vn=We.onActionCallback,Zt=We.fullScreen,Vt=We.insertTemp,Et=We.hidetoolBar,_t=We.uuid,ct=We.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(_t,"&api=").concat(encodeURIComponent(i.a.PROXY_SERVER)));var ge=[].concat(C,[{title:"".concat(St?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"),icon:"".concat(St?"icon-eye-slash":"icon-eye"),actionName:"trigger-watch"}]);return R.a.createElement("ul",{className:"markdown-toolbar-container"},!Et&&ge.map(function(Me,wt){return R.a.createElement("li",{key:wt},Me.actionName?R.a.createElement(_,Object(E.a)({},Me,{onActionCallback:vn})):R.a.createElement("span",{className:"v-line"}))}),en?R.a.createElement("li",null,R.a.createElement(_,{icon:"icon-edit",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:vn},R.a.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Vt&&R.a.createElement("li",null,R.a.createElement(_,{icon:"icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:"inster-template-".concat(Vt),onActionCallback:vn},R.a.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),R.a.createElement("li",{className:"btn-full-screen"},R.a.createElement(_,{icon:"".concat(Zt?"icon-shrink":"icon-enlarge"),title:Zt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:vn})))},N=F("M8RZ"),U=F("+L6B"),H=F("2/Rp"),G=F("y8nQ"),L=F("Vl3Y"),W=F("5NDa"),Z=F("5rEg"),oe={labelCol:{span:4},wrapperCol:{span:20}},ie=function(We){var St=We.callback,en=We.onCancel;function vn(Zt){St(Zt)}return R.a.createElement(L.a,Object(E.a)({},oe,{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:vn}),R.a.createElement(L.a.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},R.a.createElement(Z.a,null)),R.a.createElement(L.a.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},R.a.createElement(Z.a,null)),R.a.createElement("div",{className:"flex-container flex-end"},R.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),R.a.createElement(H.a,{type:"ghost",onClick:en},"\u53D6\u6D88")))},be=F("7ahc"),Je=F("k1fw"),Ae=F("HmJG"),ke=F("BjJ7"),Ze=L.a.useForm,Xe={width:280,marginRight:10},Pe={labelCol:{span:5},wrapperCol:{span:19}},fe=function(We){var St=We.callback,en=We.onCancel,vn=Ze(),Zt=Object(B.a)(vn,1),Vt=Zt[0],Et=Object(m.useRef)();function _t(Me){St(Object(Je.a)(Object(Je.a)({},Me),{},{name:Et.current}))}function ct(Me,wt){Vt.setFieldsValue({src:"/api/attachments/".concat(Me.id,"?type=").concat(Me.content_type),type:wt.type})}function ge(Me){var wt=Me.target.files[0];Et.current=wt.name,Se(wt,ct)}return R.a.createElement(L.a,Object(E.a)({form:Vt},Pe,{className:"upload-image-panel",onFinish:_t}),R.a.createElement(L.a.Item,{label:"\u6587\u4EF6\u5730\u5740",required:!0},R.a.createElement("div",{className:"flex-container"},R.a.createElement(L.a.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},R.a.createElement(Z.a,{style:Xe})),R.a.createElement(le,{onFileChange:ge}))),R.a.createElement(L.a.Item,{label:"\u6587\u4EF6\u63CF\u8FF0",name:"alt"},R.a.createElement(Z.a,{style:{width:264}})),R.a.createElement(L.a.Item,{style:{textAlign:"right"}},R.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),R.a.createElement(H.a,{type:"ghost",onClick:en},"\u53D6\u6D88")))};function le(We){var St=We.onFileChange;return R.a.createElement("a",{className:"upload-button"},"\u672C\u5730\u4E0A\u4F20",R.a.createElement("input",{type:"file",onChange:St}))}function Se(We,St){if(!We)throw new String("\u6CA1\u6709\u6587\u4EF6");var en=new FormData;en.append("editormd-image-file",We),en.append("file_param_name","editormd-image-file"),en.append("byxhr","true");var vn=new window.XMLHttpRequest;vn.withCredentials=!0,vn.addEventListener("load",function(Zt){St(JSON.parse(Zt.target.responseText),We)},!1),vn.addEventListener("error",function(Zt){console.error(Zt)},!1),vn.open("POST","".concat(ke.a,"/api/attachments.json")),vn.send(en)}var ve=F("giR+"),Ge=F("fyUT"),it=F("7Kak"),ee=F("9yH6"),V=ee.a.Group,Q={margin:"0 8px"},he=function(We){var St=We.callback,en=We.onCancel;function vn(Zt){St(Zt)}return R.a.createElement(L.a,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:vn},R.a.createElement("div",{className:"flex-container"},R.a.createElement("span",{style:Q},"\u5355\u5143\u683C\u6570\uFF1A"),R.a.createElement("span",{style:Q},"\u884C\u6570"),R.a.createElement(L.a.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},R.a.createElement(Ge.a,null)),R.a.createElement("span",{style:Q},"\u5217\u6570"),R.a.createElement(L.a.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},R.a.createElement(Ge.a,null))),R.a.createElement("div",{className:"flex-container",style:{marginTop:12}},R.a.createElement("span",{style:Q},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),R.a.createElement(L.a.Item,{name:"align"},R.a.createElement(V,null,R.a.createElement(ee.a,{value:"default"},R.a.createElement("i",{className:"fa fa-align-justify"})),R.a.createElement(ee.a,{value:"left"},R.a.createElement("i",{className:"fa fa-align-left"})),R.a.createElement(ee.a,{value:"center"},R.a.createElement("i",{className:"fa fa-align-center"})),R.a.createElement(ee.a,{value:"right"},R.a.createElement("i",{className:"fa fa-align-right"}))))),R.a.createElement("div",{className:"flex-container flex-end"},R.a.createElement(H.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),R.a.createElement(H.a,{type:"ghost",onClick:en},"\u53D6\u6D88")))},_e=F("ErOA"),Fe=F("7Cbv"),He="link",Rt="upload-image",Ht="code-block",It="add-table",Bt="------------",tn={default:Bt,left:":".concat(Bt),center:":".concat(Bt,":"),right:"".concat(Bt,":")},hn=F("9VGf"),tt,Ke;function Ct(){}var Dt=0,st=1e4,xt="\u2581",je=` **\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 we(We){return/^\d+$/.test(We)?"".concat(We,"px"):We}var Te=navigator.platform.toUpperCase().indexOf("MAC")>=0,ue=Te?"Cmd":"Ctrl",pe=["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"],me=(tt={},Object(x.a)(tt,ue+"-B","bold"),Object(x.a)(tt,ue+"-I","italic"),tt),xe=(Ke={},Object(x.a)(Ke,He,"\u6DFB\u52A0\u94FE\u63A5"),Object(x.a)(Ke,Ht,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(x.a)(Ke,Rt,"\u6DFB\u52A0\u6587\u4EF6"),Object(x.a)(Ke,It,"\u6DFB\u52A0\u8868\u683C"),Ke),nt=rt.a=function(We){var St=We.defaultValue,en=St===void 0?"":St,vn=We.onChange,Zt=We.width,Vt=Zt===void 0?"100%":Zt,Et=We.height,_t=Et===void 0?400:Et,ct=We.miniToolbar,ge=ct===void 0?!1:ct,Me=We.isFocus,wt=Me===void 0?!1:Me,ft=We.watch,qt=We.insertTemp,on=We.mode,ot=on===void 0?"markdown":on,Wt=We.id,dn=Wt===void 0?"markdown-editor-id":Wt,Bn=We.showResizeBar,kn=Bn===void 0?!1:Bn,Cr=We.noStorage,Ar=Cr===void 0?!1:Cr,hr=We.showNullButton,On=hr===void 0?!1:hr,Fr=We.hidetoolBar,na=Fr===void 0?!1:Fr,Pr=We.fullScreen,fr=Pr===void 0?!1:Pr,Br=We.onBlur,qr=We.onCMBeforeChange,ha=We.onFullScreen,Qt=We.className,qn=Qt===void 0?"":Qt,oa=We.disablePaste,_a=oa===void 0?!1:oa,jr=We.placeholder,ra=jr===void 0?"":jr,J=We.values,y=J===void 0?"":J,A=Object(m.useState)(null),X=Object(B.a)(A,2),te=X[0],$=X[1],ze=Object(m.useState)(en),Ut=Object(B.a)(ze,2),pn=Ut[0],Nn=Ut[1],Kt=Object(m.useState)(ft),rn=Object(B.a)(Kt,2),At=rn[0],Yt=rn[1],bn=Object(m.useState)(fr),tr=Object(B.a)(bn,2),Wn=tr[0],Jn=tr[1],Sr=Object(m.useState)(""),zn=Object(B.a)(Sr,2),Gn=zn[0],Un=zn[1],mn=Object(m.useState)(0),br=Object(B.a)(mn,2),_r=br[0],Cn=br[1],or=Object(m.useState)(_t),xr=Object(B.a)(or,2),Ur=xr[0],q=xr[1],De=Object(m.useState)(!1),Ve=Object(B.a)(De,2),Be=Ve[0],$e=Ve[1],qe=Object(m.useRef)(Object(Fe.a)()),ht=Object(m.useRef)(!1),Ee=Object(m.useRef)(),gt=Object(m.useRef)(),yt=Object(m.useRef)(),Lt=Object(m.useRef)(),bt=Object(m.useRef)(),ut=function(){var vt=Object(w.a)(D.a.mark(function Xt(){var Tt,Tn;return D.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return En.next=2,Object(_e.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qe.current}});case 2:Tn=En.sent,Tn!=null&&(Tt=Tn.attachments)!==null&&Tt!==void 0&&Tt.length&&(console.log("cm:",te,gt),Tn.attachments.map(function(wn){wn.content_type.indexOf("image")>-1?te.replaceSelection("![,](/api/attachments/".concat(wn.id,"?type=").concat(wn.content_type,")")):wn.content_type.indexOf("video")>-1?te.replaceSelection('')):wn.content_type.indexOf("pdf")>-1?te.replaceSelection('
      ').concat(wn.name,"")):te.replaceSelection("[".concat(wn.name,"](").concat(i.a.API_SERVER,"/api/attachments/").concat(wn.id,"?type=").concat(wn.content_type,")"))}));case 4:case"end":return En.stop()}},Xt)}));return function(){return vt.apply(this,arguments)}}();Object(m.useEffect)(function(){Nn(y),te==null||te.setValue(y)},[y]),Object(m.useEffect)(function(){ha==null||ha(Wn)},[Wn]),Object(m.useEffect)(function(){if(gt.current){var vt=g.a.fromTextArea(gt.current,{mode:ot,lineNumbers:!ge,lineWrapping:!0,value:en,autoCloseTags:!0,autoCloseBrackets:!0});wt&&vt.focus();function Xt(Tt,Tn){if(_a){Tn.preventDefault();return}var zt=Tn.clipboardData;if(zt){var En=zt.types.toString(),wn=zt.items;if(En==="Files"||zt.types.indexOf("Files")>-1){if(Tn.preventDefault(),ot=="stex")return;try{var Yn,Ln=wn[1];((Yn=wn[0])===null||Yn===void 0?void 0:Yn.kind)==="file"&&(Ln=wn[0]);var yn=Ln.getAsFile(),sr=yn.name.split(".").pop();Se(yn,function(Fn){if(Fn.id){var Ir,dr,Mr;(yn==null||((Ir=yn.type)===null||Ir===void 0)?void 0:Ir.indexOf("image"))>-1?vt.replaceSelection("![,](/api/attachments/".concat(Fn.id,"?type=").concat(Fn.content_type,")")):(yn==null||((dr=yn.type)===null||dr===void 0)?void 0:dr.indexOf("video"))>-1?vt.replaceSelection('')):(yn==null||((Mr=yn.type)===null||Mr===void 0)?void 0:Mr.indexOf("pdf"))>-1?vt.replaceSelection('').concat(yn.name,"")):pe.includes(sr)?vt.replaceSelection('').concat(yn.name,"")):vt.replaceSelection("[".concat(yn.name,"](").concat(i.a.API_SERVER,"/api/attachments/").concat(Fn.id,"?type=").concat(Fn.content_type,")"))}else(Fn==null?void 0:Fn.status)===401&&(document.location.href="/user/login")})}catch(Fn){T.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return vt.on("paste",Xt),vt.on("dragleave",function(Tt,Tn){yt.current.classList.remove("mouse-hover-md")}),vt.on("dragover",function(Tt,Tn){yt.current.classList.add("mouse-hover-md")}),vt.on("drop",function(Tt,Tn){yt.current.classList.add("mouse-hover-md");var zt;if(zt=Tn.dataTransfer.files,zt.length>0){Tn.preventDefault(),Tn.stopPropagation();for(var En=function(Ln){var yn=zt[Ln],sr=yn.name.split(".").pop();Se(yn,function(Fn){if(Fn.id){var Ir,dr,Mr;(yn==null||((Ir=yn.type)===null||Ir===void 0)?void 0:Ir.indexOf("image"))>-1?vt.replaceSelection("![,](/api/attachments/".concat(Fn.id,"?type=").concat(Fn.content_type,")")):(yn==null||((dr=yn.type)===null||dr===void 0)?void 0:dr.indexOf("video"))>-1?vt.replaceSelection('')):(yn==null||((Mr=yn.type)===null||Mr===void 0)?void 0:Mr.indexOf("pdf"))>-1?vt.replaceSelection('').concat(yn.name,"")):pe.includes(sr)?vt.replaceSelection('').concat(yn.name,"")):vt.replaceSelection("[".concat(yn.name,"](").concat(i.a.API_SERVER,"/api/attachments/").concat(Fn.id,"?type=").concat(Fn.content_type,")"))}else(Fn==null?void 0:Fn.status)===401&&(document.location.href="/user/login")})},wn=0;wn0||wn.target.offsetWidth>0)&&(kt(),te.setSize("100%","100%"),te.refresh())}}catch(Yn){zt.e(Yn)}finally{zt.f()}});return Tt.observe(gt.current.parentElement),Tt}if(te){var Xt=vt();return function(){Xt.unobserve(gt.current.parentElement)}}},[te,kt]),Object(m.useEffect)(function(){if(te){for(var vt=[],Xt=function(){var wn=Tn[Tt];zt=Object(B.a)(wn,2);var Yn=zt[0],Ln=zt[1],yn=Object(x.a)({},Yn,function(){Mt(Ln)});vt.push(yn),te.addKeyMap(yn)},Tt=0,Tn=Object.entries(me);Tt0){var vt=new Date().getTime(),Xt=window.sessionStorage.getItem(dn);vt>=_r+st&&(!Xt||Xt!==pn)&&(window.sessionStorage.setItem(dn,pn),$e(!0))}},st),Object(m.useEffect)(function(){Yt(ft)},[te,ft]),Object(m.useEffect)(function(){te&&(wt&&te.focus())},[te,wt]),Object(m.useEffect)(function(){if(At&&te){var vt=te.getScrollerElement();function Xt(Tt){var Tn=Tt.target;if(bt.current){var zt=Tn.scrollTop/Tn.scrollHeight;bt.current.scrollTop=bt.current.scrollHeight*zt}}return vt.addEventListener("scroll",Xt),function(){vt.removeEventListener("scroll",Xt)}}},[te,At]),Object(m.useEffect)(function(){if(te&&qr){function vt(Xt,Tt){qr(Xt,Tt)}return te.on("beforeChange",vt),function(){te.off("beforeChange",vt)}}},[te,qr]),Object(m.useEffect)(function(){if(te&&Br){function vt(){Br(te.getValue())}return te.on("blur",vt),function(){te.off("blur",vt)}}},[te,Br]),Object(m.useEffect)(function(){if(te){function vt(Xt){var Tt=Xt.getValue();Nn(Tt),Cn(new Date().getTime()),Xt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),vn&&vn(Tt)}return te.on("change",vt),function(){te.off("change",vt)}}},[te,vn]),Object(m.useEffect)(function(){te&&(en==null?(te.setValue(""),Nn("")):en!==te.getValue()&&(te.setValue(en),Nn(en),te.setCursor(te.lineCount(),0)))},[te,en]);var Mt=Object(m.useCallback)(function(vt){var Xt=te.getCursor(),Tt=te.getSelection(),Tn=Tt.split(` +\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`;function we(We){return/^\d+$/.test(We)?"".concat(We,"px"):We}var Te=navigator.platform.toUpperCase().indexOf("MAC")>=0,ue=Te?"Cmd":"Ctrl",pe=["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"],me=(tt={},Object(x.a)(tt,ue+"-B","bold"),Object(x.a)(tt,ue+"-I","italic"),tt),xe=(Ke={},Object(x.a)(Ke,He,"\u6DFB\u52A0\u94FE\u63A5"),Object(x.a)(Ke,Ht,"\u6DFB\u52A0\u4EE3\u7801\u5757"),Object(x.a)(Ke,Rt,"\u6DFB\u52A0\u6587\u4EF6"),Object(x.a)(Ke,It,"\u6DFB\u52A0\u8868\u683C"),Ke),nt=rt.a=function(We){var St=We.defaultValue,en=St===void 0?"":St,vn=We.onChange,Zt=We.width,Vt=Zt===void 0?"100%":Zt,Et=We.height,_t=Et===void 0?400:Et,ct=We.miniToolbar,ge=ct===void 0?!1:ct,Me=We.isFocus,wt=Me===void 0?!1:Me,ht=We.watch,qt=We.insertTemp,on=We.mode,ot=on===void 0?"markdown":on,Wt=We.id,dn=Wt===void 0?"markdown-editor-id":Wt,Bn=We.showResizeBar,kn=Bn===void 0?!1:Bn,Cr=We.noStorage,Ar=Cr===void 0?!1:Cr,fr=We.showNullButton,On=fr===void 0?!1:fr,Fr=We.hidetoolBar,na=Fr===void 0?!1:Fr,Pr=We.fullScreen,hr=Pr===void 0?!1:Pr,Br=We.onBlur,qr=We.onCMBeforeChange,fa=We.onFullScreen,Qt=We.className,qn=Qt===void 0?"":Qt,oa=We.disablePaste,_a=oa===void 0?!1:oa,jr=We.placeholder,ra=jr===void 0?"":jr,J=We.values,y=J===void 0?"":J,A=Object(m.useState)(null),X=Object(B.a)(A,2),te=X[0],$=X[1],ze=Object(m.useState)(en),Ut=Object(B.a)(ze,2),pn=Ut[0],Nn=Ut[1],Kt=Object(m.useState)(ht),rn=Object(B.a)(Kt,2),At=rn[0],Yt=rn[1],bn=Object(m.useState)(hr),tr=Object(B.a)(bn,2),Wn=tr[0],Jn=tr[1],Sr=Object(m.useState)(""),zn=Object(B.a)(Sr,2),Gn=zn[0],Un=zn[1],mn=Object(m.useState)(0),br=Object(B.a)(mn,2),_r=br[0],Cn=br[1],or=Object(m.useState)(_t),xr=Object(B.a)(or,2),Ur=xr[0],q=xr[1],De=Object(m.useState)(!1),Ve=Object(B.a)(De,2),Be=Ve[0],$e=Ve[1],qe=Object(m.useRef)(Object(Fe.a)()),ft=Object(m.useRef)(!1),Ee=Object(m.useRef)(),gt=Object(m.useRef)(),yt=Object(m.useRef)(),Lt=Object(m.useRef)(),bt=Object(m.useRef)(),ut=function(){var vt=Object(w.a)(D.a.mark(function Xt(){var Tt,Tn;return D.a.wrap(function(En){for(;;)switch(En.prev=En.next){case 0:return En.next=2,Object(_e.a)("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qe.current}});case 2:Tn=En.sent,Tn!=null&&(Tt=Tn.attachments)!==null&&Tt!==void 0&&Tt.length&&(console.log("cm:",te,gt),Tn.attachments.map(function(wn){wn.content_type.indexOf("image")>-1?te.replaceSelection("![,](/api/attachments/".concat(wn.id,"?type=").concat(wn.content_type,")")):wn.content_type.indexOf("video")>-1?te.replaceSelection('')):wn.content_type.indexOf("pdf")>-1?te.replaceSelection('').concat(wn.name,"")):te.replaceSelection("[".concat(wn.name,"](").concat(i.a.API_SERVER,"/api/attachments/").concat(wn.id,"?type=").concat(wn.content_type,")"))}));case 4:case"end":return En.stop()}},Xt)}));return function(){return vt.apply(this,arguments)}}();Object(m.useEffect)(function(){Nn(y),te==null||te.setValue(y)},[y]),Object(m.useEffect)(function(){fa==null||fa(Wn)},[Wn]),Object(m.useEffect)(function(){if(gt.current){var vt=g.a.fromTextArea(gt.current,{mode:ot,lineNumbers:!ge,lineWrapping:!0,value:en,autoCloseTags:!0,autoCloseBrackets:!0});wt&&vt.focus();function Xt(Tt,Tn){if(_a){Tn.preventDefault();return}var zt=Tn.clipboardData;if(zt){var En=zt.types.toString(),wn=zt.items;if(En==="Files"||zt.types.indexOf("Files")>-1){if(Tn.preventDefault(),ot=="stex")return;try{var Yn,Ln=wn[1];((Yn=wn[0])===null||Yn===void 0?void 0:Yn.kind)==="file"&&(Ln=wn[0]);var yn=Ln.getAsFile(),sr=yn.name.split(".").pop();Se(yn,function(Fn){if(Fn.id){var Ir,dr,Mr;(yn==null||((Ir=yn.type)===null||Ir===void 0)?void 0:Ir.indexOf("image"))>-1?vt.replaceSelection("![,](/api/attachments/".concat(Fn.id,"?type=").concat(Fn.content_type,")")):(yn==null||((dr=yn.type)===null||dr===void 0)?void 0:dr.indexOf("video"))>-1?vt.replaceSelection('')):(yn==null||((Mr=yn.type)===null||Mr===void 0)?void 0:Mr.indexOf("pdf"))>-1?vt.replaceSelection('').concat(yn.name,"")):pe.includes(sr)?vt.replaceSelection('').concat(yn.name,"")):vt.replaceSelection("[".concat(yn.name,"](").concat(i.a.API_SERVER,"/api/attachments/").concat(Fn.id,"?type=").concat(Fn.content_type,")"))}else(Fn==null?void 0:Fn.status)===401&&(document.location.href="/user/login")})}catch(Fn){T.b.warn("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0}return vt.on("paste",Xt),vt.on("dragleave",function(Tt,Tn){yt.current.classList.remove("mouse-hover-md")}),vt.on("dragover",function(Tt,Tn){yt.current.classList.add("mouse-hover-md")}),vt.on("drop",function(Tt,Tn){yt.current.classList.add("mouse-hover-md");var zt;if(zt=Tn.dataTransfer.files,zt.length>0){Tn.preventDefault(),Tn.stopPropagation();for(var En=function(Ln){var yn=zt[Ln],sr=yn.name.split(".").pop();Se(yn,function(Fn){if(Fn.id){var Ir,dr,Mr;(yn==null||((Ir=yn.type)===null||Ir===void 0)?void 0:Ir.indexOf("image"))>-1?vt.replaceSelection("![,](/api/attachments/".concat(Fn.id,"?type=").concat(Fn.content_type,")")):(yn==null||((dr=yn.type)===null||dr===void 0)?void 0:dr.indexOf("video"))>-1?vt.replaceSelection('')):(yn==null||((Mr=yn.type)===null||Mr===void 0)?void 0:Mr.indexOf("pdf"))>-1?vt.replaceSelection('').concat(yn.name,"")):pe.includes(sr)?vt.replaceSelection('').concat(yn.name,"")):vt.replaceSelection("[".concat(yn.name,"](").concat(i.a.API_SERVER,"/api/attachments/").concat(Fn.id,"?type=").concat(Fn.content_type,")"))}else(Fn==null?void 0:Fn.status)===401&&(document.location.href="/user/login")})},wn=0;wn0||wn.target.offsetWidth>0)&&(kt(),te.setSize("100%","100%"),te.refresh())}}catch(Yn){zt.e(Yn)}finally{zt.f()}});return Tt.observe(gt.current.parentElement),Tt}if(te){var Xt=vt();return function(){Xt.unobserve(gt.current.parentElement)}}},[te,kt]),Object(m.useEffect)(function(){if(te){for(var vt=[],Xt=function(){var wn=Tn[Tt];zt=Object(B.a)(wn,2);var Yn=zt[0],Ln=zt[1],yn=Object(x.a)({},Yn,function(){Mt(Ln)});vt.push(yn),te.addKeyMap(yn)},Tt=0,Tn=Object.entries(me);Tt0){var vt=new Date().getTime(),Xt=window.sessionStorage.getItem(dn);vt>=_r+st&&(!Xt||Xt!==pn)&&(window.sessionStorage.setItem(dn,pn),$e(!0))}},st),Object(m.useEffect)(function(){Yt(ht)},[te,ht]),Object(m.useEffect)(function(){te&&(wt&&te.focus())},[te,wt]),Object(m.useEffect)(function(){if(At&&te){var vt=te.getScrollerElement();function Xt(Tt){var Tn=Tt.target;if(bt.current){var zt=Tn.scrollTop/Tn.scrollHeight;bt.current.scrollTop=bt.current.scrollHeight*zt}}return vt.addEventListener("scroll",Xt),function(){vt.removeEventListener("scroll",Xt)}}},[te,At]),Object(m.useEffect)(function(){if(te&&qr){function vt(Xt,Tt){qr(Xt,Tt)}return te.on("beforeChange",vt),function(){te.off("beforeChange",vt)}}},[te,qr]),Object(m.useEffect)(function(){if(te&&Br){function vt(){Br(te.getValue())}return te.on("blur",vt),function(){te.off("blur",vt)}}},[te,Br]),Object(m.useEffect)(function(){if(te){function vt(Xt){var Tt=Xt.getValue();Nn(Tt),Cn(new Date().getTime()),Xt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),vn&&vn(Tt)}return te.on("change",vt),function(){te.off("change",vt)}}},[te,vn]),Object(m.useEffect)(function(){te&&(en==null?(te.setValue(""),Nn("")):en!==te.getValue()&&(te.setValue(en),Nn(en),te.setCursor(te.lineCount(),0)))},[te,en]);var Mt=Object(m.useCallback)(function(vt){var Xt=te.getCursor(),Tt=te.getSelection(),Tn=Tt.split(` `);switch(vt){case"bold":return te.replaceSelection("**"+Tt+"**"),Tt===""&&te.setCursor(Xt.line,Xt.ch+2),te.focus();case"italic":return te.replaceSelection("*"+Tt+"*"),Tt===""&&te.setCursor(Xt.line,Xt.ch+1),te.focus();case"code":return te.replaceSelection("`"+Tt+"`"),Tt===""&&te.setCursor(Xt.line,Xt.ch+1),te.focus();case"inline-latex":return te.replaceSelection("`$$"+Tt+"$$`"),Tt===""&&te.setCursor(Xt.line,Xt.ch+3),te.focus();case"latex":return te.replaceSelection("```latex\n"+Tt+"\n```"),te.setCursor(Xt.line+1,Tt.length+1),te.focus();case"line-break":return te.replaceSelection(`
      `),te.focus();case"list-ul":return Tt===""?te.replaceSelection("- "+Tt):te.replaceSelection(Tn.map(function(zt){return zt===""?"":"- ".concat(zt)}).join(` `)),te.focus();case"list-ol":return Tt===""?te.replaceSelection("1. "+Tt):te.replaceSelection(Tn.map(function(zt,En){return zt===""?"":"".concat(En+1,". ").concat(zt)}).join(` @@ -288,7 +288,7 @@ Please report this to https://github.com/markedjs/marked.`,we.silent)return"

      A `,Ir=0;Ir300&&(Yn=300);var Ln=_t+Yn+"px";q(Ln)}}return vt.addEventListener("mousedown",Tn),document.addEventListener("mousemove",En),document.addEventListener("mouseup",zt),function(){vt.removeEventListener("mousedown",Tn),document.removeEventListener("mousemove",En),document.removeEventListener("mouseup",zt)}}},[te,Lt]),Object(m.useEffect)(function(){q(_t)},[_t]);var Jt=we(Vt),Nt=we(Ur),Sn={width:Jt,height:Nt},gn=Object(m.useMemo)(function(){if(_r){var vt=new Date(_r),Xt=vt.getHours(),Tt=vt.getMinutes(),Tn=vt.getSeconds();return Xt=Xt<10?"0"+Xt:Xt,Tt=Tt<10?"0"+Tt:Tt,Tn=Tn<10?"0"+Tn:Tn,"".concat(Xt,":").concat(Tt,":").concat(Tn)}return 0},[_r]);function un(){window.sessionStorage.removeItem(dn),$e(!1),Cn(0)}function Mn(){$e(!1),Cn(0),te.setValue(window.sessionStorage.getItem(dn))}function Rn(vt,Xt){var Tt=te.getValue();Tt=Tt.replace(vt,Xt),Nn(Tt),te==null||te.setValue(Tt)}return R.a.createElement(m.Fragment,null,R.a.createElement("div",{className:"markdown-editor-wrapper",ref:yt},R.a.createElement("div",{className:"markdown-editor-container ".concat(qn," ").concat(At?"on-preview":""," ").concat(ge?"mini":""," ").concat(Wn?"full-screen":""),style:Sn},R.a.createElement(O,{insertTemp:qt,watch:At,fullScreen:Wn,showNullButton:On,onActionCallback:Mt,hidetoolBar:na,uuid:qe.current,setOpenPhones:function(){ht.current=!0}}),R.a.createElement("div",{className:"markdown-editor-body"},R.a.createElement("div",{className:"codemirror-container"},R.a.createElement("textarea",{ref:gt,placeholder:ra})),At?R.a.createElement("div",{ref:bt,className:"preview-container"},ot==="stex"&&R.a.createElement(P,{value:pn}),ot!=="stex"&&R.a.createElement(v.a,{edit:!0,value:pn,replaces:Rn})):null))),kn?R.a.createElement("a",{ref:Lt,className:"editor-resize"}):null,R.a.createElement(N.a,null,xe[Gn]?R.a.createElement(z.a,{centered:!0,title:xe[Gn],visible:!0,onCancel:Pt,footer:null},mt):null))}},RotF:function(an,rt,F){an.exports=F("LSTS")},"SA+Z":function(an,rt,F){var re=F("wTVA"),z=F("EbDI"),I=F("ZhPi"),K=F("wkBT");function T(w){return re(w)||z(w)||I(w)||K()}an.exports=T,an.exports.__esModule=!0,an.exports.default=an.exports},SJMd:function(an,rt){/** +`),te.focus();default:throw new Error}},[te,Gn]),mt=Object(m.useMemo)(function(){switch(Gn){case He:return R.a.createElement(ie,{callback:Le,onCancel:Pt});case Ht:return R.a.createElement(be.b,{callback:Le,onCancel:Pt});case Rt:return R.a.createElement(fe,{callback:Le,onCancel:Pt});case It:return R.a.createElement(he,{callback:Le,onCancel:Pt});default:return null}},[Gn]);function Pt(){Un("")}Object(m.useEffect)(function(){if(Lt.current){var vt=Lt.current,Xt=!1,Tt=0;function Tn(wn){Xt=!0,Tt=wn.pageY}function zt(){Xt=!1}function En(wn){if(Xt){var Yn=wn.pageY-Tt;Yn<0&&(Yn=0),Yn>300&&(Yn=300);var Ln=_t+Yn+"px";q(Ln)}}return vt.addEventListener("mousedown",Tn),document.addEventListener("mousemove",En),document.addEventListener("mouseup",zt),function(){vt.removeEventListener("mousedown",Tn),document.removeEventListener("mousemove",En),document.removeEventListener("mouseup",zt)}}},[te,Lt]),Object(m.useEffect)(function(){q(_t)},[_t]);var Jt=we(Vt),Nt=we(Ur),Sn={width:Jt,height:Nt},gn=Object(m.useMemo)(function(){if(_r){var vt=new Date(_r),Xt=vt.getHours(),Tt=vt.getMinutes(),Tn=vt.getSeconds();return Xt=Xt<10?"0"+Xt:Xt,Tt=Tt<10?"0"+Tt:Tt,Tn=Tn<10?"0"+Tn:Tn,"".concat(Xt,":").concat(Tt,":").concat(Tn)}return 0},[_r]);function un(){window.sessionStorage.removeItem(dn),$e(!1),Cn(0)}function Mn(){$e(!1),Cn(0),te.setValue(window.sessionStorage.getItem(dn))}function Rn(vt,Xt){var Tt=te.getValue();Tt=Tt.replace(vt,Xt),Nn(Tt),te==null||te.setValue(Tt)}return R.a.createElement(m.Fragment,null,R.a.createElement("div",{className:"markdown-editor-wrapper",ref:yt},R.a.createElement("div",{className:"markdown-editor-container ".concat(qn," ").concat(At?"on-preview":""," ").concat(ge?"mini":""," ").concat(Wn?"full-screen":""),style:Sn},R.a.createElement(O,{insertTemp:qt,watch:At,fullScreen:Wn,showNullButton:On,onActionCallback:Mt,hidetoolBar:na,uuid:qe.current,setOpenPhones:function(){ft.current=!0}}),R.a.createElement("div",{className:"markdown-editor-body"},R.a.createElement("div",{className:"codemirror-container"},R.a.createElement("textarea",{ref:gt,placeholder:ra})),At?R.a.createElement("div",{ref:bt,className:"preview-container"},ot==="stex"&&R.a.createElement(P,{value:pn}),ot!=="stex"&&R.a.createElement(v.a,{edit:!0,value:pn,replaces:Rn})):null))),kn?R.a.createElement("a",{ref:Lt,className:"editor-resize"}):null,R.a.createElement(N.a,null,xe[Gn]?R.a.createElement(z.a,{centered:!0,title:xe[Gn],visible:!0,onCancel:Pt,footer:null},mt):null))}},RotF:function(an,rt,F){an.exports=F("LSTS")},"SA+Z":function(an,rt,F){var re=F("wTVA"),z=F("EbDI"),I=F("ZhPi"),K=F("wkBT");function T(w){return re(w)||z(w)||I(w)||K()}an.exports=T,an.exports.__esModule=!0,an.exports.default=an.exports},SJMd:function(an,rt){/** * @license * Copyright (C) 2006 Google Inc. * @@ -303,35 +303,35 @@ Please report this to https://github.com/markedjs/marked.`,we.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 F,re,z,I=!1,K,T;window.PR_SHOULD_USE_CONTINUATION=!0;var w,B;(function(){var x=window,k=["break,continue,do,else,for,if,return,while"],D=[k,"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"],m=[D,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],R=[m,"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"],M=[m,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],g=[m,"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=[m,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],d="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",o=[k,"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=[k,"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"],f=[k,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],S=[R,g,M,p,d,o,u,f],b=/^(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",P="kwd",E="com",h="typ",c="lit",s="pun",i="pln",C="tag",_="dec",O="src",N="atn",U="atv",H="nocode",G="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function L(ee){for(var V=0,Q=!1,fe=!1,_e=0,Fe=ee.length;_e122||(ue<65||Te>90||Ct.push([Math.max(65,Te)|32,Math.min(ue,90)|32]),ue<97||Te>122||Ct.push([Math.max(97,Te)&~32,Math.min(ue,122)&~32]))}}Ct.sort(function(nt,We){return nt[0]-We[0]||We[1]-nt[1]});for(var pe=[],me=[],xt=0;xtxe[0]&&(xe[1]+1>xe[0]&&st.push("-"),st.push(It(xe[1])))}return st.push("]"),st.join("")}function tn(tt){for(var Ke=tt.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")),Ct=Ke.length,Dt=[],st=0,xt=0;st=2&&Te==="["?Ke[st]=Bt(je):Te!=="\\"&&(Ke[st]=je.replace(/[a-zA-Z]/g,function(me){var xe=me.charCodeAt(0);return"["+String.fromCharCode(xe&~32,xe|32)+"]"}))}return Ke.join("")}for(var fn=[],_e=0,Fe=ee.length;_e=0;)Q[fn.charAt(tt)]=tn;var Ke=tn[1],Ct=""+Ke;Ht.hasOwnProperty(Ct)||(Rt.push(Ke),Ht[Ct]=null)}Rt.push(/[\0-\uffff]/),fe=L(Rt)})();var _e=V.length,Fe=function(He){for(var Rt=He.sourceCode,Ht=He.basePos,It=He.sourceNode,Bt=[Ht,i],tn=0,fn=Rt.match(fe)||[],tt={},Ke=0,Ct=fn.length;Ke=5&&st.substring(0,5)==="lang-",je&&!(xt&&typeof xt[1]=="string")&&(je=!1,st=O),je||(tt[Dt]=st)}var ue=tn;if(tn+=Dt.length,!je)Bt.push(Ht+ue,st);else{var pe=xt[1],me=Dt.indexOf(pe),xe=me+pe.length;xt[2]&&(xe=Dt.length-xt[2].length,me=xe-pe.length);var nt=st.substring(5);Z(It,Ht+ue,Dt.substring(0,me),Fe,Bt),Z(It,Ht+ue+me,pe,he(nt,pe),Bt),Z(It,Ht+ue+xe,Dt.substring(xe),Fe,Bt)}}He.decorations=Bt};return Fe}function Je(ee){var V=[],Q=[];ee.tripleQuotedStrings?V.push([v,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ee.multiLineStrings?V.push([v,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):V.push([v,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ee.verbatimStrings&&Q.push([v,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var fe=ee.hashComments;fe&&(ee.cStyleComments?(fe>1?V.push([E,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):V.push([E,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Q.push([v,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):V.push([E,/^#[^\r\n]*/,null,"#"])),ee.cStyleComments&&(Q.push([E,/^\/\/[^\r\n]*/,null]),Q.push([E,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var _e=ee.regexLiterals;if(_e){var Fe=_e>1?"":` -\r`,He=Fe?".":"[\\S\\s]",Rt="/(?=[^/*"+Fe+"])(?:[^/\\x5B\\x5C"+Fe+"]|\\x5C"+He+"|\\x5B(?:[^\\x5C\\x5D"+Fe+"]|\\x5C"+He+")*(?:\\x5D|$))+/";Q.push(["lang-regex",RegExp("^"+G+"("+Rt+")")])}var Ht=ee.types;Ht&&Q.push([h,Ht]);var It=(""+ee.keywords).replace(/^ | $/g,"");It.length&&Q.push([P,new RegExp("^(?:"+It.replace(/[\s,]+/g,"|")+")\\b"),null]),V.push([i,/^\s+/,null,` \r - \xA0`]);var Bt="^.[^\\s\\w.$@'\"`/\\\\]*";return ee.regexLiterals&&(Bt+="(?!s*/)"),Q.push([c,/^@[a-z_$][a-z_$@0-9]*/i,null],[h,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[i,/^[a-z_$][a-z_$@0-9]*/i,null],[c,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[i,/^\\[\s\S]?/,null],[s,new RegExp(Bt),null]),be(V,Q)}var Ae=Je({keywords:S,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ke(ee,V,Q){for(var fe=/(?:^|\s)nocode(?:\s|$)/,_e=/\r\n?|\n/,Fe=ee.ownerDocument,He=Fe.createElement("li");ee.firstChild;)He.appendChild(ee.firstChild);var Rt=[He];function Ht(Ke){var Ct=Ke.nodeType;if(Ct==1&&!fe.test(Ke.className))if(Ke.nodeName==="br")It(Ke),Ke.parentNode&&Ke.parentNode.removeChild(Ke);else for(var Dt=Ke.firstChild;Dt;Dt=Dt.nextSibling)Ht(Dt);else if((Ct==3||Ct==4)&&Q){var st=Ke.nodeValue,xt=st.match(_e);if(xt){var je=st.substring(0,xt.index);Ke.nodeValue=je;var we=st.substring(xt.index+xt[0].length);if(we){var Te=Ke.parentNode;Te.insertBefore(Fe.createTextNode(we),Ke.nextSibling)}It(Ke),je||Ke.parentNode.removeChild(Ke)}}}function It(Ke){for(;!Ke.nextSibling;)if(Ke=Ke.parentNode,!Ke)return;function Ct(xt,je){var we=je?xt.cloneNode(!1):xt,Te=xt.parentNode;if(Te){var ue=Ct(Te,1),pe=xt.nextSibling;ue.appendChild(we);for(var me=pe;me;me=pe)pe=me.nextSibling,ue.appendChild(me)}return we}for(var Dt=Ct(Ke.nextSibling,0),st;(st=Dt.parentNode)&&st.nodeType===1;)Dt=st;Rt.push(Dt)}for(var Bt=0;Bt=Te&&(Ht+=2),Fe>=ue&&(tn+=2)}}finally{st&&(st.style.display=xt)}}var Xe={};function Pe(ee,V){for(var Q=V.length;--Q>=0;){var fe=V[Q];Xe.hasOwnProperty(fe)?x.console&&console.warn("cannot override language handler %s",fe):Xe[fe]=ee}}function he(ee,V){return ee&&Xe.hasOwnProperty(ee)||(ee=/^\s*]*(?:>|$)/],[E,/^<\!--[\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"]),Pe(be([[i,/^[\s]+/,null,` \r -`],[U,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[C,/^^<\/?[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"]),Pe(be([],[[U,/^[\s\S]+/]]),["uq.val"]),Pe(Je({keywords:R,hashComments:!0,cStyleComments:!0,types:b}),["c","cc","cpp","cxx","cyc","m"]),Pe(Je({keywords:"null,true,false"}),["json"]),Pe(Je({keywords:g,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:b}),["cs"]),Pe(Je({keywords:M,cStyleComments:!0}),["java"]),Pe(Je({keywords:f,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Pe(Je({keywords:o,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Pe(Je({keywords:d,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Pe(Je({keywords:u,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Pe(Je({keywords:p,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Pe(Je({keywords:n,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Pe(be([],[[v,/^[\s\S]+/]]),["regex"]);function le(ee){var V=ee.langExtension;try{var Q=W(ee.sourceNode,ee.pre),fe=Q.sourceCode;ee.sourceCode=fe,ee.spans=Q.spans,ee.basePos=0,he(V,fe)(ee),Ze(ee)}catch(_e){x.console&&console.log(_e&&_e.stack||_e)}}function Se(ee,V,Q){var fe=Q||!1,_e=V||null,Fe=document.createElement("div");Fe.innerHTML="

      "+ee+"
      ",Fe=Fe.firstChild,fe&&ke(Fe,fe,!0);var He={langExtension:_e,numberLines:fe,sourceNode:Fe,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return le(He),Fe.innerHTML}function ve(ee,V){var Q=V||document.body,fe=Q.ownerDocument||document;function _e(we){return Q.getElementsByTagName(we)}for(var Fe=[_e("pre"),_e("code"),_e("xmp")],He=[],Rt=0;Rt=15&&(R=!1,k=!0);var v=u&&(D||R&&(b==null||b<12.11)),P=I||B&&x>=9;function E(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var h=function(e,t){var a=e.className,r=E(t).exec(a);if(r){var l=a.slice(r.index+r[0].length);e.className=a.slice(0,r.index)+(l?r[1]+l:"")}};function c(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function s(e,t){return c(e).appendChild(t)}function i(e,t,a,r){var l=document.createElement(e);if(a&&(l.className=a),r&&(l.style.cssText=r),typeof t=="string")l.appendChild(document.createTextNode(t));else if(t)for(var j=0;j=t)return Y+(t-j);Y+=ne-j,Y+=a-Y%a,j=ne+1}}var oe=function(){this.id=null,this.f=null,this.time=0,this.handler=L(this.onTimeout,this)};oe.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},oe.prototype.set=function(e,t){this.f=t;var a=+new Date+e;(!this.id||a=t)return r+Math.min(Y,t-l);if(l+=j-r,l+=a-l%a,r=j+1,l>=t)return r}}var Pe=[""];function he(e){for(;Pe.length<=e;)Pe.push(le(Pe)+" ");return Pe[e]}function le(e){return e[e.length-1]}function Se(e,t){for(var a=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function Q(e,t){return t?t.source.indexOf("\\w")>-1&&V(e)?!0:t.test(e):V(e)}function fe(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var _e=/[\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 Fe(e){return e.charCodeAt(0)>=768&&_e.test(e)}function He(e,t,a){for(;(a<0?t>0:ta?-1:1;;){if(t==a)return t;var l=(t+a)/2,j=r<0?Math.ceil(l):Math.floor(l);if(j==t)return e(j)?t:a;e(j)?a=j:t=j+r}}function Ht(e,t,a,r){if(!e)return r(t,a,"ltr",0);for(var l=!1,j=0;jt||t==a&&Y.to==t)&&(r(Math.max(Y.from,t),Math.min(Y.to,a),Y.level==1?"rtl":"ltr",j),l=!0)}l||r(t,a,"ltr")}var It=null;function Bt(e,t,a){var r;It=null;for(var l=0;lt)return l;j.to==t&&(j.from!=j.to&&a=="before"?r=l:It=l),j.from==t&&(j.from!=j.to&&a!="before"?r=l:It=l)}return r!=null?r:It}var tn=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(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 r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,l=/[stwN]/,j=/[LRr]/,Y=/[Lb1n]/,ne=/[1n]/;function ae(ce,Ne,Qe){this.level=ce,this.from=Ne,this.to=Qe}return function(ce,Ne){var Qe=Ne=="ltr"?"L":"R";if(ce.length==0||Ne=="ltr"&&!r.test(ce))return!1;for(var pt=ce.length,dt=[],Ft=0;Ft-1&&(r[t]=l.slice(0,j).concat(l.slice(j+1)))}}}function st(e,t){var a=Ct(e,t);if(!a.length)return;for(var r=Array.prototype.slice.call(arguments,2),l=0;l0}function Te(e){e.prototype.on=function(t,a){Ke(this,t,a)},e.prototype.off=function(t,a){Dt(this,t,a)}}function ue(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function pe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function me(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function xe(e){ue(e),pe(e)}function nt(e){return e.target||e.srcElement}function We(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),u&&e.ctrlKey&&t==1&&(t=3),t}var St=function(){if(B&&x<9)return!1;var e=i("div");return"draggable"in e||"dragDrop"in e}(),en;function vn(e){if(en==null){var t=i("span","\u200B");s(e,i("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(en=t.offsetWidth<=1&&t.offsetHeight>2&&!(B&&x<8))}var a=en?i("span","\u200B"):i("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Zt;function Vt(e){if(Zt!=null)return Zt;var t=s(e,document.createTextNode("A\u062EA")),a=_(t,0,1).getBoundingClientRect(),r=_(t,1,2).getBoundingClientRect();return c(e),!a||a.left==a.right?!1:Zt=r.right-a.right<3}var Et=` + */var F,re,z,I=!1,K,T;window.PR_SHOULD_USE_CONTINUATION=!0;var w,B;(function(){var x=window,k=["break,continue,do,else,for,if,return,while"],D=[k,"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"],m=[D,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],R=[m,"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"],M=[m,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],g=[m,"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=[m,"abstract,async,await,constructor,debugger,enum,eval,export,function,get,implements,instanceof,interface,let,null,set,undefined,var,with,yield,Infinity,NaN"],d="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",o=[k,"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=[k,"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=[k,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],S=[R,g,M,p,d,o,u,h],b=/^(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",P="kwd",E="com",f="typ",c="lit",s="pun",i="pln",C="tag",_="dec",O="src",N="atn",U="atv",H="nocode",G="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function L(ee){for(var V=0,Q=!1,he=!1,_e=0,Fe=ee.length;_e122||(ue<65||Te>90||Ct.push([Math.max(65,Te)|32,Math.min(ue,90)|32]),ue<97||Te>122||Ct.push([Math.max(97,Te)&~32,Math.min(ue,122)&~32]))}}Ct.sort(function(nt,We){return nt[0]-We[0]||We[1]-nt[1]});for(var pe=[],me=[],xt=0;xtxe[0]&&(xe[1]+1>xe[0]&&st.push("-"),st.push(It(xe[1])))}return st.push("]"),st.join("")}function tn(tt){for(var Ke=tt.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")),Ct=Ke.length,Dt=[],st=0,xt=0;st=2&&Te==="["?Ke[st]=Bt(je):Te!=="\\"&&(Ke[st]=je.replace(/[a-zA-Z]/g,function(me){var xe=me.charCodeAt(0);return"["+String.fromCharCode(xe&~32,xe|32)+"]"}))}return Ke.join("")}for(var hn=[],_e=0,Fe=ee.length;_e=0;)Q[hn.charAt(tt)]=tn;var Ke=tn[1],Ct=""+Ke;Ht.hasOwnProperty(Ct)||(Rt.push(Ke),Ht[Ct]=null)}Rt.push(/[\0-\uffff]/),he=L(Rt)})();var _e=V.length,Fe=function(He){for(var Rt=He.sourceCode,Ht=He.basePos,It=He.sourceNode,Bt=[Ht,i],tn=0,hn=Rt.match(he)||[],tt={},Ke=0,Ct=hn.length;Ke=5&&st.substring(0,5)==="lang-",je&&!(xt&&typeof xt[1]=="string")&&(je=!1,st=O),je||(tt[Dt]=st)}var ue=tn;if(tn+=Dt.length,!je)Bt.push(Ht+ue,st);else{var pe=xt[1],me=Dt.indexOf(pe),xe=me+pe.length;xt[2]&&(xe=Dt.length-xt[2].length,me=xe-pe.length);var nt=st.substring(5);Z(It,Ht+ue,Dt.substring(0,me),Fe,Bt),Z(It,Ht+ue+me,pe,fe(nt,pe),Bt),Z(It,Ht+ue+xe,Dt.substring(xe),Fe,Bt)}}He.decorations=Bt};return Fe}function Je(ee){var V=[],Q=[];ee.tripleQuotedStrings?V.push([v,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ee.multiLineStrings?V.push([v,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):V.push([v,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ee.verbatimStrings&&Q.push([v,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var he=ee.hashComments;he&&(ee.cStyleComments?(he>1?V.push([E,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):V.push([E,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Q.push([v,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):V.push([E,/^#[^\r\n]*/,null,"#"])),ee.cStyleComments&&(Q.push([E,/^\/\/[^\r\n]*/,null]),Q.push([E,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var _e=ee.regexLiterals;if(_e){var Fe=_e>1?"":` +\r`,He=Fe?".":"[\\S\\s]",Rt="/(?=[^/*"+Fe+"])(?:[^/\\x5B\\x5C"+Fe+"]|\\x5C"+He+"|\\x5B(?:[^\\x5C\\x5D"+Fe+"]|\\x5C"+He+")*(?:\\x5D|$))+/";Q.push(["lang-regex",RegExp("^"+G+"("+Rt+")")])}var Ht=ee.types;Ht&&Q.push([f,Ht]);var It=(""+ee.keywords).replace(/^ | $/g,"");It.length&&Q.push([P,new RegExp("^(?:"+It.replace(/[\s,]+/g,"|")+")\\b"),null]),V.push([i,/^\s+/,null,` \r + \xA0`]);var Bt="^.[^\\s\\w.$@'\"`/\\\\]*";return ee.regexLiterals&&(Bt+="(?!s*/)"),Q.push([c,/^@[a-z_$][a-z_$@0-9]*/i,null],[f,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[i,/^[a-z_$][a-z_$@0-9]*/i,null],[c,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[i,/^\\[\s\S]?/,null],[s,new RegExp(Bt),null]),be(V,Q)}var Ae=Je({keywords:S,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function ke(ee,V,Q){for(var he=/(?:^|\s)nocode(?:\s|$)/,_e=/\r\n?|\n/,Fe=ee.ownerDocument,He=Fe.createElement("li");ee.firstChild;)He.appendChild(ee.firstChild);var Rt=[He];function Ht(Ke){var Ct=Ke.nodeType;if(Ct==1&&!he.test(Ke.className))if(Ke.nodeName==="br")It(Ke),Ke.parentNode&&Ke.parentNode.removeChild(Ke);else for(var Dt=Ke.firstChild;Dt;Dt=Dt.nextSibling)Ht(Dt);else if((Ct==3||Ct==4)&&Q){var st=Ke.nodeValue,xt=st.match(_e);if(xt){var je=st.substring(0,xt.index);Ke.nodeValue=je;var we=st.substring(xt.index+xt[0].length);if(we){var Te=Ke.parentNode;Te.insertBefore(Fe.createTextNode(we),Ke.nextSibling)}It(Ke),je||Ke.parentNode.removeChild(Ke)}}}function It(Ke){for(;!Ke.nextSibling;)if(Ke=Ke.parentNode,!Ke)return;function Ct(xt,je){var we=je?xt.cloneNode(!1):xt,Te=xt.parentNode;if(Te){var ue=Ct(Te,1),pe=xt.nextSibling;ue.appendChild(we);for(var me=pe;me;me=pe)pe=me.nextSibling,ue.appendChild(me)}return we}for(var Dt=Ct(Ke.nextSibling,0),st;(st=Dt.parentNode)&&st.nodeType===1;)Dt=st;Rt.push(Dt)}for(var Bt=0;Bt=Te&&(Ht+=2),Fe>=ue&&(tn+=2)}}finally{st&&(st.style.display=xt)}}var Xe={};function Pe(ee,V){for(var Q=V.length;--Q>=0;){var he=V[Q];Xe.hasOwnProperty(he)?x.console&&console.warn("cannot override language handler %s",he):Xe[he]=ee}}function fe(ee,V){return ee&&Xe.hasOwnProperty(ee)||(ee=/^\s*]*(?:>|$)/],[E,/^<\!--[\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"]),Pe(be([[i,/^[\s]+/,null,` \r +`],[U,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[C,/^^<\/?[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"]),Pe(be([],[[U,/^[\s\S]+/]]),["uq.val"]),Pe(Je({keywords:R,hashComments:!0,cStyleComments:!0,types:b}),["c","cc","cpp","cxx","cyc","m"]),Pe(Je({keywords:"null,true,false"}),["json"]),Pe(Je({keywords:g,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:b}),["cs"]),Pe(Je({keywords:M,cStyleComments:!0}),["java"]),Pe(Je({keywords:h,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Pe(Je({keywords:o,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Pe(Je({keywords:d,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Pe(Je({keywords:u,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Pe(Je({keywords:p,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Pe(Je({keywords:n,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Pe(be([],[[v,/^[\s\S]+/]]),["regex"]);function le(ee){var V=ee.langExtension;try{var Q=W(ee.sourceNode,ee.pre),he=Q.sourceCode;ee.sourceCode=he,ee.spans=Q.spans,ee.basePos=0,fe(V,he)(ee),Ze(ee)}catch(_e){x.console&&console.log(_e&&_e.stack||_e)}}function Se(ee,V,Q){var he=Q||!1,_e=V||null,Fe=document.createElement("div");Fe.innerHTML="
      "+ee+"
      ",Fe=Fe.firstChild,he&&ke(Fe,he,!0);var He={langExtension:_e,numberLines:he,sourceNode:Fe,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return le(He),Fe.innerHTML}function ve(ee,V){var Q=V||document.body,he=Q.ownerDocument||document;function _e(we){return Q.getElementsByTagName(we)}for(var Fe=[_e("pre"),_e("code"),_e("xmp")],He=[],Rt=0;Rt=15&&(R=!1,k=!0);var v=u&&(D||R&&(b==null||b<12.11)),P=I||B&&x>=9;function E(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var f=function(e,t){var a=e.className,r=E(t).exec(a);if(r){var l=a.slice(r.index+r[0].length);e.className=a.slice(0,r.index)+(l?r[1]+l:"")}};function c(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function s(e,t){return c(e).appendChild(t)}function i(e,t,a,r){var l=document.createElement(e);if(a&&(l.className=a),r&&(l.style.cssText=r),typeof t=="string")l.appendChild(document.createTextNode(t));else if(t)for(var j=0;j=t)return Y+(t-j);Y+=ne-j,Y+=a-Y%a,j=ne+1}}var oe=function(){this.id=null,this.f=null,this.time=0,this.handler=L(this.onTimeout,this)};oe.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},oe.prototype.set=function(e,t){this.f=t;var a=+new Date+e;(!this.id||a=t)return r+Math.min(Y,t-l);if(l+=j-r,l+=a-l%a,r=j+1,l>=t)return r}}var Pe=[""];function fe(e){for(;Pe.length<=e;)Pe.push(le(Pe)+" ");return Pe[e]}function le(e){return e[e.length-1]}function Se(e,t){for(var a=[],r=0;r"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function Q(e,t){return t?t.source.indexOf("\\w")>-1&&V(e)?!0:t.test(e):V(e)}function he(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var _e=/[\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 Fe(e){return e.charCodeAt(0)>=768&&_e.test(e)}function He(e,t,a){for(;(a<0?t>0:ta?-1:1;;){if(t==a)return t;var l=(t+a)/2,j=r<0?Math.ceil(l):Math.floor(l);if(j==t)return e(j)?t:a;e(j)?a=j:t=j+r}}function Ht(e,t,a,r){if(!e)return r(t,a,"ltr",0);for(var l=!1,j=0;jt||t==a&&Y.to==t)&&(r(Math.max(Y.from,t),Math.min(Y.to,a),Y.level==1?"rtl":"ltr",j),l=!0)}l||r(t,a,"ltr")}var It=null;function Bt(e,t,a){var r;It=null;for(var l=0;lt)return l;j.to==t&&(j.from!=j.to&&a=="before"?r=l:It=l),j.from==t&&(j.from!=j.to&&a!="before"?r=l:It=l)}return r!=null?r:It}var tn=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(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 r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,l=/[stwN]/,j=/[LRr]/,Y=/[Lb1n]/,ne=/[1n]/;function ae(ce,Ne,Qe){this.level=ce,this.from=Ne,this.to=Qe}return function(ce,Ne){var Qe=Ne=="ltr"?"L":"R";if(ce.length==0||Ne=="ltr"&&!r.test(ce))return!1;for(var pt=ce.length,dt=[],Ft=0;Ft-1&&(r[t]=l.slice(0,j).concat(l.slice(j+1)))}}}function st(e,t){var a=Ct(e,t);if(!a.length)return;for(var r=Array.prototype.slice.call(arguments,2),l=0;l0}function Te(e){e.prototype.on=function(t,a){Ke(this,t,a)},e.prototype.off=function(t,a){Dt(this,t,a)}}function ue(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function pe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function me(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function xe(e){ue(e),pe(e)}function nt(e){return e.target||e.srcElement}function We(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),u&&e.ctrlKey&&t==1&&(t=3),t}var St=function(){if(B&&x<9)return!1;var e=i("div");return"draggable"in e||"dragDrop"in e}(),en;function vn(e){if(en==null){var t=i("span","\u200B");s(e,i("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(en=t.offsetWidth<=1&&t.offsetHeight>2&&!(B&&x<8))}var a=en?i("span","\u200B"):i("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var Zt;function Vt(e){if(Zt!=null)return Zt;var t=s(e,document.createTextNode("A\u062EA")),a=_(t,0,1).getBoundingClientRect(),r=_(t,1,2).getBoundingClientRect();return c(e),!a||a.left==a.right?!1:Zt=r.right-a.right<3}var Et=` b`.split(/\n/).length!=3?function(e){for(var t=0,a=[],r=e.length;t<=r;){var l=e.indexOf(` -`,t);l==-1&&(l=e.length);var j=e.slice(t,e.charAt(l-1)=="\r"?l-1:l),Y=j.indexOf("\r");Y!=-1?(a.push(j.slice(0,Y)),t+=Y+1):(a.push(j),t=l+1)}return a}:function(e){return e.split(/\r\n?|\n/)},_t=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(a){}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},ct=function(){var e=i("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),ge=null;function Me(e){if(ge!=null)return ge;var t=s(e,i("span","x")),a=t.getBoundingClientRect(),r=_(t,0,1).getBoundingClientRect();return ge=Math.abs(a.left-r.left)>1}var wt={},ft={};function qt(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),wt[e]=t}function on(e,t){ft[e]=t}function ot(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=it(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ot("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ot("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Wt(e,t){t=ot(t);var a=wt[t.name];if(!a)return Wt(e,"text/plain");var r=a(e,t);if(dn.hasOwnProperty(t.name)){var l=dn[t.name];for(var j in l){if(!l.hasOwnProperty(j))continue;r.hasOwnProperty(j)&&(r["_"+j]=r[j]),r[j]=l[j]}}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var Y in t.modeProps)r[Y]=t.modeProps[Y];return r}var dn={};function Bn(e,t){var a=dn.hasOwnProperty(e)?dn[e]:dn[e]={};W(t,a)}function kn(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var a={};for(var r in t){var l=t[r];l instanceof Array&&(l=l.concat([])),a[r]=l}return a}function Cr(e,t){for(var a;e.innerMode&&!(a=e.innerMode(t),!a||a.mode==e);)t=a.state,e=a.mode;return a||{mode:e,state:t}}function Ar(e,t,a){return e.startState?e.startState(t,a):!0}var hr=function(e,t,a){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};hr.prototype.eol=function(){return this.pos>=this.string.length},hr.prototype.sol=function(){return this.pos==this.lineStart},hr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},hr.prototype.next=function(){if(this.post},hr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},hr.prototype.skipToEnd=function(){this.pos=this.string.length},hr.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},hr.prototype.backUp=function(e){this.pos-=e},hr.prototype.column=function(){return this.lastColumnPos0?null:(j&&t!==!1&&(this.pos+=j[0].length),j)}},hr.prototype.current=function(){return this.string.slice(this.start,this.pos)},hr.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},hr.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},hr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function On(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 a=e;!a.lines;)for(var r=0;;++r){var l=a.children[r],j=l.chunkSize();if(t=e.first&&ta?Qt(a,On(e,a).text.length):A(t,On(e,t.line).text.length)}function A(e,t){var a=e.ch;return a==null||a>t?Qt(e.line,t):a<0?Qt(e.line,0):e}function X(e,t){for(var a=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},$.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}},$.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},$.fromSaved=function(e,t,a){return t instanceof te?new $(e,kn(e.mode,t.state),a,t.lookAhead):new $(e,kn(e.mode,t),a)},$.prototype.save=function(e){var t=e!==!1?kn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new te(t,this.maxLookAhead):t};function ze(e,t,a,r){var l=[e.state.modeGen],j={};tr(e,t.text,e.doc.mode,a,function(ce,Ne){return l.push(ce,Ne)},j,r);for(var Y=a.state,ne=function(ce){a.baseTokens=l;var Ne=e.state.overlays[ce],Qe=1,pt=0;a.state=!0,tr(e,t.text,Ne.mode,a,function(dt,Ft){for(var ln=Qe;ptdt&&l.splice(Qe,1,dt,l[Qe+1],xn),Qe+=2,pt=Math.min(dt,xn)}if(!Ft)return;if(Ne.opaque)l.splice(ln,Qe-ln,dt,"overlay "+Ft),Qe=ln+2;else for(;lne.options.maxHighlightLength&&kn(e.doc.mode,r.state),j=ze(e,t,r);l&&(r.state=l),t.stateAfter=r.save(!l),t.styles=j.styles,j.classes?t.styleClasses=j.classes:t.styleClasses&&(t.styleClasses=null),a===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function pn(e,t,a){var r=e.doc,l=e.display;if(!r.mode.startState)return new $(r,!0,t);var j=Wn(e,t,a),Y=j>r.first&&On(r,j-1).stateAfter,ne=Y?$.fromSaved(r,Y,j):new $(r,Ar(r.mode),j);return r.iter(j,t,function(ae){Nn(e,ae.text,ne);var ce=ne.line;ae.stateAfter=ce==t-1||ce%5==0||ce>=l.viewFrom&&cet.start)return j}throw new Error("Mode "+e.name+" failed to advance stream.")}var At=function(e,t,a){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=a};function Yt(e,t,a,r){var l=e.doc,j=l.mode,Y;t=y(l,t);var ne=On(l,t.line),ae=pn(e,t.line,a),ce=new hr(ne.text,e.options.tabSize,ae),Ne;for(r&&(Ne=[]);(r||ce.pose.options.maxHighlightLength?(ne=!1,Y&&Nn(e,t,r,Ne.pos),Ne.pos=t.length,Qe=null):Qe=bn(rn(a,Ne,r.state,pt),j),pt){var dt=pt[0].name;dt&&(Qe="m-"+(Qe?dt+" "+Qe:dt))}if(!ne||ce!=Qe){for(;aeY;--ne){if(ne<=j.first)return j.first;var ae=On(j,ne-1),ce=ae.stateAfter;if(ce&&(!a||ne+(ce instanceof te?ce.lookAhead:0)<=j.modeFrontier))return ne;var Ne=Z(ae.text,null,e.options.tabSize);(l==null||r>Ne)&&(l=ne-1,r=Ne)}return l}function Jn(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontiera;r--){var l=On(e,r).stateAfter;if(l&&(!(l instanceof te)||r+l.lookAhead=t:j.to>t);(r||(r=[])).push(new mn(Y,j.from,ae?null:j.to))}}return r}function xr(e,t,a){var r;if(e)for(var l=0;l=t:j.to>t);if(ne||j.from==t&&Y.type=="bookmark"&&(!a||j.marker.insertLeft)){var ae=j.from==null||(Y.inclusiveLeft?j.from<=t:j.from0&&ne)for(var Xn=0;Xn0)continue;var Ne=[ae,1],Qe=qn(ce.from,ne.from),pt=qn(ce.to,ne.to);(Qe<0||!Y.inclusiveLeft&&!Qe)&&Ne.push({from:ce.from,to:ne.from}),(pt>0||!Y.inclusiveRight&&!pt)&&Ne.push({from:ne.to,to:ce.to}),l.splice.apply(l,Ne),ae+=Ne.length-3}return l}function Ve(e){var t=e.markedSpans;if(!t)return;for(var a=0;at)&&(!r||ht(r,j.marker)<0)&&(r=j.marker)}return r}function bt(e,t,a,r,l){var j=On(e,t),Y=zn&&j.markedSpans;if(Y)for(var ne=0;ne=0&&Qe<=0||Ne<=0&&Qe>=0)continue;if(Ne<=0&&(ae.marker.inclusiveRight&&l.inclusiveLeft?qn(ce.to,a)>=0:qn(ce.to,a)>0)||Ne>=0&&(ae.marker.inclusiveRight&&l.inclusiveLeft?qn(ce.from,r)<=0:qn(ce.from,r)<0))return!0}}function ut(e){for(var t;t=gt(e);)e=t.find(-1,!0).line;return e}function kt(e){for(var t;t=yt(e);)e=t.find(1,!0).line;return e}function Mt(e){for(var t,a;t=yt(e);)e=t.find(1,!0).line,(a||(a=[])).push(e);return a}function Le(e,t){var a=On(e,t),r=ut(a);return a==r?t:fr(r)}function mt(e,t){if(t>e.lastLine())return t;var a=On(e,t),r;if(!Pt(e,a))return t;for(;r=yt(a);)a=r.find(1,!0).line;return fr(a)+1}function Pt(e,t){var a=zn&&t.markedSpans;if(a)for(var r=void 0,l=0;lt.maxLineLength&&(t.maxLineLength=l,t.maxLine=r)})}var un=function(e,t,a){this.text=e,Be(this,t),this.height=a?a(this):1};un.prototype.lineNo=function(){return fr(this)},Te(un);function Mn(e,t,a,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Ve(e),Be(e,a);var l=r?r(e):1;l!=e.height&&Pr(e,l)}function Rn(e){e.parent=null,Ve(e)}var vt={},Xt={};function Tt(e,t){if(!e||/^\s*$/.test(e))return null;var a=t.addModeClass?Xt:vt;return a[e]||(a[e]=e.replace(/\S+/g,"cm-$&"))}function Tn(e,t){var a=C("span",null,null,k?"padding-right: .1px":null),r={pre:C("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var l=0;l<=(t.rest?t.rest.length:0);l++){var j=l?t.rest[l-1]:t.line,Y=void 0;r.pos=0,r.addToken=En,Vt(e.display.measure)&&(Y=fn(j,e.doc.direction))&&(r.addToken=Yn(r.addToken,Y)),r.map=[];var ne=t!=e.display.externalMeasured&&fr(j);yn(j,r,Ut(e,j,ne)),j.styleClasses&&(j.styleClasses.bgClass&&(r.bgClass=H(j.styleClasses.bgClass,r.bgClass||"")),j.styleClasses.textClass&&(r.textClass=H(j.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(vn(e.display.measure))),l==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(k){var ae=r.content.lastChild;(/\bcm-tab\b/.test(ae.className)||ae.querySelector&&ae.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return st(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=H(r.pre.className,r.textClass||"")),r}function zt(e){var t=i("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function En(e,t,a,r,l,j,Y){if(!t)return;var ne=e.splitSpaces?wn(t,e.trailingSpace):t,ae=e.cm.state.specialChars,ce=!1,Ne;if(!ae.test(t))e.col+=t.length,Ne=document.createTextNode(ne),e.map.push(e.pos,e.pos+t.length,Ne),B&&x<9&&(ce=!0),e.pos+=t.length;else{Ne=document.createDocumentFragment();for(var Qe=0;;){ae.lastIndex=Qe;var pt=ae.exec(t),dt=pt?pt.index-Qe:t.length-Qe;if(dt){var Ft=document.createTextNode(ne.slice(Qe,Qe+dt));B&&x<9?Ne.appendChild(i("span",[Ft])):Ne.appendChild(Ft),e.map.push(e.pos,e.pos+dt,Ft),e.col+=dt,e.pos+=dt}if(!pt)break;Qe+=dt+1;var ln=void 0;if(pt[0]==" "){var xn=e.cm.options.tabSize,Dn=xn-e.col%xn;ln=Ne.appendChild(i("span",he(Dn),"cm-tab")),ln.setAttribute("role","presentation"),ln.setAttribute("cm-text"," "),e.col+=Dn}else pt[0]=="\r"||pt[0]==` -`?(ln=Ne.appendChild(i("span",pt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ln.setAttribute("cm-text",pt[0]),e.col+=1):(ln=e.cm.options.specialCharPlaceholder(pt[0]),ln.setAttribute("cm-text",pt[0]),B&&x<9?Ne.appendChild(i("span",[ln])):Ne.appendChild(ln),e.col+=1);e.map.push(e.pos,e.pos+1,ln),e.pos++}}if(e.trailingSpace=ne.charCodeAt(t.length-1)==32,a||r||l||ce||j||Y){var Kn=a||"";r&&(Kn+=r),l&&(Kn+=l);var An=i("span",[Ne],Kn,j);if(Y)for(var Xn in Y)Y.hasOwnProperty(Xn)&&Xn!="style"&&Xn!="class"&&An.setAttribute(Xn,Y[Xn]);return e.content.appendChild(An)}e.content.appendChild(Ne)}function wn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var a=t,r="",l=0;lce&&Qe.from<=ce);pt++);if(Qe.to>=Ne)return e(a,r,l,j,Y,ne,ae);e(a,r.slice(0,Qe.to-ce),l,j,null,ne,ae),j=null,r=r.slice(Qe.to-ce),ce=Qe.to}}}function Ln(e,t,a,r){var l=!r&&a.widgetNode;l&&e.map.push(e.pos,e.pos+t,l),!r&&e.cm.display.input.needsContentAttribute&&(l||(l=e.content.appendChild(document.createElement("span"))),l.setAttribute("cm-marker",a.id)),l&&(e.cm.display.input.setUneditable(l),e.content.appendChild(l)),e.pos+=t,e.trailingSpace=!1}function yn(e,t,a){var r=e.markedSpans,l=e.text,j=0;if(!r){for(var Y=1;Yae||Dr.collapsed&&cr.to==ae&&cr.from==ae)){if(cr.to!=null&&cr.to!=ae&&dt>cr.to&&(dt=cr.to,ln=""),Dr.className&&(Ft+=" "+Dr.className),Dr.css&&(pt=(pt?pt+";":"")+Dr.css),Dr.startStyle&&cr.from==ae&&(xn+=" "+Dr.startStyle),Dr.endStyle&&cr.to==dt&&(Xn||(Xn=[])).push(Dr.endStyle,cr.to),Dr.title&&((Kn||(Kn={})).title=Dr.title),Dr.attributes)for(var ia in Dr.attributes)(Kn||(Kn={}))[ia]=Dr.attributes[ia];Dr.collapsed&&(!Dn||ht(Dn.marker,Dr)<0)&&(Dn=cr)}else cr.from>ae&&dt>cr.from&&(dt=cr.from)}if(Xn)for(var Fa=0;Fa=ne)break;for(var oi=Math.min(ne,dt);;){if(Ne){var ni=ae+Ne.length;if(!Dn){var Aa=ni>oi?Ne.slice(0,oi-ae):Ne;t.addToken(t,Aa,Qe?Qe+Ft:Ft,xn,ae+Aa.length==dt?ln:"",pt,Kn)}if(ni>=oi){Ne=Ne.slice(oi-ae),ae=oi;break}ae=ni,xn=""}Ne=l.slice(j,j=a[ce++]),Qe=Tt(a[ce++],t.cm.options)}}}function sr(e,t,a){this.line=t,this.rest=Mt(t),this.size=this.rest?fr(le(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Pt(e,t)}function Fn(e,t,a){for(var r=[],l,j=t;j2&&j.push((ae.bottom+ce.top)/2-a.top)}}j.push(a.bottom-a.top)}}function de(e,t,a){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;ra)return{map:e.measure.maps[l],cache:e.measure.caches[l],before:!0}}function Re(e,t){t=ut(t);var a=fr(t),r=e.display.externalMeasured=new sr(e.doc,t,a);r.lineN=a;var l=r.built=Tn(e,r);return r.text=l.pre,s(e.display.lineMeasure,l.pre),r}function Ie(e,t,a,r){return lt(e,Ue(e,t),a,r)}function at(e,t){if(t>=e.display.viewFrom&&t=a.lineN&&tt)&&(j=ae-ne,l=j-1,t>=ae&&(Y="right")),l!=null){if(r=e[ce+2],ne==ae&&a==(r.insertLeft?"left":"right")&&(Y=a),a=="left"&&l==0)for(;ce&&e[ce-2]==e[ce-3]&&e[ce-1].insertLeft;)r=e[(ce-=3)+2],Y="left";if(a=="right"&&l==ae-ne)for(;ce=0&&!((a=e[l]).left!=a.right);l--);return a}function hn(e,t,a,r){var l=jt(t.map,a,r),j=l.node,Y=l.start,ne=l.end,ae=l.collapse,ce;if(j.nodeType==3){for(var Ne=0;Ne<4;Ne++){for(;Y&&Fe(t.line.text.charAt(l.coverStart+Y));)--Y;for(;l.coverStart+ne0&&(ae=r="right");var Qe;e.options.lineWrapping&&(Qe=j.getClientRects()).length>1?ce=Qe[r=="right"?Qe.length-1:0]:ce=j.getBoundingClientRect()}if(B&&x<9&&!Y&&(!ce||!ce.left&&!ce.right)){var pt=j.parentNode.getClientRects()[0];pt?ce={left:pt.left,right:pt.left+kr(e.display),top:pt.top,bottom:pt.bottom}:ce=Ot}for(var dt=ce.top-t.rect.top,Ft=ce.bottom-t.rect.top,ln=(dt+Ft)/2,xn=t.view.measure.heights,Dn=0;Dn=r.text.length?(ae=r.text.length,ce="before"):ae<=0&&(ae=0,ce="after"),!ne)return Y(ce=="before"?ae-1:ae,ce=="before");function Ne(Ft,ln,xn){var Dn=ne[ln],Kn=Dn.level==1;return Y(xn?Ft-1:Ft,Kn!=xn)}var Qe=Bt(ne,ae,ce),pt=It,dt=Ne(ae,Qe,ce=="before");return pt!=null&&(dt.other=Ne(ae,pt,ce!="before")),dt}function nn(e,t){var a=0;t=y(e.doc,t),e.options.lineWrapping||(a=kr(e.display)*t.ch);var r=On(e.doc,t.line),l=Nt(r)+sa(e.display);return{left:a,right:a,top:l,bottom:l+r.height}}function _n(e,t,a,r,l){var j=Qt(e,t,a);return j.xRel=l,r&&(j.outside=r),j}function sn(e,t,a){var r=e.doc;if(a+=e.display.viewOffset,a<0)return _n(r.first,0,null,-1,-1);var l=Br(r,a),j=r.first+r.size-1;if(l>j)return _n(r.first+r.size-1,On(r,j).text.length,null,1,1);t<0&&(t=0);for(var Y=On(r,l);;){var ne=jn(e,Y,l,t,a),ae=Lt(Y,ne.ch+(ne.xRel>0||ne.outside>0?1:0));if(!ae)return ne;var ce=ae.find(1);if(ce.line==l)return ce;Y=On(r,l=ce.line)}}function cn(e,t,a,r){r-=mr(t);var l=t.text.length,j=Rt(function(Y){return lt(e,a,Y-1).bottom<=r},l,0);return l=Rt(function(Y){return lt(e,a,Y).top>r},j,l),{begin:j,end:l}}function $t(e,t,a,r){a||(a=Ue(e,t));var l=Er(e,t,lt(e,a,r),"line").top;return cn(e,t,a,l)}function Qn(e,t,a,r){return e.bottom<=a?!1:e.top>a?!0:(r?e.left:e.right)>t}function jn(e,t,a,r,l){l-=Nt(t);var j=Ue(e,t),Y=mr(t),ne=0,ae=t.text.length,ce=!0,Ne=fn(t,e.doc.direction);if(Ne){var Qe=(e.options.lineWrapping?Nr:yr)(e,t,a,j,Ne,r,l);ce=Qe.level!=1,ne=ce?Qe.from:Qe.to-1,ae=ce?Qe.to:Qe.from-1}var pt=null,dt=null,Ft=Rt(function(vr){var cr=lt(e,j,vr);return cr.top+=Y,cr.bottom+=Y,Qn(cr,r,l,!1)?(cr.top<=l&&cr.left<=r&&(pt=vr,dt=cr),!0):!1},ne,ae),ln,xn,Dn=!1;if(dt){var Kn=r-dt.left=Xn.bottom?1:0}return Ft=He(t.text,Ft,1),_n(a,Ft,xn,Dn,r-ln)}function yr(e,t,a,r,l,j,Y){var ne=Rt(function(Qe){var pt=l[Qe],dt=pt.level!=1;return Qn($n(e,Qt(a,dt?pt.to:pt.from,dt?"before":"after"),"line",t,r),j,Y,!0)},0,l.length-1),ae=l[ne];if(ne>0){var ce=ae.level!=1,Ne=$n(e,Qt(a,ce?ae.from:ae.to,ce?"after":"before"),"line",t,r);Qn(Ne,j,Y,!0)&&Ne.top>Y&&(ae=l[ne-1])}return ae}function Nr(e,t,a,r,l,j,Y){var ne=cn(e,t,r,Y),ae=ne.begin,ce=ne.end;/\s/.test(t.text.charAt(ce-1))&&ce--;for(var Ne=null,Qe=null,pt=0;pt=ce||dt.to<=ae)continue;var Ft=dt.level!=1,ln=lt(e,r,Ft?Math.min(ce,dt.to)-1:Math.max(ae,dt.from)).right,xn=lnxn)&&(Ne=dt,Qe=xn)}return Ne||(Ne=l[l.length-1]),Ne.fromce&&(Ne={from:Ne.from,to:ce,level:Ne.level}),Ne}var Lr;function Or(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Lr==null){Lr=i("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Lr.appendChild(document.createTextNode("x")),Lr.appendChild(i("br"));Lr.appendChild(document.createTextNode("x"))}s(e.measure,Lr);var a=Lr.offsetHeight/50;return a>3&&(e.cachedTextHeight=a),c(e.measure),a||1}function kr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=i("span","xxxxxxxxxx"),a=i("pre",[t],"CodeMirror-line-like");s(e.measure,a);var r=t.getBoundingClientRect(),l=(r.right-r.left)/10;return l>2&&(e.cachedCharWidth=l),l||10}function ur(e){for(var t=e.display,a={},r={},l=t.gutters.clientLeft,j=t.gutters.firstChild,Y=0;j;j=j.nextSibling,++Y){var ne=e.display.gutterSpecs[Y].className;a[ne]=j.offsetLeft+j.clientLeft+l,r[ne]=j.clientWidth}return{fixedPos:ua(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:a,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ua(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ja(e){var t=Or(e.display),a=e.options.lineWrapping,r=a&&Math.max(5,e.display.scroller.clientWidth/kr(e.display)-3);return function(l){if(Pt(e.doc,l))return 0;var j=0;if(l.widgets)for(var Y=0;Y0&&(ce=On(e.doc,ae.line).text).length==ae.ch){var Ne=Z(ce,ce.length,e.options.tabSize)-ce.length;ae=Qt(ae.line,Math.max(0,Math.round((j-Ye(e.display).left)/kr(e.display))-Ne))}return ae}function Qr(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var a=e.display.view,r=0;rt)&&(l.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=l.viewTo)zn&&Le(e.doc,t)l.viewFrom?Jr(e):(l.viewFrom+=r,l.viewTo+=r);else if(t<=l.viewFrom&&a>=l.viewTo)Jr(e);else if(t<=l.viewFrom){var j=ja(e,a,a+r,1);j?(l.view=l.view.slice(j.index),l.viewFrom=j.lineN,l.viewTo+=r):Jr(e)}else if(a>=l.viewTo){var Y=ja(e,t,t,-1);Y?(l.view=l.view.slice(0,Y.index),l.viewTo=Y.lineN):Jr(e)}else{var ne=ja(e,t,t,-1),ae=ja(e,a,a+r,1);ne&&ae?(l.view=l.view.slice(0,ne.index).concat(Fn(e,ne.lineN,ae.lineN)).concat(l.view.slice(ae.index)),l.viewTo+=r):Jr(e)}var ce=l.externalMeasured;ce&&(a=l.lineN&&t=r.viewTo)return;var j=r.view[Qr(e,t)];if(j.node==null)return;var Y=j.changes||(j.changes=[]);ie(Y,a)==-1&&Y.push(a)}function Jr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ja(e,t,a,r){var l=Qr(e,t),j,Y=e.display.view;if(!zn||a==e.doc.first+e.doc.size)return{index:l,lineN:a};for(var ne=e.display.viewFrom,ae=0;ae0){if(l==Y.length-1)return null;j=ne+Y[l].size-t,l++}else j=ne-t;t+=j,a+=j}for(;Le(e.doc,a)!=a;){if(l==(r<0?0:Y.length-1))return null;a+=r*Y[l-(r<0?1:0)].size,l+=r}return{index:l,lineN:a}}function fi(e,t,a){var r=e.display,l=r.view;l.length==0||t>=r.viewTo||a<=r.viewFrom?(r.view=Fn(e,t,a),r.viewFrom=t):(r.viewFrom>t?r.view=Fn(e,t,r.viewFrom).concat(r.view):r.viewFroma&&(r.view=r.view.slice(0,Qr(e,a)))),r.viewTo=a}function si(e){for(var t=e.display.view,a=0,r=0;r=e.display.viewTo||ne.to().line1}var wt={},ht={};function qt(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),wt[e]=t}function on(e,t){ht[e]=t}function ot(e){if(typeof e=="string"&&ht.hasOwnProperty(e))e=ht[e];else if(e&&typeof e.name=="string"&&ht.hasOwnProperty(e.name)){var t=ht[e.name];typeof t=="string"&&(t={name:t}),e=it(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ot("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ot("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Wt(e,t){t=ot(t);var a=wt[t.name];if(!a)return Wt(e,"text/plain");var r=a(e,t);if(dn.hasOwnProperty(t.name)){var l=dn[t.name];for(var j in l){if(!l.hasOwnProperty(j))continue;r.hasOwnProperty(j)&&(r["_"+j]=r[j]),r[j]=l[j]}}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var Y in t.modeProps)r[Y]=t.modeProps[Y];return r}var dn={};function Bn(e,t){var a=dn.hasOwnProperty(e)?dn[e]:dn[e]={};W(t,a)}function kn(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var a={};for(var r in t){var l=t[r];l instanceof Array&&(l=l.concat([])),a[r]=l}return a}function Cr(e,t){for(var a;e.innerMode&&!(a=e.innerMode(t),!a||a.mode==e);)t=a.state,e=a.mode;return a||{mode:e,state:t}}function Ar(e,t,a){return e.startState?e.startState(t,a):!0}var fr=function(e,t,a){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};fr.prototype.eol=function(){return this.pos>=this.string.length},fr.prototype.sol=function(){return this.pos==this.lineStart},fr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},fr.prototype.next=function(){if(this.post},fr.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},fr.prototype.skipToEnd=function(){this.pos=this.string.length},fr.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},fr.prototype.backUp=function(e){this.pos-=e},fr.prototype.column=function(){return this.lastColumnPos0?null:(j&&t!==!1&&(this.pos+=j[0].length),j)}},fr.prototype.current=function(){return this.string.slice(this.start,this.pos)},fr.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},fr.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},fr.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function On(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 a=e;!a.lines;)for(var r=0;;++r){var l=a.children[r],j=l.chunkSize();if(t=e.first&&ta?Qt(a,On(e,a).text.length):A(t,On(e,t.line).text.length)}function A(e,t){var a=e.ch;return a==null||a>t?Qt(e.line,t):a<0?Qt(e.line,0):e}function X(e,t){for(var a=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},$.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}},$.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},$.fromSaved=function(e,t,a){return t instanceof te?new $(e,kn(e.mode,t.state),a,t.lookAhead):new $(e,kn(e.mode,t),a)},$.prototype.save=function(e){var t=e!==!1?kn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new te(t,this.maxLookAhead):t};function ze(e,t,a,r){var l=[e.state.modeGen],j={};tr(e,t.text,e.doc.mode,a,function(ce,Ne){return l.push(ce,Ne)},j,r);for(var Y=a.state,ne=function(ce){a.baseTokens=l;var Ne=e.state.overlays[ce],Qe=1,pt=0;a.state=!0,tr(e,t.text,Ne.mode,a,function(dt,Ft){for(var ln=Qe;ptdt&&l.splice(Qe,1,dt,l[Qe+1],xn),Qe+=2,pt=Math.min(dt,xn)}if(!Ft)return;if(Ne.opaque)l.splice(ln,Qe-ln,dt,"overlay "+Ft),Qe=ln+2;else for(;lne.options.maxHighlightLength&&kn(e.doc.mode,r.state),j=ze(e,t,r);l&&(r.state=l),t.stateAfter=r.save(!l),t.styles=j.styles,j.classes?t.styleClasses=j.classes:t.styleClasses&&(t.styleClasses=null),a===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function pn(e,t,a){var r=e.doc,l=e.display;if(!r.mode.startState)return new $(r,!0,t);var j=Wn(e,t,a),Y=j>r.first&&On(r,j-1).stateAfter,ne=Y?$.fromSaved(r,Y,j):new $(r,Ar(r.mode),j);return r.iter(j,t,function(ae){Nn(e,ae.text,ne);var ce=ne.line;ae.stateAfter=ce==t-1||ce%5==0||ce>=l.viewFrom&&cet.start)return j}throw new Error("Mode "+e.name+" failed to advance stream.")}var At=function(e,t,a){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=a};function Yt(e,t,a,r){var l=e.doc,j=l.mode,Y;t=y(l,t);var ne=On(l,t.line),ae=pn(e,t.line,a),ce=new fr(ne.text,e.options.tabSize,ae),Ne;for(r&&(Ne=[]);(r||ce.pose.options.maxHighlightLength?(ne=!1,Y&&Nn(e,t,r,Ne.pos),Ne.pos=t.length,Qe=null):Qe=bn(rn(a,Ne,r.state,pt),j),pt){var dt=pt[0].name;dt&&(Qe="m-"+(Qe?dt+" "+Qe:dt))}if(!ne||ce!=Qe){for(;aeY;--ne){if(ne<=j.first)return j.first;var ae=On(j,ne-1),ce=ae.stateAfter;if(ce&&(!a||ne+(ce instanceof te?ce.lookAhead:0)<=j.modeFrontier))return ne;var Ne=Z(ae.text,null,e.options.tabSize);(l==null||r>Ne)&&(l=ne-1,r=Ne)}return l}function Jn(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),e.highlightFrontiera;r--){var l=On(e,r).stateAfter;if(l&&(!(l instanceof te)||r+l.lookAhead=t:j.to>t);(r||(r=[])).push(new mn(Y,j.from,ae?null:j.to))}}return r}function xr(e,t,a){var r;if(e)for(var l=0;l=t:j.to>t);if(ne||j.from==t&&Y.type=="bookmark"&&(!a||j.marker.insertLeft)){var ae=j.from==null||(Y.inclusiveLeft?j.from<=t:j.from0&&ne)for(var Xn=0;Xn0)continue;var Ne=[ae,1],Qe=qn(ce.from,ne.from),pt=qn(ce.to,ne.to);(Qe<0||!Y.inclusiveLeft&&!Qe)&&Ne.push({from:ce.from,to:ne.from}),(pt>0||!Y.inclusiveRight&&!pt)&&Ne.push({from:ne.to,to:ce.to}),l.splice.apply(l,Ne),ae+=Ne.length-3}return l}function Ve(e){var t=e.markedSpans;if(!t)return;for(var a=0;at)&&(!r||ft(r,j.marker)<0)&&(r=j.marker)}return r}function bt(e,t,a,r,l){var j=On(e,t),Y=zn&&j.markedSpans;if(Y)for(var ne=0;ne=0&&Qe<=0||Ne<=0&&Qe>=0)continue;if(Ne<=0&&(ae.marker.inclusiveRight&&l.inclusiveLeft?qn(ce.to,a)>=0:qn(ce.to,a)>0)||Ne>=0&&(ae.marker.inclusiveRight&&l.inclusiveLeft?qn(ce.from,r)<=0:qn(ce.from,r)<0))return!0}}function ut(e){for(var t;t=gt(e);)e=t.find(-1,!0).line;return e}function kt(e){for(var t;t=yt(e);)e=t.find(1,!0).line;return e}function Mt(e){for(var t,a;t=yt(e);)e=t.find(1,!0).line,(a||(a=[])).push(e);return a}function Le(e,t){var a=On(e,t),r=ut(a);return a==r?t:hr(r)}function mt(e,t){if(t>e.lastLine())return t;var a=On(e,t),r;if(!Pt(e,a))return t;for(;r=yt(a);)a=r.find(1,!0).line;return hr(a)+1}function Pt(e,t){var a=zn&&t.markedSpans;if(a)for(var r=void 0,l=0;lt.maxLineLength&&(t.maxLineLength=l,t.maxLine=r)})}var un=function(e,t,a){this.text=e,Be(this,t),this.height=a?a(this):1};un.prototype.lineNo=function(){return hr(this)},Te(un);function Mn(e,t,a,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Ve(e),Be(e,a);var l=r?r(e):1;l!=e.height&&Pr(e,l)}function Rn(e){e.parent=null,Ve(e)}var vt={},Xt={};function Tt(e,t){if(!e||/^\s*$/.test(e))return null;var a=t.addModeClass?Xt:vt;return a[e]||(a[e]=e.replace(/\S+/g,"cm-$&"))}function Tn(e,t){var a=C("span",null,null,k?"padding-right: .1px":null),r={pre:C("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var l=0;l<=(t.rest?t.rest.length:0);l++){var j=l?t.rest[l-1]:t.line,Y=void 0;r.pos=0,r.addToken=En,Vt(e.display.measure)&&(Y=hn(j,e.doc.direction))&&(r.addToken=Yn(r.addToken,Y)),r.map=[];var ne=t!=e.display.externalMeasured&&hr(j);yn(j,r,Ut(e,j,ne)),j.styleClasses&&(j.styleClasses.bgClass&&(r.bgClass=H(j.styleClasses.bgClass,r.bgClass||"")),j.styleClasses.textClass&&(r.textClass=H(j.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(vn(e.display.measure))),l==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(k){var ae=r.content.lastChild;(/\bcm-tab\b/.test(ae.className)||ae.querySelector&&ae.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return st(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=H(r.pre.className,r.textClass||"")),r}function zt(e){var t=i("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function En(e,t,a,r,l,j,Y){if(!t)return;var ne=e.splitSpaces?wn(t,e.trailingSpace):t,ae=e.cm.state.specialChars,ce=!1,Ne;if(!ae.test(t))e.col+=t.length,Ne=document.createTextNode(ne),e.map.push(e.pos,e.pos+t.length,Ne),B&&x<9&&(ce=!0),e.pos+=t.length;else{Ne=document.createDocumentFragment();for(var Qe=0;;){ae.lastIndex=Qe;var pt=ae.exec(t),dt=pt?pt.index-Qe:t.length-Qe;if(dt){var Ft=document.createTextNode(ne.slice(Qe,Qe+dt));B&&x<9?Ne.appendChild(i("span",[Ft])):Ne.appendChild(Ft),e.map.push(e.pos,e.pos+dt,Ft),e.col+=dt,e.pos+=dt}if(!pt)break;Qe+=dt+1;var ln=void 0;if(pt[0]==" "){var xn=e.cm.options.tabSize,Dn=xn-e.col%xn;ln=Ne.appendChild(i("span",fe(Dn),"cm-tab")),ln.setAttribute("role","presentation"),ln.setAttribute("cm-text"," "),e.col+=Dn}else pt[0]=="\r"||pt[0]==` +`?(ln=Ne.appendChild(i("span",pt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ln.setAttribute("cm-text",pt[0]),e.col+=1):(ln=e.cm.options.specialCharPlaceholder(pt[0]),ln.setAttribute("cm-text",pt[0]),B&&x<9?Ne.appendChild(i("span",[ln])):Ne.appendChild(ln),e.col+=1);e.map.push(e.pos,e.pos+1,ln),e.pos++}}if(e.trailingSpace=ne.charCodeAt(t.length-1)==32,a||r||l||ce||j||Y){var Kn=a||"";r&&(Kn+=r),l&&(Kn+=l);var An=i("span",[Ne],Kn,j);if(Y)for(var Xn in Y)Y.hasOwnProperty(Xn)&&Xn!="style"&&Xn!="class"&&An.setAttribute(Xn,Y[Xn]);return e.content.appendChild(An)}e.content.appendChild(Ne)}function wn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var a=t,r="",l=0;lce&&Qe.from<=ce);pt++);if(Qe.to>=Ne)return e(a,r,l,j,Y,ne,ae);e(a,r.slice(0,Qe.to-ce),l,j,null,ne,ae),j=null,r=r.slice(Qe.to-ce),ce=Qe.to}}}function Ln(e,t,a,r){var l=!r&&a.widgetNode;l&&e.map.push(e.pos,e.pos+t,l),!r&&e.cm.display.input.needsContentAttribute&&(l||(l=e.content.appendChild(document.createElement("span"))),l.setAttribute("cm-marker",a.id)),l&&(e.cm.display.input.setUneditable(l),e.content.appendChild(l)),e.pos+=t,e.trailingSpace=!1}function yn(e,t,a){var r=e.markedSpans,l=e.text,j=0;if(!r){for(var Y=1;Yae||Dr.collapsed&&cr.to==ae&&cr.from==ae)){if(cr.to!=null&&cr.to!=ae&&dt>cr.to&&(dt=cr.to,ln=""),Dr.className&&(Ft+=" "+Dr.className),Dr.css&&(pt=(pt?pt+";":"")+Dr.css),Dr.startStyle&&cr.from==ae&&(xn+=" "+Dr.startStyle),Dr.endStyle&&cr.to==dt&&(Xn||(Xn=[])).push(Dr.endStyle,cr.to),Dr.title&&((Kn||(Kn={})).title=Dr.title),Dr.attributes)for(var ia in Dr.attributes)(Kn||(Kn={}))[ia]=Dr.attributes[ia];Dr.collapsed&&(!Dn||ft(Dn.marker,Dr)<0)&&(Dn=cr)}else cr.from>ae&&dt>cr.from&&(dt=cr.from)}if(Xn)for(var Fa=0;Fa=ne)break;for(var oi=Math.min(ne,dt);;){if(Ne){var ni=ae+Ne.length;if(!Dn){var Aa=ni>oi?Ne.slice(0,oi-ae):Ne;t.addToken(t,Aa,Qe?Qe+Ft:Ft,xn,ae+Aa.length==dt?ln:"",pt,Kn)}if(ni>=oi){Ne=Ne.slice(oi-ae),ae=oi;break}ae=ni,xn=""}Ne=l.slice(j,j=a[ce++]),Qe=Tt(a[ce++],t.cm.options)}}}function sr(e,t,a){this.line=t,this.rest=Mt(t),this.size=this.rest?hr(le(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Pt(e,t)}function Fn(e,t,a){for(var r=[],l,j=t;j2&&j.push((ae.bottom+ce.top)/2-a.top)}}j.push(a.bottom-a.top)}}function de(e,t,a){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;ra)return{map:e.measure.maps[l],cache:e.measure.caches[l],before:!0}}function Re(e,t){t=ut(t);var a=hr(t),r=e.display.externalMeasured=new sr(e.doc,t,a);r.lineN=a;var l=r.built=Tn(e,r);return r.text=l.pre,s(e.display.lineMeasure,l.pre),r}function Ie(e,t,a,r){return lt(e,Ue(e,t),a,r)}function at(e,t){if(t>=e.display.viewFrom&&t=a.lineN&&tt)&&(j=ae-ne,l=j-1,t>=ae&&(Y="right")),l!=null){if(r=e[ce+2],ne==ae&&a==(r.insertLeft?"left":"right")&&(Y=a),a=="left"&&l==0)for(;ce&&e[ce-2]==e[ce-3]&&e[ce-1].insertLeft;)r=e[(ce-=3)+2],Y="left";if(a=="right"&&l==ae-ne)for(;ce=0&&!((a=e[l]).left!=a.right);l--);return a}function fn(e,t,a,r){var l=jt(t.map,a,r),j=l.node,Y=l.start,ne=l.end,ae=l.collapse,ce;if(j.nodeType==3){for(var Ne=0;Ne<4;Ne++){for(;Y&&Fe(t.line.text.charAt(l.coverStart+Y));)--Y;for(;l.coverStart+ne0&&(ae=r="right");var Qe;e.options.lineWrapping&&(Qe=j.getClientRects()).length>1?ce=Qe[r=="right"?Qe.length-1:0]:ce=j.getBoundingClientRect()}if(B&&x<9&&!Y&&(!ce||!ce.left&&!ce.right)){var pt=j.parentNode.getClientRects()[0];pt?ce={left:pt.left,right:pt.left+kr(e.display),top:pt.top,bottom:pt.bottom}:ce=Ot}for(var dt=ce.top-t.rect.top,Ft=ce.bottom-t.rect.top,ln=(dt+Ft)/2,xn=t.view.measure.heights,Dn=0;Dn=r.text.length?(ae=r.text.length,ce="before"):ae<=0&&(ae=0,ce="after"),!ne)return Y(ce=="before"?ae-1:ae,ce=="before");function Ne(Ft,ln,xn){var Dn=ne[ln],Kn=Dn.level==1;return Y(xn?Ft-1:Ft,Kn!=xn)}var Qe=Bt(ne,ae,ce),pt=It,dt=Ne(ae,Qe,ce=="before");return pt!=null&&(dt.other=Ne(ae,pt,ce!="before")),dt}function nn(e,t){var a=0;t=y(e.doc,t),e.options.lineWrapping||(a=kr(e.display)*t.ch);var r=On(e.doc,t.line),l=Nt(r)+sa(e.display);return{left:a,right:a,top:l,bottom:l+r.height}}function _n(e,t,a,r,l){var j=Qt(e,t,a);return j.xRel=l,r&&(j.outside=r),j}function sn(e,t,a){var r=e.doc;if(a+=e.display.viewOffset,a<0)return _n(r.first,0,null,-1,-1);var l=Br(r,a),j=r.first+r.size-1;if(l>j)return _n(r.first+r.size-1,On(r,j).text.length,null,1,1);t<0&&(t=0);for(var Y=On(r,l);;){var ne=jn(e,Y,l,t,a),ae=Lt(Y,ne.ch+(ne.xRel>0||ne.outside>0?1:0));if(!ae)return ne;var ce=ae.find(1);if(ce.line==l)return ce;Y=On(r,l=ce.line)}}function cn(e,t,a,r){r-=mr(t);var l=t.text.length,j=Rt(function(Y){return lt(e,a,Y-1).bottom<=r},l,0);return l=Rt(function(Y){return lt(e,a,Y).top>r},j,l),{begin:j,end:l}}function $t(e,t,a,r){a||(a=Ue(e,t));var l=Er(e,t,lt(e,a,r),"line").top;return cn(e,t,a,l)}function Qn(e,t,a,r){return e.bottom<=a?!1:e.top>a?!0:(r?e.left:e.right)>t}function jn(e,t,a,r,l){l-=Nt(t);var j=Ue(e,t),Y=mr(t),ne=0,ae=t.text.length,ce=!0,Ne=hn(t,e.doc.direction);if(Ne){var Qe=(e.options.lineWrapping?Nr:yr)(e,t,a,j,Ne,r,l);ce=Qe.level!=1,ne=ce?Qe.from:Qe.to-1,ae=ce?Qe.to:Qe.from-1}var pt=null,dt=null,Ft=Rt(function(vr){var cr=lt(e,j,vr);return cr.top+=Y,cr.bottom+=Y,Qn(cr,r,l,!1)?(cr.top<=l&&cr.left<=r&&(pt=vr,dt=cr),!0):!1},ne,ae),ln,xn,Dn=!1;if(dt){var Kn=r-dt.left=Xn.bottom?1:0}return Ft=He(t.text,Ft,1),_n(a,Ft,xn,Dn,r-ln)}function yr(e,t,a,r,l,j,Y){var ne=Rt(function(Qe){var pt=l[Qe],dt=pt.level!=1;return Qn($n(e,Qt(a,dt?pt.to:pt.from,dt?"before":"after"),"line",t,r),j,Y,!0)},0,l.length-1),ae=l[ne];if(ne>0){var ce=ae.level!=1,Ne=$n(e,Qt(a,ce?ae.from:ae.to,ce?"after":"before"),"line",t,r);Qn(Ne,j,Y,!0)&&Ne.top>Y&&(ae=l[ne-1])}return ae}function Nr(e,t,a,r,l,j,Y){var ne=cn(e,t,r,Y),ae=ne.begin,ce=ne.end;/\s/.test(t.text.charAt(ce-1))&&ce--;for(var Ne=null,Qe=null,pt=0;pt=ce||dt.to<=ae)continue;var Ft=dt.level!=1,ln=lt(e,r,Ft?Math.min(ce,dt.to)-1:Math.max(ae,dt.from)).right,xn=lnxn)&&(Ne=dt,Qe=xn)}return Ne||(Ne=l[l.length-1]),Ne.fromce&&(Ne={from:Ne.from,to:ce,level:Ne.level}),Ne}var Lr;function Or(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Lr==null){Lr=i("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Lr.appendChild(document.createTextNode("x")),Lr.appendChild(i("br"));Lr.appendChild(document.createTextNode("x"))}s(e.measure,Lr);var a=Lr.offsetHeight/50;return a>3&&(e.cachedTextHeight=a),c(e.measure),a||1}function kr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=i("span","xxxxxxxxxx"),a=i("pre",[t],"CodeMirror-line-like");s(e.measure,a);var r=t.getBoundingClientRect(),l=(r.right-r.left)/10;return l>2&&(e.cachedCharWidth=l),l||10}function ur(e){for(var t=e.display,a={},r={},l=t.gutters.clientLeft,j=t.gutters.firstChild,Y=0;j;j=j.nextSibling,++Y){var ne=e.display.gutterSpecs[Y].className;a[ne]=j.offsetLeft+j.clientLeft+l,r[ne]=j.clientWidth}return{fixedPos:ua(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:a,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ua(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Ja(e){var t=Or(e.display),a=e.options.lineWrapping,r=a&&Math.max(5,e.display.scroller.clientWidth/kr(e.display)-3);return function(l){if(Pt(e.doc,l))return 0;var j=0;if(l.widgets)for(var Y=0;Y0&&(ce=On(e.doc,ae.line).text).length==ae.ch){var Ne=Z(ce,ce.length,e.options.tabSize)-ce.length;ae=Qt(ae.line,Math.max(0,Math.round((j-Ye(e.display).left)/kr(e.display))-Ne))}return ae}function Qr(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var a=e.display.view,r=0;rt)&&(l.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=l.viewTo)zn&&Le(e.doc,t)l.viewFrom?Jr(e):(l.viewFrom+=r,l.viewTo+=r);else if(t<=l.viewFrom&&a>=l.viewTo)Jr(e);else if(t<=l.viewFrom){var j=ja(e,a,a+r,1);j?(l.view=l.view.slice(j.index),l.viewFrom=j.lineN,l.viewTo+=r):Jr(e)}else if(a>=l.viewTo){var Y=ja(e,t,t,-1);Y?(l.view=l.view.slice(0,Y.index),l.viewTo=Y.lineN):Jr(e)}else{var ne=ja(e,t,t,-1),ae=ja(e,a,a+r,1);ne&&ae?(l.view=l.view.slice(0,ne.index).concat(Fn(e,ne.lineN,ae.lineN)).concat(l.view.slice(ae.index)),l.viewTo+=r):Jr(e)}var ce=l.externalMeasured;ce&&(a=l.lineN&&t=r.viewTo)return;var j=r.view[Qr(e,t)];if(j.node==null)return;var Y=j.changes||(j.changes=[]);ie(Y,a)==-1&&Y.push(a)}function Jr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ja(e,t,a,r){var l=Qr(e,t),j,Y=e.display.view;if(!zn||a==e.doc.first+e.doc.size)return{index:l,lineN:a};for(var ne=e.display.viewFrom,ae=0;ae0){if(l==Y.length-1)return null;j=ne+Y[l].size-t,l++}else j=ne-t;t+=j,a+=j}for(;Le(e.doc,a)!=a;){if(l==(r<0?0:Y.length-1))return null;a+=r*Y[l-(r<0?1:0)].size,l+=r}return{index:l,lineN:a}}function hi(e,t,a){var r=e.display,l=r.view;l.length==0||t>=r.viewTo||a<=r.viewFrom?(r.view=Fn(e,t,a),r.viewFrom=t):(r.viewFrom>t?r.view=Fn(e,t,r.viewFrom).concat(r.view):r.viewFroma&&(r.view=r.view.slice(0,Qr(e,a)))),r.viewTo=a}function si(e){for(var t=e.display.view,a=0,r=0;r=e.display.viewTo||ne.to().line0?t.blinker=setInterval(function(){e.hasFocus()||wi(e),t.cursorDiv.style.visibility=(a=!a)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.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,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(),k&&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,h(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,a=t.lineDiv.offsetTop,r=0;r.005||Ne<-.005)&&(Pr(l.line,Y),Ti(l.line),l.rest))for(var Qe=0;Qee.display.sizerWidth){var pt=Math.ceil(ne/kr(e.display));pt>e.display.maxLineLength&&(e.display.maxLineLength=pt,e.display.maxLine=l.line,e.display.maxLineChanged=!0)}}}function Ti(e){if(e.widgets)for(var t=0;t=Y&&(j=Br(t,Nt(On(t,ae))-e.wrapper.clientHeight),Y=ae)}return{from:j,to:Math.max(Y,j+1)}}function co(e,t){if(xt(e,"scrollCursorIntoView"))return;var a=e.display,r=a.sizer.getBoundingClientRect(),l=null;if(t.top+r.top<0?l=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(l=!1),l!=null&&!n){var j=i("div","\u200B",null,`position: absolute; + height: `+(cr-Xn)+"px"))}function Qe(An,Xn,vr){var cr=On(l,An),Dr=cr.text.length,ia,Fa;function ga(Aa,ri){return Tr(e,Qt(An,Aa),"div",cr,ri)}function oi(Aa,ri,za){var Ia=$t(e,cr,null,Aa),Pa=ri=="ltr"==(za=="after")?"left":"right",xa=za=="after"?Ia.begin:Ia.end-(/\s/.test(cr.text.charAt(Ia.end-1))?2:1);return ga(xa,Pa)[Pa]}var ni=hn(cr,l.direction);return Ht(ni,Xn||0,vr==null?Dr:vr,function(Aa,ri,za,Ia){var Pa=za=="ltr",xa=ga(Aa,Pa?"left":"right"),ai=ga(ri-1,Pa?"right":"left"),To=Xn==null&&Aa==0,to=vr==null&&ri==Dr,Xa=Ia==0,Mi=!ni||Ia==ni.length-1;if(ai.top-xa.top<=3){var Ba=(ce?To:to)&&Xa,ms=(ce?to:To)&&Mi,zi=Ba?ne:(Pa?xa:ai).left,lo=ms?ae:(Pa?ai:xa).right;Ne(zi,xa.top,lo-zi,xa.bottom)}else{var uo,$a,Oo,vs;Pa?(uo=ce&&To&&Xa?ne:xa.left,$a=ce?ae:oi(Aa,za,"before"),Oo=ce?ne:oi(ri,za,"after"),vs=ce&&to&&Mi?ae:ai.right):(uo=ce?oi(Aa,za,"before"):ne,$a=!ce&&To&&Xa?ae:xa.right,Oo=!ce&&to&&Mi?ne:ai.left,vs=ce?oi(ri,za,"after"):ae),Ne(uo,xa.top,$a-uo,xa.bottom),xa.bottom0?t.blinker=setInterval(function(){e.hasFocus()||wi(e),t.cursorDiv.style.visibility=(a=!a)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.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,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(),k&&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,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 t=e.display,a=t.lineDiv.offsetTop,r=0;r.005||Ne<-.005)&&(Pr(l.line,Y),Ti(l.line),l.rest))for(var Qe=0;Qee.display.sizerWidth){var pt=Math.ceil(ne/kr(e.display));pt>e.display.maxLineLength&&(e.display.maxLineLength=pt,e.display.maxLine=l.line,e.display.maxLineChanged=!0)}}}function Ti(e){if(e.widgets)for(var t=0;t=Y&&(j=Br(t,Nt(On(t,ae))-e.wrapper.clientHeight),Y=ae)}return{from:j,to:Math.max(Y,j+1)}}function co(e,t){if(xt(e,"scrollCursorIntoView"))return;var a=e.display,r=a.sizer.getBoundingClientRect(),l=null;if(t.top+r.top<0?l=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(l=!1),l!=null&&!n){var j=i("div","\u200B",null,`position: absolute; top: `+(t.top-a.viewOffset-sa(e.display))+`px; height: `+(t.bottom-t.top+et(e)+a.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(j),j.scrollIntoView(l),e.display.lineSpace.removeChild(j)}}function Ro(e,t,a,r){r==null&&(r=0);var l;!e.options.lineWrapping&&t==a&&(t=t.ch?Qt(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,a=t.sticky=="before"?Qt(t.line,t.ch+1,"before"):t);for(var j=0;j<5;j++){var Y=!1,ne=$n(e,t),ae=!a||a==t?ne:$n(e,a);l={left:Math.min(ne.left,ae.left),top:Math.min(ne.top,ae.top)-r,right:Math.max(ne.left,ae.left),bottom:Math.max(ne.bottom,ae.bottom)+r};var ce=Oi(e,l),Ne=e.doc.scrollTop,Qe=e.doc.scrollLeft;if(ce.scrollTop!=null&&(Ai(e,ce.scrollTop),Math.abs(e.doc.scrollTop-Ne)>1&&(Y=!0)),ce.scrollLeft!=null&&(ka(e,ce.scrollLeft),Math.abs(e.doc.scrollLeft-Qe)>1&&(Y=!0)),!Y)break}return l}function Gi(e,t){var a=Oi(e,t);a.scrollTop!=null&&Ai(e,a.scrollTop),a.scrollLeft!=null&&ka(e,a.scrollLeft)}function Oi(e,t){var a=e.display,r=Or(e.display);t.top<0&&(t.top=0);var l=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:a.scroller.scrollTop,j=se(e),Y={};t.bottom-t.top>j&&(t.bottom=t.top+j);var ne=e.doc.height+Ce(a),ae=t.topne-r;if(t.topl+j){var Ne=Math.min(t.top,(ce?ne:t.bottom)-j);Ne!=l&&(Y.scrollTop=Ne)}var Qe=e.options.fixedGutter?0:a.gutters.offsetWidth,pt=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:a.scroller.scrollLeft-Qe,dt=Oe(e)-a.gutters.offsetWidth,Ft=t.right-t.left>dt;return Ft&&(t.right=t.left+dt),t.left<10?Y.scrollLeft=0:t.leftdt+pt-3&&(Y.scrollLeft=t.right+(Ft?0:10)-dt),Y}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,a){(t!=null||a!=null)&&Xi(e),t!=null&&(e.curOp.scrollLeft=t),a!=null&&(e.curOp.scrollTop=a)}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 a=nn(e,t.from),r=nn(e,t.to);Di(e,a,r,t.margin)}}function Di(e,t,a,r){var l=Oi(e,{left:Math.min(t.left,a.left),top:Math.min(t.top,a.top)-r,right:Math.max(t.right,a.right),bottom:Math.max(t.bottom,a.bottom)+r});Ri(e,l.scrollLeft,l.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,a){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!a)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function ka(e,t,a,r){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(a?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)return;e.doc.scrollLeft=t,Rr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function hi(e){var t=e.display,a=t.gutters.offsetWidth,r=Math.round(e.doc.height+Ce(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?a:0,docHeight:r,scrollHeight:r+et(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:a}}var pi=function(e,t,a){this.cm=a;var r=this.vert=i("div",[i("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),l=this.horiz=i("div",[i("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=l.tabIndex=-1,e(r),e(l),Ke(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Ke(l,"scroll",function(){l.clientWidth&&t(l.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,B&&x<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,a=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var l=e.viewHeight-(t?r: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(t){this.horiz.style.display="block",this.horiz.style.right=a?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var j=e.viewWidth-e.barLeft-(a?r: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&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?r:0,bottom:t?r: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=u&&!g?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new oe,this.disableVert=new oe},pi.prototype.enableZeroWidthBar=function(e,t,a){e.style.pointerEvents="auto";function r(){var l=e.getBoundingClientRect(),j=a=="vert"?document.elementFromPoint(l.right-1,(l.top+l.bottom)/2):document.elementFromPoint((l.right+l.left)/2,l.bottom-1);j!=e?e.style.pointerEvents="none":t.set(1e3,r)}t.set(1e3,r)},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 a=e.display.barWidth,r=e.display.barHeight;Yi(e,t);for(var l=0;l<4&&a!=e.display.barWidth||r!=e.display.barHeight;l++)a!=e.display.barWidth&&e.options.lineWrapping&&Si(e),Yi(e,hi(e)),a=e.display.barWidth,r=e.display.barHeight}function Yi(e,t){var a=e.display,r=a.scrollbars.update(t);a.sizer.style.paddingRight=(a.barWidth=r.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=r.bottom)+"px",a.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=r.bottom+"px",a.scrollbarFiller.style.width=r.right+"px"):a.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=r.bottom+"px",a.gutterFiller.style.width=t.gutterWidth+"px"):a.gutterFiller.style.display=""}var $i={native:pi,null:Ei};function Qi(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&h(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),Ke(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,a){a=="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},dr(e.curOp)}function xi(e){var t=e.curOp;t&&Hn(t,function(a){for(var r=0;r=a.viewTo)||a.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&&_i(e.cm,e.update)}function ho(e){var t=e.cm,a=t.display;e.updatedDisplay&&Si(t),e.barMeasure=hi(t),a.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ie(t,a.maxLine,a.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+e.adjustWidthTo+et(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+e.adjustWidthTo-Oe(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=a.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 a=+new Date+e.options.workTime,r=pn(e,t.highlightFrontier),l=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(j){if(r.line>=e.display.viewFrom){var Y=j.styles,ne=j.text.length>e.options.maxHighlightLength?kn(t.mode,r.state):null,ae=ze(e,j,r,!0);ne&&(r.state=ne),j.styles=ae.styles;var ce=j.styleClasses,Ne=ae.classes;Ne?j.styleClasses=Ne:ce&&(j.styleClasses=null);for(var Qe=!Y||Y.length!=j.styles.length||ce!=Ne&&(!ce||!Ne||ce.bgClass!=Ne.bgClass||ce.textClass!=Ne.textClass),pt=0;!Qe&&pta)return Ni(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),l.length&&Ha(e,function(){for(var j=0;j=a.viewFrom&&t.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&si(e)==0)return!1;la(e)&&(Jr(e),t.dims=ur(e));var l=r.first+r.size,j=Math.max(t.visible.from-e.options.viewportMargin,r.first),Y=Math.min(l,t.visible.to+e.options.viewportMargin);a.viewFromY&&a.viewTo-Y<20&&(Y=Math.min(l,a.viewTo)),zn&&(j=Le(e.doc,j),Y=mt(e.doc,Y));var ne=j!=a.viewFrom||Y!=a.viewTo||a.lastWrapHeight!=t.wrapperHeight||a.lastWrapWidth!=t.wrapperWidth;fi(e,j,Y),a.viewOffset=Nt(On(e.doc,a.viewFrom)),e.display.mover.style.top=a.viewOffset+"px";var ae=si(e);if(!ne&&ae==0&&!t.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var ce=oo(e);return ae>4&&(a.lineDiv.style.display="none"),vo(e,a.updateLineNumbers,t.dims),ae>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,so(ce),c(a.cursorDiv),c(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,ne&&(a.lastWrapHeight=t.wrapperHeight,a.lastWrapWidth=t.wrapperWidth,Ni(e,400)),a.updateLineNumbers=null,!0}function Ji(e,t){for(var a=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==Oe(e)){if(a&&a.top!=null&&(a={top:Math.min(e.doc.height+Ce(e.display)-se(e),a.top)}),t.visible=ki(e.display,e.doc,a),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=ki(e.display,e.doc,a));if(!_i(e,t))break;Si(e);var l=hi(e);Vr(e),mi(e,l),Kr(e,l),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 a=new ei(e,t);if(_i(e,a)){Si(e),Ji(e,a);var r=hi(e);Vr(e),mi(e,r),Kr(e,r),a.finish()}}function vo(e,t,a){var r=e.display,l=e.options.lineNumbers,j=r.lineDiv,Y=j.firstChild;function ne(Ft){var ln=Ft.nextSibling;return k&&u&&e.display.currentWheelTarget==Ft?Ft.style.display="none":Ft.parentNode.removeChild(Ft),ln}for(var ae=r.view,ce=r.viewFrom,Ne=0;Ne-1&&(dt=!1),ea(e,Qe,ce,a)),dt&&(c(Qe.lineNumber),Qe.lineNumber.appendChild(document.createTextNode(ha(e.options,ce)))),Y=Qe.node.nextSibling}ce+=Qe.size}for(;Y;)Y=ne(Y)}function Zi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Kr(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+et(e)+"px"}function Rr(e){var t=e.display,a=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var r=ua(t)-t.scroller.scrollLeft+e.doc.scrollLeft,l=t.gutters.offsetWidth,j=r+"px",Y=0;YY.clientWidth,ae=Y.scrollHeight>Y.clientHeight;if(!(r&&ne||l&&ae))return;if(l&&u&&k){e:for(var ce=t.target,Ne=j.view;ce!=Y;ce=ce.parentNode)for(var Qe=0;Qe=0&&qn(e,r.to())<=0)return a}return-1};var Hr=function(e,t){this.anchor=e,this.head=t};Hr.prototype.from=function(){return ra(this.anchor,this.head)},Hr.prototype.to=function(){return jr(this.anchor,this.head)},Hr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function gr(e,t,a){var r=e&&e.options.selectionsMayTouch,l=t[a];t.sort(function(pt,dt){return qn(pt.from(),dt.from())}),a=ie(t,l);for(var j=1;j0:ae>=0){var ce=ra(ne.from(),Y.from()),Ne=jr(ne.to(),Y.to()),Qe=ne.empty()?Y.from()==Y.head:ne.from()==ne.head;j<=a&&--a,t.splice(--j,2,new Hr(Qe?Ne:ce,Qe?ce:Ne))}}return new Ka(t,a)}function Pn(e,t){return new Ka([new Hr(e,t||e)],0)}function er(e){return e.text?Qt(e.from.line+e.text.length-1,le(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function wr(e,t){if(qn(e,t.from)<0)return e;if(qn(e,t.to)<=0)return er(t);var a=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=er(t).ch-t.to.ch),Qt(a,r)}function aa(e,t){for(var a=[],r=0;r1&&e.remove(ne.line+1,Ft-1),e.insert(ne.line+1,Dn)}Zn(e,"change",e,t)}function Sa(e,t,a){function r(l,j,Y){if(l.linked)for(var ne=0;ne1&&!e.done[e.done.length-2].ranges)return e.done.pop(),le(e.done)}function Es(e,t,a,r){var l=e.history;l.undone.length=0;var j=+new Date,Y,ne;if((l.lastOp==r||l.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&l.lastModTime>j-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(Y=pl(l,l.lastOp==r)))ne=le(Y.changes),qn(t.from,t.to)==0&&qn(t.from,ne.to)==0?ne.to=er(t):Y.changes.push(rs(e,t));else{var ae=le(l.done);for((!ae||!ae.ranges)&&Go(e.sel,l.done),Y={changes:[rs(e,t)],generation:l.generation},l.done.push(Y);l.done.length>l.undoDepth;)l.done.shift(),l.done[0].ranges||l.done.shift()}l.done.push(a),l.generation=++l.maxGeneration,l.lastModTime=l.lastSelTime=j,l.lastOp=l.lastSelOp=r,l.lastOrigin=l.lastSelOrigin=t.origin,ne||st(e,"historyAdded")}function ml(e,t,a,r){var l=t.charAt(0);return l=="*"||l=="+"&&a.ranges.length==r.ranges.length&&a.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function vl(e,t,a,r){var l=e.history,j=r&&r.origin;a==l.lastSelOp||j&&l.lastSelOrigin==j&&(l.lastModTime==l.lastSelTime&&l.lastOrigin==j||ml(e,j,le(l.done),t))?l.done[l.done.length-1]=t:Go(t,l.done),l.lastSelTime=+new Date,l.lastSelOrigin=j,l.lastSelOp=a,r&&r.clearRedo!==!1&&bs(l.undone)}function Go(e,t){var a=le(t);a&&a.ranges&&a.equals(e)||t.push(e)}function xs(e,t,a,r){var l=t["spans_"+e.id],j=0;e.iter(Math.max(e.first,a),Math.min(e.first+e.size,r),function(Y){Y.markedSpans&&((l||(l=t["spans_"+e.id]={}))[j]=Y.markedSpans),++j})}function gl(e){if(!e)return null;for(var t,a=0;a-1&&(le(ne)[Qe]=ce[Qe],delete ce[Qe]))}}return r}function as(e,t,a,r){if(r){var l=e.anchor;if(a){var j=qn(t,l)<0;j!=qn(a,l)<0?(l=t,t=a):j!=qn(t,a)<0&&(t=a)}return new Hr(l,t)}else return new Hr(a||t,t)}function Vo(e,t,a,r,l){l==null&&(l=e.cm&&(e.cm.display.shift||e.extend)),Va(e,new Ka([as(e.sel.primary(),t,a,l)],0),r)}function Cs(e,t,a){for(var r=[],l=e.cm&&(e.cm.display.shift||e.extend),j=0;j=t.ch:ne.to>t.ch))){if(l&&(st(ae,"beforeCursorEnter"),ae.explicitlyCleared))if(j.markedSpans){--Y;continue}else break;if(!ae.atomic)continue;if(a){var Qe=ae.find(r<0?1:-1),pt=void 0;if((r<0?Ne:ce)&&(Qe=Ds(e,Qe,-r,Qe&&Qe.line==t.line?j:null)),Qe&&Qe.line==t.line&&(pt=qn(Qe,a))&&(r<0?pt<0:pt>0))return yo(e,Qe,t,r,l)}var dt=ae.find(r<0?-1:1);return(r<0?ce:Ne)&&(dt=Ds(e,dt,r,dt.line==t.line?j:null)),dt?yo(e,dt,t,r,l):null}}return t}function Yo(e,t,a,r,l){var j=r||1,Y=yo(e,t,a,j,l)||!l&&yo(e,t,a,j,!0)||yo(e,t,a,-j,l)||!l&&yo(e,t,a,-j,!0);return Y||(e.cantEdit=!0,Qt(e.first,0))}function Ds(e,t,a,r){return a<0&&t.ch==0?t.line>e.first?y(e,Qt(t.line-1)):null:a>0&&t.ch==(r||On(e,t.line)).text.length?t.line=0;--l)Ms(e,{from:r[l].from,to:r[l].to,text:l?[""]:t.text,origin:t.origin});else Ms(e,t)}function Ms(e,t){if(t.text.length==1&&t.text[0]==""&&qn(t.from,t.to)==0)return;var a=aa(e,t);Es(e,t,a,e.cm?e.cm.curOp.id:NaN),Po(e,t,a,Ur(e,t));var r=[];Sa(e,function(l,j){!j&&ie(r,l.history)==-1&&(Ns(l.history,t),r.push(l.history)),Po(l,t,null,Ur(l,t))})}function $o(e,t,a){var r=e.cm&&e.cm.state.suppressEdits;if(r&&!a)return;for(var l=e.history,j,Y=e.sel,ne=t=="undo"?l.done:l.undone,ae=t=="undo"?l.undone:l.done,ce=0;ce=0;--dt){var Ft=pt(dt);if(Ft)return Ft.v}}function Ls(e,t){if(t==0)return;if(e.first+=t,e.sel=new Ka(Se(e.sel.ranges,function(l){return new Hr(Qt(l.anchor.line+t,l.anchor.ch),Qt(l.head.line+t,l.head.ch))}),e.sel.primIndex),e.cm){Gr(e.cm,e.first,e.first-t,t);for(var a=e.cm.display,r=a.viewFrom;re.lastLine())return;if(t.from.linej&&(t={from:t.from,to:Qt(j,On(e,j).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Fr(e,t.from,t.to),a||(a=aa(e,t)),e.cm?El(e.cm,t,r):Hi(e,t,r),Xo(e,a,Ae),e.cantEdit&&Yo(e,Qt(e.firstLine(),0))&&(e.cantEdit=!1)}function El(e,t,a){var r=e.doc,l=e.display,j=t.from,Y=t.to,ne=!1,ae=j.line;e.options.lineWrapping||(ae=fr(ut(On(r,j.line))),r.iter(ae,Y.line+1,function(dt){if(dt==l.maxLine)return ne=!0,!0})),r.sel.contains(t.from,t.to)>-1&&je(e),Hi(r,t,a,Ja(e)),e.options.lineWrapping||(r.iter(ae,j.line+t.text.length,function(dt){var Ft=Sn(dt);Ft>l.maxLineLength&&(l.maxLine=dt,l.maxLineLength=Ft,l.maxLineChanged=!0,ne=!1)}),ne&&(e.curOp.updateMaxLine=!0)),Jn(r,j.line),Ni(e,400);var ce=t.text.length-(Y.line-j.line)-1;t.full?Gr(e):j.line==Y.line&&t.text.length==1&&!gi(e.doc,t)?Xr(e,j.line,"text"):Gr(e,j.line,Y.line+1,ce);var Ne=we(e,"changes"),Qe=we(e,"change");if(Qe||Ne){var pt={from:j,to:Y,text:t.text,removed:t.removed,origin:t.origin};Qe&&Zn(e,"change",e,pt),Ne&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(pt)}e.display.selForContextMenu=null}function Eo(e,t,a,r,l){var j;r||(r=a),qn(r,a)<0&&(j=[r,a],a=j[0],r=j[1]),typeof t=="string"&&(t=e.splitLines(t)),bo(e,{from:a,to:r,text:t,origin:l})}function ks(e,t,a,r){a1||!(this.children[0]instanceof Lo))){var ne=[];this.collapse(ne),this.children=[new Lo(ne)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var Y=l.lines.length%25+25,ne=Y;ne10);e.parent.maybeSpill()},iterN:function(e,t,a){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=ce,e.display.maxLineLength=Ne,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&Gr(e,r,l+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,r,l),t&&xi(e),this.parent&&this.parent.clear()},qi.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var a,r,l=0;l0||Y==0&&j.clearWhenEmpty!==!1)return j;if(j.replacedWith&&(j.collapsed=!0,j.widgetNode=C("span",[j.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||j.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(j.widgetNode.insertLeft=!0)),j.collapsed){if(bt(e,t.line,t,a,j)||t.line!=a.line&&bt(e,a.line,t,a,j))throw new Error("Inserting collapsed marker partially overlapping an existing one");Un()}j.addToHistory&&Es(e,{from:t,to:a,origin:"markText"},e.sel,NaN);var ne=t.line,ae=e.cm,ce;if(e.iter(ne,a.line+1,function(Qe){ae&&j.collapsed&&!ae.options.lineWrapping&&ut(Qe)==ae.display.maxLine&&(ce=!0),j.collapsed&&ne!=t.line&&Pr(Qe,0),Cn(Qe,new mn(j,ne==t.line?t.ch:null,ne==a.line?a.ch:null)),++ne}),j.collapsed&&e.iter(t.line,a.line+1,function(Qe){Pt(e,Qe)&&Pr(Qe,0)}),j.clearOnEnter&&Ke(j,"beforeCursorEnter",function(){return j.clear()}),j.readOnly&&(Gn(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),j.collapsed&&(j.id=++Us,j.atomic=!0),ae){if(ce&&(ae.curOp.updateMaxLine=!0),j.collapsed)Gr(ae,t.line,a.line+1);else if(j.className||j.startStyle||j.endStyle||j.css||j.attributes||j.title)for(var Ne=t.line;Ne<=a.line;Ne++)Xr(ae,Ne,"text");j.atomic&&Os(ae.doc),Zn(ae,"markerAdded",ae,j)}return j}var No=function(e,t){this.markers=e,this.primary=t;for(var a=0;a=0;ae--)bo(this,r[ae]);ne?Ss(this,ne):this.cm&&yi(this.cm)}),undo:da(function(){$o(this,"undo")}),redo:da(function(){$o(this,"redo")}),undoSelection:da(function(){$o(this,"undo",!0)}),redoSelection:da(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,a=0,r=0;r=e.ch)&&t.push(l.marker.parent||l.marker)}return t},findMarks:function(e,t,a){e=y(this,e),t=y(this,t);var r=[],l=e.line;return this.iter(e.line,t.line+1,function(j){var Y=j.markedSpans;if(Y)for(var ne=0;ne=ae.to||ae.from==null&&l!=e.line||ae.from!=null&&l==t.line&&ae.from>=t.ch)&&(!a||a(ae.marker))&&r.push(ae.marker.parent||ae.marker)}++l}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var a=t.markedSpans;if(a)for(var r=0;re)return t=e,!0;e-=j,++a}),y(this,Qt(a,t))},indexFromPos:function(e){e=y(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 Ne=e.dataTransfer.getData("Text");if(Ne){var Qe;if(t.state.draggingText&&!t.state.draggingText.copy&&(Qe=t.listSelections()),Xo(t.doc,Pn(a,a)),Qe)for(var pt=0;pt=0;ne--)Eo(e.doc,"",r[ne].from,r[ne].to,"+delete");yi(e)})}function os(e,t,a){var r=He(e.text,t+a,a);return r<0||r>e.text.length?null:r}function ss(e,t,a){var r=os(e,t.ch,a);return r==null?null:new Qt(t.line,r,a<0?"after":"before")}function ls(e,t,a,r,l){if(e){t.doc.direction=="rtl"&&(l=-l);var j=fn(a,t.doc.direction);if(j){var Y=l<0?le(j):j[0],ne=l<0==(Y.level==1),ae=ne?"after":"before",ce;if(Y.level>0||t.doc.direction=="rtl"){var Ne=Ue(t,a);ce=l<0?a.text.length-1:0;var Qe=lt(t,Ne,ce).top;ce=Rt(function(pt){return lt(t,Ne,pt).top==Qe},l<0==(Y.level==1)?Y.from:Y.to-1,ce),ae=="before"&&(ce=os(a,ce,1))}else ce=l<0?Y.to:Y.from;return new Qt(r,ce,ae)}}return new Qt(r,l<0?a.text.length:0,l<0?"before":"after")}function kl(e,t,a,r){var l=fn(t,e.doc.direction);if(!l)return ss(t,a,r);a.ch>=t.text.length?(a.ch=t.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var j=Bt(l,a.ch,a.sticky),Y=l[j];if(e.doc.direction=="ltr"&&Y.level%2==0&&(r>0?Y.to>a.ch:Y.from=Y.from&&pt>=Ne.begin)){var dt=Qe?"before":"after";return new Qt(a.line,pt,dt)}}var Ft=function(Dn,Kn,An){for(var Xn=function(ia,Fa){return Fa?new Qt(a.line,ne(ia,1),"before"):new Qt(a.line,ia,"after")};Dn>=0&&Dn0==(vr.level!=1),Dr=cr?An.begin:ne(An.end,-1);if(vr.from<=Dr&&Dr0?Ne.end:ne(Ne.begin,-1);return xn!=null&&!(r>0&&xn==t.text.length)&&(ln=Ft(r>0?0:l.length-1,r,ce(xn)),ln)?ln:null}var Fo={selectAll:As,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ae)},killLine:function(e){return Co(e,function(t){if(t.empty()){var a=On(e.doc,t.head.line).text.length;return t.head.ch==a&&t.head.line0)l=new Qt(l.line,l.ch+1),e.replaceRange(j.charAt(l.ch-1)+j.charAt(l.ch-2),Qt(l.line,l.ch-2),l,"+transpose");else if(l.line>e.doc.first){var Y=On(e.doc,l.line-1).text;Y&&(l=new Qt(l.line,1),e.replaceRange(j.charAt(0)+e.doc.lineSeparator()+Y.charAt(Y.length-1),Qt(l.line-1,Y.length-1),l,"+transpose"))}}a.push(new Hr(l,l))}e.setSelections(a)})},newlineAndIndent:function(e){return Ha(e,function(){for(var t=e.listSelections(),a=t.length-1;a>=0;a--)e.replaceRange(e.doc.lineSeparator(),t[a].anchor,t[a].head,"+input");t=e.listSelections();for(var r=0;re&&qn(t,this.pos)==0&&a==this.button};var Wo,Ho;function Wl(e,t){var a=+new Date;return Ho&&Ho.compare(a,e,t)?(Wo=Ho=null,"triple"):Wo&&Wo.compare(a,e,t)?(Ho=new cs(a,e,t),Wo=null,"double"):(Wo=new cs(a,e,t),Ho=null,"single")}function el(e){var t=this,a=t.display;if(xt(t,e)||a.activeTouch&&a.input.supportsTouch())return;if(a.input.ensurePolled(),a.shift=e.shiftKey,Ca(a,e)){k||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(ds(t,e))return;var r=wa(t,e),l=We(e),j=r?Wl(r,l):"single";if(window.focus(),l==1&&t.state.selectingText&&t.state.selectingText(e),r&&Hl(t,l,r,j,e))return;l==1?r?zl(t,r,j,e):nt(e)==a.scroller&&ue(e):l==2?(r&&Vo(t.doc,r),setTimeout(function(){return a.input.focus()},20)):l==3&&(P?t.display.input.onContextMenu(e):no(t))}function Hl(e,t,a,r,l){var j="Click";return r=="double"?j="Double"+j:r=="triple"&&(j="Triple"+j),j=(t==1?"Left":t==2?"Middle":"Right")+j,Bo(e,Gs(j,l),l,function(Y){if(typeof Y=="string"&&(Y=Fo[Y]),!Y)return!1;var ne=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),ne=Y(e,a)!=Je}finally{e.state.suppressEdits=!1}return ne})}function Kl(e,t,a){var r=e.getOption("configureMouse"),l=r?r(e,t,a):{};if(l.unit==null){var j=f?a.shiftKey&&a.metaKey:a.altKey;l.unit=j?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(l.extend==null||e.doc.extend)&&(l.extend=e.doc.extend||a.shiftKey),l.addNew==null&&(l.addNew=u?a.metaKey:a.ctrlKey),l.moveOnDrag==null&&(l.moveOnDrag=!(u?a.altKey:a.ctrlKey)),l}function zl(e,t,a,r){B?setTimeout(L(Li,e),0):e.curOp.focus=N();var l=Kl(e,a,r),j=e.doc.sel,Y;e.options.dragDrop&&St&&!e.isReadOnly()&&a=="single"&&(Y=j.contains(t))>-1&&(qn((Y=j.ranges[Y]).from(),t)<0||t.xRel>0)&&(qn(Y.to(),t)>0||t.xRel<0)?Gl(e,r,t,l):Vl(e,r,t,l)}function Gl(e,t,a,r){var l=e.display,j=!1,Y=ca(e,function(ce){k&&(l.scroller.draggable=!1),e.state.draggingText=!1,Dt(l.wrapper.ownerDocument,"mouseup",Y),Dt(l.wrapper.ownerDocument,"mousemove",ne),Dt(l.scroller,"dragstart",ae),Dt(l.scroller,"drop",Y),j||(ue(ce),r.addNew||Vo(e.doc,a,null,null,r.extend),k&&!M||B&&x==9?setTimeout(function(){l.wrapper.ownerDocument.body.focus({preventScroll:!0}),l.input.focus()},20):l.input.focus())}),ne=function(ce){j=j||Math.abs(t.clientX-ce.clientX)+Math.abs(t.clientY-ce.clientY)>=10},ae=function(){return j=!0};k&&(l.scroller.draggable=!0),e.state.draggingText=Y,Y.copy=!r.moveOnDrag,l.scroller.dragDrop&&l.scroller.dragDrop(),Ke(l.wrapper.ownerDocument,"mouseup",Y),Ke(l.wrapper.ownerDocument,"mousemove",ne),Ke(l.scroller,"dragstart",ae),Ke(l.scroller,"drop",Y),no(e),setTimeout(function(){return l.input.focus()},20)}function tl(e,t,a){if(a=="char")return new Hr(t,t);if(a=="word")return e.findWordAt(t);if(a=="line")return new Hr(Qt(t.line,0),y(e.doc,Qt(t.line+1,0)));var r=a(e,t);return new Hr(r.from,r.to)}function Vl(e,t,a,r){var l=e.display,j=e.doc;ue(t);var Y,ne,ae=j.sel,ce=ae.ranges;if(r.addNew&&!r.extend?(ne=j.sel.contains(a),ne>-1?Y=ce[ne]:Y=new Hr(a,a)):(Y=j.sel.primary(),ne=j.sel.primIndex),r.unit=="rectangle")r.addNew||(Y=new Hr(a,a)),a=wa(e,t,!0,!0),ne=-1;else{var Ne=tl(e,a,r.unit);r.extend?Y=as(Y,Ne.anchor,Ne.head,r.extend):Y=Ne}r.addNew?ne==-1?(ne=ce.length,Va(j,gr(e,ce.concat([Y]),ne),{scroll:!1,origin:"*mouse"})):ce.length>1&&ce[ne].empty()&&r.unit=="char"&&!r.extend?(Va(j,gr(e,ce.slice(0,ne).concat(ce.slice(ne+1)),0),{scroll:!1,origin:"*mouse"}),ae=j.sel):is(j,ne,Y,ke):(ne=0,Va(j,new Ka([Y],0),ke),ae=j.sel);var Qe=a;function pt(An){if(qn(Qe,An)==0)return;if(Qe=An,r.unit=="rectangle"){for(var Xn=[],vr=e.options.tabSize,cr=Z(On(j,a.line).text,a.ch,vr),Dr=Z(On(j,An.line).text,An.ch,vr),ia=Math.min(cr,Dr),Fa=Math.max(cr,Dr),ga=Math.min(a.line,An.line),oi=Math.min(e.lastLine(),Math.max(a.line,An.line));ga<=oi;ga++){var ni=On(j,ga).text,Aa=Xe(ni,ia,vr);ia==Fa?Xn.push(new Hr(Qt(ga,Aa),Qt(ga,Aa))):ni.length>Aa&&Xn.push(new Hr(Qt(ga,Aa),Qt(ga,Xe(ni,Fa,vr))))}Xn.length||Xn.push(new Hr(a,a)),Va(j,gr(e,ae.ranges.slice(0,ne).concat(Xn),ne),{origin:"*mouse",scroll:!1}),e.scrollIntoView(An)}else{var ri=Y,za=tl(e,An,r.unit),Ia=ri.anchor,Pa;qn(za.anchor,Ia)>0?(Pa=za.head,Ia=ra(ri.from(),za.anchor)):(Pa=za.anchor,Ia=jr(ri.to(),za.head));var xa=ae.ranges.slice(0);xa[ne]=Xl(e,new Hr(y(j,Ia),Pa)),Va(j,gr(e,xa,ne),ke)}}var dt=l.wrapper.getBoundingClientRect(),Ft=0;function ln(An){var Xn=++Ft,vr=wa(e,An,!0,r.unit=="rectangle");if(!vr)return;if(qn(vr,Qe)!=0){e.curOp.focus=N(),pt(vr);var cr=ki(l,j);(vr.line>=cr.to||vr.linedt.bottom?20:0;Dr&&setTimeout(ca(e,function(){if(Ft!=Xn)return;l.scroller.scrollTop+=Dr,ln(An)}),50)}}function xn(An){e.state.selectingText=!1,Ft=Infinity,An&&(ue(An),l.input.focus()),Dt(l.wrapper.ownerDocument,"mousemove",Dn),Dt(l.wrapper.ownerDocument,"mouseup",Kn),j.history.lastSelOrigin=null}var Dn=ca(e,function(An){An.buttons===0||!We(An)?xn(An):ln(An)}),Kn=ca(e,xn);e.state.selectingText=Kn,Ke(l.wrapper.ownerDocument,"mousemove",Dn),Ke(l.wrapper.ownerDocument,"mouseup",Kn)}function Xl(e,t){var a=t.anchor,r=t.head,l=On(e.doc,a.line);if(qn(a,r)==0&&a.sticky==r.sticky)return t;var j=fn(l);if(!j)return t;var Y=Bt(j,a.ch,a.sticky),ne=j[Y];if(ne.from!=a.ch&&ne.to!=a.ch)return t;var ae=Y+(ne.from==a.ch==(ne.level!=1)?0:1);if(ae==0||ae==j.length)return t;var ce;if(r.line!=a.line)ce=(r.line-a.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Ne=Bt(j,r.ch,r.sticky),Qe=Ne-Y||(r.ch-a.ch)*(ne.level==1?-1:1);Ne==ae-1||Ne==ae?ce=Qe<0:ce=Qe>0}var pt=j[ae+(ce?-1:0)],dt=ce==(pt.level==1),Ft=dt?pt.from:pt.to,ln=dt?"after":"before";return a.ch==Ft&&a.sticky==ln?t:new Hr(new Qt(a.line,Ft,ln),r)}function nl(e,t,a,r){var l,j;if(t.touches)l=t.touches[0].clientX,j=t.touches[0].clientY;else try{l=t.clientX,j=t.clientY}catch(pt){return!1}if(l>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ue(t);var Y=e.display,ne=Y.lineDiv.getBoundingClientRect();if(j>ne.bottom||!we(e,a))return me(t);j-=ne.top-Y.viewOffset;for(var ae=0;ae=l){var Ne=Br(e.doc,j),Qe=e.display.gutterSpecs[ae];return st(e,a,e,Ne,Qe.className,t),me(t)}}}function ds(e,t){return nl(e,t,"gutterClick",!0)}function rl(e,t){if(Ca(e.display,t)||Yl(e,t))return;if(xt(e,t,"contextmenu"))return;P||e.display.input.onContextMenu(t)}function Yl(e,t){return we(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-"),ir(e)}var wo={toString:function(){return"CodeMirror.Init"}},il={},qo={};function $l(e){var t=e.optionHandlers;function a(r,l,j,Y){e.defaults[r]=l,j&&(t[r]=Y?function(ne,ae,ce){ce!=wo&&j(ne,ae,ce)}:j)}e.defineOption=a,e.Init=wo,a("value","",function(r,l){return r.setValue(l)},!0),a("mode",null,function(r,l){r.doc.modeOption=l,Da(r)},!0),a("indentUnit",2,Da,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(r){Ya(r),ir(r),Gr(r)},!0),a("lineSeparator",null,function(r,l){if(r.doc.lineSep=l,!l)return;var j=[],Y=r.doc.first;r.doc.iter(function(ae){for(var ce=0;;){var Ne=ae.text.indexOf(l,ce);if(Ne==-1)break;ce=Ne+l.length,j.push(Qt(Y,Ne))}Y++});for(var ne=j.length-1;ne>=0;ne--)Eo(r.doc,l,j[ne],Qt(j[ne].line,j[ne].ch+l.length))}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(r,l,j){r.state.specialChars=new RegExp(l.source+(l.test(" ")?"":"| "),"g"),j!=wo&&r.refresh()}),a("specialCharPlaceholder",zt,function(r){return r.refresh()},!0),a("electricChars",!0),a("inputStyle",o?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(r,l){return r.getInputField().spellcheck=l},!0),a("autocorrect",!1,function(r,l){return r.getInputField().autocorrect=l},!0),a("autocapitalize",!1,function(r,l){return r.getInputField().autocapitalize=l},!0),a("rtlMoveVisually",!S),a("wholeLineUpdateBefore",!0),a("theme","default",function(r){al(r),ci(r)},!0),a("keyMap","default",function(r,l,j){var Y=Jo(l),ne=j!=wo&&Jo(j);ne&&ne.detach&&ne.detach(r,Y),Y.attach&&Y.attach(r,ne||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,Jl,!0),a("gutters",[],function(r,l){r.display.gutterSpecs=Ua(l,r.options.lineNumbers),ci(r)},!0),a("fixedGutter",!0,function(r,l){r.display.gutters.style.left=l?ua(r.display)+"px":"0",r.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(r){return mi(r)},!0),a("scrollbarStyle","native",function(r){Qi(r),mi(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),a("lineNumbers",!1,function(r,l){r.display.gutterSpecs=Ua(r.options.gutters,l),ci(r)},!0),a("firstLineNumber",1,ci,!0),a("lineNumberFormatter",function(r){return r},ci,!0),a("showCursorWhenSelecting",!1,Vr,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(r,l){l=="nocursor"&&(wi(r),r.display.input.blur()),r.display.input.readOnlyChanged(l)}),a("screenReaderLabel",null,function(r,l){l=l===""?null:l,r.display.input.screenReaderLabelChanged(l)}),a("disableInput",!1,function(r,l){l||r.display.input.reset()},!0),a("dragDrop",!0,Ql),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Vr,!0),a("singleCursorHeightPerLine",!0,Vr,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,Ya,!0),a("addModeClass",!1,Ya,!0),a("pollInterval",100),a("undoDepth",200,function(r,l){return r.doc.history.undoDepth=l}),a("historyEventDelay",1250),a("viewportMargin",10,function(r){return r.refresh()},!0),a("maxHighlightLength",1e4,Ya,!0),a("moveInputWithCursor",!0,function(r,l){l||r.display.input.resetPosition()}),a("tabindex",null,function(r,l){return r.display.input.getField().tabIndex=l||""}),a("autofocus",null),a("direction","ltr",function(r,l){return r.doc.setDirection(l)},!0),a("phrases",null)}function Ql(e,t,a){var r=a&&a!=wo;if(!t!=!r){var l=e.display.dragFunctions,j=t?Ke:Dt;j(e.display.scroller,"dragstart",l.start),j(e.display.scroller,"dragenter",l.enter),j(e.display.scroller,"dragover",l.over),j(e.display.scroller,"dragleave",l.leave),j(e.display.scroller,"drop",l.drop)}}function Jl(e){e.options.lineWrapping?(U(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(h(e.display.wrapper,"CodeMirror-wrap"),gn(e)),Na(e),Gr(e),ir(e),setTimeout(function(){return mi(e)},100)}function fa(e,t){var a=this;if(!(this instanceof fa))return new fa(e,t);this.options=t=t?W(t):{},W(il,t,!1);var r=t.value;typeof r=="string"?r=new ti(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var l=new fa.inputStyles[t.inputStyle](this),j=this.display=new Ui(e,r,l,t);j.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 oe,keySeq:null,specialChars:null},t.autofocus&&!o&&j.input.focus(),B&&x<11&&setTimeout(function(){return a.display.input.reset(!0)},20),Zl(this),Dl(),ui(this),this.curOp.forceUpdate=!0,gs(this,r),t.autofocus&&!o||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&li(a)},20):wi(this);for(var Y in qo)qo.hasOwnProperty(Y)&&qo[Y](this,t[Y],wo);la(this),t.finishInit&&t.finishInit(this);for(var ne=0;ne20*20}Ke(t.scroller,"touchstart",function(ae){if(!xt(e,ae)&&!j(ae)&&!ds(e,ae)){t.input.ensurePolled(),clearTimeout(a);var ce=+new Date;t.activeTouch={start:ce,moved:!1,prev:ce-r.end<=300?r:null},ae.touches.length==1&&(t.activeTouch.left=ae.touches[0].pageX,t.activeTouch.top=ae.touches[0].pageY)}}),Ke(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Ke(t.scroller,"touchend",function(ae){var ce=t.activeTouch;if(ce&&!Ca(t,ae)&&ce.left!=null&&!ce.moved&&new Date-ce.start<300){var Ne=e.coordsChar(t.activeTouch,"page"),Qe;!ce.prev||Y(ce,ce.prev)?Qe=new Hr(Ne,Ne):!ce.prev.prev||Y(ce,ce.prev.prev)?Qe=e.findWordAt(Ne):Qe=new Hr(Qt(Ne.line,0),y(e.doc,Qt(Ne.line+1,0))),e.setSelection(Qe.anchor,Qe.head),e.focus(),ue(ae)}l()}),Ke(t.scroller,"touchcancel",l),Ke(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Ai(e,t.scroller.scrollTop),ka(e,t.scroller.scrollLeft,!0),st(e,"scroll",e))}),Ke(t.scroller,"mousewheel",function(ae){return Wi(e,ae)}),Ke(t.scroller,"DOMMouseScroll",function(ae){return Wi(e,ae)}),Ke(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(ae){xt(e,ae)||xe(ae)},over:function(ae){xt(e,ae)||(Rl(e,ae),xe(ae))},start:function(ae){return Ol(e,ae)},drop:ca(e,Tl),leave:function(ae){xt(e,ae)||Ws(e)}};var ne=t.input.getField();Ke(ne,"keyup",function(ae){return Zs.call(e,ae)}),Ke(ne,"keydown",ca(e,Js)),Ke(ne,"keypress",ca(e,qs)),Ke(ne,"focus",function(ae){return li(e,ae)}),Ke(ne,"blur",function(ae){return wi(e,ae)})}var fs=[];fa.defineInitHook=function(e){return fs.push(e)};function Ko(e,t,a,r){var l=e.doc,j;a==null&&(a="add"),a=="smart"&&(l.mode.indent?j=pn(e,t).state:a="prev");var Y=e.options.tabSize,ne=On(l,t),ae=Z(ne.text,null,Y);ne.stateAfter&&(ne.stateAfter=null);var ce=ne.text.match(/^\s*/)[0],Ne;if(!r&&!/\S/.test(ne.text))Ne=0,a="not";else if(a=="smart"&&(Ne=l.mode.indent(j,ne.text.slice(ce.length),ne.text),Ne==Je||Ne>150)){if(!r)return;a="prev"}a=="prev"?t>l.first?Ne=Z(On(l,t-1).text,null,Y):Ne=0:a=="add"?Ne=ae+e.options.indentUnit:a=="subtract"?Ne=ae-e.options.indentUnit:typeof a=="number"&&(Ne=ae+a),Ne=Math.max(0,Ne);var Qe="",pt=0;if(e.options.indentWithTabs)for(var dt=Math.floor(Ne/Y);dt;--dt)pt+=Y,Qe+=" ";if(ptY,ae=Et(t),ce=null;if(ne&&r.ranges.length>1)if(Ci&&Ci.text.join(` + left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(j),j.scrollIntoView(l),e.display.lineSpace.removeChild(j)}}function Ro(e,t,a,r){r==null&&(r=0);var l;!e.options.lineWrapping&&t==a&&(t=t.ch?Qt(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t,a=t.sticky=="before"?Qt(t.line,t.ch+1,"before"):t);for(var j=0;j<5;j++){var Y=!1,ne=$n(e,t),ae=!a||a==t?ne:$n(e,a);l={left:Math.min(ne.left,ae.left),top:Math.min(ne.top,ae.top)-r,right:Math.max(ne.left,ae.left),bottom:Math.max(ne.bottom,ae.bottom)+r};var ce=Oi(e,l),Ne=e.doc.scrollTop,Qe=e.doc.scrollLeft;if(ce.scrollTop!=null&&(Ai(e,ce.scrollTop),Math.abs(e.doc.scrollTop-Ne)>1&&(Y=!0)),ce.scrollLeft!=null&&(ka(e,ce.scrollLeft),Math.abs(e.doc.scrollLeft-Qe)>1&&(Y=!0)),!Y)break}return l}function Gi(e,t){var a=Oi(e,t);a.scrollTop!=null&&Ai(e,a.scrollTop),a.scrollLeft!=null&&ka(e,a.scrollLeft)}function Oi(e,t){var a=e.display,r=Or(e.display);t.top<0&&(t.top=0);var l=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:a.scroller.scrollTop,j=se(e),Y={};t.bottom-t.top>j&&(t.bottom=t.top+j);var ne=e.doc.height+Ce(a),ae=t.topne-r;if(t.topl+j){var Ne=Math.min(t.top,(ce?ne:t.bottom)-j);Ne!=l&&(Y.scrollTop=Ne)}var Qe=e.options.fixedGutter?0:a.gutters.offsetWidth,pt=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:a.scroller.scrollLeft-Qe,dt=Oe(e)-a.gutters.offsetWidth,Ft=t.right-t.left>dt;return Ft&&(t.right=t.left+dt),t.left<10?Y.scrollLeft=0:t.leftdt+pt-3&&(Y.scrollLeft=t.right+(Ft?0:10)-dt),Y}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,a){(t!=null||a!=null)&&Xi(e),t!=null&&(e.curOp.scrollLeft=t),a!=null&&(e.curOp.scrollTop=a)}function ho(e,t){Xi(e),e.curOp.scrollToPos=t}function Xi(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var a=nn(e,t.from),r=nn(e,t.to);Di(e,a,r,t.margin)}}function Di(e,t,a,r){var l=Oi(e,{left:Math.min(t.left,a.left),top:Math.min(t.top,a.top)-r,right:Math.max(t.right,a.right),bottom:Math.max(t.bottom,a.bottom)+r});Ri(e,l.scrollLeft,l.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,a){if(t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),e.display.scroller.scrollTop==t&&!a)return;e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t)}function ka(e,t,a,r){if(t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(a?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)return;e.doc.scrollLeft=t,Rr(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t)}function fi(e){var t=e.display,a=t.gutters.offsetWidth,r=Math.round(e.doc.height+Ce(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?a:0,docHeight:r,scrollHeight:r+et(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:a}}var pi=function(e,t,a){this.cm=a;var r=this.vert=i("div",[i("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),l=this.horiz=i("div",[i("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=l.tabIndex=-1,e(r),e(l),Ke(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),Ke(l,"scroll",function(){l.clientWidth&&t(l.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,B&&x<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};pi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,a=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var l=e.viewHeight-(t?r: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(t){this.horiz.style.display="block",this.horiz.style.right=a?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var j=e.viewWidth-e.barLeft-(a?r: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&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?r:0,bottom:t?r: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=u&&!g?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new oe,this.disableVert=new oe},pi.prototype.enableZeroWidthBar=function(e,t,a){e.style.pointerEvents="auto";function r(){var l=e.getBoundingClientRect(),j=a=="vert"?document.elementFromPoint(l.right-1,(l.top+l.bottom)/2):document.elementFromPoint((l.right+l.left)/2,l.bottom-1);j!=e?e.style.pointerEvents="none":t.set(1e3,r)}t.set(1e3,r)},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=fi(e));var a=e.display.barWidth,r=e.display.barHeight;Yi(e,t);for(var l=0;l<4&&a!=e.display.barWidth||r!=e.display.barHeight;l++)a!=e.display.barWidth&&e.options.lineWrapping&&Si(e),Yi(e,fi(e)),a=e.display.barWidth,r=e.display.barHeight}function Yi(e,t){var a=e.display,r=a.scrollbars.update(t);a.sizer.style.paddingRight=(a.barWidth=r.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=r.bottom)+"px",a.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=r.bottom+"px",a.scrollbarFiller.style.width=r.right+"px"):a.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=r.bottom+"px",a.gutterFiller.style.width=t.gutterWidth+"px"):a.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(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ke(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,a){a=="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},dr(e.curOp)}function xi(e){var t=e.curOp;t&&Hn(t,function(a){for(var r=0;r=a.viewTo)||a.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&&_i(e.cm,e.update)}function fo(e){var t=e.cm,a=t.display;e.updatedDisplay&&Si(t),e.barMeasure=fi(t),a.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Ie(t,a.maxLine,a.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+e.adjustWidthTo+et(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+e.adjustWidthTo-Oe(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=a.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 a=+new Date+e.options.workTime,r=pn(e,t.highlightFrontier),l=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(j){if(r.line>=e.display.viewFrom){var Y=j.styles,ne=j.text.length>e.options.maxHighlightLength?kn(t.mode,r.state):null,ae=ze(e,j,r,!0);ne&&(r.state=ne),j.styles=ae.styles;var ce=j.styleClasses,Ne=ae.classes;Ne?j.styleClasses=Ne:ce&&(j.styleClasses=null);for(var Qe=!Y||Y.length!=j.styles.length||ce!=Ne&&(!ce||!Ne||ce.bgClass!=Ne.bgClass||ce.textClass!=Ne.textClass),pt=0;!Qe&&pta)return Ni(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),l.length&&Ha(e,function(){for(var j=0;j=a.viewFrom&&t.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&si(e)==0)return!1;la(e)&&(Jr(e),t.dims=ur(e));var l=r.first+r.size,j=Math.max(t.visible.from-e.options.viewportMargin,r.first),Y=Math.min(l,t.visible.to+e.options.viewportMargin);a.viewFromY&&a.viewTo-Y<20&&(Y=Math.min(l,a.viewTo)),zn&&(j=Le(e.doc,j),Y=mt(e.doc,Y));var ne=j!=a.viewFrom||Y!=a.viewTo||a.lastWrapHeight!=t.wrapperHeight||a.lastWrapWidth!=t.wrapperWidth;hi(e,j,Y),a.viewOffset=Nt(On(e.doc,a.viewFrom)),e.display.mover.style.top=a.viewOffset+"px";var ae=si(e);if(!ne&&ae==0&&!t.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var ce=oo(e);return ae>4&&(a.lineDiv.style.display="none"),vo(e,a.updateLineNumbers,t.dims),ae>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,so(ce),c(a.cursorDiv),c(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,ne&&(a.lastWrapHeight=t.wrapperHeight,a.lastWrapWidth=t.wrapperWidth,Ni(e,400)),a.updateLineNumbers=null,!0}function Ji(e,t){for(var a=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==Oe(e)){if(a&&a.top!=null&&(a={top:Math.min(e.doc.height+Ce(e.display)-se(e),a.top)}),t.visible=ki(e.display,e.doc,a),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=ki(e.display,e.doc,a));if(!_i(e,t))break;Si(e);var l=fi(e);Vr(e),mi(e,l),Kr(e,l),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 a=new ei(e,t);if(_i(e,a)){Si(e),Ji(e,a);var r=fi(e);Vr(e),mi(e,r),Kr(e,r),a.finish()}}function vo(e,t,a){var r=e.display,l=e.options.lineNumbers,j=r.lineDiv,Y=j.firstChild;function ne(Ft){var ln=Ft.nextSibling;return k&&u&&e.display.currentWheelTarget==Ft?Ft.style.display="none":Ft.parentNode.removeChild(Ft),ln}for(var ae=r.view,ce=r.viewFrom,Ne=0;Ne-1&&(dt=!1),ea(e,Qe,ce,a)),dt&&(c(Qe.lineNumber),Qe.lineNumber.appendChild(document.createTextNode(fa(e.options,ce)))),Y=Qe.node.nextSibling}ce+=Qe.size}for(;Y;)Y=ne(Y)}function Zi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function Kr(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+et(e)+"px"}function Rr(e){var t=e.display,a=t.view;if(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))return;for(var r=ua(t)-t.scroller.scrollLeft+e.doc.scrollLeft,l=t.gutters.offsetWidth,j=r+"px",Y=0;YY.clientWidth,ae=Y.scrollHeight>Y.clientHeight;if(!(r&&ne||l&&ae))return;if(l&&u&&k){e:for(var ce=t.target,Ne=j.view;ce!=Y;ce=ce.parentNode)for(var Qe=0;Qe=0&&qn(e,r.to())<=0)return a}return-1};var Hr=function(e,t){this.anchor=e,this.head=t};Hr.prototype.from=function(){return ra(this.anchor,this.head)},Hr.prototype.to=function(){return jr(this.anchor,this.head)},Hr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function gr(e,t,a){var r=e&&e.options.selectionsMayTouch,l=t[a];t.sort(function(pt,dt){return qn(pt.from(),dt.from())}),a=ie(t,l);for(var j=1;j0:ae>=0){var ce=ra(ne.from(),Y.from()),Ne=jr(ne.to(),Y.to()),Qe=ne.empty()?Y.from()==Y.head:ne.from()==ne.head;j<=a&&--a,t.splice(--j,2,new Hr(Qe?Ne:ce,Qe?ce:Ne))}}return new Ka(t,a)}function Pn(e,t){return new Ka([new Hr(e,t||e)],0)}function er(e){return e.text?Qt(e.from.line+e.text.length-1,le(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function wr(e,t){if(qn(e,t.from)<0)return e;if(qn(e,t.to)<=0)return er(t);var a=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=er(t).ch-t.to.ch),Qt(a,r)}function aa(e,t){for(var a=[],r=0;r1&&e.remove(ne.line+1,Ft-1),e.insert(ne.line+1,Dn)}Zn(e,"change",e,t)}function Sa(e,t,a){function r(l,j,Y){if(l.linked)for(var ne=0;ne1&&!e.done[e.done.length-2].ranges)return e.done.pop(),le(e.done)}function Es(e,t,a,r){var l=e.history;l.undone.length=0;var j=+new Date,Y,ne;if((l.lastOp==r||l.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&l.lastModTime>j-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(Y=pl(l,l.lastOp==r)))ne=le(Y.changes),qn(t.from,t.to)==0&&qn(t.from,ne.to)==0?ne.to=er(t):Y.changes.push(rs(e,t));else{var ae=le(l.done);for((!ae||!ae.ranges)&&Go(e.sel,l.done),Y={changes:[rs(e,t)],generation:l.generation},l.done.push(Y);l.done.length>l.undoDepth;)l.done.shift(),l.done[0].ranges||l.done.shift()}l.done.push(a),l.generation=++l.maxGeneration,l.lastModTime=l.lastSelTime=j,l.lastOp=l.lastSelOp=r,l.lastOrigin=l.lastSelOrigin=t.origin,ne||st(e,"historyAdded")}function ml(e,t,a,r){var l=t.charAt(0);return l=="*"||l=="+"&&a.ranges.length==r.ranges.length&&a.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function vl(e,t,a,r){var l=e.history,j=r&&r.origin;a==l.lastSelOp||j&&l.lastSelOrigin==j&&(l.lastModTime==l.lastSelTime&&l.lastOrigin==j||ml(e,j,le(l.done),t))?l.done[l.done.length-1]=t:Go(t,l.done),l.lastSelTime=+new Date,l.lastSelOrigin=j,l.lastSelOp=a,r&&r.clearRedo!==!1&&bs(l.undone)}function Go(e,t){var a=le(t);a&&a.ranges&&a.equals(e)||t.push(e)}function xs(e,t,a,r){var l=t["spans_"+e.id],j=0;e.iter(Math.max(e.first,a),Math.min(e.first+e.size,r),function(Y){Y.markedSpans&&((l||(l=t["spans_"+e.id]={}))[j]=Y.markedSpans),++j})}function gl(e){if(!e)return null;for(var t,a=0;a-1&&(le(ne)[Qe]=ce[Qe],delete ce[Qe]))}}return r}function as(e,t,a,r){if(r){var l=e.anchor;if(a){var j=qn(t,l)<0;j!=qn(a,l)<0?(l=t,t=a):j!=qn(t,a)<0&&(t=a)}return new Hr(l,t)}else return new Hr(a||t,t)}function Vo(e,t,a,r,l){l==null&&(l=e.cm&&(e.cm.display.shift||e.extend)),Va(e,new Ka([as(e.sel.primary(),t,a,l)],0),r)}function Cs(e,t,a){for(var r=[],l=e.cm&&(e.cm.display.shift||e.extend),j=0;j=t.ch:ne.to>t.ch))){if(l&&(st(ae,"beforeCursorEnter"),ae.explicitlyCleared))if(j.markedSpans){--Y;continue}else break;if(!ae.atomic)continue;if(a){var Qe=ae.find(r<0?1:-1),pt=void 0;if((r<0?Ne:ce)&&(Qe=Ds(e,Qe,-r,Qe&&Qe.line==t.line?j:null)),Qe&&Qe.line==t.line&&(pt=qn(Qe,a))&&(r<0?pt<0:pt>0))return yo(e,Qe,t,r,l)}var dt=ae.find(r<0?-1:1);return(r<0?ce:Ne)&&(dt=Ds(e,dt,r,dt.line==t.line?j:null)),dt?yo(e,dt,t,r,l):null}}return t}function Yo(e,t,a,r,l){var j=r||1,Y=yo(e,t,a,j,l)||!l&&yo(e,t,a,j,!0)||yo(e,t,a,-j,l)||!l&&yo(e,t,a,-j,!0);return Y||(e.cantEdit=!0,Qt(e.first,0))}function Ds(e,t,a,r){return a<0&&t.ch==0?t.line>e.first?y(e,Qt(t.line-1)):null:a>0&&t.ch==(r||On(e,t.line)).text.length?t.line=0;--l)Ms(e,{from:r[l].from,to:r[l].to,text:l?[""]:t.text,origin:t.origin});else Ms(e,t)}function Ms(e,t){if(t.text.length==1&&t.text[0]==""&&qn(t.from,t.to)==0)return;var a=aa(e,t);Es(e,t,a,e.cm?e.cm.curOp.id:NaN),Po(e,t,a,Ur(e,t));var r=[];Sa(e,function(l,j){!j&&ie(r,l.history)==-1&&(Ns(l.history,t),r.push(l.history)),Po(l,t,null,Ur(l,t))})}function $o(e,t,a){var r=e.cm&&e.cm.state.suppressEdits;if(r&&!a)return;for(var l=e.history,j,Y=e.sel,ne=t=="undo"?l.done:l.undone,ae=t=="undo"?l.undone:l.done,ce=0;ce=0;--dt){var Ft=pt(dt);if(Ft)return Ft.v}}function Ls(e,t){if(t==0)return;if(e.first+=t,e.sel=new Ka(Se(e.sel.ranges,function(l){return new Hr(Qt(l.anchor.line+t,l.anchor.ch),Qt(l.head.line+t,l.head.ch))}),e.sel.primIndex),e.cm){Gr(e.cm,e.first,e.first-t,t);for(var a=e.cm.display,r=a.viewFrom;re.lastLine())return;if(t.from.linej&&(t={from:t.from,to:Qt(j,On(e,j).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Fr(e,t.from,t.to),a||(a=aa(e,t)),e.cm?El(e.cm,t,r):Hi(e,t,r),Xo(e,a,Ae),e.cantEdit&&Yo(e,Qt(e.firstLine(),0))&&(e.cantEdit=!1)}function El(e,t,a){var r=e.doc,l=e.display,j=t.from,Y=t.to,ne=!1,ae=j.line;e.options.lineWrapping||(ae=hr(ut(On(r,j.line))),r.iter(ae,Y.line+1,function(dt){if(dt==l.maxLine)return ne=!0,!0})),r.sel.contains(t.from,t.to)>-1&&je(e),Hi(r,t,a,Ja(e)),e.options.lineWrapping||(r.iter(ae,j.line+t.text.length,function(dt){var Ft=Sn(dt);Ft>l.maxLineLength&&(l.maxLine=dt,l.maxLineLength=Ft,l.maxLineChanged=!0,ne=!1)}),ne&&(e.curOp.updateMaxLine=!0)),Jn(r,j.line),Ni(e,400);var ce=t.text.length-(Y.line-j.line)-1;t.full?Gr(e):j.line==Y.line&&t.text.length==1&&!gi(e.doc,t)?Xr(e,j.line,"text"):Gr(e,j.line,Y.line+1,ce);var Ne=we(e,"changes"),Qe=we(e,"change");if(Qe||Ne){var pt={from:j,to:Y,text:t.text,removed:t.removed,origin:t.origin};Qe&&Zn(e,"change",e,pt),Ne&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(pt)}e.display.selForContextMenu=null}function Eo(e,t,a,r,l){var j;r||(r=a),qn(r,a)<0&&(j=[r,a],a=j[0],r=j[1]),typeof t=="string"&&(t=e.splitLines(t)),bo(e,{from:a,to:r,text:t,origin:l})}function ks(e,t,a,r){a1||!(this.children[0]instanceof Lo))){var ne=[];this.collapse(ne),this.children=[new Lo(ne)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var Y=l.lines.length%25+25,ne=Y;ne10);e.parent.maybeSpill()},iterN:function(e,t,a){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=ce,e.display.maxLineLength=Ne,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&Gr(e,r,l+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,r,l),t&&xi(e),this.parent&&this.parent.clear()},qi.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var a,r,l=0;l0||Y==0&&j.clearWhenEmpty!==!1)return j;if(j.replacedWith&&(j.collapsed=!0,j.widgetNode=C("span",[j.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||j.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(j.widgetNode.insertLeft=!0)),j.collapsed){if(bt(e,t.line,t,a,j)||t.line!=a.line&&bt(e,a.line,t,a,j))throw new Error("Inserting collapsed marker partially overlapping an existing one");Un()}j.addToHistory&&Es(e,{from:t,to:a,origin:"markText"},e.sel,NaN);var ne=t.line,ae=e.cm,ce;if(e.iter(ne,a.line+1,function(Qe){ae&&j.collapsed&&!ae.options.lineWrapping&&ut(Qe)==ae.display.maxLine&&(ce=!0),j.collapsed&&ne!=t.line&&Pr(Qe,0),Cn(Qe,new mn(j,ne==t.line?t.ch:null,ne==a.line?a.ch:null)),++ne}),j.collapsed&&e.iter(t.line,a.line+1,function(Qe){Pt(e,Qe)&&Pr(Qe,0)}),j.clearOnEnter&&Ke(j,"beforeCursorEnter",function(){return j.clear()}),j.readOnly&&(Gn(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),j.collapsed&&(j.id=++Us,j.atomic=!0),ae){if(ce&&(ae.curOp.updateMaxLine=!0),j.collapsed)Gr(ae,t.line,a.line+1);else if(j.className||j.startStyle||j.endStyle||j.css||j.attributes||j.title)for(var Ne=t.line;Ne<=a.line;Ne++)Xr(ae,Ne,"text");j.atomic&&Os(ae.doc),Zn(ae,"markerAdded",ae,j)}return j}var No=function(e,t){this.markers=e,this.primary=t;for(var a=0;a=0;ae--)bo(this,r[ae]);ne?Ss(this,ne):this.cm&&yi(this.cm)}),undo:da(function(){$o(this,"undo")}),redo:da(function(){$o(this,"redo")}),undoSelection:da(function(){$o(this,"undo",!0)}),redoSelection:da(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,a=0,r=0;r=e.ch)&&t.push(l.marker.parent||l.marker)}return t},findMarks:function(e,t,a){e=y(this,e),t=y(this,t);var r=[],l=e.line;return this.iter(e.line,t.line+1,function(j){var Y=j.markedSpans;if(Y)for(var ne=0;ne=ae.to||ae.from==null&&l!=e.line||ae.from!=null&&l==t.line&&ae.from>=t.ch)&&(!a||a(ae.marker))&&r.push(ae.marker.parent||ae.marker)}++l}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var a=t.markedSpans;if(a)for(var r=0;re)return t=e,!0;e-=j,++a}),y(this,Qt(a,t))},indexFromPos:function(e){e=y(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 Ne=e.dataTransfer.getData("Text");if(Ne){var Qe;if(t.state.draggingText&&!t.state.draggingText.copy&&(Qe=t.listSelections()),Xo(t.doc,Pn(a,a)),Qe)for(var pt=0;pt=0;ne--)Eo(e.doc,"",r[ne].from,r[ne].to,"+delete");yi(e)})}function os(e,t,a){var r=He(e.text,t+a,a);return r<0||r>e.text.length?null:r}function ss(e,t,a){var r=os(e,t.ch,a);return r==null?null:new Qt(t.line,r,a<0?"after":"before")}function ls(e,t,a,r,l){if(e){t.doc.direction=="rtl"&&(l=-l);var j=hn(a,t.doc.direction);if(j){var Y=l<0?le(j):j[0],ne=l<0==(Y.level==1),ae=ne?"after":"before",ce;if(Y.level>0||t.doc.direction=="rtl"){var Ne=Ue(t,a);ce=l<0?a.text.length-1:0;var Qe=lt(t,Ne,ce).top;ce=Rt(function(pt){return lt(t,Ne,pt).top==Qe},l<0==(Y.level==1)?Y.from:Y.to-1,ce),ae=="before"&&(ce=os(a,ce,1))}else ce=l<0?Y.to:Y.from;return new Qt(r,ce,ae)}}return new Qt(r,l<0?a.text.length:0,l<0?"before":"after")}function kl(e,t,a,r){var l=hn(t,e.doc.direction);if(!l)return ss(t,a,r);a.ch>=t.text.length?(a.ch=t.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var j=Bt(l,a.ch,a.sticky),Y=l[j];if(e.doc.direction=="ltr"&&Y.level%2==0&&(r>0?Y.to>a.ch:Y.from=Y.from&&pt>=Ne.begin)){var dt=Qe?"before":"after";return new Qt(a.line,pt,dt)}}var Ft=function(Dn,Kn,An){for(var Xn=function(ia,Fa){return Fa?new Qt(a.line,ne(ia,1),"before"):new Qt(a.line,ia,"after")};Dn>=0&&Dn0==(vr.level!=1),Dr=cr?An.begin:ne(An.end,-1);if(vr.from<=Dr&&Dr0?Ne.end:ne(Ne.begin,-1);return xn!=null&&!(r>0&&xn==t.text.length)&&(ln=Ft(r>0?0:l.length-1,r,ce(xn)),ln)?ln:null}var Fo={selectAll:As,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ae)},killLine:function(e){return Co(e,function(t){if(t.empty()){var a=On(e.doc,t.head.line).text.length;return t.head.ch==a&&t.head.line0)l=new Qt(l.line,l.ch+1),e.replaceRange(j.charAt(l.ch-1)+j.charAt(l.ch-2),Qt(l.line,l.ch-2),l,"+transpose");else if(l.line>e.doc.first){var Y=On(e.doc,l.line-1).text;Y&&(l=new Qt(l.line,1),e.replaceRange(j.charAt(0)+e.doc.lineSeparator()+Y.charAt(Y.length-1),Qt(l.line-1,Y.length-1),l,"+transpose"))}}a.push(new Hr(l,l))}e.setSelections(a)})},newlineAndIndent:function(e){return Ha(e,function(){for(var t=e.listSelections(),a=t.length-1;a>=0;a--)e.replaceRange(e.doc.lineSeparator(),t[a].anchor,t[a].head,"+input");t=e.listSelections();for(var r=0;re&&qn(t,this.pos)==0&&a==this.button};var Wo,Ho;function Wl(e,t){var a=+new Date;return Ho&&Ho.compare(a,e,t)?(Wo=Ho=null,"triple"):Wo&&Wo.compare(a,e,t)?(Ho=new cs(a,e,t),Wo=null,"double"):(Wo=new cs(a,e,t),Ho=null,"single")}function el(e){var t=this,a=t.display;if(xt(t,e)||a.activeTouch&&a.input.supportsTouch())return;if(a.input.ensurePolled(),a.shift=e.shiftKey,Ca(a,e)){k||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(ds(t,e))return;var r=wa(t,e),l=We(e),j=r?Wl(r,l):"single";if(window.focus(),l==1&&t.state.selectingText&&t.state.selectingText(e),r&&Hl(t,l,r,j,e))return;l==1?r?zl(t,r,j,e):nt(e)==a.scroller&&ue(e):l==2?(r&&Vo(t.doc,r),setTimeout(function(){return a.input.focus()},20)):l==3&&(P?t.display.input.onContextMenu(e):no(t))}function Hl(e,t,a,r,l){var j="Click";return r=="double"?j="Double"+j:r=="triple"&&(j="Triple"+j),j=(t==1?"Left":t==2?"Middle":"Right")+j,Bo(e,Gs(j,l),l,function(Y){if(typeof Y=="string"&&(Y=Fo[Y]),!Y)return!1;var ne=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),ne=Y(e,a)!=Je}finally{e.state.suppressEdits=!1}return ne})}function Kl(e,t,a){var r=e.getOption("configureMouse"),l=r?r(e,t,a):{};if(l.unit==null){var j=h?a.shiftKey&&a.metaKey:a.altKey;l.unit=j?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(l.extend==null||e.doc.extend)&&(l.extend=e.doc.extend||a.shiftKey),l.addNew==null&&(l.addNew=u?a.metaKey:a.ctrlKey),l.moveOnDrag==null&&(l.moveOnDrag=!(u?a.altKey:a.ctrlKey)),l}function zl(e,t,a,r){B?setTimeout(L(Li,e),0):e.curOp.focus=N();var l=Kl(e,a,r),j=e.doc.sel,Y;e.options.dragDrop&&St&&!e.isReadOnly()&&a=="single"&&(Y=j.contains(t))>-1&&(qn((Y=j.ranges[Y]).from(),t)<0||t.xRel>0)&&(qn(Y.to(),t)>0||t.xRel<0)?Gl(e,r,t,l):Vl(e,r,t,l)}function Gl(e,t,a,r){var l=e.display,j=!1,Y=ca(e,function(ce){k&&(l.scroller.draggable=!1),e.state.draggingText=!1,Dt(l.wrapper.ownerDocument,"mouseup",Y),Dt(l.wrapper.ownerDocument,"mousemove",ne),Dt(l.scroller,"dragstart",ae),Dt(l.scroller,"drop",Y),j||(ue(ce),r.addNew||Vo(e.doc,a,null,null,r.extend),k&&!M||B&&x==9?setTimeout(function(){l.wrapper.ownerDocument.body.focus({preventScroll:!0}),l.input.focus()},20):l.input.focus())}),ne=function(ce){j=j||Math.abs(t.clientX-ce.clientX)+Math.abs(t.clientY-ce.clientY)>=10},ae=function(){return j=!0};k&&(l.scroller.draggable=!0),e.state.draggingText=Y,Y.copy=!r.moveOnDrag,l.scroller.dragDrop&&l.scroller.dragDrop(),Ke(l.wrapper.ownerDocument,"mouseup",Y),Ke(l.wrapper.ownerDocument,"mousemove",ne),Ke(l.scroller,"dragstart",ae),Ke(l.scroller,"drop",Y),no(e),setTimeout(function(){return l.input.focus()},20)}function tl(e,t,a){if(a=="char")return new Hr(t,t);if(a=="word")return e.findWordAt(t);if(a=="line")return new Hr(Qt(t.line,0),y(e.doc,Qt(t.line+1,0)));var r=a(e,t);return new Hr(r.from,r.to)}function Vl(e,t,a,r){var l=e.display,j=e.doc;ue(t);var Y,ne,ae=j.sel,ce=ae.ranges;if(r.addNew&&!r.extend?(ne=j.sel.contains(a),ne>-1?Y=ce[ne]:Y=new Hr(a,a)):(Y=j.sel.primary(),ne=j.sel.primIndex),r.unit=="rectangle")r.addNew||(Y=new Hr(a,a)),a=wa(e,t,!0,!0),ne=-1;else{var Ne=tl(e,a,r.unit);r.extend?Y=as(Y,Ne.anchor,Ne.head,r.extend):Y=Ne}r.addNew?ne==-1?(ne=ce.length,Va(j,gr(e,ce.concat([Y]),ne),{scroll:!1,origin:"*mouse"})):ce.length>1&&ce[ne].empty()&&r.unit=="char"&&!r.extend?(Va(j,gr(e,ce.slice(0,ne).concat(ce.slice(ne+1)),0),{scroll:!1,origin:"*mouse"}),ae=j.sel):is(j,ne,Y,ke):(ne=0,Va(j,new Ka([Y],0),ke),ae=j.sel);var Qe=a;function pt(An){if(qn(Qe,An)==0)return;if(Qe=An,r.unit=="rectangle"){for(var Xn=[],vr=e.options.tabSize,cr=Z(On(j,a.line).text,a.ch,vr),Dr=Z(On(j,An.line).text,An.ch,vr),ia=Math.min(cr,Dr),Fa=Math.max(cr,Dr),ga=Math.min(a.line,An.line),oi=Math.min(e.lastLine(),Math.max(a.line,An.line));ga<=oi;ga++){var ni=On(j,ga).text,Aa=Xe(ni,ia,vr);ia==Fa?Xn.push(new Hr(Qt(ga,Aa),Qt(ga,Aa))):ni.length>Aa&&Xn.push(new Hr(Qt(ga,Aa),Qt(ga,Xe(ni,Fa,vr))))}Xn.length||Xn.push(new Hr(a,a)),Va(j,gr(e,ae.ranges.slice(0,ne).concat(Xn),ne),{origin:"*mouse",scroll:!1}),e.scrollIntoView(An)}else{var ri=Y,za=tl(e,An,r.unit),Ia=ri.anchor,Pa;qn(za.anchor,Ia)>0?(Pa=za.head,Ia=ra(ri.from(),za.anchor)):(Pa=za.anchor,Ia=jr(ri.to(),za.head));var xa=ae.ranges.slice(0);xa[ne]=Xl(e,new Hr(y(j,Ia),Pa)),Va(j,gr(e,xa,ne),ke)}}var dt=l.wrapper.getBoundingClientRect(),Ft=0;function ln(An){var Xn=++Ft,vr=wa(e,An,!0,r.unit=="rectangle");if(!vr)return;if(qn(vr,Qe)!=0){e.curOp.focus=N(),pt(vr);var cr=ki(l,j);(vr.line>=cr.to||vr.linedt.bottom?20:0;Dr&&setTimeout(ca(e,function(){if(Ft!=Xn)return;l.scroller.scrollTop+=Dr,ln(An)}),50)}}function xn(An){e.state.selectingText=!1,Ft=Infinity,An&&(ue(An),l.input.focus()),Dt(l.wrapper.ownerDocument,"mousemove",Dn),Dt(l.wrapper.ownerDocument,"mouseup",Kn),j.history.lastSelOrigin=null}var Dn=ca(e,function(An){An.buttons===0||!We(An)?xn(An):ln(An)}),Kn=ca(e,xn);e.state.selectingText=Kn,Ke(l.wrapper.ownerDocument,"mousemove",Dn),Ke(l.wrapper.ownerDocument,"mouseup",Kn)}function Xl(e,t){var a=t.anchor,r=t.head,l=On(e.doc,a.line);if(qn(a,r)==0&&a.sticky==r.sticky)return t;var j=hn(l);if(!j)return t;var Y=Bt(j,a.ch,a.sticky),ne=j[Y];if(ne.from!=a.ch&&ne.to!=a.ch)return t;var ae=Y+(ne.from==a.ch==(ne.level!=1)?0:1);if(ae==0||ae==j.length)return t;var ce;if(r.line!=a.line)ce=(r.line-a.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var Ne=Bt(j,r.ch,r.sticky),Qe=Ne-Y||(r.ch-a.ch)*(ne.level==1?-1:1);Ne==ae-1||Ne==ae?ce=Qe<0:ce=Qe>0}var pt=j[ae+(ce?-1:0)],dt=ce==(pt.level==1),Ft=dt?pt.from:pt.to,ln=dt?"after":"before";return a.ch==Ft&&a.sticky==ln?t:new Hr(new Qt(a.line,Ft,ln),r)}function nl(e,t,a,r){var l,j;if(t.touches)l=t.touches[0].clientX,j=t.touches[0].clientY;else try{l=t.clientX,j=t.clientY}catch(pt){return!1}if(l>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ue(t);var Y=e.display,ne=Y.lineDiv.getBoundingClientRect();if(j>ne.bottom||!we(e,a))return me(t);j-=ne.top-Y.viewOffset;for(var ae=0;ae=l){var Ne=Br(e.doc,j),Qe=e.display.gutterSpecs[ae];return st(e,a,e,Ne,Qe.className,t),me(t)}}}function ds(e,t){return nl(e,t,"gutterClick",!0)}function rl(e,t){if(Ca(e.display,t)||Yl(e,t))return;if(xt(e,t,"contextmenu"))return;P||e.display.input.onContextMenu(t)}function Yl(e,t){return we(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-"),ir(e)}var wo={toString:function(){return"CodeMirror.Init"}},il={},qo={};function $l(e){var t=e.optionHandlers;function a(r,l,j,Y){e.defaults[r]=l,j&&(t[r]=Y?function(ne,ae,ce){ce!=wo&&j(ne,ae,ce)}:j)}e.defineOption=a,e.Init=wo,a("value","",function(r,l){return r.setValue(l)},!0),a("mode",null,function(r,l){r.doc.modeOption=l,Da(r)},!0),a("indentUnit",2,Da,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(r){Ya(r),ir(r),Gr(r)},!0),a("lineSeparator",null,function(r,l){if(r.doc.lineSep=l,!l)return;var j=[],Y=r.doc.first;r.doc.iter(function(ae){for(var ce=0;;){var Ne=ae.text.indexOf(l,ce);if(Ne==-1)break;ce=Ne+l.length,j.push(Qt(Y,Ne))}Y++});for(var ne=j.length-1;ne>=0;ne--)Eo(r.doc,l,j[ne],Qt(j[ne].line,j[ne].ch+l.length))}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(r,l,j){r.state.specialChars=new RegExp(l.source+(l.test(" ")?"":"| "),"g"),j!=wo&&r.refresh()}),a("specialCharPlaceholder",zt,function(r){return r.refresh()},!0),a("electricChars",!0),a("inputStyle",o?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(r,l){return r.getInputField().spellcheck=l},!0),a("autocorrect",!1,function(r,l){return r.getInputField().autocorrect=l},!0),a("autocapitalize",!1,function(r,l){return r.getInputField().autocapitalize=l},!0),a("rtlMoveVisually",!S),a("wholeLineUpdateBefore",!0),a("theme","default",function(r){al(r),ci(r)},!0),a("keyMap","default",function(r,l,j){var Y=Jo(l),ne=j!=wo&&Jo(j);ne&&ne.detach&&ne.detach(r,Y),Y.attach&&Y.attach(r,ne||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,Jl,!0),a("gutters",[],function(r,l){r.display.gutterSpecs=Ua(l,r.options.lineNumbers),ci(r)},!0),a("fixedGutter",!0,function(r,l){r.display.gutters.style.left=l?ua(r.display)+"px":"0",r.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(r){return mi(r)},!0),a("scrollbarStyle","native",function(r){Qi(r),mi(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),a("lineNumbers",!1,function(r,l){r.display.gutterSpecs=Ua(r.options.gutters,l),ci(r)},!0),a("firstLineNumber",1,ci,!0),a("lineNumberFormatter",function(r){return r},ci,!0),a("showCursorWhenSelecting",!1,Vr,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(r,l){l=="nocursor"&&(wi(r),r.display.input.blur()),r.display.input.readOnlyChanged(l)}),a("screenReaderLabel",null,function(r,l){l=l===""?null:l,r.display.input.screenReaderLabelChanged(l)}),a("disableInput",!1,function(r,l){l||r.display.input.reset()},!0),a("dragDrop",!0,Ql),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,Vr,!0),a("singleCursorHeightPerLine",!0,Vr,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,Ya,!0),a("addModeClass",!1,Ya,!0),a("pollInterval",100),a("undoDepth",200,function(r,l){return r.doc.history.undoDepth=l}),a("historyEventDelay",1250),a("viewportMargin",10,function(r){return r.refresh()},!0),a("maxHighlightLength",1e4,Ya,!0),a("moveInputWithCursor",!0,function(r,l){l||r.display.input.resetPosition()}),a("tabindex",null,function(r,l){return r.display.input.getField().tabIndex=l||""}),a("autofocus",null),a("direction","ltr",function(r,l){return r.doc.setDirection(l)},!0),a("phrases",null)}function Ql(e,t,a){var r=a&&a!=wo;if(!t!=!r){var l=e.display.dragFunctions,j=t?Ke:Dt;j(e.display.scroller,"dragstart",l.start),j(e.display.scroller,"dragenter",l.enter),j(e.display.scroller,"dragover",l.over),j(e.display.scroller,"dragleave",l.leave),j(e.display.scroller,"drop",l.drop)}}function Jl(e){e.options.lineWrapping?(U(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(f(e.display.wrapper,"CodeMirror-wrap"),gn(e)),Na(e),Gr(e),ir(e),setTimeout(function(){return mi(e)},100)}function ha(e,t){var a=this;if(!(this instanceof ha))return new ha(e,t);this.options=t=t?W(t):{},W(il,t,!1);var r=t.value;typeof r=="string"?r=new ti(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var l=new ha.inputStyles[t.inputStyle](this),j=this.display=new Ui(e,r,l,t);j.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 oe,keySeq:null,specialChars:null},t.autofocus&&!o&&j.input.focus(),B&&x<11&&setTimeout(function(){return a.display.input.reset(!0)},20),Zl(this),Dl(),ui(this),this.curOp.forceUpdate=!0,gs(this,r),t.autofocus&&!o||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&li(a)},20):wi(this);for(var Y in qo)qo.hasOwnProperty(Y)&&qo[Y](this,t[Y],wo);la(this),t.finishInit&&t.finishInit(this);for(var ne=0;ne20*20}Ke(t.scroller,"touchstart",function(ae){if(!xt(e,ae)&&!j(ae)&&!ds(e,ae)){t.input.ensurePolled(),clearTimeout(a);var ce=+new Date;t.activeTouch={start:ce,moved:!1,prev:ce-r.end<=300?r:null},ae.touches.length==1&&(t.activeTouch.left=ae.touches[0].pageX,t.activeTouch.top=ae.touches[0].pageY)}}),Ke(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),Ke(t.scroller,"touchend",function(ae){var ce=t.activeTouch;if(ce&&!Ca(t,ae)&&ce.left!=null&&!ce.moved&&new Date-ce.start<300){var Ne=e.coordsChar(t.activeTouch,"page"),Qe;!ce.prev||Y(ce,ce.prev)?Qe=new Hr(Ne,Ne):!ce.prev.prev||Y(ce,ce.prev.prev)?Qe=e.findWordAt(Ne):Qe=new Hr(Qt(Ne.line,0),y(e.doc,Qt(Ne.line+1,0))),e.setSelection(Qe.anchor,Qe.head),e.focus(),ue(ae)}l()}),Ke(t.scroller,"touchcancel",l),Ke(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Ai(e,t.scroller.scrollTop),ka(e,t.scroller.scrollLeft,!0),st(e,"scroll",e))}),Ke(t.scroller,"mousewheel",function(ae){return Wi(e,ae)}),Ke(t.scroller,"DOMMouseScroll",function(ae){return Wi(e,ae)}),Ke(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(ae){xt(e,ae)||xe(ae)},over:function(ae){xt(e,ae)||(Rl(e,ae),xe(ae))},start:function(ae){return Ol(e,ae)},drop:ca(e,Tl),leave:function(ae){xt(e,ae)||Ws(e)}};var ne=t.input.getField();Ke(ne,"keyup",function(ae){return Zs.call(e,ae)}),Ke(ne,"keydown",ca(e,Js)),Ke(ne,"keypress",ca(e,qs)),Ke(ne,"focus",function(ae){return li(e,ae)}),Ke(ne,"blur",function(ae){return wi(e,ae)})}var hs=[];ha.defineInitHook=function(e){return hs.push(e)};function Ko(e,t,a,r){var l=e.doc,j;a==null&&(a="add"),a=="smart"&&(l.mode.indent?j=pn(e,t).state:a="prev");var Y=e.options.tabSize,ne=On(l,t),ae=Z(ne.text,null,Y);ne.stateAfter&&(ne.stateAfter=null);var ce=ne.text.match(/^\s*/)[0],Ne;if(!r&&!/\S/.test(ne.text))Ne=0,a="not";else if(a=="smart"&&(Ne=l.mode.indent(j,ne.text.slice(ce.length),ne.text),Ne==Je||Ne>150)){if(!r)return;a="prev"}a=="prev"?t>l.first?Ne=Z(On(l,t-1).text,null,Y):Ne=0:a=="add"?Ne=ae+e.options.indentUnit:a=="subtract"?Ne=ae-e.options.indentUnit:typeof a=="number"&&(Ne=ae+a),Ne=Math.max(0,Ne);var Qe="",pt=0;if(e.options.indentWithTabs)for(var dt=Math.floor(Ne/Y);dt;--dt)pt+=Y,Qe+=" ";if(ptY,ae=Et(t),ce=null;if(ne&&r.ranges.length>1)if(Ci&&Ci.text.join(` `)==t){if(r.ranges.length%Ci.text.length==0){ce=[];for(var Ne=0;Ne=0;pt--){var dt=r.ranges[pt],Ft=dt.from(),ln=dt.to();dt.empty()&&(a&&a>0?Ft=Qt(Ft.line,Ft.ch-a):e.state.overwrite&&!ne?ln=Qt(ln.line,Math.min(On(j,ln.line).text.length,ln.ch+le(ae).length)):ne&&Ci&&Ci.lineWise&&Ci.text.join(` `)==ae.join(` -`)&&(Ft=ln=Qt(Ft.line,0)));var xn={from:Ft,to:ln,text:ce?ce[pt%ce.length]:ae,origin:l||(ne?"paste":e.state.cutIncoming>Y?"cut":"+input")};bo(e.doc,xn),Zn(e,"inputRead",e,xn)}t&&!ne&&sl(e,t),yi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Qe),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ol(e,t){var a=e.clipboardData&&e.clipboardData.getData("Text");if(a)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Ha(t,function(){return hs(t,a,0,null,"paste")}),!0}function sl(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var a=e.doc.sel,r=a.ranges.length-1;r>=0;r--){var l=a.ranges[r];if(l.head.ch>100||r&&a.ranges[r-1].head.line==l.head.line)continue;var j=e.getModeAt(l.head),Y=!1;if(j.electricChars){for(var ne=0;ne-1){Y=Ko(e,l.head.line,"smart");break}}else j.electricInput&&(j.electricInput.test(On(e.doc,l.head.line).text.slice(0,l.head.ch))&&(Y=Ko(e,l.head.line,"smart")));Y&&Zn(e,"electricInput",e,l.head.line)}}function ll(e){for(var t=[],a=[],r=0;rj&&(Ko(this,ne.head.line,r,!0),j=ne.head.line,Y==this.doc.sel.primIndex&&yi(this));else{var ae=ne.from(),ce=ne.to(),Ne=Math.max(j,ae.line);j=Math.min(this.lastLine(),ce.line-(ce.ch?0:1))+1;for(var Qe=Ne;Qe0&&is(this.doc,Y,new Hr(ae,pt[Y].to()),Ae)}}}),getTokenAt:function(r,l){return Yt(this,r,l)},getLineTokens:function(r,l){return Yt(this,Qt(r),l,!0)},getTokenTypeAt:function(r){r=y(this.doc,r);var l=Ut(this,On(this.doc,r.line)),j=0,Y=(l.length-1)/2,ne=r.ch,ae;if(ne==0)ae=l[2];else for(;;){var ce=j+Y>>1;if((ce?l[ce*2-1]:0)>=ne)Y=ce;else if(l[ce*2+1]ae&&(r=ae,Y=!0),ne=On(this.doc,r)}else ne=r;return Er(this,ne,{top:0,left:0},l||"page",j||Y).top+(Y?this.doc.height-Nt(ne):0)},defaultTextHeight:function(){return Or(this.display)},defaultCharWidth:function(){return kr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,l,j,Y,ne){var ae=this.display;r=$n(this,y(this.doc,r));var ce=r.bottom,Ne=r.left;if(l.style.position="absolute",l.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(l),ae.sizer.appendChild(l),Y=="over")ce=r.top;else if(Y=="above"||Y=="near"){var Qe=Math.max(ae.wrapper.clientHeight,this.doc.height),pt=Math.max(ae.sizer.clientWidth,ae.lineSpace.clientWidth);(Y=="above"||r.bottom+l.offsetHeight>Qe)&&r.top>l.offsetHeight?ce=r.top-l.offsetHeight:r.bottom+l.offsetHeight<=Qe&&(ce=r.bottom),Ne+l.offsetWidth>pt&&(Ne=pt-l.offsetWidth)}l.style.top=ce+"px",l.style.left=l.style.right="",ne=="right"?(Ne=ae.sizer.clientWidth-l.offsetWidth,l.style.right="0px"):(ne=="left"?Ne=0:ne=="middle"&&(Ne=(ae.sizer.clientWidth-l.offsetWidth)/2),l.style.left=Ne+"px"),j&&Gi(this,{left:Ne,top:ce,right:Ne+l.offsetWidth,bottom:ce+l.offsetHeight})},triggerOnKeyDown:Ra(Js),triggerOnKeyPress:Ra(qs),triggerOnKeyUp:Zs,triggerOnMouseDown:Ra(el),execCommand:function(r){if(Fo.hasOwnProperty(r))return Fo[r].call(null,this)},triggerElectric:Ra(function(r){sl(this,r)}),findPosH:function(r,l,j,Y){var ne=1;l<0&&(ne=-1,l=-l);for(var ae=y(this.doc,r),ce=0;ce0&&Ne(j.charAt(Y-1));)--Y;for(;ne.5||this.options.lineWrapping)&&Na(this),st(this,"refresh",this)}),swapDoc:Ra(function(r){var l=this.doc;return l.cm=null,this.state.selectingText&&this.state.selectingText(),gs(this,r),ir(this),this.display.input.reset(),Ri(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,Zn(this,"swapDoc",this,l),l}),phrase:function(r){var l=this.options.phrases;return l&&Object.prototype.hasOwnProperty.call(l,r)?l[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}},Te(e),e.registerHelper=function(r,l,j){a.hasOwnProperty(r)||(a[r]=e[r]={_global:[]}),a[r][l]=j},e.registerGlobalHelper=function(r,l,j,Y){e.registerHelper(r,l,Y),a[r]._global.push({pred:j,val:Y})}}function ps(e,t,a,r,l){var j=t,Y=a,ne=On(e,t.line),ae=l&&e.direction=="rtl"?-a:a;function ce(){var Kn=t.line+ae;return Kn=e.first+e.size?!1:(t=new Qt(Kn,t.ch,t.sticky),ne=On(e,Kn))}function Ne(Kn){var An;if(r=="codepoint"){var Xn=ne.text.charCodeAt(t.ch+(r>0?0:-1));isNaN(Xn)?An=null:An=new Qt(t.line,Math.max(0,Math.min(ne.text.length,t.ch+a*(Xn>=55296&&Xn<56320?2:1))),-a)}else l?An=kl(e.cm,ne,t,a):An=ss(ne,t,a);if(An==null)if(!Kn&&ce())t=ls(l,e.cm,ne,t.line,ae);else return!1;else t=An;return!0}if(r=="char"||r=="codepoint")Ne();else if(r=="column")Ne(!0);else if(r=="word"||r=="group")for(var Qe=null,pt=r=="group",dt=e.cm&&e.cm.getHelper(t,"wordChars"),Ft=!0;!(a<0&&!Ne(!Ft));Ft=!1){var ln=ne.text.charAt(t.ch)||` +`)&&(Ft=ln=Qt(Ft.line,0)));var xn={from:Ft,to:ln,text:ce?ce[pt%ce.length]:ae,origin:l||(ne?"paste":e.state.cutIncoming>Y?"cut":"+input")};bo(e.doc,xn),Zn(e,"inputRead",e,xn)}t&&!ne&&sl(e,t),yi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Qe),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function ol(e,t){var a=e.clipboardData&&e.clipboardData.getData("Text");if(a)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&Ha(t,function(){return fs(t,a,0,null,"paste")}),!0}function sl(e,t){if(!e.options.electricChars||!e.options.smartIndent)return;for(var a=e.doc.sel,r=a.ranges.length-1;r>=0;r--){var l=a.ranges[r];if(l.head.ch>100||r&&a.ranges[r-1].head.line==l.head.line)continue;var j=e.getModeAt(l.head),Y=!1;if(j.electricChars){for(var ne=0;ne-1){Y=Ko(e,l.head.line,"smart");break}}else j.electricInput&&(j.electricInput.test(On(e.doc,l.head.line).text.slice(0,l.head.ch))&&(Y=Ko(e,l.head.line,"smart")));Y&&Zn(e,"electricInput",e,l.head.line)}}function ll(e){for(var t=[],a=[],r=0;rj&&(Ko(this,ne.head.line,r,!0),j=ne.head.line,Y==this.doc.sel.primIndex&&yi(this));else{var ae=ne.from(),ce=ne.to(),Ne=Math.max(j,ae.line);j=Math.min(this.lastLine(),ce.line-(ce.ch?0:1))+1;for(var Qe=Ne;Qe0&&is(this.doc,Y,new Hr(ae,pt[Y].to()),Ae)}}}),getTokenAt:function(r,l){return Yt(this,r,l)},getLineTokens:function(r,l){return Yt(this,Qt(r),l,!0)},getTokenTypeAt:function(r){r=y(this.doc,r);var l=Ut(this,On(this.doc,r.line)),j=0,Y=(l.length-1)/2,ne=r.ch,ae;if(ne==0)ae=l[2];else for(;;){var ce=j+Y>>1;if((ce?l[ce*2-1]:0)>=ne)Y=ce;else if(l[ce*2+1]ae&&(r=ae,Y=!0),ne=On(this.doc,r)}else ne=r;return Er(this,ne,{top:0,left:0},l||"page",j||Y).top+(Y?this.doc.height-Nt(ne):0)},defaultTextHeight:function(){return Or(this.display)},defaultCharWidth:function(){return kr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,l,j,Y,ne){var ae=this.display;r=$n(this,y(this.doc,r));var ce=r.bottom,Ne=r.left;if(l.style.position="absolute",l.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(l),ae.sizer.appendChild(l),Y=="over")ce=r.top;else if(Y=="above"||Y=="near"){var Qe=Math.max(ae.wrapper.clientHeight,this.doc.height),pt=Math.max(ae.sizer.clientWidth,ae.lineSpace.clientWidth);(Y=="above"||r.bottom+l.offsetHeight>Qe)&&r.top>l.offsetHeight?ce=r.top-l.offsetHeight:r.bottom+l.offsetHeight<=Qe&&(ce=r.bottom),Ne+l.offsetWidth>pt&&(Ne=pt-l.offsetWidth)}l.style.top=ce+"px",l.style.left=l.style.right="",ne=="right"?(Ne=ae.sizer.clientWidth-l.offsetWidth,l.style.right="0px"):(ne=="left"?Ne=0:ne=="middle"&&(Ne=(ae.sizer.clientWidth-l.offsetWidth)/2),l.style.left=Ne+"px"),j&&Gi(this,{left:Ne,top:ce,right:Ne+l.offsetWidth,bottom:ce+l.offsetHeight})},triggerOnKeyDown:Ra(Js),triggerOnKeyPress:Ra(qs),triggerOnKeyUp:Zs,triggerOnMouseDown:Ra(el),execCommand:function(r){if(Fo.hasOwnProperty(r))return Fo[r].call(null,this)},triggerElectric:Ra(function(r){sl(this,r)}),findPosH:function(r,l,j,Y){var ne=1;l<0&&(ne=-1,l=-l);for(var ae=y(this.doc,r),ce=0;ce0&&Ne(j.charAt(Y-1));)--Y;for(;ne.5||this.options.lineWrapping)&&Na(this),st(this,"refresh",this)}),swapDoc:Ra(function(r){var l=this.doc;return l.cm=null,this.state.selectingText&&this.state.selectingText(),gs(this,r),ir(this),this.display.input.reset(),Ri(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,Zn(this,"swapDoc",this,l),l}),phrase:function(r){var l=this.options.phrases;return l&&Object.prototype.hasOwnProperty.call(l,r)?l[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}},Te(e),e.registerHelper=function(r,l,j){a.hasOwnProperty(r)||(a[r]=e[r]={_global:[]}),a[r][l]=j},e.registerGlobalHelper=function(r,l,j,Y){e.registerHelper(r,l,Y),a[r]._global.push({pred:j,val:Y})}}function ps(e,t,a,r,l){var j=t,Y=a,ne=On(e,t.line),ae=l&&e.direction=="rtl"?-a:a;function ce(){var Kn=t.line+ae;return Kn=e.first+e.size?!1:(t=new Qt(Kn,t.ch,t.sticky),ne=On(e,Kn))}function Ne(Kn){var An;if(r=="codepoint"){var Xn=ne.text.charCodeAt(t.ch+(r>0?0:-1));isNaN(Xn)?An=null:An=new Qt(t.line,Math.max(0,Math.min(ne.text.length,t.ch+a*(Xn>=55296&&Xn<56320?2:1))),-a)}else l?An=kl(e.cm,ne,t,a):An=ss(ne,t,a);if(An==null)if(!Kn&&ce())t=ls(l,e.cm,ne,t.line,ae);else return!1;else t=An;return!0}if(r=="char"||r=="codepoint")Ne();else if(r=="column")Ne(!0);else if(r=="word"||r=="group")for(var Qe=null,pt=r=="group",dt=e.cm&&e.cm.getHelper(t,"wordChars"),Ft=!0;!(a<0&&!Ne(!Ft));Ft=!1){var ln=ne.text.charAt(t.ch)||` `,xn=Q(ln,dt)?"w":pt&&ln==` `?"n":!pt||/\s/.test(ln)?null:"p";if(pt&&!Ft&&!xn&&(xn="s"),Qe&&Qe!=xn){a<0&&(a=1,Ne(),t.sticky="after");break}if(xn&&(Qe=xn),a>0&&!Ne(!Ft))break}var Dn=Yo(e,t,j,Y,!0);return oa(j,Dn)&&(Dn.hitSide=!0),Dn}function dl(e,t,a,r){var l=e.doc,j=t.left,Y;if(r=="page"){var ne=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ae=Math.max(ne-.5*Or(e.display),3);Y=(a>0?t.bottom:t.top)+a*ae}else r=="line"&&(Y=a>0?t.bottom+3:t.top-3);for(var ce;!(ce=sn(e,j,Y),!ce.outside);){if(a<0?Y<=0:Y>=l.height){ce.hitSide=!0;break}Y+=a*5}return ce}var Zr=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new oe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Zr.prototype.init=function(e){var t=this,a=this,r=a.cm,l=a.div=e.lineDiv;ul(l,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function j(ne){for(var ae=ne.target;ae;ae=ae.parentNode){if(ae==l)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ae.className))break}return!1}Ke(l,"paste",function(ne){if(!j(ne)||xt(r,ne)||ol(ne,r))return;x<=11&&setTimeout(ca(r,function(){return t.updateFromDOM()}),20)}),Ke(l,"compositionstart",function(ne){t.composing={data:ne.data,done:!1}}),Ke(l,"compositionupdate",function(ne){t.composing||(t.composing={data:ne.data,done:!1})}),Ke(l,"compositionend",function(ne){t.composing&&(ne.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),Ke(l,"touchstart",function(){return a.forceCompositionEnd()}),Ke(l,"input",function(){t.composing||t.readFromDOMSoon()});function Y(ne){if(!j(ne)||xt(r,ne))return;if(r.somethingSelected())es({lineWise:!1,text:r.getSelections()}),ne.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var ae=ll(r);es({lineWise:!0,text:ae.text}),ne.type=="cut"&&r.operation(function(){r.setSelections(ae.ranges,0,Ae),r.replaceSelection("",null,"cut")})}else return;if(ne.clipboardData){ne.clipboardData.clearData();var ce=Ci.text.join(` `);if(ne.clipboardData.setData("Text",ce),ne.clipboardData.getData("Text")==ce){ne.preventDefault();return}}var Ne=cl(),Qe=Ne.firstChild;r.display.lineSpace.insertBefore(Ne,r.display.lineSpace.firstChild),Qe.value=Ci.text.join(` -`);var pt=document.activeElement;G(Qe),setTimeout(function(){r.display.lineSpace.removeChild(Ne),pt.focus(),pt==l&&a.showPrimarySelection()},50)}Ke(l,"copy",Y),Ke(l,"cut",Y)},Zr.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Zr.prototype.prepareSelection=function(){var e=Za(this.cm,!1);return e.focus=document.activeElement==this.div,e},Zr.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Zr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Zr.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,a=t.doc.sel.primary(),r=a.from(),l=a.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||l.line=t.display.viewFrom&&fl(t,r)||{node:ne[0].measure.map[2],offset:0},ce=l.linee.firstLine()&&(r=Qt(r.line-1,On(e.doc,r.line-1).length)),l.ch==On(e.doc,l.line).text.length&&l.linet.viewTo-1)return!1;var j,Y,ne;r.line==t.viewFrom||(j=Qr(e,r.line))==0?(Y=fr(t.view[0].line),ne=t.view[0].node):(Y=fr(t.view[j].line),ne=t.view[j-1].node.nextSibling);var ae=Qr(e,l.line),ce,Ne;if(ae==t.view.length-1?(ce=t.viewTo-1,Ne=t.lineDiv.lastChild):(ce=fr(t.view[ae+1].line)-1,Ne=t.view[ae+1].node.previousSibling),!ne)return!1;for(var Qe=e.doc.splitLines(tu(e,ne,Ne,Y,ce)),pt=Fr(e.doc,Qt(Y,0),Qt(ce,On(e.doc,ce).text.length));Qe.length>1&&pt.length>1;)if(le(Qe)==le(pt))Qe.pop(),pt.pop(),ce--;else if(Qe[0]==pt[0])Qe.shift(),pt.shift(),Y++;else break;for(var dt=0,Ft=0,ln=Qe[0],xn=pt[0],Dn=Math.min(ln.length,xn.length);dtr.ch&&Kn.charCodeAt(Kn.length-Ft-1)==An.charCodeAt(An.length-Ft-1);)dt--,Ft++;Qe[Qe.length-1]=Kn.slice(0,Kn.length-Ft).replace(/^\u200b+/,""),Qe[0]=Qe[0].slice(dt).replace(/\u200b+$/,"");var vr=Qt(Y,dt),cr=Qt(ce,pt.length?le(pt).length-Ft:0);if(Qe.length>1||Qe[0]||qn(vr,cr))return Eo(e.doc,Qe,vr,cr,"+input"),!0},Zr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Zr.prototype.reset=function(){this.forceCompositionEnd()},Zr.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Zr.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)},Zr.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ha(this.cm,function(){return Gr(e.cm)})},Zr.prototype.setUneditable=function(e){e.contentEditable="false"},Zr.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)},Zr.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Zr.prototype.onContextMenu=function(){},Zr.prototype.resetPosition=function(){},Zr.prototype.needsContentAttribute=!0;function fl(e,t){var a=at(e,t.line);if(!a||a.hidden)return null;var r=On(e.doc,t.line),l=de(a,r,t.line),j=fn(r,e.doc.direction),Y="left";if(j){var ne=Bt(j,t.ch);Y=ne%2?"right":"left"}var ae=jt(l.map,t.ch,Y);return ae.offset=ae.collapse=="right"?ae.end:ae.start,ae}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,a,r,l){var j="",Y=!1,ne=e.doc.lineSeparator(),ae=!1;function ce(dt){return function(Ft){return Ft.id==dt}}function Ne(){Y&&(j+=ne,ae&&(j+=ne),Y=ae=!1)}function Qe(dt){dt&&(Ne(),j+=dt)}function pt(dt){if(dt.nodeType==1){var Ft=dt.getAttribute("cm-text");if(Ft){Qe(Ft);return}var ln=dt.getAttribute("cm-marker"),xn;if(ln){var Dn=e.findMarks(Qt(r,0),Qt(l+1,0),ce(+ln));Dn.length&&(xn=Dn[0].find(0))&&Qe(Fr(e.doc,xn.from,xn.to).join(ne));return}if(dt.getAttribute("contenteditable")=="false")return;var Kn=/^(pre|div|p|li|table|br)$/i.test(dt.nodeName);if(!/^br$/i.test(dt.nodeName)&&dt.textContent.length==0)return;Kn&&Ne();for(var An=0;An=9&&t.hasSelection&&(t.hasSelection=null),a.poll()}),Ke(l,"paste",function(Y){if(xt(r,Y)||ol(Y,r))return;r.state.pasteIncoming=+new Date,a.fastPoll()});function j(Y){if(xt(r,Y))return;if(r.somethingSelected())es({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var ne=ll(r);es({lineWise:!0,text:ne.text}),Y.type=="cut"?r.setSelections(ne.ranges,null,Ae):(a.prevInput="",l.value=ne.text.join(` -`),G(l))}else return;Y.type=="cut"&&(r.state.cutIncoming=+new Date)}Ke(l,"cut",j),Ke(l,"copy",j),Ke(e.scroller,"paste",function(Y){if(Ca(e,Y)||xt(r,Y))return;if(!l.dispatchEvent){r.state.pasteIncoming=+new Date,a.focus();return}var ne=new Event("paste");ne.clipboardData=Y.clipboardData,l.dispatchEvent(ne)}),Ke(e.lineSpace,"selectstart",function(Y){Ca(e,Y)||ue(Y)}),Ke(l,"compositionstart",function(){var Y=r.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:Y,range:r.markText(Y,r.getCursor("to"),{className:"CodeMirror-composing"})}}),Ke(l,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.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,a=e.doc,r=Za(e);if(e.options.moveInputWithCursor){var l=$n(e,a.sel.primary().head,"div"),j=t.wrapper.getBoundingClientRect(),Y=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,l.top+Y.top-j.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,l.left+Y.left-j.left))}return r},Ta.prototype.showSelection=function(e){var t=this.cm,a=t.display;s(a.cursorDiv,e.cursors),s(a.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 a=t.getSelection();this.textarea.value=a,t.state.focused&&G(this.textarea),B&&x>=9&&(this.hasSelection=a)}else e||(this.prevInput=this.textarea.value="",B&&x>=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"&&(!o||N()!=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 a(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,a)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,a)},Ta.prototype.poll=function(){var e=this,t=this.cm,a=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||_t(a)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var l=a.value;if(l==r&&!t.somethingSelected())return!1;if(B&&x>=9&&this.hasSelection===l||u&&/[\uf700-\uf7ff]/.test(l))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var j=l.charCodeAt(0);if(j==8203&&!r&&(r="\u200B"),j==8666)return this.reset(),this.cm.execCommand("undo")}for(var Y=0,ne=Math.min(r.length,l.length);Y1e3||l.indexOf(` +`);var pt=document.activeElement;G(Qe),setTimeout(function(){r.display.lineSpace.removeChild(Ne),pt.focus(),pt==l&&a.showPrimarySelection()},50)}Ke(l,"copy",Y),Ke(l,"cut",Y)},Zr.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Zr.prototype.prepareSelection=function(){var e=Za(this.cm,!1);return e.focus=document.activeElement==this.div,e},Zr.prototype.showSelection=function(e,t){if(!e||!this.cm.display.view.length)return;(e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e)},Zr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Zr.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,a=t.doc.sel.primary(),r=a.from(),l=a.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||l.line=t.display.viewFrom&&hl(t,r)||{node:ne[0].measure.map[2],offset:0},ce=l.linee.firstLine()&&(r=Qt(r.line-1,On(e.doc,r.line-1).length)),l.ch==On(e.doc,l.line).text.length&&l.linet.viewTo-1)return!1;var j,Y,ne;r.line==t.viewFrom||(j=Qr(e,r.line))==0?(Y=hr(t.view[0].line),ne=t.view[0].node):(Y=hr(t.view[j].line),ne=t.view[j-1].node.nextSibling);var ae=Qr(e,l.line),ce,Ne;if(ae==t.view.length-1?(ce=t.viewTo-1,Ne=t.lineDiv.lastChild):(ce=hr(t.view[ae+1].line)-1,Ne=t.view[ae+1].node.previousSibling),!ne)return!1;for(var Qe=e.doc.splitLines(tu(e,ne,Ne,Y,ce)),pt=Fr(e.doc,Qt(Y,0),Qt(ce,On(e.doc,ce).text.length));Qe.length>1&&pt.length>1;)if(le(Qe)==le(pt))Qe.pop(),pt.pop(),ce--;else if(Qe[0]==pt[0])Qe.shift(),pt.shift(),Y++;else break;for(var dt=0,Ft=0,ln=Qe[0],xn=pt[0],Dn=Math.min(ln.length,xn.length);dtr.ch&&Kn.charCodeAt(Kn.length-Ft-1)==An.charCodeAt(An.length-Ft-1);)dt--,Ft++;Qe[Qe.length-1]=Kn.slice(0,Kn.length-Ft).replace(/^\u200b+/,""),Qe[0]=Qe[0].slice(dt).replace(/\u200b+$/,"");var vr=Qt(Y,dt),cr=Qt(ce,pt.length?le(pt).length-Ft:0);if(Qe.length>1||Qe[0]||qn(vr,cr))return Eo(e.doc,Qe,vr,cr,"+input"),!0},Zr.prototype.ensurePolled=function(){this.forceCompositionEnd()},Zr.prototype.reset=function(){this.forceCompositionEnd()},Zr.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},Zr.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)},Zr.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ha(this.cm,function(){return Gr(e.cm)})},Zr.prototype.setUneditable=function(e){e.contentEditable="false"},Zr.prototype.onKeyPress=function(e){if(e.charCode==0||this.composing)return;e.preventDefault(),this.cm.isReadOnly()||ca(this.cm,fs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0)},Zr.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Zr.prototype.onContextMenu=function(){},Zr.prototype.resetPosition=function(){},Zr.prototype.needsContentAttribute=!0;function hl(e,t){var a=at(e,t.line);if(!a||a.hidden)return null;var r=On(e.doc,t.line),l=de(a,r,t.line),j=hn(r,e.doc.direction),Y="left";if(j){var ne=Bt(j,t.ch);Y=ne%2?"right":"left"}var ae=jt(l.map,t.ch,Y);return ae.offset=ae.collapse=="right"?ae.end:ae.start,ae}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,a,r,l){var j="",Y=!1,ne=e.doc.lineSeparator(),ae=!1;function ce(dt){return function(Ft){return Ft.id==dt}}function Ne(){Y&&(j+=ne,ae&&(j+=ne),Y=ae=!1)}function Qe(dt){dt&&(Ne(),j+=dt)}function pt(dt){if(dt.nodeType==1){var Ft=dt.getAttribute("cm-text");if(Ft){Qe(Ft);return}var ln=dt.getAttribute("cm-marker"),xn;if(ln){var Dn=e.findMarks(Qt(r,0),Qt(l+1,0),ce(+ln));Dn.length&&(xn=Dn[0].find(0))&&Qe(Fr(e.doc,xn.from,xn.to).join(ne));return}if(dt.getAttribute("contenteditable")=="false")return;var Kn=/^(pre|div|p|li|table|br)$/i.test(dt.nodeName);if(!/^br$/i.test(dt.nodeName)&&dt.textContent.length==0)return;Kn&&Ne();for(var An=0;An=9&&t.hasSelection&&(t.hasSelection=null),a.poll()}),Ke(l,"paste",function(Y){if(xt(r,Y)||ol(Y,r))return;r.state.pasteIncoming=+new Date,a.fastPoll()});function j(Y){if(xt(r,Y))return;if(r.somethingSelected())es({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var ne=ll(r);es({lineWise:!0,text:ne.text}),Y.type=="cut"?r.setSelections(ne.ranges,null,Ae):(a.prevInput="",l.value=ne.text.join(` +`),G(l))}else return;Y.type=="cut"&&(r.state.cutIncoming=+new Date)}Ke(l,"cut",j),Ke(l,"copy",j),Ke(e.scroller,"paste",function(Y){if(Ca(e,Y)||xt(r,Y))return;if(!l.dispatchEvent){r.state.pasteIncoming=+new Date,a.focus();return}var ne=new Event("paste");ne.clipboardData=Y.clipboardData,l.dispatchEvent(ne)}),Ke(e.lineSpace,"selectstart",function(Y){Ca(e,Y)||ue(Y)}),Ke(l,"compositionstart",function(){var Y=r.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:Y,range:r.markText(Y,r.getCursor("to"),{className:"CodeMirror-composing"})}}),Ke(l,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.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,a=e.doc,r=Za(e);if(e.options.moveInputWithCursor){var l=$n(e,a.sel.primary().head,"div"),j=t.wrapper.getBoundingClientRect(),Y=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,l.top+Y.top-j.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,l.left+Y.left-j.left))}return r},Ta.prototype.showSelection=function(e){var t=this.cm,a=t.display;s(a.cursorDiv,e.cursors),s(a.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 a=t.getSelection();this.textarea.value=a,t.state.focused&&G(this.textarea),B&&x>=9&&(this.hasSelection=a)}else e||(this.prevInput=this.textarea.value="",B&&x>=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"&&(!o||N()!=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 a(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,a)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,a)},Ta.prototype.poll=function(){var e=this,t=this.cm,a=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||_t(a)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var l=a.value;if(l==r&&!t.somethingSelected())return!1;if(B&&x>=9&&this.hasSelection===l||u&&/[\uf700-\uf7ff]/.test(l))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var j=l.charCodeAt(0);if(j==8203&&!r&&(r="\u200B"),j==8666)return this.reset(),this.cm.execCommand("undo")}for(var Y=0,ne=Math.min(r.length,l.length);Y1e3||l.indexOf(` `)>-1?a.value=e.prevInput="":e.prevInput=l,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&&x>=9&&(this.hasSelection=null),this.fastPoll()},Ta.prototype.onContextMenu=function(e){var t=this,a=t.cm,r=a.display,l=t.textarea;t.contextMenuPending&&t.contextMenuPending();var j=wa(a,e),Y=r.scroller.scrollTop;if(!j||R)return;var ne=a.options.resetSelectionOnContextMenu;ne&&a.doc.sel.contains(j)==-1&&ca(a,Va)(a.doc,Pn(j),Ae);var ae=l.style.cssText,ce=t.wrapper.style.cssText,Ne=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",l.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-Ne.top-5)+"px; left: "+(e.clientX-Ne.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 Qe;k&&(Qe=window.scrollY),r.input.focus(),k&&window.scrollTo(null,Qe),r.input.reset(),a.somethingSelected()||(l.value=t.prevInput=" "),t.contextMenuPending=dt,r.selForContextMenu=a.doc.sel,clearTimeout(r.detectingSelectAll);function pt(){if(l.selectionStart!=null){var ln=a.somethingSelected(),xn="\u200B"+(ln?l.value:"");l.value="\u21DA",l.value=xn,t.prevInput=ln?"":"\u200B",l.selectionStart=1,l.selectionEnd=xn.length,r.selForContextMenu=a.doc.sel}}function dt(){if(t.contextMenuPending!=dt)return;if(t.contextMenuPending=!1,t.wrapper.style.cssText=ce,l.style.cssText=ae,B&&x<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=Y),l.selectionStart!=null){(!B||B&&x<9)&&pt();var ln=0,xn=function(){r.selForContextMenu==a.doc.sel&&l.selectionStart==0&&l.selectionEnd>0&&t.prevInput=="\u200B"?ca(a,As)(a):ln++<10?r.detectingSelectAll=setTimeout(xn,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(xn,200)}}if(B&&x>=9&&pt(),P){xe(e);var Ft=function(){Dt(window,"mouseup",Ft),setTimeout(dt,20)};Ke(window,"mouseup",Ft)}else setTimeout(dt,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 a=N();t.autofocus=a==e||e.getAttribute("autofocus")!=null&&a==document.body}function r(){e.value=ne.getValue()}var l;if(e.form&&(Ke(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var j=e.form;l=j.submit;try{var Y=j.submit=function(){r(),j.submit=l,j.submit(),j.submit=Y}}catch(ae){}}t.finishInit=function(ae){ae.save=r,ae.getTextArea=function(){return e},ae.toTextArea=function(){ae.toTextArea=isNaN,r(),e.parentNode.removeChild(ae.getWrapperElement()),e.style.display="",e.form&&(Dt(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=l))}},e.style.display="none";var ne=fa(function(ae){return e.parentNode.insertBefore(ae,e.nextSibling)},t);return ne}function au(e){e.off=Dt,e.on=Ke,e.wheelEventPixels=Bi,e.Doc=ti,e.splitLines=Et,e.countColumn=Z,e.findColumn=Xe,e.isWordChar=V,e.Pass=Je,e.signal=st,e.Line=un,e.changeEnd=er,e.scrollbarModel=$i,e.Pos=Qt,e.cmpPos=qn,e.modes=wt,e.mimeModes=ft,e.resolveMode=ot,e.getMode=Wt,e.modeExtensions=dn,e.extendMode=Bn,e.copyState=kn,e.startState=Ar,e.innerMode=Cr,e.commands=Fo,e.keyMap=Ki,e.keyName=Vs,e.isModifierKey=zs,e.lookupKey=_o,e.normalizeKeyMap=Ll,e.StringStream=hr,e.SharedTextMarker=No,e.TextMarker=qi,e.LineWidget=Io,e.e_preventDefault=ue,e.e_stopPropagation=pe,e.e_stop=xe,e.addClass=U,e.contains=O,e.rmClass=h,e.keyNames=eo}$l(fa),ql(fa);var iu="iter insert remove copy getEditor constructor".split(" ");for(var ns in ti.prototype)ti.prototype.hasOwnProperty(ns)&&ie(iu,ns)<0&&(fa.prototype[ns]=function(e){return function(){return e.apply(this.doc,arguments)}}(ti.prototype[ns]));return Te(ti),fa.inputStyles={textarea:Ta,contenteditable:Zr},fa.defineMode=function(e){!fa.defaults.mode&&e!="null"&&(fa.defaults.mode=e),qt.apply(this,arguments)},fa.defineMIME=on,fa.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),fa.defineMIME("text/plain","null"),fa.defineExtension=function(e,t){fa.prototype[e]=t},fa.defineDocExtension=function(e,t){ti.prototype[e]=t},fa.fromTextArea=ru,au(fa),fa.version="5.58.2",fa})},WaYH:function(an,rt,F){"use strict";var re=F("rePB"),z=F("Ff2n"),I=F("VTBJ"),K=F("1OyB"),T=F("vuIU"),w=F("JX7q"),B=F("Ji7U"),x=F("LK+K"),k=F("q1tI"),D=F("TSYQ"),m=F.n(D),R=F("sboe"),M=F("OZM5"),g=function(P){var E=P.prefixCls,h=P.level,c=P.isStart,s=P.isEnd;if(!h)return null;for(var i="".concat(E,"-indent-unit"),C=[],_=0;_0&&t.prevInput=="\u200B"?ca(a,As)(a):ln++<10?r.detectingSelectAll=setTimeout(xn,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(xn,200)}}if(B&&x>=9&&pt(),P){xe(e);var Ft=function(){Dt(window,"mouseup",Ft),setTimeout(dt,20)};Ke(window,"mouseup",Ft)}else setTimeout(dt,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 a=N();t.autofocus=a==e||e.getAttribute("autofocus")!=null&&a==document.body}function r(){e.value=ne.getValue()}var l;if(e.form&&(Ke(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var j=e.form;l=j.submit;try{var Y=j.submit=function(){r(),j.submit=l,j.submit(),j.submit=Y}}catch(ae){}}t.finishInit=function(ae){ae.save=r,ae.getTextArea=function(){return e},ae.toTextArea=function(){ae.toTextArea=isNaN,r(),e.parentNode.removeChild(ae.getWrapperElement()),e.style.display="",e.form&&(Dt(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=l))}},e.style.display="none";var ne=ha(function(ae){return e.parentNode.insertBefore(ae,e.nextSibling)},t);return ne}function au(e){e.off=Dt,e.on=Ke,e.wheelEventPixels=Bi,e.Doc=ti,e.splitLines=Et,e.countColumn=Z,e.findColumn=Xe,e.isWordChar=V,e.Pass=Je,e.signal=st,e.Line=un,e.changeEnd=er,e.scrollbarModel=$i,e.Pos=Qt,e.cmpPos=qn,e.modes=wt,e.mimeModes=ht,e.resolveMode=ot,e.getMode=Wt,e.modeExtensions=dn,e.extendMode=Bn,e.copyState=kn,e.startState=Ar,e.innerMode=Cr,e.commands=Fo,e.keyMap=Ki,e.keyName=Vs,e.isModifierKey=zs,e.lookupKey=_o,e.normalizeKeyMap=Ll,e.StringStream=fr,e.SharedTextMarker=No,e.TextMarker=qi,e.LineWidget=Io,e.e_preventDefault=ue,e.e_stopPropagation=pe,e.e_stop=xe,e.addClass=U,e.contains=O,e.rmClass=f,e.keyNames=eo}$l(ha),ql(ha);var iu="iter insert remove copy getEditor constructor".split(" ");for(var ns in ti.prototype)ti.prototype.hasOwnProperty(ns)&&ie(iu,ns)<0&&(ha.prototype[ns]=function(e){return function(){return e.apply(this.doc,arguments)}}(ti.prototype[ns]));return Te(ti),ha.inputStyles={textarea:Ta,contenteditable:Zr},ha.defineMode=function(e){!ha.defaults.mode&&e!="null"&&(ha.defaults.mode=e),qt.apply(this,arguments)},ha.defineMIME=on,ha.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ha.defineMIME("text/plain","null"),ha.defineExtension=function(e,t){ha.prototype[e]=t},ha.defineDocExtension=function(e,t){ti.prototype[e]=t},ha.fromTextArea=ru,au(ha),ha.version="5.58.2",ha})},WaYH:function(an,rt,F){"use strict";var re=F("rePB"),z=F("Ff2n"),I=F("VTBJ"),K=F("1OyB"),T=F("vuIU"),w=F("JX7q"),B=F("Ji7U"),x=F("LK+K"),k=F("q1tI"),D=F("TSYQ"),m=F.n(D),R=F("sboe"),M=F("OZM5"),g=function(P){var E=P.prefixCls,f=P.level,c=P.isStart,s=P.isEnd;if(!f)return null;for(var i="".concat(E,"-indent-unit"),C=[],_=0;_1&&arguments[1]!==void 0?arguments[1]:!1,Ze=Ae.getAttribute("id")||Ae.getAttribute("data-reactid")||Ae.getAttribute("name");if(ke&&N[Ze])return N[Ze];var Xe=window.getComputedStyle(Ae),Pe=Xe.getPropertyValue("box-sizing")||Xe.getPropertyValue("-moz-box-sizing")||Xe.getPropertyValue("-webkit-box-sizing"),he=parseFloat(Xe.getPropertyValue("padding-bottom"))+parseFloat(Xe.getPropertyValue("padding-top")),le=parseFloat(Xe.getPropertyValue("border-bottom-width"))+parseFloat(Xe.getPropertyValue("border-top-width")),Se=O.map(function(Ge){return"".concat(Ge,":").concat(Xe.getPropertyValue(Ge))}).join(";"),ve={sizingStyle:Se,paddingSize:he,borderSize:le,boxSizing:Pe};return ke&&Ze&&(N[Ze]=ve),ve}function G(Ae){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Xe=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)),Ae.getAttribute("wrap")?U.setAttribute("wrap",Ae.getAttribute("wrap")):U.removeAttribute("wrap");var Pe=H(Ae,ke),he=Pe.paddingSize,le=Pe.borderSize,Se=Pe.boxSizing,ve=Pe.sizingStyle;U.setAttribute("style","".concat(ve,";").concat(_)),U.value=Ae.value||Ae.placeholder||"";var Ge=Number.MIN_SAFE_INTEGER,it=Number.MAX_SAFE_INTEGER,ee=U.scrollHeight,V;if(Se==="border-box"?ee+=le:Se==="content-box"&&(ee-=he),Ze!==null||Xe!==null){U.value=" ";var Q=U.scrollHeight-he;Ze!==null&&(Ge=Q*Ze,Se==="border-box"&&(Ge=Ge+he+le),ee=Math.max(Ge,ee)),Xe!==null&&(it=Q*Xe,Se==="border-box"&&(it=it+he+le),V=ee>it?"":"hidden",ee=Math.min(it,ee))}return{height:ee,minHeight:Ge,maxHeight:it,overflowY:V,resize:"none"}}var L=F("Gytx"),W=F.n(L),Z;(function(Ae){Ae[Ae.NONE=0]="NONE",Ae[Ae.RESIZING=1]="RESIZING",Ae[Ae.RESIZED=2]="RESIZED"})(Z||(Z={}));var oe=function(Ae){Object(K.a)(Ze,Ae);var ke=Object(T.a)(Ze);function Ze(Xe){var Pe;return Object(z.a)(this,Ze),Pe=ke.call(this,Xe),Pe.nextFrameActionId=void 0,Pe.resizeFrameId=void 0,Pe.textArea=void 0,Pe.saveTextArea=function(he){Pe.textArea=he},Pe.handleResize=function(he){var le=Pe.state.resizeStatus,Se=Pe.props,ve=Se.autoSize,Ge=Se.onResize;if(le!==Z.NONE)return;typeof Ge=="function"&&Ge(he),ve&&Pe.resizeOnNextFrame()},Pe.resizeOnNextFrame=function(){cancelAnimationFrame(Pe.nextFrameActionId),Pe.nextFrameActionId=requestAnimationFrame(Pe.resizeTextarea)},Pe.resizeTextarea=function(){var he=Pe.props.autoSize;if(!he||!Pe.textArea)return;var le=he.minRows,Se=he.maxRows,ve=G(Pe.textArea,!1,le,Se);Pe.setState({textareaStyles:ve,resizeStatus:Z.RESIZING},function(){cancelAnimationFrame(Pe.resizeFrameId),Pe.resizeFrameId=requestAnimationFrame(function(){Pe.setState({resizeStatus:Z.RESIZED},function(){Pe.resizeFrameId=requestAnimationFrame(function(){Pe.setState({resizeStatus:Z.NONE}),Pe.fixFirefoxAutoScroll()})})})})},Pe.renderTextArea=function(){var he=Pe.props,le=he.prefixCls,Se=le===void 0?"rc-textarea":le,ve=he.autoSize,Ge=he.onResize,it=he.className,ee=he.disabled,V=Pe.state,Q=V.textareaStyles,fe=V.resizeStatus,_e=Object(s.a)(Pe.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Fe=C()(Se,it,Object(x.a)({},"".concat(Se,"-disabled"),ee));"value"in _e&&(_e.value=_e.value||"");var He=Object(B.a)(Object(B.a)(Object(B.a)({},Pe.props.style),Q),fe===Z.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return w.createElement(c,{onResize:Pe.handleResize,disabled:!(ve||Ge)},w.createElement("textarea",Object(re.a)({},_e,{className:Fe,style:He,ref:Pe.saveTextArea})))},Pe.state={textareaStyles:{},resizeStatus:Z.NONE},Pe}return Object(I.a)(Ze,[{key:"componentDidUpdate",value:function(Pe){(Pe.value!==this.props.value||!W()(Pe.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 Pe=this.textArea.selectionStart,he=this.textArea.selectionEnd;this.textArea.setSelectionRange(Pe,he)}}catch(le){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Ze}(w.Component),ie=oe,be=function(Ae){Object(K.a)(Ze,Ae);var ke=Object(T.a)(Ze);function Ze(Xe){var Pe;Object(z.a)(this,Ze),Pe=ke.call(this,Xe),Pe.resizableTextArea=void 0,Pe.focus=function(){Pe.resizableTextArea.textArea.focus()},Pe.saveTextArea=function(le){Pe.resizableTextArea=le},Pe.handleChange=function(le){var Se=Pe.props.onChange;Pe.setValue(le.target.value,function(){Pe.resizableTextArea.resizeTextarea()}),Se&&Se(le)},Pe.handleKeyDown=function(le){var Se=Pe.props,ve=Se.onPressEnter,Ge=Se.onKeyDown;le.keyCode===13&&ve&&ve(le),Ge&&Ge(le)};var he=typeof Xe.value=="undefined"||Xe.value===null?Xe.defaultValue:Xe.value;return Pe.state={value:he},Pe}return Object(I.a)(Ze,[{key:"setValue",value:function(Pe,he){"value"in this.props||this.setState({value:Pe},he)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return w.createElement(ie,Object(re.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(Pe){return"value"in Pe?{value:Pe.value}:null}}]),Ze}(w.Component),Je=rt.default=be},ZW9T:function(an,rt,F){"use strict";F.d(rt,"a",function(){return S});var re=F("k1fw"),z=F("miYZ"),I=F("tsqr"),K=F("rAM+"),T=F("tJVT"),w=F("PpiC"),B=F("q1tI"),x=F.n(B),k=F("bdgK");function D(b,v,P,E,h){var c=v.getWordUntilPosition(P),s={startLineNumber:P.lineNumber,endLineNumber:P.lineNumber,startColumn:c.startColumn,endColumn:c.endColumn},i=E.map(function(C){return{label:C,kind:b.languages.CompletionItemKind.Keyword,insertText:C,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:s}});return h.map(function(C){i.push(Object(re.a)(Object(re.a)({},C),{},{range:s}))}),i}var m=function(b){var v={label:"ifelse",kind:b.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` +`,O=["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={},U;function H(Ae){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ze=Ae.getAttribute("id")||Ae.getAttribute("data-reactid")||Ae.getAttribute("name");if(ke&&N[Ze])return N[Ze];var Xe=window.getComputedStyle(Ae),Pe=Xe.getPropertyValue("box-sizing")||Xe.getPropertyValue("-moz-box-sizing")||Xe.getPropertyValue("-webkit-box-sizing"),fe=parseFloat(Xe.getPropertyValue("padding-bottom"))+parseFloat(Xe.getPropertyValue("padding-top")),le=parseFloat(Xe.getPropertyValue("border-bottom-width"))+parseFloat(Xe.getPropertyValue("border-top-width")),Se=O.map(function(Ge){return"".concat(Ge,":").concat(Xe.getPropertyValue(Ge))}).join(";"),ve={sizingStyle:Se,paddingSize:fe,borderSize:le,boxSizing:Pe};return ke&&Ze&&(N[Ze]=ve),ve}function G(Ae){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Xe=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)),Ae.getAttribute("wrap")?U.setAttribute("wrap",Ae.getAttribute("wrap")):U.removeAttribute("wrap");var Pe=H(Ae,ke),fe=Pe.paddingSize,le=Pe.borderSize,Se=Pe.boxSizing,ve=Pe.sizingStyle;U.setAttribute("style","".concat(ve,";").concat(_)),U.value=Ae.value||Ae.placeholder||"";var Ge=Number.MIN_SAFE_INTEGER,it=Number.MAX_SAFE_INTEGER,ee=U.scrollHeight,V;if(Se==="border-box"?ee+=le:Se==="content-box"&&(ee-=fe),Ze!==null||Xe!==null){U.value=" ";var Q=U.scrollHeight-fe;Ze!==null&&(Ge=Q*Ze,Se==="border-box"&&(Ge=Ge+fe+le),ee=Math.max(Ge,ee)),Xe!==null&&(it=Q*Xe,Se==="border-box"&&(it=it+fe+le),V=ee>it?"":"hidden",ee=Math.min(it,ee))}return{height:ee,minHeight:Ge,maxHeight:it,overflowY:V,resize:"none"}}var L=F("Gytx"),W=F.n(L),Z;(function(Ae){Ae[Ae.NONE=0]="NONE",Ae[Ae.RESIZING=1]="RESIZING",Ae[Ae.RESIZED=2]="RESIZED"})(Z||(Z={}));var oe=function(Ae){Object(K.a)(Ze,Ae);var ke=Object(T.a)(Ze);function Ze(Xe){var Pe;return Object(z.a)(this,Ze),Pe=ke.call(this,Xe),Pe.nextFrameActionId=void 0,Pe.resizeFrameId=void 0,Pe.textArea=void 0,Pe.saveTextArea=function(fe){Pe.textArea=fe},Pe.handleResize=function(fe){var le=Pe.state.resizeStatus,Se=Pe.props,ve=Se.autoSize,Ge=Se.onResize;if(le!==Z.NONE)return;typeof Ge=="function"&&Ge(fe),ve&&Pe.resizeOnNextFrame()},Pe.resizeOnNextFrame=function(){cancelAnimationFrame(Pe.nextFrameActionId),Pe.nextFrameActionId=requestAnimationFrame(Pe.resizeTextarea)},Pe.resizeTextarea=function(){var fe=Pe.props.autoSize;if(!fe||!Pe.textArea)return;var le=fe.minRows,Se=fe.maxRows,ve=G(Pe.textArea,!1,le,Se);Pe.setState({textareaStyles:ve,resizeStatus:Z.RESIZING},function(){cancelAnimationFrame(Pe.resizeFrameId),Pe.resizeFrameId=requestAnimationFrame(function(){Pe.setState({resizeStatus:Z.RESIZED},function(){Pe.resizeFrameId=requestAnimationFrame(function(){Pe.setState({resizeStatus:Z.NONE}),Pe.fixFirefoxAutoScroll()})})})})},Pe.renderTextArea=function(){var fe=Pe.props,le=fe.prefixCls,Se=le===void 0?"rc-textarea":le,ve=fe.autoSize,Ge=fe.onResize,it=fe.className,ee=fe.disabled,V=Pe.state,Q=V.textareaStyles,he=V.resizeStatus,_e=Object(s.a)(Pe.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),Fe=C()(Se,it,Object(x.a)({},"".concat(Se,"-disabled"),ee));"value"in _e&&(_e.value=_e.value||"");var He=Object(B.a)(Object(B.a)(Object(B.a)({},Pe.props.style),Q),he===Z.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return w.createElement(c,{onResize:Pe.handleResize,disabled:!(ve||Ge)},w.createElement("textarea",Object(re.a)({},_e,{className:Fe,style:He,ref:Pe.saveTextArea})))},Pe.state={textareaStyles:{},resizeStatus:Z.NONE},Pe}return Object(I.a)(Ze,[{key:"componentDidUpdate",value:function(Pe){(Pe.value!==this.props.value||!W()(Pe.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 Pe=this.textArea.selectionStart,fe=this.textArea.selectionEnd;this.textArea.setSelectionRange(Pe,fe)}}catch(le){}}},{key:"render",value:function(){return this.renderTextArea()}}]),Ze}(w.Component),ie=oe,be=function(Ae){Object(K.a)(Ze,Ae);var ke=Object(T.a)(Ze);function Ze(Xe){var Pe;Object(z.a)(this,Ze),Pe=ke.call(this,Xe),Pe.resizableTextArea=void 0,Pe.focus=function(){Pe.resizableTextArea.textArea.focus()},Pe.saveTextArea=function(le){Pe.resizableTextArea=le},Pe.handleChange=function(le){var Se=Pe.props.onChange;Pe.setValue(le.target.value,function(){Pe.resizableTextArea.resizeTextarea()}),Se&&Se(le)},Pe.handleKeyDown=function(le){var Se=Pe.props,ve=Se.onPressEnter,Ge=Se.onKeyDown;le.keyCode===13&&ve&&ve(le),Ge&&Ge(le)};var fe=typeof Xe.value=="undefined"||Xe.value===null?Xe.defaultValue:Xe.value;return Pe.state={value:fe},Pe}return Object(I.a)(Ze,[{key:"setValue",value:function(Pe,fe){"value"in this.props||this.setState({value:Pe},fe)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return w.createElement(ie,Object(re.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(Pe){return"value"in Pe?{value:Pe.value}:null}}]),Ze}(w.Component),Je=rt.default=be},ZW9T:function(an,rt,F){"use strict";F.d(rt,"a",function(){return S});var re=F("k1fw"),z=F("miYZ"),I=F("tsqr"),K=F("rAM+"),T=F("tJVT"),w=F("PpiC"),B=F("q1tI"),x=F.n(B),k=F("bdgK");function D(b,v,P,E,f){var c=v.getWordUntilPosition(P),s={startLineNumber:P.lineNumber,endLineNumber:P.lineNumber,startColumn:c.startColumn,endColumn:c.endColumn},i=E.map(function(C){return{label:C,kind:b.languages.CompletionItemKind.Keyword,insertText:C,insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:s}});return f.map(function(C){i.push(Object(re.a)(Object(re.a)({},C),{},{range:s}))}),i}var m=function(b){var v={label:"ifelse",kind:b.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {"," $0","} else {"," ","}"].join(` `),insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet},P=["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"];b.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(s,i){var C=D(b,s,i,P,[v]);return{suggestions:C}}});var E=["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"];b.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(s,i){var C=[{label:"print",kind:b.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join(` -`),insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet}],_=D(b,s,i,E,C);return{suggestions:_}}});var h=["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"];b.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(s,i){var C=[v,{label:"main",kind:b.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(` +`),insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet}],_=D(b,s,i,E,C);return{suggestions:_}}});var f=["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"];b.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(s,i){var C=[v,{label:"main",kind:b.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {"," $0","}"].join(` `),insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:b.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join(` -`),insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet}],_=D(b,s,i,h,C);return{suggestions:_}}})},R="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",M=F("LvDl");function g(b){return/^\d+$/.test(b)?"".concat(b,"px"):b}function n(){}var p=!1,d={"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"};function o(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=b;if(Array.isArray(b)){for(var P=0;P0||St.target.offsetWidth>0)&&it.current.instance.layout()}}catch(en){nt.e(en)}finally{nt.f()}}),me.observe(Ge.current)),me}function Ht(){I.b.warn(decodeURIComponent(R))}var It=function(){var xe=it.current.instance;if(c!=null&&xe&&Fe){var nt=xe.getModel();nt&&c!==nt.getValue()&&(p=!0,nt.setValue(c),xe.layout(),p=!1)}};Object(B.useEffect)(function(){ee.current&&clearTimeout(ee.current),ee.current=setTimeout(function(){It()},500)},[c,Fe,it.current]);function Bt(){var me=it.current.instance;if(me){var xe=me.getSelection(),nt=it.current.pastePos||{},We=new u.Range(nt.startLineNumber||xe.endLineNumber,nt.startColumn||xe.endColumn,nt.endLineNumber||xe.endLineNumber,nt.endColumn||xe.endColumn);setTimeout(function(){me.executeEdits("",[{range:We,text:""}])},300)}}function tn(me){(window.navigator.platform.match("Mac")?me.metaKey:me.ctrlKey)&&me.keyCode==83&&(me.preventDefault(),Z())}var fn=function(){if(ie&&it.current.instance){var xe=it.current.instance.getContentHeight();ue(xe0||Ze.target.offsetWidth>0)&&ie.layout()}}catch(Xe){Ae.e(Xe)}finally{Ae.f()}}),be.observe(O.current)),be}Object(B.useEffect)(function(){O.current&&F.e(27).then(F.t.bind(null,"M/lh",7)).then(function(ie){u=ie;var be=u.editor.createDiffEditor(O.current,Object(re.a)(Object(re.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},_),{},{wordWrap:!0}));G(be);var Je=L(be);return function(){be.dispose();var Ae=be.getModel();Ae&&Ae.dispose(),Je.unobserve(O.current)}})},[]),Object(B.useEffect)(function(){H&&H.setModel({original:u.editor.createModel(c,i),modified:u.editor.createModel(s,i)})},[c,s,i,H]);var W=g(P),Z=g(h),oe={width:W,height:Z};return x.a.createElement("div",{className:"my-diff-editor",ref:O,style:oe})}},ZpRC:function(an,rt,F){"use strict";function re(m){return typeof m=="object"&&m!=null&&m.nodeType===1}function z(m,R){return(!R||m!=="hidden")&&m!=="visible"&&m!=="clip"}function I(m,R){if(m.clientHeightR||p>m&&d=R&&o>=M?p-m-g:d>R&&oM?d-R+n:0}var T=function(m,R){var M=window,g=R.scrollMode,n=R.block,p=R.inline,d=R.boundary,o=R.skipOverflowHiddenElements,u=typeof d=="function"?d:function(Q){return Q!==d};if(!re(m))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,S=[],b=m;re(b)&&u(b);){if((b=b.parentElement)===f){S.push(b);break}b!=null&&b===document.body&&I(b)&&!I(document.documentElement)||b!=null&&I(b,o)&&S.push(b)}for(var v=M.visualViewport?M.visualViewport.width:innerWidth,P=M.visualViewport?M.visualViewport.height:innerHeight,E=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,c=m.getBoundingClientRect(),s=c.height,i=c.width,C=c.top,_=c.right,O=c.bottom,N=c.left,U=n==="start"||n==="nearest"?C:n==="end"?O:C+s/2,H=p==="center"?N+i/2:p==="end"?_:N,G=[],L=0;L=0&&N>=0&&O<=P&&_<=v&&C>=be&&O<=Ae&&N>=ke&&_<=Je)return G;var Ze=getComputedStyle(W),Xe=parseInt(Ze.borderLeftWidth,10),Pe=parseInt(Ze.borderTopWidth,10),he=parseInt(Ze.borderRightWidth,10),le=parseInt(Ze.borderBottomWidth,10),Se=0,ve=0,Ge="offsetWidth"in W?W.offsetWidth-W.clientWidth-Xe-he:0,it="offsetHeight"in W?W.offsetHeight-W.clientHeight-Pe-le:0;if(f===W)Se=n==="start"?U:n==="end"?U-P:n==="nearest"?K(h,h+P,P,Pe,le,h+U,h+U+s,s):U-P/2,ve=p==="start"?H:p==="center"?H-v/2:p==="end"?H-v:K(E,E+v,v,Xe,he,E+H,E+H+i,i),Se=Math.max(0,Se+h),ve=Math.max(0,ve+E);else{Se=n==="start"?U-be-Pe:n==="end"?U-Ae+le+it:n==="nearest"?K(be,Ae,oe,Pe,le+it,U,U+s,s):U-(be+oe/2)+it/2,ve=p==="start"?H-ke-Xe:p==="center"?H-(ke+ie/2)+Ge/2:p==="end"?H-Je+he+Ge:K(ke,Je,ie,Xe,he+Ge,H,H+i,i);var ee=W.scrollLeft,V=W.scrollTop;U+=V-(Se=Math.max(0,Math.min(V+Se,W.scrollHeight-oe+it))),H+=ee-(ve=Math.max(0,Math.min(ee+ve,W.scrollWidth-ie+Ge)))}G.push({el:W,top:Se,left:ve})}return G};function w(m){return m===Object(m)&&Object.keys(m).length!==0}function B(m,R){R===void 0&&(R="auto");var M="scrollBehavior"in document.body.style;m.forEach(function(g){var n=g.el,p=g.top,d=g.left;n.scroll&&M?n.scroll({top:p,left:d,behavior:R}):(n.scrollTop=p,n.scrollLeft=d)})}function x(m){return m===!1?{block:"end",inline:"nearest"}:w(m)?m:{block:"start",inline:"nearest"}}function k(m,R){var M=!m.ownerDocument.documentElement.contains(m);if(w(R)&&typeof R.behavior=="function")return R.behavior(M?[]:T(m,R));if(M)return;var g=x(R);return B(T(m,g),g.behavior)}var D=rt.a=k},Zss7:function(an,rt,F){var re;(function(z){var I=/^\s+/,K=/\s+$/,T=0,w=z.round,B=z.min,x=z.max,k=z.random;function D(le,Se){if(le=le||"",Se=Se||{},le instanceof D)return le;if(!(this instanceof D))return new D(le,Se);var ve=m(le);this._originalInput=le,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=Se.format||ve.format,this._gradientType=Se.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=T++}D.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 le=this.toRgb();return(le.r*299+le.g*587+le.b*114)/1e3},getLuminance:function(){var le=this.toRgb(),Se,ve,Ge,it,ee,V;return Se=le.r/255,ve=le.g/255,Ge=le.b/255,Se<=.03928?it=Se/12.92:it=z.pow((Se+.055)/1.055,2.4),ve<=.03928?ee=ve/12.92:ee=z.pow((ve+.055)/1.055,2.4),Ge<=.03928?V=Ge/12.92:V=z.pow((Ge+.055)/1.055,2.4),.2126*it+.7152*ee+.0722*V},setAlpha:function(le){return this._a=G(le),this._roundA=w(100*this._a)/100,this},toHsv:function(){var le=n(this._r,this._g,this._b);return{h:le.h*360,s:le.s,v:le.v,a:this._a}},toHsvString:function(){var le=n(this._r,this._g,this._b),Se=w(le.h*360),ve=w(le.s*100),Ge=w(le.v*100);return this._a==1?"hsv("+Se+", "+ve+"%, "+Ge+"%)":"hsva("+Se+", "+ve+"%, "+Ge+"%, "+this._roundA+")"},toHsl:function(){var le=M(this._r,this._g,this._b);return{h:le.h*360,s:le.s,l:le.l,a:this._a}},toHslString:function(){var le=M(this._r,this._g,this._b),Se=w(le.h*360),ve=w(le.s*100),Ge=w(le.l*100);return this._a==1?"hsl("+Se+", "+ve+"%, "+Ge+"%)":"hsla("+Se+", "+ve+"%, "+Ge+"%, "+this._roundA+")"},toHex:function(le){return d(this._r,this._g,this._b,le)},toHexString:function(le){return"#"+this.toHex(le)},toHex8:function(le){return o(this._r,this._g,this._b,this._a,le)},toHex8String:function(le){return"#"+this.toHex8(le)},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(L(this._r,255)*100)+"%",g:w(L(this._g,255)*100)+"%",b:w(L(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+w(L(this._r,255)*100)+"%, "+w(L(this._g,255)*100)+"%, "+w(L(this._b,255)*100)+"%)":"rgba("+w(L(this._r,255)*100)+"%, "+w(L(this._g,255)*100)+"%, "+w(L(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:U[d(this._r,this._g,this._b,!0)]||!1},toFilter:function(le){var Se="#"+u(this._r,this._g,this._b,this._a),ve=Se,Ge=this._gradientType?"GradientType = 1, ":"";if(le){var it=D(le);ve="#"+u(it._r,it._g,it._b,it._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ge+"startColorstr="+Se+",endColorstr="+ve+")"},toString:function(le){var Se=!!le;le=le||this._format;var ve=!1,Ge=this._a<1&&this._a>=0,it=!Se&&Ge&&(le==="hex"||le==="hex6"||le==="hex3"||le==="hex4"||le==="hex8"||le==="name");return it?le==="name"&&this._a===0?this.toName():this.toRgbString():(le==="rgb"&&(ve=this.toRgbString()),le==="prgb"&&(ve=this.toPercentageRgbString()),(le==="hex"||le==="hex6")&&(ve=this.toHexString()),le==="hex3"&&(ve=this.toHexString(!0)),le==="hex4"&&(ve=this.toHex8String(!0)),le==="hex8"&&(ve=this.toHex8String()),le==="name"&&(ve=this.toName()),le==="hsl"&&(ve=this.toHslString()),le==="hsv"&&(ve=this.toHsvString()),ve||this.toHexString())},clone:function(){return D(this.toString())},_applyModification:function(le,Se){var ve=le.apply(null,[this].concat([].slice.call(Se)));return this._r=ve._r,this._g=ve._g,this._b=ve._b,this.setAlpha(ve._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(f,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(h,arguments)},_applyCombination:function(le,Se){return le.apply(null,[this].concat([].slice.call(Se)))},analogous:function(){return this._applyCombination(_,arguments)},complement:function(){return this._applyCombination(c,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(s,arguments)},tetrad:function(){return this._applyCombination(i,arguments)}},D.fromRatio=function(le,Se){if(typeof le=="object"){var ve={};for(var Ge in le)le.hasOwnProperty(Ge)&&(Ge==="a"?ve[Ge]=le[Ge]:ve[Ge]=Je(le[Ge]));le=ve}return D(le,Se)};function m(le){var Se={r:0,g:0,b:0},ve=1,Ge=null,it=null,ee=null,V=!1,Q=!1;return typeof le=="string"&&(le=Pe(le)),typeof le=="object"&&(Xe(le.r)&&Xe(le.g)&&Xe(le.b)?(Se=R(le.r,le.g,le.b),V=!0,Q=String(le.r).substr(-1)==="%"?"prgb":"rgb"):Xe(le.h)&&Xe(le.s)&&Xe(le.v)?(Ge=Je(le.s),it=Je(le.v),Se=p(le.h,Ge,it),V=!0,Q="hsv"):Xe(le.h)&&Xe(le.s)&&Xe(le.l)&&(Ge=Je(le.s),ee=Je(le.l),Se=g(le.h,Ge,ee),V=!0,Q="hsl"),le.hasOwnProperty("a")&&(ve=le.a)),ve=G(ve),{ok:V,format:le.format||Q,r:B(255,x(Se.r,0)),g:B(255,x(Se.g,0)),b:B(255,x(Se.b,0)),a:ve}}function R(le,Se,ve){return{r:L(le,255)*255,g:L(Se,255)*255,b:L(ve,255)*255}}function M(le,Se,ve){le=L(le,255),Se=L(Se,255),ve=L(ve,255);var Ge=x(le,Se,ve),it=B(le,Se,ve),ee,V,Q=(Ge+it)/2;if(Ge==it)ee=V=0;else{var fe=Ge-it;V=Q>.5?fe/(2-Ge-it):fe/(Ge+it);switch(Ge){case le:ee=(Se-ve)/fe+(Se1&&(He-=1),He<1/6?_e+(Fe-_e)*6*He:He<1/2?Fe:He<2/3?_e+(Fe-_e)*(2/3-He)*6:_e}if(Se===0)Ge=it=ee=ve;else{var Q=ve<.5?ve*(1+Se):ve+Se-ve*Se,fe=2*ve-Q;Ge=V(fe,Q,le+1/3),it=V(fe,Q,le),ee=V(fe,Q,le-1/3)}return{r:Ge*255,g:it*255,b:ee*255}}function n(le,Se,ve){le=L(le,255),Se=L(Se,255),ve=L(ve,255);var Ge=x(le,Se,ve),it=B(le,Se,ve),ee,V,Q=Ge,fe=Ge-it;if(V=Ge===0?0:fe/Ge,Ge==it)ee=0;else{switch(Ge){case le:ee=(Se-ve)/fe+(Se>1)+720)%360;--Se;)Ge.h=(Ge.h+it)%360,ee.push(D(Ge));return ee}function O(le,Se){Se=Se||6;for(var ve=D(le).toHsv(),Ge=ve.h,it=ve.s,ee=ve.v,V=[],Q=1/Se;Se--;)V.push(D({h:Ge,s:it,v:ee})),ee=(ee+Q)%1;return V}D.mix=function(le,Se,ve){ve=ve===0?0:ve||50;var Ge=D(le).toRgb(),it=D(Se).toRgb(),ee=ve/100,V={r:(it.r-Ge.r)*ee+Ge.r,g:(it.g-Ge.g)*ee+Ge.g,b:(it.b-Ge.b)*ee+Ge.b,a:(it.a-Ge.a)*ee+Ge.a};return D(V)},D.readability=function(le,Se){var ve=D(le),Ge=D(Se);return(z.max(ve.getLuminance(),Ge.getLuminance())+.05)/(z.min(ve.getLuminance(),Ge.getLuminance())+.05)},D.isReadable=function(le,Se,ve){var Ge=D.readability(le,Se),it,ee;ee=!1,it=he(ve);switch(it.level+it.size){case"AAsmall":case"AAAlarge":ee=Ge>=4.5;break;case"AAlarge":ee=Ge>=3;break;case"AAAsmall":ee=Ge>=7;break}return ee},D.mostReadable=function(le,Se,ve){var Ge=null,it=0,ee,V,Q,fe;ve=ve||{},V=ve.includeFallbackColors,Q=ve.level,fe=ve.size;for(var _e=0;_eit&&(it=ee,Ge=D(Se[_e]));return D.isReadable(le,Ge,{level:Q,size:fe})||!V?Ge:(ve.includeFallbackColors=!1,D.mostReadable(le,["#fff","#000"],ve))};var N=D.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=D.hexNames=H(N);function H(le){var Se={};for(var ve in le)le.hasOwnProperty(ve)&&(Se[le[ve]]=ve);return Se}function G(le){return le=parseFloat(le),(isNaN(le)||le<0||le>1)&&(le=1),le}function L(le,Se){oe(le)&&(le="100%");var ve=ie(le);return le=B(Se,x(0,parseFloat(le))),ve&&(le=parseInt(le*Se,10)/100),z.abs(le-Se)<1e-6?1:le%Se/parseFloat(Se)}function W(le){return B(1,x(0,le))}function Z(le){return parseInt(le,16)}function oe(le){return typeof le=="string"&&le.indexOf(".")!=-1&&parseFloat(le)===1}function ie(le){return typeof le=="string"&&le.indexOf("%")!=-1}function be(le){return le.length==1?"0"+le:""+le}function Je(le){return le<=1&&(le=le*100+"%"),le}function Ae(le){return z.round(parseFloat(le)*255).toString(16)}function ke(le){return Z(le)/255}var Ze=function(){var le="[-\\+]?\\d+%?",Se="[-\\+]?\\d*\\.\\d+%?",ve="(?:"+Se+")|(?:"+le+")",Ge="[\\s|\\(]+("+ve+")[,|\\s]+("+ve+")[,|\\s]+("+ve+")\\s*\\)?",it="[\\s|\\(]+("+ve+")[,|\\s]+("+ve+")[,|\\s]+("+ve+")[,|\\s]+("+ve+")\\s*\\)?";return{CSS_UNIT:new RegExp(ve),rgb:new RegExp("rgb"+Ge),rgba:new RegExp("rgba"+it),hsl:new RegExp("hsl"+Ge),hsla:new RegExp("hsla"+it),hsv:new RegExp("hsv"+Ge),hsva:new RegExp("hsva"+it),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(le){return!!Ze.CSS_UNIT.exec(le)}function Pe(le){le=le.replace(I,"").replace(K,"").toLowerCase();var Se=!1;if(N[le])le=N[le],Se=!0;else if(le=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ve;return(ve=Ze.rgb.exec(le))?{r:ve[1],g:ve[2],b:ve[3]}:(ve=Ze.rgba.exec(le))?{r:ve[1],g:ve[2],b:ve[3],a:ve[4]}:(ve=Ze.hsl.exec(le))?{h:ve[1],s:ve[2],l:ve[3]}:(ve=Ze.hsla.exec(le))?{h:ve[1],s:ve[2],l:ve[3],a:ve[4]}:(ve=Ze.hsv.exec(le))?{h:ve[1],s:ve[2],v:ve[3]}:(ve=Ze.hsva.exec(le))?{h:ve[1],s:ve[2],v:ve[3],a:ve[4]}:(ve=Ze.hex8.exec(le))?{r:Z(ve[1]),g:Z(ve[2]),b:Z(ve[3]),a:ke(ve[4]),format:Se?"name":"hex8"}:(ve=Ze.hex6.exec(le))?{r:Z(ve[1]),g:Z(ve[2]),b:Z(ve[3]),format:Se?"name":"hex"}:(ve=Ze.hex4.exec(le))?{r:Z(ve[1]+""+ve[1]),g:Z(ve[2]+""+ve[2]),b:Z(ve[3]+""+ve[3]),a:ke(ve[4]+""+ve[4]),format:Se?"name":"hex8"}:(ve=Ze.hex3.exec(le))?{r:Z(ve[1]+""+ve[1]),g:Z(ve[2]+""+ve[2]),b:Z(ve[3]+""+ve[3]),format:Se?"name":"hex"}:!1}function he(le){var Se,ve;return le=le||{level:"AA",size:"small"},Se=(le.level||"AA").toUpperCase(),ve=(le.size||"small").toLowerCase(),Se!=="AA"&&Se!=="AAA"&&(Se="AA"),ve!=="small"&&ve!=="large"&&(ve="small"),{level:Se,size:ve}}an.exports?an.exports=D:!(re=function(){return D}.call(rt,F,rt,an),re!==void 0&&(an.exports=re))})(Math)},bT9E:function(an,rt,F){"use strict";F.d(rt,"a",function(){return z});var re=F("VTBJ");function z(I,K){var T=Object(re.a)({},I);return Array.isArray(K)&&K.forEach(function(w){delete T[w]}),T}},biw7:function(an,rt,F){"use strict";var re=F("q1tI"),z=F.n(re),I=re.createContext(null);rt.a=I},c5Ni:function(an,rt,F){},dejd:function(an,rt,F){},dmUQ:function(an,rt,F){"use strict";var re=F("Ff2n"),z=F("rePB"),I=F("1OyB"),K=F("vuIU"),T=F("Ji7U"),w=F("md7G"),B=F("foSv"),x=F("q1tI"),k=F.n(x),D=F("TSYQ"),m=F.n(D),R=F("4IlW");function M(s,i){var C=Object.keys(s);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(s);i&&(_=_.filter(function(O){return Object.getOwnPropertyDescriptor(s,O).enumerable})),C.push.apply(C,_)}return C}function g(s){for(var i=1;i1?ie-1:0),Je=1;Je1?L-1:0),Z=1;Z=0)return parseInt(G.slice(G.indexOf("e-")+2),10);var L=0;return G.indexOf(".")>=0&&(L=G.length-G.indexOf(".")-1),L},O.getInputDisplayValue=function(H){var G=H||O.state,L=G.focused,W=G.inputValue,Z=G.value,oe;L?oe=W:oe=O.toPrecisionAsStep(Z),oe==null&&(oe="");var ie=O.formatWrapper(oe);return v(O.props.decimalSeparator)&&(ie=ie.toString().replace(".",O.props.decimalSeparator)),ie},O.recordCursorPosition=function(){try{O.cursorStart=O.input.selectionStart,O.cursorEnd=O.input.selectionEnd,O.currentValue=O.input.value,O.cursorBefore=O.input.value.substring(0,O.cursorStart),O.cursorAfter=O.input.value.substring(O.cursorEnd)}catch(H){}},O.restoreByAfter=function(H){if(H===void 0)return!1;var G=O.input.value,L=G.lastIndexOf(H);if(L===-1)return!1;var W=O.cursorBefore.length;return O.lastKeyCode===R.a.DELETE&&O.cursorBefore.charAt(W-1)===H[0]?(O.fixCaret(W,W),!0):L+H.length===G.length?(O.fixCaret(L,L),!0):!1},O.partRestoreByAfter=function(H){return H===void 0?!1:Array.prototype.some.call(H,function(G,L){var W=H.substring(L);return O.restoreByAfter(W)})},O.isNotCompleteNumber=function(H){return isNaN(H)||H===""||H===null||H&&H.toString().indexOf(".")===H.toString().length-1},O.stop=function(){O.autoStepTimer&&clearTimeout(O.autoStepTimer)},O.down=function(H,G,L){O.pressingUpOrDown=!0,O.step("down",H,G,L)},O.up=function(H,G,L){O.pressingUpOrDown=!0,O.step("up",H,G,L)},O.saveInput=function(H){O.input=H};var N=_.value;N===void 0&&(N=_.defaultValue),O.state={focused:_.autoFocus};var U=O.getValidValue(O.toNumber(N));return O.state=g(g({},O.state),{},{inputValue:O.toPrecisionAsStep(U),value:U}),O}return Object(K.a)(C,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(O){var N=this.props,U=N.value,H=N.onChange,G=N.max,L=N.min,W=this.state.focused;if(O){if(!P(O.value,U)||!P(O.max,G)||!P(O.min,L)){var Z=W?U:this.getValidValue(U),oe;this.pressingUpOrDown?oe=Z:this.inputting?oe=this.rawInput:oe=this.toPrecisionAsStep(Z),this.setState({value:Z,inputValue:oe})}var ie="value"in this.props?U:this.state.value;"max"in this.props&&O.max!==G&&typeof ie=="number"&&ie>G&&H&&H(G),"min"in this.props&&O.min!==L&&typeof ie=="number"&&ie1&&arguments[1]!==void 0?arguments[1]:this.props.min,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,H=parseFloat(O);return isNaN(H)?O:(HU&&(H=U),H)}},{key:"setValue",value:function(O,N){var U=this.props.precision,H=this.isNotCompleteNumber(parseFloat(O))?null:parseFloat(O),G=this.state.value,L=G===void 0?null:G,W=this.state.inputValue,Z=W===void 0?null:W,oe=typeof H=="number"?H.toFixed(U):"".concat(H),ie=H!==L||oe!=="".concat(Z);return"value"in this.props?(Z=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Z},N)):this.setState({value:H,inputValue:this.toPrecisionAsStep(O)},N),ie&&this.props.onChange(H),H}},{key:"getMaxPrecision",value:function(O){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U=this.props,H=U.precision,G=U.step;if(v(H))return H;var L=this.getPrecision(N),W=this.getPrecision(G),Z=this.getPrecision(O);return O?Math.max(Z,L+W):L+W}},{key:"getPrecisionFactor",value:function(O){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U=this.getMaxPrecision(O,N);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(O){return this.props.formatter?this.props.formatter(O):O}},{key:"toPrecisionAsStep",value:function(O){if(this.isNotCompleteNumber(O)||O==="")return O;var N=Math.abs(this.getMaxPrecision(O));return isNaN(N)?O.toString():Number(O).toFixed(N)}},{key:"toNumber",value:function(O){var N=this.props.precision,U=this.state.focused,H=O&&O.length>16&&U;return this.isNotCompleteNumber(O)||H?O:v(N)?Math.round(O*Math.pow(10,N))/Math.pow(10,N):Number(O)}},{key:"upStep",value:function(O,N){var U=this.props.step,H=this.getPrecisionFactor(O,N),G=Math.abs(this.getMaxPrecision(O,N)),L=((H*O+H*U*N)/H).toFixed(G);return this.toNumber(L)}},{key:"downStep",value:function(O,N){var U=this.props.step,H=this.getPrecisionFactor(O,N),G=Math.abs(this.getMaxPrecision(O,N)),L=((H*O-H*U*N)/H).toFixed(G);return this.toNumber(L)}},{key:"step",value:function(O,N){var U=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,G=arguments.length>3?arguments[3]:void 0;this.stop(),N&&(N.persist(),N.preventDefault());var L=this.props;if(L.disabled)return;var W=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(W))return;var Z=this["".concat(O,"Step")](W,H),oe=Z>L.max||ZL.max?Z=L.max:Z=be),xt=(tn||tn===0)&&(isNaN(tn)||Number(tn)<=Je),je=st||H||G,we=xt||H||G,Te=m()("".concat(U,"-handler"),"".concat(U,"-handler-up"),Object(z.a)({},"".concat(U,"-handler-up-disabled"),je)),ue=m()("".concat(U,"-handler"),"".concat(U,"-handler-down"),Object(z.a)({},"".concat(U,"-handler-down-disabled"),we)),pe=L?{onTouchStart:je?d:this.up,onTouchEnd:this.stop}:{onMouseDown:je?d:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},me=L?{onTouchStart:we?d:this.down,onTouchEnd:this.stop}:{onMouseDown:we?d:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return k.a.createElement("div",{className:tt,style:Ae,title:ke,onMouseEnter:Ze,onMouseLeave:Xe,onMouseOver:Pe,onMouseOut:he,onFocus:function(){return null},onBlur:function(){return null}},k.a.createElement("div",{className:"".concat(U,"-handler-wrap")},k.a.createElement("span",Object.assign({unselectable:"on"},pe,{role:"button","aria-label":"Increase Value","aria-disabled":je,className:Te}),Z||k.a.createElement("span",{unselectable:"on",className:"".concat(U,"-handler-up-inner"),onClick:o})),k.a.createElement("span",Object.assign({unselectable:"on"},me,{role:"button","aria-label":"Decrease Value","aria-disabled":we,className:ue}),oe||k.a.createElement("span",{unselectable:"on",className:"".concat(U,"-handler-down-inner"),onClick:o}))),k.a.createElement("div",{className:"".concat(U,"-input-wrap")},k.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Je,"aria-valuemax":be,"aria-valuenow":tn,required:le,type:Ge,placeholder:it,onPaste:Rt,onClick:Se,onMouseUp:this.onMouseUp,className:"".concat(U,"-input"),tabIndex:ve,autoComplete:W,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Ct?this.onKeyDown:d,onKeyUp:Ct?this.onKeyUp:d,autoFocus:Fe,maxLength:_e,readOnly:G,disabled:H,max:be,min:Je,step:fe,name:He,title:ke,id:ee,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Dt),pattern:Q,inputMode:V,onInput:Ht},Ke))))}}]),C}(k.a.Component);E.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:b,min:-b,step:1,style:{},onChange:d,onKeyDown:d,onPressEnter:d,onFocus:d,onBlur:d,parser:u,required:!1,autoComplete:"off"};var h=E,c=rt.a=h},fyJ8:function(an,rt,F){"use strict";var re=F("rePB"),z=F("VTBJ"),I=F("Ff2n"),K=F("U8pU"),T=F("q1tI"),w=F.n(T),B=F("TSYQ"),x=F.n(B),k=F("c+Xe"),D=F("sR1s");function m(p){return p&&Object(K.a)(p)==="object"&&!Array.isArray(p)&&!T.isValidElement(p)}function R(p){return typeof p=="string"?!0:Object(k.c)(p)}function M(p,d){var o,u=p.prefixCls,f=p.className,S=p.record,b=p.index,v=p.dataIndex,P=p.render,E=p.children,h=p.component,c=h===void 0?"td":h,s=p.colSpan,i=p.rowSpan,C=p.fixLeft,_=p.fixRight,O=p.firstFixLeft,N=p.lastFixLeft,U=p.firstFixRight,H=p.lastFixRight,G=p.appendNode,L=p.additionalProps,W=L===void 0?{}:L,Z=p.ellipsis,oe=p.align,ie=p.rowType,be=p.isSticky,Je="".concat(u,"-cell"),Ae,ke;if(E)ke=E;else{var Ze=Object(D.b)(S,v);if(ke=Ze,P){var Xe=P(Ze,S,b);m(Xe)?(ke=Xe.children,Ae=Xe.props):ke=Xe}}Object(K.a)(ke)==="object"&&!Array.isArray(ke)&&!T.isValidElement(ke)&&(ke=null),Z&&(N||U)&&(ke=T.createElement("span",{className:"".concat(Je,"-content")},ke));var Pe=Ae||{},he=Pe.colSpan,le=Pe.rowSpan,Se=Pe.style,ve=Pe.className,Ge=Object(I.a)(Pe,["colSpan","rowSpan","style","className"]),it=he!==void 0?he:s,ee=le!==void 0?le:i;if(it===0||ee===0)return null;var V={},Q=typeof C=="number",fe=typeof _=="number";Q&&(V.position="sticky",V.left=C),fe&&(V.position="sticky",V.right=_);var _e={};oe&&(_e.textAlign=oe);var Fe,He=Z===!0?{showTitle:!0}:Z;He&&(He.showTitle||ie==="header")&&(typeof ke=="string"||typeof ke=="number"?Fe=ke.toString():T.isValidElement(ke)&&typeof ke.props.children=="string"&&(Fe=ke.props.children));var Rt=Object(z.a)(Object(z.a)(Object(z.a)({title:Fe},Ge),W),{},{colSpan:it&&it!==1?it:null,rowSpan:ee&&ee!==1?ee:null,className:x()(Je,f,(o={},Object(re.a)(o,"".concat(Je,"-fix-left"),Q),Object(re.a)(o,"".concat(Je,"-fix-left-first"),O),Object(re.a)(o,"".concat(Je,"-fix-left-last"),N),Object(re.a)(o,"".concat(Je,"-fix-right"),fe),Object(re.a)(o,"".concat(Je,"-fix-right-first"),U),Object(re.a)(o,"".concat(Je,"-fix-right-last"),H),Object(re.a)(o,"".concat(Je,"-ellipsis"),Z),Object(re.a)(o,"".concat(Je,"-with-append"),G),Object(re.a)(o,"".concat(Je,"-fix-sticky"),(Q||fe)&&be),o),W.className,ve),style:Object(z.a)(Object(z.a)(Object(z.a)(Object(z.a)({},W.style),_e),V),Se),ref:R(c)?d:null});return T.createElement(c,Object.assign({},Rt),G,ke)}var g=T.forwardRef(M);g.displayName="Cell";var n=T.memo(g,function(p,d){return d.shouldCellUpdate?!d.shouldCellUpdate(d.record,p.record):!1});rt.a=n},gbAR:function(an,rt,F){"use strict";F.r(rt);var re=F("Znn+"),z=F("ZTPi"),I=F("sPJy"),K=F("bE4q"),T=F("miYZ"),w=F("tsqr"),B=F("9og8"),x=F("+L6B"),k=F("2/Rp"),D=F("k1fw"),m=F("tJVT"),R=F("WmNS"),M=F.n(R),g=F("q1tI"),n=F.n(g),p=F("Ty5D"),d=F("9kvl"),o=F("55Ip"),u=F("jhfD"),f=F("1vsH"),S=F("xKgJ"),b=F("2qtc"),v=F("kLXV"),P=F("giR+"),E=F("fyUT"),h=F("7Kak"),c=F("9yH6"),s=F("DjyN"),i=F("NUBc"),C=F("g9YV"),_=F("wCAj"),O=F("qVdP"),N=F("jsC+"),U=F("5NDa"),H=F("5rEg"),G=F("14J3"),L=F("BMrR"),W=F("sRBo"),Z=F("kaz8"),oe=F("jCWc"),ie=F("kPKH"),be=F("lUTK"),Je=F("BvKs"),Ae=F("5Dmo"),ke=F("3S7+"),Ze=F("jrin"),Xe=F("oBTY"),Pe=F("y8nQ"),he=F("Vl3Y"),le=F("8Skl"),Se=F("y3Kf"),ve=F("Llu2"),Ge=F("0NbB"),it=F("wd/R"),ee=F.n(it),V=F("ErOA"),Q=F("BdwD"),fe=function(At){var Yt=At.shixunHomeworks,bn=At.dispatch,tr=Object(p.i)();return n.a.createElement(v.a,{centered:!0,title:"\u63D0\u793A",visible:Yt.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(B.a)(M.a.mark(function Wn(){var Jn;return M.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:return zn.next=2,Object(V.a)("/api/myshixuns/".concat(Yt.actionTabs.selectArrs.myshixun_identifier,"/reset_my_game.json"),{method:"post",body:{course_id:tr.coursesId}});case 2:Jn=zn.sent,Jn.status===0&&(w.b.success("\u5220\u9664\u6210\u529F"),bn({type:"shixunHomeworks/setActionTabs",payload:{}}),bn({type:"shixunHomeworks/getWorkList",payload:Object(D.a)({},Yt.actionTabs.params)}));case 4:case"end":return zn.stop()}},Wn)})),onCancel:function(){bn({type:"shixunHomeworks/setActionTabs",payload:{}})}},n.a.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),n.a.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))},_e=Object(d.a)(function(rn){var At=rn.shixunHomeworks;return{shixunHomeworks:At}})(fe),Fe=function(At){var Yt=At.shixunHomeworks,bn=At.dispatch,tr=Object(p.i)(),Wn=Object(g.useState)(!0),Jn=Object(m.a)(Wn,2),Sr=Jn[0],zn=Jn[1],Gn=he.a.useForm(),Un=Object(m.a)(Gn,1),mn=Un[0];return n.a.createElement(n.a.Fragment,null,n.a.createElement(v.a,{centered:!0,title:"\u8C03\u5206",visible:Yt.actionTabs.key==="\u8C03\u5206",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(B.a)(M.a.mark(function br(){var _r,Cn;return M.a.wrap(function(xr){for(;;)switch(xr.prev=xr.next){case 0:return xr.next=2,mn.validateFields();case 2:return _r=mn.getFieldsValue(),xr.next=5,Object(V.a)("/api/student_works/".concat(Yt.actionTabs.id,"/adjust_score.json"),{method:"post",body:Object(D.a)({},_r)});case 5:Cn=xr.sent,Cn.status===0&&(w.b.success("\u8BC4\u9605\u6210\u529F"),mn.resetFields(),bn({type:"shixunHomeworks/setActionTabs",payload:{}}),bn({type:"shixunHomeworks/getWorkList",payload:Object(D.a)({},Yt.actionTabs.params)}));case 7:case"end":return xr.stop()}},br)})),onCancel:function(){bn({type:"shixunHomeworks/setActionTabs",payload:{}})}},n.a.createElement("p",{className:"tc"},"\u8BE5\u5B66\u751F\u7684\u6700\u7EC8\u6210\u7EE9\u5C06\u4E0D\u4F1A\u6309\u7167\u8BC4\u5206\u89C4\u5219\u8FDB\u884C\u8BA1\u7B97"),n.a.createElement(he.a,{form:mn,layout:"horizontal"},n.a.createElement("div",{style:{display:"flex",alignItems:"baseline"}},n.a.createElement(he.a.Item,{label:"\u6210\u7EE9",name:"score",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement(E.a,{min:0,placeholder:"\u8BF7\u586B\u5199\u5206\u6570"})),n.a.createElement("span",{className:"ml10"},"\u5206")),n.a.createElement("div",null,n.a.createElement(he.a.Item,{name:"comment"},n.a.createElement(H.a.TextArea,{placeholder:"\u8BF7\u586B\u5199\u60A8\u5BF9\u4F5C\u54C1\u8C03\u5206\u7684\u539F\u56E0",rows:8}))))))},He=Object(d.a)(function(rn){var At=rn.shixunHomeworks;return{shixunHomeworks:At}})(Fe),Rt=F("Ot1p"),Ht=F("GUfm"),It=F.n(Ht),Bt=F("mgmH"),tn=Object(g.createRef)(),fn=function(At){var Yt,bn,tr,Wn,Jn,Sr,zn,Gn,Un,mn,br,_r=At.shixunHomeworks,Cn=At.loading,or=At.user,xr=At.dispatch,Ur=At.zip,q=At.btnLoading,De=At.setBtnLoading,Ve=Object(g.useState)(Object(D.a)(Object(D.a)({},Object(p.i)()),{page:1,limit:20})),Be=Object(m.a)(Ve,2),$e=Be[0],qe=Be[1],ht=Object(p.h)(),Ee=_r.workList,gt=Object(g.useState)({}),yt=Object(m.a)(gt,2),Lt=yt[0],bt=yt[1],ut=Object(g.useState)(""),kt=Object(m.a)(ut,2),Mt=kt[0],Le=kt[1],mt=Object(g.useState)(""),Pt=Object(m.a)(mt,2),Jt=Pt[0],Nt=Pt[1],Sn=Object(g.useState)(""),gn=Object(m.a)(Sn,2),un=gn[0],Mn=gn[1],Rn=Object(g.useState)([]),vt=Object(m.a)(Rn,2),Xt=vt[0],Tt=vt[1],Tn=Object(g.useState)(),zt=Object(m.a)(Tn,2),En=zt[0],wn=zt[1],Yn=Object(g.useState)([]),Ln=Object(m.a)(Yn,2),yn=Ln[0],sr=Ln[1],Fn=Object(g.useState)({}),Ir=Object(m.a)(Fn,2),dr=Ir[0],Mr=Ir[1],Hn=Object(g.useState)(!1),Vn=Object(m.a)(Hn,2),Zn=Vn[0],Wr=Vn[1],ea=Object(g.useState)([]),Yr=Object(m.a)(ea,2),ta=Yr[0],pa=Yr[1],ma=Object(g.useState)(!1),Ga=Object(m.a)(ma,2),Oa=Ga[0],Wa=Ga[1],ya=Object(g.useState)(),Ma=Object(m.a)(ya,2),Qa=Ma[0],La=Ma[1],va=Object(g.useState)(1),Ca=Object(m.a)(va,2),sa=Ca[0],Ce=Ca[1],Ye=Object(g.useState)(),et=Object(m.a)(Ye,2),Oe=et[0],se=et[1],ye=Object(g.useState)(),de=Object(m.a)(ye,2),Re=de[0],Ie=de[1],at=Object(g.useState)(),Ue=Object(m.a)(at,2),lt=Ue[0],Ot=Ue[1],jt=Object(g.useState)({status:!1,visible:!0}),Gt=Object(m.a)(jt,2),hn=Gt[0],In=Gt[1],ar=he.a.useForm(),nr=Object(m.a)(ar,1),ir=nr[0];Object(g.useEffect)(function(){tn&&tn.current&&(tn.current.clientHeight>47?In({status:!0,visible:!0}):In({status:!1,visible:!0}))},[Ee.course_group_info&&Ee.course_group_info.length]),Object(g.useEffect)(function(){Ee!=null&&Ee.course_id&&(Object(S.c)()?sr([]):sr([Object(D.a)(Object(D.a)({},Ee),{isMe:!0})]))},[or.userInfo]),Object(g.useEffect)(function(){Ee!=null&&Ee.course_id&&setTimeout(function(){Tt(Object(Xe.a)(Ee.student_works))},400)},[Ee]);var pr=function(){var sn=Object(B.a)(M.a.mark(function cn(){var $t;return M.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return jn.next=2,xr({type:"shixunHomeworks/getWorkList",payload:Object(D.a)({},$e)});case 2:$t=jn.sent,Object(S.c)()?Tt(Object(Xe.a)($t.student_works)):Tt(Object(Xe.a)($t));case 4:case"end":return jn.stop()}},cn)}));return function(){return sn.apply(this,arguments)}}();function lr(){Ce(1),wn(""),se(""),Ie(""),Ot(""),pa([])}var mr=function(){$e.page=1;var cn=Object.assign({},ir.getFieldValue());delete $e.course_group,delete $e.teacher_comment,Object.keys(cn).map(function($t){switch($t){case"teacher_comment":case"member_work":if(cn[$t].length>1||!cn[$t].length)delete $e[$t],ir.setFieldsValue(Object(Ze.a)({},$t,"all"));else{var Qn;$e[$t]=(Qn=cn[$t])===null||Qn===void 0?void 0:Qn[0]}break;case"work_status":cn[$t].includes("all")||Ee.task_status.length===cn[$t].length||!cn[$t].length?(delete $e.work_status,ir.setFieldsValue(Object(Ze.a)({},"work_status","all"))):($e.work_status=cn[$t],ir.setFieldsValue(Object(Ze.a)({},"work_status",$e.work_status)));break;case"course_group_info":cn[$t].includes("all")||Ee[$t].length===cn[$t].length||!cn[$t].length?(delete $e.course_group,ir.setFieldsValue(Object(Ze.a)({},"course_group_info","all"))):($e.course_group=cn[$t],ir.setFieldsValue(Object(Ze.a)({},"course_group_info",$e.course_group)));break}}),pr()},Er=function(cn,$t){$e.page=cn,$e.limit=20,pr()},rr=[{name:"\u7EC4\u957F",id:1},{name:"\u7EC4\u5458",id:0}],Tr=[{title:"\u5E8F\u53F7",dataIndex:"name",align:"center",width:50,render:function(cn,$t,Qn){return $e.limit*($e.page-1)+Qn+1}},{title:"\u59D3\u540D",align:"center",dataIndex:"user_name",width:90,render:function(cn,$t){return n.a.createElement("div",null,cn,n.a.createElement("br",null),$t.is_leader&&n.a.createElement("span",{className:"leader"},"\u7EC4\u957F"))}},Object(S.c)()&&{title:"\u5B66\u53F7",align:"center",dataIndex:"student_id",sortOrder:dr.student_id,sortDirections:["descend","ascend"],width:90,sorter:function(cn,$t){return cn.id-$t.id},render:function(cn){return cn}},Object(S.c)()&&{title:"\u5206\u73ED",align:"center",dataIndex:"group_name"},{title:"\u5206\u7EC4",align:"center",dataIndex:"work_group",width:70,render:function(cn){return n.a.createElement("span",{className:"c-blue"},cn)}},(Ee==null?void 0:Ee.base_on_project)&&{title:"\u5173\u8054\u9879\u76EE",align:"center",dataIndex:"base_on_project",width:70,render:function(cn,$t){var Qn,jn,yr,Nr,Lr,Or;return((Qn=$t.project_info)===null||Qn===void 0?void 0:Qn.id)!==-1?n.a.createElement("a",{target:"_blank",href:"".concat((jn=or.navigationInfo)===null||jn===void 0||((yr=jn.top)===null||yr===void 0)?void 0:yr.old_url).concat((Nr=$t.project_info)===null||Nr===void 0?void 0:Nr.id),className:"c-blue"},(Lr=$t.project_info)===null||Lr===void 0?void 0:Lr.name):(Or=$t.project_info)===null||Or===void 0?void 0:Or.name}},{title:"\u4F5C\u54C1\u72B6\u6001",dataIndex:"work_status",width:"8%",align:"center",render:function(cn){return cn===-1?"\u91CD\u505A\u4E2D":n.a.createElement(f.a,{status:cn})}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"redo_count",width:"8%",align:"center",render:function(cn){return cn||"- -"}},{title:"\u66F4\u65B0\u65F6\u95F4",align:"center",dataIndex:"update_time",sortOrder:dr.update_time,sortDirections:["descend","ascend"],width:105,sorter:function(cn,$t){return cn.id-$t.id},render:function(cn){return cn?ee()(cn).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},Ee.anonymous_comment&&{title:"\u533F\u8BC4\u8BC4\u5206",align:"center",dataIndex:"student_score",width:75},(Object(S.c)()||Object(S.s)()&&!(Ee!=null&&Ee.anonymous_comment)&&!Ee.anonymous_appeal||Object(S.s)()&&((Yt=Ee.homework_status)===null||Yt===void 0?void 0:Yt.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(cn){return cn}},{title:"\u64CD\u4F5C",width:"8%",align:"center",dataInex:"action",render:function(cn,$t){return $t.work_status===0&&!Object(S.c)()?n.a.createElement("div",null,"--"):n.a.createElement("div",null,!Object(S.c)()&&n.a.createElement(o.a,{className:"c-blue",target:"_blank",to:"/classrooms/".concat($e.coursesId,"/group_homework/").concat($e.categoryId,"/review/").concat($t.id)},"\u67E5\u770B"),Object(S.c)()&&n.a.createElement(o.a,{className:"c-blue",target:"_blank",to:"/classrooms/".concat($e.coursesId,"/group_homework/").concat($e.categoryId,"/review/").concat($t.id)},$t.has_comment?"\u5DF2\u8BC4\u9605":"\u8BC4\u9605"),n.a.createElement("br",null),Object(S.c)()&&n.a.createElement(ke.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(jn){jn.preventDefault(),xr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8C03\u5206",selectArrs:$t,id:$t.id,params:$e}})}},"\u8C03\u5206")))}}].filter(function(sn){return!!sn}),$n=Object(Xe.a)(Tr.map(function(sn){return Object(D.a)({},sn)}));$n[0].render=function(sn){return"\u6211"};var nn=function(){var sn=Object(B.a)(M.a.mark(function cn(){var $t,Qn;return M.a.wrap(function(yr){for(;;)switch(yr.prev=yr.next){case 0:return De(!0),yr.next=3,Object(V.a)("/api/homework_commons/".concat($e==null?void 0:$e.categoryId,"/export_student_works.json"),{method:"get",params:JSON.parse(sessionStorage.all_student_works_params)});case 3:$t=yr.sent,$t.status===0?(Qn=Ur.current)===null||Qn===void 0||Qn.exportReport($t.files):De(!1);case 5:case"end":return yr.stop()}},cn)}));return function(){return sn.apply(this,arguments)}}(),_n=function(){return n.a.createElement(Je.a,null,n.a.createElement(Je.a.Item,{key:"1"},n.a.createElement("span",{onClick:function(){return Object(Bt.h)(JSON.parse(sessionStorage.all_student_works_params),"group_work_list")}},"\u5BFC\u51FA\u6210\u7EE9")),n.a.createElement(Je.a.Item,{key:"3"},n.a.createElement(k.a,{loading:q,ghost:!0,style:{paddingLeft:0,background:"transparent"},type:"text",onClick:function(){return nn()}},"\u5BFC\u51FA\u4F5C\u54C1\u9644\u4EF6")),n.a.createElement(Je.a.Item,{key:"2"},n.a.createElement(o.a,{to:"/classrooms/".concat($e.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(S.c)()?"pt30":""," pr30")},!(Ee!=null&&Ee.all_member_count)&&!Cn["shixunHomeworks/getWorkList"]&&((Ee==null||((bn=Ee.homework_status)===null||bn===void 0)?void 0:bn.includes("\u672A\u53D1\u5E03"))||(Ee==null||((tr=Ee.homework_status)===null||tr===void 0)?void 0:tr.includes("\u672A\u5F00\u59CB")))&&n.a.createElement("aside",{className:"bg-white inline-block w100"},n.a.createElement(Q.a,null)),!Object(S.c)()&&n.a.createElement("aside",{className:"pt10 pb10"},n.a.createElement("span",{className:"c-orange"},Ee.commit_count),"\u5DF2\u4EA4",n.a.createElement("span",{className:"ml10"},Ee.uncommit_count),"\u672A\u4EA4",(Ee==null||((Wn=Ee.left_time)===null||Wn===void 0)?void 0:Wn.time)&&n.a.createElement("span",{className:"ml10"},n.a.createElement("span",null,Ee==null||((Jn=Ee.left_time)===null||Jn===void 0)?void 0:Jn.status),n.a.createElement("span",{className:"c-orange"},Ee==null||((Sr=Ee.left_time)===null||Sr===void 0)?void 0:Sr.time))),n.a.createElement("aside",null,!(Ee!=null&&(zn=Ee.homework_status)!==null&&zn!==void 0&&zn.includes("\u672A\u53D1\u5E03"))&&!(Ee!=null&&(Gn=Ee.homework_status)!==null&&Gn!==void 0&&Gn.includes("\u672A\u5F00\u59CB"))&&n.a.createElement("aside",null,Object(S.c)()&&n.a.createElement("aside",{className:"mb30"},n.a.createElement(he.a,{form:ir,onChange:mr,initialValues:(Un={},Object(Ze.a)(Un,"member_work","all"),Object(Ze.a)(Un,"work_status","all"),Object(Ze.a)(Un,"course_group_info","all"),Object(Ze.a)(Un,"teacher_comment","all"),Un)},n.a.createElement(he.a.Item,{name:"teacher_comment"},n.a.createElement(Z.a.Group,{style:{width:"100%"}},n.a.createElement(L.a,null,n.a.createElement(ie.a,{flex:"80px",style:{fontSize:14}},"\u4F60\u7684\u8BC4\u9605:"),n.a.createElement(ie.a,{flex:"80px"},n.a.createElement(Z.a,{value:"all",checked:!Lt.teacher_comment},"\u5168\u90E8")),n.a.createElement(ie.a,{flex:"1"},Ee.teacher_comment&&Ee.teacher_comment.map(function(sn){return n.a.createElement(Z.a,{value:sn.id,key:sn.id},sn.name,"(",sn.count,")")}))))),n.a.createElement(he.a.Item,{name:"work_status"},n.a.createElement(Z.a.Group,{value:[],style:{width:"100%"}},n.a.createElement(L.a,null,n.a.createElement(ie.a,{flex:"80px",style:{fontSize:14}},"\u4F5C\u54C1\u72B6\u6001:"),n.a.createElement(ie.a,{flex:"80px"},n.a.createElement(Z.a,{value:"all",checked:!Lt.work_status},"\u5168\u90E8")),n.a.createElement(ie.a,{flex:"1"},Ee.task_status&&Ee.task_status.map(function(sn){return n.a.createElement(Z.a,{name:"work_status",value:sn.id,key:sn.id},sn.name,"(",sn.count,")")}))))),n.a.createElement(he.a.Item,{name:"member_work"},n.a.createElement(Z.a.Group,{style:{width:"100%"}},n.a.createElement(L.a,null,n.a.createElement(ie.a,{flex:"80px",style:{fontSize:14}},"\u7EC4\u5185\u89D2\u8272:"),n.a.createElement(ie.a,{flex:"80px"},n.a.createElement(Z.a,{value:"all"},"\u5168\u90E8")),n.a.createElement(ie.a,{flex:"1"},rr.map(function(sn){return n.a.createElement(Z.a,{value:sn.id,key:sn.id},sn.name)}))))),n.a.createElement(he.a.Item,{name:"course_group_info"},n.a.createElement(Z.a.Group,{style:{width:"100%"}},n.a.createElement(L.a,null,n.a.createElement(ie.a,{flex:"80px",style:{fontSize:14}},"\u5206\u73ED\u60C5\u51B5:"),n.a.createElement(ie.a,{flex:"80px"},n.a.createElement(Z.a,{value:"all",checked:!Lt.course_group},"\u5168\u90E8")),n.a.createElement(ie.a,{flex:"1",className:"".concat(It.a.workListClass," ").concat(hn.visible?It.a.visible:""," ").concat(hn.status?"":It.a.status)},n.a.createElement("div",{ref:tn,className:It.a.left},Ee.course_group_info&&Ee.course_group_info.map(function(sn){return n.a.createElement(Z.a,{value:sn.course_group_id,key:sn.course_group_id},sn.group_group_name,"(",sn.count,")")})),hn.status&&n.a.createElement("div",{className:It.a.tips,onClick:function(){return In(Object(D.a)(Object(D.a)({},hn),{},{visible:!hn.visible}))}},n.a.createElement("span",null,hn.visible?"\u5C55\u5F00":"\u6536\u8D77",hn.visible?n.a.createElement(le.a,{style:{marginBottom:"3px",marginLeft:"2px"}}):n.a.createElement(Se.a,{style:{marginBottom:"3px",marginLeft:"2px"}})))))))),n.a.createElement(L.a,{align:"middle"},n.a.createElement(ie.a,{flex:"1"},n.a.createElement(L.a,{align:"middle"},n.a.createElement(ie.a,null,n.a.createElement(H.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:function(cn){$e.page=1,$e.search=cn,xr({type:"shixunHomeworks/getWorkList",payload:Object(D.a)({},$e)})},style:{width:240}})),n.a.createElement(ie.a,null,n.a.createElement("span",{className:"ml5 c-red"},Ee.work_count),"\u4E2A\u68C0\u7D22\u7ED3\u679C\uFF08",Ee.work_count,"\u4E2A\u5B66\u751F\uFF09"))),n.a.createElement(ie.a,{style:{textAlign:"end"},className:It.a.workListButtonWrap},n.a.createElement(N.a,{overlay:_n},n.a.createElement(k.a,null,n.a.createElement(ve.a,null),"\u5BFC\u51FA",n.a.createElement(Ge.a,null)))))),!!yn.length&&n.a.createElement(_.a,{className:"mb10",dataSource:yn,columns:$n,pagination:!1,showHeader:!1,loading:!1}),n.a.createElement("aside",{className:"mb30"},n.a.createElement(_.a,{loading:Cn["shixunHomeworks/getWorkList"],hideOnSinglePage:!0,pagination:!1,dataSource:Xt,columns:Tr,onChange:function(cn,$t,Qn){if(dr={},Qn.order===void 0){dr[Qn.field]="descend";switch(Qn.field){case"student_id":Le("descend"),$e.b_order="desc";break}}else $e.b_order=Qn.order.replace("end",""),dr[Qn.field]=Qn.order;Mr(Object(D.a)({},dr)),$e.order=Qn.field,xr({type:"shixunHomeworks/getWorkList",payload:Object(D.a)({},$e)})}}))))),n.a.createElement("aside",{className:"tc mb50 mt30"},n.a.createElement(i.a,{showSizeChanger:!1,hideOnSinglePage:!0,onChange:Er,defaultCurrent:$e.page||1,current:$e.page||1,defaultPageSize:20,total:_r.workList.work_count}))),n.a.createElement(He,null),n.a.createElement(_e,null),Zn&&n.a.createElement(v.a,{title:"\u4E00\u952E\u6253\u56DE\u91CD\u505A",visible:Zn,centered:!0,destroyOnClose:!0,forceRender:!0,width:700,onOk:Object(B.a)(M.a.mark(function sn(){var cn,$t;return M.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(!(sa===2)){jn.next=13;break}if(!(ta.length<=0)){jn.next=4;break}return w.b.info("\u8BF7\u9009\u62E9\u4F5C\u4E1A\u72B6\u6001"),jn.abrupt("return");case 4:if(lt){jn.next=7;break}return w.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),jn.abrupt("return");case 7:return jn.next=9,Object(V.a)("/api/homework_commons/".concat($e.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:$e.categoryId,comment:lt,status:ta}});case 9:cn=jn.sent,cn.status===0&&(La(cn),Wr(!1),Wa(!0)),jn.next=32;break;case 13:if(!(Re===0||Oe===0)){jn.next=16;break}jn.next=22;break;case 16:if(Re){jn.next=19;break}return w.b.info("\u6700\u4F4E\u5206\u4E0D\u80FD\u4E3A\u7A7A"),jn.abrupt("return");case 19:if(Oe){jn.next=22;break}return w.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u4E3A\u7A7A"),jn.abrupt("return");case 22:if(!(Re>Oe)){jn.next=25;break}return w.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u5927\u4E8E\u6700\u4F4E\u5206"),jn.abrupt("return");case 25:if(lt){jn.next=28;break}return w.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),jn.abrupt("return");case 28:return jn.next=30,Object(V.a)("/api/homework_commons/".concat($e.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:$e.categoryId,comment:lt,min_score:Re,max_score:Oe}});case 30:$t=jn.sent,$t.status===0&&(La($t),Wr(!1),Wa(!0));case 32:case"end":return jn.stop()}},sn)})),onCancel:function(){Wr(!1),lr()}},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(c.a.Group,{value:sa,onChange:function(cn){Ce(cn.target.value)}},n.a.createElement(c.a,{value:1},"\u6309\u6210\u7EE9\u6253\u56DE"),n.a.createElement(c.a,{value:2},"\u6309\u4F5C\u4E1A\u72B6\u6001\u6253\u56DE"))),sa===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(E.a,{min:0,max:100,value:Re,onChange:function(cn){return Ie(cn)},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(E.a,{min:0,max:100,value:Oe,onChange:function(cn){return se(cn)},style:{width:"100px"}})),sa===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(Z.a.Group,{onChange:function(cn){pa(Object(Xe.a)(cn))},style:{width:"100%"}},(mn=Ee.task_status)===null||mn===void 0?void 0:mn.map(function(sn,cn){return n.a.createElement(Z.a,{name:"task_status",value:sn.id},sn.name,"(",sn.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(Rt.a,{className:It.a.MdEditor,onChange:function(cn){return Ot(cn)},placeholder:"\u8BF7\u586B\u5199\u8BC4\u8BED"}))))),Oa&&n.a.createElement(v.a,{visible:Oa,title:"\u6253\u56DE\u786E\u8BA4",onOk:Object(B.a)(M.a.mark(function sn(){var cn,$t;return M.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(!(sa===2)){jn.next=7;break}return jn.next=3,Object(V.a)("/api/homework_commons/".concat($e.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:$e.categoryId,comment:lt,status:ta}});case 3:cn=jn.sent,cn.status===0&&(w.b.info("\u6253\u56DE\u6210\u529F"),lr(),pr(),Wa(!1)),jn.next=11;break;case 7:return jn.next=9,Object(V.a)("/api/homework_commons/".concat($e.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:$e.categoryId,comment:lt,min_score:Re,max_score:Oe}});case 9:$t=jn.sent,$t.status===0&&(w.b.info("\u6253\u56DE\u6210\u529F"),lr(),pr(),Wa(!1));case 11:case"end":return jn.stop()}},sn)})),onCancel:function(){lr(),Wa(!1)}},n.a.createElement("div",{style:{padding:"32px"}},sa===1&&n.a.createElement("span",null,"\u786E\u8BA4\u5C06\u6210\u7EE9\u5728",Re,"-",Oe,"\u7684\u5B66\u751F\u8FDB\u884C\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),sa===2&&n.a.createElement("span",null,"\u786E\u8BA4\u5C06\u4F5C\u4E1A\u72B6\u6001\u4E3A",((br=Ee.task_status)===null||br===void 0?void 0:br.filter(function(sn){return ta==null?void 0:ta.includes(sn.id)}).map(function(sn){return sn.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",Qa==null?void 0:Qa.count,"\u540D\u5B66\u751F"))))},tt=Object(d.a)(function(rn){var At=rn.shixunHomeworks,Yt=rn.user,bn=rn.loading;return{shixunHomeworks:At,loading:bn.effects,user:Yt}})(fn),Ke=F("m3rI"),Ct=F("9Bee"),Dt=function(At){var Yt=At.shixunHomeworks,bn=At.dispatch,tr=Object(p.i)();return n.a.createElement(v.a,{centered:!0,title:"\u63D0\u793A",visible:Yt.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(B.a)(M.a.mark(function Wn(){var Jn;return M.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:return zn.next=2,bn({type:"shixunHomeworks/deleteReply",payload:{object_id:Yt.actionTabs.selectArr.id,object_type:"journals_for_message"}});case 2:Jn=zn.sent,Jn.status===0&&(w.b.success("\u5220\u9664\u6210\u529F"),bn({type:"shixunHomeworks/setActionTabs",payload:{}}),bn({type:"shixunHomeworks/getReplyList",payload:Object(D.a)({},Yt.actionTabs.params)}));case 4:case"end":return zn.stop()}},Wn)})),onCancel:function(){bn({type:"shixunHomeworks/setActionTabs",payload:{}})}},n.a.createElement("p",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"))},st=Object(d.a)(function(rn){var At=rn.shixunHomeworks;return{shixunHomeworks:At}})(Dt),xt=F("/MfK"),je=F("BtR2"),we=F("nqnY"),Te=F.n(we);ee.a.lang("ZH-cn");var ue=function(At){var Yt,bn,tr,Wn,Jn=At.shixunHomeworks,Sr=At.classroomList,zn=At.globalSetting,Gn=At.loading,Un=At.user,mn=At.dispatch,br=Object(g.useState)(Object(D.a)({},Object(p.i)())),_r=Object(m.a)(br,2),Cn=_r[0],or=_r[1],xr=Object(g.useState)(!1),Ur=Object(m.a)(xr,2),q=Ur[0],De=Ur[1],Ve=Object(g.useState)(-1),Be=Object(m.a)(Ve,2),$e=Be[0],qe=Be[1],ht=Object(g.useState)(""),Ee=Object(m.a)(ht,2),gt=Ee[0],yt=Ee[1],Lt=Object(g.useState)(""),bt=Object(m.a)(Lt,2),ut=bt[0],kt=bt[1],Mt=Jn.workList,Le=Sr.detailLeftMenus,mt=Jn.shixunHomeworksDetail,Pt=Jn.replyList,Jt=Jn.workDetail;return Cn.page_size=10,Object(g.useEffect)(function(){mn({type:"shixunHomeworks/getReplyList",payload:Object(D.a)({},Cn)}),mn({type:"shixunHomeworks/getWorkDetail",payload:Object(D.a)({},Cn)}),Le.course_modules||mn({type:"classroomList/getClassroomLeftMenus",payload:Object(D.a)({},Cn)})},[Cn.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(" ")},Jn.actionTabs.key!=="\u7F16\u8F91\u4F5C\u4E1A"&&n.a.createElement(Ct.a,{value:(Jt==null?void 0:Jt.description)||"\u6682\u65E0\uFF5E"}),"\u5206\u7EC4\u8981\u6C42\uFF1A",Jt==null||((Yt=Jt.group_info)===null||Yt===void 0)?void 0:Yt.min_num," ~ ",Jt==null||((bn=Jt.group_info)===null||bn===void 0)?void 0:bn.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",Jt!=null&&(tr=Jt.group_info)!==null&&tr!==void 0&&tr.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"),Jt==null||((Wn=Jt.attachments)===null||Wn===void 0)?void 0:Wn.map(function(Nt,Sn){return n.a.createElement("div",null,n.a.createElement("a",{href:"".concat(Ke.a.API_SERVER).concat(Nt.url)},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)))}),Jn.actionTabs.key==="\u7F16\u8F91\u4F5C\u4E1A"&&n.a.createElement("aside",{className:["bg-white"].join(" ")},n.a.createElement(Rt.a,{onChange:function(Sn){yt(Sn)},defaultValue:Jt==null?void 0:Jt.explanation,height:200,isFocus:!0,watch:!0}),n.a.createElement(L.a,null,n.a.createElement(ie.a,{span:24,className:"tr"},n.a.createElement(k.a,{type:"default",size:"large",onClick:Object(B.a)(M.a.mark(function Nt(){return M.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:mn({type:"shixunHomeworks/setActionTabs",payload:{key:""}});case 1:case"end":return gn.stop()}},Nt)}))},"\u53D6\u6D88"),n.a.createElement(k.a,{type:"primary",size:"large",className:"ml20",onClick:Object(B.a)(M.a.mark(function Nt(){var Sn;return M.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:if(!(gt==="")){un.next=4;break}w.b.error("\u8BF7\u8F93\u5165\u5185\u5BB9"),un.next=8;break;case 4:return un.next=6,mn({type:"shixunHomeworks/updateWork",payload:{explanation:gt,categoryId:Cn.categoryId}});case 6:Sn=un.sent,Sn.status===0&&(w.b.success("\u64CD\u4F5C\u6210\u529F"),mn({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),mn({type:"shixunHomeworks/getWorkDetail",payload:Object(D.a)({},Cn)}));case 8:case"end":return un.stop()}},Nt)}))},"\u4FDD\u5B58"))))),n.a.createElement("aside",{className:[Te.a.reply,"bg-white","mt20"].join(" ")},q&&n.a.createElement(Rt.a,{onChange:function(Sn){yt(Sn)},height:200,isFocus:!0,watch:!0}),n.a.createElement(L.a,{onClick:function(){De(!0)}},n.a.createElement(ie.a,{flex:"1"},!q&&n.a.createElement(H.a,{size:"large",className:"current",placeholder:"\u8BF4\u70B9\u4EC0\u4E48",disabled:!0})),n.a.createElement(ie.a,null,n.a.createElement(k.a,{type:"primary",size:"large",onClick:Object(B.a)(M.a.mark(function Nt(){var Sn;return M.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:if(!(gt==="")){un.next=4;break}w.b.error("\u8BF7\u8F93\u5165\u5185\u5BB9"),un.next=8;break;case 4:return un.next=6,mn({type:"shixunHomeworks/createReply",payload:{journals_for_message:{jour_id:Cn.categoryId,jour_type:"HomeworkCommon",reply_id:1,notes:gt}}});case 6:Sn=un.sent,Sn.status===0&&(w.b.success("\u53D1\u5E03\u6210\u529F"),mn({type:"shixunHomeworks/getReplyList",payload:Object(D.a)({},Cn)}),De(!1),yt(""));case 8:case"end":return un.stop()}},Nt)}))},"\u53D1\u8868")))),(Pt==null?void 0:Pt.comments)&&Pt.comments!=""&&n.a.createElement("aside",{className:[Te.a.replyList,"bg-white"].join(" ")},Pt==null?void 0:Pt.comments.map(function(Nt,Sn){var gn,un,Mn,Rn;return n.a.createElement(L.a,{gutter:[12,12],key:Sn},n.a.createElement(ie.a,{flex:"40px"},n.a.createElement("img",{className:Te.a.headpic,width:"40",src:"".concat(Ke.a.IMG_SERVER,"/images/").concat(Nt==null||((gn=Nt.author)===null||gn===void 0)?void 0:gn.image_url)})),n.a.createElement(ie.a,{flex:"1"},n.a.createElement(L.a,{align:"middle"},n.a.createElement(ie.a,{span:20},n.a.createElement("span",{className:"c-light-black"},Nt==null||((un=Nt.author)===null||un===void 0)?void 0:un.name),n.a.createElement("span",{className:"c-light-black ml10"},Nt==null?void 0:Nt.time," \u53D1\u5E03")),n.a.createElement(ie.a,{className:"tr",span:4},n.a.createElement("div",{className:"tr"},(Object(S.c)()||(Un==null||((Mn=Un.userInfo)===null||Mn===void 0)?void 0:Mn.login)===(Nt==null||((Rn=Nt.author)===null||Rn===void 0)?void 0:Rn.login))&&n.a.createElement(ke.a,{title:"\u5220\u9664"},n.a.createElement(xt.a,{className:"current",onClick:function(){mn({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5220\u9664",params:Cn,selectArr:Nt}})}})))),n.a.createElement(ie.a,{span:24},n.a.createElement(Ct.a,{value:Nt.content})),Nt.children&&n.a.createElement("aside",{className:Te.a.comment},Nt.children.map(function(vt,Xt){var Tt,Tn;return n.a.createElement(L.a,{key:Xt},n.a.createElement(ie.a,{span:24},n.a.createElement(L.a,null,n.a.createElement(ie.a,{flex:"1"},vt.author.name,n.a.createElement("span",{className:"c-light-black ml10"},vt==null?void 0:vt.time)),n.a.createElement(ie.a,null,(Object(S.c)()||(Un==null||((Tt=Un.userInfo)===null||Tt===void 0)?void 0:Tt.login)===(vt==null||((Tn=vt.author)===null||Tn===void 0)?void 0:Tn.login))&&n.a.createElement(ke.a,{title:"\u5220\u9664"},n.a.createElement(xt.a,{className:"current",onClick:function(){mn({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5220\u9664",params:Cn,selectArr:vt}})}}))))),n.a.createElement(ie.a,null,n.a.createElement(Ct.a,{value:vt.content})))})),n.a.createElement(ie.a,{span:24,className:"mt5 c-light-black"},$e===Sn&&n.a.createElement("aside",null,n.a.createElement(Rt.a,{onChange:function(Xt){kt(Xt)},height:150,isFocus:!0}),n.a.createElement(L.a,null,n.a.createElement(ie.a,{span:24,className:"tr"},n.a.createElement(k.a,{type:"primary",size:"large",onClick:Object(B.a)(M.a.mark(function vt(){return M.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:if(!(ut==="")){Tt.next=4;break}w.b.error("\u8BF7\u8F93\u5165\u5185\u5BB9"),Tt.next=9;break;case 4:return Tt.next=6,mn({type:"shixunHomeworks/createReply",payload:{journals_for_message:{jour_id:Cn.categoryId,jour_type:"HomeworkCommon",m_parent_id:Nt.id,reply_id:1,notes:ut}}});case 6:mn({type:"shixunHomeworks/getReplyList",payload:Object(D.a)({},Cn)}),w.b.success("\u53D1\u5E03\u6210\u529F"),qe(-1);case 9:case"end":return Tt.stop()}},vt)}))},"\u53D1\u8868")))),$e!==Sn&&n.a.createElement("div",{className:"tr"},n.a.createElement("span",{className:"iconfont icon-huifu1 mr5 ml30",onClick:function(){return qe(Sn)}}),!!Nt.user_praise&&n.a.createElement("span",{className:"c-orange"},n.a.createElement(je.a,{className:"mr5 ml30",onClick:Object(B.a)(M.a.mark(function vt(){return M.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,mn({type:"shixunHomeworks/replyUnLike",payload:{object_id:Nt.id,object_type:"journals_for_message"}});case 2:mn({type:"shixunHomeworks/getReplyList",payload:Object(D.a)({},Cn)});case 3:case"end":return Tt.stop()}},vt)}))}),!!Nt.praise_count&&Nt.praise_count),!Nt.user_praise&&n.a.createElement("span",null,n.a.createElement(je.a,{className:"mr5 ml30",onClick:Object(B.a)(M.a.mark(function vt(){return M.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,mn({type:"shixunHomeworks/replyLike",payload:{object_id:Nt.id,object_type:"journals_for_message"}});case 2:mn({type:"shixunHomeworks/getReplyList",payload:Object(D.a)({},Cn)});case 3:case"end":return Tt.stop()}},vt)}))}),!!Nt.praise_count&&Nt.praise_count))))))}))),n.a.createElement("aside",{className:"tc mt30 pb30"},n.a.createElement(i.a,{defaultCurrent:1,total:Pt==null?void 0:Pt.total_count,hideOnSinglePage:!0,current:Cn.page||1,onChange:function(Sn){Cn.page=Sn,mn({type:"shixunHomeworks/getReplyList",payload:Object(D.a)({},Cn)})}})),n.a.createElement(st,null))},pe=Object(d.a)(function(rn){var At=rn.shixunHomeworks,Yt=rn.classroomList,bn=rn.user,tr=rn.loading,Wn=rn.globalSetting;return{shixunHomeworks:At,globalSetting:Wn,user:bn,classroomList:Yt,loading:tr.effects}})(ue);ee.a.lang("ZH-cn");var me=function(At){var Yt,bn=At.shixunHomeworks,tr=At.classroomList,Wn=At.globalSetting,Jn=At.loading,Sr=At.dispatch,zn=Object(p.i)(),Gn=tr.detailLeftMenus,Un=bn.replyList,mn=bn.referenceAnswer;return zn.page_size=10,Object(g.useEffect)(function(){Sr({type:"shixunHomeworks/getReplyList",payload:Object(D.a)({},zn)}),Sr({type:"shixunHomeworks/getReferenceAnswer",payload:{coursesId:zn.categoryId}}),Gn.course_modules||Sr({type:"classroomList/getClassroomLeftMenus",payload:Object(D.a)({},zn)})},[zn.categoryId]),n.a.createElement("section",{className:"pb30 pl30 pr30 pt30 bg-white"},n.a.createElement("aside",{className:["c-black","font14"].join(" ")},bn.actionTabs.key!=="\u7F16\u8F91\u4F5C\u4E1A"&&n.a.createElement("div",null,(mn==null?void 0:mn.reference_answer)&&n.a.createElement(Ct.a,{value:mn==null?void 0:mn.reference_answer}),!(mn!=null&&mn.reference_answer)&&n.a.createElement(Q.a,null)),mn==null||((Yt=mn.attachments)===null||Yt===void 0)?void 0:Yt.map(function(br,_r){return n.a.createElement("div",null,n.a.createElement("a",{href:"".concat(Ke.a.API_SERVER).concat(br.url)},n.a.createElement("span",{className:"iconfont icon-fujian c-green font14"}),n.a.createElement("span",{className:"ml10 c-black"},br.title),n.a.createElement("span",{className:"c-light-black ml20 font12"},br.filesize)))})))},xe=Object(d.a)(function(rn){var At=rn.shixunHomeworks,Yt=rn.classroomList,bn=rn.loading,tr=rn.globalSetting;return{shixunHomeworks:At,globalSetting:tr,classroomList:Yt,loading:bn.effects}})(me),nt=F("iQDF"),We=F("+eQT"),St=F("PpiC"),en=F("oUNq"),vn=F("4wi7");function Zt(rn,At){for(var Yt=[],bn=rn;bn0)){dr.next=7;break}return w.b.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),dr.abrupt("return");case 7:return sr={homework_ids:Object(Xe.a)(Yt.actionTabs.selectArrs),group_ids:gn.map(function(Mr){return Mr.id}),end_time:ee()(yn.end_time).format("YYYY-MM-DD HH:mm"),publish_time:ee()(yn.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:vt},dr.next=10,Object(V.a)("/api/courses/".concat(Wn.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:Object(D.a)({},sr)});case 10:Fn=dr.sent,Fn.status===0&&(Object(f.Y)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u53D1\u5E03"]),w.b.success("\u53D1\u5E03\u6210\u529F"),bn({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),tr.type==="edit"&&(tr.onCallback&&tr.onCallback()),Object(S.c)()?Yt.actionTabs.detail?(bn({type:"shixunHomeworks/setActionTabs",payload:{}}),bn({type:"shixunHomeworks/getWorkList",payload:Object(D.a)({},Wn)}),bn({type:"shixunHomeworks/getWorkSetting",payload:Object(D.a)({},Wn)})):bn({type:"classroomList/getClassroomTeacherCommonList",payload:Object(D.a)(Object(D.a)({},Yt.actionTabs.params),{},{type:3})}):bn({type:"classroomList/getClassroomCommonList",payload:Object(D.a)({},Yt.actionTabs.params)}),localStorage.getItem("Noviceguide")==="0"||bn({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 dr.stop()}},Ln)}));return function(){return Yn.apply(this,arguments)}}(),En=function(){br(1),xr([]),un([])},wn=De>mn*qe;return n.a.createElement(v.a,{width:600,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",visible:Yt.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:zt,onCancel:function(){En(),bn({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'),or&&n.a.createElement(he.a,{form:zn},n.a.createElement("div",{style:{paddingLeft:0}},n.a.createElement(L.a,{className:"mt30",align:"middle"},n.a.createElement(ie.a,null,n.a.createElement(he.a.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},n.a.createElement(We.a,{style:{width:155,marginRight:"25px"},getPopupContainer:function(Ln){return Ln.parentNode},disabledDate:function(Ln){return Ln&&Ln<=ee()().subtract(0,"days")},disabledTime:Vt,placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ee()(Object(f.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),n.a.createElement(ie.a,{className:"ml20"},n.a.createElement(he.a.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},n.a.createElement(We.a,{style:{width:170},getPopupContainer:function(Ln){return Ln.parentNode},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ee()(Object(f.d)(),"HH:mm")},disabledDate:function(Ln){return Ln&&Ln0&&n.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},n.a.createElement("span",{style:{flex:1}},n.a.createElement(Z.a,{checked:gn.length===or.length,onChange:function(Ln){gn.length===or.length?un([]):un(or.filter(function(yn){return!yn.is_published}))}},"\u5168\u9009")," "),n.a.createElement("span",{style:{width:16}}),n.a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",gn.length||0,"\u4E2A\u5206\u73ED")),(Yt.actionTabs.type===1||!vt)&&or.length>0&&n.a.createElement(vn.a,{data:or,selectedRowKeys:gn,setSelectedRowKeys:un})))},_t=Object(d.a)(function(rn){var At=rn.classroomList;return{classroomList:At}})(Et),ct=F("qbod"),ge=F.n(ct),Me=function(At){var Yt=At.classroomList,bn=At.dispatch,tr=At.cb,Wn=Object(St.a)(At,["classroomList","dispatch","cb"]),Jn=Object(p.i)(),Sr=Object(g.useState)(null),zn=Object(m.a)(Sr,2),Gn=zn[0],Un=zn[1],mn=Object(g.useState)([1,2,3,4,5]),br=Object(m.a)(mn,2),_r=br[0],Cn=br[1],or=Object(g.useState)(!1),xr=Object(m.a)(or,2),Ur=xr[0],q=xr[1];Object(g.useEffect)(function(){Yt.actionTabs.key==="\u667A\u80FD\u5206\u7EC4"},[Yt.actionTabs]);var De=function(){var Be=Object(B.a)(M.a.mark(function $e(){var qe;return M.a.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(Gn){Ee.next=3;break}return w.b.warn("\u6BCF\u4E2A\u5C0F\u7EC4\u5B66\u751F\u4EBA\u6570\u4E0D\u80FD\u4E3A\u7A7A"),Ee.abrupt("return");case 3:return Ee.next=5,Object(V.a)("/api/is_checkout_data.json",{method:"get",params:{id:Jn==null?void 0:Jn.categoryId,group_num:Gn}});case 5:qe=Ee.sent,(qe==null?void 0:qe.status)===0&&(bn({type:"classroomList/setActionTabs",payload:{}}),tr());case 7:case"end":return Ee.stop()}},$e)}));return function(){return Be.apply(this,arguments)}}(),Ve=[{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(v.a,{width:500,centered:!0,afterClose:function(){q(!1),Un(null),Cn([1,2,3,4,5])},title:"\u667A\u80FD\u5206\u7EC4",visible:Yt.actionTabs.key==="\u667A\u80FD\u5206\u7EC4",footer:null,onCancel:function(){bn({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("div",{className:ge.a.model},n.a.createElement("div",null,"\u6BCF\u4E2A\u5C0F\u7EC4\u5B66\u751F\u4EBA\u6570\uFF1A",n.a.createElement(E.a,{min:1,max:100,value:Gn,onChange:function($e){Un($e)}})),n.a.createElement("div",{className:"mt20 mb10"},"\u5206\u7EC4\u89C4\u5219\uFF1A"),n.a.createElement(Z.a.Group,{value:_r,onChange:function($e){Cn($e)}},Ve==null?void 0:Ve.map(function(Be,$e){return n.a.createElement(Z.a,{value:Be.id}," ",Be.name," ")})),n.a.createElement("div",{className:"tr mb10 mt20"},n.a.createElement(k.a,{onClick:De,type:"primary"},"\u5F00\u59CB\u667A\u80FD\u5206\u7EC4"))))},wt=Object(d.a)(function(rn){var At=rn.classroomList;return{classroomList:At}})(Me),ft=function(At){var Yt=At.classroomList,bn=At.dispatch,tr=Object(St.a)(At,["classroomList","dispatch"]),Wn=Object(p.i)(),Jn=he.a.useForm(),Sr=Object(m.a)(Jn,1),zn=Sr[0],Gn=Object(g.useState)(1),Un=Object(m.a)(Gn,2),mn=Un[0],br=Un[1],_r=Object(g.useState)([]),Cn=Object(m.a)(_r,2),or=Cn[0],xr=Cn[1],Ur=Object(g.useState)(0),q=Object(m.a)(Ur,2),De=q[0],Ve=q[1],Be=Object(g.useState)(20),$e=Object(m.a)(Be,2),qe=$e[0],ht=$e[1],Ee=Object(g.useState)(!0),gt=Object(m.a)(Ee,2),yt=gt[0],Lt=gt[1],bt=Object(g.useState)(),ut=Object(m.a)(bt,2),kt=ut[0],Mt=ut[1],Le=Object(g.useState)([]),mt=Object(m.a)(Le,2),Pt=mt[0],Jt=mt[1];Wn.id=Wn.coursesId,Object(g.useEffect)(function(){Yt.actionTabs.key==="\u7ACB\u5373\u622A\u6B62"?Nt():(Jt([]),xr([]))},[Yt.actionTabs.key]);var Nt=function(){var un=Object(B.a)(M.a.mark(function Mn(Rn){var vt,Xt,Tt;return M.a.wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:return Lt(!0),zt.next=3,Object(en.A)(Object(D.a)(Object(D.a)({},Wn),{},{page:Rn||mn,limit:qe,homework_id:Yt.actionTabs.type===1?"":Yt.actionTabs.selectArrs[0],end_homework_action:!0}));case 3:vt=zt.sent,vt==null||vt.course_groups.map(function(En){En.key=En.id}),vt&&(xr([].concat(Object(Xe.a)(or),Object(Xe.a)(vt==null?void 0:vt.course_groups))),Ve(vt==null?void 0:vt.group_count),Mt(vt==null?void 0:vt.course_groups),Lt(!1),Rn||zn.setFieldsValue((Tt={},Object(Ze.a)(Tt,"group_ids",vt==null||((Xt=vt.course_groups)===null||Xt===void 0)?void 0:Xt.map(function(En){return String(En.id)})),Object(Ze.a)(Tt,"end_time",ee()(ee()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),Tt)));case 6:case"end":return zt.stop()}},Mn)}));return function(Rn){return un.apply(this,arguments)}}(),Sn=function(){var un=Object(B.a)(M.a.mark(function Mn(){var Rn,vt;return M.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Rn=Object(D.a)({},zn.getFieldsValue()),console.log("----",Rn.group_ids),Tt.next=4,Object(V.a)("/api/courses/".concat(Wn.id,"/homework_commons/end_with_homework_list_position.json"),{method:"post",body:{homework_ids:Object(Xe.a)(Yt.actionTabs.selectArrs),group_ids:(Pt==null?void 0:Pt.length)>0?Pt:[],unified_setting:!(or!=null&&or.length),end_time:ee()(Rn.end_time).format("YYYY-MM-DD HH:mm")}});case 4:vt=Tt.sent,vt.status===0&&(gn(),Object(f.Y)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u622A\u6B62"]),w.b.success("\u64CD\u4F5C\u6210\u529F"),bn({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),tr.type==="edit"&&(tr.onCallback&&tr.onCallback()),Object(S.c)()?(bn({type:"classroomList/setActionTabs",payload:{}}),bn({type:"classroomList/getClassroomTeacherCommonList",payload:Object(D.a)(Object(D.a)({},Yt.actionTabs.params),{},{type:3})})):bn({type:"classroomList/getClassroomCommonList",payload:Object(D.a)({},Yt.actionTabs.params)}));case 6:case"end":return Tt.stop()}},Mn)}));return function(){return un.apply(this,arguments)}}(),gn=function(){br(1),xr([])};return n.a.createElement(v.a,{centered:!0,title:"\u622A\u6B62\u4F5C\u4E1A",visible:Yt.actionTabs.key==="\u7ACB\u5373\u622A\u6B62",okText:"\u622A\u6B62\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u622A\u6B62",onOk:Sn,onCancel:function(){gn(),bn({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'),or&&n.a.createElement(he.a,{form:zn},n.a.createElement(L.a,null,n.a.createElement("span",{className:"mr5"},"\u622A\u6B62\u65F6\u95F4:"),n.a.createElement(he.a.Item,{name:"end_time"},n.a.createElement(We.a,{style:{width:170},getPopupContainer:function(Mn){return Mn.parentNode},disabledDate:function(Mn){return Mn&&Mn0&&n.a.createElement(L.a,null,n.a.createElement("span",{className:"mr5"},"\u9009\u62E9\u73ED\u7EA7:"),n.a.createElement(H.a.Search,{style:{width:"300px"},onChange:function(Mn){xr(kt.filter(function(Rn){return Rn.name.indexOf(Mn.target.value)>-1}))}})),(or==null?void 0:or.length)>0&&Yt.actionTabs.type===1&&n.a.createElement(_.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Mn,Rn){Jt(Mn)}},rowKey:"id",pagination:!1,dataSource:or,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"}]}),(or==null?void 0:or.length)>0&&Yt.actionTabs.type===2&&n.a.createElement(_.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Mn,Rn){Jt(Mn)}},rowKey:"id",pagination:!1,dataSource:or,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"}]})))},qt=Object(d.a)(function(rn){var At=rn.classroomList;return{classroomList:At}})(ft),on=F("Q9mQ"),ot=F("diRs"),Wt=F("OaEy"),dn=F("2fM7"),Bn=F("w5pM"),kn=F("Lyp1"),Cr=F("LvDl"),Ar=F("8B0h"),hr=F.n(Ar),On=F("CiB2"),Fr=function(At){var Yt,bn;Object(On.a)(At);var tr=Object(g.useState)(!0),Wn=Object(m.a)(tr,2),Jn=Wn[0],Sr=Wn[1],zn=Object(g.useState)(!1),Gn=Object(m.a)(zn,2),Un=Gn[0],mn=Gn[1],br=Object(g.useState)([]),_r=Object(m.a)(br,2),Cn=_r[0],or=_r[1],xr=Object(g.useState)([]),Ur=Object(m.a)(xr,2),q=Ur[0],De=Ur[1],Ve=Object(g.useState)([]),Be=Object(m.a)(Ve,2),$e=Be[0],qe=Be[1],ht=Object(g.useState)([]),Ee=Object(m.a)(ht,2),gt=Ee[0],yt=Ee[1],Lt=Object(p.i)();function bt(){return ut.apply(this,arguments)}function ut(){return ut=Object(B.a)(M.a.mark(function mt(){var Pt;return M.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return Nt.next=2,Object(V.a)("/api/homework_commons/".concat(Lt.categoryId,"/homework_common_collaborators.json"),{method:"get"});case 2:Pt=Nt.sent,De(Pt);case 4:case"end":return Nt.stop()}},mt)})),ut.apply(this,arguments)}function kt(){return Mt.apply(this,arguments)}function Mt(){return Mt=Object(B.a)(M.a.mark(function mt(){var Pt;return M.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return Nt.next=2,Object(V.a)("/api/courses/".concat(Lt==null?void 0:Lt.coursesId,"/teachers"),{method:"get",params:{homework_id:Lt.categoryId}});case 2:Pt=Nt.sent,Pt==null||Pt.teacher_list.map(function(Sn){Sn.key=Sn.user_id}),qe(Pt==null?void 0:Pt.teacher_list),yt(Pt==null?void 0:Pt.teacher_list);case 6:case"end":return Nt.stop()}},mt)})),Mt.apply(this,arguments)}Object(g.useEffect)(function(){bt(),kt()},[Lt]);var Le=function(){};return n.a.createElement("section",{className:[hr.a.form," bg-white pl30 pr30 pt10"].join(" ")},n.a.createElement(L.a,null,n.a.createElement(ie.a,{flex:"1"},n.a.createElement("span",{style:{fontSize:"16px"}},"\u534F\u4F5C\u8BBE\u7F6E"),(q==null?void 0:q.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(L.a,{style:{marginTop:"20px",marginBottom:"20px"}},(q==null||((Yt=q.data)===null||Yt===void 0)?void 0:Yt.length)<=0&&n.a.createElement(Q.a,{customText:"\u8BE5\u4F5C\u4E1A\u6682\u65E0\u534F\u4F5C\u8005"}),q==null||((bn=q.data)===null||bn===void 0)?void 0:bn.map(function(mt){return n.a.createElement("span",{key:mt.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"}},mt==null?void 0:mt.real_name),(q==null?void 0:q.can_edit)&&n.a.createElement("span",{style:{cursor:"pointer",marginLeft:"10px"},onClick:Object(B.a)(M.a.mark(function Pt(){var Jt;return M.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return Sn.next=2,Object(V.a)("/api/homework_commons/".concat(Lt.categoryId,"/homework_common_collaborators/delete.json"),{method:"delete",body:{user_id:mt.id}});case 2:Jt=Sn.sent,Jt.status===0&&(w.b.info("\u5220\u9664\u6210\u529F"),bt(),kt());case 4:case"end":return Sn.stop()}},Pt)}))},"X"))})),n.a.createElement(L.a,null,!Jn&&n.a.createElement(ie.a,{className:"mb50"},n.a.createElement(k.a,{type:"primary",size:"large",onClick:function(){return Le()}},"\u63D0\u4EA4"),n.a.createElement(k.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){Sr(!0)}},"\u53D6\u6D88"))),n.a.createElement(v.a,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",visible:Un,onCancel:function(){return mn(!1)},onOk:Object(B.a)(M.a.mark(function mt(){var Pt;return M.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:if(!(Cn.length===0)){Nt.next=3;break}return w.b.info("\u8BF7\u9009\u62E9\u534F\u4F5C\u8001\u5E08"),Nt.abrupt("return");case 3:return Nt.next=5,Object(V.a)("/api/homework_commons/".concat(Lt.categoryId,"/homework_common_collaborators.json"),{method:"post",body:{user_ids:Cn}});case 5:Pt=Nt.sent,Pt.status===0&&(w.b.info("\u6DFB\u52A0\u6210\u529F"),or([]),bt(),kt(),mn(!1));case 7:case"end":return Nt.stop()}},mt)}))},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(Pt){qe(gt.filter(function(Jt){return Jt.name.indexOf(Pt.target.value)>-1}))}})),n.a.createElement(_.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Pt,Jt){or(Pt)},selectedRowKeys:Cn,getCheckboxProps:function(Pt){return{disabled:Pt.is_collaborator}}},pagination:!1,dataSource:$e,columns:[{title:"\u59D3\u540D",dataIndex:"name",key:"name"},{title:"\u89D2\u8272",dataIndex:"role",key:"role"}]}))))},na=Object(d.a)(function(rn){var At=rn.shixunHomeworks,Yt=rn.loading;return{shixunHomeworks:At,loading:Yt.effects}})(Fr),Pr=We.a.RangePicker,fr=dn.a.Option,Br=function(At){var Yt,bn,tr,Wn=At.shixunHomeworks,Jn=At.loading,Sr=At.dispatch,zn=Object(p.i)(),Gn=Object(p.h)(),Un=Wn.workSetting,mn=Wn.workList,br=Object(g.useState)(!0),_r=Object(m.a)(br,2),Cn=_r[0],or=_r[1],xr=Object(g.useState)({}),Ur=Object(m.a)(xr,2),q=Ur[0],De=Ur[1],Ve=he.a.useForm(),Be=Object(m.a)(Ve,1),$e=Be[0],qe=Object(g.useState)([]),ht=Object(m.a)(qe,2),Ee=ht[0],gt=ht[1],yt=Object(g.useState)([]),Lt=Object(m.a)(yt,2),bt=Lt[0],ut=Lt[1],kt=Object(g.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:""}),Mt=Object(m.a)(kt,2),Le=Mt[0],mt=Mt[1],Pt=(mn==null||((Yt=mn.homework_status)===null||Yt===void 0)?void 0:Yt.includes("\u533F\u8BC4\u4E2D"))||(mn==null||((bn=mn.homework_status)===null||bn===void 0)?void 0:bn.includes("\u7533\u8BC9\u4E2D"))||(mn==null||((tr=mn.homework_status)===null||tr===void 0)?void 0:tr.includes("\u5DF2\u622A\u6B62"));Object(g.useEffect)(function(){Jt()},[]),Object(g.useEffect)(function(){if(!(Un!=null&&Un.course_id))return;Object.keys(Le).map(function(vt){vt.indexOf("proportion")>-1&&(Un[vt]=Un[vt]*100),Le[vt]=Un[vt]}),(!Le.allow_late||!Le.unified_late)&&(Le.late_penalty=5),Ee=JSON.parse(JSON.stringify(Un.group_settings.map(function(vt){return Object(D.a)(Object(D.a)({},vt),{},{group_name:[vt.group_name]})}).filter(function(vt){return vt.publish_time!==null}))),bt=JSON.parse(JSON.stringify(Un.allow_late_settings.map(function(vt){return Object(D.a)(Object(D.a)({},vt),{},{group_name:[vt.group_name]})}).filter(function(vt){return vt.late_time!==null}))),mt(Object(D.a)({},Le)),gt(Object(Xe.a)(Ee)),ut(Object(Xe.a)(bt))},[Un]);var Jt=function(){Sr({type:"shixunHomeworks/getWorkSetting",payload:Object(D.a)({},zn)})},Nt=function(){var Xt,Tt=JSON.parse(JSON.stringify(Le));if(Tt.categoryId=zn.categoryId,Le.unified_setting||(Ee=(Xt=Ee)===null||Xt===void 0?void 0:Xt.map(function(zt){var En,wn;if(!zt.publish_time||!zt.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(!zt.group_name)throw w.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,console.log("item:0",zt,Un.group_settings,Ee),zt.group_id=zt==null||((En=zt.group_name)===null||En===void 0||((wn=En.map(function(Yn){var Ln,yn,sr=(Ln=Un.group_settings)===null||Ln===void 0||((yn=Ln.filter(function(Fn){return(Fn==null?void 0:Fn.group_name)===Yn}))===null||yn===void 0)?void 0:yn[0];return console.log("d:",sr,Yn),sr==null?void 0:sr.group_id}))===null||wn===void 0))?void 0:wn.toString().split(","),zt})),Tt.group_settings=Ee,Le.allow_late)if(Le.unified_late){if(Le.late_penalty===null||Le.late_penalty===void 0||Le.late_penalty<0||Le.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(!Le.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 Tn;bt=(Tn=bt)===null||Tn===void 0?void 0:Tn.map(function(zt){var En,wn;if(zt.late_penalty===null||zt.late_penalty===void 0||zt.late_penalty<0||zt.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(!zt.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(!zt.group_name)throw w.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||((En=zt.group_name)===null||En===void 0||((wn=En.map(function(Yn){var Ln,yn,sr=(Ln=Un.group_settings)===null||Ln===void 0||((yn=Ln.filter(function(Fn){return(Fn==null?void 0:Fn.group_name)===Yn}))===null||yn===void 0)?void 0:yn[0];return sr==null?void 0:sr.group_id}))===null||wn===void 0))?void 0:wn.toString().split(","),zt}),Tt.allow_late_settings=bt}if(Le.evaluation_start){if(Le.end_time&&ee()(Le.evaluation_start)<=ee()(Le.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(Le.late_time&&ee()(Le.evaluation_start)<=ee()(Le.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(Tt).map(function(zt){zt.indexOf("proportion")>-1&&(Tt[zt]=Tt[zt]/100)}),Sr({type:"shixunHomeworks/updateSetting",payload:Tt}).then(function(zt){zt.status===0&&(w.b.success("\u66F4\u65B0\u6210\u529F"),or(!0),Jt())})},Sn=function(Xt){return Xt&&Xt0?n.a.createElement(ie.a,{span:24,className:"mt10"},n.a.createElement(Z.a,{checked:Le.unified_setting,disabled:Cn||!(mn!=null&&(Tt=mn.homework_status)!==null&&Tt!==void 0&&Tt.includes("\u672A\u53D1\u5E03")),onChange:function(){var wn;if(!(mn!=null&&(wn=mn.homework_status)!==null&&wn!==void 0&&wn.includes("\u672A\u53D1\u5E03"))){w.b.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(Le.unified_setting=!Le.unified_setting,Le.unified_setting||(Le.unified_late=!1),mt(Object.assign({},Le)),Ee==""){gt([{}]);return}Le.unified_setting&&(gt([]),ut([{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),Le.unified_setting&&n.a.createElement("div",null,n.a.createElement(L.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ie.a,null,"\u53D1\u5E03\u65F6\u95F4:"),n.a.createElement(ie.a,{className:"ml5"},n.a.createElement(ke.a,{title:!(mn!=null&&(Tn=mn.homework_status)!==null&&Tn!==void 0&&Tn.includes("\u672A\u53D1\u5E03"))&&"\u53D1\u5E03\u65F6\u95F4\u5DF2\u8FC7\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539"},n.a.createElement(We.a,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ee()(Object(f.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1,disabled:Cn||ee()()>ee()(Un.publish_time),value:Le.publish_time?ee()(Le.publish_time):"",disabledDate:Sn,onChange:function(wn,Yn){Le.publish_time=Yn,!Le.end_time&&Le.unified_setting&&(Le.end_time=ee()(wn).add(1,"month").format("YYYY-MM-DD HH:mm:ss")),mt(Object.assign({},Le))}}))),n.a.createElement(ie.a,null,n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u7684\u65F6\u95F4)"))),n.a.createElement(L.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ie.a,null,"\u622A\u6B62\u65F6\u95F4:"),n.a.createElement(ie.a,{className:"ml5"},n.a.createElement(We.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ee()(Object(f.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Cn,disabledDate:Sn,value:Le.end_time?ee()(Le.end_time):"",onChange:function(wn,Yn){Le.end_time=Yn,mt(Object.assign({},Le))}})),n.a.createElement(ie.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)")))),!Le.unified_setting&&n.a.createElement(L.a,{style:{marginTop:30,paddingTop:40,marginLeft:40,borderTop:"1px solid #eee"}},n.a.createElement(ie.a,{span:24},n.a.createElement(L.a,null,n.a.createElement(ie.a,{span:10}),n.a.createElement(ie.a,{span:1}),n.a.createElement(ie.a,{span:9},n.a.createElement(L.a,{className:"c-grey-c "},n.a.createElement(ie.a,{flex:"1"},"(\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4)"),n.a.createElement(ie.a,{flex:"1"},"(\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9)"))),n.a.createElement(ie.a,{span:4}))),Ee&&Ee.map(function(En,wn){var Yn,Ln;return n.a.createElement(ie.a,{span:24,key:wn},n.a.createElement(L.a,null,n.a.createElement(ie.a,{span:10},n.a.createElement(L.a,{gutter:[8,16]},n.a.createElement(ie.a,null,"\u53D1\u5E03\u89C4\u5219 ",wn+1),n.a.createElement(ie.a,{flex:"auto",style:{maxWidth:350}},n.a.createElement(dn.a,{disabled:Cn||!(mn!=null&&(Yn=mn.homework_status)!==null&&Yn!==void 0&&Yn.includes("\u672A\u53D1\u5E03"))&&En.id,className:"ml20",mode:"multiple",style:{width:"100%"},value:En.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:function(sr){Ee[wn].group_name=sr,Ee[wn].group_id=En.group_id;var Fn=Object(Cr.flattenDeep)(Ee.map(function(dr){return dr.group_name})),Ir=bt.map(function(dr){var Mr=(dr==null?void 0:dr.group_name)||[];return Object(D.a)(Object(D.a)({},dr),{},{group_name:Object(Cr.remove)(Mr,function(Hn){return Fn.includes(Hn)})})});ut(Ir),gt(Ee.slice())}},Un.group_settings&&Un.group_settings.map(function(yn){if(!Ee.map(function(sr){return sr.group_name}).toString().split(",").includes(String(yn.group_name)))return n.a.createElement(fr,{value:yn.group_name,key:yn.id},yn.group_name)}))))),n.a.createElement(ie.a,{span:1}),n.a.createElement(ie.a,{span:9},n.a.createElement(Pr,{allowClear:!1,disabled:Cn||!(mn!=null&&(Ln=mn.homework_status)!==null&&Ln!==void 0&&Ln.includes("\u672A\u53D1\u5E03"))&&En.id&&[!0,!1],style:{width:400},placeholder:["\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4","\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4"],disabledDate:Sn,showTime:{format:"HH:mm",defaultValue:[ee()(Object(f.d)(),"HH:mm"),ee()(Object(f.d)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:En.publish_time&&[ee()(En.publish_time),ee()(En.end_time)],onChange:function(sr,Fn){Ee[wn].publish_time=Fn[0],Ee[wn].end_time=Fn[1],gt(Object(Xe.a)(Ee))}})),!Cn&&n.a.createElement(ie.a,{span:4},wn>0&&!En.id&&n.a.createElement(xt.a,{onClick:function(){Ee=Ee.filter(function(sr,Fn){return wn!==Fn}),gt(Ee.slice()),setTimeout(function(){return gt(Ee.slice())},10)}}),n.a.createElement(Bn.a,{className:"c-green ml20",onClick:function(){gt(Ee.concat({}))}}))))})),n.a.createElement(L.a,null,n.a.createElement(ie.a,null,n.a.createElement("strong",null,"\u8865\u4EA4\u8BBE\u7F6E")),n.a.createElement(ie.a,{span:24,className:"mt15 pl30"},n.a.createElement(Z.a,{checked:Le.allow_late,disabled:Cn,onChange:function(){Le.allow_late=!Le.allow_late,bt==""&&ut([{late_penalty:5}]),mt(Object.assign({},Le))}},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)"))),(Le==null?void 0:Le.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(c.a.Group,{disabled:Cn,value:Le.unified_late,onChange:function(wn){Le.unified_late=wn.target.value,bt==""&&!wn.target.value&&ut([{late_penalty:5}]),mt(Object(D.a)({},Le))}},(Le==null?void 0:Le.unified_setting)&&n.a.createElement(c.a,{value:!0}," \u7EDF\u4E00\u8865\u4EA4 "),(Un==null||((zt=Un.group_settings)===null||zt===void 0)?void 0:zt.length)&&n.a.createElement(c.a,{value:!1}," \u5206\u73ED\u8865\u4EA4 "))),Le!=null&&Le.unified_late?n.a.createElement(n.a.Fragment,null,n.a.createElement(L.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ie.a,null,"\u8865\u4EA4\u6263\u5206:"),n.a.createElement(ie.a,{className:"ml5"},n.a.createElement(E.a,{disabled:Cn||!Le.allow_late,value:Le.late_penalty,onChange:function(wn){Le.late_penalty=wn,mt(Object.assign({},Le))}})),n.a.createElement(ie.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(L.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ie.a,null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4:"),n.a.createElement(ie.a,{className:"ml5"},n.a.createElement(We.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ee()(Object(f.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Cn||!Le.allow_late,value:Le.late_time?ee()(Le.late_time):"",disabledDate:Sn,onChange:function(wn,Yn){Le.late_time=Yn,mt(Object.assign({},Le))}})),n.a.createElement(ie.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)")))):bt.map(function(En,wn){var Yn;return n.a.createElement(ie.a,{span:24,key:wn},n.a.createElement(L.a,{className:"mt25"},n.a.createElement(ie.a,{style:{marginLeft:30}},n.a.createElement("span",null,"\u8865\u4EA4\u89C4\u5219",wn+1,"\uFF1A"),n.a.createElement(dn.a,{disabled:Cn||!(mn!=null&&(Yn=mn.homework_status)!==null&&Yn!==void 0&&Yn.includes("\u672A\u53D1\u5E03"))&&En.id,mode:"multiple",style:{width:306},value:typeof En.group_name=="string"?[En.group_name]:En.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:function(yn){bt[wn].group_name=yn,bt[wn].group_id=En.group_id,ut(bt.slice())}},Un.group_settings&&Un.group_settings.map(function(Ln){if(Le!=null&&Le.unified_setting&&!bt.map(function(yn){return yn.group_name}).toString().split(",").includes(String(Ln.group_name)))return n.a.createElement(fr,{value:Ln.group_name,key:Ln.id},Ln.group_name);if(Ee.map(function(yn){return yn.group_name}).toString().split(",").includes(String(Ln.group_name))&&!bt.map(function(yn){return yn.group_name}).toString().split(",").includes(String(Ln.group_name)))return n.a.createElement(fr,{value:Ln.group_name,key:Ln.id},Ln.group_name)}))),n.a.createElement(ie.a,{className:"ml20"},n.a.createElement("span",null,"\u8865\u4EA4\u6263\u5206\uFF1A"),n.a.createElement(E.a,{min:0,max:100,disabled:Cn,defaultValue:En.late_penalty,onChange:function(yn){bt[wn].late_penalty=yn}})),n.a.createElement(ie.a,{className:"ml20"},n.a.createElement("span",null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\uFF1A"),n.a.createElement(We.a,{disabled:Cn,style:{width:200},showTime:{format:"HH:mm",defaultValue:ee()(Object(f.d)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:Sn,format:"YYYY-MM-DD HH:mm",value:En!=null&&En.late_time?ee()(En.late_time):void 0,onChange:function(yn,sr){bt[wn].late_time=sr,ut(Object(Xe.a)(bt))}})),!Cn&&n.a.createElement(ie.a,{className:"ml20"},wn>0&&!En.id&&n.a.createElement(xt.a,{onClick:function(){bt=bt.filter(function(yn,sr){return wn!==sr}),ut(bt.slice()),setTimeout(function(){return ut(bt.slice())},10)}}),n.a.createElement(Bn.a,{className:"c-green ml20",onClick:function(){ut(bt.concat({late_penalty:5}))}}))))})))},un=function(){var Xt;return n.a.createElement("div",{className:"bg-white pl30 pr30 pb30"},n.a.createElement(L.a,null,n.a.createElement(ie.a,{span:24},n.a.createElement(L.a,{align:"middle"},n.a.createElement(ie.a,{flex:"1"},n.a.createElement("h1",{className:"mt15"},"\u533F\u8BC4\u8BBE\u7F6E")),n.a.createElement(ie.a,null,Object(S.c)()&&Cn&&n.a.createElement(k.a,{type:"primary",size:"middle",ghost:!0,onClick:function(){return or(!1)}},"\u7F16\u8F91\u8BBE\u7F6E")))),n.a.createElement(ie.a,{span:24,className:"mt15 pl30"},n.a.createElement(Z.a,{checked:Le.anonymous_comment,disabled:Cn||((Xt=mn.homework_status)===null||Xt===void 0?void 0:Xt.includes("\u533F\u8BC4\u4E2D")),onChange:function(){Le.anonymous_comment=!Le.anonymous_comment,Le.allow_late&&!Le.evaluation_start?Le.late_time&&Le.late_time!=""&&(Le.evaluation_start=ee()(Le.late_time).add(14,"day").format("YYYY-MM-DD HH:mm:ss"),Le.evaluation_end=ee()(Le.late_time).add(28,"day").format("YYYY-MM-DD HH:mm:ss")):Le.unified_setting&&!Le.evaluation_start&&(Le.end_time&&Le.end_time!=""&&(Le.evaluation_start=ee()(Le.end_time).add(14,"day").format("YYYY-MM-DD HH:mm:ss"),Le.evaluation_end=ee()(Le.end_time).add(28,"day").format("YYYY-MM-DD HH:mm:ss"))),Le.anonymous_comment&&(Le.evaluation_num=parseInt(Le.evaluation_num)?Le.evaluation_num:3,Le.absence_penalty=parseInt(Le.absence_penalty)?Le.absence_penalty:3),mt(Object.assign({},Le))}},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(L.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ie.a,null,"\u5F00\u59CB\u65F6\u95F4:"),n.a.createElement(ie.a,{className:"ml5"},n.a.createElement(We.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ee()(Object(f.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Cn||!Le.anonymous_comment||Pt,value:Le.evaluation_start?ee()(Le.evaluation_start):"",onChange:function(Tn,zt){Le.evaluation_start=zt,mt(Object.assign({},Le))}})),n.a.createElement(ie.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(L.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ie.a,null,"\u7ED3\u675F\u65F6\u95F4:"),n.a.createElement(ie.a,{className:"ml5"},n.a.createElement(We.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ee()(Object(f.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Cn||!Le.anonymous_comment||Pt,value:Le.evaluation_end?ee()(Le.evaluation_end):"",onChange:function(Tn,zt){Le.evaluation_end=zt,mt(Object.assign({},Le))}})),n.a.createElement(ie.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(L.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ie.a,null,"\u533F\u8BC4\u6570\u91CF:"),n.a.createElement(ie.a,{className:"ml5"},n.a.createElement(E.a,{disabled:Cn||!Le.anonymous_comment||Pt,value:Le.evaluation_num,onChange:function(Tn){Le.evaluation_num=Tn,mt(Object.assign({},Le))}})),n.a.createElement(ie.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(L.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ie.a,null,"\u7F3A\u8BC4\u6263\u5206:"),n.a.createElement(ie.a,{className:"ml5"},n.a.createElement(E.a,{min:0,disabled:Cn||!Le.anonymous_comment||Pt,value:Le.absence_penalty,onChange:function(Tn){Le.absence_penalty=Tn,mt(Object.assign({},Le))}})),n.a.createElement(ie.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)"))),Le.anonymous_comment&&n.a.createElement(n.a.Fragment,null,n.a.createElement(L.a,null,n.a.createElement(ie.a,{span:24,className:"mt15 pl30"},n.a.createElement(Z.a,{checked:Le.student_comment,disabled:Cn||ee()(Le.evaluation_start)"},n.a.createElement(K.a.Item,null,n.a.createElement(o.a,{to:"/classrooms/".concat(Ee.course_id,"/group_homework")},Ee.course_name)),n.a.createElement(K.a.Item,null,n.a.createElement(o.a,{to:"/classrooms/".concat(Ee==null?void 0:Ee.course_id,"/group_homework/").concat(Ee!=null&&(Yt=Ee.category)!==null&&Yt!==void 0&&Yt.main?"":Ee==null||((bn=Ee.category)===null||bn===void 0)?void 0:bn.category_id)},Ee.category.category_name)),n.a.createElement(K.a.Item,null,"\u4F5C\u4E1A\u8BE6\u60C5"))),n.a.createElement("aside",{className:[pn.a.title,"mt20"].join(" ")},n.a.createElement(o.a,{to:"/classrooms/".concat(Ee.course_id,"/group_homework")},n.a.createElement(u.a,{className:"font16 c-black"})),n.a.createElement("strong",{className:"font20 ml5"},Ee.homework_name),n.a.createElement(f.k,{status:Ee.homework_status}))),n.a.createElement("aside",{className:"mt30 relative ".concat(pn.a.workListTabWrap)},n.a.createElement(z.a,{type:"card",activeKey:Cn,tabBarExtraContent:Lt(),onTabClick:function(ut,kt){if(parseInt(ut)===2){if(!(Ee!=null&&Ee.view_answer)){w.b.info("\u672C\u6B21\u4F5C\u4E1A\u8001\u5E08\u672A\u516C\u5F00\u7B54\u6848");return}(Ee==null?void 0:Ee.time_status)>2||Object(S.d)()?or(ut):w.b.info("\u622A\u6B62\u4E4B\u540E\u7684\u8BD5\u5377\u624D\u80FD\u67E5\u770B\u7B54\u6848")}else or(ut)},className:pn.a.tabs},yt.map(function(bt,ut){return n.a.createElement(z.a.TabPane,{tab:bt.name,key:bt.id},bt.compontent)})))),n.a.createElement(A.a,null),n.a.createElement(y.a,null),n.a.createElement(_t,{type:"edit",onCallback:function(){return gt()}}),n.a.createElement(qt,{type:"edit",onCallback:function(){return gt()}}),n.a.createElement(wt,{cb:function(){qe($e+1),or("5")}}),n.a.createElement(qt,{type:"edit",onCallback:function(){return gt()}}),n.a.createElement(te.a,{ref:ht,hide:!0,name:"".concat(Ee==null?void 0:Ee.homework_name,"-\u4F5C\u54C1\u9644\u4EF6"),onOk:function(){return De(!1)}}))},Kt=rt.default=Object(d.a)(function(rn){var At=rn.user,Yt=rn.shixunHomeworks,bn=rn.loading,tr=rn.globalSetting;return{user:At,shixunHomeworks:Yt,globalSetting:tr,loading:bn.effects}})(Nn)},h78n:function(an,rt,F){"use strict";F.d(rt,"a",function(){return O});var re=F("q1tI"),z=F.n(re),I=F("TSYQ"),K=F.n(I),T={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},w=function(H){var G=H.map(function(){return Object(re.useRef)()}),L=Object(re.useRef)();return Object(re.useEffect)(function(){var W=Date.now(),Z=!1;Object.keys(G).forEach(function(oe){var ie=G[oe].current;if(!ie)return;Z=!0;var be=ie.style;be.transitionDuration=".3s, .3s, .3s, .06s",L.current&&W-L.current<100&&(be.transitionDuration="0s, 0s")}),Z&&(L.current=Date.now())}),[G]};function B(){return B=Object.assign||function(U){for(var H=1;HU.length)&&(H=U.length);for(var G=0,L=new Array(H);G=0)continue;if(!Object.prototype.propertyIsEnumerable.call(U,L))continue;G[L]=U[L]}}return G}function n(U,H){if(U==null)return{};var G={},L=Object.keys(U),W,Z;for(Z=0;Z=0)continue;G[W]=U[W]}return G}var p=function(H){var G=H.className,L=H.percent,W=H.prefixCls,Z=H.strokeColor,oe=H.strokeLinecap,ie=H.strokeWidth,be=H.style,Je=H.trailColor,Ae=H.trailWidth,ke=H.transition,Ze=g(H,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Ze.gapPosition;var Xe=Array.isArray(L)?L:[L],Pe=Array.isArray(Z)?Z:[Z],he=w(Xe),le=x(he,1),Se=le[0],ve=ie/2,Ge=100-ie/2,it="M ".concat(oe==="round"?ve:0,",").concat(ve,` - L `).concat(oe==="round"?Ge:100,",").concat(ve),ee="0 0 100 ".concat(ie),V=0;return z.a.createElement("svg",B({className:K()("".concat(W,"-line"),G),viewBox:ee,preserveAspectRatio:"none",style:be},Ze),z.a.createElement("path",{className:"".concat(W,"-line-trail"),d:it,strokeLinecap:oe,stroke:Je,strokeWidth:Ae||ie,fillOpacity:"0"}),Xe.map(function(Q,fe){var _e={strokeDasharray:"".concat(Q,"px, 100px"),strokeDashoffset:"-".concat(V,"px"),transition:ke||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Fe=Pe[fe]||Pe[Pe.length-1];return V+=Q,z.a.createElement("path",{key:fe,className:"".concat(W,"-line-path"),d:it,strokeLinecap:oe,stroke:Fe,strokeWidth:ie,fillOpacity:"0",ref:Se[fe],style:_e})}))};p.defaultProps=T;var d=p;function o(){return o=Object.assign||function(U){for(var H=1;HU.length)&&(H=U.length);for(var G=0,L=new Array(H);G=0)continue;if(!Object.prototype.propertyIsEnumerable.call(U,L))continue;G[L]=U[L]}}return G}function h(U,H){if(U==null)return{};var G={},L=Object.keys(U),W,Z;for(Z=0;Z=0)continue;G[W]=U[W]}return G}var c=0;function s(U){return+U.replace("%","")}function i(U){return Array.isArray(U)?U:[U]}function C(U,H,G,L){var W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,Z=arguments.length>5?arguments[5]:void 0,oe=50-L/2,ie=0,be=-oe,Je=0,Ae=-2*oe;switch(Z){case"left":ie=-oe,be=0,Je=2*oe,Ae=0;break;case"right":ie=oe,be=0,Je=-2*oe,Ae=0;break;case"bottom":be=oe,Ae=2*oe;break;default:}var ke="M 50,50 m ".concat(ie,",").concat(be,` +`),insertTextRules:b.languages.CompletionItemInsertTextRule.InsertAsSnippet}],_=D(b,s,i,f,C);return{suggestions:_}}})},R="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002",M=F("LvDl");function g(b){return/^\d+$/.test(b)?"".concat(b,"px"):b}function n(){}var p=!1,d={"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"};function o(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],v=b;if(Array.isArray(b)){for(var P=0;P0||St.target.offsetWidth>0)&&it.current.instance.layout()}}catch(en){nt.e(en)}finally{nt.f()}}),me.observe(Ge.current)),me}function Ht(){I.b.warn(decodeURIComponent(R))}var It=function(){var xe=it.current.instance;if(c!=null&&xe&&Fe){var nt=xe.getModel();nt&&c!==nt.getValue()&&(p=!0,nt.setValue(c),xe.layout(),p=!1)}};Object(B.useEffect)(function(){ee.current&&clearTimeout(ee.current),ee.current=setTimeout(function(){It()},500)},[c,Fe,it.current]);function Bt(){var me=it.current.instance;if(me){var xe=me.getSelection(),nt=it.current.pastePos||{},We=new u.Range(nt.startLineNumber||xe.endLineNumber,nt.startColumn||xe.endColumn,nt.endLineNumber||xe.endLineNumber,nt.endColumn||xe.endColumn);setTimeout(function(){me.executeEdits("",[{range:We,text:""}])},300)}}function tn(me){(window.navigator.platform.match("Mac")?me.metaKey:me.ctrlKey)&&me.keyCode==83&&(me.preventDefault(),Z())}var hn=function(){if(ie&&it.current.instance){var xe=it.current.instance.getContentHeight();ue(xe0||Ze.target.offsetWidth>0)&&ie.layout()}}catch(Xe){Ae.e(Xe)}finally{Ae.f()}}),be.observe(O.current)),be}Object(B.useEffect)(function(){O.current&&F.e(27).then(F.t.bind(null,"M/lh",7)).then(function(ie){u=ie;var be=u.editor.createDiffEditor(O.current,Object(re.a)(Object(re.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},_),{},{wordWrap:!0}));G(be);var Je=L(be);return function(){be.dispose();var Ae=be.getModel();Ae&&Ae.dispose(),Je.unobserve(O.current)}})},[]),Object(B.useEffect)(function(){H&&H.setModel({original:u.editor.createModel(c,i),modified:u.editor.createModel(s,i)})},[c,s,i,H]);var W=g(P),Z=g(f),oe={width:W,height:Z};return x.a.createElement("div",{className:"my-diff-editor",ref:O,style:oe})}},ZpRC:function(an,rt,F){"use strict";function re(m){return typeof m=="object"&&m!=null&&m.nodeType===1}function z(m,R){return(!R||m!=="hidden")&&m!=="visible"&&m!=="clip"}function I(m,R){if(m.clientHeightR||p>m&&d=R&&o>=M?p-m-g:d>R&&oM?d-R+n:0}var T=function(m,R){var M=window,g=R.scrollMode,n=R.block,p=R.inline,d=R.boundary,o=R.skipOverflowHiddenElements,u=typeof d=="function"?d:function(Q){return Q!==d};if(!re(m))throw new TypeError("Invalid target");for(var h=document.scrollingElement||document.documentElement,S=[],b=m;re(b)&&u(b);){if((b=b.parentElement)===h){S.push(b);break}b!=null&&b===document.body&&I(b)&&!I(document.documentElement)||b!=null&&I(b,o)&&S.push(b)}for(var v=M.visualViewport?M.visualViewport.width:innerWidth,P=M.visualViewport?M.visualViewport.height:innerHeight,E=window.scrollX||pageXOffset,f=window.scrollY||pageYOffset,c=m.getBoundingClientRect(),s=c.height,i=c.width,C=c.top,_=c.right,O=c.bottom,N=c.left,U=n==="start"||n==="nearest"?C:n==="end"?O:C+s/2,H=p==="center"?N+i/2:p==="end"?_:N,G=[],L=0;L=0&&N>=0&&O<=P&&_<=v&&C>=be&&O<=Ae&&N>=ke&&_<=Je)return G;var Ze=getComputedStyle(W),Xe=parseInt(Ze.borderLeftWidth,10),Pe=parseInt(Ze.borderTopWidth,10),fe=parseInt(Ze.borderRightWidth,10),le=parseInt(Ze.borderBottomWidth,10),Se=0,ve=0,Ge="offsetWidth"in W?W.offsetWidth-W.clientWidth-Xe-fe:0,it="offsetHeight"in W?W.offsetHeight-W.clientHeight-Pe-le:0;if(h===W)Se=n==="start"?U:n==="end"?U-P:n==="nearest"?K(f,f+P,P,Pe,le,f+U,f+U+s,s):U-P/2,ve=p==="start"?H:p==="center"?H-v/2:p==="end"?H-v:K(E,E+v,v,Xe,fe,E+H,E+H+i,i),Se=Math.max(0,Se+f),ve=Math.max(0,ve+E);else{Se=n==="start"?U-be-Pe:n==="end"?U-Ae+le+it:n==="nearest"?K(be,Ae,oe,Pe,le+it,U,U+s,s):U-(be+oe/2)+it/2,ve=p==="start"?H-ke-Xe:p==="center"?H-(ke+ie/2)+Ge/2:p==="end"?H-Je+fe+Ge:K(ke,Je,ie,Xe,fe+Ge,H,H+i,i);var ee=W.scrollLeft,V=W.scrollTop;U+=V-(Se=Math.max(0,Math.min(V+Se,W.scrollHeight-oe+it))),H+=ee-(ve=Math.max(0,Math.min(ee+ve,W.scrollWidth-ie+Ge)))}G.push({el:W,top:Se,left:ve})}return G};function w(m){return m===Object(m)&&Object.keys(m).length!==0}function B(m,R){R===void 0&&(R="auto");var M="scrollBehavior"in document.body.style;m.forEach(function(g){var n=g.el,p=g.top,d=g.left;n.scroll&&M?n.scroll({top:p,left:d,behavior:R}):(n.scrollTop=p,n.scrollLeft=d)})}function x(m){return m===!1?{block:"end",inline:"nearest"}:w(m)?m:{block:"start",inline:"nearest"}}function k(m,R){var M=!m.ownerDocument.documentElement.contains(m);if(w(R)&&typeof R.behavior=="function")return R.behavior(M?[]:T(m,R));if(M)return;var g=x(R);return B(T(m,g),g.behavior)}var D=rt.a=k},Zss7:function(an,rt,F){var re;(function(z){var I=/^\s+/,K=/\s+$/,T=0,w=z.round,B=z.min,x=z.max,k=z.random;function D(le,Se){if(le=le||"",Se=Se||{},le instanceof D)return le;if(!(this instanceof D))return new D(le,Se);var ve=m(le);this._originalInput=le,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=Se.format||ve.format,this._gradientType=Se.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=T++}D.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 le=this.toRgb();return(le.r*299+le.g*587+le.b*114)/1e3},getLuminance:function(){var le=this.toRgb(),Se,ve,Ge,it,ee,V;return Se=le.r/255,ve=le.g/255,Ge=le.b/255,Se<=.03928?it=Se/12.92:it=z.pow((Se+.055)/1.055,2.4),ve<=.03928?ee=ve/12.92:ee=z.pow((ve+.055)/1.055,2.4),Ge<=.03928?V=Ge/12.92:V=z.pow((Ge+.055)/1.055,2.4),.2126*it+.7152*ee+.0722*V},setAlpha:function(le){return this._a=G(le),this._roundA=w(100*this._a)/100,this},toHsv:function(){var le=n(this._r,this._g,this._b);return{h:le.h*360,s:le.s,v:le.v,a:this._a}},toHsvString:function(){var le=n(this._r,this._g,this._b),Se=w(le.h*360),ve=w(le.s*100),Ge=w(le.v*100);return this._a==1?"hsv("+Se+", "+ve+"%, "+Ge+"%)":"hsva("+Se+", "+ve+"%, "+Ge+"%, "+this._roundA+")"},toHsl:function(){var le=M(this._r,this._g,this._b);return{h:le.h*360,s:le.s,l:le.l,a:this._a}},toHslString:function(){var le=M(this._r,this._g,this._b),Se=w(le.h*360),ve=w(le.s*100),Ge=w(le.l*100);return this._a==1?"hsl("+Se+", "+ve+"%, "+Ge+"%)":"hsla("+Se+", "+ve+"%, "+Ge+"%, "+this._roundA+")"},toHex:function(le){return d(this._r,this._g,this._b,le)},toHexString:function(le){return"#"+this.toHex(le)},toHex8:function(le){return o(this._r,this._g,this._b,this._a,le)},toHex8String:function(le){return"#"+this.toHex8(le)},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(L(this._r,255)*100)+"%",g:w(L(this._g,255)*100)+"%",b:w(L(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+w(L(this._r,255)*100)+"%, "+w(L(this._g,255)*100)+"%, "+w(L(this._b,255)*100)+"%)":"rgba("+w(L(this._r,255)*100)+"%, "+w(L(this._g,255)*100)+"%, "+w(L(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:U[d(this._r,this._g,this._b,!0)]||!1},toFilter:function(le){var Se="#"+u(this._r,this._g,this._b,this._a),ve=Se,Ge=this._gradientType?"GradientType = 1, ":"";if(le){var it=D(le);ve="#"+u(it._r,it._g,it._b,it._a)}return"progid:DXImageTransform.Microsoft.gradient("+Ge+"startColorstr="+Se+",endColorstr="+ve+")"},toString:function(le){var Se=!!le;le=le||this._format;var ve=!1,Ge=this._a<1&&this._a>=0,it=!Se&&Ge&&(le==="hex"||le==="hex6"||le==="hex3"||le==="hex4"||le==="hex8"||le==="name");return it?le==="name"&&this._a===0?this.toName():this.toRgbString():(le==="rgb"&&(ve=this.toRgbString()),le==="prgb"&&(ve=this.toPercentageRgbString()),(le==="hex"||le==="hex6")&&(ve=this.toHexString()),le==="hex3"&&(ve=this.toHexString(!0)),le==="hex4"&&(ve=this.toHex8String(!0)),le==="hex8"&&(ve=this.toHex8String()),le==="name"&&(ve=this.toName()),le==="hsl"&&(ve=this.toHslString()),le==="hsv"&&(ve=this.toHsvString()),ve||this.toHexString())},clone:function(){return D(this.toString())},_applyModification:function(le,Se){var ve=le.apply(null,[this].concat([].slice.call(Se)));return this._r=ve._r,this._g=ve._g,this._b=ve._b,this.setAlpha(ve._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(P,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(h,arguments)},saturate:function(){return this._applyModification(S,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(f,arguments)},_applyCombination:function(le,Se){return le.apply(null,[this].concat([].slice.call(Se)))},analogous:function(){return this._applyCombination(_,arguments)},complement:function(){return this._applyCombination(c,arguments)},monochromatic:function(){return this._applyCombination(O,arguments)},splitcomplement:function(){return this._applyCombination(C,arguments)},triad:function(){return this._applyCombination(s,arguments)},tetrad:function(){return this._applyCombination(i,arguments)}},D.fromRatio=function(le,Se){if(typeof le=="object"){var ve={};for(var Ge in le)le.hasOwnProperty(Ge)&&(Ge==="a"?ve[Ge]=le[Ge]:ve[Ge]=Je(le[Ge]));le=ve}return D(le,Se)};function m(le){var Se={r:0,g:0,b:0},ve=1,Ge=null,it=null,ee=null,V=!1,Q=!1;return typeof le=="string"&&(le=Pe(le)),typeof le=="object"&&(Xe(le.r)&&Xe(le.g)&&Xe(le.b)?(Se=R(le.r,le.g,le.b),V=!0,Q=String(le.r).substr(-1)==="%"?"prgb":"rgb"):Xe(le.h)&&Xe(le.s)&&Xe(le.v)?(Ge=Je(le.s),it=Je(le.v),Se=p(le.h,Ge,it),V=!0,Q="hsv"):Xe(le.h)&&Xe(le.s)&&Xe(le.l)&&(Ge=Je(le.s),ee=Je(le.l),Se=g(le.h,Ge,ee),V=!0,Q="hsl"),le.hasOwnProperty("a")&&(ve=le.a)),ve=G(ve),{ok:V,format:le.format||Q,r:B(255,x(Se.r,0)),g:B(255,x(Se.g,0)),b:B(255,x(Se.b,0)),a:ve}}function R(le,Se,ve){return{r:L(le,255)*255,g:L(Se,255)*255,b:L(ve,255)*255}}function M(le,Se,ve){le=L(le,255),Se=L(Se,255),ve=L(ve,255);var Ge=x(le,Se,ve),it=B(le,Se,ve),ee,V,Q=(Ge+it)/2;if(Ge==it)ee=V=0;else{var he=Ge-it;V=Q>.5?he/(2-Ge-it):he/(Ge+it);switch(Ge){case le:ee=(Se-ve)/he+(Se1&&(He-=1),He<1/6?_e+(Fe-_e)*6*He:He<1/2?Fe:He<2/3?_e+(Fe-_e)*(2/3-He)*6:_e}if(Se===0)Ge=it=ee=ve;else{var Q=ve<.5?ve*(1+Se):ve+Se-ve*Se,he=2*ve-Q;Ge=V(he,Q,le+1/3),it=V(he,Q,le),ee=V(he,Q,le-1/3)}return{r:Ge*255,g:it*255,b:ee*255}}function n(le,Se,ve){le=L(le,255),Se=L(Se,255),ve=L(ve,255);var Ge=x(le,Se,ve),it=B(le,Se,ve),ee,V,Q=Ge,he=Ge-it;if(V=Ge===0?0:he/Ge,Ge==it)ee=0;else{switch(Ge){case le:ee=(Se-ve)/he+(Se>1)+720)%360;--Se;)Ge.h=(Ge.h+it)%360,ee.push(D(Ge));return ee}function O(le,Se){Se=Se||6;for(var ve=D(le).toHsv(),Ge=ve.h,it=ve.s,ee=ve.v,V=[],Q=1/Se;Se--;)V.push(D({h:Ge,s:it,v:ee})),ee=(ee+Q)%1;return V}D.mix=function(le,Se,ve){ve=ve===0?0:ve||50;var Ge=D(le).toRgb(),it=D(Se).toRgb(),ee=ve/100,V={r:(it.r-Ge.r)*ee+Ge.r,g:(it.g-Ge.g)*ee+Ge.g,b:(it.b-Ge.b)*ee+Ge.b,a:(it.a-Ge.a)*ee+Ge.a};return D(V)},D.readability=function(le,Se){var ve=D(le),Ge=D(Se);return(z.max(ve.getLuminance(),Ge.getLuminance())+.05)/(z.min(ve.getLuminance(),Ge.getLuminance())+.05)},D.isReadable=function(le,Se,ve){var Ge=D.readability(le,Se),it,ee;ee=!1,it=fe(ve);switch(it.level+it.size){case"AAsmall":case"AAAlarge":ee=Ge>=4.5;break;case"AAlarge":ee=Ge>=3;break;case"AAAsmall":ee=Ge>=7;break}return ee},D.mostReadable=function(le,Se,ve){var Ge=null,it=0,ee,V,Q,he;ve=ve||{},V=ve.includeFallbackColors,Q=ve.level,he=ve.size;for(var _e=0;_eit&&(it=ee,Ge=D(Se[_e]));return D.isReadable(le,Ge,{level:Q,size:he})||!V?Ge:(ve.includeFallbackColors=!1,D.mostReadable(le,["#fff","#000"],ve))};var N=D.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=D.hexNames=H(N);function H(le){var Se={};for(var ve in le)le.hasOwnProperty(ve)&&(Se[le[ve]]=ve);return Se}function G(le){return le=parseFloat(le),(isNaN(le)||le<0||le>1)&&(le=1),le}function L(le,Se){oe(le)&&(le="100%");var ve=ie(le);return le=B(Se,x(0,parseFloat(le))),ve&&(le=parseInt(le*Se,10)/100),z.abs(le-Se)<1e-6?1:le%Se/parseFloat(Se)}function W(le){return B(1,x(0,le))}function Z(le){return parseInt(le,16)}function oe(le){return typeof le=="string"&&le.indexOf(".")!=-1&&parseFloat(le)===1}function ie(le){return typeof le=="string"&&le.indexOf("%")!=-1}function be(le){return le.length==1?"0"+le:""+le}function Je(le){return le<=1&&(le=le*100+"%"),le}function Ae(le){return z.round(parseFloat(le)*255).toString(16)}function ke(le){return Z(le)/255}var Ze=function(){var le="[-\\+]?\\d+%?",Se="[-\\+]?\\d*\\.\\d+%?",ve="(?:"+Se+")|(?:"+le+")",Ge="[\\s|\\(]+("+ve+")[,|\\s]+("+ve+")[,|\\s]+("+ve+")\\s*\\)?",it="[\\s|\\(]+("+ve+")[,|\\s]+("+ve+")[,|\\s]+("+ve+")[,|\\s]+("+ve+")\\s*\\)?";return{CSS_UNIT:new RegExp(ve),rgb:new RegExp("rgb"+Ge),rgba:new RegExp("rgba"+it),hsl:new RegExp("hsl"+Ge),hsla:new RegExp("hsla"+it),hsv:new RegExp("hsv"+Ge),hsva:new RegExp("hsva"+it),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(le){return!!Ze.CSS_UNIT.exec(le)}function Pe(le){le=le.replace(I,"").replace(K,"").toLowerCase();var Se=!1;if(N[le])le=N[le],Se=!0;else if(le=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ve;return(ve=Ze.rgb.exec(le))?{r:ve[1],g:ve[2],b:ve[3]}:(ve=Ze.rgba.exec(le))?{r:ve[1],g:ve[2],b:ve[3],a:ve[4]}:(ve=Ze.hsl.exec(le))?{h:ve[1],s:ve[2],l:ve[3]}:(ve=Ze.hsla.exec(le))?{h:ve[1],s:ve[2],l:ve[3],a:ve[4]}:(ve=Ze.hsv.exec(le))?{h:ve[1],s:ve[2],v:ve[3]}:(ve=Ze.hsva.exec(le))?{h:ve[1],s:ve[2],v:ve[3],a:ve[4]}:(ve=Ze.hex8.exec(le))?{r:Z(ve[1]),g:Z(ve[2]),b:Z(ve[3]),a:ke(ve[4]),format:Se?"name":"hex8"}:(ve=Ze.hex6.exec(le))?{r:Z(ve[1]),g:Z(ve[2]),b:Z(ve[3]),format:Se?"name":"hex"}:(ve=Ze.hex4.exec(le))?{r:Z(ve[1]+""+ve[1]),g:Z(ve[2]+""+ve[2]),b:Z(ve[3]+""+ve[3]),a:ke(ve[4]+""+ve[4]),format:Se?"name":"hex8"}:(ve=Ze.hex3.exec(le))?{r:Z(ve[1]+""+ve[1]),g:Z(ve[2]+""+ve[2]),b:Z(ve[3]+""+ve[3]),format:Se?"name":"hex"}:!1}function fe(le){var Se,ve;return le=le||{level:"AA",size:"small"},Se=(le.level||"AA").toUpperCase(),ve=(le.size||"small").toLowerCase(),Se!=="AA"&&Se!=="AAA"&&(Se="AA"),ve!=="small"&&ve!=="large"&&(ve="small"),{level:Se,size:ve}}an.exports?an.exports=D:!(re=function(){return D}.call(rt,F,rt,an),re!==void 0&&(an.exports=re))})(Math)},bT9E:function(an,rt,F){"use strict";F.d(rt,"a",function(){return z});var re=F("VTBJ");function z(I,K){var T=Object(re.a)({},I);return Array.isArray(K)&&K.forEach(function(w){delete T[w]}),T}},biw7:function(an,rt,F){"use strict";var re=F("q1tI"),z=F.n(re),I=re.createContext(null);rt.a=I},c5Ni:function(an,rt,F){},dejd:function(an,rt,F){},dmUQ:function(an,rt,F){"use strict";var re=F("Ff2n"),z=F("rePB"),I=F("1OyB"),K=F("vuIU"),T=F("Ji7U"),w=F("md7G"),B=F("foSv"),x=F("q1tI"),k=F.n(x),D=F("TSYQ"),m=F.n(D),R=F("4IlW");function M(s,i){var C=Object.keys(s);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(s);i&&(_=_.filter(function(O){return Object.getOwnPropertyDescriptor(s,O).enumerable})),C.push.apply(C,_)}return C}function g(s){for(var i=1;i1?ie-1:0),Je=1;Je1?L-1:0),Z=1;Z=0)return parseInt(G.slice(G.indexOf("e-")+2),10);var L=0;return G.indexOf(".")>=0&&(L=G.length-G.indexOf(".")-1),L},O.getInputDisplayValue=function(H){var G=H||O.state,L=G.focused,W=G.inputValue,Z=G.value,oe;L?oe=W:oe=O.toPrecisionAsStep(Z),oe==null&&(oe="");var ie=O.formatWrapper(oe);return v(O.props.decimalSeparator)&&(ie=ie.toString().replace(".",O.props.decimalSeparator)),ie},O.recordCursorPosition=function(){try{O.cursorStart=O.input.selectionStart,O.cursorEnd=O.input.selectionEnd,O.currentValue=O.input.value,O.cursorBefore=O.input.value.substring(0,O.cursorStart),O.cursorAfter=O.input.value.substring(O.cursorEnd)}catch(H){}},O.restoreByAfter=function(H){if(H===void 0)return!1;var G=O.input.value,L=G.lastIndexOf(H);if(L===-1)return!1;var W=O.cursorBefore.length;return O.lastKeyCode===R.a.DELETE&&O.cursorBefore.charAt(W-1)===H[0]?(O.fixCaret(W,W),!0):L+H.length===G.length?(O.fixCaret(L,L),!0):!1},O.partRestoreByAfter=function(H){return H===void 0?!1:Array.prototype.some.call(H,function(G,L){var W=H.substring(L);return O.restoreByAfter(W)})},O.isNotCompleteNumber=function(H){return isNaN(H)||H===""||H===null||H&&H.toString().indexOf(".")===H.toString().length-1},O.stop=function(){O.autoStepTimer&&clearTimeout(O.autoStepTimer)},O.down=function(H,G,L){O.pressingUpOrDown=!0,O.step("down",H,G,L)},O.up=function(H,G,L){O.pressingUpOrDown=!0,O.step("up",H,G,L)},O.saveInput=function(H){O.input=H};var N=_.value;N===void 0&&(N=_.defaultValue),O.state={focused:_.autoFocus};var U=O.getValidValue(O.toNumber(N));return O.state=g(g({},O.state),{},{inputValue:O.toPrecisionAsStep(U),value:U}),O}return Object(K.a)(C,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(O){var N=this.props,U=N.value,H=N.onChange,G=N.max,L=N.min,W=this.state.focused;if(O){if(!P(O.value,U)||!P(O.max,G)||!P(O.min,L)){var Z=W?U:this.getValidValue(U),oe;this.pressingUpOrDown?oe=Z:this.inputting?oe=this.rawInput:oe=this.toPrecisionAsStep(Z),this.setState({value:Z,inputValue:oe})}var ie="value"in this.props?U:this.state.value;"max"in this.props&&O.max!==G&&typeof ie=="number"&&ie>G&&H&&H(G),"min"in this.props&&O.min!==L&&typeof ie=="number"&&ie1&&arguments[1]!==void 0?arguments[1]:this.props.min,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,H=parseFloat(O);return isNaN(H)?O:(HU&&(H=U),H)}},{key:"setValue",value:function(O,N){var U=this.props.precision,H=this.isNotCompleteNumber(parseFloat(O))?null:parseFloat(O),G=this.state.value,L=G===void 0?null:G,W=this.state.inputValue,Z=W===void 0?null:W,oe=typeof H=="number"?H.toFixed(U):"".concat(H),ie=H!==L||oe!=="".concat(Z);return"value"in this.props?(Z=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Z},N)):this.setState({value:H,inputValue:this.toPrecisionAsStep(O)},N),ie&&this.props.onChange(H),H}},{key:"getMaxPrecision",value:function(O){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U=this.props,H=U.precision,G=U.step;if(v(H))return H;var L=this.getPrecision(N),W=this.getPrecision(G),Z=this.getPrecision(O);return O?Math.max(Z,L+W):L+W}},{key:"getPrecisionFactor",value:function(O){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U=this.getMaxPrecision(O,N);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(O){return this.props.formatter?this.props.formatter(O):O}},{key:"toPrecisionAsStep",value:function(O){if(this.isNotCompleteNumber(O)||O==="")return O;var N=Math.abs(this.getMaxPrecision(O));return isNaN(N)?O.toString():Number(O).toFixed(N)}},{key:"toNumber",value:function(O){var N=this.props.precision,U=this.state.focused,H=O&&O.length>16&&U;return this.isNotCompleteNumber(O)||H?O:v(N)?Math.round(O*Math.pow(10,N))/Math.pow(10,N):Number(O)}},{key:"upStep",value:function(O,N){var U=this.props.step,H=this.getPrecisionFactor(O,N),G=Math.abs(this.getMaxPrecision(O,N)),L=((H*O+H*U*N)/H).toFixed(G);return this.toNumber(L)}},{key:"downStep",value:function(O,N){var U=this.props.step,H=this.getPrecisionFactor(O,N),G=Math.abs(this.getMaxPrecision(O,N)),L=((H*O-H*U*N)/H).toFixed(G);return this.toNumber(L)}},{key:"step",value:function(O,N){var U=this,H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,G=arguments.length>3?arguments[3]:void 0;this.stop(),N&&(N.persist(),N.preventDefault());var L=this.props;if(L.disabled)return;var W=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(W))return;var Z=this["".concat(O,"Step")](W,H),oe=Z>L.max||ZL.max?Z=L.max:Z=be),xt=(tn||tn===0)&&(isNaN(tn)||Number(tn)<=Je),je=st||H||G,we=xt||H||G,Te=m()("".concat(U,"-handler"),"".concat(U,"-handler-up"),Object(z.a)({},"".concat(U,"-handler-up-disabled"),je)),ue=m()("".concat(U,"-handler"),"".concat(U,"-handler-down"),Object(z.a)({},"".concat(U,"-handler-down-disabled"),we)),pe=L?{onTouchStart:je?d:this.up,onTouchEnd:this.stop}:{onMouseDown:je?d:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},me=L?{onTouchStart:we?d:this.down,onTouchEnd:this.stop}:{onMouseDown:we?d:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return k.a.createElement("div",{className:tt,style:Ae,title:ke,onMouseEnter:Ze,onMouseLeave:Xe,onMouseOver:Pe,onMouseOut:fe,onFocus:function(){return null},onBlur:function(){return null}},k.a.createElement("div",{className:"".concat(U,"-handler-wrap")},k.a.createElement("span",Object.assign({unselectable:"on"},pe,{role:"button","aria-label":"Increase Value","aria-disabled":je,className:Te}),Z||k.a.createElement("span",{unselectable:"on",className:"".concat(U,"-handler-up-inner"),onClick:o})),k.a.createElement("span",Object.assign({unselectable:"on"},me,{role:"button","aria-label":"Decrease Value","aria-disabled":we,className:ue}),oe||k.a.createElement("span",{unselectable:"on",className:"".concat(U,"-handler-down-inner"),onClick:o}))),k.a.createElement("div",{className:"".concat(U,"-input-wrap")},k.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Je,"aria-valuemax":be,"aria-valuenow":tn,required:le,type:Ge,placeholder:it,onPaste:Rt,onClick:Se,onMouseUp:this.onMouseUp,className:"".concat(U,"-input"),tabIndex:ve,autoComplete:W,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Ct?this.onKeyDown:d,onKeyUp:Ct?this.onKeyUp:d,autoFocus:Fe,maxLength:_e,readOnly:G,disabled:H,max:be,min:Je,step:he,name:He,title:ke,id:ee,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(Dt),pattern:Q,inputMode:V,onInput:Ht},Ke))))}}]),C}(k.a.Component);E.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:b,min:-b,step:1,style:{},onChange:d,onKeyDown:d,onPressEnter:d,onFocus:d,onBlur:d,parser:u,required:!1,autoComplete:"off"};var f=E,c=rt.a=f},fyJ8:function(an,rt,F){"use strict";var re=F("rePB"),z=F("VTBJ"),I=F("Ff2n"),K=F("U8pU"),T=F("q1tI"),w=F.n(T),B=F("TSYQ"),x=F.n(B),k=F("c+Xe"),D=F("sR1s");function m(p){return p&&Object(K.a)(p)==="object"&&!Array.isArray(p)&&!T.isValidElement(p)}function R(p){return typeof p=="string"?!0:Object(k.c)(p)}function M(p,d){var o,u=p.prefixCls,h=p.className,S=p.record,b=p.index,v=p.dataIndex,P=p.render,E=p.children,f=p.component,c=f===void 0?"td":f,s=p.colSpan,i=p.rowSpan,C=p.fixLeft,_=p.fixRight,O=p.firstFixLeft,N=p.lastFixLeft,U=p.firstFixRight,H=p.lastFixRight,G=p.appendNode,L=p.additionalProps,W=L===void 0?{}:L,Z=p.ellipsis,oe=p.align,ie=p.rowType,be=p.isSticky,Je="".concat(u,"-cell"),Ae,ke;if(E)ke=E;else{var Ze=Object(D.b)(S,v);if(ke=Ze,P){var Xe=P(Ze,S,b);m(Xe)?(ke=Xe.children,Ae=Xe.props):ke=Xe}}Object(K.a)(ke)==="object"&&!Array.isArray(ke)&&!T.isValidElement(ke)&&(ke=null),Z&&(N||U)&&(ke=T.createElement("span",{className:"".concat(Je,"-content")},ke));var Pe=Ae||{},fe=Pe.colSpan,le=Pe.rowSpan,Se=Pe.style,ve=Pe.className,Ge=Object(I.a)(Pe,["colSpan","rowSpan","style","className"]),it=fe!==void 0?fe:s,ee=le!==void 0?le:i;if(it===0||ee===0)return null;var V={},Q=typeof C=="number",he=typeof _=="number";Q&&(V.position="sticky",V.left=C),he&&(V.position="sticky",V.right=_);var _e={};oe&&(_e.textAlign=oe);var Fe,He=Z===!0?{showTitle:!0}:Z;He&&(He.showTitle||ie==="header")&&(typeof ke=="string"||typeof ke=="number"?Fe=ke.toString():T.isValidElement(ke)&&typeof ke.props.children=="string"&&(Fe=ke.props.children));var Rt=Object(z.a)(Object(z.a)(Object(z.a)({title:Fe},Ge),W),{},{colSpan:it&&it!==1?it:null,rowSpan:ee&&ee!==1?ee:null,className:x()(Je,h,(o={},Object(re.a)(o,"".concat(Je,"-fix-left"),Q),Object(re.a)(o,"".concat(Je,"-fix-left-first"),O),Object(re.a)(o,"".concat(Je,"-fix-left-last"),N),Object(re.a)(o,"".concat(Je,"-fix-right"),he),Object(re.a)(o,"".concat(Je,"-fix-right-first"),U),Object(re.a)(o,"".concat(Je,"-fix-right-last"),H),Object(re.a)(o,"".concat(Je,"-ellipsis"),Z),Object(re.a)(o,"".concat(Je,"-with-append"),G),Object(re.a)(o,"".concat(Je,"-fix-sticky"),(Q||he)&&be),o),W.className,ve),style:Object(z.a)(Object(z.a)(Object(z.a)(Object(z.a)({},W.style),_e),V),Se),ref:R(c)?d:null});return T.createElement(c,Object.assign({},Rt),G,ke)}var g=T.forwardRef(M);g.displayName="Cell";var n=T.memo(g,function(p,d){return d.shouldCellUpdate?!d.shouldCellUpdate(d.record,p.record):!1});rt.a=n},gbAR:function(an,rt,F){"use strict";F.r(rt);var re=F("Znn+"),z=F("ZTPi"),I=F("sPJy"),K=F("bE4q"),T=F("miYZ"),w=F("tsqr"),B=F("9og8"),x=F("+L6B"),k=F("2/Rp"),D=F("k1fw"),m=F("tJVT"),R=F("WmNS"),M=F.n(R),g=F("q1tI"),n=F.n(g),p=F("Ty5D"),d=F("9kvl"),o=F("55Ip"),u=F("jhfD"),h=F("1vsH"),S=F("xKgJ"),b=F("2qtc"),v=F("kLXV"),P=F("giR+"),E=F("fyUT"),f=F("7Kak"),c=F("9yH6"),s=F("DjyN"),i=F("NUBc"),C=F("g9YV"),_=F("wCAj"),O=F("qVdP"),N=F("jsC+"),U=F("5NDa"),H=F("5rEg"),G=F("14J3"),L=F("BMrR"),W=F("sRBo"),Z=F("kaz8"),oe=F("jCWc"),ie=F("kPKH"),be=F("lUTK"),Je=F("BvKs"),Ae=F("5Dmo"),ke=F("3S7+"),Ze=F("jrin"),Xe=F("oBTY"),Pe=F("y8nQ"),fe=F("Vl3Y"),le=F("8Skl"),Se=F("y3Kf"),ve=F("Llu2"),Ge=F("0NbB"),it=F("wd/R"),ee=F.n(it),V=F("ErOA"),Q=F("BdwD"),he=function(At){var Yt=At.shixunHomeworks,bn=At.dispatch,tr=Object(p.i)();return n.a.createElement(v.a,{centered:!0,title:"\u63D0\u793A",visible:Yt.actionTabs.key==="\u6253\u56DE\u91CD\u505A",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(B.a)(M.a.mark(function Wn(){var Jn;return M.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:return zn.next=2,Object(V.a)("/api/myshixuns/".concat(Yt.actionTabs.selectArrs.myshixun_identifier,"/reset_my_game.json"),{method:"post",body:{course_id:tr.coursesId}});case 2:Jn=zn.sent,Jn.status===0&&(w.b.success("\u5220\u9664\u6210\u529F"),bn({type:"shixunHomeworks/setActionTabs",payload:{}}),bn({type:"shixunHomeworks/getWorkList",payload:Object(D.a)({},Yt.actionTabs.params)}));case 4:case"end":return zn.stop()}},Wn)})),onCancel:function(){bn({type:"shixunHomeworks/setActionTabs",payload:{}})}},n.a.createElement("p",null,"\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),n.a.createElement("p",null,"\u786E\u5B9A\u6253\u56DE?"))},_e=Object(d.a)(function(rn){var At=rn.shixunHomeworks;return{shixunHomeworks:At}})(he),Fe=function(At){var Yt=At.shixunHomeworks,bn=At.dispatch,tr=Object(p.i)(),Wn=Object(g.useState)(!0),Jn=Object(m.a)(Wn,2),Sr=Jn[0],zn=Jn[1],Gn=fe.a.useForm(),Un=Object(m.a)(Gn,1),mn=Un[0];return n.a.createElement(n.a.Fragment,null,n.a.createElement(v.a,{centered:!0,title:"\u8C03\u5206",visible:Yt.actionTabs.key==="\u8C03\u5206",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(B.a)(M.a.mark(function br(){var _r,Cn;return M.a.wrap(function(xr){for(;;)switch(xr.prev=xr.next){case 0:return xr.next=2,mn.validateFields();case 2:return _r=mn.getFieldsValue(),xr.next=5,Object(V.a)("/api/student_works/".concat(Yt.actionTabs.id,"/adjust_score.json"),{method:"post",body:Object(D.a)({},_r)});case 5:Cn=xr.sent,Cn.status===0&&(w.b.success("\u8BC4\u9605\u6210\u529F"),mn.resetFields(),bn({type:"shixunHomeworks/setActionTabs",payload:{}}),bn({type:"shixunHomeworks/getWorkList",payload:Object(D.a)({},Yt.actionTabs.params)}));case 7:case"end":return xr.stop()}},br)})),onCancel:function(){bn({type:"shixunHomeworks/setActionTabs",payload:{}})}},n.a.createElement("p",{className:"tc"},"\u8BE5\u5B66\u751F\u7684\u6700\u7EC8\u6210\u7EE9\u5C06\u4E0D\u4F1A\u6309\u7167\u8BC4\u5206\u89C4\u5219\u8FDB\u884C\u8BA1\u7B97"),n.a.createElement(fe.a,{form:mn,layout:"horizontal"},n.a.createElement("div",{style:{display:"flex",alignItems:"baseline"}},n.a.createElement(fe.a.Item,{label:"\u6210\u7EE9",name:"score",rules:[{required:!0,message:"\u8BF7\u8F93\u5165!"}]},n.a.createElement(E.a,{min:0,placeholder:"\u8BF7\u586B\u5199\u5206\u6570"})),n.a.createElement("span",{className:"ml10"},"\u5206")),n.a.createElement("div",null,n.a.createElement(fe.a.Item,{name:"comment"},n.a.createElement(H.a.TextArea,{placeholder:"\u8BF7\u586B\u5199\u60A8\u5BF9\u4F5C\u54C1\u8C03\u5206\u7684\u539F\u56E0",rows:8}))))))},He=Object(d.a)(function(rn){var At=rn.shixunHomeworks;return{shixunHomeworks:At}})(Fe),Rt=F("Ot1p"),Ht=F("GUfm"),It=F.n(Ht),Bt=F("mgmH"),tn=Object(g.createRef)(),hn=function(At){var Yt,bn,tr,Wn,Jn,Sr,zn,Gn,Un,mn,br,_r=At.shixunHomeworks,Cn=At.loading,or=At.user,xr=At.dispatch,Ur=At.zip,q=At.btnLoading,De=At.setBtnLoading,Ve=Object(g.useState)(Object(D.a)(Object(D.a)({},Object(p.i)()),{page:1,limit:20})),Be=Object(m.a)(Ve,2),$e=Be[0],qe=Be[1],ft=Object(p.h)(),Ee=_r.workList,gt=Object(g.useState)({}),yt=Object(m.a)(gt,2),Lt=yt[0],bt=yt[1],ut=Object(g.useState)(""),kt=Object(m.a)(ut,2),Mt=kt[0],Le=kt[1],mt=Object(g.useState)(""),Pt=Object(m.a)(mt,2),Jt=Pt[0],Nt=Pt[1],Sn=Object(g.useState)(""),gn=Object(m.a)(Sn,2),un=gn[0],Mn=gn[1],Rn=Object(g.useState)([]),vt=Object(m.a)(Rn,2),Xt=vt[0],Tt=vt[1],Tn=Object(g.useState)(),zt=Object(m.a)(Tn,2),En=zt[0],wn=zt[1],Yn=Object(g.useState)([]),Ln=Object(m.a)(Yn,2),yn=Ln[0],sr=Ln[1],Fn=Object(g.useState)({}),Ir=Object(m.a)(Fn,2),dr=Ir[0],Mr=Ir[1],Hn=Object(g.useState)(!1),Vn=Object(m.a)(Hn,2),Zn=Vn[0],Wr=Vn[1],ea=Object(g.useState)([]),Yr=Object(m.a)(ea,2),ta=Yr[0],pa=Yr[1],ma=Object(g.useState)(!1),Ga=Object(m.a)(ma,2),Oa=Ga[0],Wa=Ga[1],ya=Object(g.useState)(),Ma=Object(m.a)(ya,2),Qa=Ma[0],La=Ma[1],va=Object(g.useState)(1),Ca=Object(m.a)(va,2),sa=Ca[0],Ce=Ca[1],Ye=Object(g.useState)(),et=Object(m.a)(Ye,2),Oe=et[0],se=et[1],ye=Object(g.useState)(),de=Object(m.a)(ye,2),Re=de[0],Ie=de[1],at=Object(g.useState)(),Ue=Object(m.a)(at,2),lt=Ue[0],Ot=Ue[1],jt=Object(g.useState)({status:!1,visible:!0}),Gt=Object(m.a)(jt,2),fn=Gt[0],In=Gt[1],ar=fe.a.useForm(),nr=Object(m.a)(ar,1),ir=nr[0];Object(g.useEffect)(function(){tn&&tn.current&&(tn.current.clientHeight>47?In({status:!0,visible:!0}):In({status:!1,visible:!0}))},[Ee.course_group_info&&Ee.course_group_info.length]),Object(g.useEffect)(function(){Ee!=null&&Ee.course_id&&(Object(S.c)()?sr([]):sr([Object(D.a)(Object(D.a)({},Ee),{isMe:!0})]))},[or.userInfo]),Object(g.useEffect)(function(){Ee!=null&&Ee.course_id&&setTimeout(function(){Tt(Object(Xe.a)(Ee.student_works))},400)},[Ee]);var pr=function(){var sn=Object(B.a)(M.a.mark(function cn(){var $t;return M.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return jn.next=2,xr({type:"shixunHomeworks/getWorkList",payload:Object(D.a)({},$e)});case 2:$t=jn.sent,Object(S.c)()?Tt(Object(Xe.a)($t.student_works)):Tt(Object(Xe.a)($t));case 4:case"end":return jn.stop()}},cn)}));return function(){return sn.apply(this,arguments)}}();function lr(){Ce(1),wn(""),se(""),Ie(""),Ot(""),pa([])}var mr=function(){$e.page=1;var cn=Object.assign({},ir.getFieldValue());delete $e.course_group,delete $e.teacher_comment,Object.keys(cn).map(function($t){switch($t){case"teacher_comment":case"member_work":if(cn[$t].length>1||!cn[$t].length)delete $e[$t],ir.setFieldsValue(Object(Ze.a)({},$t,"all"));else{var Qn;$e[$t]=(Qn=cn[$t])===null||Qn===void 0?void 0:Qn[0]}break;case"work_status":cn[$t].includes("all")||Ee.task_status.length===cn[$t].length||!cn[$t].length?(delete $e.work_status,ir.setFieldsValue(Object(Ze.a)({},"work_status","all"))):($e.work_status=cn[$t],ir.setFieldsValue(Object(Ze.a)({},"work_status",$e.work_status)));break;case"course_group_info":cn[$t].includes("all")||Ee[$t].length===cn[$t].length||!cn[$t].length?(delete $e.course_group,ir.setFieldsValue(Object(Ze.a)({},"course_group_info","all"))):($e.course_group=cn[$t],ir.setFieldsValue(Object(Ze.a)({},"course_group_info",$e.course_group)));break}}),pr()},Er=function(cn,$t){$e.page=cn,$e.limit=20,pr()},rr=[{name:"\u7EC4\u957F",id:1},{name:"\u7EC4\u5458",id:0}],Tr=[{title:"\u5E8F\u53F7",dataIndex:"name",align:"center",width:50,render:function(cn,$t,Qn){return $e.limit*($e.page-1)+Qn+1}},{title:"\u59D3\u540D",align:"center",dataIndex:"user_name",width:90,render:function(cn,$t){return n.a.createElement("div",null,cn,n.a.createElement("br",null),$t.is_leader&&n.a.createElement("span",{className:"leader"},"\u7EC4\u957F"))}},Object(S.c)()&&{title:"\u5B66\u53F7",align:"center",dataIndex:"student_id",sortOrder:dr.student_id,sortDirections:["descend","ascend"],width:90,sorter:function(cn,$t){return cn.id-$t.id},render:function(cn){return cn}},Object(S.c)()&&{title:"\u5206\u73ED",align:"center",dataIndex:"group_name"},{title:"\u5206\u7EC4",align:"center",dataIndex:"work_group",width:70,render:function(cn){return n.a.createElement("span",{className:"c-blue"},cn)}},(Ee==null?void 0:Ee.base_on_project)&&{title:"\u5173\u8054\u9879\u76EE",align:"center",dataIndex:"base_on_project",width:70,render:function(cn,$t){var Qn,jn,yr,Nr,Lr,Or;return((Qn=$t.project_info)===null||Qn===void 0?void 0:Qn.id)!==-1?n.a.createElement("a",{target:"_blank",href:"".concat((jn=or.navigationInfo)===null||jn===void 0||((yr=jn.top)===null||yr===void 0)?void 0:yr.old_url).concat((Nr=$t.project_info)===null||Nr===void 0?void 0:Nr.id),className:"c-blue"},(Lr=$t.project_info)===null||Lr===void 0?void 0:Lr.name):(Or=$t.project_info)===null||Or===void 0?void 0:Or.name}},{title:"\u4F5C\u54C1\u72B6\u6001",dataIndex:"work_status",width:"8%",align:"center",render:function(cn){return cn===-1?"\u91CD\u505A\u4E2D":n.a.createElement(h.a,{status:cn})}},{title:"\u6253\u56DE\u6B21\u6570",dataIndex:"redo_count",width:"8%",align:"center",render:function(cn){return cn||"- -"}},{title:"\u66F4\u65B0\u65F6\u95F4",align:"center",dataIndex:"update_time",sortOrder:dr.update_time,sortDirections:["descend","ascend"],width:105,sorter:function(cn,$t){return cn.id-$t.id},render:function(cn){return cn?ee()(cn).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},Ee.anonymous_comment&&{title:"\u533F\u8BC4\u8BC4\u5206",align:"center",dataIndex:"student_score",width:75},(Object(S.c)()||Object(S.s)()&&!(Ee!=null&&Ee.anonymous_comment)&&!Ee.anonymous_appeal||Object(S.s)()&&((Yt=Ee.homework_status)===null||Yt===void 0?void 0:Yt.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(cn){return cn}},{title:"\u64CD\u4F5C",width:"8%",align:"center",dataInex:"action",render:function(cn,$t){return $t.work_status===0&&!Object(S.c)()?n.a.createElement("div",null,"--"):n.a.createElement("div",null,!Object(S.c)()&&n.a.createElement(o.a,{className:"c-blue",target:"_blank",to:"/classrooms/".concat($e.coursesId,"/group_homework/").concat($e.categoryId,"/review/").concat($t.id)},"\u67E5\u770B"),Object(S.c)()&&n.a.createElement(o.a,{className:"c-blue",target:"_blank",to:"/classrooms/".concat($e.coursesId,"/group_homework/").concat($e.categoryId,"/review/").concat($t.id)},$t.has_comment?"\u5DF2\u8BC4\u9605":"\u8BC4\u9605"),n.a.createElement("br",null),Object(S.c)()&&n.a.createElement(ke.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(jn){jn.preventDefault(),xr({type:"shixunHomeworks/setActionTabs",payload:{key:"\u8C03\u5206",selectArrs:$t,id:$t.id,params:$e}})}},"\u8C03\u5206")))}}].filter(function(sn){return!!sn}),$n=Object(Xe.a)(Tr.map(function(sn){return Object(D.a)({},sn)}));$n[0].render=function(sn){return"\u6211"};var nn=function(){var sn=Object(B.a)(M.a.mark(function cn(){var $t,Qn;return M.a.wrap(function(yr){for(;;)switch(yr.prev=yr.next){case 0:return De(!0),yr.next=3,Object(V.a)("/api/homework_commons/".concat($e==null?void 0:$e.categoryId,"/export_student_works.json"),{method:"get",params:JSON.parse(sessionStorage.all_student_works_params)});case 3:$t=yr.sent,$t.status===0?(Qn=Ur.current)===null||Qn===void 0||Qn.exportReport($t.files):De(!1);case 5:case"end":return yr.stop()}},cn)}));return function(){return sn.apply(this,arguments)}}(),_n=function(){return n.a.createElement(Je.a,null,n.a.createElement(Je.a.Item,{key:"1"},n.a.createElement("span",{onClick:function(){return Object(Bt.h)(JSON.parse(sessionStorage.all_student_works_params),"group_work_list")}},"\u5BFC\u51FA\u6210\u7EE9")),n.a.createElement(Je.a.Item,{key:"3"},n.a.createElement(k.a,{loading:q,ghost:!0,style:{paddingLeft:0,background:"transparent"},type:"text",onClick:function(){return nn()}},"\u5BFC\u51FA\u4F5C\u54C1\u9644\u4EF6")),n.a.createElement(Je.a.Item,{key:"2"},n.a.createElement(o.a,{to:"/classrooms/".concat($e.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(S.c)()?"pt30":""," pr30")},!(Ee!=null&&Ee.all_member_count)&&!Cn["shixunHomeworks/getWorkList"]&&((Ee==null||((bn=Ee.homework_status)===null||bn===void 0)?void 0:bn.includes("\u672A\u53D1\u5E03"))||(Ee==null||((tr=Ee.homework_status)===null||tr===void 0)?void 0:tr.includes("\u672A\u5F00\u59CB")))&&n.a.createElement("aside",{className:"bg-white inline-block w100"},n.a.createElement(Q.a,null)),!Object(S.c)()&&n.a.createElement("aside",{className:"pt10 pb10"},n.a.createElement("span",{className:"c-orange"},Ee.commit_count),"\u5DF2\u4EA4",n.a.createElement("span",{className:"ml10"},Ee.uncommit_count),"\u672A\u4EA4",(Ee==null||((Wn=Ee.left_time)===null||Wn===void 0)?void 0:Wn.time)&&n.a.createElement("span",{className:"ml10"},n.a.createElement("span",null,Ee==null||((Jn=Ee.left_time)===null||Jn===void 0)?void 0:Jn.status),n.a.createElement("span",{className:"c-orange"},Ee==null||((Sr=Ee.left_time)===null||Sr===void 0)?void 0:Sr.time))),n.a.createElement("aside",null,!(Ee!=null&&(zn=Ee.homework_status)!==null&&zn!==void 0&&zn.includes("\u672A\u53D1\u5E03"))&&!(Ee!=null&&(Gn=Ee.homework_status)!==null&&Gn!==void 0&&Gn.includes("\u672A\u5F00\u59CB"))&&n.a.createElement("aside",null,Object(S.c)()&&n.a.createElement("aside",{className:"mb30"},n.a.createElement(fe.a,{form:ir,onChange:mr,initialValues:(Un={},Object(Ze.a)(Un,"member_work","all"),Object(Ze.a)(Un,"work_status","all"),Object(Ze.a)(Un,"course_group_info","all"),Object(Ze.a)(Un,"teacher_comment","all"),Un)},n.a.createElement(fe.a.Item,{name:"teacher_comment"},n.a.createElement(Z.a.Group,{style:{width:"100%"}},n.a.createElement(L.a,null,n.a.createElement(ie.a,{flex:"80px",style:{fontSize:14}},"\u4F60\u7684\u8BC4\u9605:"),n.a.createElement(ie.a,{flex:"80px"},n.a.createElement(Z.a,{value:"all",checked:!Lt.teacher_comment},"\u5168\u90E8")),n.a.createElement(ie.a,{flex:"1"},Ee.teacher_comment&&Ee.teacher_comment.map(function(sn){return n.a.createElement(Z.a,{value:sn.id,key:sn.id},sn.name,"(",sn.count,")")}))))),n.a.createElement(fe.a.Item,{name:"work_status"},n.a.createElement(Z.a.Group,{value:[],style:{width:"100%"}},n.a.createElement(L.a,null,n.a.createElement(ie.a,{flex:"80px",style:{fontSize:14}},"\u4F5C\u54C1\u72B6\u6001:"),n.a.createElement(ie.a,{flex:"80px"},n.a.createElement(Z.a,{value:"all",checked:!Lt.work_status},"\u5168\u90E8")),n.a.createElement(ie.a,{flex:"1"},Ee.task_status&&Ee.task_status.map(function(sn){return n.a.createElement(Z.a,{name:"work_status",value:sn.id,key:sn.id},sn.name,"(",sn.count,")")}))))),n.a.createElement(fe.a.Item,{name:"member_work"},n.a.createElement(Z.a.Group,{style:{width:"100%"}},n.a.createElement(L.a,null,n.a.createElement(ie.a,{flex:"80px",style:{fontSize:14}},"\u7EC4\u5185\u89D2\u8272:"),n.a.createElement(ie.a,{flex:"80px"},n.a.createElement(Z.a,{value:"all"},"\u5168\u90E8")),n.a.createElement(ie.a,{flex:"1"},rr.map(function(sn){return n.a.createElement(Z.a,{value:sn.id,key:sn.id},sn.name)}))))),n.a.createElement(fe.a.Item,{name:"course_group_info"},n.a.createElement(Z.a.Group,{style:{width:"100%"}},n.a.createElement(L.a,null,n.a.createElement(ie.a,{flex:"80px",style:{fontSize:14}},"\u5206\u73ED\u60C5\u51B5:"),n.a.createElement(ie.a,{flex:"80px"},n.a.createElement(Z.a,{value:"all",checked:!Lt.course_group},"\u5168\u90E8")),n.a.createElement(ie.a,{flex:"1",className:"".concat(It.a.workListClass," ").concat(fn.visible?It.a.visible:""," ").concat(fn.status?"":It.a.status)},n.a.createElement("div",{ref:tn,className:It.a.left},Ee.course_group_info&&Ee.course_group_info.map(function(sn){return n.a.createElement(Z.a,{value:sn.course_group_id,key:sn.course_group_id},sn.group_group_name,"(",sn.count,")")})),fn.status&&n.a.createElement("div",{className:It.a.tips,onClick:function(){return In(Object(D.a)(Object(D.a)({},fn),{},{visible:!fn.visible}))}},n.a.createElement("span",null,fn.visible?"\u5C55\u5F00":"\u6536\u8D77",fn.visible?n.a.createElement(le.a,{style:{marginBottom:"3px",marginLeft:"2px"}}):n.a.createElement(Se.a,{style:{marginBottom:"3px",marginLeft:"2px"}})))))))),n.a.createElement(L.a,{align:"middle"},n.a.createElement(ie.a,{flex:"1"},n.a.createElement(L.a,{align:"middle"},n.a.createElement(ie.a,null,n.a.createElement(H.a.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",onSearch:function(cn){$e.page=1,$e.search=cn,xr({type:"shixunHomeworks/getWorkList",payload:Object(D.a)({},$e)})},style:{width:240}})),n.a.createElement(ie.a,null,n.a.createElement("span",{className:"ml5 c-red"},Ee.work_count),"\u4E2A\u68C0\u7D22\u7ED3\u679C\uFF08",Ee.work_count,"\u4E2A\u5B66\u751F\uFF09"))),n.a.createElement(ie.a,{style:{textAlign:"end"},className:It.a.workListButtonWrap},n.a.createElement(N.a,{overlay:_n},n.a.createElement(k.a,null,n.a.createElement(ve.a,null),"\u5BFC\u51FA",n.a.createElement(Ge.a,null)))))),!!yn.length&&n.a.createElement(_.a,{className:"mb10",dataSource:yn,columns:$n,pagination:!1,showHeader:!1,loading:!1}),n.a.createElement("aside",{className:"mb30"},n.a.createElement(_.a,{loading:Cn["shixunHomeworks/getWorkList"],hideOnSinglePage:!0,pagination:!1,dataSource:Xt,columns:Tr,onChange:function(cn,$t,Qn){if(dr={},Qn.order===void 0){dr[Qn.field]="descend";switch(Qn.field){case"student_id":Le("descend"),$e.b_order="desc";break}}else $e.b_order=Qn.order.replace("end",""),dr[Qn.field]=Qn.order;Mr(Object(D.a)({},dr)),$e.order=Qn.field,xr({type:"shixunHomeworks/getWorkList",payload:Object(D.a)({},$e)})}}))))),n.a.createElement("aside",{className:"tc mb50 mt30"},n.a.createElement(i.a,{showSizeChanger:!1,hideOnSinglePage:!0,onChange:Er,defaultCurrent:$e.page||1,current:$e.page||1,defaultPageSize:20,total:_r.workList.work_count}))),n.a.createElement(He,null),n.a.createElement(_e,null),Zn&&n.a.createElement(v.a,{title:"\u4E00\u952E\u6253\u56DE\u91CD\u505A",visible:Zn,centered:!0,destroyOnClose:!0,forceRender:!0,width:700,onOk:Object(B.a)(M.a.mark(function sn(){var cn,$t;return M.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(!(sa===2)){jn.next=13;break}if(!(ta.length<=0)){jn.next=4;break}return w.b.info("\u8BF7\u9009\u62E9\u4F5C\u4E1A\u72B6\u6001"),jn.abrupt("return");case 4:if(lt){jn.next=7;break}return w.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),jn.abrupt("return");case 7:return jn.next=9,Object(V.a)("/api/homework_commons/".concat($e.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:$e.categoryId,comment:lt,status:ta}});case 9:cn=jn.sent,cn.status===0&&(La(cn),Wr(!1),Wa(!0)),jn.next=32;break;case 13:if(!(Re===0||Oe===0)){jn.next=16;break}jn.next=22;break;case 16:if(Re){jn.next=19;break}return w.b.info("\u6700\u4F4E\u5206\u4E0D\u80FD\u4E3A\u7A7A"),jn.abrupt("return");case 19:if(Oe){jn.next=22;break}return w.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u4E3A\u7A7A"),jn.abrupt("return");case 22:if(!(Re>Oe)){jn.next=25;break}return w.b.info("\u6700\u9AD8\u5206\u4E0D\u80FD\u5927\u4E8E\u6700\u4F4E\u5206"),jn.abrupt("return");case 25:if(lt){jn.next=28;break}return w.b.info("\u8BC4\u8BED\u4E0D\u80FD\u4E3A\u7A7A"),jn.abrupt("return");case 28:return jn.next=30,Object(V.a)("/api/homework_commons/".concat($e.categoryId,"/confirm_redo_modal.json"),{method:"post",body:{id:$e.categoryId,comment:lt,min_score:Re,max_score:Oe}});case 30:$t=jn.sent,$t.status===0&&(La($t),Wr(!1),Wa(!0));case 32:case"end":return jn.stop()}},sn)})),onCancel:function(){Wr(!1),lr()}},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(c.a.Group,{value:sa,onChange:function(cn){Ce(cn.target.value)}},n.a.createElement(c.a,{value:1},"\u6309\u6210\u7EE9\u6253\u56DE"),n.a.createElement(c.a,{value:2},"\u6309\u4F5C\u4E1A\u72B6\u6001\u6253\u56DE"))),sa===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(E.a,{min:0,max:100,value:Re,onChange:function(cn){return Ie(cn)},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(E.a,{min:0,max:100,value:Oe,onChange:function(cn){return se(cn)},style:{width:"100px"}})),sa===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(Z.a.Group,{onChange:function(cn){pa(Object(Xe.a)(cn))},style:{width:"100%"}},(mn=Ee.task_status)===null||mn===void 0?void 0:mn.map(function(sn,cn){return n.a.createElement(Z.a,{name:"task_status",value:sn.id},sn.name,"(",sn.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(Rt.a,{className:It.a.MdEditor,onChange:function(cn){return Ot(cn)},placeholder:"\u8BF7\u586B\u5199\u8BC4\u8BED"}))))),Oa&&n.a.createElement(v.a,{visible:Oa,title:"\u6253\u56DE\u786E\u8BA4",onOk:Object(B.a)(M.a.mark(function sn(){var cn,$t;return M.a.wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:if(!(sa===2)){jn.next=7;break}return jn.next=3,Object(V.a)("/api/homework_commons/".concat($e.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:$e.categoryId,comment:lt,status:ta}});case 3:cn=jn.sent,cn.status===0&&(w.b.info("\u6253\u56DE\u6210\u529F"),lr(),pr(),Wa(!1)),jn.next=11;break;case 7:return jn.next=9,Object(V.a)("/api/homework_commons/".concat($e.categoryId,"/batch_redo_modal.json"),{method:"post",body:{id:$e.categoryId,comment:lt,min_score:Re,max_score:Oe}});case 9:$t=jn.sent,$t.status===0&&(w.b.info("\u6253\u56DE\u6210\u529F"),lr(),pr(),Wa(!1));case 11:case"end":return jn.stop()}},sn)})),onCancel:function(){lr(),Wa(!1)}},n.a.createElement("div",{style:{padding:"32px"}},sa===1&&n.a.createElement("span",null,"\u786E\u8BA4\u5C06\u6210\u7EE9\u5728",Re,"-",Oe,"\u7684\u5B66\u751F\u8FDB\u884C\u6253\u56DE\u91CD\u505A\u5417\uFF1F"),sa===2&&n.a.createElement("span",null,"\u786E\u8BA4\u5C06\u4F5C\u4E1A\u72B6\u6001\u4E3A",((br=Ee.task_status)===null||br===void 0?void 0:br.filter(function(sn){return ta==null?void 0:ta.includes(sn.id)}).map(function(sn){return sn.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",Qa==null?void 0:Qa.count,"\u540D\u5B66\u751F"))))},tt=Object(d.a)(function(rn){var At=rn.shixunHomeworks,Yt=rn.user,bn=rn.loading;return{shixunHomeworks:At,loading:bn.effects,user:Yt}})(hn),Ke=F("m3rI"),Ct=F("9Bee"),Dt=function(At){var Yt=At.shixunHomeworks,bn=At.dispatch,tr=Object(p.i)();return n.a.createElement(v.a,{centered:!0,title:"\u63D0\u793A",visible:Yt.actionTabs.key==="\u5220\u9664",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:Object(B.a)(M.a.mark(function Wn(){var Jn;return M.a.wrap(function(zn){for(;;)switch(zn.prev=zn.next){case 0:return zn.next=2,bn({type:"shixunHomeworks/deleteReply",payload:{object_id:Yt.actionTabs.selectArr.id,object_type:"journals_for_message"}});case 2:Jn=zn.sent,Jn.status===0&&(w.b.success("\u5220\u9664\u6210\u529F"),bn({type:"shixunHomeworks/setActionTabs",payload:{}}),bn({type:"shixunHomeworks/getReplyList",payload:Object(D.a)({},Yt.actionTabs.params)}));case 4:case"end":return zn.stop()}},Wn)})),onCancel:function(){bn({type:"shixunHomeworks/setActionTabs",payload:{}})}},n.a.createElement("p",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"))},st=Object(d.a)(function(rn){var At=rn.shixunHomeworks;return{shixunHomeworks:At}})(Dt),xt=F("/MfK"),je=F("BtR2"),we=F("nqnY"),Te=F.n(we);ee.a.lang("ZH-cn");var ue=function(At){var Yt,bn,tr,Wn,Jn=At.shixunHomeworks,Sr=At.classroomList,zn=At.globalSetting,Gn=At.loading,Un=At.user,mn=At.dispatch,br=Object(g.useState)(Object(D.a)({},Object(p.i)())),_r=Object(m.a)(br,2),Cn=_r[0],or=_r[1],xr=Object(g.useState)(!1),Ur=Object(m.a)(xr,2),q=Ur[0],De=Ur[1],Ve=Object(g.useState)(-1),Be=Object(m.a)(Ve,2),$e=Be[0],qe=Be[1],ft=Object(g.useState)(""),Ee=Object(m.a)(ft,2),gt=Ee[0],yt=Ee[1],Lt=Object(g.useState)(""),bt=Object(m.a)(Lt,2),ut=bt[0],kt=bt[1],Mt=Jn.workList,Le=Sr.detailLeftMenus,mt=Jn.shixunHomeworksDetail,Pt=Jn.replyList,Jt=Jn.workDetail;return Cn.page_size=10,Object(g.useEffect)(function(){mn({type:"shixunHomeworks/getReplyList",payload:Object(D.a)({},Cn)}),mn({type:"shixunHomeworks/getWorkDetail",payload:Object(D.a)({},Cn)}),Le.course_modules||mn({type:"classroomList/getClassroomLeftMenus",payload:Object(D.a)({},Cn)})},[Cn.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(" ")},Jn.actionTabs.key!=="\u7F16\u8F91\u4F5C\u4E1A"&&n.a.createElement(Ct.a,{value:(Jt==null?void 0:Jt.description)||"\u6682\u65E0\uFF5E"}),"\u5206\u7EC4\u8981\u6C42\uFF1A",Jt==null||((Yt=Jt.group_info)===null||Yt===void 0)?void 0:Yt.min_num," ~ ",Jt==null||((bn=Jt.group_info)===null||bn===void 0)?void 0:bn.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",Jt!=null&&(tr=Jt.group_info)!==null&&tr!==void 0&&tr.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"),Jt==null||((Wn=Jt.attachments)===null||Wn===void 0)?void 0:Wn.map(function(Nt,Sn){return n.a.createElement("div",null,n.a.createElement("a",{href:"".concat(Ke.a.API_SERVER).concat(Nt.url)},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)))}),Jn.actionTabs.key==="\u7F16\u8F91\u4F5C\u4E1A"&&n.a.createElement("aside",{className:["bg-white"].join(" ")},n.a.createElement(Rt.a,{onChange:function(Sn){yt(Sn)},defaultValue:Jt==null?void 0:Jt.explanation,height:200,isFocus:!0,watch:!0}),n.a.createElement(L.a,null,n.a.createElement(ie.a,{span:24,className:"tr"},n.a.createElement(k.a,{type:"default",size:"large",onClick:Object(B.a)(M.a.mark(function Nt(){return M.a.wrap(function(gn){for(;;)switch(gn.prev=gn.next){case 0:mn({type:"shixunHomeworks/setActionTabs",payload:{key:""}});case 1:case"end":return gn.stop()}},Nt)}))},"\u53D6\u6D88"),n.a.createElement(k.a,{type:"primary",size:"large",className:"ml20",onClick:Object(B.a)(M.a.mark(function Nt(){var Sn;return M.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:if(!(gt==="")){un.next=4;break}w.b.error("\u8BF7\u8F93\u5165\u5185\u5BB9"),un.next=8;break;case 4:return un.next=6,mn({type:"shixunHomeworks/updateWork",payload:{explanation:gt,categoryId:Cn.categoryId}});case 6:Sn=un.sent,Sn.status===0&&(w.b.success("\u64CD\u4F5C\u6210\u529F"),mn({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),mn({type:"shixunHomeworks/getWorkDetail",payload:Object(D.a)({},Cn)}));case 8:case"end":return un.stop()}},Nt)}))},"\u4FDD\u5B58"))))),n.a.createElement("aside",{className:[Te.a.reply,"bg-white","mt20"].join(" ")},q&&n.a.createElement(Rt.a,{onChange:function(Sn){yt(Sn)},height:200,isFocus:!0,watch:!0}),n.a.createElement(L.a,{onClick:function(){De(!0)}},n.a.createElement(ie.a,{flex:"1"},!q&&n.a.createElement(H.a,{size:"large",className:"current",placeholder:"\u8BF4\u70B9\u4EC0\u4E48",disabled:!0})),n.a.createElement(ie.a,null,n.a.createElement(k.a,{type:"primary",size:"large",onClick:Object(B.a)(M.a.mark(function Nt(){var Sn;return M.a.wrap(function(un){for(;;)switch(un.prev=un.next){case 0:if(!(gt==="")){un.next=4;break}w.b.error("\u8BF7\u8F93\u5165\u5185\u5BB9"),un.next=8;break;case 4:return un.next=6,mn({type:"shixunHomeworks/createReply",payload:{journals_for_message:{jour_id:Cn.categoryId,jour_type:"HomeworkCommon",reply_id:1,notes:gt}}});case 6:Sn=un.sent,Sn.status===0&&(w.b.success("\u53D1\u5E03\u6210\u529F"),mn({type:"shixunHomeworks/getReplyList",payload:Object(D.a)({},Cn)}),De(!1),yt(""));case 8:case"end":return un.stop()}},Nt)}))},"\u53D1\u8868")))),(Pt==null?void 0:Pt.comments)&&Pt.comments!=""&&n.a.createElement("aside",{className:[Te.a.replyList,"bg-white"].join(" ")},Pt==null?void 0:Pt.comments.map(function(Nt,Sn){var gn,un,Mn,Rn;return n.a.createElement(L.a,{gutter:[12,12],key:Sn},n.a.createElement(ie.a,{flex:"40px"},n.a.createElement("img",{className:Te.a.headpic,width:"40",src:"".concat(Ke.a.IMG_SERVER,"/images/").concat(Nt==null||((gn=Nt.author)===null||gn===void 0)?void 0:gn.image_url)})),n.a.createElement(ie.a,{flex:"1"},n.a.createElement(L.a,{align:"middle"},n.a.createElement(ie.a,{span:20},n.a.createElement("span",{className:"c-light-black"},Nt==null||((un=Nt.author)===null||un===void 0)?void 0:un.name),n.a.createElement("span",{className:"c-light-black ml10"},Nt==null?void 0:Nt.time," \u53D1\u5E03")),n.a.createElement(ie.a,{className:"tr",span:4},n.a.createElement("div",{className:"tr"},(Object(S.c)()||(Un==null||((Mn=Un.userInfo)===null||Mn===void 0)?void 0:Mn.login)===(Nt==null||((Rn=Nt.author)===null||Rn===void 0)?void 0:Rn.login))&&n.a.createElement(ke.a,{title:"\u5220\u9664"},n.a.createElement(xt.a,{className:"current",onClick:function(){mn({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5220\u9664",params:Cn,selectArr:Nt}})}})))),n.a.createElement(ie.a,{span:24},n.a.createElement(Ct.a,{value:Nt.content})),Nt.children&&n.a.createElement("aside",{className:Te.a.comment},Nt.children.map(function(vt,Xt){var Tt,Tn;return n.a.createElement(L.a,{key:Xt},n.a.createElement(ie.a,{span:24},n.a.createElement(L.a,null,n.a.createElement(ie.a,{flex:"1"},vt.author.name,n.a.createElement("span",{className:"c-light-black ml10"},vt==null?void 0:vt.time)),n.a.createElement(ie.a,null,(Object(S.c)()||(Un==null||((Tt=Un.userInfo)===null||Tt===void 0)?void 0:Tt.login)===(vt==null||((Tn=vt.author)===null||Tn===void 0)?void 0:Tn.login))&&n.a.createElement(ke.a,{title:"\u5220\u9664"},n.a.createElement(xt.a,{className:"current",onClick:function(){mn({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5220\u9664",params:Cn,selectArr:vt}})}}))))),n.a.createElement(ie.a,null,n.a.createElement(Ct.a,{value:vt.content})))})),n.a.createElement(ie.a,{span:24,className:"mt5 c-light-black"},$e===Sn&&n.a.createElement("aside",null,n.a.createElement(Rt.a,{onChange:function(Xt){kt(Xt)},height:150,isFocus:!0}),n.a.createElement(L.a,null,n.a.createElement(ie.a,{span:24,className:"tr"},n.a.createElement(k.a,{type:"primary",size:"large",onClick:Object(B.a)(M.a.mark(function vt(){return M.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:if(!(ut==="")){Tt.next=4;break}w.b.error("\u8BF7\u8F93\u5165\u5185\u5BB9"),Tt.next=9;break;case 4:return Tt.next=6,mn({type:"shixunHomeworks/createReply",payload:{journals_for_message:{jour_id:Cn.categoryId,jour_type:"HomeworkCommon",m_parent_id:Nt.id,reply_id:1,notes:ut}}});case 6:mn({type:"shixunHomeworks/getReplyList",payload:Object(D.a)({},Cn)}),w.b.success("\u53D1\u5E03\u6210\u529F"),qe(-1);case 9:case"end":return Tt.stop()}},vt)}))},"\u53D1\u8868")))),$e!==Sn&&n.a.createElement("div",{className:"tr"},n.a.createElement("span",{className:"iconfont icon-huifu1 mr5 ml30",onClick:function(){return qe(Sn)}}),!!Nt.user_praise&&n.a.createElement("span",{className:"c-orange"},n.a.createElement(je.a,{className:"mr5 ml30",onClick:Object(B.a)(M.a.mark(function vt(){return M.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,mn({type:"shixunHomeworks/replyUnLike",payload:{object_id:Nt.id,object_type:"journals_for_message"}});case 2:mn({type:"shixunHomeworks/getReplyList",payload:Object(D.a)({},Cn)});case 3:case"end":return Tt.stop()}},vt)}))}),!!Nt.praise_count&&Nt.praise_count),!Nt.user_praise&&n.a.createElement("span",null,n.a.createElement(je.a,{className:"mr5 ml30",onClick:Object(B.a)(M.a.mark(function vt(){return M.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Tt.next=2,mn({type:"shixunHomeworks/replyLike",payload:{object_id:Nt.id,object_type:"journals_for_message"}});case 2:mn({type:"shixunHomeworks/getReplyList",payload:Object(D.a)({},Cn)});case 3:case"end":return Tt.stop()}},vt)}))}),!!Nt.praise_count&&Nt.praise_count))))))}))),n.a.createElement("aside",{className:"tc mt30 pb30"},n.a.createElement(i.a,{defaultCurrent:1,total:Pt==null?void 0:Pt.total_count,hideOnSinglePage:!0,current:Cn.page||1,onChange:function(Sn){Cn.page=Sn,mn({type:"shixunHomeworks/getReplyList",payload:Object(D.a)({},Cn)})}})),n.a.createElement(st,null))},pe=Object(d.a)(function(rn){var At=rn.shixunHomeworks,Yt=rn.classroomList,bn=rn.user,tr=rn.loading,Wn=rn.globalSetting;return{shixunHomeworks:At,globalSetting:Wn,user:bn,classroomList:Yt,loading:tr.effects}})(ue);ee.a.lang("ZH-cn");var me=function(At){var Yt,bn=At.shixunHomeworks,tr=At.classroomList,Wn=At.globalSetting,Jn=At.loading,Sr=At.dispatch,zn=Object(p.i)(),Gn=tr.detailLeftMenus,Un=bn.replyList,mn=bn.referenceAnswer;return zn.page_size=10,Object(g.useEffect)(function(){Sr({type:"shixunHomeworks/getReplyList",payload:Object(D.a)({},zn)}),Sr({type:"shixunHomeworks/getReferenceAnswer",payload:{coursesId:zn.categoryId}}),Gn.course_modules||Sr({type:"classroomList/getClassroomLeftMenus",payload:Object(D.a)({},zn)})},[zn.categoryId]),n.a.createElement("section",{className:"pb30 pl30 pr30 pt30 bg-white"},n.a.createElement("aside",{className:["c-black","font14"].join(" ")},bn.actionTabs.key!=="\u7F16\u8F91\u4F5C\u4E1A"&&n.a.createElement("div",null,(mn==null?void 0:mn.reference_answer)&&n.a.createElement(Ct.a,{value:mn==null?void 0:mn.reference_answer}),!(mn!=null&&mn.reference_answer)&&n.a.createElement(Q.a,null)),mn==null||((Yt=mn.attachments)===null||Yt===void 0)?void 0:Yt.map(function(br,_r){return n.a.createElement("div",null,n.a.createElement("a",{href:"".concat(Ke.a.API_SERVER).concat(br.url)},n.a.createElement("span",{className:"iconfont icon-fujian c-green font14"}),n.a.createElement("span",{className:"ml10 c-black"},br.title),n.a.createElement("span",{className:"c-light-black ml20 font12"},br.filesize)))})))},xe=Object(d.a)(function(rn){var At=rn.shixunHomeworks,Yt=rn.classroomList,bn=rn.loading,tr=rn.globalSetting;return{shixunHomeworks:At,globalSetting:tr,classroomList:Yt,loading:bn.effects}})(me),nt=F("iQDF"),We=F("+eQT"),St=F("PpiC"),en=F("oUNq"),vn=F("4wi7");function Zt(rn,At){for(var Yt=[],bn=rn;bn0)){dr.next=7;break}return w.b.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),dr.abrupt("return");case 7:return sr={homework_ids:Object(Xe.a)(Yt.actionTabs.selectArrs),group_ids:gn.map(function(Mr){return Mr.id}),end_time:ee()(yn.end_time).format("YYYY-MM-DD HH:mm"),publish_time:ee()(yn.publish_time).format("YYYY-MM-DD HH:mm"),unified_setting:vt},dr.next=10,Object(V.a)("/api/courses/".concat(Wn.coursesId,"/homework_commons/publish_with_homework_list_position.json"),{method:"post",body:Object(D.a)({},sr)});case 10:Fn=dr.sent,Fn.status===0&&(Object(h.Y)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u53D1\u5E03"]),w.b.success("\u53D1\u5E03\u6210\u529F"),bn({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),tr.type==="edit"&&(tr.onCallback&&tr.onCallback()),Object(S.c)()?Yt.actionTabs.detail?(bn({type:"shixunHomeworks/setActionTabs",payload:{}}),bn({type:"shixunHomeworks/getWorkList",payload:Object(D.a)({},Wn)}),bn({type:"shixunHomeworks/getWorkSetting",payload:Object(D.a)({},Wn)})):bn({type:"classroomList/getClassroomTeacherCommonList",payload:Object(D.a)(Object(D.a)({},Yt.actionTabs.params),{},{type:3})}):bn({type:"classroomList/getClassroomCommonList",payload:Object(D.a)({},Yt.actionTabs.params)}),localStorage.getItem("Noviceguide")==="0"||bn({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 dr.stop()}},Ln)}));return function(){return Yn.apply(this,arguments)}}(),En=function(){br(1),xr([]),un([])},wn=De>mn*qe;return n.a.createElement(v.a,{width:600,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",visible:Yt.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:zt,onCancel:function(){En(),bn({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'),or&&n.a.createElement(fe.a,{form:zn},n.a.createElement("div",{style:{paddingLeft:0}},n.a.createElement(L.a,{className:"mt30",align:"middle"},n.a.createElement(ie.a,null,n.a.createElement(fe.a.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},n.a.createElement(We.a,{style:{width:155,marginRight:"25px"},getPopupContainer:function(Ln){return Ln.parentNode},disabledDate:function(Ln){return Ln&&Ln<=ee()().subtract(0,"days")},disabledTime:Vt,placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ee()(Object(h.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),n.a.createElement(ie.a,{className:"ml20"},n.a.createElement(fe.a.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},n.a.createElement(We.a,{style:{width:170},getPopupContainer:function(Ln){return Ln.parentNode},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ee()(Object(h.d)(),"HH:mm")},disabledDate:function(Ln){return Ln&&Ln0&&n.a.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},n.a.createElement("span",{style:{flex:1}},n.a.createElement(Z.a,{checked:gn.length===or.length,onChange:function(Ln){gn.length===or.length?un([]):un(or.filter(function(yn){return!yn.is_published}))}},"\u5168\u9009")," "),n.a.createElement("span",{style:{width:16}}),n.a.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",gn.length||0,"\u4E2A\u5206\u73ED")),(Yt.actionTabs.type===1||!vt)&&or.length>0&&n.a.createElement(vn.a,{data:or,selectedRowKeys:gn,setSelectedRowKeys:un})))},_t=Object(d.a)(function(rn){var At=rn.classroomList;return{classroomList:At}})(Et),ct=F("qbod"),ge=F.n(ct),Me=function(At){var Yt=At.classroomList,bn=At.dispatch,tr=At.cb,Wn=Object(St.a)(At,["classroomList","dispatch","cb"]),Jn=Object(p.i)(),Sr=Object(g.useState)(null),zn=Object(m.a)(Sr,2),Gn=zn[0],Un=zn[1],mn=Object(g.useState)([1,2,3,4,5]),br=Object(m.a)(mn,2),_r=br[0],Cn=br[1],or=Object(g.useState)(!1),xr=Object(m.a)(or,2),Ur=xr[0],q=xr[1];Object(g.useEffect)(function(){Yt.actionTabs.key==="\u667A\u80FD\u5206\u7EC4"},[Yt.actionTabs]);var De=function(){var Be=Object(B.a)(M.a.mark(function $e(){var qe;return M.a.wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:if(Gn){Ee.next=3;break}return w.b.warn("\u6BCF\u4E2A\u5C0F\u7EC4\u5B66\u751F\u4EBA\u6570\u4E0D\u80FD\u4E3A\u7A7A"),Ee.abrupt("return");case 3:return Ee.next=5,Object(V.a)("/api/is_checkout_data.json",{method:"get",params:{id:Jn==null?void 0:Jn.categoryId,group_num:Gn}});case 5:qe=Ee.sent,(qe==null?void 0:qe.status)===0&&(bn({type:"classroomList/setActionTabs",payload:{}}),tr());case 7:case"end":return Ee.stop()}},$e)}));return function(){return Be.apply(this,arguments)}}(),Ve=[{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(v.a,{width:500,centered:!0,afterClose:function(){q(!1),Un(null),Cn([1,2,3,4,5])},title:"\u667A\u80FD\u5206\u7EC4",visible:Yt.actionTabs.key==="\u667A\u80FD\u5206\u7EC4",footer:null,onCancel:function(){bn({type:"classroomList/setActionTabs",payload:{}})}},n.a.createElement("div",{className:ge.a.model},n.a.createElement("div",null,"\u6BCF\u4E2A\u5C0F\u7EC4\u5B66\u751F\u4EBA\u6570\uFF1A",n.a.createElement(E.a,{min:1,max:100,value:Gn,onChange:function($e){Un($e)}})),n.a.createElement("div",{className:"mt20 mb10"},"\u5206\u7EC4\u89C4\u5219\uFF1A"),n.a.createElement(Z.a.Group,{value:_r,onChange:function($e){Cn($e)}},Ve==null?void 0:Ve.map(function(Be,$e){return n.a.createElement(Z.a,{value:Be.id}," ",Be.name," ")})),n.a.createElement("div",{className:"tr mb10 mt20"},n.a.createElement(k.a,{onClick:De,type:"primary"},"\u5F00\u59CB\u667A\u80FD\u5206\u7EC4"))))},wt=Object(d.a)(function(rn){var At=rn.classroomList;return{classroomList:At}})(Me),ht=function(At){var Yt=At.classroomList,bn=At.dispatch,tr=Object(St.a)(At,["classroomList","dispatch"]),Wn=Object(p.i)(),Jn=fe.a.useForm(),Sr=Object(m.a)(Jn,1),zn=Sr[0],Gn=Object(g.useState)(1),Un=Object(m.a)(Gn,2),mn=Un[0],br=Un[1],_r=Object(g.useState)([]),Cn=Object(m.a)(_r,2),or=Cn[0],xr=Cn[1],Ur=Object(g.useState)(0),q=Object(m.a)(Ur,2),De=q[0],Ve=q[1],Be=Object(g.useState)(20),$e=Object(m.a)(Be,2),qe=$e[0],ft=$e[1],Ee=Object(g.useState)(!0),gt=Object(m.a)(Ee,2),yt=gt[0],Lt=gt[1],bt=Object(g.useState)(),ut=Object(m.a)(bt,2),kt=ut[0],Mt=ut[1],Le=Object(g.useState)([]),mt=Object(m.a)(Le,2),Pt=mt[0],Jt=mt[1];Wn.id=Wn.coursesId,Object(g.useEffect)(function(){Yt.actionTabs.key==="\u7ACB\u5373\u622A\u6B62"?Nt():(Jt([]),xr([]))},[Yt.actionTabs.key]);var Nt=function(){var un=Object(B.a)(M.a.mark(function Mn(Rn){var vt,Xt,Tt;return M.a.wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:return Lt(!0),zt.next=3,Object(en.A)(Object(D.a)(Object(D.a)({},Wn),{},{page:Rn||mn,limit:qe,homework_id:Yt.actionTabs.type===1?"":Yt.actionTabs.selectArrs[0],end_homework_action:!0}));case 3:vt=zt.sent,vt==null||vt.course_groups.map(function(En){En.key=En.id}),vt&&(xr([].concat(Object(Xe.a)(or),Object(Xe.a)(vt==null?void 0:vt.course_groups))),Ve(vt==null?void 0:vt.group_count),Mt(vt==null?void 0:vt.course_groups),Lt(!1),Rn||zn.setFieldsValue((Tt={},Object(Ze.a)(Tt,"group_ids",vt==null||((Xt=vt.course_groups)===null||Xt===void 0)?void 0:Xt.map(function(En){return String(En.id)})),Object(Ze.a)(Tt,"end_time",ee()(ee()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm"))),Tt)));case 6:case"end":return zt.stop()}},Mn)}));return function(Rn){return un.apply(this,arguments)}}(),Sn=function(){var un=Object(B.a)(M.a.mark(function Mn(){var Rn,vt;return M.a.wrap(function(Tt){for(;;)switch(Tt.prev=Tt.next){case 0:return Rn=Object(D.a)({},zn.getFieldsValue()),console.log("----",Rn.group_ids),Tt.next=4,Object(V.a)("/api/courses/".concat(Wn.id,"/homework_commons/end_with_homework_list_position.json"),{method:"post",body:{homework_ids:Object(Xe.a)(Yt.actionTabs.selectArrs),group_ids:(Pt==null?void 0:Pt.length)>0?Pt:[],unified_setting:!(or!=null&&or.length),end_time:ee()(Rn.end_time).format("YYYY-MM-DD HH:mm")}});case 4:vt=Tt.sent,vt.status===0&&(gn(),Object(h.Y)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u622A\u6B62"]),w.b.success("\u64CD\u4F5C\u6210\u529F"),bn({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),tr.type==="edit"&&(tr.onCallback&&tr.onCallback()),Object(S.c)()?(bn({type:"classroomList/setActionTabs",payload:{}}),bn({type:"classroomList/getClassroomTeacherCommonList",payload:Object(D.a)(Object(D.a)({},Yt.actionTabs.params),{},{type:3})})):bn({type:"classroomList/getClassroomCommonList",payload:Object(D.a)({},Yt.actionTabs.params)}));case 6:case"end":return Tt.stop()}},Mn)}));return function(){return un.apply(this,arguments)}}(),gn=function(){br(1),xr([])};return n.a.createElement(v.a,{centered:!0,title:"\u622A\u6B62\u4F5C\u4E1A",visible:Yt.actionTabs.key==="\u7ACB\u5373\u622A\u6B62",okText:"\u622A\u6B62\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u622A\u6B62",onOk:Sn,onCancel:function(){gn(),bn({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'),or&&n.a.createElement(fe.a,{form:zn},n.a.createElement(L.a,null,n.a.createElement("span",{className:"mr5"},"\u622A\u6B62\u65F6\u95F4:"),n.a.createElement(fe.a.Item,{name:"end_time"},n.a.createElement(We.a,{style:{width:170},getPopupContainer:function(Mn){return Mn.parentNode},disabledDate:function(Mn){return Mn&&Mn0&&n.a.createElement(L.a,null,n.a.createElement("span",{className:"mr5"},"\u9009\u62E9\u73ED\u7EA7:"),n.a.createElement(H.a.Search,{style:{width:"300px"},onChange:function(Mn){xr(kt.filter(function(Rn){return Rn.name.indexOf(Mn.target.value)>-1}))}})),(or==null?void 0:or.length)>0&&Yt.actionTabs.type===1&&n.a.createElement(_.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Mn,Rn){Jt(Mn)}},rowKey:"id",pagination:!1,dataSource:or,columns:[{title:"\u73ED\u7EA7",dataIndex:"name",key:"name"}]}),(or==null?void 0:or.length)>0&&Yt.actionTabs.type===2&&n.a.createElement(_.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Mn,Rn){Jt(Mn)}},rowKey:"id",pagination:!1,dataSource:or,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"}]})))},qt=Object(d.a)(function(rn){var At=rn.classroomList;return{classroomList:At}})(ht),on=F("Q9mQ"),ot=F("diRs"),Wt=F("OaEy"),dn=F("2fM7"),Bn=F("w5pM"),kn=F("Lyp1"),Cr=F("LvDl"),Ar=F("8B0h"),fr=F.n(Ar),On=F("CiB2"),Fr=function(At){var Yt,bn;Object(On.a)(At);var tr=Object(g.useState)(!0),Wn=Object(m.a)(tr,2),Jn=Wn[0],Sr=Wn[1],zn=Object(g.useState)(!1),Gn=Object(m.a)(zn,2),Un=Gn[0],mn=Gn[1],br=Object(g.useState)([]),_r=Object(m.a)(br,2),Cn=_r[0],or=_r[1],xr=Object(g.useState)([]),Ur=Object(m.a)(xr,2),q=Ur[0],De=Ur[1],Ve=Object(g.useState)([]),Be=Object(m.a)(Ve,2),$e=Be[0],qe=Be[1],ft=Object(g.useState)([]),Ee=Object(m.a)(ft,2),gt=Ee[0],yt=Ee[1],Lt=Object(p.i)();function bt(){return ut.apply(this,arguments)}function ut(){return ut=Object(B.a)(M.a.mark(function mt(){var Pt;return M.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return Nt.next=2,Object(V.a)("/api/homework_commons/".concat(Lt.categoryId,"/homework_common_collaborators.json"),{method:"get"});case 2:Pt=Nt.sent,De(Pt);case 4:case"end":return Nt.stop()}},mt)})),ut.apply(this,arguments)}function kt(){return Mt.apply(this,arguments)}function Mt(){return Mt=Object(B.a)(M.a.mark(function mt(){var Pt;return M.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return Nt.next=2,Object(V.a)("/api/courses/".concat(Lt==null?void 0:Lt.coursesId,"/teachers"),{method:"get",params:{homework_id:Lt.categoryId}});case 2:Pt=Nt.sent,Pt==null||Pt.teacher_list.map(function(Sn){Sn.key=Sn.user_id}),qe(Pt==null?void 0:Pt.teacher_list),yt(Pt==null?void 0:Pt.teacher_list);case 6:case"end":return Nt.stop()}},mt)})),Mt.apply(this,arguments)}Object(g.useEffect)(function(){bt(),kt()},[Lt]);var Le=function(){};return n.a.createElement("section",{className:[fr.a.form," bg-white pl30 pr30 pt10"].join(" ")},n.a.createElement(L.a,null,n.a.createElement(ie.a,{flex:"1"},n.a.createElement("span",{style:{fontSize:"16px"}},"\u534F\u4F5C\u8BBE\u7F6E"),(q==null?void 0:q.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(L.a,{style:{marginTop:"20px",marginBottom:"20px"}},(q==null||((Yt=q.data)===null||Yt===void 0)?void 0:Yt.length)<=0&&n.a.createElement(Q.a,{customText:"\u8BE5\u4F5C\u4E1A\u6682\u65E0\u534F\u4F5C\u8005"}),q==null||((bn=q.data)===null||bn===void 0)?void 0:bn.map(function(mt){return n.a.createElement("span",{key:mt.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"}},mt==null?void 0:mt.real_name),(q==null?void 0:q.can_edit)&&n.a.createElement("span",{style:{cursor:"pointer",marginLeft:"10px"},onClick:Object(B.a)(M.a.mark(function Pt(){var Jt;return M.a.wrap(function(Sn){for(;;)switch(Sn.prev=Sn.next){case 0:return Sn.next=2,Object(V.a)("/api/homework_commons/".concat(Lt.categoryId,"/homework_common_collaborators/delete.json"),{method:"delete",body:{user_id:mt.id}});case 2:Jt=Sn.sent,Jt.status===0&&(w.b.info("\u5220\u9664\u6210\u529F"),bt(),kt());case 4:case"end":return Sn.stop()}},Pt)}))},"X"))})),n.a.createElement(L.a,null,!Jn&&n.a.createElement(ie.a,{className:"mb50"},n.a.createElement(k.a,{type:"primary",size:"large",onClick:function(){return Le()}},"\u63D0\u4EA4"),n.a.createElement(k.a,{type:"primary",size:"large",ghost:!0,className:"ml20",onClick:function(){Sr(!0)}},"\u53D6\u6D88"))),n.a.createElement(v.a,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",visible:Un,onCancel:function(){return mn(!1)},onOk:Object(B.a)(M.a.mark(function mt(){var Pt;return M.a.wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:if(!(Cn.length===0)){Nt.next=3;break}return w.b.info("\u8BF7\u9009\u62E9\u534F\u4F5C\u8001\u5E08"),Nt.abrupt("return");case 3:return Nt.next=5,Object(V.a)("/api/homework_commons/".concat(Lt.categoryId,"/homework_common_collaborators.json"),{method:"post",body:{user_ids:Cn}});case 5:Pt=Nt.sent,Pt.status===0&&(w.b.info("\u6DFB\u52A0\u6210\u529F"),or([]),bt(),kt(),mn(!1));case 7:case"end":return Nt.stop()}},mt)}))},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(Pt){qe(gt.filter(function(Jt){return Jt.name.indexOf(Pt.target.value)>-1}))}})),n.a.createElement(_.a,{style:{marginTop:"10px",height:"300px",overflow:"auto"},rowSelection:{type:"checkbox",onChange:function(Pt,Jt){or(Pt)},selectedRowKeys:Cn,getCheckboxProps:function(Pt){return{disabled:Pt.is_collaborator}}},pagination:!1,dataSource:$e,columns:[{title:"\u59D3\u540D",dataIndex:"name",key:"name"},{title:"\u89D2\u8272",dataIndex:"role",key:"role"}]}))))},na=Object(d.a)(function(rn){var At=rn.shixunHomeworks,Yt=rn.loading;return{shixunHomeworks:At,loading:Yt.effects}})(Fr),Pr=We.a.RangePicker,hr=dn.a.Option,Br=function(At){var Yt,bn,tr,Wn=At.shixunHomeworks,Jn=At.loading,Sr=At.dispatch,zn=Object(p.i)(),Gn=Object(p.h)(),Un=Wn.workSetting,mn=Wn.workList,br=Object(g.useState)(!0),_r=Object(m.a)(br,2),Cn=_r[0],or=_r[1],xr=Object(g.useState)({}),Ur=Object(m.a)(xr,2),q=Ur[0],De=Ur[1],Ve=fe.a.useForm(),Be=Object(m.a)(Ve,1),$e=Be[0],qe=Object(g.useState)([]),ft=Object(m.a)(qe,2),Ee=ft[0],gt=ft[1],yt=Object(g.useState)([]),Lt=Object(m.a)(yt,2),bt=Lt[0],ut=Lt[1],kt=Object(g.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:""}),Mt=Object(m.a)(kt,2),Le=Mt[0],mt=Mt[1],Pt=(mn==null||((Yt=mn.homework_status)===null||Yt===void 0)?void 0:Yt.includes("\u533F\u8BC4\u4E2D"))||(mn==null||((bn=mn.homework_status)===null||bn===void 0)?void 0:bn.includes("\u7533\u8BC9\u4E2D"))||(mn==null||((tr=mn.homework_status)===null||tr===void 0)?void 0:tr.includes("\u5DF2\u622A\u6B62"));Object(g.useEffect)(function(){Jt()},[]),Object(g.useEffect)(function(){if(!(Un!=null&&Un.course_id))return;Object.keys(Le).map(function(vt){vt.indexOf("proportion")>-1&&(Un[vt]=Un[vt]*100),Le[vt]=Un[vt]}),(!Le.allow_late||!Le.unified_late)&&(Le.late_penalty=5),Ee=JSON.parse(JSON.stringify(Un.group_settings.map(function(vt){return Object(D.a)(Object(D.a)({},vt),{},{group_name:[vt.group_name]})}).filter(function(vt){return vt.publish_time!==null}))),bt=JSON.parse(JSON.stringify(Un.allow_late_settings.map(function(vt){return Object(D.a)(Object(D.a)({},vt),{},{group_name:[vt.group_name]})}).filter(function(vt){return vt.late_time!==null}))),mt(Object(D.a)({},Le)),gt(Object(Xe.a)(Ee)),ut(Object(Xe.a)(bt))},[Un]);var Jt=function(){Sr({type:"shixunHomeworks/getWorkSetting",payload:Object(D.a)({},zn)})},Nt=function(){var Xt,Tt=JSON.parse(JSON.stringify(Le));if(Tt.categoryId=zn.categoryId,Le.unified_setting||(Ee=(Xt=Ee)===null||Xt===void 0?void 0:Xt.map(function(zt){var En,wn;if(!zt.publish_time||!zt.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(!zt.group_name)throw w.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,console.log("item:0",zt,Un.group_settings,Ee),zt.group_id=zt==null||((En=zt.group_name)===null||En===void 0||((wn=En.map(function(Yn){var Ln,yn,sr=(Ln=Un.group_settings)===null||Ln===void 0||((yn=Ln.filter(function(Fn){return(Fn==null?void 0:Fn.group_name)===Yn}))===null||yn===void 0)?void 0:yn[0];return console.log("d:",sr,Yn),sr==null?void 0:sr.group_id}))===null||wn===void 0))?void 0:wn.toString().split(","),zt})),Tt.group_settings=Ee,Le.allow_late)if(Le.unified_late){if(Le.late_penalty===null||Le.late_penalty===void 0||Le.late_penalty<0||Le.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(!Le.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 Tn;bt=(Tn=bt)===null||Tn===void 0?void 0:Tn.map(function(zt){var En,wn;if(zt.late_penalty===null||zt.late_penalty===void 0||zt.late_penalty<0||zt.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(!zt.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(!zt.group_name)throw w.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||((En=zt.group_name)===null||En===void 0||((wn=En.map(function(Yn){var Ln,yn,sr=(Ln=Un.group_settings)===null||Ln===void 0||((yn=Ln.filter(function(Fn){return(Fn==null?void 0:Fn.group_name)===Yn}))===null||yn===void 0)?void 0:yn[0];return sr==null?void 0:sr.group_id}))===null||wn===void 0))?void 0:wn.toString().split(","),zt}),Tt.allow_late_settings=bt}if(Le.evaluation_start){if(Le.end_time&&ee()(Le.evaluation_start)<=ee()(Le.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(Le.late_time&&ee()(Le.evaluation_start)<=ee()(Le.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(Tt).map(function(zt){zt.indexOf("proportion")>-1&&(Tt[zt]=Tt[zt]/100)}),Sr({type:"shixunHomeworks/updateSetting",payload:Tt}).then(function(zt){zt.status===0&&(w.b.success("\u66F4\u65B0\u6210\u529F"),or(!0),Jt())})},Sn=function(Xt){return Xt&&Xt0?n.a.createElement(ie.a,{span:24,className:"mt10"},n.a.createElement(Z.a,{checked:Le.unified_setting,disabled:Cn||!(mn!=null&&(Tt=mn.homework_status)!==null&&Tt!==void 0&&Tt.includes("\u672A\u53D1\u5E03")),onChange:function(){var wn;if(!(mn!=null&&(wn=mn.homework_status)!==null&&wn!==void 0&&wn.includes("\u672A\u53D1\u5E03"))){w.b.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(Le.unified_setting=!Le.unified_setting,Le.unified_setting||(Le.unified_late=!1),mt(Object.assign({},Le)),Ee==""){gt([{}]);return}Le.unified_setting&&(gt([]),ut([{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),Le.unified_setting&&n.a.createElement("div",null,n.a.createElement(L.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ie.a,null,"\u53D1\u5E03\u65F6\u95F4:"),n.a.createElement(ie.a,{className:"ml5"},n.a.createElement(ke.a,{title:!(mn!=null&&(Tn=mn.homework_status)!==null&&Tn!==void 0&&Tn.includes("\u672A\u53D1\u5E03"))&&"\u53D1\u5E03\u65F6\u95F4\u5DF2\u8FC7\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539"},n.a.createElement(We.a,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ee()(Object(h.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1,disabled:Cn||ee()()>ee()(Un.publish_time),value:Le.publish_time?ee()(Le.publish_time):"",disabledDate:Sn,onChange:function(wn,Yn){Le.publish_time=Yn,!Le.end_time&&Le.unified_setting&&(Le.end_time=ee()(wn).add(1,"month").format("YYYY-MM-DD HH:mm:ss")),mt(Object.assign({},Le))}}))),n.a.createElement(ie.a,null,n.a.createElement("span",{className:"c-grey-c ml10"},"(\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u7684\u65F6\u95F4)"))),n.a.createElement(L.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ie.a,null,"\u622A\u6B62\u65F6\u95F4:"),n.a.createElement(ie.a,{className:"ml5"},n.a.createElement(We.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ee()(Object(h.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Cn,disabledDate:Sn,value:Le.end_time?ee()(Le.end_time):"",onChange:function(wn,Yn){Le.end_time=Yn,mt(Object.assign({},Le))}})),n.a.createElement(ie.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)")))),!Le.unified_setting&&n.a.createElement(L.a,{style:{marginTop:30,paddingTop:40,marginLeft:40,borderTop:"1px solid #eee"}},n.a.createElement(ie.a,{span:24},n.a.createElement(L.a,null,n.a.createElement(ie.a,{span:10}),n.a.createElement(ie.a,{span:1}),n.a.createElement(ie.a,{span:9},n.a.createElement(L.a,{className:"c-grey-c "},n.a.createElement(ie.a,{flex:"1"},"(\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4)"),n.a.createElement(ie.a,{flex:"1"},"(\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9)"))),n.a.createElement(ie.a,{span:4}))),Ee&&Ee.map(function(En,wn){var Yn,Ln;return n.a.createElement(ie.a,{span:24,key:wn},n.a.createElement(L.a,null,n.a.createElement(ie.a,{span:10},n.a.createElement(L.a,{gutter:[8,16]},n.a.createElement(ie.a,null,"\u53D1\u5E03\u89C4\u5219 ",wn+1),n.a.createElement(ie.a,{flex:"auto",style:{maxWidth:350}},n.a.createElement(dn.a,{disabled:Cn||!(mn!=null&&(Yn=mn.homework_status)!==null&&Yn!==void 0&&Yn.includes("\u672A\u53D1\u5E03"))&&En.id,className:"ml20",mode:"multiple",style:{width:"100%"},value:En.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:function(sr){Ee[wn].group_name=sr,Ee[wn].group_id=En.group_id;var Fn=Object(Cr.flattenDeep)(Ee.map(function(dr){return dr.group_name})),Ir=bt.map(function(dr){var Mr=(dr==null?void 0:dr.group_name)||[];return Object(D.a)(Object(D.a)({},dr),{},{group_name:Object(Cr.remove)(Mr,function(Hn){return Fn.includes(Hn)})})});ut(Ir),gt(Ee.slice())}},Un.group_settings&&Un.group_settings.map(function(yn){if(!Ee.map(function(sr){return sr.group_name}).toString().split(",").includes(String(yn.group_name)))return n.a.createElement(hr,{value:yn.group_name,key:yn.id},yn.group_name)}))))),n.a.createElement(ie.a,{span:1}),n.a.createElement(ie.a,{span:9},n.a.createElement(Pr,{allowClear:!1,disabled:Cn||!(mn!=null&&(Ln=mn.homework_status)!==null&&Ln!==void 0&&Ln.includes("\u672A\u53D1\u5E03"))&&En.id&&[!0,!1],style:{width:400},placeholder:["\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4","\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4"],disabledDate:Sn,showTime:{format:"HH:mm",defaultValue:[ee()(Object(h.d)(),"HH:mm"),ee()(Object(h.d)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:En.publish_time&&[ee()(En.publish_time),ee()(En.end_time)],onChange:function(sr,Fn){Ee[wn].publish_time=Fn[0],Ee[wn].end_time=Fn[1],gt(Object(Xe.a)(Ee))}})),!Cn&&n.a.createElement(ie.a,{span:4},wn>0&&!En.id&&n.a.createElement(xt.a,{onClick:function(){Ee=Ee.filter(function(sr,Fn){return wn!==Fn}),gt(Ee.slice()),setTimeout(function(){return gt(Ee.slice())},10)}}),n.a.createElement(Bn.a,{className:"c-green ml20",onClick:function(){gt(Ee.concat({}))}}))))})),n.a.createElement(L.a,null,n.a.createElement(ie.a,null,n.a.createElement("strong",null,"\u8865\u4EA4\u8BBE\u7F6E")),n.a.createElement(ie.a,{span:24,className:"mt15 pl30"},n.a.createElement(Z.a,{checked:Le.allow_late,disabled:Cn,onChange:function(){Le.allow_late=!Le.allow_late,bt==""&&ut([{late_penalty:5}]),mt(Object.assign({},Le))}},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)"))),(Le==null?void 0:Le.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(c.a.Group,{disabled:Cn,value:Le.unified_late,onChange:function(wn){Le.unified_late=wn.target.value,bt==""&&!wn.target.value&&ut([{late_penalty:5}]),mt(Object(D.a)({},Le))}},(Le==null?void 0:Le.unified_setting)&&n.a.createElement(c.a,{value:!0}," \u7EDF\u4E00\u8865\u4EA4 "),(Un==null||((zt=Un.group_settings)===null||zt===void 0)?void 0:zt.length)&&n.a.createElement(c.a,{value:!1}," \u5206\u73ED\u8865\u4EA4 "))),Le!=null&&Le.unified_late?n.a.createElement(n.a.Fragment,null,n.a.createElement(L.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ie.a,null,"\u8865\u4EA4\u6263\u5206:"),n.a.createElement(ie.a,{className:"ml5"},n.a.createElement(E.a,{disabled:Cn||!Le.allow_late,value:Le.late_penalty,onChange:function(wn){Le.late_penalty=wn,mt(Object.assign({},Le))}})),n.a.createElement(ie.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(L.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ie.a,null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4:"),n.a.createElement(ie.a,{className:"ml5"},n.a.createElement(We.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ee()(Object(h.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Cn||!Le.allow_late,value:Le.late_time?ee()(Le.late_time):"",disabledDate:Sn,onChange:function(wn,Yn){Le.late_time=Yn,mt(Object.assign({},Le))}})),n.a.createElement(ie.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)")))):bt.map(function(En,wn){var Yn;return n.a.createElement(ie.a,{span:24,key:wn},n.a.createElement(L.a,{className:"mt25"},n.a.createElement(ie.a,{style:{marginLeft:30}},n.a.createElement("span",null,"\u8865\u4EA4\u89C4\u5219",wn+1,"\uFF1A"),n.a.createElement(dn.a,{disabled:Cn||!(mn!=null&&(Yn=mn.homework_status)!==null&&Yn!==void 0&&Yn.includes("\u672A\u53D1\u5E03"))&&En.id,mode:"multiple",style:{width:306},value:typeof En.group_name=="string"?[En.group_name]:En.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:function(yn){bt[wn].group_name=yn,bt[wn].group_id=En.group_id,ut(bt.slice())}},Un.group_settings&&Un.group_settings.map(function(Ln){if(Le!=null&&Le.unified_setting&&!bt.map(function(yn){return yn.group_name}).toString().split(",").includes(String(Ln.group_name)))return n.a.createElement(hr,{value:Ln.group_name,key:Ln.id},Ln.group_name);if(Ee.map(function(yn){return yn.group_name}).toString().split(",").includes(String(Ln.group_name))&&!bt.map(function(yn){return yn.group_name}).toString().split(",").includes(String(Ln.group_name)))return n.a.createElement(hr,{value:Ln.group_name,key:Ln.id},Ln.group_name)}))),n.a.createElement(ie.a,{className:"ml20"},n.a.createElement("span",null,"\u8865\u4EA4\u6263\u5206\uFF1A"),n.a.createElement(E.a,{min:0,max:100,disabled:Cn,defaultValue:En.late_penalty,onChange:function(yn){bt[wn].late_penalty=yn}})),n.a.createElement(ie.a,{className:"ml20"},n.a.createElement("span",null,"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\uFF1A"),n.a.createElement(We.a,{disabled:Cn,style:{width:200},showTime:{format:"HH:mm",defaultValue:ee()(Object(h.d)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:Sn,format:"YYYY-MM-DD HH:mm",value:En!=null&&En.late_time?ee()(En.late_time):void 0,onChange:function(yn,sr){bt[wn].late_time=sr,ut(Object(Xe.a)(bt))}})),!Cn&&n.a.createElement(ie.a,{className:"ml20"},wn>0&&!En.id&&n.a.createElement(xt.a,{onClick:function(){bt=bt.filter(function(yn,sr){return wn!==sr}),ut(bt.slice()),setTimeout(function(){return ut(bt.slice())},10)}}),n.a.createElement(Bn.a,{className:"c-green ml20",onClick:function(){ut(bt.concat({late_penalty:5}))}}))))})))},un=function(){var Xt;return n.a.createElement("div",{className:"bg-white pl30 pr30 pb30"},n.a.createElement(L.a,null,n.a.createElement(ie.a,{span:24},n.a.createElement(L.a,{align:"middle"},n.a.createElement(ie.a,{flex:"1"},n.a.createElement("h1",{className:"mt15"},"\u533F\u8BC4\u8BBE\u7F6E")),n.a.createElement(ie.a,null,Object(S.c)()&&Cn&&n.a.createElement(k.a,{type:"primary",size:"middle",ghost:!0,onClick:function(){return or(!1)}},"\u7F16\u8F91\u8BBE\u7F6E")))),n.a.createElement(ie.a,{span:24,className:"mt15 pl30"},n.a.createElement(Z.a,{checked:Le.anonymous_comment,disabled:Cn||((Xt=mn.homework_status)===null||Xt===void 0?void 0:Xt.includes("\u533F\u8BC4\u4E2D")),onChange:function(){Le.anonymous_comment=!Le.anonymous_comment,Le.allow_late&&!Le.evaluation_start?Le.late_time&&Le.late_time!=""&&(Le.evaluation_start=ee()(Le.late_time).add(14,"day").format("YYYY-MM-DD HH:mm:ss"),Le.evaluation_end=ee()(Le.late_time).add(28,"day").format("YYYY-MM-DD HH:mm:ss")):Le.unified_setting&&!Le.evaluation_start&&(Le.end_time&&Le.end_time!=""&&(Le.evaluation_start=ee()(Le.end_time).add(14,"day").format("YYYY-MM-DD HH:mm:ss"),Le.evaluation_end=ee()(Le.end_time).add(28,"day").format("YYYY-MM-DD HH:mm:ss"))),Le.anonymous_comment&&(Le.evaluation_num=parseInt(Le.evaluation_num)?Le.evaluation_num:3,Le.absence_penalty=parseInt(Le.absence_penalty)?Le.absence_penalty:3),mt(Object.assign({},Le))}},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(L.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ie.a,null,"\u5F00\u59CB\u65F6\u95F4:"),n.a.createElement(ie.a,{className:"ml5"},n.a.createElement(We.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ee()(Object(h.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Cn||!Le.anonymous_comment||Pt,value:Le.evaluation_start?ee()(Le.evaluation_start):"",onChange:function(Tn,zt){Le.evaluation_start=zt,mt(Object.assign({},Le))}})),n.a.createElement(ie.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(L.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ie.a,null,"\u7ED3\u675F\u65F6\u95F4:"),n.a.createElement(ie.a,{className:"ml5"},n.a.createElement(We.a,{allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:ee()(Object(h.d)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Cn||!Le.anonymous_comment||Pt,value:Le.evaluation_end?ee()(Le.evaluation_end):"",onChange:function(Tn,zt){Le.evaluation_end=zt,mt(Object.assign({},Le))}})),n.a.createElement(ie.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(L.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ie.a,null,"\u533F\u8BC4\u6570\u91CF:"),n.a.createElement(ie.a,{className:"ml5"},n.a.createElement(E.a,{disabled:Cn||!Le.anonymous_comment||Pt,value:Le.evaluation_num,onChange:function(Tn){Le.evaluation_num=Tn,mt(Object.assign({},Le))}})),n.a.createElement(ie.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(L.a,{align:"middle",className:"mt25 pl30"},n.a.createElement(ie.a,null,"\u7F3A\u8BC4\u6263\u5206:"),n.a.createElement(ie.a,{className:"ml5"},n.a.createElement(E.a,{min:0,disabled:Cn||!Le.anonymous_comment||Pt,value:Le.absence_penalty,onChange:function(Tn){Le.absence_penalty=Tn,mt(Object.assign({},Le))}})),n.a.createElement(ie.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)"))),Le.anonymous_comment&&n.a.createElement(n.a.Fragment,null,n.a.createElement(L.a,null,n.a.createElement(ie.a,{span:24,className:"mt15 pl30"},n.a.createElement(Z.a,{checked:Le.student_comment,disabled:Cn||ee()(Le.evaluation_start)"},n.a.createElement(K.a.Item,null,n.a.createElement(o.a,{to:"/classrooms/".concat(Ee.course_id,"/group_homework")},Ee.course_name)),n.a.createElement(K.a.Item,null,n.a.createElement(o.a,{to:"/classrooms/".concat(Ee==null?void 0:Ee.course_id,"/group_homework/").concat(Ee!=null&&(Yt=Ee.category)!==null&&Yt!==void 0&&Yt.main?"":Ee==null||((bn=Ee.category)===null||bn===void 0)?void 0:bn.category_id)},Ee.category.category_name)),n.a.createElement(K.a.Item,null,"\u4F5C\u4E1A\u8BE6\u60C5"))),n.a.createElement("aside",{className:[pn.a.title,"mt20"].join(" ")},n.a.createElement(o.a,{to:"/classrooms/".concat(Ee.course_id,"/group_homework")},n.a.createElement(u.a,{className:"font16 c-black"})),n.a.createElement("strong",{className:"font20 ml5"},Ee.homework_name),n.a.createElement(h.k,{status:Ee.homework_status}))),n.a.createElement("aside",{className:"mt30 relative ".concat(pn.a.workListTabWrap)},n.a.createElement(z.a,{type:"card",activeKey:Cn,tabBarExtraContent:Lt(),onTabClick:function(ut,kt){if(parseInt(ut)===2){if(!(Ee!=null&&Ee.view_answer)){w.b.info("\u672C\u6B21\u4F5C\u4E1A\u8001\u5E08\u672A\u516C\u5F00\u7B54\u6848");return}(Ee==null?void 0:Ee.time_status)>2||Object(S.d)()?or(ut):w.b.info("\u622A\u6B62\u4E4B\u540E\u7684\u8BD5\u5377\u624D\u80FD\u67E5\u770B\u7B54\u6848")}else or(ut)},className:pn.a.tabs},yt.map(function(bt,ut){return n.a.createElement(z.a.TabPane,{tab:bt.name,key:bt.id},bt.compontent)})))),n.a.createElement(A.a,null),n.a.createElement(y.a,null),n.a.createElement(_t,{type:"edit",onCallback:function(){return gt()}}),n.a.createElement(qt,{type:"edit",onCallback:function(){return gt()}}),n.a.createElement(wt,{cb:function(){qe($e+1),or("5")}}),n.a.createElement(qt,{type:"edit",onCallback:function(){return gt()}}),n.a.createElement(te.a,{ref:ft,hide:!0,name:"".concat(Ee==null?void 0:Ee.homework_name,"-\u4F5C\u54C1\u9644\u4EF6"),onOk:function(){return De(!1)}}))},Kt=rt.default=Object(d.a)(function(rn){var At=rn.user,Yt=rn.shixunHomeworks,bn=rn.loading,tr=rn.globalSetting;return{user:At,shixunHomeworks:Yt,globalSetting:tr,loading:bn.effects}})(Nn)},h78n:function(an,rt,F){"use strict";F.d(rt,"a",function(){return O});var re=F("q1tI"),z=F.n(re),I=F("TSYQ"),K=F.n(I),T={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},w=function(H){var G=H.map(function(){return Object(re.useRef)()}),L=Object(re.useRef)();return Object(re.useEffect)(function(){var W=Date.now(),Z=!1;Object.keys(G).forEach(function(oe){var ie=G[oe].current;if(!ie)return;Z=!0;var be=ie.style;be.transitionDuration=".3s, .3s, .3s, .06s",L.current&&W-L.current<100&&(be.transitionDuration="0s, 0s")}),Z&&(L.current=Date.now())}),[G]};function B(){return B=Object.assign||function(U){for(var H=1;HU.length)&&(H=U.length);for(var G=0,L=new Array(H);G=0)continue;if(!Object.prototype.propertyIsEnumerable.call(U,L))continue;G[L]=U[L]}}return G}function n(U,H){if(U==null)return{};var G={},L=Object.keys(U),W,Z;for(Z=0;Z=0)continue;G[W]=U[W]}return G}var p=function(H){var G=H.className,L=H.percent,W=H.prefixCls,Z=H.strokeColor,oe=H.strokeLinecap,ie=H.strokeWidth,be=H.style,Je=H.trailColor,Ae=H.trailWidth,ke=H.transition,Ze=g(H,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Ze.gapPosition;var Xe=Array.isArray(L)?L:[L],Pe=Array.isArray(Z)?Z:[Z],fe=w(Xe),le=x(fe,1),Se=le[0],ve=ie/2,Ge=100-ie/2,it="M ".concat(oe==="round"?ve:0,",").concat(ve,` + L `).concat(oe==="round"?Ge:100,",").concat(ve),ee="0 0 100 ".concat(ie),V=0;return z.a.createElement("svg",B({className:K()("".concat(W,"-line"),G),viewBox:ee,preserveAspectRatio:"none",style:be},Ze),z.a.createElement("path",{className:"".concat(W,"-line-trail"),d:it,strokeLinecap:oe,stroke:Je,strokeWidth:Ae||ie,fillOpacity:"0"}),Xe.map(function(Q,he){var _e={strokeDasharray:"".concat(Q,"px, 100px"),strokeDashoffset:"-".concat(V,"px"),transition:ke||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Fe=Pe[he]||Pe[Pe.length-1];return V+=Q,z.a.createElement("path",{key:he,className:"".concat(W,"-line-path"),d:it,strokeLinecap:oe,stroke:Fe,strokeWidth:ie,fillOpacity:"0",ref:Se[he],style:_e})}))};p.defaultProps=T;var d=p;function o(){return o=Object.assign||function(U){for(var H=1;HU.length)&&(H=U.length);for(var G=0,L=new Array(H);G=0)continue;if(!Object.prototype.propertyIsEnumerable.call(U,L))continue;G[L]=U[L]}}return G}function f(U,H){if(U==null)return{};var G={},L=Object.keys(U),W,Z;for(Z=0;Z=0)continue;G[W]=U[W]}return G}var c=0;function s(U){return+U.replace("%","")}function i(U){return Array.isArray(U)?U:[U]}function C(U,H,G,L){var W=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,Z=arguments.length>5?arguments[5]:void 0,oe=50-L/2,ie=0,be=-oe,Je=0,Ae=-2*oe;switch(Z){case"left":ie=-oe,be=0,Je=2*oe,Ae=0;break;case"right":ie=oe,be=0,Je=-2*oe,Ae=0;break;case"bottom":be=oe,Ae=2*oe;break;default:}var ke="M 50,50 m ".concat(ie,",").concat(be,` a `).concat(oe,",").concat(oe," 0 1 1 ").concat(Je,",").concat(-Ae,` - a `).concat(oe,",").concat(oe," 0 1 1 ").concat(-Je,",").concat(Ae),Ze=Math.PI*2*oe,Xe={stroke:G,strokeDasharray:"".concat(H/100*(Ze-W),"px ").concat(Ze,"px"),strokeDashoffset:"-".concat(W/2+U/100*(Ze-W),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ke,pathStyle:Xe}}var _=function(H){var G=H.prefixCls,L=H.strokeWidth,W=H.trailWidth,Z=H.gapDegree,oe=H.gapPosition,ie=H.trailColor,be=H.strokeLinecap,Je=H.style,Ae=H.className,ke=H.strokeColor,Ze=H.percent,Xe=E(H,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Pe=Object(re.useMemo)(function(){return c+=1,c},[]),he=C(0,100,ie,L,Z,oe),le=he.pathString,Se=he.pathStyle,ve=i(Ze),Ge=i(ke),it=Ge.find(function(_e){return Object.prototype.toString.call(_e)==="[object Object]"}),ee=w(ve),V=u(ee,1),Q=V[0],fe=function(){var Fe=0;return ve.map(function(He,Rt){var Ht=Ge[Rt]||Ge[Ge.length-1],It=Object.prototype.toString.call(Ht)==="[object Object]"?"url(#".concat(G,"-gradient-").concat(Pe,")"):"",Bt=C(Fe,He,Ht,L,Z,oe);return Fe+=He,z.a.createElement("path",{key:Rt,className:"".concat(G,"-circle-path"),d:Bt.pathString,stroke:It,strokeLinecap:be,strokeWidth:L,opacity:He===0?0:1,fillOpacity:"0",style:Bt.pathStyle,ref:Q[Rt]})})};return z.a.createElement("svg",o({className:K()("".concat(G,"-circle"),Ae),viewBox:"0 0 100 100",style:Je},Xe),it&&z.a.createElement("defs",null,z.a.createElement("linearGradient",{id:"".concat(G,"-gradient-").concat(Pe),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(it).sort(function(_e,Fe){return s(_e)-s(Fe)}).map(function(_e,Fe){return z.a.createElement("stop",{key:Fe,offset:_e,stopColor:it[_e]})}))),z.a.createElement("path",{className:"".concat(G,"-circle-trail"),d:le,stroke:ie,strokeLinecap:be,strokeWidth:W||L,fillOpacity:"0",style:Se}),fe().reverse())};_.defaultProps=T;var O=_,N={Line:d,Circle:O}},hW8S:function(an,rt,F){"use strict";F.d(rt,"a",function(){return K}),F.d(rt,"c",function(){return T}),F.d(rt,"b",function(){return w});var re=F("VTBJ"),z=F("Ff2n"),I=F("Kwbf"),K="RC_TABLE_INTERNAL_COL_DEFINE";function T(B){var x=B.expandable,k=Object(z.a)(B,["expandable"]);return"expandable"in B?Object(re.a)(Object(re.a)({},k),x):k}function w(B){return Object.keys(B).reduce(function(x,k){return(k.substr(0,5)==="data-"||k.substr(0,5)==="aria-")&&(x[k]=B[k]),x},{})}},k3GJ:function(an,rt,F){"use strict";F.d(rt,"a",function(){return ya});var re=F("rePB"),z=F("ODXe"),I=F("Ff2n"),K=F("VTBJ"),T=F("q1tI"),w=F("TSYQ"),B=F.n(w),x=F("Zm9Q"),k=F("6cGi"),D=F("KQm4"),m=F("xEkU"),R=F.n(m),M=F("t23M");function g(Ce){var Ye=Object(T.useRef)(),et=Object(T.useRef)(!1);function Oe(){for(var se=arguments.length,ye=new Array(se),de=0;delt&&(Gt=lt-jt),Object(T.useMemo)(function(){if(!ye.length)return[0,0];for(var hn=ye.length,In=hn,ar=0;arUe+Gt){In=ar-1;break}}for(var ir=0,pr=hn-1;pr>=0;pr-=1){var lr=Ce.get(ye[pr].key)||S;if(lr[at]1&&arguments[1]!==void 0?arguments[1]:!1,Oe=Ye&&typeof Ye.getBoundingClientRect=="function"&&Ye.getBoundingClientRect().width;if(Oe){if(et){var se=getComputedStyle(Ye),ye=se.marginLeft,de=se.marginRight;Oe+=+ye.replace("px","")+ +de.replace("px","")}Oe=+Oe.toFixed(6)}return Oe||0},Fe=function(Ye,et,Oe){Ye&&Object(U.a)(Ye.style)==="object"&&(Ye.style[et]=Oe)},He=function(){return ve.any},Rt=F("bdgK"),Ht=F("i8i4"),It=F.n(Ht),Bt=F("wgJM"),tn=F("l4aY"),fn=F("m+aA"),tt=F("c+Xe"),Ke=F("zT1h"),Ct=F("QC+M");function Dt(Ce,Ye,et){return et?Ce[0]===Ye[0]:Ce[0]===Ye[0]&&Ce[1]===Ye[1]}function st(Ce,Ye,et){var Oe=Ce[Ye]||{};return Object(K.a)(Object(K.a)({},Oe),et)}function xt(Ce,Ye,et,Oe){for(var se=et.points,ye=Object.keys(Ce),de=0;de1&&arguments[1]!==void 0?arguments[1]:2;Ye();var ye=Object(Bt.a)(function(){se<=1?Oe({isCanceled:function(){return ye!==Ce.current}}):et(Oe,se-1)});Ce.current=ye}return T.useEffect(function(){return function(){Ye()}},[]),[et,Ye]},Cr=[ft,qt,on,ot],Ar=!1,hr=!0;function On(Ce){return Ce===on||Ce===ot}var Fr=function(Ce,Ye){var et=T.useState(wt),Oe=Object(z.a)(et,2),se=Oe[0],ye=Oe[1],de=kn(),Re=Object(z.a)(de,2),Ie=Re[0],at=Re[1];function Ue(){ye(ft)}return Bn(function(){if(se!==wt&&se!==ot){var lt=Cr.indexOf(se),Ot=Cr[lt+1],jt=Ye(se);jt===Ar?ye(Ot):Ie(function(Gt){function hn(){if(Gt.isCanceled())return;ye(Ot)}jt===!0?hn():Promise.resolve(jt).then(hn)})}},[Ce,se]),T.useEffect(function(){return function(){at()}},[]),[Ue,se]},na=function(Ce){var Ye=Object(T.useRef)(),et=Object(T.useRef)(Ce);et.current=Ce;var Oe=T.useCallback(function(de){et.current(de)},[]);function se(de){de&&(de.removeEventListener(Vt,Oe),de.removeEventListener(Zt,Oe))}function ye(de){Ye.current&&Ye.current!==de&&se(Ye.current),de&&de!==Ye.current&&(de.addEventListener(Vt,Oe),de.addEventListener(Zt,Oe),Ye.current=de)}return T.useEffect(function(){return function(){se(Ye.current)}},[]),[ye,se]};function Pr(Ce,Ye,et,Oe){var se=Oe.motionEnter,ye=se===void 0?!0:se,de=Oe.motionAppear,Re=de===void 0?!0:de,Ie=Oe.motionLeave,at=Ie===void 0?!0:Ie,Ue=Oe.motionDeadline,lt=Oe.motionLeaveImmediately,Ot=Oe.onAppearPrepare,jt=Oe.onEnterPrepare,Gt=Oe.onLeavePrepare,hn=Oe.onAppearStart,In=Oe.onEnterStart,ar=Oe.onLeaveStart,nr=Oe.onAppearActive,ir=Oe.onEnterActive,pr=Oe.onLeaveActive,lr=Oe.onAppearEnd,mr=Oe.onEnterEnd,Er=Oe.onLeaveEnd,rr=Oe.onVisibleChanged,Tr=Wt(),$n=Object(z.a)(Tr,2),nn=$n[0],_n=$n[1],sn=Wt(_t),cn=Object(z.a)(sn,2),$t=cn[0],Qn=cn[1],jn=Wt(null),yr=Object(z.a)(jn,2),Nr=yr[0],Lr=yr[1],Or=Object(T.useRef)(!1),kr=Object(T.useRef)(null),ur=Object(T.useRef)(!1),ua=Object(T.useRef)(null);function Ja(){var $r=et();return $r||ua.current}var Na=Object(T.useRef)(!1);function wa($r){var zr=Ja();if($r&&!$r.deadline&&$r.target!==zr)return;var ba;$t===ct&&Na.current?ba=lr==null?void 0:lr(zr,$r):$t===ge&&Na.current?ba=mr==null?void 0:mr(zr,$r):$t===Me&&Na.current&&(ba=Er==null?void 0:Er(zr,$r)),ba!==!1&&!ur.current&&(Qn(_t),Lr(null))}var Qr=na(wa),Gr=Object(z.a)(Qr,1),Xr=Gr[0],Jr=T.useMemo(function(){var $r,zr,ba;switch($t){case"appear":return $r={},Object(re.a)($r,ft,Ot),Object(re.a)($r,qt,hn),Object(re.a)($r,on,nr),$r;case"enter":return zr={},Object(re.a)(zr,ft,jt),Object(re.a)(zr,qt,In),Object(re.a)(zr,on,ir),zr;case"leave":return ba={},Object(re.a)(ba,ft,Gt),Object(re.a)(ba,qt,ar),Object(re.a)(ba,on,pr),ba;default:return{}}},[$t]),ja=Fr($t,function($r){if($r===ft){var zr=Jr[ft];return zr?zr(Ja()):Ar}if(Vr in Jr){var ba;Lr(((ba=Jr[Vr])===null||ba===void 0?void 0:ba.call(Jr,Ja(),null))||null)}return Vr===on&&(Xr(Ja()),Ue>0&&(clearTimeout(kr.current),kr.current=setTimeout(function(){wa({deadline:!0})},Ue))),hr}),fi=Object(z.a)(ja,2),si=fi[0],Vr=fi[1],Za=On(Vr);Na.current=Za,Bn(function(){_n(Ye);var $r=Or.current;if(Or.current=!0,!Ce)return;var zr;!$r&&Ye&&Re&&(zr=ct),$r&&Ye&&ye&&(zr=ge),($r&&!Ye&&at||!$r&<&&!Ye&&at)&&(zr=Me),zr&&(Qn(zr),si())},[Ye]),Object(T.useEffect)(function(){($t===ct&&!Re||$t===ge&&!ye||$t===Me&&!at)&&Qn(_t)},[Re,ye,at]),Object(T.useEffect)(function(){return function(){clearTimeout(kr.current),ur.current=!0}},[]),Object(T.useEffect)(function(){nn!==void 0&&$t===_t&&(rr==null||rr(nn))},[nn,$t]);var qa=Nr;return Jr[ft]&&Vr===qt&&(qa=Object(K.a)({transition:"none"},qa)),[$t,Vr,qa,nn!=null?nn:Ye]}var fr=function(Ce){Object(c.a)(et,Ce);var Ye=Object(s.a)(et);function et(){return Object(P.a)(this,et),Ye.apply(this,arguments)}return Object(E.a)(et,[{key:"render",value:function(){return this.props.children}}]),et}(T.Component),Br=fr;function qr(Ce){var Ye=Ce;Object(U.a)(Ce)==="object"&&(Ye=Ce.transitionSupport);function et(se){return!!(se.motionName&&Ye)}var Oe=T.forwardRef(function(se,ye){var de=se.visible,Re=de===void 0?!0:de,Ie=se.removeOnLeave,at=Ie===void 0?!0:Ie,Ue=se.forceRender,lt=se.children,Ot=se.motionName,jt=se.leavedClassName,Gt=se.eventProps,hn=et(se),In=Object(T.useRef)(),ar=Object(T.useRef)();function nr(){try{return Object(fn.a)(In.current||ar.current)}catch(Qn){return null}}var ir=Pr(hn,Re,nr,se),pr=Object(z.a)(ir,4),lr=pr[0],mr=pr[1],Er=pr[2],rr=pr[3],Tr=T.useRef(rr);rr&&(Tr.current=!0);var $n=Object(T.useRef)(ye);$n.current=ye;var nn=T.useCallback(function(Qn){In.current=Qn,Object(tt.b)($n.current,Qn)},[]),_n,sn=Object(K.a)(Object(K.a)({},Gt),{},{visible:Re});if(!lt)_n=null;else if(lr===_t||!et(se))rr?_n=lt(Object(K.a)({},sn),nn):!at&&Tr.current?_n=lt(Object(K.a)(Object(K.a)({},sn),{},{className:jt}),nn):Ue?_n=lt(Object(K.a)(Object(K.a)({},sn),{},{style:{display:"none"}}),nn):_n=null;else{var cn,$t;mr===ft?$t="prepare":On(mr)?$t="active":mr===qt&&($t="start"),_n=lt(Object(K.a)(Object(K.a)({},sn),{},{className:B()(Et(Ot,lr),(cn={},Object(re.a)(cn,Et(Ot,"".concat(lr,"-").concat($t)),$t),Object(re.a)(cn,Ot,typeof Ot=="string"),cn)),style:Er}),nn)}return T.createElement(Br,{ref:ar},_n)});return Oe.displayName="CSSMotion",Oe}var ha=qr(vn),Qt="add",qn="keep",oa="remove",_a="removed";function jr(Ce){var Ye;return Ce&&Object(U.a)(Ce)==="object"&&"key"in Ce?Ye=Ce:Ye={key:Ce},Object(K.a)(Object(K.a)({},Ye),{},{key:String(Ye.key)})}function ra(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ce.map(jr)}function J(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],et=[],Oe=0,se=Ye.length,ye=ra(Ce),de=ra(Ye);ye.forEach(function(at){for(var Ue=!1,lt=Oe;lt1});return Ie.forEach(function(at){et=et.filter(function(Ue){var lt=Ue.key,Ot=Ue.status;return lt!==at||Ot!==oa}),et.forEach(function(Ue){Ue.key===at&&(Ue.status=qn)})}),et}var y=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function A(Ce){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ha,et=function(Oe){Object(c.a)(ye,Oe);var se=Object(s.a)(ye);function ye(){var de;return Object(P.a)(this,ye),de=se.apply(this,arguments),de.state={keyEntities:[]},de.removeKey=function(Re){de.setState(function(Ie){var at=Ie.keyEntities;return{keyEntities:at.map(function(Ue){return Ue.key!==Re?Ue:Object(K.a)(Object(K.a)({},Ue),{},{status:_a})})}})},de}return Object(E.a)(ye,[{key:"render",value:function(){var Re=this,Ie=this.state.keyEntities,at=this.props,Ue=at.component,lt=at.children,Ot=at.onVisibleChanged,jt=Object(I.a)(at,["component","children","onVisibleChanged"]),Gt=Ue||T.Fragment,hn={};return y.forEach(function(In){hn[In]=jt[In],delete jt[In]}),delete jt.keys,T.createElement(Gt,jt,Ie.map(function(In){var ar=In.status,nr=Object(I.a)(In,["status"]),ir=ar===Qt||ar===qn;return T.createElement(Ye,Object(v.a)({},hn,{key:nr.key,visible:ir,eventProps:nr,onVisibleChanged:function(lr){Ot==null||Ot(lr,{key:nr.key}),lr||Re.removeKey(nr.key)}}),lt)}))}}],[{key:"getDerivedStateFromProps",value:function(Re,Ie){var at=Re.keys,Ue=Ie.keyEntities,lt=ra(at),Ot=J(Ue,lt);return{keyEntities:Ot.filter(function(jt){var Gt=Ue.find(function(hn){var In=hn.key;return jt.key===In});return!(Gt&&Gt.status===_a&&jt.status===oa)})}}}]),ye}(T.Component);return et.defaultProps={component:"div"},et}var X=A(vn),te=ha;function $(Ce){var Ye=Ce.prefixCls,et=Ce.motion,Oe=Ce.animation,se=Ce.transitionName;return et||(Oe?{motionName:"".concat(Ye,"-").concat(Oe)}:se?{motionName:se}:null)}function ze(Ce){var Ye=Ce.prefixCls,et=Ce.visible,Oe=Ce.zIndex,se=Ce.mask,ye=Ce.maskMotion,de=Ce.maskAnimation,Re=Ce.maskTransitionName;if(!se)return null;var Ie={};return(ye||Re||de)&&(Ie=Object(K.a)({motionAppear:!0},$({motion:ye,prefixCls:Ye,transitionName:Re,animation:de}))),T.createElement(te,Object(v.a)({},Ie,{visible:et,removeOnLeave:!0}),function(at){var Ue=at.className;return T.createElement("div",{style:{zIndex:Oe},className:B()("".concat(Ye,"-mask"),Ue)})})}var Ut=F("9mu1"),pn=F("o0o1"),Nn=F.n(pn),Kt=F("HaE+"),rn=["measure","align",null,"motion"],At=function(Ce,Ye){var et=Object(T.useState)(null),Oe=Object(z.a)(et,2),se=Oe[0],ye=Oe[1],de=Object(T.useRef)(),Re=Object(T.useRef)(!1);function Ie(lt){Re.current||ye(lt)}function at(){Bt.a.cancel(de.current)}function Ue(lt){at(),de.current=Object(Bt.a)(function(){Ie(function(Ot){switch(se){case"align":return"motion";case"motion":return"stable";default:}return Ot}),lt==null||lt()})}return Object(T.useEffect)(function(){Ie("measure")},[Ce]),Object(T.useEffect)(function(){switch(se){case"measure":Ye();break;default:}se&&(de.current=Object(Bt.a)(Object(Kt.a)(Nn.a.mark(function lt(){var Ot,jt;return Nn.a.wrap(function(hn){for(;;)switch(hn.prev=hn.next){case 0:Ot=rn.indexOf(se),jt=rn[Ot+1],jt&&Ot!==-1&&Ie(jt);case 3:case"end":return hn.stop()}},lt)}))))},[se]),Object(T.useEffect)(function(){return function(){Re.current=!0,at()}},[]),[se,Ue]},Yt=function(Ce){var Ye=T.useState({width:0,height:0}),et=Object(z.a)(Ye,2),Oe=et[0],se=et[1];function ye(Re){se({width:Re.offsetWidth,height:Re.offsetHeight})}var de=T.useMemo(function(){var Re={};if(Ce){var Ie=Oe.width,at=Oe.height;Ce.indexOf("height")!==-1&&at?Re.height=at:Ce.indexOf("minHeight")!==-1&&at&&(Re.minHeight=at),Ce.indexOf("width")!==-1&&Ie?Re.width=Ie:Ce.indexOf("minWidth")!==-1&&Ie&&(Re.minWidth=Ie)}return Re},[Ce,Oe]);return[de,ye]},bn=T.forwardRef(function(Ce,Ye){var et=Ce.visible,Oe=Ce.prefixCls,se=Ce.className,ye=Ce.style,de=Ce.children,Re=Ce.zIndex,Ie=Ce.stretch,at=Ce.destroyPopupOnHide,Ue=Ce.forceRender,lt=Ce.align,Ot=Ce.point,jt=Ce.getRootDomNode,Gt=Ce.getClassNameFromAlign,hn=Ce.onAlign,In=Ce.onMouseEnter,ar=Ce.onMouseLeave,nr=Ce.onMouseDown,ir=Ce.onTouchStart,pr=Object(T.useRef)(),lr=Object(T.useRef)(),mr=Object(T.useState)(),Er=Object(z.a)(mr,2),rr=Er[0],Tr=Er[1],$n=Yt(Ie),nn=Object(z.a)($n,2),_n=nn[0],sn=nn[1];function cn(){Ie&&sn(jt())}var $t=At(et,cn),Qn=Object(z.a)($t,2),jn=Qn[0],yr=Qn[1],Nr=Object(T.useRef)();function Lr(){return Ot||jt}function Or(){var Qr;(Qr=pr.current)===null||Qr===void 0||Qr.forceAlign()}function kr(Qr,Gr){var Xr=Gt(Gr);rr!==Xr&&Tr(Xr),jn==="align"&&(rr!==Xr?Promise.resolve().then(function(){Or()}):yr(function(){var Jr;(Jr=Nr.current)===null||Jr===void 0||Jr.call(Nr)}),hn==null||hn(Qr,Gr))}var ur=Object(K.a)({},$(Ce));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Qr){var Gr=ur[Qr];ur[Qr]=function(Xr,Jr){return yr(),Gr==null?void 0:Gr(Xr,Jr)}});function ua(){return new Promise(function(Qr){Nr.current=Qr})}T.useEffect(function(){!ur.motionName&&jn==="motion"&&yr()},[ur.motionName,jn]),T.useImperativeHandle(Ye,function(){return{forceAlign:Or,getElement:function(){return lr.current}}});var Ja=Object(K.a)(Object(K.a)({},_n),{},{zIndex:Re,opacity:jn==="motion"||jn==="stable"||!et?void 0:0,pointerEvents:jn==="stable"?void 0:"none"},ye),Na=!0;(lt==null?void 0:lt.points)&&(jn==="align"||jn==="stable")&&(Na=!1);var wa=de;return T.Children.count(de)>1&&(wa=T.createElement("div",{className:"".concat(Oe,"-content")},de)),T.createElement(te,Object(v.a)({visible:et,ref:lr,leavedClassName:"".concat(Oe,"-hidden")},ur,{onAppearPrepare:ua,onEnterPrepare:ua,removeOnLeave:at,forceRender:Ue}),function(Qr,Gr){var Xr=Qr.className,Jr=Qr.style,ja=B()(Oe,se,rr,Xr);return T.createElement(Ut.a,{target:Lr(),key:"popup",ref:pr,monitorWindowResize:!0,disabled:Na,align:lt,onAlign:kr},T.createElement("div",{ref:Gr,className:ja,onMouseEnter:In,onMouseLeave:ar,onMouseDownCapture:nr,onTouchStartCapture:ir,style:Object(K.a)(Object(K.a)({},Jr),Ja)},wa))})});bn.displayName="PopupInner";var tr=bn,Wn=T.forwardRef(function(Ce,Ye){var et=Ce.prefixCls,Oe=Ce.visible,se=Ce.zIndex,ye=Ce.children,de=Ce.mobile;de=de===void 0?{}:de;var Re=de.popupClassName,Ie=de.popupStyle,at=de.popupMotion,Ue=at===void 0?{}:at,lt=de.popupRender,Ot=T.useRef();T.useImperativeHandle(Ye,function(){return{forceAlign:function(){},getElement:function(){return Ot.current}}});var jt=Object(K.a)({zIndex:se},Ie),Gt=ye;return T.Children.count(ye)>1&&(Gt=T.createElement("div",{className:"".concat(et,"-content")},ye)),lt&&(Gt=lt(Gt)),T.createElement(te,Object(v.a)({visible:Oe,ref:Ot,removeOnLeave:!0},Ue),function(hn,In){var ar=hn.className,nr=hn.style,ir=B()(et,Re,ar);return T.createElement("div",{ref:In,className:ir,style:Object(K.a)(Object(K.a)({},nr),jt)},Gt)})});Wn.displayName="MobilePopupInner";var Jn=Wn,Sr=["visible","mobile"],zn=T.forwardRef(function(Ce,Ye){var et=Ce.visible,Oe=Ce.mobile,se=Object(I.a)(Ce,Sr),ye=Object(T.useState)(et),de=Object(z.a)(ye,2),Re=de[0],Ie=de[1],at=Object(T.useState)(!1),Ue=Object(z.a)(at,2),lt=Ue[0],Ot=Ue[1],jt=Object(K.a)(Object(K.a)({},se),{},{visible:Re});Object(T.useEffect)(function(){Ie(et),et&&Oe&&Ot(je())},[et,Oe]);var Gt=lt?T.createElement(Jn,Object(v.a)({},jt,{mobile:Oe,ref:Ye})):T.createElement(tr,Object(v.a)({},jt,{ref:Ye}));return T.createElement("div",null,T.createElement(ze,jt),Gt)});zn.displayName="Popup";var Gn=zn,Un=T.createContext(null),mn=Un;function br(){}function _r(){return""}function Cn(Ce){return Ce?Ce.ownerDocument:window.document}var or=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function xr(Ce){var Ye=function(et){Object(c.a)(se,et);var Oe=Object(s.a)(se);function se(ye){var de;Object(P.a)(this,se),de=Oe.call(this,ye),de.popupRef=T.createRef(),de.triggerRef=T.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(Ie){var at=de.props.mouseEnterDelay;de.fireEvents("onMouseEnter",Ie),de.delaySetPopupVisible(!0,at,at?null:Ie)},de.onMouseMove=function(Ie){de.fireEvents("onMouseMove",Ie),de.setPoint(Ie)},de.onMouseLeave=function(Ie){de.fireEvents("onMouseLeave",Ie),de.delaySetPopupVisible(!1,de.props.mouseLeaveDelay)},de.onPopupMouseEnter=function(){de.clearDelayTimer()},de.onPopupMouseLeave=function(Ie){var at;if(Ie.relatedTarget&&!Ie.relatedTarget.setTimeout&&Object(tn.a)((at=de.popupRef.current)===null||at===void 0?void 0:at.getElement(),Ie.relatedTarget))return;de.delaySetPopupVisible(!1,de.props.mouseLeaveDelay)},de.onFocus=function(Ie){de.fireEvents("onFocus",Ie),de.clearDelayTimer(),de.isFocusToShow()&&(de.focusTime=Date.now(),de.delaySetPopupVisible(!0,de.props.focusDelay))},de.onMouseDown=function(Ie){de.fireEvents("onMouseDown",Ie),de.preClickTime=Date.now()},de.onTouchStart=function(Ie){de.fireEvents("onTouchStart",Ie),de.preTouchTime=Date.now()},de.onBlur=function(Ie){de.fireEvents("onBlur",Ie),de.clearDelayTimer(),de.isBlurToHide()&&de.delaySetPopupVisible(!1,de.props.blurDelay)},de.onContextMenu=function(Ie){Ie.preventDefault(),de.fireEvents("onContextMenu",Ie),de.setPopupVisible(!0,Ie)},de.onContextMenuClose=function(){de.isContextMenuToShow()&&de.close()},de.onClick=function(Ie){if(de.fireEvents("onClick",Ie),de.focusTime){var at;if(de.preClickTime&&de.preTouchTime?at=Math.min(de.preClickTime,de.preTouchTime):de.preClickTime?at=de.preClickTime:de.preTouchTime&&(at=de.preTouchTime),Math.abs(at-de.focusTime)<20)return;de.focusTime=0}de.preClickTime=0,de.preTouchTime=0,de.isClickToShow()&&(de.isClickToHide()||de.isBlurToHide())&&Ie&&Ie.preventDefault&&Ie.preventDefault();var Ue=!de.state.popupVisible;(de.isClickToHide()&&!Ue||Ue&&de.isClickToShow())&&de.setPopupVisible(!de.state.popupVisible,Ie)},de.onPopupMouseDown=function(){if(de.hasPopupMouseDown=!0,clearTimeout(de.mouseDownTimeout),de.mouseDownTimeout=window.setTimeout(function(){de.hasPopupMouseDown=!1},0),de.context){var Ie;(Ie=de.context).onPopupMouseDown.apply(Ie,arguments)}},de.onDocumentClick=function(Ie){if(de.props.mask&&!de.props.maskClosable)return;var at=Ie.target,Ue=de.getRootDomNode(),lt=de.getPopupDomNode();(!Object(tn.a)(Ue,at)||de.isContextMenuOnly())&&!Object(tn.a)(lt,at)&&!de.hasPopupMouseDown&&de.close()},de.getRootDomNode=function(){var Ie=de.props.getTriggerDOMNode;if(Ie)return Ie(de.triggerRef.current);try{var at=Object(fn.a)(de.triggerRef.current);if(at)return at}catch(Ue){}return It.a.findDOMNode(Object(h.a)(de))},de.getPopupClassNameFromAlign=function(Ie){var at=[],Ue=de.props,lt=Ue.popupPlacement,Ot=Ue.builtinPlacements,jt=Ue.prefixCls,Gt=Ue.alignPoint,hn=Ue.getPopupClassNameFromAlign;return lt&&Ot&&at.push(xt(Ot,jt,Ie,Gt)),hn&&at.push(hn(Ie)),at.join(" ")},de.getComponent=function(){var Ie=de.props,at=Ie.prefixCls,Ue=Ie.destroyPopupOnHide,lt=Ie.popupClassName,Ot=Ie.onPopupAlign,jt=Ie.popupMotion,Gt=Ie.popupAnimation,hn=Ie.popupTransitionName,In=Ie.popupStyle,ar=Ie.mask,nr=Ie.maskAnimation,ir=Ie.maskTransitionName,pr=Ie.maskMotion,lr=Ie.zIndex,mr=Ie.popup,Er=Ie.stretch,rr=Ie.alignPoint,Tr=Ie.mobile,$n=Ie.forceRender,nn=de.state,_n=nn.popupVisible,sn=nn.point,cn=de.getPopupAlign(),$t={};return de.isMouseEnterToShow()&&($t.onMouseEnter=de.onPopupMouseEnter),de.isMouseLeaveToHide()&&($t.onMouseLeave=de.onPopupMouseLeave),$t.onMouseDown=de.onPopupMouseDown,$t.onTouchStart=de.onPopupMouseDown,T.createElement(Gn,Object(v.a)({prefixCls:at,destroyPopupOnHide:Ue,visible:_n,point:rr&&sn,className:lt,align:cn,onAlign:Ot,animation:Gt,getClassNameFromAlign:de.getPopupClassNameFromAlign},$t,{stretch:Er,getRootDomNode:de.getRootDomNode,style:In,mask:ar,zIndex:lr,transitionName:hn,maskAnimation:nr,maskTransitionName:ir,maskMotion:pr,ref:de.popupRef,motion:jt,mobile:Tr,forceRender:$n}),typeof mr=="function"?mr():mr)},de.attachParent=function(Ie){Bt.a.cancel(de.attachId);var at=de.props,Ue=at.getPopupContainer,lt=at.getDocument,Ot=de.getRootDomNode(),jt;Ue?(Ot||Ue.length===0)&&(jt=Ue(Ot)):jt=lt(de.getRootDomNode()).body,jt?jt.appendChild(Ie):de.attachId=Object(Bt.a)(function(){de.attachParent(Ie)})},de.getContainer=function(){var Ie=de.props.getDocument,at=Ie(de.getRootDomNode()).createElement("div");return at.style.position="absolute",at.style.top="0",at.style.left="0",at.style.width="100%",de.attachParent(at),at},de.setPoint=function(Ie){var at=de.props.alignPoint;if(!at||!Ie)return;de.setState({point:{pageX:Ie.pageX,pageY:Ie.pageY}})},de.handlePortalUpdate=function(){de.state.prevPopupVisible!==de.state.popupVisible&&de.props.afterPopupVisibleChange(de.state.popupVisible)},de.triggerContextValue={onPopupMouseDown:de.onPopupMouseDown};var Re;return"popupVisible"in ye?Re=!!ye.popupVisible:Re=!!ye.defaultPopupVisible,de.state={prevPopupVisible:Re,popupVisible:Re},or.forEach(function(Ie){de["fire".concat(Ie)]=function(at){de.fireEvents(Ie,at)}}),de}return Object(E.a)(se,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var de=this.props,Re=this.state;if(Re.popupVisible){var Ie;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ie=de.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ke.a)(Ie,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ie=Ie||de.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ke.a)(Ie,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ie=Ie||de.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ke.a)(Ie,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ke.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Bt.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,Re=de.popupPlacement,Ie=de.popupAlign,at=de.builtinPlacements;return Re&&at?st(at,Re,Ie):Ie}},{key:"setPopupVisible",value:function(de,Re){var Ie=this.props.alignPoint,at=this.state.popupVisible;this.clearDelayTimer(),at!==de&&("popupVisible"in this.props||this.setState({popupVisible:de,prevPopupVisible:at}),this.props.onPopupVisibleChange(de)),Ie&&Re&&de&&this.setPoint(Re)}},{key:"delaySetPopupVisible",value:function(de,Re,Ie){var at=this,Ue=Re*1e3;if(this.clearDelayTimer(),Ue){var lt=Ie?{pageX:Ie.pageX,pageY:Ie.pageY}:null;this.delayTimer=window.setTimeout(function(){at.setPopupVisible(de,lt),at.clearDelayTimer()},Ue)}else this.setPopupVisible(de,Ie)}},{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 Re=this.props.children.props,Ie=this.props;return Re[de]&&Ie[de]?this["fire".concat(de)]:Re[de]||Ie[de]}},{key:"isClickToShow",value:function(){var de=this.props,Re=de.action,Ie=de.showAction;return Re.indexOf("click")!==-1||Ie.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,Re=de.action,Ie=de.showAction;return Re.indexOf("contextMenu")!==-1||Ie.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var de=this.props,Re=de.action,Ie=de.hideAction;return Re.indexOf("click")!==-1||Ie.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var de=this.props,Re=de.action,Ie=de.showAction;return Re.indexOf("hover")!==-1||Ie.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var de=this.props,Re=de.action,Ie=de.hideAction;return Re.indexOf("hover")!==-1||Ie.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var de=this.props,Re=de.action,Ie=de.showAction;return Re.indexOf("focus")!==-1||Ie.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var de=this.props,Re=de.action,Ie=de.hideAction;return Re.indexOf("focus")!==-1||Ie.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,Re){var Ie=this.props.children.props[de];Ie&&Ie(Re);var at=this.props[de];at&&at(Re)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var de=this.state.popupVisible,Re=this.props,Ie=Re.children,at=Re.forceRender,Ue=Re.alignPoint,lt=Re.className,Ot=Re.autoDestroy,jt=T.Children.only(Ie),Gt={key:"trigger"};this.isContextMenuToShow()?Gt.onContextMenu=this.onContextMenu:Gt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Gt.onClick=this.onClick,Gt.onMouseDown=this.onMouseDown,Gt.onTouchStart=this.onTouchStart):(Gt.onClick=this.createTwoChains("onClick"),Gt.onMouseDown=this.createTwoChains("onMouseDown"),Gt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Gt.onMouseEnter=this.onMouseEnter,Ue&&(Gt.onMouseMove=this.onMouseMove)):Gt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Gt.onMouseLeave=this.onMouseLeave:Gt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Gt.onFocus=this.onFocus,Gt.onBlur=this.onBlur):(Gt.onFocus=this.createTwoChains("onFocus"),Gt.onBlur=this.createTwoChains("onBlur"));var hn=B()(jt&&jt.props&&jt.props.className,lt);hn&&(Gt.className=hn);var In=Object(K.a)({},Gt);Object(tt.c)(jt)&&(In.ref=Object(tt.a)(this.triggerRef,jt.ref));var ar=T.cloneElement(jt,In),nr;return(de||this.popupRef.current||at)&&(nr=T.createElement(Ce,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!de&&Ot&&(nr=null),T.createElement(mn.Provider,{value:this.triggerContextValue},ar,nr)}}],[{key:"getDerivedStateFromProps",value:function(de,Re){var Ie=de.popupVisible,at={};return Ie!==void 0&&Re.popupVisible!==Ie&&(at.popupVisible=Ie,at.prevPopupVisible=Re.popupVisible),at}}]),se}(T.Component);return Ye.contextType=mn,Ye.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:_r,getDocument:Cn,onPopupVisibleChange:br,afterPopupVisibleChange:br,onPopupAlign:br,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 Ur=xr(Ct.a),q={adjustX:1,adjustY:1},De={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]}},Ve={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]}},Be=De,$e=0,qe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ht=function(Ye,et,Oe){var se=ee(et),ye=Ye.getState();Ye.setState({defaultActiveFirst:Object(K.a)(Object(K.a)({},ye.defaultActiveFirst),{},Object(re.a)({},se,Oe))})},Ee=function(Ce){Object(c.a)(et,Ce);var Ye=Object(s.a)(et);function et(Oe){var se;Object(P.a)(this,et),se=Ye.call(this,Oe),se.onDestroy=function(Ue){se.props.onDestroy(Ue)},se.onKeyDown=function(Ue){var lt=Ue.keyCode,Ot=se.menuInstance,jt=se.props.store,Gt=se.getVisible();if(lt===p.a.ENTER)return se.onTitleClick(Ue),ht(jt,se.props.eventKey,!0),!0;if(lt===p.a.RIGHT)return Gt?Ot.onKeyDown(Ue):(se.triggerOpenChange(!0),ht(jt,se.props.eventKey,!0)),!0;if(lt===p.a.LEFT){var hn;if(Gt)hn=Ot.onKeyDown(Ue);else return;return hn||(se.triggerOpenChange(!1),hn=!0),hn}return Gt&&(lt===p.a.UP||lt===p.a.DOWN)?Ot.onKeyDown(Ue):void 0},se.onOpenChange=function(Ue){se.props.onOpenChange(Ue)},se.onPopupVisibleChange=function(Ue){se.triggerOpenChange(Ue,Ue?"mouseenter":"mouseleave")},se.onMouseEnter=function(Ue){var lt=se.props,Ot=lt.eventKey,jt=lt.onMouseEnter,Gt=lt.store;ht(Gt,se.props.eventKey,!1),jt({key:Ot,domEvent:Ue})},se.onMouseLeave=function(Ue){var lt=se.props,Ot=lt.parentMenu,jt=lt.eventKey,Gt=lt.onMouseLeave;Ot.subMenuInstance=Object(h.a)(se),Gt({key:jt,domEvent:Ue})},se.onTitleMouseEnter=function(Ue){var lt=se.props,Ot=lt.eventKey,jt=lt.onItemHover,Gt=lt.onTitleMouseEnter;jt({key:Ot,hover:!0}),Gt({key:Ot,domEvent:Ue})},se.onTitleMouseLeave=function(Ue){var lt=se.props,Ot=lt.parentMenu,jt=lt.eventKey,Gt=lt.onItemHover,hn=lt.onTitleMouseLeave;Ot.subMenuInstance=Object(h.a)(se),Gt({key:jt,hover:!1}),hn({key:jt,domEvent:Ue})},se.onTitleClick=function(Ue){var lt=Object(h.a)(se),Ot=lt.props;if(Ot.onTitleClick({key:Ot.eventKey,domEvent:Ue}),Ot.triggerSubMenuAction==="hover")return;se.triggerOpenChange(!se.getVisible(),"click"),ht(Ot.store,se.props.eventKey,!1)},se.onSubMenuClick=function(Ue){typeof se.props.onClick=="function"&&se.props.onClick(se.addKeyPath(Ue))},se.onSelect=function(Ue){se.props.onSelect(Ue)},se.onDeselect=function(Ue){se.props.onDeselect(Ue)},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(Ue){se.menuInstance=Ue},se.addKeyPath=function(Ue){return Object(K.a)(Object(K.a)({},Ue),{},{keyPath:(Ue.keyPath||[]).concat(se.props.eventKey)})},se.triggerOpenChange=function(Ue,lt){var Ot=se.props.eventKey,jt=function(){se.onOpenChange({key:Ot,item:Object(h.a)(se),trigger:lt,open:Ue})};lt==="mouseenter"?se.mouseenterTimeout=setTimeout(function(){jt()},0):jt()},se.isChildrenSelected=function(){var Ue={find:!1};return Q(se.props.children,se.props.selectedKeys,Ue),Ue.find},se.isInlineMode=function(){return se.getMode()==="inline"},se.adjustWidth=function(){if(!se.subMenuTitle||!se.menuInstance)return;var Ue=Ht.findDOMNode(se.menuInstance);if(Ue.offsetWidth>=se.subMenuTitle.offsetWidth)return;Ue.style.minWidth="".concat(se.subMenuTitle.offsetWidth,"px")},se.saveSubMenuTitle=function(Ue){se.subMenuTitle=Ue},se.getBaseProps=function(){var Ue=Object(h.a)(se),lt=Ue.props,Ot=se.getMode();return{mode:Ot==="horizontal"?"vertical":Ot,visible:se.getVisible(),level:lt.level+1,inlineIndent:lt.inlineIndent,focusable:!1,onClick:se.onSubMenuClick,onSelect:se.onSelect,onDeselect:se.onDeselect,onDestroy:se.onDestroy,selectedKeys:lt.selectedKeys,eventKey:"".concat(lt.eventKey,"-menu-"),openKeys:lt.openKeys,motion:lt.motion,onOpenChange:se.onOpenChange,subMenuOpenDelay:lt.subMenuOpenDelay,parentMenu:Object(h.a)(se),subMenuCloseDelay:lt.subMenuCloseDelay,forceSubMenuRender:lt.forceSubMenuRender,triggerSubMenuAction:lt.triggerSubMenuAction,builtinPlacements:lt.builtinPlacements,defaultActiveFirst:lt.store.getState().defaultActiveFirst[ee(lt.eventKey)],multiple:lt.multiple,prefixCls:lt.rootPrefixCls,id:se.internalMenuId,manualRef:se.saveMenuInstance,itemIcon:lt.itemIcon,expandIcon:lt.expandIcon,direction:lt.direction}},se.getMotion=function(Ue,lt){var Ot=Object(h.a)(se),jt=Ot.haveRendered,Gt=se.props,hn=Gt.motion,In=Gt.rootPrefixCls,ar=Object(K.a)(Object(K.a)({},hn),{},{leavedClassName:"".concat(In,"-hidden"),removeOnLeave:!1,motionAppear:jt||!lt||Ue!=="inline"});return ar};var ye=Oe.store,de=Oe.eventKey,Re=ye.getState(),Ie=Re.defaultActiveFirst;se.isRootMenu=!1;var at=!1;return Ie&&(at=Ie[de]),ht(ye,de,at),se.state={mode:Oe.mode,isOpen:Oe.isOpen},se}return Object(E.a)(et,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var se=this,ye=this.props,de=ye.mode,Re=ye.parentMenu,Ie=ye.manualRef,at=ye.isOpen,Ue=function(){se.setState({mode:de,isOpen:at})},lt=at!==this.state.isOpen,Ot=de!==this.state.mode;if((Ot||lt)&&(Bt.a.cancel(this.updateStateRaf),Ot?this.updateStateRaf=Object(Bt.a)(Ue):Ue()),Ie&&Ie(this),de!=="horizontal"||!(Re==null?void 0:Re.isRootMenu)||!at)return;this.minWidthTimeout=setTimeout(function(){return se.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var se=this.props,ye=se.onDestroy,de=se.eventKey;ye&&ye(de),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Bt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(se,ye){var de=this.getBaseProps();return T.createElement(gn,Object(v.a)({},de,{id:this.internalMenuId,className:se,style:ye}),this.props.children)}},{key:"renderChildren",value:function(){var se=this,ye=this.getBaseProps(),de=ye.mode,Re=ye.visible,Ie=ye.forceSubMenuRender,at=ye.direction,Ue=this.getMotion(de,Re);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Re||Ie,!this.haveOpened)return T.createElement("div",null);var lt=B()("".concat(ye.prefixCls,"-sub"),Object(re.a)({},"".concat(ye.prefixCls,"-rtl"),at==="rtl"));return this.isInlineMode()?T.createElement(te,Object(v.a)({visible:ye.visible,forceRender:Ie},Ue),function(Ot){var jt=Ot.className,Gt=Ot.style,hn=B()(lt,jt);return se.renderPopupMenu(hn,Gt)}):this.renderPopupMenu(lt)}},{key:"render",value:function(){var se,ye,de,Re=Object(K.a)({},this.props),Ie=this.getVisible(),at=this.getPrefixCls(),Ue=this.isInlineMode(),lt=this.getMode(),Ot=B()(at,"".concat(at,"-").concat(lt),(se={},Object(re.a)(se,Re.className,!!Re.className),Object(re.a)(se,this.getOpenClassName(),Ie),Object(re.a)(se,this.getActiveClassName(),Re.active||Ie&&!Ue),Object(re.a)(se,this.getDisabledClassName(),Re.disabled),Object(re.a)(se,this.getSelectedClassName(),this.isChildrenSelected()),se));this.internalMenuId||(Re.eventKey?this.internalMenuId="".concat(Re.eventKey,"$Menu"):($e+=1,this.internalMenuId="$__$".concat($e,"$Menu")));var jt={},Gt={},hn={};Re.disabled||(jt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Gt={onClick:this.onTitleClick},hn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var In={},ar=Re.direction,nr=ar==="rtl";Ue&&(nr?In.paddingRight=Re.inlineIndent*Re.level:In.paddingLeft=Re.inlineIndent*Re.level);var ir={};this.getVisible()&&(ir={"aria-owns":this.internalMenuId});var pr=null;lt!=="horizontal"&&(pr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(pr=T.createElement(this.props.expandIcon,Object(K.a)({},this.props))));var lr=T.createElement("div",Object(v.a)({ref:this.saveSubMenuTitle,style:In,className:"".concat(at,"-title"),role:"button"},hn,Gt,{"aria-expanded":Ie},ir,{"aria-haspopup":"true",title:typeof Re.title=="string"?Re.title:void 0}),Re.title,pr||T.createElement("i",{className:"".concat(at,"-arrow")})),mr=this.renderChildren(),Er=((ye=Re.parentMenu)===null||ye===void 0?void 0:ye.isRootMenu)?Re.parentMenu.props.getPopupContainer:function(Lr){return Lr.parentNode},rr=qe[lt],Tr=Re.popupOffset?{offset:Re.popupOffset}:{},$n=B()((de={},Object(re.a)(de,Re.popupClassName,Re.popupClassName&&!Ue),Object(re.a)(de,"".concat(at,"-rtl"),nr),de)),nn=Re.disabled,_n=Re.triggerSubMenuAction,sn=Re.subMenuOpenDelay,cn=Re.forceSubMenuRender,$t=Re.subMenuCloseDelay,Qn=Re.builtinPlacements;fe.forEach(function(Lr){return delete Re[Lr]}),delete Re.onClick;var jn=nr?Object(K.a)(Object(K.a)({},Ve),Qn):Object(K.a)(Object(K.a)({},De),Qn);delete Re.direction;var yr=this.getBaseProps(),Nr=Ue?null:this.getMotion(yr.mode,yr.visible);return T.createElement("li",Object(v.a)({},Re,jt,{className:Ot,role:"menuitem"}),T.createElement(Ur,{prefixCls:at,popupClassName:B()("".concat(at,"-popup"),$n),getPopupContainer:Er,builtinPlacements:jn,popupPlacement:rr,popupVisible:Ue?!1:Ie,popupAlign:Tr,popup:Ue?null:mr,action:nn||Ue?[]:[_n],mouseEnterDelay:sn,mouseLeaveDelay:$t,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:cn,popupMotion:Nr},lr),Ue?mr:null)}}]),et}(T.Component);Ee.defaultProps={onMouseEnter:Ge,onMouseLeave:Ge,onTitleMouseEnter:Ge,onTitleMouseLeave:Ge,onTitleClick:Ge,manualRef:Ge,mode:"vertical",title:""};var gt=Object(i.b)(function(Ce,Ye){var et=Ce.openKeys,Oe=Ce.activeKey,se=Ce.selectedKeys,ye=Ye.eventKey,de=Ye.subMenuKey;return{isOpen:et.indexOf(ye)>-1,active:Oe[de]===ye,selectedKeys:se}})(Ee);gt.isSubMenu=!0;var yt=gt,Lt="menuitem-overflowed",bt=.5,ut=function(Ce){Object(c.a)(et,Ce);var Ye=Object(s.a)(et);function et(){var Oe;return Object(P.a)(this,et),Oe=Ye.apply(this,arguments),Oe.resizeObserver=null,Oe.mutationObserver=null,Oe.originalTotalWidth=0,Oe.overflowedItems=[],Oe.menuItemSizes=[],Oe.cancelFrameId=null,Oe.state={lastVisibleIndex:void 0},Oe.childRef=T.createRef(),Oe.getMenuItemNodes=function(){var se=Oe.props.prefixCls,ye=Oe.childRef.current;return ye?[].slice.call(ye.children).filter(function(de){return de.className.split(" ").indexOf("".concat(se,"-overflowed-submenu"))<0}):[]},Oe.getOverflowedSubMenuItem=function(se,ye,de){var Re=Oe.props,Ie=Re.overflowedIndicator,at=Re.level,Ue=Re.mode,lt=Re.prefixCls,Ot=Re.theme;if(at!==1||Ue!=="horizontal")return null;var jt=Oe.props.children[0],Gt=jt.props,hn=Gt.children,In=Gt.title,ar=Gt.style,nr=Object(I.a)(Gt,["children","title","style"]),ir=Object(K.a)({},ar),pr="".concat(se,"-overflowed-indicator"),lr="".concat(se,"-overflowed-indicator");ye.length===0&&de!==!0?ir=Object(K.a)(Object(K.a)({},ir),{},{display:"none"}):de&&(ir=Object(K.a)(Object(K.a)({},ir),{},{visibility:"hidden",position:"absolute"}),pr="".concat(pr,"-placeholder"),lr="".concat(lr,"-placeholder"));var mr=Ot?"".concat(lt,"-").concat(Ot):"",Er={};return fe.forEach(function(rr){nr[rr]!==void 0&&(Er[rr]=nr[rr])}),T.createElement(yt,Object(v.a)({title:Ie,className:"".concat(lt,"-overflowed-submenu"),popupClassName:mr},Er,{key:pr,eventKey:lr,disabled:!1,style:ir}),ye)},Oe.setChildrenWidthAndResize=function(){if(Oe.props.mode!=="horizontal")return;var se=Oe.childRef.current;if(!se)return;var ye=se.children;if(!ye||ye.length===0)return;var de=se.children[ye.length-1];Fe(de,"display","inline-block");var Re=Oe.getMenuItemNodes(),Ie=Re.filter(function(at){return at.className.split(" ").indexOf(Lt)>=0});Ie.forEach(function(at){Fe(at,"display","inline-block")}),Oe.menuItemSizes=Re.map(function(at){return _e(at,!0)}),Ie.forEach(function(at){Fe(at,"display","none")}),Oe.overflowedIndicatorWidth=_e(se.children[se.children.length-1],!0),Oe.originalTotalWidth=Oe.menuItemSizes.reduce(function(at,Ue){return at+Ue},0),Oe.handleResize(),Fe(de,"display","none")},Oe.handleResize=function(){if(Oe.props.mode!=="horizontal")return;var se=Oe.childRef.current;if(!se)return;var ye=_e(se);Oe.overflowedItems=[];var de=0,Re;Oe.originalTotalWidth>ye+bt&&(Re=-1,Oe.menuItemSizes.forEach(function(Ie){de+=Ie,de+Oe.overflowedIndicatorWidth<=ye&&(Re+=1)})),Oe.setState({lastVisibleIndex:Re})},Oe}return Object(E.a)(et,[{key:"componentDidMount",value:function(){var se=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var ye=this.childRef.current;if(!ye)return;this.resizeObserver=new Rt.default(function(de){de.forEach(function(){var Re=se.cancelFrameId;cancelAnimationFrame(Re),se.cancelFrameId=requestAnimationFrame(se.setChildrenWidthAndResize)})}),[].slice.call(ye.children).concat(ye).forEach(function(de){se.resizeObserver.observe(de)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){se.resizeObserver.disconnect(),[].slice.call(ye.children).concat(ye).forEach(function(de){se.resizeObserver.observe(de)}),se.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(se){var ye=this,de=this.state.lastVisibleIndex;return(se||[]).reduce(function(Re,Ie,at){var Ue=Ie;if(ye.props.mode==="horizontal"){var lt=ye.getOverflowedSubMenuItem(Ie.props.eventKey,[]);de!==void 0&&ye.props.className.indexOf("".concat(ye.props.prefixCls,"-root"))!==-1&&(at>de&&(Ue=T.cloneElement(Ie,{style:{display:"none"},eventKey:"".concat(Ie.props.eventKey,"-hidden"),className:"".concat(Lt)})),at===de+1&&(ye.overflowedItems=se.slice(de+1).map(function(jt){return T.cloneElement(jt,{key:jt.props.eventKey,mode:"vertical-left"})}),lt=ye.getOverflowedSubMenuItem(Ie.props.eventKey,ye.overflowedItems)));var Ot=[].concat(Object(D.a)(Re),[lt,Ue]);return at===se.length-1&&Ot.push(ye.getOverflowedSubMenuItem(Ie.props.eventKey,[],!0)),Ot}return[].concat(Object(D.a)(Re),[Ue])},[])}},{key:"render",value:function(){var se=this.props,ye=se.visible,de=se.prefixCls,Re=se.overflowedIndicator,Ie=se.mode,at=se.level,Ue=se.tag,lt=se.children,Ot=se.theme,jt=Object(I.a)(se,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Gt=Ue;return T.createElement(Gt,Object(v.a)({ref:this.childRef},jt),this.renderChildren(lt))}}]),et}(T.Component);ut.defaultProps={tag:"div",className:""};var kt=ut;function Mt(Ce){return Ce.length?Ce.every(function(Ye){return!!Ye.props.disabled}):!0}function Le(Ce,Ye,et){var Oe=Ce.getState();Ce.setState({activeKey:Object(K.a)(Object(K.a)({},Oe.activeKey),{},Object(re.a)({},Ye,et))})}function mt(Ce){return Ce.eventKey||"0-menu-"}function Pt(Ce,Ye){var et=Ye,Oe=Ce.children,se=Ce.eventKey;if(et){var ye;if(V(Oe,function(de,Re){de&&de.props&&!de.props.disabled&&et===it(de,se,Re)&&(ye=!0)}),ye)return et}return et=null,Ce.defaultActiveFirst&&V(Oe,function(de,Re){!et&&de&&!de.props.disabled&&(et=it(de,se,Re))}),et}function Jt(Ce){if(!Ce)return;var Ye=this.instanceArray.indexOf(Ce);Ye!==-1?this.instanceArray[Ye]=Ce:this.instanceArray.push(Ce)}var Nt=function(Ce){Object(c.a)(et,Ce);var Ye=Object(s.a)(et);function et(Oe){var se;return Object(P.a)(this,et),se=Ye.call(this,Oe),se.onKeyDown=function(ye,de){var Re=ye.keyCode,Ie;if(se.getFlatInstanceArray().forEach(function(Ue){Ue&&Ue.props.active&&Ue.onKeyDown&&(Ie=Ue.onKeyDown(ye))}),Ie)return 1;var at=null;return(Re===p.a.UP||Re===p.a.DOWN)&&(at=se.step(Re===p.a.UP?-1:1)),at?(ye.preventDefault(),Le(se.props.store,mt(se.props),at.props.eventKey),typeof de=="function"&&de(at),1):void 0},se.onItemHover=function(ye){var de=ye.key,Re=ye.hover;Le(se.props.store,mt(se.props),Re?de:null)},se.onDeselect=function(ye){se.props.onDeselect(ye)},se.onSelect=function(ye){se.props.onSelect(ye)},se.onClick=function(ye){se.props.onClick(ye)},se.onOpenChange=function(ye){se.props.onOpenChange(ye)},se.onDestroy=function(ye){se.props.onDestroy(ye)},se.getFlatInstanceArray=function(){return se.instanceArray},se.step=function(ye){var de=se.getFlatInstanceArray(),Re=se.props.store.getState().activeKey[mt(se.props)],Ie=de.length;if(!Ie)return null;ye<0&&(de=de.concat().reverse());var at=-1;if(de.every(function(jt,Gt){return jt&&jt.props.eventKey===Re?(at=Gt,!1):!0}),!se.props.defaultActiveFirst&&at!==-1&&Mt(de.slice(at,Ie-1)))return;var Ue=(at+1)%Ie,lt=Ue;do{var Ot=de[lt];if(!Ot||Ot.props.disabled)lt=(lt+1)%Ie;else return Ot}while(lt!==Ue);return null},se.renderCommonMenuItem=function(ye,de,Re){var Ie=se.props.store.getState(),at=Object(h.a)(se),Ue=at.props,lt=it(ye,Ue.eventKey,de),Ot=ye.props;if(!Ot||typeof ye.type=="string")return ye;var jt=lt===Ie.activeKey,Gt=Object(K.a)(Object(K.a)({mode:Ot.mode||Ue.mode,level:Ue.level,inlineIndent:Ue.inlineIndent,renderMenuItem:se.renderMenuItem,rootPrefixCls:Ue.prefixCls,index:de,parentMenu:Ue.parentMenu,manualRef:Ot.disabled?void 0:Object(_.a)(ye.ref,Jt.bind(Object(h.a)(se))),eventKey:lt,active:!Ot.disabled&&jt,multiple:Ue.multiple,onClick:function(In){(Ot.onClick||Ge)(In),se.onClick(In)},onItemHover:se.onItemHover,motion:Ue.motion,subMenuOpenDelay:Ue.subMenuOpenDelay,subMenuCloseDelay:Ue.subMenuCloseDelay,forceSubMenuRender:Ue.forceSubMenuRender,onOpenChange:se.onOpenChange,onDeselect:se.onDeselect,onSelect:se.onSelect,builtinPlacements:Ue.builtinPlacements,itemIcon:Ot.itemIcon||se.props.itemIcon,expandIcon:Ot.expandIcon||se.props.expandIcon},Re),{},{direction:Ue.direction});return(Ue.mode==="inline"||He())&&(Gt.triggerSubMenuAction="click"),T.cloneElement(ye,Object(K.a)(Object(K.a)({},Gt),{},{key:lt||de}))},se.renderMenuItem=function(ye,de,Re){if(!ye)return null;var Ie=se.props.store.getState(),at={openKeys:Ie.openKeys,selectedKeys:Ie.selectedKeys,triggerSubMenuAction:se.props.triggerSubMenuAction,subMenuKey:Re};return se.renderCommonMenuItem(ye,de,at)},Oe.store.setState({activeKey:Object(K.a)(Object(K.a)({},Oe.store.getState().activeKey),{},Object(re.a)({},Oe.eventKey,Pt(Oe,Oe.activeKey)))}),se.instanceArray=[],se}return Object(E.a)(et,[{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 ye=this.props,de="activeKey"in ye?ye.activeKey:ye.store.getState().activeKey[mt(ye)],Re=Pt(ye,de);if(Re!==de)Le(ye.store,mt(ye),Re);else if("activeKey"in se){var Ie=Pt(se,se.activeKey);Re!==Ie&&Le(ye.store,mt(ye),Re)}}},{key:"render",value:function(){var se=this,ye=Object(v.a)({},this.props);this.instanceArray=[];var de=B()(ye.prefixCls,ye.className,"".concat(ye.prefixCls,"-").concat(ye.mode)),Re={className:de,role:ye.role||"menu"};ye.id&&(Re.id=ye.id),ye.focusable&&(Re.tabIndex=0,Re.onKeyDown=this.onKeyDown);var Ie=ye.prefixCls,at=ye.eventKey,Ue=ye.visible,lt=ye.level,Ot=ye.mode,jt=ye.overflowedIndicator,Gt=ye.theme;return fe.forEach(function(hn){return delete ye[hn]}),delete ye.onClick,T.createElement(kt,Object(v.a)({},ye,{prefixCls:Ie,mode:Ot,tag:"ul",level:lt,theme:Gt,visible:Ue,overflowedIndicator:jt},Re),Object(x.a)(ye.children).map(function(hn,In){return se.renderMenuItem(hn,In,at||"0-menu-")}))}}]),et}(T.Component);Nt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ge};var Sn=Object(i.b)()(Nt),gn=Sn,un=F("Kwbf");function Mn(Ce,Ye,et){var Oe=Ce.prefixCls,se=Ce.motion,ye=Ce.defaultMotions,de=ye===void 0?{}:ye,Re=Ce.openAnimation,Ie=Ce.openTransitionName,at=Ye.switchingModeFromInline;if(se)return se;if(Object(U.a)(Re)==="object"&&Re)Object(un.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Re=="string")return{motionName:"".concat(Oe,"-open-").concat(Re)};if(Ie)return{motionName:Ie};var Ue=de[et];return Ue||(at?null:de.other)}var Rn=function(Ce){Object(c.a)(et,Ce);var Ye=Object(s.a)(et);function et(Oe){var se;Object(P.a)(this,et),se=Ye.call(this,Oe),se.onSelect=function(Re){var Ie=Object(h.a)(se),at=Ie.props;if(at.selectable){var Ue=se.store.getState(),lt=Ue.selectedKeys,Ot=Re.key;at.multiple?lt=lt.concat([Ot]):lt=[Ot],"selectedKeys"in at||se.store.setState({selectedKeys:lt}),at.onSelect(Object(K.a)(Object(K.a)({},Re),{},{selectedKeys:lt}))}},se.onClick=function(Re){var Ie=se.getRealMenuMode(),at=Object(h.a)(se),Ue=at.store,lt=at.props.onOpenChange;Ie!=="inline"&&!("openKeys"in se.props)&&(Ue.setState({openKeys:[]}),lt([])),se.props.onClick(Re)},se.onKeyDown=function(Re,Ie){se.innerMenu.getWrappedInstance().onKeyDown(Re,Ie)},se.onOpenChange=function(Re){var Ie=Object(h.a)(se),at=Ie.props,Ue=se.store.getState().openKeys.concat(),lt=!1,Ot=function(Gt){var hn=!1;if(Gt.open)hn=Ue.indexOf(Gt.key)===-1,hn&&Ue.push(Gt.key);else{var In=Ue.indexOf(Gt.key);hn=In!==-1,hn&&Ue.splice(In,1)}lt=lt||hn};Array.isArray(Re)?Re.forEach(Ot):Ot(Re),lt&&("openKeys"in se.props||se.store.setState({openKeys:Ue}),at.onOpenChange(Ue))},se.onDeselect=function(Re){var Ie=Object(h.a)(se),at=Ie.props;if(at.selectable){var Ue=se.store.getState().selectedKeys.concat(),lt=Re.key,Ot=Ue.indexOf(lt);Ot!==-1&&Ue.splice(Ot,1),"selectedKeys"in at||se.store.setState({selectedKeys:Ue}),at.onDeselect(Object(K.a)(Object(K.a)({},Re),{},{selectedKeys:Ue}))}},se.onMouseEnter=function(Re){se.restoreModeVerticalFromInline();var Ie=se.props.onMouseEnter;Ie&&Ie(Re)},se.onTransitionEnd=function(Re){var Ie=Re.propertyName==="width"&&Re.target===Re.currentTarget,at=Re.target.className,Ue=Object.prototype.toString.call(at)==="[object SVGAnimatedString]"?at.animVal:at,lt=Re.propertyName==="font-size"&&Ue.indexOf("anticon")>=0;(Ie||lt)&&se.restoreModeVerticalFromInline()},se.setInnerMenu=function(Re){se.innerMenu=Re},se.isRootMenu=!0;var ye=Oe.defaultSelectedKeys,de=Oe.defaultOpenKeys;return"selectedKeys"in Oe&&(ye=Oe.selectedKeys||[]),"openKeys"in Oe&&(de=Oe.openKeys||[]),se.store=Object(i.c)({selectedKeys:ye,openKeys:de,activeKey:{"0-menu-":Pt(Oe,Oe.activeKey)}}),se.state={switchingModeFromInline:!1,prevProps:Oe,inlineOpenKeys:[],store:se.store},se}return Object(E.a)(et,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(se){var ye=this.props,de=ye.siderCollapsed,Re=ye.inlineCollapsed,Ie=ye.onOpenChange;(!se.inlineCollapsed&&Re||!se.siderCollapsed&&de)&&Ie([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var se=this.props.collapsedWidth,ye=this.store,de=this.prevOpenKeys,Re=this.getInlineCollapsed()&&(se===0||se==="0"||se==="0px");Re?(this.prevOpenKeys=ye.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,ye=this.state.switchingModeFromInline,de=this.getInlineCollapsed();return ye&&de?"inline":de?"vertical":se}},{key:"getInlineCollapsed",value:function(){var se=this.props,ye=se.inlineCollapsed,de=se.siderCollapsed;return de!==void 0?de:ye}},{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(K.a)({},Object(C.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),ye=this.getRealMenuMode();return se.className+=" ".concat(se.prefixCls,"-root"),se.direction==="rtl"&&(se.className+=" ".concat(se.prefixCls,"-rtl")),se=Object(K.a)(Object(K.a)({},se),{},{mode:ye,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Mn(this.props,this.state,ye)}),delete se.openAnimation,delete se.openTransitionName,T.createElement(i.a,{store:this.store},T.createElement(gn,Object(v.a)({},se,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(se,ye){var de=ye.prevProps,Re=ye.store,Ie=Re.getState(),at={},Ue={prevProps:se};return de.mode==="inline"&&se.mode!=="inline"&&(Ue.switchingModeFromInline=!0),"openKeys"in se?at.openKeys=se.openKeys||[]:((se.inlineCollapsed&&!de.inlineCollapsed||se.siderCollapsed&&!de.siderCollapsed)&&(Ue.switchingModeFromInline=!0,Ue.inlineOpenKeys=Ie.openKeys,at.openKeys=[]),(!se.inlineCollapsed&&de.inlineCollapsed||!se.siderCollapsed&&de.siderCollapsed)&&(at.openKeys=ye.inlineOpenKeys,Ue.inlineOpenKeys=[])),Object.keys(at).length&&Re.setState(at),Ue}}]),et}(T.Component);Rn.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:T.createElement("span",null,"\xB7\xB7\xB7")};var vt=Rn,Xt=function(Ce){Object(c.a)(et,Ce);var Ye=Object(s.a)(et);function et(){var Oe;return Object(P.a)(this,et),Oe=Ye.apply(this,arguments),Oe.onKeyDown=function(se){var ye=se.keyCode;return ye===p.a.ENTER?(Oe.onClick(se),!0):void 0},Oe.onMouseLeave=function(se){var ye=Oe.props,de=ye.eventKey,Re=ye.onItemHover,Ie=ye.onMouseLeave;Re({key:de,hover:!1}),Ie({key:de,domEvent:se})},Oe.onMouseEnter=function(se){var ye=Oe.props,de=ye.eventKey,Re=ye.onItemHover,Ie=ye.onMouseEnter;Re({key:de,hover:!0}),Ie({key:de,domEvent:se})},Oe.onClick=function(se){var ye=Oe.props,de=ye.eventKey,Re=ye.multiple,Ie=ye.onClick,at=ye.onSelect,Ue=ye.onDeselect,lt=ye.isSelected,Ot={key:de,keyPath:[de],item:Object(h.a)(Oe),domEvent:se};Ie(Ot),Re?lt?Ue(Ot):at(Ot):lt||at(Ot)},Oe.saveNode=function(se){Oe.node=se},Oe}return Object(E.a)(et,[{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,ye=Object(K.a)({},this.props),de=B()(this.getPrefixCls(),ye.className,(se={},Object(re.a)(se,this.getActiveClassName(),!ye.disabled&&ye.active),Object(re.a)(se,this.getSelectedClassName(),ye.isSelected),Object(re.a)(se,this.getDisabledClassName(),ye.disabled),se)),Re=Object(K.a)(Object(K.a)({},ye.attribute),{},{title:typeof ye.title=="string"?ye.title:void 0,className:de,role:ye.role||"menuitem","aria-disabled":ye.disabled});ye.role==="option"?Re=Object(K.a)(Object(K.a)({},Re),{},{role:"option","aria-selected":ye.isSelected}):(ye.role===null||ye.role==="none")&&(Re.role="none");var Ie={onClick:ye.disabled?null:this.onClick,onMouseLeave:ye.disabled?null:this.onMouseLeave,onMouseEnter:ye.disabled?null:this.onMouseEnter},at=Object(K.a)({},ye.style);ye.mode==="inline"&&(ye.direction==="rtl"?at.paddingRight=ye.inlineIndent*ye.level:at.paddingLeft=ye.inlineIndent*ye.level),fe.forEach(function(lt){return delete ye[lt]}),delete ye.direction;var Ue=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Ue=T.createElement(this.props.itemIcon,this.props)),T.createElement("li",Object(v.a)({},Object(C.a)(ye,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Re,Ie,{style:at,ref:this.saveNode}),ye.children,Ue)}}]),et}(T.Component);Xt.isMenuItem=!0,Xt.defaultProps={onSelect:Ge,onMouseEnter:Ge,onMouseLeave:Ge,manualRef:Ge};var Tt=Object(i.b)(function(Ce,Ye){var et=Ce.activeKey,Oe=Ce.selectedKeys,se=Ye.eventKey,ye=Ye.subMenuKey;return{active:et[ye]===se,isSelected:Array.isArray(Oe)?Oe.indexOf(se)!==-1:Oe===se}})(Xt),Tn=Tt,zt=function(Ce){Object(c.a)(et,Ce);var Ye=Object(s.a)(et);function et(){var Oe;return Object(P.a)(this,et),Oe=Ye.apply(this,arguments),Oe.renderInnerMenuItem=function(se){var ye=Oe.props,de=ye.renderMenuItem,Re=ye.index;return de(se,Re,Oe.props.subMenuKey)},Oe}return Object(E.a)(et,[{key:"render",value:function(){var se=Object(v.a)({},this.props),ye=se.className,de=ye===void 0?"":ye,Re=se.rootPrefixCls,Ie="".concat(Re,"-item-group-title"),at="".concat(Re,"-item-group-list"),Ue=se.title,lt=se.children;return fe.forEach(function(Ot){return delete se[Ot]}),delete se.direction,T.createElement("li",Object(v.a)({},se,{onClick:function(jt){return jt.stopPropagation()},className:"".concat(de," ").concat(Re,"-item-group")}),T.createElement("div",{className:Ie,title:typeof Ue=="string"?Ue:void 0},Ue),T.createElement("ul",{className:at},T.Children.map(lt,this.renderInnerMenuItem)))}}]),et}(T.Component);zt.isMenuItemGroup=!0,zt.defaultProps={disabled:!0};var En=zt,wn=function(Ye){var et=Ye.className,Oe=Ye.rootPrefixCls,se=Ye.style;return T.createElement("li",{className:"".concat(et," ").concat(Oe,"-item-divider"),style:se})};wn.defaultProps={disabled:!0,className:"",style:{}};var Yn=wn,Ln=vt,yn=F("eDIo");function sr(Ce,Ye){var et=Ce.prefixCls,Oe=Ce.editable,se=Ce.locale,ye=Ce.style;return!Oe||Oe.showAdd===!1?null:T.createElement("button",{ref:Ye,type:"button",className:"".concat(et,"-nav-add"),style:ye,"aria-label":(se==null?void 0:se.addAriaLabel)||"Add tab",onClick:function(Re){Oe.onEdit("add",{event:Re})}},Oe.addIcon||"+")}var Fn=T.forwardRef(sr);function Ir(Ce,Ye){var et=Ce.prefixCls,Oe=Ce.id,se=Ce.tabs,ye=Ce.locale,de=Ce.mobile,Re=Ce.moreIcon,Ie=Re===void 0?"More":Re,at=Ce.moreTransitionName,Ue=Ce.style,lt=Ce.className,Ot=Ce.editable,jt=Ce.tabBarGutter,Gt=Ce.rtl,hn=Ce.onTabClick,In=Object(T.useState)(!1),ar=Object(z.a)(In,2),nr=ar[0],ir=ar[1],pr=Object(T.useState)(null),lr=Object(z.a)(pr,2),mr=lr[0],Er=lr[1],rr="".concat(Oe,"-more-popup"),Tr="".concat(et,"-dropdown"),$n=mr!==null?"".concat(rr,"-").concat(mr):null,nn=ye==null?void 0:ye.dropdownAriaLabel,_n=T.createElement(Ln,{onClick:function(Nr){var Lr=Nr.key,Or=Nr.domEvent;hn(Lr,Or),ir(!1)},id:rr,tabIndex:-1,role:"listbox","aria-activedescendant":$n,selectedKeys:[mr],"aria-label":nn!==void 0?nn:"expanded dropdown"},se.map(function(yr){return T.createElement(Tn,{key:yr.key,id:"".concat(rr,"-").concat(yr.key),role:"option","aria-controls":Oe&&"".concat(Oe,"-panel-").concat(yr.key),disabled:yr.disabled},yr.tab)}));function sn(yr){for(var Nr=se.filter(function(ua){return!ua.disabled}),Lr=Nr.findIndex(function(ua){return ua.key===mr})||0,Or=Nr.length,kr=0;krQn?(cn=_n,rr.current="x"):(cn=sn,rr.current="y");var jn=Date.now();jn-mr.current>100&&(Er.current=!1),(Ye(-cn,-cn)||Er.current)&&(nn.preventDefault(),Er.current=!0),mr.current=jn}var $n=Object(T.useRef)(null);$n.current={onTouchStart:ir,onTouchMove:pr,onTouchEnd:lr,onWheel:Tr},T.useEffect(function(){function nn($t){$n.current.onTouchStart($t)}function _n($t){$n.current.onTouchMove($t)}function sn($t){$n.current.onTouchEnd($t)}function cn($t){$n.current.onWheel($t)}return document.addEventListener("touchmove",_n,{passive:!1}),document.addEventListener("touchend",sn,{passive:!1}),Ce.current.addEventListener("touchstart",nn,{passive:!1}),Ce.current.addEventListener("wheel",cn),function(){document.removeEventListener("touchmove",_n),document.removeEventListener("touchend",sn)}},[])}function ta(){var Ce=Object(T.useRef)(new Map);function Ye(Oe){return Ce.current.has(Oe)||Ce.current.set(Oe,T.createRef()),Ce.current.get(Oe)}function et(Oe){Ce.current.delete(Oe)}return[Ye,et]}function pa(Ce,Ye){var et=T.useRef(Ce),Oe=T.useState({}),se=Object(z.a)(Oe,2),ye=se[1];function de(Re){var Ie=typeof Re=="function"?Re(et.current):Re;Ie!==et.current&&Ye(Ie,et.current),et.current=Ie,ye({})}return[et.current,de]}var ma=function(Ye){var et=Ye.position,Oe=Ye.prefixCls,se=Ye.extra;if(!se)return null;var ye,de=se;return et==="right"&&(ye=de.right||!de.left&&de||null),et==="left"&&(ye=de.left||null),ye?T.createElement("div",{className:"".concat(Oe,"-extra-content")},ye):null};function Ga(Ce,Ye){var et,Oe=T.useContext(Mr),se=Oe.prefixCls,ye=Oe.tabs,de=Ce.className,Re=Ce.style,Ie=Ce.id,at=Ce.animated,Ue=Ce.activeKey,lt=Ce.rtl,Ot=Ce.extra,jt=Ce.editable,Gt=Ce.locale,hn=Ce.tabPosition,In=Ce.tabBarGutter,ar=Ce.children,nr=Ce.onTabClick,ir=Ce.onTabScroll,pr=Object(T.useRef)(),lr=Object(T.useRef)(),mr=Object(T.useRef)(),Er=Object(T.useRef)(),rr=ta(),Tr=Object(z.a)(rr,2),$n=Tr[0],nn=Tr[1],_n=hn==="top"||hn==="bottom",sn=pa(0,function(Kr,Rr){_n&&ir&&ir({direction:Kr>Rr?"left":"right"})}),cn=Object(z.a)(sn,2),$t=cn[0],Qn=cn[1],jn=pa(0,function(Kr,Rr){!_n&&ir&&ir({direction:Kr>Rr?"top":"bottom"})}),yr=Object(z.a)(jn,2),Nr=yr[0],Lr=yr[1],Or=Object(T.useState)(0),kr=Object(z.a)(Or,2),ur=kr[0],ua=kr[1],Ja=Object(T.useState)(0),Na=Object(z.a)(Ja,2),wa=Na[0],Qr=Na[1],Gr=Object(T.useState)(0),Xr=Object(z.a)(Gr,2),Jr=Xr[0],ja=Xr[1],fi=Object(T.useState)(0),si=Object(z.a)(fi,2),Vr=si[0],Za=si[1],qa=Object(T.useState)(null),$r=Object(z.a)(qa,2),zr=$r[0],ba=$r[1],Li=Object(T.useState)(null),no=Object(z.a)(Li,2),li=no[0],wi=no[1],Si=Object(T.useState)(0),Ti=Object(z.a)(Si,2),ki=Ti[0],co=Ti[1],Ro=Object(T.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=f(ye,fo,ur),Ai="".concat(se,"-nav-operations-hidden"),bi=0,ka=0;_n?lt?(bi=0,ka=Math.max(0,ur-zr)):(bi=Math.min(0,zr-ur),ka=0):(bi=Math.min(0,li-wa),ka=0);function hi(Kr){return Krka?[ka,!1]:[Kr,!0]}var pi=Object(T.useRef)(),Ei=Object(T.useState)(),mi=Object(z.a)(Ei,2),Yi=mi[0],$i=mi[1];function Qi(){$i(Date.now())}function Ii(){window.clearTimeout(pi.current)}Yr(pr,function(Kr,Rr){var la=!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 la=Bi,Fi})}if(_n){if(zr>=ur)return la;Ua(Qn,Kr)}else{if(li>=wa)return la;Ua(Lr,Rr)}return Ii(),Qi(),la}),Object(T.useEffect)(function(){return Ii(),Yi&&(pi.current=window.setTimeout(function(){$i(0)},100)),Ii},[Yi]);function ui(){var Kr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ue,Rr=Di.get(Kr);if(!Rr)return;if(_n){var la=$t;lt?Rr.right<$t?la=Rr.right:Rr.right+Rr.width>$t+zr&&(la=Rr.right+Rr.width-zr):Rr.left<-$t?la=-Rr.left:Rr.left+Rr.width>-$t+zr&&(la=-(Rr.left+Rr.width-zr)),Lr(0),Qn(hi(la)[0])}else{var Ua=Nr;Rr.top<-Nr?Ua=-Rr.top:Rr.top+Rr.height>-Nr+li&&(Ua=-(Rr.top+Rr.height-li)),Qn(0),Lr(hi(Ua)[0])}}var xi=b(Di,{width:zr,height:li,left:$t,top:Nr},{width:Jr,height:Vr},{width:ki,height:Oi},Object(K.a)(Object(K.a)({},Ce),{},{tabs:ye})),ro=Object(z.a)(xi,2),Do=ro[0],Ao=ro[1],ho=ye.map(function(Kr){var Rr=Kr.key;return T.createElement(o,{id:Ie,prefixCls:se,key:Rr,rtl:lt,tab:Kr,closable:Kr.closable,editable:jt,active:Rr===Ue,tabPosition:hn,tabBarGutter:In,renderWrapper:ar,removeAriaLabel:Gt==null?void 0:Gt.removeAriaLabel,ref:$n(Rr),onClick:function(Ua){nr(Rr,Ua)},onRemove:function(){nn(Rr)},onFocus:function(){ui(Rr),Qi(),lt||(pr.current.scrollLeft=0),pr.current.scrollTop=0}})}),ao=g(function(){var Kr,Rr,la,Ua,Pi,ci,Ui,di,Ea,Fi=((Kr=pr.current)===null||Kr===void 0?void 0:Kr.offsetWidth)||0,Bi=((Rr=pr.current)===null||Rr===void 0?void 0:Rr.offsetHeight)||0,Wi=((la=Er.current)===null||la===void 0?void 0:la.offsetWidth)||0,Ka=((Ua=Er.current)===null||Ua===void 0?void 0:Ua.offsetHeight)||0,Hr=((Pi=mr.current)===null||Pi===void 0?void 0:Pi.offsetWidth)||0,gr=((ci=mr.current)===null||ci===void 0?void 0:ci.offsetHeight)||0;ba(Fi),wi(Bi),co(Wi),Vi(Ka);var Pn=(((Ui=lr.current)===null||Ui===void 0?void 0:Ui.offsetWidth)||0)-Wi,er=(((di=lr.current)===null||di===void 0?void 0:di.offsetHeight)||0)-Ka;ua(Pn),Qr(er);var wr=(Ea=mr.current)===null||Ea===void 0?void 0:Ea.className.includes(Ai);ja(Pn-(wr?0:Hr)),Za(er-(wr?0:gr)),Xi(function(){var aa=new Map;return ye.forEach(function(vi){var ii=vi.key,Da=$n(ii).current;Da&&aa.set(ii,{width:Da.offsetWidth,height:Da.offsetHeight,left:Da.offsetLeft,top:Da.offsetTop})}),aa})}),po=ye.slice(0,Do),Ha=ye.slice(Ao+1),ca=[].concat(Object(D.a)(po),Object(D.a)(Ha)),Ra=Object(T.useState)(),da=Object(z.a)(Ra,2),Ni=da[0],mo=da[1],ei=Di.get(Ue),io=Object(T.useRef)();function oo(){R.a.cancel(io.current)}Object(T.useEffect)(function(){var Kr={};return ei&&(_n?(lt?Kr.right=ei.right:Kr.left=ei.left,Kr.width=ei.width):(Kr.top=ei.top,Kr.height=ei.height)),oo(),io.current=R()(function(){mo(Kr)}),oo},[ei,_n,lt]),Object(T.useEffect)(function(){ui()},[Ue,ei,Di,_n]),Object(T.useEffect)(function(){ao()},[lt,In,Ue,ye.map(function(Kr){return Kr.key}).join("_")]);var so=!!ca.length,_i="".concat(se,"-nav-wrap"),Ji,ji,vo,Zi;return _n?lt?(ji=$t>0,Ji=$t+zr */rt.read=function(F,re,z,I,K){var T,w,B=K*8-I-1,x=(1<>1,D=-7,m=z?K-1:0,R=z?-1:1,M=F[re+m];for(m+=R,T=M&(1<<-D)-1,M>>=-D,D+=B;D>0;T=T*256+F[re+m],m+=R,D-=8);for(w=T&(1<<-D)-1,T>>=-D,D+=I;D>0;w=w*256+F[re+m],m+=R,D-=8);if(T===0)T=1-k;else{if(T===x)return w?NaN:(M?-1:1)*Infinity;w=w+Math.pow(2,I),T=T-k}return(M?-1:1)*w*Math.pow(2,T-I)},rt.write=function(F,re,z,I,K,T){var w,B,x,k=T*8-K-1,D=(1<>1,R=K===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=I?0:T-1,g=I?1:-1,n=re<0||re===0&&1/re<0?1:0;for(re=Math.abs(re),isNaN(re)||re===Infinity?(B=isNaN(re)?1:0,w=D):(w=Math.floor(Math.log(re)/Math.LN2),re*(x=Math.pow(2,-w))<1&&(w--,x*=2),w+m>=1?re+=R/x:re+=R*Math.pow(2,1-m),re*x>=2&&(w++,x/=2),w+m>=D?(B=0,w=D):w+m>=1?(B=(re*x-1)*Math.pow(2,K),w=w+m):(B=re*Math.pow(2,m-1)*Math.pow(2,K),w=0));K>=8;F[z+M]=B&255,M+=g,B/=256,K-=8);for(w=w<0;F[z+M]=w&255,M+=g,w/=256,k-=8);F[z+M-g]|=n*128}},lZu9:function(an,rt,F){(function(re){re(F("VrN/"),F("1eCo"),F("8EBN"))})(function(re){"use strict";re.defineMode("markdown",function(z,I){var K=re.getMode(z,"text/html"),T=K.name=="null";function w(L){if(re.findModeByName){var W=re.findModeByName(L);W&&(L=W.mime||W.mimes[0])}var Z=re.getMode(z,L);return Z.name=="null"?null:Z}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 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 x in B)B.hasOwnProperty(x)&&I.tokenTypeOverrides[x]&&(B[x]=I.tokenTypeOverrides[x]);var k=/^([*\-_])(?:\s*\1){2,}\s*$/,D=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,m=/^\[(x| )\](?=\s)/i,R=I.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,M=/^ {0,3}(?:\={1,}|-{2,})\s*$/,g=/^[^#!\[\]*_\\<>` "'(~:]+/,n=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,p=/^\s*\[[^\]]+?\]:.*$/,d=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,o=" ";function u(L,W,Z){return W.f=W.inline=Z,Z(L,W)}function f(L,W,Z){return W.f=W.block=Z,Z(L,W)}function S(L){return!L||!/\S/.test(L.string)}function b(L){if(L.linkTitle=!1,L.linkHref=!1,L.linkText=!1,L.em=!1,L.strong=!1,L.strikethrough=!1,L.quote=0,L.indentedCode=!1,L.f==P){var W=T;if(!W){var Z=re.innerMode(K,L.htmlState);W=Z.mode.name=="xml"&&Z.state.tagStart===null&&!Z.state.context&&Z.state.tokenize.isInText}W&&(L.f=s,L.block=v,L.htmlState=null)}return L.trailingSpace=0,L.trailingSpaceNewLine=!1,L.prevLine=L.thisLine,L.thisLine={stream:null},null}function v(L,W){var Z=L.column()===W.indentation,oe=S(W.prevLine.stream),ie=W.indentedCode,be=W.prevLine.hr,Je=W.list!==!1,Ae=(W.listStack[W.listStack.length-1]||0)+3;W.indentedCode=!1;var ke=W.indentation;if(W.indentationDiff===null&&(W.indentationDiff=W.indentation,Je)){for(W.list=null;ke=4&&(ie||W.prevLine.fencedCodeEnd||W.prevLine.header||oe))return L.skipToEnd(),W.indentedCode=!0,B.code;if(L.eatSpace())return null;if(Z&&W.indentation<=Ae&&(Pe=L.match(R))&&Pe[1].length<=6)return W.quote=0,W.header=Pe[1].length,W.thisLine.header=!0,I.highlightFormatting&&(W.formatting="header"),W.f=W.inline,h(W);if(W.indentation<=Ae&&L.eat(">"))return W.quote=Z?1:W.quote+1,I.highlightFormatting&&(W.formatting="quote"),L.eatSpace(),h(W);if(!Xe&&!W.setext&&Z&&W.indentation<=Ae&&(Pe=L.match(D))){var he=Pe[1]?"ol":"ul";return W.indentation=ke+L.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,I.taskLists&&L.match(m,!1)&&(W.taskList=!0),W.f=W.inline,I.highlightFormatting&&(W.formatting=["list","list-"+he]),h(W)}else{if(Z&&W.indentation<=Ae&&(Pe=L.match(n,!0)))return W.quote=0,W.fencedEndRE=new RegExp(Pe[1]+"+ *$"),W.localMode=I.fencedCodeBlockHighlighting&&w(Pe[2]||I.fencedCodeBlockDefaultMode),W.localMode&&(W.localState=re.startState(W.localMode)),W.f=W.block=E,I.highlightFormatting&&(W.formatting="code-block"),W.code=-1,h(W);if(W.setext||(!Ze||!Je)&&!W.quote&&W.list===!1&&!W.code&&!Xe&&!p.test(L.string)&&(Pe=L.lookAhead(1))&&(Pe=Pe.match(M)))return W.setext?(W.header=W.setext,W.setext=0,L.skipToEnd(),I.highlightFormatting&&(W.formatting="header")):(W.header=Pe[0].charAt(0)=="="?1:2,W.setext=W.header),W.thisLine.header=!0,W.f=W.inline,h(W);if(Xe)return L.skipToEnd(),W.hr=!0,W.thisLine.hr=!0,B.hr;if(L.peek()==="[")return u(L,W,N)}return u(L,W,W.inline)}function P(L,W){var Z=K.token(L,W.htmlState);if(!T){var oe=re.innerMode(K,W.htmlState);(oe.mode.name=="xml"&&oe.state.tagStart===null&&!oe.state.context&&oe.state.tokenize.isInText||W.md_inside&&L.current().indexOf(">")>-1)&&(W.f=s,W.block=v,W.htmlState=null)}return Z}function E(L,W){var Z=W.listStack[W.listStack.length-1]||0,oe=W.indentation=L.quote?W.push(B.formatting+"-"+L.formatting[Z]+"-"+L.quote):W.push("error"))}if(L.taskOpen)return W.push("meta"),W.length?W.join(" "):null;if(L.taskClosed)return W.push("property"),W.length?W.join(" "):null;if(L.linkHref?W.push(B.linkHref,"url"):(L.strong&&W.push(B.strong),L.em&&W.push(B.em),L.strikethrough&&W.push(B.strikethrough),L.emoji&&W.push(B.emoji),L.linkText&&W.push(B.linkText),L.code&&W.push(B.code),L.image&&W.push(B.image),L.imageAltText&&W.push(B.imageAltText,"link"),L.imageMarker&&W.push(B.imageMarker)),L.header&&W.push(B.header,B.header+"-"+L.header),L.quote&&(W.push(B.quote),!I.maxBlockquoteDepth||I.maxBlockquoteDepth>=L.quote?W.push(B.quote+"-"+L.quote):W.push(B.quote+"-"+I.maxBlockquoteDepth)),L.list!==!1){var oe=(L.listStack.length-1)%3;oe?oe===1?W.push(B.list2):W.push(B.list3):W.push(B.list1)}return L.trailingSpaceNewLine?W.push("trailing-space-new-line"):L.trailingSpace&&W.push("trailing-space-"+(L.trailingSpace%2?"a":"b")),W.length?W.join(" "):null}function c(L,W){return L.match(g,!0)?h(W):void 0}function s(L,W){var Z=W.text(L,W);if(typeof Z!="undefined")return Z;if(W.list)return W.list=null,h(W);if(W.taskList){var oe=L.match(m,!0)[1]===" ";return oe?W.taskOpen=!0:W.taskClosed=!0,I.highlightFormatting&&(W.formatting="task"),W.taskList=!1,h(W)}if(W.taskOpen=!1,W.taskClosed=!1,W.header&&L.match(/^#+$/,!0))return I.highlightFormatting&&(W.formatting="header"),h(W);var ie=L.next();if(W.linkTitle){W.linkTitle=!1;var be=ie;ie==="("&&(be=")"),be=(be+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Je="^\\s*(?:[^"+be+"\\\\]+|\\\\\\\\|\\\\.)"+be;if(L.match(new RegExp(Je),!0))return B.linkHref}if(ie==="`"){var Ae=W.formatting;I.highlightFormatting&&(W.formatting="code"),L.eatWhile("`");var ke=L.current().length;if(W.code==0&&(!W.quote||ke==1))return W.code=ke,h(W);if(ke==W.code){var Ze=h(W);return W.code=0,Ze}else return W.formatting=Ae,h(W)}else if(W.code)return h(W);if(ie==="\\"&&(L.next(),I.highlightFormatting)){var Xe=h(W),Pe=B.formatting+"-escape";return Xe?Xe+" "+Pe:Pe}if(ie==="!"&&L.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return W.imageMarker=!0,W.image=!0,I.highlightFormatting&&(W.formatting="image"),h(W);if(ie==="["&&W.imageMarker&&L.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return W.imageMarker=!1,W.imageAltText=!0,I.highlightFormatting&&(W.formatting="image"),h(W);if(ie==="]"&&W.imageAltText){I.highlightFormatting&&(W.formatting="image");var Xe=h(W);return W.imageAltText=!1,W.image=!1,W.inline=W.f=C,Xe}if(ie==="["&&!W.image)return W.linkText&&L.match(/^.*?\]/)||(W.linkText=!0,I.highlightFormatting&&(W.formatting="link")),h(W);if(ie==="]"&&W.linkText){I.highlightFormatting&&(W.formatting="link");var Xe=h(W);return W.linkText=!1,W.inline=W.f=L.match(/\(.*?\)| ?\[.*?\]/,!1)?C:s,Xe}if(ie==="<"&&L.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){W.f=W.inline=i,I.highlightFormatting&&(W.formatting="link");var Xe=h(W);return Xe?Xe+=" ":Xe="",Xe+B.linkInline}if(ie==="<"&&L.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){W.f=W.inline=i,I.highlightFormatting&&(W.formatting="link");var Xe=h(W);return Xe?Xe+=" ":Xe="",Xe+B.linkEmail}if(I.xml&&ie==="<"&&L.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var he=L.string.indexOf(">",L.pos);if(he!=-1){var le=L.string.substring(L.start,he);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(le)&&(W.md_inside=!0)}return L.backUp(1),W.htmlState=re.startState(K),f(L,W,P)}if(I.xml&&ie==="<"&&L.match(/^\/\w*?>/))return W.md_inside=!1,"tag";if(ie==="*"||ie==="_"){for(var Se=1,ve=L.pos==1?" ":L.string.charAt(L.pos-2);Se<3&&L.eat(ie);)Se++;var Ge=L.peek()||" ",it=!/\s/.test(Ge)&&(!d.test(Ge)||/\s/.test(ve)||d.test(ve)),ee=!/\s/.test(ve)&&(!d.test(ve)||/\s/.test(Ge)||d.test(Ge)),V=null,Q=null;if(Se%2&&(!W.em&&it&&(ie==="*"||!ee||d.test(ve))?V=!0:W.em==ie&&ee&&(ie==="*"||!it||d.test(Ge))&&(V=!1)),Se>1&&(!W.strong&&it&&(ie==="*"||!ee||d.test(ve))?Q=!0:W.strong==ie&&ee&&(ie==="*"||!it||d.test(Ge))&&(Q=!1)),Q!=null||V!=null){I.highlightFormatting&&(W.formatting=V==null?"strong":Q==null?"em":"strong em"),V===!0&&(W.em=ie),Q===!0&&(W.strong=ie);var Ze=h(W);return V===!1&&(W.em=!1),Q===!1&&(W.strong=!1),Ze}}else if(ie===" "&&(L.eat("*")||L.eat("_"))){if(L.peek()===" ")return h(W);L.backUp(1)}if(I.strikethrough){if(ie==="~"&&L.eatWhile(ie)){if(W.strikethrough){I.highlightFormatting&&(W.formatting="strikethrough");var Ze=h(W);return W.strikethrough=!1,Ze}else if(L.match(/^[^\s]/,!1))return W.strikethrough=!0,I.highlightFormatting&&(W.formatting="strikethrough"),h(W)}else if(ie===" "&&L.match(/^~~/,!0)){if(L.peek()===" ")return h(W);L.backUp(2)}}if(I.emoji&&ie===":"&&L.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){W.emoji=!0,I.highlightFormatting&&(W.formatting="emoji");var fe=h(W);return W.emoji=!1,fe}return ie===" "&&(L.match(/^ +$/,!1)?W.trailingSpace++:W.trailingSpace&&(W.trailingSpaceNewLine=!0)),h(W)}function i(L,W){var Z=L.next();if(Z===">"){W.f=W.inline=s,I.highlightFormatting&&(W.formatting="link");var oe=h(W);return oe?oe+=" ":oe="",oe+B.linkInline}return L.match(/^[^>]+/,!0),B.linkInline}function C(L,W){if(L.eatSpace())return null;var Z=L.next();return Z==="("||Z==="["?(W.f=W.inline=O(Z==="("?")":"]"),I.highlightFormatting&&(W.formatting="link-string"),W.linkHref=!0,h(W)):"error"}var _={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function O(L){return function(W,Z){var oe=W.next();if(oe===L){Z.f=Z.inline=s,I.highlightFormatting&&(Z.formatting="link-string");var ie=h(Z);return Z.linkHref=!1,ie}return W.match(_[L]),Z.linkHref=!0,h(Z)}}function N(L,W){return L.match(/^([^\]\\]|\\.)*\]:/,!1)?(W.f=U,L.next(),I.highlightFormatting&&(W.formatting="link"),W.linkText=!0,h(W)):u(L,W,s)}function U(L,W){if(L.match(/^\]:/,!0)){W.f=W.inline=H,I.highlightFormatting&&(W.formatting="link");var Z=h(W);return W.linkText=!1,Z}return L.match(/^([^\]\\]|\\.)+/,!0),B.linkText}function H(L,W){return L.eatSpace()?null:(L.match(/^[^\s]+/,!0),L.peek()===void 0?W.linkTitle=!0:L.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),W.f=W.inline=s,B.linkHref+" url")}var G={startState:function(){return{f:v,prevLine:{stream:null},thisLine:{stream:null},block:v,htmlState:null,indentation:0,inline:s,text:c,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(L){return{f:L.f,prevLine:L.prevLine,thisLine:L.thisLine,block:L.block,htmlState:L.htmlState&&re.copyState(K,L.htmlState),indentation:L.indentation,localMode:L.localMode,localState:L.localMode?re.copyState(L.localMode,L.localState):null,inline:L.inline,text:L.text,formatting:!1,linkText:L.linkText,linkTitle:L.linkTitle,linkHref:L.linkHref,code:L.code,em:L.em,strong:L.strong,strikethrough:L.strikethrough,emoji:L.emoji,header:L.header,setext:L.setext,hr:L.hr,taskList:L.taskList,list:L.list,listStack:L.listStack.slice(0),quote:L.quote,indentedCode:L.indentedCode,trailingSpace:L.trailingSpace,trailingSpaceNewLine:L.trailingSpaceNewLine,md_inside:L.md_inside,fencedEndRE:L.fencedEndRE}},token:function(L,W){if(W.formatting=!1,L!=W.thisLine.stream){if(W.header=0,W.hr=!1,L.match(/^\s*$/,!0))return b(W),null;if(W.prevLine=W.thisLine,W.thisLine={stream:L},W.taskList=!1,W.trailingSpace=0,W.trailingSpaceNewLine=!1,!W.localState&&(W.f=W.block,W.f!=P)){var Z=L.match(/^\s*/,!0)[0].replace(/\t/g,o).length;if(W.indentation=Z,W.indentationDiff=null,Z>0)return null}}return W.f(L,W)},innerMode:function(L){return L.block==P?{state:L.htmlState,mode:K}:L.localState?{state:L.localState,mode:L.localMode}:{state:L,mode:G}},indent:function(L,W,Z){return L.block==P&&K.indent?K.indent(L.htmlState,W,Z):L.localState&&L.localMode.indent?L.localMode.indent(L.localState,W,Z):re.Pass},blankLine:b,getType:h,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return G},"xml"),re.defineMIME("text/markdown","markdown"),re.defineMIME("text/x-markdown","markdown")})},mgmH:function(an,rt,F){"use strict";F.d(rt,"d",function(){return M}),F.d(rt,"b",function(){return g}),F.d(rt,"e",function(){return n}),F.d(rt,"c",function(){return p}),F.d(rt,"n",function(){return d}),F.d(rt,"g",function(){return o}),F.d(rt,"h",function(){return u}),F.d(rt,"j",function(){return S}),F.d(rt,"a",function(){return b}),F.d(rt,"l",function(){return v}),F.d(rt,"f",function(){return P}),F.d(rt,"k",function(){return E}),F.d(rt,"m",function(){return h}),F.d(rt,"i",function(){return c}),F.d(rt,"o",function(){return s}),F.d(rt,"r",function(){return i}),F.d(rt,"q",function(){return C}),F.d(rt,"p",function(){return _});var re=F("miYZ"),z=F("tsqr"),I=F("k1fw"),K=F("9og8"),T=F("WmNS"),w=F.n(T),B=F("oUNq"),x=F("9kvl"),k=F("1vsH"),D=F("m3rI"),m=function(){Object(x.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},R=function(){Object(x.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},M=function(){var O=Object(K.a)(w.a.mark(function N(U){var H;return w.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return m(),L.next=3,Object(B.s)(Object(I.a)({},U));case 3:if(H=L.sent,!(H.status===0)){L.next=7;break}return L.next=7,Object(k.u)("",Object(k.U)({url:D.a.API_SERVER+"/api/courses/".concat(U.coursesId,"/export_couser_info.json"),query:U}));case 7:R();case 8:case"end":return L.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),g=function(){var O=Object(K.a)(w.a.mark(function N(U){var H;return w.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,Object(B.q)(Object(I.a)({},U));case 2:if(H=L.sent,!(H.status===0)){L.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_member_act_score")),L.next=13;break;case 8:if(!(H.status===-2)){L.next=12;break}return L.abrupt("return",H);case 12:H.status===-3&&(Object(x.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return L.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),n=function(){var O=Object(K.a)(w.a.mark(function N(U){var H;return w.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,Object(B.t)(Object(I.a)({},U));case 2:if(H=L.sent,!(H.status===0)){L.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_score")),L.next=13;break;case 8:if(!(H.status===-2)){L.next=12;break}return L.abrupt("return",H);case 12:H.status===-3&&(Object(x.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_score")));case 13:case"end":return L.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),p=function(){var O=Object(K.a)(w.a.mark(function N(U){var H;return w.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,Object(B.r)(Object(I.a)({},U));case 2:if(H=L.sent,!(H.status===0)){L.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_exercise_and_other")),L.next=13;break;case 8:if(!(H.status===-2)){L.next=12;break}return L.abrupt("return",H);case 12:H.status===-3&&(Object(x.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return L.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),d=function(){var O=Object(K.a)(w.a.mark(function N(U){var H;return w.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,Object(B.y)(Object(I.a)({},U));case 2:if(H=L.sent,!(H.status===0)){L.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_exercise_and_other")),L.next=13;break;case 8:if(!(H.status===-2)){L.next=12;break}return L.abrupt("return",H);case 12:H.status===-3&&(Object(x.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return L.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),o=function(){var O=Object(K.a)(w.a.mark(function N(U){var H;return w.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,Object(B.u)(Object(I.a)({},U));case 2:if(H=L.sent,!(H.status===0)){L.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_homework")),L.next=13;break;case 8:if(!(H.status===-2)){L.next=12;break}return L.abrupt("return",H);case 12:H.status===-3&&(Object(x.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return L.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),u=function(){var O=Object(K.a)(w.a.mark(function N(U,H){var G;return w.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(B.w)(Object(I.a)({},U));case 2:G=W.sent,G.status===0?(z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/").concat(H))):G.status===-3&&(Object(x.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/").concat(H)));case 4:case"end":return W.stop()}},N)}));return function(U,H){return O.apply(this,arguments)}}(),f=function(){var O=Object(K.a)(w.a.mark(function N(U){var H;return w.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return m(),L.next=3,Object(B.v)(Object(I.a)({},U));case 3:if(H=L.sent,!(H.status===0)){L.next=7;break}return L.next=7,Object(k.u)("",Object(k.U)({url:D.a.API_SERVER+"/api/homework_commons/".concat(U.categoryId,"/works_list.zip"),query:U}));case 7:R();case 8:case"end":return L.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),S=function(){var O=Object(K.a)(w.a.mark(function N(U){var H;return w.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return m(),L.next=3,Object(B.z)(Object(I.a)({},U));case 3:if(H=L.sent,!(H.status===0)){L.next=7;break}return L.next=7,Object(k.u)("",Object(k.U)({url:D.a.API_SERVER+"/api/polls/".concat(U.categoryId,"/commit_result.xlsx"),query:U}));case 7:R();case 8:case"end":return L.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),b=function(){var O=Object(K.a)(w.a.mark(function N(U){return w.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(k.t)("",Object(k.U)({url:D.a.API_SERVER+"/api/courses/".concat(U.coursesId,"/attendances/export_xlsx_data.xlsx"),query:U}));case 2:case"end":return G.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),v=function(){var O=Object(K.a)(w.a.mark(function N(U){return w.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(k.t)("",Object(k.U)({url:D.a.API_SERVER+"/api/courses/".concat(U.coursesId,"/video_study_statics.xlsx"),query:U}));case 2:case"end":return G.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),P=function(){var O=Object(K.a)(w.a.mark(function N(U){return w.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(k.t)("",Object(k.U)({url:D.a.API_SERVER+"/api/courses/".concat(U.coursesId,"/export_course_students_info.xlsx"),query:U}));case 2:case"end":return G.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),E=function(){var O=Object(K.a)(w.a.mark(function N(U){return w.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(k.t)("",Object(k.U)({url:D.a.API_SERVER+"/api/item_banks/export.xlsx",query:U}));case 2:case"end":return G.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),h=function(){var O=Object(K.a)(w.a.mark(function N(U){return w.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(k.t)("",Object(k.U)({url:D.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:U}));case 2:case"end":return G.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),c=function(){var O=Object(K.a)(w.a.mark(function N(U){var H;return w.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,Object(B.x)(Object(I.a)({},U));case 2:H=L.sent,H.status===0?(z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/exercise_score"))):H.status===-3&&(Object(x.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/exercise_score")));case 4:case"end":return L.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),s=function(){var O=Object(K.a)(w.a.mark(function N(U){return w.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),G.next=3,Object(k.t)("",Object(k.U)({url:D.a.API_SERVER+"/api/export_records/".concat(U.id,".xlsx"),query:U}));case 3:case"end":return G.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),i=function(){var O=Object(K.a)(w.a.mark(function N(U){return w.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(k.t)("",Object(k.U)({url:D.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:U}));case 2:case"end":return G.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),C=function(){var O=Object(K.a)(w.a.mark(function N(U){return w.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(k.t)("",Object(k.U)({url:D.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 G.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),_=function(){var O=Object(K.a)(w.a.mark(function N(U){return w.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(k.t)("",Object(k.U)({url:D.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 G.stop()}},N)}));return function(U){return O.apply(this,arguments)}}()},n6Qo:function(an,rt,F){"use strict";F.d(rt,"a",function(){return x});var re=F("q1tI"),z=F("biw7"),I=F("fyJ8");function K(k){var D=k.className,m=k.index,R=k.children,M=k.colSpan,g=k.rowSpan,n=re.useContext(z.a),p=n.prefixCls,d=n.fixedInfoList,o=d[m];return re.createElement(I.a,Object.assign({className:D,index:m,component:"td",prefixCls:p,record:null,dataIndex:null,render:function(){return{children:R,props:{colSpan:M,rowSpan:g}}}},o))}function T(k){return re.createElement("tr",Object.assign({},k))}function w(k){var D=k.children,m=re.useContext(z.a),R=m.prefixCls;return re.createElement("tfoot",{className:"".concat(R,"-summary")},D)}var B=rt.b=w,x={Cell:K,Row:T}},nqnY:function(an,rt,F){an.exports={flex_box_center:"flex_box_center___37JBt",flex_space_between:"flex_space_between___3r1Lz",flex_box_vertical_center:"flex_box_vertical_center___19lKq",flex_box_center_end:"flex_box_center_end___2LfTp",flex_box_column:"flex_box_column___1ZPkn",top:"top___1rypn",desc:"desc___yUqaB",liked:"liked___17506",likedActive:"likedActive___2w83T",reply:"reply___3RGQi",replyList:"replyList___18BLu",comment:"comment___2nNFC",headpic:"headpic___yXxQj"}},oOBs:function(an,rt,F){an.exports={leftdiv:"leftdiv___1FhsT",listClass:"listClass___1Y2ac",spantitle:"spantitle___1pL39",rightdiv:"rightdiv___3ZICD"}},ogmK:function(an,rt,F){"use strict";F.d(rt,"a",function(){return xr});var re=F("1OyB"),z=F("vuIU"),I=F("Ji7U"),K=F("LK+K"),T=F("rePB"),w=F("VTBJ"),B=F("ODXe"),x=F("q1tI"),k=F("TSYQ"),D=F.n(k),m=F("Kwbf"),R=F("6cGi"),M=F("U8pU"),g=F("4IlW"),n=x.createContext({}),p=n,d={visibility:"hidden"};function o(q){var De=q.prefixCls,Ve=q.prevIcon,Be=Ve===void 0?"\u2039":Ve,$e=q.nextIcon,qe=$e===void 0?"\u203A":$e,ht=q.superPrevIcon,Ee=ht===void 0?"\xAB":ht,gt=q.superNextIcon,yt=gt===void 0?"\xBB":gt,Lt=q.onSuperPrev,bt=q.onSuperNext,ut=q.onPrev,kt=q.onNext,Mt=q.children,Le=x.useContext(p),mt=Le.hideNextBtn,Pt=Le.hidePrevBtn;return x.createElement("div",{className:De},Lt&&x.createElement("button",{type:"button",onClick:Lt,tabIndex:-1,className:"".concat(De,"-super-prev-btn"),style:Pt?d:{}},Ee),ut&&x.createElement("button",{type:"button",onClick:ut,tabIndex:-1,className:"".concat(De,"-prev-btn"),style:Pt?d:{}},Be),x.createElement("div",{className:"".concat(De,"-view")},Mt),kt&&x.createElement("button",{type:"button",onClick:kt,tabIndex:-1,className:"".concat(De,"-next-btn"),style:mt?d:{}},qe),bt&&x.createElement("button",{type:"button",onClick:bt,tabIndex:-1,className:"".concat(De,"-super-next-btn"),style:mt?d:{}},yt))}var u=o;function f(q){var De=x.useContext(p),Ve=De.hideHeader;if(Ve)return null;var Be=q.prefixCls,$e=q.generateConfig,qe=q.locale,ht=q.value,Ee=q.format,gt="".concat(Be,"-header");return x.createElement(u,{prefixCls:gt},ht?$e.locale.format(qe.locale,ht,Ee):"\xA0")}var S=f,b=F("YrtM"),v=F("KQm4"),P=new Map;function E(q,De,Ve){if(P.get(q)&&cancelAnimationFrame(P.get(q)),Ve<=0){P.set(q,requestAnimationFrame(function(){q.scrollTop=De}));return}var Be=De-q.scrollTop,$e=Be/Ve*10;P.set(q,requestAnimationFrame(function(){q.scrollTop+=$e,q.scrollTop!==De&&E(q,De,Ve-10)}))}function h(q,De){var Ve=De.onLeftRight,Be=De.onCtrlLeftRight,$e=De.onUpDown,qe=De.onPageUpDown,ht=De.onEnter,Ee=q.which,gt=q.ctrlKey,yt=q.metaKey;switch(Ee){case g.a.LEFT:if(gt||yt){if(Be)return Be(-1),!0}else if(Ve)return Ve(-1),!0;break;case g.a.RIGHT:if(gt||yt){if(Be)return Be(1),!0}else if(Ve)return Ve(1),!0;break;case g.a.UP:if($e)return $e(-1),!0;break;case g.a.DOWN:if($e)return $e(1),!0;break;case g.a.PAGE_UP:if(qe)return qe(-1),!0;break;case g.a.PAGE_DOWN:if(qe)return qe(1),!0;break;case g.a.ENTER:if(ht)return ht(),!0;break}return!1}function c(q,De,Ve,Be){var $e=q;if(!$e)switch(De){case"time":$e=Be?"hh:mm:ss a":"HH:mm:ss";break;case"week":$e="gggg-wo";break;case"month":$e="YYYY-MM";break;case"quarter":$e="YYYY-[Q]Q";break;case"year":$e="YYYY";break;default:$e=Ve?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return $e}function s(q,De){var Ve=q==="time"?8:10;return Math.max(Ve,De.length)+2}var i=null,C=new Set;function _(q){return!i&&typeof window!="undefined"&&window.addEventListener&&(i=function(Ve){Object(v.a)(C).forEach(function(Be){Be(Ve)})},window.addEventListener("mousedown",i)),C.add(q),function(){C.delete(q),C.size===0&&(window.removeEventListener("mousedown",i),i=null)}}var O=function(De){return De==="month"||De==="date"?"year":De},N=function(De){return De==="date"?"month":De},U=function(De){return De==="month"||De==="date"?"quarter":De},H=function(De){return De==="date"?"week":De},G={year:O,month:N,quarter:U,week:H,time:null,date:null};function L(q,De){return q.some(function(Ve){return Ve&&Ve.contains(De)})}function W(q){var De=q.prefixCls,Ve=q.units,Be=q.onSelect,$e=q.value,qe=q.active,ht=q.hideDisabledOptions,Ee="".concat(De,"-cell"),gt=x.useContext(p),yt=gt.open,Lt=x.useRef(null),bt=x.useRef(new Map);return x.useLayoutEffect(function(){var ut=bt.current.get($e);ut&&yt!==!1&&E(Lt.current,ut.offsetTop,120)},[$e]),x.useLayoutEffect(function(){if(yt){var ut=bt.current.get($e);ut&&E(Lt.current,ut.offsetTop,0)}},[yt]),x.createElement("ul",{className:D()("".concat(De,"-column"),Object(T.a)({},"".concat(De,"-column-active"),qe)),ref:Lt,style:{position:"relative"}},Ve.map(function(ut){var kt;return ht&&ut.disabled?null:x.createElement("li",{key:ut.value,ref:function(Le){bt.current.set(ut.value,Le)},className:D()(Ee,(kt={},Object(T.a)(kt,"".concat(Ee,"-disabled"),ut.disabled),Object(T.a)(kt,"".concat(Ee,"-selected"),$e===ut.value),kt)),onClick:function(){if(ut.disabled)return;Be(ut.value)}},x.createElement("div",{className:"".concat(Ee,"-inner")},ut.label))}))}var Z=W;function oe(q,De){for(var Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Be=String(q);Be.length=12,vt%=12);var wn=x.useMemo(function(){if(!yt)return[!1,!1];var Hn=[!0,!0];return En.forEach(function(Vn){var Zn=Vn.disabled,Wr=Vn.value;if(Zn)return;Wr>=12?Hn[1]=!1:Hn[0]=!1}),Hn},[yt,En]),Yn=Object(B.a)(wn,2),Ln=Yn[0],yn=Yn[1],sr=x.useMemo(function(){return yt?En.filter(Rn?function(Hn){return Hn.value>=12}:function(Hn){return Hn.value<12}).map(function(Hn){var Vn=Hn.value%12,Zn=Vn===0?"12":oe(Vn,2);return Object(w.a)(Object(w.a)({},Hn),{},{label:Zn,value:Vn})}):En},[yt,En]),Fn=he(0,59,kt,Pt&&Pt(vt)),Ir=he(0,59,Le,Jt&&Jt(vt,Xt));Be.current={onUpDown:function(Vn){var Zn=gn[$e];if(Zn)for(var Wr=Zn.units.findIndex(function(pa){return pa.value===Zn.value}),ea=Zn.units.length,Yr=1;Yr1&&(ht=De.addDate(ht,-7)),ht}function tt(q,De,Ve){var Be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(De){case"year":return Ve.addYear(q,Be*10);case"quarter":case"month":return Ve.addYear(q,Be);default:return Ve.addMonth(q,Be)}}var Ke=x.createContext({}),Ct=Ke;function Dt(q){var De=q.cellPrefixCls,Ve=q.generateConfig,Be=q.rangedValue,$e=q.hoverRangedValue,qe=q.isInView,ht=q.isSameCell,Ee=q.offsetCell,gt=q.today,yt=q.value;function Lt(bt){var ut,kt=Ee(bt,-1),Mt=Ee(bt,1),Le=Ae(Be,0),mt=Ae(Be,1),Pt=Ae($e,0),Jt=Ae($e,1),Nt=tn(Ve,Pt,Jt,bt);function Sn(Xt){return ht(Le,Xt)}function gn(Xt){return ht(mt,Xt)}var un=ht(Pt,bt),Mn=ht(Jt,bt),Rn=(Nt||Mn)&&(!qe(kt)||gn(kt)),vt=(Nt||un)&&(!qe(Mt)||Sn(Mt));return ut={},Object(T.a)(ut,"".concat(De,"-in-view"),qe(bt)),Object(T.a)(ut,"".concat(De,"-in-range"),tn(Ve,Le,mt,bt)),Object(T.a)(ut,"".concat(De,"-range-start"),Sn(bt)),Object(T.a)(ut,"".concat(De,"-range-end"),gn(bt)),Object(T.a)(ut,"".concat(De,"-range-start-single"),Sn(bt)&&!mt),Object(T.a)(ut,"".concat(De,"-range-end-single"),gn(bt)&&!Le),Object(T.a)(ut,"".concat(De,"-range-start-near-hover"),Sn(bt)&&(ht(kt,Pt)||tn(Ve,Pt,Jt,kt))),Object(T.a)(ut,"".concat(De,"-range-end-near-hover"),gn(bt)&&(ht(Mt,Jt)||tn(Ve,Pt,Jt,Mt))),Object(T.a)(ut,"".concat(De,"-range-hover"),Nt),Object(T.a)(ut,"".concat(De,"-range-hover-start"),un),Object(T.a)(ut,"".concat(De,"-range-hover-end"),Mn),Object(T.a)(ut,"".concat(De,"-range-hover-edge-start"),Rn),Object(T.a)(ut,"".concat(De,"-range-hover-edge-end"),vt),Object(T.a)(ut,"".concat(De,"-range-hover-edge-start-near-range"),Rn&&ht(kt,mt)),Object(T.a)(ut,"".concat(De,"-range-hover-edge-end-near-range"),vt&&ht(Mt,Le)),Object(T.a)(ut,"".concat(De,"-today"),ht(gt,bt)),Object(T.a)(ut,"".concat(De,"-selected"),ht(yt,bt)),ut}return Lt}function st(q){for(var De=q.prefixCls,Ve=q.disabledDate,Be=q.onSelect,$e=q.rowNum,qe=q.colNum,ht=q.prefixColumn,Ee=q.rowClassName,gt=q.baseDate,yt=q.getCellClassName,Lt=q.getCellText,bt=q.getCellNode,ut=q.getCellDate,kt=q.titleCell,Mt=q.headerCells,Le=x.useContext(p),mt=Le.onDateMouseEnter,Pt=Le.onDateMouseLeave,Jt="".concat(De,"-cell"),Nt=[],Sn=0;Sn<$e;Sn+=1){for(var gn=[],un=void 0,Mn=function(Xt){var Tt=Sn*qe+Xt,Tn=ut(gt,Tt),zt=Ve&&Ve(Tn);Xt===0&&(un=Tn,ht&&gn.push(ht(un))),gn.push(x.createElement("td",{key:Xt,title:kt&&kt(Tn),className:D()(Jt,Object(w.a)(Object(T.a)({},"".concat(Jt,"-disabled"),zt),yt(Tn))),onClick:function(){zt||Be(Tn)},onMouseEnter:function(){!zt&&mt&&mt(Tn)},onMouseLeave:function(){!zt&&Pt&&Pt(Tn)}},bt?bt(Tn):x.createElement("div",{className:"".concat(Jt,"-inner")},Lt(Tn))))},Rn=0;Rn2&&arguments[2]!==void 0?arguments[2]:!1;(Re===Le||sn)&&(Ca(nn),Mn&&Mn(nn),ea&&ea(nn,_n),Rn&&!Bt(Ee,nn,va)&&Rn(nn))},hn=function(nn){return ya.current&&ya.current.onKeyDown?([g.a.LEFT,g.a.RIGHT,g.a.UP,g.a.DOWN,g.a.PAGE_UP,g.a.PAGE_DOWN,g.a.ENTER].includes(nn.which)&&nn.preventDefault(),ya.current.onKeyDown(nn)):(Object(m.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},In=function(nn){ya.current&&ya.current.onBlur&&ya.current.onBlur(nn)};Zn&&Ga!=="right"&&(Zn.current={onKeyDown:hn,onClose:function(){ya.current&&ya.current.onClose&&ya.current.onClose()}}),x.useEffect(function(){gt&&!Ma.current&&et(gt)},[gt]),x.useEffect(function(){Ma.current=!1},[]);var ar,nr=Object(w.a)(Object(w.a)({},q),{},{operationRef:ya,prefixCls:Be,viewDate:Ye,value:va,onViewDateChange:Oe,sourceMode:lt,onPanelChange:jt,disabledDate:Re!=="decade"?ut:void 0});delete nr.onChange,delete nr.onSelect;switch(Re){case"decade":ar=x.createElement(y,Object.assign({},nr,{onSelect:function(nn,_n){Oe(nn),Gt(nn,_n)}}));break;case"year":ar=x.createElement(Br,Object.assign({},nr,{onSelect:function(nn,_n){Oe(nn),Gt(nn,_n)}}));break;case"month":ar=x.createElement(wt,Object.assign({},nr,{onSelect:function(nn,_n){Oe(nn),Gt(nn,_n)}}));break;case"quarter":ar=x.createElement(kn,Object.assign({},nr,{onSelect:function(nn,_n){Oe(nn),Gt(nn,_n)}}));break;case"week":ar=x.createElement(vn,Object.assign({},nr,{onSelect:function(nn,_n){Oe(nn),Gt(nn,_n)}}));break;case"time":delete nr.showTime,ar=x.createElement(it,Object.assign({},nr,Object(M.a)(Nt)==="object"?Nt:null,{onSelect:function(nn,_n){Oe(nn),Gt(nn,_n)}}));break;default:Nt?ar=x.createElement(St,Object.assign({},nr,{onSelect:function(nn,_n){Oe(nn),Gt(nn,_n)}})):ar=x.createElement(me,Object.assign({},nr,{onSelect:function(nn,_n){Oe(nn),Gt(nn,_n)}}))}var ir,pr,lr=function(){var nn=Ee.getNow(),_n=Xe(Ee.getHour(nn),Ee.getMinute(nn),Ee.getSecond(nn),dr?Yn:1,Mr?yn:1,Hn?Fn:1),sn=Ze(Ee,nn,_n[0],_n[1],_n[2]);Gt(sn,"submit")};Yr||(ir=A(Be,Re,gn),pr=X({prefixCls:Be,components:zt,needConfirmButton:Ir,okDisabled:!va||ut&&ut(va),locale:ht,showNow:Jt,onNow:Ir&&lr,onOk:function(){va&&(Gt(va,"submit",!0),Tn&&Tn(va))}}));var mr;if(Sn&&Re==="date"&&Le==="date"&&!Nt){var Er=Ee.getNow(),rr="".concat(Be,"-today-btn"),Tr=ut&&ut(Er);mr=x.createElement("a",{className:D()(rr,Tr&&"".concat(rr,"-disabled")),"aria-disabled":Tr,onClick:function(){Tr||Gt(Er,"mouse",!0)}},ht.today)}return x.createElement(p.Provider,{value:Object(w.a)(Object(w.a)({},Vn),{},{hideHeader:"hideHeader"in q?un:Vn.hideHeader,hidePrevBtn:ma&&Ga==="right",hideNextBtn:ma&&Ga==="left"})},x.createElement("div",{tabIndex:Pt,className:D()("".concat(Be,"-panel"),$e,(De={},Object(T.a)(De,"".concat(Be,"-panel-has-range"),Oa&&Oa[0]&&Oa[1]),Object(T.a)(De,"".concat(Be,"-panel-has-range-hover"),Wa&&Wa[0]&&Wa[1]),Object(T.a)(De,"".concat(Be,"-panel-rtl"),En==="rtl"),De)),style:qe,onKeyDown:hn,onBlur:In,onMouseDown:Xt,ref:Wr},ar,ir||pr||mr?x.createElement("div",{className:"".concat(Be,"-footer")},ir,pr,mr):null))}var $=te,ze=F("uciX"),Ut={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 pn(q){var De,Ve=q.prefixCls,Be=q.popupElement,$e=q.popupStyle,qe=q.visible,ht=q.dropdownClassName,Ee=q.dropdownAlign,gt=q.transitionName,yt=q.getPopupContainer,Lt=q.children,bt=q.range,ut=q.popupPlacement,kt=q.direction,Mt="".concat(Ve,"-dropdown"),Le=function(){return ut!==void 0?ut:kt==="rtl"?"bottomRight":"bottomLeft"};return x.createElement(ze.a,{showAction:[],hideAction:[],popupPlacement:Le(),builtinPlacements:Ut,prefixCls:Mt,popupTransitionName:gt,popup:Be,popupAlign:Ee,popupVisible:qe,popupClassName:D()(ht,(De={},Object(T.a)(De,"".concat(Mt,"-range"),bt),Object(T.a)(De,"".concat(Mt,"-rtl"),kt==="rtl"),De)),popupStyle:$e,getPopupContainer:yt},Lt)}var Nn=pn;function Kt(q){var De=q.open,Ve=q.value,Be=q.isClickOutside,$e=q.triggerOpen,qe=q.forwardKeyDown,ht=q.blurToCancel,Ee=q.onSubmit,gt=q.onCancel,yt=q.onFocus,Lt=q.onBlur,bt=Object(x.useState)(!1),ut=Object(B.a)(bt,2),kt=ut[0],Mt=ut[1],Le=Object(x.useState)(!1),mt=Object(B.a)(Le,2),Pt=mt[0],Jt=mt[1],Nt=Object(x.useRef)(!1),Sn=Object(x.useRef)(!1),gn={onMouseDown:function(){Mt(!0),$e(!0)},onKeyDown:function(Mn){switch(Mn.which){case g.a.ENTER:{De?Ee()!==!1&&Mt(!0):$e(!0),Mn.preventDefault();return}case g.a.TAB:{kt&&De&&!Mn.shiftKey?(Mt(!1),Mn.preventDefault()):!kt&&De&&(!qe(Mn)&&Mn.shiftKey&&(Mt(!0),Mn.preventDefault()));return}case g.a.ESC:{Mt(!0),gt();return}}!De&&![g.a.SHIFT].includes(Mn.which)?$e(!0):kt||qe(Mn)},onFocus:function(Mn){Mt(!0),Jt(!0),yt&&yt(Mn)},onBlur:function(Mn){if(Nt.current||!Be(document.activeElement)){Nt.current=!1;return}ht?setTimeout(function(){Be(document.activeElement)&>()},0):De&&($e(!1),Sn.current&&Ee()),Jt(!1),Lt&&Lt(Mn)}};return Object(x.useEffect)(function(){Sn.current=!1},[De]),Object(x.useEffect)(function(){Sn.current=!0},[Ve]),Object(x.useEffect)(function(){return _(function(un){var Mn=un.target;De&&(Be(Mn)?Pt||$e(!1):(Nt.current=!0,requestAnimationFrame(function(){Nt.current=!1})))})}),[gn,{focused:Pt,typing:kt}]}function rn(q){var De=q.valueTexts,Ve=q.onTextChange,Be=x.useState(""),$e=Object(B.a)(Be,2),qe=$e[0],ht=$e[1],Ee=x.useRef([]);Ee.current=De;function gt(Lt){ht(Lt),Ve(Lt)}function yt(){ht(Ee.current[0])}return x.useEffect(function(){De.every(function(Lt){return Lt!==qe})&&yt()},[De.join("||")]),[qe,gt,yt]}var At=F("Gytx"),Yt=F.n(At);function bn(q,De){var Ve=De.formatList,Be=De.generateConfig,$e=De.locale;return Object(b.a)(function(){if(!q)return[[""],""];for(var qe="",ht=[],Ee=0;Ee1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(yt.current),Pt){gt(mt);return}yt.current=requestAnimationFrame(function(){gt(mt)})}var bt=bn(Ee,{formatList:Ve,generateConfig:Be,locale:$e}),ut=Object(B.a)(bt,2),kt=ut[1];function Mt(mt){Lt(mt)}function Le(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Lt(null,mt)}return Object(x.useEffect)(function(){Le(!0)},[q]),Object(x.useEffect)(function(){return function(){return cancelAnimationFrame(yt.current)}},[]),[kt,Mt,Le]}function Wn(q){var De,Ve=q.prefixCls,Be=Ve===void 0?"rc-picker":Ve,$e=q.id,qe=q.tabIndex,ht=q.style,Ee=q.className,gt=q.dropdownClassName,yt=q.dropdownAlign,Lt=q.popupStyle,bt=q.transitionName,ut=q.generateConfig,kt=q.locale,Mt=q.inputReadOnly,Le=q.allowClear,mt=q.autoFocus,Pt=q.showTime,Jt=q.picker,Nt=Jt===void 0?"date":Jt,Sn=q.format,gn=q.use12Hours,un=q.value,Mn=q.defaultValue,Rn=q.open,vt=q.defaultOpen,Xt=q.defaultOpenValue,Tt=q.suffixIcon,Tn=q.clearIcon,zt=q.disabled,En=q.disabledDate,wn=q.placeholder,Yn=q.getPopupContainer,Ln=q.pickerRef,yn=q.panelRender,sr=q.onChange,Fn=q.onOpenChange,Ir=q.onFocus,dr=q.onBlur,Mr=q.onMouseDown,Hn=q.onMouseUp,Vn=q.onMouseEnter,Zn=q.onMouseLeave,Wr=q.onContextMenu,ea=q.onClick,Yr=q.direction,ta=q.autoComplete,pa=ta===void 0?"off":ta,ma=x.useRef(null),Ga=Nt==="date"&&!!Pt||Nt==="time",Oa=be(c(Sn,Nt,Pt,gn)),Wa=x.useRef(null),ya=x.useRef(null),Ma=Object(R.a)(null,{value:un,defaultValue:Mn}),Qa=Object(B.a)(Ma,2),La=Qa[0],va=Qa[1],Ca=x.useState(La),sa=Object(B.a)(Ca,2),Ce=sa[0],Ye=sa[1],et=x.useRef(null),Oe=Object(R.a)(!1,{value:Rn,defaultValue:vt,postState:function(ur){return zt?!1:ur},onChange:function(ur){Fn&&Fn(ur),!ur&&et.current&&et.current.onClose&&et.current.onClose()}}),se=Object(B.a)(Oe,2),ye=se[0],de=se[1],Re=bn(Ce,{formatList:Oa,generateConfig:ut,locale:kt}),Ie=Object(B.a)(Re,2),at=Ie[0],Ue=Ie[1],lt=rn({valueTexts:at,onTextChange:function(ur){var ua=ut.locale.parse(kt.locale,ur,Oa);ua&&(!En||!En(ua))&&Ye(ua)}}),Ot=Object(B.a)(lt,3),jt=Ot[0],Gt=Ot[1],hn=Ot[2],In=function(ur){Ye(ur),va(ur),sr&&!Bt(ut,La,ur)&&sr(ur,ur?ut.locale.format(kt.locale,ur,Oa[0]):"")},ar=function(ur){if(zt&&ur)return;de(ur)},nr=function(ur){return ye&&et.current&&et.current.onKeyDown?et.current.onKeyDown(ur):(Object(m.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},ir=function(){Hn&&Hn.apply(void 0,arguments),ma.current&&(ma.current.focus(),ar(!0))},pr=Kt({blurToCancel:Ga,open:ye,value:jt,triggerOpen:ar,forwardKeyDown:nr,isClickOutside:function(ur){return!L([Wa.current,ya.current],ur)},onSubmit:function(){return En&&En(Ce)?!1:(In(Ce),ar(!1),hn(),!0)},onCancel:function(){ar(!1),Ye(La),hn()},onFocus:Ir,onBlur:dr}),lr=Object(B.a)(pr,2),mr=lr[0],Er=lr[1],rr=Er.focused,Tr=Er.typing;x.useEffect(function(){ye||(Ye(La),!at.length||at[0]===""?Gt(""):Ue!==jt&&hn())},[ye,at]),x.useEffect(function(){ye||hn()},[Nt]),x.useEffect(function(){Ye(La)},[La]),Ln&&(Ln.current={focus:function(){ma.current&&ma.current.focus()},blur:function(){ma.current&&ma.current.blur()}});var $n=Object(w.a)(Object(w.a)({},q),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),nn=x.createElement($,Object.assign({},$n,{generateConfig:ut,className:D()(Object(T.a)({},"".concat(Be,"-panel-focused"),!Tr)),value:Ce,locale:kt,tabIndex:-1,onChange:Ye,direction:Yr}));yn&&(nn=yn(nn));var _n=x.createElement("div",{className:"".concat(Be,"-panel-container"),onMouseDown:function(ur){ur.preventDefault()}},nn),sn;Tt&&(sn=x.createElement("span",{className:"".concat(Be,"-suffix")},Tt));var cn;Le&&La&&!zt&&(cn=x.createElement("span",{onMouseDown:function(ur){ur.preventDefault(),ur.stopPropagation()},onMouseUp:function(ur){ur.preventDefault(),ur.stopPropagation(),In(null),ar(!1)},className:"".concat(Be,"-clear")},Tn||x.createElement("span",{className:"".concat(Be,"-clear-btn")})));var $t=function(ur,ua){(ua==="submit"||ua!=="key"&&!Ga)&&(In(ur),ar(!1))},Qn=Yr==="rtl"?"bottomRight":"bottomLeft",jn=tr(jt,{formatList:Oa,generateConfig:ut,locale:kt}),yr=Object(B.a)(jn,3),Nr=yr[0],Lr=yr[1],Or=yr[2];return x.createElement(p.Provider,{value:{operationRef:et,hideHeader:Nt==="time",panelRef:Wa,onSelect:$t,open:ye,defaultOpenValue:Xt,onDateMouseEnter:Lr,onDateMouseLeave:Or}},x.createElement(Nn,{visible:ye,popupElement:_n,popupStyle:Lt,prefixCls:Be,dropdownClassName:gt,dropdownAlign:yt,getPopupContainer:Yn,transitionName:bt,popupPlacement:Qn,direction:Yr},x.createElement("div",{className:D()(Be,Ee,(De={},Object(T.a)(De,"".concat(Be,"-disabled"),zt),Object(T.a)(De,"".concat(Be,"-focused"),rr),Object(T.a)(De,"".concat(Be,"-rtl"),Yr==="rtl"),De)),style:ht,onMouseDown:Mr,onMouseUp:ir,onMouseEnter:Vn,onMouseLeave:Zn,onContextMenu:Wr,onClick:ea},x.createElement("div",{className:D()("".concat(Be,"-input"),Object(T.a)({},"".concat(Be,"-input-placeholder"),!!Nr)),ref:ya},x.createElement("input",Object.assign({id:$e,tabIndex:qe,disabled:zt,readOnly:Mt||!Tr,value:Nr||jt,onChange:function(ur){Gt(ur.target.value)},autoFocus:mt,placeholder:wn,ref:ma,title:jt},mr,{size:s(Nt,Oa[0])},Je(q),{autoComplete:pa})),sn,cn))))}var Jn=function(q){Object(I.a)(Ve,q);var De=Object(K.a)(Ve);function Ve(){var Be;return Object(re.a)(this,Ve),Be=De.apply(this,arguments),Be.pickerRef=x.createRef(),Be.focus=function(){Be.pickerRef.current&&Be.pickerRef.current.focus()},Be.blur=function(){Be.pickerRef.current&&Be.pickerRef.current.blur()},Be}return Object(z.a)(Ve,[{key:"render",value:function(){return x.createElement(Wn,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Ve}(x.Component),Sr=Jn;function zn(q,De,Ve){var Be=q.picker,$e=q.locale,qe=q.selectedValue,ht=q.disabledDate,Ee=q.disabled,gt=q.generateConfig,yt=Ae(qe,0),Lt=Ae(qe,1);function bt(mt){var Pt=gt.getYear(mt),Jt=gt.locale.getWeek($e.locale,mt);return Pt*100+Jt}function ut(mt){var Pt=gt.getYear(mt),Jt=gt.getMonth(mt);return Pt*100+Jt}function kt(mt){var Pt=gt.getYear(mt),Jt=_e(gt,mt);return Pt*10+Jt}var Mt=x.useCallback(function(mt){if(ht&&ht(mt))return!0;if(Ee[1]&&Lt)return!Rt(gt,mt,Lt)&>.isAfter(mt,Lt);if(De&&Lt)switch(Be){case"quarter":return kt(mt)>kt(Lt);case"month":return ut(mt)>ut(Lt);case"week":return bt(mt)>bt(Lt);default:return!Rt(gt,mt,Lt)&>.isAfter(mt,Lt)}return!1},[ht,Ee[1],Lt,De]),Le=x.useCallback(function(mt){if(ht&&ht(mt))return!0;if(Ee[0]&&yt)return!Rt(gt,mt,Lt)&>.isAfter(yt,mt);if(Ve&&yt)switch(Be){case"quarter":return kt(mt)0&&arguments[0]!==void 0?arguments[0]:!1,Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},er=null;Or&&ka&&ka[0]&&ka[1]&&Mt.isAfter(ka[1],ka[0])&&(er=ka);var wr=un;if(un&&Object(M.a)(un)==="object"&&un.defaultValue){var aa=un.defaultValue;wr=Object(w.a)(Object(w.a)({},un),{},{defaultValue:Ae(aa,Ue)||void 0})}var vi=null;return Ln&&(vi=function(Da,Ya){return Ln(Da,Ya,{range:Ue?"end":"start"})}),x.createElement(Ct.Provider,{value:{inRange:!0,panelPosition:gr,rangedValue:Xi||rr,hoverRangedValue:er}},x.createElement($,Object.assign({},q,Pn,{dateRender:vi,showTime:wr,mode:_n[Ue],generateConfig:Mt,style:void 0,direction:Ma,disabledDate:Ue===0?jn:yr,disabledTime:function(Da){return Yn?Yn(Da,Ue===0?"start":"end"):!1},className:D()(Object(T.a)({},"".concat(qe,"-panel-focused"),Ue===0?!da:!so)),value:Ae(rr,Ue),locale:Le,tabIndex:-1,onPanelChange:function(Da,Ya){cn(ke(_n,Ya,Ue),ke(rr,Da,Ue));var gi=Da;gr==="right"&&_n[Ue]===Ya&&(gi=tt(gi,Ya,Mt,-1)),lr(gi,Ue)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var la=0,Ua=0;Ue&&et.current&&se.current&&Ye.current&&(la=et.current.offsetWidth+se.current.offsetWidth,Ye.current.offsetWidth&&la>Ye.current.offsetWidth&&(Ua=la));var Pi=Ma==="rtl"?{right:la}:{left:la};function ci(){var gr,Pn=A(qe,_n[Ue],Wr),er=X({prefixCls:qe,components:Wa,needConfirmButton:Ca,okDisabled:!Ae(rr,Ue)||wn&&wn(rr[Ue]),locale:Le,rangeList:Kr,onOk:function(){Ae(rr,Ue)&&(ja(rr,Ue),Oa&&Oa(rr))}});if(gn!=="time"&&!un){var wr=pr(Ue),aa=tt(wr,gn,Mt),vi=_n[Ue],ii=vi===gn,Da=Rr(ii?"left":!1,{pickerValue:wr,onPickerValueChange:function(Sa){lr(Sa,Ue)}}),Ya=Rr("right",{pickerValue:aa,onPickerValueChange:function(Sa){lr(tt(Sa,gn,Mt,-1),Ue)}});Ma==="rtl"?gr=x.createElement(x.Fragment,null,Ya,ii&&Da):gr=x.createElement(x.Fragment,null,Da,ii&&Ya)}else gr=Rr();var gi=x.createElement(x.Fragment,null,x.createElement("div",{className:"".concat(qe,"-panels")},gr),(Pn||er)&&x.createElement("div",{className:"".concat(qe,"-footer")},Pn,er));return yn&&(gi=yn(gi)),x.createElement("div",{className:"".concat(qe,"-panel-container"),style:{marginLeft:Ua},ref:Ye,onMouseDown:function(Sa){Sa.preventDefault()}},gi)}var Ui=x.createElement("div",{className:D()("".concat(qe,"-range-wrapper"),"".concat(qe,"-").concat(gn,"-range-wrapper")),style:{minWidth:wa}},x.createElement("div",{className:"".concat(qe,"-range-arrow"),style:Pi}),ci()),di;dr&&(di=x.createElement("span",{className:"".concat(qe,"-suffix")},dr));var Ea;Ir&&(Ae(In,0)&&!jt[0]||Ae(In,1)&&!jt[1])&&(Ea=x.createElement("span",{onMouseDown:function(Pn){Pn.preventDefault(),Pn.stopPropagation()},onMouseUp:function(Pn){Pn.preventDefault(),Pn.stopPropagation();var er=In;jt[0]||(er=ke(er,null,0)),jt[1]||(er=ke(er,null,1)),ja(er,null),Xr(!1,Ue)},className:"".concat(qe,"-clear")},Mr||x.createElement("span",{className:"".concat(qe,"-clear-btn")})));var Fi={size:s(gn,Re[0])},Bi=0,Wi=0;et.current&&Oe.current&&se.current&&(Ue===0?Wi=et.current.offsetWidth:(Bi=la,Wi=Oe.current.offsetWidth));var Ka=Ma==="rtl"?{right:Bi}:{left:Bi},Hr=function(Pn,er){var wr=ke(rr,Pn,Ue);er==="submit"||er!=="key"&&!Ca?(ja(wr,Ue),Ue===0?$i():ro()):Tr(wr)};return x.createElement(p.Provider,{value:{operationRef:Ot,hideHeader:gn==="time",onDateMouseEnter:Do,onDateMouseLeave:Ao,hideRanges:!0,onSelect:Hr,open:Or}},x.createElement(Nn,{visible:Or,popupElement:Ui,popupStyle:yt,prefixCls:qe,dropdownClassName:Lt,dropdownAlign:ut,getPopupContainer:kt,transitionName:bt,range:!0,direction:Ma},x.createElement("div",Object.assign({ref:Ce,className:D()(qe,"".concat(qe,"-range"),gt,(De={},Object(T.a)(De,"".concat(qe,"-disabled"),jt[0]&&jt[1]),Object(T.a)(De,"".concat(qe,"-focused"),Ue===0?Ra:oo),Object(T.a)(De,"".concat(qe,"-rtl"),Ma==="rtl"),De)),style:Ee,onClick:_i,onMouseDown:Ji},Je(q)),x.createElement("div",{className:D()("".concat(qe,"-input"),(Ve={},Object(T.a)(Ve,"".concat(qe,"-input-active"),Ue===0),Object(T.a)(Ve,"".concat(qe,"-input-placeholder"),!!mi),Ve)),ref:et},x.createElement("input",Object.assign({id:ht,disabled:jt[0],readOnly:Vn||!da,value:mi||Ti,onChange:function(Pn){ki(Pn.target.value)},autoFocus:Pt,placeholder:Ae(mt,0)||"",ref:ye},Ha,Fi,{autoComplete:va}))),x.createElement("div",{className:"".concat(qe,"-range-separator"),ref:se},vt),x.createElement("div",{className:D()("".concat(qe,"-input"),(Be={},Object(T.a)(Be,"".concat(qe,"-input-active"),Ue===1),Object(T.a)(Be,"".concat(qe,"-input-placeholder"),!!ui),Be)),ref:Oe},x.createElement("input",Object.assign({disabled:jt[1],readOnly:Vn||!so,value:ui||Oi,onChange:function(Pn){Vi(Pn.target.value)},placeholder:Ae(mt,1)||"",ref:de},ei,Fi,{autoComplete:va}))),x.createElement("div",{className:"".concat(qe,"-active-bar"),style:Object(w.a)(Object(w.a)({},Ka),{},{width:Wi,position:"absolute"})}),di,Ea)))}var or=function(q){Object(I.a)(Ve,q);var De=Object(K.a)(Ve);function Ve(){var Be;return Object(re.a)(this,Ve),Be=De.apply(this,arguments),Be.pickerRef=x.createRef(),Be.focus=function(){Be.pickerRef.current&&Be.pickerRef.current.focus()},Be.blur=function(){Be.pickerRef.current&&Be.pickerRef.current.blur()},Be}return Object(z.a)(Ve,[{key:"render",value:function(){return x.createElement(Cn,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Ve}(x.Component),xr=or,Ur=rt.b=Sr},osHv:function(an,rt,F){(function(re){re(F("VrN/"))})(function(re){"use strict";var z=re.Pos;function I(d,o){return d.line-o.line||d.ch-o.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",T=K+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",w=new RegExp("<(/?)(["+K+"]["+T+"]*)","g");function B(d,o,u,f){this.line=o,this.ch=u,this.cm=d,this.text=d.getLine(o),this.min=f?Math.max(f.from,d.firstLine()):d.firstLine(),this.max=f?Math.min(f.to-1,d.lastLine()):d.lastLine()}function x(d,o){var u=d.cm.getTokenTypeAt(z(d.line,o));return u&&/\btag\b/.test(u)}function k(d){return d.line>=d.max?void 0:(d.ch=0,d.text=d.cm.getLine(++d.line),!0)}function D(d){return d.line<=d.min?void 0:(d.text=d.cm.getLine(--d.line),d.ch=d.text.length,!0)}function m(d){for(;;){var o=d.text.indexOf(">",d.ch);if(o==-1){if(k(d))continue;return}if(!x(d,o+1)){d.ch=o+1;continue}var u=d.text.lastIndexOf("/",o),f=u>-1&&!/\S/.test(d.text.slice(u+1,o));return d.ch=o+1,f?"selfClose":"regular"}}function R(d){for(;;){var o=d.ch?d.text.lastIndexOf("<",d.ch-1):-1;if(o==-1){if(D(d))continue;return}if(!x(d,o+1)){d.ch=o;continue}w.lastIndex=o,d.ch=o;var u=w.exec(d.text);if(u&&u.index==o)return u}}function M(d){for(;;){w.lastIndex=d.ch;var o=w.exec(d.text);if(!o){if(k(d))continue;return}if(!x(d,o.index+1)){d.ch=o.index+1;continue}return d.ch=o.index+o[0].length,o}}function g(d){for(;;){var o=d.ch?d.text.lastIndexOf(">",d.ch-1):-1;if(o==-1){if(D(d))continue;return}if(!x(d,o+1)){d.ch=o;continue}var u=d.text.lastIndexOf("/",o),f=u>-1&&!/\S/.test(d.text.slice(u+1,o));return d.ch=o+1,f?"selfClose":"regular"}}function n(d,o){for(var u=[];;){var f=M(d),S,b=d.line,v=d.ch-(f?f[0].length:0);if(!f||!(S=m(d)))return;if(S=="selfClose")continue;if(f[1]){for(var P=u.length-1;P>=0;--P)if(u[P]==f[2]){u.length=P;break}if(P<0&&(!o||o==f[2]))return{tag:f[2],from:z(b,v),to:z(d.line,d.ch)}}else u.push(f[2])}}function p(d,o){for(var u=[];;){var f=g(d);if(!f)return;if(f=="selfClose"){R(d);continue}var S=d.line,b=d.ch,v=R(d);if(!v)return;if(v[1])u.push(v[2]);else{for(var P=u.length-1;P>=0;--P)if(u[P]==v[2]){u.length=P;break}if(P<0&&(!o||o==v[2]))return{tag:v[2],from:z(d.line,d.ch),to:z(S,b)}}}}re.registerHelper("fold","xml",function(d,o){for(var u=new B(d,o.line,0);;){var f=M(u);if(!f||u.line!=o.line)return;var S=m(u);if(!S)return;if(!f[1]&&S!="selfClose"){var b=z(u.line,u.ch),v=n(u,f[2]);return v&&I(v.from,b)>0?{from:b,to:v.from}:null}}}),re.findMatchingTag=function(d,o,u){var f=new B(d,o.line,o.ch,u);if(f.text.indexOf(">")==-1&&f.text.indexOf("<")==-1)return;var S=m(f),b=S&&z(f.line,f.ch),v=S&&R(f);if(!S||!v||I(f,o)>0)return;var P={from:z(f.line,f.ch),to:b,tag:v[2]};return S=="selfClose"?{open:P,close:null,at:"open"}:v[1]?{open:p(f,v[2]),close:P,at:"close"}:(f=new B(d,b.line,b.ch,u),{open:P,close:n(f,v[2]),at:"open"})},re.findEnclosingTag=function(d,o,u,f){for(var S=new B(d,o.line,o.ch,u);;){var b=p(S,f);if(!b)break;var v=new B(d,o.line,o.ch,u),P=n(v,b.tag);if(P)return{open:b,close:P}}},re.scanForClosingTag=function(d,o,u,f){var S=new B(d,o.line,o.ch,f?{from:0,to:f}:null);return n(S,u)}})},p5ED:function(an,rt,F){"use strict";var re=F("+L6B"),z=F("2/Rp"),I=F("5Dmo"),K=F("3S7+"),T=F("k1fw"),w=F("9og8"),B=F("tJVT"),x=F("WmNS"),k=F.n(x),D=F("q1tI"),m=F.n(D),R=F("vHTk"),M=F.n(R),g=F("yEEn"),n=F("ZW9T"),p=F("1vsH"),d=F("V0Rq"),o=F("m3rI"),u=function(S){var b=S.name,v=S.data,P=S.theme,E=S.type,h=S.filename,c=S.monacoEditor,s=S.className,i=S.style,C=S.close,_=S.onClose,O=S.hasMask,N=S.otherData,U=N===void 0?{}:N,H=Object(D.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),G=Object(B.a)(H,2),L=G[0],W=G[1],Z=Object(D.useState)(""),oe=Object(B.a)(Z,2),ie=oe[0],be=oe[1],Je=Object(D.useState)(),Ae=Object(B.a)(Je,2),ke=Ae[0],Ze=Ae[1],Xe=window.ENV==="build"?"/react/build/office.html":"/office.html",Pe,he=1024*1024,le=10*he,Se=Object(D.useRef)();E==="office"&&(Pe=Object(p.P)(v).filesize,Pe>le&&(E="other")),h&&(c.filename=h),Object(D.useEffect)(function(){var ee,V,Q=(ee=document.cookie)===null||ee===void 0||((V=ee.replace(/\s/g,""))===null||V===void 0)?void 0:V.split(";");Q==null||Q.map(function(fe){var _e=fe.split("=");_e[0]==="_educoder_session"&&be(_e[1])})},[]),Object(D.useEffect)(function(){E==="office"&&ve()},[E]);var ve=function(){var ee=Object(w.a)(k.a.mark(function V(){var Q,fe,_e;return k.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return console.log("data:",v),Q=v,v.startsWith("http")||(Q=location.origin+Q),fe=new URL(Q).pathname.split("/").pop(),He.next=6,Object(d.U)({attachment_id:fe});case 6:_e=He.sent,Ze(_e);case 8:case"end":return He.stop()}},V)}));return function(){return ee.apply(this,arguments)}}(),Ge=function(){if(v.startsWith("http")||v.startsWith("blob:")){it();return}Object(p.x)(h||"educoder",v,h)},it=function(){Object(p.v)(h||"educoder",decodeURIComponent(v))};return m.a.createElement("div",{style:Object(T.a)({},i||{}),className:"".concat(O&&M.a.bgBlack," ").concat(E?M.a.wrp:"hide")},C&&m.a.createElement("div",{className:M.a.close,ref:Se},m.a.createElement(K.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Se.current}},m.a.createElement("span",{onClick:it},m.a.createElement("i",{className:"icon-quxiaozhiding"}))),m.a.createElement(K.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Se.current}},m.a.createElement("span",{className:"",onClick:function(){_(),Ze(null)}},m.a.createElement("i",{className:"icon-guanbi1"})))),m.a.createElement("div",{className:"".concat(M.a[s]," ").concat(s," ").concat(M.a.monaco," ").concat(E==="txt"?"show":"hide")},E==="txt"&&m.a.createElement(n.b,c)),E==="audio"&&m.a.createElement("audio",{src:"".concat((v==null?void 0:v.indexOf("http://"))>-1||(v==null?void 0:v.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(v),autoPlay:!0}),E==="video"&&m.a.createElement(m.a.Fragment,null,(v==null?void 0:v.indexOf("/api"))>-1?m.a.createElement("video",{controls:!0,src:"".concat(v),autoPlay:!0}):m.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(v),autoPlay:!0})),E==="office"&&ke&&m.a.createElement("iframe",{src:"".concat(Xe,"?key=").concat(ke.key,"&url=").concat(o.a.API_SERVER+ke.url,"&callbackUrl=").concat(o.a.API_SERVER+ke.callbackUrl,"&fileType=").concat(ke.fileType,"&title=").concat(ke.title,"&model=view")}),(E==="xlsx"||E==="doc"||E==="pptx"||E==="docx")&&m.a.createElement("iframe",{src:"".concat(Xe,"?key=").concat(U.key,"&url=").concat(o.a.API_SERVER+U.url,"&callbackUrl=").concat(o.a.API_SERVER+U.callbackUrl,"&fileType=").concat(U.fileType,"&title=").concat(U.title,"&model=").concat(U.model)}),E==="html"&&m.a.createElement("iframe",{src:v+"&disposition=inline"}),E==="pdf"&&m.a.createElement("embed",{className:M.a.embed,src:v,type:"application/pdf"}),E==="image"&&m.a.createElement("img",{src:"".concat((v==null?void 0:v.indexOf("http://"))>-1||(v==null?void 0:v.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(v)}),E==="other"&&m.a.createElement("div",null,m.a.createElement(z.a,{type:"primary",size:"large",onClick:Ge},m.a.createElement(g.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),E==="download"&&m.a.createElement(z.a,{type:"primary",size:"large",onClick:Ge},m.a.createElement(g.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))};rt.a=u},"p77/":function(an,rt,F){},qbod:function(an,rt,F){},"rAM+":function(an,rt,F){"use strict";F.d(rt,"a",function(){return z});var re=F("Qw5x");function z(I,K){var T;if(typeof Symbol=="undefined"||I[Symbol.iterator]==null){if(Array.isArray(I)||(T=Object(re.a)(I))||K&&I&&typeof I.length=="number"){T&&(I=T);var w=0,B=function(){};return{s:B,n:function(){return w>=I.length?{done:!0}:{done:!1,value:I[w++]}},e:function(R){throw R},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 x=!0,k=!1,D;return{s:function(){T=I[Symbol.iterator]()},n:function(){var R=T.next();return x=R.done,R},e:function(R){k=!0,D=R},f:function(){try{!x&&T.return!=null&&T.return()}finally{if(k)throw D}}}}},rUJ1:function(an,rt){const F=/[&<>"']/,re=/[&<>"']/g,z=/[<>"']|&(?!#?\w+;)/,I=/[<>"']|&(?!#?\w+;)/g,K={"&":"&","<":"<",">":">",'"':""","'":"'"},T=E=>K[E];function w(E,h){if(h){if(F.test(E))return E.replace(re,T)}else if(z.test(E))return E.replace(I,T);return E}const B=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function x(E){return E.replace(B,(h,c)=>(c=c.toLowerCase(),c==="colon"?":":c.charAt(0)==="#"?c.charAt(1)==="x"?String.fromCharCode(parseInt(c.substring(2),16)):String.fromCharCode(+c.substring(1)):""))}const k=/(^|[^\[])\^/g;function D(E,h){E=E.source||E,h=h||"";const c={replace:(s,i)=>(i=i.source||i,i=i.replace(k,"$1"),E=E.replace(s,i),c),getRegex:()=>new RegExp(E,h)};return c}const m=/[^\w:]/g,R=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function M(E,h,c){if(E){let s;try{s=decodeURIComponent(x(c)).replace(m,"").toLowerCase()}catch(i){return null}if(s.indexOf("javascript:")===0||s.indexOf("vbscript:")===0||s.indexOf("data:")===0)return null}h&&!R.test(c)&&(c=o(h,c));try{c=encodeURI(c).replace(/%25/g,"%")}catch(s){return null}return c}const g={},n=/^[^:]+:\/*[^/]*$/,p=/^([^:]+:)[\s\S]*$/,d=/^([^:]+:\/*[^/]*)[\s\S]*$/;function o(E,h){g[" "+E]||(n.test(E)?g[" "+E]=E+"/":g[" "+E]=b(E,"/",!0)),E=g[" "+E];const c=E.indexOf(":")===-1;return h.substring(0,2)==="//"?c?h:E.replace(p,"$1")+h:h.charAt(0)==="/"?c?h:E.replace(d,"$1")+h:E+h}const u={exec:function(){}};function f(E){let h=1,c,s;for(;h{let N=!1,U=_;for(;--U>=0&&O[U]==="\\";)N=!N;return N?"|":" |"}),s=c.split(/ \|/);let i=0;if(s.length>h)s.splice(h);else for(;s.length1)Object(D.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(f.length===0)return Object(D.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var S=f[0];if(w.isValidElement(S)&&Object(m.c)(S)){var b=S.ref;f[0]=w.cloneElement(S,{ref:Object(m.a)(b,this.setChildNode)})}return f.length===1?f[0]:f.map(function(v,P){return!w.isValidElement(v)||"key"in v&&v.key!==null?v:w.cloneElement(v,{key:"".concat(M,"-").concat(P)})})}}]),d}(w.Component);g.displayName="ResizeObserver",rt.a=g},ulZh:function(an,rt,F){typeof window!="undefined"&&function(z,I){an.exports=I()}(this,function(){return function(re){var z={};function I(K){if(z[K])return z[K].exports;var T=z[K]={i:K,l:!1,exports:{}};return re[K].call(T.exports,T,T.exports,I),T.l=!0,T.exports}return I.m=re,I.c=z,I.d=function(K,T,w){I.o(K,T)||Object.defineProperty(K,T,{enumerable:!0,get:w})},I.r=function(K){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(K,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(K,"__esModule",{value:!0})},I.t=function(K,T){if(T&1&&(K=I(K)),T&8)return K;if(T&4&&typeof K=="object"&&K&&K.__esModule)return K;var w=Object.create(null);if(I.r(w),Object.defineProperty(w,"default",{enumerable:!0,value:K}),T&2&&typeof K!="string")for(var B in K)I.d(w,B,function(x){return K[x]}.bind(null,B));return w},I.n=function(K){var T=K&&K.__esModule?function(){return K.default}:function(){return K};return I.d(T,"a",T),T},I.o=function(K,T){return Object.prototype.hasOwnProperty.call(K,T)},I.p="/dist/",I(I.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(re,z,I){"use strict";var K=Object.prototype.hasOwnProperty,T="~";function w(){}Object.create&&(w.prototype=Object.create(null),new w().__proto__||(T=!1));function B(m,R,M){this.fn=m,this.context=R,this.once=M||!1}function x(m,R,M,g,n){if(typeof M!="function")throw new TypeError("The listener must be a function");var p=new B(M,g||m,n),d=T?T+R:R;return m._events[d]?m._events[d].fn?m._events[d]=[m._events[d],p]:m._events[d].push(p):(m._events[d]=p,m._eventsCount++),m}function k(m,R){--m._eventsCount===0?m._events=new w:delete m._events[R]}function D(){this._events=new w,this._eventsCount=0}D.prototype.eventNames=function(){var R=[],M,g;if(this._eventsCount===0)return R;for(g in M=this._events)K.call(M,g)&&R.push(T?g.slice(1):g);return Object.getOwnPropertySymbols?R.concat(Object.getOwnPropertySymbols(M)):R},D.prototype.listeners=function(R){var M=T?T+R:R,g=this._events[M];if(!g)return[];if(g.fn)return[g.fn];for(var n=0,p=g.length,d=new Array(p);n0},!1)}function m(R,M){for(var g={main:[M]},n={main:[]},p={main:{}};D(g);)for(var d=Object.keys(g),o=0;o=2*P/h||O<=U)return;var H=Number.POSITIVE_INFINITY,G;for(G=d.level-1;G>s;G--){var L=c[G].maxBitrate;if(H=P*L/(8*.8*_),H=O)return;var W=this.bwEstimator.getEstimate();D.logger.warn("Fragment "+d.sn+(o?" part "+o.index:"")+" of level "+d.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+G+` + a `).concat(oe,",").concat(oe," 0 1 1 ").concat(-Je,",").concat(Ae),Ze=Math.PI*2*oe,Xe={stroke:G,strokeDasharray:"".concat(H/100*(Ze-W),"px ").concat(Ze,"px"),strokeDashoffset:"-".concat(W/2+U/100*(Ze-W),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:ke,pathStyle:Xe}}var _=function(H){var G=H.prefixCls,L=H.strokeWidth,W=H.trailWidth,Z=H.gapDegree,oe=H.gapPosition,ie=H.trailColor,be=H.strokeLinecap,Je=H.style,Ae=H.className,ke=H.strokeColor,Ze=H.percent,Xe=E(H,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Pe=Object(re.useMemo)(function(){return c+=1,c},[]),fe=C(0,100,ie,L,Z,oe),le=fe.pathString,Se=fe.pathStyle,ve=i(Ze),Ge=i(ke),it=Ge.find(function(_e){return Object.prototype.toString.call(_e)==="[object Object]"}),ee=w(ve),V=u(ee,1),Q=V[0],he=function(){var Fe=0;return ve.map(function(He,Rt){var Ht=Ge[Rt]||Ge[Ge.length-1],It=Object.prototype.toString.call(Ht)==="[object Object]"?"url(#".concat(G,"-gradient-").concat(Pe,")"):"",Bt=C(Fe,He,Ht,L,Z,oe);return Fe+=He,z.a.createElement("path",{key:Rt,className:"".concat(G,"-circle-path"),d:Bt.pathString,stroke:It,strokeLinecap:be,strokeWidth:L,opacity:He===0?0:1,fillOpacity:"0",style:Bt.pathStyle,ref:Q[Rt]})})};return z.a.createElement("svg",o({className:K()("".concat(G,"-circle"),Ae),viewBox:"0 0 100 100",style:Je},Xe),it&&z.a.createElement("defs",null,z.a.createElement("linearGradient",{id:"".concat(G,"-gradient-").concat(Pe),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(it).sort(function(_e,Fe){return s(_e)-s(Fe)}).map(function(_e,Fe){return z.a.createElement("stop",{key:Fe,offset:_e,stopColor:it[_e]})}))),z.a.createElement("path",{className:"".concat(G,"-circle-trail"),d:le,stroke:ie,strokeLinecap:be,strokeWidth:W||L,fillOpacity:"0",style:Se}),he().reverse())};_.defaultProps=T;var O=_,N={Line:d,Circle:O}},hW8S:function(an,rt,F){"use strict";F.d(rt,"a",function(){return K}),F.d(rt,"c",function(){return T}),F.d(rt,"b",function(){return w});var re=F("VTBJ"),z=F("Ff2n"),I=F("Kwbf"),K="RC_TABLE_INTERNAL_COL_DEFINE";function T(B){var x=B.expandable,k=Object(z.a)(B,["expandable"]);return"expandable"in B?Object(re.a)(Object(re.a)({},k),x):k}function w(B){return Object.keys(B).reduce(function(x,k){return(k.substr(0,5)==="data-"||k.substr(0,5)==="aria-")&&(x[k]=B[k]),x},{})}},k3GJ:function(an,rt,F){"use strict";F.d(rt,"a",function(){return ya});var re=F("rePB"),z=F("ODXe"),I=F("Ff2n"),K=F("VTBJ"),T=F("q1tI"),w=F("TSYQ"),B=F.n(w),x=F("Zm9Q"),k=F("6cGi"),D=F("KQm4"),m=F("xEkU"),R=F.n(m),M=F("t23M");function g(Ce){var Ye=Object(T.useRef)(),et=Object(T.useRef)(!1);function Oe(){for(var se=arguments.length,ye=new Array(se),de=0;delt&&(Gt=lt-jt),Object(T.useMemo)(function(){if(!ye.length)return[0,0];for(var fn=ye.length,In=fn,ar=0;arUe+Gt){In=ar-1;break}}for(var ir=0,pr=fn-1;pr>=0;pr-=1){var lr=Ce.get(ye[pr].key)||S;if(lr[at]1&&arguments[1]!==void 0?arguments[1]:!1,Oe=Ye&&typeof Ye.getBoundingClientRect=="function"&&Ye.getBoundingClientRect().width;if(Oe){if(et){var se=getComputedStyle(Ye),ye=se.marginLeft,de=se.marginRight;Oe+=+ye.replace("px","")+ +de.replace("px","")}Oe=+Oe.toFixed(6)}return Oe||0},Fe=function(Ye,et,Oe){Ye&&Object(U.a)(Ye.style)==="object"&&(Ye.style[et]=Oe)},He=function(){return ve.any},Rt=F("bdgK"),Ht=F("i8i4"),It=F.n(Ht),Bt=F("wgJM"),tn=F("l4aY"),hn=F("m+aA"),tt=F("c+Xe"),Ke=F("zT1h"),Ct=F("QC+M");function Dt(Ce,Ye,et){return et?Ce[0]===Ye[0]:Ce[0]===Ye[0]&&Ce[1]===Ye[1]}function st(Ce,Ye,et){var Oe=Ce[Ye]||{};return Object(K.a)(Object(K.a)({},Oe),et)}function xt(Ce,Ye,et,Oe){for(var se=et.points,ye=Object.keys(Ce),de=0;de1&&arguments[1]!==void 0?arguments[1]:2;Ye();var ye=Object(Bt.a)(function(){se<=1?Oe({isCanceled:function(){return ye!==Ce.current}}):et(Oe,se-1)});Ce.current=ye}return T.useEffect(function(){return function(){Ye()}},[]),[et,Ye]},Cr=[ht,qt,on,ot],Ar=!1,fr=!0;function On(Ce){return Ce===on||Ce===ot}var Fr=function(Ce,Ye){var et=T.useState(wt),Oe=Object(z.a)(et,2),se=Oe[0],ye=Oe[1],de=kn(),Re=Object(z.a)(de,2),Ie=Re[0],at=Re[1];function Ue(){ye(ht)}return Bn(function(){if(se!==wt&&se!==ot){var lt=Cr.indexOf(se),Ot=Cr[lt+1],jt=Ye(se);jt===Ar?ye(Ot):Ie(function(Gt){function fn(){if(Gt.isCanceled())return;ye(Ot)}jt===!0?fn():Promise.resolve(jt).then(fn)})}},[Ce,se]),T.useEffect(function(){return function(){at()}},[]),[Ue,se]},na=function(Ce){var Ye=Object(T.useRef)(),et=Object(T.useRef)(Ce);et.current=Ce;var Oe=T.useCallback(function(de){et.current(de)},[]);function se(de){de&&(de.removeEventListener(Vt,Oe),de.removeEventListener(Zt,Oe))}function ye(de){Ye.current&&Ye.current!==de&&se(Ye.current),de&&de!==Ye.current&&(de.addEventListener(Vt,Oe),de.addEventListener(Zt,Oe),Ye.current=de)}return T.useEffect(function(){return function(){se(Ye.current)}},[]),[ye,se]};function Pr(Ce,Ye,et,Oe){var se=Oe.motionEnter,ye=se===void 0?!0:se,de=Oe.motionAppear,Re=de===void 0?!0:de,Ie=Oe.motionLeave,at=Ie===void 0?!0:Ie,Ue=Oe.motionDeadline,lt=Oe.motionLeaveImmediately,Ot=Oe.onAppearPrepare,jt=Oe.onEnterPrepare,Gt=Oe.onLeavePrepare,fn=Oe.onAppearStart,In=Oe.onEnterStart,ar=Oe.onLeaveStart,nr=Oe.onAppearActive,ir=Oe.onEnterActive,pr=Oe.onLeaveActive,lr=Oe.onAppearEnd,mr=Oe.onEnterEnd,Er=Oe.onLeaveEnd,rr=Oe.onVisibleChanged,Tr=Wt(),$n=Object(z.a)(Tr,2),nn=$n[0],_n=$n[1],sn=Wt(_t),cn=Object(z.a)(sn,2),$t=cn[0],Qn=cn[1],jn=Wt(null),yr=Object(z.a)(jn,2),Nr=yr[0],Lr=yr[1],Or=Object(T.useRef)(!1),kr=Object(T.useRef)(null),ur=Object(T.useRef)(!1),ua=Object(T.useRef)(null);function Ja(){var $r=et();return $r||ua.current}var Na=Object(T.useRef)(!1);function wa($r){var zr=Ja();if($r&&!$r.deadline&&$r.target!==zr)return;var ba;$t===ct&&Na.current?ba=lr==null?void 0:lr(zr,$r):$t===ge&&Na.current?ba=mr==null?void 0:mr(zr,$r):$t===Me&&Na.current&&(ba=Er==null?void 0:Er(zr,$r)),ba!==!1&&!ur.current&&(Qn(_t),Lr(null))}var Qr=na(wa),Gr=Object(z.a)(Qr,1),Xr=Gr[0],Jr=T.useMemo(function(){var $r,zr,ba;switch($t){case"appear":return $r={},Object(re.a)($r,ht,Ot),Object(re.a)($r,qt,fn),Object(re.a)($r,on,nr),$r;case"enter":return zr={},Object(re.a)(zr,ht,jt),Object(re.a)(zr,qt,In),Object(re.a)(zr,on,ir),zr;case"leave":return ba={},Object(re.a)(ba,ht,Gt),Object(re.a)(ba,qt,ar),Object(re.a)(ba,on,pr),ba;default:return{}}},[$t]),ja=Fr($t,function($r){if($r===ht){var zr=Jr[ht];return zr?zr(Ja()):Ar}if(Vr in Jr){var ba;Lr(((ba=Jr[Vr])===null||ba===void 0?void 0:ba.call(Jr,Ja(),null))||null)}return Vr===on&&(Xr(Ja()),Ue>0&&(clearTimeout(kr.current),kr.current=setTimeout(function(){wa({deadline:!0})},Ue))),fr}),hi=Object(z.a)(ja,2),si=hi[0],Vr=hi[1],Za=On(Vr);Na.current=Za,Bn(function(){_n(Ye);var $r=Or.current;if(Or.current=!0,!Ce)return;var zr;!$r&&Ye&&Re&&(zr=ct),$r&&Ye&&ye&&(zr=ge),($r&&!Ye&&at||!$r&<&&!Ye&&at)&&(zr=Me),zr&&(Qn(zr),si())},[Ye]),Object(T.useEffect)(function(){($t===ct&&!Re||$t===ge&&!ye||$t===Me&&!at)&&Qn(_t)},[Re,ye,at]),Object(T.useEffect)(function(){return function(){clearTimeout(kr.current),ur.current=!0}},[]),Object(T.useEffect)(function(){nn!==void 0&&$t===_t&&(rr==null||rr(nn))},[nn,$t]);var qa=Nr;return Jr[ht]&&Vr===qt&&(qa=Object(K.a)({transition:"none"},qa)),[$t,Vr,qa,nn!=null?nn:Ye]}var hr=function(Ce){Object(c.a)(et,Ce);var Ye=Object(s.a)(et);function et(){return Object(P.a)(this,et),Ye.apply(this,arguments)}return Object(E.a)(et,[{key:"render",value:function(){return this.props.children}}]),et}(T.Component),Br=hr;function qr(Ce){var Ye=Ce;Object(U.a)(Ce)==="object"&&(Ye=Ce.transitionSupport);function et(se){return!!(se.motionName&&Ye)}var Oe=T.forwardRef(function(se,ye){var de=se.visible,Re=de===void 0?!0:de,Ie=se.removeOnLeave,at=Ie===void 0?!0:Ie,Ue=se.forceRender,lt=se.children,Ot=se.motionName,jt=se.leavedClassName,Gt=se.eventProps,fn=et(se),In=Object(T.useRef)(),ar=Object(T.useRef)();function nr(){try{return Object(hn.a)(In.current||ar.current)}catch(Qn){return null}}var ir=Pr(fn,Re,nr,se),pr=Object(z.a)(ir,4),lr=pr[0],mr=pr[1],Er=pr[2],rr=pr[3],Tr=T.useRef(rr);rr&&(Tr.current=!0);var $n=Object(T.useRef)(ye);$n.current=ye;var nn=T.useCallback(function(Qn){In.current=Qn,Object(tt.b)($n.current,Qn)},[]),_n,sn=Object(K.a)(Object(K.a)({},Gt),{},{visible:Re});if(!lt)_n=null;else if(lr===_t||!et(se))rr?_n=lt(Object(K.a)({},sn),nn):!at&&Tr.current?_n=lt(Object(K.a)(Object(K.a)({},sn),{},{className:jt}),nn):Ue?_n=lt(Object(K.a)(Object(K.a)({},sn),{},{style:{display:"none"}}),nn):_n=null;else{var cn,$t;mr===ht?$t="prepare":On(mr)?$t="active":mr===qt&&($t="start"),_n=lt(Object(K.a)(Object(K.a)({},sn),{},{className:B()(Et(Ot,lr),(cn={},Object(re.a)(cn,Et(Ot,"".concat(lr,"-").concat($t)),$t),Object(re.a)(cn,Ot,typeof Ot=="string"),cn)),style:Er}),nn)}return T.createElement(Br,{ref:ar},_n)});return Oe.displayName="CSSMotion",Oe}var fa=qr(vn),Qt="add",qn="keep",oa="remove",_a="removed";function jr(Ce){var Ye;return Ce&&Object(U.a)(Ce)==="object"&&"key"in Ce?Ye=Ce:Ye={key:Ce},Object(K.a)(Object(K.a)({},Ye),{},{key:String(Ye.key)})}function ra(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ce.map(jr)}function J(){var Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],et=[],Oe=0,se=Ye.length,ye=ra(Ce),de=ra(Ye);ye.forEach(function(at){for(var Ue=!1,lt=Oe;lt1});return Ie.forEach(function(at){et=et.filter(function(Ue){var lt=Ue.key,Ot=Ue.status;return lt!==at||Ot!==oa}),et.forEach(function(Ue){Ue.key===at&&(Ue.status=qn)})}),et}var y=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function A(Ce){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:fa,et=function(Oe){Object(c.a)(ye,Oe);var se=Object(s.a)(ye);function ye(){var de;return Object(P.a)(this,ye),de=se.apply(this,arguments),de.state={keyEntities:[]},de.removeKey=function(Re){de.setState(function(Ie){var at=Ie.keyEntities;return{keyEntities:at.map(function(Ue){return Ue.key!==Re?Ue:Object(K.a)(Object(K.a)({},Ue),{},{status:_a})})}})},de}return Object(E.a)(ye,[{key:"render",value:function(){var Re=this,Ie=this.state.keyEntities,at=this.props,Ue=at.component,lt=at.children,Ot=at.onVisibleChanged,jt=Object(I.a)(at,["component","children","onVisibleChanged"]),Gt=Ue||T.Fragment,fn={};return y.forEach(function(In){fn[In]=jt[In],delete jt[In]}),delete jt.keys,T.createElement(Gt,jt,Ie.map(function(In){var ar=In.status,nr=Object(I.a)(In,["status"]),ir=ar===Qt||ar===qn;return T.createElement(Ye,Object(v.a)({},fn,{key:nr.key,visible:ir,eventProps:nr,onVisibleChanged:function(lr){Ot==null||Ot(lr,{key:nr.key}),lr||Re.removeKey(nr.key)}}),lt)}))}}],[{key:"getDerivedStateFromProps",value:function(Re,Ie){var at=Re.keys,Ue=Ie.keyEntities,lt=ra(at),Ot=J(Ue,lt);return{keyEntities:Ot.filter(function(jt){var Gt=Ue.find(function(fn){var In=fn.key;return jt.key===In});return!(Gt&&Gt.status===_a&&jt.status===oa)})}}}]),ye}(T.Component);return et.defaultProps={component:"div"},et}var X=A(vn),te=fa;function $(Ce){var Ye=Ce.prefixCls,et=Ce.motion,Oe=Ce.animation,se=Ce.transitionName;return et||(Oe?{motionName:"".concat(Ye,"-").concat(Oe)}:se?{motionName:se}:null)}function ze(Ce){var Ye=Ce.prefixCls,et=Ce.visible,Oe=Ce.zIndex,se=Ce.mask,ye=Ce.maskMotion,de=Ce.maskAnimation,Re=Ce.maskTransitionName;if(!se)return null;var Ie={};return(ye||Re||de)&&(Ie=Object(K.a)({motionAppear:!0},$({motion:ye,prefixCls:Ye,transitionName:Re,animation:de}))),T.createElement(te,Object(v.a)({},Ie,{visible:et,removeOnLeave:!0}),function(at){var Ue=at.className;return T.createElement("div",{style:{zIndex:Oe},className:B()("".concat(Ye,"-mask"),Ue)})})}var Ut=F("9mu1"),pn=F("o0o1"),Nn=F.n(pn),Kt=F("HaE+"),rn=["measure","align",null,"motion"],At=function(Ce,Ye){var et=Object(T.useState)(null),Oe=Object(z.a)(et,2),se=Oe[0],ye=Oe[1],de=Object(T.useRef)(),Re=Object(T.useRef)(!1);function Ie(lt){Re.current||ye(lt)}function at(){Bt.a.cancel(de.current)}function Ue(lt){at(),de.current=Object(Bt.a)(function(){Ie(function(Ot){switch(se){case"align":return"motion";case"motion":return"stable";default:}return Ot}),lt==null||lt()})}return Object(T.useEffect)(function(){Ie("measure")},[Ce]),Object(T.useEffect)(function(){switch(se){case"measure":Ye();break;default:}se&&(de.current=Object(Bt.a)(Object(Kt.a)(Nn.a.mark(function lt(){var Ot,jt;return Nn.a.wrap(function(fn){for(;;)switch(fn.prev=fn.next){case 0:Ot=rn.indexOf(se),jt=rn[Ot+1],jt&&Ot!==-1&&Ie(jt);case 3:case"end":return fn.stop()}},lt)}))))},[se]),Object(T.useEffect)(function(){return function(){Re.current=!0,at()}},[]),[se,Ue]},Yt=function(Ce){var Ye=T.useState({width:0,height:0}),et=Object(z.a)(Ye,2),Oe=et[0],se=et[1];function ye(Re){se({width:Re.offsetWidth,height:Re.offsetHeight})}var de=T.useMemo(function(){var Re={};if(Ce){var Ie=Oe.width,at=Oe.height;Ce.indexOf("height")!==-1&&at?Re.height=at:Ce.indexOf("minHeight")!==-1&&at&&(Re.minHeight=at),Ce.indexOf("width")!==-1&&Ie?Re.width=Ie:Ce.indexOf("minWidth")!==-1&&Ie&&(Re.minWidth=Ie)}return Re},[Ce,Oe]);return[de,ye]},bn=T.forwardRef(function(Ce,Ye){var et=Ce.visible,Oe=Ce.prefixCls,se=Ce.className,ye=Ce.style,de=Ce.children,Re=Ce.zIndex,Ie=Ce.stretch,at=Ce.destroyPopupOnHide,Ue=Ce.forceRender,lt=Ce.align,Ot=Ce.point,jt=Ce.getRootDomNode,Gt=Ce.getClassNameFromAlign,fn=Ce.onAlign,In=Ce.onMouseEnter,ar=Ce.onMouseLeave,nr=Ce.onMouseDown,ir=Ce.onTouchStart,pr=Object(T.useRef)(),lr=Object(T.useRef)(),mr=Object(T.useState)(),Er=Object(z.a)(mr,2),rr=Er[0],Tr=Er[1],$n=Yt(Ie),nn=Object(z.a)($n,2),_n=nn[0],sn=nn[1];function cn(){Ie&&sn(jt())}var $t=At(et,cn),Qn=Object(z.a)($t,2),jn=Qn[0],yr=Qn[1],Nr=Object(T.useRef)();function Lr(){return Ot||jt}function Or(){var Qr;(Qr=pr.current)===null||Qr===void 0||Qr.forceAlign()}function kr(Qr,Gr){var Xr=Gt(Gr);rr!==Xr&&Tr(Xr),jn==="align"&&(rr!==Xr?Promise.resolve().then(function(){Or()}):yr(function(){var Jr;(Jr=Nr.current)===null||Jr===void 0||Jr.call(Nr)}),fn==null||fn(Qr,Gr))}var ur=Object(K.a)({},$(Ce));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Qr){var Gr=ur[Qr];ur[Qr]=function(Xr,Jr){return yr(),Gr==null?void 0:Gr(Xr,Jr)}});function ua(){return new Promise(function(Qr){Nr.current=Qr})}T.useEffect(function(){!ur.motionName&&jn==="motion"&&yr()},[ur.motionName,jn]),T.useImperativeHandle(Ye,function(){return{forceAlign:Or,getElement:function(){return lr.current}}});var Ja=Object(K.a)(Object(K.a)({},_n),{},{zIndex:Re,opacity:jn==="motion"||jn==="stable"||!et?void 0:0,pointerEvents:jn==="stable"?void 0:"none"},ye),Na=!0;(lt==null?void 0:lt.points)&&(jn==="align"||jn==="stable")&&(Na=!1);var wa=de;return T.Children.count(de)>1&&(wa=T.createElement("div",{className:"".concat(Oe,"-content")},de)),T.createElement(te,Object(v.a)({visible:et,ref:lr,leavedClassName:"".concat(Oe,"-hidden")},ur,{onAppearPrepare:ua,onEnterPrepare:ua,removeOnLeave:at,forceRender:Ue}),function(Qr,Gr){var Xr=Qr.className,Jr=Qr.style,ja=B()(Oe,se,rr,Xr);return T.createElement(Ut.a,{target:Lr(),key:"popup",ref:pr,monitorWindowResize:!0,disabled:Na,align:lt,onAlign:kr},T.createElement("div",{ref:Gr,className:ja,onMouseEnter:In,onMouseLeave:ar,onMouseDownCapture:nr,onTouchStartCapture:ir,style:Object(K.a)(Object(K.a)({},Jr),Ja)},wa))})});bn.displayName="PopupInner";var tr=bn,Wn=T.forwardRef(function(Ce,Ye){var et=Ce.prefixCls,Oe=Ce.visible,se=Ce.zIndex,ye=Ce.children,de=Ce.mobile;de=de===void 0?{}:de;var Re=de.popupClassName,Ie=de.popupStyle,at=de.popupMotion,Ue=at===void 0?{}:at,lt=de.popupRender,Ot=T.useRef();T.useImperativeHandle(Ye,function(){return{forceAlign:function(){},getElement:function(){return Ot.current}}});var jt=Object(K.a)({zIndex:se},Ie),Gt=ye;return T.Children.count(ye)>1&&(Gt=T.createElement("div",{className:"".concat(et,"-content")},ye)),lt&&(Gt=lt(Gt)),T.createElement(te,Object(v.a)({visible:Oe,ref:Ot,removeOnLeave:!0},Ue),function(fn,In){var ar=fn.className,nr=fn.style,ir=B()(et,Re,ar);return T.createElement("div",{ref:In,className:ir,style:Object(K.a)(Object(K.a)({},nr),jt)},Gt)})});Wn.displayName="MobilePopupInner";var Jn=Wn,Sr=["visible","mobile"],zn=T.forwardRef(function(Ce,Ye){var et=Ce.visible,Oe=Ce.mobile,se=Object(I.a)(Ce,Sr),ye=Object(T.useState)(et),de=Object(z.a)(ye,2),Re=de[0],Ie=de[1],at=Object(T.useState)(!1),Ue=Object(z.a)(at,2),lt=Ue[0],Ot=Ue[1],jt=Object(K.a)(Object(K.a)({},se),{},{visible:Re});Object(T.useEffect)(function(){Ie(et),et&&Oe&&Ot(je())},[et,Oe]);var Gt=lt?T.createElement(Jn,Object(v.a)({},jt,{mobile:Oe,ref:Ye})):T.createElement(tr,Object(v.a)({},jt,{ref:Ye}));return T.createElement("div",null,T.createElement(ze,jt),Gt)});zn.displayName="Popup";var Gn=zn,Un=T.createContext(null),mn=Un;function br(){}function _r(){return""}function Cn(Ce){return Ce?Ce.ownerDocument:window.document}var or=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function xr(Ce){var Ye=function(et){Object(c.a)(se,et);var Oe=Object(s.a)(se);function se(ye){var de;Object(P.a)(this,se),de=Oe.call(this,ye),de.popupRef=T.createRef(),de.triggerRef=T.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(Ie){var at=de.props.mouseEnterDelay;de.fireEvents("onMouseEnter",Ie),de.delaySetPopupVisible(!0,at,at?null:Ie)},de.onMouseMove=function(Ie){de.fireEvents("onMouseMove",Ie),de.setPoint(Ie)},de.onMouseLeave=function(Ie){de.fireEvents("onMouseLeave",Ie),de.delaySetPopupVisible(!1,de.props.mouseLeaveDelay)},de.onPopupMouseEnter=function(){de.clearDelayTimer()},de.onPopupMouseLeave=function(Ie){var at;if(Ie.relatedTarget&&!Ie.relatedTarget.setTimeout&&Object(tn.a)((at=de.popupRef.current)===null||at===void 0?void 0:at.getElement(),Ie.relatedTarget))return;de.delaySetPopupVisible(!1,de.props.mouseLeaveDelay)},de.onFocus=function(Ie){de.fireEvents("onFocus",Ie),de.clearDelayTimer(),de.isFocusToShow()&&(de.focusTime=Date.now(),de.delaySetPopupVisible(!0,de.props.focusDelay))},de.onMouseDown=function(Ie){de.fireEvents("onMouseDown",Ie),de.preClickTime=Date.now()},de.onTouchStart=function(Ie){de.fireEvents("onTouchStart",Ie),de.preTouchTime=Date.now()},de.onBlur=function(Ie){de.fireEvents("onBlur",Ie),de.clearDelayTimer(),de.isBlurToHide()&&de.delaySetPopupVisible(!1,de.props.blurDelay)},de.onContextMenu=function(Ie){Ie.preventDefault(),de.fireEvents("onContextMenu",Ie),de.setPopupVisible(!0,Ie)},de.onContextMenuClose=function(){de.isContextMenuToShow()&&de.close()},de.onClick=function(Ie){if(de.fireEvents("onClick",Ie),de.focusTime){var at;if(de.preClickTime&&de.preTouchTime?at=Math.min(de.preClickTime,de.preTouchTime):de.preClickTime?at=de.preClickTime:de.preTouchTime&&(at=de.preTouchTime),Math.abs(at-de.focusTime)<20)return;de.focusTime=0}de.preClickTime=0,de.preTouchTime=0,de.isClickToShow()&&(de.isClickToHide()||de.isBlurToHide())&&Ie&&Ie.preventDefault&&Ie.preventDefault();var Ue=!de.state.popupVisible;(de.isClickToHide()&&!Ue||Ue&&de.isClickToShow())&&de.setPopupVisible(!de.state.popupVisible,Ie)},de.onPopupMouseDown=function(){if(de.hasPopupMouseDown=!0,clearTimeout(de.mouseDownTimeout),de.mouseDownTimeout=window.setTimeout(function(){de.hasPopupMouseDown=!1},0),de.context){var Ie;(Ie=de.context).onPopupMouseDown.apply(Ie,arguments)}},de.onDocumentClick=function(Ie){if(de.props.mask&&!de.props.maskClosable)return;var at=Ie.target,Ue=de.getRootDomNode(),lt=de.getPopupDomNode();(!Object(tn.a)(Ue,at)||de.isContextMenuOnly())&&!Object(tn.a)(lt,at)&&!de.hasPopupMouseDown&&de.close()},de.getRootDomNode=function(){var Ie=de.props.getTriggerDOMNode;if(Ie)return Ie(de.triggerRef.current);try{var at=Object(hn.a)(de.triggerRef.current);if(at)return at}catch(Ue){}return It.a.findDOMNode(Object(f.a)(de))},de.getPopupClassNameFromAlign=function(Ie){var at=[],Ue=de.props,lt=Ue.popupPlacement,Ot=Ue.builtinPlacements,jt=Ue.prefixCls,Gt=Ue.alignPoint,fn=Ue.getPopupClassNameFromAlign;return lt&&Ot&&at.push(xt(Ot,jt,Ie,Gt)),fn&&at.push(fn(Ie)),at.join(" ")},de.getComponent=function(){var Ie=de.props,at=Ie.prefixCls,Ue=Ie.destroyPopupOnHide,lt=Ie.popupClassName,Ot=Ie.onPopupAlign,jt=Ie.popupMotion,Gt=Ie.popupAnimation,fn=Ie.popupTransitionName,In=Ie.popupStyle,ar=Ie.mask,nr=Ie.maskAnimation,ir=Ie.maskTransitionName,pr=Ie.maskMotion,lr=Ie.zIndex,mr=Ie.popup,Er=Ie.stretch,rr=Ie.alignPoint,Tr=Ie.mobile,$n=Ie.forceRender,nn=de.state,_n=nn.popupVisible,sn=nn.point,cn=de.getPopupAlign(),$t={};return de.isMouseEnterToShow()&&($t.onMouseEnter=de.onPopupMouseEnter),de.isMouseLeaveToHide()&&($t.onMouseLeave=de.onPopupMouseLeave),$t.onMouseDown=de.onPopupMouseDown,$t.onTouchStart=de.onPopupMouseDown,T.createElement(Gn,Object(v.a)({prefixCls:at,destroyPopupOnHide:Ue,visible:_n,point:rr&&sn,className:lt,align:cn,onAlign:Ot,animation:Gt,getClassNameFromAlign:de.getPopupClassNameFromAlign},$t,{stretch:Er,getRootDomNode:de.getRootDomNode,style:In,mask:ar,zIndex:lr,transitionName:fn,maskAnimation:nr,maskTransitionName:ir,maskMotion:pr,ref:de.popupRef,motion:jt,mobile:Tr,forceRender:$n}),typeof mr=="function"?mr():mr)},de.attachParent=function(Ie){Bt.a.cancel(de.attachId);var at=de.props,Ue=at.getPopupContainer,lt=at.getDocument,Ot=de.getRootDomNode(),jt;Ue?(Ot||Ue.length===0)&&(jt=Ue(Ot)):jt=lt(de.getRootDomNode()).body,jt?jt.appendChild(Ie):de.attachId=Object(Bt.a)(function(){de.attachParent(Ie)})},de.getContainer=function(){var Ie=de.props.getDocument,at=Ie(de.getRootDomNode()).createElement("div");return at.style.position="absolute",at.style.top="0",at.style.left="0",at.style.width="100%",de.attachParent(at),at},de.setPoint=function(Ie){var at=de.props.alignPoint;if(!at||!Ie)return;de.setState({point:{pageX:Ie.pageX,pageY:Ie.pageY}})},de.handlePortalUpdate=function(){de.state.prevPopupVisible!==de.state.popupVisible&&de.props.afterPopupVisibleChange(de.state.popupVisible)},de.triggerContextValue={onPopupMouseDown:de.onPopupMouseDown};var Re;return"popupVisible"in ye?Re=!!ye.popupVisible:Re=!!ye.defaultPopupVisible,de.state={prevPopupVisible:Re,popupVisible:Re},or.forEach(function(Ie){de["fire".concat(Ie)]=function(at){de.fireEvents(Ie,at)}}),de}return Object(E.a)(se,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var de=this.props,Re=this.state;if(Re.popupVisible){var Ie;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ie=de.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(Ke.a)(Ie,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ie=Ie||de.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(Ke.a)(Ie,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ie=Ie||de.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(Ke.a)(Ie,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(Ke.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Bt.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,Re=de.popupPlacement,Ie=de.popupAlign,at=de.builtinPlacements;return Re&&at?st(at,Re,Ie):Ie}},{key:"setPopupVisible",value:function(de,Re){var Ie=this.props.alignPoint,at=this.state.popupVisible;this.clearDelayTimer(),at!==de&&("popupVisible"in this.props||this.setState({popupVisible:de,prevPopupVisible:at}),this.props.onPopupVisibleChange(de)),Ie&&Re&&de&&this.setPoint(Re)}},{key:"delaySetPopupVisible",value:function(de,Re,Ie){var at=this,Ue=Re*1e3;if(this.clearDelayTimer(),Ue){var lt=Ie?{pageX:Ie.pageX,pageY:Ie.pageY}:null;this.delayTimer=window.setTimeout(function(){at.setPopupVisible(de,lt),at.clearDelayTimer()},Ue)}else this.setPopupVisible(de,Ie)}},{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 Re=this.props.children.props,Ie=this.props;return Re[de]&&Ie[de]?this["fire".concat(de)]:Re[de]||Ie[de]}},{key:"isClickToShow",value:function(){var de=this.props,Re=de.action,Ie=de.showAction;return Re.indexOf("click")!==-1||Ie.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,Re=de.action,Ie=de.showAction;return Re.indexOf("contextMenu")!==-1||Ie.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var de=this.props,Re=de.action,Ie=de.hideAction;return Re.indexOf("click")!==-1||Ie.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var de=this.props,Re=de.action,Ie=de.showAction;return Re.indexOf("hover")!==-1||Ie.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var de=this.props,Re=de.action,Ie=de.hideAction;return Re.indexOf("hover")!==-1||Ie.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var de=this.props,Re=de.action,Ie=de.showAction;return Re.indexOf("focus")!==-1||Ie.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var de=this.props,Re=de.action,Ie=de.hideAction;return Re.indexOf("focus")!==-1||Ie.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,Re){var Ie=this.props.children.props[de];Ie&&Ie(Re);var at=this.props[de];at&&at(Re)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var de=this.state.popupVisible,Re=this.props,Ie=Re.children,at=Re.forceRender,Ue=Re.alignPoint,lt=Re.className,Ot=Re.autoDestroy,jt=T.Children.only(Ie),Gt={key:"trigger"};this.isContextMenuToShow()?Gt.onContextMenu=this.onContextMenu:Gt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Gt.onClick=this.onClick,Gt.onMouseDown=this.onMouseDown,Gt.onTouchStart=this.onTouchStart):(Gt.onClick=this.createTwoChains("onClick"),Gt.onMouseDown=this.createTwoChains("onMouseDown"),Gt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Gt.onMouseEnter=this.onMouseEnter,Ue&&(Gt.onMouseMove=this.onMouseMove)):Gt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Gt.onMouseLeave=this.onMouseLeave:Gt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Gt.onFocus=this.onFocus,Gt.onBlur=this.onBlur):(Gt.onFocus=this.createTwoChains("onFocus"),Gt.onBlur=this.createTwoChains("onBlur"));var fn=B()(jt&&jt.props&&jt.props.className,lt);fn&&(Gt.className=fn);var In=Object(K.a)({},Gt);Object(tt.c)(jt)&&(In.ref=Object(tt.a)(this.triggerRef,jt.ref));var ar=T.cloneElement(jt,In),nr;return(de||this.popupRef.current||at)&&(nr=T.createElement(Ce,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!de&&Ot&&(nr=null),T.createElement(mn.Provider,{value:this.triggerContextValue},ar,nr)}}],[{key:"getDerivedStateFromProps",value:function(de,Re){var Ie=de.popupVisible,at={};return Ie!==void 0&&Re.popupVisible!==Ie&&(at.popupVisible=Ie,at.prevPopupVisible=Re.popupVisible),at}}]),se}(T.Component);return Ye.contextType=mn,Ye.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:_r,getDocument:Cn,onPopupVisibleChange:br,afterPopupVisibleChange:br,onPopupAlign:br,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 Ur=xr(Ct.a),q={adjustX:1,adjustY:1},De={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]}},Ve={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]}},Be=De,$e=0,qe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},ft=function(Ye,et,Oe){var se=ee(et),ye=Ye.getState();Ye.setState({defaultActiveFirst:Object(K.a)(Object(K.a)({},ye.defaultActiveFirst),{},Object(re.a)({},se,Oe))})},Ee=function(Ce){Object(c.a)(et,Ce);var Ye=Object(s.a)(et);function et(Oe){var se;Object(P.a)(this,et),se=Ye.call(this,Oe),se.onDestroy=function(Ue){se.props.onDestroy(Ue)},se.onKeyDown=function(Ue){var lt=Ue.keyCode,Ot=se.menuInstance,jt=se.props.store,Gt=se.getVisible();if(lt===p.a.ENTER)return se.onTitleClick(Ue),ft(jt,se.props.eventKey,!0),!0;if(lt===p.a.RIGHT)return Gt?Ot.onKeyDown(Ue):(se.triggerOpenChange(!0),ft(jt,se.props.eventKey,!0)),!0;if(lt===p.a.LEFT){var fn;if(Gt)fn=Ot.onKeyDown(Ue);else return;return fn||(se.triggerOpenChange(!1),fn=!0),fn}return Gt&&(lt===p.a.UP||lt===p.a.DOWN)?Ot.onKeyDown(Ue):void 0},se.onOpenChange=function(Ue){se.props.onOpenChange(Ue)},se.onPopupVisibleChange=function(Ue){se.triggerOpenChange(Ue,Ue?"mouseenter":"mouseleave")},se.onMouseEnter=function(Ue){var lt=se.props,Ot=lt.eventKey,jt=lt.onMouseEnter,Gt=lt.store;ft(Gt,se.props.eventKey,!1),jt({key:Ot,domEvent:Ue})},se.onMouseLeave=function(Ue){var lt=se.props,Ot=lt.parentMenu,jt=lt.eventKey,Gt=lt.onMouseLeave;Ot.subMenuInstance=Object(f.a)(se),Gt({key:jt,domEvent:Ue})},se.onTitleMouseEnter=function(Ue){var lt=se.props,Ot=lt.eventKey,jt=lt.onItemHover,Gt=lt.onTitleMouseEnter;jt({key:Ot,hover:!0}),Gt({key:Ot,domEvent:Ue})},se.onTitleMouseLeave=function(Ue){var lt=se.props,Ot=lt.parentMenu,jt=lt.eventKey,Gt=lt.onItemHover,fn=lt.onTitleMouseLeave;Ot.subMenuInstance=Object(f.a)(se),Gt({key:jt,hover:!1}),fn({key:jt,domEvent:Ue})},se.onTitleClick=function(Ue){var lt=Object(f.a)(se),Ot=lt.props;if(Ot.onTitleClick({key:Ot.eventKey,domEvent:Ue}),Ot.triggerSubMenuAction==="hover")return;se.triggerOpenChange(!se.getVisible(),"click"),ft(Ot.store,se.props.eventKey,!1)},se.onSubMenuClick=function(Ue){typeof se.props.onClick=="function"&&se.props.onClick(se.addKeyPath(Ue))},se.onSelect=function(Ue){se.props.onSelect(Ue)},se.onDeselect=function(Ue){se.props.onDeselect(Ue)},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(Ue){se.menuInstance=Ue},se.addKeyPath=function(Ue){return Object(K.a)(Object(K.a)({},Ue),{},{keyPath:(Ue.keyPath||[]).concat(se.props.eventKey)})},se.triggerOpenChange=function(Ue,lt){var Ot=se.props.eventKey,jt=function(){se.onOpenChange({key:Ot,item:Object(f.a)(se),trigger:lt,open:Ue})};lt==="mouseenter"?se.mouseenterTimeout=setTimeout(function(){jt()},0):jt()},se.isChildrenSelected=function(){var Ue={find:!1};return Q(se.props.children,se.props.selectedKeys,Ue),Ue.find},se.isInlineMode=function(){return se.getMode()==="inline"},se.adjustWidth=function(){if(!se.subMenuTitle||!se.menuInstance)return;var Ue=Ht.findDOMNode(se.menuInstance);if(Ue.offsetWidth>=se.subMenuTitle.offsetWidth)return;Ue.style.minWidth="".concat(se.subMenuTitle.offsetWidth,"px")},se.saveSubMenuTitle=function(Ue){se.subMenuTitle=Ue},se.getBaseProps=function(){var Ue=Object(f.a)(se),lt=Ue.props,Ot=se.getMode();return{mode:Ot==="horizontal"?"vertical":Ot,visible:se.getVisible(),level:lt.level+1,inlineIndent:lt.inlineIndent,focusable:!1,onClick:se.onSubMenuClick,onSelect:se.onSelect,onDeselect:se.onDeselect,onDestroy:se.onDestroy,selectedKeys:lt.selectedKeys,eventKey:"".concat(lt.eventKey,"-menu-"),openKeys:lt.openKeys,motion:lt.motion,onOpenChange:se.onOpenChange,subMenuOpenDelay:lt.subMenuOpenDelay,parentMenu:Object(f.a)(se),subMenuCloseDelay:lt.subMenuCloseDelay,forceSubMenuRender:lt.forceSubMenuRender,triggerSubMenuAction:lt.triggerSubMenuAction,builtinPlacements:lt.builtinPlacements,defaultActiveFirst:lt.store.getState().defaultActiveFirst[ee(lt.eventKey)],multiple:lt.multiple,prefixCls:lt.rootPrefixCls,id:se.internalMenuId,manualRef:se.saveMenuInstance,itemIcon:lt.itemIcon,expandIcon:lt.expandIcon,direction:lt.direction}},se.getMotion=function(Ue,lt){var Ot=Object(f.a)(se),jt=Ot.haveRendered,Gt=se.props,fn=Gt.motion,In=Gt.rootPrefixCls,ar=Object(K.a)(Object(K.a)({},fn),{},{leavedClassName:"".concat(In,"-hidden"),removeOnLeave:!1,motionAppear:jt||!lt||Ue!=="inline"});return ar};var ye=Oe.store,de=Oe.eventKey,Re=ye.getState(),Ie=Re.defaultActiveFirst;se.isRootMenu=!1;var at=!1;return Ie&&(at=Ie[de]),ft(ye,de,at),se.state={mode:Oe.mode,isOpen:Oe.isOpen},se}return Object(E.a)(et,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var se=this,ye=this.props,de=ye.mode,Re=ye.parentMenu,Ie=ye.manualRef,at=ye.isOpen,Ue=function(){se.setState({mode:de,isOpen:at})},lt=at!==this.state.isOpen,Ot=de!==this.state.mode;if((Ot||lt)&&(Bt.a.cancel(this.updateStateRaf),Ot?this.updateStateRaf=Object(Bt.a)(Ue):Ue()),Ie&&Ie(this),de!=="horizontal"||!(Re==null?void 0:Re.isRootMenu)||!at)return;this.minWidthTimeout=setTimeout(function(){return se.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var se=this.props,ye=se.onDestroy,de=se.eventKey;ye&&ye(de),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Bt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(se,ye){var de=this.getBaseProps();return T.createElement(gn,Object(v.a)({},de,{id:this.internalMenuId,className:se,style:ye}),this.props.children)}},{key:"renderChildren",value:function(){var se=this,ye=this.getBaseProps(),de=ye.mode,Re=ye.visible,Ie=ye.forceSubMenuRender,at=ye.direction,Ue=this.getMotion(de,Re);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Re||Ie,!this.haveOpened)return T.createElement("div",null);var lt=B()("".concat(ye.prefixCls,"-sub"),Object(re.a)({},"".concat(ye.prefixCls,"-rtl"),at==="rtl"));return this.isInlineMode()?T.createElement(te,Object(v.a)({visible:ye.visible,forceRender:Ie},Ue),function(Ot){var jt=Ot.className,Gt=Ot.style,fn=B()(lt,jt);return se.renderPopupMenu(fn,Gt)}):this.renderPopupMenu(lt)}},{key:"render",value:function(){var se,ye,de,Re=Object(K.a)({},this.props),Ie=this.getVisible(),at=this.getPrefixCls(),Ue=this.isInlineMode(),lt=this.getMode(),Ot=B()(at,"".concat(at,"-").concat(lt),(se={},Object(re.a)(se,Re.className,!!Re.className),Object(re.a)(se,this.getOpenClassName(),Ie),Object(re.a)(se,this.getActiveClassName(),Re.active||Ie&&!Ue),Object(re.a)(se,this.getDisabledClassName(),Re.disabled),Object(re.a)(se,this.getSelectedClassName(),this.isChildrenSelected()),se));this.internalMenuId||(Re.eventKey?this.internalMenuId="".concat(Re.eventKey,"$Menu"):($e+=1,this.internalMenuId="$__$".concat($e,"$Menu")));var jt={},Gt={},fn={};Re.disabled||(jt={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Gt={onClick:this.onTitleClick},fn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var In={},ar=Re.direction,nr=ar==="rtl";Ue&&(nr?In.paddingRight=Re.inlineIndent*Re.level:In.paddingLeft=Re.inlineIndent*Re.level);var ir={};this.getVisible()&&(ir={"aria-owns":this.internalMenuId});var pr=null;lt!=="horizontal"&&(pr=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(pr=T.createElement(this.props.expandIcon,Object(K.a)({},this.props))));var lr=T.createElement("div",Object(v.a)({ref:this.saveSubMenuTitle,style:In,className:"".concat(at,"-title"),role:"button"},fn,Gt,{"aria-expanded":Ie},ir,{"aria-haspopup":"true",title:typeof Re.title=="string"?Re.title:void 0}),Re.title,pr||T.createElement("i",{className:"".concat(at,"-arrow")})),mr=this.renderChildren(),Er=((ye=Re.parentMenu)===null||ye===void 0?void 0:ye.isRootMenu)?Re.parentMenu.props.getPopupContainer:function(Lr){return Lr.parentNode},rr=qe[lt],Tr=Re.popupOffset?{offset:Re.popupOffset}:{},$n=B()((de={},Object(re.a)(de,Re.popupClassName,Re.popupClassName&&!Ue),Object(re.a)(de,"".concat(at,"-rtl"),nr),de)),nn=Re.disabled,_n=Re.triggerSubMenuAction,sn=Re.subMenuOpenDelay,cn=Re.forceSubMenuRender,$t=Re.subMenuCloseDelay,Qn=Re.builtinPlacements;he.forEach(function(Lr){return delete Re[Lr]}),delete Re.onClick;var jn=nr?Object(K.a)(Object(K.a)({},Ve),Qn):Object(K.a)(Object(K.a)({},De),Qn);delete Re.direction;var yr=this.getBaseProps(),Nr=Ue?null:this.getMotion(yr.mode,yr.visible);return T.createElement("li",Object(v.a)({},Re,jt,{className:Ot,role:"menuitem"}),T.createElement(Ur,{prefixCls:at,popupClassName:B()("".concat(at,"-popup"),$n),getPopupContainer:Er,builtinPlacements:jn,popupPlacement:rr,popupVisible:Ue?!1:Ie,popupAlign:Tr,popup:Ue?null:mr,action:nn||Ue?[]:[_n],mouseEnterDelay:sn,mouseLeaveDelay:$t,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:cn,popupMotion:Nr},lr),Ue?mr:null)}}]),et}(T.Component);Ee.defaultProps={onMouseEnter:Ge,onMouseLeave:Ge,onTitleMouseEnter:Ge,onTitleMouseLeave:Ge,onTitleClick:Ge,manualRef:Ge,mode:"vertical",title:""};var gt=Object(i.b)(function(Ce,Ye){var et=Ce.openKeys,Oe=Ce.activeKey,se=Ce.selectedKeys,ye=Ye.eventKey,de=Ye.subMenuKey;return{isOpen:et.indexOf(ye)>-1,active:Oe[de]===ye,selectedKeys:se}})(Ee);gt.isSubMenu=!0;var yt=gt,Lt="menuitem-overflowed",bt=.5,ut=function(Ce){Object(c.a)(et,Ce);var Ye=Object(s.a)(et);function et(){var Oe;return Object(P.a)(this,et),Oe=Ye.apply(this,arguments),Oe.resizeObserver=null,Oe.mutationObserver=null,Oe.originalTotalWidth=0,Oe.overflowedItems=[],Oe.menuItemSizes=[],Oe.cancelFrameId=null,Oe.state={lastVisibleIndex:void 0},Oe.childRef=T.createRef(),Oe.getMenuItemNodes=function(){var se=Oe.props.prefixCls,ye=Oe.childRef.current;return ye?[].slice.call(ye.children).filter(function(de){return de.className.split(" ").indexOf("".concat(se,"-overflowed-submenu"))<0}):[]},Oe.getOverflowedSubMenuItem=function(se,ye,de){var Re=Oe.props,Ie=Re.overflowedIndicator,at=Re.level,Ue=Re.mode,lt=Re.prefixCls,Ot=Re.theme;if(at!==1||Ue!=="horizontal")return null;var jt=Oe.props.children[0],Gt=jt.props,fn=Gt.children,In=Gt.title,ar=Gt.style,nr=Object(I.a)(Gt,["children","title","style"]),ir=Object(K.a)({},ar),pr="".concat(se,"-overflowed-indicator"),lr="".concat(se,"-overflowed-indicator");ye.length===0&&de!==!0?ir=Object(K.a)(Object(K.a)({},ir),{},{display:"none"}):de&&(ir=Object(K.a)(Object(K.a)({},ir),{},{visibility:"hidden",position:"absolute"}),pr="".concat(pr,"-placeholder"),lr="".concat(lr,"-placeholder"));var mr=Ot?"".concat(lt,"-").concat(Ot):"",Er={};return he.forEach(function(rr){nr[rr]!==void 0&&(Er[rr]=nr[rr])}),T.createElement(yt,Object(v.a)({title:Ie,className:"".concat(lt,"-overflowed-submenu"),popupClassName:mr},Er,{key:pr,eventKey:lr,disabled:!1,style:ir}),ye)},Oe.setChildrenWidthAndResize=function(){if(Oe.props.mode!=="horizontal")return;var se=Oe.childRef.current;if(!se)return;var ye=se.children;if(!ye||ye.length===0)return;var de=se.children[ye.length-1];Fe(de,"display","inline-block");var Re=Oe.getMenuItemNodes(),Ie=Re.filter(function(at){return at.className.split(" ").indexOf(Lt)>=0});Ie.forEach(function(at){Fe(at,"display","inline-block")}),Oe.menuItemSizes=Re.map(function(at){return _e(at,!0)}),Ie.forEach(function(at){Fe(at,"display","none")}),Oe.overflowedIndicatorWidth=_e(se.children[se.children.length-1],!0),Oe.originalTotalWidth=Oe.menuItemSizes.reduce(function(at,Ue){return at+Ue},0),Oe.handleResize(),Fe(de,"display","none")},Oe.handleResize=function(){if(Oe.props.mode!=="horizontal")return;var se=Oe.childRef.current;if(!se)return;var ye=_e(se);Oe.overflowedItems=[];var de=0,Re;Oe.originalTotalWidth>ye+bt&&(Re=-1,Oe.menuItemSizes.forEach(function(Ie){de+=Ie,de+Oe.overflowedIndicatorWidth<=ye&&(Re+=1)})),Oe.setState({lastVisibleIndex:Re})},Oe}return Object(E.a)(et,[{key:"componentDidMount",value:function(){var se=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var ye=this.childRef.current;if(!ye)return;this.resizeObserver=new Rt.default(function(de){de.forEach(function(){var Re=se.cancelFrameId;cancelAnimationFrame(Re),se.cancelFrameId=requestAnimationFrame(se.setChildrenWidthAndResize)})}),[].slice.call(ye.children).concat(ye).forEach(function(de){se.resizeObserver.observe(de)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){se.resizeObserver.disconnect(),[].slice.call(ye.children).concat(ye).forEach(function(de){se.resizeObserver.observe(de)}),se.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(se){var ye=this,de=this.state.lastVisibleIndex;return(se||[]).reduce(function(Re,Ie,at){var Ue=Ie;if(ye.props.mode==="horizontal"){var lt=ye.getOverflowedSubMenuItem(Ie.props.eventKey,[]);de!==void 0&&ye.props.className.indexOf("".concat(ye.props.prefixCls,"-root"))!==-1&&(at>de&&(Ue=T.cloneElement(Ie,{style:{display:"none"},eventKey:"".concat(Ie.props.eventKey,"-hidden"),className:"".concat(Lt)})),at===de+1&&(ye.overflowedItems=se.slice(de+1).map(function(jt){return T.cloneElement(jt,{key:jt.props.eventKey,mode:"vertical-left"})}),lt=ye.getOverflowedSubMenuItem(Ie.props.eventKey,ye.overflowedItems)));var Ot=[].concat(Object(D.a)(Re),[lt,Ue]);return at===se.length-1&&Ot.push(ye.getOverflowedSubMenuItem(Ie.props.eventKey,[],!0)),Ot}return[].concat(Object(D.a)(Re),[Ue])},[])}},{key:"render",value:function(){var se=this.props,ye=se.visible,de=se.prefixCls,Re=se.overflowedIndicator,Ie=se.mode,at=se.level,Ue=se.tag,lt=se.children,Ot=se.theme,jt=Object(I.a)(se,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Gt=Ue;return T.createElement(Gt,Object(v.a)({ref:this.childRef},jt),this.renderChildren(lt))}}]),et}(T.Component);ut.defaultProps={tag:"div",className:""};var kt=ut;function Mt(Ce){return Ce.length?Ce.every(function(Ye){return!!Ye.props.disabled}):!0}function Le(Ce,Ye,et){var Oe=Ce.getState();Ce.setState({activeKey:Object(K.a)(Object(K.a)({},Oe.activeKey),{},Object(re.a)({},Ye,et))})}function mt(Ce){return Ce.eventKey||"0-menu-"}function Pt(Ce,Ye){var et=Ye,Oe=Ce.children,se=Ce.eventKey;if(et){var ye;if(V(Oe,function(de,Re){de&&de.props&&!de.props.disabled&&et===it(de,se,Re)&&(ye=!0)}),ye)return et}return et=null,Ce.defaultActiveFirst&&V(Oe,function(de,Re){!et&&de&&!de.props.disabled&&(et=it(de,se,Re))}),et}function Jt(Ce){if(!Ce)return;var Ye=this.instanceArray.indexOf(Ce);Ye!==-1?this.instanceArray[Ye]=Ce:this.instanceArray.push(Ce)}var Nt=function(Ce){Object(c.a)(et,Ce);var Ye=Object(s.a)(et);function et(Oe){var se;return Object(P.a)(this,et),se=Ye.call(this,Oe),se.onKeyDown=function(ye,de){var Re=ye.keyCode,Ie;if(se.getFlatInstanceArray().forEach(function(Ue){Ue&&Ue.props.active&&Ue.onKeyDown&&(Ie=Ue.onKeyDown(ye))}),Ie)return 1;var at=null;return(Re===p.a.UP||Re===p.a.DOWN)&&(at=se.step(Re===p.a.UP?-1:1)),at?(ye.preventDefault(),Le(se.props.store,mt(se.props),at.props.eventKey),typeof de=="function"&&de(at),1):void 0},se.onItemHover=function(ye){var de=ye.key,Re=ye.hover;Le(se.props.store,mt(se.props),Re?de:null)},se.onDeselect=function(ye){se.props.onDeselect(ye)},se.onSelect=function(ye){se.props.onSelect(ye)},se.onClick=function(ye){se.props.onClick(ye)},se.onOpenChange=function(ye){se.props.onOpenChange(ye)},se.onDestroy=function(ye){se.props.onDestroy(ye)},se.getFlatInstanceArray=function(){return se.instanceArray},se.step=function(ye){var de=se.getFlatInstanceArray(),Re=se.props.store.getState().activeKey[mt(se.props)],Ie=de.length;if(!Ie)return null;ye<0&&(de=de.concat().reverse());var at=-1;if(de.every(function(jt,Gt){return jt&&jt.props.eventKey===Re?(at=Gt,!1):!0}),!se.props.defaultActiveFirst&&at!==-1&&Mt(de.slice(at,Ie-1)))return;var Ue=(at+1)%Ie,lt=Ue;do{var Ot=de[lt];if(!Ot||Ot.props.disabled)lt=(lt+1)%Ie;else return Ot}while(lt!==Ue);return null},se.renderCommonMenuItem=function(ye,de,Re){var Ie=se.props.store.getState(),at=Object(f.a)(se),Ue=at.props,lt=it(ye,Ue.eventKey,de),Ot=ye.props;if(!Ot||typeof ye.type=="string")return ye;var jt=lt===Ie.activeKey,Gt=Object(K.a)(Object(K.a)({mode:Ot.mode||Ue.mode,level:Ue.level,inlineIndent:Ue.inlineIndent,renderMenuItem:se.renderMenuItem,rootPrefixCls:Ue.prefixCls,index:de,parentMenu:Ue.parentMenu,manualRef:Ot.disabled?void 0:Object(_.a)(ye.ref,Jt.bind(Object(f.a)(se))),eventKey:lt,active:!Ot.disabled&&jt,multiple:Ue.multiple,onClick:function(In){(Ot.onClick||Ge)(In),se.onClick(In)},onItemHover:se.onItemHover,motion:Ue.motion,subMenuOpenDelay:Ue.subMenuOpenDelay,subMenuCloseDelay:Ue.subMenuCloseDelay,forceSubMenuRender:Ue.forceSubMenuRender,onOpenChange:se.onOpenChange,onDeselect:se.onDeselect,onSelect:se.onSelect,builtinPlacements:Ue.builtinPlacements,itemIcon:Ot.itemIcon||se.props.itemIcon,expandIcon:Ot.expandIcon||se.props.expandIcon},Re),{},{direction:Ue.direction});return(Ue.mode==="inline"||He())&&(Gt.triggerSubMenuAction="click"),T.cloneElement(ye,Object(K.a)(Object(K.a)({},Gt),{},{key:lt||de}))},se.renderMenuItem=function(ye,de,Re){if(!ye)return null;var Ie=se.props.store.getState(),at={openKeys:Ie.openKeys,selectedKeys:Ie.selectedKeys,triggerSubMenuAction:se.props.triggerSubMenuAction,subMenuKey:Re};return se.renderCommonMenuItem(ye,de,at)},Oe.store.setState({activeKey:Object(K.a)(Object(K.a)({},Oe.store.getState().activeKey),{},Object(re.a)({},Oe.eventKey,Pt(Oe,Oe.activeKey)))}),se.instanceArray=[],se}return Object(E.a)(et,[{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 ye=this.props,de="activeKey"in ye?ye.activeKey:ye.store.getState().activeKey[mt(ye)],Re=Pt(ye,de);if(Re!==de)Le(ye.store,mt(ye),Re);else if("activeKey"in se){var Ie=Pt(se,se.activeKey);Re!==Ie&&Le(ye.store,mt(ye),Re)}}},{key:"render",value:function(){var se=this,ye=Object(v.a)({},this.props);this.instanceArray=[];var de=B()(ye.prefixCls,ye.className,"".concat(ye.prefixCls,"-").concat(ye.mode)),Re={className:de,role:ye.role||"menu"};ye.id&&(Re.id=ye.id),ye.focusable&&(Re.tabIndex=0,Re.onKeyDown=this.onKeyDown);var Ie=ye.prefixCls,at=ye.eventKey,Ue=ye.visible,lt=ye.level,Ot=ye.mode,jt=ye.overflowedIndicator,Gt=ye.theme;return he.forEach(function(fn){return delete ye[fn]}),delete ye.onClick,T.createElement(kt,Object(v.a)({},ye,{prefixCls:Ie,mode:Ot,tag:"ul",level:lt,theme:Gt,visible:Ue,overflowedIndicator:jt},Re),Object(x.a)(ye.children).map(function(fn,In){return se.renderMenuItem(fn,In,at||"0-menu-")}))}}]),et}(T.Component);Nt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ge};var Sn=Object(i.b)()(Nt),gn=Sn,un=F("Kwbf");function Mn(Ce,Ye,et){var Oe=Ce.prefixCls,se=Ce.motion,ye=Ce.defaultMotions,de=ye===void 0?{}:ye,Re=Ce.openAnimation,Ie=Ce.openTransitionName,at=Ye.switchingModeFromInline;if(se)return se;if(Object(U.a)(Re)==="object"&&Re)Object(un.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Re=="string")return{motionName:"".concat(Oe,"-open-").concat(Re)};if(Ie)return{motionName:Ie};var Ue=de[et];return Ue||(at?null:de.other)}var Rn=function(Ce){Object(c.a)(et,Ce);var Ye=Object(s.a)(et);function et(Oe){var se;Object(P.a)(this,et),se=Ye.call(this,Oe),se.onSelect=function(Re){var Ie=Object(f.a)(se),at=Ie.props;if(at.selectable){var Ue=se.store.getState(),lt=Ue.selectedKeys,Ot=Re.key;at.multiple?lt=lt.concat([Ot]):lt=[Ot],"selectedKeys"in at||se.store.setState({selectedKeys:lt}),at.onSelect(Object(K.a)(Object(K.a)({},Re),{},{selectedKeys:lt}))}},se.onClick=function(Re){var Ie=se.getRealMenuMode(),at=Object(f.a)(se),Ue=at.store,lt=at.props.onOpenChange;Ie!=="inline"&&!("openKeys"in se.props)&&(Ue.setState({openKeys:[]}),lt([])),se.props.onClick(Re)},se.onKeyDown=function(Re,Ie){se.innerMenu.getWrappedInstance().onKeyDown(Re,Ie)},se.onOpenChange=function(Re){var Ie=Object(f.a)(se),at=Ie.props,Ue=se.store.getState().openKeys.concat(),lt=!1,Ot=function(Gt){var fn=!1;if(Gt.open)fn=Ue.indexOf(Gt.key)===-1,fn&&Ue.push(Gt.key);else{var In=Ue.indexOf(Gt.key);fn=In!==-1,fn&&Ue.splice(In,1)}lt=lt||fn};Array.isArray(Re)?Re.forEach(Ot):Ot(Re),lt&&("openKeys"in se.props||se.store.setState({openKeys:Ue}),at.onOpenChange(Ue))},se.onDeselect=function(Re){var Ie=Object(f.a)(se),at=Ie.props;if(at.selectable){var Ue=se.store.getState().selectedKeys.concat(),lt=Re.key,Ot=Ue.indexOf(lt);Ot!==-1&&Ue.splice(Ot,1),"selectedKeys"in at||se.store.setState({selectedKeys:Ue}),at.onDeselect(Object(K.a)(Object(K.a)({},Re),{},{selectedKeys:Ue}))}},se.onMouseEnter=function(Re){se.restoreModeVerticalFromInline();var Ie=se.props.onMouseEnter;Ie&&Ie(Re)},se.onTransitionEnd=function(Re){var Ie=Re.propertyName==="width"&&Re.target===Re.currentTarget,at=Re.target.className,Ue=Object.prototype.toString.call(at)==="[object SVGAnimatedString]"?at.animVal:at,lt=Re.propertyName==="font-size"&&Ue.indexOf("anticon")>=0;(Ie||lt)&&se.restoreModeVerticalFromInline()},se.setInnerMenu=function(Re){se.innerMenu=Re},se.isRootMenu=!0;var ye=Oe.defaultSelectedKeys,de=Oe.defaultOpenKeys;return"selectedKeys"in Oe&&(ye=Oe.selectedKeys||[]),"openKeys"in Oe&&(de=Oe.openKeys||[]),se.store=Object(i.c)({selectedKeys:ye,openKeys:de,activeKey:{"0-menu-":Pt(Oe,Oe.activeKey)}}),se.state={switchingModeFromInline:!1,prevProps:Oe,inlineOpenKeys:[],store:se.store},se}return Object(E.a)(et,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(se){var ye=this.props,de=ye.siderCollapsed,Re=ye.inlineCollapsed,Ie=ye.onOpenChange;(!se.inlineCollapsed&&Re||!se.siderCollapsed&&de)&&Ie([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var se=this.props.collapsedWidth,ye=this.store,de=this.prevOpenKeys,Re=this.getInlineCollapsed()&&(se===0||se==="0"||se==="0px");Re?(this.prevOpenKeys=ye.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,ye=this.state.switchingModeFromInline,de=this.getInlineCollapsed();return ye&&de?"inline":de?"vertical":se}},{key:"getInlineCollapsed",value:function(){var se=this.props,ye=se.inlineCollapsed,de=se.siderCollapsed;return de!==void 0?de:ye}},{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(K.a)({},Object(C.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),ye=this.getRealMenuMode();return se.className+=" ".concat(se.prefixCls,"-root"),se.direction==="rtl"&&(se.className+=" ".concat(se.prefixCls,"-rtl")),se=Object(K.a)(Object(K.a)({},se),{},{mode:ye,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Mn(this.props,this.state,ye)}),delete se.openAnimation,delete se.openTransitionName,T.createElement(i.a,{store:this.store},T.createElement(gn,Object(v.a)({},se,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(se,ye){var de=ye.prevProps,Re=ye.store,Ie=Re.getState(),at={},Ue={prevProps:se};return de.mode==="inline"&&se.mode!=="inline"&&(Ue.switchingModeFromInline=!0),"openKeys"in se?at.openKeys=se.openKeys||[]:((se.inlineCollapsed&&!de.inlineCollapsed||se.siderCollapsed&&!de.siderCollapsed)&&(Ue.switchingModeFromInline=!0,Ue.inlineOpenKeys=Ie.openKeys,at.openKeys=[]),(!se.inlineCollapsed&&de.inlineCollapsed||!se.siderCollapsed&&de.siderCollapsed)&&(at.openKeys=ye.inlineOpenKeys,Ue.inlineOpenKeys=[])),Object.keys(at).length&&Re.setState(at),Ue}}]),et}(T.Component);Rn.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:T.createElement("span",null,"\xB7\xB7\xB7")};var vt=Rn,Xt=function(Ce){Object(c.a)(et,Ce);var Ye=Object(s.a)(et);function et(){var Oe;return Object(P.a)(this,et),Oe=Ye.apply(this,arguments),Oe.onKeyDown=function(se){var ye=se.keyCode;return ye===p.a.ENTER?(Oe.onClick(se),!0):void 0},Oe.onMouseLeave=function(se){var ye=Oe.props,de=ye.eventKey,Re=ye.onItemHover,Ie=ye.onMouseLeave;Re({key:de,hover:!1}),Ie({key:de,domEvent:se})},Oe.onMouseEnter=function(se){var ye=Oe.props,de=ye.eventKey,Re=ye.onItemHover,Ie=ye.onMouseEnter;Re({key:de,hover:!0}),Ie({key:de,domEvent:se})},Oe.onClick=function(se){var ye=Oe.props,de=ye.eventKey,Re=ye.multiple,Ie=ye.onClick,at=ye.onSelect,Ue=ye.onDeselect,lt=ye.isSelected,Ot={key:de,keyPath:[de],item:Object(f.a)(Oe),domEvent:se};Ie(Ot),Re?lt?Ue(Ot):at(Ot):lt||at(Ot)},Oe.saveNode=function(se){Oe.node=se},Oe}return Object(E.a)(et,[{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,ye=Object(K.a)({},this.props),de=B()(this.getPrefixCls(),ye.className,(se={},Object(re.a)(se,this.getActiveClassName(),!ye.disabled&&ye.active),Object(re.a)(se,this.getSelectedClassName(),ye.isSelected),Object(re.a)(se,this.getDisabledClassName(),ye.disabled),se)),Re=Object(K.a)(Object(K.a)({},ye.attribute),{},{title:typeof ye.title=="string"?ye.title:void 0,className:de,role:ye.role||"menuitem","aria-disabled":ye.disabled});ye.role==="option"?Re=Object(K.a)(Object(K.a)({},Re),{},{role:"option","aria-selected":ye.isSelected}):(ye.role===null||ye.role==="none")&&(Re.role="none");var Ie={onClick:ye.disabled?null:this.onClick,onMouseLeave:ye.disabled?null:this.onMouseLeave,onMouseEnter:ye.disabled?null:this.onMouseEnter},at=Object(K.a)({},ye.style);ye.mode==="inline"&&(ye.direction==="rtl"?at.paddingRight=ye.inlineIndent*ye.level:at.paddingLeft=ye.inlineIndent*ye.level),he.forEach(function(lt){return delete ye[lt]}),delete ye.direction;var Ue=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Ue=T.createElement(this.props.itemIcon,this.props)),T.createElement("li",Object(v.a)({},Object(C.a)(ye,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Re,Ie,{style:at,ref:this.saveNode}),ye.children,Ue)}}]),et}(T.Component);Xt.isMenuItem=!0,Xt.defaultProps={onSelect:Ge,onMouseEnter:Ge,onMouseLeave:Ge,manualRef:Ge};var Tt=Object(i.b)(function(Ce,Ye){var et=Ce.activeKey,Oe=Ce.selectedKeys,se=Ye.eventKey,ye=Ye.subMenuKey;return{active:et[ye]===se,isSelected:Array.isArray(Oe)?Oe.indexOf(se)!==-1:Oe===se}})(Xt),Tn=Tt,zt=function(Ce){Object(c.a)(et,Ce);var Ye=Object(s.a)(et);function et(){var Oe;return Object(P.a)(this,et),Oe=Ye.apply(this,arguments),Oe.renderInnerMenuItem=function(se){var ye=Oe.props,de=ye.renderMenuItem,Re=ye.index;return de(se,Re,Oe.props.subMenuKey)},Oe}return Object(E.a)(et,[{key:"render",value:function(){var se=Object(v.a)({},this.props),ye=se.className,de=ye===void 0?"":ye,Re=se.rootPrefixCls,Ie="".concat(Re,"-item-group-title"),at="".concat(Re,"-item-group-list"),Ue=se.title,lt=se.children;return he.forEach(function(Ot){return delete se[Ot]}),delete se.direction,T.createElement("li",Object(v.a)({},se,{onClick:function(jt){return jt.stopPropagation()},className:"".concat(de," ").concat(Re,"-item-group")}),T.createElement("div",{className:Ie,title:typeof Ue=="string"?Ue:void 0},Ue),T.createElement("ul",{className:at},T.Children.map(lt,this.renderInnerMenuItem)))}}]),et}(T.Component);zt.isMenuItemGroup=!0,zt.defaultProps={disabled:!0};var En=zt,wn=function(Ye){var et=Ye.className,Oe=Ye.rootPrefixCls,se=Ye.style;return T.createElement("li",{className:"".concat(et," ").concat(Oe,"-item-divider"),style:se})};wn.defaultProps={disabled:!0,className:"",style:{}};var Yn=wn,Ln=vt,yn=F("eDIo");function sr(Ce,Ye){var et=Ce.prefixCls,Oe=Ce.editable,se=Ce.locale,ye=Ce.style;return!Oe||Oe.showAdd===!1?null:T.createElement("button",{ref:Ye,type:"button",className:"".concat(et,"-nav-add"),style:ye,"aria-label":(se==null?void 0:se.addAriaLabel)||"Add tab",onClick:function(Re){Oe.onEdit("add",{event:Re})}},Oe.addIcon||"+")}var Fn=T.forwardRef(sr);function Ir(Ce,Ye){var et=Ce.prefixCls,Oe=Ce.id,se=Ce.tabs,ye=Ce.locale,de=Ce.mobile,Re=Ce.moreIcon,Ie=Re===void 0?"More":Re,at=Ce.moreTransitionName,Ue=Ce.style,lt=Ce.className,Ot=Ce.editable,jt=Ce.tabBarGutter,Gt=Ce.rtl,fn=Ce.onTabClick,In=Object(T.useState)(!1),ar=Object(z.a)(In,2),nr=ar[0],ir=ar[1],pr=Object(T.useState)(null),lr=Object(z.a)(pr,2),mr=lr[0],Er=lr[1],rr="".concat(Oe,"-more-popup"),Tr="".concat(et,"-dropdown"),$n=mr!==null?"".concat(rr,"-").concat(mr):null,nn=ye==null?void 0:ye.dropdownAriaLabel,_n=T.createElement(Ln,{onClick:function(Nr){var Lr=Nr.key,Or=Nr.domEvent;fn(Lr,Or),ir(!1)},id:rr,tabIndex:-1,role:"listbox","aria-activedescendant":$n,selectedKeys:[mr],"aria-label":nn!==void 0?nn:"expanded dropdown"},se.map(function(yr){return T.createElement(Tn,{key:yr.key,id:"".concat(rr,"-").concat(yr.key),role:"option","aria-controls":Oe&&"".concat(Oe,"-panel-").concat(yr.key),disabled:yr.disabled},yr.tab)}));function sn(yr){for(var Nr=se.filter(function(ua){return!ua.disabled}),Lr=Nr.findIndex(function(ua){return ua.key===mr})||0,Or=Nr.length,kr=0;krQn?(cn=_n,rr.current="x"):(cn=sn,rr.current="y");var jn=Date.now();jn-mr.current>100&&(Er.current=!1),(Ye(-cn,-cn)||Er.current)&&(nn.preventDefault(),Er.current=!0),mr.current=jn}var $n=Object(T.useRef)(null);$n.current={onTouchStart:ir,onTouchMove:pr,onTouchEnd:lr,onWheel:Tr},T.useEffect(function(){function nn($t){$n.current.onTouchStart($t)}function _n($t){$n.current.onTouchMove($t)}function sn($t){$n.current.onTouchEnd($t)}function cn($t){$n.current.onWheel($t)}return document.addEventListener("touchmove",_n,{passive:!1}),document.addEventListener("touchend",sn,{passive:!1}),Ce.current.addEventListener("touchstart",nn,{passive:!1}),Ce.current.addEventListener("wheel",cn),function(){document.removeEventListener("touchmove",_n),document.removeEventListener("touchend",sn)}},[])}function ta(){var Ce=Object(T.useRef)(new Map);function Ye(Oe){return Ce.current.has(Oe)||Ce.current.set(Oe,T.createRef()),Ce.current.get(Oe)}function et(Oe){Ce.current.delete(Oe)}return[Ye,et]}function pa(Ce,Ye){var et=T.useRef(Ce),Oe=T.useState({}),se=Object(z.a)(Oe,2),ye=se[1];function de(Re){var Ie=typeof Re=="function"?Re(et.current):Re;Ie!==et.current&&Ye(Ie,et.current),et.current=Ie,ye({})}return[et.current,de]}var ma=function(Ye){var et=Ye.position,Oe=Ye.prefixCls,se=Ye.extra;if(!se)return null;var ye,de=se;return et==="right"&&(ye=de.right||!de.left&&de||null),et==="left"&&(ye=de.left||null),ye?T.createElement("div",{className:"".concat(Oe,"-extra-content")},ye):null};function Ga(Ce,Ye){var et,Oe=T.useContext(Mr),se=Oe.prefixCls,ye=Oe.tabs,de=Ce.className,Re=Ce.style,Ie=Ce.id,at=Ce.animated,Ue=Ce.activeKey,lt=Ce.rtl,Ot=Ce.extra,jt=Ce.editable,Gt=Ce.locale,fn=Ce.tabPosition,In=Ce.tabBarGutter,ar=Ce.children,nr=Ce.onTabClick,ir=Ce.onTabScroll,pr=Object(T.useRef)(),lr=Object(T.useRef)(),mr=Object(T.useRef)(),Er=Object(T.useRef)(),rr=ta(),Tr=Object(z.a)(rr,2),$n=Tr[0],nn=Tr[1],_n=fn==="top"||fn==="bottom",sn=pa(0,function(Kr,Rr){_n&&ir&&ir({direction:Kr>Rr?"left":"right"})}),cn=Object(z.a)(sn,2),$t=cn[0],Qn=cn[1],jn=pa(0,function(Kr,Rr){!_n&&ir&&ir({direction:Kr>Rr?"top":"bottom"})}),yr=Object(z.a)(jn,2),Nr=yr[0],Lr=yr[1],Or=Object(T.useState)(0),kr=Object(z.a)(Or,2),ur=kr[0],ua=kr[1],Ja=Object(T.useState)(0),Na=Object(z.a)(Ja,2),wa=Na[0],Qr=Na[1],Gr=Object(T.useState)(0),Xr=Object(z.a)(Gr,2),Jr=Xr[0],ja=Xr[1],hi=Object(T.useState)(0),si=Object(z.a)(hi,2),Vr=si[0],Za=si[1],qa=Object(T.useState)(null),$r=Object(z.a)(qa,2),zr=$r[0],ba=$r[1],Li=Object(T.useState)(null),no=Object(z.a)(Li,2),li=no[0],wi=no[1],Si=Object(T.useState)(0),Ti=Object(z.a)(Si,2),ki=Ti[0],co=Ti[1],Ro=Object(T.useState)(0),Gi=Object(z.a)(Ro,2),Oi=Gi[0],Vi=Gi[1],yi=n(new Map),Ri=Object(z.a)(yi,2),ho=Ri[0],Xi=Ri[1],Di=h(ye,ho,ur),Ai="".concat(se,"-nav-operations-hidden"),bi=0,ka=0;_n?lt?(bi=0,ka=Math.max(0,ur-zr)):(bi=Math.min(0,zr-ur),ka=0):(bi=Math.min(0,li-wa),ka=0);function fi(Kr){return Krka?[ka,!1]:[Kr,!0]}var pi=Object(T.useRef)(),Ei=Object(T.useState)(),mi=Object(z.a)(Ei,2),Yi=mi[0],$i=mi[1];function Qi(){$i(Date.now())}function Ii(){window.clearTimeout(pi.current)}Yr(pr,function(Kr,Rr){var la=!1;function Ua(Pi,ci){Pi(function(Ui){var di=fi(Ui+ci),Ea=Object(z.a)(di,2),Fi=Ea[0],Bi=Ea[1];return la=Bi,Fi})}if(_n){if(zr>=ur)return la;Ua(Qn,Kr)}else{if(li>=wa)return la;Ua(Lr,Rr)}return Ii(),Qi(),la}),Object(T.useEffect)(function(){return Ii(),Yi&&(pi.current=window.setTimeout(function(){$i(0)},100)),Ii},[Yi]);function ui(){var Kr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ue,Rr=Di.get(Kr);if(!Rr)return;if(_n){var la=$t;lt?Rr.right<$t?la=Rr.right:Rr.right+Rr.width>$t+zr&&(la=Rr.right+Rr.width-zr):Rr.left<-$t?la=-Rr.left:Rr.left+Rr.width>-$t+zr&&(la=-(Rr.left+Rr.width-zr)),Lr(0),Qn(fi(la)[0])}else{var Ua=Nr;Rr.top<-Nr?Ua=-Rr.top:Rr.top+Rr.height>-Nr+li&&(Ua=-(Rr.top+Rr.height-li)),Qn(0),Lr(fi(Ua)[0])}}var xi=b(Di,{width:zr,height:li,left:$t,top:Nr},{width:Jr,height:Vr},{width:ki,height:Oi},Object(K.a)(Object(K.a)({},Ce),{},{tabs:ye})),ro=Object(z.a)(xi,2),Do=ro[0],Ao=ro[1],fo=ye.map(function(Kr){var Rr=Kr.key;return T.createElement(o,{id:Ie,prefixCls:se,key:Rr,rtl:lt,tab:Kr,closable:Kr.closable,editable:jt,active:Rr===Ue,tabPosition:fn,tabBarGutter:In,renderWrapper:ar,removeAriaLabel:Gt==null?void 0:Gt.removeAriaLabel,ref:$n(Rr),onClick:function(Ua){nr(Rr,Ua)},onRemove:function(){nn(Rr)},onFocus:function(){ui(Rr),Qi(),lt||(pr.current.scrollLeft=0),pr.current.scrollTop=0}})}),ao=g(function(){var Kr,Rr,la,Ua,Pi,ci,Ui,di,Ea,Fi=((Kr=pr.current)===null||Kr===void 0?void 0:Kr.offsetWidth)||0,Bi=((Rr=pr.current)===null||Rr===void 0?void 0:Rr.offsetHeight)||0,Wi=((la=Er.current)===null||la===void 0?void 0:la.offsetWidth)||0,Ka=((Ua=Er.current)===null||Ua===void 0?void 0:Ua.offsetHeight)||0,Hr=((Pi=mr.current)===null||Pi===void 0?void 0:Pi.offsetWidth)||0,gr=((ci=mr.current)===null||ci===void 0?void 0:ci.offsetHeight)||0;ba(Fi),wi(Bi),co(Wi),Vi(Ka);var Pn=(((Ui=lr.current)===null||Ui===void 0?void 0:Ui.offsetWidth)||0)-Wi,er=(((di=lr.current)===null||di===void 0?void 0:di.offsetHeight)||0)-Ka;ua(Pn),Qr(er);var wr=(Ea=mr.current)===null||Ea===void 0?void 0:Ea.className.includes(Ai);ja(Pn-(wr?0:Hr)),Za(er-(wr?0:gr)),Xi(function(){var aa=new Map;return ye.forEach(function(vi){var ii=vi.key,Da=$n(ii).current;Da&&aa.set(ii,{width:Da.offsetWidth,height:Da.offsetHeight,left:Da.offsetLeft,top:Da.offsetTop})}),aa})}),po=ye.slice(0,Do),Ha=ye.slice(Ao+1),ca=[].concat(Object(D.a)(po),Object(D.a)(Ha)),Ra=Object(T.useState)(),da=Object(z.a)(Ra,2),Ni=da[0],mo=da[1],ei=Di.get(Ue),io=Object(T.useRef)();function oo(){R.a.cancel(io.current)}Object(T.useEffect)(function(){var Kr={};return ei&&(_n?(lt?Kr.right=ei.right:Kr.left=ei.left,Kr.width=ei.width):(Kr.top=ei.top,Kr.height=ei.height)),oo(),io.current=R()(function(){mo(Kr)}),oo},[ei,_n,lt]),Object(T.useEffect)(function(){ui()},[Ue,ei,Di,_n]),Object(T.useEffect)(function(){ao()},[lt,In,Ue,ye.map(function(Kr){return Kr.key}).join("_")]);var so=!!ca.length,_i="".concat(se,"-nav-wrap"),Ji,ji,vo,Zi;return _n?lt?(ji=$t>0,Ji=$t+zr */rt.read=function(F,re,z,I,K){var T,w,B=K*8-I-1,x=(1<>1,D=-7,m=z?K-1:0,R=z?-1:1,M=F[re+m];for(m+=R,T=M&(1<<-D)-1,M>>=-D,D+=B;D>0;T=T*256+F[re+m],m+=R,D-=8);for(w=T&(1<<-D)-1,T>>=-D,D+=I;D>0;w=w*256+F[re+m],m+=R,D-=8);if(T===0)T=1-k;else{if(T===x)return w?NaN:(M?-1:1)*Infinity;w=w+Math.pow(2,I),T=T-k}return(M?-1:1)*w*Math.pow(2,T-I)},rt.write=function(F,re,z,I,K,T){var w,B,x,k=T*8-K-1,D=(1<>1,R=K===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=I?0:T-1,g=I?1:-1,n=re<0||re===0&&1/re<0?1:0;for(re=Math.abs(re),isNaN(re)||re===Infinity?(B=isNaN(re)?1:0,w=D):(w=Math.floor(Math.log(re)/Math.LN2),re*(x=Math.pow(2,-w))<1&&(w--,x*=2),w+m>=1?re+=R/x:re+=R*Math.pow(2,1-m),re*x>=2&&(w++,x/=2),w+m>=D?(B=0,w=D):w+m>=1?(B=(re*x-1)*Math.pow(2,K),w=w+m):(B=re*Math.pow(2,m-1)*Math.pow(2,K),w=0));K>=8;F[z+M]=B&255,M+=g,B/=256,K-=8);for(w=w<0;F[z+M]=w&255,M+=g,w/=256,k-=8);F[z+M-g]|=n*128}},lZu9:function(an,rt,F){(function(re){re(F("VrN/"),F("1eCo"),F("8EBN"))})(function(re){"use strict";re.defineMode("markdown",function(z,I){var K=re.getMode(z,"text/html"),T=K.name=="null";function w(L){if(re.findModeByName){var W=re.findModeByName(L);W&&(L=W.mime||W.mimes[0])}var Z=re.getMode(z,L);return Z.name=="null"?null:Z}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 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 x in B)B.hasOwnProperty(x)&&I.tokenTypeOverrides[x]&&(B[x]=I.tokenTypeOverrides[x]);var k=/^([*\-_])(?:\s*\1){2,}\s*$/,D=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,m=/^\[(x| )\](?=\s)/i,R=I.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,M=/^ {0,3}(?:\={1,}|-{2,})\s*$/,g=/^[^#!\[\]*_\\<>` "'(~:]+/,n=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,p=/^\s*\[[^\]]+?\]:.*$/,d=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,o=" ";function u(L,W,Z){return W.f=W.inline=Z,Z(L,W)}function h(L,W,Z){return W.f=W.block=Z,Z(L,W)}function S(L){return!L||!/\S/.test(L.string)}function b(L){if(L.linkTitle=!1,L.linkHref=!1,L.linkText=!1,L.em=!1,L.strong=!1,L.strikethrough=!1,L.quote=0,L.indentedCode=!1,L.f==P){var W=T;if(!W){var Z=re.innerMode(K,L.htmlState);W=Z.mode.name=="xml"&&Z.state.tagStart===null&&!Z.state.context&&Z.state.tokenize.isInText}W&&(L.f=s,L.block=v,L.htmlState=null)}return L.trailingSpace=0,L.trailingSpaceNewLine=!1,L.prevLine=L.thisLine,L.thisLine={stream:null},null}function v(L,W){var Z=L.column()===W.indentation,oe=S(W.prevLine.stream),ie=W.indentedCode,be=W.prevLine.hr,Je=W.list!==!1,Ae=(W.listStack[W.listStack.length-1]||0)+3;W.indentedCode=!1;var ke=W.indentation;if(W.indentationDiff===null&&(W.indentationDiff=W.indentation,Je)){for(W.list=null;ke=4&&(ie||W.prevLine.fencedCodeEnd||W.prevLine.header||oe))return L.skipToEnd(),W.indentedCode=!0,B.code;if(L.eatSpace())return null;if(Z&&W.indentation<=Ae&&(Pe=L.match(R))&&Pe[1].length<=6)return W.quote=0,W.header=Pe[1].length,W.thisLine.header=!0,I.highlightFormatting&&(W.formatting="header"),W.f=W.inline,f(W);if(W.indentation<=Ae&&L.eat(">"))return W.quote=Z?1:W.quote+1,I.highlightFormatting&&(W.formatting="quote"),L.eatSpace(),f(W);if(!Xe&&!W.setext&&Z&&W.indentation<=Ae&&(Pe=L.match(D))){var fe=Pe[1]?"ol":"ul";return W.indentation=ke+L.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,I.taskLists&&L.match(m,!1)&&(W.taskList=!0),W.f=W.inline,I.highlightFormatting&&(W.formatting=["list","list-"+fe]),f(W)}else{if(Z&&W.indentation<=Ae&&(Pe=L.match(n,!0)))return W.quote=0,W.fencedEndRE=new RegExp(Pe[1]+"+ *$"),W.localMode=I.fencedCodeBlockHighlighting&&w(Pe[2]||I.fencedCodeBlockDefaultMode),W.localMode&&(W.localState=re.startState(W.localMode)),W.f=W.block=E,I.highlightFormatting&&(W.formatting="code-block"),W.code=-1,f(W);if(W.setext||(!Ze||!Je)&&!W.quote&&W.list===!1&&!W.code&&!Xe&&!p.test(L.string)&&(Pe=L.lookAhead(1))&&(Pe=Pe.match(M)))return W.setext?(W.header=W.setext,W.setext=0,L.skipToEnd(),I.highlightFormatting&&(W.formatting="header")):(W.header=Pe[0].charAt(0)=="="?1:2,W.setext=W.header),W.thisLine.header=!0,W.f=W.inline,f(W);if(Xe)return L.skipToEnd(),W.hr=!0,W.thisLine.hr=!0,B.hr;if(L.peek()==="[")return u(L,W,N)}return u(L,W,W.inline)}function P(L,W){var Z=K.token(L,W.htmlState);if(!T){var oe=re.innerMode(K,W.htmlState);(oe.mode.name=="xml"&&oe.state.tagStart===null&&!oe.state.context&&oe.state.tokenize.isInText||W.md_inside&&L.current().indexOf(">")>-1)&&(W.f=s,W.block=v,W.htmlState=null)}return Z}function E(L,W){var Z=W.listStack[W.listStack.length-1]||0,oe=W.indentation=L.quote?W.push(B.formatting+"-"+L.formatting[Z]+"-"+L.quote):W.push("error"))}if(L.taskOpen)return W.push("meta"),W.length?W.join(" "):null;if(L.taskClosed)return W.push("property"),W.length?W.join(" "):null;if(L.linkHref?W.push(B.linkHref,"url"):(L.strong&&W.push(B.strong),L.em&&W.push(B.em),L.strikethrough&&W.push(B.strikethrough),L.emoji&&W.push(B.emoji),L.linkText&&W.push(B.linkText),L.code&&W.push(B.code),L.image&&W.push(B.image),L.imageAltText&&W.push(B.imageAltText,"link"),L.imageMarker&&W.push(B.imageMarker)),L.header&&W.push(B.header,B.header+"-"+L.header),L.quote&&(W.push(B.quote),!I.maxBlockquoteDepth||I.maxBlockquoteDepth>=L.quote?W.push(B.quote+"-"+L.quote):W.push(B.quote+"-"+I.maxBlockquoteDepth)),L.list!==!1){var oe=(L.listStack.length-1)%3;oe?oe===1?W.push(B.list2):W.push(B.list3):W.push(B.list1)}return L.trailingSpaceNewLine?W.push("trailing-space-new-line"):L.trailingSpace&&W.push("trailing-space-"+(L.trailingSpace%2?"a":"b")),W.length?W.join(" "):null}function c(L,W){return L.match(g,!0)?f(W):void 0}function s(L,W){var Z=W.text(L,W);if(typeof Z!="undefined")return Z;if(W.list)return W.list=null,f(W);if(W.taskList){var oe=L.match(m,!0)[1]===" ";return oe?W.taskOpen=!0:W.taskClosed=!0,I.highlightFormatting&&(W.formatting="task"),W.taskList=!1,f(W)}if(W.taskOpen=!1,W.taskClosed=!1,W.header&&L.match(/^#+$/,!0))return I.highlightFormatting&&(W.formatting="header"),f(W);var ie=L.next();if(W.linkTitle){W.linkTitle=!1;var be=ie;ie==="("&&(be=")"),be=(be+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Je="^\\s*(?:[^"+be+"\\\\]+|\\\\\\\\|\\\\.)"+be;if(L.match(new RegExp(Je),!0))return B.linkHref}if(ie==="`"){var Ae=W.formatting;I.highlightFormatting&&(W.formatting="code"),L.eatWhile("`");var ke=L.current().length;if(W.code==0&&(!W.quote||ke==1))return W.code=ke,f(W);if(ke==W.code){var Ze=f(W);return W.code=0,Ze}else return W.formatting=Ae,f(W)}else if(W.code)return f(W);if(ie==="\\"&&(L.next(),I.highlightFormatting)){var Xe=f(W),Pe=B.formatting+"-escape";return Xe?Xe+" "+Pe:Pe}if(ie==="!"&&L.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return W.imageMarker=!0,W.image=!0,I.highlightFormatting&&(W.formatting="image"),f(W);if(ie==="["&&W.imageMarker&&L.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return W.imageMarker=!1,W.imageAltText=!0,I.highlightFormatting&&(W.formatting="image"),f(W);if(ie==="]"&&W.imageAltText){I.highlightFormatting&&(W.formatting="image");var Xe=f(W);return W.imageAltText=!1,W.image=!1,W.inline=W.f=C,Xe}if(ie==="["&&!W.image)return W.linkText&&L.match(/^.*?\]/)||(W.linkText=!0,I.highlightFormatting&&(W.formatting="link")),f(W);if(ie==="]"&&W.linkText){I.highlightFormatting&&(W.formatting="link");var Xe=f(W);return W.linkText=!1,W.inline=W.f=L.match(/\(.*?\)| ?\[.*?\]/,!1)?C:s,Xe}if(ie==="<"&&L.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){W.f=W.inline=i,I.highlightFormatting&&(W.formatting="link");var Xe=f(W);return Xe?Xe+=" ":Xe="",Xe+B.linkInline}if(ie==="<"&&L.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){W.f=W.inline=i,I.highlightFormatting&&(W.formatting="link");var Xe=f(W);return Xe?Xe+=" ":Xe="",Xe+B.linkEmail}if(I.xml&&ie==="<"&&L.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var fe=L.string.indexOf(">",L.pos);if(fe!=-1){var le=L.string.substring(L.start,fe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(le)&&(W.md_inside=!0)}return L.backUp(1),W.htmlState=re.startState(K),h(L,W,P)}if(I.xml&&ie==="<"&&L.match(/^\/\w*?>/))return W.md_inside=!1,"tag";if(ie==="*"||ie==="_"){for(var Se=1,ve=L.pos==1?" ":L.string.charAt(L.pos-2);Se<3&&L.eat(ie);)Se++;var Ge=L.peek()||" ",it=!/\s/.test(Ge)&&(!d.test(Ge)||/\s/.test(ve)||d.test(ve)),ee=!/\s/.test(ve)&&(!d.test(ve)||/\s/.test(Ge)||d.test(Ge)),V=null,Q=null;if(Se%2&&(!W.em&&it&&(ie==="*"||!ee||d.test(ve))?V=!0:W.em==ie&&ee&&(ie==="*"||!it||d.test(Ge))&&(V=!1)),Se>1&&(!W.strong&&it&&(ie==="*"||!ee||d.test(ve))?Q=!0:W.strong==ie&&ee&&(ie==="*"||!it||d.test(Ge))&&(Q=!1)),Q!=null||V!=null){I.highlightFormatting&&(W.formatting=V==null?"strong":Q==null?"em":"strong em"),V===!0&&(W.em=ie),Q===!0&&(W.strong=ie);var Ze=f(W);return V===!1&&(W.em=!1),Q===!1&&(W.strong=!1),Ze}}else if(ie===" "&&(L.eat("*")||L.eat("_"))){if(L.peek()===" ")return f(W);L.backUp(1)}if(I.strikethrough){if(ie==="~"&&L.eatWhile(ie)){if(W.strikethrough){I.highlightFormatting&&(W.formatting="strikethrough");var Ze=f(W);return W.strikethrough=!1,Ze}else if(L.match(/^[^\s]/,!1))return W.strikethrough=!0,I.highlightFormatting&&(W.formatting="strikethrough"),f(W)}else if(ie===" "&&L.match(/^~~/,!0)){if(L.peek()===" ")return f(W);L.backUp(2)}}if(I.emoji&&ie===":"&&L.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){W.emoji=!0,I.highlightFormatting&&(W.formatting="emoji");var he=f(W);return W.emoji=!1,he}return ie===" "&&(L.match(/^ +$/,!1)?W.trailingSpace++:W.trailingSpace&&(W.trailingSpaceNewLine=!0)),f(W)}function i(L,W){var Z=L.next();if(Z===">"){W.f=W.inline=s,I.highlightFormatting&&(W.formatting="link");var oe=f(W);return oe?oe+=" ":oe="",oe+B.linkInline}return L.match(/^[^>]+/,!0),B.linkInline}function C(L,W){if(L.eatSpace())return null;var Z=L.next();return Z==="("||Z==="["?(W.f=W.inline=O(Z==="("?")":"]"),I.highlightFormatting&&(W.formatting="link-string"),W.linkHref=!0,f(W)):"error"}var _={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function O(L){return function(W,Z){var oe=W.next();if(oe===L){Z.f=Z.inline=s,I.highlightFormatting&&(Z.formatting="link-string");var ie=f(Z);return Z.linkHref=!1,ie}return W.match(_[L]),Z.linkHref=!0,f(Z)}}function N(L,W){return L.match(/^([^\]\\]|\\.)*\]:/,!1)?(W.f=U,L.next(),I.highlightFormatting&&(W.formatting="link"),W.linkText=!0,f(W)):u(L,W,s)}function U(L,W){if(L.match(/^\]:/,!0)){W.f=W.inline=H,I.highlightFormatting&&(W.formatting="link");var Z=f(W);return W.linkText=!1,Z}return L.match(/^([^\]\\]|\\.)+/,!0),B.linkText}function H(L,W){return L.eatSpace()?null:(L.match(/^[^\s]+/,!0),L.peek()===void 0?W.linkTitle=!0:L.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),W.f=W.inline=s,B.linkHref+" url")}var G={startState:function(){return{f:v,prevLine:{stream:null},thisLine:{stream:null},block:v,htmlState:null,indentation:0,inline:s,text:c,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(L){return{f:L.f,prevLine:L.prevLine,thisLine:L.thisLine,block:L.block,htmlState:L.htmlState&&re.copyState(K,L.htmlState),indentation:L.indentation,localMode:L.localMode,localState:L.localMode?re.copyState(L.localMode,L.localState):null,inline:L.inline,text:L.text,formatting:!1,linkText:L.linkText,linkTitle:L.linkTitle,linkHref:L.linkHref,code:L.code,em:L.em,strong:L.strong,strikethrough:L.strikethrough,emoji:L.emoji,header:L.header,setext:L.setext,hr:L.hr,taskList:L.taskList,list:L.list,listStack:L.listStack.slice(0),quote:L.quote,indentedCode:L.indentedCode,trailingSpace:L.trailingSpace,trailingSpaceNewLine:L.trailingSpaceNewLine,md_inside:L.md_inside,fencedEndRE:L.fencedEndRE}},token:function(L,W){if(W.formatting=!1,L!=W.thisLine.stream){if(W.header=0,W.hr=!1,L.match(/^\s*$/,!0))return b(W),null;if(W.prevLine=W.thisLine,W.thisLine={stream:L},W.taskList=!1,W.trailingSpace=0,W.trailingSpaceNewLine=!1,!W.localState&&(W.f=W.block,W.f!=P)){var Z=L.match(/^\s*/,!0)[0].replace(/\t/g,o).length;if(W.indentation=Z,W.indentationDiff=null,Z>0)return null}}return W.f(L,W)},innerMode:function(L){return L.block==P?{state:L.htmlState,mode:K}:L.localState?{state:L.localState,mode:L.localMode}:{state:L,mode:G}},indent:function(L,W,Z){return L.block==P&&K.indent?K.indent(L.htmlState,W,Z):L.localState&&L.localMode.indent?L.localMode.indent(L.localState,W,Z):re.Pass},blankLine:b,getType:f,blockCommentStart:"",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return G},"xml"),re.defineMIME("text/markdown","markdown"),re.defineMIME("text/x-markdown","markdown")})},mgmH:function(an,rt,F){"use strict";F.d(rt,"d",function(){return M}),F.d(rt,"b",function(){return g}),F.d(rt,"e",function(){return n}),F.d(rt,"c",function(){return p}),F.d(rt,"n",function(){return d}),F.d(rt,"g",function(){return o}),F.d(rt,"h",function(){return u}),F.d(rt,"j",function(){return S}),F.d(rt,"a",function(){return b}),F.d(rt,"l",function(){return v}),F.d(rt,"f",function(){return P}),F.d(rt,"k",function(){return E}),F.d(rt,"m",function(){return f}),F.d(rt,"i",function(){return c}),F.d(rt,"o",function(){return s}),F.d(rt,"r",function(){return i}),F.d(rt,"q",function(){return C}),F.d(rt,"p",function(){return _});var re=F("miYZ"),z=F("tsqr"),I=F("k1fw"),K=F("9og8"),T=F("WmNS"),w=F.n(T),B=F("oUNq"),x=F("9kvl"),k=F("1vsH"),D=F("m3rI"),m=function(){Object(x.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},R=function(){Object(x.c)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},M=function(){var O=Object(K.a)(w.a.mark(function N(U){var H;return w.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return m(),L.next=3,Object(B.s)(Object(I.a)({},U));case 3:if(H=L.sent,!(H.status===0)){L.next=7;break}return L.next=7,Object(k.u)("",Object(k.U)({url:D.a.API_SERVER+"/api/courses/".concat(U.coursesId,"/export_couser_info.json"),query:U}));case 7:R();case 8:case"end":return L.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),g=function(){var O=Object(K.a)(w.a.mark(function N(U){var H;return w.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,Object(B.q)(Object(I.a)({},U));case 2:if(H=L.sent,!(H.status===0)){L.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_member_act_score")),L.next=13;break;case 8:if(!(H.status===-2)){L.next=12;break}return L.abrupt("return",H);case 12:H.status===-3&&(Object(x.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_member_act_score")));case 13:case"end":return L.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),n=function(){var O=Object(K.a)(w.a.mark(function N(U){var H;return w.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,Object(B.t)(Object(I.a)({},U));case 2:if(H=L.sent,!(H.status===0)){L.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_score")),L.next=13;break;case 8:if(!(H.status===-2)){L.next=12;break}return L.abrupt("return",H);case 12:H.status===-3&&(Object(x.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_score")));case 13:case"end":return L.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),p=function(){var O=Object(K.a)(w.a.mark(function N(U){var H;return w.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,Object(B.r)(Object(I.a)({},U));case 2:if(H=L.sent,!(H.status===0)){L.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_exercise_and_other")),L.next=13;break;case 8:if(!(H.status===-2)){L.next=12;break}return L.abrupt("return",H);case 12:H.status===-3&&(Object(x.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return L.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),d=function(){var O=Object(K.a)(w.a.mark(function N(U){var H;return w.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,Object(B.y)(Object(I.a)({},U));case 2:if(H=L.sent,!(H.status===0)){L.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_exercise_and_other")),L.next=13;break;case 8:if(!(H.status===-2)){L.next=12;break}return L.abrupt("return",H);case 12:H.status===-3&&(Object(x.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_exercise_and_other")));case 13:case"end":return L.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),o=function(){var O=Object(K.a)(w.a.mark(function N(U){var H;return w.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,Object(B.u)(Object(I.a)({},U));case 2:if(H=L.sent,!(H.status===0)){L.next=8;break}z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_homework")),L.next=13;break;case 8:if(!(H.status===-2)){L.next=12;break}return L.abrupt("return",H);case 12:H.status===-3&&(Object(x.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/course_total_homework")));case 13:case"end":return L.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),u=function(){var O=Object(K.a)(w.a.mark(function N(U,H){var G;return w.a.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:return W.next=2,Object(B.w)(Object(I.a)({},U));case 2:G=W.sent,G.status===0?(z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/").concat(H))):G.status===-3&&(Object(x.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/").concat(H)));case 4:case"end":return W.stop()}},N)}));return function(U,H){return O.apply(this,arguments)}}(),h=function(){var O=Object(K.a)(w.a.mark(function N(U){var H;return w.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return m(),L.next=3,Object(B.v)(Object(I.a)({},U));case 3:if(H=L.sent,!(H.status===0)){L.next=7;break}return L.next=7,Object(k.u)("",Object(k.U)({url:D.a.API_SERVER+"/api/homework_commons/".concat(U.categoryId,"/works_list.zip"),query:U}));case 7:R();case 8:case"end":return L.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),S=function(){var O=Object(K.a)(w.a.mark(function N(U){var H;return w.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return m(),L.next=3,Object(B.z)(Object(I.a)({},U));case 3:if(H=L.sent,!(H.status===0)){L.next=7;break}return L.next=7,Object(k.u)("",Object(k.U)({url:D.a.API_SERVER+"/api/polls/".concat(U.categoryId,"/commit_result.xlsx"),query:U}));case 7:R();case 8:case"end":return L.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),b=function(){var O=Object(K.a)(w.a.mark(function N(U){return w.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(k.t)("",Object(k.U)({url:D.a.API_SERVER+"/api/courses/".concat(U.coursesId,"/attendances/export_xlsx_data.xlsx"),query:U}));case 2:case"end":return G.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),v=function(){var O=Object(K.a)(w.a.mark(function N(U){return w.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(k.t)("",Object(k.U)({url:D.a.API_SERVER+"/api/courses/".concat(U.coursesId,"/video_study_statics.xlsx"),query:U}));case 2:case"end":return G.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),P=function(){var O=Object(K.a)(w.a.mark(function N(U){return w.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(k.t)("",Object(k.U)({url:D.a.API_SERVER+"/api/courses/".concat(U.coursesId,"/export_course_students_info.xlsx"),query:U}));case 2:case"end":return G.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),E=function(){var O=Object(K.a)(w.a.mark(function N(U){return w.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(k.t)("",Object(k.U)({url:D.a.API_SERVER+"/api/item_banks/export.xlsx",query:U}));case 2:case"end":return G.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),f=function(){var O=Object(K.a)(w.a.mark(function N(U){return w.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(k.t)("",Object(k.U)({url:D.a.API_SERVER+"/api/competitions/region_reports.xlsx",query:U}));case 2:case"end":return G.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),c=function(){var O=Object(K.a)(w.a.mark(function N(U){var H;return w.a.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:return L.next=2,Object(B.x)(Object(I.a)({},U));case 2:H=L.sent,H.status===0?(z.b.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/exercise_score"))):H.status===-3&&(Object(x.c)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),x.d.push("/classrooms/".concat(U.coursesId,"/exportlist/exercise_score")));case 4:case"end":return L.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),s=function(){var O=Object(K.a)(w.a.mark(function N(U){return w.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),G.next=3,Object(k.t)("",Object(k.U)({url:D.a.API_SERVER+"/api/export_records/".concat(U.id,".xlsx"),query:U}));case 3:case"end":return G.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),i=function(){var O=Object(K.a)(w.a.mark(function N(U){return w.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(k.t)("",Object(k.U)({url:D.a.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:U}));case 2:case"end":return G.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),C=function(){var O=Object(K.a)(w.a.mark(function N(U){return w.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(k.t)("",Object(k.U)({url:D.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 G.stop()}},N)}));return function(U){return O.apply(this,arguments)}}(),_=function(){var O=Object(K.a)(w.a.mark(function N(U){return w.a.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return G.next=2,Object(k.t)("",Object(k.U)({url:D.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 G.stop()}},N)}));return function(U){return O.apply(this,arguments)}}()},n6Qo:function(an,rt,F){"use strict";F.d(rt,"a",function(){return x});var re=F("q1tI"),z=F("biw7"),I=F("fyJ8");function K(k){var D=k.className,m=k.index,R=k.children,M=k.colSpan,g=k.rowSpan,n=re.useContext(z.a),p=n.prefixCls,d=n.fixedInfoList,o=d[m];return re.createElement(I.a,Object.assign({className:D,index:m,component:"td",prefixCls:p,record:null,dataIndex:null,render:function(){return{children:R,props:{colSpan:M,rowSpan:g}}}},o))}function T(k){return re.createElement("tr",Object.assign({},k))}function w(k){var D=k.children,m=re.useContext(z.a),R=m.prefixCls;return re.createElement("tfoot",{className:"".concat(R,"-summary")},D)}var B=rt.b=w,x={Cell:K,Row:T}},nqnY:function(an,rt,F){an.exports={flex_box_center:"flex_box_center___37JBt",flex_space_between:"flex_space_between___3r1Lz",flex_box_vertical_center:"flex_box_vertical_center___19lKq",flex_box_center_end:"flex_box_center_end___2LfTp",flex_box_column:"flex_box_column___1ZPkn",top:"top___1rypn",desc:"desc___yUqaB",liked:"liked___17506",likedActive:"likedActive___2w83T",reply:"reply___3RGQi",replyList:"replyList___18BLu",comment:"comment___2nNFC",headpic:"headpic___yXxQj"}},oOBs:function(an,rt,F){an.exports={leftdiv:"leftdiv___1FhsT",listClass:"listClass___1Y2ac",spantitle:"spantitle___1pL39",rightdiv:"rightdiv___3ZICD"}},ogmK:function(an,rt,F){"use strict";F.d(rt,"a",function(){return xr});var re=F("1OyB"),z=F("vuIU"),I=F("Ji7U"),K=F("LK+K"),T=F("rePB"),w=F("VTBJ"),B=F("ODXe"),x=F("q1tI"),k=F("TSYQ"),D=F.n(k),m=F("Kwbf"),R=F("6cGi"),M=F("U8pU"),g=F("4IlW"),n=x.createContext({}),p=n,d={visibility:"hidden"};function o(q){var De=q.prefixCls,Ve=q.prevIcon,Be=Ve===void 0?"\u2039":Ve,$e=q.nextIcon,qe=$e===void 0?"\u203A":$e,ft=q.superPrevIcon,Ee=ft===void 0?"\xAB":ft,gt=q.superNextIcon,yt=gt===void 0?"\xBB":gt,Lt=q.onSuperPrev,bt=q.onSuperNext,ut=q.onPrev,kt=q.onNext,Mt=q.children,Le=x.useContext(p),mt=Le.hideNextBtn,Pt=Le.hidePrevBtn;return x.createElement("div",{className:De},Lt&&x.createElement("button",{type:"button",onClick:Lt,tabIndex:-1,className:"".concat(De,"-super-prev-btn"),style:Pt?d:{}},Ee),ut&&x.createElement("button",{type:"button",onClick:ut,tabIndex:-1,className:"".concat(De,"-prev-btn"),style:Pt?d:{}},Be),x.createElement("div",{className:"".concat(De,"-view")},Mt),kt&&x.createElement("button",{type:"button",onClick:kt,tabIndex:-1,className:"".concat(De,"-next-btn"),style:mt?d:{}},qe),bt&&x.createElement("button",{type:"button",onClick:bt,tabIndex:-1,className:"".concat(De,"-super-next-btn"),style:mt?d:{}},yt))}var u=o;function h(q){var De=x.useContext(p),Ve=De.hideHeader;if(Ve)return null;var Be=q.prefixCls,$e=q.generateConfig,qe=q.locale,ft=q.value,Ee=q.format,gt="".concat(Be,"-header");return x.createElement(u,{prefixCls:gt},ft?$e.locale.format(qe.locale,ft,Ee):"\xA0")}var S=h,b=F("YrtM"),v=F("KQm4"),P=new Map;function E(q,De,Ve){if(P.get(q)&&cancelAnimationFrame(P.get(q)),Ve<=0){P.set(q,requestAnimationFrame(function(){q.scrollTop=De}));return}var Be=De-q.scrollTop,$e=Be/Ve*10;P.set(q,requestAnimationFrame(function(){q.scrollTop+=$e,q.scrollTop!==De&&E(q,De,Ve-10)}))}function f(q,De){var Ve=De.onLeftRight,Be=De.onCtrlLeftRight,$e=De.onUpDown,qe=De.onPageUpDown,ft=De.onEnter,Ee=q.which,gt=q.ctrlKey,yt=q.metaKey;switch(Ee){case g.a.LEFT:if(gt||yt){if(Be)return Be(-1),!0}else if(Ve)return Ve(-1),!0;break;case g.a.RIGHT:if(gt||yt){if(Be)return Be(1),!0}else if(Ve)return Ve(1),!0;break;case g.a.UP:if($e)return $e(-1),!0;break;case g.a.DOWN:if($e)return $e(1),!0;break;case g.a.PAGE_UP:if(qe)return qe(-1),!0;break;case g.a.PAGE_DOWN:if(qe)return qe(1),!0;break;case g.a.ENTER:if(ft)return ft(),!0;break}return!1}function c(q,De,Ve,Be){var $e=q;if(!$e)switch(De){case"time":$e=Be?"hh:mm:ss a":"HH:mm:ss";break;case"week":$e="gggg-wo";break;case"month":$e="YYYY-MM";break;case"quarter":$e="YYYY-[Q]Q";break;case"year":$e="YYYY";break;default:$e=Ve?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return $e}function s(q,De){var Ve=q==="time"?8:10;return Math.max(Ve,De.length)+2}var i=null,C=new Set;function _(q){return!i&&typeof window!="undefined"&&window.addEventListener&&(i=function(Ve){Object(v.a)(C).forEach(function(Be){Be(Ve)})},window.addEventListener("mousedown",i)),C.add(q),function(){C.delete(q),C.size===0&&(window.removeEventListener("mousedown",i),i=null)}}var O=function(De){return De==="month"||De==="date"?"year":De},N=function(De){return De==="date"?"month":De},U=function(De){return De==="month"||De==="date"?"quarter":De},H=function(De){return De==="date"?"week":De},G={year:O,month:N,quarter:U,week:H,time:null,date:null};function L(q,De){return q.some(function(Ve){return Ve&&Ve.contains(De)})}function W(q){var De=q.prefixCls,Ve=q.units,Be=q.onSelect,$e=q.value,qe=q.active,ft=q.hideDisabledOptions,Ee="".concat(De,"-cell"),gt=x.useContext(p),yt=gt.open,Lt=x.useRef(null),bt=x.useRef(new Map);return x.useLayoutEffect(function(){var ut=bt.current.get($e);ut&&yt!==!1&&E(Lt.current,ut.offsetTop,120)},[$e]),x.useLayoutEffect(function(){if(yt){var ut=bt.current.get($e);ut&&E(Lt.current,ut.offsetTop,0)}},[yt]),x.createElement("ul",{className:D()("".concat(De,"-column"),Object(T.a)({},"".concat(De,"-column-active"),qe)),ref:Lt,style:{position:"relative"}},Ve.map(function(ut){var kt;return ft&&ut.disabled?null:x.createElement("li",{key:ut.value,ref:function(Le){bt.current.set(ut.value,Le)},className:D()(Ee,(kt={},Object(T.a)(kt,"".concat(Ee,"-disabled"),ut.disabled),Object(T.a)(kt,"".concat(Ee,"-selected"),$e===ut.value),kt)),onClick:function(){if(ut.disabled)return;Be(ut.value)}},x.createElement("div",{className:"".concat(Ee,"-inner")},ut.label))}))}var Z=W;function oe(q,De){for(var Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Be=String(q);Be.length=12,vt%=12);var wn=x.useMemo(function(){if(!yt)return[!1,!1];var Hn=[!0,!0];return En.forEach(function(Vn){var Zn=Vn.disabled,Wr=Vn.value;if(Zn)return;Wr>=12?Hn[1]=!1:Hn[0]=!1}),Hn},[yt,En]),Yn=Object(B.a)(wn,2),Ln=Yn[0],yn=Yn[1],sr=x.useMemo(function(){return yt?En.filter(Rn?function(Hn){return Hn.value>=12}:function(Hn){return Hn.value<12}).map(function(Hn){var Vn=Hn.value%12,Zn=Vn===0?"12":oe(Vn,2);return Object(w.a)(Object(w.a)({},Hn),{},{label:Zn,value:Vn})}):En},[yt,En]),Fn=fe(0,59,kt,Pt&&Pt(vt)),Ir=fe(0,59,Le,Jt&&Jt(vt,Xt));Be.current={onUpDown:function(Vn){var Zn=gn[$e];if(Zn)for(var Wr=Zn.units.findIndex(function(pa){return pa.value===Zn.value}),ea=Zn.units.length,Yr=1;Yr1&&(ft=De.addDate(ft,-7)),ft}function tt(q,De,Ve){var Be=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(De){case"year":return Ve.addYear(q,Be*10);case"quarter":case"month":return Ve.addYear(q,Be);default:return Ve.addMonth(q,Be)}}var Ke=x.createContext({}),Ct=Ke;function Dt(q){var De=q.cellPrefixCls,Ve=q.generateConfig,Be=q.rangedValue,$e=q.hoverRangedValue,qe=q.isInView,ft=q.isSameCell,Ee=q.offsetCell,gt=q.today,yt=q.value;function Lt(bt){var ut,kt=Ee(bt,-1),Mt=Ee(bt,1),Le=Ae(Be,0),mt=Ae(Be,1),Pt=Ae($e,0),Jt=Ae($e,1),Nt=tn(Ve,Pt,Jt,bt);function Sn(Xt){return ft(Le,Xt)}function gn(Xt){return ft(mt,Xt)}var un=ft(Pt,bt),Mn=ft(Jt,bt),Rn=(Nt||Mn)&&(!qe(kt)||gn(kt)),vt=(Nt||un)&&(!qe(Mt)||Sn(Mt));return ut={},Object(T.a)(ut,"".concat(De,"-in-view"),qe(bt)),Object(T.a)(ut,"".concat(De,"-in-range"),tn(Ve,Le,mt,bt)),Object(T.a)(ut,"".concat(De,"-range-start"),Sn(bt)),Object(T.a)(ut,"".concat(De,"-range-end"),gn(bt)),Object(T.a)(ut,"".concat(De,"-range-start-single"),Sn(bt)&&!mt),Object(T.a)(ut,"".concat(De,"-range-end-single"),gn(bt)&&!Le),Object(T.a)(ut,"".concat(De,"-range-start-near-hover"),Sn(bt)&&(ft(kt,Pt)||tn(Ve,Pt,Jt,kt))),Object(T.a)(ut,"".concat(De,"-range-end-near-hover"),gn(bt)&&(ft(Mt,Jt)||tn(Ve,Pt,Jt,Mt))),Object(T.a)(ut,"".concat(De,"-range-hover"),Nt),Object(T.a)(ut,"".concat(De,"-range-hover-start"),un),Object(T.a)(ut,"".concat(De,"-range-hover-end"),Mn),Object(T.a)(ut,"".concat(De,"-range-hover-edge-start"),Rn),Object(T.a)(ut,"".concat(De,"-range-hover-edge-end"),vt),Object(T.a)(ut,"".concat(De,"-range-hover-edge-start-near-range"),Rn&&ft(kt,mt)),Object(T.a)(ut,"".concat(De,"-range-hover-edge-end-near-range"),vt&&ft(Mt,Le)),Object(T.a)(ut,"".concat(De,"-today"),ft(gt,bt)),Object(T.a)(ut,"".concat(De,"-selected"),ft(yt,bt)),ut}return Lt}function st(q){for(var De=q.prefixCls,Ve=q.disabledDate,Be=q.onSelect,$e=q.rowNum,qe=q.colNum,ft=q.prefixColumn,Ee=q.rowClassName,gt=q.baseDate,yt=q.getCellClassName,Lt=q.getCellText,bt=q.getCellNode,ut=q.getCellDate,kt=q.titleCell,Mt=q.headerCells,Le=x.useContext(p),mt=Le.onDateMouseEnter,Pt=Le.onDateMouseLeave,Jt="".concat(De,"-cell"),Nt=[],Sn=0;Sn<$e;Sn+=1){for(var gn=[],un=void 0,Mn=function(Xt){var Tt=Sn*qe+Xt,Tn=ut(gt,Tt),zt=Ve&&Ve(Tn);Xt===0&&(un=Tn,ft&&gn.push(ft(un))),gn.push(x.createElement("td",{key:Xt,title:kt&&kt(Tn),className:D()(Jt,Object(w.a)(Object(T.a)({},"".concat(Jt,"-disabled"),zt),yt(Tn))),onClick:function(){zt||Be(Tn)},onMouseEnter:function(){!zt&&mt&&mt(Tn)},onMouseLeave:function(){!zt&&Pt&&Pt(Tn)}},bt?bt(Tn):x.createElement("div",{className:"".concat(Jt,"-inner")},Lt(Tn))))},Rn=0;Rn2&&arguments[2]!==void 0?arguments[2]:!1;(Re===Le||sn)&&(Ca(nn),Mn&&Mn(nn),ea&&ea(nn,_n),Rn&&!Bt(Ee,nn,va)&&Rn(nn))},fn=function(nn){return ya.current&&ya.current.onKeyDown?([g.a.LEFT,g.a.RIGHT,g.a.UP,g.a.DOWN,g.a.PAGE_UP,g.a.PAGE_DOWN,g.a.ENTER].includes(nn.which)&&nn.preventDefault(),ya.current.onKeyDown(nn)):(Object(m.a)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},In=function(nn){ya.current&&ya.current.onBlur&&ya.current.onBlur(nn)};Zn&&Ga!=="right"&&(Zn.current={onKeyDown:fn,onClose:function(){ya.current&&ya.current.onClose&&ya.current.onClose()}}),x.useEffect(function(){gt&&!Ma.current&&et(gt)},[gt]),x.useEffect(function(){Ma.current=!1},[]);var ar,nr=Object(w.a)(Object(w.a)({},q),{},{operationRef:ya,prefixCls:Be,viewDate:Ye,value:va,onViewDateChange:Oe,sourceMode:lt,onPanelChange:jt,disabledDate:Re!=="decade"?ut:void 0});delete nr.onChange,delete nr.onSelect;switch(Re){case"decade":ar=x.createElement(y,Object.assign({},nr,{onSelect:function(nn,_n){Oe(nn),Gt(nn,_n)}}));break;case"year":ar=x.createElement(Br,Object.assign({},nr,{onSelect:function(nn,_n){Oe(nn),Gt(nn,_n)}}));break;case"month":ar=x.createElement(wt,Object.assign({},nr,{onSelect:function(nn,_n){Oe(nn),Gt(nn,_n)}}));break;case"quarter":ar=x.createElement(kn,Object.assign({},nr,{onSelect:function(nn,_n){Oe(nn),Gt(nn,_n)}}));break;case"week":ar=x.createElement(vn,Object.assign({},nr,{onSelect:function(nn,_n){Oe(nn),Gt(nn,_n)}}));break;case"time":delete nr.showTime,ar=x.createElement(it,Object.assign({},nr,Object(M.a)(Nt)==="object"?Nt:null,{onSelect:function(nn,_n){Oe(nn),Gt(nn,_n)}}));break;default:Nt?ar=x.createElement(St,Object.assign({},nr,{onSelect:function(nn,_n){Oe(nn),Gt(nn,_n)}})):ar=x.createElement(me,Object.assign({},nr,{onSelect:function(nn,_n){Oe(nn),Gt(nn,_n)}}))}var ir,pr,lr=function(){var nn=Ee.getNow(),_n=Xe(Ee.getHour(nn),Ee.getMinute(nn),Ee.getSecond(nn),dr?Yn:1,Mr?yn:1,Hn?Fn:1),sn=Ze(Ee,nn,_n[0],_n[1],_n[2]);Gt(sn,"submit")};Yr||(ir=A(Be,Re,gn),pr=X({prefixCls:Be,components:zt,needConfirmButton:Ir,okDisabled:!va||ut&&ut(va),locale:ft,showNow:Jt,onNow:Ir&&lr,onOk:function(){va&&(Gt(va,"submit",!0),Tn&&Tn(va))}}));var mr;if(Sn&&Re==="date"&&Le==="date"&&!Nt){var Er=Ee.getNow(),rr="".concat(Be,"-today-btn"),Tr=ut&&ut(Er);mr=x.createElement("a",{className:D()(rr,Tr&&"".concat(rr,"-disabled")),"aria-disabled":Tr,onClick:function(){Tr||Gt(Er,"mouse",!0)}},ft.today)}return x.createElement(p.Provider,{value:Object(w.a)(Object(w.a)({},Vn),{},{hideHeader:"hideHeader"in q?un:Vn.hideHeader,hidePrevBtn:ma&&Ga==="right",hideNextBtn:ma&&Ga==="left"})},x.createElement("div",{tabIndex:Pt,className:D()("".concat(Be,"-panel"),$e,(De={},Object(T.a)(De,"".concat(Be,"-panel-has-range"),Oa&&Oa[0]&&Oa[1]),Object(T.a)(De,"".concat(Be,"-panel-has-range-hover"),Wa&&Wa[0]&&Wa[1]),Object(T.a)(De,"".concat(Be,"-panel-rtl"),En==="rtl"),De)),style:qe,onKeyDown:fn,onBlur:In,onMouseDown:Xt,ref:Wr},ar,ir||pr||mr?x.createElement("div",{className:"".concat(Be,"-footer")},ir,pr,mr):null))}var $=te,ze=F("uciX"),Ut={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 pn(q){var De,Ve=q.prefixCls,Be=q.popupElement,$e=q.popupStyle,qe=q.visible,ft=q.dropdownClassName,Ee=q.dropdownAlign,gt=q.transitionName,yt=q.getPopupContainer,Lt=q.children,bt=q.range,ut=q.popupPlacement,kt=q.direction,Mt="".concat(Ve,"-dropdown"),Le=function(){return ut!==void 0?ut:kt==="rtl"?"bottomRight":"bottomLeft"};return x.createElement(ze.a,{showAction:[],hideAction:[],popupPlacement:Le(),builtinPlacements:Ut,prefixCls:Mt,popupTransitionName:gt,popup:Be,popupAlign:Ee,popupVisible:qe,popupClassName:D()(ft,(De={},Object(T.a)(De,"".concat(Mt,"-range"),bt),Object(T.a)(De,"".concat(Mt,"-rtl"),kt==="rtl"),De)),popupStyle:$e,getPopupContainer:yt},Lt)}var Nn=pn;function Kt(q){var De=q.open,Ve=q.value,Be=q.isClickOutside,$e=q.triggerOpen,qe=q.forwardKeyDown,ft=q.blurToCancel,Ee=q.onSubmit,gt=q.onCancel,yt=q.onFocus,Lt=q.onBlur,bt=Object(x.useState)(!1),ut=Object(B.a)(bt,2),kt=ut[0],Mt=ut[1],Le=Object(x.useState)(!1),mt=Object(B.a)(Le,2),Pt=mt[0],Jt=mt[1],Nt=Object(x.useRef)(!1),Sn=Object(x.useRef)(!1),gn={onMouseDown:function(){Mt(!0),$e(!0)},onKeyDown:function(Mn){switch(Mn.which){case g.a.ENTER:{De?Ee()!==!1&&Mt(!0):$e(!0),Mn.preventDefault();return}case g.a.TAB:{kt&&De&&!Mn.shiftKey?(Mt(!1),Mn.preventDefault()):!kt&&De&&(!qe(Mn)&&Mn.shiftKey&&(Mt(!0),Mn.preventDefault()));return}case g.a.ESC:{Mt(!0),gt();return}}!De&&![g.a.SHIFT].includes(Mn.which)?$e(!0):kt||qe(Mn)},onFocus:function(Mn){Mt(!0),Jt(!0),yt&&yt(Mn)},onBlur:function(Mn){if(Nt.current||!Be(document.activeElement)){Nt.current=!1;return}ft?setTimeout(function(){Be(document.activeElement)&>()},0):De&&($e(!1),Sn.current&&Ee()),Jt(!1),Lt&&Lt(Mn)}};return Object(x.useEffect)(function(){Sn.current=!1},[De]),Object(x.useEffect)(function(){Sn.current=!0},[Ve]),Object(x.useEffect)(function(){return _(function(un){var Mn=un.target;De&&(Be(Mn)?Pt||$e(!1):(Nt.current=!0,requestAnimationFrame(function(){Nt.current=!1})))})}),[gn,{focused:Pt,typing:kt}]}function rn(q){var De=q.valueTexts,Ve=q.onTextChange,Be=x.useState(""),$e=Object(B.a)(Be,2),qe=$e[0],ft=$e[1],Ee=x.useRef([]);Ee.current=De;function gt(Lt){ft(Lt),Ve(Lt)}function yt(){ft(Ee.current[0])}return x.useEffect(function(){De.every(function(Lt){return Lt!==qe})&&yt()},[De.join("||")]),[qe,gt,yt]}var At=F("Gytx"),Yt=F.n(At);function bn(q,De){var Ve=De.formatList,Be=De.generateConfig,$e=De.locale;return Object(b.a)(function(){if(!q)return[[""],""];for(var qe="",ft=[],Ee=0;Ee1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(yt.current),Pt){gt(mt);return}yt.current=requestAnimationFrame(function(){gt(mt)})}var bt=bn(Ee,{formatList:Ve,generateConfig:Be,locale:$e}),ut=Object(B.a)(bt,2),kt=ut[1];function Mt(mt){Lt(mt)}function Le(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Lt(null,mt)}return Object(x.useEffect)(function(){Le(!0)},[q]),Object(x.useEffect)(function(){return function(){return cancelAnimationFrame(yt.current)}},[]),[kt,Mt,Le]}function Wn(q){var De,Ve=q.prefixCls,Be=Ve===void 0?"rc-picker":Ve,$e=q.id,qe=q.tabIndex,ft=q.style,Ee=q.className,gt=q.dropdownClassName,yt=q.dropdownAlign,Lt=q.popupStyle,bt=q.transitionName,ut=q.generateConfig,kt=q.locale,Mt=q.inputReadOnly,Le=q.allowClear,mt=q.autoFocus,Pt=q.showTime,Jt=q.picker,Nt=Jt===void 0?"date":Jt,Sn=q.format,gn=q.use12Hours,un=q.value,Mn=q.defaultValue,Rn=q.open,vt=q.defaultOpen,Xt=q.defaultOpenValue,Tt=q.suffixIcon,Tn=q.clearIcon,zt=q.disabled,En=q.disabledDate,wn=q.placeholder,Yn=q.getPopupContainer,Ln=q.pickerRef,yn=q.panelRender,sr=q.onChange,Fn=q.onOpenChange,Ir=q.onFocus,dr=q.onBlur,Mr=q.onMouseDown,Hn=q.onMouseUp,Vn=q.onMouseEnter,Zn=q.onMouseLeave,Wr=q.onContextMenu,ea=q.onClick,Yr=q.direction,ta=q.autoComplete,pa=ta===void 0?"off":ta,ma=x.useRef(null),Ga=Nt==="date"&&!!Pt||Nt==="time",Oa=be(c(Sn,Nt,Pt,gn)),Wa=x.useRef(null),ya=x.useRef(null),Ma=Object(R.a)(null,{value:un,defaultValue:Mn}),Qa=Object(B.a)(Ma,2),La=Qa[0],va=Qa[1],Ca=x.useState(La),sa=Object(B.a)(Ca,2),Ce=sa[0],Ye=sa[1],et=x.useRef(null),Oe=Object(R.a)(!1,{value:Rn,defaultValue:vt,postState:function(ur){return zt?!1:ur},onChange:function(ur){Fn&&Fn(ur),!ur&&et.current&&et.current.onClose&&et.current.onClose()}}),se=Object(B.a)(Oe,2),ye=se[0],de=se[1],Re=bn(Ce,{formatList:Oa,generateConfig:ut,locale:kt}),Ie=Object(B.a)(Re,2),at=Ie[0],Ue=Ie[1],lt=rn({valueTexts:at,onTextChange:function(ur){var ua=ut.locale.parse(kt.locale,ur,Oa);ua&&(!En||!En(ua))&&Ye(ua)}}),Ot=Object(B.a)(lt,3),jt=Ot[0],Gt=Ot[1],fn=Ot[2],In=function(ur){Ye(ur),va(ur),sr&&!Bt(ut,La,ur)&&sr(ur,ur?ut.locale.format(kt.locale,ur,Oa[0]):"")},ar=function(ur){if(zt&&ur)return;de(ur)},nr=function(ur){return ye&&et.current&&et.current.onKeyDown?et.current.onKeyDown(ur):(Object(m.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},ir=function(){Hn&&Hn.apply(void 0,arguments),ma.current&&(ma.current.focus(),ar(!0))},pr=Kt({blurToCancel:Ga,open:ye,value:jt,triggerOpen:ar,forwardKeyDown:nr,isClickOutside:function(ur){return!L([Wa.current,ya.current],ur)},onSubmit:function(){return En&&En(Ce)?!1:(In(Ce),ar(!1),fn(),!0)},onCancel:function(){ar(!1),Ye(La),fn()},onFocus:Ir,onBlur:dr}),lr=Object(B.a)(pr,2),mr=lr[0],Er=lr[1],rr=Er.focused,Tr=Er.typing;x.useEffect(function(){ye||(Ye(La),!at.length||at[0]===""?Gt(""):Ue!==jt&&fn())},[ye,at]),x.useEffect(function(){ye||fn()},[Nt]),x.useEffect(function(){Ye(La)},[La]),Ln&&(Ln.current={focus:function(){ma.current&&ma.current.focus()},blur:function(){ma.current&&ma.current.blur()}});var $n=Object(w.a)(Object(w.a)({},q),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),nn=x.createElement($,Object.assign({},$n,{generateConfig:ut,className:D()(Object(T.a)({},"".concat(Be,"-panel-focused"),!Tr)),value:Ce,locale:kt,tabIndex:-1,onChange:Ye,direction:Yr}));yn&&(nn=yn(nn));var _n=x.createElement("div",{className:"".concat(Be,"-panel-container"),onMouseDown:function(ur){ur.preventDefault()}},nn),sn;Tt&&(sn=x.createElement("span",{className:"".concat(Be,"-suffix")},Tt));var cn;Le&&La&&!zt&&(cn=x.createElement("span",{onMouseDown:function(ur){ur.preventDefault(),ur.stopPropagation()},onMouseUp:function(ur){ur.preventDefault(),ur.stopPropagation(),In(null),ar(!1)},className:"".concat(Be,"-clear")},Tn||x.createElement("span",{className:"".concat(Be,"-clear-btn")})));var $t=function(ur,ua){(ua==="submit"||ua!=="key"&&!Ga)&&(In(ur),ar(!1))},Qn=Yr==="rtl"?"bottomRight":"bottomLeft",jn=tr(jt,{formatList:Oa,generateConfig:ut,locale:kt}),yr=Object(B.a)(jn,3),Nr=yr[0],Lr=yr[1],Or=yr[2];return x.createElement(p.Provider,{value:{operationRef:et,hideHeader:Nt==="time",panelRef:Wa,onSelect:$t,open:ye,defaultOpenValue:Xt,onDateMouseEnter:Lr,onDateMouseLeave:Or}},x.createElement(Nn,{visible:ye,popupElement:_n,popupStyle:Lt,prefixCls:Be,dropdownClassName:gt,dropdownAlign:yt,getPopupContainer:Yn,transitionName:bt,popupPlacement:Qn,direction:Yr},x.createElement("div",{className:D()(Be,Ee,(De={},Object(T.a)(De,"".concat(Be,"-disabled"),zt),Object(T.a)(De,"".concat(Be,"-focused"),rr),Object(T.a)(De,"".concat(Be,"-rtl"),Yr==="rtl"),De)),style:ft,onMouseDown:Mr,onMouseUp:ir,onMouseEnter:Vn,onMouseLeave:Zn,onContextMenu:Wr,onClick:ea},x.createElement("div",{className:D()("".concat(Be,"-input"),Object(T.a)({},"".concat(Be,"-input-placeholder"),!!Nr)),ref:ya},x.createElement("input",Object.assign({id:$e,tabIndex:qe,disabled:zt,readOnly:Mt||!Tr,value:Nr||jt,onChange:function(ur){Gt(ur.target.value)},autoFocus:mt,placeholder:wn,ref:ma,title:jt},mr,{size:s(Nt,Oa[0])},Je(q),{autoComplete:pa})),sn,cn))))}var Jn=function(q){Object(I.a)(Ve,q);var De=Object(K.a)(Ve);function Ve(){var Be;return Object(re.a)(this,Ve),Be=De.apply(this,arguments),Be.pickerRef=x.createRef(),Be.focus=function(){Be.pickerRef.current&&Be.pickerRef.current.focus()},Be.blur=function(){Be.pickerRef.current&&Be.pickerRef.current.blur()},Be}return Object(z.a)(Ve,[{key:"render",value:function(){return x.createElement(Wn,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Ve}(x.Component),Sr=Jn;function zn(q,De,Ve){var Be=q.picker,$e=q.locale,qe=q.selectedValue,ft=q.disabledDate,Ee=q.disabled,gt=q.generateConfig,yt=Ae(qe,0),Lt=Ae(qe,1);function bt(mt){var Pt=gt.getYear(mt),Jt=gt.locale.getWeek($e.locale,mt);return Pt*100+Jt}function ut(mt){var Pt=gt.getYear(mt),Jt=gt.getMonth(mt);return Pt*100+Jt}function kt(mt){var Pt=gt.getYear(mt),Jt=_e(gt,mt);return Pt*10+Jt}var Mt=x.useCallback(function(mt){if(ft&&ft(mt))return!0;if(Ee[1]&&Lt)return!Rt(gt,mt,Lt)&>.isAfter(mt,Lt);if(De&&Lt)switch(Be){case"quarter":return kt(mt)>kt(Lt);case"month":return ut(mt)>ut(Lt);case"week":return bt(mt)>bt(Lt);default:return!Rt(gt,mt,Lt)&>.isAfter(mt,Lt)}return!1},[ft,Ee[1],Lt,De]),Le=x.useCallback(function(mt){if(ft&&ft(mt))return!0;if(Ee[0]&&yt)return!Rt(gt,mt,Lt)&>.isAfter(yt,mt);if(Ve&&yt)switch(Be){case"quarter":return kt(mt)0&&arguments[0]!==void 0?arguments[0]:!1,Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},er=null;Or&&ka&&ka[0]&&ka[1]&&Mt.isAfter(ka[1],ka[0])&&(er=ka);var wr=un;if(un&&Object(M.a)(un)==="object"&&un.defaultValue){var aa=un.defaultValue;wr=Object(w.a)(Object(w.a)({},un),{},{defaultValue:Ae(aa,Ue)||void 0})}var vi=null;return Ln&&(vi=function(Da,Ya){return Ln(Da,Ya,{range:Ue?"end":"start"})}),x.createElement(Ct.Provider,{value:{inRange:!0,panelPosition:gr,rangedValue:Xi||rr,hoverRangedValue:er}},x.createElement($,Object.assign({},q,Pn,{dateRender:vi,showTime:wr,mode:_n[Ue],generateConfig:Mt,style:void 0,direction:Ma,disabledDate:Ue===0?jn:yr,disabledTime:function(Da){return Yn?Yn(Da,Ue===0?"start":"end"):!1},className:D()(Object(T.a)({},"".concat(qe,"-panel-focused"),Ue===0?!da:!so)),value:Ae(rr,Ue),locale:Le,tabIndex:-1,onPanelChange:function(Da,Ya){cn(ke(_n,Ya,Ue),ke(rr,Da,Ue));var gi=Da;gr==="right"&&_n[Ue]===Ya&&(gi=tt(gi,Ya,Mt,-1)),lr(gi,Ue)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var la=0,Ua=0;Ue&&et.current&&se.current&&Ye.current&&(la=et.current.offsetWidth+se.current.offsetWidth,Ye.current.offsetWidth&&la>Ye.current.offsetWidth&&(Ua=la));var Pi=Ma==="rtl"?{right:la}:{left:la};function ci(){var gr,Pn=A(qe,_n[Ue],Wr),er=X({prefixCls:qe,components:Wa,needConfirmButton:Ca,okDisabled:!Ae(rr,Ue)||wn&&wn(rr[Ue]),locale:Le,rangeList:Kr,onOk:function(){Ae(rr,Ue)&&(ja(rr,Ue),Oa&&Oa(rr))}});if(gn!=="time"&&!un){var wr=pr(Ue),aa=tt(wr,gn,Mt),vi=_n[Ue],ii=vi===gn,Da=Rr(ii?"left":!1,{pickerValue:wr,onPickerValueChange:function(Sa){lr(Sa,Ue)}}),Ya=Rr("right",{pickerValue:aa,onPickerValueChange:function(Sa){lr(tt(Sa,gn,Mt,-1),Ue)}});Ma==="rtl"?gr=x.createElement(x.Fragment,null,Ya,ii&&Da):gr=x.createElement(x.Fragment,null,Da,ii&&Ya)}else gr=Rr();var gi=x.createElement(x.Fragment,null,x.createElement("div",{className:"".concat(qe,"-panels")},gr),(Pn||er)&&x.createElement("div",{className:"".concat(qe,"-footer")},Pn,er));return yn&&(gi=yn(gi)),x.createElement("div",{className:"".concat(qe,"-panel-container"),style:{marginLeft:Ua},ref:Ye,onMouseDown:function(Sa){Sa.preventDefault()}},gi)}var Ui=x.createElement("div",{className:D()("".concat(qe,"-range-wrapper"),"".concat(qe,"-").concat(gn,"-range-wrapper")),style:{minWidth:wa}},x.createElement("div",{className:"".concat(qe,"-range-arrow"),style:Pi}),ci()),di;dr&&(di=x.createElement("span",{className:"".concat(qe,"-suffix")},dr));var Ea;Ir&&(Ae(In,0)&&!jt[0]||Ae(In,1)&&!jt[1])&&(Ea=x.createElement("span",{onMouseDown:function(Pn){Pn.preventDefault(),Pn.stopPropagation()},onMouseUp:function(Pn){Pn.preventDefault(),Pn.stopPropagation();var er=In;jt[0]||(er=ke(er,null,0)),jt[1]||(er=ke(er,null,1)),ja(er,null),Xr(!1,Ue)},className:"".concat(qe,"-clear")},Mr||x.createElement("span",{className:"".concat(qe,"-clear-btn")})));var Fi={size:s(gn,Re[0])},Bi=0,Wi=0;et.current&&Oe.current&&se.current&&(Ue===0?Wi=et.current.offsetWidth:(Bi=la,Wi=Oe.current.offsetWidth));var Ka=Ma==="rtl"?{right:Bi}:{left:Bi},Hr=function(Pn,er){var wr=ke(rr,Pn,Ue);er==="submit"||er!=="key"&&!Ca?(ja(wr,Ue),Ue===0?$i():ro()):Tr(wr)};return x.createElement(p.Provider,{value:{operationRef:Ot,hideHeader:gn==="time",onDateMouseEnter:Do,onDateMouseLeave:Ao,hideRanges:!0,onSelect:Hr,open:Or}},x.createElement(Nn,{visible:Or,popupElement:Ui,popupStyle:yt,prefixCls:qe,dropdownClassName:Lt,dropdownAlign:ut,getPopupContainer:kt,transitionName:bt,range:!0,direction:Ma},x.createElement("div",Object.assign({ref:Ce,className:D()(qe,"".concat(qe,"-range"),gt,(De={},Object(T.a)(De,"".concat(qe,"-disabled"),jt[0]&&jt[1]),Object(T.a)(De,"".concat(qe,"-focused"),Ue===0?Ra:oo),Object(T.a)(De,"".concat(qe,"-rtl"),Ma==="rtl"),De)),style:Ee,onClick:_i,onMouseDown:Ji},Je(q)),x.createElement("div",{className:D()("".concat(qe,"-input"),(Ve={},Object(T.a)(Ve,"".concat(qe,"-input-active"),Ue===0),Object(T.a)(Ve,"".concat(qe,"-input-placeholder"),!!mi),Ve)),ref:et},x.createElement("input",Object.assign({id:ft,disabled:jt[0],readOnly:Vn||!da,value:mi||Ti,onChange:function(Pn){ki(Pn.target.value)},autoFocus:Pt,placeholder:Ae(mt,0)||"",ref:ye},Ha,Fi,{autoComplete:va}))),x.createElement("div",{className:"".concat(qe,"-range-separator"),ref:se},vt),x.createElement("div",{className:D()("".concat(qe,"-input"),(Be={},Object(T.a)(Be,"".concat(qe,"-input-active"),Ue===1),Object(T.a)(Be,"".concat(qe,"-input-placeholder"),!!ui),Be)),ref:Oe},x.createElement("input",Object.assign({disabled:jt[1],readOnly:Vn||!so,value:ui||Oi,onChange:function(Pn){Vi(Pn.target.value)},placeholder:Ae(mt,1)||"",ref:de},ei,Fi,{autoComplete:va}))),x.createElement("div",{className:"".concat(qe,"-active-bar"),style:Object(w.a)(Object(w.a)({},Ka),{},{width:Wi,position:"absolute"})}),di,Ea)))}var or=function(q){Object(I.a)(Ve,q);var De=Object(K.a)(Ve);function Ve(){var Be;return Object(re.a)(this,Ve),Be=De.apply(this,arguments),Be.pickerRef=x.createRef(),Be.focus=function(){Be.pickerRef.current&&Be.pickerRef.current.focus()},Be.blur=function(){Be.pickerRef.current&&Be.pickerRef.current.blur()},Be}return Object(z.a)(Ve,[{key:"render",value:function(){return x.createElement(Cn,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),Ve}(x.Component),xr=or,Ur=rt.b=Sr},osHv:function(an,rt,F){(function(re){re(F("VrN/"))})(function(re){"use strict";var z=re.Pos;function I(d,o){return d.line-o.line||d.ch-o.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",T=K+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",w=new RegExp("<(/?)(["+K+"]["+T+"]*)","g");function B(d,o,u,h){this.line=o,this.ch=u,this.cm=d,this.text=d.getLine(o),this.min=h?Math.max(h.from,d.firstLine()):d.firstLine(),this.max=h?Math.min(h.to-1,d.lastLine()):d.lastLine()}function x(d,o){var u=d.cm.getTokenTypeAt(z(d.line,o));return u&&/\btag\b/.test(u)}function k(d){return d.line>=d.max?void 0:(d.ch=0,d.text=d.cm.getLine(++d.line),!0)}function D(d){return d.line<=d.min?void 0:(d.text=d.cm.getLine(--d.line),d.ch=d.text.length,!0)}function m(d){for(;;){var o=d.text.indexOf(">",d.ch);if(o==-1){if(k(d))continue;return}if(!x(d,o+1)){d.ch=o+1;continue}var u=d.text.lastIndexOf("/",o),h=u>-1&&!/\S/.test(d.text.slice(u+1,o));return d.ch=o+1,h?"selfClose":"regular"}}function R(d){for(;;){var o=d.ch?d.text.lastIndexOf("<",d.ch-1):-1;if(o==-1){if(D(d))continue;return}if(!x(d,o+1)){d.ch=o;continue}w.lastIndex=o,d.ch=o;var u=w.exec(d.text);if(u&&u.index==o)return u}}function M(d){for(;;){w.lastIndex=d.ch;var o=w.exec(d.text);if(!o){if(k(d))continue;return}if(!x(d,o.index+1)){d.ch=o.index+1;continue}return d.ch=o.index+o[0].length,o}}function g(d){for(;;){var o=d.ch?d.text.lastIndexOf(">",d.ch-1):-1;if(o==-1){if(D(d))continue;return}if(!x(d,o+1)){d.ch=o;continue}var u=d.text.lastIndexOf("/",o),h=u>-1&&!/\S/.test(d.text.slice(u+1,o));return d.ch=o+1,h?"selfClose":"regular"}}function n(d,o){for(var u=[];;){var h=M(d),S,b=d.line,v=d.ch-(h?h[0].length:0);if(!h||!(S=m(d)))return;if(S=="selfClose")continue;if(h[1]){for(var P=u.length-1;P>=0;--P)if(u[P]==h[2]){u.length=P;break}if(P<0&&(!o||o==h[2]))return{tag:h[2],from:z(b,v),to:z(d.line,d.ch)}}else u.push(h[2])}}function p(d,o){for(var u=[];;){var h=g(d);if(!h)return;if(h=="selfClose"){R(d);continue}var S=d.line,b=d.ch,v=R(d);if(!v)return;if(v[1])u.push(v[2]);else{for(var P=u.length-1;P>=0;--P)if(u[P]==v[2]){u.length=P;break}if(P<0&&(!o||o==v[2]))return{tag:v[2],from:z(d.line,d.ch),to:z(S,b)}}}}re.registerHelper("fold","xml",function(d,o){for(var u=new B(d,o.line,0);;){var h=M(u);if(!h||u.line!=o.line)return;var S=m(u);if(!S)return;if(!h[1]&&S!="selfClose"){var b=z(u.line,u.ch),v=n(u,h[2]);return v&&I(v.from,b)>0?{from:b,to:v.from}:null}}}),re.findMatchingTag=function(d,o,u){var h=new B(d,o.line,o.ch,u);if(h.text.indexOf(">")==-1&&h.text.indexOf("<")==-1)return;var S=m(h),b=S&&z(h.line,h.ch),v=S&&R(h);if(!S||!v||I(h,o)>0)return;var P={from:z(h.line,h.ch),to:b,tag:v[2]};return S=="selfClose"?{open:P,close:null,at:"open"}:v[1]?{open:p(h,v[2]),close:P,at:"close"}:(h=new B(d,b.line,b.ch,u),{open:P,close:n(h,v[2]),at:"open"})},re.findEnclosingTag=function(d,o,u,h){for(var S=new B(d,o.line,o.ch,u);;){var b=p(S,h);if(!b)break;var v=new B(d,o.line,o.ch,u),P=n(v,b.tag);if(P)return{open:b,close:P}}},re.scanForClosingTag=function(d,o,u,h){var S=new B(d,o.line,o.ch,h?{from:0,to:h}:null);return n(S,u)}})},p5ED:function(an,rt,F){"use strict";var re=F("+L6B"),z=F("2/Rp"),I=F("5Dmo"),K=F("3S7+"),T=F("k1fw"),w=F("9og8"),B=F("tJVT"),x=F("WmNS"),k=F.n(x),D=F("q1tI"),m=F.n(D),R=F("vHTk"),M=F.n(R),g=F("yEEn"),n=F("ZW9T"),p=F("1vsH"),d=F("V0Rq"),o=F("m3rI"),u=function(S){var b=S.name,v=S.data,P=S.theme,E=S.type,f=S.filename,c=S.monacoEditor,s=S.className,i=S.style,C=S.close,_=S.onClose,O=S.hasMask,N=S.otherData,U=N===void 0?{}:N,H=Object(D.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),G=Object(B.a)(H,2),L=G[0],W=G[1],Z=Object(D.useState)(""),oe=Object(B.a)(Z,2),ie=oe[0],be=oe[1],Je=Object(D.useState)(),Ae=Object(B.a)(Je,2),ke=Ae[0],Ze=Ae[1],Xe=window.ENV==="build"?"/react/build/office.html":"/office.html",Pe,fe=1024*1024,le=10*fe,Se=Object(D.useRef)();E==="office"&&(Pe=Object(p.P)(v).filesize,Pe>le&&(E="other")),f&&(c.filename=f),Object(D.useEffect)(function(){var ee,V,Q=(ee=document.cookie)===null||ee===void 0||((V=ee.replace(/\s/g,""))===null||V===void 0)?void 0:V.split(";");Q==null||Q.map(function(he){var _e=he.split("=");_e[0]==="_educoder_session"&&be(_e[1])})},[]),Object(D.useEffect)(function(){E==="office"&&ve()},[E]);var ve=function(){var ee=Object(w.a)(k.a.mark(function V(){var Q,he,_e;return k.a.wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return console.log("data:",v),Q=v,v.startsWith("http")||(Q=location.origin+Q),he=new URL(Q).pathname.split("/").pop(),He.next=6,Object(d.U)({attachment_id:he});case 6:_e=He.sent,Ze(_e);case 8:case"end":return He.stop()}},V)}));return function(){return ee.apply(this,arguments)}}(),Ge=function(){if(v.startsWith("http")||v.startsWith("blob:")){it();return}Object(p.x)(f||"educoder",v,f)},it=function(){Object(p.v)(f||"educoder",decodeURIComponent(v))};return m.a.createElement("div",{style:Object(T.a)({},i||{}),className:"".concat(O&&M.a.bgBlack," ").concat(E?M.a.wrp:"hide")},C&&m.a.createElement("div",{className:M.a.close,ref:Se},m.a.createElement(K.a,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:function(){return Se.current}},m.a.createElement("span",{onClick:it},m.a.createElement("i",{className:"icon-quxiaozhiding"}))),m.a.createElement(K.a,{title:"\u5173\u95ED",getPopupContainer:function(){return Se.current}},m.a.createElement("span",{className:"",onClick:function(){_(),Ze(null)}},m.a.createElement("i",{className:"icon-guanbi1"})))),m.a.createElement("div",{className:"".concat(M.a[s]," ").concat(s," ").concat(M.a.monaco," ").concat(E==="txt"?"show":"hide")},E==="txt"&&m.a.createElement(n.b,c)),E==="audio"&&m.a.createElement("audio",{src:"".concat((v==null?void 0:v.indexOf("http://"))>-1||(v==null?void 0:v.indexOf("https://"))>-1?"":"data:audio/mp3;base64,").concat(v),autoPlay:!0}),E==="video"&&m.a.createElement(m.a.Fragment,null,(v==null?void 0:v.indexOf("/api"))>-1?m.a.createElement("video",{controls:!0,src:"".concat(v),autoPlay:!0}):m.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(v),autoPlay:!0})),E==="office"&&ke&&m.a.createElement("iframe",{src:"".concat(Xe,"?key=").concat(ke.key,"&url=").concat(o.a.API_SERVER+ke.url,"&callbackUrl=").concat(o.a.API_SERVER+ke.callbackUrl,"&fileType=").concat(ke.fileType,"&title=").concat(ke.title,"&model=view")}),(E==="xlsx"||E==="doc"||E==="pptx"||E==="docx")&&m.a.createElement("iframe",{src:"".concat(Xe,"?key=").concat(U.key,"&url=").concat(o.a.API_SERVER+U.url,"&callbackUrl=").concat(o.a.API_SERVER+U.callbackUrl,"&fileType=").concat(U.fileType,"&title=").concat(U.title,"&model=").concat(U.model)}),E==="html"&&m.a.createElement("iframe",{src:v+"&disposition=inline"}),E==="pdf"&&m.a.createElement("embed",{className:M.a.embed,src:v,type:"application/pdf"}),E==="image"&&m.a.createElement("img",{src:"".concat((v==null?void 0:v.indexOf("http://"))>-1||(v==null?void 0:v.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(v)}),E==="other"&&m.a.createElement("div",null,m.a.createElement(z.a,{type:"primary",size:"large",onClick:Ge},m.a.createElement(g.a,null),"\u70B9\u51FB\u4E0B\u8F7D")),E==="download"&&m.a.createElement(z.a,{type:"primary",size:"large",onClick:Ge},m.a.createElement(g.a,null),"\u70B9\u51FB\u4E0B\u8F7D"))};rt.a=u},"p77/":function(an,rt,F){},qbod:function(an,rt,F){},"rAM+":function(an,rt,F){"use strict";F.d(rt,"a",function(){return z});var re=F("Qw5x");function z(I,K){var T;if(typeof Symbol=="undefined"||I[Symbol.iterator]==null){if(Array.isArray(I)||(T=Object(re.a)(I))||K&&I&&typeof I.length=="number"){T&&(I=T);var w=0,B=function(){};return{s:B,n:function(){return w>=I.length?{done:!0}:{done:!1,value:I[w++]}},e:function(R){throw R},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 x=!0,k=!1,D;return{s:function(){T=I[Symbol.iterator]()},n:function(){var R=T.next();return x=R.done,R},e:function(R){k=!0,D=R},f:function(){try{!x&&T.return!=null&&T.return()}finally{if(k)throw D}}}}},rUJ1:function(an,rt){const F=/[&<>"']/,re=/[&<>"']/g,z=/[<>"']|&(?!#?\w+;)/,I=/[<>"']|&(?!#?\w+;)/g,K={"&":"&","<":"<",">":">",'"':""","'":"'"},T=E=>K[E];function w(E,f){if(f){if(F.test(E))return E.replace(re,T)}else if(z.test(E))return E.replace(I,T);return E}const B=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function x(E){return E.replace(B,(f,c)=>(c=c.toLowerCase(),c==="colon"?":":c.charAt(0)==="#"?c.charAt(1)==="x"?String.fromCharCode(parseInt(c.substring(2),16)):String.fromCharCode(+c.substring(1)):""))}const k=/(^|[^\[])\^/g;function D(E,f){E=E.source||E,f=f||"";const c={replace:(s,i)=>(i=i.source||i,i=i.replace(k,"$1"),E=E.replace(s,i),c),getRegex:()=>new RegExp(E,f)};return c}const m=/[^\w:]/g,R=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function M(E,f,c){if(E){let s;try{s=decodeURIComponent(x(c)).replace(m,"").toLowerCase()}catch(i){return null}if(s.indexOf("javascript:")===0||s.indexOf("vbscript:")===0||s.indexOf("data:")===0)return null}f&&!R.test(c)&&(c=o(f,c));try{c=encodeURI(c).replace(/%25/g,"%")}catch(s){return null}return c}const g={},n=/^[^:]+:\/*[^/]*$/,p=/^([^:]+:)[\s\S]*$/,d=/^([^:]+:\/*[^/]*)[\s\S]*$/;function o(E,f){g[" "+E]||(n.test(E)?g[" "+E]=E+"/":g[" "+E]=b(E,"/",!0)),E=g[" "+E];const c=E.indexOf(":")===-1;return f.substring(0,2)==="//"?c?f:E.replace(p,"$1")+f:f.charAt(0)==="/"?c?f:E.replace(d,"$1")+f:E+f}const u={exec:function(){}};function h(E){let f=1,c,s;for(;f{let N=!1,U=_;for(;--U>=0&&O[U]==="\\";)N=!N;return N?"|":" |"}),s=c.split(/ \|/);let i=0;if(s.length>f)s.splice(f);else for(;s.length1)Object(D.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(h.length===0)return Object(D.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var S=h[0];if(w.isValidElement(S)&&Object(m.c)(S)){var b=S.ref;h[0]=w.cloneElement(S,{ref:Object(m.a)(b,this.setChildNode)})}return h.length===1?h[0]:h.map(function(v,P){return!w.isValidElement(v)||"key"in v&&v.key!==null?v:w.cloneElement(v,{key:"".concat(M,"-").concat(P)})})}}]),d}(w.Component);g.displayName="ResizeObserver",rt.a=g},ulZh:function(an,rt,F){typeof window!="undefined"&&function(z,I){an.exports=I()}(this,function(){return function(re){var z={};function I(K){if(z[K])return z[K].exports;var T=z[K]={i:K,l:!1,exports:{}};return re[K].call(T.exports,T,T.exports,I),T.l=!0,T.exports}return I.m=re,I.c=z,I.d=function(K,T,w){I.o(K,T)||Object.defineProperty(K,T,{enumerable:!0,get:w})},I.r=function(K){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(K,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(K,"__esModule",{value:!0})},I.t=function(K,T){if(T&1&&(K=I(K)),T&8)return K;if(T&4&&typeof K=="object"&&K&&K.__esModule)return K;var w=Object.create(null);if(I.r(w),Object.defineProperty(w,"default",{enumerable:!0,value:K}),T&2&&typeof K!="string")for(var B in K)I.d(w,B,function(x){return K[x]}.bind(null,B));return w},I.n=function(K){var T=K&&K.__esModule?function(){return K.default}:function(){return K};return I.d(T,"a",T),T},I.o=function(K,T){return Object.prototype.hasOwnProperty.call(K,T)},I.p="/dist/",I(I.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js":function(re,z,I){"use strict";var K=Object.prototype.hasOwnProperty,T="~";function w(){}Object.create&&(w.prototype=Object.create(null),new w().__proto__||(T=!1));function B(m,R,M){this.fn=m,this.context=R,this.once=M||!1}function x(m,R,M,g,n){if(typeof M!="function")throw new TypeError("The listener must be a function");var p=new B(M,g||m,n),d=T?T+R:R;return m._events[d]?m._events[d].fn?m._events[d]=[m._events[d],p]:m._events[d].push(p):(m._events[d]=p,m._eventsCount++),m}function k(m,R){--m._eventsCount===0?m._events=new w:delete m._events[R]}function D(){this._events=new w,this._eventsCount=0}D.prototype.eventNames=function(){var R=[],M,g;if(this._eventsCount===0)return R;for(g in M=this._events)K.call(M,g)&&R.push(T?g.slice(1):g);return Object.getOwnPropertySymbols?R.concat(Object.getOwnPropertySymbols(M)):R},D.prototype.listeners=function(R){var M=T?T+R:R,g=this._events[M];if(!g)return[];if(g.fn)return[g.fn];for(var n=0,p=g.length,d=new Array(p);n0},!1)}function m(R,M){for(var g={main:[M]},n={main:[]},p={main:{}};D(g);)for(var d=Object.keys(g),o=0;o=2*P/f||O<=U)return;var H=Number.POSITIVE_INFINITY,G;for(G=d.level-1;G>s;G--){var L=c[G].maxBitrate;if(H=P*L/(8*.8*_),H=O)return;var W=this.bwEstimator.getEstimate();D.logger.warn("Fragment "+d.sn+(o?" part "+o.index:"")+" of level "+d.level+" is loading too slowly and will cause an underbuffer; aborting and switching to level "+G+` Current BW estimate: `+(Object(K.isFiniteNumber)(W)?(W/1024).toFixed(3):"Unknown")+` Kb/s Estimated load time for current fragment: `+O.toFixed(3)+` s Estimated load time for the next fragment: `+H.toFixed(3)+` s - Time to underbuffer: `+U.toFixed(3)+" s"),u.nextLoadLevel=G,this.bwEstimator.sample(E,v.loaded),this.clearTimer(),d.loader&&(this.fragCurrent=this.partCurrent=null,d.loader.abort()),u.trigger(w.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:d,part:o,stats:v})},n.onFragLoaded=function(d,o){var u=o.frag,f=o.part;if(u.type===k.PlaylistLevelType.MAIN&&Object(K.isFiniteNumber)(u.sn)){var S=f?f.stats:u.stats,b=f?f.duration:u.duration;if(this.clearTimer(),this.lastLoadedFragLevel=u.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var v=this.hls.levels[u.level],P=(v.loaded?v.loaded.bytes:0)+S.loaded,E=(v.loaded?v.loaded.duration:0)+b;v.loaded={bytes:P,duration:E},v.realBitrate=Math.round(8*P/E)}if(u.bitrateTest){var h={stats:S,frag:u,part:f,id:u.type};this.onFragBuffered(w.Events.FRAG_BUFFERED,h),u.bitrateTest=!1}}},n.onFragBuffered=function(d,o){var u=o.frag,f=o.part,S=f?f.stats:u.stats;if(S.aborted)return;if(u.type!==k.PlaylistLevelType.MAIN||u.sn==="initSegment")return;var b=S.parsing.end-S.loading.start;this.bwEstimator.sample(b,S.loaded),S.bwEstimate=this.bwEstimator.getEstimate(),u.bitrateTest?this.bitrateTestDelay=b/1e3:this.bitrateTestDelay=0},n.onError=function(d,o){switch(o.details){case x.ErrorDetails.FRAG_LOAD_ERROR:case x.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},n.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},n.getNextABRAutoLevel=function(){var d=this.fragCurrent,o=this.partCurrent,u=this.hls,f=u.maxAutoLevel,S=u.config,b=u.minAutoLevel,v=u.media,P=o?o.duration:d?d.duration:0,E=v?v.currentTime:0,h=v&&v.playbackRate!==0?Math.abs(v.playbackRate):1,c=this.bwEstimator?this.bwEstimator.getEstimate():S.abrEwmaDefaultEstimate,s=(B.BufferHelper.bufferInfo(v,E,S.maxBufferHole).end-E)/h,i=this.findBestLevel(c,b,f,s,S.abrBandWidthFactor,S.abrBandWidthUpFactor);if(i>=0)return i;D.logger.trace((s?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var C=P?Math.min(P,S.maxStarvationDelay):S.maxStarvationDelay,_=S.abrBandWidthFactor,O=S.abrBandWidthUpFactor;if(!s){var N=this.bitrateTestDelay;if(N){var U=P?Math.min(P,S.maxLoadingDelay):S.maxLoadingDelay;C=U-N,D.logger.trace("bitrate test took "+Math.round(1e3*N)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*C)+" ms"),_=O=1}}return i=this.findBestLevel(c,b,f,s+C,_,O),Math.max(i,0)},n.findBestLevel=function(d,o,u,f,S,b){for(var v,P=this.fragCurrent,E=this.partCurrent,h=this.lastLoadedFragLevel,c=this.hls.levels,s=c[h],i=!!(s!=null&&(v=s.details)!==null&&v!==void 0&&v.live),C=s==null?void 0:s.codecSet,_=E?E.duration:P?P.duration:0,O=u;O>=o;O--){var N=c[O];if(!N||C&&N.codecSet!==C)continue;var U=N.details,H=(E?U==null?void 0:U.partTarget:U==null?void 0:U.averagetargetduration)||_,G=void 0;O<=h?G=S*d:G=b*d;var L=c[O].maxBitrate,W=L*H/G;if(D.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+O+"/"+Math.round(G)+"/"+L+"/"+H+"/"+f+"/"+W),G>L&&(!W||i&&!this.bitrateTestDelay||W0&&s===-1?(this.log("Override startPosition with lastCurrentTime @"+i.toFixed(3)),this.state=T.State.IDLE):(this.loadedmetadata=!1,this.state=T.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=s,this.tick()},h.doTick=function(){switch(this.state){case T.State.IDLE:this.doTickIdle();break;case T.State.WAITING_TRACK:{var s,i=this.levels,C=this.trackId,_=i==null||((s=i[C])===null||s===void 0)?void 0:s.details;if(_){if(this.waitForCdnTuneIn(_))break;this.state=T.State.WAITING_INIT_PTS}break}case T.State.FRAG_LOADING_WAITING_RETRY:{var O,N=performance.now(),U=this.retryDate;(!U||N>=U||(O=this.media)!==null&&O!==void 0&&O.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=T.State.IDLE);break}case T.State.WAITING_INIT_PTS:{var H=this.waitingData;if(H){var G=H.frag,L=H.part,W=H.cache,Z=H.complete;if(this.initPTS[G.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=T.State.FRAG_LOADING;var oe=W.flush(),ie={frag:G,part:L,payload:oe,networkDetails:null};this._handleFragmentLoadProgress(ie),Z&&P.prototype._handleFragmentLoadComplete.call(this,ie)}else if(this.videoTrackCC!==this.waitingVideoCC)o.logger.log("Waiting fragment cc ("+G.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var be=this.getLoadPosition(),Je=B.BufferHelper.bufferInfo(this.mediaBuffer,be,this.config.maxBufferHole),Ae=Object(n.fragmentWithinToleranceTest)(Je.end,this.config.maxFragLookUpTolerance,G);Ae<0&&(o.logger.log("Waiting fragment cc ("+G.cc+") @ "+G.start+" cancelled because another fragment at "+Je.end+" is needed"),this.clearWaitingFragment())}}else this.state=T.State.IDLE}}this.onTickEnd()},h.clearWaitingFragment=function(){var s=this.waitingData;s&&(this.fragmentTracker.removeFragment(s.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=T.State.IDLE)},h.onTickEnd=function(){var s=this.media;if(!s||!s.readyState)return;var i=this.mediaBuffer?this.mediaBuffer:s,C=i.buffered;!this.loadedmetadata&&C.length&&(this.loadedmetadata=!0),this.lastCurrentTime=s.currentTime},h.doTickIdle=function(){var s,i,C=this.hls,_=this.levels,O=this.media,N=this.trackId,U=C.config;if(!_||!_[N])return;if(!O&&(this.startFragRequested||!U.startFragPrefetch))return;var H=_[N],G=H.details;if(!G||G.live&&this.levelLastLoaded!==N||this.waitForCdnTuneIn(G)){this.state=T.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,m.ElementaryStreamTypes.AUDIO,D.PlaylistLevelType.AUDIO));var L=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,D.PlaylistLevelType.AUDIO);if(L===null)return;var W=L.len,Z=this.getMaxBufferLength(),oe=this.audioSwitch;if(W>=Z&&!oe)return;if(!oe&&this._streamEnded(L,G)){C.trigger(w.Events.BUFFER_EOS,{type:"audio"}),this.state=T.State.ENDED;return}var ie=G.fragments,be=ie[0].start,Je=L.end;if(oe){var Ae=this.getLoadPosition();Je=Ae,G.PTSKnown&&Aebe||L.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),O.currentTime=be+.05))}var ke=this.getNextFragment(Je,G);if(!ke){this.bufferFlushed=!0;return}((s=ke.decryptdata)===null||s===void 0?void 0:s.keyFormat)==="identity"&&!((i=ke.decryptdata)!==null&&i!==void 0&&i.key)?this.loadKey(ke,G):this.loadFragment(ke,G,Je)},h.getMaxBufferLength=function(){var s=P.prototype.getMaxBufferLength.call(this),i=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,D.PlaylistLevelType.MAIN);return i===null?s:Math.max(s,i.len)},h.onMediaDetaching=function(){this.videoBuffer=null,P.prototype.onMediaDetaching.call(this)},h.onAudioTracksUpdated=function(s,i){var C=i.audioTracks;this.resetTransmuxer(),this.levels=C.map(function(_){return new k.Level(_)})},h.onAudioTrackSwitching=function(s,i){var C=!!i.url;this.trackId=i.id;var _=this.fragCurrent;_!=null&&_.loader&&_.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),C?this.setInterval(b):this.resetTransmuxer(),C?(this.audioSwitch=!0,this.state=T.State.IDLE):this.state=T.State.STOPPED,this.tick()},h.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},h.onLevelLoaded=function(s,i){this.mainDetails=i.details},h.onAudioTrackLoaded=function(s,i){var C,_=this.levels,O=i.details,N=i.id;if(!_){this.warn("Audio tracks were reset while loading level "+N);return}this.log("Track "+N+" loaded ["+O.startSN+","+O.endSN+"],duration:"+O.totalduration);var U=_[N],H=0;if(O.live||(C=U.details)!==null&&C!==void 0&&C.live){var G=this.mainDetails;if(O.fragments[0]||(O.deltaUpdateFailed=!0),O.deltaUpdateFailed||!G)return;!U.details&&O.hasProgramDateTime&&G.hasProgramDateTime?(Object(p.alignMediaPlaylistByPDT)(O,G),H=O.fragments[0].start):H=this.alignPlaylists(O,U.details)}U.details=O,this.levelLastLoaded=N,!this.startFragRequested&&(this.mainDetails||!O.live)&&this.setStartPosition(U.details,H),this.state===T.State.WAITING_TRACK&&!this.waitForCdnTuneIn(O)&&(this.state=T.State.IDLE),this.tick()},h._handleFragmentLoadProgress=function(s){var i,C=s.frag,_=s.part,O=s.payload,N=this.config,U=this.trackId,H=this.levels;if(!H){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+C.sn+" of level "+C.level+" will not be buffered");return}var G=H[U];console.assert(G,"Audio track is defined on fragment load progress");var L=G.details;console.assert(L,"Audio track details are defined on fragment load progress");var W=N.defaultAudioCodec||G.audioCodec||"mp4a.40.2",Z=this.transmuxer;Z||(Z=this.transmuxer=new M.default(this.hls,D.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var oe=this.initPTS[C.cc],ie=(i=C.initSegment)===null||i===void 0?void 0:i.data;if(oe!==void 0){var be=!1,Je=_?_.index:-1,Ae=Je!==-1,ke=new g.ChunkMetadata(C.level,C.sn,C.stats.chunkCount,O.byteLength,Je,Ae);Z.push(O,ie,W,"",C,_,L.totalduration,be,ke,oe)}else{o.logger.log("Unknown video PTS for cc "+C.cc+", waiting for video PTS before demuxing audio frag "+C.sn+" of ["+L.startSN+" ,"+L.endSN+"],track "+U);var Ze=this.waitingData=this.waitingData||{frag:C,part:_,cache:new R.default,complete:!1},Xe=Ze.cache;Xe.push(new Uint8Array(O)),this.waitingVideoCC=this.videoTrackCC,this.state=T.State.WAITING_INIT_PTS}},h._handleFragmentLoadComplete=function(s){if(this.waitingData){this.waitingData.complete=!0;return}P.prototype._handleFragmentLoadComplete.call(this,s)},h.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},h.onBufferCreated=function(s,i){var C=i.tracks.audio;C&&(this.mediaBuffer=C.buffer),i.tracks.video&&(this.videoBuffer=i.tracks.video.buffer)},h.onFragBuffered=function(s,i){var C=i.frag,_=i.part;if(C.type!==D.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(C)){this.warn("Fragment "+C.sn+(_?" p: "+_.index:"")+" of level "+C.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}C.sn!=="initSegment"&&(this.fragPrevious=C,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(w.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(C,_)},h.onError=function(s,i){switch(i.details){case d.ErrorDetails.FRAG_LOAD_ERROR:case d.ErrorDetails.FRAG_LOAD_TIMEOUT:case d.ErrorDetails.KEY_LOAD_ERROR:case d.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(D.PlaylistLevelType.AUDIO,i);break;case d.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case d.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==T.State.ERROR&&this.state!==T.State.STOPPED&&(this.state=i.fatal?T.State.ERROR:T.State.IDLE,this.warn(i.details+" while loading frag, switching to "+this.state+" state"));break;case d.ErrorDetails.BUFFER_FULL_ERROR:if(i.parent==="audio"&&(this.state===T.State.PARSING||this.state===T.State.PARSED)){var C=!0,_=this.getFwdBufferInfo(this.mediaBuffer,D.PlaylistLevelType.AUDIO);_&&_.len>.5&&(C=!this.reduceMaxBufferLength(_.len)),C&&(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}},h.onBufferFlushed=function(s,i){var C=i.type;C===m.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},h._handleTransmuxComplete=function(s){var i,C="audio",_=this.hls,O=s.remuxResult,N=s.chunkMeta,U=this.getCurrentContext(N);if(!U){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 H=U.frag,G=U.part,L=O.audio,W=O.text,Z=O.id3,oe=O.initSegment;if(this.fragContextChanged(H))return;if(this.state=T.State.PARSING,this.audioSwitch&&L&&this.completeAudioSwitch(),oe!=null&&oe.tracks&&(this._bufferInitSegment(oe.tracks,H,N),_.trigger(w.Events.FRAG_PARSING_INIT_SEGMENT,{frag:H,id:C,tracks:oe.tracks})),L){var ie=L.startPTS,be=L.endPTS,Je=L.startDTS,Ae=L.endDTS;G&&(G.elementaryStreams[m.ElementaryStreamTypes.AUDIO]={startPTS:ie,endPTS:be,startDTS:Je,endDTS:Ae}),H.setElementaryStreamInfo(m.ElementaryStreamTypes.AUDIO,ie,be,Je,Ae),this.bufferFragmentData(L,H,G,N)}if(Z!=null&&(i=Z.samples)!==null&&i!==void 0&&i.length){var ke=u({frag:H,id:C},Z);_.trigger(w.Events.FRAG_PARSING_METADATA,ke)}if(W){var Ze=u({frag:H,id:C},W);_.trigger(w.Events.FRAG_PARSING_USERDATA,Ze)}},h._bufferInitSegment=function(s,i,C){if(this.state!==T.State.PARSING)return;s.video&&delete s.video;var _=s.audio;if(!_)return;_.levelCodec=_.codec,_.id="audio",this.log("Init audio buffer, container:"+_.container+", codecs[parsed]=["+_.codec+"]"),this.hls.trigger(w.Events.BUFFER_CODECS,s);var O=_.initSegment;if(O!=null&&O.byteLength){var N={type:"audio",frag:i,part:null,chunkMeta:C,parent:i.type,data:O};this.hls.trigger(w.Events.BUFFER_APPENDING,N)}this.tick()},h.loadFragment=function(s,i,C){var _=this.fragmentTracker.getState(s);this.fragCurrent=s,(this.audioSwitch||_===x.FragmentState.NOT_LOADED||_===x.FragmentState.PARTIAL)&&(s.sn==="initSegment"?this._loadInitSegment(s):i.live&&!Object(K.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=T.State.WAITING_INIT_PTS):(this.startFragRequested=!0,P.prototype.loadFragment.call(this,s,i,C)))},h.completeAudioSwitch=function(){var s=this.hls,i=this.media,C=this.trackId;i&&(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:C})},E}(T.default);z.default=v},"./src/controller/audio-track-controller.ts":function(re,z,I){"use strict";I.r(z);var K=I("./src/events.ts"),T=I("./src/errors.ts"),w=I("./src/controller/base-playlist-controller.ts"),B=I("./src/types/loader.ts");function x(M,g){for(var n=0;n=o.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var u=o[this.trackId];this.log("Now switching to audio-track index "+d);var f=o[d],S=f.id,b=f.groupId,v=b===void 0?"":b,P=f.name,E=f.type,h=f.url;if(this.trackId=d,this.trackName=P,this.selectDefaultTrack=!1,this.hls.trigger(K.Events.AUDIO_TRACK_SWITCHING,{id:S,groupId:v,name:P,type:E,url:h}),f.details&&!f.details.live)return;var c=this.switchParams(f.url,u==null?void 0:u.details);this.loadPlaylist(c)},n.selectInitialTrack=function(){var d=this.tracksInGroup;console.assert(d.length,"Initial audio track should be selected when tracks are known");var o=this.trackName,u=this.findTrackId(o)||this.findTrackId();u!==-1?this.setAudioTrack(u):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(K.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},n.findTrackId=function(d){for(var o=this.tracksInGroup,u=0;ug.partTarget&&(f+=1)}if(Object(K.isFiniteNumber)(u))return new T.HlsUrlParameters(u,Object(K.isFiniteNumber)(f)?f:void 0,T.HlsSkip.No)}}},m.loadPlaylist=function(M){},m.shouldLoadTrack=function(M){return this.canLoad&&M&&!!M.url&&(!M.details||M.details.live)},m.playlistLoaded=function(M,g,n){var p=this,d=g.details,o=g.stats,u=o.loading.end?Math.max(0,self.performance.now()-o.loading.end):0;if(d.advancedDateTime=Date.now()-u,d.live||n!=null&&n.live){if(d.reloaded(n),n&&this.log("live playlist "+M+" "+(d.advanced?"REFRESHED "+d.lastPartSn+"-"+d.lastPartIndex:"MISSED")),n&&d.fragments.length>0&&Object(w.mergeDetails)(n,d),!this.canLoad||!d.live)return;var f,S=void 0,b=void 0;if(d.canBlockReload&&d.endSN&&d.advanced){var v=this.hls.config.lowLatencyMode,P=d.lastPartSn,E=d.endSN,h=d.lastPartIndex,c=h!==-1,s=P===E,i=v?0:h;c?(S=s?E+1:P,b=s?i:h+1):S=E+1;var C=d.age,_=C+d.ageHeader,O=Math.min(_-d.partTarget,d.targetduration*1.5);if(O>0){if(n&&O>n.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+n.tuneInGoal+" to: "+O+" with playlist age: "+d.age),O=0;else{var N=Math.floor(O/d.targetduration);if(S+=N,b!==void 0){var U=Math.round(O%d.targetduration/d.partTarget);b+=U}this.log("CDN Tune-in age: "+d.ageHeader+"s last advanced "+C.toFixed(2)+"s goal: "+O+" skip sn "+N+" to part "+b)}d.tuneInGoal=O}if(f=this.getDeliveryDirectives(d,g.deliveryDirectives,S,b),v||!s){this.loadPlaylist(f);return}}else f=this.getDeliveryDirectives(d,g.deliveryDirectives,S,b);var H=Object(w.computeReloadInterval)(d,o);S!==void 0&&d.canBlockReload&&(H-=d.partTarget||1),this.log("reload live playlist "+M+" in "+Math.round(H)+" ms"),this.timer=self.setTimeout(function(){return p.loadPlaylist(f)},H)}else this.clearTimer()},m.getDeliveryDirectives=function(M,g,n,p){var d=Object(T.getSkipValue)(M,n);return g!=null&&g.skip&&M.deltaUpdateFailed&&(n=g.msn,p=g.part,d=T.HlsSkip.No),new T.HlsUrlParameters(n,p,d)},m.retryLoadingOrFail=function(M){var g=this,n=this.hls.config,p=this.retryCount-1&&(d=M.context)!==null&&d!==void 0&&d.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+M.details+'"'),this.loadPlaylist();else{var o=Math.min(Math.pow(2,this.retryCount)*n.levelLoadingRetryDelay,n.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return g.loadPlaylist()},o),this.warn("retry playlist loading #"+this.retryCount+" in "+o+' ms after "'+M.details+'"')}}else this.warn('cannot recover from error "'+M.details+'"'),this.clearTimer(),M.fatal=!0;return p},D}()},"./src/controller/base-stream-controller.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"State",function(){return E}),I.d(z,"default",function(){return h});var K=I("./src/polyfills/number.ts"),T=I("./src/task-loop.ts"),w=I("./src/controller/fragment-tracker.ts"),B=I("./src/utils/buffer-helper.ts"),x=I("./src/utils/logger.ts"),k=I("./src/events.ts"),D=I("./src/errors.ts"),m=I("./src/types/transmuxer.ts"),R=I("./src/utils/mp4-tools.ts"),M=I("./src/utils/discontinuities.ts"),g=I("./src/controller/fragment-finders.ts"),n=I("./src/controller/level-helper.ts"),p=I("./src/loader/fragment-loader.ts"),d=I("./src/crypt/decrypter.ts"),o=I("./src/utils/time-ranges.ts"),u=I("./src/types/loader.ts");function f(c,s){for(var i=0;ioe;(G0&&G&&G.key&&G.iv&&G.method==="AES-128"){var L=self.performance.now();return O.decrypter.webCryptoDecrypt(new Uint8Array(H),G.key.buffer,G.iv.buffer).then(function(W){var Z=self.performance.now();return U.trigger(k.Events.FRAG_DECRYPTED,{frag:_,payload:W,stats:{tstart:L,tdecrypt:Z}}),N.payload=W,N})}return N}).then(function(N){var U=O.fragCurrent,H=O.hls,G=O.levels;if(!G)throw new Error("init load aborted, missing levels");var L=G[_.level].details;console.assert(L,"Level details are defined when init segment is loaded");var W=_.stats;O.state=E.IDLE,O.fragLoadError=0,_.data=new Uint8Array(N.payload),W.parsing.start=W.buffering.start=self.performance.now(),W.parsing.end=W.buffering.end=self.performance.now(),N.frag===U&&H.trigger(k.Events.FRAG_BUFFERED,{stats:W,frag:U,part:null,id:_.type}),O.tick()}).catch(function(N){O.warn(N),O.resetFragmentLoading(_)})},i.fragContextChanged=function(_){var O=this.fragCurrent;return!_||!O||_.level!==O.level||_.sn!==O.sn||_.urlId!==O.urlId},i.fragBufferedComplete=function(_,O){var N=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+_.type+" sn: "+_.sn+(O?" part: "+O.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+_.level+" "+o.default.toString(B.BufferHelper.getBuffered(N))),this.state=E.IDLE,this.tick()},i._handleFragmentLoadComplete=function(_){var O=this.transmuxer;if(!O)return;var N=_.frag,U=_.part,H=_.partsLoaded,G=!H||H.length===0||H.some(function(W){return!W}),L=new m.ChunkMetadata(N.level,N.sn,N.stats.chunkCount+1,0,U?U.index:-1,!G);O.flush(L)},i._handleFragmentLoadProgress=function(_){},i._doFragLoad=function(_,O,N,U){var H=this;if(N===void 0&&(N=null),!this.levels)throw new Error("frag load aborted, missing levels");if(N=Math.max(_.start,N||0),this.config.lowLatencyMode&&O){var G=O.partList;if(G&&U){N>_.end&&O.fragmentHint&&(_=O.fragmentHint);var L=this.getNextPart(G,_,N);if(L>-1){var W=G[L];return this.log("Loading part sn: "+_.sn+" p: "+W.index+" cc: "+_.cc+" of playlist ["+O.startSN+"-"+O.endSN+"] parts [0-"+L+"-"+(G.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+_.level+", target: "+parseFloat(N.toFixed(3))),this.nextLoadPosition=W.start+W.duration,this.state=E.FRAG_LOADING,this.hls.trigger(k.Events.FRAG_LOADING,{frag:_,part:G[L],targetBufferTime:N}),this.doFragPartsLoad(_,G,L,U).catch(function(Z){return H.handleFragLoadError(Z)})}else if(!_.url||this.loadedEndOfParts(G,N))return Promise.resolve(null)}}return this.log("Loading fragment "+_.sn+" cc: "+_.cc+" "+(O?"of ["+O.startSN+"-"+O.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+_.level+", target: "+parseFloat(N.toFixed(3))),Object(K.isFiniteNumber)(_.sn)&&!this.bitrateTest&&(this.nextLoadPosition=_.start+_.duration),this.state=E.FRAG_LOADING,this.hls.trigger(k.Events.FRAG_LOADING,{frag:_,targetBufferTime:N}),this.fragmentLoader.load(_,U).catch(function(Z){return H.handleFragLoadError(Z)})},i.doFragPartsLoad=function(_,O,N,U){var H=this;return new Promise(function(G,L){var W=[],Z=function oe(ie){var be=O[ie];H.fragmentLoader.loadPart(_,be,U).then(function(Je){W[be.index]=Je;var Ae=Je.part;H.hls.trigger(k.Events.FRAG_LOADED,Je);var ke=O[ie+1];if(ke&&ke.fragment===_)oe(ie+1);else return G({frag:_,part:Ae,partsLoaded:W})}).catch(L)};Z(N)})},i.handleFragLoadError=function(_){var O=_.data;return O&&O.details===D.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(O.frag,O.part):this.hls.trigger(k.Events.ERROR,O),null},i._handleTransmuxerFlush=function(_){var O=this.getCurrentContext(_);if(!O||this.state!==E.PARSING){this.fragCurrent||(this.state=E.IDLE);return}var N=O.frag,U=O.part,H=O.level,G=self.performance.now();N.stats.parsing.end=G,U&&(U.stats.parsing.end=G),this.updateLevelTiming(N,U,H,_.partial)},i.getCurrentContext=function(_){var O=this.levels,N=_.level,U=_.sn,H=_.part;if(!O||!O[N])return this.warn("Levels object was unset while buffering fragment "+U+" of level "+N+". The current chunk will not be buffered."),null;var G=O[N],L=H>-1?Object(n.getPartWith)(G,U,H):null,W=L?L.fragment:Object(n.getFragmentWithSN)(G,U,this.fragCurrent);return W?{frag:W,part:L,level:G}:null},i.bufferFragmentData=function(_,O,N,U){if(!_||this.state!==E.PARSING)return;var H=_.data1,G=_.data2,L=H;if(H&&G&&(L=Object(R.appendUint8Array)(H,G)),!L||!L.length)return;var W={type:_.type,frag:O,part:N,chunkMeta:U,parent:O.type,data:L};this.hls.trigger(k.Events.BUFFER_APPENDING,W),_.dropped&&_.independent&&!N&&this.flushBufferGap(O)},i.flushBufferGap=function(_){var O=this.media;if(!O)return;if(!B.BufferHelper.isBuffered(O,O.currentTime)){this.flushMainBuffer(0,_.start);return}var N=O.currentTime,U=B.BufferHelper.bufferInfo(O,N,0),H=_.duration,G=Math.min(this.config.maxFragLookUpTolerance*2,H*.25),L=Math.max(Math.min(_.start-G,U.end-G),N+G);_.start-L>G&&this.flushMainBuffer(L,_.start)},i.getFwdBufferInfo=function(_,O){var N=this.config,U=this.getLoadPosition();if(!Object(K.isFiniteNumber)(U))return null;var H=B.BufferHelper.bufferInfo(_,U,N.maxBufferHole);if(H.len===0&&H.nextStart!==void 0){var G=this.fragmentTracker.getBufferedFrag(U,O);if(G&&H.nextStart=N?(O.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+O.maxMaxBufferLength+"s"),!0):!1},i.getNextFragment=function(_,O){var N,U,H=O.fragments,G=H.length;if(!G)return null;var L=this.config,W=H[0].start,Z;if(O.live){var oe=L.initialLiveManifestSize;if(G-1&&NN.start&&N.loaded},i.getInitialLiveFragment=function(_,O){var N=this.fragPrevious,U=null;if(N){if(_.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+N.programDateTime),U=Object(g.findFragmentByPDT)(O,N.endProgramDateTime,this.config.maxFragLookUpTolerance)),!U){var H=N.sn+1;if(H>=_.startSN&&H<=_.endSN){var G=O[H-_.startSN];N.cc===G.cc&&(U=G,this.log("Live playlist, switching playlist, load frag with next SN: "+U.sn))}U||(U=Object(g.findFragWithCC)(O,N.cc),U&&this.log("Live playlist, switching playlist, load frag with same CC: "+U.sn))}}else{var L=this.hls.liveSyncPosition;L!==null&&(U=this.getFragmentAtPosition(L,this.bitrateTest?_.fragmentEnd:_.edge,_))}return U},i.getFragmentAtPosition=function(_,O,N){var U=this.config,H=this.fragPrevious,G=N.fragments,L=N.endSN,W=N.fragmentHint,Z=U.maxFragLookUpTolerance,oe=!!(U.lowLatencyMode&&N.partList&&W);oe&&W&&!this.bitrateTest&&(G=G.concat(W),L=W.sn);var ie;if(_O-Z?0:Z;ie=Object(g.findFragmentByPTS)(H,G,_,be)}else ie=G[G.length-1];if(ie){var Je=ie.sn-N.startSN,Ae=H&&ie.level===H.level,ke=G[Je+1],Ze=this.fragmentTracker.getState(ie);if(Ze===w.FragmentState.BACKTRACKED){ie=null;for(var Xe=Je;G[Xe]&&this.fragmentTracker.getState(G[Xe])===w.FragmentState.BACKTRACKED;)H?ie=G[Xe--]:ie=G[--Xe];ie||(ie=ke)}else H&&ie.sn===H.sn&&!oe&&(Ae&&(ie.sn=G-O.maxFragLookUpTolerance&&H<=L;if(U!==null&&N.duration>U&&(H"+_.startSN+" prev-sn: "+(H?H.sn:"na")+" fragments: "+L),ie}return W},i.waitForCdnTuneIn=function(_){var O=3;return _.live&&_.canBlockReload&&_.tuneInGoal>Math.max(_.partHoldBack,_.partTarget*O)},i.setStartPosition=function(_,O){var N=this.startPosition;if(N"+_))}}]),s}(T.default)},"./src/controller/buffer-controller.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return g});var K=I("./src/polyfills/number.ts"),T=I("./src/events.ts"),w=I("./src/utils/logger.ts"),B=I("./src/errors.ts"),x=I("./src/utils/buffer-helper.ts"),k=I("./src/utils/mediasource-helper.ts"),D=I("./src/loader/fragment.ts"),m=I("./src/controller/buffer-operation-queue.ts"),R=Object(k.getMediaSource)(),M=/([ha]vc.)(?:\.[^.,]+)+/,g=function(){function n(d){var o=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=o.hls,f=o.media,S=o.mediaSource;w.logger.log("[buffer-controller]: Media source opened"),f&&(o.updateMediaElementDuration(),u.trigger(T.Events.MEDIA_ATTACHED,{media:f})),S&&S.removeEventListener("sourceopen",o._onMediaSourceOpen),o.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=d,this._initSourceBuffer(),this.registerListeners()}var p=n.prototype;return p.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},p.destroy=function(){this.unregisterListeners(),this.details=null},p.registerListeners=function(){var o=this.hls;o.on(T.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),o.on(T.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.on(T.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.on(T.Events.BUFFER_RESET,this.onBufferReset,this),o.on(T.Events.BUFFER_APPENDING,this.onBufferAppending,this),o.on(T.Events.BUFFER_CODECS,this.onBufferCodecs,this),o.on(T.Events.BUFFER_EOS,this.onBufferEos,this),o.on(T.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),o.on(T.Events.LEVEL_UPDATED,this.onLevelUpdated,this),o.on(T.Events.FRAG_PARSED,this.onFragParsed,this),o.on(T.Events.FRAG_CHANGED,this.onFragChanged,this)},p.unregisterListeners=function(){var o=this.hls;o.off(T.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),o.off(T.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.off(T.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.off(T.Events.BUFFER_RESET,this.onBufferReset,this),o.off(T.Events.BUFFER_APPENDING,this.onBufferAppending,this),o.off(T.Events.BUFFER_CODECS,this.onBufferCodecs,this),o.off(T.Events.BUFFER_EOS,this.onBufferEos,this),o.off(T.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),o.off(T.Events.LEVEL_UPDATED,this.onLevelUpdated,this),o.off(T.Events.FRAG_PARSED,this.onFragParsed,this),o.off(T.Events.FRAG_CHANGED,this.onFragChanged,this)},p._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new m.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},p.onManifestParsed=function(o,u){var f=2;(u.audio&&!u.video||!u.altAudio)&&(f=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=f,this.details=null,w.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},p.onMediaAttaching=function(o,u){var f=this.media=u.media;if(f&&R){var S=this.mediaSource=new R;S.addEventListener("sourceopen",this._onMediaSourceOpen),S.addEventListener("sourceended",this._onMediaSourceEnded),S.addEventListener("sourceclose",this._onMediaSourceClose),f.src=self.URL.createObjectURL(S),this._objectUrl=f.src}},p.onMediaDetaching=function(){var o=this.media,u=this.mediaSource,f=this._objectUrl;if(u){if(w.logger.log("[buffer-controller]: media source detaching"),u.readyState==="open")try{u.endOfStream()}catch(S){w.logger.warn("[buffer-controller]: onMediaDetaching: "+S.message+" while calling endOfStream")}this.onBufferReset(),u.removeEventListener("sourceopen",this._onMediaSourceOpen),u.removeEventListener("sourceended",this._onMediaSourceEnded),u.removeEventListener("sourceclose",this._onMediaSourceClose),o&&(f&&self.URL.revokeObjectURL(f),o.src===f?(o.removeAttribute("src"),o.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(T.Events.MEDIA_DETACHED,void 0)},p.onBufferReset=function(){var o=this;this.getSourceBufferTypes().forEach(function(u){var f=o.sourceBuffer[u];try{f&&(o.removeBufferListeners(u),o.mediaSource&&o.mediaSource.removeSourceBuffer(f),o.sourceBuffer[u]=void 0)}catch(S){w.logger.warn("[buffer-controller]: Failed to reset the "+u+" buffer",S)}}),this._initSourceBuffer()},p.onBufferCodecs=function(o,u){var f=this,S=this.getSourceBufferTypes().length;if(Object.keys(u).forEach(function(b){if(S){var v=f.tracks[b];if(v&&typeof v.buffer.changeType=="function"){var P=u[b],E=P.codec,h=P.levelCodec,c=P.container,s=(v.levelCodec||v.codec).replace(M,"$1"),i=(h||E).replace(M,"$1");if(s!==i){var C=c+";codecs="+(h||E);f.appendChangeType(b,C)}}}else f.pendingTracks[b]=u[b]}),S)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},p.appendChangeType=function(o,u){var f=this,S=this.operationQueue,b={execute:function(){var P=f.sourceBuffer[o];P&&(w.logger.log("[buffer-controller]: changing "+o+" sourceBuffer type to "+u),P.changeType(u)),S.shiftAndExecuteNext(o)},onStart:function(){},onComplete:function(){},onError:function(P){w.logger.warn("[buffer-controller]: Failed to change "+o+" SourceBuffer type",P)}};S.append(b,o)},p.onBufferAppending=function(o,u){var f=this,S=this.hls,b=this.operationQueue,v=this.tracks,P=u.data,E=u.type,h=u.frag,c=u.part,s=u.chunkMeta,i=s.buffering[E],C=self.performance.now();i.start=C;var _=h.stats.buffering,O=c?c.stats.buffering:null;_.start===0&&(_.start=C),O&&O.start===0&&(O.start=C);var N=v.audio,U=E==="audio"&&s.id===1&&(N==null?void 0:N.container)==="audio/mpeg",H={execute:function(){if(i.executeStart=self.performance.now(),U){var L=f.sourceBuffer[E];if(L){var W=h.start-L.timestampOffset;Math.abs(W)>=.1&&(w.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+h.start+" (delta: "+W+") sn: "+h.sn+")"),L.timestampOffset=h.start)}}f.appendExecutor(P,E)},onStart:function(){},onComplete:function(){var L=self.performance.now();i.executeEnd=i.end=L,_.first===0&&(_.first=L),O&&O.first===0&&(O.first=L);var W=f.sourceBuffer,Z={};for(var oe in W)Z[oe]=x.BufferHelper.getBuffered(W[oe]);f.appendError=0,f.hls.trigger(T.Events.BUFFER_APPENDED,{type:E,frag:h,part:c,chunkMeta:s,parent:h.type,timeRanges:Z})},onError:function(L){w.logger.error("[buffer-controller]: Error encountered while trying to append to the "+E+" SourceBuffer",L);var W={type:B.ErrorTypes.MEDIA_ERROR,parent:h.type,details:B.ErrorDetails.BUFFER_APPEND_ERROR,err:L,fatal:!1};L.code===DOMException.QUOTA_EXCEEDED_ERR?W.details=B.ErrorDetails.BUFFER_FULL_ERROR:(f.appendError++,W.details=B.ErrorDetails.BUFFER_APPEND_ERROR,f.appendError>S.config.appendErrorMaxRetry&&(w.logger.error("[buffer-controller]: Failed "+S.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),W.fatal=!0)),S.trigger(T.Events.ERROR,W)}};b.append(H,E)},p.onBufferFlushing=function(o,u){var f=this,S=this.operationQueue,b=function(P){return{execute:f.removeExecutor.bind(f,P,u.startOffset,u.endOffset),onStart:function(){},onComplete:function(){f.hls.trigger(T.Events.BUFFER_FLUSHED,{type:P})},onError:function(h){w.logger.warn("[buffer-controller]: Failed to remove from "+P+" SourceBuffer",h)}}};u.type?S.append(b(u.type),u.type):this.getSourceBufferTypes().forEach(function(v){S.append(b(v),v)})},p.onFragParsed=function(o,u){var f=this,S=u.frag,b=u.part,v=[],P=b?b.elementaryStreams:S.elementaryStreams;P[D.ElementaryStreamTypes.AUDIOVIDEO]?v.push("audiovideo"):(P[D.ElementaryStreamTypes.AUDIO]&&v.push("audio"),P[D.ElementaryStreamTypes.VIDEO]&&v.push("video"));var E=function(){var c=self.performance.now();S.stats.buffering.end=c,b&&(b.stats.buffering.end=c);var s=b?b.stats:S.stats;f.hls.trigger(T.Events.FRAG_BUFFERED,{frag:S,part:b,stats:s,id:S.type})};v.length===0&&w.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+S.type+" level: "+S.level+" sn: "+S.sn),this.blockBuffers(E,v)},p.onFragChanged=function(o,u){this.flushBackBuffer()},p.onBufferEos=function(o,u){var f=this,S=this.getSourceBufferTypes().reduce(function(b,v){var P=f.sourceBuffer[v];return(!u.type||u.type===v)&&(P&&!P.ended&&(P.ended=!0,w.logger.log("[buffer-controller]: "+v+" sourceBuffer now EOS"))),b&&!!(!P||P.ended)},!0);S&&this.blockBuffers(function(){var b=f.mediaSource;if(!b||b.readyState!=="open")return;b.endOfStream()})},p.onLevelUpdated=function(o,u){var f=u.details;if(!f.fragments.length)return;this.details=f,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},p.flushBackBuffer=function(){var o=this.hls,u=this.details,f=this.media,S=this.sourceBuffer;if(!f||u===null)return;var b=this.getSourceBufferTypes();if(!b.length)return;var v=u.live&&o.config.liveBackBufferLength!==null?o.config.liveBackBufferLength:o.config.backBufferLength;if(!Object(K.isFiniteNumber)(v)||v<0)return;var P=f.currentTime,E=u.levelTargetDuration,h=Math.max(v,E),c=Math.floor(P/E)*E-h;b.forEach(function(s){var i=S[s];if(i){var C=x.BufferHelper.getBuffered(i);C.length>0&&c>C.start(0)&&(o.trigger(T.Events.BACK_BUFFER_REACHED,{bufferEnd:c}),u.live&&o.trigger(T.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:c}),o.trigger(T.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:c,type:s}))}})},p.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var o=this.details,u=this.hls,f=this.media,S=this.mediaSource,b=o.fragments[0].start+o.totalduration,v=f.duration,P=Object(K.isFiniteNumber)(S.duration)?S.duration:0;o.live&&u.config.liveDurationInfinity?(w.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),S.duration=Infinity,this.updateSeekableRange(o)):(b>P&&b>v||!Object(K.isFiniteNumber)(v))&&(w.logger.log("[buffer-controller]: Updating Media Source duration to "+b.toFixed(3)),S.duration=b)},p.updateSeekableRange=function(o){var u=this.mediaSource,f=o.fragments,S=f.length;if(S&&o.live&&u!==null&&u!==void 0&&u.setLiveSeekableRange){var b=Math.max(0,f[0].start),v=Math.max(b,b+o.totalduration);u.setLiveSeekableRange(b,v)}},p.checkPendingTracks=function(){var o=this.bufferCodecEventsExpected,u=this.operationQueue,f=this.pendingTracks,S=Object.keys(f).length;if(S&&!o||S===2){this.createSourceBuffers(f),this.pendingTracks={};var b=this.getSourceBufferTypes();if(b.length===0){this.hls.trigger(T.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}b.forEach(function(v){u.executeNext(v)})}},p.createSourceBuffers=function(o){var u=this.sourceBuffer,f=this.mediaSource;if(!f)throw Error("createSourceBuffers called when mediaSource was null");var S=0;for(var b in o)if(!u[b]){var v=o[b];if(!v)throw Error("source buffer exists for track "+b+", however track does not");var P=v.levelCodec||v.codec,E=v.container+";codecs="+P;w.logger.log("[buffer-controller]: creating sourceBuffer("+E+")");try{var h=u[b]=f.addSourceBuffer(E),c=b;this.addBufferListener(c,"updatestart",this._onSBUpdateStart),this.addBufferListener(c,"updateend",this._onSBUpdateEnd),this.addBufferListener(c,"error",this._onSBUpdateError),this.tracks[b]={buffer:h,codec:P,container:v.container,levelCodec:v.levelCodec,id:v.id},S++}catch(s){w.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+s.message),this.hls.trigger(T.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:s,mimeType:E})}}S&&this.hls.trigger(T.Events.BUFFER_CREATED,{tracks:this.tracks})},p._onSBUpdateStart=function(o){var u=this.operationQueue,f=u.current(o);f.onStart()},p._onSBUpdateEnd=function(o){var u=this.operationQueue,f=u.current(o);f.onComplete(),u.shiftAndExecuteNext(o)},p._onSBUpdateError=function(o,u){w.logger.error("[buffer-controller]: "+o+" SourceBuffer error",u),this.hls.trigger(T.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var f=this.operationQueue.current(o);f&&f.onError(u)},p.removeExecutor=function(o,u,f){var S=this.media,b=this.mediaSource,v=this.operationQueue,P=this.sourceBuffer,E=P[o];if(!S||!b||!E){w.logger.warn("[buffer-controller]: Attempting to remove from the "+o+" SourceBuffer, but it does not exist"),v.shiftAndExecuteNext(o);return}var h=Object(K.isFiniteNumber)(S.duration)?S.duration:Infinity,c=Object(K.isFiniteNumber)(b.duration)?b.duration:Infinity,s=Math.max(0,u),i=Math.min(f,h,c);i>s?(w.logger.log("[buffer-controller]: Removing ["+s+","+i+"] from the "+o+" SourceBuffer"),console.assert(!E.updating,o+" sourceBuffer must not be updating"),E.remove(s,i)):v.shiftAndExecuteNext(o)},p.appendExecutor=function(o,u){var f=this.operationQueue,S=this.sourceBuffer,b=S[u];if(!b){w.logger.warn("[buffer-controller]: Attempting to append to the "+u+" SourceBuffer, but it does not exist"),f.shiftAndExecuteNext(u);return}b.ended=!1,console.assert(!b.updating,u+" sourceBuffer must not be updating"),b.appendBuffer(o)},p.blockBuffers=function(o,u){var f=this;if(u===void 0&&(u=this.getSourceBufferTypes()),!u.length){w.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(o);return}var S=this.operationQueue,b=u.map(function(v){return S.appendBlocker(v)});Promise.all(b).then(function(){o(),u.forEach(function(v){var P=f.sourceBuffer[v];(!P||!P.updating)&&S.shiftAndExecuteNext(v)})})},p.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},p.addBufferListener=function(o,u,f){var S=this.sourceBuffer[o];if(!S)return;var b=f.bind(this,o);this.listeners[o].push({event:u,listener:b}),S.addEventListener(u,b)},p.removeBufferListeners=function(o){var u=this.sourceBuffer[o];if(!u)return;this.listeners[o].forEach(function(f){u.removeEventListener(f.event,f.listener)})},n}()},"./src/controller/buffer-operation-queue.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return T});var K=I("./src/utils/logger.ts"),T=function(){function w(x){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=x}var B=w.prototype;return B.append=function(k,D){var m=this.queues[D];m.push(k),m.length===1&&this.buffers[D]&&this.executeNext(D)},B.insertAbort=function(k,D){var m=this.queues[D];m.unshift(k),this.executeNext(D)},B.appendBlocker=function(k){var D,m=new Promise(function(M){D=M}),R={execute:D,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(R,k),m},B.executeNext=function(k){var D=this.buffers,m=this.queues,R=D[k],M=m[k];if(M.length){var g=M[0];try{g.execute()}catch(n){K.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),g.onError(n),(!R||!R.updating)&&(M.shift(),this.executeNext(k))}}},B.shiftAndExecuteNext=function(k){this.queues[k].shift(),this.executeNext(k)},B.current=function(k){return this.queues[k][0]},w}()},"./src/controller/cap-level-controller.ts":function(re,z,I){"use strict";I.r(z);var K=I("./src/events.ts");function T(x,k){for(var D=0;D0&&this.mediaWidth>0){var m=this.hls.levels;if(m.length){var R=this.hls;R.autoLevelCapping=this.getMaxLevel(m.length-1),R.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=R.autoLevelCapping}}},k.getMaxLevel=function(m){var R=this,M=this.hls.levels;if(!M.length)return-1;var g=M.filter(function(n,p){return x.isLevelAllowed(p,R.restrictedLevels)&&p<=m});return this.clientRect=null,x.getMaxLevelByMediaSize(g,this.mediaWidth,this.mediaHeight)},k.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()},k.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},k.getDimensions=function(){if(this.clientRect)return this.clientRect;var m=this.media,R={width:0,height:0};if(m){var M=m.getBoundingClientRect();R.width=M.width,R.height=M.height,!R.width&&!R.height&&(R.width=M.right-M.left||m.width||0,R.height=M.bottom-M.top||m.height||0)}return this.clientRect=R,R},x.isLevelAllowed=function(m,R){return R===void 0&&(R=[]),R.indexOf(m)===-1},x.getMaxLevelByMediaSize=function(m,R,M){if(!m||!m.length)return-1;for(var g=function(u,f){return f?u.width!==f.width||u.height!==f.height:!0},n=m.length-1,p=0;p=R||d.height>=M)&&g(d,m[p+1])){n=p;break}}return n},w(x,[{key:"mediaWidth",get:function(){return this.getDimensions().width*x.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*x.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var m=1;try{m=self.devicePixelRatio}catch(R){}return m}}]),x}();z.default=B},"./src/controller/cmcd-controller.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return g});var K=I("./src/events.ts"),T=I("./src/types/cmcd.ts"),w=I("./src/utils/buffer-helper.ts"),B=I("./src/utils/logger.ts");function x(n,p){for(var d=0;d=n.length?{done:!0}:{done:!1,value:n[o++]}}}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 m(n,p){if(!n)return;if(typeof n=="string")return R(n,p);var d=Object.prototype.toString.call(n).slice(8,-1);if(d==="Object"&&n.constructor&&(d=n.constructor.name),d==="Map"||d==="Set")return Array.from(n);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return R(n,p)}function R(n,p){(p==null||p>n.length)&&(p=n.length);for(var d=0,o=new Array(p);du&&(u=v.bitrate)}return u>0?u:NaN},p.getBufferLength=function(o){var u=this.hls.media,f=o===T.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!f||!u)return NaN;var S=w.BufferHelper.bufferInfo(f,u.currentTime,this.config.maxBufferHole);return S.len*1e3},p.createPlaylistLoader=function(){var o=this.config.pLoader,u=this.applyPlaylistData,f=o||this.config.loader;return function(){function S(v){this.loader=void 0,this.loader=new f(v)}var b=S.prototype;return b.destroy=function(){this.loader.destroy()},b.abort=function(){this.loader.abort()},b.load=function(P,E,h){u(P),this.loader.load(P,E,h)},k(S,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),S}()},p.createFragmentLoader=function(){var o=this.config.fLoader,u=this.applyFragmentData,f=o||this.config.loader;return function(){function S(v){this.loader=void 0,this.loader=new f(v)}var b=S.prototype;return b.destroy=function(){this.loader.destroy()},b.abort=function(){this.loader.abort()},b.load=function(P,E,h){u(P),this.loader.load(P,E,h)},k(S,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),S}()},n.uuid=function(){var o=URL.createObjectURL(new Blob),u=o.toString();return URL.revokeObjectURL(o),u.substr(u.lastIndexOf("/")+1)},n.serialize=function(o){for(var u=[],f=function(U){return!Number.isNaN(U)&&U!=null&&U!==""&&U!==!1},S=function(U){return Math.round(U)},b=function(U){return S(U/100)*100},v=function(U){return encodeURIComponent(U)},P={br:S,d:S,bl:b,dl:b,mtp:b,nor:v,rtp:b,tb:S},E=Object.keys(o||{}).sort(),h=D(E),c;!(c=h()).done;){var s=c.value,i=o[s];if(!f(i))continue;if(s==="v"&&i===1)continue;if(s=="pr"&&i===1)continue;var C=P[s];C&&(i=C(i));var _=typeof i,O=void 0;s==="ot"||s==="sf"||s==="st"?O=s+"="+i:_==="boolean"?O=s:_==="number"?O=s+"="+i:O=s+"="+JSON.stringify(i),u.push(O)}return u.join(",")},n.toHeaders=function(o){for(var u=Object.keys(o),f={},S=["Object","Request","Session","Status"],b=[{},{},{},{}],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},P=0,E=u;PD){this.hls.trigger(K.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var v=D-this._requestLicenseFailureCount+1;w.logger.warn("Retrying license request, "+v+" attempts left"),this._requestLicense(u,f)}break}},n._generateLicenseRequestChallenge=function(d,o){switch(d.mediaKeySystemDomain){case B.KeySystems.WIDEVINE:return o}throw new Error("unsupported key-system: "+d.mediaKeySystemDomain)},n._requestLicense=function(d,o){w.logger.log("Requesting content license for key-system");var u=this._mediaKeysList[0];if(!u){w.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(K.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var f=this.getLicenseServerUrl(u.mediaKeySystemDomain),S=this._createLicenseXhr(f,d,o);w.logger.log("Sending license request to URL: "+f);var b=this._generateLicenseRequestChallenge(u,d);S.send(b)}catch(v){w.logger.error("Failure requesting DRM license: "+v),this.hls.trigger(K.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},n.onMediaAttached=function(d,o){if(!this._emeEnabled)return;var u=o.media;this._media=u,u.addEventListener("encrypted",this._onMediaEncrypted)},n.onMediaDetached=function(){var d=this._media,o=this._mediaKeysList;if(!d)return;d.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(o.map(function(u){if(u.mediaKeysSession)return u.mediaKeysSession.close().catch(function(){})})).then(function(){return d.setMediaKeys(null)}).catch(function(){})},n.onManifestParsed=function(d,o){if(!this._emeEnabled)return;var u=o.levels.map(function(S){return S.audioCodec}).filter(function(S){return!!S}),f=o.levels.map(function(S){return S.videoCodec}).filter(function(S){return!!S});this._attemptKeySystemAccess(B.KeySystems.WIDEVINE,u,f)},k(g,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),g}();z.default=M},"./src/controller/fps-controller.ts":function(re,z,I){"use strict";I.r(z);var K=I("./src/events.ts"),T=I("./src/utils/logger.ts"),w=function(){function B(k){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=k,this.registerListeners()}var x=B.prototype;return x.setStreamController=function(D){this.streamController=D},x.registerListeners=function(){this.hls.on(K.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},x.unregisterListeners=function(){this.hls.off(K.Events.MEDIA_ATTACHING,this.onMediaAttaching)},x.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},x.onMediaAttaching=function(D,m){var R=this.hls.config;if(R.capLevelOnFPSDrop){var M=m.media instanceof self.HTMLVideoElement?m.media:null;this.media=M,M&&typeof M.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),R.fpsDroppedMonitoringPeriod)}},x.checkFPS=function(D,m,R){var M=performance.now();if(m){if(this.lastTime){var g=M-this.lastTime,n=R-this.lastDroppedFrames,p=m-this.lastDecodedFrames,d=1e3*n/g,o=this.hls;if(o.trigger(K.Events.FPS_DROP,{currentDropped:n,currentDecoded:p,totalDroppedFrames:R}),d>0&&n>o.config.fpsDroppedMonitoringThreshold*p){var u=o.currentLevel;T.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+u),u>0&&(o.autoLevelCapping===-1||o.autoLevelCapping>=u)&&(u=u-1,o.trigger(K.Events.FPS_DROP_LEVEL_CAPPING,{level:u,droppedLevel:o.currentLevel}),o.autoLevelCapping=u,this.streamController.nextLevelSwitch())}}this.lastTime=M,this.lastDroppedFrames=R,this.lastDecodedFrames=m}},x.checkFPSInterval=function(){var D=this.media;if(D)if(this.isVideoPlaybackQualityAvailable){var m=D.getVideoPlaybackQuality();this.checkFPS(D,m.totalVideoFrames,m.droppedVideoFrames)}else this.checkFPS(D,D.webkitDecodedFrameCount,D.webkitDroppedFrameCount)},B}();z.default=w},"./src/controller/fragment-finders.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"findFragmentByPDT",function(){return w}),I.d(z,"findFragmentByPTS",function(){return B}),I.d(z,"fragmentWithinToleranceTest",function(){return x}),I.d(z,"pdtWithinToleranceTest",function(){return k}),I.d(z,"findFragWithCC",function(){return D});var K=I("./src/polyfills/number.ts"),T=I("./src/utils/binary-search.ts");function w(m,R,M){if(R===null||!Array.isArray(m)||!m.length||!Object(K.isFiniteNumber)(R))return null;var g=m[0].programDateTime;if(R<(g||0))return null;var n=m[m.length-1].endProgramDateTime;if(R>=(n||0))return null;M=M||0;for(var p=0;pm&&M.start?-1:0}function k(m,R,M){var g=Math.min(R,M.duration+(M.deltaPTS?M.deltaPTS:0))*1e3,n=M.endProgramDateTime||0;return n-g>m}function D(m,R){return T.default.search(m,function(M){return M.ccR?-1:0})}},"./src/controller/fragment-tracker.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"FragmentState",function(){return w}),I.d(z,"FragmentTracker",function(){return B});var K=I("./src/events.ts"),T=I("./src/types/loader.ts"),w;(function(D){D.NOT_LOADED="NOT_LOADED",D.BACKTRACKED="BACKTRACKED",D.APPENDING="APPENDING",D.PARTIAL="PARTIAL",D.OK="OK"})(w||(w={}));var B=function(){function D(R){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=R,this._registerListeners()}var m=D.prototype;return m._registerListeners=function(){var M=this.hls;M.on(K.Events.BUFFER_APPENDED,this.onBufferAppended,this),M.on(K.Events.FRAG_BUFFERED,this.onFragBuffered,this),M.on(K.Events.FRAG_LOADED,this.onFragLoaded,this)},m._unregisterListeners=function(){var M=this.hls;M.off(K.Events.BUFFER_APPENDED,this.onBufferAppended,this),M.off(K.Events.FRAG_BUFFERED,this.onFragBuffered,this),M.off(K.Events.FRAG_LOADED,this.onFragLoaded,this)},m.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},m.getAppendedFrag=function(M,g){if(g===T.PlaylistLevelType.MAIN){var n=this.activeFragment,p=this.activeParts;if(!n)return null;if(p)for(var d=p.length;d--;){var o=p[d],u=o?o.end:n.appendedPTS;if(o.start<=M&&u!==void 0&&M<=u)return d>9&&(this.activeParts=p.slice(d-9)),o}else if(n.start<=M&&n.appendedPTS!==void 0&&M<=n.appendedPTS)return n}return this.getBufferedFrag(M,g)},m.getBufferedFrag=function(M,g){for(var n=this.fragments,p=Object.keys(n),d=p.length;d--;){var o=n[p[d]];if((o==null?void 0:o.body.type)===g&&o.buffered){var u=o.body;if(u.start<=M&&M<=u.end)return u}}return null},m.detectEvictedFragments=function(M,g,n){var p=this;Object.keys(this.fragments).forEach(function(d){var o=p.fragments[d];if(!o)return;if(!o.buffered){o.body.type===n&&p.removeFragment(o.body);return}var u=o.range[M];if(!u)return;u.time.some(function(f){var S=!p.isTimeBuffered(f.startPTS,f.endPTS,g);return S&&p.removeFragment(o.body),S})})},m.detectPartialFragments=function(M){var g=this,n=this.timeRanges,p=M.frag,d=M.part;if(!n||p.sn==="initSegment")return;var o=k(p),u=this.fragments[o];if(!u)return;Object.keys(n).forEach(function(f){var S=p.elementaryStreams[f];if(!S)return;var b=n[f],v=d!==null||S.partial===!0;u.range[f]=g.getBufferedTimes(p,d,v,b)}),u.backtrack=u.loaded=null,Object.keys(u.range).length?u.buffered=!0:this.removeFragment(u.body)},m.fragBuffered=function(M){var g=k(M),n=this.fragments[g];n&&(n.backtrack=n.loaded=null,n.buffered=!0)},m.getBufferedTimes=function(M,g,n,p){for(var d={time:[],partial:n},o=g?g.start:M.start,u=g?g.end:M.end,f=M.minEndPTS||u,S=M.maxStartPTS||o,b=0;b=v&&f<=P){d.time.push({startPTS:Math.max(o,p.start(b)),endPTS:Math.min(u,p.end(b))});break}else if(ov)d.partial=!0,d.time.push({startPTS:Math.max(o,p.start(b)),endPTS:Math.min(u,p.end(b))});else if(u<=v)break}return d},m.getPartialFragment=function(M){var g=null,n,p,d,o=0,u=this.bufferPadding,f=this.fragments;return Object.keys(f).forEach(function(S){var b=f[S];if(!b)return;x(b)&&(p=b.body.start-u,d=b.body.end+u,M>=p&&M<=d&&(n=Math.min(M-p,d-M),o<=n&&(g=b.body,o=n)))}),g},m.getState=function(M){var g=k(M),n=this.fragments[g];return n?n.buffered?x(n)?w.PARTIAL:w.OK:n.backtrack?w.BACKTRACKED:w.APPENDING:w.NOT_LOADED},m.backtrack=function(M,g){var n=k(M),p=this.fragments[n];if(!p||p.backtrack)return null;var d=p.backtrack=g||p.loaded;return p.loaded=null,d},m.getBacktrackData=function(M){var g=k(M),n=this.fragments[g];if(n){var p,d=n.backtrack;if(d!=null&&(p=d.payload)!==null&&p!==void 0&&p.byteLength)return d;this.removeFragment(M)}return null},m.isTimeBuffered=function(M,g,n){for(var p,d,o=0;o=p&&g<=d)return!0;if(g<=p)return!1}return!1},m.onFragLoaded=function(M,g){var n=g.frag,p=g.part;if(n.sn==="initSegment"||n.bitrateTest||p)return;var d=k(n);this.fragments[d]={body:n,loaded:g,backtrack:null,buffered:!1,range:Object.create(null)}},m.onBufferAppended=function(M,g){var n=this,p=g.frag,d=g.part,o=g.timeRanges;if(p.type===T.PlaylistLevelType.MAIN)if(this.activeFragment=p,d){var u=this.activeParts;u||(this.activeParts=u=[]),u.push(d)}else this.activeParts=null;this.timeRanges=o,Object.keys(o).forEach(function(f){var S=o[f];if(n.detectEvictedFragments(f,S),!d)for(var b=0;bM&&p.removeFragment(u)}})},m.removeFragment=function(M){var g=k(M);M.stats.loaded=0,M.clearElementaryStreamInfo(),delete this.fragments[g]},m.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},D}();function x(D){var m,R;return D.buffered&&(((m=D.range.video)===null||m===void 0?void 0:m.partial)||((R=D.range.audio)===null||R===void 0?void 0:R.partial))}function k(D){return D.type+"_"+D.level+"_"+D.urlId+"_"+D.sn}},"./src/controller/gap-controller.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"STALL_MINIMUM_DURATION_MS",function(){return x}),I.d(z,"MAX_START_GAP_JUMP",function(){return k}),I.d(z,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return D}),I.d(z,"SKIP_BUFFER_RANGE_START",function(){return m}),I.d(z,"default",function(){return R});var K=I("./src/utils/buffer-helper.ts"),T=I("./src/errors.ts"),w=I("./src/events.ts"),B=I("./src/utils/logger.ts"),x=250,k=2,D=.1,m=.05,R=function(){function M(n,p,d,o){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=n,this.media=p,this.fragmentTracker=d,this.hls=o}var g=M.prototype;return g.destroy=function(){this.hls=this.fragmentTracker=this.media=null},g.poll=function(p){var d=this.config,o=this.media,u=this.stalled,f=o.currentTime,S=o.seeking,b=this.seeking&&!S,v=!this.seeking&&S;if(this.seeking=S,f!==p){if(this.moved=!0,u!==null){if(this.stallReported){var P=self.performance.now()-u;B.logger.warn("playback not stuck anymore @"+f+", after "+Math.round(P)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((v||b)&&(this.stalled=null),o.paused||o.ended||o.playbackRate===0||!K.BufferHelper.getBuffered(o).length)return;var E=K.BufferHelper.bufferInfo(o,f,0),h=E.len>0,c=E.nextStart||0;if(!h&&!c)return;if(S){var s=E.len>k,i=!c||c-f>k&&!this.fragmentTracker.getPartialFragment(f);if(s||i)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var C,_=Math.max(c,E.start||0)-f,O=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,N=O==null||((C=O.details)===null||C===void 0)?void 0:C.live,U=N?O.details.targetduration*2:k;if(_>0&&_<=U){this._trySkipBufferHole(null);return}}var H=self.performance.now();if(u===null){this.stalled=H;return}var G=H-u;!S&&G>=x&&this._reportStall(E.len);var L=K.BufferHelper.bufferInfo(o,f,d.maxBufferHole);this._tryFixBufferStall(L,G)},g._tryFixBufferStall=function(p,d){var o=this.config,u=this.fragmentTracker,f=this.media,S=f.currentTime,b=u.getPartialFragment(S);if(b){var v=this._trySkipBufferHole(b);if(v)return}p.len>o.maxBufferHole&&d>o.highBufferWatchdogPeriod*1e3&&(B.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},g._reportStall=function(p){var d=this.hls,o=this.media,u=this.stallReported;u||(this.stallReported=!0,B.logger.warn("Playback stalling at @"+o.currentTime+" due to low buffer (buffer="+p+")"),d.trigger(w.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:p}))},g._trySkipBufferHole=function(p){for(var d=this.config,o=this.hls,u=this.media,f=u.currentTime,S=0,b=K.BufferHelper.getBuffered(u),v=0;v=S&&f.05&&this.forwardBufferLength>1){var v=Math.min(2,Math.max(1,o)),P=Math.round(2/(1+Math.exp(-.75*f-this.edgeStalled))*20)/20;M.playbackRate=Math.min(v,Math.max(1,P))}else M.playbackRate!==1&&M.playbackRate!==0&&(M.playbackRate=1)},m.estimateLiveEdge=function(){var M=this.levelDetails;return M===null?null:M.edge+M.age},m.computeLatency=function(){var M=this.estimateLiveEdge();return M===null?null:M-this.currentTime},x(D,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var M=this.config,g=this.levelDetails;return M.liveMaxLatencyDuration!==void 0?M.liveMaxLatencyDuration:g?M.liveMaxLatencyDurationCount*g.targetduration:0}},{key:"targetLatency",get:function(){var M=this.levelDetails;if(M===null)return null;var g=M.holdBack,n=M.partHoldBack,p=M.targetduration,d=this.config,o=d.liveSyncDuration,u=d.liveSyncDurationCount,f=d.lowLatencyMode,S=this.hls.userConfig,b=f&&n||g;(S.liveSyncDuration||S.liveSyncDurationCount||b===0)&&(b=o!==void 0?o:u*p);var v=p,P=1;return b+Math.min(this.stallCount*P,v)}},{key:"liveSyncPosition",get:function(){var M=this.estimateLiveEdge(),g=this.targetLatency,n=this.levelDetails;if(M===null||g===null||n===null)return null;var p=n.edge,d=M-g-this.edgeStalled,o=p-n.totalduration,u=p-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(o,d),u)}},{key:"drift",get:function(){var M=this.levelDetails;return M===null?1:M.drift}},{key:"edgeStalled",get:function(){var M=this.levelDetails;if(M===null)return 0;var g=(this.config.lowLatencyMode&&M.partTarget||M.targetduration)*3;return Math.max(M.age-g,0)}},{key:"forwardBufferLength",get:function(){var M=this.media,g=this.levelDetails;if(!M||!g)return 0;var n=M.buffered.length;return n?M.buffered.end(n-1):g.edge-this.currentTime}}]),D}()},"./src/controller/level-controller.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return d});var K=I("./src/types/level.ts"),T=I("./src/events.ts"),w=I("./src/errors.ts"),B=I("./src/utils/codecs.ts"),x=I("./src/controller/level-helper.ts"),k=I("./src/controller/base-playlist-controller.ts"),D=I("./src/types/loader.ts");function m(){return m=Object.assign||function(o){for(var u=1;u0){c=P[0].bitrate,P.sort(function(G,L){return G.bitrate-L.bitrate}),this._levels=P;for(var N=0;Nthis.hls.config.fragLoadingMaxRetry&&(s=v.frag.level)):s=v.frag.level}break;case w.ErrorDetails.LEVEL_LOAD_ERROR:case w.ErrorDetails.LEVEL_LOAD_TIMEOUT:P&&(P.deliveryDirectives&&(c=!1),s=P.level),h=!0;break;case w.ErrorDetails.REMUX_ALLOC_ERROR:s=v.level,h=!0;break}s!==void 0&&this.recoverLevel(v,s,h,c)},f.recoverLevel=function(b,v,P,E){var h=b.details,c=this._levels[v];if(c.loadError++,P){var s=this.retryLoadingOrFail(b);if(s)b.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(E){var i=c.url.length;if(i>1&&c.loadError1){var E=(v.urlId+1)%P;this.warn("Switching to redundant URL-id "+E),this._levels.forEach(function(h){h.urlId=E}),this.level=b}},f.onFragLoaded=function(b,v){var P=v.frag;if(P!==void 0&&P.type===D.PlaylistLevelType.MAIN){var E=this._levels[P.level];E!==void 0&&(E.fragmentError=0,E.loadError=0)}},f.onLevelLoaded=function(b,v){var P,E=v.level,h=v.details,c=this._levels[E];if(!c){var s;this.warn("Invalid level index "+E),(s=v.deliveryDirectives)!==null&&s!==void 0&&s.skip&&(h.deltaUpdateFailed=!0);return}E===this.currentLevelIndex?(c.fragmentError===0&&(c.loadError=0,this.retryCount=0),this.playlistLoaded(E,v,c.details)):(P=v.deliveryDirectives)!==null&&P!==void 0&&P.skip&&(h.deltaUpdateFailed=!0)},f.onAudioTrackSwitched=function(b,v){var P=this.hls.levels[this.currentLevelIndex];if(!P)return;if(P.audioGroupIds){for(var E=-1,h=this.hls.audioTracks[v.id].groupId,c=0;c0){var E=P.urlId,h=P.url[E];if(b)try{h=b.addDirectives(h)}catch(c){this.warn("Could not construct new URL with HLS Delivery Directives: "+c)}this.log("Attempt loading level index "+v+(b?" at sn "+b.msn+" part "+b.part:"")+" with URL-id "+E+" "+h),this.clearTimer(),this.hls.trigger(T.Events.LEVEL_LOADING,{url:h,level:v,id:E,deliveryDirectives:b||null})}},f.removeLevel=function(b,v){var P=function(c,s){return s!==v},E=this._levels.filter(function(h,c){return c!==b?!0:h.url.length>1&&v!==void 0?(h.url=h.url.filter(P),h.audioGroupIds&&(h.audioGroupIds=h.audioGroupIds.filter(P)),h.textGroupIds&&(h.textGroupIds=h.textGroupIds.filter(P)),h.urlId=0,!0):!1}).map(function(h,c){var s=h.details;return s!=null&&s.fragments&&s.fragments.forEach(function(i){i.level=c}),h});this._levels=E,this.hls.trigger(T.Events.LEVELS_UPDATED,{levels:E})},M(u,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(b){var v,P=this._levels;if(P.length===0)return;if(this.currentLevelIndex===b&&(v=P[b])!==null&&v!==void 0&&v.details)return;if(b<0||b>=P.length){var E=b<0;if(this.hls.trigger(T.Events.ERROR,{type:w.ErrorTypes.OTHER_ERROR,details:w.ErrorDetails.LEVEL_SWITCH_ERROR,level:b,fatal:E,reason:"invalid level idx"}),E)return;b=Math.min(b,P.length-1)}this.clearTimer();var h=this.currentLevelIndex,c=P[h],s=P[b];this.log("switching to level "+b+" from "+h),this.currentLevelIndex=b;var i=m({},s,{level:b,maxBitrate:s.maxBitrate,uri:s.uri,urlId:s.urlId});delete i._urlId,this.hls.trigger(T.Events.LEVEL_SWITCHING,i);var C=s.details;if(!C||C.live){var _=this.switchParams(s.uri,c==null?void 0:c.details);this.loadPlaylist(_)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(b){this.manualLevelIndex=b,this._startLevel===void 0&&(this._startLevel=b),b!==-1&&(this.level=b)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(b){this._firstLevel=b}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var b=this.hls.config.startLevel;return b!==void 0?b:this._firstLevel}else return this._startLevel},set:function(b){this._startLevel=b}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(b){this.level=b,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=b)}}]),u}(k.default)},"./src/controller/level-helper.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"addGroupId",function(){return w}),I.d(z,"assignTrackIdsByGroup",function(){return B}),I.d(z,"updatePTS",function(){return x}),I.d(z,"updateFragPTSDTS",function(){return D}),I.d(z,"mergeDetails",function(){return m}),I.d(z,"mapPartIntersection",function(){return R}),I.d(z,"mapFragmentIntersection",function(){return M}),I.d(z,"adjustSliding",function(){return g}),I.d(z,"addSliding",function(){return n}),I.d(z,"computeReloadInterval",function(){return p}),I.d(z,"getFragmentWithSN",function(){return d}),I.d(z,"getPartWith",function(){return o});var K=I("./src/polyfills/number.ts"),T=I("./src/utils/logger.ts");function w(u,f,S){switch(f){case"audio":u.audioGroupIds||(u.audioGroupIds=[]),u.audioGroupIds.push(S);break;case"text":u.textGroupIds||(u.textGroupIds=[]),u.textGroupIds.push(S);break}}function B(u){var f={};u.forEach(function(S){var b=S.groupId||"";S.id=f[b]=f[b]||0,f[b]++})}function x(u,f,S){var b=u[f],v=u[S];k(b,v)}function k(u,f){var S=f.startPTS;if(Object(K.isFiniteNumber)(S)){var b=0,v;f.sn>u.sn?(b=S-u.start,v=u):(b=u.start-S,v=f),v.duration!==b&&(v.duration=b)}else if(f.sn>u.sn){var P=u.cc===f.cc;P&&u.minEndPTS?f.start=u.start+(u.minEndPTS-u.start):f.start=u.start+u.duration}else f.start=Math.max(u.start-f.duration,0)}function D(u,f,S,b,v,P){var E=b-S;E<=0&&(T.logger.warn("Fragment should have a positive duration",f),b=S+f.duration,P=v+f.duration);var h=S,c=b,s=f.startPTS,i=f.endPTS;if(Object(K.isFiniteNumber)(s)){var C=Math.abs(s-S);Object(K.isFiniteNumber)(f.deltaPTS)?f.deltaPTS=Math.max(C,f.deltaPTS):f.deltaPTS=C,h=Math.max(S,s),S=Math.min(S,s),v=Math.min(v,f.startDTS),c=Math.min(b,i),b=Math.max(b,i),P=Math.max(P,f.endDTS)}f.duration=b-S;var _=S-f.start;f.appendedPTS=b,f.start=f.startPTS=S,f.maxStartPTS=h,f.startDTS=v,f.endPTS=b,f.minEndPTS=c,f.endDTS=P;var O=f.sn;if(!u||Ou.endSN)return 0;var N,U=O-u.startSN,H=u.fragments;for(H[U]=f,N=U;N>0;N--)k(H[N],H[N-1]);for(N=U;N=0;v--){var P=b[v].initSegment;if(P){S=P;break}}u.fragmentHint&&delete u.fragmentHint.endPTS;var E=0,h;if(M(u,f,function(N,U){N.relurl&&(E=N.cc-U.cc),Object(K.isFiniteNumber)(N.startPTS)&&Object(K.isFiniteNumber)(N.endPTS)&&(U.start=U.startPTS=N.startPTS,U.startDTS=N.startDTS,U.appendedPTS=N.appendedPTS,U.maxStartPTS=N.maxStartPTS,U.endPTS=N.endPTS,U.endDTS=N.endDTS,U.minEndPTS=N.minEndPTS,U.duration=N.endPTS-N.startPTS,U.duration&&(h=U),f.PTSKnown=f.alignedSliding=!0),U.elementaryStreams=N.elementaryStreams,U.loader=N.loader,U.stats=N.stats,U.urlId=N.urlId,N.initSegment&&(U.initSegment=N.initSegment,S=N.initSegment)}),S){var c=f.fragmentHint?f.fragments.concat(f.fragmentHint):f.fragments;c.forEach(function(N){var U;(!N.initSegment||N.initSegment.relurl===((U=S)===null||U===void 0?void 0:U.relurl))&&(N.initSegment=S)})}if(f.skippedSegments&&(f.deltaUpdateFailed=f.fragments.some(function(N){return!N}),f.deltaUpdateFailed)){T.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var s=f.skippedSegments;s--;)f.fragments.shift();f.startSN=f.fragments[0].sn,f.startCC=f.fragments[0].cc}var i=f.fragments;if(E){T.logger.warn("discontinuity sliding from playlist, take drift into account");for(var C=0;C=b.length)return;n(f,b[S].start)}function n(u,f){if(f){for(var S=u.fragments,b=u.skippedSegments;b0&&v0&&c===-1&&(this.log("Override startPosition with lastCurrentTime @"+s.toFixed(3)),c=s),this.state=T.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=c,this.tick()}else this._forceStartLoad=!0,this.state=T.State.STOPPED},E.stopLoad=function(){this._forceStartLoad=!1,v.prototype.stopLoad.call(this)},E.doTick=function(){switch(this.state){case T.State.IDLE:this.doTickIdle();break;case T.State.WAITING_LEVEL:{var c,s=this.levels,i=this.level,C=s==null||((c=s[i])===null||c===void 0)?void 0:c.details;if(C&&(!C.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(C))break;this.state=T.State.IDLE;break}break}case T.State.FRAG_LOADING_WAITING_RETRY:{var _,O=self.performance.now(),N=this.retryDate;(!N||O>=N||(_=this.media)!==null&&_!==void 0&&_.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=T.State.IDLE)}break;default:break}this.onTickEnd()},E.onTickEnd=function(){v.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},E.doTickIdle=function(){var c,s,i=this.hls,C=this.levelLastLoaded,_=this.levels,O=this.media,N=i.config,U=i.nextLoadLevel;if(C===null||!O&&(this.startFragRequested||!N.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!_||!_[U])return;var H=_[U];this.level=i.nextLoadLevel=U;var G=H.details;if(!G||this.state===T.State.WAITING_LEVEL||G.live&&this.levelLastLoaded!==U){this.state=T.State.WAITING_LEVEL;return}var L=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:O,D.PlaylistLevelType.MAIN);if(L===null)return;var W=L.len,Z=this.getMaxBufferLength(H.maxBitrate);if(W>=Z)return;if(this._streamEnded(L,G)){var oe={};this.altAudio&&(oe.type="video"),this.hls.trigger(B.Events.BUFFER_EOS,oe),this.state=T.State.ENDED;return}var ie=L.end,be=this.getNextFragment(ie,G);if(this.couldBacktrack&&!this.fragPrevious&&be&&be.sn!=="initSegment"){var Je=be.sn-G.startSN;Je>1&&(be=G.fragments[Je-1],this.fragmentTracker.removeFragment(be))}if(be&&this.fragmentTracker.getState(be)===k.FragmentState.OK&&this.nextLoadPosition>ie){var Ae=this.audioOnly&&!this.altAudio?m.ElementaryStreamTypes.AUDIO:m.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(O,Ae,D.PlaylistLevelType.MAIN),be=this.getNextFragment(this.nextLoadPosition,G)}if(!be)return;be.initSegment&&!be.initSegment.data&&!this.bitrateTest&&(be=be.initSegment),((c=be.decryptdata)===null||c===void 0?void 0:c.keyFormat)==="identity"&&!((s=be.decryptdata)!==null&&s!==void 0&&s.key)?this.loadKey(be,G):this.loadFragment(be,G,ie)},E.loadFragment=function(c,s,i){var C,_=this.fragmentTracker.getState(c);if(this.fragCurrent=c,_===k.FragmentState.BACKTRACKED){var O=this.fragmentTracker.getBacktrackData(c);if(O){this._handleFragmentLoadProgress(O),this._handleFragmentLoadComplete(O);return}else _=k.FragmentState.NOT_LOADED}_===k.FragmentState.NOT_LOADED||_===k.FragmentState.PARTIAL?c.sn==="initSegment"?this._loadInitSegment(c):this.bitrateTest?(c.bitrateTest=!0,this.log("Fragment "+c.sn+" of level "+c.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(c)):(this.startFragRequested=!0,v.prototype.loadFragment.call(this,c,s,i)):_===k.FragmentState.APPENDING?this.reduceMaxBufferLength(c.duration)&&this.fragmentTracker.removeFragment(c):((C=this.media)===null||C===void 0?void 0:C.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},E.getAppendedFrag=function(c){var s=this.fragmentTracker.getAppendedFrag(c,D.PlaylistLevelType.MAIN);return s&&"fragment"in s?s.fragment:s},E.getBufferedFrag=function(c){return this.fragmentTracker.getBufferedFrag(c,D.PlaylistLevelType.MAIN)},E.followingBufferedFrag=function(c){return c?this.getBufferedFrag(c.end+.5):null},E.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},E.nextLevelSwitch=function(){var c=this.levels,s=this.media;if(s!=null&&s.readyState){var i,C=this.getAppendedFrag(s.currentTime);if(C&&C.start>1&&this.flushMainBuffer(0,C.start-1),!s.paused&&c){var _=this.hls.nextLoadLevel,O=c[_],N=this.fragLastKbps;N&&this.fragCurrent?i=this.fragCurrent.duration*O.maxBitrate/(1e3*N)+1:i=0}else i=0;var U=this.getBufferedFrag(s.currentTime+i);if(U){var H=this.followingBufferedFrag(U);if(H){this.abortCurrentFrag();var G=H.maxStartPTS?H.maxStartPTS:H.start,L=H.duration,W=Math.max(U.end,G+Math.min(Math.max(L-this.config.maxFragLookUpTolerance,L*.5),L*.75));this.flushMainBuffer(W,Number.POSITIVE_INFINITY)}}}},E.abortCurrentFrag=function(){var c=this.fragCurrent;this.fragCurrent=null,c!=null&&c.loader&&c.loader.abort(),this.state===T.State.KEY_LOADING&&(this.state=T.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},E.flushMainBuffer=function(c,s){v.prototype.flushMainBuffer.call(this,c,s,this.altAudio?"video":null)},E.onMediaAttached=function(c,s){v.prototype.onMediaAttached.call(this,c,s);var i=s.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),i.addEventListener("playing",this.onvplaying),i.addEventListener("seeked",this.onvseeked),this.gapController=new g.default(this.config,i,this.fragmentTracker,this.hls)},E.onMediaDetaching=function(){var c=this.media;c&&(c.removeEventListener("playing",this.onvplaying),c.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)},E.onMediaPlaying=function(){this.tick()},E.onMediaSeeked=function(){var c=this.media,s=c?c.currentTime:null;Object(K.isFiniteNumber)(s)&&this.log("Media seeked to "+s.toFixed(3)),this.tick()},E.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(B.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},E.onManifestParsed=function(c,s){var i=!1,C=!1,_;s.levels.forEach(function(O){_=O.audioCodec,_&&(_.indexOf("mp4a.40.2")!==-1&&(i=!0),_.indexOf("mp4a.40.5")!==-1&&(C=!0))}),this.audioCodecSwitch=i&&C&&!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},E.onLevelLoading=function(c,s){var i=this.levels;if(!i||this.state!==T.State.IDLE)return;var C=i[s.level];(!C.details||C.details.live&&this.levelLastLoaded!==s.level||this.waitForCdnTuneIn(C.details))&&(this.state=T.State.WAITING_LEVEL)},E.onLevelLoaded=function(c,s){var i,C=this.levels,_=s.level,O=s.details,N=O.totalduration;if(!C){this.warn("Levels were reset while loading level "+_);return}this.log("Level "+_+" loaded ["+O.startSN+","+O.endSN+"], cc ["+O.startCC+", "+O.endCC+"] duration:"+N);var U=this.fragCurrent;U&&(this.state===T.State.FRAG_LOADING||this.state===T.State.FRAG_LOADING_WAITING_RETRY)&&(U.level!==s.level&&U.loader&&(this.state=T.State.IDLE,U.loader.abort()));var H=C[_],G=0;if(O.live||(i=H.details)!==null&&i!==void 0&&i.live){if(O.fragments[0]||(O.deltaUpdateFailed=!0),O.deltaUpdateFailed)return;G=this.alignPlaylists(O,H.details)}if(H.details=O,this.levelLastLoaded=_,this.hls.trigger(B.Events.LEVEL_UPDATED,{details:O,level:_}),this.state===T.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(O))return;this.state=T.State.IDLE}this.startFragRequested?O.live&&this.synchronizeToLiveEdge(O):this.setStartPosition(O,G),this.tick()},E._handleFragmentLoadProgress=function(c){var s,i=c.frag,C=c.part,_=c.payload,O=this.levels;if(!O){this.warn("Levels were reset while fragment load was in progress. Fragment "+i.sn+" of level "+i.level+" will not be buffered");return}var N=O[i.level],U=N.details;if(!U){this.warn("Dropping fragment "+i.sn+" of level "+i.level+" after level details were reset");return}var H=N.videoCodec,G=U.PTSKnown||!U.live,L=(s=i.initSegment)===null||s===void 0?void 0:s.data,W=this._getAudioCodec(N),Z=this.transmuxer=this.transmuxer||new R.default(this.hls,D.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),oe=C?C.index:-1,ie=oe!==-1,be=new M.ChunkMetadata(i.level,i.sn,i.stats.chunkCount,_.byteLength,oe,ie),Je=this.initPTS[i.cc];Z.push(_,L,W,H,i,C,U.totalduration,G,be,Je)},E.onAudioTrackSwitching=function(c,s){var i=this.altAudio,C=!!s.url,_=s.id;if(!C){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var O=this.fragCurrent;O!=null&&O.loader&&(this.log("Switching to main audio track, cancel main fragment load"),O.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var N=this.hls;i&&N.trigger(B.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),N.trigger(B.Events.AUDIO_TRACK_SWITCHED,{id:_})}},E.onAudioTrackSwitched=function(c,s){var i=s.id,C=!!this.hls.audioTracks[i].url;if(C){var _=this.videoBuffer;_&&this.mediaBuffer!==_&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=_)}this.altAudio=C,this.tick()},E.onBufferCreated=function(c,s){var i=s.tracks,C,_,O=!1;for(var N in i){var U=i[N];if(U.id==="main"){if(_=N,C=U,N==="video"){var H=i[N];H&&(this.videoBuffer=H.buffer)}}else O=!0}O&&C?(this.log("Alternate track found, use "+_+".buffered to schedule main fragment loading"),this.mediaBuffer=C.buffer):this.mediaBuffer=this.media},E.onFragBuffered=function(c,s){var i=s.frag,C=s.part;if(i&&i.type!==D.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(i)){this.warn("Fragment "+i.sn+(C?" p: "+C.index:"")+" of level "+i.level+" finished buffering, but was aborted. state: "+this.state),this.state===T.State.PARSED&&(this.state=T.State.IDLE);return}var _=C?C.stats:i.stats;this.fragLastKbps=Math.round(8*_.total/(_.buffering.end-_.loading.first)),i.sn!=="initSegment"&&(this.fragPrevious=i),this.fragBufferedComplete(i,C)},E.onError=function(c,s){switch(s.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(D.PlaylistLevelType.MAIN,s);break;case n.ErrorDetails.LEVEL_LOAD_ERROR:case n.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==T.State.ERROR&&(s.fatal?(this.warn(""+s.details),this.state=T.State.ERROR):!s.levelRetry&&this.state===T.State.WAITING_LEVEL&&(this.state=T.State.IDLE));break;case n.ErrorDetails.BUFFER_FULL_ERROR:if(s.parent==="main"&&(this.state===T.State.PARSING||this.state===T.State.PARSED)){var i=!0,C=this.getFwdBufferInfo(this.media,D.PlaylistLevelType.MAIN);C&&C.len>.5&&(i=!this.reduceMaxBufferLength(C.len)),i&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},E.checkBuffer=function(){var c=this.media,s=this.gapController;if(!c||!s||!c.readyState)return;var i=x.BufferHelper.getBuffered(c);!this.loadedmetadata&&i.length?(this.loadedmetadata=!0,this.seekToStartPos()):s.poll(this.lastCurrentTime),this.lastCurrentTime=c.currentTime},E.onFragLoadEmergencyAborted=function(){this.state=T.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},E.onBufferFlushed=function(c,s){var i=s.type;if(i!==m.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var C=(i===m.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(C,i,D.PlaylistLevelType.MAIN)}},E.onLevelsUpdated=function(c,s){this.levels=s.levels},E.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},E.seekToStartPos=function(){var c=this.media,s=c.currentTime,i=this.startPosition;if(i>=0&&s0&&(O1&&c.seeking===!1){var i=c.currentTime;if(x.BufferHelper.isBuffered(c,i)?s=this.getAppendedFrag(i):x.BufferHelper.isBuffered(c,i+.1)&&(s=this.getAppendedFrag(i+.1)),s){var C=this.fragPlaying,_=s.level;(!C||s.sn!==C.sn||C.level!==_||s.urlId!==C.urlId)&&(this.hls.trigger(B.Events.FRAG_CHANGED,{frag:s}),(!C||C.level!==_)&&this.hls.trigger(B.Events.LEVEL_SWITCHED,{level:_}),this.fragPlaying=s)}}},o(P,[{key:"nextLevel",get:function(){var c=this.nextBufferedFrag;return c?c.level:-1}},{key:"currentLevel",get:function(){var c=this.media;if(c){var s=this.getAppendedFrag(c.currentTime);if(s)return s.level}return-1}},{key:"nextBufferedFrag",get:function(){var c=this.media;if(c){var s=this.getAppendedFrag(c.currentTime);return this.followingBufferedFrag(s)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),P}(T.default)},"./src/controller/subtitle-stream-controller.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"SubtitleStreamController",function(){return u});var K=I("./src/events.ts"),T=I("./src/utils/logger.ts"),w=I("./src/utils/buffer-helper.ts"),B=I("./src/controller/fragment-finders.ts"),x=I("./src/utils/discontinuities.ts"),k=I("./src/controller/level-helper.ts"),D=I("./src/controller/fragment-tracker.ts"),m=I("./src/controller/base-stream-controller.ts"),R=I("./src/types/loader.ts"),M=I("./src/types/level.ts");function g(f,S){for(var b=0;b=s[_].start&&C<=s[_].end){i=s[_];break}var O=h.start+h.duration;i?i.end=O:(i={start:C,end:O},s.push(i)),this.fragmentTracker.fragBuffered(h)},b.onBufferFlushing=function(P,E){var h=E.startOffset,c=E.endOffset;if(h===0&&c!==Number.POSITIVE_INFINITY){var s=this.currentTrackId,i=this.levels;if(!i.length||!i[s]||!i[s].details)return;var C=i[s].details,_=C.targetduration,O=c-_;if(O<=0)return;E.endOffsetSubtitles=Math.max(0,O),this.tracksBuffered.forEach(function(N){for(var U=0;U=C.length||s!==i||!_)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,c.live||(h=_.details)!==null&&h!==void 0&&h.live){var O=this.mainDetails;if(c.deltaUpdateFailed||!O)return;var N=O.fragments[0];if(!_.details)c.hasProgramDateTime&&O.hasProgramDateTime?Object(x.alignMediaPlaylistByPDT)(c,O):N&&Object(k.addSliding)(c,N.start);else{var U=this.alignPlaylists(c,_.details);U===0&&N&&Object(k.addSliding)(c,N.start)}}if(_.details=c,this.levelLastLoaded=s,this.tick(),c.live&&!this.fragCurrent&&this.media&&this.state===m.State.IDLE){var H=Object(B.findFragmentByPTS)(null,c.fragments,this.media.currentTime,0);H||(this.warn("Subtitle playlist not aligned with playback"),_.details=void 0)}},b._handleFragmentLoadComplete=function(P){var E=P.frag,h=P.payload,c=E.decryptdata,s=this.hls;if(this.fragContextChanged(E))return;if(h&&h.byteLength>0&&c&&c.key&&c.iv&&c.method==="AES-128"){var i=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(h),c.key.buffer,c.iv.buffer).then(function(C){var _=performance.now();s.trigger(K.Events.FRAG_DECRYPTED,{frag:E,payload:C,stats:{tstart:i,tdecrypt:_}})})}},b.doTick=function(){if(!this.media){this.state=m.State.IDLE;return}if(this.state===m.State.IDLE){var P,E=this.currentTrackId,h=this.levels;if(!h.length||!h[E]||!h[E].details)return;var c=h[E].details,s=c.targetduration,i=this.config,C=this.media,_=w.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,C.currentTime-s,i.maxBufferHole),O=_.end,N=_.len,U=this.getMaxBufferLength()+s;if(N>U)return;console.assert(c,"Subtitle track details are defined on idle subtitle stream controller tick");var H=c.fragments,G=H.length,L=c.edge,W,Z=this.fragPrevious;if(O-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)},p.pollTrackChange=function(o){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,o)},p.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 o=M(this.media.textTracks);o.forEach(function(u){Object(T.clearCurrentCues)(u)}),this.subtitleTrack=-1,this.media=null},p.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},p.onManifestParsed=function(o,u){this.tracks=u.subtitleTracks},p.onSubtitleTrackLoaded=function(o,u){var f=u.id,S=u.details,b=this.trackId,v=this.tracksInGroup[b];if(!v){this.warn("Invalid subtitle track id "+f);return}var P=v.details;v.details=u.details,this.log("subtitle track "+f+" loaded ["+S.startSN+"-"+S.endSN+"]"),f===this.trackId&&(this.retryCount=0,this.playlistLoaded(f,u,P))},p.onLevelLoading=function(o,u){this.switchLevel(u.level)},p.onLevelSwitching=function(o,u){this.switchLevel(u.level)},p.switchLevel=function(o){var u=this.hls.levels[o];if(!(u!=null&&u.textGroupIds))return;var f=u.textGroupIds[u.urlId];if(this.groupId!==f){var S=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,b=this.tracks.filter(function(E){return!f||E.groupId===f});this.tracksInGroup=b;var v=this.findTrackId(S==null?void 0:S.name)||this.findTrackId();this.groupId=f;var P={subtitleTracks:b};this.log("Updating subtitle tracks, "+b.length+' track(s) found in "'+f+'" group-id'),this.hls.trigger(K.Events.SUBTITLE_TRACKS_UPDATED,P),v!==-1&&this.setSubtitleTrack(v,S)}},p.findTrackId=function(o){for(var u=this.tracksInGroup,f=0;f=S.length)return;this.clearTimer();var b=S[o];if(this.log("Switching to subtitle track "+o),this.trackId=o,b){var v=b.id,P=b.groupId,E=P===void 0?"":P,h=b.name,c=b.type,s=b.url;this.hls.trigger(K.Events.SUBTITLE_TRACK_SWITCH,{id:v,groupId:E,name:h,type:c,url:s});var i=this.switchParams(b.url,u==null?void 0:u.details);this.loadPlaylist(i)}else this.hls.trigger(K.Events.SUBTITLE_TRACK_SWITCH,{id:o})},p.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var o=-1,u=M(this.media.textTracks),f=0;f=0&&(c[0]=Math.min(c[0],S),c[1]=Math.max(c[1],b),E=!0,s/(b-S)>.5))return}if(E||P.push([S,b]),this.config.renderTextTracksNatively){var i=this.captionsTracks[f];this.Cues.newCue(i,S,b,v)}else{var C=this.Cues.newCue(null,S,b,v);this.hls.trigger(T.Events.CUES_PARSED,{type:"captions",cues:C,track:f})}},o.onInitPtsFound=function(f,S){var b=this,v=S.frag,P=S.id,E=S.initPTS,h=S.timescale,c=this.unparsedVttFrags;P==="main"&&(this.initPTS[v.cc]=E,this.timescale[v.cc]=h),c.length&&(this.unparsedVttFrags=[],c.forEach(function(s){b.onFragLoaded(T.Events.FRAG_LOADED,s)}))},o.getExistingTrack=function(f){var S=this.media;if(S)for(var b=0;b>>8^h&255^99,D[v]=h,m[h]=v;var c=b[v],s=b[c],i=b[s],C=b[h]*257^h*16843008;M[v]=C<<24|C>>>8,g[v]=C<<16|C>>>16,n[v]=C<<8|C>>>24,p[v]=C,C=i*16843009^s*65537^c*257^v*16843008,o[h]=C<<24|C>>>8,u[h]=C<<16|C>>>16,f[h]=C<<8|C>>>24,S[h]=C,v?(v=c^b[b[b[i^c]]],P^=b[b[P]]):v=P=1}},x.expandKey=function(D){for(var m=this.uint8ArrayToUint32Array_(D),R=!0,M=0;M>>6)+1;var C=(f[S+2]&60)>>>2;if(C>i.length-1){u.trigger(w.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+C});return}return E=(f[S+2]&1)<<2,E|=(f[S+3]&192)>>>6,K.logger.log("manifest codec:"+b+", ADTS type:"+v+", samplingIndex:"+C),/firefox/i.test(c)?C>=6?(v=5,h=new Array(4),P=C-3):(v=2,h=new Array(2),P=C):c.indexOf("android")!==-1?(v=2,h=new Array(2),P=C):(v=5,h=new Array(4),b&&(b.indexOf("mp4a.40.29")!==-1||b.indexOf("mp4a.40.5")!==-1)||!b&&C>=6?P=C-3:((b&&b.indexOf("mp4a.40.2")!==-1&&(C>=6&&E===1||/vivaldi/i.test(c))||!b&&E===1)&&(v=2,h=new Array(2)),P=C)),h[0]=v<<3,h[0]|=(C&14)>>1,h[1]|=(C&1)<<7,h[1]|=E<<3,v===5&&(h[1]|=(P&14)>>1,h[2]=(P&1)<<7,h[2]|=2<<2,h[3]=0),{config:h,samplerate:i[C],channelCount:E,codec:"mp4a.40."+v,manifestCodec:s}}function x(u,f){return u[f]===255&&(u[f+1]&246)===240}function k(u,f){return u[f+1]&1?7:9}function D(u,f){return(u[f+3]&3)<<11|u[f+4]<<3|(u[f+5]&224)>>>5}function m(u,f){return f+5=u.length)return!1;var b=D(u,f);if(b<=S)return!1;var v=f+b;return v===u.length||R(u,v)}return!1}function n(u,f,S,b,v){if(!u.samplerate){var P=B(f,S,b,v);if(!P)return;u.config=P.config,u.samplerate=P.samplerate,u.channelCount=P.channelCount,u.codec=P.codec,u.manifestCodec=P.manifestCodec,K.logger.log("parsed codec:"+u.codec+", rate:"+P.samplerate+", channels:"+P.channelCount)}}function p(u){return 1024*9e4/u}function d(u,f,S,b,v){var P=k(u,f),E=D(u,f);if(E-=P,E>0){var h=S+b*v;return{headerLength:P,frameLength:E,stamp:h}}}function o(u,f,S,b,v){var P=p(u.samplerate),E=d(f,S,b,v,P);if(E){var h=E.frameLength,c=E.headerLength,s=E.stamp,i=c+h,C=Math.max(0,S+i-f.length),_;C?(_=new Uint8Array(i-c),_.set(f.subarray(S+c,f.length),0)):_=f.subarray(S+c,S+i);var O={unit:_,pts:s};return C||u.samples.push(O),{sample:O,length:i,missing:C}}}},"./src/demux/base-audio-demuxer.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"initPTSFn",function(){return D});var K=I("./src/polyfills/number.ts"),T=I("./src/demux/id3.ts"),w=I("./src/demux/dummy-demuxed-track.ts"),B=I("./src/utils/mp4-tools.ts"),x=I("./src/utils/typed-array.ts"),k=function(){function m(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var R=m.prototype;return R.resetInitSegment=function(g,n,p){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},R.resetTimeStamp=function(){},R.resetContiguity=function(){},R.canParse=function(g,n){return!1},R.appendFrame=function(g,n,p){},R.demux=function(g,n){this.cachedData&&(g=Object(B.appendUint8Array)(this.cachedData,g),this.cachedData=null);var p=T.getID3Data(g,0),d=p?p.length:0,o,u,f=this._audioTrack,S=this._id3Track,b=p?T.getTimeStamp(p):void 0,v=g.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=D(b,n)),p&&p.length>0&&S.samples.push({pts:this.initPTS,dts:this.initPTS,data:p}),u=this.initPTS;dk?(this.word<<=k,this.bitsAvailable-=k):(k-=this.bitsAvailable,D=k>>3,k-=D>>3,this.bytesAvailable-=D,this.loadWord(),this.word<<=k,this.bitsAvailable-=k)},B.readBits=function(k){var D=Math.min(this.bitsAvailable,k),m=this.word>>>32-D;return k>32&&K.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=D,this.bitsAvailable>0?this.word<<=D:this.bytesAvailable>0&&this.loadWord(),D=k-D,D>0&&this.bitsAvailable?m<>>k)!==0)return this.word<<=k,this.bitsAvailable-=k,k;return this.loadWord(),k+this.skipLZ()},B.skipUEG=function(){this.skipBits(1+this.skipLZ())},B.skipEG=function(){this.skipBits(1+this.skipLZ())},B.readUEG=function(){var k=this.skipLZ();return this.readBits(k+1)-1},B.readEG=function(){var k=this.readUEG();return 1&k?1+k>>>1:-1*(k>>>1)},B.readBoolean=function(){return this.readBits(1)===1},B.readUByte=function(){return this.readBits(8)},B.readUShort=function(){return this.readBits(16)},B.readUInt=function(){return this.readBits(32)},B.skipScalingList=function(k){for(var D=8,m=8,R,M=0;M0?v.subarray(E,E+h):void 0},B=function(v,P){var E=0;return E=(v[P]&127)<<21,E|=(v[P+1]&127)<<14,E|=(v[P+2]&127)<<7,E|=v[P+3]&127,E},x=function(v,P){return K(v,P)&&B(v,P+6)+10<=v.length-P},k=function(v){for(var P=R(v),E=0;E>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:O+=String.fromCharCode(i);break;case 12:case 13:C=v[N++],O+=String.fromCharCode((i&31)<<6|C&63);break;case 14:C=v[N++],_=v[N++],O+=String.fromCharCode((i&15)<<12|(C&63)<<6|(_&63)<<0);break;default:}}return O},u={decodeTextFrame:n},f;function S(){return!f&&typeof self.TextDecoder!="undefined"&&(f=new self.TextDecoder("utf-8")),f}},"./src/demux/mp3demuxer.ts":function(re,z,I){"use strict";I.r(z);var K=I("./src/demux/base-audio-demuxer.ts"),T=I("./src/demux/id3.ts"),w=I("./src/utils/logger.ts"),B=I("./src/demux/mpegaudio.ts");function x(m,R){m.prototype=Object.create(R.prototype),m.prototype.constructor=m,k(m,R)}function k(m,R){return k=Object.setPrototypeOf||function(g,n){return g.__proto__=n,g},k(m,R)}var D=function(m){x(R,m);function R(){return m.apply(this,arguments)||this}var M=R.prototype;return M.resetInitSegment=function(n,p,d){m.prototype.resetInitSegment.call(this,n,p,d),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:n,duration:d,inputTimeScale:9e4,dropped:0}},R.probe=function(n){if(!n)return!1;for(var p=T.getID3Data(n,0)||[],d=p.length,o=n.length;d0},x.demux=function(D){var m=D,R=Object(T.dummyTrack)();if(this.config.progressive){this.remainderData&&(m=Object(K.appendUint8Array)(this.remainderData,D));var M=Object(K.segmentValidRange)(m);this.remainderData=M.remainder,R.samples=M.valid||new Uint8Array}else R.samples=m;return{audioTrack:Object(T.dummyTrack)(),avcTrack:R,id3Track:Object(T.dummyTrack)(),textTrack:Object(T.dummyTrack)()}},x.flush=function(){var D=Object(T.dummyTrack)();return D.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(T.dummyTrack)(),avcTrack:D,id3Track:Object(T.dummyTrack)(),textTrack:Object(T.dummyTrack)()}},x.demuxSampleAes=function(D,m,R){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},x.destroy=function(){},B}();w.minProbeByteLength=1024,z.default=w},"./src/demux/mpegaudio.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"appendFrame",function(){return k}),I.d(z,"parseHeader",function(){return D}),I.d(z,"isHeaderPattern",function(){return m}),I.d(z,"isHeader",function(){return R}),I.d(z,"canParse",function(){return M}),I.d(z,"probe",function(){return g});var K=null,T=[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],B=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],x=[0,1,1,4];function k(n,p,d,o,u){if(d+24>p.length)return;var f=D(p,d);if(f&&d+f.frameLength<=p.length){var S=f.samplesPerFrame*9e4/f.sampleRate,b=o+u*S,v={unit:p.subarray(d,d+f.frameLength),pts:b,dts:b};return n.config=[],n.channelCount=f.channelCount,n.samplerate=f.sampleRate,n.samples.push(v),{sample:v,length:f.frameLength,missing:0}}}function D(n,p){var d=n[p+1]>>3&3,o=n[p+1]>>1&3,u=n[p+2]>>4&15,f=n[p+2]>>2&3;if(d!==1&&u!==0&&u!==15&&f!==3){var S=n[p+2]>>1&1,b=n[p+3]>>6,v=d===3?3-o:o===3?3:4,P=T[v*14+u-1]*1e3,E=d===3?0:d===2?1:2,h=w[E*3+f],c=b===3?1:2,s=B[d][o],i=x[o],C=s*8*i,_=Math.floor(s*P/h+S)*i;if(K===null){var O=navigator.userAgent||"",N=O.match(/Chrome\/(\d+)/i);K=N?parseInt(N[1]):0}var U=!!K&&K<=87;return U&&o===2&&P>=224e3&&b===0&&(n[p+3]=n[p+3]|128),{sampleRate:h,channelCount:c,frameLength:_,samplesPerFrame:C}}}function m(n,p){return n[p]===255&&(n[p+1]&224)===224&&(n[p+1]&6)!==0}function R(n,p){return p+1=D.length){R();return}if(D[m].unit.length<32)continue;var M=this.decrypter.isSync();if(this.decryptAacSample(D,m,R,M),!M)return}},x.getAvcEncryptedData=function(D){for(var m=Math.floor((D.length-48)/160)*16+16,R=new Int8Array(m),M=0,g=32;g<=D.length-16;g+=160,M+=16)R.set(D.subarray(g,g+16),M);return R},x.getAvcDecryptedUnit=function(D,m){for(var R=new Uint8Array(m),M=0,g=32;g<=D.length-16;g+=160,M+=16)D.set(R.subarray(M,M+16),g);return D},x.decryptAvcSample=function(D,m,R,M,g,n){var p=Object(T.discardEPB)(g.data),d=this.getAvcEncryptedData(p),o=this;this.decryptBuffer(d.buffer,function(u){g.data=o.getAvcDecryptedUnit(p,u),n||o.decryptAvcSamples(D,m,R+1,M)})},x.decryptAvcSamples=function(D,m,R,M){if(D instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;m++,R=0){if(m>=D.length){M();return}for(var g=D[m].units;!(R>=g.length);R++){var n=g[R];if(n.data.length<=48||n.type!==1&&n.type!==5)continue;var p=this.decrypter.isSync();if(this.decryptAvcSample(D,m,R,M,n,p),!p)return}}},B}();z.default=w},"./src/demux/transmuxer-interface.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return g});var K=I("./node_modules/webworkify-webpack/index.js"),T=I.n(K),w=I("./src/events.ts"),B=I("./src/demux/transmuxer.ts"),x=I("./src/utils/logger.ts"),k=I("./src/errors.ts"),D=I("./src/utils/mediasource-helper.ts"),m=I("./node_modules/eventemitter3/index.js"),R=I.n(m),M=Object(D.getMediaSource)()||{isTypeSupported:function(){return!1}},g=function(){function n(d,o,u,f){var S=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=d,this.id=o,this.onTransmuxComplete=u,this.onFlush=f;var b=d.config,v=function(s,i){i=i||{},i.frag=S.frag,i.id=S.id,d.trigger(s,i)};this.observer=new m.EventEmitter,this.observer.on(w.Events.FRAG_DECRYPTED,v),this.observer.on(w.Events.ERROR,v);var P={mp4:M.isTypeSupported("video/mp4"),mpeg:M.isTypeSupported("audio/mpeg"),mp3:M.isTypeSupported('audio/mp4; codecs="mp3"')},E=navigator.vendor;if(b.enableWorker&&typeof Worker!="undefined"){x.logger.log("demuxing in webworker");var h;try{h=this.worker=K("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),h.addEventListener("message",this.onwmsg),h.onerror=function(c){d.trigger(w.Events.ERROR,{type:k.ErrorTypes.OTHER_ERROR,details:k.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(c.message+" ("+c.filename+":"+c.lineno+")")})},h.postMessage({cmd:"init",typeSupported:P,vendor:E,id:o,config:JSON.stringify(b)})}catch(c){x.logger.warn("Error in worker:",c),x.logger.error("Error while initializing DemuxerWorker, fallback to inline"),h&&self.URL.revokeObjectURL(h.objectURL),this.transmuxer=new B.default(this.observer,P,b,E,o),this.worker=null}}else this.transmuxer=new B.default(this.observer,P,b,E,o)}var p=n.prototype;return p.destroy=function(){var o=this.worker;if(o)o.removeEventListener("message",this.onwmsg),o.terminate(),this.worker=null;else{var u=this.transmuxer;u&&(u.destroy(),this.transmuxer=null)}var f=this.observer;f&&f.removeAllListeners(),this.observer=null},p.push=function(o,u,f,S,b,v,P,E,h,c){var s=this;h.transmuxing.start=self.performance.now();var i=this.transmuxer,C=this.worker,_=v?v.start:b.start,O=b.decryptdata,N=this.frag,U=!(N&&b.cc===N.cc),H=!(N&&h.level===N.level),G=N?h.sn-N.sn:-1,L=this.part?h.part-this.part.index:1,W=!H&&(G===1||G===0&&L===1),Z=self.performance.now();(H||G||b.stats.parsing.start===0)&&(b.stats.parsing.start=Z),v&&(L||!W)&&(v.stats.parsing.start=Z);var oe=new B.TransmuxState(U,W,E,H,_);if(!W||U){x.logger.log("[transmuxer-interface, "+b.type+"]: Starting new transmux session for sn: "+h.sn+" p: "+h.part+" level: "+h.level+" id: "+h.id+` + Time to underbuffer: `+U.toFixed(3)+" s"),u.nextLoadLevel=G,this.bwEstimator.sample(E,v.loaded),this.clearTimer(),d.loader&&(this.fragCurrent=this.partCurrent=null,d.loader.abort()),u.trigger(w.Events.FRAG_LOAD_EMERGENCY_ABORTED,{frag:d,part:o,stats:v})},n.onFragLoaded=function(d,o){var u=o.frag,h=o.part;if(u.type===k.PlaylistLevelType.MAIN&&Object(K.isFiniteNumber)(u.sn)){var S=h?h.stats:u.stats,b=h?h.duration:u.duration;if(this.clearTimer(),this.lastLoadedFragLevel=u.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var v=this.hls.levels[u.level],P=(v.loaded?v.loaded.bytes:0)+S.loaded,E=(v.loaded?v.loaded.duration:0)+b;v.loaded={bytes:P,duration:E},v.realBitrate=Math.round(8*P/E)}if(u.bitrateTest){var f={stats:S,frag:u,part:h,id:u.type};this.onFragBuffered(w.Events.FRAG_BUFFERED,f),u.bitrateTest=!1}}},n.onFragBuffered=function(d,o){var u=o.frag,h=o.part,S=h?h.stats:u.stats;if(S.aborted)return;if(u.type!==k.PlaylistLevelType.MAIN||u.sn==="initSegment")return;var b=S.parsing.end-S.loading.start;this.bwEstimator.sample(b,S.loaded),S.bwEstimate=this.bwEstimator.getEstimate(),u.bitrateTest?this.bitrateTestDelay=b/1e3:this.bitrateTestDelay=0},n.onError=function(d,o){switch(o.details){case x.ErrorDetails.FRAG_LOAD_ERROR:case x.ErrorDetails.FRAG_LOAD_TIMEOUT:this.clearTimer();break;default:break}},n.clearTimer=function(){self.clearInterval(this.timer),this.timer=void 0},n.getNextABRAutoLevel=function(){var d=this.fragCurrent,o=this.partCurrent,u=this.hls,h=u.maxAutoLevel,S=u.config,b=u.minAutoLevel,v=u.media,P=o?o.duration:d?d.duration:0,E=v?v.currentTime:0,f=v&&v.playbackRate!==0?Math.abs(v.playbackRate):1,c=this.bwEstimator?this.bwEstimator.getEstimate():S.abrEwmaDefaultEstimate,s=(B.BufferHelper.bufferInfo(v,E,S.maxBufferHole).end-E)/f,i=this.findBestLevel(c,b,h,s,S.abrBandWidthFactor,S.abrBandWidthUpFactor);if(i>=0)return i;D.logger.trace((s?"rebuffering expected":"buffer is empty")+", finding optimal quality level");var C=P?Math.min(P,S.maxStarvationDelay):S.maxStarvationDelay,_=S.abrBandWidthFactor,O=S.abrBandWidthUpFactor;if(!s){var N=this.bitrateTestDelay;if(N){var U=P?Math.min(P,S.maxLoadingDelay):S.maxLoadingDelay;C=U-N,D.logger.trace("bitrate test took "+Math.round(1e3*N)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*C)+" ms"),_=O=1}}return i=this.findBestLevel(c,b,h,s+C,_,O),Math.max(i,0)},n.findBestLevel=function(d,o,u,h,S,b){for(var v,P=this.fragCurrent,E=this.partCurrent,f=this.lastLoadedFragLevel,c=this.hls.levels,s=c[f],i=!!(s!=null&&(v=s.details)!==null&&v!==void 0&&v.live),C=s==null?void 0:s.codecSet,_=E?E.duration:P?P.duration:0,O=u;O>=o;O--){var N=c[O];if(!N||C&&N.codecSet!==C)continue;var U=N.details,H=(E?U==null?void 0:U.partTarget:U==null?void 0:U.averagetargetduration)||_,G=void 0;O<=f?G=S*d:G=b*d;var L=c[O].maxBitrate,W=L*H/G;if(D.logger.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+O+"/"+Math.round(G)+"/"+L+"/"+H+"/"+h+"/"+W),G>L&&(!W||i&&!this.bitrateTestDelay||W0&&s===-1?(this.log("Override startPosition with lastCurrentTime @"+i.toFixed(3)),this.state=T.State.IDLE):(this.loadedmetadata=!1,this.state=T.State.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=s,this.tick()},f.doTick=function(){switch(this.state){case T.State.IDLE:this.doTickIdle();break;case T.State.WAITING_TRACK:{var s,i=this.levels,C=this.trackId,_=i==null||((s=i[C])===null||s===void 0)?void 0:s.details;if(_){if(this.waitForCdnTuneIn(_))break;this.state=T.State.WAITING_INIT_PTS}break}case T.State.FRAG_LOADING_WAITING_RETRY:{var O,N=performance.now(),U=this.retryDate;(!U||N>=U||(O=this.media)!==null&&O!==void 0&&O.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.state=T.State.IDLE);break}case T.State.WAITING_INIT_PTS:{var H=this.waitingData;if(H){var G=H.frag,L=H.part,W=H.cache,Z=H.complete;if(this.initPTS[G.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=T.State.FRAG_LOADING;var oe=W.flush(),ie={frag:G,part:L,payload:oe,networkDetails:null};this._handleFragmentLoadProgress(ie),Z&&P.prototype._handleFragmentLoadComplete.call(this,ie)}else if(this.videoTrackCC!==this.waitingVideoCC)o.logger.log("Waiting fragment cc ("+G.cc+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var be=this.getLoadPosition(),Je=B.BufferHelper.bufferInfo(this.mediaBuffer,be,this.config.maxBufferHole),Ae=Object(n.fragmentWithinToleranceTest)(Je.end,this.config.maxFragLookUpTolerance,G);Ae<0&&(o.logger.log("Waiting fragment cc ("+G.cc+") @ "+G.start+" cancelled because another fragment at "+Je.end+" is needed"),this.clearWaitingFragment())}}else this.state=T.State.IDLE}}this.onTickEnd()},f.clearWaitingFragment=function(){var s=this.waitingData;s&&(this.fragmentTracker.removeFragment(s.frag),this.waitingData=null,this.waitingVideoCC=-1,this.state=T.State.IDLE)},f.onTickEnd=function(){var s=this.media;if(!s||!s.readyState)return;var i=this.mediaBuffer?this.mediaBuffer:s,C=i.buffered;!this.loadedmetadata&&C.length&&(this.loadedmetadata=!0),this.lastCurrentTime=s.currentTime},f.doTickIdle=function(){var s,i,C=this.hls,_=this.levels,O=this.media,N=this.trackId,U=C.config;if(!_||!_[N])return;if(!O&&(this.startFragRequested||!U.startFragPrefetch))return;var H=_[N],G=H.details;if(!G||G.live&&this.levelLastLoaded!==N||this.waitForCdnTuneIn(G)){this.state=T.State.WAITING_TRACK;return}this.bufferFlushed&&(this.bufferFlushed=!1,this.afterBufferFlushed(this.mediaBuffer?this.mediaBuffer:this.media,m.ElementaryStreamTypes.AUDIO,D.PlaylistLevelType.AUDIO));var L=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,D.PlaylistLevelType.AUDIO);if(L===null)return;var W=L.len,Z=this.getMaxBufferLength(),oe=this.audioSwitch;if(W>=Z&&!oe)return;if(!oe&&this._streamEnded(L,G)){C.trigger(w.Events.BUFFER_EOS,{type:"audio"}),this.state=T.State.ENDED;return}var ie=G.fragments,be=ie[0].start,Je=L.end;if(oe){var Ae=this.getLoadPosition();Je=Ae,G.PTSKnown&&Aebe||L.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),O.currentTime=be+.05))}var ke=this.getNextFragment(Je,G);if(!ke){this.bufferFlushed=!0;return}((s=ke.decryptdata)===null||s===void 0?void 0:s.keyFormat)==="identity"&&!((i=ke.decryptdata)!==null&&i!==void 0&&i.key)?this.loadKey(ke,G):this.loadFragment(ke,G,Je)},f.getMaxBufferLength=function(){var s=P.prototype.getMaxBufferLength.call(this),i=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,D.PlaylistLevelType.MAIN);return i===null?s:Math.max(s,i.len)},f.onMediaDetaching=function(){this.videoBuffer=null,P.prototype.onMediaDetaching.call(this)},f.onAudioTracksUpdated=function(s,i){var C=i.audioTracks;this.resetTransmuxer(),this.levels=C.map(function(_){return new k.Level(_)})},f.onAudioTrackSwitching=function(s,i){var C=!!i.url;this.trackId=i.id;var _=this.fragCurrent;_!=null&&_.loader&&_.loader.abort(),this.fragCurrent=null,this.clearWaitingFragment(),C?this.setInterval(b):this.resetTransmuxer(),C?(this.audioSwitch=!0,this.state=T.State.IDLE):this.state=T.State.STOPPED,this.tick()},f.onManifestLoading=function(){this.mainDetails=null,this.fragmentTracker.removeAllFragments(),this.startPosition=this.lastCurrentTime=0,this.bufferFlushed=!1},f.onLevelLoaded=function(s,i){this.mainDetails=i.details},f.onAudioTrackLoaded=function(s,i){var C,_=this.levels,O=i.details,N=i.id;if(!_){this.warn("Audio tracks were reset while loading level "+N);return}this.log("Track "+N+" loaded ["+O.startSN+","+O.endSN+"],duration:"+O.totalduration);var U=_[N],H=0;if(O.live||(C=U.details)!==null&&C!==void 0&&C.live){var G=this.mainDetails;if(O.fragments[0]||(O.deltaUpdateFailed=!0),O.deltaUpdateFailed||!G)return;!U.details&&O.hasProgramDateTime&&G.hasProgramDateTime?(Object(p.alignMediaPlaylistByPDT)(O,G),H=O.fragments[0].start):H=this.alignPlaylists(O,U.details)}U.details=O,this.levelLastLoaded=N,!this.startFragRequested&&(this.mainDetails||!O.live)&&this.setStartPosition(U.details,H),this.state===T.State.WAITING_TRACK&&!this.waitForCdnTuneIn(O)&&(this.state=T.State.IDLE),this.tick()},f._handleFragmentLoadProgress=function(s){var i,C=s.frag,_=s.part,O=s.payload,N=this.config,U=this.trackId,H=this.levels;if(!H){this.warn("Audio tracks were reset while fragment load was in progress. Fragment "+C.sn+" of level "+C.level+" will not be buffered");return}var G=H[U];console.assert(G,"Audio track is defined on fragment load progress");var L=G.details;console.assert(L,"Audio track details are defined on fragment load progress");var W=N.defaultAudioCodec||G.audioCodec||"mp4a.40.2",Z=this.transmuxer;Z||(Z=this.transmuxer=new M.default(this.hls,D.PlaylistLevelType.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var oe=this.initPTS[C.cc],ie=(i=C.initSegment)===null||i===void 0?void 0:i.data;if(oe!==void 0){var be=!1,Je=_?_.index:-1,Ae=Je!==-1,ke=new g.ChunkMetadata(C.level,C.sn,C.stats.chunkCount,O.byteLength,Je,Ae);Z.push(O,ie,W,"",C,_,L.totalduration,be,ke,oe)}else{o.logger.log("Unknown video PTS for cc "+C.cc+", waiting for video PTS before demuxing audio frag "+C.sn+" of ["+L.startSN+" ,"+L.endSN+"],track "+U);var Ze=this.waitingData=this.waitingData||{frag:C,part:_,cache:new R.default,complete:!1},Xe=Ze.cache;Xe.push(new Uint8Array(O)),this.waitingVideoCC=this.videoTrackCC,this.state=T.State.WAITING_INIT_PTS}},f._handleFragmentLoadComplete=function(s){if(this.waitingData){this.waitingData.complete=!0;return}P.prototype._handleFragmentLoadComplete.call(this,s)},f.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},f.onBufferCreated=function(s,i){var C=i.tracks.audio;C&&(this.mediaBuffer=C.buffer),i.tracks.video&&(this.videoBuffer=i.tracks.video.buffer)},f.onFragBuffered=function(s,i){var C=i.frag,_=i.part;if(C.type!==D.PlaylistLevelType.AUDIO)return;if(this.fragContextChanged(C)){this.warn("Fragment "+C.sn+(_?" p: "+_.index:"")+" of level "+C.level+" finished buffering, but was aborted. state: "+this.state+", audioSwitch: "+this.audioSwitch);return}C.sn!=="initSegment"&&(this.fragPrevious=C,this.audioSwitch&&(this.audioSwitch=!1,this.hls.trigger(w.Events.AUDIO_TRACK_SWITCHED,{id:this.trackId}))),this.fragBufferedComplete(C,_)},f.onError=function(s,i){switch(i.details){case d.ErrorDetails.FRAG_LOAD_ERROR:case d.ErrorDetails.FRAG_LOAD_TIMEOUT:case d.ErrorDetails.KEY_LOAD_ERROR:case d.ErrorDetails.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(D.PlaylistLevelType.AUDIO,i);break;case d.ErrorDetails.AUDIO_TRACK_LOAD_ERROR:case d.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:this.state!==T.State.ERROR&&this.state!==T.State.STOPPED&&(this.state=i.fatal?T.State.ERROR:T.State.IDLE,this.warn(i.details+" while loading frag, switching to "+this.state+" state"));break;case d.ErrorDetails.BUFFER_FULL_ERROR:if(i.parent==="audio"&&(this.state===T.State.PARSING||this.state===T.State.PARSED)){var C=!0,_=this.getFwdBufferInfo(this.mediaBuffer,D.PlaylistLevelType.AUDIO);_&&_.len>.5&&(C=!this.reduceMaxBufferLength(_.len)),C&&(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}},f.onBufferFlushed=function(s,i){var C=i.type;C===m.ElementaryStreamTypes.AUDIO&&(this.bufferFlushed=!0)},f._handleTransmuxComplete=function(s){var i,C="audio",_=this.hls,O=s.remuxResult,N=s.chunkMeta,U=this.getCurrentContext(N);if(!U){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 H=U.frag,G=U.part,L=O.audio,W=O.text,Z=O.id3,oe=O.initSegment;if(this.fragContextChanged(H))return;if(this.state=T.State.PARSING,this.audioSwitch&&L&&this.completeAudioSwitch(),oe!=null&&oe.tracks&&(this._bufferInitSegment(oe.tracks,H,N),_.trigger(w.Events.FRAG_PARSING_INIT_SEGMENT,{frag:H,id:C,tracks:oe.tracks})),L){var ie=L.startPTS,be=L.endPTS,Je=L.startDTS,Ae=L.endDTS;G&&(G.elementaryStreams[m.ElementaryStreamTypes.AUDIO]={startPTS:ie,endPTS:be,startDTS:Je,endDTS:Ae}),H.setElementaryStreamInfo(m.ElementaryStreamTypes.AUDIO,ie,be,Je,Ae),this.bufferFragmentData(L,H,G,N)}if(Z!=null&&(i=Z.samples)!==null&&i!==void 0&&i.length){var ke=u({frag:H,id:C},Z);_.trigger(w.Events.FRAG_PARSING_METADATA,ke)}if(W){var Ze=u({frag:H,id:C},W);_.trigger(w.Events.FRAG_PARSING_USERDATA,Ze)}},f._bufferInitSegment=function(s,i,C){if(this.state!==T.State.PARSING)return;s.video&&delete s.video;var _=s.audio;if(!_)return;_.levelCodec=_.codec,_.id="audio",this.log("Init audio buffer, container:"+_.container+", codecs[parsed]=["+_.codec+"]"),this.hls.trigger(w.Events.BUFFER_CODECS,s);var O=_.initSegment;if(O!=null&&O.byteLength){var N={type:"audio",frag:i,part:null,chunkMeta:C,parent:i.type,data:O};this.hls.trigger(w.Events.BUFFER_APPENDING,N)}this.tick()},f.loadFragment=function(s,i,C){var _=this.fragmentTracker.getState(s);this.fragCurrent=s,(this.audioSwitch||_===x.FragmentState.NOT_LOADED||_===x.FragmentState.PARTIAL)&&(s.sn==="initSegment"?this._loadInitSegment(s):i.live&&!Object(K.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=T.State.WAITING_INIT_PTS):(this.startFragRequested=!0,P.prototype.loadFragment.call(this,s,i,C)))},f.completeAudioSwitch=function(){var s=this.hls,i=this.media,C=this.trackId;i&&(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:C})},E}(T.default);z.default=v},"./src/controller/audio-track-controller.ts":function(re,z,I){"use strict";I.r(z);var K=I("./src/events.ts"),T=I("./src/errors.ts"),w=I("./src/controller/base-playlist-controller.ts"),B=I("./src/types/loader.ts");function x(M,g){for(var n=0;n=o.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var u=o[this.trackId];this.log("Now switching to audio-track index "+d);var h=o[d],S=h.id,b=h.groupId,v=b===void 0?"":b,P=h.name,E=h.type,f=h.url;if(this.trackId=d,this.trackName=P,this.selectDefaultTrack=!1,this.hls.trigger(K.Events.AUDIO_TRACK_SWITCHING,{id:S,groupId:v,name:P,type:E,url:f}),h.details&&!h.details.live)return;var c=this.switchParams(h.url,u==null?void 0:u.details);this.loadPlaylist(c)},n.selectInitialTrack=function(){var d=this.tracksInGroup;console.assert(d.length,"Initial audio track should be selected when tracks are known");var o=this.trackName,u=this.findTrackId(o)||this.findTrackId();u!==-1?this.setAudioTrack(u):(this.warn("No track found for running audio group-ID: "+this.groupId),this.hls.trigger(K.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))},n.findTrackId=function(d){for(var o=this.tracksInGroup,u=0;ug.partTarget&&(h+=1)}if(Object(K.isFiniteNumber)(u))return new T.HlsUrlParameters(u,Object(K.isFiniteNumber)(h)?h:void 0,T.HlsSkip.No)}}},m.loadPlaylist=function(M){},m.shouldLoadTrack=function(M){return this.canLoad&&M&&!!M.url&&(!M.details||M.details.live)},m.playlistLoaded=function(M,g,n){var p=this,d=g.details,o=g.stats,u=o.loading.end?Math.max(0,self.performance.now()-o.loading.end):0;if(d.advancedDateTime=Date.now()-u,d.live||n!=null&&n.live){if(d.reloaded(n),n&&this.log("live playlist "+M+" "+(d.advanced?"REFRESHED "+d.lastPartSn+"-"+d.lastPartIndex:"MISSED")),n&&d.fragments.length>0&&Object(w.mergeDetails)(n,d),!this.canLoad||!d.live)return;var h,S=void 0,b=void 0;if(d.canBlockReload&&d.endSN&&d.advanced){var v=this.hls.config.lowLatencyMode,P=d.lastPartSn,E=d.endSN,f=d.lastPartIndex,c=f!==-1,s=P===E,i=v?0:f;c?(S=s?E+1:P,b=s?i:f+1):S=E+1;var C=d.age,_=C+d.ageHeader,O=Math.min(_-d.partTarget,d.targetduration*1.5);if(O>0){if(n&&O>n.tuneInGoal)this.warn("CDN Tune-in goal increased from: "+n.tuneInGoal+" to: "+O+" with playlist age: "+d.age),O=0;else{var N=Math.floor(O/d.targetduration);if(S+=N,b!==void 0){var U=Math.round(O%d.targetduration/d.partTarget);b+=U}this.log("CDN Tune-in age: "+d.ageHeader+"s last advanced "+C.toFixed(2)+"s goal: "+O+" skip sn "+N+" to part "+b)}d.tuneInGoal=O}if(h=this.getDeliveryDirectives(d,g.deliveryDirectives,S,b),v||!s){this.loadPlaylist(h);return}}else h=this.getDeliveryDirectives(d,g.deliveryDirectives,S,b);var H=Object(w.computeReloadInterval)(d,o);S!==void 0&&d.canBlockReload&&(H-=d.partTarget||1),this.log("reload live playlist "+M+" in "+Math.round(H)+" ms"),this.timer=self.setTimeout(function(){return p.loadPlaylist(h)},H)}else this.clearTimer()},m.getDeliveryDirectives=function(M,g,n,p){var d=Object(T.getSkipValue)(M,n);return g!=null&&g.skip&&M.deltaUpdateFailed&&(n=g.msn,p=g.part,d=T.HlsSkip.No),new T.HlsUrlParameters(n,p,d)},m.retryLoadingOrFail=function(M){var g=this,n=this.hls.config,p=this.retryCount-1&&(d=M.context)!==null&&d!==void 0&&d.deliveryDirectives)this.warn("retry playlist loading #"+this.retryCount+' after "'+M.details+'"'),this.loadPlaylist();else{var o=Math.min(Math.pow(2,this.retryCount)*n.levelLoadingRetryDelay,n.levelLoadingMaxRetryTimeout);this.timer=self.setTimeout(function(){return g.loadPlaylist()},o),this.warn("retry playlist loading #"+this.retryCount+" in "+o+' ms after "'+M.details+'"')}}else this.warn('cannot recover from error "'+M.details+'"'),this.clearTimer(),M.fatal=!0;return p},D}()},"./src/controller/base-stream-controller.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"State",function(){return E}),I.d(z,"default",function(){return f});var K=I("./src/polyfills/number.ts"),T=I("./src/task-loop.ts"),w=I("./src/controller/fragment-tracker.ts"),B=I("./src/utils/buffer-helper.ts"),x=I("./src/utils/logger.ts"),k=I("./src/events.ts"),D=I("./src/errors.ts"),m=I("./src/types/transmuxer.ts"),R=I("./src/utils/mp4-tools.ts"),M=I("./src/utils/discontinuities.ts"),g=I("./src/controller/fragment-finders.ts"),n=I("./src/controller/level-helper.ts"),p=I("./src/loader/fragment-loader.ts"),d=I("./src/crypt/decrypter.ts"),o=I("./src/utils/time-ranges.ts"),u=I("./src/types/loader.ts");function h(c,s){for(var i=0;ioe;(G0&&G&&G.key&&G.iv&&G.method==="AES-128"){var L=self.performance.now();return O.decrypter.webCryptoDecrypt(new Uint8Array(H),G.key.buffer,G.iv.buffer).then(function(W){var Z=self.performance.now();return U.trigger(k.Events.FRAG_DECRYPTED,{frag:_,payload:W,stats:{tstart:L,tdecrypt:Z}}),N.payload=W,N})}return N}).then(function(N){var U=O.fragCurrent,H=O.hls,G=O.levels;if(!G)throw new Error("init load aborted, missing levels");var L=G[_.level].details;console.assert(L,"Level details are defined when init segment is loaded");var W=_.stats;O.state=E.IDLE,O.fragLoadError=0,_.data=new Uint8Array(N.payload),W.parsing.start=W.buffering.start=self.performance.now(),W.parsing.end=W.buffering.end=self.performance.now(),N.frag===U&&H.trigger(k.Events.FRAG_BUFFERED,{stats:W,frag:U,part:null,id:_.type}),O.tick()}).catch(function(N){O.warn(N),O.resetFragmentLoading(_)})},i.fragContextChanged=function(_){var O=this.fragCurrent;return!_||!O||_.level!==O.level||_.sn!==O.sn||_.urlId!==O.urlId},i.fragBufferedComplete=function(_,O){var N=this.mediaBuffer?this.mediaBuffer:this.media;this.log("Buffered "+_.type+" sn: "+_.sn+(O?" part: "+O.index:"")+" of "+(this.logPrefix==="[stream-controller]"?"level":"track")+" "+_.level+" "+o.default.toString(B.BufferHelper.getBuffered(N))),this.state=E.IDLE,this.tick()},i._handleFragmentLoadComplete=function(_){var O=this.transmuxer;if(!O)return;var N=_.frag,U=_.part,H=_.partsLoaded,G=!H||H.length===0||H.some(function(W){return!W}),L=new m.ChunkMetadata(N.level,N.sn,N.stats.chunkCount+1,0,U?U.index:-1,!G);O.flush(L)},i._handleFragmentLoadProgress=function(_){},i._doFragLoad=function(_,O,N,U){var H=this;if(N===void 0&&(N=null),!this.levels)throw new Error("frag load aborted, missing levels");if(N=Math.max(_.start,N||0),this.config.lowLatencyMode&&O){var G=O.partList;if(G&&U){N>_.end&&O.fragmentHint&&(_=O.fragmentHint);var L=this.getNextPart(G,_,N);if(L>-1){var W=G[L];return this.log("Loading part sn: "+_.sn+" p: "+W.index+" cc: "+_.cc+" of playlist ["+O.startSN+"-"+O.endSN+"] parts [0-"+L+"-"+(G.length-1)+"] "+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+_.level+", target: "+parseFloat(N.toFixed(3))),this.nextLoadPosition=W.start+W.duration,this.state=E.FRAG_LOADING,this.hls.trigger(k.Events.FRAG_LOADING,{frag:_,part:G[L],targetBufferTime:N}),this.doFragPartsLoad(_,G,L,U).catch(function(Z){return H.handleFragLoadError(Z)})}else if(!_.url||this.loadedEndOfParts(G,N))return Promise.resolve(null)}}return this.log("Loading fragment "+_.sn+" cc: "+_.cc+" "+(O?"of ["+O.startSN+"-"+O.endSN+"] ":"")+(this.logPrefix==="[stream-controller]"?"level":"track")+": "+_.level+", target: "+parseFloat(N.toFixed(3))),Object(K.isFiniteNumber)(_.sn)&&!this.bitrateTest&&(this.nextLoadPosition=_.start+_.duration),this.state=E.FRAG_LOADING,this.hls.trigger(k.Events.FRAG_LOADING,{frag:_,targetBufferTime:N}),this.fragmentLoader.load(_,U).catch(function(Z){return H.handleFragLoadError(Z)})},i.doFragPartsLoad=function(_,O,N,U){var H=this;return new Promise(function(G,L){var W=[],Z=function oe(ie){var be=O[ie];H.fragmentLoader.loadPart(_,be,U).then(function(Je){W[be.index]=Je;var Ae=Je.part;H.hls.trigger(k.Events.FRAG_LOADED,Je);var ke=O[ie+1];if(ke&&ke.fragment===_)oe(ie+1);else return G({frag:_,part:Ae,partsLoaded:W})}).catch(L)};Z(N)})},i.handleFragLoadError=function(_){var O=_.data;return O&&O.details===D.ErrorDetails.INTERNAL_ABORTED?this.handleFragLoadAborted(O.frag,O.part):this.hls.trigger(k.Events.ERROR,O),null},i._handleTransmuxerFlush=function(_){var O=this.getCurrentContext(_);if(!O||this.state!==E.PARSING){this.fragCurrent||(this.state=E.IDLE);return}var N=O.frag,U=O.part,H=O.level,G=self.performance.now();N.stats.parsing.end=G,U&&(U.stats.parsing.end=G),this.updateLevelTiming(N,U,H,_.partial)},i.getCurrentContext=function(_){var O=this.levels,N=_.level,U=_.sn,H=_.part;if(!O||!O[N])return this.warn("Levels object was unset while buffering fragment "+U+" of level "+N+". The current chunk will not be buffered."),null;var G=O[N],L=H>-1?Object(n.getPartWith)(G,U,H):null,W=L?L.fragment:Object(n.getFragmentWithSN)(G,U,this.fragCurrent);return W?{frag:W,part:L,level:G}:null},i.bufferFragmentData=function(_,O,N,U){if(!_||this.state!==E.PARSING)return;var H=_.data1,G=_.data2,L=H;if(H&&G&&(L=Object(R.appendUint8Array)(H,G)),!L||!L.length)return;var W={type:_.type,frag:O,part:N,chunkMeta:U,parent:O.type,data:L};this.hls.trigger(k.Events.BUFFER_APPENDING,W),_.dropped&&_.independent&&!N&&this.flushBufferGap(O)},i.flushBufferGap=function(_){var O=this.media;if(!O)return;if(!B.BufferHelper.isBuffered(O,O.currentTime)){this.flushMainBuffer(0,_.start);return}var N=O.currentTime,U=B.BufferHelper.bufferInfo(O,N,0),H=_.duration,G=Math.min(this.config.maxFragLookUpTolerance*2,H*.25),L=Math.max(Math.min(_.start-G,U.end-G),N+G);_.start-L>G&&this.flushMainBuffer(L,_.start)},i.getFwdBufferInfo=function(_,O){var N=this.config,U=this.getLoadPosition();if(!Object(K.isFiniteNumber)(U))return null;var H=B.BufferHelper.bufferInfo(_,U,N.maxBufferHole);if(H.len===0&&H.nextStart!==void 0){var G=this.fragmentTracker.getBufferedFrag(U,O);if(G&&H.nextStart=N?(O.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to "+O.maxMaxBufferLength+"s"),!0):!1},i.getNextFragment=function(_,O){var N,U,H=O.fragments,G=H.length;if(!G)return null;var L=this.config,W=H[0].start,Z;if(O.live){var oe=L.initialLiveManifestSize;if(G-1&&NN.start&&N.loaded},i.getInitialLiveFragment=function(_,O){var N=this.fragPrevious,U=null;if(N){if(_.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: "+N.programDateTime),U=Object(g.findFragmentByPDT)(O,N.endProgramDateTime,this.config.maxFragLookUpTolerance)),!U){var H=N.sn+1;if(H>=_.startSN&&H<=_.endSN){var G=O[H-_.startSN];N.cc===G.cc&&(U=G,this.log("Live playlist, switching playlist, load frag with next SN: "+U.sn))}U||(U=Object(g.findFragWithCC)(O,N.cc),U&&this.log("Live playlist, switching playlist, load frag with same CC: "+U.sn))}}else{var L=this.hls.liveSyncPosition;L!==null&&(U=this.getFragmentAtPosition(L,this.bitrateTest?_.fragmentEnd:_.edge,_))}return U},i.getFragmentAtPosition=function(_,O,N){var U=this.config,H=this.fragPrevious,G=N.fragments,L=N.endSN,W=N.fragmentHint,Z=U.maxFragLookUpTolerance,oe=!!(U.lowLatencyMode&&N.partList&&W);oe&&W&&!this.bitrateTest&&(G=G.concat(W),L=W.sn);var ie;if(_O-Z?0:Z;ie=Object(g.findFragmentByPTS)(H,G,_,be)}else ie=G[G.length-1];if(ie){var Je=ie.sn-N.startSN,Ae=H&&ie.level===H.level,ke=G[Je+1],Ze=this.fragmentTracker.getState(ie);if(Ze===w.FragmentState.BACKTRACKED){ie=null;for(var Xe=Je;G[Xe]&&this.fragmentTracker.getState(G[Xe])===w.FragmentState.BACKTRACKED;)H?ie=G[Xe--]:ie=G[--Xe];ie||(ie=ke)}else H&&ie.sn===H.sn&&!oe&&(Ae&&(ie.sn=G-O.maxFragLookUpTolerance&&H<=L;if(U!==null&&N.duration>U&&(H"+_.startSN+" prev-sn: "+(H?H.sn:"na")+" fragments: "+L),ie}return W},i.waitForCdnTuneIn=function(_){var O=3;return _.live&&_.canBlockReload&&_.tuneInGoal>Math.max(_.partHoldBack,_.partTarget*O)},i.setStartPosition=function(_,O){var N=this.startPosition;if(N"+_))}}]),s}(T.default)},"./src/controller/buffer-controller.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return g});var K=I("./src/polyfills/number.ts"),T=I("./src/events.ts"),w=I("./src/utils/logger.ts"),B=I("./src/errors.ts"),x=I("./src/utils/buffer-helper.ts"),k=I("./src/utils/mediasource-helper.ts"),D=I("./src/loader/fragment.ts"),m=I("./src/controller/buffer-operation-queue.ts"),R=Object(k.getMediaSource)(),M=/([ha]vc.)(?:\.[^.,]+)+/,g=function(){function n(d){var o=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=o.hls,h=o.media,S=o.mediaSource;w.logger.log("[buffer-controller]: Media source opened"),h&&(o.updateMediaElementDuration(),u.trigger(T.Events.MEDIA_ATTACHED,{media:h})),S&&S.removeEventListener("sourceopen",o._onMediaSourceOpen),o.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=d,this._initSourceBuffer(),this.registerListeners()}var p=n.prototype;return p.hasSourceTypes=function(){return this.getSourceBufferTypes().length>0||Object.keys(this.pendingTracks).length>0},p.destroy=function(){this.unregisterListeners(),this.details=null},p.registerListeners=function(){var o=this.hls;o.on(T.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),o.on(T.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.on(T.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.on(T.Events.BUFFER_RESET,this.onBufferReset,this),o.on(T.Events.BUFFER_APPENDING,this.onBufferAppending,this),o.on(T.Events.BUFFER_CODECS,this.onBufferCodecs,this),o.on(T.Events.BUFFER_EOS,this.onBufferEos,this),o.on(T.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),o.on(T.Events.LEVEL_UPDATED,this.onLevelUpdated,this),o.on(T.Events.FRAG_PARSED,this.onFragParsed,this),o.on(T.Events.FRAG_CHANGED,this.onFragChanged,this)},p.unregisterListeners=function(){var o=this.hls;o.off(T.Events.MEDIA_ATTACHING,this.onMediaAttaching,this),o.off(T.Events.MEDIA_DETACHING,this.onMediaDetaching,this),o.off(T.Events.MANIFEST_PARSED,this.onManifestParsed,this),o.off(T.Events.BUFFER_RESET,this.onBufferReset,this),o.off(T.Events.BUFFER_APPENDING,this.onBufferAppending,this),o.off(T.Events.BUFFER_CODECS,this.onBufferCodecs,this),o.off(T.Events.BUFFER_EOS,this.onBufferEos,this),o.off(T.Events.BUFFER_FLUSHING,this.onBufferFlushing,this),o.off(T.Events.LEVEL_UPDATED,this.onLevelUpdated,this),o.off(T.Events.FRAG_PARSED,this.onFragParsed,this),o.off(T.Events.FRAG_CHANGED,this.onFragChanged,this)},p._initSourceBuffer=function(){this.sourceBuffer={},this.operationQueue=new m.default(this.sourceBuffer),this.listeners={audio:[],video:[],audiovideo:[]}},p.onManifestParsed=function(o,u){var h=2;(u.audio&&!u.video||!u.altAudio)&&(h=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=h,this.details=null,w.logger.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},p.onMediaAttaching=function(o,u){var h=this.media=u.media;if(h&&R){var S=this.mediaSource=new R;S.addEventListener("sourceopen",this._onMediaSourceOpen),S.addEventListener("sourceended",this._onMediaSourceEnded),S.addEventListener("sourceclose",this._onMediaSourceClose),h.src=self.URL.createObjectURL(S),this._objectUrl=h.src}},p.onMediaDetaching=function(){var o=this.media,u=this.mediaSource,h=this._objectUrl;if(u){if(w.logger.log("[buffer-controller]: media source detaching"),u.readyState==="open")try{u.endOfStream()}catch(S){w.logger.warn("[buffer-controller]: onMediaDetaching: "+S.message+" while calling endOfStream")}this.onBufferReset(),u.removeEventListener("sourceopen",this._onMediaSourceOpen),u.removeEventListener("sourceended",this._onMediaSourceEnded),u.removeEventListener("sourceclose",this._onMediaSourceClose),o&&(h&&self.URL.revokeObjectURL(h),o.src===h?(o.removeAttribute("src"),o.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(T.Events.MEDIA_DETACHED,void 0)},p.onBufferReset=function(){var o=this;this.getSourceBufferTypes().forEach(function(u){var h=o.sourceBuffer[u];try{h&&(o.removeBufferListeners(u),o.mediaSource&&o.mediaSource.removeSourceBuffer(h),o.sourceBuffer[u]=void 0)}catch(S){w.logger.warn("[buffer-controller]: Failed to reset the "+u+" buffer",S)}}),this._initSourceBuffer()},p.onBufferCodecs=function(o,u){var h=this,S=this.getSourceBufferTypes().length;if(Object.keys(u).forEach(function(b){if(S){var v=h.tracks[b];if(v&&typeof v.buffer.changeType=="function"){var P=u[b],E=P.codec,f=P.levelCodec,c=P.container,s=(v.levelCodec||v.codec).replace(M,"$1"),i=(f||E).replace(M,"$1");if(s!==i){var C=c+";codecs="+(f||E);h.appendChangeType(b,C)}}}else h.pendingTracks[b]=u[b]}),S)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()},p.appendChangeType=function(o,u){var h=this,S=this.operationQueue,b={execute:function(){var P=h.sourceBuffer[o];P&&(w.logger.log("[buffer-controller]: changing "+o+" sourceBuffer type to "+u),P.changeType(u)),S.shiftAndExecuteNext(o)},onStart:function(){},onComplete:function(){},onError:function(P){w.logger.warn("[buffer-controller]: Failed to change "+o+" SourceBuffer type",P)}};S.append(b,o)},p.onBufferAppending=function(o,u){var h=this,S=this.hls,b=this.operationQueue,v=this.tracks,P=u.data,E=u.type,f=u.frag,c=u.part,s=u.chunkMeta,i=s.buffering[E],C=self.performance.now();i.start=C;var _=f.stats.buffering,O=c?c.stats.buffering:null;_.start===0&&(_.start=C),O&&O.start===0&&(O.start=C);var N=v.audio,U=E==="audio"&&s.id===1&&(N==null?void 0:N.container)==="audio/mpeg",H={execute:function(){if(i.executeStart=self.performance.now(),U){var L=h.sourceBuffer[E];if(L){var W=f.start-L.timestampOffset;Math.abs(W)>=.1&&(w.logger.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to "+f.start+" (delta: "+W+") sn: "+f.sn+")"),L.timestampOffset=f.start)}}h.appendExecutor(P,E)},onStart:function(){},onComplete:function(){var L=self.performance.now();i.executeEnd=i.end=L,_.first===0&&(_.first=L),O&&O.first===0&&(O.first=L);var W=h.sourceBuffer,Z={};for(var oe in W)Z[oe]=x.BufferHelper.getBuffered(W[oe]);h.appendError=0,h.hls.trigger(T.Events.BUFFER_APPENDED,{type:E,frag:f,part:c,chunkMeta:s,parent:f.type,timeRanges:Z})},onError:function(L){w.logger.error("[buffer-controller]: Error encountered while trying to append to the "+E+" SourceBuffer",L);var W={type:B.ErrorTypes.MEDIA_ERROR,parent:f.type,details:B.ErrorDetails.BUFFER_APPEND_ERROR,err:L,fatal:!1};L.code===DOMException.QUOTA_EXCEEDED_ERR?W.details=B.ErrorDetails.BUFFER_FULL_ERROR:(h.appendError++,W.details=B.ErrorDetails.BUFFER_APPEND_ERROR,h.appendError>S.config.appendErrorMaxRetry&&(w.logger.error("[buffer-controller]: Failed "+S.config.appendErrorMaxRetry+" times to append segment in sourceBuffer"),W.fatal=!0)),S.trigger(T.Events.ERROR,W)}};b.append(H,E)},p.onBufferFlushing=function(o,u){var h=this,S=this.operationQueue,b=function(P){return{execute:h.removeExecutor.bind(h,P,u.startOffset,u.endOffset),onStart:function(){},onComplete:function(){h.hls.trigger(T.Events.BUFFER_FLUSHED,{type:P})},onError:function(f){w.logger.warn("[buffer-controller]: Failed to remove from "+P+" SourceBuffer",f)}}};u.type?S.append(b(u.type),u.type):this.getSourceBufferTypes().forEach(function(v){S.append(b(v),v)})},p.onFragParsed=function(o,u){var h=this,S=u.frag,b=u.part,v=[],P=b?b.elementaryStreams:S.elementaryStreams;P[D.ElementaryStreamTypes.AUDIOVIDEO]?v.push("audiovideo"):(P[D.ElementaryStreamTypes.AUDIO]&&v.push("audio"),P[D.ElementaryStreamTypes.VIDEO]&&v.push("video"));var E=function(){var c=self.performance.now();S.stats.buffering.end=c,b&&(b.stats.buffering.end=c);var s=b?b.stats:S.stats;h.hls.trigger(T.Events.FRAG_BUFFERED,{frag:S,part:b,stats:s,id:S.type})};v.length===0&&w.logger.warn("Fragments must have at least one ElementaryStreamType set. type: "+S.type+" level: "+S.level+" sn: "+S.sn),this.blockBuffers(E,v)},p.onFragChanged=function(o,u){this.flushBackBuffer()},p.onBufferEos=function(o,u){var h=this,S=this.getSourceBufferTypes().reduce(function(b,v){var P=h.sourceBuffer[v];return(!u.type||u.type===v)&&(P&&!P.ended&&(P.ended=!0,w.logger.log("[buffer-controller]: "+v+" sourceBuffer now EOS"))),b&&!!(!P||P.ended)},!0);S&&this.blockBuffers(function(){var b=h.mediaSource;if(!b||b.readyState!=="open")return;b.endOfStream()})},p.onLevelUpdated=function(o,u){var h=u.details;if(!h.fragments.length)return;this.details=h,this.getSourceBufferTypes().length?this.blockBuffers(this.updateMediaElementDuration.bind(this)):this.updateMediaElementDuration()},p.flushBackBuffer=function(){var o=this.hls,u=this.details,h=this.media,S=this.sourceBuffer;if(!h||u===null)return;var b=this.getSourceBufferTypes();if(!b.length)return;var v=u.live&&o.config.liveBackBufferLength!==null?o.config.liveBackBufferLength:o.config.backBufferLength;if(!Object(K.isFiniteNumber)(v)||v<0)return;var P=h.currentTime,E=u.levelTargetDuration,f=Math.max(v,E),c=Math.floor(P/E)*E-f;b.forEach(function(s){var i=S[s];if(i){var C=x.BufferHelper.getBuffered(i);C.length>0&&c>C.start(0)&&(o.trigger(T.Events.BACK_BUFFER_REACHED,{bufferEnd:c}),u.live&&o.trigger(T.Events.LIVE_BACK_BUFFER_REACHED,{bufferEnd:c}),o.trigger(T.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:c,type:s}))}})},p.updateMediaElementDuration=function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var o=this.details,u=this.hls,h=this.media,S=this.mediaSource,b=o.fragments[0].start+o.totalduration,v=h.duration,P=Object(K.isFiniteNumber)(S.duration)?S.duration:0;o.live&&u.config.liveDurationInfinity?(w.logger.log("[buffer-controller]: Media Source duration is set to Infinity"),S.duration=Infinity,this.updateSeekableRange(o)):(b>P&&b>v||!Object(K.isFiniteNumber)(v))&&(w.logger.log("[buffer-controller]: Updating Media Source duration to "+b.toFixed(3)),S.duration=b)},p.updateSeekableRange=function(o){var u=this.mediaSource,h=o.fragments,S=h.length;if(S&&o.live&&u!==null&&u!==void 0&&u.setLiveSeekableRange){var b=Math.max(0,h[0].start),v=Math.max(b,b+o.totalduration);u.setLiveSeekableRange(b,v)}},p.checkPendingTracks=function(){var o=this.bufferCodecEventsExpected,u=this.operationQueue,h=this.pendingTracks,S=Object.keys(h).length;if(S&&!o||S===2){this.createSourceBuffers(h),this.pendingTracks={};var b=this.getSourceBufferTypes();if(b.length===0){this.hls.trigger(T.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,reason:"could not create source buffer for media codec(s)"});return}b.forEach(function(v){u.executeNext(v)})}},p.createSourceBuffers=function(o){var u=this.sourceBuffer,h=this.mediaSource;if(!h)throw Error("createSourceBuffers called when mediaSource was null");var S=0;for(var b in o)if(!u[b]){var v=o[b];if(!v)throw Error("source buffer exists for track "+b+", however track does not");var P=v.levelCodec||v.codec,E=v.container+";codecs="+P;w.logger.log("[buffer-controller]: creating sourceBuffer("+E+")");try{var f=u[b]=h.addSourceBuffer(E),c=b;this.addBufferListener(c,"updatestart",this._onSBUpdateStart),this.addBufferListener(c,"updateend",this._onSBUpdateEnd),this.addBufferListener(c,"error",this._onSBUpdateError),this.tracks[b]={buffer:f,codec:P,container:v.container,levelCodec:v.levelCodec,id:v.id},S++}catch(s){w.logger.error("[buffer-controller]: error while trying to add sourceBuffer: "+s.message),this.hls.trigger(T.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:s,mimeType:E})}}S&&this.hls.trigger(T.Events.BUFFER_CREATED,{tracks:this.tracks})},p._onSBUpdateStart=function(o){var u=this.operationQueue,h=u.current(o);h.onStart()},p._onSBUpdateEnd=function(o){var u=this.operationQueue,h=u.current(o);h.onComplete(),u.shiftAndExecuteNext(o)},p._onSBUpdateError=function(o,u){w.logger.error("[buffer-controller]: "+o+" SourceBuffer error",u),this.hls.trigger(T.Events.ERROR,{type:B.ErrorTypes.MEDIA_ERROR,details:B.ErrorDetails.BUFFER_APPENDING_ERROR,fatal:!1});var h=this.operationQueue.current(o);h&&h.onError(u)},p.removeExecutor=function(o,u,h){var S=this.media,b=this.mediaSource,v=this.operationQueue,P=this.sourceBuffer,E=P[o];if(!S||!b||!E){w.logger.warn("[buffer-controller]: Attempting to remove from the "+o+" SourceBuffer, but it does not exist"),v.shiftAndExecuteNext(o);return}var f=Object(K.isFiniteNumber)(S.duration)?S.duration:Infinity,c=Object(K.isFiniteNumber)(b.duration)?b.duration:Infinity,s=Math.max(0,u),i=Math.min(h,f,c);i>s?(w.logger.log("[buffer-controller]: Removing ["+s+","+i+"] from the "+o+" SourceBuffer"),console.assert(!E.updating,o+" sourceBuffer must not be updating"),E.remove(s,i)):v.shiftAndExecuteNext(o)},p.appendExecutor=function(o,u){var h=this.operationQueue,S=this.sourceBuffer,b=S[u];if(!b){w.logger.warn("[buffer-controller]: Attempting to append to the "+u+" SourceBuffer, but it does not exist"),h.shiftAndExecuteNext(u);return}b.ended=!1,console.assert(!b.updating,u+" sourceBuffer must not be updating"),b.appendBuffer(o)},p.blockBuffers=function(o,u){var h=this;if(u===void 0&&(u=this.getSourceBufferTypes()),!u.length){w.logger.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve(o);return}var S=this.operationQueue,b=u.map(function(v){return S.appendBlocker(v)});Promise.all(b).then(function(){o(),u.forEach(function(v){var P=h.sourceBuffer[v];(!P||!P.updating)&&S.shiftAndExecuteNext(v)})})},p.getSourceBufferTypes=function(){return Object.keys(this.sourceBuffer)},p.addBufferListener=function(o,u,h){var S=this.sourceBuffer[o];if(!S)return;var b=h.bind(this,o);this.listeners[o].push({event:u,listener:b}),S.addEventListener(u,b)},p.removeBufferListeners=function(o){var u=this.sourceBuffer[o];if(!u)return;this.listeners[o].forEach(function(h){u.removeEventListener(h.event,h.listener)})},n}()},"./src/controller/buffer-operation-queue.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return T});var K=I("./src/utils/logger.ts"),T=function(){function w(x){this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=x}var B=w.prototype;return B.append=function(k,D){var m=this.queues[D];m.push(k),m.length===1&&this.buffers[D]&&this.executeNext(D)},B.insertAbort=function(k,D){var m=this.queues[D];m.unshift(k),this.executeNext(D)},B.appendBlocker=function(k){var D,m=new Promise(function(M){D=M}),R={execute:D,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(R,k),m},B.executeNext=function(k){var D=this.buffers,m=this.queues,R=D[k],M=m[k];if(M.length){var g=M[0];try{g.execute()}catch(n){K.logger.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),g.onError(n),(!R||!R.updating)&&(M.shift(),this.executeNext(k))}}},B.shiftAndExecuteNext=function(k){this.queues[k].shift(),this.executeNext(k)},B.current=function(k){return this.queues[k][0]},w}()},"./src/controller/cap-level-controller.ts":function(re,z,I){"use strict";I.r(z);var K=I("./src/events.ts");function T(x,k){for(var D=0;D0&&this.mediaWidth>0){var m=this.hls.levels;if(m.length){var R=this.hls;R.autoLevelCapping=this.getMaxLevel(m.length-1),R.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=R.autoLevelCapping}}},k.getMaxLevel=function(m){var R=this,M=this.hls.levels;if(!M.length)return-1;var g=M.filter(function(n,p){return x.isLevelAllowed(p,R.restrictedLevels)&&p<=m});return this.clientRect=null,x.getMaxLevelByMediaSize(g,this.mediaWidth,this.mediaHeight)},k.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()},k.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)},k.getDimensions=function(){if(this.clientRect)return this.clientRect;var m=this.media,R={width:0,height:0};if(m){var M=m.getBoundingClientRect();R.width=M.width,R.height=M.height,!R.width&&!R.height&&(R.width=M.right-M.left||m.width||0,R.height=M.bottom-M.top||m.height||0)}return this.clientRect=R,R},x.isLevelAllowed=function(m,R){return R===void 0&&(R=[]),R.indexOf(m)===-1},x.getMaxLevelByMediaSize=function(m,R,M){if(!m||!m.length)return-1;for(var g=function(u,h){return h?u.width!==h.width||u.height!==h.height:!0},n=m.length-1,p=0;p=R||d.height>=M)&&g(d,m[p+1])){n=p;break}}return n},w(x,[{key:"mediaWidth",get:function(){return this.getDimensions().width*x.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*x.contentScaleFactor}}],[{key:"contentScaleFactor",get:function(){var m=1;try{m=self.devicePixelRatio}catch(R){}return m}}]),x}();z.default=B},"./src/controller/cmcd-controller.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return g});var K=I("./src/events.ts"),T=I("./src/types/cmcd.ts"),w=I("./src/utils/buffer-helper.ts"),B=I("./src/utils/logger.ts");function x(n,p){for(var d=0;d=n.length?{done:!0}:{done:!1,value:n[o++]}}}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 m(n,p){if(!n)return;if(typeof n=="string")return R(n,p);var d=Object.prototype.toString.call(n).slice(8,-1);if(d==="Object"&&n.constructor&&(d=n.constructor.name),d==="Map"||d==="Set")return Array.from(n);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return R(n,p)}function R(n,p){(p==null||p>n.length)&&(p=n.length);for(var d=0,o=new Array(p);du&&(u=v.bitrate)}return u>0?u:NaN},p.getBufferLength=function(o){var u=this.hls.media,h=o===T.CMCDObjectType.AUDIO?this.audioBuffer:this.videoBuffer;if(!h||!u)return NaN;var S=w.BufferHelper.bufferInfo(h,u.currentTime,this.config.maxBufferHole);return S.len*1e3},p.createPlaylistLoader=function(){var o=this.config.pLoader,u=this.applyPlaylistData,h=o||this.config.loader;return function(){function S(v){this.loader=void 0,this.loader=new h(v)}var b=S.prototype;return b.destroy=function(){this.loader.destroy()},b.abort=function(){this.loader.abort()},b.load=function(P,E,f){u(P),this.loader.load(P,E,f)},k(S,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),S}()},p.createFragmentLoader=function(){var o=this.config.fLoader,u=this.applyFragmentData,h=o||this.config.loader;return function(){function S(v){this.loader=void 0,this.loader=new h(v)}var b=S.prototype;return b.destroy=function(){this.loader.destroy()},b.abort=function(){this.loader.abort()},b.load=function(P,E,f){u(P),this.loader.load(P,E,f)},k(S,[{key:"stats",get:function(){return this.loader.stats}},{key:"context",get:function(){return this.loader.context}}]),S}()},n.uuid=function(){var o=URL.createObjectURL(new Blob),u=o.toString();return URL.revokeObjectURL(o),u.substr(u.lastIndexOf("/")+1)},n.serialize=function(o){for(var u=[],h=function(U){return!Number.isNaN(U)&&U!=null&&U!==""&&U!==!1},S=function(U){return Math.round(U)},b=function(U){return S(U/100)*100},v=function(U){return encodeURIComponent(U)},P={br:S,d:S,bl:b,dl:b,mtp:b,nor:v,rtp:b,tb:S},E=Object.keys(o||{}).sort(),f=D(E),c;!(c=f()).done;){var s=c.value,i=o[s];if(!h(i))continue;if(s==="v"&&i===1)continue;if(s=="pr"&&i===1)continue;var C=P[s];C&&(i=C(i));var _=typeof i,O=void 0;s==="ot"||s==="sf"||s==="st"?O=s+"="+i:_==="boolean"?O=s:_==="number"?O=s+"="+i:O=s+"="+JSON.stringify(i),u.push(O)}return u.join(",")},n.toHeaders=function(o){for(var u=Object.keys(o),h={},S=["Object","Request","Session","Status"],b=[{},{},{},{}],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},P=0,E=u;PD){this.hls.trigger(K.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});return}var v=D-this._requestLicenseFailureCount+1;w.logger.warn("Retrying license request, "+v+" attempts left"),this._requestLicense(u,h)}break}},n._generateLicenseRequestChallenge=function(d,o){switch(d.mediaKeySystemDomain){case B.KeySystems.WIDEVINE:return o}throw new Error("unsupported key-system: "+d.mediaKeySystemDomain)},n._requestLicense=function(d,o){w.logger.log("Requesting content license for key-system");var u=this._mediaKeysList[0];if(!u){w.logger.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),this.hls.trigger(K.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_NO_ACCESS,fatal:!0});return}try{var h=this.getLicenseServerUrl(u.mediaKeySystemDomain),S=this._createLicenseXhr(h,d,o);w.logger.log("Sending license request to URL: "+h);var b=this._generateLicenseRequestChallenge(u,d);S.send(b)}catch(v){w.logger.error("Failure requesting DRM license: "+v),this.hls.trigger(K.Events.ERROR,{type:T.ErrorTypes.KEY_SYSTEM_ERROR,details:T.ErrorDetails.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},n.onMediaAttached=function(d,o){if(!this._emeEnabled)return;var u=o.media;this._media=u,u.addEventListener("encrypted",this._onMediaEncrypted)},n.onMediaDetached=function(){var d=this._media,o=this._mediaKeysList;if(!d)return;d.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(o.map(function(u){if(u.mediaKeysSession)return u.mediaKeysSession.close().catch(function(){})})).then(function(){return d.setMediaKeys(null)}).catch(function(){})},n.onManifestParsed=function(d,o){if(!this._emeEnabled)return;var u=o.levels.map(function(S){return S.audioCodec}).filter(function(S){return!!S}),h=o.levels.map(function(S){return S.videoCodec}).filter(function(S){return!!S});this._attemptKeySystemAccess(B.KeySystems.WIDEVINE,u,h)},k(g,[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}]),g}();z.default=M},"./src/controller/fps-controller.ts":function(re,z,I){"use strict";I.r(z);var K=I("./src/events.ts"),T=I("./src/utils/logger.ts"),w=function(){function B(k){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=k,this.registerListeners()}var x=B.prototype;return x.setStreamController=function(D){this.streamController=D},x.registerListeners=function(){this.hls.on(K.Events.MEDIA_ATTACHING,this.onMediaAttaching,this)},x.unregisterListeners=function(){this.hls.off(K.Events.MEDIA_ATTACHING,this.onMediaAttaching)},x.destroy=function(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null},x.onMediaAttaching=function(D,m){var R=this.hls.config;if(R.capLevelOnFPSDrop){var M=m.media instanceof self.HTMLVideoElement?m.media:null;this.media=M,M&&typeof M.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),R.fpsDroppedMonitoringPeriod)}},x.checkFPS=function(D,m,R){var M=performance.now();if(m){if(this.lastTime){var g=M-this.lastTime,n=R-this.lastDroppedFrames,p=m-this.lastDecodedFrames,d=1e3*n/g,o=this.hls;if(o.trigger(K.Events.FPS_DROP,{currentDropped:n,currentDecoded:p,totalDroppedFrames:R}),d>0&&n>o.config.fpsDroppedMonitoringThreshold*p){var u=o.currentLevel;T.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+u),u>0&&(o.autoLevelCapping===-1||o.autoLevelCapping>=u)&&(u=u-1,o.trigger(K.Events.FPS_DROP_LEVEL_CAPPING,{level:u,droppedLevel:o.currentLevel}),o.autoLevelCapping=u,this.streamController.nextLevelSwitch())}}this.lastTime=M,this.lastDroppedFrames=R,this.lastDecodedFrames=m}},x.checkFPSInterval=function(){var D=this.media;if(D)if(this.isVideoPlaybackQualityAvailable){var m=D.getVideoPlaybackQuality();this.checkFPS(D,m.totalVideoFrames,m.droppedVideoFrames)}else this.checkFPS(D,D.webkitDecodedFrameCount,D.webkitDroppedFrameCount)},B}();z.default=w},"./src/controller/fragment-finders.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"findFragmentByPDT",function(){return w}),I.d(z,"findFragmentByPTS",function(){return B}),I.d(z,"fragmentWithinToleranceTest",function(){return x}),I.d(z,"pdtWithinToleranceTest",function(){return k}),I.d(z,"findFragWithCC",function(){return D});var K=I("./src/polyfills/number.ts"),T=I("./src/utils/binary-search.ts");function w(m,R,M){if(R===null||!Array.isArray(m)||!m.length||!Object(K.isFiniteNumber)(R))return null;var g=m[0].programDateTime;if(R<(g||0))return null;var n=m[m.length-1].endProgramDateTime;if(R>=(n||0))return null;M=M||0;for(var p=0;pm&&M.start?-1:0}function k(m,R,M){var g=Math.min(R,M.duration+(M.deltaPTS?M.deltaPTS:0))*1e3,n=M.endProgramDateTime||0;return n-g>m}function D(m,R){return T.default.search(m,function(M){return M.ccR?-1:0})}},"./src/controller/fragment-tracker.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"FragmentState",function(){return w}),I.d(z,"FragmentTracker",function(){return B});var K=I("./src/events.ts"),T=I("./src/types/loader.ts"),w;(function(D){D.NOT_LOADED="NOT_LOADED",D.BACKTRACKED="BACKTRACKED",D.APPENDING="APPENDING",D.PARTIAL="PARTIAL",D.OK="OK"})(w||(w={}));var B=function(){function D(R){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=R,this._registerListeners()}var m=D.prototype;return m._registerListeners=function(){var M=this.hls;M.on(K.Events.BUFFER_APPENDED,this.onBufferAppended,this),M.on(K.Events.FRAG_BUFFERED,this.onFragBuffered,this),M.on(K.Events.FRAG_LOADED,this.onFragLoaded,this)},m._unregisterListeners=function(){var M=this.hls;M.off(K.Events.BUFFER_APPENDED,this.onBufferAppended,this),M.off(K.Events.FRAG_BUFFERED,this.onFragBuffered,this),M.off(K.Events.FRAG_LOADED,this.onFragLoaded,this)},m.destroy=function(){this._unregisterListeners(),this.fragments=this.timeRanges=null},m.getAppendedFrag=function(M,g){if(g===T.PlaylistLevelType.MAIN){var n=this.activeFragment,p=this.activeParts;if(!n)return null;if(p)for(var d=p.length;d--;){var o=p[d],u=o?o.end:n.appendedPTS;if(o.start<=M&&u!==void 0&&M<=u)return d>9&&(this.activeParts=p.slice(d-9)),o}else if(n.start<=M&&n.appendedPTS!==void 0&&M<=n.appendedPTS)return n}return this.getBufferedFrag(M,g)},m.getBufferedFrag=function(M,g){for(var n=this.fragments,p=Object.keys(n),d=p.length;d--;){var o=n[p[d]];if((o==null?void 0:o.body.type)===g&&o.buffered){var u=o.body;if(u.start<=M&&M<=u.end)return u}}return null},m.detectEvictedFragments=function(M,g,n){var p=this;Object.keys(this.fragments).forEach(function(d){var o=p.fragments[d];if(!o)return;if(!o.buffered){o.body.type===n&&p.removeFragment(o.body);return}var u=o.range[M];if(!u)return;u.time.some(function(h){var S=!p.isTimeBuffered(h.startPTS,h.endPTS,g);return S&&p.removeFragment(o.body),S})})},m.detectPartialFragments=function(M){var g=this,n=this.timeRanges,p=M.frag,d=M.part;if(!n||p.sn==="initSegment")return;var o=k(p),u=this.fragments[o];if(!u)return;Object.keys(n).forEach(function(h){var S=p.elementaryStreams[h];if(!S)return;var b=n[h],v=d!==null||S.partial===!0;u.range[h]=g.getBufferedTimes(p,d,v,b)}),u.backtrack=u.loaded=null,Object.keys(u.range).length?u.buffered=!0:this.removeFragment(u.body)},m.fragBuffered=function(M){var g=k(M),n=this.fragments[g];n&&(n.backtrack=n.loaded=null,n.buffered=!0)},m.getBufferedTimes=function(M,g,n,p){for(var d={time:[],partial:n},o=g?g.start:M.start,u=g?g.end:M.end,h=M.minEndPTS||u,S=M.maxStartPTS||o,b=0;b=v&&h<=P){d.time.push({startPTS:Math.max(o,p.start(b)),endPTS:Math.min(u,p.end(b))});break}else if(ov)d.partial=!0,d.time.push({startPTS:Math.max(o,p.start(b)),endPTS:Math.min(u,p.end(b))});else if(u<=v)break}return d},m.getPartialFragment=function(M){var g=null,n,p,d,o=0,u=this.bufferPadding,h=this.fragments;return Object.keys(h).forEach(function(S){var b=h[S];if(!b)return;x(b)&&(p=b.body.start-u,d=b.body.end+u,M>=p&&M<=d&&(n=Math.min(M-p,d-M),o<=n&&(g=b.body,o=n)))}),g},m.getState=function(M){var g=k(M),n=this.fragments[g];return n?n.buffered?x(n)?w.PARTIAL:w.OK:n.backtrack?w.BACKTRACKED:w.APPENDING:w.NOT_LOADED},m.backtrack=function(M,g){var n=k(M),p=this.fragments[n];if(!p||p.backtrack)return null;var d=p.backtrack=g||p.loaded;return p.loaded=null,d},m.getBacktrackData=function(M){var g=k(M),n=this.fragments[g];if(n){var p,d=n.backtrack;if(d!=null&&(p=d.payload)!==null&&p!==void 0&&p.byteLength)return d;this.removeFragment(M)}return null},m.isTimeBuffered=function(M,g,n){for(var p,d,o=0;o=p&&g<=d)return!0;if(g<=p)return!1}return!1},m.onFragLoaded=function(M,g){var n=g.frag,p=g.part;if(n.sn==="initSegment"||n.bitrateTest||p)return;var d=k(n);this.fragments[d]={body:n,loaded:g,backtrack:null,buffered:!1,range:Object.create(null)}},m.onBufferAppended=function(M,g){var n=this,p=g.frag,d=g.part,o=g.timeRanges;if(p.type===T.PlaylistLevelType.MAIN)if(this.activeFragment=p,d){var u=this.activeParts;u||(this.activeParts=u=[]),u.push(d)}else this.activeParts=null;this.timeRanges=o,Object.keys(o).forEach(function(h){var S=o[h];if(n.detectEvictedFragments(h,S),!d)for(var b=0;bM&&p.removeFragment(u)}})},m.removeFragment=function(M){var g=k(M);M.stats.loaded=0,M.clearElementaryStreamInfo(),delete this.fragments[g]},m.removeAllFragments=function(){this.fragments=Object.create(null),this.activeFragment=null,this.activeParts=null},D}();function x(D){var m,R;return D.buffered&&(((m=D.range.video)===null||m===void 0?void 0:m.partial)||((R=D.range.audio)===null||R===void 0?void 0:R.partial))}function k(D){return D.type+"_"+D.level+"_"+D.urlId+"_"+D.sn}},"./src/controller/gap-controller.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"STALL_MINIMUM_DURATION_MS",function(){return x}),I.d(z,"MAX_START_GAP_JUMP",function(){return k}),I.d(z,"SKIP_BUFFER_HOLE_STEP_SECONDS",function(){return D}),I.d(z,"SKIP_BUFFER_RANGE_START",function(){return m}),I.d(z,"default",function(){return R});var K=I("./src/utils/buffer-helper.ts"),T=I("./src/errors.ts"),w=I("./src/events.ts"),B=I("./src/utils/logger.ts"),x=250,k=2,D=.1,m=.05,R=function(){function M(n,p,d,o){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=n,this.media=p,this.fragmentTracker=d,this.hls=o}var g=M.prototype;return g.destroy=function(){this.hls=this.fragmentTracker=this.media=null},g.poll=function(p){var d=this.config,o=this.media,u=this.stalled,h=o.currentTime,S=o.seeking,b=this.seeking&&!S,v=!this.seeking&&S;if(this.seeking=S,h!==p){if(this.moved=!0,u!==null){if(this.stallReported){var P=self.performance.now()-u;B.logger.warn("playback not stuck anymore @"+h+", after "+Math.round(P)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if((v||b)&&(this.stalled=null),o.paused||o.ended||o.playbackRate===0||!K.BufferHelper.getBuffered(o).length)return;var E=K.BufferHelper.bufferInfo(o,h,0),f=E.len>0,c=E.nextStart||0;if(!f&&!c)return;if(S){var s=E.len>k,i=!c||c-h>k&&!this.fragmentTracker.getPartialFragment(h);if(s||i)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var C,_=Math.max(c,E.start||0)-h,O=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,N=O==null||((C=O.details)===null||C===void 0)?void 0:C.live,U=N?O.details.targetduration*2:k;if(_>0&&_<=U){this._trySkipBufferHole(null);return}}var H=self.performance.now();if(u===null){this.stalled=H;return}var G=H-u;!S&&G>=x&&this._reportStall(E.len);var L=K.BufferHelper.bufferInfo(o,h,d.maxBufferHole);this._tryFixBufferStall(L,G)},g._tryFixBufferStall=function(p,d){var o=this.config,u=this.fragmentTracker,h=this.media,S=h.currentTime,b=u.getPartialFragment(S);if(b){var v=this._trySkipBufferHole(b);if(v)return}p.len>o.maxBufferHole&&d>o.highBufferWatchdogPeriod*1e3&&(B.logger.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},g._reportStall=function(p){var d=this.hls,o=this.media,u=this.stallReported;u||(this.stallReported=!0,B.logger.warn("Playback stalling at @"+o.currentTime+" due to low buffer (buffer="+p+")"),d.trigger(w.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.BUFFER_STALLED_ERROR,fatal:!1,buffer:p}))},g._trySkipBufferHole=function(p){for(var d=this.config,o=this.hls,u=this.media,h=u.currentTime,S=0,b=K.BufferHelper.getBuffered(u),v=0;v=S&&h.05&&this.forwardBufferLength>1){var v=Math.min(2,Math.max(1,o)),P=Math.round(2/(1+Math.exp(-.75*h-this.edgeStalled))*20)/20;M.playbackRate=Math.min(v,Math.max(1,P))}else M.playbackRate!==1&&M.playbackRate!==0&&(M.playbackRate=1)},m.estimateLiveEdge=function(){var M=this.levelDetails;return M===null?null:M.edge+M.age},m.computeLatency=function(){var M=this.estimateLiveEdge();return M===null?null:M-this.currentTime},x(D,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var M=this.config,g=this.levelDetails;return M.liveMaxLatencyDuration!==void 0?M.liveMaxLatencyDuration:g?M.liveMaxLatencyDurationCount*g.targetduration:0}},{key:"targetLatency",get:function(){var M=this.levelDetails;if(M===null)return null;var g=M.holdBack,n=M.partHoldBack,p=M.targetduration,d=this.config,o=d.liveSyncDuration,u=d.liveSyncDurationCount,h=d.lowLatencyMode,S=this.hls.userConfig,b=h&&n||g;(S.liveSyncDuration||S.liveSyncDurationCount||b===0)&&(b=o!==void 0?o:u*p);var v=p,P=1;return b+Math.min(this.stallCount*P,v)}},{key:"liveSyncPosition",get:function(){var M=this.estimateLiveEdge(),g=this.targetLatency,n=this.levelDetails;if(M===null||g===null||n===null)return null;var p=n.edge,d=M-g-this.edgeStalled,o=p-n.totalduration,u=p-(this.config.lowLatencyMode&&n.partTarget||n.targetduration);return Math.min(Math.max(o,d),u)}},{key:"drift",get:function(){var M=this.levelDetails;return M===null?1:M.drift}},{key:"edgeStalled",get:function(){var M=this.levelDetails;if(M===null)return 0;var g=(this.config.lowLatencyMode&&M.partTarget||M.targetduration)*3;return Math.max(M.age-g,0)}},{key:"forwardBufferLength",get:function(){var M=this.media,g=this.levelDetails;if(!M||!g)return 0;var n=M.buffered.length;return n?M.buffered.end(n-1):g.edge-this.currentTime}}]),D}()},"./src/controller/level-controller.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return d});var K=I("./src/types/level.ts"),T=I("./src/events.ts"),w=I("./src/errors.ts"),B=I("./src/utils/codecs.ts"),x=I("./src/controller/level-helper.ts"),k=I("./src/controller/base-playlist-controller.ts"),D=I("./src/types/loader.ts");function m(){return m=Object.assign||function(o){for(var u=1;u0){c=P[0].bitrate,P.sort(function(G,L){return G.bitrate-L.bitrate}),this._levels=P;for(var N=0;Nthis.hls.config.fragLoadingMaxRetry&&(s=v.frag.level)):s=v.frag.level}break;case w.ErrorDetails.LEVEL_LOAD_ERROR:case w.ErrorDetails.LEVEL_LOAD_TIMEOUT:P&&(P.deliveryDirectives&&(c=!1),s=P.level),f=!0;break;case w.ErrorDetails.REMUX_ALLOC_ERROR:s=v.level,f=!0;break}s!==void 0&&this.recoverLevel(v,s,f,c)},h.recoverLevel=function(b,v,P,E){var f=b.details,c=this._levels[v];if(c.loadError++,P){var s=this.retryLoadingOrFail(b);if(s)b.levelRetry=!0;else{this.currentLevelIndex=-1;return}}if(E){var i=c.url.length;if(i>1&&c.loadError1){var E=(v.urlId+1)%P;this.warn("Switching to redundant URL-id "+E),this._levels.forEach(function(f){f.urlId=E}),this.level=b}},h.onFragLoaded=function(b,v){var P=v.frag;if(P!==void 0&&P.type===D.PlaylistLevelType.MAIN){var E=this._levels[P.level];E!==void 0&&(E.fragmentError=0,E.loadError=0)}},h.onLevelLoaded=function(b,v){var P,E=v.level,f=v.details,c=this._levels[E];if(!c){var s;this.warn("Invalid level index "+E),(s=v.deliveryDirectives)!==null&&s!==void 0&&s.skip&&(f.deltaUpdateFailed=!0);return}E===this.currentLevelIndex?(c.fragmentError===0&&(c.loadError=0,this.retryCount=0),this.playlistLoaded(E,v,c.details)):(P=v.deliveryDirectives)!==null&&P!==void 0&&P.skip&&(f.deltaUpdateFailed=!0)},h.onAudioTrackSwitched=function(b,v){var P=this.hls.levels[this.currentLevelIndex];if(!P)return;if(P.audioGroupIds){for(var E=-1,f=this.hls.audioTracks[v.id].groupId,c=0;c0){var E=P.urlId,f=P.url[E];if(b)try{f=b.addDirectives(f)}catch(c){this.warn("Could not construct new URL with HLS Delivery Directives: "+c)}this.log("Attempt loading level index "+v+(b?" at sn "+b.msn+" part "+b.part:"")+" with URL-id "+E+" "+f),this.clearTimer(),this.hls.trigger(T.Events.LEVEL_LOADING,{url:f,level:v,id:E,deliveryDirectives:b||null})}},h.removeLevel=function(b,v){var P=function(c,s){return s!==v},E=this._levels.filter(function(f,c){return c!==b?!0:f.url.length>1&&v!==void 0?(f.url=f.url.filter(P),f.audioGroupIds&&(f.audioGroupIds=f.audioGroupIds.filter(P)),f.textGroupIds&&(f.textGroupIds=f.textGroupIds.filter(P)),f.urlId=0,!0):!1}).map(function(f,c){var s=f.details;return s!=null&&s.fragments&&s.fragments.forEach(function(i){i.level=c}),f});this._levels=E,this.hls.trigger(T.Events.LEVELS_UPDATED,{levels:E})},M(u,[{key:"levels",get:function(){return this._levels.length===0?null:this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(b){var v,P=this._levels;if(P.length===0)return;if(this.currentLevelIndex===b&&(v=P[b])!==null&&v!==void 0&&v.details)return;if(b<0||b>=P.length){var E=b<0;if(this.hls.trigger(T.Events.ERROR,{type:w.ErrorTypes.OTHER_ERROR,details:w.ErrorDetails.LEVEL_SWITCH_ERROR,level:b,fatal:E,reason:"invalid level idx"}),E)return;b=Math.min(b,P.length-1)}this.clearTimer();var f=this.currentLevelIndex,c=P[f],s=P[b];this.log("switching to level "+b+" from "+f),this.currentLevelIndex=b;var i=m({},s,{level:b,maxBitrate:s.maxBitrate,uri:s.uri,urlId:s.urlId});delete i._urlId,this.hls.trigger(T.Events.LEVEL_SWITCHING,i);var C=s.details;if(!C||C.live){var _=this.switchParams(s.uri,c==null?void 0:c.details);this.loadPlaylist(_)}}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(b){this.manualLevelIndex=b,this._startLevel===void 0&&(this._startLevel=b),b!==-1&&(this.level=b)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(b){this._firstLevel=b}},{key:"startLevel",get:function(){if(this._startLevel===void 0){var b=this.hls.config.startLevel;return b!==void 0?b:this._firstLevel}else return this._startLevel},set:function(b){this._startLevel=b}},{key:"nextLoadLevel",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(b){this.level=b,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=b)}}]),u}(k.default)},"./src/controller/level-helper.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"addGroupId",function(){return w}),I.d(z,"assignTrackIdsByGroup",function(){return B}),I.d(z,"updatePTS",function(){return x}),I.d(z,"updateFragPTSDTS",function(){return D}),I.d(z,"mergeDetails",function(){return m}),I.d(z,"mapPartIntersection",function(){return R}),I.d(z,"mapFragmentIntersection",function(){return M}),I.d(z,"adjustSliding",function(){return g}),I.d(z,"addSliding",function(){return n}),I.d(z,"computeReloadInterval",function(){return p}),I.d(z,"getFragmentWithSN",function(){return d}),I.d(z,"getPartWith",function(){return o});var K=I("./src/polyfills/number.ts"),T=I("./src/utils/logger.ts");function w(u,h,S){switch(h){case"audio":u.audioGroupIds||(u.audioGroupIds=[]),u.audioGroupIds.push(S);break;case"text":u.textGroupIds||(u.textGroupIds=[]),u.textGroupIds.push(S);break}}function B(u){var h={};u.forEach(function(S){var b=S.groupId||"";S.id=h[b]=h[b]||0,h[b]++})}function x(u,h,S){var b=u[h],v=u[S];k(b,v)}function k(u,h){var S=h.startPTS;if(Object(K.isFiniteNumber)(S)){var b=0,v;h.sn>u.sn?(b=S-u.start,v=u):(b=u.start-S,v=h),v.duration!==b&&(v.duration=b)}else if(h.sn>u.sn){var P=u.cc===h.cc;P&&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 D(u,h,S,b,v,P){var E=b-S;E<=0&&(T.logger.warn("Fragment should have a positive duration",h),b=S+h.duration,P=v+h.duration);var f=S,c=b,s=h.startPTS,i=h.endPTS;if(Object(K.isFiniteNumber)(s)){var C=Math.abs(s-S);Object(K.isFiniteNumber)(h.deltaPTS)?h.deltaPTS=Math.max(C,h.deltaPTS):h.deltaPTS=C,f=Math.max(S,s),S=Math.min(S,s),v=Math.min(v,h.startDTS),c=Math.min(b,i),b=Math.max(b,i),P=Math.max(P,h.endDTS)}h.duration=b-S;var _=S-h.start;h.appendedPTS=b,h.start=h.startPTS=S,h.maxStartPTS=f,h.startDTS=v,h.endPTS=b,h.minEndPTS=c,h.endDTS=P;var O=h.sn;if(!u||Ou.endSN)return 0;var N,U=O-u.startSN,H=u.fragments;for(H[U]=h,N=U;N>0;N--)k(H[N],H[N-1]);for(N=U;N=0;v--){var P=b[v].initSegment;if(P){S=P;break}}u.fragmentHint&&delete u.fragmentHint.endPTS;var E=0,f;if(M(u,h,function(N,U){N.relurl&&(E=N.cc-U.cc),Object(K.isFiniteNumber)(N.startPTS)&&Object(K.isFiniteNumber)(N.endPTS)&&(U.start=U.startPTS=N.startPTS,U.startDTS=N.startDTS,U.appendedPTS=N.appendedPTS,U.maxStartPTS=N.maxStartPTS,U.endPTS=N.endPTS,U.endDTS=N.endDTS,U.minEndPTS=N.minEndPTS,U.duration=N.endPTS-N.startPTS,U.duration&&(f=U),h.PTSKnown=h.alignedSliding=!0),U.elementaryStreams=N.elementaryStreams,U.loader=N.loader,U.stats=N.stats,U.urlId=N.urlId,N.initSegment&&(U.initSegment=N.initSegment,S=N.initSegment)}),S){var c=h.fragmentHint?h.fragments.concat(h.fragmentHint):h.fragments;c.forEach(function(N){var U;(!N.initSegment||N.initSegment.relurl===((U=S)===null||U===void 0?void 0:U.relurl))&&(N.initSegment=S)})}if(h.skippedSegments&&(h.deltaUpdateFailed=h.fragments.some(function(N){return!N}),h.deltaUpdateFailed)){T.logger.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var s=h.skippedSegments;s--;)h.fragments.shift();h.startSN=h.fragments[0].sn,h.startCC=h.fragments[0].cc}var i=h.fragments;if(E){T.logger.warn("discontinuity sliding from playlist, take drift into account");for(var C=0;C=b.length)return;n(h,b[S].start)}function n(u,h){if(h){for(var S=u.fragments,b=u.skippedSegments;b0&&v0&&c===-1&&(this.log("Override startPosition with lastCurrentTime @"+s.toFixed(3)),c=s),this.state=T.State.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=c,this.tick()}else this._forceStartLoad=!0,this.state=T.State.STOPPED},E.stopLoad=function(){this._forceStartLoad=!1,v.prototype.stopLoad.call(this)},E.doTick=function(){switch(this.state){case T.State.IDLE:this.doTickIdle();break;case T.State.WAITING_LEVEL:{var c,s=this.levels,i=this.level,C=s==null||((c=s[i])===null||c===void 0)?void 0:c.details;if(C&&(!C.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(C))break;this.state=T.State.IDLE;break}break}case T.State.FRAG_LOADING_WAITING_RETRY:{var _,O=self.performance.now(),N=this.retryDate;(!N||O>=N||(_=this.media)!==null&&_!==void 0&&_.seeking)&&(this.log("retryDate reached, switch back to IDLE state"),this.state=T.State.IDLE)}break;default:break}this.onTickEnd()},E.onTickEnd=function(){v.prototype.onTickEnd.call(this),this.checkBuffer(),this.checkFragmentChanged()},E.doTickIdle=function(){var c,s,i=this.hls,C=this.levelLastLoaded,_=this.levels,O=this.media,N=i.config,U=i.nextLoadLevel;if(C===null||!O&&(this.startFragRequested||!N.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!_||!_[U])return;var H=_[U];this.level=i.nextLoadLevel=U;var G=H.details;if(!G||this.state===T.State.WAITING_LEVEL||G.live&&this.levelLastLoaded!==U){this.state=T.State.WAITING_LEVEL;return}var L=this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:O,D.PlaylistLevelType.MAIN);if(L===null)return;var W=L.len,Z=this.getMaxBufferLength(H.maxBitrate);if(W>=Z)return;if(this._streamEnded(L,G)){var oe={};this.altAudio&&(oe.type="video"),this.hls.trigger(B.Events.BUFFER_EOS,oe),this.state=T.State.ENDED;return}var ie=L.end,be=this.getNextFragment(ie,G);if(this.couldBacktrack&&!this.fragPrevious&&be&&be.sn!=="initSegment"){var Je=be.sn-G.startSN;Je>1&&(be=G.fragments[Je-1],this.fragmentTracker.removeFragment(be))}if(be&&this.fragmentTracker.getState(be)===k.FragmentState.OK&&this.nextLoadPosition>ie){var Ae=this.audioOnly&&!this.altAudio?m.ElementaryStreamTypes.AUDIO:m.ElementaryStreamTypes.VIDEO;this.afterBufferFlushed(O,Ae,D.PlaylistLevelType.MAIN),be=this.getNextFragment(this.nextLoadPosition,G)}if(!be)return;be.initSegment&&!be.initSegment.data&&!this.bitrateTest&&(be=be.initSegment),((c=be.decryptdata)===null||c===void 0?void 0:c.keyFormat)==="identity"&&!((s=be.decryptdata)!==null&&s!==void 0&&s.key)?this.loadKey(be,G):this.loadFragment(be,G,ie)},E.loadFragment=function(c,s,i){var C,_=this.fragmentTracker.getState(c);if(this.fragCurrent=c,_===k.FragmentState.BACKTRACKED){var O=this.fragmentTracker.getBacktrackData(c);if(O){this._handleFragmentLoadProgress(O),this._handleFragmentLoadComplete(O);return}else _=k.FragmentState.NOT_LOADED}_===k.FragmentState.NOT_LOADED||_===k.FragmentState.PARTIAL?c.sn==="initSegment"?this._loadInitSegment(c):this.bitrateTest?(c.bitrateTest=!0,this.log("Fragment "+c.sn+" of level "+c.level+" is being downloaded to test bitrate and will not be buffered"),this._loadBitrateTestFrag(c)):(this.startFragRequested=!0,v.prototype.loadFragment.call(this,c,s,i)):_===k.FragmentState.APPENDING?this.reduceMaxBufferLength(c.duration)&&this.fragmentTracker.removeFragment(c):((C=this.media)===null||C===void 0?void 0:C.buffered.length)===0&&this.fragmentTracker.removeAllFragments()},E.getAppendedFrag=function(c){var s=this.fragmentTracker.getAppendedFrag(c,D.PlaylistLevelType.MAIN);return s&&"fragment"in s?s.fragment:s},E.getBufferedFrag=function(c){return this.fragmentTracker.getBufferedFrag(c,D.PlaylistLevelType.MAIN)},E.followingBufferedFrag=function(c){return c?this.getBufferedFrag(c.end+.5):null},E.immediateLevelSwitch=function(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},E.nextLevelSwitch=function(){var c=this.levels,s=this.media;if(s!=null&&s.readyState){var i,C=this.getAppendedFrag(s.currentTime);if(C&&C.start>1&&this.flushMainBuffer(0,C.start-1),!s.paused&&c){var _=this.hls.nextLoadLevel,O=c[_],N=this.fragLastKbps;N&&this.fragCurrent?i=this.fragCurrent.duration*O.maxBitrate/(1e3*N)+1:i=0}else i=0;var U=this.getBufferedFrag(s.currentTime+i);if(U){var H=this.followingBufferedFrag(U);if(H){this.abortCurrentFrag();var G=H.maxStartPTS?H.maxStartPTS:H.start,L=H.duration,W=Math.max(U.end,G+Math.min(Math.max(L-this.config.maxFragLookUpTolerance,L*.5),L*.75));this.flushMainBuffer(W,Number.POSITIVE_INFINITY)}}}},E.abortCurrentFrag=function(){var c=this.fragCurrent;this.fragCurrent=null,c!=null&&c.loader&&c.loader.abort(),this.state===T.State.KEY_LOADING&&(this.state=T.State.IDLE),this.nextLoadPosition=this.getLoadPosition()},E.flushMainBuffer=function(c,s){v.prototype.flushMainBuffer.call(this,c,s,this.altAudio?"video":null)},E.onMediaAttached=function(c,s){v.prototype.onMediaAttached.call(this,c,s);var i=s.media;this.onvplaying=this.onMediaPlaying.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),i.addEventListener("playing",this.onvplaying),i.addEventListener("seeked",this.onvseeked),this.gapController=new g.default(this.config,i,this.fragmentTracker,this.hls)},E.onMediaDetaching=function(){var c=this.media;c&&(c.removeEventListener("playing",this.onvplaying),c.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)},E.onMediaPlaying=function(){this.tick()},E.onMediaSeeked=function(){var c=this.media,s=c?c.currentTime:null;Object(K.isFiniteNumber)(s)&&this.log("Media seeked to "+s.toFixed(3)),this.tick()},E.onManifestLoading=function(){this.log("Trigger BUFFER_RESET"),this.hls.trigger(B.Events.BUFFER_RESET,void 0),this.fragmentTracker.removeAllFragments(),this.couldBacktrack=this.stalled=!1,this.startPosition=this.lastCurrentTime=0,this.fragPlaying=null},E.onManifestParsed=function(c,s){var i=!1,C=!1,_;s.levels.forEach(function(O){_=O.audioCodec,_&&(_.indexOf("mp4a.40.2")!==-1&&(i=!0),_.indexOf("mp4a.40.5")!==-1&&(C=!0))}),this.audioCodecSwitch=i&&C&&!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},E.onLevelLoading=function(c,s){var i=this.levels;if(!i||this.state!==T.State.IDLE)return;var C=i[s.level];(!C.details||C.details.live&&this.levelLastLoaded!==s.level||this.waitForCdnTuneIn(C.details))&&(this.state=T.State.WAITING_LEVEL)},E.onLevelLoaded=function(c,s){var i,C=this.levels,_=s.level,O=s.details,N=O.totalduration;if(!C){this.warn("Levels were reset while loading level "+_);return}this.log("Level "+_+" loaded ["+O.startSN+","+O.endSN+"], cc ["+O.startCC+", "+O.endCC+"] duration:"+N);var U=this.fragCurrent;U&&(this.state===T.State.FRAG_LOADING||this.state===T.State.FRAG_LOADING_WAITING_RETRY)&&(U.level!==s.level&&U.loader&&(this.state=T.State.IDLE,U.loader.abort()));var H=C[_],G=0;if(O.live||(i=H.details)!==null&&i!==void 0&&i.live){if(O.fragments[0]||(O.deltaUpdateFailed=!0),O.deltaUpdateFailed)return;G=this.alignPlaylists(O,H.details)}if(H.details=O,this.levelLastLoaded=_,this.hls.trigger(B.Events.LEVEL_UPDATED,{details:O,level:_}),this.state===T.State.WAITING_LEVEL){if(this.waitForCdnTuneIn(O))return;this.state=T.State.IDLE}this.startFragRequested?O.live&&this.synchronizeToLiveEdge(O):this.setStartPosition(O,G),this.tick()},E._handleFragmentLoadProgress=function(c){var s,i=c.frag,C=c.part,_=c.payload,O=this.levels;if(!O){this.warn("Levels were reset while fragment load was in progress. Fragment "+i.sn+" of level "+i.level+" will not be buffered");return}var N=O[i.level],U=N.details;if(!U){this.warn("Dropping fragment "+i.sn+" of level "+i.level+" after level details were reset");return}var H=N.videoCodec,G=U.PTSKnown||!U.live,L=(s=i.initSegment)===null||s===void 0?void 0:s.data,W=this._getAudioCodec(N),Z=this.transmuxer=this.transmuxer||new R.default(this.hls,D.PlaylistLevelType.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),oe=C?C.index:-1,ie=oe!==-1,be=new M.ChunkMetadata(i.level,i.sn,i.stats.chunkCount,_.byteLength,oe,ie),Je=this.initPTS[i.cc];Z.push(_,L,W,H,i,C,U.totalduration,G,be,Je)},E.onAudioTrackSwitching=function(c,s){var i=this.altAudio,C=!!s.url,_=s.id;if(!C){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var O=this.fragCurrent;O!=null&&O.loader&&(this.log("Switching to main audio track, cancel main fragment load"),O.loader.abort()),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var N=this.hls;i&&N.trigger(B.Events.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),N.trigger(B.Events.AUDIO_TRACK_SWITCHED,{id:_})}},E.onAudioTrackSwitched=function(c,s){var i=s.id,C=!!this.hls.audioTracks[i].url;if(C){var _=this.videoBuffer;_&&this.mediaBuffer!==_&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=_)}this.altAudio=C,this.tick()},E.onBufferCreated=function(c,s){var i=s.tracks,C,_,O=!1;for(var N in i){var U=i[N];if(U.id==="main"){if(_=N,C=U,N==="video"){var H=i[N];H&&(this.videoBuffer=H.buffer)}}else O=!0}O&&C?(this.log("Alternate track found, use "+_+".buffered to schedule main fragment loading"),this.mediaBuffer=C.buffer):this.mediaBuffer=this.media},E.onFragBuffered=function(c,s){var i=s.frag,C=s.part;if(i&&i.type!==D.PlaylistLevelType.MAIN)return;if(this.fragContextChanged(i)){this.warn("Fragment "+i.sn+(C?" p: "+C.index:"")+" of level "+i.level+" finished buffering, but was aborted. state: "+this.state),this.state===T.State.PARSED&&(this.state=T.State.IDLE);return}var _=C?C.stats:i.stats;this.fragLastKbps=Math.round(8*_.total/(_.buffering.end-_.loading.first)),i.sn!=="initSegment"&&(this.fragPrevious=i),this.fragBufferedComplete(i,C)},E.onError=function(c,s){switch(s.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(D.PlaylistLevelType.MAIN,s);break;case n.ErrorDetails.LEVEL_LOAD_ERROR:case n.ErrorDetails.LEVEL_LOAD_TIMEOUT:this.state!==T.State.ERROR&&(s.fatal?(this.warn(""+s.details),this.state=T.State.ERROR):!s.levelRetry&&this.state===T.State.WAITING_LEVEL&&(this.state=T.State.IDLE));break;case n.ErrorDetails.BUFFER_FULL_ERROR:if(s.parent==="main"&&(this.state===T.State.PARSING||this.state===T.State.PARSED)){var i=!0,C=this.getFwdBufferInfo(this.media,D.PlaylistLevelType.MAIN);C&&C.len>.5&&(i=!this.reduceMaxBufferLength(C.len)),i&&(this.warn("buffer full error also media.currentTime is not buffered, flush main"),this.immediateLevelSwitch()),this.resetLoadingState()}break;default:break}},E.checkBuffer=function(){var c=this.media,s=this.gapController;if(!c||!s||!c.readyState)return;var i=x.BufferHelper.getBuffered(c);!this.loadedmetadata&&i.length?(this.loadedmetadata=!0,this.seekToStartPos()):s.poll(this.lastCurrentTime),this.lastCurrentTime=c.currentTime},E.onFragLoadEmergencyAborted=function(){this.state=T.State.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()},E.onBufferFlushed=function(c,s){var i=s.type;if(i!==m.ElementaryStreamTypes.AUDIO||this.audioOnly&&!this.altAudio){var C=(i===m.ElementaryStreamTypes.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(C,i,D.PlaylistLevelType.MAIN)}},E.onLevelsUpdated=function(c,s){this.levels=s.levels},E.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},E.seekToStartPos=function(){var c=this.media,s=c.currentTime,i=this.startPosition;if(i>=0&&s0&&(O1&&c.seeking===!1){var i=c.currentTime;if(x.BufferHelper.isBuffered(c,i)?s=this.getAppendedFrag(i):x.BufferHelper.isBuffered(c,i+.1)&&(s=this.getAppendedFrag(i+.1)),s){var C=this.fragPlaying,_=s.level;(!C||s.sn!==C.sn||C.level!==_||s.urlId!==C.urlId)&&(this.hls.trigger(B.Events.FRAG_CHANGED,{frag:s}),(!C||C.level!==_)&&this.hls.trigger(B.Events.LEVEL_SWITCHED,{level:_}),this.fragPlaying=s)}}},o(P,[{key:"nextLevel",get:function(){var c=this.nextBufferedFrag;return c?c.level:-1}},{key:"currentLevel",get:function(){var c=this.media;if(c){var s=this.getAppendedFrag(c.currentTime);if(s)return s.level}return-1}},{key:"nextBufferedFrag",get:function(){var c=this.media;if(c){var s=this.getAppendedFrag(c.currentTime);return this.followingBufferedFrag(s)}else return null}},{key:"forceStartLoad",get:function(){return this._forceStartLoad}}]),P}(T.default)},"./src/controller/subtitle-stream-controller.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"SubtitleStreamController",function(){return u});var K=I("./src/events.ts"),T=I("./src/utils/logger.ts"),w=I("./src/utils/buffer-helper.ts"),B=I("./src/controller/fragment-finders.ts"),x=I("./src/utils/discontinuities.ts"),k=I("./src/controller/level-helper.ts"),D=I("./src/controller/fragment-tracker.ts"),m=I("./src/controller/base-stream-controller.ts"),R=I("./src/types/loader.ts"),M=I("./src/types/level.ts");function g(h,S){for(var b=0;b=s[_].start&&C<=s[_].end){i=s[_];break}var O=f.start+f.duration;i?i.end=O:(i={start:C,end:O},s.push(i)),this.fragmentTracker.fragBuffered(f)},b.onBufferFlushing=function(P,E){var f=E.startOffset,c=E.endOffset;if(f===0&&c!==Number.POSITIVE_INFINITY){var s=this.currentTrackId,i=this.levels;if(!i.length||!i[s]||!i[s].details)return;var C=i[s].details,_=C.targetduration,O=c-_;if(O<=0)return;E.endOffsetSubtitles=Math.max(0,O),this.tracksBuffered.forEach(function(N){for(var U=0;U=C.length||s!==i||!_)return;if(this.mediaBuffer=this.mediaBufferTimeRanges,c.live||(f=_.details)!==null&&f!==void 0&&f.live){var O=this.mainDetails;if(c.deltaUpdateFailed||!O)return;var N=O.fragments[0];if(!_.details)c.hasProgramDateTime&&O.hasProgramDateTime?Object(x.alignMediaPlaylistByPDT)(c,O):N&&Object(k.addSliding)(c,N.start);else{var U=this.alignPlaylists(c,_.details);U===0&&N&&Object(k.addSliding)(c,N.start)}}if(_.details=c,this.levelLastLoaded=s,this.tick(),c.live&&!this.fragCurrent&&this.media&&this.state===m.State.IDLE){var H=Object(B.findFragmentByPTS)(null,c.fragments,this.media.currentTime,0);H||(this.warn("Subtitle playlist not aligned with playback"),_.details=void 0)}},b._handleFragmentLoadComplete=function(P){var E=P.frag,f=P.payload,c=E.decryptdata,s=this.hls;if(this.fragContextChanged(E))return;if(f&&f.byteLength>0&&c&&c.key&&c.iv&&c.method==="AES-128"){var i=performance.now();this.decrypter.webCryptoDecrypt(new Uint8Array(f),c.key.buffer,c.iv.buffer).then(function(C){var _=performance.now();s.trigger(K.Events.FRAG_DECRYPTED,{frag:E,payload:C,stats:{tstart:i,tdecrypt:_}})})}},b.doTick=function(){if(!this.media){this.state=m.State.IDLE;return}if(this.state===m.State.IDLE){var P,E=this.currentTrackId,f=this.levels;if(!f.length||!f[E]||!f[E].details)return;var c=f[E].details,s=c.targetduration,i=this.config,C=this.media,_=w.BufferHelper.bufferedInfo(this.mediaBufferTimeRanges,C.currentTime-s,i.maxBufferHole),O=_.end,N=_.len,U=this.getMaxBufferLength()+s;if(N>U)return;console.assert(c,"Subtitle track details are defined on idle subtitle stream controller tick");var H=c.fragments,G=H.length,L=c.edge,W,Z=this.fragPrevious;if(O-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)},p.pollTrackChange=function(o){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.trackChangeListener,o)},p.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 o=M(this.media.textTracks);o.forEach(function(u){Object(T.clearCurrentCues)(u)}),this.subtitleTrack=-1,this.media=null},p.onManifestLoading=function(){this.tracks=[],this.groupId=null,this.tracksInGroup=[],this.trackId=-1,this.selectDefaultTrack=!0},p.onManifestParsed=function(o,u){this.tracks=u.subtitleTracks},p.onSubtitleTrackLoaded=function(o,u){var h=u.id,S=u.details,b=this.trackId,v=this.tracksInGroup[b];if(!v){this.warn("Invalid subtitle track id "+h);return}var P=v.details;v.details=u.details,this.log("subtitle track "+h+" loaded ["+S.startSN+"-"+S.endSN+"]"),h===this.trackId&&(this.retryCount=0,this.playlistLoaded(h,u,P))},p.onLevelLoading=function(o,u){this.switchLevel(u.level)},p.onLevelSwitching=function(o,u){this.switchLevel(u.level)},p.switchLevel=function(o){var u=this.hls.levels[o];if(!(u!=null&&u.textGroupIds))return;var h=u.textGroupIds[u.urlId];if(this.groupId!==h){var S=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0,b=this.tracks.filter(function(E){return!h||E.groupId===h});this.tracksInGroup=b;var v=this.findTrackId(S==null?void 0:S.name)||this.findTrackId();this.groupId=h;var P={subtitleTracks:b};this.log("Updating subtitle tracks, "+b.length+' track(s) found in "'+h+'" group-id'),this.hls.trigger(K.Events.SUBTITLE_TRACKS_UPDATED,P),v!==-1&&this.setSubtitleTrack(v,S)}},p.findTrackId=function(o){for(var u=this.tracksInGroup,h=0;h=S.length)return;this.clearTimer();var b=S[o];if(this.log("Switching to subtitle track "+o),this.trackId=o,b){var v=b.id,P=b.groupId,E=P===void 0?"":P,f=b.name,c=b.type,s=b.url;this.hls.trigger(K.Events.SUBTITLE_TRACK_SWITCH,{id:v,groupId:E,name:f,type:c,url:s});var i=this.switchParams(b.url,u==null?void 0:u.details);this.loadPlaylist(i)}else this.hls.trigger(K.Events.SUBTITLE_TRACK_SWITCH,{id:o})},p.onTextTracksChanged=function(){if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;for(var o=-1,u=M(this.media.textTracks),h=0;h=0&&(c[0]=Math.min(c[0],S),c[1]=Math.max(c[1],b),E=!0,s/(b-S)>.5))return}if(E||P.push([S,b]),this.config.renderTextTracksNatively){var i=this.captionsTracks[h];this.Cues.newCue(i,S,b,v)}else{var C=this.Cues.newCue(null,S,b,v);this.hls.trigger(T.Events.CUES_PARSED,{type:"captions",cues:C,track:h})}},o.onInitPtsFound=function(h,S){var b=this,v=S.frag,P=S.id,E=S.initPTS,f=S.timescale,c=this.unparsedVttFrags;P==="main"&&(this.initPTS[v.cc]=E,this.timescale[v.cc]=f),c.length&&(this.unparsedVttFrags=[],c.forEach(function(s){b.onFragLoaded(T.Events.FRAG_LOADED,s)}))},o.getExistingTrack=function(h){var S=this.media;if(S)for(var b=0;b>>8^f&255^99,D[v]=f,m[f]=v;var c=b[v],s=b[c],i=b[s],C=b[f]*257^f*16843008;M[v]=C<<24|C>>>8,g[v]=C<<16|C>>>16,n[v]=C<<8|C>>>24,p[v]=C,C=i*16843009^s*65537^c*257^v*16843008,o[f]=C<<24|C>>>8,u[f]=C<<16|C>>>16,h[f]=C<<8|C>>>24,S[f]=C,v?(v=c^b[b[b[i^c]]],P^=b[b[P]]):v=P=1}},x.expandKey=function(D){for(var m=this.uint8ArrayToUint32Array_(D),R=!0,M=0;M>>6)+1;var C=(h[S+2]&60)>>>2;if(C>i.length-1){u.trigger(w.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+C});return}return E=(h[S+2]&1)<<2,E|=(h[S+3]&192)>>>6,K.logger.log("manifest codec:"+b+", ADTS type:"+v+", samplingIndex:"+C),/firefox/i.test(c)?C>=6?(v=5,f=new Array(4),P=C-3):(v=2,f=new Array(2),P=C):c.indexOf("android")!==-1?(v=2,f=new Array(2),P=C):(v=5,f=new Array(4),b&&(b.indexOf("mp4a.40.29")!==-1||b.indexOf("mp4a.40.5")!==-1)||!b&&C>=6?P=C-3:((b&&b.indexOf("mp4a.40.2")!==-1&&(C>=6&&E===1||/vivaldi/i.test(c))||!b&&E===1)&&(v=2,f=new Array(2)),P=C)),f[0]=v<<3,f[0]|=(C&14)>>1,f[1]|=(C&1)<<7,f[1]|=E<<3,v===5&&(f[1]|=(P&14)>>1,f[2]=(P&1)<<7,f[2]|=2<<2,f[3]=0),{config:f,samplerate:i[C],channelCount:E,codec:"mp4a.40."+v,manifestCodec:s}}function x(u,h){return u[h]===255&&(u[h+1]&246)===240}function k(u,h){return u[h+1]&1?7:9}function D(u,h){return(u[h+3]&3)<<11|u[h+4]<<3|(u[h+5]&224)>>>5}function m(u,h){return h+5=u.length)return!1;var b=D(u,h);if(b<=S)return!1;var v=h+b;return v===u.length||R(u,v)}return!1}function n(u,h,S,b,v){if(!u.samplerate){var P=B(h,S,b,v);if(!P)return;u.config=P.config,u.samplerate=P.samplerate,u.channelCount=P.channelCount,u.codec=P.codec,u.manifestCodec=P.manifestCodec,K.logger.log("parsed codec:"+u.codec+", rate:"+P.samplerate+", channels:"+P.channelCount)}}function p(u){return 1024*9e4/u}function d(u,h,S,b,v){var P=k(u,h),E=D(u,h);if(E-=P,E>0){var f=S+b*v;return{headerLength:P,frameLength:E,stamp:f}}}function o(u,h,S,b,v){var P=p(u.samplerate),E=d(h,S,b,v,P);if(E){var f=E.frameLength,c=E.headerLength,s=E.stamp,i=c+f,C=Math.max(0,S+i-h.length),_;C?(_=new Uint8Array(i-c),_.set(h.subarray(S+c,h.length),0)):_=h.subarray(S+c,S+i);var O={unit:_,pts:s};return C||u.samples.push(O),{sample:O,length:i,missing:C}}}},"./src/demux/base-audio-demuxer.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"initPTSFn",function(){return D});var K=I("./src/polyfills/number.ts"),T=I("./src/demux/id3.ts"),w=I("./src/demux/dummy-demuxed-track.ts"),B=I("./src/utils/mp4-tools.ts"),x=I("./src/utils/typed-array.ts"),k=function(){function m(){this._audioTrack=void 0,this._id3Track=void 0,this.frameIndex=0,this.cachedData=null,this.initPTS=null}var R=m.prototype;return R.resetInitSegment=function(g,n,p){this._id3Track={type:"id3",id:3,pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0}},R.resetTimeStamp=function(){},R.resetContiguity=function(){},R.canParse=function(g,n){return!1},R.appendFrame=function(g,n,p){},R.demux=function(g,n){this.cachedData&&(g=Object(B.appendUint8Array)(this.cachedData,g),this.cachedData=null);var p=T.getID3Data(g,0),d=p?p.length:0,o,u,h=this._audioTrack,S=this._id3Track,b=p?T.getTimeStamp(p):void 0,v=g.length;for((this.frameIndex===0||this.initPTS===null)&&(this.initPTS=D(b,n)),p&&p.length>0&&S.samples.push({pts:this.initPTS,dts:this.initPTS,data:p}),u=this.initPTS;dk?(this.word<<=k,this.bitsAvailable-=k):(k-=this.bitsAvailable,D=k>>3,k-=D>>3,this.bytesAvailable-=D,this.loadWord(),this.word<<=k,this.bitsAvailable-=k)},B.readBits=function(k){var D=Math.min(this.bitsAvailable,k),m=this.word>>>32-D;return k>32&&K.logger.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=D,this.bitsAvailable>0?this.word<<=D:this.bytesAvailable>0&&this.loadWord(),D=k-D,D>0&&this.bitsAvailable?m<>>k)!==0)return this.word<<=k,this.bitsAvailable-=k,k;return this.loadWord(),k+this.skipLZ()},B.skipUEG=function(){this.skipBits(1+this.skipLZ())},B.skipEG=function(){this.skipBits(1+this.skipLZ())},B.readUEG=function(){var k=this.skipLZ();return this.readBits(k+1)-1},B.readEG=function(){var k=this.readUEG();return 1&k?1+k>>>1:-1*(k>>>1)},B.readBoolean=function(){return this.readBits(1)===1},B.readUByte=function(){return this.readBits(8)},B.readUShort=function(){return this.readBits(16)},B.readUInt=function(){return this.readBits(32)},B.skipScalingList=function(k){for(var D=8,m=8,R,M=0;M0?v.subarray(E,E+f):void 0},B=function(v,P){var E=0;return E=(v[P]&127)<<21,E|=(v[P+1]&127)<<14,E|=(v[P+2]&127)<<7,E|=v[P+3]&127,E},x=function(v,P){return K(v,P)&&B(v,P+6)+10<=v.length-P},k=function(v){for(var P=R(v),E=0;E>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:O+=String.fromCharCode(i);break;case 12:case 13:C=v[N++],O+=String.fromCharCode((i&31)<<6|C&63);break;case 14:C=v[N++],_=v[N++],O+=String.fromCharCode((i&15)<<12|(C&63)<<6|(_&63)<<0);break;default:}}return O},u={decodeTextFrame:n},h;function S(){return!h&&typeof self.TextDecoder!="undefined"&&(h=new self.TextDecoder("utf-8")),h}},"./src/demux/mp3demuxer.ts":function(re,z,I){"use strict";I.r(z);var K=I("./src/demux/base-audio-demuxer.ts"),T=I("./src/demux/id3.ts"),w=I("./src/utils/logger.ts"),B=I("./src/demux/mpegaudio.ts");function x(m,R){m.prototype=Object.create(R.prototype),m.prototype.constructor=m,k(m,R)}function k(m,R){return k=Object.setPrototypeOf||function(g,n){return g.__proto__=n,g},k(m,R)}var D=function(m){x(R,m);function R(){return m.apply(this,arguments)||this}var M=R.prototype;return M.resetInitSegment=function(n,p,d){m.prototype.resetInitSegment.call(this,n,p,d),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,isAAC:!1,samples:[],manifestCodec:n,duration:d,inputTimeScale:9e4,dropped:0}},R.probe=function(n){if(!n)return!1;for(var p=T.getID3Data(n,0)||[],d=p.length,o=n.length;d0},x.demux=function(D){var m=D,R=Object(T.dummyTrack)();if(this.config.progressive){this.remainderData&&(m=Object(K.appendUint8Array)(this.remainderData,D));var M=Object(K.segmentValidRange)(m);this.remainderData=M.remainder,R.samples=M.valid||new Uint8Array}else R.samples=m;return{audioTrack:Object(T.dummyTrack)(),avcTrack:R,id3Track:Object(T.dummyTrack)(),textTrack:Object(T.dummyTrack)()}},x.flush=function(){var D=Object(T.dummyTrack)();return D.samples=this.remainderData||new Uint8Array,this.remainderData=null,{audioTrack:Object(T.dummyTrack)(),avcTrack:D,id3Track:Object(T.dummyTrack)(),textTrack:Object(T.dummyTrack)()}},x.demuxSampleAes=function(D,m,R){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))},x.destroy=function(){},B}();w.minProbeByteLength=1024,z.default=w},"./src/demux/mpegaudio.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"appendFrame",function(){return k}),I.d(z,"parseHeader",function(){return D}),I.d(z,"isHeaderPattern",function(){return m}),I.d(z,"isHeader",function(){return R}),I.d(z,"canParse",function(){return M}),I.d(z,"probe",function(){return g});var K=null,T=[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],B=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],x=[0,1,1,4];function k(n,p,d,o,u){if(d+24>p.length)return;var h=D(p,d);if(h&&d+h.frameLength<=p.length){var S=h.samplesPerFrame*9e4/h.sampleRate,b=o+u*S,v={unit:p.subarray(d,d+h.frameLength),pts:b,dts:b};return n.config=[],n.channelCount=h.channelCount,n.samplerate=h.sampleRate,n.samples.push(v),{sample:v,length:h.frameLength,missing:0}}}function D(n,p){var d=n[p+1]>>3&3,o=n[p+1]>>1&3,u=n[p+2]>>4&15,h=n[p+2]>>2&3;if(d!==1&&u!==0&&u!==15&&h!==3){var S=n[p+2]>>1&1,b=n[p+3]>>6,v=d===3?3-o:o===3?3:4,P=T[v*14+u-1]*1e3,E=d===3?0:d===2?1:2,f=w[E*3+h],c=b===3?1:2,s=B[d][o],i=x[o],C=s*8*i,_=Math.floor(s*P/f+S)*i;if(K===null){var O=navigator.userAgent||"",N=O.match(/Chrome\/(\d+)/i);K=N?parseInt(N[1]):0}var U=!!K&&K<=87;return U&&o===2&&P>=224e3&&b===0&&(n[p+3]=n[p+3]|128),{sampleRate:f,channelCount:c,frameLength:_,samplesPerFrame:C}}}function m(n,p){return n[p]===255&&(n[p+1]&224)===224&&(n[p+1]&6)!==0}function R(n,p){return p+1=D.length){R();return}if(D[m].unit.length<32)continue;var M=this.decrypter.isSync();if(this.decryptAacSample(D,m,R,M),!M)return}},x.getAvcEncryptedData=function(D){for(var m=Math.floor((D.length-48)/160)*16+16,R=new Int8Array(m),M=0,g=32;g<=D.length-16;g+=160,M+=16)R.set(D.subarray(g,g+16),M);return R},x.getAvcDecryptedUnit=function(D,m){for(var R=new Uint8Array(m),M=0,g=32;g<=D.length-16;g+=160,M+=16)D.set(R.subarray(M,M+16),g);return D},x.decryptAvcSample=function(D,m,R,M,g,n){var p=Object(T.discardEPB)(g.data),d=this.getAvcEncryptedData(p),o=this;this.decryptBuffer(d.buffer,function(u){g.data=o.getAvcDecryptedUnit(p,u),n||o.decryptAvcSamples(D,m,R+1,M)})},x.decryptAvcSamples=function(D,m,R,M){if(D instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;m++,R=0){if(m>=D.length){M();return}for(var g=D[m].units;!(R>=g.length);R++){var n=g[R];if(n.data.length<=48||n.type!==1&&n.type!==5)continue;var p=this.decrypter.isSync();if(this.decryptAvcSample(D,m,R,M,n,p),!p)return}}},B}();z.default=w},"./src/demux/transmuxer-interface.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return g});var K=I("./node_modules/webworkify-webpack/index.js"),T=I.n(K),w=I("./src/events.ts"),B=I("./src/demux/transmuxer.ts"),x=I("./src/utils/logger.ts"),k=I("./src/errors.ts"),D=I("./src/utils/mediasource-helper.ts"),m=I("./node_modules/eventemitter3/index.js"),R=I.n(m),M=Object(D.getMediaSource)()||{isTypeSupported:function(){return!1}},g=function(){function n(d,o,u,h){var S=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=d,this.id=o,this.onTransmuxComplete=u,this.onFlush=h;var b=d.config,v=function(s,i){i=i||{},i.frag=S.frag,i.id=S.id,d.trigger(s,i)};this.observer=new m.EventEmitter,this.observer.on(w.Events.FRAG_DECRYPTED,v),this.observer.on(w.Events.ERROR,v);var P={mp4:M.isTypeSupported("video/mp4"),mpeg:M.isTypeSupported("audio/mpeg"),mp3:M.isTypeSupported('audio/mp4; codecs="mp3"')},E=navigator.vendor;if(b.enableWorker&&typeof Worker!="undefined"){x.logger.log("demuxing in webworker");var f;try{f=this.worker=K("./src/demux/transmuxer-worker.ts"),this.onwmsg=this.onWorkerMessage.bind(this),f.addEventListener("message",this.onwmsg),f.onerror=function(c){d.trigger(w.Events.ERROR,{type:k.ErrorTypes.OTHER_ERROR,details:k.ErrorDetails.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",error:new Error(c.message+" ("+c.filename+":"+c.lineno+")")})},f.postMessage({cmd:"init",typeSupported:P,vendor:E,id:o,config:JSON.stringify(b)})}catch(c){x.logger.warn("Error in worker:",c),x.logger.error("Error while initializing DemuxerWorker, fallback to inline"),f&&self.URL.revokeObjectURL(f.objectURL),this.transmuxer=new B.default(this.observer,P,b,E,o),this.worker=null}}else this.transmuxer=new B.default(this.observer,P,b,E,o)}var p=n.prototype;return p.destroy=function(){var o=this.worker;if(o)o.removeEventListener("message",this.onwmsg),o.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},p.push=function(o,u,h,S,b,v,P,E,f,c){var s=this;f.transmuxing.start=self.performance.now();var i=this.transmuxer,C=this.worker,_=v?v.start:b.start,O=b.decryptdata,N=this.frag,U=!(N&&b.cc===N.cc),H=!(N&&f.level===N.level),G=N?f.sn-N.sn:-1,L=this.part?f.part-this.part.index:1,W=!H&&(G===1||G===0&&L===1),Z=self.performance.now();(H||G||b.stats.parsing.start===0)&&(b.stats.parsing.start=Z),v&&(L||!W)&&(v.stats.parsing.start=Z);var oe=new B.TransmuxState(U,W,E,H,_);if(!W||U){x.logger.log("[transmuxer-interface, "+b.type+"]: Starting new transmux session for sn: "+f.sn+" p: "+f.part+" level: "+f.level+" id: "+f.id+` discontinuity: `+U+` trackSwitch: `+H+` contiguous: `+W+` accurateTimeOffset: `+E+` - timeOffset: `+_);var ie=new B.TransmuxConfig(f,S,u,P,c);this.configureTransmuxer(ie)}if(this.frag=b,this.part=v,C)C.postMessage({cmd:"demux",data:o,decryptdata:O,chunkMeta:h,state:oe},o instanceof ArrayBuffer?[o]:[]);else if(i){var be=i.push(o,O,h,oe);Object(B.isPromise)(be)?be.then(function(Je){s.handleTransmuxComplete(Je)}):this.handleTransmuxComplete(be)}},p.flush=function(o){var u=this;o.transmuxing.start=self.performance.now();var f=this.transmuxer,S=this.worker;if(S)S.postMessage({cmd:"flush",chunkMeta:o});else if(f){var b=f.flush(o);Object(B.isPromise)(b)?b.then(function(v){u.handleFlushResult(v,o)}):this.handleFlushResult(b,o)}},p.handleFlushResult=function(o,u){var f=this;o.forEach(function(S){f.handleTransmuxComplete(S)}),this.onFlush(u)},p.onWorkerMessage=function(o){var u=o.data,f=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,f.trigger(u.event,u.data);break}}},p.configureTransmuxer=function(o){var u=this.worker,f=this.transmuxer;u?u.postMessage({cmd:"configure",config:o}):f&&f.configure(o)},p.handleTransmuxComplete=function(o){o.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(o)},n}()},"./src/demux/transmuxer-worker.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return k});var K=I("./src/demux/transmuxer.ts"),T=I("./src/events.ts"),w=I("./src/utils/logger.ts"),B=I("./node_modules/eventemitter3/index.js"),x=I.n(B);function k(g){var n=new B.EventEmitter,p=function(o,u){g.postMessage({event:o,data:u})};n.on(T.Events.FRAG_DECRYPTED,p),n.on(T.Events.ERROR,p),g.addEventListener("message",function(d){var o=d.data;switch(o.cmd){case"init":{var u=JSON.parse(o.config);g.transmuxer=new K.default(n,o.typeSupported,u,o.vendor,o.id),Object(w.enableLogs)(u.debug),p("init",null);break}case"configure":{g.transmuxer.configure(o.config);break}case"demux":{var f=g.transmuxer.push(o.data,o.decryptdata,o.chunkMeta,o.state);Object(K.isPromise)(f)?f.then(function(v){D(g,v)}):D(g,f);break}case"flush":{var S=o.chunkMeta,b=g.transmuxer.flush(S);Object(K.isPromise)(b)?b.then(function(v){R(g,v,S)}):R(g,b,S);break}default:break}})}function D(g,n){if(M(n.remuxResult))return;var p=[],d=n.remuxResult,o=d.audio,u=d.video;o&&m(p,o),u&&m(p,u),g.postMessage({event:"transmuxComplete",data:n},p)}function m(g,n){n.data1&&g.push(n.data1.buffer),n.data2&&g.push(n.data2.buffer)}function R(g,n,p){n.forEach(function(d){D(g,d)}),g.postMessage({event:"flush",data:p})}function M(g){return!g.audio&&!g.video&&!g.text&&!g.id3&&!g.initSegment}},"./src/demux/transmuxer.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return u}),I.d(z,"isPromise",function(){return b}),I.d(z,"TransmuxConfig",function(){return v}),I.d(z,"TransmuxState",function(){return P});var K=I("./src/events.ts"),T=I("./src/errors.ts"),w=I("./src/crypt/decrypter.ts"),B=I("./src/demux/aacdemuxer.ts"),x=I("./src/demux/mp4demuxer.ts"),k=I("./src/demux/tsdemuxer.ts"),D=I("./src/demux/mp3demuxer.ts"),m=I("./src/remux/mp4-remuxer.ts"),R=I("./src/remux/passthrough-remuxer.ts"),M=I("./src/demux/chunk-cache.ts"),g=I("./src/utils/mp4-tools.ts"),n=I("./src/utils/logger.ts"),p;try{p=self.performance.now.bind(self.performance)}catch(E){n.logger.debug("Unable to use Performance API on this environment"),p=self.Date.now}var d=[{demux:k.default,remux:m.default},{demux:x.default,remux:R.default},{demux:B.default,remux:m.default},{demux:D.default,remux:m.default}],o=1024;d.forEach(function(E){var h=E.demux;o=Math.max(o,h.minProbeByteLength)});var u=function(){function E(c,s,i,C,_){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 M.default,this.observer=c,this.typeSupported=s,this.config=i,this.vendor=C,this.id=_}var h=E.prototype;return h.configure=function(s){this.transmuxConfig=s,this.decrypter&&this.decrypter.reset()},h.push=function(s,i,C,_){var O=this,N=C.transmuxing;N.executeStart=p();var U=new Uint8Array(s),H=this.cache,G=this.config,L=this.currentTransmuxState,W=this.transmuxConfig;_&&(this.currentTransmuxState=_);var Z=f(U,i);if(Z&&Z.method==="AES-128"){var oe=this.getDecrypter();if(G.enableSoftwareAES){var ie=oe.softwareDecrypt(U,Z.key.buffer,Z.iv.buffer);if(!ie)return N.executeEnd=p(),S(C);U=new Uint8Array(ie)}else return this.decryptionPromise=oe.webCryptoDecrypt(U,Z.key.buffer,Z.iv.buffer).then(function(V){var Q=O.push(V,null,C);return O.decryptionPromise=null,Q}),this.decryptionPromise}var be=_||L,Je=be.contiguous,Ae=be.discontinuity,ke=be.trackSwitch,Ze=be.accurateTimeOffset,Xe=be.timeOffset,Pe=W.audioCodec,he=W.videoCodec,le=W.defaultInitPts,Se=W.duration,ve=W.initSegmentData;if((Ae||ke)&&this.resetInitSegment(ve,Pe,he,Se),Ae&&this.resetInitialTimestamp(le),Je||this.resetContiguity(),this.needsProbing(U,Ae,ke)){if(H.dataLength){var Ge=H.flush();U=Object(g.appendUint8Array)(Ge,U)}this.configureTransmuxer(U,W)}var it=this.transmux(U,Z,Xe,Ze,C),ee=this.currentTransmuxState;return ee.contiguous=!0,ee.discontinuity=!1,ee.trackSwitch=!1,N.executeEnd=p(),it},h.flush=function(s){var i=this,C=s.transmuxing;C.executeStart=p();var _=this.decrypter,O=this.cache,N=this.currentTransmuxState,U=this.decryptionPromise;if(U)return U.then(function(){return i.flush(s)});var H=[],G=N.timeOffset;if(_){var L=_.flush();L&&H.push(this.push(L,null,s))}var W=O.dataLength;O.reset();var Z=this.demuxer,oe=this.remuxer;if(!Z||!oe)return W>=o&&this.observer.emit(K.Events.ERROR,K.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),C.executeEnd=p(),[S(s)];var ie=Z.flush(G);return b(ie)?ie.then(function(be){return i.flushRemux(H,be,s),H}):(this.flushRemux(H,ie,s),H)},h.flushRemux=function(s,i,C){var _=i.audioTrack,O=i.avcTrack,N=i.id3Track,U=i.textTrack,H=this.currentTransmuxState,G=H.accurateTimeOffset,L=H.timeOffset;n.logger.log("[transmuxer.ts]: Flushed fragment "+C.sn+(C.part>-1?" p: "+C.part:"")+" of level "+C.level);var W=this.remuxer.remux(_,O,N,U,L,G,!0,this.id);s.push({remuxResult:W,chunkMeta:C}),C.transmuxing.executeEnd=p()},h.resetInitialTimestamp=function(s){var i=this.demuxer,C=this.remuxer;if(!i||!C)return;i.resetTimeStamp(s),C.resetTimeStamp(s)},h.resetContiguity=function(){var s=this.demuxer,i=this.remuxer;if(!s||!i)return;s.resetContiguity(),i.resetNextTimestamp()},h.resetInitSegment=function(s,i,C,_){var O=this.demuxer,N=this.remuxer;if(!O||!N)return;O.resetInitSegment(i,C,_),N.resetInitSegment(s,i,C)},h.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},h.transmux=function(s,i,C,_,O){var N;return i&&i.method==="SAMPLE-AES"?N=this.transmuxSampleAes(s,i,C,_,O):N=this.transmuxUnencrypted(s,C,_,O),N},h.transmuxUnencrypted=function(s,i,C,_){var O=this.demuxer.demux(s,i,!1,!this.config.progressive),N=O.audioTrack,U=O.avcTrack,H=O.id3Track,G=O.textTrack,L=this.remuxer.remux(N,U,H,G,i,C,!1,this.id);return{remuxResult:L,chunkMeta:_}},h.transmuxSampleAes=function(s,i,C,_,O){var N=this;return this.demuxer.demuxSampleAes(s,i,C).then(function(U){var H=N.remuxer.remux(U.audioTrack,U.avcTrack,U.id3Track,U.textTrack,C,_,!1,N.id);return{remuxResult:H,chunkMeta:O}})},h.configureTransmuxer=function(s,i){for(var C=this.config,_=this.observer,O=this.typeSupported,N=this.vendor,U=i.audioCodec,H=i.defaultInitPts,G=i.duration,L=i.initSegmentData,W=i.videoCodec,Z,oe=0,ie=d.length;oe0&&h!=null&&h.key!=null&&h.iv!==null&&h.method!=null&&(c=h),c}var S=function(h){return{remuxResult:{},chunkMeta:h}};function b(E){return"then"in E&&E.then instanceof Function}var v=function(h,c,s,i,C){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=h,this.videoCodec=c,this.initSegmentData=s,this.duration=i,this.defaultInitPts=C},P=function(h,c,s,i,C){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.discontinuity=h,this.contiguous=c,this.accurateTimeOffset=s,this.trackSwitch=i,this.timeOffset=C}},"./src/demux/tsdemuxer.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"discardEPB",function(){return S});var K=I("./src/demux/adts.ts"),T=I("./src/demux/mpegaudio.ts"),w=I("./src/demux/exp-golomb.ts"),B=I("./src/demux/id3.ts"),x=I("./src/demux/sample-aes.ts"),k=I("./src/events.ts"),D=I("./src/utils/mp4-tools.ts"),m=I("./src/utils/logger.ts"),R=I("./src/errors.ts"),M={video:1,audio:2,id3:3,text:4},g=function(){function b(P,E,h){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=E,this.typeSupported=h}b.probe=function(E){var h=b.syncOffset(E);return h<0?!1:(h&&m.logger.warn("MPEG2-TS detected but first sync word found @ offset "+h+", junk ahead ?"),!0)},b.syncOffset=function(E){for(var h=Math.min(1e3,E.length-3*188),c=0;c>4,Pe=void 0;if(Xe>1){if(Pe=Ae+5+E[Ae+4],Pe===Ae+188)continue}else Pe=Ae+4;switch(Ze){case N:ke&&(U&&(i=o(U))&&this.parseAVCPES(i,!1),U={data:[],size:0}),U&&(U.data.push(E.subarray(Pe,Ae+188)),U.size+=Ae+188-Pe);break;case H:ke&&(L&&(i=o(L))&&(_.isAAC?this.parseAACPES(i):this.parseMPEGPES(i)),L={data:[],size:0}),L&&(L.data.push(E.subarray(Pe,Ae+188)),L.size+=Ae+188-Pe);break;case G:ke&&(W&&(i=o(W))&&this.parseID3PES(i),W={data:[],size:0}),W&&(W.data.push(E.subarray(Pe,Ae+188)),W.size+=Ae+188-Pe);break;case 0:ke&&(Pe+=E[Pe]+1),ie=this._pmtId=p(E,Pe);break;case ie:{ke&&(Pe+=E[Pe]+1);var he=d(E,Pe,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,c);N=he.avc,N>0&&(C.pid=N),H=he.audio,H>0&&(_.pid=H,_.isAAC=he.isAAC),G=he.id3,G>0&&(O.pid=G),Z&&!oe&&(m.logger.log("reparse from beginning"),Z=!1,Ae=Je-188),oe=this.pmtParsed=!0;break}case 17:case 8191:break;default:Z=!0;break}}else this.observer.emit(k.Events.ERROR,k.Events.ERROR,{type:R.ErrorTypes.MEDIA_ERROR,details:R.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});C.pesData=U,_.pesData=L,O.pesData=W;var le={audioTrack:_,avcTrack:C,id3Track:O,textTrack:this._txtTrack};return s&&this.extractRemainingSamples(le),le},v.flush=function(){var E=this.remainderData;this.remainderData=null;var h;return E?h=this.demux(E,-1,!1,!0):h={audioTrack:this._audioTrack,avcTrack:this._avcTrack,textTrack:this._txtTrack,id3Track:this._id3Track},this.extractRemainingSamples(h),this.sampleAes?this.decrypt(h,this.sampleAes):h},v.extractRemainingSamples=function(E){var h=E.audioTrack,c=E.avcTrack,s=E.id3Track,i=c.pesData,C=h.pesData,_=s.pesData,O;i&&(O=o(i))?(this.parseAVCPES(O,!0),c.pesData=null):c.pesData=i,C&&(O=o(C))?(h.isAAC?this.parseAACPES(O):this.parseMPEGPES(O),h.pesData=null):(C!=null&&C.size&&m.logger.log("last AAC PES packet truncated,might overlap between fragments"),h.pesData=C),_&&(O=o(_))?(this.parseID3PES(O),s.pesData=null):s.pesData=_},v.demuxSampleAes=function(E,h,c){var s=this.demux(E,c,!0,!this.config.progressive),i=this.sampleAes=new x.default(this.observer,this.config,h);return this.decrypt(s,i)},v.decrypt=function(E,h){return new Promise(function(c){var s=E.audioTrack,i=E.avcTrack;s.samples&&s.isAAC?h.decryptAacSamples(s.samples,0,function(){i.samples?h.decryptAvcSamples(i.samples,0,0,function(){c(E)}):c(E)}):i.samples&&h.decryptAvcSamples(i.samples,0,0,function(){c(E)})})},v.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},v.parseAVCPES=function(E,h){var c=this,s=this._avcTrack,i=this.parseAVCNALu(E.data),C=!1,_=this.avcSample,O,N=!1;E.data=null,_&&i.length&&!s.audFound&&(u(_,s),_=this.avcSample=n(!1,E.pts,E.dts,"")),i.forEach(function(U){switch(U.type){case 1:{O=!0,_||(_=c.avcSample=n(!0,E.pts,E.dts,"")),C&&(_.debug+="NDR "),_.frame=!0;var H=U.data;if(N&&H.length>4){var G=new w.default(H).readSliceType();(G===2||G===4||G===7||G===9)&&(_.key=!0)}break}case 5:O=!0,_||(_=c.avcSample=n(!0,E.pts,E.dts,"")),C&&(_.debug+="IDR "),_.key=!0,_.frame=!0;break;case 6:{O=!0,C&&_&&(_.debug+="SEI ");var L=new w.default(S(U.data));L.readUByte();for(var W=0,Z=0,oe=!1,ie=0;!oe&&L.bytesAvailable>1;){W=0;do ie=L.readUByte(),W+=ie;while(ie===255);Z=0;do ie=L.readUByte(),Z+=ie;while(ie===255);if(W===4&&L.bytesAvailable!==0){oe=!0;var be=L.readUByte();if(be===181){var Je=L.readUShort();if(Je===49){var Ae=L.readUInt();if(Ae===1195456820){var ke=L.readUByte();if(ke===3){for(var Ze=L.readUByte(),Xe=L.readUByte(),Pe=31&Ze,he=[Ze,Xe],le=0;le16){for(var Se=[],ve=0;ve<16;ve++)Se.push(L.readUByte().toString(16)),(ve===3||ve===5||ve===7||ve===9)&&Se.push("-");for(var Ge=Z-16,it=new Uint8Array(Ge),ee=0;ee=0){var L={data:E.subarray(H,_-s-1),type:G};C.push(L)}else{var W=this.getLastNalUnit();if(W&&(i&&_<=4-i&&(W.state&&(W.data=W.data.subarray(0,W.data.byteLength-i))),N=_-s-1,N>0)){var Z=new Uint8Array(W.data.byteLength+N);Z.set(W.data,0),Z.set(E.subarray(0,N),W.data.byteLength),W.data=Z,W.state=0}}_=0&&s>=0){var oe={data:E.subarray(H,h),type:G,state:s};C.push(oe)}if(C.length===0){var ie=this.getLastNalUnit();if(ie){var be=new Uint8Array(ie.data.byteLength+E.byteLength);be.set(ie.data,0),be.set(E,ie.data.byteLength),ie.data=be}}return c.naluState=s,C},v.parseAACPES=function(E){var h=0,c=this._audioTrack,s=this.aacOverFlow,i=E.data;if(s){this.aacOverFlow=null;var C=s.sample.unit.byteLength,_=Math.min(s.missing,C),O=C-_;s.sample.unit.set(i.subarray(0,_),O),c.samples.push(s.sample),h=s.missing}var N,U;for(N=h,U=i.length;N1;){var C=new Uint8Array(i[0].length+i[1].length);C.set(i[0]),C.set(i[1],i[0].length),i[0]=C,i.splice(1,1)}P=i[0];var _=(P[0]<<16)+(P[1]<<8)+P[2];if(_===1){if(E=(P[4]<<8)+P[5],E&&E>b.size-6)return null;var O=P[7];O&192&&(c=(P[9]&14)*536870912+(P[10]&255)*4194304+(P[11]&254)*16384+(P[12]&255)*128+(P[13]&254)/2,O&64?(s=(P[14]&14)*536870912+(P[15]&255)*4194304+(P[16]&254)*16384+(P[17]&255)*128+(P[18]&254)/2,c-s>60*9e4&&(m.logger.warn(Math.round((c-s)/9e4)+"s delta between PTS and DTS, align them"),c=s)):s=c),h=P[8];var N=h+9;if(b.size<=N)return null;b.size-=N;for(var U=new Uint8Array(b.size),H=0,G=i.length;HL){N-=L;continue}else P=P.subarray(N),L-=N,N=0;U.set(P,v),v+=L}return E&&(E-=h+3),{data:U,pts:c,dts:s,len:E}}return null}function u(b,v){if(b.units.length&&b.frame){if(b.pts===void 0){var P=v.samples,E=P.length;if(E){var h=P[E-1];b.pts=h.pts,b.dts=h.dts}else{v.dropped++;return}}v.samples.push(b)}b.debug.length&&m.logger.log(b.pts+"/"+b.dts+":"+b.debug)}function f(b,v){var P=b.length;if(P>0){if(v.pts>=b[P-1].pts)b.push(v);else for(var E=P-1;E>=0;E--)if(v.ptsc)return i;return 0}},{key:"maxAutoLevel",get:function(){var h=this.levels,c=this.autoLevelCapping,s;return c===-1&&h&&h.length?s=h.length-1:s=c,s}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(h){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,h)}},{key:"audioTracks",get:function(){var h=this.audioTrackController;return h?h.audioTracks:[]}},{key:"audioTrack",get:function(){var h=this.audioTrackController;return h?h.audioTrack:-1},set:function(h){var c=this.audioTrackController;c&&(c.audioTrack=h)}},{key:"subtitleTracks",get:function(){var h=this.subtitleTrackController;return h?h.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var h=this.subtitleTrackController;return h?h.subtitleTrack:-1},set:function(h){var c=this.subtitleTrackController;c&&(c.subtitleTrack=h)}},{key:"media",get:function(){return this._media}},{key:"subtitleDisplay",get:function(){var h=this.subtitleTrackController;return h?h.subtitleDisplay:!1},set:function(h){var c=this.subtitleTrackController;c&&(c.subtitleDisplay=h)}},{key:"lowLatencyMode",get:function(){return this.config.lowLatencyMode},set:function(h){this.config.lowLatencyMode=h}},{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 o.Events}},{key:"ErrorTypes",get:function(){return u.ErrorTypes}},{key:"ErrorDetails",get:function(){return u.ErrorDetails}},{key:"DefaultConfig",get:function(){return v.defaultConfig?v.defaultConfig:n.hlsDefaultConfig},set:function(h){v.defaultConfig=h}}]),v}();b.defaultConfig=void 0},"./src/is-supported.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"isSupported",function(){return w}),I.d(z,"changeTypeSupported",function(){return B});var K=I("./src/utils/mediasource-helper.ts");function T(){return self.SourceBuffer||self.WebKitSourceBuffer}function w(){var x=Object(K.getMediaSource)();if(!x)return!1;var k=T(),D=x&&typeof x.isTypeSupported=="function"&&x.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),m=!k||k.prototype&&typeof k.prototype.appendBuffer=="function"&&typeof k.prototype.remove=="function";return!!D&&!!m}function B(){var x,k=T();return typeof(k==null||((x=k.prototype)===null||x===void 0)?void 0:x.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return g}),I.d(z,"LoadError",function(){return p});var K=I("./src/polyfills/number.ts"),T=I("./src/errors.ts");function w(d,o){d.prototype=Object.create(o.prototype),d.prototype.constructor=d,m(d,o)}function B(d){var o=typeof Map=="function"?new Map:void 0;return B=function(f){if(f===null||!D(f))return f;if(typeof f!="function")throw new TypeError("Super expression must either be null or a function");if(typeof o!="undefined"){if(o.has(f))return o.get(f);o.set(f,S)}function S(){return x(f,arguments,R(this).constructor)}return S.prototype=Object.create(f.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),m(S,f)},B(d)}function x(d,o,u){return k()?x=Reflect.construct:x=function(S,b,v){var P=[null];P.push.apply(P,b);var E=Function.bind.apply(S,P),h=new E;return v&&m(h,v.prototype),h},x.apply(null,arguments)}function k(){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(d){return!1}}function D(d){return Function.toString.call(d).indexOf("[native code]")!==-1}function m(d,o){return m=Object.setPrototypeOf||function(f,S){return f.__proto__=S,f},m(d,o)}function R(d){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)},R(d)}var M=Math.pow(2,17),g=function(){function d(u){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=u}var o=d.prototype;return o.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},o.abort=function(){this.loader&&this.loader.abort()},o.load=function(f,S){var b=this,v=f.url;if(!v)return Promise.reject(new p({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:f,networkDetails:null},"Fragment does not have a "+(v?"part list":"url")));this.abort();var P=this.config,E=P.fLoader,h=P.loader;return new Promise(function(c,s){b.loader&&b.loader.destroy();var i=b.loader=f.loader=E?new E(P):new h(P),C=n(f),_={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:M};f.stats=i.stats,i.load(C,_,{onSuccess:function(N,U,H,G){b.resetLoader(f,i),c({frag:f,part:null,payload:N.data,networkDetails:G})},onError:function(N,U,H){b.resetLoader(f,i),s(new p({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:f,response:N,networkDetails:H}))},onAbort:function(N,U,H){b.resetLoader(f,i),s(new p({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:f,networkDetails:H}))},onTimeout:function(N,U,H){b.resetLoader(f,i),s(new p({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:f,networkDetails:H}))},onProgress:function(N,U,H,G){S&&S({frag:f,part:null,payload:H,networkDetails:G})}})})},o.loadPart=function(f,S,b){var v=this;this.abort();var P=this.config,E=P.fLoader,h=P.loader;return new Promise(function(c,s){v.loader&&v.loader.destroy();var i=v.loader=f.loader=E?new E(P):new h(P),C=n(f,S),_={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:M};S.stats=i.stats,i.load(C,_,{onSuccess:function(N,U,H,G){v.resetLoader(f,i),v.updateStatsFromPart(f,S);var L={frag:f,part:S,payload:N.data,networkDetails:G};b(L),c(L)},onError:function(N,U,H){v.resetLoader(f,i),s(new p({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:f,part:S,response:N,networkDetails:H}))},onAbort:function(N,U,H){f.stats.aborted=S.stats.aborted,v.resetLoader(f,i),s(new p({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:f,part:S,networkDetails:H}))},onTimeout:function(N,U,H){v.resetLoader(f,i),s(new p({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:f,part:S,networkDetails:H}))}})})},o.updateStatsFromPart=function(f,S){var b=f.stats,v=S.stats,P=v.total;if(b.loaded+=v.loaded,P){var E=Math.round(f.duration/S.duration),h=Math.min(Math.round(b.loaded/P),E),c=E-h,s=c*Math.round(b.loaded/h);b.total=b.loaded+s}else b.total=Math.max(b.loaded,b.total);var i=b.loading,C=v.loading;i.start?i.first+=C.first-C.start:(i.start=C.start,i.first=C.first),i.end=C.end},o.resetLoader=function(f,S){f.loader=null,this.loader===S&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),S.destroy()},d}();function n(d,o){o===void 0&&(o=null);var u=o||d,f={frag:d,part:o,responseType:"arraybuffer",url:u.url,headers:{},rangeStart:0,rangeEnd:0},S=u.byteRangeStartOffset,b=u.byteRangeEndOffset;return Object(K.isFiniteNumber)(S)&&Object(K.isFiniteNumber)(b)&&(f.rangeStart=S,f.rangeEnd=b),f}var p=function(d){w(o,d);function o(u){for(var f,S=arguments.length,b=new Array(S>1?S-1:0),v=1;v>8*(15-P)&255;return v},f.setDecryptDataFromLevelKey=function(b,v){var P=b;return(b==null?void 0:b.method)==="AES-128"&&b.uri&&!b.iv&&(P=x.LevelKey.fromURI(b.uri),P.method=b.method,P.iv=this.createInitializationVector(v),P.keyFormat="identity"),P},f.setElementaryStreamInfo=function(b,v,P,E,h,c){c===void 0&&(c=!1);var s=this.elementaryStreams,i=s[b];if(!i){s[b]={startPTS:v,endPTS:P,startDTS:E,endDTS:h,partial:c};return}i.startPTS=Math.min(i.startPTS,v),i.endPTS=Math.max(i.endPTS,P),i.startDTS=Math.min(i.startDTS,E),i.endDTS=Math.max(i.endDTS,h)},f.clearElementaryStreamInfo=function(){var b=this.elementaryStreams;b[g.AUDIO]=null,b[g.VIDEO]=null,b[g.AUDIOVIDEO]=null},M(u,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var b=this.sn;typeof b!="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'),b=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,b)}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 b=Object(K.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+b*1e3}},{key:"encrypted",get:function(){var b;return!!((b=this.decryptdata)!==null&&b!==void 0&&b.keyFormat&&this.decryptdata.uri)}}]),u}(n),d=function(o){D(u,o);function u(f,S,b,v,P){var E;E=o.call(this,b)||this,E.fragOffset=0,E.duration=0,E.gap=!1,E.independent=!1,E.relurl=void 0,E.fragment=void 0,E.index=void 0,E.stats=new k.LoadStats,E.duration=f.decimalFloatingPoint("DURATION"),E.gap=f.bool("GAP"),E.independent=f.bool("INDEPENDENT"),E.relurl=f.enumeratedString("URI"),E.fragment=S,E.index=v;var h=f.enumeratedString("BYTERANGE");return h&&E.setByteRange(h,P),P&&(E.fragOffset=P.fragOffset+P.duration),E}return M(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 S=this.elementaryStreams;return!!(S.audio||S.video||S.audiovideo)}}]),u}(n)},"./src/loader/key-loader.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return B});var K=I("./src/events.ts"),T=I("./src/errors.ts"),w=I("./src/utils/logger.ts"),B=function(){function x(D){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=D,this._registerListeners()}var k=x.prototype;return k._registerListeners=function(){this.hls.on(K.Events.KEY_LOADING,this.onKeyLoading,this)},k._unregisterListeners=function(){this.hls.off(K.Events.KEY_LOADING,this.onKeyLoading)},k.destroy=function(){this._unregisterListeners();for(var m in this.loaders){var R=this.loaders[m];R&&R.destroy()}this.loaders={}},k.onKeyLoading=function(m,R){var M=R.frag,g=M.type,n=this.loaders[g];if(!M.decryptdata){w.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var p=M.decryptdata.uri;if(p!==this.decrypturl||this.decryptkey===null){var d=this.hls.config;if(n&&(w.logger.warn("abort previous key loader for type:"+g),n.abort()),!p){w.logger.warn("key uri is falsy");return}var o=d.loader,u=M.loader=this.loaders[g]=new o(d);this.decrypturl=p,this.decryptkey=null;var f={url:p,frag:M,responseType:"arraybuffer"},S={timeout:d.fragLoadingTimeOut,maxRetry:0,retryDelay:d.fragLoadingRetryDelay,maxRetryDelay:d.fragLoadingMaxRetryTimeout,highWaterMark:0},b={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};u.load(f,S,b)}else this.decryptkey&&(M.decryptdata.key=this.decryptkey,this.hls.trigger(K.Events.KEY_LOADED,{frag:M}))},k.loadsuccess=function(m,R,M){var g=M.frag;if(!g.decryptdata){w.logger.error("after key load, decryptdata unset");return}this.decryptkey=g.decryptdata.key=new Uint8Array(m.data),g.loader=null,delete this.loaders[g.type],this.hls.trigger(K.Events.KEY_LOADED,{frag:g})},k.loaderror=function(m,R){var M=R.frag,g=M.loader;g&&g.abort(),delete this.loaders[M.type],this.hls.trigger(K.Events.ERROR,{type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:M,response:m})},k.loadtimeout=function(m,R){var M=R.frag,g=M.loader;g&&g.abort(),delete this.loaders[M.type],this.hls.trigger(K.Events.ERROR,{type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:M})},x}()},"./src/loader/level-details.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"LevelDetails",function(){return x});var K=I("./src/polyfills/number.ts");function T(k,D){for(var m=0;mR.endSN||M>0||M===0&&g>0,this.updated||this.advanced?this.misses=Math.floor(R.misses*.6):this.misses=R.misses+1,this.availabilityDelay=R.availabilityDelay},w(k,[{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 R=this.driftEndTime-this.driftStartTime;if(R>0){var M=this.driftEnd-this.driftStart;return M*1e3/R}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var R;return(R=this.partList)!==null&&R!==void 0&&R.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var R;return(R=this.fragments)!==null&&R!==void 0&&R.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 R;return(R=this.partList)!==null&&R!==void 0&&R.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var R;return(R=this.partList)!==null&&R!==void 0&&R.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),k}()},"./src/loader/level-key.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"LevelKey",function(){return x});var K=I("./node_modules/url-toolkit/src/url-toolkit.js"),T=I.n(K);function w(k,D){for(var m=0;m2){var s=c.shift()+".";return s+=parseInt(c.shift()).toString(16),s+=("000"+parseInt(c.shift()).toString(16)).substr(-4),s}return h},P.resolve=function(h,c){return T.buildAbsoluteURL(c,h,{alwaysNormalize:!0})},P.parseMasterPlaylist=function(h,c){var s=[],i={},C=!1;M.lastIndex=0;for(var _;(_=M.exec(h))!=null;)if(_[1]){var O=new D.AttrList(_[1]),N={attrs:O,bitrate:O.decimalInteger("AVERAGE-BANDWIDTH")||O.decimalInteger("BANDWIDTH"),name:O.NAME,url:P.resolve(_[2],c)},U=O.decimalResolution("RESOLUTION");U&&(N.width=U.width,N.height=U.height),f((O.CODECS||"").split(/[ ,]+/).filter(function(G){return G}),N),N.videoCodec&&N.videoCodec.indexOf("avc1")!==-1&&(N.videoCodec=P.convertAVC1ToAVCOTI(N.videoCodec)),s.push(N)}else if(_[3]){var H=new D.AttrList(_[3]);H["DATA-ID"]&&(C=!0,i[H["DATA-ID"]]=H)}return{levels:s,sessionData:C?i:null}},P.parseMasterPlaylistMedia=function(h,c,s,i){i===void 0&&(i=[]);var C,_=[],O=0;for(g.lastIndex=0;(C=g.exec(h))!==null;){var N=new D.AttrList(C[1]);if(N.TYPE===s){var U={attrs:N,bitrate:0,id:O++,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,c):""};if(i.length){var H=P.findGroup(i,U.groupId)||i[0];S(U,H,"audioCodec"),S(U,H,"textCodec")}_.push(U)}}return _},P.parseLevelPlaylist=function(h,c,s,i,C){var _=new x.LevelDetails(c),O=_.fragments,N=null,U=0,H=0,G=0,L=0,W=null,Z=new B.Fragment(i,c),oe,ie,be,Je=-1,Ae=!1;for(n.lastIndex=0,_.m3u8=h;(oe=n.exec(h))!==null;){Ae&&(Ae=!1,Z=new B.Fragment(i,c),Z.start=G,Z.sn=U,Z.cc=L,Z.level=s,N&&(Z.initSegment=N,Z.rawProgramDateTime=N.rawProgramDateTime));var ke=oe[1];if(ke){Z.duration=parseFloat(ke);var Ze=(" "+oe[2]).slice(1);Z.title=Ze||null,Z.tagList.push(Ze?["INF",ke,Ze]:["INF",ke])}else if(oe[3])Object(K.isFiniteNumber)(Z.duration)&&(Z.start=G,be&&(Z.levelkey=be),Z.sn=U,Z.level=s,Z.cc=L,Z.urlId=C,O.push(Z),Z.relurl=(" "+oe[3]).slice(1),v(Z,W),W=Z,G+=Z.duration,U++,H=0,Ae=!0);else if(oe[4]){var Xe=(" "+oe[4]).slice(1);W?Z.setByteRange(Xe,W):Z.setByteRange(Xe)}else if(oe[5])Z.rawProgramDateTime=(" "+oe[5]).slice(1),Z.tagList.push(["PROGRAM-DATE-TIME",Z.rawProgramDateTime]),Je===-1&&(Je=O.length);else{if(oe=oe[0].match(p),!oe){m.logger.warn("No matches on slow regex match for level playlist!");continue}for(ie=1;ie-1){m.logger.warn("Keyformat "+Rt+" is not supported from the manifest");continue}else if(Rt!=="identity")continue;Q&&(be=k.LevelKey.fromURL(c,fe),fe&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Q)>=0&&(be.method=Q,be.keyFormat=Rt,He&&(be.keyID=He),Fe&&(be.keyFormatVersions=Fe),be.iv=_e));break}case"START":{var It=new D.AttrList(he),Bt=It.decimalFloatingPoint("TIME-OFFSET");Object(K.isFiniteNumber)(Bt)&&(_.startTimeOffset=Bt);break}case"MAP":{var tn=new D.AttrList(he);Z.relurl=tn.URI,tn.BYTERANGE&&Z.setByteRange(tn.BYTERANGE),Z.level=s,Z.sn="initSegment",be&&(Z.levelkey=be),Z.initSegment=null,N=Z,Ae=!0;break}case"SERVER-CONTROL":{var fn=new D.AttrList(he);_.canBlockReload=fn.bool("CAN-BLOCK-RELOAD"),_.canSkipUntil=fn.optionalFloat("CAN-SKIP-UNTIL",0),_.canSkipDateRanges=_.canSkipUntil>0&&fn.bool("CAN-SKIP-DATERANGES"),_.partHoldBack=fn.optionalFloat("PART-HOLD-BACK",0),_.holdBack=fn.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var tt=new D.AttrList(he);_.partTarget=tt.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ke=_.partList;Ke||(Ke=_.partList=[]);var Ct=H>0?Ke[Ke.length-1]:void 0,Dt=H++,st=new B.Part(new D.AttrList(he),Z,c,Dt,Ct);Ke.push(st),Z.duration+=st.duration;break}case"PRELOAD-HINT":{var xt=new D.AttrList(he);_.preloadHint=xt;break}case"RENDITION-REPORT":{var je=new D.AttrList(he);_.renditionReports=_.renditionReports||[],_.renditionReports.push(je);break}default:m.logger.warn("line parsed but not handled: "+oe);break}}}W&&!W.relurl?(O.pop(),G-=W.duration,_.partList&&(_.fragmentHint=W)):_.partList&&(v(Z,W),Z.cc=L,_.fragmentHint=Z);var we=O.length,Te=O[0],ue=O[we-1];if(G+=_.skippedSegments*_.targetduration,G>0&&we&&ue){_.averagetargetduration=G/we;var pe=ue.sn;_.endSN=pe!=="initSegment"?pe:0,Te&&(_.startCC=Te.cc,Te.initSegment||_.fragments.every(function(me){return me.relurl&&o(me.relurl)})&&(m.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),Z=new B.Fragment(i,c),Z.relurl=ue.relurl,Z.level=s,Z.sn="initSegment",Te.initSegment=Z,_.needSidxRanges=!0))}else _.endSN=0,_.startCC=0;return _.fragmentHint&&(G+=_.fragmentHint.duration),_.totalduration=G,_.endCC=L,Je>0&&b(O,Je),_},P}();function f(P,E){["video","audio","text"].forEach(function(h){var c=P.filter(function(i){return Object(R.isCodecType)(i,h)});if(c.length){var s=c.filter(function(i){return i.lastIndexOf("avc1",0)===0||i.lastIndexOf("mp4a",0)===0});E[h+"Codec"]=s.length>0?s[0]:c[0],P=P.filter(function(i){return c.indexOf(i)===-1})}}),E.unknownCodecs=P}function S(P,E,h){var c=E[h];c&&(P[h]=c)}function b(P,E){for(var h=P[E],c=E;c--;){var s=P[c];if(!s)return;s.programDateTime=h.programDateTime-s.duration*1e3,h=s}}function v(P,E){P.rawProgramDateTime?P.programDateTime=Date.parse(P.rawProgramDateTime):E!=null&&E.programDateTime&&(P.programDateTime=E.endProgramDateTime),Object(K.isFiniteNumber)(P.programDateTime)||(P.programDateTime=null,P.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(re,z,I){"use strict";I.r(z);var K=I("./src/polyfills/number.ts"),T=I("./src/events.ts"),w=I("./src/errors.ts"),B=I("./src/utils/logger.ts"),x=I("./src/utils/mp4-tools.ts"),k=I("./src/loader/m3u8-parser.ts"),D=I("./src/types/loader.ts"),m=I("./src/utils/attr-list.ts");function R(n){var p=n.type;switch(p){case D.PlaylistContextType.AUDIO_TRACK:return D.PlaylistLevelType.AUDIO;case D.PlaylistContextType.SUBTITLE_TRACK:return D.PlaylistLevelType.SUBTITLE;default:return D.PlaylistLevelType.MAIN}}function M(n,p){var d=n.url;return(d===void 0||d.indexOf("data:")===0)&&(d=p.url),d}var g=function(){function n(d){this.hls=void 0,this.loaders=Object.create(null),this.hls=d,this.registerListeners()}var p=n.prototype;return p.registerListeners=function(){var o=this.hls;o.on(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.on(T.Events.LEVEL_LOADING,this.onLevelLoading,this),o.on(T.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),o.on(T.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},p.unregisterListeners=function(){var o=this.hls;o.off(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.off(T.Events.LEVEL_LOADING,this.onLevelLoading,this),o.off(T.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),o.off(T.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},p.createInternalLoader=function(o){var u=this.hls.config,f=u.pLoader,S=u.loader,b=f||S,v=new b(u);return o.loader=v,this.loaders[o.type]=v,v},p.getInternalLoader=function(o){return this.loaders[o.type]},p.resetInternalLoader=function(o){this.loaders[o]&&delete this.loaders[o]},p.destroyInternalLoaders=function(){for(var o in this.loaders){var u=this.loaders[o];u&&u.destroy(),this.resetInternalLoader(o)}},p.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},p.onManifestLoading=function(o,u){var f=u.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:D.PlaylistContextType.MANIFEST,url:f,deliveryDirectives:null})},p.onLevelLoading=function(o,u){var f=u.id,S=u.level,b=u.url,v=u.deliveryDirectives;this.load({id:f,groupId:null,level:S,responseType:"text",type:D.PlaylistContextType.LEVEL,url:b,deliveryDirectives:v})},p.onAudioTrackLoading=function(o,u){var f=u.id,S=u.groupId,b=u.url,v=u.deliveryDirectives;this.load({id:f,groupId:S,level:null,responseType:"text",type:D.PlaylistContextType.AUDIO_TRACK,url:b,deliveryDirectives:v})},p.onSubtitleTrackLoading=function(o,u){var f=u.id,S=u.groupId,b=u.url,v=u.deliveryDirectives;this.load({id:f,groupId:S,level:null,responseType:"text",type:D.PlaylistContextType.SUBTITLE_TRACK,url:b,deliveryDirectives:v})},p.load=function(o){var u,f=this.hls.config,S=this.getInternalLoader(o);if(S){var b=S.context;if(b&&b.url===o.url){B.logger.trace("[playlist-loader]: playlist request ongoing");return}B.logger.log("[playlist-loader]: aborting previous loader for type: "+o.type),S.abort()}var v,P,E,h;switch(o.type){case D.PlaylistContextType.MANIFEST:v=f.manifestLoadingMaxRetry,P=f.manifestLoadingTimeOut,E=f.manifestLoadingRetryDelay,h=f.manifestLoadingMaxRetryTimeout;break;case D.PlaylistContextType.LEVEL:case D.PlaylistContextType.AUDIO_TRACK:case D.PlaylistContextType.SUBTITLE_TRACK:v=0,P=f.levelLoadingTimeOut;break;default:v=f.levelLoadingMaxRetry,P=f.levelLoadingTimeOut,E=f.levelLoadingRetryDelay,h=f.levelLoadingMaxRetryTimeout;break}if(S=this.createInternalLoader(o),(u=o.deliveryDirectives)!==null&&u!==void 0&&u.part){var c;if(o.type===D.PlaylistContextType.LEVEL&&o.level!==null?c=this.hls.levels[o.level].details:o.type===D.PlaylistContextType.AUDIO_TRACK&&o.id!==null?c=this.hls.audioTracks[o.id].details:o.type===D.PlaylistContextType.SUBTITLE_TRACK&&o.id!==null&&(c=this.hls.subtitleTracks[o.id].details),c){var s=c.partTarget,i=c.targetduration;s&&i&&(P=Math.min(Math.max(s*3,i*.8)*1e3,P))}}var C={timeout:P,maxRetry:v,retryDelay:E,maxRetryDelay:h,highWaterMark:0},_={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};S.load(o,C,_)},p.loadsuccess=function(o,u,f,S){if(S===void 0&&(S=null),f.isSidxRequest){this.handleSidxRequest(o,f),this.handlePlaylistLoaded(o,u,f,S);return}this.resetInternalLoader(f.type);var b=o.data;if(b.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(o,f,"no EXTM3U delimiter",S);return}u.parsing.start=performance.now(),b.indexOf("#EXTINF:")>0||b.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(o,u,f,S):this.handleMasterPlaylist(o,u,f,S)},p.loaderror=function(o,u,f){f===void 0&&(f=null),this.handleNetworkError(u,f,!1,o)},p.loadtimeout=function(o,u,f){f===void 0&&(f=null),this.handleNetworkError(u,f,!0)},p.handleMasterPlaylist=function(o,u,f,S){var b=this.hls,v=o.data,P=M(o,f),E=k.default.parseMasterPlaylist(v,P),h=E.levels,c=E.sessionData;if(!h.length){this.handleManifestParsingError(o,f,"no level found in manifest",S);return}var s=h.map(function(U){return{id:U.attrs.AUDIO,audioCodec:U.audioCodec}}),i=h.map(function(U){return{id:U.attrs.SUBTITLES,textCodec:U.textCodec}}),C=k.default.parseMasterPlaylistMedia(v,P,"AUDIO",s),_=k.default.parseMasterPlaylistMedia(v,P,"SUBTITLES",i),O=k.default.parseMasterPlaylistMedia(v,P,"CLOSED-CAPTIONS");if(C.length){var N=C.some(function(U){return!U.url});!N&&h[0].audioCodec&&!h[0].attrs.AUDIO&&(B.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),C.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new m.AttrList({}),bitrate:0,url:""}))}b.trigger(T.Events.MANIFEST_LOADED,{levels:h,audioTracks:C,subtitles:_,captions:O,url:P,stats:u,networkDetails:S,sessionData:c})},p.handleTrackOrLevelPlaylist=function(o,u,f,S){var b=this.hls,v=f.id,P=f.level,E=f.type,h=M(o,f),c=Object(K.isFiniteNumber)(v)?v:0,s=Object(K.isFiniteNumber)(P)?P:c,i=R(f),C=k.default.parseLevelPlaylist(o.data,h,s,i,c);if(!C.fragments.length){b.trigger(T.Events.ERROR,{type:w.ErrorTypes.NETWORK_ERROR,details:w.ErrorDetails.LEVEL_EMPTY_ERROR,fatal:!1,url:h,reason:"no fragments found in level",level:typeof f.level=="number"?f.level:void 0});return}if(E===D.PlaylistContextType.MANIFEST){var _={attrs:new m.AttrList({}),bitrate:0,details:C,name:"",url:h};b.trigger(T.Events.MANIFEST_LOADED,{levels:[_],audioTracks:[],url:h,stats:u,networkDetails:S,sessionData:null})}if(u.parsing.end=performance.now(),C.needSidxRanges){var O,N=(O=C.fragments[0].initSegment)===null||O===void 0?void 0:O.url;this.load({url:N,isSidxRequest:!0,type:E,level:P,levelDetails:C,id:v,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}f.levelDetails=C,this.handlePlaylistLoaded(o,u,f,S)},p.handleSidxRequest=function(o,u){var f=Object(x.parseSegmentIndex)(new Uint8Array(o.data));if(!f)return;var S=f.references,b=u.levelDetails;S.forEach(function(v,P){var E=v.info,h=b.fragments[P];h.byteRange.length===0&&h.setByteRange(String(1+E.end-E.start)+"@"+String(E.start)),h.initSegment&&h.initSegment.setByteRange(String(f.moovEndOffset)+"@0")})},p.handleManifestParsingError=function(o,u,f,S){this.hls.trigger(T.Events.ERROR,{type:w.ErrorTypes.NETWORK_ERROR,details:w.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:u.type===D.PlaylistContextType.MANIFEST,url:o.url,reason:f,response:o,context:u,networkDetails:S})},p.handleNetworkError=function(o,u,f,S){f===void 0&&(f=!1),B.logger.warn("[playlist-loader]: A network "+(f?"timeout":"error")+" occurred while loading "+o.type+" level: "+o.level+" id: "+o.id+' group-id: "'+o.groupId+'"');var b=w.ErrorDetails.UNKNOWN,v=!1,P=this.getInternalLoader(o);switch(o.type){case D.PlaylistContextType.MANIFEST:b=f?w.ErrorDetails.MANIFEST_LOAD_TIMEOUT:w.ErrorDetails.MANIFEST_LOAD_ERROR,v=!0;break;case D.PlaylistContextType.LEVEL:b=f?w.ErrorDetails.LEVEL_LOAD_TIMEOUT:w.ErrorDetails.LEVEL_LOAD_ERROR,v=!1;break;case D.PlaylistContextType.AUDIO_TRACK:b=f?w.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:w.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,v=!1;break;case D.PlaylistContextType.SUBTITLE_TRACK:b=f?w.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:w.ErrorDetails.SUBTITLE_LOAD_ERROR,v=!1;break}P&&this.resetInternalLoader(o.type);var E={type:w.ErrorTypes.NETWORK_ERROR,details:b,fatal:v,url:o.url,loader:P,context:o,networkDetails:u};S&&(E.response=S),this.hls.trigger(T.Events.ERROR,E)},p.handlePlaylistLoaded=function(o,u,f,S){var b=f.type,v=f.level,P=f.id,E=f.groupId,h=f.loader,c=f.levelDetails,s=f.deliveryDirectives;if(!(c!=null&&c.targetduration)){this.handleManifestParsingError(o,f,"invalid target duration",S);return}if(!h)return;c.live&&(h.getCacheAge&&(c.ageHeader=h.getCacheAge()||0),(!h.getCacheAge||isNaN(c.ageHeader))&&(c.ageHeader=0));switch(b){case D.PlaylistContextType.MANIFEST:case D.PlaylistContextType.LEVEL:this.hls.trigger(T.Events.LEVEL_LOADED,{details:c,level:v||0,id:P||0,stats:u,networkDetails:S,deliveryDirectives:s});break;case D.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(T.Events.AUDIO_TRACK_LOADED,{details:c,id:P||0,groupId:E||"",stats:u,networkDetails:S,deliveryDirectives:s});break;case D.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(T.Events.SUBTITLE_TRACK_LOADED,{details:c,id:P||0,groupId:E||"",stats:u,networkDetails:S,deliveryDirectives:s});break}},n}();z.default=g},"./src/polyfills/number.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"isFiniteNumber",function(){return K}),I.d(z,"MAX_SAFE_INTEGER",function(){return T});var K=Number.isFinite||function(w){return typeof w=="number"&&isFinite(w)},T=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(re,z,I){"use strict";I.r(z);var K=function(){function T(){}return T.getSilentFrame=function(B,x){switch(B){case"mp4a.40.2":if(x===1)return new Uint8Array([0,200,0,128,35,128]);if(x===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(x===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(x===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(x===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(x===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(x===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(x===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(x===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}();z.default=K},"./src/remux/mp4-generator.ts":function(re,z,I){"use strict";I.r(z);var K=Math.pow(2,32)-1,T=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 x;for(x in w.types)w.types.hasOwnProperty(x)&&(w.types[x]=[x.charCodeAt(0),x.charCodeAt(1),x.charCodeAt(2),x.charCodeAt(3)]);var k=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]),D=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:k,audio:D};var m=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),R=new Uint8Array([0,0,0,0,0,0,0,0]);w.STTS=w.STSC=w.STCO=R,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 M=new Uint8Array([105,115,111,109]),g=new Uint8Array([97,118,99,49]),n=new Uint8Array([0,0,0,1]);w.FTYP=w.box(w.types.ftyp,M,n,M,g),w.DINF=w.box(w.types.dinf,w.box(w.types.dref,m))},w.box=function(x){for(var k=8,D=arguments.length,m=new Array(D>1?D-1:0),R=1;R>24&255,n[1]=k>>16&255,n[2]=k>>8&255,n[3]=k&255,n.set(x,4),M=0,k=8;M>24&255,x>>16&255,x>>8&255,x&255,D>>24,D>>16&255,D>>8&255,D&255,m>>24,m>>16&255,m>>8&255,m&255,85,196,0,0]))},w.mdia=function(x){return w.box(w.types.mdia,w.mdhd(x.timescale,x.duration),w.hdlr(x.type),w.minf(x))},w.mfhd=function(x){return w.box(w.types.mfhd,new Uint8Array([0,0,0,0,x>>24,x>>16&255,x>>8&255,x&255]))},w.minf=function(x){return x.type==="audio"?w.box(w.types.minf,w.box(w.types.smhd,w.SMHD),w.DINF,w.stbl(x)):w.box(w.types.minf,w.box(w.types.vmhd,w.VMHD),w.DINF,w.stbl(x))},w.moof=function(x,k,D){return w.box(w.types.moof,w.mfhd(x),w.traf(D,k))},w.moov=function(x){for(var k=x.length,D=[];k--;)D[k]=w.trak(x[k]);return w.box.apply(null,[w.types.moov,w.mvhd(x[0].timescale,x[0].duration)].concat(D).concat(w.mvex(x)))},w.mvex=function(x){for(var k=x.length,D=[];k--;)D[k]=w.trex(x[k]);return w.box.apply(null,[w.types.mvex].concat(D))},w.mvhd=function(x,k){k*=x;var D=Math.floor(k/(K+1)),m=Math.floor(k%(K+1)),R=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,x>>24&255,x>>16&255,x>>8&255,x&255,D>>24,D>>16&255,D>>8&255,D&255,m>>24,m>>16&255,m>>8&255,m&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,R)},w.sdtp=function(x){var k=x.samples||[],D=new Uint8Array(4+k.length),m,R;for(m=0;m>>8&255),k.push(M&255),k=k.concat(Array.prototype.slice.call(R));for(m=0;m>>8&255),D.push(M&255),D=D.concat(Array.prototype.slice.call(R));var g=w.box(w.types.avcC,new Uint8Array([1,k[3],k[4],k[5],252|3,224|x.sps.length].concat(k).concat([x.pps.length]).concat(D))),n=x.width,p=x.height,d=x.pixelRatio[0],o=x.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]),g,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([d>>24,d>>16&255,d>>8&255,d&255,o>>24,o>>16&255,o>>8&255,o&255])))},w.esds=function(x){var k=x.config.length;return new Uint8Array([0,0,0,0,3,23+k,0,1,0,4,15+k,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([k]).concat(x.config).concat([6,1,2]))},w.mp4a=function(x){var k=x.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,x.channelCount,0,16,0,0,0,0,k>>8&255,k&255,0,0]),w.box(w.types.esds,w.esds(x)))},w.mp3=function(x){var k=x.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,x.channelCount,0,16,0,0,0,0,k>>8&255,k&255,0,0]))},w.stsd=function(x){return x.type==="audio"?!x.isAAC&&x.codec==="mp3"?w.box(w.types.stsd,w.STSD,w.mp3(x)):w.box(w.types.stsd,w.STSD,w.mp4a(x)):w.box(w.types.stsd,w.STSD,w.avc1(x))},w.tkhd=function(x){var k=x.id,D=x.duration*x.timescale,m=x.width,R=x.height,M=Math.floor(D/(K+1)),g=Math.floor(D%(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,k>>24&255,k>>16&255,k>>8&255,k&255,0,0,0,0,M>>24,M>>16&255,M>>8&255,M&255,g>>24,g>>16&255,g>>8&255,g&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,m>>8&255,m&255,0,0,R>>8&255,R&255,0,0]))},w.traf=function(x,k){var D=w.sdtp(x),m=x.id,R=Math.floor(k/(K+1)),M=Math.floor(k%(K+1));return w.box(w.types.traf,w.box(w.types.tfhd,new Uint8Array([0,0,0,0,m>>24,m>>16&255,m>>8&255,m&255])),w.box(w.types.tfdt,new Uint8Array([1,0,0,0,R>>24,R>>16&255,R>>8&255,R&255,M>>24,M>>16&255,M>>8&255,M&255])),w.trun(x,D.length+16+20+8+16+8+8),D)},w.trak=function(x){return x.duration=x.duration||4294967295,w.box(w.types.trak,w.tkhd(x),w.mdia(x))},w.trex=function(x){var k=x.id;return w.box(w.types.trex,new Uint8Array([0,0,0,0,k>>24,k>>16&255,k>>8&255,k&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},w.trun=function(x,k){var D=x.samples||[],m=D.length,R=12+16*m,M=new Uint8Array(R),g,n,p,d,o,u;for(k+=8+R,M.set([0,0,15,1,m>>>24&255,m>>>16&255,m>>>8&255,m&255,k>>>24&255,k>>>16&255,k>>>8&255,k&255],0),g=0;g>>24&255,p>>>16&255,p>>>8&255,p&255,d>>>24&255,d>>>16&255,d>>>8&255,d&255,o.isLeading<<2|o.dependsOn,o.isDependedOn<<6|o.hasRedundancy<<4|o.paddingValue<<1|o.isNonSync,o.degradPrio&240<<8,o.degradPrio&15,u>>>24&255,u>>>16&255,u>>>8&255,u&255],12+16*g);return w.box(w.types.trun,M)},w.initSegment=function(x){w.types||w.init();var k=w.moov(x),D=new Uint8Array(w.FTYP.byteLength+k.byteLength);return D.set(w.FTYP),D.set(k,w.FTYP.byteLength),D},w}();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,z.default=T},"./src/remux/mp4-remuxer.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return u}),I.d(z,"normalizePts",function(){return f});var K=I("./src/polyfills/number.ts"),T=I("./src/remux/aac-helper.ts"),w=I("./src/remux/mp4-generator.ts"),B=I("./src/events.ts"),x=I("./src/errors.ts"),k=I("./src/utils/logger.ts"),D=I("./src/types/loader.ts"),m=I("./src/utils/timescale-conversion.ts");function R(){return R=Object.assign||function(P){for(var E=1;E0?C:_.pts},c[0].pts);return s&&k.logger.debug("PTS rollover detected"),i},E.remux=function(c,s,i,C,_,O,N,U){var H,G,L,W,Z,oe,ie=_,be=_,Je=c.pid>-1,Ae=s.pid>-1,ke=s.samples.length,Ze=c.samples.length>0,Xe=ke>1,Pe=(!Je||Ze)&&(!Ae||Xe)||this.ISGenerated||N;if(Pe){this.ISGenerated||(L=this.generateIS(c,s,_));var he=this.isVideoContiguous,le=-1;if(Xe&&(le=S(s.samples),!he&&this.config.forceKeyFrameOnDiscontinuity))if(oe=!0,le>0){k.logger.warn("[mp4-remuxer]: Dropped "+le+" out of "+ke+" video samples due to a missing keyframe");var Se=this.getVideoStartPts(s.samples);s.samples=s.samples.slice(le),s.dropped+=le,be+=(s.samples[0].pts-Se)/(s.timescale||9e4)}else le===-1&&(k.logger.warn("[mp4-remuxer]: No keyframe found out of "+ke+" video samples"),oe=!1);if(this.ISGenerated){if(Ze&&Xe){var ve=this.getVideoStartPts(s.samples),Ge=f(c.samples[0].pts,ve)-ve,it=Ge/s.inputTimeScale;ie+=Math.max(0,it),be+=Math.max(0,-it)}if(Ze){if(c.samplerate||(k.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),L=this.generateIS(c,s,_)),G=this.remuxAudio(c,ie,this.isAudioContiguous,O,Ae||Xe||U===D.PlaylistLevelType.AUDIO?be:void 0),Xe){var ee=G?G.endPTS-G.startPTS:0;s.inputTimeScale||(k.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),L=this.generateIS(c,s,_)),H=this.remuxVideo(s,be,he,ee)}}else Xe&&(H=this.remuxVideo(s,be,he,0));H&&(H.firstKeyFrame=le,H.independent=le!==-1)}}return this.ISGenerated&&(i.samples.length&&(Z=this.remuxID3(i,_)),C.samples.length&&(W=this.remuxText(C,_))),{audio:G,video:H,initSegment:L,independent:oe,text:W,id3:Z}},E.generateIS=function(c,s,i){var C=c.samples,_=s.samples,O=this.typeSupported,N={},U=!Object(K.isFiniteNumber)(this._initPTS),H="audio/mp4",G,L,W;if(U&&(G=L=Infinity),c.config&&C.length&&(c.timescale=c.samplerate,c.isAAC||(O.mpeg?(H="audio/mpeg",c.codec=""):O.mp3&&(c.codec="mp3")),N.audio={id:"audio",container:H,codec:c.codec,initSegment:!c.isAAC&&O.mpeg?new Uint8Array(0):w.default.initSegment([c]),metadata:{channelCount:c.channelCount}},U&&(W=c.inputTimeScale,G=L=C[0].pts-Math.round(W*i))),s.sps&&s.pps&&_.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}},U)){W=s.inputTimeScale;var Z=this.getVideoStartPts(_),oe=Math.round(W*i);L=Math.min(L,f(_[0].dts,Z)-oe),G=Math.min(G,Z-oe)}if(Object.keys(N).length)return this.ISGenerated=!0,U&&(this._initPTS=G,this._initDTS=L),{tracks:N,initPTS:G,timescale:W}},E.remuxVideo=function(c,s,i,C){var _=c.inputTimeScale,O=c.samples,N=[],U=O.length,H=this._initPTS,G=this.nextAvcDts,L=8,W,Z,oe,ie=Number.POSITIVE_INFINITY,be=Number.NEGATIVE_INFINITY,Je=0,Ae=!1;if(!i||G===null){var ke=s*_,Ze=O[0].pts-f(O[0].dts,O[0].pts);G=ke-Ze}for(var Xe=0;XePe.pts){var he=9e4*.2;Je=Math.max(Math.min(Je,Pe.pts-Pe.dts),-1*he)}Pe.dts0?Xe-1:Xe].dts&&(Ae=!0)}Ae&&O.sort(function(Vt,Et){var _t=Vt.dts-Et.dts,ct=Vt.pts-Et.pts;return _t||ct}),Z=O[0].dts,oe=O[O.length-1].dts;var le=Math.round((oe-Z)/(U-1));if(Je<0){if(Jele,V=it<-1;if(ee||V){ee?k.logger.warn("AVC: "+Object(m.toMsFromMpegTsClock)(it,!0)+" ms ("+it+"dts) hole between fragments detected, filling it"):k.logger.warn("AVC: "+Object(m.toMsFromMpegTsClock)(-it,!0)+" ms ("+it+"dts) overlapping between fragments detected"),Z=G;var Q=O[0].pts-it;O[0].dts=Z,O[0].pts=Q,k.logger.log("Video: First PTS/DTS adjusted: "+Object(m.toMsFromMpegTsClock)(Q,!0)+"/"+Object(m.toMsFromMpegTsClock)(Z,!0)+", delta: "+Object(m.toMsFromMpegTsClock)(it,!0)+" ms")}}o&&(Z=Math.max(0,Z));for(var fe=0,_e=0,Fe=0;Fe0?Ke-1:Ke].dts;if(pe.stretchShortVideoTrack&&this.nextAudioPts!==null){var xe=Math.floor(pe.maxBufferHole*_),nt=(C?ie+C*_:this.nextAudioPts)-Ct.pts;nt>xe?(W=nt-me,W<0&&(W=me),k.logger.log("[mp4-remuxer]: It is approximately "+nt/90+" ms to the next segment; using duration "+W/90+" ms for the last video frame.")):W=me}else W=me}var We=Math.round(Ct.pts-Ct.dts);N.push(new b(Ct.key,W,st,We))}if(N.length&&p&&p<70){var St=N[0].flags;St.dependsOn=2,St.isNonSync=0}console.assert(W!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=G=oe+W,this.isVideoContiguous=!0;var en=w.default.moof(c.sequenceNumber++,Z,R({},c,{samples:N})),vn="video",Zt={data1:en,data2:fn,startPTS:ie/_,endPTS:(be+W)/_,startDTS:Z/_,endDTS:G/_,type:vn,hasAudio:!1,hasVideo:!0,nb:N.length,dropped:c.dropped};return c.samples=[],c.dropped=0,console.assert(fn.length,"MDAT length must not be zero"),Zt},E.remuxAudio=function(c,s,i,C,_){var O=c.inputTimeScale,N=c.samplerate?c.samplerate:O,U=O/N,H=c.isAAC?g:n,G=H*U,L=this._initPTS,W=!c.isAAC&&this.typeSupported.mpeg,Z=[],oe=c.samples,ie=W?0:8,be=this.nextAudioPts||-1,Je=s*O;if(this.isAudioContiguous=i=i||oe.length&&be>0&&(C&&Math.abs(Je-be)<9e3||Math.abs(f(oe[0].pts-L,Je)-be)<20*G),oe.forEach(function(Te){Te.pts=f(Te.pts-L,Je)}),!i||be<0){if(oe=oe.filter(function(Te){return Te.pts>=0}),!oe.length)return;_===0?be=0:C?be=Math.max(0,Je):be=oe[0].pts}if(c.isAAC)for(var Ae=_!==void 0,ke=this.config.maxAudioFramesDrift,Ze=0,Xe=be;Ze=ke*G&&Se0){_e+=ie;try{fe=new Uint8Array(_e)}catch(Te){this.observer.emit(B.Events.ERROR,B.Events.ERROR,{type:x.ErrorTypes.MUX_ERROR,details:x.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:_e,reason:"fail allocating audio mdat "+_e});return}if(!W){var fn=new DataView(fe.buffer);fn.setUint32(0,_e),fe.set(w.default.types.mdat,4)}}else return;fe.set(It,ie);var tt=It.byteLength;ie+=tt,Z.push(new b(!0,H,tt,0)),Q=Bt}var Ke=Z.length;if(!Ke)return;var Ct=Z[Z.length-1];this.nextAudioPts=be=Q+U*Ct.duration;var Dt=W?new Uint8Array(0):w.default.moof(c.sequenceNumber++,V/U,R({},c,{samples:Z}));c.samples=[];var st=V/O,xt=be/O,je="audio",we={data1:Dt,data2:fe,startPTS:st,endPTS:xt,startDTS:st,endDTS:xt,type:je,hasAudio:!0,hasVideo:!1,nb:Ke};return this.isAudioContiguous=!0,console.assert(fe.length,"MDAT length must not be zero"),we},E.remuxEmptyAudio=function(c,s,i,C){var _=c.inputTimeScale,O=c.samplerate?c.samplerate:_,N=_/O,U=this.nextAudioPts,H=(U!==null?U:C.startDTS*_)+this._initDTS,G=C.endDTS*_+this._initDTS,L=N*g,W=Math.ceil((G-H)/L),Z=T.default.getSilentFrame(c.manifestCodec||c.codec,c.channelCount);if(k.logger.warn("[mp4-remuxer]: remux empty Audio"),!Z){k.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var oe=[],ie=0;ie4294967296;)P+=h;return P}function S(P){for(var E=0;E0?this.lastEndDTS=c:(B.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var s=!!P.audio,i=!!P.video,C="";s&&(C+="audio"),i&&(C+="video");var _={data1:b,startPTS:h,startDTS:h,endPTS:c,endDTS:c,type:C,hasAudio:s,hasVideo:i,nb:1,dropped:0};return S.audio=_.type==="audio"?_:void 0,S.video=_.type!=="audio"?_:void 0,S.text=d,S.id3=p,S.initSegment=v,S},m}(),k=function(R,M,g){return Object(T.getStartDTS)(R,M)-g};function D(m,R){var M=m==null?void 0:m.codec;return M&&M.length>4?M:M==="hvc1"?"hvc1.1.c.L120.90":M==="av01"?"av01.0.04M.08":M==="avc1"||R===w.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}z.default=x},"./src/task-loop.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return K});var K=function(){function T(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var w=T.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(x){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,x),!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(){},T}()},"./src/types/cmcd.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"CMCDVersion",function(){return K}),I.d(z,"CMCDObjectType",function(){return T}),I.d(z,"CMCDStreamingFormat",function(){return w}),I.d(z,"CMCDStreamType",function(){return B});var K=1,T;(function(x){x.MANIFEST="m",x.AUDIO="a",x.VIDEO="v",x.MUXED="av",x.INIT="i",x.CAPTION="c",x.TIMED_TEXT="tt",x.KEY="k",x.OTHER="o"})(T||(T={}));var w;(function(x){x.DASH="d",x.HLS="h",x.SMOOTH="s",x.OTHER="o"})(w||(w={}));var B;(function(x){x.VOD="v",x.LIVE="l"})(B||(B={}))},"./src/types/level.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"HlsSkip",function(){return w}),I.d(z,"getSkipValue",function(){return B}),I.d(z,"HlsUrlParameters",function(){return x}),I.d(z,"Level",function(){return k});function K(D,m){for(var R=0;RNumber.MAX_SAFE_INTEGER?Infinity:m},x.hexadecimalInteger=function(D){if(this[D]){var m=(this[D]||"0x").slice(2);m=(m.length&1?"0":"")+m;for(var R=new Uint8Array(m.length/2),M=0;MNumber.MAX_SAFE_INTEGER?Infinity:m},x.decimalFloatingPoint=function(D){return parseFloat(this[D])},x.optionalFloat=function(D,m){var R=this[D];return R?parseFloat(R):m},x.enumeratedString=function(D){return this[D]},x.bool=function(D){return this[D]==="YES"},x.decimalResolution=function(D){var m=K.exec(this[D]);return m===null?void 0:{width:parseInt(m[1],10),height:parseInt(m[2],10)}},B.parseAttrList=function(D){var m,R={},M='"';for(T.lastIndex=0;(m=T.exec(D))!==null;){var g=m[2];g.indexOf(M)===0&&g.lastIndexOf(M)===g.length-1&&(g=g.slice(1,-1)),R[m[1]]=g}return R},B}()},"./src/utils/binary-search.ts":function(re,z,I){"use strict";I.r(z);var K={search:function(w,B){for(var x=0,k=w.length-1,D=null,m=null;x<=k;){D=(x+k)/2|0,m=w[D];var R=B(m);if(R>0)x=D+1;else if(R<0)k=D-1;else return m}return null}};z.default=K},"./src/utils/buffer-helper.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"BufferHelper",function(){return w});var K=I("./src/utils/logger.ts"),T={length:0,start:function(){return 0},end:function(){return 0}},w=function(){function B(){}return B.isBuffered=function(k,D){try{if(k){for(var m=B.getBuffered(k),R=0;R=m.start(R)&&D<=m.end(R))return!0}}catch(M){}return!1},B.bufferInfo=function(k,D,m){try{if(k){var R=B.getBuffered(k),M=[],g;for(g=0;gn&&(R[g-1].end=k[M].end):R.push(k[M])}else R.push(k[M])}else R=k;for(var p=0,d,o=D,u=D,f=0;f=S&&D=i&&K.logger.log(this.time+" ["+i+"] "+C)},h}(),p=function(c){for(var s=[],i=0;ix&&(this.logger.log(g.DEBUG,"Too large cursor position "+this.pos),this.pos=x)},c.moveCursor=function(i){var C=this.pos+i;if(i>1)for(var _=this.pos+1;_=144&&this.backSpace();var C=w(i);if(this.pos>=x){this.logger.log(g.ERROR,"Cannot insert "+i.toString(16)+" ("+C+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(C,this.currPenState),this.moveCursor(1)},c.clearFromPos=function(i){var C;for(C=i;C0&&(i?_="["+C.join(" | ")+"]":_=C.join(` -`)),_},c.getTextAndFormat=function(){return this.rows},h}(),S=function(){function h(s,i,C){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=i,this.mode=null,this.verbose=0,this.displayedMemory=new f(C),this.nonDisplayedMemory=new f(C),this.lastOutputScreen=new f(C),this.currRollUpRow=this.displayedMemory.rows[B-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=C}var c=h.prototype;return c.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},c.getHandler=function(){return this.outputFilter},c.setHandler=function(i){this.outputFilter=i},c.setPAC=function(i){this.writeScreen.setPAC(i)},c.setBkgData=function(i){this.writeScreen.setBkgData(i)},c.setMode=function(i){if(i===this.mode)return;this.mode=i,this.logger.log(g.INFO,"MODE="+i),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=i},c.insertChars=function(i){for(var C=0;C=46,C.italics)C.foreground="white";else{var _=Math.floor(i/2)-16,O=["white","green","blue","cyan","red","yellow","magenta"];C.foreground=O[_]}this.logger.log(g.INFO,"MIDROW: "+JSON.stringify(C)),this.writeScreen.setPen(C)},c.outputDataUpdate=function(i){i===void 0&&(i=!1);var C=this.logger.time;if(C===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=C:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,C,this.lastOutputScreen),i&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:C),this.lastOutputScreen.copy(this.displayedMemory))},c.cueSplitAtTime=function(i){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,i,this.displayedMemory),this.cueStartTime=i))},h}(),b=function(){function h(s,i,C){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var _=new n;this.channels=[null,new S(s,i,_),new S(s+1,C,_)],this.cmdHistory=E(),this.logger=_}var c=h.prototype;return c.getHandler=function(i){return this.channels[i].getHandler()},c.setHandler=function(i,C){this.channels[i].setHandler(C)},c.addData=function(i,C){var _,O,N,U=!1;this.logger.time=i;for(var H=0;H ("+p([O,N])+")"),_=this.parseCmd(O,N),_||(_=this.parseMidrow(O,N)),_||(_=this.parsePAC(O,N)),_||(_=this.parseBackgroundAttributes(O,N)),!_&&(U=this.parseChars(O,N),U)){var G=this.currentChannel;if(G&&G>0){var L=this.channels[G];L.insertChars(U)}else this.logger.log(g.WARNING,"No channel found yet. TEXT-MODE?")}!_&&!U&&this.logger.log(g.WARNING,"Couldn't parse cleaned data "+p([O,N])+" orig: "+p([C[H],C[H+1]]))}},c.parseCmd=function(i,C){var _=this.cmdHistory,O=(i===20||i===28||i===21||i===29)&&C>=32&&C<=47,N=(i===23||i===31)&&C>=33&&C<=35;if(!(O||N))return!1;if(P(i,C,_))return v(null,null,_),this.logger.log(g.DEBUG,"Repeated command ("+p([i,C])+") is dropped"),!0;var U=i===20||i===21||i===23?1:2,H=this.channels[U];return i===20||i===21||i===28||i===29?C===32?H.ccRCL():C===33?H.ccBS():C===34?H.ccAOF():C===35?H.ccAON():C===36?H.ccDER():C===37?H.ccRU(2):C===38?H.ccRU(3):C===39?H.ccRU(4):C===40?H.ccFON():C===41?H.ccRDC():C===42?H.ccTR():C===43?H.ccRTD():C===44?H.ccEDM():C===45?H.ccCR():C===46?H.ccENM():C===47&&H.ccEOC():H.ccTO(C-32),v(i,C,_),this.currentChannel=U,!0},c.parseMidrow=function(i,C){var _=0;if((i===17||i===25)&&C>=32&&C<=47){if(i===17?_=1:_=2,_!==this.currentChannel)return this.logger.log(g.ERROR,"Mismatch channel in midrow parsing"),!1;var O=this.channels[_];return O?(O.ccMIDROW(C),this.logger.log(g.DEBUG,"MIDROW ("+p([i,C])+")"),!0):!1}return!1},c.parsePAC=function(i,C){var _,O=this.cmdHistory,N=(i>=17&&i<=23||i>=25&&i<=31)&&C>=64&&C<=127,U=(i===16||i===24)&&C>=64&&C<=95;if(!(N||U))return!1;if(P(i,C,O))return v(null,null,O),!0;var H=i<=23?1:2;C>=64&&C<=95?_=H===1?k[i]:m[i]:_=H===1?D[i]:R[i];var G=this.channels[H];return G?(G.setPAC(this.interpretPAC(_,C)),v(i,C,O),this.currentChannel=H,!0):!1},c.interpretPAC=function(i,C){var _,O={color:null,italics:!1,indent:null,underline:!1,row:i};return C>95?_=C-96:_=C-64,O.underline=(_&1)===1,_<=13?O.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(_/2)]:_<=15?(O.italics=!0,O.color="white"):O.indent=Math.floor((_-16)/2)*4,O},c.parseChars=function(i,C){var _,O=null,N=null;if(i>=25?(_=2,N=i-8):(_=1,N=i),N>=17&&N<=19){var U;N===17?U=C+80:N===18?U=C+112:U=C+144,this.logger.log(g.INFO,"Special char '"+w(U)+"' in channel "+_),O=[U]}else i>=32&&i<=127&&(O=C===0?[i]:[i,C]);if(O){var H=p(O);this.logger.log(g.DEBUG,"Char codes = "+H.join(",")),v(i,C,this.cmdHistory)}return O},c.parseBackgroundAttributes=function(i,C){var _=(i===16||i===24)&&C>=32&&C<=47,O=(i===23||i===31)&&C>=45&&C<=47;if(!(_||O))return!1;var N,U={};i===16||i===24?(N=Math.floor((C-32)/2),U.background=M[N],C%2===1&&(U.background=U.background+"_semi")):C===45?U.background="transparent":(U.foreground="black",C===47&&(U.underline=!0));var H=i<=23?1:2,G=this.channels[H];return G.setBkgData(U),v(i,C,this.cmdHistory),!0},c.reset=function(){for(var i=0;i=16?o--:o++;var v=Object(K.fixLineBreaks)(u.trim()),P=Object(T.generateCueId)(m,R,v);(!D||!D.cues||!D.cues.getCueById(P))&&(p=new f(m,R,v),p.id=P,p.line=S+1,p.align="left",p.position=10+Math.min(80,Math.floor(o*8/32)*10),g.push(p))}return D&&g.length&&(g.sort(function(E,h){return E.line==="auto"||h.line==="auto"?0:E.line>8&&h.line>8?h.line-E.line:E.line-h.line}),g.forEach(function(E){return Object(w.addCueToTrack)(D,E)})),g}};z.default=x},"./src/utils/discontinuities.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"findFirstFragWithCC",function(){return B}),I.d(z,"shouldAlignOnDiscontinuities",function(){return x}),I.d(z,"findDiscontinuousReferenceFrag",function(){return k}),I.d(z,"adjustSlidingStart",function(){return m}),I.d(z,"alignStream",function(){return R}),I.d(z,"alignPDT",function(){return g}),I.d(z,"alignFragmentByPDTDelta",function(){return n}),I.d(z,"alignMediaPlaylistByPDT",function(){return p});var K=I("./src/polyfills/number.ts"),T=I("./src/utils/logger.ts"),w=I("./src/controller/level-helper.ts");function B(d,o){for(var u=null,f=0,S=d.length;fu.startCC||d&&d.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=T},"./src/utils/ewma.ts":function(re,z,I){"use strict";I.r(z);var K=function(){function T(B,x,k){x===void 0&&(x=0),k===void 0&&(k=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_=x,this.totalWeight_=k}var w=T.prototype;return w.sample=function(x,k){var D=Math.pow(this.alpha_,x);this.estimate_=k*(1-D)+D*this.estimate_,this.totalWeight_+=x},w.getTotalWeight=function(){return this.totalWeight_},w.getEstimate=function(){if(this.alpha_){var x=1-Math.pow(this.alpha_,this.totalWeight_);if(x)return this.estimate_/x}return this.estimate_},T}();z.default=K},"./src/utils/fetch-loader.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"fetchSupported",function(){return n});var K=I("./src/polyfills/number.ts"),T=I("./src/loader/load-stats.ts"),w=I("./src/demux/chunk-cache.ts");function B(f,S){f.prototype=Object.create(S.prototype),f.prototype.constructor=f,R(f,S)}function x(f){var S=typeof Map=="function"?new Map:void 0;return x=function(v){if(v===null||!m(v))return v;if(typeof v!="function")throw new TypeError("Super expression must either be null or a function");if(typeof S!="undefined"){if(S.has(v))return S.get(v);S.set(v,P)}function P(){return k(v,arguments,M(this).constructor)}return P.prototype=Object.create(v.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),R(P,v)},x(f)}function k(f,S,b){return D()?k=Reflect.construct:k=function(P,E,h){var c=[null];c.push.apply(c,E);var s=Function.bind.apply(P,c),i=new s;return h&&R(i,h.prototype),i},k.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(f){return!1}}function m(f){return Function.toString.call(f).indexOf("[native code]")!==-1}function R(f,S){return R=Object.setPrototypeOf||function(v,P){return v.__proto__=P,v},R(f,S)}function M(f){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},M(f)}function g(){return g=Object.assign||function(f){for(var S=1;S=h&&c(P,E,s.flush(),v)):c(P,E,N,v),_()}).catch(function(){return Promise.reject()})};return C()},f}();function d(f,S){var b={method:"GET",mode:"cors",credentials:"same-origin",signal:S,headers:new self.Headers(g({},f.headers))};return f.rangeEnd&&b.headers.set("Range","bytes="+f.rangeStart+"-"+String(f.rangeEnd-1)),b}function o(f,S){return new self.Request(f.url,S)}var u=function(f){B(S,f);function S(b,v,P){var E;return E=f.call(this,b)||this,E.code=void 0,E.details=void 0,E.code=v,E.details=P,E}return S}(x(Error));z.default=p},"./src/utils/imsc1-ttml-parser.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"IMSC1_CODEC",function(){return m}),I.d(z,"parseIMSC1",function(){return n});var K=I("./src/utils/mp4-tools.ts"),T=I("./src/utils/vttparser.ts"),w=I("./src/utils/vttcue.ts"),B=I("./src/demux/id3.ts"),x=I("./src/utils/timescale-conversion.ts"),k=I("./src/utils/webvtt-parser.ts");function D(){return D=Object.assign||function(h){for(var c=1;c"):K}function x(m){for(var R=arguments.length,M=new Array(R>1?R-1:0),g=1;g>24,S[b+1]=v>>16&255,S[b+2]=v>>8&255,S[b+3]=v&255}function R(S,b){var v=[];if(!b.length)return v;var P,E,h;"data"in S?(P=S.data,E=S.start,h=S.end):(P=S,E=0,h=P.byteLength);for(var c=E;c1?c+s:h;if(i===b[0])if(b.length===1)v.push({data:P,start:c+8,end:C});else{var _=R({data:P,start:c+8,end:C},b.slice(1));_.length&&B.apply(v,_)}c=C}return v}function M(S){var b=R(S,["moov"]),v=b[0],P=v?v.end:null,E=R(S,["sidx"]);if(!E||!E[0])return null;var h=[],c=E[0],s=c.data[0],i=s===0?8:16,C=D(c,i);i+=4;var _=0,O=0;s===0?i+=8:i+=16,i+=2;var N=c.end+O,U=k(c,i);i+=2;for(var H=0;H>>31;if(Z===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var oe=D(c,G);G+=4,h.push({referenceSize:W,subsegmentDuration:oe,info:{duration:oe/C,start:N,end:N+W-1}}),N+=W,G+=4,i=G}return{earliestPresentationTime:_,timescale:C,version:s,referencesCount:U,references:h,moovEndOffset:P}}function g(S){for(var b=[],v=R(S,["moov","trak"]),P=0;Px)&&(this.startTime=x),this.endTime=k,this.screen=D,this.timelineController.createCaptionsTrack(this.trackName)},w.reset=function(){this.cueRanges=[]},T}()},"./src/utils/texttrack-utils.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"sendAddTrackEvent",function(){return T}),I.d(z,"addCueToTrack",function(){return w}),I.d(z,"clearCurrentCues",function(){return B}),I.d(z,"removeCuesInRange",function(){return x}),I.d(z,"getCuesInRange",function(){return D});var K=I("./src/utils/logger.ts");function T(m,R){var M;try{M=new Event("addtrack")}catch(g){M=document.createEvent("Event"),M.initEvent("addtrack",!1,!1)}M.track=m,R.dispatchEvent(M)}function w(m,R){var M=m.mode;if(M==="disabled"&&(m.mode="hidden"),m.cues&&!m.cues.getCueById(R.id))try{if(m.addCue(R),!m.cues.getCueById(R.id))throw new Error("addCue is failed for: "+R)}catch(n){K.logger.debug("[texttrack-utils]: "+n);var g=new self.TextTrackCue(R.startTime,R.endTime,R.text);g.id=R.id,m.addCue(g)}M==="disabled"&&(m.mode=M)}function B(m){var R=m.mode;if(R==="disabled"&&(m.mode="hidden"),m.cues)for(var M=m.cues.length;M--;)m.removeCue(m.cues[M]);R==="disabled"&&(m.mode=R)}function x(m,R,M){var g=m.mode;if(g==="disabled"&&(m.mode="hidden"),m.cues&&m.cues.length>0)for(var n=D(m.cues,R,M),p=0;pm[M].endTime)return-1;for(var g=0,n=M;g<=n;){var p=Math.floor((n+g)/2);if(Rm[p].startTime&&g-1)for(var p=n,d=m.length;p=R&&o.endTime<=M)g.push(o);else if(o.startTime>M)return g}return g}},"./src/utils/time-ranges.ts":function(re,z,I){"use strict";I.r(z);var K={toString:function(w){for(var B="",x=w.length,k=0;k1?R-1:0),g=1;g100)throw new Error("Position must be between 0 and 100.");h=_,this.hasBeenReset=!0}})),Object.defineProperty(g,"positionAlign",k({},n,{get:function(){return c},set:function(_){var O=x(_);if(!O)throw new SyntaxError("An invalid or illegal string was specified.");c=O,this.hasBeenReset=!0}})),Object.defineProperty(g,"size",k({},n,{get:function(){return s},set:function(_){if(_<0||_>100)throw new Error("Size must be between 0 and 100.");s=_,this.hasBeenReset=!0}})),Object.defineProperty(g,"align",k({},n,{get:function(){return i},set:function(_){var O=x(_);if(!O)throw new SyntaxError("An invalid or illegal string was specified.");i=O,this.hasBeenReset=!0}})),g.displayState=void 0}return D.prototype.getCueAsHTML=function(){var m=self.WebVTT;return m.convertCueToDOMTree(self,this.text)},D}()},"./src/utils/vttparser.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"parseTimeStamp",function(){return w}),I.d(z,"fixLineBreaks",function(){return R}),I.d(z,"VTTParser",function(){return M});var K=I("./src/utils/vttcue.ts"),T=function(){function g(){}var n=g.prototype;return n.decode=function(d,o){if(!d)return"";if(typeof d!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(d))},g}();function w(g){function n(d,o,u,f){return(d|0)*3600+(o|0)*60+(u|0)+parseFloat(f||0)}var p=g.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 g(){this.values=Object.create(null)}var n=g.prototype;return n.set=function(d,o){!this.get(d)&&o!==""&&(this.values[d]=o)},n.get=function(d,o,u){return u?this.has(d)?this.values[d]:o[u]:this.has(d)?this.values[d]:o},n.has=function(d){return d in this.values},n.alt=function(d,o,u){for(var f=0;f=0&&u<=100)return this.set(d,u),!0}return!1},g}();function x(g,n,p,d){var o=d?g.split(d):[g];for(var u in o){if(typeof o[u]!="string")continue;var f=o[u].split(p);if(f.length!==2)continue;var S=f[0],b=f[1];n(S,b)}}var k=new K.default(0,0,""),D=k.align==="middle"?"middle":"center";function m(g,n,p){var d=g;function o(){var S=w(g);if(S===null)throw new Error("Malformed timestamp: "+d);return g=g.replace(/^[^\sa-zA-Z-]+/,""),S}function u(S,b){var v=new B;x(S,function(h,c){var s;switch(h){case"region":for(var i=p.length-1;i>=0;i--)if(p[i].id===c){v.set(h,p[i].region);break}break;case"vertical":v.alt(h,c,["rl","lr"]);break;case"line":s=c.split(","),v.integer(h,s[0]),v.percent(h,s[0])&&v.set("snapToLines",!1),v.alt(h,s[0],["auto"]),s.length===2&&v.alt("lineAlign",s[1],["start",D,"end"]);break;case"position":s=c.split(","),v.percent(h,s[0]),s.length===2&&v.alt("positionAlign",s[1],["start",D,"end","line-left","line-right","auto"]);break;case"size":v.percent(h,c);break;case"align":v.alt(h,c,["start",D,"end","left","right"]);break}},/:/,/\s/),b.region=v.get("region",null),b.vertical=v.get("vertical","");var P=v.get("line","auto");P==="auto"&&k.line===-1&&(P=-1),b.line=P,b.lineAlign=v.get("lineAlign","start"),b.snapToLines=v.get("snapToLines",!0),b.size=v.get("size",100),b.align=v.get("align",D);var E=v.get("position","auto");E==="auto"&&k.position===50&&(E=b.align==="start"||b.align==="left"?0:b.align==="end"||b.align==="right"?100:50),b.position=E}function f(){g=g.replace(/^\s+/,"")}if(f(),n.startTime=o(),f(),g.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+d);g=g.substr(3),f(),n.endTime=o(),f(),u(g,n)}function R(g){return g.replace(//gi,` -`)}var M=function(){function g(){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 n=g.prototype;return n.parse=function(d){var o=this;d&&(o.buffer+=o.decoder.decode(d,{stream:!0}));function u(){var E=o.buffer,h=0;for(E=R(E);h")===-1){o.cue.id=S;continue}case"CUE":if(!o.cue){o.state="BADCUE";continue}try{m(S,o.cue,o.regionList)}catch(E){o.cue=null,o.state="BADCUE";continue}o.state="CUETEXT";continue;case"CUETEXT":{var P=S.indexOf("-->")!==-1;if(!S||P&&(v=!0)){o.oncue&&o.cue&&o.oncue(o.cue),o.cue=null,o.state="ID";continue}if(o.cue===null)continue;o.cue.text&&(o.cue.text+=` + timeOffset: `+_);var ie=new B.TransmuxConfig(h,S,u,P,c);this.configureTransmuxer(ie)}if(this.frag=b,this.part=v,C)C.postMessage({cmd:"demux",data:o,decryptdata:O,chunkMeta:f,state:oe},o instanceof ArrayBuffer?[o]:[]);else if(i){var be=i.push(o,O,f,oe);Object(B.isPromise)(be)?be.then(function(Je){s.handleTransmuxComplete(Je)}):this.handleTransmuxComplete(be)}},p.flush=function(o){var u=this;o.transmuxing.start=self.performance.now();var h=this.transmuxer,S=this.worker;if(S)S.postMessage({cmd:"flush",chunkMeta:o});else if(h){var b=h.flush(o);Object(B.isPromise)(b)?b.then(function(v){u.handleFlushResult(v,o)}):this.handleFlushResult(b,o)}},p.handleFlushResult=function(o,u){var h=this;o.forEach(function(S){h.handleTransmuxComplete(S)}),this.onFlush(u)},p.onWorkerMessage=function(o){var u=o.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}}},p.configureTransmuxer=function(o){var u=this.worker,h=this.transmuxer;u?u.postMessage({cmd:"configure",config:o}):h&&h.configure(o)},p.handleTransmuxComplete=function(o){o.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(o)},n}()},"./src/demux/transmuxer-worker.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return k});var K=I("./src/demux/transmuxer.ts"),T=I("./src/events.ts"),w=I("./src/utils/logger.ts"),B=I("./node_modules/eventemitter3/index.js"),x=I.n(B);function k(g){var n=new B.EventEmitter,p=function(o,u){g.postMessage({event:o,data:u})};n.on(T.Events.FRAG_DECRYPTED,p),n.on(T.Events.ERROR,p),g.addEventListener("message",function(d){var o=d.data;switch(o.cmd){case"init":{var u=JSON.parse(o.config);g.transmuxer=new K.default(n,o.typeSupported,u,o.vendor,o.id),Object(w.enableLogs)(u.debug),p("init",null);break}case"configure":{g.transmuxer.configure(o.config);break}case"demux":{var h=g.transmuxer.push(o.data,o.decryptdata,o.chunkMeta,o.state);Object(K.isPromise)(h)?h.then(function(v){D(g,v)}):D(g,h);break}case"flush":{var S=o.chunkMeta,b=g.transmuxer.flush(S);Object(K.isPromise)(b)?b.then(function(v){R(g,v,S)}):R(g,b,S);break}default:break}})}function D(g,n){if(M(n.remuxResult))return;var p=[],d=n.remuxResult,o=d.audio,u=d.video;o&&m(p,o),u&&m(p,u),g.postMessage({event:"transmuxComplete",data:n},p)}function m(g,n){n.data1&&g.push(n.data1.buffer),n.data2&&g.push(n.data2.buffer)}function R(g,n,p){n.forEach(function(d){D(g,d)}),g.postMessage({event:"flush",data:p})}function M(g){return!g.audio&&!g.video&&!g.text&&!g.id3&&!g.initSegment}},"./src/demux/transmuxer.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return u}),I.d(z,"isPromise",function(){return b}),I.d(z,"TransmuxConfig",function(){return v}),I.d(z,"TransmuxState",function(){return P});var K=I("./src/events.ts"),T=I("./src/errors.ts"),w=I("./src/crypt/decrypter.ts"),B=I("./src/demux/aacdemuxer.ts"),x=I("./src/demux/mp4demuxer.ts"),k=I("./src/demux/tsdemuxer.ts"),D=I("./src/demux/mp3demuxer.ts"),m=I("./src/remux/mp4-remuxer.ts"),R=I("./src/remux/passthrough-remuxer.ts"),M=I("./src/demux/chunk-cache.ts"),g=I("./src/utils/mp4-tools.ts"),n=I("./src/utils/logger.ts"),p;try{p=self.performance.now.bind(self.performance)}catch(E){n.logger.debug("Unable to use Performance API on this environment"),p=self.Date.now}var d=[{demux:k.default,remux:m.default},{demux:x.default,remux:R.default},{demux:B.default,remux:m.default},{demux:D.default,remux:m.default}],o=1024;d.forEach(function(E){var f=E.demux;o=Math.max(o,f.minProbeByteLength)});var u=function(){function E(c,s,i,C,_){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 M.default,this.observer=c,this.typeSupported=s,this.config=i,this.vendor=C,this.id=_}var f=E.prototype;return f.configure=function(s){this.transmuxConfig=s,this.decrypter&&this.decrypter.reset()},f.push=function(s,i,C,_){var O=this,N=C.transmuxing;N.executeStart=p();var U=new Uint8Array(s),H=this.cache,G=this.config,L=this.currentTransmuxState,W=this.transmuxConfig;_&&(this.currentTransmuxState=_);var Z=h(U,i);if(Z&&Z.method==="AES-128"){var oe=this.getDecrypter();if(G.enableSoftwareAES){var ie=oe.softwareDecrypt(U,Z.key.buffer,Z.iv.buffer);if(!ie)return N.executeEnd=p(),S(C);U=new Uint8Array(ie)}else return this.decryptionPromise=oe.webCryptoDecrypt(U,Z.key.buffer,Z.iv.buffer).then(function(V){var Q=O.push(V,null,C);return O.decryptionPromise=null,Q}),this.decryptionPromise}var be=_||L,Je=be.contiguous,Ae=be.discontinuity,ke=be.trackSwitch,Ze=be.accurateTimeOffset,Xe=be.timeOffset,Pe=W.audioCodec,fe=W.videoCodec,le=W.defaultInitPts,Se=W.duration,ve=W.initSegmentData;if((Ae||ke)&&this.resetInitSegment(ve,Pe,fe,Se),Ae&&this.resetInitialTimestamp(le),Je||this.resetContiguity(),this.needsProbing(U,Ae,ke)){if(H.dataLength){var Ge=H.flush();U=Object(g.appendUint8Array)(Ge,U)}this.configureTransmuxer(U,W)}var it=this.transmux(U,Z,Xe,Ze,C),ee=this.currentTransmuxState;return ee.contiguous=!0,ee.discontinuity=!1,ee.trackSwitch=!1,N.executeEnd=p(),it},f.flush=function(s){var i=this,C=s.transmuxing;C.executeStart=p();var _=this.decrypter,O=this.cache,N=this.currentTransmuxState,U=this.decryptionPromise;if(U)return U.then(function(){return i.flush(s)});var H=[],G=N.timeOffset;if(_){var L=_.flush();L&&H.push(this.push(L,null,s))}var W=O.dataLength;O.reset();var Z=this.demuxer,oe=this.remuxer;if(!Z||!oe)return W>=o&&this.observer.emit(K.Events.ERROR,K.Events.ERROR,{type:T.ErrorTypes.MEDIA_ERROR,details:T.ErrorDetails.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"}),C.executeEnd=p(),[S(s)];var ie=Z.flush(G);return b(ie)?ie.then(function(be){return i.flushRemux(H,be,s),H}):(this.flushRemux(H,ie,s),H)},f.flushRemux=function(s,i,C){var _=i.audioTrack,O=i.avcTrack,N=i.id3Track,U=i.textTrack,H=this.currentTransmuxState,G=H.accurateTimeOffset,L=H.timeOffset;n.logger.log("[transmuxer.ts]: Flushed fragment "+C.sn+(C.part>-1?" p: "+C.part:"")+" of level "+C.level);var W=this.remuxer.remux(_,O,N,U,L,G,!0,this.id);s.push({remuxResult:W,chunkMeta:C}),C.transmuxing.executeEnd=p()},f.resetInitialTimestamp=function(s){var i=this.demuxer,C=this.remuxer;if(!i||!C)return;i.resetTimeStamp(s),C.resetTimeStamp(s)},f.resetContiguity=function(){var s=this.demuxer,i=this.remuxer;if(!s||!i)return;s.resetContiguity(),i.resetNextTimestamp()},f.resetInitSegment=function(s,i,C,_){var O=this.demuxer,N=this.remuxer;if(!O||!N)return;O.resetInitSegment(i,C,_),N.resetInitSegment(s,i,C)},f.destroy=function(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)},f.transmux=function(s,i,C,_,O){var N;return i&&i.method==="SAMPLE-AES"?N=this.transmuxSampleAes(s,i,C,_,O):N=this.transmuxUnencrypted(s,C,_,O),N},f.transmuxUnencrypted=function(s,i,C,_){var O=this.demuxer.demux(s,i,!1,!this.config.progressive),N=O.audioTrack,U=O.avcTrack,H=O.id3Track,G=O.textTrack,L=this.remuxer.remux(N,U,H,G,i,C,!1,this.id);return{remuxResult:L,chunkMeta:_}},f.transmuxSampleAes=function(s,i,C,_,O){var N=this;return this.demuxer.demuxSampleAes(s,i,C).then(function(U){var H=N.remuxer.remux(U.audioTrack,U.avcTrack,U.id3Track,U.textTrack,C,_,!1,N.id);return{remuxResult:H,chunkMeta:O}})},f.configureTransmuxer=function(s,i){for(var C=this.config,_=this.observer,O=this.typeSupported,N=this.vendor,U=i.audioCodec,H=i.defaultInitPts,G=i.duration,L=i.initSegmentData,W=i.videoCodec,Z,oe=0,ie=d.length;oe0&&f!=null&&f.key!=null&&f.iv!==null&&f.method!=null&&(c=f),c}var S=function(f){return{remuxResult:{},chunkMeta:f}};function b(E){return"then"in E&&E.then instanceof Function}var v=function(f,c,s,i,C){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=c,this.initSegmentData=s,this.duration=i,this.defaultInitPts=C},P=function(f,c,s,i,C){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=c,this.accurateTimeOffset=s,this.trackSwitch=i,this.timeOffset=C}},"./src/demux/tsdemuxer.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"discardEPB",function(){return S});var K=I("./src/demux/adts.ts"),T=I("./src/demux/mpegaudio.ts"),w=I("./src/demux/exp-golomb.ts"),B=I("./src/demux/id3.ts"),x=I("./src/demux/sample-aes.ts"),k=I("./src/events.ts"),D=I("./src/utils/mp4-tools.ts"),m=I("./src/utils/logger.ts"),R=I("./src/errors.ts"),M={video:1,audio:2,id3:3,text:4},g=function(){function b(P,E,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=P,this.config=E,this.typeSupported=f}b.probe=function(E){var f=b.syncOffset(E);return f<0?!1:(f&&m.logger.warn("MPEG2-TS detected but first sync word found @ offset "+f+", junk ahead ?"),!0)},b.syncOffset=function(E){for(var f=Math.min(1e3,E.length-3*188),c=0;c>4,Pe=void 0;if(Xe>1){if(Pe=Ae+5+E[Ae+4],Pe===Ae+188)continue}else Pe=Ae+4;switch(Ze){case N:ke&&(U&&(i=o(U))&&this.parseAVCPES(i,!1),U={data:[],size:0}),U&&(U.data.push(E.subarray(Pe,Ae+188)),U.size+=Ae+188-Pe);break;case H:ke&&(L&&(i=o(L))&&(_.isAAC?this.parseAACPES(i):this.parseMPEGPES(i)),L={data:[],size:0}),L&&(L.data.push(E.subarray(Pe,Ae+188)),L.size+=Ae+188-Pe);break;case G:ke&&(W&&(i=o(W))&&this.parseID3PES(i),W={data:[],size:0}),W&&(W.data.push(E.subarray(Pe,Ae+188)),W.size+=Ae+188-Pe);break;case 0:ke&&(Pe+=E[Pe]+1),ie=this._pmtId=p(E,Pe);break;case ie:{ke&&(Pe+=E[Pe]+1);var fe=d(E,Pe,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,c);N=fe.avc,N>0&&(C.pid=N),H=fe.audio,H>0&&(_.pid=H,_.isAAC=fe.isAAC),G=fe.id3,G>0&&(O.pid=G),Z&&!oe&&(m.logger.log("reparse from beginning"),Z=!1,Ae=Je-188),oe=this.pmtParsed=!0;break}case 17:case 8191:break;default:Z=!0;break}}else this.observer.emit(k.Events.ERROR,k.Events.ERROR,{type:R.ErrorTypes.MEDIA_ERROR,details:R.ErrorDetails.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});C.pesData=U,_.pesData=L,O.pesData=W;var le={audioTrack:_,avcTrack:C,id3Track:O,textTrack:this._txtTrack};return s&&this.extractRemainingSamples(le),le},v.flush=function(){var E=this.remainderData;this.remainderData=null;var f;return E?f=this.demux(E,-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},v.extractRemainingSamples=function(E){var f=E.audioTrack,c=E.avcTrack,s=E.id3Track,i=c.pesData,C=f.pesData,_=s.pesData,O;i&&(O=o(i))?(this.parseAVCPES(O,!0),c.pesData=null):c.pesData=i,C&&(O=o(C))?(f.isAAC?this.parseAACPES(O):this.parseMPEGPES(O),f.pesData=null):(C!=null&&C.size&&m.logger.log("last AAC PES packet truncated,might overlap between fragments"),f.pesData=C),_&&(O=o(_))?(this.parseID3PES(O),s.pesData=null):s.pesData=_},v.demuxSampleAes=function(E,f,c){var s=this.demux(E,c,!0,!this.config.progressive),i=this.sampleAes=new x.default(this.observer,this.config,f);return this.decrypt(s,i)},v.decrypt=function(E,f){return new Promise(function(c){var s=E.audioTrack,i=E.avcTrack;s.samples&&s.isAAC?f.decryptAacSamples(s.samples,0,function(){i.samples?f.decryptAvcSamples(i.samples,0,0,function(){c(E)}):c(E)}):i.samples&&f.decryptAvcSamples(i.samples,0,0,function(){c(E)})})},v.destroy=function(){this._initPTS=this._initDTS=null,this._duration=0},v.parseAVCPES=function(E,f){var c=this,s=this._avcTrack,i=this.parseAVCNALu(E.data),C=!1,_=this.avcSample,O,N=!1;E.data=null,_&&i.length&&!s.audFound&&(u(_,s),_=this.avcSample=n(!1,E.pts,E.dts,"")),i.forEach(function(U){switch(U.type){case 1:{O=!0,_||(_=c.avcSample=n(!0,E.pts,E.dts,"")),C&&(_.debug+="NDR "),_.frame=!0;var H=U.data;if(N&&H.length>4){var G=new w.default(H).readSliceType();(G===2||G===4||G===7||G===9)&&(_.key=!0)}break}case 5:O=!0,_||(_=c.avcSample=n(!0,E.pts,E.dts,"")),C&&(_.debug+="IDR "),_.key=!0,_.frame=!0;break;case 6:{O=!0,C&&_&&(_.debug+="SEI ");var L=new w.default(S(U.data));L.readUByte();for(var W=0,Z=0,oe=!1,ie=0;!oe&&L.bytesAvailable>1;){W=0;do ie=L.readUByte(),W+=ie;while(ie===255);Z=0;do ie=L.readUByte(),Z+=ie;while(ie===255);if(W===4&&L.bytesAvailable!==0){oe=!0;var be=L.readUByte();if(be===181){var Je=L.readUShort();if(Je===49){var Ae=L.readUInt();if(Ae===1195456820){var ke=L.readUByte();if(ke===3){for(var Ze=L.readUByte(),Xe=L.readUByte(),Pe=31&Ze,fe=[Ze,Xe],le=0;le16){for(var Se=[],ve=0;ve<16;ve++)Se.push(L.readUByte().toString(16)),(ve===3||ve===5||ve===7||ve===9)&&Se.push("-");for(var Ge=Z-16,it=new Uint8Array(Ge),ee=0;ee=0){var L={data:E.subarray(H,_-s-1),type:G};C.push(L)}else{var W=this.getLastNalUnit();if(W&&(i&&_<=4-i&&(W.state&&(W.data=W.data.subarray(0,W.data.byteLength-i))),N=_-s-1,N>0)){var Z=new Uint8Array(W.data.byteLength+N);Z.set(W.data,0),Z.set(E.subarray(0,N),W.data.byteLength),W.data=Z,W.state=0}}_=0&&s>=0){var oe={data:E.subarray(H,f),type:G,state:s};C.push(oe)}if(C.length===0){var ie=this.getLastNalUnit();if(ie){var be=new Uint8Array(ie.data.byteLength+E.byteLength);be.set(ie.data,0),be.set(E,ie.data.byteLength),ie.data=be}}return c.naluState=s,C},v.parseAACPES=function(E){var f=0,c=this._audioTrack,s=this.aacOverFlow,i=E.data;if(s){this.aacOverFlow=null;var C=s.sample.unit.byteLength,_=Math.min(s.missing,C),O=C-_;s.sample.unit.set(i.subarray(0,_),O),c.samples.push(s.sample),f=s.missing}var N,U;for(N=f,U=i.length;N1;){var C=new Uint8Array(i[0].length+i[1].length);C.set(i[0]),C.set(i[1],i[0].length),i[0]=C,i.splice(1,1)}P=i[0];var _=(P[0]<<16)+(P[1]<<8)+P[2];if(_===1){if(E=(P[4]<<8)+P[5],E&&E>b.size-6)return null;var O=P[7];O&192&&(c=(P[9]&14)*536870912+(P[10]&255)*4194304+(P[11]&254)*16384+(P[12]&255)*128+(P[13]&254)/2,O&64?(s=(P[14]&14)*536870912+(P[15]&255)*4194304+(P[16]&254)*16384+(P[17]&255)*128+(P[18]&254)/2,c-s>60*9e4&&(m.logger.warn(Math.round((c-s)/9e4)+"s delta between PTS and DTS, align them"),c=s)):s=c),f=P[8];var N=f+9;if(b.size<=N)return null;b.size-=N;for(var U=new Uint8Array(b.size),H=0,G=i.length;HL){N-=L;continue}else P=P.subarray(N),L-=N,N=0;U.set(P,v),v+=L}return E&&(E-=f+3),{data:U,pts:c,dts:s,len:E}}return null}function u(b,v){if(b.units.length&&b.frame){if(b.pts===void 0){var P=v.samples,E=P.length;if(E){var f=P[E-1];b.pts=f.pts,b.dts=f.dts}else{v.dropped++;return}}v.samples.push(b)}b.debug.length&&m.logger.log(b.pts+"/"+b.dts+":"+b.debug)}function h(b,v){var P=b.length;if(P>0){if(v.pts>=b[P-1].pts)b.push(v);else for(var E=P-1;E>=0;E--)if(v.ptsc)return i;return 0}},{key:"maxAutoLevel",get:function(){var f=this.levels,c=this.autoLevelCapping,s;return c===-1&&f&&f.length?s=f.length-1:s=c,s}},{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 c=this.audioTrackController;c&&(c.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 c=this.subtitleTrackController;c&&(c.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 c=this.subtitleTrackController;c&&(c.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 o.Events}},{key:"ErrorTypes",get:function(){return u.ErrorTypes}},{key:"ErrorDetails",get:function(){return u.ErrorDetails}},{key:"DefaultConfig",get:function(){return v.defaultConfig?v.defaultConfig:n.hlsDefaultConfig},set:function(f){v.defaultConfig=f}}]),v}();b.defaultConfig=void 0},"./src/is-supported.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"isSupported",function(){return w}),I.d(z,"changeTypeSupported",function(){return B});var K=I("./src/utils/mediasource-helper.ts");function T(){return self.SourceBuffer||self.WebKitSourceBuffer}function w(){var x=Object(K.getMediaSource)();if(!x)return!1;var k=T(),D=x&&typeof x.isTypeSupported=="function"&&x.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),m=!k||k.prototype&&typeof k.prototype.appendBuffer=="function"&&typeof k.prototype.remove=="function";return!!D&&!!m}function B(){var x,k=T();return typeof(k==null||((x=k.prototype)===null||x===void 0)?void 0:x.changeType)=="function"}},"./src/loader/fragment-loader.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return g}),I.d(z,"LoadError",function(){return p});var K=I("./src/polyfills/number.ts"),T=I("./src/errors.ts");function w(d,o){d.prototype=Object.create(o.prototype),d.prototype.constructor=d,m(d,o)}function B(d){var o=typeof Map=="function"?new Map:void 0;return B=function(h){if(h===null||!D(h))return h;if(typeof h!="function")throw new TypeError("Super expression must either be null or a function");if(typeof o!="undefined"){if(o.has(h))return o.get(h);o.set(h,S)}function S(){return x(h,arguments,R(this).constructor)}return S.prototype=Object.create(h.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),m(S,h)},B(d)}function x(d,o,u){return k()?x=Reflect.construct:x=function(S,b,v){var P=[null];P.push.apply(P,b);var E=Function.bind.apply(S,P),f=new E;return v&&m(f,v.prototype),f},x.apply(null,arguments)}function k(){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(d){return!1}}function D(d){return Function.toString.call(d).indexOf("[native code]")!==-1}function m(d,o){return m=Object.setPrototypeOf||function(h,S){return h.__proto__=S,h},m(d,o)}function R(d){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(u){return u.__proto__||Object.getPrototypeOf(u)},R(d)}var M=Math.pow(2,17),g=function(){function d(u){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=u}var o=d.prototype;return o.destroy=function(){this.loader&&(this.loader.destroy(),this.loader=null)},o.abort=function(){this.loader&&this.loader.abort()},o.load=function(h,S){var b=this,v=h.url;if(!v)return Promise.reject(new p({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:h,networkDetails:null},"Fragment does not have a "+(v?"part list":"url")));this.abort();var P=this.config,E=P.fLoader,f=P.loader;return new Promise(function(c,s){b.loader&&b.loader.destroy();var i=b.loader=h.loader=E?new E(P):new f(P),C=n(h),_={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:M};h.stats=i.stats,i.load(C,_,{onSuccess:function(N,U,H,G){b.resetLoader(h,i),c({frag:h,part:null,payload:N.data,networkDetails:G})},onError:function(N,U,H){b.resetLoader(h,i),s(new p({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:h,response:N,networkDetails:H}))},onAbort:function(N,U,H){b.resetLoader(h,i),s(new p({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:h,networkDetails:H}))},onTimeout:function(N,U,H){b.resetLoader(h,i),s(new p({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:h,networkDetails:H}))},onProgress:function(N,U,H,G){S&&S({frag:h,part:null,payload:H,networkDetails:G})}})})},o.loadPart=function(h,S,b){var v=this;this.abort();var P=this.config,E=P.fLoader,f=P.loader;return new Promise(function(c,s){v.loader&&v.loader.destroy();var i=v.loader=h.loader=E?new E(P):new f(P),C=n(h,S),_={timeout:P.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:P.fragLoadingMaxRetryTimeout,highWaterMark:M};S.stats=i.stats,i.load(C,_,{onSuccess:function(N,U,H,G){v.resetLoader(h,i),v.updateStatsFromPart(h,S);var L={frag:h,part:S,payload:N.data,networkDetails:G};b(L),c(L)},onError:function(N,U,H){v.resetLoader(h,i),s(new p({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_ERROR,fatal:!1,frag:h,part:S,response:N,networkDetails:H}))},onAbort:function(N,U,H){h.stats.aborted=S.stats.aborted,v.resetLoader(h,i),s(new p({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.INTERNAL_ABORTED,fatal:!1,frag:h,part:S,networkDetails:H}))},onTimeout:function(N,U,H){v.resetLoader(h,i),s(new p({type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.FRAG_LOAD_TIMEOUT,fatal:!1,frag:h,part:S,networkDetails:H}))}})})},o.updateStatsFromPart=function(h,S){var b=h.stats,v=S.stats,P=v.total;if(b.loaded+=v.loaded,P){var E=Math.round(h.duration/S.duration),f=Math.min(Math.round(b.loaded/P),E),c=E-f,s=c*Math.round(b.loaded/f);b.total=b.loaded+s}else b.total=Math.max(b.loaded,b.total);var i=b.loading,C=v.loading;i.start?i.first+=C.first-C.start:(i.start=C.start,i.first=C.first),i.end=C.end},o.resetLoader=function(h,S){h.loader=null,this.loader===S&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),S.destroy()},d}();function n(d,o){o===void 0&&(o=null);var u=o||d,h={frag:d,part:o,responseType:"arraybuffer",url:u.url,headers:{},rangeStart:0,rangeEnd:0},S=u.byteRangeStartOffset,b=u.byteRangeEndOffset;return Object(K.isFiniteNumber)(S)&&Object(K.isFiniteNumber)(b)&&(h.rangeStart=S,h.rangeEnd=b),h}var p=function(d){w(o,d);function o(u){for(var h,S=arguments.length,b=new Array(S>1?S-1:0),v=1;v>8*(15-P)&255;return v},h.setDecryptDataFromLevelKey=function(b,v){var P=b;return(b==null?void 0:b.method)==="AES-128"&&b.uri&&!b.iv&&(P=x.LevelKey.fromURI(b.uri),P.method=b.method,P.iv=this.createInitializationVector(v),P.keyFormat="identity"),P},h.setElementaryStreamInfo=function(b,v,P,E,f,c){c===void 0&&(c=!1);var s=this.elementaryStreams,i=s[b];if(!i){s[b]={startPTS:v,endPTS:P,startDTS:E,endDTS:f,partial:c};return}i.startPTS=Math.min(i.startPTS,v),i.endPTS=Math.max(i.endPTS,P),i.startDTS=Math.min(i.startDTS,E),i.endDTS=Math.max(i.endDTS,f)},h.clearElementaryStreamInfo=function(){var b=this.elementaryStreams;b[g.AUDIO]=null,b[g.VIDEO]=null,b[g.AUDIOVIDEO]=null},M(u,[{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var b=this.sn;typeof b!="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'),b=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,b)}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 b=Object(K.isFiniteNumber)(this.duration)?this.duration:0;return this.programDateTime+b*1e3}},{key:"encrypted",get:function(){var b;return!!((b=this.decryptdata)!==null&&b!==void 0&&b.keyFormat&&this.decryptdata.uri)}}]),u}(n),d=function(o){D(u,o);function u(h,S,b,v,P){var E;E=o.call(this,b)||this,E.fragOffset=0,E.duration=0,E.gap=!1,E.independent=!1,E.relurl=void 0,E.fragment=void 0,E.index=void 0,E.stats=new k.LoadStats,E.duration=h.decimalFloatingPoint("DURATION"),E.gap=h.bool("GAP"),E.independent=h.bool("INDEPENDENT"),E.relurl=h.enumeratedString("URI"),E.fragment=S,E.index=v;var f=h.enumeratedString("BYTERANGE");return f&&E.setByteRange(f,P),P&&(E.fragOffset=P.fragOffset+P.duration),E}return M(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 S=this.elementaryStreams;return!!(S.audio||S.video||S.audiovideo)}}]),u}(n)},"./src/loader/key-loader.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return B});var K=I("./src/events.ts"),T=I("./src/errors.ts"),w=I("./src/utils/logger.ts"),B=function(){function x(D){this.hls=void 0,this.loaders={},this.decryptkey=null,this.decrypturl=null,this.hls=D,this._registerListeners()}var k=x.prototype;return k._registerListeners=function(){this.hls.on(K.Events.KEY_LOADING,this.onKeyLoading,this)},k._unregisterListeners=function(){this.hls.off(K.Events.KEY_LOADING,this.onKeyLoading)},k.destroy=function(){this._unregisterListeners();for(var m in this.loaders){var R=this.loaders[m];R&&R.destroy()}this.loaders={}},k.onKeyLoading=function(m,R){var M=R.frag,g=M.type,n=this.loaders[g];if(!M.decryptdata){w.logger.warn("Missing decryption data on fragment in onKeyLoading");return}var p=M.decryptdata.uri;if(p!==this.decrypturl||this.decryptkey===null){var d=this.hls.config;if(n&&(w.logger.warn("abort previous key loader for type:"+g),n.abort()),!p){w.logger.warn("key uri is falsy");return}var o=d.loader,u=M.loader=this.loaders[g]=new o(d);this.decrypturl=p,this.decryptkey=null;var h={url:p,frag:M,responseType:"arraybuffer"},S={timeout:d.fragLoadingTimeOut,maxRetry:0,retryDelay:d.fragLoadingRetryDelay,maxRetryDelay:d.fragLoadingMaxRetryTimeout,highWaterMark:0},b={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};u.load(h,S,b)}else this.decryptkey&&(M.decryptdata.key=this.decryptkey,this.hls.trigger(K.Events.KEY_LOADED,{frag:M}))},k.loadsuccess=function(m,R,M){var g=M.frag;if(!g.decryptdata){w.logger.error("after key load, decryptdata unset");return}this.decryptkey=g.decryptdata.key=new Uint8Array(m.data),g.loader=null,delete this.loaders[g.type],this.hls.trigger(K.Events.KEY_LOADED,{frag:g})},k.loaderror=function(m,R){var M=R.frag,g=M.loader;g&&g.abort(),delete this.loaders[M.type],this.hls.trigger(K.Events.ERROR,{type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.KEY_LOAD_ERROR,fatal:!1,frag:M,response:m})},k.loadtimeout=function(m,R){var M=R.frag,g=M.loader;g&&g.abort(),delete this.loaders[M.type],this.hls.trigger(K.Events.ERROR,{type:T.ErrorTypes.NETWORK_ERROR,details:T.ErrorDetails.KEY_LOAD_TIMEOUT,fatal:!1,frag:M})},x}()},"./src/loader/level-details.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"LevelDetails",function(){return x});var K=I("./src/polyfills/number.ts");function T(k,D){for(var m=0;mR.endSN||M>0||M===0&&g>0,this.updated||this.advanced?this.misses=Math.floor(R.misses*.6):this.misses=R.misses+1,this.availabilityDelay=R.availabilityDelay},w(k,[{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 R=this.driftEndTime-this.driftStartTime;if(R>0){var M=this.driftEnd-this.driftStart;return M*1e3/R}return 1}},{key:"edge",get:function(){return this.partEnd||this.fragmentEnd}},{key:"partEnd",get:function(){var R;return(R=this.partList)!==null&&R!==void 0&&R.length?this.partList[this.partList.length-1].end:this.fragmentEnd}},{key:"fragmentEnd",get:function(){var R;return(R=this.fragments)!==null&&R!==void 0&&R.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 R;return(R=this.partList)!==null&&R!==void 0&&R.length?this.partList[this.partList.length-1].index:-1}},{key:"lastPartSn",get:function(){var R;return(R=this.partList)!==null&&R!==void 0&&R.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}}]),k}()},"./src/loader/level-key.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"LevelKey",function(){return x});var K=I("./node_modules/url-toolkit/src/url-toolkit.js"),T=I.n(K);function w(k,D){for(var m=0;m2){var s=c.shift()+".";return s+=parseInt(c.shift()).toString(16),s+=("000"+parseInt(c.shift()).toString(16)).substr(-4),s}return f},P.resolve=function(f,c){return T.buildAbsoluteURL(c,f,{alwaysNormalize:!0})},P.parseMasterPlaylist=function(f,c){var s=[],i={},C=!1;M.lastIndex=0;for(var _;(_=M.exec(f))!=null;)if(_[1]){var O=new D.AttrList(_[1]),N={attrs:O,bitrate:O.decimalInteger("AVERAGE-BANDWIDTH")||O.decimalInteger("BANDWIDTH"),name:O.NAME,url:P.resolve(_[2],c)},U=O.decimalResolution("RESOLUTION");U&&(N.width=U.width,N.height=U.height),h((O.CODECS||"").split(/[ ,]+/).filter(function(G){return G}),N),N.videoCodec&&N.videoCodec.indexOf("avc1")!==-1&&(N.videoCodec=P.convertAVC1ToAVCOTI(N.videoCodec)),s.push(N)}else if(_[3]){var H=new D.AttrList(_[3]);H["DATA-ID"]&&(C=!0,i[H["DATA-ID"]]=H)}return{levels:s,sessionData:C?i:null}},P.parseMasterPlaylistMedia=function(f,c,s,i){i===void 0&&(i=[]);var C,_=[],O=0;for(g.lastIndex=0;(C=g.exec(f))!==null;){var N=new D.AttrList(C[1]);if(N.TYPE===s){var U={attrs:N,bitrate:0,id:O++,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,c):""};if(i.length){var H=P.findGroup(i,U.groupId)||i[0];S(U,H,"audioCodec"),S(U,H,"textCodec")}_.push(U)}}return _},P.parseLevelPlaylist=function(f,c,s,i,C){var _=new x.LevelDetails(c),O=_.fragments,N=null,U=0,H=0,G=0,L=0,W=null,Z=new B.Fragment(i,c),oe,ie,be,Je=-1,Ae=!1;for(n.lastIndex=0,_.m3u8=f;(oe=n.exec(f))!==null;){Ae&&(Ae=!1,Z=new B.Fragment(i,c),Z.start=G,Z.sn=U,Z.cc=L,Z.level=s,N&&(Z.initSegment=N,Z.rawProgramDateTime=N.rawProgramDateTime));var ke=oe[1];if(ke){Z.duration=parseFloat(ke);var Ze=(" "+oe[2]).slice(1);Z.title=Ze||null,Z.tagList.push(Ze?["INF",ke,Ze]:["INF",ke])}else if(oe[3])Object(K.isFiniteNumber)(Z.duration)&&(Z.start=G,be&&(Z.levelkey=be),Z.sn=U,Z.level=s,Z.cc=L,Z.urlId=C,O.push(Z),Z.relurl=(" "+oe[3]).slice(1),v(Z,W),W=Z,G+=Z.duration,U++,H=0,Ae=!0);else if(oe[4]){var Xe=(" "+oe[4]).slice(1);W?Z.setByteRange(Xe,W):Z.setByteRange(Xe)}else if(oe[5])Z.rawProgramDateTime=(" "+oe[5]).slice(1),Z.tagList.push(["PROGRAM-DATE-TIME",Z.rawProgramDateTime]),Je===-1&&(Je=O.length);else{if(oe=oe[0].match(p),!oe){m.logger.warn("No matches on slow regex match for level playlist!");continue}for(ie=1;ie-1){m.logger.warn("Keyformat "+Rt+" is not supported from the manifest");continue}else if(Rt!=="identity")continue;Q&&(be=k.LevelKey.fromURL(c,he),he&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(Q)>=0&&(be.method=Q,be.keyFormat=Rt,He&&(be.keyID=He),Fe&&(be.keyFormatVersions=Fe),be.iv=_e));break}case"START":{var It=new D.AttrList(fe),Bt=It.decimalFloatingPoint("TIME-OFFSET");Object(K.isFiniteNumber)(Bt)&&(_.startTimeOffset=Bt);break}case"MAP":{var tn=new D.AttrList(fe);Z.relurl=tn.URI,tn.BYTERANGE&&Z.setByteRange(tn.BYTERANGE),Z.level=s,Z.sn="initSegment",be&&(Z.levelkey=be),Z.initSegment=null,N=Z,Ae=!0;break}case"SERVER-CONTROL":{var hn=new D.AttrList(fe);_.canBlockReload=hn.bool("CAN-BLOCK-RELOAD"),_.canSkipUntil=hn.optionalFloat("CAN-SKIP-UNTIL",0),_.canSkipDateRanges=_.canSkipUntil>0&&hn.bool("CAN-SKIP-DATERANGES"),_.partHoldBack=hn.optionalFloat("PART-HOLD-BACK",0),_.holdBack=hn.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var tt=new D.AttrList(fe);_.partTarget=tt.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ke=_.partList;Ke||(Ke=_.partList=[]);var Ct=H>0?Ke[Ke.length-1]:void 0,Dt=H++,st=new B.Part(new D.AttrList(fe),Z,c,Dt,Ct);Ke.push(st),Z.duration+=st.duration;break}case"PRELOAD-HINT":{var xt=new D.AttrList(fe);_.preloadHint=xt;break}case"RENDITION-REPORT":{var je=new D.AttrList(fe);_.renditionReports=_.renditionReports||[],_.renditionReports.push(je);break}default:m.logger.warn("line parsed but not handled: "+oe);break}}}W&&!W.relurl?(O.pop(),G-=W.duration,_.partList&&(_.fragmentHint=W)):_.partList&&(v(Z,W),Z.cc=L,_.fragmentHint=Z);var we=O.length,Te=O[0],ue=O[we-1];if(G+=_.skippedSegments*_.targetduration,G>0&&we&&ue){_.averagetargetduration=G/we;var pe=ue.sn;_.endSN=pe!=="initSegment"?pe:0,Te&&(_.startCC=Te.cc,Te.initSegment||_.fragments.every(function(me){return me.relurl&&o(me.relurl)})&&(m.logger.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),Z=new B.Fragment(i,c),Z.relurl=ue.relurl,Z.level=s,Z.sn="initSegment",Te.initSegment=Z,_.needSidxRanges=!0))}else _.endSN=0,_.startCC=0;return _.fragmentHint&&(G+=_.fragmentHint.duration),_.totalduration=G,_.endCC=L,Je>0&&b(O,Je),_},P}();function h(P,E){["video","audio","text"].forEach(function(f){var c=P.filter(function(i){return Object(R.isCodecType)(i,f)});if(c.length){var s=c.filter(function(i){return i.lastIndexOf("avc1",0)===0||i.lastIndexOf("mp4a",0)===0});E[f+"Codec"]=s.length>0?s[0]:c[0],P=P.filter(function(i){return c.indexOf(i)===-1})}}),E.unknownCodecs=P}function S(P,E,f){var c=E[f];c&&(P[f]=c)}function b(P,E){for(var f=P[E],c=E;c--;){var s=P[c];if(!s)return;s.programDateTime=f.programDateTime-s.duration*1e3,f=s}}function v(P,E){P.rawProgramDateTime?P.programDateTime=Date.parse(P.rawProgramDateTime):E!=null&&E.programDateTime&&(P.programDateTime=E.endProgramDateTime),Object(K.isFiniteNumber)(P.programDateTime)||(P.programDateTime=null,P.rawProgramDateTime=null)}},"./src/loader/playlist-loader.ts":function(re,z,I){"use strict";I.r(z);var K=I("./src/polyfills/number.ts"),T=I("./src/events.ts"),w=I("./src/errors.ts"),B=I("./src/utils/logger.ts"),x=I("./src/utils/mp4-tools.ts"),k=I("./src/loader/m3u8-parser.ts"),D=I("./src/types/loader.ts"),m=I("./src/utils/attr-list.ts");function R(n){var p=n.type;switch(p){case D.PlaylistContextType.AUDIO_TRACK:return D.PlaylistLevelType.AUDIO;case D.PlaylistContextType.SUBTITLE_TRACK:return D.PlaylistLevelType.SUBTITLE;default:return D.PlaylistLevelType.MAIN}}function M(n,p){var d=n.url;return(d===void 0||d.indexOf("data:")===0)&&(d=p.url),d}var g=function(){function n(d){this.hls=void 0,this.loaders=Object.create(null),this.hls=d,this.registerListeners()}var p=n.prototype;return p.registerListeners=function(){var o=this.hls;o.on(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.on(T.Events.LEVEL_LOADING,this.onLevelLoading,this),o.on(T.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),o.on(T.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},p.unregisterListeners=function(){var o=this.hls;o.off(T.Events.MANIFEST_LOADING,this.onManifestLoading,this),o.off(T.Events.LEVEL_LOADING,this.onLevelLoading,this),o.off(T.Events.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),o.off(T.Events.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)},p.createInternalLoader=function(o){var u=this.hls.config,h=u.pLoader,S=u.loader,b=h||S,v=new b(u);return o.loader=v,this.loaders[o.type]=v,v},p.getInternalLoader=function(o){return this.loaders[o.type]},p.resetInternalLoader=function(o){this.loaders[o]&&delete this.loaders[o]},p.destroyInternalLoaders=function(){for(var o in this.loaders){var u=this.loaders[o];u&&u.destroy(),this.resetInternalLoader(o)}},p.destroy=function(){this.unregisterListeners(),this.destroyInternalLoaders()},p.onManifestLoading=function(o,u){var h=u.url;this.load({id:null,groupId:null,level:0,responseType:"text",type:D.PlaylistContextType.MANIFEST,url:h,deliveryDirectives:null})},p.onLevelLoading=function(o,u){var h=u.id,S=u.level,b=u.url,v=u.deliveryDirectives;this.load({id:h,groupId:null,level:S,responseType:"text",type:D.PlaylistContextType.LEVEL,url:b,deliveryDirectives:v})},p.onAudioTrackLoading=function(o,u){var h=u.id,S=u.groupId,b=u.url,v=u.deliveryDirectives;this.load({id:h,groupId:S,level:null,responseType:"text",type:D.PlaylistContextType.AUDIO_TRACK,url:b,deliveryDirectives:v})},p.onSubtitleTrackLoading=function(o,u){var h=u.id,S=u.groupId,b=u.url,v=u.deliveryDirectives;this.load({id:h,groupId:S,level:null,responseType:"text",type:D.PlaylistContextType.SUBTITLE_TRACK,url:b,deliveryDirectives:v})},p.load=function(o){var u,h=this.hls.config,S=this.getInternalLoader(o);if(S){var b=S.context;if(b&&b.url===o.url){B.logger.trace("[playlist-loader]: playlist request ongoing");return}B.logger.log("[playlist-loader]: aborting previous loader for type: "+o.type),S.abort()}var v,P,E,f;switch(o.type){case D.PlaylistContextType.MANIFEST:v=h.manifestLoadingMaxRetry,P=h.manifestLoadingTimeOut,E=h.manifestLoadingRetryDelay,f=h.manifestLoadingMaxRetryTimeout;break;case D.PlaylistContextType.LEVEL:case D.PlaylistContextType.AUDIO_TRACK:case D.PlaylistContextType.SUBTITLE_TRACK:v=0,P=h.levelLoadingTimeOut;break;default:v=h.levelLoadingMaxRetry,P=h.levelLoadingTimeOut,E=h.levelLoadingRetryDelay,f=h.levelLoadingMaxRetryTimeout;break}if(S=this.createInternalLoader(o),(u=o.deliveryDirectives)!==null&&u!==void 0&&u.part){var c;if(o.type===D.PlaylistContextType.LEVEL&&o.level!==null?c=this.hls.levels[o.level].details:o.type===D.PlaylistContextType.AUDIO_TRACK&&o.id!==null?c=this.hls.audioTracks[o.id].details:o.type===D.PlaylistContextType.SUBTITLE_TRACK&&o.id!==null&&(c=this.hls.subtitleTracks[o.id].details),c){var s=c.partTarget,i=c.targetduration;s&&i&&(P=Math.min(Math.max(s*3,i*.8)*1e3,P))}}var C={timeout:P,maxRetry:v,retryDelay:E,maxRetryDelay:f,highWaterMark:0},_={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};S.load(o,C,_)},p.loadsuccess=function(o,u,h,S){if(S===void 0&&(S=null),h.isSidxRequest){this.handleSidxRequest(o,h),this.handlePlaylistLoaded(o,u,h,S);return}this.resetInternalLoader(h.type);var b=o.data;if(b.indexOf("#EXTM3U")!==0){this.handleManifestParsingError(o,h,"no EXTM3U delimiter",S);return}u.parsing.start=performance.now(),b.indexOf("#EXTINF:")>0||b.indexOf("#EXT-X-TARGETDURATION:")>0?this.handleTrackOrLevelPlaylist(o,u,h,S):this.handleMasterPlaylist(o,u,h,S)},p.loaderror=function(o,u,h){h===void 0&&(h=null),this.handleNetworkError(u,h,!1,o)},p.loadtimeout=function(o,u,h){h===void 0&&(h=null),this.handleNetworkError(u,h,!0)},p.handleMasterPlaylist=function(o,u,h,S){var b=this.hls,v=o.data,P=M(o,h),E=k.default.parseMasterPlaylist(v,P),f=E.levels,c=E.sessionData;if(!f.length){this.handleManifestParsingError(o,h,"no level found in manifest",S);return}var s=f.map(function(U){return{id:U.attrs.AUDIO,audioCodec:U.audioCodec}}),i=f.map(function(U){return{id:U.attrs.SUBTITLES,textCodec:U.textCodec}}),C=k.default.parseMasterPlaylistMedia(v,P,"AUDIO",s),_=k.default.parseMasterPlaylistMedia(v,P,"SUBTITLES",i),O=k.default.parseMasterPlaylistMedia(v,P,"CLOSED-CAPTIONS");if(C.length){var N=C.some(function(U){return!U.url});!N&&f[0].audioCodec&&!f[0].attrs.AUDIO&&(B.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),C.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new m.AttrList({}),bitrate:0,url:""}))}b.trigger(T.Events.MANIFEST_LOADED,{levels:f,audioTracks:C,subtitles:_,captions:O,url:P,stats:u,networkDetails:S,sessionData:c})},p.handleTrackOrLevelPlaylist=function(o,u,h,S){var b=this.hls,v=h.id,P=h.level,E=h.type,f=M(o,h),c=Object(K.isFiniteNumber)(v)?v:0,s=Object(K.isFiniteNumber)(P)?P:c,i=R(h),C=k.default.parseLevelPlaylist(o.data,f,s,i,c);if(!C.fragments.length){b.trigger(T.Events.ERROR,{type:w.ErrorTypes.NETWORK_ERROR,details:w.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(E===D.PlaylistContextType.MANIFEST){var _={attrs:new m.AttrList({}),bitrate:0,details:C,name:"",url:f};b.trigger(T.Events.MANIFEST_LOADED,{levels:[_],audioTracks:[],url:f,stats:u,networkDetails:S,sessionData:null})}if(u.parsing.end=performance.now(),C.needSidxRanges){var O,N=(O=C.fragments[0].initSegment)===null||O===void 0?void 0:O.url;this.load({url:N,isSidxRequest:!0,type:E,level:P,levelDetails:C,id:v,groupId:null,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer",deliveryDirectives:null});return}h.levelDetails=C,this.handlePlaylistLoaded(o,u,h,S)},p.handleSidxRequest=function(o,u){var h=Object(x.parseSegmentIndex)(new Uint8Array(o.data));if(!h)return;var S=h.references,b=u.levelDetails;S.forEach(function(v,P){var E=v.info,f=b.fragments[P];f.byteRange.length===0&&f.setByteRange(String(1+E.end-E.start)+"@"+String(E.start)),f.initSegment&&f.initSegment.setByteRange(String(h.moovEndOffset)+"@0")})},p.handleManifestParsingError=function(o,u,h,S){this.hls.trigger(T.Events.ERROR,{type:w.ErrorTypes.NETWORK_ERROR,details:w.ErrorDetails.MANIFEST_PARSING_ERROR,fatal:u.type===D.PlaylistContextType.MANIFEST,url:o.url,reason:h,response:o,context:u,networkDetails:S})},p.handleNetworkError=function(o,u,h,S){h===void 0&&(h=!1),B.logger.warn("[playlist-loader]: A network "+(h?"timeout":"error")+" occurred while loading "+o.type+" level: "+o.level+" id: "+o.id+' group-id: "'+o.groupId+'"');var b=w.ErrorDetails.UNKNOWN,v=!1,P=this.getInternalLoader(o);switch(o.type){case D.PlaylistContextType.MANIFEST:b=h?w.ErrorDetails.MANIFEST_LOAD_TIMEOUT:w.ErrorDetails.MANIFEST_LOAD_ERROR,v=!0;break;case D.PlaylistContextType.LEVEL:b=h?w.ErrorDetails.LEVEL_LOAD_TIMEOUT:w.ErrorDetails.LEVEL_LOAD_ERROR,v=!1;break;case D.PlaylistContextType.AUDIO_TRACK:b=h?w.ErrorDetails.AUDIO_TRACK_LOAD_TIMEOUT:w.ErrorDetails.AUDIO_TRACK_LOAD_ERROR,v=!1;break;case D.PlaylistContextType.SUBTITLE_TRACK:b=h?w.ErrorDetails.SUBTITLE_TRACK_LOAD_TIMEOUT:w.ErrorDetails.SUBTITLE_LOAD_ERROR,v=!1;break}P&&this.resetInternalLoader(o.type);var E={type:w.ErrorTypes.NETWORK_ERROR,details:b,fatal:v,url:o.url,loader:P,context:o,networkDetails:u};S&&(E.response=S),this.hls.trigger(T.Events.ERROR,E)},p.handlePlaylistLoaded=function(o,u,h,S){var b=h.type,v=h.level,P=h.id,E=h.groupId,f=h.loader,c=h.levelDetails,s=h.deliveryDirectives;if(!(c!=null&&c.targetduration)){this.handleManifestParsingError(o,h,"invalid target duration",S);return}if(!f)return;c.live&&(f.getCacheAge&&(c.ageHeader=f.getCacheAge()||0),(!f.getCacheAge||isNaN(c.ageHeader))&&(c.ageHeader=0));switch(b){case D.PlaylistContextType.MANIFEST:case D.PlaylistContextType.LEVEL:this.hls.trigger(T.Events.LEVEL_LOADED,{details:c,level:v||0,id:P||0,stats:u,networkDetails:S,deliveryDirectives:s});break;case D.PlaylistContextType.AUDIO_TRACK:this.hls.trigger(T.Events.AUDIO_TRACK_LOADED,{details:c,id:P||0,groupId:E||"",stats:u,networkDetails:S,deliveryDirectives:s});break;case D.PlaylistContextType.SUBTITLE_TRACK:this.hls.trigger(T.Events.SUBTITLE_TRACK_LOADED,{details:c,id:P||0,groupId:E||"",stats:u,networkDetails:S,deliveryDirectives:s});break}},n}();z.default=g},"./src/polyfills/number.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"isFiniteNumber",function(){return K}),I.d(z,"MAX_SAFE_INTEGER",function(){return T});var K=Number.isFinite||function(w){return typeof w=="number"&&isFinite(w)},T=Number.MAX_SAFE_INTEGER||9007199254740991},"./src/remux/aac-helper.ts":function(re,z,I){"use strict";I.r(z);var K=function(){function T(){}return T.getSilentFrame=function(B,x){switch(B){case"mp4a.40.2":if(x===1)return new Uint8Array([0,200,0,128,35,128]);if(x===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(x===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(x===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(x===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(x===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(x===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(x===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(x===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}();z.default=K},"./src/remux/mp4-generator.ts":function(re,z,I){"use strict";I.r(z);var K=Math.pow(2,32)-1,T=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 x;for(x in w.types)w.types.hasOwnProperty(x)&&(w.types[x]=[x.charCodeAt(0),x.charCodeAt(1),x.charCodeAt(2),x.charCodeAt(3)]);var k=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]),D=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:k,audio:D};var m=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),R=new Uint8Array([0,0,0,0,0,0,0,0]);w.STTS=w.STSC=w.STCO=R,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 M=new Uint8Array([105,115,111,109]),g=new Uint8Array([97,118,99,49]),n=new Uint8Array([0,0,0,1]);w.FTYP=w.box(w.types.ftyp,M,n,M,g),w.DINF=w.box(w.types.dinf,w.box(w.types.dref,m))},w.box=function(x){for(var k=8,D=arguments.length,m=new Array(D>1?D-1:0),R=1;R>24&255,n[1]=k>>16&255,n[2]=k>>8&255,n[3]=k&255,n.set(x,4),M=0,k=8;M>24&255,x>>16&255,x>>8&255,x&255,D>>24,D>>16&255,D>>8&255,D&255,m>>24,m>>16&255,m>>8&255,m&255,85,196,0,0]))},w.mdia=function(x){return w.box(w.types.mdia,w.mdhd(x.timescale,x.duration),w.hdlr(x.type),w.minf(x))},w.mfhd=function(x){return w.box(w.types.mfhd,new Uint8Array([0,0,0,0,x>>24,x>>16&255,x>>8&255,x&255]))},w.minf=function(x){return x.type==="audio"?w.box(w.types.minf,w.box(w.types.smhd,w.SMHD),w.DINF,w.stbl(x)):w.box(w.types.minf,w.box(w.types.vmhd,w.VMHD),w.DINF,w.stbl(x))},w.moof=function(x,k,D){return w.box(w.types.moof,w.mfhd(x),w.traf(D,k))},w.moov=function(x){for(var k=x.length,D=[];k--;)D[k]=w.trak(x[k]);return w.box.apply(null,[w.types.moov,w.mvhd(x[0].timescale,x[0].duration)].concat(D).concat(w.mvex(x)))},w.mvex=function(x){for(var k=x.length,D=[];k--;)D[k]=w.trex(x[k]);return w.box.apply(null,[w.types.mvex].concat(D))},w.mvhd=function(x,k){k*=x;var D=Math.floor(k/(K+1)),m=Math.floor(k%(K+1)),R=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,x>>24&255,x>>16&255,x>>8&255,x&255,D>>24,D>>16&255,D>>8&255,D&255,m>>24,m>>16&255,m>>8&255,m&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,R)},w.sdtp=function(x){var k=x.samples||[],D=new Uint8Array(4+k.length),m,R;for(m=0;m>>8&255),k.push(M&255),k=k.concat(Array.prototype.slice.call(R));for(m=0;m>>8&255),D.push(M&255),D=D.concat(Array.prototype.slice.call(R));var g=w.box(w.types.avcC,new Uint8Array([1,k[3],k[4],k[5],252|3,224|x.sps.length].concat(k).concat([x.pps.length]).concat(D))),n=x.width,p=x.height,d=x.pixelRatio[0],o=x.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]),g,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([d>>24,d>>16&255,d>>8&255,d&255,o>>24,o>>16&255,o>>8&255,o&255])))},w.esds=function(x){var k=x.config.length;return new Uint8Array([0,0,0,0,3,23+k,0,1,0,4,15+k,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([k]).concat(x.config).concat([6,1,2]))},w.mp4a=function(x){var k=x.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,x.channelCount,0,16,0,0,0,0,k>>8&255,k&255,0,0]),w.box(w.types.esds,w.esds(x)))},w.mp3=function(x){var k=x.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,x.channelCount,0,16,0,0,0,0,k>>8&255,k&255,0,0]))},w.stsd=function(x){return x.type==="audio"?!x.isAAC&&x.codec==="mp3"?w.box(w.types.stsd,w.STSD,w.mp3(x)):w.box(w.types.stsd,w.STSD,w.mp4a(x)):w.box(w.types.stsd,w.STSD,w.avc1(x))},w.tkhd=function(x){var k=x.id,D=x.duration*x.timescale,m=x.width,R=x.height,M=Math.floor(D/(K+1)),g=Math.floor(D%(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,k>>24&255,k>>16&255,k>>8&255,k&255,0,0,0,0,M>>24,M>>16&255,M>>8&255,M&255,g>>24,g>>16&255,g>>8&255,g&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,m>>8&255,m&255,0,0,R>>8&255,R&255,0,0]))},w.traf=function(x,k){var D=w.sdtp(x),m=x.id,R=Math.floor(k/(K+1)),M=Math.floor(k%(K+1));return w.box(w.types.traf,w.box(w.types.tfhd,new Uint8Array([0,0,0,0,m>>24,m>>16&255,m>>8&255,m&255])),w.box(w.types.tfdt,new Uint8Array([1,0,0,0,R>>24,R>>16&255,R>>8&255,R&255,M>>24,M>>16&255,M>>8&255,M&255])),w.trun(x,D.length+16+20+8+16+8+8),D)},w.trak=function(x){return x.duration=x.duration||4294967295,w.box(w.types.trak,w.tkhd(x),w.mdia(x))},w.trex=function(x){var k=x.id;return w.box(w.types.trex,new Uint8Array([0,0,0,0,k>>24,k>>16&255,k>>8&255,k&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},w.trun=function(x,k){var D=x.samples||[],m=D.length,R=12+16*m,M=new Uint8Array(R),g,n,p,d,o,u;for(k+=8+R,M.set([0,0,15,1,m>>>24&255,m>>>16&255,m>>>8&255,m&255,k>>>24&255,k>>>16&255,k>>>8&255,k&255],0),g=0;g>>24&255,p>>>16&255,p>>>8&255,p&255,d>>>24&255,d>>>16&255,d>>>8&255,d&255,o.isLeading<<2|o.dependsOn,o.isDependedOn<<6|o.hasRedundancy<<4|o.paddingValue<<1|o.isNonSync,o.degradPrio&240<<8,o.degradPrio&15,u>>>24&255,u>>>16&255,u>>>8&255,u&255],12+16*g);return w.box(w.types.trun,M)},w.initSegment=function(x){w.types||w.init();var k=w.moov(x),D=new Uint8Array(w.FTYP.byteLength+k.byteLength);return D.set(w.FTYP),D.set(k,w.FTYP.byteLength),D},w}();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,z.default=T},"./src/remux/mp4-remuxer.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return u}),I.d(z,"normalizePts",function(){return h});var K=I("./src/polyfills/number.ts"),T=I("./src/remux/aac-helper.ts"),w=I("./src/remux/mp4-generator.ts"),B=I("./src/events.ts"),x=I("./src/errors.ts"),k=I("./src/utils/logger.ts"),D=I("./src/types/loader.ts"),m=I("./src/utils/timescale-conversion.ts");function R(){return R=Object.assign||function(P){for(var E=1;E0?C:_.pts},c[0].pts);return s&&k.logger.debug("PTS rollover detected"),i},E.remux=function(c,s,i,C,_,O,N,U){var H,G,L,W,Z,oe,ie=_,be=_,Je=c.pid>-1,Ae=s.pid>-1,ke=s.samples.length,Ze=c.samples.length>0,Xe=ke>1,Pe=(!Je||Ze)&&(!Ae||Xe)||this.ISGenerated||N;if(Pe){this.ISGenerated||(L=this.generateIS(c,s,_));var fe=this.isVideoContiguous,le=-1;if(Xe&&(le=S(s.samples),!fe&&this.config.forceKeyFrameOnDiscontinuity))if(oe=!0,le>0){k.logger.warn("[mp4-remuxer]: Dropped "+le+" out of "+ke+" video samples due to a missing keyframe");var Se=this.getVideoStartPts(s.samples);s.samples=s.samples.slice(le),s.dropped+=le,be+=(s.samples[0].pts-Se)/(s.timescale||9e4)}else le===-1&&(k.logger.warn("[mp4-remuxer]: No keyframe found out of "+ke+" video samples"),oe=!1);if(this.ISGenerated){if(Ze&&Xe){var ve=this.getVideoStartPts(s.samples),Ge=h(c.samples[0].pts,ve)-ve,it=Ge/s.inputTimeScale;ie+=Math.max(0,it),be+=Math.max(0,-it)}if(Ze){if(c.samplerate||(k.logger.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),L=this.generateIS(c,s,_)),G=this.remuxAudio(c,ie,this.isAudioContiguous,O,Ae||Xe||U===D.PlaylistLevelType.AUDIO?be:void 0),Xe){var ee=G?G.endPTS-G.startPTS:0;s.inputTimeScale||(k.logger.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),L=this.generateIS(c,s,_)),H=this.remuxVideo(s,be,fe,ee)}}else Xe&&(H=this.remuxVideo(s,be,fe,0));H&&(H.firstKeyFrame=le,H.independent=le!==-1)}}return this.ISGenerated&&(i.samples.length&&(Z=this.remuxID3(i,_)),C.samples.length&&(W=this.remuxText(C,_))),{audio:G,video:H,initSegment:L,independent:oe,text:W,id3:Z}},E.generateIS=function(c,s,i){var C=c.samples,_=s.samples,O=this.typeSupported,N={},U=!Object(K.isFiniteNumber)(this._initPTS),H="audio/mp4",G,L,W;if(U&&(G=L=Infinity),c.config&&C.length&&(c.timescale=c.samplerate,c.isAAC||(O.mpeg?(H="audio/mpeg",c.codec=""):O.mp3&&(c.codec="mp3")),N.audio={id:"audio",container:H,codec:c.codec,initSegment:!c.isAAC&&O.mpeg?new Uint8Array(0):w.default.initSegment([c]),metadata:{channelCount:c.channelCount}},U&&(W=c.inputTimeScale,G=L=C[0].pts-Math.round(W*i))),s.sps&&s.pps&&_.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}},U)){W=s.inputTimeScale;var Z=this.getVideoStartPts(_),oe=Math.round(W*i);L=Math.min(L,h(_[0].dts,Z)-oe),G=Math.min(G,Z-oe)}if(Object.keys(N).length)return this.ISGenerated=!0,U&&(this._initPTS=G,this._initDTS=L),{tracks:N,initPTS:G,timescale:W}},E.remuxVideo=function(c,s,i,C){var _=c.inputTimeScale,O=c.samples,N=[],U=O.length,H=this._initPTS,G=this.nextAvcDts,L=8,W,Z,oe,ie=Number.POSITIVE_INFINITY,be=Number.NEGATIVE_INFINITY,Je=0,Ae=!1;if(!i||G===null){var ke=s*_,Ze=O[0].pts-h(O[0].dts,O[0].pts);G=ke-Ze}for(var Xe=0;XePe.pts){var fe=9e4*.2;Je=Math.max(Math.min(Je,Pe.pts-Pe.dts),-1*fe)}Pe.dts0?Xe-1:Xe].dts&&(Ae=!0)}Ae&&O.sort(function(Vt,Et){var _t=Vt.dts-Et.dts,ct=Vt.pts-Et.pts;return _t||ct}),Z=O[0].dts,oe=O[O.length-1].dts;var le=Math.round((oe-Z)/(U-1));if(Je<0){if(Jele,V=it<-1;if(ee||V){ee?k.logger.warn("AVC: "+Object(m.toMsFromMpegTsClock)(it,!0)+" ms ("+it+"dts) hole between fragments detected, filling it"):k.logger.warn("AVC: "+Object(m.toMsFromMpegTsClock)(-it,!0)+" ms ("+it+"dts) overlapping between fragments detected"),Z=G;var Q=O[0].pts-it;O[0].dts=Z,O[0].pts=Q,k.logger.log("Video: First PTS/DTS adjusted: "+Object(m.toMsFromMpegTsClock)(Q,!0)+"/"+Object(m.toMsFromMpegTsClock)(Z,!0)+", delta: "+Object(m.toMsFromMpegTsClock)(it,!0)+" ms")}}o&&(Z=Math.max(0,Z));for(var he=0,_e=0,Fe=0;Fe0?Ke-1:Ke].dts;if(pe.stretchShortVideoTrack&&this.nextAudioPts!==null){var xe=Math.floor(pe.maxBufferHole*_),nt=(C?ie+C*_:this.nextAudioPts)-Ct.pts;nt>xe?(W=nt-me,W<0&&(W=me),k.logger.log("[mp4-remuxer]: It is approximately "+nt/90+" ms to the next segment; using duration "+W/90+" ms for the last video frame.")):W=me}else W=me}var We=Math.round(Ct.pts-Ct.dts);N.push(new b(Ct.key,W,st,We))}if(N.length&&p&&p<70){var St=N[0].flags;St.dependsOn=2,St.isNonSync=0}console.assert(W!==void 0,"mp4SampleDuration must be computed"),this.nextAvcDts=G=oe+W,this.isVideoContiguous=!0;var en=w.default.moof(c.sequenceNumber++,Z,R({},c,{samples:N})),vn="video",Zt={data1:en,data2:hn,startPTS:ie/_,endPTS:(be+W)/_,startDTS:Z/_,endDTS:G/_,type:vn,hasAudio:!1,hasVideo:!0,nb:N.length,dropped:c.dropped};return c.samples=[],c.dropped=0,console.assert(hn.length,"MDAT length must not be zero"),Zt},E.remuxAudio=function(c,s,i,C,_){var O=c.inputTimeScale,N=c.samplerate?c.samplerate:O,U=O/N,H=c.isAAC?g:n,G=H*U,L=this._initPTS,W=!c.isAAC&&this.typeSupported.mpeg,Z=[],oe=c.samples,ie=W?0:8,be=this.nextAudioPts||-1,Je=s*O;if(this.isAudioContiguous=i=i||oe.length&&be>0&&(C&&Math.abs(Je-be)<9e3||Math.abs(h(oe[0].pts-L,Je)-be)<20*G),oe.forEach(function(Te){Te.pts=h(Te.pts-L,Je)}),!i||be<0){if(oe=oe.filter(function(Te){return Te.pts>=0}),!oe.length)return;_===0?be=0:C?be=Math.max(0,Je):be=oe[0].pts}if(c.isAAC)for(var Ae=_!==void 0,ke=this.config.maxAudioFramesDrift,Ze=0,Xe=be;Ze=ke*G&&Se0){_e+=ie;try{he=new Uint8Array(_e)}catch(Te){this.observer.emit(B.Events.ERROR,B.Events.ERROR,{type:x.ErrorTypes.MUX_ERROR,details:x.ErrorDetails.REMUX_ALLOC_ERROR,fatal:!1,bytes:_e,reason:"fail allocating audio mdat "+_e});return}if(!W){var hn=new DataView(he.buffer);hn.setUint32(0,_e),he.set(w.default.types.mdat,4)}}else return;he.set(It,ie);var tt=It.byteLength;ie+=tt,Z.push(new b(!0,H,tt,0)),Q=Bt}var Ke=Z.length;if(!Ke)return;var Ct=Z[Z.length-1];this.nextAudioPts=be=Q+U*Ct.duration;var Dt=W?new Uint8Array(0):w.default.moof(c.sequenceNumber++,V/U,R({},c,{samples:Z}));c.samples=[];var st=V/O,xt=be/O,je="audio",we={data1:Dt,data2:he,startPTS:st,endPTS:xt,startDTS:st,endDTS:xt,type:je,hasAudio:!0,hasVideo:!1,nb:Ke};return this.isAudioContiguous=!0,console.assert(he.length,"MDAT length must not be zero"),we},E.remuxEmptyAudio=function(c,s,i,C){var _=c.inputTimeScale,O=c.samplerate?c.samplerate:_,N=_/O,U=this.nextAudioPts,H=(U!==null?U:C.startDTS*_)+this._initDTS,G=C.endDTS*_+this._initDTS,L=N*g,W=Math.ceil((G-H)/L),Z=T.default.getSilentFrame(c.manifestCodec||c.codec,c.channelCount);if(k.logger.warn("[mp4-remuxer]: remux empty Audio"),!Z){k.logger.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var oe=[],ie=0;ie4294967296;)P+=f;return P}function S(P){for(var E=0;E0?this.lastEndDTS=c:(B.logger.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var s=!!P.audio,i=!!P.video,C="";s&&(C+="audio"),i&&(C+="video");var _={data1:b,startPTS:f,startDTS:f,endPTS:c,endDTS:c,type:C,hasAudio:s,hasVideo:i,nb:1,dropped:0};return S.audio=_.type==="audio"?_:void 0,S.video=_.type!=="audio"?_:void 0,S.text=d,S.id3=p,S.initSegment=v,S},m}(),k=function(R,M,g){return Object(T.getStartDTS)(R,M)-g};function D(m,R){var M=m==null?void 0:m.codec;return M&&M.length>4?M:M==="hvc1"?"hvc1.1.c.L120.90":M==="av01"?"av01.0.04M.08":M==="avc1"||R===w.ElementaryStreamTypes.VIDEO?"avc1.42e01e":"mp4a.40.5"}z.default=x},"./src/task-loop.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"default",function(){return K});var K=function(){function T(){this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}var w=T.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(x){return this._tickInterval?!1:(this._tickInterval=self.setInterval(this._boundTick,x),!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(){},T}()},"./src/types/cmcd.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"CMCDVersion",function(){return K}),I.d(z,"CMCDObjectType",function(){return T}),I.d(z,"CMCDStreamingFormat",function(){return w}),I.d(z,"CMCDStreamType",function(){return B});var K=1,T;(function(x){x.MANIFEST="m",x.AUDIO="a",x.VIDEO="v",x.MUXED="av",x.INIT="i",x.CAPTION="c",x.TIMED_TEXT="tt",x.KEY="k",x.OTHER="o"})(T||(T={}));var w;(function(x){x.DASH="d",x.HLS="h",x.SMOOTH="s",x.OTHER="o"})(w||(w={}));var B;(function(x){x.VOD="v",x.LIVE="l"})(B||(B={}))},"./src/types/level.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"HlsSkip",function(){return w}),I.d(z,"getSkipValue",function(){return B}),I.d(z,"HlsUrlParameters",function(){return x}),I.d(z,"Level",function(){return k});function K(D,m){for(var R=0;RNumber.MAX_SAFE_INTEGER?Infinity:m},x.hexadecimalInteger=function(D){if(this[D]){var m=(this[D]||"0x").slice(2);m=(m.length&1?"0":"")+m;for(var R=new Uint8Array(m.length/2),M=0;MNumber.MAX_SAFE_INTEGER?Infinity:m},x.decimalFloatingPoint=function(D){return parseFloat(this[D])},x.optionalFloat=function(D,m){var R=this[D];return R?parseFloat(R):m},x.enumeratedString=function(D){return this[D]},x.bool=function(D){return this[D]==="YES"},x.decimalResolution=function(D){var m=K.exec(this[D]);return m===null?void 0:{width:parseInt(m[1],10),height:parseInt(m[2],10)}},B.parseAttrList=function(D){var m,R={},M='"';for(T.lastIndex=0;(m=T.exec(D))!==null;){var g=m[2];g.indexOf(M)===0&&g.lastIndexOf(M)===g.length-1&&(g=g.slice(1,-1)),R[m[1]]=g}return R},B}()},"./src/utils/binary-search.ts":function(re,z,I){"use strict";I.r(z);var K={search:function(w,B){for(var x=0,k=w.length-1,D=null,m=null;x<=k;){D=(x+k)/2|0,m=w[D];var R=B(m);if(R>0)x=D+1;else if(R<0)k=D-1;else return m}return null}};z.default=K},"./src/utils/buffer-helper.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"BufferHelper",function(){return w});var K=I("./src/utils/logger.ts"),T={length:0,start:function(){return 0},end:function(){return 0}},w=function(){function B(){}return B.isBuffered=function(k,D){try{if(k){for(var m=B.getBuffered(k),R=0;R=m.start(R)&&D<=m.end(R))return!0}}catch(M){}return!1},B.bufferInfo=function(k,D,m){try{if(k){var R=B.getBuffered(k),M=[],g;for(g=0;gn&&(R[g-1].end=k[M].end):R.push(k[M])}else R.push(k[M])}else R=k;for(var p=0,d,o=D,u=D,h=0;h=S&&D=i&&K.logger.log(this.time+" ["+i+"] "+C)},f}(),p=function(c){for(var s=[],i=0;ix&&(this.logger.log(g.DEBUG,"Too large cursor position "+this.pos),this.pos=x)},c.moveCursor=function(i){var C=this.pos+i;if(i>1)for(var _=this.pos+1;_=144&&this.backSpace();var C=w(i);if(this.pos>=x){this.logger.log(g.ERROR,"Cannot insert "+i.toString(16)+" ("+C+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(C,this.currPenState),this.moveCursor(1)},c.clearFromPos=function(i){var C;for(C=i;C0&&(i?_="["+C.join(" | ")+"]":_=C.join(` +`)),_},c.getTextAndFormat=function(){return this.rows},f}(),S=function(){function f(s,i,C){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=i,this.mode=null,this.verbose=0,this.displayedMemory=new h(C),this.nonDisplayedMemory=new h(C),this.lastOutputScreen=new h(C),this.currRollUpRow=this.displayedMemory.rows[B-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=C}var c=f.prototype;return c.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},c.getHandler=function(){return this.outputFilter},c.setHandler=function(i){this.outputFilter=i},c.setPAC=function(i){this.writeScreen.setPAC(i)},c.setBkgData=function(i){this.writeScreen.setBkgData(i)},c.setMode=function(i){if(i===this.mode)return;this.mode=i,this.logger.log(g.INFO,"MODE="+i),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=i},c.insertChars=function(i){for(var C=0;C=46,C.italics)C.foreground="white";else{var _=Math.floor(i/2)-16,O=["white","green","blue","cyan","red","yellow","magenta"];C.foreground=O[_]}this.logger.log(g.INFO,"MIDROW: "+JSON.stringify(C)),this.writeScreen.setPen(C)},c.outputDataUpdate=function(i){i===void 0&&(i=!1);var C=this.logger.time;if(C===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=C:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,C,this.lastOutputScreen),i&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:C),this.lastOutputScreen.copy(this.displayedMemory))},c.cueSplitAtTime=function(i){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,i,this.displayedMemory),this.cueStartTime=i))},f}(),b=function(){function f(s,i,C){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var _=new n;this.channels=[null,new S(s,i,_),new S(s+1,C,_)],this.cmdHistory=E(),this.logger=_}var c=f.prototype;return c.getHandler=function(i){return this.channels[i].getHandler()},c.setHandler=function(i,C){this.channels[i].setHandler(C)},c.addData=function(i,C){var _,O,N,U=!1;this.logger.time=i;for(var H=0;H ("+p([O,N])+")"),_=this.parseCmd(O,N),_||(_=this.parseMidrow(O,N)),_||(_=this.parsePAC(O,N)),_||(_=this.parseBackgroundAttributes(O,N)),!_&&(U=this.parseChars(O,N),U)){var G=this.currentChannel;if(G&&G>0){var L=this.channels[G];L.insertChars(U)}else this.logger.log(g.WARNING,"No channel found yet. TEXT-MODE?")}!_&&!U&&this.logger.log(g.WARNING,"Couldn't parse cleaned data "+p([O,N])+" orig: "+p([C[H],C[H+1]]))}},c.parseCmd=function(i,C){var _=this.cmdHistory,O=(i===20||i===28||i===21||i===29)&&C>=32&&C<=47,N=(i===23||i===31)&&C>=33&&C<=35;if(!(O||N))return!1;if(P(i,C,_))return v(null,null,_),this.logger.log(g.DEBUG,"Repeated command ("+p([i,C])+") is dropped"),!0;var U=i===20||i===21||i===23?1:2,H=this.channels[U];return i===20||i===21||i===28||i===29?C===32?H.ccRCL():C===33?H.ccBS():C===34?H.ccAOF():C===35?H.ccAON():C===36?H.ccDER():C===37?H.ccRU(2):C===38?H.ccRU(3):C===39?H.ccRU(4):C===40?H.ccFON():C===41?H.ccRDC():C===42?H.ccTR():C===43?H.ccRTD():C===44?H.ccEDM():C===45?H.ccCR():C===46?H.ccENM():C===47&&H.ccEOC():H.ccTO(C-32),v(i,C,_),this.currentChannel=U,!0},c.parseMidrow=function(i,C){var _=0;if((i===17||i===25)&&C>=32&&C<=47){if(i===17?_=1:_=2,_!==this.currentChannel)return this.logger.log(g.ERROR,"Mismatch channel in midrow parsing"),!1;var O=this.channels[_];return O?(O.ccMIDROW(C),this.logger.log(g.DEBUG,"MIDROW ("+p([i,C])+")"),!0):!1}return!1},c.parsePAC=function(i,C){var _,O=this.cmdHistory,N=(i>=17&&i<=23||i>=25&&i<=31)&&C>=64&&C<=127,U=(i===16||i===24)&&C>=64&&C<=95;if(!(N||U))return!1;if(P(i,C,O))return v(null,null,O),!0;var H=i<=23?1:2;C>=64&&C<=95?_=H===1?k[i]:m[i]:_=H===1?D[i]:R[i];var G=this.channels[H];return G?(G.setPAC(this.interpretPAC(_,C)),v(i,C,O),this.currentChannel=H,!0):!1},c.interpretPAC=function(i,C){var _,O={color:null,italics:!1,indent:null,underline:!1,row:i};return C>95?_=C-96:_=C-64,O.underline=(_&1)===1,_<=13?O.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(_/2)]:_<=15?(O.italics=!0,O.color="white"):O.indent=Math.floor((_-16)/2)*4,O},c.parseChars=function(i,C){var _,O=null,N=null;if(i>=25?(_=2,N=i-8):(_=1,N=i),N>=17&&N<=19){var U;N===17?U=C+80:N===18?U=C+112:U=C+144,this.logger.log(g.INFO,"Special char '"+w(U)+"' in channel "+_),O=[U]}else i>=32&&i<=127&&(O=C===0?[i]:[i,C]);if(O){var H=p(O);this.logger.log(g.DEBUG,"Char codes = "+H.join(",")),v(i,C,this.cmdHistory)}return O},c.parseBackgroundAttributes=function(i,C){var _=(i===16||i===24)&&C>=32&&C<=47,O=(i===23||i===31)&&C>=45&&C<=47;if(!(_||O))return!1;var N,U={};i===16||i===24?(N=Math.floor((C-32)/2),U.background=M[N],C%2===1&&(U.background=U.background+"_semi")):C===45?U.background="transparent":(U.foreground="black",C===47&&(U.underline=!0));var H=i<=23?1:2,G=this.channels[H];return G.setBkgData(U),v(i,C,this.cmdHistory),!0},c.reset=function(){for(var i=0;i=16?o--:o++;var v=Object(K.fixLineBreaks)(u.trim()),P=Object(T.generateCueId)(m,R,v);(!D||!D.cues||!D.cues.getCueById(P))&&(p=new h(m,R,v),p.id=P,p.line=S+1,p.align="left",p.position=10+Math.min(80,Math.floor(o*8/32)*10),g.push(p))}return D&&g.length&&(g.sort(function(E,f){return E.line==="auto"||f.line==="auto"?0:E.line>8&&f.line>8?f.line-E.line:E.line-f.line}),g.forEach(function(E){return Object(w.addCueToTrack)(D,E)})),g}};z.default=x},"./src/utils/discontinuities.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"findFirstFragWithCC",function(){return B}),I.d(z,"shouldAlignOnDiscontinuities",function(){return x}),I.d(z,"findDiscontinuousReferenceFrag",function(){return k}),I.d(z,"adjustSlidingStart",function(){return m}),I.d(z,"alignStream",function(){return R}),I.d(z,"alignPDT",function(){return g}),I.d(z,"alignFragmentByPDTDelta",function(){return n}),I.d(z,"alignMediaPlaylistByPDT",function(){return p});var K=I("./src/polyfills/number.ts"),T=I("./src/utils/logger.ts"),w=I("./src/controller/level-helper.ts");function B(d,o){for(var u=null,h=0,S=d.length;hu.startCC||d&&d.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=T},"./src/utils/ewma.ts":function(re,z,I){"use strict";I.r(z);var K=function(){function T(B,x,k){x===void 0&&(x=0),k===void 0&&(k=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_=x,this.totalWeight_=k}var w=T.prototype;return w.sample=function(x,k){var D=Math.pow(this.alpha_,x);this.estimate_=k*(1-D)+D*this.estimate_,this.totalWeight_+=x},w.getTotalWeight=function(){return this.totalWeight_},w.getEstimate=function(){if(this.alpha_){var x=1-Math.pow(this.alpha_,this.totalWeight_);if(x)return this.estimate_/x}return this.estimate_},T}();z.default=K},"./src/utils/fetch-loader.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"fetchSupported",function(){return n});var K=I("./src/polyfills/number.ts"),T=I("./src/loader/load-stats.ts"),w=I("./src/demux/chunk-cache.ts");function B(h,S){h.prototype=Object.create(S.prototype),h.prototype.constructor=h,R(h,S)}function x(h){var S=typeof Map=="function"?new Map:void 0;return x=function(v){if(v===null||!m(v))return v;if(typeof v!="function")throw new TypeError("Super expression must either be null or a function");if(typeof S!="undefined"){if(S.has(v))return S.get(v);S.set(v,P)}function P(){return k(v,arguments,M(this).constructor)}return P.prototype=Object.create(v.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),R(P,v)},x(h)}function k(h,S,b){return D()?k=Reflect.construct:k=function(P,E,f){var c=[null];c.push.apply(c,E);var s=Function.bind.apply(P,c),i=new s;return f&&R(i,f.prototype),i},k.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(h){return!1}}function m(h){return Function.toString.call(h).indexOf("[native code]")!==-1}function R(h,S){return R=Object.setPrototypeOf||function(v,P){return v.__proto__=P,v},R(h,S)}function M(h){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},M(h)}function g(){return g=Object.assign||function(h){for(var S=1;S=f&&c(P,E,s.flush(),v)):c(P,E,N,v),_()}).catch(function(){return Promise.reject()})};return C()},h}();function d(h,S){var b={method:"GET",mode:"cors",credentials:"same-origin",signal:S,headers:new self.Headers(g({},h.headers))};return h.rangeEnd&&b.headers.set("Range","bytes="+h.rangeStart+"-"+String(h.rangeEnd-1)),b}function o(h,S){return new self.Request(h.url,S)}var u=function(h){B(S,h);function S(b,v,P){var E;return E=h.call(this,b)||this,E.code=void 0,E.details=void 0,E.code=v,E.details=P,E}return S}(x(Error));z.default=p},"./src/utils/imsc1-ttml-parser.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"IMSC1_CODEC",function(){return m}),I.d(z,"parseIMSC1",function(){return n});var K=I("./src/utils/mp4-tools.ts"),T=I("./src/utils/vttparser.ts"),w=I("./src/utils/vttcue.ts"),B=I("./src/demux/id3.ts"),x=I("./src/utils/timescale-conversion.ts"),k=I("./src/utils/webvtt-parser.ts");function D(){return D=Object.assign||function(f){for(var c=1;c"):K}function x(m){for(var R=arguments.length,M=new Array(R>1?R-1:0),g=1;g>24,S[b+1]=v>>16&255,S[b+2]=v>>8&255,S[b+3]=v&255}function R(S,b){var v=[];if(!b.length)return v;var P,E,f;"data"in S?(P=S.data,E=S.start,f=S.end):(P=S,E=0,f=P.byteLength);for(var c=E;c1?c+s:f;if(i===b[0])if(b.length===1)v.push({data:P,start:c+8,end:C});else{var _=R({data:P,start:c+8,end:C},b.slice(1));_.length&&B.apply(v,_)}c=C}return v}function M(S){var b=R(S,["moov"]),v=b[0],P=v?v.end:null,E=R(S,["sidx"]);if(!E||!E[0])return null;var f=[],c=E[0],s=c.data[0],i=s===0?8:16,C=D(c,i);i+=4;var _=0,O=0;s===0?i+=8:i+=16,i+=2;var N=c.end+O,U=k(c,i);i+=2;for(var H=0;H>>31;if(Z===1)return console.warn("SIDX has hierarchical references (not supported)"),null;var oe=D(c,G);G+=4,f.push({referenceSize:W,subsegmentDuration:oe,info:{duration:oe/C,start:N,end:N+W-1}}),N+=W,G+=4,i=G}return{earliestPresentationTime:_,timescale:C,version:s,referencesCount:U,references:f,moovEndOffset:P}}function g(S){for(var b=[],v=R(S,["moov","trak"]),P=0;Px)&&(this.startTime=x),this.endTime=k,this.screen=D,this.timelineController.createCaptionsTrack(this.trackName)},w.reset=function(){this.cueRanges=[]},T}()},"./src/utils/texttrack-utils.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"sendAddTrackEvent",function(){return T}),I.d(z,"addCueToTrack",function(){return w}),I.d(z,"clearCurrentCues",function(){return B}),I.d(z,"removeCuesInRange",function(){return x}),I.d(z,"getCuesInRange",function(){return D});var K=I("./src/utils/logger.ts");function T(m,R){var M;try{M=new Event("addtrack")}catch(g){M=document.createEvent("Event"),M.initEvent("addtrack",!1,!1)}M.track=m,R.dispatchEvent(M)}function w(m,R){var M=m.mode;if(M==="disabled"&&(m.mode="hidden"),m.cues&&!m.cues.getCueById(R.id))try{if(m.addCue(R),!m.cues.getCueById(R.id))throw new Error("addCue is failed for: "+R)}catch(n){K.logger.debug("[texttrack-utils]: "+n);var g=new self.TextTrackCue(R.startTime,R.endTime,R.text);g.id=R.id,m.addCue(g)}M==="disabled"&&(m.mode=M)}function B(m){var R=m.mode;if(R==="disabled"&&(m.mode="hidden"),m.cues)for(var M=m.cues.length;M--;)m.removeCue(m.cues[M]);R==="disabled"&&(m.mode=R)}function x(m,R,M){var g=m.mode;if(g==="disabled"&&(m.mode="hidden"),m.cues&&m.cues.length>0)for(var n=D(m.cues,R,M),p=0;pm[M].endTime)return-1;for(var g=0,n=M;g<=n;){var p=Math.floor((n+g)/2);if(Rm[p].startTime&&g-1)for(var p=n,d=m.length;p=R&&o.endTime<=M)g.push(o);else if(o.startTime>M)return g}return g}},"./src/utils/time-ranges.ts":function(re,z,I){"use strict";I.r(z);var K={toString:function(w){for(var B="",x=w.length,k=0;k1?R-1:0),g=1;g100)throw new Error("Position must be between 0 and 100.");f=_,this.hasBeenReset=!0}})),Object.defineProperty(g,"positionAlign",k({},n,{get:function(){return c},set:function(_){var O=x(_);if(!O)throw new SyntaxError("An invalid or illegal string was specified.");c=O,this.hasBeenReset=!0}})),Object.defineProperty(g,"size",k({},n,{get:function(){return s},set:function(_){if(_<0||_>100)throw new Error("Size must be between 0 and 100.");s=_,this.hasBeenReset=!0}})),Object.defineProperty(g,"align",k({},n,{get:function(){return i},set:function(_){var O=x(_);if(!O)throw new SyntaxError("An invalid or illegal string was specified.");i=O,this.hasBeenReset=!0}})),g.displayState=void 0}return D.prototype.getCueAsHTML=function(){var m=self.WebVTT;return m.convertCueToDOMTree(self,this.text)},D}()},"./src/utils/vttparser.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"parseTimeStamp",function(){return w}),I.d(z,"fixLineBreaks",function(){return R}),I.d(z,"VTTParser",function(){return M});var K=I("./src/utils/vttcue.ts"),T=function(){function g(){}var n=g.prototype;return n.decode=function(d,o){if(!d)return"";if(typeof d!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(d))},g}();function w(g){function n(d,o,u,h){return(d|0)*3600+(o|0)*60+(u|0)+parseFloat(h||0)}var p=g.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 g(){this.values=Object.create(null)}var n=g.prototype;return n.set=function(d,o){!this.get(d)&&o!==""&&(this.values[d]=o)},n.get=function(d,o,u){return u?this.has(d)?this.values[d]:o[u]:this.has(d)?this.values[d]:o},n.has=function(d){return d in this.values},n.alt=function(d,o,u){for(var h=0;h=0&&u<=100)return this.set(d,u),!0}return!1},g}();function x(g,n,p,d){var o=d?g.split(d):[g];for(var u in o){if(typeof o[u]!="string")continue;var h=o[u].split(p);if(h.length!==2)continue;var S=h[0],b=h[1];n(S,b)}}var k=new K.default(0,0,""),D=k.align==="middle"?"middle":"center";function m(g,n,p){var d=g;function o(){var S=w(g);if(S===null)throw new Error("Malformed timestamp: "+d);return g=g.replace(/^[^\sa-zA-Z-]+/,""),S}function u(S,b){var v=new B;x(S,function(f,c){var s;switch(f){case"region":for(var i=p.length-1;i>=0;i--)if(p[i].id===c){v.set(f,p[i].region);break}break;case"vertical":v.alt(f,c,["rl","lr"]);break;case"line":s=c.split(","),v.integer(f,s[0]),v.percent(f,s[0])&&v.set("snapToLines",!1),v.alt(f,s[0],["auto"]),s.length===2&&v.alt("lineAlign",s[1],["start",D,"end"]);break;case"position":s=c.split(","),v.percent(f,s[0]),s.length===2&&v.alt("positionAlign",s[1],["start",D,"end","line-left","line-right","auto"]);break;case"size":v.percent(f,c);break;case"align":v.alt(f,c,["start",D,"end","left","right"]);break}},/:/,/\s/),b.region=v.get("region",null),b.vertical=v.get("vertical","");var P=v.get("line","auto");P==="auto"&&k.line===-1&&(P=-1),b.line=P,b.lineAlign=v.get("lineAlign","start"),b.snapToLines=v.get("snapToLines",!0),b.size=v.get("size",100),b.align=v.get("align",D);var E=v.get("position","auto");E==="auto"&&k.position===50&&(E=b.align==="start"||b.align==="left"?0:b.align==="end"||b.align==="right"?100:50),b.position=E}function h(){g=g.replace(/^\s+/,"")}if(h(),n.startTime=o(),h(),g.substr(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+d);g=g.substr(3),h(),n.endTime=o(),h(),u(g,n)}function R(g){return g.replace(//gi,` +`)}var M=function(){function g(){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 n=g.prototype;return n.parse=function(d){var o=this;d&&(o.buffer+=o.decoder.decode(d,{stream:!0}));function u(){var E=o.buffer,f=0;for(E=R(E);f")===-1){o.cue.id=S;continue}case"CUE":if(!o.cue){o.state="BADCUE";continue}try{m(S,o.cue,o.regionList)}catch(E){o.cue=null,o.state="BADCUE";continue}o.state="CUETEXT";continue;case"CUETEXT":{var P=S.indexOf("-->")!==-1;if(!S||P&&(v=!0)){o.oncue&&o.cue&&o.oncue(o.cue),o.cue=null,o.state="ID";continue}if(o.cue===null)continue;o.cue.text&&(o.cue.text+=` `),o.cue.text+=S}continue;case"BADCUE":S||(o.state="ID")}}}catch(E){o.state==="CUETEXT"&&o.cue&&o.oncue&&o.oncue(o.cue),o.cue=null,o.state=o.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},n.flush=function(){var d=this;try{if((d.cue||d.state==="HEADER")&&(d.buffer+=` -`,d.parse()),d.state==="INITIAL"||d.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(o){d.onparsingerror&&d.onparsingerror(o)}return d.onflush&&d.onflush(),this},g}()},"./src/utils/webvtt-parser.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"generateCueId",function(){return M}),I.d(z,"parseWebVTT",function(){return n});var K=I("./src/polyfills/number.ts"),T=I("./src/utils/vttparser.ts"),w=I("./src/demux/id3.ts"),B=I("./src/utils/timescale-conversion.ts"),x=I("./src/remux/mp4-remuxer.ts"),k=/\r\n|\n\r|\n|\r/g,D=function(d,o,u){return u===void 0&&(u=0),d.substr(u,o.length)===o},m=function(d){var o=parseInt(d.substr(-3)),u=parseInt(d.substr(-6,2)),f=parseInt(d.substr(-9,2)),S=d.length>9?parseInt(d.substr(0,d.indexOf(":"))):0;if(!Object(K.isFiniteNumber)(o)||!Object(K.isFiniteNumber)(u)||!Object(K.isFiniteNumber)(f)||!Object(K.isFiniteNumber)(S))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+d);return o+=1e3*u,o+=60*1e3*f,o+=60*60*1e3*S,o},R=function(d){for(var o=5381,u=d.length;u;)o=o*33^d.charCodeAt(--u);return(o>>>0).toString()};function M(p,d,o){return R(p.toString())+R(d.toString())+R(o)}var g=function(d,o,u){var f=d[o],S=d[f.prevCC];if(!S||!S.new&&f.new){d.ccOffset=d.presentationOffset=f.start,f.new=!1;return}for(;(b=S)!==null&&b!==void 0&&b.new;){var b;d.ccOffset+=f.start-S.start,f.new=!1,f=S,S=d[f.prevCC]}d.presentationOffset=u};function n(p,d,o,u,f,S,b,v){var P=new T.VTTParser,E=Object(w.utf8ArrayToStr)(new Uint8Array(p)).trim().replace(k,` +`,d.parse()),d.state==="INITIAL"||d.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(o){d.onparsingerror&&d.onparsingerror(o)}return d.onflush&&d.onflush(),this},g}()},"./src/utils/webvtt-parser.ts":function(re,z,I){"use strict";I.r(z),I.d(z,"generateCueId",function(){return M}),I.d(z,"parseWebVTT",function(){return n});var K=I("./src/polyfills/number.ts"),T=I("./src/utils/vttparser.ts"),w=I("./src/demux/id3.ts"),B=I("./src/utils/timescale-conversion.ts"),x=I("./src/remux/mp4-remuxer.ts"),k=/\r\n|\n\r|\n|\r/g,D=function(d,o,u){return u===void 0&&(u=0),d.substr(u,o.length)===o},m=function(d){var o=parseInt(d.substr(-3)),u=parseInt(d.substr(-6,2)),h=parseInt(d.substr(-9,2)),S=d.length>9?parseInt(d.substr(0,d.indexOf(":"))):0;if(!Object(K.isFiniteNumber)(o)||!Object(K.isFiniteNumber)(u)||!Object(K.isFiniteNumber)(h)||!Object(K.isFiniteNumber)(S))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+d);return o+=1e3*u,o+=60*1e3*h,o+=60*60*1e3*S,o},R=function(d){for(var o=5381,u=d.length;u;)o=o*33^d.charCodeAt(--u);return(o>>>0).toString()};function M(p,d,o){return R(p.toString())+R(d.toString())+R(o)}var g=function(d,o,u){var h=d[o],S=d[h.prevCC];if(!S||!S.new&&h.new){d.ccOffset=d.presentationOffset=h.start,h.new=!1;return}for(;(b=S)!==null&&b!==void 0&&b.new;){var b;d.ccOffset+=h.start-S.start,h.new=!1,h=S,S=d[h.prevCC]}d.presentationOffset=u};function n(p,d,o,u,h,S,b,v){var P=new T.VTTParser,E=Object(w.utf8ArrayToStr)(new Uint8Array(p)).trim().replace(k,` `).split(` -`),h=[],c=Object(B.toMpegTsClockFromTimescale)(d,o),s="00:00.000",i=0,C=0,_,O=!0,N=!1;P.oncue=function(U){var H=u[f],G=u.ccOffset,L=(i-c)/9e4;if(H!=null&&H.new&&(C!==void 0?G=u.ccOffset=H.start:g(u,f,L)),L&&(G=L-u.presentationOffset),N){var W=U.endTime-U.startTime,Z=Object(x.normalizePts)((U.startTime+G-C)*9e4,S*9e4)/9e4;U.startTime=Z,U.endTime=Z+W}var oe=U.text.trim();U.text=decodeURIComponent(encodeURIComponent(oe)),U.id||(U.id=M(U.startTime,U.endTime,oe)),U.endTime>0&&h.push(U)},P.onparsingerror=function(U){_=U},P.onflush=function(){if(_){v(_);return}b(h)},E.forEach(function(U){if(O)if(D(U,"X-TIMESTAMP-MAP=")){O=!1,N=!0,U.substr(16).split(",").forEach(function(H){D(H,"LOCAL:")?s=H.substr(6):D(H,"MPEGTS:")&&(i=parseInt(H.substr(7)))});try{C=m(s)/1e3}catch(H){N=!1,_=H}return}else U===""&&(O=!1);P.parse(U+` -`)}),P.flush()}},"./src/utils/xhr-loader.ts":function(re,z,I){"use strict";I.r(z);var K=I("./src/utils/logger.ts"),T=I("./src/loader/load-stats.ts"),w=/^age:\s*[\d.]+\s*$/m,B=function(){function x(D){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=D?D.xhrSetup:null,this.stats=new T.LoadStats,this.retryDelay=0}var k=x.prototype;return k.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},k.abortInternal=function(){var m=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),m&&(m.onreadystatechange=null,m.onprogress=null,m.readyState!==4&&(this.stats.aborted=!0,m.abort()))},k.abort=function(){var m;this.abortInternal(),(m=this.callbacks)!==null&&m!==void 0&&m.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},k.load=function(m,R,M){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=m,this.config=R,this.callbacks=M,this.retryDelay=R.retryDelay,this.loadInternal()},k.loadInternal=function(){var m=this.config,R=this.context;if(!m)return;var M=this.loader=new self.XMLHttpRequest,g=this.stats;g.loading.first=0,g.loaded=0;var n=this.xhrSetup;try{if(n)try{n(M,R.url)}catch(o){M.open("GET",R.url,!0),n(M,R.url)}M.readyState||M.open("GET",R.url,!0);var p=this.context.headers;if(p)for(var d in p)M.setRequestHeader(d,p[d])}catch(o){this.callbacks.onError({code:M.status,text:o.message},R,M);return}R.rangeEnd&&M.setRequestHeader("Range","bytes="+R.rangeStart+"-"+(R.rangeEnd-1)),M.onreadystatechange=this.readystatechange.bind(this),M.onprogress=this.loadprogress.bind(this),M.responseType=R.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),m.timeout),M.send()},k.readystatechange=function(){var m=this.context,R=this.loader,M=this.stats;if(!m||!R)return;var g=R.readyState,n=this.config;if(M.aborted)return;if(g>=2)if(self.clearTimeout(this.requestTimeout),M.loading.first===0&&(M.loading.first=Math.max(self.performance.now(),M.loading.start)),g===4){R.onreadystatechange=null,R.onprogress=null;var p=R.status;if(p>=200&&p<300){M.loading.end=Math.max(self.performance.now(),M.loading.first);var d,o;if(m.responseType==="arraybuffer"?(d=R.response,o=d.byteLength):(d=R.responseText,o=d.length),M.loaded=M.total=o,!this.callbacks)return;var u=this.callbacks.onProgress;if(u&&u(M,m,d,R),!this.callbacks)return;var f={url:R.responseURL,data:d};this.callbacks.onSuccess(f,M,m,R)}else M.retry>=n.maxRetry||p>=400&&p<499?(K.logger.error(p+" while loading "+m.url),this.callbacks.onError({code:p,text:R.statusText},m,R)):(K.logger.warn(p+" while loading "+m.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),M.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout)},k.loadtimeout=function(){K.logger.warn("timeout while loading "+this.context.url);var m=this.callbacks;m&&(this.abortInternal(),m.onTimeout(this.stats,this.context,this.loader))},k.loadprogress=function(m){var R=this.stats;R.loaded=m.loaded,m.lengthComputable&&(R.total=m.total)},k.getCacheAge=function(){var m=null;if(this.loader&&w.test(this.loader.getAllResponseHeaders())){var R=this.loader.getResponseHeader("age");m=R?parseFloat(R):null}return m},x}();z.default=B}}).default})},vHTk:function(an,rt,F){an.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wCXF:function(an,rt,F){"use strict";F.d(rt,"a",function(){return It});var re=F("rePB"),z=F("VTBJ"),I=F("KQm4"),K=F("U8pU"),T=F("ODXe"),w=F("q1tI"),B=F("TSYQ"),x=F.n(B),k=F("Gytx"),D=F.n(k),m=F("Kwbf"),R=F("t23M"),M=F("qx4F"),g=F("6eGT"),n=F("IBYe"),p=F("Ff2n"),d=F("c+Xe"),o=F("fyJ8"),u=F("biw7");function f(tt,Ke,Ct,Dt,st){var xt=Ct[tt]||{},je=Ct[Ke]||{},we,Te;xt.fixed==="left"?we=Dt.left[tt]:je.fixed==="right"&&(Te=Dt.right[Ke]);var ue=!1,pe=!1,me=!1,xe=!1,nt=Ct[Ke+1],We=Ct[tt-1];if(st==="rtl"){if(we!==void 0){var St=We&&We.fixed==="left";xe=!St}else if(Te!==void 0){var en=nt&&nt.fixed==="right";me=!en}}else if(we!==void 0){var vn=nt&&nt.fixed==="left";ue=!vn}else if(Te!==void 0){var Zt=We&&We.fixed==="right";pe=!Zt}return{fixLeft:we,fixRight:Te,lastFixLeft:ue,firstFixRight:pe,lastFixRight:me,firstFixLeft:xe,isSticky:Dt.isSticky}}var S=F("sR1s");function b(tt){var Ke=tt.cells,Ct=tt.stickyOffsets,Dt=tt.flattenColumns,st=tt.rowComponent,xt=tt.cellComponent,je=tt.onHeaderRow,we=tt.index,Te=w.useContext(u.a),ue=Te.prefixCls,pe=Te.direction,me;je&&(me=je(Ke.map(function(nt){return nt.column}),we));var xe=Object(S.a)(Ke.map(function(nt){return nt.column}));return w.createElement(st,Object.assign({},me),Ke.map(function(nt,We){var St=nt.column,en=f(nt.colStart,nt.colEnd,Dt,Ct,pe),vn;return St&&St.onHeaderCell&&(vn=nt.column.onHeaderCell(St)),w.createElement(o.a,Object.assign({},nt,{ellipsis:St.ellipsis,align:St.align,component:xt,prefixCls:ue,key:xe[We]},en,{additionalProps:vn,rowType:"header"}))}))}b.displayName="HeaderRow";var v=b;function P(tt){var Ke=[];function Ct(je,we){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ke[Te]=Ke[Te]||[];var ue=we,pe=je.filter(Boolean).map(function(me){var xe={key:me.key,className:me.className||"",children:me.title,column:me,colStart:ue},nt=1,We=me.children;return We&&We.length>0&&(nt=Ct(We,ue,Te+1).reduce(function(St,en){return St+en},0),xe.hasSubColumns=!0),"colSpan"in me&&(nt=me.colSpan),"rowSpan"in me&&(xe.rowSpan=me.rowSpan),xe.colSpan=nt,xe.colEnd=xe.colStart+nt-1,Ke[Te].push(xe),ue+=nt,nt});return pe}Ct(tt,0);for(var Dt=Ke.length,st=function(we){Ke[we].forEach(function(Te){!("rowSpan"in Te)&&!Te.hasSubColumns&&(Te.rowSpan=Dt-we)})},xt=0;xt=0;we-=1){var Te=Ke[we],ue=Ct&&Ct[we],pe=ue&&ue[c.a];(Te||pe||je)&&(st.unshift(w.createElement("col",Object.assign({key:we,style:{width:Te,minWidth:Te}},pe))),je=!0)}return w.createElement("colgroup",null,st)}var i=s;function C(tt,Ke){return Object(w.useMemo)(function(){for(var Ct=[],Dt=0;Dt1?X-1:0),$=1;$=me&&(kn=me-xe),je({scrollLeft:kn/me*(pe+2)}),Zt.current.x=ot.pageX},ft=function(){var ot=Object(fe.b)(xt.current).top,Wt=ot+xt.current.offsetHeight,dn=document.documentElement.scrollTop+window.innerHeight;Wt-Object(M.a)()<=dn||ot>=dn-we?vn(function(Bn){return Object(z.a)(Object(z.a)({},Bn),{},{isHiddenScrollBar:!0})}):vn(function(Bn){return Object(z.a)(Object(z.a)({},Bn),{},{isHiddenScrollBar:!1})})},qt=function(ot){vn(function(Wt){return Object(z.a)(Object(z.a)({},Wt),{},{scrollLeft:ot/pe*me||0})})};return w.useImperativeHandle(Ct,function(){return{setScrollLeft:qt}}),w.useEffect(function(){var on=Object(Q.a)(document.body,"mouseup",ge,!1),ot=Object(Q.a)(document.body,"mousemove",wt,!1);return ft(),function(){on.remove(),ot.remove()}},[xe,_t]),w.useEffect(function(){var on=Object(Q.a)(window,"scroll",ft,!1),ot=Object(Q.a)(window,"resize",ft,!1);return function(){on.remove(),ot.remove()}},[]),w.useEffect(function(){en.isHiddenScrollBar||vn(function(on){var ot,Wt;return Object(z.a)(Object(z.a)({},on),{},{scrollLeft:xt.current.scrollLeft/((ot=xt.current)===null||ot===void 0?void 0:ot.scrollWidth)*((Wt=xt.current)===null||Wt===void 0?void 0:Wt.clientWidth)})})},[en.isHiddenScrollBar]),pe<=me||!xe||en.isHiddenScrollBar?null:w.createElement("div",{style:{height:Object(M.a)(),width:me,bottom:we},className:"".concat(ue,"-sticky-scroll")},w.createElement("div",{onMouseDown:Me,ref:nt,className:x()("".concat(ue,"-sticky-scroll-bar"),Object(re.a)({},"".concat(ue,"-sticky-scroll-bar-active"),_t)),style:{width:"".concat(xe,"px"),transform:"translate3d(".concat(en.scrollLeft,"px, 0, 0)")}}))},Fe=w.forwardRef(_e);function He(tt,Ke){return w.useMemo(function(){var Ct=!!tt;return{isSticky:Ct,stickyClassName:Ct?"".concat(Ke,"-sticky-header"):"",offsetHeader:Object(K.a)(tt)==="object"&&tt.offsetHeader||0,offsetScroll:Object(K.a)(tt)==="object"&&tt.offsetScroll||0}},[tt,Ke])}var Rt=[],Ht={},It="rc-table-internal-hook",Bt=w.memo(function(tt){var Ke=tt.children;return Ke},function(tt,Ke){return D()(tt.props,Ke.props)?tt.pingLeft!==Ke.pingLeft||tt.pingRight!==Ke.pingRight:!1});function tn(tt){var Ke,Ct=tt.prefixCls,Dt=tt.className,st=tt.rowClassName,xt=tt.style,je=tt.data,we=tt.rowKey,Te=tt.scroll,ue=tt.tableLayout,pe=tt.direction,me=tt.title,xe=tt.footer,nt=tt.summary,We=tt.id,St=tt.showHeader,en=tt.components,vn=tt.emptyText,Zt=tt.onRow,Vt=tt.onHeaderRow,Et=tt.internalHooks,_t=tt.transformColumns,ct=tt.internalRefs,ge=tt.sticky,Me=je||Rt,wt=!!Me.length,ft=w.useState(0),qt=Object(T.a)(ft,2),on=qt[0],ot=qt[1];w.useEffect(function(){ot(Object(M.a)())});var Wt=w.useMemo(function(){return Object(S.c)(en,{})},[en]),dn=w.useCallback(function(Hn,Vn){return Object(S.b)(Wt,Hn)||Vn},[Wt]),Bn=w.useMemo(function(){return typeof we=="function"?we:function(Hn){var Vn=Hn&&Hn[we];return Vn}},[we]),kn=Object(c.c)(tt),Cr=kn.expandIcon,Ar=kn.expandedRowKeys,hr=kn.defaultExpandedRowKeys,On=kn.defaultExpandAllRows,Fr=kn.expandedRowRender,na=kn.onExpand,Pr=kn.onExpandedRowsChange,fr=kn.expandRowByClick,Br=kn.rowExpandable,qr=kn.expandIconColumnIndex,ha=kn.expandedRowClassName,Qt=kn.childrenColumnName,qn=kn.indentSize,oa=Cr||ee,_a=Qt||"children",jr=w.useMemo(function(){return Fr?"row":tt.expandable&&Et===It&&tt.expandable.__PARENT_RENDER_ICON__||Me.some(function(Hn){return Hn&&Object(K.a)(Hn)==="object"&&Hn[_a]})?"nest":!1},[!!Fr,Me]),ra=w.useState(function(){return hr||(On?V(Me,Bn,_a):[])}),J=Object(T.a)(ra,2),y=J[0],A=J[1],X=w.useMemo(function(){return new Set(Ar||y||[])},[Ar,y]),te=w.useCallback(function(Hn){var Vn=Bn(Hn,Me.indexOf(Hn)),Zn,Wr=X.has(Vn);Wr?(X.delete(Vn),Zn=Object(I.a)(X)):Zn=[].concat(Object(I.a)(X),[Vn]),A(Zn),na&&na(!Wr,Hn),Pr&&Pr(Zn)},[Bn,X,Me,na,Pr]),$=w.useState(0),ze=Object(T.a)($,2),Ut=ze[0],pn=ze[1],Nn=Object(ke.b)(Object(z.a)(Object(z.a)(Object(z.a)({},tt),kn),{},{expandable:!!Fr,expandedKeys:X,getRowKey:Bn,onTriggerExpand:te,expandIcon:oa,expandIconColumnIndex:qr,direction:pe}),Et===It?_t:null),Kt=Object(T.a)(Nn,2),rn=Kt[0],At=Kt[1],Yt=w.useMemo(function(){return{columns:rn,flattenColumns:At}},[rn,At]),bn=w.useRef(),tr=w.useRef(),Wn=w.useRef(),Jn=w.useState(!1),Sr=Object(T.a)(Jn,2),zn=Sr[0],Gn=Sr[1],Un=w.useState(!1),mn=Object(T.a)(Un,2),br=mn[0],_r=mn[1],Cn=Pe(new Map),or=Object(T.a)(Cn,2),xr=or[0],Ur=or[1],q=Object(S.a)(At),De=q.map(function(Hn){return xr.get(Hn)}),Ve=w.useMemo(function(){return De},[De.join("_")]),Be=Se(Ve,At.length,pe),$e=Te&&Object(S.d)(Te.y),qe=Te&&Object(S.d)(Te.x),ht=qe&&At.some(function(Hn){var Vn=Hn.fixed;return Vn}),Ee=w.useRef(),gt=He(ge,Ct),yt=gt.isSticky,Lt=gt.offsetHeader,bt=gt.offsetScroll,ut=gt.stickyClassName,kt,Mt,Le;$e&&(Mt={overflowY:"scroll",maxHeight:Te.y}),qe&&(kt={overflowX:"auto"},$e||(Mt={overflowY:"hidden"}),Le={width:Te.x===!0?"auto":Te.x,minWidth:"100%"});var mt=w.useCallback(function(Hn,Vn){Ur(function(Zn){var Wr=new Map(Zn);return Wr.set(Hn,Vn),Wr})},[]),Pt=he(null),Jt=Object(T.a)(Pt,2),Nt=Jt[0],Sn=Jt[1];function gn(Hn,Vn){if(!Vn)return;typeof Vn=="function"?Vn(Hn):Vn.scrollLeft!==Hn&&(Vn.scrollLeft=Hn)}var un=function(Vn){var Zn=Vn.currentTarget,Wr=Vn.scrollLeft,ea=typeof Wr=="number"?Wr:Zn.scrollLeft,Yr=Zn||Ht;if(!Sn()||Sn()===Yr){var ta;Nt(Yr),gn(ea,tr.current),gn(ea,Wn.current),gn(ea,(ta=Ee.current)===null||ta===void 0?void 0:ta.setScrollLeft)}if(Zn){var pa=Zn.scrollWidth,ma=Zn.clientWidth;Gn(ea>0),_r(ea0?[].concat(Object(z.a)(p),Object(z.a)(m(f).map(function(S){return Object(I.a)({fixed:u},S)}))):[].concat(Object(z.a)(p),[Object(I.a)(Object(I.a)({},d),{},{fixed:u})])},[])}function R(n){for(var p=!0,d=0;d=0;f-=1){var S=n[f];if(u&&S.fixed!=="right")u=!1;else if(!u&&S.fixed==="right"){Object(B.a)(!1,"Index ".concat(f+1," of `columns` missing `fixed='right'` prop."));break}}}function M(n){return n.map(function(p){var d=p.fixed,o=Object(K.a)(p,["fixed"]),u=d;return d==="left"?u="right":d==="right"&&(u="left"),Object(I.a)({fixed:u},o)})}function g(n,p){var d=n.prefixCls,o=n.columns,u=n.children,f=n.expandable,S=n.expandedKeys,b=n.getRowKey,v=n.onTriggerExpand,P=n.expandIcon,E=n.rowExpandable,h=n.expandIconColumnIndex,c=n.direction,s=n.expandRowByClick,i=T.useMemo(function(){return o||D(u)},[o,u]),C=T.useMemo(function(){if(f){var N,U=h||0,H=i[U],G=(N={},Object(re.a)(N,k.a,{className:"".concat(d,"-expand-icon-col")}),Object(re.a)(N,"title",""),Object(re.a)(N,"fixed",H?H.fixed:null),Object(re.a)(N,"className","".concat(d,"-row-expand-icon-cell")),Object(re.a)(N,"render",function(Z,oe,ie){var be=b(oe,ie),Je=S.has(be),Ae=E?E(oe):!0,ke=P({prefixCls:d,expanded:Je,expandable:Ae,record:oe,onExpand:v});return s?T.createElement("span",{onClick:function(Xe){return Xe.stopPropagation()}},ke):ke}),N),L=i.slice();return U>=0&&L.splice(U,0,G),L}return i},[f,i,b,S,P,c]),_=T.useMemo(function(){var N=C;return p&&(N=p(N)),N.length||(N=[{render:function(){return null}}]),N},[p,C,c]),O=T.useMemo(function(){return c==="rtl"?M(m(_)):m(_)},[_,c]);return[_,O]}rt.b=g},wzkS:function(an,rt,F){"use strict";F.d(rt,"c",function(){return T}),F.d(rt,"b",function(){return w}),F.d(rt,"d",function(){return B}),F.d(rt,"a",function(){return k}),F.d(rt,"e",function(){return D});var re=F("9og8"),z=F("WmNS"),I=F.n(z),K=F("ErOA");function T(m){return Object(K.c)("libraries/".concat(m,".json"))}function w(){return Object(K.c)("library_tags.json")}function B(m){return x.apply(this,arguments)}function x(){return x=Object(re.a)(I.a.mark(function m(R){var M;return I.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(K.b)("attachments/".concat(R,".json"));case 2:return M=n.sent,n.abrupt("return",M.status===0);case 4:case"end":return n.stop()}},m)})),x.apply(this,arguments)}function k(m){return Object(K.f)("libraries.json",m)}function D(m,R){return Object(K.g)("libraries/".concat(m,".json"),R)}},xOL1:function(an,rt){an.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC"},"y0+3":function(an,rt,F){"use strict";F.d(rt,"a",function(){return m}),F.d(rt,"b",function(){return M});var re=/margin|padding|width|height|max|min|offset/,z={left:!0,top:!0},I={cssFloat:1,styleFloat:1,float:1};function K(g){return g.nodeType===1?g.ownerDocument.defaultView.getComputedStyle(g,null):{}}function T(g,n,p){if(n=n.toLowerCase(),p==="auto"){if(n==="height")return g.offsetHeight;if(n==="width")return g.offsetWidth}return n in z||(z[n]=re.test(n)),z[n]?parseFloat(p)||0:p}function w(g,n){var p=arguments.length,d=K(g);return n=I[n]?"cssFloat"in g.style?"cssFloat":"styleFloat":n,p===1?d:T(g,n,d[n]||g.style[n])}function B(g,n,p){var d=arguments.length;if(n=I[n]?"cssFloat"in g.style?"cssFloat":"styleFloat":n,d===3)return typeof p=="number"&&re.test(n)&&(p="".concat(p,"px")),g.style[n]=p,p;for(var o in n)n.hasOwnProperty(o)&&B(g,o,n[o]);return K(g)}function x(g){return g===document.body?document.documentElement.clientWidth:g.offsetWidth}function k(g){return g===document.body?window.innerHeight||document.documentElement.clientHeight:g.offsetHeight}function D(){var g=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),n=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:g,height:n}}function m(){var g=document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight;return{width:g,height:n}}function R(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function M(g){var n=g.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(an,rt,F){"use strict";F.d(rt,"c",function(){return p}),F.d(rt,"a",function(){return d});var re=F("DZo9"),z=F("8z0m"),I=F("+L6B"),K=F("2/Rp"),T=F("9og8"),w=F("k1fw"),B=F("oBTY"),x=F("miYZ"),k=F("tsqr"),D=F("WmNS"),m=F.n(D),R=F("q1tI"),M=F.n(R),g=F("m3rI"),n=F("wzkS"),p="\u3000\u3000";function d(o){var u=["Bytes","KB","MB","GB","TB"];if(o==0)return"0 Byte";var f=parseInt(""+Math.floor(Math.log(o)/Math.log(1024)),10);return(o/Math.pow(1024,f)).toFixed(1)+" "+u[f]}rt.b=function(o){var u=o.value,f=u===void 0?[]:u,S=o.action,b=o.onChange,v=o.className,P=o.maxSize,E=P===void 0?150:P,h=o.title,c=h===void 0?"\u6587\u4EF6\u4E0A\u4F20":h,s=o.accept,i=s===void 0?null:s,C={multiple:!1,fileList:f,accept:i,withCredentials:!0,beforeUpload:function(N){var U=N.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:f.length>0,ghost:!0},c),M.a.createElement("span",{onClick:_,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",E,"M) ")))}}}]); +`),f=[],c=Object(B.toMpegTsClockFromTimescale)(d,o),s="00:00.000",i=0,C=0,_,O=!0,N=!1;P.oncue=function(U){var H=u[h],G=u.ccOffset,L=(i-c)/9e4;if(H!=null&&H.new&&(C!==void 0?G=u.ccOffset=H.start:g(u,h,L)),L&&(G=L-u.presentationOffset),N){var W=U.endTime-U.startTime,Z=Object(x.normalizePts)((U.startTime+G-C)*9e4,S*9e4)/9e4;U.startTime=Z,U.endTime=Z+W}var oe=U.text.trim();U.text=decodeURIComponent(encodeURIComponent(oe)),U.id||(U.id=M(U.startTime,U.endTime,oe)),U.endTime>0&&f.push(U)},P.onparsingerror=function(U){_=U},P.onflush=function(){if(_){v(_);return}b(f)},E.forEach(function(U){if(O)if(D(U,"X-TIMESTAMP-MAP=")){O=!1,N=!0,U.substr(16).split(",").forEach(function(H){D(H,"LOCAL:")?s=H.substr(6):D(H,"MPEGTS:")&&(i=parseInt(H.substr(7)))});try{C=m(s)/1e3}catch(H){N=!1,_=H}return}else U===""&&(O=!1);P.parse(U+` +`)}),P.flush()}},"./src/utils/xhr-loader.ts":function(re,z,I){"use strict";I.r(z);var K=I("./src/utils/logger.ts"),T=I("./src/loader/load-stats.ts"),w=/^age:\s*[\d.]+\s*$/m,B=function(){function x(D){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=D?D.xhrSetup:null,this.stats=new T.LoadStats,this.retryDelay=0}var k=x.prototype;return k.destroy=function(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null},k.abortInternal=function(){var m=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),m&&(m.onreadystatechange=null,m.onprogress=null,m.readyState!==4&&(this.stats.aborted=!0,m.abort()))},k.abort=function(){var m;this.abortInternal(),(m=this.callbacks)!==null&&m!==void 0&&m.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)},k.load=function(m,R,M){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=m,this.config=R,this.callbacks=M,this.retryDelay=R.retryDelay,this.loadInternal()},k.loadInternal=function(){var m=this.config,R=this.context;if(!m)return;var M=this.loader=new self.XMLHttpRequest,g=this.stats;g.loading.first=0,g.loaded=0;var n=this.xhrSetup;try{if(n)try{n(M,R.url)}catch(o){M.open("GET",R.url,!0),n(M,R.url)}M.readyState||M.open("GET",R.url,!0);var p=this.context.headers;if(p)for(var d in p)M.setRequestHeader(d,p[d])}catch(o){this.callbacks.onError({code:M.status,text:o.message},R,M);return}R.rangeEnd&&M.setRequestHeader("Range","bytes="+R.rangeStart+"-"+(R.rangeEnd-1)),M.onreadystatechange=this.readystatechange.bind(this),M.onprogress=this.loadprogress.bind(this),M.responseType=R.responseType,self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),m.timeout),M.send()},k.readystatechange=function(){var m=this.context,R=this.loader,M=this.stats;if(!m||!R)return;var g=R.readyState,n=this.config;if(M.aborted)return;if(g>=2)if(self.clearTimeout(this.requestTimeout),M.loading.first===0&&(M.loading.first=Math.max(self.performance.now(),M.loading.start)),g===4){R.onreadystatechange=null,R.onprogress=null;var p=R.status;if(p>=200&&p<300){M.loading.end=Math.max(self.performance.now(),M.loading.first);var d,o;if(m.responseType==="arraybuffer"?(d=R.response,o=d.byteLength):(d=R.responseText,o=d.length),M.loaded=M.total=o,!this.callbacks)return;var u=this.callbacks.onProgress;if(u&&u(M,m,d,R),!this.callbacks)return;var h={url:R.responseURL,data:d};this.callbacks.onSuccess(h,M,m,R)}else M.retry>=n.maxRetry||p>=400&&p<499?(K.logger.error(p+" while loading "+m.url),this.callbacks.onError({code:p,text:R.statusText},m,R)):(K.logger.warn(p+" while loading "+m.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),M.retry++)}else self.clearTimeout(this.requestTimeout),this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),n.timeout)},k.loadtimeout=function(){K.logger.warn("timeout while loading "+this.context.url);var m=this.callbacks;m&&(this.abortInternal(),m.onTimeout(this.stats,this.context,this.loader))},k.loadprogress=function(m){var R=this.stats;R.loaded=m.loaded,m.lengthComputable&&(R.total=m.total)},k.getCacheAge=function(){var m=null;if(this.loader&&w.test(this.loader.getAllResponseHeaders())){var R=this.loader.getResponseHeader("age");m=R?parseFloat(R):null}return m},x}();z.default=B}}).default})},vHTk:function(an,rt,F){an.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},wCXF:function(an,rt,F){"use strict";F.d(rt,"a",function(){return It});var re=F("rePB"),z=F("VTBJ"),I=F("KQm4"),K=F("U8pU"),T=F("ODXe"),w=F("q1tI"),B=F("TSYQ"),x=F.n(B),k=F("Gytx"),D=F.n(k),m=F("Kwbf"),R=F("t23M"),M=F("qx4F"),g=F("6eGT"),n=F("IBYe"),p=F("Ff2n"),d=F("c+Xe"),o=F("fyJ8"),u=F("biw7");function h(tt,Ke,Ct,Dt,st){var xt=Ct[tt]||{},je=Ct[Ke]||{},we,Te;xt.fixed==="left"?we=Dt.left[tt]:je.fixed==="right"&&(Te=Dt.right[Ke]);var ue=!1,pe=!1,me=!1,xe=!1,nt=Ct[Ke+1],We=Ct[tt-1];if(st==="rtl"){if(we!==void 0){var St=We&&We.fixed==="left";xe=!St}else if(Te!==void 0){var en=nt&&nt.fixed==="right";me=!en}}else if(we!==void 0){var vn=nt&&nt.fixed==="left";ue=!vn}else if(Te!==void 0){var Zt=We&&We.fixed==="right";pe=!Zt}return{fixLeft:we,fixRight:Te,lastFixLeft:ue,firstFixRight:pe,lastFixRight:me,firstFixLeft:xe,isSticky:Dt.isSticky}}var S=F("sR1s");function b(tt){var Ke=tt.cells,Ct=tt.stickyOffsets,Dt=tt.flattenColumns,st=tt.rowComponent,xt=tt.cellComponent,je=tt.onHeaderRow,we=tt.index,Te=w.useContext(u.a),ue=Te.prefixCls,pe=Te.direction,me;je&&(me=je(Ke.map(function(nt){return nt.column}),we));var xe=Object(S.a)(Ke.map(function(nt){return nt.column}));return w.createElement(st,Object.assign({},me),Ke.map(function(nt,We){var St=nt.column,en=h(nt.colStart,nt.colEnd,Dt,Ct,pe),vn;return St&&St.onHeaderCell&&(vn=nt.column.onHeaderCell(St)),w.createElement(o.a,Object.assign({},nt,{ellipsis:St.ellipsis,align:St.align,component:xt,prefixCls:ue,key:xe[We]},en,{additionalProps:vn,rowType:"header"}))}))}b.displayName="HeaderRow";var v=b;function P(tt){var Ke=[];function Ct(je,we){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ke[Te]=Ke[Te]||[];var ue=we,pe=je.filter(Boolean).map(function(me){var xe={key:me.key,className:me.className||"",children:me.title,column:me,colStart:ue},nt=1,We=me.children;return We&&We.length>0&&(nt=Ct(We,ue,Te+1).reduce(function(St,en){return St+en},0),xe.hasSubColumns=!0),"colSpan"in me&&(nt=me.colSpan),"rowSpan"in me&&(xe.rowSpan=me.rowSpan),xe.colSpan=nt,xe.colEnd=xe.colStart+nt-1,Ke[Te].push(xe),ue+=nt,nt});return pe}Ct(tt,0);for(var Dt=Ke.length,st=function(we){Ke[we].forEach(function(Te){!("rowSpan"in Te)&&!Te.hasSubColumns&&(Te.rowSpan=Dt-we)})},xt=0;xt=0;we-=1){var Te=Ke[we],ue=Ct&&Ct[we],pe=ue&&ue[c.a];(Te||pe||je)&&(st.unshift(w.createElement("col",Object.assign({key:we,style:{width:Te,minWidth:Te}},pe))),je=!0)}return w.createElement("colgroup",null,st)}var i=s;function C(tt,Ke){return Object(w.useMemo)(function(){for(var Ct=[],Dt=0;Dt1?X-1:0),$=1;$=me&&(kn=me-xe),je({scrollLeft:kn/me*(pe+2)}),Zt.current.x=ot.pageX},ht=function(){var ot=Object(he.b)(xt.current).top,Wt=ot+xt.current.offsetHeight,dn=document.documentElement.scrollTop+window.innerHeight;Wt-Object(M.a)()<=dn||ot>=dn-we?vn(function(Bn){return Object(z.a)(Object(z.a)({},Bn),{},{isHiddenScrollBar:!0})}):vn(function(Bn){return Object(z.a)(Object(z.a)({},Bn),{},{isHiddenScrollBar:!1})})},qt=function(ot){vn(function(Wt){return Object(z.a)(Object(z.a)({},Wt),{},{scrollLeft:ot/pe*me||0})})};return w.useImperativeHandle(Ct,function(){return{setScrollLeft:qt}}),w.useEffect(function(){var on=Object(Q.a)(document.body,"mouseup",ge,!1),ot=Object(Q.a)(document.body,"mousemove",wt,!1);return ht(),function(){on.remove(),ot.remove()}},[xe,_t]),w.useEffect(function(){var on=Object(Q.a)(window,"scroll",ht,!1),ot=Object(Q.a)(window,"resize",ht,!1);return function(){on.remove(),ot.remove()}},[]),w.useEffect(function(){en.isHiddenScrollBar||vn(function(on){var ot,Wt;return Object(z.a)(Object(z.a)({},on),{},{scrollLeft:xt.current.scrollLeft/((ot=xt.current)===null||ot===void 0?void 0:ot.scrollWidth)*((Wt=xt.current)===null||Wt===void 0?void 0:Wt.clientWidth)})})},[en.isHiddenScrollBar]),pe<=me||!xe||en.isHiddenScrollBar?null:w.createElement("div",{style:{height:Object(M.a)(),width:me,bottom:we},className:"".concat(ue,"-sticky-scroll")},w.createElement("div",{onMouseDown:Me,ref:nt,className:x()("".concat(ue,"-sticky-scroll-bar"),Object(re.a)({},"".concat(ue,"-sticky-scroll-bar-active"),_t)),style:{width:"".concat(xe,"px"),transform:"translate3d(".concat(en.scrollLeft,"px, 0, 0)")}}))},Fe=w.forwardRef(_e);function He(tt,Ke){return w.useMemo(function(){var Ct=!!tt;return{isSticky:Ct,stickyClassName:Ct?"".concat(Ke,"-sticky-header"):"",offsetHeader:Object(K.a)(tt)==="object"&&tt.offsetHeader||0,offsetScroll:Object(K.a)(tt)==="object"&&tt.offsetScroll||0}},[tt,Ke])}var Rt=[],Ht={},It="rc-table-internal-hook",Bt=w.memo(function(tt){var Ke=tt.children;return Ke},function(tt,Ke){return D()(tt.props,Ke.props)?tt.pingLeft!==Ke.pingLeft||tt.pingRight!==Ke.pingRight:!1});function tn(tt){var Ke,Ct=tt.prefixCls,Dt=tt.className,st=tt.rowClassName,xt=tt.style,je=tt.data,we=tt.rowKey,Te=tt.scroll,ue=tt.tableLayout,pe=tt.direction,me=tt.title,xe=tt.footer,nt=tt.summary,We=tt.id,St=tt.showHeader,en=tt.components,vn=tt.emptyText,Zt=tt.onRow,Vt=tt.onHeaderRow,Et=tt.internalHooks,_t=tt.transformColumns,ct=tt.internalRefs,ge=tt.sticky,Me=je||Rt,wt=!!Me.length,ht=w.useState(0),qt=Object(T.a)(ht,2),on=qt[0],ot=qt[1];w.useEffect(function(){ot(Object(M.a)())});var Wt=w.useMemo(function(){return Object(S.c)(en,{})},[en]),dn=w.useCallback(function(Hn,Vn){return Object(S.b)(Wt,Hn)||Vn},[Wt]),Bn=w.useMemo(function(){return typeof we=="function"?we:function(Hn){var Vn=Hn&&Hn[we];return Vn}},[we]),kn=Object(c.c)(tt),Cr=kn.expandIcon,Ar=kn.expandedRowKeys,fr=kn.defaultExpandedRowKeys,On=kn.defaultExpandAllRows,Fr=kn.expandedRowRender,na=kn.onExpand,Pr=kn.onExpandedRowsChange,hr=kn.expandRowByClick,Br=kn.rowExpandable,qr=kn.expandIconColumnIndex,fa=kn.expandedRowClassName,Qt=kn.childrenColumnName,qn=kn.indentSize,oa=Cr||ee,_a=Qt||"children",jr=w.useMemo(function(){return Fr?"row":tt.expandable&&Et===It&&tt.expandable.__PARENT_RENDER_ICON__||Me.some(function(Hn){return Hn&&Object(K.a)(Hn)==="object"&&Hn[_a]})?"nest":!1},[!!Fr,Me]),ra=w.useState(function(){return fr||(On?V(Me,Bn,_a):[])}),J=Object(T.a)(ra,2),y=J[0],A=J[1],X=w.useMemo(function(){return new Set(Ar||y||[])},[Ar,y]),te=w.useCallback(function(Hn){var Vn=Bn(Hn,Me.indexOf(Hn)),Zn,Wr=X.has(Vn);Wr?(X.delete(Vn),Zn=Object(I.a)(X)):Zn=[].concat(Object(I.a)(X),[Vn]),A(Zn),na&&na(!Wr,Hn),Pr&&Pr(Zn)},[Bn,X,Me,na,Pr]),$=w.useState(0),ze=Object(T.a)($,2),Ut=ze[0],pn=ze[1],Nn=Object(ke.b)(Object(z.a)(Object(z.a)(Object(z.a)({},tt),kn),{},{expandable:!!Fr,expandedKeys:X,getRowKey:Bn,onTriggerExpand:te,expandIcon:oa,expandIconColumnIndex:qr,direction:pe}),Et===It?_t:null),Kt=Object(T.a)(Nn,2),rn=Kt[0],At=Kt[1],Yt=w.useMemo(function(){return{columns:rn,flattenColumns:At}},[rn,At]),bn=w.useRef(),tr=w.useRef(),Wn=w.useRef(),Jn=w.useState(!1),Sr=Object(T.a)(Jn,2),zn=Sr[0],Gn=Sr[1],Un=w.useState(!1),mn=Object(T.a)(Un,2),br=mn[0],_r=mn[1],Cn=Pe(new Map),or=Object(T.a)(Cn,2),xr=or[0],Ur=or[1],q=Object(S.a)(At),De=q.map(function(Hn){return xr.get(Hn)}),Ve=w.useMemo(function(){return De},[De.join("_")]),Be=Se(Ve,At.length,pe),$e=Te&&Object(S.d)(Te.y),qe=Te&&Object(S.d)(Te.x),ft=qe&&At.some(function(Hn){var Vn=Hn.fixed;return Vn}),Ee=w.useRef(),gt=He(ge,Ct),yt=gt.isSticky,Lt=gt.offsetHeader,bt=gt.offsetScroll,ut=gt.stickyClassName,kt,Mt,Le;$e&&(Mt={overflowY:"scroll",maxHeight:Te.y}),qe&&(kt={overflowX:"auto"},$e||(Mt={overflowY:"hidden"}),Le={width:Te.x===!0?"auto":Te.x,minWidth:"100%"});var mt=w.useCallback(function(Hn,Vn){Ur(function(Zn){var Wr=new Map(Zn);return Wr.set(Hn,Vn),Wr})},[]),Pt=fe(null),Jt=Object(T.a)(Pt,2),Nt=Jt[0],Sn=Jt[1];function gn(Hn,Vn){if(!Vn)return;typeof Vn=="function"?Vn(Hn):Vn.scrollLeft!==Hn&&(Vn.scrollLeft=Hn)}var un=function(Vn){var Zn=Vn.currentTarget,Wr=Vn.scrollLeft,ea=typeof Wr=="number"?Wr:Zn.scrollLeft,Yr=Zn||Ht;if(!Sn()||Sn()===Yr){var ta;Nt(Yr),gn(ea,tr.current),gn(ea,Wn.current),gn(ea,(ta=Ee.current)===null||ta===void 0?void 0:ta.setScrollLeft)}if(Zn){var pa=Zn.scrollWidth,ma=Zn.clientWidth;Gn(ea>0),_r(ea0?[].concat(Object(z.a)(p),Object(z.a)(m(h).map(function(S){return Object(I.a)({fixed:u},S)}))):[].concat(Object(z.a)(p),[Object(I.a)(Object(I.a)({},d),{},{fixed:u})])},[])}function R(n){for(var p=!0,d=0;d=0;h-=1){var S=n[h];if(u&&S.fixed!=="right")u=!1;else if(!u&&S.fixed==="right"){Object(B.a)(!1,"Index ".concat(h+1," of `columns` missing `fixed='right'` prop."));break}}}function M(n){return n.map(function(p){var d=p.fixed,o=Object(K.a)(p,["fixed"]),u=d;return d==="left"?u="right":d==="right"&&(u="left"),Object(I.a)({fixed:u},o)})}function g(n,p){var d=n.prefixCls,o=n.columns,u=n.children,h=n.expandable,S=n.expandedKeys,b=n.getRowKey,v=n.onTriggerExpand,P=n.expandIcon,E=n.rowExpandable,f=n.expandIconColumnIndex,c=n.direction,s=n.expandRowByClick,i=T.useMemo(function(){return o||D(u)},[o,u]),C=T.useMemo(function(){if(h){var N,U=f||0,H=i[U],G=(N={},Object(re.a)(N,k.a,{className:"".concat(d,"-expand-icon-col")}),Object(re.a)(N,"title",""),Object(re.a)(N,"fixed",H?H.fixed:null),Object(re.a)(N,"className","".concat(d,"-row-expand-icon-cell")),Object(re.a)(N,"render",function(Z,oe,ie){var be=b(oe,ie),Je=S.has(be),Ae=E?E(oe):!0,ke=P({prefixCls:d,expanded:Je,expandable:Ae,record:oe,onExpand:v});return s?T.createElement("span",{onClick:function(Xe){return Xe.stopPropagation()}},ke):ke}),N),L=i.slice();return U>=0&&L.splice(U,0,G),L}return i},[h,i,b,S,P,c]),_=T.useMemo(function(){var N=C;return p&&(N=p(N)),N.length||(N=[{render:function(){return null}}]),N},[p,C,c]),O=T.useMemo(function(){return c==="rtl"?M(m(_)):m(_)},[_,c]);return[_,O]}rt.b=g},wzkS:function(an,rt,F){"use strict";F.d(rt,"c",function(){return T}),F.d(rt,"b",function(){return w}),F.d(rt,"d",function(){return B}),F.d(rt,"a",function(){return k}),F.d(rt,"e",function(){return D});var re=F("9og8"),z=F("WmNS"),I=F.n(z),K=F("ErOA");function T(m){return Object(K.c)("libraries/".concat(m,".json"))}function w(){return Object(K.c)("library_tags.json")}function B(m){return x.apply(this,arguments)}function x(){return x=Object(re.a)(I.a.mark(function m(R){var M;return I.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(K.b)("attachments/".concat(R,".json"));case 2:return M=n.sent,n.abrupt("return",M.status===0);case 4:case"end":return n.stop()}},m)})),x.apply(this,arguments)}function k(m){return Object(K.f)("libraries.json",m)}function D(m,R){return Object(K.g)("libraries/".concat(m,".json"),R)}},xOL1:function(an,rt){an.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC"},"y0+3":function(an,rt,F){"use strict";F.d(rt,"a",function(){return m}),F.d(rt,"b",function(){return M});var re=/margin|padding|width|height|max|min|offset/,z={left:!0,top:!0},I={cssFloat:1,styleFloat:1,float:1};function K(g){return g.nodeType===1?g.ownerDocument.defaultView.getComputedStyle(g,null):{}}function T(g,n,p){if(n=n.toLowerCase(),p==="auto"){if(n==="height")return g.offsetHeight;if(n==="width")return g.offsetWidth}return n in z||(z[n]=re.test(n)),z[n]?parseFloat(p)||0:p}function w(g,n){var p=arguments.length,d=K(g);return n=I[n]?"cssFloat"in g.style?"cssFloat":"styleFloat":n,p===1?d:T(g,n,d[n]||g.style[n])}function B(g,n,p){var d=arguments.length;if(n=I[n]?"cssFloat"in g.style?"cssFloat":"styleFloat":n,d===3)return typeof p=="number"&&re.test(n)&&(p="".concat(p,"px")),g.style[n]=p,p;for(var o in n)n.hasOwnProperty(o)&&B(g,o,n[o]);return K(g)}function x(g){return g===document.body?document.documentElement.clientWidth:g.offsetWidth}function k(g){return g===document.body?window.innerHeight||document.documentElement.clientHeight:g.offsetHeight}function D(){var g=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),n=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:g,height:n}}function m(){var g=document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight;return{width:g,height:n}}function R(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function M(g){var n=g.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(an,rt,F){"use strict";F.d(rt,"c",function(){return p}),F.d(rt,"a",function(){return d});var re=F("DZo9"),z=F("8z0m"),I=F("+L6B"),K=F("2/Rp"),T=F("9og8"),w=F("k1fw"),B=F("oBTY"),x=F("miYZ"),k=F("tsqr"),D=F("WmNS"),m=F.n(D),R=F("q1tI"),M=F.n(R),g=F("m3rI"),n=F("wzkS"),p="\u3000\u3000";function d(o){var u=["Bytes","KB","MB","GB","TB"];if(o==0)return"0 Byte";var h=parseInt(""+Math.floor(Math.log(o)/Math.log(1024)),10);return(o/Math.pow(1024,h)).toFixed(1)+" "+u[h]}rt.b=function(o){var u=o.value,h=u===void 0?[]:u,S=o.action,b=o.onChange,v=o.className,P=o.maxSize,E=P===void 0?150:P,f=o.title,c=f===void 0?"\u6587\u4EF6\u4E0A\u4F20":f,s=o.accept,i=s===void 0?null:s,C={multiple:!1,fileList:h,accept:i,withCredentials:!0,beforeUpload:function(N){var U=N.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:h.length>0,ghost:!0},c),M.a.createElement("span",{onClick:_,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",E,"M) ")))}}}]); diff --git a/p__Classrooms__Lists__Video__Statistics__Detail__index.1fa18561.async.js b/p__Classrooms__Lists__Video__Statistics__Detail__index.1fa18561.async.js index 5c2a60387e..f5d363a1d4 100644 --- a/p__Classrooms__Lists__Video__Statistics__Detail__index.1fa18561.async.js +++ b/p__Classrooms__Lists__Video__Statistics__Detail__index.1fa18561.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),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,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||Ne[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Pe){return Pe.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(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,Ne=c.selectComponentClass,Re=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)),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 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: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 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 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 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 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,T){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]===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"),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,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],N=bt[1],R=function(M){N(M);var P=he[M];if(!P){ie(null,-1);return}ie(P.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],P=he.findIndex(function(_){var G=_.data;return G.value===M});R(P),tt(P)}});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 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),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 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,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,(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: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,Pe=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||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),S=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||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,T,i,K,j){for(var S=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;!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,T,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 T===!0?l=ne(B,D,s,S):l=x(B,T.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"),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 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*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),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"),T=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]||{},P,_;A.fixed==="left"?P=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(P!==void 0){var Se=de&&de.fixed==="left";te=!Se}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 N=r.cells,R=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(N.map(function(J){return J.column}),P));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,P){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;N[_]=N[_]||[];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=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(P){N[P].forEach(function(_){!("rowSpan"in _)&&!_.hasSubColumns&&(_.rowSpan=w-P)})},A=0;A=0;P-=1){var _=N[P],G=R&&R[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,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-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(R,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,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,P=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),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,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,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 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})},[]),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 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 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 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)}}}}]); +(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 Ne=this.getPageSizeOptions();if(v&&fe){var Se=Ne.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||Ne[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Pe){return Pe.parentNode}},Se)}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,Ne=c.selectComponentClass,Se=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)),S!==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:Ne,selectPrefixCls:Se,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,Ne=I.searchValue,Se=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],N=bt[1],S=function(M){N(M);var P=he[M];if(!P){ie(null,-1);return}ie(P.data.value,M)};x.useEffect(function(){S(pe!==!1?st(0):-1)},[he.length,Ne]),x.useEffect(function(){var A=setTimeout(function(){if(!Se&&Ae&&Q.size===1){var M=Array.from(Q)[0],P=he.findIndex(function(_){var G=_.data;return G.value===M});S(P),tt(P)}});return function(){return clearTimeout(A)}},[Ae]);var w=function(M){M!==void 0&&ke(M,{selected:!Q.has(M)}),Se||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),S(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;S(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,Se=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=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`."),Se&&!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,N,S,w,z){var A=S[r]||{},M=S[N]||{},P,_;A.fixed==="left"?P=w.left[r]:M.fixed==="right"&&(_=w.right[N]);var G=!1,k=!1,V=!1,te=!1,J=S[N+1],de=S[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 N=r.cells,S=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(N.map(function(J){return J.column}),P));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 Re=J.column,Ce=y(J.colStart,J.colEnd,w,S,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 N=[];function S(M,P){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;N[_]=N[_]||[];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=S(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,N[_].push(te),G+=J,J});return k}S(r,0);for(var w=N.length,z=function(P){N[P].forEach(function(_){!("rowSpan"in _)&&!_.hasSubColumns&&(_.rowSpan=w-P)})},A=0;A=0;P-=1){var _=N[P],G=S&&S[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,N){return Object(o.useMemo)(function(){for(var S=[],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(S,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,N){return o.useMemo(function(){var S=!!r;return{isSticky:S,stickyClassName:S?"".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,S=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,Nt=Me.expandedRowKeys,St=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 St||(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,S),Ot=wt.isSticky,Nn=wt.offsetHeader,Sn=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(Se){return Se.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)}}}}]); diff --git a/p__Classrooms__Lists__Video__Statistics__StudentDetail__index.9907a447.async.js b/p__Classrooms__Lists__Video__Statistics__StudentDetail__index.9907a447.async.js index 210d69299c..38e703b65a 100644 --- a/p__Classrooms__Lists__Video__Statistics__StudentDetail__index.9907a447.async.js +++ b/p__Classrooms__Lists__Video__Statistics__StudentDetail__index.9907a447.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),x=t("TSYQ"),T=t.n(x),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)))},W=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:""}),k(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),k=isNaN(Number(I))?0:Number(I);return p-k})}},{key:"render",value:function(){var e=this,c=this.props,d=c.pageSize,m=c.locale,I=c.rootPrefixCls,p=c.changeSize,k=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&&!k)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 k&&(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,O=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,k){var V=e.props.prefixCls,J=p||i.a.createElement("button",{type:"button","aria-label":k,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,k=p.showQuickJumper,V=p.pageSize,J=p.total;return J<=V?!1:k},e.handleKeyDown=function(p){(p.keyCode===D.ARROW_UP||p.keyCode===D.ARROW_DOWN)&&p.preventDefault()},e.handleKeyUp=function(p){var k=e.getValidValue(p),V=e.state.currentInputValue;k!==V&&e.setState({currentInputValue:k}),p.keyCode===D.ENTER?e.handleChange(k):p.keyCode===D.ARROW_UP?e.handleChange(k-1):p.keyCode===D.ARROW_DOWN&&e.handleChange(k+1)},e.changePageSize=function(p){var k=e.state.current,V=h(p,e.state,e.props);k=k>V?V:k,V===0&&(k=e.state.current),typeof p=="number"&&("pageSize"in e.props||e.setState({pageSize:p}),"current"in e.props||e.setState({current:k,currentInputValue:k})),e.props.onShowSizeChange(k,p),"onChange"in e.props&&e.props.onChange&&e.props.onChange(k,p)},e.handleChange=function(p){var k=e.props.disabled,V=p;if(e.isValid(V)&&!k){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,k=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(k===!0&&V<=Ae)return null;var de=h(void 0,this.state,this.props),be=[],Be=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(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(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:O.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 x}),t.d(_,"a",function(){return B}),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 O(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),O(H,"".concat(E).concat(f," > "))})}O(s)}function i(s){function l(O){var u=Object(q.a)(O);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 x(){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 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||O.has(b)?n.children=E(H.children||[],n):n.children=[],n})}return E(s),u}function T(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,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]:{},O=l.initWrapper,u=l.processEntity,E=l.onProcessFinished,y=arguments.length>2?arguments[2]:void 0,h={},H={},f={posEntities:h,keyEntities:H};return O&&(f=O(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 O=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:O.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,O=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:O,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 x=document.createElement("style");if((P=i.csp)===null||P===void 0?void 0:P.nonce){var T;x.nonce=(T=i.csp)===null||T===void 0?void 0:T.nonce}x.innerHTML=F;var B=G(i),W=B.firstChild;return i.prepend&&B.prepend?B.prepend(x):i.prepend&&W?B.insertBefore(x,W):B.appendChild(x),x}var j=new Map;function o(F,P){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x=G(i);if(!j.has(x)){var T=q("",i),B=T.parentNode;j.set(x,B),B.removeChild(T)}var W=Array.from(j.get(x).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 O=q(F,i);return O[C]=P,O}},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"),x=t("bX4T"),T=t("YrtM"),B=t("TSYQ"),W=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,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",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 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&&!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,k=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(k,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(x){P.has(x)||i.add(x)}),i}function G(F){var P=F||{},i=P.disabled,x=P.disableCheckbox,T=P.checkable;return!!(i||x)||T===!1}function q(F,P,i,x){for(var T=new Set(F),B=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)&&!x(y)&&H.filter(function(f){return!x(f.node)}).forEach(function(f){T.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 E=u.parent,y=u.node;if(x(y)||!u.parent||s.has(u.parent.key))return;if(x(u.parent.node)){s.add(E.key);return}var h=!0,H=!1;(E.children||[]).filter(function(f){return!x(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,x,T){for(var B=new Set(F),W=new Set(P),D=0;D<=x;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)&&!W.has(y)&&!T(h)&&f.filter(function(v){return!T(v.node)}).forEach(function(v){B.delete(v.key)})})}W=new Set;for(var l=new Set,O=x;O>=0;O-=1){var u=i.get(O)||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||W.has(b))&&(f=!0)}),H||B.delete(y.key),f&&W.add(y.key),l.add(y.key)})}return{checkedKeys:Array.from(B),halfCheckedKeys:Array.from(C(W,B))}}function o(F,P,i,x){var T=[],B;x?B=x:B=G;var W=new Set(F.filter(function(O){var u=!!i[O];return u||T.push(O),u})),D=new Map,s=0;Object.keys(i).forEach(function(O){var u=i[O],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(O){return"'".concat(O,"'")}).join(", ")));var l;return P===!0?l=q(W,D,s,B):l=j(W,P.halfCheckedKeys,D,s,B),l}},OZM5:function(ge,_,t){"use strict";t.d(_,"b",function(){return x}),t.d(_,"a",function(){return T}),t.d(_,"k",function(){return B}),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 O}),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 x(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 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 O(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"),x=t.n(i),T=t("1vsH"),B=t("Ty5D"),W=t("9kvl"),D=t("5bA4"),s=t("cdMw"),l=t.n(s),O=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,k=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 x.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 x.a.createElement("span",null,ne!=null&&ne.is_finished?"\u662F":"\u5426")}}];return x.a.createElement("section",{className:l.a.bg},x.a.createElement("aside",{className:l.a.statisticsWrp},x.a.createElement(q.a,{justify:"space-between",className:"mt10 mb20"},x.a.createElement(o.a,{span:"16"},x.a.createElement(D.a,{className:"current mr10 font16",onClick:function(){return W.d.goBack()}}),x.a.createElement("strong",{className:"font16"},"\u89C6\u9891\u7EDF\u8BA1\u603B\u89C8")),x.a.createElement(o.a,{span:"8",className:"c-light-black tr"},"\u64AD\u653E\u6570\u636E\u4ECE ",k.begin_at," \u5F00\u59CB\u7EDF\u8BA1")),x.a.createElement(q.a,{justify:"space-between",className:l.a.statistics},x.a.createElement(o.a,{span:"7"},x.a.createElement("span",null,"\u89C2\u770B\u603B\u6B21\u6570 \uFF08\u6B21\uFF09"),x.a.createElement("br",null),x.a.createElement("strong",null,k.freq)),x.a.createElement(o.a,{span:"7"},x.a.createElement("span",null,"\u89C2\u770B\u603B\u4E2A\u6570 \uFF08\u4E2A\uFF09"),x.a.createElement("br",null),x.a.createElement("strong",null,k.num)),x.a.createElement(o.a,{span:"7"},x.a.createElement("span",null,"\u603B\u89C2\u770B\u65F6\u5E38 \uFF08\u65F6\uFF09"),x.a.createElement("br",null),x.a.createElement("strong",null,Object(T.X)(k.total_duration))))),x.a.createElement("aside",{className:l.a.infoWrp},x.a.createElement("div",null,x.a.createElement("strong",{className:"font16"},"\u7EDF\u8BA1\u5217\u8868")),x.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}})(O)},"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"),x=t("TSYQ"),T=t.n(x),B=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(x.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(y.length===0)return Object(x.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)})})}}]),O}(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"),x=t.n(i),T=t("Kwbf"),B=t("t23M"),W=t("qx4F"),D=t("6eGT"),s=t("IBYe"),l=t("Ff2n"),O=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 xe=le&&le.fixed==="left";te=!xe}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 xe=Y.column,he=y(Y.colStart,Y.colEnd,U,R,K),ye;return xe&&xe.onHeaderCell&&(ye=Y.column.onHeaderCell(xe)),o.createElement(u.a,Object.assign({},Y,{ellipsis:xe.ellipsis,align:xe.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(xe,he){return xe+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},ke=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 Oe=Object(We.a)(document.body,"mouseup",$e,!1),se=Object(We.a)(document.body,"mousemove",Ge,!1);return ke(),function(){Oe.remove(),se.remove()}},[te,Se]),o.useEffect(function(){var Oe=Object(We.a)(window,"scroll",ke,!1),se=Object(We.a)(window,"resize",ke,!1);return function(){Oe.remove(),se.remove()}},[]),o.useEffect(function(){he.isHiddenScrollBar||ye(function(Oe){var se,_e;return Object(C.a)(Object(C.a)({},Oe),{},{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 x()(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,xe=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,ke=o.useState(0),Te=Object(j.a)(ke,2),Oe=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||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),Wt=Yt[0],De=Yt[1],_t=o.useMemo(function(){return{columns:Wt,flattenColumns:De}},[Wt,De]),kt=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),xn=nn[0],On=nn[1],jn=Object(h.a)(De),an=jn.map(function(me){return xn.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),xt=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){On(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,Ot=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!cn()||cn()===hn){var Jt;Tn(hn),Ft(Ot,Qt.current),Ft(Ot,ut.current),Ft(Ot,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var Un=Ke.scrollWidth,In=Ke.clientWidth;En(Ot>0),Cn(Ot0?[].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)({},O),{},{fixed:E})])},[])}function B(s){for(var l=!0,O=0;O=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 O=l.fixed,u=Object(q.a)(l,["fixed"]),E=O;return O==="left"?E="right":O==="right"&&(E="left"),Object(G.a)({fixed:E},u)})}function D(s,l){var O=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||x(E)},[u,E]),d=j.useMemo(function(){if(y){var p,k=n||0,V=c[k],J=(p={},Object(g.a)(p,i.a,{className:"".concat(O,"-expand-icon-col")}),Object(g.a)(p,"title",""),Object(g.a)(p,"fixed",V?V.fixed:null),Object(g.a)(p,"className","".concat(O,"-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:O,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 k>=0&&ne.splice(k,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,O=q(D);return s=G[s]?"cssFloat"in D.style?"cssFloat":"styleFloat":s,l===1?O:j(D,s,O[s]||D.style[s])}function F(D,s,l){var O=arguments.length;if(s=G[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 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 x(){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 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)}}}}]); +(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),x=t("TSYQ"),T=t.n(x),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,O=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:O.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 x}),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 O(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),O(H,"".concat(E).concat(f," > "))})}O(s)}function i(s){function l(O){var u=Object(q.a)(O);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 x(){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 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||O.has(b)?n.children=E(H.children||[],n):n.children=[],n})}return E(s),u}function T(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,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]:{},O=l.initWrapper,u=l.processEntity,E=l.onProcessFinished,y=arguments.length>2?arguments[2]:void 0,h={},H={},f={posEntities:h,keyEntities:H};return O&&(f=O(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 O=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:O.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,O=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:O,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 x=document.createElement("style");if((P=i.csp)===null||P===void 0?void 0:P.nonce){var T;x.nonce=(T=i.csp)===null||T===void 0?void 0:T.nonce}x.innerHTML=F;var B=G(i),k=B.firstChild;return i.prepend&&B.prepend?B.prepend(x):i.prepend&&k?B.insertBefore(x,k):B.appendChild(x),x}var j=new Map;function o(F,P){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},x=G(i);if(!j.has(x)){var T=q("",i),B=T.parentNode;j.set(x,B),B.removeChild(T)}var k=Array.from(j.get(x).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 O=q(F,i);return O[C]=P,O}},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"),x=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(x){P.has(x)||i.add(x)}),i}function G(F){var P=F||{},i=P.disabled,x=P.disableCheckbox,T=P.checkable;return!!(i||x)||T===!1}function q(F,P,i,x){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)&&!x(y)&&H.filter(function(f){return!x(f.node)}).forEach(function(f){T.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 E=u.parent,y=u.node;if(x(y)||!u.parent||s.has(u.parent.key))return;if(x(u.parent.node)){s.add(E.key);return}var h=!0,H=!1;(E.children||[]).filter(function(f){return!x(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,x,T){for(var B=new Set(F),k=new Set(P),D=0;D<=x;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,O=x;O>=0;O-=1){var u=i.get(O)||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,x){var T=[],B;x?B=x:B=G;var k=new Set(F.filter(function(O){var u=!!i[O];return u||T.push(O),u})),D=new Map,s=0;Object.keys(i).forEach(function(O){var u=i[O],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(O){return"'".concat(O,"'")}).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 x}),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 O}),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 x(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 O(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"),x=t.n(i),T=t("1vsH"),B=t("Ty5D"),k=t("9kvl"),D=t("5bA4"),s=t("cdMw"),l=t.n(s),O=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 x.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 x.a.createElement("span",null,ne!=null&&ne.is_finished?"\u662F":"\u5426")}}];return x.a.createElement("section",{className:l.a.bg},x.a.createElement("aside",{className:l.a.statisticsWrp},x.a.createElement(q.a,{justify:"space-between",className:"mt10 mb20"},x.a.createElement(o.a,{span:"16"},x.a.createElement(D.a,{className:"current mr10 font16",onClick:function(){return k.d.goBack()}}),x.a.createElement("strong",{className:"font16"},"\u89C6\u9891\u7EDF\u8BA1\u603B\u89C8")),x.a.createElement(o.a,{span:"8",className:"c-light-black tr"},"\u64AD\u653E\u6570\u636E\u4ECE ",W.begin_at," \u5F00\u59CB\u7EDF\u8BA1")),x.a.createElement(q.a,{justify:"space-between",className:l.a.statistics},x.a.createElement(o.a,{span:"7"},x.a.createElement("span",null,"\u89C2\u770B\u603B\u6B21\u6570 \uFF08\u6B21\uFF09"),x.a.createElement("br",null),x.a.createElement("strong",null,W.freq)),x.a.createElement(o.a,{span:"7"},x.a.createElement("span",null,"\u89C2\u770B\u603B\u4E2A\u6570 \uFF08\u4E2A\uFF09"),x.a.createElement("br",null),x.a.createElement("strong",null,W.num)),x.a.createElement(o.a,{span:"7"},x.a.createElement("span",null,"\u603B\u89C2\u770B\u65F6\u5E38 \uFF08\u65F6\uFF09"),x.a.createElement("br",null),x.a.createElement("strong",null,Object(T.X)(W.total_duration))))),x.a.createElement("aside",{className:l.a.infoWrp},x.a.createElement("div",null,x.a.createElement("strong",{className:"font16"},"\u7EDF\u8BA1\u5217\u8868")),x.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}})(O)},"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"),x=t("TSYQ"),T=t.n(x),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(x.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(y.length===0)return Object(x.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)})})}}]),O}(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"),x=t.n(i),T=t("Kwbf"),B=t("t23M"),k=t("qx4F"),D=t("6eGT"),s=t("IBYe"),l=t("Ff2n"),O=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 xe=le&&le.fixed==="left";te=!xe}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 xe=Y.column,he=y(Y.colStart,Y.colEnd,U,R,K),ye;return xe&&xe.onHeaderCell&&(ye=Y.column.onHeaderCell(xe)),o.createElement(u.a,Object.assign({},Y,{ellipsis:xe.ellipsis,align:xe.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(xe,he){return xe+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 Oe=Object(ke.a)(document.body,"mouseup",$e,!1),se=Object(ke.a)(document.body,"mousemove",Ge,!1);return We(),function(){Oe.remove(),se.remove()}},[te,Se]),o.useEffect(function(){var Oe=Object(ke.a)(window,"scroll",We,!1),se=Object(ke.a)(window,"resize",We,!1);return function(){Oe.remove(),se.remove()}},[]),o.useEffect(function(){he.isHiddenScrollBar||ye(function(Oe){var se,_e;return Object(C.a)(Object(C.a)({},Oe),{},{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 x()(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,xe=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),Oe=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),xn=nn[0],On=nn[1],jn=Object(h.a)(De),an=jn.map(function(me){return xn.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),xt=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){On(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,Ot=typeof qe=="number"?qe:Ke.scrollLeft,hn=Ke||et;if(!cn()||cn()===hn){var Jt;Tn(hn),Ft(Ot,Qt.current),Ft(Ot,ut.current),Ft(Ot,(Jt=rn.current)===null||Jt===void 0?void 0:Jt.setScrollLeft)}if(Ke){var Un=Ke.scrollWidth,In=Ke.clientWidth;En(Ot>0),Cn(Ot0?[].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)({},O),{},{fixed:E})])},[])}function B(s){for(var l=!0,O=0;O=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 O=l.fixed,u=Object(q.a)(l,["fixed"]),E=O;return O==="left"?E="right":O==="right"&&(E="left"),Object(G.a)({fixed:E},u)})}function D(s,l){var O=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||x(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(O,"-expand-icon-col")}),Object(g.a)(p,"title",""),Object(g.a)(p,"fixed",V?V.fixed:null),Object(g.a)(p,"className","".concat(O,"-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:O,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,O=q(D);return s=G[s]?"cssFloat"in D.style?"cssFloat":"styleFloat":s,l===1?O:j(D,s,O[s]||D.style[s])}function F(D,s,l){var O=arguments.length;if(s=G[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 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 x(){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)}}}}]); diff --git a/p__Competitions__Entered__Assembly__TeamDateil.683b464c.async.js b/p__Competitions__Entered__Assembly__TeamDateil.683b464c.async.js index d8a67fc014..c5bccadc78 100644 --- a/p__Competitions__Entered__Assembly__TeamDateil.683b464c.async.js +++ b/p__Competitions__Entered__Assembly__TeamDateil.683b464c.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"),y=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(y.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,C=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&&(C=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,C)),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,C=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),Ce=[],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&&(Ce[0]=Object(L.cloneElement)(Ce[0],{className:"".concat(c,"-item-after-jump-prev")}),Ce.unshift(Be)),de-se>=be*2&&se!==de-2&&(Ce[Ce.length-1]=Object(L.cloneElement)(Ce[Ce.length-1],{className:"".concat(c,"-item-before-jump-next")}),Ce.push(Ue)),P!==1&&Ce.unshift(ke),I!==de&&Ce.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(y.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(y.a)({},"".concat(c,"-disabled"),T)),"aria-disabled":T},this.renderPrev(Qe)),Ce,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(y.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"),y=n("n6Qo");n.d(w,"b",function(){return y.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(y){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"),y=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(y.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(y.a)(Object(y.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(y.a)(Object(y.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(y){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"),y=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,C=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,Ce=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,C=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(C)})}).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,C=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,Ce=D==="multiple"||D==="tags",Be=X!==void 0?X:Ce||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"||!C,"`getInputElement` only work with `combobox` mode."),Object(c.b)(D!=="combobox"||!C||!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)(!Ce||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(y.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 y(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(y(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(y(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"),y=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(y.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"),y=n("EbDI"),Q=n("ZhPi"),J=n("wkBT");function j(o){return E(o)||y(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"),y=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(y.a,{className:"teamsLayoutTable",columns:le,dataSource:N,bordered:!0,pagination:!1}),r.a.createElement("p",null,"\u6559\u5B66\u8BFE\u5802"),r.a.createElement(y.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"),y=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(y.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(y.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"),y="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"),y=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 ye=q&&q.fixed==="right";$=!ye}}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,ye=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]},ye,{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,ye){return Re+ye},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(y.a)(Object(y.a)({},Je),{},{isHiddenScrollBar:!0})}):xe(function(Je){return Object(y.a)(Object(y.a)({},Je),{},{isHiddenScrollBar:!1})})},_e=function(fe){xe(function(we){return Object(y.a)(Object(y.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(){ye.isHiddenScrollBar||xe(function(Pe){var fe,we;return Object(y.a)(Object(y.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)})})},[ye.isHiddenScrollBar]),W<=$||!re||ye.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(ye.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,ye=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)(ye,{})},[ye]),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),yt=_t[0],Mt=_t[1],vn=Object(C.b)(Object(y.a)(Object(y.a)(Object(y.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],yn=en[1],Cn=pe(new Map),nn=Object(j.a)(Cn,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),Ct=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),yn(xt0?[].concat(Object(y.a)(s),Object(y.a)(A(O).map(function(h){return Object(Q.a)({fixed:g},h)}))):[].concat(Object(y.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,C=v({prefixCls:x,expanded:oe,expandable:te,record:ee,onExpand:m});return e?j.createElement("span",{onClick:function(ve){return ve.stopPropagation()}},C):C}),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/,y={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 y||(y[r]=E.test(r)),y[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===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)}}}}]); diff --git a/p__Innovation__PublicDataSet.0d22ae73.async.js b/p__Innovation__PublicDataSet.0d22ae73.async.js index 9a28ee5c7d..ec3294e179 100644 --- a/p__Innovation__PublicDataSet.0d22ae73.async.js +++ b/p__Innovation__PublicDataSet.0d22ae73.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[161,6,8,10],{"+QRC":function($e,Ce,n){"use strict";var L=n("E9nw"),R={"text/plain":"Text","text/html":"Url",default:"Text"},Ae="Copy to clipboard: #{key}, Enter";function K(p){var q=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return p.replace(/#{\s*key\s*}/g,q)}function i(p,q){var le,W,B,ae,Oe,he,ce=!1;q||(q={}),le=q.debug||!1;try{B=L(),ae=document.createRange(),Oe=document.getSelection(),he=document.createElement("span"),he.textContent=p,he.style.all="unset",he.style.position="fixed",he.style.top=0,he.style.clip="rect(0, 0, 0, 0)",he.style.whiteSpace="pre",he.style.webkitUserSelect="text",he.style.MozUserSelect="text",he.style.msUserSelect="text",he.style.userSelect="text",he.addEventListener("copy",function(D){if(D.stopPropagation(),q.format)if(D.preventDefault(),typeof D.clipboardData=="undefined"){le&&console.warn("unable to use e.clipboardData"),le&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var Y=R[q.format]||R.default;window.clipboardData.setData(Y,p)}else D.clipboardData.clearData(),D.clipboardData.setData(q.format,p);q.onCopy&&(D.preventDefault(),q.onCopy(D.clipboardData))}),document.body.appendChild(he),ae.selectNodeContents(he),Oe.addRange(ae);var U=document.execCommand("copy");if(!U)throw new Error("copy command was unsuccessful");ce=!0}catch(D){le&&console.error("unable to copy using execCommand: ",D),le&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(q.format||"text",p),q.onCopy&&q.onCopy(window.clipboardData),ce=!0}catch(Y){le&&console.error("unable to copy using clipboardData: ",Y),le&&console.error("falling back to prompt"),W=K("message"in q?q.message:Ae),window.prompt(W,p)}}finally{Oe&&(typeof Oe.removeRange=="function"?Oe.removeRange(ae):Oe.removeAllRanges()),he&&document.body.removeChild(he),B()}return ce}$e.exports=i},"/W/m":function($e,Ce,n){$e.exports={wrap:"wrap___2hbGX",colorBlue:"colorBlue___3-yNu",repeatedName:"repeatedName___TKF1j",header:"header___RnkHw",title:"title___2ZWhM"}},"/jad":function($e,Ce,n){$e.exports={colorBlue:"colorBlue___FpSkV",repeatedName:"repeatedName___2XphI"}},"6+eU":function($e,Ce,n){"use strict";n.d(Ce,"a",function(){return s});var L=n("wx14"),R=n("rePB"),Ae=n("VTBJ"),K=n("1OyB"),i=n("vuIU"),p=n("Ji7U"),q=n("LK+K"),le=n("q1tI"),W=n.n(le),B=n("TSYQ"),ae=n.n(B),Oe=function(H){var x,j="".concat(H.rootPrefixCls,"-item"),h=ae()(j,"".concat(j,"-").concat(H.page),(x={},Object(R.a)(x,"".concat(j,"-active"),H.active),Object(R.a)(x,H.className,!!H.className),Object(R.a)(x,"".concat(j,"-disabled"),!H.page),x)),V=function(){H.onClick(H.page)},$=function(Me){H.onKeyPress(Me,H.onClick,H.page)};return W.a.createElement("li",{title:H.showTitle?H.page:null,className:h,onClick:V,onKeyPress:$,tabIndex:"0"},H.itemRender(H.page,"page",W.a.createElement("a",{rel:"nofollow"},H.page)))},he=Oe,ce={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},U=function(z){Object(p.a)(x,z);var H=Object(q.a)(x);function x(){var j;Object(K.a)(this,x);for(var h=arguments.length,V=new Array(h),$=0;$=0||te.relatedTarget.className.indexOf("".concat(F,"-next"))>=0))return;j.setState({goInputText:""}),k(j.getValidValue())},j.go=function(te){var Me=j.state.goInputText;if(Me==="")return;(te.keyCode===ce.ENTER||te.type==="click")&&(j.setState({goInputText:""}),j.props.quickGo(j.getValidValue()))},j}return Object(i.a)(x,[{key:"getValidValue",value:function(){var h=this.state,V=h.goInputText,$=h.current;return!V||isNaN(V)?$:Number(V)}},{key:"getPageSizeOptions",value:function(){var h=this.props,V=h.pageSize,$=h.pageSizeOptions;return $.some(function(te){return te.toString()===V.toString()})?$:$.concat([V.toString()]).sort(function(te,Me){var ie=isNaN(Number(te))?0:Number(te),k=isNaN(Number(Me))?0:Number(Me);return ie-k})}},{key:"render",value:function(){var h=this,V=this.props,$=V.pageSize,te=V.locale,Me=V.rootPrefixCls,ie=V.changeSize,k=V.quickGo,F=V.goButton,C=V.selectComponentClass,b=V.buildOptionText,I=V.selectPrefixCls,M=V.disabled,A=this.state.goInputText,J="".concat(Me,"-options"),se=C,ge=null,Z=null,oe=null;if(!ie&&!k)return null;var ue=this.getPageSizeOptions();if(ie&&se){var ee=ue.map(function(G,ne){return W.a.createElement(se.Option,{key:ne,value:G.toString()},(b||h.buildOptionText)(G))});ge=W.a.createElement(se,{disabled:M,prefixCls:I,showSearch:!1,className:"".concat(J,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:($||ue[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ne){return ne.parentNode}},ee)}return k&&(F&&(oe=typeof F=="boolean"?W.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:M,className:"".concat(J,"-quick-jumper-button")},te.jump_to_confirm):W.a.createElement("span",{onClick:this.go,onKeyUp:this.go},F)),Z=W.a.createElement("div",{className:"".concat(J,"-quick-jumper")},te.jump_to,W.a.createElement("input",{disabled:M,type:"text",value:A,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),te.page,oe)),W.a.createElement("li",{className:"".concat(J)},ge,Z)}}]),x}(W.a.Component);U.defaultProps={pageSizeOptions:["10","20","50","100"]};var D=U,Y=n("N2Kk");function O(){}function y(z){return typeof z=="number"&&isFinite(z)&&Math.floor(z)===z}function l(z,H,x){return x}function a(z,H,x){var j=typeof z=="undefined"?H.pageSize:z;return Math.floor((x.total-1)/j)+1}var v=function(z){Object(p.a)(x,z);var H=Object(q.a)(x);function x(j){var h;Object(K.a)(this,x),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(a(void 0,h.state,h.props),h.state.current+(h.props.showLessItems?3:5))},h.getItemIcon=function(ie,k){var F=h.props.prefixCls,C=ie||W.a.createElement("button",{type:"button","aria-label":k,className:"".concat(F,"-item-link")});return typeof ie=="function"&&(C=W.a.createElement(ie,Object(Ae.a)({},h.props))),C},h.savePaginationNode=function(ie){h.paginationNode=ie},h.isValid=function(ie){return y(ie)&&ie!==h.state.current},h.shouldDisplayQuickJumper=function(){var ie=h.props,k=ie.showQuickJumper,F=ie.pageSize,C=ie.total;return C<=F?!1:k},h.handleKeyDown=function(ie){(ie.keyCode===ce.ARROW_UP||ie.keyCode===ce.ARROW_DOWN)&&ie.preventDefault()},h.handleKeyUp=function(ie){var k=h.getValidValue(ie),F=h.state.currentInputValue;k!==F&&h.setState({currentInputValue:k}),ie.keyCode===ce.ENTER?h.handleChange(k):ie.keyCode===ce.ARROW_UP?h.handleChange(k-1):ie.keyCode===ce.ARROW_DOWN&&h.handleChange(k+1)},h.changePageSize=function(ie){var k=h.state.current,F=a(ie,h.state,h.props);k=k>F?F:k,F===0&&(k=h.state.current),typeof ie=="number"&&("pageSize"in h.props||h.setState({pageSize:ie}),"current"in h.props||h.setState({current:k,currentInputValue:k})),h.props.onShowSizeChange(k,ie),"onChange"in h.props&&h.props.onChange&&h.props.onChange(k,ie)},h.handleChange=function(ie){var k=h.props.disabled,F=ie;if(h.isValid(F)&&!k){var C=a(void 0,h.state,h.props);F>C?F=C:F<1&&(F=1),"current"in h.props||h.setState({current:F,currentInputValue:F});var b=h.state.pageSize;return h.props.onChange(F,b),F}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?F-2:0),b=2;b=$?Me=$:Me=Number(V),Me}},{key:"getShowSizeChanger",value:function(){var h=this.props,V=h.showSizeChanger,$=h.total,te=h.totalBoundaryShowSizeChanger;return typeof V!="undefined"?V:$>te}},{key:"renderPrev",value:function(h){var V=this.props,$=V.prevIcon,te=V.itemRender,Me=te(h,"prev",this.getItemIcon($,"prev page")),ie=!this.hasPrev();return Object(le.isValidElement)(Me)?Object(le.cloneElement)(Me,{disabled:ie}):Me}},{key:"renderNext",value:function(h){var V=this.props,$=V.nextIcon,te=V.itemRender,Me=te(h,"next",this.getItemIcon($,"next page")),ie=!this.hasNext();return Object(le.isValidElement)(Me)?Object(le.cloneElement)(Me,{disabled:ie}):Me}},{key:"render",value:function(){var h=this,V=this.props,$=V.prefixCls,te=V.className,Me=V.style,ie=V.disabled,k=V.hideOnSinglePage,F=V.total,C=V.locale,b=V.showQuickJumper,I=V.showLessItems,M=V.showTitle,A=V.showTotal,J=V.simple,se=V.itemRender,ge=V.showPrevNextJumpers,Z=V.jumpPrevIcon,oe=V.jumpNextIcon,ue=V.selectComponentClass,ee=V.selectPrefixCls,G=V.pageSizeOptions,ne=this.state,o=ne.current,g=ne.pageSize,c=ne.currentInputValue;if(k===!0&&F<=g)return null;var N=a(void 0,this.state,this.props),Q=[],re=null,je=null,fe=null,xe=null,_e=null,me=b&&b.goButton,ye=I?1:2,Be=o-1>0?o-1:0,Ue=o+1=ye*2&&o!==1+2&&(Q[0]=Object(le.cloneElement)(Q[0],{className:"".concat($,"-item-after-jump-prev")}),Q.unshift(re)),N-o>=ye*2&&o!==N-2&&(Q[Q.length-1]=Object(le.cloneElement)(Q[Q.length-1],{className:"".concat($,"-item-before-jump-next")}),Q.push(je)),Ee!==1&&Q.unshift(fe),we!==N&&Q.push(xe)}var Re=null;A&&(Re=W.a.createElement("li",{className:"".concat($,"-total-text")},A(F,[F===0?0:(o-1)*g+1,o*g>F?F:o*g])));var be=!this.hasPrev()||!N,De=!this.hasNext()||!N;return W.a.createElement("ul",Object(L.a)({className:ae()($,te,Object(R.a)({},"".concat($,"-disabled"),ie)),style:Me,unselectable:"unselectable",ref:this.savePaginationNode},Fe),Re,W.a.createElement("li",{title:M?C.prev_page:null,onClick:this.prev,tabIndex:be?null:0,onKeyPress:this.runIfEnterPrev,className:ae()("".concat($,"-prev"),Object(R.a)({},"".concat($,"-disabled"),be)),"aria-disabled":be},this.renderPrev(Be)),Q,W.a.createElement("li",{title:M?C.next_page:null,onClick:this.next,tabIndex:De?null:0,onKeyPress:this.runIfEnterNext,className:ae()("".concat($,"-next"),Object(R.a)({},"".concat($,"-disabled"),De)),"aria-disabled":De},this.renderNext(Ue)),W.a.createElement(D,{disabled:ie,locale:C,rootPrefixCls:$,selectComponentClass:ue,selectPrefixCls:ee,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:o,pageSize:g,pageSizeOptions:G,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:me}))}}],[{key:"getDerivedStateFromProps",value:function(h,V){var $={};if("current"in h&&($.current=h.current,h.current!==V.current&&($.currentInputValue=$.current)),"pageSize"in h&&h.pageSize!==V.pageSize){var te=V.current,Me=a(h.pageSize,V,h);te=te>Me?Me:te,"current"in h||($.current=te,$.currentInputValue=te),$.pageSize=h.pageSize}return $}}]),x}(W.a.Component);v.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:Y.a,style:{},itemRender:l,totalBoundaryShowSizeChanger:50};var s=v},"6RRn":function($e,Ce,n){"use strict";var L=n("wCXF"),R=n("n6Qo");n.d(Ce,"b",function(){return R.a});var Ae=n("IBYe"),K=n("6eGT"),i=n("hW8S");n.d(Ce,"a",function(){return i.a}),Ce.c=L.b},"6eGT":function($e,Ce,n){"use strict";function L(R){return null}Ce.a=L},"815F":function($e,Ce,n){"use strict";n.d(Ce,"e",function(){return q}),n.d(Ce,"c",function(){return W}),n.d(Ce,"d",function(){return B}),n.d(Ce,"a",function(){return Oe}),n.d(Ce,"f",function(){return he}),n.d(Ce,"b",function(){return ce});var L=n("KQm4"),R=n("VTBJ"),Ae=n("Ff2n"),K=n("Zm9Q"),i=n("Kwbf"),p=n("OZM5");function q(U,D){return U!=null?U:D}function le(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=new Map;function Y(O){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(O||[]).forEach(function(l){var a=l.key,v=l.children;Object(i.a)(a!=null,"Tree node must have a certain key: [".concat(y).concat(a,"]"));var s=String(a);Object(i.a)(!D.has(s)||a===null||a===void 0,"Same 'key' exist in the Tree: ".concat(s)),D.set(s,!0),Y(v,"".concat(y).concat(s," > "))})}Y(U)}function W(U){function D(Y){var O=Object(K.a)(Y);return O.map(function(y){if(!Object(p.i)(y))return Object(i.a)(!y,"Tree/TreeNode can only accept TreeNode as children."),null;var l=y.key,a=y.props,v=a.children,s=Object(Ae.a)(a,["children"]),z=Object(R.a)({key:l},s),H=D(v);return H.length&&(z.children=H),z}).filter(function(y){return y})}return D(U)}function B(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Y=new Set(D===!0?[]:D),O=[];function y(l){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return l.map(function(v,s){var z=Object(p.h)(a?a.pos:"0",s),H=q(v.key,z),x=Object(R.a)(Object(R.a)({},v),{},{parent:a,pos:z,children:null,data:v,isStart:[].concat(Object(L.a)(a?a.isStart:[]),[s===0]),isEnd:[].concat(Object(L.a)(a?a.isEnd:[]),[s===l.length-1])});return O.push(x),D===!0||Y.has(H)?x.children=y(v.children||[],x):x.children=[],x})}return y(U),O}function ae(U,D,Y){var O;Y?typeof Y=="string"?O=function(a){return a[Y]}:typeof Y=="function"&&(O=function(a){return Y(a)}):O=function(a,v){return q(a.key,v)};function y(l,a,v){var s=l?l.children:U,z=l?Object(p.h)(v.pos,a):"0";if(l){var H=O(l,z),x={node:l,index:a,pos:z,key:H,parentPos:v.node?v.pos:null,level:v.level+1};D(x)}s&&s.forEach(function(j,h){y(j,h,{node:l,pos:z,level:v?v.level+1:-1})})}y(null)}function Oe(U){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=D.initWrapper,O=D.processEntity,y=D.onProcessFinished,l=arguments.length>2?arguments[2]:void 0,a={},v={},s={posEntities:a,keyEntities:v};return Y&&(s=Y(s)||s),ae(U,function(z){var H=z.node,x=z.index,j=z.pos,h=z.key,V=z.parentPos,$=z.level,te={node:H,index:x,key:h,pos:j,level:$},Me=q(h,j);a[j]=te,v[Me]=te,te.parent=a[V],te.parent&&(te.parent.children=te.parent.children||[],te.parent.children.push(te)),O&&O(te,s)},l),y&&y(s),s}function he(U,D){var Y=D.expandedKeys,O=D.selectedKeys,y=D.loadedKeys,l=D.loadingKeys,a=D.checkedKeys,v=D.halfCheckedKeys,s=D.dragOverNodeKey,z=D.dropPosition,H=D.keyEntities,x=H[U],j={eventKey:U,expanded:Y.indexOf(U)!==-1,selected:O.indexOf(U)!==-1,loaded:y.indexOf(U)!==-1,loading:l.indexOf(U)!==-1,checked:a.indexOf(U)!==-1,halfChecked:v.indexOf(U)!==-1,pos:String(x?x.pos:""),dragOver:s===U&&z===0,dragOverGapTop:s===U&&z===-1,dragOverGapBottom:s===U&&z===1};return j}function ce(U){var D=U.data,Y=U.expanded,O=U.selected,y=U.checked,l=U.loaded,a=U.loading,v=U.halfChecked,s=U.dragOver,z=U.dragOverGapTop,H=U.dragOverGapBottom,x=U.pos,j=U.active,h=Object(R.a)(Object(R.a)({},D),{},{expanded:Y,selected:O,checked:y,loaded:l,loading:a,halfChecked:v,dragOver:s,dragOverGapTop:z,dragOverGapBottom:H,pos:x,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`."),U}}),h}},BU3w:function($e,Ce,n){"use strict";n.d(Ce,"a",function(){return p});var L=n("MNnm"),R="rc-util-key";function Ae(q){if(q.attachTo)return q.attachTo;var le=document.querySelector("head");return le||document.body}function K(q){var le,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(L.a)())return null;var B=document.createElement("style");if((le=W.csp)===null||le===void 0?void 0:le.nonce){var ae;B.nonce=(ae=W.csp)===null||ae===void 0?void 0:ae.nonce}B.innerHTML=q;var Oe=Ae(W),he=Oe.firstChild;return W.prepend&&Oe.prepend?Oe.prepend(B):W.prepend&&he?Oe.insertBefore(B,he):Oe.appendChild(B),B}var i=new Map;function p(q,le){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B=Ae(W);if(!i.has(B)){var ae=K("",W),Oe=ae.parentNode;i.set(B,Oe),Oe.removeChild(ae)}var he=Array.from(i.get(B).children).find(function(O){return O.tagName==="STYLE"&&O[R]===le});if(he){var ce,U;if(((ce=W.csp)===null||ce===void 0?void 0:ce.nonce)&&he.nonce!==((U=W.csp)===null||U===void 0?void 0:U.nonce)){var D;he.nonce=(D=W.csp)===null||D===void 0?void 0:D.nonce}return he.innerHTML!==q&&(he.innerHTML=q),he}var Y=K(q,W);return Y[R]=le,Y}},E9nw:function($e,Ce){$e.exports=function(){var n=document.getSelection();if(!n.rangeCount)return function(){};for(var L=document.activeElement,R=[],Ae=0;Ae0&&(J.percent=J.loaded/J.total*100),C.onProgress(J)});var I=new FormData;C.data&&Object.keys(C.data).forEach(function(A){var J=C.data[A];if(Array.isArray(J)){J.forEach(function(se){I.append(A+"[]",se)});return}I.append(A,C.data[A])}),C.file instanceof Blob?I.append(C.filename,C.file,C.file.name):I.append(C.filename,C.file),b.onerror=function(J){C.onError(J)},b.onload=function(){return b.status<200||b.status>=300?C.onError(i(C,b),p(b)):C.onSuccess(p(b),b)},b.open(C.method,C.action,!0),C.withCredentials&&"withCredentials"in b&&(b.withCredentials=!0);var M=C.headers||{};return M["X-Requested-With"]!==null&&b.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(M).forEach(function(A){M[A]!==null&&b.setRequestHeader(A,M[A])}),b.send(I),{abort:function(){b.abort()}}}var le=+new Date,W=0;function B(){return"rc-upload-"+le+"-"+ ++W}function ae(C,b){return C.indexOf(b,C.length-b.length)!==-1}var Oe=function(C,b){if(C&&b){var I=Array.isArray(b)?b:b.split(","),M=C.name||"",A=C.type||"",J=A.replace(/\/.*$/,"");return I.some(function(se){var ge=se.trim();return ge.charAt(0)==="."?ae(M.toLowerCase(),ge.toLowerCase()):/\/\*$/.test(ge)?J===ge.replace(/\/.*$/,""):A===ge})}return!0};function he(C,b){var I=C.createReader(),M=[];function A(){I.readEntries(function(J){var se=Array.prototype.slice.apply(J);M=M.concat(se);var ge=!se.length;ge?b(M):A()})}A()}var ce=function(b,I,M){var A=function J(se,ge){ge=ge||"",se.isFile?se.file(function(Z){M(Z)&&(se.fullPath&&!Z.webkitRelativePath&&(Object.defineProperties(Z,{webkitRelativePath:{writable:!0}}),Z.webkitRelativePath=se.fullPath.replace(/^\//,""),Object.defineProperties(Z,{webkitRelativePath:{writable:!1}})),I([Z]))}):se.isDirectory&&he(se,function(Z){Z.forEach(function(oe){J(oe,""+ge+se.name+"/")})})};b.forEach(function(J){A(J.webkitGetAsEntry())})},U=ce,D=Object.assign||function(C){for(var b=1;b=0)continue;if(!Object.prototype.hasOwnProperty.call(C,M))continue;I[M]=C[M]}return I}function a(C,b){if(!(C instanceof b))throw new TypeError("Cannot call a class as a function")}function v(C,b){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:C}function s(C,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);C.prototype=Object.create(b&&b.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(C,b):C.__proto__=b)}var z=function(b){return Object.keys(b).reduce(function(I,M){return(M.substr(0,5)==="data-"||M.substr(0,5)==="aria-"||M==="role")&&(I[M]=b[M]),I},{})},H=function(C){s(b,C);function b(){var I,M,A,J;a(this,b);for(var se=arguments.length,ge=Array(se),Z=0;Z1&&arguments[1]!==void 0?arguments[1]:1,De=ye.length,Ke=0;Ke1&&arguments[1]!==void 0?arguments[1]:!1;return Object(z.a)(I).map(function(A,J){if(!i.isValidElement(A)||!A.type)return null;var se=A.type.isSelectOptGroup,ge=A.key,Z=A.props,oe=Z.children,ue=Object(q.a)(Z,["children"]);return M||!se?H(A):Object(s.a)(Object(s.a)({key:"__RC_SELECT_GRP__".concat(ge===null?J:ge,"__"),label:ge},ue),{},{options:x(oe)})}).filter(function(A){return A})}var j=n("2Qr1"),h=n("qNPg"),V=n("U8pU"),$=n("Kwbf"),te=n("WKfj");function Me(I){var M=I.mode,A=I.options,J=I.children,se=I.backfill,ge=I.allowClear,Z=I.placeholder,oe=I.getInputElement,ue=I.showSearch,ee=I.onSearch,G=I.defaultOpen,ne=I.autoFocus,o=I.labelInValue,g=I.value,c=I.inputValue,N=I.optionLabelProp,Q=M==="multiple"||M==="tags",re=ue!==void 0?ue:Q||M==="combobox",je=A||x(J);if(Object($.a)(M!=="tags"||je.every(function(me){return!me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),M==="tags"||M==="combobox"){var fe=je.some(function(me){return me.options?me.options.some(function(ye){return typeof("value"in ye?ye.value:ye.key)=="number"}):typeof("value"in me?me.value:me.key)=="number"});Object($.a)(!fe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object($.a)(M!=="combobox"||!N,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object($.a)(M==="combobox"||!se,"`backfill` only works with `combobox` mode."),Object($.a)(M==="combobox"||!oe,"`getInputElement` only work with `combobox` mode."),Object($.b)(M!=="combobox"||!oe||!ge||!Z,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ee&&!re&&M!=="combobox"&&M!=="tags"&&Object($.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object($.b)(!G||ne,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),g!=null){var xe=Object(te.d)(g);Object($.a)(!o||xe.every(function(me){return Object(V.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($.a)(!Q||Array.isArray(g),"`value` should be array when `mode` is `multiple` or `tags`")}if(J){var _e=null;Object(z.a)(J).some(function(me){if(!i.isValidElement(me)||!me.type)return!1;var ye=me.type;if(ye.isSelectOption)return!1;if(ye.isSelectOptGroup){var Be=Object(z.a)(me.props.children).every(function(Ue){return!i.isValidElement(Ue)||!me.type||Ue.type.isSelectOption?!0:(_e=Ue.type,!1)});return!Be}return _e=ye,!0}),_e&&Object($.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(_e.displayName||_e.name||_e,"`.")),Object($.a)(c===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var ie=Me,k=Object(h.a)({prefixCls:"rc-select",components:{optionList:O},convertChildrenToData:x,flattenOptions:j.d,getLabeledValue:j.e,filterOptions:j.b,isValueDisabled:j.g,findValueOption:j.c,warningProps:ie,fillOptionsWithMissingValue:j.a}),F=function(I){Object(Ae.a)(A,I);var M=Object(K.a)(A);function A(){var J;return Object(L.a)(this,A),J=M.apply(this,arguments),J.selectRef=i.createRef(),J.focus=function(){J.selectRef.current.focus()},J.blur=function(){J.selectRef.current.blur()},J}return Object(R.a)(A,[{key:"render",value:function(){return i.createElement(k,Object.assign({ref:this.selectRef},this.props))}}]),A}(i.Component);F.Option=l,F.OptGroup=v;var C=F,b=Ce.c=C},NvD2:function($e,Ce,n){"use strict";n.d(Ce,"a",function(){return p});var L=n("Kwbf");function R(q,le){var W=new Set;return q.forEach(function(B){le.has(B)||W.add(B)}),W}function Ae(q){var le=q||{},W=le.disabled,B=le.disableCheckbox,ae=le.checkable;return!!(W||B)||ae===!1}function K(q,le,W,B){for(var ae=new Set(q),Oe=new Set,he=0;he<=W;he+=1){var ce=le.get(he)||new Set;ce.forEach(function(O){var y=O.key,l=O.node,a=O.children,v=a===void 0?[]:a;ae.has(y)&&!B(l)&&v.filter(function(s){return!B(s.node)}).forEach(function(s){ae.add(s.key)})})}for(var U=new Set,D=W;D>=0;D-=1){var Y=le.get(D)||new Set;Y.forEach(function(O){var y=O.parent,l=O.node;if(B(l)||!O.parent||U.has(O.parent.key))return;if(B(O.parent.node)){U.add(y.key);return}var a=!0,v=!1;(y.children||[]).filter(function(s){return!B(s.node)}).forEach(function(s){var z=s.key,H=ae.has(z);a&&!H&&(a=!1),!v&&(H||Oe.has(z))&&(v=!0)}),a&&ae.add(y.key),v&&Oe.add(y.key),U.add(y.key)})}return{checkedKeys:Array.from(ae),halfCheckedKeys:Array.from(R(Oe,ae))}}function i(q,le,W,B,ae){for(var Oe=new Set(q),he=new Set(le),ce=0;ce<=B;ce+=1){var U=W.get(ce)||new Set;U.forEach(function(y){var l=y.key,a=y.node,v=y.children,s=v===void 0?[]:v;!Oe.has(l)&&!he.has(l)&&!ae(a)&&s.filter(function(z){return!ae(z.node)}).forEach(function(z){Oe.delete(z.key)})})}he=new Set;for(var D=new Set,Y=B;Y>=0;Y-=1){var O=W.get(Y)||new Set;O.forEach(function(y){var l=y.parent,a=y.node;if(ae(a)||!y.parent||D.has(y.parent.key))return;if(ae(y.parent.node)){D.add(l.key);return}var v=!0,s=!1;(l.children||[]).filter(function(z){return!ae(z.node)}).forEach(function(z){var H=z.key,x=Oe.has(H);v&&!x&&(v=!1),!s&&(x||he.has(H))&&(s=!0)}),v||Oe.delete(l.key),s&&he.add(l.key),D.add(l.key)})}return{checkedKeys:Array.from(Oe),halfCheckedKeys:Array.from(R(he,Oe))}}function p(q,le,W,B){var ae=[],Oe;B?Oe=B:Oe=Ae;var he=new Set(q.filter(function(Y){var O=!!W[Y];return O||ae.push(Y),O})),ce=new Map,U=0;Object.keys(W).forEach(function(Y){var O=W[Y],y=O.level,l=ce.get(y);l||(l=new Set,ce.set(y,l)),l.add(O),U=Math.max(U,y)}),Object(L.a)(!ae.length,"Tree missing follow keys: ".concat(ae.slice(0,100).map(function(Y){return"'".concat(Y,"'")}).join(", ")));var D;return le===!0?D=K(he,ce,U,Oe):D=i(he,le.halfCheckedKeys,ce,U,Oe),D}},OZM5:function($e,Ce,n){"use strict";n.d(Ce,"b",function(){return B}),n.d(Ce,"a",function(){return ae}),n.d(Ce,"k",function(){return Oe}),n.d(Ce,"h",function(){return he}),n.d(Ce,"i",function(){return ce}),n.d(Ce,"g",function(){return U}),n.d(Ce,"c",function(){return D}),n.d(Ce,"d",function(){return Y}),n.d(Ce,"j",function(){return l}),n.d(Ce,"e",function(){return a}),n.d(Ce,"f",function(){return v});var L=n("KQm4"),R=n("U8pU"),Ae=n("Ff2n"),K=n("q1tI"),i=n.n(K),p=n("Kwbf"),q=n("WaYH"),le=.25,W=2;function B(s,z){var H=s.slice(),x=H.indexOf(z);return x>=0&&H.splice(x,1),H}function ae(s,z){var H=s.slice();return H.indexOf(z)===-1&&H.push(z),H}function Oe(s){return s.split("-")}function he(s,z){return"".concat(s,"-").concat(z)}function ce(s){return s&&s.type&&s.type.isTreeNode}function U(s,z){var H=[s],x=z[s];function j(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];h.forEach(function(V){var $=V.key,te=V.children;H.push($),j(te)})}return j(x.children),H}function D(s,z){var H=s.clientY,x=z.selectHandle.getBoundingClientRect(),j=x.top,h=x.bottom,V=x.height,$=Math.max(V*le,W);return H<=j+$?-1:H>=h-$?1:0}function Y(s,z){if(!s)return;var H=z.multiple;return H?s.slice():s.length?[s[0]]:s}var O=function(z){return z};function y(s,z){if(!s)return[];var H=z||{},x=H.processProps,j=x===void 0?O:x,h=Array.isArray(s)?s:[s];return h.map(function(V){var $=V.children,te=Object(Ae.a)(V,["children"]),Me=y($,z);return i.a.createElement(q.a,Object.assign({},j(te)),Me)})}function l(s){if(!s)return null;var z;if(Array.isArray(s))z={checkedKeys:s,halfCheckedKeys:void 0};else if(Object(R.a)(s)==="object")z={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 z}function a(s,z){var H=new Set;function x(j){if(H.has(j))return;var h=z[j];if(!h)return;H.add(j);var V=h.parent,$=h.node;if($.disabled)return;V&&x(V.key)}return(s||[]).forEach(function(j){x(j)}),Object(L.a)(H)}function v(s){var z={};return Object.keys(s).forEach(function(H){(H.startsWith("data-")||H.startsWith("aria-"))&&(z[H]=s[H])}),z}},"SA+Z":function($e,Ce,n){var L=n("wTVA"),R=n("EbDI"),Ae=n("ZhPi"),K=n("wkBT");function i(p){return L(p)||R(p)||Ae(p)||K()}$e.exports=i,$e.exports.__esModule=!0,$e.exports.default=$e.exports},WaYH:function($e,Ce,n){"use strict";var L=n("rePB"),R=n("Ff2n"),Ae=n("VTBJ"),K=n("1OyB"),i=n("vuIU"),p=n("JX7q"),q=n("Ji7U"),le=n("LK+K"),W=n("q1tI"),B=n("TSYQ"),ae=n.n(B),Oe=n("sboe"),he=n("OZM5"),ce=function(z){var H=z.prefixCls,x=z.level,j=z.isStart,h=z.isEnd;if(!x)return null;for(var V="".concat(H,"-indent-unit"),$=[],te=0;te=0||te.relatedTarget.className.indexOf("".concat(F,"-next"))>=0))return;j.setState({goInputText:""}),k(j.getValidValue())},j.go=function(te){var Me=j.state.goInputText;if(Me==="")return;(te.keyCode===ce.ENTER||te.type==="click")&&(j.setState({goInputText:""}),j.props.quickGo(j.getValidValue()))},j}return Object(i.a)(x,[{key:"getValidValue",value:function(){var h=this.state,V=h.goInputText,$=h.current;return!V||isNaN(V)?$:Number(V)}},{key:"getPageSizeOptions",value:function(){var h=this.props,V=h.pageSize,$=h.pageSizeOptions;return $.some(function(te){return te.toString()===V.toString()})?$:$.concat([V.toString()]).sort(function(te,Me){var ie=isNaN(Number(te))?0:Number(te),k=isNaN(Number(Me))?0:Number(Me);return ie-k})}},{key:"render",value:function(){var h=this,V=this.props,$=V.pageSize,te=V.locale,Me=V.rootPrefixCls,ie=V.changeSize,k=V.quickGo,F=V.goButton,C=V.selectComponentClass,b=V.buildOptionText,I=V.selectPrefixCls,M=V.disabled,A=this.state.goInputText,J="".concat(Me,"-options"),se=C,ge=null,Z=null,oe=null;if(!ie&&!k)return null;var ue=this.getPageSizeOptions();if(ie&&se){var ee=ue.map(function(G,ne){return W.a.createElement(se.Option,{key:ne,value:G.toString()},(b||h.buildOptionText)(G))});ge=W.a.createElement(se,{disabled:M,prefixCls:I,showSearch:!1,className:"".concat(J,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:($||ue[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ne){return ne.parentNode}},ee)}return k&&(F&&(oe=typeof F=="boolean"?W.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:M,className:"".concat(J,"-quick-jumper-button")},te.jump_to_confirm):W.a.createElement("span",{onClick:this.go,onKeyUp:this.go},F)),Z=W.a.createElement("div",{className:"".concat(J,"-quick-jumper")},te.jump_to,W.a.createElement("input",{disabled:M,type:"text",value:A,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),te.page,oe)),W.a.createElement("li",{className:"".concat(J)},ge,Z)}}]),x}(W.a.Component);U.defaultProps={pageSizeOptions:["10","20","50","100"]};var w=U,Y=n("N2Kk");function O(){}function y(z){return typeof z=="number"&&isFinite(z)&&Math.floor(z)===z}function l(z,H,x){return x}function a(z,H,x){var j=typeof z=="undefined"?H.pageSize:z;return Math.floor((x.total-1)/j)+1}var v=function(z){Object(p.a)(x,z);var H=Object(q.a)(x);function x(j){var h;Object(K.a)(this,x),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(a(void 0,h.state,h.props),h.state.current+(h.props.showLessItems?3:5))},h.getItemIcon=function(ie,k){var F=h.props.prefixCls,C=ie||W.a.createElement("button",{type:"button","aria-label":k,className:"".concat(F,"-item-link")});return typeof ie=="function"&&(C=W.a.createElement(ie,Object(Ae.a)({},h.props))),C},h.savePaginationNode=function(ie){h.paginationNode=ie},h.isValid=function(ie){return y(ie)&&ie!==h.state.current},h.shouldDisplayQuickJumper=function(){var ie=h.props,k=ie.showQuickJumper,F=ie.pageSize,C=ie.total;return C<=F?!1:k},h.handleKeyDown=function(ie){(ie.keyCode===ce.ARROW_UP||ie.keyCode===ce.ARROW_DOWN)&&ie.preventDefault()},h.handleKeyUp=function(ie){var k=h.getValidValue(ie),F=h.state.currentInputValue;k!==F&&h.setState({currentInputValue:k}),ie.keyCode===ce.ENTER?h.handleChange(k):ie.keyCode===ce.ARROW_UP?h.handleChange(k-1):ie.keyCode===ce.ARROW_DOWN&&h.handleChange(k+1)},h.changePageSize=function(ie){var k=h.state.current,F=a(ie,h.state,h.props);k=k>F?F:k,F===0&&(k=h.state.current),typeof ie=="number"&&("pageSize"in h.props||h.setState({pageSize:ie}),"current"in h.props||h.setState({current:k,currentInputValue:k})),h.props.onShowSizeChange(k,ie),"onChange"in h.props&&h.props.onChange&&h.props.onChange(k,ie)},h.handleChange=function(ie){var k=h.props.disabled,F=ie;if(h.isValid(F)&&!k){var C=a(void 0,h.state,h.props);F>C?F=C:F<1&&(F=1),"current"in h.props||h.setState({current:F,currentInputValue:F});var b=h.state.pageSize;return h.props.onChange(F,b),F}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?F-2:0),b=2;b=$?Me=$:Me=Number(V),Me}},{key:"getShowSizeChanger",value:function(){var h=this.props,V=h.showSizeChanger,$=h.total,te=h.totalBoundaryShowSizeChanger;return typeof V!="undefined"?V:$>te}},{key:"renderPrev",value:function(h){var V=this.props,$=V.prevIcon,te=V.itemRender,Me=te(h,"prev",this.getItemIcon($,"prev page")),ie=!this.hasPrev();return Object(le.isValidElement)(Me)?Object(le.cloneElement)(Me,{disabled:ie}):Me}},{key:"renderNext",value:function(h){var V=this.props,$=V.nextIcon,te=V.itemRender,Me=te(h,"next",this.getItemIcon($,"next page")),ie=!this.hasNext();return Object(le.isValidElement)(Me)?Object(le.cloneElement)(Me,{disabled:ie}):Me}},{key:"render",value:function(){var h=this,V=this.props,$=V.prefixCls,te=V.className,Me=V.style,ie=V.disabled,k=V.hideOnSinglePage,F=V.total,C=V.locale,b=V.showQuickJumper,I=V.showLessItems,M=V.showTitle,A=V.showTotal,J=V.simple,se=V.itemRender,ge=V.showPrevNextJumpers,Z=V.jumpPrevIcon,oe=V.jumpNextIcon,ue=V.selectComponentClass,ee=V.selectPrefixCls,G=V.pageSizeOptions,ne=this.state,o=ne.current,g=ne.pageSize,c=ne.currentInputValue;if(k===!0&&F<=g)return null;var N=a(void 0,this.state,this.props),Q=[],re=null,je=null,fe=null,xe=null,_e=null,me=b&&b.goButton,ye=I?1:2,Be=o-1>0?o-1:0,Ue=o+1=ye*2&&o!==1+2&&(Q[0]=Object(le.cloneElement)(Q[0],{className:"".concat($,"-item-after-jump-prev")}),Q.unshift(re)),N-o>=ye*2&&o!==N-2&&(Q[Q.length-1]=Object(le.cloneElement)(Q[Q.length-1],{className:"".concat($,"-item-before-jump-next")}),Q.push(je)),Ee!==1&&Q.unshift(fe),De!==N&&Q.push(xe)}var Re=null;A&&(Re=W.a.createElement("li",{className:"".concat($,"-total-text")},A(F,[F===0?0:(o-1)*g+1,o*g>F?F:o*g])));var be=!this.hasPrev()||!N,we=!this.hasNext()||!N;return W.a.createElement("ul",Object(L.a)({className:ae()($,te,Object(R.a)({},"".concat($,"-disabled"),ie)),style:Me,unselectable:"unselectable",ref:this.savePaginationNode},Fe),Re,W.a.createElement("li",{title:M?C.prev_page:null,onClick:this.prev,tabIndex:be?null:0,onKeyPress:this.runIfEnterPrev,className:ae()("".concat($,"-prev"),Object(R.a)({},"".concat($,"-disabled"),be)),"aria-disabled":be},this.renderPrev(Be)),Q,W.a.createElement("li",{title:M?C.next_page:null,onClick:this.next,tabIndex:we?null:0,onKeyPress:this.runIfEnterNext,className:ae()("".concat($,"-next"),Object(R.a)({},"".concat($,"-disabled"),we)),"aria-disabled":we},this.renderNext(Ue)),W.a.createElement(w,{disabled:ie,locale:C,rootPrefixCls:$,selectComponentClass:ue,selectPrefixCls:ee,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:o,pageSize:g,pageSizeOptions:G,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:me}))}}],[{key:"getDerivedStateFromProps",value:function(h,V){var $={};if("current"in h&&($.current=h.current,h.current!==V.current&&($.currentInputValue=$.current)),"pageSize"in h&&h.pageSize!==V.pageSize){var te=V.current,Me=a(h.pageSize,V,h);te=te>Me?Me:te,"current"in h||($.current=te,$.currentInputValue=te),$.pageSize=h.pageSize}return $}}]),x}(W.a.Component);v.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:Y.a,style:{},itemRender:l,totalBoundaryShowSizeChanger:50};var s=v},"6RRn":function($e,Ce,n){"use strict";var L=n("wCXF"),R=n("n6Qo");n.d(Ce,"b",function(){return R.a});var Ae=n("IBYe"),K=n("6eGT"),i=n("hW8S");n.d(Ce,"a",function(){return i.a}),Ce.c=L.b},"6eGT":function($e,Ce,n){"use strict";function L(R){return null}Ce.a=L},"815F":function($e,Ce,n){"use strict";n.d(Ce,"e",function(){return q}),n.d(Ce,"c",function(){return W}),n.d(Ce,"d",function(){return B}),n.d(Ce,"a",function(){return Oe}),n.d(Ce,"f",function(){return he}),n.d(Ce,"b",function(){return ce});var L=n("KQm4"),R=n("VTBJ"),Ae=n("Ff2n"),K=n("Zm9Q"),i=n("Kwbf"),p=n("OZM5");function q(U,w){return U!=null?U:w}function le(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=new Map;function Y(O){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(O||[]).forEach(function(l){var a=l.key,v=l.children;Object(i.a)(a!=null,"Tree node must have a certain key: [".concat(y).concat(a,"]"));var s=String(a);Object(i.a)(!w.has(s)||a===null||a===void 0,"Same 'key' exist in the Tree: ".concat(s)),w.set(s,!0),Y(v,"".concat(y).concat(s," > "))})}Y(U)}function W(U){function w(Y){var O=Object(K.a)(Y);return O.map(function(y){if(!Object(p.i)(y))return Object(i.a)(!y,"Tree/TreeNode can only accept TreeNode as children."),null;var l=y.key,a=y.props,v=a.children,s=Object(Ae.a)(a,["children"]),z=Object(R.a)({key:l},s),H=w(v);return H.length&&(z.children=H),z}).filter(function(y){return y})}return w(U)}function B(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Y=new Set(w===!0?[]:w),O=[];function y(l){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return l.map(function(v,s){var z=Object(p.h)(a?a.pos:"0",s),H=q(v.key,z),x=Object(R.a)(Object(R.a)({},v),{},{parent:a,pos:z,children:null,data:v,isStart:[].concat(Object(L.a)(a?a.isStart:[]),[s===0]),isEnd:[].concat(Object(L.a)(a?a.isEnd:[]),[s===l.length-1])});return O.push(x),w===!0||Y.has(H)?x.children=y(v.children||[],x):x.children=[],x})}return y(U),O}function ae(U,w,Y){var O;Y?typeof Y=="string"?O=function(a){return a[Y]}:typeof Y=="function"&&(O=function(a){return Y(a)}):O=function(a,v){return q(a.key,v)};function y(l,a,v){var s=l?l.children:U,z=l?Object(p.h)(v.pos,a):"0";if(l){var H=O(l,z),x={node:l,index:a,pos:z,key:H,parentPos:v.node?v.pos:null,level:v.level+1};w(x)}s&&s.forEach(function(j,h){y(j,h,{node:l,pos:z,level:v?v.level+1:-1})})}y(null)}function Oe(U){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Y=w.initWrapper,O=w.processEntity,y=w.onProcessFinished,l=arguments.length>2?arguments[2]:void 0,a={},v={},s={posEntities:a,keyEntities:v};return Y&&(s=Y(s)||s),ae(U,function(z){var H=z.node,x=z.index,j=z.pos,h=z.key,V=z.parentPos,$=z.level,te={node:H,index:x,key:h,pos:j,level:$},Me=q(h,j);a[j]=te,v[Me]=te,te.parent=a[V],te.parent&&(te.parent.children=te.parent.children||[],te.parent.children.push(te)),O&&O(te,s)},l),y&&y(s),s}function he(U,w){var Y=w.expandedKeys,O=w.selectedKeys,y=w.loadedKeys,l=w.loadingKeys,a=w.checkedKeys,v=w.halfCheckedKeys,s=w.dragOverNodeKey,z=w.dropPosition,H=w.keyEntities,x=H[U],j={eventKey:U,expanded:Y.indexOf(U)!==-1,selected:O.indexOf(U)!==-1,loaded:y.indexOf(U)!==-1,loading:l.indexOf(U)!==-1,checked:a.indexOf(U)!==-1,halfChecked:v.indexOf(U)!==-1,pos:String(x?x.pos:""),dragOver:s===U&&z===0,dragOverGapTop:s===U&&z===-1,dragOverGapBottom:s===U&&z===1};return j}function ce(U){var w=U.data,Y=U.expanded,O=U.selected,y=U.checked,l=U.loaded,a=U.loading,v=U.halfChecked,s=U.dragOver,z=U.dragOverGapTop,H=U.dragOverGapBottom,x=U.pos,j=U.active,h=Object(R.a)(Object(R.a)({},w),{},{expanded:Y,selected:O,checked:y,loaded:l,loading:a,halfChecked:v,dragOver:s,dragOverGapTop:z,dragOverGapBottom:H,pos:x,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`."),U}}),h}},BU3w:function($e,Ce,n){"use strict";n.d(Ce,"a",function(){return p});var L=n("MNnm"),R="rc-util-key";function Ae(q){if(q.attachTo)return q.attachTo;var le=document.querySelector("head");return le||document.body}function K(q){var le,W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(L.a)())return null;var B=document.createElement("style");if((le=W.csp)===null||le===void 0?void 0:le.nonce){var ae;B.nonce=(ae=W.csp)===null||ae===void 0?void 0:ae.nonce}B.innerHTML=q;var Oe=Ae(W),he=Oe.firstChild;return W.prepend&&Oe.prepend?Oe.prepend(B):W.prepend&&he?Oe.insertBefore(B,he):Oe.appendChild(B),B}var i=new Map;function p(q,le){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B=Ae(W);if(!i.has(B)){var ae=K("",W),Oe=ae.parentNode;i.set(B,Oe),Oe.removeChild(ae)}var he=Array.from(i.get(B).children).find(function(O){return O.tagName==="STYLE"&&O[R]===le});if(he){var ce,U;if(((ce=W.csp)===null||ce===void 0?void 0:ce.nonce)&&he.nonce!==((U=W.csp)===null||U===void 0?void 0:U.nonce)){var w;he.nonce=(w=W.csp)===null||w===void 0?void 0:w.nonce}return he.innerHTML!==q&&(he.innerHTML=q),he}var Y=K(q,W);return Y[R]=le,Y}},E9nw:function($e,Ce){$e.exports=function(){var n=document.getSelection();if(!n.rangeCount)return function(){};for(var L=document.activeElement,R=[],Ae=0;Ae0&&(J.percent=J.loaded/J.total*100),C.onProgress(J)});var I=new FormData;C.data&&Object.keys(C.data).forEach(function(A){var J=C.data[A];if(Array.isArray(J)){J.forEach(function(se){I.append(A+"[]",se)});return}I.append(A,C.data[A])}),C.file instanceof Blob?I.append(C.filename,C.file,C.file.name):I.append(C.filename,C.file),b.onerror=function(J){C.onError(J)},b.onload=function(){return b.status<200||b.status>=300?C.onError(i(C,b),p(b)):C.onSuccess(p(b),b)},b.open(C.method,C.action,!0),C.withCredentials&&"withCredentials"in b&&(b.withCredentials=!0);var M=C.headers||{};return M["X-Requested-With"]!==null&&b.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(M).forEach(function(A){M[A]!==null&&b.setRequestHeader(A,M[A])}),b.send(I),{abort:function(){b.abort()}}}var le=+new Date,W=0;function B(){return"rc-upload-"+le+"-"+ ++W}function ae(C,b){return C.indexOf(b,C.length-b.length)!==-1}var Oe=function(C,b){if(C&&b){var I=Array.isArray(b)?b:b.split(","),M=C.name||"",A=C.type||"",J=A.replace(/\/.*$/,"");return I.some(function(se){var ge=se.trim();return ge.charAt(0)==="."?ae(M.toLowerCase(),ge.toLowerCase()):/\/\*$/.test(ge)?J===ge.replace(/\/.*$/,""):A===ge})}return!0};function he(C,b){var I=C.createReader(),M=[];function A(){I.readEntries(function(J){var se=Array.prototype.slice.apply(J);M=M.concat(se);var ge=!se.length;ge?b(M):A()})}A()}var ce=function(b,I,M){var A=function J(se,ge){ge=ge||"",se.isFile?se.file(function(Z){M(Z)&&(se.fullPath&&!Z.webkitRelativePath&&(Object.defineProperties(Z,{webkitRelativePath:{writable:!0}}),Z.webkitRelativePath=se.fullPath.replace(/^\//,""),Object.defineProperties(Z,{webkitRelativePath:{writable:!1}})),I([Z]))}):se.isDirectory&&he(se,function(Z){Z.forEach(function(oe){J(oe,""+ge+se.name+"/")})})};b.forEach(function(J){A(J.webkitGetAsEntry())})},U=ce,w=Object.assign||function(C){for(var b=1;b=0)continue;if(!Object.prototype.hasOwnProperty.call(C,M))continue;I[M]=C[M]}return I}function a(C,b){if(!(C instanceof b))throw new TypeError("Cannot call a class as a function")}function v(C,b){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:C}function s(C,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);C.prototype=Object.create(b&&b.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(C,b):C.__proto__=b)}var z=function(b){return Object.keys(b).reduce(function(I,M){return(M.substr(0,5)==="data-"||M.substr(0,5)==="aria-"||M==="role")&&(I[M]=b[M]),I},{})},H=function(C){s(b,C);function b(){var I,M,A,J;a(this,b);for(var se=arguments.length,ge=Array(se),Z=0;Z1&&arguments[1]!==void 0?arguments[1]:1,we=ye.length,Ke=0;Ke1&&arguments[1]!==void 0?arguments[1]:!1;return Object(z.a)(I).map(function(A,J){if(!i.isValidElement(A)||!A.type)return null;var se=A.type.isSelectOptGroup,ge=A.key,Z=A.props,oe=Z.children,ue=Object(q.a)(Z,["children"]);return M||!se?H(A):Object(s.a)(Object(s.a)({key:"__RC_SELECT_GRP__".concat(ge===null?J:ge,"__"),label:ge},ue),{},{options:x(oe)})}).filter(function(A){return A})}var j=n("2Qr1"),h=n("qNPg"),V=n("U8pU"),$=n("Kwbf"),te=n("WKfj");function Me(I){var M=I.mode,A=I.options,J=I.children,se=I.backfill,ge=I.allowClear,Z=I.placeholder,oe=I.getInputElement,ue=I.showSearch,ee=I.onSearch,G=I.defaultOpen,ne=I.autoFocus,o=I.labelInValue,g=I.value,c=I.inputValue,N=I.optionLabelProp,Q=M==="multiple"||M==="tags",re=ue!==void 0?ue:Q||M==="combobox",je=A||x(J);if(Object($.a)(M!=="tags"||je.every(function(me){return!me.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),M==="tags"||M==="combobox"){var fe=je.some(function(me){return me.options?me.options.some(function(ye){return typeof("value"in ye?ye.value:ye.key)=="number"}):typeof("value"in me?me.value:me.key)=="number"});Object($.a)(!fe,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object($.a)(M!=="combobox"||!N,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object($.a)(M==="combobox"||!se,"`backfill` only works with `combobox` mode."),Object($.a)(M==="combobox"||!oe,"`getInputElement` only work with `combobox` mode."),Object($.b)(M!=="combobox"||!oe||!ge||!Z,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ee&&!re&&M!=="combobox"&&M!=="tags"&&Object($.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object($.b)(!G||ne,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),g!=null){var xe=Object(te.d)(g);Object($.a)(!o||xe.every(function(me){return Object(V.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($.a)(!Q||Array.isArray(g),"`value` should be array when `mode` is `multiple` or `tags`")}if(J){var _e=null;Object(z.a)(J).some(function(me){if(!i.isValidElement(me)||!me.type)return!1;var ye=me.type;if(ye.isSelectOption)return!1;if(ye.isSelectOptGroup){var Be=Object(z.a)(me.props.children).every(function(Ue){return!i.isValidElement(Ue)||!me.type||Ue.type.isSelectOption?!0:(_e=Ue.type,!1)});return!Be}return _e=ye,!0}),_e&&Object($.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(_e.displayName||_e.name||_e,"`.")),Object($.a)(c===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var ie=Me,k=Object(h.a)({prefixCls:"rc-select",components:{optionList:O},convertChildrenToData:x,flattenOptions:j.d,getLabeledValue:j.e,filterOptions:j.b,isValueDisabled:j.g,findValueOption:j.c,warningProps:ie,fillOptionsWithMissingValue:j.a}),F=function(I){Object(Ae.a)(A,I);var M=Object(K.a)(A);function A(){var J;return Object(L.a)(this,A),J=M.apply(this,arguments),J.selectRef=i.createRef(),J.focus=function(){J.selectRef.current.focus()},J.blur=function(){J.selectRef.current.blur()},J}return Object(R.a)(A,[{key:"render",value:function(){return i.createElement(k,Object.assign({ref:this.selectRef},this.props))}}]),A}(i.Component);F.Option=l,F.OptGroup=v;var C=F,b=Ce.c=C},NvD2:function($e,Ce,n){"use strict";n.d(Ce,"a",function(){return p});var L=n("Kwbf");function R(q,le){var W=new Set;return q.forEach(function(B){le.has(B)||W.add(B)}),W}function Ae(q){var le=q||{},W=le.disabled,B=le.disableCheckbox,ae=le.checkable;return!!(W||B)||ae===!1}function K(q,le,W,B){for(var ae=new Set(q),Oe=new Set,he=0;he<=W;he+=1){var ce=le.get(he)||new Set;ce.forEach(function(O){var y=O.key,l=O.node,a=O.children,v=a===void 0?[]:a;ae.has(y)&&!B(l)&&v.filter(function(s){return!B(s.node)}).forEach(function(s){ae.add(s.key)})})}for(var U=new Set,w=W;w>=0;w-=1){var Y=le.get(w)||new Set;Y.forEach(function(O){var y=O.parent,l=O.node;if(B(l)||!O.parent||U.has(O.parent.key))return;if(B(O.parent.node)){U.add(y.key);return}var a=!0,v=!1;(y.children||[]).filter(function(s){return!B(s.node)}).forEach(function(s){var z=s.key,H=ae.has(z);a&&!H&&(a=!1),!v&&(H||Oe.has(z))&&(v=!0)}),a&&ae.add(y.key),v&&Oe.add(y.key),U.add(y.key)})}return{checkedKeys:Array.from(ae),halfCheckedKeys:Array.from(R(Oe,ae))}}function i(q,le,W,B,ae){for(var Oe=new Set(q),he=new Set(le),ce=0;ce<=B;ce+=1){var U=W.get(ce)||new Set;U.forEach(function(y){var l=y.key,a=y.node,v=y.children,s=v===void 0?[]:v;!Oe.has(l)&&!he.has(l)&&!ae(a)&&s.filter(function(z){return!ae(z.node)}).forEach(function(z){Oe.delete(z.key)})})}he=new Set;for(var w=new Set,Y=B;Y>=0;Y-=1){var O=W.get(Y)||new Set;O.forEach(function(y){var l=y.parent,a=y.node;if(ae(a)||!y.parent||w.has(y.parent.key))return;if(ae(y.parent.node)){w.add(l.key);return}var v=!0,s=!1;(l.children||[]).filter(function(z){return!ae(z.node)}).forEach(function(z){var H=z.key,x=Oe.has(H);v&&!x&&(v=!1),!s&&(x||he.has(H))&&(s=!0)}),v||Oe.delete(l.key),s&&he.add(l.key),w.add(l.key)})}return{checkedKeys:Array.from(Oe),halfCheckedKeys:Array.from(R(he,Oe))}}function p(q,le,W,B){var ae=[],Oe;B?Oe=B:Oe=Ae;var he=new Set(q.filter(function(Y){var O=!!W[Y];return O||ae.push(Y),O})),ce=new Map,U=0;Object.keys(W).forEach(function(Y){var O=W[Y],y=O.level,l=ce.get(y);l||(l=new Set,ce.set(y,l)),l.add(O),U=Math.max(U,y)}),Object(L.a)(!ae.length,"Tree missing follow keys: ".concat(ae.slice(0,100).map(function(Y){return"'".concat(Y,"'")}).join(", ")));var w;return le===!0?w=K(he,ce,U,Oe):w=i(he,le.halfCheckedKeys,ce,U,Oe),w}},OZM5:function($e,Ce,n){"use strict";n.d(Ce,"b",function(){return B}),n.d(Ce,"a",function(){return ae}),n.d(Ce,"k",function(){return Oe}),n.d(Ce,"h",function(){return he}),n.d(Ce,"i",function(){return ce}),n.d(Ce,"g",function(){return U}),n.d(Ce,"c",function(){return w}),n.d(Ce,"d",function(){return Y}),n.d(Ce,"j",function(){return l}),n.d(Ce,"e",function(){return a}),n.d(Ce,"f",function(){return v});var L=n("KQm4"),R=n("U8pU"),Ae=n("Ff2n"),K=n("q1tI"),i=n.n(K),p=n("Kwbf"),q=n("WaYH"),le=.25,W=2;function B(s,z){var H=s.slice(),x=H.indexOf(z);return x>=0&&H.splice(x,1),H}function ae(s,z){var H=s.slice();return H.indexOf(z)===-1&&H.push(z),H}function Oe(s){return s.split("-")}function he(s,z){return"".concat(s,"-").concat(z)}function ce(s){return s&&s.type&&s.type.isTreeNode}function U(s,z){var H=[s],x=z[s];function j(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];h.forEach(function(V){var $=V.key,te=V.children;H.push($),j(te)})}return j(x.children),H}function w(s,z){var H=s.clientY,x=z.selectHandle.getBoundingClientRect(),j=x.top,h=x.bottom,V=x.height,$=Math.max(V*le,W);return H<=j+$?-1:H>=h-$?1:0}function Y(s,z){if(!s)return;var H=z.multiple;return H?s.slice():s.length?[s[0]]:s}var O=function(z){return z};function y(s,z){if(!s)return[];var H=z||{},x=H.processProps,j=x===void 0?O:x,h=Array.isArray(s)?s:[s];return h.map(function(V){var $=V.children,te=Object(Ae.a)(V,["children"]),Me=y($,z);return i.a.createElement(q.a,Object.assign({},j(te)),Me)})}function l(s){if(!s)return null;var z;if(Array.isArray(s))z={checkedKeys:s,halfCheckedKeys:void 0};else if(Object(R.a)(s)==="object")z={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 z}function a(s,z){var H=new Set;function x(j){if(H.has(j))return;var h=z[j];if(!h)return;H.add(j);var V=h.parent,$=h.node;if($.disabled)return;V&&x(V.key)}return(s||[]).forEach(function(j){x(j)}),Object(L.a)(H)}function v(s){var z={};return Object.keys(s).forEach(function(H){(H.startsWith("data-")||H.startsWith("aria-"))&&(z[H]=s[H])}),z}},"SA+Z":function($e,Ce,n){var L=n("wTVA"),R=n("EbDI"),Ae=n("ZhPi"),K=n("wkBT");function i(p){return L(p)||R(p)||Ae(p)||K()}$e.exports=i,$e.exports.__esModule=!0,$e.exports.default=$e.exports},WaYH:function($e,Ce,n){"use strict";var L=n("rePB"),R=n("Ff2n"),Ae=n("VTBJ"),K=n("1OyB"),i=n("vuIU"),p=n("JX7q"),q=n("Ji7U"),le=n("LK+K"),W=n("q1tI"),B=n("TSYQ"),ae=n.n(B),Oe=n("sboe"),he=n("OZM5"),ce=function(z){var H=z.prefixCls,x=z.level,j=z.isStart,h=z.isEnd;if(!x)return null;for(var V="".concat(H,"-indent-unit"),$=[],te=0;te1&&arguments[1]!==void 0?arguments[1]:!1,ue=Z.getAttribute("id")||Z.getAttribute("data-reactid")||Z.getAttribute("name");if(oe&&ie[ue])return ie[ue];var ee=window.getComputedStyle(Z),G=ee.getPropertyValue("box-sizing")||ee.getPropertyValue("-moz-box-sizing")||ee.getPropertyValue("-webkit-box-sizing"),ne=parseFloat(ee.getPropertyValue("padding-bottom"))+parseFloat(ee.getPropertyValue("padding-top")),o=parseFloat(ee.getPropertyValue("border-bottom-width"))+parseFloat(ee.getPropertyValue("border-top-width")),g=Me.map(function(N){return"".concat(N,":").concat(ee.getPropertyValue(N))}).join(";"),c={sizingStyle:g,paddingSize:ne,borderSize:o,boxSizing:G};return oe&&ue&&(ie[ue]=c),c}function C(Z){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;k||(k=document.createElement("textarea"),k.setAttribute("tab-index","-1"),k.setAttribute("aria-hidden","true"),document.body.appendChild(k)),Z.getAttribute("wrap")?k.setAttribute("wrap",Z.getAttribute("wrap")):k.removeAttribute("wrap");var G=F(Z,oe),ne=G.paddingSize,o=G.borderSize,g=G.boxSizing,c=G.sizingStyle;k.setAttribute("style","".concat(c,";").concat(te)),k.value=Z.value||Z.placeholder||"";var N=Number.MIN_SAFE_INTEGER,Q=Number.MAX_SAFE_INTEGER,re=k.scrollHeight,je;if(g==="border-box"?re+=o:g==="content-box"&&(re-=ne),ue!==null||ee!==null){k.value=" ";var fe=k.scrollHeight-ne;ue!==null&&(N=fe*ue,g==="border-box"&&(N=N+ne+o),re=Math.max(N,re)),ee!==null&&(Q=fe*ee,g==="border-box"&&(Q=Q+ne+o),je=re>Q?"":"hidden",re=Math.min(Q,re))}return{height:re,minHeight:N,maxHeight:Q,overflowY:je,resize:"none"}}var b=n("Gytx"),I=n.n(b),M;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.RESIZING=1]="RESIZING",Z[Z.RESIZED=2]="RESIZED"})(M||(M={}));var A=function(Z){Object(K.a)(ue,Z);var oe=Object(i.a)(ue);function ue(ee){var G;return Object(R.a)(this,ue),G=oe.call(this,ee),G.nextFrameActionId=void 0,G.resizeFrameId=void 0,G.textArea=void 0,G.saveTextArea=function(ne){G.textArea=ne},G.handleResize=function(ne){var o=G.state.resizeStatus,g=G.props,c=g.autoSize,N=g.onResize;if(o!==M.NONE)return;typeof N=="function"&&N(ne),c&&G.resizeOnNextFrame()},G.resizeOnNextFrame=function(){cancelAnimationFrame(G.nextFrameActionId),G.nextFrameActionId=requestAnimationFrame(G.resizeTextarea)},G.resizeTextarea=function(){var ne=G.props.autoSize;if(!ne||!G.textArea)return;var o=ne.minRows,g=ne.maxRows,c=C(G.textArea,!1,o,g);G.setState({textareaStyles:c,resizeStatus:M.RESIZING},function(){cancelAnimationFrame(G.resizeFrameId),G.resizeFrameId=requestAnimationFrame(function(){G.setState({resizeStatus:M.RESIZED},function(){G.resizeFrameId=requestAnimationFrame(function(){G.setState({resizeStatus:M.NONE}),G.fixFirefoxAutoScroll()})})})})},G.renderTextArea=function(){var ne=G.props,o=ne.prefixCls,g=o===void 0?"rc-textarea":o,c=ne.autoSize,N=ne.onResize,Q=ne.className,re=ne.disabled,je=G.state,fe=je.textareaStyles,xe=je.resizeStatus,_e=Object(h.a)(G.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),me=$()(g,Q,Object(le.a)({},"".concat(g,"-disabled"),re));"value"in _e&&(_e.value=_e.value||"");var ye=Object(q.a)(Object(q.a)(Object(q.a)({},G.props.style),fe),xe===M.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return p.createElement(j,{onResize:G.handleResize,disabled:!(c||N)},p.createElement("textarea",Object(L.a)({},_e,{className:me,style:ye,ref:G.saveTextArea})))},G.state={textareaStyles:{},resizeStatus:M.NONE},G}return Object(Ae.a)(ue,[{key:"componentDidUpdate",value:function(G){(G.value!==this.props.value||!I()(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,ne=this.textArea.selectionEnd;this.textArea.setSelectionRange(G,ne)}}catch(o){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ue}(p.Component),J=A,se=function(Z){Object(K.a)(ue,Z);var oe=Object(i.a)(ue);function ue(ee){var G;Object(R.a)(this,ue),G=oe.call(this,ee),G.resizableTextArea=void 0,G.focus=function(){G.resizableTextArea.textArea.focus()},G.saveTextArea=function(o){G.resizableTextArea=o},G.handleChange=function(o){var g=G.props.onChange;G.setValue(o.target.value,function(){G.resizableTextArea.resizeTextarea()}),g&&g(o)},G.handleKeyDown=function(o){var g=G.props,c=g.onPressEnter,N=g.onKeyDown;o.keyCode===13&&c&&c(o),N&&N(o)};var ne=typeof ee.value=="undefined"||ee.value===null?ee.defaultValue:ee.value;return G.state={value:ne},G}return Object(Ae.a)(ue,[{key:"setValue",value:function(G,ne){"value"in this.props||this.setState({value:G},ne)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return p.createElement(J,Object(L.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}}]),ue}(p.Component),ge=Ce.default=se},Zss7:function($e,Ce,n){var L;(function(R){var Ae=/^\s+/,K=/\s+$/,i=0,p=R.round,q=R.min,le=R.max,W=R.random;function B(o,g){if(o=o||"",g=g||{},o instanceof B)return o;if(!(this instanceof B))return new B(o,g);var c=ae(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=g.format||c.format,this._gradientType=g.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++}B.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(),g,c,N,Q,re,je;return g=o.r/255,c=o.g/255,N=o.b/255,g<=.03928?Q=g/12.92:Q=R.pow((g+.055)/1.055,2.4),c<=.03928?re=c/12.92:re=R.pow((c+.055)/1.055,2.4),N<=.03928?je=N/12.92:je=R.pow((N+.055)/1.055,2.4),.2126*Q+.7152*re+.0722*je},setAlpha:function(o){return this._a=C(o),this._roundA=p(100*this._a)/100,this},toHsv:function(){var o=U(this._r,this._g,this._b);return{h:o.h*360,s:o.s,v:o.v,a:this._a}},toHsvString:function(){var o=U(this._r,this._g,this._b),g=p(o.h*360),c=p(o.s*100),N=p(o.v*100);return this._a==1?"hsv("+g+", "+c+"%, "+N+"%)":"hsva("+g+", "+c+"%, "+N+"%, "+this._roundA+")"},toHsl:function(){var o=he(this._r,this._g,this._b);return{h:o.h*360,s:o.s,l:o.l,a:this._a}},toHslString:function(){var o=he(this._r,this._g,this._b),g=p(o.h*360),c=p(o.s*100),N=p(o.l*100);return this._a==1?"hsl("+g+", "+c+"%, "+N+"%)":"hsla("+g+", "+c+"%, "+N+"%, "+this._roundA+")"},toHex:function(o){return Y(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(b(this._r,255)*100)+"%",g:p(b(this._g,255)*100)+"%",b:p(b(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+p(b(this._r,255)*100)+"%, "+p(b(this._g,255)*100)+"%, "+p(b(this._b,255)*100)+"%)":"rgba("+p(b(this._r,255)*100)+"%, "+p(b(this._g,255)*100)+"%, "+p(b(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:k[Y(this._r,this._g,this._b,!0)]||!1},toFilter:function(o){var g="#"+y(this._r,this._g,this._b,this._a),c=g,N=this._gradientType?"GradientType = 1, ":"";if(o){var Q=B(o);c="#"+y(Q._r,Q._g,Q._b,Q._a)}return"progid:DXImageTransform.Microsoft.gradient("+N+"startColorstr="+g+",endColorstr="+c+")"},toString:function(o){var g=!!o;o=o||this._format;var c=!1,N=this._a<1&&this._a>=0,Q=!g&&N&&(o==="hex"||o==="hex6"||o==="hex3"||o==="hex4"||o==="hex8"||o==="name");return Q?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 B(this.toString())},_applyModification:function(o,g){var c=o.apply(null,[this].concat([].slice.call(g)));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(z,arguments)},darken:function(){return this._applyModification(H,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(a,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(o,g){return o.apply(null,[this].concat([].slice.call(g)))},analogous:function(){return this._applyCombination(te,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(Me,arguments)},splitcomplement:function(){return this._applyCombination($,arguments)},triad:function(){return this._applyCombination(h,arguments)},tetrad:function(){return this._applyCombination(V,arguments)}},B.fromRatio=function(o,g){if(typeof o=="object"){var c={};for(var N in o)o.hasOwnProperty(N)&&(N==="a"?c[N]=o[N]:c[N]=ge(o[N]));o=c}return B(o,g)};function ae(o){var g={r:0,g:0,b:0},c=1,N=null,Q=null,re=null,je=!1,fe=!1;return typeof o=="string"&&(o=G(o)),typeof o=="object"&&(ee(o.r)&&ee(o.g)&&ee(o.b)?(g=Oe(o.r,o.g,o.b),je=!0,fe=String(o.r).substr(-1)==="%"?"prgb":"rgb"):ee(o.h)&&ee(o.s)&&ee(o.v)?(N=ge(o.s),Q=ge(o.v),g=D(o.h,N,Q),je=!0,fe="hsv"):ee(o.h)&&ee(o.s)&&ee(o.l)&&(N=ge(o.s),re=ge(o.l),g=ce(o.h,N,re),je=!0,fe="hsl"),o.hasOwnProperty("a")&&(c=o.a)),c=C(c),{ok:je,format:o.format||fe,r:q(255,le(g.r,0)),g:q(255,le(g.g,0)),b:q(255,le(g.b,0)),a:c}}function Oe(o,g,c){return{r:b(o,255)*255,g:b(g,255)*255,b:b(c,255)*255}}function he(o,g,c){o=b(o,255),g=b(g,255),c=b(c,255);var N=le(o,g,c),Q=q(o,g,c),re,je,fe=(N+Q)/2;if(N==Q)re=je=0;else{var xe=N-Q;je=fe>.5?xe/(2-N-Q):xe/(N+Q);switch(N){case o:re=(g-c)/xe+(g1&&(ye-=1),ye<1/6?_e+(me-_e)*6*ye:ye<1/2?me:ye<2/3?_e+(me-_e)*(2/3-ye)*6:_e}if(g===0)N=Q=re=c;else{var fe=c<.5?c*(1+g):c+g-c*g,xe=2*c-fe;N=je(xe,fe,o+1/3),Q=je(xe,fe,o),re=je(xe,fe,o-1/3)}return{r:N*255,g:Q*255,b:re*255}}function U(o,g,c){o=b(o,255),g=b(g,255),c=b(c,255);var N=le(o,g,c),Q=q(o,g,c),re,je,fe=N,xe=N-Q;if(je=N===0?0:xe/N,N==Q)re=0;else{switch(N){case o:re=(g-c)/xe+(g>1)+720)%360;--g;)N.h=(N.h+Q)%360,re.push(B(N));return re}function Me(o,g){g=g||6;for(var c=B(o).toHsv(),N=c.h,Q=c.s,re=c.v,je=[],fe=1/g;g--;)je.push(B({h:N,s:Q,v:re})),re=(re+fe)%1;return je}B.mix=function(o,g,c){c=c===0?0:c||50;var N=B(o).toRgb(),Q=B(g).toRgb(),re=c/100,je={r:(Q.r-N.r)*re+N.r,g:(Q.g-N.g)*re+N.g,b:(Q.b-N.b)*re+N.b,a:(Q.a-N.a)*re+N.a};return B(je)},B.readability=function(o,g){var c=B(o),N=B(g);return(R.max(c.getLuminance(),N.getLuminance())+.05)/(R.min(c.getLuminance(),N.getLuminance())+.05)},B.isReadable=function(o,g,c){var N=B.readability(o,g),Q,re;re=!1,Q=ne(c);switch(Q.level+Q.size){case"AAsmall":case"AAAlarge":re=N>=4.5;break;case"AAlarge":re=N>=3;break;case"AAAsmall":re=N>=7;break}return re},B.mostReadable=function(o,g,c){var N=null,Q=0,re,je,fe,xe;c=c||{},je=c.includeFallbackColors,fe=c.level,xe=c.size;for(var _e=0;_eQ&&(Q=re,N=B(g[_e]));return B.isReadable(o,N,{level:fe,size:xe})||!je?N:(c.includeFallbackColors=!1,B.mostReadable(o,["#fff","#000"],c))};var ie=B.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"},k=B.hexNames=F(ie);function F(o){var g={};for(var c in o)o.hasOwnProperty(c)&&(g[o[c]]=c);return g}function C(o){return o=parseFloat(o),(isNaN(o)||o<0||o>1)&&(o=1),o}function b(o,g){A(o)&&(o="100%");var c=J(o);return o=q(g,le(0,parseFloat(o))),c&&(o=parseInt(o*g,10)/100),R.abs(o-g)<1e-6?1:o%g/parseFloat(g)}function I(o){return q(1,le(0,o))}function M(o){return parseInt(o,16)}function A(o){return typeof o=="string"&&o.indexOf(".")!=-1&&parseFloat(o)===1}function J(o){return typeof o=="string"&&o.indexOf("%")!=-1}function se(o){return o.length==1?"0"+o:""+o}function ge(o){return o<=1&&(o=o*100+"%"),o}function Z(o){return R.round(parseFloat(o)*255).toString(16)}function oe(o){return M(o)/255}var ue=function(){var o="[-\\+]?\\d+%?",g="[-\\+]?\\d*\\.\\d+%?",c="(?:"+g+")|(?:"+o+")",N="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?",Q="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?";return{CSS_UNIT:new RegExp(c),rgb:new RegExp("rgb"+N),rgba:new RegExp("rgba"+Q),hsl:new RegExp("hsl"+N),hsla:new RegExp("hsla"+Q),hsv:new RegExp("hsv"+N),hsva:new RegExp("hsva"+Q),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(o){return!!ue.CSS_UNIT.exec(o)}function G(o){o=o.replace(Ae,"").replace(K,"").toLowerCase();var g=!1;if(ie[o])o=ie[o],g=!0;else if(o=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var c;return(c=ue.rgb.exec(o))?{r:c[1],g:c[2],b:c[3]}:(c=ue.rgba.exec(o))?{r:c[1],g:c[2],b:c[3],a:c[4]}:(c=ue.hsl.exec(o))?{h:c[1],s:c[2],l:c[3]}:(c=ue.hsla.exec(o))?{h:c[1],s:c[2],l:c[3],a:c[4]}:(c=ue.hsv.exec(o))?{h:c[1],s:c[2],v:c[3]}:(c=ue.hsva.exec(o))?{h:c[1],s:c[2],v:c[3],a:c[4]}:(c=ue.hex8.exec(o))?{r:M(c[1]),g:M(c[2]),b:M(c[3]),a:oe(c[4]),format:g?"name":"hex8"}:(c=ue.hex6.exec(o))?{r:M(c[1]),g:M(c[2]),b:M(c[3]),format:g?"name":"hex"}:(c=ue.hex4.exec(o))?{r:M(c[1]+""+c[1]),g:M(c[2]+""+c[2]),b:M(c[3]+""+c[3]),a:oe(c[4]+""+c[4]),format:g?"name":"hex8"}:(c=ue.hex3.exec(o))?{r:M(c[1]+""+c[1]),g:M(c[2]+""+c[2]),b:M(c[3]+""+c[3]),format:g?"name":"hex"}:!1}function ne(o){var g,c;return o=o||{level:"AA",size:"small"},g=(o.level||"AA").toUpperCase(),c=(o.size||"small").toLowerCase(),g!=="AA"&&g!=="AAA"&&(g="AA"),c!=="small"&&c!=="large"&&(c="small"),{level:g,size:c}}$e.exports?$e.exports=B:!(L=function(){return B}.call(Ce,n,Ce,$e),L!==void 0&&($e.exports=L))})(Math)},aWJQ:function($e,Ce,n){"use strict";n.r(Ce);var L=n("5NDa"),R=n("5rEg"),Ae=n("2qtc"),K=n("kLXV"),i=n("DjyN"),p=n("NUBc"),q=n("k1fw"),le=n("g9YV"),W=n("wCAj"),B=n("/zsF"),ae=n("PArb"),Oe=n("+L6B"),he=n("2/Rp"),ce=n("9og8"),U=n("tJVT"),D=n("DZo9"),Y=n("8z0m"),O=n("Znn+"),y=n("ZTPi"),l=n("tU7J"),a=n("wFql"),v=n("WmNS"),s=n.n(v),z=n("q1tI"),H=n.n(z),x=n("xvlK"),j=n("9kvl"),h=n("ErOA"),V=n("wd/R"),$=n.n(V),te=n("/W/m"),Me=n.n(te),ie=n("ffu0"),k=a.a.Paragraph,F=y.a.TabPane,C=Y.a.Dragger,b=function(M){var A=M.dispatch,J=Object(z.useState)({limit:10,page:1,tab:"public"}),se=Object(U.a)(J,2),ge=se[0],Z=se[1],oe=Object(z.useState)([]),ue=Object(U.a)(oe,2),ee=ue[0],G=ue[1],ne=Object(z.useState)(!1),o=Object(U.a)(ne,2),g=o[0],c=o[1],N=Object(z.useState)(),Q=Object(U.a)(N,2),re=Q[0],je=Q[1],fe=Object(z.useState)(""),xe=Object(U.a)(fe,2),_e=xe[0],me=xe[1];Object(z.useEffect)(function(){ye()},[]);function ye(){return Be.apply(this,arguments)}function Be(){return Be=Object(ce.a)(s.a.mark(function Xe(){var Ne;return s.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,Object(h.a)("/api/sci/projects/data_sets.json",{method:"get",params:ge});case 2:Ne=P.sent,G(Ne);case 4:case"end":return P.stop()}},Xe)})),Be.apply(this,arguments)}function Ue(Xe){return Fe.apply(this,arguments)}function Fe(){return Fe=Object(ce.a)(s.a.mark(function Xe(Ne){var _t,P,ve,Ee,we,Pe,Te;return s.a.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.next=2,Object(h.a)("/api/sci/projects/update_attachment.json",{method:"PUT",body:{md5:(Ne==null||((_t=Ne[0])===null||_t===void 0||((P=_t.item)===null||P===void 0))?void 0:P.md5)||(Ne==null||((ve=Ne[0])===null||ve===void 0)?void 0:ve.md5),filesize:(Ne==null||((Ee=Ne[0])===null||Ee===void 0||((we=Ee.item)===null||we===void 0))?void 0:we.size)||(Ne==null||((Pe=Ne[0])===null||Pe===void 0)?void 0:Pe.size),description:_e}});case 2:Te=be.sent,(Te==null?void 0:Te.status)===0&&(c(!1),ye(),me(""));case 4:case"end":return be.stop()}},Xe)})),Fe.apply(this,arguments)}return H.a.createElement("div",null,H.a.createElement("div",{className:Me.a.header},H.a.createElement("span",{className:Me.a.title},"\u516C\u5F00\u6570\u636E\u96C6\u5217\u8868"),H.a.createElement(he.a,{icon:H.a.createElement(x.a,null),type:"primary",onClick:function(){return c(!0)}},"\u521B\u5EFA\u6570\u636E\u96C6")),H.a.createElement(ae.a,null),H.a.createElement(W.a,{dataSource:ee==null?void 0:ee.data_sets,columns:[{title:"\u6587\u4EF6\u540D",dataIndex:"filename",key:"filename",ellipsis:!0,width:"20%"},{title:"\u5907\u6CE8",dataIndex:"description",key:"description",ellipsis:!0,width:"40%"},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_on",key:"created_on",render:function(Ne){return $()(Ne).format("YYYY-MM-DD HH:mm")}},{title:"\u6700\u540E\u4FEE\u6539\u4EBA",dataIndex:"author",key:"author"},{title:"\u5927\u5C0F",dataIndex:"filesize",key:"filesize"}],pagination:!1}),H.a.createElement(p.a,{style:{textAlign:"center",marginTop:20},current:ge.page,total:ee==null?void 0:ee.data_sets_count,pageSize:10,showSizeChanger:!1,hideOnSinglePage:!0,onChange:function(Ne){ge.page=Ne,Z(Object(q.a)({},ge)),ye()}}),g&&H.a.createElement(K.a,{title:"\u521B\u5EFA\u6570\u636E\u96C6",visible:g,onCancel:function(){if(re<100){K.a.confirm({title:"\u63D0\u793A",content:"\u8FD8\u6709\u6587\u4EF6\u6682\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u53D6\u6D88",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){je(101),c(!1)}});return}me(""),c(!1)},okButtonProps:{loading:re<100},onOk:function(){je(0)}},H.a.createElement("div",{className:Me.a.wrap},H.a.createElement("label",{style:{color:"red"}},"*"),H.a.createElement("span",null,"\u9009\u62E9\u6587\u4EF6")," ",H.a.createElement("span",null,"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100GB)"),H.a.createElement(ie.a,{setmd5List:Ue,uploading:re,setloading:je,showmodal:g}),H.a.createElement("label",null,"\u5907\u6CE8\uFF1A"),H.a.createElement(R.a,{maxLength:100,value:_e,onChange:function(Ne){me(Ne.target.value)},placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"}))))};Ce.default=Object(j.a)(function(I){var M=I.innovation;return{innovation:M}})(b)},aaBP:function($e,Ce,n){(function(L){if(!0)$e.exports=L();else var R})(function(L){"use strict";var R=function(O,y){return O+y&4294967295},Ae=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function K(O,y,l,a,v,s){return y=R(R(y,O),R(a,s)),R(y<>>32-v,l)}function i(O,y){var l=O[0],a=O[1],v=O[2],s=O[3];l+=(a&v|~a&s)+y[0]-680876936|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[1]-389564586|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[2]+606105819|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[3]-1044525330|0,a=(a<<22|a>>>10)+v|0,l+=(a&v|~a&s)+y[4]-176418897|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[5]+1200080426|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[6]-1473231341|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[7]-45705983|0,a=(a<<22|a>>>10)+v|0,l+=(a&v|~a&s)+y[8]+1770035416|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[9]-1958414417|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[10]-42063|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[11]-1990404162|0,a=(a<<22|a>>>10)+v|0,l+=(a&v|~a&s)+y[12]+1804603682|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[13]-40341101|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[14]-1502002290|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[15]+1236535329|0,a=(a<<22|a>>>10)+v|0,l+=(a&s|v&~s)+y[1]-165796510|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[6]-1069501632|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[11]+643717713|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[0]-373897302|0,a=(a<<20|a>>>12)+v|0,l+=(a&s|v&~s)+y[5]-701558691|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[10]+38016083|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[15]-660478335|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[4]-405537848|0,a=(a<<20|a>>>12)+v|0,l+=(a&s|v&~s)+y[9]+568446438|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[14]-1019803690|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[3]-187363961|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[8]+1163531501|0,a=(a<<20|a>>>12)+v|0,l+=(a&s|v&~s)+y[13]-1444681467|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[2]-51403784|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[7]+1735328473|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[12]-1926607734|0,a=(a<<20|a>>>12)+v|0,l+=(a^v^s)+y[5]-378558|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[8]-2022574463|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[11]+1839030562|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[14]-35309556|0,a=(a<<23|a>>>9)+v|0,l+=(a^v^s)+y[1]-1530992060|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[4]+1272893353|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[7]-155497632|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[10]-1094730640|0,a=(a<<23|a>>>9)+v|0,l+=(a^v^s)+y[13]+681279174|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[0]-358537222|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[3]-722521979|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[6]+76029189|0,a=(a<<23|a>>>9)+v|0,l+=(a^v^s)+y[9]-640364487|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[12]-421815835|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[15]+530742520|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[2]-995338651|0,a=(a<<23|a>>>9)+v|0,l+=(v^(a|~s))+y[0]-198630844|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[7]+1126891415|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[14]-1416354905|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[5]-57434055|0,a=(a<<21|a>>>11)+v|0,l+=(v^(a|~s))+y[12]+1700485571|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[3]-1894986606|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[10]-1051523|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[1]-2054922799|0,a=(a<<21|a>>>11)+v|0,l+=(v^(a|~s))+y[8]+1873313359|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[15]-30611744|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[6]-1560198380|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[13]+1309151649|0,a=(a<<21|a>>>11)+v|0,l+=(v^(a|~s))+y[4]-145523070|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[11]-1120210379|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[2]+718787259|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[9]-343485551|0,a=(a<<21|a>>>11)+v|0,O[0]=l+O[0]|0,O[1]=a+O[1]|0,O[2]=v+O[2]|0,O[3]=s+O[3]|0}function p(O){var y=[],l;for(l=0;l<64;l+=4)y[l>>2]=O.charCodeAt(l)+(O.charCodeAt(l+1)<<8)+(O.charCodeAt(l+2)<<16)+(O.charCodeAt(l+3)<<24);return y}function q(O){var y=[],l;for(l=0;l<64;l+=4)y[l>>2]=O[l]+(O[l+1]<<8)+(O[l+2]<<16)+(O[l+3]<<24);return y}function le(O){var y=O.length,l=[1732584193,-271733879,-1732584194,271733878],a,v,s,z,H,x;for(a=64;a<=y;a+=64)i(l,p(O.substring(a-64,a)));for(O=O.substring(a-64),v=O.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=0;a>2]|=O.charCodeAt(a)<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(i(l,s),a=0;a<16;a+=1)s[a]=0;return z=y*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),H=parseInt(z[2],16),x=parseInt(z[1],16)||0,s[14]=H,s[15]=x,i(l,s),l}function W(O){var y=O.length,l=[1732584193,-271733879,-1732584194,271733878],a,v,s,z,H,x;for(a=64;a<=y;a+=64)i(l,q(O.subarray(a-64,a)));for(O=a-64>2]|=O[a]<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(i(l,s),a=0;a<16;a+=1)s[a]=0;return z=y*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),H=parseInt(z[2],16),x=parseInt(z[1],16)||0,s[14]=H,s[15]=x,i(l,s),l}function B(O){var y="",l;for(l=0;l<4;l+=1)y+=Ae[O>>l*8+4&15]+Ae[O>>l*8&15];return y}function ae(O){var y;for(y=0;y>16)+(y>>16)+(l>>16);return a<<16|l&65535}),typeof ArrayBuffer!="undefined"&&!ArrayBuffer.prototype.slice&&function(){function O(y,l){return y=y|0||0,y<0?Math.max(y+l,0):Math.min(y,l)}ArrayBuffer.prototype.slice=function(y,l){var a=this.byteLength,v=O(y,a),s=a,z,H,x,j;return l!==L&&(s=O(l,a)),v>s?new ArrayBuffer(0):(z=s-v,H=new ArrayBuffer(z),x=new Uint8Array(H),j=new Uint8Array(this,v,z),x.set(j),H)}}();function Oe(O){return/[\u0080-\uFFFF]/.test(O)&&(O=unescape(encodeURIComponent(O))),O}function he(O,y){var l=O.length,a=new ArrayBuffer(l),v=new Uint8Array(a),s;for(s=0;s>2]|=y.charCodeAt(a)<<(a%4<<3);return this._finish(v,l),s=ae(this._hash),O&&(s=D(s)),this.reset(),s},Y.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Y.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},Y.prototype.setState=function(O){return this._buff=O.buff,this._length=O.length,this._hash=O.hash,this},Y.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},Y.prototype._finish=function(O,y){var l=y,a,v,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;a=this._length*8,a=a.toString(16).match(/(.*?)(.{0,8})$/),v=parseInt(a[2],16),s=parseInt(a[1],16)||0,O[14]=v,O[15]=s,i(this._hash,O)},Y.hash=function(O,y){return Y.hashBinary(Oe(O),y)},Y.hashBinary=function(O,y){var l=le(O),a=ae(l);return y?D(a):a},Y.ArrayBuffer=function(){this.reset()},Y.ArrayBuffer.prototype.append=function(O){var y=U(this._buff.buffer,O,!0),l=y.length,a;for(this._length+=O.byteLength,a=64;a<=l;a+=64)i(this._hash,q(y.subarray(a-64,a)));return this._buff=a-64>2]|=y[v]<<(v%4<<3);return this._finish(a,l),s=ae(this._hash),O&&(s=D(s)),this.reset(),s},Y.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Y.ArrayBuffer.prototype.getState=function(){var O=Y.prototype.getState.call(this);return O.buff=ce(O.buff),O},Y.ArrayBuffer.prototype.setState=function(O){return O.buff=he(O.buff,!0),Y.prototype.setState.call(this,O)},Y.ArrayBuffer.prototype.destroy=Y.prototype.destroy,Y.ArrayBuffer.prototype._finish=Y.prototype._finish,Y.ArrayBuffer.hash=function(O,y){var l=W(new Uint8Array(O)),a=ae(l);return y?D(a):a},Y})},bT9E:function($e,Ce,n){"use strict";n.d(Ce,"a",function(){return R});var L=n("VTBJ");function R(Ae,K){var i=Object(L.a)({},Ae);return Array.isArray(K)&&K.forEach(function(p){delete i[p]}),i}},biw7:function($e,Ce,n){"use strict";var L=n("q1tI"),R=n.n(L),Ae=L.createContext(null);Ce.a=Ae},ffu0:function($e,Ce,n){"use strict";var L=n("0Owb"),R=n("tJVT"),Ae=n("miYZ"),K=n("tsqr"),i=n("oBTY"),p=n("9og8"),q=n("PpiC"),le=n("DZo9"),W=n("8z0m"),B=n("WmNS"),ae=n.n(B),Oe=n("q1tI"),he=n.n(Oe),ce=n("ErOA"),U=n("9kvl"),D=n("/jad"),Y=n.n(D),O=n("aaBP"),y=n.n(O),l=W.a.Dragger,a=15*1024*1024,v=function(z){var H=z.dispatch,x=z.user,j=z.globalSetting,h=z.setloading,V=z.uploading,$=z.setmd5List,te=z.content,Me=z.shixunHomeworks,ie=Object(q.a)(z,["dispatch","user","globalSetting","setloading","uploading","setmd5List","content","shixunHomeworks"]);Object(Oe.useEffect)(function(){Me.actionTabs.key==="\u5206\u7247\u4E13\u7528504"&&(H({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),fe());function fe(){return xe.apply(this,arguments)}function xe(){return xe=Object(p.a)(ae.a.mark(function _e(){var me,ye;return ae.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Object(ce.a)((j==null||((me=j.setting)===null||me===void 0)?void 0:me.bigfiles_upload)+"/file/filePatchMerge",{method:"post",body:Me.actionTabs.params},!0,!0);case 2:ye=Ue.sent,ye.errorCode==="000000"&&(C[0].file.percent=100,C[0].file.status="success",b(Object(i.a)(C)),h(100),K.b.info("\u4E0A\u4F20\u6210\u529F"),$(ye==null?void 0:ye.data));case 4:case"end":return Ue.stop()}},_e)})),xe.apply(this,arguments)}},[Me.actionTabs.key]);var k=Object(Oe.useState)([]),F=Object(R.a)(k,2),C=F[0],b=F[1],I=Object(Oe.useState)(0),M=Object(R.a)(I,2),A=M[0],J=M[1],se=Object(Oe.useState)(!1),ge=Object(R.a)(se,2),Z=ge[0],oe=ge[1],ue={onRemove:function(xe){b(Object(i.a)(C.filter(function(_e){return _e.name!==xe.name})))},multiple:!0,fileList:C==null?void 0:C.map(function(fe){return fe.file}),customRequest:function(){},beforeUpload:function(){var fe=Object(p.a)(ae.a.mark(function _e(me){var ye;return ae.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(ye=100*1024*1024*1024,!C.filter(function(Fe){return Fe.name===me.name}).length){Ue.next=4;break}return K.b.info("".concat(me.name,"\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")),Ue.abrupt("return");case 4:if(!((me==null?void 0:me.size)>ye)){Ue.next=7;break}return K.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(ye/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),Ue.abrupt("return",!1);case 7:return b([{name:me.name,file:me}]),Ue.abrupt("return",!1);case 9:case"end":return Ue.stop()}},_e)}));function xe(_e){return fe.apply(this,arguments)}return xe}()};Object(Oe.useEffect)(function(){if(V===0){var fe;if(J(0),oe(!1),(C==null?void 0:C.length)<=0){K.b.info("\u6587\u4EF6\u4E0D\u80FD\u4E3A\u7A7A"),h(101);return}ee(C==null||((fe=C[0])===null||fe===void 0)?void 0:fe.file,x.userInfo.login)}},[V]);function ee(fe,xe){return G.apply(this,arguments)}function G(){return G=Object(p.a)(ae.a.mark(function fe(xe,_e){var me,ye,Be,Ue,Fe,Xe,Ne;return ae.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return Xe=g(xe),P.next=3,Object(ce.a)((j==null||((me=j.setting)===null||me===void 0)?void 0:me.bigfiles_upload)+"/file/fileExists",{method:"get",params:{md5:Xe,size:xe.size,dirName:_e}},!1,!0);case 3:if(Ne=P.sent,!((Ne==null||((ye=Ne.data)===null||ye===void 0)?void 0:ye.length)>0&&(Ne==null||((Be=Ne.data)===null||Be===void 0||((Ue=Be[0])===null||Ue===void 0))?void 0:Ue.type)===1)){P.next=11;break}return h(100),C[0].file.percent=100,C[0].file.status="success",b(Object(i.a)(C)),K.b.info("\u4E0A\u4F20\u6210\u529F"),$(Ne==null?void 0:Ne.data),P.abrupt("return");case 11:if(!(Ne.data.length>0&&Ne.data[0].type===0)){P.next=14;break}return c(Ne.data[0].id,xe,_e),P.abrupt("return");case 14:(Ne==null||((Fe=Ne.data)===null||Fe===void 0)?void 0:Fe.length)<=0&&ne(Xe,xe,_e);case 15:case"end":return P.stop()}},fe)})),G.apply(this,arguments)}function ne(fe,xe,_e){return o.apply(this,arguments)}function o(){return o=Object(p.a)(ae.a.mark(function fe(xe,_e,me){var ye,Be,Ue,Fe,Xe;return ae.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,Object(ce.a)((j==null||((ye=j.setting)===null||ye===void 0)?void 0:ye.bigfiles_upload)+"/file/newFile",{method:"post",body:{name:_e.name,md5:xe,size:1,oldName:_e.name,dirName:me}},!1,!0);case 2:Ue=_t.sent,(Ue==null||((Be=Ue.data)===null||Be===void 0)?void 0:Be.length)>0&&c(Ue==null||((Fe=Ue.data)===null||Fe===void 0||((Xe=Fe[0])===null||Xe===void 0))?void 0:Xe.id,_e,me);case 4:case"end":return _t.stop()}},fe)})),o.apply(this,arguments)}function g(fe){var xe=new y.a;if(!fe.size)return xe.appendBinary(fe),xe.end();if(fe.size<2048)for(var _e=Math.ceil(fe.size/2),me=0;me<_e;me++){var ye=me*5,Be=Math.min(fe.size,ye+2);xe.appendBinary(fe.slice(ye,Be))}else if(fe.size<15728640&&fe>2048)for(var _e=Math.ceil(fe.size/2e3),me=0;me<_e;me++){var ye=me*5,Be=Math.min(fe.size,ye+2e3);xe.appendBinary(fe.slice(ye,Be))}else for(var _e=Math.ceil(fe.size/a),me=0;me<_e;me++){var ye=me*a,Be=Math.min(fe.size,ye);xe.appendBinary(fe.slice(ye,Be))}return xe.end()}function c(fe,xe,_e){return N.apply(this,arguments)}function N(){return N=Object(p.a)(ae.a.mark(function fe(xe,_e,me){var ye,Be;return ae.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(xe){Fe.next=2;break}return Fe.abrupt("return");case 2:ye=Math.ceil(_e.size/a),Be=0;case 4:if(!(Bek.length)&&(F=k.length);for(var C=0,b=new Array(F);C=0)continue;if(!Object.prototype.propertyIsEnumerable.call(k,b))continue;C[b]=k[b]}}return C}function U(k,F){if(k==null)return{};var C={},b=Object.keys(k),I,M;for(M=0;M=0)continue;C[I]=k[I]}return C}var D=function(F){var C=F.className,b=F.percent,I=F.prefixCls,M=F.strokeColor,A=F.strokeLinecap,J=F.strokeWidth,se=F.style,ge=F.trailColor,Z=F.trailWidth,oe=F.transition,ue=ce(F,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ue.gapPosition;var ee=Array.isArray(b)?b:[b],G=Array.isArray(M)?M:[M],ne=p(ee),o=le(ne,1),g=o[0],c=J/2,N=100-J/2,Q="M ".concat(A==="round"?c:0,",").concat(c,` - L `).concat(A==="round"?N:100,",").concat(c),re="0 0 100 ".concat(J),je=0;return R.a.createElement("svg",q({className:K()("".concat(I,"-line"),C),viewBox:re,preserveAspectRatio:"none",style:se},ue),R.a.createElement("path",{className:"".concat(I,"-line-trail"),d:Q,strokeLinecap:A,stroke:ge,strokeWidth:Z||J,fillOpacity:"0"}),ee.map(function(fe,xe){var _e={strokeDasharray:"".concat(fe,"px, 100px"),strokeDashoffset:"-".concat(je,"px"),transition:oe||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},me=G[xe]||G[G.length-1];return je+=fe,R.a.createElement("path",{key:xe,className:"".concat(I,"-line-path"),d:Q,strokeLinecap:A,stroke:me,strokeWidth:J,fillOpacity:"0",ref:g[xe],style:_e})}))};D.defaultProps=i;var Y=D;function O(){return O=Object.assign||function(k){for(var F=1;F1&&arguments[1]!==void 0?arguments[1]:!1,ue=Z.getAttribute("id")||Z.getAttribute("data-reactid")||Z.getAttribute("name");if(oe&&ie[ue])return ie[ue];var ee=window.getComputedStyle(Z),G=ee.getPropertyValue("box-sizing")||ee.getPropertyValue("-moz-box-sizing")||ee.getPropertyValue("-webkit-box-sizing"),ne=parseFloat(ee.getPropertyValue("padding-bottom"))+parseFloat(ee.getPropertyValue("padding-top")),o=parseFloat(ee.getPropertyValue("border-bottom-width"))+parseFloat(ee.getPropertyValue("border-top-width")),g=Me.map(function(N){return"".concat(N,":").concat(ee.getPropertyValue(N))}).join(";"),c={sizingStyle:g,paddingSize:ne,borderSize:o,boxSizing:G};return oe&&ue&&(ie[ue]=c),c}function C(Z){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;k||(k=document.createElement("textarea"),k.setAttribute("tab-index","-1"),k.setAttribute("aria-hidden","true"),document.body.appendChild(k)),Z.getAttribute("wrap")?k.setAttribute("wrap",Z.getAttribute("wrap")):k.removeAttribute("wrap");var G=F(Z,oe),ne=G.paddingSize,o=G.borderSize,g=G.boxSizing,c=G.sizingStyle;k.setAttribute("style","".concat(c,";").concat(te)),k.value=Z.value||Z.placeholder||"";var N=Number.MIN_SAFE_INTEGER,Q=Number.MAX_SAFE_INTEGER,re=k.scrollHeight,je;if(g==="border-box"?re+=o:g==="content-box"&&(re-=ne),ue!==null||ee!==null){k.value=" ";var fe=k.scrollHeight-ne;ue!==null&&(N=fe*ue,g==="border-box"&&(N=N+ne+o),re=Math.max(N,re)),ee!==null&&(Q=fe*ee,g==="border-box"&&(Q=Q+ne+o),je=re>Q?"":"hidden",re=Math.min(Q,re))}return{height:re,minHeight:N,maxHeight:Q,overflowY:je,resize:"none"}}var b=n("Gytx"),I=n.n(b),M;(function(Z){Z[Z.NONE=0]="NONE",Z[Z.RESIZING=1]="RESIZING",Z[Z.RESIZED=2]="RESIZED"})(M||(M={}));var A=function(Z){Object(K.a)(ue,Z);var oe=Object(i.a)(ue);function ue(ee){var G;return Object(R.a)(this,ue),G=oe.call(this,ee),G.nextFrameActionId=void 0,G.resizeFrameId=void 0,G.textArea=void 0,G.saveTextArea=function(ne){G.textArea=ne},G.handleResize=function(ne){var o=G.state.resizeStatus,g=G.props,c=g.autoSize,N=g.onResize;if(o!==M.NONE)return;typeof N=="function"&&N(ne),c&&G.resizeOnNextFrame()},G.resizeOnNextFrame=function(){cancelAnimationFrame(G.nextFrameActionId),G.nextFrameActionId=requestAnimationFrame(G.resizeTextarea)},G.resizeTextarea=function(){var ne=G.props.autoSize;if(!ne||!G.textArea)return;var o=ne.minRows,g=ne.maxRows,c=C(G.textArea,!1,o,g);G.setState({textareaStyles:c,resizeStatus:M.RESIZING},function(){cancelAnimationFrame(G.resizeFrameId),G.resizeFrameId=requestAnimationFrame(function(){G.setState({resizeStatus:M.RESIZED},function(){G.resizeFrameId=requestAnimationFrame(function(){G.setState({resizeStatus:M.NONE}),G.fixFirefoxAutoScroll()})})})})},G.renderTextArea=function(){var ne=G.props,o=ne.prefixCls,g=o===void 0?"rc-textarea":o,c=ne.autoSize,N=ne.onResize,Q=ne.className,re=ne.disabled,je=G.state,fe=je.textareaStyles,xe=je.resizeStatus,_e=Object(h.a)(G.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),me=$()(g,Q,Object(le.a)({},"".concat(g,"-disabled"),re));"value"in _e&&(_e.value=_e.value||"");var ye=Object(q.a)(Object(q.a)(Object(q.a)({},G.props.style),fe),xe===M.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return p.createElement(j,{onResize:G.handleResize,disabled:!(c||N)},p.createElement("textarea",Object(L.a)({},_e,{className:me,style:ye,ref:G.saveTextArea})))},G.state={textareaStyles:{},resizeStatus:M.NONE},G}return Object(Ae.a)(ue,[{key:"componentDidUpdate",value:function(G){(G.value!==this.props.value||!I()(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,ne=this.textArea.selectionEnd;this.textArea.setSelectionRange(G,ne)}}catch(o){}}},{key:"render",value:function(){return this.renderTextArea()}}]),ue}(p.Component),J=A,se=function(Z){Object(K.a)(ue,Z);var oe=Object(i.a)(ue);function ue(ee){var G;Object(R.a)(this,ue),G=oe.call(this,ee),G.resizableTextArea=void 0,G.focus=function(){G.resizableTextArea.textArea.focus()},G.saveTextArea=function(o){G.resizableTextArea=o},G.handleChange=function(o){var g=G.props.onChange;G.setValue(o.target.value,function(){G.resizableTextArea.resizeTextarea()}),g&&g(o)},G.handleKeyDown=function(o){var g=G.props,c=g.onPressEnter,N=g.onKeyDown;o.keyCode===13&&c&&c(o),N&&N(o)};var ne=typeof ee.value=="undefined"||ee.value===null?ee.defaultValue:ee.value;return G.state={value:ne},G}return Object(Ae.a)(ue,[{key:"setValue",value:function(G,ne){"value"in this.props||this.setState({value:G},ne)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return p.createElement(J,Object(L.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}}]),ue}(p.Component),ge=Ce.default=se},Zss7:function($e,Ce,n){var L;(function(R){var Ae=/^\s+/,K=/\s+$/,i=0,p=R.round,q=R.min,le=R.max,W=R.random;function B(o,g){if(o=o||"",g=g||{},o instanceof B)return o;if(!(this instanceof B))return new B(o,g);var c=ae(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=g.format||c.format,this._gradientType=g.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++}B.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(),g,c,N,Q,re,je;return g=o.r/255,c=o.g/255,N=o.b/255,g<=.03928?Q=g/12.92:Q=R.pow((g+.055)/1.055,2.4),c<=.03928?re=c/12.92:re=R.pow((c+.055)/1.055,2.4),N<=.03928?je=N/12.92:je=R.pow((N+.055)/1.055,2.4),.2126*Q+.7152*re+.0722*je},setAlpha:function(o){return this._a=C(o),this._roundA=p(100*this._a)/100,this},toHsv:function(){var o=U(this._r,this._g,this._b);return{h:o.h*360,s:o.s,v:o.v,a:this._a}},toHsvString:function(){var o=U(this._r,this._g,this._b),g=p(o.h*360),c=p(o.s*100),N=p(o.v*100);return this._a==1?"hsv("+g+", "+c+"%, "+N+"%)":"hsva("+g+", "+c+"%, "+N+"%, "+this._roundA+")"},toHsl:function(){var o=he(this._r,this._g,this._b);return{h:o.h*360,s:o.s,l:o.l,a:this._a}},toHslString:function(){var o=he(this._r,this._g,this._b),g=p(o.h*360),c=p(o.s*100),N=p(o.l*100);return this._a==1?"hsl("+g+", "+c+"%, "+N+"%)":"hsla("+g+", "+c+"%, "+N+"%, "+this._roundA+")"},toHex:function(o){return Y(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(b(this._r,255)*100)+"%",g:p(b(this._g,255)*100)+"%",b:p(b(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+p(b(this._r,255)*100)+"%, "+p(b(this._g,255)*100)+"%, "+p(b(this._b,255)*100)+"%)":"rgba("+p(b(this._r,255)*100)+"%, "+p(b(this._g,255)*100)+"%, "+p(b(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:k[Y(this._r,this._g,this._b,!0)]||!1},toFilter:function(o){var g="#"+y(this._r,this._g,this._b,this._a),c=g,N=this._gradientType?"GradientType = 1, ":"";if(o){var Q=B(o);c="#"+y(Q._r,Q._g,Q._b,Q._a)}return"progid:DXImageTransform.Microsoft.gradient("+N+"startColorstr="+g+",endColorstr="+c+")"},toString:function(o){var g=!!o;o=o||this._format;var c=!1,N=this._a<1&&this._a>=0,Q=!g&&N&&(o==="hex"||o==="hex6"||o==="hex3"||o==="hex4"||o==="hex8"||o==="name");return Q?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 B(this.toString())},_applyModification:function(o,g){var c=o.apply(null,[this].concat([].slice.call(g)));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(z,arguments)},darken:function(){return this._applyModification(H,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(a,arguments)},greyscale:function(){return this._applyModification(v,arguments)},spin:function(){return this._applyModification(x,arguments)},_applyCombination:function(o,g){return o.apply(null,[this].concat([].slice.call(g)))},analogous:function(){return this._applyCombination(te,arguments)},complement:function(){return this._applyCombination(j,arguments)},monochromatic:function(){return this._applyCombination(Me,arguments)},splitcomplement:function(){return this._applyCombination($,arguments)},triad:function(){return this._applyCombination(h,arguments)},tetrad:function(){return this._applyCombination(V,arguments)}},B.fromRatio=function(o,g){if(typeof o=="object"){var c={};for(var N in o)o.hasOwnProperty(N)&&(N==="a"?c[N]=o[N]:c[N]=ge(o[N]));o=c}return B(o,g)};function ae(o){var g={r:0,g:0,b:0},c=1,N=null,Q=null,re=null,je=!1,fe=!1;return typeof o=="string"&&(o=G(o)),typeof o=="object"&&(ee(o.r)&&ee(o.g)&&ee(o.b)?(g=Oe(o.r,o.g,o.b),je=!0,fe=String(o.r).substr(-1)==="%"?"prgb":"rgb"):ee(o.h)&&ee(o.s)&&ee(o.v)?(N=ge(o.s),Q=ge(o.v),g=w(o.h,N,Q),je=!0,fe="hsv"):ee(o.h)&&ee(o.s)&&ee(o.l)&&(N=ge(o.s),re=ge(o.l),g=ce(o.h,N,re),je=!0,fe="hsl"),o.hasOwnProperty("a")&&(c=o.a)),c=C(c),{ok:je,format:o.format||fe,r:q(255,le(g.r,0)),g:q(255,le(g.g,0)),b:q(255,le(g.b,0)),a:c}}function Oe(o,g,c){return{r:b(o,255)*255,g:b(g,255)*255,b:b(c,255)*255}}function he(o,g,c){o=b(o,255),g=b(g,255),c=b(c,255);var N=le(o,g,c),Q=q(o,g,c),re,je,fe=(N+Q)/2;if(N==Q)re=je=0;else{var xe=N-Q;je=fe>.5?xe/(2-N-Q):xe/(N+Q);switch(N){case o:re=(g-c)/xe+(g1&&(ye-=1),ye<1/6?_e+(me-_e)*6*ye:ye<1/2?me:ye<2/3?_e+(me-_e)*(2/3-ye)*6:_e}if(g===0)N=Q=re=c;else{var fe=c<.5?c*(1+g):c+g-c*g,xe=2*c-fe;N=je(xe,fe,o+1/3),Q=je(xe,fe,o),re=je(xe,fe,o-1/3)}return{r:N*255,g:Q*255,b:re*255}}function U(o,g,c){o=b(o,255),g=b(g,255),c=b(c,255);var N=le(o,g,c),Q=q(o,g,c),re,je,fe=N,xe=N-Q;if(je=N===0?0:xe/N,N==Q)re=0;else{switch(N){case o:re=(g-c)/xe+(g>1)+720)%360;--g;)N.h=(N.h+Q)%360,re.push(B(N));return re}function Me(o,g){g=g||6;for(var c=B(o).toHsv(),N=c.h,Q=c.s,re=c.v,je=[],fe=1/g;g--;)je.push(B({h:N,s:Q,v:re})),re=(re+fe)%1;return je}B.mix=function(o,g,c){c=c===0?0:c||50;var N=B(o).toRgb(),Q=B(g).toRgb(),re=c/100,je={r:(Q.r-N.r)*re+N.r,g:(Q.g-N.g)*re+N.g,b:(Q.b-N.b)*re+N.b,a:(Q.a-N.a)*re+N.a};return B(je)},B.readability=function(o,g){var c=B(o),N=B(g);return(R.max(c.getLuminance(),N.getLuminance())+.05)/(R.min(c.getLuminance(),N.getLuminance())+.05)},B.isReadable=function(o,g,c){var N=B.readability(o,g),Q,re;re=!1,Q=ne(c);switch(Q.level+Q.size){case"AAsmall":case"AAAlarge":re=N>=4.5;break;case"AAlarge":re=N>=3;break;case"AAAsmall":re=N>=7;break}return re},B.mostReadable=function(o,g,c){var N=null,Q=0,re,je,fe,xe;c=c||{},je=c.includeFallbackColors,fe=c.level,xe=c.size;for(var _e=0;_eQ&&(Q=re,N=B(g[_e]));return B.isReadable(o,N,{level:fe,size:xe})||!je?N:(c.includeFallbackColors=!1,B.mostReadable(o,["#fff","#000"],c))};var ie=B.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"},k=B.hexNames=F(ie);function F(o){var g={};for(var c in o)o.hasOwnProperty(c)&&(g[o[c]]=c);return g}function C(o){return o=parseFloat(o),(isNaN(o)||o<0||o>1)&&(o=1),o}function b(o,g){A(o)&&(o="100%");var c=J(o);return o=q(g,le(0,parseFloat(o))),c&&(o=parseInt(o*g,10)/100),R.abs(o-g)<1e-6?1:o%g/parseFloat(g)}function I(o){return q(1,le(0,o))}function M(o){return parseInt(o,16)}function A(o){return typeof o=="string"&&o.indexOf(".")!=-1&&parseFloat(o)===1}function J(o){return typeof o=="string"&&o.indexOf("%")!=-1}function se(o){return o.length==1?"0"+o:""+o}function ge(o){return o<=1&&(o=o*100+"%"),o}function Z(o){return R.round(parseFloat(o)*255).toString(16)}function oe(o){return M(o)/255}var ue=function(){var o="[-\\+]?\\d+%?",g="[-\\+]?\\d*\\.\\d+%?",c="(?:"+g+")|(?:"+o+")",N="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?",Q="[\\s|\\(]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")[,|\\s]+("+c+")\\s*\\)?";return{CSS_UNIT:new RegExp(c),rgb:new RegExp("rgb"+N),rgba:new RegExp("rgba"+Q),hsl:new RegExp("hsl"+N),hsla:new RegExp("hsla"+Q),hsv:new RegExp("hsv"+N),hsva:new RegExp("hsva"+Q),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(o){return!!ue.CSS_UNIT.exec(o)}function G(o){o=o.replace(Ae,"").replace(K,"").toLowerCase();var g=!1;if(ie[o])o=ie[o],g=!0;else if(o=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var c;return(c=ue.rgb.exec(o))?{r:c[1],g:c[2],b:c[3]}:(c=ue.rgba.exec(o))?{r:c[1],g:c[2],b:c[3],a:c[4]}:(c=ue.hsl.exec(o))?{h:c[1],s:c[2],l:c[3]}:(c=ue.hsla.exec(o))?{h:c[1],s:c[2],l:c[3],a:c[4]}:(c=ue.hsv.exec(o))?{h:c[1],s:c[2],v:c[3]}:(c=ue.hsva.exec(o))?{h:c[1],s:c[2],v:c[3],a:c[4]}:(c=ue.hex8.exec(o))?{r:M(c[1]),g:M(c[2]),b:M(c[3]),a:oe(c[4]),format:g?"name":"hex8"}:(c=ue.hex6.exec(o))?{r:M(c[1]),g:M(c[2]),b:M(c[3]),format:g?"name":"hex"}:(c=ue.hex4.exec(o))?{r:M(c[1]+""+c[1]),g:M(c[2]+""+c[2]),b:M(c[3]+""+c[3]),a:oe(c[4]+""+c[4]),format:g?"name":"hex8"}:(c=ue.hex3.exec(o))?{r:M(c[1]+""+c[1]),g:M(c[2]+""+c[2]),b:M(c[3]+""+c[3]),format:g?"name":"hex"}:!1}function ne(o){var g,c;return o=o||{level:"AA",size:"small"},g=(o.level||"AA").toUpperCase(),c=(o.size||"small").toLowerCase(),g!=="AA"&&g!=="AAA"&&(g="AA"),c!=="small"&&c!=="large"&&(c="small"),{level:g,size:c}}$e.exports?$e.exports=B:!(L=function(){return B}.call(Ce,n,Ce,$e),L!==void 0&&($e.exports=L))})(Math)},aWJQ:function($e,Ce,n){"use strict";n.r(Ce);var L=n("5NDa"),R=n("5rEg"),Ae=n("2qtc"),K=n("kLXV"),i=n("DjyN"),p=n("NUBc"),q=n("k1fw"),le=n("g9YV"),W=n("wCAj"),B=n("/zsF"),ae=n("PArb"),Oe=n("+L6B"),he=n("2/Rp"),ce=n("9og8"),U=n("tJVT"),w=n("DZo9"),Y=n("8z0m"),O=n("Znn+"),y=n("ZTPi"),l=n("tU7J"),a=n("wFql"),v=n("WmNS"),s=n.n(v),z=n("q1tI"),H=n.n(z),x=n("xvlK"),j=n("9kvl"),h=n("ErOA"),V=n("wd/R"),$=n.n(V),te=n("/W/m"),Me=n.n(te),ie=n("ffu0"),k=a.a.Paragraph,F=y.a.TabPane,C=Y.a.Dragger,b=function(M){var A=M.dispatch,J=Object(z.useState)({limit:10,page:1,tab:"public"}),se=Object(U.a)(J,2),ge=se[0],Z=se[1],oe=Object(z.useState)([]),ue=Object(U.a)(oe,2),ee=ue[0],G=ue[1],ne=Object(z.useState)(!1),o=Object(U.a)(ne,2),g=o[0],c=o[1],N=Object(z.useState)(),Q=Object(U.a)(N,2),re=Q[0],je=Q[1],fe=Object(z.useState)(""),xe=Object(U.a)(fe,2),_e=xe[0],me=xe[1];Object(z.useEffect)(function(){ye()},[]);function ye(){return Be.apply(this,arguments)}function Be(){return Be=Object(ce.a)(s.a.mark(function Xe(){var Ne;return s.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,Object(h.a)("/api/sci/projects/data_sets.json",{method:"get",params:ge});case 2:Ne=P.sent,G(Ne);case 4:case"end":return P.stop()}},Xe)})),Be.apply(this,arguments)}function Ue(Xe){return Fe.apply(this,arguments)}function Fe(){return Fe=Object(ce.a)(s.a.mark(function Xe(Ne){var _t,P,ve,Ee,De,Pe,Te;return s.a.wrap(function(be){for(;;)switch(be.prev=be.next){case 0:return be.next=2,Object(h.a)("/api/sci/projects/update_attachment.json",{method:"PUT",body:{md5:(Ne==null||((_t=Ne[0])===null||_t===void 0||((P=_t.item)===null||P===void 0))?void 0:P.md5)||(Ne==null||((ve=Ne[0])===null||ve===void 0)?void 0:ve.md5),filesize:(Ne==null||((Ee=Ne[0])===null||Ee===void 0||((De=Ee.item)===null||De===void 0))?void 0:De.size)||(Ne==null||((Pe=Ne[0])===null||Pe===void 0)?void 0:Pe.size),description:_e}});case 2:Te=be.sent,(Te==null?void 0:Te.status)===0&&(c(!1),ye(),me(""));case 4:case"end":return be.stop()}},Xe)})),Fe.apply(this,arguments)}return H.a.createElement("div",null,H.a.createElement("div",{className:Me.a.header},H.a.createElement("span",{className:Me.a.title},"\u516C\u5F00\u6570\u636E\u96C6\u5217\u8868"),H.a.createElement(he.a,{icon:H.a.createElement(x.a,null),type:"primary",onClick:function(){return c(!0)}},"\u521B\u5EFA\u6570\u636E\u96C6")),H.a.createElement(ae.a,null),H.a.createElement(W.a,{dataSource:ee==null?void 0:ee.data_sets,columns:[{title:"\u6587\u4EF6\u540D",dataIndex:"filename",key:"filename",ellipsis:!0,width:"20%"},{title:"\u5907\u6CE8",dataIndex:"description",key:"description",ellipsis:!0,width:"40%"},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"created_on",key:"created_on",render:function(Ne){return $()(Ne).format("YYYY-MM-DD HH:mm")}},{title:"\u6700\u540E\u4FEE\u6539\u4EBA",dataIndex:"author",key:"author"},{title:"\u5927\u5C0F",dataIndex:"filesize",key:"filesize"}],pagination:!1}),H.a.createElement(p.a,{style:{textAlign:"center",marginTop:20},current:ge.page,total:ee==null?void 0:ee.data_sets_count,pageSize:10,showSizeChanger:!1,hideOnSinglePage:!0,onChange:function(Ne){ge.page=Ne,Z(Object(q.a)({},ge)),ye()}}),g&&H.a.createElement(K.a,{title:"\u521B\u5EFA\u6570\u636E\u96C6",visible:g,onCancel:function(){if(re<100){K.a.confirm({title:"\u63D0\u793A",content:"\u8FD8\u6709\u6587\u4EF6\u6682\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u53D6\u6D88",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){je(101),c(!1)}});return}me(""),c(!1)},okButtonProps:{loading:re<100},onOk:function(){je(0)}},H.a.createElement("div",{className:Me.a.wrap},H.a.createElement("label",{style:{color:"red"}},"*"),H.a.createElement("span",null,"\u9009\u62E9\u6587\u4EF6")," ",H.a.createElement("span",null,"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100GB)"),H.a.createElement(ie.a,{setmd5List:Ue,uploading:re,setloading:je,showmodal:g}),H.a.createElement("label",null,"\u5907\u6CE8\uFF1A"),H.a.createElement(R.a,{maxLength:100,value:_e,onChange:function(Ne){me(Ne.target.value)},placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"}))))};Ce.default=Object(j.a)(function(I){var M=I.innovation;return{innovation:M}})(b)},aaBP:function($e,Ce,n){(function(L){if(!0)$e.exports=L();else var R})(function(L){"use strict";var R=function(O,y){return O+y&4294967295},Ae=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function K(O,y,l,a,v,s){return y=R(R(y,O),R(a,s)),R(y<>>32-v,l)}function i(O,y){var l=O[0],a=O[1],v=O[2],s=O[3];l+=(a&v|~a&s)+y[0]-680876936|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[1]-389564586|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[2]+606105819|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[3]-1044525330|0,a=(a<<22|a>>>10)+v|0,l+=(a&v|~a&s)+y[4]-176418897|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[5]+1200080426|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[6]-1473231341|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[7]-45705983|0,a=(a<<22|a>>>10)+v|0,l+=(a&v|~a&s)+y[8]+1770035416|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[9]-1958414417|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[10]-42063|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[11]-1990404162|0,a=(a<<22|a>>>10)+v|0,l+=(a&v|~a&s)+y[12]+1804603682|0,l=(l<<7|l>>>25)+a|0,s+=(l&a|~l&v)+y[13]-40341101|0,s=(s<<12|s>>>20)+l|0,v+=(s&l|~s&a)+y[14]-1502002290|0,v=(v<<17|v>>>15)+s|0,a+=(v&s|~v&l)+y[15]+1236535329|0,a=(a<<22|a>>>10)+v|0,l+=(a&s|v&~s)+y[1]-165796510|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[6]-1069501632|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[11]+643717713|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[0]-373897302|0,a=(a<<20|a>>>12)+v|0,l+=(a&s|v&~s)+y[5]-701558691|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[10]+38016083|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[15]-660478335|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[4]-405537848|0,a=(a<<20|a>>>12)+v|0,l+=(a&s|v&~s)+y[9]+568446438|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[14]-1019803690|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[3]-187363961|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[8]+1163531501|0,a=(a<<20|a>>>12)+v|0,l+=(a&s|v&~s)+y[13]-1444681467|0,l=(l<<5|l>>>27)+a|0,s+=(l&v|a&~v)+y[2]-51403784|0,s=(s<<9|s>>>23)+l|0,v+=(s&a|l&~a)+y[7]+1735328473|0,v=(v<<14|v>>>18)+s|0,a+=(v&l|s&~l)+y[12]-1926607734|0,a=(a<<20|a>>>12)+v|0,l+=(a^v^s)+y[5]-378558|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[8]-2022574463|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[11]+1839030562|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[14]-35309556|0,a=(a<<23|a>>>9)+v|0,l+=(a^v^s)+y[1]-1530992060|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[4]+1272893353|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[7]-155497632|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[10]-1094730640|0,a=(a<<23|a>>>9)+v|0,l+=(a^v^s)+y[13]+681279174|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[0]-358537222|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[3]-722521979|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[6]+76029189|0,a=(a<<23|a>>>9)+v|0,l+=(a^v^s)+y[9]-640364487|0,l=(l<<4|l>>>28)+a|0,s+=(l^a^v)+y[12]-421815835|0,s=(s<<11|s>>>21)+l|0,v+=(s^l^a)+y[15]+530742520|0,v=(v<<16|v>>>16)+s|0,a+=(v^s^l)+y[2]-995338651|0,a=(a<<23|a>>>9)+v|0,l+=(v^(a|~s))+y[0]-198630844|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[7]+1126891415|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[14]-1416354905|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[5]-57434055|0,a=(a<<21|a>>>11)+v|0,l+=(v^(a|~s))+y[12]+1700485571|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[3]-1894986606|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[10]-1051523|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[1]-2054922799|0,a=(a<<21|a>>>11)+v|0,l+=(v^(a|~s))+y[8]+1873313359|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[15]-30611744|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[6]-1560198380|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[13]+1309151649|0,a=(a<<21|a>>>11)+v|0,l+=(v^(a|~s))+y[4]-145523070|0,l=(l<<6|l>>>26)+a|0,s+=(a^(l|~v))+y[11]-1120210379|0,s=(s<<10|s>>>22)+l|0,v+=(l^(s|~a))+y[2]+718787259|0,v=(v<<15|v>>>17)+s|0,a+=(s^(v|~l))+y[9]-343485551|0,a=(a<<21|a>>>11)+v|0,O[0]=l+O[0]|0,O[1]=a+O[1]|0,O[2]=v+O[2]|0,O[3]=s+O[3]|0}function p(O){var y=[],l;for(l=0;l<64;l+=4)y[l>>2]=O.charCodeAt(l)+(O.charCodeAt(l+1)<<8)+(O.charCodeAt(l+2)<<16)+(O.charCodeAt(l+3)<<24);return y}function q(O){var y=[],l;for(l=0;l<64;l+=4)y[l>>2]=O[l]+(O[l+1]<<8)+(O[l+2]<<16)+(O[l+3]<<24);return y}function le(O){var y=O.length,l=[1732584193,-271733879,-1732584194,271733878],a,v,s,z,H,x;for(a=64;a<=y;a+=64)i(l,p(O.substring(a-64,a)));for(O=O.substring(a-64),v=O.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],a=0;a>2]|=O.charCodeAt(a)<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(i(l,s),a=0;a<16;a+=1)s[a]=0;return z=y*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),H=parseInt(z[2],16),x=parseInt(z[1],16)||0,s[14]=H,s[15]=x,i(l,s),l}function W(O){var y=O.length,l=[1732584193,-271733879,-1732584194,271733878],a,v,s,z,H,x;for(a=64;a<=y;a+=64)i(l,q(O.subarray(a-64,a)));for(O=a-64>2]|=O[a]<<(a%4<<3);if(s[a>>2]|=128<<(a%4<<3),a>55)for(i(l,s),a=0;a<16;a+=1)s[a]=0;return z=y*8,z=z.toString(16).match(/(.*?)(.{0,8})$/),H=parseInt(z[2],16),x=parseInt(z[1],16)||0,s[14]=H,s[15]=x,i(l,s),l}function B(O){var y="",l;for(l=0;l<4;l+=1)y+=Ae[O>>l*8+4&15]+Ae[O>>l*8&15];return y}function ae(O){var y;for(y=0;y>16)+(y>>16)+(l>>16);return a<<16|l&65535}),typeof ArrayBuffer!="undefined"&&!ArrayBuffer.prototype.slice&&function(){function O(y,l){return y=y|0||0,y<0?Math.max(y+l,0):Math.min(y,l)}ArrayBuffer.prototype.slice=function(y,l){var a=this.byteLength,v=O(y,a),s=a,z,H,x,j;return l!==L&&(s=O(l,a)),v>s?new ArrayBuffer(0):(z=s-v,H=new ArrayBuffer(z),x=new Uint8Array(H),j=new Uint8Array(this,v,z),x.set(j),H)}}();function Oe(O){return/[\u0080-\uFFFF]/.test(O)&&(O=unescape(encodeURIComponent(O))),O}function he(O,y){var l=O.length,a=new ArrayBuffer(l),v=new Uint8Array(a),s;for(s=0;s>2]|=y.charCodeAt(a)<<(a%4<<3);return this._finish(v,l),s=ae(this._hash),O&&(s=w(s)),this.reset(),s},Y.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Y.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},Y.prototype.setState=function(O){return this._buff=O.buff,this._length=O.length,this._hash=O.hash,this},Y.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},Y.prototype._finish=function(O,y){var l=y,a,v,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;a=this._length*8,a=a.toString(16).match(/(.*?)(.{0,8})$/),v=parseInt(a[2],16),s=parseInt(a[1],16)||0,O[14]=v,O[15]=s,i(this._hash,O)},Y.hash=function(O,y){return Y.hashBinary(Oe(O),y)},Y.hashBinary=function(O,y){var l=le(O),a=ae(l);return y?w(a):a},Y.ArrayBuffer=function(){this.reset()},Y.ArrayBuffer.prototype.append=function(O){var y=U(this._buff.buffer,O,!0),l=y.length,a;for(this._length+=O.byteLength,a=64;a<=l;a+=64)i(this._hash,q(y.subarray(a-64,a)));return this._buff=a-64>2]|=y[v]<<(v%4<<3);return this._finish(a,l),s=ae(this._hash),O&&(s=w(s)),this.reset(),s},Y.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},Y.ArrayBuffer.prototype.getState=function(){var O=Y.prototype.getState.call(this);return O.buff=ce(O.buff),O},Y.ArrayBuffer.prototype.setState=function(O){return O.buff=he(O.buff,!0),Y.prototype.setState.call(this,O)},Y.ArrayBuffer.prototype.destroy=Y.prototype.destroy,Y.ArrayBuffer.prototype._finish=Y.prototype._finish,Y.ArrayBuffer.hash=function(O,y){var l=W(new Uint8Array(O)),a=ae(l);return y?w(a):a},Y})},bT9E:function($e,Ce,n){"use strict";n.d(Ce,"a",function(){return R});var L=n("VTBJ");function R(Ae,K){var i=Object(L.a)({},Ae);return Array.isArray(K)&&K.forEach(function(p){delete i[p]}),i}},biw7:function($e,Ce,n){"use strict";var L=n("q1tI"),R=n.n(L),Ae=L.createContext(null);Ce.a=Ae},ffu0:function($e,Ce,n){"use strict";var L=n("0Owb"),R=n("tJVT"),Ae=n("miYZ"),K=n("tsqr"),i=n("oBTY"),p=n("9og8"),q=n("PpiC"),le=n("DZo9"),W=n("8z0m"),B=n("WmNS"),ae=n.n(B),Oe=n("q1tI"),he=n.n(Oe),ce=n("ErOA"),U=n("9kvl"),w=n("/jad"),Y=n.n(w),O=n("aaBP"),y=n.n(O),l=W.a.Dragger,a=15*1024*1024,v=function(z){var H=z.dispatch,x=z.user,j=z.globalSetting,h=z.setloading,V=z.uploading,$=z.setmd5List,te=z.content,Me=z.shixunHomeworks,ie=Object(q.a)(z,["dispatch","user","globalSetting","setloading","uploading","setmd5List","content","shixunHomeworks"]);Object(Oe.useEffect)(function(){Me.actionTabs.key==="\u5206\u7247\u4E13\u7528504"&&(H({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),fe());function fe(){return xe.apply(this,arguments)}function xe(){return xe=Object(p.a)(ae.a.mark(function _e(){var me,ye;return ae.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:return Ue.next=2,Object(ce.a)((j==null||((me=j.setting)===null||me===void 0)?void 0:me.bigfiles_upload)+"/file/filePatchMerge",{method:"post",body:Me.actionTabs.params},!0,!0);case 2:ye=Ue.sent,ye.errorCode==="000000"&&(C[0].file.percent=100,C[0].file.status="success",b(Object(i.a)(C)),h(100),K.b.info("\u4E0A\u4F20\u6210\u529F"),$(ye==null?void 0:ye.data));case 4:case"end":return Ue.stop()}},_e)})),xe.apply(this,arguments)}},[Me.actionTabs.key]);var k=Object(Oe.useState)([]),F=Object(R.a)(k,2),C=F[0],b=F[1],I=Object(Oe.useState)(0),M=Object(R.a)(I,2),A=M[0],J=M[1],se=Object(Oe.useState)(!1),ge=Object(R.a)(se,2),Z=ge[0],oe=ge[1],ue={onRemove:function(xe){b(Object(i.a)(C.filter(function(_e){return _e.name!==xe.name})))},multiple:!0,fileList:C==null?void 0:C.map(function(fe){return fe.file}),customRequest:function(){},beforeUpload:function(){var fe=Object(p.a)(ae.a.mark(function _e(me){var ye;return ae.a.wrap(function(Ue){for(;;)switch(Ue.prev=Ue.next){case 0:if(ye=100*1024*1024*1024,!C.filter(function(Fe){return Fe.name===me.name}).length){Ue.next=4;break}return K.b.info("".concat(me.name,"\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9")),Ue.abrupt("return");case 4:if(!((me==null?void 0:me.size)>ye)){Ue.next=7;break}return K.b.info("\u6587\u4EF6\u8D85\u8FC7".concat(ye/1024/1024/1024,"GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42")),Ue.abrupt("return",!1);case 7:return b([{name:me.name,file:me}]),Ue.abrupt("return",!1);case 9:case"end":return Ue.stop()}},_e)}));function xe(_e){return fe.apply(this,arguments)}return xe}()};Object(Oe.useEffect)(function(){if(V===0){var fe;if(J(0),oe(!1),(C==null?void 0:C.length)<=0){K.b.info("\u6587\u4EF6\u4E0D\u80FD\u4E3A\u7A7A"),h(101);return}ee(C==null||((fe=C[0])===null||fe===void 0)?void 0:fe.file,x.userInfo.login)}},[V]);function ee(fe,xe){return G.apply(this,arguments)}function G(){return G=Object(p.a)(ae.a.mark(function fe(xe,_e){var me,ye,Be,Ue,Fe,Xe,Ne;return ae.a.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return Xe=g(xe),P.next=3,Object(ce.a)((j==null||((me=j.setting)===null||me===void 0)?void 0:me.bigfiles_upload)+"/file/fileExists",{method:"get",params:{md5:Xe,size:xe.size,dirName:_e}},!1,!0);case 3:if(Ne=P.sent,!((Ne==null||((ye=Ne.data)===null||ye===void 0)?void 0:ye.length)>0&&(Ne==null||((Be=Ne.data)===null||Be===void 0||((Ue=Be[0])===null||Ue===void 0))?void 0:Ue.type)===1)){P.next=11;break}return h(100),C[0].file.percent=100,C[0].file.status="success",b(Object(i.a)(C)),K.b.info("\u4E0A\u4F20\u6210\u529F"),$(Ne==null?void 0:Ne.data),P.abrupt("return");case 11:if(!(Ne.data.length>0&&Ne.data[0].type===0)){P.next=14;break}return c(Ne.data[0].id,xe,_e),P.abrupt("return");case 14:(Ne==null||((Fe=Ne.data)===null||Fe===void 0)?void 0:Fe.length)<=0&&ne(Xe,xe,_e);case 15:case"end":return P.stop()}},fe)})),G.apply(this,arguments)}function ne(fe,xe,_e){return o.apply(this,arguments)}function o(){return o=Object(p.a)(ae.a.mark(function fe(xe,_e,me){var ye,Be,Ue,Fe,Xe;return ae.a.wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:return _t.next=2,Object(ce.a)((j==null||((ye=j.setting)===null||ye===void 0)?void 0:ye.bigfiles_upload)+"/file/newFile",{method:"post",body:{name:_e.name,md5:xe,size:1,oldName:_e.name,dirName:me}},!1,!0);case 2:Ue=_t.sent,(Ue==null||((Be=Ue.data)===null||Be===void 0)?void 0:Be.length)>0&&c(Ue==null||((Fe=Ue.data)===null||Fe===void 0||((Xe=Fe[0])===null||Xe===void 0))?void 0:Xe.id,_e,me);case 4:case"end":return _t.stop()}},fe)})),o.apply(this,arguments)}function g(fe){var xe=new y.a;if(!fe.size)return xe.appendBinary(fe),xe.end();if(fe.size<2048)for(var _e=Math.ceil(fe.size/2),me=0;me<_e;me++){var ye=me*5,Be=Math.min(fe.size,ye+2);xe.appendBinary(fe.slice(ye,Be))}else if(fe.size<15728640&&fe>2048)for(var _e=Math.ceil(fe.size/2e3),me=0;me<_e;me++){var ye=me*5,Be=Math.min(fe.size,ye+2e3);xe.appendBinary(fe.slice(ye,Be))}else for(var _e=Math.ceil(fe.size/a),me=0;me<_e;me++){var ye=me*a,Be=Math.min(fe.size,ye);xe.appendBinary(fe.slice(ye,Be))}return xe.end()}function c(fe,xe,_e){return N.apply(this,arguments)}function N(){return N=Object(p.a)(ae.a.mark(function fe(xe,_e,me){var ye,Be;return ae.a.wrap(function(Fe){for(;;)switch(Fe.prev=Fe.next){case 0:if(xe){Fe.next=2;break}return Fe.abrupt("return");case 2:ye=Math.ceil(_e.size/a),Be=0;case 4:if(!(Bek.length)&&(F=k.length);for(var C=0,b=new Array(F);C=0)continue;if(!Object.prototype.propertyIsEnumerable.call(k,b))continue;C[b]=k[b]}}return C}function U(k,F){if(k==null)return{};var C={},b=Object.keys(k),I,M;for(M=0;M=0)continue;C[I]=k[I]}return C}var w=function(F){var C=F.className,b=F.percent,I=F.prefixCls,M=F.strokeColor,A=F.strokeLinecap,J=F.strokeWidth,se=F.style,ge=F.trailColor,Z=F.trailWidth,oe=F.transition,ue=ce(F,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete ue.gapPosition;var ee=Array.isArray(b)?b:[b],G=Array.isArray(M)?M:[M],ne=p(ee),o=le(ne,1),g=o[0],c=J/2,N=100-J/2,Q="M ".concat(A==="round"?c:0,",").concat(c,` + L `).concat(A==="round"?N:100,",").concat(c),re="0 0 100 ".concat(J),je=0;return R.a.createElement("svg",q({className:K()("".concat(I,"-line"),C),viewBox:re,preserveAspectRatio:"none",style:se},ue),R.a.createElement("path",{className:"".concat(I,"-line-trail"),d:Q,strokeLinecap:A,stroke:ge,strokeWidth:Z||J,fillOpacity:"0"}),ee.map(function(fe,xe){var _e={strokeDasharray:"".concat(fe,"px, 100px"),strokeDashoffset:"-".concat(je,"px"),transition:oe||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},me=G[xe]||G[G.length-1];return je+=fe,R.a.createElement("path",{key:xe,className:"".concat(I,"-line-path"),d:Q,strokeLinecap:A,stroke:me,strokeWidth:J,fillOpacity:"0",ref:g[xe],style:_e})}))};w.defaultProps=i;var Y=w;function O(){return O=Object.assign||function(k){for(var F=1;Fk.length)&&(F=k.length);for(var C=0,b=new Array(F);C=0)continue;if(!Object.prototype.propertyIsEnumerable.call(k,b))continue;C[b]=k[b]}}return C}function x(k,F){if(k==null)return{};var C={},b=Object.keys(k),I,M;for(M=0;M=0)continue;C[I]=k[I]}return C}var j=0;function h(k){return+k.replace("%","")}function V(k){return Array.isArray(k)?k:[k]}function $(k,F,C,b){var I=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,M=arguments.length>5?arguments[5]:void 0,A=50-b/2,J=0,se=-A,ge=0,Z=-2*A;switch(M){case"left":J=-A,se=0,ge=2*A,Z=0;break;case"right":J=A,se=0,ge=-2*A,Z=0;break;case"bottom":se=A,Z=2*A;break;default:}var oe="M 50,50 m ".concat(J,",").concat(se,` a `).concat(A,",").concat(A," 0 1 1 ").concat(ge,",").concat(-Z,` - a `).concat(A,",").concat(A," 0 1 1 ").concat(-ge,",").concat(Z),ue=Math.PI*2*A,ee={stroke:C,strokeDasharray:"".concat(F/100*(ue-I),"px ").concat(ue,"px"),strokeDashoffset:"-".concat(I/2+k/100*(ue-I),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:oe,pathStyle:ee}}var te=function(F){var C=F.prefixCls,b=F.strokeWidth,I=F.trailWidth,M=F.gapDegree,A=F.gapPosition,J=F.trailColor,se=F.strokeLinecap,ge=F.style,Z=F.className,oe=F.strokeColor,ue=F.percent,ee=H(F,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),G=Object(L.useMemo)(function(){return j+=1,j},[]),ne=$(0,100,J,b,M,A),o=ne.pathString,g=ne.pathStyle,c=V(ue),N=V(oe),Q=N.find(function(_e){return Object.prototype.toString.call(_e)==="[object Object]"}),re=p(c),je=y(re,1),fe=je[0],xe=function(){var me=0;return c.map(function(ye,Be){var Ue=N[Be]||N[N.length-1],Fe=Object.prototype.toString.call(Ue)==="[object Object]"?"url(#".concat(C,"-gradient-").concat(G,")"):"",Xe=$(me,ye,Ue,b,M,A);return me+=ye,R.a.createElement("path",{key:Be,className:"".concat(C,"-circle-path"),d:Xe.pathString,stroke:Fe,strokeLinecap:se,strokeWidth:b,opacity:ye===0?0:1,fillOpacity:"0",style:Xe.pathStyle,ref:fe[Be]})})};return R.a.createElement("svg",O({className:K()("".concat(C,"-circle"),Z),viewBox:"0 0 100 100",style:ge},ee),Q&&R.a.createElement("defs",null,R.a.createElement("linearGradient",{id:"".concat(C,"-gradient-").concat(G),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Q).sort(function(_e,me){return h(_e)-h(me)}).map(function(_e,me){return R.a.createElement("stop",{key:me,offset:_e,stopColor:Q[_e]})}))),R.a.createElement("path",{className:"".concat(C,"-circle-trail"),d:o,stroke:J,strokeLinecap:se,strokeWidth:I||b,fillOpacity:"0",style:g}),xe().reverse())};te.defaultProps=i;var Me=te,ie={Line:Y,Circle:Me}},hW8S:function($e,Ce,n){"use strict";n.d(Ce,"a",function(){return K}),n.d(Ce,"c",function(){return i}),n.d(Ce,"b",function(){return p});var L=n("VTBJ"),R=n("Ff2n"),Ae=n("Kwbf"),K="RC_TABLE_INTERNAL_COL_DEFINE";function i(q){var le=q.expandable,W=Object(R.a)(q,["expandable"]);return"expandable"in q?Object(L.a)(Object(L.a)({},W),le):W}function p(q){return Object.keys(q).reduce(function(le,W){return(W.substr(0,5)==="data-"||W.substr(0,5)==="aria-")&&(le[W]=q[W]),le},{})}},k3GJ:function($e,Ce,n){"use strict";n.d(Ce,"a",function(){return mo});var L=n("rePB"),R=n("ODXe"),Ae=n("Ff2n"),K=n("VTBJ"),i=n("q1tI"),p=n("TSYQ"),q=n.n(p),le=n("Zm9Q"),W=n("6cGi"),B=n("KQm4"),ae=n("xEkU"),Oe=n.n(ae),he=n("t23M");function ce(u){var E=Object(i.useRef)(),S=Object(i.useRef)(!1);function f(){for(var e=arguments.length,r=new Array(e),t=0;tw&&(de=w-pe),Object(i.useMemo)(function(){if(!r.length)return[0,0];for(var Se=r.length,Ve=Se,tt=0;tt_+de){Ve=tt-1;break}}for(var at=0,nt=Se-1;nt>=0;nt-=1){var Qe=u.get(r[nt].key)||a;if(Qe[T]<_){at=nt+1;break}}return[at,Ve]},[u,_,de,t,r.map(function(Se){return Se.key}).join("_"),d])}var s=n("wx14"),z=n("1OyB"),H=n("vuIU"),x=n("JX7q"),j=n("Ji7U"),h=n("LK+K"),V=n("I8Z2"),$=n("bT9E"),te=n("2GS6"),Me=n("Gytx"),ie=n.n(Me),k=n("U8pU"),F=/iPhone/i,C=/iPod/i,b=/iPad/i,I=/\bAndroid(?:.+)Mobile\b/i,M=/Android/i,A=/\bAndroid(?:.+)SD4930UR\b/i,J=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,se=/Windows Phone/i,ge=/\bWindows(?:.+)ARM\b/i,Z=/BlackBerry/i,oe=/BB10/i,ue=/Opera Mini/i,ee=/\b(CriOS|Chrome)(?:.+)Mobile/i,G=/Mobile(?:.+)Firefox\b/i;function ne(u,E){return u.test(E)}function o(u){var E=u||(typeof navigator!="undefined"?navigator.userAgent:""),S=(E||"").split("[FBAN");if(typeof S[1]!="undefined"){var f=S,e=Object(R.a)(f,1);E=e[0]}if(S=E.split("Twitter"),typeof S[1]!="undefined"){var r=S,t=Object(R.a)(r,1);E=t[0]}var d={apple:{phone:ne(F,E)&&!ne(se,E),ipod:ne(C,E),tablet:!ne(F,E)&&ne(b,E)&&!ne(se,E),device:(ne(F,E)||ne(C,E)||ne(b,E))&&!ne(se,E)},amazon:{phone:ne(A,E),tablet:!ne(A,E)&&ne(J,E),device:ne(A,E)||ne(J,E)},android:{phone:!ne(se,E)&&ne(A,E)||!ne(se,E)&&ne(I,E),tablet:!ne(se,E)&&!ne(A,E)&&!ne(I,E)&&(ne(J,E)||ne(M,E)),device:!ne(se,E)&&(ne(A,E)||ne(J,E)||ne(I,E)||ne(M,E))||ne(/\bokhttp\b/i,E)},windows:{phone:ne(se,E),tablet:ne(ge,E),device:ne(se,E)||ne(ge,E)},other:{blackberry:ne(Z,E),blackberry10:ne(oe,E),opera:ne(ue,E),firefox:ne(G,E),chrome:ne(ee,E),device:ne(Z,E)||ne(oe,E)||ne(ue,E)||ne(G,E)||ne(ee,E)},any:null,phone:null,tablet:null};return d.any=d.apple.device||d.android.device||d.windows.device||d.other.device,d.phone=d.apple.phone||d.android.phone||d.windows.phone,d.tablet=d.apple.tablet||d.android.tablet||d.windows.tablet,d}var g=Object(K.a)(Object(K.a)({},o()),{},{isMobile:o}),c=g;function N(){}function Q(u,E,S){var f=E||"";return u.key||"".concat(f,"item_").concat(S)}function re(u){return"".concat(u,"-menu-")}function je(u,E){var S=-1;i.Children.forEach(u,function(f){S+=1,f&&f.type&&f.type.isMenuItemGroup?i.Children.forEach(f.props.children,function(e){S+=1,E(e,S)}):E(f,S)})}function fe(u,E,S){if(!u||S.find)return;i.Children.forEach(u,function(f){if(f){var e=f.type;if(!e||!(e.isSubMenu||e.isMenuItem||e.isMenuItemGroup))return;E.indexOf(f.key)!==-1?S.find=!0:f.props.children&&fe(f.props.children,E,S)}})}var xe=["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"],_e=function(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=E&&typeof E.getBoundingClientRect=="function"&&E.getBoundingClientRect().width;if(f){if(S){var e=getComputedStyle(E),r=e.marginLeft,t=e.marginRight;f+=+r.replace("px","")+ +t.replace("px","")}f=+f.toFixed(6)}return f||0},me=function(E,S,f){E&&Object(k.a)(E.style)==="object"&&(E.style[S]=f)},ye=function(){return c.any},Be=n("bdgK"),Ue=n("i8i4"),Fe=n.n(Ue),Xe=n("wgJM"),Ne=n("l4aY"),_t=n("m+aA"),P=n("c+Xe"),ve=n("zT1h"),Ee=n("QC+M");function we(u,E,S){return S?u[0]===E[0]:u[0]===E[0]&&u[1]===E[1]}function Pe(u,E,S){var f=u[E]||{};return Object(K.a)(Object(K.a)({},f),S)}function Te(u,E,S,f){for(var e=S.points,r=Object.keys(u),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;E();var r=Object(Xe.a)(function(){e<=1?f({isCanceled:function(){return r!==u.current}}):S(f,e-1)});u.current=r}return i.useEffect(function(){return function(){E()}},[]),[S,E]},Pn=[jt,xt,ht,et],Nn=!1,Fn=!0;function rn(u){return u===ht||u===et}var hn=function(u,E){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 _(){r(jt)}return Xt(function(){if(e!==Ht&&e!==et){var w=Pn.indexOf(e),X=Pn[w+1],pe=E(e);pe===Nn?r(X):m(function(de){function Se(){if(de.isCanceled())return;r(X)}pe===!0?Se():Promise.resolve(pe).then(Se)})}},[u,e]),i.useEffect(function(){return function(){T()}},[]),[_,e]},On=function(u){var E=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(Ft,f),t.removeEventListener(Je,f))}function r(t){E.current&&E.current!==t&&e(E.current),t&&t!==E.current&&(t.addEventListener(Ft,f),t.addEventListener(Je,f),E.current=t)}return i.useEffect(function(){return function(){e(E.current)}},[]),[r,e]};function xn(u,E,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,_=f.motionDeadline,w=f.motionLeaveImmediately,X=f.onAppearPrepare,pe=f.onEnterPrepare,de=f.onLeavePrepare,Se=f.onAppearStart,Ve=f.onEnterStart,tt=f.onLeaveStart,Ye=f.onAppearActive,at=f.onEnterActive,nt=f.onLeaveActive,Qe=f.onAppearEnd,Ze=f.onEnterEnd,dt=f.onLeaveEnd,ot=f.onVisibleChanged,Lt=Dt(),gt=Object(R.a)(Lt,2),We=gt[0],ze=gt[1],rt=Dt(Ot),st=Object(R.a)(rt,2),ke=st[0],ft=st[1],Tt=Dt(null),pt=Object(R.a)(Tt,2),Ct=pt[0],wt=pt[1],$t=Object(i.useRef)(!1),an=Object(i.useRef)(null),Ut=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 bt=gn();if(Rt&&!Rt.deadline&&Rt.target!==bt)return;var Yt;ke===kt&&ln.current?Yt=Qe==null?void 0:Qe(bt,Rt):ke===Kt&&ln.current?Yt=Ze==null?void 0:Ze(bt,Rt):ke===mt&&ln.current&&(Yt=dt==null?void 0:dt(bt,Rt)),Yt!==!1&&!Ut.current&&(ft(Ot),wt(null))}var It=On(un),qt=Object(R.a)(It,1),Gt=qt[0],Wt=i.useMemo(function(){var Rt,bt,Yt;switch(ke){case"appear":return Rt={},Object(L.a)(Rt,jt,X),Object(L.a)(Rt,xt,Se),Object(L.a)(Rt,ht,Ye),Rt;case"enter":return bt={},Object(L.a)(bt,jt,pe),Object(L.a)(bt,xt,Ve),Object(L.a)(bt,ht,at),bt;case"leave":return Yt={},Object(L.a)(Yt,jt,de),Object(L.a)(Yt,xt,tt),Object(L.a)(Yt,ht,nt),Yt;default:return{}}},[ke]),An=hn(ke,function(Rt){if(Rt===jt){var bt=Wt[jt];return bt?bt(gn()):Nn}if(Mt in Wt){var Yt;wt(((Yt=Wt[Mt])===null||Yt===void 0?void 0:Yt.call(Wt,gn(),null))||null)}return Mt===ht&&(Gt(gn()),_>0&&(clearTimeout(an.current),an.current=setTimeout(function(){un({deadline:!0})},_))),Fn}),Dn=Object(R.a)(An,2),Wn=Dn[0],Mt=Dn[1],Cn=rn(Mt);ln.current=Cn,Xt(function(){ze(E);var Rt=$t.current;if($t.current=!0,!u)return;var bt;!Rt&&E&&d&&(bt=kt),Rt&&E&&r&&(bt=Kt),(Rt&&!E&&T||!Rt&&w&&!E&&T)&&(bt=mt),bt&&(ft(bt),Wn())},[E]),Object(i.useEffect)(function(){(ke===kt&&!d||ke===Kt&&!r||ke===mt&&!T)&&ft(Ot)},[d,r,T]),Object(i.useEffect)(function(){return function(){clearTimeout(an.current),Ut.current=!0}},[]),Object(i.useEffect)(function(){We!==void 0&&ke===Ot&&(ot==null||ot(We))},[We,ke]);var Bn=Ct;return Wt[jt]&&Mt===xt&&(Bn=Object(K.a)({transition:"none"},Bn)),[ke,Mt,Bn,We!=null?We:E]}var Hn=function(u){Object(j.a)(S,u);var E=Object(h.a)(S);function S(){return Object(z.a)(this,S),E.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 E=u;Object(k.a)(u)==="object"&&(E=u.transitionSupport);function S(e){return!!(e.motionName&&E)}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,_=e.forceRender,w=e.children,X=e.motionName,pe=e.leavedClassName,de=e.eventProps,Se=S(e),Ve=Object(i.useRef)(),tt=Object(i.useRef)();function Ye(){try{return Object(_t.a)(Ve.current||tt.current)}catch(ft){return null}}var at=xn(Se,d,Ye,e),nt=Object(R.a)(at,4),Qe=nt[0],Ze=nt[1],dt=nt[2],ot=nt[3],Lt=i.useRef(ot);ot&&(Lt.current=!0);var gt=Object(i.useRef)(r);gt.current=r;var We=i.useCallback(function(ft){Ve.current=ft,Object(P.b)(gt.current,ft)},[]),ze,rt=Object(K.a)(Object(K.a)({},de),{},{visible:d});if(!w)ze=null;else if(Qe===Ot||!S(e))ot?ze=w(Object(K.a)({},rt),We):!T&&Lt.current?ze=w(Object(K.a)(Object(K.a)({},rt),{},{className:pe}),We):_?ze=w(Object(K.a)(Object(K.a)({},rt),{},{style:{display:"none"}}),We):ze=null;else{var st,ke;Ze===jt?ke="prepare":rn(Ze)?ke="active":Ze===xt&&(ke="start"),ze=w(Object(K.a)(Object(K.a)({},rt),{},{className:q()(At(X,Qe),(st={},Object(L.a)(st,At(X,"".concat(Qe,"-").concat(ke)),ke),Object(L.a)(st,X,typeof X=="string"),st)),style:dt}),We)}return i.createElement(en,{ref:tt},ze)});return f.displayName="CSSMotion",f}var yn=Ln(vt),kn="add",_n="keep",vn="remove",jn="removed";function Vn(u){var E;return u&&Object(k.a)(u)==="object"&&"key"in u?E=u:E={key:u},Object(K.a)(Object(K.a)({},E),{},{key:String(E.key)})}function Mn(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return u.map(Vn)}function zt(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],S=[],f=0,e=E.length,r=Mn(u),t=Mn(E);r.forEach(function(T){for(var _=!1,w=f;w1});return m.forEach(function(T){S=S.filter(function(_){var w=_.key,X=_.status;return w!==T||X!==vn}),S.forEach(function(_){_.key===T&&(_.status=_n)})}),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 E=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(z.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(_){return _.key!==d?_:Object(K.a)(Object(K.a)({},_),{},{status:jn})})}})},t}return Object(H.a)(r,[{key:"render",value:function(){var d=this,m=this.state.keyEntities,T=this.props,_=T.component,w=T.children,X=T.onVisibleChanged,pe=Object(Ae.a)(T,["component","children","onVisibleChanged"]),de=_||i.Fragment,Se={};return Zt.forEach(function(Ve){Se[Ve]=pe[Ve],delete pe[Ve]}),delete pe.keys,i.createElement(de,pe,m.map(function(Ve){var tt=Ve.status,Ye=Object(Ae.a)(Ve,["status"]),at=tt===kn||tt===_n;return i.createElement(E,Object(s.a)({},Se,{key:Ye.key,visible:at,eventProps:Ye,onVisibleChanged:function(Qe){X==null||X(Qe,{key:Ye.key}),Qe||d.removeKey(Ye.key)}}),w)}))}}],[{key:"getDerivedStateFromProps",value:function(d,m){var T=d.keys,_=m.keyEntities,w=Mn(T),X=zt(_,w);return{keyEntities:X.filter(function(pe){var de=_.find(function(Se){var Ve=Se.key;return pe.key===Ve});return!(de&&de.status===jn&&pe.status===vn)})}}}]),r}(i.Component);return S.defaultProps={component:"div"},S}var Jt=sn(vt),tn=yn;function dn(u){var E=u.prefixCls,S=u.motion,f=u.animation,e=u.transitionName;return S||(f?{motionName:"".concat(E,"-").concat(f)}:e?{motionName:e}:null)}function Xn(u){var E=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(K.a)({motionAppear:!0},dn({motion:r,prefixCls:E,transitionName:d,animation:t}))),i.createElement(tn,Object(s.a)({},m,{visible:S,removeOnLeave:!0}),function(T){var _=T.className;return i.createElement("div",{style:{zIndex:f},className:q()("".concat(E,"-mask"),_)})})}var Un=n("9mu1"),$n=n("o0o1"),Ma=n.n($n),Sa=n("HaE+"),Gn=["measure","align",null,"motion"],Pt=function(u,E){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(w){d.current||r(w)}function T(){Xe.a.cancel(t.current)}function _(w){T(),t.current=Object(Xe.a)(function(){m(function(X){switch(e){case"align":return"motion";case"motion":return"stable";default:}return X}),w==null||w()})}return Object(i.useEffect)(function(){m("measure")},[u]),Object(i.useEffect)(function(){switch(e){case"measure":E();break;default:}e&&(t.current=Object(Xe.a)(Object(Sa.a)(Ma.a.mark(function w(){var X,pe;return Ma.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:X=Gn.indexOf(e),pe=Gn[X+1],pe&&X!==-1&&m(pe);case 3:case"end":return Se.stop()}},w)}))))},[e]),Object(i.useEffect)(function(){return function(){d.current=!0,T()}},[]),[e,_]},Yn=function(u){var E=i.useState({width:0,height:0}),S=Object(R.a)(E,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,E){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,_=u.forceRender,w=u.align,X=u.point,pe=u.getRootDomNode,de=u.getClassNameFromAlign,Se=u.onAlign,Ve=u.onMouseEnter,tt=u.onMouseLeave,Ye=u.onMouseDown,at=u.onTouchStart,nt=Object(i.useRef)(),Qe=Object(i.useRef)(),Ze=Object(i.useState)(),dt=Object(R.a)(Ze,2),ot=dt[0],Lt=dt[1],gt=Yn(m),We=Object(R.a)(gt,2),ze=We[0],rt=We[1];function st(){m&&rt(pe())}var ke=Pt(S,st),ft=Object(R.a)(ke,2),Tt=ft[0],pt=ft[1],Ct=Object(i.useRef)();function wt(){return X||pe}function $t(){var It;(It=nt.current)===null||It===void 0||It.forceAlign()}function an(It,qt){var Gt=de(qt);ot!==Gt&&Lt(Gt),Tt==="align"&&(ot!==Gt?Promise.resolve().then(function(){$t()}):pt(function(){var Wt;(Wt=Ct.current)===null||Wt===void 0||Wt.call(Ct)}),Se==null||Se(It,qt))}var Ut=Object(K.a)({},dn(u));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(It){var qt=Ut[It];Ut[It]=function(Gt,Wt){return pt(),qt==null?void 0:qt(Gt,Wt)}});function on(){return new Promise(function(It){Ct.current=It})}i.useEffect(function(){!Ut.motionName&&Tt==="motion"&&pt()},[Ut.motionName,Tt]),i.useImperativeHandle(E,function(){return{forceAlign:$t,getElement:function(){return Qe.current}}});var gn=Object(K.a)(Object(K.a)({},ze),{},{zIndex:d,opacity:Tt==="motion"||Tt==="stable"||!S?void 0:0,pointerEvents:Tt==="stable"?void 0:"none"},r),ln=!0;(w==null?void 0:w.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:Qe,leavedClassName:"".concat(f,"-hidden")},Ut,{onAppearPrepare:on,onEnterPrepare:on,removeOnLeave:T,forceRender:_}),function(It,qt){var Gt=It.className,Wt=It.style,An=q()(f,e,ot,Gt);return i.createElement(Un.a,{target:wt(),key:"popup",ref:nt,monitorWindowResize:!0,disabled:ln,align:w,onAlign:an},i.createElement("div",{ref:qt,className:An,onMouseEnter:Ve,onMouseLeave:tt,onMouseDownCapture:Ye,onTouchStartCapture:at,style:Object(K.a)(Object(K.a)({},Wt),gn)},un))})});Jn.displayName="PopupInner";var Ta=Jn,fn=i.forwardRef(function(u,E){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,_=T===void 0?{}:T,w=t.popupRender,X=i.useRef();i.useImperativeHandle(E,function(){return{forceAlign:function(){},getElement:function(){return X.current}}});var pe=Object(K.a)({zIndex:e},m),de=r;return i.Children.count(r)>1&&(de=i.createElement("div",{className:"".concat(S,"-content")},r)),w&&(de=w(de)),i.createElement(tn,Object(s.a)({visible:f,ref:X,removeOnLeave:!0},_),function(Se,Ve){var tt=Se.className,Ye=Se.style,at=q()(S,d,tt);return i.createElement("div",{ref:Ve,className:at,style:Object(K.a)(Object(K.a)({},Ye),pe)},de)})});fn.displayName="MobilePopupInner";var Ha=fn,Ra=["visible","mobile"],oa=i.forwardRef(function(u,E){var S=u.visible,f=u.mobile,e=Object(Ae.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),_=Object(R.a)(T,2),w=_[0],X=_[1],pe=Object(K.a)(Object(K.a)({},e),{},{visible:d});Object(i.useEffect)(function(){m(S),S&&f&&X(Re())},[S,f]);var de=w?i.createElement(Ha,Object(s.a)({},pe,{mobile:f,ref:E})):i.createElement(Ta,Object(s.a)({},pe,{ref:E}));return i.createElement("div",null,i.createElement(Xn,pe),de)});oa.displayName="Popup";var Va=oa,Xa=i.createContext(null),ra=Xa;function Qn(){}function $a(){return""}function Ga(u){return u?u.ownerDocument:window.document}var Aa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(u){var E=function(S){Object(j.a)(e,S);var f=Object(h.a)(e);function e(r){var t;Object(z.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(Ne.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 _=!t.state.popupVisible;(t.isClickToHide()&&!_||_&&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,_=t.getRootDomNode(),w=t.getPopupDomNode();(!Object(Ne.a)(_,T)||t.isContextMenuOnly())&&!Object(Ne.a)(w,T)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var m=t.props.getTriggerDOMNode;if(m)return m(t.triggerRef.current);try{var T=Object(_t.a)(t.triggerRef.current);if(T)return T}catch(_){}return Fe.a.findDOMNode(Object(x.a)(t))},t.getPopupClassNameFromAlign=function(m){var T=[],_=t.props,w=_.popupPlacement,X=_.builtinPlacements,pe=_.prefixCls,de=_.alignPoint,Se=_.getPopupClassNameFromAlign;return w&&X&&T.push(Te(X,pe,m,de)),Se&&T.push(Se(m)),T.join(" ")},t.getComponent=function(){var m=t.props,T=m.prefixCls,_=m.destroyPopupOnHide,w=m.popupClassName,X=m.onPopupAlign,pe=m.popupMotion,de=m.popupAnimation,Se=m.popupTransitionName,Ve=m.popupStyle,tt=m.mask,Ye=m.maskAnimation,at=m.maskTransitionName,nt=m.maskMotion,Qe=m.zIndex,Ze=m.popup,dt=m.stretch,ot=m.alignPoint,Lt=m.mobile,gt=m.forceRender,We=t.state,ze=We.popupVisible,rt=We.point,st=t.getPopupAlign(),ke={};return t.isMouseEnterToShow()&&(ke.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(ke.onMouseLeave=t.onPopupMouseLeave),ke.onMouseDown=t.onPopupMouseDown,ke.onTouchStart=t.onPopupMouseDown,i.createElement(Va,Object(s.a)({prefixCls:T,destroyPopupOnHide:_,visible:ze,point:ot&&rt,className:w,align:st,onAlign:X,animation:de,getClassNameFromAlign:t.getPopupClassNameFromAlign},ke,{stretch:dt,getRootDomNode:t.getRootDomNode,style:Ve,mask:tt,zIndex:Qe,transitionName:Se,maskAnimation:Ye,maskTransitionName:at,maskMotion:nt,ref:t.popupRef,motion:pe,mobile:Lt,forceRender:gt}),typeof Ze=="function"?Ze():Ze)},t.attachParent=function(m){Xe.a.cancel(t.attachId);var T=t.props,_=T.getPopupContainer,w=T.getDocument,X=t.getRootDomNode(),pe;_?(X||_.length===0)&&(pe=_(X)):pe=w(t.getRootDomNode()).body,pe?pe.appendChild(m):t.attachId=Object(Xe.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(ve.a)(m,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(m=m||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ve.a)(m,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(m=m||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ve.a)(m,"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),Xe.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?Pe(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,_=d*1e3;if(this.clearDelayTimer(),_){var w=m?{pageX:m.pageX,pageY:m.pageY}:null;this.delayTimer=window.setTimeout(function(){T.setPopupVisible(t,w),T.clearDelayTimer()},_)}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,_=d.alignPoint,w=d.className,X=d.autoDestroy,pe=i.Children.only(m),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,_&&(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 Se=q()(pe&&pe.props&&pe.props.className,w);Se&&(de.className=Se);var Ve=Object(K.a)({},de);Object(P.c)(pe)&&(Ve.ref=Object(P.a)(this.triggerRef,pe.ref));var tt=i.cloneElement(pe,Ve),Ye;return(t||this.popupRef.current||T)&&(Ye=i.createElement(u,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&X&&(Ye=null),i.createElement(ra.Provider,{value:this.triggerContextValue},tt,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 E.contextType=ra,E.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},E}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]}},Da={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(E,S,f){var e=re(S),r=E.getState();E.setState({defaultActiveFirst:Object(K.a)(Object(K.a)({},r.defaultActiveFirst),{},Object(L.a)({},e,f))})},la=function(u){Object(j.a)(S,u);var E=Object(h.a)(S);function S(f){var e;Object(z.a)(this,S),e=E.call(this,f),e.onDestroy=function(_){e.props.onDestroy(_)},e.onKeyDown=function(_){var w=_.keyCode,X=e.menuInstance,pe=e.props.store,de=e.getVisible();if(w===D.a.ENTER)return e.onTitleClick(_),mn(pe,e.props.eventKey,!0),!0;if(w===D.a.RIGHT)return de?X.onKeyDown(_):(e.triggerOpenChange(!0),mn(pe,e.props.eventKey,!0)),!0;if(w===D.a.LEFT){var Se;if(de)Se=X.onKeyDown(_);else return;return Se||(e.triggerOpenChange(!1),Se=!0),Se}return de&&(w===D.a.UP||w===D.a.DOWN)?X.onKeyDown(_):void 0},e.onOpenChange=function(_){e.props.onOpenChange(_)},e.onPopupVisibleChange=function(_){e.triggerOpenChange(_,_?"mouseenter":"mouseleave")},e.onMouseEnter=function(_){var w=e.props,X=w.eventKey,pe=w.onMouseEnter,de=w.store;mn(de,e.props.eventKey,!1),pe({key:X,domEvent:_})},e.onMouseLeave=function(_){var w=e.props,X=w.parentMenu,pe=w.eventKey,de=w.onMouseLeave;X.subMenuInstance=Object(x.a)(e),de({key:pe,domEvent:_})},e.onTitleMouseEnter=function(_){var w=e.props,X=w.eventKey,pe=w.onItemHover,de=w.onTitleMouseEnter;pe({key:X,hover:!0}),de({key:X,domEvent:_})},e.onTitleMouseLeave=function(_){var w=e.props,X=w.parentMenu,pe=w.eventKey,de=w.onItemHover,Se=w.onTitleMouseLeave;X.subMenuInstance=Object(x.a)(e),de({key:pe,hover:!1}),Se({key:pe,domEvent:_})},e.onTitleClick=function(_){var w=Object(x.a)(e),X=w.props;if(X.onTitleClick({key:X.eventKey,domEvent:_}),X.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),mn(X.store,e.props.eventKey,!1)},e.onSubMenuClick=function(_){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(_))},e.onSelect=function(_){e.props.onSelect(_)},e.onDeselect=function(_){e.props.onDeselect(_)},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(_){e.menuInstance=_},e.addKeyPath=function(_){return Object(K.a)(Object(K.a)({},_),{},{keyPath:(_.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(_,w){var X=e.props.eventKey,pe=function(){e.onOpenChange({key:X,item:Object(x.a)(e),trigger:w,open:_})};w==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){pe()},0):pe()},e.isChildrenSelected=function(){var _={find:!1};return fe(e.props.children,e.props.selectedKeys,_),_.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var _=Ue.findDOMNode(e.menuInstance);if(_.offsetWidth>=e.subMenuTitle.offsetWidth)return;_.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(_){e.subMenuTitle=_},e.getBaseProps=function(){var _=Object(x.a)(e),w=_.props,X=e.getMode();return{mode:X==="horizontal"?"vertical":X,visible:e.getVisible(),level:w.level+1,inlineIndent:w.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:w.selectedKeys,eventKey:"".concat(w.eventKey,"-menu-"),openKeys:w.openKeys,motion:w.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:w.subMenuOpenDelay,parentMenu:Object(x.a)(e),subMenuCloseDelay:w.subMenuCloseDelay,forceSubMenuRender:w.forceSubMenuRender,triggerSubMenuAction:w.triggerSubMenuAction,builtinPlacements:w.builtinPlacements,defaultActiveFirst:w.store.getState().defaultActiveFirst[re(w.eventKey)],multiple:w.multiple,prefixCls:w.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:w.itemIcon,expandIcon:w.expandIcon,direction:w.direction}},e.getMotion=function(_,w){var X=Object(x.a)(e),pe=X.haveRendered,de=e.props,Se=de.motion,Ve=de.rootPrefixCls,tt=Object(K.a)(Object(K.a)({},Se),{},{leavedClassName:"".concat(Ve,"-hidden"),removeOnLeave:!1,motionAppear:pe||!w||_!=="inline"});return tt};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,_=function(){e.setState({mode:t,isOpen:T})},w=T!==this.state.isOpen,X=t!==this.state.mode;if((X||w)&&(Xe.a.cancel(this.updateStateRaf),X?this.updateStateRaf=Object(Xe.a)(_):_()),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),Xe.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,_=this.getMotion(t,d);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||d||m,!this.haveOpened)return i.createElement("div",null);var w=q()("".concat(r.prefixCls,"-sub"),Object(L.a)({},"".concat(r.prefixCls,"-rtl"),T==="rtl"));return this.isInlineMode()?i.createElement(tn,Object(s.a)({visible:r.visible,forceRender:m},_),function(X){var pe=X.className,de=X.style,Se=q()(w,pe);return e.renderPopupMenu(Se,de)}):this.renderPopupMenu(w)}},{key:"render",value:function(){var e,r,t,d=Object(K.a)({},this.props),m=this.getVisible(),T=this.getPrefixCls(),_=this.isInlineMode(),w=this.getMode(),X=q()(T,"".concat(T,"-").concat(w),(e={},Object(L.a)(e,d.className,!!d.className),Object(L.a)(e,this.getOpenClassName(),m),Object(L.a)(e,this.getActiveClassName(),d.active||m&&!_),Object(L.a)(e,this.getDisabledClassName(),d.disabled),Object(L.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 pe={},de={},Se={};d.disabled||(pe={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},de={onClick:this.onTitleClick},Se={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Ve={},tt=d.direction,Ye=tt==="rtl";_&&(Ye?Ve.paddingRight=d.inlineIndent*d.level:Ve.paddingLeft=d.inlineIndent*d.level);var at={};this.getVisible()&&(at={"aria-owns":this.internalMenuId});var nt=null;w!=="horizontal"&&(nt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(nt=i.createElement(this.props.expandIcon,Object(K.a)({},this.props))));var Qe=i.createElement("div",Object(s.a)({ref:this.saveSubMenuTitle,style:Ve,className:"".concat(T,"-title"),role:"button"},Se,de,{"aria-expanded":m},at,{"aria-haspopup":"true",title:typeof d.title=="string"?d.title:void 0}),d.title,nt||i.createElement("i",{className:"".concat(T,"-arrow")})),Ze=this.renderChildren(),dt=((r=d.parentMenu)===null||r===void 0?void 0:r.isRootMenu)?d.parentMenu.props.getPopupContainer:function(wt){return wt.parentNode},ot=pn[w],Lt=d.popupOffset?{offset:d.popupOffset}:{},gt=q()((t={},Object(L.a)(t,d.popupClassName,d.popupClassName&&!_),Object(L.a)(t,"".concat(T,"-rtl"),Ye),t)),We=d.disabled,ze=d.triggerSubMenuAction,rt=d.subMenuOpenDelay,st=d.forceSubMenuRender,ke=d.subMenuCloseDelay,ft=d.builtinPlacements;xe.forEach(function(wt){return delete d[wt]}),delete d.onClick;var Tt=Ye?Object(K.a)(Object(K.a)({},Da),ft):Object(K.a)(Object(K.a)({},ia),ft);delete d.direction;var pt=this.getBaseProps(),Ct=_?null:this.getMotion(pt.mode,pt.visible);return i.createElement("li",Object(s.a)({},d,pe,{className:X,role:"menuitem"}),i.createElement(Ja,{prefixCls:T,popupClassName:q()("".concat(T,"-popup"),gt),getPopupContainer:dt,builtinPlacements:Tt,popupPlacement:ot,popupVisible:_?!1:m,popupAlign:Lt,popup:_?null:Ze,action:We||_?[]:[ze],mouseEnterDelay:rt,mouseLeaveDelay:ke,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:st,popupMotion:Ct},Qe),_?Ze:null)}}]),S}(i.Component);la.defaultProps={onMouseEnter:N,onMouseLeave:N,onTitleMouseEnter:N,onTitleMouseLeave:N,onTitleClick:N,manualRef:N,mode:"vertical",title:""};var In=Object(V.b)(function(u,E){var S=u.openKeys,f=u.activeKey,e=u.selectedKeys,r=E.eventKey,t=E.subMenuKey;return{isOpen:S.indexOf(r)>-1,active:f[t]===r,selectedKeys:e}})(la);In.isSubMenu=!0;var Kn=In,wa="menuitem-overflowed",Qa=.5,Pa=function(u){Object(j.a)(S,u);var E=Object(h.a)(S);function S(){var f;return Object(z.a)(this,S),f=E.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,_=d.mode,w=d.prefixCls,X=d.theme;if(T!==1||_!=="horizontal")return null;var pe=f.props.children[0],de=pe.props,Se=de.children,Ve=de.title,tt=de.style,Ye=Object(Ae.a)(de,["children","title","style"]),at=Object(K.a)({},tt),nt="".concat(e,"-overflowed-indicator"),Qe="".concat(e,"-overflowed-indicator");r.length===0&&t!==!0?at=Object(K.a)(Object(K.a)({},at),{},{display:"none"}):t&&(at=Object(K.a)(Object(K.a)({},at),{},{visibility:"hidden",position:"absolute"}),nt="".concat(nt,"-placeholder"),Qe="".concat(Qe,"-placeholder"));var Ze=X?"".concat(w,"-").concat(X):"",dt={};return xe.forEach(function(ot){Ye[ot]!==void 0&&(dt[ot]=Ye[ot])}),i.createElement(Kn,Object(s.a)({title:m,className:"".concat(w,"-overflowed-submenu"),popupClassName:Ze},dt,{key:nt,eventKey:Qe,disabled:!1,style:at}),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];me(t,"display","inline-block");var d=f.getMenuItemNodes(),m=d.filter(function(T){return T.className.split(" ").indexOf(wa)>=0});m.forEach(function(T){me(T,"display","inline-block")}),f.menuItemSizes=d.map(function(T){return _e(T,!0)}),m.forEach(function(T){me(T,"display","none")}),f.overflowedIndicatorWidth=_e(e.children[e.children.length-1],!0),f.originalTotalWidth=f.menuItemSizes.reduce(function(T,_){return T+_},0),f.handleResize(),me(t,"display","none")},f.handleResize=function(){if(f.props.mode!=="horizontal")return;var e=f.childRef.current;if(!e)return;var r=_e(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 Be.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 _=m;if(r.props.mode==="horizontal"){var w=r.getOverflowedSubMenuItem(m.props.eventKey,[]);t!==void 0&&r.props.className.indexOf("".concat(r.props.prefixCls,"-root"))!==-1&&(T>t&&(_=i.cloneElement(m,{style:{display:"none"},eventKey:"".concat(m.props.eventKey,"-hidden"),className:"".concat(wa)})),T===t+1&&(r.overflowedItems=e.slice(t+1).map(function(pe){return i.cloneElement(pe,{key:pe.props.eventKey,mode:"vertical-left"})}),w=r.getOverflowedSubMenuItem(m.props.eventKey,r.overflowedItems)));var X=[].concat(Object(B.a)(d),[w,_]);return T===e.length-1&&X.push(r.getOverflowedSubMenuItem(m.props.eventKey,[],!0)),X}return[].concat(Object(B.a)(d),[_])},[])}},{key:"render",value:function(){var e=this.props,r=e.visible,t=e.prefixCls,d=e.overflowedIndicator,m=e.mode,T=e.level,_=e.tag,w=e.children,X=e.theme,pe=Object(Ae.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),de=_;return i.createElement(de,Object(s.a)({ref:this.childRef},pe),this.renderChildren(w))}}]),S}(i.Component);Pa.defaultProps={tag:"div",className:""};var ua=Pa;function Zn(u){return u.length?u.every(function(E){return!!E.props.disabled}):!0}function Sn(u,E,S){var f=u.getState();u.setState({activeKey:Object(K.a)(Object(K.a)({},f.activeKey),{},Object(L.a)({},E,S))})}function En(u){return u.eventKey||"0-menu-"}function qn(u,E){var S=E,f=u.children,e=u.eventKey;if(S){var r;if(je(f,function(t,d){t&&t.props&&!t.props.disabled&&S===Q(t,e,d)&&(r=!0)}),r)return S}return S=null,u.defaultActiveFirst&&je(f,function(t,d){!S&&t&&!t.props.disabled&&(S=Q(t,e,d))}),S}function Na(u){if(!u)return;var E=this.instanceArray.indexOf(u);E!==-1?this.instanceArray[E]=u:this.instanceArray.push(u)}var La=function(u){Object(j.a)(S,u);var E=Object(h.a)(S);function S(f){var e;return Object(z.a)(this,S),e=E.call(this,f),e.onKeyDown=function(r,t){var d=r.keyCode,m;if(e.getFlatInstanceArray().forEach(function(_){_&&_.props.active&&_.onKeyDown&&(m=_.onKeyDown(r))}),m)return 1;var T=null;return(d===D.a.UP||d===D.a.DOWN)&&(T=e.step(d===D.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(pe,de){return pe&&pe.props.eventKey===d?(T=de,!1):!0}),!e.props.defaultActiveFirst&&T!==-1&&Zn(t.slice(T,m-1)))return;var _=(T+1)%m,w=_;do{var X=t[w];if(!X||X.props.disabled)w=(w+1)%m;else return X}while(w!==_);return null},e.renderCommonMenuItem=function(r,t,d){var m=e.props.store.getState(),T=Object(x.a)(e),_=T.props,w=Q(r,_.eventKey,t),X=r.props;if(!X||typeof r.type=="string")return r;var pe=w===m.activeKey,de=Object(K.a)(Object(K.a)({mode:X.mode||_.mode,level:_.level,inlineIndent:_.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:_.prefixCls,index:t,parentMenu:_.parentMenu,manualRef:X.disabled?void 0:Object(te.a)(r.ref,Na.bind(Object(x.a)(e))),eventKey:w,active:!X.disabled&&pe,multiple:_.multiple,onClick:function(Ve){(X.onClick||N)(Ve),e.onClick(Ve)},onItemHover:e.onItemHover,motion:_.motion,subMenuOpenDelay:_.subMenuOpenDelay,subMenuCloseDelay:_.subMenuCloseDelay,forceSubMenuRender:_.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:_.builtinPlacements,itemIcon:X.itemIcon||e.props.itemIcon,expandIcon:X.expandIcon||e.props.expandIcon},d),{},{direction:_.direction});return(_.mode==="inline"||ye())&&(de.triggerSubMenuAction="click"),i.cloneElement(r,Object(K.a)(Object(K.a)({},de),{},{key:w||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(K.a)(Object(K.a)({},f.store.getState().activeKey),{},Object(L.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||!ie()(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=q()(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,_=r.visible,w=r.level,X=r.mode,pe=r.overflowedIndicator,de=r.theme;return xe.forEach(function(Se){return delete r[Se]}),delete r.onClick,i.createElement(ua,Object(s.a)({},r,{prefixCls:m,mode:X,tag:"ul",level:w,theme:de,visible:_,overflowedIndicator:pe},d),Object(le.a)(r.children).map(function(Se,Ve){return e.renderMenuItem(Se,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:N};var ka=Object(V.b)()(La),ea=ka,Tn=n("Kwbf");function ca(u,E,S){var f=u.prefixCls,e=u.motion,r=u.defaultMotions,t=r===void 0?{}:r,d=u.openAnimation,m=u.openTransitionName,T=E.switchingModeFromInline;if(e)return e;if(Object(k.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 _=t[S];return _||(T?null:t.other)}var Ua=function(u){Object(j.a)(S,u);var E=Object(h.a)(S);function S(f){var e;Object(z.a)(this,S),e=E.call(this,f),e.onSelect=function(d){var m=Object(x.a)(e),T=m.props;if(T.selectable){var _=e.store.getState(),w=_.selectedKeys,X=d.key;T.multiple?w=w.concat([X]):w=[X],"selectedKeys"in T||e.store.setState({selectedKeys:w}),T.onSelect(Object(K.a)(Object(K.a)({},d),{},{selectedKeys:w}))}},e.onClick=function(d){var m=e.getRealMenuMode(),T=Object(x.a)(e),_=T.store,w=T.props.onOpenChange;m!=="inline"&&!("openKeys"in e.props)&&(_.setState({openKeys:[]}),w([])),e.props.onClick(d)},e.onKeyDown=function(d,m){e.innerMenu.getWrappedInstance().onKeyDown(d,m)},e.onOpenChange=function(d){var m=Object(x.a)(e),T=m.props,_=e.store.getState().openKeys.concat(),w=!1,X=function(de){var Se=!1;if(de.open)Se=_.indexOf(de.key)===-1,Se&&_.push(de.key);else{var Ve=_.indexOf(de.key);Se=Ve!==-1,Se&&_.splice(Ve,1)}w=w||Se};Array.isArray(d)?d.forEach(X):X(d),w&&("openKeys"in e.props||e.store.setState({openKeys:_}),T.onOpenChange(_))},e.onDeselect=function(d){var m=Object(x.a)(e),T=m.props;if(T.selectable){var _=e.store.getState().selectedKeys.concat(),w=d.key,X=_.indexOf(w);X!==-1&&_.splice(X,1),"selectedKeys"in T||e.store.setState({selectedKeys:_}),T.onDeselect(Object(K.a)(Object(K.a)({},d),{},{selectedKeys:_}))}},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,_=Object.prototype.toString.call(T)==="[object SVGAnimatedString]"?T.animVal:T,w=d.propertyName==="font-size"&&_.indexOf("anticon")>=0;(m||w)&&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(V.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(K.a)({},Object($.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(K.a)(Object(K.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(V.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={},_={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(_.switchingModeFromInline=!0),"openKeys"in e?T.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(_.switchingModeFromInline=!0,_.inlineOpenKeys=m.openKeys,T.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(T.openKeys=r.inlineOpenKeys,_.inlineOpenKeys=[])),Object.keys(T).length&&d.setState(T),_}}]),S}(i.Component);Ua.defaultProps={selectable:!0,onClick:N,onSelect:N,onOpenChange:N,onDeselect:N,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 E=Object(h.a)(S);function S(){var f;return Object(z.a)(this,S),f=E.apply(this,arguments),f.onKeyDown=function(e){var r=e.keyCode;return r===D.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,_=r.onDeselect,w=r.isSelected,X={key:t,keyPath:[t],item:Object(x.a)(f),domEvent:e};m(X),d?w?_(X):T(X):w||T(X)},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(K.a)({},this.props),t=q()(this.getPrefixCls(),r.className,(e={},Object(L.a)(e,this.getActiveClassName(),!r.disabled&&r.active),Object(L.a)(e,this.getSelectedClassName(),r.isSelected),Object(L.a)(e,this.getDisabledClassName(),r.disabled),e)),d=Object(K.a)(Object(K.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(K.a)(Object(K.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(K.a)({},r.style);r.mode==="inline"&&(r.direction==="rtl"?T.paddingRight=r.inlineIndent*r.level:T.paddingLeft=r.inlineIndent*r.level),xe.forEach(function(w){return delete r[w]}),delete r.direction;var _=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(_=i.createElement(this.props.itemIcon,this.props)),i.createElement("li",Object(s.a)({},Object($.a)(r,["onClick","onMouseEnter","onMouseLeave","onSelect"]),d,m,{style:T,ref:this.saveNode}),r.children,_)}}]),S}(i.Component);Rn.isMenuItem=!0,Rn.defaultProps={onSelect:N,onMouseEnter:N,onMouseLeave:N,manualRef:N};var da=Object(V.b)(function(u,E){var S=u.activeKey,f=u.selectedKeys,e=E.eventKey,r=E.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 E=Object(h.a)(S);function S(){var f;return Object(z.a)(this,S),f=E.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"),_=e.title,w=e.children;return xe.forEach(function(X){return delete e[X]}),delete e.direction,i.createElement("li",Object(s.a)({},e,{onClick:function(pe){return pe.stopPropagation()},className:"".concat(t," ").concat(d,"-item-group")}),i.createElement("div",{className:m,title:typeof _=="string"?_:void 0},_),i.createElement("ul",{className:T},i.Children.map(w,this.renderInnerMenuItem)))}}]),S}(i.Component);pa.isMenuItemGroup=!0,pa.defaultProps={disabled:!0};var Za=pa,ma=function(E){var S=E.className,f=E.rootPrefixCls,e=E.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=n("eDIo");function eo(u,E){var S=u.prefixCls,f=u.editable,e=u.locale,r=u.style;return!f||f.showAdd===!1?null:i.createElement("button",{ref:E,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,E){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,_=u.style,w=u.className,X=u.editable,pe=u.tabBarGutter,de=u.rtl,Se=u.onTabClick,Ve=Object(i.useState)(!1),tt=Object(R.a)(Ve,2),Ye=tt[0],at=tt[1],nt=Object(i.useState)(null),Qe=Object(R.a)(nt,2),Ze=Qe[0],dt=Qe[1],ot="".concat(f,"-more-popup"),Lt="".concat(S,"-dropdown"),gt=Ze!==null?"".concat(ot,"-").concat(Ze):null,We=r==null?void 0:r.dropdownAriaLabel,ze=i.createElement(Ka,{onClick:function(Ct){var wt=Ct.key,$t=Ct.domEvent;Se(wt,$t),at(!1)},id:ot,tabIndex:-1,role:"listbox","aria-activedescendant":gt,selectedKeys:[Ze],"aria-label":We!==void 0?We:"expanded dropdown"},e.map(function(pt){return i.createElement(fa,{key:pt.key,id:"".concat(ot,"-").concat(pt.key),role:"option","aria-controls":f&&"".concat(f,"-panel-").concat(pt.key),disabled:pt.disabled},pt.tab)}));function rt(pt){for(var Ct=e.filter(function(on){return!on.disabled}),wt=Ct.findIndex(function(on){return on.key===Ze})||0,$t=Ct.length,an=0;an<$t;an+=1){wt=(wt+pt+$t)%$t;var Ut=Ct[wt];if(!Ut.disabled){dt(Ut.key);return}}}function st(pt){var Ct=pt.which;if(!Ye){[D.a.DOWN,D.a.SPACE,D.a.ENTER].includes(Ct)&&(at(!0),pt.preventDefault());return}switch(Ct){case D.a.UP:rt(-1),pt.preventDefault();break;case D.a.DOWN:rt(1),pt.preventDefault();break;case D.a.ESC:at(!1);break;case D.a.SPACE:case D.a.ENTER:Ze!==null&&Se(Ze,pt);break}}Object(i.useEffect)(function(){var pt=document.getElementById(gt);pt&&pt.scrollIntoView&&pt.scrollIntoView(!1)},[Ze]),Object(i.useEffect)(function(){Ye||dt(null)},[Ye]);var ke=Object(L.a)({},de?"marginLeft":"marginRight",pe);e.length||(ke.visibility="hidden",ke.order=1);var ft=q()(Object(L.a)({},"".concat(Lt,"-rtl"),de)),Tt=t?null:i.createElement(ha.a,{prefixCls:Lt,overlay:ze,trigger:["hover"],visible:Ye,transitionName:T,onVisibleChange:at,overlayClassName:ft,mouseEnterDelay:.1,mouseLeaveDelay:.1},i.createElement("button",{type:"button",className:"".concat(S,"-nav-more"),style:ke,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":ot,id:"".concat(f,"-more"),"aria-expanded":Ye,onKeyDown:st},m));return i.createElement("div",{className:q()("".concat(S,"-nav-operations"),w),style:_,ref:E},Tt,i.createElement(ta,{prefixCls:S,locale:r,editable:X}))}var no=i.forwardRef(to),va=Object(i.createContext)(null),lt=.1,ut=.01,Nt=20,Qt=Math.pow(.995,Nt);function zn(){var u=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(u)||/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(u.substr(0,4)))}function za(u,E){var S=Object(i.useState)(),f=Object(R.a)(S,2),e=f[0],r=f[1],t=Object(i.useState)(0),d=Object(R.a)(t,2),m=d[0],T=d[1],_=Object(i.useState)(0),w=Object(R.a)(_,2),X=w[0],pe=w[1],de=Object(i.useState)(),Se=Object(R.a)(de,2),Ve=Se[0],tt=Se[1],Ye=Object(i.useRef)();function at(We){var ze=We.touches[0],rt=ze.screenX,st=ze.screenY;r({x:rt,y:st}),window.clearInterval(Ye.current)}function nt(We){if(!e)return;We.preventDefault();var ze=We.touches[0],rt=ze.screenX,st=ze.screenY;r({x:rt,y:st});var ke=rt-e.x,ft=st-e.y;E(ke,ft);var Tt=Date.now();T(Tt),pe(Tt-m),tt({x:ke,y:ft})}function Qe(){if(!e)return;if(r(null),tt(null),Ve){var We=Ve.x/X,ze=Ve.y/X,rt=Math.abs(We),st=Math.abs(ze);if(Math.max(rt,st)ft?(st=ze,ot.current="x"):(st=rt,ot.current="y");var Tt=Date.now();Tt-Ze.current>100&&(dt.current=!1),(E(-st,-st)||dt.current)&&(We.preventDefault(),dt.current=!0),Ze.current=Tt}var gt=Object(i.useRef)(null);gt.current={onTouchStart:at,onTouchMove:nt,onTouchEnd:Qe,onWheel:Lt},i.useEffect(function(){function We(ke){gt.current.onTouchStart(ke)}function ze(ke){gt.current.onTouchMove(ke)}function rt(ke){gt.current.onTouchEnd(ke)}function st(ke){gt.current.onWheel(ke)}return document.addEventListener("touchmove",ze,{passive:!1}),document.addEventListener("touchend",rt,{passive:!1}),u.current.addEventListener("touchstart",We,{passive:!1}),u.current.addEventListener("wheel",st),function(){document.removeEventListener("touchmove",ze),document.removeEventListener("touchend",rt)}},[])}function ba(){var u=Object(i.useRef)(new Map);function E(f){return u.current.has(f)||u.current.set(f,i.createRef()),u.current.get(f)}function S(f){u.current.delete(f)}return[E,S]}function Wa(u,E){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&&E(m,S.current),S.current=m,r({})}return[S.current,t]}var Ba=function(E){var S=E.position,f=E.prefixCls,e=E.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,E){var S,f=i.useContext(va),e=f.prefixCls,r=f.tabs,t=u.className,d=u.style,m=u.id,T=u.animated,_=u.activeKey,w=u.rtl,X=u.extra,pe=u.editable,de=u.locale,Se=u.tabPosition,Ve=u.tabBarGutter,tt=u.children,Ye=u.onTabClick,at=u.onTabScroll,nt=Object(i.useRef)(),Qe=Object(i.useRef)(),Ze=Object(i.useRef)(),dt=Object(i.useRef)(),ot=ba(),Lt=Object(R.a)(ot,2),gt=Lt[0],We=Lt[1],ze=Se==="top"||Se==="bottom",rt=Wa(0,function(yt,it){ze&&at&&at({direction:yt>it?"left":"right"})}),st=Object(R.a)(rt,2),ke=st[0],ft=st[1],Tt=Wa(0,function(yt,it){!ze&&at&&at({direction:yt>it?"top":"bottom"})}),pt=Object(R.a)(Tt,2),Ct=pt[0],wt=pt[1],$t=Object(i.useState)(0),an=Object(R.a)($t,2),Ut=an[0],on=an[1],gn=Object(i.useState)(0),ln=Object(R.a)(gn,2),un=ln[0],It=ln[1],qt=Object(i.useState)(0),Gt=Object(R.a)(qt,2),Wt=Gt[0],An=Gt[1],Dn=Object(i.useState)(0),Wn=Object(R.a)(Dn,2),Mt=Wn[0],Cn=Wn[1],Bn=Object(i.useState)(null),Rt=Object(R.a)(Bn,2),bt=Rt[0],Yt=Rt[1],Xo=Object(i.useState)(null),bo=Object(R.a)(Xo,2),na=bo[0],$o=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=U(new Map),Eo=Object(R.a)(er,2),tr=Eo[0],nr=Eo[1],Fa=l(r,tr,Ut),Co="".concat(e,"-nav-operations-hidden"),ga=0,ya=0;ze?w?(ga=0,ya=Math.max(0,Ut-bt)):(ga=Math.min(0,bt-Ut),ya=0):(ga=Math.min(0,na-un),ya=0);function ao(yt){return ytya?[ya,!1]:[yt,!0]}var Oo=Object(i.useRef)(),ar=Object(i.useState)(),xo=Object(R.a)(ar,2),oo=xo[0],_o=xo[1];function ro(){_o(Date.now())}function io(){window.clearTimeout(Oo.current)}za(nt,function(yt,it){var Bt=!1;function cn(Ca,Oa){Ca(function(xa){var _a=ao(xa+Oa),aa=Object(R.a)(_a,2),co=aa[0],fo=aa[1];return Bt=fo,co})}if(ze){if(bt>=Ut)return Bt;cn(ft,yt)}else{if(na>=un)return Bt;cn(wt,it)}return io(),ro(),Bt}),Object(i.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){_o(0)},100)),io},[oo]);function jo(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_,it=Fa.get(yt);if(!it)return;if(ze){var Bt=ke;w?it.rightke+bt&&(Bt=it.right+it.width-bt):it.left<-ke?Bt=-it.left:it.left+it.width>-ke+bt&&(Bt=-(it.left+it.width-bt)),wt(0),ft(ao(Bt)[0])}else{var cn=Ct;it.top<-Ct?cn=-it.top:it.top+it.height>-Ct+na&&(cn=-(it.top+it.height-na)),ft(0),wt(ao(cn)[0])}}var or=v(Fa,{width:bt,height:na,left:ke,top:Ct},{width:Wt,height:Mt},{width:Yo,height:Zo},Object(K.a)(Object(K.a)({},u),{},{tabs:r})),Mo=Object(R.a)(or,2),rr=Mo[0],ir=Mo[1],sr=r.map(function(yt){var it=yt.key;return i.createElement(O,{id:m,prefixCls:e,key:it,rtl:w,tab:yt,closable:yt.closable,editable:pe,active:it===_,tabPosition:Se,tabBarGutter:Ve,renderWrapper:tt,removeAriaLabel:de==null?void 0:de.removeAriaLabel,ref:gt(it),onClick:function(cn){Ye(it,cn)},onRemove:function(){We(it)},onFocus:function(){jo(it),ro(),w||(nt.current.scrollLeft=0),nt.current.scrollTop=0}})}),so=ce(function(){var yt,it,Bt,cn,Ca,Oa,xa,_a,aa,co=((yt=nt.current)===null||yt===void 0?void 0:yt.offsetWidth)||0,fo=((it=nt.current)===null||it===void 0?void 0:it.offsetHeight)||0,No=((Bt=dt.current)===null||Bt===void 0?void 0:Bt.offsetWidth)||0,Lo=((cn=dt.current)===null||cn===void 0?void 0:cn.offsetHeight)||0,pr=((Ca=Ze.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,mr=((Oa=Ze.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Yt(co),$o(fo),Jo(No),qo(Lo);var ko=(((xa=Qe.current)===null||xa===void 0?void 0:xa.offsetWidth)||0)-No,Uo=(((_a=Qe.current)===null||_a===void 0?void 0:_a.offsetHeight)||0)-Lo;on(ko),It(Uo);var Io=(aa=Ze.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=gt(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(B.a)(lr),Object(B.a)(ur)),cr=Object(i.useState)(),To=Object(R.a)(cr,2),dr=To[0],fr=To[1],wn=Fa.get(_),Ro=Object(i.useRef)();function Ao(){Oe.a.cancel(Ro.current)}Object(i.useEffect)(function(){var yt={};return wn&&(ze?(w?yt.right=wn.right:yt.left=wn.left,yt.width=wn.width):(yt.top=wn.top,yt.height=wn.height)),Ao(),Ro.current=Oe()(function(){fr(yt)}),Ao},[wn,ze,w]),Object(i.useEffect)(function(){jo()},[_,wn,Fa,ze]),Object(i.useEffect)(function(){so()},[w,Ve,_,r.map(function(yt){return yt.key}).join("_")]);var Do=!!So.length,Ea="".concat(e,"-nav-wrap"),lo,uo,wo,Po;return ze?w?(uo=ke>0,lo=ke+bt1)Object(B.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(l.length===0)return Object(B.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var a=l[0];if(p.isValidElement(a)&&Object(ae.c)(a)){var v=a.ref;l[0]=p.cloneElement(a,{ref:Object(ae.a)(v,this.setChildNode)})}return l.length===1?l[0]:l.map(function(s,z){return!p.isValidElement(s)||"key"in s&&s.key!==null?s:p.cloneElement(s,{key:"".concat(he,"-").concat(z)})})}}]),Y}(p.Component);ce.displayName="ResizeObserver",Ce.a=ce},wCXF:function($e,Ce,n){"use strict";n.d(Ce,"a",function(){return Fe});var L=n("rePB"),R=n("VTBJ"),Ae=n("KQm4"),K=n("U8pU"),i=n("ODXe"),p=n("q1tI"),q=n("TSYQ"),le=n.n(q),W=n("Gytx"),B=n.n(W),ae=n("Kwbf"),Oe=n("t23M"),he=n("qx4F"),ce=n("6eGT"),U=n("IBYe"),D=n("Ff2n"),Y=n("c+Xe"),O=n("fyJ8"),y=n("biw7");function l(P,ve,Ee,we,Pe){var Te=Ee[P]||{},Re=Ee[ve]||{},be,De;Te.fixed==="left"?be=we.left[P]:Re.fixed==="right"&&(De=we.right[ve]);var Ke=!1,Le=!1,Ie=!1,Ge=!1,He=Ee[ve+1],qe=Ee[P-1];if(Pe==="rtl"){if(be!==void 0){var Et=qe&&qe.fixed==="left";Ge=!Et}else if(De!==void 0){var ct=He&&He.fixed==="right";Ie=!ct}}else if(be!==void 0){var vt=He&&He.fixed==="left";Ke=!vt}else if(De!==void 0){var Je=qe&&qe.fixed==="right";Le=!Je}return{fixLeft:be,fixRight:De,lastFixLeft:Ke,firstFixRight:Le,lastFixRight:Ie,firstFixLeft:Ge,isSticky:we.isSticky}}var a=n("sR1s");function v(P){var ve=P.cells,Ee=P.stickyOffsets,we=P.flattenColumns,Pe=P.rowComponent,Te=P.cellComponent,Re=P.onHeaderRow,be=P.index,De=p.useContext(y.a),Ke=De.prefixCls,Le=De.direction,Ie;Re&&(Ie=Re(ve.map(function(He){return He.column}),be));var Ge=Object(a.a)(ve.map(function(He){return He.column}));return p.createElement(Pe,Object.assign({},Ie),ve.map(function(He,qe){var Et=He.column,ct=l(He.colStart,He.colEnd,we,Ee,Le),vt;return Et&&Et.onHeaderCell&&(vt=He.column.onHeaderCell(Et)),p.createElement(O.a,Object.assign({},He,{ellipsis:Et.ellipsis,align:Et.align,component:Te,prefixCls:Ke,key:Ge[qe]},ct,{additionalProps:vt,rowType:"header"}))}))}v.displayName="HeaderRow";var s=v;function z(P){var ve=[];function Ee(Re,be){var De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ve[De]=ve[De]||[];var Ke=be,Le=Re.filter(Boolean).map(function(Ie){var Ge={key:Ie.key,className:Ie.className||"",children:Ie.title,column:Ie,colStart:Ke},He=1,qe=Ie.children;return qe&&qe.length>0&&(He=Ee(qe,Ke,De+1).reduce(function(Et,ct){return Et+ct},0),Ge.hasSubColumns=!0),"colSpan"in Ie&&(He=Ie.colSpan),"rowSpan"in Ie&&(Ge.rowSpan=Ie.rowSpan),Ge.colSpan=He,Ge.colEnd=Ge.colStart+He-1,ve[De].push(Ge),Ke+=He,He});return Le}Ee(P,0);for(var we=ve.length,Pe=function(be){ve[be].forEach(function(De){!("rowSpan"in De)&&!De.hasSubColumns&&(De.rowSpan=we-be)})},Te=0;Te=0;be-=1){var De=ve[be],Ke=Ee&&Ee[be],Le=Ke&&Ke[j.a];(De||Le||Re)&&(Pe.unshift(p.createElement("col",Object.assign({key:be,style:{width:De,minWidth:De}},Le))),Re=!0)}return p.createElement("colgroup",null,Pe)}var V=h;function $(P,ve){return Object(p.useMemo)(function(){for(var Ee=[],we=0;we1?Jt-1:0),dn=1;dn=Ie&&(St=Ie-Ge),Re({scrollLeft:St/Ie*(Le+2)}),Je.current.x=et.pageX},jt=function(){var et=Object(xe.b)(Te.current).top,Dt=et+Te.current.offsetHeight,Vt=document.documentElement.scrollTop+window.innerHeight;Dt-Object(he.a)()<=Vt||et>=Vt-be?vt(function(Xt){return Object(R.a)(Object(R.a)({},Xt),{},{isHiddenScrollBar:!0})}):vt(function(Xt){return Object(R.a)(Object(R.a)({},Xt),{},{isHiddenScrollBar:!1})})},xt=function(et){vt(function(Dt){return Object(R.a)(Object(R.a)({},Dt),{},{scrollLeft:et/Le*Ie||0})})};return p.useImperativeHandle(Ee,function(){return{setScrollLeft:xt}}),p.useEffect(function(){var ht=Object(fe.a)(document.body,"mouseup",Kt,!1),et=Object(fe.a)(document.body,"mousemove",Ht,!1);return jt(),function(){ht.remove(),et.remove()}},[Ge,Ot]),p.useEffect(function(){var ht=Object(fe.a)(window,"scroll",jt,!1),et=Object(fe.a)(window,"resize",jt,!1);return function(){ht.remove(),et.remove()}},[]),p.useEffect(function(){ct.isHiddenScrollBar||vt(function(ht){var et,Dt;return Object(R.a)(Object(R.a)({},ht),{},{scrollLeft:Te.current.scrollLeft/((et=Te.current)===null||et===void 0?void 0:et.scrollWidth)*((Dt=Te.current)===null||Dt===void 0?void 0:Dt.clientWidth)})})},[ct.isHiddenScrollBar]),Le<=Ie||!Ge||ct.isHiddenScrollBar?null:p.createElement("div",{style:{height:Object(he.a)(),width:Ie,bottom:be},className:"".concat(Ke,"-sticky-scroll")},p.createElement("div",{onMouseDown:mt,ref:He,className:le()("".concat(Ke,"-sticky-scroll-bar"),Object(L.a)({},"".concat(Ke,"-sticky-scroll-bar-active"),Ot)),style:{width:"".concat(Ge,"px"),transform:"translate3d(".concat(ct.scrollLeft,"px, 0, 0)")}}))},me=p.forwardRef(_e);function ye(P,ve){return p.useMemo(function(){var Ee=!!P;return{isSticky:Ee,stickyClassName:Ee?"".concat(ve,"-sticky-header"):"",offsetHeader:Object(K.a)(P)==="object"&&P.offsetHeader||0,offsetScroll:Object(K.a)(P)==="object"&&P.offsetScroll||0}},[P,ve])}var Be=[],Ue={},Fe="rc-table-internal-hook",Xe=p.memo(function(P){var ve=P.children;return ve},function(P,ve){return B()(P.props,ve.props)?P.pingLeft!==ve.pingLeft||P.pingRight!==ve.pingRight:!1});function Ne(P){var ve,Ee=P.prefixCls,we=P.className,Pe=P.rowClassName,Te=P.style,Re=P.data,be=P.rowKey,De=P.scroll,Ke=P.tableLayout,Le=P.direction,Ie=P.title,Ge=P.footer,He=P.summary,qe=P.id,Et=P.showHeader,ct=P.components,vt=P.emptyText,Je=P.onRow,Ft=P.onHeaderRow,At=P.internalHooks,Ot=P.transformColumns,kt=P.internalRefs,Kt=P.sticky,mt=Re||Be,Ht=!!mt.length,jt=p.useState(0),xt=Object(i.a)(jt,2),ht=xt[0],et=xt[1];p.useEffect(function(){et(Object(he.a)())});var Dt=p.useMemo(function(){return Object(a.c)(ct,{})},[ct]),Vt=p.useCallback(function(lt,ut){return Object(a.b)(Dt,lt)||ut},[Dt]),Xt=p.useMemo(function(){return typeof be=="function"?be:function(lt){var ut=lt&<[be];return ut}},[be]),St=Object(j.c)(P),Pn=St.expandIcon,Nn=St.expandedRowKeys,Fn=St.defaultExpandedRowKeys,rn=St.defaultExpandAllRows,hn=St.expandedRowRender,On=St.onExpand,xn=St.onExpandedRowsChange,Hn=St.expandRowByClick,en=St.rowExpandable,Ln=St.expandIconColumnIndex,yn=St.expandedRowClassName,kn=St.childrenColumnName,_n=St.indentSize,vn=Pn||re,jn=kn||"children",Vn=p.useMemo(function(){return hn?"row":P.expandable&&At===Fe&&P.expandable.__PARENT_RENDER_ICON__||mt.some(function(lt){return lt&&Object(K.a)(lt)==="object"&<[jn]})?"nest":!1},[!!hn,mt]),Mn=p.useState(function(){return Fn||(rn?je(mt,Xt,jn):[])}),zt=Object(i.a)(Mn,2),Zt=zt[0],sn=zt[1],Jt=p.useMemo(function(){return new Set(Nn||Zt||[])},[Nn,Zt]),tn=p.useCallback(function(lt){var ut=Xt(lt,mt.indexOf(lt)),Nt,Qt=Jt.has(ut);Qt?(Jt.delete(ut),Nt=Object(Ae.a)(Jt)):Nt=[].concat(Object(Ae.a)(Jt),[ut]),sn(Nt),On&&On(!Qt,lt),xn&&xn(Nt)},[Xt,Jt,mt,On,xn]),dn=p.useState(0),Xn=Object(i.a)(dn,2),Un=Xn[0],$n=Xn[1],Ma=Object(oe.b)(Object(R.a)(Object(R.a)(Object(R.a)({},P),St),{},{expandable:!!hn,expandedKeys:Jt,getRowKey:Xt,onTriggerExpand:tn,expandIcon:vn,expandIconColumnIndex:Ln,direction:Le}),At===Fe?Ot:null),Sa=Object(i.a)(Ma,2),Gn=Sa[0],Pt=Sa[1],Yn=p.useMemo(function(){return{columns:Gn,flattenColumns:Pt}},[Gn,Pt]),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],Xa=p.useState(!1),ra=Object(i.a)(Xa,2),Qn=ra[0],$a=ra[1],Ga=G(new Map),Aa=Object(i.a)(Ga,2),Ya=Aa[0],Ja=Aa[1],bn=Object(a.a)(Pt),ia=bn.map(function(lt){return Ya.get(lt)}),Da=p.useMemo(function(){return ia},[ia.join("_")]),sa=g(Da,Pt.length,Le),nn=De&&Object(a.d)(De.y),pn=De&&Object(a.d)(De.x),mn=pn&&Pt.some(function(lt){var ut=lt.fixed;return ut}),la=p.useRef(),In=ye(Kt,Ee),Kn=In.isSticky,wa=In.offsetHeader,Qa=In.offsetScroll,Pa=In.stickyClassName,ua,Zn,Sn;nn&&(Zn={overflowY:"scroll",maxHeight:De.y}),pn&&(ua={overflowX:"auto"},nn||(Zn={overflowY:"hidden"}),Sn={width:De.x===!0?"auto":De.x,minWidth:"100%"});var En=p.useCallback(function(lt,ut){Ja(function(Nt){var Qt=new Map(Nt);return Qt.set(lt,ut),Qt})},[]),qn=ne(null),Na=Object(i.a)(qn,2),La=Na[0],ka=Na[1];function ea(lt,ut){if(!ut)return;typeof ut=="function"?ut(lt):ut.scrollLeft!==lt&&(ut.scrollLeft=lt)}var Tn=function(ut){var Nt=ut.currentTarget,Qt=ut.scrollLeft,zn=typeof Qt=="number"?Qt:Nt.scrollLeft,za=Nt||Ue;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(Nt){var Wa=Nt.scrollWidth,Ba=Nt.clientWidth;Va(zn>0),$a(zn0?[].concat(Object(R.a)(D),Object(R.a)(ae(l).map(function(a){return Object(Ae.a)({fixed:y},a)}))):[].concat(Object(R.a)(D),[Object(Ae.a)(Object(Ae.a)({},Y),{},{fixed:y})])},[])}function Oe(U){for(var D=!0,Y=0;Y=0;l-=1){var a=U[l];if(y&&a.fixed!=="right")y=!1;else if(!y&&a.fixed==="right"){Object(q.a)(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function he(U){return U.map(function(D){var Y=D.fixed,O=Object(K.a)(D,["fixed"]),y=Y;return Y==="left"?y="right":Y==="right"&&(y="left"),Object(Ae.a)({fixed:y},O)})}function ce(U,D){var Y=U.prefixCls,O=U.columns,y=U.children,l=U.expandable,a=U.expandedKeys,v=U.getRowKey,s=U.onTriggerExpand,z=U.expandIcon,H=U.rowExpandable,x=U.expandIconColumnIndex,j=U.direction,h=U.expandRowByClick,V=i.useMemo(function(){return O||B(y)},[O,y]),$=i.useMemo(function(){if(l){var ie,k=x||0,F=V[k],C=(ie={},Object(L.a)(ie,W.a,{className:"".concat(Y,"-expand-icon-col")}),Object(L.a)(ie,"title",""),Object(L.a)(ie,"fixed",F?F.fixed:null),Object(L.a)(ie,"className","".concat(Y,"-row-expand-icon-cell")),Object(L.a)(ie,"render",function(M,A,J){var se=v(A,J),ge=a.has(se),Z=H?H(A):!0,oe=z({prefixCls:Y,expanded:ge,expandable:Z,record:A,onExpand:s});return h?i.createElement("span",{onClick:function(ee){return ee.stopPropagation()}},oe):oe}),ie),b=V.slice();return k>=0&&b.splice(k,0,C),b}return V},[l,V,v,a,z,j]),te=i.useMemo(function(){var ie=$;return D&&(ie=D(ie)),ie.length||(ie=[{render:function(){return null}}]),ie},[D,$,j]),Me=i.useMemo(function(){return j==="rtl"?he(ae(te)):ae(te)},[te,j]);return[te,Me]}Ce.b=ce},"y0+3":function($e,Ce,n){"use strict";n.d(Ce,"a",function(){return ae}),n.d(Ce,"b",function(){return he});var L=/margin|padding|width|height|max|min|offset/,R={left:!0,top:!0},Ae={cssFloat:1,styleFloat:1,float:1};function K(ce){return ce.nodeType===1?ce.ownerDocument.defaultView.getComputedStyle(ce,null):{}}function i(ce,U,D){if(U=U.toLowerCase(),D==="auto"){if(U==="height")return ce.offsetHeight;if(U==="width")return ce.offsetWidth}return U in R||(R[U]=L.test(U)),R[U]?parseFloat(D)||0:D}function p(ce,U){var D=arguments.length,Y=K(ce);return U=Ae[U]?"cssFloat"in ce.style?"cssFloat":"styleFloat":U,D===1?Y:i(ce,U,Y[U]||ce.style[U])}function q(ce,U,D){var Y=arguments.length;if(U=Ae[U]?"cssFloat"in ce.style?"cssFloat":"styleFloat":U,Y===3)return typeof D=="number"&&L.test(U)&&(D="".concat(D,"px")),ce.style[U]=D,D;for(var O in U)U.hasOwnProperty(O)&&q(ce,O,U[O]);return K(ce)}function le(ce){return ce===document.body?document.documentElement.clientWidth:ce.offsetWidth}function W(ce){return ce===document.body?window.innerHeight||document.documentElement.clientHeight:ce.offsetHeight}function B(){var ce=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),U=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ce,height:U}}function ae(){var ce=document.documentElement.clientWidth,U=window.innerHeight||document.documentElement.clientHeight;return{width:ce,height:U}}function Oe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function he(ce){var U=ce.getBoundingClientRect(),D=document.documentElement;return{left:U.left+(window.pageXOffset||D.scrollLeft)-(D.clientLeft||document.body.clientLeft||0),top:U.top+(window.pageYOffset||D.scrollTop)-(D.clientTop||document.body.clientTop||0)}}}}]); + a `).concat(A,",").concat(A," 0 1 1 ").concat(-ge,",").concat(Z),ue=Math.PI*2*A,ee={stroke:C,strokeDasharray:"".concat(F/100*(ue-I),"px ").concat(ue,"px"),strokeDashoffset:"-".concat(I/2+k/100*(ue-I),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:oe,pathStyle:ee}}var te=function(F){var C=F.prefixCls,b=F.strokeWidth,I=F.trailWidth,M=F.gapDegree,A=F.gapPosition,J=F.trailColor,se=F.strokeLinecap,ge=F.style,Z=F.className,oe=F.strokeColor,ue=F.percent,ee=H(F,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),G=Object(L.useMemo)(function(){return j+=1,j},[]),ne=$(0,100,J,b,M,A),o=ne.pathString,g=ne.pathStyle,c=V(ue),N=V(oe),Q=N.find(function(_e){return Object.prototype.toString.call(_e)==="[object Object]"}),re=p(c),je=y(re,1),fe=je[0],xe=function(){var me=0;return c.map(function(ye,Be){var Ue=N[Be]||N[N.length-1],Fe=Object.prototype.toString.call(Ue)==="[object Object]"?"url(#".concat(C,"-gradient-").concat(G,")"):"",Xe=$(me,ye,Ue,b,M,A);return me+=ye,R.a.createElement("path",{key:Be,className:"".concat(C,"-circle-path"),d:Xe.pathString,stroke:Fe,strokeLinecap:se,strokeWidth:b,opacity:ye===0?0:1,fillOpacity:"0",style:Xe.pathStyle,ref:fe[Be]})})};return R.a.createElement("svg",O({className:K()("".concat(C,"-circle"),Z),viewBox:"0 0 100 100",style:ge},ee),Q&&R.a.createElement("defs",null,R.a.createElement("linearGradient",{id:"".concat(C,"-gradient-").concat(G),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Q).sort(function(_e,me){return h(_e)-h(me)}).map(function(_e,me){return R.a.createElement("stop",{key:me,offset:_e,stopColor:Q[_e]})}))),R.a.createElement("path",{className:"".concat(C,"-circle-trail"),d:o,stroke:J,strokeLinecap:se,strokeWidth:I||b,fillOpacity:"0",style:g}),xe().reverse())};te.defaultProps=i;var Me=te,ie={Line:Y,Circle:Me}},hW8S:function($e,Ce,n){"use strict";n.d(Ce,"a",function(){return K}),n.d(Ce,"c",function(){return i}),n.d(Ce,"b",function(){return p});var L=n("VTBJ"),R=n("Ff2n"),Ae=n("Kwbf"),K="RC_TABLE_INTERNAL_COL_DEFINE";function i(q){var le=q.expandable,W=Object(R.a)(q,["expandable"]);return"expandable"in q?Object(L.a)(Object(L.a)({},W),le):W}function p(q){return Object.keys(q).reduce(function(le,W){return(W.substr(0,5)==="data-"||W.substr(0,5)==="aria-")&&(le[W]=q[W]),le},{})}},k3GJ:function($e,Ce,n){"use strict";n.d(Ce,"a",function(){return mo});var L=n("rePB"),R=n("ODXe"),Ae=n("Ff2n"),K=n("VTBJ"),i=n("q1tI"),p=n("TSYQ"),q=n.n(p),le=n("Zm9Q"),W=n("6cGi"),B=n("KQm4"),ae=n("xEkU"),Oe=n.n(ae),he=n("t23M");function ce(u){var E=Object(i.useRef)(),S=Object(i.useRef)(!1);function f(){for(var e=arguments.length,r=new Array(e),t=0;tD&&(de=D-pe),Object(i.useMemo)(function(){if(!r.length)return[0,0];for(var Se=r.length,Ve=Se,tt=0;tt_+de){Ve=tt-1;break}}for(var at=0,nt=Se-1;nt>=0;nt-=1){var Qe=u.get(r[nt].key)||a;if(Qe[T]<_){at=nt+1;break}}return[at,Ve]},[u,_,de,t,r.map(function(Se){return Se.key}).join("_"),d])}var s=n("wx14"),z=n("1OyB"),H=n("vuIU"),x=n("JX7q"),j=n("Ji7U"),h=n("LK+K"),V=n("I8Z2"),$=n("bT9E"),te=n("2GS6"),Me=n("Gytx"),ie=n.n(Me),k=n("U8pU"),F=/iPhone/i,C=/iPod/i,b=/iPad/i,I=/\bAndroid(?:.+)Mobile\b/i,M=/Android/i,A=/\bAndroid(?:.+)SD4930UR\b/i,J=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,se=/Windows Phone/i,ge=/\bWindows(?:.+)ARM\b/i,Z=/BlackBerry/i,oe=/BB10/i,ue=/Opera Mini/i,ee=/\b(CriOS|Chrome)(?:.+)Mobile/i,G=/Mobile(?:.+)Firefox\b/i;function ne(u,E){return u.test(E)}function o(u){var E=u||(typeof navigator!="undefined"?navigator.userAgent:""),S=(E||"").split("[FBAN");if(typeof S[1]!="undefined"){var f=S,e=Object(R.a)(f,1);E=e[0]}if(S=E.split("Twitter"),typeof S[1]!="undefined"){var r=S,t=Object(R.a)(r,1);E=t[0]}var d={apple:{phone:ne(F,E)&&!ne(se,E),ipod:ne(C,E),tablet:!ne(F,E)&&ne(b,E)&&!ne(se,E),device:(ne(F,E)||ne(C,E)||ne(b,E))&&!ne(se,E)},amazon:{phone:ne(A,E),tablet:!ne(A,E)&&ne(J,E),device:ne(A,E)||ne(J,E)},android:{phone:!ne(se,E)&&ne(A,E)||!ne(se,E)&&ne(I,E),tablet:!ne(se,E)&&!ne(A,E)&&!ne(I,E)&&(ne(J,E)||ne(M,E)),device:!ne(se,E)&&(ne(A,E)||ne(J,E)||ne(I,E)||ne(M,E))||ne(/\bokhttp\b/i,E)},windows:{phone:ne(se,E),tablet:ne(ge,E),device:ne(se,E)||ne(ge,E)},other:{blackberry:ne(Z,E),blackberry10:ne(oe,E),opera:ne(ue,E),firefox:ne(G,E),chrome:ne(ee,E),device:ne(Z,E)||ne(oe,E)||ne(ue,E)||ne(G,E)||ne(ee,E)},any:null,phone:null,tablet:null};return d.any=d.apple.device||d.android.device||d.windows.device||d.other.device,d.phone=d.apple.phone||d.android.phone||d.windows.phone,d.tablet=d.apple.tablet||d.android.tablet||d.windows.tablet,d}var g=Object(K.a)(Object(K.a)({},o()),{},{isMobile:o}),c=g;function N(){}function Q(u,E,S){var f=E||"";return u.key||"".concat(f,"item_").concat(S)}function re(u){return"".concat(u,"-menu-")}function je(u,E){var S=-1;i.Children.forEach(u,function(f){S+=1,f&&f.type&&f.type.isMenuItemGroup?i.Children.forEach(f.props.children,function(e){S+=1,E(e,S)}):E(f,S)})}function fe(u,E,S){if(!u||S.find)return;i.Children.forEach(u,function(f){if(f){var e=f.type;if(!e||!(e.isSubMenu||e.isMenuItem||e.isMenuItemGroup))return;E.indexOf(f.key)!==-1?S.find=!0:f.props.children&&fe(f.props.children,E,S)}})}var xe=["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"],_e=function(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=E&&typeof E.getBoundingClientRect=="function"&&E.getBoundingClientRect().width;if(f){if(S){var e=getComputedStyle(E),r=e.marginLeft,t=e.marginRight;f+=+r.replace("px","")+ +t.replace("px","")}f=+f.toFixed(6)}return f||0},me=function(E,S,f){E&&Object(k.a)(E.style)==="object"&&(E.style[S]=f)},ye=function(){return c.any},Be=n("bdgK"),Ue=n("i8i4"),Fe=n.n(Ue),Xe=n("wgJM"),Ne=n("l4aY"),_t=n("m+aA"),P=n("c+Xe"),ve=n("zT1h"),Ee=n("QC+M");function De(u,E,S){return S?u[0]===E[0]:u[0]===E[0]&&u[1]===E[1]}function Pe(u,E,S){var f=u[E]||{};return Object(K.a)(Object(K.a)({},f),S)}function Te(u,E,S,f){for(var e=S.points,r=Object.keys(u),t=0;t1&&arguments[1]!==void 0?arguments[1]:2;E();var r=Object(Xe.a)(function(){e<=1?f({isCanceled:function(){return r!==u.current}}):S(f,e-1)});u.current=r}return i.useEffect(function(){return function(){E()}},[]),[S,E]},Pn=[jt,xt,ht,et],Nn=!1,Fn=!0;function rn(u){return u===ht||u===et}var hn=function(u,E){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 _(){r(jt)}return Xt(function(){if(e!==Ht&&e!==et){var D=Pn.indexOf(e),X=Pn[D+1],pe=E(e);pe===Nn?r(X):m(function(de){function Se(){if(de.isCanceled())return;r(X)}pe===!0?Se():Promise.resolve(pe).then(Se)})}},[u,e]),i.useEffect(function(){return function(){T()}},[]),[_,e]},On=function(u){var E=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(Ft,f),t.removeEventListener(Je,f))}function r(t){E.current&&E.current!==t&&e(E.current),t&&t!==E.current&&(t.addEventListener(Ft,f),t.addEventListener(Je,f),E.current=t)}return i.useEffect(function(){return function(){e(E.current)}},[]),[r,e]};function xn(u,E,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,_=f.motionDeadline,D=f.motionLeaveImmediately,X=f.onAppearPrepare,pe=f.onEnterPrepare,de=f.onLeavePrepare,Se=f.onAppearStart,Ve=f.onEnterStart,tt=f.onLeaveStart,Ye=f.onAppearActive,at=f.onEnterActive,nt=f.onLeaveActive,Qe=f.onAppearEnd,Ze=f.onEnterEnd,dt=f.onLeaveEnd,ot=f.onVisibleChanged,Lt=wt(),gt=Object(R.a)(Lt,2),We=gt[0],ze=gt[1],rt=wt(Ot),st=Object(R.a)(rt,2),ke=st[0],ft=st[1],Tt=wt(null),pt=Object(R.a)(Tt,2),Ct=pt[0],Dt=pt[1],$t=Object(i.useRef)(!1),an=Object(i.useRef)(null),Ut=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 bt=gn();if(Rt&&!Rt.deadline&&Rt.target!==bt)return;var Yt;ke===kt&&ln.current?Yt=Qe==null?void 0:Qe(bt,Rt):ke===Kt&&ln.current?Yt=Ze==null?void 0:Ze(bt,Rt):ke===mt&&ln.current&&(Yt=dt==null?void 0:dt(bt,Rt)),Yt!==!1&&!Ut.current&&(ft(Ot),Dt(null))}var It=On(un),qt=Object(R.a)(It,1),Gt=qt[0],Wt=i.useMemo(function(){var Rt,bt,Yt;switch(ke){case"appear":return Rt={},Object(L.a)(Rt,jt,X),Object(L.a)(Rt,xt,Se),Object(L.a)(Rt,ht,Ye),Rt;case"enter":return bt={},Object(L.a)(bt,jt,pe),Object(L.a)(bt,xt,Ve),Object(L.a)(bt,ht,at),bt;case"leave":return Yt={},Object(L.a)(Yt,jt,de),Object(L.a)(Yt,xt,tt),Object(L.a)(Yt,ht,nt),Yt;default:return{}}},[ke]),An=hn(ke,function(Rt){if(Rt===jt){var bt=Wt[jt];return bt?bt(gn()):Nn}if(Mt in Wt){var Yt;Dt(((Yt=Wt[Mt])===null||Yt===void 0?void 0:Yt.call(Wt,gn(),null))||null)}return Mt===ht&&(Gt(gn()),_>0&&(clearTimeout(an.current),an.current=setTimeout(function(){un({deadline:!0})},_))),Fn}),wn=Object(R.a)(An,2),Wn=wn[0],Mt=wn[1],Cn=rn(Mt);ln.current=Cn,Xt(function(){ze(E);var Rt=$t.current;if($t.current=!0,!u)return;var bt;!Rt&&E&&d&&(bt=kt),Rt&&E&&r&&(bt=Kt),(Rt&&!E&&T||!Rt&&D&&!E&&T)&&(bt=mt),bt&&(ft(bt),Wn())},[E]),Object(i.useEffect)(function(){(ke===kt&&!d||ke===Kt&&!r||ke===mt&&!T)&&ft(Ot)},[d,r,T]),Object(i.useEffect)(function(){return function(){clearTimeout(an.current),Ut.current=!0}},[]),Object(i.useEffect)(function(){We!==void 0&&ke===Ot&&(ot==null||ot(We))},[We,ke]);var Bn=Ct;return Wt[jt]&&Mt===xt&&(Bn=Object(K.a)({transition:"none"},Bn)),[ke,Mt,Bn,We!=null?We:E]}var Hn=function(u){Object(j.a)(S,u);var E=Object(h.a)(S);function S(){return Object(z.a)(this,S),E.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 E=u;Object(k.a)(u)==="object"&&(E=u.transitionSupport);function S(e){return!!(e.motionName&&E)}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,_=e.forceRender,D=e.children,X=e.motionName,pe=e.leavedClassName,de=e.eventProps,Se=S(e),Ve=Object(i.useRef)(),tt=Object(i.useRef)();function Ye(){try{return Object(_t.a)(Ve.current||tt.current)}catch(ft){return null}}var at=xn(Se,d,Ye,e),nt=Object(R.a)(at,4),Qe=nt[0],Ze=nt[1],dt=nt[2],ot=nt[3],Lt=i.useRef(ot);ot&&(Lt.current=!0);var gt=Object(i.useRef)(r);gt.current=r;var We=i.useCallback(function(ft){Ve.current=ft,Object(P.b)(gt.current,ft)},[]),ze,rt=Object(K.a)(Object(K.a)({},de),{},{visible:d});if(!D)ze=null;else if(Qe===Ot||!S(e))ot?ze=D(Object(K.a)({},rt),We):!T&&Lt.current?ze=D(Object(K.a)(Object(K.a)({},rt),{},{className:pe}),We):_?ze=D(Object(K.a)(Object(K.a)({},rt),{},{style:{display:"none"}}),We):ze=null;else{var st,ke;Ze===jt?ke="prepare":rn(Ze)?ke="active":Ze===xt&&(ke="start"),ze=D(Object(K.a)(Object(K.a)({},rt),{},{className:q()(At(X,Qe),(st={},Object(L.a)(st,At(X,"".concat(Qe,"-").concat(ke)),ke),Object(L.a)(st,X,typeof X=="string"),st)),style:dt}),We)}return i.createElement(en,{ref:tt},ze)});return f.displayName="CSSMotion",f}var yn=Ln(vt),kn="add",_n="keep",vn="remove",jn="removed";function Vn(u){var E;return u&&Object(k.a)(u)==="object"&&"key"in u?E=u:E={key:u},Object(K.a)(Object(K.a)({},E),{},{key:String(E.key)})}function Mn(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return u.map(Vn)}function zt(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],S=[],f=0,e=E.length,r=Mn(u),t=Mn(E);r.forEach(function(T){for(var _=!1,D=f;D1});return m.forEach(function(T){S=S.filter(function(_){var D=_.key,X=_.status;return D!==T||X!==vn}),S.forEach(function(_){_.key===T&&(_.status=_n)})}),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 E=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(z.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(_){return _.key!==d?_:Object(K.a)(Object(K.a)({},_),{},{status:jn})})}})},t}return Object(H.a)(r,[{key:"render",value:function(){var d=this,m=this.state.keyEntities,T=this.props,_=T.component,D=T.children,X=T.onVisibleChanged,pe=Object(Ae.a)(T,["component","children","onVisibleChanged"]),de=_||i.Fragment,Se={};return Zt.forEach(function(Ve){Se[Ve]=pe[Ve],delete pe[Ve]}),delete pe.keys,i.createElement(de,pe,m.map(function(Ve){var tt=Ve.status,Ye=Object(Ae.a)(Ve,["status"]),at=tt===kn||tt===_n;return i.createElement(E,Object(s.a)({},Se,{key:Ye.key,visible:at,eventProps:Ye,onVisibleChanged:function(Qe){X==null||X(Qe,{key:Ye.key}),Qe||d.removeKey(Ye.key)}}),D)}))}}],[{key:"getDerivedStateFromProps",value:function(d,m){var T=d.keys,_=m.keyEntities,D=Mn(T),X=zt(_,D);return{keyEntities:X.filter(function(pe){var de=_.find(function(Se){var Ve=Se.key;return pe.key===Ve});return!(de&&de.status===jn&&pe.status===vn)})}}}]),r}(i.Component);return S.defaultProps={component:"div"},S}var Jt=sn(vt),tn=yn;function dn(u){var E=u.prefixCls,S=u.motion,f=u.animation,e=u.transitionName;return S||(f?{motionName:"".concat(E,"-").concat(f)}:e?{motionName:e}:null)}function Xn(u){var E=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(K.a)({motionAppear:!0},dn({motion:r,prefixCls:E,transitionName:d,animation:t}))),i.createElement(tn,Object(s.a)({},m,{visible:S,removeOnLeave:!0}),function(T){var _=T.className;return i.createElement("div",{style:{zIndex:f},className:q()("".concat(E,"-mask"),_)})})}var Un=n("9mu1"),$n=n("o0o1"),Ma=n.n($n),Sa=n("HaE+"),Gn=["measure","align",null,"motion"],Pt=function(u,E){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(D){d.current||r(D)}function T(){Xe.a.cancel(t.current)}function _(D){T(),t.current=Object(Xe.a)(function(){m(function(X){switch(e){case"align":return"motion";case"motion":return"stable";default:}return X}),D==null||D()})}return Object(i.useEffect)(function(){m("measure")},[u]),Object(i.useEffect)(function(){switch(e){case"measure":E();break;default:}e&&(t.current=Object(Xe.a)(Object(Sa.a)(Ma.a.mark(function D(){var X,pe;return Ma.a.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:X=Gn.indexOf(e),pe=Gn[X+1],pe&&X!==-1&&m(pe);case 3:case"end":return Se.stop()}},D)}))))},[e]),Object(i.useEffect)(function(){return function(){d.current=!0,T()}},[]),[e,_]},Yn=function(u){var E=i.useState({width:0,height:0}),S=Object(R.a)(E,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,E){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,_=u.forceRender,D=u.align,X=u.point,pe=u.getRootDomNode,de=u.getClassNameFromAlign,Se=u.onAlign,Ve=u.onMouseEnter,tt=u.onMouseLeave,Ye=u.onMouseDown,at=u.onTouchStart,nt=Object(i.useRef)(),Qe=Object(i.useRef)(),Ze=Object(i.useState)(),dt=Object(R.a)(Ze,2),ot=dt[0],Lt=dt[1],gt=Yn(m),We=Object(R.a)(gt,2),ze=We[0],rt=We[1];function st(){m&&rt(pe())}var ke=Pt(S,st),ft=Object(R.a)(ke,2),Tt=ft[0],pt=ft[1],Ct=Object(i.useRef)();function Dt(){return X||pe}function $t(){var It;(It=nt.current)===null||It===void 0||It.forceAlign()}function an(It,qt){var Gt=de(qt);ot!==Gt&&Lt(Gt),Tt==="align"&&(ot!==Gt?Promise.resolve().then(function(){$t()}):pt(function(){var Wt;(Wt=Ct.current)===null||Wt===void 0||Wt.call(Ct)}),Se==null||Se(It,qt))}var Ut=Object(K.a)({},dn(u));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(It){var qt=Ut[It];Ut[It]=function(Gt,Wt){return pt(),qt==null?void 0:qt(Gt,Wt)}});function on(){return new Promise(function(It){Ct.current=It})}i.useEffect(function(){!Ut.motionName&&Tt==="motion"&&pt()},[Ut.motionName,Tt]),i.useImperativeHandle(E,function(){return{forceAlign:$t,getElement:function(){return Qe.current}}});var gn=Object(K.a)(Object(K.a)({},ze),{},{zIndex:d,opacity:Tt==="motion"||Tt==="stable"||!S?void 0:0,pointerEvents:Tt==="stable"?void 0:"none"},r),ln=!0;(D==null?void 0:D.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:Qe,leavedClassName:"".concat(f,"-hidden")},Ut,{onAppearPrepare:on,onEnterPrepare:on,removeOnLeave:T,forceRender:_}),function(It,qt){var Gt=It.className,Wt=It.style,An=q()(f,e,ot,Gt);return i.createElement(Un.a,{target:Dt(),key:"popup",ref:nt,monitorWindowResize:!0,disabled:ln,align:D,onAlign:an},i.createElement("div",{ref:qt,className:An,onMouseEnter:Ve,onMouseLeave:tt,onMouseDownCapture:Ye,onTouchStartCapture:at,style:Object(K.a)(Object(K.a)({},Wt),gn)},un))})});Jn.displayName="PopupInner";var Ta=Jn,fn=i.forwardRef(function(u,E){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,_=T===void 0?{}:T,D=t.popupRender,X=i.useRef();i.useImperativeHandle(E,function(){return{forceAlign:function(){},getElement:function(){return X.current}}});var pe=Object(K.a)({zIndex:e},m),de=r;return i.Children.count(r)>1&&(de=i.createElement("div",{className:"".concat(S,"-content")},r)),D&&(de=D(de)),i.createElement(tn,Object(s.a)({visible:f,ref:X,removeOnLeave:!0},_),function(Se,Ve){var tt=Se.className,Ye=Se.style,at=q()(S,d,tt);return i.createElement("div",{ref:Ve,className:at,style:Object(K.a)(Object(K.a)({},Ye),pe)},de)})});fn.displayName="MobilePopupInner";var Ha=fn,Ra=["visible","mobile"],oa=i.forwardRef(function(u,E){var S=u.visible,f=u.mobile,e=Object(Ae.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),_=Object(R.a)(T,2),D=_[0],X=_[1],pe=Object(K.a)(Object(K.a)({},e),{},{visible:d});Object(i.useEffect)(function(){m(S),S&&f&&X(Re())},[S,f]);var de=D?i.createElement(Ha,Object(s.a)({},pe,{mobile:f,ref:E})):i.createElement(Ta,Object(s.a)({},pe,{ref:E}));return i.createElement("div",null,i.createElement(Xn,pe),de)});oa.displayName="Popup";var Va=oa,Xa=i.createContext(null),ra=Xa;function Qn(){}function $a(){return""}function Ga(u){return u?u.ownerDocument:window.document}var Aa=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Ya(u){var E=function(S){Object(j.a)(e,S);var f=Object(h.a)(e);function e(r){var t;Object(z.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(Ne.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 _=!t.state.popupVisible;(t.isClickToHide()&&!_||_&&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,_=t.getRootDomNode(),D=t.getPopupDomNode();(!Object(Ne.a)(_,T)||t.isContextMenuOnly())&&!Object(Ne.a)(D,T)&&!t.hasPopupMouseDown&&t.close()},t.getRootDomNode=function(){var m=t.props.getTriggerDOMNode;if(m)return m(t.triggerRef.current);try{var T=Object(_t.a)(t.triggerRef.current);if(T)return T}catch(_){}return Fe.a.findDOMNode(Object(x.a)(t))},t.getPopupClassNameFromAlign=function(m){var T=[],_=t.props,D=_.popupPlacement,X=_.builtinPlacements,pe=_.prefixCls,de=_.alignPoint,Se=_.getPopupClassNameFromAlign;return D&&X&&T.push(Te(X,pe,m,de)),Se&&T.push(Se(m)),T.join(" ")},t.getComponent=function(){var m=t.props,T=m.prefixCls,_=m.destroyPopupOnHide,D=m.popupClassName,X=m.onPopupAlign,pe=m.popupMotion,de=m.popupAnimation,Se=m.popupTransitionName,Ve=m.popupStyle,tt=m.mask,Ye=m.maskAnimation,at=m.maskTransitionName,nt=m.maskMotion,Qe=m.zIndex,Ze=m.popup,dt=m.stretch,ot=m.alignPoint,Lt=m.mobile,gt=m.forceRender,We=t.state,ze=We.popupVisible,rt=We.point,st=t.getPopupAlign(),ke={};return t.isMouseEnterToShow()&&(ke.onMouseEnter=t.onPopupMouseEnter),t.isMouseLeaveToHide()&&(ke.onMouseLeave=t.onPopupMouseLeave),ke.onMouseDown=t.onPopupMouseDown,ke.onTouchStart=t.onPopupMouseDown,i.createElement(Va,Object(s.a)({prefixCls:T,destroyPopupOnHide:_,visible:ze,point:ot&&rt,className:D,align:st,onAlign:X,animation:de,getClassNameFromAlign:t.getPopupClassNameFromAlign},ke,{stretch:dt,getRootDomNode:t.getRootDomNode,style:Ve,mask:tt,zIndex:Qe,transitionName:Se,maskAnimation:Ye,maskTransitionName:at,maskMotion:nt,ref:t.popupRef,motion:pe,mobile:Lt,forceRender:gt}),typeof Ze=="function"?Ze():Ze)},t.attachParent=function(m){Xe.a.cancel(t.attachId);var T=t.props,_=T.getPopupContainer,D=T.getDocument,X=t.getRootDomNode(),pe;_?(X||_.length===0)&&(pe=_(X)):pe=D(t.getRootDomNode()).body,pe?pe.appendChild(m):t.attachId=Object(Xe.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(ve.a)(m,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(m=m||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ve.a)(m,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(m=m||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ve.a)(m,"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),Xe.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?Pe(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,_=d*1e3;if(this.clearDelayTimer(),_){var D=m?{pageX:m.pageX,pageY:m.pageY}:null;this.delayTimer=window.setTimeout(function(){T.setPopupVisible(t,D),T.clearDelayTimer()},_)}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,_=d.alignPoint,D=d.className,X=d.autoDestroy,pe=i.Children.only(m),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,_&&(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 Se=q()(pe&&pe.props&&pe.props.className,D);Se&&(de.className=Se);var Ve=Object(K.a)({},de);Object(P.c)(pe)&&(Ve.ref=Object(P.a)(this.triggerRef,pe.ref));var tt=i.cloneElement(pe,Ve),Ye;return(t||this.popupRef.current||T)&&(Ye=i.createElement(u,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!t&&X&&(Ye=null),i.createElement(ra.Provider,{value:this.triggerContextValue},tt,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 E.contextType=ra,E.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},E}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(E,S,f){var e=re(S),r=E.getState();E.setState({defaultActiveFirst:Object(K.a)(Object(K.a)({},r.defaultActiveFirst),{},Object(L.a)({},e,f))})},la=function(u){Object(j.a)(S,u);var E=Object(h.a)(S);function S(f){var e;Object(z.a)(this,S),e=E.call(this,f),e.onDestroy=function(_){e.props.onDestroy(_)},e.onKeyDown=function(_){var D=_.keyCode,X=e.menuInstance,pe=e.props.store,de=e.getVisible();if(D===w.a.ENTER)return e.onTitleClick(_),mn(pe,e.props.eventKey,!0),!0;if(D===w.a.RIGHT)return de?X.onKeyDown(_):(e.triggerOpenChange(!0),mn(pe,e.props.eventKey,!0)),!0;if(D===w.a.LEFT){var Se;if(de)Se=X.onKeyDown(_);else return;return Se||(e.triggerOpenChange(!1),Se=!0),Se}return de&&(D===w.a.UP||D===w.a.DOWN)?X.onKeyDown(_):void 0},e.onOpenChange=function(_){e.props.onOpenChange(_)},e.onPopupVisibleChange=function(_){e.triggerOpenChange(_,_?"mouseenter":"mouseleave")},e.onMouseEnter=function(_){var D=e.props,X=D.eventKey,pe=D.onMouseEnter,de=D.store;mn(de,e.props.eventKey,!1),pe({key:X,domEvent:_})},e.onMouseLeave=function(_){var D=e.props,X=D.parentMenu,pe=D.eventKey,de=D.onMouseLeave;X.subMenuInstance=Object(x.a)(e),de({key:pe,domEvent:_})},e.onTitleMouseEnter=function(_){var D=e.props,X=D.eventKey,pe=D.onItemHover,de=D.onTitleMouseEnter;pe({key:X,hover:!0}),de({key:X,domEvent:_})},e.onTitleMouseLeave=function(_){var D=e.props,X=D.parentMenu,pe=D.eventKey,de=D.onItemHover,Se=D.onTitleMouseLeave;X.subMenuInstance=Object(x.a)(e),de({key:pe,hover:!1}),Se({key:pe,domEvent:_})},e.onTitleClick=function(_){var D=Object(x.a)(e),X=D.props;if(X.onTitleClick({key:X.eventKey,domEvent:_}),X.triggerSubMenuAction==="hover")return;e.triggerOpenChange(!e.getVisible(),"click"),mn(X.store,e.props.eventKey,!1)},e.onSubMenuClick=function(_){typeof e.props.onClick=="function"&&e.props.onClick(e.addKeyPath(_))},e.onSelect=function(_){e.props.onSelect(_)},e.onDeselect=function(_){e.props.onDeselect(_)},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(_){e.menuInstance=_},e.addKeyPath=function(_){return Object(K.a)(Object(K.a)({},_),{},{keyPath:(_.keyPath||[]).concat(e.props.eventKey)})},e.triggerOpenChange=function(_,D){var X=e.props.eventKey,pe=function(){e.onOpenChange({key:X,item:Object(x.a)(e),trigger:D,open:_})};D==="mouseenter"?e.mouseenterTimeout=setTimeout(function(){pe()},0):pe()},e.isChildrenSelected=function(){var _={find:!1};return fe(e.props.children,e.props.selectedKeys,_),_.find},e.isInlineMode=function(){return e.getMode()==="inline"},e.adjustWidth=function(){if(!e.subMenuTitle||!e.menuInstance)return;var _=Ue.findDOMNode(e.menuInstance);if(_.offsetWidth>=e.subMenuTitle.offsetWidth)return;_.style.minWidth="".concat(e.subMenuTitle.offsetWidth,"px")},e.saveSubMenuTitle=function(_){e.subMenuTitle=_},e.getBaseProps=function(){var _=Object(x.a)(e),D=_.props,X=e.getMode();return{mode:X==="horizontal"?"vertical":X,visible:e.getVisible(),level:D.level+1,inlineIndent:D.inlineIndent,focusable:!1,onClick:e.onSubMenuClick,onSelect:e.onSelect,onDeselect:e.onDeselect,onDestroy:e.onDestroy,selectedKeys:D.selectedKeys,eventKey:"".concat(D.eventKey,"-menu-"),openKeys:D.openKeys,motion:D.motion,onOpenChange:e.onOpenChange,subMenuOpenDelay:D.subMenuOpenDelay,parentMenu:Object(x.a)(e),subMenuCloseDelay:D.subMenuCloseDelay,forceSubMenuRender:D.forceSubMenuRender,triggerSubMenuAction:D.triggerSubMenuAction,builtinPlacements:D.builtinPlacements,defaultActiveFirst:D.store.getState().defaultActiveFirst[re(D.eventKey)],multiple:D.multiple,prefixCls:D.rootPrefixCls,id:e.internalMenuId,manualRef:e.saveMenuInstance,itemIcon:D.itemIcon,expandIcon:D.expandIcon,direction:D.direction}},e.getMotion=function(_,D){var X=Object(x.a)(e),pe=X.haveRendered,de=e.props,Se=de.motion,Ve=de.rootPrefixCls,tt=Object(K.a)(Object(K.a)({},Se),{},{leavedClassName:"".concat(Ve,"-hidden"),removeOnLeave:!1,motionAppear:pe||!D||_!=="inline"});return tt};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,_=function(){e.setState({mode:t,isOpen:T})},D=T!==this.state.isOpen,X=t!==this.state.mode;if((X||D)&&(Xe.a.cancel(this.updateStateRaf),X?this.updateStateRaf=Object(Xe.a)(_):_()),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),Xe.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,_=this.getMotion(t,d);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||d||m,!this.haveOpened)return i.createElement("div",null);var D=q()("".concat(r.prefixCls,"-sub"),Object(L.a)({},"".concat(r.prefixCls,"-rtl"),T==="rtl"));return this.isInlineMode()?i.createElement(tn,Object(s.a)({visible:r.visible,forceRender:m},_),function(X){var pe=X.className,de=X.style,Se=q()(D,pe);return e.renderPopupMenu(Se,de)}):this.renderPopupMenu(D)}},{key:"render",value:function(){var e,r,t,d=Object(K.a)({},this.props),m=this.getVisible(),T=this.getPrefixCls(),_=this.isInlineMode(),D=this.getMode(),X=q()(T,"".concat(T,"-").concat(D),(e={},Object(L.a)(e,d.className,!!d.className),Object(L.a)(e,this.getOpenClassName(),m),Object(L.a)(e,this.getActiveClassName(),d.active||m&&!_),Object(L.a)(e,this.getDisabledClassName(),d.disabled),Object(L.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 pe={},de={},Se={};d.disabled||(pe={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},de={onClick:this.onTitleClick},Se={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var Ve={},tt=d.direction,Ye=tt==="rtl";_&&(Ye?Ve.paddingRight=d.inlineIndent*d.level:Ve.paddingLeft=d.inlineIndent*d.level);var at={};this.getVisible()&&(at={"aria-owns":this.internalMenuId});var nt=null;D!=="horizontal"&&(nt=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(nt=i.createElement(this.props.expandIcon,Object(K.a)({},this.props))));var Qe=i.createElement("div",Object(s.a)({ref:this.saveSubMenuTitle,style:Ve,className:"".concat(T,"-title"),role:"button"},Se,de,{"aria-expanded":m},at,{"aria-haspopup":"true",title:typeof d.title=="string"?d.title:void 0}),d.title,nt||i.createElement("i",{className:"".concat(T,"-arrow")})),Ze=this.renderChildren(),dt=((r=d.parentMenu)===null||r===void 0?void 0:r.isRootMenu)?d.parentMenu.props.getPopupContainer:function(Dt){return Dt.parentNode},ot=pn[D],Lt=d.popupOffset?{offset:d.popupOffset}:{},gt=q()((t={},Object(L.a)(t,d.popupClassName,d.popupClassName&&!_),Object(L.a)(t,"".concat(T,"-rtl"),Ye),t)),We=d.disabled,ze=d.triggerSubMenuAction,rt=d.subMenuOpenDelay,st=d.forceSubMenuRender,ke=d.subMenuCloseDelay,ft=d.builtinPlacements;xe.forEach(function(Dt){return delete d[Dt]}),delete d.onClick;var Tt=Ye?Object(K.a)(Object(K.a)({},wa),ft):Object(K.a)(Object(K.a)({},ia),ft);delete d.direction;var pt=this.getBaseProps(),Ct=_?null:this.getMotion(pt.mode,pt.visible);return i.createElement("li",Object(s.a)({},d,pe,{className:X,role:"menuitem"}),i.createElement(Ja,{prefixCls:T,popupClassName:q()("".concat(T,"-popup"),gt),getPopupContainer:dt,builtinPlacements:Tt,popupPlacement:ot,popupVisible:_?!1:m,popupAlign:Lt,popup:_?null:Ze,action:We||_?[]:[ze],mouseEnterDelay:rt,mouseLeaveDelay:ke,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:st,popupMotion:Ct},Qe),_?Ze:null)}}]),S}(i.Component);la.defaultProps={onMouseEnter:N,onMouseLeave:N,onTitleMouseEnter:N,onTitleMouseLeave:N,onTitleClick:N,manualRef:N,mode:"vertical",title:""};var In=Object(V.b)(function(u,E){var S=u.openKeys,f=u.activeKey,e=u.selectedKeys,r=E.eventKey,t=E.subMenuKey;return{isOpen:S.indexOf(r)>-1,active:f[t]===r,selectedKeys:e}})(la);In.isSubMenu=!0;var Kn=In,Da="menuitem-overflowed",Qa=.5,Pa=function(u){Object(j.a)(S,u);var E=Object(h.a)(S);function S(){var f;return Object(z.a)(this,S),f=E.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,_=d.mode,D=d.prefixCls,X=d.theme;if(T!==1||_!=="horizontal")return null;var pe=f.props.children[0],de=pe.props,Se=de.children,Ve=de.title,tt=de.style,Ye=Object(Ae.a)(de,["children","title","style"]),at=Object(K.a)({},tt),nt="".concat(e,"-overflowed-indicator"),Qe="".concat(e,"-overflowed-indicator");r.length===0&&t!==!0?at=Object(K.a)(Object(K.a)({},at),{},{display:"none"}):t&&(at=Object(K.a)(Object(K.a)({},at),{},{visibility:"hidden",position:"absolute"}),nt="".concat(nt,"-placeholder"),Qe="".concat(Qe,"-placeholder"));var Ze=X?"".concat(D,"-").concat(X):"",dt={};return xe.forEach(function(ot){Ye[ot]!==void 0&&(dt[ot]=Ye[ot])}),i.createElement(Kn,Object(s.a)({title:m,className:"".concat(D,"-overflowed-submenu"),popupClassName:Ze},dt,{key:nt,eventKey:Qe,disabled:!1,style:at}),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];me(t,"display","inline-block");var d=f.getMenuItemNodes(),m=d.filter(function(T){return T.className.split(" ").indexOf(Da)>=0});m.forEach(function(T){me(T,"display","inline-block")}),f.menuItemSizes=d.map(function(T){return _e(T,!0)}),m.forEach(function(T){me(T,"display","none")}),f.overflowedIndicatorWidth=_e(e.children[e.children.length-1],!0),f.originalTotalWidth=f.menuItemSizes.reduce(function(T,_){return T+_},0),f.handleResize(),me(t,"display","none")},f.handleResize=function(){if(f.props.mode!=="horizontal")return;var e=f.childRef.current;if(!e)return;var r=_e(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 Be.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 _=m;if(r.props.mode==="horizontal"){var D=r.getOverflowedSubMenuItem(m.props.eventKey,[]);t!==void 0&&r.props.className.indexOf("".concat(r.props.prefixCls,"-root"))!==-1&&(T>t&&(_=i.cloneElement(m,{style:{display:"none"},eventKey:"".concat(m.props.eventKey,"-hidden"),className:"".concat(Da)})),T===t+1&&(r.overflowedItems=e.slice(t+1).map(function(pe){return i.cloneElement(pe,{key:pe.props.eventKey,mode:"vertical-left"})}),D=r.getOverflowedSubMenuItem(m.props.eventKey,r.overflowedItems)));var X=[].concat(Object(B.a)(d),[D,_]);return T===e.length-1&&X.push(r.getOverflowedSubMenuItem(m.props.eventKey,[],!0)),X}return[].concat(Object(B.a)(d),[_])},[])}},{key:"render",value:function(){var e=this.props,r=e.visible,t=e.prefixCls,d=e.overflowedIndicator,m=e.mode,T=e.level,_=e.tag,D=e.children,X=e.theme,pe=Object(Ae.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),de=_;return i.createElement(de,Object(s.a)({ref:this.childRef},pe),this.renderChildren(D))}}]),S}(i.Component);Pa.defaultProps={tag:"div",className:""};var ua=Pa;function Zn(u){return u.length?u.every(function(E){return!!E.props.disabled}):!0}function Sn(u,E,S){var f=u.getState();u.setState({activeKey:Object(K.a)(Object(K.a)({},f.activeKey),{},Object(L.a)({},E,S))})}function En(u){return u.eventKey||"0-menu-"}function qn(u,E){var S=E,f=u.children,e=u.eventKey;if(S){var r;if(je(f,function(t,d){t&&t.props&&!t.props.disabled&&S===Q(t,e,d)&&(r=!0)}),r)return S}return S=null,u.defaultActiveFirst&&je(f,function(t,d){!S&&t&&!t.props.disabled&&(S=Q(t,e,d))}),S}function Na(u){if(!u)return;var E=this.instanceArray.indexOf(u);E!==-1?this.instanceArray[E]=u:this.instanceArray.push(u)}var La=function(u){Object(j.a)(S,u);var E=Object(h.a)(S);function S(f){var e;return Object(z.a)(this,S),e=E.call(this,f),e.onKeyDown=function(r,t){var d=r.keyCode,m;if(e.getFlatInstanceArray().forEach(function(_){_&&_.props.active&&_.onKeyDown&&(m=_.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(pe,de){return pe&&pe.props.eventKey===d?(T=de,!1):!0}),!e.props.defaultActiveFirst&&T!==-1&&Zn(t.slice(T,m-1)))return;var _=(T+1)%m,D=_;do{var X=t[D];if(!X||X.props.disabled)D=(D+1)%m;else return X}while(D!==_);return null},e.renderCommonMenuItem=function(r,t,d){var m=e.props.store.getState(),T=Object(x.a)(e),_=T.props,D=Q(r,_.eventKey,t),X=r.props;if(!X||typeof r.type=="string")return r;var pe=D===m.activeKey,de=Object(K.a)(Object(K.a)({mode:X.mode||_.mode,level:_.level,inlineIndent:_.inlineIndent,renderMenuItem:e.renderMenuItem,rootPrefixCls:_.prefixCls,index:t,parentMenu:_.parentMenu,manualRef:X.disabled?void 0:Object(te.a)(r.ref,Na.bind(Object(x.a)(e))),eventKey:D,active:!X.disabled&&pe,multiple:_.multiple,onClick:function(Ve){(X.onClick||N)(Ve),e.onClick(Ve)},onItemHover:e.onItemHover,motion:_.motion,subMenuOpenDelay:_.subMenuOpenDelay,subMenuCloseDelay:_.subMenuCloseDelay,forceSubMenuRender:_.forceSubMenuRender,onOpenChange:e.onOpenChange,onDeselect:e.onDeselect,onSelect:e.onSelect,builtinPlacements:_.builtinPlacements,itemIcon:X.itemIcon||e.props.itemIcon,expandIcon:X.expandIcon||e.props.expandIcon},d),{},{direction:_.direction});return(_.mode==="inline"||ye())&&(de.triggerSubMenuAction="click"),i.cloneElement(r,Object(K.a)(Object(K.a)({},de),{},{key:D||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(K.a)(Object(K.a)({},f.store.getState().activeKey),{},Object(L.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||!ie()(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=q()(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,_=r.visible,D=r.level,X=r.mode,pe=r.overflowedIndicator,de=r.theme;return xe.forEach(function(Se){return delete r[Se]}),delete r.onClick,i.createElement(ua,Object(s.a)({},r,{prefixCls:m,mode:X,tag:"ul",level:D,theme:de,visible:_,overflowedIndicator:pe},d),Object(le.a)(r.children).map(function(Se,Ve){return e.renderMenuItem(Se,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:N};var ka=Object(V.b)()(La),ea=ka,Tn=n("Kwbf");function ca(u,E,S){var f=u.prefixCls,e=u.motion,r=u.defaultMotions,t=r===void 0?{}:r,d=u.openAnimation,m=u.openTransitionName,T=E.switchingModeFromInline;if(e)return e;if(Object(k.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 _=t[S];return _||(T?null:t.other)}var Ua=function(u){Object(j.a)(S,u);var E=Object(h.a)(S);function S(f){var e;Object(z.a)(this,S),e=E.call(this,f),e.onSelect=function(d){var m=Object(x.a)(e),T=m.props;if(T.selectable){var _=e.store.getState(),D=_.selectedKeys,X=d.key;T.multiple?D=D.concat([X]):D=[X],"selectedKeys"in T||e.store.setState({selectedKeys:D}),T.onSelect(Object(K.a)(Object(K.a)({},d),{},{selectedKeys:D}))}},e.onClick=function(d){var m=e.getRealMenuMode(),T=Object(x.a)(e),_=T.store,D=T.props.onOpenChange;m!=="inline"&&!("openKeys"in e.props)&&(_.setState({openKeys:[]}),D([])),e.props.onClick(d)},e.onKeyDown=function(d,m){e.innerMenu.getWrappedInstance().onKeyDown(d,m)},e.onOpenChange=function(d){var m=Object(x.a)(e),T=m.props,_=e.store.getState().openKeys.concat(),D=!1,X=function(de){var Se=!1;if(de.open)Se=_.indexOf(de.key)===-1,Se&&_.push(de.key);else{var Ve=_.indexOf(de.key);Se=Ve!==-1,Se&&_.splice(Ve,1)}D=D||Se};Array.isArray(d)?d.forEach(X):X(d),D&&("openKeys"in e.props||e.store.setState({openKeys:_}),T.onOpenChange(_))},e.onDeselect=function(d){var m=Object(x.a)(e),T=m.props;if(T.selectable){var _=e.store.getState().selectedKeys.concat(),D=d.key,X=_.indexOf(D);X!==-1&&_.splice(X,1),"selectedKeys"in T||e.store.setState({selectedKeys:_}),T.onDeselect(Object(K.a)(Object(K.a)({},d),{},{selectedKeys:_}))}},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,_=Object.prototype.toString.call(T)==="[object SVGAnimatedString]"?T.animVal:T,D=d.propertyName==="font-size"&&_.indexOf("anticon")>=0;(m||D)&&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(V.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(K.a)({},Object($.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(K.a)(Object(K.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(V.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={},_={prevProps:e};return t.mode==="inline"&&e.mode!=="inline"&&(_.switchingModeFromInline=!0),"openKeys"in e?T.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!t.inlineCollapsed||e.siderCollapsed&&!t.siderCollapsed)&&(_.switchingModeFromInline=!0,_.inlineOpenKeys=m.openKeys,T.openKeys=[]),(!e.inlineCollapsed&&t.inlineCollapsed||!e.siderCollapsed&&t.siderCollapsed)&&(T.openKeys=r.inlineOpenKeys,_.inlineOpenKeys=[])),Object.keys(T).length&&d.setState(T),_}}]),S}(i.Component);Ua.defaultProps={selectable:!0,onClick:N,onSelect:N,onOpenChange:N,onDeselect:N,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 E=Object(h.a)(S);function S(){var f;return Object(z.a)(this,S),f=E.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,_=r.onDeselect,D=r.isSelected,X={key:t,keyPath:[t],item:Object(x.a)(f),domEvent:e};m(X),d?D?_(X):T(X):D||T(X)},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(K.a)({},this.props),t=q()(this.getPrefixCls(),r.className,(e={},Object(L.a)(e,this.getActiveClassName(),!r.disabled&&r.active),Object(L.a)(e,this.getSelectedClassName(),r.isSelected),Object(L.a)(e,this.getDisabledClassName(),r.disabled),e)),d=Object(K.a)(Object(K.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(K.a)(Object(K.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(K.a)({},r.style);r.mode==="inline"&&(r.direction==="rtl"?T.paddingRight=r.inlineIndent*r.level:T.paddingLeft=r.inlineIndent*r.level),xe.forEach(function(D){return delete r[D]}),delete r.direction;var _=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(_=i.createElement(this.props.itemIcon,this.props)),i.createElement("li",Object(s.a)({},Object($.a)(r,["onClick","onMouseEnter","onMouseLeave","onSelect"]),d,m,{style:T,ref:this.saveNode}),r.children,_)}}]),S}(i.Component);Rn.isMenuItem=!0,Rn.defaultProps={onSelect:N,onMouseEnter:N,onMouseLeave:N,manualRef:N};var da=Object(V.b)(function(u,E){var S=u.activeKey,f=u.selectedKeys,e=E.eventKey,r=E.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 E=Object(h.a)(S);function S(){var f;return Object(z.a)(this,S),f=E.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"),_=e.title,D=e.children;return xe.forEach(function(X){return delete e[X]}),delete e.direction,i.createElement("li",Object(s.a)({},e,{onClick:function(pe){return pe.stopPropagation()},className:"".concat(t," ").concat(d,"-item-group")}),i.createElement("div",{className:m,title:typeof _=="string"?_:void 0},_),i.createElement("ul",{className:T},i.Children.map(D,this.renderInnerMenuItem)))}}]),S}(i.Component);pa.isMenuItemGroup=!0,pa.defaultProps={disabled:!0};var Za=pa,ma=function(E){var S=E.className,f=E.rootPrefixCls,e=E.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=n("eDIo");function eo(u,E){var S=u.prefixCls,f=u.editable,e=u.locale,r=u.style;return!f||f.showAdd===!1?null:i.createElement("button",{ref:E,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,E){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,_=u.style,D=u.className,X=u.editable,pe=u.tabBarGutter,de=u.rtl,Se=u.onTabClick,Ve=Object(i.useState)(!1),tt=Object(R.a)(Ve,2),Ye=tt[0],at=tt[1],nt=Object(i.useState)(null),Qe=Object(R.a)(nt,2),Ze=Qe[0],dt=Qe[1],ot="".concat(f,"-more-popup"),Lt="".concat(S,"-dropdown"),gt=Ze!==null?"".concat(ot,"-").concat(Ze):null,We=r==null?void 0:r.dropdownAriaLabel,ze=i.createElement(Ka,{onClick:function(Ct){var Dt=Ct.key,$t=Ct.domEvent;Se(Dt,$t),at(!1)},id:ot,tabIndex:-1,role:"listbox","aria-activedescendant":gt,selectedKeys:[Ze],"aria-label":We!==void 0?We:"expanded dropdown"},e.map(function(pt){return i.createElement(fa,{key:pt.key,id:"".concat(ot,"-").concat(pt.key),role:"option","aria-controls":f&&"".concat(f,"-panel-").concat(pt.key),disabled:pt.disabled},pt.tab)}));function rt(pt){for(var Ct=e.filter(function(on){return!on.disabled}),Dt=Ct.findIndex(function(on){return on.key===Ze})||0,$t=Ct.length,an=0;an<$t;an+=1){Dt=(Dt+pt+$t)%$t;var Ut=Ct[Dt];if(!Ut.disabled){dt(Ut.key);return}}}function st(pt){var Ct=pt.which;if(!Ye){[w.a.DOWN,w.a.SPACE,w.a.ENTER].includes(Ct)&&(at(!0),pt.preventDefault());return}switch(Ct){case w.a.UP:rt(-1),pt.preventDefault();break;case w.a.DOWN:rt(1),pt.preventDefault();break;case w.a.ESC:at(!1);break;case w.a.SPACE:case w.a.ENTER:Ze!==null&&Se(Ze,pt);break}}Object(i.useEffect)(function(){var pt=document.getElementById(gt);pt&&pt.scrollIntoView&&pt.scrollIntoView(!1)},[Ze]),Object(i.useEffect)(function(){Ye||dt(null)},[Ye]);var ke=Object(L.a)({},de?"marginLeft":"marginRight",pe);e.length||(ke.visibility="hidden",ke.order=1);var ft=q()(Object(L.a)({},"".concat(Lt,"-rtl"),de)),Tt=t?null:i.createElement(ha.a,{prefixCls:Lt,overlay:ze,trigger:["hover"],visible:Ye,transitionName:T,onVisibleChange:at,overlayClassName:ft,mouseEnterDelay:.1,mouseLeaveDelay:.1},i.createElement("button",{type:"button",className:"".concat(S,"-nav-more"),style:ke,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":ot,id:"".concat(f,"-more"),"aria-expanded":Ye,onKeyDown:st},m));return i.createElement("div",{className:q()("".concat(S,"-nav-operations"),D),style:_,ref:E},Tt,i.createElement(ta,{prefixCls:S,locale:r,editable:X}))}var no=i.forwardRef(to),va=Object(i.createContext)(null),lt=.1,ut=.01,Nt=20,Qt=Math.pow(.995,Nt);function zn(){var u=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(u)||/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(u.substr(0,4)))}function za(u,E){var S=Object(i.useState)(),f=Object(R.a)(S,2),e=f[0],r=f[1],t=Object(i.useState)(0),d=Object(R.a)(t,2),m=d[0],T=d[1],_=Object(i.useState)(0),D=Object(R.a)(_,2),X=D[0],pe=D[1],de=Object(i.useState)(),Se=Object(R.a)(de,2),Ve=Se[0],tt=Se[1],Ye=Object(i.useRef)();function at(We){var ze=We.touches[0],rt=ze.screenX,st=ze.screenY;r({x:rt,y:st}),window.clearInterval(Ye.current)}function nt(We){if(!e)return;We.preventDefault();var ze=We.touches[0],rt=ze.screenX,st=ze.screenY;r({x:rt,y:st});var ke=rt-e.x,ft=st-e.y;E(ke,ft);var Tt=Date.now();T(Tt),pe(Tt-m),tt({x:ke,y:ft})}function Qe(){if(!e)return;if(r(null),tt(null),Ve){var We=Ve.x/X,ze=Ve.y/X,rt=Math.abs(We),st=Math.abs(ze);if(Math.max(rt,st)ft?(st=ze,ot.current="x"):(st=rt,ot.current="y");var Tt=Date.now();Tt-Ze.current>100&&(dt.current=!1),(E(-st,-st)||dt.current)&&(We.preventDefault(),dt.current=!0),Ze.current=Tt}var gt=Object(i.useRef)(null);gt.current={onTouchStart:at,onTouchMove:nt,onTouchEnd:Qe,onWheel:Lt},i.useEffect(function(){function We(ke){gt.current.onTouchStart(ke)}function ze(ke){gt.current.onTouchMove(ke)}function rt(ke){gt.current.onTouchEnd(ke)}function st(ke){gt.current.onWheel(ke)}return document.addEventListener("touchmove",ze,{passive:!1}),document.addEventListener("touchend",rt,{passive:!1}),u.current.addEventListener("touchstart",We,{passive:!1}),u.current.addEventListener("wheel",st),function(){document.removeEventListener("touchmove",ze),document.removeEventListener("touchend",rt)}},[])}function ba(){var u=Object(i.useRef)(new Map);function E(f){return u.current.has(f)||u.current.set(f,i.createRef()),u.current.get(f)}function S(f){u.current.delete(f)}return[E,S]}function Wa(u,E){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&&E(m,S.current),S.current=m,r({})}return[S.current,t]}var Ba=function(E){var S=E.position,f=E.prefixCls,e=E.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,E){var S,f=i.useContext(va),e=f.prefixCls,r=f.tabs,t=u.className,d=u.style,m=u.id,T=u.animated,_=u.activeKey,D=u.rtl,X=u.extra,pe=u.editable,de=u.locale,Se=u.tabPosition,Ve=u.tabBarGutter,tt=u.children,Ye=u.onTabClick,at=u.onTabScroll,nt=Object(i.useRef)(),Qe=Object(i.useRef)(),Ze=Object(i.useRef)(),dt=Object(i.useRef)(),ot=ba(),Lt=Object(R.a)(ot,2),gt=Lt[0],We=Lt[1],ze=Se==="top"||Se==="bottom",rt=Wa(0,function(yt,it){ze&&at&&at({direction:yt>it?"left":"right"})}),st=Object(R.a)(rt,2),ke=st[0],ft=st[1],Tt=Wa(0,function(yt,it){!ze&&at&&at({direction:yt>it?"top":"bottom"})}),pt=Object(R.a)(Tt,2),Ct=pt[0],Dt=pt[1],$t=Object(i.useState)(0),an=Object(R.a)($t,2),Ut=an[0],on=an[1],gn=Object(i.useState)(0),ln=Object(R.a)(gn,2),un=ln[0],It=ln[1],qt=Object(i.useState)(0),Gt=Object(R.a)(qt,2),Wt=Gt[0],An=Gt[1],wn=Object(i.useState)(0),Wn=Object(R.a)(wn,2),Mt=Wn[0],Cn=Wn[1],Bn=Object(i.useState)(null),Rt=Object(R.a)(Bn,2),bt=Rt[0],Yt=Rt[1],Xo=Object(i.useState)(null),bo=Object(R.a)(Xo,2),na=bo[0],$o=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=U(new Map),Eo=Object(R.a)(er,2),tr=Eo[0],nr=Eo[1],Fa=l(r,tr,Ut),Co="".concat(e,"-nav-operations-hidden"),ga=0,ya=0;ze?D?(ga=0,ya=Math.max(0,Ut-bt)):(ga=Math.min(0,bt-Ut),ya=0):(ga=Math.min(0,na-un),ya=0);function ao(yt){return ytya?[ya,!1]:[yt,!0]}var Oo=Object(i.useRef)(),ar=Object(i.useState)(),xo=Object(R.a)(ar,2),oo=xo[0],_o=xo[1];function ro(){_o(Date.now())}function io(){window.clearTimeout(Oo.current)}za(nt,function(yt,it){var Bt=!1;function cn(Ca,Oa){Ca(function(xa){var _a=ao(xa+Oa),aa=Object(R.a)(_a,2),co=aa[0],fo=aa[1];return Bt=fo,co})}if(ze){if(bt>=Ut)return Bt;cn(ft,yt)}else{if(na>=un)return Bt;cn(Dt,it)}return io(),ro(),Bt}),Object(i.useEffect)(function(){return io(),oo&&(Oo.current=window.setTimeout(function(){_o(0)},100)),io},[oo]);function jo(){var yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_,it=Fa.get(yt);if(!it)return;if(ze){var Bt=ke;D?it.rightke+bt&&(Bt=it.right+it.width-bt):it.left<-ke?Bt=-it.left:it.left+it.width>-ke+bt&&(Bt=-(it.left+it.width-bt)),Dt(0),ft(ao(Bt)[0])}else{var cn=Ct;it.top<-Ct?cn=-it.top:it.top+it.height>-Ct+na&&(cn=-(it.top+it.height-na)),ft(0),Dt(ao(cn)[0])}}var or=v(Fa,{width:bt,height:na,left:ke,top:Ct},{width:Wt,height:Mt},{width:Yo,height:Zo},Object(K.a)(Object(K.a)({},u),{},{tabs:r})),Mo=Object(R.a)(or,2),rr=Mo[0],ir=Mo[1],sr=r.map(function(yt){var it=yt.key;return i.createElement(O,{id:m,prefixCls:e,key:it,rtl:D,tab:yt,closable:yt.closable,editable:pe,active:it===_,tabPosition:Se,tabBarGutter:Ve,renderWrapper:tt,removeAriaLabel:de==null?void 0:de.removeAriaLabel,ref:gt(it),onClick:function(cn){Ye(it,cn)},onRemove:function(){We(it)},onFocus:function(){jo(it),ro(),D||(nt.current.scrollLeft=0),nt.current.scrollTop=0}})}),so=ce(function(){var yt,it,Bt,cn,Ca,Oa,xa,_a,aa,co=((yt=nt.current)===null||yt===void 0?void 0:yt.offsetWidth)||0,fo=((it=nt.current)===null||it===void 0?void 0:it.offsetHeight)||0,No=((Bt=dt.current)===null||Bt===void 0?void 0:Bt.offsetWidth)||0,Lo=((cn=dt.current)===null||cn===void 0?void 0:cn.offsetHeight)||0,pr=((Ca=Ze.current)===null||Ca===void 0?void 0:Ca.offsetWidth)||0,mr=((Oa=Ze.current)===null||Oa===void 0?void 0:Oa.offsetHeight)||0;Yt(co),$o(fo),Jo(No),qo(Lo);var ko=(((xa=Qe.current)===null||xa===void 0?void 0:xa.offsetWidth)||0)-No,Uo=(((_a=Qe.current)===null||_a===void 0?void 0:_a.offsetHeight)||0)-Lo;on(ko),It(Uo);var Io=(aa=Ze.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=gt(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(B.a)(lr),Object(B.a)(ur)),cr=Object(i.useState)(),To=Object(R.a)(cr,2),dr=To[0],fr=To[1],Dn=Fa.get(_),Ro=Object(i.useRef)();function Ao(){Oe.a.cancel(Ro.current)}Object(i.useEffect)(function(){var yt={};return Dn&&(ze?(D?yt.right=Dn.right:yt.left=Dn.left,yt.width=Dn.width):(yt.top=Dn.top,yt.height=Dn.height)),Ao(),Ro.current=Oe()(function(){fr(yt)}),Ao},[Dn,ze,D]),Object(i.useEffect)(function(){jo()},[_,Dn,Fa,ze]),Object(i.useEffect)(function(){so()},[D,Ve,_,r.map(function(yt){return yt.key}).join("_")]);var wo=!!So.length,Ea="".concat(e,"-nav-wrap"),lo,uo,Do,Po;return ze?D?(uo=ke>0,lo=ke+bt1)Object(B.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(l.length===0)return Object(B.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var a=l[0];if(p.isValidElement(a)&&Object(ae.c)(a)){var v=a.ref;l[0]=p.cloneElement(a,{ref:Object(ae.a)(v,this.setChildNode)})}return l.length===1?l[0]:l.map(function(s,z){return!p.isValidElement(s)||"key"in s&&s.key!==null?s:p.cloneElement(s,{key:"".concat(he,"-").concat(z)})})}}]),Y}(p.Component);ce.displayName="ResizeObserver",Ce.a=ce},wCXF:function($e,Ce,n){"use strict";n.d(Ce,"a",function(){return Fe});var L=n("rePB"),R=n("VTBJ"),Ae=n("KQm4"),K=n("U8pU"),i=n("ODXe"),p=n("q1tI"),q=n("TSYQ"),le=n.n(q),W=n("Gytx"),B=n.n(W),ae=n("Kwbf"),Oe=n("t23M"),he=n("qx4F"),ce=n("6eGT"),U=n("IBYe"),w=n("Ff2n"),Y=n("c+Xe"),O=n("fyJ8"),y=n("biw7");function l(P,ve,Ee,De,Pe){var Te=Ee[P]||{},Re=Ee[ve]||{},be,we;Te.fixed==="left"?be=De.left[P]:Re.fixed==="right"&&(we=De.right[ve]);var Ke=!1,Le=!1,Ie=!1,Ge=!1,He=Ee[ve+1],qe=Ee[P-1];if(Pe==="rtl"){if(be!==void 0){var Et=qe&&qe.fixed==="left";Ge=!Et}else if(we!==void 0){var ct=He&&He.fixed==="right";Ie=!ct}}else if(be!==void 0){var vt=He&&He.fixed==="left";Ke=!vt}else if(we!==void 0){var Je=qe&&qe.fixed==="right";Le=!Je}return{fixLeft:be,fixRight:we,lastFixLeft:Ke,firstFixRight:Le,lastFixRight:Ie,firstFixLeft:Ge,isSticky:De.isSticky}}var a=n("sR1s");function v(P){var ve=P.cells,Ee=P.stickyOffsets,De=P.flattenColumns,Pe=P.rowComponent,Te=P.cellComponent,Re=P.onHeaderRow,be=P.index,we=p.useContext(y.a),Ke=we.prefixCls,Le=we.direction,Ie;Re&&(Ie=Re(ve.map(function(He){return He.column}),be));var Ge=Object(a.a)(ve.map(function(He){return He.column}));return p.createElement(Pe,Object.assign({},Ie),ve.map(function(He,qe){var Et=He.column,ct=l(He.colStart,He.colEnd,De,Ee,Le),vt;return Et&&Et.onHeaderCell&&(vt=He.column.onHeaderCell(Et)),p.createElement(O.a,Object.assign({},He,{ellipsis:Et.ellipsis,align:Et.align,component:Te,prefixCls:Ke,key:Ge[qe]},ct,{additionalProps:vt,rowType:"header"}))}))}v.displayName="HeaderRow";var s=v;function z(P){var ve=[];function Ee(Re,be){var we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ve[we]=ve[we]||[];var Ke=be,Le=Re.filter(Boolean).map(function(Ie){var Ge={key:Ie.key,className:Ie.className||"",children:Ie.title,column:Ie,colStart:Ke},He=1,qe=Ie.children;return qe&&qe.length>0&&(He=Ee(qe,Ke,we+1).reduce(function(Et,ct){return Et+ct},0),Ge.hasSubColumns=!0),"colSpan"in Ie&&(He=Ie.colSpan),"rowSpan"in Ie&&(Ge.rowSpan=Ie.rowSpan),Ge.colSpan=He,Ge.colEnd=Ge.colStart+He-1,ve[we].push(Ge),Ke+=He,He});return Le}Ee(P,0);for(var De=ve.length,Pe=function(be){ve[be].forEach(function(we){!("rowSpan"in we)&&!we.hasSubColumns&&(we.rowSpan=De-be)})},Te=0;Te=0;be-=1){var we=ve[be],Ke=Ee&&Ee[be],Le=Ke&&Ke[j.a];(we||Le||Re)&&(Pe.unshift(p.createElement("col",Object.assign({key:be,style:{width:we,minWidth:we}},Le))),Re=!0)}return p.createElement("colgroup",null,Pe)}var V=h;function $(P,ve){return Object(p.useMemo)(function(){for(var Ee=[],De=0;De1?Jt-1:0),dn=1;dn=Ie&&(St=Ie-Ge),Re({scrollLeft:St/Ie*(Le+2)}),Je.current.x=et.pageX},jt=function(){var et=Object(xe.b)(Te.current).top,wt=et+Te.current.offsetHeight,Vt=document.documentElement.scrollTop+window.innerHeight;wt-Object(he.a)()<=Vt||et>=Vt-be?vt(function(Xt){return Object(R.a)(Object(R.a)({},Xt),{},{isHiddenScrollBar:!0})}):vt(function(Xt){return Object(R.a)(Object(R.a)({},Xt),{},{isHiddenScrollBar:!1})})},xt=function(et){vt(function(wt){return Object(R.a)(Object(R.a)({},wt),{},{scrollLeft:et/Le*Ie||0})})};return p.useImperativeHandle(Ee,function(){return{setScrollLeft:xt}}),p.useEffect(function(){var ht=Object(fe.a)(document.body,"mouseup",Kt,!1),et=Object(fe.a)(document.body,"mousemove",Ht,!1);return jt(),function(){ht.remove(),et.remove()}},[Ge,Ot]),p.useEffect(function(){var ht=Object(fe.a)(window,"scroll",jt,!1),et=Object(fe.a)(window,"resize",jt,!1);return function(){ht.remove(),et.remove()}},[]),p.useEffect(function(){ct.isHiddenScrollBar||vt(function(ht){var et,wt;return Object(R.a)(Object(R.a)({},ht),{},{scrollLeft:Te.current.scrollLeft/((et=Te.current)===null||et===void 0?void 0:et.scrollWidth)*((wt=Te.current)===null||wt===void 0?void 0:wt.clientWidth)})})},[ct.isHiddenScrollBar]),Le<=Ie||!Ge||ct.isHiddenScrollBar?null:p.createElement("div",{style:{height:Object(he.a)(),width:Ie,bottom:be},className:"".concat(Ke,"-sticky-scroll")},p.createElement("div",{onMouseDown:mt,ref:He,className:le()("".concat(Ke,"-sticky-scroll-bar"),Object(L.a)({},"".concat(Ke,"-sticky-scroll-bar-active"),Ot)),style:{width:"".concat(Ge,"px"),transform:"translate3d(".concat(ct.scrollLeft,"px, 0, 0)")}}))},me=p.forwardRef(_e);function ye(P,ve){return p.useMemo(function(){var Ee=!!P;return{isSticky:Ee,stickyClassName:Ee?"".concat(ve,"-sticky-header"):"",offsetHeader:Object(K.a)(P)==="object"&&P.offsetHeader||0,offsetScroll:Object(K.a)(P)==="object"&&P.offsetScroll||0}},[P,ve])}var Be=[],Ue={},Fe="rc-table-internal-hook",Xe=p.memo(function(P){var ve=P.children;return ve},function(P,ve){return B()(P.props,ve.props)?P.pingLeft!==ve.pingLeft||P.pingRight!==ve.pingRight:!1});function Ne(P){var ve,Ee=P.prefixCls,De=P.className,Pe=P.rowClassName,Te=P.style,Re=P.data,be=P.rowKey,we=P.scroll,Ke=P.tableLayout,Le=P.direction,Ie=P.title,Ge=P.footer,He=P.summary,qe=P.id,Et=P.showHeader,ct=P.components,vt=P.emptyText,Je=P.onRow,Ft=P.onHeaderRow,At=P.internalHooks,Ot=P.transformColumns,kt=P.internalRefs,Kt=P.sticky,mt=Re||Be,Ht=!!mt.length,jt=p.useState(0),xt=Object(i.a)(jt,2),ht=xt[0],et=xt[1];p.useEffect(function(){et(Object(he.a)())});var wt=p.useMemo(function(){return Object(a.c)(ct,{})},[ct]),Vt=p.useCallback(function(lt,ut){return Object(a.b)(wt,lt)||ut},[wt]),Xt=p.useMemo(function(){return typeof be=="function"?be:function(lt){var ut=lt&<[be];return ut}},[be]),St=Object(j.c)(P),Pn=St.expandIcon,Nn=St.expandedRowKeys,Fn=St.defaultExpandedRowKeys,rn=St.defaultExpandAllRows,hn=St.expandedRowRender,On=St.onExpand,xn=St.onExpandedRowsChange,Hn=St.expandRowByClick,en=St.rowExpandable,Ln=St.expandIconColumnIndex,yn=St.expandedRowClassName,kn=St.childrenColumnName,_n=St.indentSize,vn=Pn||re,jn=kn||"children",Vn=p.useMemo(function(){return hn?"row":P.expandable&&At===Fe&&P.expandable.__PARENT_RENDER_ICON__||mt.some(function(lt){return lt&&Object(K.a)(lt)==="object"&<[jn]})?"nest":!1},[!!hn,mt]),Mn=p.useState(function(){return Fn||(rn?je(mt,Xt,jn):[])}),zt=Object(i.a)(Mn,2),Zt=zt[0],sn=zt[1],Jt=p.useMemo(function(){return new Set(Nn||Zt||[])},[Nn,Zt]),tn=p.useCallback(function(lt){var ut=Xt(lt,mt.indexOf(lt)),Nt,Qt=Jt.has(ut);Qt?(Jt.delete(ut),Nt=Object(Ae.a)(Jt)):Nt=[].concat(Object(Ae.a)(Jt),[ut]),sn(Nt),On&&On(!Qt,lt),xn&&xn(Nt)},[Xt,Jt,mt,On,xn]),dn=p.useState(0),Xn=Object(i.a)(dn,2),Un=Xn[0],$n=Xn[1],Ma=Object(oe.b)(Object(R.a)(Object(R.a)(Object(R.a)({},P),St),{},{expandable:!!hn,expandedKeys:Jt,getRowKey:Xt,onTriggerExpand:tn,expandIcon:vn,expandIconColumnIndex:Ln,direction:Le}),At===Fe?Ot:null),Sa=Object(i.a)(Ma,2),Gn=Sa[0],Pt=Sa[1],Yn=p.useMemo(function(){return{columns:Gn,flattenColumns:Pt}},[Gn,Pt]),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],Xa=p.useState(!1),ra=Object(i.a)(Xa,2),Qn=ra[0],$a=ra[1],Ga=G(new Map),Aa=Object(i.a)(Ga,2),Ya=Aa[0],Ja=Aa[1],bn=Object(a.a)(Pt),ia=bn.map(function(lt){return Ya.get(lt)}),wa=p.useMemo(function(){return ia},[ia.join("_")]),sa=g(wa,Pt.length,Le),nn=we&&Object(a.d)(we.y),pn=we&&Object(a.d)(we.x),mn=pn&&Pt.some(function(lt){var ut=lt.fixed;return ut}),la=p.useRef(),In=ye(Kt,Ee),Kn=In.isSticky,Da=In.offsetHeader,Qa=In.offsetScroll,Pa=In.stickyClassName,ua,Zn,Sn;nn&&(Zn={overflowY:"scroll",maxHeight:we.y}),pn&&(ua={overflowX:"auto"},nn||(Zn={overflowY:"hidden"}),Sn={width:we.x===!0?"auto":we.x,minWidth:"100%"});var En=p.useCallback(function(lt,ut){Ja(function(Nt){var Qt=new Map(Nt);return Qt.set(lt,ut),Qt})},[]),qn=ne(null),Na=Object(i.a)(qn,2),La=Na[0],ka=Na[1];function ea(lt,ut){if(!ut)return;typeof ut=="function"?ut(lt):ut.scrollLeft!==lt&&(ut.scrollLeft=lt)}var Tn=function(ut){var Nt=ut.currentTarget,Qt=ut.scrollLeft,zn=typeof Qt=="number"?Qt:Nt.scrollLeft,za=Nt||Ue;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(Nt){var Wa=Nt.scrollWidth,Ba=Nt.clientWidth;Va(zn>0),$a(zn0?[].concat(Object(R.a)(w),Object(R.a)(ae(l).map(function(a){return Object(Ae.a)({fixed:y},a)}))):[].concat(Object(R.a)(w),[Object(Ae.a)(Object(Ae.a)({},Y),{},{fixed:y})])},[])}function Oe(U){for(var w=!0,Y=0;Y=0;l-=1){var a=U[l];if(y&&a.fixed!=="right")y=!1;else if(!y&&a.fixed==="right"){Object(q.a)(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function he(U){return U.map(function(w){var Y=w.fixed,O=Object(K.a)(w,["fixed"]),y=Y;return Y==="left"?y="right":Y==="right"&&(y="left"),Object(Ae.a)({fixed:y},O)})}function ce(U,w){var Y=U.prefixCls,O=U.columns,y=U.children,l=U.expandable,a=U.expandedKeys,v=U.getRowKey,s=U.onTriggerExpand,z=U.expandIcon,H=U.rowExpandable,x=U.expandIconColumnIndex,j=U.direction,h=U.expandRowByClick,V=i.useMemo(function(){return O||B(y)},[O,y]),$=i.useMemo(function(){if(l){var ie,k=x||0,F=V[k],C=(ie={},Object(L.a)(ie,W.a,{className:"".concat(Y,"-expand-icon-col")}),Object(L.a)(ie,"title",""),Object(L.a)(ie,"fixed",F?F.fixed:null),Object(L.a)(ie,"className","".concat(Y,"-row-expand-icon-cell")),Object(L.a)(ie,"render",function(M,A,J){var se=v(A,J),ge=a.has(se),Z=H?H(A):!0,oe=z({prefixCls:Y,expanded:ge,expandable:Z,record:A,onExpand:s});return h?i.createElement("span",{onClick:function(ee){return ee.stopPropagation()}},oe):oe}),ie),b=V.slice();return k>=0&&b.splice(k,0,C),b}return V},[l,V,v,a,z,j]),te=i.useMemo(function(){var ie=$;return w&&(ie=w(ie)),ie.length||(ie=[{render:function(){return null}}]),ie},[w,$,j]),Me=i.useMemo(function(){return j==="rtl"?he(ae(te)):ae(te)},[te,j]);return[te,Me]}Ce.b=ce},"y0+3":function($e,Ce,n){"use strict";n.d(Ce,"a",function(){return ae}),n.d(Ce,"b",function(){return he});var L=/margin|padding|width|height|max|min|offset/,R={left:!0,top:!0},Ae={cssFloat:1,styleFloat:1,float:1};function K(ce){return ce.nodeType===1?ce.ownerDocument.defaultView.getComputedStyle(ce,null):{}}function i(ce,U,w){if(U=U.toLowerCase(),w==="auto"){if(U==="height")return ce.offsetHeight;if(U==="width")return ce.offsetWidth}return U in R||(R[U]=L.test(U)),R[U]?parseFloat(w)||0:w}function p(ce,U){var w=arguments.length,Y=K(ce);return U=Ae[U]?"cssFloat"in ce.style?"cssFloat":"styleFloat":U,w===1?Y:i(ce,U,Y[U]||ce.style[U])}function q(ce,U,w){var Y=arguments.length;if(U=Ae[U]?"cssFloat"in ce.style?"cssFloat":"styleFloat":U,Y===3)return typeof w=="number"&&L.test(U)&&(w="".concat(w,"px")),ce.style[U]=w,w;for(var O in U)U.hasOwnProperty(O)&&q(ce,O,U[O]);return K(ce)}function le(ce){return ce===document.body?document.documentElement.clientWidth:ce.offsetWidth}function W(ce){return ce===document.body?window.innerHeight||document.documentElement.clientHeight:ce.offsetHeight}function B(){var ce=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),U=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:ce,height:U}}function ae(){var ce=document.documentElement.clientWidth,U=window.innerHeight||document.documentElement.clientHeight;return{width:ce,height:U}}function Oe(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function he(ce){var U=ce.getBoundingClientRect(),w=document.documentElement;return{left:U.left+(window.pageXOffset||w.scrollLeft)-(w.clientLeft||document.body.clientLeft||0),top:U.top+(window.pageYOffset||w.scrollTop)-(w.clientTop||document.body.clientTop||0)}}}}]); diff --git a/umi.458f39be.js b/umi.ea13d0f9.js similarity index 99% rename from umi.458f39be.js rename to umi.ea13d0f9.js index 83ae6234b9..6282e882e6 100644 --- a/umi.458f39be.js +++ b/umi.ea13d0f9.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