From bcd40eb8163afd3e9e8119b23c262731991c1775 Mon Sep 17 00:00:00 2001 From: autosubmit Date: Wed, 17 Dec 2025 11:52:24 +0800 Subject: [PATCH] Auto Submit --- index.html | 2 +- ...ts__Exercise__Add__index.86449254.async.js | 108 +++++++------- ..._Exercise__Answer__index.2a13ad19.async.js | 138 ------------------ ..._Exercise__Answer__index.319a2761.async.js | 138 ++++++++++++++++++ ...Paperlibrary__Add__index.ea52c607.async.js | 78 +++++----- ...itPracticeSetting__index.172eaf92.async.js | 2 +- umi.7da6327b.js => umi.104c2043.js | 4 +- 7 files changed, 235 insertions(+), 235 deletions(-) rename p__Classrooms__Lists__Exercise__Add__index.d802d844.async.js => p__Classrooms__Lists__Exercise__Add__index.86449254.async.js (71%) delete mode 100644 p__Classrooms__Lists__Exercise__Answer__index.2a13ad19.async.js create mode 100644 p__Classrooms__Lists__Exercise__Answer__index.319a2761.async.js rename p__Paperlibrary__Add__index.bc2bf005.async.js => p__Paperlibrary__Add__index.ea52c607.async.js (77%) rename p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index.c46c7353.async.js => p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index.172eaf92.async.js (95%) rename umi.7da6327b.js => umi.104c2043.js (98%) diff --git a/index.html b/index.html index b9ecc00de8..8880f8ddf0 100644 --- a/index.html +++ b/index.html @@ -172,7 +172,7 @@ display: block !important; } - + \ No newline at end of file diff --git a/p__Classrooms__Lists__Exercise__Add__index.d802d844.async.js b/p__Classrooms__Lists__Exercise__Add__index.86449254.async.js similarity index 71% rename from p__Classrooms__Lists__Exercise__Add__index.d802d844.async.js rename to p__Classrooms__Lists__Exercise__Add__index.86449254.async.js index f97f1b58ea..39a5a3d2d7 100644 --- a/p__Classrooms__Lists__Exercise__Add__index.d802d844.async.js +++ b/p__Classrooms__Lists__Exercise__Add__index.86449254.async.js @@ -1,6 +1,6 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[292],{87169:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Ke}});var b=ae(54476),he=ae(59301),we={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},xe=we,Re=ae(7657),We=function(De,ke){return he.createElement(Re.Z,(0,b.Z)({},De,{ref:ke,icon:xe}))},Be=he.forwardRef(We),Ke=Be},12893:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Ke}});var b=ae(54476),he=ae(59301),we={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},xe=we,Re=ae(7657),We=function(De,ke){return he.createElement(Re.Z,(0,b.Z)({},De,{ref:ke,icon:xe}))},Be=he.forwardRef(We),Ke=Be},32134:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Ke}});var b=ae(54476),he=ae(59301),we={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},xe=we,Re=ae(7657),We=function(De,ke){return he.createElement(Re.Z,(0,b.Z)({},De,{ref:ke,icon:xe}))},Be=he.forwardRef(We),Ke=Be},89722:function(it,jt){"use strict";jt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},63581:function(it,jt){"use strict";jt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},97663:function(it,jt){"use strict";jt.Z={flex_box_center:"flex_box_center___ycN2f",flex_space_between:"flex_space_between___LcS9e",flex_box_vertical_center:"flex_box_vertical_center___uwjPm",flex_box_center_end:"flex_box_center_end___Pc903",flex_box_column:"flex_box_column___AXEdv",bg:"bg___fm2Cw",title:"title___J3MCU",editIcon:"editIcon___i4Zll",titleLeft:"titleLeft___da61c",titleRight:"titleRight___EsdL6",formWrap:"formWrap___YTxC3",baseLineHeight:"baseLineHeight___TprCB",radioBtnWrapper:"radioBtnWrapper___Mt_XG",radiogroup:"radiogroup___EvkWh",easy:"easy___mSxtg",medium:"medium___NIaWN",hard:"hard___mddnD",baseFormItem:"baseFormItem___csbyb",cascaderPopup:"cascaderPopup___BttnF",selectdiv:"selectdiv___TAr4i",divitem:"divitem___iaXB2",bottmodiv:"bottmodiv___bmp6p",cancelBtn:"cancelBtn___Q4ZcL",confirmBtn:"confirmBtn___nRiCD",concat:"concat___jlPR1"}},50852:function(it,jt,ae){"use strict";var b=ae(59301),he=Object.defineProperty,we=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,We=(Oe,De,ke)=>De in Oe?he(Oe,De,{enumerable:!0,configurable:!0,writable:!0,value:ke}):Oe[De]=ke,Be=(Oe,De)=>{for(var ke in De||(De={}))xe.call(De,ke)&&We(Oe,ke,De[ke]);if(we)for(var ke of we(De))Re.call(De,ke)&&We(Oe,ke,De[ke]);return Oe};const Ke=Oe=>React.createElement("svg",Be({width:14,height:13,xmlns:"http://www.w3.org/2000/svg"},Oe),React.createElement("title",null,"\u6D4B\u8BD5AI\u8BC4\u5206"),React.createElement("path",{d:"M5.19 1.488a2.133 2.133 0 0 1 3.62 0l.96 1.54a.25.25 0 0 0 .152.11l1.76.437a2.133 2.133 0 0 1 1.12 3.443l-1.234 1.465.136 1.912a2.133 2.133 0 0 1-1.823 2.263l-.152.016a2.133 2.133 0 0 1-.954-.15l-1.681-.683a.25.25 0 0 0-.188 0l-1.681.682a2.133 2.133 0 0 1-2.93-2.128l.13-1.81a.25.25 0 0 0-.058-.178L1.198 7.018a2.133 2.133 0 0 1 1.12-3.443l1.76-.436a.25.25 0 0 0 .152-.11Zm2.053.543a.633.633 0 0 0-.78.25l-.96 1.54a1.75 1.75 0 0 1-1.064.774l-1.761.436a.633.633 0 0 0-.332 1.022L3.514 7.44c.294.348.44.797.407 1.251l-.13 1.81a.633.633 0 0 0 .87.631l1.681-.682a1.75 1.75 0 0 1 1.316 0l1.681.682a.633.633 0 0 0 .87-.631l-.18-2.518 1.625-1.931a.633.633 0 0 0-.332-1.022l-1.761-.436a1.75 1.75 0 0 1-1.065-.774l-.959-1.54a.633.633 0 0 0-.203-.203Zm1.544 5.23a.75.75 0 0 1 .102 1.493l-.102.007H5.362a.75.75 0 0 1-.102-1.494l.102-.006h3.425Z",fill:"#3061D0",fillRule:"nonzero"}));jt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUuMTkgMS40ODhhMi4xMzMgMi4xMzMgMCAwIDEgMy42MiAwbC45NiAxLjU0YS4yNS4yNSAwIDAgMCAuMTUyLjExbDEuNzYuNDM3YTIuMTMzIDIuMTMzIDAgMCAxIDEuMTIgMy40NDNsLTEuMjM0IDEuNDY1LjEzNiAxLjkxMmEyLjEzMyAyLjEzMyAwIDAgMS0xLjgyMyAyLjI2M2wtLjE1Mi4wMTZhMi4xMzMgMi4xMzMgMCAwIDEtLjk1NC0uMTVsLTEuNjgxLS42ODNhLjI1LjI1IDAgMCAwLS4xODggMGwtMS42ODEuNjgyYTIuMTMzIDIuMTMzIDAgMCAxLTIuOTMtMi4xMjhsLjEzLTEuODFhLjI1LjI1IDAgMCAwLS4wNTgtLjE3OEwxLjE5OCA3LjAxOGEyLjEzMyAyLjEzMyAwIDAgMSAxLjEyLTMuNDQzbDEuNzYtLjQzNmEuMjUuMjUgMCAwIDAgLjE1Mi0uMTFabTIuMDUzLjU0M2EuNjMzLjYzMyAwIDAgMC0uNzguMjVsLS45NiAxLjU0YTEuNzUgMS43NSAwIDAgMS0xLjA2NC43NzRsLTEuNzYxLjQzNmEuNjMzLjYzMyAwIDAgMC0uMzMyIDEuMDIyTDMuNTE0IDcuNDRjLjI5NC4zNDguNDQuNzk3LjQwNyAxLjI1MWwtLjEzIDEuODFhLjYzMy42MzMgMCAwIDAgLjg3LjYzMWwxLjY4MS0uNjgyYTEuNzUgMS43NSAwIDAgMSAxLjMxNiAwbDEuNjgxLjY4MmEuNjMzLjYzMyAwIDAgMCAuODctLjYzMWwtLjE4LTIuNTE4IDEuNjI1LTEuOTMxYS42MzMuNjMzIDAgMCAwLS4zMzItMS4wMjJsLTEuNzYxLS40MzZhMS43NSAxLjc1IDAgMCAxLTEuMDY1LS43NzRsLS45NTktMS41NGEuNjMzLjYzMyAwIDAgMC0uMjAzLS4yMDNabTEuNTQ0IDUuMjNhLjc1Ljc1IDAgMCAxIC4xMDIgMS40OTNsLS4xMDIuMDA3SDUuMzYyYS43NS43NSAwIDAgMS0uMTAyLTEuNDk0bC4xMDItLjAwNmgzLjQyNVoiIGZpbGw9IiMzMDYxRDAiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg=="},58082:function(it,jt,ae){"use strict";var b=ae(59301),he=Object.defineProperty,we=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,We=(Oe,De,ke)=>De in Oe?he(Oe,De,{enumerable:!0,configurable:!0,writable:!0,value:ke}):Oe[De]=ke,Be=(Oe,De)=>{for(var ke in De||(De={}))xe.call(De,ke)&&We(Oe,ke,De[ke]);if(we)for(var ke of we(De))Re.call(De,ke)&&We(Oe,ke,De[ke]);return Oe};const Ke=Oe=>React.createElement("svg",Be({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Oe),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));jt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},39469:function(it,jt,ae){"use strict";var b=ae(59301),he=Object.defineProperty,we=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,We=(Oe,De,ke)=>De in Oe?he(Oe,De,{enumerable:!0,configurable:!0,writable:!0,value:ke}):Oe[De]=ke,Be=(Oe,De)=>{for(var ke in De||(De={}))xe.call(De,ke)&&We(Oe,ke,De[ke]);if(we)for(var ke of we(De))Re.call(De,ke)&&We(Oe,ke,De[ke]);return Oe};const Ke=Oe=>React.createElement("svg",Be({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Oe),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));jt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},4285:function(){"use strict";function it(le,E,a,x){a===void 0&&(a=0),x===void 0&&(x=1/0),this._name=le,this._defaultValue=E,this._minimum=a,this._maximum=x}Object.defineProperty(it.prototype,"name",{get:function(){return this._name},set:function(le){if(typeof le!="string"||le==="")throw new Error("Shape name must be a valid string.");this._name=le}}),Object.defineProperty(it.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("The default value must be a real number, not: "+le);this._defaultValue=le}}),Object.defineProperty(it.prototype,"minimum",{get:function(){return this._minimum},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("Minimum must be a real number, not: "+le);this._minimum=le}}),Object.defineProperty(it.prototype,"maximum",{get:function(){return this._maximum},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("Maximum must be a real number, not: "+le);this._maximum=le}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(le,E){var a=go.Shape._FigureParameters[le];return a?a[E]:null},go.Shape.setFigureParameter=function(le,E,a){if(!(a instanceof it))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValuea.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var x=go.Shape._FigureParameters[le];x||(x=[],go.Shape._FigureParameters[le]=x),x[E]=a};var jt=[];function ae(le,E){var a=jt.pop();return a===void 0?new go.Point(le,E):(a.x=le,a.y=E,a)}function b(){var le=jt.pop();return le===void 0?new go.Point:le}function he(le){jt.push(le)}function we(le,E,a,x,y,z,te,oe,ue){ue||(ue=new go.Point);var ie=le-a,Ee=y-te,Fe=NaN,Qe=NaN;if(ie===0)if(Ee===0)le===a&&(Fe=le,Qe=E);else{var Le=(z-oe)/Ee,st=z-Le*y;Fe=le,Qe=Le*Fe+st}else if(Ee===0){var Me=(E-x)/ie,Ye=E-Me*le;Fe=y,Qe=Me*Fe+Ye}else{var Me=(E-x)/ie,Le=(z-oe)/Ee,Ye=E-Me*le,st=z-Le*y;Fe=(st-Ye)/(Me-Le),Qe=Me*Fe+Ye}return ue.x=Fe,ue.y=Qe,ue}function xe(le,E,a,x,y,z,te,oe,ue,ie,Ee,Fe,Qe,Le){var st=1-ue,Me=ue,Ye=le*st+a*Me,Ge=E*st+x*Me,$e=a*st+y*Me,be=x*st+z*Me,vt=y*st+te*Me,ct=z*st+oe*Me,Ft=Ye*st+$e*Me,At=Ge*st+be*Me,En=$e*st+vt*Me,Bn=be*st+ct*Me,Wt=Ft*st+En*Me,Pt=At*st+Bn*Me;ie.x=Ye,ie.y=Ge,Ee.x=Ft,Ee.y=At,Fe.x=Wt,Fe.y=Pt,Qe.x=En,Qe.y=Bn,Le.x=vt,Le.y=ct}var Re=new go.Spot(.156,.156),We=new go.Spot(.844,.844),Be=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new it("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,E/3),x=Math.min(x,a/3);var y=x*Be,z=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,E-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,x,E-y,0,E,y)).add(new go.PathSegment(go.PathSegment.Line,E,a-x)).add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,a-y,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,x,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,y,a,0,a-y)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()));return y>1&&(z.spot1=new go.Spot(0,0,y,y),z.spot2=new go.Spot(1,1,-y,-y)),z}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=a/2,x.endX=E,x.endY=a/2,x}),go.Shape.defineFigureGenerator("LineV",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=E/2,x.startY=0,x.endX=E/2,x.endY=a,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LineRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.25*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)))}),go.Shape.defineFigureGenerator("LineDown",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Line,E,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.75*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,a)))}),go.Shape.defineFigureGenerator("LineUp",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,E,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(le,E,a){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*E,(1-x)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,x*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(le,E,a){var x=E/2,y=new go.Geometry().add(new go.PathFigure(E,E/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return y.spot1=Re,y.spot2=We,y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Line1",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=E,x.endY=a,x}),go.Shape.defineFigureGenerator("Line2",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=E,x.startY=0,x.endX=0,x.endY=a,x}),go.Shape.defineFigureGenerator("Curve1",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,Be*E,0,E,(1-Be)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,0,Be*a,(1-Be)*E,a)))}),go.Shape.defineFigureGenerator("Curve3",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,Be*a,Be*E,a)))}),go.Shape.defineFigureGenerator("Curve4",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-Be)*E,0,0,(1-Be)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new it("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var y=Math.abs(x)*E;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),yE&&(x=E);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y.5&&(x=.5);var y=Math.abs(x)*E;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),yE&&(x=E/2);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),yE&&(x=E/2);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())):z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),y0&&(te.add(new go.PathSegment(go.PathSegment.Move,E/2+oe,E/2)),te.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y,y,oe,oe).close())),z.spot1=Re,z.spot2=We,z.defaultStretch=go.GraphObject.Uniform,z}),go.Shape.defineFigureGenerator("Cloud",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.08034461*E,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*E,.05349299*a,-.09239631*E,.07836421*a,.1406031*E,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*E,.074219*a,.2450511*E,-.00697547*a,.3776197*E,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*E,.07004196*a,.4539471*E,0,.6066018*E,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*E,.08370865*a,.6914277*E,-.01904177*a,.8921095*E,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*E,.3194596*a,1.036446*E,.04105738*a,1.020377*E,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*E,.562044*a,1.04448*E,.360238*a,.992256*E,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*E,.8217117*a,1.032337*E,.5771781*a,1.018411*E,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*E,.9156953*a,1.028411*E,.9571472*a,.8556702*E,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*E,.9310455*a,.7431877*E,1.009325*a,.5624123*E,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*E,.9344623*a,.4820677*E,1.031761*a,.3030112*E,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.870098*a,.2329994*E,1.01518*a,.03213784*E,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*E,.6545475*a,-.02812061*E,.9032597*a,-.01205169*E,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*E,.4265613*a,-.01812061*E,.6089503*a,-.00606892*E,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.1944299*a,-.01606892*E,.3892545*a,-.01205169*E,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(le,E,a){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Line,x*E,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,x*a).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new it("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new it("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(le,E,a){var x=le?le.parameter1:NaN,y=le?le.parameter2:NaN;isNaN(x)&&(x=0),isNaN(y)&&(y=315);var z=x%360;z<0&&(z+=360);var te=y%360,oe=Math.min(E,a)/2;return new go.Geometry().add(new go.PathFigure(oe,oe).add(new go.PathSegment(go.PathSegment.Arc,z,te,oe,oe,oe,oe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(le,E,a){var x=Be/Math.SQRT2*.5,y=Math.SQRT2/2,z=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,y*E,z*a,E,(1-x)*a,(y+x)*E,(z+x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new it("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var y=Math.min(x,E)/2,z=E/2,te=a/2;return new go.Geometry().add(new go.PathFigure(z-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+y,0)).add(new go.PathSegment(go.PathSegment.Line,z+y,te-y)).add(new go.PathSegment(go.PathSegment.Line,E,te-y)).add(new go.PathSegment(go.PathSegment.Line,E,te+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,te+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,te+y)).add(new go.PathSegment(go.PathSegment.Line,0,te+y)).add(new go.PathSegment(go.PathSegment.Line,0,te-y)).add(new go.PathSegment(go.PathSegment.Line,z-y,te-y).close()))}),go.Shape.setFigureParameter("ThinCross",0,new it("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=Math.min(x,E)/2,z=E/2,te=a/2;return new go.Geometry().add(new go.PathFigure(z-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+y,0)).add(new go.PathSegment(go.PathSegment.Line,z+y,te-y)).add(new go.PathSegment(go.PathSegment.Line,E,te-y)).add(new go.PathSegment(go.PathSegment.Line,E,te+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,te+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,te+y)).add(new go.PathSegment(go.PathSegment.Line,0,te+y)).add(new go.PathSegment(go.PathSegment.Line,0,te-y)).add(new go.PathSegment(go.PathSegment.Line,z-y,te-y).close()))}),go.Shape.setFigureParameter("ThickX",0,new it("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(le,E,a){var x=le?le.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),E===0||a===0){var y=new go.Geometry(go.Geometry.Rectangle);return y.startX=0,y.startY=0,y.endX=E,y.endY=a,y}else{var z=E/2,te=a/2,oe=Math.atan2(a,E),ue=x-Math.min(Math.cos(oe)*x/2,z),ie=x-Math.min(Math.sin(oe)*x/2,te),y=new go.Geometry,Ee=new go.PathFigure(ue,0,!0);return y.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,z,.2*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,E-ue,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,E,ie)),Ee.add(new go.PathSegment(go.PathSegment.Line,.8*E,te)),Ee.add(new go.PathSegment(go.PathSegment.Line,E,a-ie)),Ee.add(new go.PathSegment(go.PathSegment.Line,E-ue,a)),Ee.add(new go.PathSegment(go.PathSegment.Line,z,.8*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,ue,a)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,a-ie)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*E,te)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,ie).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new it("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=new go.Geometry,z=new go.PathFigure(.1*E,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),y}),go.Shape.setFigureParameter("SquareIBeam",0,new it("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*a).close()),y}),go.Shape.setFigureParameter("RoundedIBeam",0,new it("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.5);var y=new go.Geometry,z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,a,Math.abs(1-x)*E,.25*a,Math.abs(1-x)*E,.75*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*E,.75*a,x*E,.25*a).close()),y}),go.Shape.defineFigureGenerator("HalfEllipse",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,Be*E,0,E,(.5-Be/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,(.5+Be/2)*a,Be*E,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,0,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*E,.75*a,.5*E,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*E,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,0,0,.45*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.55*E,0,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.5*a,.9*E,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*E,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.6*E,.2*a,E,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.7*a,E,.8*a,.6*E,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,.5*E,.75*a,.55*E,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.7*a,.45*E,.95*a,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*E,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*E,.01*a,0,.25*a,.4*E,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.4*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.15*E,a,.5*E,.75*a,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.6*a,.55*E,.95*a,.5*E,.75*a));var z=.2,te=.3,oe=0,ue=z*Be;return y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5+z+oe)*a,(.5-z+te)*E,(.5+ue+oe)*a,(.5-ue+te)*E,(.5+z+oe)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+te)*E,(.5+oe)*a,(.5+ue+te)*E,(.5+z+oe)*a,(.5+z+te)*E,(.5+ue+oe)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5-z+oe)*a,(1-.5+z+te)*E,(.5-ue+oe)*a,(.5+ue+te)*E,(.5-z+oe)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.65*E,.36771243*a,(.5-ue+te)*E,(.5-z+oe)*a,(.5-z+te+.05)*E,(.5-ue+oe-.02)*a)),z=.2,te=0,oe=-.3,ue=z*Be,y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+te)*E,(.5+oe)*a,(.5+ue+te)*E,(.5+z+oe)*a,(.5+z+te)*E,(.5+ue+oe)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5-z+oe)*a,(1-.5+z+te)*E,(.5-ue+oe)*a,(.5+ue+te)*E,(.5-z+oe)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+te)*E,(.5+oe)*a,(.5-ue+te)*E,(.5-z+oe)*a,(.5-z+te)*E,(.5-ue+oe)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ue+te)*E,(.5+z+oe)*a,(.5-z+te)*E,(.5+ue+oe)*a,(.5-ue+te)*E,(.5+z+oe)*a)),z=.2,te=-.3,oe=0,ue=z*Be,y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5-z+oe)*a,(1-.5+z+te-.05)*E,(.5-ue+oe-.02)*a,(.5+ue+te)*E,(.5-z+oe)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+te)*E,(.5+oe)*a,(.5-ue+te)*E,(.5-z+oe)*a,(.5-z+te)*E,(.5-ue+oe)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5+z+oe)*a,(.5-z+te)*E,(.5+ue+oe)*a,(.5-ue+te)*E,(.5+z+oe)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.6*a,(.5+ue+te)*E,(.5+z+oe)*a,(.5+z+te)*E,(.5+ue+oe)*a).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.5,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*.5,E*.5,E*.5,E*.5)),y.add(new go.PathSegment(go.PathSegment.Arc,90,-180,E*.5,E*.75,E*.25,E*.25)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,E*.5,E*.25,E*.25,E*.25));var z=.1,te=.5,oe=.25;return y.add(new go.PathSegment(go.PathSegment.Move,(te+z)*E,oe*a)),y.add(new go.PathSegment(go.PathSegment.Arc,0,-360,E*te,a*oe,z*E,z*E).close()),y=new go.PathFigure(E*.5,0,!1),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*.5,E*.5,E*.5,E*.5)),oe=.75,y=new go.PathFigure((te+z)*E,oe*a,!0),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,0,360,E*te,a*oe,z*E,z*E).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(le,E,a){var x=.8535533905932737,y=.5*E,z=.5*a;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,y,z,y,z)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,y,z)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,x*a)).add(new go.PathSegment(go.PathSegment.Move,y,z)).add(new go.PathSegment(go.PathSegment.Line,x*E,x*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(le,E,a){var x=new go.Geometry,y=Be*.5,z=.5,te=.5,oe=.5,ue=new go.PathFigure(te*E,(oe-z)*a);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+z)*a,(te-z)*E,(oe+y)*a,(te-y)*E,(oe+z)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-z)*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),z=.4,y=Be*.4;var ie=b(),Ee=b(),Fe=b(),Qe=b();xe(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.42,ie,Ee,Fe,Qe,Qe);var Le=b(),st=b(),Me=b();xe(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.58,Qe,Qe,Me,Le,st);var Ye=b(),Ge=b(),$e=b();xe(te,oe+z,te-y,oe+z,te-z,oe+y,te-z,oe,.42,Ye,Ge,$e,Qe,Qe);var be=b(),vt=b(),ct=b();return xe(te,oe+z,te-y,oe+z,te-z,oe+y,te-z,oe,.58,Qe,Qe,ct,be,vt),ue.add(new go.PathSegment(go.PathSegment.Move,ct.x*E,ct.y*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,be.x*E,be.y*a,vt.x*E,vt.y*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-z)*a,(te-z)*E,(oe-y)*a,(te-y)*E,(oe-z)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,Fe.x*E,Fe.y*a,ie.x*E,ie.y*a,Ee.x*E,Ee.y*a)),ue.add(new go.PathSegment(go.PathSegment.Line,ct.x*E,ct.y*a).close()),ue.add(new go.PathSegment(go.PathSegment.Move,$e.x*E,$e.y*a)),ue.add(new go.PathSegment(go.PathSegment.Line,Me.x*E,Me.y*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,Le.x*E,Le.y*a,st.x*E,st.y*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+z)*a,(te+z)*E,(oe+y)*a,(te+y)*E,(oe+z)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,$e.x*E,$e.y*a,Ye.x*E,Ye.y*a,Ge.x*E,Ge.y*a).close()),he(ie),he(Ee),he(Fe),he(Qe),he(Le),he(st),he(Me),he(Ye),he(Ge),he($e),he(be),he(vt),he(ct),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*E,0)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*E,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.5*a,E,.25*a,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new it("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>E&&(x=E);var y=(E-x)/2,z=y+x;return new go.Geometry().add(new go.PathFigure(z,.5*a).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*E,0)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(le,E,a){var x=new go.Geometry,y=Be*.4,z=.4,te=.5,oe=.5,ue=b(),ie=b(),Ee=b(),Fe=b(),Qe=new go.PathFigure((te-z)*E,oe*a,!1);x.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-z)*a,(te-z)*E,(oe-y)*a,(te-y)*E,(oe-z)*a)),xe(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.44,Ee,Fe,ie,ue,ue),Qe.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*E,ie.y*a,Ee.x*E,Ee.y*a,Fe.x*E,Fe.y*a));var Le=ae(ie.x,ie.y);xe(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.56,ue,ue,ie,Ee,Fe);var st=ae(ie.x,ie.y);Qe.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.95*.9)*E,Le.y*.1*a)),Qe.add(new go.PathSegment(go.PathSegment.Line,.85*E,Le.y*.1*a)),Qe.add(new go.PathSegment(go.PathSegment.Line,.85*E,0)),Qe.add(new go.PathSegment(go.PathSegment.Line,E,0)),Qe.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),Qe.add(new go.PathSegment(go.PathSegment.Line,(st.x*.1+.9)*E,.15*a)),Qe.add(new go.PathSegment(go.PathSegment.Line,(st.x*.1+.9)*E,(st.y*.1+.05*.9)*a)),Qe.add(new go.PathSegment(go.PathSegment.Line,st.x*E,st.y*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,Ee.x*E,Ee.y*a,Fe.x*E,Fe.y*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+z)*a,(te+z)*E,(oe+y)*a,(te+y)*E,(oe+z)*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,(te-y)*E,(oe+z)*a,(te-z)*E,(oe+y)*a)),z=.35,y=Be*.35;var Me=new go.PathFigure(te*E,(oe-z)*a,!1);x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+z)*a,(te-z)*E,(oe+y)*a,(te-y)*E,(oe+z)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-z)*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a));var Ye=new go.PathFigure((te-z)*E,oe*a,!1);return x.add(Ye),he(ue),he(ie),he(Ee),he(Fe),he(Le),he(st),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(le,E,a){var x=new go.Geometry,y=.375,z=0,te=-.125,oe=y*Be,ue=new go.PathFigure((.525+z)*E,(.5+y+te)*a,!1);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+te)*a,(.5+oe+z)*E,(.5+y+te)*a,(.5+y+z)*E,(.5+oe+te)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+te)*a,(1-.5+y+z)*E,(.5-oe+te)*a,(.5+oe+z)*E,(.5-y+te)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+te)*a,(.5-oe+z)*E,(.5-y+te)*a,(.5-y+z)*E,(.5-oe+te)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.475+z)*E,(.5+y+te)*a,(.5-y+z)*E,(.5+oe+te)*a,(.5-oe+z)*E,(.5+y+te)*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.475*E,.85*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.425*E,.85*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.425*E,.9*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.475*E,.9*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.475*E,a)),ue.add(new go.PathSegment(go.PathSegment.Line,.525*E,a)),ue.add(new go.PathSegment(go.PathSegment.Line,.525*E,.9*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.575*E,.9*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.575*E,.85*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a).close()),y=.325,z=0,te=-.125,oe=y*Be;var ue=new go.PathFigure((1-.5+y+z)*E,(.5+te)*a,!1);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5+y+te)*a,(.5+y+z)*E,(.5+oe+te)*a,(.5+oe+z)*E,(.5+y+te)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+te)*a,(.5-oe+z)*E,(.5+y+te)*a,(.5-y+z)*E,(.5+oe+te)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+te)*a,(.5-y+z)*E,(.5-oe+te)*a,(.5-oe+z)*E,(.5-y+te)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+te)*a,(.5+oe+z)*E,(.5-y+te)*a,(1-.5+y+z)*E,(.5-oe+te)*a));var ue=new go.PathFigure((.525+z)*E,(.5+y+te)*a,!1);return x.add(ue),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(le,E,a){var x=le?le.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(le,E,a){var x=le?le.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,x*E,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(le,E,a){var x=new go.Geometry().add(new go.PathFigure(.5*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*E,.5*a,.5*E,.5*a)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Move,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(le,E,a){var x=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(le,E,a){var x=.5;return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new it("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new it("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=le?le.parameter2:NaN;isNaN(y)&&(y=.3);var z=(1-x)*E,te=(.5-y/2)*a,oe=(.5+y/2)*a,ue=new go.Geometry,ie=new go.PathFigure(0,te,!0);ue.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,te)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ie.add(new go.PathSegment(go.PathSegment.Line,z,a)),ie.add(new go.PathSegment(go.PathSegment.Line,z,oe)),ie.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),ue.spot1=new go.Spot(0,te/a);var Ee=we(0,oe/a,1,oe/a,z/E,1,1,.5,b());return ue.spot2=new go.Spot(Ee.x,Ee.y),he(Ee),ue}),go.Shape.setFigureParameter("Arrow2",0,new it("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new it("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=30),x>E&&(x=E);var y=le?le.parameter2:NaN;isNaN(y)&&(y=30),y=Math.min(y,a/2);var z=E-x,te=(a-y)/2,oe=te+y,ue=new go.Geometry,ie=new go.PathFigure(0,te,!0);ue.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,te)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ie.add(new go.PathSegment(go.PathSegment.Line,z,a)),ie.add(new go.PathSegment(go.PathSegment.Line,z,oe)),ie.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),ue.spot1=new go.Spot(0,te/a);var Ee=we(0,oe/a,1,oe/a,z/E,1,1,.5,b());return ue.spot2=new go.Spot(Ee.x,Ee.y),he(Ee),ue}),go.Shape.defineFigureGenerator("Chevron",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.214*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.786*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new it("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*a,z=(.5+x/2)*a,te=new go.Geometry,oe=new go.PathFigure(E,.5*a,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close());var ue=we(0,.5,.3,0,0,y/a,.1,y/a,b());return te.spot1=new go.Spot(ue.x,ue.y),ue=we(.7,1,1,.5,0,z/a,1,z/a,ue),te.spot2=new go.Spot(ue.x,ue.y),he(ue),te}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new it("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new it("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=40);var y=le?le.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,te=z+x,oe=(a-y)/2,ue=oe+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,te=z+x,oe=0,ue=a):(z=0,te=a,oe=0,ue=a));var ie=new go.Geometry,Ee=new go.PathFigure(E,.5*a,!0);ie.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*E,ue)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*E,te)),Ee.add(new go.PathSegment(go.PathSegment.Line,.3*E,te)),Ee.add(new go.PathSegment(go.PathSegment.Line,.3*E,ue)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.3*E,oe)),Ee.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*E,oe).close());var Fe=we(0,.5,.3,oe/a,0,z/a,1,z/a,b());return ie.spot1=new go.Spot(Fe.x,Fe.y),Fe=we(.7,ue/a,1,.5,0,te/a,1,te/a,Fe),ie.spot2=new go.Spot(Fe.x,Fe.y),he(Fe),ie}),go.Shape.setFigureParameter("IBeamArrow",0,new it("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*a,z=(.5+x/2)*a,te=new go.Geometry,oe=new go.PathFigure(E,.5*a,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),te.spot1=new go.Spot(0,y/a);var ue=we(.7,1,1,.5,0,z/a,1,z/a,b());return te.spot2=new go.Spot(ue.x,ue.y),he(ue),te}),go.Shape.setFigureParameter("IBeamArrow2",0,new it("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new it("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=40);var y=le?le.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,te=z+x,oe=(a-y)/2,ue=oe+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,te=z+x,oe=0,ue=a):(z=0,te=a,oe=0,ue=a));var ie=new go.Geometry,Ee=new go.PathFigure(E,.5*a,!0);ie.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*E,ue)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*E,te)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*E,te)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*E,ue)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,ue)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,oe)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*E,oe)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*E,oe).close()),ie.spot1=new go.Spot(0,z/a);var Fe=we(.7,ue/a,1,.5,0,te/a,1,te/a,b());return ie.spot2=new go.Spot(Fe.x,Fe.y),he(Fe),ie}),go.Shape.setFigureParameter("Pointer",0,new it("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.1);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),y.spot1=new go.Spot(x,.35);var te=we(.2,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(te.x,te.y),he(te),y}),go.Shape.setFigureParameter("RoundedPointer",0,new it("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*E,.75*a,x*E,.25*a).close()),y.spot1=new go.Spot(x,.35);var te=we(0,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(te.x,te.y),he(te),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new it("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.4);var y=(.5-x/2)*a,z=(.5+x/2)*a,te=new go.Geometry,oe=new go.PathFigure(E,.5*a,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,0,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),te.spot1=new go.Spot(.2,.3);var ue=we(.7,1,1,.5,0,z/a,1,z/a,b());return te.spot2=new go.Spot(ue.x,ue.y),he(ue),te}),go.Shape.setFigureParameter("SplitEndArrow2",0,new it("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=50);var y=(a-x)/2,z=y+x;x>a&&(y=0,z=a);var te=new go.Geometry,oe=new go.PathFigure(E,.5*a,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,0,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),te.spot1=new go.Spot(.2,y/a);var ue=we(.7,1,1,.5,0,z/a,1,z/a,b());return te.spot2=new go.Spot(ue.x,ue.y),he(ue),te}),go.Shape.setFigureParameter("SquareArrow",0,new it("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.7);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,x*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,0).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(x,1),y}),go.Shape.defineFigureGenerator("Cone1",function(le,E,a){var x=new go.Geometry,y=Be*.5,z=Be*.1,te=new go.PathFigure(0,.9*a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.9*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,a,.85/.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var z=new go.PathFigure(0,.9*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,.8*a,.85/.9*E,.8*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.3*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0).close());var z=new go.PathFigure(0,.3*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,z=Be*.5,te=new go.PathFigure(0,x,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,Be*x,(.5-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,1*E,x,(.5+z)*E,0,1*E,Be*x)),te.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,1*a,1*E,a-Be*x,(.5+z)*E,1*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-z)*E,1*a,0,a-Be*x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x));var oe=new go.PathFigure(E,x,!1);return y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,2*x,1*E,2*x-Be*x,(.5+z)*E,2*x)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-z)*E,2*x,0,2*x-Be*x)),y.spot1=new go.Spot(0,0,0,2*x),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,z=Be*.5,te=new go.PathFigure(0,a-x,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,Be*x,(.5-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,x,(.5+z)*E,0,E,Be*x)),te.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,a-Be*x,(.5+z)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-z)*E,a,0,a-Be*x));var oe=new go.PathFigure(0,a-x,!1);return y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a-2*x,0,a-x-Be*x,(.5-z)*E,a-2*x)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E,a-x,(.5+z)*E,a-2*x,E,a-x-Be*x)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,0,-2*x),y}),go.Shape.defineFigureGenerator("Cylinder3",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,z=Be*.5,te=new go.PathFigure(x,0,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E-x,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-Be*x,0,E,(.5-z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,(.5+z)*a,E-Be*x,a)),te.add(new go.PathSegment(go.PathSegment.Line,x,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,Be*x,a,0,(.5+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*a,Be*x,0));var oe=new go.PathFigure(x,0,!1);return y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*a,x+Be*x,0,2*x,(.5-z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,x,a,2*x,(.5+z)*a,x+Be*x,a)),y.spot1=new go.Spot(0,0,2*x,0),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder4",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,z=Be*.5,te=new go.PathFigure(E-x,0,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-Be*x,0,E,(.5-z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,(.5+z)*a,E-Be*x,a)),te.add(new go.PathSegment(go.PathSegment.Line,x,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,Be*x,a,0,(.5+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*a,Be*x,0)),te.add(new go.PathSegment(go.PathSegment.Line,E-x,0));var oe=new go.PathFigure(E-x,0,!1);return y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,E-2*x,.5*a,E-x-Be*x,0,E-2*x,(.5-z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E-2*x,(.5+z)*a,E-x-Be*x,a)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,-2*x,0),y}),go.Shape.defineFigureGenerator("Prism1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,.25*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.25*E,.25*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.25*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var z=new go.PathFigure(.5*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(le,E,a){var x=new go.Geometry,y=.2,z=.1,te=Be*y,oe=Be*z,ue=.5,ie=.1,Ee=new go.PathFigure(ue*E,(ie+z)*a,!0);x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-y)*E,ie*a,(ue-te)*E,(ie+z)*a,(ue-y)*E,(ie+oe)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie-z)*a,(ue-y)*E,(ie-oe)*a,(ue-te)*E,(ie-z)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+y)*E,ie*a,(ue+te)*E,(ie-z)*a,(ue+y)*E,(ie-oe)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie+z)*a,(ue+y)*E,(ie+oe)*a,(ue+te)*E,(ie+z)*a));var Fe=.05,Qe=Be*Fe;ue=.05,ie=.25;var Le=new go.PathFigure(.5*E,.2*a,!0);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,.95*E,.2*a)),ue=.95,ie=.25,Le.add(new go.PathSegment(go.PathSegment.Bezier,(ue+Fe)*E,ie*a,(ue+Qe)*E,(ie-Fe)*a,(ue+Fe)*E,(ie-Qe)*a)),Le.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.85*E,.35*a)),Fe=.025,Qe=Be*Fe,ue=.825,ie=.35,Le.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie-Fe)*a,(ue+Fe)*E,(ie-Qe)*a,(ue+Qe)*E,(ie-Fe)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ue-Fe)*E,ie*a,(ue-Qe)*E,(ie-Fe)*a,(ue-Fe)*E,(ie-Qe)*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),Le.add(new go.PathSegment(go.PathSegment.Line,.55*E,a)),Le.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a)),Fe=.05,Qe=Be*Fe,ue=.5,ie=.7,Le.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie-Fe)*a,(ue+Fe)*E,(ie-Qe)*a,(ue+Qe)*E,(ie-Fe)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ue-Fe)*E,ie*a,(ue-Qe)*E,(ie-Fe)*a,(ue-Fe)*E,(ie-Qe)*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.45*E,a)),Le.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),Le.add(new go.PathSegment(go.PathSegment.Line,.2*E,.35*a)),Fe=.025,Qe=Be*Fe,ue=.175,ie=.35,Le.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie-Fe)*a,(ue+Fe)*E,(ie-Qe)*a,(ue+Qe)*E,(ie-Fe)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ue-Fe)*E,ie*a,(ue-Qe)*E,(ie-Fe)*a,(ue-Fe)*E,(ie-Qe)*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),Le.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),Le.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),Fe=.05,Qe=Be*Fe,ue=.05,ie=.25,Le.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie-Fe)*a,(ue-Fe)*E,(ie-Qe)*a,(ue-Qe)*E,(ie-Fe)*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new it("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,z=new go.PathFigure(E,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,0).close()),y.spot1=new go.Spot(0,x),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Collate",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a));var z=new go.PathFigure(.5*E,.5*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(0,y*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),te.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,(1-y)*a)),x}),go.Shape.defineFigureGenerator("Database",function(le,E,a){var x=new go.Geometry,y=Be*.5,z=Be*.1,te=new go.PathFigure(E,.1*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+y)*E,0,E,(.1-z)*a));var oe=new go.PathFigure(E,.1*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+y)*E,.2*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*E,.2*a,0,(.1+z)*a)),oe.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+y)*E,.3*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*E,.3*a,0,(.2+z)*a)),oe.add(new go.PathSegment(go.PathSegment.Move,E,.3*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.4*a,E,(.3+z)*a,(.5+y)*E,.4*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-y)*E,.4*a,0,(.3+z)*a)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.9*a,.25*E,.1*a).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(le,E,a){var x=new go.Geometry,y=Be*.5,z=Be*.1,te=new go.PathFigure(E,.1*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+y)*E,0,E,(.1-z)*a));var oe=new go.PathFigure(E,.1*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+y)*E,.2*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*E,.2*a,0,(.1+z)*a)),oe.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+y)*E,.3*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*E,.3*a,0,(.2+z)*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)?y=.2:y<.15&&(y=.15);var z=Be*.2,te=new go.PathFigure(0,.2*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,0,(.2-z)*a,(.2-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.2*a,(.8+z)*E,0,E,(.2-z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,a,E,(.8+z)*a,(.8+z)*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-z)*E,a,0,(.8+z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var oe=new go.PathFigure(0,y*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;(isNaN(y)||y<.1)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(0,y*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),x}),go.Shape.defineFigureGenerator("Document",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;(isNaN(y)||y<.2)&&(y=.2);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(y*E,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y*a)),te.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),te.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),te.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),te.add(new go.PathSegment(go.PathSegment.Move,(1-y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,E,(1-y)*a)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(.1*E,.4*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.9*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.6*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Move,.4*E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.9*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.75*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a));var z=new go.PathFigure(E,.5*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a));var te=new go.PathFigure(E,.5*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.1);var te=new go.PathFigure(0,0,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),te.add(new go.PathSegment(go.PathSegment.Line,E,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var oe=new go.PathFigure(y*E,0,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),oe.add(new go.PathSegment(go.PathSegment.Move,0,z*a)),oe.add(new go.PathSegment(go.PathSegment.Line,E,z*a)),x}),go.Shape.defineFigureGenerator("Junction",function(le,E,a){var x=new go.Geometry,y=1/Math.SQRT2,z=(1-1/Math.SQRT2)/2,te=Be*.5,oe=.5,ue=new go.PathFigure(E,oe*a,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,a,E,(oe+te)*a,(oe+te)*E,a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,oe*a,(oe-te)*E,a,0,(oe+te)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,0,0,(oe-te)*a,(oe-te)*E,0)),ue.add(new go.PathSegment(go.PathSegment.Bezier,E,oe*a,(oe+te)*E,0,E,(oe-te)*a));var ie=new go.PathFigure((z+y)*E,(z+y)*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*E,z*a)),ie.add(new go.PathSegment(go.PathSegment.Move,z*E,(z+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Line,(z+y)*E,z*a)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close());var z=new go.PathFigure(.1*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.75*a)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(le,E,a){var x=new go.Geometry,y=Be*.5,z=.5,te=new go.PathFigure(.5*E,a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+.1)*E,.9*a,E,(z+y)*a,(z+y)*E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.7);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.25);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,y*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.44*a,.96*E,.47*a,.93*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.54*a,.86*E,.57*a,.83*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*E,.4*a,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,0).close());var z=new go.PathFigure(.1*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.44*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,.1*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close());var z=new go.PathFigure(.2*E,.1*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Move,.1*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=1-y,te=new go.PathFigure(0,0,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close());var oe=new go.PathFigure(.5*y*E,y*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*y)*E,y*a)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(le,E,a){var x=new go.Geometry,y=Be*.5,z=.5,te=new go.PathFigure(E,z*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+y)*a,(z+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a));var oe=new go.PathFigure(E,.5*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.5*E,.6*a,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.3);var te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),te.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.3);var te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure((1-y)*E,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Move,y*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),x}),go.Shape.defineFigureGenerator("Process",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(y*E,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(0,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.25);var z=new go.PathFigure(y*E,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a));var te=new go.PathFigure(y*E,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),te.add(new go.PathSegment(go.PathSegment.Move,(1-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,a)),x.spot1=new go.Spot(y,0),x.spot2=new go.Spot(1-y,1),x}),go.Shape.defineFigureGenerator("Terminator",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(le,E,a){var x=new go.Geometry,y=Be*.5,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(.5+y)*E,0,E,(.5-y)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.5+y)*a,(.5+y)*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(le,E,a){var x=new go.Geometry,y=Be*.5,z=.5,te=new go.PathFigure(E,z*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+y)*a,(z+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a));var oe=new go.PathFigure(E,z*a,!1);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z*a));var ue=new go.PathFigure(.8*E,.75*a,!1);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.8*E,.25*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*E,.25*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.6*E,.75*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*E,.75*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.4*E,.25*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*E,.25*a)),ue.add(new go.PathSegment(go.PathSegment.Line,.2*E,.75*a)),x}),go.Shape.defineFigureGenerator("Ground",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Move,.3*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),x}),go.Shape.defineFigureGenerator("Inverter",function(le,E,a){var x=new go.Geometry,y=Be*.1,z=.1,te=.9,oe=.5,ue=new go.PathFigure(.8*E,.5*a,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,0,a)),ue.add(new go.PathSegment(go.PathSegment.Line,0,0)),ue.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a));var ie=new go.PathFigure((te+z)*E,oe*a,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+z)*a,(te+z)*E,(oe+y)*a,(te+y)*E,(oe+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,(te-y)*E,(oe+z)*a,(te-z)*E,(oe+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-z)*a,(te-z)*E,(oe-y)*a,(te-y)*E,(oe-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,(te+y)*E,(oe-z)*a,(te+z)*E,(oe-y)*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(le,E,a){var x=new go.Geometry,y=Be*.5,z=Be*.4,te=Be*.1,oe=.1,ue=.9,ie=.5,Ee=new go.PathFigure(.8*E,.5*a,!0);x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,.8*E,(.5+z)*a,(.4+y)*E,a)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,a)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(.4+y)*E,0,.8*E,(.5-z)*a));var Fe=new go.PathFigure((ue+oe)*E,ie*a,!0);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie+oe)*a,(ue+oe)*E,(ie+te)*a,(ue+te)*E,(ie+oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-oe)*E,ie*a,(ue-te)*E,(ie+oe)*a,(ue-oe)*E,(ie+te)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie-oe)*a,(ue-oe)*E,(ie-te)*a,(ue-te)*E,(ie-oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+oe)*E,ie*a,(ue+te)*E,(ie-oe)*a,(ue+oe)*E,(ie-te)*a)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Be*y,te=0,oe=.5,ue=new go.PathFigure(.8*E,.5*a,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(te+z)*E,(oe-y)*a,.7*E,(oe-z)*a)),y=.1,z=Be*.1,te=.9,oe=.5;var ie=new go.PathFigure((te-y)*E,oe*a,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-y)*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,oe*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+y)*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,oe*a,(te-z)*E,(oe+y)*a,(te-y)*E,(oe+z)*a)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Be*y,te=0,oe=.5,ue=new go.PathFigure(0,0,!0);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(te+z+z)*E,(oe-y)*a,.8*E,(oe-z)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*E,(oe+z)*a,(te+z+z)*E,(oe+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Be*y,te=.2,oe=.5,ue=new go.PathFigure(.1*E,0,!1);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ie=new go.PathFigure(.8*E,.5*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.7*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(te+z)*E,(oe-y)*a,.7*E,(oe-z)*a)),y=.1,z=Be*.1,te=.9,oe=.5;var Ee=new go.PathFigure((te-y)*E,oe*a,!0);return x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-y)*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,oe*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+y)*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,oe*a,(te-z)*E,(oe+y)*a,(te-y)*E,(oe+z)*a)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Be*y,te=.2,oe=.5,ue=new go.PathFigure(.1*E,0,!1);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ie=new go.PathFigure(.2*E,0,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(te+z)*E,(oe-y)*a,.9*E,(oe-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.9*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("Resistor",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),x}),go.Shape.defineFigureGenerator("Inductor",function(le,E,a){var x=new go.Geometry,y=Be*.1,z=.1,te=.1,oe=.5,ue=new go.PathFigure((te-y*.5)*E,a,!1);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.3,ue.add(new go.PathSegment(go.PathSegment.Bezier,te*E,a,(te+z)*E,0,(te+y)*E,a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.5,ue.add(new go.PathSegment(go.PathSegment.Bezier,te*E,a,(te+z)*E,0,(te+y)*E,a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.7,ue.add(new go.PathSegment(go.PathSegment.Bezier,te*E,a,(te+z)*E,0,(te+y)*E,a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.9,ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+y*.5)*E,a,(te+z)*E,0,(te+y)*E,a)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(le,E,a){var x=new go.Geometry,y=Be*.5,z=.5,te=.5,oe=.5,ue=new go.PathFigure((te-z)*E,oe*a,!1);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-z)*a,(te-z)*E,(oe-y)*a,(te-y)*E,(oe-z)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,(te+y)*E,(oe-z)*a,(te+z)*E,(oe-y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+z)*a,(te+z)*E,(oe+y)*a,(te+y)*E,(oe+z)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,(te-y)*E,(oe+z)*a,(te-z)*E,(oe+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Move,(te-z+.1)*E,oe*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+z-.1)*E,oe*a,te*E,(oe-z)*a,te*E,(oe+z)*a)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("Diode",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(le,E,a){var x=new go.Geometry,y=E,z=a;E=E*.38,a=a*.6;var te=Be*.8,oe=.8,ue=0,ie=.5,Ee=(y-E)/2,Fe=(z-a)/2,Qe=new go.PathFigure(ue*E+Ee,(ie+oe)*a+Fe,!0);x.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-oe)*E+Ee,ie*a+Fe,(ue-te)*E+Ee,(ie+oe)*a+Fe,(ue-oe)*E+Ee,(ie+te)*a+Fe)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+Ee,(ie-oe)*a+Fe,(ue-oe)*E+Ee,(ie-te)*a+Fe,(ue-te)*E+Ee,(ie-oe)*a+Fe)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-oe+te*.5)*E+Ee,ie*a+Fe,ue*E+Ee,(ie-oe)*a+Fe,(ue-oe+te*.5)*E+Ee,(ie-te)*a+Fe)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+Ee,(ie+oe)*a+Fe,(ue-oe+te*.5)*E+Ee,(ie+te)*a+Fe,ue*E+Ee,(ie+oe)*a+Fe).close()),te=Be*.4,oe=.4,ue=.2,ie=.5;var Le=new go.PathFigure(ue*E+Ee,(ie+oe)*a+Fe,!0);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ue-oe)*E+Ee,ie*a+Fe,(ue-te)*E+Ee,(ie+oe)*a+Fe,(ue-oe)*E+Ee,(ie+te)*a+Fe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+Ee,(ie-oe)*a+Fe,(ue-oe)*E+Ee,(ie-te)*a+Fe,(ue-te)*E+Ee,(ie-oe)*a+Fe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ue-oe+te*.5)*E+Ee,ie*a+Fe,ue*E+Ee,(ie-oe)*a+Fe,(ue-oe+te*.5)*E+Ee,(ie-te)*a+Fe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+Ee,(ie+oe)*a+Fe,(ue-oe+te*.5)*E+Ee,(ie+te)*a+Fe,ue*E+Ee,(ie+oe)*a+Fe).close()),te=Be*.2,oe=.2,ue=.5,ie=.5;var st=new go.PathFigure((ue-oe)*E+Ee,ie*a+Fe,!0);x.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+Ee,(ie-oe)*a+Fe,(ue-oe)*E+Ee,(ie-te)*a+Fe,(ue-te)*E+Ee,(ie-oe)*a+Fe)),st.add(new go.PathSegment(go.PathSegment.Bezier,(ue+oe)*E+Ee,ie*a+Fe,(ue+te)*E+Ee,(ie-oe)*a+Fe,(ue+oe)*E+Ee,(ie-te)*a+Fe)),st.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+Ee,(ie+oe)*a+Fe,(ue+oe)*E+Ee,(ie+te)*a+Fe,(ue+te)*E+Ee,(ie+oe)*a+Fe)),st.add(new go.PathSegment(go.PathSegment.Bezier,(ue-oe)*E+Ee,ie*a+Fe,(ue-te)*E+Ee,(ie+oe)*a+Fe,(ue-oe)*E+Ee,(ie+te)*a+Fe)),te=Be*.4,oe=.4,ue=.8,ie=.5;var Me=new go.PathFigure(ue*E+Ee,(ie-oe)*a+Fe,!0);x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ue+oe)*E+Ee,ie*a+Fe,(ue+te)*E+Ee,(ie-oe)*a+Fe,(ue+oe)*E+Ee,(ie-te)*a+Fe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+Ee,(ie+oe)*a+Fe,(ue+oe)*E+Ee,(ie+te)*a+Fe,(ue+te)*E+Ee,(ie+oe)*a+Fe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ue+oe-te*.5)*E+Ee,ie*a+Fe,ue*E+Ee,(ie+oe)*a+Fe,(ue+oe-te*.5)*E+Ee,(ie+te)*a+Fe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+Ee,(ie-oe)*a+Fe,(ue+oe-te*.5)*E+Ee,(ie-te)*a+Fe,ue*E+Ee,(ie-oe)*a+Fe).close()),te=Be*.8,oe=.8,ue=1,ie=.5;var Ye=new go.PathFigure(ue*E+Ee,(ie-oe)*a+Fe,!0);return x.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(ue+oe)*E+Ee,ie*a+Fe,(ue+te)*E+Ee,(ie-oe)*a+Fe,(ue+oe)*E+Ee,(ie-te)*a+Fe)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+Ee,(ie+oe)*a+Fe,(ue+oe)*E+Ee,(ie+te)*a+Fe,(ue+te)*E+Ee,(ie+oe)*a+Fe)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(ue+oe-te*.5)*E+Ee,ie*a+Fe,ue*E+Ee,(ie+oe)*a+Fe,(ue+oe-te*.5)*E+Ee,(ie+te)*a+Fe)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,ue*E+Ee,(ie-oe)*a+Fe,(ue+oe-te*.5)*E+Ee,(ie-te)*a+Fe,ue*E+Ee,(ie-oe)*a+Fe).close()),x}),go.Shape.defineFigureGenerator("Email",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.54*a)),x}),go.Shape.defineFigureGenerator("Ethernet",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.35*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,0).close());var z=new go.PathFigure(.1*E,a,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var te=new go.PathFigure(.6*E,a,!0,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*E,.6*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*E,a).close());var oe=new go.PathFigure(0,.5*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),oe.add(new go.PathSegment(go.PathSegment.Move,.75*E,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.75*E,.6*a)),oe.add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.25*E,.6*a)),x}),go.Shape.defineFigureGenerator("Power",function(le,E,a){var x=new go.Geometry,y=Be*.4,z=.4,te=.5,oe=.5,ue=b(),ie=b(),Ee=b(),Fe=b();xe(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.5,ue,ue,ie,Ee,Fe);var Qe=ae(ie.x,ie.y),Le=new go.PathFigure(ie.x*E,ie.y*a,!0);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,Ee.x*E,Ee.y*a,Fe.x*E,Fe.y*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+z)*a,(te+z)*E,(oe+y)*a,(te+y)*E,(oe+z)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,(te-y)*E,(oe+z)*a,(te-z)*E,(oe+y)*a)),xe(te-z,oe,te-z,oe-y,te-y,oe-z,te,oe-z,.5,Ee,Fe,ie,ue,ue),Le.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*E,ie.y*a,Ee.x*E,Ee.y*a,Fe.x*E,Fe.y*a)),y=Be*.3,z=.3,xe(te-z,oe,te-z,oe-y,te-y,oe-z,te,oe-z,.5,Ee,Fe,ie,ue,ue),Le.add(new go.PathSegment(go.PathSegment.Line,ie.x*E,ie.y*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,Fe.x*E,Fe.y*a,Ee.x*E,Ee.y*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+z)*a,(te-z)*E,(oe+y)*a,(te-y)*E,(oe+z)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),xe(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.5,ue,ue,ie,Ee,Fe),Le.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*E,ie.y*a,Fe.x*E,Fe.y*a,Ee.x*E,Ee.y*a).close());var Le=new go.PathFigure(.45*E,0,!0);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.55*E,.5*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.55*E,0).close()),he(ue),he(ie),he(Ee),he(Fe),he(Qe),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a/2,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,180,360,E/2,a/2,E/2,a/2));function z(te,oe,ue){te.add(new go.PathSegment(go.PathSegment.Move,(.3+oe)*E,(.8+ue)*a)),te.add(new go.PathSegment(go.PathSegment.Line,(.5+oe)*E,(.5+ue)*a)),te.add(new go.PathSegment(go.PathSegment.Line,(.1+oe)*E,(.5+ue)*a)),te.add(new go.PathSegment(go.PathSegment.Line,(.3+oe)*E,(.8+ue)*a).close())}return z(y,0,0),z(y,.4,0),z(y,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.2*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.37*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.11*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*E,.04*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.49*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.37*a)),y.add(new go.PathSegment(go.PathSegment.Line,.63*E,.86*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*E,.91*a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*E,.78*a)),y.add(new go.PathSegment(go.PathSegment.Line,.44*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.56*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.29*E,0,-.25*E,.63*a,.45*E,.44*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.51*E,.42*a,.48*E,.17*a,.54*E,.35*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.59*E,.18*a,.59*E,.29*a,.58*E,.28*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,.6*a,.8*E,.34*a,.88*E,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.88*E,.31*a,.87*E,.48*a,.88*E,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,1.17*E,.76*a,.82*E,.8*a).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(le,E,a){var x=new go.Geometry,y=.5,z=0,te=0,oe=y*Be,ue=.4*Math.SQRT2/2+.5,ie=.5-.5*Math.SQRT2/2,Ee=1,Fe=.5,Qe=.5,Le=0,st=new go.PathFigure(ue*E,(1-ie)*a,!1);return x.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,Ee*E,Fe*a,Ee*E,.7*a,Ee*E,Fe*a)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+z)*E,(Le+z)*a,(.5+y+z)*E,(.5-oe+z)*a,(.5+oe+z)*E,(.5-y+z)*a)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+te)*a,(.5-oe+z)*E,(.5-y+te)*a,(.5-y+z)*E,(.5-oe+te)*a)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.35+z)*E,.9*a,(.5-y+z)*E,(.5+oe+te)*a,(.5-oe+z)*E,.9*a)),st.add(new go.PathSegment(go.PathSegment.Move,(.25+z)*E,.8*a)),st.add(new go.PathSegment(go.PathSegment.Line,(.35+z)*E,.9*a)),st.add(new go.PathSegment(go.PathSegment.Line,(.2+z)*E,.95*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var te=new go.PathFigure(0,.5*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.2*E,.35*a,.3*E,.35*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.7*E,.65*a,.8*E,.65*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var y=new go.PathFigure(0,.2*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.7*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,0,.6*E,.5*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,a,.4*E,.5*a,E,.5*a).close());var z=new go.PathFigure(.45*E,.73*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.73*a)),z.add(new go.PathSegment(go.PathSegment.Move,.38*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.63*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Move,.31*E,.27*a)),z.add(new go.PathSegment(go.PathSegment.Line,.56*E,.27*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(.335*E,(1-.555)*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.68*a,(1-.12)*E,.46*a,(1-.02)*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.335*E,(1-.555)*a,.02*E,.54*a,.12*E,.46*a)),z.add(new go.PathSegment(go.PathSegment.Line,.365*E,(1-.595)*a));var te=.5-.285,oe=.5,ue=te,ie=Math.PI/4,Ee=4*(1-Math.cos(ie))/(3*Math.sin(ie)),Fe=Ee*.5,Qe=te,Le=te,st=Ee*Qe,Me=Ee*Le;z.add(new go.PathSegment(go.PathSegment.Bezier,(oe-Qe)*E,ue*a,(oe-(st+Qe)/2)*E,(ue+(Le+Me)/2)*a,(oe-Qe)*E,(ue+Me)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(ue-Le)*a,(oe-Qe)*E,(ue-Me)*a,(oe-st)*E,(ue-Le)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(oe+Qe)*E,ue*a,(oe+st)*E,(ue-Le)*a,(oe+Qe)*E,(ue-Me)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*E,(1-.595)*a,(oe+Qe)*E,(ue+Me)*a,(oe+(st+Qe)/2)*E,(ue+(Le+Me)/2)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*E,(1-.595)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a));var Ye=new go.PathFigure(.2*E,a,!1);x.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Line,.2*E,.8*a));var Ge=new go.PathFigure(.8*E,a,!1);return x.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var z=new go.PathFigure(.2*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var te=new go.PathFigure(.1*E,a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Caution",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.05*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.8*a,0,a,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.1*a,.5*E,0,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.95*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,E,a,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,a));var z=.05;return y.add(new go.PathSegment(go.PathSegment.Move,(.5-z)*E,.875*a)),y.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*E,.875*a,z*E,z*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.325*a,.575*E,.725*a,.625*E,.375*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.75*a,.375*E,.375*a,.425*E,.725*a)),x}),go.Shape.defineFigureGenerator("Recycle",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.45*E,.95*a,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.185*E,.85*a,.17*E,.95*a,.15*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.235*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.625*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,.275*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.575*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.1875*E,.95*a,0,.675*a,0,.7*a)),y.add(new go.PathSegment(go.PathSegment.Move,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.775*a)),y.add(new go.PathSegment(go.PathSegment.Line,.22*E,.775*a));var z=new go.PathFigure(.475*E,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.225*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.275*E,.175*a)),z.add(new go.PathSegment(go.PathSegment.Line,.325*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.05*a,.35*E,0,.375*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.575*E,.375*a)),z.add(new go.PathSegment(go.PathSegment.Line,.525*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.475*a)),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.315*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.32*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,0,.65*E,.05*a,.625*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.38*E,.0105*a));var te=new go.PathFigure(.675*E,.575*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.875*E,.525*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.85*E,.95*a,E,.8*a,E,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,.95*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,.725*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Line,.7*E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Move,.675*E,.575*a)),te.add(new go.PathSegment(go.PathSegment.Line,.775*E,.775*a)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(le,E,a){var x=new go.Geometry,y=.5,z=Be*.5,te=new go.PathFigure(E,y*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,y*E,a,E,(y+z)*a,(y+z)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y*a,(y-z)*E,a,0,(y+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,y*E,0,0,(y-z)*a,(y-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,y*a,(y+z)*E,0,E,(y-z)*a));var oe=new go.PathFigure(y*E,0,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,y*E,.15*a)),oe.add(new go.PathSegment(go.PathSegment.Move,y*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,y*E,.85*a)),oe.add(new go.PathSegment(go.PathSegment.Move,0,y*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.15*E,y*a)),oe.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.85*E,y*a)),oe.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.58*E,.1*a)),oe.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.78*E,.54*a)),x}),go.Shape.defineFigureGenerator("Package",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.15*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,.15*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.15*a).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var te=new go.PathFigure(0,.5*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Component",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close());var z=new go.PathFigure(0,.2*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var te=new go.PathFigure(0,.6*a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.45*E,.6*a)),te.add(new go.PathSegment(go.PathSegment.Line,.45*E,.8*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.15*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a));var z=new go.PathFigure(.15*E,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(E,.8*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.8*a).close());var te=.1,oe=Be*.1,ue=.2,ie=.9,Ee=new go.PathFigure((ue-te)*E,ie*a,!0);x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie-te)*a,(ue-te)*E,(ie-oe)*a,(ue-oe)*E,(ie-te)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue+te)*E,ie*a,(ue+oe)*E,(ie-te)*a,(ue+te)*E,(ie-oe)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie+te)*a,(ue+te)*E,(ie+oe)*a,(ue+oe)*E,(ie+te)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(ue-te)*E,ie*a,(ue-oe)*E,(ie+te)*a,(ue-te)*E,(ie+oe)*a).close()),te=.1,oe=Be*.1,ue=.8,ie=.9;var Fe=new go.PathFigure((ue-te)*E,ie*a,!0);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie-te)*a,(ue-te)*E,(ie-oe)*a,(ue-oe)*E,(ie-te)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ue+te)*E,ie*a,(ue+oe)*E,(ie-te)*a,(ue+te)*E,(ie-oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ue*E,(ie+te)*a,(ue+te)*E,(ie+oe)*a,(ue+oe)*E,(ie+te)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ue-te)*E,ie*a,(ue-oe)*E,(ie+te)*a,(ue-te)*E,(ie+oe)*a).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.2*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),x}),go.Shape.defineFigureGenerator("Forklift",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0));var z=new go.PathFigure(0,.5*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var te=new go.PathFigure(.5*E,.8*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,.1*a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.1*a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.8*a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a));var oe=new go.PathFigure(.5*E,.7*a,!1);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,.7*a));var ue=.1,ie=Be*.1,Ee=.1,Fe=.9,Qe=new go.PathFigure((Ee-ue)*E,Fe*a,!0);x.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*E,(Fe-ue)*a,(Ee-ue)*E,(Fe-ie)*a,(Ee-ie)*E,(Fe-ue)*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+ue)*E,Fe*a,(Ee+ie)*E,(Fe-ue)*a,(Ee+ue)*E,(Fe-ie)*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*E,(Fe+ue)*a,(Ee+ue)*E,(Fe+ie)*a,(Ee+ie)*E,(Fe+ue)*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-ue)*E,Fe*a,(Ee-ie)*E,(Fe+ue)*a,(Ee-ue)*E,(Fe+ie)*a)),ue=.1,ie=Be*.1,Ee=.4,Fe=.9;var Le=new go.PathFigure((Ee-ue)*E,Fe*a,!0);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ee*E,(Fe-ue)*a,(Ee-ue)*E,(Fe-ie)*a,(Ee-ie)*E,(Fe-ue)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+ue)*E,Fe*a,(Ee+ie)*E,(Fe-ue)*a,(Ee+ue)*E,(Fe-ie)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ee*E,(Fe+ue)*a,(Ee+ue)*E,(Fe+ie)*a,(Ee+ie)*E,(Fe+ue)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-ue)*E,Fe*a,(Ee-ie)*E,(Fe+ue)*a,(Ee-ue)*E,(Fe+ie)*a)),x}),go.Shape.defineFigureGenerator("RailShipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,.4*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.4*a).close());var z=new go.PathFigure(.45*E,.7*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a));var te=new go.PathFigure(.55*E,.4*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.4*a).close());var Ee=.05,Fe=Be*.05,Qe=.175,Le=.95,oe=new go.PathFigure((Qe-Ee)*E,Le*a,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le-Ee)*a,(Qe-Ee)*E,(Le-Fe)*a,(Qe-Fe)*E,(Le-Ee)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Ee)*E,Le*a,(Qe+Fe)*E,(Le-Ee)*a,(Qe+Ee)*E,(Le-Fe)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le+Ee)*a,(Qe+Ee)*E,(Le+Fe)*a,(Qe+Fe)*E,(Le+Ee)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Qe-Ee)*E,Le*a,(Qe-Fe)*E,(Le+Ee)*a,(Qe-Ee)*E,(Le+Fe)*a));var Ee=.05,Fe=Be*.05,Qe=.375,Le=.95,ue=new go.PathFigure((Qe-Ee)*E,Le*a,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le-Ee)*a,(Qe-Ee)*E,(Le-Fe)*a,(Qe-Fe)*E,(Le-Ee)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Ee)*E,Le*a,(Qe+Fe)*E,(Le-Ee)*a,(Qe+Ee)*E,(Le-Fe)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le+Ee)*a,(Qe+Ee)*E,(Le+Fe)*a,(Qe+Fe)*E,(Le+Ee)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(Qe-Ee)*E,Le*a,(Qe-Fe)*E,(Le+Ee)*a,(Qe-Ee)*E,(Le+Fe)*a));var Ee=.05,Fe=Be*.05,Qe=.625,Le=.95,ie=new go.PathFigure((Qe-Ee)*E,Le*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le-Ee)*a,(Qe-Ee)*E,(Le-Fe)*a,(Qe-Fe)*E,(Le-Ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Ee)*E,Le*a,(Qe+Fe)*E,(Le-Ee)*a,(Qe+Ee)*E,(Le-Fe)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le+Ee)*a,(Qe+Ee)*E,(Le+Fe)*a,(Qe+Fe)*E,(Le+Ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Qe-Ee)*E,Le*a,(Qe-Fe)*E,(Le+Ee)*a,(Qe-Ee)*E,(Le+Fe)*a));var Ee=.05,Fe=Be*.05,Qe=.825,Le=.95,st=new go.PathFigure((Qe-Ee)*E,Le*a,!0);x.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le-Ee)*a,(Qe-Ee)*E,(Le-Fe)*a,(Qe-Fe)*E,(Le-Ee)*a)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Ee)*E,Le*a,(Qe+Fe)*E,(Le-Ee)*a,(Qe+Ee)*E,(Le-Fe)*a)),st.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le+Ee)*a,(Qe+Ee)*E,(Le+Fe)*a,(Qe+Fe)*E,(Le+Ee)*a)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Qe-Ee)*E,Le*a,(Qe-Fe)*E,(Le+Ee)*a,(Qe-Ee)*E,(Le+Fe)*a).close());var Me=new go.PathFigure(0,a,!1);return x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var te=new go.PathFigure(.15*E,a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.15*E,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.15*E,a).close());var oe=.05,ue=Be*.05,ie=.35,Ee=.775,Fe=new go.PathFigure((ie-oe)*E,Ee*a,!0);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(Ee-oe)*a,(ie-oe)*E,(Ee-ue)*a,(ie-ue)*E,(Ee-oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe)*E,Ee*a,(ie+ue)*E,(Ee-oe)*a,(ie+oe)*E,(Ee-ue)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(Ee+oe)*a,(ie+oe)*E,(Ee+ue)*a,(ie+ue)*E,(Ee+oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe)*E,Ee*a,(ie-ue)*E,(Ee+oe)*a,(ie-oe)*E,(Ee+ue)*a).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),x}),go.Shape.defineFigureGenerator("Globe",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.75*E,0,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.75*a,.75*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*E,a,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,.25*a,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,.15*E,.25*a,.15*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.85*E,.75*a,.85*E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.15*a,.35*E,.3*a,.65*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.85*a,.35*E,.7*a,.65*E,.7*a)),x}),go.Shape.defineFigureGenerator("Wave",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.25*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.25*a,.1*E,0,.2*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.25*a,.425*E,.5*a,.575*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.25*a,.8*E,0,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.75*a,.1*E,.5*a,.2*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.75*a,.425*E,a,.575*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.75*a,.8*E,.5*a,.9*E,.5*a)),x}),go.Shape.defineFigureGenerator("Operator",function(le,E,a){var x=new go.Geometry,y=.3,z=Be*.3,te=.5,oe=.7,ue=new go.PathFigure((te-y)*E,oe*a,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-y)*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,oe*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+y)*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,oe*a,(te-z)*E,(oe+y)*a,(te-y)*E,(oe+z)*a));var ie=new go.PathFigure(0,.7*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,.7*a,0,0,E,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.65*E,.3*a,.65*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.35*E,.5*a,.35*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*E,.6*a,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.2*E,a,.35*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,a,.7*E,.6*a,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.8*E,a,.65*E,.95*a)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,0,a,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.4*a,.8*E,a,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),x}),go.Shape.defineFigureGenerator("Battery",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.1*a));var z=new go.PathFigure(0,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),x}),go.Shape.defineFigureGenerator("Delete",function(le,E,a){var x=new go.Geometry,y=.5,z=Be*.5,te=.5,oe=.5,ue=new go.PathFigure((te-y)*E,oe*a,!0);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-y)*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,oe*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+y)*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,oe*a,(te-z)*E,(oe+y)*a,(te-y)*E,(oe+z)*a));var ie=new go.PathFigure(.15*E,.5*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.85*E,.5*a)),x}),go.Shape.defineFigureGenerator("Flag",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.1*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.1*a,.15*E,0,.35*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,.65*E,.2*a,.85*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.85*E,.6*a,.65*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*E,.4*a,.15*E,.4*a).close()),x}),go.Shape.defineFigureGenerator("Help",function(le,E,a){var x=new go.Geometry,y=.5,z=Be*.5,te=.5,oe=.5,ue=new go.PathFigure((te-y)*E,oe*a,!1);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-y)*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,oe*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+y)*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,oe*a,(te-z)*E,(oe+y)*a,(te-y)*E,(oe+z)*a).close()),y=.05,z=Be*.05,te=.5,oe=.8;var ie=new go.PathFigure((te-y)*E,oe*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-y)*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,oe*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+y)*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,oe*a,(te-z)*E,(oe+y)*a,(te-y)*E,(oe+z)*a).close()),ie.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,.75*E,.475*a,.75*E,.225*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.35*a,.4*E,.2*a,.3*E,.25*a)),x}),go.Shape.defineFigureGenerator("Location",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.975*E,.025*a,.5*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*E,.5*a,.5*E,0,.025*E,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*E,.3*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.3*a)),x}),go.Shape.defineFigureGenerator("Unlocked",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.35*a)),x}),go.Shape.defineFigureGenerator("Gear",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.9375*E,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*E,.3316875*a,.79840625*E,.39915625*a,.7834375*E,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*E,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*E,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*E,.19378125*a,.64228125*E,.2188125*a,.603875*E,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*E,.239375*a,.39759375*E,.20190625*a,.36053125*E,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*E,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*E,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*E,.4375*a,.21765625*E,.36059375*a,.201875*E,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*E,.67596875*a,.20221875*E,.603875*a,.21884375*E,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*E,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*E,.80621875*a,.36353125*E,.78340625*a,.3991875*E,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*E,.760625*a,.602375*E,.79809375*a,.63946875*E,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*E,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*E,.56246875*a,.78234375*E,.63940625*a,.798125*E,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*E,.5*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.3*a,0,.375*a,.05*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.075*a,.3*E,.225*a,.4*E,.175*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.525*E,.075*a,.46*E,.05*a,.525*E,.05*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.4*a,.525*E,.275*a,.475*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.55*a,E,.4*a,E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.425*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.7*a,.675*E,.55*a,.675*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.575*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,.85*a,.65*E,.7*a,.65*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.535*E,a,.61*E,.85*a,.61*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*E,a,0,a).close()),x}),go.Shape.defineFigureGenerator("Map",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),x}),go.Shape.defineFigureGenerator("Eject",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.7)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var z=new go.PathFigure(0,a*.6,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*1,a*1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.85).close());var z=new go.PathFigure(.126*E,.85*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.126*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.85*a).close());var te=new go.PathFigure(.402*E,.85*a,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.402*E,.45*a)),te.add(new go.PathSegment(go.PathSegment.Line,.598*E,.45*a)),te.add(new go.PathSegment(go.PathSegment.Line,.598*E,.85*a).close());var oe=new go.PathFigure(.678*E,.85*a,!1);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.678*E,.45*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.874*E,.45*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.874*E,.85*a).close());var ue=new go.PathFigure(.5*E,.1*a,!1);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*E,.3*a)),ue.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*E,.3*a).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a*1,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a*1,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*(1-.184)).close());var z=new go.PathFigure(E*.204,a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.204,a*(1-.184))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*1).close());var te=new go.PathFigure(E*.408,a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.408,a*(1-.184*2))),te.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*(1-.184*3))),te.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*1).close());var oe=new go.PathFigure(E*.612,a,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*.612,a*(1-.184*3))),oe.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*(1-.184*4))),oe.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*1).close());var ue=new go.PathFigure(E*.816,a,!0);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,E*.816,a*(1-.184*4))),ue.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-.184*5))),ue.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,0).close());var z=new go.PathFigure(E*.055,.07*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.07)),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.1).close());var te=new go.PathFigure(E*.055,.13*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.13)),te.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.16)),te.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.16).close());var oe=new go.PathFigure(E*.055,.18*a,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.18)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.21)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.21).close());var ue=new go.PathFigure(E*1,0,!0);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,E*.4,0)),ue.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.65)),ue.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.55*E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.475*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.35*E,.525*a,0,.4*a,.225*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.475*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.2*a,.975*E,0,E,.08*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.55*E,a).close()),x}),go.Shape.defineFigureGenerator("Key",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*1,a*.5,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.9,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,.575*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.9,.6*a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.17*E,.425*a)),y.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*E,.5*a,.075*E,.075*a).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*0,E*.3,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var z=new go.PathFigure(0,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*0)),z.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*1,E*.3,E*.055)),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var te=new go.PathFigure(E*.11,a*.1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.1)),te.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.8)),te.add(new go.PathSegment(go.PathSegment.Line,E*.11,a*.8).close());var oe=new go.PathFigure(E*(.11+.24133333*1+.028*1),a*.1,!1);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.1)),oe.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.8)),oe.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*1),a*.8).close());var ue=new go.PathFigure(E*(.11+.24133333*2+.028*2),a*.1,!1);return x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.1)),ue.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.8)),ue.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*2),a*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(le,E,a){var x=new go.Geometry,y=8,z=y*Be,te=new go.PathFigure(y,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.86,0)),te.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.14)),te.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),te.add(new go.PathSegment(go.PathSegment.Bezier,E-y,a,E,a-z,E-z,a)),te.add(new go.PathSegment(go.PathSegment.Line,y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,z,a,0,a-z)),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,z,z,0).close());var oe=new go.PathFigure(E*.83,0,!1);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.3)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.3)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*0).close());var ue=new go.PathFigure(E*.83,a*1,!1);x.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.5)),ue.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.5)),ue.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*1).close());var ie=new go.PathFigure(E*.78,a*.05,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.05)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.25)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.78,a*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,E/3),x=Math.min(x,a/3);var y=x*Be,z=a*.8,te=new go.Geometry,oe=new go.PathFigure(x,0,!0);return te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E-x,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E,x,E-y,0,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,z-x)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E-x,z,E,z-y,E-y,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.7,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.7,a)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.55,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,z-x,y,z,0,z-y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,x)),oe.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()),y>1?(te.spot1=new go.Spot(0,0,y,y),te.spot2=new go.Spot(1,.8,-y,-y)):(te.spot1=go.Spot.TopLeft,te.spot2=new go.Spot(1,.8)),te}),go.Shape.defineFigureGenerator("Repeat",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*.45,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.45).close());var z=new go.PathFigure(E*1,a*.55,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*E,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*.1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.9).close());var z=new go.PathFigure(E*.1,a*.2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,E*.22,a*.285)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.25).close());var te=new go.PathFigure(E*.28,a*.37,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.37)),te.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.41)),te.add(new go.PathSegment(go.PathSegment.Line,E*.28,a*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(le,E,a){var x=new go.Geometry,y=15,z=y*Be,te=new go.PathFigure(E*.62,a*.475,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),te.add(new go.PathSegment(go.PathSegment.Bezier,E-y,a,E,a-z,E-z,a)),te.add(new go.PathSegment(go.PathSegment.Line,y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,z,a,0,a-z)),te.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.475)),te.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.03)),te.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*0)),te.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*0)),te.add(new go.PathSegment(go.PathSegment.Line,E*.62,a*.03).close()),z>1?(x.spot1=new go.Spot(0,0,z,z),x.spot2=new go.Spot(1,1,-z,-z)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var te=new go.PathFigure(E*.4,a*0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.44)),te.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.44)),te.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.66)),te.add(new go.PathSegment(go.PathSegment.Line,E*(1-.26),a*.44)),te.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.44)),te.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;return y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var te=new go.PathFigure(E*.5,a*0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.25)),te.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.25)),te.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.63)),te.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.63)),te.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.25)),te.add(new go.PathSegment(go.PathSegment.Line,E*.74,a*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.15,a*0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.15,a*0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close());var z=new go.PathFigure(E*.235,a*.28,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.765,a*.28)),z.add(new go.PathSegment(go.PathSegment.Line,E*.655,a*.97)),z.add(new go.PathSegment(go.PathSegment.Line,E*.345,a*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.5,a*0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},20063:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var it={},jt="5.0",ae={},b=null,he=!1,we=!1,xe=null,Re=!1,We=null,Be=null,Ke=0;Ke4?parseFloat(Te):5};it.setHTML5Codebase=function(Te,et){Be=Te,Bn(Te,et)},it.setJavaCodebase=it.setJavaCodebaseVersion=it.isCompiledInstalled=it.setPreCompiledScriptPath=it.setPreCompiledResourcePath=function(){},it.setHTML5CodebaseVersion=function(Te,et){var Yt=parseFloat(Te);if(Yt!==NaN&&Yt<5){console.log("The GeoGebra HTML5 codebase version "+Yt+" is deprecated. Using version latest instead.");return}We=Te,En(Te,et)},it.getHTML5CodebaseVersion=function(){return le},it.getParameters=function(){return ae},it.setFontsCSSURL=function(Te){te=Te},it.setGiacJSURL=function(Te){},it.setJNLPFile=function(Te){De=Te},it.setJNLPBaseDir=function(Te){},it.inject=function(){function Te(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var et="auto",Yt=ae.id,xn,Lt=!1,_t=0;_t=5)return!0;var Te=it.getAppletObject();return Te&&typeof Te.recalculateEnvironments=="function"?(Te.recalculateEnvironments(),!0):!1},it.startAnimation=function(){var Te=it.getAppletObject();return Te&&typeof Te.startAnimation=="function"?(Te.startAnimation(),!0):!1},it.stopAnimation=function(){var Te=it.getAppletObject();return Te&&typeof Te.stopAnimation=="function"?(Te.stopAnimation(),!0):!1},it.getAppletObject=function(){var Te=ae.id!==void 0?ae.id:"ggbApplet";return window[Te]},it.resize=function(){};var st=function(Te,et,Yt){var xn=document.createElement("param");xn.setAttribute("name",et),xn.setAttribute("value",Yt),Te.appendChild(xn)},Me=function(Te){return Te&&Te!=="false"},Ye=function(Te,et,Yt){ue(le)<=4.2&&(Yt=!0);var xn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==le||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(xn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Lt=document.createElement("div");Lt.classList.add("appletParameters","notranslate");var _t=et.width,Ce=et.height;if(et.disableAutoScale=et.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():et.disableAutoScale,et.width!==void 0)if(ue(le)<=4.4)Me(et.showToolBar)&&(et.height-=7),Me(et.showAlgebraInput)&&(et.height-=37),et.width<605&&Me(et.showToolBar)&&(et.width=605,_t=605);else{var ot=100;(Me(et.showToolBar)||Me(et.showMenuBar))&&(et.hasOwnProperty("customToolBar")&&(et.customToolbar=et.customToolBar),ot=Me(et.showMenuBar)?245:155),_t=5?(et.appletOnLoad=function(jn){var Ha=Te.querySelector(".ggb_preview");Ha&&Ha.parentNode.removeChild(Ha),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ht),window.GGBT_wsf_view&&$(window).trigger("resize"),nt(jn)},Jn||ht.appendChild(dn)):Lt.appendChild(dn),ht.appendChild(Lt),Jn||Te.appendChild(ht),setTimeout(function(){it.resize()},1)}else{var Qt=document.createElement("div");Qt.className="applet_scaler",Qt.style.position="relative",Qt.style.display="block",Qt.appendChild(Lt),Te.appendChild(Qt),et.appletOnLoad=function(jn){it.resize(),nt(jn)}}function Rt(jn,Ha){Ha&&typeof Ha.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(jn,Ha.appletOnLoad):renderGGBElement(jn),Wt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ha)}function Wn(jn,Ha){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:jn,params:Ha}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Pa){Rt(Pa.article,Pa.params)}),html5AppletsToProcess=null)},ue(le)<5&&(jn.className+=" geogebraweb")):Rt(jn,Ha)}if(xn){scriptLoadStarted=!0;for(var ra=0;ra0?(nn.remove(),ht.attr("id","fullscreencontent").show(),jQuery(nt).append(ht),window.dispatchEvent(new Event("resize"))):Ye(nn,et,!1),window.GGBT_wsf_view.launchFullScreen(nt)}else Ue=xn,Ye(Te,et,!1);if(!window.GGBT_wsf_view)for(Ce=0;CeTe/4*3&&(nn=Te/4*3),nt=nn/5.8,ot.setAttribute("src",y),ot.setAttribute("width",nn),ot.setAttribute("height",nt);var ht=(Te-nn)/2,Jn=(et-nt)/2;ot.style.left=ht+"px",ot.style.top=Jn+"px",Lt.appendChild(ot)}}return Lt.appendChild(Ce),Lt},Ft=function(Te){return Te=Te.toLowerCase(),Te==="html5"||Te==="screenshot"?Te:"html5"},At=["web","webSimple","web3d","tablet","tablet3d","phone"],En=function(Te,et){if(le=Te,et){Bn(le,!0);return}var Yt=!he;if(Yt){var xn=ue(le);!isNaN(xn)&&xn<4.4&&(Yt=!1)}var Lt,_t;window.location.protocol.substr(0,4)==="http"?Lt=window.location.protocol:Lt="http:";var Ce=le.indexOf("//");Ce>0?_t=le:Ce===0?_t=Lt+le:_t="https://www.geogebra.org/apps/5.2.814.0/";for(var ot in At)if(le.slice(At[ot].length*-1)===At[ot]||le.slice((At[ot].length+1)*-1)===At[ot]+"/"){Bn(_t,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Yt&&!b.is3D&&!b.AV&&!b.SV&&!b.CV&&!b.EV2&&!b.CP&&!b.PC&&!b.DA&&!b.FI&&!b.PV&&!Me(ae.showToolBar)&&!Me(ae.showMenuBar)&&!Me(ae.showAlgebraInput)&&!Me(ae.enableRightClick)&&(!ae.appName||ae.appName=="classic")?_t+="webSimple/":_t+="web3d/",Bn(_t,!1)},Bn=function(Te,et){if(Te.requirejs){ke=Te;return}Te.slice(-1)!=="/"&&(Te+="/"),ke=Te,et===null&&(et=Te.indexOf("http")===-1),ze=et,E="web.nocache.js",a=!1;var Yt=ke.split("/");Yt.length>1&&(!et&&Yt[Yt.length-2]==="webSimple"?(E="webSimple.nocache.js",a=!0):At.indexOf(Yt[Yt.length-2])>=0&&(E=Yt[Yt.length-2]+".nocache.js")),Yt=Te.split("/"),le=Yt[Yt.length-3],le.substr(0,4)==="test"?le=le.substr(4,1)+"."+le.substr(5,1):(le.substr(0,3)==="war"||le.substr(0,4)==="beta")&&(le="5.0");var xn=parseFloat(le);xn!==NaN&&xn<5&&Te.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+xn+" is deprecated. Using version latest instead."),En("5.0",et))},Wt=function(Te,et){window.console&&window.console.log&&(!et||typeof et.showLogging=="undefined"||et.showLogging&&et.showLogging!=="false")&&console.log(Te)};ae.material_id!==void 0?Fe(Pt):Pt();function Pt(){var Te=jt;We!==null?Te=We:parseFloat(Te)<5&&(Te="5.0"),En(Te,!1),Be!==null&&Bn(Be,ze),Re=!0}return it},GGBAppletUtils=function(){"use strict";function it(){return window.GGBT_wsf_edit!==void 0}function jt(Re,We){We!=1?(Re.style.transformOrigin="0% 0% 0px",Re.style.webkitTransformOrigin="0% 0% 0px",Re.style.transform="scale("+We+","+We+")",Re.style.webkitTransform="scale("+We+","+We+")",Re.style.maxWidth="initial",Re.querySelector(".ggb_preview")!==null&&(Re.querySelector(".ggb_preview").style.maxWidth="initial"),Re.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Re.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Re.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Re.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Re.style.transform="none",Re.style.webkitTransform="none")}function ae(Re,We,Be,Ke,Oe,De){var ke=null;if(De!=null&&De!="")for(var ze=Re.parentNode;ze!=null;)if((" "+ze.className+" ").indexOf(" "+De+" ")>-1){ke=ze;break}else ze=ze.parentNode;var Ue=0,le=0,E=0,a=0,x=0,y=0,z=0;if(ke)Ue=ke.offsetWidth,le=Math.max(Ke?ke.offsetWidth:0,ke.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ue=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),E=Ue):(Ue=window.innerWidth,le=window.innerHeight,E=window.innerWidth),Re){var te=Re.getBoundingClientRect();te.left>0&&te.left<=Ue&&(Oe===void 0||!Oe)&&(document.dir==="rtl"?(x=Ue-te.width-te.left,y=E<=480?10:30):(y=te.left,x=E<=480?10:30),a=y+x)}if(Re&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var oe=Re.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,z=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,z=40)}}return Re&&((Be===void 0||!Be)&&We>0&&We+a1&&(De=!0)),We&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(Re.hasOwnProperty("disableAutoScale")&&Re.disableAutoScale))Oe=b(Re,We,De,Be,Re.scaleContainerClass);else return Ke;return De&&(!Re.hasOwnProperty("scale")||Ke===1)?Oe:Math.min(Ke,Oe)}function we(Re){var We=Math.min(window.innerWidth,document.documentElement.clientWidth),Be=Math.min(window.innerHeight,document.documentElement.clientHeight),Ke=Re.getBoundingClientRect(),Oe=(We-Ke.width)/2,De=(Be-Ke.height)/2;De<0&&(De=0),Re.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Oe<40?Re.style.left="40px":Re.style.left=Oe+"px",Re.style.top=De+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(De<40?Re.style.top="40px":Re.style.top=De+"px",Re.style.left=Oe+"px")}function xe(Re,We){var Be=Re.querySelector(".appletParameters");if(Be){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(We.id!==Be.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Re)}if(Be.parentElement&&/fullscreen/.test(Be.parentElement.className))return;var Ke=he(We,Re);it()&&Be.setAttribute("data-param-scale",Ke);for(var Oe=null,De=0;De=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(it){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(it){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(it){var jt=c[it];return jt==null?null:jt},r=d,webModule.__errFn=e}function B(){function it(Re){var We=Re.lastIndexOf(rb);We==-1&&(We=Re.length);var Be=Re.indexOf(sb);Be==-1&&(Be=Re.length);var Ke=Re.lastIndexOf(tb,Math.min(Be,We));return Ke>=O?Re.substring(O,Ke+P):W}function jt(Re){if(!Re.match(/^\w+:\/\//)){var We=o.createElement(ub);We.src=Re+vb,Re=it(We.src)}return Re}function ae(){var Re=__gwt_getMetaProperty(wb);return Re!=null?Re:W}function b(){for(var Re=o.getElementsByTagName(_),We=O;WeO?Re[Re.length-P].href:W}function we(){var Re=o.location;return Re.href==Re.protocol+zb+Re.host+Re.pathname+Re.search+Re.hash}var xe=ae();return xe==W&&(xe=b()),xe==W&&(xe=he()),xe==W&&we()&&(xe=it(o.location.href)),xe=jt(xe),xe}function C(it){return it.match(/^\//)||it.match(/^[a-zA-Z]+:\/\//)?it:webModule.__moduleBase+it}function D(){var it=[],jt=O,ae=[],b=[];function he(Re){var We=b[Re](),Be=ae[Re];if(We in Be)return We;var Ke=[];for(var Oe in Be)Ke[Be[Oe]]=Oe;throw r&&r(Re,Ke,We),null}if(__gwt_isKnownPropertyValue=function(Re,We){return We in ae[Re]},webModule.__getPropMap=function(){var Re={};for(var We in ae)ae.hasOwnProperty(We)&&(Re[We]=he(We));return Re},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var we;try{we=Cb;var xe=we.indexOf(Db);xe!=-1&&(jt=parseInt(we.substring(xe+P),$),we=we.substring(O,xe))}catch(Re){}return webModule.__softPermutationId=jt,C(we+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},25676:function(it,jt,ae){"use strict";ae.d(jt,{Ax:function(){return xe},Ds:function(){return Re},KI:function(){return Be},SI:function(){return we},f1:function(){return he}});var b=ae(11662);function he(Ke){let Oe=!0;if(Ke.length>0){for(let De=0;Dea in E?we(E,a,{enumerable:!0,configurable:!0,writable:!0,value:x}):E[a]=x,De=(E,a)=>{for(var x in a||(a={}))Be.call(a,x)&&Oe(E,x,a[x]);if(We)for(var x of We(a))Ke.call(a,x)&&Oe(E,x,a[x]);return E},ke=(E,a)=>xe(E,Re(a)),ze=(E,a)=>{var x={};for(var y in E)Be.call(E,y)&&a.indexOf(y)<0&&(x[y]=E[y]);if(E!=null&&We)for(var y of We(E))a.indexOf(y)<0&&Ke.call(E,y)&&(x[y]=E[y]);return x},Ue=(E,a,x)=>new Promise((y,z)=>{var te=ie=>{try{ue(x.next(ie))}catch(Ee){z(Ee)}},oe=ie=>{try{ue(x.throw(ie))}catch(Ee){z(Ee)}},ue=ie=>ie.done?y(ie.value):Promise.resolve(ie.value).then(te,oe);ue((x=x.apply(E,a)).next())});const le=E=>{var a=E,{children:x}=a,y=ze(a,["children"]);const[z,te]=(0,he.useState)(!1);return he.createElement(b.ZP,ke(De({},y),{loading:z,onClick:oe=>Ue(void 0,null,function*(){try{te(!0),yield y.onClick(oe),te(!1)}catch(ue){console.error(ue),te(!1)}})}),x)}},40888:function(it,jt,ae){"use strict";var b=ae(86204),he=ae.n(b),we=Object.defineProperty,xe=(Ke,Oe,De)=>Oe in Ke?we(Ke,Oe,{enumerable:!0,configurable:!0,writable:!0,value:De}):Ke[Oe]=De,Re=(Ke,Oe,De)=>xe(Ke,typeof Oe!="symbol"?Oe+"":Oe,De),We=(Ke,Oe,De)=>new Promise((ke,ze)=>{var Ue=a=>{try{E(De.next(a))}catch(x){ze(x)}},le=a=>{try{E(De.throw(a))}catch(x){ze(x)}},E=a=>a.done?ke(a.value):Promise.resolve(a.value).then(Ue,le);E((De=De.apply(Ke,Oe)).next())});class Be extends b.EventEmitter{constructor(Oe,De){super(),Re(this,"url"),Re(this,"body"),Re(this,"fullContent",""),Re(this,"controller",null),Re(this,"buffer",""),this.url=Oe,this.body=De}startStream(){return We(this,null,function*(){this.controller=new AbortController;const{signal:Oe}=this.controller;try{const De=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Oe});if(!De.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${De.status}`);const ke=De.headers.get("content-type");if(!ke)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(ke.includes("application/json")){const le=yield De.json();this.emit("error",le);return}if(!ke.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const ze=De.body.getReader(),Ue=new TextDecoder("utf-8");for(;;){const{done:le,value:E}=yield ze.read();if(le)break;const a=Ue.decode(E,{stream:!0});this.buffer+=a;const x=this.buffer.split(` +(self.webpackChunk=self.webpackChunk||[]).push([[292],{87169:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Ke}});var b=ae(54476),he=ae(59301),we={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Be=we,Re=ae(7657),We=function(De,ke){return he.createElement(Re.Z,(0,b.Z)({},De,{ref:ke,icon:Be}))},xe=he.forwardRef(We),Ke=xe},12893:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Ke}});var b=ae(54476),he=ae(59301),we={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Be=we,Re=ae(7657),We=function(De,ke){return he.createElement(Re.Z,(0,b.Z)({},De,{ref:ke,icon:Be}))},xe=he.forwardRef(We),Ke=xe},32134:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Ke}});var b=ae(54476),he=ae(59301),we={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Be=we,Re=ae(7657),We=function(De,ke){return he.createElement(Re.Z,(0,b.Z)({},De,{ref:ke,icon:Be}))},xe=he.forwardRef(We),Ke=xe},89722:function(it,jt){"use strict";jt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},63581:function(it,jt){"use strict";jt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},97663:function(it,jt){"use strict";jt.Z={flex_box_center:"flex_box_center___ycN2f",flex_space_between:"flex_space_between___LcS9e",flex_box_vertical_center:"flex_box_vertical_center___uwjPm",flex_box_center_end:"flex_box_center_end___Pc903",flex_box_column:"flex_box_column___AXEdv",bg:"bg___fm2Cw",title:"title___J3MCU",editIcon:"editIcon___i4Zll",titleLeft:"titleLeft___da61c",titleRight:"titleRight___EsdL6",formWrap:"formWrap___YTxC3",baseLineHeight:"baseLineHeight___TprCB",radioBtnWrapper:"radioBtnWrapper___Mt_XG",radiogroup:"radiogroup___EvkWh",easy:"easy___mSxtg",medium:"medium___NIaWN",hard:"hard___mddnD",baseFormItem:"baseFormItem___csbyb",cascaderPopup:"cascaderPopup___BttnF",selectdiv:"selectdiv___TAr4i",divitem:"divitem___iaXB2",bottmodiv:"bottmodiv___bmp6p",cancelBtn:"cancelBtn___Q4ZcL",confirmBtn:"confirmBtn___nRiCD",concat:"concat___jlPR1"}},50852:function(it,jt,ae){"use strict";var b=ae(59301),he=Object.defineProperty,we=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,We=(Oe,De,ke)=>De in Oe?he(Oe,De,{enumerable:!0,configurable:!0,writable:!0,value:ke}):Oe[De]=ke,xe=(Oe,De)=>{for(var ke in De||(De={}))Be.call(De,ke)&&We(Oe,ke,De[ke]);if(we)for(var ke of we(De))Re.call(De,ke)&&We(Oe,ke,De[ke]);return Oe};const Ke=Oe=>React.createElement("svg",xe({width:14,height:13,xmlns:"http://www.w3.org/2000/svg"},Oe),React.createElement("title",null,"\u6D4B\u8BD5AI\u8BC4\u5206"),React.createElement("path",{d:"M5.19 1.488a2.133 2.133 0 0 1 3.62 0l.96 1.54a.25.25 0 0 0 .152.11l1.76.437a2.133 2.133 0 0 1 1.12 3.443l-1.234 1.465.136 1.912a2.133 2.133 0 0 1-1.823 2.263l-.152.016a2.133 2.133 0 0 1-.954-.15l-1.681-.683a.25.25 0 0 0-.188 0l-1.681.682a2.133 2.133 0 0 1-2.93-2.128l.13-1.81a.25.25 0 0 0-.058-.178L1.198 7.018a2.133 2.133 0 0 1 1.12-3.443l1.76-.436a.25.25 0 0 0 .152-.11Zm2.053.543a.633.633 0 0 0-.78.25l-.96 1.54a1.75 1.75 0 0 1-1.064.774l-1.761.436a.633.633 0 0 0-.332 1.022L3.514 7.44c.294.348.44.797.407 1.251l-.13 1.81a.633.633 0 0 0 .87.631l1.681-.682a1.75 1.75 0 0 1 1.316 0l1.681.682a.633.633 0 0 0 .87-.631l-.18-2.518 1.625-1.931a.633.633 0 0 0-.332-1.022l-1.761-.436a1.75 1.75 0 0 1-1.065-.774l-.959-1.54a.633.633 0 0 0-.203-.203Zm1.544 5.23a.75.75 0 0 1 .102 1.493l-.102.007H5.362a.75.75 0 0 1-.102-1.494l.102-.006h3.425Z",fill:"#3061D0",fillRule:"nonzero"}));jt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUuMTkgMS40ODhhMi4xMzMgMi4xMzMgMCAwIDEgMy42MiAwbC45NiAxLjU0YS4yNS4yNSAwIDAgMCAuMTUyLjExbDEuNzYuNDM3YTIuMTMzIDIuMTMzIDAgMCAxIDEuMTIgMy40NDNsLTEuMjM0IDEuNDY1LjEzNiAxLjkxMmEyLjEzMyAyLjEzMyAwIDAgMS0xLjgyMyAyLjI2M2wtLjE1Mi4wMTZhMi4xMzMgMi4xMzMgMCAwIDEtLjk1NC0uMTVsLTEuNjgxLS42ODNhLjI1LjI1IDAgMCAwLS4xODggMGwtMS42ODEuNjgyYTIuMTMzIDIuMTMzIDAgMCAxLTIuOTMtMi4xMjhsLjEzLTEuODFhLjI1LjI1IDAgMCAwLS4wNTgtLjE3OEwxLjE5OCA3LjAxOGEyLjEzMyAyLjEzMyAwIDAgMSAxLjEyLTMuNDQzbDEuNzYtLjQzNmEuMjUuMjUgMCAwIDAgLjE1Mi0uMTFabTIuMDUzLjU0M2EuNjMzLjYzMyAwIDAgMC0uNzguMjVsLS45NiAxLjU0YTEuNzUgMS43NSAwIDAgMS0xLjA2NC43NzRsLTEuNzYxLjQzNmEuNjMzLjYzMyAwIDAgMC0uMzMyIDEuMDIyTDMuNTE0IDcuNDRjLjI5NC4zNDguNDQuNzk3LjQwNyAxLjI1MWwtLjEzIDEuODFhLjYzMy42MzMgMCAwIDAgLjg3LjYzMWwxLjY4MS0uNjgyYTEuNzUgMS43NSAwIDAgMSAxLjMxNiAwbDEuNjgxLjY4MmEuNjMzLjYzMyAwIDAgMCAuODctLjYzMWwtLjE4LTIuNTE4IDEuNjI1LTEuOTMxYS42MzMuNjMzIDAgMCAwLS4zMzItMS4wMjJsLTEuNzYxLS40MzZhMS43NSAxLjc1IDAgMCAxLTEuMDY1LS43NzRsLS45NTktMS41NGEuNjMzLjYzMyAwIDAgMC0uMjAzLS4yMDNabTEuNTQ0IDUuMjNhLjc1Ljc1IDAgMCAxIC4xMDIgMS40OTNsLS4xMDIuMDA3SDUuMzYyYS43NS43NSAwIDAgMS0uMTAyLTEuNDk0bC4xMDItLjAwNmgzLjQyNVoiIGZpbGw9IiMzMDYxRDAiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg=="},58082:function(it,jt,ae){"use strict";var b=ae(59301),he=Object.defineProperty,we=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,We=(Oe,De,ke)=>De in Oe?he(Oe,De,{enumerable:!0,configurable:!0,writable:!0,value:ke}):Oe[De]=ke,xe=(Oe,De)=>{for(var ke in De||(De={}))Be.call(De,ke)&&We(Oe,ke,De[ke]);if(we)for(var ke of we(De))Re.call(De,ke)&&We(Oe,ke,De[ke]);return Oe};const Ke=Oe=>React.createElement("svg",xe({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Oe),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));jt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},39469:function(it,jt,ae){"use strict";var b=ae(59301),he=Object.defineProperty,we=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,We=(Oe,De,ke)=>De in Oe?he(Oe,De,{enumerable:!0,configurable:!0,writable:!0,value:ke}):Oe[De]=ke,xe=(Oe,De)=>{for(var ke in De||(De={}))Be.call(De,ke)&&We(Oe,ke,De[ke]);if(we)for(var ke of we(De))Re.call(De,ke)&&We(Oe,ke,De[ke]);return Oe};const Ke=Oe=>React.createElement("svg",xe({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Oe),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));jt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},4285:function(){"use strict";function it(ue,E,a,x){a===void 0&&(a=0),x===void 0&&(x=1/0),this._name=ue,this._defaultValue=E,this._minimum=a,this._maximum=x}Object.defineProperty(it.prototype,"name",{get:function(){return this._name},set:function(ue){if(typeof ue!="string"||ue==="")throw new Error("Shape name must be a valid string.");this._name=ue}}),Object.defineProperty(it.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ue){if(typeof ue!="number"||isNaN(ue))throw new Error("The default value must be a real number, not: "+ue);this._defaultValue=ue}}),Object.defineProperty(it.prototype,"minimum",{get:function(){return this._minimum},set:function(ue){if(typeof ue!="number"||isNaN(ue))throw new Error("Minimum must be a real number, not: "+ue);this._minimum=ue}}),Object.defineProperty(it.prototype,"maximum",{get:function(){return this._maximum},set:function(ue){if(typeof ue!="number"||isNaN(ue))throw new Error("Maximum must be a real number, not: "+ue);this._maximum=ue}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ue,E){var a=go.Shape._FigureParameters[ue];return a?a[E]:null},go.Shape.setFigureParameter=function(ue,E,a){if(!(a instanceof it))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValuea.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var x=go.Shape._FigureParameters[ue];x||(x=[],go.Shape._FigureParameters[ue]=x),x[E]=a};var jt=[];function ae(ue,E){var a=jt.pop();return a===void 0?new go.Point(ue,E):(a.x=ue,a.y=E,a)}function b(){var ue=jt.pop();return ue===void 0?new go.Point:ue}function he(ue){jt.push(ue)}function we(ue,E,a,x,y,z,te,oe,se){se||(se=new go.Point);var ie=ue-a,Ee=y-te,Fe=NaN,Qe=NaN;if(ie===0)if(Ee===0)ue===a&&(Fe=ue,Qe=E);else{var Le=(z-oe)/Ee,st=z-Le*y;Fe=ue,Qe=Le*Fe+st}else if(Ee===0){var Me=(E-x)/ie,Ye=E-Me*ue;Fe=y,Qe=Me*Fe+Ye}else{var Me=(E-x)/ie,Le=(z-oe)/Ee,Ye=E-Me*ue,st=z-Le*y;Fe=(st-Ye)/(Me-Le),Qe=Me*Fe+Ye}return se.x=Fe,se.y=Qe,se}function Be(ue,E,a,x,y,z,te,oe,se,ie,Ee,Fe,Qe,Le){var st=1-se,Me=se,Ye=ue*st+a*Me,Ge=E*st+x*Me,$e=a*st+y*Me,be=x*st+z*Me,vt=y*st+te*Me,ct=z*st+oe*Me,bt=Ye*st+$e*Me,At=Ge*st+be*Me,En=$e*st+vt*Me,xn=be*st+ct*Me,Wt=bt*st+En*Me,Pt=At*st+xn*Me;ie.x=Ye,ie.y=Ge,Ee.x=bt,Ee.y=At,Fe.x=Wt,Fe.y=Pt,Qe.x=En,Qe.y=xn,Le.x=vt,Le.y=ct}var Re=new go.Spot(.156,.156),We=new go.Spot(.844,.844),xe=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new it("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ue,E,a){var x=ue?ue.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,E/3),x=Math.min(x,a/3);var y=x*xe,z=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,E-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,x,E-y,0,E,y)).add(new go.PathSegment(go.PathSegment.Line,E,a-x)).add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,a-y,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,x,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,y,a,0,a-y)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()));return y>1&&(z.spot1=new go.Spot(0,0,y,y),z.spot2=new go.Spot(1,1,-y,-y)),z}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ue,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=a/2,x.endX=E,x.endY=a/2,x}),go.Shape.defineFigureGenerator("LineV",function(ue,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=E/2,x.startY=0,x.endX=E/2,x.endY=a,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LineRight",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(.25*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)))}),go.Shape.defineFigureGenerator("LineDown",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Line,E,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(.75*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,a)))}),go.Shape.defineFigureGenerator("LineUp",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,E,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ue,E,a){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*E,(1-x)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,x*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(ue,E,a){var x=E/2,y=new go.Geometry().add(new go.PathFigure(E,E/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return y.spot1=Re,y.spot2=We,y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Line1",function(ue,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=E,x.endY=a,x}),go.Shape.defineFigureGenerator("Line2",function(ue,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=E,x.startY=0,x.endX=0,x.endY=a,x}),go.Shape.defineFigureGenerator("Curve1",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,xe*E,0,E,(1-xe)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,0,xe*a,(1-xe)*E,a)))}),go.Shape.defineFigureGenerator("Curve3",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,xe*a,xe*E,a)))}),go.Shape.defineFigureGenerator("Curve4",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-xe)*E,0,0,(1-xe)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new it("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var y=Math.abs(x)*E;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),yE&&(x=E);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y.5&&(x=.5);var y=Math.abs(x)*E;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),yE&&(x=E/2);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),yE&&(x=E/2);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())):z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),y0&&(te.add(new go.PathSegment(go.PathSegment.Move,E/2+oe,E/2)),te.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y,y,oe,oe).close())),z.spot1=Re,z.spot2=We,z.defaultStretch=go.GraphObject.Uniform,z}),go.Shape.defineFigureGenerator("Cloud",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(.08034461*E,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*E,.05349299*a,-.09239631*E,.07836421*a,.1406031*E,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*E,.074219*a,.2450511*E,-.00697547*a,.3776197*E,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*E,.07004196*a,.4539471*E,0,.6066018*E,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*E,.08370865*a,.6914277*E,-.01904177*a,.8921095*E,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*E,.3194596*a,1.036446*E,.04105738*a,1.020377*E,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*E,.562044*a,1.04448*E,.360238*a,.992256*E,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*E,.8217117*a,1.032337*E,.5771781*a,1.018411*E,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*E,.9156953*a,1.028411*E,.9571472*a,.8556702*E,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*E,.9310455*a,.7431877*E,1.009325*a,.5624123*E,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*E,.9344623*a,.4820677*E,1.031761*a,.3030112*E,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.870098*a,.2329994*E,1.01518*a,.03213784*E,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*E,.6545475*a,-.02812061*E,.9032597*a,-.01205169*E,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*E,.4265613*a,-.01812061*E,.6089503*a,-.00606892*E,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.1944299*a,-.01606892*E,.3892545*a,-.01205169*E,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ue,E,a){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Line,x*E,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,x*a).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new it("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new it("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ue,E,a){var x=ue?ue.parameter1:NaN,y=ue?ue.parameter2:NaN;isNaN(x)&&(x=0),isNaN(y)&&(y=315);var z=x%360;z<0&&(z+=360);var te=y%360,oe=Math.min(E,a)/2;return new go.Geometry().add(new go.PathFigure(oe,oe).add(new go.PathSegment(go.PathSegment.Arc,z,te,oe,oe,oe,oe).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ue,E,a){var x=xe/Math.SQRT2*.5,y=Math.SQRT2/2,z=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,y*E,z*a,E,(1-x)*a,(y+x)*E,(z+x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new it("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ue,E,a){var x=ue?ue.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var y=Math.min(x,E)/2,z=E/2,te=a/2;return new go.Geometry().add(new go.PathFigure(z-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+y,0)).add(new go.PathSegment(go.PathSegment.Line,z+y,te-y)).add(new go.PathSegment(go.PathSegment.Line,E,te-y)).add(new go.PathSegment(go.PathSegment.Line,E,te+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,te+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,te+y)).add(new go.PathSegment(go.PathSegment.Line,0,te+y)).add(new go.PathSegment(go.PathSegment.Line,0,te-y)).add(new go.PathSegment(go.PathSegment.Line,z-y,te-y).close()))}),go.Shape.setFigureParameter("ThinCross",0,new it("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ue,E,a){var x=ue?ue.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=Math.min(x,E)/2,z=E/2,te=a/2;return new go.Geometry().add(new go.PathFigure(z-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+y,0)).add(new go.PathSegment(go.PathSegment.Line,z+y,te-y)).add(new go.PathSegment(go.PathSegment.Line,E,te-y)).add(new go.PathSegment(go.PathSegment.Line,E,te+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,te+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,te+y)).add(new go.PathSegment(go.PathSegment.Line,0,te+y)).add(new go.PathSegment(go.PathSegment.Line,0,te-y)).add(new go.PathSegment(go.PathSegment.Line,z-y,te-y).close()))}),go.Shape.setFigureParameter("ThickX",0,new it("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ue,E,a){var x=ue?ue.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),E===0||a===0){var y=new go.Geometry(go.Geometry.Rectangle);return y.startX=0,y.startY=0,y.endX=E,y.endY=a,y}else{var z=E/2,te=a/2,oe=Math.atan2(a,E),se=x-Math.min(Math.cos(oe)*x/2,z),ie=x-Math.min(Math.sin(oe)*x/2,te),y=new go.Geometry,Ee=new go.PathFigure(se,0,!0);return y.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,z,.2*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,E-se,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,E,ie)),Ee.add(new go.PathSegment(go.PathSegment.Line,.8*E,te)),Ee.add(new go.PathSegment(go.PathSegment.Line,E,a-ie)),Ee.add(new go.PathSegment(go.PathSegment.Line,E-se,a)),Ee.add(new go.PathSegment(go.PathSegment.Line,z,.8*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,se,a)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,a-ie)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*E,te)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,ie).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new it("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ue,E,a){var x=ue?ue.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=new go.Geometry,z=new go.PathFigure(.1*E,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),y}),go.Shape.setFigureParameter("SquareIBeam",0,new it("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*a).close()),y}),go.Shape.setFigureParameter("RoundedIBeam",0,new it("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)&&(x=.5);var y=new go.Geometry,z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,a,Math.abs(1-x)*E,.25*a,Math.abs(1-x)*E,.75*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*E,.75*a,x*E,.25*a).close()),y}),go.Shape.defineFigureGenerator("HalfEllipse",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,xe*E,0,E,(.5-xe/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,(.5+xe/2)*a,xe*E,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,0,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*E,.75*a,.5*E,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*E,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,0,0,.45*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.55*E,0,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.5*a,.9*E,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*E,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.6*E,.2*a,E,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.7*a,E,.8*a,.6*E,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,.5*E,.75*a,.55*E,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.7*a,.45*E,.95*a,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*E,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*E,.01*a,0,.25*a,.4*E,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.4*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.15*E,a,.5*E,.75*a,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.6*a,.55*E,.95*a,.5*E,.75*a));var z=.2,te=.3,oe=0,se=z*xe;return y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5+z+oe)*a,(.5-z+te)*E,(.5+se+oe)*a,(.5-se+te)*E,(.5+z+oe)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+te)*E,(.5+oe)*a,(.5+se+te)*E,(.5+z+oe)*a,(.5+z+te)*E,(.5+se+oe)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5-z+oe)*a,(1-.5+z+te)*E,(.5-se+oe)*a,(.5+se+te)*E,(.5-z+oe)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.65*E,.36771243*a,(.5-se+te)*E,(.5-z+oe)*a,(.5-z+te+.05)*E,(.5-se+oe-.02)*a)),z=.2,te=0,oe=-.3,se=z*xe,y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+te)*E,(.5+oe)*a,(.5+se+te)*E,(.5+z+oe)*a,(.5+z+te)*E,(.5+se+oe)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5-z+oe)*a,(1-.5+z+te)*E,(.5-se+oe)*a,(.5+se+te)*E,(.5-z+oe)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+te)*E,(.5+oe)*a,(.5-se+te)*E,(.5-z+oe)*a,(.5-z+te)*E,(.5-se+oe)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-se+te)*E,(.5+z+oe)*a,(.5-z+te)*E,(.5+se+oe)*a,(.5-se+te)*E,(.5+z+oe)*a)),z=.2,te=-.3,oe=0,se=z*xe,y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5-z+oe)*a,(1-.5+z+te-.05)*E,(.5-se+oe-.02)*a,(.5+se+te)*E,(.5-z+oe)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+te)*E,(.5+oe)*a,(.5-se+te)*E,(.5-z+oe)*a,(.5-z+te)*E,(.5-se+oe)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+te)*E,(.5+z+oe)*a,(.5-z+te)*E,(.5+se+oe)*a,(.5-se+te)*E,(.5+z+oe)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.6*a,(.5+se+te)*E,(.5+z+oe)*a,(.5+z+te)*E,(.5+se+oe)*a).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.5,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*.5,E*.5,E*.5,E*.5)),y.add(new go.PathSegment(go.PathSegment.Arc,90,-180,E*.5,E*.75,E*.25,E*.25)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,E*.5,E*.25,E*.25,E*.25));var z=.1,te=.5,oe=.25;return y.add(new go.PathSegment(go.PathSegment.Move,(te+z)*E,oe*a)),y.add(new go.PathSegment(go.PathSegment.Arc,0,-360,E*te,a*oe,z*E,z*E).close()),y=new go.PathFigure(E*.5,0,!1),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*.5,E*.5,E*.5,E*.5)),oe=.75,y=new go.PathFigure((te+z)*E,oe*a,!0),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,0,360,E*te,a*oe,z*E,z*E).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ue,E,a){var x=.8535533905932737,y=.5*E,z=.5*a;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,y,z,y,z)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,y,z)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,x*a)).add(new go.PathSegment(go.PathSegment.Move,y,z)).add(new go.PathSegment(go.PathSegment.Line,x*E,x*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ue,E,a){var x=new go.Geometry,y=xe*.5,z=.5,te=.5,oe=.5,se=new go.PathFigure(te*E,(oe-z)*a);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+z)*a,(te-z)*E,(oe+y)*a,(te-y)*E,(oe+z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-z)*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),z=.4,y=xe*.4;var ie=b(),Ee=b(),Fe=b(),Qe=b();Be(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.42,ie,Ee,Fe,Qe,Qe);var Le=b(),st=b(),Me=b();Be(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.58,Qe,Qe,Me,Le,st);var Ye=b(),Ge=b(),$e=b();Be(te,oe+z,te-y,oe+z,te-z,oe+y,te-z,oe,.42,Ye,Ge,$e,Qe,Qe);var be=b(),vt=b(),ct=b();return Be(te,oe+z,te-y,oe+z,te-z,oe+y,te-z,oe,.58,Qe,Qe,ct,be,vt),se.add(new go.PathSegment(go.PathSegment.Move,ct.x*E,ct.y*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,be.x*E,be.y*a,vt.x*E,vt.y*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-z)*a,(te-z)*E,(oe-y)*a,(te-y)*E,(oe-z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,Fe.x*E,Fe.y*a,ie.x*E,ie.y*a,Ee.x*E,Ee.y*a)),se.add(new go.PathSegment(go.PathSegment.Line,ct.x*E,ct.y*a).close()),se.add(new go.PathSegment(go.PathSegment.Move,$e.x*E,$e.y*a)),se.add(new go.PathSegment(go.PathSegment.Line,Me.x*E,Me.y*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,Le.x*E,Le.y*a,st.x*E,st.y*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+z)*a,(te+z)*E,(oe+y)*a,(te+y)*E,(oe+z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,$e.x*E,$e.y*a,Ye.x*E,Ye.y*a,Ge.x*E,Ge.y*a).close()),he(ie),he(Ee),he(Fe),he(Qe),he(Le),he(st),he(Me),he(Ye),he(Ge),he($e),he(be),he(vt),he(ct),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*E,0)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*E,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.5*a,E,.25*a,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new it("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ue,E,a){var x=ue?ue.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>E&&(x=E);var y=(E-x)/2,z=y+x;return new go.Geometry().add(new go.PathFigure(z,.5*a).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*E,0)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ue,E,a){var x=new go.Geometry,y=xe*.4,z=.4,te=.5,oe=.5,se=b(),ie=b(),Ee=b(),Fe=b(),Qe=new go.PathFigure((te-z)*E,oe*a,!1);x.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-z)*a,(te-z)*E,(oe-y)*a,(te-y)*E,(oe-z)*a)),Be(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.44,Ee,Fe,ie,se,se),Qe.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*E,ie.y*a,Ee.x*E,Ee.y*a,Fe.x*E,Fe.y*a));var Le=ae(ie.x,ie.y);Be(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.56,se,se,ie,Ee,Fe);var st=ae(ie.x,ie.y);Qe.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.95*.9)*E,Le.y*.1*a)),Qe.add(new go.PathSegment(go.PathSegment.Line,.85*E,Le.y*.1*a)),Qe.add(new go.PathSegment(go.PathSegment.Line,.85*E,0)),Qe.add(new go.PathSegment(go.PathSegment.Line,E,0)),Qe.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),Qe.add(new go.PathSegment(go.PathSegment.Line,(st.x*.1+.9)*E,.15*a)),Qe.add(new go.PathSegment(go.PathSegment.Line,(st.x*.1+.9)*E,(st.y*.1+.05*.9)*a)),Qe.add(new go.PathSegment(go.PathSegment.Line,st.x*E,st.y*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,Ee.x*E,Ee.y*a,Fe.x*E,Fe.y*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+z)*a,(te+z)*E,(oe+y)*a,(te+y)*E,(oe+z)*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,(te-y)*E,(oe+z)*a,(te-z)*E,(oe+y)*a)),z=.35,y=xe*.35;var Me=new go.PathFigure(te*E,(oe-z)*a,!1);x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+z)*a,(te-z)*E,(oe+y)*a,(te-y)*E,(oe+z)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-z)*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a));var Ye=new go.PathFigure((te-z)*E,oe*a,!1);return x.add(Ye),he(se),he(ie),he(Ee),he(Fe),he(Le),he(st),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ue,E,a){var x=new go.Geometry,y=.375,z=0,te=-.125,oe=y*xe,se=new go.PathFigure((.525+z)*E,(.5+y+te)*a,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+te)*a,(.5+oe+z)*E,(.5+y+te)*a,(.5+y+z)*E,(.5+oe+te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+te)*a,(1-.5+y+z)*E,(.5-oe+te)*a,(.5+oe+z)*E,(.5-y+te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+te)*a,(.5-oe+z)*E,(.5-y+te)*a,(.5-y+z)*E,(.5-oe+te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.475+z)*E,(.5+y+te)*a,(.5-y+z)*E,(.5+oe+te)*a,(.5-oe+z)*E,(.5+y+te)*a)),se.add(new go.PathSegment(go.PathSegment.Line,.475*E,.85*a)),se.add(new go.PathSegment(go.PathSegment.Line,.425*E,.85*a)),se.add(new go.PathSegment(go.PathSegment.Line,.425*E,.9*a)),se.add(new go.PathSegment(go.PathSegment.Line,.475*E,.9*a)),se.add(new go.PathSegment(go.PathSegment.Line,.475*E,a)),se.add(new go.PathSegment(go.PathSegment.Line,.525*E,a)),se.add(new go.PathSegment(go.PathSegment.Line,.525*E,.9*a)),se.add(new go.PathSegment(go.PathSegment.Line,.575*E,.9*a)),se.add(new go.PathSegment(go.PathSegment.Line,.575*E,.85*a)),se.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a).close()),y=.325,z=0,te=-.125,oe=y*xe;var se=new go.PathFigure((1-.5+y+z)*E,(.5+te)*a,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5+y+te)*a,(.5+y+z)*E,(.5+oe+te)*a,(.5+oe+z)*E,(.5+y+te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+te)*a,(.5-oe+z)*E,(.5+y+te)*a,(.5-y+z)*E,(.5+oe+te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+te)*a,(.5-y+z)*E,(.5-oe+te)*a,(.5-oe+z)*E,(.5-y+te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+te)*a,(.5+oe+z)*E,(.5-y+te)*a,(1-.5+y+z)*E,(.5-oe+te)*a));var se=new go.PathFigure((.525+z)*E,(.5+y+te)*a,!1);return x.add(se),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ue,E,a){var x=ue?ue.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ue,E,a){var x=ue?ue.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,x*E,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ue,E,a){var x=new go.Geometry().add(new go.PathFigure(.5*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*E,.5*a,.5*E,.5*a)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Move,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ue,E,a){var x=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ue,E,a){var x=.5;return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new it("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new it("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)&&(x=.3);var y=ue?ue.parameter2:NaN;isNaN(y)&&(y=.3);var z=(1-x)*E,te=(.5-y/2)*a,oe=(.5+y/2)*a,se=new go.Geometry,ie=new go.PathFigure(0,te,!0);se.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,te)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ie.add(new go.PathSegment(go.PathSegment.Line,z,a)),ie.add(new go.PathSegment(go.PathSegment.Line,z,oe)),ie.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),se.spot1=new go.Spot(0,te/a);var Ee=we(0,oe/a,1,oe/a,z/E,1,1,.5,b());return se.spot2=new go.Spot(Ee.x,Ee.y),he(Ee),se}),go.Shape.setFigureParameter("Arrow2",0,new it("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new it("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)&&(x=30),x>E&&(x=E);var y=ue?ue.parameter2:NaN;isNaN(y)&&(y=30),y=Math.min(y,a/2);var z=E-x,te=(a-y)/2,oe=te+y,se=new go.Geometry,ie=new go.PathFigure(0,te,!0);se.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z,te)),ie.add(new go.PathSegment(go.PathSegment.Line,z,0)),ie.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ie.add(new go.PathSegment(go.PathSegment.Line,z,a)),ie.add(new go.PathSegment(go.PathSegment.Line,z,oe)),ie.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),se.spot1=new go.Spot(0,te/a);var Ee=we(0,oe/a,1,oe/a,z/E,1,1,.5,b());return se.spot2=new go.Spot(Ee.x,Ee.y),he(Ee),se}),go.Shape.defineFigureGenerator("Chevron",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.214*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.786*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new it("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*a,z=(.5+x/2)*a,te=new go.Geometry,oe=new go.PathFigure(E,.5*a,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close());var se=we(0,.5,.3,0,0,y/a,.1,y/a,b());return te.spot1=new go.Spot(se.x,se.y),se=we(.7,1,1,.5,0,z/a,1,z/a,se),te.spot2=new go.Spot(se.x,se.y),he(se),te}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new it("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new it("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)&&(x=40);var y=ue?ue.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,te=z+x,oe=(a-y)/2,se=oe+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,te=z+x,oe=0,se=a):(z=0,te=a,oe=0,se=a));var ie=new go.Geometry,Ee=new go.PathFigure(E,.5*a,!0);ie.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*E,se)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*E,te)),Ee.add(new go.PathSegment(go.PathSegment.Line,.3*E,te)),Ee.add(new go.PathSegment(go.PathSegment.Line,.3*E,se)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),Ee.add(new go.PathSegment(go.PathSegment.Line,.3*E,oe)),Ee.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*E,oe).close());var Fe=we(0,.5,.3,oe/a,0,z/a,1,z/a,b());return ie.spot1=new go.Spot(Fe.x,Fe.y),Fe=we(.7,se/a,1,.5,0,te/a,1,te/a,Fe),ie.spot2=new go.Spot(Fe.x,Fe.y),he(Fe),ie}),go.Shape.setFigureParameter("IBeamArrow",0,new it("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*a,z=(.5+x/2)*a,te=new go.Geometry,oe=new go.PathFigure(E,.5*a,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),te.spot1=new go.Spot(0,y/a);var se=we(.7,1,1,.5,0,z/a,1,z/a,b());return te.spot2=new go.Spot(se.x,se.y),he(se),te}),go.Shape.setFigureParameter("IBeamArrow2",0,new it("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new it("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)&&(x=40);var y=ue?ue.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,te=z+x,oe=(a-y)/2,se=oe+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,te=z+x,oe=0,se=a):(z=0,te=a,oe=0,se=a));var ie=new go.Geometry,Ee=new go.PathFigure(E,.5*a,!0);ie.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*E,se)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*E,te)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*E,te)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*E,se)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,se)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,oe)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*E,oe)),Ee.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),Ee.add(new go.PathSegment(go.PathSegment.Line,.7*E,oe).close()),ie.spot1=new go.Spot(0,z/a);var Fe=we(.7,se/a,1,.5,0,te/a,1,te/a,b());return ie.spot2=new go.Spot(Fe.x,Fe.y),he(Fe),ie}),go.Shape.setFigureParameter("Pointer",0,new it("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)&&(x=.1);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),y.spot1=new go.Spot(x,.35);var te=we(.2,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(te.x,te.y),he(te),y}),go.Shape.setFigureParameter("RoundedPointer",0,new it("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)&&(x=.3);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*E,.75*a,x*E,.25*a).close()),y.spot1=new go.Spot(x,.35);var te=we(0,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(te.x,te.y),he(te),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new it("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)&&(x=.4);var y=(.5-x/2)*a,z=(.5+x/2)*a,te=new go.Geometry,oe=new go.PathFigure(E,.5*a,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,0,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),te.spot1=new go.Spot(.2,.3);var se=we(.7,1,1,.5,0,z/a,1,z/a,b());return te.spot2=new go.Spot(se.x,se.y),he(se),te}),go.Shape.setFigureParameter("SplitEndArrow2",0,new it("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)&&(x=50);var y=(a-x)/2,z=y+x;x>a&&(y=0,z=a);var te=new go.Geometry,oe=new go.PathFigure(E,.5*a,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,0,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,0,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),te.spot1=new go.Spot(.2,y/a);var se=we(.7,1,1,.5,0,z/a,1,z/a,b());return te.spot2=new go.Spot(se.x,se.y),he(se),te}),go.Shape.setFigureParameter("SquareArrow",0,new it("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)&&(x=.7);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,x*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,0).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(x,1),y}),go.Shape.defineFigureGenerator("Cone1",function(ue,E,a){var x=new go.Geometry,y=xe*.5,z=xe*.1,te=new go.PathFigure(0,.9*a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.9*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,a,.85/.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var z=new go.PathFigure(0,.9*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,.8*a,.85/.9*E,.8*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.3*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0).close());var z=new go.PathFigure(0,.3*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,z=xe*.5,te=new go.PathFigure(0,x,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,xe*x,(.5-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,1*E,x,(.5+z)*E,0,1*E,xe*x)),te.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,1*a,1*E,a-xe*x,(.5+z)*E,1*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-z)*E,1*a,0,a-xe*x)),te.add(new go.PathSegment(go.PathSegment.Line,0,x));var oe=new go.PathFigure(E,x,!1);return y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,2*x,1*E,2*x-xe*x,(.5+z)*E,2*x)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-z)*E,2*x,0,2*x-xe*x)),y.spot1=new go.Spot(0,0,0,2*x),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder2",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,z=xe*.5,te=new go.PathFigure(0,a-x,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,x)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,xe*x,(.5-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,x,(.5+z)*E,0,E,xe*x)),te.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,a-xe*x,(.5+z)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-z)*E,a,0,a-xe*x));var oe=new go.PathFigure(0,a-x,!1);return y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a-2*x,0,a-x-xe*x,(.5-z)*E,a-2*x)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E,a-x,(.5+z)*E,a-2*x,E,a-x-xe*x)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,0,-2*x),y}),go.Shape.defineFigureGenerator("Cylinder3",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,z=xe*.5,te=new go.PathFigure(x,0,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E-x,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-xe*x,0,E,(.5-z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,(.5+z)*a,E-xe*x,a)),te.add(new go.PathSegment(go.PathSegment.Line,x,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,xe*x,a,0,(.5+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*a,xe*x,0));var oe=new go.PathFigure(x,0,!1);return y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*a,x+xe*x,0,2*x,(.5-z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,x,a,2*x,(.5+z)*a,x+xe*x,a)),y.spot1=new go.Spot(0,0,2*x,0),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder4",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,z=xe*.5,te=new go.PathFigure(E-x,0,!0);y.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-xe*x,0,E,(.5-z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,(.5+z)*a,E-xe*x,a)),te.add(new go.PathSegment(go.PathSegment.Line,x,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,xe*x,a,0,(.5+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*a,xe*x,0)),te.add(new go.PathSegment(go.PathSegment.Line,E-x,0));var oe=new go.PathFigure(E-x,0,!1);return y.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,E-2*x,.5*a,E-x-xe*x,0,E-2*x,(.5-z)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E-2*x,(.5+z)*a,E-x-xe*x,a)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,-2*x,0),y}),go.Shape.defineFigureGenerator("Prism1",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,.25*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.25*E,.25*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.25*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var z=new go.PathFigure(.5*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ue,E,a){var x=new go.Geometry,y=.2,z=.1,te=xe*y,oe=xe*z,se=.5,ie=.1,Ee=new go.PathFigure(se*E,(ie+z)*a,!0);x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-y)*E,ie*a,(se-te)*E,(ie+z)*a,(se-y)*E,(ie+oe)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(ie-z)*a,(se-y)*E,(ie-oe)*a,(se-te)*E,(ie-z)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se+y)*E,ie*a,(se+te)*E,(ie-z)*a,(se+y)*E,(ie-oe)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(ie+z)*a,(se+y)*E,(ie+oe)*a,(se+te)*E,(ie+z)*a));var Fe=.05,Qe=xe*Fe;se=.05,ie=.25;var Le=new go.PathFigure(.5*E,.2*a,!0);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,.95*E,.2*a)),se=.95,ie=.25,Le.add(new go.PathSegment(go.PathSegment.Bezier,(se+Fe)*E,ie*a,(se+Qe)*E,(ie-Fe)*a,(se+Fe)*E,(ie-Qe)*a)),Le.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.85*E,.35*a)),Fe=.025,Qe=xe*Fe,se=.825,ie=.35,Le.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(ie-Fe)*a,(se+Fe)*E,(ie-Qe)*a,(se+Qe)*E,(ie-Fe)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-Fe)*E,ie*a,(se-Qe)*E,(ie-Fe)*a,(se-Fe)*E,(ie-Qe)*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),Le.add(new go.PathSegment(go.PathSegment.Line,.55*E,a)),Le.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a)),Fe=.05,Qe=xe*Fe,se=.5,ie=.7,Le.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(ie-Fe)*a,(se+Fe)*E,(ie-Qe)*a,(se+Qe)*E,(ie-Fe)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-Fe)*E,ie*a,(se-Qe)*E,(ie-Fe)*a,(se-Fe)*E,(ie-Qe)*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.45*E,a)),Le.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),Le.add(new go.PathSegment(go.PathSegment.Line,.2*E,.35*a)),Fe=.025,Qe=xe*Fe,se=.175,ie=.35,Le.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(ie-Fe)*a,(se+Fe)*E,(ie-Qe)*a,(se+Qe)*E,(ie-Fe)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-Fe)*E,ie*a,(se-Qe)*E,(ie-Fe)*a,(se-Fe)*E,(ie-Qe)*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),Le.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),Le.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),Fe=.05,Qe=xe*Fe,se=.05,ie=.25,Le.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(ie-Fe)*a,(se-Fe)*E,(ie-Qe)*a,(se-Qe)*E,(ie-Fe)*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new it("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ue,E,a){var x=ue?ue.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,z=new go.PathFigure(E,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,0).close()),y.spot1=new go.Spot(0,x),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Collate",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a));var z=new go.PathFigure(.5*E,.5*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ue,E,a){var x=new go.Geometry,y=ue?ue.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(0,y*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),te.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,(1-y)*a)),x}),go.Shape.defineFigureGenerator("Database",function(ue,E,a){var x=new go.Geometry,y=xe*.5,z=xe*.1,te=new go.PathFigure(E,.1*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+y)*E,0,E,(.1-z)*a));var oe=new go.PathFigure(E,.1*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+y)*E,.2*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*E,.2*a,0,(.1+z)*a)),oe.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+y)*E,.3*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*E,.3*a,0,(.2+z)*a)),oe.add(new go.PathSegment(go.PathSegment.Move,E,.3*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.4*a,E,(.3+z)*a,(.5+y)*E,.4*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-y)*E,.4*a,0,(.3+z)*a)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.9*a,.25*E,.1*a).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ue,E,a){var x=new go.Geometry,y=xe*.5,z=xe*.1,te=new go.PathFigure(E,.1*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+y)*E,0,E,(.1-z)*a));var oe=new go.PathFigure(E,.1*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+y)*E,.2*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*E,.2*a,0,(.1+z)*a)),oe.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+y)*E,.3*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*E,.3*a,0,(.2+z)*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ue,E,a){var x=new go.Geometry,y=ue?ue.parameter1:NaN;isNaN(y)?y=.2:y<.15&&(y=.15);var z=xe*.2,te=new go.PathFigure(0,.2*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,0,(.2-z)*a,(.2-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.2*a,(.8+z)*E,0,E,(.2-z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,a,E,(.8+z)*a,(.8+z)*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-z)*E,a,0,(.8+z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var oe=new go.PathFigure(0,y*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ue,E,a){var x=new go.Geometry,y=ue?ue.parameter1:NaN;(isNaN(y)||y<.1)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(0,y*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),x}),go.Shape.defineFigureGenerator("Document",function(ue,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ue,E,a){var x=new go.Geometry,y=ue?ue.parameter1:NaN;(isNaN(y)||y<.2)&&(y=.2);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(y*E,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y*a)),te.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),te.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),te.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),te.add(new go.PathSegment(go.PathSegment.Move,(1-y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,E,(1-y)*a)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(.1*E,.4*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.9*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.6*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Move,.4*E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.9*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.75*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a));var z=new go.PathFigure(E,.5*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a));var te=new go.PathFigure(E,.5*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ue,E,a){var x=new go.Geometry,y=ue?ue.parameter1:NaN,z=ue?ue.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.1);var te=new go.PathFigure(0,0,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),te.add(new go.PathSegment(go.PathSegment.Line,E,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var oe=new go.PathFigure(y*E,0,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),oe.add(new go.PathSegment(go.PathSegment.Move,0,z*a)),oe.add(new go.PathSegment(go.PathSegment.Line,E,z*a)),x}),go.Shape.defineFigureGenerator("Junction",function(ue,E,a){var x=new go.Geometry,y=1/Math.SQRT2,z=(1-1/Math.SQRT2)/2,te=xe*.5,oe=.5,se=new go.PathFigure(E,oe*a,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,a,E,(oe+te)*a,(oe+te)*E,a)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,oe*a,(oe-te)*E,a,0,(oe+te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,0,0,(oe-te)*a,(oe-te)*E,0)),se.add(new go.PathSegment(go.PathSegment.Bezier,E,oe*a,(oe+te)*E,0,E,(oe-te)*a));var ie=new go.PathFigure((z+y)*E,(z+y)*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,z*E,z*a)),ie.add(new go.PathSegment(go.PathSegment.Move,z*E,(z+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Line,(z+y)*E,z*a)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ue,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close());var z=new go.PathFigure(.1*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.75*a)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ue,E,a){var x=new go.Geometry,y=xe*.5,z=.5,te=new go.PathFigure(.5*E,a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+.1)*E,.9*a,E,(z+y)*a,(z+y)*E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ue,E,a){var x=new go.Geometry,y=ue?ue.parameter1:NaN;isNaN(y)&&(y=.7);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ue,E,a){var x=new go.Geometry,y=ue?ue.parameter1:NaN;isNaN(y)&&(y=.25);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,y*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ue,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.44*a,.96*E,.47*a,.93*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.54*a,.86*E,.57*a,.83*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*E,.4*a,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,0).close());var z=new go.PathFigure(.1*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.44*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,.1*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close());var z=new go.PathFigure(.2*E,.1*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Move,.1*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ue,E,a){var x=new go.Geometry,y=ue?ue.parameter1:NaN;isNaN(y)&&(y=.1);var z=1-y,te=new go.PathFigure(0,0,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close());var oe=new go.PathFigure(.5*y*E,y*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,(1-.5*y)*E,y*a)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ue,E,a){var x=new go.Geometry,y=xe*.5,z=.5,te=new go.PathFigure(E,z*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+y)*a,(z+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a));var oe=new go.PathFigure(E,.5*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ue,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.5*E,.6*a,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ue,E,a){var x=new go.Geometry,y=ue?ue.parameter1:NaN,z=ue?ue.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.3);var te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,0)),te.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ue,E,a){var x=new go.Geometry,y=ue?ue.parameter1:NaN,z=ue?ue.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.3);var te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ue,E,a){var x=new go.Geometry,y=ue?ue.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure((1-y)*E,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Move,y*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),x}),go.Shape.defineFigureGenerator("Process",function(ue,E,a){var x=new go.Geometry,y=ue?ue.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var te=new go.PathFigure(y*E,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(0,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ue,E,a){var x=new go.Geometry,y=ue?ue.parameter1:NaN;isNaN(y)&&(y=.25);var z=new go.PathFigure(y*E,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a));var te=new go.PathFigure(y*E,0,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),te.add(new go.PathSegment(go.PathSegment.Move,(1-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,a)),x.spot1=new go.Spot(y,0),x.spot2=new go.Spot(1-y,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ue,E,a){var x=new go.Geometry,y=ue?ue.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ue,E,a){var x=new go.Geometry,y=xe*.5,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(.5+y)*E,0,E,(.5-y)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.5+y)*a,(.5+y)*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ue,E,a){var x=new go.Geometry,y=xe*.5,z=.5,te=new go.PathFigure(E,z*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+y)*a,(z+y)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a));var oe=new go.PathFigure(E,z*a,!1);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z*a));var se=new go.PathFigure(.8*E,.75*a,!1);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.8*E,.25*a)),se.add(new go.PathSegment(go.PathSegment.Line,.6*E,.25*a)),se.add(new go.PathSegment(go.PathSegment.Line,.6*E,.75*a)),se.add(new go.PathSegment(go.PathSegment.Line,.4*E,.75*a)),se.add(new go.PathSegment(go.PathSegment.Line,.4*E,.25*a)),se.add(new go.PathSegment(go.PathSegment.Line,.2*E,.25*a)),se.add(new go.PathSegment(go.PathSegment.Line,.2*E,.75*a)),x}),go.Shape.defineFigureGenerator("Ground",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Move,.3*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),x}),go.Shape.defineFigureGenerator("Inverter",function(ue,E,a){var x=new go.Geometry,y=xe*.1,z=.1,te=.9,oe=.5,se=new go.PathFigure(.8*E,.5*a,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,0,a)),se.add(new go.PathSegment(go.PathSegment.Line,0,0)),se.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a));var ie=new go.PathFigure((te+z)*E,oe*a,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+z)*a,(te+z)*E,(oe+y)*a,(te+y)*E,(oe+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,(te-y)*E,(oe+z)*a,(te-z)*E,(oe+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-z)*a,(te-z)*E,(oe-y)*a,(te-y)*E,(oe-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,(te+y)*E,(oe-z)*a,(te+z)*E,(oe-y)*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ue,E,a){var x=new go.Geometry,y=xe*.5,z=xe*.4,te=xe*.1,oe=.1,se=.9,ie=.5,Ee=new go.PathFigure(.8*E,.5*a,!0);x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,.8*E,(.5+z)*a,(.4+y)*E,a)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,a)),Ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ee.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(.4+y)*E,0,.8*E,(.5-z)*a));var Fe=new go.PathFigure((se+oe)*E,ie*a,!0);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(ie+oe)*a,(se+oe)*E,(ie+te)*a,(se+te)*E,(ie+oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe)*E,ie*a,(se-te)*E,(ie+oe)*a,(se-oe)*E,(ie+te)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(ie-oe)*a,(se-oe)*E,(ie-te)*a,(se-te)*E,(ie-oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe)*E,ie*a,(se+te)*E,(ie-oe)*a,(se+oe)*E,(ie-te)*a)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ue,E,a){var x=new go.Geometry,y=.5,z=xe*y,te=0,oe=.5,se=new go.PathFigure(.8*E,.5*a,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(te+z)*E,(oe-y)*a,.7*E,(oe-z)*a)),y=.1,z=xe*.1,te=.9,oe=.5;var ie=new go.PathFigure((te-y)*E,oe*a,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-y)*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,oe*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+y)*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,oe*a,(te-z)*E,(oe+y)*a,(te-y)*E,(oe+z)*a)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ue,E,a){var x=new go.Geometry,y=.5,z=xe*y,te=0,oe=.5,se=new go.PathFigure(0,0,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(te+z+z)*E,(oe-y)*a,.8*E,(oe-z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*E,(oe+z)*a,(te+z+z)*E,(oe+y)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ue,E,a){var x=new go.Geometry,y=.5,z=xe*y,te=.2,oe=.5,se=new go.PathFigure(.1*E,0,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ie=new go.PathFigure(.8*E,.5*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.7*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(te+z)*E,(oe-y)*a,.7*E,(oe-z)*a)),y=.1,z=xe*.1,te=.9,oe=.5;var Ee=new go.PathFigure((te-y)*E,oe*a,!0);return x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-y)*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,oe*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+y)*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,oe*a,(te-z)*E,(oe+y)*a,(te-y)*E,(oe+z)*a)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ue,E,a){var x=new go.Geometry,y=.5,z=xe*y,te=.2,oe=.5,se=new go.PathFigure(.1*E,0,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ie=new go.PathFigure(.2*E,0,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(te+z)*E,(oe-y)*a,.9*E,(oe-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.9*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("Resistor",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),x}),go.Shape.defineFigureGenerator("Inductor",function(ue,E,a){var x=new go.Geometry,y=xe*.1,z=.1,te=.1,oe=.5,se=new go.PathFigure((te-y*.5)*E,a,!1);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.3,se.add(new go.PathSegment(go.PathSegment.Bezier,te*E,a,(te+z)*E,0,(te+y)*E,a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.5,se.add(new go.PathSegment(go.PathSegment.Bezier,te*E,a,(te+z)*E,0,(te+y)*E,a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*E,a,(te+z)*E,0,(te+y)*E,a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,0,(te-y)*E,a,(te-z)*E,0)),te=.9,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+y*.5)*E,a,(te+z)*E,0,(te+y)*E,a)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ue,E,a){var x=new go.Geometry,y=xe*.5,z=.5,te=.5,oe=.5,se=new go.PathFigure((te-z)*E,oe*a,!1);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-z)*a,(te-z)*E,(oe-y)*a,(te-y)*E,(oe-z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,(te+y)*E,(oe-z)*a,(te+z)*E,(oe-y)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+z)*a,(te+z)*E,(oe+y)*a,(te+y)*E,(oe+z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,(te-y)*E,(oe+z)*a,(te-z)*E,(oe+y)*a)),se.add(new go.PathSegment(go.PathSegment.Move,(te-z+.1)*E,oe*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+z-.1)*E,oe*a,te*E,(oe-z)*a,te*E,(oe+z)*a)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("Diode",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ue,E,a){var x=new go.Geometry,y=E,z=a;E=E*.38,a=a*.6;var te=xe*.8,oe=.8,se=0,ie=.5,Ee=(y-E)/2,Fe=(z-a)/2,Qe=new go.PathFigure(se*E+Ee,(ie+oe)*a+Fe,!0);x.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe)*E+Ee,ie*a+Fe,(se-te)*E+Ee,(ie+oe)*a+Fe,(se-oe)*E+Ee,(ie+te)*a+Fe)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Ee,(ie-oe)*a+Fe,(se-oe)*E+Ee,(ie-te)*a+Fe,(se-te)*E+Ee,(ie-oe)*a+Fe)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe+te*.5)*E+Ee,ie*a+Fe,se*E+Ee,(ie-oe)*a+Fe,(se-oe+te*.5)*E+Ee,(ie-te)*a+Fe)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Ee,(ie+oe)*a+Fe,(se-oe+te*.5)*E+Ee,(ie+te)*a+Fe,se*E+Ee,(ie+oe)*a+Fe).close()),te=xe*.4,oe=.4,se=.2,ie=.5;var Le=new go.PathFigure(se*E+Ee,(ie+oe)*a+Fe,!0);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe)*E+Ee,ie*a+Fe,(se-te)*E+Ee,(ie+oe)*a+Fe,(se-oe)*E+Ee,(ie+te)*a+Fe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Ee,(ie-oe)*a+Fe,(se-oe)*E+Ee,(ie-te)*a+Fe,(se-te)*E+Ee,(ie-oe)*a+Fe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe+te*.5)*E+Ee,ie*a+Fe,se*E+Ee,(ie-oe)*a+Fe,(se-oe+te*.5)*E+Ee,(ie-te)*a+Fe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Ee,(ie+oe)*a+Fe,(se-oe+te*.5)*E+Ee,(ie+te)*a+Fe,se*E+Ee,(ie+oe)*a+Fe).close()),te=xe*.2,oe=.2,se=.5,ie=.5;var st=new go.PathFigure((se-oe)*E+Ee,ie*a+Fe,!0);x.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Ee,(ie-oe)*a+Fe,(se-oe)*E+Ee,(ie-te)*a+Fe,(se-te)*E+Ee,(ie-oe)*a+Fe)),st.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe)*E+Ee,ie*a+Fe,(se+te)*E+Ee,(ie-oe)*a+Fe,(se+oe)*E+Ee,(ie-te)*a+Fe)),st.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Ee,(ie+oe)*a+Fe,(se+oe)*E+Ee,(ie+te)*a+Fe,(se+te)*E+Ee,(ie+oe)*a+Fe)),st.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe)*E+Ee,ie*a+Fe,(se-te)*E+Ee,(ie+oe)*a+Fe,(se-oe)*E+Ee,(ie+te)*a+Fe)),te=xe*.4,oe=.4,se=.8,ie=.5;var Me=new go.PathFigure(se*E+Ee,(ie-oe)*a+Fe,!0);x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe)*E+Ee,ie*a+Fe,(se+te)*E+Ee,(ie-oe)*a+Fe,(se+oe)*E+Ee,(ie-te)*a+Fe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Ee,(ie+oe)*a+Fe,(se+oe)*E+Ee,(ie+te)*a+Fe,(se+te)*E+Ee,(ie+oe)*a+Fe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe-te*.5)*E+Ee,ie*a+Fe,se*E+Ee,(ie+oe)*a+Fe,(se+oe-te*.5)*E+Ee,(ie+te)*a+Fe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Ee,(ie-oe)*a+Fe,(se+oe-te*.5)*E+Ee,(ie-te)*a+Fe,se*E+Ee,(ie-oe)*a+Fe).close()),te=xe*.8,oe=.8,se=1,ie=.5;var Ye=new go.PathFigure(se*E+Ee,(ie-oe)*a+Fe,!0);return x.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe)*E+Ee,ie*a+Fe,(se+te)*E+Ee,(ie-oe)*a+Fe,(se+oe)*E+Ee,(ie-te)*a+Fe)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Ee,(ie+oe)*a+Fe,(se+oe)*E+Ee,(ie+te)*a+Fe,(se+te)*E+Ee,(ie+oe)*a+Fe)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe-te*.5)*E+Ee,ie*a+Fe,se*E+Ee,(ie+oe)*a+Fe,(se+oe-te*.5)*E+Ee,(ie+te)*a+Fe)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Ee,(ie-oe)*a+Fe,(se+oe-te*.5)*E+Ee,(ie-te)*a+Fe,se*E+Ee,(ie-oe)*a+Fe).close()),x}),go.Shape.defineFigureGenerator("Email",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.54*a)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.35*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,0).close());var z=new go.PathFigure(.1*E,a,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var te=new go.PathFigure(.6*E,a,!0,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*E,.6*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*E,a).close());var oe=new go.PathFigure(0,.5*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),oe.add(new go.PathSegment(go.PathSegment.Move,.75*E,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.75*E,.6*a)),oe.add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.25*E,.6*a)),x}),go.Shape.defineFigureGenerator("Power",function(ue,E,a){var x=new go.Geometry,y=xe*.4,z=.4,te=.5,oe=.5,se=b(),ie=b(),Ee=b(),Fe=b();Be(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.5,se,se,ie,Ee,Fe);var Qe=ae(ie.x,ie.y),Le=new go.PathFigure(ie.x*E,ie.y*a,!0);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,Ee.x*E,Ee.y*a,Fe.x*E,Fe.y*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+z)*a,(te+z)*E,(oe+y)*a,(te+y)*E,(oe+z)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,(te-y)*E,(oe+z)*a,(te-z)*E,(oe+y)*a)),Be(te-z,oe,te-z,oe-y,te-y,oe-z,te,oe-z,.5,Ee,Fe,ie,se,se),Le.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*E,ie.y*a,Ee.x*E,Ee.y*a,Fe.x*E,Fe.y*a)),y=xe*.3,z=.3,Be(te-z,oe,te-z,oe-y,te-y,oe-z,te,oe-z,.5,Ee,Fe,ie,se,se),Le.add(new go.PathSegment(go.PathSegment.Line,ie.x*E,ie.y*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,Fe.x*E,Fe.y*a,Ee.x*E,Ee.y*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+z)*a,(te-z)*E,(oe+y)*a,(te-y)*E,(oe+z)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),Be(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.5,se,se,ie,Ee,Fe),Le.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*E,ie.y*a,Fe.x*E,Fe.y*a,Ee.x*E,Ee.y*a).close());var Le=new go.PathFigure(.45*E,0,!0);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.55*E,.5*a)),Le.add(new go.PathSegment(go.PathSegment.Line,.55*E,0).close()),he(se),he(ie),he(Ee),he(Fe),he(Qe),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a/2,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,180,360,E/2,a/2,E/2,a/2));function z(te,oe,se){te.add(new go.PathSegment(go.PathSegment.Move,(.3+oe)*E,(.8+se)*a)),te.add(new go.PathSegment(go.PathSegment.Line,(.5+oe)*E,(.5+se)*a)),te.add(new go.PathSegment(go.PathSegment.Line,(.1+oe)*E,(.5+se)*a)),te.add(new go.PathSegment(go.PathSegment.Line,(.3+oe)*E,(.8+se)*a).close())}return z(y,0,0),z(y,.4,0),z(y,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.2*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.37*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.11*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*E,.04*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.49*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.37*a)),y.add(new go.PathSegment(go.PathSegment.Line,.63*E,.86*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*E,.91*a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*E,.78*a)),y.add(new go.PathSegment(go.PathSegment.Line,.44*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.56*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.29*E,0,-.25*E,.63*a,.45*E,.44*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.51*E,.42*a,.48*E,.17*a,.54*E,.35*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.59*E,.18*a,.59*E,.29*a,.58*E,.28*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,.6*a,.8*E,.34*a,.88*E,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.88*E,.31*a,.87*E,.48*a,.88*E,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,1.17*E,.76*a,.82*E,.8*a).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ue,E,a){var x=new go.Geometry,y=.5,z=0,te=0,oe=y*xe,se=.4*Math.SQRT2/2+.5,ie=.5-.5*Math.SQRT2/2,Ee=1,Fe=.5,Qe=.5,Le=0,st=new go.PathFigure(se*E,(1-ie)*a,!1);return x.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,Ee*E,Fe*a,Ee*E,.7*a,Ee*E,Fe*a)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+z)*E,(Le+z)*a,(.5+y+z)*E,(.5-oe+z)*a,(.5+oe+z)*E,(.5-y+z)*a)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+te)*a,(.5-oe+z)*E,(.5-y+te)*a,(.5-y+z)*E,(.5-oe+te)*a)),st.add(new go.PathSegment(go.PathSegment.Bezier,(.35+z)*E,.9*a,(.5-y+z)*E,(.5+oe+te)*a,(.5-oe+z)*E,.9*a)),st.add(new go.PathSegment(go.PathSegment.Move,(.25+z)*E,.8*a)),st.add(new go.PathSegment(go.PathSegment.Line,(.35+z)*E,.9*a)),st.add(new go.PathSegment(go.PathSegment.Line,(.2+z)*E,.95*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var te=new go.PathFigure(0,.5*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.2*E,.35*a,.3*E,.35*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.7*E,.65*a,.8*E,.65*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var y=new go.PathFigure(0,.2*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.7*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,0,.6*E,.5*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,a,.4*E,.5*a,E,.5*a).close());var z=new go.PathFigure(.45*E,.73*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.73*a)),z.add(new go.PathSegment(go.PathSegment.Move,.38*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.63*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Move,.31*E,.27*a)),z.add(new go.PathSegment(go.PathSegment.Line,.56*E,.27*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(.335*E,(1-.555)*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.68*a,(1-.12)*E,.46*a,(1-.02)*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.335*E,(1-.555)*a,.02*E,.54*a,.12*E,.46*a)),z.add(new go.PathSegment(go.PathSegment.Line,.365*E,(1-.595)*a));var te=.5-.285,oe=.5,se=te,ie=Math.PI/4,Ee=4*(1-Math.cos(ie))/(3*Math.sin(ie)),Fe=Ee*.5,Qe=te,Le=te,st=Ee*Qe,Me=Ee*Le;z.add(new go.PathSegment(go.PathSegment.Bezier,(oe-Qe)*E,se*a,(oe-(st+Qe)/2)*E,(se+(Le+Me)/2)*a,(oe-Qe)*E,(se+Me)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,oe*E,(se-Le)*a,(oe-Qe)*E,(se-Me)*a,(oe-st)*E,(se-Le)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(oe+Qe)*E,se*a,(oe+st)*E,(se-Le)*a,(oe+Qe)*E,(se-Me)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*E,(1-.595)*a,(oe+Qe)*E,(se+Me)*a,(oe+(st+Qe)/2)*E,(se+(Le+Me)/2)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*E,(1-.595)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a));var Ye=new go.PathFigure(.2*E,a,!1);x.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Line,.2*E,.8*a));var Ge=new go.PathFigure(.8*E,a,!1);return x.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var z=new go.PathFigure(.2*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var te=new go.PathFigure(.1*E,a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.05*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.8*a,0,a,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.1*a,.5*E,0,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.95*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,E,a,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,a));var z=.05;return y.add(new go.PathSegment(go.PathSegment.Move,(.5-z)*E,.875*a)),y.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*E,.875*a,z*E,z*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.325*a,.575*E,.725*a,.625*E,.375*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.75*a,.375*E,.375*a,.425*E,.725*a)),x}),go.Shape.defineFigureGenerator("Recycle",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.45*E,.95*a,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.185*E,.85*a,.17*E,.95*a,.15*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.235*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.625*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,.275*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.575*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.1875*E,.95*a,0,.675*a,0,.7*a)),y.add(new go.PathSegment(go.PathSegment.Move,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.775*a)),y.add(new go.PathSegment(go.PathSegment.Line,.22*E,.775*a));var z=new go.PathFigure(.475*E,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.225*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.275*E,.175*a)),z.add(new go.PathSegment(go.PathSegment.Line,.325*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.05*a,.35*E,0,.375*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.575*E,.375*a)),z.add(new go.PathSegment(go.PathSegment.Line,.525*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.475*a)),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.315*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.32*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,0,.65*E,.05*a,.625*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.38*E,.0105*a));var te=new go.PathFigure(.675*E,.575*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.875*E,.525*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.85*E,.95*a,E,.8*a,E,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,.95*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,.725*a)),te.add(new go.PathSegment(go.PathSegment.Line,.65*E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Line,.7*E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),te.add(new go.PathSegment(go.PathSegment.Move,.675*E,.575*a)),te.add(new go.PathSegment(go.PathSegment.Line,.775*E,.775*a)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ue,E,a){var x=new go.Geometry,y=.5,z=xe*.5,te=new go.PathFigure(E,y*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,y*E,a,E,(y+z)*a,(y+z)*E,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y*a,(y-z)*E,a,0,(y+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,y*E,0,0,(y-z)*a,(y-z)*E,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,E,y*a,(y+z)*E,0,E,(y-z)*a));var oe=new go.PathFigure(y*E,0,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,y*E,.15*a)),oe.add(new go.PathSegment(go.PathSegment.Move,y*E,a)),oe.add(new go.PathSegment(go.PathSegment.Line,y*E,.85*a)),oe.add(new go.PathSegment(go.PathSegment.Move,0,y*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.15*E,y*a)),oe.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.85*E,y*a)),oe.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.58*E,.1*a)),oe.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.78*E,.54*a)),x}),go.Shape.defineFigureGenerator("Package",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.15*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,.15*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.15*a).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var te=new go.PathFigure(0,.5*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Component",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close());var z=new go.PathFigure(0,.2*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var te=new go.PathFigure(0,.6*a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.45*E,.6*a)),te.add(new go.PathSegment(go.PathSegment.Line,.45*E,.8*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),te.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.15*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a));var z=new go.PathFigure(.15*E,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(E,.8*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.8*a).close());var te=.1,oe=xe*.1,se=.2,ie=.9,Ee=new go.PathFigure((se-te)*E,ie*a,!0);x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(ie-te)*a,(se-te)*E,(ie-oe)*a,(se-oe)*E,(ie-te)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se+te)*E,ie*a,(se+oe)*E,(ie-te)*a,(se+te)*E,(ie-oe)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(ie+te)*a,(se+te)*E,(ie+oe)*a,(se+oe)*E,(ie+te)*a)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-te)*E,ie*a,(se-oe)*E,(ie+te)*a,(se-te)*E,(ie+oe)*a).close()),te=.1,oe=xe*.1,se=.8,ie=.9;var Fe=new go.PathFigure((se-te)*E,ie*a,!0);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(ie-te)*a,(se-te)*E,(ie-oe)*a,(se-oe)*E,(ie-te)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se+te)*E,ie*a,(se+oe)*E,(ie-te)*a,(se+te)*E,(ie-oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(ie+te)*a,(se+te)*E,(ie+oe)*a,(se+oe)*E,(ie+te)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se-te)*E,ie*a,(se-oe)*E,(ie+te)*a,(se-te)*E,(ie+oe)*a).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.2*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),x}),go.Shape.defineFigureGenerator("Forklift",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0));var z=new go.PathFigure(0,.5*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var te=new go.PathFigure(.5*E,.8*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,.1*a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.1*a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.8*a)),te.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a));var oe=new go.PathFigure(.5*E,.7*a,!1);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,.7*a));var se=.1,ie=xe*.1,Ee=.1,Fe=.9,Qe=new go.PathFigure((Ee-se)*E,Fe*a,!0);x.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*E,(Fe-se)*a,(Ee-se)*E,(Fe-ie)*a,(Ee-ie)*E,(Fe-se)*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+se)*E,Fe*a,(Ee+ie)*E,(Fe-se)*a,(Ee+se)*E,(Fe-ie)*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Ee*E,(Fe+se)*a,(Ee+se)*E,(Fe+ie)*a,(Ee+ie)*E,(Fe+se)*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-se)*E,Fe*a,(Ee-ie)*E,(Fe+se)*a,(Ee-se)*E,(Fe+ie)*a)),se=.1,ie=xe*.1,Ee=.4,Fe=.9;var Le=new go.PathFigure((Ee-se)*E,Fe*a,!0);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ee*E,(Fe-se)*a,(Ee-se)*E,(Fe-ie)*a,(Ee-ie)*E,(Fe-se)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ee+se)*E,Fe*a,(Ee+ie)*E,(Fe-se)*a,(Ee+se)*E,(Fe-ie)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Ee*E,(Fe+se)*a,(Ee+se)*E,(Fe+ie)*a,(Ee+ie)*E,(Fe+se)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Ee-se)*E,Fe*a,(Ee-ie)*E,(Fe+se)*a,(Ee-se)*E,(Fe+ie)*a)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,.4*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.4*a).close());var z=new go.PathFigure(.45*E,.7*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a));var te=new go.PathFigure(.55*E,.4*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),te.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.55*E,.4*a).close());var Ee=.05,Fe=xe*.05,Qe=.175,Le=.95,oe=new go.PathFigure((Qe-Ee)*E,Le*a,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le-Ee)*a,(Qe-Ee)*E,(Le-Fe)*a,(Qe-Fe)*E,(Le-Ee)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Ee)*E,Le*a,(Qe+Fe)*E,(Le-Ee)*a,(Qe+Ee)*E,(Le-Fe)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le+Ee)*a,(Qe+Ee)*E,(Le+Fe)*a,(Qe+Fe)*E,(Le+Ee)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Qe-Ee)*E,Le*a,(Qe-Fe)*E,(Le+Ee)*a,(Qe-Ee)*E,(Le+Fe)*a));var Ee=.05,Fe=xe*.05,Qe=.375,Le=.95,se=new go.PathFigure((Qe-Ee)*E,Le*a,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le-Ee)*a,(Qe-Ee)*E,(Le-Fe)*a,(Qe-Fe)*E,(Le-Ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Ee)*E,Le*a,(Qe+Fe)*E,(Le-Ee)*a,(Qe+Ee)*E,(Le-Fe)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le+Ee)*a,(Qe+Ee)*E,(Le+Fe)*a,(Qe+Fe)*E,(Le+Ee)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Qe-Ee)*E,Le*a,(Qe-Fe)*E,(Le+Ee)*a,(Qe-Ee)*E,(Le+Fe)*a));var Ee=.05,Fe=xe*.05,Qe=.625,Le=.95,ie=new go.PathFigure((Qe-Ee)*E,Le*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le-Ee)*a,(Qe-Ee)*E,(Le-Fe)*a,(Qe-Fe)*E,(Le-Ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Ee)*E,Le*a,(Qe+Fe)*E,(Le-Ee)*a,(Qe+Ee)*E,(Le-Fe)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le+Ee)*a,(Qe+Ee)*E,(Le+Fe)*a,(Qe+Fe)*E,(Le+Ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Qe-Ee)*E,Le*a,(Qe-Fe)*E,(Le+Ee)*a,(Qe-Ee)*E,(Le+Fe)*a));var Ee=.05,Fe=xe*.05,Qe=.825,Le=.95,st=new go.PathFigure((Qe-Ee)*E,Le*a,!0);x.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le-Ee)*a,(Qe-Ee)*E,(Le-Fe)*a,(Qe-Fe)*E,(Le-Ee)*a)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Ee)*E,Le*a,(Qe+Fe)*E,(Le-Ee)*a,(Qe+Ee)*E,(Le-Fe)*a)),st.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le+Ee)*a,(Qe+Ee)*E,(Le+Fe)*a,(Qe+Fe)*E,(Le+Ee)*a)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Qe-Ee)*E,Le*a,(Qe-Fe)*E,(Le+Ee)*a,(Qe-Ee)*E,(Le+Fe)*a).close());var Me=new go.PathFigure(0,a,!1);return x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var te=new go.PathFigure(.15*E,a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.15*E,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),te.add(new go.PathSegment(go.PathSegment.Line,.15*E,a).close());var oe=.05,se=xe*.05,ie=.35,Ee=.775,Fe=new go.PathFigure((ie-oe)*E,Ee*a,!0);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(Ee-oe)*a,(ie-oe)*E,(Ee-se)*a,(ie-se)*E,(Ee-oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+oe)*E,Ee*a,(ie+se)*E,(Ee-oe)*a,(ie+oe)*E,(Ee-se)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(Ee+oe)*a,(ie+oe)*E,(Ee+se)*a,(ie+se)*E,(Ee+oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-oe)*E,Ee*a,(ie-se)*E,(Ee+oe)*a,(ie-oe)*E,(Ee+se)*a).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),x}),go.Shape.defineFigureGenerator("Globe",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.75*E,0,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.75*a,.75*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*E,a,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,.25*a,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,.15*E,.25*a,.15*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.85*E,.75*a,.85*E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.15*a,.35*E,.3*a,.65*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.85*a,.35*E,.7*a,.65*E,.7*a)),x}),go.Shape.defineFigureGenerator("Wave",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.25*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.25*a,.1*E,0,.2*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.25*a,.425*E,.5*a,.575*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.25*a,.8*E,0,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.75*a,.1*E,.5*a,.2*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.75*a,.425*E,a,.575*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.75*a,.8*E,.5*a,.9*E,.5*a)),x}),go.Shape.defineFigureGenerator("Operator",function(ue,E,a){var x=new go.Geometry,y=.3,z=xe*.3,te=.5,oe=.7,se=new go.PathFigure((te-y)*E,oe*a,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-y)*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,oe*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+y)*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,oe*a,(te-z)*E,(oe+y)*a,(te-y)*E,(oe+z)*a));var ie=new go.PathFigure(0,.7*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,.7*a,0,0,E,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.65*E,.3*a,.65*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.35*E,.5*a,.35*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*E,.6*a,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.2*E,a,.35*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,a,.7*E,.6*a,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.8*E,a,.65*E,.95*a)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,0,a,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.4*a,.8*E,a,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.1*a));var z=new go.PathFigure(0,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),x}),go.Shape.defineFigureGenerator("Delete",function(ue,E,a){var x=new go.Geometry,y=.5,z=xe*.5,te=.5,oe=.5,se=new go.PathFigure((te-y)*E,oe*a,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-y)*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,oe*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+y)*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,oe*a,(te-z)*E,(oe+y)*a,(te-y)*E,(oe+z)*a));var ie=new go.PathFigure(.15*E,.5*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.85*E,.5*a)),x}),go.Shape.defineFigureGenerator("Flag",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.1*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.1*a,.15*E,0,.35*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,.65*E,.2*a,.85*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.85*E,.6*a,.65*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*E,.4*a,.15*E,.4*a).close()),x}),go.Shape.defineFigureGenerator("Help",function(ue,E,a){var x=new go.Geometry,y=.5,z=xe*.5,te=.5,oe=.5,se=new go.PathFigure((te-y)*E,oe*a,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-y)*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,oe*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+y)*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,oe*a,(te-z)*E,(oe+y)*a,(te-y)*E,(oe+z)*a).close()),y=.05,z=xe*.05,te=.5,oe=.8;var ie=new go.PathFigure((te-y)*E,oe*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-y)*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,oe*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+y)*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-y)*E,oe*a,(te-z)*E,(oe+y)*a,(te-y)*E,(oe+z)*a).close()),ie.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,.75*E,.475*a,.75*E,.225*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.35*a,.4*E,.2*a,.3*E,.25*a)),x}),go.Shape.defineFigureGenerator("Location",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.975*E,.025*a,.5*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*E,.5*a,.5*E,0,.025*E,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*E,.3*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.3*a)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.35*a)),x}),go.Shape.defineFigureGenerator("Gear",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(.9375*E,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*E,.3316875*a,.79840625*E,.39915625*a,.7834375*E,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*E,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*E,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*E,.19378125*a,.64228125*E,.2188125*a,.603875*E,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*E,.239375*a,.39759375*E,.20190625*a,.36053125*E,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*E,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*E,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*E,.4375*a,.21765625*E,.36059375*a,.201875*E,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*E,.67596875*a,.20221875*E,.603875*a,.21884375*E,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*E,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*E,.80621875*a,.36353125*E,.78340625*a,.3991875*E,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*E,.760625*a,.602375*E,.79809375*a,.63946875*E,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*E,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*E,.56246875*a,.78234375*E,.63940625*a,.798125*E,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*E,.5*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.3*a,0,.375*a,.05*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.075*a,.3*E,.225*a,.4*E,.175*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.525*E,.075*a,.46*E,.05*a,.525*E,.05*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.4*a,.525*E,.275*a,.475*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.55*a,E,.4*a,E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.425*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.7*a,.675*E,.55*a,.675*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.575*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,.85*a,.65*E,.7*a,.65*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.535*E,a,.61*E,.85*a,.61*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*E,a,0,a).close()),x}),go.Shape.defineFigureGenerator("Map",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),x}),go.Shape.defineFigureGenerator("Eject",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.7)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var z=new go.PathFigure(0,a*.6,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E*1,a*1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.85).close());var z=new go.PathFigure(.126*E,.85*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.126*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.85*a).close());var te=new go.PathFigure(.402*E,.85*a,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.402*E,.45*a)),te.add(new go.PathSegment(go.PathSegment.Line,.598*E,.45*a)),te.add(new go.PathSegment(go.PathSegment.Line,.598*E,.85*a).close());var oe=new go.PathFigure(.678*E,.85*a,!1);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.678*E,.45*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.874*E,.45*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.874*E,.85*a).close());var se=new go.PathFigure(.5*E,.1*a,!1);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*E,.3*a)),se.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*E,.3*a).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a*1,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a*1,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*(1-.184)).close());var z=new go.PathFigure(E*.204,a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.204,a*(1-.184))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*1).close());var te=new go.PathFigure(E*.408,a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.408,a*(1-.184*2))),te.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*(1-.184*3))),te.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*1).close());var oe=new go.PathFigure(E*.612,a,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*.612,a*(1-.184*3))),oe.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*(1-.184*4))),oe.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*1).close());var se=new go.PathFigure(E*.816,a,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,E*.816,a*(1-.184*4))),se.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-.184*5))),se.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,0).close());var z=new go.PathFigure(E*.055,.07*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.07)),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.1).close());var te=new go.PathFigure(E*.055,.13*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.13)),te.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.16)),te.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.16).close());var oe=new go.PathFigure(E*.055,.18*a,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.18)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.21)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.21).close());var se=new go.PathFigure(E*1,0,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,E*.4,0)),se.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.65)),se.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(.55*E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.475*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.35*E,.525*a,0,.4*a,.225*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.475*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.2*a,.975*E,0,E,.08*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.55*E,a).close()),x}),go.Shape.defineFigureGenerator("Key",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E*1,a*.5,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.9,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,.575*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.9,.6*a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.17*E,.425*a)),y.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*E,.5*a,.075*E,.075*a).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*0,E*.3,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var z=new go.PathFigure(0,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*0)),z.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*1,E*.3,E*.055)),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var te=new go.PathFigure(E*.11,a*.1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.1)),te.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.8)),te.add(new go.PathSegment(go.PathSegment.Line,E*.11,a*.8).close());var oe=new go.PathFigure(E*(.11+.24133333*1+.028*1),a*.1,!1);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.1)),oe.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.8)),oe.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*1),a*.8).close());var se=new go.PathFigure(E*(.11+.24133333*2+.028*2),a*.1,!1);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.1)),se.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.8)),se.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*2),a*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ue,E,a){var x=new go.Geometry,y=8,z=y*xe,te=new go.PathFigure(y,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.86,0)),te.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.14)),te.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),te.add(new go.PathSegment(go.PathSegment.Bezier,E-y,a,E,a-z,E-z,a)),te.add(new go.PathSegment(go.PathSegment.Line,y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,z,a,0,a-z)),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,z,z,0).close());var oe=new go.PathFigure(E*.83,0,!1);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.3)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.3)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*0).close());var se=new go.PathFigure(E*.83,a*1,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.5)),se.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.5)),se.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*1).close());var ie=new go.PathFigure(E*.78,a*.05,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.05)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.25)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.78,a*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ue,E,a){var x=ue?ue.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,E/3),x=Math.min(x,a/3);var y=x*xe,z=a*.8,te=new go.Geometry,oe=new go.PathFigure(x,0,!0);return te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E-x,0)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E,x,E-y,0,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,z-x)),oe.add(new go.PathSegment(go.PathSegment.Bezier,E-x,z,E,z-y,E-y,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.7,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.7,a)),oe.add(new go.PathSegment(go.PathSegment.Line,E*.55,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Bezier,0,z-x,y,z,0,z-y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,x)),oe.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()),y>1?(te.spot1=new go.Spot(0,0,y,y),te.spot2=new go.Spot(1,.8,-y,-y)):(te.spot1=go.Spot.TopLeft,te.spot2=new go.Spot(1,.8)),te}),go.Shape.defineFigureGenerator("Repeat",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*.45,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.45).close());var z=new go.PathFigure(E*1,a*.55,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ue,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*E,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*.1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.9).close());var z=new go.PathFigure(E*.1,a*.2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,E*.22,a*.285)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.25).close());var te=new go.PathFigure(E*.28,a*.37,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.37)),te.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.41)),te.add(new go.PathSegment(go.PathSegment.Line,E*.28,a*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ue,E,a){var x=new go.Geometry,y=15,z=y*xe,te=new go.PathFigure(E*.62,a*.475,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),te.add(new go.PathSegment(go.PathSegment.Bezier,E-y,a,E,a-z,E-z,a)),te.add(new go.PathSegment(go.PathSegment.Line,y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,z,a,0,a-z)),te.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.475)),te.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.03)),te.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*0)),te.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*0)),te.add(new go.PathSegment(go.PathSegment.Line,E*.62,a*.03).close()),z>1?(x.spot1=new go.Spot(0,0,z,z),x.spot2=new go.Spot(1,1,-z,-z)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var te=new go.PathFigure(E*.4,a*0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.44)),te.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.44)),te.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.66)),te.add(new go.PathSegment(go.PathSegment.Line,E*(1-.26),a*.44)),te.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.44)),te.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;return y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var te=new go.PathFigure(E*.5,a*0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.25)),te.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.25)),te.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.63)),te.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.63)),te.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.25)),te.add(new go.PathSegment(go.PathSegment.Line,E*.74,a*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.15,a*0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.15,a*0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close());var z=new go.PathFigure(E*.235,a*.28,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.765,a*.28)),z.add(new go.PathSegment(go.PathSegment.Line,E*.655,a*.97)),z.add(new go.PathSegment(go.PathSegment.Line,E*.345,a*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ue,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.5,a*0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},20063:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var it={},jt="5.0",ae={},b=null,he=!1,we=!1,Be=null,Re=!1,We=null,xe=null,Ke=0;Ke4?parseFloat(Te):5};it.setHTML5Codebase=function(Te,et){xe=Te,xn(Te,et)},it.setJavaCodebase=it.setJavaCodebaseVersion=it.isCompiledInstalled=it.setPreCompiledScriptPath=it.setPreCompiledResourcePath=function(){},it.setHTML5CodebaseVersion=function(Te,et){var Yt=parseFloat(Te);if(Yt!==NaN&&Yt<5){console.log("The GeoGebra HTML5 codebase version "+Yt+" is deprecated. Using version latest instead.");return}We=Te,En(Te,et)},it.getHTML5CodebaseVersion=function(){return ue},it.getParameters=function(){return ae},it.setFontsCSSURL=function(Te){te=Te},it.setGiacJSURL=function(Te){},it.setJNLPFile=function(Te){De=Te},it.setJNLPBaseDir=function(Te){},it.inject=function(){function Te(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var et="auto",Yt=ae.id,wn,Lt=!1,_t=0;_t=5)return!0;var Te=it.getAppletObject();return Te&&typeof Te.recalculateEnvironments=="function"?(Te.recalculateEnvironments(),!0):!1},it.startAnimation=function(){var Te=it.getAppletObject();return Te&&typeof Te.startAnimation=="function"?(Te.startAnimation(),!0):!1},it.stopAnimation=function(){var Te=it.getAppletObject();return Te&&typeof Te.stopAnimation=="function"?(Te.stopAnimation(),!0):!1},it.getAppletObject=function(){var Te=ae.id!==void 0?ae.id:"ggbApplet";return window[Te]},it.resize=function(){};var st=function(Te,et,Yt){var wn=document.createElement("param");wn.setAttribute("name",et),wn.setAttribute("value",Yt),Te.appendChild(wn)},Me=function(Te){return Te&&Te!=="false"},Ye=function(Te,et,Yt){se(ue)<=4.2&&(Yt=!0);var wn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ue||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(wn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Lt=document.createElement("div");Lt.classList.add("appletParameters","notranslate");var _t=et.width,Ce=et.height;if(et.disableAutoScale=et.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():et.disableAutoScale,et.width!==void 0)if(se(ue)<=4.4)Me(et.showToolBar)&&(et.height-=7),Me(et.showAlgebraInput)&&(et.height-=37),et.width<605&&Me(et.showToolBar)&&(et.width=605,_t=605);else{var ot=100;(Me(et.showToolBar)||Me(et.showMenuBar))&&(et.hasOwnProperty("customToolBar")&&(et.customToolbar=et.customToolBar),ot=Me(et.showMenuBar)?245:155),_t=5?(et.appletOnLoad=function(jn){var Ha=Te.querySelector(".ggb_preview");Ha&&Ha.parentNode.removeChild(Ha),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ht),window.GGBT_wsf_view&&$(window).trigger("resize"),tt(jn)},Jn||ht.appendChild(dn)):Lt.appendChild(dn),ht.appendChild(Lt),Jn||Te.appendChild(ht),setTimeout(function(){it.resize()},1)}else{var Qt=document.createElement("div");Qt.className="applet_scaler",Qt.style.position="relative",Qt.style.display="block",Qt.appendChild(Lt),Te.appendChild(Qt),et.appletOnLoad=function(jn){it.resize(),tt(jn)}}function kt(jn,Ha){Ha&&typeof Ha.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(jn,Ha.appletOnLoad):renderGGBElement(jn),Wt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ha)}function Wn(jn,Ha){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:jn,params:Ha}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Pa){kt(Pa.article,Pa.params)}),html5AppletsToProcess=null)},se(ue)<5&&(jn.className+=" geogebraweb")):kt(jn,Ha)}if(wn){scriptLoadStarted=!0;for(var ra=0;ra0?(an.remove(),ht.attr("id","fullscreencontent").show(),jQuery(tt).append(ht),window.dispatchEvent(new Event("resize"))):Ye(an,et,!1),window.GGBT_wsf_view.launchFullScreen(tt)}else Ue=wn,Ye(Te,et,!1);if(!window.GGBT_wsf_view)for(Ce=0;CeTe/4*3&&(an=Te/4*3),tt=an/5.8,ot.setAttribute("src",y),ot.setAttribute("width",an),ot.setAttribute("height",tt);var ht=(Te-an)/2,Jn=(et-tt)/2;ot.style.left=ht+"px",ot.style.top=Jn+"px",Lt.appendChild(ot)}}return Lt.appendChild(Ce),Lt},bt=function(Te){return Te=Te.toLowerCase(),Te==="html5"||Te==="screenshot"?Te:"html5"},At=["web","webSimple","web3d","tablet","tablet3d","phone"],En=function(Te,et){if(ue=Te,et){xn(ue,!0);return}var Yt=!he;if(Yt){var wn=se(ue);!isNaN(wn)&&wn<4.4&&(Yt=!1)}var Lt,_t;window.location.protocol.substr(0,4)==="http"?Lt=window.location.protocol:Lt="http:";var Ce=ue.indexOf("//");Ce>0?_t=ue:Ce===0?_t=Lt+ue:_t="https://www.geogebra.org/apps/5.2.814.0/";for(var ot in At)if(ue.slice(At[ot].length*-1)===At[ot]||ue.slice((At[ot].length+1)*-1)===At[ot]+"/"){xn(_t,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Yt&&!b.is3D&&!b.AV&&!b.SV&&!b.CV&&!b.EV2&&!b.CP&&!b.PC&&!b.DA&&!b.FI&&!b.PV&&!Me(ae.showToolBar)&&!Me(ae.showMenuBar)&&!Me(ae.showAlgebraInput)&&!Me(ae.enableRightClick)&&(!ae.appName||ae.appName=="classic")?_t+="webSimple/":_t+="web3d/",xn(_t,!1)},xn=function(Te,et){if(Te.requirejs){ke=Te;return}Te.slice(-1)!=="/"&&(Te+="/"),ke=Te,et===null&&(et=Te.indexOf("http")===-1),ze=et,E="web.nocache.js",a=!1;var Yt=ke.split("/");Yt.length>1&&(!et&&Yt[Yt.length-2]==="webSimple"?(E="webSimple.nocache.js",a=!0):At.indexOf(Yt[Yt.length-2])>=0&&(E=Yt[Yt.length-2]+".nocache.js")),Yt=Te.split("/"),ue=Yt[Yt.length-3],ue.substr(0,4)==="test"?ue=ue.substr(4,1)+"."+ue.substr(5,1):(ue.substr(0,3)==="war"||ue.substr(0,4)==="beta")&&(ue="5.0");var wn=parseFloat(ue);wn!==NaN&&wn<5&&Te.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+wn+" is deprecated. Using version latest instead."),En("5.0",et))},Wt=function(Te,et){window.console&&window.console.log&&(!et||typeof et.showLogging=="undefined"||et.showLogging&&et.showLogging!=="false")&&console.log(Te)};ae.material_id!==void 0?Fe(Pt):Pt();function Pt(){var Te=jt;We!==null?Te=We:parseFloat(Te)<5&&(Te="5.0"),En(Te,!1),xe!==null&&xn(xe,ze),Re=!0}return it},GGBAppletUtils=function(){"use strict";function it(){return window.GGBT_wsf_edit!==void 0}function jt(Re,We){We!=1?(Re.style.transformOrigin="0% 0% 0px",Re.style.webkitTransformOrigin="0% 0% 0px",Re.style.transform="scale("+We+","+We+")",Re.style.webkitTransform="scale("+We+","+We+")",Re.style.maxWidth="initial",Re.querySelector(".ggb_preview")!==null&&(Re.querySelector(".ggb_preview").style.maxWidth="initial"),Re.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Re.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Re.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Re.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Re.style.transform="none",Re.style.webkitTransform="none")}function ae(Re,We,xe,Ke,Oe,De){var ke=null;if(De!=null&&De!="")for(var ze=Re.parentNode;ze!=null;)if((" "+ze.className+" ").indexOf(" "+De+" ")>-1){ke=ze;break}else ze=ze.parentNode;var Ue=0,ue=0,E=0,a=0,x=0,y=0,z=0;if(ke)Ue=ke.offsetWidth,ue=Math.max(Ke?ke.offsetWidth:0,ke.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ue=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),E=Ue):(Ue=window.innerWidth,ue=window.innerHeight,E=window.innerWidth),Re){var te=Re.getBoundingClientRect();te.left>0&&te.left<=Ue&&(Oe===void 0||!Oe)&&(document.dir==="rtl"?(x=Ue-te.width-te.left,y=E<=480?10:30):(y=te.left,x=E<=480?10:30),a=y+x)}if(Re&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var oe=Re.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,z=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,z=40)}}return Re&&((xe===void 0||!xe)&&We>0&&We+a1&&(De=!0)),We&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(Re.hasOwnProperty("disableAutoScale")&&Re.disableAutoScale))Oe=b(Re,We,De,xe,Re.scaleContainerClass);else return Ke;return De&&(!Re.hasOwnProperty("scale")||Ke===1)?Oe:Math.min(Ke,Oe)}function we(Re){var We=Math.min(window.innerWidth,document.documentElement.clientWidth),xe=Math.min(window.innerHeight,document.documentElement.clientHeight),Ke=Re.getBoundingClientRect(),Oe=(We-Ke.width)/2,De=(xe-Ke.height)/2;De<0&&(De=0),Re.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Oe<40?Re.style.left="40px":Re.style.left=Oe+"px",Re.style.top=De+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(De<40?Re.style.top="40px":Re.style.top=De+"px",Re.style.left=Oe+"px")}function Be(Re,We){var xe=Re.querySelector(".appletParameters");if(xe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(We.id!==xe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Re)}if(xe.parentElement&&/fullscreen/.test(xe.parentElement.className))return;var Ke=he(We,Re);it()&&xe.setAttribute("data-param-scale",Ke);for(var Oe=null,De=0;De=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(it){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(it){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(it){var jt=c[it];return jt==null?null:jt},r=d,webModule.__errFn=e}function B(){function it(Re){var We=Re.lastIndexOf(rb);We==-1&&(We=Re.length);var xe=Re.indexOf(sb);xe==-1&&(xe=Re.length);var Ke=Re.lastIndexOf(tb,Math.min(xe,We));return Ke>=O?Re.substring(O,Ke+P):W}function jt(Re){if(!Re.match(/^\w+:\/\//)){var We=o.createElement(ub);We.src=Re+vb,Re=it(We.src)}return Re}function ae(){var Re=__gwt_getMetaProperty(wb);return Re!=null?Re:W}function b(){for(var Re=o.getElementsByTagName(_),We=O;WeO?Re[Re.length-P].href:W}function we(){var Re=o.location;return Re.href==Re.protocol+zb+Re.host+Re.pathname+Re.search+Re.hash}var Be=ae();return Be==W&&(Be=b()),Be==W&&(Be=he()),Be==W&&we()&&(Be=it(o.location.href)),Be=jt(Be),Be}function C(it){return it.match(/^\//)||it.match(/^[a-zA-Z]+:\/\//)?it:webModule.__moduleBase+it}function D(){var it=[],jt=O,ae=[],b=[];function he(Re){var We=b[Re](),xe=ae[Re];if(We in xe)return We;var Ke=[];for(var Oe in xe)Ke[xe[Oe]]=Oe;throw r&&r(Re,Ke,We),null}if(__gwt_isKnownPropertyValue=function(Re,We){return We in ae[Re]},webModule.__getPropMap=function(){var Re={};for(var We in ae)ae.hasOwnProperty(We)&&(Re[We]=he(We));return Re},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var we;try{we=Cb;var Be=we.indexOf(Db);Be!=-1&&(jt=parseInt(we.substring(Be+P),$),we=we.substring(O,Be))}catch(Re){}return webModule.__softPermutationId=jt,C(we+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},25676:function(it,jt,ae){"use strict";ae.d(jt,{Ax:function(){return Be},Ds:function(){return Re},KI:function(){return xe},SI:function(){return we},f1:function(){return he}});var b=ae(11662);function he(Ke){let Oe=!0;if(Ke.length>0){for(let De=0;Dea in E?we(E,a,{enumerable:!0,configurable:!0,writable:!0,value:x}):E[a]=x,De=(E,a)=>{for(var x in a||(a={}))xe.call(a,x)&&Oe(E,x,a[x]);if(We)for(var x of We(a))Ke.call(a,x)&&Oe(E,x,a[x]);return E},ke=(E,a)=>Be(E,Re(a)),ze=(E,a)=>{var x={};for(var y in E)xe.call(E,y)&&a.indexOf(y)<0&&(x[y]=E[y]);if(E!=null&&We)for(var y of We(E))a.indexOf(y)<0&&Ke.call(E,y)&&(x[y]=E[y]);return x},Ue=(E,a,x)=>new Promise((y,z)=>{var te=ie=>{try{se(x.next(ie))}catch(Ee){z(Ee)}},oe=ie=>{try{se(x.throw(ie))}catch(Ee){z(Ee)}},se=ie=>ie.done?y(ie.value):Promise.resolve(ie.value).then(te,oe);se((x=x.apply(E,a)).next())});const ue=E=>{var a=E,{children:x}=a,y=ze(a,["children"]);const[z,te]=(0,he.useState)(!1);return he.createElement(b.ZP,ke(De({},y),{loading:z,onClick:oe=>Ue(void 0,null,function*(){try{te(!0),yield y.onClick(oe),te(!1)}catch(se){console.error(se),te(!1)}})}),x)}},40888:function(it,jt,ae){"use strict";var b=ae(86204),he=ae.n(b),we=Object.defineProperty,Be=(Ke,Oe,De)=>Oe in Ke?we(Ke,Oe,{enumerable:!0,configurable:!0,writable:!0,value:De}):Ke[Oe]=De,Re=(Ke,Oe,De)=>Be(Ke,typeof Oe!="symbol"?Oe+"":Oe,De),We=(Ke,Oe,De)=>new Promise((ke,ze)=>{var Ue=a=>{try{E(De.next(a))}catch(x){ze(x)}},ue=a=>{try{E(De.throw(a))}catch(x){ze(x)}},E=a=>a.done?ke(a.value):Promise.resolve(a.value).then(Ue,ue);E((De=De.apply(Ke,Oe)).next())});class xe extends b.EventEmitter{constructor(Oe,De){super(),Re(this,"url"),Re(this,"body"),Re(this,"fullContent",""),Re(this,"controller",null),Re(this,"buffer",""),this.url=Oe,this.body=De}startStream(){return We(this,null,function*(){this.controller=new AbortController;const{signal:Oe}=this.controller;try{const De=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Oe});if(!De.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${De.status}`);const ke=De.headers.get("content-type");if(!ke)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(ke.includes("application/json")){const ue=yield De.json();this.emit("error",ue);return}if(!ke.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const ze=De.body.getReader(),Ue=new TextDecoder("utf-8");for(;;){const{done:ue,value:E}=yield ze.read();if(ue)break;const a=Ue.decode(E,{stream:!0});this.buffer+=a;const x=this.buffer.split(` `);this.buffer=x.pop()||"";for(const y of x)if(y.startsWith("data:")){const z=y.slice(5).trim();if(z==="[DONE]")break;try{const te=JSON.parse(z);te.data&&this.handleData(te.data)}catch(te){this.buffer=y+` -`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",te)}}}this.emit("done",this.fullContent)}catch(De){De.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",De.message)}})}handleData(Oe){Oe.content&&(this.fullContent+=Oe.content,this.emit("data",{chunk:Oe,full:this.fullContent}))}cancelRequest(){var Oe;(Oe=this.controller)==null||Oe.abort()}}jt.Z=Be},90973:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return At}});var b=ae(59301),he=ae(62052),we=ae(66328),xe=ae(84821),Re=ae(18369),We=ae(56102),Be={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ke=ae(8591),Oe=ae(11611),De=ae(19825),ke=ae(30084),ze=ae(10787),Ue=ae(10939),le=ae(43428),E=ae(95237),a=ae(43604),x={smartWrp:"smartWrp___NjRcB"},y=ae(58466),z=ae(2751),te=ae(47451),oe=ae(59301),ue=(En,Bn,Wt)=>new Promise((Pt,Te)=>{var et=Lt=>{try{xn(Wt.next(Lt))}catch(_t){Te(_t)}},Yt=Lt=>{try{xn(Wt.throw(Lt))}catch(_t){Te(_t)}},xn=Lt=>Lt.done?Pt(Lt.value):Promise.resolve(Lt.value).then(et,Yt);xn((Wt=Wt.apply(En,Bn)).next())});const ie=` +`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",te)}}}this.emit("done",this.fullContent)}catch(De){De.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",De.message)}})}handleData(Oe){Oe.content&&(this.fullContent+=Oe.content,this.emit("data",{chunk:Oe,full:this.fullContent}))}cancelRequest(){var Oe;(Oe=this.controller)==null||Oe.abort()}}jt.Z=xe},90973:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return At}});var b=ae(59301),he=ae(62052),we=ae(66328),Be=ae(84821),Re=ae(18369),We=ae(56102),xe={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ke=ae(8591),Oe=ae(11611),De=ae(19825),ke=ae(30084),ze=ae(10787),Ue=ae(10939),ue=ae(43428),E=ae(95237),a=ae(43604),x={smartWrp:"smartWrp___NjRcB"},y=ae(58466),z=ae(2751),te=ae(47451),oe=ae(59301),se=(En,xn,Wt)=>new Promise((Pt,Te)=>{var et=Lt=>{try{wn(Wt.next(Lt))}catch(_t){Te(_t)}},Yt=Lt=>{try{wn(Wt.throw(Lt))}catch(_t){Te(_t)}},wn=Lt=>Lt.done?Pt(Lt.value):Promise.resolve(Lt.value).then(et,Yt);wn((Wt=Wt.apply(En,xn)).next())});const ie=` @@ -136,35 +136,35 @@ initArrayDisplay(); <\/script> -`;function Ee({open:En=!0,onChange:Bn,defaultValue:Wt,placement:Pt,width:Te,height:et,extra:Yt,onDynamic:xn,showExtra:Lt=!0}){const _t=(0,b.useRef)(null),Ce=(0,b.useRef)(null),[ot,nn]=(0,b.useState)(Wt||""),[nt,ht]=(0,b.useState)(Wt||""),[Jn,dn]=(0,b.useState)(!!En),[Qt,Rt]=(0,b.useState)(1),Wn={selectOnLineNumbers:!0};(0,b.useEffect)(()=>{En&&(nn(Wt),ht(Wt),dn(!0))},[En,Wt]),(0,b.useEffect)(()=>{ot!==""&&(clearTimeout(Ce.current),Ce.current=setTimeout(()=>{const en=document.createElement("iframe");if(en.style.width="100%",en.style.height="100%",en.style.border="0",_t.current){_t.current.innerHTML="",_t.current.appendChild(en);const Ba=en.contentDocument||en.contentWindow.document;Ba.open(),Ba.write(ot),Ba.close()}},1e3))},[En,ot]);const ra=en=>{nn(en),Bn==null||Bn(en,nt)};return oe.createElement(le.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Jn,width:Lt?700:"100%",height:et||"100vh",rootClassName:x.smartWrp,destroyOnClose:!0,onClose:()=>dn(!1),extra:Lt&&oe.createElement("div",null,oe.createElement(z.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Qt,onChange:en=>Rt(en)}),oe.createElement(te.Z,{type:"primary",className:"ml20",onClick:()=>ue(this,null,function*(){yield xn(ot,()=>{dn(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},oe.createElement(E.Z,{className:"h100"},oe.createElement(a.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Qt===1?"block":"none"}},oe.createElement("div",{className:"h100",ref:_t})),oe.createElement(a.Z,{flex:"1",style:{display:Qt===2?"block":"none"}},oe.createElement(y.ZP,{height:"90vh",value:Wt,language:"html",theme:"vs",showMiniMap:!1,options:Wn,onChange:ra}))))}var Fe=Ee,Qe=Object.defineProperty,Le=Object.defineProperties,st=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,$e=(En,Bn,Wt)=>Bn in En?Qe(En,Bn,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):En[Bn]=Wt,be=(En,Bn)=>{for(var Wt in Bn||(Bn={}))Ye.call(Bn,Wt)&&$e(En,Wt,Bn[Wt]);if(Me)for(var Wt of Me(Bn))Ge.call(Bn,Wt)&&$e(En,Wt,Bn[Wt]);return En},vt=(En,Bn)=>Le(En,st(Bn)),ct=(En,Bn)=>{var Wt={};for(var Pt in En)Ye.call(En,Pt)&&Bn.indexOf(Pt)<0&&(Wt[Pt]=En[Pt]);if(En!=null&&Me)for(var Pt of Me(En))Bn.indexOf(Pt)<0&&Ge.call(En,Pt)&&(Wt[Pt]=En[Pt]);return Wt},At=({onFinish:En,value:Bn,streamingStatus:Wt,cancelIndex:Pt,loadImage:Te,onDynamic:et})=>{const[Yt,xn]=(0,b.useState)(""),[Lt,_t]=(0,b.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Ce,ot]=(0,b.useState)(0),[nn,nt]=(0,b.useState)(!1),ht=Qt=>Qt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Rt,Wn)=>`$$${Wn.trim()}$$`).replace(/\\\(([\s\S]*?)\\\)/g,'$$$$$1$$$$').replace(/\\\[([\s\S]*?)\\\]/g,'$$$$$1$$$$').replace(/_{2,}/g,"`$&`"),Jn=()=>{nt(!0),En==null||En()};(0,b.useEffect)(()=>{const Qt=Te?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A +`;function Ee({open:En=!0,onChange:xn,defaultValue:Wt,placement:Pt,width:Te,height:et,extra:Yt,onDynamic:wn,showExtra:Lt=!0}){const _t=(0,b.useRef)(null),Ce=(0,b.useRef)(null),[ot,an]=(0,b.useState)(Wt||""),[tt,ht]=(0,b.useState)(Wt||""),[Jn,dn]=(0,b.useState)(!!En),[Qt,kt]=(0,b.useState)(1),Wn={selectOnLineNumbers:!0};(0,b.useEffect)(()=>{En&&(an(Wt),ht(Wt),dn(!0))},[En,Wt]),(0,b.useEffect)(()=>{ot!==""&&(clearTimeout(Ce.current),Ce.current=setTimeout(()=>{const tn=document.createElement("iframe");if(tn.style.width="100%",tn.style.height="100%",tn.style.border="0",_t.current){_t.current.innerHTML="",_t.current.appendChild(tn);const Ba=tn.contentDocument||tn.contentWindow.document;Ba.open(),Ba.write(ot),Ba.close()}},1e3))},[En,ot]);const ra=tn=>{an(tn),xn==null||xn(tn,tt)};return oe.createElement(ue.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Jn,width:Lt?700:"100%",height:et||"100vh",rootClassName:x.smartWrp,destroyOnClose:!0,onClose:()=>dn(!1),extra:Lt&&oe.createElement("div",null,oe.createElement(z.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Qt,onChange:tn=>kt(tn)}),oe.createElement(te.Z,{type:"primary",className:"ml20",onClick:()=>se(this,null,function*(){yield wn(ot,()=>{dn(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},oe.createElement(E.Z,{className:"h100"},oe.createElement(a.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Qt===1?"block":"none"}},oe.createElement("div",{className:"h100",ref:_t})),oe.createElement(a.Z,{flex:"1",style:{display:Qt===2?"block":"none"}},oe.createElement(y.ZP,{height:"90vh",value:Wt,language:"html",theme:"vs",showMiniMap:!1,options:Wn,onChange:ra}))))}var Fe=Ee,Qe=Object.defineProperty,Le=Object.defineProperties,st=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,$e=(En,xn,Wt)=>xn in En?Qe(En,xn,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):En[xn]=Wt,be=(En,xn)=>{for(var Wt in xn||(xn={}))Ye.call(xn,Wt)&&$e(En,Wt,xn[Wt]);if(Me)for(var Wt of Me(xn))Ge.call(xn,Wt)&&$e(En,Wt,xn[Wt]);return En},vt=(En,xn)=>Le(En,st(xn)),ct=(En,xn)=>{var Wt={};for(var Pt in En)Ye.call(En,Pt)&&xn.indexOf(Pt)<0&&(Wt[Pt]=En[Pt]);if(En!=null&&Me)for(var Pt of Me(En))xn.indexOf(Pt)<0&&Ge.call(En,Pt)&&(Wt[Pt]=En[Pt]);return Wt},At=({onFinish:En,value:xn,streamingStatus:Wt,cancelIndex:Pt,loadImage:Te,onDynamic:et})=>{const[Yt,wn]=(0,b.useState)(""),[Lt,_t]=(0,b.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Ce,ot]=(0,b.useState)(0),[an,tt]=(0,b.useState)(!1),ht=Qt=>Qt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(kt,Wn)=>`$$${Wn.trim()}$$`).replace(/\\\(([\s\S]*?)\\\)/g,'$$$$$1$$$$').replace(/\\\[([\s\S]*?)\\\]/g,'$$$$$1$$$$').replace(/_{2,}/g,"`$&`"),Jn=()=>{tt(!0),En==null||En()};(0,b.useEffect)(()=>{const Qt=Te?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A -${Bn}`:Bn,Rt=ht(Qt);if(!nn)if(Te||!Wt||Pt>0){xn(Rt),ot(Rt.length),(!Wt||Pt>0)&&!Te&&Jn();return}else if((Rt==null?void 0:Rt.length)<4)xn(Rt),ot(Rt.length);else if(Ce{xn(Rt.slice(0,Ce+2)),ot(en=>en+2)},Wn>10?Math.max(500/(Wn/2),20):50);return()=>clearInterval(ra)}else Wt||Jn()},[Bn,Wt,Pt,Te,Ce]);const dn=(0,b.useMemo)(()=>b.createElement("section",{className:`${Be.answer} fadeIn animated edu_md`},b.createElement(he.UG,{remarkPlugins:[ke.Z,ze.Z],rehypePlugins:[De.Z,xe.Z],components:{code(Qt){var Rt=Qt,{node:Wn,inline:ra,className:en,children:Ba}=Rt,Ka=ct(Rt,["node","inline","className","children"]);const Fa=/language-(\w+)/.exec(en||""),jn=String(Ba).trim();return ra||!Fa?b.createElement("code",be({className:en},Ka),Ba):b.createElement("code",{className:Be.codeCopy,"data-text":`\`\`\`${Fa?Fa[1]:""} +${xn}`:xn,kt=ht(Qt);if(!an)if(Te||!Wt||Pt>0){wn(kt),ot(kt.length),(!Wt||Pt>0)&&!Te&&Jn();return}else if((kt==null?void 0:kt.length)<4)wn(kt),ot(kt.length);else if(Ce{wn(kt.slice(0,Ce+2)),ot(tn=>tn+2)},Wn>10?Math.max(500/(Wn/2),20):50);return()=>clearInterval(ra)}else Wt||Jn()},[xn,Wt,Pt,Te,Ce]);const dn=(0,b.useMemo)(()=>b.createElement("section",{className:`${xe.answer} fadeIn animated edu_md`},b.createElement(he.UG,{remarkPlugins:[ke.Z,ze.Z],rehypePlugins:[De.Z,Be.Z],components:{code(Qt){var kt=Qt,{node:Wn,inline:ra,className:tn,children:Ba}=kt,Ka=ct(kt,["node","inline","className","children"]);const Fa=/language-(\w+)/.exec(tn||""),jn=String(Ba).trim();return ra||!Fa?b.createElement("code",be({className:tn},Ka),Ba):b.createElement("code",{className:xe.codeCopy,"data-text":`\`\`\`${Fa?Fa[1]:""} ${Ba} -\`\`\``},b.createElement(We.CopyToClipboard,{text:jn,onCopy:()=>Ke.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},b.createElement("button",null,"\u590D\u5236")),Fa[1]==="html"&&nn&&b.createElement("button",{className:Be.runCode,onClick:()=>{_t(be({},vt(be({},Lt),{open:++Lt.open,defaultValue:jn,language:Fa[1]})))}},"\u8FD0\u884CHTML"),b.createElement(we.Z,be({wrapLongLines:!0,style:Re.Z,language:Fa[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},Ka),jn))},img({node:Qt}){var Rt;const Wn=(Rt=Qt.properties)==null?void 0:Rt.src;return b.createElement(Oe.Z,{src:Wn,width:320,"data-text":Wn,onLoad:()=>Te&&setTimeout(()=>Jn(),500)})}}},nn?Yt:`${Yt}__`)),[Yt]);return b.createElement(b.Fragment,null,b.createElement(Fe,{defaultValue:Lt.defaultValue,open:Lt.open,language:Lt.language,height:Lt.height,onChange:(Qt,Rt)=>{xn(Yt.replaceAll(Rt,Qt))},onDynamic:et}),dn)}},30268:function(it,jt,ae){"use strict";var b=ae(59301);const he=({scrollBoxRef:we,bottomInspectRef:xe,contentRef:Re,status:We,rootMargin:Be="70px",bottomOffset:Ke=110})=>{const[Oe,De]=(0,b.useState)(!0),ke=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{if(!we.current||!xe.current)return;const ze=new IntersectionObserver(([Ue])=>{var le,E,a,x;if(!document.contains(Ue.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((le=Ue.rootBounds)==null?void 0:le.width)===0&&((E=Ue.rootBounds)==null?void 0:E.height)===0){console.log("root\uFF08\u6EDA\u52A8\u5BB9\u5668\uFF09\u65E0\u6548\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664");return}if(((a=Ue.boundingClientRect)==null?void 0:a.width)===0&&((x=Ue.boundingClientRect)==null?void 0:x.height)===0){console.log("\u76EE\u6807\u5143\u7D20\u5BBD\u9AD8\u4E3A 0\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664\u6216 display: none");return}De(Ue.isIntersecting)},{root:we.current,rootMargin:Be,threshold:0});return ze.observe(xe.current),()=>{ze.disconnect()}},[we.current,xe.current,Be]),(0,b.useEffect)(()=>{if(!We)return;const ze=we.current,Ue=Re.current;ke.current=!1;let le=ze.scrollTop;const E=()=>{const{scrollTop:x,scrollHeight:y,clientHeight:z}=ze;x>le?x+z>=y-Ke&&(ze.scrollTop=ze.scrollHeight,ke.current=!1):x{ke.current||(ze.scrollTop=ze.scrollHeight)});return a.observe(Ue),()=>{setTimeout(()=>{a.unobserve(Ue)},250),ze.removeEventListener("scroll",E)}},[We]),Oe};jt.Z=he},3665:function(it,jt,ae){"use strict";var b=ae(59301);const he=({contentRef:we,status:xe})=>((0,b.useEffect)(()=>{!xe&&(we!=null&&we.current)&&we.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(Be=>{Be.tagName.toLowerCase()==="code"?Be.parentElement&&(Be.parentElement.contentEditable="false"):Be.tagName.toLowerCase()==="mathx"&&(Be.contentEditable="false")})},[xe]),(We=!1)=>{const Be=ke=>{const ze={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" ","©":"\xA9","®":"\xAE","€":"\u20AC"};return ke.replace(/&[^;]+;/g,Ue=>ze[Ue]||Ue)};if(!we.current)return"";const Ke=we.current.cloneNode(!0);Ke.querySelectorAll("code[data-text], mathx[data-text]").forEach(ke=>{let ze=ke.getAttribute("data-text");ke.tagName.toLowerCase()==="code"?ze=ze.replace(/```.*\n|\n```/g,""):ke.tagName.toLowerCase()==="mathx"&&(ze=`$$${ze}$$`);const Ue=document.createTextNode(ze);ke.parentNode.replaceChild(Ue,ke)}),We&&Ke.querySelectorAll('[data-select="disabled"]').forEach(ze=>{var Ue;const le=ze.textContent||"",E=document.createTextNode(le+` +\`\`\``},b.createElement(We.CopyToClipboard,{text:jn,onCopy:()=>Ke.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},b.createElement("button",null,"\u590D\u5236")),Fa[1]==="html"&&an&&b.createElement("button",{className:xe.runCode,onClick:()=>{_t(be({},vt(be({},Lt),{open:++Lt.open,defaultValue:jn,language:Fa[1]})))}},"\u8FD0\u884CHTML"),b.createElement(we.Z,be({wrapLongLines:!0,style:Re.Z,language:Fa[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},Ka),jn))},img({node:Qt}){var kt;const Wn=(kt=Qt.properties)==null?void 0:kt.src;return b.createElement(Oe.Z,{src:Wn,width:320,"data-text":Wn,onLoad:()=>Te&&setTimeout(()=>Jn(),500)})}}},an?Yt:`${Yt}__`)),[Yt]);return b.createElement(b.Fragment,null,b.createElement(Fe,{defaultValue:Lt.defaultValue,open:Lt.open,language:Lt.language,height:Lt.height,onChange:(Qt,kt)=>{wn(Yt.replaceAll(kt,Qt))},onDynamic:et}),dn)}},30268:function(it,jt,ae){"use strict";var b=ae(59301);const he=({scrollBoxRef:we,bottomInspectRef:Be,contentRef:Re,status:We,rootMargin:xe="70px",bottomOffset:Ke=110})=>{const[Oe,De]=(0,b.useState)(!0),ke=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{if(!we.current||!Be.current)return;const ze=new IntersectionObserver(([Ue])=>{var ue,E,a,x;if(!document.contains(Ue.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((ue=Ue.rootBounds)==null?void 0:ue.width)===0&&((E=Ue.rootBounds)==null?void 0:E.height)===0){console.log("root\uFF08\u6EDA\u52A8\u5BB9\u5668\uFF09\u65E0\u6548\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664");return}if(((a=Ue.boundingClientRect)==null?void 0:a.width)===0&&((x=Ue.boundingClientRect)==null?void 0:x.height)===0){console.log("\u76EE\u6807\u5143\u7D20\u5BBD\u9AD8\u4E3A 0\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664\u6216 display: none");return}De(Ue.isIntersecting)},{root:we.current,rootMargin:xe,threshold:0});return ze.observe(Be.current),()=>{ze.disconnect()}},[we.current,Be.current,xe]),(0,b.useEffect)(()=>{if(!We)return;const ze=we.current,Ue=Re.current;ke.current=!1;let ue=ze.scrollTop;const E=()=>{const{scrollTop:x,scrollHeight:y,clientHeight:z}=ze;x>ue?x+z>=y-Ke&&(ze.scrollTop=ze.scrollHeight,ke.current=!1):x{ke.current||(ze.scrollTop=ze.scrollHeight)});return a.observe(Ue),()=>{setTimeout(()=>{a.unobserve(Ue)},250),ze.removeEventListener("scroll",E)}},[We]),Oe};jt.Z=he},3665:function(it,jt,ae){"use strict";var b=ae(59301);const he=({contentRef:we,status:Be})=>((0,b.useEffect)(()=>{!Be&&(we!=null&&we.current)&&we.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(xe=>{xe.tagName.toLowerCase()==="code"?xe.parentElement&&(xe.parentElement.contentEditable="false"):xe.tagName.toLowerCase()==="mathx"&&(xe.contentEditable="false")})},[Be]),(We=!1)=>{const xe=ke=>{const ze={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" ","©":"\xA9","®":"\xAE","€":"\u20AC"};return ke.replace(/&[^;]+;/g,Ue=>ze[Ue]||Ue)};if(!we.current)return"";const Ke=we.current.cloneNode(!0);Ke.querySelectorAll("code[data-text], mathx[data-text]").forEach(ke=>{let ze=ke.getAttribute("data-text");ke.tagName.toLowerCase()==="code"?ze=ze.replace(/```.*\n|\n```/g,""):ke.tagName.toLowerCase()==="mathx"&&(ze=`$$${ze}$$`);const Ue=document.createTextNode(ze);ke.parentNode.replaceChild(Ue,ke)}),We&&Ke.querySelectorAll('[data-select="disabled"]').forEach(ze=>{var Ue;const ue=ze.textContent||"",E=document.createTextNode(ue+` `);(Ue=ze.parentNode)==null||Ue.replaceChild(E,ze)});let De=Ke.innerHTML;return We||(De=De.replace(/<[^>]*data-select="disabled"[^>]*>.*?<\/[^>]*>/g,"")),De=De.replace(/

/g,""),De=De.replace(/<\/p>/g,` `),De=De.replace(/
/g,` `),De=De.replace(/\r\n/g,` -`),De=De.replace(/<[^>]*>/g,""),De=Be(De),De});jt.Z=he},4479:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return ze}});var b=ae(59301),he=ae(43418),we=ae(95237),xe=ae(93948),Re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABYCAYAAAAORCLFAAAAAXNSR0IArs4c6QAAIABJREFUeF7lfQecXFXZ/nNumT6zvWeTTSWkEEJooUgRpSMooiLfxycqTcQGIvipAf1UsNFEUAQBQTpSDCgtIQVTSAgJ6ckm2ZJt2dnd6XPL+fuec8/sZAmSbAKBv/P73Z3ZmXvv3Ps+5+1lGD5kD855cHM8P85xtRqmG1a5H5sqQqz1Q3aZ+/xy2D4/4zBOyGfN0lZe9v0Tt/fj0vZenBAf0MozFgNjAOe2XR1jy8qC7s/OPdT/12Gc/iNxyH4HYlVrctrb3b5bN7Wzj3X1agDXYOgQILgccFwgk+OoKOOY1uT89nPPmldiFnM/EtTdg4vcr0C8uC59xbIt5k3bu/Sgz2Twm4BuAJom78B1AdsG8haQywMOc5BLDPzsD5eXX7cH9/iR2HW/AMFnQXvwEwM/e7vN913b9iMQAPw+wPQBuscNnIBwPCDyQDZHnAEsXtPHzzo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z7wiRuMn3/UuDQLpFz1ftgIIw1LXN7G7gk3tYbWT1e2H4yR33tH1NG7Nn9/ZrA0ScjB/8x9zCQijfIWHd5BWDS4t+6KpWC4FAoejl/NB+oFD0/9uWP5914uwmf3l0v5ZAxIn7nr/MdWSRv84vhA1eaO3PZ/Kbnv7cnN5fFwDMOP8vz4/Uk8nae+oAAAAASUVORK5CYII=",Ke={dotLoading:"dotLoading___s6Sh4",showHide:"showHide___Dfprh",progress:"progress___QUpqo"},Oe=ae(59301);const De=["\u6587\u4EF6\u89E3\u6790\u8BFB\u53D6\u4E2D","\u5185\u5BB9\u7406\u89E3\u5206\u6790\u4E2D","\u7ED3\u6784\u5316\u63D0\u53D6\u4E2D"];var ze=()=>{const[Ue,le]=(0,b.useState)(0),[E,a]=(0,b.useState)(!1),[x,y]=(0,b.useState)(!0),z=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(x)return;const Fe=()=>{le(Qe=>Qe>=99?(clearInterval(z.current),99):Qe+1)};return z.current=setInterval(Fe,5e4/99),()=>clearInterval(z.current)},[x]);const te=()=>{le(0),a(!0),y(!1)},oe=(Fe=0)=>{y(!0),le(Fe),a(!1)},ue=Fe=>{const Qe=Fe/1048576;let Le;return Qe<=.3?Le=3:Qe<=.5?Le=5:Qe<=1?Le=10:Qe<=2?Le=20:Qe<=3?Le=30:Qe<=10?Le=Qe*10:Le=100,` \u9884\u8BA1\u5904\u7406\u65F6\u957F\u4E3A${Le}\u5206\u949F\uFF0C\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3`},ie=()=>Oe.createElement("span",{className:Ke.dotLoading},Oe.createElement("span",null,"."),Oe.createElement("span",null,"."),Oe.createElement("span",null,"."));return{progress:Ue,progressOpen:E,openProgress:te,closeProgress:oe,toggleLock:()=>y(Fe=>!Fe),CreateProgressModal:(Fe=De,Qe)=>(typeof Fe=="string"&&(Fe=[Fe,Fe,Fe]),Oe.createElement(he.default,{centered:!0,closable:!1,destroyOnClose:!0,zIndex:1200,open:E,title:null,footer:null,width:500,afterClose:()=>le(0)},Oe.createElement(we.Z,{align:"middle",className:"mt40 mb20",style:{flexDirection:"column"}},Ue<=30&&Oe.createElement(Oe.Fragment,null,Oe.createElement("img",{src:Re,alt:"Step 1"}),Oe.createElement("div",{className:"mt20 c-light-primary"},Fe[0],ie())),Ue>30&&Ue<60&&Oe.createElement(Oe.Fragment,null,Oe.createElement("img",{src:We,alt:"Step 2"}),Oe.createElement("div",{className:"mt20 c-light-primary"},Fe[1],ie())),Ue>=60&&Oe.createElement(Oe.Fragment,null,Oe.createElement("img",{src:Be,alt:"Step 3"}),Oe.createElement("div",{className:"mt20 c-light-primary"},Fe[2],ie())),Oe.createElement(xe.Z,{className:Ke.progress,status:"active",style:{width:"auto"},size:[300,8],percent:Ue}),!!Qe&&Oe.createElement("div",{className:"c-grey-999"},ue(Qe)))))}}},48977:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Bn}});var b=ae(59301),he=ae(38854),we=ae(8591),xe=ae(6848),Re=ae(92832),We=ae(3113),Be=ae(90973),Ke={wrap:"wrap___AasCO",chatContainer:"chatContainer___n6e3E",btnContainer:"btnContainer___yKyVB",btn:"btn___Y_09T",inputContainer:"inputContainer____bM3M",sendBtn:"sendBtn___UHHLj",sendBtnDisabled:"sendBtnDisabled___AoSRc",cancelBtn:"cancelBtn___yql4C",loadingWrp:"loadingWrp___gYLGT","dot-fade":"dot-fade___LruoO"},De=({position:Wt,children:Pt})=>{const{left:Te=0,top:et=0}=Wt||{},[Yt,xn]=(0,b.useState)(Te),[Lt,_t]=(0,b.useState)(et),Ce=(0,b.useRef)(null),ot=()=>{if(Ce.current){const nn=Ce.current.offsetWidth,nt=Ce.current.offsetHeight,ht=window.innerWidth,Jn=window.innerHeight;let dn=Te,Qt=et;Te+nn>ht&&(dn=ht-nn),dn<0&&(dn=0),et+nt>Jn&&(Qt=Jn-nt),Qt<0&&(Qt=0),xn(dn),_t(Qt)}};return(0,b.useEffect)(()=>{if(!Ce.current||!Wt)return;const nn=new ResizeObserver(()=>{ot()});return nn.observe(Ce.current),()=>{nn.disconnect()}},[Te,et,Wt]),(0,b.useEffect)(()=>{Wt&&ot()},[Te,et,Wt]),Wt?b.createElement("div",{ref:Ce,style:{position:"fixed",left:`${Yt}px`,top:`${Lt}px`,zIndex:1050}},Pt):null},ke=ae(11662),ze=ae(56102),Ue=ae(40888),le=Object.defineProperty,E=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(Wt,Pt,Te)=>Pt in Wt?le(Wt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Wt[Pt]=Te,oe=(Wt,Pt)=>{for(var Te in Pt||(Pt={}))y.call(Pt,Te)&&te(Wt,Te,Pt[Te]);if(x)for(var Te of x(Pt))z.call(Pt,Te)&&te(Wt,Te,Pt[Te]);return Wt},ue=(Wt,Pt)=>E(Wt,a(Pt)),ie=(Wt,Pt,Te)=>new Promise((et,Yt)=>{var xn=Ce=>{try{_t(Te.next(Ce))}catch(ot){Yt(ot)}},Lt=Ce=>{try{_t(Te.throw(Ce))}catch(ot){Yt(ot)}},_t=Ce=>Ce.done?et(Ce.value):Promise.resolve(Ce.value).then(xn,Lt);_t((Te=Te.apply(Wt,Pt)).next())}),Fe=({visible:Wt,position:Pt,selectText:Te,applyRefinedText:et,fetchUrl:Yt,noRestrictModal:xn})=>{var Lt;const[_t,Ce]=(0,b.useState)(!1),[ot,nn]=(0,b.useState)([]),[nt,ht]=(0,b.useState)(""),[Jn,dn]=(0,b.useState)(1),[Qt,Rt]=(0,b.useState)(""),[Wn,ra]=(0,b.useState)(!1),en=(0,b.useRef)(null),[Ba,Ka]=(0,b.useState)(!1),[Fa,jn]=(0,b.useState)(0),Ha=(0,b.useRef)(!1),Pa=((Lt=ot==null?void 0:ot[(ot==null?void 0:ot.length)-1])==null?void 0:Lt.loading)===!0;(0,b.useEffect)(()=>{if(Wt){dn(1);return}Ka(!1),Ce(!1),fr(),jn(0),nn([]),dn(0)},[Wt]);const fr=()=>{var Da,Ta;ht(""),Rt(""),(Ta=(Da=en.current)==null?void 0:Da.cancelRequest)==null||Ta.call(Da)},oa=(...Da)=>ie(void 0,[...Da],function*(Ta="",Br=ot){const ar=Date.now(),Or=[...Br,{text:Ta,key:ar,sender:"user",show:!0},{loading:!0,key:ar,sender:"AI",show:!0}];dn(2),nn(Or);const Oo=da(Br),Ut={no_record_times:!0,prompt:Ta,history:Oo};en.current=new Ue.Z(ke.Z.API_SERVER+Yt,Ut),yield new Promise(Un=>{en.current.on("data",$n=>{const{chunk:{msg:ba},full:Ze}=$n,Ot=ba==="error";Ka(!0),Rt(rn(Ze)),nn(Xt=>Xt.map((fn,Mt)=>Mt===Xt.length-1?ue(oe({},fn),{text:Ze,loading:!1,error:Ot}):fn))}),en.current.on("done",()=>Un()),en.current.on("error",$n=>{const ba="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Object.prototype.toString.call($n)==="[object Object]"&&$n.status===-9&&(dn(1),xn($n.data)),nn(Ze=>Ze.map((Ot,Xt)=>Xt===Ze.length-1?ue(oe({},Ot),{text:ba,loading:!1,error:!0}):Ot)),Un()}),en.current.on("cancelled",()=>Un()),en.current.startStream()}),Ce(!1)}),Zn=Da=>{ht(Da.target.value)},da=Da=>Da.reduce((Br,ar)=>{if(ar.sender==="user"){const Or=Da.find(Oo=>Oo.key===ar.key&&Oo.sender==="AI");Or&&(Or!=null&&Or.text)&&!(Or!=null&&Or.error)&&Br.push({question:ar.text,answer:Or.text})}return Br},[]),Aa=()=>{if(Wa)return;const Da=St("\u6539\u5199");fr(),Ce(!0),oa(Da)},xa=Da=>{if(Da.key==="Enter"&&!Da.shiftKey){if(Da.preventDefault(),Ha.current||Ca)return;Aa()}},_a=()=>{var Da,Ta;jn(Br=>Br+1),(Ta=(Da=en.current)==null?void 0:Da.cancelRequest)==null||Ta.call(Da),Ce(!1),Ka(!1)},Sn=[{key:"1",label:b.createElement("span",null," ",b.createElement("i",{className:"iconfont icon-runse font14 mr10"}),"\u6DA6\u8272 ")},{key:"2",label:b.createElement("span",null,b.createElement("i",{className:"iconfont icon-kuoxie font14 mr10"}),"\u6269\u5199")},{key:"3",label:b.createElement("span",null," ",b.createElement("i",{className:"iconfont icon-suoxie font14 mr10"}),"\u7F29\u5199")}],rn=(Da="")=>{const Ta=["\u7B54\u6848\uFF1A","\u96BE\u5EA6\uFF1A","\u89E3\u6790\uFF1A","\u77E5\u8BC6\u70B9\uFF1A","\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09","\u7F16\u7A0B\u8BED\u8A00\uFF1A","\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A","\u7A0B\u5E8F\u4EE3\u7801\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"];return Array.from({length:20}).forEach((Br,ar)=>{Ta.push(`\u7B54\u6848${ar+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${ar+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${ar+1})\u8F93\u51FA\uFF1A`)}),Ta.forEach(Br=>{const ar=new RegExp(Br,"g");Da=Da.replace(ar,`**${Br}** `)}),Da},St=Da=>Da==="\u6539\u5199"?`${nt}\uFF0C\u6839\u636E\u4E0A\u8FF0\u8981\u6C42\u6539\u5199\u8FD9\u53E5\u8BDD\uFF0C${Te}\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`:`${Te}\uFF0C${Da}\u4E0A\u9762\u8FD9\u53E5\u8BDD\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`,kt=Da=>{let Ta="";Da.key==="1"&&(Ta=St("\u6DA6\u8272")),Da.key==="2"&&(Ta=St("\u6269\u5199")),Da.key==="3"&&(Ta=St("\u7F29\u5199")),fr(),Ce(!0),oa(Ta)},ja=()=>{const Da=ot.splice(ot.length-2),{text:Ta}=(Da==null?void 0:Da[0])||{};fr(),Ce(!0),oa(Ta,ot)},Ca=_t||Ba,Wa=(nt==null?void 0:nt.trim())==="";return Wt?b.createElement(he.Z,{open:Wa&&!Ca&&(Wn||!Qt),overlayStyle:{minWidth:200},menu:{items:Sn,onClick:kt}},b.createElement(De,{position:Pt},b.createElement("div",{className:Ke.wrap},Jn===2&&b.createElement(b.Fragment,null,b.createElement("div",{className:Ke.chatContainer},Pa&&b.createElement("div",{className:Ke.loadingWrp},b.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),b.createElement("div",{className:"ai-loading"})),Qt&&b.createElement(Be.Z,{cancelIndex:Fa,streamingStatus:_t,loadImage:!1,onFinish:()=>ie(void 0,null,function*(){jn(0),setTimeout(()=>Ka(!1),0)}),value:Qt})),b.createElement("div",{className:Ke.btnContainer},b.createElement("div",{onClick:()=>et(!0,Qt),className:Ke.btn,style:{padding:"0 16px",width:"initial"}},b.createElement("i",{className:"iconfont icon-tihuan mr10 font14"}),"\u66FF\u6362"),b.createElement("div",{onClick:()=>et(!1,Qt),className:Ke.btn,style:{padding:"0 16px",width:"initial"}},b.createElement("i",{className:"iconfont icon-charu mr10 font14"}),"\u63D2\u5165"),b.createElement(ze.CopyToClipboard,{text:Qt,onCopy:()=>we.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},b.createElement(xe.Z,{title:"\u590D\u5236"},b.createElement("div",{className:Ke.btn,style:{marginLeft:"auto"}},b.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),b.createElement(xe.Z,{title:"\u91CD\u65B0\u751F\u6210"},b.createElement("div",{onClick:ja,className:Ke.btn},b.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),b.createElement(xe.Z,{title:"\u5220\u9664"},b.createElement("div",{onClick:()=>{dn(1),fr(),nn([])},className:Ke.btn},b.createElement("i",{className:"iconfont icon-shanchu14 font14"}))))),b.createElement("div",{className:Ke.inputContainer},b.createElement(Re.default.TextArea,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u6587\u672C\u4F18\u5316\u5EFA\u8BAE",value:nt,bordered:!1,onFocus:()=>ra(!0),onBlur:()=>setTimeout(()=>ra(!1),300),onChange:Zn,onPressEnter:xa,onCompositionStart:()=>Ha.current=!0,onCompositionEnd:()=>Ha.current=!1}),Ba?b.createElement("div",{className:`iconfont icon-tingzhihuida ${Ke.cancelBtn}`,onClick:_a}):b.createElement(We.ZP,{className:Wa?Ke.sendBtnDisabled:Ke.sendBtn,icon:b.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Ca,onClick:Aa}))))):b.createElement(b.Fragment,null)},Qe={"hover-line-container":"hover-line-container___kkYQN","hover-line-content":"hover-line-content___ZkD9e","line-button-container":"line-button-container___A79j9",button:"button___X_Iu7"},Le=Object.defineProperty,st=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ge=(Wt,Pt,Te)=>Pt in Wt?Le(Wt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Wt[Pt]=Te,$e=(Wt,Pt)=>{for(var Te in Pt||(Pt={}))Me.call(Pt,Te)&&Ge(Wt,Te,Pt[Te]);if(st)for(var Te of st(Pt))Ye.call(Pt,Te)&&Ge(Wt,Te,Pt[Te]);return Wt};const be=Wt=>React.createElement("svg",$e({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Wt),React.createElement("title",null,"AI\u6539\u5199"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"26.797%",y1:"22.073%",x2:"82.181%",y2:"80.474%",id:"rewrite_svg__a"},React.createElement("stop",{stopColor:"#5C64FF",offset:"0%"}),React.createElement("stop",{stopColor:"#6988F8",offset:"100%"}))),React.createElement("path",{d:"m10.406 4.741.007.015h-.007v-.022.007Zm-.04-.04.855-1.495 1.497-.855-1.496-.855L10.366 0l-.854 1.497-1.497.855 1.496.854.855 1.495ZM3.1 8.442l1.71 3.1 1.603-3.1 3.1-1.71L6.52 5.023l-1.71-3.1-1.71 3.1L0 6.733l3.099 1.709H3.1Zm6.84 3.1 1.069 1.924 1.068-1.924L14 10.473l-1.924-1.069-1.069-1.923L9.94 9.405l-1.924 1.068 1.924 1.07v-.001Z",fill:"url(#rewrite_svg__a)",fillRule:"nonzero"}));var vt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Ft=(0,b.forwardRef)(({initialContent:Wt,onButtonClick:Pt},Te)=>{const[et,Yt]=(0,b.useState)(null),[xn,Lt]=(0,b.useState)(null),[_t,Ce]=(0,b.useState)(""),[ot,nn]=(0,b.useState)(null),nt=Te,ht=en=>{const Ba=document.elementFromPoint(10,en),Ka=document.createRange();let Fa=null;const jn=document.createTreeWalker(nt.current,NodeFilter.SHOW_TEXT,{acceptNode:Aa=>{const xa=document.createRange();xa.selectNodeContents(Aa);const _a=xa.getBoundingClientRect();return _a.top<=en&&_a.bottom>=en?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let Ha="",Pa,fr,oa=null,Zn=null,da=null;for(;Pa=jn.nextNode();){Pa.parentNode.getAttribute("data-select")==="disabled"&&(fr=!0),Ha+=Pa.textContent,Zn||(Zn=Pa),da=Pa;const Aa=document.createRange();Aa.selectNodeContents(Pa);const xa=Aa.getBoundingClientRect();oa===null&&(oa=xa.top)}if(Zn&&da&&!fr){const Aa=document.createRange();Aa.setStart(Zn,0),Aa.setEnd(da,da.textContent.length),nn(Aa)}else nn(null);return Lt(oa-1),fr?"":Ha.trim()};function Jn(en){for(;en.parentElement&&en.parentElement.tagName.toLowerCase()!=="section";){var Ba=window.getComputedStyle(en.parentElement);if(Ba.pointerEvents==="none")return!0;en=en.parentElement}return!1}const dn=en=>{var Ba,Ka;if(Jn(en.target)){Lt(-1e6);return}if(((Ka=(Ba=document.getSelection())==null?void 0:Ba.toString)==null?void 0:Ka.call(Ba))!==""){Lt(-1e6);return}const Fa=ht(en.clientY);if((Fa==null?void 0:Fa.trim())===""){Lt(-1e6);return}const jn=nt.current.getBoundingClientRect();Yt(jn.left-30),Ce(Fa)},Qt=()=>{},Rt=en=>{Pt&&_t&&Pt(_t,en.clientX,en.clientY,ot)},Wn=()=>{if(ot){const en=window.getSelection();en.removeAllRanges(),en.addRange(ot)}},ra=()=>{window.getSelection().removeAllRanges()};return(0,b.useEffect)(()=>{const en=nt.current;return en.addEventListener("mousemove",dn),en.addEventListener("mouseleave",Qt),()=>{en.removeEventListener("mousemove",dn),en.removeEventListener("mouseleave",Qt),ra()}},[Wt]),b.createElement("div",{className:Qe["hover-line-container2"]},xn!==null&&b.createElement("div",{className:Qe["line-button-container"],style:{top:xn,left:et},onMouseEnter:()=>{Wn()},onMouseLeave:()=>{ra(),Lt(null),Ce(""),nn(null)}},b.createElement("div",{className:Qe.button,onClick:Rt},b.createElement("img",{src:vt}),b.createElement("span",null,"AI\u6539\u5199"))))}),At={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},Bn=({nodeRef:Wt,noRestrictModal:Pt})=>{const[Te,et]=(0,b.useState)(null),[Yt,xn]=(0,b.useState)(null),[Lt,_t]=(0,b.useState)(!1),[Ce,ot]=(0,b.useState)(null),[nn,nt]=(0,b.useState)(!1),[ht,Jn]=(0,b.useState)(!1),dn=Wt,Qt=(0,b.useRef)(null),Rt=(0,b.useRef)(null),[Wn,ra]=(0,b.useState)("");(0,b.useEffect)(()=>{Te!=null&&Te.toString()&&ra(Te==null?void 0:Te.toString())},[Te==null?void 0:Te.toString()]);const en=()=>{const jn=window.getSelection(),Ha=dn.current.scrollTop,Pa=dn.current.getBoundingClientRect();if(jn.rangeCount>0&&jn.toString().length>0){const fr=jn.getRangeAt(0);et(fr.cloneRange());const oa=fr.getBoundingClientRect(),Zn=40;let da=oa.top+Ha-5+Zn;da{if(!jn||jn.rangeCount===0){nt(!1);return}const Pa=jn.getRangeAt(0).getBoundingClientRect(),fr=window.getComputedStyle(dn.current),oa=parseInt(fr.lineHeight),Zn=parseInt(fr.paddingTop),da=dn.current.scrollTop,Aa=dn.current.getBoundingClientRect(),xa=Pa.top-Aa.top+da,_a=Math.floor((xa-Zn)/oa),Sn=Zn+_a*oa-da;ot(Sn),nt(!0)},Ka=jn=>{dn.current&&!dn.current.contains(jn.target)&&Jn(!1)};(0,b.useEffect)(()=>{const jn=dn.current;return jn.addEventListener("scroll",en),jn.addEventListener("input",en),jn.addEventListener("click",en),jn.addEventListener("mouseup",en),jn.addEventListener("keyup",en),jn.addEventListener("click",en),document.addEventListener("mousedown",Ka),()=>{jn.removeEventListener("scroll",en),jn.removeEventListener("input",en),jn.removeEventListener("click",en),jn.removeEventListener("mouseup",en),jn.removeEventListener("keyup",en),jn.removeEventListener("click",en),document.removeEventListener("mousedown",Ka)}},[]);const Fa=(jn=!0,Ha)=>{if(!Te)return;const Pa=Rt.current.querySelector("section.edu_md").innerHTML.replace(/]*>([\s\S]*?)<\/p>/g,"$1"),fr=Te.cloneRange(),oa=window.getSelection();if(oa.removeAllRanges(),oa.addRange(fr),jn){fr.deleteContents();const Zn=document.createElement("div");Zn.innerHTML=Pa;const da=Array.from(Zn.childNodes);for(;da.length>0;)fr.insertNode(da.pop())}else{fr.collapse(!1);const Zn=document.createElement("div");Zn.innerHTML=" "+Pa;const da=Array.from(Zn.childNodes);for(;da.length>0;)fr.insertNode(da.pop())}oa.removeAllRanges(),et(null),_t(!1),xn(null)};return b.createElement("section",{ref:Rt},Yt&&b.createElement("div",{ref:Qt,className:At.toolbar,style:{top:Yt==null?void 0:Yt.top,left:Yt==null?void 0:Yt.left}},b.createElement("div",{className:At.button,onClick:()=>_t(!0)},b.createElement("img",{src:vt}),b.createElement("span",null,"AI\u6539\u5199"))),b.createElement(Fe,{key:JSON.stringify(Yt),noRestrictModal:Pt,visible:Lt,position:Yt,selectText:Wn,applyRefinedText:Fa,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),dn.current&&b.createElement(Ft,{ref:dn,onButtonClick:(jn,Ha,Pa,fr)=>{et(fr),_t(!0),ra(jn),xn({left:Ha,top:Pa+20})}}))}},39459:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Re}});var b=ae(59301),he=ae(43418),we={num:"num___VQiqB"},Re=({visible:We,usedCount:Be,totalCount:Ke,onOk:Oe,onCancel:De})=>{const ke=()=>Be>0?b.createElement("div",null,"\u672C\u6B21\u5C06\u6D88\u80171\u6B21\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\uFF08\u6BCF\u65E5",Ke,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",b.createElement("span",{className:we.num},Be),"\u6B21\uFF09\uFF0C\u786E\u5B9A\u64CD\u4F5C\u5417\uFF1F"):b.createElement("div",{className:"mb20"},"\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5",Ke,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",b.createElement("span",{className:we.num},Be),"\u6B21\uFF09\u3002");return b.createElement(he.default,{centered:!0,open:We,title:"\u63D0\u793A",width:620,zIndex:1100,onCancel:De,onOk:Oe,footer:Be>0?void 0:null},ke())}},97277:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return a},Q:function(){return le}});var b=ae(59301),he={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},we=ae(40888),xe=ae(11662),Re=ae(90973),We=ae(48977),Be=ae(30268),Ke=ae(22810),Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAADGlJREFUeF7tnVlQHMcZx7/umT0AcSjGBonDOmxdgV2Ww0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}catch(Qe){oe(Qe)}},Ee=Fe=>Fe.done?te(Fe.value):Promise.resolve(Fe.value).then(ue,ie);Ee((z=z.apply(x,y)).next())});const le={contentRef:{current:null},value:null,status:!1,open:()=>Ue(void 0,null,function*(){}),close:()=>{}};var a=({className:x,style:y,onChange:z,onSuccess:te,onCancel:oe,onError:ue,fetchUrl:ie,noRestrictModal:Ee=()=>{},showEditableToolbar:Fe,bottomOffset:Qe=110,loadingText:Le,showEmptyData:st=!0,onStatusChange:Me,stringTransformer:Ye,bottomContainerNode:Ge})=>{const[$e,be]=(0,b.useState)(!1),[vt,ct]=(0,b.useState)(""),[Ft,At]=(0,b.useState)(0),[En,Bn]=(0,b.useState)(!1),Wt=(0,b.useRef)(null),Pt=(0,b.useRef)(null),Te=(0,b.useRef)(null),et=(0,b.useRef)(null),Yt=(0,Be.Z)({scrollBoxRef:et,bottomInspectRef:Te,contentRef:Pt,status:En,bottomOffset:Qe}),xn=$e||En;(0,b.useEffect)(()=>{z==null||z(vt)},[vt]),(0,b.useEffect)(()=>{Me==null||Me({contentRef:Pt,status:xn,value:vt,open:Lt,close:_t})},[xn,vt]);const Lt=ot=>Ue(void 0,null,function*(){be(!0),ct(""),At(0);const nn=ie;ot!=null&&ot.fetchUrl&&delete ot.fetchUrl,Wt.current=new we.Z(`${xe.Z.API_SERVER}${nn}`,ot),yield new Promise((nt,ht)=>{Wt.current.on("data",Jn=>{let{chunk:{content:dn,type:Qt}}=Jn;Bn(!0),Qt==="text"&&ct(Rt=>Ye?Ye(Rt+dn):Rt+dn)}),Wt.current.on("done",()=>{nt()}),Wt.current.on("error",Jn=>{Object.prototype.toString.call(Jn)==="[object Object]"&&Jn.status===-1&&ze.ZP.warning((Jn==null?void 0:Jn.message)||""),nt(),ue==null||ue(Jn)}),Wt.current.on("cancelled",()=>{nt(),oe==null||oe()}),Wt.current.startStream()}),be(!1)}),_t=()=>{var ot,nn;At(1),(nn=(ot=Wt.current)==null?void 0:ot.cancelRequest)==null||nn.call(ot),be(!1),Bn(!1)},Ce=(0,b.useMemo)(()=>Pt.current?b.createElement(We.Z,{noRestrictModal:Ee,nodeRef:Pt}):b.createElement(b.Fragment,null),[Pt.current]);return b.createElement(b.Fragment,null,b.createElement("div",{className:ke()(he.container,x),style:y,ref:et},b.createElement("div",{ref:Pt,className:he.liWrap,contentEditable:!xn},vt&&b.createElement(Re.Z,{cancelIndex:Ft,streamingStatus:$e,loadImage:!1,onFinish:()=>Ue(void 0,null,function*(){At(0),setTimeout(()=>Bn(!1),0),te==null||te(vt)}),value:vt})),!vt&&!xn&&b.createElement("div",{className:he.imgBox},b.createElement("img",{width:56,src:Oe}),b.createElement("span",null,"\u9884\u89C8\u533A")),st&&xn&&b.createElement(Ke.Z,{text:Le}),!Yt&&b.createElement("div",{className:he.backBottom,onClick:()=>{et.current.scrollTop=et.current.scrollHeight}},b.createElement("i",{className:"iconfont icon-huidaodibu"})),b.createElement("div",{ref:Te}),Ge),!xn&&Fe&&Ce)}},22810:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return xe}});var b=ae(59301),he={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},xe=({text:Re})=>b.createElement("div",null,b.createElement("div",{className:he.loading},b.createElement("div",{className:he.dot}),b.createElement("div",{className:he.dot}),b.createElement("div",{className:he.dot})),!!Re&&b.createElement("div",{className:"mt5"},Re))},4879:function(it,jt,ae){"use strict";ae.d(jt,{o:function(){return b}});const b=he=>(he=he.replace(new RegExp("(?$1'),he=he.replace(new RegExp("(?]*>/g,""),De=xe(De),De});jt.Z=he},4479:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return ze}});var b=ae(59301),he=ae(43418),we=ae(95237),Be=ae(93948),Re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABYCAYAAAAORCLFAAAAAXNSR0IArs4c6QAAIABJREFUeF7lfQecXFXZ/nNumT6zvWeTTSWkEEJooUgRpSMooiLfxycqTcQGIvipAf1UsNFEUA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kIL+3lo2YY+HFyUsp7EM69d/+XROG1BGGic508Kav7Ev5FCctp8+rx0Aox8cPNf2VAxAf9Z49k5yNw3g7bualQDK7wfemy7puFk2TplgYL89psNDZEoLCyKVoVY3gvLqpKCcBcrD+Uw2PPDCEzxpQ99TjXTX4Y/H7XXy14+fUG4NWe/6wAIj7oT/8gu8CXzo1SOjcXPf9yL5Au83IpvsjeLY22AqWpkeFtoatbuTBjArBMo8wF2LhpBK8cyGrrTDgjYeB/+pXt+/4aT14bdZ56taR6fY8/64CI3+5//mZuoXTstwewbvK94DI/IKdE1pctMavJxrzZDurrLGV5DY4E2H+4gF2dY8jmQ139KsVj+Xzx9v1fWtD1+pLy33b2sxqI+K3d+U250Pdz7wiRuMn3/UuDQLpFz1ftgIIw1LXN7G7gk3tYbWT1e2H4yR33tH1NG7Nn9/ZrA0ScjB/8x9zCQijfIWHd5BWDS4t+6KpWC4FAoejl/NB+oFD0/9uWP5914uwmf3l0v5ZAxIn7nr/MdWSRv84vhA1eaO3PZ/Kbnv7cnN5fFwDMOP8vz4/Uk8nae+oAAAAASUVORK5CYII=",Ke={dotLoading:"dotLoading___s6Sh4",showHide:"showHide___Dfprh",progress:"progress___QUpqo"},Oe=ae(59301);const De=["\u6587\u4EF6\u89E3\u6790\u8BFB\u53D6\u4E2D","\u5185\u5BB9\u7406\u89E3\u5206\u6790\u4E2D","\u7ED3\u6784\u5316\u63D0\u53D6\u4E2D"];var ze=()=>{const[Ue,ue]=(0,b.useState)(0),[E,a]=(0,b.useState)(!1),[x,y]=(0,b.useState)(!0),z=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(x)return;const Fe=()=>{ue(Qe=>Qe>=99?(clearInterval(z.current),99):Qe+1)};return z.current=setInterval(Fe,5e4/99),()=>clearInterval(z.current)},[x]);const te=()=>{ue(0),a(!0),y(!1)},oe=(Fe=0)=>{y(!0),ue(Fe),a(!1)},se=Fe=>{const Qe=Fe/1048576;let Le;return Qe<=.3?Le=3:Qe<=.5?Le=5:Qe<=1?Le=10:Qe<=2?Le=20:Qe<=3?Le=30:Qe<=10?Le=Qe*10:Le=100,` \u9884\u8BA1\u5904\u7406\u65F6\u957F\u4E3A${Le}\u5206\u949F\uFF0C\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3`},ie=()=>Oe.createElement("span",{className:Ke.dotLoading},Oe.createElement("span",null,"."),Oe.createElement("span",null,"."),Oe.createElement("span",null,"."));return{progress:Ue,progressOpen:E,openProgress:te,closeProgress:oe,toggleLock:()=>y(Fe=>!Fe),CreateProgressModal:(Fe=De,Qe)=>(typeof Fe=="string"&&(Fe=[Fe,Fe,Fe]),Oe.createElement(he.default,{centered:!0,closable:!1,destroyOnClose:!0,zIndex:1200,open:E,title:null,footer:null,width:500,afterClose:()=>ue(0)},Oe.createElement(we.Z,{align:"middle",className:"mt40 mb20",style:{flexDirection:"column"}},Ue<=30&&Oe.createElement(Oe.Fragment,null,Oe.createElement("img",{src:Re,alt:"Step 1"}),Oe.createElement("div",{className:"mt20 c-light-primary"},Fe[0],ie())),Ue>30&&Ue<60&&Oe.createElement(Oe.Fragment,null,Oe.createElement("img",{src:We,alt:"Step 2"}),Oe.createElement("div",{className:"mt20 c-light-primary"},Fe[1],ie())),Ue>=60&&Oe.createElement(Oe.Fragment,null,Oe.createElement("img",{src:xe,alt:"Step 3"}),Oe.createElement("div",{className:"mt20 c-light-primary"},Fe[2],ie())),Oe.createElement(Be.Z,{className:Ke.progress,status:"active",style:{width:"auto"},size:[300,8],percent:Ue}),!!Qe&&Oe.createElement("div",{className:"c-grey-999"},se(Qe)))))}}},48977:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return xn}});var b=ae(59301),he=ae(38854),we=ae(8591),Be=ae(6848),Re=ae(92832),We=ae(3113),xe=ae(90973),Ke={wrap:"wrap___AasCO",chatContainer:"chatContainer___n6e3E",btnContainer:"btnContainer___yKyVB",btn:"btn___Y_09T",inputContainer:"inputContainer____bM3M",sendBtn:"sendBtn___UHHLj",sendBtnDisabled:"sendBtnDisabled___AoSRc",cancelBtn:"cancelBtn___yql4C",loadingWrp:"loadingWrp___gYLGT","dot-fade":"dot-fade___LruoO"},De=({position:Wt,children:Pt})=>{const{left:Te=0,top:et=0}=Wt||{},[Yt,wn]=(0,b.useState)(Te),[Lt,_t]=(0,b.useState)(et),Ce=(0,b.useRef)(null),ot=()=>{if(Ce.current){const an=Ce.current.offsetWidth,tt=Ce.current.offsetHeight,ht=window.innerWidth,Jn=window.innerHeight;let dn=Te,Qt=et;Te+an>ht&&(dn=ht-an),dn<0&&(dn=0),et+tt>Jn&&(Qt=Jn-tt),Qt<0&&(Qt=0),wn(dn),_t(Qt)}};return(0,b.useEffect)(()=>{if(!Ce.current||!Wt)return;const an=new ResizeObserver(()=>{ot()});return an.observe(Ce.current),()=>{an.disconnect()}},[Te,et,Wt]),(0,b.useEffect)(()=>{Wt&&ot()},[Te,et,Wt]),Wt?b.createElement("div",{ref:Ce,style:{position:"fixed",left:`${Yt}px`,top:`${Lt}px`,zIndex:1050}},Pt):null},ke=ae(11662),ze=ae(56102),Ue=ae(40888),ue=Object.defineProperty,E=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(Wt,Pt,Te)=>Pt in Wt?ue(Wt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Wt[Pt]=Te,oe=(Wt,Pt)=>{for(var Te in Pt||(Pt={}))y.call(Pt,Te)&&te(Wt,Te,Pt[Te]);if(x)for(var Te of x(Pt))z.call(Pt,Te)&&te(Wt,Te,Pt[Te]);return Wt},se=(Wt,Pt)=>E(Wt,a(Pt)),ie=(Wt,Pt,Te)=>new Promise((et,Yt)=>{var wn=Ce=>{try{_t(Te.next(Ce))}catch(ot){Yt(ot)}},Lt=Ce=>{try{_t(Te.throw(Ce))}catch(ot){Yt(ot)}},_t=Ce=>Ce.done?et(Ce.value):Promise.resolve(Ce.value).then(wn,Lt);_t((Te=Te.apply(Wt,Pt)).next())}),Fe=({visible:Wt,position:Pt,selectText:Te,applyRefinedText:et,fetchUrl:Yt,noRestrictModal:wn})=>{var Lt;const[_t,Ce]=(0,b.useState)(!1),[ot,an]=(0,b.useState)([]),[tt,ht]=(0,b.useState)(""),[Jn,dn]=(0,b.useState)(1),[Qt,kt]=(0,b.useState)(""),[Wn,ra]=(0,b.useState)(!1),tn=(0,b.useRef)(null),[Ba,Ka]=(0,b.useState)(!1),[Fa,jn]=(0,b.useState)(0),Ha=(0,b.useRef)(!1),Pa=((Lt=ot==null?void 0:ot[(ot==null?void 0:ot.length)-1])==null?void 0:Lt.loading)===!0;(0,b.useEffect)(()=>{if(Wt){dn(1);return}Ka(!1),Ce(!1),fr(),jn(0),an([]),dn(0)},[Wt]);const fr=()=>{var Da,Ta;ht(""),kt(""),(Ta=(Da=tn.current)==null?void 0:Da.cancelRequest)==null||Ta.call(Da)},oa=(...Da)=>ie(void 0,[...Da],function*(Ta="",Br=ot){const ar=Date.now(),Or=[...Br,{text:Ta,key:ar,sender:"user",show:!0},{loading:!0,key:ar,sender:"AI",show:!0}];dn(2),an(Or);const Oo=da(Br),Ut={no_record_times:!0,prompt:Ta,history:Oo};tn.current=new Ue.Z(ke.Z.API_SERVER+Yt,Ut),yield new Promise(Un=>{tn.current.on("data",$n=>{const{chunk:{msg:ba},full:Ze}=$n,Mt=ba==="error";Ka(!0),kt(on(Ze)),an(Xt=>Xt.map((fn,Rt)=>Rt===Xt.length-1?se(oe({},fn),{text:Ze,loading:!1,error:Mt}):fn))}),tn.current.on("done",()=>Un()),tn.current.on("error",$n=>{const ba="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Object.prototype.toString.call($n)==="[object Object]"&&$n.status===-9&&(dn(1),wn($n.data)),an(Ze=>Ze.map((Mt,Xt)=>Xt===Ze.length-1?se(oe({},Mt),{text:ba,loading:!1,error:!0}):Mt)),Un()}),tn.current.on("cancelled",()=>Un()),tn.current.startStream()}),Ce(!1)}),Zn=Da=>{ht(Da.target.value)},da=Da=>Da.reduce((Br,ar)=>{if(ar.sender==="user"){const Or=Da.find(Oo=>Oo.key===ar.key&&Oo.sender==="AI");Or&&(Or!=null&&Or.text)&&!(Or!=null&&Or.error)&&Br.push({question:ar.text,answer:Or.text})}return Br},[]),Aa=()=>{if(Wa)return;const Da=St("\u6539\u5199");fr(),Ce(!0),oa(Da)},xa=Da=>{if(Da.key==="Enter"&&!Da.shiftKey){if(Da.preventDefault(),Ha.current||Ca)return;Aa()}},_a=()=>{var Da,Ta;jn(Br=>Br+1),(Ta=(Da=tn.current)==null?void 0:Da.cancelRequest)==null||Ta.call(Da),Ce(!1),Ka(!1)},Sn=[{key:"1",label:b.createElement("span",null," ",b.createElement("i",{className:"iconfont icon-runse font14 mr10"}),"\u6DA6\u8272 ")},{key:"2",label:b.createElement("span",null,b.createElement("i",{className:"iconfont icon-kuoxie font14 mr10"}),"\u6269\u5199")},{key:"3",label:b.createElement("span",null," ",b.createElement("i",{className:"iconfont icon-suoxie font14 mr10"}),"\u7F29\u5199")}],on=(Da="")=>{const Ta=["\u7B54\u6848\uFF1A","\u96BE\u5EA6\uFF1A","\u89E3\u6790\uFF1A","\u77E5\u8BC6\u70B9\uFF1A","\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09","\u7F16\u7A0B\u8BED\u8A00\uFF1A","\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A","\u7A0B\u5E8F\u4EE3\u7801\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"];return Array.from({length:20}).forEach((Br,ar)=>{Ta.push(`\u7B54\u6848${ar+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${ar+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${ar+1})\u8F93\u51FA\uFF1A`)}),Ta.forEach(Br=>{const ar=new RegExp(Br,"g");Da=Da.replace(ar,`**${Br}** `)}),Da},St=Da=>Da==="\u6539\u5199"?`${tt}\uFF0C\u6839\u636E\u4E0A\u8FF0\u8981\u6C42\u6539\u5199\u8FD9\u53E5\u8BDD\uFF0C${Te}\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`:`${Te}\uFF0C${Da}\u4E0A\u9762\u8FD9\u53E5\u8BDD\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`,Tt=Da=>{let Ta="";Da.key==="1"&&(Ta=St("\u6DA6\u8272")),Da.key==="2"&&(Ta=St("\u6269\u5199")),Da.key==="3"&&(Ta=St("\u7F29\u5199")),fr(),Ce(!0),oa(Ta)},ja=()=>{const Da=ot.splice(ot.length-2),{text:Ta}=(Da==null?void 0:Da[0])||{};fr(),Ce(!0),oa(Ta,ot)},Ca=_t||Ba,Wa=(tt==null?void 0:tt.trim())==="";return Wt?b.createElement(he.Z,{open:Wa&&!Ca&&(Wn||!Qt),overlayStyle:{minWidth:200},menu:{items:Sn,onClick:Tt}},b.createElement(De,{position:Pt},b.createElement("div",{className:Ke.wrap},Jn===2&&b.createElement(b.Fragment,null,b.createElement("div",{className:Ke.chatContainer},Pa&&b.createElement("div",{className:Ke.loadingWrp},b.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),b.createElement("div",{className:"ai-loading"})),Qt&&b.createElement(xe.Z,{cancelIndex:Fa,streamingStatus:_t,loadImage:!1,onFinish:()=>ie(void 0,null,function*(){jn(0),setTimeout(()=>Ka(!1),0)}),value:Qt})),b.createElement("div",{className:Ke.btnContainer},b.createElement("div",{onClick:()=>et(!0,Qt),className:Ke.btn,style:{padding:"0 16px",width:"initial"}},b.createElement("i",{className:"iconfont icon-tihuan mr10 font14"}),"\u66FF\u6362"),b.createElement("div",{onClick:()=>et(!1,Qt),className:Ke.btn,style:{padding:"0 16px",width:"initial"}},b.createElement("i",{className:"iconfont icon-charu mr10 font14"}),"\u63D2\u5165"),b.createElement(ze.CopyToClipboard,{text:Qt,onCopy:()=>we.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},b.createElement(Be.Z,{title:"\u590D\u5236"},b.createElement("div",{className:Ke.btn,style:{marginLeft:"auto"}},b.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),b.createElement(Be.Z,{title:"\u91CD\u65B0\u751F\u6210"},b.createElement("div",{onClick:ja,className:Ke.btn},b.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),b.createElement(Be.Z,{title:"\u5220\u9664"},b.createElement("div",{onClick:()=>{dn(1),fr(),an([])},className:Ke.btn},b.createElement("i",{className:"iconfont icon-shanchu14 font14"}))))),b.createElement("div",{className:Ke.inputContainer},b.createElement(Re.default.TextArea,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u6587\u672C\u4F18\u5316\u5EFA\u8BAE",value:tt,bordered:!1,onFocus:()=>ra(!0),onBlur:()=>setTimeout(()=>ra(!1),300),onChange:Zn,onPressEnter:xa,onCompositionStart:()=>Ha.current=!0,onCompositionEnd:()=>Ha.current=!1}),Ba?b.createElement("div",{className:`iconfont icon-tingzhihuida ${Ke.cancelBtn}`,onClick:_a}):b.createElement(We.ZP,{className:Wa?Ke.sendBtnDisabled:Ke.sendBtn,icon:b.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Ca,onClick:Aa}))))):b.createElement(b.Fragment,null)},Qe={"hover-line-container":"hover-line-container___kkYQN","hover-line-content":"hover-line-content___ZkD9e","line-button-container":"line-button-container___A79j9",button:"button___X_Iu7"},Le=Object.defineProperty,st=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ge=(Wt,Pt,Te)=>Pt in Wt?Le(Wt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Wt[Pt]=Te,$e=(Wt,Pt)=>{for(var Te in Pt||(Pt={}))Me.call(Pt,Te)&&Ge(Wt,Te,Pt[Te]);if(st)for(var Te of st(Pt))Ye.call(Pt,Te)&&Ge(Wt,Te,Pt[Te]);return Wt};const be=Wt=>React.createElement("svg",$e({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Wt),React.createElement("title",null,"AI\u6539\u5199"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"26.797%",y1:"22.073%",x2:"82.181%",y2:"80.474%",id:"rewrite_svg__a"},React.createElement("stop",{stopColor:"#5C64FF",offset:"0%"}),React.createElement("stop",{stopColor:"#6988F8",offset:"100%"}))),React.createElement("path",{d:"m10.406 4.741.007.015h-.007v-.022.007Zm-.04-.04.855-1.495 1.497-.855-1.496-.855L10.366 0l-.854 1.497-1.497.855 1.496.854.855 1.495ZM3.1 8.442l1.71 3.1 1.603-3.1 3.1-1.71L6.52 5.023l-1.71-3.1-1.71 3.1L0 6.733l3.099 1.709H3.1Zm6.84 3.1 1.069 1.924 1.068-1.924L14 10.473l-1.924-1.069-1.069-1.923L9.94 9.405l-1.924 1.068 1.924 1.07v-.001Z",fill:"url(#rewrite_svg__a)",fillRule:"nonzero"}));var vt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",bt=(0,b.forwardRef)(({initialContent:Wt,onButtonClick:Pt},Te)=>{const[et,Yt]=(0,b.useState)(null),[wn,Lt]=(0,b.useState)(null),[_t,Ce]=(0,b.useState)(""),[ot,an]=(0,b.useState)(null),tt=Te,ht=tn=>{const Ba=document.elementFromPoint(10,tn),Ka=document.createRange();let Fa=null;const jn=document.createTreeWalker(tt.current,NodeFilter.SHOW_TEXT,{acceptNode:Aa=>{const xa=document.createRange();xa.selectNodeContents(Aa);const _a=xa.getBoundingClientRect();return _a.top<=tn&&_a.bottom>=tn?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let Ha="",Pa,fr,oa=null,Zn=null,da=null;for(;Pa=jn.nextNode();){Pa.parentNode.getAttribute("data-select")==="disabled"&&(fr=!0),Ha+=Pa.textContent,Zn||(Zn=Pa),da=Pa;const Aa=document.createRange();Aa.selectNodeContents(Pa);const xa=Aa.getBoundingClientRect();oa===null&&(oa=xa.top)}if(Zn&&da&&!fr){const Aa=document.createRange();Aa.setStart(Zn,0),Aa.setEnd(da,da.textContent.length),an(Aa)}else an(null);return Lt(oa-1),fr?"":Ha.trim()};function Jn(tn){for(;tn.parentElement&&tn.parentElement.tagName.toLowerCase()!=="section";){var Ba=window.getComputedStyle(tn.parentElement);if(Ba.pointerEvents==="none")return!0;tn=tn.parentElement}return!1}const dn=tn=>{var Ba,Ka;if(Jn(tn.target)){Lt(-1e6);return}if(((Ka=(Ba=document.getSelection())==null?void 0:Ba.toString)==null?void 0:Ka.call(Ba))!==""){Lt(-1e6);return}const Fa=ht(tn.clientY);if((Fa==null?void 0:Fa.trim())===""){Lt(-1e6);return}const jn=tt.current.getBoundingClientRect();Yt(jn.left-30),Ce(Fa)},Qt=()=>{},kt=tn=>{Pt&&_t&&Pt(_t,tn.clientX,tn.clientY,ot)},Wn=()=>{if(ot){const tn=window.getSelection();tn.removeAllRanges(),tn.addRange(ot)}},ra=()=>{window.getSelection().removeAllRanges()};return(0,b.useEffect)(()=>{const tn=tt.current;return tn.addEventListener("mousemove",dn),tn.addEventListener("mouseleave",Qt),()=>{tn.removeEventListener("mousemove",dn),tn.removeEventListener("mouseleave",Qt),ra()}},[Wt]),b.createElement("div",{className:Qe["hover-line-container2"]},wn!==null&&b.createElement("div",{className:Qe["line-button-container"],style:{top:wn,left:et},onMouseEnter:()=>{Wn()},onMouseLeave:()=>{ra(),Lt(null),Ce(""),an(null)}},b.createElement("div",{className:Qe.button,onClick:kt},b.createElement("img",{src:vt}),b.createElement("span",null,"AI\u6539\u5199"))))}),At={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},xn=({nodeRef:Wt,noRestrictModal:Pt})=>{const[Te,et]=(0,b.useState)(null),[Yt,wn]=(0,b.useState)(null),[Lt,_t]=(0,b.useState)(!1),[Ce,ot]=(0,b.useState)(null),[an,tt]=(0,b.useState)(!1),[ht,Jn]=(0,b.useState)(!1),dn=Wt,Qt=(0,b.useRef)(null),kt=(0,b.useRef)(null),[Wn,ra]=(0,b.useState)("");(0,b.useEffect)(()=>{Te!=null&&Te.toString()&&ra(Te==null?void 0:Te.toString())},[Te==null?void 0:Te.toString()]);const tn=()=>{const jn=window.getSelection(),Ha=dn.current.scrollTop,Pa=dn.current.getBoundingClientRect();if(jn.rangeCount>0&&jn.toString().length>0){const fr=jn.getRangeAt(0);et(fr.cloneRange());const oa=fr.getBoundingClientRect(),Zn=40;let da=oa.top+Ha-5+Zn;da{if(!jn||jn.rangeCount===0){tt(!1);return}const Pa=jn.getRangeAt(0).getBoundingClientRect(),fr=window.getComputedStyle(dn.current),oa=parseInt(fr.lineHeight),Zn=parseInt(fr.paddingTop),da=dn.current.scrollTop,Aa=dn.current.getBoundingClientRect(),xa=Pa.top-Aa.top+da,_a=Math.floor((xa-Zn)/oa),Sn=Zn+_a*oa-da;ot(Sn),tt(!0)},Ka=jn=>{dn.current&&!dn.current.contains(jn.target)&&Jn(!1)};(0,b.useEffect)(()=>{const jn=dn.current;return jn.addEventListener("scroll",tn),jn.addEventListener("input",tn),jn.addEventListener("click",tn),jn.addEventListener("mouseup",tn),jn.addEventListener("keyup",tn),jn.addEventListener("click",tn),document.addEventListener("mousedown",Ka),()=>{jn.removeEventListener("scroll",tn),jn.removeEventListener("input",tn),jn.removeEventListener("click",tn),jn.removeEventListener("mouseup",tn),jn.removeEventListener("keyup",tn),jn.removeEventListener("click",tn),document.removeEventListener("mousedown",Ka)}},[]);const Fa=(jn=!0,Ha)=>{if(!Te)return;const Pa=kt.current.querySelector("section.edu_md").innerHTML.replace(/]*>([\s\S]*?)<\/p>/g,"$1"),fr=Te.cloneRange(),oa=window.getSelection();if(oa.removeAllRanges(),oa.addRange(fr),jn){fr.deleteContents();const Zn=document.createElement("div");Zn.innerHTML=Pa;const da=Array.from(Zn.childNodes);for(;da.length>0;)fr.insertNode(da.pop())}else{fr.collapse(!1);const Zn=document.createElement("div");Zn.innerHTML=" "+Pa;const da=Array.from(Zn.childNodes);for(;da.length>0;)fr.insertNode(da.pop())}oa.removeAllRanges(),et(null),_t(!1),wn(null)};return b.createElement("section",{ref:kt},Yt&&b.createElement("div",{ref:Qt,className:At.toolbar,style:{top:Yt==null?void 0:Yt.top,left:Yt==null?void 0:Yt.left}},b.createElement("div",{className:At.button,onClick:()=>_t(!0)},b.createElement("img",{src:vt}),b.createElement("span",null,"AI\u6539\u5199"))),b.createElement(Fe,{key:JSON.stringify(Yt),noRestrictModal:Pt,visible:Lt,position:Yt,selectText:Wn,applyRefinedText:Fa,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),dn.current&&b.createElement(bt,{ref:dn,onButtonClick:(jn,Ha,Pa,fr)=>{et(fr),_t(!0),ra(jn),wn({left:Ha,top:Pa+20})}}))}},39459:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Re}});var b=ae(59301),he=ae(43418),we={num:"num___VQiqB"},Re=({visible:We,usedCount:xe,totalCount:Ke,onOk:Oe,onCancel:De})=>{const ke=()=>xe>0?b.createElement("div",null,"\u672C\u6B21\u5C06\u6D88\u80171\u6B21\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\uFF08\u6BCF\u65E5",Ke,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",b.createElement("span",{className:we.num},xe),"\u6B21\uFF09\uFF0C\u786E\u5B9A\u64CD\u4F5C\u5417\uFF1F"):b.createElement("div",{className:"mb20"},"\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5",Ke,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",b.createElement("span",{className:we.num},xe),"\u6B21\uFF09\u3002");return b.createElement(he.default,{centered:!0,open:We,title:"\u63D0\u793A",width:620,zIndex:1100,onCancel:De,onOk:Oe,footer:xe>0?void 0:null},ke())}},97277:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return a},Q:function(){return ue}});var b=ae(59301),he={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},we=ae(40888),Be=ae(11662),Re=ae(90973),We=ae(48977),xe=ae(30268),Ke=ae(22810),Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAADGlJREFUeF7tnVlQHMcZx7/umT0AcSjGBonDOmxdgV2Ww0iWIsmxrfIhJ1VJ2W+uilgEjqtclTwmLxQvyYur8uCKYmFQXMmbXUlV4lw+YsmHkBECdhdkSZZlyUJgScEWh7h2d7pTvcUuw2hhp3dm2dmleWPn66+/+f+me7p7vplGkOQfpRTVt56vgJCyARAtpAg5knS1JosRhBQMdMpJbddPd+68jhCiyQiBkil0sO2qc2J4yoMQLU6mvCizVAFCyLdFlUX9p9o3z/Fqww2Qtbxa7+BuAY9X6pXtGcSBEzVneFsiN8C6lqFKqihuc8MX3pgCTrAFurt2fc2jBj/AI/5GiuGBaCVIgtv2vOnAmd89OstT8Vq33fPL7pzgdJ6LKotaAoLx/k73Jzza8ANs8h1SD1gcBdMfCHg8ki/aMojzk3lPRH9hAxtfp+tfPN64AdZ6/c+pK+jvcr/DU6GwXaqAUT0FwDRfUQJgmgEYrV4ANKpgmssLgGkGYLR6AdCogmkuLwCmGYDR6gVAowqmubwAmGYARqsXAI0qmObyAmCaARitXgA0qmCaywuAaQZgtHoB0KiCaS4vAKYZgNHqBUCjCqa5vACYZgBGqxcAjSqY5vKmARR5nmkmmaD65fJII0/kRZ6nteFpo1PnkSKR55lZ8KLRxvJIRZ5nZgJkUbM8UlSnyfPcXpkLPz1QBPm5mXti2Rj51A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+AruNymDH80RSHPKcTVLmbITM27E0k8zD2FRCFACTvfFxllsOopQr9fYeq7rJ6S5mzg2wrsl3SD0SEx891y99PIgU0MRAl+tj/V6WWvIDPOJvVH9WQ2w7wCe9FiLTr6/D3cPnZdGaH2DLUCVVFHeyFWZKuVQmBrP36MPzZBtCNFiG7w8Yef2bG+BCptVudapcpkDhiTOVAHniSGTLDTA6IZ4YnvJkM8SsBsggRl5pbj1fASFlQ6IlpkRXkRWPZwrA/wPlJnpuyspBOgAAAABJRU5ErkJggg==",De=ae(92310),ke=ae.n(De),ze=ae(8591),Ue=(x,y,z)=>new Promise((te,oe)=>{var se=Fe=>{try{Ee(z.next(Fe))}catch(Qe){oe(Qe)}},ie=Fe=>{try{Ee(z.throw(Fe))}catch(Qe){oe(Qe)}},Ee=Fe=>Fe.done?te(Fe.value):Promise.resolve(Fe.value).then(se,ie);Ee((z=z.apply(x,y)).next())});const ue={contentRef:{current:null},value:null,status:!1,open:()=>Ue(void 0,null,function*(){}),close:()=>{}};var a=({className:x,style:y,onChange:z,onSuccess:te,onCancel:oe,onError:se,fetchUrl:ie,noRestrictModal:Ee=()=>{},showEditableToolbar:Fe,bottomOffset:Qe=110,loadingText:Le,showEmptyData:st=!0,onStatusChange:Me,stringTransformer:Ye,bottomContainerNode:Ge})=>{const[$e,be]=(0,b.useState)(!1),[vt,ct]=(0,b.useState)(""),[bt,At]=(0,b.useState)(0),[En,xn]=(0,b.useState)(!1),Wt=(0,b.useRef)(null),Pt=(0,b.useRef)(null),Te=(0,b.useRef)(null),et=(0,b.useRef)(null),Yt=(0,xe.Z)({scrollBoxRef:et,bottomInspectRef:Te,contentRef:Pt,status:En,bottomOffset:Qe}),wn=$e||En;(0,b.useEffect)(()=>{z==null||z(vt)},[vt]),(0,b.useEffect)(()=>{Me==null||Me({contentRef:Pt,status:wn,value:vt,open:Lt,close:_t})},[wn,vt]);const Lt=ot=>Ue(void 0,null,function*(){be(!0),ct(""),At(0);const an=ie;ot!=null&&ot.fetchUrl&&delete ot.fetchUrl,Wt.current=new we.Z(`${Be.Z.API_SERVER}${an}`,ot),yield new Promise((tt,ht)=>{Wt.current.on("data",Jn=>{let{chunk:{content:dn,type:Qt}}=Jn;xn(!0),Qt==="text"&&ct(kt=>Ye?Ye(kt+dn):kt+dn)}),Wt.current.on("done",()=>{tt()}),Wt.current.on("error",Jn=>{Object.prototype.toString.call(Jn)==="[object Object]"&&Jn.status===-1&&ze.ZP.warning((Jn==null?void 0:Jn.message)||""),tt(),se==null||se(Jn)}),Wt.current.on("cancelled",()=>{tt(),oe==null||oe()}),Wt.current.startStream()}),be(!1)}),_t=()=>{var ot,an;At(1),(an=(ot=Wt.current)==null?void 0:ot.cancelRequest)==null||an.call(ot),be(!1),xn(!1)},Ce=(0,b.useMemo)(()=>Pt.current?b.createElement(We.Z,{noRestrictModal:Ee,nodeRef:Pt}):b.createElement(b.Fragment,null),[Pt.current]);return b.createElement(b.Fragment,null,b.createElement("div",{className:ke()(he.container,x),style:y,ref:et},b.createElement("div",{ref:Pt,className:he.liWrap,contentEditable:!wn},vt&&b.createElement(Re.Z,{cancelIndex:bt,streamingStatus:$e,loadImage:!1,onFinish:()=>Ue(void 0,null,function*(){At(0),setTimeout(()=>xn(!1),0),te==null||te(vt)}),value:vt})),!vt&&!wn&&b.createElement("div",{className:he.imgBox},b.createElement("img",{width:56,src:Oe}),b.createElement("span",null,"\u9884\u89C8\u533A")),st&&wn&&b.createElement(Ke.Z,{text:Le}),!Yt&&b.createElement("div",{className:he.backBottom,onClick:()=>{et.current.scrollTop=et.current.scrollHeight}},b.createElement("i",{className:"iconfont icon-huidaodibu"})),b.createElement("div",{ref:Te}),Ge),!wn&&Fe&&Ce)}},22810:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Be}});var b=ae(59301),he={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},Be=({text:Re})=>b.createElement("div",null,b.createElement("div",{className:he.loading},b.createElement("div",{className:he.dot}),b.createElement("div",{className:he.dot}),b.createElement("div",{className:he.dot})),!!Re&&b.createElement("div",{className:"mt5"},Re))},4879:function(it,jt,ae){"use strict";ae.d(jt,{o:function(){return b}});const b=he=>(he=he.replace(new RegExp("(?$1'),he=he.replace(new RegExp("(?$1 -`),he)},26573:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return x}});var b=ae(59301),he=ae(17574),we=ae(40427),xe={flex_box_center:"flex_box_center___SFmJH",flex_space_between:"flex_space_between___f2H1D",flex_box_vertical_center:"flex_box_vertical_center___hW_hp",flex_box_center_end:"flex_box_center_end___yklmJ",flex_box_column:"flex_box_column___m0oUw",customTree:"customTree___ZhEHU",name:"name___RIkn2"},Re=Object.defineProperty,We=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,ke=(y,z,te)=>z in y?Re(y,z,{enumerable:!0,configurable:!0,writable:!0,value:te}):y[z]=te,ze=(y,z)=>{for(var te in z||(z={}))Oe.call(z,te)&&ke(y,te,z[te]);if(Ke)for(var te of Ke(z))De.call(z,te)&&ke(y,te,z[te]);return y},Ue=(y,z)=>We(y,Be(z)),le=(y,z)=>{var te={};for(var oe in y)Oe.call(y,oe)&&z.indexOf(oe)<0&&(te[oe]=y[oe]);if(y!=null&&Ke)for(var oe of Ke(y))z.indexOf(oe)<0&&De.call(y,oe)&&(te[oe]=y[oe]);return te},E=(y,z,te)=>new Promise((oe,ue)=>{var ie=Qe=>{try{Fe(te.next(Qe))}catch(Le){ue(Le)}},Ee=Qe=>{try{Fe(te.throw(Qe))}catch(Le){ue(Le)}},Fe=Qe=>Qe.done?oe(Qe.value):Promise.resolve(Qe.value).then(ie,Ee);Fe((te=te.apply(y,z)).next())}),x=y=>{var z=y,{value:te,onChange:oe,defaultValue:ue,disabled:ie}=z,Ee=le(z,["value","onChange","defaultValue","disabled"]);const[Fe,Qe]=(0,b.useState)([]),[Le,st]=(0,b.useState)("1");(0,b.useEffect)(()=>{Me()},[]);const Me=()=>E(void 0,null,function*(){const $e=yield(0,we.NZ)({});if($e!=null&&$e.data){const be=[{title:b.createElement("div",{title:"\u6839\u76EE\u5F55",className:xe.name},"\u6839\u76EE\u5F55"),value:0,key:0,icon:b.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:Ye($e.data||[])}];Qe(be),st("2")}}),Ye=$e=>{function be(vt){const ct=vt.children,Ft=Array.isArray(ct)&&ct.length>0,At=vt==null?void 0:vt.group_id;return{title:b.createElement("div",{title:vt==null?void 0:vt.name,className:xe.name},vt==null?void 0:vt.name),value:At,key:At,icon:b.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:Ft?ct==null?void 0:ct.map(En=>be(En)):[]}}return $e==null?void 0:$e.map(vt=>be(vt))},Ge=ue?{defaultExpandedKeys:[0],defaultSelectedKeys:[0]}:{selectedKeys:te,defaultExpandedKeys:te};return b.createElement("div",{className:xe.customTree},b.createElement(he.default,ze(Ue(ze({key:Le},Ge),{showIcon:!0,treeData:Fe,onSelect:oe,disabled:ie}),Ee)))}},81232:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return xe}});var b=ae(59301),he={digitalLabel:"digitalLabel___tImKs",active:"active___Ck70Q"},xe=({number:Re,active:We,className:Be})=>b.createElement("div",{className:`${he.digitalLabel} ${We?he.active:""} ${Be}`},Re)},81399:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return y}});var b=ae(59301),he=ae(17574),we={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},xe=ae(73631),Re=ae(5623),We=ae(40427),Be=Object.defineProperty,Ke=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Ue=(z,te,oe)=>te in z?Be(z,te,{enumerable:!0,configurable:!0,writable:!0,value:oe}):z[te]=oe,le=(z,te)=>{for(var oe in te||(te={}))ke.call(te,oe)&&Ue(z,oe,te[oe]);if(De)for(var oe of De(te))ze.call(te,oe)&&Ue(z,oe,te[oe]);return z},E=(z,te)=>Ke(z,Oe(te)),a=(z,te,oe)=>new Promise((ue,ie)=>{var Ee=Le=>{try{Qe(oe.next(Le))}catch(st){ie(st)}},Fe=Le=>{try{Qe(oe.throw(Le))}catch(st){ie(st)}},Qe=Le=>Le.done?ue(Le.value):Promise.resolve(Le.value).then(Ee,Fe);Qe((oe=oe.apply(z,te)).next())}),y=({value:z,onChange:te,scrollId:oe})=>{const[ue,ie]=(0,b.useState)([]);(0,b.useEffect)(()=>{Ee()},[]);const Ee=()=>a(void 0,null,function*(){const Ye=yield(0,We.NZ)({});if(Ye!=null&&Ye.data){const Ge=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:b.createElement("img",{src:xe,className:we.folderIcon}),isLeaf:!1,children:Fe(Ye.data||[])}];ie(Ge)}}),Fe=Ye=>Ye.map(Ge=>({title:Ge.name,key:Ge.group_id,icon:b.createElement("img",{src:xe,className:we.folderIcon}),isLeaf:Ge.children.length===0,children:Fe(Ge.children)})),Qe=(Ye,Ge,$e)=>Ye.map(be=>be.key===Ge?le(le({},be),$e):be.children?E(le({},be),{children:Qe(be.children,Ge,$e)}):be),Le=(Ye,Ge,$e)=>Ye.map(be=>{if(be.key===Ge)return E(le({},be),{icon:$e?b.createElement("img",{src:Re,className:we.folderIcon}):b.createElement("img",{src:xe,className:we.folderIcon})});if(be.children)return E(le({},be),{children:Le(be.children,Ge,$e)})}),st=(Ye,Ge)=>{ie($e=>Le($e,Ge.node.key,Ge.expanded))},Me=z?{selectedKeys:z,defaultExpandedKeys:z}:{};return ue.length>0&&b.createElement("div",{id:oe||""},b.createElement(he.default,le({showLine:{showLeafIcon:!1},showIcon:!0,treeData:ue,className:we.folderWrapper,onSelect:te,onExpand:st},Me)))}},51529:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return We}});var b=ae(60324),he={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},we=ae(32637),xe=ae(59301),We=({type:Be,style:Ke})=>{const Oe=xe.createElement("div",{className:he.wrap,onClick:De=>{De.preventDefault(),De.stopPropagation()}},xe.createElement("p",null,Be==="shixun"||Be==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",xe.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",Be==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),xe.createElement("div",{className:he.contact},xe.createElement("div",{className:he.img},xe.createElement("img",{src:we,width:"124px",height:"124px"})),xe.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return xe.createElement(b.Z,{content:Oe},xe.createElement("span",{className:he.text,style:Ke},"\u9AD8\u6D88\u8017"))}},2781:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return ke}});var b=ae(59301),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},we=ae(92310),xe=ae.n(we),Re=ae(71418),We=ae(2859),Be=ae(64866),Ke=ae(22566),Oe=(ze,Ue,le)=>new Promise((E,a)=>{var x=te=>{try{z(le.next(te))}catch(oe){a(oe)}},y=te=>{try{z(le.throw(te))}catch(oe){a(oe)}},z=te=>te.done?E(te.value):Promise.resolve(te.value).then(x,y);z((le=le.apply(ze,Ue)).next())}),ke=({data:ze,className:Ue,fullWidth:le,style:E={},onClose:a,onOk:x,showFullTools:y,noAssociationId:z})=>{const te=(0,b.useRef)(null),oe=(0,b.useRef)(null),ue=(0,b.useRef)(null),ie=(0,b.useRef)(null),[Ee,Fe]=(0,b.useState)(!1),[Qe,Le]=(0,b.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,b.useEffect)(()=>{ue.current||(ue.current=document.createElement("style"),document.head.appendChild(ue.current)),ze!=null&&ze.visible?(document.body.setAttribute("data-custom","y-hidden"),ue.current.innerHTML=" html { overflow-y: hidden; }",ze!=null&&ze.src&&st()):(document.body.removeAttribute("data-custom"),ue.current&&(document.head.removeChild(ue.current),ue.current=null))},[ze==null?void 0:ze.visible]);const st=()=>Oe(void 0,null,function*(){Fe(!0),Le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const be=yield(0,Ke.ZJ)(ze==null?void 0:ze.src);te.current.src="",te.current.src=be,te.current.onload=function(){$e()},Fe(!1),Le("")}),Me=()=>{document.body.removeAttribute("data-custom"),ue.current.innerHTML=" ",a()},Ye=be=>Oe(void 0,null,function*(){Fe(!0),Le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const vt=yield(0,Be.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ze.title,file:be.dataUrl}});vt!=null&&vt.id&&!z?(yield(0,Be.ZP)(`/api/attachments/${ze.id}/add_subitem.json`,{method:"post",body:{subitem_id:vt==null?void 0:vt.id,settings:JSON.stringify(be.state)}})).status===0&&x():vt!=null&&vt.id&&x(vt),document.body.removeAttribute("data-custom"),ue.current.innerHTML=" ",Fe(!1),Le("")}),Ge=()=>{const be=document.querySelector('a[href="https://markerjs.com/"]');be&&be.parentNode&&(be.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(ct=>{const Ft=document.querySelector(ct.name);Ft&&Ft.setAttribute("title",ct.title)})},$e=()=>{oe.current=new We.hP(te.current),oe.current.targetRoot=ie.current,oe.current.addEventListener("render",Ye),oe.current.addEventListener("beforeclose",Me),y&&(oe.current.availableMarkerTypes=oe.current.ALL_MARKER_TYPES,oe.current.uiStyleSettings.redoButtonVisible=!0,oe.current.uiStyleSettings.notesButtonVisible=!0,oe.current.uiStyleSettings.zoomButtonVisible=!0,oe.current.uiStyleSettings.zoomOutButtonVisible=!0,oe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=oe.current.uiStyleSettings,oe.current.show(),ze!=null&&ze.snapshotData&&oe.current.restoreState(ze.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ge()},300)};return b.createElement(b.Fragment,null,(ze==null?void 0:ze.visible)&&b.createElement(Re.Z,{spinning:Ee,tip:Qe,style:{position:"absolute"}},b.createElement("div",{ref:ie,className:xe()(he.imageDimensions,Ue,le?he.fullWidth:""),style:E},b.createElement("img",{className:he.img,ref:te}))))}},5864:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return fr},$:function(){return Pa}});var b=ae(59301),he={flex_box_center:"flex_box_center___ILe3s",flex_space_between:"flex_space_between___c0XhE",flex_box_vertical_center:"flex_box_vertical_center___Iusj1",flex_box_center_end:"flex_box_center_end___DIVMO",flex_box_column:"flex_box_column___x06LA",intelligentBox:"intelligentBox___M5xO7",red:"red___oyEWt",imgBox:"imgBox___DdoNI",underpin:"underpin___fwUex",row:"row___W9MrK",leftLayout:"leftLayout___MMjoZ",rightLayout:"rightLayout___EsxRX",head:"head___Q7Od8",centerBox:"centerBox___j58Ut",title:"title___rMcNx",tip:"tip___gLHFS",leftBox:"leftBox___DJ6lp",question:"question___THjM9",rightBox:"rightBox___CuMdf",error:"error___PHzCG",actionHead:"actionHead___vTHMx",edit:"edit___EaRLy",option:"option___z4UTy",active:"active___o8wNJ",fill:"fill___g760n",text:"text___L_lug",liWrap:"liWrap___LDwxe",li:"li___k4Mcf",buttonFixed:"buttonFixed___QxKdm",buttonWrap:"buttonWrap___OEep5",button:"button___b2y4h",menu:"menu___aQ4xO",tabs:"tabs___QmlP4",dotLoading:"dotLoading___zUYOu",showHide:"showHide___fHrAG"},we=ae(92310),xe=ae.n(we),Re=ae(78241),We=ae(8591),Be=ae(43418),Ke=ae(5871),Oe=ae(95237),De=ae(24905),ke=ae(38854),ze=ae(54580),Ue=ae(3113),le=ae(93948),E=ae(19842),a=ae(92832),x=ae(2751),y=ae(11662),z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAABk1JREFUWEd1lwlsVkUQx3/7ClGMSMSrHCKXHCpQhYhCNB5AYqRQGq1AiKgEEAiokAJFFIoipcVE5EYFyn23IGCJgoTDQimWSJSzCIKIcglUEIGu2bdv3+77vo+XfPl2Z2Zn5z8zuzsjSPDJ0tZV2ftfGog0BG0Q1AbuRABCgJDBvxorWqDE5xkZh+4porNGjRXNyKvlMuCbf2OXDPRIWYHnnQJKqaSQOimFos3s67HmG1NCupzxWDcgD2Qjf0P1qT/fqGAcGh4Yb4x1ZZSsCySy3oAV4LnOCByi9Pl7CQ00HPvIDb0cz8sUqSUFLqgQkJRjPCavzEFUZoaecz2oNjYAjXGJgEQi5Bio1kYiZYDEOEt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kSuQmCC",ie=ae(64866),Ee=ae(81399),Fe=ae(5623),Qe=ae(10939),Le=ae(78926),st=ae(52999),Me=ae(15342),Ye=ae.n(Me),Ge=(oa,Zn,da)=>new Promise((Aa,xa)=>{var _a=St=>{try{rn(da.next(St))}catch(kt){xa(kt)}},Sn=St=>{try{rn(da.throw(St))}catch(kt){xa(kt)}},rn=St=>St.done?Aa(St.value):Promise.resolve(St.value).then(_a,Sn);rn((da=da.apply(oa,Zn)).next())}),be=b.memo(({tagName:oa="div",value:Zn="",className:da,style:Aa={},onBlur:xa,id:_a})=>{const Sn=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(!Sn.current)return;Ge(void 0,null,function*(){const kt=Sn.current;kt.innerHTML="";const ja=Zn==null?void 0:Zn.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const Ca of ja)if(Ca.startsWith("$$")&&Ca.endsWith("$$")||Ca.startsWith("`$$")&&Ca.endsWith("$$`")){const Wa=Ca.startsWith("`$$")?Ca.slice(3,-3):Ca.slice(2,-2),Da=document.createElement("span");Da.setAttribute("contentEditable","false"),Da.setAttribute("title",Ca),Da.className="edu_latex",kt.appendChild(Da),Ye().render(Wa,Da,{throwOnError:!1})}else{const Wa=Ca==null?void 0:Ca.replace(/<[^>]*>/g,Da=>Da.startsWith("{var St,kt;if(xa&&Sn.current){const Ca=Sn.current.cloneNode(!0),Wa=Ca.querySelectorAll("span.edu_latex");for(let Da of Wa){const Ta=Da.getAttribute("title"),Br=document.createTextNode(Ta||""),ar=Da;(kt=(St=ar.parentNode)==null?void 0:St.replaceChild)==null||kt.call(St,Br,ar)}xa(Ca.innerHTML)}};return b.createElement(b.Fragment,null,b.createElement(oa,{ref:Sn,contentEditable:!0,className:da,style:Aa,onBlur:rn}))}),vt=ae(16624),ct=ae(10089),Ft=ae(43428),At=ae(6848),En=ae(43604),Bn={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___C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54jv/0u3D+4Jv3/jQsbXVxes2/qFz7o7NfUZUdLSX2N4+TlJUM712KvdtfprBsYG4nFQOGc/hrPcs47R3HoqdSNI0cwqrV7/EExsH6LRqIeWRsAVB0iNXO5P2BQvItWhWV0wdyjF/82aSbgkVSYb3+hxnD7NoblVbOs05Z339vNfttvsTxpp46e+x8GRBMfTwlHWPtX+jZ+fgeS+/PJzY3VUkLNm4YS1JK8n69q1sH2inoEaotmvJZOAT71/FGw47ADuVonVuPWvu3c0TT3ejogAVCFI1VTy6fZjISuM1TWfPygOwizAr20fwzIOkkvW8fcUcLGesFAbhz+y0/OYFV13w7/8XgH1X76avXbJ0167iN/r6/Hf6JdyUrMMVHuvaNpPN7SFfHKMQSWa1VnH+h9/I3FlNuOkUtfU1bHsiYvczKbbn2ri340nePH8l20ZGsL0QT3ceSz4zptUyNDrK4oXzeGGTHxxbt/jujuoXv/nd+/9rYqPZX7Lmn3rvH7Lwa3/og0d+eklP78j5c2vmntZUO7V27e5nGM2NsGtoF65dxQmHz+NDZxxBKpEkNSVFmE3w8iMOj2x5kZ78ANWJBNPqpyESJQIZUvJDk8Km1qUpFovDc2e13Mp4+vIv/uasf/i/Wf4R0vqri/mh2RfXLlow66St+fXvbu/qOW4o3z/1iMXzxOnvOIpUlYNjW2QaUvSvTbFlS462PQMUo2EaG2pIpjzT+y4UlQpDuUchH3ec6DdeUqy5+M7P/v/1j1p/aiXuv/zyxDOP7ViyYP7Ug9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",_t=(oa,Zn,da)=>new Promise((Aa,xa)=>{var _a=St=>{try{rn(da.next(St))}catch(kt){xa(kt)}},Sn=St=>{try{rn(da.throw(St))}catch(kt){xa(kt)}},rn=St=>St.done?Aa(St.value):Promise.resolve(St.value).then(_a,Sn);rn((da=da.apply(oa,Zn)).next())}),ot=(0,b.forwardRef)(({onUpdateNum:oa,onSave:Zn},da)=>{var Aa;const xa=`\u8BF7\u8F93\u5165\u51FA\u9898\u8981\u6C42\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u5148\u4E0A\u4F20\u6750\u6599\u4E4B\u540E\u518D\u6839\u636E\u6750\u6599\u51FA\u9898 -\u4F8B\uFF1A\u8BF7\u751F\u6210\u5173\u4E8E\u300APython\u7A0B\u5E8F\u8BBE\u8BA1\u300B\u7684\u8BD5\u9898\u3002\u8003\u5BDF\u77E5\u8BC6\u70B9\uFF1A\u53D8\u91CF\u5B9A\u4E49\u3001\u6570\u636E\u7C7B\u578B\u3001\u8FD0\u7B97\u7B26\u548C\u63A7\u5236\u7ED3\u6784\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020%`,[_a,Sn]=(0,b.useState)(!1),[rn,St]=(0,b.useState)([]),[kt,ja]=(0,b.useState)(null),[Ca,Wa]=(0,b.useState)([]),[Da,Ta]=(0,b.useState)(0),[Br,ar]=(0,b.useState)(0),[Or,Oo]=(0,b.useState)(!1),[Ut,Un]=(0,b.useState)(""),[$n,ba]=(0,b.useState)(0),[Ze,Ot]=(0,b.useState)(0),[Xt,fn]=(0,b.useState)(0),[Mt,Qn]=(0,b.useState)(0),[Kn,Je]=(0,b.useState)(0),[tt,Xe]=(0,b.useState)(0),[an,Cn]=(0,b.useState)(0),[Nn,wa]=(0,b.useState)(0),[Ea,ta]=(0,b.useState)(xn.Q),{contentRef:ya,value:Xn,status:zt,open:ka,close:pr}=Ea,ho=(0,et.Z)({contentRef:ya,status:zt}),{openProgress:qa,closeProgress:Gt,CreateProgressModal:Qr,progressOpen:Ua}=(0,Te.Z)();(0,b.useEffect)(()=>{kt&&Lr(),kt===!1&&(pr(),oa==null||oa(),St([]),Un(""),ba(0),Ot(0),fn(0),Qn(0),Je(0),Xe(0),Cn(0),wa(0))},[kt]);const Sr=()=>{ja(!0)};(0,b.useImperativeHandle)(da,()=>({onClick:Sr}));const lr=ga=>{Oo(!0),Ta(ga),ar(0)},Gr=ga=>_t(void 0,null,function*(){const ur=ga.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(ur)==-1?(We.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):ga.size/1024/1024>10?(We.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),Lr=()=>_t(void 0,null,function*(){const ga=yield(0,ie.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});ga.status===0&&(Ta(ga.total_number),ar(ga.remaining_number))}),no=ga=>(ga=ga||"",ga=String(ga),ga=ga.replace(/\s+/g,""),ga),Mr=(ga=!0)=>_t(void 0,null,function*(){var ur,za;const vn=[{name:"\u5355\u9009\u9898",num:$n||0},{name:"\u591A\u9009\u9898",num:Ze||0},{name:"\u5224\u65AD\u9898",num:Xt||0},{name:"\u586B\u7A7A\u9898",num:Mt||0},{name:"\u7B80\u7B54\u9898",num:Kn||0},{name:"\u7EC4\u5408\u9898",num:Nn||0},{name:"\u7F16\u7A0B\u9898",num:tt||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:an||0}];if(ga){if(no(Ut)){if(Ut.length>1e3){We.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{We.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!no(Ut)&&!(rn!=null&&rn.length)){We.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const _n=vn.reduce((sr,tr)=>sr+tr.num,0);if(_n===0){We.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(_n>30){We.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}if(Da!==-1){Oo(!0);return}}Oo(!1);const Na={scene_type:6,request_identifier:Math.random(),file_id:(za=(ur=rn[0])==null?void 0:ur.response)==null?void 0:za.id,content:Ut,count_arr:vn.map(_n=>_n.num).join(",")};yield ka(Na),Lr()}),ca=()=>_t(void 0,null,function*(){const ga=ho();if(Zn){ja(!1),Zn(ga);return}qa(),Sn(!0),Wa([]);const ur=new FormData;ur.append("html",ga);const za=yield(0,ie.ZP)("/api/intelligent_imports/import.json",{method:"post",body:ur},!0);if((za==null?void 0:za.status)===0)if(za!=null&&za.data){Gt(100),Wa(za==null?void 0:za.data);return}else We.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");Sn(!1),Gt()}),tn=()=>_t(void 0,null,function*(){const ga=ho();(0,Pt.RG)(ga)}),gr=["uploading","error"].includes((Aa=rn==null?void 0:rn[0])==null?void 0:Aa.status);return b.createElement(b.Fragment,null,b.createElement(Yt.Z,{visible:Or,totalCount:Da,usedCount:Br,onCancel:()=>Oo(!1),onOk:()=>Mr(!1)}),b.createElement(Ft.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:b.createElement("div",{className:Bn.extraHeader},b.createElement(Oe.Z,{align:"middle"},!zt&&!!Xn&&b.createElement(b.Fragment,null,b.createElement(x.op,{onClick:ca,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),b.createElement(x.op,{onClick:tn,shape:"default",type:"text"},b.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),b.createElement("i",{onClick:()=>{const ga=ur=>{Be.default.confirm({centered:!0,icon:null,width:500,zIndex:1101,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ur,onOk:()=>{ja(!1)}})};if(zt){ga("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else Xn?ga("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):ja(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:kt},b.createElement("div",{className:Bn.wrap},b.createElement("div",{className:Bn.left},b.createElement("div",{className:Bn.tip},b.createElement("img",{src:Lt}),b.createElement("span",null,"\u60A8\u597D\uFF01\u6211\u662F\u60A8\u7684\u667A\u80FD\u51FA\u9898\u52A9\u624B\uFF0C\u6211\u5DF2\u5B66\u4E60\u4E86\u5E73\u53F0\u4EE5\u53CA\u4E92\u8054\u7F51\u4E0A\u6D77\u91CF\u7684\u8BD5\u9898\u77E5\u8BC6\u5E93\u3002\u53EF\u4EE5\u6839\u636E\u60A8\u7684\u8981\u6C42\u548C\u4E0A\u4F20\u7684\u6750\u6599\u7075\u6D3B\u751F\u6210\u5404\u7C7B\u8BD5\u9898\u3002\u6B22\u8FCE\u968F\u65F6\u4E0E\u6211\u4E92\u52A8\uFF0C\u8BA9\u6211\u4EEC\u4E00\u8D77\u6253\u9020\u66F4\u9AD8\u6548\u3001\u66F4\u4F18\u8D28\u7684\u8BD5\u9898\uFF01")),b.createElement("div",{className:"mb10 mt20 c-black"},b.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),b.createElement(a.default.TextArea,{style:{height:160},className:"mb20",value:Ut,placeholder:xa,onChange:ga=>{Un(ga.target.value)}}),b.createElement(ze.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${y.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:rn,withCredentials:!0,data:{upload_type:1},beforeUpload:Gr,onChange:({file:ga})=>{var ur,za;ga.status!=="removed"&&(ga.status==="done"&&((ur=ga==null?void 0:ga.response)==null?void 0:ur.status)!==0&&(ga.status="error",ga.response=(za=ga==null?void 0:ga.response)==null?void 0:za.message),St([ga]))},onRemove:()=>St([])},b.createElement(At.Z,{title:"\u5355\u6B21\u4EC5\u652F\u6301\u4E0A\u4F201\u4E2A\u6587\u6863\u62161\u5F20\u56FE\u7247\uFF0C\u6587\u6863\u652F\u6301PDF/Word\u683C\u5F0F\uFF0C\u56FE\u7247\u652F\u63011\u5F20\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247"},b.createElement(x.op,{style:{borderRadius:2}},b.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),b.createElement("div",{className:"c-black mt20"},b.createElement("div",{className:"mb10 c-black"},b.createElement("b",null,"\u51FA\u9898\u6570\u91CF"),b.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u4FDD\u8BC1\u51FA\u9898\u4F53\u9A8C\uFF0C\u5355\u6B21\u51FA\u9898\u603B\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7",b.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"30"),"\u9053\uFF09")),b.createElement(Oe.Z,{style:{gap:16}},b.createElement(En.Z,null,b.createElement("label",null,"\u5355\u9009\u9898"),b.createElement(Ke.Z,{min:0,max:10,value:$n,onChange:ba,style:{marginLeft:"8px"}})),b.createElement(En.Z,null,b.createElement("label",null,"\u591A\u9009\u9898"),b.createElement(Ke.Z,{min:0,max:10,value:Ze,onChange:Ot,style:{marginLeft:"8px"}})),b.createElement(En.Z,null,b.createElement("label",null,"\u5224\u65AD\u9898"),b.createElement(Ke.Z,{min:0,max:10,value:Xt,onChange:fn,style:{marginLeft:"8px"}})),b.createElement(En.Z,null,b.createElement("label",null,"\u586B\u7A7A\u9898"),b.createElement(Ke.Z,{min:0,max:10,value:Mt,onChange:Qn,style:{marginLeft:"8px"}})),b.createElement(En.Z,null,b.createElement("label",null,"\u7B80\u7B54\u9898"),b.createElement(Ke.Z,{min:0,max:10,value:Kn,onChange:Je,style:{marginLeft:"8px"}})))),zt?b.createElement("div",{onClick:pr,className:Bn.bottomBtn},b.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):gr?b.createElement("div",{className:`${Bn.bottomBtn} ${Bn.disabled}`},b.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):b.createElement("div",{onClick:()=>{Mr()},className:Bn.bottomBtn},b.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),b.createElement(xn.Z,{onStatusChange:ta,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!Ua,noRestrictModal:lr,stringTransformer:Wt.o,onError:ga=>{Object.prototype.toString.call(ga)==="[object Object]"&&ga.status===-9&&lr(ga.data)}}))),b.createElement(Ft.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:_a},b.createElement(Oe.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},b.createElement("img",{src:ae(36413),alt:"\u667A\u80FD\u51FA\u9898"}),b.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u9898")),b.createElement(fr,{stickyTop:-24,hideWordFeatures:!0,dataSource:Ca,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>Sn(!1),onSuccess:()=>{Sn(!1),ja(!1)}}),b.createElement("div",{style:{height:70}})),Qr("\u5904\u7406\u4E2D"))}),nn=Object.defineProperty,nt=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,Jn=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,Rt=(oa,Zn,da)=>Zn in oa?nn(oa,Zn,{enumerable:!0,configurable:!0,writable:!0,value:da}):oa[Zn]=da,Wn=(oa,Zn)=>{for(var da in Zn||(Zn={}))dn.call(Zn,da)&&Rt(oa,da,Zn[da]);if(Jn)for(var da of Jn(Zn))Qt.call(Zn,da)&&Rt(oa,da,Zn[da]);return oa},ra=(oa,Zn)=>nt(oa,ht(Zn)),en=(oa,Zn,da)=>new Promise((Aa,xa)=>{var _a=St=>{try{rn(da.next(St))}catch(kt){xa(kt)}},Sn=St=>{try{rn(da.throw(St))}catch(kt){xa(kt)}},rn=St=>St.done?Aa(St.value):Promise.resolve(St.value).then(_a,Sn);rn((da=da.apply(oa,Zn)).next())});const Ba=oa=>{oa.preventDefault();let da=(oa.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,da)},Ka=oa=>{oa.key==="Enter"&&oa.preventDefault()},Fa=({children:oa,style:Zn})=>b.createElement("div",{className:he.leftBox,style:Zn,onPaste:Ba},oa),jn=({children:oa,style:Zn,className:da})=>b.createElement("div",{className:xe()(he.rightBox,da),style:Zn,onPaste:Ba},oa),Ha=({className:oa,style:Zn={},width:da=1200,onCancel:Aa=()=>{},onSuccess:xa=()=>{},gather:_a={},mode:Sn=1,stickyTop:rn=0,subDisciplineId:St=[],hideWordFeatures:kt,dataSource:ja=[],customLeftHeadNode:Ca,customRightHeadNode:Wa,customLeftContent:Da,hideRecognition:Ta=!1,onExchange:Br,isSingleSelection:ar=!1,underpinBackgroundStyle:Or={},headExtraNode:Oo,isRefreshItemBank:Ut=!1,okText:Un="\u786E\u5B9A\u5BFC\u5165",onSave:$n})=>{var ba;const[Ze,Ot]=(0,b.useState)(1),[Xt,fn]=(0,b.useState)(0),[Mt,Qn]=(0,b.useState)(""),[Kn,Je]=(0,b.useState)(!1),[tt,Xe]=(0,b.useState)([]),[an,Cn]=(0,b.useState)([]),[Nn,wa]=(0,b.useState)(!1),[Ea,ta]=(0,b.useState)(!1),[ya,Xn]=(0,b.useState)(!1),[zt,ka]=(0,b.useState)(!1),[pr,ho]=(0,b.useState)([]),[qa,Gt]=(0,b.useState)(1),[Qr,Ua]=(0,b.useState)(!1),[Sr,lr]=(0,b.useState)(!0),[Gr,Lr]=(0,b.useState)(0),[no,Mr]=(0,b.useState)(!1),[ca]=Re.default.useForm(),[tn]=Re.default.useForm(),gr=(0,b.useRef)(null),ga=(0,b.useRef)(null),ur=(0,b.useRef)(),za=(0,b.useRef)(null),vn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],na=["C","C++","Java","Python","JavaScript","Ruby"];(0,b.useEffect)(()=>{ja!=null&&ja.length&&So(ja)},[ja]),(0,b.useEffect)(()=>{Ze===2&&gr.current.focus()},[Ze]),(0,b.useEffect)(()=>{ya&&_n()},[ya]);const Na=()=>{if(Ze===1){We.ZP.warning("\u8BF7\u5148\u4E0A\u4F20\u8BD5\u9898\uFF01");return}Be.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u6E05\u7A7A\u64CD\u4F5C\u5C06\u5220\u9664\u8BD5\u9898\u7F16\u8F91\u533A\u57DF\u7684\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u5B9A\u4E00\u952E\u6E05\u7A7A\u5417\uFF1F",onOk:()=>en(void 0,null,function*(){Ot(1)})})},_n=()=>en(void 0,null,function*(){const me=yield(0,ie.ZP)("/api/disciplines.json",{method:"get",params:{source:Sn===1?"new_question":"subject"}});ho(me.disciplines||[])}),sr=me=>{const gt=[],Bt=(on,pt)=>{on.length>=2&>.push(on.join(""));for(let Ln=pt;Ln(me=me||"",me=String(me),me=me.replace(/\s+/g,""),me),Ar=me=>(me=me||"",me=String(me),me=me.replace(/

/g,""),me=me.replace(/
/g,` +`),he)},26573:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return x}});var b=ae(59301),he=ae(17574),we=ae(40427),Be={flex_box_center:"flex_box_center___SFmJH",flex_space_between:"flex_space_between___f2H1D",flex_box_vertical_center:"flex_box_vertical_center___hW_hp",flex_box_center_end:"flex_box_center_end___yklmJ",flex_box_column:"flex_box_column___m0oUw",customTree:"customTree___ZhEHU",name:"name___RIkn2"},Re=Object.defineProperty,We=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,ke=(y,z,te)=>z in y?Re(y,z,{enumerable:!0,configurable:!0,writable:!0,value:te}):y[z]=te,ze=(y,z)=>{for(var te in z||(z={}))Oe.call(z,te)&&ke(y,te,z[te]);if(Ke)for(var te of Ke(z))De.call(z,te)&&ke(y,te,z[te]);return y},Ue=(y,z)=>We(y,xe(z)),ue=(y,z)=>{var te={};for(var oe in y)Oe.call(y,oe)&&z.indexOf(oe)<0&&(te[oe]=y[oe]);if(y!=null&&Ke)for(var oe of Ke(y))z.indexOf(oe)<0&&De.call(y,oe)&&(te[oe]=y[oe]);return te},E=(y,z,te)=>new Promise((oe,se)=>{var ie=Qe=>{try{Fe(te.next(Qe))}catch(Le){se(Le)}},Ee=Qe=>{try{Fe(te.throw(Qe))}catch(Le){se(Le)}},Fe=Qe=>Qe.done?oe(Qe.value):Promise.resolve(Qe.value).then(ie,Ee);Fe((te=te.apply(y,z)).next())}),x=y=>{var z=y,{value:te,onChange:oe,defaultValue:se,disabled:ie}=z,Ee=ue(z,["value","onChange","defaultValue","disabled"]);const[Fe,Qe]=(0,b.useState)([]),[Le,st]=(0,b.useState)("1");(0,b.useEffect)(()=>{Me()},[]);const Me=()=>E(void 0,null,function*(){const $e=yield(0,we.NZ)({});if($e!=null&&$e.data){const be=[{title:b.createElement("div",{title:"\u6839\u76EE\u5F55",className:Be.name},"\u6839\u76EE\u5F55"),value:0,key:0,icon:b.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:Ye($e.data||[])}];Qe(be),st("2")}}),Ye=$e=>{function be(vt){const ct=vt.children,bt=Array.isArray(ct)&&ct.length>0,At=vt==null?void 0:vt.group_id;return{title:b.createElement("div",{title:vt==null?void 0:vt.name,className:Be.name},vt==null?void 0:vt.name),value:At,key:At,icon:b.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:bt?ct==null?void 0:ct.map(En=>be(En)):[]}}return $e==null?void 0:$e.map(vt=>be(vt))},Ge=se?{defaultExpandedKeys:[0],defaultSelectedKeys:[0]}:{selectedKeys:te,defaultExpandedKeys:te};return b.createElement("div",{className:Be.customTree},b.createElement(he.default,ze(Ue(ze({key:Le},Ge),{showIcon:!0,treeData:Fe,onSelect:oe,disabled:ie}),Ee)))}},81232:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Be}});var b=ae(59301),he={digitalLabel:"digitalLabel___tImKs",active:"active___Ck70Q"},Be=({number:Re,active:We,className:xe})=>b.createElement("div",{className:`${he.digitalLabel} ${We?he.active:""} ${xe}`},Re)},81399:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return y}});var b=ae(59301),he=ae(17574),we={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},Be=ae(73631),Re=ae(5623),We=ae(40427),xe=Object.defineProperty,Ke=Object.defineProperties,Oe=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,Ue=(z,te,oe)=>te in z?xe(z,te,{enumerable:!0,configurable:!0,writable:!0,value:oe}):z[te]=oe,ue=(z,te)=>{for(var oe in te||(te={}))ke.call(te,oe)&&Ue(z,oe,te[oe]);if(De)for(var oe of De(te))ze.call(te,oe)&&Ue(z,oe,te[oe]);return z},E=(z,te)=>Ke(z,Oe(te)),a=(z,te,oe)=>new Promise((se,ie)=>{var Ee=Le=>{try{Qe(oe.next(Le))}catch(st){ie(st)}},Fe=Le=>{try{Qe(oe.throw(Le))}catch(st){ie(st)}},Qe=Le=>Le.done?se(Le.value):Promise.resolve(Le.value).then(Ee,Fe);Qe((oe=oe.apply(z,te)).next())}),y=({value:z,onChange:te,scrollId:oe})=>{const[se,ie]=(0,b.useState)([]);(0,b.useEffect)(()=>{Ee()},[]);const Ee=()=>a(void 0,null,function*(){const Ye=yield(0,We.NZ)({});if(Ye!=null&&Ye.data){const Ge=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:b.createElement("img",{src:Be,className:we.folderIcon}),isLeaf:!1,children:Fe(Ye.data||[])}];ie(Ge)}}),Fe=Ye=>Ye.map(Ge=>({title:Ge.name,key:Ge.group_id,icon:b.createElement("img",{src:Be,className:we.folderIcon}),isLeaf:Ge.children.length===0,children:Fe(Ge.children)})),Qe=(Ye,Ge,$e)=>Ye.map(be=>be.key===Ge?ue(ue({},be),$e):be.children?E(ue({},be),{children:Qe(be.children,Ge,$e)}):be),Le=(Ye,Ge,$e)=>Ye.map(be=>{if(be.key===Ge)return E(ue({},be),{icon:$e?b.createElement("img",{src:Re,className:we.folderIcon}):b.createElement("img",{src:Be,className:we.folderIcon})});if(be.children)return E(ue({},be),{children:Le(be.children,Ge,$e)})}),st=(Ye,Ge)=>{ie($e=>Le($e,Ge.node.key,Ge.expanded))},Me=z?{selectedKeys:z,defaultExpandedKeys:z}:{};return se.length>0&&b.createElement("div",{id:oe||""},b.createElement(he.default,ue({showLine:{showLeafIcon:!1},showIcon:!0,treeData:se,className:we.folderWrapper,onSelect:te,onExpand:st},Me)))}},51529:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return We}});var b=ae(60324),he={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},we=ae(32637),Be=ae(59301),We=({type:xe,style:Ke})=>{const Oe=Be.createElement("div",{className:he.wrap,onClick:De=>{De.preventDefault(),De.stopPropagation()}},Be.createElement("p",null,xe==="shixun"||xe==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Be.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",xe==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Be.createElement("div",{className:he.contact},Be.createElement("div",{className:he.img},Be.createElement("img",{src:we,width:"124px",height:"124px"})),Be.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Be.createElement(b.Z,{content:Oe},Be.createElement("span",{className:he.text,style:Ke},"\u9AD8\u6D88\u8017"))}},2781:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return ke}});var b=ae(59301),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},we=ae(92310),Be=ae.n(we),Re=ae(71418),We=ae(2859),xe=ae(64866),Ke=ae(22566),Oe=(ze,Ue,ue)=>new Promise((E,a)=>{var x=te=>{try{z(ue.next(te))}catch(oe){a(oe)}},y=te=>{try{z(ue.throw(te))}catch(oe){a(oe)}},z=te=>te.done?E(te.value):Promise.resolve(te.value).then(x,y);z((ue=ue.apply(ze,Ue)).next())}),ke=({data:ze,className:Ue,fullWidth:ue,style:E={},onClose:a,onOk:x,showFullTools:y,noAssociationId:z})=>{const te=(0,b.useRef)(null),oe=(0,b.useRef)(null),se=(0,b.useRef)(null),ie=(0,b.useRef)(null),[Ee,Fe]=(0,b.useState)(!1),[Qe,Le]=(0,b.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,b.useEffect)(()=>{se.current||(se.current=document.createElement("style"),document.head.appendChild(se.current)),ze!=null&&ze.visible?(document.body.setAttribute("data-custom","y-hidden"),se.current.innerHTML=" html { overflow-y: hidden; }",ze!=null&&ze.src&&st()):(document.body.removeAttribute("data-custom"),se.current&&(document.head.removeChild(se.current),se.current=null))},[ze==null?void 0:ze.visible]);const st=()=>Oe(void 0,null,function*(){Fe(!0),Le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const be=yield(0,Ke.ZJ)(ze==null?void 0:ze.src);te.current.src="",te.current.src=be,te.current.onload=function(){$e()},Fe(!1),Le("")}),Me=()=>{document.body.removeAttribute("data-custom"),se.current.innerHTML=" ",a()},Ye=be=>Oe(void 0,null,function*(){Fe(!0),Le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const vt=yield(0,xe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ze.title,file:be.dataUrl}});vt!=null&&vt.id&&!z?(yield(0,xe.ZP)(`/api/attachments/${ze.id}/add_subitem.json`,{method:"post",body:{subitem_id:vt==null?void 0:vt.id,settings:JSON.stringify(be.state)}})).status===0&&x():vt!=null&&vt.id&&x(vt),document.body.removeAttribute("data-custom"),se.current.innerHTML=" ",Fe(!1),Le("")}),Ge=()=>{const be=document.querySelector('a[href="https://markerjs.com/"]');be&&be.parentNode&&(be.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(ct=>{const bt=document.querySelector(ct.name);bt&&bt.setAttribute("title",ct.title)})},$e=()=>{oe.current=new We.hP(te.current),oe.current.targetRoot=ie.current,oe.current.addEventListener("render",Ye),oe.current.addEventListener("beforeclose",Me),y&&(oe.current.availableMarkerTypes=oe.current.ALL_MARKER_TYPES,oe.current.uiStyleSettings.redoButtonVisible=!0,oe.current.uiStyleSettings.notesButtonVisible=!0,oe.current.uiStyleSettings.zoomButtonVisible=!0,oe.current.uiStyleSettings.zoomOutButtonVisible=!0,oe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=oe.current.uiStyleSettings,oe.current.show(),ze!=null&&ze.snapshotData&&oe.current.restoreState(ze.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ge()},300)};return b.createElement(b.Fragment,null,(ze==null?void 0:ze.visible)&&b.createElement(Re.Z,{spinning:Ee,tip:Qe,style:{position:"absolute"}},b.createElement("div",{ref:ie,className:Be()(he.imageDimensions,Ue,ue?he.fullWidth:""),style:E},b.createElement("img",{className:he.img,ref:te}))))}},5864:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return fr},$:function(){return Pa}});var b=ae(59301),he={flex_box_center:"flex_box_center___ILe3s",flex_space_between:"flex_space_between___c0XhE",flex_box_vertical_center:"flex_box_vertical_center___Iusj1",flex_box_center_end:"flex_box_center_end___DIVMO",flex_box_column:"flex_box_column___x06LA",intelligentBox:"intelligentBox___M5xO7",red:"red___oyEWt",imgBox:"imgBox___DdoNI",underpin:"underpin___fwUex",row:"row___W9MrK",leftLayout:"leftLayout___MMjoZ",rightLayout:"rightLayout___EsxRX",head:"head___Q7Od8",centerBox:"centerBox___j58Ut",title:"title___rMcNx",tip:"tip___gLHFS",leftBox:"leftBox___DJ6lp",question:"question___THjM9",rightBox:"rightBox___CuMdf",error:"error___PHzCG",actionHead:"actionHead___vTHMx",edit:"edit___EaRLy",option:"option___z4UTy",active:"active___o8wNJ",fill:"fill___g760n",text:"text___L_lug",liWrap:"liWrap___LDwxe",li:"li___k4Mcf",buttonFixed:"buttonFixed___QxKdm",buttonWrap:"buttonWrap___OEep5",button:"button___b2y4h",menu:"menu___aQ4xO",tabs:"tabs___QmlP4",dotLoading:"dotLoading___zUYOu",showHide:"showHide___fHrAG"},we=ae(92310),Be=ae.n(we),Re=ae(78241),We=ae(8591),xe=ae(43418),Ke=ae(5871),Oe=ae(95237),De=ae(24905),ke=ae(38854),ze=ae(54580),Ue=ae(3113),ue=ae(93948),E=ae(19842),a=ae(92832),x=ae(2751),y=ae(11662),z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAABk1JREFUWEd1lwlsVkUQx3/7ClGMSMSrHCKXHCpQhYhCNB5AYqRQGq1AiKgEEAiokAJFFIoipcVE5EYFyn23IGCJgoTDQimWSJSzCIKIcglUEIGu2bdv3+77vo+XfPl2Z2Zn5z8zuzsjSPDJ0tZV2ftfGog0BG0Q1AbuRABCgJDBvxorWqDE5xkZh+4porNGjRXNyKvlMuCbf2OXDPRIWYHnnQJKqaSQOimFos3s67HmG1NCupzxWDcgD2Qjf0P1qT/fqGAcGh4Yb4x1ZZSsCySy3oAV4LnOCByi9Pl7CQ00HPvIDb0cz8sUqSUFLqgQkJRjPCavzEFUZoaecz2oNjYAjXGJgEQi5Bio1kYiZYDEOEt5z4+ecZ4D2I2kGePl0eWlkUJkVxp/+yvkpOa5IDOtxxIAiE2nuEg5RhjZ2EiFhgYpF6ZfTNq662KzI+TpgOGJPJFaMjwEJCc06YZgtY5AENLMA7HpCcVTYfd0TR/yi+Vvy4F9CyG5BaQviV9nKBeOwNrXoNdOSKqqqSe2wJZ3dfS9JP0LM+MmyJt63iEfaj6m11w5DUWdo+c1yUtX6SfkrNZVOXNpP1I2Cg+qApV1KN6wc+WQ31nTh+63/K05sHc+JLeEjKW3BnT+CKxKh66L4P4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3t9d3IDACSy7UGcBCJJqgist+KW3JV2NZdJJarI1o04CURSVBXYgA6swvoq2UwqsYdsTwKxAHUENq5E2xIOk/lX9+PbmDnQFYihxxjTFdhs60p3M/3oZEH3d5EEGha4f7voFUcvzuaWroCnOh0SqEqsZTz2CmyW47YsD3hDH5YfnvilMqWGQCklJG5lbJUgjd0nMGhH3GJJTATBwwLuib7+tUxq7IffenD2xupwlcFxUfO43xCN6y4BcCuFTCrx2U8XOHN9dabmCbr6/NDq4RjO2fdLo1MfOy2Gw+mrb+Z6OC9qpUDA4fzn8ICbfb4wXm4XI4EKQE0MrS+GO8zOvXxwauew/iTQhBWNnhEhN9KLM19boyRQA6apSMS2t84fe7yRTCYPHhKTQFM2NPsCsNKfddTGYjgJ1ARpNCahOiJF9sXiTIkEGjWh3xy4lINS5EigPkPzSQlVEmheg/4MSKA+O9PJ/a/QIfoKNS1Cqz/9E6OFLRQhuo0IhQa9SdCNvB63UKRoKS0UGtQnQYvZ6sxCk/D1OIke6IbG1z8T8f1Al7ZUhE+g0paK+vRpU5O+ROObmvSnTsk6gVBsKyQV+gSCEEgbe/X5o5NYgW6/u5m+Q1vr0SJ0C+gKpJdbdIkHnNMRSK+XBSwBU05VIL3giaHdhayKQHrFugsCsCX9CKRDDrCUu5jvJJCOGeki/CBK00E/QVA0WIOO2jIIP4jW8/OSP8u/m/aksJr16LC7IMj2sEbzuEkBnmdFo+u9PG7yNxidqHC3DAxxAAAAAElFTkSuQmCC",ie=ae(64866),Ee=ae(81399),Fe=ae(5623),Qe=ae(10939),Le=ae(78926),st=ae(52999),Me=ae(15342),Ye=ae.n(Me),Ge=(oa,Zn,da)=>new Promise((Aa,xa)=>{var _a=St=>{try{on(da.next(St))}catch(Tt){xa(Tt)}},Sn=St=>{try{on(da.throw(St))}catch(Tt){xa(Tt)}},on=St=>St.done?Aa(St.value):Promise.resolve(St.value).then(_a,Sn);on((da=da.apply(oa,Zn)).next())}),be=b.memo(({tagName:oa="div",value:Zn="",className:da,style:Aa={},onBlur:xa,id:_a})=>{const Sn=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(!Sn.current)return;Ge(void 0,null,function*(){const Tt=Sn.current;Tt.innerHTML="";const ja=Zn==null?void 0:Zn.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const Ca of ja)if(Ca.startsWith("$$")&&Ca.endsWith("$$")||Ca.startsWith("`$$")&&Ca.endsWith("$$`")){const Wa=Ca.startsWith("`$$")?Ca.slice(3,-3):Ca.slice(2,-2),Da=document.createElement("span");Da.setAttribute("contentEditable","false"),Da.setAttribute("title",Ca),Da.className="edu_latex",Tt.appendChild(Da),Ye().render(Wa,Da,{throwOnError:!1})}else{const Wa=Ca==null?void 0:Ca.replace(/<[^>]*>/g,Da=>Da.startsWith("{var St,Tt;if(xa&&Sn.current){const Ca=Sn.current.cloneNode(!0),Wa=Ca.querySelectorAll("span.edu_latex");for(let Da of Wa){const Ta=Da.getAttribute("title"),Br=document.createTextNode(Ta||""),ar=Da;(Tt=(St=ar.parentNode)==null?void 0:St.replaceChild)==null||Tt.call(St,Br,ar)}xa(Ca.innerHTML)}};return b.createElement(b.Fragment,null,b.createElement(oa,{ref:Sn,contentEditable:!0,className:da,style:Aa,onBlur:on}))}),vt=ae(16624),ct=ae(10089),bt=ae(43428),At=ae(6848),En=ae(43604),xn={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},Wt=ae(4879),Pt=ae(22566),Te=ae(4479),et=ae(3665),Yt=ae(39459),wn=ae(97277),Lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAHr1JREFUaEPNmweYnVW1/n/7a6fMmcm0ZEoSUkkCSQgJCVWKoAI2FAH1iqBYwXvFLogF8S9XvRYElUeqIJegFOmEKgiICUkgJBBCkpnMZHoyc6ad9pW9r3t/58wEsJfn+Z8z5zn9fN+711rvet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jISuM1TWfPygOwizAr20fwzIOkkvW8fcUcLGesFAbhz+y0/OYFV13w7/8XgH1X76avXbJ0167iN/r6/Hf6JdyUrMMVHuvaNpPN7SFfHKMQSWa1VnH+h9/I3FlNuOkUtfU1bHsiYvczKbbn2ri340nePH8l20ZGsL0QT3ceSz4zptUyNDrK4oXzeGGTHxxbt/jujuoXv/nd+/9rYqPZX7Lmn3rvH7Lwa3/og0d+eklP78j5c2vmntZUO7V27e5nGM2NsGtoF65dxQmHz+NDZxxBKpEkNSVFmE3w8iMOj2x5kZ78ANWJBNPqpyESJQIZUvJDk8Km1qUpFovDc2e13Mp4+vIv/uasf/i/Wf4R0vqri/mh2RfXLlow66St+fXvbu/qOW4o3z/1iMXzxOnvOIpUlYNjW2QaUvSvTbFlS462PQMUo2EaG2pIpjzT+y4UlQpDuUchH3ec6DdeUqy5+M7P/v/1j1p/aiXuv/zyxDOP7ViyYP7Ug9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",_t=(oa,Zn,da)=>new Promise((Aa,xa)=>{var _a=St=>{try{on(da.next(St))}catch(Tt){xa(Tt)}},Sn=St=>{try{on(da.throw(St))}catch(Tt){xa(Tt)}},on=St=>St.done?Aa(St.value):Promise.resolve(St.value).then(_a,Sn);on((da=da.apply(oa,Zn)).next())}),ot=(0,b.forwardRef)(({onUpdateNum:oa,onSave:Zn},da)=>{var Aa;const xa=`\u8BF7\u8F93\u5165\u51FA\u9898\u8981\u6C42\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u5148\u4E0A\u4F20\u6750\u6599\u4E4B\u540E\u518D\u6839\u636E\u6750\u6599\u51FA\u9898 +\u4F8B\uFF1A\u8BF7\u751F\u6210\u5173\u4E8E\u300APython\u7A0B\u5E8F\u8BBE\u8BA1\u300B\u7684\u8BD5\u9898\u3002\u8003\u5BDF\u77E5\u8BC6\u70B9\uFF1A\u53D8\u91CF\u5B9A\u4E49\u3001\u6570\u636E\u7C7B\u578B\u3001\u8FD0\u7B97\u7B26\u548C\u63A7\u5236\u7ED3\u6784\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020%`,[_a,Sn]=(0,b.useState)(!1),[on,St]=(0,b.useState)([]),[Tt,ja]=(0,b.useState)(null),[Ca,Wa]=(0,b.useState)([]),[Da,Ta]=(0,b.useState)(0),[Br,ar]=(0,b.useState)(0),[Or,Oo]=(0,b.useState)(!1),[Ut,Un]=(0,b.useState)(""),[$n,ba]=(0,b.useState)(0),[Ze,Mt]=(0,b.useState)(0),[Xt,fn]=(0,b.useState)(0),[Rt,Qn]=(0,b.useState)(0),[Kn,Je]=(0,b.useState)(0),[nt,Xe]=(0,b.useState)(0),[rn,Cn]=(0,b.useState)(0),[Nn,wa]=(0,b.useState)(0),[Ea,ta]=(0,b.useState)(wn.Q),{contentRef:ya,value:Xn,status:zt,open:ka,close:pr}=Ea,ho=(0,et.Z)({contentRef:ya,status:zt}),{openProgress:qa,closeProgress:Ht,CreateProgressModal:Qr,progressOpen:Ua}=(0,Te.Z)();(0,b.useEffect)(()=>{Tt&&Lr(),Tt===!1&&(pr(),oa==null||oa(),St([]),Un(""),ba(0),Mt(0),fn(0),Qn(0),Je(0),Xe(0),Cn(0),wa(0))},[Tt]);const Sr=()=>{ja(!0)};(0,b.useImperativeHandle)(da,()=>({onClick:Sr}));const lr=ga=>{Oo(!0),Ta(ga),ar(0)},Gr=ga=>_t(void 0,null,function*(){const ur=ga.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(ur)==-1?(We.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):ga.size/1024/1024>10?(We.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),Lr=()=>_t(void 0,null,function*(){const ga=yield(0,ie.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});ga.status===0&&(Ta(ga.total_number),ar(ga.remaining_number))}),no=ga=>(ga=ga||"",ga=String(ga),ga=ga.replace(/\s+/g,""),ga),Mr=(ga=!0)=>_t(void 0,null,function*(){var ur,za;const vn=[{name:"\u5355\u9009\u9898",num:$n||0},{name:"\u591A\u9009\u9898",num:Ze||0},{name:"\u5224\u65AD\u9898",num:Xt||0},{name:"\u586B\u7A7A\u9898",num:Rt||0},{name:"\u7B80\u7B54\u9898",num:Kn||0},{name:"\u7EC4\u5408\u9898",num:Nn||0},{name:"\u7F16\u7A0B\u9898",num:nt||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:rn||0}];if(ga){if(no(Ut)){if(Ut.length>1e3){We.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{We.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!no(Ut)&&!(on!=null&&on.length)){We.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const _n=vn.reduce((sr,tr)=>sr+tr.num,0);if(_n===0){We.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(_n>30){We.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}if(Da!==-1){Oo(!0);return}}Oo(!1);const Na={scene_type:6,request_identifier:Math.random(),file_id:(za=(ur=on[0])==null?void 0:ur.response)==null?void 0:za.id,content:Ut,count_arr:vn.map(_n=>_n.num).join(",")};yield ka(Na),Lr()}),ca=()=>_t(void 0,null,function*(){const ga=ho();if(Zn){ja(!1),Zn(ga);return}qa(),Sn(!0),Wa([]);const ur=new FormData;ur.append("html",ga);const za=yield(0,ie.ZP)("/api/intelligent_imports/import.json",{method:"post",body:ur},!0);if((za==null?void 0:za.status)===0)if(za!=null&&za.data){Ht(100),Wa(za==null?void 0:za.data);return}else We.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");Sn(!1),Ht()}),nn=()=>_t(void 0,null,function*(){const ga=ho();(0,Pt.RG)(ga)}),gr=["uploading","error"].includes((Aa=on==null?void 0:on[0])==null?void 0:Aa.status);return b.createElement(b.Fragment,null,b.createElement(Yt.Z,{visible:Or,totalCount:Da,usedCount:Br,onCancel:()=>Oo(!1),onOk:()=>Mr(!1)}),b.createElement(bt.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:b.createElement("div",{className:xn.extraHeader},b.createElement(Oe.Z,{align:"middle"},!zt&&!!Xn&&b.createElement(b.Fragment,null,b.createElement(x.op,{onClick:ca,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),b.createElement(x.op,{onClick:nn,shape:"default",type:"text"},b.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),b.createElement("i",{onClick:()=>{const ga=ur=>{xe.default.confirm({centered:!0,icon:null,width:500,zIndex:1101,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ur,onOk:()=>{ja(!1)}})};if(zt){ga("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else Xn?ga("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):ja(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Tt},b.createElement("div",{className:xn.wrap},b.createElement("div",{className:xn.left},b.createElement("div",{className:xn.tip},b.createElement("img",{src:Lt}),b.createElement("span",null,"\u60A8\u597D\uFF01\u6211\u662F\u60A8\u7684\u667A\u80FD\u51FA\u9898\u52A9\u624B\uFF0C\u6211\u5DF2\u5B66\u4E60\u4E86\u5E73\u53F0\u4EE5\u53CA\u4E92\u8054\u7F51\u4E0A\u6D77\u91CF\u7684\u8BD5\u9898\u77E5\u8BC6\u5E93\u3002\u53EF\u4EE5\u6839\u636E\u60A8\u7684\u8981\u6C42\u548C\u4E0A\u4F20\u7684\u6750\u6599\u7075\u6D3B\u751F\u6210\u5404\u7C7B\u8BD5\u9898\u3002\u6B22\u8FCE\u968F\u65F6\u4E0E\u6211\u4E92\u52A8\uFF0C\u8BA9\u6211\u4EEC\u4E00\u8D77\u6253\u9020\u66F4\u9AD8\u6548\u3001\u66F4\u4F18\u8D28\u7684\u8BD5\u9898\uFF01")),b.createElement("div",{className:"mb10 mt20 c-black"},b.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),b.createElement(a.default.TextArea,{style:{height:160},className:"mb20",value:Ut,placeholder:xa,onChange:ga=>{Un(ga.target.value)}}),b.createElement(ze.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${y.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:on,withCredentials:!0,data:{upload_type:1},beforeUpload:Gr,onChange:({file:ga})=>{var ur,za;ga.status!=="removed"&&(ga.status==="done"&&((ur=ga==null?void 0:ga.response)==null?void 0:ur.status)!==0&&(ga.status="error",ga.response=(za=ga==null?void 0:ga.response)==null?void 0:za.message),St([ga]))},onRemove:()=>St([])},b.createElement(At.Z,{title:"\u5355\u6B21\u4EC5\u652F\u6301\u4E0A\u4F201\u4E2A\u6587\u6863\u62161\u5F20\u56FE\u7247\uFF0C\u6587\u6863\u652F\u6301PDF/Word\u683C\u5F0F\uFF0C\u56FE\u7247\u652F\u63011\u5F20\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247"},b.createElement(x.op,{style:{borderRadius:2}},b.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),b.createElement("div",{className:"c-black mt20"},b.createElement("div",{className:"mb10 c-black"},b.createElement("b",null,"\u51FA\u9898\u6570\u91CF"),b.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u4FDD\u8BC1\u51FA\u9898\u4F53\u9A8C\uFF0C\u5355\u6B21\u51FA\u9898\u603B\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7",b.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"30"),"\u9053\uFF09")),b.createElement(Oe.Z,{style:{gap:16}},b.createElement(En.Z,null,b.createElement("label",null,"\u5355\u9009\u9898"),b.createElement(Ke.Z,{min:0,max:10,value:$n,onChange:ba,style:{marginLeft:"8px"}})),b.createElement(En.Z,null,b.createElement("label",null,"\u591A\u9009\u9898"),b.createElement(Ke.Z,{min:0,max:10,value:Ze,onChange:Mt,style:{marginLeft:"8px"}})),b.createElement(En.Z,null,b.createElement("label",null,"\u5224\u65AD\u9898"),b.createElement(Ke.Z,{min:0,max:10,value:Xt,onChange:fn,style:{marginLeft:"8px"}})),b.createElement(En.Z,null,b.createElement("label",null,"\u586B\u7A7A\u9898"),b.createElement(Ke.Z,{min:0,max:10,value:Rt,onChange:Qn,style:{marginLeft:"8px"}})),b.createElement(En.Z,null,b.createElement("label",null,"\u7B80\u7B54\u9898"),b.createElement(Ke.Z,{min:0,max:10,value:Kn,onChange:Je,style:{marginLeft:"8px"}})))),zt?b.createElement("div",{onClick:pr,className:xn.bottomBtn},b.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):gr?b.createElement("div",{className:`${xn.bottomBtn} ${xn.disabled}`},b.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):b.createElement("div",{onClick:()=>{Mr()},className:xn.bottomBtn},b.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),b.createElement(wn.Z,{onStatusChange:ta,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!Ua,noRestrictModal:lr,stringTransformer:Wt.o,onError:ga=>{Object.prototype.toString.call(ga)==="[object Object]"&&ga.status===-9&&lr(ga.data)}}))),b.createElement(bt.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:_a},b.createElement(Oe.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},b.createElement("img",{src:ae(36413),alt:"\u667A\u80FD\u51FA\u9898"}),b.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u9898")),b.createElement(fr,{stickyTop:-24,hideWordFeatures:!0,dataSource:Ca,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>Sn(!1),onSuccess:()=>{Sn(!1),ja(!1)}}),b.createElement("div",{style:{height:70}})),Qr("\u5904\u7406\u4E2D"))}),an=Object.defineProperty,tt=Object.defineProperties,ht=Object.getOwnPropertyDescriptors,Jn=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,Qt=Object.prototype.propertyIsEnumerable,kt=(oa,Zn,da)=>Zn in oa?an(oa,Zn,{enumerable:!0,configurable:!0,writable:!0,value:da}):oa[Zn]=da,Wn=(oa,Zn)=>{for(var da in Zn||(Zn={}))dn.call(Zn,da)&&kt(oa,da,Zn[da]);if(Jn)for(var da of Jn(Zn))Qt.call(Zn,da)&&kt(oa,da,Zn[da]);return oa},ra=(oa,Zn)=>tt(oa,ht(Zn)),tn=(oa,Zn,da)=>new Promise((Aa,xa)=>{var _a=St=>{try{on(da.next(St))}catch(Tt){xa(Tt)}},Sn=St=>{try{on(da.throw(St))}catch(Tt){xa(Tt)}},on=St=>St.done?Aa(St.value):Promise.resolve(St.value).then(_a,Sn);on((da=da.apply(oa,Zn)).next())});const Ba=oa=>{oa.preventDefault();let da=(oa.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,da)},Ka=oa=>{oa.key==="Enter"&&oa.preventDefault()},Fa=({children:oa,style:Zn})=>b.createElement("div",{className:he.leftBox,style:Zn,onPaste:Ba},oa),jn=({children:oa,style:Zn,className:da})=>b.createElement("div",{className:Be()(he.rightBox,da),style:Zn,onPaste:Ba},oa),Ha=({className:oa,style:Zn={},width:da=1200,onCancel:Aa=()=>{},onSuccess:xa=()=>{},gather:_a={},mode:Sn=1,stickyTop:on=0,subDisciplineId:St=[],hideWordFeatures:Tt,dataSource:ja=[],customLeftHeadNode:Ca,customRightHeadNode:Wa,customLeftContent:Da,hideRecognition:Ta=!1,onExchange:Br,isSingleSelection:ar=!1,underpinBackgroundStyle:Or={},headExtraNode:Oo,isRefreshItemBank:Ut=!1,okText:Un="\u786E\u5B9A\u5BFC\u5165",onSave:$n})=>{var ba;const[Ze,Mt]=(0,b.useState)(1),[Xt,fn]=(0,b.useState)(0),[Rt,Qn]=(0,b.useState)(""),[Kn,Je]=(0,b.useState)(!1),[nt,Xe]=(0,b.useState)([]),[rn,Cn]=(0,b.useState)([]),[Nn,wa]=(0,b.useState)(!1),[Ea,ta]=(0,b.useState)(!1),[ya,Xn]=(0,b.useState)(!1),[zt,ka]=(0,b.useState)(!1),[pr,ho]=(0,b.useState)([]),[qa,Ht]=(0,b.useState)(1),[Qr,Ua]=(0,b.useState)(!1),[Sr,lr]=(0,b.useState)(!0),[Gr,Lr]=(0,b.useState)(0),[no,Mr]=(0,b.useState)(!1),[ca]=Re.default.useForm(),[nn]=Re.default.useForm(),gr=(0,b.useRef)(null),ga=(0,b.useRef)(null),ur=(0,b.useRef)(),za=(0,b.useRef)(null),vn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],na=["C","C++","Java","Python","JavaScript","Ruby"];(0,b.useEffect)(()=>{ja!=null&&ja.length&&So(ja)},[ja]),(0,b.useEffect)(()=>{Ze===2&&gr.current.focus()},[Ze]),(0,b.useEffect)(()=>{ya&&_n()},[ya]);const Na=()=>{if(Ze===1){We.ZP.warning("\u8BF7\u5148\u4E0A\u4F20\u8BD5\u9898\uFF01");return}xe.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u6E05\u7A7A\u64CD\u4F5C\u5C06\u5220\u9664\u8BD5\u9898\u7F16\u8F91\u533A\u57DF\u7684\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u5B9A\u4E00\u952E\u6E05\u7A7A\u5417\uFF1F",onOk:()=>tn(void 0,null,function*(){Mt(1)})})},_n=()=>tn(void 0,null,function*(){const me=yield(0,ie.ZP)("/api/disciplines.json",{method:"get",params:{source:Sn===1?"new_question":"subject"}});ho(me.disciplines||[])}),sr=me=>{const gt=[],Bt=(ln,pt)=>{ln.length>=2&>.push(ln.join(""));for(let Ln=pt;Ln(me=me||"",me=String(me),me=me.replace(/\s+/g,""),me),Ar=me=>(me=me||"",me=String(me),me=me.replace(/
/g,""),me=me.replace(/
/g,` `),me=me.replace(/<\/div>/g,` -`),me=mr(me),me),Ur=me=>me.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),mr=me=>me.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"),Yo=me=>{var gt;const Bt=me.clipboardData;if(Bt){const on=Bt.types.toString(),pt=Bt.items;if(on==="Files"||Bt.types.indexOf("Files")>-1){me.preventDefault();try{let Ln=pt[1];((gt=pt[0])==null?void 0:gt.kind)==="file"&&(Ln=pt[0]);const yn=Ln.getAsFile();(0,st.I)(yn,mn=>{var Fn;if(mn.id){if(((Fn=yn==null?void 0:yn.type)==null?void 0:Fn.indexOf("image"))>-1){const Oa=``;document.execCommand("insertText",!1,Oa)}}else(mn==null?void 0:mn.status)===401&&(document.location.href="/user/login")})}catch(Ln){We.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function Mo(me,gt){return en(this,null,function*(){if(typeof me=="string")return yield gt(me);if(typeof me!="object"||me===null)return me;if(Array.isArray(me))return yield Promise.all(me.map(pt=>en(this,null,function*(){return yield Mo(pt,gt)})));const Bt={};for(const on in me)if(Object.prototype.hasOwnProperty.call(me,on)){const pt=me[on];typeof pt=="string"?Bt[on]=yield gt(pt):typeof pt=="object"?Bt[on]=yield Mo(pt,gt):Bt[on]=pt}return Bt})}const Ei=()=>en(void 0,null,function*(){var me;Je(!0),Qn("\u5904\u7406\u4E2D"),yield new Promise(on=>setTimeout(on,1e3));let gt=(me=ga.current)==null?void 0:me.querySelectorAll('[data-text="edit"]'),Bt="";try{gt.forEach(function(on){var pt,Ln,yn,mn;const Fn=on.cloneNode(!0),Oa=Fn.querySelectorAll("span.edu_latex");for(let Fr of Oa){const ma=Fr.getAttribute("title"),va=document.createTextNode(ma),or=Fr;(Ln=(pt=or.parentNode)==null?void 0:pt.replaceChild)==null||Ln.call(pt,va,or)}const cr=Fn.querySelectorAll("span[style]");for(let Fr of cr)if(Fr.style.fontFamily){const ma=Fr.innerHTML,va=document.createTextNode(ma),or=Fr;(mn=(yn=or.parentNode)==null?void 0:yn.replaceChild)==null||mn.call(yn,va,or)}Fn==null||Fn.childNodes.forEach(function(Fr){Fr.nodeType===Node.ELEMENT_NODE&&Fr.localName!=="h5"&&Fr.localName!=="h4"?Bt+=`

${Fr.innerHTML}

`:Fr.nodeType===Node.TEXT_NODE&&(Bt+=`

${Fr.textContent}

`)})}),jo("/api/intelligent_imports/import.json",{html:mr(Bt)})}catch(on){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",on)}}),xr=me=>{let gt=me.filter(Bt=>!!(Bt!=null&&Bt.type));return gt=gt.map(Bt=>{var on;const pt=(on=wr.find(yn=>yn.id===(Bt==null?void 0:Bt.type)))==null?void 0:on.deal,Ln=ra(Wn({},Bt),{id:String(Math.random()).slice(-6),knowledgePoint:tr(Bt==null?void 0:Bt.knowledgePoint)});return pt?pt(Ln):Ln}),gt},Nr=()=>{if(Ze===1){We.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!");return}Be.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u91CD\u65B0\u8BC6\u522B\u4F1A\u8986\u76D6\u53F3\u4FA7\u5DF2\u8BC6\u522B\u7ED3\u679C\uFF0C\u5305\u62EC\u4EBA\u5DE5\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u786E\u5B9A\u91CD\u65B0\u8BC6\u522B\u5417?",onOk:Ei})},Eo=()=>b.createElement("div",{className:he.row},b.createElement("div",{className:he.leftLayout},b.createElement(Fa,{style:{height:675}},Ze===1&&b.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>Ot(2)},b.createElement("div",{style:{color:"#9096A3",fontSize:12}},"1.\u672C\u529F\u80FD\u652F\u6301\u5BFC\u5165\u7684\u9898\u578B\uFF1A\u5355\u9009\u9898\u3001\u591A\u9009\u9898\u3001\u586B\u7A7A\u9898\u3001\u5224\u65AD\u9898\u3001\u7B80\u7B54\u9898\u3001 \u7EC4\u5408\u9898\u3001\u7F16\u7A0B\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u3002",b.createElement("br",null),"2.\u82E5\u8981\u5BFC\u5165\u7EC4\u5408\u9898\uFF0C\u8BF7\u5728\u9898\u76EE\u524D\u540E\u4F7F\u7528\u4E00\u5BF9\u201C","{{\u201D\u3001\u201C}}","\u201D\u5C06\u5185\u5BB9\u6807\u51FA\uFF1B\u5927\u9898\u9898\u5E72\u548C\u5C0F\u9898\u9898\u5E72\u4E4B\u95F4\u4E0D\u9700\u8981\u7A7A\u884C\uFF1B\u5927\u9898\u548C\u5C0F\u9898\u9898\u5E72\u90FD\u9700\u6807\u6CE8\u9898\u53F7\uFF1B\u5C0F\u9898\u7B54\u6848\u53EF\u8DDF\u5728\u5C0F\u9898\u9898\u5E72\u540E\uFF0C\u5E76\u7528\u7A7A\u683C\u4E0E\u9898\u5E72\u5185\u5BB9\u9694\u5F00\u3002\u8303\u4F8B\u53EF\u53C2\u8003\u63A8\u8350\u683C\u5F0F\u3002",b.createElement("br",null),"3.\u5BFC\u5165\u652F\u6301\u6587\u672C\u3001\u56FE\u7247\u3001\u516C\u5F0F\u3002\u9898\u76EE\u7ED3\u6784\u652F\u6301\u8BC6\u522B\u7B54\u6848\u3001\u89E3\u6790\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9\u3002",b.createElement("br",null),"4.\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u4FEE\u6539\u9898\u76EE\u5185\u5BB9\u540E\u91CD\u65B0\u8BC6\u522B\uFF0C\u6216\u4E0B\u8F7D\u63A8\u8350\u683C\u5F0F\uFF0C\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u5BFC\u5165\u8BC6\u522B\u3002",b.createElement("br",null)),b.createElement("div",{className:he.imgBox,style:{marginTop:75}},b.createElement("img",{width:56,src:te}),b.createElement("span",null,"\u7F16\u8F91\u533A"))),Ze===2&&b.createElement("div",{"data-text":"edit",onBlur:()=>{gr.current.innerHTML||Ot(1)},ref:gr,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),b.createElement("div",{className:he.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},b.createElement("div",{className:he.imgBox,style:{marginTop:240}},b.createElement("img",{width:56,src:oe}),b.createElement("span",null,"\u9884\u89C8\u533A")))),Ja=(me,gt,Bt,on)=>{var pt;console.log(me,gt,Bt,on,"onDataChange\u4FEE\u6539\u6570\u503C");const Ln=JSON.parse(JSON.stringify(an));on===void 0?Ln[gt][me]=Bt:Ln[gt].questions[on][me]=Bt;const yn=Wn({},Ln[gt]),mn=(pt=wr.find(Fn=>Fn.id===(yn==null?void 0:yn.type)))==null?void 0:pt.deal;Ln[gt]=mn(yn),Cn(Ln)},Hr=(me,gt,Bt)=>{var on;const pt=Bt!==void 0,Ln=(on=wr.find(Fn=>Fn.id===(me==null?void 0:me.type)))==null?void 0:on.type,yn=`${gt+1}.${Bt===void 0?"":Bt+1+"."}`,mn=`${(me==null?void 0:me.type)==="7"?"{{":""}${yn}\u3010${Ln}\u3011${(me==null?void 0:me.question)||""}`;return b.createElement(b.Fragment,null,pt&&b.createElement("h4",{contentEditable:!0}),b.createElement(be,{id:me==null?void 0:me.id,tagName:"div",value:mn}))},Yr=(me,gt)=>en(void 0,null,function*(){var Bt;const on=yield Br(me,gt),pt=(Bt=on==null?void 0:on.data)==null?void 0:Bt.content;if(pt!=null&&pt.length){const Ln=xr(pt)[0];tt.splice(gt,1,Ln),an.splice(gt,1,Ln),Xe([...tt]),Cn([...an])}}),hr=(me,gt,Bt)=>{var on;const pt=Bt!==void 0,Ln=(on=wr.find(mn=>mn.id===(me==null?void 0:me.type)))==null?void 0:on.type,yn=`${gt+1}.${Bt===void 0?"":Bt+1+"."}`;return pt?b.createElement("div",{style:{padding:"10px 18px"}},`${yn}\u3010${Ln}\u3011`,b.createElement(be,{id:me==null?void 0:me.id,tagName:"span",className:he.edit,onBlur:mn=>Ja("question",gt,mn,Bt),value:(me==null?void 0:me.question)||""})):b.createElement(b.Fragment,null,b.createElement("div",{className:he.actionHead},b.createElement("div",{className:"c-light-primary"},`${yn}\u3010${Ln}\u3011`),Sn!==1&&b.createElement(Ke.Z,{disabled:(me==null?void 0:me.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:mn=>Ja("score",gt,mn,Bt),value:me==null?void 0:me.score}),b.createElement(Oe.Z,{align:"middle",style:{marginLeft:"auto"}},!!Br&&b.createElement("span",{className:"current c-light-primary mr30",onClick:()=>Yr(me,gt)},b.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),b.createElement(De.default,{onChange:mn=>Ja("checked",gt,mn.target.checked,Bt),checked:!!(me!=null&&me.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),b.createElement(be,{id:me==null?void 0:me.id,tagName:"div",style:{padding:"10px 18px"},className:he.edit,onBlur:mn=>Ja("question",gt,mn,Bt),value:me==null?void 0:me.question}))},Kr=(me,gt,Bt)=>b.createElement(b.Fragment,null,["0","1","2","4"].includes(me==null?void 0:me.type)&&b.createElement(be,{id:me==null?void 0:me.id,value:`\u7B54\u6848\uFF1A${gt||""}`,tagName:"p"}),!Bt&&b.createElement(be,{id:me==null?void 0:me.id,value:`\u96BE\u5EA6\uFF1A${(me==null?void 0:me.difficulty)||""}`,tagName:"p"}),(me==null?void 0:me.type)!=="7"&&b.createElement(be,{id:me==null?void 0:me.id,value:`\u89E3\u6790\uFF1A${(me==null?void 0:me.analyze)||""}`,tagName:"p"}),!Bt&&b.createElement(be,{id:me==null?void 0:me.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(me==null?void 0:me.knowledgePoint)||""}`,tagName:"p"})),xt=(me,gt,Bt,on)=>{const pt=on!==void 0,Ln=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],yn=pt&&!me.last&&!me.errorMsg?{marginBottom:10}:{},mn=Ln.map(Fn=>({key:Fn,label:Fn,onClick:()=>Ja("difficulty",Bt,Fn,on)}));return b.createElement("div",{className:he.liWrap,style:yn},["4"].includes(me==null?void 0:me.type)&&b.createElement("div",{className:he.li},b.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),b.createElement(be,{id:me==null?void 0:me.id,tagName:"div",className:`${he.edit} c-black`,onBlur:Fn=>Ja("answer",Bt,[Fn],on),value:gt})),!pt&&b.createElement("div",{className:he.li},b.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(ke.Z,{menu:{items:mn}},b.createElement("span",{className:"c-light-primary"},me==null?void 0:me.difficulty,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(me==null?void 0:me.type)!=="7"&&b.createElement("div",{className:he.li},b.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),b.createElement(be,{id:me==null?void 0:me.id,tagName:"div",className:`${he.edit} c-grey-333`,onBlur:Fn=>Ja("analyze",Bt,Fn,on),value:me==null?void 0:me.analyze})),!pt&&b.createElement("div",{onKeyDown:Ka,className:he.li},b.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),b.createElement(be,{id:me==null?void 0:me.id,tagName:"div",value:(me==null?void 0:me.knowledgePoint)||"",className:`${he.edit} c-grey-333`,onBlur:Fn=>Ja("knowledgePoint",Bt,tr(Ar(Fn)),on)})))},yt=me=>b.createElement(b.Fragment,null,typeof(me==null?void 0:me.errorMsg)=="string"&&!!(me!=null&&me.errorMsg)&&b.createElement("h5",{contentEditable:!1},b.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),b.createElement("div",null,me==null?void 0:me.errorMsg))),Et=me=>b.createElement(b.Fragment,null,typeof(me==null?void 0:me.errorMsg)=="string"&&!!(me!=null&&me.errorMsg)&&b.createElement("h5",null,b.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),b.createElement("div",null,me==null?void 0:me.errorMsg))),Mn=(me,gt,Bt,on)=>{let pt="flex";return(ar&&Gr!==on||Nn&&!(Bt!=null&&Bt.errorMsg))&&(pt="none"),b.createElement("div",{className:he.row,style:{display:pt}},b.createElement("div",{className:he.leftLayout},Da||b.createElement(Fa,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},me))),b.createElement("div",{className:he.rightLayout},b.createElement(jn,{className:Bt!=null&&Bt.errorMsg?he.error:""},gt)))},wr=[{id:"0",type:"\u5355\u9009\u9898",element:(me,gt,Bt)=>{var on,pt;const Ln=Bt!==void 0;let yn=(on=me==null?void 0:me.answer)==null?void 0:on[0];const mn=b.createElement(b.Fragment,null,Hr(me,gt,Bt),(pt=me==null?void 0:me.options)==null?void 0:pt.map((Fr,ma)=>b.createElement(be,{id:me==null?void 0:me.id,key:ma,value:`${vn[ma]}.${Fr}`,tagName:"p"})),Kr(me,yn,Ln),yt(me));let Fn=Ln?me:an[gt];const Oa=Fn==null?void 0:Fn.options,cr=b.createElement(b.Fragment,null,hr(Fn,gt,Bt),Oa==null?void 0:Oa.map((Fr,ma)=>{var va;return b.createElement("div",{key:ma,className:he.option},b.createElement("aside",{className:((va=Fn==null?void 0:Fn.answer)==null?void 0:va[0])===vn[ma]?he.active:"",onClick:()=>Ja("answer",gt,[vn[ma]],Bt)},vn[ma]),b.createElement(be,{id:Fn==null?void 0:Fn.id,tagName:"div",className:`${he.text}`,onBlur:or=>{Oa[ma]=or,Ja("options",gt,Oa,Bt)},value:Fr}))}),xt(Fn,"",gt,Bt),Et(Fn));return Ln?[mn,cr]:Mn(mn,cr,Fn,gt)},deal:me=>{var gt,Bt,on;me.score=me.score===void 0?2:me.score;let pt=tr((gt=me==null?void 0:me.answer)==null?void 0:gt[0]).toUpperCase();me.answer=pt?[pt]:[];let Ln=[];if(!(me!=null&&me.options))Ln.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{me.options=(Bt=me.options)==null?void 0:Bt.slice(0,8);const yn=me.options.map(Fn=>Fn==null?void 0:Fn.trim().replace(/^\s+|\s+$/g,""));new Set(yn).size!==yn.length&&Ln.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return pt||Ln.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),pt&&(vn.slice(0,((on=me==null?void 0:me.options)==null?void 0:on.length)||8).includes(pt)||Ln.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D")),tr(me==null?void 0:me.question)||Ln.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),me.errorMsg=Ln.join(` -`),me}},{id:"1",type:"\u591A\u9009\u9898",element:(me,gt,Bt)=>{var on,pt;const Ln=Bt!==void 0;let yn=(on=me==null?void 0:me.answer)==null?void 0:on[0];const mn=b.createElement(b.Fragment,null,Hr(me,gt,Bt),(pt=me==null?void 0:me.options)==null?void 0:pt.map((Fr,ma)=>b.createElement(be,{id:me==null?void 0:me.id,key:ma,value:`${vn[ma]}.${Fr}`,tagName:"p"})),Kr(me,yn,Ln),yt(me));let Fn=Ln?me:an[gt];const Oa=Fn==null?void 0:Fn.options,cr=b.createElement(b.Fragment,null,hr(Fn,gt,Bt),Oa==null?void 0:Oa.map((Fr,ma)=>{var va,or;return b.createElement("div",{key:ma,className:he.option},b.createElement("aside",{className:(or=(va=Fn==null?void 0:Fn.answer)==null?void 0:va[0])!=null&&or.includes(vn[ma])?he.active:"",onClick:()=>{var Er;let Ko=((Er=Fn==null?void 0:Fn.answer)==null?void 0:Er[0])||"";const li=vn[ma];Ko.includes(li)?Ko=Ko.replace(new RegExp(li,"g"),""):Ko+=li,Ko=Ko.split("").sort().join(""),Ja("answer",gt,[Ko],Bt)}},vn[ma]),b.createElement(be,{id:Fn==null?void 0:Fn.id,tagName:"div",className:`${he.text}`,onBlur:Er=>{Oa[ma]=Er,Ja("options",gt,Oa,Bt)},value:Fr}))}),xt(Fn,"",gt,Bt),Et(Fn));return Ln?[mn,cr]:Mn(mn,cr,Fn,gt)},deal:me=>{var gt,Bt,on;me.score=me.score===void 0?2:me.score;let pt=tr((gt=me==null?void 0:me.answer)==null?void 0:gt[0]).toUpperCase().split("").sort().join("");me.answer=pt?[pt]:[];let Ln=[];if(!(me!=null&&me.options))Ln.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{me.options=(Bt=me.options)==null?void 0:Bt.slice(0,8);const yn=me.options.map(Fn=>Fn==null?void 0:Fn.trim().replace(/^\s+|\s+$/g,""));new Set(yn).size!==yn.length&&Ln.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(pt||Ln.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),pt){const yn=vn.slice(0,((on=me==null?void 0:me.options)==null?void 0:on.length)||8);sr(yn).includes(pt)||Ln.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D")}return tr(me==null?void 0:me.question)||Ln.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),me.errorMsg=Ln.join(` -`),me}},{id:"2",type:"\u5224\u65AD\u9898",element:(me,gt,Bt)=>{var on,pt;const Ln=Bt!==void 0;let yn=(on=me==null?void 0:me.answer)==null?void 0:on[0];const mn=b.createElement(b.Fragment,null,Hr(me,gt,Bt),Kr(me,yn,Ln),yt(me));let Fn=Ln?me:an[gt];const Oa=["\u6B63\u786E","\u9519\u8BEF"];let cr=((pt=Fn==null?void 0:Fn.answer)==null?void 0:pt[0])||"";["\u6B63\u786E","\u5BF9","T","True","t","true"].includes(cr)?cr="\u6B63\u786E":["\u9519\u8BEF","\u9519","T","true","t","false"].includes(cr)&&(cr="\u9519\u8BEF");const Fr=b.createElement(b.Fragment,null,hr(Fn,gt,Bt),Oa==null?void 0:Oa.map((ma,va)=>b.createElement("div",{key:va,className:he.option},b.createElement("aside",{style:{borderRadius:2},className:cr===ma?he.active:"",onClick:()=>Ja("answer",gt,[ma],Bt)},ma==="\u6B63\u786E"?"T":"F"),b.createElement("div",{style:{pointerEvents:"none"},className:`${he.text}`},ma))),xt(Fn,"",gt,Bt),Et(Fn));return Ln?[mn,Fr]:Mn(mn,Fr,Fn,gt)},deal:me=>{var gt;me.score=me.score===void 0?2:me.score;let Bt=tr((gt=me==null?void 0:me.answer)==null?void 0:gt[0]);me.answer=Bt?[Bt]:[];let on=[];return Bt||on.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),Bt&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(Bt)&&on.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),tr(me==null?void 0:me.question)||on.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),me.errorMsg=on.join(` -`),me}},{id:"3",type:"\u586B\u7A7A\u9898",element:(me,gt,Bt)=>{var on,pt;const Ln=Bt!==void 0,yn=b.createElement(b.Fragment,null,Hr(me,gt,Bt),(on=me==null?void 0:me.answer)==null?void 0:on.map((Oa,cr)=>b.createElement(be,{id:me==null?void 0:me.id,key:cr,tagName:"p",value:`\u7B54\u6848${cr+1}\uFF1A${Oa.text||""}`})),Kr(me,"",Ln),yt(me));let mn=Ln?me:an[gt];const Fn=b.createElement(b.Fragment,null,hr(mn,gt,Bt),(pt=mn==null?void 0:mn.answer)==null?void 0:pt.map((Oa,cr)=>b.createElement("div",{key:cr,className:he.option},b.createElement("aside",{className:he.fill},"\u586B\u7A7A\u9879",cr+1),Oa.model===1&&b.createElement(be,{id:mn==null?void 0:mn.id,tagName:"div",onBlur:Fr=>{mn.answer[cr].latex=Ar(Fr),Ja("answer",gt,mn.answer,Bt)},className:`${he.text}`,value:Oa.latex}),Oa.model===2&&b.createElement(Le.Z,{value:Oa.latex,onChange:Fr=>{mn.answer[cr].latex=Fr,Ja("answer",gt,mn.answer,Bt)}}))),xt(mn,"",gt,Bt),Et(mn));return Ln?[yn,Fn]:Mn(yn,Fn,mn,gt)},deal:me=>{var gt,Bt,on,pt;me.score=me.score===void 0?2:me.score,me.question=(gt=me.question)==null?void 0:gt.replaceAll("\u2581","_");const Ln=(Bt=me.answer)==null?void 0:Bt.map(mn=>{if(Object.prototype.toString.call(mn)==="[object Object]")return mn;mn=mn==null?void 0:mn.trim();const Fn={model:1,text:mn,latex:mn};return mn.startsWith("$$")&&mn.endsWith("$$")||mn.startsWith("`$$")&&mn.endsWith("$$`")?(Fn.model=2,Fn.latex=mn.slice(2,-2)):Fn.latex=Ar(mn),Fn});me.answer=Ln;let yn=[];return Ln||yn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),tr(me==null?void 0:me.question)?me!=null&&me.question.includes("_")?(on=me==null?void 0:me.answer)!=null&&on.length&&((me==null?void 0:me.question.match(/_+/g))||[]).length!==((pt=me==null?void 0:me.answer)==null?void 0:pt.length)&&yn.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):yn.push("\u586B\u7A7A\u9879\u672A\u8BBE\u7F6E\uFF0C\u8BF7\u4F7F\u7528\u82F1\u6587\u4E0B\u5212\u7EBF\u201C___\u201D\u8868\u793A\u586B\u7A7A\u9879"):yn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),me.errorMsg=yn.join(` -`),me}},{id:"4",type:"\u7B80\u7B54\u9898",element:(me,gt,Bt)=>{var on,pt;const Ln=Bt!==void 0;let yn=(on=me==null?void 0:me.answer)==null?void 0:on[0];const mn=b.createElement(b.Fragment,null,Hr(me,gt,Bt),Kr(me,yn,Ln),yt(me));let Fn=Ln?me:an[gt];const Oa=b.createElement(b.Fragment,null,hr(Fn,gt,Bt),xt(Fn,(pt=Fn==null?void 0:Fn.answer)==null?void 0:pt[0],gt,Bt),Et(Fn));return Ln?[mn,Oa]:Mn(mn,Oa,Fn,gt)},deal:me=>{me.score=me.score===void 0?5:me.score;let gt=[];return tr(me==null?void 0:me.question)||gt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),me.errorMsg=gt.join(` -`),me}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(me,gt)=>{var Bt,on;const pt=an[gt],Ln=na.slice(0,4).map(yn=>({key:yn,label:yn,onClick:()=>Ja("platform",gt,yn)}));return b.createElement("div",{className:he.row,style:{display:Nn?pt!=null&&pt.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:he.leftLayout},b.createElement(Fa,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},Hr(me,gt),b.createElement(be,{id:me==null?void 0:me.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(me==null?void 0:me.description)||""}`,tagName:"p"}),Kr(me),b.createElement(be,{id:me==null?void 0:me.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${me==null?void 0:me.timeLimit}`,tagName:"p"}),b.createElement(be,{id:me==null?void 0:me.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(me==null?void 0:me.platform)||""}`,tagName:"p"}),b.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),b.createElement("h4",null),b.createElement(be,{id:me==null?void 0:me.id,value:(me==null?void 0:me.code)||"",tagName:"div"}),(Bt=me==null?void 0:me.inputs)==null?void 0:Bt.map((yn,mn)=>{var Fn;return b.createElement(b.Fragment,{key:mn},b.createElement("h4",null),b.createElement(be,{id:me==null?void 0:me.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${mn+1})\u8F93\u5165\uFF1A${yn||""}`,tagName:"div"}),b.createElement(be,{id:me==null?void 0:me.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${mn+1})\u8F93\u51FA\uFF1A${((Fn=me==null?void 0:me.outputs)==null?void 0:Fn[mn])||""}`,tagName:"div"}))}),yt(me)))),b.createElement("div",{className:he.rightLayout},b.createElement(jn,{className:pt!=null&&pt.errorMsg?he.error:""},hr(pt,gt),b.createElement("div",{className:he.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},b.createElement("div",{className:he.li},b.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),b.createElement(be,{className:he.edit,id:pt==null?void 0:pt.id,value:pt==null?void 0:pt.description,tagName:"div",onBlur:yn=>Ja("description",gt,yn)}))),xt(pt,"",gt),b.createElement("div",{className:he.liWrap},b.createElement("div",{className:he.li},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(be,{className:he.edit,id:pt==null?void 0:pt.id,value:pt==null?void 0:pt.timeLimit,tagName:"div",onBlur:yn=>Ja("timeLimit",gt,Ar(yn))})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(ke.Z,{menu:{items:Ln}},b.createElement("span",{className:"c-light-primary"},pt==null?void 0:pt.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:he.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),b.createElement(be,{className:he.edit,id:pt==null?void 0:pt.id,value:(pt==null?void 0:pt.code)||"",onBlur:yn=>Ja("code",gt,Ar(yn)),tagName:"div"}))),(on=pt==null?void 0:pt.inputs)==null?void 0:on.map((yn,mn)=>{var Fn;return b.createElement("div",{className:he.liWrap,key:mn},b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",mn+1,")\u8F93\u5165\uFF1A"),b.createElement(be,{id:pt==null?void 0:pt.id,value:yn||"",className:he.edit,onBlur:Oa=>{const cr=[...(pt==null?void 0:pt.inputs)||[]];cr[mn]=Ar(Oa),Ja("inputs",gt,cr)},tagName:"div"})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",mn+1,")\u8F93\u51FA\uFF1A"),b.createElement(be,{id:pt==null?void 0:pt.id,value:((Fn=pt==null?void 0:pt.outputs)==null?void 0:Fn[mn])||"",className:he.edit,onBlur:Oa=>{const cr=[...(pt==null?void 0:pt.outputs)||[]];cr[mn]=Ar(Oa),Ja("outputs",gt,cr)},tagName:"div"})))}),Et(pt))))},deal:me=>{var gt,Bt,on;me.score=me.score===void 0?10:me.score,me.code=(gt=me.code)==null?void 0:gt.trim();let pt=[];tr(me==null?void 0:me.question)?((Bt=me==null?void 0:me.question)==null?void 0:Bt.length)>60&&pt.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):pt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),tr(me==null?void 0:me.description)||pt.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const Ln=tr(String((me==null?void 0:me.timeLimit)||""));if(me.timeLimit=Ln,(!Ln||Ln&&!["3","4","5","6","7","8","9","10"].includes(Ln))&&pt.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),me.platform=tr(me==null?void 0:me.platform),me!=null&&me.platform){const yn=["c","c++","java","python"],mn=(on=me==null?void 0:me.platform)==null?void 0:on.toLowerCase(),Fn=yn.findIndex(Oa=>Oa===mn);Fn>-1?me.platform=na[Fn]:pt.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else pt.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(me!=null&&me.inputs)||!(me!=null&&me.outputs))me.inputs=[],me.outputs=[],pt.push("\u672A\u8BC6\u522B\u5230\u6D4B\u8BD5\u7528\u4F8B\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u5165\uFF1A1\uFF1B\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u51FA\uFF1A2");else{const yn=Math.min(me.inputs.length,me.outputs.length);me.inputs=me.inputs.slice(0,yn),me.outputs=me.outputs.slice(0,yn),me.outputs.some(mn=>!tr(mn))&&pt.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return me.errorMsg=pt.join(` -`),me}},{id:"7",type:"\u7EC4\u5408\u9898",element:(me,gt)=>{var Bt,on;const pt=an[gt];return b.createElement("div",{className:he.row,style:{display:Nn?pt!=null&&pt.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:he.leftLayout},b.createElement(Fa,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},Hr(me,gt),Kr(me),(Bt=me==null?void 0:me.questions)==null?void 0:Bt.map((Ln,yn)=>{var mn;const Fn=(mn=wr.find(Oa=>Oa.id===(Ln==null?void 0:Ln.type)))==null?void 0:mn.element;return b.createElement(b.Fragment,{key:`left-${me.id}-${yn}`},Fn(Ln,gt,yn)[0])}),yt(me),b.createElement("p",{contentEditable:!0},"}}")))),b.createElement("div",{className:he.rightLayout},b.createElement(jn,{className:pt!=null&&pt.errorMsg?he.error:""},hr(pt,gt),xt(pt,"",gt),(on=pt==null?void 0:pt.questions)==null?void 0:on.map((Ln,yn)=>{var mn;const Fn=(mn=wr.find(Oa=>Oa.id===(Ln==null?void 0:Ln.type)))==null?void 0:mn.element;return b.createElement(b.Fragment,{key:`right-${pt.id}-${yn}`},Fn(Ln,gt,yn)[1])}),Et(pt))))},deal:me=>{var gt,Bt,on,pt,Ln;const yn=xr,mn=[...wr],Fn=mn.findIndex(ma=>ma.id==="0"),Oa=mn.findIndex(ma=>ma.id==="1");if(Fn!==-1){const ma=mn[Fn].deal;mn[Fn].deal=va=>{const or=ma(va);return or.errorMsg&&(or.errorMsg=or.errorMsg.split(` +`),me=mr(me),me),Ur=me=>me.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),mr=me=>me.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"),Yo=me=>{var gt;const Bt=me.clipboardData;if(Bt){const ln=Bt.types.toString(),pt=Bt.items;if(ln==="Files"||Bt.types.indexOf("Files")>-1){me.preventDefault();try{let Ln=pt[1];((gt=pt[0])==null?void 0:gt.kind)==="file"&&(Ln=pt[0]);const An=Ln.getAsFile();(0,st.I)(An,mn=>{var yn;if(mn.id){if(((yn=An==null?void 0:An.type)==null?void 0:yn.indexOf("image"))>-1){const Oa=``;document.execCommand("insertText",!1,Oa)}}else(mn==null?void 0:mn.status)===401&&(document.location.href="/user/login")})}catch(Ln){We.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function Mo(me,gt){return tn(this,null,function*(){if(typeof me=="string")return yield gt(me);if(typeof me!="object"||me===null)return me;if(Array.isArray(me))return yield Promise.all(me.map(pt=>tn(this,null,function*(){return yield Mo(pt,gt)})));const Bt={};for(const ln in me)if(Object.prototype.hasOwnProperty.call(me,ln)){const pt=me[ln];typeof pt=="string"?Bt[ln]=yield gt(pt):typeof pt=="object"?Bt[ln]=yield Mo(pt,gt):Bt[ln]=pt}return Bt})}const Ei=()=>tn(void 0,null,function*(){var me;Je(!0),Qn("\u5904\u7406\u4E2D"),yield new Promise(ln=>setTimeout(ln,1e3));let gt=(me=ga.current)==null?void 0:me.querySelectorAll('[data-text="edit"]'),Bt="";try{gt.forEach(function(ln){var pt,Ln,An,mn;const yn=ln.cloneNode(!0),Oa=yn.querySelectorAll("span.edu_latex");for(let Fr of Oa){const ma=Fr.getAttribute("title"),va=document.createTextNode(ma),or=Fr;(Ln=(pt=or.parentNode)==null?void 0:pt.replaceChild)==null||Ln.call(pt,va,or)}const cr=yn.querySelectorAll("span[style]");for(let Fr of cr)if(Fr.style.fontFamily){const ma=Fr.innerHTML,va=document.createTextNode(ma),or=Fr;(mn=(An=or.parentNode)==null?void 0:An.replaceChild)==null||mn.call(An,va,or)}yn==null||yn.childNodes.forEach(function(Fr){Fr.nodeType===Node.ELEMENT_NODE&&Fr.localName!=="h5"&&Fr.localName!=="h4"?Bt+=`

${Fr.innerHTML}

`:Fr.nodeType===Node.TEXT_NODE&&(Bt+=`

${Fr.textContent}

`)})}),jo("/api/intelligent_imports/import.json",{html:mr(Bt)})}catch(ln){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",ln)}}),xr=me=>{let gt=me.filter(Bt=>!!(Bt!=null&&Bt.type));return gt=gt.map(Bt=>{var ln;const pt=(ln=wr.find(An=>An.id===(Bt==null?void 0:Bt.type)))==null?void 0:ln.deal,Ln=ra(Wn({},Bt),{id:String(Math.random()).slice(-6),knowledgePoint:tr(Bt==null?void 0:Bt.knowledgePoint)});return pt?pt(Ln):Ln}),gt},Nr=()=>{if(Ze===1){We.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!");return}xe.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u91CD\u65B0\u8BC6\u522B\u4F1A\u8986\u76D6\u53F3\u4FA7\u5DF2\u8BC6\u522B\u7ED3\u679C\uFF0C\u5305\u62EC\u4EBA\u5DE5\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u786E\u5B9A\u91CD\u65B0\u8BC6\u522B\u5417?",onOk:Ei})},Eo=()=>b.createElement("div",{className:he.row},b.createElement("div",{className:he.leftLayout},b.createElement(Fa,{style:{height:675}},Ze===1&&b.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>Mt(2)},b.createElement("div",{style:{color:"#9096A3",fontSize:12}},"1.\u672C\u529F\u80FD\u652F\u6301\u5BFC\u5165\u7684\u9898\u578B\uFF1A\u5355\u9009\u9898\u3001\u591A\u9009\u9898\u3001\u586B\u7A7A\u9898\u3001\u5224\u65AD\u9898\u3001\u7B80\u7B54\u9898\u3001 \u7EC4\u5408\u9898\u3001\u7F16\u7A0B\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u3002",b.createElement("br",null),"2.\u82E5\u8981\u5BFC\u5165\u7EC4\u5408\u9898\uFF0C\u8BF7\u5728\u9898\u76EE\u524D\u540E\u4F7F\u7528\u4E00\u5BF9\u201C","{{\u201D\u3001\u201C}}","\u201D\u5C06\u5185\u5BB9\u6807\u51FA\uFF1B\u5927\u9898\u9898\u5E72\u548C\u5C0F\u9898\u9898\u5E72\u4E4B\u95F4\u4E0D\u9700\u8981\u7A7A\u884C\uFF1B\u5927\u9898\u548C\u5C0F\u9898\u9898\u5E72\u90FD\u9700\u6807\u6CE8\u9898\u53F7\uFF1B\u5C0F\u9898\u7B54\u6848\u53EF\u8DDF\u5728\u5C0F\u9898\u9898\u5E72\u540E\uFF0C\u5E76\u7528\u7A7A\u683C\u4E0E\u9898\u5E72\u5185\u5BB9\u9694\u5F00\u3002\u8303\u4F8B\u53EF\u53C2\u8003\u63A8\u8350\u683C\u5F0F\u3002",b.createElement("br",null),"3.\u5BFC\u5165\u652F\u6301\u6587\u672C\u3001\u56FE\u7247\u3001\u516C\u5F0F\u3002\u9898\u76EE\u7ED3\u6784\u652F\u6301\u8BC6\u522B\u7B54\u6848\u3001\u89E3\u6790\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9\u3002",b.createElement("br",null),"4.\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u4FEE\u6539\u9898\u76EE\u5185\u5BB9\u540E\u91CD\u65B0\u8BC6\u522B\uFF0C\u6216\u4E0B\u8F7D\u63A8\u8350\u683C\u5F0F\uFF0C\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u5BFC\u5165\u8BC6\u522B\u3002",b.createElement("br",null)),b.createElement("div",{className:he.imgBox,style:{marginTop:75}},b.createElement("img",{width:56,src:te}),b.createElement("span",null,"\u7F16\u8F91\u533A"))),Ze===2&&b.createElement("div",{"data-text":"edit",onBlur:()=>{gr.current.innerHTML||Mt(1)},ref:gr,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),b.createElement("div",{className:he.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},b.createElement("div",{className:he.imgBox,style:{marginTop:240}},b.createElement("img",{width:56,src:oe}),b.createElement("span",null,"\u9884\u89C8\u533A")))),Ja=(me,gt,Bt,ln)=>{var pt;console.log(me,gt,Bt,ln,"onDataChange\u4FEE\u6539\u6570\u503C");const Ln=JSON.parse(JSON.stringify(rn));ln===void 0?Ln[gt][me]=Bt:Ln[gt].questions[ln][me]=Bt;const An=Wn({},Ln[gt]),mn=(pt=wr.find(yn=>yn.id===(An==null?void 0:An.type)))==null?void 0:pt.deal;Ln[gt]=mn(An),Cn(Ln)},Hr=(me,gt,Bt)=>{var ln;const pt=Bt!==void 0,Ln=(ln=wr.find(yn=>yn.id===(me==null?void 0:me.type)))==null?void 0:ln.type,An=`${gt+1}.${Bt===void 0?"":Bt+1+"."}`,mn=`${(me==null?void 0:me.type)==="7"?"{{":""}${An}\u3010${Ln}\u3011${(me==null?void 0:me.question)||""}`;return b.createElement(b.Fragment,null,pt&&b.createElement("h4",{contentEditable:!0}),b.createElement(be,{id:me==null?void 0:me.id,tagName:"div",value:mn}))},Yr=(me,gt)=>tn(void 0,null,function*(){var Bt;const ln=yield Br(me,gt),pt=(Bt=ln==null?void 0:ln.data)==null?void 0:Bt.content;if(pt!=null&&pt.length){const Ln=xr(pt)[0];nt.splice(gt,1,Ln),rn.splice(gt,1,Ln),Xe([...nt]),Cn([...rn])}}),hr=(me,gt,Bt)=>{var ln;const pt=Bt!==void 0,Ln=(ln=wr.find(mn=>mn.id===(me==null?void 0:me.type)))==null?void 0:ln.type,An=`${gt+1}.${Bt===void 0?"":Bt+1+"."}`;return pt?b.createElement("div",{style:{padding:"10px 18px"}},`${An}\u3010${Ln}\u3011`,b.createElement(be,{id:me==null?void 0:me.id,tagName:"span",className:he.edit,onBlur:mn=>Ja("question",gt,mn,Bt),value:(me==null?void 0:me.question)||""})):b.createElement(b.Fragment,null,b.createElement("div",{className:he.actionHead},b.createElement("div",{className:"c-light-primary"},`${An}\u3010${Ln}\u3011`),Sn!==1&&b.createElement(Ke.Z,{disabled:(me==null?void 0:me.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:mn=>Ja("score",gt,mn,Bt),value:me==null?void 0:me.score}),b.createElement(Oe.Z,{align:"middle",style:{marginLeft:"auto"}},!!Br&&b.createElement("span",{className:"current c-light-primary mr30",onClick:()=>Yr(me,gt)},b.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),b.createElement(De.default,{onChange:mn=>Ja("checked",gt,mn.target.checked,Bt),checked:!!(me!=null&&me.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),b.createElement(be,{id:me==null?void 0:me.id,tagName:"div",style:{padding:"10px 18px"},className:he.edit,onBlur:mn=>Ja("question",gt,mn,Bt),value:me==null?void 0:me.question}))},Kr=(me,gt,Bt)=>b.createElement(b.Fragment,null,["0","1","2","4"].includes(me==null?void 0:me.type)&&b.createElement(be,{id:me==null?void 0:me.id,value:`\u7B54\u6848\uFF1A${gt||""}`,tagName:"p"}),!Bt&&b.createElement(be,{id:me==null?void 0:me.id,value:`\u96BE\u5EA6\uFF1A${(me==null?void 0:me.difficulty)||""}`,tagName:"p"}),(me==null?void 0:me.type)!=="7"&&b.createElement(be,{id:me==null?void 0:me.id,value:`\u89E3\u6790\uFF1A${(me==null?void 0:me.analyze)||""}`,tagName:"p"}),!Bt&&b.createElement(be,{id:me==null?void 0:me.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(me==null?void 0:me.knowledgePoint)||""}`,tagName:"p"})),xt=(me,gt,Bt,ln)=>{const pt=ln!==void 0,Ln=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],An=pt&&!me.last&&!me.errorMsg?{marginBottom:10}:{},mn=Ln.map(yn=>({key:yn,label:yn,onClick:()=>Ja("difficulty",Bt,yn,ln)}));return b.createElement("div",{className:he.liWrap,style:An},["4"].includes(me==null?void 0:me.type)&&b.createElement("div",{className:he.li},b.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),b.createElement(be,{id:me==null?void 0:me.id,tagName:"div",className:`${he.edit} c-black`,onBlur:yn=>Ja("answer",Bt,[yn],ln),value:gt})),!pt&&b.createElement("div",{className:he.li},b.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(ke.Z,{menu:{items:mn}},b.createElement("span",{className:"c-light-primary"},me==null?void 0:me.difficulty,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(me==null?void 0:me.type)!=="7"&&b.createElement("div",{className:he.li},b.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),b.createElement(be,{id:me==null?void 0:me.id,tagName:"div",className:`${he.edit} c-grey-333`,onBlur:yn=>Ja("analyze",Bt,yn,ln),value:me==null?void 0:me.analyze})),!pt&&b.createElement("div",{onKeyDown:Ka,className:he.li},b.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),b.createElement(be,{id:me==null?void 0:me.id,tagName:"div",value:(me==null?void 0:me.knowledgePoint)||"",className:`${he.edit} c-grey-333`,onBlur:yn=>Ja("knowledgePoint",Bt,tr(Ar(yn)),ln)})))},Ft=me=>b.createElement(b.Fragment,null,typeof(me==null?void 0:me.errorMsg)=="string"&&!!(me!=null&&me.errorMsg)&&b.createElement("h5",{contentEditable:!1},b.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),b.createElement("div",null,me==null?void 0:me.errorMsg))),Et=me=>b.createElement(b.Fragment,null,typeof(me==null?void 0:me.errorMsg)=="string"&&!!(me!=null&&me.errorMsg)&&b.createElement("h5",null,b.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),b.createElement("div",null,me==null?void 0:me.errorMsg))),Mn=(me,gt,Bt,ln)=>{let pt="flex";return(ar&&Gr!==ln||Nn&&!(Bt!=null&&Bt.errorMsg))&&(pt="none"),b.createElement("div",{className:he.row,style:{display:pt}},b.createElement("div",{className:he.leftLayout},Da||b.createElement(Fa,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},me))),b.createElement("div",{className:he.rightLayout},b.createElement(jn,{className:Bt!=null&&Bt.errorMsg?he.error:""},gt)))},wr=[{id:"0",type:"\u5355\u9009\u9898",element:(me,gt,Bt)=>{var ln,pt;const Ln=Bt!==void 0;let An=(ln=me==null?void 0:me.answer)==null?void 0:ln[0];const mn=b.createElement(b.Fragment,null,Hr(me,gt,Bt),(pt=me==null?void 0:me.options)==null?void 0:pt.map((Fr,ma)=>b.createElement(be,{id:me==null?void 0:me.id,key:ma,value:`${vn[ma]}.${Fr}`,tagName:"p"})),Kr(me,An,Ln),Ft(me));let yn=Ln?me:rn[gt];const Oa=yn==null?void 0:yn.options,cr=b.createElement(b.Fragment,null,hr(yn,gt,Bt),Oa==null?void 0:Oa.map((Fr,ma)=>{var va;return b.createElement("div",{key:ma,className:he.option},b.createElement("aside",{className:((va=yn==null?void 0:yn.answer)==null?void 0:va[0])===vn[ma]?he.active:"",onClick:()=>Ja("answer",gt,[vn[ma]],Bt)},vn[ma]),b.createElement(be,{id:yn==null?void 0:yn.id,tagName:"div",className:`${he.text}`,onBlur:or=>{Oa[ma]=or,Ja("options",gt,Oa,Bt)},value:Fr}))}),xt(yn,"",gt,Bt),Et(yn));return Ln?[mn,cr]:Mn(mn,cr,yn,gt)},deal:me=>{var gt,Bt,ln;me.score=me.score===void 0?2:me.score;let pt=tr((gt=me==null?void 0:me.answer)==null?void 0:gt[0]).toUpperCase();me.answer=pt?[pt]:[];let Ln=[];if(!(me!=null&&me.options))Ln.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{me.options=(Bt=me.options)==null?void 0:Bt.slice(0,8);const An=me.options.map(yn=>yn==null?void 0:yn.trim().replace(/^\s+|\s+$/g,""));new Set(An).size!==An.length&&Ln.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return pt||Ln.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),pt&&(vn.slice(0,((ln=me==null?void 0:me.options)==null?void 0:ln.length)||8).includes(pt)||Ln.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D")),tr(me==null?void 0:me.question)||Ln.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),me.errorMsg=Ln.join(` +`),me}},{id:"1",type:"\u591A\u9009\u9898",element:(me,gt,Bt)=>{var ln,pt;const Ln=Bt!==void 0;let An=(ln=me==null?void 0:me.answer)==null?void 0:ln[0];const mn=b.createElement(b.Fragment,null,Hr(me,gt,Bt),(pt=me==null?void 0:me.options)==null?void 0:pt.map((Fr,ma)=>b.createElement(be,{id:me==null?void 0:me.id,key:ma,value:`${vn[ma]}.${Fr}`,tagName:"p"})),Kr(me,An,Ln),Ft(me));let yn=Ln?me:rn[gt];const Oa=yn==null?void 0:yn.options,cr=b.createElement(b.Fragment,null,hr(yn,gt,Bt),Oa==null?void 0:Oa.map((Fr,ma)=>{var va,or;return b.createElement("div",{key:ma,className:he.option},b.createElement("aside",{className:(or=(va=yn==null?void 0:yn.answer)==null?void 0:va[0])!=null&&or.includes(vn[ma])?he.active:"",onClick:()=>{var Er;let Ko=((Er=yn==null?void 0:yn.answer)==null?void 0:Er[0])||"";const li=vn[ma];Ko.includes(li)?Ko=Ko.replace(new RegExp(li,"g"),""):Ko+=li,Ko=Ko.split("").sort().join(""),Ja("answer",gt,[Ko],Bt)}},vn[ma]),b.createElement(be,{id:yn==null?void 0:yn.id,tagName:"div",className:`${he.text}`,onBlur:Er=>{Oa[ma]=Er,Ja("options",gt,Oa,Bt)},value:Fr}))}),xt(yn,"",gt,Bt),Et(yn));return Ln?[mn,cr]:Mn(mn,cr,yn,gt)},deal:me=>{var gt,Bt,ln;me.score=me.score===void 0?2:me.score;let pt=tr((gt=me==null?void 0:me.answer)==null?void 0:gt[0]).toUpperCase().split("").sort().join("");me.answer=pt?[pt]:[];let Ln=[];if(!(me!=null&&me.options))Ln.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{me.options=(Bt=me.options)==null?void 0:Bt.slice(0,8);const An=me.options.map(yn=>yn==null?void 0:yn.trim().replace(/^\s+|\s+$/g,""));new Set(An).size!==An.length&&Ln.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(pt||Ln.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),pt){const An=vn.slice(0,((ln=me==null?void 0:me.options)==null?void 0:ln.length)||8);sr(An).includes(pt)||Ln.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D")}return tr(me==null?void 0:me.question)||Ln.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),me.errorMsg=Ln.join(` +`),me}},{id:"2",type:"\u5224\u65AD\u9898",element:(me,gt,Bt)=>{var ln,pt;const Ln=Bt!==void 0;let An=(ln=me==null?void 0:me.answer)==null?void 0:ln[0];const mn=b.createElement(b.Fragment,null,Hr(me,gt,Bt),Kr(me,An,Ln),Ft(me));let yn=Ln?me:rn[gt];const Oa=["\u6B63\u786E","\u9519\u8BEF"];let cr=((pt=yn==null?void 0:yn.answer)==null?void 0:pt[0])||"";["\u6B63\u786E","\u5BF9","T","True","t","true"].includes(cr)?cr="\u6B63\u786E":["\u9519\u8BEF","\u9519","T","true","t","false"].includes(cr)&&(cr="\u9519\u8BEF");const Fr=b.createElement(b.Fragment,null,hr(yn,gt,Bt),Oa==null?void 0:Oa.map((ma,va)=>b.createElement("div",{key:va,className:he.option},b.createElement("aside",{style:{borderRadius:2},className:cr===ma?he.active:"",onClick:()=>Ja("answer",gt,[ma],Bt)},ma==="\u6B63\u786E"?"T":"F"),b.createElement("div",{style:{pointerEvents:"none"},className:`${he.text}`},ma))),xt(yn,"",gt,Bt),Et(yn));return Ln?[mn,Fr]:Mn(mn,Fr,yn,gt)},deal:me=>{var gt;me.score=me.score===void 0?2:me.score;let Bt=tr((gt=me==null?void 0:me.answer)==null?void 0:gt[0]);me.answer=Bt?[Bt]:[];let ln=[];return Bt||ln.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),Bt&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(Bt)&&ln.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),tr(me==null?void 0:me.question)||ln.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),me.errorMsg=ln.join(` +`),me}},{id:"3",type:"\u586B\u7A7A\u9898",element:(me,gt,Bt)=>{var ln,pt;const Ln=Bt!==void 0,An=b.createElement(b.Fragment,null,Hr(me,gt,Bt),(ln=me==null?void 0:me.answer)==null?void 0:ln.map((Oa,cr)=>b.createElement(be,{id:me==null?void 0:me.id,key:cr,tagName:"p",value:`\u7B54\u6848${cr+1}\uFF1A${Oa.text||""}`})),Kr(me,"",Ln),Ft(me));let mn=Ln?me:rn[gt];const yn=b.createElement(b.Fragment,null,hr(mn,gt,Bt),(pt=mn==null?void 0:mn.answer)==null?void 0:pt.map((Oa,cr)=>b.createElement("div",{key:cr,className:he.option},b.createElement("aside",{className:he.fill},"\u586B\u7A7A\u9879",cr+1),Oa.model===1&&b.createElement(be,{id:mn==null?void 0:mn.id,tagName:"div",onBlur:Fr=>{mn.answer[cr].latex=Ar(Fr),Ja("answer",gt,mn.answer,Bt)},className:`${he.text}`,value:Oa.latex}),Oa.model===2&&b.createElement(Le.Z,{value:Oa.latex,onChange:Fr=>{mn.answer[cr].latex=Fr,Ja("answer",gt,mn.answer,Bt)}}))),xt(mn,"",gt,Bt),Et(mn));return Ln?[An,yn]:Mn(An,yn,mn,gt)},deal:me=>{var gt,Bt,ln,pt;me.score=me.score===void 0?2:me.score,me.question=(gt=me.question)==null?void 0:gt.replaceAll("\u2581","_");const Ln=(Bt=me.answer)==null?void 0:Bt.map(mn=>{if(Object.prototype.toString.call(mn)==="[object Object]")return mn;mn=mn==null?void 0:mn.trim();const yn={model:1,text:mn,latex:mn};return mn.startsWith("$$")&&mn.endsWith("$$")||mn.startsWith("`$$")&&mn.endsWith("$$`")?(yn.model=2,yn.latex=mn.slice(2,-2)):yn.latex=Ar(mn),yn});me.answer=Ln;let An=[];return Ln||An.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),tr(me==null?void 0:me.question)?me!=null&&me.question.includes("_")?(ln=me==null?void 0:me.answer)!=null&&ln.length&&((me==null?void 0:me.question.match(/_+/g))||[]).length!==((pt=me==null?void 0:me.answer)==null?void 0:pt.length)&&An.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):An.push("\u586B\u7A7A\u9879\u672A\u8BBE\u7F6E\uFF0C\u8BF7\u4F7F\u7528\u82F1\u6587\u4E0B\u5212\u7EBF\u201C___\u201D\u8868\u793A\u586B\u7A7A\u9879"):An.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),me.errorMsg=An.join(` +`),me}},{id:"4",type:"\u7B80\u7B54\u9898",element:(me,gt,Bt)=>{var ln,pt;const Ln=Bt!==void 0;let An=(ln=me==null?void 0:me.answer)==null?void 0:ln[0];const mn=b.createElement(b.Fragment,null,Hr(me,gt,Bt),Kr(me,An,Ln),Ft(me));let yn=Ln?me:rn[gt];const Oa=b.createElement(b.Fragment,null,hr(yn,gt,Bt),xt(yn,(pt=yn==null?void 0:yn.answer)==null?void 0:pt[0],gt,Bt),Et(yn));return Ln?[mn,Oa]:Mn(mn,Oa,yn,gt)},deal:me=>{me.score=me.score===void 0?5:me.score;let gt=[];return tr(me==null?void 0:me.question)||gt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),me.errorMsg=gt.join(` +`),me}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(me,gt)=>{var Bt,ln;const pt=rn[gt],Ln=na.slice(0,4).map(An=>({key:An,label:An,onClick:()=>Ja("platform",gt,An)}));return b.createElement("div",{className:he.row,style:{display:Nn?pt!=null&&pt.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:he.leftLayout},b.createElement(Fa,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},Hr(me,gt),b.createElement(be,{id:me==null?void 0:me.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(me==null?void 0:me.description)||""}`,tagName:"p"}),Kr(me),b.createElement(be,{id:me==null?void 0:me.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${me==null?void 0:me.timeLimit}`,tagName:"p"}),b.createElement(be,{id:me==null?void 0:me.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(me==null?void 0:me.platform)||""}`,tagName:"p"}),b.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),b.createElement("h4",null),b.createElement(be,{id:me==null?void 0:me.id,value:(me==null?void 0:me.code)||"",tagName:"div"}),(Bt=me==null?void 0:me.inputs)==null?void 0:Bt.map((An,mn)=>{var yn;return b.createElement(b.Fragment,{key:mn},b.createElement("h4",null),b.createElement(be,{id:me==null?void 0:me.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${mn+1})\u8F93\u5165\uFF1A${An||""}`,tagName:"div"}),b.createElement(be,{id:me==null?void 0:me.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${mn+1})\u8F93\u51FA\uFF1A${((yn=me==null?void 0:me.outputs)==null?void 0:yn[mn])||""}`,tagName:"div"}))}),Ft(me)))),b.createElement("div",{className:he.rightLayout},b.createElement(jn,{className:pt!=null&&pt.errorMsg?he.error:""},hr(pt,gt),b.createElement("div",{className:he.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},b.createElement("div",{className:he.li},b.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),b.createElement(be,{className:he.edit,id:pt==null?void 0:pt.id,value:pt==null?void 0:pt.description,tagName:"div",onBlur:An=>Ja("description",gt,An)}))),xt(pt,"",gt),b.createElement("div",{className:he.liWrap},b.createElement("div",{className:he.li},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(be,{className:he.edit,id:pt==null?void 0:pt.id,value:pt==null?void 0:pt.timeLimit,tagName:"div",onBlur:An=>Ja("timeLimit",gt,Ar(An))})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(ke.Z,{menu:{items:Ln}},b.createElement("span",{className:"c-light-primary"},pt==null?void 0:pt.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:he.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),b.createElement(be,{className:he.edit,id:pt==null?void 0:pt.id,value:(pt==null?void 0:pt.code)||"",onBlur:An=>Ja("code",gt,Ar(An)),tagName:"div"}))),(ln=pt==null?void 0:pt.inputs)==null?void 0:ln.map((An,mn)=>{var yn;return b.createElement("div",{className:he.liWrap,key:mn},b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",mn+1,")\u8F93\u5165\uFF1A"),b.createElement(be,{id:pt==null?void 0:pt.id,value:An||"",className:he.edit,onBlur:Oa=>{const cr=[...(pt==null?void 0:pt.inputs)||[]];cr[mn]=Ar(Oa),Ja("inputs",gt,cr)},tagName:"div"})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",mn+1,")\u8F93\u51FA\uFF1A"),b.createElement(be,{id:pt==null?void 0:pt.id,value:((yn=pt==null?void 0:pt.outputs)==null?void 0:yn[mn])||"",className:he.edit,onBlur:Oa=>{const cr=[...(pt==null?void 0:pt.outputs)||[]];cr[mn]=Ar(Oa),Ja("outputs",gt,cr)},tagName:"div"})))}),Et(pt))))},deal:me=>{var gt,Bt,ln;me.score=me.score===void 0?10:me.score,me.code=(gt=me.code)==null?void 0:gt.trim();let pt=[];tr(me==null?void 0:me.question)?((Bt=me==null?void 0:me.question)==null?void 0:Bt.length)>60&&pt.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):pt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),tr(me==null?void 0:me.description)||pt.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const Ln=tr(String((me==null?void 0:me.timeLimit)||""));if(me.timeLimit=Ln,(!Ln||Ln&&!["3","4","5","6","7","8","9","10"].includes(Ln))&&pt.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),me.platform=tr(me==null?void 0:me.platform),me!=null&&me.platform){const An=["c","c++","java","python"],mn=(ln=me==null?void 0:me.platform)==null?void 0:ln.toLowerCase(),yn=An.findIndex(Oa=>Oa===mn);yn>-1?me.platform=na[yn]:pt.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else pt.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(me!=null&&me.inputs)||!(me!=null&&me.outputs))me.inputs=[],me.outputs=[],pt.push("\u672A\u8BC6\u522B\u5230\u6D4B\u8BD5\u7528\u4F8B\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u5165\uFF1A1\uFF1B\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u51FA\uFF1A2");else{const An=Math.min(me.inputs.length,me.outputs.length);me.inputs=me.inputs.slice(0,An),me.outputs=me.outputs.slice(0,An),me.outputs.some(mn=>!tr(mn))&&pt.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return me.errorMsg=pt.join(` +`),me}},{id:"7",type:"\u7EC4\u5408\u9898",element:(me,gt)=>{var Bt,ln;const pt=rn[gt];return b.createElement("div",{className:he.row,style:{display:Nn?pt!=null&&pt.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:he.leftLayout},b.createElement(Fa,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},Hr(me,gt),Kr(me),(Bt=me==null?void 0:me.questions)==null?void 0:Bt.map((Ln,An)=>{var mn;const yn=(mn=wr.find(Oa=>Oa.id===(Ln==null?void 0:Ln.type)))==null?void 0:mn.element;return b.createElement(b.Fragment,{key:`left-${me.id}-${An}`},yn(Ln,gt,An)[0])}),Ft(me),b.createElement("p",{contentEditable:!0},"}}")))),b.createElement("div",{className:he.rightLayout},b.createElement(jn,{className:pt!=null&&pt.errorMsg?he.error:""},hr(pt,gt),xt(pt,"",gt),(ln=pt==null?void 0:pt.questions)==null?void 0:ln.map((Ln,An)=>{var mn;const yn=(mn=wr.find(Oa=>Oa.id===(Ln==null?void 0:Ln.type)))==null?void 0:mn.element;return b.createElement(b.Fragment,{key:`right-${pt.id}-${An}`},yn(Ln,gt,An)[1])}),Et(pt))))},deal:me=>{var gt,Bt,ln,pt,Ln;const An=xr,mn=[...wr],yn=mn.findIndex(ma=>ma.id==="0"),Oa=mn.findIndex(ma=>ma.id==="1");if(yn!==-1){const ma=mn[yn].deal;mn[yn].deal=va=>{const or=ma(va);return or.errorMsg&&(or.errorMsg=or.errorMsg.split(` `).filter(Er=>Er!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(` `)),or}}if(Oa!==-1){const ma=mn[Oa].deal;mn[Oa].deal=va=>{const or=ma(va);return or.errorMsg&&(or.errorMsg=or.errorMsg.split(` `).filter(Er=>Er!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(` `)),or}}me.questions=(gt=me.questions)!=null&>.length?xr(me.questions.slice(0,20)):[],me.questions=(Bt=me.questions)==null?void 0:Bt.map((ma,va)=>{var or;if(ma.type==="0"||ma.type==="1"){const Er=(or=ma.options)==null?void 0:or.map(Ko=>Ko==null?void 0:Ko.trim().replace(/^\s+|\s+$/g,""));Er&&new Set(Er).size!==Er.length&&(ma.errorMsg=(ma.errorMsg?ma.errorMsg+` -`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return ra(Wn({},ma),{last:va===me.questions.length-1})});const cr=(on=me.questions)==null?void 0:on.reduce((ma,va)=>{const or=parseFloat(va.score);return isNaN(or)?ma:ma+or},0);me.score=cr;let Fr=[];return(pt=me.questions)!=null&&pt.length?me.errorMsg=((Ln=me.questions)==null?void 0:Ln.findIndex(ma=>!!ma.errorMsg))>-1:Fr.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),tr(me==null?void 0:me.question)||Fr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Fr.length&&(me.errorMsg=Fr.join(` -`)),me}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(me,gt)=>{var Bt,on;const pt=an[gt],Ln=na.map(yn=>({key:yn,label:yn,onClick:()=>Ja("platform",gt,yn)}));return b.createElement("div",{className:he.row,style:{display:Nn?pt!=null&&pt.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:he.leftLayout},b.createElement(Fa,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},Hr(me,gt),Kr(me),b.createElement(be,{id:me==null?void 0:me.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${me==null?void 0:me.timeLimit}`,tagName:"p"}),b.createElement(be,{id:me==null?void 0:me.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(me==null?void 0:me.platform)||""}`,tagName:"p"}),b.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),b.createElement("h4",null),b.createElement(be,{id:me==null?void 0:me.id,value:(me==null?void 0:me.code)||"",tagName:"div"}),b.createElement("h4",null),b.createElement(be,{id:me==null?void 0:me.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(me==null?void 0:me.input)||""}`,tagName:"p"}),b.createElement(be,{id:me==null?void 0:me.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(me==null?void 0:me.output)||""}`,tagName:"p"}),(Bt=me==null?void 0:me.answer)==null?void 0:Bt.map((yn,mn)=>b.createElement(be,{key:mn,id:me==null?void 0:me.id,value:`\u7B54\u6848${mn+1}\uFF1A${yn||""}`,tagName:"p"})),yt(me)))),b.createElement("div",{className:he.rightLayout},b.createElement(jn,{className:pt!=null&&pt.errorMsg?he.error:""},hr(pt,gt),xt(pt,"",gt),b.createElement("div",{className:he.liWrap},b.createElement("div",{className:he.li,onKeyDown:Ka},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(be,{className:he.edit,id:pt==null?void 0:pt.id,value:pt==null?void 0:pt.timeLimit,tagName:"div",onBlur:yn=>Ja("timeLimit",gt,Ar(yn))})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(ke.Z,{menu:{items:Ln}},b.createElement("span",{className:"c-light-primary"},pt==null?void 0:pt.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:he.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),b.createElement(be,{className:he.edit,id:pt==null?void 0:pt.id,value:(pt==null?void 0:pt.code)||"",onBlur:yn=>Ja("code",gt,Ar(yn)),tagName:"div"})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),b.createElement(be,{className:he.edit,id:pt==null?void 0:pt.id,value:(pt==null?void 0:pt.input)||"",onBlur:yn=>Ja("input",gt,Ar(yn)),tagName:"div"})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),b.createElement(be,{className:he.edit,id:pt==null?void 0:pt.id,value:(pt==null?void 0:pt.output)||"",onBlur:yn=>Ja("output",gt,Ar(yn)),tagName:"div"}))),b.createElement("div",{className:he.liWrap},(on=pt==null?void 0:pt.answer)==null?void 0:on.map((yn,mn)=>b.createElement("div",{className:he.li,key:mn},b.createElement("aside",null,"\u7B54\u6848",mn+1,"\uFF1A"),b.createElement(be,{id:pt==null?void 0:pt.id,value:yn||"",className:he.edit,onBlur:Fn=>{const Oa=[...(pt==null?void 0:pt.answer)||[]];Oa[mn]=Ar(Fn),Ja("output",gt,Oa)},tagName:"div"})))),Et(pt))))},deal:me=>{var gt,Bt,on,pt,Ln,yn,mn,Fn;me.score=me.score===void 0?10:me.score,me.code=(on=(Bt=(gt=me.code)==null?void 0:gt.trim())==null?void 0:Bt.replace(/@_@/g,"@\u2581@"))==null?void 0:on.replace(/@__@/g,"@\u2581\u2581@");let Oa=[];if(tr(me==null?void 0:me.question)||Oa.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),tr(me==null?void 0:me.code)?/@▁@|@▁▁@/.test(me==null?void 0:me.code)?(pt=me==null?void 0:me.answer)!=null&&pt.length&&((Ln=me==null?void 0:me.code.match(/@▁@|@▁▁@/g))==null?void 0:Ln.length)!==((yn=me==null?void 0:me.answer)==null?void 0:yn.length)&&Oa.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Oa.push("\u7A0B\u5E8F\u4EE3\u7801\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u7A0B\u5E8F\u4EE3\u7801\u4E2D\u7684\u586B\u7A7A\u9879\u9700\u8981\u4F7F\u7528 @\u2581@ \u7B26\u53F7\u6807\u8BC6\u51FA\u6765"):Oa.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),me!=null&&me.answer?(mn=me.answer)!=null&&mn.some(Fr=>!tr(Fr))&&Oa.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):Oa.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),me.platform=tr(me==null?void 0:me.platform),me!=null&&me.platform){const Fr=["c","c++","java","python","javascript","ruby"],ma=(Fn=me==null?void 0:me.platform)==null?void 0:Fn.toLowerCase(),va=Fr.findIndex(or=>or===ma);va>-1?me.platform=na[va]:Oa.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else Oa.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");tr(me==null?void 0:me.output)||Oa.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const cr=tr(String((me==null?void 0:me.timeLimit)||""));return me.timeLimit=cr,(!cr||cr&&!["3","4","5","6","7","8","9","10"].includes(cr))&&Oa.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),me.errorMsg=Oa.join(` -`),me}}],Bo=()=>b.createElement(b.Fragment,null,tt.filter(me=>{var gt;return!!((gt=wr.find(on=>on.id===(me==null?void 0:me.type)))==null?void 0:gt.element)}).map((me,gt)=>{var Bt;const on=(Bt=wr.find(pt=>pt.id===(me==null?void 0:me.type)))==null?void 0:Bt.element;return b.createElement(b.Fragment,{key:me.id},on(me,gt))})),ri=()=>en(void 0,null,function*(){const me=an.filter(gt=>!gt.checked);if(Ze!==3||!me.length){We.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if($n){Mr(!0),yield $n(an),Mr(!1);return}ca.setFieldsValue({sub_discipline_id:St}),Xn(!0)}),Rr=(me,gt=[])=>{if(typeof me=="string")return me.trim();if(Array.isArray(me))return me.map(Bt=>Rr(Bt,gt));if(typeof me=="object"&&me!==null){const Bt={};for(const on in me)me.hasOwnProperty(on)&&(gt.includes(on)?Bt[on]=me[on]:Bt[on]=Rr(me[on],gt));return Bt}return me},So=me=>en(void 0,null,function*(){const gt=xr(Rr(me));Xe(gt),Cn(JSON.parse(JSON.stringify(gt))),Ot(3),Je(!1),wa(!1)});(0,b.useEffect)(()=>{if(Sr)return;const me=()=>{fn(gt=>gt>=90?(clearInterval(ur.current),90):gt+1)};return ur.current=setInterval(me,5e4/90),()=>clearInterval(ur.current)},[Sr]);const jo=(me,gt)=>{lr(!1);const Bt=new FormData;Object.keys(gt).forEach(pt=>{Bt.append(pt,gt[pt])});const on=new window.XMLHttpRequest;on.withCredentials=!0,on.addEventListener("load",function(pt){return en(this,null,function*(){var Ln,yn;try{const mn=JSON.parse((Ln=pt==null?void 0:pt.target)==null?void 0:Ln.response);if(lr(!0),fn(100),yield new Promise(Fn=>setTimeout(()=>Fn(),780)),mn.status===0){if(!((yn=mn==null?void 0:mn.data)!=null&&yn.length)){We.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),Je(!1);return}So((mn==null?void 0:mn.data)||[])}else Je(!1),We.ZP.warning(mn==null?void 0:mn.message)}catch(mn){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",mn)}})}),on.addEventListener("error",()=>{Je(!1)}),on.open("POST",`${y.Z.API_SERVER}${me}`),on.send(Bt)},ia=me=>en(void 0,null,function*(){const gt=me.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf(gt)==-1?(We.ZP.error(`${me.name}\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\uFF0C\u5F53\u524D\u4EC5\u9650\u652F\u6301\u683C\u5F0F\u4E3Adocx\u6587\u4EF6\uFF08Microsoft Word 2007\u4EE5\u4E0A\u7684\u7248\u672C\uFF09`),Promise.reject()):(Je(!0),Qn("\u5904\u7406\u4E2D"),jo("/api/intelligent_imports/import.json",{file:me}),Promise.reject())});let Dn=[{key:1,label:b.createElement(ze.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:ia},b.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,vt.Ny)()||(0,vt.$O)())&&Dn.push({key:2,label:b.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{za.current.onClick()}});const Hn=[an.length,(ba=an.filter(me=>!!(me!=null&&me.errorMsg)))==null?void 0:ba.length];return b.createElement("div",{className:xe()(he.intelligentBox,"intelligent-body-curb",oa),style:ra(Wn({},Zn),{width:da}),ref:ga},b.createElement("div",{className:he.underpin},b.createElement("b",{style:Or}),b.createElement("b",{style:Or})),b.createElement("div",{className:he.head,style:{top:rn}},b.createElement("div",{className:he.leftLayout},Ca||b.createElement(b.Fragment,null,b.createElement(Oe.Z,{align:"middle"},b.createElement("div",{className:he.title},"\u8BD5\u9898\u7F16\u8F91"),!kt&&b.createElement(x.op,{href:`${y.Z.API_SERVER}/api/intelligent_imports/download_template`,download:!0,type:"link"},"\u4E0B\u8F7DWord\u6A21\u7248",b.createElement("i",{className:"iconfont icon-xiazai4 font14 ml10"})),b.createElement(x.op,{onClick:Na,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!kt&&b.createElement(ke.Z,{overlayClassName:he.menu,menu:{items:Dn}},b.createElement(x.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!Oo&&Oo),b.createElement("div",{className:he.tip},b.createElement("i",{className:"iconfont icon-tishi7 font12 mr10"}),"\u63D0\u793A\uFF1A\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u7F16\u8F91\u533A\u70B9\u51FB\u5BF9\u5E94\u7684\u8BD5\u9898\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u8BC6\u522B"))),b.createElement(Oe.Z,{className:he.rightLayout,style:{alignItems:"start"}},Wa||b.createElement(b.Fragment,null,b.createElement("div",{className:he.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(Ze)&&b.createElement(De.default,{className:"ml20",checked:Nn,onChange:me=>wa(me.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(Ze)&&b.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",b.createElement("span",{className:"ml5 mr5 c-light-primary"},Hn[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",b.createElement("span",{className:"ml5 mr5 c-red-e53"},Hn[1]),"\u9898")),ar&&b.createElement("div",{className:he.tabs},tt==null?void 0:tt.map((me,gt)=>b.createElement("div",{onClick:()=>{Lr(gt)},className:Gr===gt&&he.active,key:gt},"\u65B0\u9898",gt+1)))),b.createElement("div",{className:he.centerBox},b.createElement("img",{className:"mb10",src:ue,width:56}),!Ta&&b.createElement(x.op,{onClick:Nr},"\u8BC6\u522B"))),[1,2].includes(Ze)&&Eo(),[3].includes(Ze)&&Bo(),b.createElement("div",{className:"pb10"}),b.createElement("div",{className:he.buttonFixed},b.createElement("div",{className:he.buttonWrap},b.createElement(Ue.ZP,{size:"middle",className:`${he.button} mr20`,onClick:Aa},"\u53D6\u6D88"),b.createElement(Ue.ZP,{size:"middle",type:"primary",loading:no,className:`${he.button}`,onClick:ri},Un))),b.createElement(Be.default,{centered:!0,closable:!1,destroyOnClose:!0,open:Kn,title:null,footer:null,width:320,afterClose:()=>fn(0)},b.createElement(Oe.Z,{align:"middle",style:{flexDirection:"column"}},b.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},Mt,b.createElement("span",{className:he.dotLoading},b.createElement("span",null,"."),b.createElement("span",null,"."),b.createElement("span",null,"."))),b.createElement(le.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:Xt}),b.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",b.createElement("span",{className:"ml5 c-light-primary"},Xt,"%")))),b.createElement(Be.default,{centered:!0,open:ya,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:Ea,width:480,onCancel:()=>Xn(!1),onOk:()=>ca.submit(),afterClose:()=>{ca.resetFields()}},b.createElement(Re.default,{style:{maxHeight:550},form:ca,layout:"horizontal",colon:!1,size:"large",onFinish:me=>en(void 0,null,function*(){var gt,Bt,on,pt,Ln;const yn=an.filter(Oa=>!Oa.checked&&!Oa.errorMsg);ta(!0);const mn=()=>en(void 0,null,function*(){var Oa,cr;const Fr=yield(0,ie.ZP)("/api/intelligent_imports/save.json",{method:"post",body:ra(Wn(Wn({},_a),me),{list:yn,mode:Sn})});Fr.status===0&&(Ut&&((Oa=Fr==null?void 0:Fr.data)!=null&&Oa.success)&&window.location.pathname==="/problemset"&&(ct.Z.publish("refresh-item-bank",me.group_id),yield new Promise(ma=>setTimeout(()=>ma(),1500))),We.ZP.success(`\u6210\u529F\u5BFC\u5165${(cr=Fr==null?void 0:Fr.data)==null?void 0:cr.success}\u9053\u8BD5\u9898`,3),xa(Fr),Xn(!1)),ta(!1)});if(Sn!==1){yield mn();return}const Fn=yield(0,ie.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:an,mode:Sn}});if(Fn.status===0){if(!((gt=Fn==null?void 0:Fn.data)!=null&>.error_size)){yield mn();return}Be.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{ta(!1)},title:"\u63D0\u793A",content:b.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",b.createElement("span",{className:"c-light-primary ml5 mr5"},(Bt=Fn==null?void 0:Fn.data)==null?void 0:Bt.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",b.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(on=Fn==null?void 0:Fn.data)==null?void 0:on.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",b.createElement("span",{className:"ml5 mr5"},(Ln=(pt=Fn==null?void 0:Fn.data)==null?void 0:pt.index)==null?void 0:Ln.join("\u3001")),"\u9053\uFF09\uFF0C\u91CD\u590D\u8BD5\u9898\u5C06\u4F1A\u4E3A\u60A8\u81EA\u52A8\u8FC7\u6EE4\uFF0C\u786E\u5B9A\u5BFC\u5165\u5417\uFF1F"),onOk:mn})}})},b.createElement("div",{className:"c-grey-999 mb20"},"\u63D0\u793A\uFF1A\u8BC6\u522B\u6709\u8BEF\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u5BFC\u5165"),b.createElement(Re.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"sub_discipline_id",labelCol:{span:5},wrapperCol:{span:19},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"}]},b.createElement(E.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",fieldNames:{label:"name",value:"id",children:"sub_disciplines"},options:pr})),Sn===1&&b.createElement(Re.default.Item,{label:b.createElement(Oe.Z,{align:"middle",style:{justifyContent:"space-between"}},b.createElement("span",null,"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55"),b.createElement("div",{onClick:()=>ka(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},b.createElement("img",{className:"mr5 primary-hover",src:Fe}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"group_id",labelCol:{span:24},wrapperCol:{span:24}},b.createElement(Ee.Z,{key:qa})))),b.createElement(Be.default,{centered:!0,open:zt,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:Qr,onCancel:()=>ka(!1),onOk:()=>tn.submit(),afterClose:()=>{tn.resetFields()}},b.createElement(Re.default,{style:{maxHeight:550},form:tn,layout:"horizontal",colon:!1,size:"large",onFinish:me=>en(void 0,null,function*(){var gt;Ua(!0),(yield(0,ie.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:me.name,parent_id:(gt=me==null?void 0:me.parent_id)==null?void 0:gt[0]}})).status===0?(Gt(qa+1),setTimeout(()=>{We.ZP.success("\u64CD\u4F5C\u6210\u529F"),ka(!1),Ua(!1)},1e3)):Ua(!1)})},b.createElement(Re.default.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},b.createElement(a.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"})),b.createElement(Re.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},b.createElement(Ee.Z,null)))),b.createElement(ot,{onSave:me=>{Je(!0),Qn("\u5904\u7406\u4E2D"),jo("/api/intelligent_imports/import.json",{html:me})},ref:za}))},Pa=z;var fr=Ha},78926:function(it,jt,ae){"use strict";var b=ae(59301),he=ae(89722),we=ae(48136),xe=ae(50892),Re=ae(43418),We=ae(59301);const Be=(0,b.forwardRef)(({callback:Ke,width:Oe,onChange:De,disabled:ke,readOnly:ze,type:Ue="",value:le="",style:E={}},a)=>{const x=(0,b.useRef)(),y=(0,b.useRef)(),[z,te]=(0,b.useState)(0),[oe,ue]=(0,b.useState)(0),[ie,Ee]=(0,b.useState)(!1),Fe=()=>{var Me=document.createElement("div");Me.innerHTML=x.current.getValue();var Ye=Me.innerText;return Ke&&Ke(Ye),Ye};(0,b.useImperativeHandle)(a,()=>({getData:Fe}));const Qe=Me=>{Me.preventDefault();const Ye=Me.clientX-z,Ge=Me.clientY-oe;document.body.onmousemove=$e=>{let be=$e.clientX-Ye,vt=$e.clientY-Ge;const ct=document.getElementsByClassName("markdown-popup-form")[0],Ft=window.innerWidth-ct.offsetWidth,At=window.innerHeight-ct.offsetHeight;be=Math.max(0,Math.min(be,Ft)),vt=Math.max(0,Math.min(vt,At)),Le($e.clientX,$e.clientY,Ye,Ge)&&(te(be),ue(vt))},document.body.onmouseup=function(){document.body.onmousemove=null}},Le=(Me,Ye,Ge,$e)=>{const be=document.body.clientHeight,vt=document.body.clientWidth;return Me<20&&Ge>Me||Me>vt-20&&GeYe||Ye>be-20&&$e{ie&&setTimeout(()=>{const Me=document.getElementsByClassName("markdown-popup-form")[0],Ye=window.innerWidth/2-Me.offsetWidth/2,Ge=window.innerHeight/2-Me.offsetHeight/2;te(Ye),ue(Ge)},0)},[ie]);const st=()=>{ke||ze||Ee(!0)};return We.createElement("div",{style:E},We.createElement("div",{style:{width:Oe||"100%",position:"relative"},className:`${he.Z.mathFillWrap} ${ke||ze?"cursorDefault":""}`,onClick:()=>st()},We.createElement("math-field",{disabled:ke,locale:"zh_cn",class:`${he.Z.mathField} ${Ue}`,readOnly:ze,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:x,style:{width:"100%",fontSize:le?18:14},value:le||""})),We.createElement(Re.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:z,top:oe},title:We.createElement("div",{style:{cursor:"move"},onMouseDown:Qe},"\u8F93\u5165\u516C\u5F0F"),open:ie,onOk:()=>{const Me=y.current.getData();x.current.setValue(Me),De(Me),Ee(!1)},onCancel:()=>{Ee(!1)},destroyOnClose:!0,className:"markdown-popup-form"},We.createElement(xe.Z,{value:le,ref:y,onChange:De,showSaveButton:!1})))});jt.Z=Be},50892:function(it,jt,ae){"use strict";var b=ae(59301),he=ae(95237),we=ae(43604),xe=ae(99313),Re=ae(3113),We=ae(8658),Be=ae(89722),Ke=ae(48136),Oe=ae(59301);const De=(0,b.forwardRef)(({callback:ke,showSaveButton:ze,value:Ue=""},le)=>{const E=(0,b.useRef)(),a=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r +`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return ra(Wn({},ma),{last:va===me.questions.length-1})});const cr=(ln=me.questions)==null?void 0:ln.reduce((ma,va)=>{const or=parseFloat(va.score);return isNaN(or)?ma:ma+or},0);me.score=cr;let Fr=[];return(pt=me.questions)!=null&&pt.length?me.errorMsg=((Ln=me.questions)==null?void 0:Ln.findIndex(ma=>!!ma.errorMsg))>-1:Fr.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),tr(me==null?void 0:me.question)||Fr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Fr.length&&(me.errorMsg=Fr.join(` +`)),me}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(me,gt)=>{var Bt,ln;const pt=rn[gt],Ln=na.map(An=>({key:An,label:An,onClick:()=>Ja("platform",gt,An)}));return b.createElement("div",{className:he.row,style:{display:Nn?pt!=null&&pt.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:he.leftLayout},b.createElement(Fa,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},Hr(me,gt),Kr(me),b.createElement(be,{id:me==null?void 0:me.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${me==null?void 0:me.timeLimit}`,tagName:"p"}),b.createElement(be,{id:me==null?void 0:me.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(me==null?void 0:me.platform)||""}`,tagName:"p"}),b.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),b.createElement("h4",null),b.createElement(be,{id:me==null?void 0:me.id,value:(me==null?void 0:me.code)||"",tagName:"div"}),b.createElement("h4",null),b.createElement(be,{id:me==null?void 0:me.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(me==null?void 0:me.input)||""}`,tagName:"p"}),b.createElement(be,{id:me==null?void 0:me.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(me==null?void 0:me.output)||""}`,tagName:"p"}),(Bt=me==null?void 0:me.answer)==null?void 0:Bt.map((An,mn)=>b.createElement(be,{key:mn,id:me==null?void 0:me.id,value:`\u7B54\u6848${mn+1}\uFF1A${An||""}`,tagName:"p"})),Ft(me)))),b.createElement("div",{className:he.rightLayout},b.createElement(jn,{className:pt!=null&&pt.errorMsg?he.error:""},hr(pt,gt),xt(pt,"",gt),b.createElement("div",{className:he.liWrap},b.createElement("div",{className:he.li,onKeyDown:Ka},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(be,{className:he.edit,id:pt==null?void 0:pt.id,value:pt==null?void 0:pt.timeLimit,tagName:"div",onBlur:An=>Ja("timeLimit",gt,Ar(An))})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(ke.Z,{menu:{items:Ln}},b.createElement("span",{className:"c-light-primary"},pt==null?void 0:pt.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:he.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),b.createElement(be,{className:he.edit,id:pt==null?void 0:pt.id,value:(pt==null?void 0:pt.code)||"",onBlur:An=>Ja("code",gt,Ar(An)),tagName:"div"})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),b.createElement(be,{className:he.edit,id:pt==null?void 0:pt.id,value:(pt==null?void 0:pt.input)||"",onBlur:An=>Ja("input",gt,Ar(An)),tagName:"div"})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),b.createElement(be,{className:he.edit,id:pt==null?void 0:pt.id,value:(pt==null?void 0:pt.output)||"",onBlur:An=>Ja("output",gt,Ar(An)),tagName:"div"}))),b.createElement("div",{className:he.liWrap},(ln=pt==null?void 0:pt.answer)==null?void 0:ln.map((An,mn)=>b.createElement("div",{className:he.li,key:mn},b.createElement("aside",null,"\u7B54\u6848",mn+1,"\uFF1A"),b.createElement(be,{id:pt==null?void 0:pt.id,value:An||"",className:he.edit,onBlur:yn=>{const Oa=[...(pt==null?void 0:pt.answer)||[]];Oa[mn]=Ar(yn),Ja("output",gt,Oa)},tagName:"div"})))),Et(pt))))},deal:me=>{var gt,Bt,ln,pt,Ln,An,mn,yn;me.score=me.score===void 0?10:me.score,me.code=(ln=(Bt=(gt=me.code)==null?void 0:gt.trim())==null?void 0:Bt.replace(/@_@/g,"@\u2581@"))==null?void 0:ln.replace(/@__@/g,"@\u2581\u2581@");let Oa=[];if(tr(me==null?void 0:me.question)||Oa.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),tr(me==null?void 0:me.code)?/@▁@|@▁▁@/.test(me==null?void 0:me.code)?(pt=me==null?void 0:me.answer)!=null&&pt.length&&((Ln=me==null?void 0:me.code.match(/@▁@|@▁▁@/g))==null?void 0:Ln.length)!==((An=me==null?void 0:me.answer)==null?void 0:An.length)&&Oa.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Oa.push("\u7A0B\u5E8F\u4EE3\u7801\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u7A0B\u5E8F\u4EE3\u7801\u4E2D\u7684\u586B\u7A7A\u9879\u9700\u8981\u4F7F\u7528 @\u2581@ \u7B26\u53F7\u6807\u8BC6\u51FA\u6765"):Oa.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),me!=null&&me.answer?(mn=me.answer)!=null&&mn.some(Fr=>!tr(Fr))&&Oa.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):Oa.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),me.platform=tr(me==null?void 0:me.platform),me!=null&&me.platform){const Fr=["c","c++","java","python","javascript","ruby"],ma=(yn=me==null?void 0:me.platform)==null?void 0:yn.toLowerCase(),va=Fr.findIndex(or=>or===ma);va>-1?me.platform=na[va]:Oa.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else Oa.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");tr(me==null?void 0:me.output)||Oa.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const cr=tr(String((me==null?void 0:me.timeLimit)||""));return me.timeLimit=cr,(!cr||cr&&!["3","4","5","6","7","8","9","10"].includes(cr))&&Oa.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),me.errorMsg=Oa.join(` +`),me}}],Bo=()=>b.createElement(b.Fragment,null,nt.filter(me=>{var gt;return!!((gt=wr.find(ln=>ln.id===(me==null?void 0:me.type)))==null?void 0:gt.element)}).map((me,gt)=>{var Bt;const ln=(Bt=wr.find(pt=>pt.id===(me==null?void 0:me.type)))==null?void 0:Bt.element;return b.createElement(b.Fragment,{key:me.id},ln(me,gt))})),ri=()=>tn(void 0,null,function*(){const me=rn.filter(gt=>!gt.checked);if(Ze!==3||!me.length){We.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if($n){Mr(!0),yield $n(rn),Mr(!1);return}ca.setFieldsValue({sub_discipline_id:St}),Xn(!0)}),Rr=(me,gt=[])=>{if(typeof me=="string")return me.trim();if(Array.isArray(me))return me.map(Bt=>Rr(Bt,gt));if(typeof me=="object"&&me!==null){const Bt={};for(const ln in me)me.hasOwnProperty(ln)&&(gt.includes(ln)?Bt[ln]=me[ln]:Bt[ln]=Rr(me[ln],gt));return Bt}return me},So=me=>tn(void 0,null,function*(){const gt=xr(Rr(me));Xe(gt),Cn(JSON.parse(JSON.stringify(gt))),Mt(3),Je(!1),wa(!1)});(0,b.useEffect)(()=>{if(Sr)return;const me=()=>{fn(gt=>gt>=90?(clearInterval(ur.current),90):gt+1)};return ur.current=setInterval(me,5e4/90),()=>clearInterval(ur.current)},[Sr]);const jo=(me,gt)=>{lr(!1);const Bt=new FormData;Object.keys(gt).forEach(pt=>{Bt.append(pt,gt[pt])});const ln=new window.XMLHttpRequest;ln.withCredentials=!0,ln.addEventListener("load",function(pt){return tn(this,null,function*(){var Ln,An;try{const mn=JSON.parse((Ln=pt==null?void 0:pt.target)==null?void 0:Ln.response);if(lr(!0),fn(100),yield new Promise(yn=>setTimeout(()=>yn(),780)),mn.status===0){if(!((An=mn==null?void 0:mn.data)!=null&&An.length)){We.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),Je(!1);return}So((mn==null?void 0:mn.data)||[])}else Je(!1),We.ZP.warning(mn==null?void 0:mn.message)}catch(mn){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",mn)}})}),ln.addEventListener("error",()=>{Je(!1)}),ln.open("POST",`${y.Z.API_SERVER}${me}`),ln.send(Bt)},ia=me=>tn(void 0,null,function*(){const gt=me.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf(gt)==-1?(We.ZP.error(`${me.name}\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\uFF0C\u5F53\u524D\u4EC5\u9650\u652F\u6301\u683C\u5F0F\u4E3Adocx\u6587\u4EF6\uFF08Microsoft Word 2007\u4EE5\u4E0A\u7684\u7248\u672C\uFF09`),Promise.reject()):(Je(!0),Qn("\u5904\u7406\u4E2D"),jo("/api/intelligent_imports/import.json",{file:me}),Promise.reject())});let Dn=[{key:1,label:b.createElement(ze.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:ia},b.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,vt.Ny)()||(0,vt.$O)())&&Dn.push({key:2,label:b.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{za.current.onClick()}});const Hn=[rn.length,(ba=rn.filter(me=>!!(me!=null&&me.errorMsg)))==null?void 0:ba.length];return b.createElement("div",{className:Be()(he.intelligentBox,"intelligent-body-curb",oa),style:ra(Wn({},Zn),{width:da}),ref:ga},b.createElement("div",{className:he.underpin},b.createElement("b",{style:Or}),b.createElement("b",{style:Or})),b.createElement("div",{className:he.head,style:{top:on}},b.createElement("div",{className:he.leftLayout},Ca||b.createElement(b.Fragment,null,b.createElement(Oe.Z,{align:"middle"},b.createElement("div",{className:he.title},"\u8BD5\u9898\u7F16\u8F91"),!Tt&&b.createElement(x.op,{href:`${y.Z.API_SERVER}/api/intelligent_imports/download_template`,download:!0,type:"link"},"\u4E0B\u8F7DWord\u6A21\u7248",b.createElement("i",{className:"iconfont icon-xiazai4 font14 ml10"})),b.createElement(x.op,{onClick:Na,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!Tt&&b.createElement(ke.Z,{overlayClassName:he.menu,menu:{items:Dn}},b.createElement(x.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!Oo&&Oo),b.createElement("div",{className:he.tip},b.createElement("i",{className:"iconfont icon-tishi7 font12 mr10"}),"\u63D0\u793A\uFF1A\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u7F16\u8F91\u533A\u70B9\u51FB\u5BF9\u5E94\u7684\u8BD5\u9898\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u8BC6\u522B"))),b.createElement(Oe.Z,{className:he.rightLayout,style:{alignItems:"start"}},Wa||b.createElement(b.Fragment,null,b.createElement("div",{className:he.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(Ze)&&b.createElement(De.default,{className:"ml20",checked:Nn,onChange:me=>wa(me.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(Ze)&&b.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",b.createElement("span",{className:"ml5 mr5 c-light-primary"},Hn[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",b.createElement("span",{className:"ml5 mr5 c-red-e53"},Hn[1]),"\u9898")),ar&&b.createElement("div",{className:he.tabs},nt==null?void 0:nt.map((me,gt)=>b.createElement("div",{onClick:()=>{Lr(gt)},className:Gr===gt&&he.active,key:gt},"\u65B0\u9898",gt+1)))),b.createElement("div",{className:he.centerBox},b.createElement("img",{className:"mb10",src:se,width:56}),!Ta&&b.createElement(x.op,{onClick:Nr},"\u8BC6\u522B"))),[1,2].includes(Ze)&&Eo(),[3].includes(Ze)&&Bo(),b.createElement("div",{className:"pb10"}),b.createElement("div",{className:he.buttonFixed},b.createElement("div",{className:he.buttonWrap},b.createElement(Ue.ZP,{size:"middle",className:`${he.button} mr20`,onClick:Aa},"\u53D6\u6D88"),b.createElement(Ue.ZP,{size:"middle",type:"primary",loading:no,className:`${he.button}`,onClick:ri},Un))),b.createElement(xe.default,{centered:!0,closable:!1,destroyOnClose:!0,open:Kn,title:null,footer:null,width:320,afterClose:()=>fn(0)},b.createElement(Oe.Z,{align:"middle",style:{flexDirection:"column"}},b.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},Rt,b.createElement("span",{className:he.dotLoading},b.createElement("span",null,"."),b.createElement("span",null,"."),b.createElement("span",null,"."))),b.createElement(ue.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:Xt}),b.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",b.createElement("span",{className:"ml5 c-light-primary"},Xt,"%")))),b.createElement(xe.default,{centered:!0,open:ya,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:Ea,width:480,onCancel:()=>Xn(!1),onOk:()=>ca.submit(),afterClose:()=>{ca.resetFields()}},b.createElement(Re.default,{style:{maxHeight:550},form:ca,layout:"horizontal",colon:!1,size:"large",onFinish:me=>tn(void 0,null,function*(){var gt,Bt,ln,pt,Ln;const An=rn.filter(Oa=>!Oa.checked&&!Oa.errorMsg);ta(!0);const mn=()=>tn(void 0,null,function*(){var Oa,cr;const Fr=yield(0,ie.ZP)("/api/intelligent_imports/save.json",{method:"post",body:ra(Wn(Wn({},_a),me),{list:An,mode:Sn})});Fr.status===0&&(Ut&&((Oa=Fr==null?void 0:Fr.data)!=null&&Oa.success)&&window.location.pathname==="/problemset"&&(ct.Z.publish("refresh-item-bank",me.group_id),yield new Promise(ma=>setTimeout(()=>ma(),1500))),We.ZP.success(`\u6210\u529F\u5BFC\u5165${(cr=Fr==null?void 0:Fr.data)==null?void 0:cr.success}\u9053\u8BD5\u9898`,3),xa(Fr),Xn(!1)),ta(!1)});if(Sn!==1){yield mn();return}const yn=yield(0,ie.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:rn,mode:Sn}});if(yn.status===0){if(!((gt=yn==null?void 0:yn.data)!=null&>.error_size)){yield mn();return}xe.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{ta(!1)},title:"\u63D0\u793A",content:b.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",b.createElement("span",{className:"c-light-primary ml5 mr5"},(Bt=yn==null?void 0:yn.data)==null?void 0:Bt.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",b.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(ln=yn==null?void 0:yn.data)==null?void 0:ln.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",b.createElement("span",{className:"ml5 mr5"},(Ln=(pt=yn==null?void 0:yn.data)==null?void 0:pt.index)==null?void 0:Ln.join("\u3001")),"\u9053\uFF09\uFF0C\u91CD\u590D\u8BD5\u9898\u5C06\u4F1A\u4E3A\u60A8\u81EA\u52A8\u8FC7\u6EE4\uFF0C\u786E\u5B9A\u5BFC\u5165\u5417\uFF1F"),onOk:mn})}})},b.createElement("div",{className:"c-grey-999 mb20"},"\u63D0\u793A\uFF1A\u8BC6\u522B\u6709\u8BEF\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u5BFC\u5165"),b.createElement(Re.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"sub_discipline_id",labelCol:{span:5},wrapperCol:{span:19},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"}]},b.createElement(E.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",fieldNames:{label:"name",value:"id",children:"sub_disciplines"},options:pr})),Sn===1&&b.createElement(Re.default.Item,{label:b.createElement(Oe.Z,{align:"middle",style:{justifyContent:"space-between"}},b.createElement("span",null,"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55"),b.createElement("div",{onClick:()=>ka(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},b.createElement("img",{className:"mr5 primary-hover",src:Fe}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"group_id",labelCol:{span:24},wrapperCol:{span:24}},b.createElement(Ee.Z,{key:qa})))),b.createElement(xe.default,{centered:!0,open:zt,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:Qr,onCancel:()=>ka(!1),onOk:()=>nn.submit(),afterClose:()=>{nn.resetFields()}},b.createElement(Re.default,{style:{maxHeight:550},form:nn,layout:"horizontal",colon:!1,size:"large",onFinish:me=>tn(void 0,null,function*(){var gt;Ua(!0),(yield(0,ie.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:me.name,parent_id:(gt=me==null?void 0:me.parent_id)==null?void 0:gt[0]}})).status===0?(Ht(qa+1),setTimeout(()=>{We.ZP.success("\u64CD\u4F5C\u6210\u529F"),ka(!1),Ua(!1)},1e3)):Ua(!1)})},b.createElement(Re.default.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},b.createElement(a.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"})),b.createElement(Re.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},b.createElement(Ee.Z,null)))),b.createElement(ot,{onSave:me=>{Je(!0),Qn("\u5904\u7406\u4E2D"),jo("/api/intelligent_imports/import.json",{html:me})},ref:za}))},Pa=z;var fr=Ha},78926:function(it,jt,ae){"use strict";var b=ae(59301),he=ae(89722),we=ae(48136),Be=ae(50892),Re=ae(43418),We=ae(59301);const xe=(0,b.forwardRef)(({callback:Ke,width:Oe,onChange:De,disabled:ke,readOnly:ze,type:Ue="",value:ue="",style:E={}},a)=>{const x=(0,b.useRef)(),y=(0,b.useRef)(),[z,te]=(0,b.useState)(0),[oe,se]=(0,b.useState)(0),[ie,Ee]=(0,b.useState)(!1),Fe=()=>{var Me=document.createElement("div");Me.innerHTML=x.current.getValue();var Ye=Me.innerText;return Ke&&Ke(Ye),Ye};(0,b.useImperativeHandle)(a,()=>({getData:Fe}));const Qe=Me=>{Me.preventDefault();const Ye=Me.clientX-z,Ge=Me.clientY-oe;document.body.onmousemove=$e=>{let be=$e.clientX-Ye,vt=$e.clientY-Ge;const ct=document.getElementsByClassName("markdown-popup-form")[0],bt=window.innerWidth-ct.offsetWidth,At=window.innerHeight-ct.offsetHeight;be=Math.max(0,Math.min(be,bt)),vt=Math.max(0,Math.min(vt,At)),Le($e.clientX,$e.clientY,Ye,Ge)&&(te(be),se(vt))},document.body.onmouseup=function(){document.body.onmousemove=null}},Le=(Me,Ye,Ge,$e)=>{const be=document.body.clientHeight,vt=document.body.clientWidth;return Me<20&&Ge>Me||Me>vt-20&&GeYe||Ye>be-20&&$e{ie&&setTimeout(()=>{const Me=document.getElementsByClassName("markdown-popup-form")[0],Ye=window.innerWidth/2-Me.offsetWidth/2,Ge=window.innerHeight/2-Me.offsetHeight/2;te(Ye),se(Ge)},0)},[ie]);const st=()=>{ke||ze||Ee(!0)};return We.createElement("div",{style:E},We.createElement("div",{style:{width:Oe||"100%",position:"relative"},className:`${he.Z.mathFillWrap} ${ke||ze?"cursorDefault":""}`,onClick:()=>st()},We.createElement("math-field",{disabled:ke,locale:"zh_cn",class:`${he.Z.mathField} ${Ue}`,readOnly:ze,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:x,style:{width:"100%",fontSize:ue?18:14},value:ue||""})),We.createElement(Re.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:z,top:oe},title:We.createElement("div",{style:{cursor:"move"},onMouseDown:Qe},"\u8F93\u5165\u516C\u5F0F"),open:ie,onOk:()=>{const Me=y.current.getData();x.current.setValue(Me),De(Me),Ee(!1)},onCancel:()=>{Ee(!1)},destroyOnClose:!0,className:"markdown-popup-form"},We.createElement(Be.Z,{value:ue,ref:y,onChange:De,showSaveButton:!1})))});jt.Z=xe},50892:function(it,jt,ae){"use strict";var b=ae(59301),he=ae(95237),we=ae(43604),Be=ae(99313),Re=ae(3113),We=ae(8658),xe=ae(89722),Ke=ae(48136),Oe=ae(59301);const De=(0,b.forwardRef)(({callback:ke,showSaveButton:ze,value:Ue=""},ue)=>{const E=(0,b.useRef)(),a=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r x=a + r\\text{cos}\\theta \\ \r y=b + r\\text{sin}\\theta \r \\end{matrix}\\right. `},{value:`\\begin{array}{l} \r @@ -232,7 +232,7 @@ ${Ba} \\end{array}`},{value:`\\begin{array}{c} \r P_{n}=n! \\\\ \r A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r -\\end{array}`}]}]}],y=oe=>{E.current.setValue(E.current.getValue()+" "+oe.value+" ")},z=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Oe.createElement(he.Z,{className:Be.Z.lists,gutter:[10,10]},a.map((oe,ue)=>Oe.createElement(we.Z,{flex:"110px",className:Be.Z.item},Oe.createElement("div",null,Oe.createElement(We.Z,{value:`$$${oe.value}$$`}),oe.name),Oe.createElement("div",{className:Be.Z.children},oe.children.map((ie,Ee)=>Oe.createElement("div",{key:Ee},Oe.createElement("h1",null,ie.name),Oe.createElement(he.Z,{gutter:[10,10]},ie.data.map((Fe,Qe)=>Oe.createElement(we.Z,{key:Qe,onClick:()=>y(Fe),className:Be.Z.diamond},Oe.createElement(We.Z,{value:"`$$"+Fe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Oe.createElement(he.Z,{className:Be.Z.lists,gutter:[10,10]},x.map((oe,ue)=>Oe.createElement(we.Z,{flex:"110px",className:Be.Z.item},Oe.createElement("div",null,Oe.createElement(We.Z,{value:"`$$"+oe.value+"$$`"}),oe.name),Oe.createElement("div",{className:Be.Z.children},oe.children.map((ie,Ee)=>Oe.createElement("div",{key:Ee},ie.name&&Oe.createElement("h1",null,ie.name),Oe.createElement(he.Z,{gutter:[10,10]},ie.data.map((Fe,Qe)=>Oe.createElement(we.Z,{key:Qe,onClick:()=>y(Fe),className:Be.Z.diamond},Oe.createElement(We.Z,{value:"`$$"+Fe.value+"$$`"}))))))))))}],te=()=>{var oe=document.createElement("div");oe.innerHTML=E.current.getValue();var ue=oe.innerText;return ke&&ke(ue),ue};return(0,b.useImperativeHandle)(le,()=>({getData:te})),Oe.createElement("div",{className:Be.Z.mathWrap},Oe.createElement(xe.default,{defaultActiveKey:"1",items:z}),Oe.createElement("math-field",{locale:"zh_cn",className:Be.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:E,style:{width:800,marginTop:30,fontSize:18}},Ue||""),ze&&Oe.createElement("div",{className:Be.Z.button},Oe.createElement(Re.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});jt.Z=De},98280:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return ze}});var b=ae(59301),he=ae(78241),we=ae(43418),xe=ae(92832),Re=ae(87169),We=ae(64866),Be={publicQuest:"publicQuest___iYvzo",publicQuestContent:"publicQuestContent___vgbKh",public_tips:"public_tips___UX0Dn",concat:"concat___wOfND"},Ke=ae(26692),Oe=ae(59301),De=(Ue,le,E)=>new Promise((a,x)=>{var y=oe=>{try{te(E.next(oe))}catch(ue){x(ue)}},z=oe=>{try{te(E.throw(oe))}catch(ue){x(ue)}},te=oe=>oe.done?a(oe.value):Promise.resolve(oe.value).then(y,z);te((E=E.apply(Ue,le)).next())}),ze=({type:Ue="subject",open:le,onCancel:E,onOkClick:a,subDisciplineId:x})=>{const[y]=he.default.useForm(),[z,te]=(0,b.useState)([]),[oe,ue]=(0,b.useState)(!1);(0,b.useEffect)(()=>{},[]);const ie=()=>De(void 0,null,function*(){if(Ue){const Ee=yield(0,We.ZP)("/api/disciplines.json",{method:"get",params:{source:Ue}});te(Ee.disciplines||[])}});return Oe.createElement(we.default,{title:Oe.createElement("div",{style:{fontWeight:"bold"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"),open:le,width:558,centered:!0,className:Be.publicQuest,onCancel:()=>{E(),y.resetFields()},onOk:()=>{y.validateFields().then(Ee=>De(void 0,null,function*(){const Fe=yield(0,We.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:Ee==null?void 0:Ee.name,sub_discipline_id:x}});(Fe==null?void 0:Fe.status)===0&&a({name:Ee==null?void 0:Ee.name,id:Fe==null?void 0:Fe.tag_discipline_id,public:!1,type:"personal"}),y.resetFields(),E()}))}},Oe.createElement("div",{className:Be.publicQuestContent},Oe.createElement("div",{className:Be.public_tips},Oe.createElement(Re.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),Oe.createElement(he.default,{labelAlign:"left",form:y,colon:!1},Oe.createElement(he.default.Item,{label:"\u77E5\u8BC6\u70B9\u540D\u79F0",name:"name",rules:[{required:!0}]},Oe.createElement(xe.default,{showCount:!0,maxLength:20,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"}))),Oe.createElement(Ke.Z,{open:oe,onCancel:()=>{ue(!1)}})))}},9683:function(it,jt,ae){"use strict";ae.d(jt,{Q:function(){return Oe},Z:function(){return ke}});var b=ae(59301),he={flex_box_center:"flex_box_center___VcCAZ",flex_space_between:"flex_space_between___I3jjO",flex_box_vertical_center:"flex_box_vertical_center___Rm_54",flex_box_center_end:"flex_box_center_end___nTsdc",flex_box_column:"flex_box_column___UVpzN",tags:"tags___kRRoe",text:"text___IyyEa",tagWrap:"tagWrap___v63mB",tag:"tag___X7wE6",c:"c___mZMPq",cpp:"cpp___eaTie",java:"java___gL98T",python:"python___eNRkk",edit:"edit___tbVu0"},we=ae(92310),xe=ae.n(we),Re=ae(43418),We=ae(8591),Be=ae(24905),Ke=(ze,Ue,le)=>new Promise((E,a)=>{var x=te=>{try{z(le.next(te))}catch(oe){a(oe)}},y=te=>{try{z(le.throw(te))}catch(oe){a(oe)}},z=te=>te.done?E(te.value):Promise.resolve(te.value).then(x,y);z((le=le.apply(ze,Ue)).next())});const Oe=({title:ze="\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00",dataSource:Ue=[],visible:le,setVisible:E,tip:a,onOk:x})=>{const[y,z]=(0,b.useState)([]),[te,oe]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{le&&z(Ue)},[le]),b.createElement(Re.default,{centered:!0,open:le,title:ze,confirmLoading:te,width:564,onOk:()=>Ke(void 0,null,function*(){if(!y.length){We.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}oe(!0),yield x(y),oe(!1)}),onCancel:()=>E(!1)},!!a&&b.createElement("div",{className:"c-grey-666 font16 mb10"},a),b.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},b.createElement(Be.default.Group,{value:y,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:ue=>{z(ue)}})))};var ke=({title:ze="\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00",className:Ue,style:le={},onEdit:E,dataSource:a=[]})=>{const x={C:b.createElement("div",{className:he.c},"C"),"C++":b.createElement("div",{className:he.cpp},"C++"),Java:b.createElement("div",{className:he.java},"Java"),Python:b.createElement("div",{className:he.python},"Python")};return b.createElement("div",{className:xe()(he.tags,Ue),style:le},!!ze&&b.createElement("div",{className:he.text},ze),b.createElement("div",{className:he.tagWrap},a==null?void 0:a.map(y=>b.createElement(b.Fragment,{key:y},x[y]))),!!E&&b.createElement("div",{onClick:E,className:`iconfont icon-bianji_Hover ${he.edit}`}))}},13919:function(it,jt,ae){"use strict";ae.d(jt,{t:function(){return Jn}});var b=ae(59301),he=ae(92832),we=ae(78241),xe=ae(43418),Re=ae(95237),We=ae(43604),Be=ae(5871),Ke=ae(57809),Oe=ae(5112),De=ae(27804),ke=ae(90115),ze=ae(63581),Ue=ae(8591),le=ae(3113),E=ae(71418),a=ae(24334),x={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},y=ae(64866),z=ae(25537),te=ae(30720),oe=ae(56102),ue=ae(48326),ie=ae(59301),Ee=Object.defineProperty,Fe=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Ye=(dn,Qt,Rt)=>Qt in dn?Ee(dn,Qt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):dn[Qt]=Rt,Ge=(dn,Qt)=>{for(var Rt in Qt||(Qt={}))st.call(Qt,Rt)&&Ye(dn,Rt,Qt[Rt]);if(Le)for(var Rt of Le(Qt))Me.call(Qt,Rt)&&Ye(dn,Rt,Qt[Rt]);return dn},$e=(dn,Qt)=>Fe(dn,Qe(Qt)),be=(dn,Qt,Rt)=>new Promise((Wn,ra)=>{var en=Fa=>{try{Ka(Rt.next(Fa))}catch(jn){ra(jn)}},Ba=Fa=>{try{Ka(Rt.throw(Fa))}catch(jn){ra(jn)}},Ka=Fa=>Fa.done?Wn(Fa.value):Promise.resolve(Fa.value).then(en,Ba);Ka((Rt=Rt.apply(dn,Qt)).next())}),ct=({buttonProps:dn,buttonText:Qt,form:Rt,hackIdentifier:Wn="",answerKey:ra,data:en})=>{const[Ba,Ka]=(0,b.useState)(!1),[Fa,jn]=(0,b.useState)(!1),[Ha,Pa]=(0,b.useState)(!1),[fr,oa]=(0,b.useState)({}),[Zn,da]=(0,b.useState)(""),[Aa,xa]=(0,b.useState)(""),_a=(0,b.useRef)(Wn),Sn=(0,b.useRef)(""),rn=(0,b.useRef)(!1);(0,b.useEffect)(()=>{Ha&&Ca()},[Ha]),(0,b.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const St=()=>new Date().getTime(),kt=en==null?void 0:en.code,ja=()=>{var Ta,Br;let ar=kt?en==null?void 0:en.code:(Ta=Rt.getFieldValue("hack_codes"))==null?void 0:Ta.code,Or=kt?en==null?void 0:en.answer_content:Rt.getFieldValue(ra),Oo=kt?en==null?void 0:en.input:(Br=Rt.getFieldValue("hack_sets"))==null?void 0:Br.input;Or==null||Or.forEach(Ut=>{const Un=Ut.value||Ut.answer_text||"";ar=ar.replace(/(@▁@|@▁▁@)/,Un)}),xa(Oo),da(ar),oa({}),Pa(!0)},Ca=()=>be(void 0,null,function*(){var Ta,Br,ar,Or;const Oo=St(),Ut=kt?en==null?void 0:en.time_limit:(Ta=Rt.getFieldsValue())==null?void 0:Ta.hack.time_limit,Un=kt?(Br=en==null?void 0:en.answer_content)==null?void 0:Br.length:(Or=(ar=Rt.getFieldsValue())==null?void 0:ar.standard_answers)==null?void 0:Or.length;Ka(!0),yield(0,z.bM)(Sn.current,{test_hack_code:Zn,test_input:Aa});function $n(){return be(this,null,function*(){const{status:ba,data:Ze}=yield(0,z.rX)(Sn.current,"submit"),Xt=St()-Oo>(Ut+3)*1e3*Un;if(rn.current){if(Xt){Ue.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),Ka(!1);return}if(ba===0){Ka(!1),oa($e(Ge({},Ze),{showText:!0}));return}setTimeout($n,1e3)}})}$n()}),Wa=()=>be(void 0,null,function*(){var Ta,Br,ar,Or,Oo,Ut,Un;if(!en){try{yield Rt.validateFields()}catch(Ot){(ar=(Br=(Ta=Ot==null?void 0:Ot.errorFields)==null?void 0:Ta[0])==null?void 0:Br.name)!=null&&ar.includes("standard_answers")?Ue.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ue.ZP.error(Ot.errorFields[0].errors[0]),Rt.scrollToField(Ot.errorFields[0].name,{behavior:"smooth",block:"center"});return}jn(!0);let ba="";const Ze=Rt.getFieldsValue();_a.current?ba=yield(0,y.ZP)(`/api/problems/${_a.current}.json`,{method:"put",body:$e(Ge({},Ze),{hack:$e(Ge({},Ze==null?void 0:Ze.hack),{sub_discipline_id:(Un=(Ut=Ze==null?void 0:Ze.hack)==null?void 0:Ut.sub_discipline_id)==null?void 0:Un[1],difficult:Ze.difficulty,item_banks_group_id:Ze.item_banks_group_id}),hack_codes:$e(Ge({},Ze.hack_codes),{code:a.Base64.encode(Ze.hack_codes.code)}),update_hack_sets:[Ge({},Ze.hack_sets)],is_blank:!0})}):(ba=yield(0,y.ZP)("/api/problems.json",{method:"post",body:$e(Ge({},Ze),{hack:$e(Ge({},Ze==null?void 0:Ze.hack),{sub_discipline_id:(Oo=(Or=Ze==null?void 0:Ze.hack)==null?void 0:Or.sub_discipline_id)==null?void 0:Oo[1],difficult:Ze.difficulty,item_banks_group_id:Ze.item_banks_group_id}),hack_codes:$e(Ge({},Ze.hack_codes),{code:a.Base64.encode(Ze.hack_codes.code)}),hack_sets:[Ge({},Ze.hack_sets)],is_blank:!0})}),_a.current=ba==null?void 0:ba.identifier,sessionStorage.projectFill=ba==null?void 0:ba.identifier)}const $n=yield(0,y.ZP)(`/api/problems/${_a.current}/start.json`,{method:"get"});if(($n==null?void 0:$n.status)===0){Sn.current=$n==null?void 0:$n.identifier,rn.current=!0,jn(!1),ja();return}jn(!1)}),Da=Ta=>{const{status:Br,error_msg:ar,execute_time:Or,output:Oo,input:Ut,expected_output:Un}=Ta;let $n=null;switch(Br){case ue.h.OK:$n=ie.createElement(ie.Fragment,null,ie.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Or/1e3,"\u79D2"),ie.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case ue.h.NOMATCH:$n=ie.createElement(ie.Fragment,null,ie.createElement("div",null,"\u8F93\u5165\uFF1A"),ie.createElement("pre",{style:{fontFamily:"initial"}},Ut),ie.createElement("div",null,"\u8F93\u51FA\uFF1A"),ie.createElement("pre",{style:{fontFamily:"initial"}},Oo&&a.Base64.decode(Oo)),ie.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),ie.createElement("pre",{style:{fontFamily:"initial"}},Un&&a.Base64.decode(Un)));break;case ue.h.EXECUTEFAILURE:$n=ie.createElement(ie.Fragment,null,ie.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ie.createElement("pre",null,Ut)),ie.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ie.createElement("pre",{className:"error"},a.Base64.decode(ar)));break;case ue.h.COMPILEFAILURE:$n=ie.createElement(ie.Fragment,null,ie.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ie.createElement("pre",null,Ut)),ie.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ie.createElement("pre",{className:"error"},a.Base64.decode(ar)));break;case ue.h.PODFAILURE:$n=ie.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case ue.h.TIMEOUT:$n=ie.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return ie.createElement(ie.Fragment,null," ",$n," ")};return ie.createElement("div",null,ie.createElement(le.ZP,$e(Ge({loading:Fa},dn),{onClick:Wa}),Qt),ie.createElement(xe.default,{open:Ha,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Ba,cancelButtonProps:{style:{display:"none"}},onOk:()=>Ca(),onCancel:()=>{rn.current=!1,Pa(!1)}},ie.createElement("div",{className:x.result},ie.createElement("div",{className:x.left},ie.createElement("div",{className:"mb20"},ie.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!en&&ie.createElement(oe.CopyToClipboard,{text:Zn,onCopy:()=>Ue.ZP.success("\u590D\u5236\u6210\u529F")},ie.createElement("span",{style:{float:"right"},className:"current c-light-primary"},ie.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),ie.createElement(te.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:Zn,onChange:Ta=>da(Ta)})),ie.createElement("div",{className:x.right},ie.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),ie.createElement("div",{className:x.box},ie.createElement("div",{className:x.li},ie.createElement(he.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Aa,onChange:Ta=>xa(Ta.target.value),bordered:!1,style:{height:180}}))),ie.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),ie.createElement("div",{className:x.box},ie.createElement(E.Z,{spinning:Ba,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},ie.createElement("div",{className:x.li,style:{height:196,overflow:"auto",padding:10}},Da(fr))))))))},Ft=ae(87169),At=ae(59301),En=Object.defineProperty,Bn=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,Pt=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Yt=(dn,Qt,Rt)=>Qt in dn?En(dn,Qt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):dn[Qt]=Rt,xn=(dn,Qt)=>{for(var Rt in Qt||(Qt={}))Te.call(Qt,Rt)&&Yt(dn,Rt,Qt[Rt]);if(Pt)for(var Rt of Pt(Qt))et.call(Qt,Rt)&&Yt(dn,Rt,Qt[Rt]);return dn},Lt=(dn,Qt)=>Bn(dn,Wt(Qt)),_t=(dn,Qt)=>{var Rt={};for(var Wn in dn)Te.call(dn,Wn)&&Qt.indexOf(Wn)<0&&(Rt[Wn]=dn[Wn]);if(dn!=null&&Pt)for(var Wn of Pt(dn))Qt.indexOf(Wn)<0&&et.call(dn,Wn)&&(Rt[Wn]=dn[Wn]);return Rt};const{TextArea:Ce}=he.default,ot=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],nn=({value:dn,onChange:Qt})=>At.createElement(Switch,{checked:dn,onChange:Rt=>{Qt(Rt)}}),nt="@\u2581@",ht="@\u2581\u2581@",Jn=({questionTitlePlaceholder:dn,form:Qt,scoreByBlank:Rt=!1,hackidentifier:Wn,answerKey:ra})=>{const[en,Ba]=(0,b.useState)(!1),[Ka,Fa]=(0,b.useState)(!1),Ha=(0,ke.useParams)().type==="edit",Pa=(Sn,rn)=>{const St=rn.line;let kt=0;for(let Ca=0;Ca{const ja=Sn.getRange(rn.from,rn.to);let Ca=0;if(rn.text.forEach(Wa=>{Ca+=Wa.split(nt).length-1}),rn.text.forEach(Wa=>{Ca+=Wa.split(ht).length-1}),rn.origin!=="setValue"){if(ja&&(ja.indexOf(nt)!==-1||ja.indexOf(ht)!==-1)){const Wa=ja.split(nt).length-1+ja.split(ht).length-1,Da=Pa(Sn,rn.from);if(console.log(`\u5220\u9664${Wa}\u4E2A\uFF0C \u524D\u9762\u6709${Da}\u4E2A\uFF0C\u65B0\u589E${Ca}\u4E2A`),Wa>1){const Ta=Array.from({length:Wa},(Br,ar)=>Da+ar);kt(Ta)}else kt(Da)}else if(Ca>0){const Wa=Pa(Sn,rn.from);console.log(`\u65B0\u589E${Ca}\u4E2A\uFF0C\u4E4B\u524D\u6709${Wa}\u4E2A`),St(Ca,Wa)}}},oa=()=>{const Sn=Qt.getFieldValue(ra);Qt.setFieldsValue({[ra]:Sn==null?void 0:Sn.map((rn,St)=>Lt(xn({},rn),{position:St+1}))})},Zn=(0,b.useRef)(),da=(Sn,rn)=>{for(let St=0;St{Aa.current(Sn),oa()},_a=we.default.useWatch(ra,Qt);return At.createElement("div",{className:ze.Z.wrap},At.createElement(we.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},At.createElement(De.h,{scrollId:"name",watch:!0,height:140})),At.createElement("div",{className:ze.Z.questionTitleEditorWrap},At.createElement(we.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},At.createElement(De.h,{scrollId:"name",watch:!0,height:400,hidetoolBar:!0,showNullProgramButton:!0,onChange:(Sn,rn)=>{const St=Qt.getFieldValue(ra);console.log("--preAnswerData",St,rn),Qt.setFieldsValue({[ra]:St==null?void 0:St.map((kt,ja)=>{var Ca;return Lt(xn({},kt),{position:ja+1,multi_line:(Ca=rn==null?void 0:rn[ja])==null?void 0:Ca.multiLine})})})},placeholder:dn,onCMBeforeChange:(Sn,rn)=>{fr(Sn,rn,da,xa)}}))),At.createElement(we.default.List,{name:ra,rules:[{validator(Sn,rn){if(!(rn!=null&&rn.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const St of rn){const{answer_text:kt}=St||{};if((kt==null?void 0:kt.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Sn,{add:rn,remove:St},{errors:kt})=>(Zn.current=rn,Aa.current=St,At.createElement(At.Fragment,null,At.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},At.createElement(we.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),At.createElement("div",{onClick:()=>{xe.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:At.createElement("div",null,At.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",At.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),At.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},At.createElement(Ft.Z,{style:{marginRight:3,color:"#3061D0"}}),At.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Sn.map((ja,Ca)=>{var Wa=ja,{key:Da,name:Ta}=Wa,Br=_t(Wa,["key","name"]),ar,Or;return At.createElement(Re.Z,{className:"mb20",key:Da,align:"middle",wrap:!1},At.createElement(We.Z,{flex:"0 0 auto",className:`${ze.Z.blankIndex}`},"\u586B\u7A7A\u9879",Ca+1),At.createElement(We.Z,{flex:1},At.createElement(Re.Z,{align:"top",justify:"space-between",wrap:!1},At.createElement(We.Z,null,At.createElement(we.default.Item,Lt(xn({},Br),{name:[Ta,"answer_text"],noStyle:!0}),(ar=_a==null?void 0:_a[Ta])!=null&&ar.multi_line||(Or=_a==null?void 0:_a[Ta])!=null&&Or.multiLine?At.createElement(Ce,{spellCheck:!1,style:{marginLeft:10,width:550}}):At.createElement(he.default,{style:{marginLeft:10,width:550},className:ze.Z.blankInput,size:"large",maxLength:1e3,onBlur:Oo=>{}}))),Rt&&At.createElement(We.Z,{flex:"224px"},At.createElement(we.default.Item,Lt(xn({},Br),{name:[Ta,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),At.createElement(Be.Z,{size:"large",className:ze.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),At.createElement("div",{onClick:()=>Ba(!0)},At.createElement(we.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},At.createElement(De.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:en}))),At.createElement(we.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},At.createElement(Ke.default,{size:"large"},ot.map(Sn=>At.createElement(Ke.default.Option,{key:Sn.title,value:Sn.key}," ",Sn.title)))),At.createElement(we.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},At.createElement(we.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},At.createElement(Be.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),At.createElement("span",{className:"ml10 font14"},"\u79D2")),At.createElement(we.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},At.createElement(Oe.ZP.Group,{style:{marginTop:-10}},At.createElement(Oe.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),At.createElement(Oe.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),At.createElement(Oe.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),At.createElement(we.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),At.createElement("div",{style:{background:"#F6F7F9",padding:15}},At.createElement(we.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},At.createElement(Ce,{rows:4})),At.createElement(we.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},At.createElement(Ce,{rows:4}))),At.createElement(ct,{form:Qt,answerKey:ra,hackIdentifier:Wn,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:At.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},60569:function(it,jt,ae){"use strict";ae.d(jt,{u:function(){return ie}});var b=ae(59301),he=ae(95237),we=ae(43604),xe=ae(6848),Re=ae(78241),We=ae(63581),Be=ae(32134),Ke=ae(12893),Oe=ae(27804),De=ae(59301),ke=Object.defineProperty,ze=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,x=(Ee,Fe,Qe)=>Fe in Ee?ke(Ee,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Ee[Fe]=Qe,y=(Ee,Fe)=>{for(var Qe in Fe||(Fe={}))E.call(Fe,Qe)&&x(Ee,Qe,Fe[Qe]);if(le)for(var Qe of le(Fe))a.call(Fe,Qe)&&x(Ee,Qe,Fe[Qe]);return Ee},z=(Ee,Fe)=>ze(Ee,Ue(Fe)),te=(Ee,Fe)=>{var Qe={};for(var Le in Ee)E.call(Ee,Le)&&Fe.indexOf(Le)<0&&(Qe[Le]=Ee[Le]);if(Ee!=null&&le)for(var Le of le(Ee))Fe.indexOf(Le)<0&&a.call(Ee,Le)&&(Qe[Le]=Ee[Le]);return Qe};const oe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ue=({value:Ee,onChange:Fe,choiceTextKey:Qe,answerKey:Le,index:st,isEdit:Me,setInputActive:Ye,form:Ge,choiceOptionsPath:$e,allowChangeMode:be,showAddIcon:vt,addItem:ct,deleteItem:Ft})=>{console.log(Ee,"value");const At=(Ee==null?void 0:Ee[Le])===1,En=()=>{const Wt=Ge.getFieldValue($e);Ge.setFieldValue($e,Wt.map(Pt=>z(y({},Pt),{[Le]:0})))},Bn=()=>{At?Fe(z(y({},Ee),{[Le]:0})):(be||En(),Fe(z(y({},Ee),{[Le]:1})))};return De.createElement(he.Z,{className:We.Z.choiceWrap,align:"middle",wrap:!1},De.createElement(we.Z,{onClick:Bn,className:`${We.Z.choiceIndex} ${At?We.Z.activeAnswer:""}`},oe[st]),De.createElement(we.Z,{flex:1,className:`${We.Z.editorWrap} ml15`,onClick:Ye},De.createElement(Oe.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Me,value:Ee==null?void 0:Ee[Qe],onChange:Wt=>{Fe(z(y({},Ee),{[Qe]:Wt}))}})),De.createElement(we.Z,{flex:"0 0 auto",className:"ml15"},De.createElement("div",{onClick:Bn,className:`${We.Z.setAnswerBtn} ${At?We.Z.activeAnswer:""}`},At?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),De.createElement(we.Z,{className:We.Z.actionWrapper},De.createElement(xe.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},De.createElement(Be.Z,{className:We.Z.addIcon,onClick:ct,style:{visibility:vt?"visible":"hidden"}})),De.createElement(xe.Z,{title:"\u5220\u9664"},De.createElement(Ke.Z,{className:We.Z.deleteIcon,onClick:Ft,style:{visibility:st>1?"visible":"hidden"}}))))},ie=({questionTitlePlaceholder:Ee,titleKey:Fe,choiceKey:Qe,analysisKey:Le,choiceTextKey:st,answerKey:Me,choiceOptionsPath:Ye,allowChangeMode:Ge=!0,form:$e,showAnalysis:be=!0})=>{const[vt,ct]=(0,b.useState)(),[Ft,At]=(0,b.useState)(!1);return De.createElement("div",{className:We.Z.wrap},De.createElement("div",{className:We.Z.questionTitleEditorWrap},De.createElement(Re.default.Item,{label:"\u9898\u5E72",name:Fe,labelCol:{span:24},rules:[{required:!0}]},De.createElement(Oe.h,{scrollId:Array.isArray(Fe)?Fe.join("_"):`${Fe}`,watch:!0,height:140,placeholder:Ee}))),De.createElement(Re.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),De.createElement(Re.default.List,{name:Qe,rules:[{validator(En,Bn){const Wt=Bn.some(Te=>Te[Me]===1),Pt=Bn.findIndex(Te=>{var et;return((et=Te[st])==null?void 0:et.length)<=0});return Pt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${oe[Pt]}\u9009\u9879\u7684\u5185\u5BB9`)):Wt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(En,{add:Bn,remove:Wt})=>De.createElement("div",{id:Array.isArray(Ye)?Ye.join("_"):`${Ye}`},En.map((Pt,Te)=>{var et=Pt,{key:Yt,name:xn}=et,Lt=te(et,["key","name"]);const _t=vt===Yt,Ce=()=>{ct(Yt)},ot=Te<7&&Te===En.length-1,nn=()=>Bn({[st]:"",[Me]:0}),nt=()=>Wt(xn);return De.createElement(Re.default.Item,z(y({},Lt),{key:Yt,name:xn,className:We.Z.choiceListWrap,rules:[{validator(ht,Jn){return Jn!=null&&Jn.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${oe[Te]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),De.createElement(ue,{choiceTextKey:st,answerKey:Me,index:Te,isEdit:_t,setInputActive:Ce,form:$e,choiceOptionsPath:Ye,allowChangeMode:Ge,showAddIcon:ot,addItem:nn,deleteItem:nt}))}),En.length<8&&De.createElement("div",{className:`${We.Z.addBtn} mb30`,onClick:()=>Bn({[st]:"",[Me]:0})},"\u6DFB\u52A0\u9009\u9879"))),be&&De.createElement("div",{onClick:()=>At(!0)},De.createElement(Re.default.Item,{name:Le,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},De.createElement(Oe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ft}))))}},55862:function(it,jt,ae){"use strict";ae.d(jt,{u:function(){return Ge}});var b=ae(59301),he=ae(43418),we=ae(95237),xe=ae(43604),Re=ae(92832),We=ae(6848),Be=ae(78673),Ke=ae(78241),Oe=ae(5112),De=ae(5871),ke=ae(27804),ze=ae(12893),Ue=ae(61485),le=ae(63581),E=ae(78926),a=ae(59301),x=Object.defineProperty,y=Object.defineProperties,z=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,ie=($e,be,vt)=>be in $e?x($e,be,{enumerable:!0,configurable:!0,writable:!0,value:vt}):$e[be]=vt,Ee=($e,be)=>{for(var vt in be||(be={}))oe.call(be,vt)&&ie($e,vt,be[vt]);if(te)for(var vt of te(be))ue.call(be,vt)&&ie($e,vt,be[vt]);return $e},Fe=($e,be)=>y($e,z(be)),Qe=($e,be)=>{var vt={};for(var ct in $e)oe.call($e,ct)&&be.indexOf(ct)<0&&(vt[ct]=$e[ct]);if($e!=null&&te)for(var ct of te($e))be.indexOf(ct)<0&&ue.call($e,ct)&&(vt[ct]=$e[ct]);return vt};const Le=({value:$e,onChange:be})=>{const vt=Ft=>{he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:le.Z.modal,onOk:()=>{const At=[...$e];At.splice(Ft,1),be(At)}})},ct=()=>{const Ft=[...$e];Ft.push(""),be(Ft)};return a.createElement(we.Z,{className:"ml20"},a.createElement(xe.Z,{flex:1},$e==null?void 0:$e.map((Ft,At)=>a.createElement(we.Z,{key:`${Ft}_${At}`,className:"mb20"},a.createElement(Re.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Ft,autoSize:{maxRows:3},maxLength:1e3,onBlur:En=>{const Bn=[...$e],Wt=En.target.value.trim();Bn[At]=Wt,be(Bn)}}),a.createElement(We.Z,{title:"\u5220\u9664"},a.createElement(ze.Z,{className:le.Z.deleteIcon,style:{marginLeft:15,visibility:At>0?"visible":"hidden"},onClick:()=>vt(At)}))))),a.createElement(xe.Z,null,a.createElement("div",{className:`${le.Z.addBtn}`,onClick:()=>{ct()}},"\u65B0\u589E\u7B54\u6848")))},st=({value:$e,onChange:be})=>{const vt=Ft=>{he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:le.Z.modal,onOk:()=>{const At=[...$e];At.splice(Ft,1),be(At)}})},ct=()=>{const Ft=[...$e];Ft.push(""),be(Ft)};return a.createElement(we.Z,{className:"ml20"},a.createElement(xe.Z,{flex:1},$e==null?void 0:$e.map((Ft,At)=>a.createElement(we.Z,{key:`${Ft}_${At}`,align:"middle",className:"mb20"},a.createElement(E.Z,{value:Ft,style:{flex:1},onChange:En=>{const Bn=[...$e];Bn[At]=En,be(Bn)}}),a.createElement(We.Z,{title:"\u5220\u9664"},a.createElement(ze.Z,{className:le.Z.deleteIcon,style:{marginLeft:15,visibility:At>0?"visible":"hidden"},onClick:()=>vt(At)}))))),a.createElement(xe.Z,null,a.createElement("div",{className:`${le.Z.addBtn}`,onClick:()=>{ct()}},"\u65B0\u589E\u7B54\u6848")))},Me=({value:$e=!0,onChange:be})=>a.createElement(Be.Z,{checked:!$e,onChange:vt=>{be(!vt)}}),Ye="\u2581",Ge=({questionTitlePlaceholder:$e,form:be,scoreByBlank:vt=!1,answerKey:ct})=>{const[Ft,At]=(0,b.useState)(!1),En=(Lt,_t)=>{const Ce=_t.line;let ot=0;for(let nt=0;nt{const nn=Lt.getRange(_t.from,_t.to);let nt=0;if(_t.text.forEach(ht=>{nt+=ht.split(Ye).length-1}),_t.origin!=="setValue"){if(nn&&nn.indexOf(Ye)!==-1){const ht=nn.split(Ye).length-1,Jn=En(Lt,_t.from);if(console.log(`\u5220\u9664${ht}\u4E2A\uFF0C \u524D\u9762\u6709${Jn}\u4E2A\uFF0C\u65B0\u589E${nt}\u4E2A`),ht>1){const dn=Array.from({length:ht},(Qt,Rt)=>Jn+Rt);ot(dn)}else ot(Jn)}else if(nt>0){const ht=En(Lt,_t.from);console.log(`\u65B0\u589E${nt}\u4E2A\uFF0C\u4E4B\u524D\u6709${ht}\u4E2A`),Ce(nt,ht)}}},Wt=()=>{const Lt=be.getFieldValue(ct);be.setFieldsValue({[ct]:Lt.map((_t,Ce)=>Fe(Ee({},_t),{position:Ce+1}))})},Pt=(0,b.useRef)(),Te=(Lt,_t)=>{for(let Ce=0;Ce{et.current(Lt),Wt()},xn=Ke.default.useWatch(ct,be);return a.createElement("div",{className:le.Z.wrap},a.createElement("div",{className:le.Z.questionTitleEditorWrap},a.createElement(Ke.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},a.createElement(ke.h,{scrollId:"name",watch:!0,height:140,placeholder:$e,showNullButton:!0,onCMBeforeChange:(Lt,_t)=>{Bn(Lt,_t,Te,Yt)}}))),a.createElement(Ke.default.List,{name:ct,rules:[{validator(Lt,_t){if(!(_t!=null&&_t.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Ce of _t){const{answer_text:ot}=Ce||{};if(ot!=null&&ot.some(nn=>(nn==null?void 0:nn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Lt,{add:_t,remove:Ce},{errors:ot})=>(Pt.current=_t,et.current=Ce,a.createElement(a.Fragment,null,a.createElement(Ke.default.Item,{label:a.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(Lt!=null&&Lt.length)&&a.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),Lt.map((nn,nt)=>{var ht=nn,{key:Jn,name:dn}=ht,Qt=Qe(ht,["key","name"]),Rt,Wn;return a.createElement("div",{style:{marginBottom:10},key:Jn},a.createElement(we.Z,{className:"mb20",align:"middle",wrap:!1},a.createElement(xe.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${le.Z.blankIndex}`},"\u586B\u7A7A\u9879",nt+1),a.createElement(Ke.default.Item,Fe(Ee({},Qt),{name:[dn,"model"],noStyle:!0}),a.createElement(Oe.ZP.Group,{onChange:()=>{const ra=be.getFieldValue(ct);be.setFieldsValue({[ct]:ra.map((en,Ba)=>Fe(Ee({},en),{answer_text:dn===Ba?[""]:en.answer_text}))})}},a.createElement(Oe.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",a.createElement(We.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},a.createElement(Ue.Z,null))),a.createElement(Oe.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",a.createElement(We.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},a.createElement(Ue.Z,null)))))),a.createElement(we.Z,{style:{marginLeft:20},align:"middle",wrap:!1},a.createElement(xe.Z,{flex:1},a.createElement(we.Z,{align:"top",justify:"space-between",wrap:!1},a.createElement(xe.Z,{flex:1},a.createElement(Ke.default.Item,Fe(Ee({},Qt),{name:[dn,"answer_text"],noStyle:!0}),((Wn=(Rt=be.getFieldValue(ct))==null?void 0:Rt[dn])==null?void 0:Wn.model)===1?a.createElement(Le,null):a.createElement(st,null))),vt&&a.createElement(xe.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},a.createElement(Ke.default.Item,Fe(Ee({},Qt),{name:[dn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:le.Z.blankInputNumberWrapper}),a.createElement(De.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),a.createElement(Ke.default.Item,Fe(Ee({},Qt),{name:[dn,"position"],noStyle:!0}),a.createElement(Re.default,{type:"hidden"})))))})))),a.createElement(we.Z,{align:"middle"},a.createElement(Ke.default.Item,{name:"downcase",valuePropName:"checked"},a.createElement(Be.Z,null)),a.createElement(xe.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),a.createElement(we.Z,{align:"middle"},a.createElement(Ke.default.Item,{name:"no_space",valuePropName:"checked"},a.createElement(Be.Z,null)),a.createElement(xe.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(xn==null?void 0:xn.length)>1&&a.createElement(we.Z,{align:"middle",className:(xn==null?void 0:xn.length)>1?"mb30":`${le.Z.hide}`},a.createElement(Ke.default.Item,{name:"is_ordered"},a.createElement(Me,null)),a.createElement(xe.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),a.createElement("div",{onClick:()=>At(!0)},a.createElement(Ke.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},a.createElement(ke.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ft}))))}},85881:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return te}});var b=ae(59301),he=ae(95237),we=ae(43604),xe=ae(78241),Re=ae(63581),We=ae(27804),Be=ae(59301),Ke=Object.defineProperty,Oe=Object.defineProperties,De=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,le=(oe,ue,ie)=>ue in oe?Ke(oe,ue,{enumerable:!0,configurable:!0,writable:!0,value:ie}):oe[ue]=ie,E=(oe,ue)=>{for(var ie in ue||(ue={}))ze.call(ue,ie)&&le(oe,ie,ue[ie]);if(ke)for(var ie of ke(ue))Ue.call(ue,ie)&&le(oe,ie,ue[ie]);return oe},a=(oe,ue)=>Oe(oe,De(ue)),x=(oe,ue)=>{var ie={};for(var Ee in oe)ze.call(oe,Ee)&&ue.indexOf(Ee)<0&&(ie[Ee]=oe[Ee]);if(oe!=null&&ke)for(var Ee of ke(oe))ue.indexOf(Ee)<0&&Ue.call(oe,Ee)&&(ie[Ee]=oe[Ee]);return ie};const y={\u6B63\u786E:"T",\u9519\u8BEF:"F"},z=({value:oe,onChange:ue,form:ie})=>{const Ee=(oe==null?void 0:oe.is_answer)===1,Fe=oe==null?void 0:oe.choice_text,Qe=()=>{const Le=ie.getFieldsValue().choices.map(st=>({choice_text:st.choice_text,is_answer:0}));ie.setFieldsValue({choices:Le}),ue(a(E({},oe),{is_answer:1}))};return Be.createElement(he.Z,{className:Re.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},Be.createElement(we.Z,{onClick:Qe,className:`${Re.Z.choiceIndex} ${Re.Z.judgementIndex} ${Ee?Re.Z.activeAnswer:""}`},y[Fe]),Be.createElement(we.Z,{flex:1,className:`${Re.Z.editorWrap} ml15`},Be.createElement("div",{className:`${Re.Z.inputBorder} ${Re.Z.placeholder} ${Ee?Re.Z.activeJudgementAnswer:""}`},Fe)),Be.createElement(we.Z,{flex:"0 0 auto",className:"ml15"},Be.createElement("div",{onClick:Qe,className:`${Re.Z.setAnswerBtn} ${Ee?Re.Z.activeAnswer:""}`},Ee?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},te=({questionTitlePlaceholder:oe,choiceKey:ue,form:ie})=>{const[Ee,Fe]=(0,b.useState)(!1);return Be.createElement("div",{className:Re.Z.wrap},Be.createElement("div",{className:Re.Z.questionTitleEditorWrap},Be.createElement(xe.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Be.createElement(We.h,{scrollId:"name",watch:!0,height:140,placeholder:oe}))),Be.createElement(xe.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Be.createElement(xe.default.List,{name:"choices",rules:[{validator(Qe,Le){return Le.some(Me=>(Me==null?void 0:Me.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Qe=>Be.createElement("div",{id:"choices"},Qe.map(Le=>{var st=Le,{key:Me,name:Ye}=st,Ge=x(st,["key","name"]);return Be.createElement(xe.default.Item,a(E({},Ge),{key:Me,name:Ye,noStyle:!0}),Be.createElement(z,{form:ie}))})))),Be.createElement("div",{onClick:()=>Fe(!0)},Be.createElement(xe.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Be.createElement(We.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ee}))))}},27804:function(it,jt,ae){"use strict";ae.d(jt,{h:function(){return E},x:function(){return a}});var b=ae(30720),he=ae(63581),we=ae(8658),xe=ae(59301),Re=Object.defineProperty,We=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,ke=(x,y,z)=>y in x?Re(x,y,{enumerable:!0,configurable:!0,writable:!0,value:z}):x[y]=z,ze=(x,y)=>{for(var z in y||(y={}))Oe.call(y,z)&&ke(x,z,y[z]);if(Ke)for(var z of Ke(y))De.call(y,z)&&ke(x,z,y[z]);return x},Ue=(x,y)=>We(x,Be(y)),le=(x,y)=>{var z={};for(var te in x)Oe.call(x,te)&&y.indexOf(te)<0&&(z[te]=x[te]);if(x!=null&&Ke)for(var te of Ke(x))y.indexOf(te)<0&&De.call(x,te)&&(z[te]=x[te]);return z};const E=x=>{var y=x,{value:z,onChange:te,scrollId:oe}=y,ue=le(y,["value","onChange","scrollId"]);return xe.createElement("div",{id:oe||""},xe.createElement(b.Z,Ue(ze({},ue),{defaultValue:z,onChange:(ie,Ee)=>{Ee!=null&&Ee.length?te(ie,Ee):te(ie)}})))},a=({value:x,onChange:y,placeholder:z,height:te=140,isEdit:oe,miniToolbar:ue,watch:ie=!0})=>oe?xe.createElement(b.Z,{watch:ie,isFocus:!0,height:te||void 0,placeholder:z,defaultValue:x,onChange:y,miniToolbar:ue}):xe.createElement("div",{style:{cursor:"pointer"}},x?xe.createElement(we.Z,{className:he.Z.inputBorder,value:x}):xe.createElement("div",{className:`${he.Z.inputBorder} ${he.Z.placeholder} inputBorderError`},z))},2078:function(it,jt,ae){"use strict";ae.d(jt,{W:function(){return st}});var b=ae(59301),he=ae(8591),we=ae(12563),xe=ae(78241),Re=ae(78673),We=ae(95237),Be=ae(43604),Ke=ae(6848),Oe=ae(92832),De=ae(5871),ke=ae(63581),ze=ae(27804),Ue=ae(30720),le=ae(61485),E=Object.defineProperty,a=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,oe=(Me,Ye,Ge)=>Ye in Me?E(Me,Ye,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Me[Ye]=Ge,ue=(Me,Ye)=>{for(var Ge in Ye||(Ye={}))z.call(Ye,Ge)&&oe(Me,Ge,Ye[Ge]);if(y)for(var Ge of y(Ye))te.call(Ye,Ge)&&oe(Me,Ge,Ye[Ge]);return Me},ie=(Me,Ye)=>a(Me,x(Ye)),Ee=(Me,Ye)=>{var Ge={};for(var $e in Me)z.call(Me,$e)&&Ye.indexOf($e)<0&&(Ge[$e]=Me[$e]);if(Me!=null&&y)for(var $e of y(Me))Ye.indexOf($e)<0&&te.call(Me,$e)&&(Ge[$e]=Me[$e]);return Ge};const Fe=Me=>{var Ye=Me,{value:Ge,onChange:$e}=Ye,be=Ee(Ye,["value","onChange"]);const vt=ct=>{$e([ct])};return b.createElement(Ue.Z,ie(ue({},be),{defaultValue:Ge==null?void 0:Ge[0],onChange:vt}))},Qe=Me=>{if(!Me)return!1;if(/^s*$/.test(Me)||Me.trim()===""){he.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Ye=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Me==="|"?(he.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Le=({value:Me=[],onClose:Ye})=>b.createElement(we.default,{closable:!0,onClose:Ye,className:ke.Z.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Me.join(" \u6216 "))),st=({questionTitlePlaceholder:Me,form:Ye,showKeywords:Ge,isMustKeyWords:$e=Ge})=>{const[be,vt]=(0,b.useState)(!1),[ct,Ft]=(0,b.useState)(""),At=xe.default.useWatch("use_keywords",Ye),En=xe.default.useWatch("question_score",Ye);return b.createElement("div",{className:ke.Z.wrap},b.createElement("div",{className:ke.Z.questionTitleEditorWrap},b.createElement(xe.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},b.createElement(ze.h,{scrollId:"name",watch:!0,height:140,placeholder:Me}))),b.createElement(xe.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},b.createElement(Fe,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Ge&&!$e&&b.createElement(xe.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},b.createElement(Re.Z,{defaultChecked:!0})),Ge&&$e&&b.createElement(We.Z,{align:"middle",className:"mb30"},b.createElement(xe.default.Item,{name:"use_keywords",valuePropName:"checked"},b.createElement(Re.Z,null)),b.createElement(Be.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(Be.Z,null,b.createElement(Ke.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(le.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(At||!$e)&&b.createElement(xe.default.List,{name:"keywords",rules:[{validator(Bn,Wt){return $e?Wt!=null&&Wt.length?(Wt==null?void 0:Wt.reduce((Te,et)=>Te+et.score,0))>parseFloat(En)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(Bn,{add:Wt,remove:Pt})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${ke.Z.title} mb10`},$e?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(We.Z,{align:"middle",className:"font14 mb30"},b.createElement(Be.Z,{flex:1},b.createElement(Oe.default,{value:ct,onChange:Te=>{Ft(Te.target.value)},maxLength:50,allowClear:!0,onPressEnter:Te=>{var et,Yt,xn,Lt;const _t=`${(et=Te.target)==null?void 0:et.value}`,Ce=(xn=(Yt=_t==null?void 0:_t.split("|"))==null?void 0:Yt.filter(nt=>!!nt))==null?void 0:xn.map(nt=>nt==null?void 0:nt.trim()),ot=Ye.getFieldValue("keywords"),nn=((Lt=ot==null?void 0:ot.map(nt=>nt==null?void 0:nt.keyword))==null?void 0:Lt.flat())||[];for(const nt of Ce)if(nn.includes(nt)){he.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Qe(_t)&&(Wt({keyword:Ce,score:1}),Ft(""))},className:ke.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(Be.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Bn.map(Te=>{var et=Te,{key:Yt,name:xn}=et,Lt=Ee(et,["key","name"]);return b.createElement(We.Z,{key:Yt,className:"mb20",style:{marginRight:148}},b.createElement(Be.Z,{flex:1},b.createElement(We.Z,{align:"middle",justify:"space-between"},b.createElement(xe.default.Item,ie(ue({},Lt),{name:[xn,"keyword"]}),b.createElement(Le,{onClose:()=>Pt(xn)})),$e&&b.createElement(xe.default.Item,ie(ue({},Lt),{name:[xn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ke.Z.blankInputNumberWrapper}),b.createElement(De.Z,{className:ke.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>vt(!0)},b.createElement(xe.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(ze.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:be}))))}},24136:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Re}});var b={text:"text___bQulM",sup:"sup___rX_Y3"},he=ae(78241),we=ae(59301),Re=({text:We,name:Be="question_score"})=>{const Ke=({value:Oe})=>we.createElement("div",{className:b.text},we.createElement("span",{className:b.sup},"*"),we.createElement("span",{className:"mr10"},"\u5206\u503C"),we.createElement("span",null,Oe||"--"),we.createElement("span",{className:"c-grey-999"},We));return we.createElement(he.default.Item,{noStyle:!0,name:Be},we.createElement(Ke,null))}},96267:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Qe},P:function(){return ie}});var b=ae(59301),he=ae(78241),we=ae(43418),xe=ae(5112),Re=ae(92832),We=ae(1710),Be={brief:"brief___LOzpE",contentTitle:"contentTitle___xkdcN",content:"content___Vtri0",tips:"tips___tuAtH",antdTable:"antdTable___s8T2N",tableCell:"tableCell___kN9Fw",antdModal:"antdModal___WVBk3",orangeColor:"orangeColor___ryB2u"},Ke=ae(55159),Oe=Object.defineProperty,De=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,E=(Le,st,Me)=>st in Le?Oe(Le,st,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Le[st]=Me,a=(Le,st)=>{for(var Me in st||(st={}))Ue.call(st,Me)&&E(Le,Me,st[Me]);if(ze)for(var Me of ze(st))le.call(st,Me)&&E(Le,Me,st[Me]);return Le},x=(Le,st)=>De(Le,ke(st)),y=(Le,st)=>{var Me={};for(var Ye in Le)Ue.call(Le,Ye)&&st.indexOf(Ye)<0&&(Me[Ye]=Le[Ye]);if(Le!=null&&ze)for(var Ye of ze(Le))st.indexOf(Ye)<0&&le.call(Le,Ye)&&(Me[Ye]=Le[Ye]);return Me},z=(Le,st,Me)=>new Promise((Ye,Ge)=>{var $e=ct=>{try{vt(Me.next(ct))}catch(Ft){Ge(Ft)}},be=ct=>{try{vt(Me.throw(ct))}catch(Ft){Ge(Ft)}},vt=ct=>ct.done?Ye(ct.value):Promise.resolve(ct.value).then($e,be);vt((Me=Me.apply(Le,st)).next())});const te=({studentNames:Le,total:st})=>{const Me=["","\u4E00","\u4E24","\u4E09"];return st>3?b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:Be.orangeColor},Le==null?void 0:Le.join("\u3001")),"\u7B49",b.createElement("span",{className:Be.orangeColor},st),"\u540D\u5B66\u751F"):b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:Be.orangeColor},Le==null?void 0:Le.join("\u3001")),Me[st],"\u540D\u5B66\u751F")},oe=({used:Le,copy:st,canNotCopy:Me,studentNames:Ye,studentCount:Ge,inPaper:$e,is_random:be=!1,position:vt=""})=>{const ct=()=>{if(st>0&&Me>0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:Be.orangeColor},st),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C",b.createElement("span",{className:Be.orangeColor},Me),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236");if(st>0&&Me===0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:Be.orangeColor},st),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236");if(st===0&&Me>0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:Be.orangeColor},Me),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236")},Ft=vt||($e?"\u8BD5\u5377":"\u8BFE\u7A0B");return b.createElement("span",null,b.createElement(te,{studentNames:Ye,total:Ge}),"\u5B66\u4E60\u8FC7",Ft,"\u4E2D\u7684",b.createElement("span",{className:Be.orangeColor},Le),"\u4E2A\u9879\u76EE\uFF0C",ct(),"\u3002\u8BF7\u9009\u62E9",be?"":"\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\u548C","\u662F\u5426\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")},ue=({onCancel:Le,onOk:st,visible:Me,inPaper:Ye,renderData:Ge,type:$e,isMultipleCourse:be=!1})=>{const[vt]=he.default.useForm(),[ct,Ft]=(0,b.useState)(1),[At,En]=(0,b.useState)(!1),Bn=(0,b.useMemo)(()=>(Ge==null?void 0:Ge.total_num)===1&&(Ge==null?void 0:Ge.can_copy_num)===1,[Ge]),Wt=(0,b.useMemo)(()=>{var Pt;return(Pt=Ge==null?void 0:Ge.course_data_list)==null?void 0:Pt.filter(Te=>Te.is_show)},[Ge]);return b.createElement(b.Fragment,null,Bn?b.createElement(we.default,{centered:!0,closable:!0,open:Me,destroyOnClose:!0,title:"\u63D0\u793A",className:Be.antdModal,width:682,confirmLoading:At,onCancel:Le,onOk:()=>z(void 0,null,function*(){var Pt;En(!0);let Te=ct;if(be){const et=a({},vt.getFieldsValue());Te=(Pt=Ge==null?void 0:Ge.course_data_list)==null?void 0:Pt.map(Yt=>et[Yt.id]!==void 0?x(a({},Yt),{is_copy:et[Yt.id]}):Yt)}yield st(Te),En(!1)})},b.createElement("div",{className:Be.content,style:{marginBottom:20}},be?"\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u95EE\u662F\u5426\u590D\u5236\u6210\u65B0\u7684\u5B9E\u8BAD\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u4E2D?":b.createElement(b.Fragment,null,b.createElement(te,{studentNames:Ge==null?void 0:Ge.student_names,total:Ge==null?void 0:Ge.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u5C06\u8BE5\u9879\u76EE\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")),be?b.createElement(he.default,{form:vt,preserve:!1},Wt==null?void 0:Wt.map(Pt=>b.createElement(b.Fragment,{key:Pt.id},b.createElement("h3",{className:"ml15 mb5"},Pt.name),b.createElement(he.default.Item,{name:Pt.id,initialValue:1},b.createElement(xe.ZP.Group,{className:Be.content},b.createElement(xe.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236\u5B9E\u8BAD"),b.createElement(xe.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236\u5B9E\u8BAD")))))):b.createElement(xe.ZP.Group,{value:ct,onChange:Pt=>Ft(Pt.target.value),className:Be.content,style:{marginBottom:30}},b.createElement(xe.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236"),b.createElement(xe.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236")),b.createElement("div",null,b.createElement("div",{className:Be.content,style:{marginBottom:10}},"* \u8BF4\u660E\uFF1A"),b.createElement("div",{className:Be.content,style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),b.createElement("div",{className:`${Be.content} ${Be.orangeColor}`},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"))):b.createElement(we.default,{centered:!0,closable:!0,destroyOnClose:!0,open:Me,confirmLoading:At,title:"\u63D0\u793A",width:682,onCancel:Le,onOk:()=>z(void 0,null,function*(){var Pt;En(!0);let Te=0;if(be){const et=a({},vt.getFieldsValue());Te=(Pt=Ge==null?void 0:Ge.course_data_list)==null?void 0:Pt.map(Yt=>et[Yt.id]!==void 0?x(a({},Yt),{is_use:et[Yt.id]}):Yt)}yield st(Te),En(!1)})},b.createElement("div",{className:Be.content},b.createElement(te,{studentNames:Ge==null?void 0:Ge.student_names,total:Ge==null?void 0:Ge.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002",be?b.createElement(he.default,{form:vt,preserve:!1},b.createElement("h3",null,"\u5F53\u524D\u5B9E\u8BAD\u4E0D\u53EF\u590D\u5236\uFF0C\u5DF2\u7ECF\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5B58\u5728\u8BE5\u5B9E\u8BAD\uFF0C\u540C\u4E00\u5B9E\u8BAD\u5728\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u4E92\u76F8\u5F71\u54CD\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7EE7\u7EED\u4F7F\u7528"),Wt==null?void 0:Wt.map(Pt=>b.createElement(b.Fragment,{key:Pt.id},b.createElement("h3",{className:"ml15 mb5"},Pt.name),b.createElement(he.default.Item,{name:Pt.id,initialValue:1},b.createElement(xe.ZP.Group,{className:Be.content},b.createElement(xe.ZP,{value:1,style:{color:"#464f66"}},"\u7EE7\u7EED\u4F7F\u7528"),b.createElement(xe.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u4F7F\u7528")))))):b.createElement("div",null,"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u82E5\u786E\u8BA4\u7EE7\u7EED\u53D1\u9001\uFF0C",b.createElement("span",{className:Be.orangeColor},"\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"),"\uFF08\u5982\u679C\u4E0D\u60F3\u6E05\u7A7A\u5B66\u751F\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u5EFA\u8BAE\u53C2\u7167\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u5185\u5BB9\u81EA\u884C\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u6216\u8005\u5C1D\u8BD5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u4EBA\u5F00\u653E\u672C\u9879\u76EE\u7684\u590D\u5236\u6743\u9650\uFF09\u3002"))))},ie=function(){const[Le,st]=(0,b.useState)(!1),[Me,Ye]=(0,b.useState)();return[Le,()=>st(!1),Me,be=>z(this,null,function*(){var vt;const ct=be,{isImportMultipleCourse:Ft=!1}=ct,At=y(ct,["isImportMultipleCourse"]);console.log(be);const En=(be==null?void 0:be.result)||(yield(0,Ke.Tr)(At));return"status"in En?!1:Ft?((vt=En==null?void 0:En.course_data_list)==null?void 0:vt.some(Wt=>Wt.is_show))?(Ye(En),st(!0),!0):En.course_data_list||[]:En.student_count===0?!1:(Ye(En),st(!0),!0)})]},Ee=Le=>{const[st]=he.default.useForm(),[Me,Ye]=(0,b.useState)(!1),{onCancel:Ge,onOk:$e,visible:be,inPaper:vt=!1,renderData:ct,type:Ft,isMultipleCourse:At=!1,position:En}=Le;let Bn=(0,b.useMemo)(()=>vt?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Be.tableCell,render(Te,et){return b.createElement("a",{href:`/shixuns/${et.identifier}/challenges`,target:"_blank"},Te)}},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(Te,et)=>b.createElement(b.Fragment,null,b.createElement(he.default.Item,{name:[`${Ft==="subject"?et.stage_shixun_id:et.shixun_course_id||et.id}`,"is_copy"],initialValue:1},b.createElement(xe.ZP.Group,null,b.createElement(xe.ZP,{value:1},"\u662F"),b.createElement(xe.ZP,{value:0},"\u5426"))),b.createElement(he.default.Item,{name:[`${Ft==="subject"?et==null?void 0:et.stage_shixun_id:et.shixun_course_id||et.id}`,"is_use"],hidden:!0,initialValue:1},b.createElement(Re.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:Be.tableCell,render(Te,et){return b.createElement("a",{href:`/shixuns/${et.identifier}/challenges`,target:"_blank"},Te)}},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(Te,et)=>b.createElement(he.default.Item,{name:[`${Ft==="subject"?et.stage_shixun_id:et.shixun_course_id||et.id}`,"is_use"],initialValue:1},b.createElement(xe.ZP.Group,null,b.createElement(xe.ZP,{value:1},"\u662F"),b.createElement(xe.ZP,{value:0},"\u5426")))},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(Te,et)=>b.createElement(he.default.Item,{name:[`${Ft==="subject"?et.stage_shixun_id:et.shixun_course_id||et.id}`,"is_copy"],initialValue:1},b.createElement(xe.ZP.Group,null,b.createElement(xe.ZP,{value:1},"\u662F"),b.createElement(xe.ZP,{value:0},"\u5426")))}],[vt]),Wt=(0,b.useMemo)(()=>vt?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:Be.tableCell,align:"center",ellipsis:!0,render:(Te,et)=>b.createElement(b.Fragment,null,b.createElement("a",{href:`/shixuns/${et.identifier}/challenges`,target:"_blank"},Te),b.createElement(he.default.Item,{name:[`${Ft==="subject"?et==null?void 0:et.stage_shixun_id:et.shixun_course_id||et.id}`,"is_copy"],hidden:!0,initialValue:0},b.createElement(Re.default,{type:"hidden"})),b.createElement(he.default.Item,{name:[`${Ft==="subject"?et==null?void 0:et.stage_shixun_id:et.shixun_course_id||et.id}`,"is_use"],hidden:!0,initialValue:1},b.createElement(Re.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:Be.tableCell,ellipsis:!0,align:"center",render:(Te,et)=>b.createElement("a",{href:`/shixuns/${et.identifier}/challenges`,target:"_blank"},Te)},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(Te,et)=>b.createElement(b.Fragment,null,b.createElement(he.default.Item,{name:[`${Ft==="subject"?et==null?void 0:et.stage_shixun_id:et.shixun_course_id||et.id}`,"is_use"],initialValue:0},b.createElement(xe.ZP.Group,null,b.createElement(xe.ZP,{value:1},"\u662F"),b.createElement(xe.ZP,{value:0},"\u5426"))),b.createElement(he.default.Item,{name:[`${Ft==="subject"?et==null?void 0:et.stage_shixun_id:et.shixun_course_id||et.id}`,"is_copy"],hidden:!0,initialValue:0},b.createElement(Re.default,{type:"hidden"})))}],[vt]);if(At){const Te={title:"\u8BFE\u5802\u540D\u79F0",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:Be.tableCell,render:(et,Yt)=>b.createElement("a",{href:`/classrooms/${Yt.course_id}`},et)};Bn=[Te,...Bn],Wt=[Te,...Wt]}const Pt=(0,b.useMemo)(()=>oe({used:ct==null?void 0:ct.repeat_shixun_num,copy:ct==null?void 0:ct.can_copy_num,canNotCopy:ct==null?void 0:ct.no_copy_num,studentNames:ct==null?void 0:ct.student_names,studentCount:ct==null?void 0:ct.student_count,is_random:ct==null?void 0:ct.is_random,inPaper:vt,position:En}),[ct,vt,En]);return b.createElement(we.default,{title:"\u63D0\u793A",centered:!0,open:be,confirmLoading:Me,onOk:()=>z(void 0,null,function*(){Ye(!0);const Te=st.getFieldsValue(),et=Object.keys(Te).map(Yt=>({id:parseInt(Yt.split("_")[0]),course_id:parseInt(Yt.split("_")[1]),is_use:Te[Yt].is_use,is_copy:Te[Yt].is_copy}));yield $e(et),Ye(!1)}),onCancel:Ge,width:880,okText:"\u786E\u8BA4",className:Be.antdModal,destroyOnClose:!0},b.createElement(he.default,{form:st,preserve:!1},b.createElement("div",{className:Be.brief},Pt),b.createElement("div",{style:{marginBottom:30}},b.createElement("div",{style:{marginBottom:20}},"* \u8BF4\u660E"),b.createElement("div",{style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),b.createElement("div",{className:Be.orangeColor},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002")),(ct==null?void 0:ct.can_copy_num)>0&&b.createElement("div",null,b.createElement("div",{className:Be.contentTitle},"\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),b.createElement(We.default,{columns:Bn,className:Be.antdTable,dataSource:ct==null?void 0:ct.can_copy_list,rowKey:Ft==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),(ct==null?void 0:ct.no_copy_num)>0&&b.createElement("div",null,b.createElement("div",{className:Be.contentTitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),b.createElement(We.default,{columns:Wt,className:Be.antdTable,dataSource:ct==null?void 0:ct.no_copy_list,rowKey:Ft==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})),(ct==null?void 0:ct.no_use_list.length)>0&&(ct==null?void 0:ct.no_use_list.map(Te=>b.createElement("div",{key:Ft==="subject"?Te.stage_shixun_id:Te.shixun_course_id||Te.id},b.createElement(he.default.Item,{name:[`${Ft==="subject"?Te==null?void 0:Te.stage_shixun_id:Te.shixun_course_id||Te.id}`,"is_copy"],hidden:!0,initialValue:0},b.createElement(Re.default,{type:"hidden"})),b.createElement(he.default.Item,{name:[`${Ft==="subject"?Te==null?void 0:Te.stage_shixun_id:Te.shixun_course_id||Te.id}`,"is_use"],hidden:!0,initialValue:1},b.createElement(Re.default,{type:"hidden"})))))))};var Qe=Le=>{const{modalType:st}=Le;return st==="multiple"?b.createElement(Ee,a({},Le)):b.createElement(ue,a({},Le))}},27350:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Ke}});var b=ae(59301),he={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},we=ae(43418),xe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",We=(Oe,De,ke)=>new Promise((ze,Ue)=>{var le=x=>{try{a(ke.next(x))}catch(y){Ue(y)}},E=x=>{try{a(ke.throw(x))}catch(y){Ue(y)}},a=x=>x.done?ze(x.value):Promise.resolve(x.value).then(le,E);a((ke=ke.apply(Oe,De)).next())}),Ke=({type:Oe,resdata:De,onok:ke,oktext:ze,okloading:Ue})=>{const[le,E]=(0,b.useState)(!1),{can_copy_list:a,can_copy_num:x,challenge_type:y,course_data_list:z,no_copy_list:te,no_copy_num:oe,no_use_list:ue,no_use_num:ie,repeat_shixun_num:Ee,student_count:Fe,total_num:Qe,use_num:Le}=De;let st=x>0||Oe==="exercise";(0,b.useEffect)(()=>{(De==null?void 0:De.student_count)>0&&E(!0)},[De]),console.log("---11",Ue),(0,b.useEffect)(()=>{Ue||E(!1)},[Ue]);const Me=()=>{if(Oe==="exercise"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:he.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:he.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(Oe==="exercise"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:he.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:he.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Oe==="shixun"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:he.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Oe==="shixun"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:he.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Oe==="subject"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:he.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:he.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Oe==="subject"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",b.createElement("span",{className:he.orangeColor},Fe)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",b.createElement("span",{className:he.orangeColor},Le)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Oe==="exercisepush")return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:he.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",b.createElement("span",{className:he.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",b.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(Oe==="shixunpush"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:he.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:he.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Oe==="shixunpush"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:he.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",b.createElement("span",{className:he.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Ye=()=>{if(Oe==="exercise"||Oe==="subject"||Oe==="exercisepush"||Oe==="shixunpush")return b.createElement("div",{style:{marginTop:20}},oe>0&&b.createElement("div",null,b.createElement("span",{className:he.flex},b.createElement("img",{src:Re,style:{width:14}}),b.createElement("span",{className:he.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),b.createElement("div",{className:he.statusbody},Oe==="exercise"&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:he.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(Oe==="subject"||Oe==="exercisepush")&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",st&&b.createElement("span",{className:he.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),Oe==="shixunpush"&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",st&&b.createElement("span",{className:he.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),b.createElement("div",null,te==null?void 0:te.map((Ge,$e)=>b.createElement("a",{href:`/shixuns/${Ge.identifier}/challenges`,target:"_blank"},"\u300A",Ge==null?void 0:Ge.name,"\u300B",$e+1!==oe&&"\u3001"))))),x>0&&b.createElement("div",{style:{marginTop:20}},b.createElement("span",{className:he.flex},b.createElement("img",{src:xe,style:{width:14}}),b.createElement("span",{className:he.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),b.createElement("div",{className:he.statusbody},Oe==="exercise"&&b.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(Oe==="subject"||Oe==="exercisepush")&&b.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),Oe==="shixunpush"&&b.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),b.createElement("div",null,a==null?void 0:a.map((Ge,$e)=>b.createElement("a",{href:`/shixuns/${Ge.identifier}/challenges`,target:"_blank"},"\u300A",Ge==null?void 0:Ge.name,"\u300B",$e+1!==x&&"\u3001"))))));if(Oe==="shixun")return b.createElement("div",{style:{marginTop:20}},x>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return b.createElement(we.default,{open:le,onCancel:()=>{E(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!st&&"none"}},zIndex:1003,confirmLoading:Ue,okText:st?ze:"\u6211\u77E5\u9053\u4E86",onOk:()=>We(void 0,null,function*(){st?yield ke([...a,...ue]):E(!1)})},b.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Me(),Ye()))}},62319:function(it,jt,ae){"use strict";ae.d(jt,{h:function(){return oe}});var b=ae(59301),he=ae(57809),we=ae(78241),xe=ae(3113),Re=ae(89780),We=ae.n(Re),Be=ae(76809),Ke=ae(17022),Oe=Object.defineProperty,De=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,E=(ue,ie,Ee)=>ie in ue?Oe(ue,ie,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):ue[ie]=Ee,a=(ue,ie)=>{for(var Ee in ie||(ie={}))Ue.call(ie,Ee)&&E(ue,Ee,ie[Ee]);if(ze)for(var Ee of ze(ie))le.call(ie,Ee)&&E(ue,Ee,ie[Ee]);return ue},x=(ue,ie)=>De(ue,ke(ie));const y=he.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},te={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"]};jt.Z=({callback:ue,onCancel:ie})=>{const[Ee,Fe]=(0,b.useState)("python");function Qe(st){Fe(te[st][1])}function Le(st){ue(st)}return b.createElement(we.default,x(a({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Le,style:{width:500}}),b.createElement(we.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.createElement(he.default,{getPopupContainer:st=>st.parentNode,onChange:Qe},Object.keys(te).map(st=>b.createElement(y,{key:st,value:st},te[st][0])))),b.createElement(we.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},b.createElement(oe,{mode:Ee})),b.createElement("div",{className:"flex-container flex-end"},b.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(xe.ZP,{type:"ghost",onClick:ie},"\u53D6\u6D88")))};function oe({value:ue,onChange:ie,mode:Ee,options:Fe={}}){const Qe=(0,b.useRef)(),[Le,st]=(0,b.useState)();return(0,b.useEffect)(()=>{if(Le){let Me=function(Ye){const Ge=Ye.getValue();ie&&ie(Ge)};return Le.on("change",Me),()=>{Le.off("change",Me)}}},[Le,ie]),(0,b.useEffect)(()=>{Le&&Le.setOption("mode",Ee)},[Le,Ee]),(0,b.useEffect)(()=>{Le&&(ue!==Le.getValue()||ue==="")&&setTimeout(()=>{Le.setValue(ue||"")},300)},[Le,ue]),(0,b.useEffect)(()=>{if(Qe.current&&!Le){const Me=We().fromTextArea(Qe.current,a({mode:Ee,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Fe));st(Me)}},[Qe.current,Le]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:Qe}))}},30720:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Kn}});var b=ae(59301),he=ae(89780),we=ae.n(he),xe=ae(76374),Re=ae(76809),We=ae(6313),Be=ae(25717),Ke=ae(99498),Oe=ae(25419),De=ae(67549),ke=ae(8658),ze=({value:Je="",className:tt,showTextOnly:Xe,showLines:an,style:Cn={}})=>{const Nn=(0,b.useMemo)(()=>"",[Je]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:Nn}}))},Ue=ae(59301),le=Object.defineProperty,E=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(Je,tt,Xe)=>tt in Je?le(Je,tt,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Je[tt]=Xe,oe=(Je,tt)=>{for(var Xe in tt||(tt={}))y.call(tt,Xe)&&te(Je,Xe,tt[Xe]);if(x)for(var Xe of x(tt))z.call(tt,Xe)&&te(Je,Xe,tt[Xe]);return Je},ue=(Je,tt)=>E(Je,a(tt));let ie=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ee({onActionCallback:Je,title:tt,icon:Xe,actionName:an,className:Cn="",children:Nn}){function wa(){Je(an)}return Ue.createElement("a",{title:tt,className:Cn,onClick:wa},Ue.createElement("i",{className:`${Xe}`}),Nn)}var Fe=({watch:Je,showNullButton:tt,showNullProgramButton:Xe,onActionCallback:an,fullScreen:Cn,insertTemp:Nn,hidetoolBar:wa,extraUse:Ea})=>{const ta=[...ie,{title:`${Je?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Je?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ue.createElement("ul",{className:"markdown-toolbar-container"},!wa&&ta.map((ya,Xn)=>Ue.createElement("li",{key:Xn},ya.actionName?Ue.createElement(Ee,ue(oe({},ya),{onActionCallback:an})):Ue.createElement("span",{className:"v-line"}))),tt?Ue.createElement("li",null,Ue.createElement(Ee,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:an},Ue.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Xe?Ue.createElement(Ue.Fragment,null,Ue.createElement("li",null,Ue.createElement(Ee,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:an},Ue.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ue.createElement("li",null,Ue.createElement(Ee,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:an},Ue.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Nn&&Ue.createElement("li",null,Ue.createElement(Ee,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Nn}`,onActionCallback:an},Ue.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ea&&Ue.createElement("li",null,Ea),Ue.createElement("li",{className:"btn-full-screen"},Ue.createElement(Ee,{icon:`${Cn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Cn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:an})))},Qe=ae(61569),Le=ae(78241),st=ae(92832),Me=ae(3113),Ye=Object.defineProperty,Ge=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,Ft=(Je,tt,Xe)=>tt in Je?Ye(Je,tt,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Je[tt]=Xe,At=(Je,tt)=>{for(var Xe in tt||(tt={}))vt.call(tt,Xe)&&Ft(Je,Xe,tt[Xe]);if(be)for(var Xe of be(tt))ct.call(tt,Xe)&&Ft(Je,Xe,tt[Xe]);return Je},En=(Je,tt)=>Ge(Je,$e(tt));const Bn={labelCol:{span:4},wrapperCol:{span:20}};var Wt=({callback:Je,onCancel:tt})=>{function Xe(an){Je(an)}return b.createElement(Le.default,En(At({},Bn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Xe,style:{width:500}}),b.createElement(Le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(st.default,null)),b.createElement(Le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(st.default,null)),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Me.ZP,{type:"ghost",onClick:tt},"\u53D6\u6D88")))},Pt=ae(62319),Te=ae(52999),et=ae(43418),Yt=ae(95237),xn=ae(2781),Lt=ae(59301),_t=({callback:Je,onCancel:tt})=>{const Xe=document.createElement("canvas"),an=Xe.getContext("2d");Xe.width=1e3,Xe.height=800,an.fillStyle="#ffffff",an.fillRect(0,0,Xe.width,Xe.height);const Cn=Xe.toDataURL("image/png");return Lt.createElement(et.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Lt.createElement(Yt.Z,{style:{height:"100vh"}},Lt.createElement(xn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Cn,visible:!0,title:String(Date.now())},onOk:Nn=>{Je({src:Nn.url})},onClose:tt})))},Ce=ae(12378);function ot(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(ot,go.CommandHandler),ot.prototype.canAlignSelection=function(){var Je=this.diagram;return!(Je===null||Je.isReadOnly||Je.isModelReadOnly||Je.selection.count<2)},ot.prototype.alignLeft=function(){var Je=this.diagram;Je.startTransaction("aligning left");var tt=1/0;Je.selection.each(function(Xe){Xe instanceof go.Link||(tt=Math.min(Xe.position.x,tt))}),Je.selection.each(function(Xe){Xe instanceof go.Link||Xe.move(new go.Point(tt,Xe.position.y))}),Je.commitTransaction("aligning left")},ot.prototype.alignRight=function(){var Je=this.diagram;Je.startTransaction("aligning right");var tt=-1/0;Je.selection.each(function(Xe){if(!(Xe instanceof go.Link)){var an=Xe.actualBounds.x+Xe.actualBounds.width;tt=Math.max(an,tt)}}),Je.selection.each(function(Xe){Xe instanceof go.Link||Xe.move(new go.Point(tt-Xe.actualBounds.width,Xe.position.y))}),Je.commitTransaction("aligning right")},ot.prototype.alignTop=function(){var Je=this.diagram;Je.startTransaction("alignTop");var tt=1/0;Je.selection.each(function(Xe){Xe instanceof go.Link||(tt=Math.min(Xe.position.y,tt))}),Je.selection.each(function(Xe){Xe instanceof go.Link||Xe.move(new go.Point(Xe.position.x,tt))}),Je.commitTransaction("alignTop")},ot.prototype.alignBottom=function(){var Je=this.diagram;Je.startTransaction("aligning bottom");var tt=-1/0;Je.selection.each(function(Xe){if(!(Xe instanceof go.Link)){var an=Xe.actualBounds.y+Xe.actualBounds.height;tt=Math.max(an,tt)}}),Je.selection.each(function(Xe){Xe instanceof go.Link||Xe.move(new go.Point(Xe.actualBounds.x,tt-Xe.actualBounds.height))}),Je.commitTransaction("aligning bottom")},ot.prototype.alignCenterX=function(){var Je=this.diagram,tt=Je.selection.first();if(tt){Je.startTransaction("aligning Center X");var Xe=tt.actualBounds.x+tt.actualBounds.width/2;Je.selection.each(function(an){an instanceof go.Link||an.move(new go.Point(Xe-an.actualBounds.width/2,an.actualBounds.y))}),Je.commitTransaction("aligning Center X")}},ot.prototype.alignCenterY=function(){var Je=this.diagram,tt=Je.selection.first();if(tt){Je.startTransaction("aligning Center Y");var Xe=tt.actualBounds.y+tt.actualBounds.height/2;Je.selection.each(function(an){an instanceof go.Link||an.move(new go.Point(an.actualBounds.x,Xe-an.actualBounds.height/2))}),Je.commitTransaction("aligning Center Y")}},ot.prototype.alignColumn=function(Je){var tt=this.diagram;tt.startTransaction("align Column"),Je===void 0&&(Je=0),Je=parseFloat(Je);var Xe=new Array;tt.selection.each(function(Ea){Ea instanceof go.Link||Xe.push(Ea)});for(var an=0;an0){for(var Ea=Nn.elt(wa-1);Ea!==null&&Ea.isTreeExpanded&&!Ea.isTreeLeaf;){var ta=this._sortTreeChildrenByY(Ea);Ea=ta.last()}Ea!==null&&Je.select(Ea)}else Je.select(Cn)}}else if(Xe.key==="Down")if(tt.isTreeExpanded&&!tt.isTreeLeaf){var an=this._sortTreeChildrenByY(tt).first();an!==null&&Je.select(an)}else for(;tt!==null;){var Cn=tt.findTreeParentNode();if(Cn===null)break;var Nn=this._sortTreeChildrenByY(Cn),wa=Nn.indexOf(tt);if(waNn.y?1:Cn.xNn.x?1:0}),tt},ot.prototype.copyToClipboard=function(Je){go.CommandHandler.prototype.copyToClipboard.call(this,Je),this._lastPasteOffset.set(this.pasteOffset)},ot.prototype.pasteFromClipboard=function(){var Je=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Je,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Je},Object.defineProperty(ot.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Je){if(Je!=="move"&&Je!=="select"&&Je!=="scroll"&&Je!=="tree"&&Je!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Je);this._arrowKeyBehavior=Je}}),Object.defineProperty(ot.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Je){if(!(Je instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Je);this._pasteOffset.set(Je)}});var nn=ot,nt=ae(4285),ht=ae(43604),Jn=ae(64866),dn={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Qt=ae(59301),Rt=(Je,tt,Xe)=>new Promise((an,Cn)=>{var Nn=ta=>{try{Ea(Xe.next(ta))}catch(ya){Cn(ya)}},wa=ta=>{try{Ea(Xe.throw(ta))}catch(ya){Cn(ya)}},Ea=ta=>ta.done?an(ta.value):Promise.resolve(ta.value).then(Nn,wa);Ea((Xe=Xe.apply(Je,tt)).next())});function Wn({onCancel:Je,callback:tt}){let Xe=(0,b.useRef)(),an=(0,b.useRef)(),Cn=(0,b.useRef)(),Nn=(0,b.useRef)(!1);const wa=(0,b.useRef)(!1),[Ea,ta]=(0,b.useState)(0);function ya(){const zt=Ce.bx.make,ka={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Xe.current=new Ce.S0(an.current,{padding:20,grid:zt(Ce.s_,"Grid",zt(Ce.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),zt(Ce.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:vn=>{var na=vn.diagram.commandHandler.addTopLevelParts(vn.diagram.selection,!0);na||vn.diagram.currentTool.doCancel()},commandHandler:zt(nn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:vn=>{var na=vn.subject;na.location=na.location.copy().snapToGridPoint(vn.diagram.grid.gridOrigin,vn.diagram.grid.gridCellSize),setTimeout(()=>{vn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:vn=>{var na=vn.subject;setTimeout(()=>{vn.diagram.commandHandler.editTextBlock()})},LinkRelinked:vn=>{var na=vn.parameter.part;na.invalidateConnectedLinks();var Na=vn.subject;vn.diagram.toolManager.linkingTool.isForwards?Na.toNode.invalidateConnectedLinks():Na.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Xe.current.nodeTemplate=zt(Ce.NB,"Auto",{locationSpot:Ce.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ce.$u(120,60),minSize:new Ce.$u(40,40),resizable:!0,resizeCellSize:new Ce.$u(10,10),rotatable:!0},new Ce.KX("location","loc",Ce.E9.parse).makeTwoWay(Ce.E9.stringify),new Ce.KX("desiredSize","size",Ce.$u.parse).makeTwoWay(Ce.$u.stringify),zt(Ce.bn,{name:"SHAPE",fill:ka.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ce.z6.AllSides,toSpot:Ce.z6.AllSides},new Ce.KX("figure"),new Ce.KX("fill"),new Ce.KX("stroke","borderColor"),new Ce.KX("strokeWidth","thickness"),new Ce.KX("strokeDashArray","dash")),zt(Ce.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),zt(Ce.al,{margin:1,textAlign:"center",overflow:Ce.al.OverflowEllipsis,editable:!0},new Ce.KX("text").makeTwoWay(),new Ce.KX("stroke","color"))),Xe.current.nodeTemplate.toolTip=zt("ToolTip",zt(Ce.s_,"Vertical",{maxSize:new Ce.$u(200,NaN)},zt(Ce.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ce.KX("text")),zt(Ce.al,{font:"10pt sans-serif",textAlign:"center"},new Ce.KX("text","details"))));function pr(vn,na){var Na=(_n,sr)=>{_n.handled=!0,_n.diagram.model.commit(tr=>{var Ar=sr.part.adornedPart,Ur=new Ce.E9().setRectSpot(Ar.actualBounds,vn);Ur.subtract(Ar.location),Ur.scale(2,2),Ur.x+=Math.sign(Ur.x)*130,Ur.y+=Math.sign(Ur.y)*130,Ur.add(Ar.location),Ur.snapToGridPoint(_n.diagram.grid.gridOrigin,_n.diagram.grid.gridCellSize);var mr=tr.copyNodeData(Ar.data);tr.setGroupKeyForNodeData(mr,tr.getGroupKeyForNodeData(Ar.data)),tr.addNodeData(mr);var Yo={from:Ar.key,to:tr.getKeyForNodeData(mr)};tr.addLinkData(Yo);var Mo=_n.diagram.findNodeForData(mr);Mo.location=Ur,_n.diagram.select(Mo),setTimeout(()=>{_n.diagram.commandHandler.editTextBlock()},20)})};return zt(Ce.bn,{figure:na,alignment:vn,alignmentFocus:vn.opposite(),width:vn.equals(Ce.z6.Top)||vn.equals(Ce.z6.Bottom)?25:18,height:vn.equals(Ce.z6.Top)||vn.equals(Ce.z6.Bottom)?18:25,fill:"orange",stroke:ka.white,strokeWidth:4,mouseEnter:(_n,sr)=>sr.fill="dodgerblue",mouseLeave:(_n,sr)=>sr.fill="orange",isActionable:!0,click:Na,contextClick:Na})}function ho(vn){return zt(Ce.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(na,Na)=>Na.fill="dodgerblue",mouseLeave:(na,Na)=>Na.fill="orange",click:(na,Na)=>{na.diagram.commandHandler.showContextMenu(Na.part.adornedPart)}},vn||{})}Xe.current.nodeTemplate.selectionAdornmentTemplate=zt(Ce.uz,"Spot",zt(Ce.Vm,{padding:10}),pr(Ce.z6.Top,"TriangleUp"),pr(Ce.z6.Left,"TriangleLeft"),pr(Ce.z6.Right,"TriangleRight"),pr(Ce.z6.Bottom,"TriangleDown"),ho({alignment:new Ce.z6(.75,0)}));function qa(vn,na){return(Na,_n)=>{Na.handled=!0,Na.diagram.model.commit(sr=>{sr.set(_n.part.adornedPart.data,vn,na)})}}function Gt(vn,na){return na||(na="color"),zt(Ce.bn,{width:16,height:16,stroke:"lightgray",fill:vn,margin:1,background:"transparent",mouseEnter:(Na,_n)=>_n.stroke="dodgerblue",mouseLeave:(Na,_n)=>_n.stroke="lightgray",click:qa(na,vn),contextClick:qa(na,vn)})}function Qr(){return[zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Gt(ka.white,"fill"),Gt(ka.beige,"fill"),Gt(ka.extralightblue,"fill"),Gt(ka.extralightred,"fill"))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Gt(ka.lightgray,"fill"),Gt(ka.lightgreen,"fill"),Gt(ka.lightblue,"fill"),Gt(ka.lightred,"fill")))]}function Ua(){return[zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Gt(ka.black),Gt(ka.green),Gt(ka.blue),Gt(ka.red))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Gt(ka.white),Gt(ka.magenta),Gt(ka.purple),Gt(ka.orange)))]}function Sr(vn,na){return na||(na="thickness"),zt(Ce.bn,"LineH",{width:16,height:16,strokeWidth:vn,margin:1,background:"transparent",mouseEnter:(Na,_n)=>_n.background="dodgerblue",mouseLeave:(Na,_n)=>_n.background="transparent",click:qa(na,vn),contextClick:qa(na,vn)})}function lr(vn,na){return na||(na="dash"),zt(Ce.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:vn,margin:1,background:"transparent",mouseEnter:(Na,_n)=>_n.background="dodgerblue",mouseLeave:(Na,_n)=>_n.background="transparent",click:qa(na,vn),contextClick:qa(na,vn)})}function Gr(){return[zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Sr(1),Sr(2),Sr(3),Sr(4))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",lr(null),lr([2,4]),lr([4,4])))]}function Lr(vn,na){return na||(na="figure"),zt(Ce.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:vn,margin:1,background:"transparent",mouseEnter:(Na,_n)=>_n.fill="dodgerblue",mouseLeave:(Na,_n)=>_n.fill="lightgray",click:qa(na,vn),contextClick:qa(na,vn)})}Xe.current.nodeTemplate.contextMenu=zt("ContextMenu",zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Lr("Rectangle"),Lr("RoundedRectangle"),Lr("Ellipse"),Lr("Diamond"))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Lr("Parallelogram2"),Lr("ManualOperation"),Lr("Procedure"),Lr("Cylinder1"))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Lr("Terminator"),Lr("CreateRequest"),Lr("Document"),Lr("TriangleDown"))),Qr(),Ua(),Gr()),Xe.current.groupTemplate=zt(Ce.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ce.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(vn,na)=>{var Na=na.addMembers(na.diagram.selection,!0);Na||na.diagram.currentTool.doCancel()},avoidable:!1},new Ce.KX("location","loc",Ce.E9.parse).makeTwoWay(Ce.E9.stringify),zt(Ce.s_,"Auto",{name:"BODY"},zt(Ce.bn,{parameter1:10,fill:ka.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ce.z6.AllSides,toSpot:Ce.z6.AllSides},new Ce.KX("fill"),new Ce.KX("stroke","color"),new Ce.KX("strokeWidth","thickness"),new Ce.KX("strokeDashArray","dash")),zt(Ce.Vm,{background:"transparent",margin:20})),zt(Ce.al,{alignment:Ce.z6.Top,alignmentFocus:Ce.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ce.KX("text"),new Ce.KX("stroke","color"))),Xe.current.groupTemplate.selectionAdornmentTemplate=zt(Ce.uz,"Spot",zt(Ce.s_,"Auto",zt(Ce.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),zt(Ce.Vm,{margin:1.5})),ho({alignment:Ce.z6.TopRight,alignmentFocus:Ce.z6.BottomRight})),Xe.current.groupTemplate.contextMenu=zt("ContextMenu",Qr(),Ua(),Gr()),Xe.current.linkTemplate=zt(Ce.rU,{layerName:"Foreground",routing:Ce.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ce.KX("fromSpot","fromSpot",Ce.z6.parse),new Ce.KX("toSpot","toSpot",Ce.z6.parse),new Ce.KX("fromShortLength","dir",vn=>vn>=1?10:0),new Ce.KX("toShortLength","dir",vn=>vn>=1?10:0),new Ce.KX("points").makeTwoWay(),zt(Ce.bn,{strokeWidth:2},new Ce.KX("stroke","color"),new Ce.KX("strokeWidth","thickness"),new Ce.KX("strokeDashArray","dash")),zt(Ce.bn,{segmentIndex:0,segmentOffset:new Ce.E9(15,0),segmentOrientation:Ce.rU.OrientAlong,alignmentFocus:Ce.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ce.KX("fill","color"),new Ce.KX("visible","dir",vn=>vn===1)),zt(Ce.bn,{segmentIndex:-1,segmentOffset:new Ce.E9(-10,6),segmentOrientation:Ce.rU.OrientPlus90,alignmentFocus:Ce.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ce.KX("fill","color"),new Ce.KX("visible","dir",vn=>vn>=1),new Ce.KX("width","thickness",vn=>7+3*vn),new Ce.KX("height","thickness",vn=>7+3*vn),new Ce.KX("segmentOffset","thickness",vn=>new Ce.E9(-15,4+1.5*vn))),zt(Ce.bn,{segmentIndex:0,segmentOffset:new Ce.E9(15,-6),segmentOrientation:Ce.rU.OrientMinus90,alignmentFocus:Ce.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ce.KX("fill","color"),new Ce.KX("visible","dir",vn=>vn===2),new Ce.KX("width","thickness",vn=>7+3*vn),new Ce.KX("height","thickness",vn=>7+3*vn),new Ce.KX("segmentOffset","thickness",vn=>new Ce.E9(-15,4+1.5*vn))),zt(Ce.al,{alignmentFocus:new Ce.z6(0,1,-4,0),editable:!0},new Ce.KX("text").makeTwoWay(),new Ce.KX("stroke","color"))),Xe.current.linkTemplate.selectionAdornmentTemplate=zt(Ce.uz,zt(Ce.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:no(2)},new Ce.KX("pathPattern","thickness",no)),ho({alignmentFocus:new Ce.z6(0,0,-6,-4)}));function no(vn){return zt(Ce.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(vn+4).toString()+" H3"})}function Mr(vn){var na="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return vn===0?na="M0 0 M16 16 M0 8 L16 8":vn===2&&(na="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),zt(Ce.bn,{geometryString:na,margin:2,background:"transparent",mouseEnter:(Na,_n)=>_n.background="dodgerblue",mouseLeave:(Na,_n)=>_n.background="transparent",click:qa("dir",vn),contextClick:qa("dir",vn)})}function ca(vn){var na=(Na,_n)=>{Na.handled=!0,Na.diagram.model.commit(sr=>{var tr=_n.part.adornedPart;sr.set(tr.data,vn?"toSpot":"fromSpot",Ce.z6.stringify(Ce.z6.AllSides)),(vn?tr.toNode:tr.fromNode).invalidateConnectedLinks()})};return zt(Ce.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Na,_n)=>_n.background="dodgerblue",mouseLeave:(Na,_n)=>_n.background="transparent",click:na,contextClick:na})}function tn(vn,na){var Na=0,_n=Ce.z6.RightSide;vn.equals(Ce.z6.Top)?(Na=270,_n=Ce.z6.TopSide):vn.equals(Ce.z6.Left)?(Na=180,_n=Ce.z6.LeftSide):vn.equals(Ce.z6.Bottom)&&(Na=90,_n=Ce.z6.BottomSide),na||(Na-=180);var sr=(tr,Ar)=>{tr.handled=!0,tr.diagram.model.commit(Ur=>{var mr=Ar.part.adornedPart;Ur.set(mr.data,na?"toSpot":"fromSpot",Ce.z6.stringify(_n)),(na?mr.toNode:mr.fromNode).invalidateConnectedLinks()})};return zt(Ce.bn,{alignment:vn,alignmentFocus:vn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Na,background:"transparent",mouseEnter:(tr,Ar)=>Ar.background="dodgerblue",mouseLeave:(tr,Ar)=>Ar.background="transparent",click:sr,contextClick:sr})}Xe.current.linkTemplate.contextMenu=zt("ContextMenu",Ua(),Gr(),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Mr(0),Mr(1),Mr(2))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",zt(Ce.s_,"Spot",ca(!1),tn(Ce.z6.Top,!1),tn(Ce.z6.Left,!1),tn(Ce.z6.Right,!1),tn(Ce.z6.Bottom,!1)),zt(Ce.s_,"Spot",{margin:new Ce.Zt(0,0,0,2)},ca(!0),tn(Ce.z6.Top,!0),tn(Ce.z6.Left,!0),tn(Ce.z6.Right,!0),tn(Ce.z6.Bottom,!0)))));const gr=`{ "class": "GraphLinksModel", +\\end{array}`}]}]}],y=oe=>{E.current.setValue(E.current.getValue()+" "+oe.value+" ")},z=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Oe.createElement(he.Z,{className:xe.Z.lists,gutter:[10,10]},a.map((oe,se)=>Oe.createElement(we.Z,{flex:"110px",className:xe.Z.item},Oe.createElement("div",null,Oe.createElement(We.Z,{value:`$$${oe.value}$$`}),oe.name),Oe.createElement("div",{className:xe.Z.children},oe.children.map((ie,Ee)=>Oe.createElement("div",{key:Ee},Oe.createElement("h1",null,ie.name),Oe.createElement(he.Z,{gutter:[10,10]},ie.data.map((Fe,Qe)=>Oe.createElement(we.Z,{key:Qe,onClick:()=>y(Fe),className:xe.Z.diamond},Oe.createElement(We.Z,{value:"`$$"+Fe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Oe.createElement(he.Z,{className:xe.Z.lists,gutter:[10,10]},x.map((oe,se)=>Oe.createElement(we.Z,{flex:"110px",className:xe.Z.item},Oe.createElement("div",null,Oe.createElement(We.Z,{value:"`$$"+oe.value+"$$`"}),oe.name),Oe.createElement("div",{className:xe.Z.children},oe.children.map((ie,Ee)=>Oe.createElement("div",{key:Ee},ie.name&&Oe.createElement("h1",null,ie.name),Oe.createElement(he.Z,{gutter:[10,10]},ie.data.map((Fe,Qe)=>Oe.createElement(we.Z,{key:Qe,onClick:()=>y(Fe),className:xe.Z.diamond},Oe.createElement(We.Z,{value:"`$$"+Fe.value+"$$`"}))))))))))}],te=()=>{var oe=document.createElement("div");oe.innerHTML=E.current.getValue();var se=oe.innerText;return ke&&ke(se),se};return(0,b.useImperativeHandle)(ue,()=>({getData:te})),Oe.createElement("div",{className:xe.Z.mathWrap},Oe.createElement(Be.default,{defaultActiveKey:"1",items:z}),Oe.createElement("math-field",{locale:"zh_cn",className:xe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:E,style:{width:800,marginTop:30,fontSize:18}},Ue||""),ze&&Oe.createElement("div",{className:xe.Z.button},Oe.createElement(Re.ZP,{size:"large",onClick:te,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});jt.Z=De},98280:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return ze}});var b=ae(59301),he=ae(78241),we=ae(43418),Be=ae(92832),Re=ae(87169),We=ae(64866),xe={publicQuest:"publicQuest___iYvzo",publicQuestContent:"publicQuestContent___vgbKh",public_tips:"public_tips___UX0Dn",concat:"concat___wOfND"},Ke=ae(26692),Oe=ae(59301),De=(Ue,ue,E)=>new Promise((a,x)=>{var y=oe=>{try{te(E.next(oe))}catch(se){x(se)}},z=oe=>{try{te(E.throw(oe))}catch(se){x(se)}},te=oe=>oe.done?a(oe.value):Promise.resolve(oe.value).then(y,z);te((E=E.apply(Ue,ue)).next())}),ze=({type:Ue="subject",open:ue,onCancel:E,onOkClick:a,subDisciplineId:x})=>{const[y]=he.default.useForm(),[z,te]=(0,b.useState)([]),[oe,se]=(0,b.useState)(!1);(0,b.useEffect)(()=>{},[]);const ie=()=>De(void 0,null,function*(){if(Ue){const Ee=yield(0,We.ZP)("/api/disciplines.json",{method:"get",params:{source:Ue}});te(Ee.disciplines||[])}});return Oe.createElement(we.default,{title:Oe.createElement("div",{style:{fontWeight:"bold"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"),open:ue,width:558,centered:!0,className:xe.publicQuest,onCancel:()=>{E(),y.resetFields()},onOk:()=>{y.validateFields().then(Ee=>De(void 0,null,function*(){const Fe=yield(0,We.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:Ee==null?void 0:Ee.name,sub_discipline_id:x}});(Fe==null?void 0:Fe.status)===0&&a({name:Ee==null?void 0:Ee.name,id:Fe==null?void 0:Fe.tag_discipline_id,public:!1,type:"personal"}),y.resetFields(),E()}))}},Oe.createElement("div",{className:xe.publicQuestContent},Oe.createElement("div",{className:xe.public_tips},Oe.createElement(Re.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),Oe.createElement(he.default,{labelAlign:"left",form:y,colon:!1},Oe.createElement(he.default.Item,{label:"\u77E5\u8BC6\u70B9\u540D\u79F0",name:"name",rules:[{required:!0}]},Oe.createElement(Be.default,{showCount:!0,maxLength:20,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"}))),Oe.createElement(Ke.Z,{open:oe,onCancel:()=>{se(!1)}})))}},9683:function(it,jt,ae){"use strict";ae.d(jt,{Q:function(){return Oe},Z:function(){return ke}});var b=ae(59301),he={flex_box_center:"flex_box_center___VcCAZ",flex_space_between:"flex_space_between___I3jjO",flex_box_vertical_center:"flex_box_vertical_center___Rm_54",flex_box_center_end:"flex_box_center_end___nTsdc",flex_box_column:"flex_box_column___UVpzN",tags:"tags___kRRoe",text:"text___IyyEa",tagWrap:"tagWrap___v63mB",tag:"tag___X7wE6",c:"c___mZMPq",cpp:"cpp___eaTie",java:"java___gL98T",python:"python___eNRkk",edit:"edit___tbVu0"},we=ae(92310),Be=ae.n(we),Re=ae(43418),We=ae(8591),xe=ae(24905),Ke=(ze,Ue,ue)=>new Promise((E,a)=>{var x=te=>{try{z(ue.next(te))}catch(oe){a(oe)}},y=te=>{try{z(ue.throw(te))}catch(oe){a(oe)}},z=te=>te.done?E(te.value):Promise.resolve(te.value).then(x,y);z((ue=ue.apply(ze,Ue)).next())});const Oe=({title:ze="\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00",dataSource:Ue=[],visible:ue,setVisible:E,tip:a,onOk:x})=>{const[y,z]=(0,b.useState)([]),[te,oe]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{ue&&z(Ue)},[ue]),b.createElement(Re.default,{centered:!0,open:ue,title:ze,confirmLoading:te,width:564,onOk:()=>Ke(void 0,null,function*(){if(!y.length){We.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}oe(!0),yield x(y),oe(!1)}),onCancel:()=>E(!1)},!!a&&b.createElement("div",{className:"c-grey-666 font16 mb10"},a),b.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},b.createElement(xe.default.Group,{value:y,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:se=>{z(se)}})))};var ke=({title:ze="\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00",className:Ue,style:ue={},onEdit:E,dataSource:a=[]})=>{const x={C:b.createElement("div",{className:he.c},"C"),"C++":b.createElement("div",{className:he.cpp},"C++"),Java:b.createElement("div",{className:he.java},"Java"),Python:b.createElement("div",{className:he.python},"Python")};return b.createElement("div",{className:Be()(he.tags,Ue),style:ue},!!ze&&b.createElement("div",{className:he.text},ze),b.createElement("div",{className:he.tagWrap},a==null?void 0:a.map(y=>b.createElement(b.Fragment,{key:y},x[y]))),!!E&&b.createElement("div",{onClick:E,className:`iconfont icon-bianji_Hover ${he.edit}`}))}},13919:function(it,jt,ae){"use strict";ae.d(jt,{t:function(){return Jn}});var b=ae(59301),he=ae(92832),we=ae(78241),Be=ae(43418),Re=ae(95237),We=ae(43604),xe=ae(5871),Ke=ae(57809),Oe=ae(5112),De=ae(27804),ke=ae(90115),ze=ae(63581),Ue=ae(8591),ue=ae(3113),E=ae(71418),a=ae(24334),x={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},y=ae(64866),z=ae(25537),te=ae(30720),oe=ae(56102),se=ae(48326),ie=ae(59301),Ee=Object.defineProperty,Fe=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Ye=(dn,Qt,kt)=>Qt in dn?Ee(dn,Qt,{enumerable:!0,configurable:!0,writable:!0,value:kt}):dn[Qt]=kt,Ge=(dn,Qt)=>{for(var kt in Qt||(Qt={}))st.call(Qt,kt)&&Ye(dn,kt,Qt[kt]);if(Le)for(var kt of Le(Qt))Me.call(Qt,kt)&&Ye(dn,kt,Qt[kt]);return dn},$e=(dn,Qt)=>Fe(dn,Qe(Qt)),be=(dn,Qt,kt)=>new Promise((Wn,ra)=>{var tn=Fa=>{try{Ka(kt.next(Fa))}catch(jn){ra(jn)}},Ba=Fa=>{try{Ka(kt.throw(Fa))}catch(jn){ra(jn)}},Ka=Fa=>Fa.done?Wn(Fa.value):Promise.resolve(Fa.value).then(tn,Ba);Ka((kt=kt.apply(dn,Qt)).next())}),ct=({buttonProps:dn,buttonText:Qt,form:kt,hackIdentifier:Wn="",answerKey:ra,data:tn})=>{const[Ba,Ka]=(0,b.useState)(!1),[Fa,jn]=(0,b.useState)(!1),[Ha,Pa]=(0,b.useState)(!1),[fr,oa]=(0,b.useState)({}),[Zn,da]=(0,b.useState)(""),[Aa,xa]=(0,b.useState)(""),_a=(0,b.useRef)(Wn),Sn=(0,b.useRef)(""),on=(0,b.useRef)(!1);(0,b.useEffect)(()=>{Ha&&Ca()},[Ha]),(0,b.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const St=()=>new Date().getTime(),Tt=tn==null?void 0:tn.code,ja=()=>{var Ta,Br;let ar=Tt?tn==null?void 0:tn.code:(Ta=kt.getFieldValue("hack_codes"))==null?void 0:Ta.code,Or=Tt?tn==null?void 0:tn.answer_content:kt.getFieldValue(ra),Oo=Tt?tn==null?void 0:tn.input:(Br=kt.getFieldValue("hack_sets"))==null?void 0:Br.input;Or==null||Or.forEach(Ut=>{const Un=Ut.value||Ut.answer_text||"";ar=ar.replace(/(@▁@|@▁▁@)/,Un)}),xa(Oo),da(ar),oa({}),Pa(!0)},Ca=()=>be(void 0,null,function*(){var Ta,Br,ar,Or;const Oo=St(),Ut=Tt?tn==null?void 0:tn.time_limit:(Ta=kt.getFieldsValue())==null?void 0:Ta.hack.time_limit,Un=Tt?(Br=tn==null?void 0:tn.answer_content)==null?void 0:Br.length:(Or=(ar=kt.getFieldsValue())==null?void 0:ar.standard_answers)==null?void 0:Or.length;Ka(!0),yield(0,z.bM)(Sn.current,{test_hack_code:Zn,test_input:Aa});function $n(){return be(this,null,function*(){const{status:ba,data:Ze}=yield(0,z.rX)(Sn.current,"submit"),Xt=St()-Oo>(Ut+3)*1e3*Un;if(on.current){if(Xt){Ue.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),Ka(!1);return}if(ba===0){Ka(!1),oa($e(Ge({},Ze),{showText:!0}));return}setTimeout($n,1e3)}})}$n()}),Wa=()=>be(void 0,null,function*(){var Ta,Br,ar,Or,Oo,Ut,Un;if(!tn){try{yield kt.validateFields()}catch(Mt){(ar=(Br=(Ta=Mt==null?void 0:Mt.errorFields)==null?void 0:Ta[0])==null?void 0:Br.name)!=null&&ar.includes("standard_answers")?Ue.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ue.ZP.error(Mt.errorFields[0].errors[0]),kt.scrollToField(Mt.errorFields[0].name,{behavior:"smooth",block:"center"});return}jn(!0);let ba="";const Ze=kt.getFieldsValue();_a.current?ba=yield(0,y.ZP)(`/api/problems/${_a.current}.json`,{method:"put",body:$e(Ge({},Ze),{hack:$e(Ge({},Ze==null?void 0:Ze.hack),{sub_discipline_id:(Un=(Ut=Ze==null?void 0:Ze.hack)==null?void 0:Ut.sub_discipline_id)==null?void 0:Un[1],difficult:Ze.difficulty,item_banks_group_id:Ze.item_banks_group_id}),hack_codes:$e(Ge({},Ze.hack_codes),{code:a.Base64.encode(Ze.hack_codes.code)}),update_hack_sets:[Ge({},Ze.hack_sets)],is_blank:!0})}):(ba=yield(0,y.ZP)("/api/problems.json",{method:"post",body:$e(Ge({},Ze),{hack:$e(Ge({},Ze==null?void 0:Ze.hack),{sub_discipline_id:(Oo=(Or=Ze==null?void 0:Ze.hack)==null?void 0:Or.sub_discipline_id)==null?void 0:Oo[1],difficult:Ze.difficulty,item_banks_group_id:Ze.item_banks_group_id}),hack_codes:$e(Ge({},Ze.hack_codes),{code:a.Base64.encode(Ze.hack_codes.code)}),hack_sets:[Ge({},Ze.hack_sets)],is_blank:!0})}),_a.current=ba==null?void 0:ba.identifier,sessionStorage.projectFill=ba==null?void 0:ba.identifier)}const $n=yield(0,y.ZP)(`/api/problems/${_a.current}/start.json`,{method:"get"});if(($n==null?void 0:$n.status)===0){Sn.current=$n==null?void 0:$n.identifier,on.current=!0,jn(!1),ja();return}jn(!1)}),Da=Ta=>{const{status:Br,error_msg:ar,execute_time:Or,output:Oo,input:Ut,expected_output:Un}=Ta;let $n=null;switch(Br){case se.h.OK:$n=ie.createElement(ie.Fragment,null,ie.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Or/1e3,"\u79D2"),ie.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case se.h.NOMATCH:$n=ie.createElement(ie.Fragment,null,ie.createElement("div",null,"\u8F93\u5165\uFF1A"),ie.createElement("pre",{style:{fontFamily:"initial"}},Ut),ie.createElement("div",null,"\u8F93\u51FA\uFF1A"),ie.createElement("pre",{style:{fontFamily:"initial"}},Oo&&a.Base64.decode(Oo)),ie.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),ie.createElement("pre",{style:{fontFamily:"initial"}},Un&&a.Base64.decode(Un)));break;case se.h.EXECUTEFAILURE:$n=ie.createElement(ie.Fragment,null,ie.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ie.createElement("pre",null,Ut)),ie.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ie.createElement("pre",{className:"error"},a.Base64.decode(ar)));break;case se.h.COMPILEFAILURE:$n=ie.createElement(ie.Fragment,null,ie.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ie.createElement("pre",null,Ut)),ie.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ie.createElement("pre",{className:"error"},a.Base64.decode(ar)));break;case se.h.PODFAILURE:$n=ie.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case se.h.TIMEOUT:$n=ie.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return ie.createElement(ie.Fragment,null," ",$n," ")};return ie.createElement("div",null,ie.createElement(ue.ZP,$e(Ge({loading:Fa},dn),{onClick:Wa}),Qt),ie.createElement(Be.default,{open:Ha,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Ba,cancelButtonProps:{style:{display:"none"}},onOk:()=>Ca(),onCancel:()=>{on.current=!1,Pa(!1)}},ie.createElement("div",{className:x.result},ie.createElement("div",{className:x.left},ie.createElement("div",{className:"mb20"},ie.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!tn&&ie.createElement(oe.CopyToClipboard,{text:Zn,onCopy:()=>Ue.ZP.success("\u590D\u5236\u6210\u529F")},ie.createElement("span",{style:{float:"right"},className:"current c-light-primary"},ie.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),ie.createElement(te.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:Zn,onChange:Ta=>da(Ta)})),ie.createElement("div",{className:x.right},ie.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),ie.createElement("div",{className:x.box},ie.createElement("div",{className:x.li},ie.createElement(he.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Aa,onChange:Ta=>xa(Ta.target.value),bordered:!1,style:{height:180}}))),ie.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),ie.createElement("div",{className:x.box},ie.createElement(E.Z,{spinning:Ba,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},ie.createElement("div",{className:x.li,style:{height:196,overflow:"auto",padding:10}},Da(fr))))))))},bt=ae(87169),At=ae(59301),En=Object.defineProperty,xn=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,Pt=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Yt=(dn,Qt,kt)=>Qt in dn?En(dn,Qt,{enumerable:!0,configurable:!0,writable:!0,value:kt}):dn[Qt]=kt,wn=(dn,Qt)=>{for(var kt in Qt||(Qt={}))Te.call(Qt,kt)&&Yt(dn,kt,Qt[kt]);if(Pt)for(var kt of Pt(Qt))et.call(Qt,kt)&&Yt(dn,kt,Qt[kt]);return dn},Lt=(dn,Qt)=>xn(dn,Wt(Qt)),_t=(dn,Qt)=>{var kt={};for(var Wn in dn)Te.call(dn,Wn)&&Qt.indexOf(Wn)<0&&(kt[Wn]=dn[Wn]);if(dn!=null&&Pt)for(var Wn of Pt(dn))Qt.indexOf(Wn)<0&&et.call(dn,Wn)&&(kt[Wn]=dn[Wn]);return kt};const{TextArea:Ce}=he.default,ot=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],an=({value:dn,onChange:Qt})=>At.createElement(Switch,{checked:dn,onChange:kt=>{Qt(kt)}}),tt="@\u2581@",ht="@\u2581\u2581@",Jn=({questionTitlePlaceholder:dn,form:Qt,scoreByBlank:kt=!1,hackidentifier:Wn,answerKey:ra})=>{const[tn,Ba]=(0,b.useState)(!1),[Ka,Fa]=(0,b.useState)(!1),Ha=(0,ke.useParams)().type==="edit",Pa=(Sn,on)=>{const St=on.line;let Tt=0;for(let Ca=0;Ca{const ja=Sn.getRange(on.from,on.to);let Ca=0;if(on.text.forEach(Wa=>{Ca+=Wa.split(tt).length-1}),on.text.forEach(Wa=>{Ca+=Wa.split(ht).length-1}),on.origin!=="setValue"){if(ja&&(ja.indexOf(tt)!==-1||ja.indexOf(ht)!==-1)){const Wa=ja.split(tt).length-1+ja.split(ht).length-1,Da=Pa(Sn,on.from);if(console.log(`\u5220\u9664${Wa}\u4E2A\uFF0C \u524D\u9762\u6709${Da}\u4E2A\uFF0C\u65B0\u589E${Ca}\u4E2A`),Wa>1){const Ta=Array.from({length:Wa},(Br,ar)=>Da+ar);Tt(Ta)}else Tt(Da)}else if(Ca>0){const Wa=Pa(Sn,on.from);console.log(`\u65B0\u589E${Ca}\u4E2A\uFF0C\u4E4B\u524D\u6709${Wa}\u4E2A`),St(Ca,Wa)}}},oa=()=>{const Sn=Qt.getFieldValue(ra);Qt.setFieldsValue({[ra]:Sn==null?void 0:Sn.map((on,St)=>Lt(wn({},on),{position:St+1}))})},Zn=(0,b.useRef)(),da=(Sn,on)=>{for(let St=0;St{Aa.current(Sn),oa()},_a=we.default.useWatch(ra,Qt);return At.createElement("div",{className:ze.Z.wrap},At.createElement(we.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},At.createElement(De.h,{scrollId:"name",watch:!0,height:140})),At.createElement("div",{className:ze.Z.questionTitleEditorWrap},At.createElement(we.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},At.createElement(De.h,{scrollId:"name",watch:!0,height:400,hidetoolBar:!0,showNullProgramButton:!0,onChange:(Sn,on)=>{const St=Qt.getFieldValue(ra);console.log("--preAnswerData",St,on),Qt.setFieldsValue({[ra]:St==null?void 0:St.map((Tt,ja)=>{var Ca;return Lt(wn({},Tt),{position:ja+1,multi_line:(Ca=on==null?void 0:on[ja])==null?void 0:Ca.multiLine})})})},placeholder:dn,onCMBeforeChange:(Sn,on)=>{fr(Sn,on,da,xa)}}))),At.createElement(we.default.List,{name:ra,rules:[{validator(Sn,on){if(!(on!=null&&on.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const St of on){const{answer_text:Tt}=St||{};if((Tt==null?void 0:Tt.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Sn,{add:on,remove:St},{errors:Tt})=>(Zn.current=on,Aa.current=St,At.createElement(At.Fragment,null,At.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},At.createElement(we.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),At.createElement("div",{onClick:()=>{Be.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:At.createElement("div",null,At.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",At.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),At.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},At.createElement(bt.Z,{style:{marginRight:3,color:"#3061D0"}}),At.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Sn.map((ja,Ca)=>{var Wa=ja,{key:Da,name:Ta}=Wa,Br=_t(Wa,["key","name"]),ar,Or;return At.createElement(Re.Z,{className:"mb20",key:Da,align:"middle",wrap:!1},At.createElement(We.Z,{flex:"0 0 auto",className:`${ze.Z.blankIndex}`},"\u586B\u7A7A\u9879",Ca+1),At.createElement(We.Z,{flex:1},At.createElement(Re.Z,{align:"top",justify:"space-between",wrap:!1},At.createElement(We.Z,null,At.createElement(we.default.Item,Lt(wn({},Br),{name:[Ta,"answer_text"],noStyle:!0}),(ar=_a==null?void 0:_a[Ta])!=null&&ar.multi_line||(Or=_a==null?void 0:_a[Ta])!=null&&Or.multiLine?At.createElement(Ce,{spellCheck:!1,style:{marginLeft:10,width:550}}):At.createElement(he.default,{style:{marginLeft:10,width:550},className:ze.Z.blankInput,size:"large",maxLength:1e3,onBlur:Oo=>{}}))),kt&&At.createElement(We.Z,{flex:"224px"},At.createElement(we.default.Item,Lt(wn({},Br),{name:[Ta,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),At.createElement(xe.Z,{size:"large",className:ze.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),At.createElement("div",{onClick:()=>Ba(!0)},At.createElement(we.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},At.createElement(De.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:tn}))),At.createElement(we.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},At.createElement(Ke.default,{size:"large"},ot.map(Sn=>At.createElement(Ke.default.Option,{key:Sn.title,value:Sn.key}," ",Sn.title)))),At.createElement(we.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},At.createElement(we.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},At.createElement(xe.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),At.createElement("span",{className:"ml10 font14"},"\u79D2")),At.createElement(we.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},At.createElement(Oe.ZP.Group,{style:{marginTop:-10}},At.createElement(Oe.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),At.createElement(Oe.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),At.createElement(Oe.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),At.createElement(we.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),At.createElement("div",{style:{background:"#F6F7F9",padding:15}},At.createElement(we.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},At.createElement(Ce,{rows:4})),At.createElement(we.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},At.createElement(Ce,{rows:4}))),At.createElement(ct,{form:Qt,answerKey:ra,hackIdentifier:Wn,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:At.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},60569:function(it,jt,ae){"use strict";ae.d(jt,{u:function(){return ie}});var b=ae(59301),he=ae(95237),we=ae(43604),Be=ae(6848),Re=ae(78241),We=ae(63581),xe=ae(32134),Ke=ae(12893),Oe=ae(27804),De=ae(59301),ke=Object.defineProperty,ze=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,x=(Ee,Fe,Qe)=>Fe in Ee?ke(Ee,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Ee[Fe]=Qe,y=(Ee,Fe)=>{for(var Qe in Fe||(Fe={}))E.call(Fe,Qe)&&x(Ee,Qe,Fe[Qe]);if(ue)for(var Qe of ue(Fe))a.call(Fe,Qe)&&x(Ee,Qe,Fe[Qe]);return Ee},z=(Ee,Fe)=>ze(Ee,Ue(Fe)),te=(Ee,Fe)=>{var Qe={};for(var Le in Ee)E.call(Ee,Le)&&Fe.indexOf(Le)<0&&(Qe[Le]=Ee[Le]);if(Ee!=null&&ue)for(var Le of ue(Ee))Fe.indexOf(Le)<0&&a.call(Ee,Le)&&(Qe[Le]=Ee[Le]);return Qe};const oe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],se=({value:Ee,onChange:Fe,choiceTextKey:Qe,answerKey:Le,index:st,isEdit:Me,setInputActive:Ye,form:Ge,choiceOptionsPath:$e,allowChangeMode:be,showAddIcon:vt,addItem:ct,deleteItem:bt})=>{console.log(Ee,"value");const At=(Ee==null?void 0:Ee[Le])===1,En=()=>{const Wt=Ge.getFieldValue($e);Ge.setFieldValue($e,Wt.map(Pt=>z(y({},Pt),{[Le]:0})))},xn=()=>{At?Fe(z(y({},Ee),{[Le]:0})):(be||En(),Fe(z(y({},Ee),{[Le]:1})))};return De.createElement(he.Z,{className:We.Z.choiceWrap,align:"middle",wrap:!1},De.createElement(we.Z,{onClick:xn,className:`${We.Z.choiceIndex} ${At?We.Z.activeAnswer:""}`},oe[st]),De.createElement(we.Z,{flex:1,className:`${We.Z.editorWrap} ml15`,onClick:Ye},De.createElement(Oe.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Me,value:Ee==null?void 0:Ee[Qe],onChange:Wt=>{Fe(z(y({},Ee),{[Qe]:Wt}))}})),De.createElement(we.Z,{flex:"0 0 auto",className:"ml15"},De.createElement("div",{onClick:xn,className:`${We.Z.setAnswerBtn} ${At?We.Z.activeAnswer:""}`},At?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),De.createElement(we.Z,{className:We.Z.actionWrapper},De.createElement(Be.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},De.createElement(xe.Z,{className:We.Z.addIcon,onClick:ct,style:{visibility:vt?"visible":"hidden"}})),De.createElement(Be.Z,{title:"\u5220\u9664"},De.createElement(Ke.Z,{className:We.Z.deleteIcon,onClick:bt,style:{visibility:st>1?"visible":"hidden"}}))))},ie=({questionTitlePlaceholder:Ee,titleKey:Fe,choiceKey:Qe,analysisKey:Le,choiceTextKey:st,answerKey:Me,choiceOptionsPath:Ye,allowChangeMode:Ge=!0,form:$e,showAnalysis:be=!0})=>{const[vt,ct]=(0,b.useState)(),[bt,At]=(0,b.useState)(!1);return De.createElement("div",{className:We.Z.wrap},De.createElement("div",{className:We.Z.questionTitleEditorWrap},De.createElement(Re.default.Item,{label:"\u9898\u5E72",name:Fe,labelCol:{span:24},rules:[{required:!0}]},De.createElement(Oe.h,{scrollId:Array.isArray(Fe)?Fe.join("_"):`${Fe}`,watch:!0,height:140,placeholder:Ee}))),De.createElement(Re.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),De.createElement(Re.default.List,{name:Qe,rules:[{validator(En,xn){const Wt=xn.some(Te=>Te[Me]===1),Pt=xn.findIndex(Te=>{var et;return((et=Te[st])==null?void 0:et.length)<=0});return Pt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${oe[Pt]}\u9009\u9879\u7684\u5185\u5BB9`)):Wt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(En,{add:xn,remove:Wt})=>De.createElement("div",{id:Array.isArray(Ye)?Ye.join("_"):`${Ye}`},En.map((Pt,Te)=>{var et=Pt,{key:Yt,name:wn}=et,Lt=te(et,["key","name"]);const _t=vt===Yt,Ce=()=>{ct(Yt)},ot=Te<7&&Te===En.length-1,an=()=>xn({[st]:"",[Me]:0}),tt=()=>Wt(wn);return De.createElement(Re.default.Item,z(y({},Lt),{key:Yt,name:wn,className:We.Z.choiceListWrap,rules:[{validator(ht,Jn){return Jn!=null&&Jn.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${oe[Te]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),De.createElement(se,{choiceTextKey:st,answerKey:Me,index:Te,isEdit:_t,setInputActive:Ce,form:$e,choiceOptionsPath:Ye,allowChangeMode:Ge,showAddIcon:ot,addItem:an,deleteItem:tt}))}),En.length<8&&De.createElement("div",{className:`${We.Z.addBtn} mb30`,onClick:()=>xn({[st]:"",[Me]:0})},"\u6DFB\u52A0\u9009\u9879"))),be&&De.createElement("div",{onClick:()=>At(!0)},De.createElement(Re.default.Item,{name:Le,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},De.createElement(Oe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:bt}))))}},55862:function(it,jt,ae){"use strict";ae.d(jt,{u:function(){return Ge}});var b=ae(59301),he=ae(43418),we=ae(95237),Be=ae(43604),Re=ae(92832),We=ae(6848),xe=ae(78673),Ke=ae(78241),Oe=ae(5112),De=ae(5871),ke=ae(27804),ze=ae(12893),Ue=ae(61485),ue=ae(63581),E=ae(78926),a=ae(59301),x=Object.defineProperty,y=Object.defineProperties,z=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ie=($e,be,vt)=>be in $e?x($e,be,{enumerable:!0,configurable:!0,writable:!0,value:vt}):$e[be]=vt,Ee=($e,be)=>{for(var vt in be||(be={}))oe.call(be,vt)&&ie($e,vt,be[vt]);if(te)for(var vt of te(be))se.call(be,vt)&&ie($e,vt,be[vt]);return $e},Fe=($e,be)=>y($e,z(be)),Qe=($e,be)=>{var vt={};for(var ct in $e)oe.call($e,ct)&&be.indexOf(ct)<0&&(vt[ct]=$e[ct]);if($e!=null&&te)for(var ct of te($e))be.indexOf(ct)<0&&se.call($e,ct)&&(vt[ct]=$e[ct]);return vt};const Le=({value:$e,onChange:be})=>{const vt=bt=>{he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ue.Z.modal,onOk:()=>{const At=[...$e];At.splice(bt,1),be(At)}})},ct=()=>{const bt=[...$e];bt.push(""),be(bt)};return a.createElement(we.Z,{className:"ml20"},a.createElement(Be.Z,{flex:1},$e==null?void 0:$e.map((bt,At)=>a.createElement(we.Z,{key:`${bt}_${At}`,className:"mb20"},a.createElement(Re.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:bt,autoSize:{maxRows:3},maxLength:1e3,onBlur:En=>{const xn=[...$e],Wt=En.target.value.trim();xn[At]=Wt,be(xn)}}),a.createElement(We.Z,{title:"\u5220\u9664"},a.createElement(ze.Z,{className:ue.Z.deleteIcon,style:{marginLeft:15,visibility:At>0?"visible":"hidden"},onClick:()=>vt(At)}))))),a.createElement(Be.Z,null,a.createElement("div",{className:`${ue.Z.addBtn}`,onClick:()=>{ct()}},"\u65B0\u589E\u7B54\u6848")))},st=({value:$e,onChange:be})=>{const vt=bt=>{he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ue.Z.modal,onOk:()=>{const At=[...$e];At.splice(bt,1),be(At)}})},ct=()=>{const bt=[...$e];bt.push(""),be(bt)};return a.createElement(we.Z,{className:"ml20"},a.createElement(Be.Z,{flex:1},$e==null?void 0:$e.map((bt,At)=>a.createElement(we.Z,{key:`${bt}_${At}`,align:"middle",className:"mb20"},a.createElement(E.Z,{value:bt,style:{flex:1},onChange:En=>{const xn=[...$e];xn[At]=En,be(xn)}}),a.createElement(We.Z,{title:"\u5220\u9664"},a.createElement(ze.Z,{className:ue.Z.deleteIcon,style:{marginLeft:15,visibility:At>0?"visible":"hidden"},onClick:()=>vt(At)}))))),a.createElement(Be.Z,null,a.createElement("div",{className:`${ue.Z.addBtn}`,onClick:()=>{ct()}},"\u65B0\u589E\u7B54\u6848")))},Me=({value:$e=!0,onChange:be})=>a.createElement(xe.Z,{checked:!$e,onChange:vt=>{be(!vt)}}),Ye="\u2581",Ge=({questionTitlePlaceholder:$e,form:be,scoreByBlank:vt=!1,answerKey:ct})=>{const[bt,At]=(0,b.useState)(!1),En=(Lt,_t)=>{const Ce=_t.line;let ot=0;for(let tt=0;tt{const an=Lt.getRange(_t.from,_t.to);let tt=0;if(_t.text.forEach(ht=>{tt+=ht.split(Ye).length-1}),_t.origin!=="setValue"){if(an&&an.indexOf(Ye)!==-1){const ht=an.split(Ye).length-1,Jn=En(Lt,_t.from);if(console.log(`\u5220\u9664${ht}\u4E2A\uFF0C \u524D\u9762\u6709${Jn}\u4E2A\uFF0C\u65B0\u589E${tt}\u4E2A`),ht>1){const dn=Array.from({length:ht},(Qt,kt)=>Jn+kt);ot(dn)}else ot(Jn)}else if(tt>0){const ht=En(Lt,_t.from);console.log(`\u65B0\u589E${tt}\u4E2A\uFF0C\u4E4B\u524D\u6709${ht}\u4E2A`),Ce(tt,ht)}}},Wt=()=>{const Lt=be.getFieldValue(ct);be.setFieldsValue({[ct]:Lt.map((_t,Ce)=>Fe(Ee({},_t),{position:Ce+1}))})},Pt=(0,b.useRef)(),Te=(Lt,_t)=>{for(let Ce=0;Ce{et.current(Lt),Wt()},wn=Ke.default.useWatch(ct,be);return a.createElement("div",{className:ue.Z.wrap},a.createElement("div",{className:ue.Z.questionTitleEditorWrap},a.createElement(Ke.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},a.createElement(ke.h,{scrollId:"name",watch:!0,height:140,placeholder:$e,showNullButton:!0,onCMBeforeChange:(Lt,_t)=>{xn(Lt,_t,Te,Yt)}}))),a.createElement(Ke.default.List,{name:ct,rules:[{validator(Lt,_t){if(!(_t!=null&&_t.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Ce of _t){const{answer_text:ot}=Ce||{};if(ot!=null&&ot.some(an=>(an==null?void 0:an.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Lt,{add:_t,remove:Ce},{errors:ot})=>(Pt.current=_t,et.current=Ce,a.createElement(a.Fragment,null,a.createElement(Ke.default.Item,{label:a.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(Lt!=null&&Lt.length)&&a.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),Lt.map((an,tt)=>{var ht=an,{key:Jn,name:dn}=ht,Qt=Qe(ht,["key","name"]),kt,Wn;return a.createElement("div",{style:{marginBottom:10},key:Jn},a.createElement(we.Z,{className:"mb20",align:"middle",wrap:!1},a.createElement(Be.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${ue.Z.blankIndex}`},"\u586B\u7A7A\u9879",tt+1),a.createElement(Ke.default.Item,Fe(Ee({},Qt),{name:[dn,"model"],noStyle:!0}),a.createElement(Oe.ZP.Group,{onChange:()=>{const ra=be.getFieldValue(ct);be.setFieldsValue({[ct]:ra.map((tn,Ba)=>Fe(Ee({},tn),{answer_text:dn===Ba?[""]:tn.answer_text}))})}},a.createElement(Oe.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",a.createElement(We.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},a.createElement(Ue.Z,null))),a.createElement(Oe.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",a.createElement(We.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},a.createElement(Ue.Z,null)))))),a.createElement(we.Z,{style:{marginLeft:20},align:"middle",wrap:!1},a.createElement(Be.Z,{flex:1},a.createElement(we.Z,{align:"top",justify:"space-between",wrap:!1},a.createElement(Be.Z,{flex:1},a.createElement(Ke.default.Item,Fe(Ee({},Qt),{name:[dn,"answer_text"],noStyle:!0}),((Wn=(kt=be.getFieldValue(ct))==null?void 0:kt[dn])==null?void 0:Wn.model)===1?a.createElement(Le,null):a.createElement(st,null))),vt&&a.createElement(Be.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},a.createElement(Ke.default.Item,Fe(Ee({},Qt),{name:[dn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ue.Z.blankInputNumberWrapper}),a.createElement(De.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),a.createElement(Ke.default.Item,Fe(Ee({},Qt),{name:[dn,"position"],noStyle:!0}),a.createElement(Re.default,{type:"hidden"})))))})))),a.createElement(we.Z,{align:"middle"},a.createElement(Ke.default.Item,{name:"downcase",valuePropName:"checked"},a.createElement(xe.Z,null)),a.createElement(Be.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),a.createElement(we.Z,{align:"middle"},a.createElement(Ke.default.Item,{name:"no_space",valuePropName:"checked"},a.createElement(xe.Z,null)),a.createElement(Be.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(wn==null?void 0:wn.length)>1&&a.createElement(we.Z,{align:"middle",className:(wn==null?void 0:wn.length)>1?"mb30":`${ue.Z.hide}`},a.createElement(Ke.default.Item,{name:"is_ordered"},a.createElement(Me,null)),a.createElement(Be.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),a.createElement("div",{onClick:()=>At(!0)},a.createElement(Ke.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},a.createElement(ke.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:bt}))))}},85881:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return te}});var b=ae(59301),he=ae(95237),we=ae(43604),Be=ae(78241),Re=ae(63581),We=ae(27804),xe=ae(59301),Ke=Object.defineProperty,Oe=Object.defineProperties,De=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,ue=(oe,se,ie)=>se in oe?Ke(oe,se,{enumerable:!0,configurable:!0,writable:!0,value:ie}):oe[se]=ie,E=(oe,se)=>{for(var ie in se||(se={}))ze.call(se,ie)&&ue(oe,ie,se[ie]);if(ke)for(var ie of ke(se))Ue.call(se,ie)&&ue(oe,ie,se[ie]);return oe},a=(oe,se)=>Oe(oe,De(se)),x=(oe,se)=>{var ie={};for(var Ee in oe)ze.call(oe,Ee)&&se.indexOf(Ee)<0&&(ie[Ee]=oe[Ee]);if(oe!=null&&ke)for(var Ee of ke(oe))se.indexOf(Ee)<0&&Ue.call(oe,Ee)&&(ie[Ee]=oe[Ee]);return ie};const y={\u6B63\u786E:"T",\u9519\u8BEF:"F"},z=({value:oe,onChange:se,form:ie})=>{const Ee=(oe==null?void 0:oe.is_answer)===1,Fe=oe==null?void 0:oe.choice_text,Qe=()=>{const Le=ie.getFieldsValue().choices.map(st=>({choice_text:st.choice_text,is_answer:0}));ie.setFieldsValue({choices:Le}),se(a(E({},oe),{is_answer:1}))};return xe.createElement(he.Z,{className:Re.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},xe.createElement(we.Z,{onClick:Qe,className:`${Re.Z.choiceIndex} ${Re.Z.judgementIndex} ${Ee?Re.Z.activeAnswer:""}`},y[Fe]),xe.createElement(we.Z,{flex:1,className:`${Re.Z.editorWrap} ml15`},xe.createElement("div",{className:`${Re.Z.inputBorder} ${Re.Z.placeholder} ${Ee?Re.Z.activeJudgementAnswer:""}`},Fe)),xe.createElement(we.Z,{flex:"0 0 auto",className:"ml15"},xe.createElement("div",{onClick:Qe,className:`${Re.Z.setAnswerBtn} ${Ee?Re.Z.activeAnswer:""}`},Ee?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},te=({questionTitlePlaceholder:oe,choiceKey:se,form:ie})=>{const[Ee,Fe]=(0,b.useState)(!1);return xe.createElement("div",{className:Re.Z.wrap},xe.createElement("div",{className:Re.Z.questionTitleEditorWrap},xe.createElement(Be.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},xe.createElement(We.h,{scrollId:"name",watch:!0,height:140,placeholder:oe}))),xe.createElement(Be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},xe.createElement(Be.default.List,{name:"choices",rules:[{validator(Qe,Le){return Le.some(Me=>(Me==null?void 0:Me.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Qe=>xe.createElement("div",{id:"choices"},Qe.map(Le=>{var st=Le,{key:Me,name:Ye}=st,Ge=x(st,["key","name"]);return xe.createElement(Be.default.Item,a(E({},Ge),{key:Me,name:Ye,noStyle:!0}),xe.createElement(z,{form:ie}))})))),xe.createElement("div",{onClick:()=>Fe(!0)},xe.createElement(Be.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},xe.createElement(We.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ee}))))}},27804:function(it,jt,ae){"use strict";ae.d(jt,{h:function(){return E},x:function(){return a}});var b=ae(30720),he=ae(63581),we=ae(8658),Be=ae(59301),Re=Object.defineProperty,We=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,ke=(x,y,z)=>y in x?Re(x,y,{enumerable:!0,configurable:!0,writable:!0,value:z}):x[y]=z,ze=(x,y)=>{for(var z in y||(y={}))Oe.call(y,z)&&ke(x,z,y[z]);if(Ke)for(var z of Ke(y))De.call(y,z)&&ke(x,z,y[z]);return x},Ue=(x,y)=>We(x,xe(y)),ue=(x,y)=>{var z={};for(var te in x)Oe.call(x,te)&&y.indexOf(te)<0&&(z[te]=x[te]);if(x!=null&&Ke)for(var te of Ke(x))y.indexOf(te)<0&&De.call(x,te)&&(z[te]=x[te]);return z};const E=x=>{var y=x,{value:z,onChange:te,scrollId:oe}=y,se=ue(y,["value","onChange","scrollId"]);return Be.createElement("div",{id:oe||""},Be.createElement(b.Z,Ue(ze({},se),{defaultValue:z,onChange:(ie,Ee)=>{Ee!=null&&Ee.length?te(ie,Ee):te(ie)}})))},a=({value:x,onChange:y,placeholder:z,height:te=140,isEdit:oe,miniToolbar:se,watch:ie=!0})=>oe?Be.createElement(b.Z,{watch:ie,isFocus:!0,height:te||void 0,placeholder:z,defaultValue:x,onChange:y,miniToolbar:se}):Be.createElement("div",{style:{cursor:"pointer"}},x?Be.createElement(we.Z,{className:he.Z.inputBorder,value:x}):Be.createElement("div",{className:`${he.Z.inputBorder} ${he.Z.placeholder} inputBorderError`},z))},2078:function(it,jt,ae){"use strict";ae.d(jt,{W:function(){return st}});var b=ae(59301),he=ae(8591),we=ae(12563),Be=ae(78241),Re=ae(78673),We=ae(95237),xe=ae(43604),Ke=ae(6848),Oe=ae(92832),De=ae(5871),ke=ae(63581),ze=ae(27804),Ue=ae(30720),ue=ae(61485),E=Object.defineProperty,a=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,oe=(Me,Ye,Ge)=>Ye in Me?E(Me,Ye,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Me[Ye]=Ge,se=(Me,Ye)=>{for(var Ge in Ye||(Ye={}))z.call(Ye,Ge)&&oe(Me,Ge,Ye[Ge]);if(y)for(var Ge of y(Ye))te.call(Ye,Ge)&&oe(Me,Ge,Ye[Ge]);return Me},ie=(Me,Ye)=>a(Me,x(Ye)),Ee=(Me,Ye)=>{var Ge={};for(var $e in Me)z.call(Me,$e)&&Ye.indexOf($e)<0&&(Ge[$e]=Me[$e]);if(Me!=null&&y)for(var $e of y(Me))Ye.indexOf($e)<0&&te.call(Me,$e)&&(Ge[$e]=Me[$e]);return Ge};const Fe=Me=>{var Ye=Me,{value:Ge,onChange:$e}=Ye,be=Ee(Ye,["value","onChange"]);const vt=ct=>{$e([ct])};return b.createElement(Ue.Z,ie(se({},be),{defaultValue:Ge==null?void 0:Ge[0],onChange:vt}))},Qe=Me=>{if(!Me)return!1;if(/^s*$/.test(Me)||Me.trim()===""){he.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Ye=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Me==="|"?(he.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Le=({value:Me=[],onClose:Ye})=>b.createElement(we.default,{closable:!0,onClose:Ye,className:ke.Z.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Me.join(" \u6216 "))),st=({questionTitlePlaceholder:Me,form:Ye,showKeywords:Ge,isMustKeyWords:$e=Ge})=>{const[be,vt]=(0,b.useState)(!1),[ct,bt]=(0,b.useState)(""),At=Be.default.useWatch("use_keywords",Ye),En=Be.default.useWatch("question_score",Ye);return b.createElement("div",{className:ke.Z.wrap},b.createElement("div",{className:ke.Z.questionTitleEditorWrap},b.createElement(Be.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},b.createElement(ze.h,{scrollId:"name",watch:!0,height:140,placeholder:Me}))),b.createElement(Be.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},b.createElement(Fe,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Ge&&!$e&&b.createElement(Be.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},b.createElement(Re.Z,{defaultChecked:!0})),Ge&&$e&&b.createElement(We.Z,{align:"middle",className:"mb30"},b.createElement(Be.default.Item,{name:"use_keywords",valuePropName:"checked"},b.createElement(Re.Z,null)),b.createElement(xe.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(xe.Z,null,b.createElement(Ke.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(ue.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(At||!$e)&&b.createElement(Be.default.List,{name:"keywords",rules:[{validator(xn,Wt){return $e?Wt!=null&&Wt.length?(Wt==null?void 0:Wt.reduce((Te,et)=>Te+et.score,0))>parseFloat(En)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(xn,{add:Wt,remove:Pt})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${ke.Z.title} mb10`},$e?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(We.Z,{align:"middle",className:"font14 mb30"},b.createElement(xe.Z,{flex:1},b.createElement(Oe.default,{value:ct,onChange:Te=>{bt(Te.target.value)},maxLength:50,allowClear:!0,onPressEnter:Te=>{var et,Yt,wn,Lt;const _t=`${(et=Te.target)==null?void 0:et.value}`,Ce=(wn=(Yt=_t==null?void 0:_t.split("|"))==null?void 0:Yt.filter(tt=>!!tt))==null?void 0:wn.map(tt=>tt==null?void 0:tt.trim()),ot=Ye.getFieldValue("keywords"),an=((Lt=ot==null?void 0:ot.map(tt=>tt==null?void 0:tt.keyword))==null?void 0:Lt.flat())||[];for(const tt of Ce)if(an.includes(tt)){he.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Qe(_t)&&(Wt({keyword:Ce,score:1}),bt(""))},className:ke.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(xe.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),xn.map(Te=>{var et=Te,{key:Yt,name:wn}=et,Lt=Ee(et,["key","name"]);return b.createElement(We.Z,{key:Yt,className:"mb20",style:{marginRight:148}},b.createElement(xe.Z,{flex:1},b.createElement(We.Z,{align:"middle",justify:"space-between"},b.createElement(Be.default.Item,ie(se({},Lt),{name:[wn,"keyword"]}),b.createElement(Le,{onClose:()=>Pt(wn)})),$e&&b.createElement(Be.default.Item,ie(se({},Lt),{name:[wn,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ke.Z.blankInputNumberWrapper}),b.createElement(De.Z,{className:ke.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>vt(!0)},b.createElement(Be.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(ze.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:be}))))}},24136:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Re}});var b={text:"text___bQulM",sup:"sup___rX_Y3"},he=ae(78241),we=ae(59301),Re=({text:We,name:xe="question_score"})=>{const Ke=({value:Oe})=>we.createElement("div",{className:b.text},we.createElement("span",{className:b.sup},"*"),we.createElement("span",{className:"mr10"},"\u5206\u503C"),we.createElement("span",null,Oe||"--"),we.createElement("span",{className:"c-grey-999"},We));return we.createElement(he.default.Item,{noStyle:!0,name:xe},we.createElement(Ke,null))}},96267:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Qe},P:function(){return ie}});var b=ae(59301),he=ae(78241),we=ae(43418),Be=ae(5112),Re=ae(92832),We=ae(1710),xe={brief:"brief___LOzpE",contentTitle:"contentTitle___xkdcN",content:"content___Vtri0",tips:"tips___tuAtH",antdTable:"antdTable___s8T2N",tableCell:"tableCell___kN9Fw",antdModal:"antdModal___WVBk3",orangeColor:"orangeColor___ryB2u"},Ke=ae(55159),Oe=Object.defineProperty,De=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,E=(Le,st,Me)=>st in Le?Oe(Le,st,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Le[st]=Me,a=(Le,st)=>{for(var Me in st||(st={}))Ue.call(st,Me)&&E(Le,Me,st[Me]);if(ze)for(var Me of ze(st))ue.call(st,Me)&&E(Le,Me,st[Me]);return Le},x=(Le,st)=>De(Le,ke(st)),y=(Le,st)=>{var Me={};for(var Ye in Le)Ue.call(Le,Ye)&&st.indexOf(Ye)<0&&(Me[Ye]=Le[Ye]);if(Le!=null&&ze)for(var Ye of ze(Le))st.indexOf(Ye)<0&&ue.call(Le,Ye)&&(Me[Ye]=Le[Ye]);return Me},z=(Le,st,Me)=>new Promise((Ye,Ge)=>{var $e=ct=>{try{vt(Me.next(ct))}catch(bt){Ge(bt)}},be=ct=>{try{vt(Me.throw(ct))}catch(bt){Ge(bt)}},vt=ct=>ct.done?Ye(ct.value):Promise.resolve(ct.value).then($e,be);vt((Me=Me.apply(Le,st)).next())});const te=({studentNames:Le,total:st})=>{const Me=["","\u4E00","\u4E24","\u4E09"];return st>3?b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:xe.orangeColor},Le==null?void 0:Le.join("\u3001")),"\u7B49",b.createElement("span",{className:xe.orangeColor},st),"\u540D\u5B66\u751F"):b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:xe.orangeColor},Le==null?void 0:Le.join("\u3001")),Me[st],"\u540D\u5B66\u751F")},oe=({used:Le,copy:st,canNotCopy:Me,studentNames:Ye,studentCount:Ge,inPaper:$e,is_random:be=!1,position:vt=""})=>{const ct=()=>{if(st>0&&Me>0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:xe.orangeColor},st),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C",b.createElement("span",{className:xe.orangeColor},Me),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236");if(st>0&&Me===0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:xe.orangeColor},st),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236");if(st===0&&Me>0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:xe.orangeColor},Me),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236")},bt=vt||($e?"\u8BD5\u5377":"\u8BFE\u7A0B");return b.createElement("span",null,b.createElement(te,{studentNames:Ye,total:Ge}),"\u5B66\u4E60\u8FC7",bt,"\u4E2D\u7684",b.createElement("span",{className:xe.orangeColor},Le),"\u4E2A\u9879\u76EE\uFF0C",ct(),"\u3002\u8BF7\u9009\u62E9",be?"":"\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\u548C","\u662F\u5426\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")},se=({onCancel:Le,onOk:st,visible:Me,inPaper:Ye,renderData:Ge,type:$e,isMultipleCourse:be=!1})=>{const[vt]=he.default.useForm(),[ct,bt]=(0,b.useState)(1),[At,En]=(0,b.useState)(!1),xn=(0,b.useMemo)(()=>(Ge==null?void 0:Ge.total_num)===1&&(Ge==null?void 0:Ge.can_copy_num)===1,[Ge]),Wt=(0,b.useMemo)(()=>{var Pt;return(Pt=Ge==null?void 0:Ge.course_data_list)==null?void 0:Pt.filter(Te=>Te.is_show)},[Ge]);return b.createElement(b.Fragment,null,xn?b.createElement(we.default,{centered:!0,closable:!0,open:Me,destroyOnClose:!0,title:"\u63D0\u793A",className:xe.antdModal,width:682,confirmLoading:At,onCancel:Le,onOk:()=>z(void 0,null,function*(){var Pt;En(!0);let Te=ct;if(be){const et=a({},vt.getFieldsValue());Te=(Pt=Ge==null?void 0:Ge.course_data_list)==null?void 0:Pt.map(Yt=>et[Yt.id]!==void 0?x(a({},Yt),{is_copy:et[Yt.id]}):Yt)}yield st(Te),En(!1)})},b.createElement("div",{className:xe.content,style:{marginBottom:20}},be?"\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u95EE\u662F\u5426\u590D\u5236\u6210\u65B0\u7684\u5B9E\u8BAD\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u4E2D?":b.createElement(b.Fragment,null,b.createElement(te,{studentNames:Ge==null?void 0:Ge.student_names,total:Ge==null?void 0:Ge.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u5C06\u8BE5\u9879\u76EE\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")),be?b.createElement(he.default,{form:vt,preserve:!1},Wt==null?void 0:Wt.map(Pt=>b.createElement(b.Fragment,{key:Pt.id},b.createElement("h3",{className:"ml15 mb5"},Pt.name),b.createElement(he.default.Item,{name:Pt.id,initialValue:1},b.createElement(Be.ZP.Group,{className:xe.content},b.createElement(Be.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236\u5B9E\u8BAD"),b.createElement(Be.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236\u5B9E\u8BAD")))))):b.createElement(Be.ZP.Group,{value:ct,onChange:Pt=>bt(Pt.target.value),className:xe.content,style:{marginBottom:30}},b.createElement(Be.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236"),b.createElement(Be.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236")),b.createElement("div",null,b.createElement("div",{className:xe.content,style:{marginBottom:10}},"* \u8BF4\u660E\uFF1A"),b.createElement("div",{className:xe.content,style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),b.createElement("div",{className:`${xe.content} ${xe.orangeColor}`},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"))):b.createElement(we.default,{centered:!0,closable:!0,destroyOnClose:!0,open:Me,confirmLoading:At,title:"\u63D0\u793A",width:682,onCancel:Le,onOk:()=>z(void 0,null,function*(){var Pt;En(!0);let Te=0;if(be){const et=a({},vt.getFieldsValue());Te=(Pt=Ge==null?void 0:Ge.course_data_list)==null?void 0:Pt.map(Yt=>et[Yt.id]!==void 0?x(a({},Yt),{is_use:et[Yt.id]}):Yt)}yield st(Te),En(!1)})},b.createElement("div",{className:xe.content},b.createElement(te,{studentNames:Ge==null?void 0:Ge.student_names,total:Ge==null?void 0:Ge.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002",be?b.createElement(he.default,{form:vt,preserve:!1},b.createElement("h3",null,"\u5F53\u524D\u5B9E\u8BAD\u4E0D\u53EF\u590D\u5236\uFF0C\u5DF2\u7ECF\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5B58\u5728\u8BE5\u5B9E\u8BAD\uFF0C\u540C\u4E00\u5B9E\u8BAD\u5728\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u4E92\u76F8\u5F71\u54CD\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7EE7\u7EED\u4F7F\u7528"),Wt==null?void 0:Wt.map(Pt=>b.createElement(b.Fragment,{key:Pt.id},b.createElement("h3",{className:"ml15 mb5"},Pt.name),b.createElement(he.default.Item,{name:Pt.id,initialValue:1},b.createElement(Be.ZP.Group,{className:xe.content},b.createElement(Be.ZP,{value:1,style:{color:"#464f66"}},"\u7EE7\u7EED\u4F7F\u7528"),b.createElement(Be.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u4F7F\u7528")))))):b.createElement("div",null,"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u82E5\u786E\u8BA4\u7EE7\u7EED\u53D1\u9001\uFF0C",b.createElement("span",{className:xe.orangeColor},"\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"),"\uFF08\u5982\u679C\u4E0D\u60F3\u6E05\u7A7A\u5B66\u751F\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u5EFA\u8BAE\u53C2\u7167\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u5185\u5BB9\u81EA\u884C\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u6216\u8005\u5C1D\u8BD5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u4EBA\u5F00\u653E\u672C\u9879\u76EE\u7684\u590D\u5236\u6743\u9650\uFF09\u3002"))))},ie=function(){const[Le,st]=(0,b.useState)(!1),[Me,Ye]=(0,b.useState)();return[Le,()=>st(!1),Me,be=>z(this,null,function*(){var vt;const ct=be,{isImportMultipleCourse:bt=!1}=ct,At=y(ct,["isImportMultipleCourse"]);console.log(be);const En=(be==null?void 0:be.result)||(yield(0,Ke.Tr)(At));return"status"in En?!1:bt?((vt=En==null?void 0:En.course_data_list)==null?void 0:vt.some(Wt=>Wt.is_show))?(Ye(En),st(!0),!0):En.course_data_list||[]:En.student_count===0?!1:(Ye(En),st(!0),!0)})]},Ee=Le=>{const[st]=he.default.useForm(),[Me,Ye]=(0,b.useState)(!1),{onCancel:Ge,onOk:$e,visible:be,inPaper:vt=!1,renderData:ct,type:bt,isMultipleCourse:At=!1,position:En}=Le;let xn=(0,b.useMemo)(()=>vt?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:xe.tableCell,render(Te,et){return b.createElement("a",{href:`/shixuns/${et.identifier}/challenges`,target:"_blank"},Te)}},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(Te,et)=>b.createElement(b.Fragment,null,b.createElement(he.default.Item,{name:[`${bt==="subject"?et.stage_shixun_id:et.shixun_course_id||et.id}`,"is_copy"],initialValue:1},b.createElement(Be.ZP.Group,null,b.createElement(Be.ZP,{value:1},"\u662F"),b.createElement(Be.ZP,{value:0},"\u5426"))),b.createElement(he.default.Item,{name:[`${bt==="subject"?et==null?void 0:et.stage_shixun_id:et.shixun_course_id||et.id}`,"is_use"],hidden:!0,initialValue:1},b.createElement(Re.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:xe.tableCell,render(Te,et){return b.createElement("a",{href:`/shixuns/${et.identifier}/challenges`,target:"_blank"},Te)}},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(Te,et)=>b.createElement(he.default.Item,{name:[`${bt==="subject"?et.stage_shixun_id:et.shixun_course_id||et.id}`,"is_use"],initialValue:1},b.createElement(Be.ZP.Group,null,b.createElement(Be.ZP,{value:1},"\u662F"),b.createElement(Be.ZP,{value:0},"\u5426")))},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(Te,et)=>b.createElement(he.default.Item,{name:[`${bt==="subject"?et.stage_shixun_id:et.shixun_course_id||et.id}`,"is_copy"],initialValue:1},b.createElement(Be.ZP.Group,null,b.createElement(Be.ZP,{value:1},"\u662F"),b.createElement(Be.ZP,{value:0},"\u5426")))}],[vt]),Wt=(0,b.useMemo)(()=>vt?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:xe.tableCell,align:"center",ellipsis:!0,render:(Te,et)=>b.createElement(b.Fragment,null,b.createElement("a",{href:`/shixuns/${et.identifier}/challenges`,target:"_blank"},Te),b.createElement(he.default.Item,{name:[`${bt==="subject"?et==null?void 0:et.stage_shixun_id:et.shixun_course_id||et.id}`,"is_copy"],hidden:!0,initialValue:0},b.createElement(Re.default,{type:"hidden"})),b.createElement(he.default.Item,{name:[`${bt==="subject"?et==null?void 0:et.stage_shixun_id:et.shixun_course_id||et.id}`,"is_use"],hidden:!0,initialValue:1},b.createElement(Re.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:xe.tableCell,ellipsis:!0,align:"center",render:(Te,et)=>b.createElement("a",{href:`/shixuns/${et.identifier}/challenges`,target:"_blank"},Te)},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(Te,et)=>b.createElement(b.Fragment,null,b.createElement(he.default.Item,{name:[`${bt==="subject"?et==null?void 0:et.stage_shixun_id:et.shixun_course_id||et.id}`,"is_use"],initialValue:0},b.createElement(Be.ZP.Group,null,b.createElement(Be.ZP,{value:1},"\u662F"),b.createElement(Be.ZP,{value:0},"\u5426"))),b.createElement(he.default.Item,{name:[`${bt==="subject"?et==null?void 0:et.stage_shixun_id:et.shixun_course_id||et.id}`,"is_copy"],hidden:!0,initialValue:0},b.createElement(Re.default,{type:"hidden"})))}],[vt]);if(At){const Te={title:"\u8BFE\u5802\u540D\u79F0",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:xe.tableCell,render:(et,Yt)=>b.createElement("a",{href:`/classrooms/${Yt.course_id}`},et)};xn=[Te,...xn],Wt=[Te,...Wt]}const Pt=(0,b.useMemo)(()=>oe({used:ct==null?void 0:ct.repeat_shixun_num,copy:ct==null?void 0:ct.can_copy_num,canNotCopy:ct==null?void 0:ct.no_copy_num,studentNames:ct==null?void 0:ct.student_names,studentCount:ct==null?void 0:ct.student_count,is_random:ct==null?void 0:ct.is_random,inPaper:vt,position:En}),[ct,vt,En]);return b.createElement(we.default,{title:"\u63D0\u793A",centered:!0,open:be,confirmLoading:Me,onOk:()=>z(void 0,null,function*(){Ye(!0);const Te=st.getFieldsValue(),et=Object.keys(Te).map(Yt=>({id:parseInt(Yt.split("_")[0]),course_id:parseInt(Yt.split("_")[1]),is_use:Te[Yt].is_use,is_copy:Te[Yt].is_copy}));yield $e(et),Ye(!1)}),onCancel:Ge,width:880,okText:"\u786E\u8BA4",className:xe.antdModal,destroyOnClose:!0},b.createElement(he.default,{form:st,preserve:!1},b.createElement("div",{className:xe.brief},Pt),b.createElement("div",{style:{marginBottom:30}},b.createElement("div",{style:{marginBottom:20}},"* \u8BF4\u660E"),b.createElement("div",{style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),b.createElement("div",{className:xe.orangeColor},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002")),(ct==null?void 0:ct.can_copy_num)>0&&b.createElement("div",null,b.createElement("div",{className:xe.contentTitle},"\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),b.createElement(We.default,{columns:xn,className:xe.antdTable,dataSource:ct==null?void 0:ct.can_copy_list,rowKey:bt==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),(ct==null?void 0:ct.no_copy_num)>0&&b.createElement("div",null,b.createElement("div",{className:xe.contentTitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),b.createElement(We.default,{columns:Wt,className:xe.antdTable,dataSource:ct==null?void 0:ct.no_copy_list,rowKey:bt==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})),(ct==null?void 0:ct.no_use_list.length)>0&&(ct==null?void 0:ct.no_use_list.map(Te=>b.createElement("div",{key:bt==="subject"?Te.stage_shixun_id:Te.shixun_course_id||Te.id},b.createElement(he.default.Item,{name:[`${bt==="subject"?Te==null?void 0:Te.stage_shixun_id:Te.shixun_course_id||Te.id}`,"is_copy"],hidden:!0,initialValue:0},b.createElement(Re.default,{type:"hidden"})),b.createElement(he.default.Item,{name:[`${bt==="subject"?Te==null?void 0:Te.stage_shixun_id:Te.shixun_course_id||Te.id}`,"is_use"],hidden:!0,initialValue:1},b.createElement(Re.default,{type:"hidden"})))))))};var Qe=Le=>{const{modalType:st}=Le;return st==="multiple"?b.createElement(Ee,a({},Le)):b.createElement(se,a({},Le))}},27350:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Ke}});var b=ae(59301),he={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},we=ae(43418),Be="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Re="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",We=(Oe,De,ke)=>new Promise((ze,Ue)=>{var ue=x=>{try{a(ke.next(x))}catch(y){Ue(y)}},E=x=>{try{a(ke.throw(x))}catch(y){Ue(y)}},a=x=>x.done?ze(x.value):Promise.resolve(x.value).then(ue,E);a((ke=ke.apply(Oe,De)).next())}),Ke=({type:Oe,resdata:De,onok:ke,oktext:ze,okloading:Ue})=>{const[ue,E]=(0,b.useState)(!1),{can_copy_list:a,can_copy_num:x,challenge_type:y,course_data_list:z,no_copy_list:te,no_copy_num:oe,no_use_list:se,no_use_num:ie,repeat_shixun_num:Ee,student_count:Fe,total_num:Qe,use_num:Le}=De;let st=x>0||Oe==="exercise";(0,b.useEffect)(()=>{(De==null?void 0:De.student_count)>0&&E(!0)},[De]),console.log("---11",Ue),(0,b.useEffect)(()=>{Ue||E(!1)},[Ue]);const Me=()=>{if(Oe==="exercise"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:he.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:he.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(Oe==="exercise"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:he.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:he.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Oe==="shixun"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:he.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Oe==="shixun"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:he.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Oe==="subject"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:he.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:he.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Oe==="subject"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",b.createElement("span",{className:he.orangeColor},Fe)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",b.createElement("span",{className:he.orangeColor},Le)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Oe==="exercisepush")return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:he.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",b.createElement("span",{className:he.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",b.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(Oe==="shixunpush"&&y===1)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:he.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:he.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Oe==="shixunpush"&&y===2)return b.createElement(b.Fragment,null,"\u8BFE\u5802\u5185\u6709",b.createElement("span",{className:he.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",b.createElement("span",{className:he.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",b.createElement("span",{className:he.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Ye=()=>{if(Oe==="exercise"||Oe==="subject"||Oe==="exercisepush"||Oe==="shixunpush")return b.createElement("div",{style:{marginTop:20}},oe>0&&b.createElement("div",null,b.createElement("span",{className:he.flex},b.createElement("img",{src:Re,style:{width:14}}),b.createElement("span",{className:he.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),b.createElement("div",{className:he.statusbody},Oe==="exercise"&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:he.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(Oe==="subject"||Oe==="exercisepush")&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",st&&b.createElement("span",{className:he.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),Oe==="shixunpush"&&b.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",st&&b.createElement("span",{className:he.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),b.createElement("div",null,te==null?void 0:te.map((Ge,$e)=>b.createElement("a",{href:`/shixuns/${Ge.identifier}/challenges`,target:"_blank"},"\u300A",Ge==null?void 0:Ge.name,"\u300B",$e+1!==oe&&"\u3001"))))),x>0&&b.createElement("div",{style:{marginTop:20}},b.createElement("span",{className:he.flex},b.createElement("img",{src:Be,style:{width:14}}),b.createElement("span",{className:he.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),b.createElement("div",{className:he.statusbody},Oe==="exercise"&&b.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(Oe==="subject"||Oe==="exercisepush")&&b.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),Oe==="shixunpush"&&b.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),b.createElement("div",null,a==null?void 0:a.map((Ge,$e)=>b.createElement("a",{href:`/shixuns/${Ge.identifier}/challenges`,target:"_blank"},"\u300A",Ge==null?void 0:Ge.name,"\u300B",$e+1!==x&&"\u3001"))))));if(Oe==="shixun")return b.createElement("div",{style:{marginTop:20}},x>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return b.createElement(we.default,{open:ue,onCancel:()=>{E(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!st&&"none"}},zIndex:1003,confirmLoading:Ue,okText:st?ze:"\u6211\u77E5\u9053\u4E86",onOk:()=>We(void 0,null,function*(){st?yield ke([...a,...se]):E(!1)})},b.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Me(),Ye()))}},62319:function(it,jt,ae){"use strict";ae.d(jt,{h:function(){return oe}});var b=ae(59301),he=ae(57809),we=ae(78241),Be=ae(3113),Re=ae(89780),We=ae.n(Re),xe=ae(76809),Ke=ae(17022),Oe=Object.defineProperty,De=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,E=(se,ie,Ee)=>ie in se?Oe(se,ie,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[ie]=Ee,a=(se,ie)=>{for(var Ee in ie||(ie={}))Ue.call(ie,Ee)&&E(se,Ee,ie[Ee]);if(ze)for(var Ee of ze(ie))ue.call(ie,Ee)&&E(se,Ee,ie[Ee]);return se},x=(se,ie)=>De(se,ke(ie));const y=he.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},te={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"]};jt.Z=({callback:se,onCancel:ie})=>{const[Ee,Fe]=(0,b.useState)("python");function Qe(st){Fe(te[st][1])}function Le(st){se(st)}return b.createElement(we.default,x(a({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Le,style:{width:500}}),b.createElement(we.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.createElement(he.default,{getPopupContainer:st=>st.parentNode,onChange:Qe},Object.keys(te).map(st=>b.createElement(y,{key:st,value:st},te[st][0])))),b.createElement(we.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},b.createElement(oe,{mode:Ee})),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Be.ZP,{type:"ghost",onClick:ie},"\u53D6\u6D88")))};function oe({value:se,onChange:ie,mode:Ee,options:Fe={}}){const Qe=(0,b.useRef)(),[Le,st]=(0,b.useState)();return(0,b.useEffect)(()=>{if(Le){let Me=function(Ye){const Ge=Ye.getValue();ie&&ie(Ge)};return Le.on("change",Me),()=>{Le.off("change",Me)}}},[Le,ie]),(0,b.useEffect)(()=>{Le&&Le.setOption("mode",Ee)},[Le,Ee]),(0,b.useEffect)(()=>{Le&&(se!==Le.getValue()||se==="")&&setTimeout(()=>{Le.setValue(se||"")},300)},[Le,se]),(0,b.useEffect)(()=>{if(Qe.current&&!Le){const Me=We().fromTextArea(Qe.current,a({mode:Ee,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Fe));st(Me)}},[Qe.current,Le]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:Qe}))}},30720:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Kn}});var b=ae(59301),he=ae(89780),we=ae.n(he),Be=ae(76374),Re=ae(76809),We=ae(6313),xe=ae(25717),Ke=ae(99498),Oe=ae(25419),De=ae(67549),ke=ae(8658),ze=({value:Je="",className:nt,showTextOnly:Xe,showLines:rn,style:Cn={}})=>{const Nn=(0,b.useMemo)(()=>"",[Je]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:Nn}}))},Ue=ae(59301),ue=Object.defineProperty,E=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(Je,nt,Xe)=>nt in Je?ue(Je,nt,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Je[nt]=Xe,oe=(Je,nt)=>{for(var Xe in nt||(nt={}))y.call(nt,Xe)&&te(Je,Xe,nt[Xe]);if(x)for(var Xe of x(nt))z.call(nt,Xe)&&te(Je,Xe,nt[Xe]);return Je},se=(Je,nt)=>E(Je,a(nt));let ie=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ee({onActionCallback:Je,title:nt,icon:Xe,actionName:rn,className:Cn="",children:Nn}){function wa(){Je(rn)}return Ue.createElement("a",{title:nt,className:Cn,onClick:wa},Ue.createElement("i",{className:`${Xe}`}),Nn)}var Fe=({watch:Je,showNullButton:nt,showNullProgramButton:Xe,onActionCallback:rn,fullScreen:Cn,insertTemp:Nn,hidetoolBar:wa,extraUse:Ea})=>{const ta=[...ie,{title:`${Je?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Je?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ue.createElement("ul",{className:"markdown-toolbar-container"},!wa&&ta.map((ya,Xn)=>Ue.createElement("li",{key:Xn},ya.actionName?Ue.createElement(Ee,se(oe({},ya),{onActionCallback:rn})):Ue.createElement("span",{className:"v-line"}))),nt?Ue.createElement("li",null,Ue.createElement(Ee,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:rn},Ue.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Xe?Ue.createElement(Ue.Fragment,null,Ue.createElement("li",null,Ue.createElement(Ee,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:rn},Ue.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ue.createElement("li",null,Ue.createElement(Ee,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:rn},Ue.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Nn&&Ue.createElement("li",null,Ue.createElement(Ee,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Nn}`,onActionCallback:rn},Ue.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ea&&Ue.createElement("li",null,Ea),Ue.createElement("li",{className:"btn-full-screen"},Ue.createElement(Ee,{icon:`${Cn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Cn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:rn})))},Qe=ae(61569),Le=ae(78241),st=ae(92832),Me=ae(3113),Ye=Object.defineProperty,Ge=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,bt=(Je,nt,Xe)=>nt in Je?Ye(Je,nt,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Je[nt]=Xe,At=(Je,nt)=>{for(var Xe in nt||(nt={}))vt.call(nt,Xe)&&bt(Je,Xe,nt[Xe]);if(be)for(var Xe of be(nt))ct.call(nt,Xe)&&bt(Je,Xe,nt[Xe]);return Je},En=(Je,nt)=>Ge(Je,$e(nt));const xn={labelCol:{span:4},wrapperCol:{span:20}};var Wt=({callback:Je,onCancel:nt})=>{function Xe(rn){Je(rn)}return b.createElement(Le.default,En(At({},xn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Xe,style:{width:500}}),b.createElement(Le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(st.default,null)),b.createElement(Le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(st.default,null)),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Me.ZP,{type:"ghost",onClick:nt},"\u53D6\u6D88")))},Pt=ae(62319),Te=ae(52999),et=ae(43418),Yt=ae(95237),wn=ae(2781),Lt=ae(59301),_t=({callback:Je,onCancel:nt})=>{const Xe=document.createElement("canvas"),rn=Xe.getContext("2d");Xe.width=1e3,Xe.height=800,rn.fillStyle="#ffffff",rn.fillRect(0,0,Xe.width,Xe.height);const Cn=Xe.toDataURL("image/png");return Lt.createElement(et.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Lt.createElement(Yt.Z,{style:{height:"100vh"}},Lt.createElement(wn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Cn,visible:!0,title:String(Date.now())},onOk:Nn=>{Je({src:Nn.url})},onClose:nt})))},Ce=ae(12378);function ot(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(ot,go.CommandHandler),ot.prototype.canAlignSelection=function(){var Je=this.diagram;return!(Je===null||Je.isReadOnly||Je.isModelReadOnly||Je.selection.count<2)},ot.prototype.alignLeft=function(){var Je=this.diagram;Je.startTransaction("aligning left");var nt=1/0;Je.selection.each(function(Xe){Xe instanceof go.Link||(nt=Math.min(Xe.position.x,nt))}),Je.selection.each(function(Xe){Xe instanceof go.Link||Xe.move(new go.Point(nt,Xe.position.y))}),Je.commitTransaction("aligning left")},ot.prototype.alignRight=function(){var Je=this.diagram;Je.startTransaction("aligning right");var nt=-1/0;Je.selection.each(function(Xe){if(!(Xe instanceof go.Link)){var rn=Xe.actualBounds.x+Xe.actualBounds.width;nt=Math.max(rn,nt)}}),Je.selection.each(function(Xe){Xe instanceof go.Link||Xe.move(new go.Point(nt-Xe.actualBounds.width,Xe.position.y))}),Je.commitTransaction("aligning right")},ot.prototype.alignTop=function(){var Je=this.diagram;Je.startTransaction("alignTop");var nt=1/0;Je.selection.each(function(Xe){Xe instanceof go.Link||(nt=Math.min(Xe.position.y,nt))}),Je.selection.each(function(Xe){Xe instanceof go.Link||Xe.move(new go.Point(Xe.position.x,nt))}),Je.commitTransaction("alignTop")},ot.prototype.alignBottom=function(){var Je=this.diagram;Je.startTransaction("aligning bottom");var nt=-1/0;Je.selection.each(function(Xe){if(!(Xe instanceof go.Link)){var rn=Xe.actualBounds.y+Xe.actualBounds.height;nt=Math.max(rn,nt)}}),Je.selection.each(function(Xe){Xe instanceof go.Link||Xe.move(new go.Point(Xe.actualBounds.x,nt-Xe.actualBounds.height))}),Je.commitTransaction("aligning bottom")},ot.prototype.alignCenterX=function(){var Je=this.diagram,nt=Je.selection.first();if(nt){Je.startTransaction("aligning Center X");var Xe=nt.actualBounds.x+nt.actualBounds.width/2;Je.selection.each(function(rn){rn instanceof go.Link||rn.move(new go.Point(Xe-rn.actualBounds.width/2,rn.actualBounds.y))}),Je.commitTransaction("aligning Center X")}},ot.prototype.alignCenterY=function(){var Je=this.diagram,nt=Je.selection.first();if(nt){Je.startTransaction("aligning Center Y");var Xe=nt.actualBounds.y+nt.actualBounds.height/2;Je.selection.each(function(rn){rn instanceof go.Link||rn.move(new go.Point(rn.actualBounds.x,Xe-rn.actualBounds.height/2))}),Je.commitTransaction("aligning Center Y")}},ot.prototype.alignColumn=function(Je){var nt=this.diagram;nt.startTransaction("align Column"),Je===void 0&&(Je=0),Je=parseFloat(Je);var Xe=new Array;nt.selection.each(function(Ea){Ea instanceof go.Link||Xe.push(Ea)});for(var rn=0;rn0){for(var Ea=Nn.elt(wa-1);Ea!==null&&Ea.isTreeExpanded&&!Ea.isTreeLeaf;){var ta=this._sortTreeChildrenByY(Ea);Ea=ta.last()}Ea!==null&&Je.select(Ea)}else Je.select(Cn)}}else if(Xe.key==="Down")if(nt.isTreeExpanded&&!nt.isTreeLeaf){var rn=this._sortTreeChildrenByY(nt).first();rn!==null&&Je.select(rn)}else for(;nt!==null;){var Cn=nt.findTreeParentNode();if(Cn===null)break;var Nn=this._sortTreeChildrenByY(Cn),wa=Nn.indexOf(nt);if(waNn.y?1:Cn.xNn.x?1:0}),nt},ot.prototype.copyToClipboard=function(Je){go.CommandHandler.prototype.copyToClipboard.call(this,Je),this._lastPasteOffset.set(this.pasteOffset)},ot.prototype.pasteFromClipboard=function(){var Je=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Je,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Je},Object.defineProperty(ot.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Je){if(Je!=="move"&&Je!=="select"&&Je!=="scroll"&&Je!=="tree"&&Je!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Je);this._arrowKeyBehavior=Je}}),Object.defineProperty(ot.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Je){if(!(Je instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Je);this._pasteOffset.set(Je)}});var an=ot,tt=ae(4285),ht=ae(43604),Jn=ae(64866),dn={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Qt=ae(59301),kt=(Je,nt,Xe)=>new Promise((rn,Cn)=>{var Nn=ta=>{try{Ea(Xe.next(ta))}catch(ya){Cn(ya)}},wa=ta=>{try{Ea(Xe.throw(ta))}catch(ya){Cn(ya)}},Ea=ta=>ta.done?rn(ta.value):Promise.resolve(ta.value).then(Nn,wa);Ea((Xe=Xe.apply(Je,nt)).next())});function Wn({onCancel:Je,callback:nt}){let Xe=(0,b.useRef)(),rn=(0,b.useRef)(),Cn=(0,b.useRef)(),Nn=(0,b.useRef)(!1);const wa=(0,b.useRef)(!1),[Ea,ta]=(0,b.useState)(0);function ya(){const zt=Ce.bx.make,ka={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Xe.current=new Ce.S0(rn.current,{padding:20,grid:zt(Ce.s_,"Grid",zt(Ce.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),zt(Ce.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:vn=>{var na=vn.diagram.commandHandler.addTopLevelParts(vn.diagram.selection,!0);na||vn.diagram.currentTool.doCancel()},commandHandler:zt(an),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:vn=>{var na=vn.subject;na.location=na.location.copy().snapToGridPoint(vn.diagram.grid.gridOrigin,vn.diagram.grid.gridCellSize),setTimeout(()=>{vn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:vn=>{var na=vn.subject;setTimeout(()=>{vn.diagram.commandHandler.editTextBlock()})},LinkRelinked:vn=>{var na=vn.parameter.part;na.invalidateConnectedLinks();var Na=vn.subject;vn.diagram.toolManager.linkingTool.isForwards?Na.toNode.invalidateConnectedLinks():Na.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Xe.current.nodeTemplate=zt(Ce.NB,"Auto",{locationSpot:Ce.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ce.$u(120,60),minSize:new Ce.$u(40,40),resizable:!0,resizeCellSize:new Ce.$u(10,10),rotatable:!0},new Ce.KX("location","loc",Ce.E9.parse).makeTwoWay(Ce.E9.stringify),new Ce.KX("desiredSize","size",Ce.$u.parse).makeTwoWay(Ce.$u.stringify),zt(Ce.bn,{name:"SHAPE",fill:ka.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ce.z6.AllSides,toSpot:Ce.z6.AllSides},new Ce.KX("figure"),new Ce.KX("fill"),new Ce.KX("stroke","borderColor"),new Ce.KX("strokeWidth","thickness"),new Ce.KX("strokeDashArray","dash")),zt(Ce.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),zt(Ce.al,{margin:1,textAlign:"center",overflow:Ce.al.OverflowEllipsis,editable:!0},new Ce.KX("text").makeTwoWay(),new Ce.KX("stroke","color"))),Xe.current.nodeTemplate.toolTip=zt("ToolTip",zt(Ce.s_,"Vertical",{maxSize:new Ce.$u(200,NaN)},zt(Ce.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ce.KX("text")),zt(Ce.al,{font:"10pt sans-serif",textAlign:"center"},new Ce.KX("text","details"))));function pr(vn,na){var Na=(_n,sr)=>{_n.handled=!0,_n.diagram.model.commit(tr=>{var Ar=sr.part.adornedPart,Ur=new Ce.E9().setRectSpot(Ar.actualBounds,vn);Ur.subtract(Ar.location),Ur.scale(2,2),Ur.x+=Math.sign(Ur.x)*130,Ur.y+=Math.sign(Ur.y)*130,Ur.add(Ar.location),Ur.snapToGridPoint(_n.diagram.grid.gridOrigin,_n.diagram.grid.gridCellSize);var mr=tr.copyNodeData(Ar.data);tr.setGroupKeyForNodeData(mr,tr.getGroupKeyForNodeData(Ar.data)),tr.addNodeData(mr);var Yo={from:Ar.key,to:tr.getKeyForNodeData(mr)};tr.addLinkData(Yo);var Mo=_n.diagram.findNodeForData(mr);Mo.location=Ur,_n.diagram.select(Mo),setTimeout(()=>{_n.diagram.commandHandler.editTextBlock()},20)})};return zt(Ce.bn,{figure:na,alignment:vn,alignmentFocus:vn.opposite(),width:vn.equals(Ce.z6.Top)||vn.equals(Ce.z6.Bottom)?25:18,height:vn.equals(Ce.z6.Top)||vn.equals(Ce.z6.Bottom)?18:25,fill:"orange",stroke:ka.white,strokeWidth:4,mouseEnter:(_n,sr)=>sr.fill="dodgerblue",mouseLeave:(_n,sr)=>sr.fill="orange",isActionable:!0,click:Na,contextClick:Na})}function ho(vn){return zt(Ce.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(na,Na)=>Na.fill="dodgerblue",mouseLeave:(na,Na)=>Na.fill="orange",click:(na,Na)=>{na.diagram.commandHandler.showContextMenu(Na.part.adornedPart)}},vn||{})}Xe.current.nodeTemplate.selectionAdornmentTemplate=zt(Ce.uz,"Spot",zt(Ce.Vm,{padding:10}),pr(Ce.z6.Top,"TriangleUp"),pr(Ce.z6.Left,"TriangleLeft"),pr(Ce.z6.Right,"TriangleRight"),pr(Ce.z6.Bottom,"TriangleDown"),ho({alignment:new Ce.z6(.75,0)}));function qa(vn,na){return(Na,_n)=>{Na.handled=!0,Na.diagram.model.commit(sr=>{sr.set(_n.part.adornedPart.data,vn,na)})}}function Ht(vn,na){return na||(na="color"),zt(Ce.bn,{width:16,height:16,stroke:"lightgray",fill:vn,margin:1,background:"transparent",mouseEnter:(Na,_n)=>_n.stroke="dodgerblue",mouseLeave:(Na,_n)=>_n.stroke="lightgray",click:qa(na,vn),contextClick:qa(na,vn)})}function Qr(){return[zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Ht(ka.white,"fill"),Ht(ka.beige,"fill"),Ht(ka.extralightblue,"fill"),Ht(ka.extralightred,"fill"))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Ht(ka.lightgray,"fill"),Ht(ka.lightgreen,"fill"),Ht(ka.lightblue,"fill"),Ht(ka.lightred,"fill")))]}function Ua(){return[zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Ht(ka.black),Ht(ka.green),Ht(ka.blue),Ht(ka.red))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Ht(ka.white),Ht(ka.magenta),Ht(ka.purple),Ht(ka.orange)))]}function Sr(vn,na){return na||(na="thickness"),zt(Ce.bn,"LineH",{width:16,height:16,strokeWidth:vn,margin:1,background:"transparent",mouseEnter:(Na,_n)=>_n.background="dodgerblue",mouseLeave:(Na,_n)=>_n.background="transparent",click:qa(na,vn),contextClick:qa(na,vn)})}function lr(vn,na){return na||(na="dash"),zt(Ce.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:vn,margin:1,background:"transparent",mouseEnter:(Na,_n)=>_n.background="dodgerblue",mouseLeave:(Na,_n)=>_n.background="transparent",click:qa(na,vn),contextClick:qa(na,vn)})}function Gr(){return[zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Sr(1),Sr(2),Sr(3),Sr(4))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",lr(null),lr([2,4]),lr([4,4])))]}function Lr(vn,na){return na||(na="figure"),zt(Ce.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:vn,margin:1,background:"transparent",mouseEnter:(Na,_n)=>_n.fill="dodgerblue",mouseLeave:(Na,_n)=>_n.fill="lightgray",click:qa(na,vn),contextClick:qa(na,vn)})}Xe.current.nodeTemplate.contextMenu=zt("ContextMenu",zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Lr("Rectangle"),Lr("RoundedRectangle"),Lr("Ellipse"),Lr("Diamond"))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Lr("Parallelogram2"),Lr("ManualOperation"),Lr("Procedure"),Lr("Cylinder1"))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Lr("Terminator"),Lr("CreateRequest"),Lr("Document"),Lr("TriangleDown"))),Qr(),Ua(),Gr()),Xe.current.groupTemplate=zt(Ce.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ce.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(vn,na)=>{var Na=na.addMembers(na.diagram.selection,!0);Na||na.diagram.currentTool.doCancel()},avoidable:!1},new Ce.KX("location","loc",Ce.E9.parse).makeTwoWay(Ce.E9.stringify),zt(Ce.s_,"Auto",{name:"BODY"},zt(Ce.bn,{parameter1:10,fill:ka.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ce.z6.AllSides,toSpot:Ce.z6.AllSides},new Ce.KX("fill"),new Ce.KX("stroke","color"),new Ce.KX("strokeWidth","thickness"),new Ce.KX("strokeDashArray","dash")),zt(Ce.Vm,{background:"transparent",margin:20})),zt(Ce.al,{alignment:Ce.z6.Top,alignmentFocus:Ce.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ce.KX("text"),new Ce.KX("stroke","color"))),Xe.current.groupTemplate.selectionAdornmentTemplate=zt(Ce.uz,"Spot",zt(Ce.s_,"Auto",zt(Ce.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),zt(Ce.Vm,{margin:1.5})),ho({alignment:Ce.z6.TopRight,alignmentFocus:Ce.z6.BottomRight})),Xe.current.groupTemplate.contextMenu=zt("ContextMenu",Qr(),Ua(),Gr()),Xe.current.linkTemplate=zt(Ce.rU,{layerName:"Foreground",routing:Ce.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ce.KX("fromSpot","fromSpot",Ce.z6.parse),new Ce.KX("toSpot","toSpot",Ce.z6.parse),new Ce.KX("fromShortLength","dir",vn=>vn>=1?10:0),new Ce.KX("toShortLength","dir",vn=>vn>=1?10:0),new Ce.KX("points").makeTwoWay(),zt(Ce.bn,{strokeWidth:2},new Ce.KX("stroke","color"),new Ce.KX("strokeWidth","thickness"),new Ce.KX("strokeDashArray","dash")),zt(Ce.bn,{segmentIndex:0,segmentOffset:new Ce.E9(15,0),segmentOrientation:Ce.rU.OrientAlong,alignmentFocus:Ce.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ce.KX("fill","color"),new Ce.KX("visible","dir",vn=>vn===1)),zt(Ce.bn,{segmentIndex:-1,segmentOffset:new Ce.E9(-10,6),segmentOrientation:Ce.rU.OrientPlus90,alignmentFocus:Ce.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ce.KX("fill","color"),new Ce.KX("visible","dir",vn=>vn>=1),new Ce.KX("width","thickness",vn=>7+3*vn),new Ce.KX("height","thickness",vn=>7+3*vn),new Ce.KX("segmentOffset","thickness",vn=>new Ce.E9(-15,4+1.5*vn))),zt(Ce.bn,{segmentIndex:0,segmentOffset:new Ce.E9(15,-6),segmentOrientation:Ce.rU.OrientMinus90,alignmentFocus:Ce.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ce.KX("fill","color"),new Ce.KX("visible","dir",vn=>vn===2),new Ce.KX("width","thickness",vn=>7+3*vn),new Ce.KX("height","thickness",vn=>7+3*vn),new Ce.KX("segmentOffset","thickness",vn=>new Ce.E9(-15,4+1.5*vn))),zt(Ce.al,{alignmentFocus:new Ce.z6(0,1,-4,0),editable:!0},new Ce.KX("text").makeTwoWay(),new Ce.KX("stroke","color"))),Xe.current.linkTemplate.selectionAdornmentTemplate=zt(Ce.uz,zt(Ce.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:no(2)},new Ce.KX("pathPattern","thickness",no)),ho({alignmentFocus:new Ce.z6(0,0,-6,-4)}));function no(vn){return zt(Ce.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(vn+4).toString()+" H3"})}function Mr(vn){var na="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return vn===0?na="M0 0 M16 16 M0 8 L16 8":vn===2&&(na="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),zt(Ce.bn,{geometryString:na,margin:2,background:"transparent",mouseEnter:(Na,_n)=>_n.background="dodgerblue",mouseLeave:(Na,_n)=>_n.background="transparent",click:qa("dir",vn),contextClick:qa("dir",vn)})}function ca(vn){var na=(Na,_n)=>{Na.handled=!0,Na.diagram.model.commit(sr=>{var tr=_n.part.adornedPart;sr.set(tr.data,vn?"toSpot":"fromSpot",Ce.z6.stringify(Ce.z6.AllSides)),(vn?tr.toNode:tr.fromNode).invalidateConnectedLinks()})};return zt(Ce.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Na,_n)=>_n.background="dodgerblue",mouseLeave:(Na,_n)=>_n.background="transparent",click:na,contextClick:na})}function nn(vn,na){var Na=0,_n=Ce.z6.RightSide;vn.equals(Ce.z6.Top)?(Na=270,_n=Ce.z6.TopSide):vn.equals(Ce.z6.Left)?(Na=180,_n=Ce.z6.LeftSide):vn.equals(Ce.z6.Bottom)&&(Na=90,_n=Ce.z6.BottomSide),na||(Na-=180);var sr=(tr,Ar)=>{tr.handled=!0,tr.diagram.model.commit(Ur=>{var mr=Ar.part.adornedPart;Ur.set(mr.data,na?"toSpot":"fromSpot",Ce.z6.stringify(_n)),(na?mr.toNode:mr.fromNode).invalidateConnectedLinks()})};return zt(Ce.bn,{alignment:vn,alignmentFocus:vn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Na,background:"transparent",mouseEnter:(tr,Ar)=>Ar.background="dodgerblue",mouseLeave:(tr,Ar)=>Ar.background="transparent",click:sr,contextClick:sr})}Xe.current.linkTemplate.contextMenu=zt("ContextMenu",Ua(),Gr(),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Mr(0),Mr(1),Mr(2))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",zt(Ce.s_,"Spot",ca(!1),nn(Ce.z6.Top,!1),nn(Ce.z6.Left,!1),nn(Ce.z6.Right,!1),nn(Ce.z6.Bottom,!1)),zt(Ce.s_,"Spot",{margin:new Ce.Zt(0,0,0,2)},ca(!0),nn(Ce.z6.Top,!0),nn(Ce.z6.Left,!0),nn(Ce.z6.Right,!0),nn(Ce.z6.Bottom,!0)))));const gr=`{ "class": "GraphLinksModel", "nodeDataArray": [ {"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3}, {"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"}, @@ -252,32 +252,32 @@ ${Ba} {"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"}, {"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1}, {"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]} -]}`;var ga=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function ur(vn){return console.log("shapeName:",vn),ga.indexOf(vn)>=0}var za=new Ce.YI(Cn.current,{maxSelectionCount:1,linkTemplate:zt(Ce.rU,{locationSpot:Ce.z6.Center,selectionAdornmentTemplate:zt(Ce.uz,"Link",{locationSpot:Ce.z6.Center},zt(Ce.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),zt(Ce.bn,{toArrow:"Standard",stroke:null}))},{routing:Ce.rU.AvoidsNodes,curve:Ce.rU.JumpOver,corner:5,toShortLength:4},new Ce.KX("points"),zt(Ce.bn,{isPanelMain:!0,strokeWidth:2}),zt(Ce.bn,{toArrow:"Standard",stroke:null})),model:new Ce.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ce.bn.getFigureGenerators().toArray().map(vn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:vn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Xe.current.addDiagramListener("TextEdited",function(vn){var na;const Na=vn.subject.part;var _n=(na=document.activeElement)==null?void 0:na.value;typeof _n=="string"&&_n.trim()===""&&Xe.current.model.commit(function(sr){sr.set(Na.data,"text","\u672A\u547D\u540D"),Xe.current.commandHandler.stopCommand()},"increment")}),za.nodeTemplate=zt(Ce.NB,"Auto",{locationSpot:Ce.z6.Center},new Ce.KX("location","location",Ce.E9.parse).makeTwoWay(Ce.E9.stringify),zt(Ce.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new Ce.KX("stroke").makeTwoWay(),new Ce.KX("fill").makeTwoWay(),new Ce.KX("figure")),zt(Ce.al,{margin:new Ce.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ce.$u(16,16),maxSize:new Ce.$u(10,NaN),textAlign:"center",editable:!0},new Ce.KX("key").makeTwoWay())),setTimeout(()=>{Xe.current.grid=zt(Ce.s_,"Grid",zt(Ce.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),zt(Ce.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Xe.current.grid.visible=!0,Xe.current.grid.gridCellStroke="darkgray",Xe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Xe.current,Xe.current}const Xn=()=>Rt(this,null,function*(){var zt=Xe.current.makeImage();const ka=yield(0,Jn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:zt.src}});tt({src:ka.url})});return(0,b.useEffect)(()=>(setTimeout(()=>{ya()},500),ta(Ea+1),()=>{Xe.current=null}),[]),Qt.createElement("div",{ref:wa,className:Nn.current?`${dn.maxH60} body-overflow-initial`:"body-overflow-initial"},Qt.createElement(et.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Ea,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Qt.createElement(Yt.Z,null,Qt.createElement(ht.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Qt.createElement(ht.Z,{onClick:()=>{var zt,ka,pr=Xe.current.selection.first();if(Nn.current=!Nn.current,document.activeElement&&pr){let ho=(ka=(zt=document.activeElement)==null?void 0:zt.value)==null?void 0:ka.trim();typeof ho=="string"&&Xe.current.model.commit(function(qa){qa.set(pr.data,"text",ho||"\u672A\u547D\u540D"),Xe.current.commandHandler.stopCommand()},"increment")}ta(Ea+1)}},Qt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Je},Qt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:dn.flowChartWrp},Qt.createElement("div",{style:{display:"flex",height:"100%"}},Qt.createElement("div",{style:{width:"300px",height:"100%"}},Qt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Qt.createElement("div",{style:{height:"calc(100% - 50px)"},className:dn.myPaletteDiv,ref:Cn})),Qt.createElement("div",{style:{flex:1,position:"relative"}},Qt.createElement("div",{ref:an,style:{height:"80vh"}}))),Qt.createElement("div",{className:"tr"},Qt.createElement(Me.ZP,{size:"large",onClick:Xn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ra=Wn,en=ae(5112),Ba=ae(5871);const Ka=en.ZP.Group,Fa={margin:"0 8px"};var jn=({callback:Je,onCancel:tt})=>{function Xe(an){Je(an)}return b.createElement(Le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Xe},b.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},b.createElement("span",{style:Fa},"\u5355\u5143\u683C\u6570\uFF1A"),b.createElement("span",{style:Fa},"\u884C\u6570"),b.createElement(Le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},b.createElement(Ba.Z,null)),b.createElement("span",{style:Fa},"\u5217\u6570"),b.createElement(Le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},b.createElement(Ba.Z,null))),b.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},b.createElement("span",{style:Fa},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),b.createElement(Le.default.Item,{name:"align"},b.createElement(Ka,null,b.createElement(en.ZP,{value:"default"},b.createElement("i",{className:"fa fa-align-justify"})),b.createElement(en.ZP,{value:"left"},b.createElement("i",{className:"fa fa-align-left"})),b.createElement(en.ZP,{value:"center"},b.createElement("i",{className:"fa fa-align-center"})),b.createElement(en.ZP,{value:"right"},b.createElement("i",{className:"fa fa-align-right"}))))),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Me.ZP,{type:"ghost",onClick:tt},"\u53D6\u6D88")))},Ha=ae(78673),Pa=ae(20063),fr=ae.n(Pa),Zn=(0,b.forwardRef)(({use3d:Je,width:tt,height:Xe,callback:an,showSaveButton:Cn},Nn)=>{const wa=(0,b.useRef)(),Ea=(0,b.useRef)(),[ta,ya]=(0,b.useState)(!1),Xn=(0,b.useRef)({id:wa,appName:"graphing",width:tt||1e3,height:Xe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,b.useEffect)(()=>{Ea.current=new(fr())(Xn.current,!0),window.onload=function(){Ea.current.inject("applet_container")}},[]);const zt=()=>{var ka=window.ggbApplet.getPNGBase64(1,!0,72);return an&&an(ka),ka};return(0,b.useEffect)(()=>{Xn.current.appName=ta?"3D":"graphing",Ea.current.inject("applet_container")},[ta]),(0,b.useEffect)(()=>{ya(Je)},[Je]),(0,b.useImperativeHandle)(Nn,()=>({getImgData:zt})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:wa}),b.createElement(Yt.Z,{align:"middle"},b.createElement(ht.Z,{flex:1},b.createElement(Ha.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:ta,onChange:ka=>ya(ka)})),b.createElement(ht.Z,null,b.createElement(Me.ZP,{size:"large",onClick:zt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),da=ae(50892),Aa=ae(1012),xa=ae(8591);const _a="link",Sn="upload-image",rn="add-flowchart",St="draw-image",kt="add-flowchart",ja="code-block",Ca="add-table",Wa="------------",Da={default:Wa,left:`:${Wa}`,center:`:${Wa}:`,right:`${Wa}:`};var Ta=ae(29152),Br=(Je,tt,Xe)=>new Promise((an,Cn)=>{var Nn=ta=>{try{Ea(Xe.next(ta))}catch(ya){Cn(ya)}},wa=ta=>{try{Ea(Xe.throw(ta))}catch(ya){Cn(ya)}},Ea=ta=>ta.done?an(ta.value):Promise.resolve(ta.value).then(Nn,wa);Ea((Xe=Xe.apply(Je,tt)).next())});function ar(){}let Or=0;const Oo=1e4,Ut="\u2581",Un="@\u2581\u2581@",$n="@\u2581@",ba=` +]}`;var ga=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function ur(vn){return console.log("shapeName:",vn),ga.indexOf(vn)>=0}var za=new Ce.YI(Cn.current,{maxSelectionCount:1,linkTemplate:zt(Ce.rU,{locationSpot:Ce.z6.Center,selectionAdornmentTemplate:zt(Ce.uz,"Link",{locationSpot:Ce.z6.Center},zt(Ce.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),zt(Ce.bn,{toArrow:"Standard",stroke:null}))},{routing:Ce.rU.AvoidsNodes,curve:Ce.rU.JumpOver,corner:5,toShortLength:4},new Ce.KX("points"),zt(Ce.bn,{isPanelMain:!0,strokeWidth:2}),zt(Ce.bn,{toArrow:"Standard",stroke:null})),model:new Ce.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ce.bn.getFigureGenerators().toArray().map(vn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:vn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Xe.current.addDiagramListener("TextEdited",function(vn){var na;const Na=vn.subject.part;var _n=(na=document.activeElement)==null?void 0:na.value;typeof _n=="string"&&_n.trim()===""&&Xe.current.model.commit(function(sr){sr.set(Na.data,"text","\u672A\u547D\u540D"),Xe.current.commandHandler.stopCommand()},"increment")}),za.nodeTemplate=zt(Ce.NB,"Auto",{locationSpot:Ce.z6.Center},new Ce.KX("location","location",Ce.E9.parse).makeTwoWay(Ce.E9.stringify),zt(Ce.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new Ce.KX("stroke").makeTwoWay(),new Ce.KX("fill").makeTwoWay(),new Ce.KX("figure")),zt(Ce.al,{margin:new Ce.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ce.$u(16,16),maxSize:new Ce.$u(10,NaN),textAlign:"center",editable:!0},new Ce.KX("key").makeTwoWay())),setTimeout(()=>{Xe.current.grid=zt(Ce.s_,"Grid",zt(Ce.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),zt(Ce.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Xe.current.grid.visible=!0,Xe.current.grid.gridCellStroke="darkgray",Xe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Xe.current,Xe.current}const Xn=()=>kt(this,null,function*(){var zt=Xe.current.makeImage();const ka=yield(0,Jn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:zt.src}});nt({src:ka.url})});return(0,b.useEffect)(()=>(setTimeout(()=>{ya()},500),ta(Ea+1),()=>{Xe.current=null}),[]),Qt.createElement("div",{ref:wa,className:Nn.current?`${dn.maxH60} body-overflow-initial`:"body-overflow-initial"},Qt.createElement(et.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Ea,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Qt.createElement(Yt.Z,null,Qt.createElement(ht.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Qt.createElement(ht.Z,{onClick:()=>{var zt,ka,pr=Xe.current.selection.first();if(Nn.current=!Nn.current,document.activeElement&&pr){let ho=(ka=(zt=document.activeElement)==null?void 0:zt.value)==null?void 0:ka.trim();typeof ho=="string"&&Xe.current.model.commit(function(qa){qa.set(pr.data,"text",ho||"\u672A\u547D\u540D"),Xe.current.commandHandler.stopCommand()},"increment")}ta(Ea+1)}},Qt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Je},Qt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:dn.flowChartWrp},Qt.createElement("div",{style:{display:"flex",height:"100%"}},Qt.createElement("div",{style:{width:"300px",height:"100%"}},Qt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Qt.createElement("div",{style:{height:"calc(100% - 50px)"},className:dn.myPaletteDiv,ref:Cn})),Qt.createElement("div",{style:{flex:1,position:"relative"}},Qt.createElement("div",{ref:rn,style:{height:"80vh"}}))),Qt.createElement("div",{className:"tr"},Qt.createElement(Me.ZP,{size:"large",onClick:Xn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ra=Wn,tn=ae(5112),Ba=ae(5871);const Ka=tn.ZP.Group,Fa={margin:"0 8px"};var jn=({callback:Je,onCancel:nt})=>{function Xe(rn){Je(rn)}return b.createElement(Le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Xe},b.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},b.createElement("span",{style:Fa},"\u5355\u5143\u683C\u6570\uFF1A"),b.createElement("span",{style:Fa},"\u884C\u6570"),b.createElement(Le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},b.createElement(Ba.Z,null)),b.createElement("span",{style:Fa},"\u5217\u6570"),b.createElement(Le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},b.createElement(Ba.Z,null))),b.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},b.createElement("span",{style:Fa},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),b.createElement(Le.default.Item,{name:"align"},b.createElement(Ka,null,b.createElement(tn.ZP,{value:"default"},b.createElement("i",{className:"fa fa-align-justify"})),b.createElement(tn.ZP,{value:"left"},b.createElement("i",{className:"fa fa-align-left"})),b.createElement(tn.ZP,{value:"center"},b.createElement("i",{className:"fa fa-align-center"})),b.createElement(tn.ZP,{value:"right"},b.createElement("i",{className:"fa fa-align-right"}))))),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Me.ZP,{type:"ghost",onClick:nt},"\u53D6\u6D88")))},Ha=ae(78673),Pa=ae(20063),fr=ae.n(Pa),Zn=(0,b.forwardRef)(({use3d:Je,width:nt,height:Xe,callback:rn,showSaveButton:Cn},Nn)=>{const wa=(0,b.useRef)(),Ea=(0,b.useRef)(),[ta,ya]=(0,b.useState)(!1),Xn=(0,b.useRef)({id:wa,appName:"graphing",width:nt||1e3,height:Xe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,b.useEffect)(()=>{Ea.current=new(fr())(Xn.current,!0),window.onload=function(){Ea.current.inject("applet_container")}},[]);const zt=()=>{var ka=window.ggbApplet.getPNGBase64(1,!0,72);return rn&&rn(ka),ka};return(0,b.useEffect)(()=>{Xn.current.appName=ta?"3D":"graphing",Ea.current.inject("applet_container")},[ta]),(0,b.useEffect)(()=>{ya(Je)},[Je]),(0,b.useImperativeHandle)(Nn,()=>({getImgData:zt})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:wa}),b.createElement(Yt.Z,{align:"middle"},b.createElement(ht.Z,{flex:1},b.createElement(Ha.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:ta,onChange:ka=>ya(ka)})),b.createElement(ht.Z,null,b.createElement(Me.ZP,{size:"large",onClick:zt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),da=ae(50892),Aa=ae(1012),xa=ae(8591);const _a="link",Sn="upload-image",on="add-flowchart",St="draw-image",Tt="add-flowchart",ja="code-block",Ca="add-table",Wa="------------",Da={default:Wa,left:`:${Wa}`,center:`:${Wa}:`,right:`${Wa}:`};var Ta=ae(29152),Br=(Je,nt,Xe)=>new Promise((rn,Cn)=>{var Nn=ta=>{try{Ea(Xe.next(ta))}catch(ya){Cn(ya)}},wa=ta=>{try{Ea(Xe.throw(ta))}catch(ya){Cn(ya)}},Ea=ta=>ta.done?rn(ta.value):Promise.resolve(ta.value).then(Nn,wa);Ea((Xe=Xe.apply(Je,nt)).next())});function ar(){}let Or=0;const Oo=1e4,Ut="\u2581",Un="@\u2581\u2581@",$n="@\u2581@",ba=` **\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`,Ze=["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"];function Ot(Je){return/^\d+$/.test(Je)?`${Je}px`:Je}const fn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Mt={[fn+"-B"]:"bold",[fn+"-I"]:"italic"},Qn={[_a]:"\u6DFB\u52A0\u94FE\u63A5",[ja]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Sn]:"\u6DFB\u52A0\u56FE\u7247",[St]:"\u6DFB\u52A0\u753B\u56FE",[rn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ca]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Kn=({defaultValue:Je="",onChange:tt,width:Xe="100%",height:an=400,miniToolbar:Cn=!1,isFocus:Nn=!1,watch:wa,insertTemp:Ea,mode:ta="markdown",id:ya="markdown-editor-id",showResizeBar:Xn=!1,noStorage:zt=!1,showNullButton:ka=!1,showNullProgramButton:pr=!1,hidetoolBar:ho=!1,fullScreen:qa=!1,onBlur:Gt,onCMBeforeChange:Qr,onFullScreen:Ua,className:Sr="",disablePaste:lr=!1,disabled:Gr=!1,disabledFill:Lr=!1,placeholder:no="",values:Mr="",extraUse:ca})=>{const[tn,gr]=(0,b.useState)(null),[ga,ur]=(0,b.useState)(Je),[za,vn]=(0,b.useState)(wa),[na,Na]=(0,b.useState)(qa),[_n,sr]=(0,b.useState)(""),[tr,Ar]=(0,b.useState)(0),[Ur,mr]=(0,b.useState)(an),[Yo,Mo]=(0,b.useState)(!1),Ei=(0,b.useRef)((0,Aa.Z)()),xr=(0,b.useRef)(!1),Nr=(0,b.useRef)(),[Eo,Ja]=(0,b.useState)(0),[Hr,Yr]=(0,b.useState)(0),hr=(0,b.useRef)(),Kr=(0,b.useRef)(),xt=(0,b.useRef)(),yt=(0,b.useRef)(),Et=()=>Br(void 0,null,function*(){var ia;const Dn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ei.current}});(ia=Dn==null?void 0:Dn.attachments)!=null&&ia.length&&(console.log("cm:",tn,hr),Dn.attachments.map(Hn=>{Hn.content_type.indexOf("image")>-1?tn.replaceSelection(`![,](/api/attachments/${Hn.id}?type=${Hn.content_type})`):Hn.content_type.indexOf("video")>-1?tn.replaceSelection(``):Hn.content_type.indexOf("pdf")>-1?tn.replaceSelection(`${Hn.name}`):tn.replaceSelection(`[${Hn.name}](${ENV.API_SERVER}/api/attachments/${Hn.id}?type=${Hn.content_type})`)}))});(0,b.useEffect)(()=>{const ia=window.scrollY||window.pageYOffset;ur(Mr),tn==null||tn.setValue(Mr),window.scrollTo(0,ia)},[Mr]),(0,b.useEffect)(()=>{Ua==null||Ua(na)},[na]),(0,b.useEffect)(()=>{if(hr.current){let ia=function(Hn,me){var gt;if(lr){me.preventDefault();return}const Bt=me.clipboardData;if(Bt){const on=Bt.types.toString(),pt=Bt.items;if(on==="Files"||Bt.types.indexOf("Files")>-1){if(me.preventDefault(),ta=="stex")return;try{let Ln=pt[1];((gt=pt[0])==null?void 0:gt.kind)==="file"&&(Ln=pt[0]);const yn=Ln.getAsFile(),mn=yn.name.split(".").pop();(0,Te.I)(yn,Fn=>{var Oa,cr,Fr;Fn.id?((Oa=yn==null?void 0:yn.type)==null?void 0:Oa.indexOf("image"))>-1?Dn.replaceSelection(``):((cr=yn==null?void 0:yn.type)==null?void 0:cr.indexOf("video"))>-1?Dn.replaceSelection(``):((Fr=yn==null?void 0:yn.type)==null?void 0:Fr.indexOf("pdf"))>-1?Dn.replaceSelection(`${yn.name}`):Ze.includes(mn)?Dn.replaceSelection(`${yn.name}`):Dn.replaceSelection(`[${yn.name}](/api/attachments/${Fn.id}?type=${Fn.content_type})`):(Fn==null?void 0:Fn.status)===401&&(xa.ZP.warning((Fn==null?void 0:Fn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ln){xa.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Dn=we().fromTextArea(hr.current,{mode:ta,lineNumbers:!Cn,lineWrapping:!0,value:Je,autoCloseTags:!pr,autoCloseBrackets:!0});return Dn.on("keyup",function(Hn,me){me.keyCode===8&&(Hn.getValue()==""?Dn.setOption("placeholder",no):Dn.setOption("placeholder",null))}),Dn.on("keydown",function(Hn,me){if(me.keyCode===8){var gt=Za(Hn);gt&&me.preventDefault()}}),Nn&&Dn.focus(),Dn.on("paste",ia),Dn.on("dragleave",function(Hn,me){Kr.current.classList.remove("mouse-hover-md")}),Gr&&Dn.on("beforeChange",function(Hn,me){(me.origin==="paste"||me.origin==="+input")&&me.cancel()}),gr(Dn),()=>{Dn.off("paste",ia)}}},[]);const Mn=(0,b.useCallback)(()=>{if(Kr.current)try{}catch(ia){console.log(ia,"---- to set md editor body height")}},[Ur,Kr,na]);(0,b.useEffect)(()=>{function ia(){let Dn=new xe.Z(Hn=>{for(let me of Hn)(me.target.offsetHeight>0||me.target.offsetWidth>0)&&(Mn(),tn.setSize("100%","100%"),tn.refresh())});return Dn.observe(hr.current.parentElement),Dn}if(tn){const Dn=ia();return()=>{var Hn,me;(Hn=hr.current)!=null&&Hn.parentElement&&Dn.unobserve((me=hr.current)==null?void 0:me.parentElement)}}},[tn,Mn]),(0,b.useEffect)(()=>{if(tn){let ia=[];for(const[Dn,Hn]of Object.entries(Mt)){let me={[Dn]:()=>{rr(Hn)}};ia.push(me),tn.addKeyMap(me)}return Nr.current=setInterval(()=>{xr.current&&Et()},4e3),()=>{clearInterval(Nr.current);for(let Dn of ia)tn.removeKeyMap(Dn)}}},[tn]),(0,b.useEffect)(()=>{qa!==na&&Na(qa)},[qa]),(0,Ta.Z)(()=>{if(!zt&&tr>0){let ia=new Date().getTime(),Dn=window.sessionStorage.getItem(ya);ia>=tr+Oo&&(!Dn||Dn!==ga)&&(window.sessionStorage.setItem(ya,ga),Mo(!0))}},Oo),(0,b.useEffect)(()=>{vn(wa)},[tn,wa]),(0,b.useEffect)(()=>{tn&&Nn&&tn.focus()},[tn,Nn]),(0,b.useEffect)(()=>{if(za&&tn){let ia=function(Hn){let me=Hn.target;if(yt.current){let gt=me.scrollTop/me.scrollHeight;yt.current.scrollTop=yt.current.scrollHeight*gt}};const Dn=tn.getScrollerElement();return Dn.addEventListener("scroll",ia),()=>{Dn.removeEventListener("scroll",ia)}}},[tn,za]),(0,b.useEffect)(()=>{if(tn&&Qr){let ia=function(Dn,Hn){Qr(Dn,Hn)};return tn.on("beforeChange",ia),()=>{tn.off("beforeChange",ia)}}},[tn,Qr]),(0,b.useEffect)(()=>{if(tn&&Gt){let ia=function(){Gt(tn.getValue())};return tn.on("blur",ia),()=>{tn.off("blur",ia)}}},[tn,Gt]);function Za(ia,Dn){var Hn=ia.getDoc(),me=Hn.getCursor(),gt=Hn.getLine(me.line),Bt=gt.charAt(me.ch-1),on=gt.lastIndexOf("@\u2581@",me.ch),pt=gt.lastIndexOf("@\u2581\u2581@",me.ch),Ln=on>pt?on:pt,yn=on>pt?3:4;if(Un.indexOf(Bt)===-1)return null;if(console.log("change1:",Dn,ia,gt,me,Ln,on,pt,Bt),Ln>=0&&me.ch-Ln<5){var mn=Ln+yn;return Hn.replaceRange("",{line:me.line,ch:Ln},{line:me.line,ch:mn}),{line:me.line,ch:mn}}return null}(0,b.useEffect)(()=>{if(tn){let ia=function(Dn,Hn){const me=Dn.getValue();ur(me),Ar(new Date().getTime()),Dn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),tt&&(pr?tt(me,Bo(me)):tt(me))};return tn.on("change",ia),()=>{tn.off("change",ia)}}},[tn,tt]),(0,b.useEffect)(()=>{if(tn)if(Je==null)tn.setValue(""),ur("");else{const ia=window.scrollY||window.pageYOffset;Je!==tn.getValue()&&(tn.setValue(Je),ur(Je),tn.setCursor(Gr?1:tn.lineCount(),0),window.scrollTo(0,ia))}},[tn,Je]);const rr=(0,b.useCallback)(ia=>{const Dn=tn.getCursor(),Hn=tn.getSelection();let me=Hn.split(` -`);switch(ia){case"bold":return tn.replaceSelection("**"+Hn+"**"),Hn===""&&tn.setCursor(Dn.line,Dn.ch+2),tn.focus();case"italic":return tn.replaceSelection("*"+Hn+"*"),Hn===""&&tn.setCursor(Dn.line,Dn.ch+1),tn.focus();case"code":return tn.replaceSelection("`"+Hn+"`"),Hn===""&&tn.setCursor(Dn.line,Dn.ch+1),tn.focus();case"inline-latex":return sr("inline-latex"),tn.focus();case"latex":return tn.replaceSelection("```latex\n"+Hn+"\n```"),tn.setCursor(Dn.line+1,Hn.length+1),tn.focus();case"line-break":return tn.replaceSelection(`
-`),tn.focus();case"list-ul":return Hn===""?tn.replaceSelection("- "+Hn):tn.replaceSelection(me.map(gt=>gt===""?"":`- ${gt}`).join(` -`)),tn.focus();case"list-ol":return Hn===""?tn.replaceSelection("1. "+Hn):tn.replaceSelection(me.map((gt,Bt)=>gt===""?"":`${Bt+1}. ${gt}`).join(` -`)),tn.focus();case"add-null-ch":return Hn===""&&tn.setCursor(Dn.line,Dn.ch),tn.replaceSelection(Ut),tn.focus();case"add-signal":return Hn===""&&tn.setCursor(Dn.line,Dn.ch),tn.replaceSelection($n),tn.focus();case"add-multiple":return Hn===""&&tn.setCursor(Dn.line,Dn.ch),tn.replaceSelection(Un),tn.focus();case"inster-template-1":return Hn===""&&tn.setCursor(Dn.line,Dn.ch),tn.replaceSelection(ba),tn.focus();case"eraser":return tn.setValue(""),tn.focus();case"trigger-watch":return vn(!za),tn.focus();case"trigger-full-screen":return Na(!na),tn.focus();case _a:sr(_a);return;case ja:sr(ja);return;case Sn:sr(Sn);return;case St:sr(St);return;case"maths-latex":sr("maths-latex");return;case rn:sr(rn);return;case Ca:sr(Ca);return;default:throw new Error}},[tn,za,na]),Pn=(0,b.useCallback)((ia,Dn)=>{var Hn,me,gt,Bt,on,pt;switch(sr(""),_n){case _a:const{title:Oa,link:cr}=ia;return tn.replaceSelection(`[${Oa}](${cr})`),tn.focus();case ja:const{language:Fr,content:ma}=ia;return tn.replaceSelection(["```"+Fr,ma,"```"].join(` -`)),tn.focus();case"maths-latex":for(var Ln=atob(ia),yn=new Uint8Array(Ln.length),mn=0;mn{Si.id?tn.replaceSelection(`![,](/api/attachments/${Si.id}?type=${Si.content_type})`):(Si==null?void 0:Si.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":tn.replaceSelection("`$$"+ia+"$$`");break;case Sn:case St:case kt:const{src:va,alt:or}=ia,Er=Dn,Ko=(gt=(me=(Hn=Er==null?void 0:Er.name)==null?void 0:Hn.split("."))==null?void 0:me.pop)==null?void 0:gt.call(me);return((Bt=Er==null?void 0:Er.type)==null?void 0:Bt.indexOf("image"))>-1||!(Er!=null&&Er.type)?Er.align||Er.width?tn.replaceSelection(`

${or||

`):tn.replaceSelection(`${or||`):((on=Er==null?void 0:Er.type)==null?void 0:on.indexOf("video"))>-1?tn.replaceSelection(``):((pt=Er==null?void 0:Er.type)==null?void 0:pt.indexOf("pdf"))>-1?tn.replaceSelection(`${Er.name}`):Ze.includes(Ko)?tn.replaceSelection(`${Er.name}`):tn.replaceSelection(`[${Er.name}](${va})`),tn.focus();case Ca:const{row:li,col:Uo,align:oi}=ia;let vi=` -`;for(let Si=0;Si=0?"Cmd":"Ctrl",Rt={[fn+"-B"]:"bold",[fn+"-I"]:"italic"},Qn={[_a]:"\u6DFB\u52A0\u94FE\u63A5",[ja]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Sn]:"\u6DFB\u52A0\u56FE\u7247",[St]:"\u6DFB\u52A0\u753B\u56FE",[on]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ca]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Kn=({defaultValue:Je="",onChange:nt,width:Xe="100%",height:rn=400,miniToolbar:Cn=!1,isFocus:Nn=!1,watch:wa,insertTemp:Ea,mode:ta="markdown",id:ya="markdown-editor-id",showResizeBar:Xn=!1,noStorage:zt=!1,showNullButton:ka=!1,showNullProgramButton:pr=!1,hidetoolBar:ho=!1,fullScreen:qa=!1,onBlur:Ht,onCMBeforeChange:Qr,onFullScreen:Ua,className:Sr="",disablePaste:lr=!1,disabled:Gr=!1,disabledFill:Lr=!1,placeholder:no="",values:Mr="",extraUse:ca})=>{const[nn,gr]=(0,b.useState)(null),[ga,ur]=(0,b.useState)(Je),[za,vn]=(0,b.useState)(wa),[na,Na]=(0,b.useState)(qa),[_n,sr]=(0,b.useState)(""),[tr,Ar]=(0,b.useState)(0),[Ur,mr]=(0,b.useState)(rn),[Yo,Mo]=(0,b.useState)(!1),Ei=(0,b.useRef)((0,Aa.Z)()),xr=(0,b.useRef)(!1),Nr=(0,b.useRef)(),[Eo,Ja]=(0,b.useState)(0),[Hr,Yr]=(0,b.useState)(0),hr=(0,b.useRef)(),Kr=(0,b.useRef)(),xt=(0,b.useRef)(),Ft=(0,b.useRef)(),Et=()=>Br(void 0,null,function*(){var ia;const Dn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Ei.current}});(ia=Dn==null?void 0:Dn.attachments)!=null&&ia.length&&(console.log("cm:",nn,hr),Dn.attachments.map(Hn=>{Hn.content_type.indexOf("image")>-1?nn.replaceSelection(`![,](/api/attachments/${Hn.id}?type=${Hn.content_type})`):Hn.content_type.indexOf("video")>-1?nn.replaceSelection(``):Hn.content_type.indexOf("pdf")>-1?nn.replaceSelection(`${Hn.name}`):nn.replaceSelection(`[${Hn.name}](${ENV.API_SERVER}/api/attachments/${Hn.id}?type=${Hn.content_type})`)}))});(0,b.useEffect)(()=>{const ia=window.scrollY||window.pageYOffset;ur(Mr),nn==null||nn.setValue(Mr),window.scrollTo(0,ia)},[Mr]),(0,b.useEffect)(()=>{Ua==null||Ua(na)},[na]),(0,b.useEffect)(()=>{if(hr.current){let ia=function(Hn,me){var gt;if(lr){me.preventDefault();return}const Bt=me.clipboardData;if(Bt){const ln=Bt.types.toString(),pt=Bt.items;if(ln==="Files"||Bt.types.indexOf("Files")>-1){if(me.preventDefault(),ta=="stex")return;try{let Ln=pt[1];((gt=pt[0])==null?void 0:gt.kind)==="file"&&(Ln=pt[0]);const An=Ln.getAsFile(),mn=An.name.split(".").pop();(0,Te.I)(An,yn=>{var Oa,cr,Fr;yn.id?((Oa=An==null?void 0:An.type)==null?void 0:Oa.indexOf("image"))>-1?Dn.replaceSelection(``):((cr=An==null?void 0:An.type)==null?void 0:cr.indexOf("video"))>-1?Dn.replaceSelection(``):((Fr=An==null?void 0:An.type)==null?void 0:Fr.indexOf("pdf"))>-1?Dn.replaceSelection(`${An.name}`):Ze.includes(mn)?Dn.replaceSelection(`${An.name}`):Dn.replaceSelection(`[${An.name}](/api/attachments/${yn.id}?type=${yn.content_type})`):(yn==null?void 0:yn.status)===401&&(xa.ZP.warning((yn==null?void 0:yn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ln){xa.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Dn=we().fromTextArea(hr.current,{mode:ta,lineNumbers:!Cn,lineWrapping:!0,value:Je,autoCloseTags:!pr,autoCloseBrackets:!0});return Dn.on("keyup",function(Hn,me){me.keyCode===8&&(Hn.getValue()==""?Dn.setOption("placeholder",no):Dn.setOption("placeholder",null))}),Dn.on("keydown",function(Hn,me){if(me.keyCode===8){var gt=Za(Hn);gt&&me.preventDefault()}}),Nn&&Dn.focus(),Dn.on("paste",ia),Dn.on("dragleave",function(Hn,me){Kr.current.classList.remove("mouse-hover-md")}),Gr&&Dn.on("beforeChange",function(Hn,me){(me.origin==="paste"||me.origin==="+input")&&me.cancel()}),gr(Dn),()=>{Dn.off("paste",ia)}}},[]);const Mn=(0,b.useCallback)(()=>{if(Kr.current)try{}catch(ia){console.log(ia,"---- to set md editor body height")}},[Ur,Kr,na]);(0,b.useEffect)(()=>{function ia(){let Dn=new Be.Z(Hn=>{for(let me of Hn)(me.target.offsetHeight>0||me.target.offsetWidth>0)&&(Mn(),nn.setSize("100%","100%"),nn.refresh())});return Dn.observe(hr.current.parentElement),Dn}if(nn){const Dn=ia();return()=>{var Hn,me;(Hn=hr.current)!=null&&Hn.parentElement&&Dn.unobserve((me=hr.current)==null?void 0:me.parentElement)}}},[nn,Mn]),(0,b.useEffect)(()=>{if(nn){let ia=[];for(const[Dn,Hn]of Object.entries(Rt)){let me={[Dn]:()=>{rr(Hn)}};ia.push(me),nn.addKeyMap(me)}return Nr.current=setInterval(()=>{xr.current&&Et()},4e3),()=>{clearInterval(Nr.current);for(let Dn of ia)nn.removeKeyMap(Dn)}}},[nn]),(0,b.useEffect)(()=>{qa!==na&&Na(qa)},[qa]),(0,Ta.Z)(()=>{if(!zt&&tr>0){let ia=new Date().getTime(),Dn=window.sessionStorage.getItem(ya);ia>=tr+Oo&&(!Dn||Dn!==ga)&&(window.sessionStorage.setItem(ya,ga),Mo(!0))}},Oo),(0,b.useEffect)(()=>{vn(wa)},[nn,wa]),(0,b.useEffect)(()=>{nn&&Nn&&nn.focus()},[nn,Nn]),(0,b.useEffect)(()=>{if(za&&nn){let ia=function(Hn){let me=Hn.target;if(Ft.current){let gt=me.scrollTop/me.scrollHeight;Ft.current.scrollTop=Ft.current.scrollHeight*gt}};const Dn=nn.getScrollerElement();return Dn.addEventListener("scroll",ia),()=>{Dn.removeEventListener("scroll",ia)}}},[nn,za]),(0,b.useEffect)(()=>{if(nn&&Qr){let ia=function(Dn,Hn){Qr(Dn,Hn)};return nn.on("beforeChange",ia),()=>{nn.off("beforeChange",ia)}}},[nn,Qr]),(0,b.useEffect)(()=>{if(nn&&Ht){let ia=function(){Ht(nn.getValue())};return nn.on("blur",ia),()=>{nn.off("blur",ia)}}},[nn,Ht]);function Za(ia,Dn){var Hn=ia.getDoc(),me=Hn.getCursor(),gt=Hn.getLine(me.line),Bt=gt.charAt(me.ch-1),ln=gt.lastIndexOf("@\u2581@",me.ch),pt=gt.lastIndexOf("@\u2581\u2581@",me.ch),Ln=ln>pt?ln:pt,An=ln>pt?3:4;if(Un.indexOf(Bt)===-1)return null;if(console.log("change1:",Dn,ia,gt,me,Ln,ln,pt,Bt),Ln>=0&&me.ch-Ln<5){var mn=Ln+An;return Hn.replaceRange("",{line:me.line,ch:Ln},{line:me.line,ch:mn}),{line:me.line,ch:mn}}return null}(0,b.useEffect)(()=>{if(nn){let ia=function(Dn,Hn){const me=Dn.getValue();ur(me),Ar(new Date().getTime()),Dn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),nt&&(pr?nt(me,Bo(me)):nt(me))};return nn.on("change",ia),()=>{nn.off("change",ia)}}},[nn,nt]),(0,b.useEffect)(()=>{if(nn)if(Je==null)nn.setValue(""),ur("");else{const ia=window.scrollY||window.pageYOffset;Je!==nn.getValue()&&(nn.setValue(Je),ur(Je),nn.setCursor(Gr?1:nn.lineCount(),0),window.scrollTo(0,ia))}},[nn,Je]);const rr=(0,b.useCallback)(ia=>{const Dn=nn.getCursor(),Hn=nn.getSelection();let me=Hn.split(` +`);switch(ia){case"bold":return nn.replaceSelection("**"+Hn+"**"),Hn===""&&nn.setCursor(Dn.line,Dn.ch+2),nn.focus();case"italic":return nn.replaceSelection("*"+Hn+"*"),Hn===""&&nn.setCursor(Dn.line,Dn.ch+1),nn.focus();case"code":return nn.replaceSelection("`"+Hn+"`"),Hn===""&&nn.setCursor(Dn.line,Dn.ch+1),nn.focus();case"inline-latex":return sr("inline-latex"),nn.focus();case"latex":return nn.replaceSelection("```latex\n"+Hn+"\n```"),nn.setCursor(Dn.line+1,Hn.length+1),nn.focus();case"line-break":return nn.replaceSelection(`
+`),nn.focus();case"list-ul":return Hn===""?nn.replaceSelection("- "+Hn):nn.replaceSelection(me.map(gt=>gt===""?"":`- ${gt}`).join(` +`)),nn.focus();case"list-ol":return Hn===""?nn.replaceSelection("1. "+Hn):nn.replaceSelection(me.map((gt,Bt)=>gt===""?"":`${Bt+1}. ${gt}`).join(` +`)),nn.focus();case"add-null-ch":return Hn===""&&nn.setCursor(Dn.line,Dn.ch),nn.replaceSelection(Ut),nn.focus();case"add-signal":return Hn===""&&nn.setCursor(Dn.line,Dn.ch),nn.replaceSelection($n),nn.focus();case"add-multiple":return Hn===""&&nn.setCursor(Dn.line,Dn.ch),nn.replaceSelection(Un),nn.focus();case"inster-template-1":return Hn===""&&nn.setCursor(Dn.line,Dn.ch),nn.replaceSelection(ba),nn.focus();case"eraser":return nn.setValue(""),nn.focus();case"trigger-watch":return vn(!za),nn.focus();case"trigger-full-screen":return Na(!na),nn.focus();case _a:sr(_a);return;case ja:sr(ja);return;case Sn:sr(Sn);return;case St:sr(St);return;case"maths-latex":sr("maths-latex");return;case on:sr(on);return;case Ca:sr(Ca);return;default:throw new Error}},[nn,za,na]),Pn=(0,b.useCallback)((ia,Dn)=>{var Hn,me,gt,Bt,ln,pt;switch(sr(""),_n){case _a:const{title:Oa,link:cr}=ia;return nn.replaceSelection(`[${Oa}](${cr})`),nn.focus();case ja:const{language:Fr,content:ma}=ia;return nn.replaceSelection(["```"+Fr,ma,"```"].join(` +`)),nn.focus();case"maths-latex":for(var Ln=atob(ia),An=new Uint8Array(Ln.length),mn=0;mn{Si.id?nn.replaceSelection(`![,](/api/attachments/${Si.id}?type=${Si.content_type})`):(Si==null?void 0:Si.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":nn.replaceSelection("`$$"+ia+"$$`");break;case Sn:case St:case Tt:const{src:va,alt:or}=ia,Er=Dn,Ko=(gt=(me=(Hn=Er==null?void 0:Er.name)==null?void 0:Hn.split("."))==null?void 0:me.pop)==null?void 0:gt.call(me);return((Bt=Er==null?void 0:Er.type)==null?void 0:Bt.indexOf("image"))>-1||!(Er!=null&&Er.type)?Er.align||Er.width?nn.replaceSelection(`

${or||

`):nn.replaceSelection(`${or||`):((ln=Er==null?void 0:Er.type)==null?void 0:ln.indexOf("video"))>-1?nn.replaceSelection(``):((pt=Er==null?void 0:Er.type)==null?void 0:pt.indexOf("pdf"))>-1?nn.replaceSelection(`${Er.name}`):Ze.includes(Ko)?nn.replaceSelection(`${Er.name}`):nn.replaceSelection(`[${Er.name}](${va})`),nn.focus();case Ca:const{row:li,col:Uo,align:oi}=ia;let vi=` +`;for(let Si=0;Si{switch(_n){case _a:return b.createElement(Wt,{callback:Pn,onCancel:Xa});case ja:return b.createElement(Pt.Z,{callback:Pn,onCancel:Xa});case Sn:return b.createElement(Te.Z,{callback:Pn,onCancel:Xa});case rn:return b.createElement(ra,{callback:Pn,onCancel:Xa});case Ca:return b.createElement(jn,{callback:Pn,onCancel:Xa});case"maths-latex":return b.createElement(Zn,{showSaveButton:!0,callback:Pn});case"inline-latex":return b.createElement(da.Z,{showSaveButton:!0,callback:Pn});default:return null}},[_n]);function Xa(){sr("")}(0,b.useEffect)(()=>{if(xt.current){let ia=function(on){gt=!0,Bt=on.pageY},Dn=function(){gt=!1},Hn=function(on){if(gt){let pt=on.pageY-Bt;pt<0&&(pt=0),pt>300&&(pt=300);let Ln=an+pt+"px";mr(Ln)}},me=xt.current,gt=!1,Bt=0;return me.addEventListener("mousedown",ia),document.addEventListener("mousemove",Hn),document.addEventListener("mouseup",Dn),()=>{me.removeEventListener("mousedown",ia),document.removeEventListener("mousemove",Hn),document.removeEventListener("mouseup",Dn)}}},[tn,xt]),(0,b.useEffect)(()=>{mr(an)},[an]);const ao=Ot(Xe),dr=Ot(Ur),Ga={width:ao,height:dr},wr=(0,b.useMemo)(()=>{if(tr){let ia=new Date(tr),Dn=ia.getHours(),Hn=ia.getMinutes(),me=ia.getSeconds();return Dn=Dn<10?"0"+Dn:Dn,Hn=Hn<10?"0"+Hn:Hn,me=me<10?"0"+me:me,`${Dn}:${Hn}:${me}`}return 0},[tr]),Bo=ia=>{const Dn=[];if(pr){let Hn=-1;ia=ia.replace(/(@▁▁@|@▁@)/g,function(me,gt,Bt){Dn.push({multiLine:me!==$n})})}return Dn};function ri(){window.sessionStorage.removeItem(ya),Mo(!1),Ar(0)}function Rr(){Mo(!1),Ar(0),tn.setValue(window.sessionStorage.getItem(ya))}(0,b.useEffect)(()=>{Qn[_n]&&_n!==St&&_n!==rn&&setTimeout(()=>{const ia=document.getElementsByClassName("markdown-popup-form")[0],Dn=window.innerWidth/2-ia.offsetWidth/2,Hn=window.innerHeight/2-ia.offsetHeight/2;Ja(Dn),Yr(Hn)},0)},[_n]);const So=ia=>{ia.preventDefault();const Dn=ia.clientX-Eo,Hn=ia.clientY-Hr;document.body.onmousemove=me=>{let gt=me.clientX-Dn,Bt=me.clientY-Hn;const on=document.getElementsByClassName("markdown-popup-form")[0],pt=window.innerWidth-on.offsetWidth,Ln=window.innerHeight-on.offsetHeight;gt=Math.max(0,Math.min(gt,pt)),Bt=Math.max(0,Math.min(Bt,Ln)),jo(me.clientX,me.clientY,Dn,Hn)&&(Ja(gt),Yr(Bt))},document.body.onmouseup=function(){document.body.onmousemove=null}},jo=(ia,Dn,Hn,me)=>{const gt=document.body.clientHeight,Bt=document.body.clientWidth;return ia<20&&Hn>ia||ia>Bt-20&&HnDn||Dn>gt-20&&mest in Le?ze(Le,st,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Le[st]=Me,z=(Le,st)=>{for(var Me in st||(st={}))a.call(st,Me)&&y(Le,Me,st[Me]);if(E)for(var Me of E(st))x.call(st,Me)&&y(Le,Me,st[Me]);return Le},te=(Le,st)=>Ue(Le,le(st));const{useForm:oe}=b.default,ue={width:280,marginRight:10},ie={labelCol:{span:5},wrapperCol:{span:19}};var Ee=({callback:Le,onCancel:st})=>{const[Me]=oe();let Ye=(0,Oe.useRef)();function Ge(vt){Ye.current.width=Me.getFieldValue("width"),Ye.current.align=Me.getFieldValue("align"),Le(vt,Ye.current)}function $e(vt,ct){if(vt.status===-1){he.ZP.error(vt.message);return}Me.setFieldsValue({src:`/api/attachments/${vt.id}`,type:ct.type})}function be(vt){let ct=vt.target.files[0];Ye.current=ct,Qe(ct,$e)}return ke.createElement(b.default,te(z({form:Me},ie),{className:"upload-image-panel",onFinish:Ge,style:{width:470,overflow:"hidden"}}),ke.createElement(b.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ke.createElement("div",{className:"flex-container"},ke.createElement(b.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ke.createElement(we.default,{style:ue})),ke.createElement(Fe,{onFileChange:be}))),ke.createElement(b.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ke.createElement(we.default,{style:{width:264}})),ke.createElement(b.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ke.createElement(xe.Z,null,ke.createElement(b.default.Item,{name:"width",style:{margin:0}},ke.createElement(Re.Z,{style:{width:264}})),ke.createElement("span",{className:"ml8"},"%"))),ke.createElement(b.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ke.createElement(We.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ke.createElement("aside",null,ke.createElement(b.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ke.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ke.createElement(Be.ZP,{type:"default",onClick:st},"\u53D6\u6D88"))))};function Fe({onFileChange:Le}){return ke.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ke.createElement("input",{type:"file",onChange:Le}))}function Qe(Le,st){if(!Le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,De.bg)())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Me=new FormData;Me.append("editormd-image-file",Le),Me.append("file_param_name","editormd-image-file"),Me.append("byxhr","true");var Ye=new window.XMLHttpRequest;Ye.withCredentials=!0,Ye.addEventListener("load",function(Ge){st(JSON.parse(Ge.target.responseText),Le)},!1),Ye.addEventListener("error",function(Ge){console.error(Ge)},!1),Ye.open("POST",`${Ke.KI}/api/attachments.json`),Ye.send(Me)}},61569:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return we}});var b=ae(59301),he=ae(4676);class we extends b.Component{constructor(Re){super(Re);const We=window.document;this.node=We.createElement("div"),We.body.appendChild(this.node)}render(){const{children:Re}=this.props;return(0,he.createPortal)(Re,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23734:function(it,jt,ae){"use strict";ae.d(jt,{i:function(){return ie},Z:function(){return Fe}});var b={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},he=ae(71418),we=ae(6848),xe=ae(93948),Re=ae(92310),We=ae.n(Re),Be=ae(22566),Ke=ae(21692),Oe=ae(16624),De=ae(79005),ke=ae(20345),ze=ae(77882),Ue=ae(31081),le=ae(75309),E=ae(71979),a=ae(47558),x=ae(42922),y=ae(66832),z=ae(96593),te=ae(19664),oe=ae(91833),ue=ae(59301);const ie=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:De,swimg:ke},{name:"101\u8BA1\u5212",ptimg:ze,swimg:Ue},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:le,swimg:E},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:a,swimg:x},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:y,swimg:z},{name:"\u519B\u961F\u4E00\u6D41",ptimg:te,swimg:oe}];var Fe=({className:Qe,dataSource:Le=[],col:st=4,right:Me,bottom:Ye=23,precision:Ge=0,wrapWidth:$e=1200,trackEventItems:be,loading:vt,onRemove:ct=()=>{},isCurrent:Ft=!0,showAlias:At=!1,showProgress:En=!1})=>{const Bn=Math.floor(($e-(st-1)*Me)/st),Wt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(Pt=>(window.ENV==="build"&&(Pt.ptimg=`/react/build${Pt.ptimg}`,Pt.swimg=`/react/build${Pt.swimg}`),Pt));return ue.createElement(he.Z,{spinning:vt},ue.createElement("div",{className:We()(b.list,Qe)},!!(Le!=null&&Le.length)&&(Le==null?void 0:Le.map((Pt,Te)=>{var et,Yt,xn,Lt,_t,Ce;const{name:ot,id:nn,identifier:nt,featured:ht,school_name:Jn,image_url:dn,excellent:Qt,is_plan:Rt}=Pt;return ue.createElement("div",{key:nn,className:Ft&&En?b.wrapisCurrent:b.wrap,style:{width:Bn,marginRight:(1+Te)%st===0?0:Me+Ge,marginBottom:Ye}},ue.createElement("a",{className:b.li,onClick:Wn=>{Wn.preventDefault(),Wn.stopPropagation(),be&&(0,Be.L9)([be]),(0,Be.xg)(`/paths/${nt}`)}},ue.createElement("div",{className:b.img},ue.createElement("img",{className:b.cover,src:`${dn}`}),Ft&&(0,Oe.bg)()&&(Pt==null?void 0:Pt.studying)&&ue.createElement("div",{className:`${b.movebq} user-path-items`,onClick:Wn=>{Wn.stopPropagation(),ct(Pt)}},ue.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ue.createElement("span",{className:"c-red"},"\u79FB\u9664")),(et=Pt==null?void 0:Pt.subject_tags)==null?void 0:et.map((Wn,ra)=>{var en,Ba;if(ra===0){const Fa=(en=Wt.find(jn=>jn.name==Wn))==null?void 0:en.swimg;return ue.createElement("img",{className:b.sign,src:Fa,style:{left:"-4px"}})}const Ka=(Ba=Wt.find(Fa=>Fa.name==Wn))==null?void 0:Ba.ptimg;return ue.createElement("img",{className:b.sign,src:Ka,style:{left:`${48+52*(ra-1)+2*ra}px`}})}),ue.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Pt==null?void 0:Pt.excellent)&&ue.createElement("div",{className:b.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ue.createElement("div",{className:b.name},ue.createElement(we.Z,{title:At&&(Pt!=null&&Pt.excellent_alias_name)?ue.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ot}`,ue.createElement("br",null),ue.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Pt==null?void 0:Pt.excellent_alias_name}`)):ot},ue.createElement("span",{className:b.e},At&&(Pt==null?void 0:Pt.excellent_alias_name)||ot))),Ft&&En&&((Yt=Pt==null?void 0:Pt.progress)==null?void 0:Yt.all_score)!=0&&ue.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ue.createElement(xe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((xn=Pt==null?void 0:Pt.progress)==null?void 0:xn.my_score)/((Lt=Pt==null?void 0:Pt.progress)==null?void 0:Lt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(_t=Pt==null?void 0:Pt.progress)==null?void 0:_t.my_score,"/",(Ce=Pt==null?void 0:Pt.progress)==null?void 0:Ce.all_score),(!Ft||!En)&&ue.createElement("div",{className:b.tags},ue.createElement("div",null,ue.createElement(we.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ue.createElement("span",null,ue.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ue.createElement("span",null,Pt.stages_count))),ue.createElement(we.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ue.createElement("span",null,ue.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ue.createElement("span",null,Pt.members_count)))))))})),!Le.length&&ue.createElement(Ke.Z,null)))}},2751:function(it,jt,ae){"use strict";ae.d(jt,{jL:function(){return Re},w9:function(){return oa},dN:function(){return xa},QD:function(){return ta},cQ:function(){return Lt.Z},Oz:function(){return Fa},op:function(){return Xe},O5:function(){return ga},_b:function(){return ho},t7:function(){return Le},Gi:function(){return Da},YG:function(){return St},kT:function(){return Ca},qp:function(){return x},K3:function(){return te},vr:function(){return zt},qE:function(){return Nn},Je:function(){return Ye},wb:function(){return Te},lB:function(){return xn},cq:function(){return Ut},tp:function(){return ie},Si:function(){return vn},k8:function(){return Kr},Du:function(){return mr}});var b=ae(59301),he={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},we="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFMJwZ5URFh/cZoGgHQKODeSsaUEiA5iSy6IqYRnfmPq66YojPILbYbqpGXuhRhRrFPMSUaP+6OTAtuPff8ze97xceK8KuJGG/oBl4XsaKMTTsiwDKVXZjm1qsgR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:Et=346,title:Mn,sunTitle:Za,bannerExtraContent:rr})=>b.createElement("div",{className:he.banner},b.createElement("div",{className:he.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,Mn),b.createElement("span",null,Za)),xt.length>0&&b.createElement("div",{className:he.btns},xt.map((Pn,$a)=>b.createElement("div",{key:$a,onClick:Pn.click},Pn.name,Pn.sign?b.createElement("img",{src:we,width:39}):null))),rr),yt&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:yt,width:Et}))),We={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Be=ae(92310),Ke=ae.n(Be),Oe=ae(89392),De=Object.defineProperty,ke=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,le=(xt,yt,Et)=>yt in xt?De(xt,yt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):xt[yt]=Et,E=(xt,yt)=>{for(var Et in yt||(yt={}))ze.call(yt,Et)&&le(xt,Et,yt[Et]);if(ke)for(var Et of ke(yt))Ue.call(yt,Et)&&le(xt,Et,yt[Et]);return xt},x=({dataSource:xt=[],value:yt,onChange:Et,onTitleChange:Mn,className:Za,title:rr,titleWidth:Pn=41,style:$a={},fontColor:Xa="#6A7283",showCount:ao,classNameActive:dr,styleItem:Ga={}})=>{const[wr,Bo]=(0,b.useState)(0),[ri,Rr]=(0,b.useState)(!1),So=(0,b.useRef)(null),jo=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var ia;xt.length!==0&&(((ia=So==null?void 0:So.current)==null?void 0:ia.clientHeight)>97?Bo(1):Bo(0)),xt.length===0&&Bo(0),Rr(!1)},[xt]),b.createElement("div",{className:Ke()(We.row,Za),style:$a},b.createElement("div",{onClick:(0,Oe.throttle)(()=>Mn==null?void 0:Mn(),2e3),style:{width:Pn,marginTop:ri?12:4},className:`${We.title} ${Mn?"current":""}`},rr),b.createElement("div",{className:ri?`${We.tagsWrap} ${We.tagsBorderWrap}`:We.tagsWrap},b.createElement("div",{className:We.bar,ref:jo,style:wr>0?{height:wr===1?97:"auto",overflow:wr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:We.tag,ref:So},xt==null?void 0:xt.map(ia=>b.createElement("span",{onClick:()=>Et(ia.id),key:ia.id,style:E(E({color:Xa},Ga),(ia==null?void 0:ia.style)||{}),className:yt===ia.id?Ke()(dr||We.active,ia.classNameActive):""},b.createElement("span",{title:ia.name,className:We.name},ia.name),!!ao&&b.createElement("span",{className:We.num},ia.count))))),!!wr&&b.createElement(b.Fragment,null,wr===1?b.createElement("div",{onClick:()=>{var ia;Bo(2),((ia=So==null?void 0:So.current)==null?void 0:ia.clientHeight)>245?Rr(!0):Rr(!1)},className:We.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{jo.current.scrollTop=0,Bo(1),Rr(!1)},className:We.action},"\u6536\u8D77",b.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},y={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},te=({dataSource:xt=[],value:yt,onChange:Et,onTitleChange:Mn,className:Za,title:rr,titleWidth:Pn=41,style:$a={},fontColor:Xa="#6A7283",showCount:ao,expand:dr=!0})=>{const[Ga,wr]=(0,b.useState)(0),[Bo,ri]=(0,b.useState)(!1),Rr=(0,b.useRef)(null),So=(0,b.useRef)(null),[jo,ia]=(0,b.useState)(dr);return b.createElement("div",{className:Ke()(y.row,Za),style:$a},b.createElement("div",{className:"flex item-center justify-between"},b.createElement("div",{onClick:(0,Oe.throttle)(()=>Mn==null?void 0:Mn(),2e3),style:{width:Pn,marginTop:Bo?12:4},className:`${y.title} ${Mn?"current":""}`},rr),b.createElement("i",{className:`iconfont ${jo?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:jo?8:10},onClick:()=>ia(!jo)})),jo&&b.createElement("div",{className:Bo?`${y.tagsWrap} ${y.tagsBorderWrap}`:y.tagsWrap},b.createElement("div",{className:y.fenge}),b.createElement("div",{className:y.bar,ref:So},b.createElement("div",{className:y.tag,ref:Rr},xt==null?void 0:xt.map(Dn=>b.createElement("span",{onClick:()=>Et(Dn.id),key:Dn.id,style:{color:Xa},className:yt===Dn.id?y.active:""},b.createElement("span",{title:Dn.name,className:y.name},Dn.name),!!ao&&b.createElement("span",{className:y.num},Dn.count)))))))},oe={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},ie=({dataSource:xt=[],value:yt,onChange:Et,className:Mn,style:Za={}})=>b.createElement("div",{style:Za,className:Ke()(oe.tabs,Mn)},xt.map(rr=>b.createElement("span",{onClick:()=>Et(rr.id),className:yt===rr.id?oe.active:"",key:rr.id},rr.name))),Ee={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Fe=ae(92832),Le=({dataSource:xt=[],value:yt="",onChange:Et,onInputChange:Mn=()=>{},className:Za,style:rr={},placeholder:Pn,allowClear:$a=!1})=>{var Xa;const[ao,dr]=(0,b.useState)(""),[Ga,wr]=(0,b.useState)("");(0,b.useEffect)(()=>{var Rr;let So=yt;(Rr=JSON.stringify(yt))!=null&&Rr.includes("{")&&(dr(yt.id),So=yt.value||"");try{wr(decodeURIComponent(So||""))}catch(jo){wr(decodeURIComponent(So||""))}},[yt]);const Bo=()=>{Et(encodeURIComponent(Ga),ao||null)},ri=Rr=>{Rr!==ao&&(dr(Rr),Et(encodeURIComponent(Ga),Rr))};return b.createElement("div",{className:Ke()(Ee.input,Za),style:rr},!!xt.length&&b.createElement("div",{className:Ee.dropdown},b.createElement("div",{className:Ee.text},(Xa=xt.find(Rr=>Rr.id===ao))==null?void 0:Xa.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:Ee.b1}),b.createElement("b",{className:Ee.b2})),b.createElement("div",{className:Ee.menu},xt.map((Rr,So)=>b.createElement("div",{key:So,onClick:()=>ri(Rr.id)},Rr.name)))),b.createElement(Fe.default,{onPressEnter:Bo,value:Ga,onChange:Rr=>{wr(Rr.target.value),Mn(encodeURIComponent(Rr.target.value),ao||null)},bordered:!1,placeholder:Pn}),b.createElement("i",{onClick:Bo,className:"iconfont icon-sousuo9 font14 pl10 current"}))},st={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Ye=({value:xt,onChange:yt,className:Et,total:Mn,pageSize:Za,style:rr={}})=>{const Pn=xt<2,$a=xt>=Math.ceil(Mn/Za);return Mn<=Za?b.createElement(b.Fragment,null):b.createElement("div",{className:Ke()(st.quickPager,Et),style:rr},b.createElement("div",{onClick:()=>{Pn||yt(xt-1,"prev")},className:Pn?st.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{$a||yt(xt+1,"next")},className:$a?st.disabled:""},"\u4E0B\u4E00\u9875"))},Ge={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},$e=ae(71418),be=ae(6848),vt=ae(13570),ct=ae(11662),Ft=ae(22566),At=ae(96908),En=ae(57177),Bn=ae(81378),Wt=ae(21692),Te=({className:xt,dataSource:yt=[],col:Et=4,right:Mn,bottom:Za=23,precision:rr=0,wrapWidth:Pn=1200,trackEventItems:$a,loading:Xa})=>{const ao=Math.floor((Pn-(Et-1)*Mn)/Et);return b.createElement($e.Z,{spinning:Xa},b.createElement("div",{className:Ke()(Ge.list,xt)},!!yt.length&&yt.map((dr,Ga)=>{const{name:wr,id:Bo,identifier:ri,power:Rr,cover_image_id:So,pic:jo}=dr;return b.createElement("div",{className:Ge.wrap,key:Bo,style:{width:ao,marginRight:(1+Ga)%Et===0?0:Mn+rr,marginBottom:Za}},b.createElement("a",{target:"_blank",href:`/shixuns/${ri}/challenges`,className:Ge.li,onClick:ia=>{ia.preventDefault(),$a&&(0,Ft.L9)([$a]),Rr&&(0,Ft.xg)(`/shixuns/${ri}/challenges`)}},b.createElement("div",{className:Ge.img},b.createElement("img",{className:Ge.cover,src:`${jo}`}),dr.is_jupyter&&b.createElement("img",{className:Ge.sign,src:At}),dr.is_jupyter_lab&&b.createElement("img",{className:Ge.sign,src:En}),dr.is_unity_3d&&b.createElement("img",{className:Ge.sign,src:Bn})),b.createElement("div",{className:Ge.name},b.createElement(be.Z,{title:wr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:Ge.e},wr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{className:Ge.tags},b.createElement(be.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,dr.challenges_count))),!!dr.myshixuns_count&&b.createElement(be.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),b.createElement("span",null,dr.myshixuns_count))),b.createElement(be.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,dr.level))),b.createElement("div",{className:Ge.rate},b.createElement(vt.Z,{allowHalf:!0,disabled:!0,defaultValue:dr.score_info}),b.createElement("span",null,"\xA0",dr.score_info?`${dr.score_info}\u5206`:"5\u5206")))),!Rr&&b.createElement("div",{className:Ge.lockWrap},b.createElement("img",{src:`${ct.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!yt.length&&b.createElement(Wt.Z,null)))},et={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},xn=({className:xt,dataSource:yt=[],col:Et=4,right:Mn,bottom:Za=23,precision:rr=0,wrapWidth:Pn=1200,wrapClassName:$a,trackEventItems:Xa,loading:ao})=>{const dr=Math.floor((Pn-(Et-1)*Mn)/Et);return b.createElement($e.Z,{spinning:ao},b.createElement("div",{className:Ke()(et.list,xt)},!!yt.length&&yt.map((Ga,wr)=>{const{name:Bo,id:ri,identifier:Rr,power:So,cover_image_id:jo,pic:ia}=Ga;return b.createElement("div",{className:Ke()(et.wrap,$a),key:ri,style:{width:dr,marginRight:(1+wr)%Et===0?0:Mn+rr,marginBottom:Za}},b.createElement("a",{target:"_blank",href:`/shixuns/${Rr}/challenges`,className:et.li,onClick:Dn=>{Dn.preventDefault(),Xa&&(0,Ft.L9)([Xa]),So&&(0,Ft.xg)(`/shixuns/${Rr}/challenges`)}},b.createElement("img",{src:ae(47621),className:et.titleBg}),b.createElement("div",{className:et.name},b.createElement(be.Z,{title:Bo||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:et.e},Bo||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{style:{padding:"14px",paddingBottom:0}},b.createElement("div",{className:et.img},b.createElement("img",{className:et.cover,src:jo?`${ct.Z.API_SERVER}/api/attachments/${jo}`:`${ct.Z.IMG_SERVER+ia}`}),Ga.is_jupyter&&b.createElement("div",{className:et.bq},"Jupyter"),Ga.is_jupyter_lab&&b.createElement("div",{className:et.bq},"JupyterLab"),Ga.is_unity_3d&&b.createElement("div",{className:et.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),b.createElement("div",{className:"mt20 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:et.text},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:et.value},Ga.myshixuns_count)),b.createElement("div",null,b.createElement("span",{className:et.text},"\u56F0\u96BE\u7B49\u7EA7"),b.createElement("span",{className:et.value},Ga.level))),b.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:et.text},"\u5173\u5361\u6570"),b.createElement("span",{className:et.value},Ga.challenges_count)),b.createElement("div",{className:et.rate},b.createElement(vt.Z,{allowHalf:!0,disabled:!0,defaultValue:Ga.score_info}),b.createElement("span",{className:et.value,style:{color:"#FF9C00"}},"\xA0",Ga.score_info?`${Ga.score_info}\u5206`:"5\u5206"))))),!So&&b.createElement("div",{className:et.lockWrap},b.createElement("img",{src:`${ct.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!yt.length&&b.createElement(Wt.Z,null)))},Lt=ae(23734),_t={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},Ce=ae(79005),ot=ae(20345),nn=ae(77882),nt=ae(31081),ht=ae(75309),Jn=ae(71979),dn=ae(47558),Qt=ae(42922),Rt=ae(66832),Wn=ae(96593),ra=ae(19664),en=ae(91833);const Ba=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ce,swimg:ot},{name:"101\u8BA1\u5212",ptimg:nn,swimg:nt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:ht,swimg:Jn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:dn,swimg:Qt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Rt,swimg:Wn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:ra,swimg:en}];var Fa=({className:xt,dataSource:yt=[],col:Et=4,right:Mn,bottom:Za=23,precision:rr=0,wrapWidth:Pn=1200,trackEventItems:$a,loading:Xa,wrapClassName:ao,imgClassName:dr,isArrow:Ga=!1})=>{const wr=Math.floor((Pn-(Et-1)*Mn)/Et),[Bo,ri]=(0,b.useState)(),[Rr,So]=(0,b.useState)(),jo=Dn=>ri(Dn),ia=()=>ri(-1);return b.createElement($e.Z,{spinning:Xa},b.createElement("div",{className:Ke()(_t.list,xt)},!!(yt!=null&&yt.length)&&(yt==null?void 0:yt.map((Dn,Hn)=>{var me;const{name:gt,id:Bt,identifier:on,featured:pt,school_name:Ln,image_url:yn,excellent:mn,is_plan:Fn}=Dn;return b.createElement("div",{key:Bt,className:Ke()(_t.wrap,ao),style:{width:wr,marginRight:(1+Hn)%Et===0?0:Mn+rr,marginBottom:Za}},b.createElement("a",{target:"_blank",href:`/paths/${on}`,className:_t.li,onClick:Oa=>{Oa.preventDefault(),$a&&(0,Ft.L9)([$a]),(0,Ft.xg)(`/paths/${on}`)}},b.createElement("img",{src:ae(39057),className:_t.titleBg}),b.createElement("div",{className:_t.name},b.createElement(be.Z,{title:gt},b.createElement("span",{className:_t.e,style:{color:Ga&&Bo===Hn?"#145DFF":"#000000"},onMouseEnter:()=>{jo(Hn)},onMouseLeave:ia},gt))),b.createElement("div",{style:{padding:"14px",paddingBottom:0}},b.createElement("div",{className:Ke()(_t.img,dr)},b.createElement("img",{className:_t.cover,src:`${ct.Z.IMG_SERVER+yn}`}),(me=Dn==null?void 0:Dn.subject_tags)==null?void 0:me.map((Oa,cr)=>{var Fr,ma;if(cr===0){const or=(Fr=Ba.find(Er=>Er.name==Oa))==null?void 0:Fr.swimg;return b.createElement("img",{className:_t.sign,src:or,style:{left:"-4px"}})}const va=(ma=Ba.find(or=>or.name==Oa))==null?void 0:ma.ptimg;return b.createElement("img",{className:_t.sign,src:va,style:{left:`${48+52*(cr-1)+2*cr}px`}})}),b.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(Dn==null?void 0:Dn.excellent)&&b.createElement("div",{className:_t.bq},"\u5F00\u653E\u8BFE\u7A0B"))),b.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:_t.text},"\u7AE0\u8282\u6570"),b.createElement("span",{className:_t.value},Dn.stages_count)),b.createElement("div",null,b.createElement("span",{className:_t.text},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:_t.value},Dn.members_count))))))})),!yt.length&&b.createElement(Wt.Z,null)))},jn={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Ha="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8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HxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Pa=ae(59301),oa=({className:xt,dataSource:yt=[],col:Et=4,right:Mn,bottom:Za=23,precision:rr=0,wrapWidth:Pn=1200,trackEventItems:$a,loading:Xa})=>{const ao=Math.floor((Pn-(Et-1)*Mn)/Et);return Pa.createElement($e.Z,{spinning:Xa},Pa.createElement("div",{className:Ke()(jn.list,xt)},!!yt.length&&yt.map((dr,Ga)=>{const{subject_identifier:wr,id:Bo,identifier:ri,power:Rr}=dr,So=dr.is_public!=0&&dr.is_public;return Pa.createElement("div",{className:jn.wrap,key:Bo,style:{width:ao,marginRight:(1+Ga)%Et===0?0:Mn+rr,marginBottom:Za}},Pa.createElement("a",{className:jn.li,onClick:jo=>{jo.preventDefault(),$a&&(0,Ft.L9)([$a]),(0,Ft.xg)(dr.first_category_url)}},Pa.createElement("div",{className:jn.top},Pa.createElement(be.Z,{title:dr.name},Pa.createElement("div",{className:jn.name},dr.name)),Pa.createElement("img",{className:jn.img,src:ct.Z.IMG_SERVER+"/images/"+dr.avatar_url}),Pa.createElement("div",{className:jn.text,title:dr.creator},dr.creator),wr&&Pa.createElement("div",{className:jn.btns},Pa.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Pa.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),So&&Pa.createElement("div",{className:jn.sign},"\u516C\u5F00")),Pa.createElement("div",{className:jn.bottom},dr.visits>0&&Pa.createElement(be.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Pa.createElement("span",null,Pa.createElement("i",{className:"iconfont icon-liulanyan"}),Pa.createElement("span",null,dr.visits))),dr.course_members_count>0&&Pa.createElement(be.Z,{title:"\u6210\u5458",placement:"bottom"},Pa.createElement("span",null,Pa.createElement("i",{className:"iconfont icon-chengyuan"}),dr.course_members_count)),dr.tasks_count>0&&Pa.createElement(be.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Pa.createElement("span",null,Pa.createElement("i",{className:"iconfont icon-zuoye"}),dr.tasks_count)),dr.is_end?Pa.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Pa.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!dr.is_accessible&&Pa.createElement("div",{className:jn.lockWrap},Pa.createElement("img",{src:`${ct.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Pa.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!yt.length&&Pa.createElement(Wt.Z,null)))},Zn={flex_box_center:"flex_box_center___PuarE",flex_space_between:"flex_space_between___q4lAa",flex_box_vertical_center:"flex_box_vertical_center___wsb8w",flex_box_center_end:"flex_box_center_end___H781P",flex_box_column:"flex_box_column___bHK1y",list:"list___e2XDo",wrap:"wrap___cz7sh",lockWrap:"lockWrap___EPuRr",creator:"creator___Y6Xjp",img:"img___kSEud",text:"text___GIlhY",top:"top___K4GCD",sign:"sign___KCjEP",name:"name___z3U4d",middle:"middle___LeUM5",row:"row___VBzfJ",value:"value___qigWu",btns:"btns___kGysm",bottom:"bottom___yPYd5",warpStyle:"warpStyle___pH3uC"},da="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vv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i3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",xa=({className:xt,dataSource:yt=[],col:Et=4,right:Mn,bottom:Za=23,precision:rr=0,wrapWidth:Pn=1200,wrapClassName:$a,trackEventItems:Xa,loading:ao})=>{const dr=Math.floor((Pn-(Et-1)*Mn)/Et);return b.createElement($e.Z,{spinning:ao},b.createElement("div",{className:Ke()(Zn.list,xt)},!!yt.length&&yt.map((Ga,wr)=>{const{subject_identifier:Bo,id:ri,identifier:Rr,power:So}=Ga,jo=Ga.is_public!=0&&Ga.is_public;return b.createElement("div",{className:Ke()(`${Zn.wrap} ${Ga.is_accessible?"":Zn.warpStyle}`,$a),key:ri,style:{width:dr,marginRight:(1+wr)%Et===0?0:Mn+rr,marginBottom:Za}},b.createElement("a",{className:Zn.li,onClick:ia=>{ia.preventDefault(),Xa&&(0,Ft.L9)([Xa]),(0,Ft.xg)(Ga.first_category_url)}},b.createElement("div",{className:Zn.creator},b.createElement("img",{className:Zn.img,src:ct.Z.IMG_SERVER+"/images/"+Ga.avatar_url}),b.createElement("div",{className:Zn.text,title:Ga.creator},Ga.creator)),b.createElement("div",{className:Zn.top},b.createElement(be.Z,{title:Ga.name},b.createElement("div",{className:Zn.name},Ga.name)),jo&&b.createElement("div",{className:Zn.sign},"\u516C\u5F00")),b.createElement("div",{className:Zn.middle},b.createElement("div",{className:Zn.row,style:{marginBottom:6}},b.createElement("div",null,b.createElement("span",{className:Zn.text},"\u8BBF\u95EE\u91CF"),b.createElement("span",{className:Zn.value},(Ga==null?void 0:Ga.visits)||0)),b.createElement("div",null,b.createElement("span",{className:Zn.text},"\u6210\u5458"),b.createElement("span",{className:Zn.value},(Ga==null?void 0:Ga.course_members_count)||0))),b.createElement("div",{className:Zn.row},b.createElement("div",null,b.createElement("span",{className:Zn.text,style:{width:42}},"\u4F5C",b.createElement("span",{style:{marginLeft:14}},"\u4E1A")),b.createElement("span",{className:Zn.value},(Ga==null?void 0:Ga.tasks_count)||0)),b.createElement("div",null,b.createElement("span",{className:Zn.text},"\u72B6\u6001"),Ga.is_end?b.createElement("span",{className:Zn.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):b.createElement("span",{className:Zn.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),Bo&&b.createElement("div",{className:Zn.btns},b.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),b.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!Ga.is_accessible&&b.createElement("div",{className:Zn.lockWrap},b.createElement("img",{src:`${ct.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!yt.length&&b.createElement(Wt.Z,null)))},_a={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Sn=ae(90115),St=({dataSource:xt=[],value:yt,onChange:Et,className:Mn,style:Za={},tabBarExtraContent:rr})=>b.createElement("div",{className:Ke()(_a.tabs,Mn),style:Za},b.createElement("div",{className:_a.tabsWrap},xt.map((Pn,$a)=>b.createElement("aside",{className:_a.tab,onClick:()=>{Et(Pn.id),Pn.link&&Sn.history.push(Pn.link)},key:$a},b.createElement("div",{className:yt===Pn.id?_a.active:""},Pn.name),(Pn==null?void 0:Pn.resetCount)==null&&(Pn==null?void 0:Pn.total)!==void 0&&b.createElement("span",null,"\uFF08",Pn==null?void 0:Pn.total,"\uFF09"),(Pn==null?void 0:Pn.resetCount)!==void 0&&(Pn==null?void 0:Pn.total)!==void 0&&b.createElement(be.Z,{title:(Pn==null?void 0:Pn.tip)!=null?Pn==null?void 0:Pn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},Pn==null?void 0:Pn.resetCount),"/",b.createElement("span",null,Pn==null?void 0:Pn.total),"\uFF09"))))),b.createElement("div",{className:_a.tabBar},rr)),kt={flex_box_center:"flex_box_center___itkVp",flex_space_between:"flex_space_between___F4yZx",flex_box_vertical_center:"flex_box_vertical_center___ko4cu",flex_box_center_end:"flex_box_center_end___cCBYR",flex_box_column:"flex_box_column___Mpq6K",tabs:"tabs___qRAhL",tabsWrap:"tabsWrap___CGRvS",tab:"tab___eYne_",active:"active___swSx6"},Ca=({dataSource:xt=[],value:yt,onChange:Et,className:Mn,style:Za={},tabBarExtraContent:rr})=>b.createElement("div",{className:Ke()(kt.tabs,Mn),style:Za},b.createElement("div",{className:kt.tabsWrap},xt.map((Pn,$a)=>b.createElement("aside",{className:kt.tab,onClick:()=>{Et(Pn.id),Pn.link&&Sn.history.push(Pn.link)},key:$a},b.createElement("div",{className:yt===Pn.id?kt.active:""},Pn.name),(Pn==null?void 0:Pn.resetCount)==null&&(Pn==null?void 0:Pn.total)!==void 0&&b.createElement("span",null,"\uFF08",Pn==null?void 0:Pn.total,"\uFF09"),(Pn==null?void 0:Pn.resetCount)!==void 0&&(Pn==null?void 0:Pn.total)!==void 0&&b.createElement(be.Z,{title:(Pn==null?void 0:Pn.tip)!=null?Pn==null?void 0:Pn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},Pn==null?void 0:Pn.resetCount),"/",b.createElement("span",null,Pn==null?void 0:Pn.total),"\uFF09"))))),b.createElement("div",{className:kt.tabBar},rr)),Da=({className:xt,style:yt={},children:Et})=>b.createElement("div",{className:Ke()(xt),style:yt},Et),Ta={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Br=ae(38854),ar=ae(20834);const Or=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ut=({sortValue:xt,dropValue:yt,className:Et,onSort:Mn,onDrop:Za,dataSource:rr=Or})=>{var Pn;return b.createElement("div",{className:Ke()(Ta.orderWrap,Et)},b.createElement(Br.Z,{dropdownRender:()=>b.createElement(ar.default,null,rr.map(($a,Xa)=>b.createElement(ar.default.Item,{key:Xa,onClick:()=>Za($a.id)},$a.name)))},b.createElement("span",{className:Ta.orderTextWrap},(Pn=rr.find($a=>yt===$a.id))==null?void 0:Pn.name)),b.createElement("span",{className:Ta.orderIconWrap},b.createElement("span",{className:Ta.orderAsc},b.createElement("i",{className:xt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ta.cursorPointer} ${Ta.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ta.cursorPointer}`,onClick:()=>Mn(xt==="asc"?"desc":"asc")})),b.createElement("span",{className:Ta.orderDesc},b.createElement("i",{className:xt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ta.cursorPointer} ${Ta.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ta.cursorPointer}`,onClick:()=>Mn(xt==="asc"?"desc":"asc")}))))},Un={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v",ThemeOne:"ThemeOne___iCQio"},$n=ae(3113),ba=ae(39587),Ze=Object.defineProperty,Ot=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,fn=Object.prototype.propertyIsEnumerable,Mt=(xt,yt,Et)=>yt in xt?Ze(xt,yt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):xt[yt]=Et,Qn=(xt,yt)=>{for(var Et in yt||(yt={}))Xt.call(yt,Et)&&Mt(xt,Et,yt[Et]);if(Ot)for(var Et of Ot(yt))fn.call(yt,Et)&&Mt(xt,Et,yt[Et]);return xt},Kn=(xt,yt)=>{var Et={};for(var Mn in xt)Xt.call(xt,Mn)&&yt.indexOf(Mn)<0&&(Et[Mn]=xt[Mn]);if(xt!=null&&Ot)for(var Mn of Ot(xt))yt.indexOf(Mn)<0&&fn.call(xt,Mn)&&(Et[Mn]=xt[Mn]);return Et},Je=(xt,yt,Et)=>new Promise((Mn,Za)=>{var rr=Xa=>{try{$a(Et.next(Xa))}catch(ao){Za(ao)}},Pn=Xa=>{try{$a(Et.throw(Xa))}catch(ao){Za(ao)}},$a=Xa=>Xa.done?Mn(Xa.value):Promise.resolve(Xa.value).then(rr,Pn);$a((Et=Et.apply(xt,yt)).next())}),Xe=xt=>{var yt=xt,{className:Et,style:Mn,children:Za,loading:rr=!1,openLoading:Pn,onClick:$a=()=>{},size:Xa="middle",shape:ao="round",theme:dr}=yt,Ga=Kn(yt,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[wr,Bo]=(0,b.useState)(!1),ri=(0,b.useMemo)(()=>{switch(dr){case ba.Fy.THEMEONE:return Un.ThemeOne;case ba.Fy.DEFAULT:default:return Un.btn}},[dr]);return b.createElement($n.ZP,Qn({onClick:(0,Oe.throttle)(Rr=>Je(void 0,null,function*(){Pn&&Bo(!0);try{yield $a(Rr)}catch(So){console.log("error",So)}Pn&&Bo(!1)}),2e3,{leading:!0,trailing:!1}),className:Ke()(ri,Un[`${Xa}-${ao}`],Et),style:Mn,size:Xa,shape:ao,loading:wr||rr},Ga),Za)},an={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Nn=({className:xt,style:yt,children:Et=null,onClick:Mn,title:Za})=>b.createElement("div",{className:Ke()(an.head,xt),style:yt},b.createElement("span",{className:"primary-hover",onClick:Mn},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:Za},Za),b.createElement("div",{className:an.node},Et)),wa={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},ta=({confirmShow:xt=!0,confirmTitle:yt,confirmClick:Et,cancelShow:Mn=!0,cancelTitle:Za,cancelClick:rr,className:Pn,style:$a,confirmLoading:Xa=!1})=>b.createElement("div",{className:Ke()(wa.btns,Pn),style:$a},xt&&b.createElement($n.ZP,{loading:Xa,onClick:Et,type:"primary",className:wa.confirm},yt),Mn&&b.createElement($n.ZP,{onClick:rr,className:wa.cancel},Za)),ya={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},zt=({className:xt,style:yt={},LeftContent:Et,children:Mn,RightContent:Za})=>b.createElement("div",{className:Ke()(ya.fixedBottom,xt),style:yt},b.createElement("div",{className:ya.wrap},b.createElement("div",{className:ya.left},Et),b.createElement("div",{className:ya.center},Mn),b.createElement("div",{className:ya.right},Za))),ka={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},ho=({className:xt,style:yt={},dataSource:Et=[]})=>b.createElement("div",{className:Ke()(ka.crumbs,xt),style:yt},Et.map((Mn,Za)=>ZaSn.history.push(Mn.path)},Mn.name):b.createElement("span",null,Mn.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:Za,style:{color:"#5F6368"}},Mn.name))),qa=ae(31797),Gt=Object.defineProperty,Qr=Object.defineProperties,Ua=Object.getOwnPropertyDescriptors,Sr=Object.getOwnPropertySymbols,lr=Object.prototype.hasOwnProperty,Gr=Object.prototype.propertyIsEnumerable,Lr=(xt,yt,Et)=>yt in xt?Gt(xt,yt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):xt[yt]=Et,no=(xt,yt)=>{for(var Et in yt||(yt={}))lr.call(yt,Et)&&Lr(xt,Et,yt[Et]);if(Sr)for(var Et of Sr(yt))Gr.call(yt,Et)&&Lr(xt,Et,yt[Et]);return xt},Mr=(xt,yt)=>Qr(xt,Ua(yt)),ca=(xt,yt)=>{var Et={};for(var Mn in xt)lr.call(xt,Mn)&&yt.indexOf(Mn)<0&&(Et[Mn]=xt[Mn]);if(xt!=null&&Sr)for(var Mn of Sr(xt))yt.indexOf(Mn)<0&&Gr.call(xt,Mn)&&(Et[Mn]=xt[Mn]);return Et};const{Countdown:tn}=qa.default;var ga=xt=>{var yt=xt,{onChange:Et}=yt,Mn=ca(yt,["onChange"]);const[Za,rr]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof Za=="number"&&Za>=0&&Et(Za)},[Za]);const Pn=$a=>{const Xa=Math.floor($a/1e3);rr(Xa)};return b.createElement(tn,Mr(no({},Mn),{onChange:Pn}))},ur={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},vn=({DataProps:xt,className:yt,style:Et={}})=>{var Mn;return b.createElement("div",{className:Ke()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",ur.ClassRoomItem,yt),style:Et,onClick:()=>{(0,Ft.xg)(xt==null?void 0:xt.first_category_url)}},b.createElement("div",{className:"flex flex-col item-center"},b.createElement("img",{src:`${(Mn=ct.Z)==null?void 0:Mn.IMG_SERVER}/images/${xt==null?void 0:xt.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(xt==null?void 0:xt.subject_identifier)&&b.createElement("div",{className:"mt-40px"},b.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),b.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),b.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},b.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(xt!=null&&xt.is_public)&&b.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),b.createElement("span",{className:Ke()("text-16px font-medium",ur.TitleDom)},xt==null?void 0:xt.name)),b.createElement("div",{className:"c-grey-333 font-medium"},xt==null?void 0:xt.creator),b.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",xt==null?void 0:xt.course_members_count),b.createElement("div",{className:"c-grey-333 flex item-center justify-between"},b.createElement("div",null,"\u4F5C\u4E1A\uFF1A",xt==null?void 0:xt.tasks_count),xt!=null&&xt.is_end?b.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):b.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},na=Object.defineProperty,Na=Object.getOwnPropertySymbols,_n=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,tr=(xt,yt,Et)=>yt in xt?na(xt,yt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):xt[yt]=Et,Ar=(xt,yt)=>{for(var Et in yt||(yt={}))_n.call(yt,Et)&&tr(xt,Et,yt[Et]);if(Na)for(var Et of Na(yt))sr.call(yt,Et)&&tr(xt,Et,yt[Et]);return xt},mr=({DataProps:xt=[],selectValue:yt,onChange:Et,className:Mn,style:Za={},extra:rr,classNameItem:Pn,styleItem:$a={},barHidden:Xa})=>{const[ao,dr]=(0,b.useState)();return(0,b.useEffect)(()=>{dr(Array.isArray(yt)?yt:[yt])},[yt]),b.createElement("div",{className:Ke()("flex px-20px py-10px gap-40px",Mn),style:Ar({borderBottom:"1px solid #D3F0FF"},Za)},xt==null?void 0:xt.map(Ga=>b.createElement("div",{key:Ga==null?void 0:Ga.id,className:Ke()("flex item-center justify-center current c-grey-333 text-16 relative",Pn,Ga==null?void 0:Ga.className),style:Ar(Ar({color:ao!=null&&ao.includes(Ga==null?void 0:Ga.id)?"#1890FF":"",minWidth:88},$a),(Ga==null?void 0:Ga.style)||{}),onClick:wr=>{Et==null||Et({domEvent:wr,item:Ga}),Ga!=null&&Ga.link&&Sn.history.push(Ga==null?void 0:Ga.link)}},Ga==null?void 0:Ga.name,!Xa&&(ao==null?void 0:ao.includes(Ga==null?void 0:Ga.id))&&b.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),b.createElement("div",{className:"ml-auto"},rr))},Yo=Object.defineProperty,Mo=Object.defineProperties,Ei=Object.getOwnPropertyDescriptors,xr=Object.getOwnPropertySymbols,Nr=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable,Ja=(xt,yt,Et)=>yt in xt?Yo(xt,yt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):xt[yt]=Et,Hr=(xt,yt)=>{for(var Et in yt||(yt={}))Nr.call(yt,Et)&&Ja(xt,Et,yt[Et]);if(xr)for(var Et of xr(yt))Eo.call(yt,Et)&&Ja(xt,Et,yt[Et]);return xt},Yr=(xt,yt)=>Mo(xt,Ei(yt)),Kr=({value:xt,onChange:yt,onInputChange:Et,className:Mn,style:Za={},InputProps:rr})=>{const[Pn,$a]=(0,b.useState)(xt);return b.createElement("div",{className:Ke()("flex item-center rounded-full px-10px py-2px",Mn),style:Hr({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},Za)},b.createElement(Fe.default,Yr(Hr({bordered:!1},rr),{onChange:Xa=>{$a(Xa.target.value),Et==null||Et(encodeURIComponent(Xa.target.value))},onPressEnter:Xa=>{yt==null||yt({domEvent:Xa,item:{value:Pn}})}})),b.createElement("img",{className:"h-22px current",src:ae(25365),height:22,onClick:Xa=>{yt==null||yt({domEvent:Xa,item:{value:Pn}})}}))}},29152:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return he}});var b=ae(59301);function he(we,xe){const Re=(0,b.useRef)();(0,b.useEffect)(()=>{Re.current=we}),(0,b.useEffect)(()=>{function We(){Re.current()}if(xe!==null){let Be=setInterval(We,xe);return()=>clearInterval(Be)}},[xe])}},58931:function(it,jt,ae){"use strict";ae.r(jt),ae.d(jt,{default:function(){return mu}});var b=ae(59301),he=ae(90115),we=ae(78241),xe=ae(8591),Re=ae(66104),We=ae(92832),Be=ae(19842),Ke=ae(24905),Oe=ae(5112),De=ae(5871),ke=ae(3113),ze={flex_box_center:"flex_box_center___aPGWN",flex_space_between:"flex_space_between___MQNX5",flex_box_vertical_center:"flex_box_vertical_center___Z7QdK",flex_box_center_end:"flex_box_center_end___JQl5O",flex_box_column:"flex_box_column___IhYhx",bg:"bg___Kg8x_",title:"title___UhsVG",titleLeft:"titleLeft___NPVwn",titleRight:"titleRight___UGtmZ",formWrap:"formWrap___Jowb2",baseLineHeight:"baseLineHeight___N68WX",radioBtnWrapper:"radioBtnWrapper___bX7Pi",radiogroup:"radiogroup___ukf8u",easy:"easy___ZHYPU",medium:"medium___piewx",hard:"hard___HMXyt",selectdiv:"selectdiv___gkuBG",divitem:"divitem___vNm0q",bottmodiv:"bottmodiv___assW5",cancelBtn:"cancelBtn___Nl6Pi",confirmBtn:"confirmBtn___BNoFU",baseFormItem:"baseFormItem___ILZ2V",cascaderPopup:"cascaderPopup___QPxW3",addQuestionBtn:"addQuestionBtn___OjehS",concat:"concat___kliXB"},Ue=ae(43418),le=ae(5083),E=ae(66649),a=ae.n(E),x=(se,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch(qt){mt(qt)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch(qt){mt(qt)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(se,Se)).next())});const y=({user:se,dispatch:Se,classroomList:Pe,onModalOk:rt,setsubloading:mt})=>{const Vn=(0,he.useParams)(),[pn,Jt]=(0,b.useState)(),[dt,qt]=(0,b.useState)(!1);function wn(bt){return bt&&bt{qt(!1)},zIndex:8888,destroyOnClose:!0,footer:null,maskClosable:!1,keyboard:!1,open:Pe.actionTabs.key==="\u9884\u7EA6\u5F39\u7A97",onCancel:()=>{if(dt){xe.ZP.warning("\u6B63\u5728\u8BF7\u6C42\u6570\u636E\u4E2D...");return}mt(!1),Se({type:"classroomList/setActionTabs",payload:{}})}},b.createElement("div",null,b.createElement("span",null,"\u6CE8\u610F\u5230\u60A8\u7684\u8BFE\u5802\u4E2D\u5B66\u751F\u4EBA\u6570\u8F83\u591A\u3002\u4E3A\u66F4\u597D\u5730\u4E3A\u60A8\u548C\u60A8\u7684\u5B66\u751F\u670D\u52A1\uFF0C\u7ED9\u540C\u5B66\u4EEC\u5E26\u6765\u66F4\u597D\u7684\u8003\u8BD5\u4F53\u9A8C\uFF0C\u6211\u4EEC\u5C06\u63D0\u524D\u4E3A\u60A8\u548C\u60A8\u7684\u5B66\u751F\u51C6\u5907\u597D\u670D\u52A1\u5668\u8D44\u6E90\u3002 \u8BF7\u60A8\u544A\u77E5\u6211\u4EEC\uFF0C\u8FD9\u4EFD\u8BD5\u5377\u7684\u9884\u8BA1\u8003\u8BD5\u65F6\u95F4\u662F\uFF1A"),b.createElement("br",null),b.createElement(le.default,{popupStyle:{zIndex:9999},style:{marginTop:"10px",marginBottom:"10px"},disabledDate:wn,format:"YYYY-MM-DD HH:mm:ss",onChange:(bt,Ct)=>{Jt(Ct)},showTime:{defaultValue:a()("00:00:00","HH:mm:ss")}}),b.createElement("br",null),b.createElement("span",null,"\u611F\u8C22\u60A8\u7684\u914D\u5408"),b.createElement("br",null),b.createElement("div",{style:{textAlign:"end"}},b.createElement(ke.ZP,{loading:dt,type:"primary",onClick:()=>x(void 0,null,function*(){qt(!0),rt(pn,()=>{Se({type:"classroomList/setActionTabs",payload:{}})})})},"\u786E\u8BA4"))))};var z=(0,he.connect)(({user:se,classroomList:Se})=>({user:se,classroomList:Se}))(y),te=ae(64866),oe=ae(32134),ue=ae(12893),ie={wrap:"wrap___Ww0Ti",itemWarp:"itemWarp___LMLjd",addIcon:"addIcon___xmRLl",deleteIcon:"deleteIcon___gjwgO"},Ee=ae(57809),Fe=Object.defineProperty,Qe=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,Me=(se,Se,Pe)=>Se in se?Fe(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,Ye=(se,Se)=>{for(var Pe in Se||(Se={}))Le.call(Se,Pe)&&Me(se,Pe,Se[Pe]);if(Qe)for(var Pe of Qe(Se))st.call(Se,Pe)&&Me(se,Pe,Se[Pe]);return se},Ge=(se,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch(qt){mt(qt)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch(qt){mt(qt)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(se,Se)).next())}),be=({setitem:se,item:Se,rz:Pe})=>{var rt,mt,Vn,pn,Jt,dt,qt,wn;let[bt,Ct]=(0,b.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const[ft]=we.default.useForm(),[An,$t]=(0,b.useState)(!1);(0,b.useEffect)(()=>{Pe&&!An&&(bt.zydatas=Pe,Ct(Ye({},bt)),$t(!0),Se!=null&&Se.ec_course_id&&Tt())},[Se,Pe,An]),console.log(bt,"params");function Tt(){return Ge(this,null,function*(){yield sn(Se==null?void 0:Se.ec_major_school_id),yield Ht(Se==null?void 0:Se.ec_year_id),yield ua(Se==null?void 0:Se.ec_course_id),ft.setFieldsValue({ec_course_id:Se==null?void 0:Se.ec_course_id,ec_major_school_id:Se==null?void 0:Se.ec_major_school_id,ec_point_ids:Se==null?void 0:Se.ec_point_ids,ec_year_id:Se==null?void 0:Se.ec_year_id})})}function sn(hn){return Ge(this,null,function*(){const gn=yield(0,te.ZP)(`/api/ec_major_schools/${hn}/ec_years/get_year_list.json`,{method:"get"});bt.jbdatas=gn==null?void 0:gn.data,Ct(Ye({},bt)),ft.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function Ht(hn){return Ge(this,null,function*(){const gn=yield(0,te.ZP)(`/api/ec_years/${hn}/ec_courses/get_courses.json`,{method:"get"});bt.kcdatas=gn==null?void 0:gn.data,Ct(Ye({},bt)),ft.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const ua=hn=>Ge(void 0,null,function*(){const gn=yield(0,te.ZP)(`/api/ec_courses/${hn}/ec_points.json`,{method:"get",params:{ec_course_id:hn}});bt.zsdatas=gn==null?void 0:gn.data,Ct(Ye({},bt))});return b.createElement("div",{className:ie.from},b.createElement(we.default,{form:ft,layout:"inline",onValuesChange:hn=>{console.log("----",hn),hn.ec_major_school_id&&(bt.jbdatas=[],bt.kcdatas=[],bt.zsdatas=[],Ct(Ye({},bt)),sn(hn.ec_major_school_id)),hn.ec_year_id&&(bt.kcdatas=[],bt.zsdatas=[],Ct(Ye({},bt)),Ht(hn.ec_year_id)),hn.ec_course_id&&(bt.zsdatas=[],Ct(Ye({},bt)),ua(hn.ec_course_id))},onFinish:hn=>Ge(void 0,null,function*(){se(hn)})},b.createElement(we.default.Item,{name:"ec_major_school_id"},b.createElement(Ee.default,{style:{width:160},disabled:((rt=bt.zydatas)==null?void 0:rt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(mt=bt==null?void 0:bt.zydatas)==null?void 0:mt.map((hn,gn)=>b.createElement(Ee.default.Option,{key:gn,value:hn==null?void 0:hn.ec_major_school_id},hn==null?void 0:hn.name)))),b.createElement(we.default.Item,{name:"ec_year_id"},b.createElement(Ee.default,{style:{width:160},disabled:((Vn=bt.jbdatas)==null?void 0:Vn.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(pn=bt==null?void 0:bt.jbdatas)==null?void 0:pn.map((hn,gn)=>b.createElement(Ee.default.Option,{key:gn,value:hn==null?void 0:hn.ec_year_id},hn==null?void 0:hn.year)))),b.createElement(we.default.Item,{name:"ec_course_id"},b.createElement(Ee.default,{style:{width:208},disabled:((Jt=bt.kcdatas)==null?void 0:Jt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(dt=bt==null?void 0:bt.kcdatas)==null?void 0:dt.map((hn,gn)=>b.createElement(Ee.default.Option,{key:gn,value:hn==null?void 0:hn.id},hn==null?void 0:hn.name)))),b.createElement(we.default.Item,{name:"ec_point_ids"},b.createElement(Ee.default,{onChange:()=>{ft.submit()},style:{width:160},maxTagCount:1,maxTagTextLength:7,mode:"multiple",disabled:((qt=bt.zsdatas)==null?void 0:qt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(wn=bt==null?void 0:bt.zsdatas)==null?void 0:wn.map((hn,gn)=>b.createElement(Ee.default.Option,{key:gn,value:hn==null?void 0:hn.id},hn==null?void 0:hn.name))))))},vt=Object.defineProperty,ct=Object.defineProperties,Ft=Object.getOwnPropertyDescriptors,At=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,Wt=(se,Se,Pe)=>Se in se?vt(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,Pt=(se,Se)=>{for(var Pe in Se||(Se={}))En.call(Se,Pe)&&Wt(se,Pe,Se[Pe]);if(At)for(var Pe of At(Se))Bn.call(Se,Pe)&&Wt(se,Pe,Se[Pe]);return se},Te=(se,Se)=>ct(se,Ft(Se)),et=(se,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch(qt){mt(qt)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch(qt){mt(qt)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(se,Se)).next())});const Yt=({user:se,exercise_id:Se=null,homework_common_id:Pe=null,setitem:rt})=>{var mt,Vn,pn;let[Jt,dt]=(0,b.useState)([{id:Math.random()}]),[qt,wn]=(0,b.useState)(null);function bt(){return et(this,null,function*(){var ft,An,$t,Tt;let sn=yield(0,te.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:Se,homework_common_id:Pe}});if(((ft=sn==null?void 0:sn.data)==null?void 0:ft.length)>0){let Ht=[];(An=sn==null?void 0:sn.data)==null||An.map(ua=>{var hn;(hn=ua==null?void 0:ua.ec_point_ids)==null||hn.map(gn=>{Ht.push(gn)})}),rt(Te(Pt({},($t=sn==null?void 0:sn.data)==null?void 0:$t[0]),{ec_point_ids:Ht})),dt((Tt=sn==null?void 0:sn.data)==null?void 0:Tt.map(ua=>Te(Pt({},ua),{id:Math.random()})))}})}(0,b.useEffect)(()=>{var ft,An;(An=(ft=se==null?void 0:se.userInfo)==null?void 0:ft.course)!=null&&An.course_school_id&&Ct()},[(Vn=(mt=se==null?void 0:se.userInfo)==null?void 0:mt.course)==null?void 0:Vn.course_school_id]);function Ct(){return et(this,null,function*(){var ft,An;const $t=yield(0,te.ZP)(`/api/schools/${(An=(ft=se==null?void 0:se.userInfo)==null?void 0:ft.course)==null?void 0:An.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});wn($t==null?void 0:$t.data),(Pe||Se)&&bt()})}return console.log(Jt,qt,"datas"),b.createElement("div",{style:{display:(pn=se.userInfo.course)!=null&&pn.is_openengineering?"":"none"}},b.createElement("div",{className:ie.wrap},b.createElement("p",null,"\u5DE5\u7A0B\u8BA4\u8BC1",b.createElement("br",null),"\u8003\u6838\u77E5\u8BC6\u70B9"),b.createElement("div",{className:ie.itemWarp},Jt==null?void 0:Jt.map((ft,An)=>b.createElement("div",{key:ft.id,style:{display:"flex",alignItems:"center",marginBottom:20}},b.createElement(be,{rz:qt,item:ft,setitem:$t=>{$t=Pt(Pt({},Jt==null?void 0:Jt[An]),$t),Jt.splice(An,1,$t),dt([...Jt]);let Tt=[];Jt==null||Jt.map(sn=>{var Ht;(Ht=sn==null?void 0:sn.ec_point_ids)==null||Ht.map(ua=>{Tt.push(ua)})}),rt(Te(Pt({},$t),{ec_point_ids:Tt}))}}),b.createElement(oe.Z,{className:ie.addIcon,onClick:()=>{Jt.push({id:Math.random()}),dt([...Jt])}}),An!=0&&b.createElement(ue.Z,{className:ie.deleteIcon,onClick:()=>{Jt.splice(An,1);let $t=[];Jt==null||Jt.map(Tt=>{var sn;(sn=Tt==null?void 0:Tt.ec_point_ids)==null||sn.map(Ht=>{$t.push(Ht)})}),rt(Te(Pt({},Jt[An-1]),{ec_point_ids:$t})),dt([...Jt])}}))))))};var xn=(0,he.connect)(({user:se})=>({user:se}))(Yt),Lt=ae(20834),_t=ae(71418),Ce=ae(38854),ot=ae(6848),nn=ae(43428),nt={flex_box_center:"flex_box_center___zCnVx",flex_space_between:"flex_space_between___BBiQD",flex_box_vertical_center:"flex_box_vertical_center___KzPui",flex_box_center_end:"flex_box_center_end___zJokd",flex_box_column:"flex_box_column___Grsys",moreSpan:"moreSpan___VJeLv",bg:"bg___oBBHW",title:"title___xV4Rt",bottomdiv:"bottomdiv___rPfwr",spanBtn:"spanBtn___eJxID",addQuestionBtn:"addQuestionBtn___RPRiP",saveBtn:"saveBtn___y9nNf",left:"left___Q3Qf4",leftAction:"leftAction___GT9yG",Button:"Button___r00OP",iconWrapper:"iconWrapper___wofW_",up:"up___a9RQm",down:"down___x6RAl",disabled:"disabled___mkEME",titleleft:"titleleft___WZ83K",more_style:"more_style___ZXYnN",qcount:"qcount___o6F1k",score:"score___Gy6jr",qtitle:"qtitle___KF7pa",qcountclick:"qcountclick___kvoyc",right:"right___Nfa70",edit:"edit___RVRSb",delete:"delete___J9BAT",yuanti:"yuanti___ljq8l",tianjia:"tianjia___s7Zu2",shixun:"shixun___YkjdZ",scoreByBlankRadio:"scoreByBlankRadio___QYQY5",modalconfirm:"modalconfirm___dmWFe",scoremodal:"scoremodal___CDA7w",close:"close___jdUWv",content:"content___HPqUf",items:"items___YkyQL",bottom:"bottom___mzpp4",yes:"yes___Xio6z",no:"no___hbicD",formcenter:"formcenter___kN8Ax",radiogroup:"radiogroup___htjtc",easy:"easy____g1mR",medium:"medium___vPAsn",hard:"hard___c6tcf",formcenterselect:"formcenterselect___B88vb",selectitems1:"selectitems1___Dzpho",selectitems:"selectitems___wUGKF",morebottom:"morebottom___F5cFQ",scoreinput:"scoreinput___S9Fbv",shake:"shake___IYp2E",titleTooltip:"titleTooltip___J0i26",exercise_styles:"exercise_styles___BJAZm"},ht=ae(22566),Jn=ae(21692),dn=ae(9683),Qt=ae(11414),Rt=ae(8658),Wn=ae(59301),ra=Object.defineProperty,en=Object.defineProperties,Ba=Object.getOwnPropertyDescriptors,Ka=Object.getOwnPropertySymbols,Fa=Object.prototype.hasOwnProperty,jn=Object.prototype.propertyIsEnumerable,Ha=(se,Se,Pe)=>Se in se?ra(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,Pa=(se,Se)=>{for(var Pe in Se||(Se={}))Fa.call(Se,Pe)&&Ha(se,Pe,Se[Pe]);if(Ka)for(var Pe of Ka(Se))jn.call(Se,Pe)&&Ha(se,Pe,Se[Pe]);return se},fr=(se,Se)=>en(se,Ba(Se)),oa=(se,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch(qt){mt(qt)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch(qt){mt(qt)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(se,Se)).next())}),da=({Itemid:se,setqitem:Se,qitem:Pe,data:rt,getdata:mt,bigitem:Vn,setBigqitem:pn,isedit:Jt,handleEditing:dt})=>{const[qt,wn]=(0,b.useState)([]),[bt,Ct]=(0,b.useState)(!1),ft=($t,Tt,sn)=>{const Ht=Array.from($t),[ua]=Ht.splice(Tt,1);return Ht.splice(sn,0,ua),Ht};(0,b.useEffect)(()=>{rt.length>0&&wn([...rt])},[rt]);const An=($t,Tt)=>oa(void 0,null,function*(){if(!$t.destination)return;if(Jt){dt();return}const sn=ft(Tt,$t.source.index,$t.destination.index);Ct(!0);let Ht=yield(0,te.ZP)(`/api/exercises/${se}/adjust_position.json`,{method:"post",body:{id:se,question_ids:sn==null?void 0:sn.map(ua=>ua.question_id)}});Ct(!1),Ht.status===0&&mt({id:Tt==null?void 0:Tt[$t.source.index].question_id})});return Wn.createElement("div",null,Wn.createElement(Qt.Z5,{onDragEnd:$t=>An($t,qt)},Wn.createElement(Qt.bK,{droppableId:"droppable"},($t,Tt)=>Wn.createElement("div",Pa({ref:$t.innerRef},$t.droppableProps),Wn.createElement(_t.Z,{spinning:bt},qt.map((sn,Ht)=>Wn.createElement(Qt._l,{key:Ht,draggableId:Ht.toString(),index:Ht},(ua,hn)=>{var gn,Zr;return Wn.createElement("aside",Pa(Pa({ref:ua.innerRef},ua.draggableProps),ua.dragHandleProps),Wn.createElement(ot.Z,{title:Wn.createElement(Rt.Z,{value:(sn==null?void 0:sn.question_type)===8?(gn=sn==null?void 0:sn.program_attr)==null?void 0:gn.description:sn.question_title}),color:"#fff",placement:"left",overlayClassName:nt.titleTooltip},Wn.createElement("div",{onClick:()=>{if(Jt){dt();return}Se(fr(Pa({},sn),{index:Ht+1})),pn(Vn),(0,ht.Vf)("#question-scroll-id")},className:`${nt.qcount} ${sn.question_id===(Pe==null?void 0:Pe.question_id)?nt.qcountclick:""}`},Wn.createElement("span",{className:nt.score},sn==null?void 0:sn.question_score,"\u5206"),Wn.createElement("span",{className:nt.qtitle},Ht+1,"\u3001",Wn.createElement(Rt.Z,{value:(sn==null?void 0:sn.question_type)===8?(Zr=sn==null?void 0:sn.program_attr)==null?void 0:Zr.description:sn.question_title,showTextOnly:!0})))))}))),$t.placeholder))))},Aa=ae(95237),xa=ae(60569),_a=ae(78673),Sn=ae(61485),rn=ae(98280),St=ae(59301),kt=(se,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch(qt){mt(qt)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch(qt){mt(qt)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(se,Se)).next())}),Ca=({form:se,TagDiscipline:Se,exerciseitem:Pe,qitem:rt,getTagData:mt})=>{var Vn;const[pn,Jt]=(0,b.useState)(!0),[dt,qt]=(0,b.useState)(!1),[wn,bt]=(0,b.useState)(""),[Ct,ft]=(0,b.useState)([]),[An,$t]=(0,b.useState)([]),[Tt,sn]=(0,b.useState)(0);(0,b.useEffect)(()=>{ua()},[]);const Ht=hn=>kt(void 0,null,function*(){const gn=yield(0,te.ZP)("/api/tag_disciplines.json",{method:"get",params:{sub_discipline_id:hn==null?void 0:hn.sub_discipline_id}});$t(gn==null?void 0:gn.tag_disciplines)}),ua=()=>kt(void 0,null,function*(){const hn=yield(0,te.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});ft(hn.disciplines||[]),rt!=null&&rt.sub_discipline_id&&Ht(rt),sn(rt!=null&&rt.sub_discipline_id?1:0),se.setFieldsValue({difficulty:rt.difficulty||2,tag_discipline_ids:rt.tag_discipline_ids,repeat_answer:!rt.repeat_answer,sub_discipline_id:rt!=null&&rt.sub_discipline_id?[rt==null?void 0:rt.discipline_id,rt==null?void 0:rt.sub_discipline_id]:[]})});return St.createElement("div",null,St.createElement("div",{style:{marginTop:30,height:pn?"100%":"0px",overflow:"hidden"}},St.createElement(we.default.Item,{className:nt.formcenter,rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u96BE\u5EA6"}],label:"\u96BE\u5EA6",name:"difficulty"},St.createElement(Oe.ZP.Group,{className:nt.radiogroup},St.createElement(Oe.ZP.Button,{className:nt.easy,value:1},"\u7B80\u5355"),St.createElement(Oe.ZP.Button,{className:nt.medium,value:2},"\u9002\u4E2D"),St.createElement(Oe.ZP.Button,{className:nt.hard,value:3},"\u56F0\u96BE"))),St.createElement(we.default.Item,{name:"sub_discipline_id",label:"\u77E5\u8BC6\u70B9",className:nt.formcenterselect},St.createElement(Be.Z,{className:nt.selectitems1,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Ct,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(hn,gn)=>{se.setFieldsValue({sub_discipline_id:hn,tag_discipline_ids:[]}),sn(hn?hn.length:0),(hn==null?void 0:hn.length)>0&&(Ht({sub_discipline_id:hn[1]}),hn[1]==(rt==null?void 0:rt.sub_discipline_id)&&se.setFieldValue("tag_discipline_ids",rt.tag_discipline_ids))},onClear:()=>{$t([]),se.setFieldValue("tag_discipline_ids",[]),sn(0)}})),St.createElement(we.default.Item,{className:nt.formcenterselect},St.createElement("div",{style:{display:"flex",alignItems:"center",paddingLeft:55}},St.createElement(we.default.Item,{name:"tag_discipline_ids"},St.createElement(Ee.default,{className:nt.selectitems,disabled:Tt===0,showSearch:!0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",mode:"multiple",listHeight:200,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",mode:"multiple",dropdownStyle:{zIndex:9},allowClear:!0,optionFilterProp:"children",filterOption:(hn,gn)=>gn.key.indexOf(hn.toLowerCase())>=0},An==null?void 0:An.map(hn=>St.createElement(Ee.default.Option,{key:hn.name+hn.id,value:hn.id},St.createElement("div",{style:{display:"flex",alignItems:"center"}},St.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},hn.name),(hn==null?void 0:hn.type)==="personal"&&St.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),Tt>0&&St.createElement("div",{style:{marginLeft:20,marginTop:"-16px",lineHeight:"48px",height:48,fontSize:14}},St.createElement("span",null,"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),St.createElement("a",{onClick:()=>{qt(!0)},style:{marginLeft:3,color:"#3061D0"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))),St.createElement(we.default.Item,{className:nt.formcenterselect},St.createElement("div",{style:{display:"flex",alignItems:"center"}},St.createElement(we.default.Item,{name:"repeat_answer",valuePropName:"checked"},St.createElement(_a.Z,null)),St.createElement("div",{style:{marginLeft:10,marginTop:"-16px",lineHeight:"48px",height:48,color:"#000000"}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898",St.createElement(ot.Z,{placement:"right",title:"\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u4F5C\u7B54\u5B8C\u6210\u8BE5\u9898\u5E76\u8FDB\u5165\u4E0B\u4E00\u9898\u4E4B\u540E\uFF0C\u4E0D\u5141\u8BB8\u518D\u4FEE\u6539\u8BE5\u9898\u7B54\u6848"},St.createElement(Sn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))))),St.createElement(rn.Z,{open:dt,subDisciplineId:(Vn=se.getFieldValue("sub_discipline_id"))==null?void 0:Vn[1],onCancel:()=>{qt(!1)},onOkClick:hn=>{$t(gn=>[...gn,hn]),se.setFieldValue("tag_discipline_ids",[...se.getFieldValue("tag_discipline_ids"),hn==null?void 0:hn.id])}}))},Wa=ae(59301),Da=Object.defineProperty,Ta=Object.defineProperties,Br=Object.getOwnPropertyDescriptors,ar=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,Oo=Object.prototype.propertyIsEnumerable,Ut=(se,Se,Pe)=>Se in se?Da(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,Un=(se,Se)=>{for(var Pe in Se||(Se={}))Or.call(Se,Pe)&&Ut(se,Pe,Se[Pe]);if(ar)for(var Pe of ar(Se))Oo.call(Se,Pe)&&Ut(se,Pe,Se[Pe]);return se},$n=(se,Se)=>Ta(se,Br(Se)),ba=(se,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch(qt){mt(qt)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch(qt){mt(qt)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(se,Se)).next())}),Ot=({qitem:se,setisedit:Se,TagDiscipline:Pe,exerciseitem:rt,seveeditor:mt,deleteitem:Vn,getTagData:pn,init:Jt,showTip:dt=!1})=>{var qt;const[wn]=we.default.useForm();(0,b.useEffect)(()=>{var Ct;wn.setFieldsValue($n(Un({},se),{name:se==null?void 0:se.question_title,choices:(Ct=se==null?void 0:se.question_choices)==null?void 0:Ct.map(ft=>$n(Un({},ft),{standard_boolean:ft!=null&&ft.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)}))},[se]);const bt=Ct=>{if(!(Ct!=null&&Ct.length))return!1;const ft=Ct.map($t=>{var Tt;return(Tt=$t.choice_text)==null?void 0:Tt.trim().replace(/^\s+|\s+$/g,"")});return new Set(ft).size!==ft.length};return Wa.createElement("div",null,Wa.createElement(we.default,{form:wn,colon:!1,onFinish:Ct=>{var ft,An,$t,Tt,sn;if(bt(Ct.choices)){xe.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}let Ht=(An=(ft=Ct==null?void 0:Ct.choices)==null?void 0:ft.map)==null?void 0:An.call(ft,(hn,gn)=>{if((hn==null?void 0:hn.standard_boolean)===1)return gn+1}),ua=$n(Un({},Ct),{item_type:se==null?void 0:se.question_type,question_choices:(Tt=($t=Ct==null?void 0:Ct.choices)==null?void 0:$t.map)==null?void 0:Tt.call($t,hn=>hn.choice_text),standard_answers:Ht.filter(hn=>hn),choices:(sn=Ct==null?void 0:Ct.choices)==null?void 0:sn.map(hn=>$n(Un({},hn),{is_answer:hn.standard_boolean}))});mt(Un(Un({},se),ua))},onFinishFailed:Ct=>ba(void 0,null,function*(){var ft,An;xe.ZP.error(Ct.errorFields[0].errors[0]),wn.scrollToField((An=(ft=Ct==null?void 0:Ct.errorFields)==null?void 0:ft[0])==null?void 0:An.name,{behavior:"smooth",block:"center"})})},Wa.createElement("div",{style:{display:"flex",alignItems:"center"}},Wa.createElement("div",{style:{flex:1}},Wa.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Wa.createElement("span",null,(se==null?void 0:se.question_type)===1?"\u591A\u9009\u9898":"\u5355\u9009\u9898")),((qt=rt==null?void 0:rt.exercise)==null?void 0:qt.exercise_status)==1&&!(se!=null&&se.isadd)&&Wa.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Vn()}},Wa.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Wa.createElement(ke.ZP,{onClick:()=>{var Ct;se.isadd?(Se(!1),Jt()):(wn.setFieldsValue($n(Un({},se),{name:se==null?void 0:se.question_title,choices:(Ct=se==null?void 0:se.question_choices)==null?void 0:Ct.map(ft=>$n(Un({},ft),{standard_boolean:ft!=null&&ft.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),Wa.createElement(ot.Z,{overlayClassName:nt.shake,open:dt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Wa.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Wa.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Wa.createElement(ke.ZP,{type:"primary",className:"ml20",onClick:()=>ba(void 0,null,function*(){wn.submit()})},"\u4FDD\u5B58"))),Wa.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Wa.createElement(Aa.Z,{align:"middle"},Wa.createElement(we.default.Item,{className:nt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Wa.createElement(De.Z,{onBlur:Ct=>{Ct.target.value==="0"&&xe.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1}))),Wa.createElement(xa.u,{form:wn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",titleKey:"question_title",choiceKey:"choices",analysisKey:"analysis",choiceOptionsPath:"choices",choiceTextKey:"choice_text",answerKey:"standard_boolean"}),Wa.createElement(Ca,{getTagData:pn,qitem:se,exerciseitem:rt,TagDiscipline:Pe,form:wn}))))},Xt=ae(55862),fn=ae(24136),Mt=ae(59301),Qn=Object.defineProperty,Kn=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable,Cn=(se,Se,Pe)=>Se in se?Qn(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,Nn=(se,Se)=>{for(var Pe in Se||(Se={}))Xe.call(Se,Pe)&&Cn(se,Pe,Se[Pe]);if(tt)for(var Pe of tt(Se))an.call(Se,Pe)&&Cn(se,Pe,Se[Pe]);return se},wa=(se,Se)=>Kn(se,Je(Se)),Ea=(se,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch(qt){mt(qt)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch(qt){mt(qt)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(se,Se)).next())}),ya=({qitem:se,TagDiscipline:Se,exerciseitem:Pe,setisedit:rt,seveeditor:mt,deleteitem:Vn,getTagData:pn,init:Jt,showTip:dt=!1})=>{var qt;const[wn]=we.default.useForm(),bt=we.default.useWatch("use_blank_score",wn);return(0,b.useEffect)(()=>{wn.setFieldsValue(wa(Nn({},se),{standard_answers:se.standard_answers||[],name:se.question_title,repeat_answer:!se.repeat_answer}))},[se]),Mt.createElement("div",null,Mt.createElement(we.default,{form:wn,colon:!1,onValuesChange:(Ct,ft)=>{var An,$t,Tt,sn;if(Ct!=null&&Ct.standard_answers||Ct!=null&&Ct.use_blank_score){let Ht=((An=wn.getFieldValue("standard_answers"))==null?void 0:An.length)>0&&((Tt=($t=wn.getFieldValue("standard_answers"))==null?void 0:$t.map(ua=>ua.score))==null?void 0:Tt.filter(ua=>ua));(Ht==null?void 0:Ht.length)>0&&wn.setFieldsValue({question_score:(Ht==null?void 0:Ht.length)>0&&((sn=Ht.reduce((ua,hn)=>ua+hn))==null?void 0:sn.toFixed(1))})}},onFinish:Ct=>{mt(wa(Nn(Nn({},se),Ct),{item_type:se==null?void 0:se.question_type,standard_answers:Ct.standard_answers,question_title:Ct.name}))},onFinishFailed:Ct=>Ea(void 0,null,function*(){var ft,An;Ct.errorFields[0].errors[0]==="\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"&&(0,ht.pE)(),xe.ZP.error(Ct.errorFields[0].errors[0]),wn.scrollToField((An=(ft=Ct==null?void 0:Ct.errorFields)==null?void 0:ft[0])==null?void 0:An.name,{behavior:"smooth",block:"center"})})},Mt.createElement("div",{style:{display:"flex",alignItems:"center"}},Mt.createElement("div",{style:{flex:1}},Mt.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Mt.createElement("span",null,"\u586B\u7A7A\u9898")),((qt=Pe==null?void 0:Pe.exercise)==null?void 0:qt.exercise_status)==1&&!(se!=null&&se.isadd)&&Mt.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Vn()}},Mt.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Mt.createElement(ke.ZP,{onClick:()=>{se.isadd?(rt(!1),Jt()):(wn.setFieldsValue(wa(Nn({},se),{standard_answers:se.standard_answers||[],name:se.question_title,repeat_answer:!se.repeat_answer})),rt(!1))}},"\u53D6\u6D88"),Mt.createElement(ot.Z,{overlayClassName:nt.shake,open:dt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Mt.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Mt.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Mt.createElement(ke.ZP,{type:"primary",className:"ml20",onClick:()=>{wn.submit()}},"\u4FDD\u5B58"))),Mt.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Mt.createElement(Aa.Z,{align:"middle"},bt?Mt.createElement(fn.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}):Mt.createElement(we.default.Item,{key:2,className:nt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Mt.createElement(De.Z,{onBlur:Ct=>{Ct.target.value==="0"&&xe.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle",max:100,min:.1})),Mt.createElement(we.default.Item,{name:"use_blank_score",noStyle:!0},Mt.createElement(Oe.ZP.Group,{className:nt.scoreByBlankRadio,optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}]})),Mt.createElement(ot.Z,{overlayInnerStyle:{width:460},title:Mt.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",Mt.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},Mt.createElement("i",{className:"icon-tishixiaowenhao font18 ml20 c-3061d0"}))),Mt.createElement(Xt.u,{form:wn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:bt,answerKey:"standard_answers"}),Mt.createElement(Ca,{getTagData:pn,qitem:se,exerciseitem:Pe,TagDiscipline:Se,form:wn}))))},Xn=ae(85881),zt=ae(59301),ka=Object.defineProperty,pr=Object.defineProperties,ho=Object.getOwnPropertyDescriptors,qa=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable,Ua=(se,Se,Pe)=>Se in se?ka(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,Sr=(se,Se)=>{for(var Pe in Se||(Se={}))Gt.call(Se,Pe)&&Ua(se,Pe,Se[Pe]);if(qa)for(var Pe of qa(Se))Qr.call(Se,Pe)&&Ua(se,Pe,Se[Pe]);return se},lr=(se,Se)=>pr(se,ho(Se)),Gr=(se,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch(qt){mt(qt)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch(qt){mt(qt)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(se,Se)).next())}),no=({qitem:se,setisedit:Se,TagDiscipline:Pe,exerciseitem:rt,seveeditor:mt,deleteitem:Vn,getTagData:pn,init:Jt,showTip:dt=!1})=>{var qt;const[wn]=we.default.useForm();return(0,b.useEffect)(()=>{var bt;wn.setFieldsValue(lr(Sr({},se),{name:se.question_title,repeat_answer:!se.repeat_answer,choices:(bt=se==null?void 0:se.question_choices)==null?void 0:bt.map(Ct=>lr(Sr({},Ct),{is_answer:Ct!=null&&Ct.standard_boolean?1:0}))}))},[se]),zt.createElement("div",null,zt.createElement(we.default,{form:wn,colon:!1,onFinish:bt=>{var Ct,ft,An,$t;let Tt=(ft=(Ct=bt==null?void 0:bt.choices)==null?void 0:Ct.map)==null?void 0:ft.call(Ct,(sn,Ht)=>{if((sn==null?void 0:sn.is_answer)===1)return Ht+1});mt(lr(Sr(Sr({},se),bt),{question_title:bt.name,standard_answers:Tt.filter(sn=>sn),question_choices:($t=(An=bt==null?void 0:bt.choices)==null?void 0:An.map)==null?void 0:$t.call(An,sn=>sn.choice_text)}))},onFinishFailed:bt=>Gr(void 0,null,function*(){var Ct,ft;xe.ZP.error(bt.errorFields[0].errors[0]),wn.scrollToField((ft=(Ct=bt==null?void 0:bt.errorFields)==null?void 0:Ct[0])==null?void 0:ft.name,{behavior:"smooth",block:"center"})})},zt.createElement("div",{style:{display:"flex",alignItems:"center"}},zt.createElement("div",{style:{flex:1}},zt.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),zt.createElement("span",null,"\u5224\u65AD\u9898")),((qt=rt==null?void 0:rt.exercise)==null?void 0:qt.exercise_status)==1&&!(se!=null&&se.isadd)&&zt.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Vn()}},zt.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),zt.createElement(ke.ZP,{onClick:()=>{var bt;se.isadd?(Se(!1),Jt()):(wn.setFieldsValue(lr(Sr({},se),{name:se.question_title,repeat_answer:!se.repeat_answer,choices:(bt=se==null?void 0:se.question_choices)==null?void 0:bt.map(Ct=>lr(Sr({},Ct),{is_answer:Ct!=null&&Ct.standard_boolean?1:0}))})),Se(!1))}},"\u53D6\u6D88"),zt.createElement(ot.Z,{overlayClassName:nt.shake,open:dt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:zt.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},zt.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},zt.createElement(ke.ZP,{type:"primary",className:"ml20",onClick:()=>{wn.submit()}},"\u4FDD\u5B58"))),zt.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},zt.createElement(we.default.Item,{className:nt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},zt.createElement(De.Z,{onBlur:bt=>{bt.target.value==="0"&&xe.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),zt.createElement(Xn.Z,{form:wn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",choiceKey:""}),zt.createElement(Ca,{getTagData:pn,qitem:se,exerciseitem:rt,TagDiscipline:Pe,form:wn}))))},Mr=ae(36381),ca={wrap:"wrap___m6v_p",deleteIcon:"deleteIcon___hdYRw",keywordTag:"keywordTag___BLtdn",questionTitleEditorWrap:"questionTitleEditorWrap___fdaK7",choiceWrap:"choiceWrap___wkyUO",choiceIndex:"choiceIndex___tExMq",judgementIndex:"judgementIndex___RMhzJ",setAnswerBtn:"setAnswerBtn___bisIK",activeAnswer:"activeAnswer___MnyyC",activeJudgementAnswer:"activeJudgementAnswer___grGX5",actionWrapper:"actionWrapper___LUawU",addIcon:"addIcon___ckXqe",inputBorder:"inputBorder___nuo0O",placeholder:"placeholder___Dhdir",blankWrapper:"blankWrapper___cnidV",blankInput:"blankInput___iZ5BF",blankInputNumberWrapper:"blankInputNumberWrapper___zlXQc",addBtn:"addBtn___OdgAm",blankIndex:"blankIndex___g4Y7d",baseInputWrapper:"baseInputWrapper___DCOHd",collapseWrapper:"collapseWrapper___SyLrk",panelHeader:"panelHeader___E0il1",open:"open___IFH3V",close:"close___YpIA9",hide:"hide___Nl1W6",scoreByBlankRadio:"scoreByBlankRadio___jpG4i"},tn=ae(30720),gr=Object.defineProperty,ga=Object.defineProperties,ur=Object.getOwnPropertyDescriptors,za=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,na=Object.prototype.propertyIsEnumerable,Na=(se,Se,Pe)=>Se in se?gr(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,_n=(se,Se)=>{for(var Pe in Se||(Se={}))vn.call(Se,Pe)&&Na(se,Pe,Se[Pe]);if(za)for(var Pe of za(Se))na.call(Se,Pe)&&Na(se,Pe,Se[Pe]);return se},sr=(se,Se)=>ga(se,ur(Se)),tr=(se,Se)=>{var Pe={};for(var rt in se)vn.call(se,rt)&&Se.indexOf(rt)<0&&(Pe[rt]=se[rt]);if(se!=null&&za)for(var rt of za(se))Se.indexOf(rt)<0&&na.call(se,rt)&&(Pe[rt]=se[rt]);return Pe};const Ar=se=>{var Se=se,{value:Pe,onChange:rt,scrollId:mt}=Se,Vn=tr(Se,["value","onChange","scrollId"]);return b.createElement("div",{id:mt||""},b.createElement(tn.Z,sr(_n({},Vn),{defaultValue:Pe,onChange:(pn,Jt)=>{console.log("a:",pn,Jt),Jt!=null&&Jt.length?rt(pn,Jt):rt(pn)}})))},Ur=({value:se,onChange:Se,placeholder:Pe,height:rt=140,isEdit:mt})=>mt?b.createElement(tn.Z,{watch:!0,isFocus:!0,height:rt,placeholder:Pe,defaultValue:se,onChange:Se}):b.createElement("div",{style:{cursor:"pointer"}},se?b.createElement(Rt.Z,{className:ca.inputBorder,value:se}):b.createElement("div",{className:`${ca.inputBorder} ${ca.placeholder}`},Pe));var mr=ae(43604),Yo=Object.defineProperty,Mo=Object.defineProperties,Ei=Object.getOwnPropertyDescriptors,xr=Object.getOwnPropertySymbols,Nr=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable,Ja=(se,Se,Pe)=>Se in se?Yo(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,Hr=(se,Se)=>{for(var Pe in Se||(Se={}))Nr.call(Se,Pe)&&Ja(se,Pe,Se[Pe]);if(xr)for(var Pe of xr(Se))Eo.call(Se,Pe)&&Ja(se,Pe,Se[Pe]);return se},Yr=(se,Se)=>Mo(se,Ei(Se)),hr=(se,Se)=>{var Pe={};for(var rt in se)Nr.call(se,rt)&&Se.indexOf(rt)<0&&(Pe[rt]=se[rt]);if(se!=null&&xr)for(var rt of xr(se))Se.indexOf(rt)<0&&Eo.call(se,rt)&&(Pe[rt]=se[rt]);return Pe};const Kr=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],xt=({value:se,onChange:Se,choiceTextKey:Pe,answerKey:rt,index:mt,isEdit:Vn,setInputActive:pn,form:Jt,choiceOptionsPath:dt,allowChangeMode:qt,showAddIcon:wn,addItem:bt,deleteItem:Ct})=>{const ft=(se==null?void 0:se[rt])===1,An=()=>{const Tt=Jt.getFieldValue(dt);Jt.setFieldValue(dt,Tt.map(sn=>Yr(Hr({},sn),{[rt]:0})))},$t=()=>{ft?Se(Yr(Hr({},se),{[rt]:0})):(qt||An(),Se(Yr(Hr({},se),{[rt]:1})))};return b.createElement(Aa.Z,{className:ca.choiceWrap,align:"middle",wrap:!1},b.createElement(mr.Z,{onClick:$t,className:`${ca.choiceIndex} ${ft?ca.activeAnswer:""}`},Kr[mt]),b.createElement(mr.Z,{flex:1,className:`${ca.editorWrap} ml15`,onClick:pn},b.createElement(Ur,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Vn,value:se==null?void 0:se[Pe],onChange:Tt=>{Se(Yr(Hr({},se),{[Pe]:Tt}))}})),b.createElement(mr.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:$t,className:`${ca.setAnswerBtn} ${ft?ca.activeAnswer:""}`},ft?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),b.createElement(mr.Z,{className:ca.actionWrapper},b.createElement(ot.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},b.createElement(oe.Z,{className:ca.addIcon,onClick:bt,style:{visibility:wn?"visible":"hidden"}})),b.createElement(ot.Z,{title:"\u5220\u9664"},b.createElement(ue.Z,{className:ca.deleteIcon,onClick:Ct,style:{visibility:mt>1?"visible":"hidden"}}))))},yt=({questionTitlePlaceholder:se,titleKey:Se,choiceKey:Pe,analysisKey:rt,choiceTextKey:mt,answerKey:Vn,choiceOptionsPath:pn,allowChangeMode:Jt=!0,form:dt,showAnalysis:qt=!0})=>{const[wn,bt]=(0,b.useState)(),[Ct,ft]=(0,b.useState)(!1);return b.createElement("div",{className:ca.wrap},b.createElement("div",{className:ca.questionTitleEditorWrap},b.createElement(we.default.Item,{label:"\u9898\u5E72",name:Se,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Ar,{scrollId:Array.isArray(Se)?Se.join("_"):`${Se}`,watch:!0,height:140,placeholder:se}))),b.createElement(we.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),b.createElement(we.default.List,{name:Pe,rules:[{validator(An,$t){const Tt=$t.some(Ht=>Ht[Vn]===1),sn=$t.findIndex(Ht=>{var ua;return((ua=Ht[mt])==null?void 0:ua.length)<=0});return sn!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Kr[sn]}\u9009\u9879\u7684\u5185\u5BB9`)):Tt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(An,{add:$t,remove:Tt})=>b.createElement("div",{id:Array.isArray(pn)?pn.join("_"):`${pn}`},An.map((sn,Ht)=>{var ua=sn,{key:hn,name:gn}=ua,Zr=hr(ua,["key","name"]);const $r=wn===hn,er=()=>{bt(hn)},eo=Ht<7&&Ht===An.length-1,sa=()=>$t({[mt]:"",[Vn]:0}),to=()=>Tt(gn);return b.createElement(we.default.Item,Yr(Hr({},Zr),{key:hn,name:gn,noStyle:!0}),b.createElement(xt,{choiceTextKey:mt,answerKey:Vn,index:Ht,isEdit:$r,setInputActive:er,form:dt,choiceOptionsPath:pn,allowChangeMode:Jt,showAddIcon:eo,addItem:sa,deleteItem:to}))}),An.length<8&&b.createElement("div",{className:`${ca.addBtn} mb30`,onClick:()=>$t({[mt]:"",[Vn]:0})},"\u6DFB\u52A0\u9009\u9879"))),qt&&b.createElement("div",{onClick:()=>ft(!0)},b.createElement(we.default.Item,{name:rt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(Ur,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ct}))))};var Et=ae(59301),Mn=Object.defineProperty,Za=Object.defineProperties,rr=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,$a=Object.prototype.hasOwnProperty,Xa=Object.prototype.propertyIsEnumerable,ao=(se,Se,Pe)=>Se in se?Mn(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,dr=(se,Se)=>{for(var Pe in Se||(Se={}))$a.call(Se,Pe)&&ao(se,Pe,Se[Pe]);if(Pn)for(var Pe of Pn(Se))Xa.call(Se,Pe)&&ao(se,Pe,Se[Pe]);return se},Ga=(se,Se)=>Za(se,rr(Se)),wr=(se,Se)=>{var Pe={};for(var rt in se)$a.call(se,rt)&&Se.indexOf(rt)<0&&(Pe[rt]=se[rt]);if(se!=null&&Pn)for(var rt of Pn(se))Se.indexOf(rt)<0&&Xa.call(se,rt)&&(Pe[rt]=se[rt]);return Pe};const Bo=({value:se,onChange:Se})=>{const Pe=mt=>{Ue.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ca.modal,onOk:()=>{const Vn=[...se];Vn.splice(mt,1),Se(Vn)}})},rt=()=>{const mt=[...se];mt.push(""),Se(mt)};return Et.createElement(Aa.Z,{className:"ml20"},Et.createElement(mr.Z,{flex:1},se==null?void 0:se.map((mt,Vn)=>Et.createElement(Aa.Z,{key:`${mt}_${Vn}`,align:"middle",className:"mb20"},Et.createElement(We.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:mt,autoSize:{maxRows:3},maxLength:1e3,onBlur:pn=>{const Jt=[...se],dt=pn.target.value.trim();Jt[Vn]=dt,Se(Jt)}}),Et.createElement(ot.Z,{title:"\u5220\u9664"},Et.createElement(ue.Z,{className:ca.deleteIcon,style:{marginLeft:15,visibility:Vn>0?"visible":"hidden"},onClick:()=>Pe(Vn)}))))),Et.createElement(mr.Z,null,Et.createElement("div",{className:`${ca.addBtn}`,onClick:()=>{rt()}},"\u65B0\u589E\u7B54\u6848")))},ri=({value:se=!0,onChange:Se})=>Et.createElement(_a.Z,{checked:!se,onChange:Pe=>{Se(!Pe)}}),Rr="\u2581",So=({questionTitlePlaceholder:se,form:Se,name:Pe,scoreByBlank:rt,answerKey:mt,titleKey:Vn="name",analysisKey:pn="analysis",isOrdered:Jt="is_ordered"})=>{var dt,qt;const[wn,bt]=(0,b.useState)(!1),Ct=(hn,gn)=>{const Zr=gn.line;let $r=0;for(let eo=0;eo{const er=hn.getRange(gn.from,gn.to);let eo=0;if(gn.text.forEach(sa=>{eo+=sa.split(Rr).length-1}),gn.origin!=="setValue"){if(er&&er.indexOf(Rr)!==-1){const sa=er.split(Rr).length-1,to=Ct(hn,gn.from);if(console.log(`\u5220\u9664${sa}\u4E2A\uFF0C \u524D\u9762\u6709${to}\u4E2A\uFF0C\u65B0\u589E${eo}\u4E2A`),sa>1){const Xr=Array.from({length:sa},(Fo,kr)=>to+kr);$r(Xr)}else $r(to)}else if(eo>0){const sa=Ct(hn,gn.from);console.log(`\u65B0\u589E${eo}\u4E2A\uFF0C\u4E4B\u524D\u6709${sa}\u4E2A`),Zr(eo,sa)}}},An=()=>{const hn=Se.getFieldValue(["sub_item_banks",...mt]);Se.setFieldValue(["sub_item_banks",...mt],hn==null?void 0:hn.map((gn,Zr)=>Ga(dr({},gn),{position:Zr+1})))},$t=(0,b.useRef)(),Tt=(hn,gn)=>{for(let Zr=0;Zr{sn.current(hn),An()},ua=(qt=(dt=Se.getFieldValue("sub_item_banks"))==null?void 0:dt[mt==null?void 0:mt[0]])==null?void 0:qt[mt==null?void 0:mt[1]];return console.log(Se==null?void 0:Se.getFieldValue(["sub_item_banks",...rt])),Et.createElement("div",{className:ca.wrap},Et.createElement("div",{className:ca.questionTitleEditorWrap},Et.createElement(we.default.Item,{label:"\u9898\u5E72",name:Vn,labelCol:{span:24},rules:[{required:!0}]},Et.createElement(Ar,{scrollId:"name",watch:!0,height:140,placeholder:se,showNullButton:!0,onCMBeforeChange:(hn,gn)=>{ft(hn,gn,Tt,Ht)}}))),Et.createElement(we.default.List,{name:mt,rules:[{validator(hn,gn){if((gn==null?void 0:gn.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Zr of gn){const{answer_text:$r}=Zr||{};if($r!=null&&$r.some(er=>(er==null?void 0:er.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(hn,{add:gn,remove:Zr},{errors:$r})=>($t.current=gn,sn.current=Zr,Et.createElement(Et.Fragment,null,Et.createElement(we.default.Item,{label:Et.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(hn!=null&&hn.length)&&Et.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),hn.map((er,eo)=>{var sa=er,{key:to,name:Xr}=sa,Fo=wr(sa,["key","name"]);return Et.createElement(Aa.Z,{className:"mb20",key:to,align:"top"},Et.createElement(mr.Z,{flex:"0 0 auto",className:`${ca.blankIndex} pt5`},"\u586B\u7A7A\u9879",eo+1),Et.createElement(mr.Z,{flex:1},Et.createElement(Aa.Z,{align:"top",justify:"space-between"},Et.createElement(mr.Z,{flex:1},Et.createElement(we.default.Item,Ga(dr({},Fo),{name:[Xr,"answer_text"],noStyle:!0}),Et.createElement(Bo,null))),(Se==null?void 0:Se.getFieldValue(["sub_item_banks",...rt]))&&Et.createElement(mr.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},Et.createElement(we.default.Item,Ga(dr({},Fo),{name:[Xr,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ca.blankInputNumberWrapper}),Et.createElement(De.Z,{onChange:()=>{var kr,Lo;let wo=Se==null?void 0:Se.getFieldValue(["sub_item_banks",mt==null?void 0:mt[0],"standard_answers"]),gi=0;for(let kn in wo)(kr=wo[kn])!=null&&kr.score&&(gi+=Number((Lo=wo[kn])==null?void 0:Lo.score));Se==null||Se.setFieldValue(["sub_item_banks",mt==null?void 0:mt[0],"question_score"],gi)},className:ca.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Et.createElement(we.default.Item,Ga(dr({},Fo),{name:[Xr,"position"],noStyle:!0}),Et.createElement(We.default,{type:"hidden"}))))})))),Et.createElement(Aa.Z,{align:"middle"},Et.createElement(we.default.Item,{name:[Pe,"downcase"],valuePropName:"checked"},Et.createElement(_a.Z,null)),Et.createElement(mr.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Et.createElement(Aa.Z,{align:"middle"},Et.createElement(we.default.Item,{name:[Pe,"no_space"],valuePropName:"checked"},Et.createElement(_a.Z,null)),Et.createElement(mr.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(ua==null?void 0:ua.length)>1&&Et.createElement(Aa.Z,{align:"middle",className:(ua==null?void 0:ua.length)>1?"mb30":`${ca.hide}`},Et.createElement(we.default.Item,{name:Jt},Et.createElement(ri,null)),Et.createElement(mr.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Et.createElement("div",{onClick:()=>bt(!0)},Et.createElement(we.default.Item,{name:pn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Et.createElement(Ur,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:wn}))))};var jo=Object.defineProperty,ia=Object.defineProperties,Dn=Object.getOwnPropertyDescriptors,Hn=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,Bt=(se,Se,Pe)=>Se in se?jo(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,on=(se,Se)=>{for(var Pe in Se||(Se={}))me.call(Se,Pe)&&Bt(se,Pe,Se[Pe]);if(Hn)for(var Pe of Hn(Se))gt.call(Se,Pe)&&Bt(se,Pe,Se[Pe]);return se},pt=(se,Se)=>ia(se,Dn(Se)),Ln=(se,Se)=>{var Pe={};for(var rt in se)me.call(se,rt)&&Se.indexOf(rt)<0&&(Pe[rt]=se[rt]);if(se!=null&&Hn)for(var rt of Hn(se))Se.indexOf(rt)<0&>.call(se,rt)&&(Pe[rt]=se[rt]);return Pe};const yn={\u6B63\u786E:"T",\u9519\u8BEF:"F"},mn=({value:se,onChange:Se,form:Pe,choiceKey:rt})=>{const mt=(se==null?void 0:se.is_answer)===1,Vn=se==null?void 0:se.choice_text,pn=()=>{var Jt;const dt=(Jt=Pe==null?void 0:Pe.getFieldValue(["sub_item_banks",...rt]))==null?void 0:Jt.map(qt=>({choice_text:qt.choice_text,is_answer:0}));Pe==null||Pe.setFieldValue(["sub_item_banks",...rt],dt),Se(pt(on({},se),{is_answer:1}))};return b.createElement(Aa.Z,{className:ca.choiceWrap,align:"middle",wrap:!1},b.createElement(mr.Z,{onClick:pn,className:`${ca.choiceIndex} ${ca.judgementIndex} ${mt?ca.activeAnswer:""}`},yn[Vn]),b.createElement(mr.Z,{flex:1,className:`${ca.editorWrap} ml15`},b.createElement("div",{className:`${ca.inputBorder} ${ca.placeholder} ${mt?ca.activeJudgementAnswer:""}`},Vn)),b.createElement(mr.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:pn,className:`${ca.setAnswerBtn} ${mt?ca.activeAnswer:""}`},mt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},Fn=({questionTitlePlaceholder:se,choiceKey:Se="choices",form:Pe,titleKey:rt="name",analysisKey:mt="analysis"})=>{const[Vn,pn]=(0,b.useState)(!1);return b.createElement("div",{className:ca.wrap},b.createElement("div",{className:ca.questionTitleEditorWrap},b.createElement(we.default.Item,{label:"\u9898\u5E72",name:rt,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Ar,{scrollId:"name",watch:!0,height:140,placeholder:se}))),b.createElement(we.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},b.createElement(we.default.List,{name:Se,rules:[{validator(Jt,dt){return dt.some(wn=>(wn==null?void 0:wn.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Jt=>b.createElement("div",{id:"choices"},Jt.map(dt=>{var qt=dt,{key:wn,name:bt}=qt,Ct=Ln(qt,["key","name"]);return b.createElement(we.default.Item,pt(on({},Ct),{key:wn,name:bt,noStyle:!0}),b.createElement(mn,{form:Pe,choiceKey:Se}))})))),b.createElement("div",{onClick:()=>pn(!0)},b.createElement(we.default.Item,{name:mt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(Ur,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Vn}))))};var Oa=ae(12563),cr={ai_config:"ai_config___cJ8LY",znpy:"znpy___RTAAN",pfbz_ts:"pfbz_ts___ux6Ec",btns_pfbz:"btns_pfbz___QFXM_",lable_name1:"lable_name1___c_vnV",h_lh_40:"h_lh_40___ptAW7"},Fr=ae(50852),ma=ae(48722),va=ae(59301);const or=({qitem:se,form:Se,exercise:Pe,loading:rt,dispatch:mt,aiReviewSettings:Vn=null})=>va.createElement("div",{className:cr.ai_config},va.createElement("div",{style:{lineHeight:"32px",paddingBottom:8}},"\u8BC4\u5206\u6807\u51C6"),va.createElement("div",{className:cr.pfbz_ts},va.createElement("div",{style:{color:"#333"}},"\u63D0\u793A\uFF1A\u53C2\u8003\u7B54\u6848\u548C\u9898\u76EE\u89E3\u6790\u8D8A\u5B8C\u5584\uFF0CAI\u667A\u80FD\u8BC4\u9605\u5C31\u8D8A\u7CBE\u51C6~"),va.createElement("div",{className:"flex"},va.createElement("div",{className:cr.btns_pfbz,onClick:()=>{mt({type:"exercise/setActionTabs",payload:{key:"\u6D4B\u8BD5AI\u8BC4\u5206",questionId:se==null?void 0:se.question_id,ai_review_settings:Se.getFieldValue(Vn||"ai_review_settings")}})}},va.createElement("img",{src:Fr.Z}),"\u6D4B\u8BD5AI\u8BC4\u5206"))),va.createElement("div",{style:{background:"#F6F7F9"}},va.createElement(we.default.List,{name:Vn||"ai_review_settings"},(pn,{add:Jt,remove:dt})=>pn.map((qt,wn)=>{var bt;return va.createElement(Aa.Z,{key:qt.key,style:{padding:"5px 10px 5px 15px"}},va.createElement(mr.Z,{className:cr.lable_name1},"\u8BC4\u5206\u9879\u76EE"),va.createElement(mr.Z,null,va.createElement(we.default.Item,{className:"ml10",name:[qt.name,"name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u9879\u76EE"}]},va.createElement(We.default,{onChange:Ct=>{Se.setFieldValue([qt.name,"content"],Ct.target.value)},placeholder:"\u8BF7\u8F93\u5165\u6700\u591A10\u5B57\u7B26",size:"large",style:{width:142},maxLength:10,className:"mr15"}))),va.createElement(mr.Z,{className:cr.lable_name1},"\u8BC4\u5206\u6807\u51C6"),va.createElement(mr.Z,null,va.createElement(we.default.Item,{className:"ml10",name:[qt.name,"content"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6"}]},va.createElement(We.default,{onChange:Ct=>{Se.setFieldValue([qt.name,"content"],Ct.target.value)},placeholder:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6",size:"large",style:{width:Vn?232:318},className:"mr15",maxLength:500}))),va.createElement(mr.Z,{className:cr.lable_name1},"\u6743\u91CD"),va.createElement(mr.Z,null,va.createElement(we.default.Item,{className:"ml10",name:[qt.name,"weight"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6743\u91CD"},{pattern:/^(?!0(\.0+)?$)(\d+(\.\d)?)$/,message:"\u6700\u591A\u4FDD\u7559\u4E00\u4F4D\u5C0F\u6570"}]},va.createElement(De.Z,{value:Se.getFieldValue([qt.name,"weight"]),onChange:Ct=>{Number.isInteger(Ct)||Se.setFieldValue([qt.name,"weight"],parseFloat(Ct).toFixed(2))},size:"large",addonAfter:"%",placeholder:"\u8BF7\u8F93\u5165\u6743\u91CD",min:.01,step:1,max:100,style:{width:"110px"}}))),va.createElement(Aa.Z,{className:(bt=cr)==null?void 0:bt.h_lh_40},va.createElement(mr.Z,null,va.createElement("i",{className:"iconfont icon-tianjiatimu ml10 current",style:{color:"#00B187"},onClick:()=>{if(pn.length>=10)return xe.ZP.info("\u6700\u591A\u53EA\u80FD\u6DFB\u52A010\u4E2A\u8BC4\u5206\u9879\u76EE");Jt()}})),wn>0&&va.createElement(mr.Z,null,va.createElement("i",{className:"iconfont icon-shanjian1 ml10 current",style:{color:"#E30000"},onClick:()=>{dt(qt.name)}}))))}))),va.createElement(ma.Z,null));var Er=(0,he.connect)(({exercise:se,loading:Se})=>({exercise:se,loading:Se.effects}))(or),Ko=Object.defineProperty,li=Object.defineProperties,Uo=Object.getOwnPropertyDescriptors,oi=Object.getOwnPropertySymbols,vi=Object.prototype.hasOwnProperty,Si=Object.prototype.propertyIsEnumerable,Fl=(se,Se,Pe)=>Se in se?Ko(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,tl=(se,Se)=>{for(var Pe in Se||(Se={}))vi.call(Se,Pe)&&Fl(se,Pe,Se[Pe]);if(oi)for(var Pe of oi(Se))Si.call(Se,Pe)&&Fl(se,Pe,Se[Pe]);return se},nl=(se,Se)=>li(se,Uo(Se)),al=(se,Se)=>{var Pe={};for(var rt in se)vi.call(se,rt)&&Se.indexOf(rt)<0&&(Pe[rt]=se[rt]);if(se!=null&&oi)for(var rt of oi(se))Se.indexOf(rt)<0&&Si.call(se,rt)&&(Pe[rt]=se[rt]);return Pe};const ru=se=>{var Se=se,{value:Pe,onChange:rt}=Se,mt=al(Se,["value","onChange"]);const Vn=pn=>{rt([pn])};return b.createElement(tn.Z,nl(tl({},mt),{defaultValue:Pe==null?void 0:Pe[0],onChange:Vn}))},sl=se=>{if(!se)return!1;let Se=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return se==="|"?(xe.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Rl=({value:se=[],onClose:Se})=>b.createElement(Oa.default,{closable:!0,onClose:Se,className:ca.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},se.join(" \u6216 "))),rs=({questionTitlePlaceholder:se,form:Se,showKeywords:Pe,isMustKeyWords:rt=Pe,titleKey:mt="name",analysisKey:Vn="analysis",answerTexts:pn="answer_texts",keywords:Jt="keywords",useKeywords:dt="use_keywords",indexs:qt,qitem:wn,exerciseitem:bt,aiReviewSettings:Ct})=>{var ft,An,$t,Tt,sn;const[Ht,ua]=(0,b.useState)(!1),[hn,gn]=(0,b.useState)(""),Zr=(An=(ft=Se.getFieldValue("sub_item_banks"))==null?void 0:ft[dt==null?void 0:dt[0]])==null?void 0:An[dt==null?void 0:dt[1]],$r=(Tt=($t=Se.getFieldValue("sub_item_banks"))==null?void 0:$t[dt==null?void 0:dt[0]])==null?void 0:Tt.question_score;return b.createElement("div",{className:ca.wrap},b.createElement("div",{className:ca.questionTitleEditorWrap},b.createElement(we.default.Item,{label:"\u9898\u5E72",name:mt,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Ar,{scrollId:"name",watch:!0,height:140,placeholder:se}))),b.createElement(we.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:pn,labelCol:{span:24}},b.createElement(ru,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Pe&&!rt&&b.createElement(we.default.Item,{hidden:!0,name:dt,valuePropName:"checked"},b.createElement(_a.Z,{defaultChecked:!0})),Pe&&rt&&b.createElement(Aa.Z,{align:"middle",className:"mb30"},b.createElement(we.default.Item,{name:dt,valuePropName:"checked"},b.createElement(_a.Z,null)),b.createElement(mr.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(mr.Z,null,b.createElement(ot.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(Sn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Zr||!rt)&&b.createElement(we.default.List,{name:Jt,rules:[{validator(er,eo){return rt?eo!=null&&eo.length?(eo==null?void 0:eo.reduce((to,Xr)=>to+Xr.score,0))>parseFloat($r)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(er,{add:eo,remove:sa})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${ca.title} mb10`},rt?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(Aa.Z,{align:"middle",className:"font14 mb30"},b.createElement(mr.Z,{flex:1},b.createElement(We.default,{value:hn,onChange:to=>{gn(to.target.value)},maxLength:50,allowClear:!0,onPressEnter:to=>{var Xr,Fo,kr,Lo;const wo=`${(Xr=to.target)==null?void 0:Xr.value}`,gi=(kr=(Fo=wo==null?void 0:wo.split("|"))==null?void 0:Fo.filter(pi=>!!pi))==null?void 0:kr.map(pi=>pi==null?void 0:pi.trim()),kn=Se.getFieldValue(["sub_item_banks",...Jt]),Ai=((Lo=kn==null?void 0:kn.map(pi=>pi==null?void 0:pi.keyword))==null?void 0:Lo.flat())||[];for(const pi of gi)if(Ai.includes(pi)){xe.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}sl(wo)&&(eo({keyword:gi,score:1}),gn(""))},className:ca.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(mr.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),er.map(to=>{var Xr=to,{key:Fo,name:kr}=Xr,Lo=al(Xr,["key","name"]);return b.createElement(Aa.Z,{key:Fo,className:"mb20",style:{marginRight:148}},b.createElement(mr.Z,{flex:1},b.createElement(Aa.Z,{align:"middle",justify:"space-between"},b.createElement(we.default.Item,nl(tl({},Lo),{name:[kr,"keyword"]}),b.createElement(Rl,{onClose:()=>sa(kr)})),rt&&b.createElement(we.default.Item,nl(tl({},Lo),{name:[kr,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ca.blankInputNumberWrapper}),b.createElement(De.Z,{className:ca.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>ua(!0)},b.createElement(we.default.Item,{name:Vn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(Ur,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ht}))),((sn=bt==null?void 0:bt.exercise)==null?void 0:sn.is_open_ai_review)&&b.createElement(Er,{form:Se,qitem:wn,aiReviewSettings:Ct}))};var _r=ae(59301),bu=Object.defineProperty,Nu=Object.defineProperties,os=Object.getOwnPropertyDescriptors,ki=Object.getOwnPropertySymbols,Qu=Object.prototype.hasOwnProperty,Iu=Object.prototype.propertyIsEnumerable,Au=(se,Se,Pe)=>Se in se?bu(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,Ou=(se,Se)=>{for(var Pe in Se||(Se={}))Qu.call(Se,Pe)&&Au(se,Pe,Se[Pe]);if(ki)for(var Pe of ki(Se))Iu.call(Se,Pe)&&Au(se,Pe,Se[Pe]);return se},ou=(se,Se)=>Nu(se,os(Se)),Uu=(se,Se)=>{var Pe={};for(var rt in se)Qu.call(se,rt)&&Se.indexOf(rt)<0&&(Pe[rt]=se[rt]);if(se!=null&&ki)for(var rt of ki(se))Se.indexOf(rt)<0&&Iu.call(se,rt)&&(Pe[rt]=se[rt]);return Pe};const{Panel:Mu}=Mr.default,Ru=({questionTitlePlaceholder:se,choiceKey:Se,form:Pe,withScore:rt,exerciseitem:mt})=>{const Vn=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}],[pn,Jt]=(0,b.useState)(),[dt,qt]=(0,b.useState)([]),wn=Ct=>{qt(Ct)},bt=({value:Ct})=>_r.createElement("div",{style:{width:150,paddingLeft:11}},Ct);return _r.createElement("div",{className:ca.wrap},_r.createElement("div",{className:ca.questionTitleEditorWrap},_r.createElement(we.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},_r.createElement(Ar,{scrollId:"name",watch:!0,height:140,placeholder:se}))),_r.createElement(we.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),_r.createElement(we.default.List,{name:"sub_item_banks",rules:[{validator(Ct,ft){return ft?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Ct,{add:ft,remove:An,move:$t})=>{const Tt=Pe.getFieldValue("sub_item_banks");return _r.createElement(_r.Fragment,null,_r.createElement(Mr.default,{className:Ct.length>0?ca.collapseWrapper:"",bordered:!1,activeKey:dt,onChange:wn,expandIcon:({isActive:sn})=>_r.createElement("i",{className:`iconfont icon-weizhankai ${sn?ca.open:ca.close}`,style:{fontSize:14,transition:"all .2s"}})},Ct.map((sn,Ht)=>{var ua=sn,{key:hn,name:gn}=ua,Zr=Uu(ua,["key","name"]),$r,er,eo,sa,to,Xr,Fo,kr,Lo,wo,gi,kn,Ai,pi;return _r.createElement(Mu,{className:ca.panel,forceRender:!0,header:_r.createElement("div",{className:ca.panelHeader},"\u7B2C",Ht+1,"\u5C0F\u9898",_r.createElement("span",null,"\uFF08",(($r=Tt==null?void 0:Tt[gn])==null?void 0:$r.question_type)==0?"\u5355\u9009\u9898":((er=Tt==null?void 0:Tt[gn])==null?void 0:er.question_type)==1?"\u591A\u9009\u9898":((eo=Tt==null?void 0:Tt[gn])==null?void 0:eo.question_type)==3?"\u586B\u7A7A\u9898":((sa=Tt==null?void 0:Tt[gn])==null?void 0:sa.question_type)==2?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:gn,extra:_r.createElement(Aa.Z,{align:"middle",onClick:Ho=>Ho.stopPropagation()},((to=Tt==null?void 0:Tt[gn])==null?void 0:to.question_type)==3&&_r.createElement(_r.Fragment,null,_r.createElement(Oe.ZP.Group,{defaultValue:(Xr=Tt==null?void 0:Tt[gn])==null?void 0:Xr.use_blank_score,className:nt.scoreByBlankRadio,style:{marginRight:20},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:Ho=>{var zn,mi,Vi,Wi,ji;if(Pe==null||Pe.setFieldValue(["sub_item_banks",gn,"use_blank_score"],(zn=Ho==null?void 0:Ho.target)==null?void 0:zn.value),(mi=Ho==null?void 0:Ho.target)!=null&&mi.value){let Qi=0;for(let wi in(Vi=Pe==null?void 0:Pe.getFieldValue(["sub_item_banks",gn]))==null?void 0:Vi.standard_answers)Qi+=Number((ji=(Wi=Pe==null?void 0:Pe.getFieldValue(["sub_item_banks",gn]))==null?void 0:Wi.standard_answers[wi])==null?void 0:ji.score);Pe==null||Pe.setFieldValue(["sub_item_banks",gn,"question_score"],Qi||"")}Jt(new Date)}}),_r.createElement(ot.Z,{overlayInnerStyle:{width:460},title:_r.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",_r.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},_r.createElement("i",{className:"icon-tishixiaowenhao font18 mr25 c-3061d0"}))),rt&&_r.createElement(we.default.Item,ou(Ou({},Zr),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[gn,"question_score"],className:ca.blankInputNumberWrapper}),((Fo=Tt==null?void 0:Tt[gn])==null?void 0:Fo.question_type)==3&&((kr=Tt==null?void 0:Tt[gn])!=null&&kr.use_blank_score)?_r.createElement(bt,null):_r.createElement(De.Z,{className:ca.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}})),_r.createElement(Aa.Z,{align:"middle",className:"pl40",style:{width:82}},Ht!==0&&_r.createElement("div",{onClick:()=>{var Ho;$t(Ht,Ht-1);const zn=(Ho=Pe.getFieldValue("sub_item_banks"))==null?void 0:Ho.map((mi,Vi)=>(Ct.map((Wi,ji)=>{Vi===ji&&(mi.q_position=Number(Wi.name)+1)}),mi));Pe.setFieldValue("sub_item_banks",zn)}},_r.createElement(ot.Z,{title:"\u4E0A\u79FB"},_r.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),Ht{var Ho;$t(Ht,Ht+1);const zn=(Ho=Pe.getFieldValue("sub_item_banks"))==null?void 0:Ho.map((mi,Vi)=>(Ct.map((Wi,ji)=>{Vi===ji&&(mi.q_position=Number(Wi.name)+1)}),mi));Pe.setFieldValue("sub_item_banks",zn)},className:Ht===0?"":"ml10"},_r.createElement(ot.Z,{title:"\u4E0B\u79FB"},_r.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"})))),_r.createElement(ot.Z,{title:"\u5220\u9664"},_r.createElement(ue.Z,{className:`${ca.deleteIcon} ml40`,onClick:()=>An(gn)})))},_r.createElement(we.default.Item,ou(Ou({},Zr),{name:gn}),(((Lo=Tt==null?void 0:Tt[gn])==null?void 0:Lo.question_type)==0||((wo=Tt==null?void 0:Tt[gn])==null?void 0:wo.question_type)==1)&&_r.createElement(yt,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((gi=Tt==null?void 0:Tt[gn])==null?void 0:gi.question_type)==1,form:Pe,choiceKey:[gn,"choices"],titleKey:[gn,"name"],analysisKey:[gn,"analysis"],choiceOptionsPath:["sub_item_banks",gn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((kn=Tt==null?void 0:Tt[gn])==null?void 0:kn.question_type)==3&&_r.createElement(So,{form:Pe,name:gn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:[gn,"use_blank_score"],titleKey:[gn,"name"],analysisKey:[gn,"analysis"],isOrdered:[gn,"is_ordered"],answerKey:[gn,"standard_answers"],key:pn}),((Ai=Tt==null?void 0:Tt[gn])==null?void 0:Ai.question_type)==2&&_r.createElement(Fn,{form:Pe,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[gn,"name"],analysisKey:[gn,"analysis"],choiceKey:[gn,"choices"]}),((pi=Tt==null?void 0:Tt[gn])==null?void 0:pi.question_type)==4&&_r.createElement(rs,{showKeywords:!0,isMustKeyWords:!0,form:Pe,titleKey:[gn,"name"],analysisKey:[gn,"analysis"],answerTexts:[gn,"answer_texts"],useKeywords:[gn,"use_keywords"],keywords:[gn,"keywords"],aiReviewSettings:[gn,"ai_review_settings"],indexs:gn,qitem:Tt==null?void 0:Tt[gn],questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9",exerciseitem:mt})))})),Ct.length<20&&_r.createElement(Ce.Z,{menu:{items:[{label:_r.createElement("div",{onClick:()=>{ft({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:0,item_type:"SINGLE"}),qt([Ct==null?void 0:Ct.length,...dt])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:_r.createElement("div",{onClick:()=>{ft({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:1,item_type:"MULTIPLE"}),qt([Ct==null?void 0:Ct.length,...dt])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:_r.createElement("div",{onClick:()=>{ft({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",question_type:2,item_type:"JUDGMENT"}),qt([Ct==null?void 0:Ct.length,...dt])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:_r.createElement("div",{onClick:()=>{ft({name:"",analysis:"",is_ordered:!0,standard_answers:[],question_type:3,item_type:"COMPLETION",use_blank_score:!0,downcase:!0,no_space:!0}),qt([Ct==null?void 0:Ct.length,...dt])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:_r.createElement("div",{onClick:()=>{ft({name:"",answer_texts:[],keywords:[],use_keywords:!1,analysis:"",question_type:4,item_type:"SUBJECTIVE"}),qt([Ct==null?void 0:Ct.length,...dt])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(sn=>sn.show).map(sn=>({label:sn.label,key:sn.key}))}},_r.createElement("div",{className:`${ca.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var Ti=ae(59301),Yu=Object.defineProperty,Bu=Object.defineProperties,Di=Object.getOwnPropertyDescriptors,xu=Object.getOwnPropertySymbols,is=Object.prototype.hasOwnProperty,iu=Object.prototype.propertyIsEnumerable,_l=(se,Se,Pe)=>Se in se?Yu(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,Cl=(se,Se)=>{for(var Pe in Se||(Se={}))is.call(Se,Pe)&&_l(se,Pe,Se[Pe]);if(xu)for(var Pe of xu(Se))iu.call(Se,Pe)&&_l(se,Pe,Se[Pe]);return se},bl=(se,Se)=>Bu(se,Di(Se)),ls=(se,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch(qt){mt(qt)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch(qt){mt(qt)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(se,Se)).next())}),us=({qitem:se,setisedit:Se,TagDiscipline:Pe,exerciseitem:rt,seveeditor:mt,deleteitem:Vn,getTagData:pn,init:Jt,showTip:dt=!1})=>{var qt;const[wn]=we.default.useForm(),{unified_ai_setting:bt,ai_review_settings:Ct}=rt==null?void 0:rt.exercise;(0,b.useEffect)(()=>{var An;wn.setFieldsValue(bl(Cl({},se),{name:se.question_title,sub_item_banks:(An=se.sub_exercise_questions)==null?void 0:An.map($t=>{var Tt,sn;if($t.question_type==4){const Ht=bt?Ct:((Tt=$t==null?void 0:$t.ai_review_settings)==null?void 0:Tt.length)>0?$t.ai_review_settings:Ct;$t.ai_review_settings=Ht}return bl(Cl({},$t),{name:$t.question_title,choices:(sn=$t==null?void 0:$t.question_choices)==null?void 0:sn.map(Ht=>bl(Cl({},Ht),{is_answer:Ht!=null&&Ht.standard_boolean?1:0}))})}),repeat_answer:!se.repeat_answer}))},[se]);const ft=An=>{if(!(An!=null&&An.length))return!1;const $t=An.map(sn=>{var Ht;return(Ht=sn.choice_text)==null?void 0:Ht.trim().replace(/^\s+|\s+$/g,"")});return new Set($t).size!==$t.length};return Ti.createElement("div",null,Ti.createElement(we.default,{form:wn,colon:!1,onValuesChange:(An,$t)=>{var Tt,sn,Ht,ua;if(An!=null&&An.sub_item_banks){let hn=((Tt=wn.getFieldValue("sub_item_banks"))==null?void 0:Tt.length)>0&&((Ht=(sn=wn.getFieldValue("sub_item_banks"))==null?void 0:sn.map(gn=>{var Zr;if(gn.question_type==3&&(gn!=null&&gn.use_blank_score)){let $r=0;for(let er in gn==null?void 0:gn.standard_answers)$r+=Number((Zr=gn==null?void 0:gn.standard_answers[er])==null?void 0:Zr.score);return $r}else return gn.question_score}))==null?void 0:Ht.filter(gn=>gn));(hn==null?void 0:hn.length)>0&&wn.setFieldsValue({question_score:(ua=parseFloat(hn.reduce((gn,Zr)=>parseFloat(gn)+parseFloat(Zr))))==null?void 0:ua.toFixed(1)})}},onFinish:An=>{var $t,Tt;if(($t=An.sub_item_banks)==null?void 0:$t.some(Ht=>Ht.question_type===0||Ht.question_type===1?ft(Ht.choices):!1)){xe.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}mt(bl(Cl(Cl({},se),An),{question_title:An.name,sub_questions:(Tt=An==null?void 0:An.sub_item_banks)==null?void 0:Tt.map(Ht=>{var ua,hn,gn,Zr;return(Ht==null?void 0:Ht.question_type)==3?bl(Cl({},Ht),{question_title:Ht.name,item_type:Ht==null?void 0:Ht.question_type}):bl(Cl({},Ht),{question_title:Ht.name,question_choices:(hn=(ua=Ht==null?void 0:Ht.choices)==null?void 0:ua.map)==null?void 0:hn.call(ua,$r=>$r.choice_text),standard_answers:(Zr=(gn=Ht==null?void 0:Ht.choices)==null?void 0:gn.map)==null?void 0:Zr.call(gn,($r,er)=>($r==null?void 0:$r.is_answer)===1&&er+1).filter($r=>$r),item_type:Ht==null?void 0:Ht.question_type})})}))},onFinishFailed:An=>ls(void 0,null,function*(){var $t,Tt;xe.ZP.error(An.errorFields[0].errors[0]),wn.scrollToField((Tt=($t=An==null?void 0:An.errorFields)==null?void 0:$t[0])==null?void 0:Tt.name,{behavior:"smooth",block:"center"})})},Ti.createElement("div",{style:{display:"flex",alignItems:"center"}},Ti.createElement("div",{style:{flex:1}},Ti.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Ti.createElement("span",null,"\u7EC4\u5408\u9898")),((qt=rt==null?void 0:rt.exercise)==null?void 0:qt.exercise_status)==1&&!(se!=null&&se.isadd)&&Ti.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Vn()}},Ti.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Ti.createElement(ke.ZP,{onClick:()=>{var An;se.isadd?(Se(!1),Jt()):(wn.setFieldsValue(bl(Cl({},se),{name:se.question_title,sub_item_banks:(An=se.sub_exercise_questions)==null?void 0:An.map($t=>{var Tt;return bl(Cl({},$t),{name:$t.question_title,choices:(Tt=$t==null?void 0:$t.question_choices)==null?void 0:Tt.map(sn=>bl(Cl({},sn),{is_answer:sn!=null&&sn.standard_boolean?1:0}))})}),repeat_answer:!se.repeat_answer})),Se(!1))}},"\u53D6\u6D88"),Ti.createElement(ot.Z,{overlayClassName:nt.shake,open:dt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Ti.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Ti.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Ti.createElement(ke.ZP,{className:"ml20",type:"primary",onClick:()=>{wn.submit()}},"\u4FDD\u5B58"))),Ti.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Ti.createElement(fn.Z,{text:"\uFF08\u7EC4\u5408\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5C0F\u9898\u5206\u503C\u4E4B\u548C\uFF09"}),Ti.createElement(Ru,{form:wn,withScore:!0,choiceKey:"",exerciseitem:rt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7EC4\u5408\u9898\u9898\u5E72\u5185\u5BB9"}),Ti.createElement(Ca,{getTagData:pn,qitem:se,exerciseitem:rt,TagDiscipline:Pe,form:wn}))))},ei=ae(59301),ss=Object.defineProperty,ds=Object.defineProperties,cs=Object.getOwnPropertyDescriptors,Ku=Object.getOwnPropertySymbols,Tu=Object.prototype.hasOwnProperty,ju=Object.prototype.propertyIsEnumerable,_u=(se,Se,Pe)=>Se in se?ss(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,rl=(se,Se)=>{for(var Pe in Se||(Se={}))Tu.call(Se,Pe)&&_u(se,Pe,Se[Pe]);if(Ku)for(var Pe of Ku(Se))ju.call(Se,Pe)&&_u(se,Pe,Se[Pe]);return se},dl=(se,Se)=>ds(se,cs(Se)),yu=(se,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch(qt){mt(qt)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch(qt){mt(qt)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(se,Se)).next())}),Xu=({qitem:se,setqitem:Se,setisedit:Pe,TagDiscipline:rt,exerciseitem:mt,seveeditor:Vn,deleteitem:pn,showTip:Jt})=>{var dt,qt;const[wn]=we.default.useForm();return(0,b.useEffect)(()=>{var bt,Ct;wn.setFieldsValue(dl(rl({},se),{name:se==null?void 0:se.question_title,choices:(bt=se==null?void 0:se.question_choices)==null?void 0:bt.map(ft=>dl(rl({},ft),{standard_boolean:ft!=null&&ft.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)})),se.shixun=(Ct=se==null?void 0:se.shixun)==null?void 0:Ct.map(ft=>dl(rl({},ft),{defaultscore:ft.challenge_score}))},[]),ei.createElement("div",null,ei.createElement(we.default,{form:wn,colon:!1,onFinish:bt=>{var Ct,ft;let An=dl(rl({},bt),{question_scores:(Ct=se==null?void 0:se.shixun)==null?void 0:Ct.map($t=>$t.challenge_score),item_type:se==null?void 0:se.question_type,choices:(ft=bt==null?void 0:bt.choices)==null?void 0:ft.map($t=>dl(rl({},$t),{is_answer:$t.standard_boolean}))});Vn(rl(rl({},se),An))},onFinishFailed:bt=>yu(void 0,null,function*(){var Ct,ft;xe.ZP.error(bt.errorFields[0].errors[0]),wn.scrollToField((ft=(Ct=bt==null?void 0:bt.errorFields)==null?void 0:Ct[0])==null?void 0:ft.name,{behavior:"smooth",block:"center"})})},ei.createElement("div",{style:{display:"flex",alignItems:"center"}},ei.createElement("div",{style:{flex:1}},ei.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),ei.createElement("span",null,"\u5B9E\u8BAD\u9898")),((dt=mt==null?void 0:mt.exercise)==null?void 0:dt.exercise_status)==1&&!(se!=null&&se.isadd)&&ei.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{pn()}},ei.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),ei.createElement(ke.ZP,{onClick:()=>{var bt,Ct;wn.setFieldsValue(dl(rl({},se),{name:se==null?void 0:se.question_title,choices:(bt=se==null?void 0:se.question_choices)==null?void 0:bt.map(ft=>dl(rl({},ft),{standard_boolean:ft!=null&&ft.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)})),se.shixun=(Ct=se==null?void 0:se.shixun)==null?void 0:Ct.map(ft=>dl(rl({},ft),{challenge_score:ft.defaultscore})),Se(rl({},se)),Pe(!1)}},"\u53D6\u6D88"),ei.createElement(ot.Z,{overlayClassName:nt.shake,open:Jt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:ei.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},ei.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},ei.createElement(ke.ZP,{className:"ml20",type:"primary",onClick:()=>yu(void 0,null,function*(){var bt,Ct,ft;if(((Ct=(bt=se==null?void 0:se.shixun)==null?void 0:bt.map)==null?void 0:Ct.call(bt,An=>An.challenge_score).filter(An=>An).length)<((ft=se==null?void 0:se.shixun)==null?void 0:ft.length)){xe.ZP.info("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A");return}wn.submit()})},"\u4FDD\u5B58"))),ei.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},ei.createElement(fn.Z,{text:"\uFF08\u5B9E\u8BAD\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5173\u5361\u5206\u503C\u4E4B\u548C\uFF09"}),ei.createElement(we.default.Item,{label:"\u9898\u5E72",name:"question_title",labelCol:{span:24},rules:[{required:!0}]},ei.createElement(tn.Z,{watch:!0,height:140,placeholder:"",defaultValue:se.question_title})),ei.createElement(Aa.Z,{style:{marginBottom:15},align:"middle",justify:"space-between"},ei.createElement("div",null,ei.createElement("span",{style:{color:"red"}},"*"),"\u5173\u5361\u540D\u79F0"),ei.createElement("a",{href:`/shixuns/${se==null?void 0:se.shixun_identifier}/challenges?exercise=true`,target:"_blank"},ei.createElement("i",{onClick:()=>{},className:"iconfont icon-shixunkecheng font14 mr5"}),"\u5B9E\u8BAD\u8BE6\u60C5")),(qt=se==null?void 0:se.shixun)==null?void 0:qt.map((bt,Ct)=>ei.createElement("div",{style:{display:"flex",marginBottom:20}},ei.createElement("div",{style:{flex:1}},Ct+1,"\u3001",bt.challenge_name),ei.createElement("div",null,ei.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C",ei.createElement(De.Z,{precision:1,value:bt==null?void 0:bt.challenge_score,onChange:ft=>{const An=JSON.parse(JSON.stringify((se==null?void 0:se.shixun)||[]));An[Ct].challenge_score=ft;const $t=An.every(sn=>!sn.challenge_score),Tt=parseFloat(An==null?void 0:An.map(sn=>sn.challenge_score).reduce((sn,Ht)=>parseFloat(sn||0)+parseFloat(Ht||0)));wn.setFieldsValue({question_score:$t?"":Tt.toFixed(1)}),Se(dl(rl({},se),{shixun:An}))},max:200,min:.1,style:{marginLeft:10,width:150},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle"})))))))},Ia={flex_box_center:"flex_box_center___Vhtb1",flex_space_between:"flex_space_between___k2ZrJ",flex_box_vertical_center:"flex_box_vertical_center___tn6Db",flex_box_center_end:"flex_box_center_end___k3eNX",flex_box_column:"flex_box_column___rsWbi",warp:"warp___UlRJc",indexTag:"indexTag___rjJ1u",normalWrap:"normalWrap___Qm4zY",redio:"redio___VW3yr",redioitem:"redioitem___jAPlJ",redioitemyes:"redioitemyes___VoiQ1",title:"title___Dt2dl",titleyes:"titleyes___Fjh3a",yestag:"yestag___CXrPv",checkbox:"checkbox___CgMU_",checkboxitem:"checkboxitem___PpJ9n",checkboxitemyes:"checkboxitemyes___pCfvZ",bottom:"bottom___BqrmJ",bottomitem:"bottomitem___Qk2rG",left:"left___l29lW",right:"right___nB1XE",completion:"completion___y1m7L",content:"content___AmQy4",items:"items___lIt8e",simple:"simple___zxJLH",shixunWrapper:"shixunWrapper___kAYdL",shixun:"shixun___UE6xS",score:"score___Px5Fq",qtitle:"qtitle___wG7Nn",program:"program___gzKdL",combination:"combination___R0ysn",qtype:"qtype___U0Suy",divname:"divname___guDo9"},gs=ae(1710),Zu=ae(78926),Fu=ae(24334),qn=ae(59301);const Jl=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],ms=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}];var fs=({qitem:se,exercise:Se})=>{var Pe,rt,mt,Vn,pn,Jt,dt,qt,wn,bt,Ct,ft,An,$t,Tt,sn,Ht,ua,hn,gn,Zr,$r,er,eo;return qn.createElement("div",{className:Ia.warp},((se==null?void 0:se.question_type)===0||(se==null?void 0:se.question_type)===2)&&qn.createElement("div",{className:Ia.normalWrap},(Pe=se==null?void 0:se.question_choices)==null?void 0:Pe.map((sa,to)=>qn.createElement("div",{className:Ia.redio},!(sa!=null&&sa.standard_boolean)&&qn.createElement("span",{className:Ia.redioitem}),(sa==null?void 0:sa.standard_boolean)&&qn.createElement("i",{className:`${Ia.redioitemyes} icon-duigou1`}),qn.createElement("span",{className:`${sa!=null&&sa.standard_boolean?Ia.titleyes:Ia.title} ${Ia.indexTag}`},(se==null?void 0:se.question_type)===0?Jl[to]:""),qn.createElement(Rt.Z,{className:sa!=null&&sa.standard_boolean?Ia.titleyes:Ia.title,value:sa==null?void 0:sa.choice_text}),(sa==null?void 0:sa.standard_boolean)&&qn.createElement("div",{className:Ia.yestag},"\u6B63\u786E\u7B54\u6848")))),(se==null?void 0:se.question_type)===1&&qn.createElement("div",{className:Ia.normalWrap},(rt=se==null?void 0:se.question_choices)==null?void 0:rt.map((sa,to)=>qn.createElement("div",{className:Ia.checkbox},!(sa!=null&&sa.standard_boolean)&&qn.createElement("span",{className:Ia.checkboxitem}),(sa==null?void 0:sa.standard_boolean)&&qn.createElement("i",{className:`${Ia.checkboxitemyes} icon-duigou1`}),qn.createElement("span",{className:`${sa!=null&&sa.standard_boolean?Ia.titleyes:Ia.title} ${Ia.indexTag}`},Jl[to]),qn.createElement(Rt.Z,{className:sa!=null&&sa.standard_boolean?Ia.titleyes:Ia.title,value:sa==null?void 0:sa.choice_text}),(sa==null?void 0:sa.standard_boolean)&&qn.createElement("div",{className:Ia.yestag},"\u6B63\u786E\u7B54\u6848")))),(se==null?void 0:se.question_type)===3&&qn.createElement("div",{className:Ia.completion},(mt=se==null?void 0:se.standard_answers)==null?void 0:mt.map((sa,to)=>{var Xr;return qn.createElement(Aa.Z,{align:"top"},qn.createElement("span",{className:Ia.title},"\u586B\u7A7A\u9879",to+1),qn.createElement("div",{className:Ia.content},(Xr=sa.answer_text)==null?void 0:Xr.map((Fo,kr)=>qn.createElement("div",{key:kr,className:Ia.items,style:(sa==null?void 0:sa.model)===2?{border:0,padding:0}:{}},(sa==null?void 0:sa.model)===1?qn.createElement("pre",{className:"mb0"},Fo):qn.createElement(Zu.Z,{value:Fo,disabled:!0})))))})),(se==null?void 0:se.question_type)===4&&qn.createElement("div",{className:Ia.simple},qn.createElement("div",{className:Ia.title},"\u53C2\u8003\u7B54\u6848"),qn.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Vn=se==null?void 0:se.answer_texts)!=null&&Vn[0]?qn.createElement(Rt.Z,{className:Ia.content,value:(pn=se==null?void 0:se.answer_texts)==null?void 0:pn[0]}):qn.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),qn.createElement("div",{className:"mt20 "},qn.createElement("span",{className:Ia.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),qn.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},se!=null&&se.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))),(se==null?void 0:se.question_type)===5&&qn.createElement("div",{className:Ia.shixunWrapper},(Jt=se==null?void 0:se.shixun)==null?void 0:Jt.map((sa,to)=>{var Xr,Fo;return qn.createElement("div",null,qn.createElement("div",{key:to,className:`${Ia.shixun} mb30`},qn.createElement("span",{className:Ia.score},"\uFF08",sa==null?void 0:sa.challenge_score,"\u5206\uFF09"),qn.createElement("span",{className:Ia.qtitle},(se==null?void 0:se.index)+"."+(to+1),"\u3001",sa==null?void 0:sa.challenge_name)),((Fo=(Xr=Se==null?void 0:Se.editData)==null?void 0:Xr.exercise)==null?void 0:Fo.show_challenge_task_pass)&&qn.createElement(Rt.Z,{className:Ia.content,value:(sa==null?void 0:sa.task_pass)||"\u6682\u65E0\u5173\u5361\u63CF\u8FF0"}))})),(se==null?void 0:se.question_type)===6&&qn.createElement("div",{className:Ia.program,style:{border:!((qt=(dt=Se==null?void 0:Se.editData)==null?void 0:dt.exercise)!=null&&qt.show_hack_sets)&&!((bt=(wn=Se==null?void 0:Se.editData)==null?void 0:wn.exercise)!=null&&bt.show_hack_description)&&"none"}},((ft=(Ct=Se==null?void 0:Se.editData)==null?void 0:Ct.exercise)==null?void 0:ft.show_hack_sets)&&qn.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},qn.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},qn.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),qn.createElement(gs.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(sa,to,Xr)=>Xr+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(sa,to,Xr)=>qn.createElement(ot.Z,{title:qn.createElement("pre",null,sa)},qn.createElement("div",{className:Ia.divname},sa))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(sa,to,Xr)=>qn.createElement(ot.Z,{title:qn.createElement("pre",null,sa)}," ",qn.createElement("div",{className:Ia.divname},sa))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:se==null?void 0:se.hack_sets})),(($t=(An=Se==null?void 0:Se.editData)==null?void 0:An.exercise)==null?void 0:$t.show_hack_description)&&qn.createElement("div",null,qn.createElement(Rt.Z,{className:Ia.content,value:(se==null?void 0:se.description)||"- -"}))),(se==null?void 0:se.question_type)===7&&((Tt=se==null?void 0:se.sub_exercise_questions)==null?void 0:Tt.map((sa,to)=>{var Xr,Fo,kr,Lo,wo,gi;return qn.createElement("div",{key:to},qn.createElement("div",{className:Ia.combination},qn.createElement("span",{className:Ia.score},sa==null?void 0:sa.question_score,"\u5206"),qn.createElement("span",{className:Ia.qtype},(Xr=ms.find(kn=>kn.type==sa.question_type))==null?void 0:Xr.name),qn.createElement("span",{className:Ia.qtitle},to+1,"\u3001",sa==null?void 0:sa.question_title)),(sa.question_type===0||sa.question_type===2)&&qn.createElement("div",{className:Ia.warp,style:{padding:"30px 58px",paddingBottom:0}},qn.createElement("div",null,(Fo=sa==null?void 0:sa.question_choices)==null?void 0:Fo.map((kn,Ai)=>qn.createElement("div",{className:Ia.redio,key:Ai},!(kn!=null&&kn.standard_boolean)&&qn.createElement("span",{className:Ia.redioitem}),(kn==null?void 0:kn.standard_boolean)&&qn.createElement("i",{className:`${Ia.redioitemyes} icon-duigou1`}),sa.question_type===2&&qn.createElement("span",{className:`${kn!=null&&kn.standard_boolean?Ia.titleyes:Ia.title} ${Ia.indexTag}`},Jl[Ai]),qn.createElement(Rt.Z,{className:kn!=null&&kn.standard_boolean?Ia.titleyes:Ia.title,value:kn==null?void 0:kn.choice_text}),(kn==null?void 0:kn.standard_boolean)&&qn.createElement("div",{className:Ia.yestag},"\u6B63\u786E\u7B54\u6848"))))),sa.question_type===1&&qn.createElement("div",{className:Ia.normalWrap},(kr=sa==null?void 0:sa.question_choices)==null?void 0:kr.map((kn,Ai)=>qn.createElement("div",{className:Ia.checkbox,key:Ai},!(kn!=null&&kn.standard_boolean)&&qn.createElement("span",{className:Ia.checkboxitem}),(kn==null?void 0:kn.standard_boolean)&&qn.createElement("i",{className:`${Ia.checkboxitemyes} icon-duigou1`}),qn.createElement("span",{className:`${kn!=null&&kn.standard_boolean?Ia.titleyes:Ia.title} ${Ia.indexTag}`},Jl[Ai]),qn.createElement(Rt.Z,{className:kn!=null&&kn.standard_boolean?Ia.titleyes:Ia.title,value:kn==null?void 0:kn.choice_text}),(kn==null?void 0:kn.standard_boolean)&&qn.createElement("div",{className:Ia.yestag},"\u6B63\u786E\u7B54\u6848")))),sa.question_type===3&&qn.createElement("div",{className:Ia.completion},(Lo=sa==null?void 0:sa.standard_answers)==null?void 0:Lo.map((kn,Ai)=>{var pi;return qn.createElement(Aa.Z,{align:"top"},qn.createElement("span",{className:Ia.title},"\u586B\u7A7A\u9879",Ai+1),qn.createElement("div",{className:Ia.content},(pi=kn.answer_text)==null?void 0:pi.map((Ho,zn)=>qn.createElement("div",{key:zn,className:Ia.items},qn.createElement("pre",{className:"mb0"},Ho)))))})),sa.question_type===4&&qn.createElement("div",{className:Ia.simple},qn.createElement("div",{className:Ia.title},"\u53C2\u8003\u7B54\u6848"),qn.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(wo=sa==null?void 0:sa.answer_texts)!=null&&wo[0]?qn.createElement(Rt.Z,{className:Ia.content,value:(gi=sa==null?void 0:sa.answer_texts)==null?void 0:gi[0]}):qn.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),qn.createElement("div",{className:"mt20 "},qn.createElement("span",{className:Ia.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),qn.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},sa!=null&&sa.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))))})),(se==null?void 0:se.question_type)===8&&qn.createElement("div",null,qn.createElement(Rt.Z,{disabledFill:!0,className:Ia.content,showProgramFill:!0,value:Fu.Base64.decode(((sn=se==null?void 0:se.program_attr)==null?void 0:sn.code)||"")})),((se==null?void 0:se.question_type)<=4||[6,8].includes(se==null?void 0:se.question_type))&&qn.createElement("div",{className:Ia.bottom},qn.createElement("div",{className:`${Ia.bottomitem} mb30`},qn.createElement("span",{className:Ia.left},"\u89E3\u6790"),qn.createElement("span",{className:Ia.right},se!=null&&se.analysis?qn.createElement(Rt.Z,{value:se==null?void 0:se.analysis}):qn.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),qn.createElement("div",{className:`${Ia.bottomitem} mb30`},qn.createElement("span",{className:Ia.left},"\u96BE\u5EA6"),qn.createElement("span",{className:Ia.right},(se==null?void 0:se.difficulty)===1?"\u7B80\u5355":(se==null?void 0:se.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),qn.createElement("div",{className:Ia.bottomitem},qn.createElement("span",{className:Ia.left},"\u77E5\u8BC6\u70B9"),qn.createElement(ot.Z,{title:((Ht=se==null?void 0:se.tag_discipline_names)==null?void 0:Ht.length)<=0||((ua=se==null?void 0:se.tag_discipline_names)==null?void 0:ua.length)==1&&["-"].includes(se==null?void 0:se.tag_discipline_names[0])?"\u6682\u672A\u8BBE\u7F6E~":(gn=(hn=se==null?void 0:se.tag_discipline_names)==null?void 0:hn.join("\uFF1B"))==null?void 0:gn.toString()},qn.createElement("span",{className:Ia.right},((Zr=se==null?void 0:se.tag_discipline_names)==null?void 0:Zr.length)<=0?qn.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):(($r=se==null?void 0:se.tag_discipline_names)==null?void 0:$r.length)==1&&["-"].includes(se==null?void 0:se.tag_discipline_names[0])?qn.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):(eo=(er=se==null?void 0:se.tag_discipline_names)==null?void 0:er.join("\uFF1B"))==null?void 0:eo.toString())))))},qu=ae(13778),Xl=ae(2078),Pi=ae(59301),Gu=Object.defineProperty,$u=Object.defineProperties,vs=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,Ne=(se,Se,Pe)=>Se in se?Gu(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,Ie=(se,Se)=>{for(var Pe in Se||(Se={}))ge.call(Se,Pe)&&Ne(se,Pe,Se[Pe]);if(ce)for(var Pe of ce(Se))fe.call(Se,Pe)&&Ne(se,Pe,Se[Pe]);return se},ut=(se,Se)=>$u(se,vs(Se)),at=(se,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch(qt){mt(qt)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch(qt){mt(qt)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(se,Se)).next())}),Dt=({qitem:se,setisedit:Se,TagDiscipline:Pe,exerciseitem:rt,seveeditor:mt,deleteitem:Vn,getTagData:pn,init:Jt,showTip:dt=!1})=>{var qt,wn,bt,Ct;const[ft]=we.default.useForm(),{unified_ai_setting:An,ai_review_settings:$t}=rt==null?void 0:rt.exercise,Tt=An?$t:((qt=se==null?void 0:se.ai_review_settings)==null?void 0:qt.length)>0?se.ai_review_settings:$t;return(0,b.useEffect)(()=>{ft.setFieldsValue(ut(Ie({},se),{name:se.question_title,answer_texts:se.answer_texts,repeat_answer:!se.repeat_answer,ai_review_settings:Tt}))},[se]),Pi.createElement("div",null,Pi.createElement(we.default,{form:ft,colon:!1,onFinish:sn=>{var Ht;(Ht=rt==null?void 0:rt.exercise)!=null&&Ht.is_open_ai_review&&!(0,ht.BR)(sn==null?void 0:sn.ai_review_settings)||mt(ut(Ie(Ie({},se),sn),{answer_texts:sn==null?void 0:sn.answer_texts,question_title:sn==null?void 0:sn.name}))},onFinishFailed:sn=>at(void 0,null,function*(){var Ht,ua;xe.ZP.error(sn.errorFields[0].errors[0]),ft.scrollToField((ua=(Ht=sn==null?void 0:sn.errorFields)==null?void 0:Ht[0])==null?void 0:ua.name,{behavior:"smooth",block:"center"})})},Pi.createElement("div",{style:{display:"flex",alignItems:"center"}},Pi.createElement("div",{style:{flex:1}},Pi.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Pi.createElement("span",null,"\u7B80\u7B54\u9898")),((wn=rt==null?void 0:rt.exercise)==null?void 0:wn.exercise_status)==1&&!(se!=null&&se.isadd)&&Pi.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Vn()}},Pi.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Pi.createElement(ke.ZP,{onClick:()=>{se.isadd?(Se(!1),Jt()):(ft.setFieldsValue(ut(Ie({},se),{name:se==null?void 0:se.question_title,answer_texts:se.answer_texts||[],repeat_answer:!(se!=null&&se.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),Pi.createElement(ot.Z,{overlayClassName:nt.shake,open:dt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Pi.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Pi.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Pi.createElement(ke.ZP,{type:"primary",className:"ml20",onClick:()=>{ft.submit()}},"\u4FDD\u5B58"))),Pi.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Pi.createElement(we.default.Item,{className:nt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Pi.createElement(De.Z,{onBlur:sn=>{sn.target.value==="0"&&xe.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),Pi.createElement(Xl.W,{form:ft,showKeywords:!0,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"}),((bt=rt==null?void 0:rt.exercise)==null?void 0:bt.is_open_ai_review)&&!((Ct=rt==null?void 0:rt.exercise)!=null&&Ct.unified_ai_setting)&&Pi.createElement(Er,{form:ft,qitem:se}),Pi.createElement(Ca,{getTagData:pn,qitem:se,exerciseitem:rt,TagDiscipline:Pe,form:ft}))))},It=ae(59301),Yn=(se,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch(qt){mt(qt)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch(qt){mt(qt)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(se,Se)).next())}),cn=({setScoreShow:se,ScoreShow:Se,exerciseitem:Pe,getdata:rt})=>{var mt,Vn,pn;const[Jt,dt]=(0,b.useState)(!1);function qt(){return Yn(this,null,function*(){var wn,bt,Ct;let ft=(bt=(wn=Pe==null?void 0:Pe.exercise_question_types)==null?void 0:wn.filter($t=>$t.Singlequestion))==null?void 0:bt.map($t=>({question_type:$t.question_type,score:$t.Singlequestion})),An=yield(0,te.ZP)(`/api/exercises/${(Ct=Pe==null?void 0:Pe.exercise)==null?void 0:Ct.id}/batch_set_score.json`,{method:"POST",body:{question_arr:ft}});(An==null?void 0:An.status)===0&&rt()})}return It.createElement("div",null,Se&&It.createElement(Ue.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:Se,width:640,centered:!0,zIndex:10,className:nt.scoremodal,onCancel:()=>{se(!1)},onOk:()=>{var wn,bt,Ct;if(Pe!=null&&Pe.use_blank_score&&((Ct=(bt=(wn=Pe==null?void 0:Pe.exercise_question_types)==null?void 0:wn.filter(ft=>ft.name==="\u586B\u7A7A\u9898"))==null?void 0:bt[0])!=null&&Ct.Singlequestion)){dt(!0);return}qt(),se(!1)}},It.createElement("div",{className:"c-black"},"\u603B\u5206",It.createElement("span",{className:"ml10 c-light-primary"},(Pe==null?void 0:Pe.exercise_question_types.length)>0&&((mt=Pe==null?void 0:Pe.exercise_types)==null?void 0:mt.q_scores))),It.createElement("div",{className:nt.content},It.createElement("span",null,"\u9898\u578B\u540D\u79F0"),It.createElement("span",null,"\u5C0F\u9898\u603B\u6570"),It.createElement("span",null,"\u9898\u578B\u603B\u5206"),It.createElement("span",null,"\u64CD\u4F5C")),(pn=(Vn=Pe==null?void 0:Pe.exercise_question_types)==null?void 0:Vn.filter(wn=>wn.name!=="\u5B9E\u8BAD\u9898"&&wn.name!=="\u7EC4\u5408\u9898"))==null?void 0:pn.map(wn=>{var bt;return It.createElement("div",{className:nt.items},It.createElement("span",null,wn==null?void 0:wn.name),It.createElement("span",null,(bt=wn==null?void 0:wn.items)==null?void 0:bt.length),It.createElement("span",null,wn==null?void 0:wn.score),It.createElement("span",null,"\u6BCF\u9898",It.createElement(De.Z,{max:100,precision:1,min:.1,onChange:Ct=>{wn.Singlequestion=Ct},style:{width:90,height:38,margin:"0px 10px",display:"flex",alignItems:"center"}}),"\u5206"))})),It.createElement(Ue.default,{title:!1,footer:!1,centered:!0,zIndex:20,open:Jt,width:640,closable:!1,className:nt.scoremodal},It.createElement("div",{style:{marginTop:40}},"\u586B\u7A7A\u9898\u4E2D\u5B58\u5728",It.createElement("span",{style:{color:"#FA6400"}},"\u6309\u7A7A\u7ED9\u5206"),"\u7684\u5C0F\u9898\uFF0C\u82E5\u6279\u91CF\u8BBE\u7F6E\u5206\u503C\u4F1A\u7EDF\u4E00\u5C06\u586B\u7A7A\u9898\u6539\u4E3A\u6309\u9898\u7ED9\u5206"),It.createElement("div",{className:nt.bottom},It.createElement(ke.ZP,{className:nt.no,onClick:()=>{dt(!1)}},"\u53D6\u6D88"),It.createElement(ke.ZP,{className:nt.yes,onClick:()=>{qt(),dt(!1),se(!1)}},"\u786E\u8BA4"))))},In=ae(99313),On=ae(98228),wt=ae(58421),Vt={flex_box_center:"flex_box_center___aDsO9",flex_space_between:"flex_space_between___5V4Xk",flex_box_vertical_center:"flex_box_vertical_center___rNdEP",flex_box_center_end:"flex_box_center_end___cKjnr",flex_box_column:"flex_box_column___glFYD",scoremodal:"scoremodal___PfqOf",selectWrapper:"selectWrapper___Mtqcz",selectWrappers:"selectWrappers___uX2K9",allqingchu:"allqingchu___IqL8g",title:"title___UgYfD",score:"score___LjJmD",close:"close___I0jAO",content:"content___4u86F",items:"items___mK2L5",bottom:"bottom___vQTEm",yes:"yes___j81JQ",no:"no___kiUH4",titlecount:"titlecount___lliQr",add:"add___QhDj8",search:"search___QCCaL",searchIcon:"searchIcon___oXRH5",tabWrap:"tabWrap___Cu_4D",previewModal:"previewModal___BVDlS"},Rn=ae(70646),un={flex_box_center:"flex_box_center___zojHa",flex_space_between:"flex_space_between___wmLZ4",flex_box_vertical_center:"flex_box_vertical_center___DszWW",flex_box_center_end:"flex_box_center_end___mVCv5",flex_box_column:"flex_box_column___fbC9t",warp:"warp___isAcM",shixunbutton:"shixunbutton___h3Ybb",redio:"redio___xDffb",redioitem:"redioitem___FFPtq",redioitemyes:"redioitemyes___pF7ID",title:"title___mnPZc",titleyes:"titleyes___wrtWQ",yestag:"yestag___D4krY",qcount:"qcount___W5pwO",score:"score___eKQzl",qtitle:"qtitle___lb8MD",checkbox:"checkbox___QpUm4",checkboxitem:"checkboxitem___Wm2SH",checkboxitemyes:"checkboxitemyes___VVVTe",bottom:"bottom___Mn_Bw",bottomitem:"bottomitem___JTyHT",left:"left___nQqpo",right:"right___v58qy",completion:"completion___BnZSp",content:"content___MU8hZ",items:"items___a7i54",simple:"simple___GDw3K",shixun:"shixun___DGzTe",combination:"combination___AG9cr"};const pa=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var Qa=({qitem:se})=>{var Se,Pe,rt,mt,Vn,pn,Jt,dt,qt,wn;return b.createElement("div",{className:un.warp},b.createElement("div",{className:un.mainPart},b.createElement("div",{className:un.qcount},(se==null?void 0:se.question_type)===8&&b.createElement(Rt.Z,{className:un.content,showProgramFill:!0,value:(Se=se==null?void 0:se.program_attr)==null?void 0:Se.description}),(se==null?void 0:se.question_type)!=8&&b.createElement(Rt.Z,{className:un.qtitle,value:(se==null?void 0:se.name)||(se==null?void 0:se.title)})),((se==null?void 0:se.question_type)===0||(se==null?void 0:se.question_type)===2)&&b.createElement("div",null,(Pe=se==null?void 0:se.choices)==null?void 0:Pe.map((bt,Ct)=>b.createElement("div",{className:un.redio},!(bt!=null&&bt.is_answer)&&b.createElement("span",{className:un.redioitem}),(bt==null?void 0:bt.is_answer)&&b.createElement("i",{className:`${un.redioitemyes} icon-duigou1`}),b.createElement(Rt.Z,{className:bt!=null&&bt.is_answer?un.titleyes:un.title,value:pa[Ct]+(bt==null?void 0:bt.choice_text)}),(bt==null?void 0:bt.is_answer)&&b.createElement("div",{className:un.yestag},"\u6B63\u786E\u7B54\u6848")))),(se==null?void 0:se.question_type)===1&&b.createElement("div",null,(rt=se==null?void 0:se.choices)==null?void 0:rt.map((bt,Ct)=>b.createElement("div",{className:un.checkbox},!(bt!=null&&bt.is_answer)&&b.createElement("span",{className:un.checkboxitem}),(bt==null?void 0:bt.is_answer)&&b.createElement("i",{className:`${un.checkboxitemyes} icon-duigou1`}),b.createElement(Rt.Z,{className:bt!=null&&bt.is_answer?un.titleyes:un.title,value:pa[Ct]+(bt==null?void 0:bt.choice_text)}),(bt==null?void 0:bt.is_answer)&&b.createElement("div",{className:un.yestag},"\u6B63\u786E\u7B54\u6848")))),(se==null?void 0:se.question_type)===3&&b.createElement("div",{className:un.completion},(mt=se==null?void 0:se.standard_answer)==null?void 0:mt.map((bt,Ct)=>{var ft;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:un.title},"\u586B\u7A7A\u9879",Ct+1),b.createElement("div",{className:un.content},(ft=bt==null?void 0:bt.answer_text)==null?void 0:ft.map((An,$t)=>b.createElement("div",{className:un.items},An))))})),(se==null?void 0:se.question_type)===4&&b.createElement("div",{className:un.simple},b.createElement("div",{className:un.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Vn=se==null?void 0:se.answer_texts)!=null&&Vn[0]?b.createElement(Rt.Z,{className:un.content,value:(pn=se==null?void 0:se.answer_texts)==null?void 0:pn[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(se==null?void 0:se.question_type)===5&&((Jt=se==null?void 0:se.challenge_names)==null?void 0:Jt.map((bt,Ct)=>b.createElement("div",{className:un.shixun},b.createElement("span",{className:un.qtitle},b.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,ht.EM)(Ct+1),"\u9898"),bt)))),(se==null?void 0:se.question_type)===6&&b.createElement("div",{className:un.simple},b.createElement(Rt.Z,{className:un.content,value:((dt=se==null?void 0:se.program_attr)==null?void 0:dt.description)||"- -"})),(se==null?void 0:se.question_type)===7&&((qt=se==null?void 0:se.sub_item_banks)==null?void 0:qt.map((bt,Ct)=>{var ft,An,$t,Tt,sn;return b.createElement("div",null,b.createElement("div",{className:un.combination},b.createElement("span",{className:un.qtitle},bt==null?void 0:bt.name)),b.createElement("div",{className:un.warp,style:{padding:"0px",paddingTop:20}},b.createElement("div",null,((bt==null?void 0:bt.item_type)=="SINGLE"||(bt==null?void 0:bt.item_type)=="JUDGMENT")&&((ft=bt==null?void 0:bt.choices)==null?void 0:ft.map((Ht,ua)=>b.createElement("div",{className:un.redio},!(Ht!=null&&Ht.is_answer)&&b.createElement("span",{className:un.redioitem}),(Ht==null?void 0:Ht.is_answer)&&b.createElement("i",{className:`${un.redioitemyes} icon-duigou1`}),b.createElement(Rt.Z,{className:Ht!=null&&Ht.is_answer?un.titleyes:un.title,value:pa[ua]+(Ht==null?void 0:Ht.choice_text)}),(Ht==null?void 0:Ht.is_answer)&&b.createElement("div",{className:un.yestag},"\u6B63\u786E\u7B54\u6848")))),(bt==null?void 0:bt.item_type)=="MULTIPLE"&&((An=bt==null?void 0:bt.choices)==null?void 0:An.map((Ht,ua)=>b.createElement("div",{className:un.checkbox},!(Ht!=null&&Ht.is_answer)&&b.createElement("span",{className:un.checkboxitem}),(Ht==null?void 0:Ht.is_answer)&&b.createElement("i",{className:`${un.checkboxitemyes} icon-duigou1`}),b.createElement(Rt.Z,{className:Ht!=null&&Ht.is_answer?un.titleyes:un.title,value:pa[ua]+(Ht==null?void 0:Ht.choice_text)}),(Ht==null?void 0:Ht.is_answer)&&b.createElement("div",{className:un.yestag},"\u6B63\u786E\u7B54\u6848")))),(bt==null?void 0:bt.item_type)=="COMPLETION"&&b.createElement("div",{className:un.completion},($t=bt==null?void 0:bt.standard_answer)==null?void 0:$t.map((Ht,ua)=>{var hn;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:un.title},"\u586B\u7A7A\u9879",ua+1),b.createElement("div",{className:un.content},(hn=Ht==null?void 0:Ht.answer_text)==null?void 0:hn.map((gn,Zr)=>b.createElement("div",{className:un.items},gn))))})),(bt==null?void 0:bt.item_type)=="SUBJECTIVE"&&b.createElement("div",{className:un.simple},b.createElement("div",{className:un.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Tt=bt==null?void 0:bt.answer_texts)!=null&&Tt[0]?b.createElement(Rt.Z,{className:un.content,value:(sn=bt==null?void 0:bt.answer_texts)==null?void 0:sn[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(se==null?void 0:se.question_type)===8&&b.createElement("div",null,b.createElement(Rt.Z,{disabledFill:!0,className:un.content,showProgramFill:!0,value:Fu.Base64.decode(((wn=se==null?void 0:se.program_attr)==null?void 0:wn.code)||"")})),(se==null?void 0:se.question_type)===5&&b.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},b.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10,color:"#666666"}},"\u521B\u5EFA\u8005"),b.createElement("span",{style:{color:"#000000"}},(se==null?void 0:se.author_name)||"- -")),b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10,color:"#666666"}},"\u6240\u5C5E\u5355\u4F4D"),b.createElement("span",{style:{color:"#000000"}},(se==null?void 0:se.author_school_name)||"- -")),b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10,color:"#666666"}},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{style:{color:"#000000"}},(se==null?void 0:se.study_count)||"0"))),b.createElement("a",{className:un.shixunbutton,href:`/shixuns/${se==null?void 0:se.identifier}/challenges?exercise=true`,target:"_blank"},b.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((se==null?void 0:se.question_type)<=4||[6,8].includes(se==null?void 0:se.question_type))&&b.createElement("div",{className:un.bottom},b.createElement("div",{className:un.bottomitem},b.createElement("span",{className:un.left},"\u89E3\u6790"),b.createElement("span",{className:un.right},se!=null&&se.analysis?b.createElement(Rt.Z,{value:se==null?void 0:se.analysis}):b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),b.createElement("div",{className:un.bottomitem},b.createElement("span",{className:un.left},"\u96BE\u5EA6"),b.createElement("span",{className:un.right},(se==null?void 0:se.difficulty)===1?"\u7B80\u5355":(se==null?void 0:se.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),b.createElement("div",{className:un.bottomitem},b.createElement("span",{className:un.left},"\u77E5\u8BC6\u70B9"),b.createElement("span",{className:un.right},se!=null&&se.tag_discipline?se==null?void 0:se.tag_discipline:b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},Ra=ae(39469),ha=ae(58082),Jr=ae(96267),Pr=ae(51529),zr=ae(40427),mo=ae(27350),yo=ae(55159),Gn=ae(59301),ii=Object.defineProperty,xo=Object.defineProperties,lo=Object.getOwnPropertyDescriptors,fo=Object.getOwnPropertySymbols,Zo=Object.prototype.hasOwnProperty,Wo=Object.prototype.propertyIsEnumerable,bo=(se,Se,Pe)=>Se in se?ii(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,Dr=(se,Se)=>{for(var Pe in Se||(Se={}))Zo.call(Se,Pe)&&bo(se,Pe,Se[Pe]);if(fo)for(var Pe of fo(Se))Wo.call(Se,Pe)&&bo(se,Pe,Se[Pe]);return se},_o=(se,Se)=>xo(se,lo(Se)),Qo=(se,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch(qt){mt(qt)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch(qt){mt(qt)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(se,Se)).next())});const Li=({setScoreShow:se,ScoreShow:Se,onOk:Pe,isshixuns:rt,isloadings:mt,dispatch:Vn,shixunsDetail:pn,exercise:Jt,SpecificDifficulty:dt=!1})=>{var qt,wn,bt,Ct;let[ft,An]=(0,b.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]}),[$t,Tt]=(0,b.useState)([]),[sn,Ht]=(0,b.useState)([]),[ua,hn]=(0,b.useState)([]),[gn,Zr]=(0,b.useState)([]);const[$r,er]=(0,b.useState)(!1),[eo]=we.default.useForm(),[sa,to]=(0,b.useState)(),[Xr,Fo]=(0,b.useState)(!1);let[kr,Lo]=(0,b.useState)(rt);const[wo,gi]=(0,b.useState)([]),[kn,Ai]=(0,b.useState)(!0),[pi,Ho]=(0,b.useState)([]),[zn,mi]=(0,b.useState)(0),[Vi,Wi]=(0,b.useState)([]),ji=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],[Qi,wi]=(0,b.useState)({});let[Wl,Al]=(0,b.useState)([]);(0,b.useEffect)(()=>{var Kt,Tn,Vr,Cr,jr,oo,To,co,Nl,Oi;(((Vr=(Tn=(Kt=Jt==null?void 0:Jt.editData)==null?void 0:Kt.exercise)==null?void 0:Tn.exist_item_bank_ids)==null?void 0:Vr.length)>0||((oo=(jr=(Cr=Jt==null?void 0:Jt.editData)==null?void 0:Cr.exercise)==null?void 0:jr.exist_item_bank_shixun_ids)==null?void 0:oo.length)>0)&&Wi([...(co=(To=Jt==null?void 0:Jt.editData)==null?void 0:To.exercise)==null?void 0:co.exist_item_bank_ids,...(Oi=(Nl=Jt==null?void 0:Jt.editData)==null?void 0:Nl.exercise)==null?void 0:Oi.exist_item_bank_shixun_ids])},[(wn=(qt=Jt==null?void 0:Jt.editData)==null?void 0:qt.exercise)==null?void 0:wn.exist_item_bank_ids]);const vl=(0,b.useRef)(new Set),Ro=(0,b.useRef)(new Set);let[Xo,Ui]=(0,b.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:"",per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const Tr=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],$o=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],bi=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[fi,Yi]=(0,b.useState)(!1),pl=()=>{eo.resetFields(),kr=!1,Lo(!1),Yi(!1),eo.submit()};(0,b.useEffect)(()=>{zn>0&&setTimeout(()=>{mi(0)},2e3)},[zn]),(0,b.useEffect)(()=>{Se&&(eo.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),kn&&kr&&(eo.setFieldsValue({item_type:"SHIXUN"}),ft.item_type="SHIXUN",dt&&(eo.setFieldsValue({diff:dt}),ft.diff=dt),An(Dr({},ft)),Ai(!1)),ni(ft),ll(),Ll({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Zl())},[Se]);function ni(Kt){return Qo(this,null,function*(){var Tn,Vr,Cr;if(er(!0),An(Kt),(ua==null?void 0:ua.length)<=0&&Kt.type==="5"){Zr([]),er(!1);return}let jr=Kt.type==="5"?ua==null?void 0:ua.filter(co=>!wo.includes(co)):null,oo=Kt.type==="5"?ua==null?void 0:ua.filter(co=>wo.includes(co)):null,To=yield(0,te.ZP)("/api/item_banks.json",{method:"get",params:_o(Dr({},Kt),{discipline_id:((Tn=Kt==null?void 0:Kt.courseid)==null?void 0:Tn[0])||null,sub_discipline_id:((Vr=Kt==null?void 0:Kt.courseid)==null?void 0:Vr[1])||null,ids:jr,shixun_ids:oo,group_id:((Cr=Kt.group_id)==null?void 0:Cr.map(co=>co==null?void 0:co.value))||null,keyword:Kt.keyword?encodeURIComponent(Kt.keyword):Kt.keyword,include_shixuns:!0,type:Kt.type==="5"?null:Kt.type,clazz:Kt.type==="3"?"ItemBanksGroup":null})});Zr(To),er(!1)})}function Zl(){return Qo(this,null,function*(){let Kt=yield(0,te.ZP)("/api/users/vrs_subject_names.json",{method:"Get"});(Kt==null?void 0:Kt.status)==0&&Al(Kt==null?void 0:Kt.names)})}function Ll(Kt){return Qo(this,null,function*(){var Tn;let Vr=yield(0,te.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Kt}),Cr=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Tn=Vr==null?void 0:Vr.data)==null?void 0:Tn.map(jr=>({title:jr.name,id:jr.id,pid:jr.id,value:jr.id,key:jr.id,isLeaf:!jr.have_child}))}];Ho(Cr)})}function ll(){return Qo(this,null,function*(){let Kt=yield(0,te.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:ft.type==="5"?null:ft.type,clazz:"ItemBanksGroup"}});Tt((0,Rn.L)(Kt==null?void 0:Kt.disciplines))})}function di(Kt){return Qo(this,null,function*(){var Tn,Vr,Cr,jr;er(!0);let oo=(Tn=Kt.list)==null?void 0:Tn.filter(Nl=>!wo.includes(Nl)),To=(Vr=Kt.list)==null?void 0:Vr.filter(Nl=>wo.includes(Nl));if(oo.length===0&&To.length===0){er(!1),Zr([]);return}let co=yield(0,te.ZP)("/api/item_banks.json",{method:"get",params:_o(Dr({},Kt),{discipline_id:((Cr=Kt==null?void 0:Kt.courseid)==null?void 0:Cr[0])||null,sub_discipline_id:((jr=Kt==null?void 0:Kt.courseid)==null?void 0:jr[1])||null,ids:oo,shixun_ids:To,type:Kt.type==="5"?null:Kt.type,clazz:Kt.type==="3"?"ItemBanksGroup":null})});er(!1),Zr(co)})}const fu=(0,he.useParams)(),[Ql,ko,Hu,Cu]=(0,Jr.P)(),Gl=Kt=>Qo(void 0,null,function*(){const Tn=yield Vn({type:"shixunsDetail/release",payload:{id:Kt}});let Vr=Tn==null?void 0:Tn.tag_position,Cr=(Tn==null?void 0:Tn.evaluation_set_position)||[],jr=Tn.status;return jr===0?(xe.ZP.success("\u53D1\u5E03\u6210\u529F"),ni(ft),!0):(jr===2?xe.ZP.error(`\u7B2C${Cr.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):jr===3?xe.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${Vr.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):xe.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),hl=Kt=>(Kt==null?void 0:Kt.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",tu=(Kt,Tn,Vr)=>Kt.map(Cr=>Cr.key===Tn?Dr(Dr({},Cr),Vr):Cr.children?_o(Dr({},Cr),{children:tu(Cr.children,Tn,Vr)}):Cr),wu=Kt=>Qo(void 0,null,function*(){const{key:Tn}=Kt;let Vr=ft.type;const Cr=yield(0,zr.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Tn),type:Vr}),{data:jr,total_count:oo}=Cr||{};oo>0&&Ho(To=>tu(To,Tn,{children:jr.map(co=>({title:co.name,id:co.id,pid:co.id,value:co.id,key:co.id,isLeaf:!co.have_child}))}))});function uu(Kt){console.log("----",ft),Kt==="1"&&(Xo.gg=Dr({},ft)),Kt==="2"&&(Xo.scj=Dr({},ft)),Kt==="3"&&(Xo.ttgx=Dr({},ft)),Kt==="0"&&(Xo.wcjd=Dr({},ft)),Kt==="5"&&(Xo.yx=Dr({},ft)),Ui(Dr({},Xo))}function su(){ft.type==="1"&&(ft=Xo.gg),ft.type==="2"&&(ft=Xo.scj),ft.type==="3"&&(ft=Xo.ttgx),ft.type==="0"&&(ft=Xo.wcjd),ft.type==="5"&&(ft=Xo.yx),(ft==null?void 0:ft.item_type)==="SHIXUN"?(kr=!0,Lo(!0)):(kr=!1,Lo(!1)),eo.setFieldsValue(Dr({},ft)),An(Dr({},ft)),ni(Dr({},ft))}return Gn.createElement("div",null,Gn.createElement(Ue.default,{title:!1,footer:!1,open:Se,width:1360,centered:!0,className:Vt.scoremodal,onCancel:()=>{se(!1)}},Gn.createElement("div",{style:{display:"flex",alignItems:"center"}},Gn.createElement("div",{className:Vt.title},"\u9898\u5E93\u9009\u9898")),Gn.createElement(In.default,{className:Vt.tabWrap,activeKey:ft.type,onChange:Kt=>{Kt==="3"?(ft.show_all_share=!0,Ll({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):ft.show_all_share=null,Kt==="0"&&Ll({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),uu(ft.type),ft.type=Kt,(ft==null?void 0:ft.item_type)==="SHIXUN"&&ft.type!=="5"&&(kr=!0,Lo(!0)),Yi(!1),ft.type==="5"&&(kr=!1,Lo(!1)),su(),ll()},items:[{label:"\u516C\u5171",key:"1"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u6536\u85CF\u5939",key:"2"},{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:Gn.createElement("div",null,"\u5DF2\u9009",ua.length>0&&Gn.createElement("span",{className:Vt.titlecount},ua.length),zn>0&&Gn.createElement("span",{className:Vt.add},"+",zn)),key:"5"}]}),Gn.createElement(we.default,{layout:"inline",form:eo,onValuesChange:(Kt,Tn)=>{var Vr,Cr;const jr=Object.values(Tn).some(To=>To!==null&&To!==""&&To!==void 0),oo=Tn.keyword==="";if(Yi(jr||!oo),ft.page=1,ft.keyword=(Cr=(Vr=ft.keyword)==null?void 0:Vr.replace)==null?void 0:Cr.call(Vr,/^\s+|\s+$/g,""),(Tn==null?void 0:Tn.item_type)==="SHIXUN"){if(ft.type==="5"?(dt&&eo.setFieldsValue({difficulty:dt}),Lo(!1)):(dt&&eo.setFieldsValue({diff:dt}),Lo(!0)),Kt.keyword||Kt.keyword==="")return;setTimeout(()=>{eo.submit()},0)}else{if(Kt!=null&&Kt.courseid&&eo.setFieldsValue({tag_discipline_id:""}),Lo(!1),Kt.keyword||Kt.keyword==="")return;eo.submit()}},onFinish:Kt=>{var Tn;ft.type==="3"&&(!Kt.group_id||((Tn=Kt==null?void 0:Kt.group_id)==null?void 0:Tn.length)===0)?ft.show_all_share=!0:ft.show_all_share=null,An(Dr(Dr({},ft),Kt)),ni(Dr(Dr({},ft),Kt))}},Gn.createElement(we.default.Item,{name:"item_type"},Gn.createElement(Ee.default,{className:Vt.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle",allowClear:!0},ji.map(Kt=>Gn.createElement(Ee.default.Option,{key:Kt.value},Kt.name)))),Gn.createElement(we.default.Item,{name:"courseid"},Gn.createElement(Be.Z,{className:Vt.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:$t})),!kr&&Gn.createElement(we.default.Item,{name:"tag_discipline_id"},Gn.createElement(Ee.default,{className:Vt.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(bt=gn==null?void 0:gn.tag_disciplines)==null?void 0:bt.map(Kt=>Gn.createElement(Ee.default.Option,{key:Kt.id},Kt.name)))),kr&&Gn.createElement(we.default.Item,{name:"vrs_name"},Gn.createElement(Ee.default,{className:Vt.selectWrapper,placeholder:"\u79D1\u76EE",style:{width:118},size:"middle",allowClear:!0},(Ct=[{id:"",name:"\u5168\u90E8"},...(Wl==null?void 0:Wl.map(Kt=>({id:Kt,name:Kt})))||[]])==null?void 0:Ct.map(Kt=>Gn.createElement(Ee.default.Option,{key:Kt.id},Kt.name)))),Gn.createElement(we.default.Item,{name:kr?"diff":"difficulty"},Gn.createElement(Ee.default,{className:Vt.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0,disabled:(ft==null?void 0:ft.item_type)==="SHIXUN"&&!!dt},!kr&&Tr.map(Kt=>Gn.createElement(Ee.default.Option,{value:Kt.value,key:Kt.value},Kt.name)),kr&&$o.map(Kt=>Gn.createElement(Ee.default.Option,{value:Kt.value,key:Kt.value},Kt.name)))),kr&&Gn.createElement(we.default.Item,{name:"shixun_publish_status"},Gn.createElement(Ee.default,{className:Vt.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},bi.map(Kt=>Gn.createElement(Ee.default.Option,{key:Kt.value},Kt.name)))),(ft.type==="3"||ft.type==="0")&&!kr&&Gn.createElement(we.default.Item,{name:"group_id"},Gn.createElement(On.default,{treeDataSimpleMode:!0,style:{width:118},className:Vt.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Kt,Tn)=>Tn.title.toUpperCase().indexOf(Kt.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:wu,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:pi})),fi&&Gn.createElement("span",{className:Vt.allqingchu,onClick:pl},Gn.createElement("i",{className:"iconfont icon-guanbi4"}),Gn.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Gn.createElement(we.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Gn.createElement(We.default.Search,{className:Vt.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Gn.createElement("i",{className:`iconfont icon-sousuo9 font14 ${Vt.searchIcon}`,onClick:()=>eo.submit()}),onSearch:Kt=>{eo.submit()}}))),Gn.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Gn.createElement("div",{onClick:()=>{ft.updated_at==="asc"?ft.updated_at="desc":ft.updated_at="asc",An(_o(Dr({},ft),{page:1})),ni(_o(Dr({},ft),{page:1}))}}," ",ft.updated_at?Gn.createElement("img",{src:ft.updated_at==="asc"?Ra.Z:ha.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Gn.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Gn.createElement("div",{onClick:()=>{ft.quotes==="asc"?ft.quotes="desc":ft.quotes="asc",An(_o(Dr({},ft),{page:1})),ni(_o(Dr({},ft),{page:1}))},style:{marginLeft:20}}," ",ft.quotes?Gn.createElement("img",{src:ft.quotes==="asc"?Ra.Z:ha.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Gn.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Gn.createElement(gs.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(gn==null?void 0:gn.items)||(gn==null?void 0:gn.shixun_list),pagination:!1,loading:$r,rowKey:Kt=>Kt.id,rowSelection:{type:"checkbox",selectedRowKeys:[...sn,...Vi],getCheckboxProps:Kt=>({disabled:Kt.shixun_tag_num===1||(Vi==null?void 0:Vi.find(Tn=>Kt.id===Tn))}),onSelect(Kt,Tn,Vr){if(console.log("---",Vr,Tn,Kt),Tn)(kr||Kt!=null&&Kt.challenge_names)&&gi([...wo,Kt.id]),Ht([...sn,Kt.id]),Kt.identifier?vl.current.add(Kt.id):Ro.current.add(Kt.id),mi(1),hn([...ua,Kt.id]);else{Kt.identifier?vl.current.delete(Kt.id):Ro.current.delete(Kt.id);let Cr=ua.filter(jr=>jr!==Kt.id);if(Ht(Cr),hn(Cr),kr||Kt!=null&&Kt.challenge_names){let jr=wo.filter(oo=>oo!==Kt.id);gi([...jr])}if(ft.type==="5"){di(_o(Dr({},ft),{list:[...Cr]}));return}}},onSelectAll(Kt,Tn,Vr){var Cr,jr;if(console.log("----",Vr),Kt){const oo=Vr.map(co=>co.id),To=(jr=Vr==null?void 0:Vr.filter(co=>co==null?void 0:co.challenge_names))==null?void 0:jr.map(co=>co.id);gi([...wo,...To]),Ht([...sn,...oo]),hn([...ua,...oo]);for(const co of Vr)co.identifier?vl.current.add(co.id):Ro.current.add(co.id)}else{const oo=Vr.map(Oi=>Oi.id),To=sn.filter(Oi=>!oo.some(du=>du===Oi)),co=(Cr=Vr==null?void 0:Vr.filter(Oi=>Oi==null?void 0:Oi.challenge_names))==null?void 0:Cr.map(Oi=>Oi.id);Ht([...To]),hn([...To]);let Nl=wo.filter(Oi=>!co.some(du=>du===Oi.id));gi([...Nl]),ft.type==="5"&&di(_o(Dr({},ft),{list:[...To]}));for(const Oi of oo)Oi.identifier?vl.current.delete(Oi):Ro.current.delete(Oi)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(Kt,Tn,Vr)=>{var Cr,jr;return Gn.createElement(ot.Z,{title:hl(Tn)},Gn.createElement("div",null,kr||Tn!=null&&Tn.challenge_names?"\u5B9E\u8BAD\u9898":(jr=(Cr=ji==null?void 0:ji.filter(oo=>oo.value===Kt))==null?void 0:Cr[0])==null?void 0:jr.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:kr?"30%":"60%",key:"name",render:(Kt,Tn,Vr)=>{var Cr;return Gn.createElement("div",{style:{display:"flex",alignItems:"center"}},Gn.createElement(ot.Z,{title:hl(Tn)},Gn.createElement("span",null,Gn.createElement(Rt.Z,{key:1,showLines:1,showTextOnly:!0,value:kr||Tn!=null&&Tn.challenge_names?Tn!=null&&Tn.title||Kt===null?"--":Kt:(Tn==null?void 0:Tn.item_type)=="BPROGRAM"?(Cr=Tn==null?void 0:Tn.program_attr)==null?void 0:Cr.description:Kt}))),(Tn==null?void 0:Tn.high_resources_consume)&&Gn.createElement(Pr.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!kr,render:(Kt,Tn,Vr)=>{var Cr;return Gn.createElement(ot.Z,{title:hl(Tn)},Gn.createElement("span",null,Kt?(Cr=Kt==null?void 0:Kt.split("\u3001"))==null?void 0:Cr[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!kr,render:(Kt,Tn,Vr)=>Gn.createElement(ot.Z,{title:hl(Tn)},Gn.createElement("span",null,Kt||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(Kt,Tn,Vr)=>{var Cr,jr,oo,To;return Gn.createElement(ot.Z,{title:hl(Tn)},Gn.createElement("div",null,kr||Tn!=null&&Tn.challenge_names?(Tn==null?void 0:Tn.level)||((jr=(Cr=Tr==null?void 0:Tr.filter(co=>co.value===Kt))==null?void 0:Cr[0])==null?void 0:jr.name):(To=(oo=Tr==null?void 0:Tr.filter(co=>co.value===Kt))==null?void 0:oo[0])==null?void 0:To.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!kr,render:(Kt,Tn,Vr)=>Gn.createElement(ot.Z,{title:hl(Tn)},Gn.createElement("div",null,Kt||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(Kt,Tn,Vr)=>Gn.createElement(ot.Z,{title:hl(Tn)},Gn.createElement("div",null,kr||Tn!=null&&Tn.challenge_names?(Tn==null?void 0:Tn.study_count)||(Tn==null?void 0:Tn.stu_num):Kt))},{title:Gn.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Gn.createElement(ot.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Gn.createElement(Sn.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!kr,render:(Kt,Tn,Vr)=>Gn.createElement(ot.Z,{title:hl(Tn)},Gn.createElement("div",null,Kt||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(Kt,Tn,Vr)=>Gn.createElement(ot.Z,{title:hl(Tn)},Gn.createElement("div",{style:{flex:1,textAlign:"start"}},Gn.createElement("a",{onClick:()=>{var Cr,jr;to(_o(Dr({},Tn),{question_type:kr||Tn!=null&&Tn.challenge_names?5:(jr=(Cr=ji==null?void 0:ji.filter(oo=>oo.value===(Tn==null?void 0:Tn.item_type)))==null?void 0:Cr[0])==null?void 0:jr.question_type})),Fo(!0)}},"\u67E5\u770B"),(Tn==null?void 0:Tn.shixun_tag_num)===1&&Gn.createElement("a",{style:{marginLeft:10},onClick:()=>{Ue.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Gn.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Gn.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Tn==null?void 0:Tn.identifier}/challenges`)}},(Tn==null?void 0:Tn.shixun_name)||"--"),"\uFF1F"),onOk:()=>Qo(void 0,null,function*(){if(!Gl(Tn==null?void 0:Tn.identifier))return new Promise((Cr,jr)=>{jr()})})})}},"\u53D1\u5E03")))}].filter(Kt=>!Kt.hidden)}),Gn.createElement(wt.Z,{current:ft.page,total:(gn==null?void 0:gn.items_count)||(gn==null?void 0:gn.shixuns_count),style:{marginBottom:20},defaultPageSize:ft.per_page,showTotal:Kt=>Gn.createElement("span",null,"\u5171\xA0",Gn.createElement("span",{style:{color:"#165DFF"}},Kt),"\xA0\u6761\u6570\u636E"),pageSize:ft.per_page,onChange:(Kt,Tn)=>{ft.page=Kt,ft.per_page=Tn,An(Dr({},ft)),ni(Dr({},ft))}}),Gn.createElement("div",{className:Vt.bottom},Gn.createElement(ke.ZP,{className:Vt.no,onClick:()=>{se(!1)}},"\u53D6\u6D88"),Gn.createElement(ke.ZP,{loading:mt,style:{width:mt&&75},className:Vt.yes,onClick:()=>Qo(void 0,null,function*(){if((ua==null?void 0:ua.length)<=0){xe.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}let Kt=yield(0,yo.Tr)({id:[...ua==null?void 0:ua.filter(Tn=>wo.includes(Tn))],course_id:fu.coursesId,type:"shixun"});(Kt==null?void 0:Kt.student_count)===0?Pe([...Ro.current],[...ua==null?void 0:ua.filter(Tn=>wo.includes(Tn))],!0,ua==null?void 0:ua.length):wi(Kt)})},"\u786E\u8BA4"))),Gn.createElement(Ue.default,{open:Xr,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:Vt.previewModal,width:1e3,centered:!0,onCancel:()=>{Fo(!1)},onOk:()=>{Fo(!1)}},Gn.createElement(Qa,{qitem:sa})),Gn.createElement(mo.Z,{resdata:Qi,type:"exercise",okloading:mt,oktext:(Qi==null?void 0:Qi.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Kt=>Qo(void 0,null,function*(){const Tn=[],Vr=[];for(const Cr of Qi==null?void 0:Qi.can_copy_list)Tn.push(Cr.id);ko(),yield Pe([...Ro.current],[...vl.current].filter(Cr=>!Vr.includes(Cr)),!0,ua==null?void 0:ua.length,Tn)})}))};var ui=(0,he.connect)(({shixunsDetail:se,exercise:Se})=>({shixunsDetail:se,exercise:Se}))(Li),Ni=ae(13919),uo=ae(59301),hi=Object.defineProperty,Bi=Object.defineProperties,Zi=Object.getOwnPropertyDescriptors,yi=Object.getOwnPropertySymbols,qi=Object.prototype.hasOwnProperty,cl=Object.prototype.propertyIsEnumerable,ro=(se,Se,Pe)=>Se in se?hi(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,Do=(se,Se)=>{for(var Pe in Se||(Se={}))qi.call(Se,Pe)&&ro(se,Pe,Se[Pe]);if(yi)for(var Pe of yi(Se))cl.call(Se,Pe)&&ro(se,Pe,Se[Pe]);return se},Go=(se,Se)=>Bi(se,Zi(Se)),Fi=(se,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch(qt){mt(qt)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch(qt){mt(qt)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(se,Se)).next())}),ci=({qitem:se,TagDiscipline:Se,exerciseitem:Pe,setisedit:rt,seveeditor:mt,deleteitem:Vn,getTagData:pn,init:Jt,showTip:dt=!1})=>{var qt;const[wn]=we.default.useForm(),bt=!0;return(0,b.useEffect)(()=>{var Ct,ft,An;wn.setFieldsValue(Go(Do({},se),{standard_answers:se.standard_answer,difficulty:(se==null?void 0:se.difficult)||2,item_banks_group_id:se.item_banks_group_id,hack:Go(Do({},se),{time_limit:(se==null?void 0:se.time_limit)||3}),hack_codes:{language:(Ct=se==null?void 0:se.program_attr)==null?void 0:Ct.language,code:Fu.Base64.decode(((ft=se==null?void 0:se.program_attr)==null?void 0:ft.code)||"")},hack_sets:Do({},(An=se==null?void 0:se.hack_sets)==null?void 0:An[0]),repeat_answer:!se.repeat_answer}))},[se]),uo.createElement("div",null,uo.createElement(we.default,{form:wn,colon:!1,onValuesChange:(Ct,ft)=>{var An,$t,Tt,sn;if(Ct!=null&&Ct.standard_answers){let Ht=((An=wn.getFieldValue("standard_answers"))==null?void 0:An.length)>0&&((Tt=($t=wn.getFieldValue("standard_answers"))==null?void 0:$t.map(ua=>ua.score))==null?void 0:Tt.filter(ua=>ua));(Ht==null?void 0:Ht.length)>0&&wn.setFieldsValue({question_score:(Ht==null?void 0:Ht.length)>0&&((sn=Ht.reduce((ua,hn)=>ua+hn))==null?void 0:sn.toFixed(1))})}},onFinish:Ct=>{var ft;mt(Go(Do(Do({},se),Ct),{item_type:se==null?void 0:se.question_type,standard_answers:(ft=Ct.standard_answers)==null?void 0:ft.map((An,$t)=>Go(Do({},An),{position:$t+1})),hack_codes:Go(Do({},Ct.hack_codes),{code:Fu.Base64.encode(Ct.hack_codes.code)}),standard_answer:void 0}))},onFinishFailed:Ct=>Fi(void 0,null,function*(){var ft,An;xe.ZP.error(Ct.errorFields[0].errors[0]),wn.scrollToField((An=(ft=Ct==null?void 0:Ct.errorFields)==null?void 0:ft[0])==null?void 0:An.name,{behavior:"smooth",block:"center"})})},uo.createElement("div",{style:{display:"flex",alignItems:"center"}},uo.createElement("div",{style:{flex:1}},uo.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),uo.createElement("span",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898")),((qt=Pe==null?void 0:Pe.exercise)==null?void 0:qt.exercise_status)==1&&!(se!=null&&se.isadd)&&uo.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Vn()}},uo.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}})," \u5220\u9664"),uo.createElement(ke.ZP,{onClick:()=>{var Ct,ft,An,$t;se.isadd?(rt(!1),Jt()):(wn.setFieldsValue(Go(Do({},se),{standard_answers:se.standard_answer,difficulty:se.difficult,item_banks_group_id:se.item_banks_group_id,hack:Go(Do({},se),{sub_discipline_id:(Ct=Pe==null?void 0:Pe.exercise)==null?void 0:Ct.sub_discipline_id,tag_discipline_ids:[]}),hack_codes:{language:(ft=se==null?void 0:se.program_attr)==null?void 0:ft.language,code:Fu.Base64.decode((An=se==null?void 0:se.program_attr)==null?void 0:An.code)},hack_sets:Do({},($t=se==null?void 0:se.hack_sets)==null?void 0:$t[0]),repeat_answer:!se.repeat_answer})),rt(!1))}},"\u53D6\u6D88"),uo.createElement(ot.Z,{overlayClassName:nt.shake,open:dt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:uo.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},uo.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},uo.createElement(ke.ZP,{className:"ml20",type:"primary",onClick:()=>{wn.submit()}},"\u4FDD\u5B58"))),uo.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},uo.createElement(fn.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}),uo.createElement(Ni.t,{form:wn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7A0B\u5E8F\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:bt,hackidentifier:se==null?void 0:se.hack_identifier,answerKey:"standard_answers"}),uo.createElement(Ca,{getTagData:pn,qitem:se,exerciseitem:Pe,TagDiscipline:Se,form:wn}))))},xi=ae(11662),Bl=ae(49613),Ki=ae(6455),_i=ae(89392),ql=ae(26573),lu=ae(5864),bn=ae(59301),Hi=Object.defineProperty,Pl=Object.defineProperties,Ji=Object.getOwnPropertyDescriptors,$l=Object.getOwnPropertySymbols,kl=Object.prototype.hasOwnProperty,ol=Object.prototype.propertyIsEnumerable,si=(se,Se,Pe)=>Se in se?Hi(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,ti=(se,Se)=>{for(var Pe in Se||(Se={}))kl.call(Se,Pe)&&si(se,Pe,Se[Pe]);if($l)for(var Pe of $l(Se))ol.call(Se,Pe)&&si(se,Pe,Se[Pe]);return se},Xi=(se,Se)=>Pl(se,Ji(Se)),No=(se,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch(qt){mt(qt)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch(qt){mt(qt)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(se,Se)).next())});const{confirm:il}=Ue.default,Ii=[{name:"\u5355\u9009\u9898",id:0,count:"q_singles",score:"q_singles_scores",nameType:"SINGLE"},{name:"\u591A\u9009\u9898",id:1,count:"q_doubles",score:"q_doubles_scores",nameType:"MULTIPLE"},{name:"\u5224\u65AD\u9898",id:2,count:"q_judges",score:"q_judges_scores",nameType:"JUDGMENT"},{name:"\u586B\u7A7A\u9898",id:3,count:"q_nulls",score:"q_nulls_scores",nameType:"COMPLETION"},{name:"\u7B80\u7B54\u9898",id:4,count:"q_mains",score:"q_mains_scores",nameType:"SUBJECTIVE"},{name:"\u5B9E\u8BAD\u9898",id:5,count:"q_shixuns",score:"q_shixuns_scores",nameType:"PRACTICAL"},{name:"\u7F16\u7A0B\u9898",id:6,count:"q_pros",score:"q_pros_scores",nameType:"PROGRAM"},{name:"\u7EC4\u5408\u9898",id:7,count:"q_combinations",score:"q_combinations_scores",nameType:"COMBINATION"},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",id:8,count:"q_combinations",score:"q_combinations_scores",nameType:"BPROGRAM"}],xl=({user:se,dispatch:Se,itemid:Pe,setisedits:rt,exercise:mt,setitemid:Vn})=>{var pn,Jt,dt,qt,wn,bt,Ct,ft,An,$t,Tt,sn,Ht,ua,hn,gn,Zr,$r,er,eo,sa,to,Xr,Fo,kr,Lo,wo,gi;const[kn,Ai]=(0,b.useState)(),[pi,Ho]=(0,b.useState)(!1),[zn,mi]=(0,b.useState)(),[Vi,Wi]=(0,b.useState)(),ji=(0,b.useRef)(),Qi=(0,b.useRef)(),[wi,Wl]=(0,b.useState)(),[Al,vl]=(0,b.useState)(!1),[Ro,Xo]=(0,b.useState)(!1),[Ui,Tr]=(0,b.useState)(),[$o,bi]=(0,b.useState)(!1),[fi,Yi]=(0,b.useState)(!1),[pl,ni]=(0,b.useState)(!1),[Zl,Ll]=(0,b.useState)(!1),[ll,di]=(0,b.useState)(!1),[fu,Ql]=(0,b.useState)(!1),ko=(0,he.useParams)(),[Hu,Cu]=(0,b.useState)(!1),[Gl]=we.default.useForm(),[hl,tu]=(0,b.useState)(!1),[wu,uu]=(0,b.useState)(!1),[su,Kt]=(0,b.useState)(!1),[Tn,Vr]=(0,b.useState)(!1),Cr=(0,b.useRef)();(0,b.useEffect)(()=>{Pe&&oo()},[Pe]),(0,b.useEffect)(()=>{rt(Ro)},[Ro]),(0,b.useEffect)(()=>{zn!=null&&zn.question_id&&(Wi(zn==null?void 0:zn.question_score),Qi.current=zn==null?void 0:zn.question_id)},[zn]);const jr=ea=>No(void 0,null,function*(){let nr=yield Se({type:"newExercisePaper/getTagDiscipline",payload:{sub_discipline_id:ea}});Se({type:"globalSetting/footerToggle",payload:!1}),Tr(nr)});function oo(){return No(this,null,function*(){var ea,nr,Wr,Po,Ao,Ir;vl(!0),Ho(!0);const qr=yield Se({type:"exercise/editExercise",payload:{categoryId:Pe}});vl(!1),Ho(!1),Ai(qr),di(!1),(ea=qr==null?void 0:qr.exercise)!=null&&ea.sub_discipline_id&&jr((nr=qr==null?void 0:qr.exercise)==null?void 0:nr.sub_discipline_id),mi(Xi(ti({},(Ao=(Po=(Wr=qr==null?void 0:qr.exercise_question_types)==null?void 0:Wr[0])==null?void 0:Po.items)==null?void 0:Ao[0]),{index:1})),Wl(Xi(ti({},(Ir=qr==null?void 0:qr.exercise_question_types)==null?void 0:Ir[0]),{indexs:1}))})}function To(ea,nr=!0){return No(this,null,function*(){var Wr,Po,Ao,Ir;nr&&(vl(!0),Ho(!0));const qr=yield Se({type:"exercise/editExercise",payload:{categoryId:Pe}});Ai(qr);let zo=[];(Wr=qr==null?void 0:qr.exercise_question_types)==null||Wr.map(La=>{var yr;(yr=La==null?void 0:La.items)==null||yr.map((Co,ai)=>{zo.push(Xi(ti({},Co),{index:ai+1}))})});let el=(Po=zo.filter(La=>La.question_id===(ea==null?void 0:ea.id)))==null?void 0:Po[0],vo=(Ir=((Ao=qr==null?void 0:qr.exercise_question_types)==null?void 0:Ao.map((La,yr)=>{if((el==null?void 0:el.question_type)===(La==null?void 0:La.question_type))return Xi(ti({},La),{indexs:yr+1})})).filter(La=>La))==null?void 0:Ir[0];Wl(ti({},vo)),mi(ti({},el)),Wi(el==null?void 0:el.question_score),vl(!1),Ho(!1),di(!1)})}function co(ea){return No(this,null,function*(){var nr;let Wr=Xi(ti({},ea),{repeat_answer:!ea.repeat_answer,difficulty:(ea==null?void 0:ea.difficulty)||2,item_type:ea.question_type,sub_discipline_id:((nr=ea==null?void 0:ea.sub_discipline_id)==null?void 0:nr[1])||"",tag_discipline_ids:[],hack:Xi(ti({},ea==null?void 0:ea.hack),{difficult:(ea==null?void 0:ea.difficulty)||2}),hack_identifier:sessionStorage.projectFill});ea.tag_discipline_ids&&(Wr.tag_discipline_ids=Array.isArray(ea.tag_discipline_ids)?ea.tag_discipline_ids:[ea.tag_discipline_ids]);let Po=ll?`/api/exercises/${Pe}/exercise_questions`:`/api/exercise_questions/${ea==null?void 0:ea.question_id}.json`;if((ea==null?void 0:ea.is_my)===1){const Ao=il({title:"\u63D0\u793A",content:bn.createElement("div",null,bn.createElement("p",null,"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F"),bn.createElement("i",{className:"iconfont icon-guanbi",style:{position:"absolute",top:"20px",right:"20px",cursor:"pointer"},onClick:()=>{Ao.destroy()}})),okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>No(this,null,function*(){Wr.is_cover=1;let Ir=yield(0,te.ZP)(Po,{method:ll?"post":"PUT",body:ti({},Wr)});(Ir==null?void 0:Ir.status)===0&&(Xo(!1),To({id:(Ir==null?void 0:Ir.exercise_question_id)||(ea==null?void 0:ea.question_id)})),Ao.destroy()}),onCancel:()=>No(this,null,function*(){let Ir=yield(0,te.ZP)(Po,{method:ll?"post":"PUT",body:ti({},Wr)});(Ir==null?void 0:Ir.status)===0&&(Xo(!1),To({id:(Ir==null?void 0:Ir.exercise_question_id)||(ea==null?void 0:ea.question_id)})),Ao.destroy()})})}else{let Ao=yield(0,te.ZP)(Po,{method:ll?"post":"PUT",body:ti({},Wr)});(Ao==null?void 0:Ao.status)===0&&(Xo(!1),To({id:(Ao==null?void 0:Ao.exercise_question_id)||(ea==null?void 0:ea.question_id)}))}(0,ht.Vf)("#question-scroll-id")})}function Nl(ea){return No(this,null,function*(){var nr,Wr;Ho(!0);let Po=yield(0,te.ZP)(`/api/exercises/${Pe}/sort_question_type.json`,{method:"post",body:{question_type:ea}});if(Ho(!1),(Po==null?void 0:Po.status)===0){const Ao=yield Se({type:"exercise/editExercise",payload:{categoryId:Pe}});Ai(Ao),di(!1),(nr=Ao==null?void 0:Ao.exercise)!=null&&nr.sub_discipline_id&&jr((Wr=Ao==null?void 0:Ao.exercise)==null?void 0:Wr.sub_discipline_id)}})}const Oi=(ea,nr,Wr)=>No(void 0,null,function*(){var Po;if(ea.length===0){xe.ZP.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),Wr();return}const Ao={id:ko==null?void 0:ko.exerciseId,file:(Po=ea[0])==null?void 0:Po.file,sub_discipline_id:nr};ps(Ao,`${xi.Z.API_SERVER}/api/courses/${ko==null?void 0:ko.coursesId}/exercises/import_exercise.json`,Ir=>{var qr;if((Ir==null?void 0:Ir.status)===0){const zo={};(qr=Ir==null?void 0:Ir.fail)==null||qr.forEach(Il=>{var vo;((vo=Object.keys(zo))==null?void 0:vo.includes(Il.message))?zo[Il.message]=zo[Il.message]+1:zo[Il.message]=1});let el=`\u6210\u529F\u5BFC\u5165${Ir==null?void 0:Ir.success}\u6761`;Object.keys(zo).forEach(Il=>{el=el+`,${Il}${zo[Il]}\u6761`}),xe.ZP.success(el),bi(!1),oo()}(Ir==null?void 0:Ir.status)===-1&&(xe.ZP.error(Ir==null?void 0:Ir.message),Wr())})}),du=(ea,nr)=>No(void 0,null,function*(){kn.exercise_types.q_scores=Number(kn.exercise_types.q_scores)+Number(ea)-Number(nr==null?void 0:nr.question_score);const Wr=yield(0,Ki.zR)({score:(0,_i.round)(ea,1),question_id:nr==null?void 0:nr.question_id});if((Wr==null?void 0:Wr.status)===0){xe.ZP.success("\u4FEE\u6539\u6210\u529F"),To({id:Qi.current},!1);return}(Wr==null?void 0:Wr.status)===-1&&Wi(nr==null?void 0:nr.question_score)}),nu=()=>{Vr(!0)};(0,b.useEffect)(()=>{if(Tn){const ea=setTimeout(()=>{Vr(!1)},2e3);return()=>clearTimeout(ea)}},[Tn]);const ps=(ea,nr,Wr,Po,Ao)=>{const Ir=new FormData;Object.keys(ea).forEach(zo=>{Ir.append(zo,ea[zo])});const qr=new window.XMLHttpRequest;return qr.withCredentials=!0,qr.addEventListener("load",function(zo){var el;Wr(JSON.parse((el=zo==null?void 0:zo.target)==null?void 0:el.response))},!1),qr.addEventListener("error",function(zo){Ao&&Ao(zo)},!1),qr.upload.onprogress=zo=>{Po&&Po(zo)},qr.open("POST",nr),qr.send(Ir),qr};function Hl(){return No(this,null,function*(){Ue.default.confirm({title:"\u63D0\u793A",content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",okText:"\u786E\u5B9A",centered:!0,className:nt.modalconfirm,onOk:()=>No(this,null,function*(){if(zn.question_id){let ea=yield(0,te.ZP)(`/api/exercise_questions/${zn.question_id}.json`,{method:"delete"});(ea==null?void 0:ea.status)===0&&(oo(),Xo(!1))}else mi({}),Xo(!1),oo()}),cancelText:"\u53D6\u6D88"})})}const Ul=ea=>No(void 0,null,function*(){return yield(0,te.ZP)(`/api/exercises/${Pe}/select_questions.json`,{method:"post",body:ti({},ea)})}),{overflow:es,handleMouseEnter:hs,handleMouseLeave:ts}=(0,Bl.I)(),ns=(ea,nr)=>bn.createElement(Lt.default,null,bn.createElement(Lt.default.Item,{key:"0",onClick:()=>zu(ea==null?void 0:ea.question_type)},bn.createElement("span",{className:nt.moreSpan},"\u65B0\u589E")),bn.createElement(Lt.default.Item,{key:"1",disabled:nr===0,onClick:()=>No(void 0,null,function*(){if(nr===0)return;if(Ro){nu();return}let Wr=(0,ht.rz)(kn==null?void 0:kn.exercise_question_types,nr,nr-1);yield Nl(Wr.map(Po=>Po.name))})},bn.createElement("span",{className:nt.moreSpan},"\u4E0A\u79FB")),bn.createElement(Lt.default.Item,{key:"2",disabled:nr===(kn==null?void 0:kn.exercise_question_types.length)-1,onClick:()=>No(void 0,null,function*(){if(nr===(kn==null?void 0:kn.exercise_question_types.length)-1)return;if(Ro){nu();return}let Wr=(0,ht.rz)(kn==null?void 0:kn.exercise_question_types,nr,nr+1);yield Nl(Wr.map(Po=>Po.name))})},bn.createElement("span",{className:nt.moreSpan},"\u4E0B\u79FB")),bn.createElement(Lt.default.Item,{key:"3",onClick:()=>{var Wr;Gl.setFieldsValue({name:ea.name,item_type_en:(Wr=Ii.find(Po=>Po.id==ea.question_type))==null?void 0:Wr.nameType}),tu(!0)}},bn.createElement("span",{className:nt.moreSpan},"\u91CD\u547D\u540D"))),zu=ea=>{var nr,Wr,Po,Ao,Ir,qr,zo,el,Il,vo,La,yr,Co,ai,cu,Ol,Yl,Ml,vu,au,yl,Ss,Cs,Ps;if(Ro){nu();return}if(di(!0),ea===5){ni(!0),Ll(!0);return}if(ea===6){let Ms=(Wr=(nr=mt==null?void 0:mt.editData)==null?void 0:nr.exercise)!=null&&Wr.set_question_sub_discipline?`/problems/newcreate?express_id=${(Po=kn==null?void 0:kn.exercise)==null?void 0:Po.id}&callback_url=/classrooms/${ko.coursesId}/exercise/add/${Pe}?type=2&discipline_id=${(Ir=(Ao=mt==null?void 0:mt.editData)==null?void 0:Ao.exercise)==null?void 0:Ir.discipline_id}&sub_discipline_id=${(zo=(qr=mt==null?void 0:mt.editData)==null?void 0:qr.exercise)==null?void 0:zo.sub_discipline_id}`:`/problems/newcreate?express_id=${(el=kn==null?void 0:kn.exercise)==null?void 0:el.id}&callback_url=/classrooms/${ko.coursesId}/exercise/add/${Pe}?type=2`;he.history.push(Ms);return}Xo(!0),mi(ea===2?{question_type:ea,isadd:!0,repeat_answer:!0,choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],question_choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],difficulty:2,standard_answers:[],question_score:"",question_title:"",tag_discipline_ids:[],discipline_id:(vo=(Il=mt==null?void 0:mt.editData)==null?void 0:Il.exercise)!=null&&vo.set_question_sub_discipline?(yr=(La=mt==null?void 0:mt.editData)==null?void 0:La.exercise)==null?void 0:yr.discipline_id:0,sub_discipline_id:(ai=(Co=mt==null?void 0:mt.editData)==null?void 0:Co.exercise)!=null&&ai.set_question_sub_discipline?(Ol=(cu=mt==null?void 0:mt.editData)==null?void 0:cu.exercise)==null?void 0:Ol.sub_discipline_id:0,analysis:""}:{question_type:ea,question_choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),standard_answers:[],repeat_answer:!0,difficulty:2,isadd:!0,tag_discipline_ids:[],question_score:"",analysis:"",sub_item_banks:[],is_ordered:!0,question_title:"",use_keywords:!1,keywords:[],use_blank_score:!0,allow_student_debug:!1,submit_rule:1,discipline_id:(Ml=(Yl=mt==null?void 0:mt.editData)==null?void 0:Yl.exercise)!=null&&Ml.set_question_sub_discipline?(au=(vu=mt==null?void 0:mt.editData)==null?void 0:vu.exercise)==null?void 0:au.discipline_id:0,sub_discipline_id:(Ss=(yl=mt==null?void 0:mt.editData)==null?void 0:yl.exercise)!=null&&Ss.set_question_sub_discipline?(Ps=(Cs=mt==null?void 0:mt.editData)==null?void 0:Cs.exercise)==null?void 0:Ps.sub_discipline_id:0,downcase:!0,no_space:!0})},Es=[{key:1,label:"\u6279\u91CF\u5BFC\u5165",onClick:()=>{bi(!0)}},{key:2,label:bn.createElement("div",null,bn.createElement("img",{width:26,style:{position:"absolute",top:-2},src:lu.$}),bn.createElement("span",null,"\u667A\u80FD\u5BFC\u5165")),onClick:()=>{if(Ro){nu();return}uu(!0)}}];return console.log(wi==null?void 0:wi.question_type,zn==null?void 0:zn.question_type),bn.createElement("div",null,bn.createElement(_t.Z,{spinning:Al},bn.createElement("div",{className:nt.bg},((pn=kn==null?void 0:kn.exercise_types)==null?void 0:pn.q_counts)===0&&!Ro&&bn.createElement(Jn.Z,{styles:{marginTop:180},customText:bn.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",bn.createElement("span",{className:"c-light-primary"},"\u5E95\u90E8\u64CD\u4F5C\u680F"),"\u8FDB\u884C\u6DFB\u52A0~")}),(((Jt=kn==null?void 0:kn.exercise_types)==null?void 0:Jt.q_counts)>0||Ro)&&bn.createElement("div",{style:{textAlign:"center"}},bn.createElement("div",{style:{marginTop:20,borderTop:"1px solid #DCDCDC",display:"block",alignItems:"stretch"}},bn.createElement("div",{style:{backgroundColor:"#F6F7F9",display:"inline-block",position:"sticky",top:0}},bn.createElement("div",{className:nt.left},bn.createElement("div",{className:nt.leftAction},((dt=kn==null?void 0:kn.exercise)==null?void 0:dt.exercise_status)===1&&bn.createElement(ke.ZP,{onClick:()=>{if(Ro){nu();return}Yi(!0)},className:nt.Button},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C")),bn.createElement("div",{className:nt.scrollWrapper,style:{overflow:es},onMouseEnter:hs,onMouseLeave:ts},(qt=kn==null?void 0:kn.exercise_question_types)==null?void 0:qt.map((ea,nr)=>bn.createElement("div",{key:nr,className:"mb30"},bn.createElement("div",{className:nt.title},bn.createElement("div",{className:nt.titleleft},bn.createElement("span",{style:{color:"#000000",fontWeight:400,fontSize:12}}," ",(0,ht.EM)(nr+1),"\u3001\u3010",ea.name,"\u3011"),bn.createElement("span",{style:{color:"#464F66",fontSize:12}},"\uFF08",ea.count,"\u5C0F\u9898\uFF0C\u5171",ea.score,"\u5206\uFF09")),bn.createElement(Ce.Z,{dropdownRender:()=>ns(ea,nr),placement:"bottomLeft"},bn.createElement("div",{className:nt.more_style},bn.createElement("i",{className:"iconfont icon-sandian font12"})))),bn.createElement(da,{handleEditing:nu,isedit:Ro,setBigqitem:Wl,bigitem:Xi(ti({},ea),{indexs:nr+1}),setqitem:Wr=>No(void 0,null,function*(){var Po;(Po=ji.current)==null||Po.blur(),mi(Wr)}),qitem:zn,Itemid:Pe,getdata:To,data:ea.items})))))),bn.createElement("div",{id:"question-scroll-id",style:{overflow:Ro?"hidden":"auto"},className:nt.right},!(zn!=null&&zn.isadd)&&bn.createElement("div",{className:nt.title},!Ro&&bn.createElement("div",{style:{flex:1}},bn.createElement("span",{style:{color:"#000000",fontWeight:600,fontSize:16}}," ",(wi==null?void 0:wi.indexs)&&(0,ht.EM)(wi==null?void 0:wi.indexs),"\u3001\u3010",wi==null?void 0:wi.name,"\u3011"),bn.createElement(ot.Z,{title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0"},bn.createElement("i",{className:`${nt.edit} iconfont icon-bianji_Hover mr5 ml5 font18`,onClick:()=>{var ea;Gl.setFieldsValue({name:wi.name,item_type_en:(ea=Ii.find(nr=>nr.id==wi.question_type))==null?void 0:ea.nameType}),tu(!0)}})),bn.createElement("span",{style:{color:"#464F66",fontSize:16,fontWeight:400}},"\uFF08",wi==null?void 0:wi.count,"\u5C0F\u9898\uFF0C\u5171",wi==null?void 0:wi.score,"\u5206\uFF09"),(zn==null?void 0:zn.question_type)===6&&bn.createElement("span",{onClick:()=>{Ue.default.destroyAll(),Kt(2)},className:"current c-light-primary font14 bold-400"},"\u6279\u91CF\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00"),(zn==null?void 0:zn.question_type)===5&&bn.createElement(Ke.default,{defaultChecked:(bt=(wn=mt==null?void 0:mt.editData)==null?void 0:wn.exercise)==null?void 0:bt.show_challenge_task_pass,onChange:ea=>No(void 0,null,function*(){let nr=yield(0,te.ZP)(`/api/exercises/${Pe}/update_show_columns.json`,{method:"post",body:{show_challenge_task_pass:ea.target.checked}});(nr==null?void 0:nr.status)===0&&(xe.ZP.info("\u8BBE\u7F6E\u6210\u529F"),To({id:Qi.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u9898\u76EE\u63CF\u8FF0"),(zn==null?void 0:zn.question_type)===6&&bn.createElement("span",{style:{marginLeft:20},onClick:()=>{var ea,nr,Wr,Po;Ue.default.confirm({title:"\u7F16\u7A0B\u9898\u8BBE\u7F6E",icon:null,centered:!0,closable:!0,footer:null,content:bn.createElement("div",null,(zn==null?void 0:zn.question_type)===6&&bn.createElement(Ke.default,{defaultChecked:(nr=(ea=mt==null?void 0:mt.editData)==null?void 0:ea.exercise)==null?void 0:nr.show_hack_sets,onChange:Ao=>No(void 0,null,function*(){let Ir=yield(0,te.ZP)(`/api/exercises/${Pe}/update_show_columns.json`,{method:"post",body:{show_hack_sets:Ao.target.checked}});(Ir==null?void 0:Ir.status)===0&&(xe.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Ue.default.destroyAll(),To({id:Qi.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u6D4B\u8BD5\u7528\u4F8B"),bn.createElement("br",null),(zn==null?void 0:zn.question_type)===6&&bn.createElement(Ke.default,{defaultChecked:(Po=(Wr=mt==null?void 0:mt.editData)==null?void 0:Wr.exercise)==null?void 0:Po.show_hack_description,onChange:Ao=>No(void 0,null,function*(){let Ir=yield(0,te.ZP)(`/api/exercises/${Pe}/update_show_columns.json`,{method:"post",body:{show_hack_description:Ao.target.checked}});(Ir==null?void 0:Ir.status)===0&&(xe.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Ue.default.destroyAll(),To({id:Qi.current}))}),style:{marginBottom:10}},"\u5C55\u793A\u8BD5\u9898\u63CF\u8FF0"))})},className:"current c-light-primary font14 bold-400"},"\u7F16\u7A0B\u9898\u663E\u793A\u8BBE\u7F6E")),bn.createElement("div",{style:{display:"flex",alignItems:"center"}},(zn==null?void 0:zn.question_type)===5&&!Ro&&bn.createElement("a",{className:nt.shixun,href:`/shixuns/${zn==null?void 0:zn.shixun_identifier}/challenges?exercise=true`,target:"_blank"},bn.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u8BD5\u9898\u8BE6\u60C5"),!Ro&&((Ct=kn==null?void 0:kn.exercise)==null?void 0:Ct.exercise_status)==1&&[0,1,2,4,6].includes(zn==null?void 0:zn.question_type)&&bn.createElement(we.default.Item,{label:"\u5206\u503C",style:{margin:"0 20px"},required:!0},bn.createElement(De.Z,{precision:1,ref:ji,onChange:ea=>Wi(ea),value:Vi,onBlur:ea=>{du(ea.target.value,zn)}})),!Ro&&((ft=kn==null?void 0:kn.exercise)==null?void 0:ft.exercise_status)==1&&bn.createElement(ot.Z,{title:"\u5220\u9664"},bn.createElement("span",{onClick:()=>{Hl()},style:{marginRight:20},className:`${nt.delete} mr8 ml8 `},"\u5220\u9664")),(zn==null?void 0:zn.question_type)!==5&&!Ro&&bn.createElement(bn.Fragment,null,(zn==null?void 0:zn.is_my)==1&&bn.createElement(ot.Z,{title:"\u67E5\u770B\u539F\u9898"},bn.createElement("i",{className:`${nt.yuanti} iconfont icon-chakanyuanti mr8 ml8`,onClick:()=>{(zn==null?void 0:zn.question_type)==6?window.open(`/problems/newedit/${zn==null?void 0:zn.item_bank_hack_identifier}`):(zn==null?void 0:zn.question_type)==8?window.open(`/problemset/edit/${zn==null?void 0:zn.item_bank_hack_identifier}?type=1`):window.open(`/problemset/edit/${zn==null?void 0:zn.item_bank_id}`)}})),bn.createElement(ot.Z,{title:"\u52A0\u5165\u6211\u7684\u9898\u5E93"},bn.createElement("i",{className:`${nt.tianjia} iconfont icon-jiarushitiku mr8 ml8`,onClick:()=>{Cr.current=[],Ue.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u52A0\u5165\u6211\u7684\u9898\u5E93",maskClosable:!0,className:"custom-modal-divider",icon:null,content:bn.createElement("div",{className:`font14 ${nt.overflow}`,style:{maxHeight:500,overflow:"auto"}},bn.createElement("p",{className:"c-grey-333"},"\u8BF7\u9009\u62E9\u52A0\u5165\u7684\u6587\u4EF6\u5939"),bn.createElement(_t.Z,{spinning:!1},bn.createElement(ql.Z,{defaultValue:!0,value:Cr.current,onChange:ea=>Cr.current=ea}))),onOk:()=>No(void 0,null,function*(){var ea;(0,Ki.$l)({id:zn==null?void 0:zn.question_id,group_id:((ea=Cr==null?void 0:Cr.current)==null?void 0:ea[0])||""}).then(nr=>{(nr==null?void 0:nr.status)==0&&(xe.ZP.success("\u52A0\u5165\u6210\u529F"),oo())})})})}}))),!Ro&&(((An=kn==null?void 0:kn.exercise)==null?void 0:An.exercise_status)==1||(($t=kn==null?void 0:kn.exercise)==null?void 0:$t.exercise_status)==2&&((sn=(Tt=se.userInfo)==null?void 0:Tt.course)==null?void 0:sn.course_role)!=15||((Ht=kn==null?void 0:kn.exercise)==null?void 0:Ht.exercise_status)==3&&((hn=(ua=se.userInfo)==null?void 0:ua.course)==null?void 0:hn.course_role)!=15||((gn=kn==null?void 0:kn.exercise)==null?void 0:gn.exercise_status)==4&&(($r=(Zr=se.userInfo)==null?void 0:Zr.course)==null?void 0:$r.course_role)!=15)&&bn.createElement(ot.Z,{title:"\u7F16\u8F91\u8BD5\u9898"},bn.createElement("span",{onClick:()=>{(zn==null?void 0:zn.question_type)===6?he.history.push(`/problems/newedit/${zn==null?void 0:zn.hack_identifier}?type=exercises&express_id=${ko.exerciseId}&question_id=${zn==null?void 0:zn.question_id}&score=${zn==null?void 0:zn.question_score}&exercise=true&callback_url=/classrooms/${ko.coursesId}/exercise/add/${Pe}?type=2`):Xo(!0)},className:`${nt.edit} ml8`},"\u7F16\u8F91")))),!Ro&&bn.createElement("div",null,bn.createElement("div",{className:nt.qcount},bn.createElement("span",{className:nt.score},zn==null?void 0:zn.question_score,"\u5206"),bn.createElement(Rt.Z,{className:nt.qtitle,value:(zn==null?void 0:zn.index)+`\u3001${(zn==null?void 0:zn.question_type)==8?(er=zn==null?void 0:zn.program_attr)==null?void 0:er.description:zn==null?void 0:zn.question_title}`}),(zn==null?void 0:zn.high_resources_consume)&&bn.createElement(Pr.Z,{type:"shixun",style:{marginLeft:10}})),(zn==null?void 0:zn.question_type)===6&&bn.createElement(dn.Z,{onEdit:()=>Kt(1),className:"mt10",dataSource:(zn==null?void 0:zn.languages)||[]}),bn.createElement(fs,{exercise:mt,TagDiscipline:Ui,qitem:zn})),Ro&&bn.createElement("div",null,(zn==null?void 0:zn.question_type)<=1&&bn.createElement(Ot,{deleteitem:Hl,getTagData:jr,seveeditor:co,exerciseitem:kn,TagDiscipline:Ui,setisedit:Xo,qitem:zn,init:oo,showTip:Tn}),(zn==null?void 0:zn.question_type)===5&&bn.createElement(Xu,{setqitem:mi,deleteitem:Hl,seveeditor:co,exerciseitem:kn,TagDiscipline:Ui,setisedit:Xo,qitem:zn,showTip:Tn}),(zn==null?void 0:zn.question_type)===3&&bn.createElement(ya,{deleteitem:Hl,getTagData:jr,seveeditor:co,exerciseitem:kn,TagDiscipline:Ui,setisedit:Xo,qitem:zn,init:oo,showTip:Tn}),(zn==null?void 0:zn.question_type)===2&&bn.createElement(no,{deleteitem:Hl,getTagData:jr,seveeditor:co,exerciseitem:kn,TagDiscipline:Ui,setisedit:Xo,qitem:zn,init:oo,showTip:Tn}),(zn==null?void 0:zn.question_type)===4&&bn.createElement(Dt,{deleteitem:Hl,getTagData:jr,seveeditor:co,exerciseitem:kn,TagDiscipline:Ui,setisedit:Xo,qitem:zn,init:oo,showTip:Tn}),(zn==null?void 0:zn.question_type)===7&&bn.createElement(us,{deleteitem:Hl,getTagData:jr,seveeditor:co,exerciseitem:kn,TagDiscipline:Ui,setisedit:Xo,qitem:zn,init:oo,showTip:Tn}),(zn==null?void 0:zn.question_type)===8&&bn.createElement(ci,{deleteitem:Hl,getTagData:jr,seveeditor:co,exerciseitem:kn,TagDiscipline:Ui,setisedit:Xo,qitem:zn,init:oo,showTip:Tn}))))))),bn.createElement("div",{className:nt.bottomdiv},bn.createElement("div",{className:nt.exercise_styles},((eo=kn==null?void 0:kn.exercise)==null?void 0:eo.exercise_status)==1&&bn.createElement(bn.Fragment,null,bn.createElement("span",{className:nt.spanBtn,onClick:()=>{if(Ro){nu();return}ni(!0),Ll(!0)}},"\u9898\u5E93\u9009\u9898"),bn.createElement(Ce.Z,{menu:{items:Es}},bn.createElement("span",{className:nt.spanBtn},"\u5BFC\u5165\u8BD5\u9898")),bn.createElement("span",{className:nt.spanBtn,onClick:()=>No(void 0,null,function*(){var ea;let nr=yield(0,te.ZP)(`/api/exercises/${ko==null?void 0:ko.exerciseId}/simulate_start_answer.json`,{method:"get",params:{coursesId:ko==null?void 0:ko.coursesId,categoryId:ko==null?void 0:ko.exerciseId}});(nr==null?void 0:nr.status)!=-1&&window.open(`/classrooms/${ko==null?void 0:ko.coursesId}/exercise/${ko==null?void 0:ko.exerciseId}/${(ea=se.userInfo)==null?void 0:ea.login}/initate_answer`)})},"\u6A21\u62DF\u8003\u8BD5"),bn.createElement("span",{className:nt.spanBtn,onClick:()=>{window.open(`/classrooms/${ko==null?void 0:ko.coursesId}/exercise/${ko==null?void 0:ko.exerciseId}/detail?random=false&tabs=2`)}},"\u8BD5\u5377\u9884\u89C8"),Ii==null?void 0:Ii.map(ea=>bn.createElement(ke.ZP,{className:nt.addQuestionBtn,key:ea.id,type:"primary",onClick:()=>{zu(ea.id)}},ea.name))),((sa=kn==null?void 0:kn.exercise)==null?void 0:sa.exercise_status)!=1&&bn.createElement(bn.Fragment,null,bn.createElement("span",{style:{width:"1022px"}})),bn.createElement("span",{className:nt.saveBtn,onClick:()=>No(void 0,null,function*(){var ea,nr,Wr;if(Ro){nu();return}const Po=Number(kn.exercise_types.q_scores);[100,120,150].includes(Po)||(yield new Promise((qr,zo)=>{Ue.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:bn.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",bn.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},Po),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>No(void 0,null,function*(){qr("")}),onCancel:()=>{zo()}})}));let Ao=(nr=(ea=kn==null?void 0:kn.exercise_question_types)==null?void 0:ea.filter(qr=>qr.question_type===5)[0])==null?void 0:nr.items,Ir=0;Ao==null||Ao.map(qr=>{qr.high_resources_consume&&(Ir=Ir+1)}),console.log(Ir),Ir>0?Se({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u63D0\u793A",count:Ir,fn:()=>{var qr;((qr=kn==null?void 0:kn.exercise)==null?void 0:qr.exercise_status)==1?(xe.ZP.success("\u4FDD\u5B58\u6210\u529F"),he.history.push(`/classrooms/${ko==null?void 0:ko.coursesId}/exercise/${Pe}/detail?random=false&tabs=3`),Ql(!1)):he.history.back()}}}):((Wr=kn==null?void 0:kn.exercise)==null?void 0:Wr.exercise_status)==1?(xe.ZP.success("\u4FDD\u5B58\u6210\u529F"),he.history.push(`/classrooms/${ko==null?void 0:ko.coursesId}/exercise/${Pe}/detail?random=false&tabs=3`),Ql(!1)):he.history.back()})},bn.createElement("i",{className:"iconfont icon-baocun1",style:{fontSize:15,marginRight:5}}),"\u4FDD\u5B58\u8BD5\u5377"))),bn.createElement(cn,{setScoreShow:Yi,ScoreShow:fi,exerciseitem:kn,getdata:oo}),pl&&bn.createElement(ui,{setScoreShow:ni,isshixuns:Zl,SpecificDifficulty:(to=kn==null?void 0:kn.exercise)==null?void 0:to.difficulty,isloadings:Hu,ScoreShow:pl,onOk:(ea,nr,Wr,Po,Ao)=>No(void 0,null,function*(){Cu(!0);let qr=yield Ul({exam_id:Pe,item_bank_ids:ea,shixun_ids:nr,shixun_copy_ids:Ao});Cu(!1),(qr==null?void 0:qr.status)===0&&Ue.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u65B0\u52FE\u9009\u7684\u8BD5\u9898\u5DF2\u7ECF\u6DFB\u52A0\u5230\u8BD5\u5377\uFF0C\u5982\u679C\u9700\u8981\u7EE7\u7EED\u6DFB\u52A0\u65B0\u8BD5\u9898\u8BF7\u70B9\u51FB\u201C\u7EE7\u7EED\u9009\u9898\u201D\uFF0C\u5C06\u56DE\u5230\u60A8\u4E0A\u6B21\u64CD\u4F5C\u7684\u9009\u9898\u9875\u9762",okText:"\u7EE7\u7EED\u9009\u9898",cancelText:"\u8FD4\u56DE\u8BD5\u5377",onOk:()=>{oo()},onCancel:()=>{ni(!1),oo()}})})}),bn.createElement(qu.Z,{sub_discipline_id:(Xr=kn==null?void 0:kn.exercise)!=null&&Xr.sub_discipline_id?[(Fo=kn==null?void 0:kn.exercise)==null?void 0:Fo.discipline_id,(kr=kn==null?void 0:kn.exercise)==null?void 0:kr.sub_discipline_id]:[],visible:$o,onCancel:()=>bi(!1),onOk:Oi}),bn.createElement(Ue.default,{title:"\u63D0\u793A",open:fu,confirmLoading:!1,centered:!0,okText:"\u8BBE\u7F6E\u89C4\u5219",cancelText:"\u4FEE\u6539\u8BD5\u5377",footer:bn.createElement("div",null,bn.createElement(ke.ZP,{onClick:()=>{Ql(!1),he.history.back()}},"\u7A0D\u540E\u518D\u8BF4"),bn.createElement(ke.ZP,{type:"primary",onClick:()=>{he.history.push(`/classrooms/${ko==null?void 0:ko.coursesId}/exercise/${Pe}/detail?random=false&tabs=3`),Ql(!1)}},"\u8BBE\u7F6E\u89C4\u5219")),onCancel:()=>{Ql(!1)}},bn.createElement("p",null,"\u8BD5\u5377\u521B\u5EFA\u5B8C\u6210\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u8BBE\u7F6E\u8003\u8BD5\u89C4\u5219\uFF1F")),bn.createElement(Ue.default,{centered:!0,title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0",open:hl,width:500,onOk:()=>Gl.submit(),onCancel:()=>tu(!1)},bn.createElement(we.default,{form:Gl,initialValues:{},onFinish:ea=>No(void 0,null,function*(){(yield(0,Ki.RK)(ti({id:Pe},ea))).status==0&&(xe.ZP.success("\u4FEE\u6539\u6210\u529F"),oo(),tu(!1))})},bn.createElement(we.default.Item,{name:"name",style:{marginBottom:0},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9898\u578B\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"},{validator(ea,nr){var Wr,Po,Ao,Ir;const qr=(Wr=Ii==null?void 0:Ii.find(zo=>zo.nameType==Gl.getFieldValue("item_type_en")))==null?void 0:Wr.id;return(Ir=(Ao=(Po=kn==null?void 0:kn.exercise_question_types)==null?void 0:Po.filter(zo=>zo.question_type!=qr))==null?void 0:Ao.map(zo=>zo==null?void 0:zo.name))!=null&&Ir.includes(nr)?Promise.reject(new Error("\u9898\u578B\u540D\u79F0\u5DF2\u5B58\u5728\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u9898\u578B\u540D\u79F0")):Promise.resolve()}}]},bn.createElement(We.default,{size:"large",maxLength:10,showCount:!0})),bn.createElement(we.default.Item,{hidden:!0,name:"item_type_en"},bn.createElement(We.default,{size:"large"})))),bn.createElement(nn.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:wu},bn.createElement("div",{style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},"\u667A\u80FD\u5BFC\u5165"),bn.createElement(lu.Z,{stickyTop:-24,subDisciplineId:(Lo=kn==null?void 0:kn.exercise)!=null&&Lo.sub_discipline_id?[(wo=kn==null?void 0:kn.exercise)==null?void 0:wo.discipline_id,(gi=kn==null?void 0:kn.exercise)==null?void 0:gi.sub_discipline_id]:[],onCancel:()=>uu(!1),mode:3,gather:{exercise_id:Pe},onSuccess:()=>{uu(!1),oo()}}),bn.createElement("div",{style:{height:70}})),bn.createElement(dn.Q,{visible:!!su,setVisible:Kt,tip:su===2&&"\u8BBE\u7F6E\u5DF2\u6DFB\u52A0\u5728\u8BD5\u5377\u4E2D\u7684\u7F16\u7A0B\u9898\u6240\u5141\u8BB8\u4F7F\u7528\u7684\u7F16\u7A0B\u8BED\u8A00",dataSource:su===1?zn==null?void 0:zn.languages:[],onOk:ea=>No(void 0,null,function*(){const nr={languages:ea};su===1?nr.hack_id=zn==null?void 0:zn.hack_id:nr.exercise_id=Pe,(yield(0,te.ZP)("/api/problems/update_languages.json",{method:"post",body:nr})).status===0&&(xe.ZP.success("\u4FEE\u6539\u6210\u529F"),To({id:Qi.current}),Kt(!1))})}))};var Ci=(0,he.connect)(({user:se,exercise:Se,dispatch:Pe})=>({user:se,exercise:Se,dispatch:Pe}))(xl),zi=ae(81232),zl=ae(94287),qo=ae(36276),$i=ae(87169),wl=ae(26692),la=ae(59301),Tl=Object.defineProperty,gl=Object.defineProperties,ml=Object.getOwnPropertyDescriptors,jl=Object.getOwnPropertySymbols,Dl=Object.prototype.hasOwnProperty,eu=Object.prototype.propertyIsEnumerable,Vl=(se,Se,Pe)=>Se in se?Tl(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[Se]=Pe,br=(se,Se)=>{for(var Pe in Se||(Se={}))Dl.call(Se,Pe)&&Vl(se,Pe,Se[Pe]);if(jl)for(var Pe of jl(Se))eu.call(Se,Pe)&&Vl(se,Pe,Se[Pe]);return se},Va=(se,Se)=>gl(se,ml(Se)),so=(se,Se)=>{var Pe={};for(var rt in se)Dl.call(se,rt)&&Se.indexOf(rt)<0&&(Pe[rt]=se[rt]);if(se!=null&&jl)for(var rt of jl(se))Se.indexOf(rt)<0&&eu.call(se,rt)&&(Pe[rt]=se[rt]);return Pe},Jo=(se,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch(qt){mt(qt)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch(qt){mt(qt)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(se,Se)).next())});const fl=se=>{var Se=se,{classroomList:Pe,globalSetting:rt,problemset:mt,loading:Vn,exercise:pn,user:Jt,dispatch:dt}=Se,qt=so(Se,["classroomList","globalSetting","problemset","loading","exercise","user","dispatch"]),wn,bt,Ct,ft,An,$t,Tt,sn,Ht,ua,hn,gn,Zr,$r;const er=(0,he.useParams)(),[eo,sa]=(0,b.useState)(!1),{userInfo:to}=Jt,[Xr]=we.default.useForm();let[Fo,kr]=(0,b.useState)({});const[Lo,wo]=(0,b.useState)(1),[gi,kn]=(0,b.useState)(""),[Ai]=(0,he.useSearchParams)(),[pi,Ho]=(0,b.useState)(!1),[zn,mi]=(0,b.useState)(!1),[Vi,Wi]=(0,b.useState)(!1),[ji,Qi]=(0,b.useState)(""),[wi,Wl]=(0,b.useState)(!1),[Al,vl]=(0,b.useState)(!1);(0,b.useEffect)(()=>{dt({type:"problemset/getEditDisciplines",payload:{source:"new_question",identifier:er==null?void 0:er.coursesId}}),dt({type:"globalSetting/footerToggle",payload:!1}),Xr.setFieldsValue({difficulty:2,courseid:[]})},[]),(0,b.useEffect)(()=>{er.exerciseId&&Jo(void 0,null,function*(){var Tr,$o,bi;const fi=yield dt({type:"exercise/editExercise",payload:{categoryId:er.exerciseId}});(fi==null?void 0:fi.status)!==-1&&(((Tr=fi==null?void 0:fi.exercise)==null?void 0:Tr.exercise_status)===2||(($o=fi==null?void 0:fi.exercise)==null?void 0:$o.exercise_status)===3||((bi=fi==null?void 0:fi.exercise)==null?void 0:bi.exercise_status)===4?Wi(!0):Wi(!1))})},[er]),(0,b.useEffect)(()=>{if(er.exerciseId){let Tr=pn.editData.exercise;vl(Tr==null?void 0:Tr.set_question_sub_discipline),Xr.setFieldsValue(Va(br({},Tr),{courseid:Tr!=null&&Tr.sub_discipline_id?[Tr==null?void 0:Tr.discipline_id,Tr==null?void 0:Tr.sub_discipline_id]:[]}))}},[pn]),(0,b.useEffect)(()=>{Ai.get("type")==="2"&&(kn(er.exerciseId),wo(2))},[Ai.get("type")]),(0,b.useEffect)(()=>{var Tr;let $o=(Tr=mt==null?void 0:mt.disciplinesData)==null?void 0:Tr.checked;$o!=null&&$o.sub_discipline_id&&Xr.setFieldsValue({courseid:[$o==null?void 0:$o.discipline_id,$o==null?void 0:$o.sub_discipline_id]})},[(wn=mt==null?void 0:mt.disciplinesData)==null?void 0:wn.checked]);function Ro(Tr,$o){return Jo(this,null,function*(){var bi,fi,Yi,pl;yield Xr.validateFields();const ni=Xr.getFieldsValue(),{courseid:Zl}=ni,[Ll,ll]=Zl;ni.sub_discipline_id=ll,ni.is_md=!0,ni.time=parseInt(ni.time)>9999?9999:ni.time;const di=yield dt({type:"exercise/addExercise",payload:br(br({},ni),er)});di.status===0?(yield(0,te.ZP)(`/api/courses/${er==null?void 0:er.coursesId}/exercises/notice_at.json`,{method:"POST",body:{course_id:er==null?void 0:er.coursesId,id:(bi=di==null?void 0:di.data)==null?void 0:bi.exercise_id,time:Tr}}),Ui((fi=di.data)==null?void 0:fi.exercise_id),kn((Yi=di==null?void 0:di.data)==null?void 0:Yi.exercise_id),wo(2),Ho(!1),he.history.replace(`/classrooms/${er.coursesId}/exercise/add/${(pl=di.data)==null?void 0:pl.exercise_id}?type=2`)):xe.ZP.error(di.message),$o()})}function Xo(Tr){kr(br({},Tr))}function Ui(Tr){return Jo(this,null,function*(){if(!(Fo!=null&&Fo.ec_point_ids))return;const $o=br({},Fo);delete $o.id;let bi=yield(0,te.ZP)(`/api/ec_courses/${Fo==null?void 0:Fo.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:br({exercise_id:Tr},$o)})})}return la.createElement("div",{style:{background:"#ffffff",marginTop:-8,padding:8,minHeight:"100vh",paddingBottom:64}},la.createElement("section",{className:"edu-container"},la.createElement("section",{className:"animated fadeIn"},la.createElement("aside",{className:"mt10"},to&&la.createElement(Re.Z,{separator:">"},la.createElement(Re.Z.Item,null,la.createElement(he.Link,{to:`/classrooms/${er.coursesId}/exercise`},(bt=to==null?void 0:to.course)==null?void 0:bt.course_name)),la.createElement(Re.Z.Item,null,la.createElement(he.Link,{to:`/classrooms/${er.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")),la.createElement(Re.Z.Item,null,er.exerciseId?"\u7F16\u8F91\u8BD5\u5377":"\u65B0\u5EFA\u8BD5\u5377")))),er.exerciseId&&la.createElement("div",{style:{display:"inline-flex",background:"rgba(233, 146, 55, 0.05)",borderRadius:4,height:40,lineHeight:"40px",width:"100%",padding:"0px 10px",alignItems:"center",marginTop:20}},la.createElement($i.Z,{style:{marginRight:5,color:"#E99237"}}),la.createElement("span",{style:{flex:1,color:"#E99237"}},"\u53D1\u5E03\u540E\u7684\u8BD5\u5377\u4E0D\u5141\u8BB8\u8FDB\u884C\u589E\u52A0/\u5220\u9664\u8BD5\u9898\u548C\u4FEE\u6539\u5206\u503C\u7B49\u64CD\u4F5C\uFF0C\u82E5\u9700\u8981\u4E8C\u6B21\u4F7F\u7528\uFF0C\u53EF\u5C06\u8BD5\u5377\u52A0\u5165\u8BD5\u5377\u5E93\u4E2D\u8FDB\u884C\u7F16\u8F91"),la.createElement("span",{className:ze.addQuestionBtn,onClick:()=>{dt({type:"exercise/setActionTabs",payload:{key:"\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93",selectArrs:[er.exerciseId]}})}},"\u52A0\u5165\u8BD5\u5377\u5E93")),la.createElement(qo.Z,{haveInit:!0,init:()=>{Qi(new Date)}}),la.createElement("div",{className:"bg-white"},la.createElement("div",{style:{display:"flex",justifyContent:"center",paddingTop:20,alignItems:"center"}},la.createElement("div",{onClick:()=>{if(zn){xe.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u8BD5\u9898\u3002");return}wo(1)},className:Lo===1?ze.selectdiv:ze.divitem},la.createElement(zi.Z,{number:1,active:Lo===1,className:"mr10"}),la.createElement("span",null,"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F")),la.createElement("div",{style:{width:188,border:"1px dotted #9096A3",margin:"0px 30px",height:1}}),la.createElement("div",{onClick:()=>{if(!er.exerciseId&&!gi){xe.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u57FA\u7840\u4FE1\u606F\u518D\u65B0\u5EFA\u8BD5\u9898");return}wo(2),!gi&&kn(er.exerciseId)},className:Lo!==1?ze.selectdiv:ze.divitem},la.createElement(zi.Z,{number:2,active:Lo!==1,className:"mr10"}),la.createElement("span",null,"\u7F16\u8F91\u8BD5\u9898"))),Lo===2&&la.createElement("div",{className:"tc"},la.createElement(zl.Z,{defaultValue:(ft=(Ct=pn==null?void 0:pn.editData)==null?void 0:Ct.exercise)==null?void 0:ft.exercise_name,onFinish:Tr=>Jo(void 0,null,function*(){var $o,bi,fi,Yi,pl,ni,Zl,Ll,ll,di,fu,Ql;return Tr.trim()===((bi=($o=pn==null?void 0:pn.editData)==null?void 0:$o.exercise)==null?void 0:bi.exercise_name)?!0:(yield(0,Ki.wy)({exercise_name:Tr,exercise_description:(Yi=(fi=pn==null?void 0:pn.editData)==null?void 0:fi.exercise)==null?void 0:Yi.exercise_description,sub_discipline_id:(ni=(pl=pn==null?void 0:pn.editData)==null?void 0:pl.exercise)==null?void 0:ni.sub_discipline_id,time:(Ll=(Zl=pn==null?void 0:pn.editData)==null?void 0:Zl.exercise)==null?void 0:Ll.time,exerciseId:(di=(ll=pn.editData)==null?void 0:ll.exercise)==null?void 0:di.id,difficulty:(Ql=(fu=pn.editData)==null?void 0:fu.exercise)==null?void 0:Ql.difficulty})).status===0?(Xr.setFieldValue("exercise_name",Tr),!0):!1})}),la.createElement("div",{style:{fontSize:14}},la.createElement("span",{style:{color:"#5F6368"}},"\u7B54\u9898\u65F6\u957F",la.createElement("span",{style:{color:"#000000",marginLeft:8}},(($t=(An=pn==null?void 0:pn.editData)==null?void 0:An.exercise)==null?void 0:$t.time)||"\u4E0D\u9650")),la.createElement("span",{style:{margin:"0px 30px",color:"#5F6368"}},"\u96BE\u5EA6",la.createElement("span",{style:{color:"#000000",marginLeft:8}},((sn=(Tt=pn==null?void 0:pn.editData)==null?void 0:Tt.exercise)==null?void 0:sn.difficulty)===1?"\u7B80\u5355":((ua=(Ht=pn==null?void 0:pn.editData)==null?void 0:Ht.exercise)==null?void 0:ua.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),la.createElement("span",{style:{marginRight:30,color:"#5F6368"}},"\u8BD5\u9898\u603B\u6570",la.createElement("span",{style:{color:"#000000",marginLeft:8}},((gn=(hn=pn==null?void 0:pn.editData)==null?void 0:hn.exercise_types)==null?void 0:gn.q_counts)||0)),la.createElement("span",{style:{color:"#5F6368"}},"\u603B\u5206",la.createElement("span",{style:{color:"#000000",marginLeft:8}},($r=(Zr=pn==null?void 0:pn.editData)==null?void 0:Zr.exercise_types)==null?void 0:$r.q_scores))))),Lo===1&&la.createElement("div",null,la.createElement("section",{className:[ze.bg,"mt20"].join(" "),style:{padding:"30px 120px 300px 120px"}},la.createElement(we.default,{form:Xr,colon:!1,layout:"horizontal",labelCol:{span:4},wrapperCol:{span:20},initialValues:{time:60},onFinish:Tr=>Jo(void 0,null,function*(){var $o,bi,fi,Yi,pl;if(sa(!0),Ho(!0),er.exerciseId){Tr.exerciseId=(bi=($o=pn.editData)==null?void 0:$o.exercise)==null?void 0:bi.id,Tr.sub_discipline_id=Tr.courseid[Tr.courseid.length-1],yield(0,Ki.wy)(Va(br({},Tr),{set_question_sub_discipline:Al})),wo(2),Ui(er==null?void 0:er.exerciseId),kn(er.exerciseId),sa(!1),Ho(!1);return}const ni=yield(0,te.ZP)(`/api/courses/${er==null?void 0:er.coursesId}/exercises/overload_alert.json`,{method:"get",params:{course_id:er==null?void 0:er.coursesId}});if(ni!=null&&ni.alert)dt({type:"classroomList/setActionTabs",payload:{key:"\u9884\u7EA6\u5F39\u7A97"}});else{const{courseid:Zl}=Tr,[Ll,ll]=Zl;Tr.sub_discipline_id=ll,Tr.is_md=!0,Tr.time=parseInt(Tr.time)>9999?9999:Tr.time,Tr.set_question_sub_discipline=Al;const di=yield dt({type:"exercise/addExercise",payload:Va(br(br({},Tr),er),{category_id:Ai.get("catalogue")||null})});di.status===0&&(Ui((fi=di.data)==null?void 0:fi.exercise_id),he.history.replace(`/classrooms/${er.coursesId}/exercise/add/${(Yi=di.data)==null?void 0:Yi.exercise_id}?type=2`),kn((pl=di==null?void 0:di.data)==null?void 0:pl.exercise_id),wo(2)),Ho(!1)}sa(!1)}),className:ze.formWrap},la.createElement(we.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u540D\u79F0",className:ze.baseLineHeight,rules:[{required:!0,validator:(Tr,$o)=>{var bi;return((bi=$o==null?void 0:$o.replaceAll(" ",""))==null?void 0:bi.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},la.createElement(We.default,{maxLength:60,className:ze.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),la.createElement(we.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"courseid",className:ze.baseLineHeight},la.createElement(Be.Z,{disabled:Vi,placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:mt.courseOptions,className:ze.baseFormItem,size:"large",popupClassName:ze.cascaderPopup,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14},allowClear:!0})),la.createElement("div",{className:ze.concat},la.createElement("div",null,la.createElement(Ke.default,{checked:Al,onChange:Tr=>{vl(Tr.target.checked)},style:{color:"#000"}},"\u8BBE\u7F6E\u8BE5\u65B9\u5411&\u8BFE\u7A0B\u4E3A\u8BD5\u9898\u6A21\u7248\uFF08\u521B\u5EFA\u65B0\u8BD5\u9898\u81EA\u52A8\u4F7F\u7528\u8BE5\u65B9\u5411&\u8BFE\u7A0B\uFF09")),la.createElement("div",null,"\u6CA1\u6709\u5408\u9002\u7684\u65B9\u5411&\u8BFE\u7A0B\uFF1F",la.createElement("a",{onClick:()=>Wl(!0)},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"))),la.createElement(we.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:ze.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},la.createElement(Oe.ZP.Group,{className:ze.radiogroup,disabled:Vi},la.createElement(Oe.ZP.Button,{className:ze.easy,value:1},"\u7B80\u5355"),la.createElement(Oe.ZP.Button,{className:ze.medium,value:2},"\u9002\u4E2D"),la.createElement(Oe.ZP.Button,{className:ze.hard,value:3},"\u56F0\u96BE"))),la.createElement(we.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:ze.baseLineHeight},la.createElement("div",{style:{display:"flex",width:"100%"}},la.createElement(we.default.Item,{name:"time",noStyle:!0},la.createElement(De.Z,{disabled:Vi,min:1,max:9999,className:ze.baseFormItem,style:{width:220},maxLength:60,placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),la.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),la.createElement(we.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exercise_description"},la.createElement(We.default.TextArea,{disabled:Vi,rows:6,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"}))),la.createElement(xn,{exercise_id:er==null?void 0:er.exerciseId,setitem:Xo})),la.createElement("div",{className:ze.bottmodiv},la.createElement(ke.ZP,{className:`${ze.cancelBtn}`,type:"primary",onClick:()=>{he.history.back()}},"\u53D6\u6D88"),la.createElement(ke.ZP,{loading:pi,onClick:()=>{Xr.validateFields(),Xr.submit()},type:"primary",className:`${ze.confirmBtn} ml20`},"\u4E0B\u4E00\u6B65")),la.createElement(z,{setsubloading:Ho,onModalOk:Ro})),Lo===2&&la.createElement("div",null,la.createElement(Ci,{key:ji,setisedits:mi,setitemid:kn,itemid:gi}))),la.createElement(wl.Z,{open:wi,onCancel:()=>{Wl(!1)}}))};var mu=(0,he.connect)(({classroomList:se,loading:Se,user:Pe,problemset:rt,globalSetting:mt,exercise:Vn})=>({classroomList:se,globalSetting:mt,problemset:rt,user:Pe,exercise:Vn,loading:Se.effects}))(fl)},48722:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Ye}});var b=ae(78241),he=ae(8591),we=ae(43418),xe=ae(71418),Re=ae(6848),We=ae(57809),Be=ae(5112),Ke=ae(92832),Oe=ae(1710),De=ae(59301),ke=ae(90115),ze=ae(64866),Ue=ae(22566),le={radio_con:"radio_con___cvwXd",result_con:"result_con___m5Gmr",result_title:"result_title___D7L1n"},E=ae(16624),a=ae(30720),x=ae(8658),y=ae(59301),z=Object.defineProperty,te=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,Fe=(Ge,$e,be)=>$e in Ge?z(Ge,$e,{enumerable:!0,configurable:!0,writable:!0,value:be}):Ge[$e]=be,Qe=(Ge,$e)=>{for(var be in $e||($e={}))ie.call($e,be)&&Fe(Ge,be,$e[be]);if(ue)for(var be of ue($e))Ee.call($e,be)&&Fe(Ge,be,$e[be]);return Ge},Le=(Ge,$e)=>te(Ge,oe($e)),st=(Ge,$e,be)=>new Promise((vt,ct)=>{var Ft=Bn=>{try{En(be.next(Bn))}catch(Wt){ct(Wt)}},At=Bn=>{try{En(be.throw(Bn))}catch(Wt){ct(Wt)}},En=Bn=>Bn.done?vt(Bn.value):Promise.resolve(Bn.value).then(Ft,At);En((be=be.apply(Ge,$e)).next())});const Me=({shixunHomeworks:Ge,exercise:$e,loading:be,dispatch:vt})=>{var ct,Ft,At;const{commonHeader:En}=$e,[Bn,Wt]=(0,De.useState)([]),[Pt,Te]=(0,De.useState)(Le(Qe({},(0,ke.useParams)()),{page:1,limit:10})),[et,Yt]=(0,De.useState)([]),[xn,Lt]=(0,De.useState)(""),[_t,Ce]=(0,De.useState)(1),[ot]=b.default.useForm(),[nn,nt]=(0,De.useState)({}),[ht,Jn]=(0,De.useState)(null),[dn,Qt]=(0,De.useState)(!1),[Rt,Wn]=(0,De.useState)([]),[ra,en]=(0,De.useState)(null),[Ba,Ka]=(0,De.useState)(0),[Fa,jn]=(0,De.useState)(0),[Ha,Pa]=(0,De.useState)(!1),fr=[{title:"\u5E8F\u53F7",dataIndex:"1",width:80,render:(St,kt,ja)=>(Pt.page-1)*Pt.limit+ja+1},{title:"\u59D3\u540D",dataIndex:"user_name",ellipsis:!0,width:180},{title:"\u5B66\u53F7",dataIndex:"student_id",align:"left",sorter:!0,render:St=>St||"--"},{title:"\u5206\u73ED",dataIndex:"user_group_name",align:"left",render:(St,kt)=>y.createElement("div",{className:le.banding,title:St||"--"},St||"--")},{title:"\u63D0\u4EA4\u72B6\u6001",width:200,dataIndex:"commit_status",render:(St,kt)=>St===0?y.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):St===1?y.createElement("span",{style:{color:"#DF3042"}},!kt.is_make_up&&"\u8003\u8BD5\u4E2D",kt.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):St===2?y.createElement("span",{style:{color:"#5AB891"}},!kt.is_make_up&&!kt.is_force_commit&&"\u5DF2\u4EA4\u5377",kt.is_make_up&&!kt.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",kt.is_make_up&&kt.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!kt.is_make_up&&kt.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):y.createElement("span",{style:{color:"#5AB891"}},!kt.is_make_up&&!kt.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",kt.is_make_up&&!kt.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",kt.is_make_up&&kt.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!kt.is_make_up&&kt.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)")},{title:(En==null?void 0:En.exercise_type)==2&&!(0,E.dE)()?"\u6700\u9AD8\u6210\u7EE9":"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:(St,kt)=>kt.commit_status===0||kt.commit_status===1?"--":!kt.open_total_score&&(0,E.dE)()?"\u8001\u5E08\u5BA1\u6838\u4E2D":(St=typeof St=="number"?Number(St):St,console.log(typeof St),St||(St=0),St===100?y.createElement("span",{className:"c-green"},St):St>60?y.createElement("span",{className:"c-orange"},St):St==Fa*.6?y.createElement("span",{className:"c-red"},St):y.createElement("span",null,St))}].filter(St=>!!St);(0,De.useEffect)(()=>{var St;((St=$e.actionTabs)==null?void 0:St.key)=="\u6D4B\u8BD5AI\u8BC4\u5206"&&(Wn([]),en(null),oa(),da(Pt))},[(ct=$e.actionTabs)==null?void 0:ct.key]);const oa=()=>st(void 0,null,function*(){var St;if(!((St=$e.actionTabs)!=null&&St.showSelectQuestion))return;const kt=yield(0,ze.ZP)(`/api/exercises/${Pt==null?void 0:Pt.categoryId}/all_subj_questions.json`,{method:"get"});kt.status==0&&Wn(kt.data)}),Zn=(St,kt)=>{Pt.page=St,Pt.limit=kt,Te(Qe({},Pt)),da(Pt)},da=St=>st(void 0,null,function*(){Pa(!0);const kt=yield(0,ze.ZP)(`/api/exercises/${Pt.categoryId||(Pt==null?void 0:Pt.exerciseId)}/exercise_users.json`,{method:"get",params:St});kt.status==0&&(Ka(kt.data.total_count),Te(Le(Qe({},Pt),{total:kt.data.total_count})),Wt(kt.data.exercise_users),jn(kt.data.total_score)),Pa(!1)}),Aa=St=>{Pt.search=St,Pt.page=1,ot.resetFields(),nt({}),Yt([]),Jn(null),Te(Qe({},Pt)),da(Pt)},xa=St=>st(void 0,null,function*(){var kt,ja;const Ca=Qe({},nn);if(!((kt=St==null?void 0:St.content)!=null&&kt.trim())){he.ZP.warning("\u8BF7\u8F93\u5165\u7B54\u9898\u5185\u5BB9\uFF01");return}Ca.content=St==null?void 0:St.content,Ca.attachment_ids=(ja=St==null?void 0:St.attachment_ids)==null?void 0:ja.map(Wa=>Wa.response.id),_a(Ca)}),_a=St=>st(void 0,null,function*(){var kt;Qt(!0);const{showSelectQuestion:ja,ai_review_settings:Ca}=$e.actionTabs,Wa=yield(0,ze.ZP)(`/api/exercises/${(Pt==null?void 0:Pt.categoryId)||(Pt==null?void 0:Pt.exerciseId)}/test_ai_review.json`,{method:"post",body:Le(Qe({},St),{exercise_question_id:ja?ra:(kt=$e.actionTabs)==null?void 0:kt.questionId,ai_review_settings:Ca})});if([0,-3].includes(Wa.status)){Wa.status==0&&he.ZP.success("\u8BC4\u5206\u6D4B\u8BD5\u6210\u529F\uFF01"),Jn(Wa);const Da=document.querySelector(".modal-ai-pfcs");if(Da){const Ta=Da.querySelector(".ant-modal-body");Ta&&(Ta.scrollTop=Ta.scrollHeight)}}Qt(!1)}),Sn=()=>{vt({type:"exercise/setActionTabs",payload:{key:""}}),Ce(1),rn()},rn=()=>{ot.resetFields(),nt({}),Yt([]),Lt(""),Jn(null)};return y.createElement(we.default,{className:"modal-ai-pfcs",width:1150,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u6D4B\u8BD5AI\u8BC4\u5206",confirmLoading:dn,open:((Ft=$e.actionTabs)==null?void 0:Ft.key)==="\u6D4B\u8BD5AI\u8BC4\u5206",destroyOnClose:!0,onCancel:()=>Sn(),okText:ht?"\u91CD\u65B0\u6D4B\u8BD5":"\u5F00\u59CB\u6D4B\u8BD5",onOk:()=>{var St;if((St=$e.actionTabs)!=null&&St.showSelectQuestion&&!ra)return he.ZP.warning("\u8BF7\u9009\u62E9\u9898\u76EE\uFF01");if(_t==1){if(et.length==0)return he.ZP.warning("\u8BF7\u9009\u62E9\u4E00\u4F4D\u5B66\u751F\u8BD5\u5377\u8FDB\u884C\u8BC4\u5206\u6D4B\u8BD5\uFF01");_a({exercise_user_id:et[0]})}else _t==2&&ot.submit()}},y.createElement(xe.Z,{spinning:dn,tip:"\u6D4B\u8BD5AI\u8BC4\u5206\u4E2D\u2026\u2026"},((At=$e.actionTabs)==null?void 0:At.showSelectQuestion)&&y.createElement("div",{className:"flex item-center justify-between mb10"},y.createElement("div",{style:{width:120,margin:"0 10px",display:"flex",alignItems:"center"}},y.createElement("span",{style:{color:"red",marginRight:5}},"*"),"\u9009\u62E9\u9898\u76EE",y.createElement(Re.Z,{title:"\u667A\u80FD\u8BC4\u9605\u76EE\u524D\u4EC5\u652F\u6301\u7B80\u7B54\u9898\uFF08\u542B\u7EC4\u5408\u9898\u4E2D\u7684\u7B80\u7B54\u9898\uFF09"},y.createElement("i",{className:`iconfont icon-tishixiaowenhao ${le.title_icon}`,style:{cursor:"pointer",marginLeft:5,fontSize:"14px"}}))),y.createElement(We.default,{style:{width:"calc(100% - 110px)"},size:"large",placeholder:"\u8BF7\u9009\u62E9\u9898\u76EE",value:ra,onChange:St=>en(St)},Rt==null?void 0:Rt.map(St=>y.createElement(We.default.Option,{key:St==null?void 0:St.id,value:St==null?void 0:St.id},St==null?void 0:St.question_title)))),y.createElement("div",{className:le.radio_con},y.createElement("span",{style:{marginRight:32}},"\u6D4B\u8BD5\u65B9\u5F0F"),y.createElement(Be.ZP.Group,{onChange:St=>{St.target.value==1&&Zn(1,10),Ce(St.target.value),rn()},value:_t,options:[{label:"\u9009\u62E9\u5B66\u751F\u7B54\u6848",value:1,style:{marginRight:30,color:"#000"}},{label:"\u8F93\u5165\u7B54\u9898\u5185\u5BB9",value:2,style:{marginRight:30,color:"#000"}}]})),_t==1&&y.createElement(y.Fragment,null,y.createElement("div",{className:"flex justify-between item-center mb10"},y.createElement("div",{style:{fontSize:"14px",color:"#FA6400"}},"\u63D0\u793A\uFF1A","\u53EA\u80FD\u9009\u62E9\u5DF2\u63D0\u4EA4\u8BD5\u5377\u7684\u5B66\u751F\u8FDB\u884C\u8BC4\u5206\u6D4B\u8BD5"),y.createElement(Ke.default.Search,{style:{width:487},size:"large",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:xn,onChange:St=>Lt(St.target.value),onSearch:Aa})),y.createElement(Oe.default,{rowSelection:{type:"radio",selectedRowKeys:et,onChange:(St,kt)=>{Yt(St)},getCheckboxProps:St=>({disabled:[0,1].includes(St==null?void 0:St.commit_status)})},loading:Ha,rowKey:"exercise_user_id",dataSource:Bn||[],columns:fr,pagination:{current:Pt.page,hideOnSinglePage:!0,showQuickJumper:!0,showSizeChanger:!0,pageSize:Pt.limit,className:"mb0",pageSizeOptions:["10","20","50","100","200"],total:Ba,size:"default",showTotal:Ue.rU,onChange:Zn},onChange:(St,kt,ja)=>{Pt.page=1,ja.order===void 0?(Pt.order_type=null,Pt.order=null):(Pt.order_type=ja.order==="descend"?"desc":"asc",Pt.order=ja.field),Te(Qe({},Pt)),da(Pt)}})),_t==2&&y.createElement("div",{style:{marginTop:20}},y.createElement(b.default,{form:ot,className:le.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{nt(Qe({},ot.getFieldsValue()))},onFinish:xa},y.createElement(b.default.Item,{name:"content",label:"",style:{marginBottom:0}},y.createElement(a.Z,{watch:!0})))),ht&&y.createElement("div",{className:le.result_con},y.createElement("div",{className:le.result_title},"AI\u8BC4\u5206\u7ED3\u679C"),(ht==null?void 0:ht.status)==0&&y.createElement("div",{className:"p20"},y.createElement("div",{className:"mb5"},y.createElement("span",{style:{color:"#333",fontWeight:"bold"}},"\u8BC4\u5206\uFF1A"),ht==null?void 0:ht.score),y.createElement("div",{className:"flex"},y.createElement("span",{style:{color:"#333",fontWeight:"bold",whiteSpace:"nowrap",lineHeight:"26px"}},"\u8BC4\u8BED\uFF1A"),y.createElement(x.Z,{value:ht==null?void 0:ht.content,style:{fontSize:"14px"}}))),(ht==null?void 0:ht.status)==-3&&y.createElement("div",{className:"p20"},y.createElement(x.Z,{value:ht==null?void 0:ht.message,style:{fontSize:"14px"}})))))};var Ye=(0,ke.connect)(({shixunHomeworks:Ge,exercise:$e,loading:be,user:vt})=>({shixunHomeworks:Ge,exercise:$e,loading:be.effects,user:vt}))(Me)},13778:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return E}});var b=ae(59301),he=ae(8591),we=ae(43418),xe=ae(19842),Re=ae(54580),We=ae(3113),Be=ae(11662),Ke=ae(22566),Oe=ae(64866),De=ae(90115),ke={customModal:"customModal___bVzUV",content:"content___oKhZq",upload:"upload___nPxEL",infoText:"infoText___gZEJF",okBtn:"okBtn___CVo2A",fileList:"fileList___tauGN",fileName:"fileName___T_8JX",selectitems:"selectitems___imW2Y"},ze=ae(59301),Ue=(a,x,y)=>new Promise((z,te)=>{var oe=Ee=>{try{ie(y.next(Ee))}catch(Fe){te(Fe)}},ue=Ee=>{try{ie(y.throw(Ee))}catch(Fe){te(Fe)}},ie=Ee=>Ee.done?z(Ee.value):Promise.resolve(Ee.value).then(oe,ue);ie((y=y.apply(a,x)).next())}),E=({visible:a,onOk:x,onCancel:y,sub_discipline_id:z=[]})=>{const[te,oe]=(0,b.useState)([]),[ue,ie]=(0,b.useState)(!1),Ee=(0,De.useParams)(),[Fe,Qe]=(0,b.useState)([]),[Le,st]=(0,b.useState)([]);(0,b.useEffect)(()=>{a?Me():(st([]),oe([]),ie(!1))},[a]);const Me=()=>Ue(void 0,null,function*(){const ct=yield(0,Oe.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});Qe(ct.disciplines||[]),st((z==null?void 0:z.length)>0?z:[])}),Ye=()=>{if((Le==null?void 0:Le.length)===0)return he.ZP.warning("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF01");console.log("subDisciplineId",Le),ie(!0),x(te,Le[1],()=>{ie(!1)})},Ge=()=>{y()},$e=()=>{const ct=`${Be.Z.API_SERVER}/api/courses/${Ee.coursesId}/exercises/down_template`;(0,Ke.Nd)(null,ct)},be=ct=>{const Ft={name:ct.name,uid:ct.uid,file:ct};return oe([Ft]),!1},vt=()=>{oe([])};return ze.createElement(we.default,{title:"\u5BFC\u5165\u8BD5\u9898",open:a,onOk:Ye,centered:!0,wrapClassName:ke.customModal,onCancel:Ge,width:663,okText:"\u786E\u8BA4",okButtonProps:{className:ke.okBtn},cancelText:"\u53D6\u6D88",confirmLoading:ue},ze.createElement("div",{className:ke.content},ze.createElement("aside",null,ze.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA41"),ze.createElement("ul",null,ze.createElement("li",null,ze.createElement("span",{style:{color:"#5F6367"}},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),ze.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginLeft:20},onClick:$e},"\u4E0B\u8F7D\u8003\u8BD5\u8BD5\u9898\u6A21\u677F"),ze.createElement("i",{className:"iconfont icon-xiazai4 ml10",onClick:$e,style:{fontSize:14,cursor:"pointer",color:"#0152d9"}})),ze.createElement("li",{style:{color:"#FA6400"},className:"mt10"},"\u63D0\u793A"),ze.createElement("li",{className:ke.infoText},"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B "),ze.createElement("li",{className:ke.infoText},"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),ze.createElement("li",{className:ke.infoText},"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),ze.createElement("li",{className:ke.infoText},"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))),ze.createElement("aside",{style:{marginTop:22}},ze.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA42"),ze.createElement("ul",{style:{flex:1}},ze.createElement("li",{style:{color:"#5F6367"}},"\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF0C\u4E0A\u4F20\u7F16\u8F91\u597D\u7684\u8BD5\u9898\u6587\u6863\uFF0C\u786E\u5B9A\u5BFC\u5165"),a&&ze.createElement(ze.Fragment,null,ze.createElement(xe.Z,{value:Le,className:ke.selectitems,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Fe,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(ct,Ft)=>{st(ct||[])}}),ze.createElement("br",null),ze.createElement(Re.default,{action:`${Be.Z.API_SERVER}/api/attachments.json`,beforeUpload:be,onRemove:vt,withCredentials:!0,fileList:te,accept:".xls,.xlsx",showUploadList:!1},ze.createElement(We.ZP,{className:ke.upload,type:"primary",icon:ze.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6"))),te.map((ct,Ft)=>ze.createElement("div",{key:Ft,className:ke.fileList},ze.createElement("span",{className:ke.fileName},ct==null?void 0:ct.name),ze.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:16,cursor:"pointer"},onClick:vt})))))))}},36276:function(it,jt,ae){"use strict";var b=ae(59301),he=ae(43418),we=ae(64866),xe=ae(90115),Re=ae(59301),We=(Ke,Oe,De)=>new Promise((ke,ze)=>{var Ue=a=>{try{E(De.next(a))}catch(x){ze(x)}},le=a=>{try{E(De.throw(a))}catch(x){ze(x)}},E=a=>a.done?ke(a.value):Promise.resolve(a.value).then(Ue,le);E((De=De.apply(Ke,Oe)).next())});const Be=({exercise:Ke,dispatch:Oe,init:De,haveInit:ke=!1})=>{const ze=(0,xe.useParams)(),[Ue,le]=(0,b.useState)(!1);let[E,a]=(0,b.useState)();const[x,y]=(0,b.useState)(!1),[z,te]=(0,b.useState)(!1);(0,b.useEffect)(()=>{Ke.actionTabs.key==="\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93"&&oe()},[Ke.actionTabs]);function oe(){return We(this,null,function*(){var ue,ie;let Ee=yield(0,we.ZP)(`/api/courses/${ze==null?void 0:ze.coursesId}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:Ke.actionTabs.selectArrs}});if(((ue=Ee==null?void 0:Ee.cover_exercises)==null?void 0:ue.length)>0)le(!0),a((ie=Ee==null?void 0:Ee.cover_exercises)==null?void 0:ie[0]);else{let Fe=yield(0,we.ZP)(`/api/courses/${ze==null?void 0:ze.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:Ke.actionTabs.selectArrs}});Oe({type:"exercise/setActionTabs",payload:{key:""}}),(Fe==null?void 0:Fe.status)===0&&(ke&&De(),he.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{xe.history.push("/paperlibrary")}}))}})}return Re.createElement("div",null,Re.createElement(he.default,{open:Ue,centered:!0,onCancel:ue=>We(void 0,null,function*(){if(ue.target.outerText==="\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"){y(!0);let ie=yield(0,we.ZP)(`/api/courses/${ze==null?void 0:ze.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:Ke.actionTabs.selectArrs,update:1}});Oe({type:"exercise/setActionTabs",payload:{key:""}}),y(!1),(ie==null?void 0:ie.status)===0&&(ke&&De(),le(!1),he.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{xe.history.push("/paperlibrary")}}))}else le(!1)}),cancelButtonProps:{loading:x},okText:"\u5F62\u6210\u65B0\u8BD5\u5377",cancelText:"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377",okButtonProps:{loading:z},onOk:()=>We(void 0,null,function*(){te(!0);let ue=yield(0,we.ZP)(`/api/courses/${ze==null?void 0:ze.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:Ke.actionTabs.selectArrs}});te(!1),(ue==null?void 0:ue.status)===0&&(ke&&De(),Oe({type:"exercise/setActionTabs",payload:{key:""}}),le(!1),he.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{xe.history.push("/paperlibrary")}}))}),title:"\u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"},Re.createElement("div",null,Re.createElement("p",null,"\u8BE5\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),Re.createElement("div",null,Re.createElement("div",null,"\u8BD5\u5377\uFF1A",E==null?void 0:E.origin_exercise_nam),Re.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",Re.createElement("a",{href:`/paperlibrary/see/${E==null?void 0:E.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},E==null?void 0:E.examination_bank_name))))))};jt.Z=(0,xe.connect)(({exercise:Ke})=>({exercise:Ke}))(Be)},48326:function(it,jt,ae){"use strict";ae.d(jt,{h:function(){return b}});var b=(he=>(he[he.NOMATCH=-1]="NOMATCH",he[he.OK=0]="OK",he[he.TIMEOUT=2]="TIMEOUT",he[he.PODFAILURE=3]="PODFAILURE",he[he.COMPILEFAILURE=4]="COMPILEFAILURE",he[he.EXECUTEFAILURE=5]="EXECUTEFAILURE",he[he.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",he))(b||{})},25537:function(it,jt,ae){"use strict";ae.d(jt,{H7:function(){return E},MK:function(){return le},MU:function(){return De},X6:function(){return ze},bM:function(){return Oe},fi:function(){return a},fu:function(){return Ke},n4:function(){return x},rX:function(){return Ue},vl:function(){return y},zO:function(){return ke}});var b=ae(64866),he=Object.defineProperty,we=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,We=(z,te,oe)=>te in z?he(z,te,{enumerable:!0,configurable:!0,writable:!0,value:oe}):z[te]=oe,Be=(z,te)=>{for(var oe in te||(te={}))xe.call(te,oe)&&We(z,oe,te[oe]);if(we)for(var oe of we(te))Re.call(te,oe)&&We(z,oe,te[oe]);return z};function Ke(z,te){return(0,b.U2)(`myproblems/${z}.json`,Be({hidePopLogin:!0},te||{}))}function Oe(z,te){return(0,b.v_)(`myproblems/${z}/code_submit.json`,te)}function De(z,te){return(0,b.v_)(`myproblems/${z}/code_debug.json`,te)}function ke(z,te){return te.language&&(te.language=encodeURIComponent(te.language)),(0,b.U2)(`myproblems/${z}/submit_records.json`,te)}function ze(z){return(0,b.U2)("myproblems/record_detail.json",{id:z})}function Ue(z,te){return(0,b.U2)(`myproblems/${z}/result.json`,{mode:te})}function le(z,te){return(0,b.v_)(`myproblems/${z}/add_notes.json`,te)}function E(z,te){return(0,b.v_)(`myproblems/${z}/restore_initial_code.json`,te)}function a(z){return(0,b.v_)(`myproblems/${z}/sync_code.json`)}function x(z,te){return(0,b.v_)(`myproblems/${z}/update_code.json`,te)}function y(z,te){return(0,b.v_)(`discusses/${z}/plus.json`,te)}},94287:function(it,jt,ae){"use strict";var b=ae(59301),he=ae(6848),we=ae(92832),xe=ae(8591),Re=ae(97663),We=ae(59301),Be=(Oe,De,ke)=>new Promise((ze,Ue)=>{var le=x=>{try{a(ke.next(x))}catch(y){Ue(y)}},E=x=>{try{a(ke.throw(x))}catch(y){Ue(y)}},a=x=>x.done?ze(x.value):Promise.resolve(x.value).then(le,E);a((ke=ke.apply(Oe,De)).next())});const Ke=({defaultValue:Oe,onFinish:De})=>{const[ke,ze]=(0,b.useState)(!1),[Ue,le]=(0,b.useState)(Oe);return(0,b.useEffect)(()=>{le(Oe)},[Oe]),We.createElement("div",null,ke?We.createElement(we.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:Ue,onChange:E=>{le(E.target.value)},onBlur:()=>Be(void 0,null,function*(){var E;if(((E=Ue==null?void 0:Ue.replaceAll(" ",""))==null?void 0:E.length)<=0){xe.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield De(Ue))&&ze(!1)}),onPressEnter:()=>Be(void 0,null,function*(){var E;if(((E=Ue==null?void 0:Ue.replaceAll(" ",""))==null?void 0:E.length)<=0){xe.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield De(Ue))&&ze(!1)})}):We.createElement("div",{className:Re.Z.title},Ue,We.createElement(he.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},We.createElement("i",{className:`${Re.Z.editIcon} iconfont icon-bianji_Hover`,onClick:()=>ze(!0)}))))};jt.Z=Ke},26692:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return De}});var b=ae(43418),he={ul:"ul___TdfYY"},we=ae(32637),xe=ae(59301),Re=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,Ke=(ke,ze)=>{var Ue={};for(var le in ke)We.call(ke,le)&&ze.indexOf(le)<0&&(Ue[le]=ke[le]);if(ke!=null&&Re)for(var le of Re(ke))ze.indexOf(le)<0&&Be.call(ke,le)&&(Ue[le]=ke[le]);return Ue},De=ke=>{var ze=ke,{open:Ue,onCancel:le}=ze,E=Ke(ze,["open","onCancel"]);return xe.createElement(b.default,{centered:!0,open:Ue,title:xe.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:le,footer:null},xe.createElement("div",null,xe.createElement("div",{className:"tc"},xe.createElement("img",{className:"mt10",src:we,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),xe.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),xe.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),xe.createElement("div",{style:{color:"#333"},className:"pt30 font14"},xe.createElement("ul",{className:he.ul},xe.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),xe.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),xe.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},49613:function(it,jt,ae){"use strict";ae.d(jt,{I:function(){return he}});var b=ae(59301);const he=()=>{const[we,xe]=(0,b.useState)("hidden");return{overflow:we,handleMouseEnter:()=>xe("auto"),handleMouseLeave:()=>xe("hidden")}}},77578:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return b}});const b=he=>he?typeof he=="function"?he():he:null},66104:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return $e}});var b=ae(92310),he=ae.n(b),we=ae(11592),xe=ae(26112),Re=ae(59301),We=ae(92343),Be=ae(36355),Ke=ae(84105),Oe=ae(91857);const De=be=>{let{children:vt}=be;const{getPrefixCls:ct}=Re.useContext(Be.E_),Ft=ct("breadcrumb");return Re.createElement("li",{className:`${Ft}-separator`,"aria-hidden":"true"},vt===""?vt:vt||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var ke=De,ze=function(be,vt){var ct={};for(var Ft in be)Object.prototype.hasOwnProperty.call(be,Ft)&&vt.indexOf(Ft)<0&&(ct[Ft]=be[Ft]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,Ft=Object.getOwnPropertySymbols(be);Atvt[At]||Ft)}function le(be,vt,ct,Ft){if(ct==null)return null;const{className:At,onClick:En}=vt,Bn=ze(vt,["className","onClick"]),Wt=Object.assign(Object.assign({},(0,xe.Z)(Bn,{data:!0,aria:!0})),{onClick:En});return Ft!==void 0?Re.createElement("a",Object.assign({},Wt,{className:he()(`${be}-link`,At),href:Ft}),ct):Re.createElement("span",Object.assign({},Wt,{className:he()(`${be}-link`,At)}),ct)}function E(be,vt){return(Ft,At,En,Bn,Wt)=>{if(vt)return vt(Ft,At,En,Bn);const Pt=Ue(Ft,At);return le(be,Ft,Pt,Wt)}}var a=function(be,vt){var ct={};for(var Ft in be)Object.prototype.hasOwnProperty.call(be,Ft)&&vt.indexOf(Ft)<0&&(ct[Ft]=be[Ft]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,Ft=Object.getOwnPropertySymbols(be);At{const{prefixCls:vt,separator:ct="/",children:Ft,menu:At,overlay:En,dropdownProps:Bn,href:Wt}=be,Te=(et=>{if(At||En){const Yt=Object.assign({},Bn);if(At){const xn=At||{},{items:Lt}=xn,_t=a(xn,["items"]);Yt.menu=Object.assign(Object.assign({},_t),{items:Lt==null?void 0:Lt.map((Ce,ot)=>{var{key:nn,title:nt,label:ht,path:Jn}=Ce,dn=a(Ce,["key","title","label","path"]);let Qt=ht!=null?ht:nt;return Jn&&(Qt=Re.createElement("a",{href:`${Wt}${Jn}`},Qt)),Object.assign(Object.assign({},dn),{key:nn!=null?nn:ot,label:Qt})})})}else En&&(Yt.overlay=En);return Re.createElement(Oe.Z,Object.assign({placement:"bottom"},Yt),Re.createElement("span",{className:`${vt}-overlay-link`},et,Re.createElement(Ke.Z,null)))}return et})(Ft);return Te!=null?Re.createElement(Re.Fragment,null,Re.createElement("li",null,Te),ct&&Re.createElement(ke,null,ct)):null},y=be=>{const{prefixCls:vt,children:ct,href:Ft}=be,At=a(be,["prefixCls","children","href"]),{getPrefixCls:En}=Re.useContext(Be.E_),Bn=En("breadcrumb",vt);return Re.createElement(x,Object.assign({},At,{prefixCls:Bn}),le(Bn,At,ct,Ft))};y.__ANT_BREADCRUMB_ITEM=!0;var z=y,te=ae(17313),oe=ae(83116),ue=ae(37613);const ie=be=>{const{componentCls:vt,iconCls:ct}=be;return{[vt]:Object.assign(Object.assign({},(0,te.Wf)(be)),{color:be.itemColor,fontSize:be.fontSize,[ct]:{fontSize:be.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:be.linkColor,transition:`color ${be.motionDurationMid}`,padding:`0 ${be.paddingXXS}px`,borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",marginInline:-be.marginXXS,"&:hover":{color:be.linkHoverColor,backgroundColor:be.colorBgTextHover}},(0,te.Qy)(be)),"li:last-child":{color:be.lastItemColor},[`${vt}-separator`]:{marginInline:be.separatorMargin,color:be.separatorColor},[`${vt}-link`]:{[` +`}return nn.replaceSelection(vi+` +`),nn.focus();default:throw new Error}},[nn,_n]),$a=(0,b.useMemo)(()=>{switch(_n){case _a:return b.createElement(Wt,{callback:Pn,onCancel:Xa});case ja:return b.createElement(Pt.Z,{callback:Pn,onCancel:Xa});case Sn:return b.createElement(Te.Z,{callback:Pn,onCancel:Xa});case on:return b.createElement(ra,{callback:Pn,onCancel:Xa});case Ca:return b.createElement(jn,{callback:Pn,onCancel:Xa});case"maths-latex":return b.createElement(Zn,{showSaveButton:!0,callback:Pn});case"inline-latex":return b.createElement(da.Z,{showSaveButton:!0,callback:Pn});default:return null}},[_n]);function Xa(){sr("")}(0,b.useEffect)(()=>{if(xt.current){let ia=function(ln){gt=!0,Bt=ln.pageY},Dn=function(){gt=!1},Hn=function(ln){if(gt){let pt=ln.pageY-Bt;pt<0&&(pt=0),pt>300&&(pt=300);let Ln=rn+pt+"px";mr(Ln)}},me=xt.current,gt=!1,Bt=0;return me.addEventListener("mousedown",ia),document.addEventListener("mousemove",Hn),document.addEventListener("mouseup",Dn),()=>{me.removeEventListener("mousedown",ia),document.removeEventListener("mousemove",Hn),document.removeEventListener("mouseup",Dn)}}},[nn,xt]),(0,b.useEffect)(()=>{mr(rn)},[rn]);const ao=Mt(Xe),dr=Mt(Ur),Ga={width:ao,height:dr},wr=(0,b.useMemo)(()=>{if(tr){let ia=new Date(tr),Dn=ia.getHours(),Hn=ia.getMinutes(),me=ia.getSeconds();return Dn=Dn<10?"0"+Dn:Dn,Hn=Hn<10?"0"+Hn:Hn,me=me<10?"0"+me:me,`${Dn}:${Hn}:${me}`}return 0},[tr]),Bo=ia=>{const Dn=[];if(pr){let Hn=-1;ia=ia.replace(/(@▁▁@|@▁@)/g,function(me,gt,Bt){Dn.push({multiLine:me!==$n})})}return Dn};function ri(){window.sessionStorage.removeItem(ya),Mo(!1),Ar(0)}function Rr(){Mo(!1),Ar(0),nn.setValue(window.sessionStorage.getItem(ya))}(0,b.useEffect)(()=>{Qn[_n]&&_n!==St&&_n!==on&&setTimeout(()=>{const ia=document.getElementsByClassName("markdown-popup-form")[0],Dn=window.innerWidth/2-ia.offsetWidth/2,Hn=window.innerHeight/2-ia.offsetHeight/2;Ja(Dn),Yr(Hn)},0)},[_n]);const So=ia=>{ia.preventDefault();const Dn=ia.clientX-Eo,Hn=ia.clientY-Hr;document.body.onmousemove=me=>{let gt=me.clientX-Dn,Bt=me.clientY-Hn;const ln=document.getElementsByClassName("markdown-popup-form")[0],pt=window.innerWidth-ln.offsetWidth,Ln=window.innerHeight-ln.offsetHeight;gt=Math.max(0,Math.min(gt,pt)),Bt=Math.max(0,Math.min(Bt,Ln)),jo(me.clientX,me.clientY,Dn,Hn)&&(Ja(gt),Yr(Bt))},document.body.onmouseup=function(){document.body.onmousemove=null}},jo=(ia,Dn,Hn,me)=>{const gt=document.body.clientHeight,Bt=document.body.clientWidth;return ia<20&&Hn>ia||ia>Bt-20&&HnDn||Dn>gt-20&&mest in Le?ze(Le,st,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Le[st]=Me,z=(Le,st)=>{for(var Me in st||(st={}))a.call(st,Me)&&y(Le,Me,st[Me]);if(E)for(var Me of E(st))x.call(st,Me)&&y(Le,Me,st[Me]);return Le},te=(Le,st)=>Ue(Le,ue(st));const{useForm:oe}=b.default,se={width:280,marginRight:10},ie={labelCol:{span:5},wrapperCol:{span:19}};var Ee=({callback:Le,onCancel:st})=>{const[Me]=oe();let Ye=(0,Oe.useRef)();function Ge(vt){Ye.current.width=Me.getFieldValue("width"),Ye.current.align=Me.getFieldValue("align"),Le(vt,Ye.current)}function $e(vt,ct){if(vt.status===-1){he.ZP.error(vt.message);return}Me.setFieldsValue({src:`/api/attachments/${vt.id}`,type:ct.type})}function be(vt){let ct=vt.target.files[0];Ye.current=ct,Qe(ct,$e)}return ke.createElement(b.default,te(z({form:Me},ie),{className:"upload-image-panel",onFinish:Ge,style:{width:470,overflow:"hidden"}}),ke.createElement(b.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ke.createElement("div",{className:"flex-container"},ke.createElement(b.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},ke.createElement(we.default,{style:se})),ke.createElement(Fe,{onFileChange:be}))),ke.createElement(b.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ke.createElement(we.default,{style:{width:264}})),ke.createElement(b.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ke.createElement(Be.Z,null,ke.createElement(b.default.Item,{name:"width",style:{margin:0}},ke.createElement(Re.Z,{style:{width:264}})),ke.createElement("span",{className:"ml8"},"%"))),ke.createElement(b.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ke.createElement(We.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),ke.createElement("aside",null,ke.createElement(b.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ke.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ke.createElement(xe.ZP,{type:"default",onClick:st},"\u53D6\u6D88"))))};function Fe({onFileChange:Le}){return ke.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ke.createElement("input",{type:"file",onChange:Le}))}function Qe(Le,st){if(!Le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,De.bg)())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Me=new FormData;Me.append("editormd-image-file",Le),Me.append("file_param_name","editormd-image-file"),Me.append("byxhr","true");var Ye=new window.XMLHttpRequest;Ye.withCredentials=!0,Ye.addEventListener("load",function(Ge){st(JSON.parse(Ge.target.responseText),Le)},!1),Ye.addEventListener("error",function(Ge){console.error(Ge)},!1),Ye.open("POST",`${Ke.KI}/api/attachments.json`),Ye.send(Me)}},61569:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return we}});var b=ae(59301),he=ae(4676);class we extends b.Component{constructor(Re){super(Re);const We=window.document;this.node=We.createElement("div"),We.body.appendChild(this.node)}render(){const{children:Re}=this.props;return(0,he.createPortal)(Re,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23734:function(it,jt,ae){"use strict";ae.d(jt,{i:function(){return ie},Z:function(){return Fe}});var b={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},he=ae(71418),we=ae(6848),Be=ae(93948),Re=ae(92310),We=ae.n(Re),xe=ae(22566),Ke=ae(21692),Oe=ae(16624),De=ae(79005),ke=ae(20345),ze=ae(77882),Ue=ae(31081),ue=ae(75309),E=ae(71979),a=ae(47558),x=ae(42922),y=ae(66832),z=ae(96593),te=ae(19664),oe=ae(91833),se=ae(59301);const ie=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:De,swimg:ke},{name:"101\u8BA1\u5212",ptimg:ze,swimg:Ue},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:ue,swimg:E},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:a,swimg:x},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:y,swimg:z},{name:"\u519B\u961F\u4E00\u6D41",ptimg:te,swimg:oe}];var Fe=({className:Qe,dataSource:Le=[],col:st=4,right:Me,bottom:Ye=23,precision:Ge=0,wrapWidth:$e=1200,trackEventItems:be,loading:vt,onRemove:ct=()=>{},isCurrent:bt=!0,showAlias:At=!1,showProgress:En=!1})=>{const xn=Math.floor(($e-(st-1)*Me)/st),Wt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(Pt=>(window.ENV==="build"&&(Pt.ptimg=`/react/build${Pt.ptimg}`,Pt.swimg=`/react/build${Pt.swimg}`),Pt));return se.createElement(he.Z,{spinning:vt},se.createElement("div",{className:We()(b.list,Qe)},!!(Le!=null&&Le.length)&&(Le==null?void 0:Le.map((Pt,Te)=>{var et,Yt,wn,Lt,_t,Ce;const{name:ot,id:an,identifier:tt,featured:ht,school_name:Jn,image_url:dn,excellent:Qt,is_plan:kt}=Pt;return se.createElement("div",{key:an,className:bt&&En?b.wrapisCurrent:b.wrap,style:{width:xn,marginRight:(1+Te)%st===0?0:Me+Ge,marginBottom:Ye}},se.createElement("a",{className:b.li,onClick:Wn=>{Wn.preventDefault(),Wn.stopPropagation(),be&&(0,xe.L9)([be]),(0,xe.xg)(`/paths/${tt}`)}},se.createElement("div",{className:b.img},se.createElement("img",{className:b.cover,src:`${dn}`}),bt&&(0,Oe.bg)()&&(Pt==null?void 0:Pt.studying)&&se.createElement("div",{className:`${b.movebq} user-path-items`,onClick:Wn=>{Wn.stopPropagation(),ct(Pt)}},se.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),se.createElement("span",{className:"c-red"},"\u79FB\u9664")),(et=Pt==null?void 0:Pt.subject_tags)==null?void 0:et.map((Wn,ra)=>{var tn,Ba;if(ra===0){const Fa=(tn=Wt.find(jn=>jn.name==Wn))==null?void 0:tn.swimg;return se.createElement("img",{className:b.sign,src:Fa,style:{left:"-4px"}})}const Ka=(Ba=Wt.find(Fa=>Fa.name==Wn))==null?void 0:Ba.ptimg;return se.createElement("img",{className:b.sign,src:Ka,style:{left:`${48+52*(ra-1)+2*ra}px`}})}),se.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Pt==null?void 0:Pt.excellent)&&se.createElement("div",{className:b.bq},"\u5F00\u653E\u8BFE\u7A0B"))),se.createElement("div",{className:b.name},se.createElement(we.Z,{title:At&&(Pt!=null&&Pt.excellent_alias_name)?se.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ot}`,se.createElement("br",null),se.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Pt==null?void 0:Pt.excellent_alias_name}`)):ot},se.createElement("span",{className:b.e},At&&(Pt==null?void 0:Pt.excellent_alias_name)||ot))),bt&&En&&((Yt=Pt==null?void 0:Pt.progress)==null?void 0:Yt.all_score)!=0&&se.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},se.createElement(Be.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((wn=Pt==null?void 0:Pt.progress)==null?void 0:wn.my_score)/((Lt=Pt==null?void 0:Pt.progress)==null?void 0:Lt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(_t=Pt==null?void 0:Pt.progress)==null?void 0:_t.my_score,"/",(Ce=Pt==null?void 0:Pt.progress)==null?void 0:Ce.all_score),(!bt||!En)&&se.createElement("div",{className:b.tags},se.createElement("div",null,se.createElement(we.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},se.createElement("span",null,se.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),se.createElement("span",null,Pt.stages_count))),se.createElement(we.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},se.createElement("span",null,se.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),se.createElement("span",null,Pt.members_count)))))))})),!Le.length&&se.createElement(Ke.Z,null)))}},2751:function(it,jt,ae){"use strict";ae.d(jt,{jL:function(){return Re},w9:function(){return oa},dN:function(){return xa},QD:function(){return ta},cQ:function(){return Lt.Z},Oz:function(){return Fa},op:function(){return Xe},O5:function(){return ga},_b:function(){return ho},t7:function(){return Le},Gi:function(){return Da},YG:function(){return St},kT:function(){return Ca},qp:function(){return x},K3:function(){return te},vr:function(){return zt},qE:function(){return Nn},Je:function(){return Ye},wb:function(){return Te},lB:function(){return wn},cq:function(){return Ut},tp:function(){return ie},Si:function(){return vn},k8:function(){return Kr},Du:function(){return mr}});var b=ae(59301),he={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},we="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqD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yz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Re=({dataSource:xt=[],img:Ft,imgWidth:Et=346,title:Mn,sunTitle:Za,bannerExtraContent:rr})=>b.createElement("div",{className:he.banner},b.createElement("div",{className:he.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,Mn),b.createElement("span",null,Za)),xt.length>0&&b.createElement("div",{className:he.btns},xt.map((Pn,$a)=>b.createElement("div",{key:$a,onClick:Pn.click},Pn.name,Pn.sign?b.createElement("img",{src:we,width:39}):null))),rr),Ft&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:Ft,width:Et}))),We={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},xe=ae(92310),Ke=ae.n(xe),Oe=ae(89392),De=Object.defineProperty,ke=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,ue=(xt,Ft,Et)=>Ft in xt?De(xt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Et}):xt[Ft]=Et,E=(xt,Ft)=>{for(var Et in Ft||(Ft={}))ze.call(Ft,Et)&&ue(xt,Et,Ft[Et]);if(ke)for(var Et of ke(Ft))Ue.call(Ft,Et)&&ue(xt,Et,Ft[Et]);return xt},x=({dataSource:xt=[],value:Ft,onChange:Et,onTitleChange:Mn,className:Za,title:rr,titleWidth:Pn=41,style:$a={},fontColor:Xa="#6A7283",showCount:ao,classNameActive:dr,styleItem:Ga={}})=>{const[wr,Bo]=(0,b.useState)(0),[ri,Rr]=(0,b.useState)(!1),So=(0,b.useRef)(null),jo=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var ia;xt.length!==0&&(((ia=So==null?void 0:So.current)==null?void 0:ia.clientHeight)>97?Bo(1):Bo(0)),xt.length===0&&Bo(0),Rr(!1)},[xt]),b.createElement("div",{className:Ke()(We.row,Za),style:$a},b.createElement("div",{onClick:(0,Oe.throttle)(()=>Mn==null?void 0:Mn(),2e3),style:{width:Pn,marginTop:ri?12:4},className:`${We.title} ${Mn?"current":""}`},rr),b.createElement("div",{className:ri?`${We.tagsWrap} ${We.tagsBorderWrap}`:We.tagsWrap},b.createElement("div",{className:We.bar,ref:jo,style:wr>0?{height:wr===1?97:"auto",overflow:wr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:We.tag,ref:So},xt==null?void 0:xt.map(ia=>b.createElement("span",{onClick:()=>Et(ia.id),key:ia.id,style:E(E({color:Xa},Ga),(ia==null?void 0:ia.style)||{}),className:Ft===ia.id?Ke()(dr||We.active,ia.classNameActive):""},b.createElement("span",{title:ia.name,className:We.name},ia.name),!!ao&&b.createElement("span",{className:We.num},ia.count))))),!!wr&&b.createElement(b.Fragment,null,wr===1?b.createElement("div",{onClick:()=>{var ia;Bo(2),((ia=So==null?void 0:So.current)==null?void 0:ia.clientHeight)>245?Rr(!0):Rr(!1)},className:We.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{jo.current.scrollTop=0,Bo(1),Rr(!1)},className:We.action},"\u6536\u8D77",b.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},y={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},te=({dataSource:xt=[],value:Ft,onChange:Et,onTitleChange:Mn,className:Za,title:rr,titleWidth:Pn=41,style:$a={},fontColor:Xa="#6A7283",showCount:ao,expand:dr=!0})=>{const[Ga,wr]=(0,b.useState)(0),[Bo,ri]=(0,b.useState)(!1),Rr=(0,b.useRef)(null),So=(0,b.useRef)(null),[jo,ia]=(0,b.useState)(dr);return b.createElement("div",{className:Ke()(y.row,Za),style:$a},b.createElement("div",{className:"flex item-center justify-between"},b.createElement("div",{onClick:(0,Oe.throttle)(()=>Mn==null?void 0:Mn(),2e3),style:{width:Pn,marginTop:Bo?12:4},className:`${y.title} ${Mn?"current":""}`},rr),b.createElement("i",{className:`iconfont ${jo?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:jo?8:10},onClick:()=>ia(!jo)})),jo&&b.createElement("div",{className:Bo?`${y.tagsWrap} ${y.tagsBorderWrap}`:y.tagsWrap},b.createElement("div",{className:y.fenge}),b.createElement("div",{className:y.bar,ref:So},b.createElement("div",{className:y.tag,ref:Rr},xt==null?void 0:xt.map(Dn=>b.createElement("span",{onClick:()=>Et(Dn.id),key:Dn.id,style:{color:Xa},className:Ft===Dn.id?y.active:""},b.createElement("span",{title:Dn.name,className:y.name},Dn.name),!!ao&&b.createElement("span",{className:y.num},Dn.count)))))))},oe={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},ie=({dataSource:xt=[],value:Ft,onChange:Et,className:Mn,style:Za={}})=>b.createElement("div",{style:Za,className:Ke()(oe.tabs,Mn)},xt.map(rr=>b.createElement("span",{onClick:()=>Et(rr.id),className:Ft===rr.id?oe.active:"",key:rr.id},rr.name))),Ee={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Fe=ae(92832),Le=({dataSource:xt=[],value:Ft="",onChange:Et,onInputChange:Mn=()=>{},className:Za,style:rr={},placeholder:Pn,allowClear:$a=!1})=>{var Xa;const[ao,dr]=(0,b.useState)(""),[Ga,wr]=(0,b.useState)("");(0,b.useEffect)(()=>{var Rr;let So=Ft;(Rr=JSON.stringify(Ft))!=null&&Rr.includes("{")&&(dr(Ft.id),So=Ft.value||"");try{wr(decodeURIComponent(So||""))}catch(jo){wr(decodeURIComponent(So||""))}},[Ft]);const Bo=()=>{Et(encodeURIComponent(Ga),ao||null)},ri=Rr=>{Rr!==ao&&(dr(Rr),Et(encodeURIComponent(Ga),Rr))};return b.createElement("div",{className:Ke()(Ee.input,Za),style:rr},!!xt.length&&b.createElement("div",{className:Ee.dropdown},b.createElement("div",{className:Ee.text},(Xa=xt.find(Rr=>Rr.id===ao))==null?void 0:Xa.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:Ee.b1}),b.createElement("b",{className:Ee.b2})),b.createElement("div",{className:Ee.menu},xt.map((Rr,So)=>b.createElement("div",{key:So,onClick:()=>ri(Rr.id)},Rr.name)))),b.createElement(Fe.default,{onPressEnter:Bo,value:Ga,onChange:Rr=>{wr(Rr.target.value),Mn(encodeURIComponent(Rr.target.value),ao||null)},bordered:!1,placeholder:Pn}),b.createElement("i",{onClick:Bo,className:"iconfont icon-sousuo9 font14 pl10 current"}))},st={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Ye=({value:xt,onChange:Ft,className:Et,total:Mn,pageSize:Za,style:rr={}})=>{const Pn=xt<2,$a=xt>=Math.ceil(Mn/Za);return Mn<=Za?b.createElement(b.Fragment,null):b.createElement("div",{className:Ke()(st.quickPager,Et),style:rr},b.createElement("div",{onClick:()=>{Pn||Ft(xt-1,"prev")},className:Pn?st.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{$a||Ft(xt+1,"next")},className:$a?st.disabled:""},"\u4E0B\u4E00\u9875"))},Ge={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},$e=ae(71418),be=ae(6848),vt=ae(13570),ct=ae(11662),bt=ae(22566),At=ae(96908),En=ae(57177),xn=ae(81378),Wt=ae(21692),Te=({className:xt,dataSource:Ft=[],col:Et=4,right:Mn,bottom:Za=23,precision:rr=0,wrapWidth:Pn=1200,trackEventItems:$a,loading:Xa})=>{const ao=Math.floor((Pn-(Et-1)*Mn)/Et);return b.createElement($e.Z,{spinning:Xa},b.createElement("div",{className:Ke()(Ge.list,xt)},!!Ft.length&&Ft.map((dr,Ga)=>{const{name:wr,id:Bo,identifier:ri,power:Rr,cover_image_id:So,pic:jo}=dr;return b.createElement("div",{className:Ge.wrap,key:Bo,style:{width:ao,marginRight:(1+Ga)%Et===0?0:Mn+rr,marginBottom:Za}},b.createElement("a",{target:"_blank",href:`/shixuns/${ri}/challenges`,className:Ge.li,onClick:ia=>{ia.preventDefault(),$a&&(0,bt.L9)([$a]),Rr&&(0,bt.xg)(`/shixuns/${ri}/challenges`)}},b.createElement("div",{className:Ge.img},b.createElement("img",{className:Ge.cover,src:`${jo}`}),dr.is_jupyter&&b.createElement("img",{className:Ge.sign,src:At}),dr.is_jupyter_lab&&b.createElement("img",{className:Ge.sign,src:En}),dr.is_unity_3d&&b.createElement("img",{className:Ge.sign,src:xn})),b.createElement("div",{className:Ge.name},b.createElement(be.Z,{title:wr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:Ge.e},wr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{className:Ge.tags},b.createElement(be.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,dr.challenges_count))),!!dr.myshixuns_count&&b.createElement(be.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),b.createElement("span",null,dr.myshixuns_count))),b.createElement(be.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,dr.level))),b.createElement("div",{className:Ge.rate},b.createElement(vt.Z,{allowHalf:!0,disabled:!0,defaultValue:dr.score_info}),b.createElement("span",null,"\xA0",dr.score_info?`${dr.score_info}\u5206`:"5\u5206")))),!Rr&&b.createElement("div",{className:Ge.lockWrap},b.createElement("img",{src:`${ct.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ft.length&&b.createElement(Wt.Z,null)))},et={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},wn=({className:xt,dataSource:Ft=[],col:Et=4,right:Mn,bottom:Za=23,precision:rr=0,wrapWidth:Pn=1200,wrapClassName:$a,trackEventItems:Xa,loading:ao})=>{const dr=Math.floor((Pn-(Et-1)*Mn)/Et);return b.createElement($e.Z,{spinning:ao},b.createElement("div",{className:Ke()(et.list,xt)},!!Ft.length&&Ft.map((Ga,wr)=>{const{name:Bo,id:ri,identifier:Rr,power:So,cover_image_id:jo,pic:ia}=Ga;return b.createElement("div",{className:Ke()(et.wrap,$a),key:ri,style:{width:dr,marginRight:(1+wr)%Et===0?0:Mn+rr,marginBottom:Za}},b.createElement("a",{target:"_blank",href:`/shixuns/${Rr}/challenges`,className:et.li,onClick:Dn=>{Dn.preventDefault(),Xa&&(0,bt.L9)([Xa]),So&&(0,bt.xg)(`/shixuns/${Rr}/challenges`)}},b.createElement("img",{src:ae(47621),className:et.titleBg}),b.createElement("div",{className:et.name},b.createElement(be.Z,{title:Bo||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:et.e},Bo||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{style:{padding:"14px",paddingBottom:0}},b.createElement("div",{className:et.img},b.createElement("img",{className:et.cover,src:jo?`${ct.Z.API_SERVER}/api/attachments/${jo}`:`${ct.Z.IMG_SERVER+ia}`}),Ga.is_jupyter&&b.createElement("div",{className:et.bq},"Jupyter"),Ga.is_jupyter_lab&&b.createElement("div",{className:et.bq},"JupyterLab"),Ga.is_unity_3d&&b.createElement("div",{className:et.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),b.createElement("div",{className:"mt20 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:et.text},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:et.value},Ga.myshixuns_count)),b.createElement("div",null,b.createElement("span",{className:et.text},"\u56F0\u96BE\u7B49\u7EA7"),b.createElement("span",{className:et.value},Ga.level))),b.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:et.text},"\u5173\u5361\u6570"),b.createElement("span",{className:et.value},Ga.challenges_count)),b.createElement("div",{className:et.rate},b.createElement(vt.Z,{allowHalf:!0,disabled:!0,defaultValue:Ga.score_info}),b.createElement("span",{className:et.value,style:{color:"#FF9C00"}},"\xA0",Ga.score_info?`${Ga.score_info}\u5206`:"5\u5206"))))),!So&&b.createElement("div",{className:et.lockWrap},b.createElement("img",{src:`${ct.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Ft.length&&b.createElement(Wt.Z,null)))},Lt=ae(23734),_t={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},Ce=ae(79005),ot=ae(20345),an=ae(77882),tt=ae(31081),ht=ae(75309),Jn=ae(71979),dn=ae(47558),Qt=ae(42922),kt=ae(66832),Wn=ae(96593),ra=ae(19664),tn=ae(91833);const Ba=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ce,swimg:ot},{name:"101\u8BA1\u5212",ptimg:an,swimg:tt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:ht,swimg:Jn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:dn,swimg:Qt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:kt,swimg:Wn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:ra,swimg:tn}];var Fa=({className:xt,dataSource:Ft=[],col:Et=4,right:Mn,bottom:Za=23,precision:rr=0,wrapWidth:Pn=1200,trackEventItems:$a,loading:Xa,wrapClassName:ao,imgClassName:dr,isArrow:Ga=!1})=>{const wr=Math.floor((Pn-(Et-1)*Mn)/Et),[Bo,ri]=(0,b.useState)(),[Rr,So]=(0,b.useState)(),jo=Dn=>ri(Dn),ia=()=>ri(-1);return b.createElement($e.Z,{spinning:Xa},b.createElement("div",{className:Ke()(_t.list,xt)},!!(Ft!=null&&Ft.length)&&(Ft==null?void 0:Ft.map((Dn,Hn)=>{var me;const{name:gt,id:Bt,identifier:ln,featured:pt,school_name:Ln,image_url:An,excellent:mn,is_plan:yn}=Dn;return b.createElement("div",{key:Bt,className:Ke()(_t.wrap,ao),style:{width:wr,marginRight:(1+Hn)%Et===0?0:Mn+rr,marginBottom:Za}},b.createElement("a",{target:"_blank",href:`/paths/${ln}`,className:_t.li,onClick:Oa=>{Oa.preventDefault(),$a&&(0,bt.L9)([$a]),(0,bt.xg)(`/paths/${ln}`)}},b.createElement("img",{src:ae(39057),className:_t.titleBg}),b.createElement("div",{className:_t.name},b.createElement(be.Z,{title:gt},b.createElement("span",{className:_t.e,style:{color:Ga&&Bo===Hn?"#145DFF":"#000000"},onMouseEnter:()=>{jo(Hn)},onMouseLeave:ia},gt))),b.createElement("div",{style:{padding:"14px",paddingBottom:0}},b.createElement("div",{className:Ke()(_t.img,dr)},b.createElement("img",{className:_t.cover,src:`${ct.Z.IMG_SERVER+An}`}),(me=Dn==null?void 0:Dn.subject_tags)==null?void 0:me.map((Oa,cr)=>{var Fr,ma;if(cr===0){const or=(Fr=Ba.find(Er=>Er.name==Oa))==null?void 0:Fr.swimg;return b.createElement("img",{className:_t.sign,src:or,style:{left:"-4px"}})}const va=(ma=Ba.find(or=>or.name==Oa))==null?void 0:ma.ptimg;return b.createElement("img",{className:_t.sign,src:va,style:{left:`${48+52*(cr-1)+2*cr}px`}})}),b.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(Dn==null?void 0:Dn.excellent)&&b.createElement("div",{className:_t.bq},"\u5F00\u653E\u8BFE\u7A0B"))),b.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:_t.text},"\u7AE0\u8282\u6570"),b.createElement("span",{className:_t.value},Dn.stages_count)),b.createElement("div",null,b.createElement("span",{className:_t.text},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:_t.value},Dn.members_count))))))})),!Ft.length&&b.createElement(Wt.Z,null)))},jn={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Ha="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JE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2oSudhdo5e+n6ajr3ionqHQylo4B9im59Ase6EFmbhCi3slwLj4TXgEiyivwOxKJ6OOdrkxXAEun4nVij+VQS+sRRp1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Pa=ae(59301),oa=({className:xt,dataSource:Ft=[],col:Et=4,right:Mn,bottom:Za=23,precision:rr=0,wrapWidth:Pn=1200,trackEventItems:$a,loading:Xa})=>{const ao=Math.floor((Pn-(Et-1)*Mn)/Et);return Pa.createElement($e.Z,{spinning:Xa},Pa.createElement("div",{className:Ke()(jn.list,xt)},!!Ft.length&&Ft.map((dr,Ga)=>{const{subject_identifier:wr,id:Bo,identifier:ri,power:Rr}=dr,So=dr.is_public!=0&&dr.is_public;return Pa.createElement("div",{className:jn.wrap,key:Bo,style:{width:ao,marginRight:(1+Ga)%Et===0?0:Mn+rr,marginBottom:Za}},Pa.createElement("a",{className:jn.li,onClick:jo=>{jo.preventDefault(),$a&&(0,bt.L9)([$a]),(0,bt.xg)(dr.first_category_url)}},Pa.createElement("div",{className:jn.top},Pa.createElement(be.Z,{title:dr.name},Pa.createElement("div",{className:jn.name},dr.name)),Pa.createElement("img",{className:jn.img,src:ct.Z.IMG_SERVER+"/images/"+dr.avatar_url}),Pa.createElement("div",{className:jn.text,title:dr.creator},dr.creator),wr&&Pa.createElement("div",{className:jn.btns},Pa.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Pa.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),So&&Pa.createElement("div",{className:jn.sign},"\u516C\u5F00")),Pa.createElement("div",{className:jn.bottom},dr.visits>0&&Pa.createElement(be.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Pa.createElement("span",null,Pa.createElement("i",{className:"iconfont icon-liulanyan"}),Pa.createElement("span",null,dr.visits))),dr.course_members_count>0&&Pa.createElement(be.Z,{title:"\u6210\u5458",placement:"bottom"},Pa.createElement("span",null,Pa.createElement("i",{className:"iconfont icon-chengyuan"}),dr.course_members_count)),dr.tasks_count>0&&Pa.createElement(be.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Pa.createElement("span",null,Pa.createElement("i",{className:"iconfont icon-zuoye"}),dr.tasks_count)),dr.is_end?Pa.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Pa.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!dr.is_accessible&&Pa.createElement("div",{className:jn.lockWrap},Pa.createElement("img",{src:`${ct.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Pa.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ft.length&&Pa.createElement(Wt.Z,null)))},Zn={flex_box_center:"flex_box_center___PuarE",flex_space_between:"flex_space_between___q4lAa",flex_box_vertical_center:"flex_box_vertical_center___wsb8w",flex_box_center_end:"flex_box_center_end___H781P",flex_box_column:"flex_box_column___bHK1y",list:"list___e2XDo",wrap:"wrap___cz7sh",lockWrap:"lockWrap___EPuRr",creator:"creator___Y6Xjp",img:"img___kSEud",text:"text___GIlhY",top:"top___K4GCD",sign:"sign___KCjEP",name:"name___z3U4d",middle:"middle___LeUM5",row:"row___VBzfJ",value:"value___qigWu",btns:"btns___kGysm",bottom:"bottom___yPYd5",warpStyle:"warpStyle___pH3uC"},da="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1O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PZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",xa=({className:xt,dataSource:Ft=[],col:Et=4,right:Mn,bottom:Za=23,precision:rr=0,wrapWidth:Pn=1200,wrapClassName:$a,trackEventItems:Xa,loading:ao})=>{const dr=Math.floor((Pn-(Et-1)*Mn)/Et);return b.createElement($e.Z,{spinning:ao},b.createElement("div",{className:Ke()(Zn.list,xt)},!!Ft.length&&Ft.map((Ga,wr)=>{const{subject_identifier:Bo,id:ri,identifier:Rr,power:So}=Ga,jo=Ga.is_public!=0&&Ga.is_public;return b.createElement("div",{className:Ke()(`${Zn.wrap} ${Ga.is_accessible?"":Zn.warpStyle}`,$a),key:ri,style:{width:dr,marginRight:(1+wr)%Et===0?0:Mn+rr,marginBottom:Za}},b.createElement("a",{className:Zn.li,onClick:ia=>{ia.preventDefault(),Xa&&(0,bt.L9)([Xa]),(0,bt.xg)(Ga.first_category_url)}},b.createElement("div",{className:Zn.creator},b.createElement("img",{className:Zn.img,src:ct.Z.IMG_SERVER+"/images/"+Ga.avatar_url}),b.createElement("div",{className:Zn.text,title:Ga.creator},Ga.creator)),b.createElement("div",{className:Zn.top},b.createElement(be.Z,{title:Ga.name},b.createElement("div",{className:Zn.name},Ga.name)),jo&&b.createElement("div",{className:Zn.sign},"\u516C\u5F00")),b.createElement("div",{className:Zn.middle},b.createElement("div",{className:Zn.row,style:{marginBottom:6}},b.createElement("div",null,b.createElement("span",{className:Zn.text},"\u8BBF\u95EE\u91CF"),b.createElement("span",{className:Zn.value},(Ga==null?void 0:Ga.visits)||0)),b.createElement("div",null,b.createElement("span",{className:Zn.text},"\u6210\u5458"),b.createElement("span",{className:Zn.value},(Ga==null?void 0:Ga.course_members_count)||0))),b.createElement("div",{className:Zn.row},b.createElement("div",null,b.createElement("span",{className:Zn.text,style:{width:42}},"\u4F5C",b.createElement("span",{style:{marginLeft:14}},"\u4E1A")),b.createElement("span",{className:Zn.value},(Ga==null?void 0:Ga.tasks_count)||0)),b.createElement("div",null,b.createElement("span",{className:Zn.text},"\u72B6\u6001"),Ga.is_end?b.createElement("span",{className:Zn.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):b.createElement("span",{className:Zn.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),Bo&&b.createElement("div",{className:Zn.btns},b.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),b.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!Ga.is_accessible&&b.createElement("div",{className:Zn.lockWrap},b.createElement("img",{src:`${ct.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Ft.length&&b.createElement(Wt.Z,null)))},_a={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Sn=ae(90115),St=({dataSource:xt=[],value:Ft,onChange:Et,className:Mn,style:Za={},tabBarExtraContent:rr})=>b.createElement("div",{className:Ke()(_a.tabs,Mn),style:Za},b.createElement("div",{className:_a.tabsWrap},xt.map((Pn,$a)=>b.createElement("aside",{className:_a.tab,onClick:()=>{Et(Pn.id),Pn.link&&Sn.history.push(Pn.link)},key:$a},b.createElement("div",{className:Ft===Pn.id?_a.active:""},Pn.name),(Pn==null?void 0:Pn.resetCount)==null&&(Pn==null?void 0:Pn.total)!==void 0&&b.createElement("span",null,"\uFF08",Pn==null?void 0:Pn.total,"\uFF09"),(Pn==null?void 0:Pn.resetCount)!==void 0&&(Pn==null?void 0:Pn.total)!==void 0&&b.createElement(be.Z,{title:(Pn==null?void 0:Pn.tip)!=null?Pn==null?void 0:Pn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},Pn==null?void 0:Pn.resetCount),"/",b.createElement("span",null,Pn==null?void 0:Pn.total),"\uFF09"))))),b.createElement("div",{className:_a.tabBar},rr)),Tt={flex_box_center:"flex_box_center___itkVp",flex_space_between:"flex_space_between___F4yZx",flex_box_vertical_center:"flex_box_vertical_center___ko4cu",flex_box_center_end:"flex_box_center_end___cCBYR",flex_box_column:"flex_box_column___Mpq6K",tabs:"tabs___qRAhL",tabsWrap:"tabsWrap___CGRvS",tab:"tab___eYne_",active:"active___swSx6"},Ca=({dataSource:xt=[],value:Ft,onChange:Et,className:Mn,style:Za={},tabBarExtraContent:rr})=>b.createElement("div",{className:Ke()(Tt.tabs,Mn),style:Za},b.createElement("div",{className:Tt.tabsWrap},xt.map((Pn,$a)=>b.createElement("aside",{className:Tt.tab,onClick:()=>{Et(Pn.id),Pn.link&&Sn.history.push(Pn.link)},key:$a},b.createElement("div",{className:Ft===Pn.id?Tt.active:""},Pn.name),(Pn==null?void 0:Pn.resetCount)==null&&(Pn==null?void 0:Pn.total)!==void 0&&b.createElement("span",null,"\uFF08",Pn==null?void 0:Pn.total,"\uFF09"),(Pn==null?void 0:Pn.resetCount)!==void 0&&(Pn==null?void 0:Pn.total)!==void 0&&b.createElement(be.Z,{title:(Pn==null?void 0:Pn.tip)!=null?Pn==null?void 0:Pn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},Pn==null?void 0:Pn.resetCount),"/",b.createElement("span",null,Pn==null?void 0:Pn.total),"\uFF09"))))),b.createElement("div",{className:Tt.tabBar},rr)),Da=({className:xt,style:Ft={},children:Et})=>b.createElement("div",{className:Ke()(xt),style:Ft},Et),Ta={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Br=ae(38854),ar=ae(20834);const Or=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ut=({sortValue:xt,dropValue:Ft,className:Et,onSort:Mn,onDrop:Za,dataSource:rr=Or})=>{var Pn;return b.createElement("div",{className:Ke()(Ta.orderWrap,Et)},b.createElement(Br.Z,{dropdownRender:()=>b.createElement(ar.default,null,rr.map(($a,Xa)=>b.createElement(ar.default.Item,{key:Xa,onClick:()=>Za($a.id)},$a.name)))},b.createElement("span",{className:Ta.orderTextWrap},(Pn=rr.find($a=>Ft===$a.id))==null?void 0:Pn.name)),b.createElement("span",{className:Ta.orderIconWrap},b.createElement("span",{className:Ta.orderAsc},b.createElement("i",{className:xt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ta.cursorPointer} ${Ta.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ta.cursorPointer}`,onClick:()=>Mn(xt==="asc"?"desc":"asc")})),b.createElement("span",{className:Ta.orderDesc},b.createElement("i",{className:xt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ta.cursorPointer} ${Ta.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ta.cursorPointer}`,onClick:()=>Mn(xt==="asc"?"desc":"asc")}))))},Un={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v",ThemeOne:"ThemeOne___iCQio"},$n=ae(3113),ba=ae(39587),Ze=Object.defineProperty,Mt=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,fn=Object.prototype.propertyIsEnumerable,Rt=(xt,Ft,Et)=>Ft in xt?Ze(xt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Et}):xt[Ft]=Et,Qn=(xt,Ft)=>{for(var Et in Ft||(Ft={}))Xt.call(Ft,Et)&&Rt(xt,Et,Ft[Et]);if(Mt)for(var Et of Mt(Ft))fn.call(Ft,Et)&&Rt(xt,Et,Ft[Et]);return xt},Kn=(xt,Ft)=>{var Et={};for(var Mn in xt)Xt.call(xt,Mn)&&Ft.indexOf(Mn)<0&&(Et[Mn]=xt[Mn]);if(xt!=null&&Mt)for(var Mn of Mt(xt))Ft.indexOf(Mn)<0&&fn.call(xt,Mn)&&(Et[Mn]=xt[Mn]);return Et},Je=(xt,Ft,Et)=>new Promise((Mn,Za)=>{var rr=Xa=>{try{$a(Et.next(Xa))}catch(ao){Za(ao)}},Pn=Xa=>{try{$a(Et.throw(Xa))}catch(ao){Za(ao)}},$a=Xa=>Xa.done?Mn(Xa.value):Promise.resolve(Xa.value).then(rr,Pn);$a((Et=Et.apply(xt,Ft)).next())}),Xe=xt=>{var Ft=xt,{className:Et,style:Mn,children:Za,loading:rr=!1,openLoading:Pn,onClick:$a=()=>{},size:Xa="middle",shape:ao="round",theme:dr}=Ft,Ga=Kn(Ft,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[wr,Bo]=(0,b.useState)(!1),ri=(0,b.useMemo)(()=>{switch(dr){case ba.Fy.THEMEONE:return Un.ThemeOne;case ba.Fy.DEFAULT:default:return Un.btn}},[dr]);return b.createElement($n.ZP,Qn({onClick:(0,Oe.throttle)(Rr=>Je(void 0,null,function*(){Pn&&Bo(!0);try{yield $a(Rr)}catch(So){console.log("error",So)}Pn&&Bo(!1)}),2e3,{leading:!0,trailing:!1}),className:Ke()(ri,Un[`${Xa}-${ao}`],Et),style:Mn,size:Xa,shape:ao,loading:wr||rr},Ga),Za)},rn={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Nn=({className:xt,style:Ft,children:Et=null,onClick:Mn,title:Za})=>b.createElement("div",{className:Ke()(rn.head,xt),style:Ft},b.createElement("span",{className:"primary-hover",onClick:Mn},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:Za},Za),b.createElement("div",{className:rn.node},Et)),wa={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},ta=({confirmShow:xt=!0,confirmTitle:Ft,confirmClick:Et,cancelShow:Mn=!0,cancelTitle:Za,cancelClick:rr,className:Pn,style:$a,confirmLoading:Xa=!1})=>b.createElement("div",{className:Ke()(wa.btns,Pn),style:$a},xt&&b.createElement($n.ZP,{loading:Xa,onClick:Et,type:"primary",className:wa.confirm},Ft),Mn&&b.createElement($n.ZP,{onClick:rr,className:wa.cancel},Za)),ya={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},zt=({className:xt,style:Ft={},LeftContent:Et,children:Mn,RightContent:Za})=>b.createElement("div",{className:Ke()(ya.fixedBottom,xt),style:Ft},b.createElement("div",{className:ya.wrap},b.createElement("div",{className:ya.left},Et),b.createElement("div",{className:ya.center},Mn),b.createElement("div",{className:ya.right},Za))),ka={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},ho=({className:xt,style:Ft={},dataSource:Et=[]})=>b.createElement("div",{className:Ke()(ka.crumbs,xt),style:Ft},Et.map((Mn,Za)=>ZaSn.history.push(Mn.path)},Mn.name):b.createElement("span",null,Mn.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:Za,style:{color:"#5F6368"}},Mn.name))),qa=ae(31797),Ht=Object.defineProperty,Qr=Object.defineProperties,Ua=Object.getOwnPropertyDescriptors,Sr=Object.getOwnPropertySymbols,lr=Object.prototype.hasOwnProperty,Gr=Object.prototype.propertyIsEnumerable,Lr=(xt,Ft,Et)=>Ft in xt?Ht(xt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Et}):xt[Ft]=Et,no=(xt,Ft)=>{for(var Et in Ft||(Ft={}))lr.call(Ft,Et)&&Lr(xt,Et,Ft[Et]);if(Sr)for(var Et of Sr(Ft))Gr.call(Ft,Et)&&Lr(xt,Et,Ft[Et]);return xt},Mr=(xt,Ft)=>Qr(xt,Ua(Ft)),ca=(xt,Ft)=>{var Et={};for(var Mn in xt)lr.call(xt,Mn)&&Ft.indexOf(Mn)<0&&(Et[Mn]=xt[Mn]);if(xt!=null&&Sr)for(var Mn of Sr(xt))Ft.indexOf(Mn)<0&&Gr.call(xt,Mn)&&(Et[Mn]=xt[Mn]);return Et};const{Countdown:nn}=qa.default;var ga=xt=>{var Ft=xt,{onChange:Et}=Ft,Mn=ca(Ft,["onChange"]);const[Za,rr]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof Za=="number"&&Za>=0&&Et(Za)},[Za]);const Pn=$a=>{const Xa=Math.floor($a/1e3);rr(Xa)};return b.createElement(nn,Mr(no({},Mn),{onChange:Pn}))},ur={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},vn=({DataProps:xt,className:Ft,style:Et={}})=>{var Mn;return b.createElement("div",{className:Ke()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",ur.ClassRoomItem,Ft),style:Et,onClick:()=>{(0,bt.xg)(xt==null?void 0:xt.first_category_url)}},b.createElement("div",{className:"flex flex-col item-center"},b.createElement("img",{src:`${(Mn=ct.Z)==null?void 0:Mn.IMG_SERVER}/images/${xt==null?void 0:xt.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(xt==null?void 0:xt.subject_identifier)&&b.createElement("div",{className:"mt-40px"},b.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),b.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),b.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},b.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(xt!=null&&xt.is_public)&&b.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),b.createElement("span",{className:Ke()("text-16px font-medium",ur.TitleDom)},xt==null?void 0:xt.name)),b.createElement("div",{className:"c-grey-333 font-medium"},xt==null?void 0:xt.creator),b.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",xt==null?void 0:xt.course_members_count),b.createElement("div",{className:"c-grey-333 flex item-center justify-between"},b.createElement("div",null,"\u4F5C\u4E1A\uFF1A",xt==null?void 0:xt.tasks_count),xt!=null&&xt.is_end?b.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):b.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},na=Object.defineProperty,Na=Object.getOwnPropertySymbols,_n=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,tr=(xt,Ft,Et)=>Ft in xt?na(xt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Et}):xt[Ft]=Et,Ar=(xt,Ft)=>{for(var Et in Ft||(Ft={}))_n.call(Ft,Et)&&tr(xt,Et,Ft[Et]);if(Na)for(var Et of Na(Ft))sr.call(Ft,Et)&&tr(xt,Et,Ft[Et]);return xt},mr=({DataProps:xt=[],selectValue:Ft,onChange:Et,className:Mn,style:Za={},extra:rr,classNameItem:Pn,styleItem:$a={},barHidden:Xa})=>{const[ao,dr]=(0,b.useState)();return(0,b.useEffect)(()=>{dr(Array.isArray(Ft)?Ft:[Ft])},[Ft]),b.createElement("div",{className:Ke()("flex px-20px py-10px gap-40px",Mn),style:Ar({borderBottom:"1px solid #D3F0FF"},Za)},xt==null?void 0:xt.map(Ga=>b.createElement("div",{key:Ga==null?void 0:Ga.id,className:Ke()("flex item-center justify-center current c-grey-333 text-16 relative",Pn,Ga==null?void 0:Ga.className),style:Ar(Ar({color:ao!=null&&ao.includes(Ga==null?void 0:Ga.id)?"#1890FF":"",minWidth:88},$a),(Ga==null?void 0:Ga.style)||{}),onClick:wr=>{Et==null||Et({domEvent:wr,item:Ga}),Ga!=null&&Ga.link&&Sn.history.push(Ga==null?void 0:Ga.link)}},Ga==null?void 0:Ga.name,!Xa&&(ao==null?void 0:ao.includes(Ga==null?void 0:Ga.id))&&b.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),b.createElement("div",{className:"ml-auto"},rr))},Yo=Object.defineProperty,Mo=Object.defineProperties,Ei=Object.getOwnPropertyDescriptors,xr=Object.getOwnPropertySymbols,Nr=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable,Ja=(xt,Ft,Et)=>Ft in xt?Yo(xt,Ft,{enumerable:!0,configurable:!0,writable:!0,value:Et}):xt[Ft]=Et,Hr=(xt,Ft)=>{for(var Et in Ft||(Ft={}))Nr.call(Ft,Et)&&Ja(xt,Et,Ft[Et]);if(xr)for(var Et of xr(Ft))Eo.call(Ft,Et)&&Ja(xt,Et,Ft[Et]);return xt},Yr=(xt,Ft)=>Mo(xt,Ei(Ft)),Kr=({value:xt,onChange:Ft,onInputChange:Et,className:Mn,style:Za={},InputProps:rr})=>{const[Pn,$a]=(0,b.useState)(xt);return b.createElement("div",{className:Ke()("flex item-center rounded-full px-10px py-2px",Mn),style:Hr({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},Za)},b.createElement(Fe.default,Yr(Hr({bordered:!1},rr),{onChange:Xa=>{$a(Xa.target.value),Et==null||Et(encodeURIComponent(Xa.target.value))},onPressEnter:Xa=>{Ft==null||Ft({domEvent:Xa,item:{value:Pn}})}})),b.createElement("img",{className:"h-22px current",src:ae(25365),height:22,onClick:Xa=>{Ft==null||Ft({domEvent:Xa,item:{value:Pn}})}}))}},29152:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return he}});var b=ae(59301);function he(we,Be){const Re=(0,b.useRef)();(0,b.useEffect)(()=>{Re.current=we}),(0,b.useEffect)(()=>{function We(){Re.current()}if(Be!==null){let xe=setInterval(We,Be);return()=>clearInterval(xe)}},[Be])}},58931:function(it,jt,ae){"use strict";ae.r(jt),ae.d(jt,{default:function(){return mu}});var b=ae(59301),he=ae(90115),we=ae(78241),Be=ae(8591),Re=ae(66104),We=ae(92832),xe=ae(19842),Ke=ae(24905),Oe=ae(5112),De=ae(5871),ke=ae(3113),ze={flex_box_center:"flex_box_center___aPGWN",flex_space_between:"flex_space_between___MQNX5",flex_box_vertical_center:"flex_box_vertical_center___Z7QdK",flex_box_center_end:"flex_box_center_end___JQl5O",flex_box_column:"flex_box_column___IhYhx",bg:"bg___Kg8x_",title:"title___UhsVG",titleLeft:"titleLeft___NPVwn",titleRight:"titleRight___UGtmZ",formWrap:"formWrap___Jowb2",baseLineHeight:"baseLineHeight___N68WX",radioBtnWrapper:"radioBtnWrapper___bX7Pi",radiogroup:"radiogroup___ukf8u",easy:"easy___ZHYPU",medium:"medium___piewx",hard:"hard___HMXyt",selectdiv:"selectdiv___gkuBG",divitem:"divitem___vNm0q",bottmodiv:"bottmodiv___assW5",cancelBtn:"cancelBtn___Nl6Pi",confirmBtn:"confirmBtn___BNoFU",baseFormItem:"baseFormItem___ILZ2V",cascaderPopup:"cascaderPopup___QPxW3",addQuestionBtn:"addQuestionBtn___OjehS",concat:"concat___kliXB"},Ue=ae(43418),ue=ae(5083),E=ae(66649),a=ae.n(E),x=(le,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch($t){mt($t)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch($t){mt($t)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(le,Se)).next())});const y=({user:le,dispatch:Se,classroomList:Pe,onModalOk:rt,setsubloading:mt})=>{const Vn=(0,he.useParams)(),[pn,Jt]=(0,b.useState)(),[dt,$t]=(0,b.useState)(!1);function Bn(Ct){return Ct&&Ct{$t(!1)},zIndex:8888,destroyOnClose:!0,footer:null,maskClosable:!1,keyboard:!1,open:Pe.actionTabs.key==="\u9884\u7EA6\u5F39\u7A97",onCancel:()=>{if(dt){Be.ZP.warning("\u6B63\u5728\u8BF7\u6C42\u6570\u636E\u4E2D...");return}mt(!1),Se({type:"classroomList/setActionTabs",payload:{}})}},b.createElement("div",null,b.createElement("span",null,"\u6CE8\u610F\u5230\u60A8\u7684\u8BFE\u5802\u4E2D\u5B66\u751F\u4EBA\u6570\u8F83\u591A\u3002\u4E3A\u66F4\u597D\u5730\u4E3A\u60A8\u548C\u60A8\u7684\u5B66\u751F\u670D\u52A1\uFF0C\u7ED9\u540C\u5B66\u4EEC\u5E26\u6765\u66F4\u597D\u7684\u8003\u8BD5\u4F53\u9A8C\uFF0C\u6211\u4EEC\u5C06\u63D0\u524D\u4E3A\u60A8\u548C\u60A8\u7684\u5B66\u751F\u51C6\u5907\u597D\u670D\u52A1\u5668\u8D44\u6E90\u3002 \u8BF7\u60A8\u544A\u77E5\u6211\u4EEC\uFF0C\u8FD9\u4EFD\u8BD5\u5377\u7684\u9884\u8BA1\u8003\u8BD5\u65F6\u95F4\u662F\uFF1A"),b.createElement("br",null),b.createElement(ue.default,{popupStyle:{zIndex:9999},style:{marginTop:"10px",marginBottom:"10px"},disabledDate:Bn,format:"YYYY-MM-DD HH:mm:ss",onChange:(Ct,yt)=>{Jt(yt)},showTime:{defaultValue:a()("00:00:00","HH:mm:ss")}}),b.createElement("br",null),b.createElement("span",null,"\u611F\u8C22\u60A8\u7684\u914D\u5408"),b.createElement("br",null),b.createElement("div",{style:{textAlign:"end"}},b.createElement(ke.ZP,{loading:dt,type:"primary",onClick:()=>x(void 0,null,function*(){$t(!0),rt(pn,()=>{Se({type:"classroomList/setActionTabs",payload:{}})})})},"\u786E\u8BA4"))))};var z=(0,he.connect)(({user:le,classroomList:Se})=>({user:le,classroomList:Se}))(y),te=ae(64866),oe=ae(32134),se=ae(12893),ie={wrap:"wrap___Ww0Ti",itemWarp:"itemWarp___LMLjd",addIcon:"addIcon___xmRLl",deleteIcon:"deleteIcon___gjwgO"},Ee=ae(57809),Fe=Object.defineProperty,Qe=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,Me=(le,Se,Pe)=>Se in le?Fe(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,Ye=(le,Se)=>{for(var Pe in Se||(Se={}))Le.call(Se,Pe)&&Me(le,Pe,Se[Pe]);if(Qe)for(var Pe of Qe(Se))st.call(Se,Pe)&&Me(le,Pe,Se[Pe]);return le},Ge=(le,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch($t){mt($t)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch($t){mt($t)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(le,Se)).next())}),be=({setitem:le,item:Se,rz:Pe})=>{var rt,mt,Vn,pn,Jt,dt,$t,Bn;let[Ct,yt]=(0,b.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const[ft]=we.default.useForm(),[Fn,qt]=(0,b.useState)(!1);(0,b.useEffect)(()=>{Pe&&!Fn&&(Ct.zydatas=Pe,yt(Ye({},Ct)),qt(!0),Se!=null&&Se.ec_course_id&&Ot())},[Se,Pe,Fn]),console.log(Ct,"params");function Ot(){return Ge(this,null,function*(){yield en(Se==null?void 0:Se.ec_major_school_id),yield Zt(Se==null?void 0:Se.ec_year_id),yield ua(Se==null?void 0:Se.ec_course_id),ft.setFieldsValue({ec_course_id:Se==null?void 0:Se.ec_course_id,ec_major_school_id:Se==null?void 0:Se.ec_major_school_id,ec_point_ids:Se==null?void 0:Se.ec_point_ids,ec_year_id:Se==null?void 0:Se.ec_year_id})})}function en(hn){return Ge(this,null,function*(){const gn=yield(0,te.ZP)(`/api/ec_major_schools/${hn}/ec_years/get_year_list.json`,{method:"get"});Ct.jbdatas=gn==null?void 0:gn.data,yt(Ye({},Ct)),ft.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function Zt(hn){return Ge(this,null,function*(){const gn=yield(0,te.ZP)(`/api/ec_years/${hn}/ec_courses/get_courses.json`,{method:"get"});Ct.kcdatas=gn==null?void 0:gn.data,yt(Ye({},Ct)),ft.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const ua=hn=>Ge(void 0,null,function*(){const gn=yield(0,te.ZP)(`/api/ec_courses/${hn}/ec_points.json`,{method:"get",params:{ec_course_id:hn}});Ct.zsdatas=gn==null?void 0:gn.data,yt(Ye({},Ct))});return b.createElement("div",{className:ie.from},b.createElement(we.default,{form:ft,layout:"inline",onValuesChange:hn=>{console.log("----",hn),hn.ec_major_school_id&&(Ct.jbdatas=[],Ct.kcdatas=[],Ct.zsdatas=[],yt(Ye({},Ct)),en(hn.ec_major_school_id)),hn.ec_year_id&&(Ct.kcdatas=[],Ct.zsdatas=[],yt(Ye({},Ct)),Zt(hn.ec_year_id)),hn.ec_course_id&&(Ct.zsdatas=[],yt(Ye({},Ct)),ua(hn.ec_course_id))},onFinish:hn=>Ge(void 0,null,function*(){le(hn)})},b.createElement(we.default.Item,{name:"ec_major_school_id"},b.createElement(Ee.default,{style:{width:160},disabled:((rt=Ct.zydatas)==null?void 0:rt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(mt=Ct==null?void 0:Ct.zydatas)==null?void 0:mt.map((hn,gn)=>b.createElement(Ee.default.Option,{key:gn,value:hn==null?void 0:hn.ec_major_school_id},hn==null?void 0:hn.name)))),b.createElement(we.default.Item,{name:"ec_year_id"},b.createElement(Ee.default,{style:{width:160},disabled:((Vn=Ct.jbdatas)==null?void 0:Vn.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(pn=Ct==null?void 0:Ct.jbdatas)==null?void 0:pn.map((hn,gn)=>b.createElement(Ee.default.Option,{key:gn,value:hn==null?void 0:hn.ec_year_id},hn==null?void 0:hn.year)))),b.createElement(we.default.Item,{name:"ec_course_id"},b.createElement(Ee.default,{style:{width:208},disabled:((Jt=Ct.kcdatas)==null?void 0:Jt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(dt=Ct==null?void 0:Ct.kcdatas)==null?void 0:dt.map((hn,gn)=>b.createElement(Ee.default.Option,{key:gn,value:hn==null?void 0:hn.id},hn==null?void 0:hn.name)))),b.createElement(we.default.Item,{name:"ec_point_ids"},b.createElement(Ee.default,{onChange:()=>{ft.submit()},style:{width:160},maxTagCount:1,maxTagTextLength:7,mode:"multiple",disabled:(($t=Ct.zsdatas)==null?void 0:$t.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(Bn=Ct==null?void 0:Ct.zsdatas)==null?void 0:Bn.map((hn,gn)=>b.createElement(Ee.default.Option,{key:gn,value:hn==null?void 0:hn.id},hn==null?void 0:hn.name))))))},vt=Object.defineProperty,ct=Object.defineProperties,bt=Object.getOwnPropertyDescriptors,At=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable,Wt=(le,Se,Pe)=>Se in le?vt(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,Pt=(le,Se)=>{for(var Pe in Se||(Se={}))En.call(Se,Pe)&&Wt(le,Pe,Se[Pe]);if(At)for(var Pe of At(Se))xn.call(Se,Pe)&&Wt(le,Pe,Se[Pe]);return le},Te=(le,Se)=>ct(le,bt(Se)),et=(le,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch($t){mt($t)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch($t){mt($t)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(le,Se)).next())});const Yt=({user:le,exercise_id:Se=null,homework_common_id:Pe=null,setitem:rt})=>{var mt,Vn,pn;let[Jt,dt]=(0,b.useState)([{id:Math.random()}]),[$t,Bn]=(0,b.useState)(null);function Ct(){return et(this,null,function*(){var ft,Fn,qt,Ot;let en=yield(0,te.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:Se,homework_common_id:Pe}});if(((ft=en==null?void 0:en.data)==null?void 0:ft.length)>0){let Zt=[];(Fn=en==null?void 0:en.data)==null||Fn.map(ua=>{var hn;(hn=ua==null?void 0:ua.ec_point_ids)==null||hn.map(gn=>{Zt.push(gn)})}),rt(Te(Pt({},(qt=en==null?void 0:en.data)==null?void 0:qt[0]),{ec_point_ids:Zt})),dt((Ot=en==null?void 0:en.data)==null?void 0:Ot.map(ua=>Te(Pt({},ua),{id:Math.random()})))}})}(0,b.useEffect)(()=>{var ft,Fn;(Fn=(ft=le==null?void 0:le.userInfo)==null?void 0:ft.course)!=null&&Fn.course_school_id&&yt()},[(Vn=(mt=le==null?void 0:le.userInfo)==null?void 0:mt.course)==null?void 0:Vn.course_school_id]);function yt(){return et(this,null,function*(){var ft,Fn;const qt=yield(0,te.ZP)(`/api/schools/${(Fn=(ft=le==null?void 0:le.userInfo)==null?void 0:ft.course)==null?void 0:Fn.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Bn(qt==null?void 0:qt.data),(Pe||Se)&&Ct()})}return console.log(Jt,$t,"datas"),b.createElement("div",{style:{display:(pn=le.userInfo.course)!=null&&pn.is_openengineering?"":"none"}},b.createElement("div",{className:ie.wrap},b.createElement("p",null,"\u5DE5\u7A0B\u8BA4\u8BC1",b.createElement("br",null),"\u8003\u6838\u77E5\u8BC6\u70B9"),b.createElement("div",{className:ie.itemWarp},Jt==null?void 0:Jt.map((ft,Fn)=>b.createElement("div",{key:ft.id,style:{display:"flex",alignItems:"center",marginBottom:20}},b.createElement(be,{rz:$t,item:ft,setitem:qt=>{qt=Pt(Pt({},Jt==null?void 0:Jt[Fn]),qt),Jt.splice(Fn,1,qt),dt([...Jt]);let Ot=[];Jt==null||Jt.map(en=>{var Zt;(Zt=en==null?void 0:en.ec_point_ids)==null||Zt.map(ua=>{Ot.push(ua)})}),rt(Te(Pt({},qt),{ec_point_ids:Ot}))}}),b.createElement(oe.Z,{className:ie.addIcon,onClick:()=>{Jt.push({id:Math.random()}),dt([...Jt])}}),Fn!=0&&b.createElement(se.Z,{className:ie.deleteIcon,onClick:()=>{Jt.splice(Fn,1);let qt=[];Jt==null||Jt.map(Ot=>{var en;(en=Ot==null?void 0:Ot.ec_point_ids)==null||en.map(Zt=>{qt.push(Zt)})}),rt(Te(Pt({},Jt[Fn-1]),{ec_point_ids:qt})),dt([...Jt])}}))))))};var wn=(0,he.connect)(({user:le})=>({user:le}))(Yt),Lt=ae(20834),_t=ae(71418),Ce=ae(38854),ot=ae(6848),an=ae(43428),tt={flex_box_center:"flex_box_center___zCnVx",flex_space_between:"flex_space_between___BBiQD",flex_box_vertical_center:"flex_box_vertical_center___KzPui",flex_box_center_end:"flex_box_center_end___zJokd",flex_box_column:"flex_box_column___Grsys",moreSpan:"moreSpan___VJeLv",bg:"bg___oBBHW",title:"title___xV4Rt",bottomdiv:"bottomdiv___rPfwr",spanBtn:"spanBtn___eJxID",addQuestionBtn:"addQuestionBtn___RPRiP",saveBtn:"saveBtn___y9nNf",left:"left___Q3Qf4",leftAction:"leftAction___GT9yG",Button:"Button___r00OP",iconWrapper:"iconWrapper___wofW_",up:"up___a9RQm",down:"down___x6RAl",disabled:"disabled___mkEME",titleleft:"titleleft___WZ83K",more_style:"more_style___ZXYnN",qcount:"qcount___o6F1k",score:"score___Gy6jr",qtitle:"qtitle___KF7pa",qcountclick:"qcountclick___kvoyc",right:"right___Nfa70",edit:"edit___RVRSb",delete:"delete___J9BAT",yuanti:"yuanti___ljq8l",tianjia:"tianjia___s7Zu2",shixun:"shixun___YkjdZ",scoreByBlankRadio:"scoreByBlankRadio___QYQY5",modalconfirm:"modalconfirm___dmWFe",scoremodal:"scoremodal___CDA7w",close:"close___jdUWv",content:"content___HPqUf",items:"items___YkyQL",bottom:"bottom___mzpp4",yes:"yes___Xio6z",no:"no___hbicD",formcenter:"formcenter___kN8Ax",radiogroup:"radiogroup___htjtc",easy:"easy____g1mR",medium:"medium___vPAsn",hard:"hard___c6tcf",formcenterselect:"formcenterselect___B88vb",selectitems1:"selectitems1___Dzpho",selectitems:"selectitems___wUGKF",morebottom:"morebottom___F5cFQ",scoreinput:"scoreinput___S9Fbv",shake:"shake___IYp2E",titleTooltip:"titleTooltip___J0i26",exercise_styles:"exercise_styles___BJAZm"},ht=ae(22566),Jn=ae(21692),dn=ae(9683),Qt=ae(11414),kt=ae(8658),Wn=ae(59301),ra=Object.defineProperty,tn=Object.defineProperties,Ba=Object.getOwnPropertyDescriptors,Ka=Object.getOwnPropertySymbols,Fa=Object.prototype.hasOwnProperty,jn=Object.prototype.propertyIsEnumerable,Ha=(le,Se,Pe)=>Se in le?ra(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,Pa=(le,Se)=>{for(var Pe in Se||(Se={}))Fa.call(Se,Pe)&&Ha(le,Pe,Se[Pe]);if(Ka)for(var Pe of Ka(Se))jn.call(Se,Pe)&&Ha(le,Pe,Se[Pe]);return le},fr=(le,Se)=>tn(le,Ba(Se)),oa=(le,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch($t){mt($t)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch($t){mt($t)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(le,Se)).next())}),da=({Itemid:le,setqitem:Se,qitem:Pe,data:rt,getdata:mt,bigitem:Vn,setBigqitem:pn,isedit:Jt,handleEditing:dt})=>{const[$t,Bn]=(0,b.useState)([]),[Ct,yt]=(0,b.useState)(!1),ft=(qt,Ot,en)=>{const Zt=Array.from(qt),[ua]=Zt.splice(Ot,1);return Zt.splice(en,0,ua),Zt};(0,b.useEffect)(()=>{rt.length>0&&Bn([...rt])},[rt]);const Fn=(qt,Ot)=>oa(void 0,null,function*(){if(!qt.destination)return;if(Jt){dt();return}const en=ft(Ot,qt.source.index,qt.destination.index);yt(!0);let Zt=yield(0,te.ZP)(`/api/exercises/${le}/adjust_position.json`,{method:"post",body:{id:le,question_ids:en==null?void 0:en.map(ua=>ua.question_id)}});yt(!1),Zt.status===0&&mt({id:Ot==null?void 0:Ot[qt.source.index].question_id})});return Wn.createElement("div",null,Wn.createElement(Qt.Z5,{onDragEnd:qt=>Fn(qt,$t)},Wn.createElement(Qt.bK,{droppableId:"droppable"},(qt,Ot)=>Wn.createElement("div",Pa({ref:qt.innerRef},qt.droppableProps),Wn.createElement(_t.Z,{spinning:Ct},$t.map((en,Zt)=>Wn.createElement(Qt._l,{key:Zt,draggableId:Zt.toString(),index:Zt},(ua,hn)=>{var gn,Zr;return Wn.createElement("aside",Pa(Pa({ref:ua.innerRef},ua.draggableProps),ua.dragHandleProps),Wn.createElement(ot.Z,{title:Wn.createElement(kt.Z,{value:(en==null?void 0:en.question_type)===8?(gn=en==null?void 0:en.program_attr)==null?void 0:gn.description:en.question_title}),color:"#fff",placement:"left",overlayClassName:tt.titleTooltip},Wn.createElement("div",{onClick:()=>{if(Jt){dt();return}Se(fr(Pa({},en),{index:Zt+1})),pn(Vn),(0,ht.Vf)("#question-scroll-id")},className:`${tt.qcount} ${en.question_id===(Pe==null?void 0:Pe.question_id)?tt.qcountclick:""}`},Wn.createElement("span",{className:tt.score},en==null?void 0:en.question_score,"\u5206"),Wn.createElement("span",{className:tt.qtitle},Zt+1,"\u3001",Wn.createElement(kt.Z,{value:(en==null?void 0:en.question_type)===8?(Zr=en==null?void 0:en.program_attr)==null?void 0:Zr.description:en.question_title,showTextOnly:!0})))))}))),qt.placeholder))))},Aa=ae(95237),xa=ae(60569),_a=ae(78673),Sn=ae(61485),on=ae(98280),St=ae(59301),Tt=(le,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch($t){mt($t)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch($t){mt($t)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(le,Se)).next())}),Ca=({form:le,TagDiscipline:Se,exerciseitem:Pe,qitem:rt,getTagData:mt})=>{var Vn;const[pn,Jt]=(0,b.useState)(!0),[dt,$t]=(0,b.useState)(!1),[Bn,Ct]=(0,b.useState)(""),[yt,ft]=(0,b.useState)([]),[Fn,qt]=(0,b.useState)([]),[Ot,en]=(0,b.useState)(0);(0,b.useEffect)(()=>{ua()},[]);const Zt=hn=>Tt(void 0,null,function*(){const gn=yield(0,te.ZP)("/api/tag_disciplines.json",{method:"get",params:{sub_discipline_id:hn==null?void 0:hn.sub_discipline_id}});qt(gn==null?void 0:gn.tag_disciplines)}),ua=()=>Tt(void 0,null,function*(){const hn=yield(0,te.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});ft(hn.disciplines||[]),rt!=null&&rt.sub_discipline_id&&Zt(rt),en(rt!=null&&rt.sub_discipline_id?1:0),le.setFieldsValue({difficulty:rt.difficulty||2,tag_discipline_ids:rt.tag_discipline_ids,repeat_answer:!rt.repeat_answer,sub_discipline_id:rt!=null&&rt.sub_discipline_id?[rt==null?void 0:rt.discipline_id,rt==null?void 0:rt.sub_discipline_id]:[]})});return St.createElement("div",null,St.createElement("div",{style:{marginTop:30,height:pn?"100%":"0px",overflow:"hidden"}},St.createElement(we.default.Item,{className:tt.formcenter,rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u96BE\u5EA6"}],label:"\u96BE\u5EA6",name:"difficulty"},St.createElement(Oe.ZP.Group,{className:tt.radiogroup},St.createElement(Oe.ZP.Button,{className:tt.easy,value:1},"\u7B80\u5355"),St.createElement(Oe.ZP.Button,{className:tt.medium,value:2},"\u9002\u4E2D"),St.createElement(Oe.ZP.Button,{className:tt.hard,value:3},"\u56F0\u96BE"))),St.createElement(we.default.Item,{name:"sub_discipline_id",label:"\u77E5\u8BC6\u70B9",className:tt.formcenterselect},St.createElement(xe.Z,{className:tt.selectitems1,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:yt,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(hn,gn)=>{le.setFieldsValue({sub_discipline_id:hn,tag_discipline_ids:[]}),en(hn?hn.length:0),(hn==null?void 0:hn.length)>0&&(Zt({sub_discipline_id:hn[1]}),hn[1]==(rt==null?void 0:rt.sub_discipline_id)&&le.setFieldValue("tag_discipline_ids",rt.tag_discipline_ids))},onClear:()=>{qt([]),le.setFieldValue("tag_discipline_ids",[]),en(0)}})),St.createElement(we.default.Item,{className:tt.formcenterselect},St.createElement("div",{style:{display:"flex",alignItems:"center",paddingLeft:55}},St.createElement(we.default.Item,{name:"tag_discipline_ids"},St.createElement(Ee.default,{className:tt.selectitems,disabled:Ot===0,showSearch:!0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",mode:"multiple",listHeight:200,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",mode:"multiple",dropdownStyle:{zIndex:9},allowClear:!0,optionFilterProp:"children",filterOption:(hn,gn)=>gn.key.indexOf(hn.toLowerCase())>=0},Fn==null?void 0:Fn.map(hn=>St.createElement(Ee.default.Option,{key:hn.name+hn.id,value:hn.id},St.createElement("div",{style:{display:"flex",alignItems:"center"}},St.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},hn.name),(hn==null?void 0:hn.type)==="personal"&&St.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),Ot>0&&St.createElement("div",{style:{marginLeft:20,marginTop:"-16px",lineHeight:"48px",height:48,fontSize:14}},St.createElement("span",null,"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),St.createElement("a",{onClick:()=>{$t(!0)},style:{marginLeft:3,color:"#3061D0"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))),St.createElement(we.default.Item,{className:tt.formcenterselect},St.createElement("div",{style:{display:"flex",alignItems:"center"}},St.createElement(we.default.Item,{name:"repeat_answer",valuePropName:"checked"},St.createElement(_a.Z,null)),St.createElement("div",{style:{marginLeft:10,marginTop:"-16px",lineHeight:"48px",height:48,color:"#000000"}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898",St.createElement(ot.Z,{placement:"right",title:"\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u4F5C\u7B54\u5B8C\u6210\u8BE5\u9898\u5E76\u8FDB\u5165\u4E0B\u4E00\u9898\u4E4B\u540E\uFF0C\u4E0D\u5141\u8BB8\u518D\u4FEE\u6539\u8BE5\u9898\u7B54\u6848"},St.createElement(Sn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))))),St.createElement(on.Z,{open:dt,subDisciplineId:(Vn=le.getFieldValue("sub_discipline_id"))==null?void 0:Vn[1],onCancel:()=>{$t(!1)},onOkClick:hn=>{qt(gn=>[...gn,hn]),le.setFieldValue("tag_discipline_ids",[...le.getFieldValue("tag_discipline_ids"),hn==null?void 0:hn.id])}}))},Wa=ae(59301),Da=Object.defineProperty,Ta=Object.defineProperties,Br=Object.getOwnPropertyDescriptors,ar=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,Oo=Object.prototype.propertyIsEnumerable,Ut=(le,Se,Pe)=>Se in le?Da(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,Un=(le,Se)=>{for(var Pe in Se||(Se={}))Or.call(Se,Pe)&&Ut(le,Pe,Se[Pe]);if(ar)for(var Pe of ar(Se))Oo.call(Se,Pe)&&Ut(le,Pe,Se[Pe]);return le},$n=(le,Se)=>Ta(le,Br(Se)),ba=(le,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch($t){mt($t)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch($t){mt($t)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(le,Se)).next())}),Mt=({qitem:le,setisedit:Se,TagDiscipline:Pe,exerciseitem:rt,seveeditor:mt,deleteitem:Vn,getTagData:pn,init:Jt,showTip:dt=!1})=>{var $t;const[Bn]=we.default.useForm();(0,b.useEffect)(()=>{var yt;Bn.setFieldsValue($n(Un({},le),{name:le==null?void 0:le.question_title,choices:(yt=le==null?void 0:le.question_choices)==null?void 0:yt.map(ft=>$n(Un({},ft),{standard_boolean:ft!=null&&ft.standard_boolean?1:0})),repeat_answer:!(le!=null&&le.repeat_answer)}))},[le]);const Ct=yt=>{if(!(yt!=null&&yt.length))return!1;const ft=yt.map(qt=>{var Ot;return(Ot=qt.choice_text)==null?void 0:Ot.trim().replace(/^\s+|\s+$/g,"")});return new Set(ft).size!==ft.length};return Wa.createElement("div",null,Wa.createElement(we.default,{form:Bn,colon:!1,onFinish:yt=>{var ft,Fn,qt,Ot,en;if(Ct(yt.choices)){Be.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}let Zt=(Fn=(ft=yt==null?void 0:yt.choices)==null?void 0:ft.map)==null?void 0:Fn.call(ft,(hn,gn)=>{if((hn==null?void 0:hn.standard_boolean)===1)return gn+1}),ua=$n(Un({},yt),{item_type:le==null?void 0:le.question_type,question_choices:(Ot=(qt=yt==null?void 0:yt.choices)==null?void 0:qt.map)==null?void 0:Ot.call(qt,hn=>hn.choice_text),standard_answers:Zt.filter(hn=>hn),choices:(en=yt==null?void 0:yt.choices)==null?void 0:en.map(hn=>$n(Un({},hn),{is_answer:hn.standard_boolean}))});mt(Un(Un({},le),ua))},onFinishFailed:yt=>ba(void 0,null,function*(){var ft,Fn;Be.ZP.error(yt.errorFields[0].errors[0]),Bn.scrollToField((Fn=(ft=yt==null?void 0:yt.errorFields)==null?void 0:ft[0])==null?void 0:Fn.name,{behavior:"smooth",block:"center"})})},Wa.createElement("div",{style:{display:"flex",alignItems:"center"}},Wa.createElement("div",{style:{flex:1}},Wa.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Wa.createElement("span",null,(le==null?void 0:le.question_type)===1?"\u591A\u9009\u9898":"\u5355\u9009\u9898")),(($t=rt==null?void 0:rt.exercise)==null?void 0:$t.exercise_status)==1&&!(le!=null&&le.isadd)&&Wa.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Vn()}},Wa.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Wa.createElement(ke.ZP,{onClick:()=>{var yt;le.isadd?(Se(!1),Jt()):(Bn.setFieldsValue($n(Un({},le),{name:le==null?void 0:le.question_title,choices:(yt=le==null?void 0:le.question_choices)==null?void 0:yt.map(ft=>$n(Un({},ft),{standard_boolean:ft!=null&&ft.standard_boolean?1:0})),repeat_answer:!(le!=null&&le.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),Wa.createElement(ot.Z,{overlayClassName:tt.shake,open:dt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Wa.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Wa.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Wa.createElement(ke.ZP,{type:"primary",className:"ml20",onClick:()=>ba(void 0,null,function*(){Bn.submit()})},"\u4FDD\u5B58"))),Wa.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Wa.createElement(Aa.Z,{align:"middle"},Wa.createElement(we.default.Item,{className:tt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Wa.createElement(De.Z,{onBlur:yt=>{yt.target.value==="0"&&Be.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1}))),Wa.createElement(xa.u,{form:Bn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",titleKey:"question_title",choiceKey:"choices",analysisKey:"analysis",choiceOptionsPath:"choices",choiceTextKey:"choice_text",answerKey:"standard_boolean"}),Wa.createElement(Ca,{getTagData:pn,qitem:le,exerciseitem:rt,TagDiscipline:Pe,form:Bn}))))},Xt=ae(55862),fn=ae(24136),Rt=ae(59301),Qn=Object.defineProperty,Kn=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,rn=Object.prototype.propertyIsEnumerable,Cn=(le,Se,Pe)=>Se in le?Qn(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,Nn=(le,Se)=>{for(var Pe in Se||(Se={}))Xe.call(Se,Pe)&&Cn(le,Pe,Se[Pe]);if(nt)for(var Pe of nt(Se))rn.call(Se,Pe)&&Cn(le,Pe,Se[Pe]);return le},wa=(le,Se)=>Kn(le,Je(Se)),Ea=(le,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch($t){mt($t)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch($t){mt($t)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(le,Se)).next())}),ya=({qitem:le,TagDiscipline:Se,exerciseitem:Pe,setisedit:rt,seveeditor:mt,deleteitem:Vn,getTagData:pn,init:Jt,showTip:dt=!1})=>{var $t;const[Bn]=we.default.useForm(),Ct=we.default.useWatch("use_blank_score",Bn);return(0,b.useEffect)(()=>{Bn.setFieldsValue(wa(Nn({},le),{standard_answers:le.standard_answers||[],name:le.question_title,repeat_answer:!le.repeat_answer}))},[le]),Rt.createElement("div",null,Rt.createElement(we.default,{form:Bn,colon:!1,onValuesChange:(yt,ft)=>{var Fn,qt,Ot,en;if(yt!=null&&yt.standard_answers||yt!=null&&yt.use_blank_score){let Zt=((Fn=Bn.getFieldValue("standard_answers"))==null?void 0:Fn.length)>0&&((Ot=(qt=Bn.getFieldValue("standard_answers"))==null?void 0:qt.map(ua=>ua.score))==null?void 0:Ot.filter(ua=>ua));(Zt==null?void 0:Zt.length)>0&&Bn.setFieldsValue({question_score:(Zt==null?void 0:Zt.length)>0&&((en=Zt.reduce((ua,hn)=>ua+hn))==null?void 0:en.toFixed(1))})}},onFinish:yt=>{mt(wa(Nn(Nn({},le),yt),{item_type:le==null?void 0:le.question_type,standard_answers:yt.standard_answers,question_title:yt.name}))},onFinishFailed:yt=>Ea(void 0,null,function*(){var ft,Fn;yt.errorFields[0].errors[0]==="\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"&&(0,ht.pE)(),Be.ZP.error(yt.errorFields[0].errors[0]),Bn.scrollToField((Fn=(ft=yt==null?void 0:yt.errorFields)==null?void 0:ft[0])==null?void 0:Fn.name,{behavior:"smooth",block:"center"})})},Rt.createElement("div",{style:{display:"flex",alignItems:"center"}},Rt.createElement("div",{style:{flex:1}},Rt.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Rt.createElement("span",null,"\u586B\u7A7A\u9898")),(($t=Pe==null?void 0:Pe.exercise)==null?void 0:$t.exercise_status)==1&&!(le!=null&&le.isadd)&&Rt.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Vn()}},Rt.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Rt.createElement(ke.ZP,{onClick:()=>{le.isadd?(rt(!1),Jt()):(Bn.setFieldsValue(wa(Nn({},le),{standard_answers:le.standard_answers||[],name:le.question_title,repeat_answer:!le.repeat_answer})),rt(!1))}},"\u53D6\u6D88"),Rt.createElement(ot.Z,{overlayClassName:tt.shake,open:dt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Rt.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Rt.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Rt.createElement(ke.ZP,{type:"primary",className:"ml20",onClick:()=>{Bn.submit()}},"\u4FDD\u5B58"))),Rt.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Rt.createElement(Aa.Z,{align:"middle"},Ct?Rt.createElement(fn.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}):Rt.createElement(we.default.Item,{key:2,className:tt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Rt.createElement(De.Z,{onBlur:yt=>{yt.target.value==="0"&&Be.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle",max:100,min:.1})),Rt.createElement(we.default.Item,{name:"use_blank_score",noStyle:!0},Rt.createElement(Oe.ZP.Group,{className:tt.scoreByBlankRadio,optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}]})),Rt.createElement(ot.Z,{overlayInnerStyle:{width:460},title:Rt.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",Rt.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},Rt.createElement("i",{className:"icon-tishixiaowenhao font18 ml20 c-3061d0"}))),Rt.createElement(Xt.u,{form:Bn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:Ct,answerKey:"standard_answers"}),Rt.createElement(Ca,{getTagData:pn,qitem:le,exerciseitem:Pe,TagDiscipline:Se,form:Bn}))))},Xn=ae(85881),zt=ae(59301),ka=Object.defineProperty,pr=Object.defineProperties,ho=Object.getOwnPropertyDescriptors,qa=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable,Ua=(le,Se,Pe)=>Se in le?ka(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,Sr=(le,Se)=>{for(var Pe in Se||(Se={}))Ht.call(Se,Pe)&&Ua(le,Pe,Se[Pe]);if(qa)for(var Pe of qa(Se))Qr.call(Se,Pe)&&Ua(le,Pe,Se[Pe]);return le},lr=(le,Se)=>pr(le,ho(Se)),Gr=(le,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch($t){mt($t)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch($t){mt($t)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(le,Se)).next())}),no=({qitem:le,setisedit:Se,TagDiscipline:Pe,exerciseitem:rt,seveeditor:mt,deleteitem:Vn,getTagData:pn,init:Jt,showTip:dt=!1})=>{var $t;const[Bn]=we.default.useForm();return(0,b.useEffect)(()=>{var Ct;Bn.setFieldsValue(lr(Sr({},le),{name:le.question_title,repeat_answer:!le.repeat_answer,choices:(Ct=le==null?void 0:le.question_choices)==null?void 0:Ct.map(yt=>lr(Sr({},yt),{is_answer:yt!=null&&yt.standard_boolean?1:0}))}))},[le]),zt.createElement("div",null,zt.createElement(we.default,{form:Bn,colon:!1,onFinish:Ct=>{var yt,ft,Fn,qt;let Ot=(ft=(yt=Ct==null?void 0:Ct.choices)==null?void 0:yt.map)==null?void 0:ft.call(yt,(en,Zt)=>{if((en==null?void 0:en.is_answer)===1)return Zt+1});mt(lr(Sr(Sr({},le),Ct),{question_title:Ct.name,standard_answers:Ot.filter(en=>en),question_choices:(qt=(Fn=Ct==null?void 0:Ct.choices)==null?void 0:Fn.map)==null?void 0:qt.call(Fn,en=>en.choice_text)}))},onFinishFailed:Ct=>Gr(void 0,null,function*(){var yt,ft;Be.ZP.error(Ct.errorFields[0].errors[0]),Bn.scrollToField((ft=(yt=Ct==null?void 0:Ct.errorFields)==null?void 0:yt[0])==null?void 0:ft.name,{behavior:"smooth",block:"center"})})},zt.createElement("div",{style:{display:"flex",alignItems:"center"}},zt.createElement("div",{style:{flex:1}},zt.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),zt.createElement("span",null,"\u5224\u65AD\u9898")),(($t=rt==null?void 0:rt.exercise)==null?void 0:$t.exercise_status)==1&&!(le!=null&&le.isadd)&&zt.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Vn()}},zt.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),zt.createElement(ke.ZP,{onClick:()=>{var Ct;le.isadd?(Se(!1),Jt()):(Bn.setFieldsValue(lr(Sr({},le),{name:le.question_title,repeat_answer:!le.repeat_answer,choices:(Ct=le==null?void 0:le.question_choices)==null?void 0:Ct.map(yt=>lr(Sr({},yt),{is_answer:yt!=null&&yt.standard_boolean?1:0}))})),Se(!1))}},"\u53D6\u6D88"),zt.createElement(ot.Z,{overlayClassName:tt.shake,open:dt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:zt.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},zt.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},zt.createElement(ke.ZP,{type:"primary",className:"ml20",onClick:()=>{Bn.submit()}},"\u4FDD\u5B58"))),zt.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},zt.createElement(we.default.Item,{className:tt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},zt.createElement(De.Z,{onBlur:Ct=>{Ct.target.value==="0"&&Be.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),zt.createElement(Xn.Z,{form:Bn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",choiceKey:""}),zt.createElement(Ca,{getTagData:pn,qitem:le,exerciseitem:rt,TagDiscipline:Pe,form:Bn}))))},Mr=ae(36381),ca={wrap:"wrap___m6v_p",deleteIcon:"deleteIcon___hdYRw",keywordTag:"keywordTag___BLtdn",questionTitleEditorWrap:"questionTitleEditorWrap___fdaK7",choiceWrap:"choiceWrap___wkyUO",choiceIndex:"choiceIndex___tExMq",judgementIndex:"judgementIndex___RMhzJ",setAnswerBtn:"setAnswerBtn___bisIK",activeAnswer:"activeAnswer___MnyyC",activeJudgementAnswer:"activeJudgementAnswer___grGX5",actionWrapper:"actionWrapper___LUawU",addIcon:"addIcon___ckXqe",inputBorder:"inputBorder___nuo0O",placeholder:"placeholder___Dhdir",blankWrapper:"blankWrapper___cnidV",blankInput:"blankInput___iZ5BF",blankInputNumberWrapper:"blankInputNumberWrapper___zlXQc",addBtn:"addBtn___OdgAm",blankIndex:"blankIndex___g4Y7d",baseInputWrapper:"baseInputWrapper___DCOHd",collapseWrapper:"collapseWrapper___SyLrk",panelHeader:"panelHeader___E0il1",open:"open___IFH3V",close:"close___YpIA9",hide:"hide___Nl1W6",scoreByBlankRadio:"scoreByBlankRadio___jpG4i"},nn=ae(30720),gr=Object.defineProperty,ga=Object.defineProperties,ur=Object.getOwnPropertyDescriptors,za=Object.getOwnPropertySymbols,vn=Object.prototype.hasOwnProperty,na=Object.prototype.propertyIsEnumerable,Na=(le,Se,Pe)=>Se in le?gr(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,_n=(le,Se)=>{for(var Pe in Se||(Se={}))vn.call(Se,Pe)&&Na(le,Pe,Se[Pe]);if(za)for(var Pe of za(Se))na.call(Se,Pe)&&Na(le,Pe,Se[Pe]);return le},sr=(le,Se)=>ga(le,ur(Se)),tr=(le,Se)=>{var Pe={};for(var rt in le)vn.call(le,rt)&&Se.indexOf(rt)<0&&(Pe[rt]=le[rt]);if(le!=null&&za)for(var rt of za(le))Se.indexOf(rt)<0&&na.call(le,rt)&&(Pe[rt]=le[rt]);return Pe};const Ar=le=>{var Se=le,{value:Pe,onChange:rt,scrollId:mt}=Se,Vn=tr(Se,["value","onChange","scrollId"]);return b.createElement("div",{id:mt||""},b.createElement(nn.Z,sr(_n({},Vn),{defaultValue:Pe,onChange:(pn,Jt)=>{console.log("a:",pn,Jt),Jt!=null&&Jt.length?rt(pn,Jt):rt(pn)}})))},Ur=({value:le,onChange:Se,placeholder:Pe,height:rt=140,isEdit:mt})=>mt?b.createElement(nn.Z,{watch:!0,isFocus:!0,height:rt,placeholder:Pe,defaultValue:le,onChange:Se}):b.createElement("div",{style:{cursor:"pointer"}},le?b.createElement(kt.Z,{className:ca.inputBorder,value:le}):b.createElement("div",{className:`${ca.inputBorder} ${ca.placeholder}`},Pe));var mr=ae(43604),Yo=Object.defineProperty,Mo=Object.defineProperties,Ei=Object.getOwnPropertyDescriptors,xr=Object.getOwnPropertySymbols,Nr=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable,Ja=(le,Se,Pe)=>Se in le?Yo(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,Hr=(le,Se)=>{for(var Pe in Se||(Se={}))Nr.call(Se,Pe)&&Ja(le,Pe,Se[Pe]);if(xr)for(var Pe of xr(Se))Eo.call(Se,Pe)&&Ja(le,Pe,Se[Pe]);return le},Yr=(le,Se)=>Mo(le,Ei(Se)),hr=(le,Se)=>{var Pe={};for(var rt in le)Nr.call(le,rt)&&Se.indexOf(rt)<0&&(Pe[rt]=le[rt]);if(le!=null&&xr)for(var rt of xr(le))Se.indexOf(rt)<0&&Eo.call(le,rt)&&(Pe[rt]=le[rt]);return Pe};const Kr=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],xt=({value:le,onChange:Se,choiceTextKey:Pe,answerKey:rt,index:mt,isEdit:Vn,setInputActive:pn,form:Jt,choiceOptionsPath:dt,allowChangeMode:$t,showAddIcon:Bn,addItem:Ct,deleteItem:yt})=>{const ft=(le==null?void 0:le[rt])===1,Fn=()=>{const Ot=Jt.getFieldValue(dt);Jt.setFieldValue(dt,Ot.map(en=>Yr(Hr({},en),{[rt]:0})))},qt=()=>{ft?Se(Yr(Hr({},le),{[rt]:0})):($t||Fn(),Se(Yr(Hr({},le),{[rt]:1})))};return b.createElement(Aa.Z,{className:ca.choiceWrap,align:"middle",wrap:!1},b.createElement(mr.Z,{onClick:qt,className:`${ca.choiceIndex} ${ft?ca.activeAnswer:""}`},Kr[mt]),b.createElement(mr.Z,{flex:1,className:`${ca.editorWrap} ml15`,onClick:pn},b.createElement(Ur,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Vn,value:le==null?void 0:le[Pe],onChange:Ot=>{Se(Yr(Hr({},le),{[Pe]:Ot}))}})),b.createElement(mr.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:qt,className:`${ca.setAnswerBtn} ${ft?ca.activeAnswer:""}`},ft?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),b.createElement(mr.Z,{className:ca.actionWrapper},b.createElement(ot.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},b.createElement(oe.Z,{className:ca.addIcon,onClick:Ct,style:{visibility:Bn?"visible":"hidden"}})),b.createElement(ot.Z,{title:"\u5220\u9664"},b.createElement(se.Z,{className:ca.deleteIcon,onClick:yt,style:{visibility:mt>1?"visible":"hidden"}}))))},Ft=({questionTitlePlaceholder:le,titleKey:Se,choiceKey:Pe,analysisKey:rt,choiceTextKey:mt,answerKey:Vn,choiceOptionsPath:pn,allowChangeMode:Jt=!0,form:dt,showAnalysis:$t=!0})=>{const[Bn,Ct]=(0,b.useState)(),[yt,ft]=(0,b.useState)(!1);return b.createElement("div",{className:ca.wrap},b.createElement("div",{className:ca.questionTitleEditorWrap},b.createElement(we.default.Item,{label:"\u9898\u5E72",name:Se,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Ar,{scrollId:Array.isArray(Se)?Se.join("_"):`${Se}`,watch:!0,height:140,placeholder:le}))),b.createElement(we.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),b.createElement(we.default.List,{name:Pe,rules:[{validator(Fn,qt){const Ot=qt.some(Zt=>Zt[Vn]===1),en=qt.findIndex(Zt=>{var ua;return((ua=Zt[mt])==null?void 0:ua.length)<=0});return en!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Kr[en]}\u9009\u9879\u7684\u5185\u5BB9`)):Ot?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Fn,{add:qt,remove:Ot})=>b.createElement("div",{id:Array.isArray(pn)?pn.join("_"):`${pn}`},Fn.map((en,Zt)=>{var ua=en,{key:hn,name:gn}=ua,Zr=hr(ua,["key","name"]);const $r=Bn===hn,er=()=>{Ct(hn)},eo=Zt<7&&Zt===Fn.length-1,sa=()=>qt({[mt]:"",[Vn]:0}),to=()=>Ot(gn);return b.createElement(we.default.Item,Yr(Hr({},Zr),{key:hn,name:gn,noStyle:!0}),b.createElement(xt,{choiceTextKey:mt,answerKey:Vn,index:Zt,isEdit:$r,setInputActive:er,form:dt,choiceOptionsPath:pn,allowChangeMode:Jt,showAddIcon:eo,addItem:sa,deleteItem:to}))}),Fn.length<8&&b.createElement("div",{className:`${ca.addBtn} mb30`,onClick:()=>qt({[mt]:"",[Vn]:0})},"\u6DFB\u52A0\u9009\u9879"))),$t&&b.createElement("div",{onClick:()=>ft(!0)},b.createElement(we.default.Item,{name:rt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(Ur,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:yt}))))};var Et=ae(59301),Mn=Object.defineProperty,Za=Object.defineProperties,rr=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,$a=Object.prototype.hasOwnProperty,Xa=Object.prototype.propertyIsEnumerable,ao=(le,Se,Pe)=>Se in le?Mn(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,dr=(le,Se)=>{for(var Pe in Se||(Se={}))$a.call(Se,Pe)&&ao(le,Pe,Se[Pe]);if(Pn)for(var Pe of Pn(Se))Xa.call(Se,Pe)&&ao(le,Pe,Se[Pe]);return le},Ga=(le,Se)=>Za(le,rr(Se)),wr=(le,Se)=>{var Pe={};for(var rt in le)$a.call(le,rt)&&Se.indexOf(rt)<0&&(Pe[rt]=le[rt]);if(le!=null&&Pn)for(var rt of Pn(le))Se.indexOf(rt)<0&&Xa.call(le,rt)&&(Pe[rt]=le[rt]);return Pe};const Bo=({value:le,onChange:Se})=>{const Pe=mt=>{Ue.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:ca.modal,onOk:()=>{const Vn=[...le];Vn.splice(mt,1),Se(Vn)}})},rt=()=>{const mt=[...le];mt.push(""),Se(mt)};return Et.createElement(Aa.Z,{className:"ml20"},Et.createElement(mr.Z,{flex:1},le==null?void 0:le.map((mt,Vn)=>Et.createElement(Aa.Z,{key:`${mt}_${Vn}`,align:"middle",className:"mb20"},Et.createElement(We.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:mt,autoSize:{maxRows:3},maxLength:1e3,onBlur:pn=>{const Jt=[...le],dt=pn.target.value.trim();Jt[Vn]=dt,Se(Jt)}}),Et.createElement(ot.Z,{title:"\u5220\u9664"},Et.createElement(se.Z,{className:ca.deleteIcon,style:{marginLeft:15,visibility:Vn>0?"visible":"hidden"},onClick:()=>Pe(Vn)}))))),Et.createElement(mr.Z,null,Et.createElement("div",{className:`${ca.addBtn}`,onClick:()=>{rt()}},"\u65B0\u589E\u7B54\u6848")))},ri=({value:le=!0,onChange:Se})=>Et.createElement(_a.Z,{checked:!le,onChange:Pe=>{Se(!Pe)}}),Rr="\u2581",So=({questionTitlePlaceholder:le,form:Se,name:Pe,scoreByBlank:rt,answerKey:mt,titleKey:Vn="name",analysisKey:pn="analysis",isOrdered:Jt="is_ordered"})=>{var dt,$t;const[Bn,Ct]=(0,b.useState)(!1),yt=(hn,gn)=>{const Zr=gn.line;let $r=0;for(let eo=0;eo{const er=hn.getRange(gn.from,gn.to);let eo=0;if(gn.text.forEach(sa=>{eo+=sa.split(Rr).length-1}),gn.origin!=="setValue"){if(er&&er.indexOf(Rr)!==-1){const sa=er.split(Rr).length-1,to=yt(hn,gn.from);if(console.log(`\u5220\u9664${sa}\u4E2A\uFF0C \u524D\u9762\u6709${to}\u4E2A\uFF0C\u65B0\u589E${eo}\u4E2A`),sa>1){const Xr=Array.from({length:sa},(Fo,kr)=>to+kr);$r(Xr)}else $r(to)}else if(eo>0){const sa=yt(hn,gn.from);console.log(`\u65B0\u589E${eo}\u4E2A\uFF0C\u4E4B\u524D\u6709${sa}\u4E2A`),Zr(eo,sa)}}},Fn=()=>{const hn=Se.getFieldValue(["sub_item_banks",...mt]);Se.setFieldValue(["sub_item_banks",...mt],hn==null?void 0:hn.map((gn,Zr)=>Ga(dr({},gn),{position:Zr+1})))},qt=(0,b.useRef)(),Ot=(hn,gn)=>{for(let Zr=0;Zr{en.current(hn),Fn()},ua=($t=(dt=Se.getFieldValue("sub_item_banks"))==null?void 0:dt[mt==null?void 0:mt[0]])==null?void 0:$t[mt==null?void 0:mt[1]];return console.log(Se==null?void 0:Se.getFieldValue(["sub_item_banks",...rt])),Et.createElement("div",{className:ca.wrap},Et.createElement("div",{className:ca.questionTitleEditorWrap},Et.createElement(we.default.Item,{label:"\u9898\u5E72",name:Vn,labelCol:{span:24},rules:[{required:!0}]},Et.createElement(Ar,{scrollId:"name",watch:!0,height:140,placeholder:le,showNullButton:!0,onCMBeforeChange:(hn,gn)=>{ft(hn,gn,Ot,Zt)}}))),Et.createElement(we.default.List,{name:mt,rules:[{validator(hn,gn){if((gn==null?void 0:gn.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Zr of gn){const{answer_text:$r}=Zr||{};if($r!=null&&$r.some(er=>(er==null?void 0:er.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(hn,{add:gn,remove:Zr},{errors:$r})=>(qt.current=gn,en.current=Zr,Et.createElement(Et.Fragment,null,Et.createElement(we.default.Item,{label:Et.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(hn!=null&&hn.length)&&Et.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),hn.map((er,eo)=>{var sa=er,{key:to,name:Xr}=sa,Fo=wr(sa,["key","name"]);return Et.createElement(Aa.Z,{className:"mb20",key:to,align:"top"},Et.createElement(mr.Z,{flex:"0 0 auto",className:`${ca.blankIndex} pt5`},"\u586B\u7A7A\u9879",eo+1),Et.createElement(mr.Z,{flex:1},Et.createElement(Aa.Z,{align:"top",justify:"space-between"},Et.createElement(mr.Z,{flex:1},Et.createElement(we.default.Item,Ga(dr({},Fo),{name:[Xr,"answer_text"],noStyle:!0}),Et.createElement(Bo,null))),(Se==null?void 0:Se.getFieldValue(["sub_item_banks",...rt]))&&Et.createElement(mr.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},Et.createElement(we.default.Item,Ga(dr({},Fo),{name:[Xr,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ca.blankInputNumberWrapper}),Et.createElement(De.Z,{onChange:()=>{var kr,Lo;let wo=Se==null?void 0:Se.getFieldValue(["sub_item_banks",mt==null?void 0:mt[0],"standard_answers"]),gi=0;for(let kn in wo)(kr=wo[kn])!=null&&kr.score&&(gi+=Number((Lo=wo[kn])==null?void 0:Lo.score));Se==null||Se.setFieldValue(["sub_item_banks",mt==null?void 0:mt[0],"question_score"],gi)},className:ca.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Et.createElement(we.default.Item,Ga(dr({},Fo),{name:[Xr,"position"],noStyle:!0}),Et.createElement(We.default,{type:"hidden"}))))})))),Et.createElement(Aa.Z,{align:"middle"},Et.createElement(we.default.Item,{name:[Pe,"downcase"],valuePropName:"checked"},Et.createElement(_a.Z,null)),Et.createElement(mr.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Et.createElement(Aa.Z,{align:"middle"},Et.createElement(we.default.Item,{name:[Pe,"no_space"],valuePropName:"checked"},Et.createElement(_a.Z,null)),Et.createElement(mr.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(ua==null?void 0:ua.length)>1&&Et.createElement(Aa.Z,{align:"middle",className:(ua==null?void 0:ua.length)>1?"mb30":`${ca.hide}`},Et.createElement(we.default.Item,{name:Jt},Et.createElement(ri,null)),Et.createElement(mr.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Et.createElement("div",{onClick:()=>Ct(!0)},Et.createElement(we.default.Item,{name:pn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Et.createElement(Ur,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Bn}))))};var jo=Object.defineProperty,ia=Object.defineProperties,Dn=Object.getOwnPropertyDescriptors,Hn=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,Bt=(le,Se,Pe)=>Se in le?jo(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,ln=(le,Se)=>{for(var Pe in Se||(Se={}))me.call(Se,Pe)&&Bt(le,Pe,Se[Pe]);if(Hn)for(var Pe of Hn(Se))gt.call(Se,Pe)&&Bt(le,Pe,Se[Pe]);return le},pt=(le,Se)=>ia(le,Dn(Se)),Ln=(le,Se)=>{var Pe={};for(var rt in le)me.call(le,rt)&&Se.indexOf(rt)<0&&(Pe[rt]=le[rt]);if(le!=null&&Hn)for(var rt of Hn(le))Se.indexOf(rt)<0&>.call(le,rt)&&(Pe[rt]=le[rt]);return Pe};const An={\u6B63\u786E:"T",\u9519\u8BEF:"F"},mn=({value:le,onChange:Se,form:Pe,choiceKey:rt})=>{const mt=(le==null?void 0:le.is_answer)===1,Vn=le==null?void 0:le.choice_text,pn=()=>{var Jt;const dt=(Jt=Pe==null?void 0:Pe.getFieldValue(["sub_item_banks",...rt]))==null?void 0:Jt.map($t=>({choice_text:$t.choice_text,is_answer:0}));Pe==null||Pe.setFieldValue(["sub_item_banks",...rt],dt),Se(pt(ln({},le),{is_answer:1}))};return b.createElement(Aa.Z,{className:ca.choiceWrap,align:"middle",wrap:!1},b.createElement(mr.Z,{onClick:pn,className:`${ca.choiceIndex} ${ca.judgementIndex} ${mt?ca.activeAnswer:""}`},An[Vn]),b.createElement(mr.Z,{flex:1,className:`${ca.editorWrap} ml15`},b.createElement("div",{className:`${ca.inputBorder} ${ca.placeholder} ${mt?ca.activeJudgementAnswer:""}`},Vn)),b.createElement(mr.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:pn,className:`${ca.setAnswerBtn} ${mt?ca.activeAnswer:""}`},mt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},yn=({questionTitlePlaceholder:le,choiceKey:Se="choices",form:Pe,titleKey:rt="name",analysisKey:mt="analysis"})=>{const[Vn,pn]=(0,b.useState)(!1);return b.createElement("div",{className:ca.wrap},b.createElement("div",{className:ca.questionTitleEditorWrap},b.createElement(we.default.Item,{label:"\u9898\u5E72",name:rt,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Ar,{scrollId:"name",watch:!0,height:140,placeholder:le}))),b.createElement(we.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},b.createElement(we.default.List,{name:Se,rules:[{validator(Jt,dt){return dt.some(Bn=>(Bn==null?void 0:Bn.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Jt=>b.createElement("div",{id:"choices"},Jt.map(dt=>{var $t=dt,{key:Bn,name:Ct}=$t,yt=Ln($t,["key","name"]);return b.createElement(we.default.Item,pt(ln({},yt),{key:Bn,name:Ct,noStyle:!0}),b.createElement(mn,{form:Pe,choiceKey:Se}))})))),b.createElement("div",{onClick:()=>pn(!0)},b.createElement(we.default.Item,{name:mt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(Ur,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Vn}))))};var Oa=ae(12563),cr={ai_config:"ai_config___cJ8LY",znpy:"znpy___RTAAN",pfbz_ts:"pfbz_ts___ux6Ec",btns_pfbz:"btns_pfbz___QFXM_",lable_name1:"lable_name1___c_vnV",h_lh_40:"h_lh_40___ptAW7"},Fr=ae(50852),ma=ae(48722),va=ae(59301);const or=({qitem:le,form:Se,exercise:Pe,loading:rt,dispatch:mt,aiReviewSettings:Vn=null})=>va.createElement("div",{className:cr.ai_config},va.createElement("div",{style:{lineHeight:"32px",paddingBottom:8}},"\u8BC4\u5206\u6807\u51C6"),va.createElement("div",{className:cr.pfbz_ts},va.createElement("div",{style:{color:"#333"}},"\u63D0\u793A\uFF1A\u53C2\u8003\u7B54\u6848\u548C\u9898\u76EE\u89E3\u6790\u8D8A\u5B8C\u5584\uFF0CAI\u667A\u80FD\u8BC4\u9605\u5C31\u8D8A\u7CBE\u51C6~"),va.createElement("div",{className:"flex"},va.createElement("div",{className:cr.btns_pfbz,onClick:()=>{mt({type:"exercise/setActionTabs",payload:{key:"\u6D4B\u8BD5AI\u8BC4\u5206",questionId:le==null?void 0:le.question_id,ai_review_settings:Se.getFieldValue(Vn||"ai_review_settings")}})}},va.createElement("img",{src:Fr.Z}),"\u6D4B\u8BD5AI\u8BC4\u5206"))),va.createElement("div",{style:{background:"#F6F7F9"}},va.createElement(we.default.List,{name:Vn||"ai_review_settings"},(pn,{add:Jt,remove:dt})=>pn.map(($t,Bn)=>{var Ct;return va.createElement(Aa.Z,{key:$t.key,style:{padding:"5px 10px 5px 15px"}},va.createElement(mr.Z,{className:cr.lable_name1},"\u8BC4\u5206\u9879\u76EE"),va.createElement(mr.Z,null,va.createElement(we.default.Item,{className:"ml10",name:[$t.name,"name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u9879\u76EE"}]},va.createElement(We.default,{onChange:yt=>{Se.setFieldValue([$t.name,"content"],yt.target.value)},placeholder:"\u8BF7\u8F93\u5165\u6700\u591A10\u5B57\u7B26",size:"large",style:{width:142},maxLength:10,className:"mr15"}))),va.createElement(mr.Z,{className:cr.lable_name1},"\u8BC4\u5206\u6807\u51C6"),va.createElement(mr.Z,null,va.createElement(we.default.Item,{className:"ml10",name:[$t.name,"content"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6"}]},va.createElement(We.default,{onChange:yt=>{Se.setFieldValue([$t.name,"content"],yt.target.value)},placeholder:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6",size:"large",style:{width:Vn?232:318},className:"mr15",maxLength:500}))),va.createElement(mr.Z,{className:cr.lable_name1},"\u6743\u91CD"),va.createElement(mr.Z,null,va.createElement(we.default.Item,{className:"ml10",name:[$t.name,"weight"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6743\u91CD"},{pattern:/^(?!0(\.0+)?$)(\d+(\.\d)?)$/,message:"\u6700\u591A\u4FDD\u7559\u4E00\u4F4D\u5C0F\u6570"}]},va.createElement(De.Z,{value:Se.getFieldValue([$t.name,"weight"]),onChange:yt=>{Number.isInteger(yt)||Se.setFieldValue([$t.name,"weight"],parseFloat(yt).toFixed(2))},size:"large",addonAfter:"%",placeholder:"\u8BF7\u8F93\u5165\u6743\u91CD",min:.01,step:1,max:100,style:{width:"110px"}}))),va.createElement(Aa.Z,{className:(Ct=cr)==null?void 0:Ct.h_lh_40},va.createElement(mr.Z,null,va.createElement("i",{className:"iconfont icon-tianjiatimu ml10 current",style:{color:"#00B187"},onClick:()=>{if(pn.length>=10)return Be.ZP.info("\u6700\u591A\u53EA\u80FD\u6DFB\u52A010\u4E2A\u8BC4\u5206\u9879\u76EE");Jt()}})),Bn>0&&va.createElement(mr.Z,null,va.createElement("i",{className:"iconfont icon-shanjian1 ml10 current",style:{color:"#E30000"},onClick:()=>{dt($t.name)}}))))}))),va.createElement(ma.Z,null));var Er=(0,he.connect)(({exercise:le,loading:Se})=>({exercise:le,loading:Se.effects}))(or),Ko=Object.defineProperty,li=Object.defineProperties,Uo=Object.getOwnPropertyDescriptors,oi=Object.getOwnPropertySymbols,vi=Object.prototype.hasOwnProperty,Si=Object.prototype.propertyIsEnumerable,Fl=(le,Se,Pe)=>Se in le?Ko(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,nl=(le,Se)=>{for(var Pe in Se||(Se={}))vi.call(Se,Pe)&&Fl(le,Pe,Se[Pe]);if(oi)for(var Pe of oi(Se))Si.call(Se,Pe)&&Fl(le,Pe,Se[Pe]);return le},al=(le,Se)=>li(le,Uo(Se)),rl=(le,Se)=>{var Pe={};for(var rt in le)vi.call(le,rt)&&Se.indexOf(rt)<0&&(Pe[rt]=le[rt]);if(le!=null&&oi)for(var rt of oi(le))Se.indexOf(rt)<0&&Si.call(le,rt)&&(Pe[rt]=le[rt]);return Pe};const ru=le=>{var Se=le,{value:Pe,onChange:rt}=Se,mt=rl(Se,["value","onChange"]);const Vn=pn=>{rt([pn])};return b.createElement(nn.Z,al(nl({},mt),{defaultValue:Pe==null?void 0:Pe[0],onChange:Vn}))},sl=le=>{if(!le)return!1;let Se=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return le==="|"?(Be.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Rl=({value:le=[],onClose:Se})=>b.createElement(Oa.default,{closable:!0,onClose:Se,className:ca.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},le.join(" \u6216 "))),rs=({questionTitlePlaceholder:le,form:Se,showKeywords:Pe,isMustKeyWords:rt=Pe,titleKey:mt="name",analysisKey:Vn="analysis",answerTexts:pn="answer_texts",keywords:Jt="keywords",useKeywords:dt="use_keywords",indexs:$t,qitem:Bn,exerciseitem:Ct,aiReviewSettings:yt})=>{var ft,Fn,qt,Ot,en;const[Zt,ua]=(0,b.useState)(!1),[hn,gn]=(0,b.useState)(""),Zr=(Fn=(ft=Se.getFieldValue("sub_item_banks"))==null?void 0:ft[dt==null?void 0:dt[0]])==null?void 0:Fn[dt==null?void 0:dt[1]],$r=(Ot=(qt=Se.getFieldValue("sub_item_banks"))==null?void 0:qt[dt==null?void 0:dt[0]])==null?void 0:Ot.question_score;return b.createElement("div",{className:ca.wrap},b.createElement("div",{className:ca.questionTitleEditorWrap},b.createElement(we.default.Item,{label:"\u9898\u5E72",name:mt,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Ar,{scrollId:"name",watch:!0,height:140,placeholder:le}))),b.createElement(we.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:pn,labelCol:{span:24}},b.createElement(ru,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Pe&&!rt&&b.createElement(we.default.Item,{hidden:!0,name:dt,valuePropName:"checked"},b.createElement(_a.Z,{defaultChecked:!0})),Pe&&rt&&b.createElement(Aa.Z,{align:"middle",className:"mb30"},b.createElement(we.default.Item,{name:dt,valuePropName:"checked"},b.createElement(_a.Z,null)),b.createElement(mr.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(mr.Z,null,b.createElement(ot.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(Sn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Zr||!rt)&&b.createElement(we.default.List,{name:Jt,rules:[{validator(er,eo){return rt?eo!=null&&eo.length?(eo==null?void 0:eo.reduce((to,Xr)=>to+Xr.score,0))>parseFloat($r)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(er,{add:eo,remove:sa})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${ca.title} mb10`},rt?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(Aa.Z,{align:"middle",className:"font14 mb30"},b.createElement(mr.Z,{flex:1},b.createElement(We.default,{value:hn,onChange:to=>{gn(to.target.value)},maxLength:50,allowClear:!0,onPressEnter:to=>{var Xr,Fo,kr,Lo;const wo=`${(Xr=to.target)==null?void 0:Xr.value}`,gi=(kr=(Fo=wo==null?void 0:wo.split("|"))==null?void 0:Fo.filter(pi=>!!pi))==null?void 0:kr.map(pi=>pi==null?void 0:pi.trim()),kn=Se.getFieldValue(["sub_item_banks",...Jt]),Ai=((Lo=kn==null?void 0:kn.map(pi=>pi==null?void 0:pi.keyword))==null?void 0:Lo.flat())||[];for(const pi of gi)if(Ai.includes(pi)){Be.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}sl(wo)&&(eo({keyword:gi,score:1}),gn(""))},className:ca.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(mr.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),er.map(to=>{var Xr=to,{key:Fo,name:kr}=Xr,Lo=rl(Xr,["key","name"]);return b.createElement(Aa.Z,{key:Fo,className:"mb20",style:{marginRight:148}},b.createElement(mr.Z,{flex:1},b.createElement(Aa.Z,{align:"middle",justify:"space-between"},b.createElement(we.default.Item,al(nl({},Lo),{name:[kr,"keyword"]}),b.createElement(Rl,{onClose:()=>sa(kr)})),rt&&b.createElement(we.default.Item,al(nl({},Lo),{name:[kr,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ca.blankInputNumberWrapper}),b.createElement(De.Z,{className:ca.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>ua(!0)},b.createElement(we.default.Item,{name:Vn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(Ur,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Zt}))),((en=Ct==null?void 0:Ct.exercise)==null?void 0:en.is_open_ai_review)&&b.createElement(Er,{form:Se,qitem:Bn,aiReviewSettings:yt}))};var _r=ae(59301),bu=Object.defineProperty,Nu=Object.defineProperties,os=Object.getOwnPropertyDescriptors,ki=Object.getOwnPropertySymbols,Qu=Object.prototype.hasOwnProperty,Iu=Object.prototype.propertyIsEnumerable,Au=(le,Se,Pe)=>Se in le?bu(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,Ou=(le,Se)=>{for(var Pe in Se||(Se={}))Qu.call(Se,Pe)&&Au(le,Pe,Se[Pe]);if(ki)for(var Pe of ki(Se))Iu.call(Se,Pe)&&Au(le,Pe,Se[Pe]);return le},ou=(le,Se)=>Nu(le,os(Se)),Uu=(le,Se)=>{var Pe={};for(var rt in le)Qu.call(le,rt)&&Se.indexOf(rt)<0&&(Pe[rt]=le[rt]);if(le!=null&&ki)for(var rt of ki(le))Se.indexOf(rt)<0&&Iu.call(le,rt)&&(Pe[rt]=le[rt]);return Pe};const{Panel:Mu}=Mr.default,Ru=({questionTitlePlaceholder:le,choiceKey:Se,form:Pe,withScore:rt,exerciseitem:mt})=>{const Vn=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}],[pn,Jt]=(0,b.useState)(),[dt,$t]=(0,b.useState)([]),Bn=yt=>{$t(yt)},Ct=({value:yt})=>_r.createElement("div",{style:{width:150,paddingLeft:11}},yt);return _r.createElement("div",{className:ca.wrap},_r.createElement("div",{className:ca.questionTitleEditorWrap},_r.createElement(we.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},_r.createElement(Ar,{scrollId:"name",watch:!0,height:140,placeholder:le}))),_r.createElement(we.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),_r.createElement(we.default.List,{name:"sub_item_banks",rules:[{validator(yt,ft){return ft?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(yt,{add:ft,remove:Fn,move:qt})=>{const Ot=Pe.getFieldValue("sub_item_banks");return _r.createElement(_r.Fragment,null,_r.createElement(Mr.default,{className:yt.length>0?ca.collapseWrapper:"",bordered:!1,activeKey:dt,onChange:Bn,expandIcon:({isActive:en})=>_r.createElement("i",{className:`iconfont icon-weizhankai ${en?ca.open:ca.close}`,style:{fontSize:14,transition:"all .2s"}})},yt.map((en,Zt)=>{var ua=en,{key:hn,name:gn}=ua,Zr=Uu(ua,["key","name"]),$r,er,eo,sa,to,Xr,Fo,kr,Lo,wo,gi,kn,Ai,pi;return _r.createElement(Mu,{className:ca.panel,forceRender:!0,header:_r.createElement("div",{className:ca.panelHeader},"\u7B2C",Zt+1,"\u5C0F\u9898",_r.createElement("span",null,"\uFF08",(($r=Ot==null?void 0:Ot[gn])==null?void 0:$r.question_type)==0?"\u5355\u9009\u9898":((er=Ot==null?void 0:Ot[gn])==null?void 0:er.question_type)==1?"\u591A\u9009\u9898":((eo=Ot==null?void 0:Ot[gn])==null?void 0:eo.question_type)==3?"\u586B\u7A7A\u9898":((sa=Ot==null?void 0:Ot[gn])==null?void 0:sa.question_type)==2?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:gn,extra:_r.createElement(Aa.Z,{align:"middle",onClick:Ho=>Ho.stopPropagation()},((to=Ot==null?void 0:Ot[gn])==null?void 0:to.question_type)==3&&_r.createElement(_r.Fragment,null,_r.createElement(Oe.ZP.Group,{defaultValue:(Xr=Ot==null?void 0:Ot[gn])==null?void 0:Xr.use_blank_score,className:tt.scoreByBlankRadio,style:{marginRight:20},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:Ho=>{var zn,mi,Vi,Wi,ji;if(Pe==null||Pe.setFieldValue(["sub_item_banks",gn,"use_blank_score"],(zn=Ho==null?void 0:Ho.target)==null?void 0:zn.value),(mi=Ho==null?void 0:Ho.target)!=null&&mi.value){let Qi=0;for(let wi in(Vi=Pe==null?void 0:Pe.getFieldValue(["sub_item_banks",gn]))==null?void 0:Vi.standard_answers)Qi+=Number((ji=(Wi=Pe==null?void 0:Pe.getFieldValue(["sub_item_banks",gn]))==null?void 0:Wi.standard_answers[wi])==null?void 0:ji.score);Pe==null||Pe.setFieldValue(["sub_item_banks",gn,"question_score"],Qi||"")}Jt(new Date)}}),_r.createElement(ot.Z,{overlayInnerStyle:{width:460},title:_r.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",_r.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},_r.createElement("i",{className:"icon-tishixiaowenhao font18 mr25 c-3061d0"}))),rt&&_r.createElement(we.default.Item,ou(Ou({},Zr),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[gn,"question_score"],className:ca.blankInputNumberWrapper}),((Fo=Ot==null?void 0:Ot[gn])==null?void 0:Fo.question_type)==3&&((kr=Ot==null?void 0:Ot[gn])!=null&&kr.use_blank_score)?_r.createElement(Ct,null):_r.createElement(De.Z,{className:ca.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}})),_r.createElement(Aa.Z,{align:"middle",className:"pl40",style:{width:82}},Zt!==0&&_r.createElement("div",{onClick:()=>{var Ho;qt(Zt,Zt-1);const zn=(Ho=Pe.getFieldValue("sub_item_banks"))==null?void 0:Ho.map((mi,Vi)=>(yt.map((Wi,ji)=>{Vi===ji&&(mi.q_position=Number(Wi.name)+1)}),mi));Pe.setFieldValue("sub_item_banks",zn)}},_r.createElement(ot.Z,{title:"\u4E0A\u79FB"},_r.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),Zt{var Ho;qt(Zt,Zt+1);const zn=(Ho=Pe.getFieldValue("sub_item_banks"))==null?void 0:Ho.map((mi,Vi)=>(yt.map((Wi,ji)=>{Vi===ji&&(mi.q_position=Number(Wi.name)+1)}),mi));Pe.setFieldValue("sub_item_banks",zn)},className:Zt===0?"":"ml10"},_r.createElement(ot.Z,{title:"\u4E0B\u79FB"},_r.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"})))),_r.createElement(ot.Z,{title:"\u5220\u9664"},_r.createElement(se.Z,{className:`${ca.deleteIcon} ml40`,onClick:()=>Fn(gn)})))},_r.createElement(we.default.Item,ou(Ou({},Zr),{name:gn}),(((Lo=Ot==null?void 0:Ot[gn])==null?void 0:Lo.question_type)==0||((wo=Ot==null?void 0:Ot[gn])==null?void 0:wo.question_type)==1)&&_r.createElement(Ft,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((gi=Ot==null?void 0:Ot[gn])==null?void 0:gi.question_type)==1,form:Pe,choiceKey:[gn,"choices"],titleKey:[gn,"name"],analysisKey:[gn,"analysis"],choiceOptionsPath:["sub_item_banks",gn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((kn=Ot==null?void 0:Ot[gn])==null?void 0:kn.question_type)==3&&_r.createElement(So,{form:Pe,name:gn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:[gn,"use_blank_score"],titleKey:[gn,"name"],analysisKey:[gn,"analysis"],isOrdered:[gn,"is_ordered"],answerKey:[gn,"standard_answers"],key:pn}),((Ai=Ot==null?void 0:Ot[gn])==null?void 0:Ai.question_type)==2&&_r.createElement(yn,{form:Pe,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[gn,"name"],analysisKey:[gn,"analysis"],choiceKey:[gn,"choices"]}),((pi=Ot==null?void 0:Ot[gn])==null?void 0:pi.question_type)==4&&_r.createElement(rs,{showKeywords:!0,isMustKeyWords:!0,form:Pe,titleKey:[gn,"name"],analysisKey:[gn,"analysis"],answerTexts:[gn,"answer_texts"],useKeywords:[gn,"use_keywords"],keywords:[gn,"keywords"],aiReviewSettings:[gn,"ai_review_settings"],indexs:gn,qitem:Ot==null?void 0:Ot[gn],questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9",exerciseitem:mt})))})),yt.length<20&&_r.createElement(Ce.Z,{menu:{items:[{label:_r.createElement("div",{onClick:()=>{ft({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:0,item_type:"SINGLE"}),$t([yt==null?void 0:yt.length,...dt])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:_r.createElement("div",{onClick:()=>{ft({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:1,item_type:"MULTIPLE"}),$t([yt==null?void 0:yt.length,...dt])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:_r.createElement("div",{onClick:()=>{ft({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",question_type:2,item_type:"JUDGMENT"}),$t([yt==null?void 0:yt.length,...dt])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:_r.createElement("div",{onClick:()=>{ft({name:"",analysis:"",is_ordered:!0,standard_answers:[],question_type:3,item_type:"COMPLETION",use_blank_score:!0,downcase:!0,no_space:!0}),$t([yt==null?void 0:yt.length,...dt])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:_r.createElement("div",{onClick:()=>{ft({name:"",answer_texts:[],keywords:[],use_keywords:!1,analysis:"",question_type:4,item_type:"SUBJECTIVE"}),$t([yt==null?void 0:yt.length,...dt])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(en=>en.show).map(en=>({label:en.label,key:en.key}))}},_r.createElement("div",{className:`${ca.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var Ti=ae(59301),Yu=Object.defineProperty,Bu=Object.defineProperties,Di=Object.getOwnPropertyDescriptors,xu=Object.getOwnPropertySymbols,is=Object.prototype.hasOwnProperty,iu=Object.prototype.propertyIsEnumerable,_l=(le,Se,Pe)=>Se in le?Yu(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,Cl=(le,Se)=>{for(var Pe in Se||(Se={}))is.call(Se,Pe)&&_l(le,Pe,Se[Pe]);if(xu)for(var Pe of xu(Se))iu.call(Se,Pe)&&_l(le,Pe,Se[Pe]);return le},bl=(le,Se)=>Bu(le,Di(Se)),ls=(le,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch($t){mt($t)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch($t){mt($t)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(le,Se)).next())}),us=({qitem:le,setisedit:Se,TagDiscipline:Pe,exerciseitem:rt,seveeditor:mt,deleteitem:Vn,getTagData:pn,init:Jt,showTip:dt=!1})=>{var $t;const[Bn]=we.default.useForm(),{unified_ai_setting:Ct,ai_review_settings:yt}=rt==null?void 0:rt.exercise;(0,b.useEffect)(()=>{var Fn;Bn.setFieldsValue(bl(Cl({},le),{name:le.question_title,sub_item_banks:(Fn=le.sub_exercise_questions)==null?void 0:Fn.map(qt=>{var Ot,en;if(qt.question_type==4){const Zt=Ct?yt:((Ot=qt==null?void 0:qt.ai_review_settings)==null?void 0:Ot.length)>0?qt.ai_review_settings:yt;qt.ai_review_settings=Zt}return bl(Cl({},qt),{name:qt.question_title,choices:(en=qt==null?void 0:qt.question_choices)==null?void 0:en.map(Zt=>bl(Cl({},Zt),{is_answer:Zt!=null&&Zt.standard_boolean?1:0}))})}),repeat_answer:!le.repeat_answer}))},[le]);const ft=Fn=>{if(!(Fn!=null&&Fn.length))return!1;const qt=Fn.map(en=>{var Zt;return(Zt=en.choice_text)==null?void 0:Zt.trim().replace(/^\s+|\s+$/g,"")});return new Set(qt).size!==qt.length};return Ti.createElement("div",null,Ti.createElement(we.default,{form:Bn,colon:!1,onValuesChange:(Fn,qt)=>{var Ot,en,Zt,ua;if(Fn!=null&&Fn.sub_item_banks){let hn=((Ot=Bn.getFieldValue("sub_item_banks"))==null?void 0:Ot.length)>0&&((Zt=(en=Bn.getFieldValue("sub_item_banks"))==null?void 0:en.map(gn=>{var Zr;if(gn.question_type==3&&(gn!=null&&gn.use_blank_score)){let $r=0;for(let er in gn==null?void 0:gn.standard_answers)$r+=Number((Zr=gn==null?void 0:gn.standard_answers[er])==null?void 0:Zr.score);return $r}else return gn.question_score}))==null?void 0:Zt.filter(gn=>gn));(hn==null?void 0:hn.length)>0&&Bn.setFieldsValue({question_score:(ua=parseFloat(hn.reduce((gn,Zr)=>parseFloat(gn)+parseFloat(Zr))))==null?void 0:ua.toFixed(1)})}},onFinish:Fn=>{var qt,Ot;if((qt=Fn.sub_item_banks)==null?void 0:qt.some(Zt=>Zt.question_type===0||Zt.question_type===1?ft(Zt.choices):!1)){Be.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}mt(bl(Cl(Cl({},le),Fn),{question_title:Fn.name,sub_questions:(Ot=Fn==null?void 0:Fn.sub_item_banks)==null?void 0:Ot.map(Zt=>{var ua,hn,gn,Zr;return(Zt==null?void 0:Zt.question_type)==3?bl(Cl({},Zt),{question_title:Zt.name,item_type:Zt==null?void 0:Zt.question_type}):bl(Cl({},Zt),{question_title:Zt.name,question_choices:(hn=(ua=Zt==null?void 0:Zt.choices)==null?void 0:ua.map)==null?void 0:hn.call(ua,$r=>$r.choice_text),standard_answers:(Zr=(gn=Zt==null?void 0:Zt.choices)==null?void 0:gn.map)==null?void 0:Zr.call(gn,($r,er)=>($r==null?void 0:$r.is_answer)===1&&er+1).filter($r=>$r),item_type:Zt==null?void 0:Zt.question_type})})}))},onFinishFailed:Fn=>ls(void 0,null,function*(){var qt,Ot;Be.ZP.error(Fn.errorFields[0].errors[0]),Bn.scrollToField((Ot=(qt=Fn==null?void 0:Fn.errorFields)==null?void 0:qt[0])==null?void 0:Ot.name,{behavior:"smooth",block:"center"})})},Ti.createElement("div",{style:{display:"flex",alignItems:"center"}},Ti.createElement("div",{style:{flex:1}},Ti.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Ti.createElement("span",null,"\u7EC4\u5408\u9898")),(($t=rt==null?void 0:rt.exercise)==null?void 0:$t.exercise_status)==1&&!(le!=null&&le.isadd)&&Ti.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Vn()}},Ti.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Ti.createElement(ke.ZP,{onClick:()=>{var Fn;le.isadd?(Se(!1),Jt()):(Bn.setFieldsValue(bl(Cl({},le),{name:le.question_title,sub_item_banks:(Fn=le.sub_exercise_questions)==null?void 0:Fn.map(qt=>{var Ot;return bl(Cl({},qt),{name:qt.question_title,choices:(Ot=qt==null?void 0:qt.question_choices)==null?void 0:Ot.map(en=>bl(Cl({},en),{is_answer:en!=null&&en.standard_boolean?1:0}))})}),repeat_answer:!le.repeat_answer})),Se(!1))}},"\u53D6\u6D88"),Ti.createElement(ot.Z,{overlayClassName:tt.shake,open:dt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Ti.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Ti.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Ti.createElement(ke.ZP,{className:"ml20",type:"primary",onClick:()=>{Bn.submit()}},"\u4FDD\u5B58"))),Ti.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Ti.createElement(fn.Z,{text:"\uFF08\u7EC4\u5408\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5C0F\u9898\u5206\u503C\u4E4B\u548C\uFF09"}),Ti.createElement(Ru,{form:Bn,withScore:!0,choiceKey:"",exerciseitem:rt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7EC4\u5408\u9898\u9898\u5E72\u5185\u5BB9"}),Ti.createElement(Ca,{getTagData:pn,qitem:le,exerciseitem:rt,TagDiscipline:Pe,form:Bn}))))},_o=ae(59301),ss=Object.defineProperty,ds=Object.defineProperties,cs=Object.getOwnPropertyDescriptors,Ku=Object.getOwnPropertySymbols,Tu=Object.prototype.hasOwnProperty,ju=Object.prototype.propertyIsEnumerable,_u=(le,Se,Pe)=>Se in le?ss(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,qi=(le,Se)=>{for(var Pe in Se||(Se={}))Tu.call(Se,Pe)&&_u(le,Pe,Se[Pe]);if(Ku)for(var Pe of Ku(Se))ju.call(Se,Pe)&&_u(le,Pe,Se[Pe]);return le},dl=(le,Se)=>ds(le,cs(Se)),yu=(le,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch($t){mt($t)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch($t){mt($t)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(le,Se)).next())}),Xu=({qitem:le,setqitem:Se,setisedit:Pe,TagDiscipline:rt,exerciseitem:mt,seveeditor:Vn,deleteitem:pn,showTip:Jt})=>{var dt,$t;const[Bn]=we.default.useForm();return(0,b.useEffect)(()=>{var Ct,yt;Bn.setFieldsValue(dl(qi({},le),{name:le==null?void 0:le.question_title,choices:(Ct=le==null?void 0:le.question_choices)==null?void 0:Ct.map(ft=>dl(qi({},ft),{standard_boolean:ft!=null&&ft.standard_boolean?1:0})),repeat_answer:!(le!=null&&le.repeat_answer)})),le.shixun=(yt=le==null?void 0:le.shixun)==null?void 0:yt.map(ft=>dl(qi({},ft),{defaultscore:ft.challenge_score}))},[]),_o.createElement("div",null,_o.createElement(we.default,{form:Bn,colon:!1,onFinish:Ct=>{var yt,ft;let Fn=dl(qi({},Ct),{question_scores:(yt=le==null?void 0:le.shixun)==null?void 0:yt.map(qt=>qt.challenge_score),item_type:le==null?void 0:le.question_type,choices:(ft=Ct==null?void 0:Ct.choices)==null?void 0:ft.map(qt=>dl(qi({},qt),{is_answer:qt.standard_boolean}))});Vn(qi(qi({},le),Fn))},onFinishFailed:Ct=>yu(void 0,null,function*(){var yt,ft;Be.ZP.error(Ct.errorFields[0].errors[0]),Bn.scrollToField((ft=(yt=Ct==null?void 0:Ct.errorFields)==null?void 0:yt[0])==null?void 0:ft.name,{behavior:"smooth",block:"center"})})},_o.createElement("div",{style:{display:"flex",alignItems:"center"}},_o.createElement("div",{style:{flex:1}},_o.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),_o.createElement("span",null,"\u5B9E\u8BAD\u9898")),((dt=mt==null?void 0:mt.exercise)==null?void 0:dt.exercise_status)==1&&!(le!=null&&le.isadd)&&_o.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{pn()}},_o.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),_o.createElement(ke.ZP,{onClick:()=>{var Ct,yt;Bn.setFieldsValue(dl(qi({},le),{name:le==null?void 0:le.question_title,choices:(Ct=le==null?void 0:le.question_choices)==null?void 0:Ct.map(ft=>dl(qi({},ft),{standard_boolean:ft!=null&&ft.standard_boolean?1:0})),repeat_answer:!(le!=null&&le.repeat_answer)})),le.shixun=(yt=le==null?void 0:le.shixun)==null?void 0:yt.map(ft=>dl(qi({},ft),{challenge_score:ft.defaultscore})),Se(qi({},le)),Pe(!1)}},"\u53D6\u6D88"),_o.createElement(ot.Z,{overlayClassName:tt.shake,open:Jt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:_o.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},_o.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},_o.createElement(ke.ZP,{className:"ml20",type:"primary",onClick:()=>yu(void 0,null,function*(){var Ct,yt,ft,Fn;if(((yt=(Ct=le==null?void 0:le.shixun)==null?void 0:Ct.map)==null?void 0:yt.call(Ct,en=>en.challenge_score).filter(en=>en).length)<((ft=le==null?void 0:le.shixun)==null?void 0:ft.length)){Be.ZP.info("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A");return}const qt=parseFloat(Bn.getFieldValue("question_score")),Ot=parseFloat((Fn=le==null?void 0:le.shixun)==null?void 0:Fn.map(en=>en.challenge_score).reduce((en,Zt)=>parseFloat(en||0)+parseFloat(Zt||0)));if((le==null?void 0:le.shixun_mode)===2&&qt!==Ot){Be.ZP.info("\u8003\u70B9\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BD5\u9898\u5206\u503C");return}Bn.submit()})},"\u4FDD\u5B58"))),_o.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},(le==null?void 0:le.shixun_mode)===0?_o.createElement(fn.Z,{text:"\uFF08\u5B9E\u8BAD\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5173\u5361\u5206\u503C\u4E4B\u548C\uFF09"}):_o.createElement(we.default.Item,{className:tt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},_o.createElement(De.Z,{onChange:Ct=>{var yt;(le==null?void 0:le.shixun_mode)===1&&((yt=le==null?void 0:le.shixun)==null?void 0:yt.length)===1&&(le.shixun[0].challenge_score=Ct,Se(qi({},le)))},onBlur:Ct=>{const yt=Number(Ct.target.value);yt<1&&Be.ZP.error("\u5206\u6570\u4E0D\u80FD\u5C0F\u4E8E1"),yt>200&&Be.ZP.error("\u5206\u6570\u4E0D\u80FD\u5927\u4E8E200")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:200,min:1})),_o.createElement(we.default.Item,{label:"\u9898\u5E72",name:"question_title",labelCol:{span:24},rules:[{required:!0}]},_o.createElement(nn.Z,{watch:!0,height:140,placeholder:"",defaultValue:le.question_title})),_o.createElement(Aa.Z,{style:{marginBottom:15},align:"middle",justify:"space-between"},_o.createElement("div",null,_o.createElement("span",{style:{color:"red"}},"*"),(le==null?void 0:le.shixun_mode)===2?"\u8003\u70B9":"\u5173\u5361","\u540D\u79F0"),_o.createElement("a",{href:`/shixuns/${le==null?void 0:le.shixun_identifier}/challenges?exercise=true`,target:"_blank"},_o.createElement("i",{onClick:()=>{},className:"iconfont icon-shixunkecheng font14 mr5"}),"\u5B9E\u8BAD\u8BE6\u60C5")),($t=le==null?void 0:le.shixun)==null?void 0:$t.map((Ct,yt)=>_o.createElement("div",{style:{display:"flex",marginBottom:20}},_o.createElement("div",{style:{flex:1}},yt+1,"\u3001",Ct.challenge_name),_o.createElement("div",null,_o.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C",_o.createElement(De.Z,{precision:1,value:Ct==null?void 0:Ct.challenge_score,onChange:ft=>{const Fn=JSON.parse(JSON.stringify((le==null?void 0:le.shixun)||[]));Fn[yt].challenge_score=ft;const qt=Fn.every(en=>!en.challenge_score),Ot=parseFloat(Fn==null?void 0:Fn.map(en=>en.challenge_score).reduce((en,Zt)=>parseFloat(en||0)+parseFloat(Zt||0)));(le==null?void 0:le.shixun_mode)!==2&&Bn.setFieldsValue({question_score:qt?"":Ot.toFixed(1)}),Se(dl(qi({},le),{shixun:Fn}))},max:200,min:1,style:{marginLeft:10,width:150},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle"})))))))},Ia={flex_box_center:"flex_box_center___Vhtb1",flex_space_between:"flex_space_between___k2ZrJ",flex_box_vertical_center:"flex_box_vertical_center___tn6Db",flex_box_center_end:"flex_box_center_end___k3eNX",flex_box_column:"flex_box_column___rsWbi",warp:"warp___UlRJc",indexTag:"indexTag___rjJ1u",normalWrap:"normalWrap___Qm4zY",redio:"redio___VW3yr",redioitem:"redioitem___jAPlJ",redioitemyes:"redioitemyes___VoiQ1",title:"title___Dt2dl",titleyes:"titleyes___Fjh3a",yestag:"yestag___CXrPv",checkbox:"checkbox___CgMU_",checkboxitem:"checkboxitem___PpJ9n",checkboxitemyes:"checkboxitemyes___pCfvZ",bottom:"bottom___BqrmJ",bottomitem:"bottomitem___Qk2rG",left:"left___l29lW",right:"right___nB1XE",completion:"completion___y1m7L",content:"content___AmQy4",items:"items___lIt8e",simple:"simple___zxJLH",shixunWrapper:"shixunWrapper___kAYdL",shixun:"shixun___UE6xS",score:"score___Px5Fq",qtitle:"qtitle___wG7Nn",program:"program___gzKdL",combination:"combination___R0ysn",qtype:"qtype___U0Suy",divname:"divname___guDo9"},gs=ae(1710),Zu=ae(78926),Fu=ae(24334),qn=ae(59301);const Jl=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],ms=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}];var fs=({qitem:le,exercise:Se})=>{var Pe,rt,mt,Vn,pn,Jt,dt,$t,Bn,Ct,yt,ft,Fn,qt,Ot,en,Zt,ua,hn,gn,Zr,$r,er,eo;return qn.createElement("div",{className:Ia.warp},((le==null?void 0:le.question_type)===0||(le==null?void 0:le.question_type)===2)&&qn.createElement("div",{className:Ia.normalWrap},(Pe=le==null?void 0:le.question_choices)==null?void 0:Pe.map((sa,to)=>qn.createElement("div",{className:Ia.redio},!(sa!=null&&sa.standard_boolean)&&qn.createElement("span",{className:Ia.redioitem}),(sa==null?void 0:sa.standard_boolean)&&qn.createElement("i",{className:`${Ia.redioitemyes} icon-duigou1`}),qn.createElement("span",{className:`${sa!=null&&sa.standard_boolean?Ia.titleyes:Ia.title} ${Ia.indexTag}`},(le==null?void 0:le.question_type)===0?Jl[to]:""),qn.createElement(kt.Z,{className:sa!=null&&sa.standard_boolean?Ia.titleyes:Ia.title,value:sa==null?void 0:sa.choice_text}),(sa==null?void 0:sa.standard_boolean)&&qn.createElement("div",{className:Ia.yestag},"\u6B63\u786E\u7B54\u6848")))),(le==null?void 0:le.question_type)===1&&qn.createElement("div",{className:Ia.normalWrap},(rt=le==null?void 0:le.question_choices)==null?void 0:rt.map((sa,to)=>qn.createElement("div",{className:Ia.checkbox},!(sa!=null&&sa.standard_boolean)&&qn.createElement("span",{className:Ia.checkboxitem}),(sa==null?void 0:sa.standard_boolean)&&qn.createElement("i",{className:`${Ia.checkboxitemyes} icon-duigou1`}),qn.createElement("span",{className:`${sa!=null&&sa.standard_boolean?Ia.titleyes:Ia.title} ${Ia.indexTag}`},Jl[to]),qn.createElement(kt.Z,{className:sa!=null&&sa.standard_boolean?Ia.titleyes:Ia.title,value:sa==null?void 0:sa.choice_text}),(sa==null?void 0:sa.standard_boolean)&&qn.createElement("div",{className:Ia.yestag},"\u6B63\u786E\u7B54\u6848")))),(le==null?void 0:le.question_type)===3&&qn.createElement("div",{className:Ia.completion},(mt=le==null?void 0:le.standard_answers)==null?void 0:mt.map((sa,to)=>{var Xr;return qn.createElement(Aa.Z,{align:"top"},qn.createElement("span",{className:Ia.title},"\u586B\u7A7A\u9879",to+1),qn.createElement("div",{className:Ia.content},(Xr=sa.answer_text)==null?void 0:Xr.map((Fo,kr)=>qn.createElement("div",{key:kr,className:Ia.items,style:(sa==null?void 0:sa.model)===2?{border:0,padding:0}:{}},(sa==null?void 0:sa.model)===1?qn.createElement("pre",{className:"mb0"},Fo):qn.createElement(Zu.Z,{value:Fo,disabled:!0})))))})),(le==null?void 0:le.question_type)===4&&qn.createElement("div",{className:Ia.simple},qn.createElement("div",{className:Ia.title},"\u53C2\u8003\u7B54\u6848"),qn.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Vn=le==null?void 0:le.answer_texts)!=null&&Vn[0]?qn.createElement(kt.Z,{className:Ia.content,value:(pn=le==null?void 0:le.answer_texts)==null?void 0:pn[0]}):qn.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),qn.createElement("div",{className:"mt20 "},qn.createElement("span",{className:Ia.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),qn.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},le!=null&&le.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))),(le==null?void 0:le.question_type)===5&&qn.createElement("div",{className:Ia.shixunWrapper},(Jt=le==null?void 0:le.shixun)==null?void 0:Jt.map((sa,to)=>{var Xr,Fo;return qn.createElement("div",null,qn.createElement("div",{key:to,className:`${Ia.shixun} mb30`},qn.createElement("span",{className:Ia.score},"\uFF08",sa==null?void 0:sa.challenge_score,"\u5206\uFF09"),qn.createElement("span",{className:Ia.qtitle},(le==null?void 0:le.index)+"."+(to+1),"\u3001",sa==null?void 0:sa.challenge_name)),((Fo=(Xr=Se==null?void 0:Se.editData)==null?void 0:Xr.exercise)==null?void 0:Fo.show_challenge_task_pass)&&qn.createElement(kt.Z,{className:Ia.content,value:(sa==null?void 0:sa.task_pass)||"\u6682\u65E0\u5173\u5361\u63CF\u8FF0"}))})),(le==null?void 0:le.question_type)===6&&qn.createElement("div",{className:Ia.program,style:{border:!(($t=(dt=Se==null?void 0:Se.editData)==null?void 0:dt.exercise)!=null&&$t.show_hack_sets)&&!((Ct=(Bn=Se==null?void 0:Se.editData)==null?void 0:Bn.exercise)!=null&&Ct.show_hack_description)&&"none"}},((ft=(yt=Se==null?void 0:Se.editData)==null?void 0:yt.exercise)==null?void 0:ft.show_hack_sets)&&qn.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},qn.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},qn.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),qn.createElement(gs.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(sa,to,Xr)=>Xr+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(sa,to,Xr)=>qn.createElement(ot.Z,{title:qn.createElement("pre",null,sa)},qn.createElement("div",{className:Ia.divname},sa))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(sa,to,Xr)=>qn.createElement(ot.Z,{title:qn.createElement("pre",null,sa)}," ",qn.createElement("div",{className:Ia.divname},sa))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:le==null?void 0:le.hack_sets})),((qt=(Fn=Se==null?void 0:Se.editData)==null?void 0:Fn.exercise)==null?void 0:qt.show_hack_description)&&qn.createElement("div",null,qn.createElement(kt.Z,{className:Ia.content,value:(le==null?void 0:le.description)||"- -"}))),(le==null?void 0:le.question_type)===7&&((Ot=le==null?void 0:le.sub_exercise_questions)==null?void 0:Ot.map((sa,to)=>{var Xr,Fo,kr,Lo,wo,gi;return qn.createElement("div",{key:to},qn.createElement("div",{className:Ia.combination},qn.createElement("span",{className:Ia.score},sa==null?void 0:sa.question_score,"\u5206"),qn.createElement("span",{className:Ia.qtype},(Xr=ms.find(kn=>kn.type==sa.question_type))==null?void 0:Xr.name),qn.createElement("span",{className:Ia.qtitle},to+1,"\u3001",sa==null?void 0:sa.question_title)),(sa.question_type===0||sa.question_type===2)&&qn.createElement("div",{className:Ia.warp,style:{padding:"30px 58px",paddingBottom:0}},qn.createElement("div",null,(Fo=sa==null?void 0:sa.question_choices)==null?void 0:Fo.map((kn,Ai)=>qn.createElement("div",{className:Ia.redio,key:Ai},!(kn!=null&&kn.standard_boolean)&&qn.createElement("span",{className:Ia.redioitem}),(kn==null?void 0:kn.standard_boolean)&&qn.createElement("i",{className:`${Ia.redioitemyes} icon-duigou1`}),sa.question_type===2&&qn.createElement("span",{className:`${kn!=null&&kn.standard_boolean?Ia.titleyes:Ia.title} ${Ia.indexTag}`},Jl[Ai]),qn.createElement(kt.Z,{className:kn!=null&&kn.standard_boolean?Ia.titleyes:Ia.title,value:kn==null?void 0:kn.choice_text}),(kn==null?void 0:kn.standard_boolean)&&qn.createElement("div",{className:Ia.yestag},"\u6B63\u786E\u7B54\u6848"))))),sa.question_type===1&&qn.createElement("div",{className:Ia.normalWrap},(kr=sa==null?void 0:sa.question_choices)==null?void 0:kr.map((kn,Ai)=>qn.createElement("div",{className:Ia.checkbox,key:Ai},!(kn!=null&&kn.standard_boolean)&&qn.createElement("span",{className:Ia.checkboxitem}),(kn==null?void 0:kn.standard_boolean)&&qn.createElement("i",{className:`${Ia.checkboxitemyes} icon-duigou1`}),qn.createElement("span",{className:`${kn!=null&&kn.standard_boolean?Ia.titleyes:Ia.title} ${Ia.indexTag}`},Jl[Ai]),qn.createElement(kt.Z,{className:kn!=null&&kn.standard_boolean?Ia.titleyes:Ia.title,value:kn==null?void 0:kn.choice_text}),(kn==null?void 0:kn.standard_boolean)&&qn.createElement("div",{className:Ia.yestag},"\u6B63\u786E\u7B54\u6848")))),sa.question_type===3&&qn.createElement("div",{className:Ia.completion},(Lo=sa==null?void 0:sa.standard_answers)==null?void 0:Lo.map((kn,Ai)=>{var pi;return qn.createElement(Aa.Z,{align:"top"},qn.createElement("span",{className:Ia.title},"\u586B\u7A7A\u9879",Ai+1),qn.createElement("div",{className:Ia.content},(pi=kn.answer_text)==null?void 0:pi.map((Ho,zn)=>qn.createElement("div",{key:zn,className:Ia.items},qn.createElement("pre",{className:"mb0"},Ho)))))})),sa.question_type===4&&qn.createElement("div",{className:Ia.simple},qn.createElement("div",{className:Ia.title},"\u53C2\u8003\u7B54\u6848"),qn.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(wo=sa==null?void 0:sa.answer_texts)!=null&&wo[0]?qn.createElement(kt.Z,{className:Ia.content,value:(gi=sa==null?void 0:sa.answer_texts)==null?void 0:gi[0]}):qn.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),qn.createElement("div",{className:"mt20 "},qn.createElement("span",{className:Ia.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),qn.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},sa!=null&&sa.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))))})),(le==null?void 0:le.question_type)===8&&qn.createElement("div",null,qn.createElement(kt.Z,{disabledFill:!0,className:Ia.content,showProgramFill:!0,value:Fu.Base64.decode(((en=le==null?void 0:le.program_attr)==null?void 0:en.code)||"")})),((le==null?void 0:le.question_type)<=4||[6,8].includes(le==null?void 0:le.question_type))&&qn.createElement("div",{className:Ia.bottom},qn.createElement("div",{className:`${Ia.bottomitem} mb30`},qn.createElement("span",{className:Ia.left},"\u89E3\u6790"),qn.createElement("span",{className:Ia.right},le!=null&&le.analysis?qn.createElement(kt.Z,{value:le==null?void 0:le.analysis}):qn.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),qn.createElement("div",{className:`${Ia.bottomitem} mb30`},qn.createElement("span",{className:Ia.left},"\u96BE\u5EA6"),qn.createElement("span",{className:Ia.right},(le==null?void 0:le.difficulty)===1?"\u7B80\u5355":(le==null?void 0:le.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),qn.createElement("div",{className:Ia.bottomitem},qn.createElement("span",{className:Ia.left},"\u77E5\u8BC6\u70B9"),qn.createElement(ot.Z,{title:((Zt=le==null?void 0:le.tag_discipline_names)==null?void 0:Zt.length)<=0||((ua=le==null?void 0:le.tag_discipline_names)==null?void 0:ua.length)==1&&["-"].includes(le==null?void 0:le.tag_discipline_names[0])?"\u6682\u672A\u8BBE\u7F6E~":(gn=(hn=le==null?void 0:le.tag_discipline_names)==null?void 0:hn.join("\uFF1B"))==null?void 0:gn.toString()},qn.createElement("span",{className:Ia.right},((Zr=le==null?void 0:le.tag_discipline_names)==null?void 0:Zr.length)<=0?qn.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):(($r=le==null?void 0:le.tag_discipline_names)==null?void 0:$r.length)==1&&["-"].includes(le==null?void 0:le.tag_discipline_names[0])?qn.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):(eo=(er=le==null?void 0:le.tag_discipline_names)==null?void 0:er.join("\uFF1B"))==null?void 0:eo.toString())))))},qu=ae(13778),Xl=ae(2078),Pi=ae(59301),Gu=Object.defineProperty,$u=Object.defineProperties,vs=Object.getOwnPropertyDescriptors,ce=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,Ne=(le,Se,Pe)=>Se in le?Gu(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,Ie=(le,Se)=>{for(var Pe in Se||(Se={}))ge.call(Se,Pe)&&Ne(le,Pe,Se[Pe]);if(ce)for(var Pe of ce(Se))fe.call(Se,Pe)&&Ne(le,Pe,Se[Pe]);return le},ut=(le,Se)=>$u(le,vs(Se)),at=(le,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch($t){mt($t)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch($t){mt($t)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(le,Se)).next())}),Dt=({qitem:le,setisedit:Se,TagDiscipline:Pe,exerciseitem:rt,seveeditor:mt,deleteitem:Vn,getTagData:pn,init:Jt,showTip:dt=!1})=>{var $t,Bn,Ct,yt;const[ft]=we.default.useForm(),{unified_ai_setting:Fn,ai_review_settings:qt}=rt==null?void 0:rt.exercise,Ot=Fn?qt:(($t=le==null?void 0:le.ai_review_settings)==null?void 0:$t.length)>0?le.ai_review_settings:qt;return(0,b.useEffect)(()=>{ft.setFieldsValue(ut(Ie({},le),{name:le.question_title,answer_texts:le.answer_texts,repeat_answer:!le.repeat_answer,ai_review_settings:Ot}))},[le]),Pi.createElement("div",null,Pi.createElement(we.default,{form:ft,colon:!1,onFinish:en=>{var Zt;(Zt=rt==null?void 0:rt.exercise)!=null&&Zt.is_open_ai_review&&!(0,ht.BR)(en==null?void 0:en.ai_review_settings)||mt(ut(Ie(Ie({},le),en),{answer_texts:en==null?void 0:en.answer_texts,question_title:en==null?void 0:en.name}))},onFinishFailed:en=>at(void 0,null,function*(){var Zt,ua;Be.ZP.error(en.errorFields[0].errors[0]),ft.scrollToField((ua=(Zt=en==null?void 0:en.errorFields)==null?void 0:Zt[0])==null?void 0:ua.name,{behavior:"smooth",block:"center"})})},Pi.createElement("div",{style:{display:"flex",alignItems:"center"}},Pi.createElement("div",{style:{flex:1}},Pi.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Pi.createElement("span",null,"\u7B80\u7B54\u9898")),((Bn=rt==null?void 0:rt.exercise)==null?void 0:Bn.exercise_status)==1&&!(le!=null&&le.isadd)&&Pi.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Vn()}},Pi.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Pi.createElement(ke.ZP,{onClick:()=>{le.isadd?(Se(!1),Jt()):(ft.setFieldsValue(ut(Ie({},le),{name:le==null?void 0:le.question_title,answer_texts:le.answer_texts||[],repeat_answer:!(le!=null&&le.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),Pi.createElement(ot.Z,{overlayClassName:tt.shake,open:dt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Pi.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Pi.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Pi.createElement(ke.ZP,{type:"primary",className:"ml20",onClick:()=>{ft.submit()}},"\u4FDD\u5B58"))),Pi.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Pi.createElement(we.default.Item,{className:tt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Pi.createElement(De.Z,{onBlur:en=>{en.target.value==="0"&&Be.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),Pi.createElement(Xl.W,{form:ft,showKeywords:!0,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"}),((Ct=rt==null?void 0:rt.exercise)==null?void 0:Ct.is_open_ai_review)&&!((yt=rt==null?void 0:rt.exercise)!=null&&yt.unified_ai_setting)&&Pi.createElement(Er,{form:ft,qitem:le}),Pi.createElement(Ca,{getTagData:pn,qitem:le,exerciseitem:rt,TagDiscipline:Pe,form:ft}))))},It=ae(59301),Yn=(le,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch($t){mt($t)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch($t){mt($t)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(le,Se)).next())}),cn=({setScoreShow:le,ScoreShow:Se,exerciseitem:Pe,getdata:rt})=>{var mt,Vn,pn;const[Jt,dt]=(0,b.useState)(!1);function $t(){return Yn(this,null,function*(){var Bn,Ct,yt;let ft=(Ct=(Bn=Pe==null?void 0:Pe.exercise_question_types)==null?void 0:Bn.filter(qt=>qt.Singlequestion))==null?void 0:Ct.map(qt=>({question_type:qt.question_type,score:qt.Singlequestion})),Fn=yield(0,te.ZP)(`/api/exercises/${(yt=Pe==null?void 0:Pe.exercise)==null?void 0:yt.id}/batch_set_score.json`,{method:"POST",body:{question_arr:ft}});(Fn==null?void 0:Fn.status)===0&&rt()})}return It.createElement("div",null,Se&&It.createElement(Ue.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:Se,width:640,centered:!0,zIndex:10,className:tt.scoremodal,onCancel:()=>{le(!1)},onOk:()=>{var Bn,Ct,yt;if(Pe!=null&&Pe.use_blank_score&&((yt=(Ct=(Bn=Pe==null?void 0:Pe.exercise_question_types)==null?void 0:Bn.filter(ft=>ft.name==="\u586B\u7A7A\u9898"))==null?void 0:Ct[0])!=null&&yt.Singlequestion)){dt(!0);return}$t(),le(!1)}},It.createElement("div",{className:"c-black"},"\u603B\u5206",It.createElement("span",{className:"ml10 c-light-primary"},(Pe==null?void 0:Pe.exercise_question_types.length)>0&&((mt=Pe==null?void 0:Pe.exercise_types)==null?void 0:mt.q_scores))),It.createElement("div",{className:tt.content},It.createElement("span",null,"\u9898\u578B\u540D\u79F0"),It.createElement("span",null,"\u5C0F\u9898\u603B\u6570"),It.createElement("span",null,"\u9898\u578B\u603B\u5206"),It.createElement("span",null,"\u64CD\u4F5C")),(pn=(Vn=Pe==null?void 0:Pe.exercise_question_types)==null?void 0:Vn.filter(Bn=>Bn.name!=="\u5B9E\u8BAD\u9898"&&Bn.name!=="\u7EC4\u5408\u9898"))==null?void 0:pn.map(Bn=>{var Ct;return It.createElement("div",{className:tt.items},It.createElement("span",null,Bn==null?void 0:Bn.name),It.createElement("span",null,(Ct=Bn==null?void 0:Bn.items)==null?void 0:Ct.length),It.createElement("span",null,Bn==null?void 0:Bn.score),It.createElement("span",null,"\u6BCF\u9898",It.createElement(De.Z,{max:100,precision:1,min:.1,onChange:yt=>{Bn.Singlequestion=yt},style:{width:90,height:38,margin:"0px 10px",display:"flex",alignItems:"center"}}),"\u5206"))})),It.createElement(Ue.default,{title:!1,footer:!1,centered:!0,zIndex:20,open:Jt,width:640,closable:!1,className:tt.scoremodal},It.createElement("div",{style:{marginTop:40}},"\u586B\u7A7A\u9898\u4E2D\u5B58\u5728",It.createElement("span",{style:{color:"#FA6400"}},"\u6309\u7A7A\u7ED9\u5206"),"\u7684\u5C0F\u9898\uFF0C\u82E5\u6279\u91CF\u8BBE\u7F6E\u5206\u503C\u4F1A\u7EDF\u4E00\u5C06\u586B\u7A7A\u9898\u6539\u4E3A\u6309\u9898\u7ED9\u5206"),It.createElement("div",{className:tt.bottom},It.createElement(ke.ZP,{className:tt.no,onClick:()=>{dt(!1)}},"\u53D6\u6D88"),It.createElement(ke.ZP,{className:tt.yes,onClick:()=>{$t(),dt(!1),le(!1)}},"\u786E\u8BA4"))))},In=ae(99313),On=ae(98228),wt=ae(58421),Vt={flex_box_center:"flex_box_center___aDsO9",flex_space_between:"flex_space_between___5V4Xk",flex_box_vertical_center:"flex_box_vertical_center___rNdEP",flex_box_center_end:"flex_box_center_end___cKjnr",flex_box_column:"flex_box_column___glFYD",scoremodal:"scoremodal___PfqOf",selectWrapper:"selectWrapper___Mtqcz",selectWrappers:"selectWrappers___uX2K9",allqingchu:"allqingchu___IqL8g",title:"title___UgYfD",score:"score___LjJmD",close:"close___I0jAO",content:"content___4u86F",items:"items___mK2L5",bottom:"bottom___vQTEm",yes:"yes___j81JQ",no:"no___kiUH4",titlecount:"titlecount___lliQr",add:"add___QhDj8",search:"search___QCCaL",searchIcon:"searchIcon___oXRH5",tabWrap:"tabWrap___Cu_4D",previewModal:"previewModal___BVDlS"},Rn=ae(70646),sn={flex_box_center:"flex_box_center___zojHa",flex_space_between:"flex_space_between___wmLZ4",flex_box_vertical_center:"flex_box_vertical_center___DszWW",flex_box_center_end:"flex_box_center_end___mVCv5",flex_box_column:"flex_box_column___fbC9t",warp:"warp___isAcM",shixunbutton:"shixunbutton___h3Ybb",redio:"redio___xDffb",redioitem:"redioitem___FFPtq",redioitemyes:"redioitemyes___pF7ID",title:"title___mnPZc",titleyes:"titleyes___wrtWQ",yestag:"yestag___D4krY",qcount:"qcount___W5pwO",score:"score___eKQzl",qtitle:"qtitle___lb8MD",checkbox:"checkbox___QpUm4",checkboxitem:"checkboxitem___Wm2SH",checkboxitemyes:"checkboxitemyes___VVVTe",bottom:"bottom___Mn_Bw",bottomitem:"bottomitem___JTyHT",left:"left___nQqpo",right:"right___v58qy",completion:"completion___BnZSp",content:"content___MU8hZ",items:"items___a7i54",simple:"simple___GDw3K",shixun:"shixun___DGzTe",combination:"combination___AG9cr"};const pa=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var Qa=({qitem:le})=>{var Se,Pe,rt,mt,Vn,pn,Jt,dt,$t,Bn;return b.createElement("div",{className:sn.warp},b.createElement("div",{className:sn.mainPart},b.createElement("div",{className:sn.qcount},(le==null?void 0:le.question_type)===8&&b.createElement(kt.Z,{className:sn.content,showProgramFill:!0,value:(Se=le==null?void 0:le.program_attr)==null?void 0:Se.description}),(le==null?void 0:le.question_type)!=8&&b.createElement(kt.Z,{className:sn.qtitle,value:(le==null?void 0:le.name)||(le==null?void 0:le.title)})),((le==null?void 0:le.question_type)===0||(le==null?void 0:le.question_type)===2)&&b.createElement("div",null,(Pe=le==null?void 0:le.choices)==null?void 0:Pe.map((Ct,yt)=>b.createElement("div",{className:sn.redio},!(Ct!=null&&Ct.is_answer)&&b.createElement("span",{className:sn.redioitem}),(Ct==null?void 0:Ct.is_answer)&&b.createElement("i",{className:`${sn.redioitemyes} icon-duigou1`}),b.createElement(kt.Z,{className:Ct!=null&&Ct.is_answer?sn.titleyes:sn.title,value:pa[yt]+(Ct==null?void 0:Ct.choice_text)}),(Ct==null?void 0:Ct.is_answer)&&b.createElement("div",{className:sn.yestag},"\u6B63\u786E\u7B54\u6848")))),(le==null?void 0:le.question_type)===1&&b.createElement("div",null,(rt=le==null?void 0:le.choices)==null?void 0:rt.map((Ct,yt)=>b.createElement("div",{className:sn.checkbox},!(Ct!=null&&Ct.is_answer)&&b.createElement("span",{className:sn.checkboxitem}),(Ct==null?void 0:Ct.is_answer)&&b.createElement("i",{className:`${sn.checkboxitemyes} icon-duigou1`}),b.createElement(kt.Z,{className:Ct!=null&&Ct.is_answer?sn.titleyes:sn.title,value:pa[yt]+(Ct==null?void 0:Ct.choice_text)}),(Ct==null?void 0:Ct.is_answer)&&b.createElement("div",{className:sn.yestag},"\u6B63\u786E\u7B54\u6848")))),(le==null?void 0:le.question_type)===3&&b.createElement("div",{className:sn.completion},(mt=le==null?void 0:le.standard_answer)==null?void 0:mt.map((Ct,yt)=>{var ft;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:sn.title},"\u586B\u7A7A\u9879",yt+1),b.createElement("div",{className:sn.content},(ft=Ct==null?void 0:Ct.answer_text)==null?void 0:ft.map((Fn,qt)=>b.createElement("div",{className:sn.items},Fn))))})),(le==null?void 0:le.question_type)===4&&b.createElement("div",{className:sn.simple},b.createElement("div",{className:sn.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Vn=le==null?void 0:le.answer_texts)!=null&&Vn[0]?b.createElement(kt.Z,{className:sn.content,value:(pn=le==null?void 0:le.answer_texts)==null?void 0:pn[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(le==null?void 0:le.question_type)===5&&((Jt=le==null?void 0:le.challenge_names)==null?void 0:Jt.map((Ct,yt)=>b.createElement("div",{className:sn.shixun},b.createElement("span",{className:sn.qtitle},b.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,ht.EM)(yt+1),"\u9898"),Ct)))),(le==null?void 0:le.question_type)===6&&b.createElement("div",{className:sn.simple},b.createElement(kt.Z,{className:sn.content,value:((dt=le==null?void 0:le.program_attr)==null?void 0:dt.description)||"- -"})),(le==null?void 0:le.question_type)===7&&(($t=le==null?void 0:le.sub_item_banks)==null?void 0:$t.map((Ct,yt)=>{var ft,Fn,qt,Ot,en;return b.createElement("div",null,b.createElement("div",{className:sn.combination},b.createElement("span",{className:sn.qtitle},Ct==null?void 0:Ct.name)),b.createElement("div",{className:sn.warp,style:{padding:"0px",paddingTop:20}},b.createElement("div",null,((Ct==null?void 0:Ct.item_type)=="SINGLE"||(Ct==null?void 0:Ct.item_type)=="JUDGMENT")&&((ft=Ct==null?void 0:Ct.choices)==null?void 0:ft.map((Zt,ua)=>b.createElement("div",{className:sn.redio},!(Zt!=null&&Zt.is_answer)&&b.createElement("span",{className:sn.redioitem}),(Zt==null?void 0:Zt.is_answer)&&b.createElement("i",{className:`${sn.redioitemyes} icon-duigou1`}),b.createElement(kt.Z,{className:Zt!=null&&Zt.is_answer?sn.titleyes:sn.title,value:pa[ua]+(Zt==null?void 0:Zt.choice_text)}),(Zt==null?void 0:Zt.is_answer)&&b.createElement("div",{className:sn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Ct==null?void 0:Ct.item_type)=="MULTIPLE"&&((Fn=Ct==null?void 0:Ct.choices)==null?void 0:Fn.map((Zt,ua)=>b.createElement("div",{className:sn.checkbox},!(Zt!=null&&Zt.is_answer)&&b.createElement("span",{className:sn.checkboxitem}),(Zt==null?void 0:Zt.is_answer)&&b.createElement("i",{className:`${sn.checkboxitemyes} icon-duigou1`}),b.createElement(kt.Z,{className:Zt!=null&&Zt.is_answer?sn.titleyes:sn.title,value:pa[ua]+(Zt==null?void 0:Zt.choice_text)}),(Zt==null?void 0:Zt.is_answer)&&b.createElement("div",{className:sn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Ct==null?void 0:Ct.item_type)=="COMPLETION"&&b.createElement("div",{className:sn.completion},(qt=Ct==null?void 0:Ct.standard_answer)==null?void 0:qt.map((Zt,ua)=>{var hn;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:sn.title},"\u586B\u7A7A\u9879",ua+1),b.createElement("div",{className:sn.content},(hn=Zt==null?void 0:Zt.answer_text)==null?void 0:hn.map((gn,Zr)=>b.createElement("div",{className:sn.items},gn))))})),(Ct==null?void 0:Ct.item_type)=="SUBJECTIVE"&&b.createElement("div",{className:sn.simple},b.createElement("div",{className:sn.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Ot=Ct==null?void 0:Ct.answer_texts)!=null&&Ot[0]?b.createElement(kt.Z,{className:sn.content,value:(en=Ct==null?void 0:Ct.answer_texts)==null?void 0:en[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(le==null?void 0:le.question_type)===8&&b.createElement("div",null,b.createElement(kt.Z,{disabledFill:!0,className:sn.content,showProgramFill:!0,value:Fu.Base64.decode(((Bn=le==null?void 0:le.program_attr)==null?void 0:Bn.code)||"")})),(le==null?void 0:le.question_type)===5&&b.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},b.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10,color:"#666666"}},"\u521B\u5EFA\u8005"),b.createElement("span",{style:{color:"#000000"}},(le==null?void 0:le.author_name)||"- -")),b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10,color:"#666666"}},"\u6240\u5C5E\u5355\u4F4D"),b.createElement("span",{style:{color:"#000000"}},(le==null?void 0:le.author_school_name)||"- -")),b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10,color:"#666666"}},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{style:{color:"#000000"}},(le==null?void 0:le.study_count)||"0"))),b.createElement("a",{className:sn.shixunbutton,href:`/shixuns/${le==null?void 0:le.identifier}/challenges?exercise=true`,target:"_blank"},b.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((le==null?void 0:le.question_type)<=4||[6,8].includes(le==null?void 0:le.question_type))&&b.createElement("div",{className:sn.bottom},b.createElement("div",{className:sn.bottomitem},b.createElement("span",{className:sn.left},"\u89E3\u6790"),b.createElement("span",{className:sn.right},le!=null&&le.analysis?b.createElement(kt.Z,{value:le==null?void 0:le.analysis}):b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),b.createElement("div",{className:sn.bottomitem},b.createElement("span",{className:sn.left},"\u96BE\u5EA6"),b.createElement("span",{className:sn.right},(le==null?void 0:le.difficulty)===1?"\u7B80\u5355":(le==null?void 0:le.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),b.createElement("div",{className:sn.bottomitem},b.createElement("span",{className:sn.left},"\u77E5\u8BC6\u70B9"),b.createElement("span",{className:sn.right},le!=null&&le.tag_discipline?le==null?void 0:le.tag_discipline:b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},Ra=ae(39469),ha=ae(58082),Jr=ae(96267),Pr=ae(51529),zr=ae(40427),mo=ae(27350),yo=ae(55159),Gn=ae(59301),ii=Object.defineProperty,xo=Object.defineProperties,lo=Object.getOwnPropertyDescriptors,fo=Object.getOwnPropertySymbols,Zo=Object.prototype.hasOwnProperty,Wo=Object.prototype.propertyIsEnumerable,bo=(le,Se,Pe)=>Se in le?ii(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,Dr=(le,Se)=>{for(var Pe in Se||(Se={}))Zo.call(Se,Pe)&&bo(le,Pe,Se[Pe]);if(fo)for(var Pe of fo(Se))Wo.call(Se,Pe)&&bo(le,Pe,Se[Pe]);return le},Jo=(le,Se)=>xo(le,lo(Se)),Qo=(le,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch($t){mt($t)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch($t){mt($t)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(le,Se)).next())});const Li=({setScoreShow:le,ScoreShow:Se,onOk:Pe,isshixuns:rt,isloadings:mt,dispatch:Vn,shixunsDetail:pn,exercise:Jt,SpecificDifficulty:dt=!1})=>{var $t,Bn,Ct,yt;let[ft,Fn]=(0,b.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]}),[qt,Ot]=(0,b.useState)([]),[en,Zt]=(0,b.useState)([]),[ua,hn]=(0,b.useState)([]),[gn,Zr]=(0,b.useState)([]);const[$r,er]=(0,b.useState)(!1),[eo]=we.default.useForm(),[sa,to]=(0,b.useState)(),[Xr,Fo]=(0,b.useState)(!1);let[kr,Lo]=(0,b.useState)(rt);const[wo,gi]=(0,b.useState)([]),[kn,Ai]=(0,b.useState)(!0),[pi,Ho]=(0,b.useState)([]),[zn,mi]=(0,b.useState)(0),[Vi,Wi]=(0,b.useState)([]),ji=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],[Qi,wi]=(0,b.useState)({});let[Wl,Al]=(0,b.useState)([]);(0,b.useEffect)(()=>{var Kt,Tn,Vr,Cr,jr,oo,To,co,Nl,Oi;(((Vr=(Tn=(Kt=Jt==null?void 0:Jt.editData)==null?void 0:Kt.exercise)==null?void 0:Tn.exist_item_bank_ids)==null?void 0:Vr.length)>0||((oo=(jr=(Cr=Jt==null?void 0:Jt.editData)==null?void 0:Cr.exercise)==null?void 0:jr.exist_item_bank_shixun_ids)==null?void 0:oo.length)>0)&&Wi([...(co=(To=Jt==null?void 0:Jt.editData)==null?void 0:To.exercise)==null?void 0:co.exist_item_bank_ids,...(Oi=(Nl=Jt==null?void 0:Jt.editData)==null?void 0:Nl.exercise)==null?void 0:Oi.exist_item_bank_shixun_ids])},[(Bn=($t=Jt==null?void 0:Jt.editData)==null?void 0:$t.exercise)==null?void 0:Bn.exist_item_bank_ids]);const vl=(0,b.useRef)(new Set),Ro=(0,b.useRef)(new Set);let[qo,Ui]=(0,b.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:"",per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const Tr=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],ei=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],bi=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[fi,Yi]=(0,b.useState)(!1),pl=()=>{eo.resetFields(),kr=!1,Lo(!1),Yi(!1),eo.submit()};(0,b.useEffect)(()=>{zn>0&&setTimeout(()=>{mi(0)},2e3)},[zn]),(0,b.useEffect)(()=>{Se&&(eo.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),kn&&kr&&(eo.setFieldsValue({item_type:"SHIXUN"}),ft.item_type="SHIXUN",dt&&(eo.setFieldsValue({diff:dt}),ft.diff=dt),Fn(Dr({},ft)),Ai(!1)),ni(ft),ll(),Ll({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Zl())},[Se]);function ni(Kt){return Qo(this,null,function*(){var Tn,Vr,Cr;if(er(!0),Fn(Kt),(ua==null?void 0:ua.length)<=0&&Kt.type==="5"){Zr([]),er(!1);return}let jr=Kt.type==="5"?ua==null?void 0:ua.filter(co=>!wo.includes(co)):null,oo=Kt.type==="5"?ua==null?void 0:ua.filter(co=>wo.includes(co)):null,To=yield(0,te.ZP)("/api/item_banks.json",{method:"get",params:Jo(Dr({},Kt),{discipline_id:((Tn=Kt==null?void 0:Kt.courseid)==null?void 0:Tn[0])||null,sub_discipline_id:((Vr=Kt==null?void 0:Kt.courseid)==null?void 0:Vr[1])||null,ids:jr,shixun_ids:oo,group_id:((Cr=Kt.group_id)==null?void 0:Cr.map(co=>co==null?void 0:co.value))||null,keyword:Kt.keyword?encodeURIComponent(Kt.keyword):Kt.keyword,include_shixuns:!0,type:Kt.type==="5"?null:Kt.type,clazz:Kt.type==="3"?"ItemBanksGroup":null})});Zr(To),er(!1)})}function Zl(){return Qo(this,null,function*(){let Kt=yield(0,te.ZP)("/api/users/vrs_subject_names.json",{method:"Get"});(Kt==null?void 0:Kt.status)==0&&Al(Kt==null?void 0:Kt.names)})}function Ll(Kt){return Qo(this,null,function*(){var Tn;let Vr=yield(0,te.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Kt}),Cr=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Tn=Vr==null?void 0:Vr.data)==null?void 0:Tn.map(jr=>({title:jr.name,id:jr.id,pid:jr.id,value:jr.id,key:jr.id,isLeaf:!jr.have_child}))}];Ho(Cr)})}function ll(){return Qo(this,null,function*(){let Kt=yield(0,te.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:ft.type==="5"?null:ft.type,clazz:"ItemBanksGroup"}});Ot((0,Rn.L)(Kt==null?void 0:Kt.disciplines))})}function di(Kt){return Qo(this,null,function*(){var Tn,Vr,Cr,jr;er(!0);let oo=(Tn=Kt.list)==null?void 0:Tn.filter(Nl=>!wo.includes(Nl)),To=(Vr=Kt.list)==null?void 0:Vr.filter(Nl=>wo.includes(Nl));if(oo.length===0&&To.length===0){er(!1),Zr([]);return}let co=yield(0,te.ZP)("/api/item_banks.json",{method:"get",params:Jo(Dr({},Kt),{discipline_id:((Cr=Kt==null?void 0:Kt.courseid)==null?void 0:Cr[0])||null,sub_discipline_id:((jr=Kt==null?void 0:Kt.courseid)==null?void 0:jr[1])||null,ids:oo,shixun_ids:To,type:Kt.type==="5"?null:Kt.type,clazz:Kt.type==="3"?"ItemBanksGroup":null})});er(!1),Zr(co)})}const fu=(0,he.useParams)(),[Ql,ko,Hu,Cu]=(0,Jr.P)(),Gl=Kt=>Qo(void 0,null,function*(){const Tn=yield Vn({type:"shixunsDetail/release",payload:{id:Kt}});let Vr=Tn==null?void 0:Tn.tag_position,Cr=(Tn==null?void 0:Tn.evaluation_set_position)||[],jr=Tn.status;return jr===0?(Be.ZP.success("\u53D1\u5E03\u6210\u529F"),ni(ft),!0):(jr===2?Be.ZP.error(`\u7B2C${Cr.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):jr===3?Be.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${Vr.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):Be.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),hl=Kt=>(Kt==null?void 0:Kt.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",tu=(Kt,Tn,Vr)=>Kt.map(Cr=>Cr.key===Tn?Dr(Dr({},Cr),Vr):Cr.children?Jo(Dr({},Cr),{children:tu(Cr.children,Tn,Vr)}):Cr),wu=Kt=>Qo(void 0,null,function*(){const{key:Tn}=Kt;let Vr=ft.type;const Cr=yield(0,zr.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Tn),type:Vr}),{data:jr,total_count:oo}=Cr||{};oo>0&&Ho(To=>tu(To,Tn,{children:jr.map(co=>({title:co.name,id:co.id,pid:co.id,value:co.id,key:co.id,isLeaf:!co.have_child}))}))});function uu(Kt){console.log("----",ft),Kt==="1"&&(qo.gg=Dr({},ft)),Kt==="2"&&(qo.scj=Dr({},ft)),Kt==="3"&&(qo.ttgx=Dr({},ft)),Kt==="0"&&(qo.wcjd=Dr({},ft)),Kt==="5"&&(qo.yx=Dr({},ft)),Ui(Dr({},qo))}function su(){ft.type==="1"&&(ft=qo.gg),ft.type==="2"&&(ft=qo.scj),ft.type==="3"&&(ft=qo.ttgx),ft.type==="0"&&(ft=qo.wcjd),ft.type==="5"&&(ft=qo.yx),(ft==null?void 0:ft.item_type)==="SHIXUN"?(kr=!0,Lo(!0)):(kr=!1,Lo(!1)),eo.setFieldsValue(Dr({},ft)),Fn(Dr({},ft)),ni(Dr({},ft))}return Gn.createElement("div",null,Gn.createElement(Ue.default,{title:!1,footer:!1,open:Se,width:1360,centered:!0,className:Vt.scoremodal,onCancel:()=>{le(!1)}},Gn.createElement("div",{style:{display:"flex",alignItems:"center"}},Gn.createElement("div",{className:Vt.title},"\u9898\u5E93\u9009\u9898")),Gn.createElement(In.default,{className:Vt.tabWrap,activeKey:ft.type,onChange:Kt=>{Kt==="3"?(ft.show_all_share=!0,Ll({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):ft.show_all_share=null,Kt==="0"&&Ll({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),uu(ft.type),ft.type=Kt,(ft==null?void 0:ft.item_type)==="SHIXUN"&&ft.type!=="5"&&(kr=!0,Lo(!0)),Yi(!1),ft.type==="5"&&(kr=!1,Lo(!1)),su(),ll()},items:[{label:"\u516C\u5171",key:"1"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u6536\u85CF\u5939",key:"2"},{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:Gn.createElement("div",null,"\u5DF2\u9009",ua.length>0&&Gn.createElement("span",{className:Vt.titlecount},ua.length),zn>0&&Gn.createElement("span",{className:Vt.add},"+",zn)),key:"5"}]}),Gn.createElement(we.default,{layout:"inline",form:eo,onValuesChange:(Kt,Tn)=>{var Vr,Cr;const jr=Object.values(Tn).some(To=>To!==null&&To!==""&&To!==void 0),oo=Tn.keyword==="";if(Yi(jr||!oo),ft.page=1,ft.keyword=(Cr=(Vr=ft.keyword)==null?void 0:Vr.replace)==null?void 0:Cr.call(Vr,/^\s+|\s+$/g,""),(Tn==null?void 0:Tn.item_type)==="SHIXUN"){if(ft.type==="5"?(dt&&eo.setFieldsValue({difficulty:dt}),Lo(!1)):(dt&&eo.setFieldsValue({diff:dt}),Lo(!0)),Kt.keyword||Kt.keyword==="")return;setTimeout(()=>{eo.submit()},0)}else{if(Kt!=null&&Kt.courseid&&eo.setFieldsValue({tag_discipline_id:""}),Lo(!1),Kt.keyword||Kt.keyword==="")return;eo.submit()}},onFinish:Kt=>{var Tn;ft.type==="3"&&(!Kt.group_id||((Tn=Kt==null?void 0:Kt.group_id)==null?void 0:Tn.length)===0)?ft.show_all_share=!0:ft.show_all_share=null,Fn(Dr(Dr({},ft),Kt)),ni(Dr(Dr({},ft),Kt))}},Gn.createElement(we.default.Item,{name:"item_type"},Gn.createElement(Ee.default,{className:Vt.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle",allowClear:!0},ji.map(Kt=>Gn.createElement(Ee.default.Option,{key:Kt.value},Kt.name)))),Gn.createElement(we.default.Item,{name:"courseid"},Gn.createElement(xe.Z,{className:Vt.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:qt})),!kr&&Gn.createElement(we.default.Item,{name:"tag_discipline_id"},Gn.createElement(Ee.default,{className:Vt.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(Ct=gn==null?void 0:gn.tag_disciplines)==null?void 0:Ct.map(Kt=>Gn.createElement(Ee.default.Option,{key:Kt.id},Kt.name)))),kr&&Gn.createElement(we.default.Item,{name:"vrs_name"},Gn.createElement(Ee.default,{className:Vt.selectWrapper,placeholder:"\u79D1\u76EE",style:{width:118},size:"middle",allowClear:!0},(yt=[{id:"",name:"\u5168\u90E8"},...(Wl==null?void 0:Wl.map(Kt=>({id:Kt,name:Kt})))||[]])==null?void 0:yt.map(Kt=>Gn.createElement(Ee.default.Option,{key:Kt.id},Kt.name)))),Gn.createElement(we.default.Item,{name:kr?"diff":"difficulty"},Gn.createElement(Ee.default,{className:Vt.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0,disabled:(ft==null?void 0:ft.item_type)==="SHIXUN"&&!!dt},!kr&&Tr.map(Kt=>Gn.createElement(Ee.default.Option,{value:Kt.value,key:Kt.value},Kt.name)),kr&&ei.map(Kt=>Gn.createElement(Ee.default.Option,{value:Kt.value,key:Kt.value},Kt.name)))),kr&&Gn.createElement(we.default.Item,{name:"shixun_publish_status"},Gn.createElement(Ee.default,{className:Vt.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},bi.map(Kt=>Gn.createElement(Ee.default.Option,{key:Kt.value},Kt.name)))),(ft.type==="3"||ft.type==="0")&&!kr&&Gn.createElement(we.default.Item,{name:"group_id"},Gn.createElement(On.default,{treeDataSimpleMode:!0,style:{width:118},className:Vt.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Kt,Tn)=>Tn.title.toUpperCase().indexOf(Kt.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:wu,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:pi})),fi&&Gn.createElement("span",{className:Vt.allqingchu,onClick:pl},Gn.createElement("i",{className:"iconfont icon-guanbi4"}),Gn.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Gn.createElement(we.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Gn.createElement(We.default.Search,{className:Vt.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Gn.createElement("i",{className:`iconfont icon-sousuo9 font14 ${Vt.searchIcon}`,onClick:()=>eo.submit()}),onSearch:Kt=>{eo.submit()}}))),Gn.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Gn.createElement("div",{onClick:()=>{ft.updated_at==="asc"?ft.updated_at="desc":ft.updated_at="asc",Fn(Jo(Dr({},ft),{page:1})),ni(Jo(Dr({},ft),{page:1}))}}," ",ft.updated_at?Gn.createElement("img",{src:ft.updated_at==="asc"?Ra.Z:ha.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Gn.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Gn.createElement("div",{onClick:()=>{ft.quotes==="asc"?ft.quotes="desc":ft.quotes="asc",Fn(Jo(Dr({},ft),{page:1})),ni(Jo(Dr({},ft),{page:1}))},style:{marginLeft:20}}," ",ft.quotes?Gn.createElement("img",{src:ft.quotes==="asc"?Ra.Z:ha.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Gn.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Gn.createElement(gs.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(gn==null?void 0:gn.items)||(gn==null?void 0:gn.shixun_list),pagination:!1,loading:$r,rowKey:Kt=>Kt.id,rowSelection:{type:"checkbox",selectedRowKeys:[...en,...Vi],getCheckboxProps:Kt=>({disabled:Kt.shixun_tag_num===1||(Vi==null?void 0:Vi.find(Tn=>Kt.id===Tn))}),onSelect(Kt,Tn,Vr){if(console.log("---",Vr,Tn,Kt),Tn)(kr||Kt!=null&&Kt.challenge_names)&&gi([...wo,Kt.id]),Zt([...en,Kt.id]),Kt.identifier?vl.current.add(Kt.id):Ro.current.add(Kt.id),mi(1),hn([...ua,Kt.id]);else{Kt.identifier?vl.current.delete(Kt.id):Ro.current.delete(Kt.id);let Cr=ua.filter(jr=>jr!==Kt.id);if(Zt(Cr),hn(Cr),kr||Kt!=null&&Kt.challenge_names){let jr=wo.filter(oo=>oo!==Kt.id);gi([...jr])}if(ft.type==="5"){di(Jo(Dr({},ft),{list:[...Cr]}));return}}},onSelectAll(Kt,Tn,Vr){var Cr,jr;if(console.log("----",Vr),Kt){const oo=Vr.map(co=>co.id),To=(jr=Vr==null?void 0:Vr.filter(co=>co==null?void 0:co.challenge_names))==null?void 0:jr.map(co=>co.id);gi([...wo,...To]),Zt([...en,...oo]),hn([...ua,...oo]);for(const co of Vr)co.identifier?vl.current.add(co.id):Ro.current.add(co.id)}else{const oo=Vr.map(Oi=>Oi.id),To=en.filter(Oi=>!oo.some(du=>du===Oi)),co=(Cr=Vr==null?void 0:Vr.filter(Oi=>Oi==null?void 0:Oi.challenge_names))==null?void 0:Cr.map(Oi=>Oi.id);Zt([...To]),hn([...To]);let Nl=wo.filter(Oi=>!co.some(du=>du===Oi.id));gi([...Nl]),ft.type==="5"&&di(Jo(Dr({},ft),{list:[...To]}));for(const Oi of oo)Oi.identifier?vl.current.delete(Oi):Ro.current.delete(Oi)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(Kt,Tn,Vr)=>{var Cr,jr;return Gn.createElement(ot.Z,{title:hl(Tn)},Gn.createElement("div",null,kr||Tn!=null&&Tn.challenge_names?"\u5B9E\u8BAD\u9898":(jr=(Cr=ji==null?void 0:ji.filter(oo=>oo.value===Kt))==null?void 0:Cr[0])==null?void 0:jr.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:kr?"30%":"60%",key:"name",render:(Kt,Tn,Vr)=>{var Cr;return Gn.createElement("div",{style:{display:"flex",alignItems:"center"}},Gn.createElement(ot.Z,{title:hl(Tn)},Gn.createElement("span",null,Gn.createElement(kt.Z,{key:1,showLines:1,showTextOnly:!0,value:kr||Tn!=null&&Tn.challenge_names?Tn!=null&&Tn.title||Kt===null?"--":Kt:(Tn==null?void 0:Tn.item_type)=="BPROGRAM"?(Cr=Tn==null?void 0:Tn.program_attr)==null?void 0:Cr.description:Kt}))),(Tn==null?void 0:Tn.high_resources_consume)&&Gn.createElement(Pr.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!kr,render:(Kt,Tn,Vr)=>{var Cr;return Gn.createElement(ot.Z,{title:hl(Tn)},Gn.createElement("span",null,Kt?(Cr=Kt==null?void 0:Kt.split("\u3001"))==null?void 0:Cr[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!kr,render:(Kt,Tn,Vr)=>Gn.createElement(ot.Z,{title:hl(Tn)},Gn.createElement("span",null,Kt||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(Kt,Tn,Vr)=>{var Cr,jr,oo,To;return Gn.createElement(ot.Z,{title:hl(Tn)},Gn.createElement("div",null,kr||Tn!=null&&Tn.challenge_names?(Tn==null?void 0:Tn.level)||((jr=(Cr=Tr==null?void 0:Tr.filter(co=>co.value===Kt))==null?void 0:Cr[0])==null?void 0:jr.name):(To=(oo=Tr==null?void 0:Tr.filter(co=>co.value===Kt))==null?void 0:oo[0])==null?void 0:To.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!kr,render:(Kt,Tn,Vr)=>Gn.createElement(ot.Z,{title:hl(Tn)},Gn.createElement("div",null,Kt||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(Kt,Tn,Vr)=>Gn.createElement(ot.Z,{title:hl(Tn)},Gn.createElement("div",null,kr||Tn!=null&&Tn.challenge_names?(Tn==null?void 0:Tn.study_count)||(Tn==null?void 0:Tn.stu_num):Kt))},{title:Gn.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Gn.createElement(ot.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Gn.createElement(Sn.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!kr,render:(Kt,Tn,Vr)=>Gn.createElement(ot.Z,{title:hl(Tn)},Gn.createElement("div",null,Kt||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(Kt,Tn,Vr)=>Gn.createElement(ot.Z,{title:hl(Tn)},Gn.createElement("div",{style:{flex:1,textAlign:"start"}},Gn.createElement("a",{onClick:()=>{var Cr,jr;to(Jo(Dr({},Tn),{question_type:kr||Tn!=null&&Tn.challenge_names?5:(jr=(Cr=ji==null?void 0:ji.filter(oo=>oo.value===(Tn==null?void 0:Tn.item_type)))==null?void 0:Cr[0])==null?void 0:jr.question_type})),Fo(!0)}},"\u67E5\u770B"),(Tn==null?void 0:Tn.shixun_tag_num)===1&&Gn.createElement("a",{style:{marginLeft:10},onClick:()=>{Ue.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Gn.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Gn.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Tn==null?void 0:Tn.identifier}/challenges`)}},(Tn==null?void 0:Tn.shixun_name)||"--"),"\uFF1F"),onOk:()=>Qo(void 0,null,function*(){if(!Gl(Tn==null?void 0:Tn.identifier))return new Promise((Cr,jr)=>{jr()})})})}},"\u53D1\u5E03")))}].filter(Kt=>!Kt.hidden)}),Gn.createElement(wt.Z,{current:ft.page,total:(gn==null?void 0:gn.items_count)||(gn==null?void 0:gn.shixuns_count),style:{marginBottom:20},defaultPageSize:ft.per_page,showTotal:Kt=>Gn.createElement("span",null,"\u5171\xA0",Gn.createElement("span",{style:{color:"#165DFF"}},Kt),"\xA0\u6761\u6570\u636E"),pageSize:ft.per_page,onChange:(Kt,Tn)=>{ft.page=Kt,ft.per_page=Tn,Fn(Dr({},ft)),ni(Dr({},ft))}}),Gn.createElement("div",{className:Vt.bottom},Gn.createElement(ke.ZP,{className:Vt.no,onClick:()=>{le(!1)}},"\u53D6\u6D88"),Gn.createElement(ke.ZP,{loading:mt,style:{width:mt&&75},className:Vt.yes,onClick:()=>Qo(void 0,null,function*(){if((ua==null?void 0:ua.length)<=0){Be.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}let Kt=yield(0,yo.Tr)({id:[...ua==null?void 0:ua.filter(Tn=>wo.includes(Tn))],course_id:fu.coursesId,type:"shixun"});(Kt==null?void 0:Kt.student_count)===0?Pe([...Ro.current],[...ua==null?void 0:ua.filter(Tn=>wo.includes(Tn))],!0,ua==null?void 0:ua.length):wi(Kt)})},"\u786E\u8BA4"))),Gn.createElement(Ue.default,{open:Xr,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:Vt.previewModal,width:1e3,centered:!0,onCancel:()=>{Fo(!1)},onOk:()=>{Fo(!1)}},Gn.createElement(Qa,{qitem:sa})),Gn.createElement(mo.Z,{resdata:Qi,type:"exercise",okloading:mt,oktext:(Qi==null?void 0:Qi.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Kt=>Qo(void 0,null,function*(){const Tn=[],Vr=[];for(const Cr of Qi==null?void 0:Qi.can_copy_list)Tn.push(Cr.id);ko(),yield Pe([...Ro.current],[...vl.current].filter(Cr=>!Vr.includes(Cr)),!0,ua==null?void 0:ua.length,Tn)})}))};var ui=(0,he.connect)(({shixunsDetail:le,exercise:Se})=>({shixunsDetail:le,exercise:Se}))(Li),Ni=ae(13919),uo=ae(59301),hi=Object.defineProperty,Bi=Object.defineProperties,Zi=Object.getOwnPropertyDescriptors,yi=Object.getOwnPropertySymbols,$i=Object.prototype.hasOwnProperty,cl=Object.prototype.propertyIsEnumerable,ro=(le,Se,Pe)=>Se in le?hi(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,Do=(le,Se)=>{for(var Pe in Se||(Se={}))$i.call(Se,Pe)&&ro(le,Pe,Se[Pe]);if(yi)for(var Pe of yi(Se))cl.call(Se,Pe)&&ro(le,Pe,Se[Pe]);return le},Go=(le,Se)=>Bi(le,Zi(Se)),Fi=(le,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch($t){mt($t)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch($t){mt($t)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(le,Se)).next())}),ci=({qitem:le,TagDiscipline:Se,exerciseitem:Pe,setisedit:rt,seveeditor:mt,deleteitem:Vn,getTagData:pn,init:Jt,showTip:dt=!1})=>{var $t;const[Bn]=we.default.useForm(),Ct=!0;return(0,b.useEffect)(()=>{var yt,ft,Fn;Bn.setFieldsValue(Go(Do({},le),{standard_answers:le.standard_answer,difficulty:(le==null?void 0:le.difficult)||2,item_banks_group_id:le.item_banks_group_id,hack:Go(Do({},le),{time_limit:(le==null?void 0:le.time_limit)||3}),hack_codes:{language:(yt=le==null?void 0:le.program_attr)==null?void 0:yt.language,code:Fu.Base64.decode(((ft=le==null?void 0:le.program_attr)==null?void 0:ft.code)||"")},hack_sets:Do({},(Fn=le==null?void 0:le.hack_sets)==null?void 0:Fn[0]),repeat_answer:!le.repeat_answer}))},[le]),uo.createElement("div",null,uo.createElement(we.default,{form:Bn,colon:!1,onValuesChange:(yt,ft)=>{var Fn,qt,Ot,en;if(yt!=null&&yt.standard_answers){let Zt=((Fn=Bn.getFieldValue("standard_answers"))==null?void 0:Fn.length)>0&&((Ot=(qt=Bn.getFieldValue("standard_answers"))==null?void 0:qt.map(ua=>ua.score))==null?void 0:Ot.filter(ua=>ua));(Zt==null?void 0:Zt.length)>0&&Bn.setFieldsValue({question_score:(Zt==null?void 0:Zt.length)>0&&((en=Zt.reduce((ua,hn)=>ua+hn))==null?void 0:en.toFixed(1))})}},onFinish:yt=>{var ft;mt(Go(Do(Do({},le),yt),{item_type:le==null?void 0:le.question_type,standard_answers:(ft=yt.standard_answers)==null?void 0:ft.map((Fn,qt)=>Go(Do({},Fn),{position:qt+1})),hack_codes:Go(Do({},yt.hack_codes),{code:Fu.Base64.encode(yt.hack_codes.code)}),standard_answer:void 0}))},onFinishFailed:yt=>Fi(void 0,null,function*(){var ft,Fn;Be.ZP.error(yt.errorFields[0].errors[0]),Bn.scrollToField((Fn=(ft=yt==null?void 0:yt.errorFields)==null?void 0:ft[0])==null?void 0:Fn.name,{behavior:"smooth",block:"center"})})},uo.createElement("div",{style:{display:"flex",alignItems:"center"}},uo.createElement("div",{style:{flex:1}},uo.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),uo.createElement("span",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898")),(($t=Pe==null?void 0:Pe.exercise)==null?void 0:$t.exercise_status)==1&&!(le!=null&&le.isadd)&&uo.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Vn()}},uo.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}})," \u5220\u9664"),uo.createElement(ke.ZP,{onClick:()=>{var yt,ft,Fn,qt;le.isadd?(rt(!1),Jt()):(Bn.setFieldsValue(Go(Do({},le),{standard_answers:le.standard_answer,difficulty:le.difficult,item_banks_group_id:le.item_banks_group_id,hack:Go(Do({},le),{sub_discipline_id:(yt=Pe==null?void 0:Pe.exercise)==null?void 0:yt.sub_discipline_id,tag_discipline_ids:[]}),hack_codes:{language:(ft=le==null?void 0:le.program_attr)==null?void 0:ft.language,code:Fu.Base64.decode((Fn=le==null?void 0:le.program_attr)==null?void 0:Fn.code)},hack_sets:Do({},(qt=le==null?void 0:le.hack_sets)==null?void 0:qt[0]),repeat_answer:!le.repeat_answer})),rt(!1))}},"\u53D6\u6D88"),uo.createElement(ot.Z,{overlayClassName:tt.shake,open:dt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:uo.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},uo.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},uo.createElement(ke.ZP,{className:"ml20",type:"primary",onClick:()=>{Bn.submit()}},"\u4FDD\u5B58"))),uo.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},uo.createElement(fn.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}),uo.createElement(Ni.t,{form:Bn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7A0B\u5E8F\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:Ct,hackidentifier:le==null?void 0:le.hack_identifier,answerKey:"standard_answers"}),uo.createElement(Ca,{getTagData:pn,qitem:le,exerciseitem:Pe,TagDiscipline:Se,form:Bn}))))},xi=ae(11662),Bl=ae(49613),Ki=ae(6455),_i=ae(89392),ql=ae(26573),lu=ae(5864),bn=ae(59301),Hi=Object.defineProperty,Pl=Object.defineProperties,Ji=Object.getOwnPropertyDescriptors,$l=Object.getOwnPropertySymbols,kl=Object.prototype.hasOwnProperty,ol=Object.prototype.propertyIsEnumerable,si=(le,Se,Pe)=>Se in le?Hi(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,ti=(le,Se)=>{for(var Pe in Se||(Se={}))kl.call(Se,Pe)&&si(le,Pe,Se[Pe]);if($l)for(var Pe of $l(Se))ol.call(Se,Pe)&&si(le,Pe,Se[Pe]);return le},Xi=(le,Se)=>Pl(le,Ji(Se)),No=(le,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch($t){mt($t)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch($t){mt($t)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(le,Se)).next())});const{confirm:il}=Ue.default,Ii=[{name:"\u5355\u9009\u9898",id:0,count:"q_singles",score:"q_singles_scores",nameType:"SINGLE"},{name:"\u591A\u9009\u9898",id:1,count:"q_doubles",score:"q_doubles_scores",nameType:"MULTIPLE"},{name:"\u5224\u65AD\u9898",id:2,count:"q_judges",score:"q_judges_scores",nameType:"JUDGMENT"},{name:"\u586B\u7A7A\u9898",id:3,count:"q_nulls",score:"q_nulls_scores",nameType:"COMPLETION"},{name:"\u7B80\u7B54\u9898",id:4,count:"q_mains",score:"q_mains_scores",nameType:"SUBJECTIVE"},{name:"\u5B9E\u8BAD\u9898",id:5,count:"q_shixuns",score:"q_shixuns_scores",nameType:"PRACTICAL"},{name:"\u7F16\u7A0B\u9898",id:6,count:"q_pros",score:"q_pros_scores",nameType:"PROGRAM"},{name:"\u7EC4\u5408\u9898",id:7,count:"q_combinations",score:"q_combinations_scores",nameType:"COMBINATION"},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",id:8,count:"q_combinations",score:"q_combinations_scores",nameType:"BPROGRAM"}],xl=({user:le,dispatch:Se,itemid:Pe,setisedits:rt,exercise:mt,setitemid:Vn})=>{var pn,Jt,dt,$t,Bn,Ct,yt,ft,Fn,qt,Ot,en,Zt,ua,hn,gn,Zr,$r,er,eo,sa,to,Xr,Fo,kr,Lo,wo,gi;const[kn,Ai]=(0,b.useState)(),[pi,Ho]=(0,b.useState)(!1),[zn,mi]=(0,b.useState)(),[Vi,Wi]=(0,b.useState)(),ji=(0,b.useRef)(),Qi=(0,b.useRef)(),[wi,Wl]=(0,b.useState)(),[Al,vl]=(0,b.useState)(!1),[Ro,qo]=(0,b.useState)(!1),[Ui,Tr]=(0,b.useState)(),[ei,bi]=(0,b.useState)(!1),[fi,Yi]=(0,b.useState)(!1),[pl,ni]=(0,b.useState)(!1),[Zl,Ll]=(0,b.useState)(!1),[ll,di]=(0,b.useState)(!1),[fu,Ql]=(0,b.useState)(!1),ko=(0,he.useParams)(),[Hu,Cu]=(0,b.useState)(!1),[Gl]=we.default.useForm(),[hl,tu]=(0,b.useState)(!1),[wu,uu]=(0,b.useState)(!1),[su,Kt]=(0,b.useState)(!1),[Tn,Vr]=(0,b.useState)(!1),Cr=(0,b.useRef)();(0,b.useEffect)(()=>{Pe&&oo()},[Pe]),(0,b.useEffect)(()=>{rt(Ro)},[Ro]),(0,b.useEffect)(()=>{zn!=null&&zn.question_id&&(Wi(zn==null?void 0:zn.question_score),Qi.current=zn==null?void 0:zn.question_id)},[zn]);const jr=ea=>No(void 0,null,function*(){let nr=yield Se({type:"newExercisePaper/getTagDiscipline",payload:{sub_discipline_id:ea}});Se({type:"globalSetting/footerToggle",payload:!1}),Tr(nr)});function oo(){return No(this,null,function*(){var ea,nr,Wr,Po,Ao,Ir;vl(!0),Ho(!0);const qr=yield Se({type:"exercise/editExercise",payload:{categoryId:Pe}});vl(!1),Ho(!1),Ai(qr),di(!1),(ea=qr==null?void 0:qr.exercise)!=null&&ea.sub_discipline_id&&jr((nr=qr==null?void 0:qr.exercise)==null?void 0:nr.sub_discipline_id),mi(Xi(ti({},(Ao=(Po=(Wr=qr==null?void 0:qr.exercise_question_types)==null?void 0:Wr[0])==null?void 0:Po.items)==null?void 0:Ao[0]),{index:1})),Wl(Xi(ti({},(Ir=qr==null?void 0:qr.exercise_question_types)==null?void 0:Ir[0]),{indexs:1}))})}function To(ea,nr=!0){return No(this,null,function*(){var Wr,Po,Ao,Ir;nr&&(vl(!0),Ho(!0));const qr=yield Se({type:"exercise/editExercise",payload:{categoryId:Pe}});Ai(qr);let zo=[];(Wr=qr==null?void 0:qr.exercise_question_types)==null||Wr.map(La=>{var yr;(yr=La==null?void 0:La.items)==null||yr.map((Co,ai)=>{zo.push(Xi(ti({},Co),{index:ai+1}))})});let tl=(Po=zo.filter(La=>La.question_id===(ea==null?void 0:ea.id)))==null?void 0:Po[0],vo=(Ir=((Ao=qr==null?void 0:qr.exercise_question_types)==null?void 0:Ao.map((La,yr)=>{if((tl==null?void 0:tl.question_type)===(La==null?void 0:La.question_type))return Xi(ti({},La),{indexs:yr+1})})).filter(La=>La))==null?void 0:Ir[0];Wl(ti({},vo)),mi(ti({},tl)),Wi(tl==null?void 0:tl.question_score),vl(!1),Ho(!1),di(!1)})}function co(ea){return No(this,null,function*(){var nr;let Wr=Xi(ti({},ea),{repeat_answer:!ea.repeat_answer,difficulty:(ea==null?void 0:ea.difficulty)||2,item_type:ea.question_type,sub_discipline_id:((nr=ea==null?void 0:ea.sub_discipline_id)==null?void 0:nr[1])||"",tag_discipline_ids:[],hack:Xi(ti({},ea==null?void 0:ea.hack),{difficult:(ea==null?void 0:ea.difficulty)||2}),hack_identifier:sessionStorage.projectFill});ea.tag_discipline_ids&&(Wr.tag_discipline_ids=Array.isArray(ea.tag_discipline_ids)?ea.tag_discipline_ids:[ea.tag_discipline_ids]);let Po=ll?`/api/exercises/${Pe}/exercise_questions`:`/api/exercise_questions/${ea==null?void 0:ea.question_id}.json`;if((ea==null?void 0:ea.is_my)===1){const Ao=il({title:"\u63D0\u793A",content:bn.createElement("div",null,bn.createElement("p",null,"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F"),bn.createElement("i",{className:"iconfont icon-guanbi",style:{position:"absolute",top:"20px",right:"20px",cursor:"pointer"},onClick:()=>{Ao.destroy()}})),okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>No(this,null,function*(){Wr.is_cover=1;let Ir=yield(0,te.ZP)(Po,{method:ll?"post":"PUT",body:ti({},Wr)});(Ir==null?void 0:Ir.status)===0&&(qo(!1),To({id:(Ir==null?void 0:Ir.exercise_question_id)||(ea==null?void 0:ea.question_id)})),Ao.destroy()}),onCancel:()=>No(this,null,function*(){let Ir=yield(0,te.ZP)(Po,{method:ll?"post":"PUT",body:ti({},Wr)});(Ir==null?void 0:Ir.status)===0&&(qo(!1),To({id:(Ir==null?void 0:Ir.exercise_question_id)||(ea==null?void 0:ea.question_id)})),Ao.destroy()})})}else{let Ao=yield(0,te.ZP)(Po,{method:ll?"post":"PUT",body:ti({},Wr)});(Ao==null?void 0:Ao.status)===0&&(qo(!1),To({id:(Ao==null?void 0:Ao.exercise_question_id)||(ea==null?void 0:ea.question_id)}))}(0,ht.Vf)("#question-scroll-id")})}function Nl(ea){return No(this,null,function*(){var nr,Wr;Ho(!0);let Po=yield(0,te.ZP)(`/api/exercises/${Pe}/sort_question_type.json`,{method:"post",body:{question_type:ea}});if(Ho(!1),(Po==null?void 0:Po.status)===0){const Ao=yield Se({type:"exercise/editExercise",payload:{categoryId:Pe}});Ai(Ao),di(!1),(nr=Ao==null?void 0:Ao.exercise)!=null&&nr.sub_discipline_id&&jr((Wr=Ao==null?void 0:Ao.exercise)==null?void 0:Wr.sub_discipline_id)}})}const Oi=(ea,nr,Wr)=>No(void 0,null,function*(){var Po;if(ea.length===0){Be.ZP.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),Wr();return}const Ao={id:ko==null?void 0:ko.exerciseId,file:(Po=ea[0])==null?void 0:Po.file,sub_discipline_id:nr};ps(Ao,`${xi.Z.API_SERVER}/api/courses/${ko==null?void 0:ko.coursesId}/exercises/import_exercise.json`,Ir=>{var qr;if((Ir==null?void 0:Ir.status)===0){const zo={};(qr=Ir==null?void 0:Ir.fail)==null||qr.forEach(Il=>{var vo;((vo=Object.keys(zo))==null?void 0:vo.includes(Il.message))?zo[Il.message]=zo[Il.message]+1:zo[Il.message]=1});let tl=`\u6210\u529F\u5BFC\u5165${Ir==null?void 0:Ir.success}\u6761`;Object.keys(zo).forEach(Il=>{tl=tl+`,${Il}${zo[Il]}\u6761`}),Be.ZP.success(tl),bi(!1),oo()}(Ir==null?void 0:Ir.status)===-1&&(Be.ZP.error(Ir==null?void 0:Ir.message),Wr())})}),du=(ea,nr)=>No(void 0,null,function*(){kn.exercise_types.q_scores=Number(kn.exercise_types.q_scores)+Number(ea)-Number(nr==null?void 0:nr.question_score);const Wr=yield(0,Ki.zR)({score:(0,_i.round)(ea,1),question_id:nr==null?void 0:nr.question_id});if((Wr==null?void 0:Wr.status)===0){Be.ZP.success("\u4FEE\u6539\u6210\u529F"),To({id:Qi.current},!1);return}(Wr==null?void 0:Wr.status)===-1&&Wi(nr==null?void 0:nr.question_score)}),nu=()=>{Vr(!0)};(0,b.useEffect)(()=>{if(Tn){const ea=setTimeout(()=>{Vr(!1)},2e3);return()=>clearTimeout(ea)}},[Tn]);const ps=(ea,nr,Wr,Po,Ao)=>{const Ir=new FormData;Object.keys(ea).forEach(zo=>{Ir.append(zo,ea[zo])});const qr=new window.XMLHttpRequest;return qr.withCredentials=!0,qr.addEventListener("load",function(zo){var tl;Wr(JSON.parse((tl=zo==null?void 0:zo.target)==null?void 0:tl.response))},!1),qr.addEventListener("error",function(zo){Ao&&Ao(zo)},!1),qr.upload.onprogress=zo=>{Po&&Po(zo)},qr.open("POST",nr),qr.send(Ir),qr};function Hl(){return No(this,null,function*(){Ue.default.confirm({title:"\u63D0\u793A",content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",okText:"\u786E\u5B9A",centered:!0,className:tt.modalconfirm,onOk:()=>No(this,null,function*(){if(zn.question_id){let ea=yield(0,te.ZP)(`/api/exercise_questions/${zn.question_id}.json`,{method:"delete"});(ea==null?void 0:ea.status)===0&&(oo(),qo(!1))}else mi({}),qo(!1),oo()}),cancelText:"\u53D6\u6D88"})})}const Ul=ea=>No(void 0,null,function*(){return yield(0,te.ZP)(`/api/exercises/${Pe}/select_questions.json`,{method:"post",body:ti({},ea)})}),{overflow:es,handleMouseEnter:hs,handleMouseLeave:ts}=(0,Bl.I)(),ns=(ea,nr)=>bn.createElement(Lt.default,null,bn.createElement(Lt.default.Item,{key:"0",onClick:()=>zu(ea==null?void 0:ea.question_type)},bn.createElement("span",{className:tt.moreSpan},"\u65B0\u589E")),bn.createElement(Lt.default.Item,{key:"1",disabled:nr===0,onClick:()=>No(void 0,null,function*(){if(nr===0)return;if(Ro){nu();return}let Wr=(0,ht.rz)(kn==null?void 0:kn.exercise_question_types,nr,nr-1);yield Nl(Wr.map(Po=>Po.name))})},bn.createElement("span",{className:tt.moreSpan},"\u4E0A\u79FB")),bn.createElement(Lt.default.Item,{key:"2",disabled:nr===(kn==null?void 0:kn.exercise_question_types.length)-1,onClick:()=>No(void 0,null,function*(){if(nr===(kn==null?void 0:kn.exercise_question_types.length)-1)return;if(Ro){nu();return}let Wr=(0,ht.rz)(kn==null?void 0:kn.exercise_question_types,nr,nr+1);yield Nl(Wr.map(Po=>Po.name))})},bn.createElement("span",{className:tt.moreSpan},"\u4E0B\u79FB")),bn.createElement(Lt.default.Item,{key:"3",onClick:()=>{var Wr;Gl.setFieldsValue({name:ea.name,item_type_en:(Wr=Ii.find(Po=>Po.id==ea.question_type))==null?void 0:Wr.nameType}),tu(!0)}},bn.createElement("span",{className:tt.moreSpan},"\u91CD\u547D\u540D"))),zu=ea=>{var nr,Wr,Po,Ao,Ir,qr,zo,tl,Il,vo,La,yr,Co,ai,cu,Ol,Yl,Ml,vu,au,yl,Ss,Cs,Ps;if(Ro){nu();return}if(di(!0),ea===5){ni(!0),Ll(!0);return}if(ea===6){let Ms=(Wr=(nr=mt==null?void 0:mt.editData)==null?void 0:nr.exercise)!=null&&Wr.set_question_sub_discipline?`/problems/newcreate?express_id=${(Po=kn==null?void 0:kn.exercise)==null?void 0:Po.id}&callback_url=/classrooms/${ko.coursesId}/exercise/add/${Pe}?type=2&discipline_id=${(Ir=(Ao=mt==null?void 0:mt.editData)==null?void 0:Ao.exercise)==null?void 0:Ir.discipline_id}&sub_discipline_id=${(zo=(qr=mt==null?void 0:mt.editData)==null?void 0:qr.exercise)==null?void 0:zo.sub_discipline_id}`:`/problems/newcreate?express_id=${(tl=kn==null?void 0:kn.exercise)==null?void 0:tl.id}&callback_url=/classrooms/${ko.coursesId}/exercise/add/${Pe}?type=2`;he.history.push(Ms);return}qo(!0),mi(ea===2?{question_type:ea,isadd:!0,repeat_answer:!0,choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],question_choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],difficulty:2,standard_answers:[],question_score:"",question_title:"",tag_discipline_ids:[],discipline_id:(vo=(Il=mt==null?void 0:mt.editData)==null?void 0:Il.exercise)!=null&&vo.set_question_sub_discipline?(yr=(La=mt==null?void 0:mt.editData)==null?void 0:La.exercise)==null?void 0:yr.discipline_id:0,sub_discipline_id:(ai=(Co=mt==null?void 0:mt.editData)==null?void 0:Co.exercise)!=null&&ai.set_question_sub_discipline?(Ol=(cu=mt==null?void 0:mt.editData)==null?void 0:cu.exercise)==null?void 0:Ol.sub_discipline_id:0,analysis:""}:{question_type:ea,question_choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),standard_answers:[],repeat_answer:!0,difficulty:2,isadd:!0,tag_discipline_ids:[],question_score:"",analysis:"",sub_item_banks:[],is_ordered:!0,question_title:"",use_keywords:!1,keywords:[],use_blank_score:!0,allow_student_debug:!1,submit_rule:1,discipline_id:(Ml=(Yl=mt==null?void 0:mt.editData)==null?void 0:Yl.exercise)!=null&&Ml.set_question_sub_discipline?(au=(vu=mt==null?void 0:mt.editData)==null?void 0:vu.exercise)==null?void 0:au.discipline_id:0,sub_discipline_id:(Ss=(yl=mt==null?void 0:mt.editData)==null?void 0:yl.exercise)!=null&&Ss.set_question_sub_discipline?(Ps=(Cs=mt==null?void 0:mt.editData)==null?void 0:Cs.exercise)==null?void 0:Ps.sub_discipline_id:0,downcase:!0,no_space:!0})},Es=[{key:1,label:"\u6279\u91CF\u5BFC\u5165",onClick:()=>{bi(!0)}},{key:2,label:bn.createElement("div",null,bn.createElement("img",{width:26,style:{position:"absolute",top:-2},src:lu.$}),bn.createElement("span",null,"\u667A\u80FD\u5BFC\u5165")),onClick:()=>{if(Ro){nu();return}uu(!0)}}];return console.log(wi==null?void 0:wi.question_type,zn==null?void 0:zn.question_type),bn.createElement("div",null,bn.createElement(_t.Z,{spinning:Al},bn.createElement("div",{className:tt.bg},((pn=kn==null?void 0:kn.exercise_types)==null?void 0:pn.q_counts)===0&&!Ro&&bn.createElement(Jn.Z,{styles:{marginTop:180},customText:bn.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",bn.createElement("span",{className:"c-light-primary"},"\u5E95\u90E8\u64CD\u4F5C\u680F"),"\u8FDB\u884C\u6DFB\u52A0~")}),(((Jt=kn==null?void 0:kn.exercise_types)==null?void 0:Jt.q_counts)>0||Ro)&&bn.createElement("div",{style:{textAlign:"center"}},bn.createElement("div",{style:{marginTop:20,borderTop:"1px solid #DCDCDC",display:"block",alignItems:"stretch"}},bn.createElement("div",{style:{backgroundColor:"#F6F7F9",display:"inline-block",position:"sticky",top:0}},bn.createElement("div",{className:tt.left},bn.createElement("div",{className:tt.leftAction},((dt=kn==null?void 0:kn.exercise)==null?void 0:dt.exercise_status)===1&&bn.createElement(ke.ZP,{onClick:()=>{if(Ro){nu();return}Yi(!0)},className:tt.Button},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C")),bn.createElement("div",{className:tt.scrollWrapper,style:{overflow:es},onMouseEnter:hs,onMouseLeave:ts},($t=kn==null?void 0:kn.exercise_question_types)==null?void 0:$t.map((ea,nr)=>bn.createElement("div",{key:nr,className:"mb30"},bn.createElement("div",{className:tt.title},bn.createElement("div",{className:tt.titleleft},bn.createElement("span",{style:{color:"#000000",fontWeight:400,fontSize:12}}," ",(0,ht.EM)(nr+1),"\u3001\u3010",ea.name,"\u3011"),bn.createElement("span",{style:{color:"#464F66",fontSize:12}},"\uFF08",ea.count,"\u5C0F\u9898\uFF0C\u5171",ea.score,"\u5206\uFF09")),bn.createElement(Ce.Z,{dropdownRender:()=>ns(ea,nr),placement:"bottomLeft"},bn.createElement("div",{className:tt.more_style},bn.createElement("i",{className:"iconfont icon-sandian font12"})))),bn.createElement(da,{handleEditing:nu,isedit:Ro,setBigqitem:Wl,bigitem:Xi(ti({},ea),{indexs:nr+1}),setqitem:Wr=>No(void 0,null,function*(){var Po;(Po=ji.current)==null||Po.blur(),mi(Wr)}),qitem:zn,Itemid:Pe,getdata:To,data:ea.items})))))),bn.createElement("div",{id:"question-scroll-id",style:{overflow:Ro?"hidden":"auto"},className:tt.right},!(zn!=null&&zn.isadd)&&bn.createElement("div",{className:tt.title},!Ro&&bn.createElement("div",{style:{flex:1}},bn.createElement("span",{style:{color:"#000000",fontWeight:600,fontSize:16}}," ",(wi==null?void 0:wi.indexs)&&(0,ht.EM)(wi==null?void 0:wi.indexs),"\u3001\u3010",wi==null?void 0:wi.name,"\u3011"),bn.createElement(ot.Z,{title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0"},bn.createElement("i",{className:`${tt.edit} iconfont icon-bianji_Hover mr5 ml5 font18`,onClick:()=>{var ea;Gl.setFieldsValue({name:wi.name,item_type_en:(ea=Ii.find(nr=>nr.id==wi.question_type))==null?void 0:ea.nameType}),tu(!0)}})),bn.createElement("span",{style:{color:"#464F66",fontSize:16,fontWeight:400}},"\uFF08",wi==null?void 0:wi.count,"\u5C0F\u9898\uFF0C\u5171",wi==null?void 0:wi.score,"\u5206\uFF09"),(zn==null?void 0:zn.question_type)===6&&bn.createElement("span",{onClick:()=>{Ue.default.destroyAll(),Kt(2)},className:"current c-light-primary font14 bold-400"},"\u6279\u91CF\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00"),(zn==null?void 0:zn.question_type)===5&&bn.createElement(Ke.default,{defaultChecked:(Ct=(Bn=mt==null?void 0:mt.editData)==null?void 0:Bn.exercise)==null?void 0:Ct.show_challenge_task_pass,onChange:ea=>No(void 0,null,function*(){let nr=yield(0,te.ZP)(`/api/exercises/${Pe}/update_show_columns.json`,{method:"post",body:{show_challenge_task_pass:ea.target.checked}});(nr==null?void 0:nr.status)===0&&(Be.ZP.info("\u8BBE\u7F6E\u6210\u529F"),To({id:Qi.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u9898\u76EE\u63CF\u8FF0"),(zn==null?void 0:zn.question_type)===6&&bn.createElement("span",{style:{marginLeft:20},onClick:()=>{var ea,nr,Wr,Po;Ue.default.confirm({title:"\u7F16\u7A0B\u9898\u8BBE\u7F6E",icon:null,centered:!0,closable:!0,footer:null,content:bn.createElement("div",null,(zn==null?void 0:zn.question_type)===6&&bn.createElement(Ke.default,{defaultChecked:(nr=(ea=mt==null?void 0:mt.editData)==null?void 0:ea.exercise)==null?void 0:nr.show_hack_sets,onChange:Ao=>No(void 0,null,function*(){let Ir=yield(0,te.ZP)(`/api/exercises/${Pe}/update_show_columns.json`,{method:"post",body:{show_hack_sets:Ao.target.checked}});(Ir==null?void 0:Ir.status)===0&&(Be.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Ue.default.destroyAll(),To({id:Qi.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u6D4B\u8BD5\u7528\u4F8B"),bn.createElement("br",null),(zn==null?void 0:zn.question_type)===6&&bn.createElement(Ke.default,{defaultChecked:(Po=(Wr=mt==null?void 0:mt.editData)==null?void 0:Wr.exercise)==null?void 0:Po.show_hack_description,onChange:Ao=>No(void 0,null,function*(){let Ir=yield(0,te.ZP)(`/api/exercises/${Pe}/update_show_columns.json`,{method:"post",body:{show_hack_description:Ao.target.checked}});(Ir==null?void 0:Ir.status)===0&&(Be.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Ue.default.destroyAll(),To({id:Qi.current}))}),style:{marginBottom:10}},"\u5C55\u793A\u8BD5\u9898\u63CF\u8FF0"))})},className:"current c-light-primary font14 bold-400"},"\u7F16\u7A0B\u9898\u663E\u793A\u8BBE\u7F6E")),bn.createElement("div",{style:{display:"flex",alignItems:"center"}},(zn==null?void 0:zn.question_type)===5&&!Ro&&bn.createElement("a",{className:tt.shixun,href:`/shixuns/${zn==null?void 0:zn.shixun_identifier}/challenges?exercise=true`,target:"_blank"},bn.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u8BD5\u9898\u8BE6\u60C5"),!Ro&&((yt=kn==null?void 0:kn.exercise)==null?void 0:yt.exercise_status)==1&&[0,1,2,4,6].includes(zn==null?void 0:zn.question_type)&&bn.createElement(we.default.Item,{label:"\u5206\u503C",style:{margin:"0 20px"},required:!0},bn.createElement(De.Z,{precision:1,ref:ji,onChange:ea=>Wi(ea),value:Vi,onBlur:ea=>{du(ea.target.value,zn)}})),!Ro&&((ft=kn==null?void 0:kn.exercise)==null?void 0:ft.exercise_status)==1&&bn.createElement(ot.Z,{title:"\u5220\u9664"},bn.createElement("span",{onClick:()=>{Hl()},style:{marginRight:20},className:`${tt.delete} mr8 ml8 `},"\u5220\u9664")),(zn==null?void 0:zn.question_type)!==5&&!Ro&&bn.createElement(bn.Fragment,null,(zn==null?void 0:zn.is_my)==1&&bn.createElement(ot.Z,{title:"\u67E5\u770B\u539F\u9898"},bn.createElement("i",{className:`${tt.yuanti} iconfont icon-chakanyuanti mr8 ml8`,onClick:()=>{(zn==null?void 0:zn.question_type)==6?window.open(`/problems/newedit/${zn==null?void 0:zn.item_bank_hack_identifier}`):(zn==null?void 0:zn.question_type)==8?window.open(`/problemset/edit/${zn==null?void 0:zn.item_bank_hack_identifier}?type=1`):window.open(`/problemset/edit/${zn==null?void 0:zn.item_bank_id}`)}})),bn.createElement(ot.Z,{title:"\u52A0\u5165\u6211\u7684\u9898\u5E93"},bn.createElement("i",{className:`${tt.tianjia} iconfont icon-jiarushitiku mr8 ml8`,onClick:()=>{Cr.current=[],Ue.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u52A0\u5165\u6211\u7684\u9898\u5E93",maskClosable:!0,className:"custom-modal-divider",icon:null,content:bn.createElement("div",{className:`font14 ${tt.overflow}`,style:{maxHeight:500,overflow:"auto"}},bn.createElement("p",{className:"c-grey-333"},"\u8BF7\u9009\u62E9\u52A0\u5165\u7684\u6587\u4EF6\u5939"),bn.createElement(_t.Z,{spinning:!1},bn.createElement(ql.Z,{defaultValue:!0,value:Cr.current,onChange:ea=>Cr.current=ea}))),onOk:()=>No(void 0,null,function*(){var ea;(0,Ki.$l)({id:zn==null?void 0:zn.question_id,group_id:((ea=Cr==null?void 0:Cr.current)==null?void 0:ea[0])||""}).then(nr=>{(nr==null?void 0:nr.status)==0&&(Be.ZP.success("\u52A0\u5165\u6210\u529F"),oo())})})})}}))),!Ro&&(((Fn=kn==null?void 0:kn.exercise)==null?void 0:Fn.exercise_status)==1||((qt=kn==null?void 0:kn.exercise)==null?void 0:qt.exercise_status)==2&&((en=(Ot=le.userInfo)==null?void 0:Ot.course)==null?void 0:en.course_role)!=15||((Zt=kn==null?void 0:kn.exercise)==null?void 0:Zt.exercise_status)==3&&((hn=(ua=le.userInfo)==null?void 0:ua.course)==null?void 0:hn.course_role)!=15||((gn=kn==null?void 0:kn.exercise)==null?void 0:gn.exercise_status)==4&&(($r=(Zr=le.userInfo)==null?void 0:Zr.course)==null?void 0:$r.course_role)!=15)&&bn.createElement(ot.Z,{title:"\u7F16\u8F91\u8BD5\u9898"},bn.createElement("span",{onClick:()=>{(zn==null?void 0:zn.question_type)===6?he.history.push(`/problems/newedit/${zn==null?void 0:zn.hack_identifier}?type=exercises&express_id=${ko.exerciseId}&question_id=${zn==null?void 0:zn.question_id}&score=${zn==null?void 0:zn.question_score}&exercise=true&callback_url=/classrooms/${ko.coursesId}/exercise/add/${Pe}?type=2`):qo(!0)},className:`${tt.edit} ml8`},"\u7F16\u8F91")))),!Ro&&bn.createElement("div",null,bn.createElement("div",{className:tt.qcount},bn.createElement("span",{className:tt.score},zn==null?void 0:zn.question_score,"\u5206"),bn.createElement(kt.Z,{className:tt.qtitle,value:(zn==null?void 0:zn.index)+`\u3001${(zn==null?void 0:zn.question_type)==8?(er=zn==null?void 0:zn.program_attr)==null?void 0:er.description:zn==null?void 0:zn.question_title}`}),(zn==null?void 0:zn.high_resources_consume)&&bn.createElement(Pr.Z,{type:"shixun",style:{marginLeft:10}})),(zn==null?void 0:zn.question_type)===6&&bn.createElement(dn.Z,{onEdit:()=>Kt(1),className:"mt10",dataSource:(zn==null?void 0:zn.languages)||[]}),bn.createElement(fs,{exercise:mt,TagDiscipline:Ui,qitem:zn})),Ro&&bn.createElement("div",null,(zn==null?void 0:zn.question_type)<=1&&bn.createElement(Mt,{deleteitem:Hl,getTagData:jr,seveeditor:co,exerciseitem:kn,TagDiscipline:Ui,setisedit:qo,qitem:zn,init:oo,showTip:Tn}),(zn==null?void 0:zn.question_type)===5&&bn.createElement(Xu,{setqitem:mi,deleteitem:Hl,seveeditor:co,exerciseitem:kn,TagDiscipline:Ui,setisedit:qo,qitem:zn,showTip:Tn}),(zn==null?void 0:zn.question_type)===3&&bn.createElement(ya,{deleteitem:Hl,getTagData:jr,seveeditor:co,exerciseitem:kn,TagDiscipline:Ui,setisedit:qo,qitem:zn,init:oo,showTip:Tn}),(zn==null?void 0:zn.question_type)===2&&bn.createElement(no,{deleteitem:Hl,getTagData:jr,seveeditor:co,exerciseitem:kn,TagDiscipline:Ui,setisedit:qo,qitem:zn,init:oo,showTip:Tn}),(zn==null?void 0:zn.question_type)===4&&bn.createElement(Dt,{deleteitem:Hl,getTagData:jr,seveeditor:co,exerciseitem:kn,TagDiscipline:Ui,setisedit:qo,qitem:zn,init:oo,showTip:Tn}),(zn==null?void 0:zn.question_type)===7&&bn.createElement(us,{deleteitem:Hl,getTagData:jr,seveeditor:co,exerciseitem:kn,TagDiscipline:Ui,setisedit:qo,qitem:zn,init:oo,showTip:Tn}),(zn==null?void 0:zn.question_type)===8&&bn.createElement(ci,{deleteitem:Hl,getTagData:jr,seveeditor:co,exerciseitem:kn,TagDiscipline:Ui,setisedit:qo,qitem:zn,init:oo,showTip:Tn}))))))),bn.createElement("div",{className:tt.bottomdiv},bn.createElement("div",{className:tt.exercise_styles},((eo=kn==null?void 0:kn.exercise)==null?void 0:eo.exercise_status)==1&&bn.createElement(bn.Fragment,null,bn.createElement("span",{className:tt.spanBtn,onClick:()=>{if(Ro){nu();return}ni(!0),Ll(!0)}},"\u9898\u5E93\u9009\u9898"),bn.createElement(Ce.Z,{menu:{items:Es}},bn.createElement("span",{className:tt.spanBtn},"\u5BFC\u5165\u8BD5\u9898")),bn.createElement("span",{className:tt.spanBtn,onClick:()=>No(void 0,null,function*(){var ea;let nr=yield(0,te.ZP)(`/api/exercises/${ko==null?void 0:ko.exerciseId}/simulate_start_answer.json`,{method:"get",params:{coursesId:ko==null?void 0:ko.coursesId,categoryId:ko==null?void 0:ko.exerciseId}});(nr==null?void 0:nr.status)!=-1&&window.open(`/classrooms/${ko==null?void 0:ko.coursesId}/exercise/${ko==null?void 0:ko.exerciseId}/${(ea=le.userInfo)==null?void 0:ea.login}/initate_answer`)})},"\u6A21\u62DF\u8003\u8BD5"),bn.createElement("span",{className:tt.spanBtn,onClick:()=>{window.open(`/classrooms/${ko==null?void 0:ko.coursesId}/exercise/${ko==null?void 0:ko.exerciseId}/detail?random=false&tabs=2`)}},"\u8BD5\u5377\u9884\u89C8"),Ii==null?void 0:Ii.map(ea=>bn.createElement(ke.ZP,{className:tt.addQuestionBtn,key:ea.id,type:"primary",onClick:()=>{zu(ea.id)}},ea.name))),((sa=kn==null?void 0:kn.exercise)==null?void 0:sa.exercise_status)!=1&&bn.createElement(bn.Fragment,null,bn.createElement("span",{style:{width:"1022px"}})),bn.createElement("span",{className:tt.saveBtn,onClick:()=>No(void 0,null,function*(){var ea,nr,Wr;if(Ro){nu();return}const Po=Number(kn.exercise_types.q_scores);[100,120,150].includes(Po)||(yield new Promise((qr,zo)=>{Ue.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:bn.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",bn.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},Po),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>No(void 0,null,function*(){qr("")}),onCancel:()=>{zo()}})}));let Ao=(nr=(ea=kn==null?void 0:kn.exercise_question_types)==null?void 0:ea.filter(qr=>qr.question_type===5)[0])==null?void 0:nr.items,Ir=0;Ao==null||Ao.map(qr=>{qr.high_resources_consume&&(Ir=Ir+1)}),console.log(Ir),Ir>0?Se({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u63D0\u793A",count:Ir,fn:()=>{var qr;((qr=kn==null?void 0:kn.exercise)==null?void 0:qr.exercise_status)==1?(Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),he.history.push(`/classrooms/${ko==null?void 0:ko.coursesId}/exercise/${Pe}/detail?random=false&tabs=3`),Ql(!1)):he.history.back()}}}):((Wr=kn==null?void 0:kn.exercise)==null?void 0:Wr.exercise_status)==1?(Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),he.history.push(`/classrooms/${ko==null?void 0:ko.coursesId}/exercise/${Pe}/detail?random=false&tabs=3`),Ql(!1)):he.history.back()})},bn.createElement("i",{className:"iconfont icon-baocun1",style:{fontSize:15,marginRight:5}}),"\u4FDD\u5B58\u8BD5\u5377"))),bn.createElement(cn,{setScoreShow:Yi,ScoreShow:fi,exerciseitem:kn,getdata:oo}),pl&&bn.createElement(ui,{setScoreShow:ni,isshixuns:Zl,SpecificDifficulty:(to=kn==null?void 0:kn.exercise)==null?void 0:to.difficulty,isloadings:Hu,ScoreShow:pl,onOk:(ea,nr,Wr,Po,Ao)=>No(void 0,null,function*(){Cu(!0);let qr=yield Ul({exam_id:Pe,item_bank_ids:ea,shixun_ids:nr,shixun_copy_ids:Ao});Cu(!1),(qr==null?void 0:qr.status)===0&&Ue.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u65B0\u52FE\u9009\u7684\u8BD5\u9898\u5DF2\u7ECF\u6DFB\u52A0\u5230\u8BD5\u5377\uFF0C\u5982\u679C\u9700\u8981\u7EE7\u7EED\u6DFB\u52A0\u65B0\u8BD5\u9898\u8BF7\u70B9\u51FB\u201C\u7EE7\u7EED\u9009\u9898\u201D\uFF0C\u5C06\u56DE\u5230\u60A8\u4E0A\u6B21\u64CD\u4F5C\u7684\u9009\u9898\u9875\u9762",okText:"\u7EE7\u7EED\u9009\u9898",cancelText:"\u8FD4\u56DE\u8BD5\u5377",onOk:()=>{oo()},onCancel:()=>{ni(!1),oo()}})})}),bn.createElement(qu.Z,{sub_discipline_id:(Xr=kn==null?void 0:kn.exercise)!=null&&Xr.sub_discipline_id?[(Fo=kn==null?void 0:kn.exercise)==null?void 0:Fo.discipline_id,(kr=kn==null?void 0:kn.exercise)==null?void 0:kr.sub_discipline_id]:[],visible:ei,onCancel:()=>bi(!1),onOk:Oi}),bn.createElement(Ue.default,{title:"\u63D0\u793A",open:fu,confirmLoading:!1,centered:!0,okText:"\u8BBE\u7F6E\u89C4\u5219",cancelText:"\u4FEE\u6539\u8BD5\u5377",footer:bn.createElement("div",null,bn.createElement(ke.ZP,{onClick:()=>{Ql(!1),he.history.back()}},"\u7A0D\u540E\u518D\u8BF4"),bn.createElement(ke.ZP,{type:"primary",onClick:()=>{he.history.push(`/classrooms/${ko==null?void 0:ko.coursesId}/exercise/${Pe}/detail?random=false&tabs=3`),Ql(!1)}},"\u8BBE\u7F6E\u89C4\u5219")),onCancel:()=>{Ql(!1)}},bn.createElement("p",null,"\u8BD5\u5377\u521B\u5EFA\u5B8C\u6210\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u8BBE\u7F6E\u8003\u8BD5\u89C4\u5219\uFF1F")),bn.createElement(Ue.default,{centered:!0,title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0",open:hl,width:500,onOk:()=>Gl.submit(),onCancel:()=>tu(!1)},bn.createElement(we.default,{form:Gl,initialValues:{},onFinish:ea=>No(void 0,null,function*(){(yield(0,Ki.RK)(ti({id:Pe},ea))).status==0&&(Be.ZP.success("\u4FEE\u6539\u6210\u529F"),oo(),tu(!1))})},bn.createElement(we.default.Item,{name:"name",style:{marginBottom:0},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9898\u578B\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"},{validator(ea,nr){var Wr,Po,Ao,Ir;const qr=(Wr=Ii==null?void 0:Ii.find(zo=>zo.nameType==Gl.getFieldValue("item_type_en")))==null?void 0:Wr.id;return(Ir=(Ao=(Po=kn==null?void 0:kn.exercise_question_types)==null?void 0:Po.filter(zo=>zo.question_type!=qr))==null?void 0:Ao.map(zo=>zo==null?void 0:zo.name))!=null&&Ir.includes(nr)?Promise.reject(new Error("\u9898\u578B\u540D\u79F0\u5DF2\u5B58\u5728\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u9898\u578B\u540D\u79F0")):Promise.resolve()}}]},bn.createElement(We.default,{size:"large",maxLength:10,showCount:!0})),bn.createElement(we.default.Item,{hidden:!0,name:"item_type_en"},bn.createElement(We.default,{size:"large"})))),bn.createElement(an.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:wu},bn.createElement("div",{style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},"\u667A\u80FD\u5BFC\u5165"),bn.createElement(lu.Z,{stickyTop:-24,subDisciplineId:(Lo=kn==null?void 0:kn.exercise)!=null&&Lo.sub_discipline_id?[(wo=kn==null?void 0:kn.exercise)==null?void 0:wo.discipline_id,(gi=kn==null?void 0:kn.exercise)==null?void 0:gi.sub_discipline_id]:[],onCancel:()=>uu(!1),mode:3,gather:{exercise_id:Pe},onSuccess:()=>{uu(!1),oo()}}),bn.createElement("div",{style:{height:70}})),bn.createElement(dn.Q,{visible:!!su,setVisible:Kt,tip:su===2&&"\u8BBE\u7F6E\u5DF2\u6DFB\u52A0\u5728\u8BD5\u5377\u4E2D\u7684\u7F16\u7A0B\u9898\u6240\u5141\u8BB8\u4F7F\u7528\u7684\u7F16\u7A0B\u8BED\u8A00",dataSource:su===1?zn==null?void 0:zn.languages:[],onOk:ea=>No(void 0,null,function*(){const nr={languages:ea};su===1?nr.hack_id=zn==null?void 0:zn.hack_id:nr.exercise_id=Pe,(yield(0,te.ZP)("/api/problems/update_languages.json",{method:"post",body:nr})).status===0&&(Be.ZP.success("\u4FEE\u6539\u6210\u529F"),To({id:Qi.current}),Kt(!1))})}))};var Ci=(0,he.connect)(({user:le,exercise:Se,dispatch:Pe})=>({user:le,exercise:Se,dispatch:Pe}))(xl),zi=ae(81232),zl=ae(94287),$o=ae(36276),el=ae(87169),wl=ae(26692),la=ae(59301),Tl=Object.defineProperty,gl=Object.defineProperties,ml=Object.getOwnPropertyDescriptors,jl=Object.getOwnPropertySymbols,Dl=Object.prototype.hasOwnProperty,eu=Object.prototype.propertyIsEnumerable,Vl=(le,Se,Pe)=>Se in le?Tl(le,Se,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):le[Se]=Pe,br=(le,Se)=>{for(var Pe in Se||(Se={}))Dl.call(Se,Pe)&&Vl(le,Pe,Se[Pe]);if(jl)for(var Pe of jl(Se))eu.call(Se,Pe)&&Vl(le,Pe,Se[Pe]);return le},Va=(le,Se)=>gl(le,ml(Se)),so=(le,Se)=>{var Pe={};for(var rt in le)Dl.call(le,rt)&&Se.indexOf(rt)<0&&(Pe[rt]=le[rt]);if(le!=null&&jl)for(var rt of jl(le))Se.indexOf(rt)<0&&eu.call(le,rt)&&(Pe[rt]=le[rt]);return Pe},Xo=(le,Se,Pe)=>new Promise((rt,mt)=>{var Vn=dt=>{try{Jt(Pe.next(dt))}catch($t){mt($t)}},pn=dt=>{try{Jt(Pe.throw(dt))}catch($t){mt($t)}},Jt=dt=>dt.done?rt(dt.value):Promise.resolve(dt.value).then(Vn,pn);Jt((Pe=Pe.apply(le,Se)).next())});const fl=le=>{var Se=le,{classroomList:Pe,globalSetting:rt,problemset:mt,loading:Vn,exercise:pn,user:Jt,dispatch:dt}=Se,$t=so(Se,["classroomList","globalSetting","problemset","loading","exercise","user","dispatch"]),Bn,Ct,yt,ft,Fn,qt,Ot,en,Zt,ua,hn,gn,Zr,$r;const er=(0,he.useParams)(),[eo,sa]=(0,b.useState)(!1),{userInfo:to}=Jt,[Xr]=we.default.useForm();let[Fo,kr]=(0,b.useState)({});const[Lo,wo]=(0,b.useState)(1),[gi,kn]=(0,b.useState)(""),[Ai]=(0,he.useSearchParams)(),[pi,Ho]=(0,b.useState)(!1),[zn,mi]=(0,b.useState)(!1),[Vi,Wi]=(0,b.useState)(!1),[ji,Qi]=(0,b.useState)(""),[wi,Wl]=(0,b.useState)(!1),[Al,vl]=(0,b.useState)(!1);(0,b.useEffect)(()=>{dt({type:"problemset/getEditDisciplines",payload:{source:"new_question",identifier:er==null?void 0:er.coursesId}}),dt({type:"globalSetting/footerToggle",payload:!1}),Xr.setFieldsValue({difficulty:2,courseid:[]})},[]),(0,b.useEffect)(()=>{er.exerciseId&&Xo(void 0,null,function*(){var Tr,ei,bi;const fi=yield dt({type:"exercise/editExercise",payload:{categoryId:er.exerciseId}});(fi==null?void 0:fi.status)!==-1&&(((Tr=fi==null?void 0:fi.exercise)==null?void 0:Tr.exercise_status)===2||((ei=fi==null?void 0:fi.exercise)==null?void 0:ei.exercise_status)===3||((bi=fi==null?void 0:fi.exercise)==null?void 0:bi.exercise_status)===4?Wi(!0):Wi(!1))})},[er]),(0,b.useEffect)(()=>{if(er.exerciseId){let Tr=pn.editData.exercise;vl(Tr==null?void 0:Tr.set_question_sub_discipline),Xr.setFieldsValue(Va(br({},Tr),{courseid:Tr!=null&&Tr.sub_discipline_id?[Tr==null?void 0:Tr.discipline_id,Tr==null?void 0:Tr.sub_discipline_id]:[]}))}},[pn]),(0,b.useEffect)(()=>{Ai.get("type")==="2"&&(kn(er.exerciseId),wo(2))},[Ai.get("type")]),(0,b.useEffect)(()=>{var Tr;let ei=(Tr=mt==null?void 0:mt.disciplinesData)==null?void 0:Tr.checked;ei!=null&&ei.sub_discipline_id&&Xr.setFieldsValue({courseid:[ei==null?void 0:ei.discipline_id,ei==null?void 0:ei.sub_discipline_id]})},[(Bn=mt==null?void 0:mt.disciplinesData)==null?void 0:Bn.checked]);function Ro(Tr,ei){return Xo(this,null,function*(){var bi,fi,Yi,pl;yield Xr.validateFields();const ni=Xr.getFieldsValue(),{courseid:Zl}=ni,[Ll,ll]=Zl;ni.sub_discipline_id=ll,ni.is_md=!0,ni.time=parseInt(ni.time)>9999?9999:ni.time;const di=yield dt({type:"exercise/addExercise",payload:br(br({},ni),er)});di.status===0?(yield(0,te.ZP)(`/api/courses/${er==null?void 0:er.coursesId}/exercises/notice_at.json`,{method:"POST",body:{course_id:er==null?void 0:er.coursesId,id:(bi=di==null?void 0:di.data)==null?void 0:bi.exercise_id,time:Tr}}),Ui((fi=di.data)==null?void 0:fi.exercise_id),kn((Yi=di==null?void 0:di.data)==null?void 0:Yi.exercise_id),wo(2),Ho(!1),he.history.replace(`/classrooms/${er.coursesId}/exercise/add/${(pl=di.data)==null?void 0:pl.exercise_id}?type=2`)):Be.ZP.error(di.message),ei()})}function qo(Tr){kr(br({},Tr))}function Ui(Tr){return Xo(this,null,function*(){if(!(Fo!=null&&Fo.ec_point_ids))return;const ei=br({},Fo);delete ei.id;let bi=yield(0,te.ZP)(`/api/ec_courses/${Fo==null?void 0:Fo.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:br({exercise_id:Tr},ei)})})}return la.createElement("div",{style:{background:"#ffffff",marginTop:-8,padding:8,minHeight:"100vh",paddingBottom:64}},la.createElement("section",{className:"edu-container"},la.createElement("section",{className:"animated fadeIn"},la.createElement("aside",{className:"mt10"},to&&la.createElement(Re.Z,{separator:">"},la.createElement(Re.Z.Item,null,la.createElement(he.Link,{to:`/classrooms/${er.coursesId}/exercise`},(Ct=to==null?void 0:to.course)==null?void 0:Ct.course_name)),la.createElement(Re.Z.Item,null,la.createElement(he.Link,{to:`/classrooms/${er.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")),la.createElement(Re.Z.Item,null,er.exerciseId?"\u7F16\u8F91\u8BD5\u5377":"\u65B0\u5EFA\u8BD5\u5377")))),er.exerciseId&&la.createElement("div",{style:{display:"inline-flex",background:"rgba(233, 146, 55, 0.05)",borderRadius:4,height:40,lineHeight:"40px",width:"100%",padding:"0px 10px",alignItems:"center",marginTop:20}},la.createElement(el.Z,{style:{marginRight:5,color:"#E99237"}}),la.createElement("span",{style:{flex:1,color:"#E99237"}},"\u53D1\u5E03\u540E\u7684\u8BD5\u5377\u4E0D\u5141\u8BB8\u8FDB\u884C\u589E\u52A0/\u5220\u9664\u8BD5\u9898\u548C\u4FEE\u6539\u5206\u503C\u7B49\u64CD\u4F5C\uFF0C\u82E5\u9700\u8981\u4E8C\u6B21\u4F7F\u7528\uFF0C\u53EF\u5C06\u8BD5\u5377\u52A0\u5165\u8BD5\u5377\u5E93\u4E2D\u8FDB\u884C\u7F16\u8F91"),la.createElement("span",{className:ze.addQuestionBtn,onClick:()=>{dt({type:"exercise/setActionTabs",payload:{key:"\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93",selectArrs:[er.exerciseId]}})}},"\u52A0\u5165\u8BD5\u5377\u5E93")),la.createElement($o.Z,{haveInit:!0,init:()=>{Qi(new Date)}}),la.createElement("div",{className:"bg-white"},la.createElement("div",{style:{display:"flex",justifyContent:"center",paddingTop:20,alignItems:"center"}},la.createElement("div",{onClick:()=>{if(zn){Be.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u8BD5\u9898\u3002");return}wo(1)},className:Lo===1?ze.selectdiv:ze.divitem},la.createElement(zi.Z,{number:1,active:Lo===1,className:"mr10"}),la.createElement("span",null,"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F")),la.createElement("div",{style:{width:188,border:"1px dotted #9096A3",margin:"0px 30px",height:1}}),la.createElement("div",{onClick:()=>{if(!er.exerciseId&&!gi){Be.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u57FA\u7840\u4FE1\u606F\u518D\u65B0\u5EFA\u8BD5\u9898");return}wo(2),!gi&&kn(er.exerciseId)},className:Lo!==1?ze.selectdiv:ze.divitem},la.createElement(zi.Z,{number:2,active:Lo!==1,className:"mr10"}),la.createElement("span",null,"\u7F16\u8F91\u8BD5\u9898"))),Lo===2&&la.createElement("div",{className:"tc"},la.createElement(zl.Z,{defaultValue:(ft=(yt=pn==null?void 0:pn.editData)==null?void 0:yt.exercise)==null?void 0:ft.exercise_name,onFinish:Tr=>Xo(void 0,null,function*(){var ei,bi,fi,Yi,pl,ni,Zl,Ll,ll,di,fu,Ql;return Tr.trim()===((bi=(ei=pn==null?void 0:pn.editData)==null?void 0:ei.exercise)==null?void 0:bi.exercise_name)?!0:(yield(0,Ki.wy)({exercise_name:Tr,exercise_description:(Yi=(fi=pn==null?void 0:pn.editData)==null?void 0:fi.exercise)==null?void 0:Yi.exercise_description,sub_discipline_id:(ni=(pl=pn==null?void 0:pn.editData)==null?void 0:pl.exercise)==null?void 0:ni.sub_discipline_id,time:(Ll=(Zl=pn==null?void 0:pn.editData)==null?void 0:Zl.exercise)==null?void 0:Ll.time,exerciseId:(di=(ll=pn.editData)==null?void 0:ll.exercise)==null?void 0:di.id,difficulty:(Ql=(fu=pn.editData)==null?void 0:fu.exercise)==null?void 0:Ql.difficulty})).status===0?(Xr.setFieldValue("exercise_name",Tr),!0):!1})}),la.createElement("div",{style:{fontSize:14}},la.createElement("span",{style:{color:"#5F6368"}},"\u7B54\u9898\u65F6\u957F",la.createElement("span",{style:{color:"#000000",marginLeft:8}},((qt=(Fn=pn==null?void 0:pn.editData)==null?void 0:Fn.exercise)==null?void 0:qt.time)||"\u4E0D\u9650")),la.createElement("span",{style:{margin:"0px 30px",color:"#5F6368"}},"\u96BE\u5EA6",la.createElement("span",{style:{color:"#000000",marginLeft:8}},((en=(Ot=pn==null?void 0:pn.editData)==null?void 0:Ot.exercise)==null?void 0:en.difficulty)===1?"\u7B80\u5355":((ua=(Zt=pn==null?void 0:pn.editData)==null?void 0:Zt.exercise)==null?void 0:ua.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),la.createElement("span",{style:{marginRight:30,color:"#5F6368"}},"\u8BD5\u9898\u603B\u6570",la.createElement("span",{style:{color:"#000000",marginLeft:8}},((gn=(hn=pn==null?void 0:pn.editData)==null?void 0:hn.exercise_types)==null?void 0:gn.q_counts)||0)),la.createElement("span",{style:{color:"#5F6368"}},"\u603B\u5206",la.createElement("span",{style:{color:"#000000",marginLeft:8}},($r=(Zr=pn==null?void 0:pn.editData)==null?void 0:Zr.exercise_types)==null?void 0:$r.q_scores))))),Lo===1&&la.createElement("div",null,la.createElement("section",{className:[ze.bg,"mt20"].join(" "),style:{padding:"30px 120px 300px 120px"}},la.createElement(we.default,{form:Xr,colon:!1,layout:"horizontal",labelCol:{span:4},wrapperCol:{span:20},initialValues:{time:60},onFinish:Tr=>Xo(void 0,null,function*(){var ei,bi,fi,Yi,pl;if(sa(!0),Ho(!0),er.exerciseId){Tr.exerciseId=(bi=(ei=pn.editData)==null?void 0:ei.exercise)==null?void 0:bi.id,Tr.sub_discipline_id=Tr.courseid[Tr.courseid.length-1],yield(0,Ki.wy)(Va(br({},Tr),{set_question_sub_discipline:Al})),wo(2),Ui(er==null?void 0:er.exerciseId),kn(er.exerciseId),sa(!1),Ho(!1);return}const ni=yield(0,te.ZP)(`/api/courses/${er==null?void 0:er.coursesId}/exercises/overload_alert.json`,{method:"get",params:{course_id:er==null?void 0:er.coursesId}});if(ni!=null&&ni.alert)dt({type:"classroomList/setActionTabs",payload:{key:"\u9884\u7EA6\u5F39\u7A97"}});else{const{courseid:Zl}=Tr,[Ll,ll]=Zl;Tr.sub_discipline_id=ll,Tr.is_md=!0,Tr.time=parseInt(Tr.time)>9999?9999:Tr.time,Tr.set_question_sub_discipline=Al;const di=yield dt({type:"exercise/addExercise",payload:Va(br(br({},Tr),er),{category_id:Ai.get("catalogue")||null})});di.status===0&&(Ui((fi=di.data)==null?void 0:fi.exercise_id),he.history.replace(`/classrooms/${er.coursesId}/exercise/add/${(Yi=di.data)==null?void 0:Yi.exercise_id}?type=2`),kn((pl=di==null?void 0:di.data)==null?void 0:pl.exercise_id),wo(2)),Ho(!1)}sa(!1)}),className:ze.formWrap},la.createElement(we.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u540D\u79F0",className:ze.baseLineHeight,rules:[{required:!0,validator:(Tr,ei)=>{var bi;return((bi=ei==null?void 0:ei.replaceAll(" ",""))==null?void 0:bi.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},la.createElement(We.default,{maxLength:60,className:ze.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),la.createElement(we.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"courseid",className:ze.baseLineHeight},la.createElement(xe.Z,{disabled:Vi,placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:mt.courseOptions,className:ze.baseFormItem,size:"large",popupClassName:ze.cascaderPopup,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14},allowClear:!0})),la.createElement("div",{className:ze.concat},la.createElement("div",null,la.createElement(Ke.default,{checked:Al,onChange:Tr=>{vl(Tr.target.checked)},style:{color:"#000"}},"\u8BBE\u7F6E\u8BE5\u65B9\u5411&\u8BFE\u7A0B\u4E3A\u8BD5\u9898\u6A21\u7248\uFF08\u521B\u5EFA\u65B0\u8BD5\u9898\u81EA\u52A8\u4F7F\u7528\u8BE5\u65B9\u5411&\u8BFE\u7A0B\uFF09")),la.createElement("div",null,"\u6CA1\u6709\u5408\u9002\u7684\u65B9\u5411&\u8BFE\u7A0B\uFF1F",la.createElement("a",{onClick:()=>Wl(!0)},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"))),la.createElement(we.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:ze.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},la.createElement(Oe.ZP.Group,{className:ze.radiogroup,disabled:Vi},la.createElement(Oe.ZP.Button,{className:ze.easy,value:1},"\u7B80\u5355"),la.createElement(Oe.ZP.Button,{className:ze.medium,value:2},"\u9002\u4E2D"),la.createElement(Oe.ZP.Button,{className:ze.hard,value:3},"\u56F0\u96BE"))),la.createElement(we.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:ze.baseLineHeight},la.createElement("div",{style:{display:"flex",width:"100%"}},la.createElement(we.default.Item,{name:"time",noStyle:!0},la.createElement(De.Z,{disabled:Vi,min:1,max:9999,className:ze.baseFormItem,style:{width:220},maxLength:60,placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),la.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),la.createElement(we.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exercise_description"},la.createElement(We.default.TextArea,{disabled:Vi,rows:6,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"}))),la.createElement(wn,{exercise_id:er==null?void 0:er.exerciseId,setitem:qo})),la.createElement("div",{className:ze.bottmodiv},la.createElement(ke.ZP,{className:`${ze.cancelBtn}`,type:"primary",onClick:()=>{he.history.back()}},"\u53D6\u6D88"),la.createElement(ke.ZP,{loading:pi,onClick:()=>{Xr.validateFields(),Xr.submit()},type:"primary",className:`${ze.confirmBtn} ml20`},"\u4E0B\u4E00\u6B65")),la.createElement(z,{setsubloading:Ho,onModalOk:Ro})),Lo===2&&la.createElement("div",null,la.createElement(Ci,{key:ji,setisedits:mi,setitemid:kn,itemid:gi}))),la.createElement(wl.Z,{open:wi,onCancel:()=>{Wl(!1)}}))};var mu=(0,he.connect)(({classroomList:le,loading:Se,user:Pe,problemset:rt,globalSetting:mt,exercise:Vn})=>({classroomList:le,globalSetting:mt,problemset:rt,user:Pe,exercise:Vn,loading:Se.effects}))(fl)},48722:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return Ye}});var b=ae(78241),he=ae(8591),we=ae(43418),Be=ae(71418),Re=ae(6848),We=ae(57809),xe=ae(5112),Ke=ae(92832),Oe=ae(1710),De=ae(59301),ke=ae(90115),ze=ae(64866),Ue=ae(22566),ue={radio_con:"radio_con___cvwXd",result_con:"result_con___m5Gmr",result_title:"result_title___D7L1n"},E=ae(16624),a=ae(30720),x=ae(8658),y=ae(59301),z=Object.defineProperty,te=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,Fe=(Ge,$e,be)=>$e in Ge?z(Ge,$e,{enumerable:!0,configurable:!0,writable:!0,value:be}):Ge[$e]=be,Qe=(Ge,$e)=>{for(var be in $e||($e={}))ie.call($e,be)&&Fe(Ge,be,$e[be]);if(se)for(var be of se($e))Ee.call($e,be)&&Fe(Ge,be,$e[be]);return Ge},Le=(Ge,$e)=>te(Ge,oe($e)),st=(Ge,$e,be)=>new Promise((vt,ct)=>{var bt=xn=>{try{En(be.next(xn))}catch(Wt){ct(Wt)}},At=xn=>{try{En(be.throw(xn))}catch(Wt){ct(Wt)}},En=xn=>xn.done?vt(xn.value):Promise.resolve(xn.value).then(bt,At);En((be=be.apply(Ge,$e)).next())});const Me=({shixunHomeworks:Ge,exercise:$e,loading:be,dispatch:vt})=>{var ct,bt,At;const{commonHeader:En}=$e,[xn,Wt]=(0,De.useState)([]),[Pt,Te]=(0,De.useState)(Le(Qe({},(0,ke.useParams)()),{page:1,limit:10})),[et,Yt]=(0,De.useState)([]),[wn,Lt]=(0,De.useState)(""),[_t,Ce]=(0,De.useState)(1),[ot]=b.default.useForm(),[an,tt]=(0,De.useState)({}),[ht,Jn]=(0,De.useState)(null),[dn,Qt]=(0,De.useState)(!1),[kt,Wn]=(0,De.useState)([]),[ra,tn]=(0,De.useState)(null),[Ba,Ka]=(0,De.useState)(0),[Fa,jn]=(0,De.useState)(0),[Ha,Pa]=(0,De.useState)(!1),fr=[{title:"\u5E8F\u53F7",dataIndex:"1",width:80,render:(St,Tt,ja)=>(Pt.page-1)*Pt.limit+ja+1},{title:"\u59D3\u540D",dataIndex:"user_name",ellipsis:!0,width:180},{title:"\u5B66\u53F7",dataIndex:"student_id",align:"left",sorter:!0,render:St=>St||"--"},{title:"\u5206\u73ED",dataIndex:"user_group_name",align:"left",render:(St,Tt)=>y.createElement("div",{className:ue.banding,title:St||"--"},St||"--")},{title:"\u63D0\u4EA4\u72B6\u6001",width:200,dataIndex:"commit_status",render:(St,Tt)=>St===0?y.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):St===1?y.createElement("span",{style:{color:"#DF3042"}},!Tt.is_make_up&&"\u8003\u8BD5\u4E2D",Tt.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):St===2?y.createElement("span",{style:{color:"#5AB891"}},!Tt.is_make_up&&!Tt.is_force_commit&&"\u5DF2\u4EA4\u5377",Tt.is_make_up&&!Tt.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",Tt.is_make_up&&Tt.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!Tt.is_make_up&&Tt.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):y.createElement("span",{style:{color:"#5AB891"}},!Tt.is_make_up&&!Tt.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",Tt.is_make_up&&!Tt.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",Tt.is_make_up&&Tt.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!Tt.is_make_up&&Tt.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)")},{title:(En==null?void 0:En.exercise_type)==2&&!(0,E.dE)()?"\u6700\u9AD8\u6210\u7EE9":"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:(St,Tt)=>Tt.commit_status===0||Tt.commit_status===1?"--":!Tt.open_total_score&&(0,E.dE)()?"\u8001\u5E08\u5BA1\u6838\u4E2D":(St=typeof St=="number"?Number(St):St,console.log(typeof St),St||(St=0),St===100?y.createElement("span",{className:"c-green"},St):St>60?y.createElement("span",{className:"c-orange"},St):St==Fa*.6?y.createElement("span",{className:"c-red"},St):y.createElement("span",null,St))}].filter(St=>!!St);(0,De.useEffect)(()=>{var St;((St=$e.actionTabs)==null?void 0:St.key)=="\u6D4B\u8BD5AI\u8BC4\u5206"&&(Wn([]),tn(null),oa(),da(Pt))},[(ct=$e.actionTabs)==null?void 0:ct.key]);const oa=()=>st(void 0,null,function*(){var St;if(!((St=$e.actionTabs)!=null&&St.showSelectQuestion))return;const Tt=yield(0,ze.ZP)(`/api/exercises/${Pt==null?void 0:Pt.categoryId}/all_subj_questions.json`,{method:"get"});Tt.status==0&&Wn(Tt.data)}),Zn=(St,Tt)=>{Pt.page=St,Pt.limit=Tt,Te(Qe({},Pt)),da(Pt)},da=St=>st(void 0,null,function*(){Pa(!0);const Tt=yield(0,ze.ZP)(`/api/exercises/${Pt.categoryId||(Pt==null?void 0:Pt.exerciseId)}/exercise_users.json`,{method:"get",params:St});Tt.status==0&&(Ka(Tt.data.total_count),Te(Le(Qe({},Pt),{total:Tt.data.total_count})),Wt(Tt.data.exercise_users),jn(Tt.data.total_score)),Pa(!1)}),Aa=St=>{Pt.search=St,Pt.page=1,ot.resetFields(),tt({}),Yt([]),Jn(null),Te(Qe({},Pt)),da(Pt)},xa=St=>st(void 0,null,function*(){var Tt,ja;const Ca=Qe({},an);if(!((Tt=St==null?void 0:St.content)!=null&&Tt.trim())){he.ZP.warning("\u8BF7\u8F93\u5165\u7B54\u9898\u5185\u5BB9\uFF01");return}Ca.content=St==null?void 0:St.content,Ca.attachment_ids=(ja=St==null?void 0:St.attachment_ids)==null?void 0:ja.map(Wa=>Wa.response.id),_a(Ca)}),_a=St=>st(void 0,null,function*(){var Tt;Qt(!0);const{showSelectQuestion:ja,ai_review_settings:Ca}=$e.actionTabs,Wa=yield(0,ze.ZP)(`/api/exercises/${(Pt==null?void 0:Pt.categoryId)||(Pt==null?void 0:Pt.exerciseId)}/test_ai_review.json`,{method:"post",body:Le(Qe({},St),{exercise_question_id:ja?ra:(Tt=$e.actionTabs)==null?void 0:Tt.questionId,ai_review_settings:Ca})});if([0,-3].includes(Wa.status)){Wa.status==0&&he.ZP.success("\u8BC4\u5206\u6D4B\u8BD5\u6210\u529F\uFF01"),Jn(Wa);const Da=document.querySelector(".modal-ai-pfcs");if(Da){const Ta=Da.querySelector(".ant-modal-body");Ta&&(Ta.scrollTop=Ta.scrollHeight)}}Qt(!1)}),Sn=()=>{vt({type:"exercise/setActionTabs",payload:{key:""}}),Ce(1),on()},on=()=>{ot.resetFields(),tt({}),Yt([]),Lt(""),Jn(null)};return y.createElement(we.default,{className:"modal-ai-pfcs",width:1150,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u6D4B\u8BD5AI\u8BC4\u5206",confirmLoading:dn,open:((bt=$e.actionTabs)==null?void 0:bt.key)==="\u6D4B\u8BD5AI\u8BC4\u5206",destroyOnClose:!0,onCancel:()=>Sn(),okText:ht?"\u91CD\u65B0\u6D4B\u8BD5":"\u5F00\u59CB\u6D4B\u8BD5",onOk:()=>{var St;if((St=$e.actionTabs)!=null&&St.showSelectQuestion&&!ra)return he.ZP.warning("\u8BF7\u9009\u62E9\u9898\u76EE\uFF01");if(_t==1){if(et.length==0)return he.ZP.warning("\u8BF7\u9009\u62E9\u4E00\u4F4D\u5B66\u751F\u8BD5\u5377\u8FDB\u884C\u8BC4\u5206\u6D4B\u8BD5\uFF01");_a({exercise_user_id:et[0]})}else _t==2&&ot.submit()}},y.createElement(Be.Z,{spinning:dn,tip:"\u6D4B\u8BD5AI\u8BC4\u5206\u4E2D\u2026\u2026"},((At=$e.actionTabs)==null?void 0:At.showSelectQuestion)&&y.createElement("div",{className:"flex item-center justify-between mb10"},y.createElement("div",{style:{width:120,margin:"0 10px",display:"flex",alignItems:"center"}},y.createElement("span",{style:{color:"red",marginRight:5}},"*"),"\u9009\u62E9\u9898\u76EE",y.createElement(Re.Z,{title:"\u667A\u80FD\u8BC4\u9605\u76EE\u524D\u4EC5\u652F\u6301\u7B80\u7B54\u9898\uFF08\u542B\u7EC4\u5408\u9898\u4E2D\u7684\u7B80\u7B54\u9898\uFF09"},y.createElement("i",{className:`iconfont icon-tishixiaowenhao ${ue.title_icon}`,style:{cursor:"pointer",marginLeft:5,fontSize:"14px"}}))),y.createElement(We.default,{style:{width:"calc(100% - 110px)"},size:"large",placeholder:"\u8BF7\u9009\u62E9\u9898\u76EE",value:ra,onChange:St=>tn(St)},kt==null?void 0:kt.map(St=>y.createElement(We.default.Option,{key:St==null?void 0:St.id,value:St==null?void 0:St.id},St==null?void 0:St.question_title)))),y.createElement("div",{className:ue.radio_con},y.createElement("span",{style:{marginRight:32}},"\u6D4B\u8BD5\u65B9\u5F0F"),y.createElement(xe.ZP.Group,{onChange:St=>{St.target.value==1&&Zn(1,10),Ce(St.target.value),on()},value:_t,options:[{label:"\u9009\u62E9\u5B66\u751F\u7B54\u6848",value:1,style:{marginRight:30,color:"#000"}},{label:"\u8F93\u5165\u7B54\u9898\u5185\u5BB9",value:2,style:{marginRight:30,color:"#000"}}]})),_t==1&&y.createElement(y.Fragment,null,y.createElement("div",{className:"flex justify-between item-center mb10"},y.createElement("div",{style:{fontSize:"14px",color:"#FA6400"}},"\u63D0\u793A\uFF1A","\u53EA\u80FD\u9009\u62E9\u5DF2\u63D0\u4EA4\u8BD5\u5377\u7684\u5B66\u751F\u8FDB\u884C\u8BC4\u5206\u6D4B\u8BD5"),y.createElement(Ke.default.Search,{style:{width:487},size:"large",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:wn,onChange:St=>Lt(St.target.value),onSearch:Aa})),y.createElement(Oe.default,{rowSelection:{type:"radio",selectedRowKeys:et,onChange:(St,Tt)=>{Yt(St)},getCheckboxProps:St=>({disabled:[0,1].includes(St==null?void 0:St.commit_status)})},loading:Ha,rowKey:"exercise_user_id",dataSource:xn||[],columns:fr,pagination:{current:Pt.page,hideOnSinglePage:!0,showQuickJumper:!0,showSizeChanger:!0,pageSize:Pt.limit,className:"mb0",pageSizeOptions:["10","20","50","100","200"],total:Ba,size:"default",showTotal:Ue.rU,onChange:Zn},onChange:(St,Tt,ja)=>{Pt.page=1,ja.order===void 0?(Pt.order_type=null,Pt.order=null):(Pt.order_type=ja.order==="descend"?"desc":"asc",Pt.order=ja.field),Te(Qe({},Pt)),da(Pt)}})),_t==2&&y.createElement("div",{style:{marginTop:20}},y.createElement(b.default,{form:ot,className:ue.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{tt(Qe({},ot.getFieldsValue()))},onFinish:xa},y.createElement(b.default.Item,{name:"content",label:"",style:{marginBottom:0}},y.createElement(a.Z,{watch:!0})))),ht&&y.createElement("div",{className:ue.result_con},y.createElement("div",{className:ue.result_title},"AI\u8BC4\u5206\u7ED3\u679C"),(ht==null?void 0:ht.status)==0&&y.createElement("div",{className:"p20"},y.createElement("div",{className:"mb5"},y.createElement("span",{style:{color:"#333",fontWeight:"bold"}},"\u8BC4\u5206\uFF1A"),ht==null?void 0:ht.score),y.createElement("div",{className:"flex"},y.createElement("span",{style:{color:"#333",fontWeight:"bold",whiteSpace:"nowrap",lineHeight:"26px"}},"\u8BC4\u8BED\uFF1A"),y.createElement(x.Z,{value:ht==null?void 0:ht.content,style:{fontSize:"14px"}}))),(ht==null?void 0:ht.status)==-3&&y.createElement("div",{className:"p20"},y.createElement(x.Z,{value:ht==null?void 0:ht.message,style:{fontSize:"14px"}})))))};var Ye=(0,ke.connect)(({shixunHomeworks:Ge,exercise:$e,loading:be,user:vt})=>({shixunHomeworks:Ge,exercise:$e,loading:be.effects,user:vt}))(Me)},13778:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return E}});var b=ae(59301),he=ae(8591),we=ae(43418),Be=ae(19842),Re=ae(54580),We=ae(3113),xe=ae(11662),Ke=ae(22566),Oe=ae(64866),De=ae(90115),ke={customModal:"customModal___bVzUV",content:"content___oKhZq",upload:"upload___nPxEL",infoText:"infoText___gZEJF",okBtn:"okBtn___CVo2A",fileList:"fileList___tauGN",fileName:"fileName___T_8JX",selectitems:"selectitems___imW2Y"},ze=ae(59301),Ue=(a,x,y)=>new Promise((z,te)=>{var oe=Ee=>{try{ie(y.next(Ee))}catch(Fe){te(Fe)}},se=Ee=>{try{ie(y.throw(Ee))}catch(Fe){te(Fe)}},ie=Ee=>Ee.done?z(Ee.value):Promise.resolve(Ee.value).then(oe,se);ie((y=y.apply(a,x)).next())}),E=({visible:a,onOk:x,onCancel:y,sub_discipline_id:z=[]})=>{const[te,oe]=(0,b.useState)([]),[se,ie]=(0,b.useState)(!1),Ee=(0,De.useParams)(),[Fe,Qe]=(0,b.useState)([]),[Le,st]=(0,b.useState)([]);(0,b.useEffect)(()=>{a?Me():(st([]),oe([]),ie(!1))},[a]);const Me=()=>Ue(void 0,null,function*(){const ct=yield(0,Oe.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});Qe(ct.disciplines||[]),st((z==null?void 0:z.length)>0?z:[])}),Ye=()=>{if((Le==null?void 0:Le.length)===0)return he.ZP.warning("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF01");console.log("subDisciplineId",Le),ie(!0),x(te,Le[1],()=>{ie(!1)})},Ge=()=>{y()},$e=()=>{const ct=`${xe.Z.API_SERVER}/api/courses/${Ee.coursesId}/exercises/down_template`;(0,Ke.Nd)(null,ct)},be=ct=>{const bt={name:ct.name,uid:ct.uid,file:ct};return oe([bt]),!1},vt=()=>{oe([])};return ze.createElement(we.default,{title:"\u5BFC\u5165\u8BD5\u9898",open:a,onOk:Ye,centered:!0,wrapClassName:ke.customModal,onCancel:Ge,width:663,okText:"\u786E\u8BA4",okButtonProps:{className:ke.okBtn},cancelText:"\u53D6\u6D88",confirmLoading:se},ze.createElement("div",{className:ke.content},ze.createElement("aside",null,ze.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA41"),ze.createElement("ul",null,ze.createElement("li",null,ze.createElement("span",{style:{color:"#5F6367"}},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),ze.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginLeft:20},onClick:$e},"\u4E0B\u8F7D\u8003\u8BD5\u8BD5\u9898\u6A21\u677F"),ze.createElement("i",{className:"iconfont icon-xiazai4 ml10",onClick:$e,style:{fontSize:14,cursor:"pointer",color:"#0152d9"}})),ze.createElement("li",{style:{color:"#FA6400"},className:"mt10"},"\u63D0\u793A"),ze.createElement("li",{className:ke.infoText},"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B "),ze.createElement("li",{className:ke.infoText},"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),ze.createElement("li",{className:ke.infoText},"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),ze.createElement("li",{className:ke.infoText},"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))),ze.createElement("aside",{style:{marginTop:22}},ze.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA42"),ze.createElement("ul",{style:{flex:1}},ze.createElement("li",{style:{color:"#5F6367"}},"\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF0C\u4E0A\u4F20\u7F16\u8F91\u597D\u7684\u8BD5\u9898\u6587\u6863\uFF0C\u786E\u5B9A\u5BFC\u5165"),a&&ze.createElement(ze.Fragment,null,ze.createElement(Be.Z,{value:Le,className:ke.selectitems,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Fe,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(ct,bt)=>{st(ct||[])}}),ze.createElement("br",null),ze.createElement(Re.default,{action:`${xe.Z.API_SERVER}/api/attachments.json`,beforeUpload:be,onRemove:vt,withCredentials:!0,fileList:te,accept:".xls,.xlsx",showUploadList:!1},ze.createElement(We.ZP,{className:ke.upload,type:"primary",icon:ze.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6"))),te.map((ct,bt)=>ze.createElement("div",{key:bt,className:ke.fileList},ze.createElement("span",{className:ke.fileName},ct==null?void 0:ct.name),ze.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:16,cursor:"pointer"},onClick:vt})))))))}},36276:function(it,jt,ae){"use strict";var b=ae(59301),he=ae(43418),we=ae(64866),Be=ae(90115),Re=ae(59301),We=(Ke,Oe,De)=>new Promise((ke,ze)=>{var Ue=a=>{try{E(De.next(a))}catch(x){ze(x)}},ue=a=>{try{E(De.throw(a))}catch(x){ze(x)}},E=a=>a.done?ke(a.value):Promise.resolve(a.value).then(Ue,ue);E((De=De.apply(Ke,Oe)).next())});const xe=({exercise:Ke,dispatch:Oe,init:De,haveInit:ke=!1})=>{const ze=(0,Be.useParams)(),[Ue,ue]=(0,b.useState)(!1);let[E,a]=(0,b.useState)();const[x,y]=(0,b.useState)(!1),[z,te]=(0,b.useState)(!1);(0,b.useEffect)(()=>{Ke.actionTabs.key==="\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93"&&oe()},[Ke.actionTabs]);function oe(){return We(this,null,function*(){var se,ie;let Ee=yield(0,we.ZP)(`/api/courses/${ze==null?void 0:ze.coursesId}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:Ke.actionTabs.selectArrs}});if(((se=Ee==null?void 0:Ee.cover_exercises)==null?void 0:se.length)>0)ue(!0),a((ie=Ee==null?void 0:Ee.cover_exercises)==null?void 0:ie[0]);else{let Fe=yield(0,we.ZP)(`/api/courses/${ze==null?void 0:ze.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:Ke.actionTabs.selectArrs}});Oe({type:"exercise/setActionTabs",payload:{key:""}}),(Fe==null?void 0:Fe.status)===0&&(ke&&De(),he.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{Be.history.push("/paperlibrary")}}))}})}return Re.createElement("div",null,Re.createElement(he.default,{open:Ue,centered:!0,onCancel:se=>We(void 0,null,function*(){if(se.target.outerText==="\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"){y(!0);let ie=yield(0,we.ZP)(`/api/courses/${ze==null?void 0:ze.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:Ke.actionTabs.selectArrs,update:1}});Oe({type:"exercise/setActionTabs",payload:{key:""}}),y(!1),(ie==null?void 0:ie.status)===0&&(ke&&De(),ue(!1),he.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{Be.history.push("/paperlibrary")}}))}else ue(!1)}),cancelButtonProps:{loading:x},okText:"\u5F62\u6210\u65B0\u8BD5\u5377",cancelText:"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377",okButtonProps:{loading:z},onOk:()=>We(void 0,null,function*(){te(!0);let se=yield(0,we.ZP)(`/api/courses/${ze==null?void 0:ze.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:Ke.actionTabs.selectArrs}});te(!1),(se==null?void 0:se.status)===0&&(ke&&De(),Oe({type:"exercise/setActionTabs",payload:{key:""}}),ue(!1),he.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{Be.history.push("/paperlibrary")}}))}),title:"\u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"},Re.createElement("div",null,Re.createElement("p",null,"\u8BE5\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),Re.createElement("div",null,Re.createElement("div",null,"\u8BD5\u5377\uFF1A",E==null?void 0:E.origin_exercise_nam),Re.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",Re.createElement("a",{href:`/paperlibrary/see/${E==null?void 0:E.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},E==null?void 0:E.examination_bank_name))))))};jt.Z=(0,Be.connect)(({exercise:Ke})=>({exercise:Ke}))(xe)},48326:function(it,jt,ae){"use strict";ae.d(jt,{h:function(){return b}});var b=(he=>(he[he.NOMATCH=-1]="NOMATCH",he[he.OK=0]="OK",he[he.TIMEOUT=2]="TIMEOUT",he[he.PODFAILURE=3]="PODFAILURE",he[he.COMPILEFAILURE=4]="COMPILEFAILURE",he[he.EXECUTEFAILURE=5]="EXECUTEFAILURE",he[he.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",he))(b||{})},25537:function(it,jt,ae){"use strict";ae.d(jt,{H7:function(){return E},MK:function(){return ue},MU:function(){return De},X6:function(){return ze},bM:function(){return Oe},fi:function(){return a},fu:function(){return Ke},n4:function(){return x},rX:function(){return Ue},vl:function(){return y},zO:function(){return ke}});var b=ae(64866),he=Object.defineProperty,we=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,We=(z,te,oe)=>te in z?he(z,te,{enumerable:!0,configurable:!0,writable:!0,value:oe}):z[te]=oe,xe=(z,te)=>{for(var oe in te||(te={}))Be.call(te,oe)&&We(z,oe,te[oe]);if(we)for(var oe of we(te))Re.call(te,oe)&&We(z,oe,te[oe]);return z};function Ke(z,te){return(0,b.U2)(`myproblems/${z}.json`,xe({hidePopLogin:!0},te||{}))}function Oe(z,te){return(0,b.v_)(`myproblems/${z}/code_submit.json`,te)}function De(z,te){return(0,b.v_)(`myproblems/${z}/code_debug.json`,te)}function ke(z,te){return te.language&&(te.language=encodeURIComponent(te.language)),(0,b.U2)(`myproblems/${z}/submit_records.json`,te)}function ze(z){return(0,b.U2)("myproblems/record_detail.json",{id:z})}function Ue(z,te){return(0,b.U2)(`myproblems/${z}/result.json`,{mode:te})}function ue(z,te){return(0,b.v_)(`myproblems/${z}/add_notes.json`,te)}function E(z,te){return(0,b.v_)(`myproblems/${z}/restore_initial_code.json`,te)}function a(z){return(0,b.v_)(`myproblems/${z}/sync_code.json`)}function x(z,te){return(0,b.v_)(`myproblems/${z}/update_code.json`,te)}function y(z,te){return(0,b.v_)(`discusses/${z}/plus.json`,te)}},94287:function(it,jt,ae){"use strict";var b=ae(59301),he=ae(6848),we=ae(92832),Be=ae(8591),Re=ae(97663),We=ae(59301),xe=(Oe,De,ke)=>new Promise((ze,Ue)=>{var ue=x=>{try{a(ke.next(x))}catch(y){Ue(y)}},E=x=>{try{a(ke.throw(x))}catch(y){Ue(y)}},a=x=>x.done?ze(x.value):Promise.resolve(x.value).then(ue,E);a((ke=ke.apply(Oe,De)).next())});const Ke=({defaultValue:Oe,onFinish:De})=>{const[ke,ze]=(0,b.useState)(!1),[Ue,ue]=(0,b.useState)(Oe);return(0,b.useEffect)(()=>{ue(Oe)},[Oe]),We.createElement("div",null,ke?We.createElement(we.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:Ue,onChange:E=>{ue(E.target.value)},onBlur:()=>xe(void 0,null,function*(){var E;if(((E=Ue==null?void 0:Ue.replaceAll(" ",""))==null?void 0:E.length)<=0){Be.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield De(Ue))&&ze(!1)}),onPressEnter:()=>xe(void 0,null,function*(){var E;if(((E=Ue==null?void 0:Ue.replaceAll(" ",""))==null?void 0:E.length)<=0){Be.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield De(Ue))&&ze(!1)})}):We.createElement("div",{className:Re.Z.title},Ue,We.createElement(he.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},We.createElement("i",{className:`${Re.Z.editIcon} iconfont icon-bianji_Hover`,onClick:()=>ze(!0)}))))};jt.Z=Ke},26692:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return De}});var b=ae(43418),he={ul:"ul___TdfYY"},we=ae(32637),Be=ae(59301),Re=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Ke=(ke,ze)=>{var Ue={};for(var ue in ke)We.call(ke,ue)&&ze.indexOf(ue)<0&&(Ue[ue]=ke[ue]);if(ke!=null&&Re)for(var ue of Re(ke))ze.indexOf(ue)<0&&xe.call(ke,ue)&&(Ue[ue]=ke[ue]);return Ue},De=ke=>{var ze=ke,{open:Ue,onCancel:ue}=ze,E=Ke(ze,["open","onCancel"]);return Be.createElement(b.default,{centered:!0,open:Ue,title:Be.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:ue,footer:null},Be.createElement("div",null,Be.createElement("div",{className:"tc"},Be.createElement("img",{className:"mt10",src:we,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),Be.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),Be.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),Be.createElement("div",{style:{color:"#333"},className:"pt30 font14"},Be.createElement("ul",{className:he.ul},Be.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),Be.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),Be.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},49613:function(it,jt,ae){"use strict";ae.d(jt,{I:function(){return he}});var b=ae(59301);const he=()=>{const[we,Be]=(0,b.useState)("hidden");return{overflow:we,handleMouseEnter:()=>Be("auto"),handleMouseLeave:()=>Be("hidden")}}},77578:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return b}});const b=he=>he?typeof he=="function"?he():he:null},66104:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return $e}});var b=ae(92310),he=ae.n(b),we=ae(11592),Be=ae(26112),Re=ae(59301),We=ae(92343),xe=ae(36355),Ke=ae(84105),Oe=ae(91857);const De=be=>{let{children:vt}=be;const{getPrefixCls:ct}=Re.useContext(xe.E_),bt=ct("breadcrumb");return Re.createElement("li",{className:`${bt}-separator`,"aria-hidden":"true"},vt===""?vt:vt||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var ke=De,ze=function(be,vt){var ct={};for(var bt in be)Object.prototype.hasOwnProperty.call(be,bt)&&vt.indexOf(bt)<0&&(ct[bt]=be[bt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,bt=Object.getOwnPropertySymbols(be);Atvt[At]||bt)}function ue(be,vt,ct,bt){if(ct==null)return null;const{className:At,onClick:En}=vt,xn=ze(vt,["className","onClick"]),Wt=Object.assign(Object.assign({},(0,Be.Z)(xn,{data:!0,aria:!0})),{onClick:En});return bt!==void 0?Re.createElement("a",Object.assign({},Wt,{className:he()(`${be}-link`,At),href:bt}),ct):Re.createElement("span",Object.assign({},Wt,{className:he()(`${be}-link`,At)}),ct)}function E(be,vt){return(bt,At,En,xn,Wt)=>{if(vt)return vt(bt,At,En,xn);const Pt=Ue(bt,At);return ue(be,bt,Pt,Wt)}}var a=function(be,vt){var ct={};for(var bt in be)Object.prototype.hasOwnProperty.call(be,bt)&&vt.indexOf(bt)<0&&(ct[bt]=be[bt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,bt=Object.getOwnPropertySymbols(be);At{const{prefixCls:vt,separator:ct="/",children:bt,menu:At,overlay:En,dropdownProps:xn,href:Wt}=be,Te=(et=>{if(At||En){const Yt=Object.assign({},xn);if(At){const wn=At||{},{items:Lt}=wn,_t=a(wn,["items"]);Yt.menu=Object.assign(Object.assign({},_t),{items:Lt==null?void 0:Lt.map((Ce,ot)=>{var{key:an,title:tt,label:ht,path:Jn}=Ce,dn=a(Ce,["key","title","label","path"]);let Qt=ht!=null?ht:tt;return Jn&&(Qt=Re.createElement("a",{href:`${Wt}${Jn}`},Qt)),Object.assign(Object.assign({},dn),{key:an!=null?an:ot,label:Qt})})})}else En&&(Yt.overlay=En);return Re.createElement(Oe.Z,Object.assign({placement:"bottom"},Yt),Re.createElement("span",{className:`${vt}-overlay-link`},et,Re.createElement(Ke.Z,null)))}return et})(bt);return Te!=null?Re.createElement(Re.Fragment,null,Re.createElement("li",null,Te),ct&&Re.createElement(ke,null,ct)):null},y=be=>{const{prefixCls:vt,children:ct,href:bt}=be,At=a(be,["prefixCls","children","href"]),{getPrefixCls:En}=Re.useContext(xe.E_),xn=En("breadcrumb",vt);return Re.createElement(x,Object.assign({},At,{prefixCls:xn}),ue(xn,At,ct,bt))};y.__ANT_BREADCRUMB_ITEM=!0;var z=y,te=ae(17313),oe=ae(83116),se=ae(37613);const ie=be=>{const{componentCls:vt,iconCls:ct}=be;return{[vt]:Object.assign(Object.assign({},(0,te.Wf)(be)),{color:be.itemColor,fontSize:be.fontSize,[ct]:{fontSize:be.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:be.linkColor,transition:`color ${be.motionDurationMid}`,padding:`0 ${be.paddingXXS}px`,borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",marginInline:-be.marginXXS,"&:hover":{color:be.linkHoverColor,backgroundColor:be.colorBgTextHover}},(0,te.Qy)(be)),"li:last-child":{color:be.lastItemColor},[`${vt}-separator`]:{marginInline:be.separatorMargin,color:be.separatorColor},[`${vt}-link`]:{[` > ${ct} + span, > ${ct} + a - `]:{marginInlineStart:be.marginXXS}},[`${vt}-overlay-link`]:{borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",padding:`0 ${be.paddingXXS}px`,marginInline:-be.marginXXS,[`> ${ct}`]:{marginInlineStart:be.marginXXS,fontSize:be.fontSizeIcon},"&:hover":{color:be.linkHoverColor,backgroundColor:be.colorBgTextHover,a:{color:be.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${be.componentCls}-rtl`]:{direction:"rtl"}})}};var Ee=(0,oe.Z)("Breadcrumb",be=>{const vt=(0,ue.TS)(be,{});return[ie(vt)]},be=>({itemColor:be.colorTextDescription,lastItemColor:be.colorText,iconFontSize:be.fontSize,linkColor:be.colorTextDescription,linkHoverColor:be.colorText,separatorColor:be.colorTextDescription,separatorMargin:be.marginXS})),Fe=function(be,vt){var ct={};for(var Ft in be)Object.prototype.hasOwnProperty.call(be,Ft)&&vt.indexOf(Ft)<0&&(ct[Ft]=be[Ft]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,Ft=Object.getOwnPropertySymbols(be);At{var{breadcrumbName:Bn}=En,Wt=Fe(En,["breadcrumbName"]);return Object.assign(Object.assign({},Wt),{title:Bn})})}),At}function Le(be,vt){return(0,Re.useMemo)(()=>be||(vt?vt.map(Qe):null),[be,vt])}var st=function(be,vt){var ct={};for(var Ft in be)Object.prototype.hasOwnProperty.call(be,Ft)&&vt.indexOf(Ft)<0&&(ct[Ft]=be[Ft]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,Ft=Object.getOwnPropertySymbols(be);At{if(vt===void 0)return vt;let ct=(vt||"").replace(/^\//,"");return Object.keys(be).forEach(Ft=>{ct=ct.replace(`:${Ft}`,be[Ft])}),ct},Ye=be=>{const{prefixCls:vt,separator:ct="/",style:Ft,className:At,rootClassName:En,routes:Bn,items:Wt,children:Pt,itemRender:Te,params:et={}}=be,Yt=st(be,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:xn,direction:Lt,breadcrumb:_t}=Re.useContext(Be.E_);let Ce;const ot=xn("breadcrumb",vt),[nn,nt]=Ee(ot),ht=Le(Wt,Bn),Jn=E(ot,Te);if(ht&&ht.length>0){const Rt=[],Wn=Wt||Bn;Ce=ht.map((ra,en)=>{const{path:Ba,key:Ka,type:Fa,menu:jn,overlay:Ha,onClick:Pa,className:fr,separator:oa,dropdownProps:Zn}=ra,da=Me(et,Ba);da!==void 0&&Rt.push(da);const Aa=Ka!=null?Ka:en;if(Fa==="separator")return Re.createElement(ke,{key:Aa},oa);const xa={},_a=en===ht.length-1;jn?xa.menu=jn:Ha&&(xa.overlay=Ha);let{href:Sn}=ra;return Rt.length&&da!==void 0&&(Sn=`#/${Rt.join("/")}`),Re.createElement(x,Object.assign({key:Aa},xa,(0,xe.Z)(ra,{data:!0,aria:!0}),{className:fr,dropdownProps:Zn,href:Sn,separator:_a?"":ct,onClick:Pa,prefixCls:ot}),Jn(ra,et,Wn,Rt,Sn))})}else if(Pt){const Rt=(0,we.Z)(Pt).length;Ce=(0,we.Z)(Pt).map((Wn,ra)=>{if(!Wn)return Wn;const en=ra===Rt-1;return(0,We.Tm)(Wn,{separator:en?"":ct,key:ra})})}const dn=he()(ot,_t==null?void 0:_t.className,{[`${ot}-rtl`]:Lt==="rtl"},At,En,nt),Qt=Object.assign(Object.assign({},_t==null?void 0:_t.style),Ft);return nn(Re.createElement("nav",Object.assign({className:dn,style:Qt},Yt),Re.createElement("ol",null,Ce)))};Ye.Item=z,Ye.Separator=ke;var Ge=Ye,$e=Ge},19842:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return ba}});var b=ae(94480),he=ae(59301),we=ae(33853),xe=ae(58617),Re=ae(38819),We=ae(92310),Be=ae.n(We),Ke=ae(54476),Oe=ae(42978),De=ae(75931),ke=ae(77861),ze=ae(17115),Ue=ae(90782),le=ae(6089),E=ae(18929),a=he.createContext(null),x=a,y=ae(76190),z=ae(20068),te=ae(33885),oe="__rc_cascader_search_mark__",ue=function(Ot,Xt,fn){var Mt=fn.label;return Xt.some(function(Qn){return String(Qn[Mt]).toLowerCase().includes(Ot.toLowerCase())})},ie=function(Ot,Xt,fn,Mt){return Xt.map(function(Qn){return Qn[Mt.label]}).join(" / ")},Ee=function(Ze,Ot,Xt,fn,Mt,Qn){var Kn=Mt.filter,Je=Kn===void 0?ue:Kn,tt=Mt.render,Xe=tt===void 0?ie:tt,an=Mt.limit,Cn=an===void 0?50:an,Nn=Mt.sort;return he.useMemo(function(){var wa=[];if(!Ze)return[];function Ea(ta,ya){var Xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ta.forEach(function(zt){if(!(!Nn&&Cn!==!1&&Cn>0&&wa.length>=Cn)){var ka=[].concat((0,b.Z)(ya),[zt]),pr=zt[Xt.children],ho=Xn||zt.disabled;if((!pr||pr.length===0||Qn)&&Je(Ze,ka,{label:Xt.label})){var qa;wa.push((0,te.Z)((0,te.Z)({},zt),{},(qa={disabled:ho},(0,z.Z)(qa,Xt.label,Xe(Ze,ka,fn,Xt)),(0,z.Z)(qa,oe,ka),(0,z.Z)(qa,Xt.children,void 0),qa)))}pr&&Ea(zt[Xt.children],ka,ho)}})}return Ea(Ot,[]),Nn&&wa.sort(function(ta,ya){return Nn(ta[oe],ya[oe],Ze,Xt)}),Cn!==!1&&Cn>0?wa.slice(0,Cn):wa},[Ze,Ot,Xt,fn,Xe,Qn,Je,Nn,Cn])},Fe="__RC_CASCADER_SPLIT__",Qe="SHOW_PARENT",Le="SHOW_CHILD";function st(Ze){return Ze.join(Fe)}function Me(Ze){return Ze.map(st)}function Ye(Ze){return Ze.split(Fe)}function Ge(Ze){var Ot=Ze||{},Xt=Ot.label,fn=Ot.value,Mt=Ot.children,Qn=fn||"value";return{label:Xt||"label",value:Qn,key:Qn,children:Mt||"children"}}function $e(Ze,Ot){var Xt,fn;return(Xt=Ze.isLeaf)!==null&&Xt!==void 0?Xt:!((fn=Ze[Ot.children])!==null&&fn!==void 0&&fn.length)}function be(Ze){var Ot=Ze.parentElement;if(Ot){var Xt=Ze.offsetTop-Ot.offsetTop;Xt-Ot.scrollTop<0?Ot.scrollTo({top:Xt}):Xt+Ze.offsetHeight-Ot.scrollTop>Ot.offsetHeight&&Ot.scrollTo({top:Xt+Ze.offsetHeight-Ot.offsetHeight})}}function vt(Ze,Ot){return Ze.map(function(Xt){var fn;return(fn=Xt[oe])===null||fn===void 0?void 0:fn.map(function(Mt){return Mt[Ot.value]})})}function ct(Ze,Ot,Xt){var fn=new Set(Ze),Mt=Ot();return Ze.filter(function(Qn){var Kn=Mt[Qn],Je=Kn?Kn.parent:null,tt=Kn?Kn.children:null;return Kn&&Kn.node.disabled?!0:Xt===Le?!(tt&&tt.some(function(Xe){return Xe.key&&fn.has(Xe.key)})):!(Je&&!Je.node.disabled&&fn.has(Je.key))})}function Ft(Ze,Ot,Xt){for(var fn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Mt=Ot,Qn=[],Kn=function(){var Xe,an,Cn,Nn=Ze[Je],wa=(Xe=Mt)===null||Xe===void 0?void 0:Xe.findIndex(function(ta){var ya=ta[Xt.value];return fn?String(ya)===String(Nn):ya===Nn}),Ea=wa!==-1?(an=Mt)===null||an===void 0?void 0:an[wa]:null;Qn.push({value:(Cn=Ea==null?void 0:Ea[Xt.value])!==null&&Cn!==void 0?Cn:Nn,index:wa,option:Ea}),Mt=Ea==null?void 0:Ea[Xt.children]},Je=0;Je1){var Gt=Ea.slice(0,-1);zt(Gt)}else Xe(!1)},ho=function(){var Gt,Qr=((Gt=ya[ta])===null||Gt===void 0?void 0:Gt[Xt.children])||[],Ua=Qr.find(function(lr){return!lr.disabled});if(Ua){var Sr=[].concat((0,b.Z)(Ea),[Ua[Xt.value]]);zt(Sr)}};he.useImperativeHandle(Ze,function(){return{onKeyDown:function(Gt){var Qr=Gt.which;switch(Qr){case ot.Z.UP:case ot.Z.DOWN:{var Ua=0;Qr===ot.Z.UP?Ua=-1:Qr===ot.Z.DOWN&&(Ua=1),Ua!==0&&ka(Ua);break}case ot.Z.LEFT:{if(tt)break;Cn?ho():pr();break}case ot.Z.RIGHT:{if(tt)break;Cn?pr():ho();break}case ot.Z.BACKSPACE:{tt||pr();break}case ot.Z.ENTER:{if(Ea.length){var Sr=ya[ta],lr=(Sr==null?void 0:Sr[oe])||[];lr.length?Qn(lr.map(function(Gr){return Gr[Xt.value]}),lr[lr.length-1]):Qn(Ea,ya[ta])}break}case ot.Z.ESC:Xe(!1),an&&Gt.stopPropagation()}},onKeyUp:function(){}}})},nt=he.forwardRef(function(Ze,Ot){var Xt,fn,Mt,Qn,Kn=(0,ke.lk)(),Je=Kn.prefixCls,tt=Kn.multiple,Xe=Kn.searchValue,an=Kn.toggleOpen,Cn=Kn.notFoundContent,Nn=Kn.direction,wa=Kn.open,Ea=he.useRef(),ta=Nn==="rtl",ya=he.useContext(x),Xn=ya.options,zt=ya.values,ka=ya.halfValues,pr=ya.fieldNames,ho=ya.changeOnSelect,qa=ya.onSelect,Gt=ya.searchOptions,Qr=ya.dropdownPrefixCls,Ua=ya.loadData,Sr=ya.expandTrigger,lr=Qr||Je,Gr=he.useState([]),Lr=(0,Oe.Z)(Gr,2),no=Lr[0],Mr=Lr[1],ca=function(Nr){if(!(!Ua||Xe)){var Eo=Ft(Nr,Xn,pr),Ja=Eo.map(function(hr){var Kr=hr.option;return Kr}),Hr=Ja[Ja.length-1];if(Hr&&!$e(Hr,pr)){var Yr=st(Nr);Mr(function(hr){return[].concat((0,b.Z)(hr),[Yr])}),Ua(Ja)}}};he.useEffect(function(){no.length&&no.forEach(function(xr){var Nr=Ye(xr),Eo=Ft(Nr,Xn,pr,!0).map(function(Hr){var Yr=Hr.option;return Yr}),Ja=Eo[Eo.length-1];(!Ja||Ja[pr.children]||$e(Ja,pr))&&Mr(function(Hr){return Hr.filter(function(Yr){return Yr!==xr})})})},[Xn,no,pr]);var tn=he.useMemo(function(){return new Set(Me(zt))},[zt]),gr=he.useMemo(function(){return new Set(Me(ka))},[ka]),ga=Ce(),ur=(0,Oe.Z)(ga,2),za=ur[0],vn=ur[1],na=function(Nr){vn(Nr),ca(Nr)},Na=function(Nr){var Eo=Nr.disabled,Ja=$e(Nr,pr);return!Eo&&(Ja||ho||tt)},_n=function(Nr,Eo){var Ja=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;qa(Nr),!tt&&(Eo||ho&&(Sr==="hover"||Ja))&&an(!1)},sr=he.useMemo(function(){return Xe?Gt:Xn},[Xe,Gt,Xn]),tr=he.useMemo(function(){for(var xr=[{options:sr}],Nr=sr,Eo=vt(Nr,pr),Ja=function(){var Kr=za[Hr],xt=Nr.find(function(Et,Mn){return(Eo[Mn]?st(Eo[Mn]):Et[pr.value])===Kr}),yt=xt==null?void 0:xt[pr.children];if(!(yt!=null&&yt.length))return"break";Nr=yt,xr.push({options:yt})},Hr=0;Hr":no,ca=Ze.loadingIcon,tn=Ze.children,gr=Ze.dropdownMatchSelectWidth,ga=gr===void 0?!1:gr,ur=Ze.showCheckedStrategy,za=ur===void 0?Qe:ur,vn=(0,De.Z)(Ze,Rt),na=(0,ze.ZP)(Xt),Na=!!Cn,_n=(0,E.Z)(Kn,{value:Je,postState:ra}),sr=(0,Oe.Z)(_n,2),tr=sr[0],Ar=sr[1],Ur=he.useMemo(function(){return Ge(Qn)},[JSON.stringify(Qn)]),mr=he.useMemo(function(){return zt||[]},[zt]),Yo=Bn(mr,Ur),Mo=he.useCallback(function(Dn){var Hn=Yo();return Dn.map(function(me){var gt=Hn[me].nodes;return gt.map(function(Bt){return Bt[Ur.value]})})},[Yo,Ur]),Ei=(0,E.Z)("",{value:Ea,postState:function(Hn){return Hn||""}}),xr=(0,Oe.Z)(Ei,2),Nr=xr[0],Eo=xr[1],Ja=function(Hn,me){Eo(Hn),me.source!=="blur"&&ta&&ta(Hn)},Hr=Te(ya),Yr=(0,Oe.Z)(Hr,2),hr=Yr[0],Kr=Yr[1],xt=Ee(Nr,mr,Ur,ka||Mt,Kr,tt),yt=Wt(mr,Ur),Et=he.useMemo(function(){var Dn=yt(tr),Hn=(0,Oe.Z)(Dn,2),me=Hn[0],gt=Hn[1];if(!Na||!tr.length)return[me,[],gt];var Bt=Me(me),on=Yo(),pt=(0,Ue.S)(Bt,!0,on),Ln=pt.checkedKeys,yn=pt.halfCheckedKeys;return[Mo(Ln),Mo(yn),gt]},[Na,tr,Yo,Mo,yt]),Mn=(0,Oe.Z)(Et,3),Za=Mn[0],rr=Mn[1],Pn=Mn[2],$a=he.useMemo(function(){var Dn=Me(Za),Hn=ct(Dn,Yo,za);return[].concat((0,b.Z)(Pn),(0,b.Z)(Mo(Hn)))},[Za,Yo,Mo,Pn,za]),Xa=At($a,mr,Ur,Na,an),ao=(0,le.Z)(function(Dn){if(Ar(Dn),Xe){var Hn=ra(Dn),me=Hn.map(function(on){return Ft(on,mr,Ur).map(function(pt){return pt.option})}),gt=Na?Hn:Hn[0],Bt=Na?me:me[0];Xe(gt,Bt)}}),dr=(0,le.Z)(function(Dn){if((!Na||wa)&&Eo(""),!Na)ao(Dn);else{var Hn=st(Dn),me=Me(Za),gt=Me(rr),Bt=me.includes(Hn),on=Pn.some(function(ma){return st(ma)===Hn}),pt=Za,Ln=Pn;if(on&&!Bt)Ln=Pn.filter(function(ma){return st(ma)!==Hn});else{var yn=Bt?me.filter(function(ma){return ma!==Hn}):[].concat((0,b.Z)(me),[Hn]),mn=Yo(),Fn;if(Bt){var Oa=(0,Ue.S)(yn,{checked:!1,halfCheckedKeys:gt},mn);Fn=Oa.checkedKeys}else{var cr=(0,Ue.S)(yn,!0,mn);Fn=cr.checkedKeys}var Fr=ct(Fn,Yo,za);pt=Mo(Fr)}ao([].concat((0,b.Z)(Ln),(0,b.Z)(pt)))}}),Ga=function(Hn,me){if(me.type==="clear"){ao([]);return}var gt=me.values[0],Bt=gt.valueCells;dr(Bt)},wr=qa!==void 0?qa:ho,Bo=Qr||Gt,ri=lr||Sr,Rr=function(Hn){Gr==null||Gr(Hn),Lr==null||Lr(Hn)},So=he.useMemo(function(){return{options:mr,fieldNames:Ur,values:Za,halfValues:rr,changeOnSelect:tt,onSelect:dr,checkable:Cn,searchOptions:xt,dropdownPrefixCls:ka,loadData:pr,expandTrigger:Xn,expandIcon:Mr,loadingIcon:ca,dropdownMenuColumnStyle:Ua}},[mr,Ur,Za,rr,tt,dr,Cn,xt,ka,pr,Xn,Mr,ca,Ua]),jo=!(Nr?xt:mr).length,ia=Nr&&Kr.matchInputWidth||jo?{}:{minWidth:"auto"};return he.createElement(x.Provider,{value:So},he.createElement(ke.Ac,(0,Ke.Z)({},vn,{ref:Ot,id:na,prefixCls:Mt,autoClearSearchValue:wa,dropdownMatchSelectWidth:ga,dropdownStyle:ia,displayValues:Xa,onDisplayValuesChange:Ga,mode:Na?"multiple":void 0,searchValue:Nr,onSearch:Ja,showSearch:hr,OptionList:ht,emptyOptions:jo,open:wr,dropdownClassName:Bo,placement:ri,onDropdownVisibleChange:Rr,getRawInputElement:function(){return tn}})))});en.SHOW_PARENT=Qe,en.SHOW_CHILD=Le;var Ba=en,Ka=Ba,Fa=ae(2738),jn=ae(62892),Ha=ae(53487),Pa=ae(19080),fr=ae(36355),oa=ae(93891),Zn=ae(1684),da=ae(19716),Aa=ae(32441),xa=ae(14154),_a=ae(58582),Sn=ae(84443),rn=ae(66339),St=ae(33234),kt=ae(98447),ja=ae(17313),Ca=ae(74207),Wa=ae(83116);const Da=Ze=>{const{prefixCls:Ot,componentCls:Xt,antCls:fn}=Ze,Mt=`${Xt}-menu-item`,Qn=` - &${Mt}-expand ${Mt}-expand-icon, - ${Mt}-loading-icon - `;return[{[Xt]:{width:Ze.controlWidth}},{[`${Xt}-dropdown`]:[(0,kt.C2)(`${Ot}-checkbox`,Ze),{[`&${fn}-select-dropdown`]:{padding:0}},{[Xt]:{"&-checkbox":{top:0,marginInlineEnd:Ze.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Xt}-menu-empty`]:{[`${Xt}-menu`]:{width:"100%",height:"auto",[Mt]:{color:Ze.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:Ze.controlItemWidth,height:Ze.dropdownHeight,margin:0,padding:Ze.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Ze.lineWidth}px ${Ze.lineType} ${Ze.colorSplit}`},"&-item":Object.assign(Object.assign({},ja.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Ze.optionPadding,lineHeight:Ze.lineHeight,cursor:"pointer",transition:`all ${Ze.motionDurationMid}`,borderRadius:Ze.borderRadiusSM,"&:hover":{background:Ze.controlItemBgHover},"&-disabled":{color:Ze.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Qn]:{color:Ze.colorTextDisabled}},[`&-active:not(${Mt}-disabled)`]:{"&, &:hover":{fontWeight:Ze.optionSelectedFontWeight,backgroundColor:Ze.optionSelectedBg}},"&-content":{flex:"auto"},[Qn]:{marginInlineStart:Ze.paddingXXS,color:Ze.colorTextDescription,fontSize:Ze.fontSizeIcon},"&-keyword":{color:Ze.colorHighlight}})}}}]},{[`${Xt}-dropdown-rtl`]:{direction:"rtl"}},(0,Ca.c)(Ze)]};var Ta=(0,Wa.Z)("Cascader",Ze=>[Da(Ze)],Ze=>{const Ot=Math.round((Ze.controlHeight-Ze.fontSize*Ze.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Ze.controlItemBgActive,optionSelectedFontWeight:Ze.fontWeightStrong,optionPadding:`${Ot}px ${Ze.paddingSM}px`,menuPadding:Ze.paddingXXS}}),Br=function(Ze,Ot){var Xt={};for(var fn in Ze)Object.prototype.hasOwnProperty.call(Ze,fn)&&Ot.indexOf(fn)<0&&(Xt[fn]=Ze[fn]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,fn=Object.getOwnPropertySymbols(Ze);Mttt===0?[Je]:[].concat((0,b.Z)(Kn),[Ot,Je]),[]),Mt=[];let Qn=0;return fn.forEach((Kn,Je)=>{const tt=Qn+Kn.length;let Xe=Ze.slice(Qn,tt);Qn=tt,Je%2===1&&(Xe=he.createElement("span",{className:`${Xt}-menu-item-keyword`,key:`separator-${Je}`},Xe)),Mt.push(Xe)}),Mt}const Ut=(Ze,Ot,Xt,fn)=>{const Mt=[],Qn=Ze.toLowerCase();return Ot.forEach((Kn,Je)=>{Je!==0&&Mt.push(" / ");let tt=Kn[fn.label];const Xe=typeof tt;(Xe==="string"||Xe==="number")&&(tt=Oo(String(tt),Qn,Xt)),Mt.push(tt)}),Mt},Un=he.forwardRef((Ze,Ot)=>{const{prefixCls:Xt,size:fn,disabled:Mt,className:Qn,rootClassName:Kn,multiple:Je,bordered:tt=!0,transitionName:Xe,choiceTransitionName:an="",popupClassName:Cn,dropdownClassName:Nn,expandIcon:wa,placement:Ea,showSearch:ta,allowClear:ya=!0,notFoundContent:Xn,direction:zt,getPopupContainer:ka,status:pr,showArrow:ho,builtinPlacements:qa,style:Gt}=Ze,Qr=Br(Ze,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Ua=(0,Fa.Z)(Qr,["suffixIcon"]),{getPopupContainer:Sr,getPrefixCls:lr,renderEmpty:Gr,direction:Lr,popupOverflow:no,cascader:Mr}=he.useContext(fr.E_),ca=zt||Lr,tn=ca==="rtl",{status:gr,hasFeedback:ga,isFormItemInput:ur,feedbackIcon:za}=he.useContext(Aa.aM),vn=(0,Pa.F)(gr,pr),na=Xn||(Gr==null?void 0:Gr("Cascader"))||he.createElement(oa.Z,{componentName:"Cascader"}),Na=lr(),_n=lr("select",Xt),sr=lr("cascader",Xt),[tr,Ar]=(0,xa.Z)(_n),[Ur]=Ta(sr),{compactSize:mr,compactItemClassnames:Yo}=(0,St.ri)(_n,zt),Mo=Be()(Cn||Nn,`${sr}-dropdown`,{[`${sr}-dropdown-rtl`]:ca==="rtl"},Kn,Ar),Ei=he.useMemo(()=>{if(!ta)return ta;let Pn={render:Ut};return typeof ta=="object"&&(Pn=Object.assign(Object.assign({},Pn),ta)),Pn},[ta]),xr=(0,da.Z)(Pn=>{var $a;return($a=fn!=null?fn:mr)!==null&&$a!==void 0?$a:Pn}),Nr=he.useContext(Zn.Z),Eo=Mt!=null?Mt:Nr;let Ja=wa;wa||(Ja=tn?he.createElement(we.Z,null):he.createElement(Re.Z,null));const Hr=he.createElement("span",{className:`${_n}-menu-item-loading-icon`},he.createElement(xe.Z,{spin:!0})),Yr=he.useMemo(()=>Je?he.createElement("span",{className:`${sr}-checkbox-inner`}):!1,[Je]),hr=(0,Sn.Z)(Ze.suffixIcon,ho),{suffixIcon:Kr,removeIcon:xt,clearIcon:yt}=(0,rn.Z)(Object.assign(Object.assign({},Ze),{hasFeedback:ga,feedbackIcon:za,showSuffixIcon:hr,multiple:Je,prefixCls:_n,componentName:"Cascader"})),Et=he.useMemo(()=>Ea!==void 0?Ea:tn?"bottomRight":"bottomLeft",[Ea,tn]),Mn=(0,_a.Z)(qa,no),Za=ya===!0?{clearIcon:yt}:ya,rr=he.createElement(Ka,Object.assign({prefixCls:_n,className:Be()(!Xt&&sr,{[`${_n}-lg`]:xr==="large",[`${_n}-sm`]:xr==="small",[`${_n}-rtl`]:tn,[`${_n}-borderless`]:!tt,[`${_n}-in-form-item`]:ur},(0,Pa.Z)(_n,vn,ga),Yo,Mr==null?void 0:Mr.className,Qn,Kn,Ar),disabled:Eo,style:Object.assign(Object.assign({},Mr==null?void 0:Mr.style),Gt)},Ua,{builtinPlacements:Mn,direction:ca,placement:Et,notFoundContent:na,allowClear:Za,showSearch:Ei,expandIcon:Ja,suffixIcon:Kr,removeIcon:xt,loadingIcon:Hr,checkable:Yr,dropdownClassName:Mo,dropdownPrefixCls:Xt||sr,choiceTransitionName:(0,jn.m)(Na,"",an),transitionName:(0,jn.m)(Na,"slide-up",Xe),getPopupContainer:ka||Sr,ref:Ot}));return Ur(tr(rr))}),$n=(0,Ha.Z)(Un);Un.SHOW_PARENT=Or,Un.SHOW_CHILD=ar,Un._InternalPanelDoNotUseOrYouWillBeFired=$n;var ba=Un},36381:function(it,jt,ae){"use strict";ae.d(jt,{default:function(){return nn}});var b=ae(38819),he=ae(92310),we=ae.n(he),xe=ae(54476),Re=ae(94480),We=ae(42978),Be=ae(76190),Ke=ae(18929),Oe=ae(48736),De=ae(59301),ke=ae(75931),ze=ae(11592),Ue=ae(20068),le=ae(77900),E=ae(10228),a=De.forwardRef(function(nt,ht){var Jn=nt.prefixCls,dn=nt.forceRender,Qt=nt.className,Rt=nt.style,Wn=nt.children,ra=nt.isActive,en=nt.role,Ba=De.useState(ra||dn),Ka=(0,We.Z)(Ba,2),Fa=Ka[0],jn=Ka[1];return De.useEffect(function(){(dn||ra)&&jn(!0)},[dn,ra]),Fa?De.createElement("div",{ref:ht,className:we()("".concat(Jn,"-content"),(0,Ue.Z)((0,Ue.Z)({},"".concat(Jn,"-content-active"),ra),"".concat(Jn,"-content-inactive"),!ra),Qt),style:Rt,role:en},De.createElement("div",{className:"".concat(Jn,"-content-box")},Wn)):null});a.displayName="PanelContent";var x=a,y=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],z=De.forwardRef(function(nt,ht){var Jn=nt.showArrow,dn=Jn===void 0?!0:Jn,Qt=nt.headerClass,Rt=nt.isActive,Wn=nt.onItemClick,ra=nt.forceRender,en=nt.className,Ba=nt.prefixCls,Ka=nt.collapsible,Fa=nt.accordion,jn=nt.panelKey,Ha=nt.extra,Pa=nt.header,fr=nt.expandIcon,oa=nt.openMotion,Zn=nt.destroyInactivePanel,da=nt.children,Aa=(0,ke.Z)(nt,y),xa=Ka==="disabled",_a=Ka==="header",Sn=Ka==="icon",rn=Ha!=null&&typeof Ha!="boolean",St=function(){Wn==null||Wn(jn)},kt=function(Br){(Br.key==="Enter"||Br.keyCode===E.Z.ENTER||Br.which===E.Z.ENTER)&&St()},ja=typeof fr=="function"?fr(nt):De.createElement("i",{className:"arrow"});ja&&(ja=De.createElement("div",{className:"".concat(Ba,"-expand-icon"),onClick:["header","icon"].includes(Ka)?St:void 0},ja));var Ca=we()((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(Ba,"-item"),!0),"".concat(Ba,"-item-active"),Rt),"".concat(Ba,"-item-disabled"),xa),en),Wa=we()(Qt,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(Ba,"-header"),!0),"".concat(Ba,"-header-collapsible-only"),_a),"".concat(Ba,"-icon-collapsible-only"),Sn)),Da={className:Wa,"aria-expanded":Rt,"aria-disabled":xa,onKeyDown:kt};return!_a&&!Sn&&(Da.onClick=St,Da.role=Fa?"tab":"button",Da.tabIndex=xa?-1:0),De.createElement("div",(0,xe.Z)({},Aa,{ref:ht,className:Ca}),De.createElement("div",Da,dn&&ja,De.createElement("span",{className:"".concat(Ba,"-header-text"),onClick:Ka==="header"?St:void 0},Pa),rn&&De.createElement("div",{className:"".concat(Ba,"-extra")},Ha)),De.createElement(le.default,(0,xe.Z)({visible:Rt,leavedClassName:"".concat(Ba,"-content-hidden")},oa,{forceRender:ra,removeOnLeave:Zn}),function(Ta,Br){var ar=Ta.className,Or=Ta.style;return De.createElement(x,{ref:Br,prefixCls:Ba,className:ar,style:Or,isActive:Rt,forceRender:ra,role:Fa?"tabpanel":void 0},da)}))}),te=z,oe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],ue=function(ht,Jn){var dn=Jn.prefixCls,Qt=Jn.accordion,Rt=Jn.collapsible,Wn=Jn.destroyInactivePanel,ra=Jn.onItemClick,en=Jn.activeKey,Ba=Jn.openMotion,Ka=Jn.expandIcon;return ht.map(function(Fa,jn){var Ha=Fa.children,Pa=Fa.label,fr=Fa.key,oa=Fa.collapsible,Zn=Fa.onItemClick,da=Fa.destroyInactivePanel,Aa=(0,ke.Z)(Fa,oe),xa=String(fr!=null?fr:jn),_a=oa!=null?oa:Rt,Sn=da!=null?da:Wn,rn=function(ja){_a!=="disabled"&&(ra(ja),Zn==null||Zn(ja))},St=!1;return Qt?St=en[0]===xa:St=en.indexOf(xa)>-1,De.createElement(te,(0,xe.Z)({},Aa,{prefixCls:dn,key:xa,panelKey:xa,isActive:St,accordion:Qt,openMotion:Ba,expandIcon:Ka,header:Pa,collapsible:_a,onItemClick:rn,destroyInactivePanel:Sn}),Ha)})},ie=function(ht,Jn,dn){if(!ht)return null;var Qt=dn.prefixCls,Rt=dn.accordion,Wn=dn.collapsible,ra=dn.destroyInactivePanel,en=dn.onItemClick,Ba=dn.activeKey,Ka=dn.openMotion,Fa=dn.expandIcon,jn=ht.key||String(Jn),Ha=ht.props,Pa=Ha.header,fr=Ha.headerClass,oa=Ha.destroyInactivePanel,Zn=Ha.collapsible,da=Ha.onItemClick,Aa=!1;Rt?Aa=Ba[0]===jn:Aa=Ba.indexOf(jn)>-1;var xa=Zn!=null?Zn:Wn,_a=function(St){xa!=="disabled"&&(en(St),da==null||da(St))},Sn={key:jn,panelKey:jn,header:Pa,headerClass:fr,isActive:Aa,prefixCls:Qt,destroyInactivePanel:oa!=null?oa:ra,openMotion:Ka,accordion:Rt,children:ht.props.children,onItemClick:_a,expandIcon:Fa,collapsible:xa};return typeof ht.type=="string"?ht:(Object.keys(Sn).forEach(function(rn){typeof Sn[rn]=="undefined"&&delete Sn[rn]}),De.cloneElement(ht,Sn))};function Ee(nt,ht,Jn){return Array.isArray(nt)?ue(nt,Jn):(0,ze.Z)(ht).map(function(dn,Qt){return ie(dn,Qt,Jn)})}var Fe=Ee,Qe=ae(26112);function Le(nt){var ht=nt;if(!Array.isArray(ht)){var Jn=(0,Be.Z)(ht);ht=Jn==="number"||Jn==="string"?[ht]:[]}return ht.map(function(dn){return String(dn)})}var st=De.forwardRef(function(nt,ht){var Jn=nt.prefixCls,dn=Jn===void 0?"rc-collapse":Jn,Qt=nt.destroyInactivePanel,Rt=Qt===void 0?!1:Qt,Wn=nt.style,ra=nt.accordion,en=nt.className,Ba=nt.children,Ka=nt.collapsible,Fa=nt.openMotion,jn=nt.expandIcon,Ha=nt.activeKey,Pa=nt.defaultActiveKey,fr=nt.onChange,oa=nt.items,Zn=we()(dn,en),da=(0,Ke.Z)([],{value:Ha,onChange:function(kt){return fr==null?void 0:fr(kt)},defaultValue:Pa,postState:Le}),Aa=(0,We.Z)(da,2),xa=Aa[0],_a=Aa[1],Sn=function(kt){return _a(function(){if(ra)return xa[0]===kt?[]:[kt];var ja=xa.indexOf(kt),Ca=ja>-1;return Ca?xa.filter(function(Wa){return Wa!==kt}):[].concat((0,Re.Z)(xa),[kt])})};(0,Oe.ZP)(!Ba,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var rn=Fe(oa,Ba,{prefixCls:dn,accordion:ra,openMotion:Fa,expandIcon:jn,collapsible:Ka,destroyInactivePanel:Rt,onItemClick:Sn,activeKey:xa});return De.createElement("div",(0,xe.Z)({ref:ht,className:Zn,style:Wn,role:ra?"tablist":void 0},(0,Qe.Z)(nt,{aria:!0,data:!0})),rn)}),Me=Object.assign(st,{Panel:te}),Ye=Me,Ge=Me.Panel,$e=ae(2738),be=ae(62892),vt=ae(92343),ct=ae(36355),Ft=ae(19716),En=De.forwardRef((nt,ht)=>{const{getPrefixCls:Jn}=De.useContext(ct.E_),{prefixCls:dn,className:Qt,showArrow:Rt=!0}=nt,Wn=Jn("collapse",dn),ra=we()({[`${Wn}-no-arrow`]:!Rt},Qt);return De.createElement(Ye.Panel,Object.assign({ref:ht},nt,{prefixCls:Wn,className:ra}))}),Bn=ae(17313),Wt=ae(8378),Pt=ae(83116),Te=ae(37613);const et=nt=>{const{componentCls:ht,contentBg:Jn,padding:dn,headerBg:Qt,headerPadding:Rt,collapseHeaderPaddingSM:Wn,collapseHeaderPaddingLG:ra,collapsePanelBorderRadius:en,lineWidth:Ba,lineType:Ka,colorBorder:Fa,colorText:jn,colorTextHeading:Ha,colorTextDisabled:Pa,fontSize:fr,fontSizeLG:oa,lineHeight:Zn,marginSM:da,paddingSM:Aa,paddingLG:xa,paddingXS:_a,motionDurationSlow:Sn,fontSizeIcon:rn,contentPadding:St}=nt,kt=`${Ba}px ${Ka} ${Fa}`;return{[ht]:Object.assign(Object.assign({},(0,Bn.Wf)(nt)),{backgroundColor:Qt,border:kt,borderBottom:0,borderRadius:`${en}px`,"&-rtl":{direction:"rtl"},[`& > ${ht}-item`]:{borderBottom:kt,"&:last-child":{[` + `]:{marginInlineStart:be.marginXXS}},[`${vt}-overlay-link`]:{borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",padding:`0 ${be.paddingXXS}px`,marginInline:-be.marginXXS,[`> ${ct}`]:{marginInlineStart:be.marginXXS,fontSize:be.fontSizeIcon},"&:hover":{color:be.linkHoverColor,backgroundColor:be.colorBgTextHover,a:{color:be.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${be.componentCls}-rtl`]:{direction:"rtl"}})}};var Ee=(0,oe.Z)("Breadcrumb",be=>{const vt=(0,se.TS)(be,{});return[ie(vt)]},be=>({itemColor:be.colorTextDescription,lastItemColor:be.colorText,iconFontSize:be.fontSize,linkColor:be.colorTextDescription,linkHoverColor:be.colorText,separatorColor:be.colorTextDescription,separatorMargin:be.marginXS})),Fe=function(be,vt){var ct={};for(var bt in be)Object.prototype.hasOwnProperty.call(be,bt)&&vt.indexOf(bt)<0&&(ct[bt]=be[bt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,bt=Object.getOwnPropertySymbols(be);At{var{breadcrumbName:xn}=En,Wt=Fe(En,["breadcrumbName"]);return Object.assign(Object.assign({},Wt),{title:xn})})}),At}function Le(be,vt){return(0,Re.useMemo)(()=>be||(vt?vt.map(Qe):null),[be,vt])}var st=function(be,vt){var ct={};for(var bt in be)Object.prototype.hasOwnProperty.call(be,bt)&&vt.indexOf(bt)<0&&(ct[bt]=be[bt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,bt=Object.getOwnPropertySymbols(be);At{if(vt===void 0)return vt;let ct=(vt||"").replace(/^\//,"");return Object.keys(be).forEach(bt=>{ct=ct.replace(`:${bt}`,be[bt])}),ct},Ye=be=>{const{prefixCls:vt,separator:ct="/",style:bt,className:At,rootClassName:En,routes:xn,items:Wt,children:Pt,itemRender:Te,params:et={}}=be,Yt=st(be,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:wn,direction:Lt,breadcrumb:_t}=Re.useContext(xe.E_);let Ce;const ot=wn("breadcrumb",vt),[an,tt]=Ee(ot),ht=Le(Wt,xn),Jn=E(ot,Te);if(ht&&ht.length>0){const kt=[],Wn=Wt||xn;Ce=ht.map((ra,tn)=>{const{path:Ba,key:Ka,type:Fa,menu:jn,overlay:Ha,onClick:Pa,className:fr,separator:oa,dropdownProps:Zn}=ra,da=Me(et,Ba);da!==void 0&&kt.push(da);const Aa=Ka!=null?Ka:tn;if(Fa==="separator")return Re.createElement(ke,{key:Aa},oa);const xa={},_a=tn===ht.length-1;jn?xa.menu=jn:Ha&&(xa.overlay=Ha);let{href:Sn}=ra;return kt.length&&da!==void 0&&(Sn=`#/${kt.join("/")}`),Re.createElement(x,Object.assign({key:Aa},xa,(0,Be.Z)(ra,{data:!0,aria:!0}),{className:fr,dropdownProps:Zn,href:Sn,separator:_a?"":ct,onClick:Pa,prefixCls:ot}),Jn(ra,et,Wn,kt,Sn))})}else if(Pt){const kt=(0,we.Z)(Pt).length;Ce=(0,we.Z)(Pt).map((Wn,ra)=>{if(!Wn)return Wn;const tn=ra===kt-1;return(0,We.Tm)(Wn,{separator:tn?"":ct,key:ra})})}const dn=he()(ot,_t==null?void 0:_t.className,{[`${ot}-rtl`]:Lt==="rtl"},At,En,tt),Qt=Object.assign(Object.assign({},_t==null?void 0:_t.style),bt);return an(Re.createElement("nav",Object.assign({className:dn,style:Qt},Yt),Re.createElement("ol",null,Ce)))};Ye.Item=z,Ye.Separator=ke;var Ge=Ye,$e=Ge},19842:function(it,jt,ae){"use strict";ae.d(jt,{Z:function(){return ba}});var b=ae(94480),he=ae(59301),we=ae(33853),Be=ae(58617),Re=ae(38819),We=ae(92310),xe=ae.n(We),Ke=ae(54476),Oe=ae(42978),De=ae(75931),ke=ae(77861),ze=ae(17115),Ue=ae(90782),ue=ae(6089),E=ae(18929),a=he.createContext(null),x=a,y=ae(76190),z=ae(20068),te=ae(33885),oe="__rc_cascader_search_mark__",se=function(Mt,Xt,fn){var Rt=fn.label;return Xt.some(function(Qn){return String(Qn[Rt]).toLowerCase().includes(Mt.toLowerCase())})},ie=function(Mt,Xt,fn,Rt){return Xt.map(function(Qn){return Qn[Rt.label]}).join(" / ")},Ee=function(Ze,Mt,Xt,fn,Rt,Qn){var Kn=Rt.filter,Je=Kn===void 0?se:Kn,nt=Rt.render,Xe=nt===void 0?ie:nt,rn=Rt.limit,Cn=rn===void 0?50:rn,Nn=Rt.sort;return he.useMemo(function(){var wa=[];if(!Ze)return[];function Ea(ta,ya){var Xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ta.forEach(function(zt){if(!(!Nn&&Cn!==!1&&Cn>0&&wa.length>=Cn)){var ka=[].concat((0,b.Z)(ya),[zt]),pr=zt[Xt.children],ho=Xn||zt.disabled;if((!pr||pr.length===0||Qn)&&Je(Ze,ka,{label:Xt.label})){var qa;wa.push((0,te.Z)((0,te.Z)({},zt),{},(qa={disabled:ho},(0,z.Z)(qa,Xt.label,Xe(Ze,ka,fn,Xt)),(0,z.Z)(qa,oe,ka),(0,z.Z)(qa,Xt.children,void 0),qa)))}pr&&Ea(zt[Xt.children],ka,ho)}})}return Ea(Mt,[]),Nn&&wa.sort(function(ta,ya){return Nn(ta[oe],ya[oe],Ze,Xt)}),Cn!==!1&&Cn>0?wa.slice(0,Cn):wa},[Ze,Mt,Xt,fn,Xe,Qn,Je,Nn,Cn])},Fe="__RC_CASCADER_SPLIT__",Qe="SHOW_PARENT",Le="SHOW_CHILD";function st(Ze){return Ze.join(Fe)}function Me(Ze){return Ze.map(st)}function Ye(Ze){return Ze.split(Fe)}function Ge(Ze){var Mt=Ze||{},Xt=Mt.label,fn=Mt.value,Rt=Mt.children,Qn=fn||"value";return{label:Xt||"label",value:Qn,key:Qn,children:Rt||"children"}}function $e(Ze,Mt){var Xt,fn;return(Xt=Ze.isLeaf)!==null&&Xt!==void 0?Xt:!((fn=Ze[Mt.children])!==null&&fn!==void 0&&fn.length)}function be(Ze){var Mt=Ze.parentElement;if(Mt){var Xt=Ze.offsetTop-Mt.offsetTop;Xt-Mt.scrollTop<0?Mt.scrollTo({top:Xt}):Xt+Ze.offsetHeight-Mt.scrollTop>Mt.offsetHeight&&Mt.scrollTo({top:Xt+Ze.offsetHeight-Mt.offsetHeight})}}function vt(Ze,Mt){return Ze.map(function(Xt){var fn;return(fn=Xt[oe])===null||fn===void 0?void 0:fn.map(function(Rt){return Rt[Mt.value]})})}function ct(Ze,Mt,Xt){var fn=new Set(Ze),Rt=Mt();return Ze.filter(function(Qn){var Kn=Rt[Qn],Je=Kn?Kn.parent:null,nt=Kn?Kn.children:null;return Kn&&Kn.node.disabled?!0:Xt===Le?!(nt&&nt.some(function(Xe){return Xe.key&&fn.has(Xe.key)})):!(Je&&!Je.node.disabled&&fn.has(Je.key))})}function bt(Ze,Mt,Xt){for(var fn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Rt=Mt,Qn=[],Kn=function(){var Xe,rn,Cn,Nn=Ze[Je],wa=(Xe=Rt)===null||Xe===void 0?void 0:Xe.findIndex(function(ta){var ya=ta[Xt.value];return fn?String(ya)===String(Nn):ya===Nn}),Ea=wa!==-1?(rn=Rt)===null||rn===void 0?void 0:rn[wa]:null;Qn.push({value:(Cn=Ea==null?void 0:Ea[Xt.value])!==null&&Cn!==void 0?Cn:Nn,index:wa,option:Ea}),Rt=Ea==null?void 0:Ea[Xt.children]},Je=0;Je1){var Ht=Ea.slice(0,-1);zt(Ht)}else Xe(!1)},ho=function(){var Ht,Qr=((Ht=ya[ta])===null||Ht===void 0?void 0:Ht[Xt.children])||[],Ua=Qr.find(function(lr){return!lr.disabled});if(Ua){var Sr=[].concat((0,b.Z)(Ea),[Ua[Xt.value]]);zt(Sr)}};he.useImperativeHandle(Ze,function(){return{onKeyDown:function(Ht){var Qr=Ht.which;switch(Qr){case ot.Z.UP:case ot.Z.DOWN:{var Ua=0;Qr===ot.Z.UP?Ua=-1:Qr===ot.Z.DOWN&&(Ua=1),Ua!==0&&ka(Ua);break}case ot.Z.LEFT:{if(nt)break;Cn?ho():pr();break}case ot.Z.RIGHT:{if(nt)break;Cn?pr():ho();break}case ot.Z.BACKSPACE:{nt||pr();break}case ot.Z.ENTER:{if(Ea.length){var Sr=ya[ta],lr=(Sr==null?void 0:Sr[oe])||[];lr.length?Qn(lr.map(function(Gr){return Gr[Xt.value]}),lr[lr.length-1]):Qn(Ea,ya[ta])}break}case ot.Z.ESC:Xe(!1),rn&&Ht.stopPropagation()}},onKeyUp:function(){}}})},tt=he.forwardRef(function(Ze,Mt){var Xt,fn,Rt,Qn,Kn=(0,ke.lk)(),Je=Kn.prefixCls,nt=Kn.multiple,Xe=Kn.searchValue,rn=Kn.toggleOpen,Cn=Kn.notFoundContent,Nn=Kn.direction,wa=Kn.open,Ea=he.useRef(),ta=Nn==="rtl",ya=he.useContext(x),Xn=ya.options,zt=ya.values,ka=ya.halfValues,pr=ya.fieldNames,ho=ya.changeOnSelect,qa=ya.onSelect,Ht=ya.searchOptions,Qr=ya.dropdownPrefixCls,Ua=ya.loadData,Sr=ya.expandTrigger,lr=Qr||Je,Gr=he.useState([]),Lr=(0,Oe.Z)(Gr,2),no=Lr[0],Mr=Lr[1],ca=function(Nr){if(!(!Ua||Xe)){var Eo=bt(Nr,Xn,pr),Ja=Eo.map(function(hr){var Kr=hr.option;return Kr}),Hr=Ja[Ja.length-1];if(Hr&&!$e(Hr,pr)){var Yr=st(Nr);Mr(function(hr){return[].concat((0,b.Z)(hr),[Yr])}),Ua(Ja)}}};he.useEffect(function(){no.length&&no.forEach(function(xr){var Nr=Ye(xr),Eo=bt(Nr,Xn,pr,!0).map(function(Hr){var Yr=Hr.option;return Yr}),Ja=Eo[Eo.length-1];(!Ja||Ja[pr.children]||$e(Ja,pr))&&Mr(function(Hr){return Hr.filter(function(Yr){return Yr!==xr})})})},[Xn,no,pr]);var nn=he.useMemo(function(){return new Set(Me(zt))},[zt]),gr=he.useMemo(function(){return new Set(Me(ka))},[ka]),ga=Ce(),ur=(0,Oe.Z)(ga,2),za=ur[0],vn=ur[1],na=function(Nr){vn(Nr),ca(Nr)},Na=function(Nr){var Eo=Nr.disabled,Ja=$e(Nr,pr);return!Eo&&(Ja||ho||nt)},_n=function(Nr,Eo){var Ja=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;qa(Nr),!nt&&(Eo||ho&&(Sr==="hover"||Ja))&&rn(!1)},sr=he.useMemo(function(){return Xe?Ht:Xn},[Xe,Ht,Xn]),tr=he.useMemo(function(){for(var xr=[{options:sr}],Nr=sr,Eo=vt(Nr,pr),Ja=function(){var Kr=za[Hr],xt=Nr.find(function(Et,Mn){return(Eo[Mn]?st(Eo[Mn]):Et[pr.value])===Kr}),Ft=xt==null?void 0:xt[pr.children];if(!(Ft!=null&&Ft.length))return"break";Nr=Ft,xr.push({options:Ft})},Hr=0;Hr":no,ca=Ze.loadingIcon,nn=Ze.children,gr=Ze.dropdownMatchSelectWidth,ga=gr===void 0?!1:gr,ur=Ze.showCheckedStrategy,za=ur===void 0?Qe:ur,vn=(0,De.Z)(Ze,kt),na=(0,ze.ZP)(Xt),Na=!!Cn,_n=(0,E.Z)(Kn,{value:Je,postState:ra}),sr=(0,Oe.Z)(_n,2),tr=sr[0],Ar=sr[1],Ur=he.useMemo(function(){return Ge(Qn)},[JSON.stringify(Qn)]),mr=he.useMemo(function(){return zt||[]},[zt]),Yo=xn(mr,Ur),Mo=he.useCallback(function(Dn){var Hn=Yo();return Dn.map(function(me){var gt=Hn[me].nodes;return gt.map(function(Bt){return Bt[Ur.value]})})},[Yo,Ur]),Ei=(0,E.Z)("",{value:Ea,postState:function(Hn){return Hn||""}}),xr=(0,Oe.Z)(Ei,2),Nr=xr[0],Eo=xr[1],Ja=function(Hn,me){Eo(Hn),me.source!=="blur"&&ta&&ta(Hn)},Hr=Te(ya),Yr=(0,Oe.Z)(Hr,2),hr=Yr[0],Kr=Yr[1],xt=Ee(Nr,mr,Ur,ka||Rt,Kr,nt),Ft=Wt(mr,Ur),Et=he.useMemo(function(){var Dn=Ft(tr),Hn=(0,Oe.Z)(Dn,2),me=Hn[0],gt=Hn[1];if(!Na||!tr.length)return[me,[],gt];var Bt=Me(me),ln=Yo(),pt=(0,Ue.S)(Bt,!0,ln),Ln=pt.checkedKeys,An=pt.halfCheckedKeys;return[Mo(Ln),Mo(An),gt]},[Na,tr,Yo,Mo,Ft]),Mn=(0,Oe.Z)(Et,3),Za=Mn[0],rr=Mn[1],Pn=Mn[2],$a=he.useMemo(function(){var Dn=Me(Za),Hn=ct(Dn,Yo,za);return[].concat((0,b.Z)(Pn),(0,b.Z)(Mo(Hn)))},[Za,Yo,Mo,Pn,za]),Xa=At($a,mr,Ur,Na,rn),ao=(0,ue.Z)(function(Dn){if(Ar(Dn),Xe){var Hn=ra(Dn),me=Hn.map(function(ln){return bt(ln,mr,Ur).map(function(pt){return pt.option})}),gt=Na?Hn:Hn[0],Bt=Na?me:me[0];Xe(gt,Bt)}}),dr=(0,ue.Z)(function(Dn){if((!Na||wa)&&Eo(""),!Na)ao(Dn);else{var Hn=st(Dn),me=Me(Za),gt=Me(rr),Bt=me.includes(Hn),ln=Pn.some(function(ma){return st(ma)===Hn}),pt=Za,Ln=Pn;if(ln&&!Bt)Ln=Pn.filter(function(ma){return st(ma)!==Hn});else{var An=Bt?me.filter(function(ma){return ma!==Hn}):[].concat((0,b.Z)(me),[Hn]),mn=Yo(),yn;if(Bt){var Oa=(0,Ue.S)(An,{checked:!1,halfCheckedKeys:gt},mn);yn=Oa.checkedKeys}else{var cr=(0,Ue.S)(An,!0,mn);yn=cr.checkedKeys}var Fr=ct(yn,Yo,za);pt=Mo(Fr)}ao([].concat((0,b.Z)(Ln),(0,b.Z)(pt)))}}),Ga=function(Hn,me){if(me.type==="clear"){ao([]);return}var gt=me.values[0],Bt=gt.valueCells;dr(Bt)},wr=qa!==void 0?qa:ho,Bo=Qr||Ht,ri=lr||Sr,Rr=function(Hn){Gr==null||Gr(Hn),Lr==null||Lr(Hn)},So=he.useMemo(function(){return{options:mr,fieldNames:Ur,values:Za,halfValues:rr,changeOnSelect:nt,onSelect:dr,checkable:Cn,searchOptions:xt,dropdownPrefixCls:ka,loadData:pr,expandTrigger:Xn,expandIcon:Mr,loadingIcon:ca,dropdownMenuColumnStyle:Ua}},[mr,Ur,Za,rr,nt,dr,Cn,xt,ka,pr,Xn,Mr,ca,Ua]),jo=!(Nr?xt:mr).length,ia=Nr&&Kr.matchInputWidth||jo?{}:{minWidth:"auto"};return he.createElement(x.Provider,{value:So},he.createElement(ke.Ac,(0,Ke.Z)({},vn,{ref:Mt,id:na,prefixCls:Rt,autoClearSearchValue:wa,dropdownMatchSelectWidth:ga,dropdownStyle:ia,displayValues:Xa,onDisplayValuesChange:Ga,mode:Na?"multiple":void 0,searchValue:Nr,onSearch:Ja,showSearch:hr,OptionList:ht,emptyOptions:jo,open:wr,dropdownClassName:Bo,placement:ri,onDropdownVisibleChange:Rr,getRawInputElement:function(){return nn}})))});tn.SHOW_PARENT=Qe,tn.SHOW_CHILD=Le;var Ba=tn,Ka=Ba,Fa=ae(2738),jn=ae(62892),Ha=ae(53487),Pa=ae(19080),fr=ae(36355),oa=ae(93891),Zn=ae(1684),da=ae(19716),Aa=ae(32441),xa=ae(14154),_a=ae(58582),Sn=ae(84443),on=ae(66339),St=ae(33234),Tt=ae(98447),ja=ae(17313),Ca=ae(74207),Wa=ae(83116);const Da=Ze=>{const{prefixCls:Mt,componentCls:Xt,antCls:fn}=Ze,Rt=`${Xt}-menu-item`,Qn=` + &${Rt}-expand ${Rt}-expand-icon, + ${Rt}-loading-icon + `;return[{[Xt]:{width:Ze.controlWidth}},{[`${Xt}-dropdown`]:[(0,Tt.C2)(`${Mt}-checkbox`,Ze),{[`&${fn}-select-dropdown`]:{padding:0}},{[Xt]:{"&-checkbox":{top:0,marginInlineEnd:Ze.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Xt}-menu-empty`]:{[`${Xt}-menu`]:{width:"100%",height:"auto",[Rt]:{color:Ze.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:Ze.controlItemWidth,height:Ze.dropdownHeight,margin:0,padding:Ze.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${Ze.lineWidth}px ${Ze.lineType} ${Ze.colorSplit}`},"&-item":Object.assign(Object.assign({},ja.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Ze.optionPadding,lineHeight:Ze.lineHeight,cursor:"pointer",transition:`all ${Ze.motionDurationMid}`,borderRadius:Ze.borderRadiusSM,"&:hover":{background:Ze.controlItemBgHover},"&-disabled":{color:Ze.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[Qn]:{color:Ze.colorTextDisabled}},[`&-active:not(${Rt}-disabled)`]:{"&, &:hover":{fontWeight:Ze.optionSelectedFontWeight,backgroundColor:Ze.optionSelectedBg}},"&-content":{flex:"auto"},[Qn]:{marginInlineStart:Ze.paddingXXS,color:Ze.colorTextDescription,fontSize:Ze.fontSizeIcon},"&-keyword":{color:Ze.colorHighlight}})}}}]},{[`${Xt}-dropdown-rtl`]:{direction:"rtl"}},(0,Ca.c)(Ze)]};var Ta=(0,Wa.Z)("Cascader",Ze=>[Da(Ze)],Ze=>{const Mt=Math.round((Ze.controlHeight-Ze.fontSize*Ze.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Ze.controlItemBgActive,optionSelectedFontWeight:Ze.fontWeightStrong,optionPadding:`${Mt}px ${Ze.paddingSM}px`,menuPadding:Ze.paddingXXS}}),Br=function(Ze,Mt){var Xt={};for(var fn in Ze)Object.prototype.hasOwnProperty.call(Ze,fn)&&Mt.indexOf(fn)<0&&(Xt[fn]=Ze[fn]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,fn=Object.getOwnPropertySymbols(Ze);Rtnt===0?[Je]:[].concat((0,b.Z)(Kn),[Mt,Je]),[]),Rt=[];let Qn=0;return fn.forEach((Kn,Je)=>{const nt=Qn+Kn.length;let Xe=Ze.slice(Qn,nt);Qn=nt,Je%2===1&&(Xe=he.createElement("span",{className:`${Xt}-menu-item-keyword`,key:`separator-${Je}`},Xe)),Rt.push(Xe)}),Rt}const Ut=(Ze,Mt,Xt,fn)=>{const Rt=[],Qn=Ze.toLowerCase();return Mt.forEach((Kn,Je)=>{Je!==0&&Rt.push(" / ");let nt=Kn[fn.label];const Xe=typeof nt;(Xe==="string"||Xe==="number")&&(nt=Oo(String(nt),Qn,Xt)),Rt.push(nt)}),Rt},Un=he.forwardRef((Ze,Mt)=>{const{prefixCls:Xt,size:fn,disabled:Rt,className:Qn,rootClassName:Kn,multiple:Je,bordered:nt=!0,transitionName:Xe,choiceTransitionName:rn="",popupClassName:Cn,dropdownClassName:Nn,expandIcon:wa,placement:Ea,showSearch:ta,allowClear:ya=!0,notFoundContent:Xn,direction:zt,getPopupContainer:ka,status:pr,showArrow:ho,builtinPlacements:qa,style:Ht}=Ze,Qr=Br(Ze,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Ua=(0,Fa.Z)(Qr,["suffixIcon"]),{getPopupContainer:Sr,getPrefixCls:lr,renderEmpty:Gr,direction:Lr,popupOverflow:no,cascader:Mr}=he.useContext(fr.E_),ca=zt||Lr,nn=ca==="rtl",{status:gr,hasFeedback:ga,isFormItemInput:ur,feedbackIcon:za}=he.useContext(Aa.aM),vn=(0,Pa.F)(gr,pr),na=Xn||(Gr==null?void 0:Gr("Cascader"))||he.createElement(oa.Z,{componentName:"Cascader"}),Na=lr(),_n=lr("select",Xt),sr=lr("cascader",Xt),[tr,Ar]=(0,xa.Z)(_n),[Ur]=Ta(sr),{compactSize:mr,compactItemClassnames:Yo}=(0,St.ri)(_n,zt),Mo=xe()(Cn||Nn,`${sr}-dropdown`,{[`${sr}-dropdown-rtl`]:ca==="rtl"},Kn,Ar),Ei=he.useMemo(()=>{if(!ta)return ta;let Pn={render:Ut};return typeof ta=="object"&&(Pn=Object.assign(Object.assign({},Pn),ta)),Pn},[ta]),xr=(0,da.Z)(Pn=>{var $a;return($a=fn!=null?fn:mr)!==null&&$a!==void 0?$a:Pn}),Nr=he.useContext(Zn.Z),Eo=Rt!=null?Rt:Nr;let Ja=wa;wa||(Ja=nn?he.createElement(we.Z,null):he.createElement(Re.Z,null));const Hr=he.createElement("span",{className:`${_n}-menu-item-loading-icon`},he.createElement(Be.Z,{spin:!0})),Yr=he.useMemo(()=>Je?he.createElement("span",{className:`${sr}-checkbox-inner`}):!1,[Je]),hr=(0,Sn.Z)(Ze.suffixIcon,ho),{suffixIcon:Kr,removeIcon:xt,clearIcon:Ft}=(0,on.Z)(Object.assign(Object.assign({},Ze),{hasFeedback:ga,feedbackIcon:za,showSuffixIcon:hr,multiple:Je,prefixCls:_n,componentName:"Cascader"})),Et=he.useMemo(()=>Ea!==void 0?Ea:nn?"bottomRight":"bottomLeft",[Ea,nn]),Mn=(0,_a.Z)(qa,no),Za=ya===!0?{clearIcon:Ft}:ya,rr=he.createElement(Ka,Object.assign({prefixCls:_n,className:xe()(!Xt&&sr,{[`${_n}-lg`]:xr==="large",[`${_n}-sm`]:xr==="small",[`${_n}-rtl`]:nn,[`${_n}-borderless`]:!nt,[`${_n}-in-form-item`]:ur},(0,Pa.Z)(_n,vn,ga),Yo,Mr==null?void 0:Mr.className,Qn,Kn,Ar),disabled:Eo,style:Object.assign(Object.assign({},Mr==null?void 0:Mr.style),Ht)},Ua,{builtinPlacements:Mn,direction:ca,placement:Et,notFoundContent:na,allowClear:Za,showSearch:Ei,expandIcon:Ja,suffixIcon:Kr,removeIcon:xt,loadingIcon:Hr,checkable:Yr,dropdownClassName:Mo,dropdownPrefixCls:Xt||sr,choiceTransitionName:(0,jn.m)(Na,"",rn),transitionName:(0,jn.m)(Na,"slide-up",Xe),getPopupContainer:ka||Sr,ref:Mt}));return Ur(tr(rr))}),$n=(0,Ha.Z)(Un);Un.SHOW_PARENT=Or,Un.SHOW_CHILD=ar,Un._InternalPanelDoNotUseOrYouWillBeFired=$n;var ba=Un},36381:function(it,jt,ae){"use strict";ae.d(jt,{default:function(){return an}});var b=ae(38819),he=ae(92310),we=ae.n(he),Be=ae(54476),Re=ae(94480),We=ae(42978),xe=ae(76190),Ke=ae(18929),Oe=ae(48736),De=ae(59301),ke=ae(75931),ze=ae(11592),Ue=ae(20068),ue=ae(77900),E=ae(10228),a=De.forwardRef(function(tt,ht){var Jn=tt.prefixCls,dn=tt.forceRender,Qt=tt.className,kt=tt.style,Wn=tt.children,ra=tt.isActive,tn=tt.role,Ba=De.useState(ra||dn),Ka=(0,We.Z)(Ba,2),Fa=Ka[0],jn=Ka[1];return De.useEffect(function(){(dn||ra)&&jn(!0)},[dn,ra]),Fa?De.createElement("div",{ref:ht,className:we()("".concat(Jn,"-content"),(0,Ue.Z)((0,Ue.Z)({},"".concat(Jn,"-content-active"),ra),"".concat(Jn,"-content-inactive"),!ra),Qt),style:kt,role:tn},De.createElement("div",{className:"".concat(Jn,"-content-box")},Wn)):null});a.displayName="PanelContent";var x=a,y=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],z=De.forwardRef(function(tt,ht){var Jn=tt.showArrow,dn=Jn===void 0?!0:Jn,Qt=tt.headerClass,kt=tt.isActive,Wn=tt.onItemClick,ra=tt.forceRender,tn=tt.className,Ba=tt.prefixCls,Ka=tt.collapsible,Fa=tt.accordion,jn=tt.panelKey,Ha=tt.extra,Pa=tt.header,fr=tt.expandIcon,oa=tt.openMotion,Zn=tt.destroyInactivePanel,da=tt.children,Aa=(0,ke.Z)(tt,y),xa=Ka==="disabled",_a=Ka==="header",Sn=Ka==="icon",on=Ha!=null&&typeof Ha!="boolean",St=function(){Wn==null||Wn(jn)},Tt=function(Br){(Br.key==="Enter"||Br.keyCode===E.Z.ENTER||Br.which===E.Z.ENTER)&&St()},ja=typeof fr=="function"?fr(tt):De.createElement("i",{className:"arrow"});ja&&(ja=De.createElement("div",{className:"".concat(Ba,"-expand-icon"),onClick:["header","icon"].includes(Ka)?St:void 0},ja));var Ca=we()((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(Ba,"-item"),!0),"".concat(Ba,"-item-active"),kt),"".concat(Ba,"-item-disabled"),xa),tn),Wa=we()(Qt,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(Ba,"-header"),!0),"".concat(Ba,"-header-collapsible-only"),_a),"".concat(Ba,"-icon-collapsible-only"),Sn)),Da={className:Wa,"aria-expanded":kt,"aria-disabled":xa,onKeyDown:Tt};return!_a&&!Sn&&(Da.onClick=St,Da.role=Fa?"tab":"button",Da.tabIndex=xa?-1:0),De.createElement("div",(0,Be.Z)({},Aa,{ref:ht,className:Ca}),De.createElement("div",Da,dn&&ja,De.createElement("span",{className:"".concat(Ba,"-header-text"),onClick:Ka==="header"?St:void 0},Pa),on&&De.createElement("div",{className:"".concat(Ba,"-extra")},Ha)),De.createElement(ue.default,(0,Be.Z)({visible:kt,leavedClassName:"".concat(Ba,"-content-hidden")},oa,{forceRender:ra,removeOnLeave:Zn}),function(Ta,Br){var ar=Ta.className,Or=Ta.style;return De.createElement(x,{ref:Br,prefixCls:Ba,className:ar,style:Or,isActive:kt,forceRender:ra,role:Fa?"tabpanel":void 0},da)}))}),te=z,oe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],se=function(ht,Jn){var dn=Jn.prefixCls,Qt=Jn.accordion,kt=Jn.collapsible,Wn=Jn.destroyInactivePanel,ra=Jn.onItemClick,tn=Jn.activeKey,Ba=Jn.openMotion,Ka=Jn.expandIcon;return ht.map(function(Fa,jn){var Ha=Fa.children,Pa=Fa.label,fr=Fa.key,oa=Fa.collapsible,Zn=Fa.onItemClick,da=Fa.destroyInactivePanel,Aa=(0,ke.Z)(Fa,oe),xa=String(fr!=null?fr:jn),_a=oa!=null?oa:kt,Sn=da!=null?da:Wn,on=function(ja){_a!=="disabled"&&(ra(ja),Zn==null||Zn(ja))},St=!1;return Qt?St=tn[0]===xa:St=tn.indexOf(xa)>-1,De.createElement(te,(0,Be.Z)({},Aa,{prefixCls:dn,key:xa,panelKey:xa,isActive:St,accordion:Qt,openMotion:Ba,expandIcon:Ka,header:Pa,collapsible:_a,onItemClick:on,destroyInactivePanel:Sn}),Ha)})},ie=function(ht,Jn,dn){if(!ht)return null;var Qt=dn.prefixCls,kt=dn.accordion,Wn=dn.collapsible,ra=dn.destroyInactivePanel,tn=dn.onItemClick,Ba=dn.activeKey,Ka=dn.openMotion,Fa=dn.expandIcon,jn=ht.key||String(Jn),Ha=ht.props,Pa=Ha.header,fr=Ha.headerClass,oa=Ha.destroyInactivePanel,Zn=Ha.collapsible,da=Ha.onItemClick,Aa=!1;kt?Aa=Ba[0]===jn:Aa=Ba.indexOf(jn)>-1;var xa=Zn!=null?Zn:Wn,_a=function(St){xa!=="disabled"&&(tn(St),da==null||da(St))},Sn={key:jn,panelKey:jn,header:Pa,headerClass:fr,isActive:Aa,prefixCls:Qt,destroyInactivePanel:oa!=null?oa:ra,openMotion:Ka,accordion:kt,children:ht.props.children,onItemClick:_a,expandIcon:Fa,collapsible:xa};return typeof ht.type=="string"?ht:(Object.keys(Sn).forEach(function(on){typeof Sn[on]=="undefined"&&delete Sn[on]}),De.cloneElement(ht,Sn))};function Ee(tt,ht,Jn){return Array.isArray(tt)?se(tt,Jn):(0,ze.Z)(ht).map(function(dn,Qt){return ie(dn,Qt,Jn)})}var Fe=Ee,Qe=ae(26112);function Le(tt){var ht=tt;if(!Array.isArray(ht)){var Jn=(0,xe.Z)(ht);ht=Jn==="number"||Jn==="string"?[ht]:[]}return ht.map(function(dn){return String(dn)})}var st=De.forwardRef(function(tt,ht){var Jn=tt.prefixCls,dn=Jn===void 0?"rc-collapse":Jn,Qt=tt.destroyInactivePanel,kt=Qt===void 0?!1:Qt,Wn=tt.style,ra=tt.accordion,tn=tt.className,Ba=tt.children,Ka=tt.collapsible,Fa=tt.openMotion,jn=tt.expandIcon,Ha=tt.activeKey,Pa=tt.defaultActiveKey,fr=tt.onChange,oa=tt.items,Zn=we()(dn,tn),da=(0,Ke.Z)([],{value:Ha,onChange:function(Tt){return fr==null?void 0:fr(Tt)},defaultValue:Pa,postState:Le}),Aa=(0,We.Z)(da,2),xa=Aa[0],_a=Aa[1],Sn=function(Tt){return _a(function(){if(ra)return xa[0]===Tt?[]:[Tt];var ja=xa.indexOf(Tt),Ca=ja>-1;return Ca?xa.filter(function(Wa){return Wa!==Tt}):[].concat((0,Re.Z)(xa),[Tt])})};(0,Oe.ZP)(!Ba,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var on=Fe(oa,Ba,{prefixCls:dn,accordion:ra,openMotion:Fa,expandIcon:jn,collapsible:Ka,destroyInactivePanel:kt,onItemClick:Sn,activeKey:xa});return De.createElement("div",(0,Be.Z)({ref:ht,className:Zn,style:Wn,role:ra?"tablist":void 0},(0,Qe.Z)(tt,{aria:!0,data:!0})),on)}),Me=Object.assign(st,{Panel:te}),Ye=Me,Ge=Me.Panel,$e=ae(2738),be=ae(62892),vt=ae(92343),ct=ae(36355),bt=ae(19716),En=De.forwardRef((tt,ht)=>{const{getPrefixCls:Jn}=De.useContext(ct.E_),{prefixCls:dn,className:Qt,showArrow:kt=!0}=tt,Wn=Jn("collapse",dn),ra=we()({[`${Wn}-no-arrow`]:!kt},Qt);return De.createElement(Ye.Panel,Object.assign({ref:ht},tt,{prefixCls:Wn,className:ra}))}),xn=ae(17313),Wt=ae(8378),Pt=ae(83116),Te=ae(37613);const et=tt=>{const{componentCls:ht,contentBg:Jn,padding:dn,headerBg:Qt,headerPadding:kt,collapseHeaderPaddingSM:Wn,collapseHeaderPaddingLG:ra,collapsePanelBorderRadius:tn,lineWidth:Ba,lineType:Ka,colorBorder:Fa,colorText:jn,colorTextHeading:Ha,colorTextDisabled:Pa,fontSize:fr,fontSizeLG:oa,lineHeight:Zn,marginSM:da,paddingSM:Aa,paddingLG:xa,paddingXS:_a,motionDurationSlow:Sn,fontSizeIcon:on,contentPadding:St}=tt,Tt=`${Ba}px ${Ka} ${Fa}`;return{[ht]:Object.assign(Object.assign({},(0,xn.Wf)(tt)),{backgroundColor:Qt,border:Tt,borderBottom:0,borderRadius:`${tn}px`,"&-rtl":{direction:"rtl"},[`& > ${ht}-item`]:{borderBottom:Tt,"&:last-child":{[` &, - & > ${ht}-header`]:{borderRadius:`0 0 ${en}px ${en}px`}},[`> ${ht}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:Rt,color:Ha,lineHeight:Zn,cursor:"pointer",transition:`all ${Sn}, visibility 0s`,[`> ${ht}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${ht}-expand-icon`]:{height:fr*Zn,display:"flex",alignItems:"center",paddingInlineEnd:da},[`${ht}-arrow`]:Object.assign(Object.assign({},(0,Bn.Ro)()),{fontSize:rn,svg:{transition:`transform ${Sn}`}}),[`${ht}-header-text`]:{marginInlineEnd:"auto"}},[`${ht}-header-collapsible-only`]:{cursor:"default",[`${ht}-header-text`]:{flex:"none",cursor:"pointer"}},[`${ht}-icon-collapsible-only`]:{cursor:"default",[`${ht}-expand-icon`]:{cursor:"pointer"}}},[`${ht}-content`]:{color:jn,backgroundColor:Jn,borderTop:kt,[`& > ${ht}-content-box`]:{padding:St},"&-hidden":{display:"none"}},"&-small":{[`> ${ht}-item`]:{[`> ${ht}-header`]:{padding:Wn,paddingInlineStart:_a,[`> ${ht}-expand-icon`]:{marginInlineStart:Aa-_a}},[`> ${ht}-content > ${ht}-content-box`]:{padding:Aa}}},"&-large":{[`> ${ht}-item`]:{fontSize:oa,[`> ${ht}-header`]:{padding:ra,paddingInlineStart:dn,[`> ${ht}-expand-icon`]:{height:oa*Zn,marginInlineStart:xa-dn}},[`> ${ht}-content > ${ht}-content-box`]:{padding:xa}}},[`${ht}-item:last-child`]:{[`> ${ht}-content`]:{borderRadius:`0 0 ${en}px ${en}px`}},[`& ${ht}-item-disabled > ${ht}-header`]:{"\n &,\n & > .arrow\n ":{color:Pa,cursor:"not-allowed"}},[`&${ht}-icon-position-end`]:{[`& > ${ht}-item`]:{[`> ${ht}-header`]:{[`${ht}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:da}}}}})}},Yt=nt=>{const{componentCls:ht}=nt,Jn=`> ${ht}-item > ${ht}-header ${ht}-arrow svg`;return{[`${ht}-rtl`]:{[Jn]:{transform:"rotate(180deg)"}}}},xn=nt=>{const{componentCls:ht,headerBg:Jn,paddingXXS:dn,colorBorder:Qt}=nt;return{[`${ht}-borderless`]:{backgroundColor:Jn,border:0,[`> ${ht}-item`]:{borderBottom:`1px solid ${Qt}`},[` + & > ${ht}-header`]:{borderRadius:`0 0 ${tn}px ${tn}px`}},[`> ${ht}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:kt,color:Ha,lineHeight:Zn,cursor:"pointer",transition:`all ${Sn}, visibility 0s`,[`> ${ht}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${ht}-expand-icon`]:{height:fr*Zn,display:"flex",alignItems:"center",paddingInlineEnd:da},[`${ht}-arrow`]:Object.assign(Object.assign({},(0,xn.Ro)()),{fontSize:on,svg:{transition:`transform ${Sn}`}}),[`${ht}-header-text`]:{marginInlineEnd:"auto"}},[`${ht}-header-collapsible-only`]:{cursor:"default",[`${ht}-header-text`]:{flex:"none",cursor:"pointer"}},[`${ht}-icon-collapsible-only`]:{cursor:"default",[`${ht}-expand-icon`]:{cursor:"pointer"}}},[`${ht}-content`]:{color:jn,backgroundColor:Jn,borderTop:Tt,[`& > ${ht}-content-box`]:{padding:St},"&-hidden":{display:"none"}},"&-small":{[`> ${ht}-item`]:{[`> ${ht}-header`]:{padding:Wn,paddingInlineStart:_a,[`> ${ht}-expand-icon`]:{marginInlineStart:Aa-_a}},[`> ${ht}-content > ${ht}-content-box`]:{padding:Aa}}},"&-large":{[`> ${ht}-item`]:{fontSize:oa,[`> ${ht}-header`]:{padding:ra,paddingInlineStart:dn,[`> ${ht}-expand-icon`]:{height:oa*Zn,marginInlineStart:xa-dn}},[`> ${ht}-content > ${ht}-content-box`]:{padding:xa}}},[`${ht}-item:last-child`]:{[`> ${ht}-content`]:{borderRadius:`0 0 ${tn}px ${tn}px`}},[`& ${ht}-item-disabled > ${ht}-header`]:{"\n &,\n & > .arrow\n ":{color:Pa,cursor:"not-allowed"}},[`&${ht}-icon-position-end`]:{[`& > ${ht}-item`]:{[`> ${ht}-header`]:{[`${ht}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:da}}}}})}},Yt=tt=>{const{componentCls:ht}=tt,Jn=`> ${ht}-item > ${ht}-header ${ht}-arrow svg`;return{[`${ht}-rtl`]:{[Jn]:{transform:"rotate(180deg)"}}}},wn=tt=>{const{componentCls:ht,headerBg:Jn,paddingXXS:dn,colorBorder:Qt}=tt;return{[`${ht}-borderless`]:{backgroundColor:Jn,border:0,[`> ${ht}-item`]:{borderBottom:`1px solid ${Qt}`},[` > ${ht}-item:last-child, > ${ht}-item:last-child ${ht}-header - `]:{borderRadius:0},[`> ${ht}-item:last-child`]:{borderBottom:0},[`> ${ht}-item > ${ht}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${ht}-item > ${ht}-content > ${ht}-content-box`]:{paddingTop:dn}}}},Lt=nt=>{const{componentCls:ht,paddingSM:Jn}=nt;return{[`${ht}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${ht}-item`]:{borderBottom:0,[`> ${ht}-content`]:{backgroundColor:"transparent",border:0,[`> ${ht}-content-box`]:{paddingBlock:Jn}}}}}};var _t=(0,Pt.Z)("Collapse",nt=>{const ht=(0,Te.TS)(nt,{collapseHeaderPaddingSM:`${nt.paddingXS}px ${nt.paddingSM}px`,collapseHeaderPaddingLG:`${nt.padding}px ${nt.paddingLG}px`,collapsePanelBorderRadius:nt.borderRadiusLG});return[et(ht),xn(ht),Lt(ht),Yt(ht),(0,Wt.Z)(ht)]},nt=>({headerPadding:`${nt.paddingSM}px ${nt.padding}px`,headerBg:nt.colorFillAlter,contentPadding:`${nt.padding}px 16px`,contentBg:nt.colorBgContainer})),ot=Object.assign(De.forwardRef((nt,ht)=>{const{getPrefixCls:Jn,direction:dn,collapse:Qt}=De.useContext(ct.E_),{prefixCls:Rt,className:Wn,rootClassName:ra,style:en,bordered:Ba=!0,ghost:Ka,size:Fa,expandIconPosition:jn="start",children:Ha,expandIcon:Pa}=nt,fr=(0,Ft.Z)(kt=>{var ja;return(ja=Fa!=null?Fa:kt)!==null&&ja!==void 0?ja:"middle"}),oa=Jn("collapse",Rt),Zn=Jn(),[da,Aa]=_t(oa),xa=De.useMemo(()=>jn==="left"?"start":jn==="right"?"end":jn,[jn]),_a=function(){let kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const ja=Pa?Pa(kt):De.createElement(b.Z,{rotate:kt.isActive?90:void 0});return(0,vt.Tm)(ja,()=>({className:we()(ja.props.className,`${oa}-arrow`)}))},Sn=we()(`${oa}-icon-position-${xa}`,{[`${oa}-borderless`]:!Ba,[`${oa}-rtl`]:dn==="rtl",[`${oa}-ghost`]:!!Ka,[`${oa}-${fr}`]:fr!=="middle"},Qt==null?void 0:Qt.className,Wn,ra,Aa),rn=Object.assign(Object.assign({},(0,be.Z)(Zn)),{motionAppear:!1,leavedClassName:`${oa}-content-hidden`}),St=De.useMemo(()=>Ha?(0,ze.Z)(Ha).map((kt,ja)=>{var Ca,Wa;if(!((Ca=kt.props)===null||Ca===void 0)&&Ca.disabled){const Da=(Wa=kt.key)!==null&&Wa!==void 0?Wa:String(ja),{disabled:Ta,collapsible:Br}=kt.props,ar=Object.assign(Object.assign({},(0,$e.Z)(kt.props,["disabled"])),{key:Da,collapsible:Br!=null?Br:Ta?"disabled":void 0});return(0,vt.Tm)(kt,ar)}return kt}):null,[Ha]);return da(De.createElement(Ye,Object.assign({ref:ht,openMotion:rn},(0,$e.Z)(nt,["rootClassName"]),{expandIcon:_a,prefixCls:oa,className:Sn,style:Object.assign(Object.assign({},Qt==null?void 0:Qt.style),en)}),St))}),{Panel:En}),nn=ot},5083:function(it,jt,ae){"use strict";ae.d(jt,{default:function(){return vs}});var b=ae(66649),he=ae.n(b),we=ae(48736),xe=ae(9007),Re=ae.n(xe),We=ae(50991),Be=ae.n(We),Ke=ae(9084),Oe=ae.n(Ke),De=ae(58626),ke=ae.n(De),ze=ae(13477),Ue=ae.n(ze),le=ae(64796),E=ae.n(le);he().extend(E()),he().extend(Ue()),he().extend(Re()),he().extend(Be()),he().extend(Oe()),he().extend(ke()),he().extend(function(ce,ge){var fe=ge.prototype,Ne=fe.format;fe.format=function(ut){var at=(ut||"").replace("Wo","wo");return Ne.bind(this)(at)}});var a={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},x=function(ge){var fe=a[ge];return fe||ge.split("_")[0]},y=function(){(0,we.ET)(!1,"Not match any format. Please help to fire a issue about this.")},z={getNow:function(){return he()()},getFixedDate:function(ge){return he()(ge,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(ge){return ge.endOf("month")},getWeekDay:function(ge){var fe=ge.locale("en");return fe.weekday()+fe.localeData().firstDayOfWeek()},getYear:function(ge){return ge.year()},getMonth:function(ge){return ge.month()},getDate:function(ge){return ge.date()},getHour:function(ge){return ge.hour()},getMinute:function(ge){return ge.minute()},getSecond:function(ge){return ge.second()},addYear:function(ge,fe){return ge.add(fe,"year")},addMonth:function(ge,fe){return ge.add(fe,"month")},addDate:function(ge,fe){return ge.add(fe,"day")},setYear:function(ge,fe){return ge.year(fe)},setMonth:function(ge,fe){return ge.month(fe)},setDate:function(ge,fe){return ge.date(fe)},setHour:function(ge,fe){return ge.hour(fe)},setMinute:function(ge,fe){return ge.minute(fe)},setSecond:function(ge,fe){return ge.second(fe)},isAfter:function(ge,fe){return ge.isAfter(fe)},isValidate:function(ge){return ge.isValid()},locale:{getWeekFirstDay:function(ge){return he()().locale(x(ge)).localeData().firstDayOfWeek()},getWeekFirstDate:function(ge,fe){return fe.locale(x(ge)).weekday(0)},getWeek:function(ge,fe){return fe.locale(x(ge)).week()},getShortWeekDays:function(ge){return he()().locale(x(ge)).localeData().weekdaysMin()},getShortMonths:function(ge){return he()().locale(x(ge)).localeData().monthsShort()},format:function(ge,fe,Ne){return fe.locale(x(ge)).format(Ne)},parse:function(ge,fe,Ne){for(var Ie=x(ge),ut=0;ut1&&(at=ge.addDate(at,-7)),at}function Aa(ce,ge,fe){var Ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(ge){case"year":return fe.addYear(ce,Ne*10);case"quarter":case"month":return fe.addYear(ce,Ne);default:return fe.addMonth(ce,Ne)}}function xa(ce,ge){var fe=ge.generateConfig,Ne=ge.locale,Ie=ge.format;return typeof Ie=="function"?Ie(ce):fe.locale.format(Ne.locale,ce,Ie)}function _a(ce,ge){var fe=ge.generateConfig,Ne=ge.locale,Ie=ge.formatList;return!ce||typeof Ie[0]=="function"?null:fe.locale.parse(Ne.locale,ce,Ie)}function Sn(ce){var ge=ce.cellDate,fe=ce.mode,Ne=ce.disabledDate,Ie=ce.generateConfig;if(!Ne)return!1;var ut=function(On,wt,Vt){for(var Rn=wt;Rn<=Vt;){var un=void 0;switch(On){case"date":{if(un=Ie.setDate(ge,Rn),!Ne(un))return!1;break}case"month":{if(un=Ie.setMonth(ge,Rn),!Sn({cellDate:un,mode:"month",generateConfig:Ie,disabledDate:Ne}))return!1;break}case"year":{if(un=Ie.setYear(ge,Rn),!Sn({cellDate:un,mode:"year",generateConfig:Ie,disabledDate:Ne}))return!1;break}}Rn+=1}return!0};switch(fe){case"date":case"week":return Ne(ge);case"month":{var at=1,Nt=Ie.getDate(Ie.getEndDate(ge));return ut("date",at,Nt)}case"quarter":{var Dt=Math.floor(Ie.getMonth(ge)/3)*3,It=Dt+2;return ut("month",Dt,It)}case"year":return ut("month",0,11);case"decade":{var Yn=Ie.getYear(ge),ln=Math.floor(Yn/Qt)*Qt,cn=ln+Qt-1;return ut("year",ln,cn)}}}function rn(ce,ge){var fe=ge.formatList,Ne=ge.generateConfig,Ie=ge.locale;return(0,Jn.Z)(function(){if(!ce)return[[""],""];for(var ut="",at=[],Nt=0;Nt1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(It.current),Rn){Dt(Vt);return}It.current=requestAnimationFrame(function(){Dt(Vt)})}var ln=rn(Nt,{formatList:fe,generateConfig:Ne,locale:Ie}),cn=(0,nn.Z)(ln,2),In=cn[1];function On(Vt){Yn(Vt)}function wt(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Yn(null,Vt)}return(0,ie.useEffect)(function(){wt(!0)},[ce]),(0,ie.useEffect)(function(){return function(){return cancelAnimationFrame(It.current)}},[]),[In,On,wt]}var kt=ae(10228),ja=ae(16089),Ca=ae(94480),Wa=ae(29194),Da=new Map;function Ta(ce,ge){var fe;function Ne(){(0,Wa.Z)(ce)?ge():fe=(0,ja.Z)(function(){Ne()})}return Ne(),function(){ja.Z.cancel(fe)}}function Br(ce,ge,fe){if(Da.get(ce)&&cancelAnimationFrame(Da.get(ce)),fe<=0){Da.set(ce,requestAnimationFrame(function(){ce.scrollTop=ge}));return}var Ne=ge-ce.scrollTop,Ie=Ne/fe*10;Da.set(ce,requestAnimationFrame(function(){ce.scrollTop+=Ie,ce.scrollTop!==ge&&Br(ce,ge,fe-10)}))}function ar(ce,ge){var fe=ge.onLeftRight,Ne=ge.onCtrlLeftRight,Ie=ge.onUpDown,ut=ge.onPageUpDown,at=ge.onEnter,Nt=ce.which,Dt=ce.ctrlKey,It=ce.metaKey;switch(Nt){case kt.Z.LEFT:if(Dt||It){if(Ne)return Ne(-1),!0}else if(fe)return fe(-1),!0;break;case kt.Z.RIGHT:if(Dt||It){if(Ne)return Ne(1),!0}else if(fe)return fe(1),!0;break;case kt.Z.UP:if(Ie)return Ie(-1),!0;break;case kt.Z.DOWN:if(Ie)return Ie(1),!0;break;case kt.Z.PAGE_UP:if(ut)return ut(-1),!0;break;case kt.Z.PAGE_DOWN:if(ut)return ut(1),!0;break;case kt.Z.ENTER:if(at)return at(),!0;break}return!1}function Or(ce,ge,fe,Ne){var Ie=ce;if(!Ie)switch(ge){case"time":Ie=Ne?"hh:mm:ss a":"HH:mm:ss";break;case"week":Ie="gggg-wo";break;case"month":Ie="YYYY-MM";break;case"quarter":Ie="YYYY-[Q]Q";break;case"year":Ie="YYYY";break;default:Ie=fe?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Ie}function Oo(ce,ge,fe){var Ne=ce==="time"?8:10,Ie=typeof ge=="function"?ge(fe.getNow()).length:ge.length;return Math.max(Ne,Ie)+2}var Ut=null,Un=new Set;function $n(ce){return!Ut&&typeof window!="undefined"&&window.addEventListener&&(Ut=function(fe){(0,Ca.Z)(Un).forEach(function(Ne){Ne(fe)})},window.addEventListener("mousedown",Ut)),Un.add(ce),function(){Un.delete(ce),Un.size===0&&(window.removeEventListener("mousedown",Ut),Ut=null)}}function ba(ce){var ge=ce.target;if(ce.composed&&ge.shadowRoot){var fe;return((fe=ce.composedPath)===null||fe===void 0?void 0:fe.call(ce)[0])||ge}return ge}var Ze=function(ge){return ge==="month"||ge==="date"?"year":ge},Ot=function(ge){return ge==="date"?"month":ge},Xt=function(ge){return ge==="month"||ge==="date"?"quarter":ge},fn=function(ge){return ge==="date"?"week":ge},Mt={year:Ze,month:Ot,quarter:Xt,week:fn,time:null,date:null};function Qn(ce,ge){return ce.some(function(fe){return fe&&fe.contains(ge)})}function Kn(ce){var ge=ce.open,fe=ce.value,Ne=ce.isClickOutside,Ie=ce.triggerOpen,ut=ce.forwardKeyDown,at=ce.onKeyDown,Nt=ce.blurToCancel,Dt=ce.onSubmit,It=ce.onCancel,Yn=ce.onFocus,ln=ce.onBlur,cn=ce.changeOnBlur,In=(0,ie.useState)(!1),On=(0,nn.Z)(In,2),wt=On[0],Vt=On[1],Rn=(0,ie.useState)(!1),un=(0,nn.Z)(Rn,2),pa=un[0],Ma=un[1],Qa=(0,ie.useRef)(!1),Ra=(0,ie.useRef)(!1),ha=(0,ie.useRef)(!1),Jr={onMouseDown:function(){Vt(!0),Ie(!0)},onKeyDown:function(zr){var mo=function(){ha.current=!0};if(at(zr,mo),!ha.current){switch(zr.which){case kt.Z.ENTER:{ge?Dt()!==!1&&Vt(!0):Ie(!0),zr.preventDefault();return}case kt.Z.TAB:{wt&&ge&&!zr.shiftKey?(Vt(!1),zr.preventDefault()):!wt&&ge&&!ut(zr)&&zr.shiftKey&&(Vt(!0),zr.preventDefault());return}case kt.Z.ESC:{Vt(!0),It();return}}!ge&&![kt.Z.SHIFT].includes(zr.which)?Ie(!0):wt||ut(zr)}},onFocus:function(zr){Vt(!0),Ma(!0),Yn&&Yn(zr)},onBlur:function(zr){if(Qa.current||!Ne(document.activeElement)){Qa.current=!1;return}Nt?setTimeout(function(){for(var mo=document,yo=mo.activeElement;yo&&yo.shadowRoot;)yo=yo.shadowRoot.activeElement;Ne(yo)&&It()},0):ge&&(Ie(!1),Ra.current&&Dt()),Ma(!1),ln==null||ln(zr)}};return(0,ie.useEffect)(function(){Ra.current=!1},[ge]),(0,ie.useEffect)(function(){Ra.current=!0},[fe]),(0,ie.useEffect)(function(){return $n(function(Pr){var zr=ba(Pr),mo=Ne(zr);ge&&(mo?!cn&&(!pa||mo)&&Ie(!1):(Qa.current=!0,(0,ja.Z)(function(){Qa.current=!1})))})}),[Jr,{focused:pa,typing:wt}]}function Je(ce,ge){return ie.useMemo(function(){return ce||(ge?((0,we.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(ge).map(function(fe){var Ne=(0,nn.Z)(fe,2),Ie=Ne[0],ut=Ne[1];return{label:Ie,value:ut}})):[])},[ce,ge])}var tt=ae(34280);function Xe(ce){var ge=ce.valueTexts,fe=ce.onTextChange,Ne=ie.useState(""),Ie=(0,nn.Z)(Ne,2),ut=Ie[0],at=Ie[1],Nt=ie.useRef([]);Nt.current=ge;function Dt(Yn){at(Yn),fe(Yn)}function It(){at(Nt.current[0])}return(0,tt.Z)(function(){ge.every(function(Yn){return Yn!==ut})&&It()},[ge.join("||")]),[ut,Dt,It]}var an=ie.createContext({}),Cn=an,Nn=ae(76190);function wa(ce){var ge=ce.cellRender,fe=ce.monthCellRender,Ne=ce.dateRender,Ie=ie.useMemo(function(){if(ge)return ge;if(!(!fe&&!Ne))return function(ut,at){var Nt=ut;return Ne&&at.type==="date"?Ne(Nt,at.today):fe&&at.type==="month"?fe(Nt,at.locale):at.originNode}},[ge,fe,Ne]);return Ie}function Ea(ce,ge){for(var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Ne=String(ce);Ne.length=1?fe|0:1,at=ce;at<=ge;at+=ut)Ie.push({label:Ea(at,2),value:at,disabled:(Ne||[]).includes(at)});return Ie}function Ur(ce){var ge=ce.generateConfig,fe=ce.prefixCls,Ne=ce.operationRef,Ie=ce.activeColumnIndex,ut=ce.value,at=ce.showHour,Nt=ce.showMinute,Dt=ce.showSecond,It=ce.use12Hours,Yn=ce.hourStep,ln=Yn===void 0?1:Yn,cn=ce.minuteStep,In=cn===void 0?1:cn,On=ce.secondStep,wt=On===void 0?1:On,Vt=ce.disabledHours,Rn=ce.disabledMinutes,un=ce.disabledSeconds,pa=ce.disabledTime,Ma=ce.hideDisabledOptions,Qa=ce.onSelect,Ra=ce.cellRender,ha=ce.locale,Jr=[],Pr="".concat(fe,"-content"),zr="".concat(fe,"-time-panel"),mo,yo=ut?ge.getHour(ut):-1,Gn=yo,ii=ut?ge.getMinute(ut):-1,xo=ut?ge.getSecond(ut):-1,lo=ge.getNow(),fo=ie.useMemo(function(){if(pa){var ro=pa(lo);return[ro.disabledHours,ro.disabledMinutes,ro.disabledSeconds]}return[Vt,Rn,un]},[Vt,Rn,un,pa,lo]),Zo=(0,nn.Z)(fo,3),Wo=Zo[0],bo=Zo[1],Dr=Zo[2],_o=Ar(0,23,ln,Wo&&Wo()),Qo=(0,Jn.Z)(function(){return _o},_o,tr);It&&(mo=Gn>=12,Gn%=12);var Li=ie.useMemo(function(){if(!It)return[!1,!1];var ro=[!0,!0];return Qo.forEach(function(Do){var Go=Do.disabled,Fi=Do.value;Go||(Fi>=12?ro[1]=!1:ro[0]=!1)}),ro},[It,Qo]),ui=(0,nn.Z)(Li,2),Ni=ui[0],uo=ui[1],hi=ie.useMemo(function(){return It?Qo.filter(mo?function(ro){return ro.value>=12}:function(ro){return ro.value<12}).map(function(ro){var Do=ro.value%12,Go=Do===0?"12":Ea(Do,2);return(0,ot.Z)((0,ot.Z)({},ro),{},{label:Go,value:Do})}):Qo},[It,mo,Qo]),Bi=Ar(0,59,In,bo&&bo(yo)),Zi=Ar(0,59,wt,Dr&&Dr(yo,ii)),yi=Na({value:ut,generateConfig:ge,disabledMinutes:bo,disabledSeconds:Dr,minutes:Bi,seconds:Zi,use12Hours:It});Ne.current={onUpDown:function(Do){var Go=Jr[Ie];if(Go)for(var Fi=Go.units.findIndex(function(Bl){return Bl.value===Go.value}),Gi=Go.units.length,ci=1;ci2&&arguments[2]!==void 0?arguments[2]:!1;(si===Vt||Jo)&&(ql(Va),Jr&&Jr(Va),yi&&yi(Va,so),Pr&&!oa(Dt,Va,_i)&&!(In!=null&&In(Va))&&Pr(Va))},zi=function(Va){if(Fr.includes(si)){var so,Jo,fl=si==="date";switch(Va===kt.Z.PAGE_UP||Va===kt.Z.PAGE_DOWN?Jo=fl?Dt.addMonth:Dt.addYear:Jo=fl?Dt.addDate:Dt.addMonth,Va){case kt.Z.LEFT:case kt.Z.PAGE_UP:so=Jo(Hi,-1);break;case kt.Z.RIGHT:case kt.Z.PAGE_DOWN:so=Jo(Hi,1);break;case kt.Z.UP:case kt.Z.DOWN:so=Jo(Hi,Number("".concat(Va===kt.Z.UP?"-":"").concat(fl?Wn:rr)));break}if(so)return!(In!=null&&In(so))}return!0},zl=function(Va){if(ci.current&&ci.current.onKeyDown){var so=!0,Jo=Va.which;if([kt.Z.LEFT,kt.Z.RIGHT,kt.Z.UP,kt.Z.DOWN,kt.Z.PAGE_UP,kt.Z.PAGE_DOWN,kt.Z.ENTER].includes(Jo)&&(Va.preventDefault(),Jo!==kt.Z.ENTER&&un===0&&(so=zi(Jo))),so)return ci.current.onKeyDown(Va)}return(0,we.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},qo=function(Va){ci.current&&ci.current.onBlur&&ci.current.onBlur(Va)};Zi&&Go!=="right"&&(Zi.current={onKeyDown:zl,onClose:function(){ci.current&&ci.current.onClose&&ci.current.onClose()}}),ie.useEffect(function(){It&&!xi.current&&Pl(It)},[It]),ie.useEffect(function(){xi.current=!1},[]);var $i,wl=wa({cellRender:Li,monthCellRender:Qo,dateRender:_o}),la=(0,ot.Z)((0,ot.Z)({},ce),{},{cellRender:wl,operationRef:ci,prefixCls:Ie,viewDate:Hi,value:_i,onViewDateChange:Ji,sourceMode:il,onPanelChange:xl,disabledDate:In});switch(delete la.onChange,delete la.onSelect,si){case"decade":$i=ie.createElement(Et,(0,ue.Z)({},la,{onSelect:function(Va,so){Ji(Va),Ci(Va,so)}}));break;case"year":$i=ie.createElement(Fn,(0,ue.Z)({},la,{onSelect:function(Va,so){Ji(Va),Ci(Va,so)}}));break;case"month":$i=ie.createElement(dr,(0,ue.Z)({},la,{onSelect:function(Va,so){Ji(Va),Ci(Va,so)}}));break;case"quarter":$i=ie.createElement(ia,(0,ue.Z)({},la,{onSelect:function(Va,so){Ji(Va),Ci(Va,so)}}));break;case"week":$i=ie.createElement(Hn,(0,ue.Z)({},la,{onSelect:function(Va,so){Ji(Va),Ci(Va,so)}}));break;case"time":delete la.showTime,$i=ie.createElement(Ei,(0,ue.Z)({},la,(0,Nn.Z)(Ma)==="object"?Ma:null,{onSelect:function(Va,so){Ji(Va),Ci(Va,so)}}));break;default:Ma?$i=ie.createElement(Eo,(0,ue.Z)({},la,{onSelect:function(Va,so){Ji(Va),Ci(Va,so)}})):$i=ie.createElement(za,(0,ue.Z)({},la,{onSelect:function(Va,so){Ji(Va),Ci(Va,so)}}))}var Tl,gl,ml=function(){var Va=Dt.getNow(),so=Ua(Dt.getHour(Va),Dt.getMinute(Va),Dt.getSecond(Va),Ni?fo:1,uo?Wo:1,hi?Dr:1),Jo=Gt(Dt,Va,so[0],so[1],so[2]);Ci(Jo,"submit")};qi||(Tl=Oa(Ie,si,Ra),Ma&&si!=="date"?gl=null:gl=cr({prefixCls:Ie,components:ii,needConfirmButton:ui,okDisabled:!_i||In&&In(_i),locale:Nt,showNow:pa,onNow:ui&&ml,onOk:function(){_i&&(Ci(_i,"submit",!0),Gn&&Gn(_i))}}));var jl;if(Qa&&si==="date"&&Vt==="date"&&!Ma){var Dl=Dt.getNow(),eu="".concat(Ie,"-today-btn"),Vl=In&&In(Dl);jl=ie.createElement("a",{className:Te()(eu,Vl&&"".concat(eu,"-disabled")),"aria-disabled":Vl,onClick:function(){Vl||Ci(Dl,"mouse",!0)}},Nt.today)}return ie.createElement(Cn.Provider,{value:(0,ot.Z)((0,ot.Z)({},Bi),{},{mode:si,hideHeader:"hideHeader"in ce?ha:Bi.hideHeader,hidePrevBtn:Do&&Go==="right",hideNextBtn:Do&&Go==="left"})},ie.createElement("div",{tabIndex:un,className:Te()("".concat(Ie,"-panel"),ut,(ge={},(0,Ce.Z)(ge,"".concat(Ie,"-panel-has-range"),Fi&&Fi[0]&&Fi[1]),(0,Ce.Z)(ge,"".concat(Ie,"-panel-has-range-hover"),Gi&&Gi[0]&&Gi[1]),(0,Ce.Z)(ge,"".concat(Ie,"-panel-rtl"),xo==="rtl"),ge)),style:at,onKeyDown:zl,onBlur:qo,onMouseDown:mo},$i,Tl||gl||jl?ie.createElement("div",{className:"".concat(Ie,"-footer")},Tl,gl,jl):null))}var va=ma,or=ae(35593),Er={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 Ko(ce){var ge,fe=ce.prefixCls,Ne=ce.popupElement,Ie=ce.popupStyle,ut=ce.visible,at=ce.dropdownClassName,Nt=ce.dropdownAlign,Dt=ce.transitionName,It=ce.getPopupContainer,Yn=ce.children,ln=ce.range,cn=ce.popupPlacement,In=ce.direction,On="".concat(fe,"-dropdown"),wt=function(){return cn!==void 0?cn:In==="rtl"?"bottomRight":"bottomLeft"};return ie.createElement(or.Z,{showAction:[],hideAction:[],popupPlacement:wt(),builtinPlacements:Er,prefixCls:On,popupTransitionName:Dt,popup:Ne,popupAlign:Nt,popupVisible:ut,popupClassName:Te()(at,(ge={},(0,Ce.Z)(ge,"".concat(On,"-range"),ln),(0,Ce.Z)(ge,"".concat(On,"-rtl"),In==="rtl"),ge)),popupStyle:Ie,getPopupContainer:It},Yn)}var li=Ko;function Uo(ce){var ge=ce.prefixCls,fe=ce.presets,Ne=ce.onClick,Ie=ce.onHover;return fe.length?ie.createElement("div",{className:"".concat(ge,"-presets")},ie.createElement("ul",null,fe.map(function(ut,at){var Nt=ut.label,Dt=ut.value;return ie.createElement("li",{key:at,onClick:function(){return Ne==null?void 0:Ne(ka(Dt))},onMouseEnter:function(){return Ie==null?void 0:Ie(ka(Dt))},onMouseLeave:function(){return Ie==null?void 0:Ie(null)}},Nt)}))):null}function oi(ce){var ge=ce.picker,fe=ce.disabledHours,Ne=ce.disabledMinutes,Ie=ce.disabledSeconds;ge==="time"&&(fe||Ne||Ie)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function vi(ce,ge,fe){var Ne=(0,Nn.Z)(ge)==="object"?ge.clearIcon:fe;return Ne||ie.createElement("span",{className:"".concat(ce,"-clear-btn")})}function Si(ce){var ge,fe=ce,Ne=fe.prefixCls,Ie=Ne===void 0?"rc-picker":Ne,ut=fe.id,at=fe.name,Nt=fe.tabIndex,Dt=fe.style,It=fe.className,Yn=fe.dropdownClassName,ln=fe.dropdownAlign,cn=fe.popupStyle,In=fe.transitionName,On=fe.generateConfig,wt=fe.locale,Vt=fe.inputReadOnly,Rn=fe.allowClear,un=fe.autoFocus,pa=fe.showTime,Ma=fe.picker,Qa=Ma===void 0?"date":Ma,Ra=fe.format,ha=fe.use12Hours,Jr=fe.value,Pr=fe.defaultValue,zr=fe.presets,mo=fe.open,yo=fe.defaultOpen,Gn=fe.defaultOpenValue,ii=fe.suffixIcon,xo=fe.clearIcon,lo=fe.disabled,fo=fe.disabledDate,Zo=fe.placeholder,Wo=fe.getPopupContainer,bo=fe.pickerRef,Dr=fe.panelRender,_o=fe.onChange,Qo=fe.onOpenChange,Li=fe.onFocus,ui=fe.onBlur,Ni=fe.onMouseDown,uo=fe.onMouseUp,hi=fe.onMouseEnter,Bi=fe.onMouseLeave,Zi=fe.onContextMenu,yi=fe.onClick,qi=fe.onKeyDown,cl=fe.onSelect,ro=fe.direction,Do=fe.autoComplete,Go=Do===void 0?"off":Do,Fi=fe.inputRender,Gi=fe.changeOnBlur,ci=ie.useRef(null),xi=Qa==="date"&&!!pa||Qa==="time",Bl=Je(zr),Ki=ya(Or(Ra,Qa,pa,ha)),_i=ie.useRef(null),ql=ie.useRef(null),lu=ie.useRef(null),bn=(0,nt.Z)(null,{value:Jr,defaultValue:Pr}),Hi=(0,nn.Z)(bn,2),Pl=Hi[0],Ji=Hi[1],$l=ie.useState(Pl),kl=(0,nn.Z)($l,2),ol=kl[0],si=kl[1],ti=ie.useRef(null),Xi=(0,nt.Z)(!1,{value:mo,defaultValue:yo,postState:function(Tt){return lo?!1:Tt},onChange:function(Tt){Qo&&Qo(Tt),!Tt&&ti.current&&ti.current.onClose&&ti.current.onClose()}}),No=(0,nn.Z)(Xi,2),il=No[0],Ii=No[1],xl=rn(ol,{formatList:Ki,generateConfig:On,locale:wt}),Ci=(0,nn.Z)(xl,2),zi=Ci[0],zl=Ci[1],qo=Xe({valueTexts:zi,onTextChange:function(Tt){var sn=_a(Tt,{locale:wt,formatList:Ki,generateConfig:On});sn&&(!fo||!fo(sn))&&si(sn)}}),$i=(0,nn.Z)(qo,3),wl=$i[0],la=$i[1],Tl=$i[2],gl=function(Tt){si(Tt),Ji(Tt),_o&&!oa(On,Pl,Tt)&&_o(Tt,Tt?xa(Tt,{generateConfig:On,locale:wt,format:Ki[0]}):"")},ml=function(Tt){lo&&Tt||Ii(Tt)},jl=function(Tt){return il&&ti.current&&ti.current.onKeyDown?ti.current.onKeyDown(Tt):((0,we.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Dl=function(){for(var Tt=arguments.length,sn=new Array(Tt),Ht=0;Htcn(It);case"month":return ln(wt)>ln(It);case"week":return Yn(wt)>Yn(It);default:return!Ha(Nt,wt,It)&&Nt.isAfter(wt,It)}return!1},[ut,at[1],It,ge]),On=ie.useCallback(function(wt){if(at[1]||ut&&ut(wt))return!0;if(at[0]&&Dt)return!Ha(Nt,wt,It)&&Nt.isAfter(Dt,wt);if(!ge&&Dt)switch(fe){case"quarter":return cn(wt)0&&arguments[0]!==void 0?arguments[0]:!1,La=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yr=null;rt&&Al&&Al[0]&&Al[1]&&wt.isAfter(Al[1],Al[0])&&(yr=Al);var Co=ha;if(ha&&(0,Nn.Z)(ha)==="object"&&ha.defaultValue){var ai=ha.defaultValue;Co=(0,ot.Z)((0,ot.Z)({},ha),{},{defaultValue:Xn(ai,mt)||void 0})}return ie.createElement(qa.Provider,{value:{inRange:!0,panelPosition:vo,rangedValue:ji||br,hoverRangedValue:yr}},ie.createElement(va,(0,ue.Z)({},ce,La,{cellRender:nu,showTime:Co,mode:fl[mt],generateConfig:wt,style:void 0,direction:Hi,disabledDate:mt===0?bt:Ct,disabledTime:function(Ol){return fo?fo(Ol,mt===0?"start":"end"):!1},className:Te()((0,Ce.Z)({},"".concat(at,"-panel-focused"),mt===0?!su:!oo)),value:Xn(br,mt),locale:Vt,tabIndex:-1,onPanelChange:function(Ol,Yl){mt===0&&$o(!0),mt===1&&ni(!0),se(zt(fl,Yl,mt),zt(br,Ol,mt));var Ml=Ol;vo==="right"&&fl[mt]===Yl&&(Ml=Aa(Ml,Yl,wt,-1)),Dl(Ml,mt)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:mt===0?Xn(br,1):Xn(br,0)})))}var Ul=0,es=0;if(mt&&Xi.current&&il.current&&ti.current&&Ci.current){Ul=Xi.current.offsetWidth+il.current.offsetWidth;var hs=Ci.current.offsetLeft>Ul?Ci.current.offsetLeft-Ul:Ci.current.offsetLeft,ts=ti.current.offsetWidth,ns=Ci.current.offsetWidth;ts&&ns&&Ul>ts-ns-(Hi==="rtl"?0:hs)&&(es=Ul)}var zu=Hi==="rtl"?{right:Ul}:{left:Ul};function Es(){var vo,La=Oa(at,fl[mt],yi),yr=cr({prefixCls:at,components:lu,needConfirmButton:ol,okDisabled:!Xn(br,mt)||lo&&lo(br[mt]),locale:Vt,onOk:function(){var yl=Xn(br,mt);yl&&(Ht(br,mt),_i==null||_i(br),pn(!1,mt,"confirm"))}});if(Ra!=="time"&&!ha){var Co=jl(mt),ai=Aa(Co,Ra,wt),cu=fl[mt],Ol=cu===Ra,Yl=Hl(Ol?"left":!1,{pickerValue:Co,onPickerValueChange:function(yl){Dl(yl,mt)}}),Ml=Hl("right",{pickerValue:ai,onPickerValueChange:function(yl){Dl(Aa(yl,Ra,wt,-1),mt)}});Hi==="rtl"?vo=ie.createElement(ie.Fragment,null,Ml,Ol&&Yl):vo=ie.createElement(ie.Fragment,null,Yl,Ol&&Ml)}else vo=Hl();var vu=ie.createElement("div",{className:"".concat(at,"-panel-layout")},ie.createElement(Uo,{prefixCls:at,presets:ps,onClick:function(yl){Ht(yl,null),pn(!1,mt,"preset")},onHover:function(yl){Qi(yl)}}),ie.createElement("div",null,ie.createElement("div",{className:"".concat(at,"-panels")},vo),(La||yr)&&ie.createElement("div",{className:"".concat(at,"-footer")},La,yr)));return Dr&&(vu=Dr(vu)),ie.createElement("div",{className:"".concat(at,"-panel-container"),style:{marginLeft:es},ref:ti,onMouseDown:function(yl){yl.preventDefault()}},vu)}var ea=ie.createElement("div",{className:Te()("".concat(at,"-range-wrapper"),"".concat(at,"-").concat(Ra,"-range-wrapper")),style:{minWidth:$t}},ie.createElement("div",{ref:Ci,className:"".concat(at,"-range-arrow"),style:zu}),Es()),nr;Ni&&(nr=ie.createElement("span",{className:"".concat(at,"-suffix"),onMouseDown:function(La){La.preventDefault()}},Ni));var Wr=vi(at,ui,uo),Po=ie.createElement("span",{onMouseDown:function(La){La.preventDefault(),La.stopPropagation()},onMouseUp:function(La){La.preventDefault(),La.stopPropagation();var yr=la;qo[0]||(yr=zt(yr,null,0)),qo[1]||(yr=zt(yr,null,1)),Ht(yr,null),pn(!1,mt,"clear")},className:"".concat(at,"-clear"),role:"button"},Wr),Ao=ui&&(Xn(la,0)&&!qo[0]||Xn(la,1)&&!qo[1]),Ir={size:Oo(Ra,zi[0],wt)},qr=0,zo=0;Xi.current&&No.current&&il.current&&(mt===0?zo=Xi.current.offsetWidth:(qr=Ul,zo=No.current.offsetWidth));var el=Hi==="rtl"?{right:qr}:{left:qr},Il=function(La,yr){var Co=zt(br,La,mt);if(yr==="submit"||yr!=="key"&&!ol){Ht(Co,mt),mt===0?$o():ni();var ai=mt===0?1:0;qo[ai]?pn(!1,!1,"confirm"):pn(!1,mt,"confirm")}else Va(Co)};return ie.createElement(Cn.Provider,{value:{operationRef:zl,hideHeader:Ra==="time",onDateMouseEnter:Zl,onDateMouseLeave:Ll,hideRanges:!0,onSelect:Il,open:rt}},ie.createElement(li,{visible:rt,popupElement:ea,popupStyle:Yn,prefixCls:at,dropdownClassName:ln,dropdownAlign:In,getPopupContainer:On,transitionName:cn,range:!0,direction:Hi},ie.createElement("div",(0,ue.Z)({ref:si,className:Te()(at,"".concat(at,"-range"),It,(ge={},(0,Ce.Z)(ge,"".concat(at,"-disabled"),qo[0]&&qo[1]),(0,Ce.Z)(ge,"".concat(at,"-focused"),mt===0?uu:jr),(0,Ce.Z)(ge,"".concat(at,"-rtl"),Hi==="rtl"),ge)),style:Dt,onClick:To,onMouseEnter:xi,onMouseLeave:Bl,onMouseDown:co,onMouseUp:ci},(0,ht.Z)(ce,{aria:!0,data:!0})),ie.createElement("div",{className:Te()("".concat(at,"-input"),(fe={},(0,Ce.Z)(fe,"".concat(at,"-input-active"),mt===0),(0,Ce.Z)(fe,"".concat(at,"-input-placeholder"),!!Ui),fe)),ref:Xi},ie.createElement("input",(0,ue.Z)({id:Nt,disabled:qo[0],readOnly:Bi||typeof zi[0]=="function"||!su,value:Ui||wo,onChange:function(La){gi(La.target.value)},autoFocus:un,placeholder:Xn(Rn,0)||"",ref:Ii},tu,Ir,{autoComplete:$l}))),ie.createElement("div",{className:"".concat(at,"-range-separator"),ref:il},zr),ie.createElement("div",{className:Te()("".concat(at,"-input"),(Ne={},(0,Ce.Z)(Ne,"".concat(at,"-input-active"),mt===1),(0,Ce.Z)(Ne,"".concat(at,"-input-placeholder"),!!Yi),Ne)),ref:No},ie.createElement("input",(0,ue.Z)({disabled:qo[1],readOnly:Bi||typeof zi[0]=="function"||!oo,value:Yi||Ho,onChange:function(La){zn(La.target.value)},placeholder:Xn(Rn,1)||"",ref:xl},Vr,Ir,{autoComplete:$l}))),ie.createElement("div",{className:"".concat(at,"-active-bar"),style:(0,ot.Z)((0,ot.Z)({},el),{},{width:zo,position:"absolute"})}),nr,Ao&&Po)))}var ki=function(ce){(0,Lt.Z)(fe,ce);var ge=(0,_t.Z)(fe);function fe(){var Ne;(0,et.Z)(this,fe);for(var Ie=arguments.length,ut=new Array(Ie),at=0;at{const{lineHeight:Ie}=ce,ut=Math.floor(fe*Ie)+2,at=Math.max((ge-ut)/2,0),Nt=Math.max(ge-ut-at,0);return{padding:`${at}px ${Ne}px ${Nt}px`}},us=ce=>{const{componentCls:ge,pickerCellCls:fe,pickerCellInnerCls:Ne,cellHeight:Ie,motionDurationSlow:ut,borderRadiusSM:at,motionDurationMid:Nt,cellHoverBg:Dt,lineWidth:It,lineType:Yn,colorPrimary:ln,cellActiveWithRangeBg:cn,colorTextLightSolid:In,controlHeightSM:On,cellRangeBorderColor:wt,pickerCellBorderGap:Vt,cellHoverWithRangeBg:Rn,cellWidth:un,colorTextDisabled:pa,cellBgDisabled:Ma}=ce;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:Ie,transform:"translateY(-50%)",transition:`all ${ut}`,content:'""'},[Ne]:{position:"relative",zIndex:2,display:"inline-block",minWidth:Ie,height:Ie,lineHeight:`${Ie}px`,borderRadius:at,transition:`background ${Nt}, border ${Nt}`},"&-range-hover-start, &-range-hover-end":{[Ne]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${fe}-in-view), - &:hover:not(${fe}-selected):not(${fe}-range-start):not(${fe}-range-end):not(${fe}-range-hover-start):not(${fe}-range-hover-end)`]:{[Ne]:{background:Dt}},[`&-in-view${fe}-today ${Ne}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${It}px ${Yn} ${ln}`,borderRadius:at,content:'""'}},[`&-in-view${fe}-in-range`]:{position:"relative","&::before":{background:cn}},[`&-in-view${fe}-selected ${Ne}, + `]:{borderRadius:0},[`> ${ht}-item:last-child`]:{borderBottom:0},[`> ${ht}-item > ${ht}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${ht}-item > ${ht}-content > ${ht}-content-box`]:{paddingTop:dn}}}},Lt=tt=>{const{componentCls:ht,paddingSM:Jn}=tt;return{[`${ht}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${ht}-item`]:{borderBottom:0,[`> ${ht}-content`]:{backgroundColor:"transparent",border:0,[`> ${ht}-content-box`]:{paddingBlock:Jn}}}}}};var _t=(0,Pt.Z)("Collapse",tt=>{const ht=(0,Te.TS)(tt,{collapseHeaderPaddingSM:`${tt.paddingXS}px ${tt.paddingSM}px`,collapseHeaderPaddingLG:`${tt.padding}px ${tt.paddingLG}px`,collapsePanelBorderRadius:tt.borderRadiusLG});return[et(ht),wn(ht),Lt(ht),Yt(ht),(0,Wt.Z)(ht)]},tt=>({headerPadding:`${tt.paddingSM}px ${tt.padding}px`,headerBg:tt.colorFillAlter,contentPadding:`${tt.padding}px 16px`,contentBg:tt.colorBgContainer})),ot=Object.assign(De.forwardRef((tt,ht)=>{const{getPrefixCls:Jn,direction:dn,collapse:Qt}=De.useContext(ct.E_),{prefixCls:kt,className:Wn,rootClassName:ra,style:tn,bordered:Ba=!0,ghost:Ka,size:Fa,expandIconPosition:jn="start",children:Ha,expandIcon:Pa}=tt,fr=(0,bt.Z)(Tt=>{var ja;return(ja=Fa!=null?Fa:Tt)!==null&&ja!==void 0?ja:"middle"}),oa=Jn("collapse",kt),Zn=Jn(),[da,Aa]=_t(oa),xa=De.useMemo(()=>jn==="left"?"start":jn==="right"?"end":jn,[jn]),_a=function(){let Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const ja=Pa?Pa(Tt):De.createElement(b.Z,{rotate:Tt.isActive?90:void 0});return(0,vt.Tm)(ja,()=>({className:we()(ja.props.className,`${oa}-arrow`)}))},Sn=we()(`${oa}-icon-position-${xa}`,{[`${oa}-borderless`]:!Ba,[`${oa}-rtl`]:dn==="rtl",[`${oa}-ghost`]:!!Ka,[`${oa}-${fr}`]:fr!=="middle"},Qt==null?void 0:Qt.className,Wn,ra,Aa),on=Object.assign(Object.assign({},(0,be.Z)(Zn)),{motionAppear:!1,leavedClassName:`${oa}-content-hidden`}),St=De.useMemo(()=>Ha?(0,ze.Z)(Ha).map((Tt,ja)=>{var Ca,Wa;if(!((Ca=Tt.props)===null||Ca===void 0)&&Ca.disabled){const Da=(Wa=Tt.key)!==null&&Wa!==void 0?Wa:String(ja),{disabled:Ta,collapsible:Br}=Tt.props,ar=Object.assign(Object.assign({},(0,$e.Z)(Tt.props,["disabled"])),{key:Da,collapsible:Br!=null?Br:Ta?"disabled":void 0});return(0,vt.Tm)(Tt,ar)}return Tt}):null,[Ha]);return da(De.createElement(Ye,Object.assign({ref:ht,openMotion:on},(0,$e.Z)(tt,["rootClassName"]),{expandIcon:_a,prefixCls:oa,className:Sn,style:Object.assign(Object.assign({},Qt==null?void 0:Qt.style),tn)}),St))}),{Panel:En}),an=ot},5083:function(it,jt,ae){"use strict";ae.d(jt,{default:function(){return vs}});var b=ae(66649),he=ae.n(b),we=ae(48736),Be=ae(9007),Re=ae.n(Be),We=ae(50991),xe=ae.n(We),Ke=ae(9084),Oe=ae.n(Ke),De=ae(58626),ke=ae.n(De),ze=ae(13477),Ue=ae.n(ze),ue=ae(64796),E=ae.n(ue);he().extend(E()),he().extend(Ue()),he().extend(Re()),he().extend(xe()),he().extend(Oe()),he().extend(ke()),he().extend(function(ce,ge){var fe=ge.prototype,Ne=fe.format;fe.format=function(ut){var at=(ut||"").replace("Wo","wo");return Ne.bind(this)(at)}});var a={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},x=function(ge){var fe=a[ge];return fe||ge.split("_")[0]},y=function(){(0,we.ET)(!1,"Not match any format. Please help to fire a issue about this.")},z={getNow:function(){return he()()},getFixedDate:function(ge){return he()(ge,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(ge){return ge.endOf("month")},getWeekDay:function(ge){var fe=ge.locale("en");return fe.weekday()+fe.localeData().firstDayOfWeek()},getYear:function(ge){return ge.year()},getMonth:function(ge){return ge.month()},getDate:function(ge){return ge.date()},getHour:function(ge){return ge.hour()},getMinute:function(ge){return ge.minute()},getSecond:function(ge){return ge.second()},addYear:function(ge,fe){return ge.add(fe,"year")},addMonth:function(ge,fe){return ge.add(fe,"month")},addDate:function(ge,fe){return ge.add(fe,"day")},setYear:function(ge,fe){return ge.year(fe)},setMonth:function(ge,fe){return ge.month(fe)},setDate:function(ge,fe){return ge.date(fe)},setHour:function(ge,fe){return ge.hour(fe)},setMinute:function(ge,fe){return ge.minute(fe)},setSecond:function(ge,fe){return ge.second(fe)},isAfter:function(ge,fe){return ge.isAfter(fe)},isValidate:function(ge){return ge.isValid()},locale:{getWeekFirstDay:function(ge){return he()().locale(x(ge)).localeData().firstDayOfWeek()},getWeekFirstDate:function(ge,fe){return fe.locale(x(ge)).weekday(0)},getWeek:function(ge,fe){return fe.locale(x(ge)).week()},getShortWeekDays:function(ge){return he()().locale(x(ge)).localeData().weekdaysMin()},getShortMonths:function(ge){return he()().locale(x(ge)).localeData().monthsShort()},format:function(ge,fe,Ne){return fe.locale(x(ge)).format(Ne)},parse:function(ge,fe,Ne){for(var Ie=x(ge),ut=0;ut1&&(at=ge.addDate(at,-7)),at}function Aa(ce,ge,fe){var Ne=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(ge){case"year":return fe.addYear(ce,Ne*10);case"quarter":case"month":return fe.addYear(ce,Ne);default:return fe.addMonth(ce,Ne)}}function xa(ce,ge){var fe=ge.generateConfig,Ne=ge.locale,Ie=ge.format;return typeof Ie=="function"?Ie(ce):fe.locale.format(Ne.locale,ce,Ie)}function _a(ce,ge){var fe=ge.generateConfig,Ne=ge.locale,Ie=ge.formatList;return!ce||typeof Ie[0]=="function"?null:fe.locale.parse(Ne.locale,ce,Ie)}function Sn(ce){var ge=ce.cellDate,fe=ce.mode,Ne=ce.disabledDate,Ie=ce.generateConfig;if(!Ne)return!1;var ut=function(On,wt,Vt){for(var Rn=wt;Rn<=Vt;){var sn=void 0;switch(On){case"date":{if(sn=Ie.setDate(ge,Rn),!Ne(sn))return!1;break}case"month":{if(sn=Ie.setMonth(ge,Rn),!Sn({cellDate:sn,mode:"month",generateConfig:Ie,disabledDate:Ne}))return!1;break}case"year":{if(sn=Ie.setYear(ge,Rn),!Sn({cellDate:sn,mode:"year",generateConfig:Ie,disabledDate:Ne}))return!1;break}}Rn+=1}return!0};switch(fe){case"date":case"week":return Ne(ge);case"month":{var at=1,Nt=Ie.getDate(Ie.getEndDate(ge));return ut("date",at,Nt)}case"quarter":{var Dt=Math.floor(Ie.getMonth(ge)/3)*3,It=Dt+2;return ut("month",Dt,It)}case"year":return ut("month",0,11);case"decade":{var Yn=Ie.getYear(ge),un=Math.floor(Yn/Qt)*Qt,cn=un+Qt-1;return ut("year",un,cn)}}}function on(ce,ge){var fe=ge.formatList,Ne=ge.generateConfig,Ie=ge.locale;return(0,Jn.Z)(function(){if(!ce)return[[""],""];for(var ut="",at=[],Nt=0;Nt1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(It.current),Rn){Dt(Vt);return}It.current=requestAnimationFrame(function(){Dt(Vt)})}var un=on(Nt,{formatList:fe,generateConfig:Ne,locale:Ie}),cn=(0,an.Z)(un,2),In=cn[1];function On(Vt){Yn(Vt)}function wt(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Yn(null,Vt)}return(0,ie.useEffect)(function(){wt(!0)},[ce]),(0,ie.useEffect)(function(){return function(){return cancelAnimationFrame(It.current)}},[]),[In,On,wt]}var Tt=ae(10228),ja=ae(16089),Ca=ae(94480),Wa=ae(29194),Da=new Map;function Ta(ce,ge){var fe;function Ne(){(0,Wa.Z)(ce)?ge():fe=(0,ja.Z)(function(){Ne()})}return Ne(),function(){ja.Z.cancel(fe)}}function Br(ce,ge,fe){if(Da.get(ce)&&cancelAnimationFrame(Da.get(ce)),fe<=0){Da.set(ce,requestAnimationFrame(function(){ce.scrollTop=ge}));return}var Ne=ge-ce.scrollTop,Ie=Ne/fe*10;Da.set(ce,requestAnimationFrame(function(){ce.scrollTop+=Ie,ce.scrollTop!==ge&&Br(ce,ge,fe-10)}))}function ar(ce,ge){var fe=ge.onLeftRight,Ne=ge.onCtrlLeftRight,Ie=ge.onUpDown,ut=ge.onPageUpDown,at=ge.onEnter,Nt=ce.which,Dt=ce.ctrlKey,It=ce.metaKey;switch(Nt){case Tt.Z.LEFT:if(Dt||It){if(Ne)return Ne(-1),!0}else if(fe)return fe(-1),!0;break;case Tt.Z.RIGHT:if(Dt||It){if(Ne)return Ne(1),!0}else if(fe)return fe(1),!0;break;case Tt.Z.UP:if(Ie)return Ie(-1),!0;break;case Tt.Z.DOWN:if(Ie)return Ie(1),!0;break;case Tt.Z.PAGE_UP:if(ut)return ut(-1),!0;break;case Tt.Z.PAGE_DOWN:if(ut)return ut(1),!0;break;case Tt.Z.ENTER:if(at)return at(),!0;break}return!1}function Or(ce,ge,fe,Ne){var Ie=ce;if(!Ie)switch(ge){case"time":Ie=Ne?"hh:mm:ss a":"HH:mm:ss";break;case"week":Ie="gggg-wo";break;case"month":Ie="YYYY-MM";break;case"quarter":Ie="YYYY-[Q]Q";break;case"year":Ie="YYYY";break;default:Ie=fe?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Ie}function Oo(ce,ge,fe){var Ne=ce==="time"?8:10,Ie=typeof ge=="function"?ge(fe.getNow()).length:ge.length;return Math.max(Ne,Ie)+2}var Ut=null,Un=new Set;function $n(ce){return!Ut&&typeof window!="undefined"&&window.addEventListener&&(Ut=function(fe){(0,Ca.Z)(Un).forEach(function(Ne){Ne(fe)})},window.addEventListener("mousedown",Ut)),Un.add(ce),function(){Un.delete(ce),Un.size===0&&(window.removeEventListener("mousedown",Ut),Ut=null)}}function ba(ce){var ge=ce.target;if(ce.composed&&ge.shadowRoot){var fe;return((fe=ce.composedPath)===null||fe===void 0?void 0:fe.call(ce)[0])||ge}return ge}var Ze=function(ge){return ge==="month"||ge==="date"?"year":ge},Mt=function(ge){return ge==="date"?"month":ge},Xt=function(ge){return ge==="month"||ge==="date"?"quarter":ge},fn=function(ge){return ge==="date"?"week":ge},Rt={year:Ze,month:Mt,quarter:Xt,week:fn,time:null,date:null};function Qn(ce,ge){return ce.some(function(fe){return fe&&fe.contains(ge)})}function Kn(ce){var ge=ce.open,fe=ce.value,Ne=ce.isClickOutside,Ie=ce.triggerOpen,ut=ce.forwardKeyDown,at=ce.onKeyDown,Nt=ce.blurToCancel,Dt=ce.onSubmit,It=ce.onCancel,Yn=ce.onFocus,un=ce.onBlur,cn=ce.changeOnBlur,In=(0,ie.useState)(!1),On=(0,an.Z)(In,2),wt=On[0],Vt=On[1],Rn=(0,ie.useState)(!1),sn=(0,an.Z)(Rn,2),pa=sn[0],Ma=sn[1],Qa=(0,ie.useRef)(!1),Ra=(0,ie.useRef)(!1),ha=(0,ie.useRef)(!1),Jr={onMouseDown:function(){Vt(!0),Ie(!0)},onKeyDown:function(zr){var mo=function(){ha.current=!0};if(at(zr,mo),!ha.current){switch(zr.which){case Tt.Z.ENTER:{ge?Dt()!==!1&&Vt(!0):Ie(!0),zr.preventDefault();return}case Tt.Z.TAB:{wt&&ge&&!zr.shiftKey?(Vt(!1),zr.preventDefault()):!wt&&ge&&!ut(zr)&&zr.shiftKey&&(Vt(!0),zr.preventDefault());return}case Tt.Z.ESC:{Vt(!0),It();return}}!ge&&![Tt.Z.SHIFT].includes(zr.which)?Ie(!0):wt||ut(zr)}},onFocus:function(zr){Vt(!0),Ma(!0),Yn&&Yn(zr)},onBlur:function(zr){if(Qa.current||!Ne(document.activeElement)){Qa.current=!1;return}Nt?setTimeout(function(){for(var mo=document,yo=mo.activeElement;yo&&yo.shadowRoot;)yo=yo.shadowRoot.activeElement;Ne(yo)&&It()},0):ge&&(Ie(!1),Ra.current&&Dt()),Ma(!1),un==null||un(zr)}};return(0,ie.useEffect)(function(){Ra.current=!1},[ge]),(0,ie.useEffect)(function(){Ra.current=!0},[fe]),(0,ie.useEffect)(function(){return $n(function(Pr){var zr=ba(Pr),mo=Ne(zr);ge&&(mo?!cn&&(!pa||mo)&&Ie(!1):(Qa.current=!0,(0,ja.Z)(function(){Qa.current=!1})))})}),[Jr,{focused:pa,typing:wt}]}function Je(ce,ge){return ie.useMemo(function(){return ce||(ge?((0,we.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(ge).map(function(fe){var Ne=(0,an.Z)(fe,2),Ie=Ne[0],ut=Ne[1];return{label:Ie,value:ut}})):[])},[ce,ge])}var nt=ae(34280);function Xe(ce){var ge=ce.valueTexts,fe=ce.onTextChange,Ne=ie.useState(""),Ie=(0,an.Z)(Ne,2),ut=Ie[0],at=Ie[1],Nt=ie.useRef([]);Nt.current=ge;function Dt(Yn){at(Yn),fe(Yn)}function It(){at(Nt.current[0])}return(0,nt.Z)(function(){ge.every(function(Yn){return Yn!==ut})&&It()},[ge.join("||")]),[ut,Dt,It]}var rn=ie.createContext({}),Cn=rn,Nn=ae(76190);function wa(ce){var ge=ce.cellRender,fe=ce.monthCellRender,Ne=ce.dateRender,Ie=ie.useMemo(function(){if(ge)return ge;if(!(!fe&&!Ne))return function(ut,at){var Nt=ut;return Ne&&at.type==="date"?Ne(Nt,at.today):fe&&at.type==="month"?fe(Nt,at.locale):at.originNode}},[ge,fe,Ne]);return Ie}function Ea(ce,ge){for(var fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Ne=String(ce);Ne.length=1?fe|0:1,at=ce;at<=ge;at+=ut)Ie.push({label:Ea(at,2),value:at,disabled:(Ne||[]).includes(at)});return Ie}function Ur(ce){var ge=ce.generateConfig,fe=ce.prefixCls,Ne=ce.operationRef,Ie=ce.activeColumnIndex,ut=ce.value,at=ce.showHour,Nt=ce.showMinute,Dt=ce.showSecond,It=ce.use12Hours,Yn=ce.hourStep,un=Yn===void 0?1:Yn,cn=ce.minuteStep,In=cn===void 0?1:cn,On=ce.secondStep,wt=On===void 0?1:On,Vt=ce.disabledHours,Rn=ce.disabledMinutes,sn=ce.disabledSeconds,pa=ce.disabledTime,Ma=ce.hideDisabledOptions,Qa=ce.onSelect,Ra=ce.cellRender,ha=ce.locale,Jr=[],Pr="".concat(fe,"-content"),zr="".concat(fe,"-time-panel"),mo,yo=ut?ge.getHour(ut):-1,Gn=yo,ii=ut?ge.getMinute(ut):-1,xo=ut?ge.getSecond(ut):-1,lo=ge.getNow(),fo=ie.useMemo(function(){if(pa){var ro=pa(lo);return[ro.disabledHours,ro.disabledMinutes,ro.disabledSeconds]}return[Vt,Rn,sn]},[Vt,Rn,sn,pa,lo]),Zo=(0,an.Z)(fo,3),Wo=Zo[0],bo=Zo[1],Dr=Zo[2],Jo=Ar(0,23,un,Wo&&Wo()),Qo=(0,Jn.Z)(function(){return Jo},Jo,tr);It&&(mo=Gn>=12,Gn%=12);var Li=ie.useMemo(function(){if(!It)return[!1,!1];var ro=[!0,!0];return Qo.forEach(function(Do){var Go=Do.disabled,Fi=Do.value;Go||(Fi>=12?ro[1]=!1:ro[0]=!1)}),ro},[It,Qo]),ui=(0,an.Z)(Li,2),Ni=ui[0],uo=ui[1],hi=ie.useMemo(function(){return It?Qo.filter(mo?function(ro){return ro.value>=12}:function(ro){return ro.value<12}).map(function(ro){var Do=ro.value%12,Go=Do===0?"12":Ea(Do,2);return(0,ot.Z)((0,ot.Z)({},ro),{},{label:Go,value:Do})}):Qo},[It,mo,Qo]),Bi=Ar(0,59,In,bo&&bo(yo)),Zi=Ar(0,59,wt,Dr&&Dr(yo,ii)),yi=Na({value:ut,generateConfig:ge,disabledMinutes:bo,disabledSeconds:Dr,minutes:Bi,seconds:Zi,use12Hours:It});Ne.current={onUpDown:function(Do){var Go=Jr[Ie];if(Go)for(var Fi=Go.units.findIndex(function(Bl){return Bl.value===Go.value}),Gi=Go.units.length,ci=1;ci2&&arguments[2]!==void 0?arguments[2]:!1;(si===Vt||Xo)&&(ql(Va),Jr&&Jr(Va),yi&&yi(Va,so),Pr&&!oa(Dt,Va,_i)&&!(In!=null&&In(Va))&&Pr(Va))},zi=function(Va){if(Fr.includes(si)){var so,Xo,fl=si==="date";switch(Va===Tt.Z.PAGE_UP||Va===Tt.Z.PAGE_DOWN?Xo=fl?Dt.addMonth:Dt.addYear:Xo=fl?Dt.addDate:Dt.addMonth,Va){case Tt.Z.LEFT:case Tt.Z.PAGE_UP:so=Xo(Hi,-1);break;case Tt.Z.RIGHT:case Tt.Z.PAGE_DOWN:so=Xo(Hi,1);break;case Tt.Z.UP:case Tt.Z.DOWN:so=Xo(Hi,Number("".concat(Va===Tt.Z.UP?"-":"").concat(fl?Wn:rr)));break}if(so)return!(In!=null&&In(so))}return!0},zl=function(Va){if(ci.current&&ci.current.onKeyDown){var so=!0,Xo=Va.which;if([Tt.Z.LEFT,Tt.Z.RIGHT,Tt.Z.UP,Tt.Z.DOWN,Tt.Z.PAGE_UP,Tt.Z.PAGE_DOWN,Tt.Z.ENTER].includes(Xo)&&(Va.preventDefault(),Xo!==Tt.Z.ENTER&&sn===0&&(so=zi(Xo))),so)return ci.current.onKeyDown(Va)}return(0,we.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},$o=function(Va){ci.current&&ci.current.onBlur&&ci.current.onBlur(Va)};Zi&&Go!=="right"&&(Zi.current={onKeyDown:zl,onClose:function(){ci.current&&ci.current.onClose&&ci.current.onClose()}}),ie.useEffect(function(){It&&!xi.current&&Pl(It)},[It]),ie.useEffect(function(){xi.current=!1},[]);var el,wl=wa({cellRender:Li,monthCellRender:Qo,dateRender:Jo}),la=(0,ot.Z)((0,ot.Z)({},ce),{},{cellRender:wl,operationRef:ci,prefixCls:Ie,viewDate:Hi,value:_i,onViewDateChange:Ji,sourceMode:il,onPanelChange:xl,disabledDate:In});switch(delete la.onChange,delete la.onSelect,si){case"decade":el=ie.createElement(Et,(0,se.Z)({},la,{onSelect:function(Va,so){Ji(Va),Ci(Va,so)}}));break;case"year":el=ie.createElement(yn,(0,se.Z)({},la,{onSelect:function(Va,so){Ji(Va),Ci(Va,so)}}));break;case"month":el=ie.createElement(dr,(0,se.Z)({},la,{onSelect:function(Va,so){Ji(Va),Ci(Va,so)}}));break;case"quarter":el=ie.createElement(ia,(0,se.Z)({},la,{onSelect:function(Va,so){Ji(Va),Ci(Va,so)}}));break;case"week":el=ie.createElement(Hn,(0,se.Z)({},la,{onSelect:function(Va,so){Ji(Va),Ci(Va,so)}}));break;case"time":delete la.showTime,el=ie.createElement(Ei,(0,se.Z)({},la,(0,Nn.Z)(Ma)==="object"?Ma:null,{onSelect:function(Va,so){Ji(Va),Ci(Va,so)}}));break;default:Ma?el=ie.createElement(Eo,(0,se.Z)({},la,{onSelect:function(Va,so){Ji(Va),Ci(Va,so)}})):el=ie.createElement(za,(0,se.Z)({},la,{onSelect:function(Va,so){Ji(Va),Ci(Va,so)}}))}var Tl,gl,ml=function(){var Va=Dt.getNow(),so=Ua(Dt.getHour(Va),Dt.getMinute(Va),Dt.getSecond(Va),Ni?fo:1,uo?Wo:1,hi?Dr:1),Xo=Ht(Dt,Va,so[0],so[1],so[2]);Ci(Xo,"submit")};$i||(Tl=Oa(Ie,si,Ra),Ma&&si!=="date"?gl=null:gl=cr({prefixCls:Ie,components:ii,needConfirmButton:ui,okDisabled:!_i||In&&In(_i),locale:Nt,showNow:pa,onNow:ui&&ml,onOk:function(){_i&&(Ci(_i,"submit",!0),Gn&&Gn(_i))}}));var jl;if(Qa&&si==="date"&&Vt==="date"&&!Ma){var Dl=Dt.getNow(),eu="".concat(Ie,"-today-btn"),Vl=In&&In(Dl);jl=ie.createElement("a",{className:Te()(eu,Vl&&"".concat(eu,"-disabled")),"aria-disabled":Vl,onClick:function(){Vl||Ci(Dl,"mouse",!0)}},Nt.today)}return ie.createElement(Cn.Provider,{value:(0,ot.Z)((0,ot.Z)({},Bi),{},{mode:si,hideHeader:"hideHeader"in ce?ha:Bi.hideHeader,hidePrevBtn:Do&&Go==="right",hideNextBtn:Do&&Go==="left"})},ie.createElement("div",{tabIndex:sn,className:Te()("".concat(Ie,"-panel"),ut,(ge={},(0,Ce.Z)(ge,"".concat(Ie,"-panel-has-range"),Fi&&Fi[0]&&Fi[1]),(0,Ce.Z)(ge,"".concat(Ie,"-panel-has-range-hover"),Gi&&Gi[0]&&Gi[1]),(0,Ce.Z)(ge,"".concat(Ie,"-panel-rtl"),xo==="rtl"),ge)),style:at,onKeyDown:zl,onBlur:$o,onMouseDown:mo},el,Tl||gl||jl?ie.createElement("div",{className:"".concat(Ie,"-footer")},Tl,gl,jl):null))}var va=ma,or=ae(35593),Er={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 Ko(ce){var ge,fe=ce.prefixCls,Ne=ce.popupElement,Ie=ce.popupStyle,ut=ce.visible,at=ce.dropdownClassName,Nt=ce.dropdownAlign,Dt=ce.transitionName,It=ce.getPopupContainer,Yn=ce.children,un=ce.range,cn=ce.popupPlacement,In=ce.direction,On="".concat(fe,"-dropdown"),wt=function(){return cn!==void 0?cn:In==="rtl"?"bottomRight":"bottomLeft"};return ie.createElement(or.Z,{showAction:[],hideAction:[],popupPlacement:wt(),builtinPlacements:Er,prefixCls:On,popupTransitionName:Dt,popup:Ne,popupAlign:Nt,popupVisible:ut,popupClassName:Te()(at,(ge={},(0,Ce.Z)(ge,"".concat(On,"-range"),un),(0,Ce.Z)(ge,"".concat(On,"-rtl"),In==="rtl"),ge)),popupStyle:Ie,getPopupContainer:It},Yn)}var li=Ko;function Uo(ce){var ge=ce.prefixCls,fe=ce.presets,Ne=ce.onClick,Ie=ce.onHover;return fe.length?ie.createElement("div",{className:"".concat(ge,"-presets")},ie.createElement("ul",null,fe.map(function(ut,at){var Nt=ut.label,Dt=ut.value;return ie.createElement("li",{key:at,onClick:function(){return Ne==null?void 0:Ne(ka(Dt))},onMouseEnter:function(){return Ie==null?void 0:Ie(ka(Dt))},onMouseLeave:function(){return Ie==null?void 0:Ie(null)}},Nt)}))):null}function oi(ce){var ge=ce.picker,fe=ce.disabledHours,Ne=ce.disabledMinutes,Ie=ce.disabledSeconds;ge==="time"&&(fe||Ne||Ie)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function vi(ce,ge,fe){var Ne=(0,Nn.Z)(ge)==="object"?ge.clearIcon:fe;return Ne||ie.createElement("span",{className:"".concat(ce,"-clear-btn")})}function Si(ce){var ge,fe=ce,Ne=fe.prefixCls,Ie=Ne===void 0?"rc-picker":Ne,ut=fe.id,at=fe.name,Nt=fe.tabIndex,Dt=fe.style,It=fe.className,Yn=fe.dropdownClassName,un=fe.dropdownAlign,cn=fe.popupStyle,In=fe.transitionName,On=fe.generateConfig,wt=fe.locale,Vt=fe.inputReadOnly,Rn=fe.allowClear,sn=fe.autoFocus,pa=fe.showTime,Ma=fe.picker,Qa=Ma===void 0?"date":Ma,Ra=fe.format,ha=fe.use12Hours,Jr=fe.value,Pr=fe.defaultValue,zr=fe.presets,mo=fe.open,yo=fe.defaultOpen,Gn=fe.defaultOpenValue,ii=fe.suffixIcon,xo=fe.clearIcon,lo=fe.disabled,fo=fe.disabledDate,Zo=fe.placeholder,Wo=fe.getPopupContainer,bo=fe.pickerRef,Dr=fe.panelRender,Jo=fe.onChange,Qo=fe.onOpenChange,Li=fe.onFocus,ui=fe.onBlur,Ni=fe.onMouseDown,uo=fe.onMouseUp,hi=fe.onMouseEnter,Bi=fe.onMouseLeave,Zi=fe.onContextMenu,yi=fe.onClick,$i=fe.onKeyDown,cl=fe.onSelect,ro=fe.direction,Do=fe.autoComplete,Go=Do===void 0?"off":Do,Fi=fe.inputRender,Gi=fe.changeOnBlur,ci=ie.useRef(null),xi=Qa==="date"&&!!pa||Qa==="time",Bl=Je(zr),Ki=ya(Or(Ra,Qa,pa,ha)),_i=ie.useRef(null),ql=ie.useRef(null),lu=ie.useRef(null),bn=(0,tt.Z)(null,{value:Jr,defaultValue:Pr}),Hi=(0,an.Z)(bn,2),Pl=Hi[0],Ji=Hi[1],$l=ie.useState(Pl),kl=(0,an.Z)($l,2),ol=kl[0],si=kl[1],ti=ie.useRef(null),Xi=(0,tt.Z)(!1,{value:mo,defaultValue:yo,postState:function(Ot){return lo?!1:Ot},onChange:function(Ot){Qo&&Qo(Ot),!Ot&&ti.current&&ti.current.onClose&&ti.current.onClose()}}),No=(0,an.Z)(Xi,2),il=No[0],Ii=No[1],xl=on(ol,{formatList:Ki,generateConfig:On,locale:wt}),Ci=(0,an.Z)(xl,2),zi=Ci[0],zl=Ci[1],$o=Xe({valueTexts:zi,onTextChange:function(Ot){var en=_a(Ot,{locale:wt,formatList:Ki,generateConfig:On});en&&(!fo||!fo(en))&&si(en)}}),el=(0,an.Z)($o,3),wl=el[0],la=el[1],Tl=el[2],gl=function(Ot){si(Ot),Ji(Ot),Jo&&!oa(On,Pl,Ot)&&Jo(Ot,Ot?xa(Ot,{generateConfig:On,locale:wt,format:Ki[0]}):"")},ml=function(Ot){lo&&Ot||Ii(Ot)},jl=function(Ot){return il&&ti.current&&ti.current.onKeyDown?ti.current.onKeyDown(Ot):((0,we.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Dl=function(){for(var Ot=arguments.length,en=new Array(Ot),Zt=0;Ztcn(It);case"month":return un(wt)>un(It);case"week":return Yn(wt)>Yn(It);default:return!Ha(Nt,wt,It)&&Nt.isAfter(wt,It)}return!1},[ut,at[1],It,ge]),On=ie.useCallback(function(wt){if(at[1]||ut&&ut(wt))return!0;if(at[0]&&Dt)return!Ha(Nt,wt,It)&&Nt.isAfter(Dt,wt);if(!ge&&Dt)switch(fe){case"quarter":return cn(wt)0&&arguments[0]!==void 0?arguments[0]:!1,La=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yr=null;rt&&Al&&Al[0]&&Al[1]&&wt.isAfter(Al[1],Al[0])&&(yr=Al);var Co=ha;if(ha&&(0,Nn.Z)(ha)==="object"&&ha.defaultValue){var ai=ha.defaultValue;Co=(0,ot.Z)((0,ot.Z)({},ha),{},{defaultValue:Xn(ai,mt)||void 0})}return ie.createElement(qa.Provider,{value:{inRange:!0,panelPosition:vo,rangedValue:ji||br,hoverRangedValue:yr}},ie.createElement(va,(0,se.Z)({},ce,La,{cellRender:nu,showTime:Co,mode:fl[mt],generateConfig:wt,style:void 0,direction:Hi,disabledDate:mt===0?Ct:yt,disabledTime:function(Ol){return fo?fo(Ol,mt===0?"start":"end"):!1},className:Te()((0,Ce.Z)({},"".concat(at,"-panel-focused"),mt===0?!su:!oo)),value:Xn(br,mt),locale:Vt,tabIndex:-1,onPanelChange:function(Ol,Yl){mt===0&&ei(!0),mt===1&&ni(!0),le(zt(fl,Yl,mt),zt(br,Ol,mt));var Ml=Ol;vo==="right"&&fl[mt]===Yl&&(Ml=Aa(Ml,Yl,wt,-1)),Dl(Ml,mt)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:mt===0?Xn(br,1):Xn(br,0)})))}var Ul=0,es=0;if(mt&&Xi.current&&il.current&&ti.current&&Ci.current){Ul=Xi.current.offsetWidth+il.current.offsetWidth;var hs=Ci.current.offsetLeft>Ul?Ci.current.offsetLeft-Ul:Ci.current.offsetLeft,ts=ti.current.offsetWidth,ns=Ci.current.offsetWidth;ts&&ns&&Ul>ts-ns-(Hi==="rtl"?0:hs)&&(es=Ul)}var zu=Hi==="rtl"?{right:Ul}:{left:Ul};function Es(){var vo,La=Oa(at,fl[mt],yi),yr=cr({prefixCls:at,components:lu,needConfirmButton:ol,okDisabled:!Xn(br,mt)||lo&&lo(br[mt]),locale:Vt,onOk:function(){var yl=Xn(br,mt);yl&&(Zt(br,mt),_i==null||_i(br),pn(!1,mt,"confirm"))}});if(Ra!=="time"&&!ha){var Co=jl(mt),ai=Aa(Co,Ra,wt),cu=fl[mt],Ol=cu===Ra,Yl=Hl(Ol?"left":!1,{pickerValue:Co,onPickerValueChange:function(yl){Dl(yl,mt)}}),Ml=Hl("right",{pickerValue:ai,onPickerValueChange:function(yl){Dl(Aa(yl,Ra,wt,-1),mt)}});Hi==="rtl"?vo=ie.createElement(ie.Fragment,null,Ml,Ol&&Yl):vo=ie.createElement(ie.Fragment,null,Yl,Ol&&Ml)}else vo=Hl();var vu=ie.createElement("div",{className:"".concat(at,"-panel-layout")},ie.createElement(Uo,{prefixCls:at,presets:ps,onClick:function(yl){Zt(yl,null),pn(!1,mt,"preset")},onHover:function(yl){Qi(yl)}}),ie.createElement("div",null,ie.createElement("div",{className:"".concat(at,"-panels")},vo),(La||yr)&&ie.createElement("div",{className:"".concat(at,"-footer")},La,yr)));return Dr&&(vu=Dr(vu)),ie.createElement("div",{className:"".concat(at,"-panel-container"),style:{marginLeft:es},ref:ti,onMouseDown:function(yl){yl.preventDefault()}},vu)}var ea=ie.createElement("div",{className:Te()("".concat(at,"-range-wrapper"),"".concat(at,"-").concat(Ra,"-range-wrapper")),style:{minWidth:qt}},ie.createElement("div",{ref:Ci,className:"".concat(at,"-range-arrow"),style:zu}),Es()),nr;Ni&&(nr=ie.createElement("span",{className:"".concat(at,"-suffix"),onMouseDown:function(La){La.preventDefault()}},Ni));var Wr=vi(at,ui,uo),Po=ie.createElement("span",{onMouseDown:function(La){La.preventDefault(),La.stopPropagation()},onMouseUp:function(La){La.preventDefault(),La.stopPropagation();var yr=la;$o[0]||(yr=zt(yr,null,0)),$o[1]||(yr=zt(yr,null,1)),Zt(yr,null),pn(!1,mt,"clear")},className:"".concat(at,"-clear"),role:"button"},Wr),Ao=ui&&(Xn(la,0)&&!$o[0]||Xn(la,1)&&!$o[1]),Ir={size:Oo(Ra,zi[0],wt)},qr=0,zo=0;Xi.current&&No.current&&il.current&&(mt===0?zo=Xi.current.offsetWidth:(qr=Ul,zo=No.current.offsetWidth));var tl=Hi==="rtl"?{right:qr}:{left:qr},Il=function(La,yr){var Co=zt(br,La,mt);if(yr==="submit"||yr!=="key"&&!ol){Zt(Co,mt),mt===0?ei():ni();var ai=mt===0?1:0;$o[ai]?pn(!1,!1,"confirm"):pn(!1,mt,"confirm")}else Va(Co)};return ie.createElement(Cn.Provider,{value:{operationRef:zl,hideHeader:Ra==="time",onDateMouseEnter:Zl,onDateMouseLeave:Ll,hideRanges:!0,onSelect:Il,open:rt}},ie.createElement(li,{visible:rt,popupElement:ea,popupStyle:Yn,prefixCls:at,dropdownClassName:un,dropdownAlign:In,getPopupContainer:On,transitionName:cn,range:!0,direction:Hi},ie.createElement("div",(0,se.Z)({ref:si,className:Te()(at,"".concat(at,"-range"),It,(ge={},(0,Ce.Z)(ge,"".concat(at,"-disabled"),$o[0]&&$o[1]),(0,Ce.Z)(ge,"".concat(at,"-focused"),mt===0?uu:jr),(0,Ce.Z)(ge,"".concat(at,"-rtl"),Hi==="rtl"),ge)),style:Dt,onClick:To,onMouseEnter:xi,onMouseLeave:Bl,onMouseDown:co,onMouseUp:ci},(0,ht.Z)(ce,{aria:!0,data:!0})),ie.createElement("div",{className:Te()("".concat(at,"-input"),(fe={},(0,Ce.Z)(fe,"".concat(at,"-input-active"),mt===0),(0,Ce.Z)(fe,"".concat(at,"-input-placeholder"),!!Ui),fe)),ref:Xi},ie.createElement("input",(0,se.Z)({id:Nt,disabled:$o[0],readOnly:Bi||typeof zi[0]=="function"||!su,value:Ui||wo,onChange:function(La){gi(La.target.value)},autoFocus:sn,placeholder:Xn(Rn,0)||"",ref:Ii},tu,Ir,{autoComplete:$l}))),ie.createElement("div",{className:"".concat(at,"-range-separator"),ref:il},zr),ie.createElement("div",{className:Te()("".concat(at,"-input"),(Ne={},(0,Ce.Z)(Ne,"".concat(at,"-input-active"),mt===1),(0,Ce.Z)(Ne,"".concat(at,"-input-placeholder"),!!Yi),Ne)),ref:No},ie.createElement("input",(0,se.Z)({disabled:$o[1],readOnly:Bi||typeof zi[0]=="function"||!oo,value:Yi||Ho,onChange:function(La){zn(La.target.value)},placeholder:Xn(Rn,1)||"",ref:xl},Vr,Ir,{autoComplete:$l}))),ie.createElement("div",{className:"".concat(at,"-active-bar"),style:(0,ot.Z)((0,ot.Z)({},tl),{},{width:zo,position:"absolute"})}),nr,Ao&&Po)))}var ki=function(ce){(0,Lt.Z)(fe,ce);var ge=(0,_t.Z)(fe);function fe(){var Ne;(0,et.Z)(this,fe);for(var Ie=arguments.length,ut=new Array(Ie),at=0;at{const{lineHeight:Ie}=ce,ut=Math.floor(fe*Ie)+2,at=Math.max((ge-ut)/2,0),Nt=Math.max(ge-ut-at,0);return{padding:`${at}px ${Ne}px ${Nt}px`}},us=ce=>{const{componentCls:ge,pickerCellCls:fe,pickerCellInnerCls:Ne,cellHeight:Ie,motionDurationSlow:ut,borderRadiusSM:at,motionDurationMid:Nt,cellHoverBg:Dt,lineWidth:It,lineType:Yn,colorPrimary:un,cellActiveWithRangeBg:cn,colorTextLightSolid:In,controlHeightSM:On,cellRangeBorderColor:wt,pickerCellBorderGap:Vt,cellHoverWithRangeBg:Rn,cellWidth:sn,colorTextDisabled:pa,cellBgDisabled:Ma}=ce;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:Ie,transform:"translateY(-50%)",transition:`all ${ut}`,content:'""'},[Ne]:{position:"relative",zIndex:2,display:"inline-block",minWidth:Ie,height:Ie,lineHeight:`${Ie}px`,borderRadius:at,transition:`background ${Nt}, border ${Nt}`},"&-range-hover-start, &-range-hover-end":{[Ne]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:hover:not(${fe}-in-view), + &:hover:not(${fe}-selected):not(${fe}-range-start):not(${fe}-range-end):not(${fe}-range-hover-start):not(${fe}-range-hover-end)`]:{[Ne]:{background:Dt}},[`&-in-view${fe}-today ${Ne}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${It}px ${Yn} ${un}`,borderRadius:at,content:'""'}},[`&-in-view${fe}-in-range`]:{position:"relative","&::before":{background:cn}},[`&-in-view${fe}-selected ${Ne}, &-in-view${fe}-range-start ${Ne}, - &-in-view${fe}-range-end ${Ne}`]:{color:In,background:ln},[`&-in-view${fe}-range-start:not(${fe}-range-start-single), + &-in-view${fe}-range-end ${Ne}`]:{color:In,background:un},[`&-in-view${fe}-range-start:not(${fe}-range-start-single), &-in-view${fe}-range-end:not(${fe}-range-end-single)`]:{"&::before":{background:cn}},[`&-in-view${fe}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${fe}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${fe}-range-hover-start:not(${fe}-in-range):not(${fe}-range-start):not(${fe}-range-end), &-in-view${fe}-range-hover-end:not(${fe}-in-range):not(${fe}-range-start):not(${fe}-range-end), &-in-view${fe}-range-hover-start${fe}-range-start-single, @@ -300,20 +300,20 @@ ${Ba} tr > &-in-view${fe}-range-hover-end:first-child::after, &-in-view${fe}-start${fe}-range-hover-edge-start${fe}-range-hover-edge-start-near-range::after, &-in-view${fe}-range-hover-edge-start:not(${fe}-range-hover-edge-start-near-range)::after, - &-in-view${fe}-range-hover-start::after`]:{insetInlineStart:(un-Ie)/2,borderInlineStart:`${It}px dashed ${wt}`,borderStartStartRadius:at,borderEndStartRadius:at},[`tr > &-in-view${fe}-range-hover:last-child::after, + &-in-view${fe}-range-hover-start::after`]:{insetInlineStart:(sn-Ie)/2,borderInlineStart:`${It}px dashed ${wt}`,borderStartStartRadius:at,borderEndStartRadius:at},[`tr > &-in-view${fe}-range-hover:last-child::after, tr > &-in-view${fe}-range-hover-start:last-child::after, &-in-view${fe}-end${fe}-range-hover-edge-end${fe}-range-hover-edge-end-near-range::after, &-in-view${fe}-range-hover-edge-end:not(${fe}-range-hover-edge-end-near-range)::after, - &-in-view${fe}-range-hover-end::after`]:{insetInlineEnd:(un-Ie)/2,borderInlineEnd:`${It}px dashed ${wt}`,borderStartEndRadius:at,borderEndEndRadius:at},"&-disabled":{color:pa,pointerEvents:"none",[Ne]:{background:"transparent"},"&::before":{background:Ma}},[`&-disabled${fe}-today ${Ne}::before`]:{borderColor:pa}}},ei=ce=>{const{componentCls:ge,pickerCellCls:fe,pickerCellInnerCls:Ne,pickerYearMonthCellWidth:Ie,pickerControlIconSize:ut,cellWidth:at,paddingSM:Nt,paddingXS:Dt,paddingXXS:It,colorBgContainer:Yn,lineWidth:ln,lineType:cn,borderRadiusLG:In,colorPrimary:On,colorTextHeading:wt,colorSplit:Vt,pickerControlIconBorderWidth:Rn,colorIcon:un,textHeight:pa,motionDurationMid:Ma,colorIconHover:Qa,fontWeightStrong:Ra,cellHeight:ha,pickerCellPaddingVertical:Jr,colorTextDisabled:Pr,colorText:zr,fontSize:mo,cellHoverWithRangeBg:yo,motionDurationSlow:Gn,withoutTimeCellHeight:ii,pickerQuarterPanelContentHeight:xo,colorLink:lo,colorLinkActive:fo,colorLinkHover:Zo,cellRangeBorderColor:Wo,borderRadiusSM:bo,colorTextLightSolid:Dr,cellHoverBg:_o,timeColumnHeight:Qo,timeColumnWidth:Li,timeCellHeight:ui,controlItemBgActive:Ni,marginXXS:uo,pickerDatePanelPaddingHorizontal:hi}=ce,Bi=at*7+hi*2,Zi=(Bi-Dt*2)/3-Ie-Nt,yi=(Bi-Dt*2)/4-Ie;return{[ge]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:Yn,border:`${ln}px ${cn} ${Vt}`,borderRadius:In,outline:"none","&-focused":{borderColor:On},"&-rtl":{direction:"rtl",[`${ge}-prev-icon, + &-in-view${fe}-range-hover-end::after`]:{insetInlineEnd:(sn-Ie)/2,borderInlineEnd:`${It}px dashed ${wt}`,borderStartEndRadius:at,borderEndEndRadius:at},"&-disabled":{color:pa,pointerEvents:"none",[Ne]:{background:"transparent"},"&::before":{background:Ma}},[`&-disabled${fe}-today ${Ne}::before`]:{borderColor:pa}}},_o=ce=>{const{componentCls:ge,pickerCellCls:fe,pickerCellInnerCls:Ne,pickerYearMonthCellWidth:Ie,pickerControlIconSize:ut,cellWidth:at,paddingSM:Nt,paddingXS:Dt,paddingXXS:It,colorBgContainer:Yn,lineWidth:un,lineType:cn,borderRadiusLG:In,colorPrimary:On,colorTextHeading:wt,colorSplit:Vt,pickerControlIconBorderWidth:Rn,colorIcon:sn,textHeight:pa,motionDurationMid:Ma,colorIconHover:Qa,fontWeightStrong:Ra,cellHeight:ha,pickerCellPaddingVertical:Jr,colorTextDisabled:Pr,colorText:zr,fontSize:mo,cellHoverWithRangeBg:yo,motionDurationSlow:Gn,withoutTimeCellHeight:ii,pickerQuarterPanelContentHeight:xo,colorLink:lo,colorLinkActive:fo,colorLinkHover:Zo,cellRangeBorderColor:Wo,borderRadiusSM:bo,colorTextLightSolid:Dr,cellHoverBg:Jo,timeColumnHeight:Qo,timeColumnWidth:Li,timeCellHeight:ui,controlItemBgActive:Ni,marginXXS:uo,pickerDatePanelPaddingHorizontal:hi}=ce,Bi=at*7+hi*2,Zi=(Bi-Dt*2)/3-Ie-Nt,yi=(Bi-Dt*2)/4-Ie;return{[ge]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:Yn,border:`${un}px ${cn} ${Vt}`,borderRadius:In,outline:"none","&-focused":{borderColor:On},"&-rtl":{direction:"rtl",[`${ge}-prev-icon, ${ge}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${ge}-next-icon, - ${ge}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:Bi},"&-header":{display:"flex",padding:`0 ${Dt}px`,color:wt,borderBottom:`${ln}px ${cn} ${Vt}`,"> *":{flex:"none"},button:{padding:0,color:un,lineHeight:`${pa}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${Ma}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:mo,"&:hover":{color:Qa}},"&-view":{flex:"auto",fontWeight:Ra,lineHeight:`${pa}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:Dt},"&:hover":{color:On}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:ut,height:ut,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:ut,height:ut,border:"0 solid currentcolor",borderBlockStartWidth:Rn,borderBlockEndWidth:0,borderInlineStartWidth:Rn,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(ut/2),insetInlineStart:Math.ceil(ut/2),display:"inline-block",width:ut,height:ut,border:"0 solid currentcolor",borderBlockStartWidth:Rn,borderBlockEndWidth:0,borderInlineStartWidth:Rn,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:ha,fontWeight:"normal"},th:{height:ha+Jr*2,color:zr,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Jr}px 0`,color:Pr,cursor:"pointer","&-in-view":{color:zr}},us(ce)),[`&-date-panel ${ge}-cell-in-view${ge}-cell-in-range${ge}-cell-range-hover-start ${Ne}, + ${ge}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:Bi},"&-header":{display:"flex",padding:`0 ${Dt}px`,color:wt,borderBottom:`${un}px ${cn} ${Vt}`,"> *":{flex:"none"},button:{padding:0,color:sn,lineHeight:`${pa}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${Ma}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:mo,"&:hover":{color:Qa}},"&-view":{flex:"auto",fontWeight:Ra,lineHeight:`${pa}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:Dt},"&:hover":{color:On}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:ut,height:ut,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:ut,height:ut,border:"0 solid currentcolor",borderBlockStartWidth:Rn,borderBlockEndWidth:0,borderInlineStartWidth:Rn,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(ut/2),insetInlineStart:Math.ceil(ut/2),display:"inline-block",width:ut,height:ut,border:"0 solid currentcolor",borderBlockStartWidth:Rn,borderBlockEndWidth:0,borderInlineStartWidth:Rn,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:ha,fontWeight:"normal"},th:{height:ha+Jr*2,color:zr,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Jr}px 0`,color:Pr,cursor:"pointer","&-in-view":{color:zr}},us(ce)),[`&-date-panel ${ge}-cell-in-view${ge}-cell-in-range${ge}-cell-range-hover-start ${Ne}, &-date-panel ${ge}-cell-in-view${ge}-cell-in-range${ge}-cell-range-hover-end ${Ne}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:yo,transition:`all ${Gn}`,content:'""'}},[`&-date-panel ${ge}-cell-in-view${ge}-cell-in-range${ge}-cell-range-hover-start - ${Ne}::after`]:{insetInlineEnd:-(at-ha)/2,insetInlineStart:0},[`&-date-panel ${ge}-cell-in-view${ge}-cell-in-range${ge}-cell-range-hover-end ${Ne}::after`]:{insetInlineEnd:0,insetInlineStart:-(at-ha)/2},[`&-range-hover${ge}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${ge}-content`]:{height:ii*4},[Ne]:{padding:`0 ${Dt}px`}},"&-quarter-panel":{[`${ge}-content`]:{height:xo},[`${ge}-cell-range-hover-start::after`]:{insetInlineStart:yi,borderInlineStart:`${ln}px dashed ${Wo}`,[`${ge}-panel-rtl &`]:{insetInlineEnd:yi,borderInlineEnd:`${ln}px dashed ${Wo}`}},[`${ge}-cell-range-hover-end::after`]:{insetInlineEnd:yi,borderInlineEnd:`${ln}px dashed ${Wo}`,[`${ge}-panel-rtl &`]:{insetInlineStart:yi,borderInlineStart:`${ln}px dashed ${Wo}`}}},[`&-panel ${ge}-footer`]:{borderTop:`${ln}px ${cn} ${Vt}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${pa-2*ln}px`,textAlign:"center","&-extra":{padding:`0 ${Nt}px`,lineHeight:`${pa-2*ln}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${ln}px ${cn} ${Vt}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:lo,"&:hover":{color:Zo},"&:active":{color:fo},[`&${ge}-today-btn-disabled`]:{color:Pr,cursor:"not-allowed"}},"&-decade-panel":{[Ne]:{padding:`0 ${Dt/2}px`},[`${ge}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${ge}-body`]:{padding:`0 ${Dt}px`},[Ne]:{width:Ie},[`${ge}-cell-range-hover-start::after`]:{borderStartStartRadius:bo,borderEndStartRadius:bo,borderStartEndRadius:0,borderEndEndRadius:0,[`${ge}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:bo,borderEndEndRadius:bo}},[`${ge}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:bo,borderEndEndRadius:bo,[`${ge}-panel-rtl &`]:{borderStartStartRadius:bo,borderEndStartRadius:bo,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${ge}-cell-range-hover-start::after`]:{insetInlineStart:Zi,borderInlineStart:`${ln}px dashed ${Wo}`,[`${ge}-panel-rtl &`]:{insetInlineEnd:Zi,borderInlineEnd:`${ln}px dashed ${Wo}`}},[`${ge}-cell-range-hover-end::after`]:{insetInlineEnd:Zi,borderInlineEnd:`${ln}px dashed ${Wo}`,[`${ge}-panel-rtl &`]:{insetInlineStart:Zi,borderInlineStart:`${ln}px dashed ${Wo}`}}},"&-week-panel":{[`${ge}-body`]:{padding:`${Dt}px ${Nt}px`},[`${ge}-cell`]:{[`&:hover ${Ne}, + ${Ne}::after`]:{insetInlineEnd:-(at-ha)/2,insetInlineStart:0},[`&-date-panel ${ge}-cell-in-view${ge}-cell-in-range${ge}-cell-range-hover-end ${Ne}::after`]:{insetInlineEnd:0,insetInlineStart:-(at-ha)/2},[`&-range-hover${ge}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${ge}-content`]:{height:ii*4},[Ne]:{padding:`0 ${Dt}px`}},"&-quarter-panel":{[`${ge}-content`]:{height:xo},[`${ge}-cell-range-hover-start::after`]:{insetInlineStart:yi,borderInlineStart:`${un}px dashed ${Wo}`,[`${ge}-panel-rtl &`]:{insetInlineEnd:yi,borderInlineEnd:`${un}px dashed ${Wo}`}},[`${ge}-cell-range-hover-end::after`]:{insetInlineEnd:yi,borderInlineEnd:`${un}px dashed ${Wo}`,[`${ge}-panel-rtl &`]:{insetInlineStart:yi,borderInlineStart:`${un}px dashed ${Wo}`}}},[`&-panel ${ge}-footer`]:{borderTop:`${un}px ${cn} ${Vt}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${pa-2*un}px`,textAlign:"center","&-extra":{padding:`0 ${Nt}px`,lineHeight:`${pa-2*un}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${un}px ${cn} ${Vt}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:lo,"&:hover":{color:Zo},"&:active":{color:fo},[`&${ge}-today-btn-disabled`]:{color:Pr,cursor:"not-allowed"}},"&-decade-panel":{[Ne]:{padding:`0 ${Dt/2}px`},[`${ge}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${ge}-body`]:{padding:`0 ${Dt}px`},[Ne]:{width:Ie},[`${ge}-cell-range-hover-start::after`]:{borderStartStartRadius:bo,borderEndStartRadius:bo,borderStartEndRadius:0,borderEndEndRadius:0,[`${ge}-panel-rtl &`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:bo,borderEndEndRadius:bo}},[`${ge}-cell-range-hover-end::after`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:bo,borderEndEndRadius:bo,[`${ge}-panel-rtl &`]:{borderStartStartRadius:bo,borderEndStartRadius:bo,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-year-panel,\n &-month-panel":{[`${ge}-cell-range-hover-start::after`]:{insetInlineStart:Zi,borderInlineStart:`${un}px dashed ${Wo}`,[`${ge}-panel-rtl &`]:{insetInlineEnd:Zi,borderInlineEnd:`${un}px dashed ${Wo}`}},[`${ge}-cell-range-hover-end::after`]:{insetInlineEnd:Zi,borderInlineEnd:`${un}px dashed ${Wo}`,[`${ge}-panel-rtl &`]:{insetInlineStart:Zi,borderInlineStart:`${un}px dashed ${Wo}`}}},"&-week-panel":{[`${ge}-body`]:{padding:`${Dt}px ${Nt}px`},[`${ge}-cell`]:{[`&:hover ${Ne}, &-selected ${Ne}, - ${Ne}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${Ma}`},"&:first-child:before":{borderStartStartRadius:bo,borderEndStartRadius:bo},"&:last-child:before":{borderStartEndRadius:bo,borderEndEndRadius:bo}},"&:hover td":{"&:before":{background:_o}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${fe}`]:{"&:before":{background:On},[`&${ge}-cell-week`]:{color:new Bu.C(Dr).setAlpha(.5).toHexString()},[Ne]:{color:Dr}}},"&-range-hover td:before":{background:Ni}}},"&-date-panel":{[`${ge}-body`]:{padding:`${Dt}px ${hi}px`},[`${ge}-content`]:{width:at*7,th:{width:at,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${ge}-time-panel`]:{borderInlineStart:`${ln}px ${cn} ${Vt}`},[`${ge}-date-panel, + ${Ne}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${Ma}`},"&:first-child:before":{borderStartStartRadius:bo,borderEndStartRadius:bo},"&:last-child:before":{borderStartEndRadius:bo,borderEndEndRadius:bo}},"&:hover td":{"&:before":{background:Jo}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${fe}`]:{"&:before":{background:On},[`&${ge}-cell-week`]:{color:new Bu.C(Dr).setAlpha(.5).toHexString()},[Ne]:{color:Dr}}},"&-range-hover td:before":{background:Ni}}},"&-date-panel":{[`${ge}-body`]:{padding:`${Dt}px ${hi}px`},[`${ge}-content`]:{width:at*7,th:{width:at,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${ge}-time-panel`]:{borderInlineStart:`${un}px ${cn} ${Vt}`},[`${ge}-date-panel, ${ge}-time-panel`]:{transition:`opacity ${Gn}`},"&-active":{[`${ge}-date-panel, - ${ge}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${ge}-content`]:{display:"flex",flex:"auto",height:Qo},"&-column":{flex:"1 0 auto",width:Li,margin:`${It}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${Ma}`,overflowX:"hidden","&::after":{display:"block",height:Qo-ui,content:'""'},"&:not(:first-child)":{borderInlineStart:`${ln}px ${cn} ${Vt}`},"&-active":{background:new Bu.C(Ni).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${ge}-time-panel-cell`]:{marginInline:uo,[`${ge}-time-panel-cell-inner`]:{display:"block",width:Li-2*uo,height:ui,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Li-ui)/2,color:zr,lineHeight:`${ui}px`,borderRadius:bo,cursor:"pointer",transition:`background ${Ma}`,"&:hover":{background:_o}},"&-selected":{[`${ge}-time-panel-cell-inner`]:{background:Ni}},"&-disabled":{[`${ge}-time-panel-cell-inner`]:{color:Pr,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${ge}-time-panel-column:after`]:{height:Qo-ui+It*2}}}},ss=ce=>{const{componentCls:ge,colorBgContainer:fe,colorError:Ne,errorActiveShadow:Ie,colorWarning:ut,warningActiveShadow:at}=ce;return{[`${ge}:not(${ge}-disabled)`]:{[`&${ge}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:fe,borderColor:Ne},[`&${ge}-focused, &:focus`]:Object.assign({},(0,Di.M1)((0,bl.TS)(ce,{activeBorderColor:Ne,activeShadow:Ie}))),[`${ge}-active-bar`]:{background:Ne}},[`&${ge}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:fe,borderColor:ut},[`&${ge}-focused, &:focus`]:Object.assign({},(0,Di.M1)((0,bl.TS)(ce,{activeBorderColor:ut,activeShadow:at}))),[`${ge}-active-bar`]:{background:ut}}}}},ds=ce=>{const{componentCls:ge,antCls:fe,controlHeight:Ne,fontSize:Ie,paddingInline:ut,colorBgContainer:at,lineWidth:Nt,lineType:Dt,colorBorder:It,borderRadius:Yn,motionDurationMid:ln,colorBgContainerDisabled:cn,colorTextDisabled:In,colorTextPlaceholder:On,controlHeightLG:wt,fontSizeLG:Vt,controlHeightSM:Rn,paddingInlineSM:un,paddingXS:pa,marginXS:Ma,colorTextDescription:Qa,lineWidthBold:Ra,lineHeight:ha,colorPrimary:Jr,motionDurationSlow:Pr,zIndexPopup:zr,paddingXXS:mo,paddingSM:yo,textHeight:Gn,cellActiveWithRangeBg:ii,colorPrimaryBorder:xo,sizePopupArrow:lo,borderRadiusXS:fo,borderRadiusOuter:Zo,colorBgElevated:Wo,borderRadiusLG:bo,boxShadowSecondary:Dr,borderRadiusSM:_o,colorSplit:Qo,cellHoverBg:Li,presetsWidth:ui,presetsMaxWidth:Ni,boxShadowPopoverArrow:uo,colorTextQuaternary:hi}=ce;return[{[ge]:Object.assign(Object.assign(Object.assign({},(0,xu.Wf)(ce)),ku(ce,Ne,Ie,ut)),{position:"relative",display:"inline-flex",alignItems:"center",background:at,lineHeight:1,border:`${Nt}px ${Dt} ${It}`,borderRadius:Yn,transition:`border ${ln}, box-shadow ${ln}`,"&:hover, &-focused":Object.assign({},(0,Di.pU)(ce)),"&-focused":Object.assign({},(0,Di.M1)(ce)),[`&${ge}-disabled`]:{background:cn,borderColor:It,cursor:"not-allowed",[`${ge}-suffix`]:{color:hi}},[`&${ge}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${ge}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,Di.ik)(ce)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${ge}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:On}}},"&-large":Object.assign(Object.assign({},ku(ce,wt,Vt,ut)),{[`${ge}-input > input`]:{fontSize:Vt}}),"&-small":Object.assign({},ku(ce,Rn,Ie,un)),[`${ge}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:pa/2,color:In,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:Ma}}},[`${ge}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:In,lineHeight:1,background:at,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${ln}, color ${ln}`,"> *":{verticalAlign:"top"},"&:hover":{color:Qa}},[`${ge}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:Vt,color:In,fontSize:Vt,verticalAlign:"top",cursor:"default",[`${ge}-focused &`]:{color:Qa},[`${ge}-range-separator &`]:{[`${ge}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${ge}-clear`]:{insetInlineEnd:ut},"&:hover":{[`${ge}-clear`]:{opacity:1}},[`${ge}-active-bar`]:{bottom:-Nt,height:Ra,marginInlineStart:ut,background:Jr,opacity:0,transition:`all ${Pr} ease-out`,pointerEvents:"none"},[`&${ge}-focused`]:{[`${ge}-active-bar`]:{opacity:1}},[`${ge}-range-separator`]:{alignItems:"center",padding:`0 ${pa}px`,lineHeight:1},[`&${ge}-small`]:{[`${ge}-clear`]:{insetInlineEnd:un},[`${ge}-active-bar`]:{marginInlineStart:un}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,xu.Wf)(ce)),ei(ce)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:zr,[`&${ge}-dropdown-hidden`]:{display:"none"},[`&${ge}-dropdown-placement-bottomLeft`]:{[`${ge}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${ge}-dropdown-placement-topLeft`]:{[`${ge}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${fe}-slide-up-enter${fe}-slide-up-enter-active${ge}-dropdown-placement-topLeft, + ${ge}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${ge}-content`]:{display:"flex",flex:"auto",height:Qo},"&-column":{flex:"1 0 auto",width:Li,margin:`${It}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${Ma}`,overflowX:"hidden","&::after":{display:"block",height:Qo-ui,content:'""'},"&:not(:first-child)":{borderInlineStart:`${un}px ${cn} ${Vt}`},"&-active":{background:new Bu.C(Ni).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${ge}-time-panel-cell`]:{marginInline:uo,[`${ge}-time-panel-cell-inner`]:{display:"block",width:Li-2*uo,height:ui,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Li-ui)/2,color:zr,lineHeight:`${ui}px`,borderRadius:bo,cursor:"pointer",transition:`background ${Ma}`,"&:hover":{background:Jo}},"&-selected":{[`${ge}-time-panel-cell-inner`]:{background:Ni}},"&-disabled":{[`${ge}-time-panel-cell-inner`]:{color:Pr,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${ge}-time-panel-column:after`]:{height:Qo-ui+It*2}}}},ss=ce=>{const{componentCls:ge,colorBgContainer:fe,colorError:Ne,errorActiveShadow:Ie,colorWarning:ut,warningActiveShadow:at}=ce;return{[`${ge}:not(${ge}-disabled)`]:{[`&${ge}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:fe,borderColor:Ne},[`&${ge}-focused, &:focus`]:Object.assign({},(0,Di.M1)((0,bl.TS)(ce,{activeBorderColor:Ne,activeShadow:Ie}))),[`${ge}-active-bar`]:{background:Ne}},[`&${ge}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:fe,borderColor:ut},[`&${ge}-focused, &:focus`]:Object.assign({},(0,Di.M1)((0,bl.TS)(ce,{activeBorderColor:ut,activeShadow:at}))),[`${ge}-active-bar`]:{background:ut}}}}},ds=ce=>{const{componentCls:ge,antCls:fe,controlHeight:Ne,fontSize:Ie,paddingInline:ut,colorBgContainer:at,lineWidth:Nt,lineType:Dt,colorBorder:It,borderRadius:Yn,motionDurationMid:un,colorBgContainerDisabled:cn,colorTextDisabled:In,colorTextPlaceholder:On,controlHeightLG:wt,fontSizeLG:Vt,controlHeightSM:Rn,paddingInlineSM:sn,paddingXS:pa,marginXS:Ma,colorTextDescription:Qa,lineWidthBold:Ra,lineHeight:ha,colorPrimary:Jr,motionDurationSlow:Pr,zIndexPopup:zr,paddingXXS:mo,paddingSM:yo,textHeight:Gn,cellActiveWithRangeBg:ii,colorPrimaryBorder:xo,sizePopupArrow:lo,borderRadiusXS:fo,borderRadiusOuter:Zo,colorBgElevated:Wo,borderRadiusLG:bo,boxShadowSecondary:Dr,borderRadiusSM:Jo,colorSplit:Qo,cellHoverBg:Li,presetsWidth:ui,presetsMaxWidth:Ni,boxShadowPopoverArrow:uo,colorTextQuaternary:hi}=ce;return[{[ge]:Object.assign(Object.assign(Object.assign({},(0,xu.Wf)(ce)),ku(ce,Ne,Ie,ut)),{position:"relative",display:"inline-flex",alignItems:"center",background:at,lineHeight:1,border:`${Nt}px ${Dt} ${It}`,borderRadius:Yn,transition:`border ${un}, box-shadow ${un}`,"&:hover, &-focused":Object.assign({},(0,Di.pU)(ce)),"&-focused":Object.assign({},(0,Di.M1)(ce)),[`&${ge}-disabled`]:{background:cn,borderColor:It,cursor:"not-allowed",[`${ge}-suffix`]:{color:hi}},[`&${ge}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${ge}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({},(0,Di.ik)(ce)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,borderRadius:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${ge}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:On}}},"&-large":Object.assign(Object.assign({},ku(ce,wt,Vt,ut)),{[`${ge}-input > input`]:{fontSize:Vt}}),"&-small":Object.assign({},ku(ce,Rn,Ie,sn)),[`${ge}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:pa/2,color:In,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:Ma}}},[`${ge}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:In,lineHeight:1,background:at,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${un}, color ${un}`,"> *":{verticalAlign:"top"},"&:hover":{color:Qa}},[`${ge}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:Vt,color:In,fontSize:Vt,verticalAlign:"top",cursor:"default",[`${ge}-focused &`]:{color:Qa},[`${ge}-range-separator &`]:{[`${ge}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${ge}-clear`]:{insetInlineEnd:ut},"&:hover":{[`${ge}-clear`]:{opacity:1}},[`${ge}-active-bar`]:{bottom:-Nt,height:Ra,marginInlineStart:ut,background:Jr,opacity:0,transition:`all ${Pr} ease-out`,pointerEvents:"none"},[`&${ge}-focused`]:{[`${ge}-active-bar`]:{opacity:1}},[`${ge}-range-separator`]:{alignItems:"center",padding:`0 ${pa}px`,lineHeight:1},[`&${ge}-small`]:{[`${ge}-clear`]:{insetInlineEnd:sn},[`${ge}-active-bar`]:{marginInlineStart:sn}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,xu.Wf)(ce)),_o(ce)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:zr,[`&${ge}-dropdown-hidden`]:{display:"none"},[`&${ge}-dropdown-placement-bottomLeft`]:{[`${ge}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${ge}-dropdown-placement-topLeft`]:{[`${ge}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${fe}-slide-up-enter${fe}-slide-up-enter-active${ge}-dropdown-placement-topLeft, &${fe}-slide-up-enter${fe}-slide-up-enter-active${ge}-dropdown-placement-topRight, &${fe}-slide-up-appear${fe}-slide-up-appear-active${ge}-dropdown-placement-topLeft, &${fe}-slide-up-appear${fe}-slide-up-appear-active${ge}-dropdown-placement-topRight`]:{animationName:_l.Qt},[`&${fe}-slide-up-enter${fe}-slide-up-enter-active${ge}-dropdown-placement-bottomLeft, @@ -321,18 +321,18 @@ ${Ba} &${fe}-slide-up-appear${fe}-slide-up-appear-active${ge}-dropdown-placement-bottomLeft, &${fe}-slide-up-appear${fe}-slide-up-appear-active${ge}-dropdown-placement-bottomRight`]:{animationName:_l.fJ},[`&${fe}-slide-up-leave${fe}-slide-up-leave-active${ge}-dropdown-placement-topLeft, &${fe}-slide-up-leave${fe}-slide-up-leave-active${ge}-dropdown-placement-topRight`]:{animationName:_l.ly},[`&${fe}-slide-up-leave${fe}-slide-up-leave-active${ge}-dropdown-placement-bottomLeft, - &${fe}-slide-up-leave${fe}-slide-up-leave-active${ge}-dropdown-placement-bottomRight`]:{animationName:_l.Uw},[`${ge}-panel > ${ge}-time-panel`]:{paddingTop:mo},[`${ge}-ranges`]:{marginBottom:0,padding:`${mo}px ${yo}px`,overflow:"hidden",lineHeight:`${Gn-2*Nt-pa/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${ge}-preset > ${fe}-tag-blue`]:{color:Jr,background:ii,borderColor:xo,cursor:"pointer"},[`${ge}-ok`]:{marginInlineStart:"auto"}},[`${ge}-range-wrapper`]:{display:"flex",position:"relative"},[`${ge}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:ut*1.5,transition:`left ${Pr} ease-out`},(0,is.r)(lo,fo,Zo,Wo,uo)),[`${ge}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:Wo,borderRadius:bo,boxShadow:Dr,transition:`margin ${Pr}`,[`${ge}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${ge}-presets`]:{display:"flex",flexDirection:"column",minWidth:ui,maxWidth:Ni,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:pa,borderInlineEnd:`${Nt}px ${Dt} ${Qo}`,li:Object.assign(Object.assign({},xu.vS),{borderRadius:_o,paddingInline:pa,paddingBlock:(Rn-Math.round(Ie*ha))/2,cursor:"pointer",transition:`all ${Pr}`,"+ li":{marginTop:Ma},"&:hover":{background:Li}})}},[`${ge}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${ge}-panel`]:{borderWidth:`0 0 ${Nt}px`},"&:last-child":{[`${ge}-panel`]:{borderWidth:0}}},[`${ge}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${ge}-content, - table`]:{textAlign:"center"},"&-focused":{borderColor:It}}}}),"&-dropdown-range":{padding:`${lo*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${ge}-separator`]:{transform:"rotate(180deg)"},[`${ge}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,_l.oN)(ce,"slide-up"),(0,_l.oN)(ce,"slide-down"),(0,Cl.Fm)(ce,"move-up"),(0,Cl.Fm)(ce,"move-down")]},cs=ce=>{const{componentCls:ge,controlHeightLG:fe,paddingXXS:Ne,padding:Ie}=ce;return{pickerCellCls:`${ge}-cell`,pickerCellInnerCls:`${ge}-cell-inner`,pickerYearMonthCellWidth:fe*1.5,pickerQuarterPanelContentHeight:fe*1.4,pickerCellPaddingVertical:Ne+Ne/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:Ie+Ne/2}},Ku=ce=>({cellHoverBg:ce.controlItemBgHover,cellActiveWithRangeBg:ce.controlItemBgActive,cellHoverWithRangeBg:new Bu.C(ce.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Bu.C(ce.colorPrimary).lighten(20).toHexString(),cellBgDisabled:ce.colorBgContainerDisabled,timeColumnWidth:ce.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:ce.controlHeightSM*1.5,cellHeight:ce.controlHeightSM,textHeight:ce.controlHeightLG,withoutTimeCellHeight:ce.controlHeightLG*1.65});var Tu=(0,ls.Z)("DatePicker",ce=>{const ge=(0,bl.TS)((0,Di.e5)(ce),cs(ce));return[ds(ge),ss(ge),(0,iu.c)(ce,{focusElCls:`${ce.componentCls}-focused`})]},ce=>Object.assign(Object.assign(Object.assign({},(0,Di.TM)(ce)),Ku(ce)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:ce.zIndexPopupBase+50}));function ju(ce,ge,fe){return fe!==void 0?fe:ge==="year"&&ce.lang.yearPlaceholder?ce.lang.yearPlaceholder:ge==="quarter"&&ce.lang.quarterPlaceholder?ce.lang.quarterPlaceholder:ge==="month"&&ce.lang.monthPlaceholder?ce.lang.monthPlaceholder:ge==="week"&&ce.lang.weekPlaceholder?ce.lang.weekPlaceholder:ge==="time"&&ce.timePickerLocale.placeholder?ce.timePickerLocale.placeholder:ce.lang.placeholder}function _u(ce,ge,fe){return fe!==void 0?fe:ge==="year"&&ce.lang.yearPlaceholder?ce.lang.rangeYearPlaceholder:ge==="quarter"&&ce.lang.quarterPlaceholder?ce.lang.rangeQuarterPlaceholder:ge==="month"&&ce.lang.monthPlaceholder?ce.lang.rangeMonthPlaceholder:ge==="week"&&ce.lang.weekPlaceholder?ce.lang.rangeWeekPlaceholder:ge==="time"&&ce.timePickerLocale.placeholder?ce.timePickerLocale.rangePlaceholder:ce.lang.rangePlaceholder}function rl(ce,ge){const fe={adjustX:1,adjustY:1};switch(ge){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:fe};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:fe};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:fe};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:fe};default:return{points:ce==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:fe}}}function dl(ce){return ce?Array.isArray(ce)?ce:[ce]:[]}function yu(ce){const{format:ge,picker:fe,showHour:Ne,showMinute:Ie,showSecond:ut,use12Hours:at}=ce,Nt=dl(ge)[0],Dt=Object.assign({},ce);return ge&&Array.isArray(ge)&&(Dt.format=Nt),Nt&&typeof Nt=="string"&&(!Nt.includes("s")&&ut===void 0&&(Dt.showSecond=!1),!Nt.includes("m")&&Ie===void 0&&(Dt.showMinute=!1),!Nt.includes("H")&&!Nt.includes("h")&&!Nt.includes("K")&&!Nt.includes("k")&&Ne===void 0&&(Dt.showHour=!1),(Nt.includes("a")||Nt.includes("A"))&&at===void 0&&(Dt.use12Hours=!0)),fe==="time"?Dt:(typeof Nt=="function"&&delete Dt.format,{showTime:Dt})}function Ju(ce,ge,fe){if(ce===!1)return!1;const Ne={clearIcon:ge!=null?ge:fe};return typeof ce=="object"?Object.assign(Object.assign({},Ne),ce):Ne}var Xu=ae(3113);function Ia(ce){return ie.createElement(Xu.ZP,Object.assign({size:"small",type:"primary"},ce))}var Zu={button:Ia},Fu=function(ce,ge){var fe={};for(var Ne in ce)Object.prototype.hasOwnProperty.call(ce,Ne)&&ge.indexOf(Ne)<0&&(fe[Ne]=ce[Ne]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Ne=Object.getOwnPropertySymbols(ce);Ie{const{prefixCls:Ie,getPopupContainer:ut,className:at,placement:Nt,size:Dt,disabled:It,bordered:Yn=!0,placeholder:ln,popupClassName:cn,dropdownClassName:In,status:On,clearIcon:wt,allowClear:Vt,rootClassName:Rn}=fe,un=Fu(fe,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),pa=ie.useRef(null),{getPrefixCls:Ma,direction:Qa,getPopupContainer:Ra}=(0,ie.useContext)(Ou.E_),ha=Ma("picker",Ie),{compactSize:Jr,compactItemClassnames:Pr}=(0,Ti.ri)(ha,Qa),{format:zr,showTime:mo,picker:yo}=fe,Gn=Ma(),[ii,xo]=Tu(ha),lo=Object.assign(Object.assign({},mo?yu(Object.assign({format:zr,picker:yo},mo)):{}),yo==="time"?yu(Object.assign(Object.assign({format:zr},fe),{picker:yo})):{}),fo=(0,Uu.Z)(uo=>{var hi;return(hi=Dt!=null?Dt:Jr)!==null&&hi!==void 0?hi:uo}),Zo=ie.useContext(ou.Z),Wo=It!=null?It:Zo,bo=(0,ie.useContext)(Mu.aM),{hasFeedback:Dr,status:_o,feedbackIcon:Qo}=bo,Li=ie.createElement(ie.Fragment,null,yo==="time"?ie.createElement(vt,null):ie.createElement(Me,null),Dr&&Qo);(0,ie.useImperativeHandle)(Ne,()=>({focus:()=>{var uo;return(uo=pa.current)===null||uo===void 0?void 0:uo.focus()},blur:()=>{var uo;return(uo=pa.current)===null||uo===void 0?void 0:uo.blur()}}));const[ui]=(0,Ru.Z)("Calendar",Yu.Z),Ni=Object.assign(Object.assign({},ui),fe.locale);return ii(ie.createElement(Qu,Object.assign({separator:ie.createElement("span",{"aria-label":"to",className:`${ha}-separator`},ie.createElement(Wt,null)),disabled:Wo,ref:pa,dropdownAlign:rl(Qa,Nt),placeholder:_u(Ni,yo,ln),suffixIcon:Li,prevIcon:ie.createElement("span",{className:`${ha}-prev-icon`}),nextIcon:ie.createElement("span",{className:`${ha}-next-icon`}),superPrevIcon:ie.createElement("span",{className:`${ha}-super-prev-icon`}),superNextIcon:ie.createElement("span",{className:`${ha}-super-next-icon`}),transitionName:`${Gn}-slide-up`},un,lo,{className:Te()({[`${ha}-${fo}`]:fo,[`${ha}-borderless`]:!Yn},(0,Au.Z)(ha,(0,Au.F)(_o,On),Dr),xo,Pr,at,Rn),locale:Ni.lang,prefixCls:ha,getPopupContainer:ut||Ra,generateConfig:ce,components:Zu,direction:Qa,dropdownClassName:Te()(xo,cn||In,Rn),allowClear:Ju(Vt,wt,ie.createElement(ct.Z,null))})))})}var Jl=function(ce,ge){var fe={};for(var Ne in ce)Object.prototype.hasOwnProperty.call(ce,Ne)&&ge.indexOf(Ne)<0&&(fe[Ne]=ce[Ne]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Ne=Object.getOwnPropertySymbols(ce);Ie{const{prefixCls:On,getPopupContainer:wt,style:Vt,className:Rn,rootClassName:un,size:pa,bordered:Ma=!0,placement:Qa,placeholder:Ra,popupClassName:ha,dropdownClassName:Jr,disabled:Pr,status:zr,clearIcon:mo,allowClear:yo}=cn,Gn=Jl(cn,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:ii,direction:xo,getPopupContainer:lo,[Yn]:fo}=(0,ie.useContext)(Ou.E_),Zo=ii("picker",On),{compactSize:Wo,compactItemClassnames:bo}=(0,Ti.ri)(Zo,xo),Dr=ie.useRef(null),{format:_o,showTime:Qo}=cn,[Li,ui]=Tu(Zo);(0,ie.useImperativeHandle)(In,()=>({focus:()=>{var xi;return(xi=Dr.current)===null||xi===void 0?void 0:xi.focus()},blur:()=>{var xi;return(xi=Dr.current)===null||xi===void 0?void 0:xi.blur()}}));const Ni={showToday:!0};let uo={};Dt&&(uo.picker=Dt);const hi=Dt||cn.picker;uo=Object.assign(Object.assign(Object.assign({},uo),Qo?yu(Object.assign({format:_o,picker:hi},Qo)):{}),hi==="time"?yu(Object.assign(Object.assign({format:_o},cn),{picker:hi})):{});const Bi=ii(),Zi=(0,Uu.Z)(xi=>{var Bl;return(Bl=pa!=null?pa:Wo)!==null&&Bl!==void 0?Bl:xi}),yi=ie.useContext(ou.Z),qi=Pr!=null?Pr:yi,cl=(0,ie.useContext)(Mu.aM),{hasFeedback:ro,status:Do,feedbackIcon:Go}=cl,Fi=ie.createElement(ie.Fragment,null,hi==="time"?ie.createElement(vt,null):ie.createElement(Me,null),ro&&Go),[Gi]=(0,Ru.Z)("DatePicker",Yu.Z),ci=Object.assign(Object.assign({},Gi),cn.locale);return Li(ie.createElement(Iu,Object.assign({ref:Dr,placeholder:ju(ci,hi,Ra),suffixIcon:Fi,dropdownAlign:rl(xo,Qa),prevIcon:ie.createElement("span",{className:`${Zo}-prev-icon`}),nextIcon:ie.createElement("span",{className:`${Zo}-next-icon`}),superPrevIcon:ie.createElement("span",{className:`${Zo}-super-prev-icon`}),superNextIcon:ie.createElement("span",{className:`${Zo}-super-next-icon`}),transitionName:`${Bi}-slide-up`},Ni,Gn,uo,{locale:ci.lang,className:Te()({[`${Zo}-${Zi}`]:Zi,[`${Zo}-borderless`]:!Ma},(0,Au.Z)(Zo,(0,Au.F)(Do,zr),ro),ui,bo,fo==null?void 0:fo.className,Rn,un),style:Object.assign(Object.assign({},fo==null?void 0:fo.style),Vt),prefixCls:Zo,getPopupContainer:wt||lo,generateConfig:ce,components:Zu,direction:xo,disabled:qi,dropdownClassName:Te()(ui,un,ha||Jr),allowClear:Ju(yo,mo,ie.createElement(ct.Z,null))})))});return It&&(ln.displayName=It),ln}const fe=ge(),Ne=ge("week","WeekPicker"),Ie=ge("month","MonthPicker"),ut=ge("year","YearPicker"),at=ge("time","TimePicker"),Nt=ge("quarter","QuarterPicker");return{DatePicker:fe,WeekPicker:Ne,MonthPicker:Ie,YearPicker:ut,TimePicker:at,QuarterPicker:Nt}}const Os=null;function fs(ce){const{DatePicker:ge,WeekPicker:fe,MonthPicker:Ne,YearPicker:Ie,TimePicker:ut,QuarterPicker:at}=ms(ce),Nt=qn(ce),Dt=ge;return Dt.WeekPicker=fe,Dt.MonthPicker=Ne,Dt.YearPicker=Ie,Dt.RangePicker=Nt,Dt.TimePicker=ut,Dt.QuarterPicker=at,Dt}var qu=fs;const Xl=qu(te);function Pi(ce){const ge=rl(ce.direction,ce.placement);return ge.overflow.adjustY=!1,ge.overflow.adjustX=!1,Object.assign(Object.assign({},ce),{dropdownAlign:ge})}const Gu=(0,oe.Z)(Xl,"picker",null,Pi);Xl._InternalPanelDoNotUseOrYouWillBeFired=Gu;const $u=(0,oe.Z)(Xl.RangePicker,"picker",null,Pi);Xl._InternalRangePanelDoNotUseOrYouWillBeFired=$u,Xl.generatePicker=qu;var vs=Xl},39722:function(it,jt,ae){"use strict";ae.d(jt,{t5:function(){return De}});var b=ae(92310),he=ae.n(b),we=ae(55477),xe=ae(59301),Re=ae(36355),We=ae(77578),Be=ae(17356),Ke=function(ze,Ue){var le={};for(var E in ze)Object.prototype.hasOwnProperty.call(ze,E)&&Ue.indexOf(E)<0&&(le[E]=ze[E]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,E=Object.getOwnPropertySymbols(ze);a{if(!(!Ue&&!le))return xe.createElement(xe.Fragment,null,Ue&&xe.createElement("div",{className:`${ze}-title`},(0,We.Z)(Ue)),xe.createElement("div",{className:`${ze}-inner-content`},(0,We.Z)(le)))},De=ze=>{const{hashId:Ue,prefixCls:le,className:E,style:a,placement:x="top",title:y,content:z,children:te}=ze;return xe.createElement("div",{className:he()(Ue,le,`${le}-pure`,`${le}-placement-${x}`,E),style:a},xe.createElement("div",{className:`${le}-arrow`}),xe.createElement(we.G,Object.assign({},ze,{className:Ue,prefixCls:le}),te||Oe(le,y,z)))},ke=ze=>{const{prefixCls:Ue}=ze,le=Ke(ze,["prefixCls"]),{getPrefixCls:E}=xe.useContext(Re.E_),a=E("popover",Ue),[x,y]=(0,Be.Z)(a);return x(xe.createElement(De,Object.assign({},le,{prefixCls:a,hashId:y})))};jt.ZP=ke},60324:function(it,jt,ae){"use strict";var b=ae(92310),he=ae.n(b),we=ae(59301),xe=ae(77578),Re=ae(62892),We=ae(36355),Be=ae(6848),Ke=ae(39722),Oe=ae(17356),De=function(Ue,le){var E={};for(var a in Ue)Object.prototype.hasOwnProperty.call(Ue,a)&&le.indexOf(a)<0&&(E[a]=Ue[a]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,a=Object.getOwnPropertySymbols(Ue);x{let{title:le,content:E,prefixCls:a}=Ue;return we.createElement(we.Fragment,null,le&&we.createElement("div",{className:`${a}-title`},(0,xe.Z)(le)),we.createElement("div",{className:`${a}-inner-content`},(0,xe.Z)(E)))},ze=we.forwardRef((Ue,le)=>{const{prefixCls:E,title:a,content:x,overlayClassName:y,placement:z="top",trigger:te="hover",mouseEnterDelay:oe=.1,mouseLeaveDelay:ue=.1,overlayStyle:ie={}}=Ue,Ee=De(Ue,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Fe}=we.useContext(We.E_),Qe=Fe("popover",E),[Le,st]=(0,Oe.Z)(Qe),Me=Fe(),Ye=he()(y,st);return Le(we.createElement(Be.Z,Object.assign({placement:z,trigger:te,mouseEnterDelay:oe,mouseLeaveDelay:ue,overlayStyle:ie},Ee,{prefixCls:Qe,overlayClassName:Ye,ref:le,overlay:a||x?we.createElement(ke,{prefixCls:Qe,title:a,content:x}):null,transitionName:(0,Re.m)(Me,"zoom-big",Ee.transitionName),"data-popover-inject":!0})))});ze._InternalPanelDoNotUseOrYouWillBeFired=Ke.ZP,jt.Z=ze},17356:function(it,jt,ae){"use strict";var b=ae(17313),he=ae(29878),we=ae(19447),xe=ae(33166),Re=ae(83116),We=ae(37613);const Be=De=>{const{componentCls:ke,popoverColor:ze,minWidth:Ue,fontWeightStrong:le,popoverPadding:E,boxShadowSecondary:a,colorTextHeading:x,borderRadiusLG:y,zIndexPopup:z,marginXS:te,colorBgElevated:oe,popoverBg:ue}=De;return[{[ke]:Object.assign(Object.assign({},(0,b.Wf)(De)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:z,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":oe,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${ke}-content`]:{position:"relative"},[`${ke}-inner`]:{backgroundColor:ue,backgroundClip:"padding-box",borderRadius:y,boxShadow:a,padding:E},[`${ke}-title`]:{minWidth:Ue,marginBottom:te,color:x,fontWeight:le},[`${ke}-inner-content`]:{color:ze}})},(0,we.ZP)(De,{colorBg:"var(--antd-arrow-background-color)"}),{[`${ke}-pure`]:{position:"relative",maxWidth:"none",margin:De.sizePopupArrow,display:"inline-block",[`${ke}-content`]:{display:"inline-block"}}}]},Ke=De=>{const{componentCls:ke}=De;return{[ke]:xe.i.map(ze=>{const Ue=De[`${ze}6`];return{[`&${ke}-${ze}`]:{"--antd-arrow-background-color":Ue,[`${ke}-inner`]:{backgroundColor:Ue},[`${ke}-arrow`]:{background:"transparent"}}}})}},Oe=De=>{const{componentCls:ke,lineWidth:ze,lineType:Ue,colorSplit:le,paddingSM:E,controlHeight:a,fontSize:x,lineHeight:y,padding:z}=De,te=a-Math.round(x*y),oe=te/2,ue=te/2-ze,ie=z;return{[ke]:{[`${ke}-inner`]:{padding:0},[`${ke}-title`]:{margin:0,padding:`${oe}px ${ie}px ${ue}px`,borderBottom:`${ze}px ${Ue} ${le}`},[`${ke}-inner-content`]:{padding:`${E}px ${ie}px`}}}};jt.Z=(0,Re.Z)("Popover",De=>{const{colorBgElevated:ke,colorText:ze,wireframe:Ue}=De,le=(0,We.TS)(De,{popoverPadding:12,popoverBg:ke,popoverColor:ze});return[Be(le),Ke(le),Ue&&Oe(le),(0,he._y)(le,"zoom-big")]},De=>({width:177,minWidth:177,zIndexPopup:De.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},12563:function(it,jt,ae){"use strict";ae.d(jt,{default:function(){return st}});var b=ae(59301),he=ae(99267),we=ae(92310),xe=ae.n(we),Re=ae(36785),We=ae(47729),Be=ae(14088),Ke=ae(36355),Oe=ae(17313),De=ae(37613),ke=ae(83116);const ze=Me=>{const{paddingXXS:Ye,lineWidth:Ge,tagPaddingHorizontal:$e,componentCls:be}=Me,vt=$e-Ge,ct=Ye-Ge;return{[be]:Object.assign(Object.assign({},(0,Oe.Wf)(Me)),{display:"inline-block",height:"auto",marginInlineEnd:Me.marginXS,paddingInline:vt,fontSize:Me.tagFontSize,lineHeight:Me.tagLineHeight,whiteSpace:"nowrap",background:Me.defaultBg,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,borderRadius:Me.borderRadiusSM,opacity:1,transition:`all ${Me.motionDurationMid}`,textAlign:"start",position:"relative",[`&${be}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Me.defaultColor},[`${be}-close-icon`]:{marginInlineStart:ct,color:Me.colorTextDescription,fontSize:Me.tagIconSize,cursor:"pointer",transition:`all ${Me.motionDurationMid}`,"&:hover":{color:Me.colorTextHeading}},[`&${be}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Me.iconCls}-close, ${Me.iconCls}-close:hover`]:{color:Me.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${be}-checkable-checked):hover`]:{color:Me.colorPrimary,backgroundColor:Me.colorFillSecondary},"&:active, &-checked":{color:Me.colorTextLightSolid},"&-checked":{backgroundColor:Me.colorPrimary,"&:hover":{backgroundColor:Me.colorPrimaryHover}},"&:active":{backgroundColor:Me.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Me.iconCls} + span, > span + ${Me.iconCls}`]:{marginInlineStart:vt}}),[`${be}-borderless`]:{borderColor:"transparent",background:Me.tagBorderlessBg}}},Ue=Me=>{const{lineWidth:Ye,fontSizeIcon:Ge}=Me,$e=Me.fontSizeSM,be=`${Me.lineHeightSM*$e}px`;return(0,De.TS)(Me,{tagFontSize:$e,tagLineHeight:be,tagIconSize:Ge-2*Ye,tagPaddingHorizontal:8,tagBorderlessBg:Me.colorFillTertiary})},le=Me=>({defaultBg:Me.colorFillQuaternary,defaultColor:Me.colorText});var E=(0,ke.Z)("Tag",Me=>{const Ye=Ue(Me);return ze(Ye)},le),a=function(Me,Ye){var Ge={};for(var $e in Me)Object.prototype.hasOwnProperty.call(Me,$e)&&Ye.indexOf($e)<0&&(Ge[$e]=Me[$e]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,$e=Object.getOwnPropertySymbols(Me);be<$e.length;be++)Ye.indexOf($e[be])<0&&Object.prototype.propertyIsEnumerable.call(Me,$e[be])&&(Ge[$e[be]]=Me[$e[be]]);return Ge},y=Me=>{const{prefixCls:Ye,style:Ge,className:$e,checked:be,onChange:vt,onClick:ct}=Me,Ft=a(Me,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:At,tag:En}=b.useContext(Ke.E_),Bn=Yt=>{vt==null||vt(!be),ct==null||ct(Yt)},Wt=At("tag",Ye),[Pt,Te]=E(Wt),et=xe()(Wt,`${Wt}-checkable`,{[`${Wt}-checkable-checked`]:be},En==null?void 0:En.className,$e,Te);return Pt(b.createElement("span",Object.assign({},Ft,{style:Object.assign(Object.assign({},Ge),En==null?void 0:En.style),className:et,onClick:Bn})))},z=ae(45157);const te=Me=>(0,z.Z)(Me,(Ye,Ge)=>{let{textColor:$e,lightBorderColor:be,lightColor:vt,darkColor:ct}=Ge;return{[`${Me.componentCls}-${Ye}`]:{color:$e,background:vt,borderColor:be,"&-inverse":{color:Me.colorTextLightSolid,background:ct,borderColor:ct},[`&${Me.componentCls}-borderless`]:{borderColor:"transparent"}}}});var oe=(0,ke.b)(["Tag","preset"],Me=>{const Ye=Ue(Me);return te(Ye)},le);function ue(Me){return typeof Me!="string"?Me:Me.charAt(0).toUpperCase()+Me.slice(1)}const ie=(Me,Ye,Ge)=>{const $e=ue(Ge);return{[`${Me.componentCls}-${Ye}`]:{color:Me[`color${Ge}`],background:Me[`color${$e}Bg`],borderColor:Me[`color${$e}Border`],[`&${Me.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Ee=(0,ke.b)(["Tag","status"],Me=>{const Ye=Ue(Me);return[ie(Ye,"success","Success"),ie(Ye,"processing","Info"),ie(Ye,"error","Error"),ie(Ye,"warning","Warning")]},le),Fe=function(Me,Ye){var Ge={};for(var $e in Me)Object.prototype.hasOwnProperty.call(Me,$e)&&Ye.indexOf($e)<0&&(Ge[$e]=Me[$e]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,$e=Object.getOwnPropertySymbols(Me);be<$e.length;be++)Ye.indexOf($e[be])<0&&Object.prototype.propertyIsEnumerable.call(Me,$e[be])&&(Ge[$e[be]]=Me[$e[be]]);return Ge};const Qe=(Me,Ye)=>{const{prefixCls:Ge,className:$e,rootClassName:be,style:vt,children:ct,icon:Ft,color:At,onClose:En,closeIcon:Bn,closable:Wt,bordered:Pt=!0}=Me,Te=Fe(Me,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:et,direction:Yt,tag:xn}=b.useContext(Ke.E_),[Lt,_t]=b.useState(!0);b.useEffect(()=>{"visible"in Te&&_t(Te.visible)},[Te.visible]);const Ce=(0,Re.o2)(At),ot=(0,Re.yT)(At),nn=Ce||ot,nt=Object.assign(Object.assign({backgroundColor:At&&!nn?At:void 0},xn==null?void 0:xn.style),vt),ht=et("tag",Ge),[Jn,dn]=E(ht),Qt=xe()(ht,xn==null?void 0:xn.className,{[`${ht}-${At}`]:nn,[`${ht}-has-color`]:At&&!nn,[`${ht}-hidden`]:!Lt,[`${ht}-rtl`]:Yt==="rtl",[`${ht}-borderless`]:!Pt},$e,be,dn),Rt=Fa=>{Fa.stopPropagation(),En==null||En(Fa),!Fa.defaultPrevented&&_t(!1)},[,Wn]=(0,We.Z)(Wt,Bn,Fa=>Fa===null?b.createElement(he.Z,{className:`${ht}-close-icon`,onClick:Rt}):b.createElement("span",{className:`${ht}-close-icon`,onClick:Rt},Fa),null,!1),ra=typeof Te.onClick=="function"||ct&&ct.type==="a",en=Ft||null,Ba=en?b.createElement(b.Fragment,null,en,ct&&b.createElement("span",null,ct)):ct,Ka=b.createElement("span",Object.assign({},Te,{ref:Ye,className:Qt,style:nt}),Ba,Wn,Ce&&b.createElement(oe,{key:"preset",prefixCls:ht}),ot&&b.createElement(Ee,{key:"status",prefixCls:ht}));return Jn(ra?b.createElement(Be.Z,{component:"Tag"},Ka):Ka)},Le=b.forwardRef(Qe);Le.CheckableTag=y;var st=Le},98228:function(it,jt,ae){"use strict";ae.d(jt,{default:function(){return Oo}});var b=ae(92310),he=ae.n(b),we=ae(54476),xe=ae(94480),Re=ae(33885),We=ae(42978),Be=ae(75931),Ke=ae(76190),Oe=ae(77861),De=ae(17115),ke=ae(90782),ze=ae(18929),Ue=ae(48736),le=ae(59301),E=function(Ut){var Un=le.useRef({valueLabels:new Map});return le.useMemo(function(){var $n=Un.current.valueLabels,ba=new Map,Ze=Ut.map(function(Ot){var Xt,fn=Ot.value,Mt=(Xt=Ot.label)!==null&&Xt!==void 0?Xt:$n.get(fn);return ba.set(fn,Mt),(0,Re.Z)((0,Re.Z)({},Ot),{},{label:Mt})});return Un.current.valueLabels=ba,[Ze]},[Ut])},a=function(Ut,Un,$n,ba){return le.useMemo(function(){var Ze=Ut.map(function(Mt){var Qn=Mt.value;return Qn}),Ot=Un.map(function(Mt){var Qn=Mt.value;return Qn}),Xt=Ze.filter(function(Mt){return!ba[Mt]});if($n){var fn=(0,ke.S)(Ze,!0,ba);Ze=fn.checkedKeys,Ot=fn.halfCheckedKeys}return[Array.from(new Set([].concat((0,xe.Z)(Xt),(0,xe.Z)(Ze)))),Ot]},[Ut,Un,$n,ba])},x=ae(71430),y=function(Ut,Un){return le.useMemo(function(){var $n=(0,x.I8)(Ut,{fieldNames:Un,initWrapper:function(Ze){return(0,Re.Z)((0,Re.Z)({},Ze),{},{valueEntities:new Map})},processEntity:function(Ze,Ot){var Xt=Ze.node[Un.value];if(0)var fn;Ot.valueEntities.set(Xt,Ze)}});return $n},[Ut,Un])},z=ae(20068),te=ae(11592),oe=function(){return null},ue=oe,ie=["children","value"];function Ee(Ut){return(0,te.Z)(Ut).map(function(Un){if(!le.isValidElement(Un)||!Un.type)return null;var $n=Un,ba=$n.key,Ze=$n.props,Ot=Ze.children,Xt=Ze.value,fn=(0,Be.Z)(Ze,ie),Mt=(0,Re.Z)({key:ba,value:Xt},fn),Qn=Ee(Ot);return Qn.length&&(Mt.children=Qn),Mt}).filter(function(Un){return Un})}function Fe(Ut){if(!Ut)return Ut;var Un=(0,Re.Z)({},Ut);return"props"in Un||Object.defineProperty(Un,"props",{get:function(){return(0,Ue.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Un}}),Un}function Qe(Ut,Un,$n,ba,Ze,Ot){var Xt=null,fn=null;function Mt(){function Qn(Kn){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Kn.map(function(Xe,an){var Cn="".concat(Je,"-").concat(an),Nn=Xe[Ot.value],wa=$n.includes(Nn),Ea=Qn(Xe[Ot.children]||[],Cn,wa),ta=le.createElement(ue,Xe,Ea.map(function(Xn){return Xn.node}));if(Un===Nn&&(Xt=ta),wa){var ya={pos:Cn,node:ta,children:Ea};return tt||fn.push(ya),ya}return null}).filter(function(Xe){return Xe})}fn||(fn=[],Qn(ba),fn.sort(function(Kn,Je){var tt=Kn.node.props.value,Xe=Je.node.props.value,an=$n.indexOf(tt),Cn=$n.indexOf(Xe);return an-Cn}))}Object.defineProperty(Ut,"triggerNode",{get:function(){return(0,Ue.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Mt(),Xt}}),Object.defineProperty(Ut,"allCheckedNodes",{get:function(){return(0,Ue.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Mt(),Ze?fn:fn.map(function(Kn){var Je=Kn.node;return Je})}})}var Le=function(Ut,Un,$n){var ba=$n.treeNodeFilterProp,Ze=$n.filterTreeNode,Ot=$n.fieldNames,Xt=Ot.children;return le.useMemo(function(){if(!Un||Ze===!1)return Ut;var fn;if(typeof Ze=="function")fn=Ze;else{var Mt=Un.toUpperCase();fn=function(Je,tt){var Xe=tt[ba];return String(Xe).toUpperCase().includes(Mt)}}function Qn(Kn){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Kn.reduce(function(tt,Xe){var an=Xe[Xt],Cn=Je||fn(Un,Fe(Xe)),Nn=Qn(an||[],Cn);return(Cn||Nn.length)&&tt.push((0,Re.Z)((0,Re.Z)({},Xe),{},(0,z.Z)({isLeaf:void 0},Xt,Nn))),tt},[])}return Qn(Ut)},[Ut,Un,Xt,ba,Ze])};function st(Ut){var Un=le.useRef();Un.current=Ut;var $n=le.useCallback(function(){return Un.current.apply(Un,arguments)},[]);return $n}function Me(Ut,Un){var $n=Un.id,ba=Un.pId,Ze=Un.rootPId,Ot={},Xt=[],fn=Ut.map(function(Mt){var Qn=(0,Re.Z)({},Mt),Kn=Qn[$n];return Ot[Kn]=Qn,Qn.key=Qn.key||Kn,Qn});return fn.forEach(function(Mt){var Qn=Mt[ba],Kn=Ot[Qn];Kn&&(Kn.children=Kn.children||[],Kn.children.push(Mt)),(Qn===Ze||!Kn&&Ze===null)&&Xt.push(Mt)}),Xt}function Ye(Ut,Un,$n){return le.useMemo(function(){return Ut?$n?Me(Ut,(0,Re.Z)({id:"id",pId:"pId",rootPId:null},$n!==!0?$n:{})):Ut:Ee(Un)},[Un,$n,Ut])}var Ge=le.createContext(null),$e=Ge,be=ae(10228),vt=ae(80547),ct=ae(60091),Ft=le.createContext(null),At=Ft;function En(Ut){return Array.isArray(Ut)?Ut:Ut!==void 0?[Ut]:[]}function Bn(Ut){var Un=Ut||{},$n=Un.label,ba=Un.value,Ze=Un.children,Ot=ba||"value";return{_title:$n?[$n]:["title","label"],value:Ot,key:Ot,children:Ze||"children"}}function Wt(Ut){return!Ut||Ut.disabled||Ut.disableCheckbox||Ut.checkable===!1}function Pt(Ut,Un){var $n=[];function ba(Ze){Ze.forEach(function(Ot){var Xt=Ot[Un.children];Xt&&($n.push(Ot[Un.value]),ba(Xt))})}return ba(Ut),$n}function Te(Ut){return Ut==null}var et={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Yt=function(Un,$n){var ba=(0,Oe.lk)(),Ze=ba.prefixCls,Ot=ba.multiple,Xt=ba.searchValue,fn=ba.toggleOpen,Mt=ba.open,Qn=ba.notFoundContent,Kn=le.useContext(At),Je=Kn.virtual,tt=Kn.listHeight,Xe=Kn.listItemHeight,an=Kn.treeData,Cn=Kn.fieldNames,Nn=Kn.onSelect,wa=Kn.dropdownMatchSelectWidth,Ea=Kn.treeExpandAction,ta=le.useContext($e),ya=ta.checkable,Xn=ta.checkedKeys,zt=ta.halfCheckedKeys,ka=ta.treeExpandedKeys,pr=ta.treeDefaultExpandAll,ho=ta.treeDefaultExpandedKeys,qa=ta.onTreeExpand,Gt=ta.treeIcon,Qr=ta.showTreeIcon,Ua=ta.switcherIcon,Sr=ta.treeLine,lr=ta.treeNodeFilterProp,Gr=ta.loadData,Lr=ta.treeLoadedKeys,no=ta.treeMotion,Mr=ta.onTreeLoad,ca=ta.keyEntities,tn=le.useRef(),gr=(0,vt.Z)(function(){return an},[Mt,an],function(hr,Kr){return Kr[0]&&hr[1]!==Kr[1]}),ga=le.useState(null),ur=(0,We.Z)(ga,2),za=ur[0],vn=ur[1],na=ca[za],Na=le.useMemo(function(){return ya?{checked:Xn,halfChecked:zt}:null},[ya,Xn,zt]);le.useEffect(function(){if(Mt&&!Ot&&Xn.length){var hr;(hr=tn.current)===null||hr===void 0||hr.scrollTo({key:Xn[0]}),vn(Xn[0])}},[Mt]);var _n=String(Xt).toLowerCase(),sr=function(Kr){return _n?String(Kr[lr]).toLowerCase().includes(_n):!1},tr=le.useState(ho),Ar=(0,We.Z)(tr,2),Ur=Ar[0],mr=Ar[1],Yo=le.useState(null),Mo=(0,We.Z)(Yo,2),Ei=Mo[0],xr=Mo[1],Nr=le.useMemo(function(){return ka?(0,xe.Z)(ka):Xt?Ei:Ur},[Ur,Ei,ka,Xt]);le.useEffect(function(){Xt&&xr(Pt(an,Cn))},[Xt]);var Eo=function(Kr){mr(Kr),xr(Kr),qa&&qa(Kr)},Ja=function(Kr){Kr.preventDefault()},Hr=function(Kr,xt){var yt=xt.node;ya&&Wt(yt)||(Nn(yt.key,{selected:!Xn.includes(yt.key)}),Ot||fn(!1))};if(le.useImperativeHandle($n,function(){var hr;return{scrollTo:(hr=tn.current)===null||hr===void 0?void 0:hr.scrollTo,onKeyDown:function(xt){var yt,Et=xt.which;switch(Et){case be.Z.UP:case be.Z.DOWN:case be.Z.LEFT:case be.Z.RIGHT:(yt=tn.current)===null||yt===void 0||yt.onKeyDown(xt);break;case be.Z.ENTER:{if(na){var Mn=(na==null?void 0:na.node)||{},Za=Mn.selectable,rr=Mn.value;Za!==!1&&Hr(null,{node:{key:za},selected:!Xn.includes(rr)})}break}case be.Z.ESC:fn(!1)}},onKeyUp:function(){}}}),gr.length===0)return le.createElement("div",{role:"listbox",className:"".concat(Ze,"-empty"),onMouseDown:Ja},Qn);var Yr={fieldNames:Cn};return Lr&&(Yr.loadedKeys=Lr),Nr&&(Yr.expandedKeys=Nr),le.createElement("div",{onMouseDown:Ja},na&&Mt&&le.createElement("span",{style:et,"aria-live":"assertive"},na.node.value),le.createElement(ct.Z,(0,we.Z)({ref:tn,focusable:!1,prefixCls:"".concat(Ze,"-tree"),treeData:gr,height:tt,itemHeight:Xe,virtual:Je!==!1&&wa!==!1,multiple:Ot,icon:Gt,showIcon:Qr,switcherIcon:Ua,showLine:Sr,loadData:Xt?null:Gr,motion:no,activeKey:za,checkable:ya,checkStrictly:!0,checkedKeys:Na,selectedKeys:ya?[]:Xn,defaultExpandAll:pr},Yr,{onActiveChange:vn,onSelect:Hr,onCheck:Hr,onExpand:Eo,onLoad:Mr,filterTreeNode:sr,expandAction:Ea})))},xn=le.forwardRef(Yt);xn.displayName="OptionList";var Lt=xn,_t="SHOW_ALL",Ce="SHOW_PARENT",ot="SHOW_CHILD";function nn(Ut,Un,$n,ba){var Ze=new Set(Ut);return Un===ot?Ut.filter(function(Ot){var Xt=$n[Ot];return!(Xt&&Xt.children&&Xt.children.some(function(fn){var Mt=fn.node;return Ze.has(Mt[ba.value])})&&Xt.children.every(function(fn){var Mt=fn.node;return Wt(Mt)||Ze.has(Mt[ba.value])}))}):Un===Ce?Ut.filter(function(Ot){var Xt=$n[Ot],fn=Xt?Xt.parent:null;return!(fn&&!Wt(fn.node)&&Ze.has(fn.key))}):Ut}function nt(Ut){var Un=Ut.searchPlaceholder,$n=Ut.treeCheckStrictly,ba=Ut.treeCheckable,Ze=Ut.labelInValue,Ot=Ut.value,Xt=Ut.multiple;warning(!Un,"`searchPlaceholder` has been removed."),$n&&Ze===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Ze||$n)&&warning(toArray(Ot).every(function(fn){return fn&&_typeof(fn)==="object"&&"value"in fn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),$n||Xt||ba?warning(!Ot||Array.isArray(Ot),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(Ot),"`value` should not be array when `TreeSelect` is single mode.")}var ht=null,Jn=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function dn(Ut){return!Ut||(0,Ke.Z)(Ut)!=="object"}var Qt=le.forwardRef(function(Ut,Un){var $n=Ut.id,ba=Ut.prefixCls,Ze=ba===void 0?"rc-tree-select":ba,Ot=Ut.value,Xt=Ut.defaultValue,fn=Ut.onChange,Mt=Ut.onSelect,Qn=Ut.onDeselect,Kn=Ut.searchValue,Je=Ut.inputValue,tt=Ut.onSearch,Xe=Ut.autoClearSearchValue,an=Xe===void 0?!0:Xe,Cn=Ut.filterTreeNode,Nn=Ut.treeNodeFilterProp,wa=Nn===void 0?"value":Nn,Ea=Ut.showCheckedStrategy,ta=Ut.treeNodeLabelProp,ya=Ut.multiple,Xn=Ut.treeCheckable,zt=Ut.treeCheckStrictly,ka=Ut.labelInValue,pr=Ut.fieldNames,ho=Ut.treeDataSimpleMode,qa=Ut.treeData,Gt=Ut.children,Qr=Ut.loadData,Ua=Ut.treeLoadedKeys,Sr=Ut.onTreeLoad,lr=Ut.treeDefaultExpandAll,Gr=Ut.treeExpandedKeys,Lr=Ut.treeDefaultExpandedKeys,no=Ut.onTreeExpand,Mr=Ut.treeExpandAction,ca=Ut.virtual,tn=Ut.listHeight,gr=tn===void 0?200:tn,ga=Ut.listItemHeight,ur=ga===void 0?20:ga,za=Ut.onDropdownVisibleChange,vn=Ut.dropdownMatchSelectWidth,na=vn===void 0?!0:vn,Na=Ut.treeLine,_n=Ut.treeIcon,sr=Ut.showTreeIcon,tr=Ut.switcherIcon,Ar=Ut.treeMotion,Ur=(0,Be.Z)(Ut,Jn),mr=(0,De.ZP)($n),Yo=Xn&&!zt,Mo=Xn||zt,Ei=zt||ka,xr=Mo||ya,Nr=(0,ze.Z)(Xt,{value:Ot}),Eo=(0,We.Z)(Nr,2),Ja=Eo[0],Hr=Eo[1],Yr=le.useMemo(function(){return Xn?Ea||ot:_t},[Ea,Xn]),hr=le.useMemo(function(){return Bn(pr)},[JSON.stringify(pr)]),Kr=(0,ze.Z)("",{value:Kn!==void 0?Kn:Je,postState:function(va){return va||""}}),xt=(0,We.Z)(Kr,2),yt=xt[0],Et=xt[1],Mn=function(va){Et(va),tt==null||tt(va)},Za=Ye(qa,Gt,ho),rr=y(Za,hr),Pn=rr.keyEntities,$a=rr.valueEntities,Xa=le.useCallback(function(ma){var va=[],or=[];return ma.forEach(function(Er){$a.has(Er)?or.push(Er):va.push(Er)}),{missingRawValues:va,existRawValues:or}},[$a]),ao=Le(Za,yt,{fieldNames:hr,treeNodeFilterProp:wa,filterTreeNode:Cn}),dr=le.useCallback(function(ma){if(ma){if(ta)return ma[ta];for(var va=hr._title,or=0;or{const{componentCls:Un,treePrefixCls:$n,colorBgElevated:ba}=Ut,Ze=`.${$n}`;return[{[`${Un}-dropdown`]:[{padding:`${Ut.paddingXS}px ${Ut.paddingXS/2}px`},(0,ja.Yk)($n,(0,St.TS)(Ut,{colorBgContainer:ba})),{[Ze]:{borderRadius:0,[`${Ze}-list-holder-inner`]:{alignItems:"stretch",[`${Ze}-treenode`]:{[`${Ze}-node-content-wrapper`]:{flex:"auto"}}}}},(0,rn.C2)(`${$n}-checkbox`,Ut),{"&-rtl":{direction:"rtl",[`${Ze}-switcher${Ze}-switcher_close`]:{[`${Ze}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Wa(Ut,Un){return(0,kt.Z)("TreeSelect",$n=>{const ba=(0,St.TS)($n,{treePrefixCls:Un});return[Ca(ba)]},ja.TM)(Ut)}var Da=function(Ut,Un){var $n={};for(var ba in Ut)Object.prototype.hasOwnProperty.call(Ut,ba)&&Un.indexOf(ba)<0&&($n[ba]=Ut[ba]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ba=Object.getOwnPropertySymbols(Ut);Ze{var $n,{prefixCls:ba,size:Ze,disabled:Ot,bordered:Xt=!0,className:fn,rootClassName:Mt,treeCheckable:Qn,multiple:Kn,listHeight:Je=256,listItemHeight:tt=26,placement:Xe,notFoundContent:an,switcherIcon:Cn,treeLine:Nn,getPopupContainer:wa,popupClassName:Ea,dropdownClassName:ta,treeIcon:ya=!1,transitionName:Xn,choiceTransitionName:zt="",status:ka,treeExpandAction:pr,builtinPlacements:ho,dropdownMatchSelectWidth:qa,popupMatchSelectWidth:Gt,allowClear:Qr}=Ut,Ua=Da(Ut,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:Sr,getPrefixCls:lr,renderEmpty:Gr,direction:Lr,virtual:no,popupMatchSelectWidth:Mr,popupOverflow:ca}=le.useContext(jn.E_),tn=lr(),gr=lr("select",ba),ga=lr("select-tree",ba),ur=lr("tree-select",ba),{compactSize:za,compactItemClassnames:vn}=(0,_a.ri)(gr,Lr),[na,Na]=(0,Zn.Z)(gr),[_n]=Wa(ur,ga),sr=he()(Ea||ta,`${ur}-dropdown`,{[`${ur}-dropdown-rtl`]:Lr==="rtl"},Mt,Na),tr=!!(Qn||Kn),Ar=(0,Aa.Z)(Ua.suffixIcon,Ua.showArrow),Ur=($n=Gt!=null?Gt:qa)!==null&&$n!==void 0?$n:Mr,{status:mr,hasFeedback:Yo,isFormItemInput:Mo,feedbackIcon:Ei}=le.useContext(oa.aM),xr=(0,Fa.F)(mr,ka),{suffixIcon:Nr,removeIcon:Eo,clearIcon:Ja}=(0,xa.Z)(Object.assign(Object.assign({},Ua),{multiple:tr,showSuffixIcon:Ar,hasFeedback:Yo,feedbackIcon:Ei,prefixCls:gr,componentName:"TreeSelect"})),Hr=Qr===!0?{clearIcon:Ja}:Qr;let Yr;an!==void 0?Yr=an:Yr=(Gr==null?void 0:Gr("Select"))||le.createElement(Pa.Z,{componentName:"Select"});const hr=(0,en.Z)(Ua,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),Kr=le.useMemo(()=>Xe!==void 0?Xe:Lr==="rtl"?"bottomRight":"bottomLeft",[Xe,Lr]),xt=(0,da.Z)(ho,ca),yt=(0,fr.Z)($a=>{var Xa;return(Xa=Ze!=null?Ze:za)!==null&&Xa!==void 0?Xa:$a}),Et=le.useContext(Ha.Z),Mn=Ot!=null?Ot:Et,Za=he()(!ba&&ur,{[`${gr}-lg`]:yt==="large",[`${gr}-sm`]:yt==="small",[`${gr}-rtl`]:Lr==="rtl",[`${gr}-borderless`]:!Xt,[`${gr}-in-form-item`]:Mo},(0,Fa.Z)(gr,xr,Yo),vn,fn,Mt,Na),rr=$a=>le.createElement(Sn.Z,{prefixCls:ga,switcherIcon:Cn,treeNodeProps:$a,showLine:Nn}),Pn=le.createElement(ra,Object.assign({virtual:no,disabled:Mn},hr,{dropdownMatchSelectWidth:Ur,builtinPlacements:xt,ref:Un,prefixCls:gr,className:Za,listHeight:Je,listItemHeight:tt,treeCheckable:Qn&&le.createElement("span",{className:`${gr}-tree-checkbox-inner`}),treeLine:!!Nn,suffixIcon:Nr,multiple:tr,placement:Kr,removeIcon:Eo,allowClear:Hr,switcherIcon:rr,showTreeIcon:ya,notFoundContent:Yr,getPopupContainer:wa||Sr,treeMotion:null,dropdownClassName:sr,choiceTransitionName:(0,Ka.m)(tn,"",zt),transitionName:(0,Ka.m)(tn,"slide-up",Xn),treeExpandAction:pr}));return na(_n(Pn))},ar=le.forwardRef(Ta),Or=(0,Ba.Z)(ar);ar.TreeNode=ue,ar.SHOW_ALL=_t,ar.SHOW_PARENT=Ce,ar.SHOW_CHILD=ot,ar._InternalPanelDoNotUseOrYouWillBeFired=Or;var Oo=ar},24334:function(it,jt,ae){var b,he;(function(we,xe){it.exports=xe(we)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ae.g!="undefined"?ae.g:this,function(we){"use strict";we=we||{};var xe=we.Base64,Re="2.6.4",We="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Be=function(Ge){for(var $e={},be=0,vt=Ge.length;be>>6)+Ke(128|$e&63):Ke(224|$e>>>12&15)+Ke(128|$e>>>6&63)+Ke(128|$e&63)}else{var $e=65536+(Ge.charCodeAt(0)-55296)*1024+(Ge.charCodeAt(1)-56320);return Ke(240|$e>>>18&7)+Ke(128|$e>>>12&63)+Ke(128|$e>>>6&63)+Ke(128|$e&63)}},De=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ke=function(Ge){return Ge.replace(De,Oe)},ze=function(Ge){var $e=[0,2,1][Ge.length%3],be=Ge.charCodeAt(0)<<16|(Ge.length>1?Ge.charCodeAt(1):0)<<8|(Ge.length>2?Ge.charCodeAt(2):0),vt=[We.charAt(be>>>18),We.charAt(be>>>12&63),$e>=2?"=":We.charAt(be>>>6&63),$e>=1?"=":We.charAt(be&63)];return vt.join("")},Ue=we.btoa&&typeof we.btoa=="function"?function(Ge){return we.btoa(Ge)}:function(Ge){if(Ge.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ge.replace(/[\s\S]{1,3}/g,ze)},le=function(Ge){return Ue(ke(String(Ge)))},E=function(Ge){return Ge.replace(/[+\/]/g,function($e){return $e=="+"?"-":"_"}).replace(/=/g,"")},a=function(Ge,$e){return $e?E(le(Ge)):le(Ge)},x=function(Ge){return a(Ge,!0)},y;we.Uint8Array&&(y=function(Ge,$e){for(var be="",vt=0,ct=Ge.length;vt>>18)+We.charAt(Bn>>>12&63)+(typeof At!="undefined"?We.charAt(Bn>>>6&63):"=")+(typeof En!="undefined"?We.charAt(Bn&63):"=")}return $e?E(be):be});var z=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,te=function(Ge){switch(Ge.length){case 4:var $e=(7&Ge.charCodeAt(0))<<18|(63&Ge.charCodeAt(1))<<12|(63&Ge.charCodeAt(2))<<6|63&Ge.charCodeAt(3),be=$e-65536;return Ke((be>>>10)+55296)+Ke((be&1023)+56320);case 3:return Ke((15&Ge.charCodeAt(0))<<12|(63&Ge.charCodeAt(1))<<6|63&Ge.charCodeAt(2));default:return Ke((31&Ge.charCodeAt(0))<<6|63&Ge.charCodeAt(1))}},oe=function(Ge){return Ge.replace(z,te)},ue=function(Ge){var $e=Ge.length,be=$e%4,vt=($e>0?Be[Ge.charAt(0)]<<18:0)|($e>1?Be[Ge.charAt(1)]<<12:0)|($e>2?Be[Ge.charAt(2)]<<6:0)|($e>3?Be[Ge.charAt(3)]:0),ct=[Ke(vt>>>16),Ke(vt>>>8&255),Ke(vt&255)];return ct.length-=[0,0,2,1][be],ct.join("")},ie=we.atob&&typeof we.atob=="function"?function(Ge){return we.atob(Ge)}:function(Ge){return Ge.replace(/\S{1,4}/g,ue)},Ee=function(Ge){return ie(String(Ge).replace(/[^A-Za-z0-9\+\/]/g,""))},Fe=function(Ge){return oe(ie(Ge))},Qe=function(Ge){return String(Ge).replace(/[-_]/g,function($e){return $e=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Le=function(Ge){return Fe(Qe(Ge))},st;we.Uint8Array&&(st=function(Ge){return Uint8Array.from(Ee(Qe(Ge)),function($e){return $e.charCodeAt(0)})});var Me=function(){var Ge=we.Base64;return we.Base64=xe,Ge};if(we.Base64={VERSION:Re,atob:Ee,btoa:Ue,fromBase64:Le,toBase64:a,utob:ke,encode:a,encodeURI:x,btou:oe,decode:Le,noConflict:Me,fromUint8Array:y,toUint8Array:st},typeof Object.defineProperty=="function"){var Ye=function(Ge){return{value:Ge,enumerable:!1,writable:!0,configurable:!0}};we.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ye(function(){return Le(this)})),Object.defineProperty(String.prototype,"toBase64",Ye(function(Ge){return a(this,Ge)})),Object.defineProperty(String.prototype,"toBase64URI",Ye(function(){return a(this,!0)}))}}return we.Meteor&&(Base64=we.Base64),it.exports?it.exports.Base64=we.Base64:(b=[],he=function(){return we.Base64}.apply(jt,b),he!==void 0&&(it.exports=he)),{Base64:we.Base64}})},11414:function(it,jt,ae){"use strict";ae.d(jt,{Z5:function(){return Yl},_l:function(){return zd},bK:function(){return td}});var b=ae(59301),he=ae(18773);function we(ee,ne){ee.prototype=Object.create(ne.prototype),ee.prototype.constructor=ee,(0,he.Z)(ee,ne)}var xe=ae(54476),Re=ae(59781),We=b.createContext(null),Be=null;function Ke(ee){ee()}var Oe=Ke,De=function(ne){return Oe=ne},ke=function(){return Oe};function ze(){var ee=ke(),ne=null,re=null;return{clear:function(){ne=null,re=null},notify:function(){ee(function(){for(var ve=ne;ve;)ve.callback(),ve=ve.next})},get:function(){for(var ve=[],pe=ne;pe;)ve.push(pe),pe=pe.next;return ve},subscribe:function(ve){var pe=!0,Ae=re={callback:ve,next:null,prev:re};return Ae.prev?Ae.prev.next=Ae:ne=Ae,function(){!pe||ne===null||(pe=!1,Ae.next?Ae.next.prev=Ae.prev:re=Ae.prev,Ae.prev?Ae.prev.next=Ae.next:ne=Ae.next)}}}}var Ue={notify:function(){},get:function(){return[]}};function le(ee,ne){var re,de=Ue;function ve(He){return je(),de.subscribe(He)}function pe(){de.notify()}function Ae(){_e.onStateChange&&_e.onStateChange()}function ye(){return!!re}function je(){re||(re=ne?ne.addNestedSub(Ae):ee.subscribe(Ae),de=ze())}function qe(){re&&(re(),re=void 0,de.clear(),de=Ue)}var _e={addNestedSub:ve,notifyNestedSubs:pe,handleChangeWrapper:Ae,isSubscribed:ye,trySubscribe:je,tryUnsubscribe:qe,getListeners:function(){return de}};return _e}var E=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect;function a(ee){var ne=ee.store,re=ee.context,de=ee.children,ve=(0,b.useMemo)(function(){var ye=le(ne);return{store:ne,subscription:ye}},[ne]),pe=(0,b.useMemo)(function(){return ne.getState()},[ne]);E(function(){var ye=ve.subscription;return ye.onStateChange=ye.notifyNestedSubs,ye.trySubscribe(),pe!==ne.getState()&&ye.notifyNestedSubs(),function(){ye.tryUnsubscribe(),ye.onStateChange=null}},[ve,pe]);var Ae=re||We;return b.createElement(Ae.Provider,{value:ve},de)}var x=a,y=ae(85377),z=ae(94266),te=ae.n(z),oe=ae(53410),ue=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],ie=["reactReduxForwardedRef"],Ee=[],Fe=[null,null],Qe=function(ne){try{return JSON.stringify(ne)}catch(re){return String(ne)}};function Le(ee,ne){var re=ee[1];return[ne.payload,re+1]}function st(ee,ne,re){E(function(){return ee.apply(void 0,ne)},re)}function Me(ee,ne,re,de,ve,pe,Ae){ee.current=de,ne.current=ve,re.current=!1,pe.current&&(pe.current=null,Ae())}function Ye(ee,ne,re,de,ve,pe,Ae,ye,je,qe){if(ee){var _e=!1,He=null,Ve=function(){if(!_e){var aa=ne.getState(),fa,Sa;try{fa=de(aa,ve.current)}catch(Ya){Sa=Ya,He=Ya}Sa||(He=null),fa===pe.current?Ae.current||je():(pe.current=fa,ye.current=fa,Ae.current=!0,qe({type:"STORE_UPDATED",payload:{error:Sa}}))}};re.onStateChange=Ve,re.trySubscribe(),Ve();var lt=function(){if(_e=!0,re.tryUnsubscribe(),re.onStateChange=null,He)throw He};return lt}}var Ge=function(){return[null,0]};function $e(ee,ne){ne===void 0&&(ne={});var re=ne,de=re.getDisplayName,ve=de===void 0?function(io){return"ConnectAdvanced("+io+")"}:de,pe=re.methodName,Ae=pe===void 0?"connectAdvanced":pe,ye=re.renderCountProp,je=ye===void 0?void 0:ye,qe=re.shouldHandleStateChanges,_e=qe===void 0?!0:qe,He=re.storeKey,Ve=He===void 0?"store":He,lt=re.withRef,Zt=lt===void 0?!1:lt,aa=re.forwardRef,fa=aa===void 0?!1:aa,Sa=re.context,Ya=Sa===void 0?We:Sa,ir=(0,y.Z)(re,ue);if(0)var vr;var po=Ya;return function(Io){var Mi=Io.displayName||Io.name||"Component",Vo=ve(Mi),Ri=(0,xe.Z)({},ir,{getDisplayName:ve,methodName:Ae,renderCountProp:je,shouldHandleStateChanges:_e,storeKey:Ve,displayName:Vo,wrappedComponentName:Mi,WrappedComponent:Io}),ul=ir.pure;function El(Sl){return ee(Sl.dispatch,Ri)}var pu=ul?b.useMemo:function(Sl){return Sl()};function gu(Sl){var Du=(0,b.useMemo)(function(){var Fs=Sl.reactReduxForwardedRef,Ws=(0,y.Z)(Sl,ie);return[Sl.context,Fs,Ws]},[Sl]),Eu=Du[0],As=Du[1],Vu=Du[2],Lu=(0,b.useMemo)(function(){return Eu&&Eu.Consumer&&(0,oe.isContextConsumer)(b.createElement(Eu.Consumer,null))?Eu:po},[Eu,po]),Su=(0,b.useContext)(Lu),Wu=!!Sl.store&&!!Sl.store.getState&&!!Sl.store.dispatch,xs=!!Su&&!!Su.store,Pu=Wu?Sl.store:Su.store,ys=(0,b.useMemo)(function(){return El(Pu)},[Pu]),ws=(0,b.useMemo)(function(){if(!_e)return Fe;var Fs=le(Pu,Wu?null:Su.subscription),Ws=Fs.notifyNestedSubs.bind(Fs);return[Fs,Ws]},[Pu,Wu,Su]),as=ws[0],Ds=ws[1],Ls=(0,b.useMemo)(function(){return Wu?Su:(0,xe.Z)({},Su,{subscription:as})},[Wu,Su,as]),nd=(0,b.useReducer)(Le,Ee,Ge),Kd=nd[0],Ns=Kd[0],_d=nd[1];if(Ns&&Ns.error)throw Ns.error;var ad=(0,b.useRef)(),Hs=(0,b.useRef)(Vu),Is=(0,b.useRef)(),rd=(0,b.useRef)(!1),zs=pu(function(){return Is.current&&Vu===Hs.current?Is.current:ys(Pu.getState(),Vu)},[Pu,Ns,Vu]);st(Me,[Hs,ad,rd,Vu,zs,Is,Ds]),st(Ye,[_e,Pu,as,ys,Hs,ad,rd,Is,Ds,_d],[Pu,as,ys]);var Vs=(0,b.useMemo)(function(){return b.createElement(Io,(0,xe.Z)({},zs,{ref:As}))},[As,Io,zs]),Jd=(0,b.useMemo)(function(){return _e?b.createElement(Lu.Provider,{value:Ls},Vs):Vs},[Lu,Vs,Ls]);return Jd}var Kl=ul?b.memo(gu):gu;if(Kl.WrappedComponent=Io,Kl.displayName=gu.displayName=Vo,fa){var hu=b.forwardRef(function(Du,Eu){return b.createElement(Kl,(0,xe.Z)({},Du,{reactReduxForwardedRef:Eu}))});return hu.displayName=Vo,hu.WrappedComponent=Io,te()(hu,Io)}return te()(Kl,Io)}}function be(ee,ne){return ee===ne?ee!==0||ne!==0||1/ee===1/ne:ee!==ee&&ne!==ne}function vt(ee,ne){if(be(ee,ne))return!0;if(typeof ee!="object"||ee===null||typeof ne!="object"||ne===null)return!1;var re=Object.keys(ee),de=Object.keys(ne);if(re.length!==de.length)return!1;for(var ve=0;ve=0;de--){var ve=ne[de](ee);if(ve)return ve}return function(pe,Ae){throw new Error("Invalid value of type "+typeof ee+" for "+re+" argument when connecting component "+Ae.wrappedComponentName+".")}}function Wn(ee,ne){return ee===ne}function ra(ee){var ne=ee===void 0?{}:ee,re=ne.connectHOC,de=re===void 0?$e:re,ve=ne.mapStateToPropsFactories,pe=ve===void 0?xn:ve,Ae=ne.mapDispatchToPropsFactories,ye=Ae===void 0?Te:Ae,je=ne.mergePropsFactories,qe=je===void 0?nn:je,_e=ne.selectorFactory,He=_e===void 0?dn:_e;return function(lt,Zt,aa,fa){fa===void 0&&(fa={});var Sa=fa,Ya=Sa.pure,ir=Ya===void 0?!0:Ya,vr=Sa.areStatesEqual,po=vr===void 0?Wn:vr,io=Sa.areOwnPropsEqual,Io=io===void 0?vt:io,Mi=Sa.areStatePropsEqual,Vo=Mi===void 0?vt:Mi,Ri=Sa.areMergedPropsEqual,ul=Ri===void 0?vt:Ri,El=(0,y.Z)(Sa,Qt),pu=Rt(lt,pe,"mapStateToProps"),gu=Rt(Zt,ye,"mapDispatchToProps"),Kl=Rt(aa,qe,"mergeProps");return de(He,(0,xe.Z)({methodName:"connect",getDisplayName:function(Sl){return"Connect("+Sl+")"},shouldHandleStateChanges:!!lt,initMapStateToProps:pu,initMapDispatchToProps:gu,initMergeProps:Kl,pure:ir,areStatesEqual:po,areOwnPropsEqual:Io,areStatePropsEqual:Vo,areMergedPropsEqual:ul},El))}}var en=ra();function Ba(){var ee=useContext(ReactReduxContext);return ee}function Ka(ee){ee===void 0&&(ee=ReactReduxContext);var ne=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(){var de=ne(),ve=de.store;return ve}}var Fa=null;function jn(ee){ee===void 0&&(ee=ReactReduxContext);var ne=ee===ReactReduxContext?useDefaultStore:createStoreHook(ee);return function(){var de=ne();return de.dispatch}}var Ha=null,Pa=function(ne,re){return ne===re};function fr(ee,ne,re,de){var ve=useReducer(function(Zt){return Zt+1},0),pe=ve[1],Ae=useMemo(function(){return createSubscription(re,de)},[re,de]),ye=useRef(),je=useRef(),qe=useRef(),_e=useRef(),He=re.getState(),Ve;try{if(ee!==je.current||He!==qe.current||ye.current){var lt=ee(He);_e.current===void 0||!ne(lt,_e.current)?Ve=lt:Ve=_e.current}else Ve=_e.current}catch(Zt){throw ye.current&&(Zt.message+=` + &${fe}-slide-up-leave${fe}-slide-up-leave-active${ge}-dropdown-placement-bottomRight`]:{animationName:_l.Uw},[`${ge}-panel > ${ge}-time-panel`]:{paddingTop:mo},[`${ge}-ranges`]:{marginBottom:0,padding:`${mo}px ${yo}px`,overflow:"hidden",lineHeight:`${Gn-2*Nt-pa/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${ge}-preset > ${fe}-tag-blue`]:{color:Jr,background:ii,borderColor:xo,cursor:"pointer"},[`${ge}-ok`]:{marginInlineStart:"auto"}},[`${ge}-range-wrapper`]:{display:"flex",position:"relative"},[`${ge}-range-arrow`]:Object.assign({position:"absolute",zIndex:1,display:"none",marginInlineStart:ut*1.5,transition:`left ${Pr} ease-out`},(0,is.r)(lo,fo,Zo,Wo,uo)),[`${ge}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:Wo,borderRadius:bo,boxShadow:Dr,transition:`margin ${Pr}`,[`${ge}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${ge}-presets`]:{display:"flex",flexDirection:"column",minWidth:ui,maxWidth:Ni,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:pa,borderInlineEnd:`${Nt}px ${Dt} ${Qo}`,li:Object.assign(Object.assign({},xu.vS),{borderRadius:Jo,paddingInline:pa,paddingBlock:(Rn-Math.round(Ie*ha))/2,cursor:"pointer",transition:`all ${Pr}`,"+ li":{marginTop:Ma},"&:hover":{background:Li}})}},[`${ge}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${ge}-panel`]:{borderWidth:`0 0 ${Nt}px`},"&:last-child":{[`${ge}-panel`]:{borderWidth:0}}},[`${ge}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${ge}-content, + table`]:{textAlign:"center"},"&-focused":{borderColor:It}}}}),"&-dropdown-range":{padding:`${lo*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${ge}-separator`]:{transform:"rotate(180deg)"},[`${ge}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,_l.oN)(ce,"slide-up"),(0,_l.oN)(ce,"slide-down"),(0,Cl.Fm)(ce,"move-up"),(0,Cl.Fm)(ce,"move-down")]},cs=ce=>{const{componentCls:ge,controlHeightLG:fe,paddingXXS:Ne,padding:Ie}=ce;return{pickerCellCls:`${ge}-cell`,pickerCellInnerCls:`${ge}-cell-inner`,pickerYearMonthCellWidth:fe*1.5,pickerQuarterPanelContentHeight:fe*1.4,pickerCellPaddingVertical:Ne+Ne/2,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:Ie+Ne/2}},Ku=ce=>({cellHoverBg:ce.controlItemBgHover,cellActiveWithRangeBg:ce.controlItemBgActive,cellHoverWithRangeBg:new Bu.C(ce.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Bu.C(ce.colorPrimary).lighten(20).toHexString(),cellBgDisabled:ce.colorBgContainerDisabled,timeColumnWidth:ce.controlHeightLG*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:ce.controlHeightSM*1.5,cellHeight:ce.controlHeightSM,textHeight:ce.controlHeightLG,withoutTimeCellHeight:ce.controlHeightLG*1.65});var Tu=(0,ls.Z)("DatePicker",ce=>{const ge=(0,bl.TS)((0,Di.e5)(ce),cs(ce));return[ds(ge),ss(ge),(0,iu.c)(ce,{focusElCls:`${ce.componentCls}-focused`})]},ce=>Object.assign(Object.assign(Object.assign({},(0,Di.TM)(ce)),Ku(ce)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:ce.zIndexPopupBase+50}));function ju(ce,ge,fe){return fe!==void 0?fe:ge==="year"&&ce.lang.yearPlaceholder?ce.lang.yearPlaceholder:ge==="quarter"&&ce.lang.quarterPlaceholder?ce.lang.quarterPlaceholder:ge==="month"&&ce.lang.monthPlaceholder?ce.lang.monthPlaceholder:ge==="week"&&ce.lang.weekPlaceholder?ce.lang.weekPlaceholder:ge==="time"&&ce.timePickerLocale.placeholder?ce.timePickerLocale.placeholder:ce.lang.placeholder}function _u(ce,ge,fe){return fe!==void 0?fe:ge==="year"&&ce.lang.yearPlaceholder?ce.lang.rangeYearPlaceholder:ge==="quarter"&&ce.lang.quarterPlaceholder?ce.lang.rangeQuarterPlaceholder:ge==="month"&&ce.lang.monthPlaceholder?ce.lang.rangeMonthPlaceholder:ge==="week"&&ce.lang.weekPlaceholder?ce.lang.rangeWeekPlaceholder:ge==="time"&&ce.timePickerLocale.placeholder?ce.timePickerLocale.rangePlaceholder:ce.lang.rangePlaceholder}function qi(ce,ge){const fe={adjustX:1,adjustY:1};switch(ge){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:fe};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:fe};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:fe};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:fe};default:return{points:ce==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:fe}}}function dl(ce){return ce?Array.isArray(ce)?ce:[ce]:[]}function yu(ce){const{format:ge,picker:fe,showHour:Ne,showMinute:Ie,showSecond:ut,use12Hours:at}=ce,Nt=dl(ge)[0],Dt=Object.assign({},ce);return ge&&Array.isArray(ge)&&(Dt.format=Nt),Nt&&typeof Nt=="string"&&(!Nt.includes("s")&&ut===void 0&&(Dt.showSecond=!1),!Nt.includes("m")&&Ie===void 0&&(Dt.showMinute=!1),!Nt.includes("H")&&!Nt.includes("h")&&!Nt.includes("K")&&!Nt.includes("k")&&Ne===void 0&&(Dt.showHour=!1),(Nt.includes("a")||Nt.includes("A"))&&at===void 0&&(Dt.use12Hours=!0)),fe==="time"?Dt:(typeof Nt=="function"&&delete Dt.format,{showTime:Dt})}function Ju(ce,ge,fe){if(ce===!1)return!1;const Ne={clearIcon:ge!=null?ge:fe};return typeof ce=="object"?Object.assign(Object.assign({},Ne),ce):Ne}var Xu=ae(3113);function Ia(ce){return ie.createElement(Xu.ZP,Object.assign({size:"small",type:"primary"},ce))}var Zu={button:Ia},Fu=function(ce,ge){var fe={};for(var Ne in ce)Object.prototype.hasOwnProperty.call(ce,Ne)&&ge.indexOf(Ne)<0&&(fe[Ne]=ce[Ne]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Ne=Object.getOwnPropertySymbols(ce);Ie{const{prefixCls:Ie,getPopupContainer:ut,className:at,placement:Nt,size:Dt,disabled:It,bordered:Yn=!0,placeholder:un,popupClassName:cn,dropdownClassName:In,status:On,clearIcon:wt,allowClear:Vt,rootClassName:Rn}=fe,sn=Fu(fe,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),pa=ie.useRef(null),{getPrefixCls:Ma,direction:Qa,getPopupContainer:Ra}=(0,ie.useContext)(Ou.E_),ha=Ma("picker",Ie),{compactSize:Jr,compactItemClassnames:Pr}=(0,Ti.ri)(ha,Qa),{format:zr,showTime:mo,picker:yo}=fe,Gn=Ma(),[ii,xo]=Tu(ha),lo=Object.assign(Object.assign({},mo?yu(Object.assign({format:zr,picker:yo},mo)):{}),yo==="time"?yu(Object.assign(Object.assign({format:zr},fe),{picker:yo})):{}),fo=(0,Uu.Z)(uo=>{var hi;return(hi=Dt!=null?Dt:Jr)!==null&&hi!==void 0?hi:uo}),Zo=ie.useContext(ou.Z),Wo=It!=null?It:Zo,bo=(0,ie.useContext)(Mu.aM),{hasFeedback:Dr,status:Jo,feedbackIcon:Qo}=bo,Li=ie.createElement(ie.Fragment,null,yo==="time"?ie.createElement(vt,null):ie.createElement(Me,null),Dr&&Qo);(0,ie.useImperativeHandle)(Ne,()=>({focus:()=>{var uo;return(uo=pa.current)===null||uo===void 0?void 0:uo.focus()},blur:()=>{var uo;return(uo=pa.current)===null||uo===void 0?void 0:uo.blur()}}));const[ui]=(0,Ru.Z)("Calendar",Yu.Z),Ni=Object.assign(Object.assign({},ui),fe.locale);return ii(ie.createElement(Qu,Object.assign({separator:ie.createElement("span",{"aria-label":"to",className:`${ha}-separator`},ie.createElement(Wt,null)),disabled:Wo,ref:pa,dropdownAlign:qi(Qa,Nt),placeholder:_u(Ni,yo,un),suffixIcon:Li,prevIcon:ie.createElement("span",{className:`${ha}-prev-icon`}),nextIcon:ie.createElement("span",{className:`${ha}-next-icon`}),superPrevIcon:ie.createElement("span",{className:`${ha}-super-prev-icon`}),superNextIcon:ie.createElement("span",{className:`${ha}-super-next-icon`}),transitionName:`${Gn}-slide-up`},sn,lo,{className:Te()({[`${ha}-${fo}`]:fo,[`${ha}-borderless`]:!Yn},(0,Au.Z)(ha,(0,Au.F)(Jo,On),Dr),xo,Pr,at,Rn),locale:Ni.lang,prefixCls:ha,getPopupContainer:ut||Ra,generateConfig:ce,components:Zu,direction:Qa,dropdownClassName:Te()(xo,cn||In,Rn),allowClear:Ju(Vt,wt,ie.createElement(ct.Z,null))})))})}var Jl=function(ce,ge){var fe={};for(var Ne in ce)Object.prototype.hasOwnProperty.call(ce,Ne)&&ge.indexOf(Ne)<0&&(fe[Ne]=ce[Ne]);if(ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,Ne=Object.getOwnPropertySymbols(ce);Ie{const{prefixCls:On,getPopupContainer:wt,style:Vt,className:Rn,rootClassName:sn,size:pa,bordered:Ma=!0,placement:Qa,placeholder:Ra,popupClassName:ha,dropdownClassName:Jr,disabled:Pr,status:zr,clearIcon:mo,allowClear:yo}=cn,Gn=Jl(cn,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:ii,direction:xo,getPopupContainer:lo,[Yn]:fo}=(0,ie.useContext)(Ou.E_),Zo=ii("picker",On),{compactSize:Wo,compactItemClassnames:bo}=(0,Ti.ri)(Zo,xo),Dr=ie.useRef(null),{format:Jo,showTime:Qo}=cn,[Li,ui]=Tu(Zo);(0,ie.useImperativeHandle)(In,()=>({focus:()=>{var xi;return(xi=Dr.current)===null||xi===void 0?void 0:xi.focus()},blur:()=>{var xi;return(xi=Dr.current)===null||xi===void 0?void 0:xi.blur()}}));const Ni={showToday:!0};let uo={};Dt&&(uo.picker=Dt);const hi=Dt||cn.picker;uo=Object.assign(Object.assign(Object.assign({},uo),Qo?yu(Object.assign({format:Jo,picker:hi},Qo)):{}),hi==="time"?yu(Object.assign(Object.assign({format:Jo},cn),{picker:hi})):{});const Bi=ii(),Zi=(0,Uu.Z)(xi=>{var Bl;return(Bl=pa!=null?pa:Wo)!==null&&Bl!==void 0?Bl:xi}),yi=ie.useContext(ou.Z),$i=Pr!=null?Pr:yi,cl=(0,ie.useContext)(Mu.aM),{hasFeedback:ro,status:Do,feedbackIcon:Go}=cl,Fi=ie.createElement(ie.Fragment,null,hi==="time"?ie.createElement(vt,null):ie.createElement(Me,null),ro&&Go),[Gi]=(0,Ru.Z)("DatePicker",Yu.Z),ci=Object.assign(Object.assign({},Gi),cn.locale);return Li(ie.createElement(Iu,Object.assign({ref:Dr,placeholder:ju(ci,hi,Ra),suffixIcon:Fi,dropdownAlign:qi(xo,Qa),prevIcon:ie.createElement("span",{className:`${Zo}-prev-icon`}),nextIcon:ie.createElement("span",{className:`${Zo}-next-icon`}),superPrevIcon:ie.createElement("span",{className:`${Zo}-super-prev-icon`}),superNextIcon:ie.createElement("span",{className:`${Zo}-super-next-icon`}),transitionName:`${Bi}-slide-up`},Ni,Gn,uo,{locale:ci.lang,className:Te()({[`${Zo}-${Zi}`]:Zi,[`${Zo}-borderless`]:!Ma},(0,Au.Z)(Zo,(0,Au.F)(Do,zr),ro),ui,bo,fo==null?void 0:fo.className,Rn,sn),style:Object.assign(Object.assign({},fo==null?void 0:fo.style),Vt),prefixCls:Zo,getPopupContainer:wt||lo,generateConfig:ce,components:Zu,direction:xo,disabled:$i,dropdownClassName:Te()(ui,sn,ha||Jr),allowClear:Ju(yo,mo,ie.createElement(ct.Z,null))})))});return It&&(un.displayName=It),un}const fe=ge(),Ne=ge("week","WeekPicker"),Ie=ge("month","MonthPicker"),ut=ge("year","YearPicker"),at=ge("time","TimePicker"),Nt=ge("quarter","QuarterPicker");return{DatePicker:fe,WeekPicker:Ne,MonthPicker:Ie,YearPicker:ut,TimePicker:at,QuarterPicker:Nt}}const Os=null;function fs(ce){const{DatePicker:ge,WeekPicker:fe,MonthPicker:Ne,YearPicker:Ie,TimePicker:ut,QuarterPicker:at}=ms(ce),Nt=qn(ce),Dt=ge;return Dt.WeekPicker=fe,Dt.MonthPicker=Ne,Dt.YearPicker=Ie,Dt.RangePicker=Nt,Dt.TimePicker=ut,Dt.QuarterPicker=at,Dt}var qu=fs;const Xl=qu(te);function Pi(ce){const ge=qi(ce.direction,ce.placement);return ge.overflow.adjustY=!1,ge.overflow.adjustX=!1,Object.assign(Object.assign({},ce),{dropdownAlign:ge})}const Gu=(0,oe.Z)(Xl,"picker",null,Pi);Xl._InternalPanelDoNotUseOrYouWillBeFired=Gu;const $u=(0,oe.Z)(Xl.RangePicker,"picker",null,Pi);Xl._InternalRangePanelDoNotUseOrYouWillBeFired=$u,Xl.generatePicker=qu;var vs=Xl},39722:function(it,jt,ae){"use strict";ae.d(jt,{t5:function(){return De}});var b=ae(92310),he=ae.n(b),we=ae(55477),Be=ae(59301),Re=ae(36355),We=ae(77578),xe=ae(17356),Ke=function(ze,Ue){var ue={};for(var E in ze)Object.prototype.hasOwnProperty.call(ze,E)&&Ue.indexOf(E)<0&&(ue[E]=ze[E]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,E=Object.getOwnPropertySymbols(ze);a{if(!(!Ue&&!ue))return Be.createElement(Be.Fragment,null,Ue&&Be.createElement("div",{className:`${ze}-title`},(0,We.Z)(Ue)),Be.createElement("div",{className:`${ze}-inner-content`},(0,We.Z)(ue)))},De=ze=>{const{hashId:Ue,prefixCls:ue,className:E,style:a,placement:x="top",title:y,content:z,children:te}=ze;return Be.createElement("div",{className:he()(Ue,ue,`${ue}-pure`,`${ue}-placement-${x}`,E),style:a},Be.createElement("div",{className:`${ue}-arrow`}),Be.createElement(we.G,Object.assign({},ze,{className:Ue,prefixCls:ue}),te||Oe(ue,y,z)))},ke=ze=>{const{prefixCls:Ue}=ze,ue=Ke(ze,["prefixCls"]),{getPrefixCls:E}=Be.useContext(Re.E_),a=E("popover",Ue),[x,y]=(0,xe.Z)(a);return x(Be.createElement(De,Object.assign({},ue,{prefixCls:a,hashId:y})))};jt.ZP=ke},60324:function(it,jt,ae){"use strict";var b=ae(92310),he=ae.n(b),we=ae(59301),Be=ae(77578),Re=ae(62892),We=ae(36355),xe=ae(6848),Ke=ae(39722),Oe=ae(17356),De=function(Ue,ue){var E={};for(var a in Ue)Object.prototype.hasOwnProperty.call(Ue,a)&&ue.indexOf(a)<0&&(E[a]=Ue[a]);if(Ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,a=Object.getOwnPropertySymbols(Ue);x{let{title:ue,content:E,prefixCls:a}=Ue;return we.createElement(we.Fragment,null,ue&&we.createElement("div",{className:`${a}-title`},(0,Be.Z)(ue)),we.createElement("div",{className:`${a}-inner-content`},(0,Be.Z)(E)))},ze=we.forwardRef((Ue,ue)=>{const{prefixCls:E,title:a,content:x,overlayClassName:y,placement:z="top",trigger:te="hover",mouseEnterDelay:oe=.1,mouseLeaveDelay:se=.1,overlayStyle:ie={}}=Ue,Ee=De(Ue,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Fe}=we.useContext(We.E_),Qe=Fe("popover",E),[Le,st]=(0,Oe.Z)(Qe),Me=Fe(),Ye=he()(y,st);return Le(we.createElement(xe.Z,Object.assign({placement:z,trigger:te,mouseEnterDelay:oe,mouseLeaveDelay:se,overlayStyle:ie},Ee,{prefixCls:Qe,overlayClassName:Ye,ref:ue,overlay:a||x?we.createElement(ke,{prefixCls:Qe,title:a,content:x}):null,transitionName:(0,Re.m)(Me,"zoom-big",Ee.transitionName),"data-popover-inject":!0})))});ze._InternalPanelDoNotUseOrYouWillBeFired=Ke.ZP,jt.Z=ze},17356:function(it,jt,ae){"use strict";var b=ae(17313),he=ae(29878),we=ae(19447),Be=ae(33166),Re=ae(83116),We=ae(37613);const xe=De=>{const{componentCls:ke,popoverColor:ze,minWidth:Ue,fontWeightStrong:ue,popoverPadding:E,boxShadowSecondary:a,colorTextHeading:x,borderRadiusLG:y,zIndexPopup:z,marginXS:te,colorBgElevated:oe,popoverBg:se}=De;return[{[ke]:Object.assign(Object.assign({},(0,b.Wf)(De)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:z,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":oe,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${ke}-content`]:{position:"relative"},[`${ke}-inner`]:{backgroundColor:se,backgroundClip:"padding-box",borderRadius:y,boxShadow:a,padding:E},[`${ke}-title`]:{minWidth:Ue,marginBottom:te,color:x,fontWeight:ue},[`${ke}-inner-content`]:{color:ze}})},(0,we.ZP)(De,{colorBg:"var(--antd-arrow-background-color)"}),{[`${ke}-pure`]:{position:"relative",maxWidth:"none",margin:De.sizePopupArrow,display:"inline-block",[`${ke}-content`]:{display:"inline-block"}}}]},Ke=De=>{const{componentCls:ke}=De;return{[ke]:Be.i.map(ze=>{const Ue=De[`${ze}6`];return{[`&${ke}-${ze}`]:{"--antd-arrow-background-color":Ue,[`${ke}-inner`]:{backgroundColor:Ue},[`${ke}-arrow`]:{background:"transparent"}}}})}},Oe=De=>{const{componentCls:ke,lineWidth:ze,lineType:Ue,colorSplit:ue,paddingSM:E,controlHeight:a,fontSize:x,lineHeight:y,padding:z}=De,te=a-Math.round(x*y),oe=te/2,se=te/2-ze,ie=z;return{[ke]:{[`${ke}-inner`]:{padding:0},[`${ke}-title`]:{margin:0,padding:`${oe}px ${ie}px ${se}px`,borderBottom:`${ze}px ${Ue} ${ue}`},[`${ke}-inner-content`]:{padding:`${E}px ${ie}px`}}}};jt.Z=(0,Re.Z)("Popover",De=>{const{colorBgElevated:ke,colorText:ze,wireframe:Ue}=De,ue=(0,We.TS)(De,{popoverPadding:12,popoverBg:ke,popoverColor:ze});return[xe(ue),Ke(ue),Ue&&Oe(ue),(0,he._y)(ue,"zoom-big")]},De=>({width:177,minWidth:177,zIndexPopup:De.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},12563:function(it,jt,ae){"use strict";ae.d(jt,{default:function(){return st}});var b=ae(59301),he=ae(99267),we=ae(92310),Be=ae.n(we),Re=ae(36785),We=ae(47729),xe=ae(14088),Ke=ae(36355),Oe=ae(17313),De=ae(37613),ke=ae(83116);const ze=Me=>{const{paddingXXS:Ye,lineWidth:Ge,tagPaddingHorizontal:$e,componentCls:be}=Me,vt=$e-Ge,ct=Ye-Ge;return{[be]:Object.assign(Object.assign({},(0,Oe.Wf)(Me)),{display:"inline-block",height:"auto",marginInlineEnd:Me.marginXS,paddingInline:vt,fontSize:Me.tagFontSize,lineHeight:Me.tagLineHeight,whiteSpace:"nowrap",background:Me.defaultBg,border:`${Me.lineWidth}px ${Me.lineType} ${Me.colorBorder}`,borderRadius:Me.borderRadiusSM,opacity:1,transition:`all ${Me.motionDurationMid}`,textAlign:"start",position:"relative",[`&${be}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Me.defaultColor},[`${be}-close-icon`]:{marginInlineStart:ct,color:Me.colorTextDescription,fontSize:Me.tagIconSize,cursor:"pointer",transition:`all ${Me.motionDurationMid}`,"&:hover":{color:Me.colorTextHeading}},[`&${be}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Me.iconCls}-close, ${Me.iconCls}-close:hover`]:{color:Me.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${be}-checkable-checked):hover`]:{color:Me.colorPrimary,backgroundColor:Me.colorFillSecondary},"&:active, &-checked":{color:Me.colorTextLightSolid},"&-checked":{backgroundColor:Me.colorPrimary,"&:hover":{backgroundColor:Me.colorPrimaryHover}},"&:active":{backgroundColor:Me.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Me.iconCls} + span, > span + ${Me.iconCls}`]:{marginInlineStart:vt}}),[`${be}-borderless`]:{borderColor:"transparent",background:Me.tagBorderlessBg}}},Ue=Me=>{const{lineWidth:Ye,fontSizeIcon:Ge}=Me,$e=Me.fontSizeSM,be=`${Me.lineHeightSM*$e}px`;return(0,De.TS)(Me,{tagFontSize:$e,tagLineHeight:be,tagIconSize:Ge-2*Ye,tagPaddingHorizontal:8,tagBorderlessBg:Me.colorFillTertiary})},ue=Me=>({defaultBg:Me.colorFillQuaternary,defaultColor:Me.colorText});var E=(0,ke.Z)("Tag",Me=>{const Ye=Ue(Me);return ze(Ye)},ue),a=function(Me,Ye){var Ge={};for(var $e in Me)Object.prototype.hasOwnProperty.call(Me,$e)&&Ye.indexOf($e)<0&&(Ge[$e]=Me[$e]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,$e=Object.getOwnPropertySymbols(Me);be<$e.length;be++)Ye.indexOf($e[be])<0&&Object.prototype.propertyIsEnumerable.call(Me,$e[be])&&(Ge[$e[be]]=Me[$e[be]]);return Ge},y=Me=>{const{prefixCls:Ye,style:Ge,className:$e,checked:be,onChange:vt,onClick:ct}=Me,bt=a(Me,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:At,tag:En}=b.useContext(Ke.E_),xn=Yt=>{vt==null||vt(!be),ct==null||ct(Yt)},Wt=At("tag",Ye),[Pt,Te]=E(Wt),et=Be()(Wt,`${Wt}-checkable`,{[`${Wt}-checkable-checked`]:be},En==null?void 0:En.className,$e,Te);return Pt(b.createElement("span",Object.assign({},bt,{style:Object.assign(Object.assign({},Ge),En==null?void 0:En.style),className:et,onClick:xn})))},z=ae(45157);const te=Me=>(0,z.Z)(Me,(Ye,Ge)=>{let{textColor:$e,lightBorderColor:be,lightColor:vt,darkColor:ct}=Ge;return{[`${Me.componentCls}-${Ye}`]:{color:$e,background:vt,borderColor:be,"&-inverse":{color:Me.colorTextLightSolid,background:ct,borderColor:ct},[`&${Me.componentCls}-borderless`]:{borderColor:"transparent"}}}});var oe=(0,ke.b)(["Tag","preset"],Me=>{const Ye=Ue(Me);return te(Ye)},ue);function se(Me){return typeof Me!="string"?Me:Me.charAt(0).toUpperCase()+Me.slice(1)}const ie=(Me,Ye,Ge)=>{const $e=se(Ge);return{[`${Me.componentCls}-${Ye}`]:{color:Me[`color${Ge}`],background:Me[`color${$e}Bg`],borderColor:Me[`color${$e}Border`],[`&${Me.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Ee=(0,ke.b)(["Tag","status"],Me=>{const Ye=Ue(Me);return[ie(Ye,"success","Success"),ie(Ye,"processing","Info"),ie(Ye,"error","Error"),ie(Ye,"warning","Warning")]},ue),Fe=function(Me,Ye){var Ge={};for(var $e in Me)Object.prototype.hasOwnProperty.call(Me,$e)&&Ye.indexOf($e)<0&&(Ge[$e]=Me[$e]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,$e=Object.getOwnPropertySymbols(Me);be<$e.length;be++)Ye.indexOf($e[be])<0&&Object.prototype.propertyIsEnumerable.call(Me,$e[be])&&(Ge[$e[be]]=Me[$e[be]]);return Ge};const Qe=(Me,Ye)=>{const{prefixCls:Ge,className:$e,rootClassName:be,style:vt,children:ct,icon:bt,color:At,onClose:En,closeIcon:xn,closable:Wt,bordered:Pt=!0}=Me,Te=Fe(Me,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:et,direction:Yt,tag:wn}=b.useContext(Ke.E_),[Lt,_t]=b.useState(!0);b.useEffect(()=>{"visible"in Te&&_t(Te.visible)},[Te.visible]);const Ce=(0,Re.o2)(At),ot=(0,Re.yT)(At),an=Ce||ot,tt=Object.assign(Object.assign({backgroundColor:At&&!an?At:void 0},wn==null?void 0:wn.style),vt),ht=et("tag",Ge),[Jn,dn]=E(ht),Qt=Be()(ht,wn==null?void 0:wn.className,{[`${ht}-${At}`]:an,[`${ht}-has-color`]:At&&!an,[`${ht}-hidden`]:!Lt,[`${ht}-rtl`]:Yt==="rtl",[`${ht}-borderless`]:!Pt},$e,be,dn),kt=Fa=>{Fa.stopPropagation(),En==null||En(Fa),!Fa.defaultPrevented&&_t(!1)},[,Wn]=(0,We.Z)(Wt,xn,Fa=>Fa===null?b.createElement(he.Z,{className:`${ht}-close-icon`,onClick:kt}):b.createElement("span",{className:`${ht}-close-icon`,onClick:kt},Fa),null,!1),ra=typeof Te.onClick=="function"||ct&&ct.type==="a",tn=bt||null,Ba=tn?b.createElement(b.Fragment,null,tn,ct&&b.createElement("span",null,ct)):ct,Ka=b.createElement("span",Object.assign({},Te,{ref:Ye,className:Qt,style:tt}),Ba,Wn,Ce&&b.createElement(oe,{key:"preset",prefixCls:ht}),ot&&b.createElement(Ee,{key:"status",prefixCls:ht}));return Jn(ra?b.createElement(xe.Z,{component:"Tag"},Ka):Ka)},Le=b.forwardRef(Qe);Le.CheckableTag=y;var st=Le},98228:function(it,jt,ae){"use strict";ae.d(jt,{default:function(){return Oo}});var b=ae(92310),he=ae.n(b),we=ae(54476),Be=ae(94480),Re=ae(33885),We=ae(42978),xe=ae(75931),Ke=ae(76190),Oe=ae(77861),De=ae(17115),ke=ae(90782),ze=ae(18929),Ue=ae(48736),ue=ae(59301),E=function(Ut){var Un=ue.useRef({valueLabels:new Map});return ue.useMemo(function(){var $n=Un.current.valueLabels,ba=new Map,Ze=Ut.map(function(Mt){var Xt,fn=Mt.value,Rt=(Xt=Mt.label)!==null&&Xt!==void 0?Xt:$n.get(fn);return ba.set(fn,Rt),(0,Re.Z)((0,Re.Z)({},Mt),{},{label:Rt})});return Un.current.valueLabels=ba,[Ze]},[Ut])},a=function(Ut,Un,$n,ba){return ue.useMemo(function(){var Ze=Ut.map(function(Rt){var Qn=Rt.value;return Qn}),Mt=Un.map(function(Rt){var Qn=Rt.value;return Qn}),Xt=Ze.filter(function(Rt){return!ba[Rt]});if($n){var fn=(0,ke.S)(Ze,!0,ba);Ze=fn.checkedKeys,Mt=fn.halfCheckedKeys}return[Array.from(new Set([].concat((0,Be.Z)(Xt),(0,Be.Z)(Ze)))),Mt]},[Ut,Un,$n,ba])},x=ae(71430),y=function(Ut,Un){return ue.useMemo(function(){var $n=(0,x.I8)(Ut,{fieldNames:Un,initWrapper:function(Ze){return(0,Re.Z)((0,Re.Z)({},Ze),{},{valueEntities:new Map})},processEntity:function(Ze,Mt){var Xt=Ze.node[Un.value];if(0)var fn;Mt.valueEntities.set(Xt,Ze)}});return $n},[Ut,Un])},z=ae(20068),te=ae(11592),oe=function(){return null},se=oe,ie=["children","value"];function Ee(Ut){return(0,te.Z)(Ut).map(function(Un){if(!ue.isValidElement(Un)||!Un.type)return null;var $n=Un,ba=$n.key,Ze=$n.props,Mt=Ze.children,Xt=Ze.value,fn=(0,xe.Z)(Ze,ie),Rt=(0,Re.Z)({key:ba,value:Xt},fn),Qn=Ee(Mt);return Qn.length&&(Rt.children=Qn),Rt}).filter(function(Un){return Un})}function Fe(Ut){if(!Ut)return Ut;var Un=(0,Re.Z)({},Ut);return"props"in Un||Object.defineProperty(Un,"props",{get:function(){return(0,Ue.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Un}}),Un}function Qe(Ut,Un,$n,ba,Ze,Mt){var Xt=null,fn=null;function Rt(){function Qn(Kn){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Kn.map(function(Xe,rn){var Cn="".concat(Je,"-").concat(rn),Nn=Xe[Mt.value],wa=$n.includes(Nn),Ea=Qn(Xe[Mt.children]||[],Cn,wa),ta=ue.createElement(se,Xe,Ea.map(function(Xn){return Xn.node}));if(Un===Nn&&(Xt=ta),wa){var ya={pos:Cn,node:ta,children:Ea};return nt||fn.push(ya),ya}return null}).filter(function(Xe){return Xe})}fn||(fn=[],Qn(ba),fn.sort(function(Kn,Je){var nt=Kn.node.props.value,Xe=Je.node.props.value,rn=$n.indexOf(nt),Cn=$n.indexOf(Xe);return rn-Cn}))}Object.defineProperty(Ut,"triggerNode",{get:function(){return(0,Ue.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Rt(),Xt}}),Object.defineProperty(Ut,"allCheckedNodes",{get:function(){return(0,Ue.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Rt(),Ze?fn:fn.map(function(Kn){var Je=Kn.node;return Je})}})}var Le=function(Ut,Un,$n){var ba=$n.treeNodeFilterProp,Ze=$n.filterTreeNode,Mt=$n.fieldNames,Xt=Mt.children;return ue.useMemo(function(){if(!Un||Ze===!1)return Ut;var fn;if(typeof Ze=="function")fn=Ze;else{var Rt=Un.toUpperCase();fn=function(Je,nt){var Xe=nt[ba];return String(Xe).toUpperCase().includes(Rt)}}function Qn(Kn){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Kn.reduce(function(nt,Xe){var rn=Xe[Xt],Cn=Je||fn(Un,Fe(Xe)),Nn=Qn(rn||[],Cn);return(Cn||Nn.length)&&nt.push((0,Re.Z)((0,Re.Z)({},Xe),{},(0,z.Z)({isLeaf:void 0},Xt,Nn))),nt},[])}return Qn(Ut)},[Ut,Un,Xt,ba,Ze])};function st(Ut){var Un=ue.useRef();Un.current=Ut;var $n=ue.useCallback(function(){return Un.current.apply(Un,arguments)},[]);return $n}function Me(Ut,Un){var $n=Un.id,ba=Un.pId,Ze=Un.rootPId,Mt={},Xt=[],fn=Ut.map(function(Rt){var Qn=(0,Re.Z)({},Rt),Kn=Qn[$n];return Mt[Kn]=Qn,Qn.key=Qn.key||Kn,Qn});return fn.forEach(function(Rt){var Qn=Rt[ba],Kn=Mt[Qn];Kn&&(Kn.children=Kn.children||[],Kn.children.push(Rt)),(Qn===Ze||!Kn&&Ze===null)&&Xt.push(Rt)}),Xt}function Ye(Ut,Un,$n){return ue.useMemo(function(){return Ut?$n?Me(Ut,(0,Re.Z)({id:"id",pId:"pId",rootPId:null},$n!==!0?$n:{})):Ut:Ee(Un)},[Un,$n,Ut])}var Ge=ue.createContext(null),$e=Ge,be=ae(10228),vt=ae(80547),ct=ae(60091),bt=ue.createContext(null),At=bt;function En(Ut){return Array.isArray(Ut)?Ut:Ut!==void 0?[Ut]:[]}function xn(Ut){var Un=Ut||{},$n=Un.label,ba=Un.value,Ze=Un.children,Mt=ba||"value";return{_title:$n?[$n]:["title","label"],value:Mt,key:Mt,children:Ze||"children"}}function Wt(Ut){return!Ut||Ut.disabled||Ut.disableCheckbox||Ut.checkable===!1}function Pt(Ut,Un){var $n=[];function ba(Ze){Ze.forEach(function(Mt){var Xt=Mt[Un.children];Xt&&($n.push(Mt[Un.value]),ba(Xt))})}return ba(Ut),$n}function Te(Ut){return Ut==null}var et={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Yt=function(Un,$n){var ba=(0,Oe.lk)(),Ze=ba.prefixCls,Mt=ba.multiple,Xt=ba.searchValue,fn=ba.toggleOpen,Rt=ba.open,Qn=ba.notFoundContent,Kn=ue.useContext(At),Je=Kn.virtual,nt=Kn.listHeight,Xe=Kn.listItemHeight,rn=Kn.treeData,Cn=Kn.fieldNames,Nn=Kn.onSelect,wa=Kn.dropdownMatchSelectWidth,Ea=Kn.treeExpandAction,ta=ue.useContext($e),ya=ta.checkable,Xn=ta.checkedKeys,zt=ta.halfCheckedKeys,ka=ta.treeExpandedKeys,pr=ta.treeDefaultExpandAll,ho=ta.treeDefaultExpandedKeys,qa=ta.onTreeExpand,Ht=ta.treeIcon,Qr=ta.showTreeIcon,Ua=ta.switcherIcon,Sr=ta.treeLine,lr=ta.treeNodeFilterProp,Gr=ta.loadData,Lr=ta.treeLoadedKeys,no=ta.treeMotion,Mr=ta.onTreeLoad,ca=ta.keyEntities,nn=ue.useRef(),gr=(0,vt.Z)(function(){return rn},[Rt,rn],function(hr,Kr){return Kr[0]&&hr[1]!==Kr[1]}),ga=ue.useState(null),ur=(0,We.Z)(ga,2),za=ur[0],vn=ur[1],na=ca[za],Na=ue.useMemo(function(){return ya?{checked:Xn,halfChecked:zt}:null},[ya,Xn,zt]);ue.useEffect(function(){if(Rt&&!Mt&&Xn.length){var hr;(hr=nn.current)===null||hr===void 0||hr.scrollTo({key:Xn[0]}),vn(Xn[0])}},[Rt]);var _n=String(Xt).toLowerCase(),sr=function(Kr){return _n?String(Kr[lr]).toLowerCase().includes(_n):!1},tr=ue.useState(ho),Ar=(0,We.Z)(tr,2),Ur=Ar[0],mr=Ar[1],Yo=ue.useState(null),Mo=(0,We.Z)(Yo,2),Ei=Mo[0],xr=Mo[1],Nr=ue.useMemo(function(){return ka?(0,Be.Z)(ka):Xt?Ei:Ur},[Ur,Ei,ka,Xt]);ue.useEffect(function(){Xt&&xr(Pt(rn,Cn))},[Xt]);var Eo=function(Kr){mr(Kr),xr(Kr),qa&&qa(Kr)},Ja=function(Kr){Kr.preventDefault()},Hr=function(Kr,xt){var Ft=xt.node;ya&&Wt(Ft)||(Nn(Ft.key,{selected:!Xn.includes(Ft.key)}),Mt||fn(!1))};if(ue.useImperativeHandle($n,function(){var hr;return{scrollTo:(hr=nn.current)===null||hr===void 0?void 0:hr.scrollTo,onKeyDown:function(xt){var Ft,Et=xt.which;switch(Et){case be.Z.UP:case be.Z.DOWN:case be.Z.LEFT:case be.Z.RIGHT:(Ft=nn.current)===null||Ft===void 0||Ft.onKeyDown(xt);break;case be.Z.ENTER:{if(na){var Mn=(na==null?void 0:na.node)||{},Za=Mn.selectable,rr=Mn.value;Za!==!1&&Hr(null,{node:{key:za},selected:!Xn.includes(rr)})}break}case be.Z.ESC:fn(!1)}},onKeyUp:function(){}}}),gr.length===0)return ue.createElement("div",{role:"listbox",className:"".concat(Ze,"-empty"),onMouseDown:Ja},Qn);var Yr={fieldNames:Cn};return Lr&&(Yr.loadedKeys=Lr),Nr&&(Yr.expandedKeys=Nr),ue.createElement("div",{onMouseDown:Ja},na&&Rt&&ue.createElement("span",{style:et,"aria-live":"assertive"},na.node.value),ue.createElement(ct.Z,(0,we.Z)({ref:nn,focusable:!1,prefixCls:"".concat(Ze,"-tree"),treeData:gr,height:nt,itemHeight:Xe,virtual:Je!==!1&&wa!==!1,multiple:Mt,icon:Ht,showIcon:Qr,switcherIcon:Ua,showLine:Sr,loadData:Xt?null:Gr,motion:no,activeKey:za,checkable:ya,checkStrictly:!0,checkedKeys:Na,selectedKeys:ya?[]:Xn,defaultExpandAll:pr},Yr,{onActiveChange:vn,onSelect:Hr,onCheck:Hr,onExpand:Eo,onLoad:Mr,filterTreeNode:sr,expandAction:Ea})))},wn=ue.forwardRef(Yt);wn.displayName="OptionList";var Lt=wn,_t="SHOW_ALL",Ce="SHOW_PARENT",ot="SHOW_CHILD";function an(Ut,Un,$n,ba){var Ze=new Set(Ut);return Un===ot?Ut.filter(function(Mt){var Xt=$n[Mt];return!(Xt&&Xt.children&&Xt.children.some(function(fn){var Rt=fn.node;return Ze.has(Rt[ba.value])})&&Xt.children.every(function(fn){var Rt=fn.node;return Wt(Rt)||Ze.has(Rt[ba.value])}))}):Un===Ce?Ut.filter(function(Mt){var Xt=$n[Mt],fn=Xt?Xt.parent:null;return!(fn&&!Wt(fn.node)&&Ze.has(fn.key))}):Ut}function tt(Ut){var Un=Ut.searchPlaceholder,$n=Ut.treeCheckStrictly,ba=Ut.treeCheckable,Ze=Ut.labelInValue,Mt=Ut.value,Xt=Ut.multiple;warning(!Un,"`searchPlaceholder` has been removed."),$n&&Ze===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Ze||$n)&&warning(toArray(Mt).every(function(fn){return fn&&_typeof(fn)==="object"&&"value"in fn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),$n||Xt||ba?warning(!Mt||Array.isArray(Mt),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(Mt),"`value` should not be array when `TreeSelect` is single mode.")}var ht=null,Jn=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function dn(Ut){return!Ut||(0,Ke.Z)(Ut)!=="object"}var Qt=ue.forwardRef(function(Ut,Un){var $n=Ut.id,ba=Ut.prefixCls,Ze=ba===void 0?"rc-tree-select":ba,Mt=Ut.value,Xt=Ut.defaultValue,fn=Ut.onChange,Rt=Ut.onSelect,Qn=Ut.onDeselect,Kn=Ut.searchValue,Je=Ut.inputValue,nt=Ut.onSearch,Xe=Ut.autoClearSearchValue,rn=Xe===void 0?!0:Xe,Cn=Ut.filterTreeNode,Nn=Ut.treeNodeFilterProp,wa=Nn===void 0?"value":Nn,Ea=Ut.showCheckedStrategy,ta=Ut.treeNodeLabelProp,ya=Ut.multiple,Xn=Ut.treeCheckable,zt=Ut.treeCheckStrictly,ka=Ut.labelInValue,pr=Ut.fieldNames,ho=Ut.treeDataSimpleMode,qa=Ut.treeData,Ht=Ut.children,Qr=Ut.loadData,Ua=Ut.treeLoadedKeys,Sr=Ut.onTreeLoad,lr=Ut.treeDefaultExpandAll,Gr=Ut.treeExpandedKeys,Lr=Ut.treeDefaultExpandedKeys,no=Ut.onTreeExpand,Mr=Ut.treeExpandAction,ca=Ut.virtual,nn=Ut.listHeight,gr=nn===void 0?200:nn,ga=Ut.listItemHeight,ur=ga===void 0?20:ga,za=Ut.onDropdownVisibleChange,vn=Ut.dropdownMatchSelectWidth,na=vn===void 0?!0:vn,Na=Ut.treeLine,_n=Ut.treeIcon,sr=Ut.showTreeIcon,tr=Ut.switcherIcon,Ar=Ut.treeMotion,Ur=(0,xe.Z)(Ut,Jn),mr=(0,De.ZP)($n),Yo=Xn&&!zt,Mo=Xn||zt,Ei=zt||ka,xr=Mo||ya,Nr=(0,ze.Z)(Xt,{value:Mt}),Eo=(0,We.Z)(Nr,2),Ja=Eo[0],Hr=Eo[1],Yr=ue.useMemo(function(){return Xn?Ea||ot:_t},[Ea,Xn]),hr=ue.useMemo(function(){return xn(pr)},[JSON.stringify(pr)]),Kr=(0,ze.Z)("",{value:Kn!==void 0?Kn:Je,postState:function(va){return va||""}}),xt=(0,We.Z)(Kr,2),Ft=xt[0],Et=xt[1],Mn=function(va){Et(va),nt==null||nt(va)},Za=Ye(qa,Ht,ho),rr=y(Za,hr),Pn=rr.keyEntities,$a=rr.valueEntities,Xa=ue.useCallback(function(ma){var va=[],or=[];return ma.forEach(function(Er){$a.has(Er)?or.push(Er):va.push(Er)}),{missingRawValues:va,existRawValues:or}},[$a]),ao=Le(Za,Ft,{fieldNames:hr,treeNodeFilterProp:wa,filterTreeNode:Cn}),dr=ue.useCallback(function(ma){if(ma){if(ta)return ma[ta];for(var va=hr._title,or=0;or{const{componentCls:Un,treePrefixCls:$n,colorBgElevated:ba}=Ut,Ze=`.${$n}`;return[{[`${Un}-dropdown`]:[{padding:`${Ut.paddingXS}px ${Ut.paddingXS/2}px`},(0,ja.Yk)($n,(0,St.TS)(Ut,{colorBgContainer:ba})),{[Ze]:{borderRadius:0,[`${Ze}-list-holder-inner`]:{alignItems:"stretch",[`${Ze}-treenode`]:{[`${Ze}-node-content-wrapper`]:{flex:"auto"}}}}},(0,on.C2)(`${$n}-checkbox`,Ut),{"&-rtl":{direction:"rtl",[`${Ze}-switcher${Ze}-switcher_close`]:{[`${Ze}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Wa(Ut,Un){return(0,Tt.Z)("TreeSelect",$n=>{const ba=(0,St.TS)($n,{treePrefixCls:Un});return[Ca(ba)]},ja.TM)(Ut)}var Da=function(Ut,Un){var $n={};for(var ba in Ut)Object.prototype.hasOwnProperty.call(Ut,ba)&&Un.indexOf(ba)<0&&($n[ba]=Ut[ba]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ba=Object.getOwnPropertySymbols(Ut);Ze{var $n,{prefixCls:ba,size:Ze,disabled:Mt,bordered:Xt=!0,className:fn,rootClassName:Rt,treeCheckable:Qn,multiple:Kn,listHeight:Je=256,listItemHeight:nt=26,placement:Xe,notFoundContent:rn,switcherIcon:Cn,treeLine:Nn,getPopupContainer:wa,popupClassName:Ea,dropdownClassName:ta,treeIcon:ya=!1,transitionName:Xn,choiceTransitionName:zt="",status:ka,treeExpandAction:pr,builtinPlacements:ho,dropdownMatchSelectWidth:qa,popupMatchSelectWidth:Ht,allowClear:Qr}=Ut,Ua=Da(Ut,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:Sr,getPrefixCls:lr,renderEmpty:Gr,direction:Lr,virtual:no,popupMatchSelectWidth:Mr,popupOverflow:ca}=ue.useContext(jn.E_),nn=lr(),gr=lr("select",ba),ga=lr("select-tree",ba),ur=lr("tree-select",ba),{compactSize:za,compactItemClassnames:vn}=(0,_a.ri)(gr,Lr),[na,Na]=(0,Zn.Z)(gr),[_n]=Wa(ur,ga),sr=he()(Ea||ta,`${ur}-dropdown`,{[`${ur}-dropdown-rtl`]:Lr==="rtl"},Rt,Na),tr=!!(Qn||Kn),Ar=(0,Aa.Z)(Ua.suffixIcon,Ua.showArrow),Ur=($n=Ht!=null?Ht:qa)!==null&&$n!==void 0?$n:Mr,{status:mr,hasFeedback:Yo,isFormItemInput:Mo,feedbackIcon:Ei}=ue.useContext(oa.aM),xr=(0,Fa.F)(mr,ka),{suffixIcon:Nr,removeIcon:Eo,clearIcon:Ja}=(0,xa.Z)(Object.assign(Object.assign({},Ua),{multiple:tr,showSuffixIcon:Ar,hasFeedback:Yo,feedbackIcon:Ei,prefixCls:gr,componentName:"TreeSelect"})),Hr=Qr===!0?{clearIcon:Ja}:Qr;let Yr;rn!==void 0?Yr=rn:Yr=(Gr==null?void 0:Gr("Select"))||ue.createElement(Pa.Z,{componentName:"Select"});const hr=(0,tn.Z)(Ua,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),Kr=ue.useMemo(()=>Xe!==void 0?Xe:Lr==="rtl"?"bottomRight":"bottomLeft",[Xe,Lr]),xt=(0,da.Z)(ho,ca),Ft=(0,fr.Z)($a=>{var Xa;return(Xa=Ze!=null?Ze:za)!==null&&Xa!==void 0?Xa:$a}),Et=ue.useContext(Ha.Z),Mn=Mt!=null?Mt:Et,Za=he()(!ba&&ur,{[`${gr}-lg`]:Ft==="large",[`${gr}-sm`]:Ft==="small",[`${gr}-rtl`]:Lr==="rtl",[`${gr}-borderless`]:!Xt,[`${gr}-in-form-item`]:Mo},(0,Fa.Z)(gr,xr,Yo),vn,fn,Rt,Na),rr=$a=>ue.createElement(Sn.Z,{prefixCls:ga,switcherIcon:Cn,treeNodeProps:$a,showLine:Nn}),Pn=ue.createElement(ra,Object.assign({virtual:no,disabled:Mn},hr,{dropdownMatchSelectWidth:Ur,builtinPlacements:xt,ref:Un,prefixCls:gr,className:Za,listHeight:Je,listItemHeight:nt,treeCheckable:Qn&&ue.createElement("span",{className:`${gr}-tree-checkbox-inner`}),treeLine:!!Nn,suffixIcon:Nr,multiple:tr,placement:Kr,removeIcon:Eo,allowClear:Hr,switcherIcon:rr,showTreeIcon:ya,notFoundContent:Yr,getPopupContainer:wa||Sr,treeMotion:null,dropdownClassName:sr,choiceTransitionName:(0,Ka.m)(nn,"",zt),transitionName:(0,Ka.m)(nn,"slide-up",Xn),treeExpandAction:pr}));return na(_n(Pn))},ar=ue.forwardRef(Ta),Or=(0,Ba.Z)(ar);ar.TreeNode=se,ar.SHOW_ALL=_t,ar.SHOW_PARENT=Ce,ar.SHOW_CHILD=ot,ar._InternalPanelDoNotUseOrYouWillBeFired=Or;var Oo=ar},24334:function(it,jt,ae){var b,he;(function(we,Be){it.exports=Be(we)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ae.g!="undefined"?ae.g:this,function(we){"use strict";we=we||{};var Be=we.Base64,Re="2.6.4",We="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xe=function(Ge){for(var $e={},be=0,vt=Ge.length;be>>6)+Ke(128|$e&63):Ke(224|$e>>>12&15)+Ke(128|$e>>>6&63)+Ke(128|$e&63)}else{var $e=65536+(Ge.charCodeAt(0)-55296)*1024+(Ge.charCodeAt(1)-56320);return Ke(240|$e>>>18&7)+Ke(128|$e>>>12&63)+Ke(128|$e>>>6&63)+Ke(128|$e&63)}},De=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ke=function(Ge){return Ge.replace(De,Oe)},ze=function(Ge){var $e=[0,2,1][Ge.length%3],be=Ge.charCodeAt(0)<<16|(Ge.length>1?Ge.charCodeAt(1):0)<<8|(Ge.length>2?Ge.charCodeAt(2):0),vt=[We.charAt(be>>>18),We.charAt(be>>>12&63),$e>=2?"=":We.charAt(be>>>6&63),$e>=1?"=":We.charAt(be&63)];return vt.join("")},Ue=we.btoa&&typeof we.btoa=="function"?function(Ge){return we.btoa(Ge)}:function(Ge){if(Ge.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ge.replace(/[\s\S]{1,3}/g,ze)},ue=function(Ge){return Ue(ke(String(Ge)))},E=function(Ge){return Ge.replace(/[+\/]/g,function($e){return $e=="+"?"-":"_"}).replace(/=/g,"")},a=function(Ge,$e){return $e?E(ue(Ge)):ue(Ge)},x=function(Ge){return a(Ge,!0)},y;we.Uint8Array&&(y=function(Ge,$e){for(var be="",vt=0,ct=Ge.length;vt>>18)+We.charAt(xn>>>12&63)+(typeof At!="undefined"?We.charAt(xn>>>6&63):"=")+(typeof En!="undefined"?We.charAt(xn&63):"=")}return $e?E(be):be});var z=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,te=function(Ge){switch(Ge.length){case 4:var $e=(7&Ge.charCodeAt(0))<<18|(63&Ge.charCodeAt(1))<<12|(63&Ge.charCodeAt(2))<<6|63&Ge.charCodeAt(3),be=$e-65536;return Ke((be>>>10)+55296)+Ke((be&1023)+56320);case 3:return Ke((15&Ge.charCodeAt(0))<<12|(63&Ge.charCodeAt(1))<<6|63&Ge.charCodeAt(2));default:return Ke((31&Ge.charCodeAt(0))<<6|63&Ge.charCodeAt(1))}},oe=function(Ge){return Ge.replace(z,te)},se=function(Ge){var $e=Ge.length,be=$e%4,vt=($e>0?xe[Ge.charAt(0)]<<18:0)|($e>1?xe[Ge.charAt(1)]<<12:0)|($e>2?xe[Ge.charAt(2)]<<6:0)|($e>3?xe[Ge.charAt(3)]:0),ct=[Ke(vt>>>16),Ke(vt>>>8&255),Ke(vt&255)];return ct.length-=[0,0,2,1][be],ct.join("")},ie=we.atob&&typeof we.atob=="function"?function(Ge){return we.atob(Ge)}:function(Ge){return Ge.replace(/\S{1,4}/g,se)},Ee=function(Ge){return ie(String(Ge).replace(/[^A-Za-z0-9\+\/]/g,""))},Fe=function(Ge){return oe(ie(Ge))},Qe=function(Ge){return String(Ge).replace(/[-_]/g,function($e){return $e=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Le=function(Ge){return Fe(Qe(Ge))},st;we.Uint8Array&&(st=function(Ge){return Uint8Array.from(Ee(Qe(Ge)),function($e){return $e.charCodeAt(0)})});var Me=function(){var Ge=we.Base64;return we.Base64=Be,Ge};if(we.Base64={VERSION:Re,atob:Ee,btoa:Ue,fromBase64:Le,toBase64:a,utob:ke,encode:a,encodeURI:x,btou:oe,decode:Le,noConflict:Me,fromUint8Array:y,toUint8Array:st},typeof Object.defineProperty=="function"){var Ye=function(Ge){return{value:Ge,enumerable:!1,writable:!0,configurable:!0}};we.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ye(function(){return Le(this)})),Object.defineProperty(String.prototype,"toBase64",Ye(function(Ge){return a(this,Ge)})),Object.defineProperty(String.prototype,"toBase64URI",Ye(function(){return a(this,!0)}))}}return we.Meteor&&(Base64=we.Base64),it.exports?it.exports.Base64=we.Base64:(b=[],he=function(){return we.Base64}.apply(jt,b),he!==void 0&&(it.exports=he)),{Base64:we.Base64}})},11414:function(it,jt,ae){"use strict";ae.d(jt,{Z5:function(){return Yl},_l:function(){return zd},bK:function(){return td}});var b=ae(59301),he=ae(18773);function we(ee,ne){ee.prototype=Object.create(ne.prototype),ee.prototype.constructor=ee,(0,he.Z)(ee,ne)}var Be=ae(54476),Re=ae(59781),We=b.createContext(null),xe=null;function Ke(ee){ee()}var Oe=Ke,De=function(ne){return Oe=ne},ke=function(){return Oe};function ze(){var ee=ke(),ne=null,re=null;return{clear:function(){ne=null,re=null},notify:function(){ee(function(){for(var ve=ne;ve;)ve.callback(),ve=ve.next})},get:function(){for(var ve=[],pe=ne;pe;)ve.push(pe),pe=pe.next;return ve},subscribe:function(ve){var pe=!0,Ae=re={callback:ve,next:null,prev:re};return Ae.prev?Ae.prev.next=Ae:ne=Ae,function(){!pe||ne===null||(pe=!1,Ae.next?Ae.next.prev=Ae.prev:re=Ae.prev,Ae.prev?Ae.prev.next=Ae.next:ne=Ae.next)}}}}var Ue={notify:function(){},get:function(){return[]}};function ue(ee,ne){var re,de=Ue;function ve(He){return je(),de.subscribe(He)}function pe(){de.notify()}function Ae(){_e.onStateChange&&_e.onStateChange()}function ye(){return!!re}function je(){re||(re=ne?ne.addNestedSub(Ae):ee.subscribe(Ae),de=ze())}function qe(){re&&(re(),re=void 0,de.clear(),de=Ue)}var _e={addNestedSub:ve,notifyNestedSubs:pe,handleChangeWrapper:Ae,isSubscribed:ye,trySubscribe:je,tryUnsubscribe:qe,getListeners:function(){return de}};return _e}var E=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect;function a(ee){var ne=ee.store,re=ee.context,de=ee.children,ve=(0,b.useMemo)(function(){var ye=ue(ne);return{store:ne,subscription:ye}},[ne]),pe=(0,b.useMemo)(function(){return ne.getState()},[ne]);E(function(){var ye=ve.subscription;return ye.onStateChange=ye.notifyNestedSubs,ye.trySubscribe(),pe!==ne.getState()&&ye.notifyNestedSubs(),function(){ye.tryUnsubscribe(),ye.onStateChange=null}},[ve,pe]);var Ae=re||We;return b.createElement(Ae.Provider,{value:ve},de)}var x=a,y=ae(85377),z=ae(94266),te=ae.n(z),oe=ae(53410),se=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],ie=["reactReduxForwardedRef"],Ee=[],Fe=[null,null],Qe=function(ne){try{return JSON.stringify(ne)}catch(re){return String(ne)}};function Le(ee,ne){var re=ee[1];return[ne.payload,re+1]}function st(ee,ne,re){E(function(){return ee.apply(void 0,ne)},re)}function Me(ee,ne,re,de,ve,pe,Ae){ee.current=de,ne.current=ve,re.current=!1,pe.current&&(pe.current=null,Ae())}function Ye(ee,ne,re,de,ve,pe,Ae,ye,je,qe){if(ee){var _e=!1,He=null,Ve=function(){if(!_e){var aa=ne.getState(),fa,Sa;try{fa=de(aa,ve.current)}catch(Ya){Sa=Ya,He=Ya}Sa||(He=null),fa===pe.current?Ae.current||je():(pe.current=fa,ye.current=fa,Ae.current=!0,qe({type:"STORE_UPDATED",payload:{error:Sa}}))}};re.onStateChange=Ve,re.trySubscribe(),Ve();var lt=function(){if(_e=!0,re.tryUnsubscribe(),re.onStateChange=null,He)throw He};return lt}}var Ge=function(){return[null,0]};function $e(ee,ne){ne===void 0&&(ne={});var re=ne,de=re.getDisplayName,ve=de===void 0?function(io){return"ConnectAdvanced("+io+")"}:de,pe=re.methodName,Ae=pe===void 0?"connectAdvanced":pe,ye=re.renderCountProp,je=ye===void 0?void 0:ye,qe=re.shouldHandleStateChanges,_e=qe===void 0?!0:qe,He=re.storeKey,Ve=He===void 0?"store":He,lt=re.withRef,Gt=lt===void 0?!1:lt,aa=re.forwardRef,fa=aa===void 0?!1:aa,Sa=re.context,Ya=Sa===void 0?We:Sa,ir=(0,y.Z)(re,se);if(0)var vr;var po=Ya;return function(Io){var Mi=Io.displayName||Io.name||"Component",Vo=ve(Mi),Ri=(0,Be.Z)({},ir,{getDisplayName:ve,methodName:Ae,renderCountProp:je,shouldHandleStateChanges:_e,storeKey:Ve,displayName:Vo,wrappedComponentName:Mi,WrappedComponent:Io}),ul=ir.pure;function El(Sl){return ee(Sl.dispatch,Ri)}var pu=ul?b.useMemo:function(Sl){return Sl()};function gu(Sl){var Du=(0,b.useMemo)(function(){var Fs=Sl.reactReduxForwardedRef,Ws=(0,y.Z)(Sl,ie);return[Sl.context,Fs,Ws]},[Sl]),Eu=Du[0],As=Du[1],Vu=Du[2],Lu=(0,b.useMemo)(function(){return Eu&&Eu.Consumer&&(0,oe.isContextConsumer)(b.createElement(Eu.Consumer,null))?Eu:po},[Eu,po]),Su=(0,b.useContext)(Lu),Wu=!!Sl.store&&!!Sl.store.getState&&!!Sl.store.dispatch,xs=!!Su&&!!Su.store,Pu=Wu?Sl.store:Su.store,ys=(0,b.useMemo)(function(){return El(Pu)},[Pu]),ws=(0,b.useMemo)(function(){if(!_e)return Fe;var Fs=ue(Pu,Wu?null:Su.subscription),Ws=Fs.notifyNestedSubs.bind(Fs);return[Fs,Ws]},[Pu,Wu,Su]),as=ws[0],Ds=ws[1],Ls=(0,b.useMemo)(function(){return Wu?Su:(0,Be.Z)({},Su,{subscription:as})},[Wu,Su,as]),nd=(0,b.useReducer)(Le,Ee,Ge),Kd=nd[0],Ns=Kd[0],_d=nd[1];if(Ns&&Ns.error)throw Ns.error;var ad=(0,b.useRef)(),Hs=(0,b.useRef)(Vu),Is=(0,b.useRef)(),rd=(0,b.useRef)(!1),zs=pu(function(){return Is.current&&Vu===Hs.current?Is.current:ys(Pu.getState(),Vu)},[Pu,Ns,Vu]);st(Me,[Hs,ad,rd,Vu,zs,Is,Ds]),st(Ye,[_e,Pu,as,ys,Hs,ad,rd,Is,Ds,_d],[Pu,as,ys]);var Vs=(0,b.useMemo)(function(){return b.createElement(Io,(0,Be.Z)({},zs,{ref:As}))},[As,Io,zs]),Jd=(0,b.useMemo)(function(){return _e?b.createElement(Lu.Provider,{value:Ls},Vs):Vs},[Lu,Vs,Ls]);return Jd}var Kl=ul?b.memo(gu):gu;if(Kl.WrappedComponent=Io,Kl.displayName=gu.displayName=Vo,fa){var hu=b.forwardRef(function(Du,Eu){return b.createElement(Kl,(0,Be.Z)({},Du,{reactReduxForwardedRef:Eu}))});return hu.displayName=Vo,hu.WrappedComponent=Io,te()(hu,Io)}return te()(Kl,Io)}}function be(ee,ne){return ee===ne?ee!==0||ne!==0||1/ee===1/ne:ee!==ee&&ne!==ne}function vt(ee,ne){if(be(ee,ne))return!0;if(typeof ee!="object"||ee===null||typeof ne!="object"||ne===null)return!1;var re=Object.keys(ee),de=Object.keys(ne);if(re.length!==de.length)return!1;for(var ve=0;ve=0;de--){var ve=ne[de](ee);if(ve)return ve}return function(pe,Ae){throw new Error("Invalid value of type "+typeof ee+" for "+re+" argument when connecting component "+Ae.wrappedComponentName+".")}}function Wn(ee,ne){return ee===ne}function ra(ee){var ne=ee===void 0?{}:ee,re=ne.connectHOC,de=re===void 0?$e:re,ve=ne.mapStateToPropsFactories,pe=ve===void 0?wn:ve,Ae=ne.mapDispatchToPropsFactories,ye=Ae===void 0?Te:Ae,je=ne.mergePropsFactories,qe=je===void 0?an:je,_e=ne.selectorFactory,He=_e===void 0?dn:_e;return function(lt,Gt,aa,fa){fa===void 0&&(fa={});var Sa=fa,Ya=Sa.pure,ir=Ya===void 0?!0:Ya,vr=Sa.areStatesEqual,po=vr===void 0?Wn:vr,io=Sa.areOwnPropsEqual,Io=io===void 0?vt:io,Mi=Sa.areStatePropsEqual,Vo=Mi===void 0?vt:Mi,Ri=Sa.areMergedPropsEqual,ul=Ri===void 0?vt:Ri,El=(0,y.Z)(Sa,Qt),pu=kt(lt,pe,"mapStateToProps"),gu=kt(Gt,ye,"mapDispatchToProps"),Kl=kt(aa,qe,"mergeProps");return de(He,(0,Be.Z)({methodName:"connect",getDisplayName:function(Sl){return"Connect("+Sl+")"},shouldHandleStateChanges:!!lt,initMapStateToProps:pu,initMapDispatchToProps:gu,initMergeProps:Kl,pure:ir,areStatesEqual:po,areOwnPropsEqual:Io,areStatePropsEqual:Vo,areMergedPropsEqual:ul},El))}}var tn=ra();function Ba(){var ee=useContext(ReactReduxContext);return ee}function Ka(ee){ee===void 0&&(ee=ReactReduxContext);var ne=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(){var de=ne(),ve=de.store;return ve}}var Fa=null;function jn(ee){ee===void 0&&(ee=ReactReduxContext);var ne=ee===ReactReduxContext?useDefaultStore:createStoreHook(ee);return function(){var de=ne();return de.dispatch}}var Ha=null,Pa=function(ne,re){return ne===re};function fr(ee,ne,re,de){var ve=useReducer(function(Gt){return Gt+1},0),pe=ve[1],Ae=useMemo(function(){return createSubscription(re,de)},[re,de]),ye=useRef(),je=useRef(),qe=useRef(),_e=useRef(),He=re.getState(),Ve;try{if(ee!==je.current||He!==qe.current||ye.current){var lt=ee(He);_e.current===void 0||!ne(lt,_e.current)?Ve=lt:Ve=_e.current}else Ve=_e.current}catch(Gt){throw ye.current&&(Gt.message+=` The error may be correlated with this previous error: `+ye.current.stack+` -`),Zt}return useIsomorphicLayoutEffect(function(){je.current=ee,qe.current=He,_e.current=Ve,ye.current=void 0}),useIsomorphicLayoutEffect(function(){function Zt(){try{var aa=re.getState();if(aa===qe.current)return;var fa=je.current(aa);if(ne(fa,_e.current))return;_e.current=fa,qe.current=aa}catch(Sa){ye.current=Sa}pe()}return Ae.onStateChange=Zt,Ae.trySubscribe(),Zt(),function(){return Ae.tryUnsubscribe()}},[re,Ae]),Ve}function oa(ee){ee===void 0&&(ee=ReactReduxContext);var ne=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(de,ve){ve===void 0&&(ve=Pa);var pe=ne(),Ae=pe.store,ye=pe.subscription,je=fr(de,ve,Ae,ye);return useDebugValue(je),je}}var Zn=null,da=ae(4676);De(da.unstable_batchedUpdates);function Aa(ee,ne){if(ee.length!==ne.length)return!1;for(var re=0;re");return de.callbacks},de.setCallbacks=function(ye){de.callbacks=ye},de}var re=ne.prototype;return re.componentDidMount=function(){this.unbind=ka(window,[{eventName:"error",fn:this.onWindowError}])},re.componentWillUnmount=function(){this.unbind()},re.componentDidCatch=function(ve){if(ve instanceof qa){this.setState({});return}throw ve},re.render=function(){return this.props.children(this.setCallbacks)},ne}(b.Component),Ua=` +`)},Nn=function(ne){return[Cn(ne),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},wa="__react-beautiful-dnd-disable-dev-warnings";function Ea(ee,ne){var re;Je||typeof window!="undefined"&&window[wa]||(re=console)[ee].apply(re,Nn(ne))}var ta=Ea.bind(null,"warn"),ya=Ea.bind(null,"error");function Xn(){}function zt(ee,ne){return(0,Be.Z)({},ee,{},ne)}function ka(ee,ne,re){var de=ne.map(function(ve){var pe=zt(re,ve.options);return ee.addEventListener(ve.eventName,ve.fn,pe),function(){ee.removeEventListener(ve.eventName,ve.fn,pe)}});return function(){de.forEach(function(pe){pe()})}}var pr=!0,ho="Invariant failed";function qa(ee){this.message=ee}qa.prototype.toString=function(){return this.message};function Ht(ee,ne){if(!ee)throw pr?new qa(ho):new qa(ho+": "+(ne||""))}var Qr=function(ee){we(ne,ee);function ne(){for(var de,ve=arguments.length,pe=new Array(ve),Ae=0;Ae");return de.callbacks},de.setCallbacks=function(ye){de.callbacks=ye},de}var re=ne.prototype;return re.componentDidMount=function(){this.unbind=ka(window,[{eventName:"error",fn:this.onWindowError}])},re.componentWillUnmount=function(){this.unbind()},re.componentDidCatch=function(ve){if(ve instanceof qa){this.setState({});return}throw ve},re.render=function(){return this.props.children(this.setCallbacks)},ne}(b.Component),Ua=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key @@ -368,16 +368,16 @@ The error may be correlated with this previous error: `:` The item has been dropped while not over a drop area. `+Mr(ne.source)+` - `},tn={dragHandleUsageInstructions:Ua,onDragStart:lr,onDragUpdate:no,onDragEnd:ca},gr={x:0,y:0},ga=function(ne,re){return{x:ne.x+re.x,y:ne.y+re.y}},ur=function(ne,re){return{x:ne.x-re.x,y:ne.y-re.y}},za=function(ne,re){return ne.x===re.x&&ne.y===re.y},vn=function(ne){return{x:ne.x!==0?-ne.x:0,y:ne.y!==0?-ne.y:0}},na=function(ne,re,de){var ve;return de===void 0&&(de=0),ve={},ve[ne]=re,ve[ne==="x"?"y":"x"]=de,ve},Na=function(ne,re){return Math.sqrt(Math.pow(re.x-ne.x,2)+Math.pow(re.y-ne.y,2))},_n=function(ne,re){return Math.min.apply(Math,re.map(function(de){return Na(ne,de)}))},sr=function(ne){return function(re){return{x:ne(re.x),y:ne(re.y)}}},tr=function(ee,ne){var re=Ca({top:Math.max(ne.top,ee.top),right:Math.min(ne.right,ee.right),bottom:Math.min(ne.bottom,ee.bottom),left:Math.max(ne.left,ee.left)});return re.width<=0||re.height<=0?null:re},Ar=function(ne,re){return{top:ne.top+re.y,left:ne.left+re.x,bottom:ne.bottom+re.y,right:ne.right+re.x}},Ur=function(ne){return[{x:ne.left,y:ne.top},{x:ne.right,y:ne.top},{x:ne.left,y:ne.bottom},{x:ne.right,y:ne.bottom}]},mr={top:0,right:0,bottom:0,left:0},Yo=function(ne,re){return re?Ar(ne,re.scroll.diff.displacement):ne},Mo=function(ne,re,de){if(de&&de.increasedBy){var ve;return(0,xe.Z)({},ne,(ve={},ve[re.end]=ne[re.end]+de.increasedBy[re.line],ve))}return ne},Ei=function(ne,re){return re&&re.shouldClipSubject?tr(re.pageMarginBox,ne):Ca(ne)},xr=function(ee){var ne=ee.page,re=ee.withPlaceholder,de=ee.axis,ve=ee.frame,pe=Yo(ne.marginBox,ve),Ae=Mo(pe,de,re),ye=Ei(Ae,ve);return{page:ne,withPlaceholder:re,active:ye}},Nr=function(ee,ne){ee.frame||Gt(!1);var re=ee.frame,de=ur(ne,re.scroll.initial),ve=vn(de),pe=(0,xe.Z)({},re,{scroll:{initial:re.scroll.initial,current:ne,diff:{value:de,displacement:ve},max:re.scroll.max}}),Ae=xr({page:ee.subject.page,withPlaceholder:ee.subject.withPlaceholder,axis:ee.axis,frame:pe}),ye=(0,xe.Z)({},ee,{frame:pe,subject:Ae});return ye};function Eo(ee){return Number.isInteger?Number.isInteger(ee):typeof ee=="number"&&isFinite(ee)&&Math.floor(ee)===ee}function Ja(ee){return Object.values?Object.values(ee):Object.keys(ee).map(function(ne){return ee[ne]})}function Hr(ee,ne){if(ee.findIndex)return ee.findIndex(ne);for(var re=0;reee.bottom,qe=de.leftee.right,_e=je&&qe;if(_e)return!0;var He=je&&Ae||qe&&pe;return He}},ri=function(ee){var ne=wr(ee.top,ee.bottom),re=wr(ee.left,ee.right);return function(de){var ve=ne(de.top)&&ne(de.bottom)&&re(de.left)&&re(de.right);return ve}},Rr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},So={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},jo=function(ee){return function(ne){var re=wr(ne.top,ne.bottom),de=wr(ne.left,ne.right);return function(ve){return ee===Rr?re(ve.top)&&re(ve.bottom):de(ve.left)&&de(ve.right)}}},ia=function(ne,re){var de=re.frame?re.frame.scroll.diff.displacement:gr;return Ar(ne,de)},Dn=function(ne,re,de){return re.subject.active?de(re.subject.active)(ne):!1},Hn=function(ne,re,de){return de(re)(ne)},me=function(ne){var re=ne.target,de=ne.destination,ve=ne.viewport,pe=ne.withDroppableDisplacement,Ae=ne.isVisibleThroughFrameFn,ye=pe?ia(re,de):re;return Dn(ye,de,Ae)&&Hn(ye,ve,Ae)},gt=function(ne){return me((0,xe.Z)({},ne,{isVisibleThroughFrameFn:Bo}))},Bt=function(ne){return me((0,xe.Z)({},ne,{isVisibleThroughFrameFn:ri}))},on=function(ne){return me((0,xe.Z)({},ne,{isVisibleThroughFrameFn:jo(ne.destination.axis)}))},pt=function(ne,re,de){if(typeof de=="boolean")return de;if(!re)return!0;var ve=re.invisible,pe=re.visible;if(ve[ne])return!1;var Ae=pe[ne];return Ae?Ae.shouldAnimate:!0};function Ln(ee,ne){var re=ee.page.marginBox,de={top:ne.point.y,right:0,bottom:0,left:ne.point.x};return Ca(Wa(re,de))}function yn(ee){var ne=ee.afterDragging,re=ee.destination,de=ee.displacedBy,ve=ee.viewport,pe=ee.forceShouldAnimate,Ae=ee.last;return ne.reduce(function(je,qe){var _e=Ln(qe,de),He=qe.descriptor.id;je.all.push(He);var Ve=gt({target:_e,destination:re,viewport:ve,withDroppableDisplacement:!0});if(!Ve)return je.invisible[qe.descriptor.id]=!0,je;var lt=pt(He,Ae,pe),Zt={draggableId:He,shouldAnimate:lt};return je.visible[He]=Zt,je},{all:[],visible:{},invisible:{}})}function mn(ee,ne){if(!ee.length)return 0;var re=ee[ee.length-1].descriptor.index;return ne.inHomeList?re:re+1}function Fn(ee){var ne=ee.insideDestination,re=ee.inHomeList,de=ee.displacedBy,ve=ee.destination,pe=mn(ne,{inHomeList:re});return{displaced:dr,displacedBy:de,at:{type:"REORDER",destination:{droppableId:ve.descriptor.id,index:pe}}}}function Oa(ee){var ne=ee.draggable,re=ee.insideDestination,de=ee.destination,ve=ee.viewport,pe=ee.displacedBy,Ae=ee.last,ye=ee.index,je=ee.forceShouldAnimate,qe=Xa(ne,de);if(ye==null)return Fn({insideDestination:re,inHomeList:qe,displacedBy:pe,destination:de});var _e=Yr(re,function(aa){return aa.descriptor.index===ye});if(!_e)return Fn({insideDestination:re,inHomeList:qe,displacedBy:pe,destination:de});var He=Pn(ne,re),Ve=re.indexOf(_e),lt=He.slice(Ve),Zt=yn({afterDragging:lt,destination:de,displacedBy:pe,last:Ae,viewport:ve.frame,forceShouldAnimate:je});return{displaced:Zt,displacedBy:pe,at:{type:"REORDER",destination:{droppableId:de.descriptor.id,index:ye}}}}function cr(ee,ne){return!!ne.effected[ee]}var Fr=function(ee){var ne=ee.isMovingForward,re=ee.destination,de=ee.draggables,ve=ee.combine,pe=ee.afterCritical;if(!re.isCombineEnabled)return null;var Ae=ve.draggableId,ye=de[Ae],je=ye.descriptor.index,qe=cr(Ae,pe);return qe?ne?je:je-1:ne?je+1:je},ma=function(ee){var ne=ee.isMovingForward,re=ee.isInHomeList,de=ee.insideDestination,ve=ee.location;if(!de.length)return null;var pe=ve.index,Ae=ne?pe+1:pe-1,ye=de[0].descriptor.index,je=de[de.length-1].descriptor.index,qe=re?je:je+1;return Aeqe?null:Ae},va=function(ee){var ne=ee.isMovingForward,re=ee.isInHomeList,de=ee.draggable,ve=ee.draggables,pe=ee.destination,Ae=ee.insideDestination,ye=ee.previousImpact,je=ee.viewport,qe=ee.afterCritical,_e=ye.at;if(_e||Gt(!1),_e.type==="REORDER"){var He=ma({isMovingForward:ne,isInHomeList:re,location:_e.destination,insideDestination:Ae});return He==null?null:Oa({draggable:de,insideDestination:Ae,destination:pe,viewport:je,last:ye.displaced,displacedBy:ye.displacedBy,index:He})}var Ve=Fr({isMovingForward:ne,destination:pe,displaced:ye.displaced,draggables:ve,combine:_e.combine,afterCritical:qe});return Ve==null?null:Oa({draggable:de,insideDestination:Ae,destination:pe,viewport:je,last:ye.displaced,displacedBy:ye.displacedBy,index:Ve})},or=function(ee){var ne=ee.displaced,re=ee.afterCritical,de=ee.combineWith,ve=ee.displacedBy,pe=!!(ne.visible[de]||ne.invisible[de]);return cr(de,re)?pe?gr:vn(ve.point):pe?ve.point:gr},Er=function(ee){var ne=ee.afterCritical,re=ee.impact,de=ee.draggables,ve=rr(re);ve||Gt(!1);var pe=ve.draggableId,Ae=de[pe].page.borderBox.center,ye=or({displaced:re.displaced,afterCritical:ne,combineWith:pe,displacedBy:re.displacedBy});return ga(Ae,ye)},Ko=function(ne,re){return re.margin[ne.start]+re.borderBox[ne.size]/2},li=function(ne,re){return re.margin[ne.end]+re.borderBox[ne.size]/2},Uo=function(ne,re,de){return re[ne.crossAxisStart]+de.margin[ne.crossAxisStart]+de.borderBox[ne.crossAxisSize]/2},oi=function(ne){var re=ne.axis,de=ne.moveRelativeTo,ve=ne.isMoving;return na(re.line,de.marginBox[re.end]+Ko(re,ve),Uo(re,de.marginBox,ve))},vi=function(ne){var re=ne.axis,de=ne.moveRelativeTo,ve=ne.isMoving;return na(re.line,de.marginBox[re.start]-li(re,ve),Uo(re,de.marginBox,ve))},Si=function(ne){var re=ne.axis,de=ne.moveInto,ve=ne.isMoving;return na(re.line,de.contentBox[re.start]+Ko(re,ve),Uo(re,de.contentBox,ve))},Fl=function(ee){var ne=ee.impact,re=ee.draggable,de=ee.draggables,ve=ee.droppable,pe=ee.afterCritical,Ae=Mn(ve.descriptor.id,de),ye=re.page,je=ve.axis;if(!Ae.length)return Si({axis:je,moveInto:ve.page,isMoving:ye});var qe=ne.displaced,_e=ne.displacedBy,He=qe.all[0];if(He){var Ve=de[He];if(cr(He,pe))return vi({axis:je,moveRelativeTo:Ve.page,isMoving:ye});var lt=Ut(Ve.page,_e.point);return vi({axis:je,moveRelativeTo:lt,isMoving:ye})}var Zt=Ae[Ae.length-1];if(Zt.descriptor.id===re.descriptor.id)return ye.borderBox.center;if(cr(Zt.descriptor.id,pe)){var aa=Ut(Zt.page,vn(pe.displacedBy.point));return oi({axis:je,moveRelativeTo:aa,isMoving:ye})}return oi({axis:je,moveRelativeTo:Zt.page,isMoving:ye})},tl=function(ee,ne){var re=ee.frame;return re?ga(ne,re.scroll.diff.displacement):ne},nl=function(ne){var re=ne.impact,de=ne.draggable,ve=ne.droppable,pe=ne.draggables,Ae=ne.afterCritical,ye=de.page.borderBox.center,je=re.at;return!ve||!je?ye:je.type==="REORDER"?Fl({impact:re,draggable:de,draggables:pe,droppable:ve,afterCritical:Ae}):Er({impact:re,draggables:pe,afterCritical:Ae})},al=function(ee){var ne=nl(ee),re=ee.droppable,de=re?tl(re,ne):ne;return de},ru=function(ee,ne){var re=ur(ne,ee.scroll.initial),de=vn(re),ve=Ca({top:ne.y,bottom:ne.y+ee.frame.height,left:ne.x,right:ne.x+ee.frame.width}),pe={frame:ve,scroll:{initial:ee.scroll.initial,max:ee.scroll.max,current:ne,diff:{value:re,displacement:de}}};return pe};function sl(ee,ne){return ee.map(function(re){return ne[re]})}function Rl(ee,ne){for(var re=0;re1?_e.sort(function(He,Ve){return ki(He)[ye.start]-ki(Ve)[ye.start]})[0]:qe.sort(function(He,Ve){var lt=_n(re,Ur(ki(He))),Zt=_n(re,Ur(ki(Ve)));return lt!==Zt?lt-Zt:ki(He)[ye.start]-ki(Ve)[ye.start]})[0]},Iu=function(ne,re){var de=ne.page.borderBox.center;return cr(ne.descriptor.id,re)?ur(de,re.displacedBy.point):de},Au=function(ne,re){var de=ne.page.borderBox;return cr(ne.descriptor.id,re)?Ar(de,vn(re.displacedBy.point)):de},Ou=function(ee){var ne=ee.pageBorderBoxCenter,re=ee.viewport,de=ee.destination,ve=ee.insideDestination,pe=ee.afterCritical,Ae=ve.filter(function(ye){return Bt({target:Au(ye,pe),destination:de,viewport:re.frame,withDroppableDisplacement:!0})}).sort(function(ye,je){var qe=Na(ne,tl(de,Iu(ye,pe))),_e=Na(ne,tl(de,Iu(je,pe)));return qe<_e?-1:_ene.left&&ee.topne.top}function bl(ee){var ne=ee.pageBorderBox,re=ee.draggable,de=ee.candidates,ve=re.page.borderBox.center,pe=de.map(function(Ae){var ye=Ae.axis,je=na(Ae.axis.line,ne.center[ye.line],Ae.page.borderBox.center[ye.crossAxisLine]);return{id:Ae.descriptor.id,distance:Na(ve,je)}}).sort(function(Ae,ye){return ye.distance-Ae.distance});return pe[0]?pe[0].id:null}function ls(ee){var ne=ee.pageBorderBox,re=ee.draggable,de=ee.droppables,ve=yt(de).filter(function(pe){if(!pe.isEnabled)return!1;var Ae=pe.subject.active;if(!Ae||!Cl(ne,Ae))return!1;if(_l(Ae)(ne.center))return!0;var ye=pe.axis,je=Ae.center[ye.crossAxisLine],qe=ne[ye.crossAxisStart],_e=ne[ye.crossAxisEnd],He=wr(Ae[ye.crossAxisStart],Ae[ye.crossAxisEnd]),Ve=He(qe),lt=He(_e);return!Ve&&!lt?!0:Ve?qeje});return ve.length?ve.length===1?ve[0].descriptor.id:bl({pageBorderBox:ne,draggable:re,candidates:ve}):null}var ku=function(ne,re){return Ca(Ar(ne,re))},us=function(ee,ne){var re=ee.frame;return re?ku(ne,re.scroll.diff.value):ne};function ei(ee){var ne=ee.displaced,re=ee.id;return!!(ne.visible[re]||ne.invisible[re])}function ss(ee){var ne=ee.draggable,re=ee.closest,de=ee.inHomeList;return re?de&&re.descriptor.index>ne.descriptor.index?re.descriptor.index-1:re.descriptor.index:null}var ds=function(ee){var ne=ee.pageBorderBoxWithDroppableScroll,re=ee.draggable,de=ee.destination,ve=ee.insideDestination,pe=ee.last,Ae=ee.viewport,ye=ee.afterCritical,je=de.axis,qe=ou(de.axis,re.displaceBy),_e=qe.value,He=ne[je.start],Ve=ne[je.end],lt=Pn(re,ve),Zt=Yr(lt,function(fa){var Sa=fa.descriptor.id,Ya=fa.page.borderBox.center[je.line],ir=cr(Sa,ye),vr=ei({displaced:pe,id:Sa});return ir?vr?Ve<=Ya:HeSa[ye.start]+ir&&HeSa[ye.start]-qe+ir&&_eSa[ye.start]+qe+ir&&HeSa[ye.start]+ir&&_e=Wo)return fo;var pe=ve/Wo,Ae=lo+Zo*pe,ye=de==="CANCEL"?Ae*bo:Ae;return Number(ye.toFixed(2))},_o=function(ee){var ne=ee.impact,re=ee.draggable,de=ee.dimensions,ve=ee.viewport,pe=ee.afterCritical,Ae=de.draggables,ye=de.droppables,je=Di(ne),qe=je?ye[je]:null,_e=ye[re.descriptor.droppableId],He=Xu({impact:ne,draggable:re,draggables:Ae,afterCritical:pe,droppable:qe||_e,viewport:ve}),Ve=ur(He,re.client.borderBox.center);return Ve},Qo=function(ee){var ne=ee.draggables,re=ee.reason,de=ee.lastImpact,ve=ee.home,pe=ee.viewport,Ae=ee.onLiftImpact;if(!de.at||re!=="DROP"){var ye=Ju({draggables:ne,impact:Ae,destination:ve,viewport:pe,forceShouldAnimate:!0});return{impact:ye,didDropInsideDroppable:!1}}if(de.at.type==="REORDER")return{impact:de,didDropInsideDroppable:!0};var je=(0,xe.Z)({},de,{displaced:dr});return{impact:je,didDropInsideDroppable:!0}},Li=function(ee){var ne=ee.getState,re=ee.dispatch;return function(de){return function(ve){if(ve.type!=="DROP"){de(ve);return}var pe=ne(),Ae=ve.payload.reason;if(pe.phase==="COLLECTING"){re(pa({reason:Ae}));return}if(pe.phase!=="IDLE"){var ye=pe.phase==="DROP_PENDING"&&pe.isWaiting;ye&&Gt(!1),pe.phase==="DRAGGING"||pe.phase==="DROP_PENDING"||Gt(!1);var je=pe.critical,qe=pe.dimensions,_e=qe.draggables[pe.critical.draggable.id],He=Qo({reason:Ae,lastImpact:pe.impact,afterCritical:pe.afterCritical,onLiftImpact:pe.onLiftImpact,home:pe.dimensions.droppables[pe.critical.droppable.id],viewport:pe.viewport,draggables:pe.dimensions.draggables}),Ve=He.impact,lt=He.didDropInsideDroppable,Zt=lt?Za(Ve):null,aa=lt?rr(Ve):null,fa={index:je.draggable.index,droppableId:je.droppable.id},Sa={draggableId:_e.descriptor.id,type:_e.descriptor.type,source:fa,reason:Ae,mode:pe.movementMode,destination:Zt,combine:aa},Ya=_o({impact:Ve,draggable:_e,dimensions:qe,viewport:pe.viewport,afterCritical:pe.afterCritical}),ir={critical:pe.critical,afterCritical:pe.afterCritical,result:Sa,impact:Ve},vr=!za(pe.current.client.offset,Ya)||!!Sa.combine;if(!vr){re(Rn({completed:ir}));return}var po=Dr({current:pe.current.client.offset,destination:Ya,reason:Ae}),io={newHomeClientOffset:Ya,dropDuration:po,completed:ir};re(Vt(io))}}}},ui=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Ni(ee){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(re){re.target!==window&&re.target!==window.document||ee()}}}function uo(ee){var ne=ee.onWindowScroll;function re(){ne(ui())}var de=Kn(re),ve=Ni(de),pe=Xn;function Ae(){return pe!==Xn}function ye(){Ae()&&Gt(!1),pe=ka(window,[ve])}function je(){Ae()||Gt(!1),de.cancel(),pe(),pe=Xn}return{start:ye,stop:je,isActive:Ae}}var hi=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},Bi=function(ee){var ne=uo({onWindowScroll:function(de){ee.dispatch(It({newScroll:de}))}});return function(re){return function(de){!ne.isActive()&&de.type==="INITIAL_PUBLISH"&&ne.start(),ne.isActive()&&hi(de)&&ne.stop(),re(de)}}},Zi=function(ee){var ne=!1,re=!1,de=setTimeout(function(){re=!0}),ve=function(Ae){ne||re||(ne=!0,ee(Ae),clearTimeout(de))};return ve.wasCalled=function(){return ne},ve},yi=function(){var ee=[],ne=function(pe){var Ae=Hr(ee,function(qe){return qe.timerId===pe});Ae===-1&&Gt(!1);var ye=ee.splice(Ae,1),je=ye[0];je.callback()},re=function(pe){var Ae=setTimeout(function(){return ne(Ae)}),ye={timerId:Ae,callback:pe};ee.push(ye)},de=function(){if(ee.length){var pe=[].concat(ee);ee.length=0,pe.forEach(function(Ae){clearTimeout(Ae.timerId),Ae.callback()})}};return{add:re,flush:de}},qi=function(ne,re){return ne==null&&re==null?!0:ne==null||re==null?!1:ne.droppableId===re.droppableId&&ne.index===re.index},cl=function(ne,re){return ne==null&&re==null?!0:ne==null||re==null?!1:ne.draggableId===re.draggableId&&ne.droppableId===re.droppableId},ro=function(ne,re){if(ne===re)return!0;var de=ne.draggable.id===re.draggable.id&&ne.draggable.droppableId===re.draggable.droppableId&&ne.draggable.type===re.draggable.type&&ne.draggable.index===re.draggable.index,ve=ne.droppable.id===re.droppable.id&&ne.droppable.type===re.droppable.type;return de&&ve},Do=function(ne,re){qn(),re(),Jl()},Go=function(ne,re){return{draggableId:ne.draggable.id,type:ne.droppable.type,source:{droppableId:ne.droppable.id,index:ne.draggable.index},mode:re}},Fi=function(ne,re,de,ve){if(!ne){de(ve(re));return}var pe=Zi(de),Ae={announce:pe};ne(re,Ae),pe.wasCalled()||de(ve(re))},Gi=function(ee,ne){var re=yi(),de=null,ve=function(Ve,lt){de&&Gt(!1),Do("onBeforeCapture",function(){var Zt=ee().onBeforeCapture;if(Zt){var aa={draggableId:Ve,mode:lt};Zt(aa)}})},pe=function(Ve,lt){de&&Gt(!1),Do("onBeforeDragStart",function(){var Zt=ee().onBeforeDragStart;Zt&&Zt(Go(Ve,lt))})},Ae=function(Ve,lt){de&&Gt(!1);var Zt=Go(Ve,lt);de={mode:lt,lastCritical:Ve,lastLocation:Zt.source,lastCombine:null},re.add(function(){Do("onDragStart",function(){return Fi(ee().onDragStart,Zt,ne,tn.onDragStart)})})},ye=function(Ve,lt){var Zt=Za(lt),aa=rr(lt);de||Gt(!1);var fa=!ro(Ve,de.lastCritical);fa&&(de.lastCritical=Ve);var Sa=!qi(de.lastLocation,Zt);Sa&&(de.lastLocation=Zt);var Ya=!cl(de.lastCombine,aa);if(Ya&&(de.lastCombine=aa),!(!fa&&!Sa&&!Ya)){var ir=(0,xe.Z)({},Go(Ve,de.mode),{combine:aa,destination:Zt});re.add(function(){Do("onDragUpdate",function(){return Fi(ee().onDragUpdate,ir,ne,tn.onDragUpdate)})})}},je=function(){de||Gt(!1),re.flush()},qe=function(Ve){de||Gt(!1),de=null,Do("onDragEnd",function(){return Fi(ee().onDragEnd,Ve,ne,tn.onDragEnd)})},_e=function(){if(de){var Ve=(0,xe.Z)({},Go(de.lastCritical,de.mode),{combine:null,destination:null,reason:"CANCEL"});qe(Ve)}};return{beforeCapture:ve,beforeStart:pe,start:Ae,update:ye,flush:je,drop:qe,abort:_e}},ci=function(ee,ne){var re=Gi(ee,ne);return function(de){return function(ve){return function(pe){if(pe.type==="BEFORE_INITIAL_CAPTURE"){re.beforeCapture(pe.payload.draggableId,pe.payload.movementMode);return}if(pe.type==="INITIAL_PUBLISH"){var Ae=pe.payload.critical;re.beforeStart(Ae,pe.payload.movementMode),ve(pe),re.start(Ae,pe.payload.movementMode);return}if(pe.type==="DROP_COMPLETE"){var ye=pe.payload.completed.result;re.flush(),ve(pe),re.drop(ye);return}if(ve(pe),pe.type==="FLUSH"){re.abort();return}var je=de.getState();je.phase==="DRAGGING"&&re.update(je.critical,je.impact)}}}},xi=function(ee){return function(ne){return function(re){if(re.type!=="DROP_ANIMATION_FINISHED"){ne(re);return}var de=ee.getState();de.phase!=="DROP_ANIMATING"&&Gt(!1),ee.dispatch(Rn({completed:de.completed}))}}},Bl=function(ee){var ne=null,re=null;function de(){re&&(cancelAnimationFrame(re),re=null),ne&&(ne(),ne=null)}return function(ve){return function(pe){if((pe.type==="FLUSH"||pe.type==="DROP_COMPLETE"||pe.type==="DROP_ANIMATION_FINISHED")&&de(),ve(pe),pe.type==="DROP_ANIMATE"){var Ae={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var je=ee.getState();je.phase==="DROP_ANIMATING"&&ee.dispatch(Ma())}};re=requestAnimationFrame(function(){re=null,ne=ka(window,[Ae])})}}}},Ki=function(ee){return function(){return function(ne){return function(re){(re.type==="DROP_COMPLETE"||re.type==="FLUSH"||re.type==="DROP_ANIMATE")&&ee.stopPublishing(),ne(re)}}}},_i=function(ee){var ne=!1;return function(){return function(re){return function(de){if(de.type==="INITIAL_PUBLISH"){ne=!0,ee.tryRecordFocus(de.payload.critical.draggable.id),re(de),ee.tryRestoreFocusRecorded();return}if(re(de),!!ne){if(de.type==="FLUSH"){ne=!1,ee.tryRestoreFocusRecorded();return}if(de.type==="DROP_COMPLETE"){ne=!1;var ve=de.payload.completed.result;ve.combine&&ee.tryShiftRecord(ve.draggableId,ve.combine.draggableId),ee.tryRestoreFocusRecorded()}}}}}},ql=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},lu=function(ee){return function(ne){return function(re){return function(de){if(ql(de)){ee.stop(),re(de);return}if(de.type==="INITIAL_PUBLISH"){re(de);var ve=ne.getState();ve.phase!=="DRAGGING"&&Gt(!1),ee.start(ve);return}re(de),ee.scroll(ne.getState())}}}},bn=function(ee){return function(ne){return function(re){if(ne(re),re.type==="PUBLISH_WHILE_DRAGGING"){var de=ee.getState();de.phase==="DROP_PENDING"&&(de.isWaiting||ee.dispatch(un({reason:de.reason})))}}}},Hi=Re.qC,Pl=function(ee){var ne=ee.dimensionMarshal,re=ee.focusMarshal,de=ee.styleMarshal,ve=ee.getResponders,pe=ee.announce,Ae=ee.autoScroller;return(0,Re.MT)(vs,Hi((0,Re.md)(Jr(de),Ki(ne),ha(ne),Li,xi,Bl,bn,lu(Ae),Bi,_i(re),ci(ve,pe))))},Ji=function(){return{additions:{},removals:{},modified:{}}};function $l(ee){var ne=ee.registry,re=ee.callbacks,de=Ji(),ve=null,pe=function(){ve||(re.collectionStarting(),ve=requestAnimationFrame(function(){ve=null,qn();var _e=de,He=_e.additions,Ve=_e.removals,lt=_e.modified,Zt=Object.keys(He).map(function(Sa){return ne.draggable.getById(Sa).getDimension(gr)}).sort(function(Sa,Ya){return Sa.descriptor.index-Ya.descriptor.index}),aa=Object.keys(lt).map(function(Sa){var Ya=ne.droppable.getById(Sa),ir=Ya.callbacks.getScrollWhileDragging();return{droppableId:Sa,scroll:ir}}),fa={additions:Zt,removals:Object.keys(Ve),modified:aa};de=Ji(),Jl(),re.publish(fa)}))},Ae=function(_e){var He=_e.descriptor.id;de.additions[He]=_e,de.modified[_e.descriptor.droppableId]=!0,de.removals[He]&&delete de.removals[He],pe()},ye=function(_e){var He=_e.descriptor;de.removals[He.id]=!0,de.modified[He.droppableId]=!0,de.additions[He.id]&&delete de.additions[He.id],pe()},je=function(){ve&&(cancelAnimationFrame(ve),ve=null,de=Ji())};return{add:Ae,remove:ye,stop:je}}var kl=function(ee){var ne=ee.scrollHeight,re=ee.scrollWidth,de=ee.height,ve=ee.width,pe=ur({x:re,y:ne},{x:ve,y:de}),Ae={x:Math.max(0,pe.x),y:Math.max(0,pe.y)};return Ae},ol=function(){var ee=document.documentElement;return ee||Gt(!1),ee},si=function(){var ee=ol(),ne=kl({scrollHeight:ee.scrollHeight,scrollWidth:ee.scrollWidth,width:ee.clientWidth,height:ee.clientHeight});return ne},ti=function(){var ee=ui(),ne=si(),re=ee.y,de=ee.x,ve=ol(),pe=ve.clientWidth,Ae=ve.clientHeight,ye=de+pe,je=re+Ae,qe=Ca({top:re,left:de,right:ye,bottom:je}),_e={frame:qe,scroll:{initial:ee,current:ee,max:ne,diff:{value:gr,displacement:gr}}};return _e},Xi=function(ee){var ne=ee.critical,re=ee.scrollOptions,de=ee.registry;qn();var ve=ti(),pe=ve.scroll.current,Ae=ne.droppable,ye=de.droppable.getAllByType(Ae.type).map(function(He){return He.callbacks.getDimensionAndWatchScroll(pe,re)}),je=de.draggable.getAllByType(ne.draggable.type).map(function(He){return He.getDimension(pe)}),qe={draggables:xt(je),droppables:Kr(ye)};Jl();var _e={dimensions:qe,critical:ne,viewport:ve};return _e};function No(ee,ne,re){if(re.descriptor.id===ne.id||re.descriptor.type!==ne.type)return!1;var de=ee.droppable.getById(re.descriptor.droppableId);return de.descriptor.mode==="virtual"}var il=function(ee,ne){var re=null,de=$l({callbacks:{publish:ne.publishWhileDragging,collectionStarting:ne.collectionStarting},registry:ee}),ve=function(lt,Zt){ee.droppable.exists(lt)||Gt(!1),re&&ne.updateDroppableIsEnabled({id:lt,isEnabled:Zt})},pe=function(lt,Zt){re&&(ee.droppable.exists(lt)||Gt(!1),ne.updateDroppableIsCombineEnabled({id:lt,isCombineEnabled:Zt}))},Ae=function(lt,Zt){re&&(ee.droppable.exists(lt)||Gt(!1),ne.updateDroppableScroll({id:lt,newScroll:Zt}))},ye=function(lt,Zt){re&&ee.droppable.getById(lt).callbacks.scroll(Zt)},je=function(){if(re){de.stop();var lt=re.critical.droppable;ee.droppable.getAllByType(lt.type).forEach(function(Zt){return Zt.callbacks.dragStopped()}),re.unsubscribe(),re=null}},qe=function(lt){re||Gt(!1);var Zt=re.critical.draggable;lt.type==="ADDITION"&&No(ee,Zt,lt.value)&&de.add(lt.value),lt.type==="REMOVAL"&&No(ee,Zt,lt.value)&&de.remove(lt.value)},_e=function(lt){re&&Gt(!1);var Zt=ee.draggable.getById(lt.draggableId),aa=ee.droppable.getById(Zt.descriptor.droppableId),fa={draggable:Zt.descriptor,droppable:aa.descriptor},Sa=ee.subscribe(qe);return re={critical:fa,unsubscribe:Sa},Xi({critical:fa,registry:ee,scrollOptions:lt.scrollOptions})},He={updateDroppableIsEnabled:ve,updateDroppableIsCombineEnabled:pe,scrollDroppable:ye,updateDroppableScroll:Ae,startPublishing:_e,stopPublishing:je};return He},Ii=function(ee,ne){return ee.phase==="IDLE"?!0:ee.phase!=="DROP_ANIMATING"||ee.completed.result.draggableId===ne?!1:ee.completed.result.reason==="DROP"},xl=function(ee){window.scrollBy(ee.x,ee.y)},Ci=Mt(function(ee){return yt(ee).filter(function(ne){return!(!ne.isEnabled||!ne.frame)})}),zi=function(ne,re){var de=Yr(Ci(re),function(ve){return ve.frame||Gt(!1),_l(ve.frame.pageMarginBox)(ne)});return de},zl=function(ee){var ne=ee.center,re=ee.destination,de=ee.droppables;if(re){var ve=de[re];return ve.frame?ve:null}var pe=zi(ne,de);return pe},qo={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ne){return Math.pow(ne,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},$i=function(ee,ne){var re=ee[ne.size]*qo.startFromPercentage,de=ee[ne.size]*qo.maxScrollAtPercentage,ve={startScrollingFrom:re,maxScrollValueAt:de};return ve},wl=function(ee){var ne=ee.startOfRange,re=ee.endOfRange,de=ee.current,ve=re-ne;if(ve===0)return 0;var pe=de-ne,Ae=pe/ve;return Ae},la=1,Tl=function(ee,ne){if(ee>ne.startScrollingFrom)return 0;if(ee<=ne.maxScrollValueAt)return qo.maxPixelScroll;if(ee===ne.startScrollingFrom)return la;var re=wl({startOfRange:ne.maxScrollValueAt,endOfRange:ne.startScrollingFrom,current:ee}),de=1-re,ve=qo.maxPixelScroll*qo.ease(de);return Math.ceil(ve)},gl=qo.durationDampening.accelerateAt,ml=qo.durationDampening.stopDampeningAt,jl=function(ee,ne){var re=ne,de=ml,ve=Date.now(),pe=ve-re;if(pe>=ml)return ee;if(pene.height,pe=re.width>ne.width;return!pe&&!ve?de:pe&&ve?null:{x:pe?0:de.x,y:ve?0:de.y}},br=sr(function(ee){return ee===0?0:ee}),Va=function(ee){var ne=ee.dragStartTime,re=ee.container,de=ee.subject,ve=ee.center,pe=ee.shouldUseTimeDampening,Ae={top:ve.y-re.top,right:re.right-ve.x,bottom:re.bottom-ve.y,left:ve.x-re.left},ye=eu({container:re,distanceToEdges:Ae,dragStartTime:ne,axis:Rr,shouldUseTimeDampening:pe}),je=eu({container:re,distanceToEdges:Ae,dragStartTime:ne,axis:So,shouldUseTimeDampening:pe}),qe=br({x:je,y:ye});if(za(qe,gr))return null;var _e=Vl({container:re,subject:de,proposedScroll:qe});return _e?za(_e,gr)?null:_e:null},so=sr(function(ee){return ee===0?0:ee>0?1:-1}),Jo=function(){var ee=function(re,de){return re<0?re:re>de?re-de:0};return function(ne){var re=ne.current,de=ne.max,ve=ne.change,pe=ga(re,ve),Ae={x:ee(pe.x,de.x),y:ee(pe.y,de.y)};return za(Ae,gr)?null:Ae}}(),fl=function(ne){var re=ne.max,de=ne.current,ve=ne.change,pe={x:Math.max(de.x,re.x),y:Math.max(de.y,re.y)},Ae=so(ve),ye=Jo({max:pe,current:de,change:Ae});return!ye||Ae.x!==0&&ye.x===0||Ae.y!==0&&ye.y===0},mu=function(ne,re){return fl({current:ne.scroll.current,max:ne.scroll.max,change:re})},se=function(ne,re){if(!mu(ne,re))return null;var de=ne.scroll.max,ve=ne.scroll.current;return Jo({current:ve,max:de,change:re})},Se=function(ne,re){var de=ne.frame;return de?fl({current:de.scroll.current,max:de.scroll.max,change:re}):!1},Pe=function(ne,re){var de=ne.frame;return!de||!Se(ne,re)?null:Jo({current:de.scroll.current,max:de.scroll.max,change:re})},rt=function(ee){var ne=ee.viewport,re=ee.subject,de=ee.center,ve=ee.dragStartTime,pe=ee.shouldUseTimeDampening,Ae=Va({dragStartTime:ve,container:ne.frame,subject:re,center:de,shouldUseTimeDampening:pe});return Ae&&mu(ne,Ae)?Ae:null},mt=function(ee){var ne=ee.droppable,re=ee.subject,de=ee.center,ve=ee.dragStartTime,pe=ee.shouldUseTimeDampening,Ae=ne.frame;if(!Ae)return null;var ye=Va({dragStartTime:ve,container:Ae.pageMarginBox,subject:re,center:de,shouldUseTimeDampening:pe});return ye&&Se(ne,ye)?ye:null},Vn=function(ee){var ne=ee.state,re=ee.dragStartTime,de=ee.shouldUseTimeDampening,ve=ee.scrollWindow,pe=ee.scrollDroppable,Ae=ne.current.page.borderBoxCenter,ye=ne.dimensions.draggables[ne.critical.draggable.id],je=ye.page.marginBox;if(ne.isWindowScrollAllowed){var qe=ne.viewport,_e=rt({dragStartTime:re,viewport:qe,subject:je,center:Ae,shouldUseTimeDampening:de});if(_e){ve(_e);return}}var He=zl({center:Ae,destination:Di(ne.impact),droppables:ne.dimensions.droppables});if(He){var Ve=mt({dragStartTime:re,droppable:He,subject:je,center:Ae,shouldUseTimeDampening:de});Ve&&pe(He.descriptor.id,Ve)}},pn=function(ee){var ne=ee.scrollWindow,re=ee.scrollDroppable,de=Kn(ne),ve=Kn(re),pe=null,Ae=function(_e){pe||Gt(!1);var He=pe,Ve=He.shouldUseTimeDampening,lt=He.dragStartTime;Vn({state:_e,scrollWindow:de,scrollDroppable:ve,dragStartTime:lt,shouldUseTimeDampening:Ve})},ye=function(_e){qn(),pe&&Gt(!1);var He=Date.now(),Ve=!1,lt=function(){Ve=!0};Vn({state:_e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:lt,scrollDroppable:lt}),pe={dragStartTime:He,shouldUseTimeDampening:Ve},Jl(),Ve&&Ae(_e)},je=function(){pe&&(de.cancel(),ve.cancel(),pe=null)};return{start:ye,stop:je,scroll:Ae}},Jt=function(ee){var ne=ee.move,re=ee.scrollDroppable,de=ee.scrollWindow,ve=function(qe,_e){var He=ga(qe.current.client.selection,_e);ne({client:He})},pe=function(qe,_e){if(!Se(qe,_e))return _e;var He=Pe(qe,_e);if(!He)return re(qe.descriptor.id,_e),null;var Ve=ur(_e,He);re(qe.descriptor.id,Ve);var lt=ur(_e,Ve);return lt},Ae=function(qe,_e,He){if(!qe||!mu(_e,He))return He;var Ve=se(_e,He);if(!Ve)return de(He),null;var lt=ur(He,Ve);de(lt);var Zt=ur(He,lt);return Zt},ye=function(qe){var _e=qe.scrollJumpRequest;if(_e){var He=Di(qe.impact);He||Gt(!1);var Ve=pe(qe.dimensions.droppables[He],_e);if(Ve){var lt=qe.viewport,Zt=Ae(qe.isWindowScrollAllowed,lt,Ve);Zt&&ve(qe,Zt)}}};return ye},dt=function(ee){var ne=ee.scrollDroppable,re=ee.scrollWindow,de=ee.move,ve=pn({scrollWindow:re,scrollDroppable:ne}),pe=Jt({move:de,scrollWindow:re,scrollDroppable:ne}),Ae=function(qe){if(qe.phase==="DRAGGING"){if(qe.movementMode==="FLUID"){ve.scroll(qe);return}qe.scrollJumpRequest&&pe(qe)}},ye={scroll:Ae,start:ve.start,stop:ve.stop};return ye},qt="data-rbd",wn=function(){var ee=qt+"-drag-handle";return{base:ee,draggableId:ee+"-draggable-id",contextId:ee+"-context-id"}}(),bt=function(){var ee=qt+"-draggable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),Ct=function(){var ee=qt+"-droppable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),ft={contextId:qt+"-scroll-container-context-id"},An=function(ne){return function(re){return"["+re+'="'+ne+'"]'}},$t=function(ne,re){return ne.map(function(de){var ve=de.styles[re];return ve?de.selector+" { "+ve+" }":""}).join(" ")},Tt="pointer-events: none;",sn=function(ee){var ne=An(ee),re=function(){var ye=` + `},nn={dragHandleUsageInstructions:Ua,onDragStart:lr,onDragUpdate:no,onDragEnd:ca},gr={x:0,y:0},ga=function(ne,re){return{x:ne.x+re.x,y:ne.y+re.y}},ur=function(ne,re){return{x:ne.x-re.x,y:ne.y-re.y}},za=function(ne,re){return ne.x===re.x&&ne.y===re.y},vn=function(ne){return{x:ne.x!==0?-ne.x:0,y:ne.y!==0?-ne.y:0}},na=function(ne,re,de){var ve;return de===void 0&&(de=0),ve={},ve[ne]=re,ve[ne==="x"?"y":"x"]=de,ve},Na=function(ne,re){return Math.sqrt(Math.pow(re.x-ne.x,2)+Math.pow(re.y-ne.y,2))},_n=function(ne,re){return Math.min.apply(Math,re.map(function(de){return Na(ne,de)}))},sr=function(ne){return function(re){return{x:ne(re.x),y:ne(re.y)}}},tr=function(ee,ne){var re=Ca({top:Math.max(ne.top,ee.top),right:Math.min(ne.right,ee.right),bottom:Math.min(ne.bottom,ee.bottom),left:Math.max(ne.left,ee.left)});return re.width<=0||re.height<=0?null:re},Ar=function(ne,re){return{top:ne.top+re.y,left:ne.left+re.x,bottom:ne.bottom+re.y,right:ne.right+re.x}},Ur=function(ne){return[{x:ne.left,y:ne.top},{x:ne.right,y:ne.top},{x:ne.left,y:ne.bottom},{x:ne.right,y:ne.bottom}]},mr={top:0,right:0,bottom:0,left:0},Yo=function(ne,re){return re?Ar(ne,re.scroll.diff.displacement):ne},Mo=function(ne,re,de){if(de&&de.increasedBy){var ve;return(0,Be.Z)({},ne,(ve={},ve[re.end]=ne[re.end]+de.increasedBy[re.line],ve))}return ne},Ei=function(ne,re){return re&&re.shouldClipSubject?tr(re.pageMarginBox,ne):Ca(ne)},xr=function(ee){var ne=ee.page,re=ee.withPlaceholder,de=ee.axis,ve=ee.frame,pe=Yo(ne.marginBox,ve),Ae=Mo(pe,de,re),ye=Ei(Ae,ve);return{page:ne,withPlaceholder:re,active:ye}},Nr=function(ee,ne){ee.frame||Ht(!1);var re=ee.frame,de=ur(ne,re.scroll.initial),ve=vn(de),pe=(0,Be.Z)({},re,{scroll:{initial:re.scroll.initial,current:ne,diff:{value:de,displacement:ve},max:re.scroll.max}}),Ae=xr({page:ee.subject.page,withPlaceholder:ee.subject.withPlaceholder,axis:ee.axis,frame:pe}),ye=(0,Be.Z)({},ee,{frame:pe,subject:Ae});return ye};function Eo(ee){return Number.isInteger?Number.isInteger(ee):typeof ee=="number"&&isFinite(ee)&&Math.floor(ee)===ee}function Ja(ee){return Object.values?Object.values(ee):Object.keys(ee).map(function(ne){return ee[ne]})}function Hr(ee,ne){if(ee.findIndex)return ee.findIndex(ne);for(var re=0;reee.bottom,qe=de.leftee.right,_e=je&&qe;if(_e)return!0;var He=je&&Ae||qe&&pe;return He}},ri=function(ee){var ne=wr(ee.top,ee.bottom),re=wr(ee.left,ee.right);return function(de){var ve=ne(de.top)&&ne(de.bottom)&&re(de.left)&&re(de.right);return ve}},Rr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},So={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},jo=function(ee){return function(ne){var re=wr(ne.top,ne.bottom),de=wr(ne.left,ne.right);return function(ve){return ee===Rr?re(ve.top)&&re(ve.bottom):de(ve.left)&&de(ve.right)}}},ia=function(ne,re){var de=re.frame?re.frame.scroll.diff.displacement:gr;return Ar(ne,de)},Dn=function(ne,re,de){return re.subject.active?de(re.subject.active)(ne):!1},Hn=function(ne,re,de){return de(re)(ne)},me=function(ne){var re=ne.target,de=ne.destination,ve=ne.viewport,pe=ne.withDroppableDisplacement,Ae=ne.isVisibleThroughFrameFn,ye=pe?ia(re,de):re;return Dn(ye,de,Ae)&&Hn(ye,ve,Ae)},gt=function(ne){return me((0,Be.Z)({},ne,{isVisibleThroughFrameFn:Bo}))},Bt=function(ne){return me((0,Be.Z)({},ne,{isVisibleThroughFrameFn:ri}))},ln=function(ne){return me((0,Be.Z)({},ne,{isVisibleThroughFrameFn:jo(ne.destination.axis)}))},pt=function(ne,re,de){if(typeof de=="boolean")return de;if(!re)return!0;var ve=re.invisible,pe=re.visible;if(ve[ne])return!1;var Ae=pe[ne];return Ae?Ae.shouldAnimate:!0};function Ln(ee,ne){var re=ee.page.marginBox,de={top:ne.point.y,right:0,bottom:0,left:ne.point.x};return Ca(Wa(re,de))}function An(ee){var ne=ee.afterDragging,re=ee.destination,de=ee.displacedBy,ve=ee.viewport,pe=ee.forceShouldAnimate,Ae=ee.last;return ne.reduce(function(je,qe){var _e=Ln(qe,de),He=qe.descriptor.id;je.all.push(He);var Ve=gt({target:_e,destination:re,viewport:ve,withDroppableDisplacement:!0});if(!Ve)return je.invisible[qe.descriptor.id]=!0,je;var lt=pt(He,Ae,pe),Gt={draggableId:He,shouldAnimate:lt};return je.visible[He]=Gt,je},{all:[],visible:{},invisible:{}})}function mn(ee,ne){if(!ee.length)return 0;var re=ee[ee.length-1].descriptor.index;return ne.inHomeList?re:re+1}function yn(ee){var ne=ee.insideDestination,re=ee.inHomeList,de=ee.displacedBy,ve=ee.destination,pe=mn(ne,{inHomeList:re});return{displaced:dr,displacedBy:de,at:{type:"REORDER",destination:{droppableId:ve.descriptor.id,index:pe}}}}function Oa(ee){var ne=ee.draggable,re=ee.insideDestination,de=ee.destination,ve=ee.viewport,pe=ee.displacedBy,Ae=ee.last,ye=ee.index,je=ee.forceShouldAnimate,qe=Xa(ne,de);if(ye==null)return yn({insideDestination:re,inHomeList:qe,displacedBy:pe,destination:de});var _e=Yr(re,function(aa){return aa.descriptor.index===ye});if(!_e)return yn({insideDestination:re,inHomeList:qe,displacedBy:pe,destination:de});var He=Pn(ne,re),Ve=re.indexOf(_e),lt=He.slice(Ve),Gt=An({afterDragging:lt,destination:de,displacedBy:pe,last:Ae,viewport:ve.frame,forceShouldAnimate:je});return{displaced:Gt,displacedBy:pe,at:{type:"REORDER",destination:{droppableId:de.descriptor.id,index:ye}}}}function cr(ee,ne){return!!ne.effected[ee]}var Fr=function(ee){var ne=ee.isMovingForward,re=ee.destination,de=ee.draggables,ve=ee.combine,pe=ee.afterCritical;if(!re.isCombineEnabled)return null;var Ae=ve.draggableId,ye=de[Ae],je=ye.descriptor.index,qe=cr(Ae,pe);return qe?ne?je:je-1:ne?je+1:je},ma=function(ee){var ne=ee.isMovingForward,re=ee.isInHomeList,de=ee.insideDestination,ve=ee.location;if(!de.length)return null;var pe=ve.index,Ae=ne?pe+1:pe-1,ye=de[0].descriptor.index,je=de[de.length-1].descriptor.index,qe=re?je:je+1;return Aeqe?null:Ae},va=function(ee){var ne=ee.isMovingForward,re=ee.isInHomeList,de=ee.draggable,ve=ee.draggables,pe=ee.destination,Ae=ee.insideDestination,ye=ee.previousImpact,je=ee.viewport,qe=ee.afterCritical,_e=ye.at;if(_e||Ht(!1),_e.type==="REORDER"){var He=ma({isMovingForward:ne,isInHomeList:re,location:_e.destination,insideDestination:Ae});return He==null?null:Oa({draggable:de,insideDestination:Ae,destination:pe,viewport:je,last:ye.displaced,displacedBy:ye.displacedBy,index:He})}var Ve=Fr({isMovingForward:ne,destination:pe,displaced:ye.displaced,draggables:ve,combine:_e.combine,afterCritical:qe});return Ve==null?null:Oa({draggable:de,insideDestination:Ae,destination:pe,viewport:je,last:ye.displaced,displacedBy:ye.displacedBy,index:Ve})},or=function(ee){var ne=ee.displaced,re=ee.afterCritical,de=ee.combineWith,ve=ee.displacedBy,pe=!!(ne.visible[de]||ne.invisible[de]);return cr(de,re)?pe?gr:vn(ve.point):pe?ve.point:gr},Er=function(ee){var ne=ee.afterCritical,re=ee.impact,de=ee.draggables,ve=rr(re);ve||Ht(!1);var pe=ve.draggableId,Ae=de[pe].page.borderBox.center,ye=or({displaced:re.displaced,afterCritical:ne,combineWith:pe,displacedBy:re.displacedBy});return ga(Ae,ye)},Ko=function(ne,re){return re.margin[ne.start]+re.borderBox[ne.size]/2},li=function(ne,re){return re.margin[ne.end]+re.borderBox[ne.size]/2},Uo=function(ne,re,de){return re[ne.crossAxisStart]+de.margin[ne.crossAxisStart]+de.borderBox[ne.crossAxisSize]/2},oi=function(ne){var re=ne.axis,de=ne.moveRelativeTo,ve=ne.isMoving;return na(re.line,de.marginBox[re.end]+Ko(re,ve),Uo(re,de.marginBox,ve))},vi=function(ne){var re=ne.axis,de=ne.moveRelativeTo,ve=ne.isMoving;return na(re.line,de.marginBox[re.start]-li(re,ve),Uo(re,de.marginBox,ve))},Si=function(ne){var re=ne.axis,de=ne.moveInto,ve=ne.isMoving;return na(re.line,de.contentBox[re.start]+Ko(re,ve),Uo(re,de.contentBox,ve))},Fl=function(ee){var ne=ee.impact,re=ee.draggable,de=ee.draggables,ve=ee.droppable,pe=ee.afterCritical,Ae=Mn(ve.descriptor.id,de),ye=re.page,je=ve.axis;if(!Ae.length)return Si({axis:je,moveInto:ve.page,isMoving:ye});var qe=ne.displaced,_e=ne.displacedBy,He=qe.all[0];if(He){var Ve=de[He];if(cr(He,pe))return vi({axis:je,moveRelativeTo:Ve.page,isMoving:ye});var lt=Ut(Ve.page,_e.point);return vi({axis:je,moveRelativeTo:lt,isMoving:ye})}var Gt=Ae[Ae.length-1];if(Gt.descriptor.id===re.descriptor.id)return ye.borderBox.center;if(cr(Gt.descriptor.id,pe)){var aa=Ut(Gt.page,vn(pe.displacedBy.point));return oi({axis:je,moveRelativeTo:aa,isMoving:ye})}return oi({axis:je,moveRelativeTo:Gt.page,isMoving:ye})},nl=function(ee,ne){var re=ee.frame;return re?ga(ne,re.scroll.diff.displacement):ne},al=function(ne){var re=ne.impact,de=ne.draggable,ve=ne.droppable,pe=ne.draggables,Ae=ne.afterCritical,ye=de.page.borderBox.center,je=re.at;return!ve||!je?ye:je.type==="REORDER"?Fl({impact:re,draggable:de,draggables:pe,droppable:ve,afterCritical:Ae}):Er({impact:re,draggables:pe,afterCritical:Ae})},rl=function(ee){var ne=al(ee),re=ee.droppable,de=re?nl(re,ne):ne;return de},ru=function(ee,ne){var re=ur(ne,ee.scroll.initial),de=vn(re),ve=Ca({top:ne.y,bottom:ne.y+ee.frame.height,left:ne.x,right:ne.x+ee.frame.width}),pe={frame:ve,scroll:{initial:ee.scroll.initial,max:ee.scroll.max,current:ne,diff:{value:re,displacement:de}}};return pe};function sl(ee,ne){return ee.map(function(re){return ne[re]})}function Rl(ee,ne){for(var re=0;re1?_e.sort(function(He,Ve){return ki(He)[ye.start]-ki(Ve)[ye.start]})[0]:qe.sort(function(He,Ve){var lt=_n(re,Ur(ki(He))),Gt=_n(re,Ur(ki(Ve)));return lt!==Gt?lt-Gt:ki(He)[ye.start]-ki(Ve)[ye.start]})[0]},Iu=function(ne,re){var de=ne.page.borderBox.center;return cr(ne.descriptor.id,re)?ur(de,re.displacedBy.point):de},Au=function(ne,re){var de=ne.page.borderBox;return cr(ne.descriptor.id,re)?Ar(de,vn(re.displacedBy.point)):de},Ou=function(ee){var ne=ee.pageBorderBoxCenter,re=ee.viewport,de=ee.destination,ve=ee.insideDestination,pe=ee.afterCritical,Ae=ve.filter(function(ye){return Bt({target:Au(ye,pe),destination:de,viewport:re.frame,withDroppableDisplacement:!0})}).sort(function(ye,je){var qe=Na(ne,nl(de,Iu(ye,pe))),_e=Na(ne,nl(de,Iu(je,pe)));return qe<_e?-1:_ene.left&&ee.topne.top}function bl(ee){var ne=ee.pageBorderBox,re=ee.draggable,de=ee.candidates,ve=re.page.borderBox.center,pe=de.map(function(Ae){var ye=Ae.axis,je=na(Ae.axis.line,ne.center[ye.line],Ae.page.borderBox.center[ye.crossAxisLine]);return{id:Ae.descriptor.id,distance:Na(ve,je)}}).sort(function(Ae,ye){return ye.distance-Ae.distance});return pe[0]?pe[0].id:null}function ls(ee){var ne=ee.pageBorderBox,re=ee.draggable,de=ee.droppables,ve=Ft(de).filter(function(pe){if(!pe.isEnabled)return!1;var Ae=pe.subject.active;if(!Ae||!Cl(ne,Ae))return!1;if(_l(Ae)(ne.center))return!0;var ye=pe.axis,je=Ae.center[ye.crossAxisLine],qe=ne[ye.crossAxisStart],_e=ne[ye.crossAxisEnd],He=wr(Ae[ye.crossAxisStart],Ae[ye.crossAxisEnd]),Ve=He(qe),lt=He(_e);return!Ve&&!lt?!0:Ve?qeje});return ve.length?ve.length===1?ve[0].descriptor.id:bl({pageBorderBox:ne,draggable:re,candidates:ve}):null}var ku=function(ne,re){return Ca(Ar(ne,re))},us=function(ee,ne){var re=ee.frame;return re?ku(ne,re.scroll.diff.value):ne};function _o(ee){var ne=ee.displaced,re=ee.id;return!!(ne.visible[re]||ne.invisible[re])}function ss(ee){var ne=ee.draggable,re=ee.closest,de=ee.inHomeList;return re?de&&re.descriptor.index>ne.descriptor.index?re.descriptor.index-1:re.descriptor.index:null}var ds=function(ee){var ne=ee.pageBorderBoxWithDroppableScroll,re=ee.draggable,de=ee.destination,ve=ee.insideDestination,pe=ee.last,Ae=ee.viewport,ye=ee.afterCritical,je=de.axis,qe=ou(de.axis,re.displaceBy),_e=qe.value,He=ne[je.start],Ve=ne[je.end],lt=Pn(re,ve),Gt=Yr(lt,function(fa){var Sa=fa.descriptor.id,Ya=fa.page.borderBox.center[je.line],ir=cr(Sa,ye),vr=_o({displaced:pe,id:Sa});return ir?vr?Ve<=Ya:HeSa[ye.start]+ir&&HeSa[ye.start]-qe+ir&&_eSa[ye.start]+qe+ir&&HeSa[ye.start]+ir&&_e=Wo)return fo;var pe=ve/Wo,Ae=lo+Zo*pe,ye=de==="CANCEL"?Ae*bo:Ae;return Number(ye.toFixed(2))},Jo=function(ee){var ne=ee.impact,re=ee.draggable,de=ee.dimensions,ve=ee.viewport,pe=ee.afterCritical,Ae=de.draggables,ye=de.droppables,je=Di(ne),qe=je?ye[je]:null,_e=ye[re.descriptor.droppableId],He=Xu({impact:ne,draggable:re,draggables:Ae,afterCritical:pe,droppable:qe||_e,viewport:ve}),Ve=ur(He,re.client.borderBox.center);return Ve},Qo=function(ee){var ne=ee.draggables,re=ee.reason,de=ee.lastImpact,ve=ee.home,pe=ee.viewport,Ae=ee.onLiftImpact;if(!de.at||re!=="DROP"){var ye=Ju({draggables:ne,impact:Ae,destination:ve,viewport:pe,forceShouldAnimate:!0});return{impact:ye,didDropInsideDroppable:!1}}if(de.at.type==="REORDER")return{impact:de,didDropInsideDroppable:!0};var je=(0,Be.Z)({},de,{displaced:dr});return{impact:je,didDropInsideDroppable:!0}},Li=function(ee){var ne=ee.getState,re=ee.dispatch;return function(de){return function(ve){if(ve.type!=="DROP"){de(ve);return}var pe=ne(),Ae=ve.payload.reason;if(pe.phase==="COLLECTING"){re(pa({reason:Ae}));return}if(pe.phase!=="IDLE"){var ye=pe.phase==="DROP_PENDING"&&pe.isWaiting;ye&&Ht(!1),pe.phase==="DRAGGING"||pe.phase==="DROP_PENDING"||Ht(!1);var je=pe.critical,qe=pe.dimensions,_e=qe.draggables[pe.critical.draggable.id],He=Qo({reason:Ae,lastImpact:pe.impact,afterCritical:pe.afterCritical,onLiftImpact:pe.onLiftImpact,home:pe.dimensions.droppables[pe.critical.droppable.id],viewport:pe.viewport,draggables:pe.dimensions.draggables}),Ve=He.impact,lt=He.didDropInsideDroppable,Gt=lt?Za(Ve):null,aa=lt?rr(Ve):null,fa={index:je.draggable.index,droppableId:je.droppable.id},Sa={draggableId:_e.descriptor.id,type:_e.descriptor.type,source:fa,reason:Ae,mode:pe.movementMode,destination:Gt,combine:aa},Ya=Jo({impact:Ve,draggable:_e,dimensions:qe,viewport:pe.viewport,afterCritical:pe.afterCritical}),ir={critical:pe.critical,afterCritical:pe.afterCritical,result:Sa,impact:Ve},vr=!za(pe.current.client.offset,Ya)||!!Sa.combine;if(!vr){re(Rn({completed:ir}));return}var po=Dr({current:pe.current.client.offset,destination:Ya,reason:Ae}),io={newHomeClientOffset:Ya,dropDuration:po,completed:ir};re(Vt(io))}}}},ui=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Ni(ee){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(re){re.target!==window&&re.target!==window.document||ee()}}}function uo(ee){var ne=ee.onWindowScroll;function re(){ne(ui())}var de=Kn(re),ve=Ni(de),pe=Xn;function Ae(){return pe!==Xn}function ye(){Ae()&&Ht(!1),pe=ka(window,[ve])}function je(){Ae()||Ht(!1),de.cancel(),pe(),pe=Xn}return{start:ye,stop:je,isActive:Ae}}var hi=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},Bi=function(ee){var ne=uo({onWindowScroll:function(de){ee.dispatch(It({newScroll:de}))}});return function(re){return function(de){!ne.isActive()&&de.type==="INITIAL_PUBLISH"&&ne.start(),ne.isActive()&&hi(de)&&ne.stop(),re(de)}}},Zi=function(ee){var ne=!1,re=!1,de=setTimeout(function(){re=!0}),ve=function(Ae){ne||re||(ne=!0,ee(Ae),clearTimeout(de))};return ve.wasCalled=function(){return ne},ve},yi=function(){var ee=[],ne=function(pe){var Ae=Hr(ee,function(qe){return qe.timerId===pe});Ae===-1&&Ht(!1);var ye=ee.splice(Ae,1),je=ye[0];je.callback()},re=function(pe){var Ae=setTimeout(function(){return ne(Ae)}),ye={timerId:Ae,callback:pe};ee.push(ye)},de=function(){if(ee.length){var pe=[].concat(ee);ee.length=0,pe.forEach(function(Ae){clearTimeout(Ae.timerId),Ae.callback()})}};return{add:re,flush:de}},$i=function(ne,re){return ne==null&&re==null?!0:ne==null||re==null?!1:ne.droppableId===re.droppableId&&ne.index===re.index},cl=function(ne,re){return ne==null&&re==null?!0:ne==null||re==null?!1:ne.draggableId===re.draggableId&&ne.droppableId===re.droppableId},ro=function(ne,re){if(ne===re)return!0;var de=ne.draggable.id===re.draggable.id&&ne.draggable.droppableId===re.draggable.droppableId&&ne.draggable.type===re.draggable.type&&ne.draggable.index===re.draggable.index,ve=ne.droppable.id===re.droppable.id&&ne.droppable.type===re.droppable.type;return de&&ve},Do=function(ne,re){qn(),re(),Jl()},Go=function(ne,re){return{draggableId:ne.draggable.id,type:ne.droppable.type,source:{droppableId:ne.droppable.id,index:ne.draggable.index},mode:re}},Fi=function(ne,re,de,ve){if(!ne){de(ve(re));return}var pe=Zi(de),Ae={announce:pe};ne(re,Ae),pe.wasCalled()||de(ve(re))},Gi=function(ee,ne){var re=yi(),de=null,ve=function(Ve,lt){de&&Ht(!1),Do("onBeforeCapture",function(){var Gt=ee().onBeforeCapture;if(Gt){var aa={draggableId:Ve,mode:lt};Gt(aa)}})},pe=function(Ve,lt){de&&Ht(!1),Do("onBeforeDragStart",function(){var Gt=ee().onBeforeDragStart;Gt&&Gt(Go(Ve,lt))})},Ae=function(Ve,lt){de&&Ht(!1);var Gt=Go(Ve,lt);de={mode:lt,lastCritical:Ve,lastLocation:Gt.source,lastCombine:null},re.add(function(){Do("onDragStart",function(){return Fi(ee().onDragStart,Gt,ne,nn.onDragStart)})})},ye=function(Ve,lt){var Gt=Za(lt),aa=rr(lt);de||Ht(!1);var fa=!ro(Ve,de.lastCritical);fa&&(de.lastCritical=Ve);var Sa=!$i(de.lastLocation,Gt);Sa&&(de.lastLocation=Gt);var Ya=!cl(de.lastCombine,aa);if(Ya&&(de.lastCombine=aa),!(!fa&&!Sa&&!Ya)){var ir=(0,Be.Z)({},Go(Ve,de.mode),{combine:aa,destination:Gt});re.add(function(){Do("onDragUpdate",function(){return Fi(ee().onDragUpdate,ir,ne,nn.onDragUpdate)})})}},je=function(){de||Ht(!1),re.flush()},qe=function(Ve){de||Ht(!1),de=null,Do("onDragEnd",function(){return Fi(ee().onDragEnd,Ve,ne,nn.onDragEnd)})},_e=function(){if(de){var Ve=(0,Be.Z)({},Go(de.lastCritical,de.mode),{combine:null,destination:null,reason:"CANCEL"});qe(Ve)}};return{beforeCapture:ve,beforeStart:pe,start:Ae,update:ye,flush:je,drop:qe,abort:_e}},ci=function(ee,ne){var re=Gi(ee,ne);return function(de){return function(ve){return function(pe){if(pe.type==="BEFORE_INITIAL_CAPTURE"){re.beforeCapture(pe.payload.draggableId,pe.payload.movementMode);return}if(pe.type==="INITIAL_PUBLISH"){var Ae=pe.payload.critical;re.beforeStart(Ae,pe.payload.movementMode),ve(pe),re.start(Ae,pe.payload.movementMode);return}if(pe.type==="DROP_COMPLETE"){var ye=pe.payload.completed.result;re.flush(),ve(pe),re.drop(ye);return}if(ve(pe),pe.type==="FLUSH"){re.abort();return}var je=de.getState();je.phase==="DRAGGING"&&re.update(je.critical,je.impact)}}}},xi=function(ee){return function(ne){return function(re){if(re.type!=="DROP_ANIMATION_FINISHED"){ne(re);return}var de=ee.getState();de.phase!=="DROP_ANIMATING"&&Ht(!1),ee.dispatch(Rn({completed:de.completed}))}}},Bl=function(ee){var ne=null,re=null;function de(){re&&(cancelAnimationFrame(re),re=null),ne&&(ne(),ne=null)}return function(ve){return function(pe){if((pe.type==="FLUSH"||pe.type==="DROP_COMPLETE"||pe.type==="DROP_ANIMATION_FINISHED")&&de(),ve(pe),pe.type==="DROP_ANIMATE"){var Ae={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var je=ee.getState();je.phase==="DROP_ANIMATING"&&ee.dispatch(Ma())}};re=requestAnimationFrame(function(){re=null,ne=ka(window,[Ae])})}}}},Ki=function(ee){return function(){return function(ne){return function(re){(re.type==="DROP_COMPLETE"||re.type==="FLUSH"||re.type==="DROP_ANIMATE")&&ee.stopPublishing(),ne(re)}}}},_i=function(ee){var ne=!1;return function(){return function(re){return function(de){if(de.type==="INITIAL_PUBLISH"){ne=!0,ee.tryRecordFocus(de.payload.critical.draggable.id),re(de),ee.tryRestoreFocusRecorded();return}if(re(de),!!ne){if(de.type==="FLUSH"){ne=!1,ee.tryRestoreFocusRecorded();return}if(de.type==="DROP_COMPLETE"){ne=!1;var ve=de.payload.completed.result;ve.combine&&ee.tryShiftRecord(ve.draggableId,ve.combine.draggableId),ee.tryRestoreFocusRecorded()}}}}}},ql=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},lu=function(ee){return function(ne){return function(re){return function(de){if(ql(de)){ee.stop(),re(de);return}if(de.type==="INITIAL_PUBLISH"){re(de);var ve=ne.getState();ve.phase!=="DRAGGING"&&Ht(!1),ee.start(ve);return}re(de),ee.scroll(ne.getState())}}}},bn=function(ee){return function(ne){return function(re){if(ne(re),re.type==="PUBLISH_WHILE_DRAGGING"){var de=ee.getState();de.phase==="DROP_PENDING"&&(de.isWaiting||ee.dispatch(sn({reason:de.reason})))}}}},Hi=Re.qC,Pl=function(ee){var ne=ee.dimensionMarshal,re=ee.focusMarshal,de=ee.styleMarshal,ve=ee.getResponders,pe=ee.announce,Ae=ee.autoScroller;return(0,Re.MT)(vs,Hi((0,Re.md)(Jr(de),Ki(ne),ha(ne),Li,xi,Bl,bn,lu(Ae),Bi,_i(re),ci(ve,pe))))},Ji=function(){return{additions:{},removals:{},modified:{}}};function $l(ee){var ne=ee.registry,re=ee.callbacks,de=Ji(),ve=null,pe=function(){ve||(re.collectionStarting(),ve=requestAnimationFrame(function(){ve=null,qn();var _e=de,He=_e.additions,Ve=_e.removals,lt=_e.modified,Gt=Object.keys(He).map(function(Sa){return ne.draggable.getById(Sa).getDimension(gr)}).sort(function(Sa,Ya){return Sa.descriptor.index-Ya.descriptor.index}),aa=Object.keys(lt).map(function(Sa){var Ya=ne.droppable.getById(Sa),ir=Ya.callbacks.getScrollWhileDragging();return{droppableId:Sa,scroll:ir}}),fa={additions:Gt,removals:Object.keys(Ve),modified:aa};de=Ji(),Jl(),re.publish(fa)}))},Ae=function(_e){var He=_e.descriptor.id;de.additions[He]=_e,de.modified[_e.descriptor.droppableId]=!0,de.removals[He]&&delete de.removals[He],pe()},ye=function(_e){var He=_e.descriptor;de.removals[He.id]=!0,de.modified[He.droppableId]=!0,de.additions[He.id]&&delete de.additions[He.id],pe()},je=function(){ve&&(cancelAnimationFrame(ve),ve=null,de=Ji())};return{add:Ae,remove:ye,stop:je}}var kl=function(ee){var ne=ee.scrollHeight,re=ee.scrollWidth,de=ee.height,ve=ee.width,pe=ur({x:re,y:ne},{x:ve,y:de}),Ae={x:Math.max(0,pe.x),y:Math.max(0,pe.y)};return Ae},ol=function(){var ee=document.documentElement;return ee||Ht(!1),ee},si=function(){var ee=ol(),ne=kl({scrollHeight:ee.scrollHeight,scrollWidth:ee.scrollWidth,width:ee.clientWidth,height:ee.clientHeight});return ne},ti=function(){var ee=ui(),ne=si(),re=ee.y,de=ee.x,ve=ol(),pe=ve.clientWidth,Ae=ve.clientHeight,ye=de+pe,je=re+Ae,qe=Ca({top:re,left:de,right:ye,bottom:je}),_e={frame:qe,scroll:{initial:ee,current:ee,max:ne,diff:{value:gr,displacement:gr}}};return _e},Xi=function(ee){var ne=ee.critical,re=ee.scrollOptions,de=ee.registry;qn();var ve=ti(),pe=ve.scroll.current,Ae=ne.droppable,ye=de.droppable.getAllByType(Ae.type).map(function(He){return He.callbacks.getDimensionAndWatchScroll(pe,re)}),je=de.draggable.getAllByType(ne.draggable.type).map(function(He){return He.getDimension(pe)}),qe={draggables:xt(je),droppables:Kr(ye)};Jl();var _e={dimensions:qe,critical:ne,viewport:ve};return _e};function No(ee,ne,re){if(re.descriptor.id===ne.id||re.descriptor.type!==ne.type)return!1;var de=ee.droppable.getById(re.descriptor.droppableId);return de.descriptor.mode==="virtual"}var il=function(ee,ne){var re=null,de=$l({callbacks:{publish:ne.publishWhileDragging,collectionStarting:ne.collectionStarting},registry:ee}),ve=function(lt,Gt){ee.droppable.exists(lt)||Ht(!1),re&&ne.updateDroppableIsEnabled({id:lt,isEnabled:Gt})},pe=function(lt,Gt){re&&(ee.droppable.exists(lt)||Ht(!1),ne.updateDroppableIsCombineEnabled({id:lt,isCombineEnabled:Gt}))},Ae=function(lt,Gt){re&&(ee.droppable.exists(lt)||Ht(!1),ne.updateDroppableScroll({id:lt,newScroll:Gt}))},ye=function(lt,Gt){re&&ee.droppable.getById(lt).callbacks.scroll(Gt)},je=function(){if(re){de.stop();var lt=re.critical.droppable;ee.droppable.getAllByType(lt.type).forEach(function(Gt){return Gt.callbacks.dragStopped()}),re.unsubscribe(),re=null}},qe=function(lt){re||Ht(!1);var Gt=re.critical.draggable;lt.type==="ADDITION"&&No(ee,Gt,lt.value)&&de.add(lt.value),lt.type==="REMOVAL"&&No(ee,Gt,lt.value)&&de.remove(lt.value)},_e=function(lt){re&&Ht(!1);var Gt=ee.draggable.getById(lt.draggableId),aa=ee.droppable.getById(Gt.descriptor.droppableId),fa={draggable:Gt.descriptor,droppable:aa.descriptor},Sa=ee.subscribe(qe);return re={critical:fa,unsubscribe:Sa},Xi({critical:fa,registry:ee,scrollOptions:lt.scrollOptions})},He={updateDroppableIsEnabled:ve,updateDroppableIsCombineEnabled:pe,scrollDroppable:ye,updateDroppableScroll:Ae,startPublishing:_e,stopPublishing:je};return He},Ii=function(ee,ne){return ee.phase==="IDLE"?!0:ee.phase!=="DROP_ANIMATING"||ee.completed.result.draggableId===ne?!1:ee.completed.result.reason==="DROP"},xl=function(ee){window.scrollBy(ee.x,ee.y)},Ci=Rt(function(ee){return Ft(ee).filter(function(ne){return!(!ne.isEnabled||!ne.frame)})}),zi=function(ne,re){var de=Yr(Ci(re),function(ve){return ve.frame||Ht(!1),_l(ve.frame.pageMarginBox)(ne)});return de},zl=function(ee){var ne=ee.center,re=ee.destination,de=ee.droppables;if(re){var ve=de[re];return ve.frame?ve:null}var pe=zi(ne,de);return pe},$o={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ne){return Math.pow(ne,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},el=function(ee,ne){var re=ee[ne.size]*$o.startFromPercentage,de=ee[ne.size]*$o.maxScrollAtPercentage,ve={startScrollingFrom:re,maxScrollValueAt:de};return ve},wl=function(ee){var ne=ee.startOfRange,re=ee.endOfRange,de=ee.current,ve=re-ne;if(ve===0)return 0;var pe=de-ne,Ae=pe/ve;return Ae},la=1,Tl=function(ee,ne){if(ee>ne.startScrollingFrom)return 0;if(ee<=ne.maxScrollValueAt)return $o.maxPixelScroll;if(ee===ne.startScrollingFrom)return la;var re=wl({startOfRange:ne.maxScrollValueAt,endOfRange:ne.startScrollingFrom,current:ee}),de=1-re,ve=$o.maxPixelScroll*$o.ease(de);return Math.ceil(ve)},gl=$o.durationDampening.accelerateAt,ml=$o.durationDampening.stopDampeningAt,jl=function(ee,ne){var re=ne,de=ml,ve=Date.now(),pe=ve-re;if(pe>=ml)return ee;if(pene.height,pe=re.width>ne.width;return!pe&&!ve?de:pe&&ve?null:{x:pe?0:de.x,y:ve?0:de.y}},br=sr(function(ee){return ee===0?0:ee}),Va=function(ee){var ne=ee.dragStartTime,re=ee.container,de=ee.subject,ve=ee.center,pe=ee.shouldUseTimeDampening,Ae={top:ve.y-re.top,right:re.right-ve.x,bottom:re.bottom-ve.y,left:ve.x-re.left},ye=eu({container:re,distanceToEdges:Ae,dragStartTime:ne,axis:Rr,shouldUseTimeDampening:pe}),je=eu({container:re,distanceToEdges:Ae,dragStartTime:ne,axis:So,shouldUseTimeDampening:pe}),qe=br({x:je,y:ye});if(za(qe,gr))return null;var _e=Vl({container:re,subject:de,proposedScroll:qe});return _e?za(_e,gr)?null:_e:null},so=sr(function(ee){return ee===0?0:ee>0?1:-1}),Xo=function(){var ee=function(re,de){return re<0?re:re>de?re-de:0};return function(ne){var re=ne.current,de=ne.max,ve=ne.change,pe=ga(re,ve),Ae={x:ee(pe.x,de.x),y:ee(pe.y,de.y)};return za(Ae,gr)?null:Ae}}(),fl=function(ne){var re=ne.max,de=ne.current,ve=ne.change,pe={x:Math.max(de.x,re.x),y:Math.max(de.y,re.y)},Ae=so(ve),ye=Xo({max:pe,current:de,change:Ae});return!ye||Ae.x!==0&&ye.x===0||Ae.y!==0&&ye.y===0},mu=function(ne,re){return fl({current:ne.scroll.current,max:ne.scroll.max,change:re})},le=function(ne,re){if(!mu(ne,re))return null;var de=ne.scroll.max,ve=ne.scroll.current;return Xo({current:ve,max:de,change:re})},Se=function(ne,re){var de=ne.frame;return de?fl({current:de.scroll.current,max:de.scroll.max,change:re}):!1},Pe=function(ne,re){var de=ne.frame;return!de||!Se(ne,re)?null:Xo({current:de.scroll.current,max:de.scroll.max,change:re})},rt=function(ee){var ne=ee.viewport,re=ee.subject,de=ee.center,ve=ee.dragStartTime,pe=ee.shouldUseTimeDampening,Ae=Va({dragStartTime:ve,container:ne.frame,subject:re,center:de,shouldUseTimeDampening:pe});return Ae&&mu(ne,Ae)?Ae:null},mt=function(ee){var ne=ee.droppable,re=ee.subject,de=ee.center,ve=ee.dragStartTime,pe=ee.shouldUseTimeDampening,Ae=ne.frame;if(!Ae)return null;var ye=Va({dragStartTime:ve,container:Ae.pageMarginBox,subject:re,center:de,shouldUseTimeDampening:pe});return ye&&Se(ne,ye)?ye:null},Vn=function(ee){var ne=ee.state,re=ee.dragStartTime,de=ee.shouldUseTimeDampening,ve=ee.scrollWindow,pe=ee.scrollDroppable,Ae=ne.current.page.borderBoxCenter,ye=ne.dimensions.draggables[ne.critical.draggable.id],je=ye.page.marginBox;if(ne.isWindowScrollAllowed){var qe=ne.viewport,_e=rt({dragStartTime:re,viewport:qe,subject:je,center:Ae,shouldUseTimeDampening:de});if(_e){ve(_e);return}}var He=zl({center:Ae,destination:Di(ne.impact),droppables:ne.dimensions.droppables});if(He){var Ve=mt({dragStartTime:re,droppable:He,subject:je,center:Ae,shouldUseTimeDampening:de});Ve&&pe(He.descriptor.id,Ve)}},pn=function(ee){var ne=ee.scrollWindow,re=ee.scrollDroppable,de=Kn(ne),ve=Kn(re),pe=null,Ae=function(_e){pe||Ht(!1);var He=pe,Ve=He.shouldUseTimeDampening,lt=He.dragStartTime;Vn({state:_e,scrollWindow:de,scrollDroppable:ve,dragStartTime:lt,shouldUseTimeDampening:Ve})},ye=function(_e){qn(),pe&&Ht(!1);var He=Date.now(),Ve=!1,lt=function(){Ve=!0};Vn({state:_e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:lt,scrollDroppable:lt}),pe={dragStartTime:He,shouldUseTimeDampening:Ve},Jl(),Ve&&Ae(_e)},je=function(){pe&&(de.cancel(),ve.cancel(),pe=null)};return{start:ye,stop:je,scroll:Ae}},Jt=function(ee){var ne=ee.move,re=ee.scrollDroppable,de=ee.scrollWindow,ve=function(qe,_e){var He=ga(qe.current.client.selection,_e);ne({client:He})},pe=function(qe,_e){if(!Se(qe,_e))return _e;var He=Pe(qe,_e);if(!He)return re(qe.descriptor.id,_e),null;var Ve=ur(_e,He);re(qe.descriptor.id,Ve);var lt=ur(_e,Ve);return lt},Ae=function(qe,_e,He){if(!qe||!mu(_e,He))return He;var Ve=le(_e,He);if(!Ve)return de(He),null;var lt=ur(He,Ve);de(lt);var Gt=ur(He,lt);return Gt},ye=function(qe){var _e=qe.scrollJumpRequest;if(_e){var He=Di(qe.impact);He||Ht(!1);var Ve=pe(qe.dimensions.droppables[He],_e);if(Ve){var lt=qe.viewport,Gt=Ae(qe.isWindowScrollAllowed,lt,Ve);Gt&&ve(qe,Gt)}}};return ye},dt=function(ee){var ne=ee.scrollDroppable,re=ee.scrollWindow,de=ee.move,ve=pn({scrollWindow:re,scrollDroppable:ne}),pe=Jt({move:de,scrollWindow:re,scrollDroppable:ne}),Ae=function(qe){if(qe.phase==="DRAGGING"){if(qe.movementMode==="FLUID"){ve.scroll(qe);return}qe.scrollJumpRequest&&pe(qe)}},ye={scroll:Ae,start:ve.start,stop:ve.stop};return ye},$t="data-rbd",Bn=function(){var ee=$t+"-drag-handle";return{base:ee,draggableId:ee+"-draggable-id",contextId:ee+"-context-id"}}(),Ct=function(){var ee=$t+"-draggable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),yt=function(){var ee=$t+"-droppable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),ft={contextId:$t+"-scroll-container-context-id"},Fn=function(ne){return function(re){return"["+re+'="'+ne+'"]'}},qt=function(ne,re){return ne.map(function(de){var ve=de.styles[re];return ve?de.selector+" { "+ve+" }":""}).join(" ")},Ot="pointer-events: none;",en=function(ee){var ne=Fn(ee),re=function(){var ye=` cursor: -webkit-grab; cursor: grab; - `;return{selector:ne(wn.contextId),styles:{always:` + `;return{selector:ne(Bn.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; - `,resting:ye,dragging:Tt,dropAnimating:ye}}}(),de=function(){var ye=` + `,resting:ye,dragging:Ot,dropAnimating:ye}}}(),de=function(){var ye=` transition: `+Gn.outOfTheWay+`; - `;return{selector:ne(bt.contextId),styles:{dragging:ye,dropAnimating:ye,userCancel:ye}}}(),ve={selector:ne(Ct.contextId),styles:{always:"overflow-anchor: none;"}},pe={selector:"body",styles:{dragging:` + `;return{selector:ne(Ct.contextId),styles:{dragging:ye,dropAnimating:ye,userCancel:ye}}}(),ve={selector:ne(yt.contextId),styles:{always:"overflow-anchor: none;"}},pe={selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; @@ -385,9 +385,9 @@ The error may be correlated with this previous error: -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; - `}},Ae=[de,re,ve,pe];return{always:$t(Ae,"always"),resting:$t(Ae,"resting"),dragging:$t(Ae,"dragging"),dropAnimating:$t(Ae,"dropAnimating"),userCancel:$t(Ae,"userCancel")}},Ht=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect,ua=function(){var ne=document.querySelector("head");return ne||Gt(!1),ne},hn=function(ne){var re=document.createElement("style");return ne&&re.setAttribute("nonce",ne),re.type="text/css",re};function gn(ee,ne){var re=Sn(function(){return sn(ee)},[ee]),de=(0,b.useRef)(null),ve=(0,b.useRef)(null),pe=rn(Mt(function(He){var Ve=ve.current;Ve||Gt(!1),Ve.textContent=He}),[]),Ae=rn(function(He){var Ve=de.current;Ve||Gt(!1),Ve.textContent=He},[]);Ht(function(){!de.current&&!ve.current||Gt(!1);var He=hn(ne),Ve=hn(ne);return de.current=He,ve.current=Ve,He.setAttribute(qt+"-always",ee),Ve.setAttribute(qt+"-dynamic",ee),ua().appendChild(He),ua().appendChild(Ve),Ae(re.always),pe(re.resting),function(){var lt=function(aa){var fa=aa.current;fa||Gt(!1),ua().removeChild(fa),aa.current=null};lt(de),lt(ve)}},[ne,Ae,pe,re.always,re.resting,ee]);var ye=rn(function(){return pe(re.dragging)},[pe,re.dragging]),je=rn(function(He){if(He==="DROP"){pe(re.dropAnimating);return}pe(re.userCancel)},[pe,re.dropAnimating,re.userCancel]),qe=rn(function(){ve.current&&pe(re.resting)},[pe,re.resting]),_e=Sn(function(){return{dragging:ye,dropping:je,resting:qe}},[ye,je,qe]);return _e}var Zr=function(ee){return ee&&ee.ownerDocument?ee.ownerDocument.defaultView:window};function $r(ee){return ee instanceof Zr(ee).HTMLElement}function er(ee,ne){var re="["+wn.contextId+'="'+ee+'"]',de=hr(document.querySelectorAll(re));if(!de.length)return null;var ve=Yr(de,function(pe){return pe.getAttribute(wn.draggableId)===ne});return!ve||!$r(ve)?null:ve}function eo(ee){var ne=(0,b.useRef)({}),re=(0,b.useRef)(null),de=(0,b.useRef)(null),ve=(0,b.useRef)(!1),pe=rn(function(Ve,lt){var Zt={id:Ve,focus:lt};return ne.current[Ve]=Zt,function(){var fa=ne.current,Sa=fa[Ve];Sa!==Zt&&delete fa[Ve]}},[]),Ae=rn(function(Ve){var lt=er(ee,Ve);lt&<!==document.activeElement&<.focus()},[ee]),ye=rn(function(Ve,lt){re.current===Ve&&(re.current=lt)},[]),je=rn(function(){de.current||ve.current&&(de.current=requestAnimationFrame(function(){de.current=null;var Ve=re.current;Ve&&Ae(Ve)}))},[Ae]),qe=rn(function(Ve){re.current=null;var lt=document.activeElement;lt&<.getAttribute(wn.draggableId)===Ve&&(re.current=Ve)},[]);Ht(function(){return ve.current=!0,function(){ve.current=!1;var Ve=de.current;Ve&&cancelAnimationFrame(Ve)}},[]);var _e=Sn(function(){return{register:pe,tryRecordFocus:qe,tryRestoreFocusRecorded:je,tryShiftRecord:ye}},[pe,qe,je,ye]);return _e}function sa(){var ee={draggables:{},droppables:{}},ne=[];function re(He){return ne.push(He),function(){var lt=ne.indexOf(He);lt!==-1&&ne.splice(lt,1)}}function de(He){ne.length&&ne.forEach(function(Ve){return Ve(He)})}function ve(He){return ee.draggables[He]||null}function pe(He){var Ve=ve(He);return Ve||Gt(!1),Ve}var Ae={register:function(Ve){ee.draggables[Ve.descriptor.id]=Ve,de({type:"ADDITION",value:Ve})},update:function(Ve,lt){var Zt=ee.draggables[lt.descriptor.id];Zt&&Zt.uniqueId===Ve.uniqueId&&(delete ee.draggables[lt.descriptor.id],ee.draggables[Ve.descriptor.id]=Ve)},unregister:function(Ve){var lt=Ve.descriptor.id,Zt=ve(lt);Zt&&Ve.uniqueId===Zt.uniqueId&&(delete ee.draggables[lt],de({type:"REMOVAL",value:Ve}))},getById:pe,findById:ve,exists:function(Ve){return!!ve(Ve)},getAllByType:function(Ve){return Ja(ee.draggables).filter(function(lt){return lt.descriptor.type===Ve})}};function ye(He){return ee.droppables[He]||null}function je(He){var Ve=ye(He);return Ve||Gt(!1),Ve}var qe={register:function(Ve){ee.droppables[Ve.descriptor.id]=Ve},unregister:function(Ve){var lt=ye(Ve.descriptor.id);lt&&Ve.uniqueId===lt.uniqueId&&delete ee.droppables[Ve.descriptor.id]},getById:je,findById:ye,exists:function(Ve){return!!ye(Ve)},getAllByType:function(Ve){return Ja(ee.droppables).filter(function(lt){return lt.descriptor.type===Ve})}};function _e(){ee.draggables={},ee.droppables={},ne.length=0}return{draggable:Ae,droppable:qe,subscribe:re,clean:_e}}function to(){var ee=Sn(sa,[]);return(0,b.useEffect)(function(){return function(){requestAnimationFrame(ee.clean)}},[ee]),ee}var Xr=b.createContext(null),Fo=function(){var ee=document.body;return ee||Gt(!1),ee},kr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Lo=function(ne){return"rbd-announcement-"+ne};function wo(ee){var ne=Sn(function(){return Lo(ee)},[ee]),re=(0,b.useRef)(null);(0,b.useEffect)(function(){var pe=document.createElement("div");return re.current=pe,pe.id=ne,pe.setAttribute("aria-live","assertive"),pe.setAttribute("aria-atomic","true"),(0,xe.Z)(pe.style,kr),Fo().appendChild(pe),function(){setTimeout(function(){var je=Fo();je.contains(pe)&&je.removeChild(pe),pe===re.current&&(re.current=null)})}},[ne]);var de=rn(function(ve){var pe=re.current;if(pe){pe.textContent=ve;return}},[]);return de}var gi=0,kn={separator:"::"};function Ai(){gi=0}function pi(ee,ne){return ne===void 0&&(ne=kn),Sn(function(){return""+ee+ne.separator+gi++},[ne.separator,ee])}function Ho(ee){var ne=ee.contextId,re=ee.uniqueId;return"rbd-hidden-text-"+ne+"-"+re}function zn(ee){var ne=ee.contextId,re=ee.text,de=pi("hidden-text",{separator:"-"}),ve=Sn(function(){return Ho({contextId:ne,uniqueId:de})},[de,ne]);return(0,b.useEffect)(function(){var Ae=document.createElement("div");return Ae.id=ve,Ae.textContent=re,Ae.style.display="none",Fo().appendChild(Ae),function(){var je=Fo();je.contains(Ae)&&je.removeChild(Ae)}},[ve,re]),ve}var mi=b.createContext(null),Vi={react:"^16.8.5","react-dom":"^16.8.5"},Wi=/(\d+)\.(\d+)\.(\d+)/,ji=function(ne){var re=Wi.exec(ne);re==null&&Gt(!1);var de=Number(re[1]),ve=Number(re[2]),pe=Number(re[3]);return{major:de,minor:ve,patch:pe,raw:ne}},Qi=function(ne,re){return re.major>ne.major?!0:re.majorne.minor?!0:re.minor=ne.patch},wi=function(ee,ne){var re=ji(ee),de=ji(ne);Qi(re,de)},Wl=` + `}},Ae=[de,re,ve,pe];return{always:qt(Ae,"always"),resting:qt(Ae,"resting"),dragging:qt(Ae,"dragging"),dropAnimating:qt(Ae,"dropAnimating"),userCancel:qt(Ae,"userCancel")}},Zt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect,ua=function(){var ne=document.querySelector("head");return ne||Ht(!1),ne},hn=function(ne){var re=document.createElement("style");return ne&&re.setAttribute("nonce",ne),re.type="text/css",re};function gn(ee,ne){var re=Sn(function(){return en(ee)},[ee]),de=(0,b.useRef)(null),ve=(0,b.useRef)(null),pe=on(Rt(function(He){var Ve=ve.current;Ve||Ht(!1),Ve.textContent=He}),[]),Ae=on(function(He){var Ve=de.current;Ve||Ht(!1),Ve.textContent=He},[]);Zt(function(){!de.current&&!ve.current||Ht(!1);var He=hn(ne),Ve=hn(ne);return de.current=He,ve.current=Ve,He.setAttribute($t+"-always",ee),Ve.setAttribute($t+"-dynamic",ee),ua().appendChild(He),ua().appendChild(Ve),Ae(re.always),pe(re.resting),function(){var lt=function(aa){var fa=aa.current;fa||Ht(!1),ua().removeChild(fa),aa.current=null};lt(de),lt(ve)}},[ne,Ae,pe,re.always,re.resting,ee]);var ye=on(function(){return pe(re.dragging)},[pe,re.dragging]),je=on(function(He){if(He==="DROP"){pe(re.dropAnimating);return}pe(re.userCancel)},[pe,re.dropAnimating,re.userCancel]),qe=on(function(){ve.current&&pe(re.resting)},[pe,re.resting]),_e=Sn(function(){return{dragging:ye,dropping:je,resting:qe}},[ye,je,qe]);return _e}var Zr=function(ee){return ee&&ee.ownerDocument?ee.ownerDocument.defaultView:window};function $r(ee){return ee instanceof Zr(ee).HTMLElement}function er(ee,ne){var re="["+Bn.contextId+'="'+ee+'"]',de=hr(document.querySelectorAll(re));if(!de.length)return null;var ve=Yr(de,function(pe){return pe.getAttribute(Bn.draggableId)===ne});return!ve||!$r(ve)?null:ve}function eo(ee){var ne=(0,b.useRef)({}),re=(0,b.useRef)(null),de=(0,b.useRef)(null),ve=(0,b.useRef)(!1),pe=on(function(Ve,lt){var Gt={id:Ve,focus:lt};return ne.current[Ve]=Gt,function(){var fa=ne.current,Sa=fa[Ve];Sa!==Gt&&delete fa[Ve]}},[]),Ae=on(function(Ve){var lt=er(ee,Ve);lt&<!==document.activeElement&<.focus()},[ee]),ye=on(function(Ve,lt){re.current===Ve&&(re.current=lt)},[]),je=on(function(){de.current||ve.current&&(de.current=requestAnimationFrame(function(){de.current=null;var Ve=re.current;Ve&&Ae(Ve)}))},[Ae]),qe=on(function(Ve){re.current=null;var lt=document.activeElement;lt&<.getAttribute(Bn.draggableId)===Ve&&(re.current=Ve)},[]);Zt(function(){return ve.current=!0,function(){ve.current=!1;var Ve=de.current;Ve&&cancelAnimationFrame(Ve)}},[]);var _e=Sn(function(){return{register:pe,tryRecordFocus:qe,tryRestoreFocusRecorded:je,tryShiftRecord:ye}},[pe,qe,je,ye]);return _e}function sa(){var ee={draggables:{},droppables:{}},ne=[];function re(He){return ne.push(He),function(){var lt=ne.indexOf(He);lt!==-1&&ne.splice(lt,1)}}function de(He){ne.length&&ne.forEach(function(Ve){return Ve(He)})}function ve(He){return ee.draggables[He]||null}function pe(He){var Ve=ve(He);return Ve||Ht(!1),Ve}var Ae={register:function(Ve){ee.draggables[Ve.descriptor.id]=Ve,de({type:"ADDITION",value:Ve})},update:function(Ve,lt){var Gt=ee.draggables[lt.descriptor.id];Gt&&Gt.uniqueId===Ve.uniqueId&&(delete ee.draggables[lt.descriptor.id],ee.draggables[Ve.descriptor.id]=Ve)},unregister:function(Ve){var lt=Ve.descriptor.id,Gt=ve(lt);Gt&&Ve.uniqueId===Gt.uniqueId&&(delete ee.draggables[lt],de({type:"REMOVAL",value:Ve}))},getById:pe,findById:ve,exists:function(Ve){return!!ve(Ve)},getAllByType:function(Ve){return Ja(ee.draggables).filter(function(lt){return lt.descriptor.type===Ve})}};function ye(He){return ee.droppables[He]||null}function je(He){var Ve=ye(He);return Ve||Ht(!1),Ve}var qe={register:function(Ve){ee.droppables[Ve.descriptor.id]=Ve},unregister:function(Ve){var lt=ye(Ve.descriptor.id);lt&&Ve.uniqueId===lt.uniqueId&&delete ee.droppables[Ve.descriptor.id]},getById:je,findById:ye,exists:function(Ve){return!!ye(Ve)},getAllByType:function(Ve){return Ja(ee.droppables).filter(function(lt){return lt.descriptor.type===Ve})}};function _e(){ee.draggables={},ee.droppables={},ne.length=0}return{draggable:Ae,droppable:qe,subscribe:re,clean:_e}}function to(){var ee=Sn(sa,[]);return(0,b.useEffect)(function(){return function(){requestAnimationFrame(ee.clean)}},[ee]),ee}var Xr=b.createContext(null),Fo=function(){var ee=document.body;return ee||Ht(!1),ee},kr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Lo=function(ne){return"rbd-announcement-"+ne};function wo(ee){var ne=Sn(function(){return Lo(ee)},[ee]),re=(0,b.useRef)(null);(0,b.useEffect)(function(){var pe=document.createElement("div");return re.current=pe,pe.id=ne,pe.setAttribute("aria-live","assertive"),pe.setAttribute("aria-atomic","true"),(0,Be.Z)(pe.style,kr),Fo().appendChild(pe),function(){setTimeout(function(){var je=Fo();je.contains(pe)&&je.removeChild(pe),pe===re.current&&(re.current=null)})}},[ne]);var de=on(function(ve){var pe=re.current;if(pe){pe.textContent=ve;return}},[]);return de}var gi=0,kn={separator:"::"};function Ai(){gi=0}function pi(ee,ne){return ne===void 0&&(ne=kn),Sn(function(){return""+ee+ne.separator+gi++},[ne.separator,ee])}function Ho(ee){var ne=ee.contextId,re=ee.uniqueId;return"rbd-hidden-text-"+ne+"-"+re}function zn(ee){var ne=ee.contextId,re=ee.text,de=pi("hidden-text",{separator:"-"}),ve=Sn(function(){return Ho({contextId:ne,uniqueId:de})},[de,ne]);return(0,b.useEffect)(function(){var Ae=document.createElement("div");return Ae.id=ve,Ae.textContent=re,Ae.style.display="none",Fo().appendChild(Ae),function(){var je=Fo();je.contains(Ae)&&je.removeChild(Ae)}},[ve,re]),ve}var mi=b.createContext(null),Vi={react:"^16.8.5","react-dom":"^16.8.5"},Wi=/(\d+)\.(\d+)\.(\d+)/,ji=function(ne){var re=Wi.exec(ne);re==null&&Ht(!1);var de=Number(re[1]),ve=Number(re[2]),pe=Number(re[3]);return{major:de,minor:ve,patch:pe,raw:ne}},Qi=function(ne,re){return re.major>ne.major?!0:re.majorne.minor?!0:re.minor=ne.patch},wi=function(ee,ne){var re=ji(ee),de=ji(ne);Qi(re,de)},Wl=` We expect a html5 doctype: This is to ensure consistent browser layout and measurement More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md -`,Al=function(ee){var ne=ee.doctype;ne&&(ne.name.toLowerCase(),ne.publicId)};function vl(ee){}function Ro(ee,ne){}function Xo(){Ro(function(){wi(Vi.react,b.version),Al(document)},[])}function Ui(ee){var ne=(0,b.useRef)(ee);return(0,b.useEffect)(function(){ne.current=ee}),ne}function Tr(){var ee=null;function ne(){return!!ee}function re(Ae){return Ae===ee}function de(Ae){ee&&Gt(!1);var ye={abandon:Ae};return ee=ye,ye}function ve(){ee||Gt(!1),ee=null}function pe(){ee&&(ee.abandon(),ve())}return{isClaimed:ne,isActive:re,claim:de,release:ve,tryAbandon:pe}}var $o=9,bi=13,fi=27,Yi=32,pl=33,ni=34,Zl=35,Ll=36,ll=37,di=38,fu=39,Ql=40,ko,Hu=(ko={},ko[bi]=!0,ko[$o]=!0,ko),Cu=function(ee){Hu[ee.keyCode]&&ee.preventDefault()},Gl=function(){var ee="visibilitychange";if(typeof document=="undefined")return ee;var ne=[ee,"ms"+ee,"webkit"+ee,"moz"+ee,"o"+ee],re=Yr(ne,function(de){return"on"+de in document});return re||ee}(),hl=0,tu=5;function wu(ee,ne){return Math.abs(ne.x-ee.x)>=tu||Math.abs(ne.y-ee.y)>=tu}var uu={type:"IDLE"};function su(ee){var ne=ee.cancel,re=ee.completed,de=ee.getPhase,ve=ee.setPhase;return[{eventName:"mousemove",fn:function(Ae){var ye=Ae.button,je=Ae.clientX,qe=Ae.clientY;if(ye===hl){var _e={x:je,y:qe},He=de();if(He.type==="DRAGGING"){Ae.preventDefault(),He.actions.move(_e);return}He.type!=="PENDING"&&Gt(!1);var Ve=He.point;if(wu(Ve,_e)){Ae.preventDefault();var lt=He.actions.fluidLift(_e);ve({type:"DRAGGING",actions:lt})}}}},{eventName:"mouseup",fn:function(Ae){var ye=de();if(ye.type!=="DRAGGING"){ne();return}Ae.preventDefault(),ye.actions.drop({shouldBlockNextClick:!0}),re()}},{eventName:"mousedown",fn:function(Ae){de().type==="DRAGGING"&&Ae.preventDefault(),ne()}},{eventName:"keydown",fn:function(Ae){var ye=de();if(ye.type==="PENDING"){ne();return}if(Ae.keyCode===fi){Ae.preventDefault(),ne();return}Cu(Ae)}},{eventName:"resize",fn:ne},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){de().type==="PENDING"&&ne()}},{eventName:"webkitmouseforcedown",fn:function(Ae){var ye=de();if(ye.type==="IDLE"&&Gt(!1),ye.actions.shouldRespectForcePress()){ne();return}Ae.preventDefault()}},{eventName:Gl,fn:ne}]}function Kt(ee){var ne=(0,b.useRef)(uu),re=(0,b.useRef)(Xn),de=Sn(function(){return{eventName:"mousedown",fn:function(He){if(!He.defaultPrevented&&He.button===hl&&!(He.ctrlKey||He.metaKey||He.shiftKey||He.altKey)){var Ve=ee.findClosestDraggableId(He);if(Ve){var lt=ee.tryGetLock(Ve,Ae,{sourceEvent:He});if(lt){He.preventDefault();var Zt={x:He.clientX,y:He.clientY};re.current(),qe(lt,Zt)}}}}}},[ee]),ve=Sn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(He){if(!He.defaultPrevented){var Ve=ee.findClosestDraggableId(He);if(Ve){var lt=ee.findOptionsForDraggable(Ve);lt&&(lt.shouldRespectForcePress||ee.canGetLock(Ve)&&He.preventDefault())}}}}},[ee]),pe=rn(function(){var He={passive:!1,capture:!0};re.current=ka(window,[ve,de],He)},[ve,de]),Ae=rn(function(){var _e=ne.current;_e.type!=="IDLE"&&(ne.current=uu,re.current(),pe())},[pe]),ye=rn(function(){var _e=ne.current;Ae(),_e.type==="DRAGGING"&&_e.actions.cancel({shouldBlockNextClick:!0}),_e.type==="PENDING"&&_e.actions.abort()},[Ae]),je=rn(function(){var He={capture:!0,passive:!1},Ve=su({cancel:ye,completed:Ae,getPhase:function(){return ne.current},setPhase:function(Zt){ne.current=Zt}});re.current=ka(window,Ve,He)},[ye,Ae]),qe=rn(function(He,Ve){ne.current.type!=="IDLE"&&Gt(!1),ne.current={type:"PENDING",point:Ve,actions:He},je()},[je]);Ht(function(){return pe(),function(){re.current()}},[pe])}var Tn;function Vr(){}var Cr=(Tn={},Tn[ni]=!0,Tn[pl]=!0,Tn[Ll]=!0,Tn[Zl]=!0,Tn);function jr(ee,ne){function re(){ne(),ee.cancel()}function de(){ne(),ee.drop()}return[{eventName:"keydown",fn:function(pe){if(pe.keyCode===fi){pe.preventDefault(),re();return}if(pe.keyCode===Yi){pe.preventDefault(),de();return}if(pe.keyCode===Ql){pe.preventDefault(),ee.moveDown();return}if(pe.keyCode===di){pe.preventDefault(),ee.moveUp();return}if(pe.keyCode===fu){pe.preventDefault(),ee.moveRight();return}if(pe.keyCode===ll){pe.preventDefault(),ee.moveLeft();return}if(Cr[pe.keyCode]){pe.preventDefault();return}Cu(pe)}},{eventName:"mousedown",fn:re},{eventName:"mouseup",fn:re},{eventName:"click",fn:re},{eventName:"touchstart",fn:re},{eventName:"resize",fn:re},{eventName:"wheel",fn:re,options:{passive:!0}},{eventName:Gl,fn:re}]}function oo(ee){var ne=(0,b.useRef)(Vr),re=Sn(function(){return{eventName:"keydown",fn:function(pe){if(pe.defaultPrevented||pe.keyCode!==Yi)return;var Ae=ee.findClosestDraggableId(pe);if(!Ae)return;var ye=ee.tryGetLock(Ae,_e,{sourceEvent:pe});if(!ye)return;pe.preventDefault();var je=!0,qe=ye.snapLift();ne.current();function _e(){je||Gt(!1),je=!1,ne.current(),de()}ne.current=ka(window,jr(qe,_e),{capture:!0,passive:!1})}}},[ee]),de=rn(function(){var pe={passive:!1,capture:!0};ne.current=ka(window,[re],pe)},[re]);Ht(function(){return de(),function(){ne.current()}},[de])}var To={type:"IDLE"},co=120,Nl=.15;function Oi(ee){var ne=ee.cancel,re=ee.getPhase;return[{eventName:"orientationchange",fn:ne},{eventName:"resize",fn:ne},{eventName:"contextmenu",fn:function(ve){ve.preventDefault()}},{eventName:"keydown",fn:function(ve){if(re().type!=="DRAGGING"){ne();return}ve.keyCode===fi&&ve.preventDefault(),ne()}},{eventName:Gl,fn:ne}]}function du(ee){var ne=ee.cancel,re=ee.completed,de=ee.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(pe){var Ae=de();if(Ae.type!=="DRAGGING"){ne();return}Ae.hasMoved=!0;var ye=pe.touches[0],je=ye.clientX,qe=ye.clientY,_e={x:je,y:qe};pe.preventDefault(),Ae.actions.move(_e)}},{eventName:"touchend",fn:function(pe){var Ae=de();if(Ae.type!=="DRAGGING"){ne();return}pe.preventDefault(),Ae.actions.drop({shouldBlockNextClick:!0}),re()}},{eventName:"touchcancel",fn:function(pe){if(de().type!=="DRAGGING"){ne();return}pe.preventDefault(),ne()}},{eventName:"touchforcechange",fn:function(pe){var Ae=de();Ae.type==="IDLE"&&Gt(!1);var ye=pe.touches[0];if(ye){var je=ye.force>=Nl;if(je){var qe=Ae.actions.shouldRespectForcePress();if(Ae.type==="PENDING"){qe&&ne();return}if(qe){if(Ae.hasMoved){pe.preventDefault();return}ne();return}pe.preventDefault()}}}},{eventName:Gl,fn:ne}]}function nu(ee){var ne=(0,b.useRef)(To),re=(0,b.useRef)(Xn),de=rn(function(){return ne.current},[]),ve=rn(function(lt){ne.current=lt},[]),pe=Sn(function(){return{eventName:"touchstart",fn:function(lt){if(!lt.defaultPrevented){var Zt=ee.findClosestDraggableId(lt);if(Zt){var aa=ee.tryGetLock(Zt,ye,{sourceEvent:lt});if(aa){var fa=lt.touches[0],Sa=fa.clientX,Ya=fa.clientY,ir={x:Sa,y:Ya};re.current(),He(aa,ir)}}}}}},[ee]),Ae=rn(function(){var lt={capture:!0,passive:!1};re.current=ka(window,[pe],lt)},[pe]),ye=rn(function(){var Ve=ne.current;Ve.type!=="IDLE"&&(Ve.type==="PENDING"&&clearTimeout(Ve.longPressTimerId),ve(To),re.current(),Ae())},[Ae,ve]),je=rn(function(){var Ve=ne.current;ye(),Ve.type==="DRAGGING"&&Ve.actions.cancel({shouldBlockNextClick:!0}),Ve.type==="PENDING"&&Ve.actions.abort()},[ye]),qe=rn(function(){var lt={capture:!0,passive:!1},Zt={cancel:je,completed:ye,getPhase:de},aa=ka(window,du(Zt),lt),fa=ka(window,Oi(Zt),lt);re.current=function(){aa(),fa()}},[je,de,ye]),_e=rn(function(){var lt=de();lt.type!=="PENDING"&&Gt(!1);var Zt=lt.actions.fluidLift(lt.point);ve({type:"DRAGGING",actions:Zt,hasMoved:!1})},[de,ve]),He=rn(function(lt,Zt){de().type!=="IDLE"&&Gt(!1);var aa=setTimeout(_e,co);ve({type:"PENDING",point:Zt,actions:lt,longPressTimerId:aa}),qe()},[qe,de,ve,_e]);Ht(function(){return Ae(),function(){re.current();var Zt=de();Zt.type==="PENDING"&&(clearTimeout(Zt.longPressTimerId),ve(To))}},[de,Ae,ve]),Ht(function(){var lt=ka(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return lt},[])}function ps(ee){}var Hl={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Ul(ee,ne){if(ne==null)return!1;var re=!!Hl[ne.tagName.toLowerCase()];if(re)return!0;var de=ne.getAttribute("contenteditable");return de==="true"||de===""?!0:ne===ee?!1:Ul(ee,ne.parentElement)}function es(ee,ne){var re=ne.target;return $r(re)?Ul(ee,re):!1}var hs=function(ee){return Ca(ee.getBoundingClientRect()).center};function ts(ee){return ee instanceof Zr(ee).Element}var ns=function(){var ee="matches";if(typeof document=="undefined")return ee;var ne=[ee,"msMatchesSelector","webkitMatchesSelector"],re=Yr(ne,function(de){return de in Element.prototype});return re||ee}();function zu(ee,ne){return ee==null?null:ee[ns](ne)?ee:zu(ee.parentElement,ne)}function Es(ee,ne){return ee.closest?ee.closest(ne):zu(ee,ne)}function ea(ee){return"["+wn.contextId+'="'+ee+'"]'}function nr(ee,ne){var re=ne.target;if(!ts(re))return null;var de=ea(ee),ve=Es(re,de);return!ve||!$r(ve)?null:ve}function Wr(ee,ne){var re=nr(ee,ne);return re?re.getAttribute(wn.draggableId):null}function Po(ee,ne){var re="["+bt.contextId+'="'+ee+'"]',de=hr(document.querySelectorAll(re)),ve=Yr(de,function(pe){return pe.getAttribute(bt.id)===ne});return!ve||!$r(ve)?null:ve}function Ao(ee){ee.preventDefault()}function Ir(ee){var ne=ee.expected,re=ee.phase,de=ee.isLockActive,ve=ee.shouldWarn;return!(!de()||ne!==re)}function qr(ee){var ne=ee.lockAPI,re=ee.store,de=ee.registry,ve=ee.draggableId;if(ne.isClaimed())return!1;var pe=de.draggable.findById(ve);return!(!pe||!pe.options.isEnabled||!Ii(re.getState(),ve))}function zo(ee){var ne=ee.lockAPI,re=ee.contextId,de=ee.store,ve=ee.registry,pe=ee.draggableId,Ae=ee.forceSensorStop,ye=ee.sourceEvent,je=qr({lockAPI:ne,store:de,registry:ve,draggableId:pe});if(!je)return null;var qe=ve.draggable.getById(pe),_e=Po(re,qe.descriptor.id);if(!_e||ye&&!qe.options.canDragInteractiveElements&&es(_e,ye))return null;var He=ne.claim(Ae||Xn),Ve="PRE_DRAG";function lt(){return qe.options.shouldRespectForcePress}function Zt(){return ne.isActive(He)}function aa(io,Io){Ir({expected:io,phase:Ve,isLockActive:Zt,shouldWarn:!0})&&de.dispatch(Io())}var fa=aa.bind(null,"DRAGGING");function Sa(io){function Io(){ne.release(),Ve="COMPLETED"}Ve!=="PRE_DRAG"&&(Io(),Ve!=="PRE_DRAG"&&Gt(!1)),de.dispatch(ge(io.liftActionArgs)),Ve="DRAGGING";function Mi(Vo,Ri){if(Ri===void 0&&(Ri={shouldBlockNextClick:!1}),io.cleanup(),Ri.shouldBlockNextClick){var ul=ka(window,[{eventName:"click",fn:Ao,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(ul)}Io(),de.dispatch(un({reason:Vo}))}return(0,xe.Z)({isActive:function(){return Ir({expected:"DRAGGING",phase:Ve,isLockActive:Zt,shouldWarn:!1})},shouldRespectForcePress:lt,drop:function(Ri){return Mi("DROP",Ri)},cancel:function(Ri){return Mi("CANCEL",Ri)}},io.actions)}function Ya(io){var Io=Kn(function(Vo){fa(function(){return Dt({client:Vo})})}),Mi=Sa({liftActionArgs:{id:pe,clientSelection:io,movementMode:"FLUID"},cleanup:function(){return Io.cancel()},actions:{move:Io}});return(0,xe.Z)({},Mi,{move:Io})}function ir(){var io={moveUp:function(){return fa(ln)},moveRight:function(){return fa(In)},moveDown:function(){return fa(cn)},moveLeft:function(){return fa(On)}};return Sa({liftActionArgs:{id:pe,clientSelection:hs(_e),movementMode:"SNAP"},cleanup:Xn,actions:io})}function vr(){var io=Ir({expected:"PRE_DRAG",phase:Ve,isLockActive:Zt,shouldWarn:!0});io&&ne.release()}var po={isActive:function(){return Ir({expected:"PRE_DRAG",phase:Ve,isLockActive:Zt,shouldWarn:!1})},shouldRespectForcePress:lt,fluidLift:Ya,snapLift:ir,abort:vr};return po}var el=[Kt,oo,nu];function Il(ee){var ne=ee.contextId,re=ee.store,de=ee.registry,ve=ee.customSensors,pe=ee.enableDefaultSensors,Ae=[].concat(pe?el:[],ve||[]),ye=(0,b.useState)(function(){return Tr()})[0],je=rn(function(Ya,ir){Ya.isDragging&&!ir.isDragging&&ye.tryAbandon()},[ye]);Ht(function(){var Ya=re.getState(),ir=re.subscribe(function(){var vr=re.getState();je(Ya,vr),Ya=vr});return ir},[ye,re,je]),Ht(function(){return ye.tryAbandon},[ye.tryAbandon]);var qe=rn(function(Sa){return qr({lockAPI:ye,registry:de,store:re,draggableId:Sa})},[ye,de,re]),_e=rn(function(Sa,Ya,ir){return zo({lockAPI:ye,registry:de,contextId:ne,store:re,draggableId:Sa,forceSensorStop:Ya,sourceEvent:ir&&ir.sourceEvent?ir.sourceEvent:null})},[ne,ye,de,re]),He=rn(function(Sa){return Wr(ne,Sa)},[ne]),Ve=rn(function(Sa){var Ya=de.draggable.findById(Sa);return Ya?Ya.options:null},[de.draggable]),lt=rn(function(){ye.isClaimed()&&(ye.tryAbandon(),re.getState().phase!=="IDLE"&&re.dispatch(wt()))},[ye,re]),Zt=rn(ye.isClaimed,[ye]),aa=Sn(function(){return{canGetLock:qe,tryGetLock:_e,findClosestDraggableId:He,findOptionsForDraggable:Ve,tryReleaseLock:lt,isLockClaimed:Zt}},[qe,_e,He,Ve,lt,Zt]);ps(Ae);for(var fa=0;fa=tu||Math.abs(ne.y-ee.y)>=tu}var uu={type:"IDLE"};function su(ee){var ne=ee.cancel,re=ee.completed,de=ee.getPhase,ve=ee.setPhase;return[{eventName:"mousemove",fn:function(Ae){var ye=Ae.button,je=Ae.clientX,qe=Ae.clientY;if(ye===hl){var _e={x:je,y:qe},He=de();if(He.type==="DRAGGING"){Ae.preventDefault(),He.actions.move(_e);return}He.type!=="PENDING"&&Ht(!1);var Ve=He.point;if(wu(Ve,_e)){Ae.preventDefault();var lt=He.actions.fluidLift(_e);ve({type:"DRAGGING",actions:lt})}}}},{eventName:"mouseup",fn:function(Ae){var ye=de();if(ye.type!=="DRAGGING"){ne();return}Ae.preventDefault(),ye.actions.drop({shouldBlockNextClick:!0}),re()}},{eventName:"mousedown",fn:function(Ae){de().type==="DRAGGING"&&Ae.preventDefault(),ne()}},{eventName:"keydown",fn:function(Ae){var ye=de();if(ye.type==="PENDING"){ne();return}if(Ae.keyCode===fi){Ae.preventDefault(),ne();return}Cu(Ae)}},{eventName:"resize",fn:ne},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){de().type==="PENDING"&&ne()}},{eventName:"webkitmouseforcedown",fn:function(Ae){var ye=de();if(ye.type==="IDLE"&&Ht(!1),ye.actions.shouldRespectForcePress()){ne();return}Ae.preventDefault()}},{eventName:Gl,fn:ne}]}function Kt(ee){var ne=(0,b.useRef)(uu),re=(0,b.useRef)(Xn),de=Sn(function(){return{eventName:"mousedown",fn:function(He){if(!He.defaultPrevented&&He.button===hl&&!(He.ctrlKey||He.metaKey||He.shiftKey||He.altKey)){var Ve=ee.findClosestDraggableId(He);if(Ve){var lt=ee.tryGetLock(Ve,Ae,{sourceEvent:He});if(lt){He.preventDefault();var Gt={x:He.clientX,y:He.clientY};re.current(),qe(lt,Gt)}}}}}},[ee]),ve=Sn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(He){if(!He.defaultPrevented){var Ve=ee.findClosestDraggableId(He);if(Ve){var lt=ee.findOptionsForDraggable(Ve);lt&&(lt.shouldRespectForcePress||ee.canGetLock(Ve)&&He.preventDefault())}}}}},[ee]),pe=on(function(){var He={passive:!1,capture:!0};re.current=ka(window,[ve,de],He)},[ve,de]),Ae=on(function(){var _e=ne.current;_e.type!=="IDLE"&&(ne.current=uu,re.current(),pe())},[pe]),ye=on(function(){var _e=ne.current;Ae(),_e.type==="DRAGGING"&&_e.actions.cancel({shouldBlockNextClick:!0}),_e.type==="PENDING"&&_e.actions.abort()},[Ae]),je=on(function(){var He={capture:!0,passive:!1},Ve=su({cancel:ye,completed:Ae,getPhase:function(){return ne.current},setPhase:function(Gt){ne.current=Gt}});re.current=ka(window,Ve,He)},[ye,Ae]),qe=on(function(He,Ve){ne.current.type!=="IDLE"&&Ht(!1),ne.current={type:"PENDING",point:Ve,actions:He},je()},[je]);Zt(function(){return pe(),function(){re.current()}},[pe])}var Tn;function Vr(){}var Cr=(Tn={},Tn[ni]=!0,Tn[pl]=!0,Tn[Ll]=!0,Tn[Zl]=!0,Tn);function jr(ee,ne){function re(){ne(),ee.cancel()}function de(){ne(),ee.drop()}return[{eventName:"keydown",fn:function(pe){if(pe.keyCode===fi){pe.preventDefault(),re();return}if(pe.keyCode===Yi){pe.preventDefault(),de();return}if(pe.keyCode===Ql){pe.preventDefault(),ee.moveDown();return}if(pe.keyCode===di){pe.preventDefault(),ee.moveUp();return}if(pe.keyCode===fu){pe.preventDefault(),ee.moveRight();return}if(pe.keyCode===ll){pe.preventDefault(),ee.moveLeft();return}if(Cr[pe.keyCode]){pe.preventDefault();return}Cu(pe)}},{eventName:"mousedown",fn:re},{eventName:"mouseup",fn:re},{eventName:"click",fn:re},{eventName:"touchstart",fn:re},{eventName:"resize",fn:re},{eventName:"wheel",fn:re,options:{passive:!0}},{eventName:Gl,fn:re}]}function oo(ee){var ne=(0,b.useRef)(Vr),re=Sn(function(){return{eventName:"keydown",fn:function(pe){if(pe.defaultPrevented||pe.keyCode!==Yi)return;var Ae=ee.findClosestDraggableId(pe);if(!Ae)return;var ye=ee.tryGetLock(Ae,_e,{sourceEvent:pe});if(!ye)return;pe.preventDefault();var je=!0,qe=ye.snapLift();ne.current();function _e(){je||Ht(!1),je=!1,ne.current(),de()}ne.current=ka(window,jr(qe,_e),{capture:!0,passive:!1})}}},[ee]),de=on(function(){var pe={passive:!1,capture:!0};ne.current=ka(window,[re],pe)},[re]);Zt(function(){return de(),function(){ne.current()}},[de])}var To={type:"IDLE"},co=120,Nl=.15;function Oi(ee){var ne=ee.cancel,re=ee.getPhase;return[{eventName:"orientationchange",fn:ne},{eventName:"resize",fn:ne},{eventName:"contextmenu",fn:function(ve){ve.preventDefault()}},{eventName:"keydown",fn:function(ve){if(re().type!=="DRAGGING"){ne();return}ve.keyCode===fi&&ve.preventDefault(),ne()}},{eventName:Gl,fn:ne}]}function du(ee){var ne=ee.cancel,re=ee.completed,de=ee.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(pe){var Ae=de();if(Ae.type!=="DRAGGING"){ne();return}Ae.hasMoved=!0;var ye=pe.touches[0],je=ye.clientX,qe=ye.clientY,_e={x:je,y:qe};pe.preventDefault(),Ae.actions.move(_e)}},{eventName:"touchend",fn:function(pe){var Ae=de();if(Ae.type!=="DRAGGING"){ne();return}pe.preventDefault(),Ae.actions.drop({shouldBlockNextClick:!0}),re()}},{eventName:"touchcancel",fn:function(pe){if(de().type!=="DRAGGING"){ne();return}pe.preventDefault(),ne()}},{eventName:"touchforcechange",fn:function(pe){var Ae=de();Ae.type==="IDLE"&&Ht(!1);var ye=pe.touches[0];if(ye){var je=ye.force>=Nl;if(je){var qe=Ae.actions.shouldRespectForcePress();if(Ae.type==="PENDING"){qe&&ne();return}if(qe){if(Ae.hasMoved){pe.preventDefault();return}ne();return}pe.preventDefault()}}}},{eventName:Gl,fn:ne}]}function nu(ee){var ne=(0,b.useRef)(To),re=(0,b.useRef)(Xn),de=on(function(){return ne.current},[]),ve=on(function(lt){ne.current=lt},[]),pe=Sn(function(){return{eventName:"touchstart",fn:function(lt){if(!lt.defaultPrevented){var Gt=ee.findClosestDraggableId(lt);if(Gt){var aa=ee.tryGetLock(Gt,ye,{sourceEvent:lt});if(aa){var fa=lt.touches[0],Sa=fa.clientX,Ya=fa.clientY,ir={x:Sa,y:Ya};re.current(),He(aa,ir)}}}}}},[ee]),Ae=on(function(){var lt={capture:!0,passive:!1};re.current=ka(window,[pe],lt)},[pe]),ye=on(function(){var Ve=ne.current;Ve.type!=="IDLE"&&(Ve.type==="PENDING"&&clearTimeout(Ve.longPressTimerId),ve(To),re.current(),Ae())},[Ae,ve]),je=on(function(){var Ve=ne.current;ye(),Ve.type==="DRAGGING"&&Ve.actions.cancel({shouldBlockNextClick:!0}),Ve.type==="PENDING"&&Ve.actions.abort()},[ye]),qe=on(function(){var lt={capture:!0,passive:!1},Gt={cancel:je,completed:ye,getPhase:de},aa=ka(window,du(Gt),lt),fa=ka(window,Oi(Gt),lt);re.current=function(){aa(),fa()}},[je,de,ye]),_e=on(function(){var lt=de();lt.type!=="PENDING"&&Ht(!1);var Gt=lt.actions.fluidLift(lt.point);ve({type:"DRAGGING",actions:Gt,hasMoved:!1})},[de,ve]),He=on(function(lt,Gt){de().type!=="IDLE"&&Ht(!1);var aa=setTimeout(_e,co);ve({type:"PENDING",point:Gt,actions:lt,longPressTimerId:aa}),qe()},[qe,de,ve,_e]);Zt(function(){return Ae(),function(){re.current();var Gt=de();Gt.type==="PENDING"&&(clearTimeout(Gt.longPressTimerId),ve(To))}},[de,Ae,ve]),Zt(function(){var lt=ka(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return lt},[])}function ps(ee){}var Hl={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Ul(ee,ne){if(ne==null)return!1;var re=!!Hl[ne.tagName.toLowerCase()];if(re)return!0;var de=ne.getAttribute("contenteditable");return de==="true"||de===""?!0:ne===ee?!1:Ul(ee,ne.parentElement)}function es(ee,ne){var re=ne.target;return $r(re)?Ul(ee,re):!1}var hs=function(ee){return Ca(ee.getBoundingClientRect()).center};function ts(ee){return ee instanceof Zr(ee).Element}var ns=function(){var ee="matches";if(typeof document=="undefined")return ee;var ne=[ee,"msMatchesSelector","webkitMatchesSelector"],re=Yr(ne,function(de){return de in Element.prototype});return re||ee}();function zu(ee,ne){return ee==null?null:ee[ns](ne)?ee:zu(ee.parentElement,ne)}function Es(ee,ne){return ee.closest?ee.closest(ne):zu(ee,ne)}function ea(ee){return"["+Bn.contextId+'="'+ee+'"]'}function nr(ee,ne){var re=ne.target;if(!ts(re))return null;var de=ea(ee),ve=Es(re,de);return!ve||!$r(ve)?null:ve}function Wr(ee,ne){var re=nr(ee,ne);return re?re.getAttribute(Bn.draggableId):null}function Po(ee,ne){var re="["+Ct.contextId+'="'+ee+'"]',de=hr(document.querySelectorAll(re)),ve=Yr(de,function(pe){return pe.getAttribute(Ct.id)===ne});return!ve||!$r(ve)?null:ve}function Ao(ee){ee.preventDefault()}function Ir(ee){var ne=ee.expected,re=ee.phase,de=ee.isLockActive,ve=ee.shouldWarn;return!(!de()||ne!==re)}function qr(ee){var ne=ee.lockAPI,re=ee.store,de=ee.registry,ve=ee.draggableId;if(ne.isClaimed())return!1;var pe=de.draggable.findById(ve);return!(!pe||!pe.options.isEnabled||!Ii(re.getState(),ve))}function zo(ee){var ne=ee.lockAPI,re=ee.contextId,de=ee.store,ve=ee.registry,pe=ee.draggableId,Ae=ee.forceSensorStop,ye=ee.sourceEvent,je=qr({lockAPI:ne,store:de,registry:ve,draggableId:pe});if(!je)return null;var qe=ve.draggable.getById(pe),_e=Po(re,qe.descriptor.id);if(!_e||ye&&!qe.options.canDragInteractiveElements&&es(_e,ye))return null;var He=ne.claim(Ae||Xn),Ve="PRE_DRAG";function lt(){return qe.options.shouldRespectForcePress}function Gt(){return ne.isActive(He)}function aa(io,Io){Ir({expected:io,phase:Ve,isLockActive:Gt,shouldWarn:!0})&&de.dispatch(Io())}var fa=aa.bind(null,"DRAGGING");function Sa(io){function Io(){ne.release(),Ve="COMPLETED"}Ve!=="PRE_DRAG"&&(Io(),Ve!=="PRE_DRAG"&&Ht(!1)),de.dispatch(ge(io.liftActionArgs)),Ve="DRAGGING";function Mi(Vo,Ri){if(Ri===void 0&&(Ri={shouldBlockNextClick:!1}),io.cleanup(),Ri.shouldBlockNextClick){var ul=ka(window,[{eventName:"click",fn:Ao,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(ul)}Io(),de.dispatch(sn({reason:Vo}))}return(0,Be.Z)({isActive:function(){return Ir({expected:"DRAGGING",phase:Ve,isLockActive:Gt,shouldWarn:!1})},shouldRespectForcePress:lt,drop:function(Ri){return Mi("DROP",Ri)},cancel:function(Ri){return Mi("CANCEL",Ri)}},io.actions)}function Ya(io){var Io=Kn(function(Vo){fa(function(){return Dt({client:Vo})})}),Mi=Sa({liftActionArgs:{id:pe,clientSelection:io,movementMode:"FLUID"},cleanup:function(){return Io.cancel()},actions:{move:Io}});return(0,Be.Z)({},Mi,{move:Io})}function ir(){var io={moveUp:function(){return fa(un)},moveRight:function(){return fa(In)},moveDown:function(){return fa(cn)},moveLeft:function(){return fa(On)}};return Sa({liftActionArgs:{id:pe,clientSelection:hs(_e),movementMode:"SNAP"},cleanup:Xn,actions:io})}function vr(){var io=Ir({expected:"PRE_DRAG",phase:Ve,isLockActive:Gt,shouldWarn:!0});io&&ne.release()}var po={isActive:function(){return Ir({expected:"PRE_DRAG",phase:Ve,isLockActive:Gt,shouldWarn:!1})},shouldRespectForcePress:lt,fluidLift:Ya,snapLift:ir,abort:vr};return po}var tl=[Kt,oo,nu];function Il(ee){var ne=ee.contextId,re=ee.store,de=ee.registry,ve=ee.customSensors,pe=ee.enableDefaultSensors,Ae=[].concat(pe?tl:[],ve||[]),ye=(0,b.useState)(function(){return Tr()})[0],je=on(function(Ya,ir){Ya.isDragging&&!ir.isDragging&&ye.tryAbandon()},[ye]);Zt(function(){var Ya=re.getState(),ir=re.subscribe(function(){var vr=re.getState();je(Ya,vr),Ya=vr});return ir},[ye,re,je]),Zt(function(){return ye.tryAbandon},[ye.tryAbandon]);var qe=on(function(Sa){return qr({lockAPI:ye,registry:de,store:re,draggableId:Sa})},[ye,de,re]),_e=on(function(Sa,Ya,ir){return zo({lockAPI:ye,registry:de,contextId:ne,store:re,draggableId:Sa,forceSensorStop:Ya,sourceEvent:ir&&ir.sourceEvent?ir.sourceEvent:null})},[ne,ye,de,re]),He=on(function(Sa){return Wr(ne,Sa)},[ne]),Ve=on(function(Sa){var Ya=de.draggable.findById(Sa);return Ya?Ya.options:null},[de.draggable]),lt=on(function(){ye.isClaimed()&&(ye.tryAbandon(),re.getState().phase!=="IDLE"&&re.dispatch(wt()))},[ye,re]),Gt=on(ye.isClaimed,[ye]),aa=Sn(function(){return{canGetLock:qe,tryGetLock:_e,findClosestDraggableId:He,findOptionsForDraggable:Ve,tryReleaseLock:lt,isLockClaimed:Gt}},[qe,_e,He,Ve,lt,Gt]);ps(Ae);for(var fa=0;fale in ht?fi(ht,le,{enumerable:!0,configurable:!0,writable:!0,value:e}):ht[le]=e,Mo=(ht,le)=>{for(var e in le||(le={}))ql.call(le,e)&&Ql(ht,e,le[e]);if(Qa)for(var e of Qa(le))ei.call(le,e)&&Ql(ht,e,le[e]);return ht},Dl=(ht,le)=>mi(ht,vi(le));var ti=(ht,le)=>{var e={};for(var t in ht)ql.call(ht,t)&&le.indexOf(t)<0&&(e[t]=ht[t]);if(ht!=null&&Qa)for(var t of Qa(ht))le.indexOf(t)<0&&ei.call(ht,t)&&(e[t]=ht[t]);return e};(self.webpackChunk=self.webpackChunk||[]).push([[4105],{89489:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},59477:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},26227:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},49198:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},41464:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},52671:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},8657:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},56082:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},33853:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},11724:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},15075:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},43531:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},38819:function(ht,le,e){"use strict";e.d(le,{Z:function(){return F}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},L=P,T=e(7657),p=function(w,D){return l.createElement(T.Z,(0,t.Z)({},w,{ref:D,icon:L}))},n=l.forwardRef(p),F=n},47451:function(ht,le,e){"use strict";e.d(le,{Z:function(){return B}});var t=e(3113),l=e(59301),P=Object.defineProperty,L=Object.defineProperties,T=Object.getOwnPropertyDescriptors,p=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,W=(I,E,ne)=>E in I?P(I,E,{enumerable:!0,configurable:!0,writable:!0,value:ne}):I[E]=ne,w=(I,E)=>{for(var ne in E||(E={}))n.call(E,ne)&&W(I,ne,E[ne]);if(p)for(var ne of p(E))F.call(E,ne)&&W(I,ne,E[ne]);return I},D=(I,E)=>L(I,T(E)),g=(I,E)=>{var ne={};for(var k in I)n.call(I,k)&&E.indexOf(k)<0&&(ne[k]=I[k]);if(I!=null&&p)for(var k of p(I))E.indexOf(k)<0&&F.call(I,k)&&(ne[k]=I[k]);return ne},M=(I,E,ne)=>new Promise((k,de)=>{var ie=ae=>{try{A(ne.next(ae))}catch(C){de(C)}},H=ae=>{try{A(ne.throw(ae))}catch(C){de(C)}},A=ae=>ae.done?k(ae.value):Promise.resolve(ae.value).then(ie,H);A((ne=ne.apply(I,E)).next())});const B=I=>{var E=I,{children:ne}=E,k=g(E,["children"]);const[de,ie]=(0,l.useState)(!1);return l.createElement(t.ZP,D(w({},k),{loading:de,onClick:H=>M(void 0,null,function*(){try{ie(!0),yield k.onClick(H),ie(!1)}catch(A){console.error(A),ie(!1)}})}),ne)}},72638:function(ht,le,e){"use strict";e.d(le,{Z:function(){return D}});var t=e(59301),l=e(90115),P=e(8591),L=e(64866),T={flex_box_center:"flex_box_center___kVqBh",flex_space_between:"flex_space_between___FMnNq",flex_box_vertical_center:"flex_box_vertical_center___meESe",flex_box_center_end:"flex_box_center_end___KFpOb",flex_box_column:"flex_box_column___GHIK9",video:"video___nn_cD"},p=e(40185),n=e(59301),F=(g,M,B)=>new Promise((I,E)=>{var ne=ie=>{try{de(B.next(ie))}catch(H){E(H)}},k=ie=>{try{de(B.throw(ie))}catch(H){E(H)}},de=ie=>ie.done?I(ie.value):Promise.resolve(ie.value).then(ne,k);de((B=B.apply(g,M)).next())});const W=function(M,B){const I=M.split(","),E=I[0].match(/:(.*?);/)[1],ne=atob(I[1]);let k=ne.length;const de=new Uint8Array(k);for(;k--;)de[k]=ne.charCodeAt(k);return new Blob([de],{type:E})};var D=(0,t.forwardRef)(({time:g,number:M,supportCamera:B,take_photo:I,isExercise:E=!0,update:ne,onUserMediaLoaded:k},de)=>{const ie=(0,t.useRef)(),H=(0,t.useRef)(),A=(0,l.useParams)();let[ae,C]=(0,t.useState)([]),[S,J]=(0,t.useState)(0);const[te,z]=(0,t.useState)("");let[v,b]=(0,t.useState)();const[ce,q]=(0,t.useState)(0),x=(Te,tt)=>F(void 0,null,function*(){return(0,L.ZP)("/api/attachments.json",{method:"POST",body:{file_type:"base64",original_filename:Te,file:tt}})}),_=Te=>F(void 0,null,function*(){const tt=new Date().valueOf();if(Te){const mt=yield x(`\u7167\u7247${tt}`,Te);mt.status||(yield(0,p.Ju)({container_id:A.categoryId,container_type:"Exercise",attachment_id:mt==null?void 0:mt.id}))}});(0,t.useEffect)(()=>(Me(),()=>{rt(),V()}),[]),(0,t.useEffect)(()=>{S===2&&g&&M>0&&(he(),q(1))},[g]),(0,t.useEffect)(()=>{if(ce!==0){if(ce===2)clearInterval(v);else{let Te=0,tt=setInterval(()=>{ae.includes(Te)&&Ie(),Te++},1e3);b(tt)}return()=>clearInterval(v)}},[ce]),(0,t.useImperativeHandle)(de,()=>({handlePhoto:Ie,handleTakePhoto:je}));const V=()=>{q(2)},he=()=>{const Te=g/M,tt=[];function mt(De,ut){return parseInt(Math.floor(Math.random()*(ut-De+1))+De)}new Array(M).fill(0).map((De,ut)=>{I?tt.push(mt(Te*ut,Te*(ut+1))):ut==0?tt.push(0):tt.push(mt(Te*ut,Te*(ut+1)))}),ae=tt,C([...tt]),console.log(tt)},Me=()=>{navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=function(Te){const tt=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return tt?new Promise(function(mt,De){tt.call(navigator,Te,mt,De)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:640,height:480}}).then(function(Te){et.current=Te,B&&B(2),J(2),"srcObject"in ie.current?ie.current.srcObject=Te:ie.current.src=window.URL.createObjectURL(Te),ie.current.onloadedmetadata=function(tt){ie.current.play(),k&&k()},ie.current.addEventListener("ended",function(){console.log("\u64AD\u653E\u7ED3\u675F"),V(),E&&P.ZP.error({content:"\u60A8\u5DF2\u7ECF\u5173\u95ED\u4E86\u6444\u50CF\u5934\uFF0C\u8BF7\u572810\u79D2\u949F\u5185\u6062\u590D\u6444\u50CF\u5934\uFF0C\u5426\u5219\u5C06\u63A8\u51FA\u8003\u8BD5",duration:10,key:9998})},!1)}).catch(function(Te){J(1),B&&B(1),Te.message==="Permission denied"||Te.name==="NotAllowedError"?P.ZP.error("\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"):P.ZP.error("\u6444\u50CF\u5934\u83B7\u53D6\u5931\u8D25\uFF0C\u6216\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"),console.log("errname: "+Te.name),console.log("err: "+Te.message)})},Ie=()=>{try{H.current.width=ie.current.videoWidth,H.current.height=ie.current.videoHeight,H.current.getContext("2d").drawImage(ie.current,0,0,H.current.width,H.current.height),z(H.current.toDataURL("image/png")),_(H.current.toDataURL("image/png")),Ke(H.current.toDataURL("image/png"))}catch(Te){}},je=()=>{try{return H.current.width=ie.current.videoWidth,H.current.height=ie.current.videoHeight,H.current.getContext("2d").drawImage(ie.current,0,0,H.current.width,H.current.height),H.current.toDataURL("image/png")}catch(Te){}},et=(0,t.useRef)(),rt=()=>{try{et.current.getTracks().forEach(function(mt){mt.stop()}),ie.current.srcObject=null}catch(Te){}},Ke=Te=>F(void 0,null,function*(){const tt=new FormData;tt.append("file",W(Te,"1")),tt.append("1","123");var mt=new window.XMLHttpRequest;mt.withCredentials=!0,mt.addEventListener("load",function(De){let ut=JSON.parse(De.target.responseText);(0,L.ZP)(`/api/exercises/${id}/upload_photo.json`,{method:"post",body:{attachment_id:ut.id}})},!1),mt.addEventListener("error",function(De){console.error(De)},!1),mt.open("POST",`${ENV.API_SERVER}/api/attachments.json`),mt.send(tt)});return n.createElement(n.Fragment,null,S!==3&&n.createElement("aside",{className:T.video,id:"screenshot"},S===0&&n.createElement("span",null,"\u6B63\u5728\u5F00\u542F\u6444\u50CF\u5934..."),S===1&&n.createElement("span",null,"\u6444\u50CF\u5934\u5F00\u542F\u5931\u8D25"),S===2&&n.createElement("div",null,n.createElement("video",{width:"288",ref:ie,autoPlay:!0}),n.createElement("canvas",{style:{display:"none"},ref:H}))))})},98070:function(ht,le,e){"use strict";var t=e(90115),l=e(59301),P=e(8591),L=e(43418),T=e(3113),p=e(24334),n=e.n(p),F=e(64866),W=e(25537),w=e(72873),D=e(66649),g=e.n(D),M=e(10089),B=e(59301),I=Object.defineProperty,E=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,k=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,H=(J,te,z)=>te in J?I(J,te,{enumerable:!0,configurable:!0,writable:!0,value:z}):J[te]=z,A=(J,te)=>{for(var z in te||(te={}))de.call(te,z)&&H(J,z,te[z]);if(k)for(var z of k(te))ie.call(te,z)&&H(J,z,te[z]);return J},ae=(J,te)=>E(J,ne(te)),C=(J,te,z)=>new Promise((v,b)=>{var ce=_=>{try{x(z.next(_))}catch(V){b(V)}},q=_=>{try{x(z.throw(_))}catch(V){b(V)}},x=_=>_.done?v(_.value):Promise.resolve(_.value).then(ce,q);x((z=z.apply(J,te)).next())});const S=({ButtonProps:J,ButtonText:te,form:z,answerKey:v,hackidentifier:b="",items:ce={},setIsSubmitCode:q})=>{const[x,_]=(0,l.useState)(!1);let[V,he]=(0,l.useState)("");const Me=(0,t.useParams)(),[Ie,je]=(0,l.useState)({}),et=Me.type==="edit",rt=window.location.href.includes("problemset")?1:2;(0,l.useEffect)(()=>{(et||b)&&he(b||Me.id)},[Me]),(0,l.useEffect)(()=>{const De=M.Z.subscribe("BFill:Submit",()=>{mt()});return()=>{De()}},[V]),(0,l.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);function Ke(De,ut){return C(this,null,function*(){var St;let $e=z.getFieldValue("hack_codes"),ve=z.getFieldValue(v);if(!$e.code){P.ZP.info("\u7A0B\u5E8F\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF01");return}if(!$e.language){P.ZP.info("\u7F16\u7A0B\u8BED\u8A00\u4E0D\u80FD\u4E3A\u7A7A\uFF01");return}if(ve.length>0&&((St=ve.filter(Z=>!Z.answer_text))==null?void 0:St.length)>0){P.ZP.info("\u586B\u7A7A\u9879\u4E0D\u80FD\u4E3A\u7A7A\uFF01");return}let at=$e.code;return ve.length>0&&(ve==null||ve.map(Z=>{Z.multi_line?at=at.substring(0,at.indexOf("@\u2581\u2581@"))+Z.answer_text+at.substring(at.indexOf("@\u2581\u2581@")+4):at=at.substring(0,at.indexOf("@\u2581@"))+Z.answer_text+at.substring(at.indexOf("@\u2581@")+3)})),yield(0,W.n4)(ut,De||{code:p.Base64.encode(at),language:$e.language,answers:ve==null?void 0:ve.map(Z=>Z.answer_text)})})}function Te(De,ut){return C(this,null,function*(){let St=ce.userAnswer,$e=p.Base64.decode(ce.code);return St.length>0&&(St==null||St.map(at=>{at.multi_line?$e=$e.substring(0,$e.indexOf("@\u2581\u2581@"))+at.value+$e.substring($e.indexOf("@\u2581\u2581@")+4):$e=$e.substring(0,$e.indexOf("@\u2581@"))+at.value+$e.substring($e.indexOf("@\u2581@")+3)})),yield(0,W.n4)(ut,De||{code:p.Base64.encode($e),language:ce.language,answers:St==null?void 0:St.map(at=>at.value)})})}function tt(){return new Date().getTime()}const mt=()=>C(void 0,null,function*(){if(_(!0),x)return;let De=yield(0,F.ZP)(`/api/problems/${V}/start.json`,{method:"get"});const ut=yield Te(null,De==null?void 0:De.identifier);if((ut==null?void 0:ut.status)===0){let $e=function(){return C(this,null,function*(){var ve;const{status:at,message:Ee,data:Z}=yield(0,W.rX)(De==null?void 0:De.identifier,"submit"),m=tt()-St>10*1e3*((ve=ce==null?void 0:ce.userAnswer)==null?void 0:ve.length);if(at!==0&&!m&&setTimeout($e,1e3),m){L.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6",content:"\u8BF7\u68C0\u67E5\u7A0B\u5E8F\u4EE3\u7801\u662F\u5426\u5B58\u5728\u6B7B\u5FAA\u73AF"}),_(!1);return}at===0&&(_(!1),je(Z),Z.status===2&&(_(!1),L.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"})))})};const St=tt();yield(0,W.bM)(De==null?void 0:De.identifier,{}),$e(),M.Z.publish("BFill:Submit:Change",{value:!1})}else _(!1);q&&q(!0)});return B.createElement("div",null,B.createElement(T.ZP,ae(A({loading:x},J),{onClick:()=>C(void 0,null,function*(){var De,ut,St,$e;if(te==="\u63D0\u4EA4\u4EE3\u7801"){mt();return}let ve=!0;if(yield z.validateFields().then(()=>{ve=!1},m=>{var a,R,fe;m.errorFields[0].name.includes("standard_answers")?P.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):P.ZP.error(m.errorFields[0].errors[0]),((a=m.errorFields)==null?void 0:a.length)===0&&(ve=!1),z.scrollToField((fe=(R=m==null?void 0:m.errorFields)==null?void 0:R[0])==null?void 0:fe.name,{behavior:"smooth",block:"center"}),ve=!0}),ve||(_(!0),x))return;let at="",Ee=z.getFieldsValue();V?at=yield(0,F.ZP)(`/api/problems/${V}.json`,{method:"put",body:ae(A({},Ee),{hack:ae(A({},Ee==null?void 0:Ee.hack),{sub_discipline_id:($e=(St=Ee==null?void 0:Ee.hack)==null?void 0:St.sub_discipline_id)==null?void 0:$e[1],difficult:Ee.difficulty,item_banks_group_id:Ee.item_banks_group_id}),hack_codes:ae(A({},Ee.hack_codes),{code:p.Base64.encode(Ee.hack_codes.code)}),update_hack_sets:[A({},Ee.hack_sets)],is_blank:!0})}):(at=yield(0,F.ZP)("/api/problems.json",{method:"post",body:ae(A({},Ee),{hack:ae(A({},Ee==null?void 0:Ee.hack),{sub_discipline_id:(ut=(De=Ee==null?void 0:Ee.hack)==null?void 0:De.sub_discipline_id)==null?void 0:ut[1],difficult:Ee.difficulty,item_banks_group_id:Ee.item_banks_group_id}),hack_codes:ae(A({},Ee.hack_codes),{code:p.Base64.encode(Ee.hack_codes.code)}),hack_sets:[A({},Ee.hack_sets)],is_blank:!0})}),V=at==null?void 0:at.identifier,sessionStorage.projectFill=V,he(V));let Z=yield(0,F.ZP)(`/api/problems/${V}/start.json`,{method:"get"});const K=yield Ke(null,Z==null?void 0:Z.identifier);if((K==null?void 0:K.status)===0){let a=function(){return C(this,null,function*(){var R;const{status:fe,message:s,data:i}=yield(0,W.rX)(Z==null?void 0:Z.identifier,"submit"),$=tt()-m>(Ee.hack.time_limit+3)*1e3*((R=Ee==null?void 0:Ee.standard_answers)==null?void 0:R.length);if(fe!==0&&!$&&setTimeout(a,1e3),$){L.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),_(!1);return}fe===0&&(_(!1),je(i),i.status===2&&(_(!1),L.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"})))})};const m=tt();yield(0,W.bM)(Z==null?void 0:Z.identifier,{}),a()}else _(!1)})}),te),(Ie==null?void 0:Ie.id)&&Ie.status!==2&&B.createElement(L.default,{open:(Ie==null?void 0:Ie.id)&&Ie.status!==2,title:"\u8FD0\u884C\u7ED3\u679C",width:1100,footer:!1,onOk:()=>{je({})},onCancel:()=>{je({})}},B.createElement("div",{style:{maxHeight:600,overflow:"auto",marginBottom:15}},B.createElement("div",{style:{marginBottom:20,display:"flex",justifyContent:"space-between",fontSize:14}},B.createElement("div",null,B.createElement("span",{style:{color:"#666666"}},"\u72B6\u6001"),B.createElement("span",{style:{marginLeft:12,color:Ie.status!==0&&"#E30000"}},w.Im[Ie.status])),B.createElement("div",null,B.createElement("span",{style:{color:"#666666"}},"\u63D0\u4EA4\u65F6\u95F4"),B.createElement("span",{style:{marginLeft:12}},g()(Ie.created_at).format("YYYY-MM-DD HH:mm:ss"))),B.createElement("div",null,B.createElement("span",{style:{color:"#666666"}},"\u8BED\u8A00"),B.createElement("span",{style:{marginLeft:12}},Ie.language)),B.createElement("div",null,B.createElement("span",{style:{color:"#666666"}},"\u6267\u884C\u7528\u65F6"),B.createElement("span",{style:{marginLeft:12}},Ie.execute_time,"ms"))),B.createElement(w.Y4,A({},Ie)))))};le.Z=S},41919:function(ht,le,e){"use strict";e.r(le),e.d(le,{default:function(){return Xr}});var t=e(59301),l=e(90115),P=e(15845),L=e.n(P),T=e(31797),p=e(78241),n=e(43418),F=e(92832),W=e(8591),w=e(93948),D=e(95237),g=e(43604),M=e(5112),B=e(24905),I=e(6848),E=e(71418),ne=e(3113),k=e(15075),de=e(43531),ie=e(72638),H=e(41560),A=e(22566),ae=e(64866),C=e(59301),S=(U,me,qe)=>new Promise((Ft,en)=>{var gn=Ye=>{try{At(qe.next(Ye))}catch(xt){en(xt)}},Gt=Ye=>{try{At(qe.throw(Ye))}catch(xt){en(xt)}},At=Ye=>Ye.done?Ft(Ye.value):Promise.resolve(Ye.value).then(gn,Gt);At((qe=qe.apply(U,me)).next())}),te=({id:U,startRecording:me,startScreenshot:qe,onBack:Ft,onSuccuss:en,timeInSeconds:gn=[1,6,11,16,21,26,31,41,51,61,71,81,91,101,111,121,151,181,211,241,271,361,421,481,541,601,661]})=>{const Gt=(0,t.useRef)(null),At=(0,t.useRef)(null),Ye=(0,t.useRef)(null),xt=(0,t.useRef)(null),tn=(0,t.useRef)(!0),nn=(0,t.useRef)(""),[Sn,Cn]=(0,t.useState)(null);(0,t.useEffect)(()=>{me?_n():ot()},[me]),(0,t.useEffect)(()=>{qe?Cn(0):(clearTimeout(xt.current),Cn(null),nn.current="")},[qe]),(0,t.useEffect)(()=>(typeof Sn=="number"&&(gn!=null&&gn.includes(Sn)&&sr(),Sn<=720&&(xt.current=setTimeout(()=>{Cn(Sn+1)},1e3))),()=>{clearTimeout(xt.current)}),[Sn]);const Gn=(Mn="\u672A\u5171\u4EAB\u6574\u4E2A\u5C4F\u5E55\uFF0C\u7981\u6B62\u4F5C\u7B54\uFF01")=>S(void 0,null,function*(){W.ZP.warning(Mn),setTimeout(()=>{Ft()},1e3)}),_n=()=>S(void 0,null,function*(){var Mn,Yn,wr,Mr,Kn,$r;if(!(0,A.i7)()){Gn("\u8BF7\u4F7F\u7528\u8C37\u6B4C\u6D4F\u89C8\u5668\u7B54\u9898");return}if(Gt.current){W.ZP.warning("\u6B63\u5728\u5F55\u5236\u4E2D");return}tn.current=!0;try{let Jn;if((0,A.WX)())Jn=yield navigator.mediaDevices.getUserMedia({audio:{mandatory:{chromeMediaSource:"desktop"}},video:{mandatory:{chromeMediaSource:"desktop"}}});else if(Jn=yield navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"monitor"}}),((wr=(Yn=(Mn=Jn==null?void 0:Jn.getVideoTracks())==null?void 0:Mn[0])==null?void 0:Yn.getSettings())==null?void 0:wr.displaySurface)!=="monitor"){ot(),Gn();return}Gt.current=Jn,"srcObject"in At.current?At.current.srcObject=Gt.current:At.current.src=URL.createObjectURL(Gt.current),yield new Promise(Kr=>{At.current.addEventListener("loadedmetadata",()=>{Kr()})}),($r=(Kn=(Mr=Gt.current)==null?void 0:Mr.getVideoTracks())==null?void 0:Kn[0])==null||$r.addEventListener("ended",function(){tn.current&&Gn()}),At.current.play(),en()}catch(Jn){Gn("\u5C4F\u5E55\u5F55\u5236\u529F\u80FD\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u518D\u5171\u4EAB\u6574\u4E2A\u5C4F\u5E55\uFF0C\u5426\u5219\u65E0\u6CD5\u4F5C\u7B54")}}),ot=()=>{var Mn;tn.current=!1;const Yn=(Mn=Gt.current)==null?void 0:Mn.getTracks();Yn==null||Yn.forEach(wr=>{wr.stop()}),Gt.current=null},Ot=Mn=>{const Yn=Mn.split(",")[1],wr=Mn.split(",")[0].split(":")[1].split(";")[0],Mr=[...atob(Yn)],Kn=new Uint8Array(Mr.map($r=>$r.charCodeAt(0)));return new Blob([Kn],{type:wr})},$n=()=>S(void 0,null,function*(){const Mn=yield(0,ae.ZP)(`/api/exercises/${U}/exercise_user_screens.json`,{method:"post"});Mn.status===0&&(nn.current=Mn.exercise_abnormity_id,Cn(0))}),sr=()=>S(void 0,null,function*(){const Mn=Ye.current.getContext("2d");Ye.current.width=At.current.videoWidth,Ye.current.height=At.current.videoHeight,Mn.drawImage(At.current,0,0,Ye.current.width,Ye.current.height);const Yn=Ye.current.toDataURL("image/jpeg"),wr=Ot(Yn),Mr=new File([wr],"canvas_image.jpg",{type:"image/jpeg"}),Kn=new FormData;Kn.append("file",Mr);const $r=yield(0,ae.ZP)(`/api/exercises/${U}/exercise_user_screens/check.json`,{method:"get"});if(($r==null?void 0:$r.status)===0){const Jn=yield(0,ae.ZP)("/api/attachments.json",{method:"post",body:Kn},!0);if(Jn!=null&&Jn.id){const Kr=yield(0,ae.ZP)(`/api/exercises/${U}/exercise_user_screens.json`,{method:"post",body:{attachment_id:Jn==null?void 0:Jn.id,exercise_abnormity_id:nn.current}});Kr.status===0&&(nn.current=Kr.exercise_abnormity_id)}}});return C.createElement(C.Fragment,null,C.createElement("video",{ref:At,muted:!0,className:"hide"}),C.createElement("canvas",{id:"canvas",ref:Ye,className:"hide"}))},z=e(66649),v=e.n(z),b={flex_box_center:"flex_box_center___ariLt",flex_space_between:"flex_space_between___MC6sH",flex_box_vertical_center:"flex_box_vertical_center___tJHfy",flex_box_center_end:"flex_box_center_end___AfB_t",flex_box_column:"flex_box_column___xX4Fj",bg:"bg___nHBEZ",wrapper:"wrapper___TZKl8",exerciseAlert:"exerciseAlert___QUMwm",title:"title___rj6Q0",content:"content___Te7Wz",baseMargin:"baseMargin___BRmsh",noWrap:"noWrap___X6AS3",singleItem:"singleItem___GkaDR",questionIcons:"questionIcons___XoGYC",green:"green___iIYnV",orange:"orange___EIhiL",greenTip:"greenTip___WwiUh",redTip:"redTip___aWSt4",orangeTip:"orangeTip___j5g_H",pollDesc:"pollDesc___yDT2Q",answered:"answered___d2hE7",unanswer:"unanswer___AdOhE",anchor:"anchor___z3CaP",answerFlag:"answerFlag___wwTKa",flagActive:"flagActive___piG3D",flagHalf:"flagHalf___E29dd",answerStudentFlag:"answerStudentFlag___HRVt8",answerStudentActive:"answerStudentActive___kM6r4",questionItem:"questionItem___q6Hgu",questionScore:"questionScore___RW5tm",itemType:"itemType___pPqzT",itemFlag:"itemFlag___j5TSr",answerWrap:"answerWrap___G9dnn",answerSubjective:"answerSubjective___LRVKJ",otherInput:"otherInput___SxNAw",submitButton:"submitButton___zPo7H",randomFlag:"randomFlag___TOZ2H",answerTrue:"answerTrue___fgIW0",answerFalse:"answerFalse___gAQD8",answerHalf:"answerHalf___h40sX",renderHtml:"renderHtml___UerV1",simpleText:"simpleText___ZKx7o",answerYes:"answerYes___AA0oM",answerNo:"answerNo___gMGLy",answerInfo:"answerInfo___tB4Wz",answerProgress:"answerProgress___CbmXy",answerSheetWrap:"answerSheetWrap___aPipx",answerSheetQuestionTitle:"answerSheetQuestionTitle___P18Ss",answerSheet:"answerSheet___yhxK1",answerSheetItem:"answerSheetItem___DIH2V",qindex:"qindex___XuKA8",markIcon:"markIcon___ZTkqb",active:"active___WSsrt",yes:"yes___knuOK",no:"no___gv_cs",bf:"bf___pJfi5",partialActive:"partialActive___K6lsa",selected:"selected___grFyM",countDown:"countDown___OzcWL",cnText:"cnText___TvFjV",red:"red___Mge1h",refreshBtn:"refreshBtn___lK1MX",fold:"fold___id0EJ",cardList:"cardList___xKhMX",withQrcode:"withQrcode___qphZK",iframe:"iframe___pMMQx",eduTip:"eduTip___hXWhK",eduQrcode:"eduQrcode____qxcx",eduVideo:"eduVideo___mufWJ",eduUsername:"eduUsername___tiufh",startAnswer:"startAnswer___AA7n5",eduSubmit:"eduSubmit___UPIsJ",eduTitle:"eduTitle___jCJrO",wrpAnswer:"wrpAnswer___AVK1Y",simpleMd:"simpleMd___ZGbXj",videomodal:"videomodal___bYarH",mainPart:"mainPart___Fqvw7",userInfoText:"userInfoText___nqL8p",answerSheetBottom:"answerSheetBottom___yXf5u",tooltipWrap:"tooltipWrap___AxG9B",leftPart:"leftPart___P4Ook",grey:"grey___UBSG9",blue:"blue___aRuKK",rightPart:"rightPart___De4P3",questionPart:"questionPart___GTq66",questionTypeTitle:"questionTypeTitle___r6Fo9",questionTypeInfo:"questionTypeInfo___JfpWv",toIframeBtn:"toIframeBtn___gRKtn",bottom:"bottom___coSlv",markBtn:"markBtn___ZCLGF",changeButton:"changeButton___sBTjl",prevBtn:"prevBtn___lgCPG",analysisWrap:"analysisWrap___JoCnb",greyBg:"greyBg___vgesc",fixHeader:"fixHeader___RoNxE",exerciseTitle:"exerciseTitle___Dtp56",commitModal:"commitModal___zqvNA",commitItem:"commitItem___mjYF6",commitInfoLabel:"commitInfoLabel___KtIjW",commitInfoValue:"commitInfoValue___DCyRn",cameraHeader:"cameraHeader___Pqhwb",dottedLineWrapper:"dottedLineWrapper___ONO9c",leftHalfCircle:"leftHalfCircle___RNJN7",dottedLine:"dottedLine___qWy4W",rightHalfCircle:"rightHalfCircle___s3_hr",orangeNum:"orangeNum___IYnup",teachAnalysis:"teachAnalysis___FH6fk",teachAnalysisModal:"teachAnalysisModal___RcKVp",screenLock:"screenLock____A8oZ"},ce=e(24327),q=e(16624),x=e(16769),_=e(6455),V=e(55159),he=e(8658),Me=e(30720);const Ie={0:"c-red-ee4",1:"c-green"};var et=({item:U,answerData:me,isEducation:qe,sign:Ft,onBlur:en=()=>{}})=>{var gn,Gt,At,Ye,xt,tn;const nn=(0,t.useRef)(""),[Sn,Cn]=(0,t.useState)(),[Gn,_n]=(0,t.useState)(!1),[ot,Ot]=(0,t.useState)(qe||!1),$n=(0,t.useRef)(),sr=()=>{clearInterval($n.current),$n.current=setInterval(()=>{Gn&&en(nn.current,!0)},10*1e3)},Mn=Yn=>{en(nn.current);let wr="\u786E\u5B9A\u79BB\u5F00\u6B64\u9875\u9762\u5417?\u6B64\u9875\u6570\u636E\u53EF\u80FD\u4F1A\u4E22\u5931";return(Yn||window.event).returnValue=wr,wr};return(0,t.useEffect)(()=>{console.log("isFocus:",Gn),Gn&&sr()},[Gn]),(0,t.useEffect)(()=>{Cn(U==null?void 0:U.a_flag)},[U==null?void 0:U.a_flag]),(0,t.useEffect)(()=>()=>{clearInterval($n.current)},[]),t.createElement("div",null,((gn=me==null?void 0:me.exercise)==null?void 0:gn.user_exercise_status)===1?t.createElement("div",{className:"mb20"},t.createElement(D.Z,{justify:"space-between"},t.createElement(g.Z,null,"\u6211\u7684\u7B54\u6848"),((0,q.GJ)()||(0,q.dE)()&&((Gt=me==null?void 0:me.exercise)==null?void 0:Gt.user_exercise_status)>0&&((At=me==null?void 0:me.exercise)==null?void 0:At.open_score))&&t.createElement(g.Z,null,t.createElement(D.Z,{justify:"end",className:"mb20",align:"middle"},t.createElement("span",{className:"font14",style:{color:"#6A7283"}},"\u5F97\u5206"),t.createElement("span",{className:"font14 ml10"},(U==null?void 0:U.user_score)&&t.createElement("span",null,t.createElement("span",{className:Ie[Number(U==null?void 0:U.answer_status)]||"c-orange-ff9"},U==null?void 0:U.user_score),t.createElement("span",{style:{marginLeft:5,color:"#6A7283"}},"\u5206")),!(U!=null&&U.user_score)&&t.createElement("span",{className:"c-red"},"\u672A\u8BC4"))))),t.createElement("div",{className:b.simpleText},t.createElement(he.Z,{value:(Ye=U==null?void 0:U.user_answer)==null?void 0:Ye[0]}))):t.createElement("div",{className:U.user_score&&(U.user_score===U.question_score?"c-green":"c-red")},ot?t.createElement(Me.Z,{watch:!0,isFocus:!0,defaultValue:(xt=U==null?void 0:U.user_answer)==null?void 0:xt[0],id:U==null?void 0:U.question_id,className:"mt20",onChange:Yn=>{nn.current=Yn,_n(!0)},onBlur:()=>{setTimeout(()=>{en(nn.current)},200),clearInterval($n.current),_n(!1)}}):t.createElement("div",{onClick:()=>{var Yn;if(!U.repeat_answer&&((Yn=U==null?void 0:U.user_answer)==null?void 0:Yn.length)>0&&U.ques_status!==0){W.ZP.warning("\u8BE5\u9898\u4E0D\u5141\u8BB8\u518D\u4FEE\u6539\u7B54\u6848");return}Ft.current=!0,Ot(!0)},className:b.startAnswer},t.createElement("div",{className:"c-blue"},"\u70B9\u51FB\u5F00\u59CB\u4F5C\u7B54"))),(0,q.dE)()&&(U==null?void 0:U.standard_answer)&&t.createElement("div",{className:b.analysisWrap},t.createElement("div",{className:b.greyBg},t.createElement(D.Z,{className:"mb20",align:"middle"},t.createElement(g.Z,{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u7B54\u6848\u3011"),t.createElement(g.Z,null,t.createElement(he.Z,{value:(tn=U==null?void 0:U.standard_answer)==null?void 0:tn[0]}))),t.createElement(D.Z,{align:"middle"},t.createElement("span",{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u89E3\u6790\u3011"),t.createElement(he.Z,{className:b.renderHtml,value:U==null?void 0:U.analysis})))))},rt=e(57809),Te=({item:U,answerData:me,isEducation:qe,onBlur:Ft=()=>{}})=>{var en,gn,Gt,At;const Ye=(0,t.useRef)(""),[xt,tn]=(0,t.useState)(),[nn,Sn]=(0,t.useState)(!1),[Cn,Gn]=(0,t.useState)(!1),[_n,ot]=(0,t.useState)(qe||!1),[Ot,$n]=(0,t.useState)(0),sr=(0,t.useRef)(U.kp_content||""),Mn=(0,t.useRef)(U.kp_clazz),Yn=(0,t.useRef)(),wr=(0,t.useMemo)(()=>{var Kn,$r;return($r=(Kn=Ye.current)==null?void 0:Kn.replace(/[\n|\r|\t]/g,""))==null?void 0:$r.length},[Ye.current]),Mr=()=>{clearInterval(Yn.current),Yn.current=setInterval(()=>{Cn&&Ft(Ye.current,sr.current,Mn.current)},30*1e3)};return(0,t.useEffect)(()=>{console.log("isFocus:",Cn),Mr()},[Cn]),(0,t.useEffect)(()=>{tn(U==null?void 0:U.a_flag)},[U==null?void 0:U.a_flag]),(0,t.useEffect)(()=>()=>{clearInterval(Yn.current)},[]),t.createElement("div",null,((en=me==null?void 0:me.exercise)==null?void 0:en.user_exercise_status)===1?t.createElement("div",null,t.createElement("div",{className:"mt30"},t.createElement("strong",null,"\u4F5C\u6587\u9898\u76EE\uFF1A"),t.createElement("br",null),t.createElement(F.default,{disabled:!0,className:"mt10",value:sr.current,onChange:Kn=>{sr.current=Kn.target.value,$n(Ot+1)},onBlur:()=>{Ft(Ye.current,sr.current,Mn.current),Gn(!1)}})),t.createElement("div",{className:"mt30"},t.createElement("strong",null,"\u4F5C\u54C1\u7C7B\u578B\uFF1A"),t.createElement("br",null),t.createElement(rt.default,{disabled:!0,className:"mt10 w100",placeholder:"\u8BF7\u9009\u62E9\u4F5C\u54C1\u7C7B\u578B",value:Mn.current,onChange:Kn=>{Mn.current=Kn,$n(Ot+1)},onBlur:()=>{Ft(Ye.current,sr.current,Mn.current),Gn(!1)}},t.createElement(rt.default.Option,{key:1,value:"\u79D1\u666E"},"\u79D1\u666E"),t.createElement(rt.default.Option,{key:2,value:"\u79D1\u5E7B"},"\u79D1\u5E7B"))),t.createElement("p",{className:"mt10 mb0"},"\u4F5C\u54C1\u5185\u5BB9\uFF1A"),t.createElement("div",{className:b.simpleText},t.createElement(he.Z,{value:(gn=U==null?void 0:U.user_answer)==null?void 0:gn[0]}))):t.createElement("div",null,t.createElement("div",{className:"mt30"},t.createElement("strong",null,"\u4F5C\u6587\u9898\u76EE\uFF1A"),t.createElement("br",null),t.createElement(F.default,{className:"mt10",maxLength:60,onBlur:()=>Ft(Ye.current,sr.current,Mn.current),placeholder:"\u8BF7\u8F93\u5165\u4F5C\u6587\u9898\u76EE(\u6700\u591A60\u4E2A\u5B57)",value:sr.current,onChange:Kn=>{sr.current=Kn.target.value,$n(Ot+1)}})),t.createElement("div",{className:"mt30"},t.createElement("strong",null,"\u4F5C\u6587\u7C7B\u578B\uFF1A"),t.createElement("br",null),t.createElement(rt.default,{className:"mt10 w100",placeholder:"\u8BF7\u9009\u62E9\u4F5C\u54C1\u7C7B\u578B",value:Mn.current,onChange:Kn=>{Mn.current=Kn,Ft(Kn.current,sr.current,Mn.current),$n(Ot+1)}},t.createElement(rt.default.Option,{key:1,value:"\u79D1\u666E"},"\u79D1\u666E"),t.createElement(rt.default.Option,{key:2,value:"\u79D1\u5E7B"},"\u79D1\u5E7B"))),t.createElement("div",{className:"mt30 mb20"},t.createElement("div",{className:U.user_score&&(U.user_score===U.question_score?"c-green":"c-red")},t.createElement("strong",null,"\u4F5C\u6587\u5185\u5BB9\uFF1A"),t.createElement("br",null),t.createElement("div",{className:"mt10 relative"},t.createElement("span",{className:"c-blue",style:{position:nn?"fixed":"absolute",top:nn?61:4,left:10,zIndex:106}},"\u5DF2\u8F93\u5165",wr,"\u5B57"),_n?t.createElement(Me.Z,{className:b.simpleMd,disablePaste:!0,hidetoolBar:qe,height:qe?"60vh":150,isFocus:!0,defaultValue:(Gt=U==null?void 0:U.user_answer)==null?void 0:Gt[0],id:U==null?void 0:U.question_id,onFullScreen:Kn=>Sn(Kn),onChange:Kn=>{Ye.current=Kn,Gn(!0),$n(Ot+1)},onBlur:()=>{Ft(Ye.current,sr.current,Mn.current),Gn(!1)}}):t.createElement("div",{onClick:()=>ot(!0),className:b.startAnswer},t.createElement("div",{className:"c-blue"},"\u70B9\u51FB\u5F00\u59CB\u4F5C\u7B54")))))),(0,q.dE)()&&(U==null?void 0:U.standard_answer)&&t.createElement("div",null,t.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),t.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},t.createElement(he.Z,{value:(At=U==null?void 0:U.standard_answer)==null?void 0:At[0]}))))},tt=e(79817),mt=e(1710),De=e(58466),ut={score:"score___mcGn7",wrap:"wrap___h11sQ"},$e=({score:U})=>U?t.createElement("span",{className:ut.wrap},"\u5F97\u5206",t.createElement("span",{className:`${ut.score} ml10 mr5`},U),"\u5206"):t.createElement("span",{className:"c-red"},"\u672A\u8BC4"),ve={flex_box_center:"flex_box_center___xK64P",flex_space_between:"flex_space_between___BNBCA",flex_box_vertical_center:"flex_box_vertical_center___ConJK",flex_box_center_end:"flex_box_center_end___L08sz",flex_box_column:"flex_box_column___hvk0E",shixunWrp:"shixunWrp___FTFC6",fill:"fill___H_Qd6",index:"index___PaSVJ",success:"success___fz_F7",fail:"fail___ftXSv",fillInput:"fillInput___q_sSb",shixunWrapper:"shixunWrapper___toGqF",score:"score___AsYGZ",name:"name___hawfX",programWrapper:"programWrapper___zVQPT",desc:"desc___MFIu5",content:"content___QuE41",analysisWrap:"analysisWrap___qGPzJ",greyBg:"greyBg___FIDIB"},at=e(46499),Ee=e(59301),Z=Object.defineProperty,K=Object.defineProperties,m=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,s=(U,me,qe)=>me in U?Z(U,me,{enumerable:!0,configurable:!0,writable:!0,value:qe}):U[me]=qe,i=(U,me)=>{for(var qe in me||(me={}))R.call(me,qe)&&s(U,qe,me[qe]);if(a)for(var qe of a(me))fe.call(me,qe)&&s(U,qe,me[qe]);return U},X=(U,me)=>K(U,m(me));const $={0:"c-red-ee4",1:"c-green"};var Q=({item:U,answerData:me,exerciseId:qe,coursesId:Ft})=>{var en,gn,Gt,At,Ye;const[xt,tn]=(0,t.useState)([]),[nn,Sn]=(0,t.useState)([]),Cn=(0,l.useDispatch)();(0,t.useEffect)(()=>{var ot,Ot,$n,sr,Mn,Yn,wr,Mr,Kn,$r,Jn,Kr,qr;if(!((ot=U==null?void 0:U.shixun_details)!=null&&ot.length))return;let ao=[],wo=[];for(let ro=0;ro<((Ot=U==null?void 0:U.shixun_details)==null?void 0:Ot.length);ro++){for(let uo=0;uo<(U==null?void 0:U.shixun_details[ro].stage_list.length);uo++){let yo=U==null?void 0:U.shixun_details[ro].stage_list[uo];ao.push(i(i({},yo),{operation:(Yn=(Mn=(sr=($n=U==null?void 0:U.shixun_details)==null?void 0:$n[ro])==null?void 0:sr.shixun_detail)==null?void 0:Mn[0])==null?void 0:Yn.game_identifier,is_jupyter:U==null?void 0:U.is_jupyter,is_jupyter_lab:U==null?void 0:U.is_jupyter_lab}))}if((Mr=(wr=U==null?void 0:U.shixun_details)==null?void 0:wr[ro])!=null&&Mr.shixun_detail){const uo=(Jn=($r=(Kn=U==null?void 0:U.shixun_details)==null?void 0:Kn[ro])==null?void 0:$r.shixun_detail)==null?void 0:Jn[0],yo=(qr=(Kr=U==null?void 0:U.shixun_details[ro].stage_list)==null?void 0:Kr.find(Ln=>(Ln==null?void 0:Ln.game_identifier)===(uo==null?void 0:uo.game_identifier)))==null?void 0:qr.user_score;wo.push(X(i({},uo),{user_score:yo}))}}Sn(wo),tn(ao)},[U==null?void 0:U.shixun_details]);const Gn=[{title:"\u9898\u76EE",dataIndex:"position",key:"position",width:60,align:"center"},{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",key:"name",ellipsis:!0,align:"center",render:(ot,Ot)=>Ee.createElement("span",{className:"overflowHidden1",style:{maxWidth:"400px",color:"#0152d9",cursor:"pointer"},title:ot&&ot.length>25?ot:"",onClick:()=>{(0,A.xg)(`/tasks/${Ft}/${qe}/${Ot.game_identifier}/exercise`)}},ot)},!(U!=null&&U.unity_3d&&(U==null?void 0:U.vrs_type)==1)&&{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",align:"center",width:76,render:(ot,Ot)=>Ee.createElement("span",null,Ot.evaluate_count?Ot.evaluate_count:Ee.createElement("span",{className:"color-grey-9"},"--"))},{title:"\u5F00\u59CB\u8003\u8BD5\u65F6\u95F4",key:"user_start_at",dataIndex:"user_start_at",width:140,align:"center",render:(ot,Ot)=>Ee.createElement("span",null,ot?v()(ot).format("YYYY-MM-DD HH:mm"):"--")},{title:"\u5B8C\u6210\u65F6\u95F4",key:"endTime",dataIndex:"endTime",width:140,align:"center",render:(ot,Ot)=>{let $n=!1;return Ot.finished_time&&(me!=null&&me.exercise)&&(me!=null&&me.exercise_answer_user)&&((me==null?void 0:me.exercise.time)===-1?$n=v()(me==null?void 0:me.exercise.end_time).isBefore(Ot.finished_time):$n=v()(me==null?void 0:me.exercise_answer_user.start_at).add(me==null?void 0:me.exercise.time,"m").isBefore(Ot.finished_time)),Ee.createElement("span",null,Ot.finished_time||Ee.createElement("span",{className:"c-grey-999"},"--"),Ee.createElement("span",{className:"c-orange-ff9 "},$n?"\uFF08\u5DF2\u8D85\u65F6\uFF09":""))}},{title:"\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",width:100,align:"center",render:(ot,Ot)=>Ee.createElement("span",null,Ot.time_consuming||Ee.createElement("span",{className:"color-grey-9"},"--"))},{title:"\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",key:"view_answer",align:"center",width:76,render:(ot,Ot)=>Ee.createElement("span",null,Ot.view_answer?"\u5DF2\u67E5\u770B":"\u672A\u67E5\u770B")},{title:"\u5F97\u5206",dataIndex:"user_score",key:"user_score",align:"center",width:60,render:ot=>Ee.createElement("span",{style:{color:"#FA6400"}},ot,"\u5206")},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",align:"center",width:60,render:(ot,Ot,$n)=>ot&&!Ot.is_jupyter&&!Ot.is_jupyter_lab?Ot!=null&&Ot.unity_3d?Ee.createElement("span",{className:"c-blue current",onClick:()=>{Cn({type:"classroomList/setActionTabs",payload:{key:"\u91C7\u96C6\u70B9\u5F97\u5206\u8BE6\u60C5",data:Ot}})}},"\u8BE6\u60C5"):Ee.createElement(tt.default,{affix:!1},Ee.createElement(tt.default.Link,{href:`#challenge_${U==null?void 0:U.question_id}${$n}`,title:Ee.createElement("span",{style:{color:"#0152d9",fontSize:14}},"\u67E5\u770B")})):Ee.createElement("span",{className:"c-grey-999"},"--")}].filter(ot=>!!ot);console.log(nn);const _n={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return Ee.createElement("div",null,((en=U==null?void 0:U.shixun)==null?void 0:en.length)>0&&Ee.createElement("div",{className:ve.shixunWrapper},(gn=U==null?void 0:U.shixun)==null?void 0:gn.map(function(ot,Ot){return Ee.createElement(D.Z,{className:"mb20",justify:"space-between"},Ee.createElement(g.Z,{flex:"1"},Ee.createElement("span",{className:ve.score},"(",ot.challenge_score,"\u5206)"),Ee.createElement("span",{className:ve.name},ot.challenge_name," ")),Ee.createElement(g.Z,null,!ot.answer_status&&Ee.createElement("span",{className:"font14",style:{color:"#FA6400"}},"\u672A\u5B8C\u6210"),!!ot.answer_status&&Ee.createElement("span",{className:"font14",style:{color:"#37AD83"}},"\u5DF2\u5B8C\u6210")))})),((Gt=me==null?void 0:me.exercise)==null?void 0:Gt.student_commit_status)!==0||((At=me==null?void 0:me.exercise)==null?void 0:At.user_exercise_status)!==0?Ee.createElement(Ee.Fragment,null,!!(xt!=null&&xt.length)&&Ee.createElement("div",null,Ee.createElement(D.Z,{justify:"space-between",className:"mb10",align:"middle"},Ee.createElement(g.Z,{className:"font14 c-grey-666"},"\u8003\u6838\u6210\u7EE9"),Ee.createElement(g.Z,null,Ee.createElement($e,{score:U==null?void 0:U.user_score}))),Ee.createElement(mt.default,{columns:Gn,dataSource:xt,pagination:!1})),!!(nn!=null&&nn.length)&&Ee.createElement("div",null,Ee.createElement("p",{className:"font16 c-grey-666 mt10"},"\u5B9E\u8BAD\u8BE6\u60C5"),nn==null?void 0:nn.map((ot,Ot)=>Ee.createElement("div",{id:`challenge_${U==null?void 0:U.question_id}${Ot}`,className:"mt5"},Ee.createElement(D.Z,null,Ee.createElement("span",{className:"font14 mr15"}," \u7B2C",ot.position,"\u5173"),Ee.createElement(l.Link,{className:"current c-black font14",target:"_blank",to:`/tasks/${Ft}/${qe}/${ot.game_identifier}/exercise`},ot.name),Ee.createElement(g.Z,{style:{marginLeft:"auto"}},Ee.createElement($e,{score:ot.user_score}))),(ot==null?void 0:ot.st)===0&&ot.passed_code&&Ee.createElement("aside",{className:ve.shixunWrp},Ee.createElement("h2",null,"\u7B2C\u4E00\u6B21\u901A\u5173\u7684\u4EE3\u7801\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09",Ee.createElement("span",{className:"c-light-black"},ot.path)),Ee.createElement(De.ZP,{height:300,language:"python",theme:"default",value:ot.passed_code,options:_n})))))):Ee.createElement(Ee.Fragment,null,(0,q.dE)()&&Ee.createElement(he.Z,{className:"c-grey-999 mt20 mb20",value:U==null?void 0:U.question_title}),(Ye=U==null?void 0:U.shixun)==null?void 0:Ye.map((ot,Ot)=>Ee.createElement("p",{className:"font16 c-grey-666 mb5",key:Ot},Ee.createElement("span",{className:"mr20"},"\u7B2C",ot==null?void 0:ot.challenge_position,"\u5173 ",ot==null?void 0:ot.challenge_name),Ee.createElement("span",null,ot==null?void 0:ot.challenge_score,"\u5206")))),Ee.createElement(at.Z,null))},Re=e(24334),Pe=e(9683),Se=e(59301);const Ne={0:"c-red-ee4",1:"c-green"};var d=({item:U,answerData:me})=>{var qe,Ft,en;const[gn,Gt]=(0,t.useState)([]);(0,t.useEffect)(()=>{var xt,tn;((xt=U==null?void 0:U.evaluate_codes)==null?void 0:xt.length)>0?Gt((tn=U==null?void 0:U.evaluate_codes)==null?void 0:tn.map((nn,Sn)=>({key:Sn+1,error_msg:nn!=null&&nn.error_msg?Re.Base64.decode(nn==null?void 0:nn.error_msg):""}))):Gt([{key:"--",error_msg:"--"}])},[U==null?void 0:U.evaluate_codes]);const At=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:(xt,tn)=>Se.createElement("span",null,tn.key)},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:(xt,tn)=>Se.createElement("span",null,tn.error_msg?tn.error_msg:"--")}],Ye={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return Se.createElement("div",{className:`${ve.programWrapper}`},Se.createElement("div",{className:ve.desc},"\u9898\u76EE\u63CF\u8FF0"),Se.createElement("div",{className:ve.content},Se.createElement(he.Z,{value:U==null?void 0:U.description})),((qe=me==null?void 0:me.exercise)==null?void 0:qe.user_exercise_status)===1&&Se.createElement(D.Z,{justify:"end",className:"mt40"},Se.createElement(g.Z,null,Se.createElement($e,{score:U==null?void 0:U.user_score}))),(U==null?void 0:U.passed_code)&&Se.createElement("aside",{className:ve.shixunWrp},Se.createElement(D.Z,{align:"middle",justify:"space-between",style:{height:30,padding:"0 7px"}},Se.createElement("b",null,"\u7B2C\u4E00\u6B21\u8BC4\u6D4B\u901A\u8FC7\u7684\u4EE3\u7801\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09"),Se.createElement(Pe.Z,{title:"\u7F16\u7A0B\u8BED\u8A00",dataSource:[U==null?void 0:U.language]})),Se.createElement(De.ZP,{style:{border:"1px solid #ccc"},height:300,language:"python",theme:"vs-light",value:U!=null&&U.passed_code?Re.Base64.decode(U==null?void 0:U.passed_code):"",options:Ye})),((Ft=me==null?void 0:me.exercise)==null?void 0:Ft.user_exercise_status)===1&&((en=me==null?void 0:me.exercise)==null?void 0:en.answer_open)&&Se.createElement("div",{style:{background:"#F6F7F9"},className:"mt30 p20"},Se.createElement("div",{style:{marginBottom:"20px",fontSize:"16px",display:"flex"}},Se.createElement("span",{style:{whiteSpace:"nowrap"}},"\u3010\u7B54\u6848\u3011"),Se.createElement(he.Z,{value:(U==null?void 0:U.standard_answer)||""})),Se.createElement("div",{style:{fontSize:"16px",display:"flex"}},Se.createElement("span",{style:{whiteSpace:"nowrap"}},"\u3010\u89E3\u6790\u3011"),Se.createElement(he.Z,{value:(U==null?void 0:U.analysis)||"\u6682\u65E0\u89E3\u6790"}))))},Y=e(78926),se=Object.defineProperty,xe=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,ct=(U,me,qe)=>me in U?se(U,me,{enumerable:!0,configurable:!0,writable:!0,value:qe}):U[me]=qe,Bt=(U,me)=>{for(var qe in me||(me={}))He.call(me,qe)&&ct(U,qe,me[qe]);if(_e)for(var qe of _e(me))Je.call(me,qe)&&ct(U,qe,me[qe]);return U},wt=(U,me)=>xe(U,Fe(me)),Dt=(U,me,qe)=>new Promise((Ft,en)=>{var gn=Ye=>{try{At(qe.next(Ye))}catch(xt){en(xt)}},Gt=Ye=>{try{At(qe.throw(Ye))}catch(xt){en(xt)}},At=Ye=>Ye.done?Ft(Ye.value):Promise.resolve(Ye.value).then(gn,Gt);At((qe=qe.apply(U,me)).next())});const{TextArea:mn}=F.default,ln={0:"c-red-ee4",1:"c-green"};var En=({sign:U,item:me,answerData:qe,onBlur:Ft=()=>{}})=>{var en,gn,Gt,At;const[Ye,xt]=(0,t.useState)([]),[tn,nn]=(0,t.useState)([]),Sn=(0,t.useRef)(),Cn=(0,t.useRef)(),[Gn]=(0,l.useSearchParams)();return(0,t.useEffect)(()=>{var _n,ot;if(Gn.get("check")){let Ot=[];Ot=(_n=me==null?void 0:me.standard_answer)==null?void 0:_n.map($n=>{var sr,Mn;return wt(Bt({},$n),{choice_id:$n.position,answer_text:((Mn=(sr=me==null?void 0:me.user_answer)==null?void 0:sr.find(Yn=>Yn.choice_id===$n.choice_id))==null?void 0:Mn.answer_text)||""})}),Sn.current=Ot,xt(Ot)}else{let Ot=[];Ot=(ot=me==null?void 0:me.standard_answers)==null?void 0:ot.map($n=>{var sr,Mn;return wt(Bt({},$n),{choice_id:$n.position,answer_text:((Mn=(sr=me==null?void 0:me.user_answer)==null?void 0:sr.find(Yn=>Yn.choice_id===$n.position))==null?void 0:Mn.answer_text)||""})}),Sn.current=Ot,xt(Ot)}},[me==null?void 0:me.user_answer]),t.createElement("div",null,Ye==null?void 0:Ye.map((_n,ot)=>{var Ot,$n,sr,Mn,Yn;return t.createElement(D.Z,{key:ot,className:`${ve.baseMargin} ${ve.fill}`,align:"middle"},t.createElement(g.Z,{className:ve.index},"\u586B\u7A7A\u9879",ot+1),t.createElement(g.Z,{flex:"430px",className:"ml20 mr20"},(_n==null?void 0:_n.model)===1?t.createElement(F.default,{name:"sign",placeholder:"\u8BF7\u8F93\u5165\u7B54\u6848",disabled:!me.repeat_answer&&((Ot=me==null?void 0:me.user_answer)==null?void 0:Ot.length)>0&&me.ques_status!==0||!!(qe!=null&&qe.exercise.commit_status),value:_n==null?void 0:_n.answer_text,onChange:wr=>{Ye[ot].answer_text=wr.target.value,xt([...Ye])},onFocus:()=>{U.current=!0},onBlur:wr=>{setTimeout(()=>Dt(void 0,null,function*(){const Mr=yield Ft(_n==null?void 0:_n.answer_text,ot+1,Ye);if(Mr.status){const Kn=tn.slice();Kn[ot]={status:"fail",errorText:Mr.message},Cn.current=Kn,nn(Kn)}else{const Kn=tn.slice();Kn[ot]={status:"success",errorText:""},Cn.current=Kn,nn(Kn)}}),200)},className:`${me.user_score&&(me.user_score===me.question_score?"c-green":"c-red")} ${ve.fillInput}`}):t.createElement(Y.Z,{value:_n==null?void 0:_n.answer_text,disabled:!me.repeat_answer&&(($n=me==null?void 0:me.user_answer)==null?void 0:$n.length)>0&&me.ques_status!==0||!!(qe!=null&&qe.exercise.commit_status),onChange:wr=>Dt(void 0,null,function*(){var Mr,Kn;Ye[ot].answer_text=wr,xt([...Ye]);const $r=yield Ft(_n==null?void 0:_n.answer_text,ot+1,Ye);if($r.status){const Jn=((Kn=Cn==null?void 0:Cn.current)==null?void 0:Kn.slice())||[].slice();Jn[ot]={status:"fail",errorText:$r.message},Cn.current=Jn,nn(Jn)}else{const Jn=((Mr=Cn==null?void 0:Cn.current)==null?void 0:Mr.slice())||[].slice();Jn[ot]={status:"success",errorText:""},Cn.current=Jn,nn(Jn)}})})),((sr=tn[ot])==null?void 0:sr.status)==="success"&&t.createElement(g.Z,null,t.createElement(D.Z,{align:"middle"},t.createElement("i",{style:{marginRight:8},className:`iconfont icon-chenggong1 ${ve.success}`}),t.createElement("span",{className:ve.success},"\u4FDD\u5B58\u6210\u529F"))),((Mn=tn[ot])==null?void 0:Mn.status)==="fail"&&t.createElement(g.Z,null,t.createElement(D.Z,{align:"middle"},t.createElement("i",{style:{marginRight:8},className:`iconfont icon-tishi7 ${ve.fail}`}),t.createElement("span",{className:ve.fail},(Yn=tn[ot])==null?void 0:Yn.errorText))))}),((0,q.GJ)()||(0,q.dE)()&&((en=qe==null?void 0:qe.exercise)==null?void 0:en.user_exercise_status)>0&&((gn=qe==null?void 0:qe.exercise)==null?void 0:gn.open_score))&&t.createElement(D.Z,{justify:"end",className:"mb20",align:"middle"},t.createElement("span",{className:"font14",style:{color:"#6A7283"}},"\u5F97\u5206"),t.createElement("span",{className:"font14 ml10"},(me==null?void 0:me.user_score)&&t.createElement("span",null,t.createElement("span",{className:ln[Number(me==null?void 0:me.answer_status)]||"c-orange-ff9"},me==null?void 0:me.user_score),t.createElement("span",{style:{marginLeft:5,color:"#6A7283"}},"\u5206")),!(me!=null&&me.user_score)&&t.createElement("span",{className:"c-red"},"\u672A\u8BC4"))),((Gt=qe==null?void 0:qe.exercise)==null?void 0:Gt.answer_open)&&t.createElement("div",{className:ve.analysisWrap},t.createElement("div",{className:ve.greyBg},t.createElement("div",{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u7B54\u6848\u3011"),(At=me==null?void 0:me.standard_answer)==null?void 0:At.map((_n,ot)=>{var Ot;return t.createElement(D.Z,{key:ot,align:"middle",className:"mt15 ml10"},t.createElement(g.Z,{className:"mr10"},"\u586B\u7A7A\u9879",ot+1),t.createElement(g.Z,null,t.createElement(Y.Z,{value:(Ot=_n==null?void 0:_n.answer_text)==null?void 0:Ot[0],style:{maxWidth:730,minWidth:100},disabled:!0})))}),t.createElement(D.Z,{className:"mt15",align:"middle"},t.createElement("span",{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u89E3\u6790\u3011"),t.createElement(he.Z,{className:ve.renderHtml,value:me==null?void 0:me.analysis})))))},vn=e(98070),sn=e(87169),yn=e(10089),xn=e(59301),An=Object.defineProperty,ir=Object.defineProperties,br=Object.getOwnPropertyDescriptors,Vn=Object.getOwnPropertySymbols,ur=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,mr=(U,me,qe)=>me in U?An(U,me,{enumerable:!0,configurable:!0,writable:!0,value:qe}):U[me]=qe,Or=(U,me)=>{for(var qe in me||(me={}))ur.call(me,qe)&&mr(U,qe,me[qe]);if(Vn)for(var qe of Vn(me))Zn.call(me,qe)&&mr(U,qe,me[qe]);return U},Ir=(U,me)=>ir(U,br(me)),hr=(U,me,qe)=>new Promise((Ft,en)=>{var gn=Ye=>{try{At(qe.next(Ye))}catch(xt){en(xt)}},Gt=Ye=>{try{At(qe.throw(Ye))}catch(xt){en(xt)}},At=Ye=>Ye.done?Ft(Ye.value):Promise.resolve(Ye.value).then(gn,Gt);At((qe=qe.apply(U,me)).next())});const{TextArea:Dr}=F.default;var Zr=({item:U,answerData:me,sign:qe,onBlur:Ft=()=>{},onDebug:en=()=>{},setIsSubmitCode:gn})=>{var Gt,At,Ye;let[xt,tn]=(0,t.useState)([]);const[nn]=(0,l.useSearchParams)();return(0,t.useEffect)(()=>{var Sn;let Cn=(Sn=U==null?void 0:U.standard_answer_with_score)==null?void 0:Sn.map((Gn,_n)=>{var ot,Ot;return Ir(Or({},Gn),{value:((Ot=(ot=U==null?void 0:U.user_answer)==null?void 0:ot.find($n=>parseInt($n.choice_id)===_n+1))==null?void 0:Ot.answer_text)||""})});tn(Cn)},[U==null?void 0:U.standard_answer_with_score]),console.log(xt,"userAnswer"),xn.createElement("div",null,xn.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:10}},xn.createElement("div",{style:{fontSize:14,color:"#FF0000"}},xn.createElement(sn.Z,null),xn.createElement("span",{style:{marginLeft:5}},"\u6CE8\u610F\uFF1A\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u5426\u5219\u65E0\u6CD5\u5F97\u5206")),!nn.get("check")&&xn.createElement(vn.Z,{setIsSubmitCode:gn,ButtonProps:{type:"primary"},ButtonText:"\u63D0\u4EA4\u4EE3\u7801",items:Ir(Or({},U),{userAnswer:xt}),hackidentifier:U==null?void 0:U.hack_identifier})),(U==null?void 0:U.code)&&xn.createElement("div",{style:{border:"1px solid #CCCCCC",padding:"10px",marginBottom:20}},xn.createElement(he.Z,{disabledFill:!U.repeat_answer&&((Gt=U==null?void 0:U.user_answer)==null?void 0:Gt.length)>0&&U.ques_status!==0||!!(me!=null&&me.exercise.commit_status),onFillBlur:(Sn,Cn)=>hr(void 0,null,function*(){yn.Z.publish("BFill:Submit:Change",{value:!0}),setTimeout(()=>hr(void 0,null,function*(){var Gn;(yield Ft((Gn=Sn==null?void 0:Sn[parseInt(Cn)])==null?void 0:Gn.value,parseInt(Cn)+1,xt)).status===0?(xt[parseInt(Cn)].type="",tn([...xt])):(xt[parseInt(Cn)].type="warning",tn([...xt]))}),200)}),onFillFocus:(Sn,Cn)=>{xt[parseInt(Cn)].type="",tn([...xt]),qe.current=!0},className:ve.content,programFillValue:xt,showProgramFill:!0,value:Re.Base64.decode((U==null?void 0:U.code)||"")})),!!((At=U==null?void 0:U.standard_answer)!=null&&At.length)&&xn.createElement("div",{className:ve.analysisWrap},xn.createElement("div",{className:ve.greyBg},xn.createElement(D.Z,{className:"mb20",align:"middle"},xn.createElement(g.Z,{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u7B54\u6848\u3011"),(Ye=U==null?void 0:U.standard_answer)==null?void 0:Ye.map((Sn,Cn)=>xn.createElement(g.Z,{key:Cn,className:"mr40"},"\u586B\u7A7A\u9879",Cn+1,":",Sn==null?void 0:Sn.answer_text))),xn.createElement(D.Z,null,xn.createElement("span",{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u89E3\u6790\u3011"),xn.createElement(he.Z,{className:ve.renderHtml,value:(U==null?void 0:U.analysis)||"\u6682\u65E0\u89E3\u6790"})))))},so=e(95818);const{TextArea:Jr}=F.default;var pe=({data:U})=>t.createElement("div",{className:"tc mt80 pb30"},t.createElement("img",{width:"486",src:so.BV})," ",t.createElement("br",null),U.status===-1&&t.createElement("div",{className:"c-grey-999 mt60"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),U.status===-2&&t.createElement("div",{className:" c-grey-999 mt60"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",t.createElement("span",{className:"c-red"},U.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),t.createElement(ne.ZP,{className:"mt40 pl20 pr20",type:"primary"},t.createElement("a",{href:"/"},"\u56DE\u5230\u9996\u9875"))),lt=e(11662),Pt=e(89392),Nt={comments:"comments___ZkLeS",greyText:"greyText___ow9J6",commentText:"commentText___Uklcs",wrapper:"wrapper___XTdhL",header:"header___pq5DQ",updateTime:"updateTime___WYYjt",text:"text___FmQY7",date:"date___DiXg4"},Ut=({list:U,hideScore:me=!1})=>t.createElement("div",null,U==null?void 0:U.map(qe=>{var Ft,en,gn,Gt,At,Ye;return t.createElement("div",{className:`mt20 ${Nt.wrapper}`,key:(Ft=qe==null?void 0:qe.user)==null?void 0:Ft.user_id},t.createElement(D.Z,{align:"middle",className:Nt.header},t.createElement("img",{src:lt.Z.API_SERVER+"/images/"+((en=qe.user)==null?void 0:en.image_url)}),t.createElement("span",{className:"ml10 font16"},(gn=qe.user)==null?void 0:gn.name),t.createElement(g.Z,{className:Nt.updateTime},t.createElement("span",{className:Nt.text},"\u8BC4\u9605\u65F6\u95F4"),t.createElement("span",{className:Nt.date},v()((At=(Gt=qe.comments)==null?void 0:Gt[0])==null?void 0:At.updated_at).format("YYYY-MM-DD HH:mm")))),t.createElement("div",{className:Nt.comments},(Ye=qe==null?void 0:qe.comments)==null?void 0:Ye.map((xt,tn)=>{var nn;return t.createElement("div",{key:((nn=qe==null?void 0:qe.user)==null?void 0:nn.user_id)+"-"+tn},t.createElement(D.Z,{align:"middle",justify:"space-between"},!!xt.shixun_chanllge_position&&t.createElement("div",{style:{flexShrink:0,marginRight:10}},"\u7B2C",xt.shixun_chanllge_position,"\u5173"),!me&&t.createElement("div",{style:{flex:1}},"\u539F\u59CB\u5F97\u5206",xt==null?void 0:xt.origin_score,"\u5206\uFF0C\u4FEE\u6B63\u4E3A",t.createElement("span",{className:"c-light-primary"},xt==null?void 0:xt.score),"\u5206")),!!xt.comment&&t.createElement("div",null," ",t.createElement("span",{className:`${Nt.greyText} mr10`},"\u8BC4\u8BED"),t.createElement("span",{className:Nt.commentText},xt.comment)))})))})),kt=e(87233),j=e(96249),ue=e.n(j),ye=e(11724),be=e(62772),Ze=e(47451),Le=e(69553),ke={codeInput:"codeInput___xSFAu"},Ae=e(92310),jt=e.n(Ae),qt=({className:U,style:me,onOk:qe})=>{const[Ft,en]=(0,t.useState)(["","","","","",""]),[gn,Gt]=(0,t.useState)(0),At=(0,t.useRef)([]);(0,t.useEffect)(()=>{const tn=Ft.findIndex(nn=>!nn);tn===-1&&qe(Ft),Gt(tn)},[Ft]),(0,t.useEffect)(()=>{var tn;(tn=At.current[gn])==null||tn.focus()},[gn]);const Ye=(tn,nn)=>{const{value:Sn}=tn.target;if(/^\d*$/.test(Sn)){const Cn=[...Ft];Cn[nn]=Sn||"",en(Cn)}},xt=(tn,nn)=>{if(tn.key==="Backspace"&&nn>0){tn.preventDefault();const Sn=[...Ft];Sn[nn-1]="",en(Sn)}};return t.createElement("div",{className:jt()(ke.codeInput,U),style:me},Ft.map((tn,nn)=>t.createElement("input",{key:nn,type:"text",disabled:gn!==nn,maxLength:1,value:tn===""?"":"*",onChange:Sn=>Ye(Sn,nn),onKeyDown:Sn=>xt(Sn,nn),ref:Sn=>{At.current[nn]=Sn}})))},kn=e(73423),Rn=e(39587),on=e(59570),h=e(59301),_r=Object.defineProperty,Qn=Object.defineProperties,dr=Object.getOwnPropertyDescriptors,er=Object.getOwnPropertySymbols,yr=Object.prototype.hasOwnProperty,qn=Object.prototype.propertyIsEnumerable,Pn=(U,me,qe)=>me in U?_r(U,me,{enumerable:!0,configurable:!0,writable:!0,value:qe}):U[me]=qe,In=(U,me)=>{for(var qe in me||(me={}))yr.call(me,qe)&&Pn(U,qe,me[qe]);if(er)for(var qe of er(me))qn.call(me,qe)&&Pn(U,qe,me[qe]);return U},zn=(U,me)=>Qn(U,dr(me)),Lr=(U,me)=>{var qe={};for(var Ft in U)yr.call(U,Ft)&&me.indexOf(Ft)<0&&(qe[Ft]=U[Ft]);if(U!=null&&er)for(var Ft of er(U))me.indexOf(Ft)<0&&qn.call(U,Ft)&&(qe[Ft]=U[Ft]);return qe},wn=(U,me,qe)=>new Promise((Ft,en)=>{var gn=Ye=>{try{At(qe.next(Ye))}catch(xt){en(xt)}},Gt=Ye=>{try{At(qe.throw(Ye))}catch(xt){en(xt)}},At=Ye=>Ye.done?Ft(Ye.value):Promise.resolve(Ye.value).then(gn,Gt);At((qe=qe.apply(U,me)).next())});const{Countdown:Er}=T.default,kr=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Wr={0:"c-red-ee4",1:"c-green"},Vr=U=>{var me=U,{globalSetting:qe,loading:Ft,user:en,exercise:gn,dispatch:Gt}=me,At=Lr(me,["globalSetting","loading","user","exercise","dispatch"]),Ye,xt,tn,nn,Sn,Cn,Gn,_n,ot,Ot,$n,sr,Mn,Yn,wr,Mr,Kn,$r,Jn,Kr,qr,ao,wo,ro,uo,yo,Ln,vr,Hn,Kt,fr,Br,zr,to,no,bo,Lo,Uo,ko,jo,Ia,da,fa,Na,qa,Oa,Io,Da,ma,va,_a,Ba,Vo,pa,ga;const Ta=(0,l.useLocation)(),[$o]=(0,l.useSearchParams)(),Qt=(0,l.useParams)(),[G,xo]=(0,t.useState)({}),[bt,el]=(0,t.useState)({}),[No,tl]=(0,t.useState)({}),[nl,Oo]=(0,t.useState)(!1),[Do,Ra]=(0,t.useState)(!0),[ha,Ma]=(0,t.useState)(!1),[ya,fo]=(0,t.useState)(!1),[xa,_o]=(0,t.useState)(!1),[Ca,ba]=(0,t.useState)(!1),[Fa,rl]=(0,t.useState)(),[ol,Xo]=(0,t.useState)(""),[al,Ea]=(0,t.useState)("none"),[Go,Sa]=(0,t.useState)(""),[Po,Yo]=(0,t.useState)({status:0}),[ll,wa]=(0,t.useState)(!1),[Bo,il]=(0,t.useState)(window.document.domain==="kepukehuan.educoder.net"),[Aa,Jo]=(0,t.useState)(!0),[Ko,To]=(0,t.useState)(!1),[Qo,qo]=(0,t.useState)(null),[sl,Fo]=(0,t.useState)(!1),[ea,cl]=(0,t.useState)(0),[ul,Za]=(0,t.useState)(!1),[dl,La]=(0,t.useState)(!1),[fl,_l]=(0,t.useState)(!1),ka=(0,t.useRef)(),ja=(0,t.useRef)(),ta=(0,t.useRef)(!1),na=(0,t.useRef)(),ml=(0,t.useRef)(),ra=(0,t.useRef)(),zo=(0,t.useRef)(),[oa]=p.default.useForm(),aa=(0,t.useMemo)(()=>new WebSocket("ws://localhost:8082"),[]);let[cr,Ho]=(0,t.useState)(0),[pr,Wo]=(0,t.useState)(0);const[vl,la]=(0,t.useState)(!1),[ia,pl]=(0,t.useState)(!1),[gl,$a]=(0,t.useState)(!1),Ka=[`/classrooms/${Qt.coursesId}/exercise/${Qt.categoryId}/detail`,`/classrooms/${Qt.coursesId}/exercise`,`/classrooms/${Qt.coursesId}/exercise/`,`/classrooms/${Qt.coursesId}/exercise/${Qt.categoryId}/users/${(Ye=en.userInfo)==null?void 0:Ye.login}/check`,`/classrooms/${Qt.coursesId}/exercisenotice/${Qt.categoryId}/users/${(xt=en.userInfo)==null?void 0:xt.login}`,`/classrooms/${Qt.coursesId}/exercise/${Qt.categoryId}/users/${(tn=en.userInfo)==null?void 0:tn.login}`],[hl,za]=(0,t.useState)(!1),[Bl,Ha]=(0,t.useState)(!0),[Tl,yl]=(0,t.useState)({left:0,top:0,bottom:0,right:0}),Wa=(0,t.useRef)(null),[Ua,Va]=(0,t.useState)(!0),sa=(0,t.useRef)(),[xl,Pa]=(0,t.useState)(!1);(0,Le.y)((0,q.dE)());const{setOpenDisableCopyAndPaste:Co}=(0,Le.X)(),Cl=(c,Ce)=>{var Ve;const{clientWidth:ft,clientHeight:Ue}=window.document.documentElement,it=(Ve=Wa.current)==null?void 0:Ve.getBoundingClientRect();yl({left:-it.left+Ce.x,right:ft-(it.right-Ce.x),top:-it.top+Ce.y,bottom:Ue-(it.bottom-Ce.y)-70})},ca=(0,kn._)(G);(0,t.useEffect)(()=>{var c,Ce;if(((c=G==null?void 0:G.exercise)==null?void 0:c.commit_status)>0){Za(!1);return}if((ya||(Ce=G==null?void 0:G.exercise)!=null&&Ce.forbid_screen)&&(0,A.WX)()){const Ve=ft=>{ft.key==="screenNums"&&(Number(ft.newValue||0)>1?setTimeout(()=>{Za(!0)},300):Za(!1))};return window.addEventListener("local-storage-changed",Ve),()=>{window.removeEventListener("local-storage-changed",Ve)}}},[ya,(nn=G==null?void 0:G.exercise)==null?void 0:nn.forbid_screen,(Sn=G==null?void 0:G.exercise)==null?void 0:Sn.commit_status]),(0,t.useEffect)(()=>(document.body.setAttribute("data-custom","auto"),()=>{document.body.removeAttribute("data-custom")}),[]),(0,t.useEffect)(()=>{var c,Ce;if(document.body.scrollIntoView(),((c=en.userInfo)==null?void 0:c.real_name)==="\u6E38\u5BA2"){window.location.href=`/classrooms/${Qt.coursesId}/exercise`;return}return(Ce=en.userInfo)!=null&&Ce.user_id&&((0,q.GJ)()?ge():en.userInfo.login&&y()),window.addEventListener("message",o),()=>{window.removeEventListener("message",o),Ta.pathname.indexOf("/detail")>-1&&(0,x.BU)()}},[Qt.categoryId,en.userInfo.login]),(0,t.useEffect)(()=>(window.addEventListener("beforeunload",r),()=>{ca(),window.removeEventListener("beforeunload",r)}),[]),(0,t.useEffect)(()=>(Gt({type:"globalSetting/headerFooterToggle",payload:!1}),()=>{Gt({type:"globalSetting/headerFooterToggle",payload:!0})}),[]),(0,t.useEffect)(()=>{var c,Ce,Ve,ft;(c=G==null?void 0:G.question_status)!=null&&c.every(Ue=>!!Ue.ques_status&&ll&&(bt==null?void 0:bt.used_screen_num)<(bt==null?void 0:bt.screen_num))&&setTimeout(()=>{var Ue;(Ue=ja.current)==null||Ue.handlePhoto()},1300),qo((ft=(Ve=(Ce=G==null?void 0:G.exercise_question_types)==null?void 0:Ce[cr])==null?void 0:Ve.items)==null?void 0:ft[pr])},[G]);const r=c=>{var Ce;!(bt!=null&&bt.is_commit)&&(0,q.dE)()&&(0,A.RG)(" ",!0),localStorage.setItem("Refresh","1"),(Ce=gn.exerciseUserInfo)!=null&&Ce.screen_open&&window.navigator.sendBeacon(`${lt.Z.API_SERVER}/api/exercises/${Qt.categoryId}/commit_screen_at.json`,{})},o=c=>{c.data==="backExercise"&&((0,A.RG)(" ",!0),u())},u=()=>{Ea("none"),Xo(""),ge()},y=()=>wn(void 0,null,function*(){O()}),N=()=>wn(void 0,null,function*(){Jo(!1),n.default.info({title:(0,on._V)(on.CP.answer1),width:500,centered:!0,closable:!1,keyboard:!1,maskClosable:!1,maskStyle:{background:"#000"},okText:(0,on._V)(on.CP.answer2),onOk:()=>new Promise((c,Ce)=>wn(void 0,null,function*(){try{yield oa.validateFields()}catch(ft){Ce()}const Ve=yield(0,_.pL)(In({exercise_user_id:bt==null?void 0:bt.exercise_user_id,categoryId:Qt.categoryId},yield oa.validateFields()));(Ve==null?void 0:Ve.status)===0?(Jo(!0),oe(),c(Ve)):(oa.setFields([{name:"start_password",errors:[Ve==null?void 0:Ve.message]}]),Ce())})),content:h.createElement(h.Fragment,null,h.createElement("p",{className:""},(0,on._V)(on.CP.answer3)),h.createElement(p.default,{form:oa,autoComplete:"off"},h.createElement(p.default.Item,{name:"start_password",label:(0,on._V)(on.CP.answer1),rules:[{required:!0,message:(0,on._V)(on.CP.answer4)}]},h.createElement(F.default.Password,{autoComplete:"off"}))))})}),O=()=>wn(void 0,null,function*(){const c=yield Gt({type:"exercise/getExerciseUserInfo",payload:In({},Qt)});zo.current=zn(In({},c.data),{status:c==null?void 0:c.status}),el(zn(In({},c.data),{status:c==null?void 0:c.status}))});(0,t.useEffect)(()=>{if(bt!=null&&bt.exercise_user_id){if(bt!=null&&bt.is_commit||(0,A.RG)(" ",!0),!(bt!=null&&bt.is_commit)&&((bt==null?void 0:bt.ip_limit)==="inner"||bt!=null&&bt.ip_bind_type)&&(ra.current=`&ip_limit=${bt==null?void 0:bt.ip_limit}&ip_bind=${bt==null?void 0:bt.ip_bind}&ip_bind_type=${bt==null?void 0:bt.ip_bind_type}`),!(bt!=null&&bt.is_commit)&&!$o.get("check")||bt.exercise_type==2&&!$o.get("check")){if((0,A.RG)(" ",!0),!(bt!=null&&bt.can_start)){window.location.href=`/classrooms/${Qt.coursesId}/exercise/${Qt.categoryId}/users/${Qt.login}/check`;return}if(bt!=null&&bt.is_locked&&bt.ip_error){Gt({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:zn(In({},bt),{id:Qt.categoryId})}});return}else!(bt!=null&&bt.is_locked)&&bt.ip_error;if(document.referrer===""||performance.navigation.type===2||!Ka.includes(new URL(document.referrer||"https://www.educoder.net").pathname)){document.referrer!==""?sessionStorage.setItem("illegalEntry",Ka.includes(new URL(document.referrer).pathname)?"illegalEntry":"allowRouter"):sessionStorage.setItem("illegalEntry","illegalEntry"),l.history.push(`/classrooms/${Qt.coursesId}/exercise/`);return}if(bt!=null&&bt.start_locked&&!(bt!=null&&bt.user_is_enter)){N();return}if(bt!=null&&bt.is_locked&&performance.navigation.type===1&&!sessionStorage.getItem("studentunlock")){Gt({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:zn(In({},bt),{id:Qt.categoryId})}});return}if((0,ae.ZP)(`/api/exercises/${Qt==null?void 0:Qt.categoryId}/close_pop.json`,{method:"post"}),bt!=null&&bt.is_locked&&performance.navigation.type===0&&(bt!=null&&bt.user_is_enter)&&!(bt!=null&&bt.is_commit)&&(bt!=null&&bt.show_pop)){Gt({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:zn(In({},bt),{id:Qt.categoryId})}});return}}else if(!bt.answered_open&&bt.exercise_type!=2){n.default.info({width:500,centered:!0,icon:null,title:(0,on._V)(on.CP.answer5),content:(0,on._V)(on.CP.answer6),onOk:()=>{window.location.href=`/classrooms/${Qt.coursesId}/exercise/${Qt.categoryId}/detail`}});return}$o.get("check")?ge():oe(),$o.get("check")||eo()}return()=>{!(bt!=null&&bt.is_commit)&&(0,q.dE)()&&(0,A.RG)(" ",!0)}},[bt]);const oe=()=>wn(void 0,null,function*(){var c,Ce,Ve,ft,Ue,it,yt,st,gt,vt,Wt,nt,Ge,an,gr;sessionStorage.setItem("studentunlock","studentunlock");const Vt={data:bt,status:bt.status};if((((c=Vt==null?void 0:Vt.data)==null?void 0:c.ip_limit)!=="no"||(Ce=Vt==null?void 0:Vt.data)!=null&&Ce.ip_bind_type)&&(na.current=yield(0,ce.y)({ip_limit:(Ve=Vt==null?void 0:Vt.data)==null?void 0:Ve.ip_limit,ip_bind:(ft=Vt==null?void 0:Vt.data)==null?void 0:ft.ip_bind_type})),(((Ue=Vt==null?void 0:Vt.data)==null?void 0:Ue.ip_limit)!=="no"||(it=Vt==null?void 0:Vt.data)!=null&&it.ip_bind)&&(((yt=Vt==null?void 0:Vt.data)==null?void 0:yt.ip_limit)==="inner"||(st=Vt==null?void 0:Vt.data)!=null&&st.ip_bind_type)){var Tn=yield(0,A.oi)({exerciseId:Qt.categoryId,ip:na.current,errmsgHide:!0,ip_limit:((gt=Vt==null?void 0:Vt.data)==null?void 0:gt.ip_limit)||"no",ip_bind:(vt=Vt==null?void 0:Vt.data)==null?void 0:vt.ip_bind,ip_bind_type:(Wt=Vt==null?void 0:Vt.data)==null?void 0:Wt.ip_bind_type});if((Tn==null?void 0:Tn.status)!==0){Yo(Tn);return}}if((Vt==null?void 0:Vt.status)==0){if(((nt=Vt==null?void 0:Vt.data)==null?void 0:nt.used_screen_num)>((Ge=Vt==null?void 0:Vt.data)==null?void 0:Ge.screen_num)&&((an=Vt==null?void 0:Vt.data)!=null&&an.screen_open))return $a(!0),Nn(),!1;if(Ma(Vt==null?void 0:Vt.data.check_camera),!(Vt!=null&&Vt.data.check_camera)){if(Vt!=null&&Vt.data.screen_shot_open){_o(bt==null?void 0:bt.screen_shot_open);return}fo((gr=Vt==null?void 0:Vt.data)==null?void 0:gr.screen_open),ge()}}}),re=(...c)=>wn(void 0,[...c],function*(Ce=Qo){$o.get("check")||(yield(0,ae.ZP)(`/api/exercise_questions/${Ce==null?void 0:Ce.question_id}/exercise_answers/save_hack_evaluate.json`,{}))}),ee=c=>wn(void 0,null,function*(){if((c==null?void 0:c.type)===1)return n.default.info({centered:!0,width:470,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,keyboard:!1,onOk:()=>{l.history.replace(`/classrooms/${Qt.coursesId}/exercise/${Qt.categoryId}/detail`)},content:h.createElement("div",null,(c==null?void 0:c.message)||"")}),Promise.reject();if((c==null?void 0:c.type)===2){const Ce=()=>{l.history.replace(`/classrooms/${Qt.coursesId}/exercise/${Qt.categoryId}/centralizeReview/${c==null?void 0:c.login}`)};return n.default.confirm({centered:!0,width:470,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,keyboard:!1,onOk:Ce,onCancel:()=>{l.history.replace(`/classrooms/${Qt.coursesId}/exercise/${Qt.categoryId}/detail`)},content:h.createElement("div",null,h.createElement("div",null,"\u60A8\u5DF2\u6210\u4E3A\u6307\u5B9A\u9605\u5377\u6559\u5E08\uFF0C\u662F\u5426\u73B0\u5728\u524D\u5F80",h.createElement("span",{onClick:Ce,className:"ml5 mr5 c-light-primary current"},"\u96C6\u4E2D\u9605\u5377"),"\u7EE7\u7EED\u8BC4\u9605\uFF1F"),h.createElement("div",{className:"c-grey-999"},"\uFF08\u9605\u5377\u7ED3\u675F\u540E\u6062\u590D\u5B66\u751F\u4E2A\u4EBA\u8BC4\u9605\u529F\u80FD\uFF0C\u5E76\u5C55\u793A\u5B66\u751F\u6210\u7EE9\uFF09"))}),Promise.reject()}}),ge=()=>wn(void 0,null,function*(){var c,Ce,Ve,ft,Ue,it,yt,st,gt,vt,Wt,nt,Ge,an,gr,Vt,Tn,Pr,Gr,Eo,mo;document.body.scrollIntoView(),Oo(!0);let Tt,Yr=(c=en.userInfo)==null?void 0:c.user_id;if((0,q.GJ)())Tt=yield(0,_.BJ)({exerciseId:Qt.categoryId,login:Qt.login}).catch(()=>Oo(!1)),Tt!=null&&Tt.exercise&&(Tt.exercise.user_exercise_status=1),Yr=(Ce=Tt==null?void 0:Tt.exercise_answer_user)==null?void 0:Ce.user_id;else{if($o.get("check"))Tt=yield(0,_.BJ)(zn(In({},Qt),{exerciseId:Qt.categoryId,login:Qt.login})).catch(()=>Oo(!1)),Yr=(Ve=Tt==null?void 0:Tt.exercise)==null?void 0:Ve.user_id,(Tt==null?void 0:Tt.message)==="\u5B66\u751F\u6B63\u5728\u8003\u8BD5\u4E2D\uFF0C\u60A8\u65E0\u6743\u67E5\u770B"&&Ha(!1);else{if((((ft=zo.current)==null?void 0:ft.ip_limit)!=="no"||(Ue=zo.current)!=null&&Ue.ip_bind_type)&&(na.current=yield(0,ce.y)({ip_limit:(it=zo.current)==null?void 0:it.ip_limit,ip_bind:(yt=zo.current)==null?void 0:yt.ip_bind_type})),Tt=yield(0,_.CD)(zn(In({},Qt),{ip:na.current})).catch(()=>Oo(!1)),Tt.status===-1){ze();return}if((st=Tt==null?void 0:Tt.exercise)!=null&&st.only_on_client&&!(0,A.WX)()){W.ZP.warning("\u8BF7\u7528\u5BA2\u6237\u7AEF\u4F5C\u7B54"),ze();return}if((Tt==null?void 0:Tt.status)===-5){Gt({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:zn(In({},zo.current),{id:Qt.categoryId,errorMessage:Tt==null?void 0:Tt.message})}});return}Tt!=null&&Tt.exercise&&(Tt.exercise.user_exercise_status=0),Tt!=null&&Tt.exercise&&(Tt.exercise.exercise_status=2),(gt=Tt==null?void 0:Tt.exercise_question_types)==null||gt.map(Tr=>{var ar;(Tr==null?void 0:Tr.question_type)<3&&((ar=Tr==null?void 0:Tr.items)==null||ar.map(co=>{co.user_answer=co.question_choices.filter(go=>go.user_answer_boolean).map(go=>go.choice_id)}))})}if(!((vt=Tt==null?void 0:Tt.exercise)!=null&&vt.can_start)&&(Tt!=null&&Tt.exercise)){window.location.href=`/classrooms/${Qt.coursesId}/exercise/${Qt.categoryId}/users/${Qt.login}/check`;return}((Wt=Tt.exercise)==null?void 0:Wt.commit_status)===0&&!ml.current&&(ml.current=!0,(0,A.G5)(aa,Tt==null?void 0:Tt.exercise)),(nt=Tt==null?void 0:Tt.exercise)!=null&&nt.left_time&&setTimeout(()=>{Sa(b.red)},(((Ge=Tt==null?void 0:Tt.exercise)==null?void 0:Ge.left_time)-300>0?((an=Tt==null?void 0:Tt.exercise)==null?void 0:an.left_time)-300:0)*1e3),((gr=Tt==null?void 0:Tt.exercise)==null?void 0:gr.take_photo)>=((Vt=Tt==null?void 0:Tt.exercise)==null?void 0:Vt.photo_count)}if(Oo(!1),yield ee(Tt),Tt){if((Tn=Tt==null?void 0:Tt.exercise)!=null&&Tn.question_random||(Pr=Tt==null?void 0:Tt.exercise)!=null&&Pr.choice_random){let Tr=1;Tt.exercise.question_random=(Gr=Tt==null?void 0:Tt.exercise_question_types)==null?void 0:Gr.map(ar=>{var co,go;return(co=Tt==null?void 0:Tt.exercise)!=null&&co.choice_random&&((ar.question_type===0||ar.question_type===1)&&ar.items.map(lo=>(lo.question_choices=(0,A.M2)(lo.question_choices,Yr),lo)),ar.question_type===7&&ar.items.forEach(lo=>{lo.sub_exercise_questions.forEach(ho=>{ho.question_choices&&(ho.question_choices=(0,A.M2)(ho.question_choices,Yr))})})),(go=Tt==null?void 0:Tt.exercise)!=null&&go.question_random&&(ar.items=(0,A.M2)(ar.items,Yr)),ar.items.map(lo=>(lo.question_num=Tr,Tr++,lo)),ar})}Tt.exercise_types=(Tt==null?void 0:Tt.exercise_types)||((Eo=Tt==null?void 0:Tt.exercise_scores)==null?void 0:Eo.exercise_types),Tt.question_status=Tt.question_status||Oe((Tt==null?void 0:Tt.exercise_question_types)||[]),xo(Tt),Co((mo=Tt==null?void 0:Tt.exercise)==null?void 0:mo.forbid_copy)}return Tt}),Oe=c=>{let Ce=[];return c.forEach(Ve=>{Ce=Ce.concat(Ve.items)}),Ce=Ce.map(Ve=>({ques_status:Ve==null?void 0:Ve.ques_status,score_status:Ve==null?void 0:Ve.score_status,question_num:Ve==null?void 0:Ve.question_num,ques_id:Ve==null?void 0:Ve.question_id})),Ce};(0,t.useEffect)(()=>{var c,Ce,Ve;((c=G.exercise)==null?void 0:c.left_time)===0&&Nn(),(Ce=G.exercise)!=null&&Ce.left_time&&rl(Date.now()+((Ve=G==null?void 0:G.exercise)==null?void 0:Ve.left_time)*1e3)},[(Cn=G.exercise)==null?void 0:Cn.left_time]);const we=()=>{var c;((c=G==null?void 0:G.exercise)==null?void 0:c.exercise_status)===3?n.default.confirm({width:530,title:"\u63D0\u793A",icon:null,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:h.createElement("div",null,"\u622A\u6B62\u65F6\u95F4\u5DF2\u5230\uFF0C\u65E0\u6CD5\u6253\u56DE\u8BD5\u5377",h.createElement("br",null),"\u8BF7\u5728\u4FEE\u6539\u622A\u6B62\u65F6\u95F4\u540E\u518D\u64CD\u4F5C")}):n.default.confirm({width:530,title:"\u63D0\u793A",icon:null,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:h.createElement("div",null,"\u5B66\u751F\u5C06\u5F97\u5230\u4E00\u6B21\u91CD\u65B0\u7B54\u9898\u7684\u673A\u4F1A\uFF0C\u73B0\u6709\u7684\u7B54\u9898\u60C5\u51B5\u5C06\u88AB\u6E05\u7A7A",h.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u56DE\u9000TA\u7684\u8BD5\u5377\u7B54\u9898"),onOk:()=>wn(void 0,null,function*(){var Ce;const Ve=yield(0,_.q6)({categoryId:Qt.categoryId,user_ids:[(Ce=G==null?void 0:G.exercise_answer_user)==null?void 0:Ce.user_id]});Ve&&(W.ZP.info(Ve==null?void 0:Ve.message),ze())})})},ze=()=>{if((0,A.G5)(aa),(0,A.WX)()){window.location.href=(0,A.Ll)()?"/":"/classrooms/examList";return}window.location.href=(0,A.Ll)()?"/":`/classrooms/${Qt.coursesId}/exercise/${Qt.categoryId}/detail`},We=(c=!1)=>wn(void 0,null,function*(){const Ce=yield(0,_.PT)(zn(In({},Qt),{refresh:c}));return Ce!=null&&Ce.has_time?(rl(Date.now()+(Ce==null?void 0:Ce.left_time)*1e3),xo(Ve=>zn(In({},Ve),{exercise:zn(In({},Ve.exercise),{left_time:Ce==null?void 0:Ce.left_time})})),!0):(Xe(),!1)}),Xe=()=>wn(void 0,null,function*(){if(ta.current)return;ta.current=!0;const c=yield(0,_.VL)({categoryId:Qt.categoryId,commit_method:2});if(fo(!1),_o(!1),(c==null?void 0:c.status)===0&&((0,A.G5)(aa),n.default.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",zIndex:1100,content:h.createElement("div",null,"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",h.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:()=>wn(void 0,null,function*(){ze()})}),W.ZP.info(c==null?void 0:c.message)),(c==null?void 0:c.status)===-3){ta.current=!1;const Ce=parseInt(c==null?void 0:c.message);G.exercise.left_time=Ce,xo(In({},G))}}),Ct=c=>wn(void 0,null,function*(){const Ce=yield(c.is_jupyter||c.is_jupyter_lab?V.BK:V.Ir)({id:c.shixun_identifier});(Ce!=null&&Ce.game_identifier||Ce!=null&&Ce.identifier)&&(Co(!1),c.is_jupyter_lab||c.is_jupyter?Xo(`/tasks/${Ce.identifier}/jupyter?type=exercises&exercisesId=${Qt.categoryId}&coursesId=${Qt.coursesId}&login=${Qt.login}&questionId=${c.question_id}&isFullScreen=${(0,x.vp)()}${ra.current||""}&ip_limit=${bt==null?void 0:bt.ip_limit}&ip_bind=${bt==null?void 0:bt.ip_bind}&ip_bind_type=${bt==null?void 0:bt.ip_bind_type}`):Xo(`/tasks/${Ce.game_identifier}?type=exercises&exercisesId=${Qt.categoryId}&coursesId=${Qt.coursesId}&login=${Qt.login}&questionId=${c.question_id}&isFullScreen=${(0,x.vp)()}${ra.current||""}&ip_limit=${bt==null?void 0:bt.ip_limit}&ip_bind=${bt==null?void 0:bt.ip_bind}&ip_bind_type=${bt==null?void 0:bt.ip_bind_type}`),Ea("block")),(Ce==null?void 0:Ce.status)===-3?(0,A.eF)():(Ce==null?void 0:Ce.status)===2?dt(Ce==null?void 0:Ce.message,c.question_id,c.is_jupyter_lab,c.is_jupyter):(Ce==null?void 0:Ce.status)===3&&Et(Ce==null?void 0:Ce.message)}),dt=(c,Ce,Ve,ft)=>{c=c!=null&&c.includes(".json")?c:`${c}.json`,n.default.confirm({centered:!0,title:"\u63D0\u793A",icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:h.createElement("div",null,"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>wn(void 0,null,function*(){const Ue=yield(0,_.L8)({url:c});if(!Ue)return;W.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const it=yield(0,V.Ir)({id:Ue.shixun_identifier});if(it!=null&&it.game_identifier){Ct({shixun_identifier:it==null?void 0:it.game_identifier,question_id:Ce,is_jupyter_lab:Ve,is_jupyter:ft});return}(it==null?void 0:it.status)===2?dt(it==null?void 0:it.message,Ce,Ve,ft):(it==null?void 0:it.status)===3&&Et(it==null?void 0:it.message)})})},Et=c=>{n.default.confirm({centered:!0,title:"\u63D0\u793A",icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:h.createElement("div",null,"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",c,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},pt=c=>wn(void 0,null,function*(){var Ce;const Ve=yield(0,_.o3)({exercise_user_id:(Ce=gn.exerciseUserInfo)==null?void 0:Ce.exercise_user_id,shixun_id:c.shixun_id});let ft;Ve!=null&&Ve.redo?ft=n.default.confirm({width:530,title:"\u63D0\u793A",icon:null,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u518D\u60F3\u60F3",content:h.createElement("div",null,"\u60A8\u4E4B\u524D\u5DF2\u7ECF\u6311\u6218\u8FC7\u8BE5\u5B9E\u8BAD\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u9700\u8981\u91CD\u65B0\u6311\u6218"),onCancel:()=>{ft.destroy()},onOk:()=>wn(void 0,null,function*(){const Ue=yield(0,_.L8)({id:Ve==null?void 0:Ve.myshixun_identifier,url:Ve==null?void 0:Ve.url});if(Ue){ca();const it=(0,Pt.cloneDeep)(G==null?void 0:G.exercise_question_types),yt=it==null?void 0:it.findIndex(gt=>gt.question_type===5);it[yt].items.find(gt=>gt.question_id===c.question_id).redo=!1,it[yt].items.find(gt=>gt.question_id===c.question_id).shixun_identifier=Ue.shixun_identifier,G.exercise_question_types=it,xo(G);const st=zn(In({},c),{shixun_identifier:Ue.shixun_identifier});Ct(st)}})}):(ca(),Ct(c))}),_t=c=>wn(void 0,null,function*(){if(c.hack_identifier){const Ce=yield(0,_.nF)({id:c.hack_identifier});(Ce==null?void 0:Ce.status)===0&&(ca(),Co(!1),Xo(`/myproblems/${Ce.identifier}?type=exercises&exercisesId=${Qt.categoryId}&coursesId=${Qt.coursesId}&login=${Qt.login}&questionId=${c.question_id}${ra.current||""}`),Ea("block"))}}),Xt=(c,Ce,Ve,ft,Ue,it,yt)=>wn(void 0,null,function*(){var st,gt;To(!1),yt||Oo(!0);let vt,Wt={questionId:c,exercise_choice_id:Ce,answer_text:Ve};if(((bt==null?void 0:bt.ip_limit)==="inner"||bt.ip_bind_type)&&(vt=yield(0,ce.y)({ip_limit:bt==null?void 0:bt.ip_limit,ip_bind:bt==null?void 0:bt.ip_bind_type})),Ue&&(Wt.kp_content=Ue),Ue&&(Wt.kp_clazz=it),!c){console.error("handleSave no questionId params");return}Wt.ip=vt;const nt=yield(0,_.oX)(Wt);if(Oo(!1),typeof nt=="object")return(st=nt==null?void 0:nt.alert)!=null&&st.length&&((gt=nt==null?void 0:nt.alert)==null||gt.map(Ge=>{n.default.warn({title:"\u63D0\u793A",autoFocusButton:null,content:Ge})})),(nt==null?void 0:nt.status)===0?(ft&&ft(),Jt()):(nt==null?void 0:nt.status)===-1?setTimeout(()=>{ze()},1e3):(nt==null?void 0:nt.status)===-2?Yo(nt):(nt==null?void 0:nt.status)===-3?(nt.status=-1,Yo(nt)):(nt==null?void 0:nt.status)===-4?Jt():(nt==null?void 0:nt.status)===-5?Gt({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:zn(In({},bt),{id:Qt.categoryId,errorMessage:nt==null?void 0:nt.message})}}):W.ZP.warning(nt.message||"\u8BD5\u5377\u5DF2\u622A\u6B62\uFF0C\u5DF2\u81EA\u52A8\u4EA4\u5377"),nt}),cn=c=>wn(void 0,null,function*(){var Ce,Ve,ft,Ue;const it=yield(0,_.PT)(In({},Qt));if((it==null?void 0:it.status)===-4){n.default.info({width:500,centered:!0,icon:null,title:"\u63D0\u793A",content:it==null?void 0:it.message,okText:"\u6211\u77E5\u9053\u4E86"});return}const yt=it!=null&&it.left_time?Date.now()+(it==null?void 0:it.left_time)*1e3:null;(Qo==null?void 0:Qo.question_type)==8&&!Ko&&(yield re(),To(!0));const st=yield(0,_.Vj)({id:Qt.categoryId});if(!st)return;let gt;if(console.log("res===",st,Qo,Ko),st.question_undo!==0||st.oj_undo!==0){let vt;if(st.question_undo>0){const Wt=h.createElement("span",null,"\u6709",h.createElement("span",{className:b.orangeNum},st.question_undo),"\u9898\u672A\u5B8C\u6210");if(st.oj_undo>0||st.shixun_undo>0){const Ge=[{type:((Ve=(Ce=G==null?void 0:G.exercise_question_types)==null?void 0:Ce.find(an=>an.question_type==6))==null?void 0:Ve.name)||"\u7F16\u7A0B\u9898",num:st.oj_undo},{type:((Ue=(ft=G==null?void 0:G.exercise_question_types)==null?void 0:ft.find(an=>an.question_type==5))==null?void 0:Ue.name)||"\u5B9E\u8BAD\u9898",num:st.shixun_undo}].filter(an=>an.num>0);vt=h.createElement("div",null,Wt,"\uFF08\u5176\u4E2D\u6709",Ge.map((an,gr)=>h.createElement("span",null,h.createElement("span",{className:b.orangeNum},an==null?void 0:an.num),"\u4E2A",an==null?void 0:an.type,gr!==(Ge==null?void 0:Ge.length)-1?"\u3001":"")),"\uFF09")}}gt=n.default.confirm({width:530,title:"\u63D0\u793A",icon:null,centered:!0,keyboard:!1,okText:c?"\u77E5\u9053\u4E86":"\u786E\u8BA4\u4EA4\u5377",cancelText:"\u53D6\u6D88",content:h.createElement("div",null,vt,c?`\u5728${v()(st.end_time).format("YYYY-MM-DD HH:mm")}\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898`:yt?`\u4F60\u672C\u573A\u8003\u8BD5\u5269\u4F59\u65F6\u95F4\u8FD8\u6709${(0,A.li)((yt-new Date().getTime())/1e3)} \uFF0C\u786E\u8BA4\u63D0\u524D\u4EA4\u5377\u5417\uFF1F`:"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:()=>wn(void 0,null,function*(){fo(!1),_o(!1),c?bt!=null&&bt.screen_open?W.ZP.success("\u4FDD\u5B58\u6210\u529F"):ze():($a(!0),gt.update({cancelButtonProps:{disabled:!0}}),yield Nn())})})}else gt=n.default.confirm({width:530,title:"\u63D0\u793A",icon:null,centered:!0,keyboard:!1,okText:c?"\u77E5\u9053\u4E86":"\u786E\u8BA4\u4EA4\u5377",cancelText:"\u53D6\u6D88",content:h.createElement("div",null,c?`\u5728${v()(st.end_time).format("YYYY-MM-DD HH:mm")}\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898`:yt?`\u4F60\u672C\u573A\u8003\u8BD5\u5269\u4F59\u65F6\u95F4\u8FD8\u6709${(0,A.li)((yt-new Date().getTime())/1e3)} \uFF0C\u786E\u8BA4\u63D0\u524D\u4EA4\u5377\u5417\uFF1F`:"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:()=>wn(void 0,null,function*(){fo(!1),_o(!1),c?bt!=null&&bt.screen_open?W.ZP.success("\u4FDD\u5B58\u6210\u529F"):ze():($a(!0),gt.update({cancelButtonProps:{disabled:!0}}),yield Nn())})})}),Ht=c=>h.createElement("div",null,h.createElement(w.Z,{strokeColor:{from:"#3061D0",to:"#63E0FB"},status:"active",percent:c}),h.createElement("div",{className:"c-grey-c tc mt10 mb20"},"\u6B63\u5728\u5224\u5206\u4E2D\u2026")),bn=()=>{let c=0,Ce=n.default.info({title:"\u4EA4\u5377\u4E2D",icon:null,className:"modal-footer-none",content:Ht(c)}),Ve=setInterval(()=>{c<=100?(c+=2,Ce.update({content:Ht(c)})):(Ce.destroy(),clearInterval(Ve))},50)},Nn=()=>wn(void 0,null,function*(){if(gl||ta.current)return;ta.current=!0;const c=yield(0,_.VL)({categoryId:Qt.categoryId,commit_method:1});yield Gt({type:"exercise/setActionTabs",payload:In({},{removeEventListenerExitScreen:!0})}),$a(!1),(c==null?void 0:c.status)===0&&(bn(),Ma(!1),(0,A.G5)(aa),setTimeout(()=>{var Ce,Ve,ft,Ue,it;n.default.info({centered:!0,title:"\u4EA4\u5377\u6210\u529F",className:`${b.commitModal}`,width:520,icon:null,content:h.createElement("div",null,h.createElement(D.Z,{className:"mb20",gutter:20},h.createElement(g.Z,{span:12,className:b.commitItem},h.createElement("span",{className:b.commitInfoLabel},"\u59D3\u540D"),h.createElement("span",{className:b.commitInfoValue,title:(Ce=G==null?void 0:G.exercise)==null?void 0:Ce.user_name},((Ve=G==null?void 0:G.exercise)==null?void 0:Ve.user_name)||"- -")),h.createElement(g.Z,{span:12,className:b.commitItem},h.createElement("span",{className:b.commitInfoLabel},"\u4F5C\u7B54\u65F6\u957F"),h.createElement("span",{className:b.commitInfoValue},(ft=c==null?void 0:c.data)==null?void 0:ft.user_exercise_time))),h.createElement(D.Z,{gutter:20},h.createElement(g.Z,{span:12,className:b.commitItem},h.createElement("span",{className:b.commitInfoLabel},"\u5B66\u53F7"),h.createElement("span",{className:b.commitInfoValue},((Ue=G==null?void 0:G.exercise)==null?void 0:Ue.student_id)||"- -")),h.createElement(g.Z,{span:12,className:b.commitItem},h.createElement("span",{className:b.commitInfoLabel},"\u4EA4\u5377\u65F6\u95F4"),h.createElement("span",{className:b.commitInfoValue},(it=c==null?void 0:c.data)==null?void 0:it.commit_time)))),okText:"\u786E\u5B9A",maskClosable:!1,keyboard:!1,onOk:()=>{(0,x.BU)(),ze()}})},3e3))}),Rt=(c,Ce,Ve,ft,Ue)=>wn(void 0,null,function*(){Xt(Ce,c,null,()=>{var it,yt,st,gt;if(ft.user_answer=[],ft.user_answer.push(c),Ue!=null&&Ue.question_id){let vt=(it=Ue==null?void 0:Ue.sub_exercise_questions)==null?void 0:it.filter(Ge=>{var an;return((an=Ge.user_answer)==null?void 0:an.length)===0});const Wt=(yt=Ue==null?void 0:Ue.sub_exercise_questions)==null?void 0:yt.filter(Ge=>Ge.question_type==3),nt=Wt.length>0?Wt.every(Ge=>{var an;return(Ge==null?void 0:Ge.multi_count)==((an=Ge==null?void 0:Ge.user_answer)==null?void 0:an.length)})?1:Wt.some(Ge=>{var an;return(Ge==null?void 0:Ge.multi_count)>((an=Ge==null?void 0:Ge.user_answer)==null?void 0:an.length)})?2:0:1;G.question_status.find(Ge=>Ge.ques_id===(Ue==null?void 0:Ue.question_id)).ques_status=(vt==null?void 0:vt.length)===((st=Ue==null?void 0:Ue.sub_exercise_questions)==null?void 0:st.length)?0:(vt==null?void 0:vt.length)>0&&(vt==null?void 0:vt.length)<((gt=Ue==null?void 0:Ue.sub_exercise_questions)==null?void 0:gt.length)?2:nt}else G.question_status.find(vt=>vt.ques_id===Ce).ques_status=c?1:0;xo(In({},G))})}),Yt=(c,Ce,Ve,ft,Ue)=>wn(void 0,null,function*(){Xt(ft.question_id,c,null,()=>{var it,yt,st;ft.user_answer=[],ft.user_answer.push(c),Ue.user_answer=[...ft.user_answer];let gt=(it=Ue==null?void 0:Ue.sub_exercise_questions)==null?void 0:it.filter(vt=>{var Wt;return((Wt=vt.user_answer)==null?void 0:Wt.length)===0});G.question_status.find(vt=>vt.ques_id===Ce).ques_status=(gt==null?void 0:gt.length)===((yt=Ue==null?void 0:Ue.sub_exercise_questions)==null?void 0:yt.length)?0:(gt==null?void 0:gt.length)>0&&(gt==null?void 0:gt.length)<((st=Ue==null?void 0:Ue.sub_exercise_questions)==null?void 0:st.length)?2:1,xo(In({},G))})}),Mt=(c,Ce,Ve,ft)=>{c!=null&&c.length&&Xt(Ce,c,null,()=>{var Ue,it,yt,st;if(Ve.user_answer=c,ft!=null&&ft.question_id){let gt=(Ue=ft==null?void 0:ft.sub_exercise_questions)==null?void 0:Ue.filter(nt=>{var Ge;return((Ge=nt.user_answer)==null?void 0:Ge.length)===0});const vt=(it=ft==null?void 0:ft.sub_exercise_questions)==null?void 0:it.filter(nt=>nt.question_type==3),Wt=vt.length>0?vt.every(nt=>{var Ge;return(nt==null?void 0:nt.multi_count)==((Ge=nt==null?void 0:nt.user_answer)==null?void 0:Ge.length)})?1:vt.some(nt=>{var Ge;return(nt==null?void 0:nt.multi_count)>((Ge=nt==null?void 0:nt.user_answer)==null?void 0:Ge.length)})?2:0:1;G.question_status.find(nt=>nt.ques_id===(ft==null?void 0:ft.question_id)).ques_status=(gt==null?void 0:gt.length)===((yt=ft==null?void 0:ft.sub_exercise_questions)==null?void 0:yt.length)?0:(gt==null?void 0:gt.length)>0&&(gt==null?void 0:gt.length)<((st=ft==null?void 0:ft.sub_exercise_questions)==null?void 0:st.length)?2:Wt}else G.question_status.find(gt=>gt.ques_id===Ce).ques_status=c!=null&&c.length?1:0;xo(In({},G))})},It=(c,Ce,Ve,ft,Ue,it)=>wn(void 0,null,function*(){return c.replaceAll(" ","")?yield Xt(Ve,Ce,c,()=>{var st,gt,vt,Wt;let nt={choice_id:Ce,answer_text:c};if(Ue.user_answer.filter(Ge=>Ge.choice_id!=Ce)?Ue.user_answer.splice(Ce-1,1,nt):Ue.user_answer.push(nt),it!=null&&it.question_id){let Ge=(st=it==null?void 0:it.sub_exercise_questions)==null?void 0:st.filter(Vt=>{var Tn;return((Tn=Vt.user_answer)==null?void 0:Tn.length)===0});const an=(gt=it==null?void 0:it.sub_exercise_questions)==null?void 0:gt.filter(Vt=>Vt.question_type==3),gr=an.length>0?an.every(Vt=>{var Tn;return(Vt==null?void 0:Vt.multi_count)==((Tn=Vt==null?void 0:Vt.user_answer)==null?void 0:Tn.length)})?1:an.some(Vt=>{var Tn;return(Vt==null?void 0:Vt.multi_count)>((Tn=Vt==null?void 0:Vt.user_answer)==null?void 0:Tn.length)})?2:0:1;G.question_status.find(Vt=>Vt.ques_id===(it==null?void 0:it.question_id)).ques_status=(Ge==null?void 0:Ge.length)===((vt=it==null?void 0:it.sub_exercise_questions)==null?void 0:vt.length)?0:(Ge==null?void 0:Ge.length)>0&&(Ge==null?void 0:Ge.length)<((Wt=it==null?void 0:it.sub_exercise_questions)==null?void 0:Wt.length)?2:gr}else G.question_status.find(Ge=>Ge.ques_id===Ve).ques_status=ft.every(Ge=>!!Ge.answer_text)?1:G.question_status.find(Ge=>Ge.ques_id===Ve).ques_status=ft.some(Ge=>!!Ge.answer_text)?2:0;xo(In({},G))}):(Jt(),{status:-4,message:"\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"})}),zt=(c,Ce,Ve,ft,Ue)=>wn(void 0,null,function*(){return c.replaceAll(" ","")?yield Xt(Ve,Ce,c,()=>{G.question_status.find(st=>st.ques_id===Ve).ques_status=ft.every(st=>!!st.value)?1:G.question_status.find(st=>st.ques_id===Ve).ques_status=ft.some(st=>!!st.value)?2:0;let yt={choice_id:Ce,answer_text:c};Ue.user_answer.filter(st=>st.choice_id!=Ce)?Ue.user_answer.splice(Ce-1,1,yt):Ue.user_answer.push(yt),Ue.repeat_answer||(Ue.israp=!0),xo(In({},G))}):(Jt(),{status:-4,message:"\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"})}),hn=(c,Ce,Ve,ft,Ue)=>{if(!c.replaceAll(" ","")){Jt();return}Xt(Ce,null,c,()=>{var it,yt,st,gt;if(Ve.user_answer=[],Ve.user_answer.push(c),Ue!=null&&Ue.question_id){let vt=(it=Ue==null?void 0:Ue.sub_exercise_questions)==null?void 0:it.filter(Ge=>{var an;return((an=Ge.user_answer)==null?void 0:an.length)===0});const Wt=(yt=Ue==null?void 0:Ue.sub_exercise_questions)==null?void 0:yt.filter(Ge=>Ge.question_type==3),nt=Wt.length>0?Wt.every(Ge=>{var an;return(Ge==null?void 0:Ge.multi_count)==((an=Ge==null?void 0:Ge.user_answer)==null?void 0:an.length)})?1:Wt.some(Ge=>{var an;return(Ge==null?void 0:Ge.multi_count)>((an=Ge==null?void 0:Ge.user_answer)==null?void 0:an.length)})?2:0:1;G.question_status.find(Ge=>Ge.ques_id===(Ue==null?void 0:Ue.question_id)).ques_status=(vt==null?void 0:vt.length)===((st=Ue==null?void 0:Ue.sub_exercise_questions)==null?void 0:st.length)?0:(vt==null?void 0:vt.length)>0&&(vt==null?void 0:vt.length)<((gt=Ue==null?void 0:Ue.sub_exercise_questions)==null?void 0:gt.length)?2:nt}else G.question_status.find(vt=>vt.ques_id===Ce).ques_status=c?1:0;xo(In({},G))},void 0,void 0,ft)},Fn=(c,Ce,Ve)=>{var ft,Ue,it,yt,st,gt,vt;let Wt="";const nt=(c==null?void 0:c.question_type)===0||(c==null?void 0:c.question_type)===1;nt&&((ft=c==null?void 0:c.question_choices)==null||ft.forEach((an,gr)=>{an.standard_boolean&&(Wt=Wt+kr[gr])}));const Ge=((Ue=G==null?void 0:G.exercise)==null?void 0:Ue.user_exercise_status)===1||!c.repeat_answer&&((it=c==null?void 0:c.user_answer)==null?void 0:it.length)>0&&c.ques_status!==0;return h.createElement("div",null,h.createElement("div",{className:b.baseMargin},h.createElement(M.ZP.Group,{disabled:Ge,defaultValue:(yt=c==null?void 0:c.user_answer)==null?void 0:yt[0],onChange:an=>Rt(an.target.value,c==null?void 0:c.question_id,Ce,c,Ve),className:c.user_score&&`edu-radio-${c.user_score===c.question_score?"green":"red"}`},(st=c==null?void 0:c.question_choices)==null?void 0:st.map((an,gr)=>{const Tn=c.question_type==2?"":`${kr[gr]}.`;return h.createElement("div",{className:b.answerWrap,key:gr},h.createElement(M.ZP,{className:b.noWrap,value:an==null?void 0:an.choice_id},h.createElement(D.Z,{wrap:!1,align:"middle"},h.createElement(g.Z,null,h.createElement("span",{style:{color:"#333333"},className:"font16 mr3"},Tn)),h.createElement(g.Z,null,h.createElement(he.Z,{className:b.renderHtml,value:an==null?void 0:an.choice_text})))))}))),((0,q.GJ)()||(0,q.dE)()&&((gt=G==null?void 0:G.exercise)==null?void 0:gt.user_exercise_status)>0&&((vt=G==null?void 0:G.exercise)==null?void 0:vt.open_score))&&h.createElement(D.Z,{justify:"end",className:"mb20",align:"middle"},h.createElement("span",{className:"font14",style:{color:"#6A7283"}},"\u5F97\u5206"),h.createElement("span",{className:"font14 ml10"},(c==null?void 0:c.user_score)&&h.createElement("span",null,h.createElement("span",{className:Wr[Number(c==null?void 0:c.answer_status)]||"c-orange-ff9"},c==null?void 0:c.user_score),h.createElement("span",{style:{marginLeft:5,color:"#6A7283"}},"\u5206")),!(c!=null&&c.user_score)&&h.createElement("span",{className:"c-red"},"\u672A\u8BC4"))),(c==null?void 0:c.standard_answer_show)&&h.createElement("div",{className:b.analysisWrap},h.createElement("div",{className:b.greyBg},h.createElement(D.Z,{className:"mb20"},h.createElement(g.Z,{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u7B54\u6848\u3011"),h.createElement(g.Z,null,nt?Wt:c==null?void 0:c.standard_answer_show)),h.createElement(D.Z,{align:"middle"},h.createElement("span",{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u89E3\u6790\u3011"),h.createElement(he.Z,{className:b.renderHtml,value:c==null?void 0:c.analysis})))))},Dn=(c,Ce,Ve)=>{var ft,Ue;const it=((ft=G==null?void 0:G.exercise)==null?void 0:ft.user_exercise_status)===1||!c.repeat_answer&&c.ques_status!==0;return h.createElement("div",null,(Ue=c==null?void 0:c.sub_exercise_questions)==null?void 0:Ue.map((yt,st)=>{var gt;let vt="";return(gt=yt==null?void 0:yt.question_choices)==null||gt.forEach((Wt,nt)=>{Wt.standard_boolean&&(vt=vt+kr[nt])}),h.createElement("div",{className:`${b.baseMargin} ${b.singleItem} mb20`,key:st},h.createElement("div",{style:{display:"flex",alignItems:"baseline",marginBottom:40}},h.createElement("span",{style:{flexShrink:0,color:"#999999"},className:"font14"},"\uFF08",yt==null?void 0:yt.question_score,"\u5206\uFF09"),h.createElement("span",{style:{flexShrink:0,marginRight:6},className:"font16"},Ve+1+"."+(st+1)),h.createElement(he.Z,{value:yt==null?void 0:yt.question_title})),((yt==null?void 0:yt.question_type)==0||(yt==null?void 0:yt.question_type)==2)&&Fn(yt,yt==null?void 0:yt.question_type,c),(yt==null?void 0:yt.question_type)==1&&un(yt,yt==null?void 0:yt.question_type,c),(yt==null?void 0:yt.question_type)==3&&jn(yt,yt==null?void 0:yt.question_type,c),(yt==null?void 0:yt.question_type)==4&&Wn(yt,yt==null?void 0:yt.question_type,c))}))};console.log("----",G);const un=(c,Ce,Ve)=>{var ft,Ue,it,yt,st,gt;let vt="";const Wt=(c==null?void 0:c.question_type)===0||(c==null?void 0:c.question_type)===1;Wt&&((ft=c==null?void 0:c.question_choices)==null||ft.forEach((Ge,an)=>{Ge.standard_boolean&&(vt=vt+kr[an])}));const nt=((Ue=G==null?void 0:G.exercise)==null?void 0:Ue.user_exercise_status)===1||!c.repeat_answer&&((it=c==null?void 0:c.user_answer)==null?void 0:it.length)>0&&c.ques_status!==0;return h.createElement("div",null,h.createElement("div",{className:b.baseMargin},h.createElement(B.default.Group,{disabled:nt,defaultValue:c==null?void 0:c.user_answer,style:{flexDirection:"column"},onChange:Ge=>Mt(Ge,c==null?void 0:c.question_id,c,Ve),className:c.user_score&&`edu-checkbox-${c.user_score===c.question_score?"green":"red"}`},(yt=c==null?void 0:c.question_choices)==null?void 0:yt.map((Ge,an)=>{const gr=`${kr[an]}.`;return h.createElement("div",{className:b.answerWrap},h.createElement(B.default,{value:Ge==null?void 0:Ge.choice_id},h.createElement(D.Z,{wrap:!1,align:"middle"},h.createElement(g.Z,null,h.createElement("span",{style:{color:"#333333",whiteSpace:"nowrap"},className:"font16 mr3"},gr)),h.createElement(g.Z,null,h.createElement(he.Z,{className:b.renderHtml,value:Ge==null?void 0:Ge.choice_text})))))}))),((0,q.GJ)()||(0,q.dE)()&&((st=G==null?void 0:G.exercise)==null?void 0:st.user_exercise_status)>0&&((gt=G==null?void 0:G.exercise)==null?void 0:gt.open_score))&&h.createElement(D.Z,{justify:"end",className:"mb20",align:"middle"},h.createElement("span",{className:"font14",style:{color:"#6A7283"}},"\u5F97\u5206"),h.createElement("span",{className:"font14 ml10"},(c==null?void 0:c.user_score)&&h.createElement("span",null,h.createElement("span",{className:Wr[Number(c==null?void 0:c.answer_status)]||"c-orange-ff9"},c==null?void 0:c.user_score),h.createElement("span",{style:{marginLeft:5,color:"#6A7283"}},"\u5206")),!(c!=null&&c.user_score)&&h.createElement("span",{className:"c-red"},"\u672A\u8BC4"))),(c==null?void 0:c.standard_answer_show)&&h.createElement("div",{className:b.analysisWrap},h.createElement("div",{className:b.greyBg},h.createElement(D.Z,{className:"mb20"},h.createElement(g.Z,{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u7B54\u6848\u3011"),h.createElement(g.Z,null,Wt?vt:c==null?void 0:c.standard_answer_show)),h.createElement(D.Z,{align:"middle",className:"mt15"},h.createElement("span",{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u89E3\u6790\u3011"),h.createElement(he.Z,{className:b.renderHtml,value:c==null?void 0:c.analysis})))))},jn=(c,Ce,Ve)=>h.createElement(En,{item:c,sign:Xn,answerData:G,onBlur:(ft,Ue,it)=>wn(void 0,null,function*(){return yield It(ft,Ue,c==null?void 0:c.question_id,it,c,Ve)})}),Wn=(c,Ce,Ve)=>Bo?h.createElement(Te,{item:c,answerData:G,onBlur:(ft,Ue,it)=>Xt(c==null?void 0:c.question_id,null,ft,void 0,Ue,it),isEducation:Bo}):h.createElement(et,{item:c,answerData:G,onBlur:(ft,Ue)=>hn(ft,c==null?void 0:c.question_id,c,Ue,Ve),isEducation:Bo,sign:Xn}),Cr=(c,Ce)=>h.createElement(Q,{item:c,answerData:G,exerciseId:Qt.categoryId,coursesId:Qt.coursesId}),nr=(c,Ce)=>h.createElement(d,{item:c,answerData:G}),Fr=(c,Ce)=>h.createElement(Zr,{setIsSubmitCode:To,item:c,sign:Xn,answerData:G,onBlur:(Ve,ft,Ue)=>wn(void 0,null,function*(){return yield zt(Ve,ft,c==null?void 0:c.question_id,Ue,c)})}),Nr=c=>{if(dl){const Ce=n.default.confirm({centered:!0,icon:null,title:"\u63D0\u793A",content:h.createElement("span",{className:"c-red"},"\u4F60\u7684\u7B54\u9898\u5185\u5BB9\u672A\u63D0\u4EA4\u8BC4\u6D4B\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u8BE5\u9898\u65E0\u6CD5\u83B7\u5F97\u5206\u6570"),okText:"\u7ACB\u5373\u63D0\u4EA4",cancelText:"\u5FFD\u7565",onCancel:()=>{La(!1),c==null||c()},onOk:()=>{La(!1),yn.Z.publish("BFill:Submit",{})}});return}c==null||c()};(0,t.useEffect)(()=>{const c=yn.Z.subscribe("BFill:Submit:Change",({value:Ce})=>{La(Ce)});return()=>{c()}},[]);const Bn=(c,Ce,Ve)=>{var ft,Ue;const it=(ft=G==null?void 0:G.exercise_question_types)==null?void 0:ft.find(yt=>yt.question_type===Ce);return h.createElement("div",{className:b.answerSheetWrap},h.createElement("div",{className:b.answerSheetQuestionTitle,onClick:()=>{No[Ce]=!No[Ce],tl(In({},No))}},!No[Ce]&&h.createElement(k.Z,null),No[Ce]&&h.createElement(de.Z,null),h.createElement("span",{className:"ml5 c-grey-666"},c)),!No[Ce]&&h.createElement(D.Z,{className:b.answerSheet,gutter:[20,20],key:Ce},(Ue=it==null?void 0:it.items)==null?void 0:Ue.map(function(yt,st){var gt,vt,Wt,nt,Ge,an,gr;let Vt=` - ${(gt=G==null?void 0:G.question_status)!=null&>.some(Tn=>{var Pr,Gr;return Tn.ques_id===yt.question_id&&(Tn==null?void 0:Tn.ques_status)===1&&((Pr=G==null?void 0:G.exercise)==null?void 0:Pr.exercise_status)!==3&&!((Gr=G==null?void 0:G.exercise)!=null&&Gr.open_score_commited)})?b.active:""} - ${(vt=G==null?void 0:G.question_status)!=null&&vt.some(Tn=>{var Pr,Gr;return Tn.ques_id===yt.question_id&&(Tn==null?void 0:Tn.ques_status)===2&&((Pr=G==null?void 0:G.exercise)==null?void 0:Pr.exercise_status)!==3&&!((Gr=G==null?void 0:G.exercise)!=null&&Gr.open_score_commited)})?b.partialActive:""} - ${(Wt=G==null?void 0:G.question_status)!=null&&Wt.some(Tn=>{var Pr,Gr;return Tn.ques_id===yt.question_id&&(Tn==null?void 0:Tn.score_status)===1&&(((Pr=G==null?void 0:G.exercise)==null?void 0:Pr.exercise_status)===3||((Gr=G==null?void 0:G.exercise)==null?void 0:Gr.open_score_commited))})?b.yes:""} - ${(nt=G==null?void 0:G.question_status)!=null&&nt.some(Tn=>{var Pr,Gr;return Tn.ques_id===yt.question_id&&(Tn==null?void 0:Tn.score_status)===2&&(((Pr=G==null?void 0:G.exercise)==null?void 0:Pr.exercise_status)===3||((Gr=G==null?void 0:G.exercise)==null?void 0:Gr.open_score_commited))})?b.no:""} - ${(Ge=G==null?void 0:G.question_status)!=null&&Ge.some(Tn=>{var Pr,Gr;return Tn.ques_id===yt.question_id&&(Tn==null?void 0:Tn.score_status)===3&&(((Pr=G==null?void 0:G.exercise)==null?void 0:Pr.exercise_status)===3||((Gr=G==null?void 0:G.exercise)==null?void 0:Gr.open_score_commited))})?b.bf:""} - `;if(yt.question_type===Ce)return(an=G==null?void 0:G.exercise)!=null&&an.open_score&&(Number(yt.question_score)===Number(yt.user_score)?Vt=b.green:yt.user_score>0?Vt=b.orange:Vt=b.red),h.createElement(g.Z,null,h.createElement("div",{onClick:()=>{Nr(()=>{if(!(Ve===cr&&st===pr)){if(Xn.current){Xn.current="appoint",Sr.current={oneindex:Ve,twoindex:st};return}rn({oneindex:Ve,twoindex:st})}})},key:st,className:` - ${b.answerSheetItem} - ${Vt} - ${Ve===cr&&st===pr?b.selected:""} - `},h.createElement("span",{className:b.qindex},st+1),((gr=G==null?void 0:G.question_status)==null?void 0:gr.some(Tn=>{var Pr;return Tn.ques_id===yt.question_id&&(Tn==null?void 0:Tn.ques_status)===2&&((Pr=G==null?void 0:G.exercise)==null?void 0:Pr.exercise_status)!==3}))&&h.createElement("div",{style:{height:12,background:"rgba(22,93,255,0.4)",position:"absolute",width:"100%",bottom:0}}),yt.is_marked&&h.createElement("i",{className:`iconfont icon-biaoji1 ${b.markIcon}`})))})))},Hr=(c,Ce)=>{var Ve,ft,Ue,it;let yt="";return((c==null?void 0:c.question_type)===0||(c==null?void 0:c.question_type)===1)&&((Ve=c==null?void 0:c.question_choices)==null||Ve.forEach((gt,vt)=>{gt.standard_boolean&&(yt=yt+kr[vt])})),h.createElement("div",{className:b.questionItem,id:`Anchor_${c==null?void 0:c.question_type}_${Ce}`},h.createElement("div",{style:{display:"flex",alignItems:"baseline",marginBottom:40}},h.createElement("span",{className:`${b.questionScore} mr10`},c==null?void 0:c.question_score,"\u5206"),h.createElement("span",{className:`font16 ${b.noWrap}`},Ce+1,"\u3001"),h.createElement(he.Z,{value:(c==null?void 0:c.question_type)===8?c==null?void 0:c.description:c==null?void 0:c.question_title}),!!((ft=c==null?void 0:c.schools)!=null&&ft.length)&&h.createElement(I.Z,{title:"\u8BE5\u5B9E\u8BAD\u9898\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},h.createElement("i",{className:"iconfont icon-zhidinggongkai1 line24 font18 c-orange"}))),(c==null?void 0:c.question_type)===6&&h.createElement(Pe.Z,{style:{margin:`-30px 0 ${$o.get("check")?11:30}px 60px`},dataSource:(c==null?void 0:c.languages)||[]}),(c==null?void 0:c.question_type)==0&&Fn(c,c==null?void 0:c.question_type),(c==null?void 0:c.question_type)==2&&Fn(c,c==null?void 0:c.question_type),(c==null?void 0:c.question_type)==1&&un(c,c==null?void 0:c.question_type),(c==null?void 0:c.question_type)==3&&jn(c,c==null?void 0:c.question_type),(c==null?void 0:c.question_type)==4&&Wn(c,c==null?void 0:c.question_type),(c==null?void 0:c.question_type)==5&&((Ue=G==null?void 0:G.exercise)==null?void 0:Ue.user_exercise_status)===0&&(c==null?void 0:c.answer_status)!=3&&h.createElement("div",{style:{margin:"-28px 0 12px 62px"}},h.createElement(D.Z,{justify:"space-between",align:"middle"},h.createElement(g.Z,null,h.createElement("span",{className:"font14 c-grey-666"},"\u4EFB\u52A1\u5173\u5361")),h.createElement(g.Z,null,h.createElement(Ze.Z,{type:"primary",className:b.toIframeBtn,onClick:()=>wn(void 0,null,function*(){return yield pt(c)})},"\u8FDB\u5165\u7B54\u9898")))),(c==null?void 0:c.question_type)==5&&Cr(c,c==null?void 0:c.question_type),(0,q.dE)()&&((it=G==null?void 0:G.exercise)==null?void 0:it.user_exercise_status)===0&&(c==null?void 0:c.question_type)==6&&h.createElement("div",{style:{margin:"-28px 0 -25px"}},h.createElement(D.Z,{justify:"end",align:"middle"},h.createElement(g.Z,null,h.createElement(Ze.Z,{type:"primary",className:b.toIframeBtn,onClick:()=>_t(c)},"\u8FDB\u5165\u7B54\u9898")))),(c==null?void 0:c.question_type)==6&&nr(c,c==null?void 0:c.question_type),(c==null?void 0:c.question_type)==7&&Dn(c,c==null?void 0:c.question_type,Ce),(c==null?void 0:c.question_type)==8&&Fr(c,c==null?void 0:c.question_type),(c==null?void 0:c.answer_comments)&&h.createElement(Ut,{hideScore:!0,list:c==null?void 0:c.answer_comments}))},or=(c,Ce)=>h.createElement(t.Fragment,null,Bn((c==null?void 0:c.name)||Rn.fw[c.question_type].name,c.question_type,Ce)),Xn=(0,t.useRef)(!1),Sr=(0,t.useRef)({}),Qr=(0,t.useRef)(),pn=(0,t.useRef)({}),fn=()=>{var c,Ce,Ve,ft,Ue,it,yt,st,gt;window.blur();const vt=(Ve=(Ce=(c=G.exercise_question_types)==null?void 0:c[cr])==null?void 0:Ce.items)==null?void 0:Ve[pr];if(!ia&&((ft=G==null?void 0:G.exercise)==null?void 0:ft.user_exercise_status)===0&&(0,q.dE)()&&!(vt!=null&&vt.repeat_answer)&&((Ue=vt==null?void 0:vt.user_answer)==null?void 0:Ue.length)>0&&(vt==null?void 0:vt.ques_status)===0){Qr.current="prev",la(!0);return}!(vt!=null&&vt.repeat_answer)&&((it=vt==null?void 0:vt.user_answer)==null?void 0:it.length)>0&&(vt.ques_status=1),sa.current.scrollTo({top:0,left:0,behavior:"smooth"}),pr===0?(cr-=1,pr=G.exercise_question_types[cr].items.length-1):pr-=1,(vt==null?void 0:vt.question_type)==8&&!Ko&&setTimeout(()=>{re(vt)},500),qo((gt=(st=(yt=G==null?void 0:G.exercise_question_types)==null?void 0:yt[cr])==null?void 0:st.items)==null?void 0:gt[pr]),To(!1),Ho(cr),Wo(pr)},dn=()=>{var c,Ce,Ve,ft,Ue,it,yt,st,gt,vt,Wt;window.blur();const nt=(Ve=(Ce=(c=G.exercise_question_types)==null?void 0:c[cr])==null?void 0:Ce.items)==null?void 0:Ve[pr];if(!ia&&((ft=G==null?void 0:G.exercise)==null?void 0:ft.user_exercise_status)===0&&(0,q.dE)()&&!(nt!=null&&nt.repeat_answer)&&((Ue=nt==null?void 0:nt.user_answer)==null?void 0:Ue.length)>0&&(nt==null?void 0:nt.ques_status)===0){Qr.current="next",la(!0);return}!(nt!=null&&nt.repeat_answer)&&((it=nt==null?void 0:nt.user_answer)==null?void 0:it.length)>0&&(nt.ques_status=1),sa.current.scrollTo({top:0,left:0,behavior:"smooth"}),((st=(yt=G==null?void 0:G.exercise_question_types[cr])==null?void 0:yt.items)==null?void 0:st.length)-1===pr?(cr=cr+1,pr=0):pr=pr+1,(nt==null?void 0:nt.question_type)==8&&!Ko&&setTimeout(()=>{re(nt)},500),qo((Wt=(vt=(gt=G==null?void 0:G.exercise_question_types)==null?void 0:gt[cr])==null?void 0:vt.items)==null?void 0:Wt[pr]),To(!1),Ho(cr),Wo(pr)},rn=c=>{var Ce,Ve,ft,Ue,it,yt,st,gt,vt;const Wt=c||Sr.current,nt=(ft=(Ve=(Ce=G.exercise_question_types)==null?void 0:Ce[cr])==null?void 0:Ve.items)==null?void 0:ft[pr];if(!ia&&((Ue=G==null?void 0:G.exercise)==null?void 0:Ue.user_exercise_status)===0&&(0,q.dE)()&&!(nt!=null&&nt.repeat_answer)&&((it=nt==null?void 0:nt.user_answer)==null?void 0:it.length)>0&&(nt==null?void 0:nt.ques_status)===0){Qr.current="appoint",pn.current=Wt,la(!0);return}!(nt!=null&&nt.repeat_answer)&&((yt=nt==null?void 0:nt.user_answer)==null?void 0:yt.length)>0&&(nt.ques_status=1),(nt==null?void 0:nt.question_type)==8&&!Ko&&setTimeout(()=>{re(nt)},500),qo((vt=(gt=(st=G==null?void 0:G.exercise_question_types)==null?void 0:st[Wt==null?void 0:Wt.oneindex])==null?void 0:gt.items)==null?void 0:vt[Wt==null?void 0:Wt.twoindex]),To(!1),Ho(Wt==null?void 0:Wt.oneindex),Wo(Wt==null?void 0:Wt.twoindex),sa.current.scrollTo({top:0,left:0,behavior:"smooth"})},rr=()=>wn(void 0,null,function*(){var c;if(Xn.current){Xn.current="refresh";return}const Ce=yield ge();(c=G==null?void 0:G.exercise)!=null&&c.left_time&&(yield We(!0)),Ce!=null&&Ce.status||W.ZP.success("\u66F4\u65B0\u6210\u529F")}),Jt=()=>{var c,Ce;switch(Xn.current){case"prev":fn();break;case"next":dn();break;case"appoint":rn();break;case"submit":cn(!1);break;case"refresh":rr();break;default:}((c=document.activeElement)==null?void 0:c.name)==="edu-program-fill"||((Ce=document.activeElement)==null?void 0:Ce.name)==="sign"?Xn.current=!0:Xn.current=!1,Sr.current={}},On=()=>{var c,Ce,Ve,ft,Ue,it,yt,st,gt,vt,Wt,nt;const Ge=(Ce=(c=G==null?void 0:G.exercise_question_types)==null?void 0:c[cr].items)==null?void 0:Ce[pr];return h.createElement(t.Fragment,{key:cr},h.createElement("div",{className:"pt20 mb20"},h.createElement("span",{className:b.questionTypeTitle},(0,A.EM)(cr+1),"\u3001",(ft=(Ve=G==null?void 0:G.exercise_question_types)==null?void 0:Ve[cr])==null?void 0:ft.name),h.createElement("span",{className:b.questionTypeInfo},"\uFF08\u5171",(it=(Ue=G==null?void 0:G.exercise_question_types)==null?void 0:Ue[cr])==null?void 0:it.count,"\u9898\uFF1B",((st=(yt=G==null?void 0:G.exercise_question_types)==null?void 0:yt[cr])==null?void 0:st.question_type)===7?`\u5305\u542B${(vt=(gt=G==null?void 0:G.exercise_question_types)==null?void 0:gt[cr])==null?void 0:vt.sub_questions_count}\u5C0F\u9898`:""," \u5171",(nt=(Wt=G==null?void 0:G.exercise_question_types)==null?void 0:Wt[cr])==null?void 0:nt.score,"\u5206\uFF09"),!(Ge!=null&&Ge.repeat_answer)&&h.createElement("span",{style:{color:"#E30000",marginLeft:20,fontSize:14}},"\u6CE8\u610F\uFF1A\u8BE5\u9898\u4F5C\u7B54\u4E4B\u540E\u4E0D\u5141\u8BB8\u4FEE\u6539\u7B54\u6848\u3002")),h.createElement(t.Fragment,{key:pr},Hr(Ge,pr)))},tr=()=>{Fo(!0)},Un=()=>wn(void 0,null,function*(){var c;const Ce=yield(0,ae.ZP)(`/api/exercises/${Qt.categoryId}/exercise_user/polling_exercise_user_status.json`,{method:"get"});(Ce==null?void 0:Ce.status)==0&&((c=Ce==null?void 0:Ce.data)!=null&&c.is_commited)?Xe():setTimeout(()=>{Un()},3e3)}),eo=()=>wn(void 0,null,function*(){if(localStorage.getItem("stopGetVrsEnvStatus")=="\u865A\u62DF\u4EFF\u771F\u8D44\u6E90\u52A0\u8F7D\u5B8C\u6210"){Un();return}const Ce=yield(0,ae.ZP)(`/api/courses/${Qt.coursesId}/exercises/${Qt.categoryId}/exercise_status.json`,{method:"get"});(Ce==null?void 0:Ce.status)==0&&(Ce==null?void 0:Ce.vrs_env_status)==1?(localStorage.setItem("stopGetVrsEnvStatus","\u865A\u62DF\u4EFF\u771F\u8D44\u6E90\u52A0\u8F7D\u5B8C\u6210"),Un(),_l(!0)):setTimeout(()=>{localStorage.setItem("stopGetVrsEnvStatus","\u865A\u62DF\u4EFF\u771F\u8D44\u6E90\u672A\u52A0\u8F7D\u5B8C\u6210"),eo()},1500)});return h.createElement(E.Z,{size:"middle",spinning:nl,tip:h.createElement("div",{className:"c-grey-333 animation-delayed mt10"},"\u60A8\u5F53\u524D\u7F51\u7EDC\u8FDE\u63A5\u8F83\u6162\uFF0C\u5EFA\u8BAE\u60A8",h.createElement("span",{onClick:()=>window.location.reload(),className:"c-light-primary current"},"\u5237\u65B0"),"\u9875\u9762\u540E\u518D\u8BD5\uFF01")},ul&&h.createElement("div",{className:b.screenLock},h.createElement("h3",null,"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u7684\u7535\u8111\u6709",localStorage.screenNums,"\u4E2A\u663E\u793A\u5668"),h.createElement("h4",null,"\u8BF7\u5148\u79FB\u9664\u6389\u5176\u5B83\u7684\u663E\u793A\u5668\u8BBE\u5907\uFF01")),ya&&((Gn=G==null?void 0:G.exercise)==null?void 0:Gn.user_exercise_status)===0&&h.createElement(H.Z,{exerciseUserInfo:gn.exerciseUserInfo,iframe:ka,handleToDetail:ze,socket:aa,onStartScreenshot:()=>{bt!=null&&bt.screen_shot_open&&ba(!0)},onCloseScreenshot:()=>{bt!=null&&bt.screen_shot_open&&ba(!1)}}),h.createElement(te,{id:Qt.categoryId,startRecording:xa,startScreenshot:Ca,onSuccuss:()=>{fo(bt==null?void 0:bt.screen_open),ge()},onBack:ze}),h.createElement("iframe",{style:{display:al},id:"iframeShixuns",className:b.iframe,src:ol,ref:ka,frameBorder:"0"}),Po.status!==-2&&Po.status!==-1&&h.createElement("div",{className:b.fixHeader},h.createElement(D.Z,{wrap:!1,align:"middle",className:"edu-container"},h.createElement(g.Z,null,(0,A.vB)((_n=G==null?void 0:G.exercise)==null?void 0:_n.exercise_status)),h.createElement(g.Z,{className:`${b.exerciseTitle} ml10`,title:(ot=G==null?void 0:G.exercise)==null?void 0:ot.exercise_name},(Ot=G==null?void 0:G.exercise)==null?void 0:Ot.exercise_name),h.createElement(g.Z,{style:{marginLeft:"auto"}},(($n=G==null?void 0:G.exercise)==null?void 0:$n.user_exercise_status)===1&&h.createElement(ne.ZP,{className:b.changeButton,type:"primary",onClick:()=>{l.history.push(`/classrooms/${Qt.coursesId}/exercise/${Qt.categoryId}/detail`)}},"\u8FD4\u56DE")),!((0,q.GJ)()||(0,q.dE)()&&((sr=G==null?void 0:G.exercise)==null?void 0:sr.user_exercise_status)==1)&&!!((Mn=G==null?void 0:G.exercise)!=null&&Mn.left_time)&&h.createElement(g.Z,{style:{marginLeft:"auto"}},h.createElement("aside",{className:`${b.countDown} ${Go}`},h.createElement("i",{className:"iconfont icon-daojishi",style:{marginRight:6}}),h.createElement("span",{className:b.cnText},"\u5269\u4F59\u7B54\u9898\u65F6\u957F"),fl?h.createElement(Er,{value:Fa,onFinish:()=>We()}):h.createElement("div",{style:{color:"#37AD83",fontSize:"20px",fontWeight:"500",marginLeft:10}},(0,A.Gh)((Yn=G==null?void 0:G.exercise)==null?void 0:Yn.left_time)))),h.createElement(g.Z,null,!((0,q.GJ)()||(0,q.dE)()&&((wr=G==null?void 0:G.exercise)==null?void 0:wr.user_exercise_status)==1)&&gn.actionTabs.key!=="student-unlock"&&Aa&&h.createElement(Ze.Z,{className:`${b.refreshBtn} ml30`,onClick:rr},h.createElement("span",{className:"iconfont icon-shuaxin2 mr5"}),"\u5237\u65B0")),h.createElement(g.Z,null,(0,q.dE)()&&((Mr=G==null?void 0:G.exercise)==null?void 0:Mr.user_exercise_status)===0&&h.createElement(Ze.Z,{className:`${b.submitButton} ml10`,type:"primary",onClick:()=>wn(void 0,null,function*(){Nr(()=>wn(void 0,null,function*(){if(Xn.current){Xn.current="submit";return}yield cn(!1)}))})},(0,on._V)(on.CP.answer7))),h.createElement(g.Z,null,((Kn=G==null?void 0:G.exercise)==null?void 0:Kn.forbid_screen)&&h.createElement(ne.ZP,{className:`${b.submitButton} ml10`,type:"primary",onClick:tr},(0,on._V)(on.CP.answer12))),h.createElement(g.Z,null,((($r=G==null?void 0:G.exercise)==null?void 0:$r.commit_status)==1||((Jn=G==null?void 0:G.exercise)==null?void 0:Jn.exercise_status)==3)&&((Kr=G==null?void 0:G.exercise_answer_user)==null?void 0:Kr.analysis)&&h.createElement("span",{className:b.teachAnalysis,onClick:()=>Pa(!0)},h.createElement("i",{className:"iconfont icon-jiaoshipingjia"}),h.createElement("span",{className:"ml5"},"\u6559\u5E08\u8BC4\u4EF7"))))),h.createElement("section",{className:`edu-container ${b.wrapper} ${Bo&&b.wrpAnswer}`},Po.status===0&&h.createElement(D.Z,{className:`${Bo?"mt70":""} ${b.mainPart}`,wrap:!1},h.createElement(g.Z,{flex:Do?"280px":"0px",className:Bo?"mb100":""},h.createElement("div",{className:b.leftPart},h.createElement("section",null,Do&&h.createElement(g.Z,{flex:"1",style:{background:"#fff",marginBottom:"10px",padding:"20px"}},h.createElement("div",{style:{marginBottom:15}},h.createElement("span",{style:{color:"#5F6368"}},"\u59D3\u540D"),h.createElement("span",{className:`ml10 ${b.userInfoText}`},((qr=G==null?void 0:G.exercise)==null?void 0:qr.user_name)||"- -")),h.createElement("div",null,h.createElement("span",{style:{color:"#5F6368"}},"\u5B66\u53F7"),h.createElement("span",{className:`ml10 ${b.userInfoText}`},((ao=G==null?void 0:G.exercise)==null?void 0:ao.student_id)||"- -"))),Do&&(0,q.dE)()&&((wo=G.exercise)==null?void 0:wo.user_exercise_status)===0&&((ro=G.exercise)==null?void 0:ro.open_phone_video_recording)&&h.createElement(D.Z,{className:b.eduQrcode,style:{marginTop:10},align:"middle"},h.createElement(g.Z,null,h.createElement(L(),{value:`https://${document.domain}/live-push.html?id=${Qt.categoryId}&login=${Qt.login}&cookie=${(0,A.ej)("_educoder_session")}`})),h.createElement(g.Z,{className:"ml15"},"\u6253\u5F00\u5FAE\u4FE1\u626B\u4E00\u626B",h.createElement("br",null),"\u5F00\u542F\u624B\u673A\u89C6\u9891\u5F55\u5236")),Do&&h.createElement("aside",{className:"bg-white"},h.createElement("aside",{className:b.answerInfo},h.createElement(D.Z,{justify:"space-between"},h.createElement(g.Z,null,"\u7B54\u9898\u8FDB\u5EA6"),h.createElement(g.Z,{className:b.answerProgress},h.createElement("span",{style:{color:"#165DFF"}},(yo=(uo=G==null?void 0:G.question_status)==null?void 0:uo.filter(c=>c.ques_status===1))==null?void 0:yo.length),h.createElement("span",{style:{color:"#999999"}},"/",(Ln=G==null?void 0:G.exercise_types)==null?void 0:Ln.q_counts))),h.createElement(D.Z,null,h.createElement(w.Z,{strokeColor:"#165dffa6",trailColor:"#0000000d",percent:((Hn=(vr=G==null?void 0:G.question_status)==null?void 0:vr.filter(c=>c.ques_status===1))==null?void 0:Hn.length)/((Kt=G==null?void 0:G.exercise_types)==null?void 0:Kt.q_counts)*100,showInfo:!1})),h.createElement(D.Z,null,h.createElement(g.Z,null,h.createElement("span",{className:"c-grey-333"},"\u5171 ",h.createElement("span",{style:{color:"#165DFF"}},((fr=G==null?void 0:G.exercise_types)==null?void 0:fr.q_counts)||((zr=(Br=G==null?void 0:G.exercise_scores)==null?void 0:Br.exercise_types)==null?void 0:zr.q_counts))," \u9898\uFF1A"),h.createElement("span",{className:"c-grey-333"},"\u6EE1\u5206 ",h.createElement("span",{style:{color:"#FA6400"}},((to=G==null?void 0:G.exercise_types)==null?void 0:to.q_scores)||((bo=(no=G==null?void 0:G.exercise_scores)==null?void 0:no.exercise_types)==null?void 0:bo.q_scores))," \u5206")))),h.createElement(D.Z,{className:b.dottedLineWrapper,align:"middle"},h.createElement(g.Z,{className:b.leftHalfCircle}),h.createElement(g.Z,{flex:1,className:b.dottedLine}),h.createElement(g.Z,{className:b.rightHalfCircle})),h.createElement(D.Z,null,h.createElement(g.Z,{flex:"1"},h.createElement("aside",{className:`${b.cardList} ${(Lo=G.exercise)!=null&&Lo.open_phone_video_recording?b.withQrcode:""}`},(Uo=G==null?void 0:G.exercise_question_types)==null?void 0:Uo.map((c,Ce)=>h.createElement(t.Fragment,{key:c.question_type},or(c,Ce)))))))),(0,q.dE)()&&((ko=G==null?void 0:G.exercise)==null?void 0:ko.exercise_status)!==3&&!((jo=G==null?void 0:G.exercise)!=null&&jo.open_score_commited)&&h.createElement(D.Z,{justify:"space-around",align:"middle",className:b.answerSheetBottom},h.createElement(g.Z,{className:b.tooltipWrap},h.createElement("span",{className:b.answerYes}),"\u5DF2\u7B54"),h.createElement(g.Z,{className:b.tooltipWrap},h.createElement("span",{className:`${b.answerNo} ml10`},h.createElement("div",{style:{height:"50%",width:"100%",background:"rgba(22,93,255,0.4)"}})),"\u90E8\u5206\u7B54\u9898"),h.createElement(g.Z,{className:b.tooltipWrap},h.createElement("span",{className:`${b.answerNo} ml10`}),"\u672A\u7B54"),h.createElement(g.Z,{className:b.tooltipWrap},h.createElement("i",{className:"iconfont icon-biaoji1",style:{marginRight:4,color:"#FFB538"}}),"\u6807\u8BB0")),(0,q.dE)()&&(((Ia=G==null?void 0:G.exercise)==null?void 0:Ia.exercise_status)===3||((da=G==null?void 0:G.exercise)==null?void 0:da.open_score_commited))&&h.createElement(D.Z,{justify:"space-around",align:"middle",className:b.answerSheetBottom},h.createElement(g.Z,{className:b.tooltipWrap},h.createElement("span",{className:b.answerYes,style:{background:"#028D01",height:8,width:8,borderRadius:"50%"}}),"\u6B63\u786E"),h.createElement(g.Z,{className:b.tooltipWrap},h.createElement("span",{style:{background:"#FB3226",height:8,width:8,borderRadius:"50%"},className:`${b.answerNo} ml10`}),"\u9519\u8BEF"),h.createElement(g.Z,{className:b.tooltipWrap},h.createElement("span",{style:{background:"#E77400",height:8,width:8,borderRadius:"50%"},className:`${b.answerNo} ml10`}),"\u90E8\u5206\u5F97\u5206"),h.createElement(g.Z,{className:b.tooltipWrap},h.createElement("i",{className:"iconfont icon-biaoji1",style:{marginRight:4,color:"#FFB538"}}),"\u6807\u8BB0")))),h.createElement(g.Z,null,h.createElement("div",{className:b.fold,onClick:()=>Ra(!Do)},Do&&h.createElement(I.Z,{title:"\u6536\u8D77\u7B54\u9898\u5361"},h.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"})),!Do&&h.createElement(I.Z,{title:"\u5C55\u5F00"}," ",h.createElement("span",{className:"icon-youjiantou iconfont c-grey-c"})))),h.createElement(g.Z,{flex:"1"},h.createElement("section",{className:[b.rightPart,"ml20"].join(" ")},h.createElement("div",{className:`${b.questionPart} pl30 pr30`,ref:sa},On()),h.createElement(D.Z,{className:b.bottom,align:"middle",justify:"space-between"},h.createElement(g.Z,null,h.createElement(Ze.Z,{icon:h.createElement("i",{className:`iconfont ${(Na=(fa=G.exercise_question_types)==null?void 0:fa[cr].items[pr])!=null&&Na.is_marked?"icon-biaoji1":"icon-biaojigaiti"}`,style:{color:"#FFB538",marginRight:6}}),className:b.markBtn,onClick:()=>wn(void 0,null,function*(){var c;(yield(0,_.sS)(Qt.categoryId,{exercise_question_id:(c=G.exercise_question_types[cr].items[pr])==null?void 0:c.question_id})).status===0&&ge()})},(Oa=(qa=G.exercise_question_types)==null?void 0:qa[cr].items[pr])!=null&&Oa.is_marked?"\u53D6\u6D88\u6807\u8BB0":"\u6807\u8BB0\u8BE5\u9898")),h.createElement(g.Z,null,(cr!=0||pr!=0)&&h.createElement(ne.ZP,{className:`${b.changeButton} ${b.prevBtn} mr20`,type:"default",onClick:()=>{Nr(()=>{if(Xn.current){Xn.current="prev";return}fn()})}},"\u4E0A\u4E00\u9898"),!(cr===((Io=G==null?void 0:G.exercise_question_types)==null?void 0:Io.length)-1&&pr===((va=(ma=(Da=G==null?void 0:G.exercise_question_types)==null?void 0:Da[cr])==null?void 0:ma.items)==null?void 0:va.length)-1)&&h.createElement(ne.ZP,{className:b.changeButton,type:"primary",onClick:()=>{Nr(()=>{if(Bl){if(Xn.current){Xn.current="next";return}dn()}})}},"\u4E0B\u4E00\u9898")))))),Po.status!==0&&h.createElement(pe,{data:Po}),h.createElement(n.default,{title:"\u6CE8\u610F",open:vl,closable:!1,footer:!1},h.createElement("div",null,h.createElement("p",{style:{marginBottom:0}},"\u79BB\u5F00\u8BE5\u9898\u540E\u4E0D\u5141\u8BB8\u518D\u6B21\u4FEE\u6539\u7B54\u6848\uFF0C\u786E\u8BA4\u79BB\u5F00\u5417\uFF1F"),h.createElement("div",{style:{marginTop:60,display:"flex",justifyContent:"space-between",alignItems:"center"}},h.createElement(B.default,{checked:ia,onChange:c=>{pl(c.target.checked)}},"\u4E0B\u6B21\u4E0D\u518D\u663E\u793A"),h.createElement("div",null,h.createElement(ne.ZP,{onClick:()=>{la(!1),pl(!1)}},"\u6211\u518D\u60F3\u60F3"),h.createElement(ne.ZP,{onClick:()=>{G.exercise_question_types[cr].items[pr].ques_status=1,xo(In({},G)),Qr.current==="prev"?(pr===0?(cr-=1,pr=G.exercise_question_types[cr].items.length-1):pr-=1,Ho(cr),Wo(pr)):Qr.current==="next"?(G.exercise_question_types[cr].items.length-1===pr?(cr=cr+1,pr=0):pr=pr+1,Ho(cr),Wo(pr)):(Ho(pn.current.oneindex),Wo(pn.current.twoindex)),la(!1)},type:"primary",style:{marginLeft:30}},"\u786E\u8BA4"))))),h.createElement(kt.Z,{successCb:oe})),ha&&h.createElement(ue(),{disabled:hl,bounds:Tl,onStart:(c,Ce)=>Cl(c,Ce)},h.createElement("div",{ref:Wa,style:{position:"absolute",left:40,top:200,zIndex:1300}},h.createElement("div",{onMouseOver:()=>{hl&&za(!1)},onMouseOut:()=>{za(!0)}},h.createElement(D.Z,{className:b.cameraHeader,align:"middle",justify:"space-between"},h.createElement(g.Z,null,h.createElement("i",{className:"iconfont icon-kaiqishexiangtou"}),h.createElement("span",null,"\u5DF2\u5F00\u542F\u6444\u50CF\u5934")),Ua?h.createElement(ye.Z,{onClick:()=>{Va(!1)}}):h.createElement(be.Z,{onClick:()=>{Va(!0)}})),h.createElement("div",{style:{display:Ua?"flex":"none"}},h.createElement(ie.Z,{number:((_a=G==null?void 0:G.exercise)==null?void 0:_a.photo_count)-((Ba=G==null?void 0:G.exercise)==null?void 0:Ba.take_photo),take_photo:(Vo=G==null?void 0:G.exercise)==null?void 0:Vo.take_photo,ref:ja,time:(pa=G.exercise)==null?void 0:pa.left_time,update:ge,supportCamera:c=>{c===2?(wa(!0),_o(bt==null?void 0:bt.screen_shot_open),bt!=null&&bt.screen_shot_open||(fo(bt==null?void 0:bt.screen_open),ge())):c===1&&setTimeout(()=>l.history.push("/"),3e3)}}))))),h.createElement(n.default,{destroyOnClose:!0,closable:!1,centered:!0,className:b.teachAnalysisModal,title:h.createElement(D.Z,{align:"middle",justify:"space-between"},h.createElement(g.Z,{style:{color:"rgba(0,0,0,0.9)",fontSize:"16px"}},"\u6559\u5E08\u8BC4\u4EF7"),h.createElement(g.Z,null,h.createElement("i",{className:"iconfont icon-guanbi7",style:{fontSize:"15px",cursor:"pointer"},onClick:()=>Pa(!1)}))),open:xl,footer:!1,onCancel:()=>Pa(!1)},(ga=G==null?void 0:G.exercise_answer_user)==null?void 0:ga.analysis),h.createElement(n.default,{destroyOnClose:!0,centered:!0,width:555,title:h.createElement(D.Z,{align:"middle"},h.createElement("div",{className:"c-black font16 mr8"},(0,on._V)(on.CP.answer8)),h.createElement("div",{className:"c-grey-666"},(0,on._V)(on.CP.answer9))),open:sl,footer:!1,onCancel:()=>Fo(!1)},h.createElement("div",null,h.createElement("div",{className:"mb20 c-black"},(0,on._V)(on.CP.answer10)),h.createElement(qt,{key:ea,onOk:c=>{var Ce;console.log(c,444),c.join("")===((Ce=G==null?void 0:G.exercise)==null?void 0:Ce.screen_key)?ze():(W.ZP.warning((0,on._V)(on.CP.answer11)),cl(ft=>ft+1))}}))))};var Xr=(0,l.connect)(({loading:U,user:me,exercise:qe,globalSetting:Ft})=>({globalSetting:Ft,user:me,exercise:qe,loading:U.effects}))(Vr)},50371:function(ht,le){"use strict";function e(){const t=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let l=1;l{const T=P[L];T!==void 0&&(t[L]=T)})}return t}le.Z=e},13845:function(ht,le,e){"use strict";e.d(le,{F:function(){return t},Z:function(){return l}});function t(P){return P!=null&&P===P.window}function l(P,L){var T,p;if(typeof window=="undefined")return 0;const n=L?"scrollTop":"scrollLeft";let F=0;return t(P)?F=P[L?"pageYOffset":"pageXOffset"]:P instanceof Document?F=P.documentElement[n]:(P instanceof HTMLElement||P)&&(F=P[n]),P&&!t(P)&&typeof F!="number"&&(F=(p=((T=P.ownerDocument)!==null&&T!==void 0?T:P).documentElement)===null||p===void 0?void 0:p[n]),F}},56762:function(ht,le,e){"use strict";e.d(le,{Z:function(){return l}});var t=e(59301);function l(){const[,P]=t.useReducer(L=>L+1,0);return P}},68031:function(ht,le,e){"use strict";e.d(le,{Z:function(){return L}});var t=e(16089);function l(T,p,n,F){const W=n-p;return T/=F/2,T<1?W/2*T*T*T+p:W/2*((T-=2)*T*T+2)+p}var P=e(13845);function L(T){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:F,duration:W=450}=p,w=n(),D=(0,P.Z)(w,!0),g=Date.now(),M=()=>{const I=Date.now()-g,E=l(I>W?W:I,D,T,W);(0,P.F)(w)?w.scrollTo(window.pageXOffset,E):w instanceof Document||w.constructor.name==="HTMLDocument"?w.documentElement.scrollTop=E:w.scrollTop=E,I{const{href:b,title:ce,prefixCls:q,children:x,className:_,target:V,replace:he}=v,Me=T.useContext(g),{registerLink:Ie,unregisterLink:je,scrollTo:et,onClick:rt,activeLink:Ke,direction:Te}=Me||{};T.useEffect(()=>(Ie==null||Ie(b),()=>{je==null||je(b)}),[b]);const tt=ve=>{he&&(ve.preventDefault(),window.location.replace(b)),rt==null||rt(ve,{title:ce,href:b}),et==null||et(b)},{getPrefixCls:mt}=T.useContext(w.E_),De=mt("anchor",q),ut=Ke===b,St=P()(`${De}-link`,_,{[`${De}-link-active`]:ut}),$e=P()(`${De}-link-title`,{[`${De}-link-title-active`]:ut});return T.createElement("div",{className:St},T.createElement("a",{className:$e,href:b,title:typeof ce=="string"?ce:"",target:V,onClick:tt},ce),Te!=="horizontal"?x:null)},I=e(17313),E=e(83116),ne=e(37613);const k=v=>{const{componentCls:b,holderOffsetBlock:ce,motionDurationSlow:q,lineWidthBold:x,colorPrimary:_,lineType:V,colorSplit:he}=v;return{[`${b}-wrapper`]:{marginBlockStart:-ce,paddingBlockStart:ce,[b]:Object.assign(Object.assign({},(0,I.Wf)(v)),{position:"relative",paddingInlineStart:x,[`${b}-link`]:{paddingBlock:v.linkPaddingBlock,paddingInline:`${v.linkPaddingInlineStart}px 0`,"&-title":Object.assign(Object.assign({},I.vS),{position:"relative",display:"block",marginBlockEnd:v.anchorTitleBlock,color:v.colorText,transition:`all ${v.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${b}-link-title`]:{color:v.colorPrimary},[`${b}-link`]:{paddingBlock:v.anchorPaddingBlockSecondary}}}),[`&:not(${b}-wrapper-horizontal)`]:{[b]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${x}px ${V} ${he}`,content:'" "'},[`${b}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${q} ease-in-out`,width:x,backgroundColor:_,[`&${b}-ink-visible`]:{display:"inline-block"}}}},[`${b}-fixed ${b}-ink ${b}-ink`]:{display:"none"}}}},de=v=>{const{componentCls:b,motionDurationSlow:ce,lineWidthBold:q,colorPrimary:x}=v;return{[`${b}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${v.lineType} ${v.colorSplit}`,content:'" "'},[b]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${b}-link:first-of-type`]:{paddingInline:0},[`${b}-ink`]:{position:"absolute",bottom:0,transition:`left ${ce} ease-in-out, width ${ce} ease-in-out`,height:q,backgroundColor:x}}}}};var ie=(0,E.Z)("Anchor",v=>{const{fontSize:b,fontSizeLG:ce,paddingXXS:q}=v,x=(0,ne.TS)(v,{holderOffsetBlock:q,anchorPaddingBlockSecondary:q/2,anchorTitleBlock:b/14*3,anchorBallSize:ce/2});return[k(x),de(x)]},v=>({linkPaddingBlock:v.paddingXXS,linkPaddingInlineStart:v.padding}));function H(){return window}function A(v,b){if(!v.getClientRects().length)return 0;const ce=v.getBoundingClientRect();return ce.width||ce.height?b===window?(b=v.ownerDocument.documentElement,ce.top-b.clientTop):ce.top-b.getBoundingClientRect().top:ce.top}const ae=/#([\S ]+)$/,C=v=>{var b;const{rootClassName:ce,anchorPrefixCls:q,className:x,style:_,offsetTop:V,affix:he=!0,showInkInFixed:Me=!1,children:Ie,items:je,direction:et="vertical",bounds:rt,targetOffset:Ke,onClick:Te,onChange:tt,getContainer:mt,getCurrentAnchor:De,replace:ut}=v,[St,$e]=T.useState([]),[ve,at]=T.useState(null),Ee=T.useRef(ve),Z=T.useRef(null),K=T.useRef(null),m=T.useRef(!1),{direction:a,getTargetContainer:R,anchor:fe}=T.useContext(w.E_),s=(b=mt!=null?mt:R)!==null&&b!==void 0?b:H,i=JSON.stringify(St),X=(0,L.useEvent)(_e=>{St.includes(_e)||$e(He=>[].concat((0,t.Z)(He),[_e]))}),$=(0,L.useEvent)(_e=>{St.includes(_e)&&$e(He=>He.filter(Je=>Je!==_e))}),f=()=>{var _e;const He=(_e=Z.current)===null||_e===void 0?void 0:_e.querySelector(`.${q}-link-title-active`);if(He&&K.current){const{style:Je}=K.current,ct=et==="horizontal";Je.top=ct?"":`${He.offsetTop+He.clientHeight/2}px`,Je.height=ct?"":`${He.clientHeight}px`,Je.left=ct?`${He.offsetLeft}px`:"",Je.width=ct?`${He.clientWidth}px`:"",ct&&(0,p.Z)(He,{scrollMode:"if-needed",block:"nearest"})}},Q=function(_e){let He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Je=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5;const ct=[],Bt=s();return _e.forEach(wt=>{const Dt=ae.exec(wt==null?void 0:wt.toString());if(!Dt)return;const mn=document.getElementById(Dt[1]);if(mn){const ln=A(mn,Bt);lnmn.top>Dt.top?mn:Dt).link:""},Re=(0,L.useEvent)(_e=>{if(Ee.current===_e)return;const He=typeof De=="function"?De(_e):_e;at(He),Ee.current=He,tt==null||tt(_e)}),Pe=T.useCallback(()=>{if(m.current)return;const _e=Q(St,Ke!==void 0?Ke:V||0,rt);Re(_e)},[i,Ke,V]),Se=T.useCallback(_e=>{Re(_e);const He=ae.exec(_e);if(!He)return;const Je=document.getElementById(He[1]);if(!Je)return;const ct=s(),Bt=(0,n.Z)(ct,!0),wt=A(Je,ct);let Dt=Bt+wt;Dt-=Ke!==void 0?Ke:V||0,m.current=!0,(0,F.Z)(Dt,{getContainer:s,callback(){m.current=!1}})},[Ke,V]),Ne=P()(ce,`${q}-wrapper`,{[`${q}-wrapper-horizontal`]:et==="horizontal",[`${q}-rtl`]:a==="rtl"},x,fe==null?void 0:fe.className),Be=P()(q,{[`${q}-fixed`]:!he&&!Me}),d=P()(`${q}-ink`,{[`${q}-ink-visible`]:ve}),Y=Object.assign(Object.assign({maxHeight:V?`calc(100vh - ${V}px)`:"100vh"},fe==null?void 0:fe.style),_),se=_e=>Array.isArray(_e)?_e.map(He=>T.createElement(B,Object.assign({replace:ut},He,{key:He.key}),et==="vertical"&&se(He.children))):null,xe=T.createElement("div",{ref:Z,className:Ne,style:Y},T.createElement("div",{className:Be},T.createElement("span",{className:d,ref:K}),"items"in v?se(je):Ie));T.useEffect(()=>{const _e=s();return Pe(),_e==null||_e.addEventListener("scroll",Pe),()=>{_e==null||_e.removeEventListener("scroll",Pe)}},[i]),T.useEffect(()=>{typeof De=="function"&&Re(De(Ee.current||""))},[De]),T.useEffect(()=>{f()},[et,De,i,ve]);const Fe=T.useMemo(()=>({registerLink:X,unregisterLink:$,scrollTo:Se,activeLink:ve,onClick:Te,direction:et}),[ve,Te,Se,et]);return T.createElement(g.Provider,{value:Fe},he?T.createElement(W.Z,{offsetTop:V,target:s},xe):xe)};var J=v=>{const{prefixCls:b,rootClassName:ce}=v,{getPrefixCls:q}=T.useContext(w.E_),x=q("anchor",b),[_,V]=ie(x);return _(T.createElement(C,Object.assign({},v,{rootClassName:P()(V,ce),anchorPrefixCls:x})))};const te=J;te.Link=B;var z=te},24905:function(ht,le,e){"use strict";e.d(le,{default:function(){return C}});var t=e(92310),l=e.n(t),P=e(5630),L=e(59301),T=e(36355),p=e(1684),n=e(32441),W=L.createContext(null),w=e(98447),D=e(14088),g=e(4572),M=function(S,J){var te={};for(var z in S)Object.prototype.hasOwnProperty.call(S,z)&&J.indexOf(z)<0&&(te[z]=S[z]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,z=Object.getOwnPropertySymbols(S);v{var te;const{prefixCls:z,className:v,rootClassName:b,children:ce,indeterminate:q=!1,style:x,onMouseEnter:_,onMouseLeave:V,skipGroup:he=!1,disabled:Me}=S,Ie=M(S,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:je,direction:et,checkbox:rt}=L.useContext(T.E_),Ke=L.useContext(W),{isFormItemInput:Te}=L.useContext(n.aM),tt=L.useContext(p.Z),mt=(te=(Ke==null?void 0:Ke.disabled)||Me)!==null&&te!==void 0?te:tt,De=L.useRef(Ie.value);L.useEffect(()=>{Ke==null||Ke.registerValue(Ie.value)},[]),L.useEffect(()=>{if(!he)return Ie.value!==De.current&&(Ke==null||Ke.cancelValue(De.current),Ke==null||Ke.registerValue(Ie.value),De.current=Ie.value),()=>Ke==null?void 0:Ke.cancelValue(Ie.value)},[Ie.value]);const ut=je("checkbox",z),[St,$e]=(0,w.ZP)(ut),ve=Object.assign({},Ie);Ke&&!he&&(ve.onChange=function(){Ie.onChange&&Ie.onChange.apply(Ie,arguments),Ke.toggleOption&&Ke.toggleOption({label:ce,value:Ie.value})},ve.name=Ke.name,ve.checked=Ke.value.includes(Ie.value));const at=l()(`${ut}-wrapper`,{[`${ut}-rtl`]:et==="rtl",[`${ut}-wrapper-checked`]:ve.checked,[`${ut}-wrapper-disabled`]:mt,[`${ut}-wrapper-in-form-item`]:Te},rt==null?void 0:rt.className,v,b,$e),Ee=l()({[`${ut}-indeterminate`]:q},g.A,$e),Z=q?"mixed":void 0;return St(L.createElement(D.Z,{component:"Checkbox",disabled:mt},L.createElement("label",{className:at,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),x),onMouseEnter:_,onMouseLeave:V},L.createElement(P.Z,Object.assign({"aria-checked":Z},ve,{prefixCls:ut,className:Ee,disabled:mt,ref:J})),ce!==void 0&&L.createElement("span",null,ce))))};var E=L.forwardRef(B),ne=e(94480),k=e(2738),de=function(S,J){var te={};for(var z in S)Object.prototype.hasOwnProperty.call(S,z)&&J.indexOf(z)<0&&(te[z]=S[z]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,z=Object.getOwnPropertySymbols(S);v{const{defaultValue:te,children:z,options:v=[],prefixCls:b,className:ce,rootClassName:q,style:x,onChange:_}=S,V=de(S,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:he,direction:Me}=L.useContext(T.E_),[Ie,je]=L.useState(V.value||te||[]),[et,rt]=L.useState([]);L.useEffect(()=>{"value"in V&&je(V.value||[])},[V.value]);const Ke=L.useMemo(()=>v.map(K=>typeof K=="string"||typeof K=="number"?{label:K,value:K}:K),[v]),Te=K=>{rt(m=>m.filter(a=>a!==K))},tt=K=>{rt(m=>[].concat((0,ne.Z)(m),[K]))},mt=K=>{const m=Ie.indexOf(K.value),a=(0,ne.Z)(Ie);m===-1?a.push(K.value):a.splice(m,1),"value"in V||je(a),_==null||_(a.filter(R=>et.includes(R)).sort((R,fe)=>{const s=Ke.findIndex(X=>X.value===R),i=Ke.findIndex(X=>X.value===fe);return s-i}))},De=he("checkbox",b),ut=`${De}-group`,[St,$e]=(0,w.ZP)(De),ve=(0,k.Z)(V,["value","disabled"]),at=v.length?Ke.map(K=>L.createElement(E,{prefixCls:De,key:K.value.toString(),disabled:"disabled"in K?K.disabled:V.disabled,value:K.value,checked:Ie.includes(K.value),onChange:K.onChange,className:`${ut}-item`,style:K.style,title:K.title},K.label)):z,Ee={toggleOption:mt,value:Ie,disabled:V.disabled,name:V.name,registerValue:tt,cancelValue:Te},Z=l()(ut,{[`${ut}-rtl`]:Me==="rtl"},ce,q,$e);return St(L.createElement("div",Object.assign({className:Z,style:x},ve,{ref:J}),L.createElement(W.Provider,{value:Ee},at)))},H=L.forwardRef(ie);var A=L.memo(H);const ae=E;ae.Group=A,ae.__ANT_CHECKBOX=!0;var C=ae},98447:function(ht,le,e){"use strict";e.d(le,{C2:function(){return T}});var t=e(17313),l=e(37613),P=e(83116);const L=p=>{const{checkboxCls:n}=p,F=`${n}-wrapper`;return[{[`${n}-group`]:Object.assign(Object.assign({},(0,t.Wf)(p)),{display:"inline-flex",flexWrap:"wrap",columnGap:p.marginXS,[`> ${p.antCls}-row`]:{flex:1}}),[F]:Object.assign(Object.assign({},(0,t.Wf)(p)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${F}`]:{marginInlineStart:0},[`&${F}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[n]:Object.assign(Object.assign({},(0,t.Wf)(p)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:p.borderRadiusSM,alignSelf:"center",[`${n}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${n}-inner`]:Object.assign({},(0,t.oN)(p))},[`${n}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:p.checkboxSize,height:p.checkboxSize,direction:"ltr",backgroundColor:p.colorBgContainer,border:`${p.lineWidth}px ${p.lineType} ${p.colorBorder}`,borderRadius:p.borderRadiusSM,borderCollapse:"separate",transition:`all ${p.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:p.checkboxSize/14*5,height:p.checkboxSize/14*8,border:`${p.lineWidthBold}px solid ${p.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${p.motionDurationFast} ${p.motionEaseInBack}, opacity ${p.motionDurationFast}`}},"& + span":{paddingInlineStart:p.paddingXS,paddingInlineEnd:p.paddingXS}})},{[` - ${F}:not(${F}-disabled), - ${n}:not(${n}-disabled) - `]:{[`&:hover ${n}-inner`]:{borderColor:p.colorPrimary}},[`${F}:not(${F}-disabled)`]:{[`&:hover ${n}-checked:not(${n}-disabled) ${n}-inner`]:{backgroundColor:p.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${n}-checked:not(${n}-disabled):after`]:{borderColor:p.colorPrimaryHover}}},{[`${n}-checked`]:{[`${n}-inner`]:{backgroundColor:p.colorPrimary,borderColor:p.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${p.motionDurationMid} ${p.motionEaseOutBack} ${p.motionDurationFast}`}}},[` - ${F}-checked:not(${F}-disabled), - ${n}-checked:not(${n}-disabled) - `]:{[`&:hover ${n}-inner`]:{backgroundColor:p.colorPrimaryHover,borderColor:"transparent"}}},{[n]:{"&-indeterminate":{[`${n}-inner`]:{backgroundColor:p.colorBgContainer,borderColor:p.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:p.fontSizeLG/2,height:p.fontSizeLG/2,backgroundColor:p.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${F}-disabled`]:{cursor:"not-allowed"},[`${n}-disabled`]:{[`&, ${n}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${n}-inner`]:{background:p.colorBgContainerDisabled,borderColor:p.colorBorder,"&:after":{borderColor:p.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:p.colorTextDisabled},[`&${n}-indeterminate ${n}-inner::after`]:{background:p.colorTextDisabled}}}]};function T(p,n){const F=(0,l.TS)(n,{checkboxCls:`.${p}`,checkboxSize:n.controlInteractiveSize});return[L(F)]}le.ZP=(0,P.Z)("Checkbox",(p,n)=>{let{prefixCls:F}=n;return[T(F,p)]})},43428:function(ht,le,e){"use strict";e.d(le,{Z:function(){return St}});var t=e(92310),l=e.n(t),P=e(33885),L=e(42978),T=e(43403),p=e(34280),n=e(59301),F=n.createContext(null),W=n.createContext({}),w=F,D=e(20068),g=e(54476),M=e(77900),B=e(10228),I=e(26112),E=e(70425),ne=function(ve){var at=ve.prefixCls,Ee=ve.className,Z=ve.style,K=ve.children,m=ve.containerRef,a=ve.id,R=ve.onMouseEnter,fe=ve.onMouseOver,s=ve.onMouseLeave,i=ve.onClick,X=ve.onKeyDown,$=ve.onKeyUp,f={onMouseEnter:R,onMouseOver:fe,onMouseLeave:s,onClick:i,onKeyDown:X,onKeyUp:$},Q=n.useContext(W),Re=Q.panel,Pe=(0,E.useComposeRef)(Re,m);return n.createElement(n.Fragment,null,n.createElement("div",(0,g.Z)({id:a,className:l()("".concat(at,"-content"),Ee),style:(0,P.Z)({},Z),"aria-modal":"true",role:"dialog",ref:Pe},f),K))},k=ne,de=e(48736);function ie($e){return typeof $e=="string"&&String(Number($e))===$e?((0,de.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number($e)):$e}function H($e){warning(!("wrapperClassName"in $e),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!$e.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var A={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function ae($e,ve){var at,Ee,Z,K,m=$e.prefixCls,a=$e.open,R=$e.placement,fe=$e.inline,s=$e.push,i=$e.forceRender,X=$e.autoFocus,$=$e.keyboard,f=$e.rootClassName,Q=$e.rootStyle,Re=$e.zIndex,Pe=$e.className,Se=$e.id,Ne=$e.style,Be=$e.motion,d=$e.width,Y=$e.height,se=$e.children,xe=$e.contentWrapperStyle,Fe=$e.mask,_e=$e.maskClosable,He=$e.maskMotion,Je=$e.maskClassName,ct=$e.maskStyle,Bt=$e.afterOpenChange,wt=$e.onClose,Dt=$e.onMouseEnter,mn=$e.onMouseOver,ln=$e.onMouseLeave,$t=$e.onClick,En=$e.onKeyDown,vn=$e.onKeyUp,sn=n.useRef(),yn=n.useRef(),xn=n.useRef();n.useImperativeHandle(ve,function(){return sn.current});var An=function(pe){var lt=pe.keyCode,Pt=pe.shiftKey;switch(lt){case B.Z.TAB:{if(lt===B.Z.TAB){if(!Pt&&document.activeElement===xn.current){var Nt;(Nt=yn.current)===null||Nt===void 0||Nt.focus({preventScroll:!0})}else if(Pt&&document.activeElement===yn.current){var Lt;(Lt=xn.current)===null||Lt===void 0||Lt.focus({preventScroll:!0})}}break}case B.Z.ESC:{wt&&$&&(pe.stopPropagation(),wt(pe));break}}};n.useEffect(function(){if(a&&X){var Qe;(Qe=sn.current)===null||Qe===void 0||Qe.focus({preventScroll:!0})}},[a]);var ir=n.useState(!1),br=(0,L.Z)(ir,2),Vn=br[0],ur=br[1],Zn=n.useContext(w),mr;s===!1?mr={distance:0}:s===!0?mr={}:mr=s||{};var Or=(at=(Ee=(Z=mr)===null||Z===void 0?void 0:Z.distance)!==null&&Ee!==void 0?Ee:Zn==null?void 0:Zn.pushDistance)!==null&&at!==void 0?at:180,Ir=n.useMemo(function(){return{pushDistance:Or,push:function(){ur(!0)},pull:function(){ur(!1)}}},[Or]);n.useEffect(function(){if(a){var Qe;Zn==null||(Qe=Zn.push)===null||Qe===void 0||Qe.call(Zn)}else{var pe;Zn==null||(pe=Zn.pull)===null||pe===void 0||pe.call(Zn)}},[a]),n.useEffect(function(){return function(){var Qe;Zn==null||(Qe=Zn.pull)===null||Qe===void 0||Qe.call(Zn)}},[]);var hr=Fe&&n.createElement(M.default,(0,g.Z)({key:"mask"},He,{visible:a}),function(Qe,pe){var lt=Qe.className,Pt=Qe.style;return n.createElement("div",{className:l()("".concat(m,"-mask"),lt,Je),style:(0,P.Z)((0,P.Z)({},Pt),ct),onClick:_e&&a?wt:void 0,ref:pe})}),Dr=typeof Be=="function"?Be(R):Be,Ur={};if(Vn&&Or)switch(R){case"top":Ur.transform="translateY(".concat(Or,"px)");break;case"bottom":Ur.transform="translateY(".concat(-Or,"px)");break;case"left":Ur.transform="translateX(".concat(Or,"px)");break;default:Ur.transform="translateX(".concat(-Or,"px)");break}R==="left"||R==="right"?Ur.width=ie(d):Ur.height=ie(Y);var Zr={onMouseEnter:Dt,onMouseOver:mn,onMouseLeave:ln,onClick:$t,onKeyDown:En,onKeyUp:vn},so=n.createElement(M.default,(0,g.Z)({key:"panel"},Dr,{visible:a,forceRender:i,onVisibleChanged:function(pe){Bt==null||Bt(pe)},removeOnLeave:!1,leavedClassName:"".concat(m,"-content-wrapper-hidden")}),function(Qe,pe){var lt=Qe.className,Pt=Qe.style;return n.createElement("div",(0,g.Z)({className:l()("".concat(m,"-content-wrapper"),lt),style:(0,P.Z)((0,P.Z)((0,P.Z)({},Ur),Pt),xe)},(0,I.Z)($e,{data:!0})),n.createElement(k,(0,g.Z)({id:Se,containerRef:pe,prefixCls:m,className:Pe,style:Ne},Zr),se))}),Jr=(0,P.Z)({},Q);return Re&&(Jr.zIndex=Re),n.createElement(w.Provider,{value:Ir},n.createElement("div",{className:l()(m,"".concat(m,"-").concat(R),f,(K={},(0,D.Z)(K,"".concat(m,"-open"),a),(0,D.Z)(K,"".concat(m,"-inline"),fe),K)),style:Jr,tabIndex:-1,ref:sn,onKeyDown:An},hr,n.createElement("div",{tabIndex:0,ref:yn,style:A,"aria-hidden":"true","data-sentinel":"start"}),so,n.createElement("div",{tabIndex:0,ref:xn,style:A,"aria-hidden":"true","data-sentinel":"end"})))}var C=n.forwardRef(ae),S=C,J=function(ve){var at=ve.open,Ee=at===void 0?!1:at,Z=ve.prefixCls,K=Z===void 0?"rc-drawer":Z,m=ve.placement,a=m===void 0?"right":m,R=ve.autoFocus,fe=R===void 0?!0:R,s=ve.keyboard,i=s===void 0?!0:s,X=ve.width,$=X===void 0?378:X,f=ve.mask,Q=f===void 0?!0:f,Re=ve.maskClosable,Pe=Re===void 0?!0:Re,Se=ve.getContainer,Ne=ve.forceRender,Be=ve.afterOpenChange,d=ve.destroyOnClose,Y=ve.onMouseEnter,se=ve.onMouseOver,xe=ve.onMouseLeave,Fe=ve.onClick,_e=ve.onKeyDown,He=ve.onKeyUp,Je=ve.panelRef,ct=n.useState(!1),Bt=(0,L.Z)(ct,2),wt=Bt[0],Dt=Bt[1],mn=n.useState(!1),ln=(0,L.Z)(mn,2),$t=ln[0],En=ln[1];(0,p.Z)(function(){En(!0)},[]);var vn=$t?Ee:!1,sn=n.useRef(),yn=n.useRef();(0,p.Z)(function(){vn&&(yn.current=document.activeElement)},[vn]);var xn=function(ur){var Zn;if(Dt(ur),Be==null||Be(ur),!ur&&yn.current&&!((Zn=sn.current)!==null&&Zn!==void 0&&Zn.contains(yn.current))){var mr;(mr=yn.current)===null||mr===void 0||mr.focus({preventScroll:!0})}},An=n.useMemo(function(){return{panel:Je}},[Je]);if(!Ne&&!wt&&!vn&&d)return null;var ir={onMouseEnter:Y,onMouseOver:se,onMouseLeave:xe,onClick:Fe,onKeyDown:_e,onKeyUp:He},br=(0,P.Z)((0,P.Z)({},ve),{},{open:vn,prefixCls:K,placement:a,autoFocus:fe,keyboard:i,width:$,mask:Q,maskClosable:Pe,inline:Se===!1,afterOpenChange:xn,ref:sn},ir);return n.createElement(W.Provider,{value:An},n.createElement(T.Z,{open:vn||Ne||wt,autoDestroy:!1,getContainer:Se,autoLock:Q&&(vn||wt)},n.createElement(S,br)))},te=J,z=te,v=e(62892),b=e(36355),ce=e(32441),q=e(47729),_=$e=>{const{prefixCls:ve,title:at,footer:Ee,extra:Z,closeIcon:K,closable:m,onClose:a,headerStyle:R,drawerStyle:fe,bodyStyle:s,footerStyle:i,children:X}=$e,$=n.useCallback(Se=>n.createElement("button",{type:"button",onClick:a,"aria-label":"Close",className:`${ve}-close`},Se),[a]),[f,Q]=(0,q.Z)(m,K,$,void 0,!0),Re=n.useMemo(()=>!at&&!f?null:n.createElement("div",{style:R,className:l()(`${ve}-header`,{[`${ve}-header-close-only`]:f&&!at&&!Z})},n.createElement("div",{className:`${ve}-header-title`},Q,at&&n.createElement("div",{className:`${ve}-title`},at)),Z&&n.createElement("div",{className:`${ve}-extra`},Z)),[f,Q,Z,R,ve,at]),Pe=n.useMemo(()=>{if(!Ee)return null;const Se=`${ve}-footer`;return n.createElement("div",{className:Se,style:i},Ee)},[Ee,i,ve]);return n.createElement("div",{className:`${ve}-wrapper-body`,style:fe},Re,n.createElement("div",{className:`${ve}-body`,style:s},X),Pe)},V=e(33234),he=e(83116),Me=e(37613),je=$e=>{const{componentCls:ve,motionDurationSlow:at}=$e,Ee={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${at}`}}};return{[ve]:{[`${ve}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${at}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${ve}-panel-motion`]:{"&-left":[Ee,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Ee,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Ee,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Ee,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const et=$e=>{const{componentCls:ve,zIndexPopup:at,colorBgMask:Ee,colorBgElevated:Z,motionDurationSlow:K,motionDurationMid:m,padding:a,paddingLG:R,fontSizeLG:fe,lineHeightLG:s,lineWidth:i,lineType:X,colorSplit:$,marginSM:f,colorIcon:Q,colorIconHover:Re,colorText:Pe,fontWeightStrong:Se,footerPaddingBlock:Ne,footerPaddingInline:Be}=$e,d=`${ve}-content-wrapper`;return{[ve]:{position:"fixed",inset:0,zIndex:at,pointerEvents:"none","&-pure":{position:"relative",background:Z,[`&${ve}-left`]:{boxShadow:$e.boxShadowDrawerLeft},[`&${ve}-right`]:{boxShadow:$e.boxShadowDrawerRight},[`&${ve}-top`]:{boxShadow:$e.boxShadowDrawerUp},[`&${ve}-bottom`]:{boxShadow:$e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ve}-mask`]:{position:"absolute",inset:0,zIndex:at,background:Ee,pointerEvents:"auto"},[d]:{position:"absolute",zIndex:at,maxWidth:"100vw",transition:`all ${K}`,"&-hidden":{display:"none"}},[`&-left > ${d}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:$e.boxShadowDrawerLeft},[`&-right > ${d}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:$e.boxShadowDrawerRight},[`&-top > ${d}`]:{top:0,insetInline:0,boxShadow:$e.boxShadowDrawerUp},[`&-bottom > ${d}`]:{bottom:0,insetInline:0,boxShadow:$e.boxShadowDrawerDown},[`${ve}-content`]:{width:"100%",height:"100%",overflow:"auto",background:Z,pointerEvents:"auto"},[`${ve}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${ve}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${a}px ${R}px`,fontSize:fe,lineHeight:s,borderBottom:`${i}px ${X} ${$}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ve}-extra`]:{flex:"none"},[`${ve}-close`]:{display:"inline-block",marginInlineEnd:f,color:Q,fontWeight:Se,fontSize:fe,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${m}`,textRendering:"auto","&:focus, &:hover":{color:Re,textDecoration:"none"}},[`${ve}-title`]:{flex:1,margin:0,color:Pe,fontWeight:$e.fontWeightStrong,fontSize:fe,lineHeight:s},[`${ve}-body`]:{flex:1,minWidth:0,minHeight:0,padding:R,overflow:"auto"},[`${ve}-footer`]:{flexShrink:0,padding:`${Ne}px ${Be}px`,borderTop:`${i}px ${X} ${$}`},"&-rtl":{direction:"rtl"}}}};var rt=(0,he.Z)("Drawer",$e=>{const ve=(0,Me.TS)($e,{});return[et(ve),je(ve)]},$e=>({zIndexPopup:$e.zIndexPopupBase,footerPaddingBlock:$e.paddingXS,footerPaddingInline:$e.padding})),Ke=e(11575),Te=function($e,ve){var at={};for(var Ee in $e)Object.prototype.hasOwnProperty.call($e,Ee)&&ve.indexOf(Ee)<0&&(at[Ee]=$e[Ee]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,Ee=Object.getOwnPropertySymbols($e);Z{var ve;const{rootClassName:at,width:Ee,height:Z,size:K="default",mask:m=!0,push:a=mt,open:R,afterOpenChange:fe,onClose:s,prefixCls:i,getContainer:X,style:$,className:f,visible:Q,afterVisibleChange:Re}=$e,Pe=Te($e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Se,getPrefixCls:Ne,direction:Be,drawer:d}=n.useContext(b.E_),Y=Ne("drawer",i),[se,xe]=rt(Y),Fe=X===void 0&&Se?()=>Se(document.body):X,_e=l()({"no-mask":!m,[`${Y}-rtl`]:Be==="rtl"},at,xe),He=n.useMemo(()=>Ee!=null?Ee:K==="large"?736:378,[Ee,K]),Je=n.useMemo(()=>Z!=null?Z:K==="large"?736:378,[Z,K]),ct={motionName:(0,v.m)(Y,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Bt=Dt=>({motionName:(0,v.m)(Y,`panel-motion-${Dt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),wt=(0,Ke.H)();return se(n.createElement(V.BR,null,n.createElement(ce.Ux,{status:!0,override:!0},n.createElement(z,Object.assign({prefixCls:Y,onClose:s,maskMotion:ct,motion:Bt},Pe,{open:R!=null?R:Q,mask:m,push:a,width:He,height:Je,style:Object.assign(Object.assign({},d==null?void 0:d.style),$),className:l()(d==null?void 0:d.className,f),rootClassName:_e,getContainer:Fe,afterOpenChange:fe!=null?fe:Re,panelRef:wt}),n.createElement(_,Object.assign({prefixCls:Y},Pe,{onClose:s}))))))},ut=$e=>{const{prefixCls:ve,style:at,className:Ee,placement:Z="right"}=$e,K=Te($e,["prefixCls","style","className","placement"]),{getPrefixCls:m}=n.useContext(b.E_),a=m("drawer",ve),[R,fe]=rt(a),s=l()(a,`${a}-pure`,`${a}-${Z}`,fe,Ee);return R(n.createElement("div",{className:s,style:at},n.createElement(_,Object.assign({prefixCls:a},K))))};De._InternalPanelDoNotUseOrYouWillBeFired=ut;var St=De},91857:function(ht,le,e){"use strict";var t=e(59301),l=e(38819),P=e(92310),L=e.n(P),T=e(31561),p=e(70425),n=e(18929),F=e(2738),W=e(79676),w=e(53487),D=e(92343),g=e(36355),M=e(20834),B=e(40875),I=e(88088),E=e(47211);const ne=null,k=A=>{const{menu:ae,arrow:C,prefixCls:S,children:J,trigger:te,disabled:z,dropdownRender:v,getPopupContainer:b,overlayClassName:ce,rootClassName:q,open:x,onOpenChange:_,visible:V,onVisibleChange:he,mouseEnterDelay:Me=.15,mouseLeaveDelay:Ie=.1,autoAdjustOverflow:je=!0,placement:et="",overlay:rt,transitionName:Ke}=A,{getPopupContainer:Te,getPrefixCls:tt,direction:mt}=t.useContext(g.E_),De=t.useMemo(()=>{const f=tt();return Ke!==void 0?Ke:et.includes("top")?`${f}-slide-down`:`${f}-slide-up`},[tt,et,Ke]),ut=t.useMemo(()=>et?et.includes("Center")?et.slice(0,et.indexOf("Center")):et:mt==="rtl"?"bottomRight":"bottomLeft",[et,mt]),St=tt("dropdown",S),[$e,ve]=(0,E.Z)(St),[,at]=(0,I.Z)(),Ee=t.Children.only(J),Z=(0,D.Tm)(Ee,{className:L()(`${St}-trigger`,{[`${St}-rtl`]:mt==="rtl"},Ee.props.className),disabled:z}),K=z?[]:te;let m;K&&K.includes("contextMenu")&&(m=!0);const[a,R]=(0,n.Z)(!1,{value:x!=null?x:V}),fe=(0,p.useEvent)(f=>{_==null||_(f),he==null||he(f),R(f)}),s=L()(ce,q,ve,{[`${St}-rtl`]:mt==="rtl"}),i=(0,W.Z)({arrowPointAtCenter:typeof C=="object"&&C.pointAtCenter,autoAdjustOverflow:je,offset:at.marginXXS,arrowWidth:C?at.sizePopupArrow:0,borderRadius:at.borderRadius}),X=t.useCallback(()=>{R(!1)},[]),$=()=>{let f;return ae!=null&&ae.items?f=t.createElement(M.default,Object.assign({},ae)):typeof rt=="function"?f=rt():f=rt,v&&(f=v(f)),f=t.Children.only(typeof f=="string"?t.createElement("span",null,f):f),t.createElement(B.J,{prefixCls:`${St}-menu`,expandIcon:t.createElement("span",{className:`${St}-menu-submenu-arrow`},t.createElement(l.Z,{className:`${St}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:Q=>{let{mode:Re}=Q}},f)};return $e(t.createElement(T.Z,Object.assign({alignPoint:m},(0,F.Z)(A,["rootClassName"]),{mouseEnterDelay:Me,mouseLeaveDelay:Ie,visible:a,builtinPlacements:i,arrow:!!C,overlayClassName:s,prefixCls:St,getPopupContainer:b||Te,transitionName:De,trigger:K,overlay:$,placement:ut,onVisibleChange:fe}),Z))};function de(A){return Object.assign(Object.assign({},A),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ie=(0,w.Z)(k,"dropdown",A=>A,de),H=A=>t.createElement(ie,Object.assign({},A),t.createElement("span",null));k._InternalPanelDoNotUseOrYouWillBeFired=H,le.Z=k},38854:function(ht,le,e){"use strict";e.d(le,{Z:function(){return I}});var t=e(91857),l=e(92310),P=e.n(l),L=e(59301),T=e(18785),p=e(3113),n=e(36355),F=e(81327),W=e(33234),w=e(47211),D=function(E,ne){var k={};for(var de in E)Object.prototype.hasOwnProperty.call(E,de)&&ne.indexOf(de)<0&&(k[de]=E[de]);if(E!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,de=Object.getOwnPropertySymbols(E);ie{const{getPopupContainer:ne,getPrefixCls:k,direction:de}=L.useContext(n.E_),{prefixCls:ie,type:H="default",danger:A,disabled:ae,loading:C,onClick:S,htmlType:J,children:te,className:z,menu:v,arrow:b,autoFocus:ce,overlay:q,trigger:x,align:_,open:V,onOpenChange:he,placement:Me,getPopupContainer:Ie,href:je,icon:et=L.createElement(T.Z,null),title:rt,buttonsRender:Ke=$=>$,mouseEnterDelay:Te,mouseLeaveDelay:tt,overlayClassName:mt,overlayStyle:De,destroyPopupOnHide:ut,dropdownRender:St}=E,$e=D(E,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),ve=k("dropdown",ie),at=`${ve}-button`,[Ee,Z]=(0,w.Z)(ve),K={menu:v,arrow:b,autoFocus:ce,align:_,disabled:ae,trigger:ae?[]:x,onOpenChange:he,getPopupContainer:Ie||ne,mouseEnterDelay:Te,mouseLeaveDelay:tt,overlayClassName:mt,overlayStyle:De,destroyPopupOnHide:ut,dropdownRender:St},{compactSize:m,compactItemClassnames:a}=(0,W.ri)(ve,de),R=P()(at,a,z,Z);"overlay"in E&&(K.overlay=q),"open"in E&&(K.open=V),"placement"in E?K.placement=Me:K.placement=de==="rtl"?"bottomLeft":"bottomRight";const fe=L.createElement(p.ZP,{type:H,danger:A,disabled:ae,loading:C,onClick:S,htmlType:J,href:je,title:rt},te),s=L.createElement(p.ZP,{type:H,danger:A,icon:et}),[i,X]=Ke([fe,s]);return Ee(L.createElement(F.Z.Compact,Object.assign({className:R,size:m,block:!0},$e),i,L.createElement(t.Z,Object.assign({},K),X)))};g.__ANT_BUTTON=!0;var M=g;const B=t.Z;B.Button=M;var I=B},47211:function(ht,le,e){"use strict";e.d(le,{Z:function(){return D}});var t=e(17313),l=e(13826),P=e(92899),L=e(29878),T=e(19447),p=e(83116),n=e(37613),W=g=>{const{componentCls:M,menuCls:B,colorError:I,colorTextLightSolid:E}=g,ne=`${B}-item`;return{[`${M}, ${M}-menu-submenu`]:{[`${B} ${ne}`]:{[`&${ne}-danger:not(${ne}-disabled)`]:{color:I,"&:hover":{color:E,backgroundColor:I}}}}}};const w=g=>{const{componentCls:M,menuCls:B,zIndexPopup:I,dropdownArrowDistance:E,sizePopupArrow:ne,antCls:k,iconCls:de,motionDurationMid:ie,dropdownPaddingVertical:H,fontSize:A,dropdownEdgeChildPadding:ae,colorTextDisabled:C,fontSizeIcon:S,controlPaddingHorizontal:J,colorBgElevated:te}=g;return[{[M]:Object.assign(Object.assign({},(0,t.Wf)(g)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:I,display:"block","&::before":{position:"absolute",insetBlock:-E+ne/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${k}-btn`]:{[`& > ${de}-down, & > ${k}-btn-icon > ${de}-down`]:{fontSize:S}},[`${M}-wrap`]:{position:"relative",[`${k}-btn > ${de}-down`]:{fontSize:S},[`${de}-down::before`]:{transition:`transform ${ie}`}},[`${M}-wrap-open`]:{[`${de}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${k}-slide-down-enter${k}-slide-down-enter-active${M}-placement-bottomLeft, - &${k}-slide-down-appear${k}-slide-down-appear-active${M}-placement-bottomLeft, - &${k}-slide-down-enter${k}-slide-down-enter-active${M}-placement-bottom, - &${k}-slide-down-appear${k}-slide-down-appear-active${M}-placement-bottom, - &${k}-slide-down-enter${k}-slide-down-enter-active${M}-placement-bottomRight, - &${k}-slide-down-appear${k}-slide-down-appear-active${M}-placement-bottomRight`]:{animationName:l.fJ},[`&${k}-slide-up-enter${k}-slide-up-enter-active${M}-placement-topLeft, - &${k}-slide-up-appear${k}-slide-up-appear-active${M}-placement-topLeft, - &${k}-slide-up-enter${k}-slide-up-enter-active${M}-placement-top, - &${k}-slide-up-appear${k}-slide-up-appear-active${M}-placement-top, - &${k}-slide-up-enter${k}-slide-up-enter-active${M}-placement-topRight, - &${k}-slide-up-appear${k}-slide-up-appear-active${M}-placement-topRight`]:{animationName:l.Qt},[`&${k}-slide-down-leave${k}-slide-down-leave-active${M}-placement-bottomLeft, - &${k}-slide-down-leave${k}-slide-down-leave-active${M}-placement-bottom, - &${k}-slide-down-leave${k}-slide-down-leave-active${M}-placement-bottomRight`]:{animationName:l.Uw},[`&${k}-slide-up-leave${k}-slide-up-leave-active${M}-placement-topLeft, - &${k}-slide-up-leave${k}-slide-up-leave-active${M}-placement-top, - &${k}-slide-up-leave${k}-slide-up-leave-active${M}-placement-topRight`]:{animationName:l.ly}})},(0,T.ZP)(g,{colorBg:te,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${M} ${B}`]:{position:"relative",margin:0},[`${B}-submenu-popup`]:{position:"absolute",zIndex:I,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${M}, ${M}-menu-submenu`]:{[B]:Object.assign(Object.assign({padding:ae,listStyleType:"none",backgroundColor:te,backgroundClip:"padding-box",borderRadius:g.borderRadiusLG,outline:"none",boxShadow:g.boxShadowSecondary},(0,t.Qy)(g)),{[`${B}-item-group-title`]:{padding:`${H}px ${J}px`,color:g.colorTextDescription,transition:`all ${ie}`},[`${B}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${B}-item-icon`]:{minWidth:A,marginInlineEnd:g.marginXS,fontSize:g.fontSizeSM},[`${B}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ie}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${B}-item, ${B}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${H}px ${J}px`,color:g.colorText,fontWeight:"normal",fontSize:A,lineHeight:g.lineHeight,cursor:"pointer",transition:`all ${ie}`,borderRadius:g.borderRadiusSM,"&:hover, &-active":{backgroundColor:g.controlItemBgHover}},(0,t.Qy)(g)),{"&-selected":{color:g.colorPrimary,backgroundColor:g.controlItemBgActive,"&:hover, &-active":{backgroundColor:g.controlItemBgActiveHover}},"&-disabled":{color:C,cursor:"not-allowed","&:hover":{color:C,backgroundColor:te,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${g.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:g.colorSplit},[`${M}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:g.paddingXS,[`${M}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:g.colorTextDescription,fontSize:S,fontStyle:"normal"}}}),[`${B}-item-group-list`]:{margin:`0 ${g.marginXS}px`,padding:0,listStyle:"none"},[`${B}-submenu-title`]:{paddingInlineEnd:J+g.fontSizeSM},[`${B}-submenu-vertical`]:{position:"relative"},[`${B}-submenu${B}-submenu-disabled ${M}-menu-submenu-title`]:{[`&, ${M}-menu-submenu-arrow-icon`]:{color:C,backgroundColor:te,cursor:"not-allowed"}},[`${B}-submenu-selected ${M}-menu-submenu-title`]:{color:g.colorPrimary}})}},[(0,l.oN)(g,"slide-up"),(0,l.oN)(g,"slide-down"),(0,P.Fm)(g,"move-up"),(0,P.Fm)(g,"move-down"),(0,L._y)(g,"zoom-big")]]};var D=(0,p.Z)("Dropdown",(g,M)=>{let{rootPrefixCls:B}=M;const{marginXXS:I,sizePopupArrow:E,controlHeight:ne,fontSize:k,lineHeight:de,paddingXXS:ie,componentCls:H,borderRadiusLG:A}=g,ae=(ne-k*de)/2,{dropdownArrowOffset:C}=(0,T.fS)({contentRadius:A}),S=(0,n.TS)(g,{menuCls:`${H}-menu`,rootPrefixCls:B,dropdownArrowDistance:E/2+I,dropdownArrowOffset:C,dropdownPaddingVertical:ae,dropdownEdgeChildPadding:ie});return[w(S),W(S)]},g=>({zIndexPopup:g.zIndexPopupBase+50}))},8628:function(ht,le,e){"use strict";var t=e(59301),l=e(34280),P=e(56762),L=e(69507);function T(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const n=(0,t.useRef)({}),F=(0,P.Z)(),W=(0,L.ZP)();return(0,l.Z)(()=>{const w=W.subscribe(D=>{n.current=D,p&&F()});return()=>W.unsubscribe(w)},[]),n.current}le.Z=T},11611:function(ht,le,e){"use strict";e.d(le,{Z:function(){return Jr}});var t=e(59301),l=e(15277),P=e(92310),L=e.n(P),T=e(54476),p=e(33885),n=e(20068),F=e(42978),W=e(76190),w=e(75931),D=e(55468),g=e(18929),M=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],B=t.createContext(null),I=0;function E(Qe,pe){var lt=t.useState(function(){return I+=1,String(I)}),Pt=(0,F.Z)(lt,1),Nt=Pt[0],Lt=t.useContext(B),Ut={data:pe,canPreview:Qe};return t.useEffect(function(){if(Lt)return Lt.register(Nt,Ut)},[]),t.useEffect(function(){Lt&&Lt.register(Nt,Ut)},[Qe,pe]),Nt}function ne(Qe){return new Promise(function(pe){var lt=document.createElement("img");lt.onerror=function(){return pe(!1)},lt.onload=function(){return pe(!0)},lt.src=Qe})}function k(Qe){var pe=Qe.src,lt=Qe.isCustomPlaceholder,Pt=Qe.fallback,Nt=(0,t.useState)(lt?"loading":"normal"),Lt=(0,F.Z)(Nt,2),Ut=Lt[0],kt=Lt[1],j=(0,t.useRef)(!1),ue=Ut==="error";(0,t.useEffect)(function(){ne(pe).then(function(Le){Le||kt("error")})},[pe]),(0,t.useEffect)(function(){lt&&!j.current?kt("loading"):ue&&kt("normal")},[pe]);var ye=function(){kt("normal")},be=function(ke){j.current=!1,Ut==="loading"&&ke!=null&&ke.complete&&(ke.naturalWidth||ke.naturalHeight)&&(j.current=!0,ye())},Ze=ue&&Pt?{src:Pt}:{onLoad:ye,src:pe};return[be,Ze,Ut]}var de=e(86923),ie=e(8224),H=e(10228),A=e(48736);function ae(Qe,pe,lt,Pt){var Nt=pe+lt,Lt=(lt-Pt)/2;if(lt>Pt){if(pe>0)return(0,n.Z)({},Qe,Lt);if(pe<0&&NtPt)return(0,n.Z)({},Qe,pe<0?Lt:-Lt);return{}}function C(Qe,pe,lt,Pt){var Nt=(0,D.g1)(),Lt=Nt.width,Ut=Nt.height,kt=null;return Qe<=Lt&&pe<=Ut?kt={x:0,y:0}:(Qe>Lt||pe>Ut)&&(kt=(0,p.Z)((0,p.Z)({},ae("x",lt,Qe,Lt)),ae("y",Pt,pe,Ut))),kt}var S=e(13697),J=e(16089),te={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function z(Qe,pe,lt,Pt){var Nt=(0,t.useRef)(null),Lt=(0,t.useRef)([]),Ut=(0,t.useState)(te),kt=(0,F.Z)(Ut,2),j=kt[0],ue=kt[1],ye=function(ke){ue(te),Pt&&!(0,S.Z)(te,j)&&Pt({transform:te,action:ke})},be=function(ke,Ae){Nt.current===null&&(Lt.current=[],Nt.current=(0,J.Z)(function(){ue(function(jt){var Zt=jt;return Lt.current.forEach(function(qt){Zt=(0,p.Z)((0,p.Z)({},Zt),qt)}),Nt.current=null,Pt==null||Pt({transform:Zt,action:Ae}),Zt})})),Lt.current.push((0,p.Z)((0,p.Z)({},j),ke))},Ze=function(ke,Ae,jt,Zt){var qt=Qe.current,kn=qt.width,Rn=qt.height,on=qt.offsetWidth,h=qt.offsetHeight,_r=qt.offsetLeft,Qn=qt.offsetTop,dr=ke,er=j.scale*ke;er>lt?(dr=lt/j.scale,er=lt):er1,gn=Ft&&qt>=1,Gt=z(Wr,_r,dr,wn),At=Gt.transform,Ye=Gt.resetTransform,xt=Gt.updateTransform,tn=Gt.dispatchZoomChange,nn=(0,t.useState)(!0),Sn=(0,F.Z)(nn,2),Cn=Sn[0],Gn=Sn[1],_n=At.rotate,ot=At.scale,Ot=At.x,$n=At.y,sr=L()((0,n.Z)({},"".concat(lt,"-moving"),me));(0,t.useEffect)(function(){Cn||Gn(!0)},[Cn]);var Mn=function(){Ye("close")},Yn=function(){tn(x+on,"zoomIn")},wr=function(){tn(x/(x+on),"zoomOut")},Mr=function(){xt({rotate:_n+90},"rotateRight")},Kn=function(){xt({rotate:_n-90},"rotateLeft")},$r=function(){xt({flipX:!At.flipX},"flipX")},Jn=function(){xt({flipY:!At.flipY},"flipY")},Kr=function(Kt){Kt==null||Kt.preventDefault(),Kt==null||Kt.stopPropagation(),jt>0&&(Gn(!1),Ye("prev"),Er==null||Er(jt-1,jt))},qr=function(Kt){Kt==null||Kt.preventDefault(),Kt==null||Kt.stopPropagation(),jt0&&(zr=x/zr),tn(zr,"wheel",Kt.clientX,Kt.clientY)}},yo=function(Kt){!ue||!en||(Kt.keyCode===H.Z.LEFT?Kr():Kt.keyCode===H.Z.RIGHT&&qr())},Ln=function(Kt){ue&&(ot!==1?xt({x:0,y:0,scale:1},"doubleClick"):tn(x+on,"doubleClick",Kt.clientX,Kt.clientY))};(0,t.useEffect)(function(){var Hn,Kt,fr,Br;if(kt){fr=(0,ie.Z)(window,"mouseup",ao,!1),Br=(0,ie.Z)(window,"mousemove",ro,!1);try{window.top!==window.self&&(Hn=(0,ie.Z)(window.top,"mouseup",ao,!1),Kt=(0,ie.Z)(window.top,"mousemove",ro,!1))}catch(zr){(0,A.Kp)(!1,"[rc-image] ".concat(zr))}}return function(){var zr,to,no,bo;(zr=fr)===null||zr===void 0||zr.remove(),(to=Br)===null||to===void 0||to.remove(),(no=Hn)===null||no===void 0||no.remove(),(bo=Kt)===null||bo===void 0||bo.remove()}},[ue,me,Ot,$n,_n,kt]),(0,t.useEffect)(function(){var Hn=(0,ie.Z)(window,"keydown",yo,!1);return function(){Hn.remove()}},[ue,en,jt]);var vr=t.createElement(Me,(0,T.Z)({},zn,{width:pe.width,height:pe.height,imgRef:Wr,className:"".concat(lt,"-img"),alt:Nt,style:{transform:"translate3d(".concat(At.x,"px, ").concat(At.y,"px, 0) scale3d(").concat(At.flipX?"-":"").concat(ot,", ").concat(At.flipY?"-":"").concat(ot,", 1) rotate(").concat(_n,"deg)"),transitionDuration:!Cn&&"0s"},fallback:Lt,src:Pt,onWheel:uo,onMouseDown:wo,onDoubleClick:Ln}));return t.createElement(t.Fragment,null,t.createElement(de.Z,(0,T.Z)({transitionName:yr,maskTransitionName:Pn,closable:!1,keyboard:!0,prefixCls:lt,onClose:j,visible:ue,wrapClassName:sr,rootClassName:Ze,getContainer:ke},kr,{afterClose:Mn}),t.createElement("div",{className:"".concat(lt,"-img-wrapper")},In?In(vr,(0,p.Z)({transform:At},Ft?{current:jt}:{})):vr)),t.createElement(q,{visible:ue,transform:At,maskTransitionName:Pn,closeIcon:Le,getContainer:ke,prefixCls:lt,rootClassName:Ze,icons:be,countRender:kn,showSwitch:en,showProgress:gn,current:jt,count:qt,scale:ot,minScale:_r,maxScale:dr,toolbarRender:Lr,onSwitchLeft:Kr,onSwitchRight:qr,onZoomIn:Yn,onZoomOut:wr,onRotateRight:Mr,onRotateLeft:Kn,onFlipX:$r,onFlipY:Jn,onClose:j}))},je=Ie,et=e(94480);function rt(Qe){var pe=t.useState({}),lt=(0,F.Z)(pe,2),Pt=lt[0],Nt=lt[1],Lt=t.useCallback(function(kt,j){return Nt(function(ue){return(0,p.Z)((0,p.Z)({},ue),{},(0,n.Z)({},kt,j))}),function(){Nt(function(ue){var ye=(0,p.Z)({},ue);return delete ye[kt],ye})}},[]),Ut=t.useMemo(function(){return Qe?Qe.map(function(kt){if(typeof kt=="string")return{data:{src:kt}};var j={};return Object.keys(kt).forEach(function(ue){["src"].concat((0,et.Z)(M)).includes(ue)&&(j[ue]=kt[ue])}),{data:j}}):Object.keys(Pt).reduce(function(kt,j){var ue=Pt[j],ye=ue.canPreview,be=ue.data;return ye&&kt.push({data:be,id:j}),kt},[])},[Qe,Pt]);return[Ut,Lt]}var Ke=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Te=["src"],tt=function(pe){var lt,Pt=pe.previewPrefixCls,Nt=Pt===void 0?"rc-image-preview":Pt,Lt=pe.children,Ut=pe.icons,kt=Ut===void 0?{}:Ut,j=pe.items,ue=pe.preview,ye=pe.fallback,be=(0,W.Z)(ue)==="object"?ue:{},Ze=be.visible,Le=be.onVisibleChange,ke=be.getContainer,Ae=be.current,jt=be.movable,Zt=be.minScale,qt=be.maxScale,kn=be.countRender,Rn=be.closeIcon,on=be.onChange,h=be.onTransform,_r=be.toolbarRender,Qn=be.imageRender,dr=(0,w.Z)(be,Ke),er=rt(j),yr=(0,F.Z)(er,2),qn=yr[0],Pn=yr[1],In=(0,g.Z)(0,{value:Ae}),zn=(0,F.Z)(In,2),Lr=zn[0],wn=zn[1],Er=(0,t.useState)(!1),kr=(0,F.Z)(Er,2),Wr=kr[0],Vr=kr[1],Xr=((lt=qn[Lr])===null||lt===void 0?void 0:lt.data)||{},U=Xr.src,me=(0,w.Z)(Xr,Te),qe=(0,g.Z)(!!Ze,{value:Ze,onChange:function(_n,ot){Le==null||Le(_n,ot,Lr)}}),Ft=(0,F.Z)(qe,2),en=Ft[0],gn=Ft[1],Gt=(0,t.useState)(null),At=(0,F.Z)(Gt,2),Ye=At[0],xt=At[1],tn=t.useCallback(function(Gn,_n,ot){var Ot=qn.findIndex(function($n){return $n.id===Gn});gn(!0),xt({x:_n,y:ot}),wn(Ot<0?0:Ot),Vr(!0)},[qn]);t.useEffect(function(){en?Wr||wn(0):Vr(!1)},[en]);var nn=function(_n,ot){wn(_n),on==null||on(_n,ot)},Sn=function(){gn(!1),xt(null)},Cn=t.useMemo(function(){return{register:Pn,onPreview:tn}},[Pn,tn]);return t.createElement(B.Provider,{value:Cn},Lt,t.createElement(je,(0,T.Z)({"aria-hidden":!en,movable:jt,visible:en,prefixCls:Nt,closeIcon:Rn,onClose:Sn,mousePosition:Ye,imgCommonProps:me,src:U,fallback:ye,icons:kt,minScale:Zt,maxScale:qt,getContainer:ke,current:Lr,count:qn.length,countRender:kn,onTransform:h,toolbarRender:_r,imageRender:Qn,onChange:nn},dr)))},mt=tt,De=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],ut=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],St=function(pe){var lt=pe.src,Pt=pe.alt,Nt=pe.onPreviewClose,Lt=pe.prefixCls,Ut=Lt===void 0?"rc-image":Lt,kt=pe.previewPrefixCls,j=kt===void 0?"".concat(Ut,"-preview"):kt,ue=pe.placeholder,ye=pe.fallback,be=pe.width,Ze=pe.height,Le=pe.style,ke=pe.preview,Ae=ke===void 0?!0:ke,jt=pe.className,Zt=pe.onClick,qt=pe.onError,kn=pe.wrapperClassName,Rn=pe.wrapperStyle,on=pe.rootClassName,h=(0,w.Z)(pe,De),_r=ue&&ue!==!0,Qn=(0,W.Z)(Ae)==="object"?Ae:{},dr=Qn.src,er=Qn.visible,yr=er===void 0?void 0:er,qn=Qn.onVisibleChange,Pn=qn===void 0?Nt:qn,In=Qn.getContainer,zn=In===void 0?void 0:In,Lr=Qn.mask,wn=Qn.maskClassName,Er=Qn.movable,kr=Qn.icons,Wr=Qn.scaleStep,Vr=Qn.minScale,Xr=Qn.maxScale,U=Qn.imageRender,me=Qn.toolbarRender,qe=(0,w.Z)(Qn,ut),Ft=dr!=null?dr:lt,en=(0,g.Z)(!!yr,{value:yr,onChange:Pn}),gn=(0,F.Z)(en,2),Gt=gn[0],At=gn[1],Ye=k({src:lt,isCustomPlaceholder:_r,fallback:ye}),xt=(0,F.Z)(Ye,3),tn=xt[0],nn=xt[1],Sn=xt[2],Cn=(0,t.useState)(null),Gn=(0,F.Z)(Cn,2),_n=Gn[0],ot=Gn[1],Ot=(0,t.useContext)(B),$n=!!Ae,sr=function(){At(!1),ot(null)},Mn=L()(Ut,kn,on,(0,n.Z)({},"".concat(Ut,"-error"),Sn==="error")),Yn=(0,t.useMemo)(function(){var $r={};return M.forEach(function(Jn){pe[Jn]!==void 0&&($r[Jn]=pe[Jn])}),$r},M.map(function($r){return pe[$r]})),wr=(0,t.useMemo)(function(){return(0,p.Z)((0,p.Z)({},Yn),{},{src:Ft})},[Ft,Yn]),Mr=E($n,wr),Kn=function(Jn){var Kr=(0,D.os)(Jn.target),qr=Kr.left,ao=Kr.top;Ot?Ot.onPreview(Mr,qr,ao):(ot({x:qr,y:ao}),At(!0)),Zt==null||Zt(Jn)};return t.createElement(t.Fragment,null,t.createElement("div",(0,T.Z)({},h,{className:Mn,onClick:$n?Kn:Zt,style:(0,p.Z)({width:be,height:Ze},Rn)}),t.createElement("img",(0,T.Z)({},Yn,{className:L()("".concat(Ut,"-img"),(0,n.Z)({},"".concat(Ut,"-img-placeholder"),ue===!0),jt),style:(0,p.Z)({height:Ze},Le),ref:tn},nn,{width:be,height:Ze,onError:qt})),Sn==="loading"&&t.createElement("div",{"aria-hidden":"true",className:"".concat(Ut,"-placeholder")},ue),Lr&&$n&&t.createElement("div",{className:L()("".concat(Ut,"-mask"),wn),style:{display:(Le==null?void 0:Le.display)==="none"?"none":void 0}},Lr)),!Ot&&$n&&t.createElement(je,(0,T.Z)({"aria-hidden":!Gt,visible:Gt,prefixCls:j,onClose:sr,mousePosition:_n,src:Ft,alt:Pt,fallback:ye,getContainer:zn,icons:kr,movable:Er,scaleStep:Wr,minScale:Vr,maxScale:Xr,rootClassName:on,imageRender:U,imgCommonProps:Yn,toolbarRender:me},qe)))};St.PreviewGroup=mt,St.displayName="Image";var $e=St,ve=$e,at=e(62892),Ee=e(36355),Z=e(31724),K=e(99267),m=e(33853),a=e(38819),R={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},fe=R,s=e(7657),i=function(pe,lt){return t.createElement(s.Z,(0,T.Z)({},pe,{ref:lt,icon:fe}))},X=t.forwardRef(i),$=X,f={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Q=f,Re=function(pe,lt){return t.createElement(s.Z,(0,T.Z)({},pe,{ref:lt,icon:Q}))},Pe=t.forwardRef(Re),Se=Pe,Ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Be=Ne,d=function(pe,lt){return t.createElement(s.Z,(0,T.Z)({},pe,{ref:lt,icon:Be}))},Y=t.forwardRef(d),se=Y,xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},Fe=xe,_e=function(pe,lt){return t.createElement(s.Z,(0,T.Z)({},pe,{ref:lt,icon:Fe}))},He=t.forwardRef(_e),Je=He,ct={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Bt=ct,wt=function(pe,lt){return t.createElement(s.Z,(0,T.Z)({},pe,{ref:lt,icon:Bt}))},Dt=t.forwardRef(wt),mn=Dt,ln=e(64993),$t=e(73819),En=e(17313),vn=e(29878),sn=e(1950),yn=e(83116),xn=e(37613);const An=Qe=>({position:Qe||"absolute",inset:0}),ir=Qe=>{const{iconCls:pe,motionDurationSlow:lt,paddingXXS:Pt,marginXXS:Nt,prefixCls:Lt,colorTextLightSolid:Ut}=Qe;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Ut,background:new ln.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${lt}`,[`.${Lt}-mask-info`]:Object.assign(Object.assign({},En.vS),{padding:`0 ${Pt}px`,[pe]:{marginInlineEnd:Nt,svg:{verticalAlign:"baseline"}}})}},br=Qe=>{const{previewCls:pe,modalMaskBg:lt,paddingSM:Pt,marginXL:Nt,margin:Lt,paddingLG:Ut,previewOperationColorDisabled:kt,previewOperationHoverColor:j,motionDurationSlow:ue,iconCls:ye,colorTextLightSolid:be}=Qe,Ze=new ln.C(lt).setAlpha(.1),Le=Ze.clone().setAlpha(.2);return{[`${pe}-footer`]:{position:"fixed",bottom:Nt,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Qe.previewOperationColor},[`${pe}-progress`]:{marginBottom:Lt},[`${pe}-close`]:{position:"fixed",top:Nt,right:{_skip_check_:!0,value:Nt},display:"flex",color:be,backgroundColor:Ze.toRgbString(),borderRadius:"50%",padding:Pt,outline:0,border:0,cursor:"pointer",transition:`all ${ue}`,"&:hover":{backgroundColor:Le.toRgbString()},[`& > ${ye}`]:{fontSize:Qe.previewOperationSize}},[`${pe}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Ut}px`,backgroundColor:Ze.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:Pt,padding:Pt,cursor:"pointer",transition:`all ${ue}`,userSelect:"none",[`&:not(${pe}-operations-operation-disabled):hover > ${ye}`]:{color:j},"&-disabled":{color:kt,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${ye}`]:{fontSize:Qe.previewOperationSize}}}}},Vn=Qe=>{const{modalMaskBg:pe,iconCls:lt,previewOperationColorDisabled:Pt,previewCls:Nt,zIndexPopup:Lt,motionDurationSlow:Ut}=Qe,kt=new ln.C(pe).setAlpha(.1),j=kt.clone().setAlpha(.2);return{[`${Nt}-switch-left, ${Nt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:Lt+1,display:"flex",alignItems:"center",justifyContent:"center",width:Qe.imagePreviewSwitchSize,height:Qe.imagePreviewSwitchSize,marginTop:-Qe.imagePreviewSwitchSize/2,color:Qe.previewOperationColor,background:kt.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Ut}`,userSelect:"none","&:hover":{background:j.toRgbString()},"&-disabled":{"&, &:hover":{color:Pt,background:"transparent",cursor:"not-allowed",[`> ${lt}`]:{cursor:"not-allowed"}}},[`> ${lt}`]:{fontSize:Qe.previewOperationSize}},[`${Nt}-switch-left`]:{insetInlineStart:Qe.marginSM},[`${Nt}-switch-right`]:{insetInlineEnd:Qe.marginSM}}},ur=Qe=>{const{motionEaseOut:pe,previewCls:lt,motionDurationSlow:Pt,componentCls:Nt}=Qe;return[{[`${Nt}-preview-root`]:{[lt]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${lt}-body`]:Object.assign(Object.assign({},An()),{overflow:"hidden"}),[`${lt}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${Pt} ${pe} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},An()),{transition:`transform ${Pt} ${pe} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${lt}-moving`]:{[`${lt}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Nt}-preview-root`]:{[`${lt}-wrap`]:{zIndex:Qe.zIndexPopup}}},{[`${Nt}-preview-operations-wrapper`]:{position:"fixed",zIndex:Qe.zIndexPopup+1},"&":[br(Qe),Vn(Qe)]}]},Zn=Qe=>{const{componentCls:pe}=Qe;return{[pe]:{position:"relative",display:"inline-block",[`${pe}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${pe}-img-placeholder`]:{backgroundColor:Qe.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${pe}-mask`]:Object.assign({},ir(Qe)),[`${pe}-mask:hover`]:{opacity:1},[`${pe}-placeholder`]:Object.assign({},An())}}},mr=Qe=>{const{previewCls:pe}=Qe;return{[`${pe}-root`]:(0,vn._y)(Qe,"zoom"),"&":(0,sn.J$)(Qe,!0)}};var Or=(0,yn.Z)("Image",Qe=>{const pe=`${Qe.componentCls}-preview`,lt=(0,xn.TS)(Qe,{previewCls:pe,modalMaskBg:new ln.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Qe.controlHeightLG});return[Zn(lt),ur(lt),(0,$t.QA)((0,xn.TS)(lt,{componentCls:pe})),mr(lt)]},Qe=>({zIndexPopup:Qe.zIndexPopupBase+80,previewOperationColor:new ln.C(Qe.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new ln.C(Qe.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new ln.C(Qe.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Qe.fontSizeIcon*1.5})),Ir=function(Qe,pe){var lt={};for(var Pt in Qe)Object.prototype.hasOwnProperty.call(Qe,Pt)&&pe.indexOf(Pt)<0&&(lt[Pt]=Qe[Pt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Pt=Object.getOwnPropertySymbols(Qe);Nt{var{previewPrefixCls:pe,preview:lt}=Qe,Pt=Ir(Qe,["previewPrefixCls","preview"]);const{getPrefixCls:Nt}=t.useContext(Ee.E_),Lt=Nt("image",pe),Ut=`${Lt}-preview`,kt=Nt(),[j,ue]=Or(Lt),ye=t.useMemo(()=>{var be;if(lt===!1)return lt;const Ze=typeof lt=="object"?lt:{},Le=L()(ue,(be=Ze.rootClassName)!==null&&be!==void 0?be:"");return Object.assign(Object.assign({},Ze),{transitionName:(0,at.m)(kt,"zoom",Ze.transitionName),maskTransitionName:(0,at.m)(kt,"fade",Ze.maskTransitionName),rootClassName:Le})},[lt]);return j(t.createElement(ve.PreviewGroup,Object.assign({preview:ye,previewPrefixCls:Ut,icons:hr},Pt)))},Zr=function(Qe,pe){var lt={};for(var Pt in Qe)Object.prototype.hasOwnProperty.call(Qe,Pt)&&pe.indexOf(Pt)<0&&(lt[Pt]=Qe[Pt]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Pt=Object.getOwnPropertySymbols(Qe);Nt{const{prefixCls:pe,preview:lt,className:Pt,rootClassName:Nt,style:Lt}=Qe,Ut=Zr(Qe,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:kt,locale:j=Z.Z,getPopupContainer:ue,image:ye}=t.useContext(Ee.E_),be=kt("image",pe),Ze=kt(),Le=j.Image||Z.Z.Image,[ke,Ae]=Or(be),jt=L()(Nt,Ae),Zt=L()(Pt,Ae,ye==null?void 0:ye.className),qt=t.useMemo(()=>{if(lt===!1)return lt;const Rn=typeof lt=="object"?lt:{},{getContainer:on}=Rn,h=Zr(Rn,["getContainer"]);return Object.assign(Object.assign({mask:t.createElement("div",{className:`${be}-mask-info`},t.createElement(l.Z,null),Le==null?void 0:Le.preview),icons:hr},h),{getContainer:on||ue,transitionName:(0,at.m)(Ze,"zoom",Rn.transitionName),maskTransitionName:(0,at.m)(Ze,"fade",Rn.maskTransitionName)})},[lt,Le]),kn=Object.assign(Object.assign({},ye==null?void 0:ye.style),Lt);return ke(t.createElement(ve,Object.assign({prefixCls:be,preview:qt,rootClassName:jt,className:Zt,style:kn},Ut)))};so.PreviewGroup=Ur;var Jr=so},45818:function(ht,le,e){"use strict";e.d(le,{D:function(){return ie},Z:function(){return ae}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},L=P,T=e(7657),p=function(S,J){return l.createElement(T.Z,(0,t.Z)({},S,{ref:J,icon:L}))},n=l.forwardRef(p),F=n,W=e(33853),w=e(38819),D=e(92310),g=e.n(D),M=e(2738),I=C=>!isNaN(parseFloat(C))&&isFinite(C),E=e(36355),ne=e(84966),k=function(C,S){var J={};for(var te in C)Object.prototype.hasOwnProperty.call(C,te)&&S.indexOf(te)<0&&(J[te]=C[te]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,te=Object.getOwnPropertySymbols(C);z{let C=0;return function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return C+=1,`${S}${C}`}})();var ae=l.forwardRef((C,S)=>{const{prefixCls:J,className:te,trigger:z,children:v,defaultCollapsed:b=!1,theme:ce="dark",style:q={},collapsible:x=!1,reverseArrow:_=!1,width:V=200,collapsedWidth:he=80,zeroWidthTriggerStyle:Me,breakpoint:Ie,onCollapse:je,onBreakpoint:et}=C,rt=k(C,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Ke}=(0,l.useContext)(ne.Gs),[Te,tt]=(0,l.useState)("collapsed"in C?C.collapsed:b),[mt,De]=(0,l.useState)(!1);(0,l.useEffect)(()=>{"collapsed"in C&&tt(C.collapsed)},[C.collapsed]);const ut=(Z,K)=>{"collapsed"in C||tt(Z),je==null||je(Z,K)},St=(0,l.useRef)();St.current=Z=>{De(Z.matches),et==null||et(Z.matches),Te!==Z.matches&&ut(Z.matches,"responsive")},(0,l.useEffect)(()=>{function Z(m){return St.current(m)}let K;if(typeof window!="undefined"){const{matchMedia:m}=window;if(m&&Ie&&Ie in de){K=m(`(max-width: ${de[Ie]})`);try{K.addEventListener("change",Z)}catch(a){K.addListener(Z)}Z(K)}}return()=>{try{K==null||K.removeEventListener("change",Z)}catch(m){K==null||K.removeListener(Z)}}},[Ie]),(0,l.useEffect)(()=>{const Z=H("ant-sider-");return Ke.addSider(Z),()=>Ke.removeSider(Z)},[]);const $e=()=>{ut(!Te,"clickTrigger")},{getPrefixCls:ve}=(0,l.useContext)(E.E_),at=()=>{const Z=ve("layout-sider",J),K=(0,M.Z)(rt,["collapsed"]),m=Te?he:V,a=I(m)?`${m}px`:String(m),R=parseFloat(String(he||0))===0?l.createElement("span",{onClick:$e,className:g()(`${Z}-zero-width-trigger`,`${Z}-zero-width-trigger-${_?"right":"left"}`),style:Me},z||l.createElement(F,null)):null,i={expanded:_?l.createElement(w.Z,null):l.createElement(W.Z,null),collapsed:_?l.createElement(W.Z,null):l.createElement(w.Z,null)}[Te?"collapsed":"expanded"],X=z!==null?R||l.createElement("div",{className:`${Z}-trigger`,onClick:$e,style:{width:a}},z||i):null,$=Object.assign(Object.assign({},q),{flex:`0 0 ${a}`,maxWidth:a,minWidth:a,width:a}),f=g()(Z,`${Z}-${ce}`,{[`${Z}-collapsed`]:!!Te,[`${Z}-has-trigger`]:x&&z!==null&&!R,[`${Z}-below`]:!!mt,[`${Z}-zero-width`]:parseFloat(a)===0},te);return l.createElement("aside",Object.assign({className:f},K,{style:$,ref:S}),l.createElement("div",{className:`${Z}-children`},v),x||mt&&R?X:null)},Ee=l.useMemo(()=>({siderCollapsed:Te}),[Te]);return l.createElement(ie.Provider,{value:Ee},at())})},84966:function(ht,le,e){"use strict";e.d(le,{VY:function(){return ie},$_:function(){return de},h4:function(){return k},Gs:function(){return M},ZP:function(){return H}});var t=e(94480),l=e(92310),P=e.n(l),L=e(2738),T=e(59301),p=e(36355),n=e(83116),W=A=>{const{componentCls:ae,bodyBg:C,lightSiderBg:S,lightTriggerBg:J,lightTriggerColor:te}=A;return{[`${ae}-sider-light`]:{background:S,[`${ae}-sider-trigger`]:{color:te,background:J},[`${ae}-sider-zero-width-trigger`]:{color:te,background:J,border:`1px solid ${C}`,borderInlineStart:0}}}};const w=A=>{const{antCls:ae,componentCls:C,colorText:S,triggerColor:J,footerBg:te,triggerBg:z,headerHeight:v,headerPadding:b,headerColor:ce,footerPadding:q,triggerHeight:x,zeroTriggerHeight:_,zeroTriggerWidth:V,motionDurationMid:he,motionDurationSlow:Me,fontSize:Ie,borderRadius:je,bodyBg:et,headerBg:rt,siderBg:Ke}=A;return{[C]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:et,"&, *":{boxSizing:"border-box"},[`&${C}-has-sider`]:{flexDirection:"row",[`> ${C}, > ${C}-content`]:{width:0}},[`${C}-header, &${C}-footer`]:{flex:"0 0 auto"},[`${C}-sider`]:{position:"relative",minWidth:0,background:Ke,transition:`all ${he}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ae}-menu${ae}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:x},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:x,color:J,lineHeight:`${x}px`,textAlign:"center",background:z,cursor:"pointer",transition:`all ${he}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:v,insetInlineEnd:-V,zIndex:1,width:V,height:_,color:J,fontSize:A.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Ke,borderStartStartRadius:0,borderStartEndRadius:je,borderEndEndRadius:je,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Me} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Me}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-V,borderStartStartRadius:je,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:je}}}}},W(A)),{"&-rtl":{direction:"rtl"}}),[`${C}-header`]:{height:v,padding:b,color:ce,lineHeight:`${v}px`,background:rt,[`${ae}-menu`]:{lineHeight:"inherit"}},[`${C}-footer`]:{padding:q,color:S,fontSize:Ie,background:te},[`${C}-content`]:{flex:"auto",minHeight:0}}};var D=(0,n.Z)("Layout",A=>[w(A)],A=>{const{colorBgLayout:ae,controlHeight:C,controlHeightLG:S,colorText:J,controlHeightSM:te,marginXXS:z,colorTextLightSolid:v,colorBgContainer:b}=A,ce=S*1.25;return{colorBgHeader:"#001529",colorBgBody:ae,colorBgTrigger:"#002140",bodyBg:ae,headerBg:"#001529",headerHeight:C*2,headerPadding:`0 ${ce}px`,headerColor:J,footerPadding:`${te}px ${ce}px`,footerBg:ae,siderBg:"#001529",triggerHeight:S+z*2,triggerBg:"#002140",triggerColor:v,zeroTriggerWidth:S,zeroTriggerHeight:S,lightSiderBg:b,lightTriggerBg:b,lightTriggerColor:J}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),g=function(A,ae){var C={};for(var S in A)Object.prototype.hasOwnProperty.call(A,S)&&ae.indexOf(S)<0&&(C[S]=A[S]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,S=Object.getOwnPropertySymbols(A);Jnull,removeSider:()=>null}});function B(A){let{suffixCls:ae,tagName:C,displayName:S}=A;return J=>T.forwardRef((z,v)=>T.createElement(J,Object.assign({ref:v,suffixCls:ae,tagName:C},z)))}const I=T.forwardRef((A,ae)=>{const{prefixCls:C,suffixCls:S,className:J,tagName:te}=A,z=g(A,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:v}=T.useContext(p.E_),b=v("layout",C),[ce,q]=D(b),x=S?`${b}-${S}`:b;return ce(T.createElement(te,Object.assign({className:P()(C||x,J,q),ref:ae},z)))}),E=T.forwardRef((A,ae)=>{const{direction:C}=T.useContext(p.E_),[S,J]=T.useState([]),{prefixCls:te,className:z,rootClassName:v,children:b,hasSider:ce,tagName:q,style:x}=A,_=g(A,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),V=(0,L.Z)(_,["suffixCls"]),{getPrefixCls:he,layout:Me}=T.useContext(p.E_),Ie=he("layout",te),[je,et]=D(Ie),rt=P()(Ie,{[`${Ie}-has-sider`]:typeof ce=="boolean"?ce:S.length>0,[`${Ie}-rtl`]:C==="rtl"},Me==null?void 0:Me.className,z,v,et),Ke=T.useMemo(()=>({siderHook:{addSider:Te=>{J(tt=>[].concat((0,t.Z)(tt),[Te]))},removeSider:Te=>{J(tt=>tt.filter(mt=>mt!==Te))}}}),[]);return je(T.createElement(M.Provider,{value:Ke},T.createElement(q,Object.assign({ref:ae,className:rt,style:Object.assign(Object.assign({},Me==null?void 0:Me.style),x)},V),b)))}),ne=B({tagName:"div",displayName:"Layout"})(E),k=B({suffixCls:"header",tagName:"header",displayName:"Header"})(I),de=B({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(I),ie=B({suffixCls:"content",tagName:"main",displayName:"Content"})(I);var H=ne},40875:function(ht,le,e){"use strict";e.d(le,{J:function(){return p}});var t=e(59301),l=e(33234),P=e(70425),L=function(n,F){var W={};for(var w in n)Object.prototype.hasOwnProperty.call(n,w)&&F.indexOf(w)<0&&(W[w]=n[w]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,w=Object.getOwnPropertySymbols(n);D{const{children:W}=n,w=L(n,["children"]),D=t.useContext(T),g=t.useMemo(()=>Object.assign(Object.assign({},D),w),[D,w.prefixCls,w.mode,w.selectable]);return t.createElement(T.Provider,{value:g},t.createElement(l.BR,null,(0,P.supportNodeRef)(W)?t.cloneElement(W,{ref:F}):W))});le.Z=T},20834:function(ht,le,e){"use strict";e.d(le,{default:function(){return Ee}});var t=e(15285),l=e(59301),P=e(45818),L=e(92310),T=e.n(L),p=e(36355),n=function(Z,K){var m={};for(var a in Z)Object.prototype.hasOwnProperty.call(Z,a)&&K.indexOf(a)<0&&(m[a]=Z[a]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,a=Object.getOwnPropertySymbols(Z);R{const{prefixCls:K,className:m,dashed:a}=Z,R=n(Z,["prefixCls","className","dashed"]),{getPrefixCls:fe}=l.useContext(p.E_),s=fe("menu",K),i=T()({[`${s}-item-divider-dashed`]:!!a},m);return l.createElement(t.iz,Object.assign({className:i},R))},w=e(11592),D=e(2738),g=e(6848),M=e(92343),I=(0,l.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ne=Z=>{var K;const{className:m,children:a,icon:R,title:fe,danger:s}=Z,{prefixCls:i,firstLevel:X,direction:$,disableMenuItemTitleTooltip:f,inlineCollapsed:Q}=l.useContext(I),Re=Y=>{const se=l.createElement("span",{className:`${i}-title-content`},a);return(!R||(0,M.l$)(a)&&a.type==="span")&&a&&Y&&X&&typeof a=="string"?l.createElement("div",{className:`${i}-inline-collapsed-noicon`},a.charAt(0)):se},{siderCollapsed:Pe}=l.useContext(P.D);let Se=fe;typeof fe=="undefined"?Se=X?a:"":fe===!1&&(Se="");const Ne={title:Se};!Pe&&!Q&&(Ne.title=null,Ne.open=!1);const Be=(0,w.Z)(a).length;let d=l.createElement(t.ck,Object.assign({},(0,D.Z)(Z,["title","icon","danger"]),{className:T()({[`${i}-item-danger`]:s,[`${i}-item-only-child`]:(R?Be+1:Be)===1},m),title:typeof fe=="string"?fe:void 0}),(0,M.Tm)(R,{className:T()((0,M.l$)(R)?(K=R.props)===null||K===void 0?void 0:K.className:"",`${i}-item-icon`)}),Re(Q));return f||(d=l.createElement(g.Z,Object.assign({},Ne,{placement:$==="rtl"?"left":"right",overlayClassName:`${i}-inline-collapsed-tooltip`}),d)),d},de=Z=>{var K;const{popupClassName:m,icon:a,title:R,theme:fe}=Z,s=l.useContext(I),{prefixCls:i,inlineCollapsed:X,theme:$}=s,f=(0,t.Xl)();let Q;if(!a)Q=X&&!f.length&&R&&typeof R=="string"?l.createElement("div",{className:`${i}-inline-collapsed-noicon`},R.charAt(0)):l.createElement("span",{className:`${i}-title-content`},R);else{const Pe=(0,M.l$)(R)&&R.type==="span";Q=l.createElement(l.Fragment,null,(0,M.Tm)(a,{className:T()((0,M.l$)(a)?(K=a.props)===null||K===void 0?void 0:K.className:"",`${i}-item-icon`)}),Pe?R:l.createElement("span",{className:`${i}-title-content`},R))}const Re=l.useMemo(()=>Object.assign(Object.assign({},s),{firstLevel:!1}),[s]);return l.createElement(I.Provider,{value:Re},l.createElement(t.Wd,Object.assign({},(0,D.Z)(Z,["icon"]),{title:Q,popupClassName:T()(i,m,`${i}-${fe||$}`)})))},ie=e(18785),H=e(70425),A=e(62892),ae=e(40875),C=function(Z,K){var m={};for(var a in Z)Object.prototype.hasOwnProperty.call(Z,a)&&K.indexOf(a)<0&&(m[a]=Z[a]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,a=Object.getOwnPropertySymbols(Z);R{if(K&&typeof K=="object"){const a=K,{label:R,children:fe,key:s,type:i}=a,X=C(a,["label","children","key","type"]),$=s!=null?s:`tmp-${m}`;return fe||i==="group"?i==="group"?l.createElement(t.BW,Object.assign({key:$},X,{title:R}),S(fe)):l.createElement(de,Object.assign({key:$},X,{title:R}),S(fe)):i==="divider"?l.createElement(W,Object.assign({key:$},X)):l.createElement(ne,Object.assign({key:$},X),R)}return null}).filter(K=>K)}function J(Z){return l.useMemo(()=>Z&&S(Z),[Z])}var te=e(64993),z=e(17313),v=e(8378),b=e(13826),ce=e(29878),q=e(83116),x=e(37613),V=Z=>{const{componentCls:K,motionDurationSlow:m,horizontalLineHeight:a,colorSplit:R,lineWidth:fe,lineType:s,itemPaddingInline:i}=Z;return{[`${K}-horizontal`]:{lineHeight:a,border:0,borderBottom:`${fe}px ${s} ${R}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${K}-item, ${K}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:i},[`> ${K}-item:hover, - > ${K}-item-active, - > ${K}-submenu ${K}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${K}-item, ${K}-submenu-title`]:{transition:[`border-color ${m}`,`background ${m}`].join(",")},[`${K}-submenu-arrow`]:{display:"none"}}}},Me=Z=>{let{componentCls:K,menuArrowOffset:m}=Z;return{[`${K}-rtl`]:{direction:"rtl"},[`${K}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${K}-rtl${K}-vertical, - ${K}-submenu-rtl ${K}-vertical`]:{[`${K}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${m})`},"&::after":{transform:`rotate(45deg) translateY(${m})`}}}}};const Ie=Z=>Object.assign({},(0,z.oN)(Z));var et=(Z,K)=>{const{componentCls:m,itemColor:a,itemSelectedColor:R,groupTitleColor:fe,itemBg:s,subMenuItemBg:i,itemSelectedBg:X,activeBarHeight:$,activeBarWidth:f,activeBarBorderWidth:Q,motionDurationSlow:Re,motionEaseInOut:Pe,motionEaseOut:Se,itemPaddingInline:Ne,motionDurationMid:Be,itemHoverColor:d,lineType:Y,colorSplit:se,itemDisabledColor:xe,dangerItemColor:Fe,dangerItemHoverColor:_e,dangerItemSelectedColor:He,dangerItemActiveBg:Je,dangerItemSelectedBg:ct,itemHoverBg:Bt,itemActiveBg:wt,menuSubMenuBg:Dt,horizontalItemSelectedColor:mn,horizontalItemSelectedBg:ln,horizontalItemBorderRadius:$t,horizontalItemHoverBg:En,popupBg:vn}=Z;return{[`${m}-${K}, ${m}-${K} > ${m}`]:{color:a,background:s,[`&${m}-root:focus-visible`]:Object.assign({},Ie(Z)),[`${m}-item-group-title`]:{color:fe},[`${m}-submenu-selected`]:{[`> ${m}-submenu-title`]:{color:R}},[`${m}-item-disabled, ${m}-submenu-disabled`]:{color:`${xe} !important`},[`${m}-item:not(${m}-item-selected):not(${m}-submenu-selected)`]:{[`&:hover, > ${m}-submenu-title:hover`]:{color:d}},[`&:not(${m}-horizontal)`]:{[`${m}-item:not(${m}-item-selected)`]:{"&:hover":{backgroundColor:Bt},"&:active":{backgroundColor:wt}},[`${m}-submenu-title`]:{"&:hover":{backgroundColor:Bt},"&:active":{backgroundColor:wt}}},[`${m}-item-danger`]:{color:Fe,[`&${m}-item:hover`]:{[`&:not(${m}-item-selected):not(${m}-submenu-selected)`]:{color:_e}},[`&${m}-item:active`]:{background:Je}},[`${m}-item a`]:{"&, &:hover":{color:"inherit"}},[`${m}-item-selected`]:{color:R,[`&${m}-item-danger`]:{color:He},"a, a:hover":{color:"inherit"}},[`& ${m}-item-selected`]:{backgroundColor:X,[`&${m}-item-danger`]:{backgroundColor:ct}},[`${m}-item, ${m}-submenu-title`]:{[`&:not(${m}-item-disabled):focus-visible`]:Object.assign({},Ie(Z))},[`&${m}-submenu > ${m}`]:{backgroundColor:Dt},[`&${m}-popup > ${m}`]:{backgroundColor:vn},[`&${m}-horizontal`]:Object.assign(Object.assign({},K==="dark"?{borderBottom:0}:{}),{[`> ${m}-item, > ${m}-submenu`]:{top:Q,marginTop:-Q,marginBottom:0,borderRadius:$t,"&::after":{position:"absolute",insetInline:Ne,bottom:0,borderBottom:`${$}px solid transparent`,transition:`border-color ${Re} ${Pe}`,content:'""'},"&:hover, &-active, &-open":{background:En,"&::after":{borderBottomWidth:$,borderBottomColor:mn}},"&-selected":{color:mn,backgroundColor:ln,"&:hover":{backgroundColor:ln},"&::after":{borderBottomWidth:$,borderBottomColor:mn}}}}),[`&${m}-root`]:{[`&${m}-inline, &${m}-vertical`]:{borderInlineEnd:`${Q}px ${Y} ${se}`}},[`&${m}-inline`]:{[`${m}-sub${m}-inline`]:{background:i},[`${m}-item, ${m}-submenu-title`]:Q&&f?{width:`calc(100% + ${Q}px)`}:{},[`${m}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${f}px solid ${R}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Be} ${Se}`,`opacity ${Be} ${Se}`].join(","),content:'""'},[`&${m}-item-danger`]:{"&::after":{borderInlineEndColor:He}}},[`${m}-selected, ${m}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Be} ${Pe}`,`opacity ${Be} ${Pe}`].join(",")}}}}}};const rt=Z=>{const{componentCls:K,itemHeight:m,itemMarginInline:a,padding:R,menuArrowSize:fe,marginXS:s,itemMarginBlock:i}=Z,X=R+fe+s;return{[`${K}-item`]:{position:"relative",overflow:"hidden"},[`${K}-item, ${K}-submenu-title`]:{height:m,lineHeight:`${m}px`,paddingInline:R,overflow:"hidden",textOverflow:"ellipsis",marginInline:a,marginBlock:i,width:`calc(100% - ${a*2}px)`},[`> ${K}-item, - > ${K}-submenu > ${K}-submenu-title`]:{height:m,lineHeight:`${m}px`},[`${K}-item-group-list ${K}-submenu-title, - ${K}-submenu-title`]:{paddingInlineEnd:X}}};var Te=Z=>{const{componentCls:K,iconCls:m,itemHeight:a,colorTextLightSolid:R,dropdownWidth:fe,controlHeightLG:s,motionDurationMid:i,motionEaseOut:X,paddingXL:$,itemMarginInline:f,fontSizeLG:Q,motionDurationSlow:Re,paddingXS:Pe,boxShadowSecondary:Se,collapsedWidth:Ne,collapsedIconSize:Be}=Z,d={height:a,lineHeight:`${a}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[K]:{"&-inline, &-vertical":Object.assign({[`&${K}-root`]:{boxShadow:"none"}},rt(Z))},[`${K}-submenu-popup`]:{[`${K}-vertical`]:Object.assign(Object.assign({},rt(Z)),{boxShadow:Se})}},{[`${K}-submenu-popup ${K}-vertical${K}-sub`]:{minWidth:fe,maxHeight:`calc(100vh - ${s*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${K}-inline`]:{width:"100%",[`&${K}-root`]:{[`${K}-item, ${K}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Re}`,`background ${Re}`,`padding ${i} ${X}`].join(","),[`> ${K}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${K}-sub${K}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${K}-submenu > ${K}-submenu-title`]:d,[`& ${K}-item-group-title`]:{paddingInlineStart:$}},[`${K}-item`]:d}},{[`${K}-inline-collapsed`]:{width:Ne,[`&${K}-root`]:{[`${K}-item, ${K}-submenu ${K}-submenu-title`]:{[`> ${K}-inline-collapsed-noicon`]:{fontSize:Q,textAlign:"center"}}},[`> ${K}-item, - > ${K}-item-group > ${K}-item-group-list > ${K}-item, - > ${K}-item-group > ${K}-item-group-list > ${K}-submenu > ${K}-submenu-title, - > ${K}-submenu > ${K}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Q/2}px - ${f}px)`,textOverflow:"clip",[` - ${K}-submenu-arrow, - ${K}-submenu-expand-icon - `]:{opacity:0},[`${K}-item-icon, ${m}`]:{margin:0,fontSize:Be,lineHeight:`${a}px`,"+ span":{display:"inline-block",opacity:0}}},[`${K}-item-icon, ${m}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${K}-item-icon, ${m}`]:{display:"none"},"a, a:hover":{color:R}},[`${K}-item-group-title`]:Object.assign(Object.assign({},z.vS),{paddingInline:Pe})}}]};const tt=Z=>{const{componentCls:K,motionDurationSlow:m,motionDurationMid:a,motionEaseInOut:R,motionEaseOut:fe,iconCls:s,iconSize:i,iconMarginInlineEnd:X}=Z;return{[`${K}-item, ${K}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${m}`,`background ${m}`,`padding ${m} ${R}`].join(","),[`${K}-item-icon, ${s}`]:{minWidth:i,fontSize:i,transition:[`font-size ${a} ${fe}`,`margin ${m} ${R}`,`color ${m}`].join(","),"+ span":{marginInlineStart:X,opacity:1,transition:[`opacity ${m} ${R}`,`margin ${m}`,`color ${m}`].join(",")}},[`${K}-item-icon`]:Object.assign({},(0,z.Ro)()),[`&${K}-item-only-child`]:{[`> ${s}, > ${K}-item-icon`]:{marginInlineEnd:0}}},[`${K}-item-disabled, ${K}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${K}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},mt=Z=>{const{componentCls:K,motionDurationSlow:m,motionEaseInOut:a,borderRadius:R,menuArrowSize:fe,menuArrowOffset:s}=Z;return{[`${K}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Z.margin,width:fe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${m} ${a}, opacity ${m}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:fe*.6,height:fe*.15,backgroundColor:"currentcolor",borderRadius:R,transition:[`background ${m} ${a}`,`transform ${m} ${a}`,`top ${m} ${a}`,`color ${m} ${a}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${s})`},"&::after":{transform:`rotate(-45deg) translateY(${s})`}}}}},De=Z=>{const{antCls:K,componentCls:m,fontSize:a,motionDurationSlow:R,motionDurationMid:fe,motionEaseInOut:s,paddingXS:i,padding:X,colorSplit:$,lineWidth:f,zIndexPopup:Q,borderRadiusLG:Re,subMenuItemBorderRadius:Pe,menuArrowSize:Se,menuArrowOffset:Ne,lineType:Be,menuPanelMaskInset:d,groupTitleLineHeight:Y,groupTitleFontSize:se}=Z;return[{"":{[`${m}`]:Object.assign(Object.assign({},(0,z.dF)()),{"&-hidden":{display:"none"}})},[`${m}-submenu-hidden`]:{display:"none"}},{[m]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,z.Wf)(Z)),(0,z.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:a,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${R} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${m}-item`]:{flex:"none"}},[`${m}-item, ${m}-submenu, ${m}-submenu-title`]:{borderRadius:Z.itemBorderRadius},[`${m}-item-group-title`]:{padding:`${i}px ${X}px`,fontSize:se,lineHeight:Y,transition:`all ${R}`},[`&-horizontal ${m}-submenu`]:{transition:[`border-color ${R} ${s}`,`background ${R} ${s}`].join(",")},[`${m}-submenu, ${m}-submenu-inline`]:{transition:[`border-color ${R} ${s}`,`background ${R} ${s}`,`padding ${fe} ${s}`].join(",")},[`${m}-submenu ${m}-sub`]:{cursor:"initial",transition:[`background ${R} ${s}`,`padding ${R} ${s}`].join(",")},[`${m}-title-content`]:{transition:`color ${R}`},[`${m}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${m}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:$,borderStyle:Be,borderWidth:0,borderTopWidth:f,marginBlock:f,padding:0,"&-dashed":{borderStyle:"dashed"}}}),tt(Z)),{[`${m}-item-group`]:{[`${m}-item-group-list`]:{margin:0,padding:0,[`${m}-item, ${m}-submenu-title`]:{paddingInline:`${a*2}px ${X}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Q,borderRadius:Re,boxShadow:"none",transformOrigin:"0 0",[`&${m}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${d}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:d},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Z.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Z.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Z.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Z.paddingXS},[`> ${m}`]:Object.assign(Object.assign(Object.assign({borderRadius:Re},tt(Z)),mt(Z)),{[`${m}-item, ${m}-submenu > ${m}-submenu-title`]:{borderRadius:Pe},[`${m}-submenu-title::after`]:{transition:`transform ${R} ${s}`}})}}),mt(Z)),{[`&-inline-collapsed ${m}-submenu-arrow, - &-inline ${m}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ne})`},"&::after":{transform:`rotate(45deg) translateX(-${Ne})`}},[`${m}-submenu-open${m}-submenu-inline > ${m}-submenu-title > ${m}-submenu-arrow`]:{transform:`translateY(-${Se*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ne})`},"&::before":{transform:`rotate(45deg) translateX(${Ne})`}}})},{[`${K}-layout-header`]:{[m]:{lineHeight:"inherit"}}}]};var ut=(Z,K)=>(0,q.Z)("Menu",a=>{if(K===!1)return[];const{colorBgElevated:R,colorPrimary:fe,colorTextLightSolid:s,controlHeightLG:i,fontSize:X,darkItemColor:$,darkDangerItemColor:f,darkItemBg:Q,darkSubMenuItemBg:Re,darkItemSelectedColor:Pe,darkItemSelectedBg:Se,darkDangerItemSelectedBg:Ne,darkItemHoverBg:Be,darkGroupTitleColor:d,darkItemHoverColor:Y,darkItemDisabledColor:se,darkDangerItemHoverColor:xe,darkDangerItemSelectedColor:Fe,darkDangerItemActiveBg:_e}=a,He=X/7*5,Je=(0,x.TS)(a,{menuArrowSize:He,menuHorizontalHeight:i*1.15,menuArrowOffset:`${He*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:R}),ct=(0,x.TS)(Je,{itemColor:$,itemHoverColor:Y,groupTitleColor:d,itemSelectedColor:Pe,itemBg:Q,popupBg:Q,subMenuItemBg:Re,itemActiveBg:"transparent",itemSelectedBg:Se,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Be,itemDisabledColor:se,dangerItemColor:f,dangerItemHoverColor:xe,dangerItemSelectedColor:Fe,dangerItemActiveBg:_e,dangerItemSelectedBg:Ne,menuSubMenuBg:Re,horizontalItemSelectedColor:s,horizontalItemSelectedBg:fe});return[De(Je),V(Je),Te(Je),et(Je,"light"),et(ct,"dark"),Me(Je),(0,v.Z)(Je),(0,b.oN)(Je,"slide-up"),(0,b.oN)(Je,"slide-down"),(0,ce._y)(Je,"zoom-big")]},a=>{const{colorPrimary:R,colorError:fe,colorTextDisabled:s,colorErrorBg:i,colorText:X,colorTextDescription:$,colorBgContainer:f,colorFillAlter:Q,colorFillContent:Re,lineWidth:Pe,lineWidthBold:Se,controlItemBgActive:Ne,colorBgTextHover:Be,controlHeightLG:d,lineHeight:Y,colorBgElevated:se,marginXXS:xe,padding:Fe,fontSize:_e,controlHeightSM:He,fontSizeLG:Je,colorTextLightSolid:ct,colorErrorHover:Bt}=a,wt=new te.C(ct).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:a.zIndexPopupBase+50,radiusItem:a.borderRadiusLG,itemBorderRadius:a.borderRadiusLG,radiusSubMenuItem:a.borderRadiusSM,subMenuItemBorderRadius:a.borderRadiusSM,colorItemText:X,itemColor:X,colorItemTextHover:X,itemHoverColor:X,colorItemTextHoverHorizontal:R,horizontalItemHoverColor:R,colorGroupTitle:$,groupTitleColor:$,colorItemTextSelected:R,itemSelectedColor:R,colorItemTextSelectedHorizontal:R,horizontalItemSelectedColor:R,colorItemBg:f,itemBg:f,colorItemBgHover:Be,itemHoverBg:Be,colorItemBgActive:Re,itemActiveBg:Ne,colorSubItemBg:Q,subMenuItemBg:Q,colorItemBgSelected:Ne,itemSelectedBg:Ne,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Se,activeBarHeight:Se,colorActiveBarBorderSize:Pe,activeBarBorderWidth:Pe,colorItemTextDisabled:s,itemDisabledColor:s,colorDangerItemText:fe,dangerItemColor:fe,colorDangerItemTextHover:fe,dangerItemHoverColor:fe,colorDangerItemTextSelected:fe,dangerItemSelectedColor:fe,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:a.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:d,groupTitleLineHeight:Y,collapsedWidth:d*2,popupBg:se,itemMarginBlock:xe,itemPaddingInline:Fe,horizontalLineHeight:`${d*1.15}px`,iconSize:_e,iconMarginInlineEnd:He-_e,collapsedIconSize:Je,groupTitleFontSize:_e,darkItemDisabledColor:new te.C(ct).setAlpha(.25).toRgbString(),darkItemColor:wt,darkDangerItemColor:fe,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ct,darkItemSelectedBg:R,darkDangerItemSelectedBg:fe,darkItemHoverBg:"transparent",darkGroupTitleColor:wt,darkItemHoverColor:ct,darkDangerItemHoverColor:Bt,darkDangerItemSelectedColor:ct,darkDangerItemActiveBg:fe}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Z),St=function(Z,K){var m={};for(var a in Z)Object.prototype.hasOwnProperty.call(Z,a)&&K.indexOf(a)<0&&(m[a]=Z[a]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,a=Object.getOwnPropertySymbols(Z);R{var m,a;const R=l.useContext(ae.Z),fe=R||{},{getPrefixCls:s,getPopupContainer:i,direction:X,menu:$}=l.useContext(p.E_),f=s(),{prefixCls:Q,className:Re,style:Pe,theme:Se="light",expandIcon:Ne,_internalDisableMenuItemTitleTooltip:Be,inlineCollapsed:d,siderCollapsed:Y,items:se,children:xe,rootClassName:Fe,mode:_e,selectable:He,onClick:Je,overflowedIndicatorPopupClassName:ct}=Z,Bt=St(Z,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),wt=(0,D.Z)(Bt,["collapsedWidth"]),Dt=J(se)||xe;(m=fe.validator)===null||m===void 0||m.call(fe,{mode:_e});const mn=(0,H.useEvent)(function(){var Vn;Je==null||Je.apply(void 0,arguments),(Vn=fe.onClick)===null||Vn===void 0||Vn.call(fe)}),ln=fe.mode||_e,$t=He!=null?He:fe.selectable,En=l.useMemo(()=>Y!==void 0?Y:d,[d,Y]),vn={horizontal:{motionName:`${f}-slide-up`},inline:(0,A.Z)(f),other:{motionName:`${f}-zoom-big`}},sn=s("menu",Q||fe.prefixCls),[yn,xn]=ut(sn,!R),An=T()(`${sn}-${Se}`,$==null?void 0:$.className,Re);let ir;if(typeof Ne=="function")ir=Ne;else if(Ne===null||Ne===!1)ir=null;else if(fe.expandIcon===null||fe.expandIcon===!1)ir=null;else{const Vn=Ne!=null?Ne:fe.expandIcon;ir=(0,M.Tm)(Vn,{className:T()(`${sn}-submenu-expand-icon`,(0,M.l$)(Vn)?(a=Vn.props)===null||a===void 0?void 0:a.className:"")})}const br=l.useMemo(()=>({prefixCls:sn,inlineCollapsed:En||!1,direction:X,firstLevel:!0,theme:Se,mode:ln,disableMenuItemTitleTooltip:Be}),[sn,En,X,Be,Se]);return yn(l.createElement(ae.Z.Provider,{value:null},l.createElement(I.Provider,{value:br},l.createElement(t.ZP,Object.assign({getPopupContainer:i,overflowedIndicator:l.createElement(ie.Z,null),overflowedIndicatorPopupClassName:T()(sn,`${sn}-${Se}`,ct),mode:ln,selectable:$t,onClick:mn},wt,{inlineCollapsed:En,style:Object.assign(Object.assign({},$==null?void 0:$.style),Pe),className:An,prefixCls:sn,direction:X,defaultMotions:vn,expandIcon:ir,ref:K,rootClassName:T()(Fe,xn)}),Dt))))});const at=(0,l.forwardRef)((Z,K)=>{const m=(0,l.useRef)(null),a=l.useContext(P.D);return(0,l.useImperativeHandle)(K,()=>({menu:m.current,focus:R=>{var fe;(fe=m.current)===null||fe===void 0||fe.focus(R)}})),l.createElement(ve,Object.assign({ref:m},Z,a))});at.Item=ne,at.SubMenu=de,at.Divider=W,at.ItemGroup=t.BW;var Ee=at},58421:function(ht,le,e){"use strict";e.d(le,{Z:function(){return fe}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},L=P,T=e(7657),p=function(i,X){return l.createElement(T.Z,(0,t.Z)({},i,{ref:X,icon:L}))},n=l.forwardRef(p),F=n,W=e(49198),w=e(33853),D=e(38819),g=e(92310),M=e.n(g),B=e(20068),I=e(33885),E=e(67732),ne=e(83652),k=e(42403),de=e(158),ie=e(26112),H={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},A=H,ae=e(91735),C=function(s){(0,k.Z)(X,s);var i=(0,de.Z)(X);function X(){var $;(0,E.Z)(this,X);for(var f=arguments.length,Q=new Array(f),Re=0;Re=0||Pe.relatedTarget.className.indexOf("".concat(d,"-item"))>=0))&&Be($.getValidValue()))},$.go=function(Pe){var Se=$.state.goInputText;Se!==""&&(Pe.keyCode===A.ENTER||Pe.type==="click")&&($.setState({goInputText:""}),$.props.quickGo($.getValidValue()))},$}return(0,ne.Z)(X,[{key:"getPageSizeOptions",value:function(){var f=this.props,Q=f.pageSize,Re=f.pageSizeOptions;return Re.some(function(Pe){return Pe.toString()===Q.toString()})?Re:Re.concat([Q.toString()]).sort(function(Pe,Se){var Ne=Number.isNaN(Number(Pe))?0:Number(Pe),Be=Number.isNaN(Number(Se))?0:Number(Se);return Ne-Be})}},{key:"render",value:function(){var f=this,Q=this.props,Re=Q.pageSize,Pe=Q.locale,Se=Q.rootPrefixCls,Ne=Q.changeSize,Be=Q.quickGo,d=Q.goButton,Y=Q.selectComponentClass,se=Q.buildOptionText,xe=Q.selectPrefixCls,Fe=Q.disabled,_e=this.state.goInputText,He="".concat(Se,"-options"),Je=Y,ct=null,Bt=null,wt=null;if(!Ne&&!Be)return null;var Dt=this.getPageSizeOptions();if(Ne&&Je){var mn=Dt.map(function(ln,$t){return l.createElement(Je.Option,{key:$t,value:ln.toString()},(se||f.buildOptionText)(ln))});ct=l.createElement(Je,{disabled:Fe,prefixCls:xe,showSearch:!1,className:"".concat(He,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Re||Dt[0]).toString(),onChange:this.changeSize,getPopupContainer:function($t){return $t.parentNode},"aria-label":Pe.page_size,defaultOpen:!1},mn)}return Be&&(d&&(wt=typeof d=="boolean"?l.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Fe,className:"".concat(He,"-quick-jumper-button")},Pe.jump_to_confirm):l.createElement("span",{onClick:this.go,onKeyUp:this.go},d)),Bt=l.createElement("div",{className:"".concat(He,"-quick-jumper")},Pe.jump_to,l.createElement("input",{disabled:Fe,type:"text",value:_e,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Pe.page}),Pe.page,wt)),l.createElement("li",{className:"".concat(He)},ct,Bt)}}]),X}(l.Component);C.defaultProps={pageSizeOptions:["10","20","50","100"]};var S=C,J=function(i){var X,$=i.rootPrefixCls,f=i.page,Q=i.active,Re=i.className,Pe=i.showTitle,Se=i.onClick,Ne=i.onKeyPress,Be=i.itemRender,d="".concat($,"-item"),Y=M()(d,"".concat(d,"-").concat(f),(X={},(0,B.Z)(X,"".concat(d,"-active"),Q),(0,B.Z)(X,"".concat(d,"-disabled"),!f),(0,B.Z)(X,i.className,Re),X)),se=function(){Se(f)},xe=function(He){Ne(He,Se,f)},Fe=Be(f,"page",l.createElement("a",{rel:"nofollow"},f));return Fe?l.createElement("li",{title:Pe?f.toString():null,className:Y,onClick:se,onKeyPress:xe,tabIndex:0},Fe):null},te=J;function z(){}function v(s){var i=Number(s);return typeof i=="number"&&!Number.isNaN(i)&&isFinite(i)&&Math.floor(i)===i}var b=function(i,X,$){return $};function ce(s,i,X){var $=typeof s=="undefined"?i.pageSize:s;return Math.floor((X.total-1)/$)+1}var q=function(s){(0,k.Z)(X,s);var i=(0,de.Z)(X);function X($){var f;(0,E.Z)(this,X),f=i.call(this,$),f.paginationNode=l.createRef(),f.getJumpPrevPage=function(){return Math.max(1,f.state.current-(f.props.showLessItems?3:5))},f.getJumpNextPage=function(){return Math.min(ce(void 0,f.state,f.props),f.state.current+(f.props.showLessItems?3:5))},f.getItemIcon=function(Ne,Be){var d=f.props.prefixCls,Y=Ne||l.createElement("button",{type:"button","aria-label":Be,className:"".concat(d,"-item-link")});return typeof Ne=="function"&&(Y=l.createElement(Ne,(0,I.Z)({},f.props))),Y},f.isValid=function(Ne){var Be=f.props.total;return v(Ne)&&Ne!==f.state.current&&v(Be)&&Be>0},f.shouldDisplayQuickJumper=function(){var Ne=f.props,Be=Ne.showQuickJumper,d=Ne.total,Y=f.state.pageSize;return d<=Y?!1:Be},f.handleKeyDown=function(Ne){(Ne.keyCode===A.ARROW_UP||Ne.keyCode===A.ARROW_DOWN)&&Ne.preventDefault()},f.handleKeyUp=function(Ne){var Be=f.getValidValue(Ne),d=f.state.currentInputValue;Be!==d&&f.setState({currentInputValue:Be}),Ne.keyCode===A.ENTER?f.handleChange(Be):Ne.keyCode===A.ARROW_UP?f.handleChange(Be-1):Ne.keyCode===A.ARROW_DOWN&&f.handleChange(Be+1)},f.handleBlur=function(Ne){var Be=f.getValidValue(Ne);f.handleChange(Be)},f.changePageSize=function(Ne){var Be=f.state.current,d=ce(Ne,f.state,f.props);Be=Be>d?d:Be,d===0&&(Be=f.state.current),typeof Ne=="number"&&("pageSize"in f.props||f.setState({pageSize:Ne}),"current"in f.props||f.setState({current:Be,currentInputValue:Be})),f.props.onShowSizeChange(Be,Ne),"onChange"in f.props&&f.props.onChange&&f.props.onChange(Be,Ne)},f.handleChange=function(Ne){var Be=f.props,d=Be.disabled,Y=Be.onChange,se=f.state,xe=se.pageSize,Fe=se.current,_e=se.currentInputValue;if(f.isValid(Ne)&&!d){var He=ce(void 0,f.state,f.props),Je=Ne;return Ne>He?Je=He:Ne<1&&(Je=1),"current"in f.props||f.setState({current:Je}),Je!==_e&&f.setState({currentInputValue:Je}),Y(Je,xe),Je}return Fe},f.prev=function(){f.hasPrev()&&f.handleChange(f.state.current-1)},f.next=function(){f.hasNext()&&f.handleChange(f.state.current+1)},f.jumpPrev=function(){f.handleChange(f.getJumpPrevPage())},f.jumpNext=function(){f.handleChange(f.getJumpNextPage())},f.hasPrev=function(){return f.state.current>1},f.hasNext=function(){return f.state.current2?d-2:0),se=2;se=Re?Se=Re:Se=Number(Q),Se}},{key:"getShowSizeChanger",value:function(){var f=this.props,Q=f.showSizeChanger,Re=f.total,Pe=f.totalBoundaryShowSizeChanger;return typeof Q!="undefined"?Q:Re>Pe}},{key:"render",value:function(){var f=this.props,Q=f.prefixCls,Re=f.className,Pe=f.style,Se=f.disabled,Ne=f.hideOnSinglePage,Be=f.total,d=f.locale,Y=f.showQuickJumper,se=f.showLessItems,xe=f.showTitle,Fe=f.showTotal,_e=f.simple,He=f.itemRender,Je=f.showPrevNextJumpers,ct=f.jumpPrevIcon,Bt=f.jumpNextIcon,wt=f.selectComponentClass,Dt=f.selectPrefixCls,mn=f.pageSizeOptions,ln=this.state,$t=ln.current,En=ln.pageSize,vn=ln.currentInputValue;if(Ne===!0&&Be<=En)return null;var sn=ce(void 0,this.state,this.props),yn=[],xn=null,An=null,ir=null,br=null,Vn=null,ur=Y&&Y.goButton,Zn=se?1:2,mr=$t-1>0?$t-1:0,Or=$t+1Be?Be:$t*En]));if(_e){ur&&(typeof ur=="boolean"?Vn=l.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},d.jump_to_confirm):Vn=l.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ur),Vn=l.createElement("li",{title:xe?"".concat(d.jump_to).concat($t,"/").concat(sn):null,className:"".concat(Q,"-simple-pager")},Vn));var Dr=this.renderPrev(mr);return l.createElement("ul",(0,t.Z)({className:M()(Q,"".concat(Q,"-simple"),(0,B.Z)({},"".concat(Q,"-disabled"),Se),Re),style:Pe,ref:this.paginationNode},Ir),hr,Dr?l.createElement("li",{title:xe?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:M()("".concat(Q,"-prev"),(0,B.Z)({},"".concat(Q,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Dr):null,l.createElement("li",{title:xe?"".concat($t,"/").concat(sn):null,className:"".concat(Q,"-simple-pager")},l.createElement("input",{type:"text",value:vn,disabled:Se,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),l.createElement("span",{className:"".concat(Q,"-slash")},"/"),sn),l.createElement("li",{title:xe?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:M()("".concat(Q,"-next"),(0,B.Z)({},"".concat(Q,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Or)),Vn)}if(sn<=3+Zn*2){var Ur={locale:d,rootPrefixCls:Q,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:xe,itemRender:He};sn||yn.push(l.createElement(te,(0,t.Z)({},Ur,{key:"noPager",page:1,className:"".concat(Q,"-item-disabled")})));for(var Zr=1;Zr<=sn;Zr+=1){var so=$t===Zr;yn.push(l.createElement(te,(0,t.Z)({},Ur,{key:Zr,page:Zr,active:so})))}}else{var Jr=se?d.prev_3:d.prev_5,Qe=se?d.next_3:d.next_5,pe=He(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(ct,"prev page")),lt=He(this.getJumpNextPage(),"jump-next",this.getItemIcon(Bt,"next page"));Je&&(xn=pe?l.createElement("li",{title:xe?Jr:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:M()("".concat(Q,"-jump-prev"),(0,B.Z)({},"".concat(Q,"-jump-prev-custom-icon"),!!ct))},pe):null,An=lt?l.createElement("li",{title:xe?Qe:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:M()("".concat(Q,"-jump-next"),(0,B.Z)({},"".concat(Q,"-jump-next-custom-icon"),!!Bt))},lt):null),br=l.createElement(te,{locale:d,last:!0,rootPrefixCls:Q,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:sn,page:sn,active:!1,showTitle:xe,itemRender:He}),ir=l.createElement(te,{locale:d,rootPrefixCls:Q,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:xe,itemRender:He});var Pt=Math.max(1,$t-Zn),Nt=Math.min($t+Zn,sn);$t-1<=Zn&&(Nt=1+Zn*2),sn-$t<=Zn&&(Pt=sn-Zn*2);for(var Lt=Pt;Lt<=Nt;Lt+=1){var Ut=$t===Lt;yn.push(l.createElement(te,{locale:d,rootPrefixCls:Q,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Lt,page:Lt,active:Ut,showTitle:xe,itemRender:He}))}$t-1>=Zn*2&&$t!==3&&(yn[0]=(0,l.cloneElement)(yn[0],{className:"".concat(Q,"-item-after-jump-prev")}),yn.unshift(xn)),sn-$t>=Zn*2&&$t!==sn-2&&(yn[yn.length-1]=(0,l.cloneElement)(yn[yn.length-1],{className:"".concat(Q,"-item-before-jump-next")}),yn.push(An)),Pt!==1&&yn.unshift(ir),Nt!==sn&&yn.push(br)}var kt=!this.hasPrev()||!sn,j=!this.hasNext()||!sn,ue=this.renderPrev(mr),ye=this.renderNext(Or);return l.createElement("ul",(0,t.Z)({className:M()(Q,Re,(0,B.Z)({},"".concat(Q,"-disabled"),Se)),style:Pe,ref:this.paginationNode},Ir),hr,ue?l.createElement("li",{title:xe?d.prev_page:null,onClick:this.prev,tabIndex:kt?null:0,onKeyPress:this.runIfEnterPrev,className:M()("".concat(Q,"-prev"),(0,B.Z)({},"".concat(Q,"-disabled"),kt)),"aria-disabled":kt},ue):null,yn,ye?l.createElement("li",{title:xe?d.next_page:null,onClick:this.next,tabIndex:j?null:0,onKeyPress:this.runIfEnterNext,className:M()("".concat(Q,"-next"),(0,B.Z)({},"".concat(Q,"-disabled"),j)),"aria-disabled":j},ye):null,l.createElement(S,{disabled:Se,locale:d,rootPrefixCls:Q,selectComponentClass:wt,selectPrefixCls:Dt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:$t,pageSize:En,pageSizeOptions:mn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ur}))}}],[{key:"getDerivedStateFromProps",value:function(f,Q){var Re={};if("current"in f&&(Re.current=f.current,f.current!==Q.current&&(Re.currentInputValue=Re.current)),"pageSize"in f&&f.pageSize!==Q.pageSize){var Pe=Q.current,Se=ce(f.pageSize,Q,f);Pe=Pe>Se?Se:Pe,"current"in f||(Re.current=Pe,Re.currentInputValue=Pe),Re.pageSize=f.pageSize}return Re}}]),X}(l.Component);q.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:z,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:z,locale:ae.Z,style:{},itemRender:b,totalBoundaryShowSizeChanger:50};var x=q,_=e(22075),V=e(36355),he=e(19716),Me=e(8628),Ie=e(9763),je=e(57809);const et=s=>l.createElement(je.default,Object.assign({},s,{showSearch:!0,size:"small"})),rt=s=>l.createElement(je.default,Object.assign({},s,{showSearch:!0,size:"middle"}));et.Option=je.default.Option,rt.Option=je.default.Option;var Ke=e(9937),Te=e(17313),tt=e(83116),mt=e(37613);const De=s=>{const{componentCls:i}=s;return{[`${i}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${i}-item-link`]:{color:s.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${i}-item-link`]:{color:s.colorTextDisabled,cursor:"not-allowed"}}},[`&${i}-disabled`]:{cursor:"not-allowed",[`${i}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:s.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:s.colorBorder,backgroundColor:s.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:s.itemActiveBgDisabled},a:{color:s.itemActiveColorDisabled}}},[`${i}-item-link`]:{color:s.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${i}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${i}-simple-pager`]:{color:s.colorTextDisabled},[`${i}-jump-prev, ${i}-jump-next`]:{[`${i}-item-link-icon`]:{opacity:0},[`${i}-item-ellipsis`]:{opacity:1}}},[`&${i}-simple`]:{[`${i}-prev, ${i}-next`]:{[`&${i}-disabled ${i}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ut=s=>{const{componentCls:i}=s;return{[`&${i}-mini ${i}-total-text, &${i}-mini ${i}-simple-pager`]:{height:s.itemSizeSM,lineHeight:`${s.itemSizeSM}px`},[`&${i}-mini ${i}-item`]:{minWidth:s.itemSizeSM,height:s.itemSizeSM,margin:0,lineHeight:`${s.itemSizeSM-2}px`},[`&${i}-mini:not(${i}-disabled) ${i}-item:not(${i}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:s.colorBgTextHover},"&:active":{backgroundColor:s.colorBgTextActive}},[`&${i}-mini ${i}-prev, &${i}-mini ${i}-next`]:{minWidth:s.itemSizeSM,height:s.itemSizeSM,margin:0,lineHeight:`${s.itemSizeSM}px`},[`&${i}-mini:not(${i}-disabled)`]:{[`${i}-prev, ${i}-next`]:{[`&:hover ${i}-item-link`]:{backgroundColor:s.colorBgTextHover},[`&:active ${i}-item-link`]:{backgroundColor:s.colorBgTextActive},[`&${i}-disabled:hover ${i}-item-link`]:{backgroundColor:"transparent"}}},[` - &${i}-mini ${i}-prev ${i}-item-link, - &${i}-mini ${i}-next ${i}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:s.itemSizeSM,lineHeight:`${s.itemSizeSM}px`}},[`&${i}-mini ${i}-jump-prev, &${i}-mini ${i}-jump-next`]:{height:s.itemSizeSM,marginInlineEnd:0,lineHeight:`${s.itemSizeSM}px`},[`&${i}-mini ${i}-options`]:{marginInlineStart:s.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:s.miniOptionsSizeChangerTop},"&-quick-jumper":{height:s.itemSizeSM,lineHeight:`${s.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Ke.x0)(s)),{width:s.paginationMiniQuickJumperInputWidth,height:s.controlHeightSM})}}}},St=s=>{const{componentCls:i}=s;return{[` - &${i}-simple ${i}-prev, - &${i}-simple ${i}-next - `]:{height:s.itemSizeSM,lineHeight:`${s.itemSizeSM}px`,verticalAlign:"top",[`${i}-item-link`]:{height:s.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:s.colorBgTextHover},"&:active":{backgroundColor:s.colorBgTextActive},"&::after":{height:s.itemSizeSM,lineHeight:`${s.itemSizeSM}px`}}},[`&${i}-simple ${i}-simple-pager`]:{display:"inline-block",height:s.itemSizeSM,marginInlineEnd:s.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:s.marginXS,padding:`0 ${s.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:s.itemInputBg,border:`${s.lineWidth}px ${s.lineType} ${s.colorBorder}`,borderRadius:s.borderRadius,outline:"none",transition:`border-color ${s.motionDurationMid}`,color:"inherit","&:hover":{borderColor:s.colorPrimary},"&:focus":{borderColor:s.colorPrimaryHover,boxShadow:`${s.inputOutlineOffset}px 0 ${s.controlOutlineWidth}px ${s.controlOutline}`},"&[disabled]":{color:s.colorTextDisabled,backgroundColor:s.colorBgContainerDisabled,borderColor:s.colorBorder,cursor:"not-allowed"}}}}},$e=s=>{const{componentCls:i}=s;return{[`${i}-jump-prev, ${i}-jump-next`]:{outline:0,[`${i}-item-container`]:{position:"relative",[`${i}-item-link-icon`]:{color:s.colorPrimary,fontSize:s.fontSizeSM,opacity:0,transition:`all ${s.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${i}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:s.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:s.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:s.paginationEllipsisTextIndent,opacity:1,transition:`all ${s.motionDurationMid}`}},"&:hover":{[`${i}-item-link-icon`]:{opacity:1},[`${i}-item-ellipsis`]:{opacity:0}}},[` - ${i}-prev, - ${i}-jump-prev, - ${i}-jump-next - `]:{marginInlineEnd:s.marginXS},[` - ${i}-prev, - ${i}-next, - ${i}-jump-prev, - ${i}-jump-next - `]:{display:"inline-block",minWidth:s.itemSize,height:s.itemSize,color:s.colorText,fontFamily:s.fontFamily,lineHeight:`${s.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:s.borderRadius,cursor:"pointer",transition:`all ${s.motionDurationMid}`},[`${i}-prev, ${i}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:s.colorText,cursor:"pointer",userSelect:"none"},[`${i}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:s.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${s.lineWidth}px ${s.lineType} transparent`,borderRadius:s.borderRadius,outline:"none",transition:`all ${s.motionDurationMid}`},[`&:hover ${i}-item-link`]:{backgroundColor:s.colorBgTextHover},[`&:active ${i}-item-link`]:{backgroundColor:s.colorBgTextActive},[`&${i}-disabled:hover`]:{[`${i}-item-link`]:{backgroundColor:"transparent"}}},[`${i}-slash`]:{marginInlineEnd:s.paginationSlashMarginInlineEnd,marginInlineStart:s.paginationSlashMarginInlineStart},[`${i}-options`]:{display:"inline-block",marginInlineStart:s.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:s.controlHeight,marginInlineStart:s.marginXS,lineHeight:`${s.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Ke.ik)(s)),{width:s.controlHeightLG*1.25,height:s.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:s.marginXS,marginInlineEnd:s.marginXS})}}}},ve=s=>{const{componentCls:i}=s;return{[`${i}-item`]:{display:"inline-block",minWidth:s.itemSize,height:s.itemSize,marginInlineEnd:s.marginXS,fontFamily:s.fontFamily,lineHeight:`${s.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${s.lineWidth}px ${s.lineType} transparent`,borderRadius:s.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${s.paginationItemPaddingInline}px`,color:s.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${i}-item-active)`]:{"&:hover":{transition:`all ${s.motionDurationMid}`,backgroundColor:s.colorBgTextHover},"&:active":{backgroundColor:s.colorBgTextActive}},"&-active":{fontWeight:s.fontWeightStrong,backgroundColor:s.itemActiveBg,borderColor:s.colorPrimary,a:{color:s.colorPrimary},"&:hover":{borderColor:s.colorPrimaryHover},"&:hover a":{color:s.colorPrimaryHover}}}}},at=s=>{const{componentCls:i}=s;return{[i]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Te.Wf)(s)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${i}-total-text`]:{display:"inline-block",height:s.itemSize,marginInlineEnd:s.marginXS,lineHeight:`${s.itemSize-2}px`,verticalAlign:"middle"}}),ve(s)),$e(s)),St(s)),ut(s)),De(s)),{[`@media only screen and (max-width: ${s.screenLG}px)`]:{[`${i}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${s.screenSM}px)`]:{[`${i}-options`]:{display:"none"}}}),[`&${s.componentCls}-rtl`]:{direction:"rtl"}}},Ee=s=>{const{componentCls:i}=s;return{[`${i}${i}-disabled:not(${i}-mini)`]:{"&, &:hover":{[`${i}-item-link`]:{borderColor:s.colorBorder}},"&:focus-visible":{[`${i}-item-link`]:{borderColor:s.colorBorder}},[`${i}-item, ${i}-item-link`]:{backgroundColor:s.colorBgContainerDisabled,borderColor:s.colorBorder,[`&:hover:not(${i}-item-active)`]:{backgroundColor:s.colorBgContainerDisabled,borderColor:s.colorBorder,a:{color:s.colorTextDisabled}},[`&${i}-item-active`]:{backgroundColor:s.itemActiveBgDisabled}},[`${i}-prev, ${i}-next`]:{"&:hover button":{backgroundColor:s.colorBgContainerDisabled,borderColor:s.colorBorder,color:s.colorTextDisabled},[`${i}-item-link`]:{backgroundColor:s.colorBgContainerDisabled,borderColor:s.colorBorder}}},[`${i}:not(${i}-mini)`]:{[`${i}-prev, ${i}-next`]:{"&:hover button":{borderColor:s.colorPrimaryHover,backgroundColor:s.itemBg},[`${i}-item-link`]:{backgroundColor:s.itemLinkBg,borderColor:s.colorBorder},[`&:hover ${i}-item-link`]:{borderColor:s.colorPrimary,backgroundColor:s.itemBg,color:s.colorPrimary},[`&${i}-disabled`]:{[`${i}-item-link`]:{borderColor:s.colorBorder,color:s.colorTextDisabled}}},[`${i}-item`]:{backgroundColor:s.itemBg,border:`${s.lineWidth}px ${s.lineType} ${s.colorBorder}`,[`&:hover:not(${i}-item-active)`]:{borderColor:s.colorPrimary,backgroundColor:s.itemBg,a:{color:s.colorPrimary}},"&-active":{borderColor:s.colorPrimary}}}}},Z=s=>{const{componentCls:i}=s;return{[`${i}:not(${i}-disabled)`]:{[`${i}-item`]:Object.assign({},(0,Te.Qy)(s)),[`${i}-jump-prev, ${i}-jump-next`]:{"&:focus-visible":Object.assign({[`${i}-item-link-icon`]:{opacity:1},[`${i}-item-ellipsis`]:{opacity:0}},(0,Te.oN)(s))},[`${i}-prev, ${i}-next`]:{[`&:focus-visible ${i}-item-link`]:Object.assign({},(0,Te.oN)(s))}}}};var K=(0,tt.Z)("Pagination",s=>{const i=(0,mt.TS)(s,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:s.marginXXS/2,paginationMiniQuickJumperInputWidth:s.controlHeightLG*1.1,paginationItemPaddingInline:s.marginXXS*1.5,paginationEllipsisLetterSpacing:s.marginXXS/2,paginationSlashMarginInlineStart:s.marginXXS,paginationSlashMarginInlineEnd:s.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ke.e5)(s),(0,Ke.TM)(s));return[at(i),Z(i),s.wireframe&&Ee(i)]},s=>({itemBg:s.colorBgContainer,itemSize:s.controlHeight,itemSizeSM:s.controlHeightSM,itemActiveBg:s.colorBgContainer,itemLinkBg:s.colorBgContainer,itemActiveColorDisabled:s.colorTextDisabled,itemActiveBgDisabled:s.controlItemBgActiveDisabled,itemInputBg:s.colorBgContainer,miniOptionsSizeChangerTop:0})),m=function(s,i){var X={};for(var $ in s)Object.prototype.hasOwnProperty.call(s,$)&&i.indexOf($)<0&&(X[$]=s[$]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,$=Object.getOwnPropertySymbols(s);f<$.length;f++)i.indexOf($[f])<0&&Object.prototype.propertyIsEnumerable.call(s,$[f])&&(X[$[f]]=s[$[f]]);return X},R=s=>{const{prefixCls:i,selectPrefixCls:X,className:$,rootClassName:f,style:Q,size:Re,locale:Pe,selectComponentClass:Se,responsive:Ne,showSizeChanger:Be}=s,d=m(s,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Y}=(0,Me.Z)(Ne),{getPrefixCls:se,direction:xe,pagination:Fe={}}=l.useContext(V.E_),_e=se("pagination",i),[He,Je]=K(_e),ct=Be!=null?Be:Fe.showSizeChanger,Bt=l.useMemo(()=>{const sn=l.createElement("span",{className:`${_e}-item-ellipsis`},"\u2022\u2022\u2022"),yn=l.createElement("button",{className:`${_e}-item-link`,type:"button",tabIndex:-1},xe==="rtl"?l.createElement(D.Z,null):l.createElement(w.Z,null)),xn=l.createElement("button",{className:`${_e}-item-link`,type:"button",tabIndex:-1},xe==="rtl"?l.createElement(w.Z,null):l.createElement(D.Z,null)),An=l.createElement("a",{className:`${_e}-item-link`},l.createElement("div",{className:`${_e}-item-container`},xe==="rtl"?l.createElement(W.Z,{className:`${_e}-item-link-icon`}):l.createElement(F,{className:`${_e}-item-link-icon`}),sn)),ir=l.createElement("a",{className:`${_e}-item-link`},l.createElement("div",{className:`${_e}-item-container`},xe==="rtl"?l.createElement(F,{className:`${_e}-item-link-icon`}):l.createElement(W.Z,{className:`${_e}-item-link-icon`}),sn));return{prevIcon:yn,nextIcon:xn,jumpPrevIcon:An,jumpNextIcon:ir}},[xe,_e]),[wt]=(0,Ie.Z)("Pagination",_.Z),Dt=Object.assign(Object.assign({},wt),Pe),mn=(0,he.Z)(Re),ln=mn==="small"||!!(Y&&!mn&&Ne),$t=se("select",X),En=M()({[`${_e}-mini`]:ln,[`${_e}-rtl`]:xe==="rtl"},Fe==null?void 0:Fe.className,$,f,Je),vn=Object.assign(Object.assign({},Fe==null?void 0:Fe.style),Q);return He(l.createElement(x,Object.assign({},Bt,d,{style:vn,prefixCls:_e,selectPrefixCls:$t,className:En,selectComponentClass:Se||(ln?et:rt),locale:Dt,showSizeChanger:ct})))},fe=R},93948:function(ht,le,e){"use strict";e.d(le,{Z:function(){return Be}});var t=e(59301),l=e(29679),P=e(40001),L=e(19248),T=e(99267),p=e(92310),n=e.n(p),F=e(2738),W=e(36355),w=e(54476),D=e(33885),g=e(75931),M={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},B=function(){var Y=(0,t.useRef)([]),se=(0,t.useRef)(null);return(0,t.useEffect)(function(){var xe=Date.now(),Fe=!1;Y.current.forEach(function(_e){if(_e){Fe=!0;var He=_e.style;He.transitionDuration=".3s, .3s, .3s, .06s",se.current&&xe-se.current<100&&(He.transitionDuration="0s, 0s")}}),Fe&&(se.current=Date.now())}),Y.current},I=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],E=function(Y){var se=(0,D.Z)((0,D.Z)({},M),Y),xe=se.className,Fe=se.percent,_e=se.prefixCls,He=se.strokeColor,Je=se.strokeLinecap,ct=se.strokeWidth,Bt=se.style,wt=se.trailColor,Dt=se.trailWidth,mn=se.transition,ln=(0,g.Z)(se,I);delete ln.gapPosition;var $t=Array.isArray(Fe)?Fe:[Fe],En=Array.isArray(He)?He:[He],vn=B(),sn=ct/2,yn=100-ct/2,xn="M ".concat(Je==="round"?sn:0,",").concat(sn,` - L `).concat(Je==="round"?yn:100,",").concat(sn),An="0 0 100 ".concat(ct),ir=0;return t.createElement("svg",(0,w.Z)({className:n()("".concat(_e,"-line"),xe),viewBox:An,preserveAspectRatio:"none",style:Bt},ln),t.createElement("path",{className:"".concat(_e,"-line-trail"),d:xn,strokeLinecap:Je,stroke:wt,strokeWidth:Dt||ct,fillOpacity:"0"}),$t.map(function(br,Vn){var ur=1;switch(Je){case"round":ur=1-ct/100;break;case"square":ur=1-ct/2/100;break;default:ur=1;break}var Zn={strokeDasharray:"".concat(br*ur,"px, 100px"),strokeDashoffset:"-".concat(ir,"px"),transition:mn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},mr=En[Vn]||En[En.length-1];return ir+=br,t.createElement("path",{key:Vn,className:"".concat(_e,"-line-path"),d:xn,strokeLinecap:Je,stroke:mr,strokeWidth:ct,fillOpacity:"0",ref:function(Ir){vn[Vn]=Ir},style:Zn})}))},ne=E,k=e(76190),de=e(42978),ie=e(47273),H=0,A=(0,ie.Z)();function ae(){var d;return A?(d=H,H+=1):d="TEST_OR_SSR",d}var C=function(d){var Y=t.useState(),se=(0,de.Z)(Y,2),xe=se[0],Fe=se[1];return t.useEffect(function(){Fe("rc_progress_".concat(ae()))},[]),d||xe},S=function(Y){var se=Y.bg,xe=Y.children;return t.createElement("div",{style:{width:"100%",height:"100%",background:se}},xe)};function J(d,Y){return Object.keys(d).map(function(se){var xe=parseFloat(se),Fe="".concat(Math.floor(xe*Y),"%");return"".concat(d[se]," ").concat(Fe)})}var te=t.forwardRef(function(d,Y){var se=d.prefixCls,xe=d.color,Fe=d.gradientId,_e=d.radius,He=d.style,Je=d.ptg,ct=d.strokeLinecap,Bt=d.strokeWidth,wt=d.size,Dt=d.gapDegree,mn=xe&&(0,k.Z)(xe)==="object",ln=mn?"#FFF":void 0,$t=wt/2,En=t.createElement("circle",{className:"".concat(se,"-circle-path"),r:_e,cx:$t,cy:$t,stroke:ln,strokeLinecap:ct,strokeWidth:Bt,opacity:Je===0?0:1,style:He,ref:Y});if(!mn)return En;var vn="".concat(Fe,"-conic"),sn=Dt?"".concat(180+Dt/2,"deg"):"0deg",yn=J(xe,(360-Dt)/360),xn=J(xe,1),An="conic-gradient(from ".concat(sn,", ").concat(yn.join(", "),")"),ir="linear-gradient(to ".concat(Dt?"bottom":"top",", ").concat(xn.join(", "),")");return t.createElement(t.Fragment,null,t.createElement("mask",{id:vn},En),t.createElement("foreignObject",{x:0,y:0,width:wt,height:wt,mask:"url(#".concat(vn,")")},t.createElement(S,{bg:ir},t.createElement(S,{bg:An}))))}),z=te,v=100,b=function(Y,se,xe,Fe,_e,He,Je,ct,Bt,wt){var Dt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,mn=xe/100*360*((360-He)/360),ln=He===0?0:{bottom:0,top:180,left:90,right:-90}[Je],$t=(100-Fe)/100*se;Bt==="round"&&Fe!==100&&($t+=wt/2,$t>=se&&($t=se-.01));var En=v/2;return{stroke:typeof ct=="string"?ct:void 0,strokeDasharray:"".concat(se,"px ").concat(Y),strokeDashoffset:$t+Dt,transform:"rotate(".concat(_e+mn+ln,"deg)"),transformOrigin:"".concat(En,"px ").concat(En,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},ce=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function q(d){var Y=d!=null?d:[];return Array.isArray(Y)?Y:[Y]}var x=function(Y){var se=(0,D.Z)((0,D.Z)({},M),Y),xe=se.id,Fe=se.prefixCls,_e=se.steps,He=se.strokeWidth,Je=se.trailWidth,ct=se.gapDegree,Bt=ct===void 0?0:ct,wt=se.gapPosition,Dt=se.trailColor,mn=se.strokeLinecap,ln=se.style,$t=se.className,En=se.strokeColor,vn=se.percent,sn=(0,g.Z)(se,ce),yn=v/2,xn=C(xe),An="".concat(xn,"-gradient"),ir=yn-He/2,br=Math.PI*2*ir,Vn=Bt>0?90+Bt/2:-90,ur=br*((360-Bt)/360),Zn=(0,k.Z)(_e)==="object"?_e:{count:_e,space:2},mr=Zn.count,Or=Zn.space,Ir=q(vn),hr=q(En),Dr=hr.find(function(lt){return lt&&(0,k.Z)(lt)==="object"}),Ur=Dr&&(0,k.Z)(Dr)==="object",Zr=Ur?"butt":mn,so=b(br,ur,0,100,Vn,Bt,wt,Dt,Zr,He),Jr=B(),Qe=function(){var Pt=0;return Ir.map(function(Nt,Lt){var Ut=hr[Lt]||hr[hr.length-1],kt=b(br,ur,Pt,Nt,Vn,Bt,wt,Ut,Zr,He);return Pt+=Nt,t.createElement(z,{key:Lt,color:Ut,ptg:Nt,radius:ir,prefixCls:Fe,gradientId:An,style:kt,strokeLinecap:Zr,strokeWidth:He,gapDegree:Bt,ref:function(ue){Jr[Lt]=ue},size:v})}).reverse()},pe=function(){var Pt=Math.round(mr*(Ir[0]/100)),Nt=100/mr,Lt=0;return new Array(mr).fill(null).map(function(Ut,kt){var j=kt<=Pt-1?hr[0]:Dt,ue=j&&(0,k.Z)(j)==="object"?"url(#".concat(An,")"):void 0,ye=b(br,ur,Lt,Nt,Vn,Bt,wt,j,"butt",He,Or);return Lt+=(ur-ye.strokeDashoffset+Or)*100/ur,t.createElement("circle",{key:kt,className:"".concat(Fe,"-circle-path"),r:ir,cx:yn,cy:yn,stroke:ue,strokeWidth:He,opacity:1,style:ye,ref:function(Ze){Jr[kt]=Ze}})})};return t.createElement("svg",(0,w.Z)({className:n()("".concat(Fe,"-circle"),$t),viewBox:"0 0 ".concat(v," ").concat(v),style:ln,id:xe,role:"presentation"},sn),!mr&&t.createElement("circle",{className:"".concat(Fe,"-circle-trail"),r:ir,cx:yn,cy:yn,stroke:Dt,strokeLinecap:Zr,strokeWidth:Je||He,style:so}),mr?pe():Qe())},_=x,V={Line:ne,Circle:_},he=e(6848),Me=e(30071);function Ie(d){return!d||d<0?0:d>100?100:d}function je(d){let{success:Y,successPercent:se}=d,xe=se;return Y&&"progress"in Y&&(xe=Y.progress),Y&&"percent"in Y&&(xe=Y.percent),xe}const et=d=>{let{percent:Y,success:se,successPercent:xe}=d;const Fe=Ie(je({success:se,successPercent:xe}));return[Fe,Ie(Ie(Y)-Fe)]},rt=d=>{let{success:Y={},strokeColor:se}=d;const{strokeColor:xe}=Y;return[xe||Me.presetPrimaryColors.green,se||null]},Ke=(d,Y,se)=>{var xe,Fe,_e,He;let Je=-1,ct=-1;if(Y==="step"){const Bt=se.steps,wt=se.strokeWidth;typeof d=="string"||typeof d=="undefined"?(Je=d==="small"?2:14,ct=wt!=null?wt:8):typeof d=="number"?[Je,ct]=[d,d]:[Je=14,ct=8]=d,Je*=Bt}else if(Y==="line"){const Bt=se==null?void 0:se.strokeWidth;typeof d=="string"||typeof d=="undefined"?ct=Bt||(d==="small"?6:8):typeof d=="number"?[Je,ct]=[d,d]:[Je=-1,ct=8]=d}else(Y==="circle"||Y==="dashboard")&&(typeof d=="string"||typeof d=="undefined"?[Je,ct]=d==="small"?[60,60]:[120,120]:typeof d=="number"?[Je,ct]=[d,d]:(Je=(Fe=(xe=d[0])!==null&&xe!==void 0?xe:d[1])!==null&&Fe!==void 0?Fe:120,ct=(He=(_e=d[0])!==null&&_e!==void 0?_e:d[1])!==null&&He!==void 0?He:120));return[Je,ct]},Te=3,tt=d=>Te/d*100;var De=d=>{const{prefixCls:Y,trailColor:se=null,strokeLinecap:xe="round",gapPosition:Fe,gapDegree:_e,width:He=120,type:Je,children:ct,success:Bt,size:wt=He}=d,[Dt,mn]=Ke(wt,"circle");let{strokeWidth:ln}=d;ln===void 0&&(ln=Math.max(tt(Dt),6));const $t={width:Dt,height:mn,fontSize:Dt*.15+6},En=t.useMemo(()=>{if(_e||_e===0)return _e;if(Je==="dashboard")return 75},[_e,Je]),vn=Fe||Je==="dashboard"&&"bottom"||void 0,sn=Object.prototype.toString.call(d.strokeColor)==="[object Object]",yn=rt({success:Bt,strokeColor:d.strokeColor}),xn=n()(`${Y}-inner`,{[`${Y}-circle-gradient`]:sn}),An=t.createElement(_,{percent:et(d),strokeWidth:ln,trailWidth:ln,strokeColor:yn,strokeLinecap:xe,trailColor:se,prefixCls:Y,gapDegree:En,gapPosition:vn});return t.createElement("div",{className:xn,style:$t},Dt<=20?t.createElement(he.Z,{title:ct},t.createElement("span",null,An)):t.createElement(t.Fragment,null,An,ct))},ut=function(d,Y){var se={};for(var xe in d)Object.prototype.hasOwnProperty.call(d,xe)&&Y.indexOf(xe)<0&&(se[xe]=d[xe]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,xe=Object.getOwnPropertySymbols(d);Fe{let Y=[];return Object.keys(d).forEach(se=>{const xe=parseFloat(se.replace(/%/g,""));isNaN(xe)||Y.push({key:xe,value:d[se]})}),Y=Y.sort((se,xe)=>se.key-xe.key),Y.map(se=>{let{key:xe,value:Fe}=se;return`${Fe} ${xe}%`}).join(", ")},$e=(d,Y)=>{const{from:se=Me.presetPrimaryColors.blue,to:xe=Me.presetPrimaryColors.blue,direction:Fe=Y==="rtl"?"to left":"to right"}=d,_e=ut(d,["from","to","direction"]);if(Object.keys(_e).length!==0){const He=St(_e);return{backgroundImage:`linear-gradient(${Fe}, ${He})`}}return{backgroundImage:`linear-gradient(${Fe}, ${se}, ${xe})`}};var at=d=>{const{prefixCls:Y,direction:se,percent:xe,size:Fe,strokeWidth:_e,strokeColor:He,strokeLinecap:Je="round",children:ct,trailColor:Bt=null,success:wt}=d,Dt=He&&typeof He!="string"?$e(He,se):{backgroundColor:He},mn=Je==="square"||Je==="butt"?0:void 0,ln={backgroundColor:Bt||void 0,borderRadius:mn},$t=Fe!=null?Fe:[-1,_e||(Fe==="small"?6:8)],[En,vn]=Ke($t,"line",{strokeWidth:_e}),sn=Object.assign({width:`${Ie(xe)}%`,height:vn,borderRadius:mn},Dt),yn=je(d),xn={width:`${Ie(yn)}%`,height:vn,borderRadius:mn,backgroundColor:wt==null?void 0:wt.strokeColor},An={width:En<0?"100%":En,height:vn};return t.createElement(t.Fragment,null,t.createElement("div",{className:`${Y}-outer`,style:An},t.createElement("div",{className:`${Y}-inner`,style:ln},t.createElement("div",{className:`${Y}-bg`,style:sn}),yn!==void 0?t.createElement("div",{className:`${Y}-success-bg`,style:xn}):null)),ct)},Z=d=>{const{size:Y,steps:se,percent:xe=0,strokeWidth:Fe=8,strokeColor:_e,trailColor:He=null,prefixCls:Je,children:ct}=d,Bt=Math.round(se*(xe/100)),wt=Y==="small"?2:14,Dt=Y!=null?Y:[wt,Fe],[mn,ln]=Ke(Dt,"step",{steps:se,strokeWidth:Fe}),$t=mn/se,En=new Array(se);for(let vn=0;vn{const Y=d?"100%":"-100%";return new K.Keyframes(`antProgress${d?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Y}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Y}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},s=d=>{const{componentCls:Y,iconCls:se}=d;return{[Y]:Object.assign(Object.assign({},(0,m.Wf)(d)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:d.fontSize,marginInlineEnd:d.marginXS,marginBottom:d.marginXS},[`${Y}-outer`]:{display:"inline-block",width:"100%"},[`&${Y}-show-info`]:{[`${Y}-outer`]:{marginInlineEnd:`calc(-2em - ${d.marginXS}px)`,paddingInlineEnd:`calc(2em + ${d.paddingXS}px)`}},[`${Y}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:d.remainingColor,borderRadius:d.lineBorderRadius},[`${Y}-inner:not(${Y}-circle-gradient)`]:{[`${Y}-circle-path`]:{stroke:d.defaultColor}},[`${Y}-success-bg, ${Y}-bg`]:{position:"relative",backgroundColor:d.defaultColor,borderRadius:d.lineBorderRadius,transition:`all ${d.motionDurationSlow} ${d.motionEaseInOutCirc}`},[`${Y}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:d.colorSuccess},[`${Y}-text`]:{display:"inline-block",width:"2em",marginInlineStart:d.marginXS,color:d.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[se]:{fontSize:d.fontSize}},[`&${Y}-status-active`]:{[`${Y}-bg::before`]:{position:"absolute",inset:0,backgroundColor:d.colorBgContainer,borderRadius:d.lineBorderRadius,opacity:0,animationName:fe(),animationDuration:d.progressActiveMotionDuration,animationTimingFunction:d.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Y}-rtl${Y}-status-active`]:{[`${Y}-bg::before`]:{animationName:fe(!0)}},[`&${Y}-status-exception`]:{[`${Y}-bg`]:{backgroundColor:d.colorError},[`${Y}-text`]:{color:d.colorError}},[`&${Y}-status-exception ${Y}-inner:not(${Y}-circle-gradient)`]:{[`${Y}-circle-path`]:{stroke:d.colorError}},[`&${Y}-status-success`]:{[`${Y}-bg`]:{backgroundColor:d.colorSuccess},[`${Y}-text`]:{color:d.colorSuccess}},[`&${Y}-status-success ${Y}-inner:not(${Y}-circle-gradient)`]:{[`${Y}-circle-path`]:{stroke:d.colorSuccess}}})}},i=d=>{const{componentCls:Y,iconCls:se}=d;return{[Y]:{[`${Y}-circle-trail`]:{stroke:d.remainingColor},[`&${Y}-circle ${Y}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Y}-circle ${Y}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:d.circleTextColor,fontSize:d.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[se]:{fontSize:`${d.fontSize/d.fontSizeSM}em`}},[`${Y}-circle&-status-exception`]:{[`${Y}-text`]:{color:d.colorError}},[`${Y}-circle&-status-success`]:{[`${Y}-text`]:{color:d.colorSuccess}}},[`${Y}-inline-circle`]:{lineHeight:1,[`${Y}-inner`]:{verticalAlign:"bottom"}}}},X=d=>{const{componentCls:Y}=d;return{[Y]:{[`${Y}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:d.progressStepMinWidth,marginInlineEnd:d.progressStepMarginInlineEnd,backgroundColor:d.remainingColor,transition:`all ${d.motionDurationSlow}`,"&-active":{backgroundColor:d.defaultColor}}}}}},$=d=>{const{componentCls:Y,iconCls:se}=d;return{[Y]:{[`${Y}-small&-line, ${Y}-small&-line ${Y}-text ${se}`]:{fontSize:d.fontSizeSM}}}};var f=(0,a.Z)("Progress",d=>{const Y=d.marginXXS/2,se=(0,R.TS)(d,{progressStepMarginInlineEnd:Y,progressStepMinWidth:Y,progressActiveMotionDuration:"2.4s"});return[s(se),i(se),X(se),$(se)]},d=>({circleTextColor:d.colorText,defaultColor:d.colorInfo,remainingColor:d.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Q=function(d,Y){var se={};for(var xe in d)Object.prototype.hasOwnProperty.call(d,xe)&&Y.indexOf(xe)<0&&(se[xe]=d[xe]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,xe=Object.getOwnPropertySymbols(d);Fe{const{prefixCls:se,className:xe,rootClassName:Fe,steps:_e,strokeColor:He,percent:Je=0,size:ct="default",showInfo:Bt=!0,type:wt="line",status:Dt,format:mn,style:ln}=d,$t=Q(d,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),En=t.useMemo(()=>{var Ir,hr;const Dr=je(d);return parseInt(Dr!==void 0?(Ir=Dr!=null?Dr:0)===null||Ir===void 0?void 0:Ir.toString():(hr=Je!=null?Je:0)===null||hr===void 0?void 0:hr.toString(),10)},[Je,d.success,d.successPercent]),vn=t.useMemo(()=>!Pe.includes(Dt)&&En>=100?"success":Dt||"normal",[Dt,En]),{getPrefixCls:sn,direction:yn,progress:xn}=t.useContext(W.E_),An=sn("progress",se),[ir,br]=f(An),Vn=t.useMemo(()=>{if(!Bt)return null;const Ir=je(d);let hr;const Dr=mn||(Zr=>`${Zr}%`),Ur=wt==="line";return mn||vn!=="exception"&&vn!=="success"?hr=Dr(Ie(Je),Ie(Ir)):vn==="exception"?hr=Ur?t.createElement(L.Z,null):t.createElement(T.Z,null):vn==="success"&&(hr=Ur?t.createElement(l.Z,null):t.createElement(P.Z,null)),t.createElement("span",{className:`${An}-text`,title:typeof hr=="string"?hr:void 0},hr)},[Bt,Je,En,vn,wt,An,mn]),ur=Array.isArray(He)?He[0]:He,Zn=typeof He=="string"||Array.isArray(He)?He:void 0;let mr;wt==="line"?mr=_e?t.createElement(Z,Object.assign({},d,{strokeColor:Zn,prefixCls:An,steps:_e}),Vn):t.createElement(at,Object.assign({},d,{strokeColor:ur,prefixCls:An,direction:yn}),Vn):(wt==="circle"||wt==="dashboard")&&(mr=t.createElement(De,Object.assign({},d,{strokeColor:ur,prefixCls:An,progressStatus:vn}),Vn));const Or=n()(An,`${An}-status-${vn}`,`${An}-${wt==="dashboard"&&"circle"||_e&&"steps"||wt}`,{[`${An}-inline-circle`]:wt==="circle"&&Ke(ct,"circle")[0]<=20,[`${An}-show-info`]:Bt,[`${An}-${ct}`]:typeof ct=="string",[`${An}-rtl`]:yn==="rtl"},xn==null?void 0:xn.className,xe,Fe,br);return ir(t.createElement("div",Object.assign({ref:Y,style:Object.assign(Object.assign({},xn==null?void 0:xn.style),ln),className:Or,role:"progressbar","aria-valuenow":En},(0,F.Z)($t,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),mr))}),Be=Ne},61621:function(ht,le,e){"use strict";e.d(le,{Z:function(){return K}});var t=e(92310),l=e.n(t),P=e(59301),L=e(36355),T=e(2738),n=m=>{const{prefixCls:a,className:R,style:fe,size:s,shape:i}=m,X=l()({[`${a}-lg`]:s==="large",[`${a}-sm`]:s==="small"}),$=l()({[`${a}-circle`]:i==="circle",[`${a}-square`]:i==="square",[`${a}-round`]:i==="round"}),f=P.useMemo(()=>typeof s=="number"?{width:s,height:s,lineHeight:`${s}px`}:{},[s]);return P.createElement("span",{className:l()(a,X,$,R),style:Object.assign(Object.assign({},f),fe)})},F=e(36237),W=e(83116),w=e(37613);const D=new F.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),g=m=>({height:m,lineHeight:`${m}px`}),M=m=>Object.assign({width:m},g(m)),B=m=>({background:m.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:D,animationDuration:m.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),I=m=>Object.assign({width:m*5,minWidth:m*5},g(m)),E=m=>{const{skeletonAvatarCls:a,gradientFromColor:R,controlHeight:fe,controlHeightLG:s,controlHeightSM:i}=m;return{[`${a}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:R},M(fe)),[`${a}${a}-circle`]:{borderRadius:"50%"},[`${a}${a}-lg`]:Object.assign({},M(s)),[`${a}${a}-sm`]:Object.assign({},M(i))}},ne=m=>{const{controlHeight:a,borderRadiusSM:R,skeletonInputCls:fe,controlHeightLG:s,controlHeightSM:i,gradientFromColor:X}=m;return{[`${fe}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:X,borderRadius:R},I(a)),[`${fe}-lg`]:Object.assign({},I(s)),[`${fe}-sm`]:Object.assign({},I(i))}},k=m=>Object.assign({width:m},g(m)),de=m=>{const{skeletonImageCls:a,imageSizeBase:R,gradientFromColor:fe,borderRadiusSM:s}=m;return{[`${a}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:fe,borderRadius:s},k(R*2)),{[`${a}-path`]:{fill:"#bfbfbf"},[`${a}-svg`]:Object.assign(Object.assign({},k(R)),{maxWidth:R*4,maxHeight:R*4}),[`${a}-svg${a}-svg-circle`]:{borderRadius:"50%"}}),[`${a}${a}-circle`]:{borderRadius:"50%"}}},ie=(m,a,R)=>{const{skeletonButtonCls:fe}=m;return{[`${R}${fe}-circle`]:{width:a,minWidth:a,borderRadius:"50%"},[`${R}${fe}-round`]:{borderRadius:a}}},H=m=>Object.assign({width:m*2,minWidth:m*2},g(m)),A=m=>{const{borderRadiusSM:a,skeletonButtonCls:R,controlHeight:fe,controlHeightLG:s,controlHeightSM:i,gradientFromColor:X}=m;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${R}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:X,borderRadius:a,width:fe*2,minWidth:fe*2},H(fe))},ie(m,fe,R)),{[`${R}-lg`]:Object.assign({},H(s))}),ie(m,s,`${R}-lg`)),{[`${R}-sm`]:Object.assign({},H(i))}),ie(m,i,`${R}-sm`))},ae=m=>{const{componentCls:a,skeletonAvatarCls:R,skeletonTitleCls:fe,skeletonParagraphCls:s,skeletonButtonCls:i,skeletonInputCls:X,skeletonImageCls:$,controlHeight:f,controlHeightLG:Q,controlHeightSM:Re,gradientFromColor:Pe,padding:Se,marginSM:Ne,borderRadius:Be,titleHeight:d,blockRadius:Y,paragraphLiHeight:se,controlHeightXS:xe,paragraphMarginTop:Fe}=m;return{[`${a}`]:{display:"table",width:"100%",[`${a}-header`]:{display:"table-cell",paddingInlineEnd:Se,verticalAlign:"top",[`${R}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Pe},M(f)),[`${R}-circle`]:{borderRadius:"50%"},[`${R}-lg`]:Object.assign({},M(Q)),[`${R}-sm`]:Object.assign({},M(Re))},[`${a}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${fe}`]:{width:"100%",height:d,background:Pe,borderRadius:Y,[`+ ${s}`]:{marginBlockStart:Re}},[`${s}`]:{padding:0,"> li":{width:"100%",height:se,listStyle:"none",background:Pe,borderRadius:Y,"+ li":{marginBlockStart:xe}}},[`${s}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${a}-content`]:{[`${fe}, ${s} > li`]:{borderRadius:Be}}},[`${a}-with-avatar ${a}-content`]:{[`${fe}`]:{marginBlockStart:Ne,[`+ ${s}`]:{marginBlockStart:Fe}}},[`${a}${a}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},A(m)),E(m)),ne(m)),de(m)),[`${a}${a}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${X}`]:{width:"100%"}},[`${a}${a}-active`]:{[` - ${fe}, - ${s} > li, - ${R}, - ${i}, - ${X}, - ${$} - `]:Object.assign({},B(m))}}};var C=(0,W.Z)("Skeleton",m=>{const{componentCls:a}=m,R=(0,w.TS)(m,{skeletonAvatarCls:`${a}-avatar`,skeletonTitleCls:`${a}-title`,skeletonParagraphCls:`${a}-paragraph`,skeletonButtonCls:`${a}-button`,skeletonInputCls:`${a}-input`,skeletonImageCls:`${a}-image`,imageSizeBase:m.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${m.gradientFromColor} 25%, ${m.gradientToColor} 37%, ${m.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[ae(R)]},m=>{const{colorFillContent:a,colorFill:R}=m,fe=a,s=R;return{color:fe,colorGradientEnd:s,gradientFromColor:fe,gradientToColor:s,titleHeight:m.controlHeight/2,blockRadius:m.borderRadiusSM,paragraphMarginTop:m.marginLG+m.marginXXS,paragraphLiHeight:m.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),J=m=>{const{prefixCls:a,className:R,rootClassName:fe,active:s,shape:i="circle",size:X="default"}=m,{getPrefixCls:$}=P.useContext(L.E_),f=$("skeleton",a),[Q,Re]=C(f),Pe=(0,T.Z)(m,["prefixCls","className"]),Se=l()(f,`${f}-element`,{[`${f}-active`]:s},R,fe,Re);return Q(P.createElement("div",{className:Se},P.createElement(n,Object.assign({prefixCls:`${f}-avatar`,shape:i,size:X},Pe))))},z=m=>{const{prefixCls:a,className:R,rootClassName:fe,active:s,block:i=!1,size:X="default"}=m,{getPrefixCls:$}=P.useContext(L.E_),f=$("skeleton",a),[Q,Re]=C(f),Pe=(0,T.Z)(m,["prefixCls"]),Se=l()(f,`${f}-element`,{[`${f}-active`]:s,[`${f}-block`]:i},R,fe,Re);return Q(P.createElement("div",{className:Se},P.createElement(n,Object.assign({prefixCls:`${f}-button`,size:X},Pe))))};const v="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var ce=m=>{const{prefixCls:a,className:R,rootClassName:fe,style:s,active:i}=m,{getPrefixCls:X}=P.useContext(L.E_),$=X("skeleton",a),[f,Q]=C($),Re=l()($,`${$}-element`,{[`${$}-active`]:i},R,fe,Q);return f(P.createElement("div",{className:Re},P.createElement("div",{className:l()(`${$}-image`,R),style:s},P.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${$}-image-svg`},P.createElement("path",{d:v,className:`${$}-image-path`})))))},x=m=>{const{prefixCls:a,className:R,rootClassName:fe,active:s,block:i,size:X="default"}=m,{getPrefixCls:$}=P.useContext(L.E_),f=$("skeleton",a),[Q,Re]=C(f),Pe=(0,T.Z)(m,["prefixCls"]),Se=l()(f,`${f}-element`,{[`${f}-active`]:s,[`${f}-block`]:i},R,fe,Re);return Q(P.createElement("div",{className:Se},P.createElement(n,Object.assign({prefixCls:`${f}-input`,size:X},Pe))))},_=e(54476),V={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},he=V,Me=e(7657),Ie=function(a,R){return P.createElement(Me.Z,(0,_.Z)({},a,{ref:R,icon:he}))},je=P.forwardRef(Ie),et=je,Ke=m=>{const{prefixCls:a,className:R,rootClassName:fe,style:s,active:i,children:X}=m,{getPrefixCls:$}=P.useContext(L.E_),f=$("skeleton",a),[Q,Re]=C(f),Pe=l()(f,`${f}-element`,{[`${f}-active`]:i},Re,R,fe),Se=X!=null?X:P.createElement(et,null);return Q(P.createElement("div",{className:Pe},P.createElement("div",{className:l()(`${f}-image`,R),style:s},Se)))},Te=e(94480),mt=m=>{const a=$=>{const{width:f,rows:Q=2}=m;if(Array.isArray(f))return f[$];if(Q-1===$)return f},{prefixCls:R,className:fe,style:s,rows:i}=m,X=(0,Te.Z)(Array(i)).map(($,f)=>P.createElement("li",{key:f,style:{width:a(f)}}));return P.createElement("ul",{className:l()(R,fe),style:s},X)},ut=m=>{let{prefixCls:a,className:R,width:fe,style:s}=m;return P.createElement("h3",{className:l()(a,R),style:Object.assign({width:fe},s)})};function St(m){return m&&typeof m=="object"?m:{}}function $e(m,a){return m&&!a?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ve(m,a){return!m&&a?{width:"38%"}:m&&a?{width:"50%"}:{}}function at(m,a){const R={};return(!m||!a)&&(R.width="61%"),!m&&a?R.rows=3:R.rows=2,R}const Ee=m=>{const{prefixCls:a,loading:R,className:fe,rootClassName:s,style:i,children:X,avatar:$=!1,title:f=!0,paragraph:Q=!0,active:Re,round:Pe}=m,{getPrefixCls:Se,direction:Ne,skeleton:Be}=P.useContext(L.E_),d=Se("skeleton",a),[Y,se]=C(d);if(R||!("loading"in m)){const xe=!!$,Fe=!!f,_e=!!Q;let He;if(xe){const Bt=Object.assign(Object.assign({prefixCls:`${d}-avatar`},$e(Fe,_e)),St($));He=P.createElement("div",{className:`${d}-header`},P.createElement(n,Object.assign({},Bt)))}let Je;if(Fe||_e){let Bt;if(Fe){const Dt=Object.assign(Object.assign({prefixCls:`${d}-title`},ve(xe,_e)),St(f));Bt=P.createElement(ut,Object.assign({},Dt))}let wt;if(_e){const Dt=Object.assign(Object.assign({prefixCls:`${d}-paragraph`},at(xe,Fe)),St(Q));wt=P.createElement(mt,Object.assign({},Dt))}Je=P.createElement("div",{className:`${d}-content`},Bt,wt)}const ct=l()(d,{[`${d}-with-avatar`]:xe,[`${d}-active`]:Re,[`${d}-rtl`]:Ne==="rtl",[`${d}-round`]:Pe},Be==null?void 0:Be.className,fe,s,se);return Y(P.createElement("div",{className:ct,style:Object.assign(Object.assign({},Be==null?void 0:Be.style),i)},He,Je))}return typeof X!="undefined"?X:null};Ee.Button=z,Ee.Avatar=J,Ee.Input=x,Ee.Image=ce,Ee.Node=Ke;var Z=Ee,K=Z},31797:function(ht,le,e){"use strict";e.d(le,{default:function(){return C}});var t=e(59301),l=e(56762),P=e(92343),L=e(92310),T=e.n(L),p=e(36355),n=e(61621),W=S=>{const{value:J,formatter:te,precision:z,decimalSeparator:v,groupSeparator:b="",prefixCls:ce}=S;let q;if(typeof te=="function")q=te(J);else{const x=String(J),_=x.match(/^(-?)(\d*)(\.(\d+))?$/);if(!_||x==="-")q=x;else{const V=_[1];let he=_[2]||"0",Me=_[4]||"";he=he.replace(/\B(?=(\d{3})+(?!\d))/g,b),typeof z=="number"&&(Me=Me.padEnd(z,"0").slice(0,z>0?z:0)),Me&&(Me=`${v}${Me}`),q=[t.createElement("span",{key:"int",className:`${ce}-content-value-int`},V,he),Me&&t.createElement("span",{key:"decimal",className:`${ce}-content-value-decimal`},Me)]}}return t.createElement("span",{className:`${ce}-content-value`},q)},w=e(17313),D=e(83116),g=e(37613);const M=S=>{const{componentCls:J,marginXXS:te,padding:z,colorTextDescription:v,titleFontSize:b,colorTextHeading:ce,contentFontSize:q,fontFamily:x}=S;return{[`${J}`]:Object.assign(Object.assign({},(0,w.Wf)(S)),{[`${J}-title`]:{marginBottom:te,color:v,fontSize:b},[`${J}-skeleton`]:{paddingTop:z},[`${J}-content`]:{color:ce,fontSize:q,fontFamily:x,[`${J}-content-value`]:{display:"inline-block",direction:"ltr"},[`${J}-content-prefix, ${J}-content-suffix`]:{display:"inline-block"},[`${J}-content-prefix`]:{marginInlineEnd:te},[`${J}-content-suffix`]:{marginInlineStart:te}}})}};var B=(0,D.Z)("Statistic",S=>{const J=(0,g.TS)(S,{});return[M(J)]},S=>{const{fontSizeHeading3:J,fontSize:te}=S;return{titleFontSize:te,contentFontSize:J}}),E=S=>{const{prefixCls:J,className:te,rootClassName:z,style:v,valueStyle:b,value:ce=0,title:q,valueRender:x,prefix:_,suffix:V,loading:he=!1,onMouseEnter:Me,onMouseLeave:Ie,decimalSeparator:je=".",groupSeparator:et=","}=S,{getPrefixCls:rt,direction:Ke,statistic:Te}=t.useContext(p.E_),tt=rt("statistic",J),[mt,De]=B(tt),ut=t.createElement(W,Object.assign({decimalSeparator:je,groupSeparator:et,prefixCls:tt},S,{value:ce})),St=T()(tt,{[`${tt}-rtl`]:Ke==="rtl"},Te==null?void 0:Te.className,te,z,De);return mt(t.createElement("div",{className:St,style:Object.assign(Object.assign({},Te==null?void 0:Te.style),v),onMouseEnter:Me,onMouseLeave:Ie},q&&t.createElement("div",{className:`${tt}-title`},q),t.createElement(n.Z,{paragraph:!1,loading:he,className:`${tt}-skeleton`},t.createElement("div",{style:b,className:`${tt}-content`},_&&t.createElement("span",{className:`${tt}-content-prefix`},_),x?x(ut):ut,V&&t.createElement("span",{className:`${tt}-content-suffix`},V)))))};const ne=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function k(S,J){let te=S;const z=/\[[^\]]*]/g,v=(J.match(z)||[]).map(x=>x.slice(1,-1)),b=J.replace(z,"[]"),ce=ne.reduce((x,_)=>{let[V,he]=_;if(x.includes(V)){const Me=Math.floor(te/he);return te-=Me*he,x.replace(new RegExp(`${V}+`,"g"),Ie=>{const je=Ie.length;return Me.toString().padStart(je,"0")})}return x},b);let q=0;return ce.replace(z,()=>{const x=v[q];return q+=1,x})}function de(S,J){const{format:te=""}=J,z=new Date(S).getTime(),v=Date.now(),b=Math.max(z-v,0);return k(b,te)}const ie=1e3/30;function H(S){return new Date(S).getTime()}const A=S=>{const{value:J,format:te="HH:mm:ss",onChange:z,onFinish:v}=S,b=(0,l.Z)(),ce=t.useRef(null),q=()=>{v==null||v(),ce.current&&(clearInterval(ce.current),ce.current=null)},x=()=>{const he=H(J);he>=Date.now()&&(ce.current=setInterval(()=>{b(),z==null||z(he-Date.now()),he(x(),()=>{ce.current&&(clearInterval(ce.current),ce.current=null)}),[J]);const _=(he,Me)=>de(he,Object.assign(Object.assign({},Me),{format:te})),V=he=>(0,P.Tm)(he,{title:void 0});return t.createElement(E,Object.assign({},S,{valueRender:V,formatter:_}))};var ae=t.memo(A);E.Countdown=ae;var C=E},15969:function(ht,le,e){"use strict";e.d(le,{N:function(){return t}});const t=l=>({color:l.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${l.motionDurationSlow}`,"&:focus, &:hover":{color:l.colorLinkHover},"&:active":{color:l.colorLinkActive}})},1710:function(ht,le,e){"use strict";e.d(le,{default:function(){return ca}});var t={},l="rc-table-internal-hook",P=e(42978),L=e(6089),T=e(34280),p=e(13697),n=e(59301),F=e(4676);function W(r){var o=n.createContext(void 0),u=function(N){var O=N.value,oe=N.children,re=n.useRef(O);re.current=O;var ee=n.useState(function(){return{getValue:function(){return re.current},listeners:new Set}}),ge=(0,P.Z)(ee,1),Oe=ge[0];return(0,T.Z)(function(){(0,F.unstable_batchedUpdates)(function(){Oe.listeners.forEach(function(we){we(O)})})},[O]),n.createElement(o.Provider,{value:Oe},oe)};return{Context:o,Provider:u,defaultValue:r}}function w(r,o){var u=(0,L.Z)(typeof o=="function"?o:function(we){if(o===void 0)return we;if(!Array.isArray(o))return we[o];var ze={};return o.forEach(function(We){ze[We]=we[We]}),ze}),y=n.useContext(r==null?void 0:r.Context),N=y||{},O=N.listeners,oe=N.getValue,re=n.useRef();re.current=u(y?oe():r==null?void 0:r.defaultValue);var ee=n.useState({}),ge=(0,P.Z)(ee,2),Oe=ge[1];return(0,T.Z)(function(){if(!y)return;function we(ze){var We=u(ze);(0,p.Z)(re.current,We,!0)||Oe({})}return O.add(we),function(){O.delete(we)}},[y]),re.current}var D=e(54476),g=e(8654);function M(){var r=n.createContext(null);function o(){return n.useContext(r)}function u(N,O){var oe=(0,g.Yr)(N),re=function(ge,Oe){var we=oe?{ref:Oe}:{},ze=n.useRef(0),We=n.useRef(ge),Xe=o();return Xe!==null?n.createElement(N,(0,D.Z)({},ge,we)):((!O||O(We.current,ge))&&(ze.current+=1),We.current=ge,n.createElement(r.Provider,{value:ze.current},n.createElement(N,(0,D.Z)({},ge,we))))};return oe?n.forwardRef(re):re}function y(N,O){var oe=(0,g.Yr)(N),re=function(ge,Oe){var we=oe?{ref:Oe}:{};return o(),n.createElement(N,(0,D.Z)({},ge,we))};return oe?n.memo(n.forwardRef(re),O):n.memo(re,O)}return{makeImmutable:u,responseImmutable:y,useImmutableMark:o}}var B=M(),I=B.makeImmutable,E=B.responseImmutable,ne=B.useImmutableMark,k=M(),de=k.makeImmutable,ie=k.responseImmutable,H=k.useImmutableMark,A=W(),ae=A;function C(r,o){var u=n.useRef(0);u.current+=1;var y=n.useRef(r),N=[];Object.keys(r||{}).map(function(oe){var re;(r==null?void 0:r[oe])!==((re=y.current)===null||re===void 0?void 0:re[oe])&&N.push(oe)}),y.current=r;var O=n.useRef([]);return N.length&&(O.current=N),n.useDebugValue(u.current),n.useDebugValue(O.current.join(", ")),o&&console.log("".concat(o,":"),u.current,O.current),u.current}var S=null,J=n.memo(function(){var r=C();return n.createElement("h1",null,"Render Times: ",r)});J.displayName="RenderBlock";var te=e(76190),z=e(33885),v=e(20068),b=e(92310),ce=e.n(b),q=e(80547),x=e(97938),_=e(48736),V=n.createContext({renderWithProps:!1}),he=V,Me="RC_TABLE_KEY";function Ie(r){return r==null?[]:Array.isArray(r)?r:[r]}function je(r){var o=[],u={};return r.forEach(function(y){for(var N=y||{},O=N.key,oe=N.dataIndex,re=O||Ie(oe).join("-")||Me;u[re];)re="".concat(re,"_next");u[re]=!0,o.push(re)}),o}function et(r){return r!=null}function rt(r){return r&&(0,te.Z)(r)==="object"&&!Array.isArray(r)&&!n.isValidElement(r)}function Ke(r,o,u,y,N,O){var oe=n.useContext(he),re=H(),ee=(0,q.Z)(function(){if(et(y))return[y];var ge=o==null||o===""?[]:Array.isArray(o)?o:[o],Oe=(0,x.Z)(r,ge),we=Oe,ze=void 0;if(N){var We=N(Oe,r,u);rt(We)?(we=We.children,ze=We.props,oe.renderWithProps=!0):we=We}return[we,ze]},[re,r,y,o,N,u],function(ge,Oe){if(O){var we=(0,P.Z)(ge,2),ze=we[1],We=(0,P.Z)(Oe,2),Xe=We[1];return O(Xe,ze)}return oe.renderWithProps?!0:!(0,p.Z)(ge,Oe,!0)});return ee}function Te(r,o,u,y){var N=r+o-1;return r<=y&&N>=u}function tt(r,o){return w(ae,function(u){var y=Te(r,o||1,u.hoverStartRow,u.hoverEndRow);return[y,u.onHover]})}var mt=function(o){var u=o.ellipsis,y=o.rowType,N=o.children,O,oe=u===!0?{showTitle:!0}:u;return oe&&(oe.showTitle||y==="header")&&(typeof N=="string"||typeof N=="number"?O=N.toString():n.isValidElement(N)&&typeof N.props.children=="string"&&(O=N.props.children)),O};function De(r){var o,u,y,N,O,oe,re,ee,ge=r.component,Oe=r.children,we=r.ellipsis,ze=r.scope,We=r.prefixCls,Xe=r.className,Ct=r.align,dt=r.record,Et=r.render,pt=r.dataIndex,_t=r.renderIndex,Xt=r.shouldCellUpdate,cn=r.index,Ht=r.rowType,bn=r.colSpan,Nn=r.rowSpan,Rt=r.fixLeft,Yt=r.fixRight,Mt=r.firstFixLeft,It=r.lastFixLeft,zt=r.firstFixRight,hn=r.lastFixRight,Fn=r.appendNode,Dn=r.additionalProps,un=Dn===void 0?{}:Dn,jn=r.isSticky,Wn="".concat(We,"-cell"),Cr=w(ae,["supportSticky","allColumnsFixedLeft"]),nr=Cr.supportSticky,Fr=Cr.allColumnsFixedLeft,Nr=Ke(dt,pt,_t,Oe,Et,Xt),Bn=(0,P.Z)(Nr,2),Hr=Bn[0],or=Bn[1],Xn={},Sr=typeof Rt=="number"&&nr,Qr=typeof Yt=="number"&&nr;Sr&&(Xn.position="sticky",Xn.left=Rt),Qr&&(Xn.position="sticky",Xn.right=Yt);var pn=(o=(u=(y=or==null?void 0:or.colSpan)!==null&&y!==void 0?y:un.colSpan)!==null&&u!==void 0?u:bn)!==null&&o!==void 0?o:1,fn=(N=(O=(oe=or==null?void 0:or.rowSpan)!==null&&oe!==void 0?oe:un.rowSpan)!==null&&O!==void 0?O:Nn)!==null&&N!==void 0?N:1,dn=tt(cn,fn),rn=(0,P.Z)(dn,2),rr=rn[0],Jt=rn[1],On=function(Ue){var it;dt&&Jt(cn,cn+fn-1),un==null||(it=un.onMouseEnter)===null||it===void 0||it.call(un,Ue)},tr=function(Ue){var it;dt&&Jt(-1,-1),un==null||(it=un.onMouseLeave)===null||it===void 0||it.call(un,Ue)};if(pn===0||fn===0)return null;var Un=(re=un.title)!==null&&re!==void 0?re:mt({rowType:Ht,ellipsis:we,children:Hr}),eo=ce()(Wn,Xe,(ee={},(0,v.Z)(ee,"".concat(Wn,"-fix-left"),Sr&&nr),(0,v.Z)(ee,"".concat(Wn,"-fix-left-first"),Mt&&nr),(0,v.Z)(ee,"".concat(Wn,"-fix-left-last"),It&&nr),(0,v.Z)(ee,"".concat(Wn,"-fix-left-all"),It&&Fr&&nr),(0,v.Z)(ee,"".concat(Wn,"-fix-right"),Qr&&nr),(0,v.Z)(ee,"".concat(Wn,"-fix-right-first"),zt&&nr),(0,v.Z)(ee,"".concat(Wn,"-fix-right-last"),hn&&nr),(0,v.Z)(ee,"".concat(Wn,"-ellipsis"),we),(0,v.Z)(ee,"".concat(Wn,"-with-append"),Fn),(0,v.Z)(ee,"".concat(Wn,"-fix-sticky"),(Sr||Qr)&&jn&&nr),(0,v.Z)(ee,"".concat(Wn,"-row-hover"),!or&&rr),ee),un.className,or==null?void 0:or.className),c={};Ct&&(c.textAlign=Ct);var Ce=(0,z.Z)((0,z.Z)((0,z.Z)((0,z.Z)({},Xn),un.style),c),or==null?void 0:or.style),Ve=Hr;return(0,te.Z)(Ve)==="object"&&!Array.isArray(Ve)&&!n.isValidElement(Ve)&&(Ve=null),we&&(It||zt)&&(Ve=n.createElement("span",{className:"".concat(Wn,"-content")},Ve)),n.createElement(ge,(0,D.Z)({},or,un,{className:eo,style:Ce,title:Un,scope:ze,onMouseEnter:On,onMouseLeave:tr,colSpan:pn!==1?pn:null,rowSpan:fn!==1?fn:null}),Fn,Ve)}var ut=n.memo(De);function St(r,o,u,y,N,O){var oe=u[r]||{},re=u[o]||{},ee,ge;oe.fixed==="left"?ee=y.left[N==="rtl"?o:r]:re.fixed==="right"&&(ge=y.right[N==="rtl"?r:o]);var Oe=!1,we=!1,ze=!1,We=!1,Xe=u[o+1],Ct=u[r-1],dt=!(O!=null&&O.children);if(N==="rtl"){if(ee!==void 0){var Et=Ct&&Ct.fixed==="left";We=!Et&&dt}else if(ge!==void 0){var pt=Xe&&Xe.fixed==="right";ze=!pt&&dt}}else if(ee!==void 0){var _t=Xe&&Xe.fixed==="left";Oe=!_t&&dt}else if(ge!==void 0){var Xt=Ct&&Ct.fixed==="right";we=!Xt&&dt}return{fixLeft:ee,fixRight:ge,lastFixLeft:Oe,firstFixRight:we,lastFixRight:ze,firstFixLeft:We,isSticky:y.isSticky}}var $e=n.createContext({}),ve=$e;function at(r){var o=r.className,u=r.index,y=r.children,N=r.colSpan,O=N===void 0?1:N,oe=r.rowSpan,re=r.align,ee=w(ae,["prefixCls","direction"]),ge=ee.prefixCls,Oe=ee.direction,we=n.useContext(ve),ze=we.scrollColumnIndex,We=we.stickyOffsets,Xe=we.flattenColumns,Ct=we.columns,dt=u+O-1,Et=dt+1===ze?O+1:O,pt=St(u,u+Et-1,Xe,We,Oe,Ct==null?void 0:Ct[u]);return n.createElement(ut,(0,D.Z)({className:o,index:u,component:"td",prefixCls:ge,record:null,dataIndex:null,align:re,colSpan:Et,rowSpan:oe,render:function(){return y}},pt))}var Ee=e(75931),Z=["children"];function K(r){var o=r.children,u=(0,Ee.Z)(r,Z);return n.createElement("tr",u,o)}function m(r){var o=r.children;return o}m.Row=K,m.Cell=at;var a=m;function R(r){var o=r.children,u=r.stickyOffsets,y=r.flattenColumns,N=r.columns,O=w(ae,"prefixCls"),oe=y.length-1,re=y[oe],ee=n.useMemo(function(){return{stickyOffsets:u,flattenColumns:y,scrollColumnIndex:re!=null&&re.scrollbar?oe:null,columns:N}},[re,y,oe,u,N]);return n.createElement(ve.Provider,{value:ee},n.createElement("tfoot",{className:"".concat(O,"-summary")},o))}var fe=ie(R),s=a,i=e(70425),X=e(29301),$=e(29194),f=e(24514),Q=e(75152),Re=e(26112);function Pe(r,o,u,y,N,O,oe){r.push({record:o,indent:u,index:oe});var re=O(o),ee=N==null?void 0:N.has(re);if(o&&Array.isArray(o[y])&&ee)for(var ge=0;ge1?Mt-1:0),zt=1;zt=0;re-=1){var ee=o[re],ge=u&&u[re],Oe=ge&&ge[Bt];if(ee||Oe||oe){var we=Oe||{},ze=we.columnType,We=(0,Ee.Z)(we,Dt);N.unshift(n.createElement("col",(0,D.Z)({key:re,style:{width:ee}},We))),oe=!0}}return n.createElement("colgroup",null,N)}var ln=mn,$t=e(94480),En=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function vn(r,o){return(0,n.useMemo)(function(){for(var u=[],y=0;y1?"colgroup":"col":null,ellipsis:dt.ellipsis,align:dt.align,component:dt.title?O:oe,prefixCls:Oe,key:We[Ct]},Et,{additionalProps:pt,rowType:"header"}))}))}xn.displayName="HeaderRow";var An=xn;function ir(r){var o=[];function u(oe,re){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;o[ee]=o[ee]||[];var ge=re,Oe=oe.filter(Boolean).map(function(we){var ze={key:we.key,className:we.className||"",children:we.title,column:we,colStart:ge},We=1,Xe=we.children;return Xe&&Xe.length>0&&(We=u(Xe,ge,ee+1).reduce(function(Ct,dt){return Ct+dt},0),ze.hasSubColumns=!0),"colSpan"in we&&(We=we.colSpan),"rowSpan"in we&&(ze.rowSpan=we.rowSpan),ze.colSpan=We,ze.colEnd=ze.colStart+We-1,o[ee].push(ze),ge+=We,We});return Oe}u(r,0);for(var y=o.length,N=function(re){o[re].forEach(function(ee){!("rowSpan"in ee)&&!ee.hasSubColumns&&(ee.rowSpan=y-re)})},O=0;O1&&arguments[1]!==void 0?arguments[1]:"";return typeof o=="number"?o:o.endsWith("%")?r*parseFloat(o)/100:null}function mr(r,o){return n.useMemo(function(){if(o&&o>0){var u=0,y=0;r.forEach(function(ge){var Oe=Zn(o,ge.width);Oe?u+=Oe:y+=1});var N=o-u,O=y,oe=N/y,re=0,ee=r.map(function(ge){var Oe=(0,z.Z)({},ge),we=Zn(o,Oe.width);if(we)Oe.width=we;else{var ze=Math.floor(oe);Oe.width=O===1?N:ze,N-=ze,O-=1}return re+=Oe.width,Oe});return[ee,re]}return[r,o]},[r,o])}var Or=["children"],Ir=["fixed"];function hr(r){return(0,ur.Z)(r).filter(function(o){return n.isValidElement(o)}).map(function(o){var u=o.key,y=o.props,N=y.children,O=(0,Ee.Z)(y,Or),oe=(0,z.Z)({key:u},O);return N&&(oe.children=hr(N)),oe})}function Dr(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return r.filter(function(u){return u&&(0,te.Z)(u)==="object"}).reduce(function(u,y,N){var O=y.fixed,oe=O===!0?"left":O,re="".concat(o,"-").concat(N),ee=y.children;return ee&&ee.length>0?[].concat((0,$t.Z)(u),(0,$t.Z)(Dr(ee,re).map(function(ge){return(0,z.Z)({fixed:oe},ge)}))):[].concat((0,$t.Z)(u),[(0,z.Z)((0,z.Z)({key:re},y),{},{fixed:oe})])},[])}function Ur(r){for(var o=!0,u=0;u=0;O-=1){var oe=r[O];if(N&&oe.fixed!=="right")N=!1;else if(!N&&oe.fixed==="right"){warning(!1,"Index ".concat(O+1," of `columns` missing `fixed='right'` prop."));break}}}function Zr(r){return r.map(function(o){var u=o.fixed,y=(0,Ee.Z)(o,Ir),N=u;return u==="left"?N="right":u==="right"&&(N="left"),(0,z.Z)({fixed:N},y)})}function so(r,o){var u=r.prefixCls,y=r.columns,N=r.children,O=r.expandable,oe=r.expandedKeys,re=r.columnTitle,ee=r.getRowKey,ge=r.onTriggerExpand,Oe=r.expandIcon,we=r.rowExpandable,ze=r.expandIconColumnIndex,We=r.direction,Xe=r.expandRowByClick,Ct=r.columnWidth,dt=r.fixed,Et=r.scrollWidth,pt=n.useMemo(function(){return y||hr(N)},[y,N]),_t=n.useMemo(function(){if(O){var Yt,Mt=pt.slice();if(!Mt.includes(t)){var It=ze||0;It>=0&&Mt.splice(It,0,t)}var zt=Mt.indexOf(t);Mt=Mt.filter(function(un,jn){return un!==t||jn===zt});var hn=pt[zt],Fn;(dt==="left"||dt)&&!ze?Fn="left":(dt==="right"||dt)&&ze===pt.length?Fn="right":Fn=hn?hn.fixed:null;var Dn=(Yt={},(0,v.Z)(Yt,Bt,{className:"".concat(u,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,v.Z)(Yt,"title",re),(0,v.Z)(Yt,"fixed",Fn),(0,v.Z)(Yt,"className","".concat(u,"-row-expand-icon-cell")),(0,v.Z)(Yt,"width",Ct),(0,v.Z)(Yt,"render",function(jn,Wn,Cr){var nr=ee(Wn,Cr),Fr=oe.has(nr),Nr=we?we(Wn):!0,Bn=Oe({prefixCls:u,expanded:Fr,expandable:Nr,record:Wn,onExpand:ge});return Xe?n.createElement("span",{onClick:function(or){return or.stopPropagation()}},Bn):Bn}),Yt);return Mt.map(function(un){return un===t?Dn:un})}return pt.filter(function(un){return un!==t})},[O,pt,ee,oe,Oe,We]),Xt=n.useMemo(function(){var Yt=_t;return o&&(Yt=o(Yt)),Yt.length||(Yt=[{render:function(){return null}}]),Yt},[o,_t,We]),cn=n.useMemo(function(){return We==="rtl"?Zr(Dr(Xt)):Dr(Xt)},[Xt,We,Et]),Ht=mr(cn,Et),bn=(0,P.Z)(Ht,2),Nn=bn[0],Rt=bn[1];return[Xt,Nn,Rt]}var Jr=so;function Qe(r){var o,u=r.prefixCls,y=r.record,N=r.onExpand,O=r.expanded,oe=r.expandable,re="".concat(u,"-row-expand-icon");if(!oe)return n.createElement("span",{className:ce()(re,"".concat(u,"-row-spaced"))});var ee=function(Oe){N(y,Oe),Oe.stopPropagation()};return n.createElement("span",{className:ce()(re,(o={},(0,v.Z)(o,"".concat(u,"-row-expanded"),O),(0,v.Z)(o,"".concat(u,"-row-collapsed"),!O),o)),onClick:ee})}function pe(r,o,u){var y=[];function N(O){(O||[]).forEach(function(oe,re){y.push(o(oe,re)),N(oe[u])})}return N(r),y}function lt(r,o,u){var y=wt(r),N=y.expandIcon,O=y.expandedRowKeys,oe=y.defaultExpandedRowKeys,re=y.defaultExpandAllRows,ee=y.expandedRowRender,ge=y.onExpand,Oe=y.onExpandedRowsChange,we=y.childrenColumnName,ze=N||Qe,We=we||"children",Xe=n.useMemo(function(){return ee?"row":r.expandable&&r.internalHooks===l&&r.expandable.__PARENT_RENDER_ICON__||o.some(function(cn){return cn&&(0,te.Z)(cn)==="object"&&cn[We]})?"nest":!1},[!!ee,o]),Ct=n.useState(function(){return oe||(re?pe(o,u,We):[])}),dt=(0,P.Z)(Ct,2),Et=dt[0],pt=dt[1],_t=n.useMemo(function(){return new Set(O||Et||[])},[O,Et]),Xt=n.useCallback(function(cn){var Ht=u(cn,o.indexOf(cn)),bn,Nn=_t.has(Ht);Nn?(_t.delete(Ht),bn=(0,$t.Z)(_t)):bn=[].concat((0,$t.Z)(_t),[Ht]),pt(bn),ge&&ge(!Nn,cn),Oe&&Oe(bn)},[u,_t,o,ge,Oe]);return[y,Xe,_t,ze,We,Xt]}function Pt(r,o,u,y){var N=r.map(function(O,oe){return St(oe,oe,r,o,u,y==null?void 0:y[oe])});return(0,q.Z)(function(){return N},[N],function(O,oe){return!(0,p.Z)(O,oe)})}function Nt(r){var o=(0,n.useRef)(r),u=(0,n.useState)({}),y=(0,P.Z)(u,2),N=y[1],O=(0,n.useRef)(null),oe=(0,n.useRef)([]);function re(ee){oe.current.push(ee);var ge=Promise.resolve();O.current=ge,ge.then(function(){if(O.current===ge){var Oe=oe.current,we=o.current;oe.current=[],Oe.forEach(function(ze){o.current=ze(o.current)}),O.current=null,we!==o.current&&N({})}})}return(0,n.useEffect)(function(){return function(){O.current=null}},[]),[o.current,re]}function Lt(r){var o=(0,n.useRef)(r||null),u=(0,n.useRef)();function y(){window.clearTimeout(u.current)}function N(oe){o.current=oe,y(),u.current=window.setTimeout(function(){o.current=null,u.current=void 0},100)}function O(){return o.current}return(0,n.useEffect)(function(){return y},[]),[N,O]}function Ut(){var r=n.useState(-1),o=(0,P.Z)(r,2),u=o[0],y=o[1],N=n.useState(-1),O=(0,P.Z)(N,2),oe=O[0],re=O[1],ee=n.useCallback(function(ge,Oe){y(ge),re(Oe)},[]);return[u,oe,ee]}var kt=e(47273),j=(0,kt.Z)()?window:null;function ue(r,o){var u=(0,te.Z)(r)==="object"?r:{},y=u.offsetHeader,N=y===void 0?0:y,O=u.offsetSummary,oe=O===void 0?0:O,re=u.offsetScroll,ee=re===void 0?0:re,ge=u.getContainer,Oe=ge===void 0?function(){return j}:ge,we=Oe()||j;return n.useMemo(function(){var ze=!!r;return{isSticky:ze,stickyClassName:ze?"".concat(o,"-sticky-holder"):"",offsetHeader:N,offsetSummary:oe,offsetScroll:ee,container:we}},[ee,N,oe,o,we])}function ye(r,o,u){var y=(0,n.useMemo)(function(){for(var N=[],O=[],oe=0,re=0,ee=0;ee=we&&(un=we-ze),oe({scrollLeft:un/we*(Oe+2)}),pt.current.x=zt.pageX},Yt=function(){if(O.current){var zt=(0,Ae.os)(O.current).top,hn=zt+O.current.offsetHeight,Fn=ee===window?document.documentElement.scrollTop+window.innerHeight:(0,Ae.os)(ee).top+ee.clientHeight;hn-(0,Q.Z)()<=Fn||zt>=Fn-re?Et(function(Dn){return(0,z.Z)((0,z.Z)({},Dn),{},{isHiddenScrollBar:!0})}):Et(function(Dn){return(0,z.Z)((0,z.Z)({},Dn),{},{isHiddenScrollBar:!1})})}},Mt=function(zt){Et(function(hn){return(0,z.Z)((0,z.Z)({},hn),{},{scrollLeft:zt/Oe*we||0})})};return n.useImperativeHandle(u,function(){return{setScrollLeft:Mt}}),n.useEffect(function(){var It=(0,ke.Z)(document.body,"mouseup",bn,!1),zt=(0,ke.Z)(document.body,"mousemove",Rt,!1);return Yt(),function(){It.remove(),zt.remove()}},[ze,cn]),n.useEffect(function(){var It=(0,ke.Z)(ee,"scroll",Yt,!1),zt=(0,ke.Z)(window,"resize",Yt,!1);return function(){It.remove(),zt.remove()}},[ee]),n.useEffect(function(){dt.isHiddenScrollBar||Et(function(It){var zt=O.current;return zt?(0,z.Z)((0,z.Z)({},It),{},{scrollLeft:zt.scrollLeft/zt.scrollWidth*zt.clientWidth}):It})},[dt.isHiddenScrollBar]),Oe<=we||!ze||dt.isHiddenScrollBar?null:n.createElement("div",{style:{height:(0,Q.Z)(),width:we,bottom:re},className:"".concat(ge,"-sticky-scroll")},n.createElement("div",{onMouseDown:Nn,ref:We,className:ce()("".concat(ge,"-sticky-scroll-bar"),(0,v.Z)({},"".concat(ge,"-sticky-scroll-bar-active"),cn)),style:{width:"".concat(ze,"px"),transform:"translate3d(".concat(dt.scrollLeft,"px, 0, 0)")}}))},Zt=n.forwardRef(jt);function qt(r){return null}var kn=qt;function Rn(r){return null}var on=Rn,h="rc-table",_r=[],Qn={};function dr(){return"No Data"}function er(r){var o,u=(0,z.Z)({rowKey:"key",prefixCls:h,emptyText:dr},r),y=u.prefixCls,N=u.className,O=u.rowClassName,oe=u.style,re=u.data,ee=u.rowKey,ge=u.scroll,Oe=u.tableLayout,we=u.direction,ze=u.title,We=u.footer,Xe=u.summary,Ct=u.caption,dt=u.id,Et=u.showHeader,pt=u.components,_t=u.emptyText,Xt=u.onRow,cn=u.onHeaderRow,Ht=u.internalHooks,bn=u.transformColumns,Nn=u.internalRefs,Rt=u.tailor,Yt=u.sticky,Mt=re||_r,It=!!Mt.length,zt=Ht===l,hn=n.useCallback(function(xr,Ar){return(0,x.Z)(pt,xr)||Ar},[pt]),Fn=n.useMemo(function(){return typeof ee=="function"?ee:function(xr){var Ar=xr&&xr[ee];return Ar}},[ee]),Dn=hn(["body"]),un=Ut(),jn=(0,P.Z)(un,3),Wn=jn[0],Cr=jn[1],nr=jn[2],Fr=lt(u,Mt,Fn),Nr=(0,P.Z)(Fr,6),Bn=Nr[0],Hr=Nr[1],or=Nr[2],Xn=Nr[3],Sr=Nr[4],Qr=Nr[5],pn=ge==null?void 0:ge.x,fn=n.useState(0),dn=(0,P.Z)(fn,2),rn=dn[0],rr=dn[1],Jt=Jr((0,z.Z)((0,z.Z)((0,z.Z)({},u),Bn),{},{expandable:!!Bn.expandedRowRender,columnTitle:Bn.columnTitle,expandedKeys:or,getRowKey:Fn,onTriggerExpand:Qr,expandIcon:Xn,expandIconColumnIndex:Bn.expandIconColumnIndex,direction:we,scrollWidth:zt&&Rt&&typeof pn=="number"?pn:null}),zt?bn:null),On=(0,P.Z)(Jt,3),tr=On[0],Un=On[1],eo=On[2],c=eo!=null?eo:pn,Ce=n.useMemo(function(){return{columns:tr,flattenColumns:Un}},[tr,Un]),Ve=n.useRef(),ft=n.useRef(),Ue=n.useRef(),it=n.useRef(),yt=n.useRef(),st=n.useState(!1),gt=(0,P.Z)(st,2),vt=gt[0],Wt=gt[1],nt=n.useState(!1),Ge=(0,P.Z)(nt,2),an=Ge[0],gr=Ge[1],Vt=Nt(new Map),Tn=(0,P.Z)(Vt,2),Pr=Tn[0],Gr=Tn[1],Eo=je(Un),mo=Eo.map(function(xr){return Pr.get(xr)}),Tt=n.useMemo(function(){return mo},[mo.join("_")]),Yr=be(Tt,Un.length,we),Tr=ge&&et(ge.y),ar=ge&&et(c)||!!Bn.fixed,co=ar&&Un.some(function(xr){var Ar=xr.fixed;return Ar}),go=n.useRef(),lo=ue(Yt,y),ho=lo.isSticky,Xa=lo.offsetHeader,bl=lo.offsetSummary,lr=lo.offsetScroll,Rr=lo.stickyClassName,oo=lo.container,jr=n.useMemo(function(){return Xe==null?void 0:Xe(Mt)},[Xe,Mt]),io=(Tr||ho)&&n.isValidElement(jr)&&jr.type===a&&jr.props.fixed,vo,po,Ro;Tr&&(po={overflowY:"scroll",maxHeight:ge.y}),ar&&(vo={overflowX:"auto"},Tr||(po={overflowY:"hidden"}),Ro={width:c===!0?"auto":c,minWidth:"100%"});var Rl=n.useCallback(function(xr,Ar){(0,$.Z)(Ve.current)&&Gr(function(So){if(So.get(xr)!==Ar){var Ao=new Map(So);return Ao.set(xr,Ar),Ao}return So})},[]),ni=Lt(null),Ml=(0,P.Z)(ni,2),ri=Ml[0],Fl=Ml[1];function Ga(xr,Ar){Ar&&(typeof Ar=="function"?Ar(xr):Ar.scrollLeft!==xr&&(Ar.scrollLeft=xr,Ar.scrollLeft!==xr&&setTimeout(function(){Ar.scrollLeft=xr},0)))}var ua=(0,L.Z)(function(xr){var Ar=xr.currentTarget,So=xr.scrollLeft,Ao=we==="rtl",Zo=typeof So=="number"?So:Ar.scrollLeft,Jl=Ar||Qn;if(!Fl()||Fl()===Jl){var Pl;ri(Jl),Ga(Zo,ft.current),Ga(Zo,Ue.current),Ga(Zo,yt.current),Ga(Zo,(Pl=go.current)===null||Pl===void 0?void 0:Pl.setScrollLeft)}var Il=Ar||ft.current;if(Il){var Nl=Il.scrollWidth,Ol=Il.clientWidth;if(Nl===Ol){Wt(!1),gr(!1);return}Ao?(Wt(-Zo0)):(Wt(Zo>0),gr(Zo1?Ct-zt:0,Fn=(0,z.Z)((0,z.Z)((0,z.Z)({},bn),ee),{},{flex:"0 0 ".concat(zt,"px"),width:"".concat(zt,"px"),marginRight:hn,pointerEvents:"auto"}),Dn=n.useMemo(function(){return Oe?Mt<=1:Rt===0||Mt===0||Mt>1},[Mt,Rt,Oe]);Dn?Fn.visibility="hidden":Oe&&(Fn.height=we==null?void 0:we(Mt));var un=Dn?function(){return null}:ze,jn={};return(Mt===0||Rt===0)&&(jn.rowSpan=1,jn.colSpan=1),n.createElement(ut,(0,D.Z)({className:ce()(Xe,ge),ellipsis:u.ellipsis,align:u.align,scope:u.rowScope,component:"div",prefixCls:o.prefixCls,key:_t,record:re,index:O,renderIndex:oe,dataIndex:We,render:un,shouldCellUpdate:u.shouldCellUpdate},Xt,{appendNode:cn,additionalProps:(0,z.Z)((0,z.Z)({},Ht),{},{style:Fn},jn)}))}var kr=Er,Wr=["data","index","className","rowKey","style","extra","getHeight"],Vr=n.forwardRef(function(r,o){var u=r.data,y=r.index,N=r.className,O=r.rowKey,oe=r.style,re=r.extra,ee=r.getHeight,ge=(0,Ee.Z)(r,Wr),Oe=u.record,we=u.indent,ze=u.index,We=w(ae,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Xe=We.scrollX,Ct=We.flattenColumns,dt=We.prefixCls,Et=We.fixColumn,pt=We.componentWidth,_t=d(Oe,O,y,we),Xt=_t.rowSupportExpand,cn=_t.expanded,Ht=_t.rowProps,bn=_t.expandedRowRender,Nn=_t.expandedRowClassName,Rt;if(Xt&&cn){var Yt=bn(Oe,y,we+1,cn),Mt=Nn==null?void 0:Nn(Oe,y,we),It={};Et&&(It={style:(0,v.Z)({},"--virtual-width","".concat(pt,"px"))});var zt="".concat(dt,"-expanded-row-cell");Rt=n.createElement("div",{className:ce()("".concat(dt,"-expanded-row"),"".concat(dt,"-expanded-row-level-").concat(we+1),Mt)},n.createElement(ut,{component:"div",prefixCls:dt,className:ce()(zt,(0,v.Z)({},"".concat(zt,"-fixed"),Et)),additionalProps:It},Yt))}var hn=(0,z.Z)((0,z.Z)({},oe),{},{width:Xe});re&&(hn.position="absolute",hn.pointerEvents="none");var Fn=n.createElement("div",(0,D.Z)({},Ht,ge,{ref:Xt?null:o,className:ce()(N,"".concat(dt,"-row"),Ht==null?void 0:Ht.className,(0,v.Z)({},"".concat(dt,"-row-extra"),re)),style:(0,z.Z)((0,z.Z)({},hn),Ht==null?void 0:Ht.style)}),Ct.map(function(Dn,un){return n.createElement(kr,{key:un,rowInfo:_t,column:Dn,colIndex:un,indent:we,index:y,renderIndex:ze,record:Oe,inverse:re,getHeight:ee})}));return Xt?n.createElement("div",{ref:o},Fn,Rt):Fn}),Xr=ie(Vr),U=Xr,me=n.forwardRef(function(r,o){var u=r.data,y=r.onScroll,N=w(ae,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),O=N.flattenColumns,oe=N.onColumnResize,re=N.getRowKey,ee=N.expandedKeys,ge=N.prefixCls,Oe=N.childrenColumnName,we=N.emptyNode,ze=N.scrollX,We=w(zn),Xe=We.scrollY,Ct=We.listItemHeight,dt=n.useRef(),Et=Se(u,Oe,ee,re),pt=n.useMemo(function(){var Rt=0;return O.map(function(Yt){var Mt=Yt.width,It=Yt.key;return Rt+=Mt,[It,Mt,Rt]})},[O]),_t=n.useMemo(function(){return pt.map(function(Rt){return Rt[2]})},[pt]);n.useEffect(function(){pt.forEach(function(Rt){var Yt=(0,P.Z)(Rt,2),Mt=Yt[0],It=Yt[1];oe(Mt,It)})},[pt]),n.useImperativeHandle(o,function(){var Rt={};return Object.defineProperty(Rt,"scrollLeft",{get:function(){var Mt;return((Mt=dt.current)===null||Mt===void 0?void 0:Mt.getScrollInfo().x)||0},set:function(Mt){var It;(It=dt.current)===null||It===void 0||It.scrollTo({left:Mt})}}),Rt});var Xt=function(Yt,Mt){var It,zt=(It=Et[Mt])===null||It===void 0?void 0:It.record,hn=Yt.onCell;if(hn){var Fn,Dn=hn(zt,Mt);return(Fn=Dn==null?void 0:Dn.rowSpan)!==null&&Fn!==void 0?Fn:1}return 1},cn=function(Yt){var Mt=Yt.start,It=Yt.end,zt=Yt.getSize,hn=Yt.offsetY;if(It<0)return null;for(var Fn=O.filter(function(pn){return Xt(pn,Mt)===0}),Dn=Mt,un=function(fn){if(Fn=Fn.filter(function(dn){return Xt(dn,fn)===0}),!Fn.length)return Dn=fn,"break"},jn=Mt;jn>=0;jn-=1){var Wn=un(jn);if(Wn==="break")break}for(var Cr=O.filter(function(pn){return Xt(pn,It)!==1}),nr=It,Fr=function(fn){if(Cr=Cr.filter(function(dn){return Xt(dn,fn)!==1}),!Cr.length)return nr=Math.max(fn-1,It),"break"},Nr=It;Nr1})&&Hr.push(fn)},Xn=Dn;Xn<=nr;Xn+=1)var Sr=or(Xn);var Qr=Hr.map(function(pn){var fn=Et[pn],dn=re(fn.record,pn),rn=function(On){var tr=pn+On-1,Un=re(Et[tr].record,tr),eo=zt(dn,Un);return eo.bottom-eo.top},rr=zt(dn);return n.createElement(U,{key:pn,data:fn,rowKey:dn,index:pn,style:{top:-hn+rr.top},extra:!0,getHeight:rn})});return Qr},Ht=n.useMemo(function(){return{columnsOffset:_t}},[_t]),bn="".concat(ge,"-tbody"),Nn;return Et.length?Nn=n.createElement(In.Z,{fullHeight:!1,ref:dt,className:ce()(bn,"".concat(bn,"-virtual")),height:Xe,itemHeight:Ct||24,data:Et,itemKey:function(Yt){return re(Yt.record)},scrollWidth:ze,onVirtualScroll:function(Yt){var Mt=Yt.x;y({scrollLeft:Mt})},extraRender:cn},function(Rt,Yt,Mt){var It=re(Rt.record,Yt);return n.createElement(U,(0,D.Z)({data:Rt,rowKey:It,index:Yt},Mt))}):Nn=n.createElement("div",{className:ce()("".concat(ge,"-placeholder"))},n.createElement(ut,{component:"div",prefixCls:ge},we)),n.createElement(Lr.Provider,{value:Ht},Nn)}),qe=ie(me),Ft=qe,en=function(o,u){var y=u.ref,N=u.onScroll;return n.createElement(Ft,{ref:y,data:o,onScroll:N})},gn=100;function Gt(r){var o=r.columns,u=r.scroll,y=r.prefixCls,N=y===void 0?h:y,O=r.className,oe=r.listItemHeight,re=u||{},ee=re.x,ge=re.y;typeof ee!="number"&&(ee=((o||[]).length+1)*gn),typeof ge!="number"&&(ge=500);var Oe=n.useMemo(function(){return{scrollY:ge,listItemHeight:oe}},[ge,oe]);return n.createElement(zn.Provider,{value:Oe},n.createElement(Pn,(0,D.Z)({},r,{className:ce()(O,"".concat(N,"-virtual")),scroll:(0,z.Z)((0,z.Z)({},u),{},{x:ee}),components:{body:en},columns:o,internalHooks:l,tailor:!0})))}function At(r){return de(Gt,r)}var Ye=At(),xt=null;function tn(r){return null}var nn=tn;function Sn(r){return null}var Cn=Sn,Gn=e(2738),_n=e(68031),ot=e(36355),Ot=e(93891),$n=e(19716),sr=e(8628),Mn=e(31724),Yn=e(58421),wr=e(71418),Mr=e(88088);function Kn(r){return function(u){let{prefixCls:y,onExpand:N,record:O,expanded:oe,expandable:re}=u;const ee=`${y}-row-expand-icon`;return n.createElement("button",{type:"button",onClick:ge=>{N(O,ge),ge.stopPropagation()},className:ce()(ee,{[`${ee}-spaced`]:!re,[`${ee}-expanded`]:re&&oe,[`${ee}-collapsed`]:re&&!oe}),"aria-label":oe?r.collapse:r.expand,"aria-expanded":oe})}}var $r=Kn;function Jn(r,o){return"key"in r&&r.key!==void 0&&r.key!==null?r.key:r.dataIndex?Array.isArray(r.dataIndex)?r.dataIndex.join("."):r.dataIndex:o}function Kr(r,o){return o?`${o}-${r}`:`${r}`}function qr(r,o){return typeof r=="function"?r(o):r}function ao(r,o){const u=qr(r,o);return Object.prototype.toString.call(u)==="[object Object]"?"":u}var wo={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},ro=wo,uo=e(7657),yo=function(o,u){return n.createElement(uo.Z,(0,D.Z)({},o,{ref:u,icon:ro}))},Ln=n.forwardRef(yo),vr=Ln,Hn=e(56762);function Kt(r){const o=n.useRef(r),u=(0,Hn.Z)();return[()=>o.current,y=>{o.current=y,u()}]}var fr=e(3113),Br=e(24905),zr=e(38854),to=e(64165),no=e(20834),bo=e(40875),Lo=e(5112),Uo=e(17574),ko=e(47472),jo=e(92832);function Ia(r){let{value:o,onChange:u,filterSearch:y,tablePrefixCls:N,locale:O}=r;return y?n.createElement("div",{className:`${N}-filter-dropdown-search`},n.createElement(jo.default,{prefix:n.createElement(ko.Z,null),placeholder:O.filterSearchPlaceholder,onChange:u,value:o,htmlSize:1,className:`${N}-filter-dropdown-search-input`})):null}var da=Ia,fa=e(10228);const Na=r=>{const{keyCode:o}=r;o===fa.Z.ENTER&&r.stopPropagation()};var Oa=n.forwardRef((r,o)=>n.createElement("div",{className:r.className,onClick:u=>u.stopPropagation(),onKeyDown:Na,ref:o},r.children));function Io(r){let o=[];return(r||[]).forEach(u=>{let{value:y,children:N}=u;o.push(y),N&&(o=[].concat((0,$t.Z)(o),(0,$t.Z)(Io(N))))}),o}function Da(r){return r.some(o=>{let{children:u}=o;return u})}function ma(r,o){return typeof o=="string"||typeof o=="number"?o==null?void 0:o.toString().toLowerCase().includes(r.trim().toLowerCase()):!1}function va(r){let{filters:o,prefixCls:u,filteredKeys:y,filterMultiple:N,searchValue:O,filterSearch:oe}=r;return o.map((re,ee)=>{const ge=String(re.value);if(re.children)return{key:ge||ee,label:re.text,popupClassName:`${u}-dropdown-submenu`,children:va({filters:re.children,prefixCls:u,filteredKeys:y,filterMultiple:N,searchValue:O,filterSearch:oe})};const Oe=N?Br.default:Lo.ZP,we={key:re.value!==void 0?ge:ee,label:n.createElement(n.Fragment,null,n.createElement(Oe,{checked:y.includes(ge)}),n.createElement("span",null,re.text))};return O.trim()?typeof oe=="function"?oe(O,re)?we:null:ma(O,re.text)?we:null:we})}function _a(r){var o,u;const{tablePrefixCls:y,prefixCls:N,column:O,dropdownPrefixCls:oe,columnKey:re,filterMultiple:ee,filterMode:ge="menu",filterSearch:Oe=!1,filterState:we,triggerFilter:ze,locale:We,children:Xe,getPopupContainer:Ct}=r,{filterDropdownOpen:dt,onFilterDropdownOpenChange:Et,filterResetToDefaultFilteredValue:pt,defaultFilteredValue:_t,filterDropdownVisible:Xt,onFilterDropdownVisibleChange:cn}=O,[Ht,bn]=n.useState(!1),Nn=!!(we&&(!((o=we.filteredKeys)===null||o===void 0)&&o.length||we.forceFiltered)),Rt=Jt=>{bn(Jt),Et==null||Et(Jt),cn==null||cn(Jt)},Yt=(u=dt!=null?dt:Xt)!==null&&u!==void 0?u:Ht,Mt=we==null?void 0:we.filteredKeys,[It,zt]=Kt(Mt||[]),hn=Jt=>{let{selectedKeys:On}=Jt;zt(On)},Fn=(Jt,On)=>{let{node:tr,checked:Un}=On;hn(ee?{selectedKeys:Jt}:{selectedKeys:Un&&tr.key?[tr.key]:[]})};n.useEffect(()=>{Ht&&hn({selectedKeys:Mt||[]})},[Mt]);const[Dn,un]=n.useState([]),jn=Jt=>{un(Jt)},[Wn,Cr]=n.useState(""),nr=Jt=>{const{value:On}=Jt.target;Cr(On)};n.useEffect(()=>{Ht||Cr("")},[Ht]);const Fr=Jt=>{const On=Jt&&Jt.length?Jt:null;if(On===null&&(!we||!we.filteredKeys)||(0,p.Z)(On,we==null?void 0:we.filteredKeys,!0))return null;ze({column:O,key:re,filteredKeys:On})},Nr=()=>{Rt(!1),Fr(It())},Bn=function(){let{confirm:Jt,closeDropdown:On}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Jt&&Fr([]),On&&Rt(!1),Cr(""),zt(pt?(_t||[]).map(tr=>String(tr)):[])},Hr=function(){let{closeDropdown:Jt}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Jt&&Rt(!1),Fr(It())},or=Jt=>{Jt&&Mt!==void 0&&zt(Mt||[]),Rt(Jt),!Jt&&!O.filterDropdown&&Nr()},Xn=ce()({[`${oe}-menu-without-submenu`]:!Da(O.filters||[])}),Sr=Jt=>{if(Jt.target.checked){const On=Io(O==null?void 0:O.filters).map(tr=>String(tr));zt(On)}else zt([])},Qr=Jt=>{let{filters:On}=Jt;return(On||[]).map((tr,Un)=>{const eo=String(tr.value),c={title:tr.text,key:tr.value!==void 0?eo:Un};return tr.children&&(c.children=Qr({filters:tr.children})),c})},pn=Jt=>{var On;return Object.assign(Object.assign({},Jt),{text:Jt.title,value:Jt.key,children:((On=Jt.children)===null||On===void 0?void 0:On.map(tr=>pn(tr)))||[]})};let fn;if(typeof O.filterDropdown=="function")fn=O.filterDropdown({prefixCls:`${oe}-custom`,setSelectedKeys:Jt=>hn({selectedKeys:Jt}),selectedKeys:It(),confirm:Hr,clearFilters:Bn,filters:O.filters,visible:Yt,close:()=>{Rt(!1)}});else if(O.filterDropdown)fn=O.filterDropdown;else{const Jt=It()||[],On=()=>(O.filters||[]).length===0?n.createElement(to.Z,{image:to.Z.PRESENTED_IMAGE_SIMPLE,description:We.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):ge==="tree"?n.createElement(n.Fragment,null,n.createElement(da,{filterSearch:Oe,value:Wn,onChange:nr,tablePrefixCls:y,locale:We}),n.createElement("div",{className:`${y}-filter-dropdown-tree`},ee?n.createElement(Br.default,{checked:Jt.length===Io(O.filters).length,indeterminate:Jt.length>0&&Jt.lengthtypeof Oe=="function"?Oe(Wn,pn(Un)):ma(Wn,Un.title):void 0}))):n.createElement(n.Fragment,null,n.createElement(da,{filterSearch:Oe,value:Wn,onChange:nr,tablePrefixCls:y,locale:We}),n.createElement(no.default,{selectable:!0,multiple:ee,prefixCls:`${oe}-menu`,className:Xn,onSelect:hn,onDeselect:hn,selectedKeys:Jt,getPopupContainer:Ct,openKeys:Dn,onOpenChange:jn,items:va({filters:O.filters||[],filterSearch:Oe,prefixCls:N,filteredKeys:It(),filterMultiple:ee,searchValue:Wn})})),tr=()=>pt?(0,p.Z)((_t||[]).map(Un=>String(Un)),Jt,!0):Jt.length===0;fn=n.createElement(n.Fragment,null,On(),n.createElement("div",{className:`${N}-dropdown-btns`},n.createElement(fr.ZP,{type:"link",size:"small",disabled:tr(),onClick:()=>Bn()},We.filterReset),n.createElement(fr.ZP,{type:"primary",size:"small",onClick:Nr},We.filterConfirm)))}O.filterDropdown&&(fn=n.createElement(bo.J,{selectable:void 0},fn));const dn=()=>n.createElement(Oa,{className:`${N}-dropdown`},fn);let rn;typeof O.filterIcon=="function"?rn=O.filterIcon(Nn):O.filterIcon?rn=O.filterIcon:rn=n.createElement(vr,null);const{direction:rr}=n.useContext(ot.E_);return n.createElement("div",{className:`${N}-column`},n.createElement("span",{className:`${y}-column-title`},Xe),n.createElement(zr.Z,{dropdownRender:dn,trigger:["click"],open:Yt,onOpenChange:or,getPopupContainer:Ct,placement:rr==="rtl"?"bottomLeft":"bottomRight"},n.createElement("span",{role:"button",tabIndex:-1,className:ce()(`${N}-trigger`,{active:Nn}),onClick:Jt=>{Jt.stopPropagation()}},rn)))}var Ba=_a;function Vo(r,o,u){let y=[];return(r||[]).forEach((N,O)=>{var oe;const re=Kr(O,u);if(N.filters||"filterDropdown"in N||"onFilter"in N)if("filteredValue"in N){let ee=N.filteredValue;"filterDropdown"in N||(ee=(oe=ee==null?void 0:ee.map(String))!==null&&oe!==void 0?oe:ee),y.push({column:N,key:Jn(N,re),filteredKeys:ee,forceFiltered:N.filtered})}else y.push({column:N,key:Jn(N,re),filteredKeys:o&&N.defaultFilteredValue?N.defaultFilteredValue:void 0,forceFiltered:N.filtered});"children"in N&&(y=[].concat((0,$t.Z)(y),(0,$t.Z)(Vo(N.children,o,re))))}),y}function pa(r,o,u,y,N,O,oe,re){return u.map((ee,ge)=>{const Oe=Kr(ge,re),{filterMultiple:we=!0,filterMode:ze,filterSearch:We}=ee;let Xe=ee;if(Xe.filters||Xe.filterDropdown){const Ct=Jn(Xe,Oe),dt=y.find(Et=>{let{key:pt}=Et;return Ct===pt});Xe=Object.assign(Object.assign({},Xe),{title:Et=>n.createElement(Ba,{tablePrefixCls:r,prefixCls:`${r}-filter`,dropdownPrefixCls:o,column:Xe,columnKey:Ct,filterState:dt,filterMultiple:we,filterMode:ze,filterSearch:We,triggerFilter:O,locale:N,getPopupContainer:oe},qr(ee.title,Et))})}return"children"in Xe&&(Xe=Object.assign(Object.assign({},Xe),{children:pa(r,o,Xe.children,y,N,O,oe,Oe)})),Xe})}function ga(r){const o={};return r.forEach(u=>{let{key:y,filteredKeys:N,column:O}=u;const{filters:oe,filterDropdown:re}=O;if(re)o[y]=N||null;else if(Array.isArray(N)){const ee=Io(oe);o[y]=ee.filter(ge=>N.includes(String(ge)))}else o[y]=null}),o}function Ta(r,o){return o.reduce((u,y)=>{const{column:{onFilter:N,filters:O},filteredKeys:oe}=y;return N&&oe&&oe.length?u.filter(re=>oe.some(ee=>{const ge=Io(O),Oe=ge.findIndex(ze=>String(ze)===String(ee)),we=Oe!==-1?ge[Oe]:ee;return N(we,re)})):u},r)}const $o=r=>r.flatMap(o=>"children"in o?[o].concat((0,$t.Z)($o(o.children||[]))):[o]);function Qt(r){let{prefixCls:o,dropdownPrefixCls:u,mergedColumns:y,onFilterChange:N,getPopupContainer:O,locale:oe}=r;const re=n.useMemo(()=>$o(y||[]),[y]),[ee,ge]=n.useState(()=>Vo(re,!0)),Oe=n.useMemo(()=>{const Xe=Vo(re,!1);if(Xe.length===0)return Xe;let Ct=!0,dt=!0;if(Xe.forEach(Et=>{let{filteredKeys:pt}=Et;pt!==void 0?Ct=!1:dt=!1}),Ct){const Et=(re||[]).map((pt,_t)=>Jn(pt,Kr(_t)));return ee.filter(pt=>{let{key:_t}=pt;return Et.includes(_t)}).map(pt=>{const _t=re[Et.findIndex(Xt=>Xt===pt.key)];return Object.assign(Object.assign({},pt),{column:Object.assign(Object.assign({},pt.column),_t),forceFiltered:_t.filtered})})}return Xe},[re,ee]),we=n.useMemo(()=>ga(Oe),[Oe]),ze=Xe=>{const Ct=Oe.filter(dt=>{let{key:Et}=dt;return Et!==Xe.key});Ct.push(Xe),ge(Ct),N(ga(Ct),Ct)};return[Xe=>pa(o,u,Xe,Oe,oe,ze,O),Oe,we]}var G=Qt;function xo(r,o,u){const y=n.useRef({});function N(O){if(!y.current||y.current.data!==r||y.current.childrenColumnName!==o||y.current.getRowKey!==u){let re=function(ee){ee.forEach((ge,Oe)=>{const we=u(ge,Oe);oe.set(we,ge),ge&&typeof ge=="object"&&o in ge&&re(ge[o]||[])})};const oe=new Map;re(r),y.current={data:r,childrenColumnName:o,kvMap:oe,getRowKey:u}}return y.current.kvMap.get(O)}return[N]}var bt=e(50371),el=function(r,o){var u={};for(var y in r)Object.prototype.hasOwnProperty.call(r,y)&&o.indexOf(y)<0&&(u[y]=r[y]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,y=Object.getOwnPropertySymbols(r);N{const O=r[N];typeof O!="function"&&(u[N]=O)}),u}function nl(r,o,u){const y=u&&typeof u=="object"?u:{},{total:N=0}=y,O=el(y,["total"]),[oe,re]=(0,n.useState)(()=>({current:"defaultCurrent"in O?O.defaultCurrent:1,pageSize:"defaultPageSize"in O?O.defaultPageSize:No})),ee=(0,bt.Z)(oe,O,{total:N>0?N:r}),ge=Math.ceil((N||r)/ee.pageSize);ee.current>ge&&(ee.current=ge||1);const Oe=(ze,We)=>{re({current:ze!=null?ze:1,pageSize:We||ee.pageSize})},we=(ze,We)=>{var Xe;u&&((Xe=u.onChange)===null||Xe===void 0||Xe.call(u,ze,We)),Oe(ze,We),o(ze,We||(ee==null?void 0:ee.pageSize))};return u===!1?[{},()=>{}]:[Object.assign(Object.assign({},ee),{onChange:we}),Oe]}var Oo=nl,Do=e(84105),Ra=e(35654),ha=e(90782),Ma=e(71430),ya=e(18929);const fo={},xa="SELECT_ALL",_o="SELECT_INVERT",Ca="SELECT_NONE",ba=[],Fa=(r,o)=>{let u=[];return(o||[]).forEach(y=>{u.push(y),y&&typeof y=="object"&&r in y&&(u=[].concat((0,$t.Z)(u),(0,$t.Z)(Fa(r,y[r]))))}),u};var ol=(r,o)=>{const{preserveSelectedRowKeys:u,selectedRowKeys:y,defaultSelectedRowKeys:N,getCheckboxProps:O,onChange:oe,onSelect:re,onSelectAll:ee,onSelectInvert:ge,onSelectNone:Oe,onSelectMultiple:we,columnWidth:ze,type:We,selections:Xe,fixed:Ct,renderCell:dt,hideSelectAll:Et,checkStrictly:pt=!0}=o||{},{prefixCls:_t,data:Xt,pageData:cn,getRecordByKey:Ht,getRowKey:bn,expandType:Nn,childrenColumnName:Rt,locale:Yt,getPopupContainer:Mt}=r,[It,zt]=(0,ya.Z)(y||N||ba,{value:y}),hn=n.useRef(new Map),Fn=(0,n.useCallback)(pn=>{if(u){const fn=new Map;pn.forEach(dn=>{let rn=Ht(dn);!rn&&hn.current.has(dn)&&(rn=hn.current.get(dn)),fn.set(dn,rn)}),hn.current=fn}},[Ht,u]);n.useEffect(()=>{Fn(It)},[It]);const{keyEntities:Dn}=(0,n.useMemo)(()=>{if(pt)return{keyEntities:null};let pn=Xt;if(u){const fn=new Set(Xt.map((rn,rr)=>bn(rn,rr))),dn=Array.from(hn.current).reduce((rn,rr)=>{let[Jt,On]=rr;return fn.has(Jt)?rn:rn.concat(On)},[]);pn=[].concat((0,$t.Z)(pn),(0,$t.Z)(dn))}return(0,Ma.I8)(pn,{externalGetKey:bn,childrenPropName:Rt})},[Xt,bn,pt,Rt,u]),un=(0,n.useMemo)(()=>Fa(Rt,cn),[Rt,cn]),jn=(0,n.useMemo)(()=>{const pn=new Map;return un.forEach((fn,dn)=>{const rn=bn(fn,dn),rr=(O?O(fn):null)||{};pn.set(rn,rr)}),pn},[un,bn,O]),Wn=(0,n.useCallback)(pn=>{var fn;return!!(!((fn=jn.get(bn(pn)))===null||fn===void 0)&&fn.disabled)},[jn,bn]),[Cr,nr]=(0,n.useMemo)(()=>{if(pt)return[It||[],[]];const{checkedKeys:pn,halfCheckedKeys:fn}=(0,ha.S)(It,!0,Dn,Wn);return[pn||[],fn]},[It,pt,Dn,Wn]),Fr=(0,n.useMemo)(()=>{const pn=We==="radio"?Cr.slice(0,1):Cr;return new Set(pn)},[Cr,We]),Nr=(0,n.useMemo)(()=>We==="radio"?new Set:new Set(nr),[nr,We]),[Bn,Hr]=(0,n.useState)(null);n.useEffect(()=>{o||zt(ba)},[!!o]);const or=(0,n.useCallback)((pn,fn)=>{let dn,rn;Fn(pn),u?(dn=pn,rn=pn.map(rr=>hn.current.get(rr))):(dn=[],rn=[],pn.forEach(rr=>{const Jt=Ht(rr);Jt!==void 0&&(dn.push(rr),rn.push(Jt))})),zt(dn),oe==null||oe(dn,rn,{type:fn})},[zt,Ht,oe,u]),Xn=(0,n.useCallback)((pn,fn,dn,rn)=>{if(re){const rr=dn.map(Jt=>Ht(Jt));re(Ht(pn),fn,rr,rn)}or(dn,"single")},[re,Ht,or]),Sr=(0,n.useMemo)(()=>!Xe||Et?null:(Xe===!0?[xa,_o,Ca]:Xe).map(fn=>fn===xa?{key:"all",text:Yt.selectionAll,onSelect(){or(Xt.map((dn,rn)=>bn(dn,rn)).filter(dn=>{const rn=jn.get(dn);return!(rn!=null&&rn.disabled)||Fr.has(dn)}),"all")}}:fn===_o?{key:"invert",text:Yt.selectInvert,onSelect(){const dn=new Set(Fr);cn.forEach((rr,Jt)=>{const On=bn(rr,Jt),tr=jn.get(On);tr!=null&&tr.disabled||(dn.has(On)?dn.delete(On):dn.add(On))});const rn=Array.from(dn);ge&&ge(rn),or(rn,"invert")}}:fn===Ca?{key:"none",text:Yt.selectNone,onSelect(){Oe==null||Oe(),or(Array.from(Fr).filter(dn=>{const rn=jn.get(dn);return rn==null?void 0:rn.disabled}),"none")}}:fn).map(fn=>Object.assign(Object.assign({},fn),{onSelect:function(){for(var dn,rn,rr=arguments.length,Jt=new Array(rr),On=0;On{var fn;if(!o)return pn.filter(st=>st!==fo);let dn=(0,$t.Z)(pn);const rn=new Set(Fr),rr=un.map(bn).filter(st=>!jn.get(st).disabled),Jt=rr.every(st=>rn.has(st)),On=rr.some(st=>rn.has(st)),tr=()=>{const st=[];Jt?rr.forEach(vt=>{rn.delete(vt),st.push(vt)}):rr.forEach(vt=>{rn.has(vt)||(rn.add(vt),st.push(vt))});const gt=Array.from(rn);ee==null||ee(!Jt,gt.map(vt=>Ht(vt)),st.map(vt=>Ht(vt))),or(gt,"all"),Hr(null)};let Un;if(We!=="radio"){let st;if(Sr){const Ge={getPopupContainer:Mt,items:Sr.map((an,gr)=>{const{key:Vt,text:Tn,onSelect:Pr}=an;return{key:Vt!=null?Vt:gr,onClick:()=>{Pr==null||Pr(rr)},label:Tn}})};st=n.createElement("div",{className:`${_t}-selection-extra`},n.createElement(zr.Z,{menu:Ge,getPopupContainer:Mt},n.createElement("span",null,n.createElement(Do.Z,null))))}const gt=un.map((Ge,an)=>{const gr=bn(Ge,an),Vt=jn.get(gr)||{};return Object.assign({checked:rn.has(gr)},Vt)}).filter(Ge=>{let{disabled:an}=Ge;return an}),vt=!!gt.length&>.length===un.length,Wt=vt&>.every(Ge=>{let{checked:an}=Ge;return an}),nt=vt&>.some(Ge=>{let{checked:an}=Ge;return an});Un=!Et&&n.createElement("div",{className:`${_t}-selection`},n.createElement(Br.default,{checked:vt?Wt:!!un.length&&Jt,indeterminate:vt?!Wt&&nt:!Jt&&On,onChange:tr,disabled:un.length===0||vt,"aria-label":st?"Custom selection":"Select all",skipGroup:!0}),st)}let eo;We==="radio"?eo=(st,gt,vt)=>{const Wt=bn(gt,vt),nt=rn.has(Wt);return{node:n.createElement(Lo.ZP,Object.assign({},jn.get(Wt),{checked:nt,onClick:Ge=>Ge.stopPropagation(),onChange:Ge=>{rn.has(Wt)||Xn(Wt,!0,[Wt],Ge.nativeEvent)}})),checked:nt}}:eo=(st,gt,vt)=>{var Wt;const nt=bn(gt,vt),Ge=rn.has(nt),an=Nr.has(nt),gr=jn.get(nt);let Vt;return Nn==="nest"?Vt=an:Vt=(Wt=gr==null?void 0:gr.indeterminate)!==null&&Wt!==void 0?Wt:an,{node:n.createElement(Br.default,Object.assign({},gr,{indeterminate:Vt,checked:Ge,skipGroup:!0,onClick:Tn=>Tn.stopPropagation(),onChange:Tn=>{let{nativeEvent:Pr}=Tn;const{shiftKey:Gr}=Pr;let Eo=-1,mo=-1;if(Gr&&pt){const Tt=new Set([Bn,nt]);rr.some((Yr,Tr)=>{if(Tt.has(Yr))if(Eo===-1)Eo=Tr;else return mo=Tr,!0;return!1})}if(mo!==-1&&Eo!==mo&&pt){const Tt=rr.slice(Eo,mo+1),Yr=[];Ge?Tt.forEach(ar=>{rn.has(ar)&&(Yr.push(ar),rn.delete(ar))}):Tt.forEach(ar=>{rn.has(ar)||(Yr.push(ar),rn.add(ar))});const Tr=Array.from(rn);we==null||we(!Ge,Tr.map(ar=>Ht(ar)),Yr.map(ar=>Ht(ar))),or(Tr,"multiple")}else{const Tt=Cr;if(pt){const Yr=Ge?(0,Ra._5)(Tt,nt):(0,Ra.L0)(Tt,nt);Xn(nt,!Ge,Yr,Pr)}else{const Yr=(0,ha.S)([].concat((0,$t.Z)(Tt),[nt]),!0,Dn,Wn),{checkedKeys:Tr,halfCheckedKeys:ar}=Yr;let co=Tr;if(Ge){const go=new Set(Tr);go.delete(nt),co=(0,ha.S)(Array.from(go),{checked:!1,halfCheckedKeys:ar},Dn,Wn).checkedKeys}Xn(nt,!Ge,co,Pr)}}Hr(Ge?null:nt)}})),checked:Ge}};const c=(st,gt,vt)=>{const{node:Wt,checked:nt}=eo(st,gt,vt);return dt?dt(nt,gt,vt,Wt):Wt};if(!dn.includes(fo))if(dn.findIndex(st=>{var gt;return((gt=st[Bt])===null||gt===void 0?void 0:gt.columnType)==="EXPAND_COLUMN"})===0){const[st,...gt]=dn;dn=[st,fo].concat((0,$t.Z)(gt))}else dn=[fo].concat((0,$t.Z)(dn));const Ce=dn.indexOf(fo);dn=dn.filter((st,gt)=>st!==fo||gt===Ce);const Ve=dn[Ce-1],ft=dn[Ce+1];let Ue=Ct;Ue===void 0&&((ft==null?void 0:ft.fixed)!==void 0?Ue=ft.fixed:(Ve==null?void 0:Ve.fixed)!==void 0&&(Ue=Ve.fixed)),Ue&&Ve&&((fn=Ve[Bt])===null||fn===void 0?void 0:fn.columnType)==="EXPAND_COLUMN"&&Ve.fixed===void 0&&(Ve.fixed=Ue);const it=ce()(`${_t}-selection-col`,{[`${_t}-selection-col-with-dropdown`]:Xe&&We==="checkbox"}),yt={fixed:Ue,width:ze,className:`${_t}-selection-column`,title:o.columnTitle||Un,render:c,onCell:o.onCell,[Bt]:{className:it}};return dn.map(st=>st===fo?yt:st)},[bn,un,o,Cr,Fr,Nr,ze,Sr,Nn,Bn,jn,we,Xn,Wn]),Fr]},Xo=e(89489),al=e(59477),Ea=e(6848);const Go="ascend",Sa="descend";function Po(r){return typeof r.sorter=="object"&&typeof r.sorter.multiple=="number"?r.sorter.multiple:!1}function Yo(r){return typeof r=="function"?r:r&&typeof r=="object"&&r.compare?r.compare:!1}function ll(r,o){return o?r[r.indexOf(o)+1]:r[0]}function wa(r,o,u){let y=[];function N(O,oe){y.push({column:O,key:Jn(O,oe),multiplePriority:Po(O),sortOrder:O.sortOrder})}return(r||[]).forEach((O,oe)=>{const re=Kr(oe,u);O.children?("sortOrder"in O&&N(O,re),y=[].concat((0,$t.Z)(y),(0,$t.Z)(wa(O.children,o,re)))):O.sorter&&("sortOrder"in O?N(O,re):o&&O.defaultSortOrder&&y.push({column:O,key:Jn(O,re),multiplePriority:Po(O),sortOrder:O.defaultSortOrder}))}),y}function Bo(r,o,u,y,N,O,oe,re){return(o||[]).map((ee,ge)=>{const Oe=Kr(ge,re);let we=ee;if(we.sorter){const ze=we.sortDirections||N,We=we.showSorterTooltip===void 0?oe:we.showSorterTooltip,Xe=Jn(we,Oe),Ct=u.find(Nn=>{let{key:Rt}=Nn;return Rt===Xe}),dt=Ct?Ct.sortOrder:null,Et=ll(ze,dt);let pt;if(ee.sortIcon)pt=ee.sortIcon({sortOrder:dt});else{const Nn=ze.includes(Go)&&n.createElement(al.Z,{className:ce()(`${r}-column-sorter-up`,{active:dt===Go})}),Rt=ze.includes(Sa)&&n.createElement(Xo.Z,{className:ce()(`${r}-column-sorter-down`,{active:dt===Sa})});pt=n.createElement("span",{className:ce()(`${r}-column-sorter`,{[`${r}-column-sorter-full`]:!!(Nn&&Rt)})},n.createElement("span",{className:`${r}-column-sorter-inner`,"aria-hidden":"true"},Nn,Rt))}const{cancelSort:_t,triggerAsc:Xt,triggerDesc:cn}=O||{};let Ht=_t;Et===Sa?Ht=cn:Et===Go&&(Ht=Xt);const bn=typeof We=="object"?We:{title:Ht};we=Object.assign(Object.assign({},we),{className:ce()(we.className,{[`${r}-column-sort`]:dt}),title:Nn=>{const Rt=n.createElement("div",{className:`${r}-column-sorters`},n.createElement("span",{className:`${r}-column-title`},qr(ee.title,Nn)),pt);return We?n.createElement(Ea.Z,Object.assign({},bn),Rt):Rt},onHeaderCell:Nn=>{const Rt=ee.onHeaderCell&&ee.onHeaderCell(Nn)||{},Yt=Rt.onClick,Mt=Rt.onKeyDown;Rt.onClick=hn=>{y({column:ee,key:Xe,sortOrder:Et,multiplePriority:Po(ee)}),Yt==null||Yt(hn)},Rt.onKeyDown=hn=>{hn.keyCode===fa.Z.ENTER&&(y({column:ee,key:Xe,sortOrder:Et,multiplePriority:Po(ee)}),Mt==null||Mt(hn))};const It=ao(ee.title,{}),zt=It==null?void 0:It.toString();return dt?Rt["aria-sort"]=dt==="ascend"?"ascending":"descending":Rt["aria-label"]=zt||"",Rt.className=ce()(Rt.className,`${r}-column-has-sorters`),Rt.tabIndex=0,ee.ellipsis&&(Rt.title=(It!=null?It:"").toString()),Rt}})}return"children"in we&&(we=Object.assign(Object.assign({},we),{children:Bo(r,we.children,u,y,N,O,oe,Oe)})),we})}function il(r){const{column:o,sortOrder:u}=r;return{column:o,order:u,field:o.dataIndex,columnKey:o.key}}function Aa(r){const o=r.filter(u=>{let{sortOrder:y}=u;return y}).map(il);return o.length===0&&r.length?Object.assign(Object.assign({},il(r[r.length-1])),{column:void 0}):o.length<=1?o[0]||{}:o}function Jo(r,o,u){const y=o.slice().sort((oe,re)=>re.multiplePriority-oe.multiplePriority),N=r.slice(),O=y.filter(oe=>{let{column:{sorter:re},sortOrder:ee}=oe;return Yo(re)&&ee});return O.length?N.sort((oe,re)=>{for(let ee=0;ee{const re=oe[u];return re?Object.assign(Object.assign({},oe),{[u]:Jo(re,o,u)}):oe}):N}function Ko(r){let{prefixCls:o,mergedColumns:u,onSorterChange:y,sortDirections:N,tableLocale:O,showSorterTooltip:oe}=r;const[re,ee]=n.useState(wa(u,!0)),ge=n.useMemo(()=>{let Xe=!0;const Ct=wa(u,!1);if(!Ct.length)return re;const dt=[];function Et(_t){Xe?dt.push(_t):dt.push(Object.assign(Object.assign({},_t),{sortOrder:null}))}let pt=null;return Ct.forEach(_t=>{pt===null?(Et(_t),_t.sortOrder&&(_t.multiplePriority===!1?Xe=!1:pt=!0)):(pt&&_t.multiplePriority!==!1||(Xe=!1),Et(_t))}),dt},[u,re]),Oe=n.useMemo(()=>{const Xe=ge.map(Ct=>{let{column:dt,sortOrder:Et}=Ct;return{column:dt,order:Et}});return{sortColumns:Xe,sortColumn:Xe[0]&&Xe[0].column,sortOrder:Xe[0]&&Xe[0].order}},[ge]);function we(Xe){let Ct;Xe.multiplePriority===!1||!ge.length||ge[0].multiplePriority===!1?Ct=[Xe]:Ct=[].concat((0,$t.Z)(ge.filter(dt=>{let{key:Et}=dt;return Et!==Xe.key})),[Xe]),ee(Ct),y(Aa(Ct),Ct)}return[Xe=>Bo(o,Xe,ge,we,N,O,oe),ge,Oe,()=>Aa(ge)]}function To(r,o){return r.map(u=>{const y=Object.assign({},u);return y.title=qr(u.title,o),"children"in y&&(y.children=To(y.children,o)),y})}function Qo(r){return[n.useCallback(u=>To(u,r),[r])]}var qo=yr((r,o)=>{const{_renderTimes:u}=r,{_renderTimes:y}=o;return u!==y}),sl=At((r,o)=>{const{_renderTimes:u}=r,{_renderTimes:y}=o;return u!==y}),Fo=e(64993),ea=e(17313),cl=e(83116),ul=e(37613),dl=r=>{const{componentCls:o}=r,u=`${r.lineWidth}px ${r.lineType} ${r.tableBorderColor}`,y=(N,O,oe)=>({[`&${o}-${N}`]:{[`> ${o}-container`]:{[`> ${o}-content, > ${o}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${o}-expanded-row-fixed`]:{margin:`-${O}px -${oe+r.lineWidth}px`}}}}}});return{[`${o}-wrapper`]:{[`${o}${o}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${o}-title`]:{border:u,borderBottom:0},[`> ${o}-container`]:{borderInlineStart:u,borderTop:u,[` - > ${o}-content, - > ${o}-header, - > ${o}-body, - > ${o}-summary - `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${o}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${o}-expanded-row-fixed`]:{margin:`-${r.tablePaddingVertical}px -${r.tablePaddingHorizontal+r.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:r.lineWidth,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${o}-scroll-horizontal`]:{[`> ${o}-container > ${o}-body`]:{"> table > tbody":{[` - > tr${o}-expanded-row, - > tr${o}-placeholder - `]:{"> th, > td":{borderInlineEnd:0}}}}}},y("middle",r.tablePaddingVerticalMiddle,r.tablePaddingHorizontalMiddle)),y("small",r.tablePaddingVerticalSmall,r.tablePaddingHorizontalSmall)),{[`> ${o}-footer`]:{border:u,borderTop:0}}),[`${o}-cell`]:{[`${o}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${r.lineWidth}px 0 ${r.lineWidth}px ${r.tableHeaderBg}`}},[`${o}-bordered ${o}-cell-scrollbar`]:{borderInlineEnd:u}}}},fl=r=>{const{componentCls:o}=r;return{[`${o}-wrapper`]:{[`${o}-cell-ellipsis`]:Object.assign(Object.assign({},ea.vS),{wordBreak:"keep-all",[` - &${o}-cell-fix-left-last, - &${o}-cell-fix-right-first - `]:{overflow:"visible",[`${o}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${o}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},ka=r=>{const{componentCls:o}=r;return{[`${o}-wrapper`]:{[`${o}-tbody > tr${o}-placeholder`]:{textAlign:"center",color:r.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:r.colorBgContainer}}}}},ja=e(15969),na=r=>{const{componentCls:o,antCls:u,controlInteractiveSize:y,motionDurationSlow:N,lineWidth:O,paddingXS:oe,lineType:re,tableBorderColor:ee,tableExpandIconBg:ge,tableExpandColumnWidth:Oe,borderRadius:we,fontSize:ze,fontSizeSM:We,lineHeight:Xe,tablePaddingVertical:Ct,tablePaddingHorizontal:dt,tableExpandedRowBg:Et,paddingXXS:pt}=r,_t=y/2-O,Xt=_t*2+O*3,cn=`${O}px ${re} ${ee}`,Ht=pt-O;return{[`${o}-wrapper`]:{[`${o}-expand-icon-col`]:{width:Oe},[`${o}-row-expand-icon-cell`]:{textAlign:"center",[`${o}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${o}-row-indent`]:{height:1,float:"left"},[`${o}-row-expand-icon`]:Object.assign(Object.assign({},(0,ja.N)(r)),{position:"relative",float:"left",boxSizing:"border-box",width:Xt,height:Xt,padding:0,color:"inherit",lineHeight:`${Xt}px`,background:ge,border:cn,borderRadius:we,transform:`scale(${y/Xt})`,transition:`all ${N}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${N} ease-out`,content:'""'},"&::before":{top:_t,insetInlineEnd:Ht,insetInlineStart:Ht,height:O},"&::after":{top:Ht,bottom:Ht,insetInlineStart:_t,width:O,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${o}-row-indent + ${o}-row-expand-icon`]:{marginTop:(ze*Xe-O*3)/2-Math.ceil((We*1.4-O*3)/2),marginInlineEnd:oe},[`tr${o}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Et}},[`${u}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${o}-expanded-row-fixed`]:{position:"relative",margin:`-${Ct}px -${dt}px`,padding:`${Ct}px ${dt}px`}}}},ra=r=>{const{componentCls:o,antCls:u,iconCls:y,tableFilterDropdownWidth:N,tableFilterDropdownSearchWidth:O,paddingXXS:oe,paddingXS:re,colorText:ee,lineWidth:ge,lineType:Oe,tableBorderColor:we,tableHeaderIconColor:ze,fontSizeSM:We,tablePaddingHorizontal:Xe,borderRadius:Ct,motionDurationSlow:dt,colorTextDescription:Et,colorPrimary:pt,tableHeaderFilterActiveBg:_t,colorTextDisabled:Xt,tableFilterDropdownBg:cn,tableFilterDropdownHeight:Ht,controlItemBgHover:bn,controlItemBgActive:Nn,boxShadowSecondary:Rt,filterDropdownMenuBg:Yt}=r,Mt=`${u}-dropdown`,It=`${o}-filter-dropdown`,zt=`${u}-tree`,hn=`${ge}px ${Oe} ${we}`;return[{[`${o}-wrapper`]:{[`${o}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${o}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-oe,marginInline:`${oe}px ${-Xe/2}px`,padding:`0 ${oe}px`,color:ze,fontSize:We,borderRadius:Ct,cursor:"pointer",transition:`all ${dt}`,"&:hover":{color:Et,background:_t},"&.active":{color:pt}}}},{[`${u}-dropdown`]:{[It]:Object.assign(Object.assign({},(0,ea.Wf)(r)),{minWidth:N,backgroundColor:cn,borderRadius:Ct,boxShadow:Rt,overflow:"hidden",[`${Mt}-menu`]:{maxHeight:Ht,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Yt,"&:empty::after":{display:"block",padding:`${re}px 0`,color:Xt,fontSize:We,textAlign:"center",content:'"Not Found"'}},[`${It}-tree`]:{paddingBlock:`${re}px 0`,paddingInline:re,[zt]:{padding:0},[`${zt}-treenode ${zt}-node-content-wrapper:hover`]:{backgroundColor:bn},[`${zt}-treenode-checkbox-checked ${zt}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Nn}}},[`${It}-search`]:{padding:re,borderBottom:hn,"&-input":{input:{minWidth:O},[y]:{color:Xt}}},[`${It}-checkall`]:{width:"100%",marginBottom:oe,marginInlineStart:oe},[`${It}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${re-ge}px ${re}px`,overflow:"hidden",borderTop:hn}})}},{[`${u}-dropdown ${It}, ${It}-submenu`]:{[`${u}-checkbox-wrapper + span`]:{paddingInlineStart:re,color:ee},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},oa=r=>{const{componentCls:o,lineWidth:u,colorSplit:y,motionDurationSlow:N,zIndexTableFixed:O,tableBg:oe,zIndexTableSticky:re}=r,ee=y;return{[`${o}-wrapper`]:{[` - ${o}-cell-fix-left, - ${o}-cell-fix-right - `]:{position:"sticky !important",zIndex:O,background:oe},[` - ${o}-cell-fix-left-first::after, - ${o}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-u,width:30,transform:"translateX(100%)",transition:`box-shadow ${N}`,content:'""',pointerEvents:"none"},[`${o}-cell-fix-left-all::after`]:{display:"none"},[` - ${o}-cell-fix-right-first::after, - ${o}-cell-fix-right-last::after - `]:{position:"absolute",top:0,bottom:-u,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${N}`,content:'""',pointerEvents:"none"},[`${o}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:re+1,width:30,transition:`box-shadow ${N}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${o}-ping-left`]:{[`&:not(${o}-has-fix-left) ${o}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${ee}`}},[` - ${o}-cell-fix-left-first::after, - ${o}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${ee}`},[`${o}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${o}-ping-right`]:{[`&:not(${o}-has-fix-right) ${o}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${ee}`}},[` - ${o}-cell-fix-right-first::after, - ${o}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${ee}`}}}}},cr=r=>{const{componentCls:o,antCls:u}=r;return{[`${o}-wrapper`]:{[`${o}-pagination${u}-pagination`]:{margin:`${r.margin}px 0`},[`${o}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:r.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},pr=r=>{const{componentCls:o,tableRadius:u}=r;return{[`${o}-wrapper`]:{[o]:{[`${o}-title, ${o}-header`]:{borderRadius:`${u}px ${u}px 0 0`},[`${o}-title + ${o}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${o}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:u,borderStartEndRadius:u,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:u},"> *:last-child":{borderStartEndRadius:u}}},"&-footer":{borderRadius:`0 0 ${u}px ${u}px`}}}}},vl=r=>{const{componentCls:o}=r;return{[`${o}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${o}-pagination-left`]:{justifyContent:"flex-end"},[`${o}-pagination-right`]:{justifyContent:"flex-start"},[`${o}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${o}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${o}-row-indent`]:{float:"right"}}}}},ia=r=>{const{componentCls:o,antCls:u,iconCls:y,fontSizeIcon:N,padding:O,paddingXS:oe,tableHeaderIconColor:re,tableHeaderIconColorHover:ee,tableSelectionColumnWidth:ge}=r;return{[`${o}-wrapper`]:{[`${o}-selection-col`]:{width:ge,[`&${o}-selection-col-with-dropdown`]:{width:ge+N+O/4}},[`${o}-bordered ${o}-selection-col`]:{width:ge+oe*2,[`&${o}-selection-col-with-dropdown`]:{width:ge+N+O/4+oe*2}},[` - table tr th${o}-selection-column, - table tr td${o}-selection-column - `]:{paddingInlineEnd:r.paddingXS,paddingInlineStart:r.paddingXS,textAlign:"center",[`${u}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${o}-selection-column${o}-cell-fix-left`]:{zIndex:r.zIndexTableFixed+1},[`table tr th${o}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${o}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${o}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${r.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${r.tablePaddingHorizontal/4}px`,[y]:{color:re,fontSize:N,verticalAlign:"baseline","&:hover":{color:ee}}}}}},gl=r=>{const{componentCls:o}=r,u=(y,N,O,oe)=>({[`${o}${o}-${y}`]:{fontSize:oe,[` - ${o}-title, - ${o}-footer, - ${o}-cell, - ${o}-thead > tr > th, - ${o}-tbody > tr > th, - ${o}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{padding:`${N}px ${O}px`},[`${o}-filter-trigger`]:{marginInlineEnd:`-${O/2}px`},[`${o}-expanded-row-fixed`]:{margin:`-${N}px -${O}px`},[`${o}-tbody`]:{[`${o}-wrapper:only-child ${o}`]:{marginBlock:`-${N}px`,marginInline:`${r.tableExpandColumnWidth-O}px -${O}px`}},[`${o}-selection-column`]:{paddingInlineStart:`${O/4}px`}}});return{[`${o}-wrapper`]:Object.assign(Object.assign({},u("middle",r.tablePaddingVerticalMiddle,r.tablePaddingHorizontalMiddle,r.tableFontSizeMiddle)),u("small",r.tablePaddingVerticalSmall,r.tablePaddingHorizontalSmall,r.tableFontSizeSmall))}},Ka=r=>{const{componentCls:o,marginXXS:u,fontSizeIcon:y,tableHeaderIconColor:N,tableHeaderIconColorHover:O}=r;return{[`${o}-wrapper`]:{[`${o}-thead th${o}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${r.motionDurationSlow}`,"&:hover":{background:r.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:r.colorPrimary},[` - &${o}-cell-fix-left:hover, - &${o}-cell-fix-right:hover - `]:{background:r.tableFixedHeaderSortActiveBg}},[`${o}-thead th${o}-column-sort`]:{background:r.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${o}-column-sort`]:{background:r.tableBodySortBg},[`${o}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${o}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${o}-column-sorter`]:{marginInlineStart:u,color:N,fontSize:0,transition:`color ${r.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:y,"&.active":{color:r.colorPrimary}},[`${o}-column-sorter-up + ${o}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${o}-column-sorters:hover ${o}-column-sorter`]:{color:O}}}},za=r=>{const{componentCls:o,opacityLoading:u,tableScrollThumbBg:y,tableScrollThumbBgHover:N,tableScrollThumbSize:O,tableScrollBg:oe,zIndexTableSticky:re,stickyScrollBarBorderRadius:ee}=r,ge=`${r.lineWidth}px ${r.lineType} ${r.tableBorderColor}`;return{[`${o}-wrapper`]:{[`${o}-sticky`]:{"&-holder":{position:"sticky",zIndex:re,background:r.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${O}px !important`,zIndex:re,display:"flex",alignItems:"center",background:oe,borderTop:ge,opacity:u,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:O,backgroundColor:y,borderRadius:ee,transition:`all ${r.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:N}}}}}}},Ha=r=>{const{componentCls:o,lineWidth:u,tableBorderColor:y}=r,N=`${u}px ${r.lineType} ${y}`;return{[`${o}-wrapper`]:{[`${o}-summary`]:{position:"relative",zIndex:r.zIndexTableFixed,background:r.tableBg,"> tr":{"> th, > td":{borderBottom:N}}},[`div${o}-summary`]:{boxShadow:`0 -${u}px 0 ${y}`}}}},yl=r=>{const{componentCls:o}=r,u=`${r.lineWidth}px ${r.lineType} ${r.tableBorderColor}`,y=`${o}-expanded-row-cell`;return{[`${o}-wrapper`]:{[`${o}-tbody-virtual`]:{[`${o}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${o}-cell`]:{borderBottom:u},[`${o}-expanded-row`]:{[`${y}${y}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${r.lineWidth}px)`,borderInlineEnd:"none"}}},[`${o}-bordered`]:{[`${o}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:u,position:"absolute"},[`${o}-cell`]:{borderInlineEnd:u,[`&${o}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-r.lineWidth,borderInlineStart:u}}}}}}};const Wa=r=>{const{componentCls:o,fontWeightStrong:u,tablePaddingVertical:y,tablePaddingHorizontal:N,lineWidth:O,lineType:oe,tableBorderColor:re,tableFontSize:ee,tableBg:ge,tableRadius:Oe,tableHeaderTextColor:we,motionDurationMid:ze,tableHeaderBg:We,tableHeaderCellSplitColor:Xe,tableRowHoverBg:Ct,tableSelectedRowBg:dt,tableSelectedRowHoverBg:Et,tableFooterTextColor:pt,tableFooterBg:_t,paddingContentVerticalLG:Xt}=r,cn=`${O}px ${oe} ${re}`;return{[`${o}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ea.dF)()),{[o]:Object.assign(Object.assign({},(0,ea.Wf)(r)),{fontSize:ee,background:ge,borderRadius:`${Oe}px ${Oe}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Oe}px ${Oe}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` - ${o}-cell, - ${o}-thead > tr > th, - ${o}-tbody > tr > th, - ${o}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{position:"relative",padding:`${Xt}px ${N}px`,overflowWrap:"break-word"},[`${o}-title`]:{padding:`${y}px ${N}px`},[`${o}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:we,fontWeight:u,textAlign:"start",background:We,borderBottom:cn,transition:`background ${ze} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${o}-selection-column):not(${o}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Xe,transform:"translateY(-50%)",transition:`background-color ${ze}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${o}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${ze}, border-color ${ze}`,borderBottom:cn,[` - > ${o}-wrapper:only-child, - > ${o}-expanded-row-fixed > ${o}-wrapper:only-child - `]:{[o]:{marginBlock:`-${y}px`,marginInline:`${r.tableExpandColumnWidth-N}px -${N}px`,[`${o}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:we,fontWeight:u,textAlign:"start",background:We,borderBottom:cn,transition:`background ${ze} ease`},[` - &${o}-row:hover > th, - &${o}-row:hover > td, - > th${o}-cell-row-hover, - > td${o}-cell-row-hover - `]:{background:Ct},[`&${o}-row-selected`]:{"> th, > td":{background:dt},"&:hover > th, &:hover > td":{background:Et}}}},[`${o}-footer`]:{padding:`${y}px ${N}px`,color:pt,background:_t}})}};var Ua=(0,cl.Z)("Table",r=>{const{colorTextHeading:o,colorSplit:u,colorIcon:y,colorIconHover:N,opacityLoading:O,colorBgContainer:oe,controlInteractiveSize:re,headerBg:ee,headerColor:ge,headerSortActiveBg:Oe,headerSortHoverBg:we,bodySortBg:ze,rowHoverBg:We,rowSelectedBg:Xe,rowSelectedHoverBg:Ct,rowExpandedBg:dt,cellPaddingBlock:Et,cellPaddingInline:pt,cellPaddingBlockMD:_t,cellPaddingInlineMD:Xt,cellPaddingBlockSM:cn,cellPaddingInlineSM:Ht,borderColor:bn,footerBg:Nn,footerColor:Rt,headerBorderRadius:Yt,cellFontSize:Mt,cellFontSizeMD:It,cellFontSizeSM:zt,headerSplitColor:hn,fixedHeaderSortActiveBg:Fn,headerFilterHoverBg:Dn,filterDropdownBg:un,expandIconBg:jn,selectionColumnWidth:Wn,stickyScrollBarBg:Cr}=r,nr=new Fo.C(y),Fr=new Fo.C(N),Nr=2,Bn=(0,ul.TS)(r,{tableFontSize:Mt,tableBg:oe,tableRadius:Yt,tablePaddingVertical:Et,tablePaddingHorizontal:pt,tablePaddingVerticalMiddle:_t,tablePaddingHorizontalMiddle:Xt,tablePaddingVerticalSmall:cn,tablePaddingHorizontalSmall:Ht,tableBorderColor:bn,tableHeaderTextColor:ge,tableHeaderBg:ee,tableFooterTextColor:Rt,tableFooterBg:Nn,tableHeaderCellSplitColor:hn,tableHeaderSortBg:Oe,tableHeaderSortHoverBg:we,tableHeaderIconColor:nr.clone().setAlpha(nr.getAlpha()*O).toRgbString(),tableHeaderIconColorHover:Fr.clone().setAlpha(Fr.getAlpha()*O).toRgbString(),tableBodySortBg:ze,tableFixedHeaderSortActiveBg:Fn,tableHeaderFilterActiveBg:Dn,tableFilterDropdownBg:un,tableRowHoverBg:We,tableSelectedRowBg:Xe,tableSelectedRowHoverBg:Ct,zIndexTableFixed:Nr,zIndexTableSticky:Nr+1,tableFontSizeMiddle:It,tableFontSizeSmall:zt,tableSelectionColumnWidth:Wn,tableExpandIconBg:jn,tableExpandColumnWidth:re+2*r.padding,tableExpandedRowBg:dt,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Cr,tableScrollThumbBgHover:o,tableScrollBg:u});return[Wa(Bn),cr(Bn),Ha(Bn),Ka(Bn),ra(Bn),dl(Bn),pr(Bn),na(Bn),Ha(Bn),ka(Bn),ia(Bn),oa(Bn),za(Bn),fl(Bn),gl(Bn),vl(Bn),yl(Bn)]},r=>{const{colorFillAlter:o,colorBgContainer:u,colorTextHeading:y,colorFillSecondary:N,colorFillContent:O,controlItemBgActive:oe,controlItemBgActiveHover:re,padding:ee,paddingSM:ge,paddingXS:Oe,colorBorderSecondary:we,borderRadiusLG:ze,fontSize:We,controlHeight:Xe,colorTextPlaceholder:Ct}=r,dt=new Fo.C(N).onBackground(u).toHexShortString(),Et=new Fo.C(O).onBackground(u).toHexShortString(),pt=new Fo.C(o).onBackground(u).toHexShortString();return{headerBg:pt,headerColor:y,headerSortActiveBg:dt,headerSortHoverBg:Et,bodySortBg:pt,rowHoverBg:pt,rowSelectedBg:oe,rowSelectedHoverBg:re,rowExpandedBg:o,cellPaddingBlock:ee,cellPaddingInline:ee,cellPaddingBlockMD:ge,cellPaddingInlineMD:Oe,cellPaddingBlockSM:Oe,cellPaddingInlineSM:Oe,borderColor:we,headerBorderRadius:ze,footerBg:pt,footerColor:y,cellFontSize:We,cellFontSizeMD:We,cellFontSizeSM:We,headerSplitColor:we,fixedHeaderSortActiveBg:dt,headerFilterHoverBg:O,filterDropdownMenuBg:u,filterDropdownBg:u,expandIconBg:u,selectionColumnWidth:Xe,stickyScrollBarBg:Ct,stickyScrollBarBorderRadius:100}});const Va=[],sa=(r,o)=>{const{prefixCls:u,className:y,rootClassName:N,style:O,size:oe,bordered:re,dropdownPrefixCls:ee,dataSource:ge,pagination:Oe,rowSelection:we,rowKey:ze="key",rowClassName:We,columns:Xe,children:Ct,childrenColumnName:dt,onChange:Et,getPopupContainer:pt,loading:_t,expandIcon:Xt,expandable:cn,expandedRowRender:Ht,expandIconColumnIndex:bn,indentSize:Nn,scroll:Rt,sortDirections:Yt,locale:Mt,showSorterTooltip:It=!0,virtual:zt}=r,hn=n.useMemo(()=>Xe||hr(Ct),[Xe,Ct]),Fn=n.useMemo(()=>hn.some(lr=>lr.responsive),[hn]),Dn=(0,sr.Z)(Fn),un=n.useMemo(()=>{const lr=new Set(Object.keys(Dn).filter(Rr=>Dn[Rr]));return hn.filter(Rr=>!Rr.responsive||Rr.responsive.some(oo=>lr.has(oo)))},[hn,Dn]),jn=(0,Gn.Z)(r,["className","style","columns"]),{locale:Wn=Mn.Z,direction:Cr,table:nr,renderEmpty:Fr,getPrefixCls:Nr,getPopupContainer:Bn}=n.useContext(ot.E_),Hr=(0,$n.Z)(oe),or=Object.assign(Object.assign({},Wn.Table),Mt),Xn=ge||Va,Sr=Nr("table",u),Qr=Nr("dropdown",ee),pn=Object.assign({childrenColumnName:dt,expandIconColumnIndex:bn},cn),{childrenColumnName:fn="children"}=pn,dn=n.useMemo(()=>Xn.some(lr=>lr==null?void 0:lr[fn])?"nest":Ht||cn&&cn.expandedRowRender?"row":null,[Xn]),rn={body:n.useRef()},rr=n.useMemo(()=>typeof ze=="function"?ze:lr=>lr==null?void 0:lr[ze],[ze]),[Jt]=xo(Xn,fn,rr),On={},tr=function(lr,Rr){let oo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var jr,io,vo;const po=Object.assign(Object.assign({},On),lr);oo&&((jr=On.resetPagination)===null||jr===void 0||jr.call(On),!((io=po.pagination)===null||io===void 0)&&io.current&&(po.pagination.current=1),Oe&&Oe.onChange&&Oe.onChange(1,(vo=po.pagination)===null||vo===void 0?void 0:vo.pageSize)),Rt&&Rt.scrollToFirstRowOnChange!==!1&&rn.body.current&&(0,_n.Z)(0,{getContainer:()=>rn.body.current}),Et==null||Et(po.pagination,po.filters,po.sorter,{currentDataSource:Ta(Jo(Xn,po.sorterStates,fn),po.filterStates),action:Rr})},Un=(lr,Rr)=>{tr({sorter:lr,sorterStates:Rr},"sort",!1)},[eo,c,Ce,Ve]=Ko({prefixCls:Sr,mergedColumns:un,onSorterChange:Un,sortDirections:Yt||["ascend","descend"],tableLocale:or,showSorterTooltip:It}),ft=n.useMemo(()=>Jo(Xn,c,fn),[Xn,c]);On.sorter=Ve(),On.sorterStates=c;const Ue=(lr,Rr)=>{tr({filters:lr,filterStates:Rr},"filter",!0)},[it,yt,st]=G({prefixCls:Sr,locale:or,dropdownPrefixCls:Qr,mergedColumns:un,onFilterChange:Ue,getPopupContainer:pt||Bn}),gt=Ta(ft,yt);On.filters=st,On.filterStates=yt;const vt=n.useMemo(()=>{const lr={};return Object.keys(st).forEach(Rr=>{st[Rr]!==null&&(lr[Rr]=st[Rr])}),Object.assign(Object.assign({},Ce),{filters:lr})},[Ce,st]),[Wt]=Qo(vt),nt=(lr,Rr)=>{tr({pagination:Object.assign(Object.assign({},On.pagination),{current:lr,pageSize:Rr})},"paginate")},[Ge,an]=Oo(gt.length,nt,Oe);On.pagination=Oe===!1?{}:tl(Ge,Oe),On.resetPagination=an;const gr=n.useMemo(()=>{if(Oe===!1||!Ge.pageSize)return gt;const{current:lr=1,total:Rr,pageSize:oo=No}=Ge;return gt.lengthoo?gt.slice((lr-1)*oo,lr*oo):gt:gt.slice((lr-1)*oo,lr*oo)},[!!Oe,gt,Ge&&Ge.current,Ge&&Ge.pageSize,Ge&&Ge.total]),[Vt,Tn]=ol({prefixCls:Sr,data:gt,pageData:gr,getRowKey:rr,getRecordByKey:Jt,expandType:dn,childrenColumnName:fn,locale:or,getPopupContainer:pt||Bn},we),Pr=(lr,Rr,oo)=>{let jr;return typeof We=="function"?jr=ce()(We(lr,Rr,oo)):jr=ce()(We),ce()({[`${Sr}-row-selected`]:Tn.has(rr(lr,Rr))},jr)};pn.__PARENT_RENDER_ICON__=pn.expandIcon,pn.expandIcon=pn.expandIcon||Xt||$r(or),dn==="nest"&&pn.expandIconColumnIndex===void 0?pn.expandIconColumnIndex=we?1:0:pn.expandIconColumnIndex>0&&we&&(pn.expandIconColumnIndex-=1),typeof pn.indentSize!="number"&&(pn.indentSize=typeof Nn=="number"?Nn:15);const Gr=n.useCallback(lr=>Wt(Vt(it(eo(lr)))),[eo,it,Vt]);let Eo,mo;if(Oe!==!1&&(Ge!=null&&Ge.total)){let lr;Ge.size?lr=Ge.size:lr=Hr==="small"||Hr==="middle"?"small":void 0;const Rr=io=>n.createElement(Yn.Z,Object.assign({},Ge,{className:ce()(`${Sr}-pagination ${Sr}-pagination-${io}`,Ge.className),size:lr})),oo=Cr==="rtl"?"left":"right",{position:jr}=Ge;if(jr!==null&&Array.isArray(jr)){const io=jr.find(Ro=>Ro.includes("top")),vo=jr.find(Ro=>Ro.includes("bottom")),po=jr.every(Ro=>`${Ro}`=="none");!io&&!vo&&!po&&(mo=Rr(oo)),io&&(Eo=Rr(io.toLowerCase().replace("top",""))),vo&&(mo=Rr(vo.toLowerCase().replace("bottom","")))}else mo=Rr(oo)}let Tt;typeof _t=="boolean"?Tt={spinning:_t}:typeof _t=="object"&&(Tt=Object.assign({spinning:!0},_t));const[Yr,Tr]=Ua(Sr),[,ar]=(0,Mr.Z)(),co=ce()(`${Sr}-wrapper`,nr==null?void 0:nr.className,{[`${Sr}-wrapper-rtl`]:Cr==="rtl"},y,N,Tr),go=Object.assign(Object.assign({},nr==null?void 0:nr.style),O),lo=Mt&&Mt.emptyText||(Fr==null?void 0:Fr("Table"))||n.createElement(Ot.Z,{componentName:"Table"}),ho=zt?sl:qo,Xa={},bl=n.useMemo(()=>{const{fontSize:lr,lineHeight:Rr,padding:oo,paddingXS:jr,paddingSM:io}=ar,vo=Math.floor(lr*Rr);switch(Hr){case"large":return oo*2+vo;case"small":return jr*2+vo;default:return io*2+vo}},[ar,Hr]);return zt&&(Xa.listItemHeight=bl),Yr(n.createElement("div",{ref:o,className:co,style:go},n.createElement(wr.Z,Object.assign({spinning:!1},Tt),Eo,n.createElement(ho,Object.assign({},Xa,jn,{columns:un,direction:Cr,expandable:pn,prefixCls:Sr,className:ce()({[`${Sr}-middle`]:Hr==="middle",[`${Sr}-small`]:Hr==="small",[`${Sr}-bordered`]:re,[`${Sr}-empty`]:Xn.length===0}),data:gr,rowKey:rr,rowClassName:Pr,emptyText:lo,internalHooks:l,internalRefs:rn,transformColumns:Gr})),mo)))};var xl=n.forwardRef(sa);const Pa=(r,o)=>{const u=n.useRef(0);return u.current+=1,n.createElement(xl,Object.assign({},r,{ref:o,_renderTimes:u.current}))},Co=n.forwardRef(Pa);Co.SELECTION_COLUMN=fo,Co.EXPAND_COLUMN=t,Co.SELECTION_ALL=xa,Co.SELECTION_INVERT=_o,Co.SELECTION_NONE=Ca,Co.Column=nn,Co.ColumnGroup=Cn,Co.Summary=s;var Cl=Co,ca=Cl},17574:function(ht,le,e){"use strict";e.d(le,{default:function(){return Me}});var t=e(60091),l=e(94480),P=e(52671),L=e(8657),T=e(54476),p=e(59301),n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},F=n,W=e(7657),w=function(je,et){return p.createElement(W.Z,(0,T.Z)({},je,{ref:et,icon:F}))},D=p.forwardRef(w),g=D,M=e(92310),B=e.n(M),I=e(35654),E=e(71430),ne=e(36355),k=e(56082),de=e(62892),ie=e(20648);const H=4;function A(Ie){const{dropPosition:je,dropLevelOffset:et,prefixCls:rt,indent:Ke,direction:Te="ltr"}=Ie,tt=Te==="ltr"?"left":"right",mt=Te==="ltr"?"right":"left",De={[tt]:-et*Ke+H,[mt]:0};switch(je){case-1:De.top=-3;break;case 1:De.bottom=-3;break;default:De.bottom=-3,De[tt]=Ke+H;break}return p.createElement("div",{style:De,className:`${rt}-drop-indicator`})}var ae=e(71997),S=p.forwardRef((Ie,je)=>{const{getPrefixCls:et,direction:rt,virtual:Ke,tree:Te}=p.useContext(ne.E_),{prefixCls:tt,className:mt,showIcon:De=!1,showLine:ut,switcherIcon:St,blockNode:$e=!1,children:ve,checkable:at=!1,selectable:Ee=!0,draggable:Z,motion:K,style:m}=Ie,a=et("tree",tt),R=et(),fe=K!=null?K:Object.assign(Object.assign({},(0,de.Z)(R)),{motionAppear:!1}),s=Object.assign(Object.assign({},Ie),{checkable:at,selectable:Ee,showIcon:De,motion:fe,blockNode:$e,showLine:!!ut,dropIndicatorRender:A}),[i,X]=(0,ie.ZP)(a),$=p.useMemo(()=>{if(!Z)return!1;let Q={};switch(typeof Z){case"function":Q.nodeDraggable=Z;break;case"object":Q=Object.assign({},Z);break;default:break}return Q.icon!==!1&&(Q.icon=Q.icon||p.createElement(k.Z,null)),Q},[Z]),f=Q=>p.createElement(ae.Z,{prefixCls:a,switcherIcon:St,treeNodeProps:Q,showLine:ut});return i(p.createElement(t.Z,Object.assign({itemHeight:20,ref:je,virtual:Ke},s,{style:Object.assign(Object.assign({},Te==null?void 0:Te.style),m),prefixCls:a,className:B()({[`${a}-icon-hide`]:!De,[`${a}-block-node`]:$e,[`${a}-unselectable`]:!Ee,[`${a}-rtl`]:rt==="rtl"},Te==null?void 0:Te.className,mt,X),direction:rt,checkable:at&&p.createElement("span",{className:`${a}-checkbox-inner`}),selectable:Ee,switcherIcon:f,draggable:$}),ve))}),J;(function(Ie){Ie[Ie.None=0]="None",Ie[Ie.Start=1]="Start",Ie[Ie.End=2]="End"})(J||(J={}));function te(Ie,je){function et(rt){const{key:Ke,children:Te}=rt;je(Ke,rt)!==!1&&te(Te||[],je)}Ie.forEach(et)}function z(Ie){let{treeData:je,expandedKeys:et,startKey:rt,endKey:Ke}=Ie;const Te=[];let tt=J.None;if(rt&&rt===Ke)return[rt];if(!rt||!Ke)return[];function mt(De){return De===rt||De===Ke}return te(je,De=>{if(tt===J.End)return!1;if(mt(De)){if(Te.push(De),tt===J.None)tt=J.Start;else if(tt===J.Start)return tt=J.End,!1}else tt===J.Start&&Te.push(De);return et.includes(De)}),Te}function v(Ie,je){const et=(0,l.Z)(je),rt=[];return te(Ie,(Ke,Te)=>{const tt=et.indexOf(Ke);return tt!==-1&&(rt.push(Te),et.splice(tt,1)),!!et.length}),rt}var b=function(Ie,je){var et={};for(var rt in Ie)Object.prototype.hasOwnProperty.call(Ie,rt)&&je.indexOf(rt)<0&&(et[rt]=Ie[rt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,rt=Object.getOwnPropertySymbols(Ie);Ke{var{defaultExpandAll:et,defaultExpandParent:rt,defaultExpandedKeys:Ke}=Ie,Te=b(Ie,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const tt=p.useRef(),mt=p.useRef(),De=()=>{const{keyEntities:$}=(0,E.I8)(q(Te));let f;return et?f=Object.keys($):rt?f=(0,I.r7)(Te.expandedKeys||Ke||[],$):f=Te.expandedKeys||Ke,f},[ut,St]=p.useState(Te.selectedKeys||Te.defaultSelectedKeys||[]),[$e,ve]=p.useState(()=>De());p.useEffect(()=>{"selectedKeys"in Te&&St(Te.selectedKeys)},[Te.selectedKeys]),p.useEffect(()=>{"expandedKeys"in Te&&ve(Te.expandedKeys)},[Te.expandedKeys]);const at=($,f)=>{var Q;return"expandedKeys"in Te||ve($),(Q=Te.onExpand)===null||Q===void 0?void 0:Q.call(Te,$,f)},Ee=($,f)=>{var Q;const{multiple:Re}=Te,{node:Pe,nativeEvent:Se}=f,{key:Ne=""}=Pe,Be=q(Te),d=Object.assign(Object.assign({},f),{selected:!0}),Y=(Se==null?void 0:Se.ctrlKey)||(Se==null?void 0:Se.metaKey),se=Se==null?void 0:Se.shiftKey;let xe;Re&&Y?(xe=$,tt.current=Ne,mt.current=xe,d.selectedNodes=v(Be,xe)):Re&&se?(xe=Array.from(new Set([].concat((0,l.Z)(mt.current||[]),(0,l.Z)(z({treeData:Be,expandedKeys:$e,startKey:Ne,endKey:tt.current}))))),d.selectedNodes=v(Be,xe)):(xe=[Ne],tt.current=Ne,mt.current=xe,d.selectedNodes=v(Be,xe)),(Q=Te.onSelect)===null||Q===void 0||Q.call(Te,xe,d),"selectedKeys"in Te||St(xe)},{getPrefixCls:Z,direction:K}=p.useContext(ne.E_),{prefixCls:m,className:a,showIcon:R=!0,expandAction:fe="click"}=Te,s=b(Te,["prefixCls","className","showIcon","expandAction"]),i=Z("tree",m),X=B()(`${i}-directory`,{[`${i}-directory-rtl`]:K==="rtl"},a);return p.createElement(S,Object.assign({icon:ce,ref:je,blockNode:!0},s,{showIcon:R,expandAction:fe,prefixCls:i,className:X,expandedKeys:$e,selectedKeys:ut,onSelect:Ee,onExpand:at}))};var V=p.forwardRef(x);const he=S;he.DirectoryTree=V,he.TreeNode=t.O;var Me=he},20648:function(ht,le,e){"use strict";e.d(le,{TM:function(){return M},Yk:function(){return g}});var t=e(36237),l=e(98447),P=e(17313),L=e(8378),T=e(37613),p=e(83116);const n=new t.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),F=(B,I)=>({[`.${B}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${I.motionDurationSlow}`}}}),W=(B,I)=>({[`.${B}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:I.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${I.lineWidthBold}px solid ${I.colorPrimary}`,borderRadius:"50%",content:'""'}}}),w=(B,I)=>{const{treeCls:E,treeNodeCls:ne,treeNodePadding:k,titleHeight:de,nodeSelectedBg:ie,nodeHoverBg:H}=I,A=I.paddingXS;return{[E]:Object.assign(Object.assign({},(0,P.Wf)(I)),{background:I.colorBgContainer,borderRadius:I.borderRadius,transition:`background-color ${I.motionDurationSlow}`,[`&${E}-rtl`]:{[`${E}-switcher`]:{"&_close":{[`${E}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${E}-active-focused)`]:Object.assign({},(0,P.oN)(I)),[`${E}-list-holder-inner`]:{alignItems:"flex-start"},[`&${E}-block-node`]:{[`${E}-list-holder-inner`]:{alignItems:"stretch",[`${E}-node-content-wrapper`]:{flex:"auto"},[`${ne}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:k,insetInlineStart:0,border:`1px solid ${I.colorPrimary}`,opacity:0,animationName:n,animationDuration:I.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ne}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${k}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${E}-node-content-wrapper`]:{color:I.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${E}-node-content-wrapper`]:Object.assign({},(0,P.oN)(I)),[`&:not(${ne}-disabled).filter-node ${E}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${E}-draggable-icon`]:{flexShrink:0,width:de,lineHeight:`${de}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${I.motionDurationSlow}`,[`${ne}:hover &`]:{opacity:.45}},[`&${ne}-disabled`]:{[`${E}-draggable-icon`]:{visibility:"hidden"}}}},[`${E}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:de}},[`${E}-draggable-icon`]:{visibility:"hidden"},[`${E}-switcher`]:Object.assign(Object.assign({},F(B,I)),{position:"relative",flex:"none",alignSelf:"stretch",width:de,margin:0,lineHeight:`${de}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${E}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:I.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:de/2,bottom:-k,marginInlineStart:-1,borderInlineEnd:`1px solid ${I.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:de/2*.8,height:de/2,borderBottom:`1px solid ${I.colorBorder}`,content:'""'}}}),[`${E}-checkbox`]:{top:"initial",marginInlineEnd:A},[`${E}-node-content-wrapper, ${E}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:de,margin:0,padding:`0 ${I.paddingXS/2}px`,color:"inherit",lineHeight:`${de}px`,background:"transparent",borderRadius:I.borderRadius,cursor:"pointer",transition:`all ${I.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:H},[`&${E}-node-selected`]:{backgroundColor:ie},[`${E}-iconEle`]:{display:"inline-block",width:de,height:de,lineHeight:`${de}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${E}-unselectable ${E}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${E}-node-content-wrapper`]:Object.assign({lineHeight:`${de}px`,userSelect:"none"},W(B,I)),[`${ne}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${I.colorPrimary}`}},"&-show-line":{[`${E}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:de/2,bottom:-k,borderInlineEnd:`1px solid ${I.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${E}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ne}-leaf-last`]:{[`${E}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${de/2}px !important`}}}}})}},D=B=>{const{treeCls:I,treeNodeCls:E,treeNodePadding:ne,directoryNodeSelectedBg:k,directoryNodeSelectedColor:de}=B;return{[`${I}${I}-directory`]:{[E]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ne,insetInlineStart:0,transition:`background-color ${B.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:B.controlItemBgHover}},"> *":{zIndex:1},[`${I}-switcher`]:{transition:`color ${B.motionDurationMid}`},[`${I}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${I}-node-selected`]:{color:de,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:k},[`${I}-switcher`]:{color:de},[`${I}-node-content-wrapper`]:{color:de,background:"transparent"}}}}}},g=(B,I)=>{const E=`.${B}`,ne=`${E}-treenode`,k=I.paddingXS/2,de=(0,T.TS)(I,{treeCls:E,treeNodeCls:ne,treeNodePadding:k});return[w(B,de),D(de)]},M=B=>{const{controlHeightSM:I}=B;return{titleHeight:I,nodeHoverBg:B.controlItemBgHover,nodeSelectedBg:B.controlItemBgActive}};le.ZP=(0,p.Z)("Tree",(B,I)=>{let{prefixCls:E}=I;return[{[B.componentCls]:(0,l.C2)(`${E}-checkbox`,B)},g(E,B),(0,L.Z)(B)]},B=>{const{colorTextLightSolid:I,colorPrimary:E}=B;return Object.assign(Object.assign({},M(B)),{directoryNodeSelectedColor:I,directoryNodeSelectedBg:E})})},71997:function(ht,le,e){"use strict";e.d(le,{Z:function(){return ne}});var t=e(54476),l=e(59301),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},L=P,T=e(7657),p=function(de,ie){return l.createElement(T.Z,(0,t.Z)({},de,{ref:ie,icon:L}))},n=l.forwardRef(p),F=n,W=e(52671),w=e(58617),D=e(15075),g=e(43531),M=e(92310),B=e.n(M),I=e(92343),ne=k=>{const{prefixCls:de,switcherIcon:ie,treeNodeProps:H,showLine:A}=k,{isLeaf:ae,expanded:C,loading:S}=H;if(S)return l.createElement(w.Z,{className:`${de}-switcher-loading-icon`});let J;if(A&&typeof A=="object"&&(J=A.showLeafIcon),ae){if(!A)return null;if(typeof J!="boolean"&&J){const v=typeof J=="function"?J(H):J,b=`${de}-switcher-line-custom-icon`;return(0,I.l$)(v)?(0,I.Tm)(v,{className:B()(v.props.className||"",b)}):v}return J?l.createElement(W.Z,{className:`${de}-switcher-line-icon`}):l.createElement("span",{className:`${de}-switcher-leaf-line`})}const te=`${de}-switcher-icon`,z=typeof ie=="function"?ie(H):ie;return(0,I.l$)(z)?(0,I.Tm)(z,{className:B()(z.props.className||"",te)}):z!==void 0?z:A?C?l.createElement(D.Z,{className:`${de}-switcher-line-icon`}):l.createElement(g.Z,{className:`${de}-switcher-line-icon`}):l.createElement(F,{className:te})}},54580:function(ht,le,e){"use strict";e.d(le,{default:function(){return kt}});var t=e(59301),l=e(94480),P=e(92310),L=e.n(P),T=e(54476),p=e(67732),n=e(83652),F=e(42403),W=e(158),w=e(20068),D=e(75931),g=e(75044),M=e(76190),B=e(3202),I=e(26112);function E(j,ue){var ye="cannot ".concat(j.method," ").concat(j.action," ").concat(ue.status,"'"),be=new Error(ye);return be.status=ue.status,be.method=j.method,be.url=j.action,be}function ne(j){var ue=j.responseText||j.response;if(!ue)return ue;try{return JSON.parse(ue)}catch(ye){return ue}}function k(j){var ue=new XMLHttpRequest;j.onProgress&&ue.upload&&(ue.upload.onprogress=function(Le){Le.total>0&&(Le.percent=Le.loaded/Le.total*100),j.onProgress(Le)});var ye=new FormData;j.data&&Object.keys(j.data).forEach(function(Ze){var Le=j.data[Ze];if(Array.isArray(Le)){Le.forEach(function(ke){ye.append("".concat(Ze,"[]"),ke)});return}ye.append(Ze,Le)}),j.file instanceof Blob?ye.append(j.filename,j.file,j.file.name):ye.append(j.filename,j.file),ue.onerror=function(Le){j.onError(Le)},ue.onload=function(){return ue.status<200||ue.status>=300?j.onError(E(j,ue),ne(ue)):j.onSuccess(ne(ue),ue)},ue.open(j.method,j.action,!0),j.withCredentials&&"withCredentials"in ue&&(ue.withCredentials=!0);var be=j.headers||{};return be["X-Requested-With"]!==null&&ue.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(be).forEach(function(Ze){be[Ze]!==null&&ue.setRequestHeader(Ze,be[Ze])}),ue.send(ye),{abort:function(){ue.abort()}}}var de=+new Date,ie=0;function H(){return"rc-upload-".concat(de,"-").concat(++ie)}var A=e(48736),ae=function(j,ue){if(j&&ue){var ye=Array.isArray(ue)?ue:ue.split(","),be=j.name||"",Ze=j.type||"",Le=Ze.replace(/\/.*$/,"");return ye.some(function(ke){var Ae=ke.trim();if(/^\*(\/\*)?$/.test(ke))return!0;if(Ae.charAt(0)==="."){var jt=be.toLowerCase(),Zt=Ae.toLowerCase(),qt=[Zt];return(Zt===".jpg"||Zt===".jpeg")&&(qt=[".jpg",".jpeg"]),qt.some(function(kn){return jt.endsWith(kn)})}return/\/\*$/.test(Ae)?Le===Ae.replace(/\/.*$/,""):Ze===Ae?!0:/^\w+$/.test(Ae)?((0,A.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ae,"'.Skip for check.")),!0):!1})}return!0};function C(j,ue){var ye=j.createReader(),be=[];function Ze(){ye.readEntries(function(Le){var ke=Array.prototype.slice.apply(Le);be=be.concat(ke);var Ae=!ke.length;Ae?ue(be):Ze()})}Ze()}var S=function(ue,ye,be){var Ze=function Le(ke,Ae){ke&&(ke.path=Ae||"",ke.isFile?ke.file(function(jt){be(jt)&&(ke.fullPath&&!jt.webkitRelativePath&&(Object.defineProperties(jt,{webkitRelativePath:{writable:!0}}),jt.webkitRelativePath=ke.fullPath.replace(/^\//,""),Object.defineProperties(jt,{webkitRelativePath:{writable:!1}})),ye([jt]))}):ke.isDirectory&&C(ke,function(jt){jt.forEach(function(Zt){Le(Zt,"".concat(Ae).concat(ke.name,"/"))})}))};ue.forEach(function(Le){Ze(Le.webkitGetAsEntry())})},J=S,te=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],z=function(j){(0,F.Z)(ye,j);var ue=(0,W.Z)(ye);function ye(){var be;(0,p.Z)(this,ye);for(var Ze=arguments.length,Le=new Array(Ze),ke=0;ke{let{uid:Le}=Ze;return Le===j.uid});return be===-1?ye.push(j):ye[be]=j,ye}function Q(j,ue){const ye=j.uid!==void 0?"uid":"name";return ue.filter(be=>be[ye]===j[ye])[0]}function Re(j,ue){const ye=j.uid!==void 0?"uid":"name",be=ue.filter(Ze=>Ze[ye]!==j[ye]);return be.length===ue.length?null:be}const Pe=function(){const ue=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),be=ue[ue.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(be)||[""])[0]},Se=j=>j.indexOf("image/")===0,Ne=j=>{if(j.type&&!j.thumbUrl)return Se(j.type);const ue=j.thumbUrl||j.url||"",ye=Pe(ue);return/^data:image\//.test(ue)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(ye)?!0:!(/^data:/.test(ue)||ye)},Be=200;function d(j){return new Promise(ue=>{if(!j.type||!Se(j.type)){ue("");return}const ye=document.createElement("canvas");ye.width=Be,ye.height=Be,ye.style.cssText=`position: fixed; left: 0; top: 0; width: ${Be}px; height: ${Be}px; z-index: 9999; display: none;`,document.body.appendChild(ye);const be=ye.getContext("2d"),Ze=new Image;if(Ze.onload=()=>{const{width:Le,height:ke}=Ze;let Ae=Be,jt=Be,Zt=0,qt=0;Le>ke?(jt=ke*(Be/Le),qt=-(jt-Ae)/2):(Ae=Le*(Be/ke),Zt=-(Ae-jt)/2),be.drawImage(Ze,Zt,qt,Ae,jt);const kn=ye.toDataURL();document.body.removeChild(ye),window.URL.revokeObjectURL(Ze.src),ue(kn)},Ze.crossOrigin="anonymous",j.type.startsWith("image/svg+xml")){const Le=new FileReader;Le.onload=()=>{Le.result&&(Ze.src=Le.result)},Le.readAsDataURL(j)}else if(j.type.startsWith("image/gif")){const Le=new FileReader;Le.onload=()=>{Le.result&&ue(Le.result)},Le.readAsDataURL(j)}else Ze.src=window.URL.createObjectURL(j)})}var Y=e(26227),se=e(41464),xe=e(15277),Fe=e(93948),_e=e(6848),Je=t.forwardRef((j,ue)=>{let{prefixCls:ye,className:be,style:Ze,locale:Le,listType:ke,file:Ae,items:jt,progress:Zt,iconRender:qt,actionIconRender:kn,itemRender:Rn,isImgUrl:on,showPreviewIcon:h,showRemoveIcon:_r,showDownloadIcon:Qn,previewIcon:dr,removeIcon:er,downloadIcon:yr,onPreview:qn,onDownload:Pn,onClose:In}=j;var zn,Lr;const{status:wn}=Ae,[Er,kr]=t.useState(wn);t.useEffect(()=>{wn!=="removed"&&kr(wn)},[wn]);const[Wr,Vr]=t.useState(!1);t.useEffect(()=>{const ot=setTimeout(()=>{Vr(!0)},300);return()=>{clearTimeout(ot)}},[]);const Xr=qt(Ae);let U=t.createElement("div",{className:`${ye}-icon`},Xr);if(ke==="picture"||ke==="picture-card"||ke==="picture-circle")if(Er==="uploading"||!Ae.thumbUrl&&!Ae.url){const ot=L()(`${ye}-list-item-thumbnail`,{[`${ye}-list-item-file`]:Er!=="uploading"});U=t.createElement("div",{className:ot},Xr)}else{const ot=on!=null&&on(Ae)?t.createElement("img",{src:Ae.thumbUrl||Ae.url,alt:Ae.name,className:`${ye}-list-item-image`,crossOrigin:Ae.crossOrigin}):Xr,Ot=L()(`${ye}-list-item-thumbnail`,{[`${ye}-list-item-file`]:on&&!on(Ae)});U=t.createElement("a",{className:Ot,onClick:$n=>qn(Ae,$n),href:Ae.url||Ae.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ot)}const me=L()(`${ye}-list-item`,`${ye}-list-item-${Er}`),qe=typeof Ae.linkProps=="string"?JSON.parse(Ae.linkProps):Ae.linkProps,Ft=_r?kn((typeof er=="function"?er(Ae):er)||t.createElement(Y.Z,null),()=>In(Ae),ye,Le.removeFile):null,en=Qn&&Er==="done"?kn((typeof yr=="function"?yr(Ae):yr)||t.createElement(se.Z,null),()=>Pn(Ae),ye,Le.downloadFile):null,gn=ke!=="picture-card"&&ke!=="picture-circle"&&t.createElement("span",{key:"download-delete",className:L()(`${ye}-list-item-actions`,{picture:ke==="picture"})},en,Ft),Gt=L()(`${ye}-list-item-name`),At=Ae.url?[t.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Gt,title:Ae.name},qe,{href:Ae.url,onClick:ot=>qn(Ae,ot)}),Ae.name),gn]:[t.createElement("span",{key:"view",className:Gt,onClick:ot=>qn(Ae,ot),title:Ae.name},Ae.name),gn],Ye={pointerEvents:"none",opacity:.5},xt=h?t.createElement("a",{href:Ae.url||Ae.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ae.url||Ae.thumbUrl?void 0:Ye,onClick:ot=>qn(Ae,ot),title:Le.previewFile},typeof dr=="function"?dr(Ae):dr||t.createElement(xe.Z,null)):null,tn=(ke==="picture-card"||ke==="picture-circle")&&Er!=="uploading"&&t.createElement("span",{className:`${ye}-list-item-actions`},xt,Er==="done"&&en,Ft),{getPrefixCls:nn}=t.useContext(he.E_),Sn=nn(),Cn=t.createElement("div",{className:me},U,At,tn,Wr&&t.createElement(R.default,{motionName:`${Sn}-fade`,visible:Er==="uploading",motionDeadline:2e3},ot=>{let{className:Ot}=ot;const $n="percent"in Ae?t.createElement(Fe.Z,Object.assign({},Zt,{type:"line",percent:Ae.percent,"aria-label":Ae["aria-label"],"aria-labelledby":Ae["aria-labelledby"]})):null;return t.createElement("div",{className:L()(`${ye}-list-item-progress`,Ot)},$n)})),Gn=Ae.response&&typeof Ae.response=="string"?Ae.response:((zn=Ae.error)===null||zn===void 0?void 0:zn.statusText)||((Lr=Ae.error)===null||Lr===void 0?void 0:Lr.message)||Le.uploadError,_n=Er==="error"?t.createElement(_e.Z,{title:Gn,getPopupContainer:ot=>ot.parentNode},Cn):Cn;return t.createElement("div",{className:L()(`${ye}-list-item-container`,be),style:Ze,ref:ue},Rn?Rn(_n,Ae,jt,{download:Pn.bind(null,Ae),preview:qn.bind(null,Ae),remove:In.bind(null,Ae)}):_n)});const ct=(j,ue)=>{const{listType:ye="text",previewFile:be=d,onPreview:Ze,onDownload:Le,onRemove:ke,locale:Ae,iconRender:jt,isImageUrl:Zt=Ne,prefixCls:qt,items:kn=[],showPreviewIcon:Rn=!0,showRemoveIcon:on=!0,showDownloadIcon:h=!1,removeIcon:_r,previewIcon:Qn,downloadIcon:dr,progress:er={size:[-1,2],showInfo:!1},appendAction:yr,appendActionVisible:qn=!0,itemRender:Pn,disabled:In}=j,zn=(0,fe.Z)(),[Lr,wn]=t.useState(!1);t.useEffect(()=>{ye!=="picture"&&ye!=="picture-card"&&ye!=="picture-circle"||(kn||[]).forEach(Ye=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Ye.originFileObj instanceof File||Ye.originFileObj instanceof Blob)||Ye.thumbUrl!==void 0||(Ye.thumbUrl="",be&&be(Ye.originFileObj).then(xt=>{Ye.thumbUrl=xt||"",zn()}))})},[ye,kn,be]),t.useEffect(()=>{wn(!0)},[]);const Er=(Ye,xt)=>{if(Ze)return xt==null||xt.preventDefault(),Ze(Ye)},kr=Ye=>{typeof Le=="function"?Le(Ye):Ye.url&&window.open(Ye.url)},Wr=Ye=>{ke==null||ke(Ye)},Vr=Ye=>{if(jt)return jt(Ye,ye);const xt=Ye.status==="uploading",tn=Zt&&Zt(Ye)?t.createElement(a,null):t.createElement(mt,null);let nn=xt?t.createElement(De.Z,null):t.createElement(at,null);return ye==="picture"?nn=xt?t.createElement(De.Z,null):tn:(ye==="picture-card"||ye==="picture-circle")&&(nn=xt?Ae.uploading:tn),nn},Xr=(Ye,xt,tn,nn)=>{const Sn={type:"text",size:"small",title:nn,onClick:Cn=>{xt(),(0,i.l$)(Ye)&&Ye.props.onClick&&Ye.props.onClick(Cn)},className:`${tn}-list-item-action`,disabled:In};if((0,i.l$)(Ye)){const Cn=(0,i.Tm)(Ye,Object.assign(Object.assign({},Ye.props),{onClick:()=>{}}));return t.createElement(X.ZP,Object.assign({},Sn,{icon:Cn}))}return t.createElement(X.ZP,Object.assign({},Sn),t.createElement("span",null,Ye))};t.useImperativeHandle(ue,()=>({handlePreview:Er,handleDownload:kr}));const{getPrefixCls:U}=t.useContext(he.E_),me=U("upload",qt),qe=U(),Ft=L()(`${me}-list`,`${me}-list-${ye}`),en=(0,l.Z)(kn.map(Ye=>({key:Ye.uid,file:Ye})));let Gt={motionDeadline:2e3,motionName:`${me}-${ye==="picture-card"||ye==="picture-circle"?"animate-inline":"animate"}`,keys:en,motionAppear:Lr};const At=t.useMemo(()=>{const Ye=Object.assign({},(0,s.Z)(qe));return delete Ye.onAppearEnd,delete Ye.onEnterEnd,delete Ye.onLeaveEnd,Ye},[qe]);return ye!=="picture-card"&&ye!=="picture-circle"&&(Gt=Object.assign(Object.assign({},At),Gt)),t.createElement("div",{className:Ft},t.createElement(R.CSSMotionList,Object.assign({},Gt,{component:!1}),Ye=>{let{key:xt,file:tn,className:nn,style:Sn}=Ye;return t.createElement(Je,{key:xt,locale:Ae,prefixCls:me,className:nn,style:Sn,file:tn,items:kn,progress:er,listType:ye,isImgUrl:Zt,showPreviewIcon:Rn,showRemoveIcon:on,showDownloadIcon:h,removeIcon:_r,previewIcon:Qn,downloadIcon:dr,iconRender:Vr,actionIconRender:Xr,itemRender:Pn,onPreview:Er,onDownload:kr,onClose:Wr})}),yr&&t.createElement(R.default,Object.assign({},Gt,{visible:qn,forceRender:!0}),Ye=>{let{className:xt,style:tn}=Ye;return(0,i.Tm)(yr,nn=>({className:L()(nn.className,xt),style:Object.assign(Object.assign(Object.assign({},tn),{pointerEvents:xt?"none":void 0}),nn.style)}))}))};var wt=t.forwardRef(ct),Dt=e(17313),mn=e(8378),ln=e(83116),$t=e(37613),vn=j=>{const{componentCls:ue,iconCls:ye}=j;return{[`${ue}-wrapper`]:{[`${ue}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:j.colorFillAlter,border:`${j.lineWidth}px dashed ${j.colorBorder}`,borderRadius:j.borderRadiusLG,cursor:"pointer",transition:`border-color ${j.motionDurationSlow}`,[ue]:{padding:`${j.padding}px 0`},[`${ue}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${ue}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${ue}-disabled):hover`]:{borderColor:j.colorPrimaryHover},[`p${ue}-drag-icon`]:{marginBottom:j.margin,[ye]:{color:j.colorPrimary,fontSize:j.uploadThumbnailSize}},[`p${ue}-text`]:{margin:`0 0 ${j.marginXXS}px`,color:j.colorTextHeading,fontSize:j.fontSizeLG},[`p${ue}-hint`]:{color:j.colorTextDescription,fontSize:j.fontSize},[`&${ue}-disabled`]:{cursor:"not-allowed",[`p${ue}-drag-icon ${ye}, - p${ue}-text, - p${ue}-hint - `]:{color:j.colorTextDisabled}}}}}},yn=j=>{const{componentCls:ue,antCls:ye,iconCls:be,fontSize:Ze,lineHeight:Le}=j,ke=`${ue}-list-item`,Ae=`${ke}-actions`,jt=`${ke}-action`,Zt=Math.round(Ze*Le);return{[`${ue}-wrapper`]:{[`${ue}-list`]:Object.assign(Object.assign({},(0,Dt.dF)()),{lineHeight:j.lineHeight,[ke]:{position:"relative",height:j.lineHeight*Ze,marginTop:j.marginXS,fontSize:Ze,display:"flex",alignItems:"center",transition:`background-color ${j.motionDurationSlow}`,"&:hover":{backgroundColor:j.controlItemBgHover},[`${ke}-name`]:Object.assign(Object.assign({},Dt.vS),{padding:`0 ${j.paddingXS}px`,lineHeight:Le,flex:"auto",transition:`all ${j.motionDurationSlow}`}),[Ae]:{[jt]:{opacity:0},[`${jt}${ye}-btn-sm`]:{height:Zt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` - ${jt}:focus-visible, - &.picture ${jt} - `]:{opacity:1},[be]:{color:j.actionsColor,transition:`all ${j.motionDurationSlow}`},[`&:hover ${be}`]:{color:j.colorText}},[`${ue}-icon ${be}`]:{color:j.colorTextDescription,fontSize:Ze},[`${ke}-progress`]:{position:"absolute",bottom:-j.uploadProgressOffset,width:"100%",paddingInlineStart:Ze+j.paddingXS,fontSize:Ze,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${ke}:hover ${jt}`]:{opacity:1,color:j.colorText},[`${ke}-error`]:{color:j.colorError,[`${ke}-name, ${ue}-icon ${be}`]:{color:j.colorError},[Ae]:{[`${be}, ${be}:hover`]:{color:j.colorError},[jt]:{opacity:1}}},[`${ue}-list-item-container`]:{transition:`opacity ${j.motionDurationSlow}, height ${j.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},xn=e(36237),An=e(1950);const ir=new xn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),br=new xn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var ur=j=>{const{componentCls:ue}=j,ye=`${ue}-animate-inline`;return[{[`${ue}-wrapper`]:{[`${ye}-appear, ${ye}-enter, ${ye}-leave`]:{animationDuration:j.motionDurationSlow,animationTimingFunction:j.motionEaseInOutCirc,animationFillMode:"forwards"},[`${ye}-appear, ${ye}-enter`]:{animationName:ir},[`${ye}-leave`]:{animationName:br}}},{[`${ue}-wrapper`]:(0,An.J$)(j)},ir,br]},Zn=e(30071),mr=e(64993);const Or=j=>{const{componentCls:ue,iconCls:ye,uploadThumbnailSize:be,uploadProgressOffset:Ze}=j,Le=`${ue}-list`,ke=`${Le}-item`;return{[`${ue}-wrapper`]:{[` - ${Le}${Le}-picture, - ${Le}${Le}-picture-card, - ${Le}${Le}-picture-circle - `]:{[ke]:{position:"relative",height:be+j.lineWidth*2+j.paddingXS*2,padding:j.paddingXS,border:`${j.lineWidth}px ${j.lineType} ${j.colorBorder}`,borderRadius:j.borderRadiusLG,"&:hover":{background:"transparent"},[`${ke}-thumbnail`]:Object.assign(Object.assign({},Dt.vS),{width:be,height:be,lineHeight:`${be+j.paddingSM}px`,textAlign:"center",flex:"none",[ye]:{fontSize:j.fontSizeHeading2,color:j.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${ke}-progress`]:{bottom:Ze,width:`calc(100% - ${j.paddingSM*2}px)`,marginTop:0,paddingInlineStart:be+j.paddingXS}},[`${ke}-error`]:{borderColor:j.colorError,[`${ke}-thumbnail ${ye}`]:{[`svg path[fill='${Zn.blue[0]}']`]:{fill:j.colorErrorBg},[`svg path[fill='${Zn.blue.primary}']`]:{fill:j.colorError}}},[`${ke}-uploading`]:{borderStyle:"dashed",[`${ke}-name`]:{marginBottom:Ze}}},[`${Le}${Le}-picture-circle ${ke}`]:{[`&, &::before, ${ke}-thumbnail`]:{borderRadius:"50%"}}}}},Ir=j=>{const{componentCls:ue,iconCls:ye,fontSizeLG:be,colorTextLightSolid:Ze}=j,Le=`${ue}-list`,ke=`${Le}-item`,Ae=j.uploadPicCardSize;return{[` - ${ue}-wrapper${ue}-picture-card-wrapper, - ${ue}-wrapper${ue}-picture-circle-wrapper - `]:Object.assign(Object.assign({},(0,Dt.dF)()),{display:"inline-block",width:"100%",[`${ue}${ue}-select`]:{width:Ae,height:Ae,marginInlineEnd:j.marginXS,marginBottom:j.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:j.colorFillAlter,border:`${j.lineWidth}px dashed ${j.colorBorder}`,borderRadius:j.borderRadiusLG,cursor:"pointer",transition:`border-color ${j.motionDurationSlow}`,[`> ${ue}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${ue}-disabled):hover`]:{borderColor:j.colorPrimary}},[`${Le}${Le}-picture-card, ${Le}${Le}-picture-circle`]:{[`${Le}-item-container`]:{display:"inline-block",width:Ae,height:Ae,marginBlock:`0 ${j.marginXS}px`,marginInline:`0 ${j.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[ke]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${j.paddingXS*2}px)`,height:`calc(100% - ${j.paddingXS*2}px)`,backgroundColor:j.colorBgMask,opacity:0,transition:`all ${j.motionDurationSlow}`,content:'" "'}},[`${ke}:hover`]:{[`&::before, ${ke}-actions`]:{opacity:1}},[`${ke}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${j.motionDurationSlow}`,[`${ye}-eye, ${ye}-download, ${ye}-delete`]:{zIndex:10,width:be,margin:`0 ${j.marginXXS}px`,fontSize:be,cursor:"pointer",transition:`all ${j.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${ke}-actions, ${ke}-actions:hover`]:{[`${ye}-eye, ${ye}-download, ${ye}-delete`]:{color:new mr.C(Ze).setAlpha(.65).toRgbString(),"&:hover":{color:Ze}}},[`${ke}-thumbnail, ${ke}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${ke}-name`]:{display:"none",textAlign:"center"},[`${ke}-file + ${ke}-name`]:{position:"absolute",bottom:j.margin,display:"block",width:`calc(100% - ${j.paddingXS*2}px)`},[`${ke}-uploading`]:{[`&${ke}`]:{backgroundColor:j.colorFillAlter},[`&::before, ${ye}-eye, ${ye}-download, ${ye}-delete`]:{display:"none"}},[`${ke}-progress`]:{bottom:j.marginXL,width:`calc(100% - ${j.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${ue}-wrapper${ue}-picture-circle-wrapper`]:{[`${ue}${ue}-select`]:{borderRadius:"50%"}}}};var Dr=j=>{const{componentCls:ue}=j;return{[`${ue}-rtl`]:{direction:"rtl"}}};const Ur=j=>{const{componentCls:ue,colorTextDisabled:ye}=j;return{[`${ue}-wrapper`]:Object.assign(Object.assign({},(0,Dt.Wf)(j)),{[ue]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${ue}-select`]:{display:"inline-block"},[`${ue}-disabled`]:{color:ye,cursor:"not-allowed"}})}};var Zr=(0,ln.Z)("Upload",j=>{const{fontSizeHeading3:ue,fontSize:ye,lineHeight:be,lineWidth:Ze,controlHeightLG:Le}=j,ke=Math.round(ye*be),Ae=(0,$t.TS)(j,{uploadThumbnailSize:ue*2,uploadProgressOffset:ke/2+Ze,uploadPicCardSize:Le*2.55});return[Ur(Ae),vn(Ae),Or(Ae),Ir(Ae),yn(Ae),ur(Ae),Dr(Ae),(0,mn.Z)(Ae)]},j=>({actionsColor:j.colorTextDescription})),so=function(j,ue,ye,be){function Ze(Le){return Le instanceof ye?Le:new ye(function(ke){ke(Le)})}return new(ye||(ye=Promise))(function(Le,ke){function Ae(qt){try{Zt(be.next(qt))}catch(kn){ke(kn)}}function jt(qt){try{Zt(be.throw(qt))}catch(kn){ke(kn)}}function Zt(qt){qt.done?Le(qt.value):Ze(qt.value).then(Ae,jt)}Zt((be=be.apply(j,ue||[])).next())})};const Jr=`__LIST_IGNORE_${Date.now()}__`,Qe=(j,ue)=>{const{fileList:ye,defaultFileList:be,onRemove:Ze,showUploadList:Le=!0,listType:ke="text",onPreview:Ae,onDownload:jt,onChange:Zt,onDrop:qt,previewFile:kn,disabled:Rn,locale:on,iconRender:h,isImageUrl:_r,progress:Qn,prefixCls:dr,className:er,type:yr="select",children:qn,style:Pn,itemRender:In,maxCount:zn,data:Lr={},multiple:wn=!1,action:Er="",accept:kr="",supportServerRender:Wr=!0,rootClassName:Vr}=j,Xr=t.useContext(Me.Z),U=Rn!=null?Rn:Xr,[me,qe]=(0,_.Z)(be||[],{value:ye,postState:Ln=>Ln!=null?Ln:[]}),[Ft,en]=t.useState("drop"),gn=t.useRef(null);t.useMemo(()=>{const Ln=Date.now();(ye||[]).forEach((vr,Hn)=>{!vr.uid&&!Object.isFrozen(vr)&&(vr.uid=`__AUTO__${Ln}_${Hn}__`)})},[ye]);const Gt=(Ln,vr,Hn)=>{let Kt=(0,l.Z)(vr),fr=!1;zn===1?Kt=Kt.slice(-1):zn&&(fr=Kt.length>zn,Kt=Kt.slice(0,zn)),(0,V.flushSync)(()=>{qe(Kt)});const Br={file:Ln,fileList:Kt};Hn&&(Br.event=Hn),(!fr||Kt.some(zr=>zr.uid===Ln.uid))&&(0,V.flushSync)(()=>{Zt==null||Zt(Br)})},At=(Ln,vr)=>so(void 0,void 0,void 0,function*(){const{beforeUpload:Hn,transformFile:Kt}=j;let fr=Ln;if(Hn){const Br=yield Hn(Ln,vr);if(Br===!1)return!1;if(delete Ln[Jr],Br===Jr)return Object.defineProperty(Ln,Jr,{value:!0,configurable:!0}),!1;typeof Br=="object"&&Br&&(fr=Br)}return Kt&&(fr=yield Kt(fr)),fr}),Ye=Ln=>{const vr=Ln.filter(fr=>!fr.file[Jr]);if(!vr.length)return;const Hn=vr.map(fr=>$(fr.file));let Kt=(0,l.Z)(me);Hn.forEach(fr=>{Kt=f(fr,Kt)}),Hn.forEach((fr,Br)=>{let zr=fr;if(vr[Br].parsedFile)fr.status="uploading";else{const{originFileObj:to}=fr;let no;try{no=new File([to],to.name,{type:to.type})}catch(bo){no=new Blob([to],{type:to.type}),no.name=to.name,no.lastModifiedDate=new Date,no.lastModified=new Date().getTime()}no.uid=fr.uid,zr=no}Gt(zr,Kt)})},xt=(Ln,vr,Hn)=>{try{typeof Ln=="string"&&(Ln=JSON.parse(Ln))}catch(Br){}if(!Q(vr,me))return;const Kt=$(vr);Kt.status="done",Kt.percent=100,Kt.response=Ln,Kt.xhr=Hn;const fr=f(Kt,me);Gt(Kt,fr)},tn=(Ln,vr)=>{if(!Q(vr,me))return;const Hn=$(vr);Hn.status="uploading",Hn.percent=Ln.percent;const Kt=f(Hn,me);Gt(Hn,Kt,Ln)},nn=(Ln,vr,Hn)=>{if(!Q(Hn,me))return;const Kt=$(Hn);Kt.error=Ln,Kt.response=vr,Kt.status="error";const fr=f(Kt,me);Gt(Kt,fr)},Sn=Ln=>{let vr;Promise.resolve(typeof Ze=="function"?Ze(Ln):Ze).then(Hn=>{var Kt;if(Hn===!1)return;const fr=Re(Ln,me);fr&&(vr=Object.assign(Object.assign({},Ln),{status:"removed"}),me==null||me.forEach(Br=>{const zr=vr.uid!==void 0?"uid":"name";Br[zr]===vr[zr]&&!Object.isFrozen(Br)&&(Br.status="removed")}),(Kt=gn.current)===null||Kt===void 0||Kt.abort(vr),Gt(vr,fr))})},Cn=Ln=>{en(Ln.type),Ln.type==="drop"&&(qt==null||qt(Ln))};t.useImperativeHandle(ue,()=>({onBatchStart:Ye,onSuccess:xt,onProgress:tn,onError:nn,fileList:me,upload:gn.current}));const{getPrefixCls:Gn,direction:_n,upload:ot}=t.useContext(he.E_),Ot=Gn("upload",dr),$n=Object.assign(Object.assign({onBatchStart:Ye,onError:nn,onProgress:tn,onSuccess:xt},j),{data:Lr,multiple:wn,action:Er,accept:kr,supportServerRender:Wr,prefixCls:Ot,disabled:U,beforeUpload:At,onChange:void 0});delete $n.className,delete $n.style,(!qn||U)&&delete $n.id;const[sr,Mn]=Zr(Ot),[Yn]=(0,Ie.Z)("Upload",je.Z.Upload),{showRemoveIcon:wr,showPreviewIcon:Mr,showDownloadIcon:Kn,removeIcon:$r,previewIcon:Jn,downloadIcon:Kr}=typeof Le=="boolean"?{}:Le,qr=(Ln,vr)=>Le?t.createElement(wt,{prefixCls:Ot,listType:ke,items:me,previewFile:kn,onPreview:Ae,onDownload:jt,onRemove:Sn,showRemoveIcon:!U&&wr,showPreviewIcon:Mr,showDownloadIcon:Kn,removeIcon:$r,previewIcon:Jn,downloadIcon:Kr,iconRender:h,locale:Object.assign(Object.assign({},Yn),on),isImageUrl:_r,progress:Qn,appendAction:Ln,appendActionVisible:vr,itemRender:In,disabled:U}):Ln,ao=L()(`${Ot}-wrapper`,er,Vr,Mn,ot==null?void 0:ot.className,{[`${Ot}-rtl`]:_n==="rtl",[`${Ot}-picture-card-wrapper`]:ke==="picture-card",[`${Ot}-picture-circle-wrapper`]:ke==="picture-circle"}),wo=Object.assign(Object.assign({},ot==null?void 0:ot.style),Pn);if(yr==="drag"){const Ln=L()(Mn,Ot,`${Ot}-drag`,{[`${Ot}-drag-uploading`]:me.some(vr=>vr.status==="uploading"),[`${Ot}-drag-hover`]:Ft==="dragover",[`${Ot}-disabled`]:U,[`${Ot}-rtl`]:_n==="rtl"});return sr(t.createElement("span",{className:ao},t.createElement("div",{className:Ln,style:wo,onDrop:Cn,onDragOver:Cn,onDragLeave:Cn},t.createElement(x,Object.assign({},$n,{ref:gn,className:`${Ot}-btn`}),t.createElement("div",{className:`${Ot}-drag-container`},qn))),qr()))}const ro=L()(Ot,`${Ot}-select`,{[`${Ot}-disabled`]:U}),yo=(Ln=>t.createElement("div",{className:ro,style:Ln},t.createElement(x,Object.assign({},$n,{ref:gn}))))(qn?void 0:{display:"none"});return sr(ke==="picture-card"||ke==="picture-circle"?t.createElement("span",{className:ao},qr(yo,!!qn)):t.createElement("span",{className:ao},yo,qr()))};var lt=t.forwardRef(Qe),Pt=function(j,ue){var ye={};for(var be in j)Object.prototype.hasOwnProperty.call(j,be)&&ue.indexOf(be)<0&&(ye[be]=j[be]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,be=Object.getOwnPropertySymbols(j);Ze{var{style:ye,height:be}=j,Ze=Pt(j,["style","height"]);return t.createElement(lt,Object.assign({ref:ue},Ze,{type:"drag",style:Object.assign(Object.assign({},ye),{height:be})}))});const Ut=lt;Ut.Dragger=Lt,Ut.LIST_IGNORE=Jr;var kt=Ut},14625:function(ht){function le(t){var l,P,L="";if(typeof t=="string"||typeof t=="number")L+=t;else if(typeof t=="object")if(Array.isArray(t)){var T=t.length;for(l=0;l>>7-e%8&1)==1},put:function(e,t){for(var l=0;l>>t-l-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},ht.exports=le},78485:function(ht){ht.exports={L:1,M:0,Q:3,H:2}},13679:function(ht,le,e){var t=e(87532);function l(P,L){if(P.length==null)throw new Error(P.length+"/"+L);for(var T=0;T=7&&this.setupTypeNumber(F),this.dataCache==null&&(this.dataCache=p.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,W)},n.setupPositionProbePattern=function(F,W){for(var w=-1;w<=7;w++)if(!(F+w<=-1||this.moduleCount<=F+w))for(var D=-1;D<=7;D++)W+D<=-1||this.moduleCount<=W+D||(0<=w&&w<=6&&(D==0||D==6)||0<=D&&D<=6&&(w==0||w==6)||2<=w&&w<=4&&2<=D&&D<=4?this.modules[F+w][W+D]=!0:this.modules[F+w][W+D]=!1)},n.getBestMaskPattern=function(){for(var F=0,W=0,w=0;w<8;w++){this.makeImpl(!0,w);var D=L.getLostPoint(this);(w==0||F>D)&&(F=D,W=w)}return W},n.createMovieClip=function(F,W,w){var D=F.createEmptyMovieClip(W,w),g=1;this.make();for(var M=0;M>w&1)==1;this.modules[Math.floor(w/3)][w%3+this.moduleCount-8-3]=D}for(var w=0;w<18;w++){var D=!F&&(W>>w&1)==1;this.modules[w%3+this.moduleCount-8-3][Math.floor(w/3)]=D}},n.setupTypeInfo=function(F,W){for(var w=this.errorCorrectLevel<<3|W,D=L.getBCHTypeInfo(w),g=0;g<15;g++){var M=!F&&(D>>g&1)==1;g<6?this.modules[g][8]=M:g<8?this.modules[g+1][8]=M:this.modules[this.moduleCount-15+g][8]=M}for(var g=0;g<15;g++){var M=!F&&(D>>g&1)==1;g<8?this.modules[8][this.moduleCount-g-1]=M:g<9?this.modules[8][15-g-1+1]=M:this.modules[8][15-g-1]=M}this.modules[this.moduleCount-8][8]=!F},n.mapData=function(F,W){for(var w=-1,D=this.moduleCount-1,g=7,M=0,B=this.moduleCount-1;B>0;B-=2)for(B==6&&B--;;){for(var I=0;I<2;I++)if(this.modules[D][B-I]==null){var E=!1;M>>g&1)==1);var ne=L.getMask(W,D,B-I);ne&&(E=!E),this.modules[D][B-I]=E,g--,g==-1&&(M++,g=7)}if(D+=w,D<0||this.moduleCount<=D){D-=w,w=-w;break}}},p.PAD0=236,p.PAD1=17,p.createData=function(F,W,w){for(var D=l.getRSBlocks(F,W),g=new P,M=0;MI*8)throw new Error("code length overflow. ("+g.getLengthInBits()+">"+I*8+")");for(g.getLengthInBits()+4<=I*8&&g.put(0,4);g.getLengthInBits()%8!=0;)g.putBit(!1);for(;!(g.getLengthInBits()>=I*8||(g.put(p.PAD0,8),g.getLengthInBits()>=I*8));)g.put(p.PAD1,8);return p.createBytes(g,D)},p.createBytes=function(F,W){for(var w=0,D=0,g=0,M=new Array(W.length),B=new Array(W.length),I=0;I=0?H.get(A):0}}for(var ae=0,k=0;k=256;)t-=255;return le.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},e=0;e<8;e++)le.EXP_TABLE[e]=1<=0;)n^=T.G15<=0;)n^=T.G18<>>=1;return n},getPatternPosition:function(p){return T.PATTERN_POSITION_TABLE[p-1]},getMask:function(p,n,F){switch(p){case L.PATTERN000:return(n+F)%2==0;case L.PATTERN001:return n%2==0;case L.PATTERN010:return F%3==0;case L.PATTERN011:return(n+F)%3==0;case L.PATTERN100:return(Math.floor(n/2)+Math.floor(F/3))%2==0;case L.PATTERN101:return n*F%2+n*F%3==0;case L.PATTERN110:return(n*F%2+n*F%3)%2==0;case L.PATTERN111:return(n*F%3+(n+F)%2)%2==0;default:throw new Error("bad maskPattern:"+p)}},getErrorCorrectPolynomial:function(p){for(var n=new l([1],0),F=0;F5&&(F+=3+D-5)}for(var W=0;W=0)&&Object.prototype.propertyIsEnumerable.call(q,V)&&(_[V]=q[V])}return _}function p(q,x){if(q==null)return{};var _={},V=Object.keys(q),he,Me;for(Me=0;Me=0)&&(_[he]=q[he]);return _}function n(q,x){if(!(q instanceof x))throw new TypeError("Cannot call a class as a function")}function F(q,x){for(var _=0;_>6),x+=String.fromCharCode(128|V&63)):V<55296||V>=57344?(x+=String.fromCharCode(224|V>>12),x+=String.fromCharCode(128|V>>6&63),x+=String.fromCharCode(128|V&63)):(_++,V=65536+((V&1023)<<10|q.charCodeAt(_)&1023),x+=String.fromCharCode(240|V>>18),x+=String.fromCharCode(128|V>>12&63),x+=String.fromCharCode(128|V>>6&63),x+=String.fromCharCode(128|V&63))}return x}var H={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},A={},ae=4,C=.1;function S(q){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=[];return q.forEach(function(V,he){var Me=null;V.forEach(function(Ie,je){if(!Ie&&Me!==null){_.push("M".concat(Me+x," ").concat(he+x,"h").concat(je-Me,"v1H").concat(Me+x,"z")),Me=null;return}if(je===V.length-1){if(!Ie)return;Me===null?_.push("M".concat(je+x,",").concat(he+x," h1v1H").concat(je+x,"z")):_.push("M".concat(Me+x,",").concat(he+x," h").concat(je+1-Me,"v1H").concat(Me+x,"z"));return}Ie&&Me===null&&(Me=je)})}),_.join("")}function J(q,x){return q.slice().map(function(_,V){return V=x.y+x.h?_:_.map(function(he,Me){return Me=x.x+x.w?he:!1})})}function te(q,x){var _=q.imageSettings,V=q.size,he=q.includeMargin;if(_==null)return null;var Me=he?ae:0,Ie=x.length+Me*2,je=Math.floor(V*C),et=Ie/V,rt=(_.width||je)*et,Ke=(_.height||je)*et,Te=_.x==null?x.length/2-rt/2:_.x*et,tt=_.y==null?x.length/2-Ke/2:_.y*et,mt=null;if(_.excavate){var De=Math.floor(Te),ut=Math.floor(tt),St=Math.ceil(rt+Te-De),$e=Math.ceil(Ke+tt-ut);mt={x:De,y:ut,w:St,h:$e}}return{x:Te,y:tt,h:Ke,w:rt,excavation:mt}}var z=function(){try{new Path2D().addPath(new Path2D)}catch(q){return!1}return!0}(),v=function(q){M(x,q);function x(){var _,V;n(this,x);for(var he=arguments.length,Me=new Array(he),Ie=0;Ie0&&arguments[0]!==void 0?arguments[0]:[],K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],m=Z.length,a=K.length;if(Math.abs(m-a)!==1)return{add:!1,key:null};function R(fe,s){var i=new Map;fe.forEach(function($){i.set($,!0)});var X=s.filter(function($){return!i.has($)});return X.length===1?X[0]:null}return m ").concat(K);return K}var tt=E.forwardRef(function(Z,K){var m=Z.prefixCls,a=Z.data,R=Z.selectable,fe=Z.checkable,s=Z.expandedKeys,i=Z.selectedKeys,X=Z.checkedKeys,$=Z.loadedKeys,f=Z.loadingKeys,Q=Z.halfCheckedKeys,Re=Z.keyEntities,Pe=Z.disabled,Se=Z.dragging,Ne=Z.dragOverNodeKey,Be=Z.dropPosition,d=Z.motion,Y=Z.height,se=Z.itemHeight,xe=Z.virtual,Fe=Z.focusable,_e=Z.activeItem,He=Z.focused,Je=Z.tabIndex,ct=Z.onKeyDown,Bt=Z.onFocus,wt=Z.onBlur,Dt=Z.onActiveChange,mn=Z.onListChangeStart,ln=Z.onListChangeEnd,$t=(0,H.Z)(Z,_),En=E.useRef(null),vn=E.useRef(null);E.useImperativeHandle(K,function(){return{scrollTo:function(kt){En.current.scrollTo(kt)},getIndentWidth:function(){return vn.current.offsetWidth}}});var sn=E.useState(s),yn=(0,ie.Z)(sn,2),xn=yn[0],An=yn[1],ir=E.useState(a),br=(0,ie.Z)(ir,2),Vn=br[0],ur=br[1],Zn=E.useState(a),mr=(0,ie.Z)(Zn,2),Or=mr[0],Ir=mr[1],hr=E.useState([]),Dr=(0,ie.Z)(hr,2),Ur=Dr[0],Zr=Dr[1],so=E.useState(null),Jr=(0,ie.Z)(so,2),Qe=Jr[0],pe=Jr[1],lt=E.useRef(a);lt.current=a;function Pt(){var Ut=lt.current;ur(Ut),Ir(Ut),Zr([]),pe(null),ln()}(0,A.Z)(function(){An(s);var Ut=q(xn,s);if(Ut.key!==null)if(Ut.add){var kt=Vn.findIndex(function(Le){var ke=Le.key;return ke===Ut.key}),j=rt(x(Vn,a,Ut.key),xe,Y,se),ue=Vn.slice();ue.splice(kt+1,0,et),Ir(ue),Zr(j),pe("show")}else{var ye=a.findIndex(function(Le){var ke=Le.key;return ke===Ut.key}),be=rt(x(a,Vn,Ut.key),xe,Y,se),Ze=a.slice();Ze.splice(ye+1,0,et),Ir(Ze),Zr(be),pe("hide")}else Vn!==a&&(ur(a),Ir(a))},[s,a]),E.useEffect(function(){Se||Pt()},[Se]);var Nt=d?Or:a,Lt={expandedKeys:s,selectedKeys:i,loadedKeys:$,loadingKeys:f,checkedKeys:X,halfCheckedKeys:Q,dragOverNodeKey:Ne,dropPosition:Be,keyEntities:Re};return E.createElement(E.Fragment,null,He&&_e&&E.createElement("span",{style:V,"aria-live":"assertive"},Te(_e)),E.createElement("div",null,E.createElement("input",{style:V,disabled:Fe===!1||Pe,tabIndex:Fe!==!1?Je:null,onKeyDown:ct,onFocus:Bt,onBlur:wt,value:"",onChange:he,"aria-label":"for screen reader"})),E.createElement("div",{className:"".concat(m,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},E.createElement("div",{className:"".concat(m,"-indent")},E.createElement("div",{ref:vn,className:"".concat(m,"-indent-unit")}))),E.createElement(ae.Z,(0,t.Z)({},$t,{data:Nt,itemKey:Ke,height:Y,fullHeight:!1,virtual:xe,itemHeight:se,prefixCls:"".concat(m,"-list"),ref:En,onVisibleChange:function(kt,j){var ue=new Set(kt),ye=j.filter(function(be){return!ue.has(be)});ye.some(function(be){return Ke(be)===Me})&&Pt()}}),function(Ut){var kt=Ut.pos,j=(0,t.Z)({},(de(Ut.data),Ut.data)),ue=Ut.title,ye=Ut.key,be=Ut.isStart,Ze=Ut.isEnd,Le=(0,te.km)(ye,kt);delete j.key,delete j.children;var ke=(0,te.H8)(Le,Lt);return E.createElement(ce,(0,t.Z)({},j,ke,{title:ue,active:!!_e&&ye===_e.key,pos:kt,data:Ut.data,isStart:be,isEnd:Ze,motion:d,motionNodes:ye===Me?Ur:null,motionType:Qe,onMotionStart:mn,onMotionEnd:Pt,treeNodeRequiredProps:Lt,onMouseMove:function(){Dt(null)}}))}))});tt.displayName="NodeList";var mt=tt,De=e(35654),ut=e(90782),St=e(67841),$e=10,ve=function(Z){(0,W.Z)(m,Z);var K=(0,w.Z)(m);function m(){var a;(0,p.Z)(this,m);for(var R=arguments.length,fe=new Array(R),s=0;s2&&arguments[2]!==void 0?arguments[2]:!1,Q=a.state,Re=Q.dragChildrenKeys,Pe=Q.dropPosition,Se=Q.dropTargetKey,Ne=Q.dropTargetPos,Be=Q.dropAllowed;if(Be){var d=a.props.onDrop;if(a.setState({dragOverNodeKey:null}),a.cleanDragState(),Se!==null){var Y=(0,L.Z)((0,L.Z)({},(0,te.H8)(Se,a.getTreeNodeRequiredProps())),{},{active:(($=a.getActiveItem())===null||$===void 0?void 0:$.key)===Se,data:(0,St.Z)(a.state.keyEntities,Se).node}),se=Re.indexOf(Se)!==-1;(0,I.ZP)(!se,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var xe=(0,De.yx)(Ne),Fe={event:i,node:(0,te.F)(Y),dragNode:a.dragNode?(0,te.F)(a.dragNode.props):null,dragNodesKeys:[a.dragNode.props.eventKey].concat(Re),dropToGap:Pe!==0,dropPosition:Pe+Number(xe[xe.length-1])};f||d==null||d(Fe),a.dragNode=null}}},a.cleanDragState=function(){var i=a.state.draggingNodeKey;i!==null&&a.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),a.dragStartMousePosition=null,a.currentMouseOverDroppableNodeKey=null},a.triggerExpandActionExpand=function(i,X){var $=a.state,f=$.expandedKeys,Q=$.flattenNodes,Re=X.expanded,Pe=X.key,Se=X.isLeaf;if(!(Se||i.shiftKey||i.metaKey||i.ctrlKey)){var Ne=Q.filter(function(d){return d.key===Pe})[0],Be=(0,te.F)((0,L.Z)((0,L.Z)({},(0,te.H8)(Pe,a.getTreeNodeRequiredProps())),{},{data:Ne.data}));a.setExpandedKeys(Re?(0,De._5)(f,Pe):(0,De.L0)(f,Pe)),a.onNodeExpand(i,Be)}},a.onNodeClick=function(i,X){var $=a.props,f=$.onClick,Q=$.expandAction;Q==="click"&&a.triggerExpandActionExpand(i,X),f==null||f(i,X)},a.onNodeDoubleClick=function(i,X){var $=a.props,f=$.onDoubleClick,Q=$.expandAction;Q==="doubleClick"&&a.triggerExpandActionExpand(i,X),f==null||f(i,X)},a.onNodeSelect=function(i,X){var $=a.state.selectedKeys,f=a.state,Q=f.keyEntities,Re=f.fieldNames,Pe=a.props,Se=Pe.onSelect,Ne=Pe.multiple,Be=X.selected,d=X[Re.key],Y=!Be;Y?Ne?$=(0,De.L0)($,d):$=[d]:$=(0,De._5)($,d);var se=$.map(function(xe){var Fe=(0,St.Z)(Q,xe);return Fe?Fe.node:null}).filter(function(xe){return xe});a.setUncontrolledState({selectedKeys:$}),Se==null||Se($,{event:"select",selected:Y,node:X,selectedNodes:se,nativeEvent:i.nativeEvent})},a.onNodeCheck=function(i,X,$){var f=a.state,Q=f.keyEntities,Re=f.checkedKeys,Pe=f.halfCheckedKeys,Se=a.props,Ne=Se.checkStrictly,Be=Se.onCheck,d=X.key,Y,se={event:"check",node:X,checked:$,nativeEvent:i.nativeEvent};if(Ne){var xe=$?(0,De.L0)(Re,d):(0,De._5)(Re,d),Fe=(0,De._5)(Pe,d);Y={checked:xe,halfChecked:Fe},se.checkedNodes=xe.map(function(wt){return(0,St.Z)(Q,wt)}).filter(function(wt){return wt}).map(function(wt){return wt.node}),a.setUncontrolledState({checkedKeys:xe})}else{var _e=(0,ut.S)([].concat((0,T.Z)(Re),[d]),!0,Q),He=_e.checkedKeys,Je=_e.halfCheckedKeys;if(!$){var ct=new Set(He);ct.delete(d);var Bt=(0,ut.S)(Array.from(ct),{checked:!1,halfCheckedKeys:Je},Q);He=Bt.checkedKeys,Je=Bt.halfCheckedKeys}Y=He,se.checkedNodes=[],se.checkedNodesPositions=[],se.halfCheckedKeys=Je,He.forEach(function(wt){var Dt=(0,St.Z)(Q,wt);if(Dt){var mn=Dt.node,ln=Dt.pos;se.checkedNodes.push(mn),se.checkedNodesPositions.push({node:mn,pos:ln})}}),a.setUncontrolledState({checkedKeys:He},!1,{halfCheckedKeys:Je})}Be==null||Be(Y,se)},a.onNodeLoad=function(i){var X=i.key,$=new Promise(function(f,Q){a.setState(function(Re){var Pe=Re.loadedKeys,Se=Pe===void 0?[]:Pe,Ne=Re.loadingKeys,Be=Ne===void 0?[]:Ne,d=a.props,Y=d.loadData,se=d.onLoad;if(!Y||Se.indexOf(X)!==-1||Be.indexOf(X)!==-1)return null;var xe=Y(i);return xe.then(function(){var Fe=a.state.loadedKeys,_e=(0,De.L0)(Fe,X);se==null||se(_e,{event:"load",node:i}),a.setUncontrolledState({loadedKeys:_e}),a.setState(function(He){return{loadingKeys:(0,De._5)(He.loadingKeys,X)}}),f()}).catch(function(Fe){if(a.setState(function(He){return{loadingKeys:(0,De._5)(He.loadingKeys,X)}}),a.loadingRetryTimes[X]=(a.loadingRetryTimes[X]||0)+1,a.loadingRetryTimes[X]>=$e){var _e=a.state.loadedKeys;(0,I.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),a.setUncontrolledState({loadedKeys:(0,De.L0)(_e,X)}),f()}Q(Fe)}),{loadingKeys:(0,De.L0)(Be,X)}})});return $.catch(function(){}),$},a.onNodeMouseEnter=function(i,X){var $=a.props.onMouseEnter;$==null||$({event:i,node:X})},a.onNodeMouseLeave=function(i,X){var $=a.props.onMouseLeave;$==null||$({event:i,node:X})},a.onNodeContextMenu=function(i,X){var $=a.props.onRightClick;$&&(i.preventDefault(),$({event:i,node:X}))},a.onFocus=function(){var i=a.props.onFocus;a.setState({focused:!0});for(var X=arguments.length,$=new Array(X),f=0;f1&&arguments[1]!==void 0?arguments[1]:!1,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!a.destroyed){var f=!1,Q=!0,Re={};Object.keys(i).forEach(function(Pe){if(Pe in a.props){Q=!1;return}f=!0,Re[Pe]=i[Pe]}),f&&(!X||Q)&&a.setState((0,L.Z)((0,L.Z)({},Re),$))}},a.scrollTo=function(i){a.listRef.current.scrollTo(i)},a}return(0,n.Z)(m,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var R=this.props.activeKey;R!==void 0&&R!==this.state.activeKey&&(this.setState({activeKey:R}),R!==null&&this.scrollTo({key:R}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var R,fe=this.state,s=fe.focused,i=fe.flattenNodes,X=fe.keyEntities,$=fe.draggingNodeKey,f=fe.activeKey,Q=fe.dropLevelOffset,Re=fe.dropContainerKey,Pe=fe.dropTargetKey,Se=fe.dropPosition,Ne=fe.dragOverNodeKey,Be=fe.indent,d=this.props,Y=d.prefixCls,se=d.className,xe=d.style,Fe=d.showLine,_e=d.focusable,He=d.tabIndex,Je=He===void 0?0:He,ct=d.selectable,Bt=d.showIcon,wt=d.icon,Dt=d.switcherIcon,mn=d.draggable,ln=d.checkable,$t=d.checkStrictly,En=d.disabled,vn=d.motion,sn=d.loadData,yn=d.filterTreeNode,xn=d.height,An=d.itemHeight,ir=d.virtual,br=d.titleRender,Vn=d.dropIndicatorRender,ur=d.onContextMenu,Zn=d.onScroll,mr=d.direction,Or=d.rootClassName,Ir=d.rootStyle,hr=(0,B.Z)(this.props,{aria:!0,data:!0}),Dr;return mn&&((0,P.Z)(mn)==="object"?Dr=mn:typeof mn=="function"?Dr={nodeDraggable:mn}:Dr={}),E.createElement(ne.k.Provider,{value:{prefixCls:Y,selectable:ct,showIcon:Bt,icon:wt,switcherIcon:Dt,draggable:Dr,draggingNodeKey:$,checkable:ln,checkStrictly:$t,disabled:En,keyEntities:X,dropLevelOffset:Q,dropContainerKey:Re,dropTargetKey:Pe,dropPosition:Se,dragOverNodeKey:Ne,indent:Be,direction:mr,dropIndicatorRender:Vn,loadData:sn,filterTreeNode:yn,titleRender:br,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}},E.createElement("div",{role:"tree",className:g()(Y,se,Or,(R={},(0,l.Z)(R,"".concat(Y,"-show-line"),Fe),(0,l.Z)(R,"".concat(Y,"-focused"),s),(0,l.Z)(R,"".concat(Y,"-active-focused"),f!==null),R)),style:Ir},E.createElement(mt,(0,t.Z)({ref:this.listRef,prefixCls:Y,style:xe,data:i,disabled:En,selectable:ct,checkable:!!ln,motion:vn,dragging:$!==null,height:xn,itemHeight:An,virtual:ir,focusable:_e,focused:s,tabIndex:Je,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:ur,onScroll:Zn},this.getTreeNodeRequiredProps(),hr))))}}],[{key:"getDerivedStateFromProps",value:function(R,fe){var s=fe.prevProps,i={prevProps:R};function X(_e){return!s&&_e in R||s&&s[_e]!==R[_e]}var $,f=fe.fieldNames;if(X("fieldNames")&&(f=(0,te.w$)(R.fieldNames),i.fieldNames=f),X("treeData")?$=R.treeData:X("children")&&((0,I.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),$=(0,te.zn)(R.children)),$){i.treeData=$;var Q=(0,te.I8)($,{fieldNames:f});i.keyEntities=(0,L.Z)((0,l.Z)({},Me,je),Q.keyEntities)}var Re=i.keyEntities||fe.keyEntities;if(X("expandedKeys")||s&&X("autoExpandParent"))i.expandedKeys=R.autoExpandParent||!s&&R.defaultExpandParent?(0,De.r7)(R.expandedKeys,Re):R.expandedKeys;else if(!s&&R.defaultExpandAll){var Pe=(0,L.Z)({},Re);delete Pe[Me],i.expandedKeys=Object.keys(Pe).map(function(_e){return Pe[_e].key})}else!s&&R.defaultExpandedKeys&&(i.expandedKeys=R.autoExpandParent||R.defaultExpandParent?(0,De.r7)(R.defaultExpandedKeys,Re):R.defaultExpandedKeys);if(i.expandedKeys||delete i.expandedKeys,$||i.expandedKeys){var Se=(0,te.oH)($||fe.treeData,i.expandedKeys||fe.expandedKeys,f);i.flattenNodes=Se}if(R.selectable&&(X("selectedKeys")?i.selectedKeys=(0,De.BT)(R.selectedKeys,R):!s&&R.defaultSelectedKeys&&(i.selectedKeys=(0,De.BT)(R.defaultSelectedKeys,R))),R.checkable){var Ne;if(X("checkedKeys")?Ne=(0,De.E6)(R.checkedKeys)||{}:!s&&R.defaultCheckedKeys?Ne=(0,De.E6)(R.defaultCheckedKeys)||{}:$&&(Ne=(0,De.E6)(R.checkedKeys)||{checkedKeys:fe.checkedKeys,halfCheckedKeys:fe.halfCheckedKeys}),Ne){var Be=Ne,d=Be.checkedKeys,Y=d===void 0?[]:d,se=Be.halfCheckedKeys,xe=se===void 0?[]:se;if(!R.checkStrictly){var Fe=(0,ut.S)(Y,!0,Re);Y=Fe.checkedKeys,xe=Fe.halfCheckedKeys}i.checkedKeys=Y,i.halfCheckedKeys=xe}}return X("loadedKeys")&&(i.loadedKeys=R.loadedKeys),i}}]),m}(E.Component);ve.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:[],dropIndicatorRender:k,allowDrop:function(){return!0},expandAction:!1},ve.TreeNode=S.Z;var at=ve,Ee=at},35654:function(ht,le,e){"use strict";e.d(le,{BT:function(){return E},E6:function(){return de},L0:function(){return w},OM:function(){return I},_5:function(){return W},r7:function(){return ie},wA:function(){return g},yx:function(){return D}});var t=e(94480),l=e(76190),P=e(48736),L=e(59301),T=e(39417),p=e(67841),n=e(71430),F=null;function W(H,A){if(!H)return[];var ae=H.slice(),C=ae.indexOf(A);return C>=0&&ae.splice(C,1),ae}function w(H,A){var ae=(H||[]).slice();return ae.indexOf(A)===-1&&ae.push(A),ae}function D(H){return H.split("-")}function g(H,A){var ae=[],C=(0,p.Z)(A,H);function S(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];J.forEach(function(te){var z=te.key,v=te.children;ae.push(z),S(v)})}return S(C.children),ae}function M(H){if(H.parent){var A=D(H.pos);return Number(A[A.length-1])===H.parent.children.length-1}return!1}function B(H){var A=D(H.pos);return Number(A[A.length-1])===0}function I(H,A,ae,C,S,J,te,z,v,b){var ce,q=H.clientX,x=H.clientY,_=H.target.getBoundingClientRect(),V=_.top,he=_.height,Me=(b==="rtl"?-1:1)*(((S==null?void 0:S.x)||0)-q),Ie=(Me-12)/C,je=(0,p.Z)(z,ae.props.eventKey);if(x-1.5?J({dragNode:$e,dropNode:ve,dropPosition:1})?De=1:at=!1:J({dragNode:$e,dropNode:ve,dropPosition:0})?De=0:J({dragNode:$e,dropNode:ve,dropPosition:1})?De=1:at=!1:J({dragNode:$e,dropNode:ve,dropPosition:1})?De=1:at=!1,{dropPosition:De,dropLevelOffset:ut,dropTargetKey:je.key,dropTargetPos:je.pos,dragOverNodeKey:mt,dropContainerKey:De===0?null:((ce=je.parent)===null||ce===void 0?void 0:ce.key)||null,dropAllowed:at}}function E(H,A){if(H){var ae=A.multiple;return ae?H.slice():H.length?[H[0]]:H}}var ne=function(A){return A};function k(H,A){if(!H)return[];var ae=A||{},C=ae.processProps,S=C===void 0?ne:C,J=Array.isArray(H)?H:[H];return J.map(function(te){var z=te.children,v=_objectWithoutProperties(te,F),b=k(z,A);return React.createElement(TreeNode,_extends({key:v.key},S(v)),b)})}function de(H){if(!H)return null;var A;if(Array.isArray(H))A={checkedKeys:H,halfCheckedKeys:void 0};else if((0,l.Z)(H)==="object")A={checkedKeys:H.checked||void 0,halfCheckedKeys:H.halfChecked||void 0};else return(0,P.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return A}function ie(H,A){var ae=new Set;function C(S){if(!ae.has(S)){var J=(0,p.Z)(A,S);if(J){ae.add(S);var te=J.parent,z=J.node;z.disabled||te&&C(te.key)}}}return(H||[]).forEach(function(S){C(S)}),(0,t.Z)(ae)}},90782:function(ht,le,e){"use strict";e.d(le,{S:function(){return n}});var t=e(48736),l=e(67841);function P(F,W){var w=new Set;return F.forEach(function(D){W.has(D)||w.add(D)}),w}function L(F){var W=F||{},w=W.disabled,D=W.disableCheckbox,g=W.checkable;return!!(w||D)||g===!1}function T(F,W,w,D){for(var g=new Set(F),M=new Set,B=0;B<=w;B+=1){var I=W.get(B)||new Set;I.forEach(function(de){var ie=de.key,H=de.node,A=de.children,ae=A===void 0?[]:A;g.has(ie)&&!D(H)&&ae.filter(function(C){return!D(C.node)}).forEach(function(C){g.add(C.key)})})}for(var E=new Set,ne=w;ne>=0;ne-=1){var k=W.get(ne)||new Set;k.forEach(function(de){var ie=de.parent,H=de.node;if(!(D(H)||!de.parent||E.has(de.parent.key))){if(D(de.parent.node)){E.add(ie.key);return}var A=!0,ae=!1;(ie.children||[]).filter(function(C){return!D(C.node)}).forEach(function(C){var S=C.key,J=g.has(S);A&&!J&&(A=!1),!ae&&(J||M.has(S))&&(ae=!0)}),A&&g.add(ie.key),ae&&M.add(ie.key),E.add(ie.key)}})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(P(M,g))}}function p(F,W,w,D,g){for(var M=new Set(F),B=new Set(W),I=0;I<=D;I+=1){var E=w.get(I)||new Set;E.forEach(function(ie){var H=ie.key,A=ie.node,ae=ie.children,C=ae===void 0?[]:ae;!M.has(H)&&!B.has(H)&&!g(A)&&C.filter(function(S){return!g(S.node)}).forEach(function(S){M.delete(S.key)})})}B=new Set;for(var ne=new Set,k=D;k>=0;k-=1){var de=w.get(k)||new Set;de.forEach(function(ie){var H=ie.parent,A=ie.node;if(!(g(A)||!ie.parent||ne.has(ie.parent.key))){if(g(ie.parent.node)){ne.add(H.key);return}var ae=!0,C=!1;(H.children||[]).filter(function(S){return!g(S.node)}).forEach(function(S){var J=S.key,te=M.has(J);ae&&!te&&(ae=!1),!C&&(te||B.has(J))&&(C=!0)}),ae||M.delete(H.key),C&&B.add(H.key),ne.add(H.key)}})}return{checkedKeys:Array.from(M),halfCheckedKeys:Array.from(P(B,M))}}function n(F,W,w,D){var g=[],M;D?M=D:M=L;var B=new Set(F.filter(function(k){var de=!!(0,l.Z)(w,k);return de||g.push(k),de})),I=new Map,E=0;Object.keys(w).forEach(function(k){var de=w[k],ie=de.level,H=I.get(ie);H||(H=new Set,I.set(ie,H)),H.add(de),E=Math.max(E,ie)}),(0,t.ZP)(!g.length,"Tree missing follow keys: ".concat(g.slice(0,100).map(function(k){return"'".concat(k,"'")}).join(", ")));var ne;return W===!0?ne=T(B,I,E,M):ne=p(B,W.halfCheckedKeys,I,E,M),ne}},67841:function(ht,le,e){"use strict";e.d(le,{Z:function(){return t}});function t(l,P){return l[P]}},71430:function(ht,le,e){"use strict";e.d(le,{F:function(){return ie},H8:function(){return de},I8:function(){return k},km:function(){return g},oH:function(){return E},w$:function(){return M},zn:function(){return I}});var t=e(76190),l=e(94480),P=e(33885),L=e(75931),T=e(11592),p=e(2738),n=e(48736),F=e(67841),W=["children"];function w(H,A){return"".concat(H,"-").concat(A)}function D(H){return H&&H.type&&H.type.isTreeNode}function g(H,A){return H!=null?H:A}function M(H){var A=H||{},ae=A.title,C=A._title,S=A.key,J=A.children,te=ae||"title";return{title:te,_title:C||[te],key:S||"key",children:J||"children"}}function B(H,A){var ae=new Map;function C(S){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(S||[]).forEach(function(te){var z=te[A.key],v=te[A.children];warning(z!=null,"Tree node must have a certain key: [".concat(J).concat(z,"]"));var b=String(z);warning(!ae.has(b)||z===null||z===void 0,"Same 'key' exist in the Tree: ".concat(b)),ae.set(b,!0),C(v,"".concat(J).concat(b," > "))})}C(H)}function I(H){function A(ae){var C=(0,T.Z)(ae);return C.map(function(S){if(!D(S))return(0,n.ZP)(!S,"Tree/TreeNode can only accept TreeNode as children."),null;var J=S.key,te=S.props,z=te.children,v=(0,L.Z)(te,W),b=(0,P.Z)({key:J},v),ce=A(z);return ce.length&&(b.children=ce),b}).filter(function(S){return S})}return A(H)}function E(H,A,ae){var C=M(ae),S=C._title,J=C.key,te=C.children,z=new Set(A===!0?[]:A),v=[];function b(ce){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ce.map(function(x,_){for(var V=w(q?q.pos:"0",_),he=g(x[J],V),Me,Ie=0;Ie1&&arguments[1]!==void 0?arguments[1]:{},ae=A.initWrapper,C=A.processEntity,S=A.onProcessFinished,J=A.externalGetKey,te=A.childrenPropName,z=A.fieldNames,v=arguments.length>2?arguments[2]:void 0,b=J||v,ce={},q={},x={posEntities:ce,keyEntities:q};return ae&&(x=ae(x)||x),ne(H,function(_){var V=_.node,he=_.index,Me=_.pos,Ie=_.key,je=_.parentPos,et=_.level,rt=_.nodes,Ke={node:V,nodes:rt,index:he,key:Ie,pos:Me,level:et},Te=g(Ie,Me);ce[Me]=Ke,q[Te]=Ke,Ke.parent=ce[je],Ke.parent&&(Ke.parent.children=Ke.parent.children||[],Ke.parent.children.push(Ke)),C&&C(Ke,x)},{externalGetKey:b,childrenPropName:te,fieldNames:z}),S&&S(x),x}function de(H,A){var ae=A.expandedKeys,C=A.selectedKeys,S=A.loadedKeys,J=A.loadingKeys,te=A.checkedKeys,z=A.halfCheckedKeys,v=A.dragOverNodeKey,b=A.dropPosition,ce=A.keyEntities,q=(0,F.Z)(ce,H),x={eventKey:H,expanded:ae.indexOf(H)!==-1,selected:C.indexOf(H)!==-1,loaded:S.indexOf(H)!==-1,loading:J.indexOf(H)!==-1,checked:te.indexOf(H)!==-1,halfChecked:z.indexOf(H)!==-1,pos:String(q?q.pos:""),dragOver:v===H&&b===0,dragOverGapTop:v===H&&b===-1,dragOverGapBottom:v===H&&b===1};return x}function ie(H){var A=H.data,ae=H.expanded,C=H.selected,S=H.checked,J=H.loaded,te=H.loading,z=H.halfChecked,v=H.dragOver,b=H.dragOverGapTop,ce=H.dragOverGapBottom,q=H.pos,x=H.active,_=H.eventKey,V=(0,P.Z)((0,P.Z)({},A),{},{expanded:ae,selected:C,checked:S,loaded:J,loading:te,halfChecked:z,dragOver:v,dragOverGapTop:b,dragOverGapBottom:ce,pos:q,active:x,key:_});return"props"in V||Object.defineProperty(V,"props",{get:function(){return(0,n.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),H}}),V}},8224:function(ht,le,e){"use strict";e.d(le,{Z:function(){return l}});var t=e(4676);function l(P,L,T,p){var n=t.unstable_batchedUpdates?function(W){t.unstable_batchedUpdates(T,W)}:T;return P!=null&&P.addEventListener&&P.addEventListener(L,n,p),{remove:function(){P!=null&&P.removeEventListener&&P.removeEventListener(L,n,p)}}}},55468:function(ht,le,e){"use strict";e.d(le,{g1:function(){return D},os:function(){return M}});var t=/margin|padding|width|height|max|min|offset/,l={left:!0,top:!0},P={cssFloat:1,styleFloat:1,float:1};function L(B){return B.nodeType===1?B.ownerDocument.defaultView.getComputedStyle(B,null):{}}function T(B,I,E){if(I=I.toLowerCase(),E==="auto"){if(I==="height")return B.offsetHeight;if(I==="width")return B.offsetWidth}return I in l||(l[I]=t.test(I)),l[I]?parseFloat(E)||0:E}function p(B,I){var E=arguments.length,ne=L(B);return I=P[I]?"cssFloat"in B.style?"cssFloat":"styleFloat":I,E===1?ne:T(B,I,ne[I]||B.style[I])}function n(B,I,E){var ne=arguments.length;if(I=P[I]?"cssFloat"in B.style?"cssFloat":"styleFloat":I,ne===3)return typeof E=="number"&&t.test(I)&&(E="".concat(E,"px")),B.style[I]=E,E;for(var k in I)I.hasOwnProperty(k)&&n(B,k,I[k]);return L(B)}function F(B){return B===document.body?document.documentElement.clientWidth:B.offsetWidth}function W(B){return B===document.body?window.innerHeight||document.documentElement.clientHeight:B.offsetHeight}function w(){var B=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),I=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:B,height:I}}function D(){var B=document.documentElement.clientWidth,I=window.innerHeight||document.documentElement.clientHeight;return{width:B,height:I}}function g(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function M(B){var I=B.getBoundingClientRect(),E=document.documentElement;return{left:I.left+(window.pageXOffset||E.scrollLeft)-(E.clientLeft||document.body.clientLeft||0),top:I.top+(window.pageYOffset||E.scrollTop)-(E.clientTop||document.body.clientTop||0)}}},24514:function(ht,le,e){"use strict";e.d(le,{G:function(){return L}});var t=e(47273),l=function(p){if((0,t.Z)()&&window.document.documentElement){var n=Array.isArray(p)?p:[p],F=window.document.documentElement;return n.some(function(W){return W in F.style})}return!1},P=function(p,n){if(!l(p))return!1;var F=document.createElement("div"),W=F.style[p];return F.style[p]=n,F.style[p]!==W};function L(T,p){return!Array.isArray(T)&&p!==void 0?P(T,p):l(T)}},51353:function(ht,le,e){"use strict";Object.defineProperty(le,"__esModule",{value:!0}),Object.defineProperty(le,"DraggableCore",{enumerable:!0,get:function(){return F.default}}),le.default=void 0;var t=D(e(59301)),l=w(e(12708)),P=w(e(4676)),L=e(14625),T=e(77026),p=e(22013),n=e(80217),F=w(e(68555)),W=w(e(97510));function w(ne){return ne&&ne.__esModule?ne:{default:ne}}function D(ne,k){if(typeof WeakMap=="function")var de=new WeakMap,ie=new WeakMap;return(D=function(H,A){if(!A&&H&&H.__esModule)return H;var ae,C,S={__proto__:null,default:H};if(H===null||typeof H!="object"&&typeof H!="function")return S;if(ae=A?ie:de){if(ae.has(H))return ae.get(H);ae.set(H,S)}for(const J in H)J!=="default"&&{}.hasOwnProperty.call(H,J)&&((C=(ae=Object.defineProperty)&&Object.getOwnPropertyDescriptor(H,J))&&(C.get||C.set)?ae(S,J,C):S[J]=H[J]);return S})(ne,k)}function g(){return g=Object.assign?Object.assign.bind():function(ne){for(var k=1;k{if((0,W.default)("Draggable: onDragStart: %j",ie),this.props.onStart(de,(0,p.createDraggableData)(this,ie))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),M(this,"onDrag",(de,ie)=>{if(!this.state.dragging)return!1;(0,W.default)("Draggable: onDrag: %j",ie);const H=(0,p.createDraggableData)(this,ie),A={x:H.x,y:H.y,slackX:0,slackY:0};if(this.props.bounds){const{x:C,y:S}=A;A.x+=this.state.slackX,A.y+=this.state.slackY;const[J,te]=(0,p.getBoundPosition)(this,A.x,A.y);A.x=J,A.y=te,A.slackX=this.state.slackX+(C-A.x),A.slackY=this.state.slackY+(S-A.y),H.x=A.x,H.y=A.y,H.deltaX=A.x-this.state.x,H.deltaY=A.y-this.state.y}if(this.props.onDrag(de,H)===!1)return!1;this.setState(A)}),M(this,"onDragStop",(de,ie)=>{if(!this.state.dragging||this.props.onStop(de,(0,p.createDraggableData)(this,ie))===!1)return!1;(0,W.default)("Draggable: onDragStop: %j",ie);const A={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:C,y:S}=this.props.position;A.x=C,A.y=S}this.setState(A)}),this.state={dragging:!1,dragged:!1,x:k.position?k.position.x:k.defaultPosition.x,y:k.position?k.position.y:k.defaultPosition.y,prevPropsPosition:Mo({},k.position),slackX:0,slackY:0,isElementSVG:!1},k.position&&!(k.onDrag||k.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var k,de,ie;return(ie=(de=(k=this.props)==null?void 0:k.nodeRef)==null?void 0:de.current)!=null?ie:P.default.findDOMNode(this)}render(){const he=this.props,{axis:k,bounds:de,children:ie,defaultPosition:H,defaultClassName:A,defaultClassNameDragging:ae,defaultClassNameDragged:C,position:S,positionOffset:J,scale:te}=he,z=ti(he,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let v={},b=null;const q=!!!S||this.state.dragging,x=S||H,_={x:(0,p.canDragX)(this)&&q?this.state.x:x.x,y:(0,p.canDragY)(this)&&q?this.state.y:x.y};this.state.isElementSVG?b=(0,T.createSVGTransform)(_,J):v=(0,T.createCSSTransform)(_,J);const V=(0,L.clsx)(ie.props.className||"",A,{[ae]:this.state.dragging,[C]:this.state.dragged});return t.createElement(F.default,g({},z,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(ie),{className:V,style:Mo(Mo({},ie.props.style),v),transform:b}))}}le.default=E,M(E,"displayName","Draggable"),M(E,"propTypes",Dl(Mo({},F.default.propTypes),{axis:l.default.oneOf(["both","x","y","none"]),bounds:l.default.oneOfType([l.default.shape({left:l.default.number,right:l.default.number,top:l.default.number,bottom:l.default.number}),l.default.string,l.default.oneOf([!1])]),defaultClassName:l.default.string,defaultClassNameDragging:l.default.string,defaultClassNameDragged:l.default.string,defaultPosition:l.default.shape({x:l.default.number,y:l.default.number}),positionOffset:l.default.shape({x:l.default.oneOfType([l.default.number,l.default.string]),y:l.default.oneOfType([l.default.number,l.default.string])}),position:l.default.shape({x:l.default.number,y:l.default.number}),className:n.dontSetMe,style:n.dontSetMe,transform:n.dontSetMe})),M(E,"defaultProps",Dl(Mo({},F.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},68555:function(ht,le,e){"use strict";Object.defineProperty(le,"__esModule",{value:!0}),le.default=void 0;var t=W(e(59301)),l=F(e(12708)),P=F(e(4676)),L=e(77026),T=e(22013),p=e(80217),n=F(e(97510));function F(E){return E&&E.__esModule?E:{default:E}}function W(E,ne){if(typeof WeakMap=="function")var k=new WeakMap,de=new WeakMap;return(W=function(ie,H){if(!H&&ie&&ie.__esModule)return ie;var A,ae,C={__proto__:null,default:ie};if(ie===null||typeof ie!="object"&&typeof ie!="function")return C;if(A=H?de:k){if(A.has(ie))return A.get(ie);A.set(ie,C)}for(const S in ie)S!=="default"&&{}.hasOwnProperty.call(ie,S)&&((ae=(A=Object.defineProperty)&&Object.getOwnPropertyDescriptor(ie,S))&&(ae.get||ae.set)?A(C,S,ae):C[S]=ie[S]);return C})(E,ne)}function w(E,ne,k){return(ne=D(ne))in E?Object.defineProperty(E,ne,{value:k,enumerable:!0,configurable:!0,writable:!0}):E[ne]=k,E}function D(E){var ne=g(E,"string");return typeof ne=="symbol"?ne:ne+""}function g(E,ne){if(typeof E!="object"||!E)return E;var k=E[Symbol.toPrimitive];if(k!==void 0){var de=k.call(E,ne||"default");if(typeof de!="object")return de;throw new TypeError("@@toPrimitive must return a primitive value.")}return(ne==="string"?String:Number)(E)}const M={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let B=M.mouse;class I extends t.Component{constructor(){super(...arguments),w(this,"dragging",!1),w(this,"lastX",NaN),w(this,"lastY",NaN),w(this,"touchIdentifier",null),w(this,"mounted",!1),w(this,"handleDragStart",ne=>{if(this.props.onMouseDown(ne),!this.props.allowAnyClick&&typeof ne.button=="number"&&ne.button!==0)return!1;const k=this.findDOMNode();if(!k||!k.ownerDocument||!k.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:de}=k;if(this.props.disabled||!(ne.target instanceof de.defaultView.Node)||this.props.handle&&!(0,L.matchesSelectorAndParentsTo)(ne.target,this.props.handle,k)||this.props.cancel&&(0,L.matchesSelectorAndParentsTo)(ne.target,this.props.cancel,k))return;ne.type==="touchstart"&&!this.props.allowMobileScroll&&ne.preventDefault();const ie=(0,L.getTouchIdentifier)(ne);this.touchIdentifier=ie;const H=(0,T.getControlPosition)(ne,ie,this);if(H==null)return;const{x:A,y:ae}=H,C=(0,T.createCoreData)(this,A,ae);(0,n.default)("DraggableCore: handleDragStart: %j",C),(0,n.default)("calling",this.props.onStart),!(this.props.onStart(ne,C)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,L.addUserSelectStyles)(de),this.dragging=!0,this.lastX=A,this.lastY=ae,(0,L.addEvent)(de,B.move,this.handleDrag),(0,L.addEvent)(de,B.stop,this.handleDragStop))}),w(this,"handleDrag",ne=>{const k=(0,T.getControlPosition)(ne,this.touchIdentifier,this);if(k==null)return;let{x:de,y:ie}=k;if(Array.isArray(this.props.grid)){let ae=de-this.lastX,C=ie-this.lastY;if([ae,C]=(0,T.snapToGrid)(this.props.grid,ae,C),!ae&&!C)return;de=this.lastX+ae,ie=this.lastY+C}const H=(0,T.createCoreData)(this,de,ie);if((0,n.default)("DraggableCore: handleDrag: %j",H),this.props.onDrag(ne,H)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(ae){const C=document.createEvent("MouseEvents");C.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(C)}return}this.lastX=de,this.lastY=ie}),w(this,"handleDragStop",ne=>{if(!this.dragging)return;const k=(0,T.getControlPosition)(ne,this.touchIdentifier,this);if(k==null)return;let{x:de,y:ie}=k;if(Array.isArray(this.props.grid)){let C=de-this.lastX||0,S=ie-this.lastY||0;[C,S]=(0,T.snapToGrid)(this.props.grid,C,S),de=this.lastX+C,ie=this.lastY+S}const H=(0,T.createCoreData)(this,de,ie);if(this.props.onStop(ne,H)===!1||this.mounted===!1)return!1;const ae=this.findDOMNode();ae&&this.props.enableUserSelectHack&&(0,L.scheduleRemoveUserSelectStyles)(ae.ownerDocument),(0,n.default)("DraggableCore: handleDragStop: %j",H),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,ae&&((0,n.default)("DraggableCore: Removing handlers"),(0,L.removeEvent)(ae.ownerDocument,B.move,this.handleDrag),(0,L.removeEvent)(ae.ownerDocument,B.stop,this.handleDragStop))}),w(this,"onMouseDown",ne=>(B=M.mouse,this.handleDragStart(ne))),w(this,"onMouseUp",ne=>(B=M.mouse,this.handleDragStop(ne))),w(this,"onTouchStart",ne=>(B=M.touch,this.handleDragStart(ne))),w(this,"onTouchEnd",ne=>(B=M.touch,this.handleDragStop(ne)))}componentDidMount(){this.mounted=!0;const ne=this.findDOMNode();ne&&(0,L.addEvent)(ne,M.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const ne=this.findDOMNode();if(ne){const{ownerDocument:k}=ne;(0,L.removeEvent)(k,M.mouse.move,this.handleDrag),(0,L.removeEvent)(k,M.touch.move,this.handleDrag),(0,L.removeEvent)(k,M.mouse.stop,this.handleDragStop),(0,L.removeEvent)(k,M.touch.stop,this.handleDragStop),(0,L.removeEvent)(ne,M.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,L.scheduleRemoveUserSelectStyles)(k)}}findDOMNode(){var ne,k,de;return(ne=this.props)!=null&&ne.nodeRef?(de=(k=this.props)==null?void 0:k.nodeRef)==null?void 0:de.current:P.default.findDOMNode(this)}render(){return t.cloneElement(t.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}le.default=I,w(I,"displayName","DraggableCore"),w(I,"propTypes",{allowAnyClick:l.default.bool,allowMobileScroll:l.default.bool,children:l.default.node.isRequired,disabled:l.default.bool,enableUserSelectHack:l.default.bool,offsetParent:function(E,ne){if(E[ne]&&E[ne].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:l.default.arrayOf(l.default.number),handle:l.default.string,cancel:l.default.string,nodeRef:l.default.object,onStart:l.default.func,onDrag:l.default.func,onStop:l.default.func,onMouseDown:l.default.func,scale:l.default.number,className:p.dontSetMe,style:p.dontSetMe,transform:p.dontSetMe}),w(I,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},96249:function(ht,le,e){"use strict";const{default:t,DraggableCore:l}=e(51353);ht.exports=t,ht.exports.default=t,ht.exports.DraggableCore=l},77026:function(ht,le,e){"use strict";Object.defineProperty(le,"__esModule",{value:!0}),le.addClassName=A,le.addEvent=n,le.addUserSelectStyles=de,le.createCSSTransform=B,le.createSVGTransform=I,le.getTouch=ne,le.getTouchIdentifier=k,le.getTranslation=E,le.innerHeight=D,le.innerWidth=g,le.matchesSelector=T,le.matchesSelectorAndParentsTo=p,le.offsetXYFromParent=M,le.outerHeight=W,le.outerWidth=w,le.removeClassName=ae,le.removeEvent=F,le.scheduleRemoveUserSelectStyles=ie;var t=e(80217),l=P(e(76172));function P(C,S){if(typeof WeakMap=="function")var J=new WeakMap,te=new WeakMap;return(P=function(z,v){if(!v&&z&&z.__esModule)return z;var b,ce,q={__proto__:null,default:z};if(z===null||typeof z!="object"&&typeof z!="function")return q;if(b=v?te:J){if(b.has(z))return b.get(z);b.set(z,q)}for(const x in z)x!=="default"&&{}.hasOwnProperty.call(z,x)&&((ce=(b=Object.defineProperty)&&Object.getOwnPropertyDescriptor(z,x))&&(ce.get||ce.set)?b(q,x,ce):q[x]=z[x]);return q})(C,S)}let L="";function T(C,S){return L||(L=(0,t.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(J){return(0,t.isFunction)(C[J])})),(0,t.isFunction)(C[L])?C[L](S):!1}function p(C,S,J){let te=C;do{if(T(te,S))return!0;if(te===J)return!1;te=te.parentNode}while(te);return!1}function n(C,S,J,te){if(!C)return;const z=Mo({capture:!0},te);C.addEventListener?C.addEventListener(S,J,z):C.attachEvent?C.attachEvent("on"+S,J):C["on"+S]=J}function F(C,S,J,te){if(!C)return;const z=Mo({capture:!0},te);C.removeEventListener?C.removeEventListener(S,J,z):C.detachEvent?C.detachEvent("on"+S,J):C["on"+S]=null}function W(C){let S=C.clientHeight;const J=C.ownerDocument.defaultView.getComputedStyle(C);return S+=(0,t.int)(J.borderTopWidth),S+=(0,t.int)(J.borderBottomWidth),S}function w(C){let S=C.clientWidth;const J=C.ownerDocument.defaultView.getComputedStyle(C);return S+=(0,t.int)(J.borderLeftWidth),S+=(0,t.int)(J.borderRightWidth),S}function D(C){let S=C.clientHeight;const J=C.ownerDocument.defaultView.getComputedStyle(C);return S-=(0,t.int)(J.paddingTop),S-=(0,t.int)(J.paddingBottom),S}function g(C){let S=C.clientWidth;const J=C.ownerDocument.defaultView.getComputedStyle(C);return S-=(0,t.int)(J.paddingLeft),S-=(0,t.int)(J.paddingRight),S}function M(C,S,J){const z=S===S.ownerDocument.body?{left:0,top:0}:S.getBoundingClientRect(),v=(C.clientX+S.scrollLeft-z.left)/J,b=(C.clientY+S.scrollTop-z.top)/J;return{x:v,y:b}}function B(C,S){const J=E(C,S,"px");return{[(0,l.browserPrefixToKey)("transform",l.default)]:J}}function I(C,S){return E(C,S,"")}function E(C,S,J){let{x:te,y:z}=C,v=`translate(${te}${J},${z}${J})`;if(S){const b=`${typeof S.x=="string"?S.x:S.x+J}`,ce=`${typeof S.y=="string"?S.y:S.y+J}`;v=`translate(${b}, ${ce})`+v}return v}function ne(C,S){return C.targetTouches&&(0,t.findInArray)(C.targetTouches,J=>S===J.identifier)||C.changedTouches&&(0,t.findInArray)(C.changedTouches,J=>S===J.identifier)}function k(C){if(C.targetTouches&&C.targetTouches[0])return C.targetTouches[0].identifier;if(C.changedTouches&&C.changedTouches[0])return C.changedTouches[0].identifier}function de(C){if(!C)return;let S=C.getElementById("react-draggable-style-el");S||(S=C.createElement("style"),S.type="text/css",S.id="react-draggable-style-el",S.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} -`,S.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} -`,C.getElementsByTagName("head")[0].appendChild(S)),C.body&&A(C.body,"react-draggable-transparent-selection")}function ie(C){window.requestAnimationFrame?window.requestAnimationFrame(()=>{H(C)}):H(C)}function H(C){if(C)try{if(C.body&&ae(C.body,"react-draggable-transparent-selection"),C.selection)C.selection.empty();else{const S=(C.defaultView||window).getSelection();S&&S.type!=="Caret"&&S.removeAllRanges()}}catch(S){}}function A(C,S){C.classList?C.classList.add(S):C.className.match(new RegExp(`(?:^|\\s)${S}(?!\\S)`))||(C.className+=` ${S}`)}function ae(C,S){C.classList?C.classList.remove(S):C.className=C.className.replace(new RegExp(`(?:^|\\s)${S}(?!\\S)`,"g"),"")}},76172:function(ht,le){"use strict";Object.defineProperty(le,"__esModule",{value:!0}),le.browserPrefixToKey=l,le.browserPrefixToStyle=P,le.default=void 0,le.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var F,W;let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const n=(W=(F=window.document)==null?void 0:F.documentElement)==null?void 0:W.style;if(!n||p in n)return"";for(let w=0;w: Unmounted during event!");return M}},80217:function(ht,le){"use strict";Object.defineProperty(le,"__esModule",{value:!0}),le.dontSetMe=L,le.findInArray=e,le.int=P,le.isFunction=t,le.isNum=l;function e(T,p){for(let n=0,F=T.length;nz in nt?fi(nt,z,{enumerable:!0,configurable:!0,writable:!0,value:e}):nt[z]=e,Ao=(nt,z)=>{for(var e in z||(z={}))ql.call(z,e)&&Ql(nt,e,z[e]);if(al)for(var e of al(z))ei.call(z,e)&&Ql(nt,e,z[e]);return nt},Nl=(nt,z)=>mi(nt,vi(z));var ti=(nt,z)=>{var e={};for(var t in nt)ql.call(nt,t)&&z.indexOf(t)<0&&(e[t]=nt[t]);if(nt!=null&&al)for(var t of al(nt))z.indexOf(t)<0&&ei.call(nt,t)&&(e[t]=nt[t]);return e};(self.webpackChunk=self.webpackChunk||[]).push([[4105],{89489:function(nt,z,e){"use strict";e.d(z,{Z:function(){return E}});var t=e(54476),l=e(59301),b={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},P=b,$=e(7657),d=function(w,C){return l.createElement($.Z,(0,t.Z)({},w,{ref:C,icon:P}))},n=l.forwardRef(d),E=n},59477:function(nt,z,e){"use strict";e.d(z,{Z:function(){return E}});var t=e(54476),l=e(59301),b={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},P=b,$=e(7657),d=function(w,C){return l.createElement($.Z,(0,t.Z)({},w,{ref:C,icon:P}))},n=l.forwardRef(d),E=n},26227:function(nt,z,e){"use strict";e.d(z,{Z:function(){return E}});var t=e(54476),l=e(59301),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},P=b,$=e(7657),d=function(w,C){return l.createElement($.Z,(0,t.Z)({},w,{ref:C,icon:P}))},n=l.forwardRef(d),E=n},49198:function(nt,z,e){"use strict";e.d(z,{Z:function(){return E}});var t=e(54476),l=e(59301),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},P=b,$=e(7657),d=function(w,C){return l.createElement($.Z,(0,t.Z)({},w,{ref:C,icon:P}))},n=l.forwardRef(d),E=n},41464:function(nt,z,e){"use strict";e.d(z,{Z:function(){return E}});var t=e(54476),l=e(59301),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},P=b,$=e(7657),d=function(w,C){return l.createElement($.Z,(0,t.Z)({},w,{ref:C,icon:P}))},n=l.forwardRef(d),E=n},52671:function(nt,z,e){"use strict";e.d(z,{Z:function(){return E}});var t=e(54476),l=e(59301),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},P=b,$=e(7657),d=function(w,C){return l.createElement($.Z,(0,t.Z)({},w,{ref:C,icon:P}))},n=l.forwardRef(d),E=n},8657:function(nt,z,e){"use strict";e.d(z,{Z:function(){return E}});var t=e(54476),l=e(59301),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},P=b,$=e(7657),d=function(w,C){return l.createElement($.Z,(0,t.Z)({},w,{ref:C,icon:P}))},n=l.forwardRef(d),E=n},56082:function(nt,z,e){"use strict";e.d(z,{Z:function(){return E}});var t=e(54476),l=e(59301),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},P=b,$=e(7657),d=function(w,C){return l.createElement($.Z,(0,t.Z)({},w,{ref:C,icon:P}))},n=l.forwardRef(d),E=n},33853:function(nt,z,e){"use strict";e.d(z,{Z:function(){return E}});var t=e(54476),l=e(59301),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},P=b,$=e(7657),d=function(w,C){return l.createElement($.Z,(0,t.Z)({},w,{ref:C,icon:P}))},n=l.forwardRef(d),E=n},11724:function(nt,z,e){"use strict";e.d(z,{Z:function(){return E}});var t=e(54476),l=e(59301),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"},P=b,$=e(7657),d=function(w,C){return l.createElement($.Z,(0,t.Z)({},w,{ref:C,icon:P}))},n=l.forwardRef(d),E=n},15075:function(nt,z,e){"use strict";e.d(z,{Z:function(){return E}});var t=e(54476),l=e(59301),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},P=b,$=e(7657),d=function(w,C){return l.createElement($.Z,(0,t.Z)({},w,{ref:C,icon:P}))},n=l.forwardRef(d),E=n},43531:function(nt,z,e){"use strict";e.d(z,{Z:function(){return E}});var t=e(54476),l=e(59301),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},P=b,$=e(7657),d=function(w,C){return l.createElement($.Z,(0,t.Z)({},w,{ref:C,icon:P}))},n=l.forwardRef(d),E=n},38819:function(nt,z,e){"use strict";e.d(z,{Z:function(){return E}});var t=e(54476),l=e(59301),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},P=b,$=e(7657),d=function(w,C){return l.createElement($.Z,(0,t.Z)({},w,{ref:C,icon:P}))},n=l.forwardRef(d),E=n},47451:function(nt,z,e){"use strict";e.d(z,{Z:function(){return T}});var t=e(3113),l=e(59301),b=Object.defineProperty,P=Object.defineProperties,$=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,D=(I,g,U)=>g in I?b(I,g,{enumerable:!0,configurable:!0,writable:!0,value:U}):I[g]=U,w=(I,g)=>{for(var U in g||(g={}))n.call(g,U)&&D(I,U,g[U]);if(d)for(var U of d(g))E.call(g,U)&&D(I,U,g[U]);return I},C=(I,g)=>P(I,$(g)),v=(I,g)=>{var U={};for(var F in I)n.call(I,F)&&g.indexOf(F)<0&&(U[F]=I[F]);if(I!=null&&d)for(var F of d(I))g.indexOf(F)<0&&E.call(I,F)&&(U[F]=I[F]);return U},B=(I,g,U)=>new Promise((F,G)=>{var q=oe=>{try{Z(U.next(oe))}catch(O){G(O)}},K=oe=>{try{Z(U.throw(oe))}catch(O){G(O)}},Z=oe=>oe.done?F(oe.value):Promise.resolve(oe.value).then(q,K);Z((U=U.apply(I,g)).next())});const T=I=>{var g=I,{children:U}=g,F=v(g,["children"]);const[G,q]=(0,l.useState)(!1);return l.createElement(t.ZP,C(w({},F),{loading:G,onClick:K=>B(void 0,null,function*(){try{q(!0),yield F.onClick(K),q(!1)}catch(Z){console.error(Z),q(!1)}})}),U)}},72638:function(nt,z,e){"use strict";e.d(z,{Z:function(){return C}});var t=e(59301),l=e(90115),b=e(8591),P=e(64866),$={flex_box_center:"flex_box_center___kVqBh",flex_space_between:"flex_space_between___FMnNq",flex_box_vertical_center:"flex_box_vertical_center___meESe",flex_box_center_end:"flex_box_center_end___KFpOb",flex_box_column:"flex_box_column___GHIK9",video:"video___nn_cD"},d=e(40185),n=e(59301),E=(v,B,T)=>new Promise((I,g)=>{var U=q=>{try{G(T.next(q))}catch(K){g(K)}},F=q=>{try{G(T.throw(q))}catch(K){g(K)}},G=q=>q.done?I(q.value):Promise.resolve(q.value).then(U,F);G((T=T.apply(v,B)).next())});const D=function(B,T){const I=B.split(","),g=I[0].match(/:(.*?);/)[1],U=atob(I[1]);let F=U.length;const G=new Uint8Array(F);for(;F--;)G[F]=U.charCodeAt(F);return new Blob([G],{type:g})};var C=(0,t.forwardRef)(({time:v,number:B,supportCamera:T,take_photo:I,isExercise:g=!0,update:U,onUserMediaLoaded:F},G)=>{const q=(0,t.useRef)(),K=(0,t.useRef)(),Z=(0,l.useParams)();let[oe,O]=(0,t.useState)([]),[_,ee]=(0,t.useState)(0);const[le,X]=(0,t.useState)("");let[h,N]=(0,t.useState)();const[de,ae]=(0,t.useState)(0),x=(Be,qe)=>E(void 0,null,function*(){return(0,P.ZP)("/api/attachments.json",{method:"POST",body:{file_type:"base64",original_filename:Be,file:qe}})}),L=Be=>E(void 0,null,function*(){const qe=new Date().valueOf();if(Be){const dt=yield x(`\u7167\u7247${qe}`,Be);dt.status||(yield(0,d.Ju)({container_id:Z.categoryId,container_type:"Exercise",attachment_id:dt==null?void 0:dt.id}))}});(0,t.useEffect)(()=>(Re(),()=>{tt(),Y()}),[]),(0,t.useEffect)(()=>{_===2&&v&&B>0&&(ge(),ae(1))},[v]),(0,t.useEffect)(()=>{if(de!==0){if(de===2)clearInterval(h);else{let Be=0,qe=setInterval(()=>{oe.includes(Be)&&$e(),Be++},1e3);N(qe)}return()=>clearInterval(h)}},[de]),(0,t.useImperativeHandle)(G,()=>({handlePhoto:$e,handleTakePhoto:je}));const Y=()=>{ae(2)},ge=()=>{const Be=v/B,qe=[];function dt(Ie,st){return parseInt(Math.floor(Math.random()*(st-Ie+1))+Ie)}new Array(B).fill(0).map((Ie,st)=>{I?qe.push(dt(Be*st,Be*(st+1))):st==0?qe.push(0):qe.push(dt(Be*st,Be*(st+1)))}),oe=qe,O([...qe]),console.log(qe)},Re=()=>{navigator.mediaDevices===void 0&&(navigator.mediaDevices={}),navigator.mediaDevices.getUserMedia===void 0&&(navigator.mediaDevices.getUserMedia=function(Be){const qe=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia;return qe?new Promise(function(dt,Ie){qe.call(navigator,Be,dt,Ie)}):Promise.reject(new Error("getUserMedia is not implemented in this browser"))}),navigator.mediaDevices.getUserMedia({video:{width:640,height:480}}).then(function(Be){Ye.current=Be,T&&T(2),ee(2),"srcObject"in q.current?q.current.srcObject=Be:q.current.src=window.URL.createObjectURL(Be),q.current.onloadedmetadata=function(qe){q.current.play(),F&&F()},q.current.addEventListener("ended",function(){console.log("\u64AD\u653E\u7ED3\u675F"),Y(),g&&b.ZP.error({content:"\u60A8\u5DF2\u7ECF\u5173\u95ED\u4E86\u6444\u50CF\u5934\uFF0C\u8BF7\u572810\u79D2\u949F\u5185\u6062\u590D\u6444\u50CF\u5934\uFF0C\u5426\u5219\u5C06\u63A8\u51FA\u8003\u8BD5",duration:10,key:9998})},!1)}).catch(function(Be){ee(1),T&&T(1),Be.message==="Permission denied"||Be.name==="NotAllowedError"?b.ZP.error("\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"):b.ZP.error("\u6444\u50CF\u5934\u83B7\u53D6\u5931\u8D25\uFF0C\u6216\u60A8\u5DF2\u62D2\u7EDD\u4E86\u83B7\u53D6\u6444\u50CF\u5934"),console.log("errname: "+Be.name),console.log("err: "+Be.message)})},$e=()=>{try{K.current.width=q.current.videoWidth,K.current.height=q.current.videoHeight,K.current.getContext("2d").drawImage(q.current,0,0,K.current.width,K.current.height),X(K.current.toDataURL("image/png")),L(K.current.toDataURL("image/png")),ze(K.current.toDataURL("image/png"))}catch(Be){}},je=()=>{try{return K.current.width=q.current.videoWidth,K.current.height=q.current.videoHeight,K.current.getContext("2d").drawImage(q.current,0,0,K.current.width,K.current.height),K.current.toDataURL("image/png")}catch(Be){}},Ye=(0,t.useRef)(),tt=()=>{try{Ye.current.getTracks().forEach(function(dt){dt.stop()}),q.current.srcObject=null}catch(Be){}},ze=Be=>E(void 0,null,function*(){const qe=new FormData;qe.append("file",D(Be,"1")),qe.append("1","123");var dt=new window.XMLHttpRequest;dt.withCredentials=!0,dt.addEventListener("load",function(Ie){let st=JSON.parse(Ie.target.responseText);(0,P.ZP)(`/api/exercises/${id}/upload_photo.json`,{method:"post",body:{attachment_id:st.id}})},!1),dt.addEventListener("error",function(Ie){console.error(Ie)},!1),dt.open("POST",`${ENV.API_SERVER}/api/attachments.json`),dt.send(qe)});return n.createElement(n.Fragment,null,_!==3&&n.createElement("aside",{className:$.video,id:"screenshot"},_===0&&n.createElement("span",null,"\u6B63\u5728\u5F00\u542F\u6444\u50CF\u5934..."),_===1&&n.createElement("span",null,"\u6444\u50CF\u5934\u5F00\u542F\u5931\u8D25"),_===2&&n.createElement("div",null,n.createElement("video",{width:"288",ref:q,autoPlay:!0}),n.createElement("canvas",{style:{display:"none"},ref:K}))))})},98070:function(nt,z,e){"use strict";var t=e(90115),l=e(59301),b=e(8591),P=e(43418),$=e(3113),d=e(24334),n=e.n(d),E=e(64866),D=e(25537),w=e(72873),C=e(66649),v=e.n(C),B=e(10089),T=e(59301),I=Object.defineProperty,g=Object.defineProperties,U=Object.getOwnPropertyDescriptors,F=Object.getOwnPropertySymbols,G=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,K=(ee,le,X)=>le in ee?I(ee,le,{enumerable:!0,configurable:!0,writable:!0,value:X}):ee[le]=X,Z=(ee,le)=>{for(var X in le||(le={}))G.call(le,X)&&K(ee,X,le[X]);if(F)for(var X of F(le))q.call(le,X)&&K(ee,X,le[X]);return ee},oe=(ee,le)=>g(ee,U(le)),O=(ee,le,X)=>new Promise((h,N)=>{var de=L=>{try{x(X.next(L))}catch(Y){N(Y)}},ae=L=>{try{x(X.throw(L))}catch(Y){N(Y)}},x=L=>L.done?h(L.value):Promise.resolve(L.value).then(de,ae);x((X=X.apply(ee,le)).next())});const _=({ButtonProps:ee,ButtonText:le,form:X,answerKey:h,hackidentifier:N="",items:de={},setIsSubmitCode:ae})=>{const[x,L]=(0,l.useState)(!1);let[Y,ge]=(0,l.useState)("");const Re=(0,t.useParams)(),[$e,je]=(0,l.useState)({}),Ye=Re.type==="edit",tt=window.location.href.includes("problemset")?1:2;(0,l.useEffect)(()=>{(Ye||N)&&ge(N||Re.id)},[Re]),(0,l.useEffect)(()=>{const Ie=B.Z.subscribe("BFill:Submit",()=>{dt()});return()=>{Ie()}},[Y]),(0,l.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);function ze(Ie,st){return O(this,null,function*(){var yt;let Se=X.getFieldValue("hack_codes"),ve=X.getFieldValue(h);if(!Se.code){b.ZP.info("\u7A0B\u5E8F\u4EE3\u7801\u4E0D\u80FD\u4E3A\u7A7A\uFF01");return}if(!Se.language){b.ZP.info("\u7F16\u7A0B\u8BED\u8A00\u4E0D\u80FD\u4E3A\u7A7A\uFF01");return}if(ve.length>0&&((yt=ve.filter(j=>!j.answer_text))==null?void 0:yt.length)>0){b.ZP.info("\u586B\u7A7A\u9879\u4E0D\u80FD\u4E3A\u7A7A\uFF01");return}let rt=Se.code;return ve.length>0&&(ve==null||ve.map(j=>{j.multi_line?rt=rt.substring(0,rt.indexOf("@\u2581\u2581@"))+j.answer_text+rt.substring(rt.indexOf("@\u2581\u2581@")+4):rt=rt.substring(0,rt.indexOf("@\u2581@"))+j.answer_text+rt.substring(rt.indexOf("@\u2581@")+3)})),yield(0,D.n4)(st,Ie||{code:d.Base64.encode(rt),language:Se.language,answers:ve==null?void 0:ve.map(j=>j.answer_text)})})}function Be(Ie,st){return O(this,null,function*(){let yt=de.userAnswer,Se=d.Base64.decode(de.code);return yt.length>0&&(yt==null||yt.map(rt=>{rt.multi_line?Se=Se.substring(0,Se.indexOf("@\u2581\u2581@"))+rt.value+Se.substring(Se.indexOf("@\u2581\u2581@")+4):Se=Se.substring(0,Se.indexOf("@\u2581@"))+rt.value+Se.substring(Se.indexOf("@\u2581@")+3)})),yield(0,D.n4)(st,Ie||{code:d.Base64.encode(Se),language:de.language,answers:yt==null?void 0:yt.map(rt=>rt.value)})})}function qe(){return new Date().getTime()}const dt=()=>O(void 0,null,function*(){if(L(!0),x)return;let Ie=yield(0,E.ZP)(`/api/problems/${Y}/start.json`,{method:"get"});const st=yield Be(null,Ie==null?void 0:Ie.identifier);if((st==null?void 0:st.status)===0){let Se=function(){return O(this,null,function*(){var ve;const{status:rt,message:et,data:j}=yield(0,D.rX)(Ie==null?void 0:Ie.identifier,"submit"),p=qe()-yt>10*1e3*((ve=de==null?void 0:de.userAnswer)==null?void 0:ve.length);if(rt!==0&&!p&&setTimeout(Se,1e3),p){P.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6",content:"\u8BF7\u68C0\u67E5\u7A0B\u5E8F\u4EE3\u7801\u662F\u5426\u5B58\u5728\u6B7B\u5FAA\u73AF"}),L(!1);return}rt===0&&(L(!1),je(j),j.status===2&&(L(!1),P.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"})))})};const yt=qe();yield(0,D.bM)(Ie==null?void 0:Ie.identifier,{}),Se(),B.Z.publish("BFill:Submit:Change",{value:!1})}else L(!1);ae&&ae(!0)});return T.createElement("div",null,T.createElement($.ZP,oe(Z({loading:x},ee),{onClick:()=>O(void 0,null,function*(){var Ie,st,yt,Se;if(le==="\u63D0\u4EA4\u4EE3\u7801"){dt();return}let ve=!0;if(yield X.validateFields().then(()=>{ve=!1},p=>{var a,k,me;p.errorFields[0].name.includes("standard_answers")?b.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):b.ZP.error(p.errorFields[0].errors[0]),((a=p.errorFields)==null?void 0:a.length)===0&&(ve=!1),X.scrollToField((me=(k=p==null?void 0:p.errorFields)==null?void 0:k[0])==null?void 0:me.name,{behavior:"smooth",block:"center"}),ve=!0}),ve||(L(!0),x))return;let rt="",et=X.getFieldsValue();Y?rt=yield(0,E.ZP)(`/api/problems/${Y}.json`,{method:"put",body:oe(Z({},et),{hack:oe(Z({},et==null?void 0:et.hack),{sub_discipline_id:(Se=(yt=et==null?void 0:et.hack)==null?void 0:yt.sub_discipline_id)==null?void 0:Se[1],difficult:et.difficulty,item_banks_group_id:et.item_banks_group_id}),hack_codes:oe(Z({},et.hack_codes),{code:d.Base64.encode(et.hack_codes.code)}),update_hack_sets:[Z({},et.hack_sets)],is_blank:!0})}):(rt=yield(0,E.ZP)("/api/problems.json",{method:"post",body:oe(Z({},et),{hack:oe(Z({},et==null?void 0:et.hack),{sub_discipline_id:(st=(Ie=et==null?void 0:et.hack)==null?void 0:Ie.sub_discipline_id)==null?void 0:st[1],difficult:et.difficulty,item_banks_group_id:et.item_banks_group_id}),hack_codes:oe(Z({},et.hack_codes),{code:d.Base64.encode(et.hack_codes.code)}),hack_sets:[Z({},et.hack_sets)],is_blank:!0})}),Y=rt==null?void 0:rt.identifier,sessionStorage.projectFill=Y,ge(Y));let j=yield(0,E.ZP)(`/api/problems/${Y}/start.json`,{method:"get"});const V=yield ze(null,j==null?void 0:j.identifier);if((V==null?void 0:V.status)===0){let a=function(){return O(this,null,function*(){var k;const{status:me,message:u,data:i}=yield(0,D.rX)(j==null?void 0:j.identifier,"submit"),R=qe()-p>(et.hack.time_limit+3)*1e3*((k=et==null?void 0:et.standard_answers)==null?void 0:k.length);if(me!==0&&!R&&setTimeout(a,1e3),R){P.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"}),L(!1);return}me===0&&(L(!1),je(i),i.status===2&&(L(!1),P.default.error({centered:!0,okText:"\u77E5\u9053\u5566",title:"\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"})))})};const p=qe();yield(0,D.bM)(j==null?void 0:j.identifier,{}),a()}else L(!1)})}),le),($e==null?void 0:$e.id)&&$e.status!==2&&T.createElement(P.default,{open:($e==null?void 0:$e.id)&&$e.status!==2,title:"\u8FD0\u884C\u7ED3\u679C",width:1100,footer:!1,onOk:()=>{je({})},onCancel:()=>{je({})}},T.createElement("div",{style:{maxHeight:600,overflow:"auto",marginBottom:15}},T.createElement("div",{style:{marginBottom:20,display:"flex",justifyContent:"space-between",fontSize:14}},T.createElement("div",null,T.createElement("span",{style:{color:"#666666"}},"\u72B6\u6001"),T.createElement("span",{style:{marginLeft:12,color:$e.status!==0&&"#E30000"}},w.Im[$e.status])),T.createElement("div",null,T.createElement("span",{style:{color:"#666666"}},"\u63D0\u4EA4\u65F6\u95F4"),T.createElement("span",{style:{marginLeft:12}},v()($e.created_at).format("YYYY-MM-DD HH:mm:ss"))),T.createElement("div",null,T.createElement("span",{style:{color:"#666666"}},"\u8BED\u8A00"),T.createElement("span",{style:{marginLeft:12}},$e.language)),T.createElement("div",null,T.createElement("span",{style:{color:"#666666"}},"\u6267\u884C\u7528\u65F6"),T.createElement("span",{style:{marginLeft:12}},$e.execute_time,"ms"))),T.createElement(w.Y4,Z({},$e)))))};z.Z=_},14892:function(nt,z,e){"use strict";e.r(z),e.d(z,{default:function(){return Gr}});var t=e(59301),l=e(90115),b=e(15845),P=e.n(b),$=e(31797),d=e(78241),n=e(43418),E=e(92832),D=e(8591),w=e(93948),C=e(95237),v=e(43604),B=e(5112),T=e(24905),I=e(6848),g=e(71418),U=e(3113),F=e(15075),G=e(43531),q=e(72638),K=e(41560),Z=e(22566),oe=e(64866),O=e(59301),_=(W,be,Me)=>new Promise((Yt,qt)=>{var Zt=Et=>{try{Vt(Me.next(Et))}catch(Rt){qt(Rt)}},_t=Et=>{try{Vt(Me.throw(Et))}catch(Rt){qt(Rt)}},Vt=Et=>Et.done?Yt(Et.value):Promise.resolve(Et.value).then(Zt,_t);Vt((Me=Me.apply(W,be)).next())}),le=({id:W,startRecording:be,startScreenshot:Me,onBack:Yt,onSuccuss:qt,timeInSeconds:Zt=[1,6,11,16,21,26,31,41,51,61,71,81,91,101,111,121,151,181,211,241,271,361,421,481,541,601,661]})=>{const _t=(0,t.useRef)(null),Vt=(0,t.useRef)(null),Et=(0,t.useRef)(null),Rt=(0,t.useRef)(null),Cn=(0,t.useRef)(!0),On=(0,t.useRef)(""),[kn,Mn]=(0,t.useState)(null);(0,t.useEffect)(()=>{be?An():sn()},[be]),(0,t.useEffect)(()=>{Me?Mn(0):(clearTimeout(Rt.current),Mn(null),On.current="")},[Me]),(0,t.useEffect)(()=>(typeof kn=="number"&&(Zt!=null&&Zt.includes(kn)&&dn(),kn<=720&&(Rt.current=setTimeout(()=>{Mn(kn+1)},1e3))),()=>{clearTimeout(Rt.current)}),[kn]);const ir=(Dn="\u672A\u5171\u4EAB\u6574\u4E2A\u5C4F\u5E55\uFF0C\u7981\u6B62\u4F5C\u7B54\uFF01")=>_(void 0,null,function*(){D.ZP.warning(Dn),setTimeout(()=>{Yt()},1e3)}),An=()=>_(void 0,null,function*(){var Dn,vr,Tr,gn,Jt,yn;if(!(0,Z.i7)()){ir("\u8BF7\u4F7F\u7528\u8C37\u6B4C\u6D4F\u89C8\u5668\u7B54\u9898");return}if(_t.current){D.ZP.warning("\u6B63\u5728\u5F55\u5236\u4E2D");return}Cn.current=!0;try{let pt;if((0,Z.WX)())pt=yield navigator.mediaDevices.getUserMedia({audio:{mandatory:{chromeMediaSource:"desktop"}},video:{mandatory:{chromeMediaSource:"desktop"}}});else if(pt=yield navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"monitor"}}),((Tr=(vr=(Dn=pt==null?void 0:pt.getVideoTracks())==null?void 0:Dn[0])==null?void 0:vr.getSettings())==null?void 0:Tr.displaySurface)!=="monitor"){sn(),ir();return}_t.current=pt,"srcObject"in Vt.current?Vt.current.srcObject=_t.current:Vt.current.src=URL.createObjectURL(_t.current),yield new Promise(Un=>{Vt.current.addEventListener("loadedmetadata",()=>{Un()})}),(yn=(Jt=(gn=_t.current)==null?void 0:gn.getVideoTracks())==null?void 0:Jt[0])==null||yn.addEventListener("ended",function(){Cn.current&&ir()}),Vt.current.play(),qt()}catch(pt){ir("\u5C4F\u5E55\u5F55\u5236\u529F\u80FD\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u518D\u5171\u4EAB\u6574\u4E2A\u5C4F\u5E55\uFF0C\u5426\u5219\u65E0\u6CD5\u4F5C\u7B54")}}),sn=()=>{var Dn;Cn.current=!1;const vr=(Dn=_t.current)==null?void 0:Dn.getTracks();vr==null||vr.forEach(Tr=>{Tr.stop()}),_t.current=null},bn=Dn=>{const vr=Dn.split(",")[1],Tr=Dn.split(",")[0].split(":")[1].split(";")[0],gn=[...atob(vr)],Jt=new Uint8Array(gn.map(yn=>yn.charCodeAt(0)));return new Blob([Jt],{type:Tr})},Ot=()=>_(void 0,null,function*(){const Dn=yield(0,oe.ZP)(`/api/exercises/${W}/exercise_user_screens.json`,{method:"post"});Dn.status===0&&(On.current=Dn.exercise_abnormity_id,Mn(0))}),dn=()=>_(void 0,null,function*(){const Dn=Et.current.getContext("2d");Et.current.width=Vt.current.videoWidth,Et.current.height=Vt.current.videoHeight,Dn.drawImage(Vt.current,0,0,Et.current.width,Et.current.height);const vr=Et.current.toDataURL("image/jpeg"),Tr=bn(vr),gn=new File([Tr],"canvas_image.jpg",{type:"image/jpeg"}),Jt=new FormData;Jt.append("file",gn);const yn=yield(0,oe.ZP)(`/api/exercises/${W}/exercise_user_screens/check.json`,{method:"get"});if((yn==null?void 0:yn.status)===0){const pt=yield(0,oe.ZP)("/api/attachments.json",{method:"post",body:Jt},!0);if(pt!=null&&pt.id){const Un=yield(0,oe.ZP)(`/api/exercises/${W}/exercise_user_screens.json`,{method:"post",body:{attachment_id:pt==null?void 0:pt.id,exercise_abnormity_id:On.current}});Un.status===0&&(On.current=Un.exercise_abnormity_id)}}});return O.createElement(O.Fragment,null,O.createElement("video",{ref:Vt,muted:!0,className:"hide"}),O.createElement("canvas",{id:"canvas",ref:Et,className:"hide"}))},X=e(66649),h=e.n(X),N={flex_box_center:"flex_box_center___ariLt",flex_space_between:"flex_space_between___MC6sH",flex_box_vertical_center:"flex_box_vertical_center___tJHfy",flex_box_center_end:"flex_box_center_end___AfB_t",flex_box_column:"flex_box_column___xX4Fj",bg:"bg___nHBEZ",wrapper:"wrapper___TZKl8",exerciseAlert:"exerciseAlert___QUMwm",title:"title___rj6Q0",content:"content___Te7Wz",baseMargin:"baseMargin___BRmsh",noWrap:"noWrap___X6AS3",singleItem:"singleItem___GkaDR",questionIcons:"questionIcons___XoGYC",green:"green___iIYnV",orange:"orange___EIhiL",greenTip:"greenTip___WwiUh",redTip:"redTip___aWSt4",orangeTip:"orangeTip___j5g_H",pollDesc:"pollDesc___yDT2Q",answered:"answered___d2hE7",unanswer:"unanswer___AdOhE",anchor:"anchor___z3CaP",answerFlag:"answerFlag___wwTKa",flagActive:"flagActive___piG3D",flagHalf:"flagHalf___E29dd",answerStudentFlag:"answerStudentFlag___HRVt8",answerStudentActive:"answerStudentActive___kM6r4",questionItem:"questionItem___q6Hgu",questionScore:"questionScore___RW5tm",itemType:"itemType___pPqzT",itemFlag:"itemFlag___j5TSr",answerWrap:"answerWrap___G9dnn",answerSubjective:"answerSubjective___LRVKJ",otherInput:"otherInput___SxNAw",submitButton:"submitButton___zPo7H",randomFlag:"randomFlag___TOZ2H",answerTrue:"answerTrue___fgIW0",answerFalse:"answerFalse___gAQD8",answerHalf:"answerHalf___h40sX",renderHtml:"renderHtml___UerV1",simpleText:"simpleText___ZKx7o",answerYes:"answerYes___AA0oM",answerNo:"answerNo___gMGLy",answerInfo:"answerInfo___tB4Wz",answerProgress:"answerProgress___CbmXy",answerSheetWrap:"answerSheetWrap___aPipx",answerSheetQuestionTitle:"answerSheetQuestionTitle___P18Ss",answerSheet:"answerSheet___yhxK1",answerSheetItem:"answerSheetItem___DIH2V",qindex:"qindex___XuKA8",markIcon:"markIcon___ZTkqb",active:"active___WSsrt",yes:"yes___knuOK",no:"no___gv_cs",bf:"bf___pJfi5",partialActive:"partialActive___K6lsa",selected:"selected___grFyM",countDown:"countDown___OzcWL",cnText:"cnText___TvFjV",red:"red___Mge1h",refreshBtn:"refreshBtn___lK1MX",fold:"fold___id0EJ",cardList:"cardList___xKhMX",withQrcode:"withQrcode___qphZK",iframe:"iframe___pMMQx",eduTip:"eduTip___hXWhK",eduQrcode:"eduQrcode____qxcx",eduVideo:"eduVideo___mufWJ",eduUsername:"eduUsername___tiufh",startAnswer:"startAnswer___AA7n5",eduSubmit:"eduSubmit___UPIsJ",eduTitle:"eduTitle___jCJrO",wrpAnswer:"wrpAnswer___AVK1Y",simpleMd:"simpleMd___ZGbXj",videomodal:"videomodal___bYarH",mainPart:"mainPart___Fqvw7",userInfoText:"userInfoText___nqL8p",answerSheetBottom:"answerSheetBottom___yXf5u",tooltipWrap:"tooltipWrap___AxG9B",leftPart:"leftPart___P4Ook",grey:"grey___UBSG9",blue:"blue___aRuKK",rightPart:"rightPart___De4P3",questionPart:"questionPart___GTq66",questionTypeTitle:"questionTypeTitle___r6Fo9",questionTypeInfo:"questionTypeInfo___JfpWv",toIframeBtn:"toIframeBtn___gRKtn",bottom:"bottom___coSlv",markBtn:"markBtn___ZCLGF",changeButton:"changeButton___sBTjl",prevBtn:"prevBtn___lgCPG",analysisWrap:"analysisWrap___JoCnb",greyBg:"greyBg___vgesc",fixHeader:"fixHeader___RoNxE",exerciseTitle:"exerciseTitle___Dtp56",commitModal:"commitModal___zqvNA",commitItem:"commitItem___mjYF6",commitInfoLabel:"commitInfoLabel___KtIjW",commitInfoValue:"commitInfoValue___DCyRn",cameraHeader:"cameraHeader___Pqhwb",dottedLineWrapper:"dottedLineWrapper___ONO9c",leftHalfCircle:"leftHalfCircle___RNJN7",dottedLine:"dottedLine___qWy4W",rightHalfCircle:"rightHalfCircle___s3_hr",orangeNum:"orangeNum___IYnup",teachAnalysis:"teachAnalysis___FH6fk",teachAnalysisModal:"teachAnalysisModal___RcKVp",screenLock:"screenLock____A8oZ"},de=e(24327),ae=e(16624),x=e(16769),L=e(6455),Y=e(55159),ge=e(8658),Re=e(30720);const $e={0:"c-red-ee4",1:"c-green"};var Ye=({item:W,answerData:be,isEducation:Me,sign:Yt,onBlur:qt=()=>{}})=>{var Zt,_t,Vt,Et,Rt,Cn;const On=(0,t.useRef)(""),[kn,Mn]=(0,t.useState)(),[ir,An]=(0,t.useState)(!1),[sn,bn]=(0,t.useState)(Me||!1),Ot=(0,t.useRef)(),dn=()=>{clearInterval(Ot.current),Ot.current=setInterval(()=>{ir&&qt(On.current,!0)},10*1e3)},Dn=vr=>{qt(On.current);let Tr="\u786E\u5B9A\u79BB\u5F00\u6B64\u9875\u9762\u5417?\u6B64\u9875\u6570\u636E\u53EF\u80FD\u4F1A\u4E22\u5931";return(vr||window.event).returnValue=Tr,Tr};return(0,t.useEffect)(()=>{console.log("isFocus:",ir),ir&&dn()},[ir]),(0,t.useEffect)(()=>{Mn(W==null?void 0:W.a_flag)},[W==null?void 0:W.a_flag]),(0,t.useEffect)(()=>()=>{clearInterval(Ot.current)},[]),t.createElement("div",null,((Zt=be==null?void 0:be.exercise)==null?void 0:Zt.user_exercise_status)===1?t.createElement("div",{className:"mb20"},t.createElement(C.Z,{justify:"space-between"},t.createElement(v.Z,null,"\u6211\u7684\u7B54\u6848"),((0,ae.GJ)()||(0,ae.dE)()&&((_t=be==null?void 0:be.exercise)==null?void 0:_t.user_exercise_status)>0&&((Vt=be==null?void 0:be.exercise)==null?void 0:Vt.open_score))&&t.createElement(v.Z,null,t.createElement(C.Z,{justify:"end",className:"mb20",align:"middle"},t.createElement("span",{className:"font14",style:{color:"#6A7283"}},"\u5F97\u5206"),t.createElement("span",{className:"font14 ml10"},(W==null?void 0:W.user_score)&&t.createElement("span",null,t.createElement("span",{className:$e[Number(W==null?void 0:W.answer_status)]||"c-orange-ff9"},W==null?void 0:W.user_score),t.createElement("span",{style:{marginLeft:5,color:"#6A7283"}},"\u5206")),!(W!=null&&W.user_score)&&t.createElement("span",{className:"c-red"},"\u672A\u8BC4"))))),t.createElement("div",{className:N.simpleText},t.createElement(ge.Z,{value:(Et=W==null?void 0:W.user_answer)==null?void 0:Et[0]}))):t.createElement("div",{className:W.user_score&&(W.user_score===W.question_score?"c-green":"c-red")},sn?t.createElement(Re.Z,{watch:!0,isFocus:!0,defaultValue:(Rt=W==null?void 0:W.user_answer)==null?void 0:Rt[0],id:W==null?void 0:W.question_id,className:"mt20",onChange:vr=>{On.current=vr,An(!0)},onBlur:()=>{setTimeout(()=>{qt(On.current)},200),clearInterval(Ot.current),An(!1)}}):t.createElement("div",{onClick:()=>{var vr;if(!W.repeat_answer&&((vr=W==null?void 0:W.user_answer)==null?void 0:vr.length)>0&&W.ques_status!==0){D.ZP.warning("\u8BE5\u9898\u4E0D\u5141\u8BB8\u518D\u4FEE\u6539\u7B54\u6848");return}Yt.current=!0,bn(!0)},className:N.startAnswer},t.createElement("div",{className:"c-blue"},"\u70B9\u51FB\u5F00\u59CB\u4F5C\u7B54"))),(0,ae.dE)()&&(W==null?void 0:W.standard_answer)&&t.createElement("div",{className:N.analysisWrap},t.createElement("div",{className:N.greyBg},t.createElement(C.Z,{className:"mb20",align:"middle"},t.createElement(v.Z,{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u7B54\u6848\u3011"),t.createElement(v.Z,null,t.createElement(ge.Z,{value:(Cn=W==null?void 0:W.standard_answer)==null?void 0:Cn[0]}))),t.createElement(C.Z,{align:"middle"},t.createElement("span",{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u89E3\u6790\u3011"),t.createElement(ge.Z,{className:N.renderHtml,value:W==null?void 0:W.analysis})))))},tt=e(57809),Be=({item:W,answerData:be,isEducation:Me,onBlur:Yt=()=>{}})=>{var qt,Zt,_t,Vt;const Et=(0,t.useRef)(""),[Rt,Cn]=(0,t.useState)(),[On,kn]=(0,t.useState)(!1),[Mn,ir]=(0,t.useState)(!1),[An,sn]=(0,t.useState)(Me||!1),[bn,Ot]=(0,t.useState)(0),dn=(0,t.useRef)(W.kp_content||""),Dn=(0,t.useRef)(W.kp_clazz),vr=(0,t.useRef)(),Tr=(0,t.useMemo)(()=>{var Jt,yn;return(yn=(Jt=Et.current)==null?void 0:Jt.replace(/[\n|\r|\t]/g,""))==null?void 0:yn.length},[Et.current]),gn=()=>{clearInterval(vr.current),vr.current=setInterval(()=>{Mn&&Yt(Et.current,dn.current,Dn.current)},30*1e3)};return(0,t.useEffect)(()=>{console.log("isFocus:",Mn),gn()},[Mn]),(0,t.useEffect)(()=>{Cn(W==null?void 0:W.a_flag)},[W==null?void 0:W.a_flag]),(0,t.useEffect)(()=>()=>{clearInterval(vr.current)},[]),t.createElement("div",null,((qt=be==null?void 0:be.exercise)==null?void 0:qt.user_exercise_status)===1?t.createElement("div",null,t.createElement("div",{className:"mt30"},t.createElement("strong",null,"\u4F5C\u6587\u9898\u76EE\uFF1A"),t.createElement("br",null),t.createElement(E.default,{disabled:!0,className:"mt10",value:dn.current,onChange:Jt=>{dn.current=Jt.target.value,Ot(bn+1)},onBlur:()=>{Yt(Et.current,dn.current,Dn.current),ir(!1)}})),t.createElement("div",{className:"mt30"},t.createElement("strong",null,"\u4F5C\u54C1\u7C7B\u578B\uFF1A"),t.createElement("br",null),t.createElement(tt.default,{disabled:!0,className:"mt10 w100",placeholder:"\u8BF7\u9009\u62E9\u4F5C\u54C1\u7C7B\u578B",value:Dn.current,onChange:Jt=>{Dn.current=Jt,Ot(bn+1)},onBlur:()=>{Yt(Et.current,dn.current,Dn.current),ir(!1)}},t.createElement(tt.default.Option,{key:1,value:"\u79D1\u666E"},"\u79D1\u666E"),t.createElement(tt.default.Option,{key:2,value:"\u79D1\u5E7B"},"\u79D1\u5E7B"))),t.createElement("p",{className:"mt10 mb0"},"\u4F5C\u54C1\u5185\u5BB9\uFF1A"),t.createElement("div",{className:N.simpleText},t.createElement(ge.Z,{value:(Zt=W==null?void 0:W.user_answer)==null?void 0:Zt[0]}))):t.createElement("div",null,t.createElement("div",{className:"mt30"},t.createElement("strong",null,"\u4F5C\u6587\u9898\u76EE\uFF1A"),t.createElement("br",null),t.createElement(E.default,{className:"mt10",maxLength:60,onBlur:()=>Yt(Et.current,dn.current,Dn.current),placeholder:"\u8BF7\u8F93\u5165\u4F5C\u6587\u9898\u76EE(\u6700\u591A60\u4E2A\u5B57)",value:dn.current,onChange:Jt=>{dn.current=Jt.target.value,Ot(bn+1)}})),t.createElement("div",{className:"mt30"},t.createElement("strong",null,"\u4F5C\u6587\u7C7B\u578B\uFF1A"),t.createElement("br",null),t.createElement(tt.default,{className:"mt10 w100",placeholder:"\u8BF7\u9009\u62E9\u4F5C\u54C1\u7C7B\u578B",value:Dn.current,onChange:Jt=>{Dn.current=Jt,Yt(Jt.current,dn.current,Dn.current),Ot(bn+1)}},t.createElement(tt.default.Option,{key:1,value:"\u79D1\u666E"},"\u79D1\u666E"),t.createElement(tt.default.Option,{key:2,value:"\u79D1\u5E7B"},"\u79D1\u5E7B"))),t.createElement("div",{className:"mt30 mb20"},t.createElement("div",{className:W.user_score&&(W.user_score===W.question_score?"c-green":"c-red")},t.createElement("strong",null,"\u4F5C\u6587\u5185\u5BB9\uFF1A"),t.createElement("br",null),t.createElement("div",{className:"mt10 relative"},t.createElement("span",{className:"c-blue",style:{position:On?"fixed":"absolute",top:On?61:4,left:10,zIndex:106}},"\u5DF2\u8F93\u5165",Tr,"\u5B57"),An?t.createElement(Re.Z,{className:N.simpleMd,disablePaste:!0,hidetoolBar:Me,height:Me?"60vh":150,isFocus:!0,defaultValue:(_t=W==null?void 0:W.user_answer)==null?void 0:_t[0],id:W==null?void 0:W.question_id,onFullScreen:Jt=>kn(Jt),onChange:Jt=>{Et.current=Jt,ir(!0),Ot(bn+1)},onBlur:()=>{Yt(Et.current,dn.current,Dn.current),ir(!1)}}):t.createElement("div",{onClick:()=>sn(!0),className:N.startAnswer},t.createElement("div",{className:"c-blue"},"\u70B9\u51FB\u5F00\u59CB\u4F5C\u7B54")))))),(0,ae.dE)()&&(W==null?void 0:W.standard_answer)&&t.createElement("div",null,t.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),t.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},t.createElement(ge.Z,{value:(Vt=W==null?void 0:W.standard_answer)==null?void 0:Vt[0]}))))},qe=e(79817),dt=e(1710),Ie=e(58466),st={score:"score___mcGn7",wrap:"wrap___h11sQ"},Se=({score:W})=>W?t.createElement("span",{className:st.wrap},"\u5F97\u5206",t.createElement("span",{className:`${st.score} ml10 mr5`},W),"\u5206"):t.createElement("span",{className:"c-red"},"\u672A\u8BC4"),ve={flex_box_center:"flex_box_center___xK64P",flex_space_between:"flex_space_between___BNBCA",flex_box_vertical_center:"flex_box_vertical_center___ConJK",flex_box_center_end:"flex_box_center_end___L08sz",flex_box_column:"flex_box_column___hvk0E",shixunWrp:"shixunWrp___FTFC6",fill:"fill___H_Qd6",index:"index___PaSVJ",success:"success___fz_F7",fail:"fail___ftXSv",fillInput:"fillInput___q_sSb",shixunWrapper:"shixunWrapper___toGqF",score:"score___AsYGZ",name:"name___hawfX",programWrapper:"programWrapper___zVQPT",desc:"desc___MFIu5",content:"content___QuE41",analysisWrap:"analysisWrap___qGPzJ",greyBg:"greyBg___FIDIB"},rt=e(46499),et=e(42441),j=e(76411),V=Object.defineProperty,p=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,me=(W,be,Me)=>be in W?V(W,be,{enumerable:!0,configurable:!0,writable:!0,value:Me}):W[be]=Me,u=(W,be)=>{for(var Me in be||(be={}))a.call(be,Me)&&me(W,Me,be[Me]);if(p)for(var Me of p(be))k.call(be,Me)&&me(W,Me,be[Me]);return W},i=(W,be,Me)=>new Promise((Yt,qt)=>{var Zt=Et=>{try{Vt(Me.next(Et))}catch(Rt){qt(Rt)}},_t=Et=>{try{Vt(Me.throw(Et))}catch(Rt){qt(Rt)}},Vt=Et=>Et.done?Yt(Et.value):Promise.resolve(Et.value).then(Zt,_t);Vt((Me=Me.apply(W,be)).next())}),R=({})=>{const W=(0,l.useParams)(),[be,Me]=(0,t.useState)(!0),[Yt,qt]=(0,t.useState)(0),[Zt,_t]=(0,t.useState)([]),[Vt,Et]=(0,t.useState)([]),[Rt,Cn]=(0,t.useState)({page:1,limit:10,login:W==null?void 0:W.login});(0,t.useEffect)(()=>{kn(Rt),Mn()},[]);const On=[{title:"\u5E8F\u53F7",dataIndex:"key",render:(sn,bn,Ot)=>t.createElement("span",{className:"c-black"},Ot+1+(Rt.page-1)*Rt.limit)},{title:"\u91C7\u96C6\u70B9\u540D\u79F0",ellipsis:!0,dataIndex:"vrs_point_name",render:sn=>t.createElement("span",{className:"c-black"},sn)},{title:"\u7B54\u6848\u503C\u7C7B\u578B",dataIndex:"vrs_point_answer_type",render:sn=>t.createElement("span",{className:"c-black"},sn==0?"\u56FA\u5B9A\u503C":sn==1?"\u533A\u95F4\u503C":"\u72B6\u6001\u503C")},{title:"\u9519\u8BEF\u7387",width:80,dataIndex:"error_rate",render:sn=>t.createElement("span",{className:"c-black"},sn,"%")}],kn=sn=>i(void 0,null,function*(){var bn,Ot;Me(!0);const dn=yield(0,oe.ZP)(`/api/exercises/${W==null?void 0:W.categoryId}/exercise_user/point_error_rate_list.json`,{method:"get",params:sn});(dn==null?void 0:dn.status)==0&&(_t(((bn=dn==null?void 0:dn.data)==null?void 0:bn.list)||[]),qt((Ot=dn==null?void 0:dn.data)==null?void 0:Ot.count)),Me(!1)}),Mn=()=>i(void 0,null,function*(){var sn;const bn=yield(0,oe.ZP)(`/api/exercises/${W==null?void 0:W.categoryId}/exercise_user/growth_curve_chart.json`,{method:"get",params:{login:W==null?void 0:W.login}});(bn==null?void 0:bn.status)==0&&Et(((sn=bn==null?void 0:bn.data)==null?void 0:sn.list)||[])}),ir=(sn,bn,Ot)=>{Rt.page=sn==null?void 0:sn.current,Rt.limit=sn==null?void 0:sn.pageSize,Cn(u({},Rt)),kn(Rt)},An=()=>{const sn=Vt==null?void 0:Vt.map(bn=>bn.score);return{tooltip:{formatter:function(bn){return`${bn.name}: ${bn==null?void 0:bn.value}\u5206`}},grid:{left:10,containLabel:!0},xAxis:{name:"\u8BAD\u7EC3\u6B21\u6570",type:"category",data:sn.map((bn,Ot)=>`\u7B2C${Ot+1}\u6B21`),axisTick:{show:!1},axisLine:{show:!1},axisLabel:{color:"#9096A3"},nameTextStyle:{color:"#9096A3"}},yAxis:{name:"\u6210\u7EE9",nameTextStyle:{color:"#9096A3",padding:[0,38,4,0]},type:"value",axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!0},axisLabel:{color:"#9096A3"}},series:[{data:sn,type:"line",lineStyle:{color:"#3061D0",width:2},itemStyle:{color:"#3061D0"},areaStyle:{color:new j.graphic.LinearGradient(0,0,0,1,[{offset:0,color:"rgba(0,44,255,0.7)"},{offset:1,color:"rgba(0,118,255,0)"}])}}]}};return t.createElement(t.Fragment,null,t.createElement("div",{className:"font16 c-grey-666 mt20 mt15"},"\u91C7\u96C6\u70B9\u9519\u8BEF\u7387"),t.createElement(dt.default,{columns:On,dataSource:Zt||[],loading:be,onChange:ir,pagination:{total:Yt,pageSize:Rt.limit,current:Rt.page,hideOnSinglePage:!Yt,showSizeChanger:!0,pageSizeOptions:["5","10","20","50","100"],showQuickJumper:!0,size:"default",showTotal:Z.rU}}),t.createElement("div",{className:"font16 c-grey-666 mt20 mt15"},"\u6210\u957F\u66F2\u7EBF"),t.createElement(et.Z,{style:{height:450},option:An()}))},s=e(59301),ne=Object.defineProperty,Fe=Object.defineProperties,we=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,m=(W,be,Me)=>be in W?ne(W,be,{enumerable:!0,configurable:!0,writable:!0,value:Me}):W[be]=Me,te=(W,be)=>{for(var Me in be||(be={}))Pe.call(be,Me)&&m(W,Me,be[Me]);if(_e)for(var Me of _e(be))Ne.call(be,Me)&&m(W,Me,be[Me]);return W},ue=(W,be)=>Fe(W,we(be));const ye={0:"c-red-ee4",1:"c-green"};var De=({item:W,answerData:be,exerciseId:Me,coursesId:Yt,answerCheckData:qt,check:Zt})=>{var _t,Vt,Et,Rt,Cn;const[On,kn]=(0,t.useState)([]),[Mn,ir]=(0,t.useState)([]),An=(0,l.useDispatch)();console.log(be,"answerData"),(0,t.useEffect)(()=>{var Ot,dn,Dn,vr,Tr,gn,Jt,yn,pt,Un,_r,Hr,so;if(!((Ot=W==null?void 0:W.shixun_details)!=null&&Ot.length))return;let co=[],xo=[];for(let bo=0;bo<((dn=W==null?void 0:W.shixun_details)==null?void 0:dn.length);bo++){for(let So=0;So<(W==null?void 0:W.shixun_details[bo].stage_list.length);So++){let Io=W==null?void 0:W.shixun_details[bo].stage_list[So];co.push(te(te({},Io),{operation:(gn=(Tr=(vr=(Dn=W==null?void 0:W.shixun_details)==null?void 0:Dn[bo])==null?void 0:vr.shixun_detail)==null?void 0:Tr[0])==null?void 0:gn.game_identifier,is_jupyter:W==null?void 0:W.is_jupyter,is_jupyter_lab:W==null?void 0:W.is_jupyter_lab}))}if((yn=(Jt=W==null?void 0:W.shixun_details)==null?void 0:Jt[bo])!=null&&yn.shixun_detail){const So=(_r=(Un=(pt=W==null?void 0:W.shixun_details)==null?void 0:pt[bo])==null?void 0:Un.shixun_detail)==null?void 0:_r[0],Io=(so=(Hr=W==null?void 0:W.shixun_details[bo].stage_list)==null?void 0:Hr.find(Do=>(Do==null?void 0:Do.game_identifier)===(So==null?void 0:So.game_identifier)))==null?void 0:so.user_score;xo.push(ue(te({},So),{user_score:Io}))}}ir(xo),kn(co)},[W==null?void 0:W.shixun_details]);const sn=[{title:"\u9898\u76EE",dataIndex:"position",key:"position",width:60,align:"center"},{title:"\u9898\u76EE\u540D\u79F0",dataIndex:"name",key:"name",ellipsis:!0,align:"center",render:(Ot,dn)=>s.createElement("span",{className:"overflowHidden1",style:{maxWidth:"400px",color:"#0152d9",cursor:"pointer"},title:Ot&&Ot.length>25?Ot:"",onClick:()=>{(0,Z.xg)(`/tasks/${Yt}/${Me}/${dn.game_identifier}/exercise`)}},Ot)},!(W!=null&&W.unity_3d&&(W==null?void 0:W.vrs_type)==1)&&{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"evaluate_count",key:"evaluate_count",align:"center",width:76,render:(Ot,dn)=>s.createElement("span",null,dn.evaluate_count?dn.evaluate_count:s.createElement("span",{className:"color-grey-9"},"--"))},{title:"\u5F00\u59CB\u8003\u8BD5\u65F6\u95F4",key:"user_start_at",dataIndex:"user_start_at",width:140,align:"center",render:(Ot,dn)=>s.createElement("span",null,Ot?h()(Ot).format("YYYY-MM-DD HH:mm"):"--")},{title:"\u5B8C\u6210\u65F6\u95F4",key:"endTime",dataIndex:"endTime",width:140,align:"center",render:(Ot,dn)=>{let Dn=!1;return dn.finished_time&&(be!=null&&be.exercise)&&(be!=null&&be.exercise_answer_user)&&((be==null?void 0:be.exercise.time)===-1?Dn=h()(be==null?void 0:be.exercise.end_time).isBefore(dn.finished_time):Dn=h()(be==null?void 0:be.exercise_answer_user.start_at).add(be==null?void 0:be.exercise.time,"m").isBefore(dn.finished_time)),s.createElement("span",null,dn.finished_time||s.createElement("span",{className:"c-grey-999"},"--"),s.createElement("span",{className:"c-orange-ff9 "},Dn?"\uFF08\u5DF2\u8D85\u65F6\uFF09":""))}},{title:"\u8017\u65F6",dataIndex:"time_consuming",key:"time_consuming",width:100,align:"center",render:(Ot,dn)=>s.createElement("span",null,dn.time_consuming||s.createElement("span",{className:"color-grey-9"},"--"))},{title:"\u67E5\u770B\u7B54\u6848",dataIndex:"view_answer",key:"view_answer",align:"center",width:76,render:(Ot,dn)=>s.createElement("span",null,dn.view_answer?"\u5DF2\u67E5\u770B":"\u672A\u67E5\u770B")},{title:"\u5F97\u5206",dataIndex:"user_score",key:"user_score",align:"center",width:60,render:Ot=>s.createElement("span",{style:{color:"#FA6400"}},Ot,"\u5206")},{title:"\u64CD\u4F5C",dataIndex:"operation",key:"operation",align:"center",width:60,render:(Ot,dn,Dn)=>Ot&&!dn.is_jupyter&&!dn.is_jupyter_lab?dn!=null&&dn.unity_3d?s.createElement("span",{className:"c-blue current",onClick:()=>{An({type:"classroomList/setActionTabs",payload:{key:"\u91C7\u96C6\u70B9\u5F97\u5206\u8BE6\u60C5",data:dn}})}},"\u8BE6\u60C5"):s.createElement(qe.default,{affix:!1},s.createElement(qe.default.Link,{href:`#challenge_${W==null?void 0:W.question_id}${Dn}`,title:s.createElement("span",{style:{color:"#0152d9",fontSize:14}},"\u67E5\u770B")})):s.createElement("span",{className:"c-grey-999"},"--")}].filter(Ot=>!!Ot);console.log(Mn);const bn={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return s.createElement("div",null,((_t=W==null?void 0:W.shixun)==null?void 0:_t.length)>0&&s.createElement("div",{className:ve.shixunWrapper},(Vt=W==null?void 0:W.shixun)==null?void 0:Vt.map(function(Ot,dn){return s.createElement(C.Z,{className:"mb20",justify:"space-between"},s.createElement(v.Z,{flex:"1"},s.createElement("span",{className:ve.score},"(",Ot.challenge_score,"\u5206)"),s.createElement("span",{className:ve.name},Ot.challenge_name," ")),s.createElement(v.Z,null,!Ot.answer_status&&s.createElement("span",{className:"font14",style:{color:"#FA6400"}},"\u672A\u5B8C\u6210"),!!Ot.answer_status&&s.createElement("span",{className:"font14",style:{color:"#37AD83"}},"\u5DF2\u5B8C\u6210")))})),((Et=be==null?void 0:be.exercise)==null?void 0:Et.student_commit_status)!==0||((Rt=be==null?void 0:be.exercise)==null?void 0:Rt.user_exercise_status)!==0?s.createElement(s.Fragment,null,!!(On!=null&&On.length)&&s.createElement("div",null,s.createElement(C.Z,{justify:"space-between",className:"mb10",align:"middle"},s.createElement(v.Z,{className:"font14 c-grey-666"},"\u8003\u6838\u6210\u7EE9"),s.createElement(v.Z,null,s.createElement(Se,{score:W==null?void 0:W.user_score}))),s.createElement(dt.default,{columns:sn,dataSource:On,pagination:!1})),!!(Mn!=null&&Mn.length)&&s.createElement("div",null,s.createElement("p",{className:"font16 c-grey-666 mt10"},"\u5B9E\u8BAD\u8BE6\u60C5"),Mn==null?void 0:Mn.map((Ot,dn)=>s.createElement("div",{id:`challenge_${W==null?void 0:W.question_id}${dn}`,className:"mt5"},s.createElement(C.Z,null,s.createElement("span",{className:"font14 mr15"}," \u7B2C",Ot.position,"\u5173"),s.createElement(l.Link,{className:"current c-black font14",target:"_blank",to:`/tasks/${Yt}/${Me}/${Ot.game_identifier}/exercise`},Ot.name),s.createElement(v.Z,{style:{marginLeft:"auto"}},s.createElement(Se,{score:Ot.user_score}))),(Ot==null?void 0:Ot.st)===0&&Ot.passed_code&&s.createElement("aside",{className:ve.shixunWrp},s.createElement("h2",null,"\u7B2C\u4E00\u6B21\u901A\u5173\u7684\u4EE3\u7801\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09",s.createElement("span",{className:"c-light-black"},Ot.path)),s.createElement(Ie.ZP,{height:300,language:"python",theme:"default",value:Ot.passed_code,options:bn})))))):s.createElement(s.Fragment,null,(0,ae.dE)()&&s.createElement(ge.Z,{className:"c-grey-999 mt20 mb20",value:W==null?void 0:W.question_title}),(Cn=W==null?void 0:W.shixun)==null?void 0:Cn.map((Ot,dn)=>s.createElement("p",{className:"font16 c-grey-666 mb5",key:dn},s.createElement("span",{className:"mr20"},"\u7B2C",Ot==null?void 0:Ot.challenge_position,"\u5173 ",Ot==null?void 0:Ot.challenge_name),s.createElement("span",null,Ot==null?void 0:Ot.challenge_score,"\u5206")))),Zt&&(qt==null?void 0:qt.exercise_type)===2&&s.createElement(R,null),s.createElement(rt.Z,null))},Ke=e(24334),We=e(9683),Xe=e(59301);const Dt={0:"c-red-ee4",1:"c-green"};var Pt=({item:W,answerData:be})=>{var Me,Yt,qt;const[Zt,_t]=(0,t.useState)([]);(0,t.useEffect)(()=>{var Rt,Cn;((Rt=W==null?void 0:W.evaluate_codes)==null?void 0:Rt.length)>0?_t((Cn=W==null?void 0:W.evaluate_codes)==null?void 0:Cn.map((On,kn)=>({key:kn+1,error_msg:On!=null&&On.error_msg?Ke.Base64.decode(On==null?void 0:On.error_msg):""}))):_t([{key:"--",error_msg:"--"}])},[W==null?void 0:W.evaluate_codes]);const Vt=[{title:"\u8BC4\u6D4B\u6B21\u6570",dataIndex:"key",width:"127px",key:"key",align:"center",render:(Rt,Cn)=>Xe.createElement("span",null,Cn.key)},{title:"\u8BE6\u7EC6\u4FE1\u606F",dataIndex:"error_msg",key:"error_msg",align:"center",render:(Rt,Cn)=>Xe.createElement("span",null,Cn.error_msg?Cn.error_msg:"--")}],Et={selectOnLineNumbers:!0,readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1};return Xe.createElement("div",{className:`${ve.programWrapper}`},Xe.createElement("div",{className:ve.desc},"\u9898\u76EE\u63CF\u8FF0"),Xe.createElement("div",{className:ve.content},Xe.createElement(ge.Z,{value:W==null?void 0:W.description})),((Me=be==null?void 0:be.exercise)==null?void 0:Me.user_exercise_status)===1&&Xe.createElement(C.Z,{justify:"end",className:"mt40"},Xe.createElement(v.Z,null,Xe.createElement(Se,{score:W==null?void 0:W.user_score}))),(W==null?void 0:W.passed_code)&&Xe.createElement("aside",{className:ve.shixunWrp},Xe.createElement(C.Z,{align:"middle",justify:"space-between",style:{height:30,padding:"0 7px"}},Xe.createElement("b",null,"\u7B2C\u4E00\u6B21\u8BC4\u6D4B\u901A\u8FC7\u7684\u4EE3\u7801\uFF08\u672A\u901A\u5173\u5219\u4E3A\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u8BC4\u6D4B\u7684\u4EE3\u7801\uFF09"),Xe.createElement(We.Z,{title:"\u7F16\u7A0B\u8BED\u8A00",dataSource:[W==null?void 0:W.language]})),Xe.createElement(Ie.ZP,{style:{border:"1px solid #ccc"},height:300,language:"python",theme:"vs-light",value:W!=null&&W.passed_code?Ke.Base64.decode(W==null?void 0:W.passed_code):"",options:Et})),((Yt=be==null?void 0:be.exercise)==null?void 0:Yt.user_exercise_status)===1&&((qt=be==null?void 0:be.exercise)==null?void 0:qt.answer_open)&&Xe.createElement("div",{style:{background:"#F6F7F9"},className:"mt30 p20"},Xe.createElement("div",{style:{marginBottom:"20px",fontSize:"16px",display:"flex"}},Xe.createElement("span",{style:{whiteSpace:"nowrap"}},"\u3010\u7B54\u6848\u3011"),Xe.createElement(ge.Z,{value:(W==null?void 0:W.standard_answer)||""})),Xe.createElement("div",{style:{fontSize:"16px",display:"flex"}},Xe.createElement("span",{style:{whiteSpace:"nowrap"}},"\u3010\u89E3\u6790\u3011"),Xe.createElement(ge.Z,{value:(W==null?void 0:W.analysis)||"\u6682\u65E0\u89E3\u6790"}))))},un=e(78926),on=Object.defineProperty,xt=Object.defineProperties,Sn=Object.getOwnPropertyDescriptors,mn=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,wn=Object.prototype.propertyIsEnumerable,Vn=(W,be,Me)=>be in W?on(W,be,{enumerable:!0,configurable:!0,writable:!0,value:Me}):W[be]=Me,Zn=(W,be)=>{for(var Me in be||(be={}))an.call(be,Me)&&Vn(W,Me,be[Me]);if(mn)for(var Me of mn(be))wn.call(be,Me)&&Vn(W,Me,be[Me]);return W},sr=(W,be)=>xt(W,Sn(be)),wr=(W,be,Me)=>new Promise((Yt,qt)=>{var Zt=Et=>{try{Vt(Me.next(Et))}catch(Rt){qt(Rt)}},_t=Et=>{try{Vt(Me.throw(Et))}catch(Rt){qt(Rt)}},Vt=Et=>Et.done?Yt(Et.value):Promise.resolve(Et.value).then(Zt,_t);Vt((Me=Me.apply(W,be)).next())});const{TextArea:er}=E.default,fr={0:"c-red-ee4",1:"c-green"};var br=({sign:W,item:be,answerData:Me,onBlur:Yt=()=>{}})=>{var qt,Zt,_t,Vt;const[Et,Rt]=(0,t.useState)([]),[Cn,On]=(0,t.useState)([]),kn=(0,t.useRef)(),Mn=(0,t.useRef)(),[ir]=(0,l.useSearchParams)();return(0,t.useEffect)(()=>{var An,sn;if(ir.get("check")){let bn=[];bn=(An=be==null?void 0:be.standard_answer)==null?void 0:An.map(Ot=>{var dn,Dn;return sr(Zn({},Ot),{choice_id:Ot.position,answer_text:((Dn=(dn=be==null?void 0:be.user_answer)==null?void 0:dn.find(vr=>vr.choice_id===Ot.choice_id))==null?void 0:Dn.answer_text)||""})}),kn.current=bn,Rt(bn)}else{let bn=[];bn=(sn=be==null?void 0:be.standard_answers)==null?void 0:sn.map(Ot=>{var dn,Dn;return sr(Zn({},Ot),{choice_id:Ot.position,answer_text:((Dn=(dn=be==null?void 0:be.user_answer)==null?void 0:dn.find(vr=>vr.choice_id===Ot.position))==null?void 0:Dn.answer_text)||""})}),kn.current=bn,Rt(bn)}},[be==null?void 0:be.user_answer]),t.createElement("div",null,Et==null?void 0:Et.map((An,sn)=>{var bn,Ot,dn,Dn,vr;return t.createElement(C.Z,{key:sn,className:`${ve.baseMargin} ${ve.fill}`,align:"middle"},t.createElement(v.Z,{className:ve.index},"\u586B\u7A7A\u9879",sn+1),t.createElement(v.Z,{flex:"430px",className:"ml20 mr20"},(An==null?void 0:An.model)===1?t.createElement(E.default,{name:"sign",placeholder:"\u8BF7\u8F93\u5165\u7B54\u6848",disabled:!be.repeat_answer&&((bn=be==null?void 0:be.user_answer)==null?void 0:bn.length)>0&&be.ques_status!==0||!!(Me!=null&&Me.exercise.commit_status),value:An==null?void 0:An.answer_text,onChange:Tr=>{Et[sn].answer_text=Tr.target.value,Rt([...Et])},onFocus:()=>{W.current=!0},onBlur:Tr=>{setTimeout(()=>wr(void 0,null,function*(){const gn=yield Yt(An==null?void 0:An.answer_text,sn+1,Et);if(gn.status){const Jt=Cn.slice();Jt[sn]={status:"fail",errorText:gn.message},Mn.current=Jt,On(Jt)}else{const Jt=Cn.slice();Jt[sn]={status:"success",errorText:""},Mn.current=Jt,On(Jt)}}),200)},className:`${be.user_score&&(be.user_score===be.question_score?"c-green":"c-red")} ${ve.fillInput}`}):t.createElement(un.Z,{value:An==null?void 0:An.answer_text,disabled:!be.repeat_answer&&((Ot=be==null?void 0:be.user_answer)==null?void 0:Ot.length)>0&&be.ques_status!==0||!!(Me!=null&&Me.exercise.commit_status),onChange:Tr=>wr(void 0,null,function*(){var gn,Jt;Et[sn].answer_text=Tr,Rt([...Et]);const yn=yield Yt(An==null?void 0:An.answer_text,sn+1,Et);if(yn.status){const pt=((Jt=Mn==null?void 0:Mn.current)==null?void 0:Jt.slice())||[].slice();pt[sn]={status:"fail",errorText:yn.message},Mn.current=pt,On(pt)}else{const pt=((gn=Mn==null?void 0:Mn.current)==null?void 0:gn.slice())||[].slice();pt[sn]={status:"success",errorText:""},Mn.current=pt,On(pt)}})})),((dn=Cn[sn])==null?void 0:dn.status)==="success"&&t.createElement(v.Z,null,t.createElement(C.Z,{align:"middle"},t.createElement("i",{style:{marginRight:8},className:`iconfont icon-chenggong1 ${ve.success}`}),t.createElement("span",{className:ve.success},"\u4FDD\u5B58\u6210\u529F"))),((Dn=Cn[sn])==null?void 0:Dn.status)==="fail"&&t.createElement(v.Z,null,t.createElement(C.Z,{align:"middle"},t.createElement("i",{style:{marginRight:8},className:`iconfont icon-tishi7 ${ve.fail}`}),t.createElement("span",{className:ve.fail},(vr=Cn[sn])==null?void 0:vr.errorText))))}),((0,ae.GJ)()||(0,ae.dE)()&&((qt=Me==null?void 0:Me.exercise)==null?void 0:qt.user_exercise_status)>0&&((Zt=Me==null?void 0:Me.exercise)==null?void 0:Zt.open_score))&&t.createElement(C.Z,{justify:"end",className:"mb20",align:"middle"},t.createElement("span",{className:"font14",style:{color:"#6A7283"}},"\u5F97\u5206"),t.createElement("span",{className:"font14 ml10"},(be==null?void 0:be.user_score)&&t.createElement("span",null,t.createElement("span",{className:fr[Number(be==null?void 0:be.answer_status)]||"c-orange-ff9"},be==null?void 0:be.user_score),t.createElement("span",{style:{marginLeft:5,color:"#6A7283"}},"\u5206")),!(be!=null&&be.user_score)&&t.createElement("span",{className:"c-red"},"\u672A\u8BC4"))),((_t=Me==null?void 0:Me.exercise)==null?void 0:_t.answer_open)&&t.createElement("div",{className:ve.analysisWrap},t.createElement("div",{className:ve.greyBg},t.createElement("div",{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u7B54\u6848\u3011"),(Vt=be==null?void 0:be.standard_answer)==null?void 0:Vt.map((An,sn)=>{var bn;return t.createElement(C.Z,{key:sn,align:"middle",className:"mt15 ml10"},t.createElement(v.Z,{className:"mr10"},"\u586B\u7A7A\u9879",sn+1),t.createElement(v.Z,null,t.createElement(un.Z,{value:(bn=An==null?void 0:An.answer_text)==null?void 0:bn[0],style:{maxWidth:730,minWidth:100},disabled:!0})))}),t.createElement(C.Z,{className:"mt15",align:"middle"},t.createElement("span",{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u89E3\u6790\u3011"),t.createElement(ge.Z,{className:ve.renderHtml,value:be==null?void 0:be.analysis})))))},jr=e(98070),Fr=e(87169),hr=e(10089),Xn=e(59301),no=Object.defineProperty,Xr=Object.defineProperties,yo=Object.getOwnPropertyDescriptors,ao=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,ot=(W,be,Me)=>be in W?no(W,be,{enumerable:!0,configurable:!0,writable:!0,value:Me}):W[be]=Me,Ct=(W,be)=>{for(var Me in be||(be={}))Ve.call(be,Me)&&ot(W,Me,be[Me]);if(ao)for(var Me of ao(be))pe.call(be,Me)&&ot(W,Me,be[Me]);return W},Nt=(W,be)=>Xr(W,yo(be)),At=(W,be,Me)=>new Promise((Yt,qt)=>{var Zt=Et=>{try{Vt(Me.next(Et))}catch(Rt){qt(Rt)}},_t=Et=>{try{Vt(Me.throw(Et))}catch(Rt){qt(Rt)}},Vt=Et=>Et.done?Yt(Et.value):Promise.resolve(Et.value).then(Zt,_t);Vt((Me=Me.apply(W,be)).next())});const{TextArea:Ut}=E.default;var H=({item:W,answerData:be,sign:Me,onBlur:Yt=()=>{},onDebug:qt=()=>{},setIsSubmitCode:Zt})=>{var _t,Vt,Et;let[Rt,Cn]=(0,t.useState)([]);const[On]=(0,l.useSearchParams)();return(0,t.useEffect)(()=>{var kn;let Mn=(kn=W==null?void 0:W.standard_answer_with_score)==null?void 0:kn.map((ir,An)=>{var sn,bn;return Nt(Ct({},ir),{value:((bn=(sn=W==null?void 0:W.user_answer)==null?void 0:sn.find(Ot=>parseInt(Ot.choice_id)===An+1))==null?void 0:bn.answer_text)||""})});Cn(Mn)},[W==null?void 0:W.standard_answer_with_score]),console.log(Rt,"userAnswer"),Xn.createElement("div",null,Xn.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:10}},Xn.createElement("div",{style:{fontSize:14,color:"#FF0000"}},Xn.createElement(Fr.Z,null),Xn.createElement("span",{style:{marginLeft:5}},"\u6CE8\u610F\uFF1A\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u5426\u5219\u65E0\u6CD5\u5F97\u5206")),!On.get("check")&&Xn.createElement(jr.Z,{setIsSubmitCode:Zt,ButtonProps:{type:"primary"},ButtonText:"\u63D0\u4EA4\u4EE3\u7801",items:Nt(Ct({},W),{userAnswer:Rt}),hackidentifier:W==null?void 0:W.hack_identifier})),(W==null?void 0:W.code)&&Xn.createElement("div",{style:{border:"1px solid #CCCCCC",padding:"10px",marginBottom:20}},Xn.createElement(ge.Z,{disabledFill:!W.repeat_answer&&((_t=W==null?void 0:W.user_answer)==null?void 0:_t.length)>0&&W.ques_status!==0||!!(be!=null&&be.exercise.commit_status),onFillBlur:(kn,Mn)=>At(void 0,null,function*(){hr.Z.publish("BFill:Submit:Change",{value:!0}),setTimeout(()=>At(void 0,null,function*(){var ir;(yield Yt((ir=kn==null?void 0:kn[parseInt(Mn)])==null?void 0:ir.value,parseInt(Mn)+1,Rt)).status===0?(Rt[parseInt(Mn)].type="",Cn([...Rt])):(Rt[parseInt(Mn)].type="warning",Cn([...Rt]))}),200)}),onFillFocus:(kn,Mn)=>{Rt[parseInt(Mn)].type="",Cn([...Rt]),Me.current=!0},className:ve.content,programFillValue:Rt,showProgramFill:!0,value:Ke.Base64.decode((W==null?void 0:W.code)||"")})),!!((Vt=W==null?void 0:W.standard_answer)!=null&&Vt.length)&&Xn.createElement("div",{className:ve.analysisWrap},Xn.createElement("div",{className:ve.greyBg},Xn.createElement(C.Z,{className:"mb20",align:"middle"},Xn.createElement(v.Z,{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u7B54\u6848\u3011"),(Et=W==null?void 0:W.standard_answer)==null?void 0:Et.map((kn,Mn)=>Xn.createElement(v.Z,{key:Mn,className:"mr40"},"\u586B\u7A7A\u9879",Mn+1,":",kn==null?void 0:kn.answer_text))),Xn.createElement(C.Z,null,Xn.createElement("span",{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u89E3\u6790\u3011"),Xn.createElement(ge.Z,{className:ve.renderHtml,value:(W==null?void 0:W.analysis)||"\u6682\u65E0\u89E3\u6790"})))))},fe=e(95818);const{TextArea:he}=E.default;var ke=({data:W})=>t.createElement("div",{className:"tc mt80 pb30"},t.createElement("img",{width:"486",src:fe.BV})," ",t.createElement("br",null),W.status===-1&&t.createElement("div",{className:"c-grey-999 mt60"},"\u60A8\u7684IP\u4E0D\u5728\u8003\u8BD5\u5141\u8BB8\u7684\u8303\u56F4\u5185\uFF01"),W.status===-2&&t.createElement("div",{className:" c-grey-999 mt60"},"\u60A8\u5DF2\u7ED1\u5B9A\u5F53\u524D\u8003\u8BD5IP\u5730\u5740\uFF1A",t.createElement("span",{className:"c-red"},W.ip),"\u8BF7\u4F7F\u7528\u8BE5IP\u5730\u5740\u8FDB\u5165\u8003\u8BD5\u3002"),t.createElement(U.ZP,{className:"mt40 pl20 pr20",type:"primary"},t.createElement("a",{href:"/"},"\u56DE\u5230\u9996\u9875"))),Ze=e(11662),Le=e(89392),Te={comments:"comments___ZkLeS",greyText:"greyText___ow9J6",commentText:"commentText___Uklcs",wrapper:"wrapper___XTdhL",header:"header___pq5DQ",updateTime:"updateTime___WYYjt",text:"text___FmQY7",date:"date___DiXg4"},Mt=({list:W,hideScore:be=!1})=>t.createElement("div",null,W==null?void 0:W.map(Me=>{var Yt,qt,Zt,_t,Vt,Et;return t.createElement("div",{className:`mt20 ${Te.wrapper}`,key:(Yt=Me==null?void 0:Me.user)==null?void 0:Yt.user_id},t.createElement(C.Z,{align:"middle",className:Te.header},t.createElement("img",{src:Ze.Z.API_SERVER+"/images/"+((qt=Me.user)==null?void 0:qt.image_url)}),t.createElement("span",{className:"ml10 font16"},(Zt=Me.user)==null?void 0:Zt.name),t.createElement(v.Z,{className:Te.updateTime},t.createElement("span",{className:Te.text},"\u8BC4\u9605\u65F6\u95F4"),t.createElement("span",{className:Te.date},h()((Vt=(_t=Me.comments)==null?void 0:_t[0])==null?void 0:Vt.updated_at).format("YYYY-MM-DD HH:mm")))),t.createElement("div",{className:Te.comments},(Et=Me==null?void 0:Me.comments)==null?void 0:Et.map((Rt,Cn)=>{var On;return t.createElement("div",{key:((On=Me==null?void 0:Me.user)==null?void 0:On.user_id)+"-"+Cn},t.createElement(C.Z,{align:"middle",justify:"space-between"},!!Rt.shixun_chanllge_position&&t.createElement("div",{style:{flexShrink:0,marginRight:10}},"\u7B2C",Rt.shixun_chanllge_position,"\u5173"),!be&&t.createElement("div",{style:{flex:1}},"\u539F\u59CB\u5F97\u5206",Rt==null?void 0:Rt.origin_score,"\u5206\uFF0C\u4FEE\u6B63\u4E3A",t.createElement("span",{className:"c-light-primary"},Rt==null?void 0:Rt.score),"\u5206")),!!Rt.comment&&t.createElement("div",null," ",t.createElement("span",{className:`${Te.greyText} mr10`},"\u8BC4\u8BED"),t.createElement("span",{className:Te.commentText},Rt.comment)))})))})),Qt=e(87233),Kn=e(96249),Ln=e.n(Kn),Gn=e(11724),$r=e(62772),Pr=e(47451),Qn=e(69553),mr={codeInput:"codeInput___xSFAu"},ur=e(92310),Or=e.n(ur),In=({className:W,style:be,onOk:Me})=>{const[Yt,qt]=(0,t.useState)(["","","","","",""]),[Zt,_t]=(0,t.useState)(0),Vt=(0,t.useRef)([]);(0,t.useEffect)(()=>{const Cn=Yt.findIndex(On=>!On);Cn===-1&&Me(Yt),_t(Cn)},[Yt]),(0,t.useEffect)(()=>{var Cn;(Cn=Vt.current[Zt])==null||Cn.focus()},[Zt]);const Et=(Cn,On)=>{const{value:kn}=Cn.target;if(/^\d*$/.test(kn)){const Mn=[...Yt];Mn[On]=kn||"",qt(Mn)}},Rt=(Cn,On)=>{if(Cn.key==="Backspace"&&On>0){Cn.preventDefault();const kn=[...Yt];kn[On-1]="",qt(kn)}};return t.createElement("div",{className:Or()(mr.codeInput,W),style:be},Yt.map((Cn,On)=>t.createElement("input",{key:On,type:"text",disabled:Zt!==On,maxLength:1,value:Cn===""?"":"*",onChange:kn=>Et(kn,On),onKeyDown:kn=>Rt(kn,On),ref:kn=>{Vt.current[On]=kn}})))},Dr=e(73423),Cr=e(39587),Fn=e(59570),S=e(59301),Nr=Object.defineProperty,io=Object.defineProperties,lo=Object.getOwnPropertyDescriptors,Yr=Object.getOwnPropertySymbols,ro=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable,Yn=(W,be,Me)=>be in W?Nr(W,be,{enumerable:!0,configurable:!0,writable:!0,value:Me}):W[be]=Me,Jn=(W,be)=>{for(var Me in be||(be={}))ro.call(be,Me)&&Yn(W,Me,be[Me]);if(Yr)for(var Me of Yr(be))Ar.call(be,Me)&&Yn(W,Me,be[Me]);return W},qn=(W,be)=>io(W,lo(be)),zr=(W,be)=>{var Me={};for(var Yt in W)ro.call(W,Yt)&&be.indexOf(Yt)<0&&(Me[Yt]=W[Yt]);if(W!=null&&Yr)for(var Yt of Yr(W))be.indexOf(Yt)<0&&Ar.call(W,Yt)&&(Me[Yt]=W[Yt]);return Me},En=(W,be,Me)=>new Promise((Yt,qt)=>{var Zt=Et=>{try{Vt(Me.next(Et))}catch(Rt){qt(Rt)}},_t=Et=>{try{Vt(Me.throw(Et))}catch(Rt){qt(Rt)}},Vt=Et=>Et.done?Yt(Et.value):Promise.resolve(Et.value).then(Zt,_t);Vt((Me=Me.apply(W,be)).next())});const{Countdown:Kr}=$.default,lr=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Pn={0:"c-red-ee4",1:"c-green"},dr=W=>{var be=W,{globalSetting:Me,loading:Yt,user:qt,exercise:Zt,dispatch:_t}=be,Vt=zr(be,["globalSetting","loading","user","exercise","dispatch"]),Et,Rt,Cn,On,kn,Mn,ir,An,sn,bn,Ot,dn,Dn,vr,Tr,gn,Jt,yn,pt,Un,_r,Hr,so,co,xo,bo,So,Io,Do,Ia,la,ia,Na,ll,_a,Mo,Da,sa,ca,Ba,Ta,Jo,ua,da,fa,ma,Ra,Ma,Fa,Aa,Za,va,La,ka,ja;const il=(0,l.useLocation)(),[No]=(0,l.useSearchParams)(),Gt=(0,l.useParams)(),[J,wo]=(0,t.useState)({}),[ft,pa]=(0,t.useState)({}),[Bo,ga]=(0,t.useState)({}),[za,To]=(0,t.useState)(!1),[Zo,sl]=(0,t.useState)(!0),[cl,Ka]=(0,t.useState)(!1),[ha,_o]=(0,t.useState)(!1),[ya,Ro]=(0,t.useState)(!1),[Ha,Wa]=(0,t.useState)(!1),[ba,xa]=(0,t.useState)(),[Ua,Wo]=(0,t.useState)(""),[Ca,Ea]=(0,t.useState)("none"),[Va,ul]=(0,t.useState)(""),[Uo,Sa]=(0,t.useState)({status:0}),[Vo,Qo]=(0,t.useState)(!1),[Lo,_l]=(0,t.useState)(window.document.domain==="kepukehuan.educoder.net"),[Dl,Xa]=(0,t.useState)(!0),[qo,ko]=(0,t.useState)(!1),[wa,ea]=(0,t.useState)(null),[dl,fl]=(0,t.useState)(!1),[ml,Bl]=(0,t.useState)(0),[vl,Ga]=(0,t.useState)(!1),[pl,Ya]=(0,t.useState)(!1),[gl,Tl]=(0,t.useState)(!1),Ja=(0,t.useRef)(),hl=(0,t.useRef)(),Xo=(0,t.useRef)(!1),$a=(0,t.useRef)(),Qa=(0,t.useRef)(),Pa=(0,t.useRef)(),jo=(0,t.useRef)(),[Oa]=d.default.useForm(),Go=(0,t.useMemo)(()=>new WebSocket("ws://localhost:8082"),[]);let[pr,zo]=(0,t.useState)(0),[xr,Fo]=(0,t.useState)(0);const[Rl,Yo]=(0,t.useState)(!1),[ta,qa]=(0,t.useState)(!1),[yl,na]=(0,t.useState)(!1),el=[`/classrooms/${Gt.coursesId}/exercise/${Gt.categoryId}/detail`,`/classrooms/${Gt.coursesId}/exercise`,`/classrooms/${Gt.coursesId}/exercise/`,`/classrooms/${Gt.coursesId}/exercise/${Gt.categoryId}/users/${(Et=qt.userInfo)==null?void 0:Et.login}/check`,`/classrooms/${Gt.coursesId}/exercisenotice/${Gt.categoryId}/users/${(Rt=qt.userInfo)==null?void 0:Rt.login}`,`/classrooms/${Gt.coursesId}/exercise/${Gt.categoryId}/users/${(Cn=qt.userInfo)==null?void 0:Cn.login}`],[tl,Po]=(0,t.useState)(!1),[bl,xl]=(0,t.useState)(!0),[r,o]=(0,t.useState)({left:0,top:0,bottom:0,right:0}),f=(0,t.useRef)(null),[y,M]=(0,t.useState)(!0),A=(0,t.useRef)(),[ce,se]=(0,t.useState)(!1);(0,Qn.y)((0,ae.dE)());const{setOpenDisableCopyAndPaste:re}=(0,Qn.X)(),xe=(c,ie)=>{var Je;const{clientWidth:lt,clientHeight:Qe}=window.document.documentElement,ut=(Je=f.current)==null?void 0:Je.getBoundingClientRect();o({left:-ut.left+ie.x,right:lt-(ut.right-ie.x),top:-ut.top+ie.y,bottom:Qe-(ut.bottom-ie.y)-70})},Oe=(0,Dr._)(J);(0,t.useEffect)(()=>{var c,ie;if(((c=J==null?void 0:J.exercise)==null?void 0:c.commit_status)>0){Ga(!1);return}if((ha||(ie=J==null?void 0:J.exercise)!=null&&ie.forbid_screen)&&(0,Z.WX)()){const Je=lt=>{lt.key==="screenNums"&&(Number(lt.newValue||0)>1?setTimeout(()=>{Ga(!0)},300):Ga(!1))};return window.addEventListener("local-storage-changed",Je),()=>{window.removeEventListener("local-storage-changed",Je)}}},[ha,(On=J==null?void 0:J.exercise)==null?void 0:On.forbid_screen,(kn=J==null?void 0:J.exercise)==null?void 0:kn.commit_status]),(0,t.useEffect)(()=>(document.body.setAttribute("data-custom","auto"),()=>{document.body.removeAttribute("data-custom")}),[]),(0,t.useEffect)(()=>{var c,ie;if(document.body.scrollIntoView(),((c=qt.userInfo)==null?void 0:c.real_name)==="\u6E38\u5BA2"){window.location.href=`/classrooms/${Gt.coursesId}/exercise`;return}return(ie=qt.userInfo)!=null&&ie.user_id&&((0,ae.GJ)()?Ht():qt.userInfo.login&&Ue()),window.addEventListener("message",Ge),()=>{window.removeEventListener("message",Ge),il.pathname.indexOf("/detail")>-1&&(0,x.BU)()}},[Gt.categoryId,qt.userInfo.login]),(0,t.useEffect)(()=>(window.addEventListener("beforeunload",Ee),()=>{Oe(),window.removeEventListener("beforeunload",Ee)}),[]),(0,t.useEffect)(()=>(_t({type:"globalSetting/headerFooterToggle",payload:!1}),()=>{_t({type:"globalSetting/headerFooterToggle",payload:!0})}),[]),(0,t.useEffect)(()=>{var c,ie,Je,lt;(c=J==null?void 0:J.question_status)!=null&&c.every(Qe=>!!Qe.ques_status&&Vo&&(ft==null?void 0:ft.used_screen_num)<(ft==null?void 0:ft.screen_num))&&setTimeout(()=>{var Qe;(Qe=hl.current)==null||Qe.handlePhoto()},1300),ea((lt=(Je=(ie=J==null?void 0:J.exercise_question_types)==null?void 0:ie[pr])==null?void 0:Je.items)==null?void 0:lt[xr])},[J]);const Ee=c=>{var ie;!(ft!=null&&ft.is_commit)&&(0,ae.dE)()&&(0,Z.RG)(" ",!0),localStorage.setItem("Refresh","1"),(ie=Zt.exerciseUserInfo)!=null&&ie.screen_open&&window.navigator.sendBeacon(`${Ze.Z.API_SERVER}/api/exercises/${Gt.categoryId}/commit_screen_at.json`,{})},Ge=c=>{c.data==="backExercise"&&((0,Z.RG)(" ",!0),He())},He=()=>{Ea("none"),Wo(""),Ht()},Ue=()=>En(void 0,null,function*(){mt()}),bt=()=>En(void 0,null,function*(){Xa(!1),n.default.info({title:(0,Fn._V)(Fn.CP.answer1),width:500,centered:!0,closable:!1,keyboard:!1,maskClosable:!1,maskStyle:{background:"#000"},okText:(0,Fn._V)(Fn.CP.answer2),onOk:()=>new Promise((c,ie)=>En(void 0,null,function*(){try{yield Oa.validateFields()}catch(lt){ie()}const Je=yield(0,L.pL)(Jn({exercise_user_id:ft==null?void 0:ft.exercise_user_id,categoryId:Gt.categoryId},yield Oa.validateFields()));(Je==null?void 0:Je.status)===0?(Xa(!0),ht(),c(Je)):(Oa.setFields([{name:"start_password",errors:[Je==null?void 0:Je.message]}]),ie())})),content:S.createElement(S.Fragment,null,S.createElement("p",{className:""},(0,Fn._V)(Fn.CP.answer3)),S.createElement(d.default,{form:Oa,autoComplete:"off"},S.createElement(d.default.Item,{name:"start_password",label:(0,Fn._V)(Fn.CP.answer1),rules:[{required:!0,message:(0,Fn._V)(Fn.CP.answer4)}]},S.createElement(E.default.Password,{autoComplete:"off"}))))})}),mt=()=>En(void 0,null,function*(){const c=yield _t({type:"exercise/getExerciseUserInfo",payload:Jn({},Gt)});jo.current=qn(Jn({},c.data),{status:c==null?void 0:c.status}),pa(qn(Jn({},c.data),{status:c==null?void 0:c.status}))});(0,t.useEffect)(()=>{if(ft!=null&&ft.exercise_user_id){if(ft!=null&&ft.is_commit||(0,Z.RG)(" ",!0),!(ft!=null&&ft.is_commit)&&((ft==null?void 0:ft.ip_limit)==="inner"||ft!=null&&ft.ip_bind_type)&&(Pa.current=`&ip_limit=${ft==null?void 0:ft.ip_limit}&ip_bind=${ft==null?void 0:ft.ip_bind}&ip_bind_type=${ft==null?void 0:ft.ip_bind_type}`),!(ft!=null&&ft.is_commit)&&!No.get("check")||ft.exercise_type==2&&!No.get("check")){if((0,Z.RG)(" ",!0),!(ft!=null&&ft.can_start)){window.location.href=`/classrooms/${Gt.coursesId}/exercise/${Gt.categoryId}/users/${Gt.login}/check`;return}if(ft!=null&&ft.is_locked&&ft.ip_error){_t({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:qn(Jn({},ft),{id:Gt.categoryId})}});return}else!(ft!=null&&ft.is_locked)&&ft.ip_error;if(document.referrer===""||performance.navigation.type===2||!el.includes(new URL(document.referrer||"https://www.educoder.net").pathname)){document.referrer!==""?sessionStorage.setItem("illegalEntry",el.includes(new URL(document.referrer).pathname)?"illegalEntry":"allowRouter"):sessionStorage.setItem("illegalEntry","illegalEntry"),l.history.push(`/classrooms/${Gt.coursesId}/exercise/`);return}if(ft!=null&&ft.start_locked&&!(ft!=null&&ft.user_is_enter)){bt();return}if(ft!=null&&ft.is_locked&&performance.navigation.type===1&&!sessionStorage.getItem("studentunlock")){_t({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:qn(Jn({},ft),{id:Gt.categoryId})}});return}if((0,oe.ZP)(`/api/exercises/${Gt==null?void 0:Gt.categoryId}/close_pop.json`,{method:"post"}),ft!=null&&ft.is_locked&&performance.navigation.type===0&&(ft!=null&&ft.user_is_enter)&&!(ft!=null&&ft.is_commit)&&(ft!=null&&ft.show_pop)){_t({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:qn(Jn({},ft),{id:Gt.categoryId})}});return}}else if(!ft.answered_open&&ft.exercise_type!=2){n.default.info({width:500,centered:!0,icon:null,title:(0,Fn._V)(Fn.CP.answer5),content:(0,Fn._V)(Fn.CP.answer6),onOk:()=>{window.location.href=`/classrooms/${Gt.coursesId}/exercise/${Gt.categoryId}/detail`}});return}No.get("check")?Ht():ht(),No.get("check")||to()}return()=>{!(ft!=null&&ft.is_commit)&&(0,ae.dE)()&&(0,Z.RG)(" ",!0)}},[ft]);const ht=()=>En(void 0,null,function*(){var c,ie,Je,lt,Qe,ut,vt,Ft,jt,$t,nn,at,it,Lt,Lr;sessionStorage.setItem("studentunlock","studentunlock");const rn={data:ft,status:ft.status};if((((c=rn==null?void 0:rn.data)==null?void 0:c.ip_limit)!=="no"||(ie=rn==null?void 0:rn.data)!=null&&ie.ip_bind_type)&&($a.current=yield(0,de.y)({ip_limit:(Je=rn==null?void 0:rn.data)==null?void 0:Je.ip_limit,ip_bind:(lt=rn==null?void 0:rn.data)==null?void 0:lt.ip_bind_type})),(((Qe=rn==null?void 0:rn.data)==null?void 0:Qe.ip_limit)!=="no"||(ut=rn==null?void 0:rn.data)!=null&&ut.ip_bind)&&(((vt=rn==null?void 0:rn.data)==null?void 0:vt.ip_limit)==="inner"||(Ft=rn==null?void 0:rn.data)!=null&&Ft.ip_bind_type)){var jn=yield(0,Z.oi)({exerciseId:Gt.categoryId,ip:$a.current,errmsgHide:!0,ip_limit:((jt=rn==null?void 0:rn.data)==null?void 0:jt.ip_limit)||"no",ip_bind:($t=rn==null?void 0:rn.data)==null?void 0:$t.ip_bind,ip_bind_type:(nn=rn==null?void 0:rn.data)==null?void 0:nn.ip_bind_type});if((jn==null?void 0:jn.status)!==0){Sa(jn);return}}if((rn==null?void 0:rn.status)==0){if(((at=rn==null?void 0:rn.data)==null?void 0:at.used_screen_num)>((it=rn==null?void 0:rn.data)==null?void 0:it.screen_num)&&((Lt=rn==null?void 0:rn.data)!=null&&Lt.screen_open))return na(!0),Hn(),!1;if(Ka(rn==null?void 0:rn.data.check_camera),!(rn!=null&&rn.data.check_camera)){if(rn!=null&&rn.data.screen_shot_open){Ro(ft==null?void 0:ft.screen_shot_open);return}_o((Lr=rn==null?void 0:rn.data)==null?void 0:Lr.screen_open),Ht()}}}),ct=(...c)=>En(void 0,[...c],function*(ie=wa){No.get("check")||(yield(0,oe.ZP)(`/api/exercise_questions/${ie==null?void 0:ie.question_id}/exercise_answers/save_hack_evaluate.json`,{}))}),It=c=>En(void 0,null,function*(){if((c==null?void 0:c.type)===1)return n.default.info({centered:!0,width:470,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,keyboard:!1,onOk:()=>{l.history.replace(`/classrooms/${Gt.coursesId}/exercise/${Gt.categoryId}/detail`)},content:S.createElement("div",null,(c==null?void 0:c.message)||"")}),Promise.reject();if((c==null?void 0:c.type)===2){const ie=()=>{l.history.replace(`/classrooms/${Gt.coursesId}/exercise/${Gt.categoryId}/centralizeReview/${c==null?void 0:c.login}`)};return n.default.confirm({centered:!0,width:470,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,keyboard:!1,onOk:ie,onCancel:()=>{l.history.replace(`/classrooms/${Gt.coursesId}/exercise/${Gt.categoryId}/detail`)},content:S.createElement("div",null,S.createElement("div",null,"\u60A8\u5DF2\u6210\u4E3A\u6307\u5B9A\u9605\u5377\u6559\u5E08\uFF0C\u662F\u5426\u73B0\u5728\u524D\u5F80",S.createElement("span",{onClick:ie,className:"ml5 mr5 c-light-primary current"},"\u96C6\u4E2D\u9605\u5377"),"\u7EE7\u7EED\u8BC4\u9605\uFF1F"),S.createElement("div",{className:"c-grey-999"},"\uFF08\u9605\u5377\u7ED3\u675F\u540E\u6062\u590D\u5B66\u751F\u4E2A\u4EBA\u8BC4\u9605\u529F\u80FD\uFF0C\u5E76\u5C55\u793A\u5B66\u751F\u6210\u7EE9\uFF09"))}),Promise.reject()}}),Ht=()=>En(void 0,null,function*(){var c,ie,Je,lt,Qe,ut,vt,Ft,jt,$t,nn,at,it,Lt,Lr,rn,jn,Mr,uo,ra,nr;document.body.scrollIntoView(),To(!0);let gt,oo=(c=qt.userInfo)==null?void 0:c.user_id;if((0,ae.GJ)())gt=yield(0,L.BJ)({exerciseId:Gt.categoryId,login:Gt.login}).catch(()=>To(!1)),gt!=null&>.exercise&&(gt.exercise.user_exercise_status=1),oo=(ie=gt==null?void 0:gt.exercise_answer_user)==null?void 0:ie.user_id;else{if(No.get("check"))gt=yield(0,L.BJ)(qn(Jn({},Gt),{exerciseId:Gt.categoryId,login:Gt.login})).catch(()=>To(!1)),oo=(Je=gt==null?void 0:gt.exercise)==null?void 0:Je.user_id,(gt==null?void 0:gt.message)==="\u5B66\u751F\u6B63\u5728\u8003\u8BD5\u4E2D\uFF0C\u60A8\u65E0\u6743\u67E5\u770B"&&xl(!1);else{if((((lt=jo.current)==null?void 0:lt.ip_limit)!=="no"||(Qe=jo.current)!=null&&Qe.ip_bind_type)&&($a.current=yield(0,de.y)({ip_limit:(ut=jo.current)==null?void 0:ut.ip_limit,ip_bind:(vt=jo.current)==null?void 0:vt.ip_bind_type})),gt=yield(0,L.CD)(qn(Jn({},Gt),{ip:$a.current})).catch(()=>To(!1)),gt.status===-1){ln();return}if((Ft=gt==null?void 0:gt.exercise)!=null&&Ft.only_on_client&&!(0,Z.WX)()){D.ZP.warning("\u8BF7\u7528\u5BA2\u6237\u7AEF\u4F5C\u7B54"),ln();return}if((gt==null?void 0:gt.status)===-5){_t({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:qn(Jn({},jo.current),{id:Gt.categoryId,errorMessage:gt==null?void 0:gt.message})}});return}gt!=null&>.exercise&&(gt.exercise.user_exercise_status=0),gt!=null&>.exercise&&(gt.exercise.exercise_status=2),(jt=gt==null?void 0:gt.exercise_question_types)==null||jt.map(Er=>{var kr;(Er==null?void 0:Er.question_type)<3&&((kr=Er==null?void 0:Er.items)==null||kr.map(vo=>{vo.user_answer=vo.question_choices.filter(fo=>fo.user_answer_boolean).map(fo=>fo.choice_id)}))})}if(!(($t=gt==null?void 0:gt.exercise)!=null&&$t.can_start)&&(gt!=null&>.exercise)){window.location.href=`/classrooms/${Gt.coursesId}/exercise/${Gt.categoryId}/users/${Gt.login}/check`;return}((nn=gt.exercise)==null?void 0:nn.commit_status)===0&&!Qa.current&&(Qa.current=!0,(0,Z.G5)(Go,gt==null?void 0:gt.exercise)),(at=gt==null?void 0:gt.exercise)!=null&&at.left_time&&setTimeout(()=>{ul(N.red)},(((it=gt==null?void 0:gt.exercise)==null?void 0:it.left_time)-300>0?((Lt=gt==null?void 0:gt.exercise)==null?void 0:Lt.left_time)-300:0)*1e3),((Lr=gt==null?void 0:gt.exercise)==null?void 0:Lr.take_photo)>=((rn=gt==null?void 0:gt.exercise)==null?void 0:rn.photo_count)}if(To(!1),yield It(gt),gt){if((jn=gt==null?void 0:gt.exercise)!=null&&jn.question_random||(Mr=gt==null?void 0:gt.exercise)!=null&&Mr.choice_random){let Er=1;gt.exercise.question_random=(uo=gt==null?void 0:gt.exercise_question_types)==null?void 0:uo.map(kr=>{var vo,fo;return(vo=gt==null?void 0:gt.exercise)!=null&&vo.choice_random&&((kr.question_type===0||kr.question_type===1)&&kr.items.map(ho=>(ho.question_choices=(0,Z.M2)(ho.question_choices,oo),ho)),kr.question_type===7&&kr.items.forEach(ho=>{ho.sub_exercise_questions.forEach(oa=>{oa.question_choices&&(oa.question_choices=(0,Z.M2)(oa.question_choices,oo))})})),(fo=gt==null?void 0:gt.exercise)!=null&&fo.question_random&&(kr.items=(0,Z.M2)(kr.items,oo)),kr.items.map(ho=>(ho.question_num=Er,Er++,ho)),kr})}gt.exercise_types=(gt==null?void 0:gt.exercise_types)||((ra=gt==null?void 0:gt.exercise_scores)==null?void 0:ra.exercise_types),gt.question_status=gt.question_status||cn((gt==null?void 0:gt.exercise_question_types)||[]),wo(gt),re((nr=gt==null?void 0:gt.exercise)==null?void 0:nr.forbid_copy)}return gt}),cn=c=>{let ie=[];return c.forEach(Je=>{ie=ie.concat(Je.items)}),ie=ie.map(Je=>({ques_status:Je==null?void 0:Je.ques_status,score_status:Je==null?void 0:Je.score_status,question_num:Je==null?void 0:Je.question_num,ques_id:Je==null?void 0:Je.question_id})),ie};(0,t.useEffect)(()=>{var c,ie,Je;((c=J.exercise)==null?void 0:c.left_time)===0&&Hn(),(ie=J.exercise)!=null&&ie.left_time&&xa(Date.now()+((Je=J==null?void 0:J.exercise)==null?void 0:Je.left_time)*1e3)},[(Mn=J.exercise)==null?void 0:Mn.left_time]);const Xt=()=>{var c;((c=J==null?void 0:J.exercise)==null?void 0:c.exercise_status)===3?n.default.confirm({width:530,title:"\u63D0\u793A",icon:null,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:S.createElement("div",null,"\u622A\u6B62\u65F6\u95F4\u5DF2\u5230\uFF0C\u65E0\u6CD5\u6253\u56DE\u8BD5\u5377",S.createElement("br",null),"\u8BF7\u5728\u4FEE\u6539\u622A\u6B62\u65F6\u95F4\u540E\u518D\u64CD\u4F5C")}):n.default.confirm({width:530,title:"\u63D0\u793A",icon:null,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:S.createElement("div",null,"\u5B66\u751F\u5C06\u5F97\u5230\u4E00\u6B21\u91CD\u65B0\u7B54\u9898\u7684\u673A\u4F1A\uFF0C\u73B0\u6709\u7684\u7B54\u9898\u60C5\u51B5\u5C06\u88AB\u6E05\u7A7A",S.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u56DE\u9000TA\u7684\u8BD5\u5377\u7B54\u9898"),onOk:()=>En(void 0,null,function*(){var ie;const Je=yield(0,L.q6)({categoryId:Gt.categoryId,user_ids:[(ie=J==null?void 0:J.exercise_answer_user)==null?void 0:ie.user_id]});Je&&(D.ZP.info(Je==null?void 0:Je.message),ln())})})},ln=()=>{if((0,Z.G5)(Go),(0,Z.WX)()){window.location.href=(0,Z.Ll)()?"/":"/classrooms/examList";return}window.location.href=(0,Z.Ll)()?"/":`/classrooms/${Gt.coursesId}/exercise/${Gt.categoryId}/detail`},Bn=(c=!1)=>En(void 0,null,function*(){const ie=yield(0,L.PT)(qn(Jn({},Gt),{refresh:c}));return ie!=null&&ie.has_time?(xa(Date.now()+(ie==null?void 0:ie.left_time)*1e3),wo(Je=>qn(Jn({},Je),{exercise:qn(Jn({},Je.exercise),{left_time:ie==null?void 0:ie.left_time})})),!0):(Bt(),!1)}),Bt=()=>En(void 0,null,function*(){if(Xo.current)return;Xo.current=!0;const c=yield(0,L.VL)({categoryId:Gt.categoryId,commit_method:2});if(_o(!1),Ro(!1),(c==null?void 0:c.status)===0&&((0,Z.G5)(Go),n.default.info({width:530,title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",zIndex:1100,content:S.createElement("div",null,"\u7B54\u9898\u7ED3\u675F\u4E86\uFF0C\u7CFB\u7EDF\u5DF2\u81EA\u52A8\u63D0\u4EA4\u8BD5\u5377",S.createElement("br",null),"\u4E0D\u80FD\u518D\u4FEE\u6539\u7B54\u9898"),onOk:()=>En(void 0,null,function*(){ln()})}),D.ZP.info(c==null?void 0:c.message)),(c==null?void 0:c.status)===-3){Xo.current=!1;const ie=parseInt(c==null?void 0:c.message);J.exercise.left_time=ie,wo(Jn({},J))}}),Wt=c=>En(void 0,null,function*(){const ie=yield(c.is_jupyter||c.is_jupyter_lab?Y.BK:Y.Ir)({id:c.shixun_identifier});(ie!=null&&ie.game_identifier||ie!=null&&ie.identifier)&&(re(!1),c.is_jupyter_lab||c.is_jupyter?Wo(`/tasks/${ie.identifier}/jupyter?type=exercises&exercisesId=${Gt.categoryId}&coursesId=${Gt.coursesId}&login=${Gt.login}&questionId=${c.question_id}&isFullScreen=${(0,x.vp)()}${Pa.current||""}&ip_limit=${ft==null?void 0:ft.ip_limit}&ip_bind=${ft==null?void 0:ft.ip_bind}&ip_bind_type=${ft==null?void 0:ft.ip_bind_type}`):Wo(`/tasks/${ie.game_identifier}?type=exercises&exercisesId=${Gt.categoryId}&coursesId=${Gt.coursesId}&login=${Gt.login}&questionId=${c.question_id}&isFullScreen=${(0,x.vp)()}${Pa.current||""}&ip_limit=${ft==null?void 0:ft.ip_limit}&ip_bind=${ft==null?void 0:ft.ip_bind}&ip_bind_type=${ft==null?void 0:ft.ip_bind_type}`),Ea("block")),(ie==null?void 0:ie.status)===-3?(0,Z.eF)():(ie==null?void 0:ie.status)===2?Tt(ie==null?void 0:ie.message,c.question_id,c.is_jupyter_lab,c.is_jupyter):(ie==null?void 0:ie.status)===3&&wt(ie==null?void 0:ie.message)}),Tt=(c,ie,Je,lt)=>{c=c!=null&&c.includes(".json")?c:`${c}.json`,n.default.confirm({centered:!0,title:"\u63D0\u793A",icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:S.createElement("div",null,"\u5B9E\u8BAD\u5DF2\u7ECF\u66F4\u65B0\u4E86\uFF0C\u6B63\u5728\u4E3A\u60A8\u91CD\u7F6E!"),onOk:()=>En(void 0,null,function*(){const Qe=yield(0,L.L8)({url:c});if(!Qe)return;D.ZP.success("\u91CD\u7F6E\u6210\u529F\uFF0C\u6B63\u5728\u8FDB\u5165\u5B9E\u8DF5\u9879\u76EE\uFF01");const ut=yield(0,Y.Ir)({id:Qe.shixun_identifier});if(ut!=null&&ut.game_identifier){Wt({shixun_identifier:ut==null?void 0:ut.game_identifier,question_id:ie,is_jupyter_lab:Je,is_jupyter:lt});return}(ut==null?void 0:ut.status)===2?Tt(ut==null?void 0:ut.message,ie,Je,lt):(ut==null?void 0:ut.status)===3&&wt(ut==null?void 0:ut.message)})})},wt=c=>{n.default.confirm({centered:!0,title:"\u63D0\u793A",icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:S.createElement("div",null,"\u76EE\u524D\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5C1A\u5728\u5185\u6D4B\u4E2D\uFF0C\u5C06\u4E8E",c,"\u4E4B\u540E\u5F00\u653E\uFF0C\u8C22\u8C22\uFF01")})},kt=c=>En(void 0,null,function*(){var ie;const Je=yield(0,L.o3)({exercise_user_id:(ie=Zt.exerciseUserInfo)==null?void 0:ie.exercise_user_id,shixun_id:c.shixun_id});let lt;Je!=null&&Je.redo?lt=n.default.confirm({width:530,title:"\u63D0\u793A",icon:null,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u518D\u60F3\u60F3",content:S.createElement("div",null,"\u60A8\u4E4B\u524D\u5DF2\u7ECF\u6311\u6218\u8FC7\u8BE5\u5B9E\u8BAD\uFF0C\u8003\u8BD5\u8FC7\u7A0B\u4E2D\u9700\u8981\u91CD\u65B0\u6311\u6218"),onCancel:()=>{lt.destroy()},onOk:()=>En(void 0,null,function*(){const Qe=yield(0,L.L8)({id:Je==null?void 0:Je.myshixun_identifier,url:Je==null?void 0:Je.url});if(Qe){Oe();const ut=(0,Le.cloneDeep)(J==null?void 0:J.exercise_question_types),vt=ut==null?void 0:ut.findIndex(jt=>jt.question_type===5);ut[vt].items.find(jt=>jt.question_id===c.question_id).redo=!1,ut[vt].items.find(jt=>jt.question_id===c.question_id).shixun_identifier=Qe.shixun_identifier,J.exercise_question_types=ut,wo(J);const Ft=qn(Jn({},c),{shixun_identifier:Qe.shixun_identifier});Wt(Ft)}})}):(Oe(),Wt(c))}),xn=c=>En(void 0,null,function*(){if(c.hack_identifier){const ie=yield(0,L.nF)({id:c.hack_identifier});(ie==null?void 0:ie.status)===0&&(Oe(),re(!1),Wo(`/myproblems/${ie.identifier}?type=exercises&exercisesId=${Gt.categoryId}&coursesId=${Gt.coursesId}&login=${Gt.login}&questionId=${c.question_id}${Pa.current||""}`),Ea("block"))}}),Tn=(c,ie,Je,lt,Qe,ut,vt)=>En(void 0,null,function*(){var Ft,jt;ko(!1),vt||To(!0);let $t,nn={questionId:c,exercise_choice_id:ie,answer_text:Je};if(((ft==null?void 0:ft.ip_limit)==="inner"||ft.ip_bind_type)&&($t=yield(0,de.y)({ip_limit:ft==null?void 0:ft.ip_limit,ip_bind:ft==null?void 0:ft.ip_bind_type})),Qe&&(nn.kp_content=Qe),Qe&&(nn.kp_clazz=ut),!c){console.error("handleSave no questionId params");return}nn.ip=$t;const at=yield(0,L.oX)(nn);if(To(!1),typeof at=="object")return(Ft=at==null?void 0:at.alert)!=null&&Ft.length&&((jt=at==null?void 0:at.alert)==null||jt.map(it=>{n.default.warn({title:"\u63D0\u793A",autoFocusButton:null,content:it})})),(at==null?void 0:at.status)===0?(lt&<(),$o()):(at==null?void 0:at.status)===-1?setTimeout(()=>{ln()},1e3):(at==null?void 0:at.status)===-2?Sa(at):(at==null?void 0:at.status)===-3?(at.status=-1,Sa(at)):(at==null?void 0:at.status)===-4?$o():(at==null?void 0:at.status)===-5?_t({type:"exercise/setActionTabs",payload:{key:"student-unlock",exerciseParams:qn(Jn({},ft),{id:Gt.categoryId,errorMessage:at==null?void 0:at.message})}}):D.ZP.warning(at.message||"\u8BD5\u5377\u5DF2\u622A\u6B62\uFF0C\u5DF2\u81EA\u52A8\u4EA4\u5377"),at}),Nn=c=>En(void 0,null,function*(){var ie,Je,lt,Qe;const ut=yield(0,L.PT)(Jn({},Gt));if((ut==null?void 0:ut.status)===-4){n.default.info({width:500,centered:!0,icon:null,title:"\u63D0\u793A",content:ut==null?void 0:ut.message,okText:"\u6211\u77E5\u9053\u4E86"});return}const vt=ut!=null&&ut.left_time?Date.now()+(ut==null?void 0:ut.left_time)*1e3:null;(wa==null?void 0:wa.question_type)==8&&!qo&&(yield ct(),ko(!0));const Ft=yield(0,L.Vj)({id:Gt.categoryId});if(!Ft)return;let jt;if(console.log("res===",Ft,wa,qo),Ft.question_undo!==0||Ft.oj_undo!==0){let $t;if(Ft.question_undo>0){const nn=S.createElement("span",null,"\u6709",S.createElement("span",{className:N.orangeNum},Ft.question_undo),"\u9898\u672A\u5B8C\u6210");if(Ft.oj_undo>0||Ft.shixun_undo>0){const it=[{type:((Je=(ie=J==null?void 0:J.exercise_question_types)==null?void 0:ie.find(Lt=>Lt.question_type==6))==null?void 0:Je.name)||"\u7F16\u7A0B\u9898",num:Ft.oj_undo},{type:((Qe=(lt=J==null?void 0:J.exercise_question_types)==null?void 0:lt.find(Lt=>Lt.question_type==5))==null?void 0:Qe.name)||"\u5B9E\u8BAD\u9898",num:Ft.shixun_undo}].filter(Lt=>Lt.num>0);$t=S.createElement("div",null,nn,"\uFF08\u5176\u4E2D\u6709",it.map((Lt,Lr)=>S.createElement("span",null,S.createElement("span",{className:N.orangeNum},Lt==null?void 0:Lt.num),"\u4E2A",Lt==null?void 0:Lt.type,Lr!==(it==null?void 0:it.length)-1?"\u3001":"")),"\uFF09")}}jt=n.default.confirm({width:530,title:"\u63D0\u793A",icon:null,centered:!0,keyboard:!1,okText:c?"\u77E5\u9053\u4E86":"\u786E\u8BA4\u4EA4\u5377",cancelText:"\u53D6\u6D88",content:S.createElement("div",null,$t,c?`\u5728${h()(Ft.end_time).format("YYYY-MM-DD HH:mm")}\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898`:vt?`\u4F60\u672C\u573A\u8003\u8BD5\u5269\u4F59\u65F6\u95F4\u8FD8\u6709${(0,Z.li)((vt-new Date().getTime())/1e3)} \uFF0C\u786E\u8BA4\u63D0\u524D\u4EA4\u5377\u5417\uFF1F`:"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:()=>En(void 0,null,function*(){_o(!1),Ro(!1),c?ft!=null&&ft.screen_open?D.ZP.success("\u4FDD\u5B58\u6210\u529F"):ln():(na(!0),jt.update({cancelButtonProps:{disabled:!0}}),yield Hn())})})}else jt=n.default.confirm({width:530,title:"\u63D0\u793A",icon:null,centered:!0,keyboard:!1,okText:c?"\u77E5\u9053\u4E86":"\u786E\u8BA4\u4EA4\u5377",cancelText:"\u53D6\u6D88",content:S.createElement("div",null,c?`\u5728${h()(Ft.end_time).format("YYYY-MM-DD HH:mm")}\u4E4B\u524D\uFF0C\u5141\u8BB8\u4FEE\u6539\u7B54\u9898`:vt?`\u4F60\u672C\u573A\u8003\u8BD5\u5269\u4F59\u65F6\u95F4\u8FD8\u6709${(0,Z.li)((vt-new Date().getTime())/1e3)} \uFF0C\u786E\u8BA4\u63D0\u524D\u4EA4\u5377\u5417\uFF1F`:"\u63D0\u4EA4\u540E\u65E0\u6CD5\u518D\u4FEE\u6539\u7B54\u9898\uFF0C\u662F\u5426\u786E\u8BA4\u63D0\u4EA4\uFF1F"),onOk:()=>En(void 0,null,function*(){_o(!1),Ro(!1),c?ft!=null&&ft.screen_open?D.ZP.success("\u4FDD\u5B58\u6210\u529F"):ln():(na(!0),jt.update({cancelButtonProps:{disabled:!0}}),yield Hn())})})}),fn=c=>S.createElement("div",null,S.createElement(w.Z,{strokeColor:{from:"#3061D0",to:"#63E0FB"},status:"active",percent:c}),S.createElement("div",{className:"c-grey-c tc mt10 mb20"},"\u6B63\u5728\u5224\u5206\u4E2D\u2026")),Wn=()=>{let c=0,ie=n.default.info({title:"\u4EA4\u5377\u4E2D",icon:null,className:"modal-footer-none",content:fn(c)}),Je=setInterval(()=>{c<=100?(c+=2,ie.update({content:fn(c)})):(ie.destroy(),clearInterval(Je))},50)},Hn=()=>En(void 0,null,function*(){if(yl||Xo.current)return;Xo.current=!0;const c=yield(0,L.VL)({categoryId:Gt.categoryId,commit_method:1});yield _t({type:"exercise/setActionTabs",payload:Jn({},{removeEventListenerExitScreen:!0})}),na(!1),(c==null?void 0:c.status)===0&&(Wn(),Ka(!1),(0,Z.G5)(Go),setTimeout(()=>{var ie,Je,lt,Qe,ut;n.default.info({centered:!0,title:"\u4EA4\u5377\u6210\u529F",className:`${N.commitModal}`,width:520,icon:null,content:S.createElement("div",null,S.createElement(C.Z,{className:"mb20",gutter:20},S.createElement(v.Z,{span:12,className:N.commitItem},S.createElement("span",{className:N.commitInfoLabel},"\u59D3\u540D"),S.createElement("span",{className:N.commitInfoValue,title:(ie=J==null?void 0:J.exercise)==null?void 0:ie.user_name},((Je=J==null?void 0:J.exercise)==null?void 0:Je.user_name)||"- -")),S.createElement(v.Z,{span:12,className:N.commitItem},S.createElement("span",{className:N.commitInfoLabel},"\u4F5C\u7B54\u65F6\u957F"),S.createElement("span",{className:N.commitInfoValue},(lt=c==null?void 0:c.data)==null?void 0:lt.user_exercise_time))),S.createElement(C.Z,{gutter:20},S.createElement(v.Z,{span:12,className:N.commitItem},S.createElement("span",{className:N.commitInfoLabel},"\u5B66\u53F7"),S.createElement("span",{className:N.commitInfoValue},((Qe=J==null?void 0:J.exercise)==null?void 0:Qe.student_id)||"- -")),S.createElement(v.Z,{span:12,className:N.commitItem},S.createElement("span",{className:N.commitInfoLabel},"\u4EA4\u5377\u65F6\u95F4"),S.createElement("span",{className:N.commitInfoValue},(ut=c==null?void 0:c.data)==null?void 0:ut.commit_time)))),okText:"\u786E\u5B9A",maskClosable:!1,keyboard:!1,onOk:()=>{(0,x.BU)(),ln()}})},3e3))}),Ir=(c,ie,Je,lt,Qe)=>En(void 0,null,function*(){Tn(ie,c,null,()=>{var ut,vt,Ft,jt;if(lt.user_answer=[],lt.user_answer.push(c),Qe!=null&&Qe.question_id){let $t=(ut=Qe==null?void 0:Qe.sub_exercise_questions)==null?void 0:ut.filter(it=>{var Lt;return((Lt=it.user_answer)==null?void 0:Lt.length)===0});const nn=(vt=Qe==null?void 0:Qe.sub_exercise_questions)==null?void 0:vt.filter(it=>it.question_type==3),at=nn.length>0?nn.every(it=>{var Lt;return(it==null?void 0:it.multi_count)==((Lt=it==null?void 0:it.user_answer)==null?void 0:Lt.length)})?1:nn.some(it=>{var Lt;return(it==null?void 0:it.multi_count)>((Lt=it==null?void 0:it.user_answer)==null?void 0:Lt.length)})?2:0:1;J.question_status.find(it=>it.ques_id===(Qe==null?void 0:Qe.question_id)).ques_status=($t==null?void 0:$t.length)===((Ft=Qe==null?void 0:Qe.sub_exercise_questions)==null?void 0:Ft.length)?0:($t==null?void 0:$t.length)>0&&($t==null?void 0:$t.length)<((jt=Qe==null?void 0:Qe.sub_exercise_questions)==null?void 0:jt.length)?2:at}else J.question_status.find($t=>$t.ques_id===ie).ques_status=c?1:0;wo(Jn({},J))})}),cr=(c,ie,Je,lt,Qe)=>En(void 0,null,function*(){Tn(lt.question_id,c,null,()=>{var ut,vt,Ft;lt.user_answer=[],lt.user_answer.push(c),Qe.user_answer=[...lt.user_answer];let jt=(ut=Qe==null?void 0:Qe.sub_exercise_questions)==null?void 0:ut.filter($t=>{var nn;return((nn=$t.user_answer)==null?void 0:nn.length)===0});J.question_status.find($t=>$t.ques_id===ie).ques_status=(jt==null?void 0:jt.length)===((vt=Qe==null?void 0:Qe.sub_exercise_questions)==null?void 0:vt.length)?0:(jt==null?void 0:jt.length)>0&&(jt==null?void 0:jt.length)<((Ft=Qe==null?void 0:Qe.sub_exercise_questions)==null?void 0:Ft.length)?2:1,wo(Jn({},J))})}),Wr=(c,ie,Je,lt)=>{c!=null&&c.length&&Tn(ie,c,null,()=>{var Qe,ut,vt,Ft;if(Je.user_answer=c,lt!=null&<.question_id){let jt=(Qe=lt==null?void 0:lt.sub_exercise_questions)==null?void 0:Qe.filter(at=>{var it;return((it=at.user_answer)==null?void 0:it.length)===0});const $t=(ut=lt==null?void 0:lt.sub_exercise_questions)==null?void 0:ut.filter(at=>at.question_type==3),nn=$t.length>0?$t.every(at=>{var it;return(at==null?void 0:at.multi_count)==((it=at==null?void 0:at.user_answer)==null?void 0:it.length)})?1:$t.some(at=>{var it;return(at==null?void 0:at.multi_count)>((it=at==null?void 0:at.user_answer)==null?void 0:it.length)})?2:0:1;J.question_status.find(at=>at.ques_id===(lt==null?void 0:lt.question_id)).ques_status=(jt==null?void 0:jt.length)===((vt=lt==null?void 0:lt.sub_exercise_questions)==null?void 0:vt.length)?0:(jt==null?void 0:jt.length)>0&&(jt==null?void 0:jt.length)<((Ft=lt==null?void 0:lt.sub_exercise_questions)==null?void 0:Ft.length)?2:nn}else J.question_status.find(jt=>jt.ques_id===ie).ques_status=c!=null&&c.length?1:0;wo(Jn({},J))})},Ur=(c,ie,Je,lt,Qe,ut)=>En(void 0,null,function*(){return c.replaceAll(" ","")?yield Tn(Je,ie,c,()=>{var Ft,jt,$t,nn;let at={choice_id:ie,answer_text:c};if(Qe.user_answer.filter(it=>it.choice_id!=ie)?Qe.user_answer.splice(ie-1,1,at):Qe.user_answer.push(at),ut!=null&&ut.question_id){let it=(Ft=ut==null?void 0:ut.sub_exercise_questions)==null?void 0:Ft.filter(rn=>{var jn;return((jn=rn.user_answer)==null?void 0:jn.length)===0});const Lt=(jt=ut==null?void 0:ut.sub_exercise_questions)==null?void 0:jt.filter(rn=>rn.question_type==3),Lr=Lt.length>0?Lt.every(rn=>{var jn;return(rn==null?void 0:rn.multi_count)==((jn=rn==null?void 0:rn.user_answer)==null?void 0:jn.length)})?1:Lt.some(rn=>{var jn;return(rn==null?void 0:rn.multi_count)>((jn=rn==null?void 0:rn.user_answer)==null?void 0:jn.length)})?2:0:1;J.question_status.find(rn=>rn.ques_id===(ut==null?void 0:ut.question_id)).ques_status=(it==null?void 0:it.length)===(($t=ut==null?void 0:ut.sub_exercise_questions)==null?void 0:$t.length)?0:(it==null?void 0:it.length)>0&&(it==null?void 0:it.length)<((nn=ut==null?void 0:ut.sub_exercise_questions)==null?void 0:nn.length)?2:Lr}else J.question_status.find(it=>it.ques_id===Je).ques_status=lt.every(it=>!!it.answer_text)?1:J.question_status.find(it=>it.ques_id===Je).ques_status=lt.some(it=>!!it.answer_text)?2:0;wo(Jn({},J))}):($o(),{status:-4,message:"\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"})}),Rn=(c,ie,Je,lt,Qe)=>En(void 0,null,function*(){return c.replaceAll(" ","")?yield Tn(Je,ie,c,()=>{J.question_status.find(Ft=>Ft.ques_id===Je).ques_status=lt.every(Ft=>!!Ft.value)?1:J.question_status.find(Ft=>Ft.ques_id===Je).ques_status=lt.some(Ft=>!!Ft.value)?2:0;let vt={choice_id:ie,answer_text:c};Qe.user_answer.filter(Ft=>Ft.choice_id!=ie)?Qe.user_answer.splice(ie-1,1,vt):Qe.user_answer.push(vt),Qe.repeat_answer||(Qe.israp=!0),wo(Jn({},J))}):($o(),{status:-4,message:"\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"})}),qr=(c,ie,Je,lt,Qe)=>{if(!c.replaceAll(" ","")){$o();return}Tn(ie,null,c,()=>{var ut,vt,Ft,jt;if(Je.user_answer=[],Je.user_answer.push(c),Qe!=null&&Qe.question_id){let $t=(ut=Qe==null?void 0:Qe.sub_exercise_questions)==null?void 0:ut.filter(it=>{var Lt;return((Lt=it.user_answer)==null?void 0:Lt.length)===0});const nn=(vt=Qe==null?void 0:Qe.sub_exercise_questions)==null?void 0:vt.filter(it=>it.question_type==3),at=nn.length>0?nn.every(it=>{var Lt;return(it==null?void 0:it.multi_count)==((Lt=it==null?void 0:it.user_answer)==null?void 0:Lt.length)})?1:nn.some(it=>{var Lt;return(it==null?void 0:it.multi_count)>((Lt=it==null?void 0:it.user_answer)==null?void 0:Lt.length)})?2:0:1;J.question_status.find(it=>it.ques_id===(Qe==null?void 0:Qe.question_id)).ques_status=($t==null?void 0:$t.length)===((Ft=Qe==null?void 0:Qe.sub_exercise_questions)==null?void 0:Ft.length)?0:($t==null?void 0:$t.length)>0&&($t==null?void 0:$t.length)<((jt=Qe==null?void 0:Qe.sub_exercise_questions)==null?void 0:jt.length)?2:at}else J.question_status.find($t=>$t.ques_id===ie).ques_status=c?1:0;wo(Jn({},J))},void 0,void 0,lt)},rr=(c,ie,Je)=>{var lt,Qe,ut,vt,Ft,jt,$t;let nn="";const at=(c==null?void 0:c.question_type)===0||(c==null?void 0:c.question_type)===1;at&&((lt=c==null?void 0:c.question_choices)==null||lt.forEach((Lt,Lr)=>{Lt.standard_boolean&&(nn=nn+lr[Lr])}));const it=((Qe=J==null?void 0:J.exercise)==null?void 0:Qe.user_exercise_status)===1||!c.repeat_answer&&((ut=c==null?void 0:c.user_answer)==null?void 0:ut.length)>0&&c.ques_status!==0;return S.createElement("div",null,S.createElement("div",{className:N.baseMargin},S.createElement(B.ZP.Group,{disabled:it,defaultValue:(vt=c==null?void 0:c.user_answer)==null?void 0:vt[0],onChange:Lt=>Ir(Lt.target.value,c==null?void 0:c.question_id,ie,c,Je),className:c.user_score&&`edu-radio-${c.user_score===c.question_score?"green":"red"}`},(Ft=c==null?void 0:c.question_choices)==null?void 0:Ft.map((Lt,Lr)=>{const jn=c.question_type==2?"":`${lr[Lr]}.`;return S.createElement("div",{className:N.answerWrap,key:Lr},S.createElement(B.ZP,{className:N.noWrap,value:Lt==null?void 0:Lt.choice_id},S.createElement(C.Z,{wrap:!1,align:"middle"},S.createElement(v.Z,null,S.createElement("span",{style:{color:"#333333"},className:"font16 mr3"},jn)),S.createElement(v.Z,null,S.createElement(ge.Z,{className:N.renderHtml,value:Lt==null?void 0:Lt.choice_text})))))}))),((0,ae.GJ)()||(0,ae.dE)()&&((jt=J==null?void 0:J.exercise)==null?void 0:jt.user_exercise_status)>0&&(($t=J==null?void 0:J.exercise)==null?void 0:$t.open_score))&&S.createElement(C.Z,{justify:"end",className:"mb20",align:"middle"},S.createElement("span",{className:"font14",style:{color:"#6A7283"}},"\u5F97\u5206"),S.createElement("span",{className:"font14 ml10"},(c==null?void 0:c.user_score)&&S.createElement("span",null,S.createElement("span",{className:Pn[Number(c==null?void 0:c.answer_status)]||"c-orange-ff9"},c==null?void 0:c.user_score),S.createElement("span",{style:{marginLeft:5,color:"#6A7283"}},"\u5206")),!(c!=null&&c.user_score)&&S.createElement("span",{className:"c-red"},"\u672A\u8BC4"))),(c==null?void 0:c.standard_answer_show)&&S.createElement("div",{className:N.analysisWrap},S.createElement("div",{className:N.greyBg},S.createElement(C.Z,{className:"mb20"},S.createElement(v.Z,{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u7B54\u6848\u3011"),S.createElement(v.Z,null,at?nn:c==null?void 0:c.standard_answer_show)),S.createElement(C.Z,{align:"middle"},S.createElement("span",{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u89E3\u6790\u3011"),S.createElement(ge.Z,{className:N.renderHtml,value:c==null?void 0:c.analysis})))))},Zr=(c,ie,Je)=>{var lt,Qe;const ut=((lt=J==null?void 0:J.exercise)==null?void 0:lt.user_exercise_status)===1||!c.repeat_answer&&c.ques_status!==0;return S.createElement("div",null,(Qe=c==null?void 0:c.sub_exercise_questions)==null?void 0:Qe.map((vt,Ft)=>{var jt;let $t="";return(jt=vt==null?void 0:vt.question_choices)==null||jt.forEach((nn,at)=>{nn.standard_boolean&&($t=$t+lr[at])}),S.createElement("div",{className:`${N.baseMargin} ${N.singleItem} mb20`,key:Ft},S.createElement("div",{style:{display:"flex",alignItems:"baseline",marginBottom:40}},S.createElement("span",{style:{flexShrink:0,color:"#999999"},className:"font14"},"\uFF08",vt==null?void 0:vt.question_score,"\u5206\uFF09"),S.createElement("span",{style:{flexShrink:0,marginRight:6},className:"font16"},Je+1+"."+(Ft+1)),S.createElement(ge.Z,{value:vt==null?void 0:vt.question_title})),((vt==null?void 0:vt.question_type)==0||(vt==null?void 0:vt.question_type)==2)&&rr(vt,vt==null?void 0:vt.question_type,c),(vt==null?void 0:vt.question_type)==1&&Br(vt,vt==null?void 0:vt.question_type,c),(vt==null?void 0:vt.question_type)==3&&po(vt,vt==null?void 0:vt.question_type,c),(vt==null?void 0:vt.question_type)==4&&hn(vt,vt==null?void 0:vt.question_type,c))}))};console.log("----",J);const Br=(c,ie,Je)=>{var lt,Qe,ut,vt,Ft,jt;let $t="";const nn=(c==null?void 0:c.question_type)===0||(c==null?void 0:c.question_type)===1;nn&&((lt=c==null?void 0:c.question_choices)==null||lt.forEach((it,Lt)=>{it.standard_boolean&&($t=$t+lr[Lt])}));const at=((Qe=J==null?void 0:J.exercise)==null?void 0:Qe.user_exercise_status)===1||!c.repeat_answer&&((ut=c==null?void 0:c.user_answer)==null?void 0:ut.length)>0&&c.ques_status!==0;return S.createElement("div",null,S.createElement("div",{className:N.baseMargin},S.createElement(T.default.Group,{disabled:at,defaultValue:c==null?void 0:c.user_answer,style:{flexDirection:"column"},onChange:it=>Wr(it,c==null?void 0:c.question_id,c,Je),className:c.user_score&&`edu-checkbox-${c.user_score===c.question_score?"green":"red"}`},(vt=c==null?void 0:c.question_choices)==null?void 0:vt.map((it,Lt)=>{const Lr=`${lr[Lt]}.`;return S.createElement("div",{className:N.answerWrap},S.createElement(T.default,{value:it==null?void 0:it.choice_id},S.createElement(C.Z,{wrap:!1,align:"middle"},S.createElement(v.Z,null,S.createElement("span",{style:{color:"#333333",whiteSpace:"nowrap"},className:"font16 mr3"},Lr)),S.createElement(v.Z,null,S.createElement(ge.Z,{className:N.renderHtml,value:it==null?void 0:it.choice_text})))))}))),((0,ae.GJ)()||(0,ae.dE)()&&((Ft=J==null?void 0:J.exercise)==null?void 0:Ft.user_exercise_status)>0&&((jt=J==null?void 0:J.exercise)==null?void 0:jt.open_score))&&S.createElement(C.Z,{justify:"end",className:"mb20",align:"middle"},S.createElement("span",{className:"font14",style:{color:"#6A7283"}},"\u5F97\u5206"),S.createElement("span",{className:"font14 ml10"},(c==null?void 0:c.user_score)&&S.createElement("span",null,S.createElement("span",{className:Pn[Number(c==null?void 0:c.answer_status)]||"c-orange-ff9"},c==null?void 0:c.user_score),S.createElement("span",{style:{marginLeft:5,color:"#6A7283"}},"\u5206")),!(c!=null&&c.user_score)&&S.createElement("span",{className:"c-red"},"\u672A\u8BC4"))),(c==null?void 0:c.standard_answer_show)&&S.createElement("div",{className:N.analysisWrap},S.createElement("div",{className:N.greyBg},S.createElement(C.Z,{className:"mb20"},S.createElement(v.Z,{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u7B54\u6848\u3011"),S.createElement(v.Z,null,nn?$t:c==null?void 0:c.standard_answer_show)),S.createElement(C.Z,{align:"middle",className:"mt15"},S.createElement("span",{className:"font14 mr10",style:{color:"#6A7283"}},"\u3010\u89E3\u6790\u3011"),S.createElement(ge.Z,{className:N.renderHtml,value:c==null?void 0:c.analysis})))))},po=(c,ie,Je)=>S.createElement(br,{item:c,sign:$n,answerData:J,onBlur:(lt,Qe,ut)=>En(void 0,null,function*(){return yield Ur(lt,Qe,c==null?void 0:c.question_id,ut,c,Je)})}),hn=(c,ie,Je)=>Lo?S.createElement(Be,{item:c,answerData:J,onBlur:(lt,Qe,ut)=>Tn(c==null?void 0:c.question_id,null,lt,void 0,Qe,ut),isEducation:Lo}):S.createElement(Ye,{item:c,answerData:J,onBlur:(lt,Qe)=>qr(lt,c==null?void 0:c.question_id,c,Qe,Je),isEducation:Lo,sign:$n}),pn=(c,ie)=>S.createElement(De,{item:c,answerData:J,exerciseId:Gt.categoryId,coursesId:Gt.coursesId,answerCheckData:ft,check:!!No.get("check")}),vn=(c,ie)=>S.createElement(Pt,{item:c,answerData:J}),en=(c,ie)=>S.createElement(H,{setIsSubmitCode:ko,item:c,sign:$n,answerData:J,onBlur:(Je,lt,Qe)=>En(void 0,null,function*(){return yield Rn(Je,lt,c==null?void 0:c.question_id,Qe,c)})}),tr=c=>{if(pl){const ie=n.default.confirm({centered:!0,icon:null,title:"\u63D0\u793A",content:S.createElement("span",{className:"c-red"},"\u4F60\u7684\u7B54\u9898\u5185\u5BB9\u672A\u63D0\u4EA4\u8BC4\u6D4B\uFF0C\u53EF\u80FD\u4F1A\u5BFC\u81F4\u8BE5\u9898\u65E0\u6CD5\u83B7\u5F97\u5206\u6570"),okText:"\u7ACB\u5373\u63D0\u4EA4",cancelText:"\u5FFD\u7565",onCancel:()=>{Ya(!1),c==null||c()},onOk:()=>{Ya(!1),hr.Z.publish("BFill:Submit",{})}});return}c==null||c()};(0,t.useEffect)(()=>{const c=hr.Z.subscribe("BFill:Submit:Change",({value:ie})=>{Ya(ie)});return()=>{c()}},[]);const tn=(c,ie,Je)=>{var lt,Qe;const ut=(lt=J==null?void 0:J.exercise_question_types)==null?void 0:lt.find(vt=>vt.question_type===ie);return S.createElement("div",{className:N.answerSheetWrap},S.createElement("div",{className:N.answerSheetQuestionTitle,onClick:()=>{Bo[ie]=!Bo[ie],ga(Jn({},Bo))}},!Bo[ie]&&S.createElement(F.Z,null),Bo[ie]&&S.createElement(G.Z,null),S.createElement("span",{className:"ml5 c-grey-666"},c)),!Bo[ie]&&S.createElement(C.Z,{className:N.answerSheet,gutter:[20,20],key:ie},(Qe=ut==null?void 0:ut.items)==null?void 0:Qe.map(function(vt,Ft){var jt,$t,nn,at,it,Lt,Lr;let rn=` + ${(jt=J==null?void 0:J.question_status)!=null&&jt.some(jn=>{var Mr,uo;return jn.ques_id===vt.question_id&&(jn==null?void 0:jn.ques_status)===1&&((Mr=J==null?void 0:J.exercise)==null?void 0:Mr.exercise_status)!==3&&!((uo=J==null?void 0:J.exercise)!=null&&uo.open_score_commited)})?N.active:""} + ${($t=J==null?void 0:J.question_status)!=null&&$t.some(jn=>{var Mr,uo;return jn.ques_id===vt.question_id&&(jn==null?void 0:jn.ques_status)===2&&((Mr=J==null?void 0:J.exercise)==null?void 0:Mr.exercise_status)!==3&&!((uo=J==null?void 0:J.exercise)!=null&&uo.open_score_commited)})?N.partialActive:""} + ${(nn=J==null?void 0:J.question_status)!=null&&nn.some(jn=>{var Mr,uo;return jn.ques_id===vt.question_id&&(jn==null?void 0:jn.score_status)===1&&(((Mr=J==null?void 0:J.exercise)==null?void 0:Mr.exercise_status)===3||((uo=J==null?void 0:J.exercise)==null?void 0:uo.open_score_commited))})?N.yes:""} + ${(at=J==null?void 0:J.question_status)!=null&&at.some(jn=>{var Mr,uo;return jn.ques_id===vt.question_id&&(jn==null?void 0:jn.score_status)===2&&(((Mr=J==null?void 0:J.exercise)==null?void 0:Mr.exercise_status)===3||((uo=J==null?void 0:J.exercise)==null?void 0:uo.open_score_commited))})?N.no:""} + ${(it=J==null?void 0:J.question_status)!=null&&it.some(jn=>{var Mr,uo;return jn.ques_id===vt.question_id&&(jn==null?void 0:jn.score_status)===3&&(((Mr=J==null?void 0:J.exercise)==null?void 0:Mr.exercise_status)===3||((uo=J==null?void 0:J.exercise)==null?void 0:uo.open_score_commited))})?N.bf:""} + `;if(vt.question_type===ie)return(Lt=J==null?void 0:J.exercise)!=null&&Lt.open_score&&(Number(vt.question_score)===Number(vt.user_score)?rn=N.green:vt.user_score>0?rn=N.orange:rn=N.red),S.createElement(v.Z,null,S.createElement("div",{onClick:()=>{tr(()=>{if(!(Je===pr&&Ft===xr)){if($n.current){$n.current="appoint",mo.current={oneindex:Je,twoindex:Ft};return}Qr({oneindex:Je,twoindex:Ft})}})},key:Ft,className:` + ${N.answerSheetItem} + ${rn} + ${Je===pr&&Ft===xr?N.selected:""} + `},S.createElement("span",{className:N.qindex},Ft+1),((Lr=J==null?void 0:J.question_status)==null?void 0:Lr.some(jn=>{var Mr;return jn.ques_id===vt.question_id&&(jn==null?void 0:jn.ques_status)===2&&((Mr=J==null?void 0:J.exercise)==null?void 0:Mr.exercise_status)!==3}))&&S.createElement("div",{style:{height:12,background:"rgba(22,93,255,0.4)",position:"absolute",width:"100%",bottom:0}}),vt.is_marked&&S.createElement("i",{className:`iconfont icon-biaoji1 ${N.markIcon}`})))})))},_n=(c,ie)=>{var Je,lt,Qe,ut;let vt="";return((c==null?void 0:c.question_type)===0||(c==null?void 0:c.question_type)===1)&&((Je=c==null?void 0:c.question_choices)==null||Je.forEach((jt,$t)=>{jt.standard_boolean&&(vt=vt+lr[$t])})),S.createElement("div",{className:N.questionItem,id:`Anchor_${c==null?void 0:c.question_type}_${ie}`},S.createElement("div",{style:{display:"flex",alignItems:"baseline",marginBottom:40}},S.createElement("span",{className:`${N.questionScore} mr10`},c==null?void 0:c.question_score,"\u5206"),S.createElement("span",{className:`font16 ${N.noWrap}`},ie+1,"\u3001"),S.createElement(ge.Z,{value:(c==null?void 0:c.question_type)===8?c==null?void 0:c.description:c==null?void 0:c.question_title}),!!((lt=c==null?void 0:c.schools)!=null&<.length)&&S.createElement(I.Z,{title:"\u8BE5\u5B9E\u8BAD\u9898\u9762\u5411\u6307\u5B9A\u5355\u4F4D\u5F00\u653E"},S.createElement("i",{className:"iconfont icon-zhidinggongkai1 line24 font18 c-orange"}))),(c==null?void 0:c.question_type)===6&&S.createElement(We.Z,{style:{margin:`-30px 0 ${No.get("check")?11:30}px 60px`},dataSource:(c==null?void 0:c.languages)||[]}),(c==null?void 0:c.question_type)==0&&rr(c,c==null?void 0:c.question_type),(c==null?void 0:c.question_type)==2&&rr(c,c==null?void 0:c.question_type),(c==null?void 0:c.question_type)==1&&Br(c,c==null?void 0:c.question_type),(c==null?void 0:c.question_type)==3&&po(c,c==null?void 0:c.question_type),(c==null?void 0:c.question_type)==4&&hn(c,c==null?void 0:c.question_type),(c==null?void 0:c.question_type)==5&&((Qe=J==null?void 0:J.exercise)==null?void 0:Qe.user_exercise_status)===0&&(c==null?void 0:c.answer_status)!=3&&S.createElement("div",{style:{margin:"-28px 0 12px 62px"}},S.createElement(C.Z,{justify:"space-between",align:"middle"},S.createElement(v.Z,null,S.createElement("span",{className:"font14 c-grey-666"},"\u4EFB\u52A1\u5173\u5361")),S.createElement(v.Z,null,S.createElement(Pr.Z,{type:"primary",className:N.toIframeBtn,onClick:()=>En(void 0,null,function*(){return yield kt(c)})},"\u8FDB\u5165\u7B54\u9898")))),(c==null?void 0:c.question_type)==5&&pn(c,c==null?void 0:c.question_type),(0,ae.dE)()&&((ut=J==null?void 0:J.exercise)==null?void 0:ut.user_exercise_status)===0&&(c==null?void 0:c.question_type)==6&&S.createElement("div",{style:{margin:"-28px 0 -25px"}},S.createElement(C.Z,{justify:"end",align:"middle"},S.createElement(v.Z,null,S.createElement(Pr.Z,{type:"primary",className:N.toIframeBtn,onClick:()=>xn(c)},"\u8FDB\u5165\u7B54\u9898")))),(c==null?void 0:c.question_type)==6&&vn(c,c==null?void 0:c.question_type),(c==null?void 0:c.question_type)==7&&Zr(c,c==null?void 0:c.question_type,ie),(c==null?void 0:c.question_type)==8&&en(c,c==null?void 0:c.question_type),(c==null?void 0:c.answer_comments)&&S.createElement(Mt,{hideScore:!0,list:c==null?void 0:c.answer_comments}))},or=(c,ie)=>S.createElement(t.Fragment,null,tn((c==null?void 0:c.name)||Cr.fw[c.question_type].name,c.question_type,ie)),$n=(0,t.useRef)(!1),mo=(0,t.useRef)({}),eo=(0,t.useRef)(),Co=(0,t.useRef)({}),Jr=()=>{var c,ie,Je,lt,Qe,ut,vt,Ft,jt;window.blur();const $t=(Je=(ie=(c=J.exercise_question_types)==null?void 0:c[pr])==null?void 0:ie.items)==null?void 0:Je[xr];if(!ta&&((lt=J==null?void 0:J.exercise)==null?void 0:lt.user_exercise_status)===0&&(0,ae.dE)()&&!($t!=null&&$t.repeat_answer)&&((Qe=$t==null?void 0:$t.user_answer)==null?void 0:Qe.length)>0&&($t==null?void 0:$t.ques_status)===0){eo.current="prev",Yo(!0);return}!($t!=null&&$t.repeat_answer)&&((ut=$t==null?void 0:$t.user_answer)==null?void 0:ut.length)>0&&($t.ques_status=1),A.current.scrollTo({top:0,left:0,behavior:"smooth"}),xr===0?(pr-=1,xr=J.exercise_question_types[pr].items.length-1):xr-=1,($t==null?void 0:$t.question_type)==8&&!qo&&setTimeout(()=>{ct($t)},500),ea((jt=(Ft=(vt=J==null?void 0:J.exercise_question_types)==null?void 0:vt[pr])==null?void 0:Ft.items)==null?void 0:jt[xr]),ko(!1),zo(pr),Fo(xr)},Eo=()=>{var c,ie,Je,lt,Qe,ut,vt,Ft,jt,$t,nn;window.blur();const at=(Je=(ie=(c=J.exercise_question_types)==null?void 0:c[pr])==null?void 0:ie.items)==null?void 0:Je[xr];if(!ta&&((lt=J==null?void 0:J.exercise)==null?void 0:lt.user_exercise_status)===0&&(0,ae.dE)()&&!(at!=null&&at.repeat_answer)&&((Qe=at==null?void 0:at.user_answer)==null?void 0:Qe.length)>0&&(at==null?void 0:at.ques_status)===0){eo.current="next",Yo(!0);return}!(at!=null&&at.repeat_answer)&&((ut=at==null?void 0:at.user_answer)==null?void 0:ut.length)>0&&(at.ques_status=1),A.current.scrollTo({top:0,left:0,behavior:"smooth"}),((Ft=(vt=J==null?void 0:J.exercise_question_types[pr])==null?void 0:vt.items)==null?void 0:Ft.length)-1===xr?(pr=pr+1,xr=0):xr=xr+1,(at==null?void 0:at.question_type)==8&&!qo&&setTimeout(()=>{ct(at)},500),ea((nn=($t=(jt=J==null?void 0:J.exercise_question_types)==null?void 0:jt[pr])==null?void 0:$t.items)==null?void 0:nn[xr]),ko(!1),zo(pr),Fo(xr)},Qr=c=>{var ie,Je,lt,Qe,ut,vt,Ft,jt,$t;const nn=c||mo.current,at=(lt=(Je=(ie=J.exercise_question_types)==null?void 0:ie[pr])==null?void 0:Je.items)==null?void 0:lt[xr];if(!ta&&((Qe=J==null?void 0:J.exercise)==null?void 0:Qe.user_exercise_status)===0&&(0,ae.dE)()&&!(at!=null&&at.repeat_answer)&&((ut=at==null?void 0:at.user_answer)==null?void 0:ut.length)>0&&(at==null?void 0:at.ques_status)===0){eo.current="appoint",Co.current=nn,Yo(!0);return}!(at!=null&&at.repeat_answer)&&((vt=at==null?void 0:at.user_answer)==null?void 0:vt.length)>0&&(at.ques_status=1),(at==null?void 0:at.question_type)==8&&!qo&&setTimeout(()=>{ct(at)},500),ea(($t=(jt=(Ft=J==null?void 0:J.exercise_question_types)==null?void 0:Ft[nn==null?void 0:nn.oneindex])==null?void 0:jt.items)==null?void 0:$t[nn==null?void 0:nn.twoindex]),ko(!1),zo(nn==null?void 0:nn.oneindex),Fo(nn==null?void 0:nn.twoindex),A.current.scrollTo({top:0,left:0,behavior:"smooth"})},go=()=>En(void 0,null,function*(){var c;if($n.current){$n.current="refresh";return}const ie=yield Ht();(c=J==null?void 0:J.exercise)!=null&&c.left_time&&(yield Bn(!0)),ie!=null&&ie.status||D.ZP.success("\u66F4\u65B0\u6210\u529F")}),$o=()=>{var c,ie;switch($n.current){case"prev":Jr();break;case"next":Eo();break;case"appoint":Qr();break;case"submit":Nn(!1);break;case"refresh":go();break;default:}((c=document.activeElement)==null?void 0:c.name)==="edu-program-fill"||((ie=document.activeElement)==null?void 0:ie.name)==="sign"?$n.current=!0:$n.current=!1,mo.current={}},gr=()=>{var c,ie,Je,lt,Qe,ut,vt,Ft,jt,$t,nn,at;const it=(ie=(c=J==null?void 0:J.exercise_question_types)==null?void 0:c[pr].items)==null?void 0:ie[xr];return S.createElement(t.Fragment,{key:pr},S.createElement("div",{className:"pt20 mb20"},S.createElement("span",{className:N.questionTypeTitle},(0,Z.EM)(pr+1),"\u3001",(lt=(Je=J==null?void 0:J.exercise_question_types)==null?void 0:Je[pr])==null?void 0:lt.name),S.createElement("span",{className:N.questionTypeInfo},"\uFF08\u5171",(ut=(Qe=J==null?void 0:J.exercise_question_types)==null?void 0:Qe[pr])==null?void 0:ut.count,"\u9898\uFF1B",((Ft=(vt=J==null?void 0:J.exercise_question_types)==null?void 0:vt[pr])==null?void 0:Ft.question_type)===7?`\u5305\u542B${($t=(jt=J==null?void 0:J.exercise_question_types)==null?void 0:jt[pr])==null?void 0:$t.sub_questions_count}\u5C0F\u9898`:""," \u5171",(at=(nn=J==null?void 0:J.exercise_question_types)==null?void 0:nn[pr])==null?void 0:at.score,"\u5206\uFF09"),!(it!=null&&it.repeat_answer)&&S.createElement("span",{style:{color:"#E30000",marginLeft:20,fontSize:14}},"\u6CE8\u610F\uFF1A\u8BE5\u9898\u4F5C\u7B54\u4E4B\u540E\u4E0D\u5141\u8BB8\u4FEE\u6539\u7B54\u6848\u3002")),S.createElement(t.Fragment,{key:xr},_n(it,xr)))},yr=()=>{fl(!0)},Rr=()=>En(void 0,null,function*(){var c;const ie=yield(0,oe.ZP)(`/api/exercises/${Gt.categoryId}/exercise_user/polling_exercise_user_status.json`,{method:"get"});(ie==null?void 0:ie.status)==0&&((c=ie==null?void 0:ie.data)!=null&&c.is_commited)?Bt():setTimeout(()=>{Rr()},3e3)}),to=()=>En(void 0,null,function*(){if(localStorage.getItem("stopGetVrsEnvStatus")=="\u865A\u62DF\u4EFF\u771F\u8D44\u6E90\u52A0\u8F7D\u5B8C\u6210"){Rr();return}const ie=yield(0,oe.ZP)(`/api/courses/${Gt.coursesId}/exercises/${Gt.categoryId}/exercise_status.json`,{method:"get"});(ie==null?void 0:ie.status)==0&&(ie==null?void 0:ie.vrs_env_status)==1?(localStorage.setItem("stopGetVrsEnvStatus","\u865A\u62DF\u4EFF\u771F\u8D44\u6E90\u52A0\u8F7D\u5B8C\u6210"),Rr(),Tl(!0)):setTimeout(()=>{localStorage.setItem("stopGetVrsEnvStatus","\u865A\u62DF\u4EFF\u771F\u8D44\u6E90\u672A\u52A0\u8F7D\u5B8C\u6210"),to()},1500)});return S.createElement(g.Z,{size:"middle",spinning:za,tip:S.createElement("div",{className:"c-grey-333 animation-delayed mt10"},"\u60A8\u5F53\u524D\u7F51\u7EDC\u8FDE\u63A5\u8F83\u6162\uFF0C\u5EFA\u8BAE\u60A8",S.createElement("span",{onClick:()=>window.location.reload(),className:"c-light-primary current"},"\u5237\u65B0"),"\u9875\u9762\u540E\u518D\u8BD5\uFF01")},vl&&S.createElement("div",{className:N.screenLock},S.createElement("h3",null,"\u7CFB\u7EDF\u68C0\u6D4B\u5230\u60A8\u7684\u7535\u8111\u6709",localStorage.screenNums,"\u4E2A\u663E\u793A\u5668"),S.createElement("h4",null,"\u8BF7\u5148\u79FB\u9664\u6389\u5176\u5B83\u7684\u663E\u793A\u5668\u8BBE\u5907\uFF01")),ha&&((ir=J==null?void 0:J.exercise)==null?void 0:ir.user_exercise_status)===0&&S.createElement(K.Z,{exerciseUserInfo:Zt.exerciseUserInfo,iframe:Ja,handleToDetail:ln,socket:Go,onStartScreenshot:()=>{ft!=null&&ft.screen_shot_open&&Wa(!0)},onCloseScreenshot:()=>{ft!=null&&ft.screen_shot_open&&Wa(!1)}}),S.createElement(le,{id:Gt.categoryId,startRecording:ya,startScreenshot:Ha,onSuccuss:()=>{_o(ft==null?void 0:ft.screen_open),Ht()},onBack:ln}),S.createElement("iframe",{style:{display:Ca},id:"iframeShixuns",className:N.iframe,src:Ua,ref:Ja,frameBorder:"0"}),Uo.status!==-2&&Uo.status!==-1&&S.createElement("div",{className:N.fixHeader},S.createElement(C.Z,{wrap:!1,align:"middle",className:"edu-container"},S.createElement(v.Z,null,(0,Z.vB)((An=J==null?void 0:J.exercise)==null?void 0:An.exercise_status)),S.createElement(v.Z,{className:`${N.exerciseTitle} ml10`,title:(sn=J==null?void 0:J.exercise)==null?void 0:sn.exercise_name},(bn=J==null?void 0:J.exercise)==null?void 0:bn.exercise_name),S.createElement(v.Z,{style:{marginLeft:"auto"}},((Ot=J==null?void 0:J.exercise)==null?void 0:Ot.user_exercise_status)===1&&S.createElement(U.ZP,{className:N.changeButton,type:"primary",onClick:()=>{l.history.push(`/classrooms/${Gt.coursesId}/exercise/${Gt.categoryId}/detail`)}},"\u8FD4\u56DE")),!((0,ae.GJ)()||(0,ae.dE)()&&((dn=J==null?void 0:J.exercise)==null?void 0:dn.user_exercise_status)==1)&&!!((Dn=J==null?void 0:J.exercise)!=null&&Dn.left_time)&&S.createElement(v.Z,{style:{marginLeft:"auto"}},S.createElement("aside",{className:`${N.countDown} ${Va}`},S.createElement("i",{className:"iconfont icon-daojishi",style:{marginRight:6}}),S.createElement("span",{className:N.cnText},"\u5269\u4F59\u7B54\u9898\u65F6\u957F"),gl?S.createElement(Kr,{value:ba,onFinish:()=>Bn()}):S.createElement("div",{style:{color:"#37AD83",fontSize:"20px",fontWeight:"500",marginLeft:10}},(0,Z.Gh)((vr=J==null?void 0:J.exercise)==null?void 0:vr.left_time)))),S.createElement(v.Z,null,!((0,ae.GJ)()||(0,ae.dE)()&&((Tr=J==null?void 0:J.exercise)==null?void 0:Tr.user_exercise_status)==1)&&Zt.actionTabs.key!=="student-unlock"&&Dl&&S.createElement(Pr.Z,{className:`${N.refreshBtn} ml30`,onClick:go},S.createElement("span",{className:"iconfont icon-shuaxin2 mr5"}),"\u5237\u65B0")),S.createElement(v.Z,null,(0,ae.dE)()&&((gn=J==null?void 0:J.exercise)==null?void 0:gn.user_exercise_status)===0&&S.createElement(Pr.Z,{className:`${N.submitButton} ml10`,type:"primary",onClick:()=>En(void 0,null,function*(){tr(()=>En(void 0,null,function*(){if($n.current){$n.current="submit";return}yield Nn(!1)}))})},(0,Fn._V)(Fn.CP.answer7))),S.createElement(v.Z,null,((Jt=J==null?void 0:J.exercise)==null?void 0:Jt.forbid_screen)&&S.createElement(U.ZP,{className:`${N.submitButton} ml10`,type:"primary",onClick:yr},(0,Fn._V)(Fn.CP.answer12))),S.createElement(v.Z,null,(((yn=J==null?void 0:J.exercise)==null?void 0:yn.commit_status)==1||((pt=J==null?void 0:J.exercise)==null?void 0:pt.exercise_status)==3)&&((Un=J==null?void 0:J.exercise_answer_user)==null?void 0:Un.analysis)&&S.createElement("span",{className:N.teachAnalysis,onClick:()=>se(!0)},S.createElement("i",{className:"iconfont icon-jiaoshipingjia"}),S.createElement("span",{className:"ml5"},"\u6559\u5E08\u8BC4\u4EF7"))))),S.createElement("section",{className:`edu-container ${N.wrapper} ${Lo&&N.wrpAnswer}`},Uo.status===0&&S.createElement(C.Z,{className:`${Lo?"mt70":""} ${N.mainPart}`,wrap:!1},S.createElement(v.Z,{flex:Zo?"280px":"0px",className:Lo?"mb100":""},S.createElement("div",{className:N.leftPart},S.createElement("section",null,Zo&&S.createElement(v.Z,{flex:"1",style:{background:"#fff",marginBottom:"10px",padding:"20px"}},S.createElement("div",{style:{marginBottom:15}},S.createElement("span",{style:{color:"#5F6368"}},"\u59D3\u540D"),S.createElement("span",{className:`ml10 ${N.userInfoText}`},((_r=J==null?void 0:J.exercise)==null?void 0:_r.user_name)||"- -")),S.createElement("div",null,S.createElement("span",{style:{color:"#5F6368"}},"\u5B66\u53F7"),S.createElement("span",{className:`ml10 ${N.userInfoText}`},((Hr=J==null?void 0:J.exercise)==null?void 0:Hr.student_id)||"- -"))),Zo&&(0,ae.dE)()&&((so=J.exercise)==null?void 0:so.user_exercise_status)===0&&((co=J.exercise)==null?void 0:co.open_phone_video_recording)&&S.createElement(C.Z,{className:N.eduQrcode,style:{marginTop:10},align:"middle"},S.createElement(v.Z,null,S.createElement(P(),{value:`https://${document.domain}/live-push.html?id=${Gt.categoryId}&login=${Gt.login}&cookie=${(0,Z.ej)("_educoder_session")}`})),S.createElement(v.Z,{className:"ml15"},"\u6253\u5F00\u5FAE\u4FE1\u626B\u4E00\u626B",S.createElement("br",null),"\u5F00\u542F\u624B\u673A\u89C6\u9891\u5F55\u5236")),Zo&&S.createElement("aside",{className:"bg-white"},S.createElement("aside",{className:N.answerInfo},S.createElement(C.Z,{justify:"space-between"},S.createElement(v.Z,null,"\u7B54\u9898\u8FDB\u5EA6"),S.createElement(v.Z,{className:N.answerProgress},S.createElement("span",{style:{color:"#165DFF"}},(bo=(xo=J==null?void 0:J.question_status)==null?void 0:xo.filter(c=>c.ques_status===1))==null?void 0:bo.length),S.createElement("span",{style:{color:"#999999"}},"/",(So=J==null?void 0:J.exercise_types)==null?void 0:So.q_counts))),S.createElement(C.Z,null,S.createElement(w.Z,{strokeColor:"#165dffa6",trailColor:"#0000000d",percent:((Do=(Io=J==null?void 0:J.question_status)==null?void 0:Io.filter(c=>c.ques_status===1))==null?void 0:Do.length)/((Ia=J==null?void 0:J.exercise_types)==null?void 0:Ia.q_counts)*100,showInfo:!1})),S.createElement(C.Z,null,S.createElement(v.Z,null,S.createElement("span",{className:"c-grey-333"},"\u5171 ",S.createElement("span",{style:{color:"#165DFF"}},((la=J==null?void 0:J.exercise_types)==null?void 0:la.q_counts)||((Na=(ia=J==null?void 0:J.exercise_scores)==null?void 0:ia.exercise_types)==null?void 0:Na.q_counts))," \u9898\uFF1A"),S.createElement("span",{className:"c-grey-333"},"\u6EE1\u5206 ",S.createElement("span",{style:{color:"#FA6400"}},((ll=J==null?void 0:J.exercise_types)==null?void 0:ll.q_scores)||((Mo=(_a=J==null?void 0:J.exercise_scores)==null?void 0:_a.exercise_types)==null?void 0:Mo.q_scores))," \u5206")))),S.createElement(C.Z,{className:N.dottedLineWrapper,align:"middle"},S.createElement(v.Z,{className:N.leftHalfCircle}),S.createElement(v.Z,{flex:1,className:N.dottedLine}),S.createElement(v.Z,{className:N.rightHalfCircle})),S.createElement(C.Z,null,S.createElement(v.Z,{flex:"1"},S.createElement("aside",{className:`${N.cardList} ${(Da=J.exercise)!=null&&Da.open_phone_video_recording?N.withQrcode:""}`},(sa=J==null?void 0:J.exercise_question_types)==null?void 0:sa.map((c,ie)=>S.createElement(t.Fragment,{key:c.question_type},or(c,ie)))))))),(0,ae.dE)()&&((ca=J==null?void 0:J.exercise)==null?void 0:ca.exercise_status)!==3&&!((Ba=J==null?void 0:J.exercise)!=null&&Ba.open_score_commited)&&S.createElement(C.Z,{justify:"space-around",align:"middle",className:N.answerSheetBottom},S.createElement(v.Z,{className:N.tooltipWrap},S.createElement("span",{className:N.answerYes}),"\u5DF2\u7B54"),S.createElement(v.Z,{className:N.tooltipWrap},S.createElement("span",{className:`${N.answerNo} ml10`},S.createElement("div",{style:{height:"50%",width:"100%",background:"rgba(22,93,255,0.4)"}})),"\u90E8\u5206\u7B54\u9898"),S.createElement(v.Z,{className:N.tooltipWrap},S.createElement("span",{className:`${N.answerNo} ml10`}),"\u672A\u7B54"),S.createElement(v.Z,{className:N.tooltipWrap},S.createElement("i",{className:"iconfont icon-biaoji1",style:{marginRight:4,color:"#FFB538"}}),"\u6807\u8BB0")),(0,ae.dE)()&&(((Ta=J==null?void 0:J.exercise)==null?void 0:Ta.exercise_status)===3||((Jo=J==null?void 0:J.exercise)==null?void 0:Jo.open_score_commited))&&S.createElement(C.Z,{justify:"space-around",align:"middle",className:N.answerSheetBottom},S.createElement(v.Z,{className:N.tooltipWrap},S.createElement("span",{className:N.answerYes,style:{background:"#028D01",height:8,width:8,borderRadius:"50%"}}),"\u6B63\u786E"),S.createElement(v.Z,{className:N.tooltipWrap},S.createElement("span",{style:{background:"#FB3226",height:8,width:8,borderRadius:"50%"},className:`${N.answerNo} ml10`}),"\u9519\u8BEF"),S.createElement(v.Z,{className:N.tooltipWrap},S.createElement("span",{style:{background:"#E77400",height:8,width:8,borderRadius:"50%"},className:`${N.answerNo} ml10`}),"\u90E8\u5206\u5F97\u5206"),S.createElement(v.Z,{className:N.tooltipWrap},S.createElement("i",{className:"iconfont icon-biaoji1",style:{marginRight:4,color:"#FFB538"}}),"\u6807\u8BB0")))),S.createElement(v.Z,null,S.createElement("div",{className:N.fold,onClick:()=>sl(!Zo)},Zo&&S.createElement(I.Z,{title:"\u6536\u8D77\u7B54\u9898\u5361"},S.createElement("span",{className:"icon-zuojiantou iconfont c-grey-c"})),!Zo&&S.createElement(I.Z,{title:"\u5C55\u5F00"}," ",S.createElement("span",{className:"icon-youjiantou iconfont c-grey-c"})))),S.createElement(v.Z,{flex:"1"},S.createElement("section",{className:[N.rightPart,"ml20"].join(" ")},S.createElement("div",{className:`${N.questionPart} pl30 pr30`,ref:A},gr()),S.createElement(C.Z,{className:N.bottom,align:"middle",justify:"space-between"},S.createElement(v.Z,null,S.createElement(Pr.Z,{icon:S.createElement("i",{className:`iconfont ${(da=(ua=J.exercise_question_types)==null?void 0:ua[pr].items[xr])!=null&&da.is_marked?"icon-biaoji1":"icon-biaojigaiti"}`,style:{color:"#FFB538",marginRight:6}}),className:N.markBtn,onClick:()=>En(void 0,null,function*(){var c;(yield(0,L.sS)(Gt.categoryId,{exercise_question_id:(c=J.exercise_question_types[pr].items[xr])==null?void 0:c.question_id})).status===0&&Ht()})},(ma=(fa=J.exercise_question_types)==null?void 0:fa[pr].items[xr])!=null&&ma.is_marked?"\u53D6\u6D88\u6807\u8BB0":"\u6807\u8BB0\u8BE5\u9898")),S.createElement(v.Z,null,(pr!=0||xr!=0)&&S.createElement(U.ZP,{className:`${N.changeButton} ${N.prevBtn} mr20`,type:"default",onClick:()=>{tr(()=>{if($n.current){$n.current="prev";return}Jr()})}},"\u4E0A\u4E00\u9898"),!(pr===((Ra=J==null?void 0:J.exercise_question_types)==null?void 0:Ra.length)-1&&xr===((Aa=(Fa=(Ma=J==null?void 0:J.exercise_question_types)==null?void 0:Ma[pr])==null?void 0:Fa.items)==null?void 0:Aa.length)-1)&&S.createElement(U.ZP,{className:N.changeButton,type:"primary",onClick:()=>{tr(()=>{if(bl){if($n.current){$n.current="next";return}Eo()}})}},"\u4E0B\u4E00\u9898")))))),Uo.status!==0&&S.createElement(ke,{data:Uo}),S.createElement(n.default,{title:"\u6CE8\u610F",open:Rl,closable:!1,footer:!1},S.createElement("div",null,S.createElement("p",{style:{marginBottom:0}},"\u79BB\u5F00\u8BE5\u9898\u540E\u4E0D\u5141\u8BB8\u518D\u6B21\u4FEE\u6539\u7B54\u6848\uFF0C\u786E\u8BA4\u79BB\u5F00\u5417\uFF1F"),S.createElement("div",{style:{marginTop:60,display:"flex",justifyContent:"space-between",alignItems:"center"}},S.createElement(T.default,{checked:ta,onChange:c=>{qa(c.target.checked)}},"\u4E0B\u6B21\u4E0D\u518D\u663E\u793A"),S.createElement("div",null,S.createElement(U.ZP,{onClick:()=>{Yo(!1),qa(!1)}},"\u6211\u518D\u60F3\u60F3"),S.createElement(U.ZP,{onClick:()=>{J.exercise_question_types[pr].items[xr].ques_status=1,wo(Jn({},J)),eo.current==="prev"?(xr===0?(pr-=1,xr=J.exercise_question_types[pr].items.length-1):xr-=1,zo(pr),Fo(xr)):eo.current==="next"?(J.exercise_question_types[pr].items.length-1===xr?(pr=pr+1,xr=0):xr=xr+1,zo(pr),Fo(xr)):(zo(Co.current.oneindex),Fo(Co.current.twoindex)),Yo(!1)},type:"primary",style:{marginLeft:30}},"\u786E\u8BA4"))))),S.createElement(Qt.Z,{successCb:ht})),cl&&S.createElement(Ln(),{disabled:tl,bounds:r,onStart:(c,ie)=>xe(c,ie)},S.createElement("div",{ref:f,style:{position:"absolute",left:40,top:200,zIndex:1300}},S.createElement("div",{onMouseOver:()=>{tl&&Po(!1)},onMouseOut:()=>{Po(!0)}},S.createElement(C.Z,{className:N.cameraHeader,align:"middle",justify:"space-between"},S.createElement(v.Z,null,S.createElement("i",{className:"iconfont icon-kaiqishexiangtou"}),S.createElement("span",null,"\u5DF2\u5F00\u542F\u6444\u50CF\u5934")),y?S.createElement(Gn.Z,{onClick:()=>{M(!1)}}):S.createElement($r.Z,{onClick:()=>{M(!0)}})),S.createElement("div",{style:{display:y?"flex":"none"}},S.createElement(q.Z,{number:((Za=J==null?void 0:J.exercise)==null?void 0:Za.photo_count)-((va=J==null?void 0:J.exercise)==null?void 0:va.take_photo),take_photo:(La=J==null?void 0:J.exercise)==null?void 0:La.take_photo,ref:hl,time:(ka=J.exercise)==null?void 0:ka.left_time,update:Ht,supportCamera:c=>{c===2?(Qo(!0),Ro(ft==null?void 0:ft.screen_shot_open),ft!=null&&ft.screen_shot_open||(_o(ft==null?void 0:ft.screen_open),Ht())):c===1&&setTimeout(()=>l.history.push("/"),3e3)}}))))),S.createElement(n.default,{destroyOnClose:!0,closable:!1,centered:!0,className:N.teachAnalysisModal,title:S.createElement(C.Z,{align:"middle",justify:"space-between"},S.createElement(v.Z,{style:{color:"rgba(0,0,0,0.9)",fontSize:"16px"}},"\u6559\u5E08\u8BC4\u4EF7"),S.createElement(v.Z,null,S.createElement("i",{className:"iconfont icon-guanbi7",style:{fontSize:"15px",cursor:"pointer"},onClick:()=>se(!1)}))),open:ce,footer:!1,onCancel:()=>se(!1)},(ja=J==null?void 0:J.exercise_answer_user)==null?void 0:ja.analysis),S.createElement(n.default,{destroyOnClose:!0,centered:!0,width:555,title:S.createElement(C.Z,{align:"middle"},S.createElement("div",{className:"c-black font16 mr8"},(0,Fn._V)(Fn.CP.answer8)),S.createElement("div",{className:"c-grey-666"},(0,Fn._V)(Fn.CP.answer9))),open:dl,footer:!1,onCancel:()=>fl(!1)},S.createElement("div",null,S.createElement("div",{className:"mb20 c-black"},(0,Fn._V)(Fn.CP.answer10)),S.createElement(In,{key:ml,onOk:c=>{var ie;console.log(c,444),c.join("")===((ie=J==null?void 0:J.exercise)==null?void 0:ie.screen_key)?ln():(D.ZP.warning((0,Fn._V)(Fn.CP.answer11)),Bl(lt=>lt+1))}}))))};var Gr=(0,l.connect)(({loading:W,user:be,exercise:Me,globalSetting:Yt})=>({globalSetting:Yt,user:be,exercise:Me,loading:W.effects}))(dr)},50371:function(nt,z){"use strict";function e(){const t=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let l=1;l{const $=b[P];$!==void 0&&(t[P]=$)})}return t}z.Z=e},13845:function(nt,z,e){"use strict";e.d(z,{F:function(){return t},Z:function(){return l}});function t(b){return b!=null&&b===b.window}function l(b,P){var $,d;if(typeof window=="undefined")return 0;const n=P?"scrollTop":"scrollLeft";let E=0;return t(b)?E=b[P?"pageYOffset":"pageXOffset"]:b instanceof Document?E=b.documentElement[n]:(b instanceof HTMLElement||b)&&(E=b[n]),b&&!t(b)&&typeof E!="number"&&(E=(d=(($=b.ownerDocument)!==null&&$!==void 0?$:b).documentElement)===null||d===void 0?void 0:d[n]),E}},56762:function(nt,z,e){"use strict";e.d(z,{Z:function(){return l}});var t=e(59301);function l(){const[,b]=t.useReducer(P=>P+1,0);return b}},68031:function(nt,z,e){"use strict";e.d(z,{Z:function(){return P}});var t=e(16089);function l($,d,n,E){const D=n-d;return $/=E/2,$<1?D/2*$*$*$+d:D/2*(($-=2)*$*$+2)+d}var b=e(13845);function P($){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:E,duration:D=450}=d,w=n(),C=(0,b.Z)(w,!0),v=Date.now(),B=()=>{const I=Date.now()-v,g=l(I>D?D:I,C,$,D);(0,b.F)(w)?w.scrollTo(window.pageXOffset,g):w instanceof Document||w.constructor.name==="HTMLDocument"?w.documentElement.scrollTop=g:w.scrollTop=g,I{const{href:N,title:de,prefixCls:ae,children:x,className:L,target:Y,replace:ge}=h,Re=$.useContext(v),{registerLink:$e,unregisterLink:je,scrollTo:Ye,onClick:tt,activeLink:ze,direction:Be}=Re||{};$.useEffect(()=>($e==null||$e(N),()=>{je==null||je(N)}),[N]);const qe=ve=>{ge&&(ve.preventDefault(),window.location.replace(N)),tt==null||tt(ve,{title:de,href:N}),Ye==null||Ye(N)},{getPrefixCls:dt}=$.useContext(w.E_),Ie=dt("anchor",ae),st=ze===N,yt=b()(`${Ie}-link`,L,{[`${Ie}-link-active`]:st}),Se=b()(`${Ie}-link-title`,{[`${Ie}-link-title-active`]:st});return $.createElement("div",{className:yt},$.createElement("a",{className:Se,href:N,title:typeof de=="string"?de:"",target:Y,onClick:qe},de),Be!=="horizontal"?x:null)},I=e(17313),g=e(83116),U=e(37613);const F=h=>{const{componentCls:N,holderOffsetBlock:de,motionDurationSlow:ae,lineWidthBold:x,colorPrimary:L,lineType:Y,colorSplit:ge}=h;return{[`${N}-wrapper`]:{marginBlockStart:-de,paddingBlockStart:de,[N]:Object.assign(Object.assign({},(0,I.Wf)(h)),{position:"relative",paddingInlineStart:x,[`${N}-link`]:{paddingBlock:h.linkPaddingBlock,paddingInline:`${h.linkPaddingInlineStart}px 0`,"&-title":Object.assign(Object.assign({},I.vS),{position:"relative",display:"block",marginBlockEnd:h.anchorTitleBlock,color:h.colorText,transition:`all ${h.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${N}-link-title`]:{color:h.colorPrimary},[`${N}-link`]:{paddingBlock:h.anchorPaddingBlockSecondary}}}),[`&:not(${N}-wrapper-horizontal)`]:{[N]:{"&::before":{position:"absolute",insetInlineStart:0,top:0,height:"100%",borderInlineStart:`${x}px ${Y} ${ge}`,content:'" "'},[`${N}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${ae} ease-in-out`,width:x,backgroundColor:L,[`&${N}-ink-visible`]:{display:"inline-block"}}}},[`${N}-fixed ${N}-ink ${N}-ink`]:{display:"none"}}}},G=h=>{const{componentCls:N,motionDurationSlow:de,lineWidthBold:ae,colorPrimary:x}=h;return{[`${N}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${h.lineType} ${h.colorSplit}`,content:'" "'},[N]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${N}-link:first-of-type`]:{paddingInline:0},[`${N}-ink`]:{position:"absolute",bottom:0,transition:`left ${de} ease-in-out, width ${de} ease-in-out`,height:ae,backgroundColor:x}}}}};var q=(0,g.Z)("Anchor",h=>{const{fontSize:N,fontSizeLG:de,paddingXXS:ae}=h,x=(0,U.TS)(h,{holderOffsetBlock:ae,anchorPaddingBlockSecondary:ae/2,anchorTitleBlock:N/14*3,anchorBallSize:de/2});return[F(x),G(x)]},h=>({linkPaddingBlock:h.paddingXXS,linkPaddingInlineStart:h.padding}));function K(){return window}function Z(h,N){if(!h.getClientRects().length)return 0;const de=h.getBoundingClientRect();return de.width||de.height?N===window?(N=h.ownerDocument.documentElement,de.top-N.clientTop):de.top-N.getBoundingClientRect().top:de.top}const oe=/#([\S ]+)$/,O=h=>{var N;const{rootClassName:de,anchorPrefixCls:ae,className:x,style:L,offsetTop:Y,affix:ge=!0,showInkInFixed:Re=!1,children:$e,items:je,direction:Ye="vertical",bounds:tt,targetOffset:ze,onClick:Be,onChange:qe,getContainer:dt,getCurrentAnchor:Ie,replace:st}=h,[yt,Se]=$.useState([]),[ve,rt]=$.useState(null),et=$.useRef(ve),j=$.useRef(null),V=$.useRef(null),p=$.useRef(!1),{direction:a,getTargetContainer:k,anchor:me}=$.useContext(w.E_),u=(N=dt!=null?dt:k)!==null&&N!==void 0?N:K,i=JSON.stringify(yt),Q=(0,P.useEvent)(De=>{yt.includes(De)||Se(Ke=>[].concat((0,t.Z)(Ke),[De]))}),R=(0,P.useEvent)(De=>{yt.includes(De)&&Se(Ke=>Ke.filter(We=>We!==De))}),s=()=>{var De;const Ke=(De=j.current)===null||De===void 0?void 0:De.querySelector(`.${ae}-link-title-active`);if(Ke&&V.current){const{style:We}=V.current,Xe=Ye==="horizontal";We.top=Xe?"":`${Ke.offsetTop+Ke.clientHeight/2}px`,We.height=Xe?"":`${Ke.clientHeight}px`,We.left=Xe?`${Ke.offsetLeft}px`:"",We.width=Xe?`${Ke.clientWidth}px`:"",Xe&&(0,d.Z)(Ke,{scrollMode:"if-needed",block:"nearest"})}},ne=function(De){let Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,We=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5;const Xe=[],Dt=u();return De.forEach(St=>{const Pt=oe.exec(St==null?void 0:St.toString());if(!Pt)return;const un=document.getElementById(Pt[1]);if(un){const on=Z(un,Dt);onun.top>Pt.top?un:Pt).link:""},Fe=(0,P.useEvent)(De=>{if(et.current===De)return;const Ke=typeof Ie=="function"?Ie(De):De;rt(Ke),et.current=Ke,qe==null||qe(De)}),we=$.useCallback(()=>{if(p.current)return;const De=ne(yt,ze!==void 0?ze:Y||0,tt);Fe(De)},[i,ze,Y]),_e=$.useCallback(De=>{Fe(De);const Ke=oe.exec(De);if(!Ke)return;const We=document.getElementById(Ke[1]);if(!We)return;const Xe=u(),Dt=(0,n.Z)(Xe,!0),St=Z(We,Xe);let Pt=Dt+St;Pt-=ze!==void 0?ze:Y||0,p.current=!0,(0,E.Z)(Pt,{getContainer:u,callback(){p.current=!1}})},[ze,Y]),Pe=b()(de,`${ae}-wrapper`,{[`${ae}-wrapper-horizontal`]:Ye==="horizontal",[`${ae}-rtl`]:a==="rtl"},x,me==null?void 0:me.className),Ne=b()(ae,{[`${ae}-fixed`]:!ge&&!Re}),m=b()(`${ae}-ink`,{[`${ae}-ink-visible`]:ve}),te=Object.assign(Object.assign({maxHeight:Y?`calc(100vh - ${Y}px)`:"100vh"},me==null?void 0:me.style),L),ue=De=>Array.isArray(De)?De.map(Ke=>$.createElement(T,Object.assign({replace:st},Ke,{key:Ke.key}),Ye==="vertical"&&ue(Ke.children))):null,ye=$.createElement("div",{ref:j,className:Pe,style:te},$.createElement("div",{className:Ne},$.createElement("span",{className:m,ref:V}),"items"in h?ue(je):$e));$.useEffect(()=>{const De=u();return we(),De==null||De.addEventListener("scroll",we),()=>{De==null||De.removeEventListener("scroll",we)}},[i]),$.useEffect(()=>{typeof Ie=="function"&&Fe(Ie(et.current||""))},[Ie]),$.useEffect(()=>{s()},[Ye,Ie,i,ve]);const Ae=$.useMemo(()=>({registerLink:Q,unregisterLink:R,scrollTo:_e,activeLink:ve,onClick:Be,direction:Ye}),[ve,Be,_e,Ye]);return $.createElement(v.Provider,{value:Ae},ge?$.createElement(D.Z,{offsetTop:Y,target:u},ye):ye)};var ee=h=>{const{prefixCls:N,rootClassName:de}=h,{getPrefixCls:ae}=$.useContext(w.E_),x=ae("anchor",N),[L,Y]=q(x);return L($.createElement(O,Object.assign({},h,{rootClassName:b()(Y,de),anchorPrefixCls:x})))};const le=ee;le.Link=T;var X=le},24905:function(nt,z,e){"use strict";e.d(z,{default:function(){return O}});var t=e(92310),l=e.n(t),b=e(5630),P=e(59301),$=e(36355),d=e(1684),n=e(32441),D=P.createContext(null),w=e(98447),C=e(14088),v=e(4572),B=function(_,ee){var le={};for(var X in _)Object.prototype.hasOwnProperty.call(_,X)&&ee.indexOf(X)<0&&(le[X]=_[X]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,X=Object.getOwnPropertySymbols(_);h{var le;const{prefixCls:X,className:h,rootClassName:N,children:de,indeterminate:ae=!1,style:x,onMouseEnter:L,onMouseLeave:Y,skipGroup:ge=!1,disabled:Re}=_,$e=B(_,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:je,direction:Ye,checkbox:tt}=P.useContext($.E_),ze=P.useContext(D),{isFormItemInput:Be}=P.useContext(n.aM),qe=P.useContext(d.Z),dt=(le=(ze==null?void 0:ze.disabled)||Re)!==null&&le!==void 0?le:qe,Ie=P.useRef($e.value);P.useEffect(()=>{ze==null||ze.registerValue($e.value)},[]),P.useEffect(()=>{if(!ge)return $e.value!==Ie.current&&(ze==null||ze.cancelValue(Ie.current),ze==null||ze.registerValue($e.value),Ie.current=$e.value),()=>ze==null?void 0:ze.cancelValue($e.value)},[$e.value]);const st=je("checkbox",X),[yt,Se]=(0,w.ZP)(st),ve=Object.assign({},$e);ze&&!ge&&(ve.onChange=function(){$e.onChange&&$e.onChange.apply($e,arguments),ze.toggleOption&&ze.toggleOption({label:de,value:$e.value})},ve.name=ze.name,ve.checked=ze.value.includes($e.value));const rt=l()(`${st}-wrapper`,{[`${st}-rtl`]:Ye==="rtl",[`${st}-wrapper-checked`]:ve.checked,[`${st}-wrapper-disabled`]:dt,[`${st}-wrapper-in-form-item`]:Be},tt==null?void 0:tt.className,h,N,Se),et=l()({[`${st}-indeterminate`]:ae},v.A,Se),j=ae?"mixed":void 0;return yt(P.createElement(C.Z,{component:"Checkbox",disabled:dt},P.createElement("label",{className:rt,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),x),onMouseEnter:L,onMouseLeave:Y},P.createElement(b.Z,Object.assign({"aria-checked":j},ve,{prefixCls:st,className:et,disabled:dt,ref:ee})),de!==void 0&&P.createElement("span",null,de))))};var g=P.forwardRef(T),U=e(94480),F=e(2738),G=function(_,ee){var le={};for(var X in _)Object.prototype.hasOwnProperty.call(_,X)&&ee.indexOf(X)<0&&(le[X]=_[X]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,X=Object.getOwnPropertySymbols(_);h{const{defaultValue:le,children:X,options:h=[],prefixCls:N,className:de,rootClassName:ae,style:x,onChange:L}=_,Y=G(_,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ge,direction:Re}=P.useContext($.E_),[$e,je]=P.useState(Y.value||le||[]),[Ye,tt]=P.useState([]);P.useEffect(()=>{"value"in Y&&je(Y.value||[])},[Y.value]);const ze=P.useMemo(()=>h.map(V=>typeof V=="string"||typeof V=="number"?{label:V,value:V}:V),[h]),Be=V=>{tt(p=>p.filter(a=>a!==V))},qe=V=>{tt(p=>[].concat((0,U.Z)(p),[V]))},dt=V=>{const p=$e.indexOf(V.value),a=(0,U.Z)($e);p===-1?a.push(V.value):a.splice(p,1),"value"in Y||je(a),L==null||L(a.filter(k=>Ye.includes(k)).sort((k,me)=>{const u=ze.findIndex(Q=>Q.value===k),i=ze.findIndex(Q=>Q.value===me);return u-i}))},Ie=ge("checkbox",N),st=`${Ie}-group`,[yt,Se]=(0,w.ZP)(Ie),ve=(0,F.Z)(Y,["value","disabled"]),rt=h.length?ze.map(V=>P.createElement(g,{prefixCls:Ie,key:V.value.toString(),disabled:"disabled"in V?V.disabled:Y.disabled,value:V.value,checked:$e.includes(V.value),onChange:V.onChange,className:`${st}-item`,style:V.style,title:V.title},V.label)):X,et={toggleOption:dt,value:$e,disabled:Y.disabled,name:Y.name,registerValue:qe,cancelValue:Be},j=l()(st,{[`${st}-rtl`]:Re==="rtl"},de,ae,Se);return yt(P.createElement("div",Object.assign({className:j,style:x},ve,{ref:ee}),P.createElement(D.Provider,{value:et},rt)))},K=P.forwardRef(q);var Z=P.memo(K);const oe=g;oe.Group=Z,oe.__ANT_CHECKBOX=!0;var O=oe},98447:function(nt,z,e){"use strict";e.d(z,{C2:function(){return $}});var t=e(17313),l=e(37613),b=e(83116);const P=d=>{const{checkboxCls:n}=d,E=`${n}-wrapper`;return[{[`${n}-group`]:Object.assign(Object.assign({},(0,t.Wf)(d)),{display:"inline-flex",flexWrap:"wrap",columnGap:d.marginXS,[`> ${d.antCls}-row`]:{flex:1}}),[E]:Object.assign(Object.assign({},(0,t.Wf)(d)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${E}`]:{marginInlineStart:0},[`&${E}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[n]:Object.assign(Object.assign({},(0,t.Wf)(d)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:d.borderRadiusSM,alignSelf:"center",[`${n}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${n}-inner`]:Object.assign({},(0,t.oN)(d))},[`${n}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:d.checkboxSize,height:d.checkboxSize,direction:"ltr",backgroundColor:d.colorBgContainer,border:`${d.lineWidth}px ${d.lineType} ${d.colorBorder}`,borderRadius:d.borderRadiusSM,borderCollapse:"separate",transition:`all ${d.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:d.checkboxSize/14*5,height:d.checkboxSize/14*8,border:`${d.lineWidthBold}px solid ${d.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${d.motionDurationFast} ${d.motionEaseInBack}, opacity ${d.motionDurationFast}`}},"& + span":{paddingInlineStart:d.paddingXS,paddingInlineEnd:d.paddingXS}})},{[` + ${E}:not(${E}-disabled), + ${n}:not(${n}-disabled) + `]:{[`&:hover ${n}-inner`]:{borderColor:d.colorPrimary}},[`${E}:not(${E}-disabled)`]:{[`&:hover ${n}-checked:not(${n}-disabled) ${n}-inner`]:{backgroundColor:d.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${n}-checked:not(${n}-disabled):after`]:{borderColor:d.colorPrimaryHover}}},{[`${n}-checked`]:{[`${n}-inner`]:{backgroundColor:d.colorPrimary,borderColor:d.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${d.motionDurationMid} ${d.motionEaseOutBack} ${d.motionDurationFast}`}}},[` + ${E}-checked:not(${E}-disabled), + ${n}-checked:not(${n}-disabled) + `]:{[`&:hover ${n}-inner`]:{backgroundColor:d.colorPrimaryHover,borderColor:"transparent"}}},{[n]:{"&-indeterminate":{[`${n}-inner`]:{backgroundColor:d.colorBgContainer,borderColor:d.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:d.fontSizeLG/2,height:d.fontSizeLG/2,backgroundColor:d.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${E}-disabled`]:{cursor:"not-allowed"},[`${n}-disabled`]:{[`&, ${n}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${n}-inner`]:{background:d.colorBgContainerDisabled,borderColor:d.colorBorder,"&:after":{borderColor:d.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:d.colorTextDisabled},[`&${n}-indeterminate ${n}-inner::after`]:{background:d.colorTextDisabled}}}]};function $(d,n){const E=(0,l.TS)(n,{checkboxCls:`.${d}`,checkboxSize:n.controlInteractiveSize});return[P(E)]}z.ZP=(0,b.Z)("Checkbox",(d,n)=>{let{prefixCls:E}=n;return[$(E,d)]})},43428:function(nt,z,e){"use strict";e.d(z,{Z:function(){return yt}});var t=e(92310),l=e.n(t),b=e(33885),P=e(42978),$=e(43403),d=e(34280),n=e(59301),E=n.createContext(null),D=n.createContext({}),w=E,C=e(20068),v=e(54476),B=e(77900),T=e(10228),I=e(26112),g=e(70425),U=function(ve){var rt=ve.prefixCls,et=ve.className,j=ve.style,V=ve.children,p=ve.containerRef,a=ve.id,k=ve.onMouseEnter,me=ve.onMouseOver,u=ve.onMouseLeave,i=ve.onClick,Q=ve.onKeyDown,R=ve.onKeyUp,s={onMouseEnter:k,onMouseOver:me,onMouseLeave:u,onClick:i,onKeyDown:Q,onKeyUp:R},ne=n.useContext(D),Fe=ne.panel,we=(0,g.useComposeRef)(Fe,p);return n.createElement(n.Fragment,null,n.createElement("div",(0,v.Z)({id:a,className:l()("".concat(rt,"-content"),et),style:(0,b.Z)({},j),"aria-modal":"true",role:"dialog",ref:we},s),V))},F=U,G=e(48736);function q(Se){return typeof Se=="string"&&String(Number(Se))===Se?((0,G.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Se)):Se}function K(Se){warning(!("wrapperClassName"in Se),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Se.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Z={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function oe(Se,ve){var rt,et,j,V,p=Se.prefixCls,a=Se.open,k=Se.placement,me=Se.inline,u=Se.push,i=Se.forceRender,Q=Se.autoFocus,R=Se.keyboard,s=Se.rootClassName,ne=Se.rootStyle,Fe=Se.zIndex,we=Se.className,_e=Se.id,Pe=Se.style,Ne=Se.motion,m=Se.width,te=Se.height,ue=Se.children,ye=Se.contentWrapperStyle,Ae=Se.mask,De=Se.maskClosable,Ke=Se.maskMotion,We=Se.maskClassName,Xe=Se.maskStyle,Dt=Se.afterOpenChange,St=Se.onClose,Pt=Se.onMouseEnter,un=Se.onMouseOver,on=Se.onMouseLeave,xt=Se.onClick,Sn=Se.onKeyDown,mn=Se.onKeyUp,an=n.useRef(),wn=n.useRef(),Vn=n.useRef();n.useImperativeHandle(ve,function(){return an.current});var Zn=function(pe){var ot=pe.keyCode,Ct=pe.shiftKey;switch(ot){case T.Z.TAB:{if(ot===T.Z.TAB){if(!Ct&&document.activeElement===Vn.current){var Nt;(Nt=wn.current)===null||Nt===void 0||Nt.focus({preventScroll:!0})}else if(Ct&&document.activeElement===wn.current){var At;(At=Vn.current)===null||At===void 0||At.focus({preventScroll:!0})}}break}case T.Z.ESC:{St&&R&&(pe.stopPropagation(),St(pe));break}}};n.useEffect(function(){if(a&&Q){var Ve;(Ve=an.current)===null||Ve===void 0||Ve.focus({preventScroll:!0})}},[a]);var sr=n.useState(!1),wr=(0,P.Z)(sr,2),er=wr[0],fr=wr[1],zn=n.useContext(w),br;u===!1?br={distance:0}:u===!0?br={}:br=u||{};var jr=(rt=(et=(j=br)===null||j===void 0?void 0:j.distance)!==null&&et!==void 0?et:zn==null?void 0:zn.pushDistance)!==null&&rt!==void 0?rt:180,Fr=n.useMemo(function(){return{pushDistance:jr,push:function(){fr(!0)},pull:function(){fr(!1)}}},[jr]);n.useEffect(function(){if(a){var Ve;zn==null||(Ve=zn.push)===null||Ve===void 0||Ve.call(zn)}else{var pe;zn==null||(pe=zn.pull)===null||pe===void 0||pe.call(zn)}},[a]),n.useEffect(function(){return function(){var Ve;zn==null||(Ve=zn.pull)===null||Ve===void 0||Ve.call(zn)}},[]);var hr=Ae&&n.createElement(B.default,(0,v.Z)({key:"mask"},Ke,{visible:a}),function(Ve,pe){var ot=Ve.className,Ct=Ve.style;return n.createElement("div",{className:l()("".concat(p,"-mask"),ot,We),style:(0,b.Z)((0,b.Z)({},Ct),Xe),onClick:De&&a?St:void 0,ref:pe})}),Xn=typeof Ne=="function"?Ne(k):Ne,no={};if(er&&jr)switch(k){case"top":no.transform="translateY(".concat(jr,"px)");break;case"bottom":no.transform="translateY(".concat(-jr,"px)");break;case"left":no.transform="translateX(".concat(jr,"px)");break;default:no.transform="translateX(".concat(-jr,"px)");break}k==="left"||k==="right"?no.width=q(m):no.height=q(te);var Xr={onMouseEnter:Pt,onMouseOver:un,onMouseLeave:on,onClick:xt,onKeyDown:Sn,onKeyUp:mn},yo=n.createElement(B.default,(0,v.Z)({key:"panel"},Xn,{visible:a,forceRender:i,onVisibleChanged:function(pe){Dt==null||Dt(pe)},removeOnLeave:!1,leavedClassName:"".concat(p,"-content-wrapper-hidden")}),function(Ve,pe){var ot=Ve.className,Ct=Ve.style;return n.createElement("div",(0,v.Z)({className:l()("".concat(p,"-content-wrapper"),ot),style:(0,b.Z)((0,b.Z)((0,b.Z)({},no),Ct),ye)},(0,I.Z)(Se,{data:!0})),n.createElement(F,(0,v.Z)({id:_e,containerRef:pe,prefixCls:p,className:we,style:Pe},Xr),ue))}),ao=(0,b.Z)({},ne);return Fe&&(ao.zIndex=Fe),n.createElement(w.Provider,{value:Fr},n.createElement("div",{className:l()(p,"".concat(p,"-").concat(k),s,(V={},(0,C.Z)(V,"".concat(p,"-open"),a),(0,C.Z)(V,"".concat(p,"-inline"),me),V)),style:ao,tabIndex:-1,ref:an,onKeyDown:Zn},hr,n.createElement("div",{tabIndex:0,ref:wn,style:Z,"aria-hidden":"true","data-sentinel":"start"}),yo,n.createElement("div",{tabIndex:0,ref:Vn,style:Z,"aria-hidden":"true","data-sentinel":"end"})))}var O=n.forwardRef(oe),_=O,ee=function(ve){var rt=ve.open,et=rt===void 0?!1:rt,j=ve.prefixCls,V=j===void 0?"rc-drawer":j,p=ve.placement,a=p===void 0?"right":p,k=ve.autoFocus,me=k===void 0?!0:k,u=ve.keyboard,i=u===void 0?!0:u,Q=ve.width,R=Q===void 0?378:Q,s=ve.mask,ne=s===void 0?!0:s,Fe=ve.maskClosable,we=Fe===void 0?!0:Fe,_e=ve.getContainer,Pe=ve.forceRender,Ne=ve.afterOpenChange,m=ve.destroyOnClose,te=ve.onMouseEnter,ue=ve.onMouseOver,ye=ve.onMouseLeave,Ae=ve.onClick,De=ve.onKeyDown,Ke=ve.onKeyUp,We=ve.panelRef,Xe=n.useState(!1),Dt=(0,P.Z)(Xe,2),St=Dt[0],Pt=Dt[1],un=n.useState(!1),on=(0,P.Z)(un,2),xt=on[0],Sn=on[1];(0,d.Z)(function(){Sn(!0)},[]);var mn=xt?et:!1,an=n.useRef(),wn=n.useRef();(0,d.Z)(function(){mn&&(wn.current=document.activeElement)},[mn]);var Vn=function(fr){var zn;if(Pt(fr),Ne==null||Ne(fr),!fr&&wn.current&&!((zn=an.current)!==null&&zn!==void 0&&zn.contains(wn.current))){var br;(br=wn.current)===null||br===void 0||br.focus({preventScroll:!0})}},Zn=n.useMemo(function(){return{panel:We}},[We]);if(!Pe&&!St&&!mn&&m)return null;var sr={onMouseEnter:te,onMouseOver:ue,onMouseLeave:ye,onClick:Ae,onKeyDown:De,onKeyUp:Ke},wr=(0,b.Z)((0,b.Z)({},ve),{},{open:mn,prefixCls:V,placement:a,autoFocus:me,keyboard:i,width:R,mask:ne,maskClosable:we,inline:_e===!1,afterOpenChange:Vn,ref:an},sr);return n.createElement(D.Provider,{value:Zn},n.createElement($.Z,{open:mn||Pe||St,autoDestroy:!1,getContainer:_e,autoLock:ne&&(mn||St)},n.createElement(_,wr)))},le=ee,X=le,h=e(62892),N=e(36355),de=e(32441),ae=e(47729),L=Se=>{const{prefixCls:ve,title:rt,footer:et,extra:j,closeIcon:V,closable:p,onClose:a,headerStyle:k,drawerStyle:me,bodyStyle:u,footerStyle:i,children:Q}=Se,R=n.useCallback(_e=>n.createElement("button",{type:"button",onClick:a,"aria-label":"Close",className:`${ve}-close`},_e),[a]),[s,ne]=(0,ae.Z)(p,V,R,void 0,!0),Fe=n.useMemo(()=>!rt&&!s?null:n.createElement("div",{style:k,className:l()(`${ve}-header`,{[`${ve}-header-close-only`]:s&&!rt&&!j})},n.createElement("div",{className:`${ve}-header-title`},ne,rt&&n.createElement("div",{className:`${ve}-title`},rt)),j&&n.createElement("div",{className:`${ve}-extra`},j)),[s,ne,j,k,ve,rt]),we=n.useMemo(()=>{if(!et)return null;const _e=`${ve}-footer`;return n.createElement("div",{className:_e,style:i},et)},[et,i,ve]);return n.createElement("div",{className:`${ve}-wrapper-body`,style:me},Fe,n.createElement("div",{className:`${ve}-body`,style:u},Q),we)},Y=e(33234),ge=e(83116),Re=e(37613),je=Se=>{const{componentCls:ve,motionDurationSlow:rt}=Se,et={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${rt}`}}};return{[ve]:{[`${ve}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${rt}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${ve}-panel-motion`]:{"&-left":[et,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[et,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[et,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[et,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Ye=Se=>{const{componentCls:ve,zIndexPopup:rt,colorBgMask:et,colorBgElevated:j,motionDurationSlow:V,motionDurationMid:p,padding:a,paddingLG:k,fontSizeLG:me,lineHeightLG:u,lineWidth:i,lineType:Q,colorSplit:R,marginSM:s,colorIcon:ne,colorIconHover:Fe,colorText:we,fontWeightStrong:_e,footerPaddingBlock:Pe,footerPaddingInline:Ne}=Se,m=`${ve}-content-wrapper`;return{[ve]:{position:"fixed",inset:0,zIndex:rt,pointerEvents:"none","&-pure":{position:"relative",background:j,[`&${ve}-left`]:{boxShadow:Se.boxShadowDrawerLeft},[`&${ve}-right`]:{boxShadow:Se.boxShadowDrawerRight},[`&${ve}-top`]:{boxShadow:Se.boxShadowDrawerUp},[`&${ve}-bottom`]:{boxShadow:Se.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${ve}-mask`]:{position:"absolute",inset:0,zIndex:rt,background:et,pointerEvents:"auto"},[m]:{position:"absolute",zIndex:rt,maxWidth:"100vw",transition:`all ${V}`,"&-hidden":{display:"none"}},[`&-left > ${m}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Se.boxShadowDrawerLeft},[`&-right > ${m}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Se.boxShadowDrawerRight},[`&-top > ${m}`]:{top:0,insetInline:0,boxShadow:Se.boxShadowDrawerUp},[`&-bottom > ${m}`]:{bottom:0,insetInline:0,boxShadow:Se.boxShadowDrawerDown},[`${ve}-content`]:{width:"100%",height:"100%",overflow:"auto",background:j,pointerEvents:"auto"},[`${ve}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${ve}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${a}px ${k}px`,fontSize:me,lineHeight:u,borderBottom:`${i}px ${Q} ${R}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${ve}-extra`]:{flex:"none"},[`${ve}-close`]:{display:"inline-block",marginInlineEnd:s,color:ne,fontWeight:_e,fontSize:me,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${p}`,textRendering:"auto","&:focus, &:hover":{color:Fe,textDecoration:"none"}},[`${ve}-title`]:{flex:1,margin:0,color:we,fontWeight:Se.fontWeightStrong,fontSize:me,lineHeight:u},[`${ve}-body`]:{flex:1,minWidth:0,minHeight:0,padding:k,overflow:"auto"},[`${ve}-footer`]:{flexShrink:0,padding:`${Pe}px ${Ne}px`,borderTop:`${i}px ${Q} ${R}`},"&-rtl":{direction:"rtl"}}}};var tt=(0,ge.Z)("Drawer",Se=>{const ve=(0,Re.TS)(Se,{});return[Ye(ve),je(ve)]},Se=>({zIndexPopup:Se.zIndexPopupBase,footerPaddingBlock:Se.paddingXS,footerPaddingInline:Se.padding})),ze=e(11575),Be=function(Se,ve){var rt={};for(var et in Se)Object.prototype.hasOwnProperty.call(Se,et)&&ve.indexOf(et)<0&&(rt[et]=Se[et]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var j=0,et=Object.getOwnPropertySymbols(Se);j{var ve;const{rootClassName:rt,width:et,height:j,size:V="default",mask:p=!0,push:a=dt,open:k,afterOpenChange:me,onClose:u,prefixCls:i,getContainer:Q,style:R,className:s,visible:ne,afterVisibleChange:Fe}=Se,we=Be(Se,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:_e,getPrefixCls:Pe,direction:Ne,drawer:m}=n.useContext(N.E_),te=Pe("drawer",i),[ue,ye]=tt(te),Ae=Q===void 0&&_e?()=>_e(document.body):Q,De=l()({"no-mask":!p,[`${te}-rtl`]:Ne==="rtl"},rt,ye),Ke=n.useMemo(()=>et!=null?et:V==="large"?736:378,[et,V]),We=n.useMemo(()=>j!=null?j:V==="large"?736:378,[j,V]),Xe={motionName:(0,h.m)(te,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Dt=Pt=>({motionName:(0,h.m)(te,`panel-motion-${Pt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),St=(0,ze.H)();return ue(n.createElement(Y.BR,null,n.createElement(de.Ux,{status:!0,override:!0},n.createElement(X,Object.assign({prefixCls:te,onClose:u,maskMotion:Xe,motion:Dt},we,{open:k!=null?k:ne,mask:p,push:a,width:Ke,height:We,style:Object.assign(Object.assign({},m==null?void 0:m.style),R),className:l()(m==null?void 0:m.className,s),rootClassName:De,getContainer:Ae,afterOpenChange:me!=null?me:Fe,panelRef:St}),n.createElement(L,Object.assign({prefixCls:te},we,{onClose:u}))))))},st=Se=>{const{prefixCls:ve,style:rt,className:et,placement:j="right"}=Se,V=Be(Se,["prefixCls","style","className","placement"]),{getPrefixCls:p}=n.useContext(N.E_),a=p("drawer",ve),[k,me]=tt(a),u=l()(a,`${a}-pure`,`${a}-${j}`,me,et);return k(n.createElement("div",{className:u,style:rt},n.createElement(L,Object.assign({prefixCls:a},V))))};Ie._InternalPanelDoNotUseOrYouWillBeFired=st;var yt=Ie},91857:function(nt,z,e){"use strict";var t=e(59301),l=e(38819),b=e(92310),P=e.n(b),$=e(31561),d=e(70425),n=e(18929),E=e(2738),D=e(79676),w=e(53487),C=e(92343),v=e(36355),B=e(20834),T=e(40875),I=e(88088),g=e(47211);const U=null,F=Z=>{const{menu:oe,arrow:O,prefixCls:_,children:ee,trigger:le,disabled:X,dropdownRender:h,getPopupContainer:N,overlayClassName:de,rootClassName:ae,open:x,onOpenChange:L,visible:Y,onVisibleChange:ge,mouseEnterDelay:Re=.15,mouseLeaveDelay:$e=.1,autoAdjustOverflow:je=!0,placement:Ye="",overlay:tt,transitionName:ze}=Z,{getPopupContainer:Be,getPrefixCls:qe,direction:dt}=t.useContext(v.E_),Ie=t.useMemo(()=>{const s=qe();return ze!==void 0?ze:Ye.includes("top")?`${s}-slide-down`:`${s}-slide-up`},[qe,Ye,ze]),st=t.useMemo(()=>Ye?Ye.includes("Center")?Ye.slice(0,Ye.indexOf("Center")):Ye:dt==="rtl"?"bottomRight":"bottomLeft",[Ye,dt]),yt=qe("dropdown",_),[Se,ve]=(0,g.Z)(yt),[,rt]=(0,I.Z)(),et=t.Children.only(ee),j=(0,C.Tm)(et,{className:P()(`${yt}-trigger`,{[`${yt}-rtl`]:dt==="rtl"},et.props.className),disabled:X}),V=X?[]:le;let p;V&&V.includes("contextMenu")&&(p=!0);const[a,k]=(0,n.Z)(!1,{value:x!=null?x:Y}),me=(0,d.useEvent)(s=>{L==null||L(s),ge==null||ge(s),k(s)}),u=P()(de,ae,ve,{[`${yt}-rtl`]:dt==="rtl"}),i=(0,D.Z)({arrowPointAtCenter:typeof O=="object"&&O.pointAtCenter,autoAdjustOverflow:je,offset:rt.marginXXS,arrowWidth:O?rt.sizePopupArrow:0,borderRadius:rt.borderRadius}),Q=t.useCallback(()=>{k(!1)},[]),R=()=>{let s;return oe!=null&&oe.items?s=t.createElement(B.default,Object.assign({},oe)):typeof tt=="function"?s=tt():s=tt,h&&(s=h(s)),s=t.Children.only(typeof s=="string"?t.createElement("span",null,s):s),t.createElement(T.J,{prefixCls:`${yt}-menu`,expandIcon:t.createElement("span",{className:`${yt}-menu-submenu-arrow`},t.createElement(l.Z,{className:`${yt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Q,validator:ne=>{let{mode:Fe}=ne}},s)};return Se(t.createElement($.Z,Object.assign({alignPoint:p},(0,E.Z)(Z,["rootClassName"]),{mouseEnterDelay:Re,mouseLeaveDelay:$e,visible:a,builtinPlacements:i,arrow:!!O,overlayClassName:u,prefixCls:yt,getPopupContainer:N||Be,transitionName:Ie,trigger:V,overlay:R,placement:st,onVisibleChange:me}),j))};function G(Z){return Object.assign(Object.assign({},Z),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const q=(0,w.Z)(F,"dropdown",Z=>Z,G),K=Z=>t.createElement(q,Object.assign({},Z),t.createElement("span",null));F._InternalPanelDoNotUseOrYouWillBeFired=K,z.Z=F},38854:function(nt,z,e){"use strict";e.d(z,{Z:function(){return I}});var t=e(91857),l=e(92310),b=e.n(l),P=e(59301),$=e(18785),d=e(3113),n=e(36355),E=e(81327),D=e(33234),w=e(47211),C=function(g,U){var F={};for(var G in g)Object.prototype.hasOwnProperty.call(g,G)&&U.indexOf(G)<0&&(F[G]=g[G]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,G=Object.getOwnPropertySymbols(g);q{const{getPopupContainer:U,getPrefixCls:F,direction:G}=P.useContext(n.E_),{prefixCls:q,type:K="default",danger:Z,disabled:oe,loading:O,onClick:_,htmlType:ee,children:le,className:X,menu:h,arrow:N,autoFocus:de,overlay:ae,trigger:x,align:L,open:Y,onOpenChange:ge,placement:Re,getPopupContainer:$e,href:je,icon:Ye=P.createElement($.Z,null),title:tt,buttonsRender:ze=R=>R,mouseEnterDelay:Be,mouseLeaveDelay:qe,overlayClassName:dt,overlayStyle:Ie,destroyPopupOnHide:st,dropdownRender:yt}=g,Se=C(g,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),ve=F("dropdown",q),rt=`${ve}-button`,[et,j]=(0,w.Z)(ve),V={menu:h,arrow:N,autoFocus:de,align:L,disabled:oe,trigger:oe?[]:x,onOpenChange:ge,getPopupContainer:$e||U,mouseEnterDelay:Be,mouseLeaveDelay:qe,overlayClassName:dt,overlayStyle:Ie,destroyPopupOnHide:st,dropdownRender:yt},{compactSize:p,compactItemClassnames:a}=(0,D.ri)(ve,G),k=b()(rt,a,X,j);"overlay"in g&&(V.overlay=ae),"open"in g&&(V.open=Y),"placement"in g?V.placement=Re:V.placement=G==="rtl"?"bottomLeft":"bottomRight";const me=P.createElement(d.ZP,{type:K,danger:Z,disabled:oe,loading:O,onClick:_,htmlType:ee,href:je,title:tt},le),u=P.createElement(d.ZP,{type:K,danger:Z,icon:Ye}),[i,Q]=ze([me,u]);return et(P.createElement(E.Z.Compact,Object.assign({className:k,size:p,block:!0},Se),i,P.createElement(t.Z,Object.assign({},V),Q)))};v.__ANT_BUTTON=!0;var B=v;const T=t.Z;T.Button=B;var I=T},47211:function(nt,z,e){"use strict";e.d(z,{Z:function(){return C}});var t=e(17313),l=e(13826),b=e(92899),P=e(29878),$=e(19447),d=e(83116),n=e(37613),D=v=>{const{componentCls:B,menuCls:T,colorError:I,colorTextLightSolid:g}=v,U=`${T}-item`;return{[`${B}, ${B}-menu-submenu`]:{[`${T} ${U}`]:{[`&${U}-danger:not(${U}-disabled)`]:{color:I,"&:hover":{color:g,backgroundColor:I}}}}}};const w=v=>{const{componentCls:B,menuCls:T,zIndexPopup:I,dropdownArrowDistance:g,sizePopupArrow:U,antCls:F,iconCls:G,motionDurationMid:q,dropdownPaddingVertical:K,fontSize:Z,dropdownEdgeChildPadding:oe,colorTextDisabled:O,fontSizeIcon:_,controlPaddingHorizontal:ee,colorBgElevated:le}=v;return[{[B]:Object.assign(Object.assign({},(0,t.Wf)(v)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:I,display:"block","&::before":{position:"absolute",insetBlock:-g+U/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${F}-btn`]:{[`& > ${G}-down, & > ${F}-btn-icon > ${G}-down`]:{fontSize:_}},[`${B}-wrap`]:{position:"relative",[`${F}-btn > ${G}-down`]:{fontSize:_},[`${G}-down::before`]:{transition:`transform ${q}`}},[`${B}-wrap-open`]:{[`${G}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${F}-slide-down-enter${F}-slide-down-enter-active${B}-placement-bottomLeft, + &${F}-slide-down-appear${F}-slide-down-appear-active${B}-placement-bottomLeft, + &${F}-slide-down-enter${F}-slide-down-enter-active${B}-placement-bottom, + &${F}-slide-down-appear${F}-slide-down-appear-active${B}-placement-bottom, + &${F}-slide-down-enter${F}-slide-down-enter-active${B}-placement-bottomRight, + &${F}-slide-down-appear${F}-slide-down-appear-active${B}-placement-bottomRight`]:{animationName:l.fJ},[`&${F}-slide-up-enter${F}-slide-up-enter-active${B}-placement-topLeft, + &${F}-slide-up-appear${F}-slide-up-appear-active${B}-placement-topLeft, + &${F}-slide-up-enter${F}-slide-up-enter-active${B}-placement-top, + &${F}-slide-up-appear${F}-slide-up-appear-active${B}-placement-top, + &${F}-slide-up-enter${F}-slide-up-enter-active${B}-placement-topRight, + &${F}-slide-up-appear${F}-slide-up-appear-active${B}-placement-topRight`]:{animationName:l.Qt},[`&${F}-slide-down-leave${F}-slide-down-leave-active${B}-placement-bottomLeft, + &${F}-slide-down-leave${F}-slide-down-leave-active${B}-placement-bottom, + &${F}-slide-down-leave${F}-slide-down-leave-active${B}-placement-bottomRight`]:{animationName:l.Uw},[`&${F}-slide-up-leave${F}-slide-up-leave-active${B}-placement-topLeft, + &${F}-slide-up-leave${F}-slide-up-leave-active${B}-placement-top, + &${F}-slide-up-leave${F}-slide-up-leave-active${B}-placement-topRight`]:{animationName:l.ly}})},(0,$.ZP)(v,{colorBg:le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${B} ${T}`]:{position:"relative",margin:0},[`${T}-submenu-popup`]:{position:"absolute",zIndex:I,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${B}, ${B}-menu-submenu`]:{[T]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:v.borderRadiusLG,outline:"none",boxShadow:v.boxShadowSecondary},(0,t.Qy)(v)),{[`${T}-item-group-title`]:{padding:`${K}px ${ee}px`,color:v.colorTextDescription,transition:`all ${q}`},[`${T}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${T}-item-icon`]:{minWidth:Z,marginInlineEnd:v.marginXS,fontSize:v.fontSizeSM},[`${T}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${q}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${T}-item, ${T}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${K}px ${ee}px`,color:v.colorText,fontWeight:"normal",fontSize:Z,lineHeight:v.lineHeight,cursor:"pointer",transition:`all ${q}`,borderRadius:v.borderRadiusSM,"&:hover, &-active":{backgroundColor:v.controlItemBgHover}},(0,t.Qy)(v)),{"&-selected":{color:v.colorPrimary,backgroundColor:v.controlItemBgActive,"&:hover, &-active":{backgroundColor:v.controlItemBgActiveHover}},"&-disabled":{color:O,cursor:"not-allowed","&:hover":{color:O,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${v.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:v.colorSplit},[`${B}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:v.paddingXS,[`${B}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:v.colorTextDescription,fontSize:_,fontStyle:"normal"}}}),[`${T}-item-group-list`]:{margin:`0 ${v.marginXS}px`,padding:0,listStyle:"none"},[`${T}-submenu-title`]:{paddingInlineEnd:ee+v.fontSizeSM},[`${T}-submenu-vertical`]:{position:"relative"},[`${T}-submenu${T}-submenu-disabled ${B}-menu-submenu-title`]:{[`&, ${B}-menu-submenu-arrow-icon`]:{color:O,backgroundColor:le,cursor:"not-allowed"}},[`${T}-submenu-selected ${B}-menu-submenu-title`]:{color:v.colorPrimary}})}},[(0,l.oN)(v,"slide-up"),(0,l.oN)(v,"slide-down"),(0,b.Fm)(v,"move-up"),(0,b.Fm)(v,"move-down"),(0,P._y)(v,"zoom-big")]]};var C=(0,d.Z)("Dropdown",(v,B)=>{let{rootPrefixCls:T}=B;const{marginXXS:I,sizePopupArrow:g,controlHeight:U,fontSize:F,lineHeight:G,paddingXXS:q,componentCls:K,borderRadiusLG:Z}=v,oe=(U-F*G)/2,{dropdownArrowOffset:O}=(0,$.fS)({contentRadius:Z}),_=(0,n.TS)(v,{menuCls:`${K}-menu`,rootPrefixCls:T,dropdownArrowDistance:g/2+I,dropdownArrowOffset:O,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:q});return[w(_),D(_)]},v=>({zIndexPopup:v.zIndexPopupBase+50}))},8628:function(nt,z,e){"use strict";var t=e(59301),l=e(34280),b=e(56762),P=e(69507);function $(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const n=(0,t.useRef)({}),E=(0,b.Z)(),D=(0,P.ZP)();return(0,l.Z)(()=>{const w=D.subscribe(C=>{n.current=C,d&&E()});return()=>D.unsubscribe(w)},[]),n.current}z.Z=$},11611:function(nt,z,e){"use strict";e.d(z,{Z:function(){return ao}});var t=e(59301),l=e(15277),b=e(92310),P=e.n(b),$=e(54476),d=e(33885),n=e(20068),E=e(42978),D=e(76190),w=e(75931),C=e(55468),v=e(18929),B=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],T=t.createContext(null),I=0;function g(Ve,pe){var ot=t.useState(function(){return I+=1,String(I)}),Ct=(0,E.Z)(ot,1),Nt=Ct[0],At=t.useContext(T),Ut={data:pe,canPreview:Ve};return t.useEffect(function(){if(At)return At.register(Nt,Ut)},[]),t.useEffect(function(){At&&At.register(Nt,Ut)},[Ve,pe]),Nt}function U(Ve){return new Promise(function(pe){var ot=document.createElement("img");ot.onerror=function(){return pe(!1)},ot.onload=function(){return pe(!0)},ot.src=Ve})}function F(Ve){var pe=Ve.src,ot=Ve.isCustomPlaceholder,Ct=Ve.fallback,Nt=(0,t.useState)(ot?"loading":"normal"),At=(0,E.Z)(Nt,2),Ut=At[0],zt=At[1],H=(0,t.useRef)(!1),fe=Ut==="error";(0,t.useEffect)(function(){U(pe).then(function(Ze){Ze||zt("error")})},[pe]),(0,t.useEffect)(function(){ot&&!H.current?zt("loading"):fe&&zt("normal")},[pe]);var he=function(){zt("normal")},Ce=function(Le){H.current=!1,Ut==="loading"&&Le!=null&&Le.complete&&(Le.naturalWidth||Le.naturalHeight)&&(H.current=!0,he())},ke=fe&&Ct?{src:Ct}:{onLoad:he,src:pe};return[Ce,ke,Ut]}var G=e(86923),q=e(8224),K=e(10228),Z=e(48736);function oe(Ve,pe,ot,Ct){var Nt=pe+ot,At=(ot-Ct)/2;if(ot>Ct){if(pe>0)return(0,n.Z)({},Ve,At);if(pe<0&&NtCt)return(0,n.Z)({},Ve,pe<0?At:-At);return{}}function O(Ve,pe,ot,Ct){var Nt=(0,C.g1)(),At=Nt.width,Ut=Nt.height,zt=null;return Ve<=At&&pe<=Ut?zt={x:0,y:0}:(Ve>At||pe>Ut)&&(zt=(0,d.Z)((0,d.Z)({},oe("x",ot,Ve,At)),oe("y",Ct,pe,Ut))),zt}var _=e(13697),ee=e(16089),le={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function X(Ve,pe,ot,Ct){var Nt=(0,t.useRef)(null),At=(0,t.useRef)([]),Ut=(0,t.useState)(le),zt=(0,E.Z)(Ut,2),H=zt[0],fe=zt[1],he=function(Le){fe(le),Ct&&!(0,_.Z)(le,H)&&Ct({transform:le,action:Le})},Ce=function(Le,Te){Nt.current===null&&(At.current=[],Nt.current=(0,ee.Z)(function(){fe(function(Kt){var Mt=Kt;return At.current.forEach(function(Qt){Mt=(0,d.Z)((0,d.Z)({},Mt),Qt)}),Nt.current=null,Ct==null||Ct({transform:Mt,action:Te}),Mt})})),At.current.push((0,d.Z)((0,d.Z)({},H),Le))},ke=function(Le,Te,Kt,Mt){var Qt=Ve.current,Kn=Qt.width,Ln=Qt.height,Gn=Qt.offsetWidth,$r=Qt.offsetHeight,Pr=Qt.offsetLeft,Qn=Qt.offsetTop,mr=Le,ur=H.scale*Le;ur>ot?(mr=ot/H.scale,ur=ot):ur1,En=qn&&Qt>=1,Kr=X(lo,Pr,mr,S),lr=Kr.transform,Pn=Kr.resetTransform,dr=Kr.updateTransform,Gr=Kr.dispatchZoomChange,W=(0,t.useState)(!0),be=(0,E.Z)(W,2),Me=be[0],Yt=be[1],qt=lr.rotate,Zt=lr.scale,_t=lr.x,Vt=lr.y,Et=P()((0,n.Z)({},"".concat(ot,"-moving"),Yn));(0,t.useEffect)(function(){Me||Yt(!0)},[Me]);var Rt=function(){Pn("close")},Cn=function(){Gr(x+Gn,"zoomIn")},On=function(){Gr(x/(x+Gn),"zoomOut")},kn=function(){dr({rotate:qt+90},"rotateRight")},Mn=function(){dr({rotate:qt-90},"rotateLeft")},ir=function(){dr({flipX:!lr.flipX},"flipX")},An=function(){dr({flipY:!lr.flipY},"flipY")},sn=function(pt){pt==null||pt.preventDefault(),pt==null||pt.stopPropagation(),Kt>0&&(Yt(!1),Pn("prev"),Nr==null||Nr(Kt-1,Kt))},bn=function(pt){pt==null||pt.preventDefault(),pt==null||pt.stopPropagation(),Kt0&&(Hr=x/Hr),Gr(Hr,"wheel",pt.clientX,pt.clientY)}},Tr=function(pt){!fe||!zr||(pt.keyCode===K.Z.LEFT?sn():pt.keyCode===K.Z.RIGHT&&bn())},gn=function(pt){fe&&(Zt!==1?dr({x:0,y:0,scale:1},"doubleClick"):Gr(x+Gn,"doubleClick",pt.clientX,pt.clientY))};(0,t.useEffect)(function(){var yn,pt,Un,_r;if(zt){Un=(0,q.Z)(window,"mouseup",Ot,!1),_r=(0,q.Z)(window,"mousemove",Dn,!1);try{window.top!==window.self&&(yn=(0,q.Z)(window.top,"mouseup",Ot,!1),pt=(0,q.Z)(window.top,"mousemove",Dn,!1))}catch(Hr){(0,Z.Kp)(!1,"[rc-image] ".concat(Hr))}}return function(){var Hr,so,co,xo;(Hr=Un)===null||Hr===void 0||Hr.remove(),(so=_r)===null||so===void 0||so.remove(),(co=yn)===null||co===void 0||co.remove(),(xo=pt)===null||xo===void 0||xo.remove()}},[fe,Yn,_t,Vt,qt,zt]),(0,t.useEffect)(function(){var yn=(0,q.Z)(window,"keydown",Tr,!1);return function(){yn.remove()}},[fe,zr,Kt]);var Jt=t.createElement(Re,(0,$.Z)({},Cr,{width:pe.width,height:pe.height,imgRef:lo,className:"".concat(ot,"-img"),alt:Nt,style:{transform:"translate3d(".concat(lr.x,"px, ").concat(lr.y,"px, 0) scale3d(").concat(lr.flipX?"-":"").concat(Zt,", ").concat(lr.flipY?"-":"").concat(Zt,", 1) rotate(").concat(qt,"deg)"),transitionDuration:!Me&&"0s"},fallback:At,src:Ct,onWheel:vr,onMouseDown:dn,onDoubleClick:gn}));return t.createElement(t.Fragment,null,t.createElement(G.Z,(0,$.Z)({transitionName:Or,maskTransitionName:In,closable:!1,keyboard:!0,prefixCls:ot,onClose:H,visible:fe,wrapClassName:Et,rootClassName:ke,getContainer:Le},io,{afterClose:Rt}),t.createElement("div",{className:"".concat(ot,"-img-wrapper")},Dr?Dr(Jt,(0,d.Z)({transform:lr},qn?{current:Kt}:{})):Jt)),t.createElement(ae,{visible:fe,transform:lr,maskTransitionName:In,closeIcon:Ze,getContainer:Le,prefixCls:ot,rootClassName:ke,icons:Ce,countRender:Kn,showSwitch:zr,showProgress:En,current:Kt,count:Qt,scale:Zt,minScale:Pr,maxScale:mr,toolbarRender:Fn,onSwitchLeft:sn,onSwitchRight:bn,onZoomIn:Cn,onZoomOut:On,onRotateRight:kn,onRotateLeft:Mn,onFlipX:ir,onFlipY:An,onClose:H}))},je=$e,Ye=e(94480);function tt(Ve){var pe=t.useState({}),ot=(0,E.Z)(pe,2),Ct=ot[0],Nt=ot[1],At=t.useCallback(function(zt,H){return Nt(function(fe){return(0,d.Z)((0,d.Z)({},fe),{},(0,n.Z)({},zt,H))}),function(){Nt(function(fe){var he=(0,d.Z)({},fe);return delete he[zt],he})}},[]),Ut=t.useMemo(function(){return Ve?Ve.map(function(zt){if(typeof zt=="string")return{data:{src:zt}};var H={};return Object.keys(zt).forEach(function(fe){["src"].concat((0,Ye.Z)(B)).includes(fe)&&(H[fe]=zt[fe])}),{data:H}}):Object.keys(Ct).reduce(function(zt,H){var fe=Ct[H],he=fe.canPreview,Ce=fe.data;return he&&zt.push({data:Ce,id:H}),zt},[])},[Ve,Ct]);return[Ut,At]}var ze=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Be=["src"],qe=function(pe){var ot,Ct=pe.previewPrefixCls,Nt=Ct===void 0?"rc-image-preview":Ct,At=pe.children,Ut=pe.icons,zt=Ut===void 0?{}:Ut,H=pe.items,fe=pe.preview,he=pe.fallback,Ce=(0,D.Z)(fe)==="object"?fe:{},ke=Ce.visible,Ze=Ce.onVisibleChange,Le=Ce.getContainer,Te=Ce.current,Kt=Ce.movable,Mt=Ce.minScale,Qt=Ce.maxScale,Kn=Ce.countRender,Ln=Ce.closeIcon,Gn=Ce.onChange,$r=Ce.onTransform,Pr=Ce.toolbarRender,Qn=Ce.imageRender,mr=(0,w.Z)(Ce,ze),ur=tt(H),Or=(0,E.Z)(ur,2),ar=Or[0],In=Or[1],Dr=(0,v.Z)(0,{value:Te}),Cr=(0,E.Z)(Dr,2),Fn=Cr[0],S=Cr[1],Nr=(0,t.useState)(!1),io=(0,E.Z)(Nr,2),lo=io[0],Yr=io[1],ro=((ot=ar[Fn])===null||ot===void 0?void 0:ot.data)||{},Ar=ro.src,Yn=(0,w.Z)(ro,Be),Jn=(0,v.Z)(!!ke,{value:ke,onChange:function(qt,Zt){Ze==null||Ze(qt,Zt,Fn)}}),qn=(0,E.Z)(Jn,2),zr=qn[0],En=qn[1],Kr=(0,t.useState)(null),lr=(0,E.Z)(Kr,2),Pn=lr[0],dr=lr[1],Gr=t.useCallback(function(Yt,qt,Zt){var _t=ar.findIndex(function(Vt){return Vt.id===Yt});En(!0),dr({x:qt,y:Zt}),S(_t<0?0:_t),Yr(!0)},[ar]);t.useEffect(function(){zr?lo||S(0):Yr(!1)},[zr]);var W=function(qt,Zt){S(qt),Gn==null||Gn(qt,Zt)},be=function(){En(!1),dr(null)},Me=t.useMemo(function(){return{register:In,onPreview:Gr}},[In,Gr]);return t.createElement(T.Provider,{value:Me},At,t.createElement(je,(0,$.Z)({"aria-hidden":!zr,movable:Kt,visible:zr,prefixCls:Nt,closeIcon:Ln,onClose:be,mousePosition:Pn,imgCommonProps:Yn,src:Ar,fallback:he,icons:zt,minScale:Mt,maxScale:Qt,getContainer:Le,current:Fn,count:ar.length,countRender:Kn,onTransform:$r,toolbarRender:Pr,imageRender:Qn,onChange:W},mr)))},dt=qe,Ie=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],st=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],yt=function(pe){var ot=pe.src,Ct=pe.alt,Nt=pe.onPreviewClose,At=pe.prefixCls,Ut=At===void 0?"rc-image":At,zt=pe.previewPrefixCls,H=zt===void 0?"".concat(Ut,"-preview"):zt,fe=pe.placeholder,he=pe.fallback,Ce=pe.width,ke=pe.height,Ze=pe.style,Le=pe.preview,Te=Le===void 0?!0:Le,Kt=pe.className,Mt=pe.onClick,Qt=pe.onError,Kn=pe.wrapperClassName,Ln=pe.wrapperStyle,Gn=pe.rootClassName,$r=(0,w.Z)(pe,Ie),Pr=fe&&fe!==!0,Qn=(0,D.Z)(Te)==="object"?Te:{},mr=Qn.src,ur=Qn.visible,Or=ur===void 0?void 0:ur,ar=Qn.onVisibleChange,In=ar===void 0?Nt:ar,Dr=Qn.getContainer,Cr=Dr===void 0?void 0:Dr,Fn=Qn.mask,S=Qn.maskClassName,Nr=Qn.movable,io=Qn.icons,lo=Qn.scaleStep,Yr=Qn.minScale,ro=Qn.maxScale,Ar=Qn.imageRender,Yn=Qn.toolbarRender,Jn=(0,w.Z)(Qn,st),qn=mr!=null?mr:ot,zr=(0,v.Z)(!!Or,{value:Or,onChange:In}),En=(0,E.Z)(zr,2),Kr=En[0],lr=En[1],Pn=F({src:ot,isCustomPlaceholder:Pr,fallback:he}),dr=(0,E.Z)(Pn,3),Gr=dr[0],W=dr[1],be=dr[2],Me=(0,t.useState)(null),Yt=(0,E.Z)(Me,2),qt=Yt[0],Zt=Yt[1],_t=(0,t.useContext)(T),Vt=!!Te,Et=function(){lr(!1),Zt(null)},Rt=P()(Ut,Kn,Gn,(0,n.Z)({},"".concat(Ut,"-error"),be==="error")),Cn=(0,t.useMemo)(function(){var ir={};return B.forEach(function(An){pe[An]!==void 0&&(ir[An]=pe[An])}),ir},B.map(function(ir){return pe[ir]})),On=(0,t.useMemo)(function(){return(0,d.Z)((0,d.Z)({},Cn),{},{src:qn})},[qn,Cn]),kn=g(Vt,On),Mn=function(An){var sn=(0,C.os)(An.target),bn=sn.left,Ot=sn.top;_t?_t.onPreview(kn,bn,Ot):(Zt({x:bn,y:Ot}),lr(!0)),Mt==null||Mt(An)};return t.createElement(t.Fragment,null,t.createElement("div",(0,$.Z)({},$r,{className:Rt,onClick:Vt?Mn:Mt,style:(0,d.Z)({width:Ce,height:ke},Ln)}),t.createElement("img",(0,$.Z)({},Cn,{className:P()("".concat(Ut,"-img"),(0,n.Z)({},"".concat(Ut,"-img-placeholder"),fe===!0),Kt),style:(0,d.Z)({height:ke},Ze),ref:Gr},W,{width:Ce,height:ke,onError:Qt})),be==="loading"&&t.createElement("div",{"aria-hidden":"true",className:"".concat(Ut,"-placeholder")},fe),Fn&&Vt&&t.createElement("div",{className:P()("".concat(Ut,"-mask"),S),style:{display:(Ze==null?void 0:Ze.display)==="none"?"none":void 0}},Fn)),!_t&&Vt&&t.createElement(je,(0,$.Z)({"aria-hidden":!Kr,visible:Kr,prefixCls:H,onClose:Et,mousePosition:qt,src:qn,alt:Ct,fallback:he,getContainer:Cr,icons:io,movable:Nr,scaleStep:lo,minScale:Yr,maxScale:ro,rootClassName:Gn,imageRender:Ar,imgCommonProps:Cn,toolbarRender:Yn},Jn)))};yt.PreviewGroup=dt,yt.displayName="Image";var Se=yt,ve=Se,rt=e(62892),et=e(36355),j=e(31724),V=e(99267),p=e(33853),a=e(38819),k={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},me=k,u=e(7657),i=function(pe,ot){return t.createElement(u.Z,(0,$.Z)({},pe,{ref:ot,icon:me}))},Q=t.forwardRef(i),R=Q,s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},ne=s,Fe=function(pe,ot){return t.createElement(u.Z,(0,$.Z)({},pe,{ref:ot,icon:ne}))},we=t.forwardRef(Fe),_e=we,Pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},Ne=Pe,m=function(pe,ot){return t.createElement(u.Z,(0,$.Z)({},pe,{ref:ot,icon:Ne}))},te=t.forwardRef(m),ue=te,ye={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},Ae=ye,De=function(pe,ot){return t.createElement(u.Z,(0,$.Z)({},pe,{ref:ot,icon:Ae}))},Ke=t.forwardRef(De),We=Ke,Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},Dt=Xe,St=function(pe,ot){return t.createElement(u.Z,(0,$.Z)({},pe,{ref:ot,icon:Dt}))},Pt=t.forwardRef(St),un=Pt,on=e(64993),xt=e(73819),Sn=e(17313),mn=e(29878),an=e(1950),wn=e(83116),Vn=e(37613);const Zn=Ve=>({position:Ve||"absolute",inset:0}),sr=Ve=>{const{iconCls:pe,motionDurationSlow:ot,paddingXXS:Ct,marginXXS:Nt,prefixCls:At,colorTextLightSolid:Ut}=Ve;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:Ut,background:new on.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${ot}`,[`.${At}-mask-info`]:Object.assign(Object.assign({},Sn.vS),{padding:`0 ${Ct}px`,[pe]:{marginInlineEnd:Nt,svg:{verticalAlign:"baseline"}}})}},wr=Ve=>{const{previewCls:pe,modalMaskBg:ot,paddingSM:Ct,marginXL:Nt,margin:At,paddingLG:Ut,previewOperationColorDisabled:zt,previewOperationHoverColor:H,motionDurationSlow:fe,iconCls:he,colorTextLightSolid:Ce}=Ve,ke=new on.C(ot).setAlpha(.1),Ze=ke.clone().setAlpha(.2);return{[`${pe}-footer`]:{position:"fixed",bottom:Nt,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Ve.previewOperationColor},[`${pe}-progress`]:{marginBottom:At},[`${pe}-close`]:{position:"fixed",top:Nt,right:{_skip_check_:!0,value:Nt},display:"flex",color:Ce,backgroundColor:ke.toRgbString(),borderRadius:"50%",padding:Ct,outline:0,border:0,cursor:"pointer",transition:`all ${fe}`,"&:hover":{backgroundColor:Ze.toRgbString()},[`& > ${he}`]:{fontSize:Ve.previewOperationSize}},[`${pe}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${Ut}px`,backgroundColor:ke.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:Ct,padding:Ct,cursor:"pointer",transition:`all ${fe}`,userSelect:"none",[`&:not(${pe}-operations-operation-disabled):hover > ${he}`]:{color:H},"&-disabled":{color:zt,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${he}`]:{fontSize:Ve.previewOperationSize}}}}},er=Ve=>{const{modalMaskBg:pe,iconCls:ot,previewOperationColorDisabled:Ct,previewCls:Nt,zIndexPopup:At,motionDurationSlow:Ut}=Ve,zt=new on.C(pe).setAlpha(.1),H=zt.clone().setAlpha(.2);return{[`${Nt}-switch-left, ${Nt}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:At+1,display:"flex",alignItems:"center",justifyContent:"center",width:Ve.imagePreviewSwitchSize,height:Ve.imagePreviewSwitchSize,marginTop:-Ve.imagePreviewSwitchSize/2,color:Ve.previewOperationColor,background:zt.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${Ut}`,userSelect:"none","&:hover":{background:H.toRgbString()},"&-disabled":{"&, &:hover":{color:Ct,background:"transparent",cursor:"not-allowed",[`> ${ot}`]:{cursor:"not-allowed"}}},[`> ${ot}`]:{fontSize:Ve.previewOperationSize}},[`${Nt}-switch-left`]:{insetInlineStart:Ve.marginSM},[`${Nt}-switch-right`]:{insetInlineEnd:Ve.marginSM}}},fr=Ve=>{const{motionEaseOut:pe,previewCls:ot,motionDurationSlow:Ct,componentCls:Nt}=Ve;return[{[`${Nt}-preview-root`]:{[ot]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${ot}-body`]:Object.assign(Object.assign({},Zn()),{overflow:"hidden"}),[`${ot}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${Ct} ${pe} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Zn()),{transition:`transform ${Ct} ${pe} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${ot}-moving`]:{[`${ot}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Nt}-preview-root`]:{[`${ot}-wrap`]:{zIndex:Ve.zIndexPopup}}},{[`${Nt}-preview-operations-wrapper`]:{position:"fixed",zIndex:Ve.zIndexPopup+1},"&":[wr(Ve),er(Ve)]}]},zn=Ve=>{const{componentCls:pe}=Ve;return{[pe]:{position:"relative",display:"inline-block",[`${pe}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${pe}-img-placeholder`]:{backgroundColor:Ve.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${pe}-mask`]:Object.assign({},sr(Ve)),[`${pe}-mask:hover`]:{opacity:1},[`${pe}-placeholder`]:Object.assign({},Zn())}}},br=Ve=>{const{previewCls:pe}=Ve;return{[`${pe}-root`]:(0,mn._y)(Ve,"zoom"),"&":(0,an.J$)(Ve,!0)}};var jr=(0,wn.Z)("Image",Ve=>{const pe=`${Ve.componentCls}-preview`,ot=(0,Vn.TS)(Ve,{previewCls:pe,modalMaskBg:new on.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Ve.controlHeightLG});return[zn(ot),fr(ot),(0,xt.QA)((0,Vn.TS)(ot,{componentCls:pe})),br(ot)]},Ve=>({zIndexPopup:Ve.zIndexPopupBase+80,previewOperationColor:new on.C(Ve.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new on.C(Ve.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new on.C(Ve.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Ve.fontSizeIcon*1.5})),Fr=function(Ve,pe){var ot={};for(var Ct in Ve)Object.prototype.hasOwnProperty.call(Ve,Ct)&&pe.indexOf(Ct)<0&&(ot[Ct]=Ve[Ct]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Ct=Object.getOwnPropertySymbols(Ve);Nt{var{previewPrefixCls:pe,preview:ot}=Ve,Ct=Fr(Ve,["previewPrefixCls","preview"]);const{getPrefixCls:Nt}=t.useContext(et.E_),At=Nt("image",pe),Ut=`${At}-preview`,zt=Nt(),[H,fe]=jr(At),he=t.useMemo(()=>{var Ce;if(ot===!1)return ot;const ke=typeof ot=="object"?ot:{},Ze=P()(fe,(Ce=ke.rootClassName)!==null&&Ce!==void 0?Ce:"");return Object.assign(Object.assign({},ke),{transitionName:(0,rt.m)(zt,"zoom",ke.transitionName),maskTransitionName:(0,rt.m)(zt,"fade",ke.maskTransitionName),rootClassName:Ze})},[ot]);return H(t.createElement(ve.PreviewGroup,Object.assign({preview:he,previewPrefixCls:Ut,icons:hr},Ct)))},Xr=function(Ve,pe){var ot={};for(var Ct in Ve)Object.prototype.hasOwnProperty.call(Ve,Ct)&&pe.indexOf(Ct)<0&&(ot[Ct]=Ve[Ct]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Nt=0,Ct=Object.getOwnPropertySymbols(Ve);Nt{const{prefixCls:pe,preview:ot,className:Ct,rootClassName:Nt,style:At}=Ve,Ut=Xr(Ve,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:zt,locale:H=j.Z,getPopupContainer:fe,image:he}=t.useContext(et.E_),Ce=zt("image",pe),ke=zt(),Ze=H.Image||j.Z.Image,[Le,Te]=jr(Ce),Kt=P()(Nt,Te),Mt=P()(Ct,Te,he==null?void 0:he.className),Qt=t.useMemo(()=>{if(ot===!1)return ot;const Ln=typeof ot=="object"?ot:{},{getContainer:Gn}=Ln,$r=Xr(Ln,["getContainer"]);return Object.assign(Object.assign({mask:t.createElement("div",{className:`${Ce}-mask-info`},t.createElement(l.Z,null),Ze==null?void 0:Ze.preview),icons:hr},$r),{getContainer:Gn||fe,transitionName:(0,rt.m)(ke,"zoom",Ln.transitionName),maskTransitionName:(0,rt.m)(ke,"fade",Ln.maskTransitionName)})},[ot,Ze]),Kn=Object.assign(Object.assign({},he==null?void 0:he.style),At);return Le(t.createElement(ve,Object.assign({prefixCls:Ce,preview:Qt,rootClassName:Kt,className:Mt,style:Kn},Ut)))};yo.PreviewGroup=no;var ao=yo},45818:function(nt,z,e){"use strict";e.d(z,{D:function(){return q},Z:function(){return oe}});var t=e(54476),l=e(59301),b={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},P=b,$=e(7657),d=function(_,ee){return l.createElement($.Z,(0,t.Z)({},_,{ref:ee,icon:P}))},n=l.forwardRef(d),E=n,D=e(33853),w=e(38819),C=e(92310),v=e.n(C),B=e(2738),I=O=>!isNaN(parseFloat(O))&&isFinite(O),g=e(36355),U=e(84966),F=function(O,_){var ee={};for(var le in O)Object.prototype.hasOwnProperty.call(O,le)&&_.indexOf(le)<0&&(ee[le]=O[le]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,le=Object.getOwnPropertySymbols(O);X{let O=0;return function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return O+=1,`${_}${O}`}})();var oe=l.forwardRef((O,_)=>{const{prefixCls:ee,className:le,trigger:X,children:h,defaultCollapsed:N=!1,theme:de="dark",style:ae={},collapsible:x=!1,reverseArrow:L=!1,width:Y=200,collapsedWidth:ge=80,zeroWidthTriggerStyle:Re,breakpoint:$e,onCollapse:je,onBreakpoint:Ye}=O,tt=F(O,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ze}=(0,l.useContext)(U.Gs),[Be,qe]=(0,l.useState)("collapsed"in O?O.collapsed:N),[dt,Ie]=(0,l.useState)(!1);(0,l.useEffect)(()=>{"collapsed"in O&&qe(O.collapsed)},[O.collapsed]);const st=(j,V)=>{"collapsed"in O||qe(j),je==null||je(j,V)},yt=(0,l.useRef)();yt.current=j=>{Ie(j.matches),Ye==null||Ye(j.matches),Be!==j.matches&&st(j.matches,"responsive")},(0,l.useEffect)(()=>{function j(p){return yt.current(p)}let V;if(typeof window!="undefined"){const{matchMedia:p}=window;if(p&&$e&&$e in G){V=p(`(max-width: ${G[$e]})`);try{V.addEventListener("change",j)}catch(a){V.addListener(j)}j(V)}}return()=>{try{V==null||V.removeEventListener("change",j)}catch(p){V==null||V.removeListener(j)}}},[$e]),(0,l.useEffect)(()=>{const j=K("ant-sider-");return ze.addSider(j),()=>ze.removeSider(j)},[]);const Se=()=>{st(!Be,"clickTrigger")},{getPrefixCls:ve}=(0,l.useContext)(g.E_),rt=()=>{const j=ve("layout-sider",ee),V=(0,B.Z)(tt,["collapsed"]),p=Be?ge:Y,a=I(p)?`${p}px`:String(p),k=parseFloat(String(ge||0))===0?l.createElement("span",{onClick:Se,className:v()(`${j}-zero-width-trigger`,`${j}-zero-width-trigger-${L?"right":"left"}`),style:Re},X||l.createElement(E,null)):null,i={expanded:L?l.createElement(w.Z,null):l.createElement(D.Z,null),collapsed:L?l.createElement(D.Z,null):l.createElement(w.Z,null)}[Be?"collapsed":"expanded"],Q=X!==null?k||l.createElement("div",{className:`${j}-trigger`,onClick:Se,style:{width:a}},X||i):null,R=Object.assign(Object.assign({},ae),{flex:`0 0 ${a}`,maxWidth:a,minWidth:a,width:a}),s=v()(j,`${j}-${de}`,{[`${j}-collapsed`]:!!Be,[`${j}-has-trigger`]:x&&X!==null&&!k,[`${j}-below`]:!!dt,[`${j}-zero-width`]:parseFloat(a)===0},le);return l.createElement("aside",Object.assign({className:s},V,{style:R,ref:_}),l.createElement("div",{className:`${j}-children`},h),x||dt&&k?Q:null)},et=l.useMemo(()=>({siderCollapsed:Be}),[Be]);return l.createElement(q.Provider,{value:et},rt())})},84966:function(nt,z,e){"use strict";e.d(z,{VY:function(){return q},$_:function(){return G},h4:function(){return F},Gs:function(){return B},ZP:function(){return K}});var t=e(94480),l=e(92310),b=e.n(l),P=e(2738),$=e(59301),d=e(36355),n=e(83116),D=Z=>{const{componentCls:oe,bodyBg:O,lightSiderBg:_,lightTriggerBg:ee,lightTriggerColor:le}=Z;return{[`${oe}-sider-light`]:{background:_,[`${oe}-sider-trigger`]:{color:le,background:ee},[`${oe}-sider-zero-width-trigger`]:{color:le,background:ee,border:`1px solid ${O}`,borderInlineStart:0}}}};const w=Z=>{const{antCls:oe,componentCls:O,colorText:_,triggerColor:ee,footerBg:le,triggerBg:X,headerHeight:h,headerPadding:N,headerColor:de,footerPadding:ae,triggerHeight:x,zeroTriggerHeight:L,zeroTriggerWidth:Y,motionDurationMid:ge,motionDurationSlow:Re,fontSize:$e,borderRadius:je,bodyBg:Ye,headerBg:tt,siderBg:ze}=Z;return{[O]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ye,"&, *":{boxSizing:"border-box"},[`&${O}-has-sider`]:{flexDirection:"row",[`> ${O}, > ${O}-content`]:{width:0}},[`${O}-header, &${O}-footer`]:{flex:"0 0 auto"},[`${O}-sider`]:{position:"relative",minWidth:0,background:ze,transition:`all ${ge}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:x},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:x,color:ee,lineHeight:`${x}px`,textAlign:"center",background:X,cursor:"pointer",transition:`all ${ge}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:h,insetInlineEnd:-Y,zIndex:1,width:Y,height:L,color:ee,fontSize:Z.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ze,borderStartStartRadius:0,borderStartEndRadius:je,borderEndEndRadius:je,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Re} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Re}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Y,borderStartStartRadius:je,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:je}}}}},D(Z)),{"&-rtl":{direction:"rtl"}}),[`${O}-header`]:{height:h,padding:N,color:de,lineHeight:`${h}px`,background:tt,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${O}-footer`]:{padding:ae,color:_,fontSize:$e,background:le},[`${O}-content`]:{flex:"auto",minHeight:0}}};var C=(0,n.Z)("Layout",Z=>[w(Z)],Z=>{const{colorBgLayout:oe,controlHeight:O,controlHeightLG:_,colorText:ee,controlHeightSM:le,marginXXS:X,colorTextLightSolid:h,colorBgContainer:N}=Z,de=_*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:O*2,headerPadding:`0 ${de}px`,headerColor:ee,footerPadding:`${le}px ${de}px`,footerBg:oe,siderBg:"#001529",triggerHeight:_+X*2,triggerBg:"#002140",triggerColor:h,zeroTriggerWidth:_,zeroTriggerHeight:_,lightSiderBg:N,lightTriggerBg:N,lightTriggerColor:ee}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),v=function(Z,oe){var O={};for(var _ in Z)Object.prototype.hasOwnProperty.call(Z,_)&&oe.indexOf(_)<0&&(O[_]=Z[_]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,_=Object.getOwnPropertySymbols(Z);ee<_.length;ee++)oe.indexOf(_[ee])<0&&Object.prototype.propertyIsEnumerable.call(Z,_[ee])&&(O[_[ee]]=Z[_[ee]]);return O};const B=$.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function T(Z){let{suffixCls:oe,tagName:O,displayName:_}=Z;return ee=>$.forwardRef((X,h)=>$.createElement(ee,Object.assign({ref:h,suffixCls:oe,tagName:O},X)))}const I=$.forwardRef((Z,oe)=>{const{prefixCls:O,suffixCls:_,className:ee,tagName:le}=Z,X=v(Z,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:h}=$.useContext(d.E_),N=h("layout",O),[de,ae]=C(N),x=_?`${N}-${_}`:N;return de($.createElement(le,Object.assign({className:b()(O||x,ee,ae),ref:oe},X)))}),g=$.forwardRef((Z,oe)=>{const{direction:O}=$.useContext(d.E_),[_,ee]=$.useState([]),{prefixCls:le,className:X,rootClassName:h,children:N,hasSider:de,tagName:ae,style:x}=Z,L=v(Z,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Y=(0,P.Z)(L,["suffixCls"]),{getPrefixCls:ge,layout:Re}=$.useContext(d.E_),$e=ge("layout",le),[je,Ye]=C($e),tt=b()($e,{[`${$e}-has-sider`]:typeof de=="boolean"?de:_.length>0,[`${$e}-rtl`]:O==="rtl"},Re==null?void 0:Re.className,X,h,Ye),ze=$.useMemo(()=>({siderHook:{addSider:Be=>{ee(qe=>[].concat((0,t.Z)(qe),[Be]))},removeSider:Be=>{ee(qe=>qe.filter(dt=>dt!==Be))}}}),[]);return je($.createElement(B.Provider,{value:ze},$.createElement(ae,Object.assign({ref:oe,className:tt,style:Object.assign(Object.assign({},Re==null?void 0:Re.style),x)},Y),N)))}),U=T({tagName:"div",displayName:"Layout"})(g),F=T({suffixCls:"header",tagName:"header",displayName:"Header"})(I),G=T({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(I),q=T({suffixCls:"content",tagName:"main",displayName:"Content"})(I);var K=U},40875:function(nt,z,e){"use strict";e.d(z,{J:function(){return d}});var t=e(59301),l=e(33234),b=e(70425),P=function(n,E){var D={};for(var w in n)Object.prototype.hasOwnProperty.call(n,w)&&E.indexOf(w)<0&&(D[w]=n[w]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,w=Object.getOwnPropertySymbols(n);C{const{children:D}=n,w=P(n,["children"]),C=t.useContext($),v=t.useMemo(()=>Object.assign(Object.assign({},C),w),[C,w.prefixCls,w.mode,w.selectable]);return t.createElement($.Provider,{value:v},t.createElement(l.BR,null,(0,b.supportNodeRef)(D)?t.cloneElement(D,{ref:E}):D))});z.Z=$},20834:function(nt,z,e){"use strict";e.d(z,{default:function(){return et}});var t=e(15285),l=e(59301),b=e(45818),P=e(92310),$=e.n(P),d=e(36355),n=function(j,V){var p={};for(var a in j)Object.prototype.hasOwnProperty.call(j,a)&&V.indexOf(a)<0&&(p[a]=j[a]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,a=Object.getOwnPropertySymbols(j);k{const{prefixCls:V,className:p,dashed:a}=j,k=n(j,["prefixCls","className","dashed"]),{getPrefixCls:me}=l.useContext(d.E_),u=me("menu",V),i=$()({[`${u}-item-divider-dashed`]:!!a},p);return l.createElement(t.iz,Object.assign({className:i},k))},w=e(11592),C=e(2738),v=e(6848),B=e(92343),I=(0,l.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),U=j=>{var V;const{className:p,children:a,icon:k,title:me,danger:u}=j,{prefixCls:i,firstLevel:Q,direction:R,disableMenuItemTitleTooltip:s,inlineCollapsed:ne}=l.useContext(I),Fe=te=>{const ue=l.createElement("span",{className:`${i}-title-content`},a);return(!k||(0,B.l$)(a)&&a.type==="span")&&a&&te&&Q&&typeof a=="string"?l.createElement("div",{className:`${i}-inline-collapsed-noicon`},a.charAt(0)):ue},{siderCollapsed:we}=l.useContext(b.D);let _e=me;typeof me=="undefined"?_e=Q?a:"":me===!1&&(_e="");const Pe={title:_e};!we&&!ne&&(Pe.title=null,Pe.open=!1);const Ne=(0,w.Z)(a).length;let m=l.createElement(t.ck,Object.assign({},(0,C.Z)(j,["title","icon","danger"]),{className:$()({[`${i}-item-danger`]:u,[`${i}-item-only-child`]:(k?Ne+1:Ne)===1},p),title:typeof me=="string"?me:void 0}),(0,B.Tm)(k,{className:$()((0,B.l$)(k)?(V=k.props)===null||V===void 0?void 0:V.className:"",`${i}-item-icon`)}),Fe(ne));return s||(m=l.createElement(v.Z,Object.assign({},Pe,{placement:R==="rtl"?"left":"right",overlayClassName:`${i}-inline-collapsed-tooltip`}),m)),m},G=j=>{var V;const{popupClassName:p,icon:a,title:k,theme:me}=j,u=l.useContext(I),{prefixCls:i,inlineCollapsed:Q,theme:R}=u,s=(0,t.Xl)();let ne;if(!a)ne=Q&&!s.length&&k&&typeof k=="string"?l.createElement("div",{className:`${i}-inline-collapsed-noicon`},k.charAt(0)):l.createElement("span",{className:`${i}-title-content`},k);else{const we=(0,B.l$)(k)&&k.type==="span";ne=l.createElement(l.Fragment,null,(0,B.Tm)(a,{className:$()((0,B.l$)(a)?(V=a.props)===null||V===void 0?void 0:V.className:"",`${i}-item-icon`)}),we?k:l.createElement("span",{className:`${i}-title-content`},k))}const Fe=l.useMemo(()=>Object.assign(Object.assign({},u),{firstLevel:!1}),[u]);return l.createElement(I.Provider,{value:Fe},l.createElement(t.Wd,Object.assign({},(0,C.Z)(j,["icon"]),{title:ne,popupClassName:$()(i,p,`${i}-${me||R}`)})))},q=e(18785),K=e(70425),Z=e(62892),oe=e(40875),O=function(j,V){var p={};for(var a in j)Object.prototype.hasOwnProperty.call(j,a)&&V.indexOf(a)<0&&(p[a]=j[a]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,a=Object.getOwnPropertySymbols(j);k{if(V&&typeof V=="object"){const a=V,{label:k,children:me,key:u,type:i}=a,Q=O(a,["label","children","key","type"]),R=u!=null?u:`tmp-${p}`;return me||i==="group"?i==="group"?l.createElement(t.BW,Object.assign({key:R},Q,{title:k}),_(me)):l.createElement(G,Object.assign({key:R},Q,{title:k}),_(me)):i==="divider"?l.createElement(D,Object.assign({key:R},Q)):l.createElement(U,Object.assign({key:R},Q),k)}return null}).filter(V=>V)}function ee(j){return l.useMemo(()=>j&&_(j),[j])}var le=e(64993),X=e(17313),h=e(8378),N=e(13826),de=e(29878),ae=e(83116),x=e(37613),Y=j=>{const{componentCls:V,motionDurationSlow:p,horizontalLineHeight:a,colorSplit:k,lineWidth:me,lineType:u,itemPaddingInline:i}=j;return{[`${V}-horizontal`]:{lineHeight:a,border:0,borderBottom:`${me}px ${u} ${k}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${V}-item, ${V}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:i},[`> ${V}-item:hover, + > ${V}-item-active, + > ${V}-submenu ${V}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${V}-item, ${V}-submenu-title`]:{transition:[`border-color ${p}`,`background ${p}`].join(",")},[`${V}-submenu-arrow`]:{display:"none"}}}},Re=j=>{let{componentCls:V,menuArrowOffset:p}=j;return{[`${V}-rtl`]:{direction:"rtl"},[`${V}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${V}-rtl${V}-vertical, + ${V}-submenu-rtl ${V}-vertical`]:{[`${V}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${p})`},"&::after":{transform:`rotate(45deg) translateY(${p})`}}}}};const $e=j=>Object.assign({},(0,X.oN)(j));var Ye=(j,V)=>{const{componentCls:p,itemColor:a,itemSelectedColor:k,groupTitleColor:me,itemBg:u,subMenuItemBg:i,itemSelectedBg:Q,activeBarHeight:R,activeBarWidth:s,activeBarBorderWidth:ne,motionDurationSlow:Fe,motionEaseInOut:we,motionEaseOut:_e,itemPaddingInline:Pe,motionDurationMid:Ne,itemHoverColor:m,lineType:te,colorSplit:ue,itemDisabledColor:ye,dangerItemColor:Ae,dangerItemHoverColor:De,dangerItemSelectedColor:Ke,dangerItemActiveBg:We,dangerItemSelectedBg:Xe,itemHoverBg:Dt,itemActiveBg:St,menuSubMenuBg:Pt,horizontalItemSelectedColor:un,horizontalItemSelectedBg:on,horizontalItemBorderRadius:xt,horizontalItemHoverBg:Sn,popupBg:mn}=j;return{[`${p}-${V}, ${p}-${V} > ${p}`]:{color:a,background:u,[`&${p}-root:focus-visible`]:Object.assign({},$e(j)),[`${p}-item-group-title`]:{color:me},[`${p}-submenu-selected`]:{[`> ${p}-submenu-title`]:{color:k}},[`${p}-item-disabled, ${p}-submenu-disabled`]:{color:`${ye} !important`},[`${p}-item:not(${p}-item-selected):not(${p}-submenu-selected)`]:{[`&:hover, > ${p}-submenu-title:hover`]:{color:m}},[`&:not(${p}-horizontal)`]:{[`${p}-item:not(${p}-item-selected)`]:{"&:hover":{backgroundColor:Dt},"&:active":{backgroundColor:St}},[`${p}-submenu-title`]:{"&:hover":{backgroundColor:Dt},"&:active":{backgroundColor:St}}},[`${p}-item-danger`]:{color:Ae,[`&${p}-item:hover`]:{[`&:not(${p}-item-selected):not(${p}-submenu-selected)`]:{color:De}},[`&${p}-item:active`]:{background:We}},[`${p}-item a`]:{"&, &:hover":{color:"inherit"}},[`${p}-item-selected`]:{color:k,[`&${p}-item-danger`]:{color:Ke},"a, a:hover":{color:"inherit"}},[`& ${p}-item-selected`]:{backgroundColor:Q,[`&${p}-item-danger`]:{backgroundColor:Xe}},[`${p}-item, ${p}-submenu-title`]:{[`&:not(${p}-item-disabled):focus-visible`]:Object.assign({},$e(j))},[`&${p}-submenu > ${p}`]:{backgroundColor:Pt},[`&${p}-popup > ${p}`]:{backgroundColor:mn},[`&${p}-horizontal`]:Object.assign(Object.assign({},V==="dark"?{borderBottom:0}:{}),{[`> ${p}-item, > ${p}-submenu`]:{top:ne,marginTop:-ne,marginBottom:0,borderRadius:xt,"&::after":{position:"absolute",insetInline:Pe,bottom:0,borderBottom:`${R}px solid transparent`,transition:`border-color ${Fe} ${we}`,content:'""'},"&:hover, &-active, &-open":{background:Sn,"&::after":{borderBottomWidth:R,borderBottomColor:un}},"&-selected":{color:un,backgroundColor:on,"&:hover":{backgroundColor:on},"&::after":{borderBottomWidth:R,borderBottomColor:un}}}}),[`&${p}-root`]:{[`&${p}-inline, &${p}-vertical`]:{borderInlineEnd:`${ne}px ${te} ${ue}`}},[`&${p}-inline`]:{[`${p}-sub${p}-inline`]:{background:i},[`${p}-item, ${p}-submenu-title`]:ne&&s?{width:`calc(100% + ${ne}px)`}:{},[`${p}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${s}px solid ${k}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ne} ${_e}`,`opacity ${Ne} ${_e}`].join(","),content:'""'},[`&${p}-item-danger`]:{"&::after":{borderInlineEndColor:Ke}}},[`${p}-selected, ${p}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ne} ${we}`,`opacity ${Ne} ${we}`].join(",")}}}}}};const tt=j=>{const{componentCls:V,itemHeight:p,itemMarginInline:a,padding:k,menuArrowSize:me,marginXS:u,itemMarginBlock:i}=j,Q=k+me+u;return{[`${V}-item`]:{position:"relative",overflow:"hidden"},[`${V}-item, ${V}-submenu-title`]:{height:p,lineHeight:`${p}px`,paddingInline:k,overflow:"hidden",textOverflow:"ellipsis",marginInline:a,marginBlock:i,width:`calc(100% - ${a*2}px)`},[`> ${V}-item, + > ${V}-submenu > ${V}-submenu-title`]:{height:p,lineHeight:`${p}px`},[`${V}-item-group-list ${V}-submenu-title, + ${V}-submenu-title`]:{paddingInlineEnd:Q}}};var Be=j=>{const{componentCls:V,iconCls:p,itemHeight:a,colorTextLightSolid:k,dropdownWidth:me,controlHeightLG:u,motionDurationMid:i,motionEaseOut:Q,paddingXL:R,itemMarginInline:s,fontSizeLG:ne,motionDurationSlow:Fe,paddingXS:we,boxShadowSecondary:_e,collapsedWidth:Pe,collapsedIconSize:Ne}=j,m={height:a,lineHeight:`${a}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[V]:{"&-inline, &-vertical":Object.assign({[`&${V}-root`]:{boxShadow:"none"}},tt(j))},[`${V}-submenu-popup`]:{[`${V}-vertical`]:Object.assign(Object.assign({},tt(j)),{boxShadow:_e})}},{[`${V}-submenu-popup ${V}-vertical${V}-sub`]:{minWidth:me,maxHeight:`calc(100vh - ${u*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${V}-inline`]:{width:"100%",[`&${V}-root`]:{[`${V}-item, ${V}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Fe}`,`background ${Fe}`,`padding ${i} ${Q}`].join(","),[`> ${V}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${V}-sub${V}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${V}-submenu > ${V}-submenu-title`]:m,[`& ${V}-item-group-title`]:{paddingInlineStart:R}},[`${V}-item`]:m}},{[`${V}-inline-collapsed`]:{width:Pe,[`&${V}-root`]:{[`${V}-item, ${V}-submenu ${V}-submenu-title`]:{[`> ${V}-inline-collapsed-noicon`]:{fontSize:ne,textAlign:"center"}}},[`> ${V}-item, + > ${V}-item-group > ${V}-item-group-list > ${V}-item, + > ${V}-item-group > ${V}-item-group-list > ${V}-submenu > ${V}-submenu-title, + > ${V}-submenu > ${V}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ne/2}px - ${s}px)`,textOverflow:"clip",[` + ${V}-submenu-arrow, + ${V}-submenu-expand-icon + `]:{opacity:0},[`${V}-item-icon, ${p}`]:{margin:0,fontSize:Ne,lineHeight:`${a}px`,"+ span":{display:"inline-block",opacity:0}}},[`${V}-item-icon, ${p}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${V}-item-icon, ${p}`]:{display:"none"},"a, a:hover":{color:k}},[`${V}-item-group-title`]:Object.assign(Object.assign({},X.vS),{paddingInline:we})}}]};const qe=j=>{const{componentCls:V,motionDurationSlow:p,motionDurationMid:a,motionEaseInOut:k,motionEaseOut:me,iconCls:u,iconSize:i,iconMarginInlineEnd:Q}=j;return{[`${V}-item, ${V}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${p}`,`background ${p}`,`padding ${p} ${k}`].join(","),[`${V}-item-icon, ${u}`]:{minWidth:i,fontSize:i,transition:[`font-size ${a} ${me}`,`margin ${p} ${k}`,`color ${p}`].join(","),"+ span":{marginInlineStart:Q,opacity:1,transition:[`opacity ${p} ${k}`,`margin ${p}`,`color ${p}`].join(",")}},[`${V}-item-icon`]:Object.assign({},(0,X.Ro)()),[`&${V}-item-only-child`]:{[`> ${u}, > ${V}-item-icon`]:{marginInlineEnd:0}}},[`${V}-item-disabled, ${V}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${V}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},dt=j=>{const{componentCls:V,motionDurationSlow:p,motionEaseInOut:a,borderRadius:k,menuArrowSize:me,menuArrowOffset:u}=j;return{[`${V}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:j.margin,width:me,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${p} ${a}, opacity ${p}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:me*.6,height:me*.15,backgroundColor:"currentcolor",borderRadius:k,transition:[`background ${p} ${a}`,`transform ${p} ${a}`,`top ${p} ${a}`,`color ${p} ${a}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${u})`},"&::after":{transform:`rotate(-45deg) translateY(${u})`}}}}},Ie=j=>{const{antCls:V,componentCls:p,fontSize:a,motionDurationSlow:k,motionDurationMid:me,motionEaseInOut:u,paddingXS:i,padding:Q,colorSplit:R,lineWidth:s,zIndexPopup:ne,borderRadiusLG:Fe,subMenuItemBorderRadius:we,menuArrowSize:_e,menuArrowOffset:Pe,lineType:Ne,menuPanelMaskInset:m,groupTitleLineHeight:te,groupTitleFontSize:ue}=j;return[{"":{[`${p}`]:Object.assign(Object.assign({},(0,X.dF)()),{"&-hidden":{display:"none"}})},[`${p}-submenu-hidden`]:{display:"none"}},{[p]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,X.Wf)(j)),(0,X.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:a,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${k} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${p}-item`]:{flex:"none"}},[`${p}-item, ${p}-submenu, ${p}-submenu-title`]:{borderRadius:j.itemBorderRadius},[`${p}-item-group-title`]:{padding:`${i}px ${Q}px`,fontSize:ue,lineHeight:te,transition:`all ${k}`},[`&-horizontal ${p}-submenu`]:{transition:[`border-color ${k} ${u}`,`background ${k} ${u}`].join(",")},[`${p}-submenu, ${p}-submenu-inline`]:{transition:[`border-color ${k} ${u}`,`background ${k} ${u}`,`padding ${me} ${u}`].join(",")},[`${p}-submenu ${p}-sub`]:{cursor:"initial",transition:[`background ${k} ${u}`,`padding ${k} ${u}`].join(",")},[`${p}-title-content`]:{transition:`color ${k}`},[`${p}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${p}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:R,borderStyle:Ne,borderWidth:0,borderTopWidth:s,marginBlock:s,padding:0,"&-dashed":{borderStyle:"dashed"}}}),qe(j)),{[`${p}-item-group`]:{[`${p}-item-group-list`]:{margin:0,padding:0,[`${p}-item, ${p}-submenu-title`]:{paddingInline:`${a*2}px ${Q}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ne,borderRadius:Fe,boxShadow:"none",transformOrigin:"0 0",[`&${p}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${m}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:m},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:j.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:j.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:j.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:j.paddingXS},[`> ${p}`]:Object.assign(Object.assign(Object.assign({borderRadius:Fe},qe(j)),dt(j)),{[`${p}-item, ${p}-submenu > ${p}-submenu-title`]:{borderRadius:we},[`${p}-submenu-title::after`]:{transition:`transform ${k} ${u}`}})}}),dt(j)),{[`&-inline-collapsed ${p}-submenu-arrow, + &-inline ${p}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Pe})`},"&::after":{transform:`rotate(45deg) translateX(-${Pe})`}},[`${p}-submenu-open${p}-submenu-inline > ${p}-submenu-title > ${p}-submenu-arrow`]:{transform:`translateY(-${_e*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Pe})`},"&::before":{transform:`rotate(45deg) translateX(${Pe})`}}})},{[`${V}-layout-header`]:{[p]:{lineHeight:"inherit"}}}]};var st=(j,V)=>(0,ae.Z)("Menu",a=>{if(V===!1)return[];const{colorBgElevated:k,colorPrimary:me,colorTextLightSolid:u,controlHeightLG:i,fontSize:Q,darkItemColor:R,darkDangerItemColor:s,darkItemBg:ne,darkSubMenuItemBg:Fe,darkItemSelectedColor:we,darkItemSelectedBg:_e,darkDangerItemSelectedBg:Pe,darkItemHoverBg:Ne,darkGroupTitleColor:m,darkItemHoverColor:te,darkItemDisabledColor:ue,darkDangerItemHoverColor:ye,darkDangerItemSelectedColor:Ae,darkDangerItemActiveBg:De}=a,Ke=Q/7*5,We=(0,x.TS)(a,{menuArrowSize:Ke,menuHorizontalHeight:i*1.15,menuArrowOffset:`${Ke*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:k}),Xe=(0,x.TS)(We,{itemColor:R,itemHoverColor:te,groupTitleColor:m,itemSelectedColor:we,itemBg:ne,popupBg:ne,subMenuItemBg:Fe,itemActiveBg:"transparent",itemSelectedBg:_e,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ne,itemDisabledColor:ue,dangerItemColor:s,dangerItemHoverColor:ye,dangerItemSelectedColor:Ae,dangerItemActiveBg:De,dangerItemSelectedBg:Pe,menuSubMenuBg:Fe,horizontalItemSelectedColor:u,horizontalItemSelectedBg:me});return[Ie(We),Y(We),Be(We),Ye(We,"light"),Ye(Xe,"dark"),Re(We),(0,h.Z)(We),(0,N.oN)(We,"slide-up"),(0,N.oN)(We,"slide-down"),(0,de._y)(We,"zoom-big")]},a=>{const{colorPrimary:k,colorError:me,colorTextDisabled:u,colorErrorBg:i,colorText:Q,colorTextDescription:R,colorBgContainer:s,colorFillAlter:ne,colorFillContent:Fe,lineWidth:we,lineWidthBold:_e,controlItemBgActive:Pe,colorBgTextHover:Ne,controlHeightLG:m,lineHeight:te,colorBgElevated:ue,marginXXS:ye,padding:Ae,fontSize:De,controlHeightSM:Ke,fontSizeLG:We,colorTextLightSolid:Xe,colorErrorHover:Dt}=a,St=new le.C(Xe).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:a.zIndexPopupBase+50,radiusItem:a.borderRadiusLG,itemBorderRadius:a.borderRadiusLG,radiusSubMenuItem:a.borderRadiusSM,subMenuItemBorderRadius:a.borderRadiusSM,colorItemText:Q,itemColor:Q,colorItemTextHover:Q,itemHoverColor:Q,colorItemTextHoverHorizontal:k,horizontalItemHoverColor:k,colorGroupTitle:R,groupTitleColor:R,colorItemTextSelected:k,itemSelectedColor:k,colorItemTextSelectedHorizontal:k,horizontalItemSelectedColor:k,colorItemBg:s,itemBg:s,colorItemBgHover:Ne,itemHoverBg:Ne,colorItemBgActive:Fe,itemActiveBg:Pe,colorSubItemBg:ne,subMenuItemBg:ne,colorItemBgSelected:Pe,itemSelectedBg:Pe,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:_e,activeBarHeight:_e,colorActiveBarBorderSize:we,activeBarBorderWidth:we,colorItemTextDisabled:u,itemDisabledColor:u,colorDangerItemText:me,dangerItemColor:me,colorDangerItemTextHover:me,dangerItemHoverColor:me,colorDangerItemTextSelected:me,dangerItemSelectedColor:me,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:a.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:m,groupTitleLineHeight:te,collapsedWidth:m*2,popupBg:ue,itemMarginBlock:ye,itemPaddingInline:Ae,horizontalLineHeight:`${m*1.15}px`,iconSize:De,iconMarginInlineEnd:Ke-De,collapsedIconSize:We,groupTitleFontSize:De,darkItemDisabledColor:new le.C(Xe).setAlpha(.25).toRgbString(),darkItemColor:St,darkDangerItemColor:me,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Xe,darkItemSelectedBg:k,darkDangerItemSelectedBg:me,darkItemHoverBg:"transparent",darkGroupTitleColor:St,darkItemHoverColor:Xe,darkDangerItemHoverColor:Dt,darkDangerItemSelectedColor:Xe,darkDangerItemActiveBg:me}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(j),yt=function(j,V){var p={};for(var a in j)Object.prototype.hasOwnProperty.call(j,a)&&V.indexOf(a)<0&&(p[a]=j[a]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,a=Object.getOwnPropertySymbols(j);k{var p,a;const k=l.useContext(oe.Z),me=k||{},{getPrefixCls:u,getPopupContainer:i,direction:Q,menu:R}=l.useContext(d.E_),s=u(),{prefixCls:ne,className:Fe,style:we,theme:_e="light",expandIcon:Pe,_internalDisableMenuItemTitleTooltip:Ne,inlineCollapsed:m,siderCollapsed:te,items:ue,children:ye,rootClassName:Ae,mode:De,selectable:Ke,onClick:We,overflowedIndicatorPopupClassName:Xe}=j,Dt=yt(j,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),St=(0,C.Z)(Dt,["collapsedWidth"]),Pt=ee(ue)||ye;(p=me.validator)===null||p===void 0||p.call(me,{mode:De});const un=(0,K.useEvent)(function(){var er;We==null||We.apply(void 0,arguments),(er=me.onClick)===null||er===void 0||er.call(me)}),on=me.mode||De,xt=Ke!=null?Ke:me.selectable,Sn=l.useMemo(()=>te!==void 0?te:m,[m,te]),mn={horizontal:{motionName:`${s}-slide-up`},inline:(0,Z.Z)(s),other:{motionName:`${s}-zoom-big`}},an=u("menu",ne||me.prefixCls),[wn,Vn]=st(an,!k),Zn=$()(`${an}-${_e}`,R==null?void 0:R.className,Fe);let sr;if(typeof Pe=="function")sr=Pe;else if(Pe===null||Pe===!1)sr=null;else if(me.expandIcon===null||me.expandIcon===!1)sr=null;else{const er=Pe!=null?Pe:me.expandIcon;sr=(0,B.Tm)(er,{className:$()(`${an}-submenu-expand-icon`,(0,B.l$)(er)?(a=er.props)===null||a===void 0?void 0:a.className:"")})}const wr=l.useMemo(()=>({prefixCls:an,inlineCollapsed:Sn||!1,direction:Q,firstLevel:!0,theme:_e,mode:on,disableMenuItemTitleTooltip:Ne}),[an,Sn,Q,Ne,_e]);return wn(l.createElement(oe.Z.Provider,{value:null},l.createElement(I.Provider,{value:wr},l.createElement(t.ZP,Object.assign({getPopupContainer:i,overflowedIndicator:l.createElement(q.Z,null),overflowedIndicatorPopupClassName:$()(an,`${an}-${_e}`,Xe),mode:on,selectable:xt,onClick:un},St,{inlineCollapsed:Sn,style:Object.assign(Object.assign({},R==null?void 0:R.style),we),className:Zn,prefixCls:an,direction:Q,defaultMotions:mn,expandIcon:sr,ref:V,rootClassName:$()(Ae,Vn)}),Pt))))});const rt=(0,l.forwardRef)((j,V)=>{const p=(0,l.useRef)(null),a=l.useContext(b.D);return(0,l.useImperativeHandle)(V,()=>({menu:p.current,focus:k=>{var me;(me=p.current)===null||me===void 0||me.focus(k)}})),l.createElement(ve,Object.assign({ref:p},j,a))});rt.Item=U,rt.SubMenu=G,rt.Divider=D,rt.ItemGroup=t.BW;var et=rt},58421:function(nt,z,e){"use strict";e.d(z,{Z:function(){return me}});var t=e(54476),l=e(59301),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},P=b,$=e(7657),d=function(i,Q){return l.createElement($.Z,(0,t.Z)({},i,{ref:Q,icon:P}))},n=l.forwardRef(d),E=n,D=e(49198),w=e(33853),C=e(38819),v=e(92310),B=e.n(v),T=e(20068),I=e(33885),g=e(67732),U=e(83652),F=e(42403),G=e(158),q=e(26112),K={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Z=K,oe=e(91735),O=function(u){(0,F.Z)(Q,u);var i=(0,G.Z)(Q);function Q(){var R;(0,g.Z)(this,Q);for(var s=arguments.length,ne=new Array(s),Fe=0;Fe=0||we.relatedTarget.className.indexOf("".concat(m,"-item"))>=0))&&Ne(R.getValidValue()))},R.go=function(we){var _e=R.state.goInputText;_e!==""&&(we.keyCode===Z.ENTER||we.type==="click")&&(R.setState({goInputText:""}),R.props.quickGo(R.getValidValue()))},R}return(0,U.Z)(Q,[{key:"getPageSizeOptions",value:function(){var s=this.props,ne=s.pageSize,Fe=s.pageSizeOptions;return Fe.some(function(we){return we.toString()===ne.toString()})?Fe:Fe.concat([ne.toString()]).sort(function(we,_e){var Pe=Number.isNaN(Number(we))?0:Number(we),Ne=Number.isNaN(Number(_e))?0:Number(_e);return Pe-Ne})}},{key:"render",value:function(){var s=this,ne=this.props,Fe=ne.pageSize,we=ne.locale,_e=ne.rootPrefixCls,Pe=ne.changeSize,Ne=ne.quickGo,m=ne.goButton,te=ne.selectComponentClass,ue=ne.buildOptionText,ye=ne.selectPrefixCls,Ae=ne.disabled,De=this.state.goInputText,Ke="".concat(_e,"-options"),We=te,Xe=null,Dt=null,St=null;if(!Pe&&!Ne)return null;var Pt=this.getPageSizeOptions();if(Pe&&We){var un=Pt.map(function(on,xt){return l.createElement(We.Option,{key:xt,value:on.toString()},(ue||s.buildOptionText)(on))});Xe=l.createElement(We,{disabled:Ae,prefixCls:ye,showSearch:!1,className:"".concat(Ke,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Fe||Pt[0]).toString(),onChange:this.changeSize,getPopupContainer:function(xt){return xt.parentNode},"aria-label":we.page_size,defaultOpen:!1},un)}return Ne&&(m&&(St=typeof m=="boolean"?l.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Ae,className:"".concat(Ke,"-quick-jumper-button")},we.jump_to_confirm):l.createElement("span",{onClick:this.go,onKeyUp:this.go},m)),Dt=l.createElement("div",{className:"".concat(Ke,"-quick-jumper")},we.jump_to,l.createElement("input",{disabled:Ae,type:"text",value:De,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":we.page}),we.page,St)),l.createElement("li",{className:"".concat(Ke)},Xe,Dt)}}]),Q}(l.Component);O.defaultProps={pageSizeOptions:["10","20","50","100"]};var _=O,ee=function(i){var Q,R=i.rootPrefixCls,s=i.page,ne=i.active,Fe=i.className,we=i.showTitle,_e=i.onClick,Pe=i.onKeyPress,Ne=i.itemRender,m="".concat(R,"-item"),te=B()(m,"".concat(m,"-").concat(s),(Q={},(0,T.Z)(Q,"".concat(m,"-active"),ne),(0,T.Z)(Q,"".concat(m,"-disabled"),!s),(0,T.Z)(Q,i.className,Fe),Q)),ue=function(){_e(s)},ye=function(Ke){Pe(Ke,_e,s)},Ae=Ne(s,"page",l.createElement("a",{rel:"nofollow"},s));return Ae?l.createElement("li",{title:we?s.toString():null,className:te,onClick:ue,onKeyPress:ye,tabIndex:0},Ae):null},le=ee;function X(){}function h(u){var i=Number(u);return typeof i=="number"&&!Number.isNaN(i)&&isFinite(i)&&Math.floor(i)===i}var N=function(i,Q,R){return R};function de(u,i,Q){var R=typeof u=="undefined"?i.pageSize:u;return Math.floor((Q.total-1)/R)+1}var ae=function(u){(0,F.Z)(Q,u);var i=(0,G.Z)(Q);function Q(R){var s;(0,g.Z)(this,Q),s=i.call(this,R),s.paginationNode=l.createRef(),s.getJumpPrevPage=function(){return Math.max(1,s.state.current-(s.props.showLessItems?3:5))},s.getJumpNextPage=function(){return Math.min(de(void 0,s.state,s.props),s.state.current+(s.props.showLessItems?3:5))},s.getItemIcon=function(Pe,Ne){var m=s.props.prefixCls,te=Pe||l.createElement("button",{type:"button","aria-label":Ne,className:"".concat(m,"-item-link")});return typeof Pe=="function"&&(te=l.createElement(Pe,(0,I.Z)({},s.props))),te},s.isValid=function(Pe){var Ne=s.props.total;return h(Pe)&&Pe!==s.state.current&&h(Ne)&&Ne>0},s.shouldDisplayQuickJumper=function(){var Pe=s.props,Ne=Pe.showQuickJumper,m=Pe.total,te=s.state.pageSize;return m<=te?!1:Ne},s.handleKeyDown=function(Pe){(Pe.keyCode===Z.ARROW_UP||Pe.keyCode===Z.ARROW_DOWN)&&Pe.preventDefault()},s.handleKeyUp=function(Pe){var Ne=s.getValidValue(Pe),m=s.state.currentInputValue;Ne!==m&&s.setState({currentInputValue:Ne}),Pe.keyCode===Z.ENTER?s.handleChange(Ne):Pe.keyCode===Z.ARROW_UP?s.handleChange(Ne-1):Pe.keyCode===Z.ARROW_DOWN&&s.handleChange(Ne+1)},s.handleBlur=function(Pe){var Ne=s.getValidValue(Pe);s.handleChange(Ne)},s.changePageSize=function(Pe){var Ne=s.state.current,m=de(Pe,s.state,s.props);Ne=Ne>m?m:Ne,m===0&&(Ne=s.state.current),typeof Pe=="number"&&("pageSize"in s.props||s.setState({pageSize:Pe}),"current"in s.props||s.setState({current:Ne,currentInputValue:Ne})),s.props.onShowSizeChange(Ne,Pe),"onChange"in s.props&&s.props.onChange&&s.props.onChange(Ne,Pe)},s.handleChange=function(Pe){var Ne=s.props,m=Ne.disabled,te=Ne.onChange,ue=s.state,ye=ue.pageSize,Ae=ue.current,De=ue.currentInputValue;if(s.isValid(Pe)&&!m){var Ke=de(void 0,s.state,s.props),We=Pe;return Pe>Ke?We=Ke:Pe<1&&(We=1),"current"in s.props||s.setState({current:We}),We!==De&&s.setState({currentInputValue:We}),te(We,ye),We}return Ae},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?m-2:0),ue=2;ue=Fe?_e=Fe:_e=Number(ne),_e}},{key:"getShowSizeChanger",value:function(){var s=this.props,ne=s.showSizeChanger,Fe=s.total,we=s.totalBoundaryShowSizeChanger;return typeof ne!="undefined"?ne:Fe>we}},{key:"render",value:function(){var s=this.props,ne=s.prefixCls,Fe=s.className,we=s.style,_e=s.disabled,Pe=s.hideOnSinglePage,Ne=s.total,m=s.locale,te=s.showQuickJumper,ue=s.showLessItems,ye=s.showTitle,Ae=s.showTotal,De=s.simple,Ke=s.itemRender,We=s.showPrevNextJumpers,Xe=s.jumpPrevIcon,Dt=s.jumpNextIcon,St=s.selectComponentClass,Pt=s.selectPrefixCls,un=s.pageSizeOptions,on=this.state,xt=on.current,Sn=on.pageSize,mn=on.currentInputValue;if(Pe===!0&&Ne<=Sn)return null;var an=de(void 0,this.state,this.props),wn=[],Vn=null,Zn=null,sr=null,wr=null,er=null,fr=te&&te.goButton,zn=ue?1:2,br=xt-1>0?xt-1:0,jr=xt+1Ne?Ne:xt*Sn]));if(De){fr&&(typeof fr=="boolean"?er=l.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},m.jump_to_confirm):er=l.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},fr),er=l.createElement("li",{title:ye?"".concat(m.jump_to).concat(xt,"/").concat(an):null,className:"".concat(ne,"-simple-pager")},er));var Xn=this.renderPrev(br);return l.createElement("ul",(0,t.Z)({className:B()(ne,"".concat(ne,"-simple"),(0,T.Z)({},"".concat(ne,"-disabled"),_e),Fe),style:we,ref:this.paginationNode},Fr),hr,Xn?l.createElement("li",{title:ye?m.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:B()("".concat(ne,"-prev"),(0,T.Z)({},"".concat(ne,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Xn):null,l.createElement("li",{title:ye?"".concat(xt,"/").concat(an):null,className:"".concat(ne,"-simple-pager")},l.createElement("input",{type:"text",value:mn,disabled:_e,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),l.createElement("span",{className:"".concat(ne,"-slash")},"/"),an),l.createElement("li",{title:ye?m.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:B()("".concat(ne,"-next"),(0,T.Z)({},"".concat(ne,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(jr)),er)}if(an<=3+zn*2){var no={locale:m,rootPrefixCls:ne,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:ye,itemRender:Ke};an||wn.push(l.createElement(le,(0,t.Z)({},no,{key:"noPager",page:1,className:"".concat(ne,"-item-disabled")})));for(var Xr=1;Xr<=an;Xr+=1){var yo=xt===Xr;wn.push(l.createElement(le,(0,t.Z)({},no,{key:Xr,page:Xr,active:yo})))}}else{var ao=ue?m.prev_3:m.prev_5,Ve=ue?m.next_3:m.next_5,pe=Ke(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Xe,"prev page")),ot=Ke(this.getJumpNextPage(),"jump-next",this.getItemIcon(Dt,"next page"));We&&(Vn=pe?l.createElement("li",{title:ye?ao:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:B()("".concat(ne,"-jump-prev"),(0,T.Z)({},"".concat(ne,"-jump-prev-custom-icon"),!!Xe))},pe):null,Zn=ot?l.createElement("li",{title:ye?Ve:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:B()("".concat(ne,"-jump-next"),(0,T.Z)({},"".concat(ne,"-jump-next-custom-icon"),!!Dt))},ot):null),wr=l.createElement(le,{locale:m,last:!0,rootPrefixCls:ne,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:an,page:an,active:!1,showTitle:ye,itemRender:Ke}),sr=l.createElement(le,{locale:m,rootPrefixCls:ne,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:ye,itemRender:Ke});var Ct=Math.max(1,xt-zn),Nt=Math.min(xt+zn,an);xt-1<=zn&&(Nt=1+zn*2),an-xt<=zn&&(Ct=an-zn*2);for(var At=Ct;At<=Nt;At+=1){var Ut=xt===At;wn.push(l.createElement(le,{locale:m,rootPrefixCls:ne,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:At,page:At,active:Ut,showTitle:ye,itemRender:Ke}))}xt-1>=zn*2&&xt!==3&&(wn[0]=(0,l.cloneElement)(wn[0],{className:"".concat(ne,"-item-after-jump-prev")}),wn.unshift(Vn)),an-xt>=zn*2&&xt!==an-2&&(wn[wn.length-1]=(0,l.cloneElement)(wn[wn.length-1],{className:"".concat(ne,"-item-before-jump-next")}),wn.push(Zn)),Ct!==1&&wn.unshift(sr),Nt!==an&&wn.push(wr)}var zt=!this.hasPrev()||!an,H=!this.hasNext()||!an,fe=this.renderPrev(br),he=this.renderNext(jr);return l.createElement("ul",(0,t.Z)({className:B()(ne,Fe,(0,T.Z)({},"".concat(ne,"-disabled"),_e)),style:we,ref:this.paginationNode},Fr),hr,fe?l.createElement("li",{title:ye?m.prev_page:null,onClick:this.prev,tabIndex:zt?null:0,onKeyPress:this.runIfEnterPrev,className:B()("".concat(ne,"-prev"),(0,T.Z)({},"".concat(ne,"-disabled"),zt)),"aria-disabled":zt},fe):null,wn,he?l.createElement("li",{title:ye?m.next_page:null,onClick:this.next,tabIndex:H?null:0,onKeyPress:this.runIfEnterNext,className:B()("".concat(ne,"-next"),(0,T.Z)({},"".concat(ne,"-disabled"),H)),"aria-disabled":H},he):null,l.createElement(_,{disabled:_e,locale:m,rootPrefixCls:ne,selectComponentClass:St,selectPrefixCls:Pt,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:xt,pageSize:Sn,pageSizeOptions:un,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:fr}))}}],[{key:"getDerivedStateFromProps",value:function(s,ne){var Fe={};if("current"in s&&(Fe.current=s.current,s.current!==ne.current&&(Fe.currentInputValue=Fe.current)),"pageSize"in s&&s.pageSize!==ne.pageSize){var we=ne.current,_e=de(s.pageSize,ne,s);we=we>_e?_e:we,"current"in s||(Fe.current=we,Fe.currentInputValue=we),Fe.pageSize=s.pageSize}return Fe}}]),Q}(l.Component);ae.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:X,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:X,locale:oe.Z,style:{},itemRender:N,totalBoundaryShowSizeChanger:50};var x=ae,L=e(22075),Y=e(36355),ge=e(19716),Re=e(8628),$e=e(9763),je=e(57809);const Ye=u=>l.createElement(je.default,Object.assign({},u,{showSearch:!0,size:"small"})),tt=u=>l.createElement(je.default,Object.assign({},u,{showSearch:!0,size:"middle"}));Ye.Option=je.default.Option,tt.Option=je.default.Option;var ze=e(9937),Be=e(17313),qe=e(83116),dt=e(37613);const Ie=u=>{const{componentCls:i}=u;return{[`${i}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${i}-item-link`]:{color:u.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${i}-item-link`]:{color:u.colorTextDisabled,cursor:"not-allowed"}}},[`&${i}-disabled`]:{cursor:"not-allowed",[`${i}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:u.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:u.colorBorder,backgroundColor:u.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:u.itemActiveBgDisabled},a:{color:u.itemActiveColorDisabled}}},[`${i}-item-link`]:{color:u.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${i}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${i}-simple-pager`]:{color:u.colorTextDisabled},[`${i}-jump-prev, ${i}-jump-next`]:{[`${i}-item-link-icon`]:{opacity:0},[`${i}-item-ellipsis`]:{opacity:1}}},[`&${i}-simple`]:{[`${i}-prev, ${i}-next`]:{[`&${i}-disabled ${i}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},st=u=>{const{componentCls:i}=u;return{[`&${i}-mini ${i}-total-text, &${i}-mini ${i}-simple-pager`]:{height:u.itemSizeSM,lineHeight:`${u.itemSizeSM}px`},[`&${i}-mini ${i}-item`]:{minWidth:u.itemSizeSM,height:u.itemSizeSM,margin:0,lineHeight:`${u.itemSizeSM-2}px`},[`&${i}-mini:not(${i}-disabled) ${i}-item:not(${i}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:u.colorBgTextHover},"&:active":{backgroundColor:u.colorBgTextActive}},[`&${i}-mini ${i}-prev, &${i}-mini ${i}-next`]:{minWidth:u.itemSizeSM,height:u.itemSizeSM,margin:0,lineHeight:`${u.itemSizeSM}px`},[`&${i}-mini:not(${i}-disabled)`]:{[`${i}-prev, ${i}-next`]:{[`&:hover ${i}-item-link`]:{backgroundColor:u.colorBgTextHover},[`&:active ${i}-item-link`]:{backgroundColor:u.colorBgTextActive},[`&${i}-disabled:hover ${i}-item-link`]:{backgroundColor:"transparent"}}},[` + &${i}-mini ${i}-prev ${i}-item-link, + &${i}-mini ${i}-next ${i}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:u.itemSizeSM,lineHeight:`${u.itemSizeSM}px`}},[`&${i}-mini ${i}-jump-prev, &${i}-mini ${i}-jump-next`]:{height:u.itemSizeSM,marginInlineEnd:0,lineHeight:`${u.itemSizeSM}px`},[`&${i}-mini ${i}-options`]:{marginInlineStart:u.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:u.miniOptionsSizeChangerTop},"&-quick-jumper":{height:u.itemSizeSM,lineHeight:`${u.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,ze.x0)(u)),{width:u.paginationMiniQuickJumperInputWidth,height:u.controlHeightSM})}}}},yt=u=>{const{componentCls:i}=u;return{[` + &${i}-simple ${i}-prev, + &${i}-simple ${i}-next + `]:{height:u.itemSizeSM,lineHeight:`${u.itemSizeSM}px`,verticalAlign:"top",[`${i}-item-link`]:{height:u.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:u.colorBgTextHover},"&:active":{backgroundColor:u.colorBgTextActive},"&::after":{height:u.itemSizeSM,lineHeight:`${u.itemSizeSM}px`}}},[`&${i}-simple ${i}-simple-pager`]:{display:"inline-block",height:u.itemSizeSM,marginInlineEnd:u.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:u.marginXS,padding:`0 ${u.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:u.itemInputBg,border:`${u.lineWidth}px ${u.lineType} ${u.colorBorder}`,borderRadius:u.borderRadius,outline:"none",transition:`border-color ${u.motionDurationMid}`,color:"inherit","&:hover":{borderColor:u.colorPrimary},"&:focus":{borderColor:u.colorPrimaryHover,boxShadow:`${u.inputOutlineOffset}px 0 ${u.controlOutlineWidth}px ${u.controlOutline}`},"&[disabled]":{color:u.colorTextDisabled,backgroundColor:u.colorBgContainerDisabled,borderColor:u.colorBorder,cursor:"not-allowed"}}}}},Se=u=>{const{componentCls:i}=u;return{[`${i}-jump-prev, ${i}-jump-next`]:{outline:0,[`${i}-item-container`]:{position:"relative",[`${i}-item-link-icon`]:{color:u.colorPrimary,fontSize:u.fontSizeSM,opacity:0,transition:`all ${u.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${i}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:u.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:u.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:u.paginationEllipsisTextIndent,opacity:1,transition:`all ${u.motionDurationMid}`}},"&:hover":{[`${i}-item-link-icon`]:{opacity:1},[`${i}-item-ellipsis`]:{opacity:0}}},[` + ${i}-prev, + ${i}-jump-prev, + ${i}-jump-next + `]:{marginInlineEnd:u.marginXS},[` + ${i}-prev, + ${i}-next, + ${i}-jump-prev, + ${i}-jump-next + `]:{display:"inline-block",minWidth:u.itemSize,height:u.itemSize,color:u.colorText,fontFamily:u.fontFamily,lineHeight:`${u.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:u.borderRadius,cursor:"pointer",transition:`all ${u.motionDurationMid}`},[`${i}-prev, ${i}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:u.colorText,cursor:"pointer",userSelect:"none"},[`${i}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:u.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${u.lineWidth}px ${u.lineType} transparent`,borderRadius:u.borderRadius,outline:"none",transition:`all ${u.motionDurationMid}`},[`&:hover ${i}-item-link`]:{backgroundColor:u.colorBgTextHover},[`&:active ${i}-item-link`]:{backgroundColor:u.colorBgTextActive},[`&${i}-disabled:hover`]:{[`${i}-item-link`]:{backgroundColor:"transparent"}}},[`${i}-slash`]:{marginInlineEnd:u.paginationSlashMarginInlineEnd,marginInlineStart:u.paginationSlashMarginInlineStart},[`${i}-options`]:{display:"inline-block",marginInlineStart:u.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:u.controlHeight,marginInlineStart:u.marginXS,lineHeight:`${u.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,ze.ik)(u)),{width:u.controlHeightLG*1.25,height:u.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:u.marginXS,marginInlineEnd:u.marginXS})}}}},ve=u=>{const{componentCls:i}=u;return{[`${i}-item`]:{display:"inline-block",minWidth:u.itemSize,height:u.itemSize,marginInlineEnd:u.marginXS,fontFamily:u.fontFamily,lineHeight:`${u.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${u.lineWidth}px ${u.lineType} transparent`,borderRadius:u.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${u.paginationItemPaddingInline}px`,color:u.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${i}-item-active)`]:{"&:hover":{transition:`all ${u.motionDurationMid}`,backgroundColor:u.colorBgTextHover},"&:active":{backgroundColor:u.colorBgTextActive}},"&-active":{fontWeight:u.fontWeightStrong,backgroundColor:u.itemActiveBg,borderColor:u.colorPrimary,a:{color:u.colorPrimary},"&:hover":{borderColor:u.colorPrimaryHover},"&:hover a":{color:u.colorPrimaryHover}}}}},rt=u=>{const{componentCls:i}=u;return{[i]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)(u)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${i}-total-text`]:{display:"inline-block",height:u.itemSize,marginInlineEnd:u.marginXS,lineHeight:`${u.itemSize-2}px`,verticalAlign:"middle"}}),ve(u)),Se(u)),yt(u)),st(u)),Ie(u)),{[`@media only screen and (max-width: ${u.screenLG}px)`]:{[`${i}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${u.screenSM}px)`]:{[`${i}-options`]:{display:"none"}}}),[`&${u.componentCls}-rtl`]:{direction:"rtl"}}},et=u=>{const{componentCls:i}=u;return{[`${i}${i}-disabled:not(${i}-mini)`]:{"&, &:hover":{[`${i}-item-link`]:{borderColor:u.colorBorder}},"&:focus-visible":{[`${i}-item-link`]:{borderColor:u.colorBorder}},[`${i}-item, ${i}-item-link`]:{backgroundColor:u.colorBgContainerDisabled,borderColor:u.colorBorder,[`&:hover:not(${i}-item-active)`]:{backgroundColor:u.colorBgContainerDisabled,borderColor:u.colorBorder,a:{color:u.colorTextDisabled}},[`&${i}-item-active`]:{backgroundColor:u.itemActiveBgDisabled}},[`${i}-prev, ${i}-next`]:{"&:hover button":{backgroundColor:u.colorBgContainerDisabled,borderColor:u.colorBorder,color:u.colorTextDisabled},[`${i}-item-link`]:{backgroundColor:u.colorBgContainerDisabled,borderColor:u.colorBorder}}},[`${i}:not(${i}-mini)`]:{[`${i}-prev, ${i}-next`]:{"&:hover button":{borderColor:u.colorPrimaryHover,backgroundColor:u.itemBg},[`${i}-item-link`]:{backgroundColor:u.itemLinkBg,borderColor:u.colorBorder},[`&:hover ${i}-item-link`]:{borderColor:u.colorPrimary,backgroundColor:u.itemBg,color:u.colorPrimary},[`&${i}-disabled`]:{[`${i}-item-link`]:{borderColor:u.colorBorder,color:u.colorTextDisabled}}},[`${i}-item`]:{backgroundColor:u.itemBg,border:`${u.lineWidth}px ${u.lineType} ${u.colorBorder}`,[`&:hover:not(${i}-item-active)`]:{borderColor:u.colorPrimary,backgroundColor:u.itemBg,a:{color:u.colorPrimary}},"&-active":{borderColor:u.colorPrimary}}}}},j=u=>{const{componentCls:i}=u;return{[`${i}:not(${i}-disabled)`]:{[`${i}-item`]:Object.assign({},(0,Be.Qy)(u)),[`${i}-jump-prev, ${i}-jump-next`]:{"&:focus-visible":Object.assign({[`${i}-item-link-icon`]:{opacity:1},[`${i}-item-ellipsis`]:{opacity:0}},(0,Be.oN)(u))},[`${i}-prev, ${i}-next`]:{[`&:focus-visible ${i}-item-link`]:Object.assign({},(0,Be.oN)(u))}}}};var V=(0,qe.Z)("Pagination",u=>{const i=(0,dt.TS)(u,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:u.marginXXS/2,paginationMiniQuickJumperInputWidth:u.controlHeightLG*1.1,paginationItemPaddingInline:u.marginXXS*1.5,paginationEllipsisLetterSpacing:u.marginXXS/2,paginationSlashMarginInlineStart:u.marginXXS,paginationSlashMarginInlineEnd:u.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,ze.e5)(u),(0,ze.TM)(u));return[rt(i),j(i),u.wireframe&&et(i)]},u=>({itemBg:u.colorBgContainer,itemSize:u.controlHeight,itemSizeSM:u.controlHeightSM,itemActiveBg:u.colorBgContainer,itemLinkBg:u.colorBgContainer,itemActiveColorDisabled:u.colorTextDisabled,itemActiveBgDisabled:u.controlItemBgActiveDisabled,itemInputBg:u.colorBgContainer,miniOptionsSizeChangerTop:0})),p=function(u,i){var Q={};for(var R in u)Object.prototype.hasOwnProperty.call(u,R)&&i.indexOf(R)<0&&(Q[R]=u[R]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,R=Object.getOwnPropertySymbols(u);s{const{prefixCls:i,selectPrefixCls:Q,className:R,rootClassName:s,style:ne,size:Fe,locale:we,selectComponentClass:_e,responsive:Pe,showSizeChanger:Ne}=u,m=p(u,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:te}=(0,Re.Z)(Pe),{getPrefixCls:ue,direction:ye,pagination:Ae={}}=l.useContext(Y.E_),De=ue("pagination",i),[Ke,We]=V(De),Xe=Ne!=null?Ne:Ae.showSizeChanger,Dt=l.useMemo(()=>{const an=l.createElement("span",{className:`${De}-item-ellipsis`},"\u2022\u2022\u2022"),wn=l.createElement("button",{className:`${De}-item-link`,type:"button",tabIndex:-1},ye==="rtl"?l.createElement(C.Z,null):l.createElement(w.Z,null)),Vn=l.createElement("button",{className:`${De}-item-link`,type:"button",tabIndex:-1},ye==="rtl"?l.createElement(w.Z,null):l.createElement(C.Z,null)),Zn=l.createElement("a",{className:`${De}-item-link`},l.createElement("div",{className:`${De}-item-container`},ye==="rtl"?l.createElement(D.Z,{className:`${De}-item-link-icon`}):l.createElement(E,{className:`${De}-item-link-icon`}),an)),sr=l.createElement("a",{className:`${De}-item-link`},l.createElement("div",{className:`${De}-item-container`},ye==="rtl"?l.createElement(E,{className:`${De}-item-link-icon`}):l.createElement(D.Z,{className:`${De}-item-link-icon`}),an));return{prevIcon:wn,nextIcon:Vn,jumpPrevIcon:Zn,jumpNextIcon:sr}},[ye,De]),[St]=(0,$e.Z)("Pagination",L.Z),Pt=Object.assign(Object.assign({},St),we),un=(0,ge.Z)(Fe),on=un==="small"||!!(te&&!un&&Pe),xt=ue("select",Q),Sn=B()({[`${De}-mini`]:on,[`${De}-rtl`]:ye==="rtl"},Ae==null?void 0:Ae.className,R,s,We),mn=Object.assign(Object.assign({},Ae==null?void 0:Ae.style),ne);return Ke(l.createElement(x,Object.assign({},Dt,m,{style:mn,prefixCls:De,selectPrefixCls:xt,className:Sn,selectComponentClass:_e||(on?Ye:tt),locale:Pt,showSizeChanger:Xe})))},me=k},93948:function(nt,z,e){"use strict";e.d(z,{Z:function(){return Ne}});var t=e(59301),l=e(29679),b=e(40001),P=e(19248),$=e(99267),d=e(92310),n=e.n(d),E=e(2738),D=e(36355),w=e(54476),C=e(33885),v=e(75931),B={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},T=function(){var te=(0,t.useRef)([]),ue=(0,t.useRef)(null);return(0,t.useEffect)(function(){var ye=Date.now(),Ae=!1;te.current.forEach(function(De){if(De){Ae=!0;var Ke=De.style;Ke.transitionDuration=".3s, .3s, .3s, .06s",ue.current&&ye-ue.current<100&&(Ke.transitionDuration="0s, 0s")}}),Ae&&(ue.current=Date.now())}),te.current},I=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],g=function(te){var ue=(0,C.Z)((0,C.Z)({},B),te),ye=ue.className,Ae=ue.percent,De=ue.prefixCls,Ke=ue.strokeColor,We=ue.strokeLinecap,Xe=ue.strokeWidth,Dt=ue.style,St=ue.trailColor,Pt=ue.trailWidth,un=ue.transition,on=(0,v.Z)(ue,I);delete on.gapPosition;var xt=Array.isArray(Ae)?Ae:[Ae],Sn=Array.isArray(Ke)?Ke:[Ke],mn=T(),an=Xe/2,wn=100-Xe/2,Vn="M ".concat(We==="round"?an:0,",").concat(an,` + L `).concat(We==="round"?wn:100,",").concat(an),Zn="0 0 100 ".concat(Xe),sr=0;return t.createElement("svg",(0,w.Z)({className:n()("".concat(De,"-line"),ye),viewBox:Zn,preserveAspectRatio:"none",style:Dt},on),t.createElement("path",{className:"".concat(De,"-line-trail"),d:Vn,strokeLinecap:We,stroke:St,strokeWidth:Pt||Xe,fillOpacity:"0"}),xt.map(function(wr,er){var fr=1;switch(We){case"round":fr=1-Xe/100;break;case"square":fr=1-Xe/2/100;break;default:fr=1;break}var zn={strokeDasharray:"".concat(wr*fr,"px, 100px"),strokeDashoffset:"-".concat(sr,"px"),transition:un||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},br=Sn[er]||Sn[Sn.length-1];return sr+=wr,t.createElement("path",{key:er,className:"".concat(De,"-line-path"),d:Vn,strokeLinecap:We,stroke:br,strokeWidth:Xe,fillOpacity:"0",ref:function(Fr){mn[er]=Fr},style:zn})}))},U=g,F=e(76190),G=e(42978),q=e(47273),K=0,Z=(0,q.Z)();function oe(){var m;return Z?(m=K,K+=1):m="TEST_OR_SSR",m}var O=function(m){var te=t.useState(),ue=(0,G.Z)(te,2),ye=ue[0],Ae=ue[1];return t.useEffect(function(){Ae("rc_progress_".concat(oe()))},[]),m||ye},_=function(te){var ue=te.bg,ye=te.children;return t.createElement("div",{style:{width:"100%",height:"100%",background:ue}},ye)};function ee(m,te){return Object.keys(m).map(function(ue){var ye=parseFloat(ue),Ae="".concat(Math.floor(ye*te),"%");return"".concat(m[ue]," ").concat(Ae)})}var le=t.forwardRef(function(m,te){var ue=m.prefixCls,ye=m.color,Ae=m.gradientId,De=m.radius,Ke=m.style,We=m.ptg,Xe=m.strokeLinecap,Dt=m.strokeWidth,St=m.size,Pt=m.gapDegree,un=ye&&(0,F.Z)(ye)==="object",on=un?"#FFF":void 0,xt=St/2,Sn=t.createElement("circle",{className:"".concat(ue,"-circle-path"),r:De,cx:xt,cy:xt,stroke:on,strokeLinecap:Xe,strokeWidth:Dt,opacity:We===0?0:1,style:Ke,ref:te});if(!un)return Sn;var mn="".concat(Ae,"-conic"),an=Pt?"".concat(180+Pt/2,"deg"):"0deg",wn=ee(ye,(360-Pt)/360),Vn=ee(ye,1),Zn="conic-gradient(from ".concat(an,", ").concat(wn.join(", "),")"),sr="linear-gradient(to ".concat(Pt?"bottom":"top",", ").concat(Vn.join(", "),")");return t.createElement(t.Fragment,null,t.createElement("mask",{id:mn},Sn),t.createElement("foreignObject",{x:0,y:0,width:St,height:St,mask:"url(#".concat(mn,")")},t.createElement(_,{bg:sr},t.createElement(_,{bg:Zn}))))}),X=le,h=100,N=function(te,ue,ye,Ae,De,Ke,We,Xe,Dt,St){var Pt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,un=ye/100*360*((360-Ke)/360),on=Ke===0?0:{bottom:0,top:180,left:90,right:-90}[We],xt=(100-Ae)/100*ue;Dt==="round"&&Ae!==100&&(xt+=St/2,xt>=ue&&(xt=ue-.01));var Sn=h/2;return{stroke:typeof Xe=="string"?Xe:void 0,strokeDasharray:"".concat(ue,"px ").concat(te),strokeDashoffset:xt+Pt,transform:"rotate(".concat(De+un+on,"deg)"),transformOrigin:"".concat(Sn,"px ").concat(Sn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},de=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ae(m){var te=m!=null?m:[];return Array.isArray(te)?te:[te]}var x=function(te){var ue=(0,C.Z)((0,C.Z)({},B),te),ye=ue.id,Ae=ue.prefixCls,De=ue.steps,Ke=ue.strokeWidth,We=ue.trailWidth,Xe=ue.gapDegree,Dt=Xe===void 0?0:Xe,St=ue.gapPosition,Pt=ue.trailColor,un=ue.strokeLinecap,on=ue.style,xt=ue.className,Sn=ue.strokeColor,mn=ue.percent,an=(0,v.Z)(ue,de),wn=h/2,Vn=O(ye),Zn="".concat(Vn,"-gradient"),sr=wn-Ke/2,wr=Math.PI*2*sr,er=Dt>0?90+Dt/2:-90,fr=wr*((360-Dt)/360),zn=(0,F.Z)(De)==="object"?De:{count:De,space:2},br=zn.count,jr=zn.space,Fr=ae(mn),hr=ae(Sn),Xn=hr.find(function(ot){return ot&&(0,F.Z)(ot)==="object"}),no=Xn&&(0,F.Z)(Xn)==="object",Xr=no?"butt":un,yo=N(wr,fr,0,100,er,Dt,St,Pt,Xr,Ke),ao=T(),Ve=function(){var Ct=0;return Fr.map(function(Nt,At){var Ut=hr[At]||hr[hr.length-1],zt=N(wr,fr,Ct,Nt,er,Dt,St,Ut,Xr,Ke);return Ct+=Nt,t.createElement(X,{key:At,color:Ut,ptg:Nt,radius:sr,prefixCls:Ae,gradientId:Zn,style:zt,strokeLinecap:Xr,strokeWidth:Ke,gapDegree:Dt,ref:function(fe){ao[At]=fe},size:h})}).reverse()},pe=function(){var Ct=Math.round(br*(Fr[0]/100)),Nt=100/br,At=0;return new Array(br).fill(null).map(function(Ut,zt){var H=zt<=Ct-1?hr[0]:Pt,fe=H&&(0,F.Z)(H)==="object"?"url(#".concat(Zn,")"):void 0,he=N(wr,fr,At,Nt,er,Dt,St,H,"butt",Ke,jr);return At+=(fr-he.strokeDashoffset+jr)*100/fr,t.createElement("circle",{key:zt,className:"".concat(Ae,"-circle-path"),r:sr,cx:wn,cy:wn,stroke:fe,strokeWidth:Ke,opacity:1,style:he,ref:function(ke){ao[zt]=ke}})})};return t.createElement("svg",(0,w.Z)({className:n()("".concat(Ae,"-circle"),xt),viewBox:"0 0 ".concat(h," ").concat(h),style:on,id:ye,role:"presentation"},an),!br&&t.createElement("circle",{className:"".concat(Ae,"-circle-trail"),r:sr,cx:wn,cy:wn,stroke:Pt,strokeLinecap:Xr,strokeWidth:We||Ke,style:yo}),br?pe():Ve())},L=x,Y={Line:U,Circle:L},ge=e(6848),Re=e(30071);function $e(m){return!m||m<0?0:m>100?100:m}function je(m){let{success:te,successPercent:ue}=m,ye=ue;return te&&"progress"in te&&(ye=te.progress),te&&"percent"in te&&(ye=te.percent),ye}const Ye=m=>{let{percent:te,success:ue,successPercent:ye}=m;const Ae=$e(je({success:ue,successPercent:ye}));return[Ae,$e($e(te)-Ae)]},tt=m=>{let{success:te={},strokeColor:ue}=m;const{strokeColor:ye}=te;return[ye||Re.presetPrimaryColors.green,ue||null]},ze=(m,te,ue)=>{var ye,Ae,De,Ke;let We=-1,Xe=-1;if(te==="step"){const Dt=ue.steps,St=ue.strokeWidth;typeof m=="string"||typeof m=="undefined"?(We=m==="small"?2:14,Xe=St!=null?St:8):typeof m=="number"?[We,Xe]=[m,m]:[We=14,Xe=8]=m,We*=Dt}else if(te==="line"){const Dt=ue==null?void 0:ue.strokeWidth;typeof m=="string"||typeof m=="undefined"?Xe=Dt||(m==="small"?6:8):typeof m=="number"?[We,Xe]=[m,m]:[We=-1,Xe=8]=m}else(te==="circle"||te==="dashboard")&&(typeof m=="string"||typeof m=="undefined"?[We,Xe]=m==="small"?[60,60]:[120,120]:typeof m=="number"?[We,Xe]=[m,m]:(We=(Ae=(ye=m[0])!==null&&ye!==void 0?ye:m[1])!==null&&Ae!==void 0?Ae:120,Xe=(Ke=(De=m[0])!==null&&De!==void 0?De:m[1])!==null&&Ke!==void 0?Ke:120));return[We,Xe]},Be=3,qe=m=>Be/m*100;var Ie=m=>{const{prefixCls:te,trailColor:ue=null,strokeLinecap:ye="round",gapPosition:Ae,gapDegree:De,width:Ke=120,type:We,children:Xe,success:Dt,size:St=Ke}=m,[Pt,un]=ze(St,"circle");let{strokeWidth:on}=m;on===void 0&&(on=Math.max(qe(Pt),6));const xt={width:Pt,height:un,fontSize:Pt*.15+6},Sn=t.useMemo(()=>{if(De||De===0)return De;if(We==="dashboard")return 75},[De,We]),mn=Ae||We==="dashboard"&&"bottom"||void 0,an=Object.prototype.toString.call(m.strokeColor)==="[object Object]",wn=tt({success:Dt,strokeColor:m.strokeColor}),Vn=n()(`${te}-inner`,{[`${te}-circle-gradient`]:an}),Zn=t.createElement(L,{percent:Ye(m),strokeWidth:on,trailWidth:on,strokeColor:wn,strokeLinecap:ye,trailColor:ue,prefixCls:te,gapDegree:Sn,gapPosition:mn});return t.createElement("div",{className:Vn,style:xt},Pt<=20?t.createElement(ge.Z,{title:Xe},t.createElement("span",null,Zn)):t.createElement(t.Fragment,null,Zn,Xe))},st=function(m,te){var ue={};for(var ye in m)Object.prototype.hasOwnProperty.call(m,ye)&&te.indexOf(ye)<0&&(ue[ye]=m[ye]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ye=Object.getOwnPropertySymbols(m);Ae{let te=[];return Object.keys(m).forEach(ue=>{const ye=parseFloat(ue.replace(/%/g,""));isNaN(ye)||te.push({key:ye,value:m[ue]})}),te=te.sort((ue,ye)=>ue.key-ye.key),te.map(ue=>{let{key:ye,value:Ae}=ue;return`${Ae} ${ye}%`}).join(", ")},Se=(m,te)=>{const{from:ue=Re.presetPrimaryColors.blue,to:ye=Re.presetPrimaryColors.blue,direction:Ae=te==="rtl"?"to left":"to right"}=m,De=st(m,["from","to","direction"]);if(Object.keys(De).length!==0){const Ke=yt(De);return{backgroundImage:`linear-gradient(${Ae}, ${Ke})`}}return{backgroundImage:`linear-gradient(${Ae}, ${ue}, ${ye})`}};var rt=m=>{const{prefixCls:te,direction:ue,percent:ye,size:Ae,strokeWidth:De,strokeColor:Ke,strokeLinecap:We="round",children:Xe,trailColor:Dt=null,success:St}=m,Pt=Ke&&typeof Ke!="string"?Se(Ke,ue):{backgroundColor:Ke},un=We==="square"||We==="butt"?0:void 0,on={backgroundColor:Dt||void 0,borderRadius:un},xt=Ae!=null?Ae:[-1,De||(Ae==="small"?6:8)],[Sn,mn]=ze(xt,"line",{strokeWidth:De}),an=Object.assign({width:`${$e(ye)}%`,height:mn,borderRadius:un},Pt),wn=je(m),Vn={width:`${$e(wn)}%`,height:mn,borderRadius:un,backgroundColor:St==null?void 0:St.strokeColor},Zn={width:Sn<0?"100%":Sn,height:mn};return t.createElement(t.Fragment,null,t.createElement("div",{className:`${te}-outer`,style:Zn},t.createElement("div",{className:`${te}-inner`,style:on},t.createElement("div",{className:`${te}-bg`,style:an}),wn!==void 0?t.createElement("div",{className:`${te}-success-bg`,style:Vn}):null)),Xe)},j=m=>{const{size:te,steps:ue,percent:ye=0,strokeWidth:Ae=8,strokeColor:De,trailColor:Ke=null,prefixCls:We,children:Xe}=m,Dt=Math.round(ue*(ye/100)),St=te==="small"?2:14,Pt=te!=null?te:[St,Ae],[un,on]=ze(Pt,"step",{steps:ue,strokeWidth:Ae}),xt=un/ue,Sn=new Array(ue);for(let mn=0;mn{const te=m?"100%":"-100%";return new V.Keyframes(`antProgress${m?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${te}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${te}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},u=m=>{const{componentCls:te,iconCls:ue}=m;return{[te]:Object.assign(Object.assign({},(0,p.Wf)(m)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:m.fontSize,marginInlineEnd:m.marginXS,marginBottom:m.marginXS},[`${te}-outer`]:{display:"inline-block",width:"100%"},[`&${te}-show-info`]:{[`${te}-outer`]:{marginInlineEnd:`calc(-2em - ${m.marginXS}px)`,paddingInlineEnd:`calc(2em + ${m.paddingXS}px)`}},[`${te}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:m.remainingColor,borderRadius:m.lineBorderRadius},[`${te}-inner:not(${te}-circle-gradient)`]:{[`${te}-circle-path`]:{stroke:m.defaultColor}},[`${te}-success-bg, ${te}-bg`]:{position:"relative",backgroundColor:m.defaultColor,borderRadius:m.lineBorderRadius,transition:`all ${m.motionDurationSlow} ${m.motionEaseInOutCirc}`},[`${te}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:m.colorSuccess},[`${te}-text`]:{display:"inline-block",width:"2em",marginInlineStart:m.marginXS,color:m.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[ue]:{fontSize:m.fontSize}},[`&${te}-status-active`]:{[`${te}-bg::before`]:{position:"absolute",inset:0,backgroundColor:m.colorBgContainer,borderRadius:m.lineBorderRadius,opacity:0,animationName:me(),animationDuration:m.progressActiveMotionDuration,animationTimingFunction:m.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${te}-rtl${te}-status-active`]:{[`${te}-bg::before`]:{animationName:me(!0)}},[`&${te}-status-exception`]:{[`${te}-bg`]:{backgroundColor:m.colorError},[`${te}-text`]:{color:m.colorError}},[`&${te}-status-exception ${te}-inner:not(${te}-circle-gradient)`]:{[`${te}-circle-path`]:{stroke:m.colorError}},[`&${te}-status-success`]:{[`${te}-bg`]:{backgroundColor:m.colorSuccess},[`${te}-text`]:{color:m.colorSuccess}},[`&${te}-status-success ${te}-inner:not(${te}-circle-gradient)`]:{[`${te}-circle-path`]:{stroke:m.colorSuccess}}})}},i=m=>{const{componentCls:te,iconCls:ue}=m;return{[te]:{[`${te}-circle-trail`]:{stroke:m.remainingColor},[`&${te}-circle ${te}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${te}-circle ${te}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:m.circleTextColor,fontSize:m.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[ue]:{fontSize:`${m.fontSize/m.fontSizeSM}em`}},[`${te}-circle&-status-exception`]:{[`${te}-text`]:{color:m.colorError}},[`${te}-circle&-status-success`]:{[`${te}-text`]:{color:m.colorSuccess}}},[`${te}-inline-circle`]:{lineHeight:1,[`${te}-inner`]:{verticalAlign:"bottom"}}}},Q=m=>{const{componentCls:te}=m;return{[te]:{[`${te}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:m.progressStepMinWidth,marginInlineEnd:m.progressStepMarginInlineEnd,backgroundColor:m.remainingColor,transition:`all ${m.motionDurationSlow}`,"&-active":{backgroundColor:m.defaultColor}}}}}},R=m=>{const{componentCls:te,iconCls:ue}=m;return{[te]:{[`${te}-small&-line, ${te}-small&-line ${te}-text ${ue}`]:{fontSize:m.fontSizeSM}}}};var s=(0,a.Z)("Progress",m=>{const te=m.marginXXS/2,ue=(0,k.TS)(m,{progressStepMarginInlineEnd:te,progressStepMinWidth:te,progressActiveMotionDuration:"2.4s"});return[u(ue),i(ue),Q(ue),R(ue)]},m=>({circleTextColor:m.colorText,defaultColor:m.colorInfo,remainingColor:m.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),ne=function(m,te){var ue={};for(var ye in m)Object.prototype.hasOwnProperty.call(m,ye)&&te.indexOf(ye)<0&&(ue[ye]=m[ye]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,ye=Object.getOwnPropertySymbols(m);Ae{const{prefixCls:ue,className:ye,rootClassName:Ae,steps:De,strokeColor:Ke,percent:We=0,size:Xe="default",showInfo:Dt=!0,type:St="line",status:Pt,format:un,style:on}=m,xt=ne(m,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Sn=t.useMemo(()=>{var Fr,hr;const Xn=je(m);return parseInt(Xn!==void 0?(Fr=Xn!=null?Xn:0)===null||Fr===void 0?void 0:Fr.toString():(hr=We!=null?We:0)===null||hr===void 0?void 0:hr.toString(),10)},[We,m.success,m.successPercent]),mn=t.useMemo(()=>!we.includes(Pt)&&Sn>=100?"success":Pt||"normal",[Pt,Sn]),{getPrefixCls:an,direction:wn,progress:Vn}=t.useContext(D.E_),Zn=an("progress",ue),[sr,wr]=s(Zn),er=t.useMemo(()=>{if(!Dt)return null;const Fr=je(m);let hr;const Xn=un||(Xr=>`${Xr}%`),no=St==="line";return un||mn!=="exception"&&mn!=="success"?hr=Xn($e(We),$e(Fr)):mn==="exception"?hr=no?t.createElement(P.Z,null):t.createElement($.Z,null):mn==="success"&&(hr=no?t.createElement(l.Z,null):t.createElement(b.Z,null)),t.createElement("span",{className:`${Zn}-text`,title:typeof hr=="string"?hr:void 0},hr)},[Dt,We,Sn,mn,St,Zn,un]),fr=Array.isArray(Ke)?Ke[0]:Ke,zn=typeof Ke=="string"||Array.isArray(Ke)?Ke:void 0;let br;St==="line"?br=De?t.createElement(j,Object.assign({},m,{strokeColor:zn,prefixCls:Zn,steps:De}),er):t.createElement(rt,Object.assign({},m,{strokeColor:fr,prefixCls:Zn,direction:wn}),er):(St==="circle"||St==="dashboard")&&(br=t.createElement(Ie,Object.assign({},m,{strokeColor:fr,prefixCls:Zn,progressStatus:mn}),er));const jr=n()(Zn,`${Zn}-status-${mn}`,`${Zn}-${St==="dashboard"&&"circle"||De&&"steps"||St}`,{[`${Zn}-inline-circle`]:St==="circle"&&ze(Xe,"circle")[0]<=20,[`${Zn}-show-info`]:Dt,[`${Zn}-${Xe}`]:typeof Xe=="string",[`${Zn}-rtl`]:wn==="rtl"},Vn==null?void 0:Vn.className,ye,Ae,wr);return sr(t.createElement("div",Object.assign({ref:te,style:Object.assign(Object.assign({},Vn==null?void 0:Vn.style),on),className:jr,role:"progressbar","aria-valuenow":Sn},(0,E.Z)(xt,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),br))}),Ne=Pe},61621:function(nt,z,e){"use strict";e.d(z,{Z:function(){return V}});var t=e(92310),l=e.n(t),b=e(59301),P=e(36355),$=e(2738),n=p=>{const{prefixCls:a,className:k,style:me,size:u,shape:i}=p,Q=l()({[`${a}-lg`]:u==="large",[`${a}-sm`]:u==="small"}),R=l()({[`${a}-circle`]:i==="circle",[`${a}-square`]:i==="square",[`${a}-round`]:i==="round"}),s=b.useMemo(()=>typeof u=="number"?{width:u,height:u,lineHeight:`${u}px`}:{},[u]);return b.createElement("span",{className:l()(a,Q,R,k),style:Object.assign(Object.assign({},s),me)})},E=e(36237),D=e(83116),w=e(37613);const C=new E.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),v=p=>({height:p,lineHeight:`${p}px`}),B=p=>Object.assign({width:p},v(p)),T=p=>({background:p.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:C,animationDuration:p.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),I=p=>Object.assign({width:p*5,minWidth:p*5},v(p)),g=p=>{const{skeletonAvatarCls:a,gradientFromColor:k,controlHeight:me,controlHeightLG:u,controlHeightSM:i}=p;return{[`${a}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:k},B(me)),[`${a}${a}-circle`]:{borderRadius:"50%"},[`${a}${a}-lg`]:Object.assign({},B(u)),[`${a}${a}-sm`]:Object.assign({},B(i))}},U=p=>{const{controlHeight:a,borderRadiusSM:k,skeletonInputCls:me,controlHeightLG:u,controlHeightSM:i,gradientFromColor:Q}=p;return{[`${me}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Q,borderRadius:k},I(a)),[`${me}-lg`]:Object.assign({},I(u)),[`${me}-sm`]:Object.assign({},I(i))}},F=p=>Object.assign({width:p},v(p)),G=p=>{const{skeletonImageCls:a,imageSizeBase:k,gradientFromColor:me,borderRadiusSM:u}=p;return{[`${a}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:me,borderRadius:u},F(k*2)),{[`${a}-path`]:{fill:"#bfbfbf"},[`${a}-svg`]:Object.assign(Object.assign({},F(k)),{maxWidth:k*4,maxHeight:k*4}),[`${a}-svg${a}-svg-circle`]:{borderRadius:"50%"}}),[`${a}${a}-circle`]:{borderRadius:"50%"}}},q=(p,a,k)=>{const{skeletonButtonCls:me}=p;return{[`${k}${me}-circle`]:{width:a,minWidth:a,borderRadius:"50%"},[`${k}${me}-round`]:{borderRadius:a}}},K=p=>Object.assign({width:p*2,minWidth:p*2},v(p)),Z=p=>{const{borderRadiusSM:a,skeletonButtonCls:k,controlHeight:me,controlHeightLG:u,controlHeightSM:i,gradientFromColor:Q}=p;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${k}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Q,borderRadius:a,width:me*2,minWidth:me*2},K(me))},q(p,me,k)),{[`${k}-lg`]:Object.assign({},K(u))}),q(p,u,`${k}-lg`)),{[`${k}-sm`]:Object.assign({},K(i))}),q(p,i,`${k}-sm`))},oe=p=>{const{componentCls:a,skeletonAvatarCls:k,skeletonTitleCls:me,skeletonParagraphCls:u,skeletonButtonCls:i,skeletonInputCls:Q,skeletonImageCls:R,controlHeight:s,controlHeightLG:ne,controlHeightSM:Fe,gradientFromColor:we,padding:_e,marginSM:Pe,borderRadius:Ne,titleHeight:m,blockRadius:te,paragraphLiHeight:ue,controlHeightXS:ye,paragraphMarginTop:Ae}=p;return{[`${a}`]:{display:"table",width:"100%",[`${a}-header`]:{display:"table-cell",paddingInlineEnd:_e,verticalAlign:"top",[`${k}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:we},B(s)),[`${k}-circle`]:{borderRadius:"50%"},[`${k}-lg`]:Object.assign({},B(ne)),[`${k}-sm`]:Object.assign({},B(Fe))},[`${a}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${me}`]:{width:"100%",height:m,background:we,borderRadius:te,[`+ ${u}`]:{marginBlockStart:Fe}},[`${u}`]:{padding:0,"> li":{width:"100%",height:ue,listStyle:"none",background:we,borderRadius:te,"+ li":{marginBlockStart:ye}}},[`${u}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${a}-content`]:{[`${me}, ${u} > li`]:{borderRadius:Ne}}},[`${a}-with-avatar ${a}-content`]:{[`${me}`]:{marginBlockStart:Pe,[`+ ${u}`]:{marginBlockStart:Ae}}},[`${a}${a}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Z(p)),g(p)),U(p)),G(p)),[`${a}${a}-block`]:{width:"100%",[`${i}`]:{width:"100%"},[`${Q}`]:{width:"100%"}},[`${a}${a}-active`]:{[` + ${me}, + ${u} > li, + ${k}, + ${i}, + ${Q}, + ${R} + `]:Object.assign({},T(p))}}};var O=(0,D.Z)("Skeleton",p=>{const{componentCls:a}=p,k=(0,w.TS)(p,{skeletonAvatarCls:`${a}-avatar`,skeletonTitleCls:`${a}-title`,skeletonParagraphCls:`${a}-paragraph`,skeletonButtonCls:`${a}-button`,skeletonInputCls:`${a}-input`,skeletonImageCls:`${a}-image`,imageSizeBase:p.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${p.gradientFromColor} 25%, ${p.gradientToColor} 37%, ${p.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[oe(k)]},p=>{const{colorFillContent:a,colorFill:k}=p,me=a,u=k;return{color:me,colorGradientEnd:u,gradientFromColor:me,gradientToColor:u,titleHeight:p.controlHeight/2,blockRadius:p.borderRadiusSM,paragraphMarginTop:p.marginLG+p.marginXXS,paragraphLiHeight:p.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),ee=p=>{const{prefixCls:a,className:k,rootClassName:me,active:u,shape:i="circle",size:Q="default"}=p,{getPrefixCls:R}=b.useContext(P.E_),s=R("skeleton",a),[ne,Fe]=O(s),we=(0,$.Z)(p,["prefixCls","className"]),_e=l()(s,`${s}-element`,{[`${s}-active`]:u},k,me,Fe);return ne(b.createElement("div",{className:_e},b.createElement(n,Object.assign({prefixCls:`${s}-avatar`,shape:i,size:Q},we))))},X=p=>{const{prefixCls:a,className:k,rootClassName:me,active:u,block:i=!1,size:Q="default"}=p,{getPrefixCls:R}=b.useContext(P.E_),s=R("skeleton",a),[ne,Fe]=O(s),we=(0,$.Z)(p,["prefixCls"]),_e=l()(s,`${s}-element`,{[`${s}-active`]:u,[`${s}-block`]:i},k,me,Fe);return ne(b.createElement("div",{className:_e},b.createElement(n,Object.assign({prefixCls:`${s}-button`,size:Q},we))))};const h="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var de=p=>{const{prefixCls:a,className:k,rootClassName:me,style:u,active:i}=p,{getPrefixCls:Q}=b.useContext(P.E_),R=Q("skeleton",a),[s,ne]=O(R),Fe=l()(R,`${R}-element`,{[`${R}-active`]:i},k,me,ne);return s(b.createElement("div",{className:Fe},b.createElement("div",{className:l()(`${R}-image`,k),style:u},b.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${R}-image-svg`},b.createElement("path",{d:h,className:`${R}-image-path`})))))},x=p=>{const{prefixCls:a,className:k,rootClassName:me,active:u,block:i,size:Q="default"}=p,{getPrefixCls:R}=b.useContext(P.E_),s=R("skeleton",a),[ne,Fe]=O(s),we=(0,$.Z)(p,["prefixCls"]),_e=l()(s,`${s}-element`,{[`${s}-active`]:u,[`${s}-block`]:i},k,me,Fe);return ne(b.createElement("div",{className:_e},b.createElement(n,Object.assign({prefixCls:`${s}-input`,size:Q},we))))},L=e(54476),Y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},ge=Y,Re=e(7657),$e=function(a,k){return b.createElement(Re.Z,(0,L.Z)({},a,{ref:k,icon:ge}))},je=b.forwardRef($e),Ye=je,ze=p=>{const{prefixCls:a,className:k,rootClassName:me,style:u,active:i,children:Q}=p,{getPrefixCls:R}=b.useContext(P.E_),s=R("skeleton",a),[ne,Fe]=O(s),we=l()(s,`${s}-element`,{[`${s}-active`]:i},Fe,k,me),_e=Q!=null?Q:b.createElement(Ye,null);return ne(b.createElement("div",{className:we},b.createElement("div",{className:l()(`${s}-image`,k),style:u},_e)))},Be=e(94480),dt=p=>{const a=R=>{const{width:s,rows:ne=2}=p;if(Array.isArray(s))return s[R];if(ne-1===R)return s},{prefixCls:k,className:me,style:u,rows:i}=p,Q=(0,Be.Z)(Array(i)).map((R,s)=>b.createElement("li",{key:s,style:{width:a(s)}}));return b.createElement("ul",{className:l()(k,me),style:u},Q)},st=p=>{let{prefixCls:a,className:k,width:me,style:u}=p;return b.createElement("h3",{className:l()(a,k),style:Object.assign({width:me},u)})};function yt(p){return p&&typeof p=="object"?p:{}}function Se(p,a){return p&&!a?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function ve(p,a){return!p&&a?{width:"38%"}:p&&a?{width:"50%"}:{}}function rt(p,a){const k={};return(!p||!a)&&(k.width="61%"),!p&&a?k.rows=3:k.rows=2,k}const et=p=>{const{prefixCls:a,loading:k,className:me,rootClassName:u,style:i,children:Q,avatar:R=!1,title:s=!0,paragraph:ne=!0,active:Fe,round:we}=p,{getPrefixCls:_e,direction:Pe,skeleton:Ne}=b.useContext(P.E_),m=_e("skeleton",a),[te,ue]=O(m);if(k||!("loading"in p)){const ye=!!R,Ae=!!s,De=!!ne;let Ke;if(ye){const Dt=Object.assign(Object.assign({prefixCls:`${m}-avatar`},Se(Ae,De)),yt(R));Ke=b.createElement("div",{className:`${m}-header`},b.createElement(n,Object.assign({},Dt)))}let We;if(Ae||De){let Dt;if(Ae){const Pt=Object.assign(Object.assign({prefixCls:`${m}-title`},ve(ye,De)),yt(s));Dt=b.createElement(st,Object.assign({},Pt))}let St;if(De){const Pt=Object.assign(Object.assign({prefixCls:`${m}-paragraph`},rt(ye,Ae)),yt(ne));St=b.createElement(dt,Object.assign({},Pt))}We=b.createElement("div",{className:`${m}-content`},Dt,St)}const Xe=l()(m,{[`${m}-with-avatar`]:ye,[`${m}-active`]:Fe,[`${m}-rtl`]:Pe==="rtl",[`${m}-round`]:we},Ne==null?void 0:Ne.className,me,u,ue);return te(b.createElement("div",{className:Xe,style:Object.assign(Object.assign({},Ne==null?void 0:Ne.style),i)},Ke,We))}return typeof Q!="undefined"?Q:null};et.Button=X,et.Avatar=ee,et.Input=x,et.Image=de,et.Node=ze;var j=et,V=j},31797:function(nt,z,e){"use strict";e.d(z,{default:function(){return O}});var t=e(59301),l=e(56762),b=e(92343),P=e(92310),$=e.n(P),d=e(36355),n=e(61621),D=_=>{const{value:ee,formatter:le,precision:X,decimalSeparator:h,groupSeparator:N="",prefixCls:de}=_;let ae;if(typeof le=="function")ae=le(ee);else{const x=String(ee),L=x.match(/^(-?)(\d*)(\.(\d+))?$/);if(!L||x==="-")ae=x;else{const Y=L[1];let ge=L[2]||"0",Re=L[4]||"";ge=ge.replace(/\B(?=(\d{3})+(?!\d))/g,N),typeof X=="number"&&(Re=Re.padEnd(X,"0").slice(0,X>0?X:0)),Re&&(Re=`${h}${Re}`),ae=[t.createElement("span",{key:"int",className:`${de}-content-value-int`},Y,ge),Re&&t.createElement("span",{key:"decimal",className:`${de}-content-value-decimal`},Re)]}}return t.createElement("span",{className:`${de}-content-value`},ae)},w=e(17313),C=e(83116),v=e(37613);const B=_=>{const{componentCls:ee,marginXXS:le,padding:X,colorTextDescription:h,titleFontSize:N,colorTextHeading:de,contentFontSize:ae,fontFamily:x}=_;return{[`${ee}`]:Object.assign(Object.assign({},(0,w.Wf)(_)),{[`${ee}-title`]:{marginBottom:le,color:h,fontSize:N},[`${ee}-skeleton`]:{paddingTop:X},[`${ee}-content`]:{color:de,fontSize:ae,fontFamily:x,[`${ee}-content-value`]:{display:"inline-block",direction:"ltr"},[`${ee}-content-prefix, ${ee}-content-suffix`]:{display:"inline-block"},[`${ee}-content-prefix`]:{marginInlineEnd:le},[`${ee}-content-suffix`]:{marginInlineStart:le}}})}};var T=(0,C.Z)("Statistic",_=>{const ee=(0,v.TS)(_,{});return[B(ee)]},_=>{const{fontSizeHeading3:ee,fontSize:le}=_;return{titleFontSize:le,contentFontSize:ee}}),g=_=>{const{prefixCls:ee,className:le,rootClassName:X,style:h,valueStyle:N,value:de=0,title:ae,valueRender:x,prefix:L,suffix:Y,loading:ge=!1,onMouseEnter:Re,onMouseLeave:$e,decimalSeparator:je=".",groupSeparator:Ye=","}=_,{getPrefixCls:tt,direction:ze,statistic:Be}=t.useContext(d.E_),qe=tt("statistic",ee),[dt,Ie]=T(qe),st=t.createElement(D,Object.assign({decimalSeparator:je,groupSeparator:Ye,prefixCls:qe},_,{value:de})),yt=$()(qe,{[`${qe}-rtl`]:ze==="rtl"},Be==null?void 0:Be.className,le,X,Ie);return dt(t.createElement("div",{className:yt,style:Object.assign(Object.assign({},Be==null?void 0:Be.style),h),onMouseEnter:Re,onMouseLeave:$e},ae&&t.createElement("div",{className:`${qe}-title`},ae),t.createElement(n.Z,{paragraph:!1,loading:ge,className:`${qe}-skeleton`},t.createElement("div",{style:N,className:`${qe}-content`},L&&t.createElement("span",{className:`${qe}-content-prefix`},L),x?x(st):st,Y&&t.createElement("span",{className:`${qe}-content-suffix`},Y)))))};const U=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function F(_,ee){let le=_;const X=/\[[^\]]*]/g,h=(ee.match(X)||[]).map(x=>x.slice(1,-1)),N=ee.replace(X,"[]"),de=U.reduce((x,L)=>{let[Y,ge]=L;if(x.includes(Y)){const Re=Math.floor(le/ge);return le-=Re*ge,x.replace(new RegExp(`${Y}+`,"g"),$e=>{const je=$e.length;return Re.toString().padStart(je,"0")})}return x},N);let ae=0;return de.replace(X,()=>{const x=h[ae];return ae+=1,x})}function G(_,ee){const{format:le=""}=ee,X=new Date(_).getTime(),h=Date.now(),N=Math.max(X-h,0);return F(N,le)}const q=1e3/30;function K(_){return new Date(_).getTime()}const Z=_=>{const{value:ee,format:le="HH:mm:ss",onChange:X,onFinish:h}=_,N=(0,l.Z)(),de=t.useRef(null),ae=()=>{h==null||h(),de.current&&(clearInterval(de.current),de.current=null)},x=()=>{const ge=K(ee);ge>=Date.now()&&(de.current=setInterval(()=>{N(),X==null||X(ge-Date.now()),ge(x(),()=>{de.current&&(clearInterval(de.current),de.current=null)}),[ee]);const L=(ge,Re)=>G(ge,Object.assign(Object.assign({},Re),{format:le})),Y=ge=>(0,b.Tm)(ge,{title:void 0});return t.createElement(g,Object.assign({},_,{valueRender:Y,formatter:L}))};var oe=t.memo(Z);g.Countdown=oe;var O=g},15969:function(nt,z,e){"use strict";e.d(z,{N:function(){return t}});const t=l=>({color:l.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${l.motionDurationSlow}`,"&:focus, &:hover":{color:l.colorLinkHover},"&:active":{color:l.colorLinkActive}})},1710:function(nt,z,e){"use strict";e.d(z,{default:function(){return xl}});var t={},l="rc-table-internal-hook",b=e(42978),P=e(6089),$=e(34280),d=e(13697),n=e(59301),E=e(4676);function D(r){var o=n.createContext(void 0),f=function(M){var A=M.value,ce=M.children,se=n.useRef(A);se.current=A;var re=n.useState(function(){return{getValue:function(){return se.current},listeners:new Set}}),xe=(0,b.Z)(re,1),Oe=xe[0];return(0,$.Z)(function(){(0,E.unstable_batchedUpdates)(function(){Oe.listeners.forEach(function(Ee){Ee(A)})})},[A]),n.createElement(o.Provider,{value:Oe},ce)};return{Context:o,Provider:f,defaultValue:r}}function w(r,o){var f=(0,P.Z)(typeof o=="function"?o:function(Ee){if(o===void 0)return Ee;if(!Array.isArray(o))return Ee[o];var Ge={};return o.forEach(function(He){Ge[He]=Ee[He]}),Ge}),y=n.useContext(r==null?void 0:r.Context),M=y||{},A=M.listeners,ce=M.getValue,se=n.useRef();se.current=f(y?ce():r==null?void 0:r.defaultValue);var re=n.useState({}),xe=(0,b.Z)(re,2),Oe=xe[1];return(0,$.Z)(function(){if(!y)return;function Ee(Ge){var He=f(Ge);(0,d.Z)(se.current,He,!0)||Oe({})}return A.add(Ee),function(){A.delete(Ee)}},[y]),se.current}var C=e(54476),v=e(8654);function B(){var r=n.createContext(null);function o(){return n.useContext(r)}function f(M,A){var ce=(0,v.Yr)(M),se=function(xe,Oe){var Ee=ce?{ref:Oe}:{},Ge=n.useRef(0),He=n.useRef(xe),Ue=o();return Ue!==null?n.createElement(M,(0,C.Z)({},xe,Ee)):((!A||A(He.current,xe))&&(Ge.current+=1),He.current=xe,n.createElement(r.Provider,{value:Ge.current},n.createElement(M,(0,C.Z)({},xe,Ee))))};return ce?n.forwardRef(se):se}function y(M,A){var ce=(0,v.Yr)(M),se=function(xe,Oe){var Ee=ce?{ref:Oe}:{};return o(),n.createElement(M,(0,C.Z)({},xe,Ee))};return ce?n.memo(n.forwardRef(se),A):n.memo(se,A)}return{makeImmutable:f,responseImmutable:y,useImmutableMark:o}}var T=B(),I=T.makeImmutable,g=T.responseImmutable,U=T.useImmutableMark,F=B(),G=F.makeImmutable,q=F.responseImmutable,K=F.useImmutableMark,Z=D(),oe=Z;function O(r,o){var f=n.useRef(0);f.current+=1;var y=n.useRef(r),M=[];Object.keys(r||{}).map(function(ce){var se;(r==null?void 0:r[ce])!==((se=y.current)===null||se===void 0?void 0:se[ce])&&M.push(ce)}),y.current=r;var A=n.useRef([]);return M.length&&(A.current=M),n.useDebugValue(f.current),n.useDebugValue(A.current.join(", ")),o&&console.log("".concat(o,":"),f.current,A.current),f.current}var _=null,ee=n.memo(function(){var r=O();return n.createElement("h1",null,"Render Times: ",r)});ee.displayName="RenderBlock";var le=e(76190),X=e(33885),h=e(20068),N=e(92310),de=e.n(N),ae=e(80547),x=e(97938),L=e(48736),Y=n.createContext({renderWithProps:!1}),ge=Y,Re="RC_TABLE_KEY";function $e(r){return r==null?[]:Array.isArray(r)?r:[r]}function je(r){var o=[],f={};return r.forEach(function(y){for(var M=y||{},A=M.key,ce=M.dataIndex,se=A||$e(ce).join("-")||Re;f[se];)se="".concat(se,"_next");f[se]=!0,o.push(se)}),o}function Ye(r){return r!=null}function tt(r){return r&&(0,le.Z)(r)==="object"&&!Array.isArray(r)&&!n.isValidElement(r)}function ze(r,o,f,y,M,A){var ce=n.useContext(ge),se=K(),re=(0,ae.Z)(function(){if(Ye(y))return[y];var xe=o==null||o===""?[]:Array.isArray(o)?o:[o],Oe=(0,x.Z)(r,xe),Ee=Oe,Ge=void 0;if(M){var He=M(Oe,r,f);tt(He)?(Ee=He.children,Ge=He.props,ce.renderWithProps=!0):Ee=He}return[Ee,Ge]},[se,r,y,o,M,f],function(xe,Oe){if(A){var Ee=(0,b.Z)(xe,2),Ge=Ee[1],He=(0,b.Z)(Oe,2),Ue=He[1];return A(Ue,Ge)}return ce.renderWithProps?!0:!(0,d.Z)(xe,Oe,!0)});return re}function Be(r,o,f,y){var M=r+o-1;return r<=y&&M>=f}function qe(r,o){return w(oe,function(f){var y=Be(r,o||1,f.hoverStartRow,f.hoverEndRow);return[y,f.onHover]})}var dt=function(o){var f=o.ellipsis,y=o.rowType,M=o.children,A,ce=f===!0?{showTitle:!0}:f;return ce&&(ce.showTitle||y==="header")&&(typeof M=="string"||typeof M=="number"?A=M.toString():n.isValidElement(M)&&typeof M.props.children=="string"&&(A=M.props.children)),A};function Ie(r){var o,f,y,M,A,ce,se,re,xe=r.component,Oe=r.children,Ee=r.ellipsis,Ge=r.scope,He=r.prefixCls,Ue=r.className,bt=r.align,mt=r.record,ht=r.render,ct=r.dataIndex,It=r.renderIndex,Ht=r.shouldCellUpdate,cn=r.index,Xt=r.rowType,ln=r.colSpan,Bn=r.rowSpan,Bt=r.fixLeft,Wt=r.fixRight,Tt=r.firstFixLeft,wt=r.lastFixLeft,kt=r.firstFixRight,xn=r.lastFixRight,Tn=r.appendNode,Nn=r.additionalProps,fn=Nn===void 0?{}:Nn,Wn=r.isSticky,Hn="".concat(He,"-cell"),Ir=w(oe,["supportSticky","allColumnsFixedLeft"]),cr=Ir.supportSticky,Wr=Ir.allColumnsFixedLeft,Ur=ze(mt,ct,It,Oe,ht,Ht),Rn=(0,b.Z)(Ur,2),qr=Rn[0],rr=Rn[1],Zr={},Br=typeof Bt=="number"&&cr,po=typeof Wt=="number"&&cr;Br&&(Zr.position="sticky",Zr.left=Bt),po&&(Zr.position="sticky",Zr.right=Wt);var hn=(o=(f=(y=rr==null?void 0:rr.colSpan)!==null&&y!==void 0?y:fn.colSpan)!==null&&f!==void 0?f:ln)!==null&&o!==void 0?o:1,pn=(M=(A=(ce=rr==null?void 0:rr.rowSpan)!==null&&ce!==void 0?ce:fn.rowSpan)!==null&&A!==void 0?A:Bn)!==null&&M!==void 0?M:1,vn=qe(cn,pn),en=(0,b.Z)(vn,2),tr=en[0],tn=en[1],_n=function(Qr){var go;mt&&tn(cn,cn+pn-1),fn==null||(go=fn.onMouseEnter)===null||go===void 0||go.call(fn,Qr)},or=function(Qr){var go;mt&&tn(-1,-1),fn==null||(go=fn.onMouseLeave)===null||go===void 0||go.call(fn,Qr)};if(hn===0||pn===0)return null;var $n=(se=fn.title)!==null&&se!==void 0?se:dt({rowType:Xt,ellipsis:Ee,children:qr}),mo=de()(Hn,Ue,(re={},(0,h.Z)(re,"".concat(Hn,"-fix-left"),Br&&cr),(0,h.Z)(re,"".concat(Hn,"-fix-left-first"),Tt&&cr),(0,h.Z)(re,"".concat(Hn,"-fix-left-last"),wt&&cr),(0,h.Z)(re,"".concat(Hn,"-fix-left-all"),wt&&Wr&&cr),(0,h.Z)(re,"".concat(Hn,"-fix-right"),po&&cr),(0,h.Z)(re,"".concat(Hn,"-fix-right-first"),kt&&cr),(0,h.Z)(re,"".concat(Hn,"-fix-right-last"),xn&&cr),(0,h.Z)(re,"".concat(Hn,"-ellipsis"),Ee),(0,h.Z)(re,"".concat(Hn,"-with-append"),Tn),(0,h.Z)(re,"".concat(Hn,"-fix-sticky"),(Br||po)&&Wn&&cr),(0,h.Z)(re,"".concat(Hn,"-row-hover"),!rr&&tr),re),fn.className,rr==null?void 0:rr.className),eo={};bt&&(eo.textAlign=bt);var Co=(0,X.Z)((0,X.Z)((0,X.Z)((0,X.Z)({},Zr),fn.style),eo),rr==null?void 0:rr.style),Jr=qr;return(0,le.Z)(Jr)==="object"&&!Array.isArray(Jr)&&!n.isValidElement(Jr)&&(Jr=null),Ee&&(wt||kt)&&(Jr=n.createElement("span",{className:"".concat(Hn,"-content")},Jr)),n.createElement(xe,(0,C.Z)({},rr,fn,{className:mo,style:Co,title:$n,scope:Ge,onMouseEnter:_n,onMouseLeave:or,colSpan:hn!==1?hn:null,rowSpan:pn!==1?pn:null}),Tn,Jr)}var st=n.memo(Ie);function yt(r,o,f,y,M,A){var ce=f[r]||{},se=f[o]||{},re,xe;ce.fixed==="left"?re=y.left[M==="rtl"?o:r]:se.fixed==="right"&&(xe=y.right[M==="rtl"?r:o]);var Oe=!1,Ee=!1,Ge=!1,He=!1,Ue=f[o+1],bt=f[r-1],mt=!(A!=null&&A.children);if(M==="rtl"){if(re!==void 0){var ht=bt&&bt.fixed==="left";He=!ht&&mt}else if(xe!==void 0){var ct=Ue&&Ue.fixed==="right";Ge=!ct&&mt}}else if(re!==void 0){var It=Ue&&Ue.fixed==="left";Oe=!It&&mt}else if(xe!==void 0){var Ht=bt&&bt.fixed==="right";Ee=!Ht&&mt}return{fixLeft:re,fixRight:xe,lastFixLeft:Oe,firstFixRight:Ee,lastFixRight:Ge,firstFixLeft:He,isSticky:y.isSticky}}var Se=n.createContext({}),ve=Se;function rt(r){var o=r.className,f=r.index,y=r.children,M=r.colSpan,A=M===void 0?1:M,ce=r.rowSpan,se=r.align,re=w(oe,["prefixCls","direction"]),xe=re.prefixCls,Oe=re.direction,Ee=n.useContext(ve),Ge=Ee.scrollColumnIndex,He=Ee.stickyOffsets,Ue=Ee.flattenColumns,bt=Ee.columns,mt=f+A-1,ht=mt+1===Ge?A+1:A,ct=yt(f,f+ht-1,Ue,He,Oe,bt==null?void 0:bt[f]);return n.createElement(st,(0,C.Z)({className:o,index:f,component:"td",prefixCls:xe,record:null,dataIndex:null,align:se,colSpan:ht,rowSpan:ce,render:function(){return y}},ct))}var et=e(75931),j=["children"];function V(r){var o=r.children,f=(0,et.Z)(r,j);return n.createElement("tr",f,o)}function p(r){var o=r.children;return o}p.Row=V,p.Cell=rt;var a=p;function k(r){var o=r.children,f=r.stickyOffsets,y=r.flattenColumns,M=r.columns,A=w(oe,"prefixCls"),ce=y.length-1,se=y[ce],re=n.useMemo(function(){return{stickyOffsets:f,flattenColumns:y,scrollColumnIndex:se!=null&&se.scrollbar?ce:null,columns:M}},[se,y,ce,f,M]);return n.createElement(ve.Provider,{value:re},n.createElement("tfoot",{className:"".concat(A,"-summary")},o))}var me=q(k),u=a,i=e(70425),Q=e(29301),R=e(29194),s=e(24514),ne=e(75152),Fe=e(26112);function we(r,o,f,y,M,A,ce){r.push({record:o,indent:f,index:ce});var se=A(o),re=M==null?void 0:M.has(se);if(o&&Array.isArray(o[y])&&re)for(var xe=0;xe1?Tt-1:0),kt=1;kt=0;se-=1){var re=o[se],xe=f&&f[se],Oe=xe&&xe[Dt];if(re||Oe||ce){var Ee=Oe||{},Ge=Ee.columnType,He=(0,et.Z)(Ee,Pt);M.unshift(n.createElement("col",(0,C.Z)({key:se,style:{width:re}},He))),ce=!0}}return n.createElement("colgroup",null,M)}var on=un,xt=e(94480),Sn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function mn(r,o){return(0,n.useMemo)(function(){for(var f=[],y=0;y1?"colgroup":"col":null,ellipsis:mt.ellipsis,align:mt.align,component:mt.title?A:ce,prefixCls:Oe,key:He[bt]},ht,{additionalProps:ct,rowType:"header"}))}))}Vn.displayName="HeaderRow";var Zn=Vn;function sr(r){var o=[];function f(ce,se){var re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;o[re]=o[re]||[];var xe=se,Oe=ce.filter(Boolean).map(function(Ee){var Ge={key:Ee.key,className:Ee.className||"",children:Ee.title,column:Ee,colStart:xe},He=1,Ue=Ee.children;return Ue&&Ue.length>0&&(He=f(Ue,xe,re+1).reduce(function(bt,mt){return bt+mt},0),Ge.hasSubColumns=!0),"colSpan"in Ee&&(He=Ee.colSpan),"rowSpan"in Ee&&(Ge.rowSpan=Ee.rowSpan),Ge.colSpan=He,Ge.colEnd=Ge.colStart+He-1,o[re].push(Ge),xe+=He,He});return Oe}f(r,0);for(var y=o.length,M=function(se){o[se].forEach(function(re){!("rowSpan"in re)&&!re.hasSubColumns&&(re.rowSpan=y-se)})},A=0;A1&&arguments[1]!==void 0?arguments[1]:"";return typeof o=="number"?o:o.endsWith("%")?r*parseFloat(o)/100:null}function br(r,o){return n.useMemo(function(){if(o&&o>0){var f=0,y=0;r.forEach(function(xe){var Oe=zn(o,xe.width);Oe?f+=Oe:y+=1});var M=o-f,A=y,ce=M/y,se=0,re=r.map(function(xe){var Oe=(0,X.Z)({},xe),Ee=zn(o,Oe.width);if(Ee)Oe.width=Ee;else{var Ge=Math.floor(ce);Oe.width=A===1?M:Ge,M-=Ge,A-=1}return se+=Oe.width,Oe});return[re,se]}return[r,o]},[r,o])}var jr=["children"],Fr=["fixed"];function hr(r){return(0,fr.Z)(r).filter(function(o){return n.isValidElement(o)}).map(function(o){var f=o.key,y=o.props,M=y.children,A=(0,et.Z)(y,jr),ce=(0,X.Z)({key:f},A);return M&&(ce.children=hr(M)),ce})}function Xn(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return r.filter(function(f){return f&&(0,le.Z)(f)==="object"}).reduce(function(f,y,M){var A=y.fixed,ce=A===!0?"left":A,se="".concat(o,"-").concat(M),re=y.children;return re&&re.length>0?[].concat((0,xt.Z)(f),(0,xt.Z)(Xn(re,se).map(function(xe){return(0,X.Z)({fixed:ce},xe)}))):[].concat((0,xt.Z)(f),[(0,X.Z)((0,X.Z)({key:se},y),{},{fixed:ce})])},[])}function no(r){for(var o=!0,f=0;f=0;A-=1){var ce=r[A];if(M&&ce.fixed!=="right")M=!1;else if(!M&&ce.fixed==="right"){warning(!1,"Index ".concat(A+1," of `columns` missing `fixed='right'` prop."));break}}}function Xr(r){return r.map(function(o){var f=o.fixed,y=(0,et.Z)(o,Fr),M=f;return f==="left"?M="right":f==="right"&&(M="left"),(0,X.Z)({fixed:M},y)})}function yo(r,o){var f=r.prefixCls,y=r.columns,M=r.children,A=r.expandable,ce=r.expandedKeys,se=r.columnTitle,re=r.getRowKey,xe=r.onTriggerExpand,Oe=r.expandIcon,Ee=r.rowExpandable,Ge=r.expandIconColumnIndex,He=r.direction,Ue=r.expandRowByClick,bt=r.columnWidth,mt=r.fixed,ht=r.scrollWidth,ct=n.useMemo(function(){return y||hr(M)},[y,M]),It=n.useMemo(function(){if(A){var Wt,Tt=ct.slice();if(!Tt.includes(t)){var wt=Ge||0;wt>=0&&Tt.splice(wt,0,t)}var kt=Tt.indexOf(t);Tt=Tt.filter(function(fn,Wn){return fn!==t||Wn===kt});var xn=ct[kt],Tn;(mt==="left"||mt)&&!Ge?Tn="left":(mt==="right"||mt)&&Ge===ct.length?Tn="right":Tn=xn?xn.fixed:null;var Nn=(Wt={},(0,h.Z)(Wt,Dt,{className:"".concat(f,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,h.Z)(Wt,"title",se),(0,h.Z)(Wt,"fixed",Tn),(0,h.Z)(Wt,"className","".concat(f,"-row-expand-icon-cell")),(0,h.Z)(Wt,"width",bt),(0,h.Z)(Wt,"render",function(Wn,Hn,Ir){var cr=re(Hn,Ir),Wr=ce.has(cr),Ur=Ee?Ee(Hn):!0,Rn=Oe({prefixCls:f,expanded:Wr,expandable:Ur,record:Hn,onExpand:xe});return Ue?n.createElement("span",{onClick:function(rr){return rr.stopPropagation()}},Rn):Rn}),Wt);return Tt.map(function(fn){return fn===t?Nn:fn})}return ct.filter(function(fn){return fn!==t})},[A,ct,re,ce,Oe,He]),Ht=n.useMemo(function(){var Wt=It;return o&&(Wt=o(Wt)),Wt.length||(Wt=[{render:function(){return null}}]),Wt},[o,It,He]),cn=n.useMemo(function(){return He==="rtl"?Xr(Xn(Ht)):Xn(Ht)},[Ht,He,ht]),Xt=br(cn,ht),ln=(0,b.Z)(Xt,2),Bn=ln[0],Bt=ln[1];return[Ht,Bn,Bt]}var ao=yo;function Ve(r){var o,f=r.prefixCls,y=r.record,M=r.onExpand,A=r.expanded,ce=r.expandable,se="".concat(f,"-row-expand-icon");if(!ce)return n.createElement("span",{className:de()(se,"".concat(f,"-row-spaced"))});var re=function(Oe){M(y,Oe),Oe.stopPropagation()};return n.createElement("span",{className:de()(se,(o={},(0,h.Z)(o,"".concat(f,"-row-expanded"),A),(0,h.Z)(o,"".concat(f,"-row-collapsed"),!A),o)),onClick:re})}function pe(r,o,f){var y=[];function M(A){(A||[]).forEach(function(ce,se){y.push(o(ce,se)),M(ce[f])})}return M(r),y}function ot(r,o,f){var y=St(r),M=y.expandIcon,A=y.expandedRowKeys,ce=y.defaultExpandedRowKeys,se=y.defaultExpandAllRows,re=y.expandedRowRender,xe=y.onExpand,Oe=y.onExpandedRowsChange,Ee=y.childrenColumnName,Ge=M||Ve,He=Ee||"children",Ue=n.useMemo(function(){return re?"row":r.expandable&&r.internalHooks===l&&r.expandable.__PARENT_RENDER_ICON__||o.some(function(cn){return cn&&(0,le.Z)(cn)==="object"&&cn[He]})?"nest":!1},[!!re,o]),bt=n.useState(function(){return ce||(se?pe(o,f,He):[])}),mt=(0,b.Z)(bt,2),ht=mt[0],ct=mt[1],It=n.useMemo(function(){return new Set(A||ht||[])},[A,ht]),Ht=n.useCallback(function(cn){var Xt=f(cn,o.indexOf(cn)),ln,Bn=It.has(Xt);Bn?(It.delete(Xt),ln=(0,xt.Z)(It)):ln=[].concat((0,xt.Z)(It),[Xt]),ct(ln),xe&&xe(!Bn,cn),Oe&&Oe(ln)},[f,It,o,xe,Oe]);return[y,Ue,It,Ge,He,Ht]}function Ct(r,o,f,y){var M=r.map(function(A,ce){return yt(ce,ce,r,o,f,y==null?void 0:y[ce])});return(0,ae.Z)(function(){return M},[M],function(A,ce){return!(0,d.Z)(A,ce)})}function Nt(r){var o=(0,n.useRef)(r),f=(0,n.useState)({}),y=(0,b.Z)(f,2),M=y[1],A=(0,n.useRef)(null),ce=(0,n.useRef)([]);function se(re){ce.current.push(re);var xe=Promise.resolve();A.current=xe,xe.then(function(){if(A.current===xe){var Oe=ce.current,Ee=o.current;ce.current=[],Oe.forEach(function(Ge){o.current=Ge(o.current)}),A.current=null,Ee!==o.current&&M({})}})}return(0,n.useEffect)(function(){return function(){A.current=null}},[]),[o.current,se]}function At(r){var o=(0,n.useRef)(r||null),f=(0,n.useRef)();function y(){window.clearTimeout(f.current)}function M(ce){o.current=ce,y(),f.current=window.setTimeout(function(){o.current=null,f.current=void 0},100)}function A(){return o.current}return(0,n.useEffect)(function(){return y},[]),[M,A]}function Ut(){var r=n.useState(-1),o=(0,b.Z)(r,2),f=o[0],y=o[1],M=n.useState(-1),A=(0,b.Z)(M,2),ce=A[0],se=A[1],re=n.useCallback(function(xe,Oe){y(xe),se(Oe)},[]);return[f,ce,re]}var zt=e(47273),H=(0,zt.Z)()?window:null;function fe(r,o){var f=(0,le.Z)(r)==="object"?r:{},y=f.offsetHeader,M=y===void 0?0:y,A=f.offsetSummary,ce=A===void 0?0:A,se=f.offsetScroll,re=se===void 0?0:se,xe=f.getContainer,Oe=xe===void 0?function(){return H}:xe,Ee=Oe()||H;return n.useMemo(function(){var Ge=!!r;return{isSticky:Ge,stickyClassName:Ge?"".concat(o,"-sticky-holder"):"",offsetHeader:M,offsetSummary:ce,offsetScroll:re,container:Ee}},[re,M,ce,o,Ee])}function he(r,o,f){var y=(0,n.useMemo)(function(){for(var M=[],A=[],ce=0,se=0,re=0;re=Ee&&(fn=Ee-Ge),ce({scrollLeft:fn/Ee*(Oe+2)}),ct.current.x=kt.pageX},Wt=function(){if(A.current){var kt=(0,Te.os)(A.current).top,xn=kt+A.current.offsetHeight,Tn=re===window?document.documentElement.scrollTop+window.innerHeight:(0,Te.os)(re).top+re.clientHeight;xn-(0,ne.Z)()<=Tn||kt>=Tn-se?ht(function(Nn){return(0,X.Z)((0,X.Z)({},Nn),{},{isHiddenScrollBar:!0})}):ht(function(Nn){return(0,X.Z)((0,X.Z)({},Nn),{},{isHiddenScrollBar:!1})})}},Tt=function(kt){ht(function(xn){return(0,X.Z)((0,X.Z)({},xn),{},{scrollLeft:kt/Oe*Ee||0})})};return n.useImperativeHandle(f,function(){return{setScrollLeft:Tt}}),n.useEffect(function(){var wt=(0,Le.Z)(document.body,"mouseup",ln,!1),kt=(0,Le.Z)(document.body,"mousemove",Bt,!1);return Wt(),function(){wt.remove(),kt.remove()}},[Ge,cn]),n.useEffect(function(){var wt=(0,Le.Z)(re,"scroll",Wt,!1),kt=(0,Le.Z)(window,"resize",Wt,!1);return function(){wt.remove(),kt.remove()}},[re]),n.useEffect(function(){mt.isHiddenScrollBar||ht(function(wt){var kt=A.current;return kt?(0,X.Z)((0,X.Z)({},wt),{},{scrollLeft:kt.scrollLeft/kt.scrollWidth*kt.clientWidth}):wt})},[mt.isHiddenScrollBar]),Oe<=Ee||!Ge||mt.isHiddenScrollBar?null:n.createElement("div",{style:{height:(0,ne.Z)(),width:Ee,bottom:se},className:"".concat(xe,"-sticky-scroll")},n.createElement("div",{onMouseDown:Bn,ref:He,className:de()("".concat(xe,"-sticky-scroll-bar"),(0,h.Z)({},"".concat(xe,"-sticky-scroll-bar-active"),cn)),style:{width:"".concat(Ge,"px"),transform:"translate3d(".concat(mt.scrollLeft,"px, 0, 0)")}}))},Mt=n.forwardRef(Kt);function Qt(r){return null}var Kn=Qt;function Ln(r){return null}var Gn=Ln,$r="rc-table",Pr=[],Qn={};function mr(){return"No Data"}function ur(r){var o,f=(0,X.Z)({rowKey:"key",prefixCls:$r,emptyText:mr},r),y=f.prefixCls,M=f.className,A=f.rowClassName,ce=f.style,se=f.data,re=f.rowKey,xe=f.scroll,Oe=f.tableLayout,Ee=f.direction,Ge=f.title,He=f.footer,Ue=f.summary,bt=f.caption,mt=f.id,ht=f.showHeader,ct=f.components,It=f.emptyText,Ht=f.onRow,cn=f.onHeaderRow,Xt=f.internalHooks,ln=f.transformColumns,Bn=f.internalRefs,Bt=f.tailor,Wt=f.sticky,Tt=se||Pr,wt=!!Tt.length,kt=Xt===l,xn=n.useCallback(function(Sr,Vr){return(0,x.Z)(ct,Sr)||Vr},[ct]),Tn=n.useMemo(function(){return typeof re=="function"?re:function(Sr){var Vr=Sr&&Sr[re];return Vr}},[re]),Nn=xn(["body"]),fn=Ut(),Wn=(0,b.Z)(fn,3),Hn=Wn[0],Ir=Wn[1],cr=Wn[2],Wr=ot(f,Tt,Tn),Ur=(0,b.Z)(Wr,6),Rn=Ur[0],qr=Ur[1],rr=Ur[2],Zr=Ur[3],Br=Ur[4],po=Ur[5],hn=xe==null?void 0:xe.x,pn=n.useState(0),vn=(0,b.Z)(pn,2),en=vn[0],tr=vn[1],tn=ao((0,X.Z)((0,X.Z)((0,X.Z)({},f),Rn),{},{expandable:!!Rn.expandedRowRender,columnTitle:Rn.columnTitle,expandedKeys:rr,getRowKey:Tn,onTriggerExpand:po,expandIcon:Zr,expandIconColumnIndex:Rn.expandIconColumnIndex,direction:Ee,scrollWidth:kt&&Bt&&typeof hn=="number"?hn:null}),kt?ln:null),_n=(0,b.Z)(tn,3),or=_n[0],$n=_n[1],mo=_n[2],eo=mo!=null?mo:hn,Co=n.useMemo(function(){return{columns:or,flattenColumns:$n}},[or,$n]),Jr=n.useRef(),Eo=n.useRef(),Qr=n.useRef(),go=n.useRef(),$o=n.useRef(),gr=n.useState(!1),yr=(0,b.Z)(gr,2),Rr=yr[0],to=yr[1],c=n.useState(!1),ie=(0,b.Z)(c,2),Je=ie[0],lt=ie[1],Qe=Nt(new Map),ut=(0,b.Z)(Qe,2),vt=ut[0],Ft=ut[1],jt=je($n),$t=jt.map(function(Sr){return vt.get(Sr)}),nn=n.useMemo(function(){return $t},[$t.join("_")]),at=Ce(nn,$n.length,Ee),it=xe&&Ye(xe.y),Lt=xe&&Ye(eo)||!!Rn.fixed,Lr=Lt&&$n.some(function(Sr){var Vr=Sr.fixed;return Vr}),rn=n.useRef(),jn=fe(Wt,y),Mr=jn.isSticky,uo=jn.offsetHeader,ra=jn.offsetSummary,nr=jn.offsetScroll,gt=jn.stickyClassName,oo=jn.container,Er=n.useMemo(function(){return Ue==null?void 0:Ue(Tt)},[Ue,Tt]),kr=(it||Mr)&&n.isValidElement(Er)&&Er.type===a&&Er.props.fixed,vo,fo,ho;it&&(fo={overflowY:"scroll",maxHeight:xe.y}),Lt&&(vo={overflowX:"auto"},it||(fo={overflowY:"hidden"}),ho={width:eo===!0?"auto":eo,minWidth:"100%"});var oa=n.useCallback(function(Sr,Vr){(0,R.Z)(Jr.current)&&Ft(function(Oo){if(Oo.get(Sr)!==Vr){var Ko=new Map(Oo);return Ko.set(Sr,Vr),Ko}return Oo})},[]),ni=At(null),Ml=(0,b.Z)(ni,2),ri=Ml[0],Fl=Ml[1];function nl(Sr,Vr){Vr&&(typeof Vr=="function"?Vr(Sr):Vr.scrollLeft!==Sr&&(Vr.scrollLeft=Sr,Vr.scrollLeft!==Sr&&setTimeout(function(){Vr.scrollLeft=Sr},0)))}var aa=(0,P.Z)(function(Sr){var Vr=Sr.currentTarget,Oo=Sr.scrollLeft,Ko=Ee==="rtl",Ho=typeof Oo=="number"?Oo:Vr.scrollLeft,Jl=Vr||Qn;if(!Fl()||Fl()===Jl){var $l;ri(Jl),nl(Ho,Eo.current),nl(Ho,Qr.current),nl(Ho,$o.current),nl(Ho,($l=rn.current)===null||$l===void 0?void 0:$l.setScrollLeft)}var Pl=Vr||Eo.current;if(Pl){var Ol=Pl.scrollWidth,Il=Pl.clientWidth;if(Ol===Il){to(!1),lt(!1);return}Ko?(to(-Ho0)):(to(Ho>0),lt(Ho1?bt-kt:0,Tn=(0,X.Z)((0,X.Z)((0,X.Z)({},ln),re),{},{flex:"0 0 ".concat(kt,"px"),width:"".concat(kt,"px"),marginRight:xn,pointerEvents:"auto"}),Nn=n.useMemo(function(){return Oe?Tt<=1:Bt===0||Tt===0||Tt>1},[Tt,Bt,Oe]);Nn?Tn.visibility="hidden":Oe&&(Tn.height=Ee==null?void 0:Ee(Tt));var fn=Nn?function(){return null}:Ge,Wn={};return(Tt===0||Bt===0)&&(Wn.rowSpan=1,Wn.colSpan=1),n.createElement(st,(0,C.Z)({className:de()(Ue,xe),ellipsis:f.ellipsis,align:f.align,scope:f.rowScope,component:"div",prefixCls:o.prefixCls,key:It,record:se,index:A,renderIndex:ce,dataIndex:He,render:fn,shouldCellUpdate:f.shouldCellUpdate},Ht,{appendNode:cn,additionalProps:(0,X.Z)((0,X.Z)({},Xt),{},{style:Tn},Wn)}))}var io=Nr,lo=["data","index","className","rowKey","style","extra","getHeight"],Yr=n.forwardRef(function(r,o){var f=r.data,y=r.index,M=r.className,A=r.rowKey,ce=r.style,se=r.extra,re=r.getHeight,xe=(0,et.Z)(r,lo),Oe=f.record,Ee=f.indent,Ge=f.index,He=w(oe,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Ue=He.scrollX,bt=He.flattenColumns,mt=He.prefixCls,ht=He.fixColumn,ct=He.componentWidth,It=m(Oe,A,y,Ee),Ht=It.rowSupportExpand,cn=It.expanded,Xt=It.rowProps,ln=It.expandedRowRender,Bn=It.expandedRowClassName,Bt;if(Ht&&cn){var Wt=ln(Oe,y,Ee+1,cn),Tt=Bn==null?void 0:Bn(Oe,y,Ee),wt={};ht&&(wt={style:(0,h.Z)({},"--virtual-width","".concat(ct,"px"))});var kt="".concat(mt,"-expanded-row-cell");Bt=n.createElement("div",{className:de()("".concat(mt,"-expanded-row"),"".concat(mt,"-expanded-row-level-").concat(Ee+1),Tt)},n.createElement(st,{component:"div",prefixCls:mt,className:de()(kt,(0,h.Z)({},"".concat(kt,"-fixed"),ht)),additionalProps:wt},Wt))}var xn=(0,X.Z)((0,X.Z)({},ce),{},{width:Ue});se&&(xn.position="absolute",xn.pointerEvents="none");var Tn=n.createElement("div",(0,C.Z)({},Xt,xe,{ref:Ht?null:o,className:de()(M,"".concat(mt,"-row"),Xt==null?void 0:Xt.className,(0,h.Z)({},"".concat(mt,"-row-extra"),se)),style:(0,X.Z)((0,X.Z)({},xn),Xt==null?void 0:Xt.style)}),bt.map(function(Nn,fn){return n.createElement(io,{key:fn,rowInfo:It,column:Nn,colIndex:fn,indent:Ee,index:y,renderIndex:Ge,record:Oe,inverse:se,getHeight:re})}));return Ht?n.createElement("div",{ref:o},Tn,Bt):Tn}),ro=q(Yr),Ar=ro,Yn=n.forwardRef(function(r,o){var f=r.data,y=r.onScroll,M=w(oe,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),A=M.flattenColumns,ce=M.onColumnResize,se=M.getRowKey,re=M.expandedKeys,xe=M.prefixCls,Oe=M.childrenColumnName,Ee=M.emptyNode,Ge=M.scrollX,He=w(Cr),Ue=He.scrollY,bt=He.listItemHeight,mt=n.useRef(),ht=_e(f,Oe,re,se),ct=n.useMemo(function(){var Bt=0;return A.map(function(Wt){var Tt=Wt.width,wt=Wt.key;return Bt+=Tt,[wt,Tt,Bt]})},[A]),It=n.useMemo(function(){return ct.map(function(Bt){return Bt[2]})},[ct]);n.useEffect(function(){ct.forEach(function(Bt){var Wt=(0,b.Z)(Bt,2),Tt=Wt[0],wt=Wt[1];ce(Tt,wt)})},[ct]),n.useImperativeHandle(o,function(){var Bt={};return Object.defineProperty(Bt,"scrollLeft",{get:function(){var Tt;return((Tt=mt.current)===null||Tt===void 0?void 0:Tt.getScrollInfo().x)||0},set:function(Tt){var wt;(wt=mt.current)===null||wt===void 0||wt.scrollTo({left:Tt})}}),Bt});var Ht=function(Wt,Tt){var wt,kt=(wt=ht[Tt])===null||wt===void 0?void 0:wt.record,xn=Wt.onCell;if(xn){var Tn,Nn=xn(kt,Tt);return(Tn=Nn==null?void 0:Nn.rowSpan)!==null&&Tn!==void 0?Tn:1}return 1},cn=function(Wt){var Tt=Wt.start,wt=Wt.end,kt=Wt.getSize,xn=Wt.offsetY;if(wt<0)return null;for(var Tn=A.filter(function(hn){return Ht(hn,Tt)===0}),Nn=Tt,fn=function(pn){if(Tn=Tn.filter(function(vn){return Ht(vn,pn)===0}),!Tn.length)return Nn=pn,"break"},Wn=Tt;Wn>=0;Wn-=1){var Hn=fn(Wn);if(Hn==="break")break}for(var Ir=A.filter(function(hn){return Ht(hn,wt)!==1}),cr=wt,Wr=function(pn){if(Ir=Ir.filter(function(vn){return Ht(vn,pn)!==1}),!Ir.length)return cr=Math.max(pn-1,wt),"break"},Ur=wt;Ur1})&&qr.push(pn)},Zr=Nn;Zr<=cr;Zr+=1)var Br=rr(Zr);var po=qr.map(function(hn){var pn=ht[hn],vn=se(pn.record,hn),en=function(_n){var or=hn+_n-1,$n=se(ht[or].record,or),mo=kt(vn,$n);return mo.bottom-mo.top},tr=kt(vn);return n.createElement(Ar,{key:hn,data:pn,rowKey:vn,index:hn,style:{top:-xn+tr.top},extra:!0,getHeight:en})});return po},Xt=n.useMemo(function(){return{columnsOffset:It}},[It]),ln="".concat(xe,"-tbody"),Bn;return ht.length?Bn=n.createElement(Dr.Z,{fullHeight:!1,ref:mt,className:de()(ln,"".concat(ln,"-virtual")),height:Ue,itemHeight:bt||24,data:ht,itemKey:function(Wt){return se(Wt.record)},scrollWidth:Ge,onVirtualScroll:function(Wt){var Tt=Wt.x;y({scrollLeft:Tt})},extraRender:cn},function(Bt,Wt,Tt){var wt=se(Bt.record,Wt);return n.createElement(Ar,(0,C.Z)({data:Bt,rowKey:wt,index:Wt},Tt))}):Bn=n.createElement("div",{className:de()("".concat(xe,"-placeholder"))},n.createElement(st,{component:"div",prefixCls:xe},Ee)),n.createElement(Fn.Provider,{value:Xt},Bn)}),Jn=q(Yn),qn=Jn,zr=function(o,f){var y=f.ref,M=f.onScroll;return n.createElement(qn,{ref:y,data:o,onScroll:M})},En=100;function Kr(r){var o=r.columns,f=r.scroll,y=r.prefixCls,M=y===void 0?$r:y,A=r.className,ce=r.listItemHeight,se=f||{},re=se.x,xe=se.y;typeof re!="number"&&(re=((o||[]).length+1)*En),typeof xe!="number"&&(xe=500);var Oe=n.useMemo(function(){return{scrollY:xe,listItemHeight:ce}},[xe,ce]);return n.createElement(Cr.Provider,{value:Oe},n.createElement(In,(0,C.Z)({},r,{className:de()(A,"".concat(M,"-virtual")),scroll:(0,X.Z)((0,X.Z)({},f),{},{x:re}),components:{body:zr},columns:o,internalHooks:l,tailor:!0})))}function lr(r){return G(Kr,r)}var Pn=lr(),dr=null;function Gr(r){return null}var W=Gr;function be(r){return null}var Me=be,Yt=e(2738),qt=e(68031),Zt=e(36355),_t=e(93891),Vt=e(19716),Et=e(8628),Rt=e(31724),Cn=e(58421),On=e(71418),kn=e(88088);function Mn(r){return function(f){let{prefixCls:y,onExpand:M,record:A,expanded:ce,expandable:se}=f;const re=`${y}-row-expand-icon`;return n.createElement("button",{type:"button",onClick:xe=>{M(A,xe),xe.stopPropagation()},className:de()(re,{[`${re}-spaced`]:!se,[`${re}-expanded`]:se&&ce,[`${re}-collapsed`]:se&&!ce}),"aria-label":ce?r.collapse:r.expand,"aria-expanded":ce})}}var ir=Mn;function An(r,o){return"key"in r&&r.key!==void 0&&r.key!==null?r.key:r.dataIndex?Array.isArray(r.dataIndex)?r.dataIndex.join("."):r.dataIndex:o}function sn(r,o){return o?`${o}-${r}`:`${r}`}function bn(r,o){return typeof r=="function"?r(o):r}function Ot(r,o){const f=bn(r,o);return Object.prototype.toString.call(f)==="[object Object]"?"":f}var dn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Dn=dn,vr=e(7657),Tr=function(o,f){return n.createElement(vr.Z,(0,C.Z)({},o,{ref:f,icon:Dn}))},gn=n.forwardRef(Tr),Jt=gn,yn=e(56762);function pt(r){const o=n.useRef(r),f=(0,yn.Z)();return[()=>o.current,y=>{o.current=y,f()}]}var Un=e(3113),_r=e(24905),Hr=e(38854),so=e(64165),co=e(20834),xo=e(40875),bo=e(5112),So=e(17574),Io=e(47472),Do=e(92832);function Ia(r){let{value:o,onChange:f,filterSearch:y,tablePrefixCls:M,locale:A}=r;return y?n.createElement("div",{className:`${M}-filter-dropdown-search`},n.createElement(Do.default,{prefix:n.createElement(Io.Z,null),placeholder:A.filterSearchPlaceholder,onChange:f,value:o,htmlSize:1,className:`${M}-filter-dropdown-search-input`})):null}var la=Ia,ia=e(10228);const Na=r=>{const{keyCode:o}=r;o===ia.Z.ENTER&&r.stopPropagation()};var _a=n.forwardRef((r,o)=>n.createElement("div",{className:r.className,onClick:f=>f.stopPropagation(),onKeyDown:Na,ref:o},r.children));function Mo(r){let o=[];return(r||[]).forEach(f=>{let{value:y,children:M}=f;o.push(y),M&&(o=[].concat((0,xt.Z)(o),(0,xt.Z)(Mo(M))))}),o}function Da(r){return r.some(o=>{let{children:f}=o;return f})}function sa(r,o){return typeof o=="string"||typeof o=="number"?o==null?void 0:o.toString().toLowerCase().includes(r.trim().toLowerCase()):!1}function ca(r){let{filters:o,prefixCls:f,filteredKeys:y,filterMultiple:M,searchValue:A,filterSearch:ce}=r;return o.map((se,re)=>{const xe=String(se.value);if(se.children)return{key:xe||re,label:se.text,popupClassName:`${f}-dropdown-submenu`,children:ca({filters:se.children,prefixCls:f,filteredKeys:y,filterMultiple:M,searchValue:A,filterSearch:ce})};const Oe=M?_r.default:bo.ZP,Ee={key:se.value!==void 0?xe:re,label:n.createElement(n.Fragment,null,n.createElement(Oe,{checked:y.includes(xe)}),n.createElement("span",null,se.text))};return A.trim()?typeof ce=="function"?ce(A,se)?Ee:null:sa(A,se.text)?Ee:null:Ee})}function Ba(r){var o,f;const{tablePrefixCls:y,prefixCls:M,column:A,dropdownPrefixCls:ce,columnKey:se,filterMultiple:re,filterMode:xe="menu",filterSearch:Oe=!1,filterState:Ee,triggerFilter:Ge,locale:He,children:Ue,getPopupContainer:bt}=r,{filterDropdownOpen:mt,onFilterDropdownOpenChange:ht,filterResetToDefaultFilteredValue:ct,defaultFilteredValue:It,filterDropdownVisible:Ht,onFilterDropdownVisibleChange:cn}=A,[Xt,ln]=n.useState(!1),Bn=!!(Ee&&(!((o=Ee.filteredKeys)===null||o===void 0)&&o.length||Ee.forceFiltered)),Bt=tn=>{ln(tn),ht==null||ht(tn),cn==null||cn(tn)},Wt=(f=mt!=null?mt:Ht)!==null&&f!==void 0?f:Xt,Tt=Ee==null?void 0:Ee.filteredKeys,[wt,kt]=pt(Tt||[]),xn=tn=>{let{selectedKeys:_n}=tn;kt(_n)},Tn=(tn,_n)=>{let{node:or,checked:$n}=_n;xn(re?{selectedKeys:tn}:{selectedKeys:$n&&or.key?[or.key]:[]})};n.useEffect(()=>{Xt&&xn({selectedKeys:Tt||[]})},[Tt]);const[Nn,fn]=n.useState([]),Wn=tn=>{fn(tn)},[Hn,Ir]=n.useState(""),cr=tn=>{const{value:_n}=tn.target;Ir(_n)};n.useEffect(()=>{Xt||Ir("")},[Xt]);const Wr=tn=>{const _n=tn&&tn.length?tn:null;if(_n===null&&(!Ee||!Ee.filteredKeys)||(0,d.Z)(_n,Ee==null?void 0:Ee.filteredKeys,!0))return null;Ge({column:A,key:se,filteredKeys:_n})},Ur=()=>{Bt(!1),Wr(wt())},Rn=function(){let{confirm:tn,closeDropdown:_n}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};tn&&Wr([]),_n&&Bt(!1),Ir(""),kt(ct?(It||[]).map(or=>String(or)):[])},qr=function(){let{closeDropdown:tn}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};tn&&Bt(!1),Wr(wt())},rr=tn=>{tn&&Tt!==void 0&&kt(Tt||[]),Bt(tn),!tn&&!A.filterDropdown&&Ur()},Zr=de()({[`${ce}-menu-without-submenu`]:!Da(A.filters||[])}),Br=tn=>{if(tn.target.checked){const _n=Mo(A==null?void 0:A.filters).map(or=>String(or));kt(_n)}else kt([])},po=tn=>{let{filters:_n}=tn;return(_n||[]).map((or,$n)=>{const mo=String(or.value),eo={title:or.text,key:or.value!==void 0?mo:$n};return or.children&&(eo.children=po({filters:or.children})),eo})},hn=tn=>{var _n;return Object.assign(Object.assign({},tn),{text:tn.title,value:tn.key,children:((_n=tn.children)===null||_n===void 0?void 0:_n.map(or=>hn(or)))||[]})};let pn;if(typeof A.filterDropdown=="function")pn=A.filterDropdown({prefixCls:`${ce}-custom`,setSelectedKeys:tn=>xn({selectedKeys:tn}),selectedKeys:wt(),confirm:qr,clearFilters:Rn,filters:A.filters,visible:Wt,close:()=>{Bt(!1)}});else if(A.filterDropdown)pn=A.filterDropdown;else{const tn=wt()||[],_n=()=>(A.filters||[]).length===0?n.createElement(so.Z,{image:so.Z.PRESENTED_IMAGE_SIMPLE,description:He.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):xe==="tree"?n.createElement(n.Fragment,null,n.createElement(la,{filterSearch:Oe,value:Hn,onChange:cr,tablePrefixCls:y,locale:He}),n.createElement("div",{className:`${y}-filter-dropdown-tree`},re?n.createElement(_r.default,{checked:tn.length===Mo(A.filters).length,indeterminate:tn.length>0&&tn.lengthtypeof Oe=="function"?Oe(Hn,hn($n)):sa(Hn,$n.title):void 0}))):n.createElement(n.Fragment,null,n.createElement(la,{filterSearch:Oe,value:Hn,onChange:cr,tablePrefixCls:y,locale:He}),n.createElement(co.default,{selectable:!0,multiple:re,prefixCls:`${ce}-menu`,className:Zr,onSelect:xn,onDeselect:xn,selectedKeys:tn,getPopupContainer:bt,openKeys:Nn,onOpenChange:Wn,items:ca({filters:A.filters||[],filterSearch:Oe,prefixCls:M,filteredKeys:wt(),filterMultiple:re,searchValue:Hn})})),or=()=>ct?(0,d.Z)((It||[]).map($n=>String($n)),tn,!0):tn.length===0;pn=n.createElement(n.Fragment,null,_n(),n.createElement("div",{className:`${M}-dropdown-btns`},n.createElement(Un.ZP,{type:"link",size:"small",disabled:or(),onClick:()=>Rn()},He.filterReset),n.createElement(Un.ZP,{type:"primary",size:"small",onClick:Ur},He.filterConfirm)))}A.filterDropdown&&(pn=n.createElement(xo.J,{selectable:void 0},pn));const vn=()=>n.createElement(_a,{className:`${M}-dropdown`},pn);let en;typeof A.filterIcon=="function"?en=A.filterIcon(Bn):A.filterIcon?en=A.filterIcon:en=n.createElement(Jt,null);const{direction:tr}=n.useContext(Zt.E_);return n.createElement("div",{className:`${M}-column`},n.createElement("span",{className:`${y}-column-title`},Ue),n.createElement(Hr.Z,{dropdownRender:vn,trigger:["click"],open:Wt,onOpenChange:rr,getPopupContainer:bt,placement:tr==="rtl"?"bottomLeft":"bottomRight"},n.createElement("span",{role:"button",tabIndex:-1,className:de()(`${M}-trigger`,{active:Bn}),onClick:tn=>{tn.stopPropagation()}},en)))}var Ta=Ba;function Jo(r,o,f){let y=[];return(r||[]).forEach((M,A)=>{var ce;const se=sn(A,f);if(M.filters||"filterDropdown"in M||"onFilter"in M)if("filteredValue"in M){let re=M.filteredValue;"filterDropdown"in M||(re=(ce=re==null?void 0:re.map(String))!==null&&ce!==void 0?ce:re),y.push({column:M,key:An(M,se),filteredKeys:re,forceFiltered:M.filtered})}else y.push({column:M,key:An(M,se),filteredKeys:o&&M.defaultFilteredValue?M.defaultFilteredValue:void 0,forceFiltered:M.filtered});"children"in M&&(y=[].concat((0,xt.Z)(y),(0,xt.Z)(Jo(M.children,o,se))))}),y}function ua(r,o,f,y,M,A,ce,se){return f.map((re,xe)=>{const Oe=sn(xe,se),{filterMultiple:Ee=!0,filterMode:Ge,filterSearch:He}=re;let Ue=re;if(Ue.filters||Ue.filterDropdown){const bt=An(Ue,Oe),mt=y.find(ht=>{let{key:ct}=ht;return bt===ct});Ue=Object.assign(Object.assign({},Ue),{title:ht=>n.createElement(Ta,{tablePrefixCls:r,prefixCls:`${r}-filter`,dropdownPrefixCls:o,column:Ue,columnKey:bt,filterState:mt,filterMultiple:Ee,filterMode:Ge,filterSearch:He,triggerFilter:A,locale:M,getPopupContainer:ce},bn(re.title,ht))})}return"children"in Ue&&(Ue=Object.assign(Object.assign({},Ue),{children:ua(r,o,Ue.children,y,M,A,ce,Oe)})),Ue})}function da(r){const o={};return r.forEach(f=>{let{key:y,filteredKeys:M,column:A}=f;const{filters:ce,filterDropdown:se}=A;if(se)o[y]=M||null;else if(Array.isArray(M)){const re=Mo(ce);o[y]=re.filter(xe=>M.includes(String(xe)))}else o[y]=null}),o}function fa(r,o){return o.reduce((f,y)=>{const{column:{onFilter:M,filters:A},filteredKeys:ce}=y;return M&&ce&&ce.length?f.filter(se=>ce.some(re=>{const xe=Mo(A),Oe=xe.findIndex(Ge=>String(Ge)===String(re)),Ee=Oe!==-1?xe[Oe]:re;return M(Ee,se)})):f},r)}const ma=r=>r.flatMap(o=>"children"in o?[o].concat((0,xt.Z)(ma(o.children||[]))):[o]);function Ra(r){let{prefixCls:o,dropdownPrefixCls:f,mergedColumns:y,onFilterChange:M,getPopupContainer:A,locale:ce}=r;const se=n.useMemo(()=>ma(y||[]),[y]),[re,xe]=n.useState(()=>Jo(se,!0)),Oe=n.useMemo(()=>{const Ue=Jo(se,!1);if(Ue.length===0)return Ue;let bt=!0,mt=!0;if(Ue.forEach(ht=>{let{filteredKeys:ct}=ht;ct!==void 0?bt=!1:mt=!1}),bt){const ht=(se||[]).map((ct,It)=>An(ct,sn(It)));return re.filter(ct=>{let{key:It}=ct;return ht.includes(It)}).map(ct=>{const It=se[ht.findIndex(Ht=>Ht===ct.key)];return Object.assign(Object.assign({},ct),{column:Object.assign(Object.assign({},ct.column),It),forceFiltered:It.filtered})})}return Ue},[se,re]),Ee=n.useMemo(()=>da(Oe),[Oe]),Ge=Ue=>{const bt=Oe.filter(mt=>{let{key:ht}=mt;return ht!==Ue.key});bt.push(Ue),xe(bt),M(da(bt),bt)};return[Ue=>ua(o,f,Ue,Oe,ce,Ge,A),Oe,Ee]}var Ma=Ra;function Fa(r,o,f){const y=n.useRef({});function M(A){if(!y.current||y.current.data!==r||y.current.childrenColumnName!==o||y.current.getRowKey!==f){let se=function(re){re.forEach((xe,Oe)=>{const Ee=f(xe,Oe);ce.set(Ee,xe),xe&&typeof xe=="object"&&o in xe&&se(xe[o]||[])})};const ce=new Map;se(r),y.current={data:r,childrenColumnName:o,kvMap:ce,getRowKey:f}}return y.current.kvMap.get(A)}return[M]}var Aa=e(50371),Za=function(r,o){var f={};for(var y in r)Object.prototype.hasOwnProperty.call(r,y)&&o.indexOf(y)<0&&(f[y]=r[y]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,y=Object.getOwnPropertySymbols(r);M{const A=r[M];typeof A!="function"&&(f[M]=A)}),f}function ka(r,o,f){const y=f&&typeof f=="object"?f:{},{total:M=0}=y,A=Za(y,["total"]),[ce,se]=(0,n.useState)(()=>({current:"defaultCurrent"in A?A.defaultCurrent:1,pageSize:"defaultPageSize"in A?A.defaultPageSize:va})),re=(0,Aa.Z)(ce,A,{total:M>0?M:r}),xe=Math.ceil((M||r)/re.pageSize);re.current>xe&&(re.current=xe||1);const Oe=(Ge,He)=>{se({current:Ge!=null?Ge:1,pageSize:He||re.pageSize})},Ee=(Ge,He)=>{var Ue;f&&((Ue=f.onChange)===null||Ue===void 0||Ue.call(f,Ge,He)),Oe(Ge,He),o(Ge,He||(re==null?void 0:re.pageSize))};return f===!1?[{},()=>{}]:[Object.assign(Object.assign({},re),{onChange:Ee}),Oe]}var ja=ka,il=e(84105),No=e(35654),Gt=e(90782),J=e(71430),wo=e(18929);const ft={},pa="SELECT_ALL",Bo="SELECT_INVERT",ga="SELECT_NONE",za=[],To=(r,o)=>{let f=[];return(o||[]).forEach(y=>{f.push(y),y&&typeof y=="object"&&r in y&&(f=[].concat((0,xt.Z)(f),(0,xt.Z)(To(r,y[r]))))}),f};var sl=(r,o)=>{const{preserveSelectedRowKeys:f,selectedRowKeys:y,defaultSelectedRowKeys:M,getCheckboxProps:A,onChange:ce,onSelect:se,onSelectAll:re,onSelectInvert:xe,onSelectNone:Oe,onSelectMultiple:Ee,columnWidth:Ge,type:He,selections:Ue,fixed:bt,renderCell:mt,hideSelectAll:ht,checkStrictly:ct=!0}=o||{},{prefixCls:It,data:Ht,pageData:cn,getRecordByKey:Xt,getRowKey:ln,expandType:Bn,childrenColumnName:Bt,locale:Wt,getPopupContainer:Tt}=r,[wt,kt]=(0,wo.Z)(y||M||za,{value:y}),xn=n.useRef(new Map),Tn=(0,n.useCallback)(hn=>{if(f){const pn=new Map;hn.forEach(vn=>{let en=Xt(vn);!en&&xn.current.has(vn)&&(en=xn.current.get(vn)),pn.set(vn,en)}),xn.current=pn}},[Xt,f]);n.useEffect(()=>{Tn(wt)},[wt]);const{keyEntities:Nn}=(0,n.useMemo)(()=>{if(ct)return{keyEntities:null};let hn=Ht;if(f){const pn=new Set(Ht.map((en,tr)=>ln(en,tr))),vn=Array.from(xn.current).reduce((en,tr)=>{let[tn,_n]=tr;return pn.has(tn)?en:en.concat(_n)},[]);hn=[].concat((0,xt.Z)(hn),(0,xt.Z)(vn))}return(0,J.I8)(hn,{externalGetKey:ln,childrenPropName:Bt})},[Ht,ln,ct,Bt,f]),fn=(0,n.useMemo)(()=>To(Bt,cn),[Bt,cn]),Wn=(0,n.useMemo)(()=>{const hn=new Map;return fn.forEach((pn,vn)=>{const en=ln(pn,vn),tr=(A?A(pn):null)||{};hn.set(en,tr)}),hn},[fn,ln,A]),Hn=(0,n.useCallback)(hn=>{var pn;return!!(!((pn=Wn.get(ln(hn)))===null||pn===void 0)&&pn.disabled)},[Wn,ln]),[Ir,cr]=(0,n.useMemo)(()=>{if(ct)return[wt||[],[]];const{checkedKeys:hn,halfCheckedKeys:pn}=(0,Gt.S)(wt,!0,Nn,Hn);return[hn||[],pn]},[wt,ct,Nn,Hn]),Wr=(0,n.useMemo)(()=>{const hn=He==="radio"?Ir.slice(0,1):Ir;return new Set(hn)},[Ir,He]),Ur=(0,n.useMemo)(()=>He==="radio"?new Set:new Set(cr),[cr,He]),[Rn,qr]=(0,n.useState)(null);n.useEffect(()=>{o||kt(za)},[!!o]);const rr=(0,n.useCallback)((hn,pn)=>{let vn,en;Tn(hn),f?(vn=hn,en=hn.map(tr=>xn.current.get(tr))):(vn=[],en=[],hn.forEach(tr=>{const tn=Xt(tr);tn!==void 0&&(vn.push(tr),en.push(tn))})),kt(vn),ce==null||ce(vn,en,{type:pn})},[kt,Xt,ce,f]),Zr=(0,n.useCallback)((hn,pn,vn,en)=>{if(se){const tr=vn.map(tn=>Xt(tn));se(Xt(hn),pn,tr,en)}rr(vn,"single")},[se,Xt,rr]),Br=(0,n.useMemo)(()=>!Ue||ht?null:(Ue===!0?[pa,Bo,ga]:Ue).map(pn=>pn===pa?{key:"all",text:Wt.selectionAll,onSelect(){rr(Ht.map((vn,en)=>ln(vn,en)).filter(vn=>{const en=Wn.get(vn);return!(en!=null&&en.disabled)||Wr.has(vn)}),"all")}}:pn===Bo?{key:"invert",text:Wt.selectInvert,onSelect(){const vn=new Set(Wr);cn.forEach((tr,tn)=>{const _n=ln(tr,tn),or=Wn.get(_n);or!=null&&or.disabled||(vn.has(_n)?vn.delete(_n):vn.add(_n))});const en=Array.from(vn);xe&&xe(en),rr(en,"invert")}}:pn===ga?{key:"none",text:Wt.selectNone,onSelect(){Oe==null||Oe(),rr(Array.from(Wr).filter(vn=>{const en=Wn.get(vn);return en==null?void 0:en.disabled}),"none")}}:pn).map(pn=>Object.assign(Object.assign({},pn),{onSelect:function(){for(var vn,en,tr=arguments.length,tn=new Array(tr),_n=0;_n{var pn;if(!o)return hn.filter(gr=>gr!==ft);let vn=(0,xt.Z)(hn);const en=new Set(Wr),tr=fn.map(ln).filter(gr=>!Wn.get(gr).disabled),tn=tr.every(gr=>en.has(gr)),_n=tr.some(gr=>en.has(gr)),or=()=>{const gr=[];tn?tr.forEach(Rr=>{en.delete(Rr),gr.push(Rr)}):tr.forEach(Rr=>{en.has(Rr)||(en.add(Rr),gr.push(Rr))});const yr=Array.from(en);re==null||re(!tn,yr.map(Rr=>Xt(Rr)),gr.map(Rr=>Xt(Rr))),rr(yr,"all"),qr(null)};let $n;if(He!=="radio"){let gr;if(Br){const ie={getPopupContainer:Tt,items:Br.map((Je,lt)=>{const{key:Qe,text:ut,onSelect:vt}=Je;return{key:Qe!=null?Qe:lt,onClick:()=>{vt==null||vt(tr)},label:ut}})};gr=n.createElement("div",{className:`${It}-selection-extra`},n.createElement(Hr.Z,{menu:ie,getPopupContainer:Tt},n.createElement("span",null,n.createElement(il.Z,null))))}const yr=fn.map((ie,Je)=>{const lt=ln(ie,Je),Qe=Wn.get(lt)||{};return Object.assign({checked:en.has(lt)},Qe)}).filter(ie=>{let{disabled:Je}=ie;return Je}),Rr=!!yr.length&&yr.length===fn.length,to=Rr&&yr.every(ie=>{let{checked:Je}=ie;return Je}),c=Rr&&yr.some(ie=>{let{checked:Je}=ie;return Je});$n=!ht&&n.createElement("div",{className:`${It}-selection`},n.createElement(_r.default,{checked:Rr?to:!!fn.length&&tn,indeterminate:Rr?!to&&c:!tn&&_n,onChange:or,disabled:fn.length===0||Rr,"aria-label":gr?"Custom selection":"Select all",skipGroup:!0}),gr)}let mo;He==="radio"?mo=(gr,yr,Rr)=>{const to=ln(yr,Rr),c=en.has(to);return{node:n.createElement(bo.ZP,Object.assign({},Wn.get(to),{checked:c,onClick:ie=>ie.stopPropagation(),onChange:ie=>{en.has(to)||Zr(to,!0,[to],ie.nativeEvent)}})),checked:c}}:mo=(gr,yr,Rr)=>{var to;const c=ln(yr,Rr),ie=en.has(c),Je=Ur.has(c),lt=Wn.get(c);let Qe;return Bn==="nest"?Qe=Je:Qe=(to=lt==null?void 0:lt.indeterminate)!==null&&to!==void 0?to:Je,{node:n.createElement(_r.default,Object.assign({},lt,{indeterminate:Qe,checked:ie,skipGroup:!0,onClick:ut=>ut.stopPropagation(),onChange:ut=>{let{nativeEvent:vt}=ut;const{shiftKey:Ft}=vt;let jt=-1,$t=-1;if(Ft&&ct){const nn=new Set([Rn,c]);tr.some((at,it)=>{if(nn.has(at))if(jt===-1)jt=it;else return $t=it,!0;return!1})}if($t!==-1&&jt!==$t&&ct){const nn=tr.slice(jt,$t+1),at=[];ie?nn.forEach(Lt=>{en.has(Lt)&&(at.push(Lt),en.delete(Lt))}):nn.forEach(Lt=>{en.has(Lt)||(at.push(Lt),en.add(Lt))});const it=Array.from(en);Ee==null||Ee(!ie,it.map(Lt=>Xt(Lt)),at.map(Lt=>Xt(Lt))),rr(it,"multiple")}else{const nn=Ir;if(ct){const at=ie?(0,No._5)(nn,c):(0,No.L0)(nn,c);Zr(c,!ie,at,vt)}else{const at=(0,Gt.S)([].concat((0,xt.Z)(nn),[c]),!0,Nn,Hn),{checkedKeys:it,halfCheckedKeys:Lt}=at;let Lr=it;if(ie){const rn=new Set(it);rn.delete(c),Lr=(0,Gt.S)(Array.from(rn),{checked:!1,halfCheckedKeys:Lt},Nn,Hn).checkedKeys}Zr(c,!ie,Lr,vt)}}qr(ie?null:c)}})),checked:ie}};const eo=(gr,yr,Rr)=>{const{node:to,checked:c}=mo(gr,yr,Rr);return mt?mt(c,yr,Rr,to):to};if(!vn.includes(ft))if(vn.findIndex(gr=>{var yr;return((yr=gr[Dt])===null||yr===void 0?void 0:yr.columnType)==="EXPAND_COLUMN"})===0){const[gr,...yr]=vn;vn=[gr,ft].concat((0,xt.Z)(yr))}else vn=[ft].concat((0,xt.Z)(vn));const Co=vn.indexOf(ft);vn=vn.filter((gr,yr)=>gr!==ft||yr===Co);const Jr=vn[Co-1],Eo=vn[Co+1];let Qr=bt;Qr===void 0&&((Eo==null?void 0:Eo.fixed)!==void 0?Qr=Eo.fixed:(Jr==null?void 0:Jr.fixed)!==void 0&&(Qr=Jr.fixed)),Qr&&Jr&&((pn=Jr[Dt])===null||pn===void 0?void 0:pn.columnType)==="EXPAND_COLUMN"&&Jr.fixed===void 0&&(Jr.fixed=Qr);const go=de()(`${It}-selection-col`,{[`${It}-selection-col-with-dropdown`]:Ue&&He==="checkbox"}),$o={fixed:Qr,width:Ge,className:`${It}-selection-column`,title:o.columnTitle||$n,render:eo,onCell:o.onCell,[Dt]:{className:go}};return vn.map(gr=>gr===ft?$o:gr)},[ln,fn,o,Ir,Wr,Ur,Ge,Br,Bn,Rn,Wn,Ee,Zr,Hn]),Wr]},cl=e(89489),Ka=e(59477),ha=e(6848);const _o="ascend",ya="descend";function Ro(r){return typeof r.sorter=="object"&&typeof r.sorter.multiple=="number"?r.sorter.multiple:!1}function Ha(r){return typeof r=="function"?r:r&&typeof r=="object"&&r.compare?r.compare:!1}function Wa(r,o){return o?r[r.indexOf(o)+1]:r[0]}function ba(r,o,f){let y=[];function M(A,ce){y.push({column:A,key:An(A,ce),multiplePriority:Ro(A),sortOrder:A.sortOrder})}return(r||[]).forEach((A,ce)=>{const se=sn(ce,f);A.children?("sortOrder"in A&&M(A,se),y=[].concat((0,xt.Z)(y),(0,xt.Z)(ba(A.children,o,se)))):A.sorter&&("sortOrder"in A?M(A,se):o&&A.defaultSortOrder&&y.push({column:A,key:An(A,se),multiplePriority:Ro(A),sortOrder:A.defaultSortOrder}))}),y}function xa(r,o,f,y,M,A,ce,se){return(o||[]).map((re,xe)=>{const Oe=sn(xe,se);let Ee=re;if(Ee.sorter){const Ge=Ee.sortDirections||M,He=Ee.showSorterTooltip===void 0?ce:Ee.showSorterTooltip,Ue=An(Ee,Oe),bt=f.find(Bn=>{let{key:Bt}=Bn;return Bt===Ue}),mt=bt?bt.sortOrder:null,ht=Wa(Ge,mt);let ct;if(re.sortIcon)ct=re.sortIcon({sortOrder:mt});else{const Bn=Ge.includes(_o)&&n.createElement(Ka.Z,{className:de()(`${r}-column-sorter-up`,{active:mt===_o})}),Bt=Ge.includes(ya)&&n.createElement(cl.Z,{className:de()(`${r}-column-sorter-down`,{active:mt===ya})});ct=n.createElement("span",{className:de()(`${r}-column-sorter`,{[`${r}-column-sorter-full`]:!!(Bn&&Bt)})},n.createElement("span",{className:`${r}-column-sorter-inner`,"aria-hidden":"true"},Bn,Bt))}const{cancelSort:It,triggerAsc:Ht,triggerDesc:cn}=A||{};let Xt=It;ht===ya?Xt=cn:ht===_o&&(Xt=Ht);const ln=typeof He=="object"?He:{title:Xt};Ee=Object.assign(Object.assign({},Ee),{className:de()(Ee.className,{[`${r}-column-sort`]:mt}),title:Bn=>{const Bt=n.createElement("div",{className:`${r}-column-sorters`},n.createElement("span",{className:`${r}-column-title`},bn(re.title,Bn)),ct);return He?n.createElement(ha.Z,Object.assign({},ln),Bt):Bt},onHeaderCell:Bn=>{const Bt=re.onHeaderCell&&re.onHeaderCell(Bn)||{},Wt=Bt.onClick,Tt=Bt.onKeyDown;Bt.onClick=xn=>{y({column:re,key:Ue,sortOrder:ht,multiplePriority:Ro(re)}),Wt==null||Wt(xn)},Bt.onKeyDown=xn=>{xn.keyCode===ia.Z.ENTER&&(y({column:re,key:Ue,sortOrder:ht,multiplePriority:Ro(re)}),Tt==null||Tt(xn))};const wt=Ot(re.title,{}),kt=wt==null?void 0:wt.toString();return mt?Bt["aria-sort"]=mt==="ascend"?"ascending":"descending":Bt["aria-label"]=kt||"",Bt.className=de()(Bt.className,`${r}-column-has-sorters`),Bt.tabIndex=0,re.ellipsis&&(Bt.title=(wt!=null?wt:"").toString()),Bt}})}return"children"in Ee&&(Ee=Object.assign(Object.assign({},Ee),{children:xa(r,Ee.children,f,y,M,A,ce,Oe)})),Ee})}function Ua(r){const{column:o,sortOrder:f}=r;return{column:o,order:f,field:o.dataIndex,columnKey:o.key}}function Wo(r){const o=r.filter(f=>{let{sortOrder:y}=f;return y}).map(Ua);return o.length===0&&r.length?Object.assign(Object.assign({},Ua(r[r.length-1])),{column:void 0}):o.length<=1?o[0]||{}:o}function Ca(r,o,f){const y=o.slice().sort((ce,se)=>se.multiplePriority-ce.multiplePriority),M=r.slice(),A=y.filter(ce=>{let{column:{sorter:se},sortOrder:re}=ce;return Ha(se)&&re});return A.length?M.sort((ce,se)=>{for(let re=0;re{const se=ce[f];return se?Object.assign(Object.assign({},ce),{[f]:Ca(se,o,f)}):ce}):M}function Ea(r){let{prefixCls:o,mergedColumns:f,onSorterChange:y,sortDirections:M,tableLocale:A,showSorterTooltip:ce}=r;const[se,re]=n.useState(ba(f,!0)),xe=n.useMemo(()=>{let Ue=!0;const bt=ba(f,!1);if(!bt.length)return se;const mt=[];function ht(It){Ue?mt.push(It):mt.push(Object.assign(Object.assign({},It),{sortOrder:null}))}let ct=null;return bt.forEach(It=>{ct===null?(ht(It),It.sortOrder&&(It.multiplePriority===!1?Ue=!1:ct=!0)):(ct&&It.multiplePriority!==!1||(Ue=!1),ht(It))}),mt},[f,se]),Oe=n.useMemo(()=>{const Ue=xe.map(bt=>{let{column:mt,sortOrder:ht}=bt;return{column:mt,order:ht}});return{sortColumns:Ue,sortColumn:Ue[0]&&Ue[0].column,sortOrder:Ue[0]&&Ue[0].order}},[xe]);function Ee(Ue){let bt;Ue.multiplePriority===!1||!xe.length||xe[0].multiplePriority===!1?bt=[Ue]:bt=[].concat((0,xt.Z)(xe.filter(mt=>{let{key:ht}=mt;return ht!==Ue.key})),[Ue]),re(bt),y(Wo(bt),bt)}return[Ue=>xa(o,Ue,xe,Ee,M,A,ce),xe,Oe,()=>Wo(xe)]}function Va(r,o){return r.map(f=>{const y=Object.assign({},f);return y.title=bn(f.title,o),"children"in y&&(y.children=Va(y.children,o)),y})}function ul(r){return[n.useCallback(f=>Va(f,r),[r])]}var Uo=Or((r,o)=>{const{_renderTimes:f}=r,{_renderTimes:y}=o;return f!==y}),Sa=lr((r,o)=>{const{_renderTimes:f}=r,{_renderTimes:y}=o;return f!==y}),Vo=e(64993),Qo=e(17313),Lo=e(83116),_l=e(37613),Xa=r=>{const{componentCls:o}=r,f=`${r.lineWidth}px ${r.lineType} ${r.tableBorderColor}`,y=(M,A,ce)=>({[`&${o}-${M}`]:{[`> ${o}-container`]:{[`> ${o}-content, > ${o}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${o}-expanded-row-fixed`]:{margin:`-${A}px -${ce+r.lineWidth}px`}}}}}});return{[`${o}-wrapper`]:{[`${o}${o}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${o}-title`]:{border:f,borderBottom:0},[`> ${o}-container`]:{borderInlineStart:f,borderTop:f,[` + > ${o}-content, + > ${o}-header, + > ${o}-body, + > ${o}-summary + `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:f},"> thead":{"> tr:not(:last-child) > th":{borderBottom:f},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${o}-cell-fix-right-first::after`]:{borderInlineEnd:f}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${o}-expanded-row-fixed`]:{margin:`-${r.tablePaddingVertical}px -${r.tablePaddingHorizontal+r.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:r.lineWidth,bottom:0,borderInlineEnd:f,content:'""'}}}}}},[`&${o}-scroll-horizontal`]:{[`> ${o}-container > ${o}-body`]:{"> table > tbody":{[` + > tr${o}-expanded-row, + > tr${o}-placeholder + `]:{"> th, > td":{borderInlineEnd:0}}}}}},y("middle",r.tablePaddingVerticalMiddle,r.tablePaddingHorizontalMiddle)),y("small",r.tablePaddingVerticalSmall,r.tablePaddingHorizontalSmall)),{[`> ${o}-footer`]:{border:f,borderTop:0}}),[`${o}-cell`]:{[`${o}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${r.lineWidth}px 0 ${r.lineWidth}px ${r.tableHeaderBg}`}},[`${o}-bordered ${o}-cell-scrollbar`]:{borderInlineEnd:f}}}},ko=r=>{const{componentCls:o}=r;return{[`${o}-wrapper`]:{[`${o}-cell-ellipsis`]:Object.assign(Object.assign({},Qo.vS),{wordBreak:"keep-all",[` + &${o}-cell-fix-left-last, + &${o}-cell-fix-right-first + `]:{overflow:"visible",[`${o}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${o}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},ea=r=>{const{componentCls:o}=r;return{[`${o}-wrapper`]:{[`${o}-tbody > tr${o}-placeholder`]:{textAlign:"center",color:r.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:r.colorBgContainer}}}}},dl=e(15969),ml=r=>{const{componentCls:o,antCls:f,controlInteractiveSize:y,motionDurationSlow:M,lineWidth:A,paddingXS:ce,lineType:se,tableBorderColor:re,tableExpandIconBg:xe,tableExpandColumnWidth:Oe,borderRadius:Ee,fontSize:Ge,fontSizeSM:He,lineHeight:Ue,tablePaddingVertical:bt,tablePaddingHorizontal:mt,tableExpandedRowBg:ht,paddingXXS:ct}=r,It=y/2-A,Ht=It*2+A*3,cn=`${A}px ${se} ${re}`,Xt=ct-A;return{[`${o}-wrapper`]:{[`${o}-expand-icon-col`]:{width:Oe},[`${o}-row-expand-icon-cell`]:{textAlign:"center",[`${o}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${o}-row-indent`]:{height:1,float:"left"},[`${o}-row-expand-icon`]:Object.assign(Object.assign({},(0,dl.N)(r)),{position:"relative",float:"left",boxSizing:"border-box",width:Ht,height:Ht,padding:0,color:"inherit",lineHeight:`${Ht}px`,background:xe,border:cn,borderRadius:Ee,transform:`scale(${y/Ht})`,transition:`all ${M}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${M} ease-out`,content:'""'},"&::before":{top:It,insetInlineEnd:Xt,insetInlineStart:Xt,height:A},"&::after":{top:Xt,bottom:Xt,insetInlineStart:It,width:A,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${o}-row-indent + ${o}-row-expand-icon`]:{marginTop:(Ge*Ue-A*3)/2-Math.ceil((He*1.4-A*3)/2),marginInlineEnd:ce},[`tr${o}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:ht}},[`${f}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${o}-expanded-row-fixed`]:{position:"relative",margin:`-${bt}px -${mt}px`,padding:`${bt}px ${mt}px`}}}},vl=r=>{const{componentCls:o,antCls:f,iconCls:y,tableFilterDropdownWidth:M,tableFilterDropdownSearchWidth:A,paddingXXS:ce,paddingXS:se,colorText:re,lineWidth:xe,lineType:Oe,tableBorderColor:Ee,tableHeaderIconColor:Ge,fontSizeSM:He,tablePaddingHorizontal:Ue,borderRadius:bt,motionDurationSlow:mt,colorTextDescription:ht,colorPrimary:ct,tableHeaderFilterActiveBg:It,colorTextDisabled:Ht,tableFilterDropdownBg:cn,tableFilterDropdownHeight:Xt,controlItemBgHover:ln,controlItemBgActive:Bn,boxShadowSecondary:Bt,filterDropdownMenuBg:Wt}=r,Tt=`${f}-dropdown`,wt=`${o}-filter-dropdown`,kt=`${f}-tree`,xn=`${xe}px ${Oe} ${Ee}`;return[{[`${o}-wrapper`]:{[`${o}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${o}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-ce,marginInline:`${ce}px ${-Ue/2}px`,padding:`0 ${ce}px`,color:Ge,fontSize:He,borderRadius:bt,cursor:"pointer",transition:`all ${mt}`,"&:hover":{color:ht,background:It},"&.active":{color:ct}}}},{[`${f}-dropdown`]:{[wt]:Object.assign(Object.assign({},(0,Qo.Wf)(r)),{minWidth:M,backgroundColor:cn,borderRadius:bt,boxShadow:Bt,overflow:"hidden",[`${Tt}-menu`]:{maxHeight:Xt,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:Wt,"&:empty::after":{display:"block",padding:`${se}px 0`,color:Ht,fontSize:He,textAlign:"center",content:'"Not Found"'}},[`${wt}-tree`]:{paddingBlock:`${se}px 0`,paddingInline:se,[kt]:{padding:0},[`${kt}-treenode ${kt}-node-content-wrapper:hover`]:{backgroundColor:ln},[`${kt}-treenode-checkbox-checked ${kt}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:Bn}}},[`${wt}-search`]:{padding:se,borderBottom:xn,"&-input":{input:{minWidth:A},[y]:{color:Ht}}},[`${wt}-checkall`]:{width:"100%",marginBottom:ce,marginInlineStart:ce},[`${wt}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${se-xe}px ${se}px`,overflow:"hidden",borderTop:xn}})}},{[`${f}-dropdown ${wt}, ${wt}-submenu`]:{[`${f}-checkbox-wrapper + span`]:{paddingInlineStart:se,color:re},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},pl=r=>{const{componentCls:o,lineWidth:f,colorSplit:y,motionDurationSlow:M,zIndexTableFixed:A,tableBg:ce,zIndexTableSticky:se}=r,re=y;return{[`${o}-wrapper`]:{[` + ${o}-cell-fix-left, + ${o}-cell-fix-right + `]:{position:"sticky !important",zIndex:A,background:ce},[` + ${o}-cell-fix-left-first::after, + ${o}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-f,width:30,transform:"translateX(100%)",transition:`box-shadow ${M}`,content:'""',pointerEvents:"none"},[`${o}-cell-fix-left-all::after`]:{display:"none"},[` + ${o}-cell-fix-right-first::after, + ${o}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:-f,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${M}`,content:'""',pointerEvents:"none"},[`${o}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:se+1,width:30,transition:`box-shadow ${M}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${o}-ping-left`]:{[`&:not(${o}-has-fix-left) ${o}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${re}`}},[` + ${o}-cell-fix-left-first::after, + ${o}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${re}`},[`${o}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${o}-ping-right`]:{[`&:not(${o}-has-fix-right) ${o}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${re}`}},[` + ${o}-cell-fix-right-first::after, + ${o}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${re}`}}}}},gl=r=>{const{componentCls:o,antCls:f}=r;return{[`${o}-wrapper`]:{[`${o}-pagination${f}-pagination`]:{margin:`${r.margin}px 0`},[`${o}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:r.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Ja=r=>{const{componentCls:o,tableRadius:f}=r;return{[`${o}-wrapper`]:{[o]:{[`${o}-title, ${o}-header`]:{borderRadius:`${f}px ${f}px 0 0`},[`${o}-title + ${o}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${o}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:f,borderStartEndRadius:f,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:f},"> *:last-child":{borderStartEndRadius:f}}},"&-footer":{borderRadius:`0 0 ${f}px ${f}px`}}}}},Xo=r=>{const{componentCls:o}=r;return{[`${o}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${o}-pagination-left`]:{justifyContent:"flex-end"},[`${o}-pagination-right`]:{justifyContent:"flex-start"},[`${o}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${o}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${o}-row-indent`]:{float:"right"}}}}},Qa=r=>{const{componentCls:o,antCls:f,iconCls:y,fontSizeIcon:M,padding:A,paddingXS:ce,tableHeaderIconColor:se,tableHeaderIconColorHover:re,tableSelectionColumnWidth:xe}=r;return{[`${o}-wrapper`]:{[`${o}-selection-col`]:{width:xe,[`&${o}-selection-col-with-dropdown`]:{width:xe+M+A/4}},[`${o}-bordered ${o}-selection-col`]:{width:xe+ce*2,[`&${o}-selection-col-with-dropdown`]:{width:xe+M+A/4+ce*2}},[` + table tr th${o}-selection-column, + table tr td${o}-selection-column + `]:{paddingInlineEnd:r.paddingXS,paddingInlineStart:r.paddingXS,textAlign:"center",[`${f}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${o}-selection-column${o}-cell-fix-left`]:{zIndex:r.zIndexTableFixed+1},[`table tr th${o}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${o}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${o}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${r.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${r.tablePaddingHorizontal/4}px`,[y]:{color:se,fontSize:M,verticalAlign:"baseline","&:hover":{color:re}}}}}},jo=r=>{const{componentCls:o}=r,f=(y,M,A,ce)=>({[`${o}${o}-${y}`]:{fontSize:ce,[` + ${o}-title, + ${o}-footer, + ${o}-cell, + ${o}-thead > tr > th, + ${o}-tbody > tr > th, + ${o}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{padding:`${M}px ${A}px`},[`${o}-filter-trigger`]:{marginInlineEnd:`-${A/2}px`},[`${o}-expanded-row-fixed`]:{margin:`-${M}px -${A}px`},[`${o}-tbody`]:{[`${o}-wrapper:only-child ${o}`]:{marginBlock:`-${M}px`,marginInline:`${r.tableExpandColumnWidth-A}px -${A}px`}},[`${o}-selection-column`]:{paddingInlineStart:`${A/4}px`}}});return{[`${o}-wrapper`]:Object.assign(Object.assign({},f("middle",r.tablePaddingVerticalMiddle,r.tablePaddingHorizontalMiddle,r.tableFontSizeMiddle)),f("small",r.tablePaddingVerticalSmall,r.tablePaddingHorizontalSmall,r.tableFontSizeSmall))}},Go=r=>{const{componentCls:o,marginXXS:f,fontSizeIcon:y,tableHeaderIconColor:M,tableHeaderIconColorHover:A}=r;return{[`${o}-wrapper`]:{[`${o}-thead th${o}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${r.motionDurationSlow}`,"&:hover":{background:r.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:r.colorPrimary},[` + &${o}-cell-fix-left:hover, + &${o}-cell-fix-right:hover + `]:{background:r.tableFixedHeaderSortActiveBg}},[`${o}-thead th${o}-column-sort`]:{background:r.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${o}-column-sort`]:{background:r.tableBodySortBg},[`${o}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${o}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${o}-column-sorter`]:{marginInlineStart:f,color:M,fontSize:0,transition:`color ${r.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:y,"&.active":{color:r.colorPrimary}},[`${o}-column-sorter-up + ${o}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${o}-column-sorters:hover ${o}-column-sorter`]:{color:A}}}},zo=r=>{const{componentCls:o,opacityLoading:f,tableScrollThumbBg:y,tableScrollThumbBgHover:M,tableScrollThumbSize:A,tableScrollBg:ce,zIndexTableSticky:se,stickyScrollBarBorderRadius:re}=r,xe=`${r.lineWidth}px ${r.lineType} ${r.tableBorderColor}`;return{[`${o}-wrapper`]:{[`${o}-sticky`]:{"&-holder":{position:"sticky",zIndex:se,background:r.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${A}px !important`,zIndex:se,display:"flex",alignItems:"center",background:ce,borderTop:xe,opacity:f,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:A,backgroundColor:y,borderRadius:re,transition:`all ${r.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:M}}}}}}},Fo=r=>{const{componentCls:o,lineWidth:f,tableBorderColor:y}=r,M=`${f}px ${r.lineType} ${y}`;return{[`${o}-wrapper`]:{[`${o}-summary`]:{position:"relative",zIndex:r.zIndexTableFixed,background:r.tableBg,"> tr":{"> th, > td":{borderBottom:M}}},[`div${o}-summary`]:{boxShadow:`0 -${f}px 0 ${y}`}}}},Yo=r=>{const{componentCls:o}=r,f=`${r.lineWidth}px ${r.lineType} ${r.tableBorderColor}`,y=`${o}-expanded-row-cell`;return{[`${o}-wrapper`]:{[`${o}-tbody-virtual`]:{[`${o}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${o}-cell`]:{borderBottom:f},[`${o}-expanded-row`]:{[`${y}${y}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${r.lineWidth}px)`,borderInlineEnd:"none"}}},[`${o}-bordered`]:{[`${o}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:f,position:"absolute"},[`${o}-cell`]:{borderInlineEnd:f,[`&${o}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-r.lineWidth,borderInlineStart:f}}}}}}};const ta=r=>{const{componentCls:o,fontWeightStrong:f,tablePaddingVertical:y,tablePaddingHorizontal:M,lineWidth:A,lineType:ce,tableBorderColor:se,tableFontSize:re,tableBg:xe,tableRadius:Oe,tableHeaderTextColor:Ee,motionDurationMid:Ge,tableHeaderBg:He,tableHeaderCellSplitColor:Ue,tableRowHoverBg:bt,tableSelectedRowBg:mt,tableSelectedRowHoverBg:ht,tableFooterTextColor:ct,tableFooterBg:It,paddingContentVerticalLG:Ht}=r,cn=`${A}px ${ce} ${se}`;return{[`${o}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Qo.dF)()),{[o]:Object.assign(Object.assign({},(0,Qo.Wf)(r)),{fontSize:re,background:xe,borderRadius:`${Oe}px ${Oe}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Oe}px ${Oe}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${o}-cell, + ${o}-thead > tr > th, + ${o}-tbody > tr > th, + ${o}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{position:"relative",padding:`${Ht}px ${M}px`,overflowWrap:"break-word"},[`${o}-title`]:{padding:`${y}px ${M}px`},[`${o}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Ee,fontWeight:f,textAlign:"start",background:He,borderBottom:cn,transition:`background ${Ge} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${o}-selection-column):not(${o}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Ue,transform:"translateY(-50%)",transition:`background-color ${Ge}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${o}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${Ge}, border-color ${Ge}`,borderBottom:cn,[` + > ${o}-wrapper:only-child, + > ${o}-expanded-row-fixed > ${o}-wrapper:only-child + `]:{[o]:{marginBlock:`-${y}px`,marginInline:`${r.tableExpandColumnWidth-M}px -${M}px`,[`${o}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Ee,fontWeight:f,textAlign:"start",background:He,borderBottom:cn,transition:`background ${Ge} ease`},[` + &${o}-row:hover > th, + &${o}-row:hover > td, + > th${o}-cell-row-hover, + > td${o}-cell-row-hover + `]:{background:bt},[`&${o}-row-selected`]:{"> th, > td":{background:mt},"&:hover > th, &:hover > td":{background:ht}}}},[`${o}-footer`]:{padding:`${y}px ${M}px`,color:ct,background:It}})}};var qa=(0,Lo.Z)("Table",r=>{const{colorTextHeading:o,colorSplit:f,colorIcon:y,colorIconHover:M,opacityLoading:A,colorBgContainer:ce,controlInteractiveSize:se,headerBg:re,headerColor:xe,headerSortActiveBg:Oe,headerSortHoverBg:Ee,bodySortBg:Ge,rowHoverBg:He,rowSelectedBg:Ue,rowSelectedHoverBg:bt,rowExpandedBg:mt,cellPaddingBlock:ht,cellPaddingInline:ct,cellPaddingBlockMD:It,cellPaddingInlineMD:Ht,cellPaddingBlockSM:cn,cellPaddingInlineSM:Xt,borderColor:ln,footerBg:Bn,footerColor:Bt,headerBorderRadius:Wt,cellFontSize:Tt,cellFontSizeMD:wt,cellFontSizeSM:kt,headerSplitColor:xn,fixedHeaderSortActiveBg:Tn,headerFilterHoverBg:Nn,filterDropdownBg:fn,expandIconBg:Wn,selectionColumnWidth:Hn,stickyScrollBarBg:Ir}=r,cr=new Vo.C(y),Wr=new Vo.C(M),Ur=2,Rn=(0,_l.TS)(r,{tableFontSize:Tt,tableBg:ce,tableRadius:Wt,tablePaddingVertical:ht,tablePaddingHorizontal:ct,tablePaddingVerticalMiddle:It,tablePaddingHorizontalMiddle:Ht,tablePaddingVerticalSmall:cn,tablePaddingHorizontalSmall:Xt,tableBorderColor:ln,tableHeaderTextColor:xe,tableHeaderBg:re,tableFooterTextColor:Bt,tableFooterBg:Bn,tableHeaderCellSplitColor:xn,tableHeaderSortBg:Oe,tableHeaderSortHoverBg:Ee,tableHeaderIconColor:cr.clone().setAlpha(cr.getAlpha()*A).toRgbString(),tableHeaderIconColorHover:Wr.clone().setAlpha(Wr.getAlpha()*A).toRgbString(),tableBodySortBg:Ge,tableFixedHeaderSortActiveBg:Tn,tableHeaderFilterActiveBg:Nn,tableFilterDropdownBg:fn,tableRowHoverBg:He,tableSelectedRowBg:Ue,tableSelectedRowHoverBg:bt,zIndexTableFixed:Ur,zIndexTableSticky:Ur+1,tableFontSizeMiddle:wt,tableFontSizeSmall:kt,tableSelectionColumnWidth:Hn,tableExpandIconBg:Wn,tableExpandColumnWidth:se+2*r.padding,tableExpandedRowBg:mt,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Ir,tableScrollThumbBgHover:o,tableScrollBg:f});return[ta(Rn),gl(Rn),Fo(Rn),Go(Rn),vl(Rn),Xa(Rn),Ja(Rn),ml(Rn),Fo(Rn),ea(Rn),Qa(Rn),pl(Rn),zo(Rn),ko(Rn),jo(Rn),Xo(Rn),Yo(Rn)]},r=>{const{colorFillAlter:o,colorBgContainer:f,colorTextHeading:y,colorFillSecondary:M,colorFillContent:A,controlItemBgActive:ce,controlItemBgActiveHover:se,padding:re,paddingSM:xe,paddingXS:Oe,colorBorderSecondary:Ee,borderRadiusLG:Ge,fontSize:He,controlHeight:Ue,colorTextPlaceholder:bt}=r,mt=new Vo.C(M).onBackground(f).toHexShortString(),ht=new Vo.C(A).onBackground(f).toHexShortString(),ct=new Vo.C(o).onBackground(f).toHexShortString();return{headerBg:ct,headerColor:y,headerSortActiveBg:mt,headerSortHoverBg:ht,bodySortBg:ct,rowHoverBg:ct,rowSelectedBg:ce,rowSelectedHoverBg:se,rowExpandedBg:o,cellPaddingBlock:re,cellPaddingInline:re,cellPaddingBlockMD:xe,cellPaddingInlineMD:Oe,cellPaddingBlockSM:Oe,cellPaddingInlineSM:Oe,borderColor:Ee,headerBorderRadius:Ge,footerBg:ct,footerColor:y,cellFontSize:He,cellFontSizeMD:He,cellFontSizeSM:He,headerSplitColor:Ee,fixedHeaderSortActiveBg:mt,headerFilterHoverBg:A,filterDropdownMenuBg:f,filterDropdownBg:f,expandIconBg:f,selectionColumnWidth:Ue,stickyScrollBarBg:bt,stickyScrollBarBorderRadius:100}});const yl=[],na=(r,o)=>{const{prefixCls:f,className:y,rootClassName:M,style:A,size:ce,bordered:se,dropdownPrefixCls:re,dataSource:xe,pagination:Oe,rowSelection:Ee,rowKey:Ge="key",rowClassName:He,columns:Ue,children:bt,childrenColumnName:mt,onChange:ht,getPopupContainer:ct,loading:It,expandIcon:Ht,expandable:cn,expandedRowRender:Xt,expandIconColumnIndex:ln,indentSize:Bn,scroll:Bt,sortDirections:Wt,locale:Tt,showSorterTooltip:wt=!0,virtual:kt}=r,xn=n.useMemo(()=>Ue||hr(bt),[Ue,bt]),Tn=n.useMemo(()=>xn.some(nr=>nr.responsive),[xn]),Nn=(0,Et.Z)(Tn),fn=n.useMemo(()=>{const nr=new Set(Object.keys(Nn).filter(gt=>Nn[gt]));return xn.filter(gt=>!gt.responsive||gt.responsive.some(oo=>nr.has(oo)))},[xn,Nn]),Wn=(0,Yt.Z)(r,["className","style","columns"]),{locale:Hn=Rt.Z,direction:Ir,table:cr,renderEmpty:Wr,getPrefixCls:Ur,getPopupContainer:Rn}=n.useContext(Zt.E_),qr=(0,Vt.Z)(ce),rr=Object.assign(Object.assign({},Hn.Table),Tt),Zr=xe||yl,Br=Ur("table",f),po=Ur("dropdown",re),hn=Object.assign({childrenColumnName:mt,expandIconColumnIndex:ln},cn),{childrenColumnName:pn="children"}=hn,vn=n.useMemo(()=>Zr.some(nr=>nr==null?void 0:nr[pn])?"nest":Xt||cn&&cn.expandedRowRender?"row":null,[Zr]),en={body:n.useRef()},tr=n.useMemo(()=>typeof Ge=="function"?Ge:nr=>nr==null?void 0:nr[Ge],[Ge]),[tn]=Fa(Zr,pn,tr),_n={},or=function(nr,gt){let oo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Er,kr,vo;const fo=Object.assign(Object.assign({},_n),nr);oo&&((Er=_n.resetPagination)===null||Er===void 0||Er.call(_n),!((kr=fo.pagination)===null||kr===void 0)&&kr.current&&(fo.pagination.current=1),Oe&&Oe.onChange&&Oe.onChange(1,(vo=fo.pagination)===null||vo===void 0?void 0:vo.pageSize)),Bt&&Bt.scrollToFirstRowOnChange!==!1&&en.body.current&&(0,qt.Z)(0,{getContainer:()=>en.body.current}),ht==null||ht(fo.pagination,fo.filters,fo.sorter,{currentDataSource:fa(Ca(Zr,fo.sorterStates,pn),fo.filterStates),action:gt})},$n=(nr,gt)=>{or({sorter:nr,sorterStates:gt},"sort",!1)},[mo,eo,Co,Jr]=Ea({prefixCls:Br,mergedColumns:fn,onSorterChange:$n,sortDirections:Wt||["ascend","descend"],tableLocale:rr,showSorterTooltip:wt}),Eo=n.useMemo(()=>Ca(Zr,eo,pn),[Zr,eo]);_n.sorter=Jr(),_n.sorterStates=eo;const Qr=(nr,gt)=>{or({filters:nr,filterStates:gt},"filter",!0)},[go,$o,gr]=Ma({prefixCls:Br,locale:rr,dropdownPrefixCls:po,mergedColumns:fn,onFilterChange:Qr,getPopupContainer:ct||Rn}),yr=fa(Eo,$o);_n.filters=gr,_n.filterStates=$o;const Rr=n.useMemo(()=>{const nr={};return Object.keys(gr).forEach(gt=>{gr[gt]!==null&&(nr[gt]=gr[gt])}),Object.assign(Object.assign({},Co),{filters:nr})},[Co,gr]),[to]=ul(Rr),c=(nr,gt)=>{or({pagination:Object.assign(Object.assign({},_n.pagination),{current:nr,pageSize:gt})},"paginate")},[ie,Je]=ja(yr.length,c,Oe);_n.pagination=Oe===!1?{}:La(ie,Oe),_n.resetPagination=Je;const lt=n.useMemo(()=>{if(Oe===!1||!ie.pageSize)return yr;const{current:nr=1,total:gt,pageSize:oo=va}=ie;return yr.lengthoo?yr.slice((nr-1)*oo,nr*oo):yr:yr.slice((nr-1)*oo,nr*oo)},[!!Oe,yr,ie&&ie.current,ie&&ie.pageSize,ie&&ie.total]),[Qe,ut]=sl({prefixCls:Br,data:yr,pageData:lt,getRowKey:tr,getRecordByKey:tn,expandType:vn,childrenColumnName:pn,locale:rr,getPopupContainer:ct||Rn},Ee),vt=(nr,gt,oo)=>{let Er;return typeof He=="function"?Er=de()(He(nr,gt,oo)):Er=de()(He),de()({[`${Br}-row-selected`]:ut.has(tr(nr,gt))},Er)};hn.__PARENT_RENDER_ICON__=hn.expandIcon,hn.expandIcon=hn.expandIcon||Ht||ir(rr),vn==="nest"&&hn.expandIconColumnIndex===void 0?hn.expandIconColumnIndex=Ee?1:0:hn.expandIconColumnIndex>0&&Ee&&(hn.expandIconColumnIndex-=1),typeof hn.indentSize!="number"&&(hn.indentSize=typeof Bn=="number"?Bn:15);const Ft=n.useCallback(nr=>to(Qe(go(mo(nr)))),[mo,go,Qe]);let jt,$t;if(Oe!==!1&&(ie!=null&&ie.total)){let nr;ie.size?nr=ie.size:nr=qr==="small"||qr==="middle"?"small":void 0;const gt=kr=>n.createElement(Cn.Z,Object.assign({},ie,{className:de()(`${Br}-pagination ${Br}-pagination-${kr}`,ie.className),size:nr})),oo=Ir==="rtl"?"left":"right",{position:Er}=ie;if(Er!==null&&Array.isArray(Er)){const kr=Er.find(ho=>ho.includes("top")),vo=Er.find(ho=>ho.includes("bottom")),fo=Er.every(ho=>`${ho}`=="none");!kr&&!vo&&!fo&&($t=gt(oo)),kr&&(jt=gt(kr.toLowerCase().replace("top",""))),vo&&($t=gt(vo.toLowerCase().replace("bottom","")))}else $t=gt(oo)}let nn;typeof It=="boolean"?nn={spinning:It}:typeof It=="object"&&(nn=Object.assign({spinning:!0},It));const[at,it]=qa(Br),[,Lt]=(0,kn.Z)(),Lr=de()(`${Br}-wrapper`,cr==null?void 0:cr.className,{[`${Br}-wrapper-rtl`]:Ir==="rtl"},y,M,it),rn=Object.assign(Object.assign({},cr==null?void 0:cr.style),A),jn=Tt&&Tt.emptyText||(Wr==null?void 0:Wr("Table"))||n.createElement(_t.Z,{componentName:"Table"}),Mr=kt?Sa:Uo,uo={},ra=n.useMemo(()=>{const{fontSize:nr,lineHeight:gt,padding:oo,paddingXS:Er,paddingSM:kr}=Lt,vo=Math.floor(nr*gt);switch(qr){case"large":return oo*2+vo;case"small":return Er*2+vo;default:return kr*2+vo}},[Lt,qr]);return kt&&(uo.listItemHeight=ra),at(n.createElement("div",{ref:o,className:Lr,style:rn},n.createElement(On.Z,Object.assign({spinning:!1},nn),jt,n.createElement(Mr,Object.assign({},uo,Wn,{columns:fn,direction:Ir,expandable:hn,prefixCls:Br,className:de()({[`${Br}-middle`]:qr==="middle",[`${Br}-small`]:qr==="small",[`${Br}-bordered`]:se,[`${Br}-empty`]:Zr.length===0}),data:lt,rowKey:tr,rowClassName:vt,emptyText:jn,internalHooks:l,internalRefs:en,transformColumns:Ft})),$t)))};var el=n.forwardRef(na);const tl=(r,o)=>{const f=n.useRef(0);return f.current+=1,n.createElement(el,Object.assign({},r,{ref:o,_renderTimes:f.current}))},Po=n.forwardRef(tl);Po.SELECTION_COLUMN=ft,Po.EXPAND_COLUMN=t,Po.SELECTION_ALL=pa,Po.SELECTION_INVERT=Bo,Po.SELECTION_NONE=ga,Po.Column=W,Po.ColumnGroup=Me,Po.Summary=u;var bl=Po,xl=bl},17574:function(nt,z,e){"use strict";e.d(z,{default:function(){return Re}});var t=e(60091),l=e(94480),b=e(52671),P=e(8657),$=e(54476),d=e(59301),n={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},E=n,D=e(7657),w=function(je,Ye){return d.createElement(D.Z,(0,$.Z)({},je,{ref:Ye,icon:E}))},C=d.forwardRef(w),v=C,B=e(92310),T=e.n(B),I=e(35654),g=e(71430),U=e(36355),F=e(56082),G=e(62892),q=e(20648);const K=4;function Z($e){const{dropPosition:je,dropLevelOffset:Ye,prefixCls:tt,indent:ze,direction:Be="ltr"}=$e,qe=Be==="ltr"?"left":"right",dt=Be==="ltr"?"right":"left",Ie={[qe]:-Ye*ze+K,[dt]:0};switch(je){case-1:Ie.top=-3;break;case 1:Ie.bottom=-3;break;default:Ie.bottom=-3,Ie[qe]=ze+K;break}return d.createElement("div",{style:Ie,className:`${tt}-drop-indicator`})}var oe=e(71997),_=d.forwardRef(($e,je)=>{const{getPrefixCls:Ye,direction:tt,virtual:ze,tree:Be}=d.useContext(U.E_),{prefixCls:qe,className:dt,showIcon:Ie=!1,showLine:st,switcherIcon:yt,blockNode:Se=!1,children:ve,checkable:rt=!1,selectable:et=!0,draggable:j,motion:V,style:p}=$e,a=Ye("tree",qe),k=Ye(),me=V!=null?V:Object.assign(Object.assign({},(0,G.Z)(k)),{motionAppear:!1}),u=Object.assign(Object.assign({},$e),{checkable:rt,selectable:et,showIcon:Ie,motion:me,blockNode:Se,showLine:!!st,dropIndicatorRender:Z}),[i,Q]=(0,q.ZP)(a),R=d.useMemo(()=>{if(!j)return!1;let ne={};switch(typeof j){case"function":ne.nodeDraggable=j;break;case"object":ne=Object.assign({},j);break;default:break}return ne.icon!==!1&&(ne.icon=ne.icon||d.createElement(F.Z,null)),ne},[j]),s=ne=>d.createElement(oe.Z,{prefixCls:a,switcherIcon:yt,treeNodeProps:ne,showLine:st});return i(d.createElement(t.Z,Object.assign({itemHeight:20,ref:je,virtual:ze},u,{style:Object.assign(Object.assign({},Be==null?void 0:Be.style),p),prefixCls:a,className:T()({[`${a}-icon-hide`]:!Ie,[`${a}-block-node`]:Se,[`${a}-unselectable`]:!et,[`${a}-rtl`]:tt==="rtl"},Be==null?void 0:Be.className,dt,Q),direction:tt,checkable:rt&&d.createElement("span",{className:`${a}-checkbox-inner`}),selectable:et,switcherIcon:s,draggable:R}),ve))}),ee;(function($e){$e[$e.None=0]="None",$e[$e.Start=1]="Start",$e[$e.End=2]="End"})(ee||(ee={}));function le($e,je){function Ye(tt){const{key:ze,children:Be}=tt;je(ze,tt)!==!1&&le(Be||[],je)}$e.forEach(Ye)}function X($e){let{treeData:je,expandedKeys:Ye,startKey:tt,endKey:ze}=$e;const Be=[];let qe=ee.None;if(tt&&tt===ze)return[tt];if(!tt||!ze)return[];function dt(Ie){return Ie===tt||Ie===ze}return le(je,Ie=>{if(qe===ee.End)return!1;if(dt(Ie)){if(Be.push(Ie),qe===ee.None)qe=ee.Start;else if(qe===ee.Start)return qe=ee.End,!1}else qe===ee.Start&&Be.push(Ie);return Ye.includes(Ie)}),Be}function h($e,je){const Ye=(0,l.Z)(je),tt=[];return le($e,(ze,Be)=>{const qe=Ye.indexOf(ze);return qe!==-1&&(tt.push(Be),Ye.splice(qe,1)),!!Ye.length}),tt}var N=function($e,je){var Ye={};for(var tt in $e)Object.prototype.hasOwnProperty.call($e,tt)&&je.indexOf(tt)<0&&(Ye[tt]=$e[tt]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,tt=Object.getOwnPropertySymbols($e);ze{var{defaultExpandAll:Ye,defaultExpandParent:tt,defaultExpandedKeys:ze}=$e,Be=N($e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const qe=d.useRef(),dt=d.useRef(),Ie=()=>{const{keyEntities:R}=(0,g.I8)(ae(Be));let s;return Ye?s=Object.keys(R):tt?s=(0,I.r7)(Be.expandedKeys||ze||[],R):s=Be.expandedKeys||ze,s},[st,yt]=d.useState(Be.selectedKeys||Be.defaultSelectedKeys||[]),[Se,ve]=d.useState(()=>Ie());d.useEffect(()=>{"selectedKeys"in Be&&yt(Be.selectedKeys)},[Be.selectedKeys]),d.useEffect(()=>{"expandedKeys"in Be&&ve(Be.expandedKeys)},[Be.expandedKeys]);const rt=(R,s)=>{var ne;return"expandedKeys"in Be||ve(R),(ne=Be.onExpand)===null||ne===void 0?void 0:ne.call(Be,R,s)},et=(R,s)=>{var ne;const{multiple:Fe}=Be,{node:we,nativeEvent:_e}=s,{key:Pe=""}=we,Ne=ae(Be),m=Object.assign(Object.assign({},s),{selected:!0}),te=(_e==null?void 0:_e.ctrlKey)||(_e==null?void 0:_e.metaKey),ue=_e==null?void 0:_e.shiftKey;let ye;Fe&&te?(ye=R,qe.current=Pe,dt.current=ye,m.selectedNodes=h(Ne,ye)):Fe&&ue?(ye=Array.from(new Set([].concat((0,l.Z)(dt.current||[]),(0,l.Z)(X({treeData:Ne,expandedKeys:Se,startKey:Pe,endKey:qe.current}))))),m.selectedNodes=h(Ne,ye)):(ye=[Pe],qe.current=Pe,dt.current=ye,m.selectedNodes=h(Ne,ye)),(ne=Be.onSelect)===null||ne===void 0||ne.call(Be,ye,m),"selectedKeys"in Be||yt(ye)},{getPrefixCls:j,direction:V}=d.useContext(U.E_),{prefixCls:p,className:a,showIcon:k=!0,expandAction:me="click"}=Be,u=N(Be,["prefixCls","className","showIcon","expandAction"]),i=j("tree",p),Q=T()(`${i}-directory`,{[`${i}-directory-rtl`]:V==="rtl"},a);return d.createElement(_,Object.assign({icon:de,ref:je,blockNode:!0},u,{showIcon:k,expandAction:me,prefixCls:i,className:Q,expandedKeys:Se,selectedKeys:st,onSelect:et,onExpand:rt}))};var Y=d.forwardRef(x);const ge=_;ge.DirectoryTree=Y,ge.TreeNode=t.O;var Re=ge},20648:function(nt,z,e){"use strict";e.d(z,{TM:function(){return B},Yk:function(){return v}});var t=e(36237),l=e(98447),b=e(17313),P=e(8378),$=e(37613),d=e(83116);const n=new t.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),E=(T,I)=>({[`.${T}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${I.motionDurationSlow}`}}}),D=(T,I)=>({[`.${T}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:I.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${I.lineWidthBold}px solid ${I.colorPrimary}`,borderRadius:"50%",content:'""'}}}),w=(T,I)=>{const{treeCls:g,treeNodeCls:U,treeNodePadding:F,titleHeight:G,nodeSelectedBg:q,nodeHoverBg:K}=I,Z=I.paddingXS;return{[g]:Object.assign(Object.assign({},(0,b.Wf)(I)),{background:I.colorBgContainer,borderRadius:I.borderRadius,transition:`background-color ${I.motionDurationSlow}`,[`&${g}-rtl`]:{[`${g}-switcher`]:{"&_close":{[`${g}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${g}-active-focused)`]:Object.assign({},(0,b.oN)(I)),[`${g}-list-holder-inner`]:{alignItems:"flex-start"},[`&${g}-block-node`]:{[`${g}-list-holder-inner`]:{alignItems:"stretch",[`${g}-node-content-wrapper`]:{flex:"auto"},[`${U}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:F,insetInlineStart:0,border:`1px solid ${I.colorPrimary}`,opacity:0,animationName:n,animationDuration:I.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${U}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${F}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${g}-node-content-wrapper`]:{color:I.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${g}-node-content-wrapper`]:Object.assign({},(0,b.oN)(I)),[`&:not(${U}-disabled).filter-node ${g}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${g}-draggable-icon`]:{flexShrink:0,width:G,lineHeight:`${G}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${I.motionDurationSlow}`,[`${U}:hover &`]:{opacity:.45}},[`&${U}-disabled`]:{[`${g}-draggable-icon`]:{visibility:"hidden"}}}},[`${g}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:G}},[`${g}-draggable-icon`]:{visibility:"hidden"},[`${g}-switcher`]:Object.assign(Object.assign({},E(T,I)),{position:"relative",flex:"none",alignSelf:"stretch",width:G,margin:0,lineHeight:`${G}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${g}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:I.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:G/2,bottom:-F,marginInlineStart:-1,borderInlineEnd:`1px solid ${I.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:G/2*.8,height:G/2,borderBottom:`1px solid ${I.colorBorder}`,content:'""'}}}),[`${g}-checkbox`]:{top:"initial",marginInlineEnd:Z},[`${g}-node-content-wrapper, ${g}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:G,margin:0,padding:`0 ${I.paddingXS/2}px`,color:"inherit",lineHeight:`${G}px`,background:"transparent",borderRadius:I.borderRadius,cursor:"pointer",transition:`all ${I.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:K},[`&${g}-node-selected`]:{backgroundColor:q},[`${g}-iconEle`]:{display:"inline-block",width:G,height:G,lineHeight:`${G}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${g}-unselectable ${g}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${g}-node-content-wrapper`]:Object.assign({lineHeight:`${G}px`,userSelect:"none"},D(T,I)),[`${U}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${I.colorPrimary}`}},"&-show-line":{[`${g}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:G/2,bottom:-F,borderInlineEnd:`1px solid ${I.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${g}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${U}-leaf-last`]:{[`${g}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${G/2}px !important`}}}}})}},C=T=>{const{treeCls:I,treeNodeCls:g,treeNodePadding:U,directoryNodeSelectedBg:F,directoryNodeSelectedColor:G}=T;return{[`${I}${I}-directory`]:{[g]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:U,insetInlineStart:0,transition:`background-color ${T.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:T.controlItemBgHover}},"> *":{zIndex:1},[`${I}-switcher`]:{transition:`color ${T.motionDurationMid}`},[`${I}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${I}-node-selected`]:{color:G,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:F},[`${I}-switcher`]:{color:G},[`${I}-node-content-wrapper`]:{color:G,background:"transparent"}}}}}},v=(T,I)=>{const g=`.${T}`,U=`${g}-treenode`,F=I.paddingXS/2,G=(0,$.TS)(I,{treeCls:g,treeNodeCls:U,treeNodePadding:F});return[w(T,G),C(G)]},B=T=>{const{controlHeightSM:I}=T;return{titleHeight:I,nodeHoverBg:T.controlItemBgHover,nodeSelectedBg:T.controlItemBgActive}};z.ZP=(0,d.Z)("Tree",(T,I)=>{let{prefixCls:g}=I;return[{[T.componentCls]:(0,l.C2)(`${g}-checkbox`,T)},v(g,T),(0,P.Z)(T)]},T=>{const{colorTextLightSolid:I,colorPrimary:g}=T;return Object.assign(Object.assign({},B(T)),{directoryNodeSelectedColor:I,directoryNodeSelectedBg:g})})},71997:function(nt,z,e){"use strict";e.d(z,{Z:function(){return U}});var t=e(54476),l=e(59301),b={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},P=b,$=e(7657),d=function(G,q){return l.createElement($.Z,(0,t.Z)({},G,{ref:q,icon:P}))},n=l.forwardRef(d),E=n,D=e(52671),w=e(58617),C=e(15075),v=e(43531),B=e(92310),T=e.n(B),I=e(92343),U=F=>{const{prefixCls:G,switcherIcon:q,treeNodeProps:K,showLine:Z}=F,{isLeaf:oe,expanded:O,loading:_}=K;if(_)return l.createElement(w.Z,{className:`${G}-switcher-loading-icon`});let ee;if(Z&&typeof Z=="object"&&(ee=Z.showLeafIcon),oe){if(!Z)return null;if(typeof ee!="boolean"&&ee){const h=typeof ee=="function"?ee(K):ee,N=`${G}-switcher-line-custom-icon`;return(0,I.l$)(h)?(0,I.Tm)(h,{className:T()(h.props.className||"",N)}):h}return ee?l.createElement(D.Z,{className:`${G}-switcher-line-icon`}):l.createElement("span",{className:`${G}-switcher-leaf-line`})}const le=`${G}-switcher-icon`,X=typeof q=="function"?q(K):q;return(0,I.l$)(X)?(0,I.Tm)(X,{className:T()(X.props.className||"",le)}):X!==void 0?X:Z?O?l.createElement(C.Z,{className:`${G}-switcher-line-icon`}):l.createElement(v.Z,{className:`${G}-switcher-line-icon`}):l.createElement(E,{className:le})}},54580:function(nt,z,e){"use strict";e.d(z,{default:function(){return zt}});var t=e(59301),l=e(94480),b=e(92310),P=e.n(b),$=e(54476),d=e(67732),n=e(83652),E=e(42403),D=e(158),w=e(20068),C=e(75931),v=e(75044),B=e(76190),T=e(3202),I=e(26112);function g(H,fe){var he="cannot ".concat(H.method," ").concat(H.action," ").concat(fe.status,"'"),Ce=new Error(he);return Ce.status=fe.status,Ce.method=H.method,Ce.url=H.action,Ce}function U(H){var fe=H.responseText||H.response;if(!fe)return fe;try{return JSON.parse(fe)}catch(he){return fe}}function F(H){var fe=new XMLHttpRequest;H.onProgress&&fe.upload&&(fe.upload.onprogress=function(Ze){Ze.total>0&&(Ze.percent=Ze.loaded/Ze.total*100),H.onProgress(Ze)});var he=new FormData;H.data&&Object.keys(H.data).forEach(function(ke){var Ze=H.data[ke];if(Array.isArray(Ze)){Ze.forEach(function(Le){he.append("".concat(ke,"[]"),Le)});return}he.append(ke,Ze)}),H.file instanceof Blob?he.append(H.filename,H.file,H.file.name):he.append(H.filename,H.file),fe.onerror=function(Ze){H.onError(Ze)},fe.onload=function(){return fe.status<200||fe.status>=300?H.onError(g(H,fe),U(fe)):H.onSuccess(U(fe),fe)},fe.open(H.method,H.action,!0),H.withCredentials&&"withCredentials"in fe&&(fe.withCredentials=!0);var Ce=H.headers||{};return Ce["X-Requested-With"]!==null&&fe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ce).forEach(function(ke){Ce[ke]!==null&&fe.setRequestHeader(ke,Ce[ke])}),fe.send(he),{abort:function(){fe.abort()}}}var G=+new Date,q=0;function K(){return"rc-upload-".concat(G,"-").concat(++q)}var Z=e(48736),oe=function(H,fe){if(H&&fe){var he=Array.isArray(fe)?fe:fe.split(","),Ce=H.name||"",ke=H.type||"",Ze=ke.replace(/\/.*$/,"");return he.some(function(Le){var Te=Le.trim();if(/^\*(\/\*)?$/.test(Le))return!0;if(Te.charAt(0)==="."){var Kt=Ce.toLowerCase(),Mt=Te.toLowerCase(),Qt=[Mt];return(Mt===".jpg"||Mt===".jpeg")&&(Qt=[".jpg",".jpeg"]),Qt.some(function(Kn){return Kt.endsWith(Kn)})}return/\/\*$/.test(Te)?Ze===Te.replace(/\/.*$/,""):ke===Te?!0:/^\w+$/.test(Te)?((0,Z.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Te,"'.Skip for check.")),!0):!1})}return!0};function O(H,fe){var he=H.createReader(),Ce=[];function ke(){he.readEntries(function(Ze){var Le=Array.prototype.slice.apply(Ze);Ce=Ce.concat(Le);var Te=!Le.length;Te?fe(Ce):ke()})}ke()}var _=function(fe,he,Ce){var ke=function Ze(Le,Te){Le&&(Le.path=Te||"",Le.isFile?Le.file(function(Kt){Ce(Kt)&&(Le.fullPath&&!Kt.webkitRelativePath&&(Object.defineProperties(Kt,{webkitRelativePath:{writable:!0}}),Kt.webkitRelativePath=Le.fullPath.replace(/^\//,""),Object.defineProperties(Kt,{webkitRelativePath:{writable:!1}})),he([Kt]))}):Le.isDirectory&&O(Le,function(Kt){Kt.forEach(function(Mt){Ze(Mt,"".concat(Te).concat(Le.name,"/"))})}))};fe.forEach(function(Ze){ke(Ze.webkitGetAsEntry())})},ee=_,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],X=function(H){(0,E.Z)(he,H);var fe=(0,D.Z)(he);function he(){var Ce;(0,d.Z)(this,he);for(var ke=arguments.length,Ze=new Array(ke),Le=0;Le{let{uid:Ze}=ke;return Ze===H.uid});return Ce===-1?he.push(H):he[Ce]=H,he}function ne(H,fe){const he=H.uid!==void 0?"uid":"name";return fe.filter(Ce=>Ce[he]===H[he])[0]}function Fe(H,fe){const he=H.uid!==void 0?"uid":"name",Ce=fe.filter(ke=>ke[he]!==H[he]);return Ce.length===fe.length?null:Ce}const we=function(){const fe=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ce=fe[fe.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ce)||[""])[0]},_e=H=>H.indexOf("image/")===0,Pe=H=>{if(H.type&&!H.thumbUrl)return _e(H.type);const fe=H.thumbUrl||H.url||"",he=we(fe);return/^data:image\//.test(fe)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(he)?!0:!(/^data:/.test(fe)||he)},Ne=200;function m(H){return new Promise(fe=>{if(!H.type||!_e(H.type)){fe("");return}const he=document.createElement("canvas");he.width=Ne,he.height=Ne,he.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ne}px; height: ${Ne}px; z-index: 9999; display: none;`,document.body.appendChild(he);const Ce=he.getContext("2d"),ke=new Image;if(ke.onload=()=>{const{width:Ze,height:Le}=ke;let Te=Ne,Kt=Ne,Mt=0,Qt=0;Ze>Le?(Kt=Le*(Ne/Ze),Qt=-(Kt-Te)/2):(Te=Ze*(Ne/Le),Mt=-(Te-Kt)/2),Ce.drawImage(ke,Mt,Qt,Te,Kt);const Kn=he.toDataURL();document.body.removeChild(he),window.URL.revokeObjectURL(ke.src),fe(Kn)},ke.crossOrigin="anonymous",H.type.startsWith("image/svg+xml")){const Ze=new FileReader;Ze.onload=()=>{Ze.result&&(ke.src=Ze.result)},Ze.readAsDataURL(H)}else if(H.type.startsWith("image/gif")){const Ze=new FileReader;Ze.onload=()=>{Ze.result&&fe(Ze.result)},Ze.readAsDataURL(H)}else ke.src=window.URL.createObjectURL(H)})}var te=e(26227),ue=e(41464),ye=e(15277),Ae=e(93948),De=e(6848),We=t.forwardRef((H,fe)=>{let{prefixCls:he,className:Ce,style:ke,locale:Ze,listType:Le,file:Te,items:Kt,progress:Mt,iconRender:Qt,actionIconRender:Kn,itemRender:Ln,isImgUrl:Gn,showPreviewIcon:$r,showRemoveIcon:Pr,showDownloadIcon:Qn,previewIcon:mr,removeIcon:ur,downloadIcon:Or,onPreview:ar,onDownload:In,onClose:Dr}=H;var Cr,Fn;const{status:S}=Te,[Nr,io]=t.useState(S);t.useEffect(()=>{S!=="removed"&&io(S)},[S]);const[lo,Yr]=t.useState(!1);t.useEffect(()=>{const Zt=setTimeout(()=>{Yr(!0)},300);return()=>{clearTimeout(Zt)}},[]);const ro=Qt(Te);let Ar=t.createElement("div",{className:`${he}-icon`},ro);if(Le==="picture"||Le==="picture-card"||Le==="picture-circle")if(Nr==="uploading"||!Te.thumbUrl&&!Te.url){const Zt=P()(`${he}-list-item-thumbnail`,{[`${he}-list-item-file`]:Nr!=="uploading"});Ar=t.createElement("div",{className:Zt},ro)}else{const Zt=Gn!=null&&Gn(Te)?t.createElement("img",{src:Te.thumbUrl||Te.url,alt:Te.name,className:`${he}-list-item-image`,crossOrigin:Te.crossOrigin}):ro,_t=P()(`${he}-list-item-thumbnail`,{[`${he}-list-item-file`]:Gn&&!Gn(Te)});Ar=t.createElement("a",{className:_t,onClick:Vt=>ar(Te,Vt),href:Te.url||Te.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Zt)}const Yn=P()(`${he}-list-item`,`${he}-list-item-${Nr}`),Jn=typeof Te.linkProps=="string"?JSON.parse(Te.linkProps):Te.linkProps,qn=Pr?Kn((typeof ur=="function"?ur(Te):ur)||t.createElement(te.Z,null),()=>Dr(Te),he,Ze.removeFile):null,zr=Qn&&Nr==="done"?Kn((typeof Or=="function"?Or(Te):Or)||t.createElement(ue.Z,null),()=>In(Te),he,Ze.downloadFile):null,En=Le!=="picture-card"&&Le!=="picture-circle"&&t.createElement("span",{key:"download-delete",className:P()(`${he}-list-item-actions`,{picture:Le==="picture"})},zr,qn),Kr=P()(`${he}-list-item-name`),lr=Te.url?[t.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Kr,title:Te.name},Jn,{href:Te.url,onClick:Zt=>ar(Te,Zt)}),Te.name),En]:[t.createElement("span",{key:"view",className:Kr,onClick:Zt=>ar(Te,Zt),title:Te.name},Te.name),En],Pn={pointerEvents:"none",opacity:.5},dr=$r?t.createElement("a",{href:Te.url||Te.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Te.url||Te.thumbUrl?void 0:Pn,onClick:Zt=>ar(Te,Zt),title:Ze.previewFile},typeof mr=="function"?mr(Te):mr||t.createElement(ye.Z,null)):null,Gr=(Le==="picture-card"||Le==="picture-circle")&&Nr!=="uploading"&&t.createElement("span",{className:`${he}-list-item-actions`},dr,Nr==="done"&&zr,qn),{getPrefixCls:W}=t.useContext(ge.E_),be=W(),Me=t.createElement("div",{className:Yn},Ar,lr,Gr,lo&&t.createElement(k.default,{motionName:`${be}-fade`,visible:Nr==="uploading",motionDeadline:2e3},Zt=>{let{className:_t}=Zt;const Vt="percent"in Te?t.createElement(Ae.Z,Object.assign({},Mt,{type:"line",percent:Te.percent,"aria-label":Te["aria-label"],"aria-labelledby":Te["aria-labelledby"]})):null;return t.createElement("div",{className:P()(`${he}-list-item-progress`,_t)},Vt)})),Yt=Te.response&&typeof Te.response=="string"?Te.response:((Cr=Te.error)===null||Cr===void 0?void 0:Cr.statusText)||((Fn=Te.error)===null||Fn===void 0?void 0:Fn.message)||Ze.uploadError,qt=Nr==="error"?t.createElement(De.Z,{title:Yt,getPopupContainer:Zt=>Zt.parentNode},Me):Me;return t.createElement("div",{className:P()(`${he}-list-item-container`,Ce),style:ke,ref:fe},Ln?Ln(qt,Te,Kt,{download:In.bind(null,Te),preview:ar.bind(null,Te),remove:Dr.bind(null,Te)}):qt)});const Xe=(H,fe)=>{const{listType:he="text",previewFile:Ce=m,onPreview:ke,onDownload:Ze,onRemove:Le,locale:Te,iconRender:Kt,isImageUrl:Mt=Pe,prefixCls:Qt,items:Kn=[],showPreviewIcon:Ln=!0,showRemoveIcon:Gn=!0,showDownloadIcon:$r=!1,removeIcon:Pr,previewIcon:Qn,downloadIcon:mr,progress:ur={size:[-1,2],showInfo:!1},appendAction:Or,appendActionVisible:ar=!0,itemRender:In,disabled:Dr}=H,Cr=(0,me.Z)(),[Fn,S]=t.useState(!1);t.useEffect(()=>{he!=="picture"&&he!=="picture-card"&&he!=="picture-circle"||(Kn||[]).forEach(Pn=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Pn.originFileObj instanceof File||Pn.originFileObj instanceof Blob)||Pn.thumbUrl!==void 0||(Pn.thumbUrl="",Ce&&Ce(Pn.originFileObj).then(dr=>{Pn.thumbUrl=dr||"",Cr()}))})},[he,Kn,Ce]),t.useEffect(()=>{S(!0)},[]);const Nr=(Pn,dr)=>{if(ke)return dr==null||dr.preventDefault(),ke(Pn)},io=Pn=>{typeof Ze=="function"?Ze(Pn):Pn.url&&window.open(Pn.url)},lo=Pn=>{Le==null||Le(Pn)},Yr=Pn=>{if(Kt)return Kt(Pn,he);const dr=Pn.status==="uploading",Gr=Mt&&Mt(Pn)?t.createElement(a,null):t.createElement(dt,null);let W=dr?t.createElement(Ie.Z,null):t.createElement(rt,null);return he==="picture"?W=dr?t.createElement(Ie.Z,null):Gr:(he==="picture-card"||he==="picture-circle")&&(W=dr?Te.uploading:Gr),W},ro=(Pn,dr,Gr,W)=>{const be={type:"text",size:"small",title:W,onClick:Me=>{dr(),(0,i.l$)(Pn)&&Pn.props.onClick&&Pn.props.onClick(Me)},className:`${Gr}-list-item-action`,disabled:Dr};if((0,i.l$)(Pn)){const Me=(0,i.Tm)(Pn,Object.assign(Object.assign({},Pn.props),{onClick:()=>{}}));return t.createElement(Q.ZP,Object.assign({},be,{icon:Me}))}return t.createElement(Q.ZP,Object.assign({},be),t.createElement("span",null,Pn))};t.useImperativeHandle(fe,()=>({handlePreview:Nr,handleDownload:io}));const{getPrefixCls:Ar}=t.useContext(ge.E_),Yn=Ar("upload",Qt),Jn=Ar(),qn=P()(`${Yn}-list`,`${Yn}-list-${he}`),zr=(0,l.Z)(Kn.map(Pn=>({key:Pn.uid,file:Pn})));let Kr={motionDeadline:2e3,motionName:`${Yn}-${he==="picture-card"||he==="picture-circle"?"animate-inline":"animate"}`,keys:zr,motionAppear:Fn};const lr=t.useMemo(()=>{const Pn=Object.assign({},(0,u.Z)(Jn));return delete Pn.onAppearEnd,delete Pn.onEnterEnd,delete Pn.onLeaveEnd,Pn},[Jn]);return he!=="picture-card"&&he!=="picture-circle"&&(Kr=Object.assign(Object.assign({},lr),Kr)),t.createElement("div",{className:qn},t.createElement(k.CSSMotionList,Object.assign({},Kr,{component:!1}),Pn=>{let{key:dr,file:Gr,className:W,style:be}=Pn;return t.createElement(We,{key:dr,locale:Te,prefixCls:Yn,className:W,style:be,file:Gr,items:Kn,progress:ur,listType:he,isImgUrl:Mt,showPreviewIcon:Ln,showRemoveIcon:Gn,showDownloadIcon:$r,removeIcon:Pr,previewIcon:Qn,downloadIcon:mr,iconRender:Yr,actionIconRender:ro,itemRender:In,onPreview:Nr,onDownload:io,onClose:lo})}),Or&&t.createElement(k.default,Object.assign({},Kr,{visible:ar,forceRender:!0}),Pn=>{let{className:dr,style:Gr}=Pn;return(0,i.Tm)(Or,W=>({className:P()(W.className,dr),style:Object.assign(Object.assign(Object.assign({},Gr),{pointerEvents:dr?"none":void 0}),W.style)}))}))};var St=t.forwardRef(Xe),Pt=e(17313),un=e(8378),on=e(83116),xt=e(37613),mn=H=>{const{componentCls:fe,iconCls:he}=H;return{[`${fe}-wrapper`]:{[`${fe}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:H.colorFillAlter,border:`${H.lineWidth}px dashed ${H.colorBorder}`,borderRadius:H.borderRadiusLG,cursor:"pointer",transition:`border-color ${H.motionDurationSlow}`,[fe]:{padding:`${H.padding}px 0`},[`${fe}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${fe}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${fe}-disabled):hover`]:{borderColor:H.colorPrimaryHover},[`p${fe}-drag-icon`]:{marginBottom:H.margin,[he]:{color:H.colorPrimary,fontSize:H.uploadThumbnailSize}},[`p${fe}-text`]:{margin:`0 0 ${H.marginXXS}px`,color:H.colorTextHeading,fontSize:H.fontSizeLG},[`p${fe}-hint`]:{color:H.colorTextDescription,fontSize:H.fontSize},[`&${fe}-disabled`]:{cursor:"not-allowed",[`p${fe}-drag-icon ${he}, + p${fe}-text, + p${fe}-hint + `]:{color:H.colorTextDisabled}}}}}},wn=H=>{const{componentCls:fe,antCls:he,iconCls:Ce,fontSize:ke,lineHeight:Ze}=H,Le=`${fe}-list-item`,Te=`${Le}-actions`,Kt=`${Le}-action`,Mt=Math.round(ke*Ze);return{[`${fe}-wrapper`]:{[`${fe}-list`]:Object.assign(Object.assign({},(0,Pt.dF)()),{lineHeight:H.lineHeight,[Le]:{position:"relative",height:H.lineHeight*ke,marginTop:H.marginXS,fontSize:ke,display:"flex",alignItems:"center",transition:`background-color ${H.motionDurationSlow}`,"&:hover":{backgroundColor:H.controlItemBgHover},[`${Le}-name`]:Object.assign(Object.assign({},Pt.vS),{padding:`0 ${H.paddingXS}px`,lineHeight:Ze,flex:"auto",transition:`all ${H.motionDurationSlow}`}),[Te]:{[Kt]:{opacity:0},[`${Kt}${he}-btn-sm`]:{height:Mt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` + ${Kt}:focus-visible, + &.picture ${Kt} + `]:{opacity:1},[Ce]:{color:H.actionsColor,transition:`all ${H.motionDurationSlow}`},[`&:hover ${Ce}`]:{color:H.colorText}},[`${fe}-icon ${Ce}`]:{color:H.colorTextDescription,fontSize:ke},[`${Le}-progress`]:{position:"absolute",bottom:-H.uploadProgressOffset,width:"100%",paddingInlineStart:ke+H.paddingXS,fontSize:ke,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Le}:hover ${Kt}`]:{opacity:1,color:H.colorText},[`${Le}-error`]:{color:H.colorError,[`${Le}-name, ${fe}-icon ${Ce}`]:{color:H.colorError},[Te]:{[`${Ce}, ${Ce}:hover`]:{color:H.colorError},[Kt]:{opacity:1}}},[`${fe}-list-item-container`]:{transition:`opacity ${H.motionDurationSlow}, height ${H.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Vn=e(36237),Zn=e(1950);const sr=new Vn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),wr=new Vn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var fr=H=>{const{componentCls:fe}=H,he=`${fe}-animate-inline`;return[{[`${fe}-wrapper`]:{[`${he}-appear, ${he}-enter, ${he}-leave`]:{animationDuration:H.motionDurationSlow,animationTimingFunction:H.motionEaseInOutCirc,animationFillMode:"forwards"},[`${he}-appear, ${he}-enter`]:{animationName:sr},[`${he}-leave`]:{animationName:wr}}},{[`${fe}-wrapper`]:(0,Zn.J$)(H)},sr,wr]},zn=e(30071),br=e(64993);const jr=H=>{const{componentCls:fe,iconCls:he,uploadThumbnailSize:Ce,uploadProgressOffset:ke}=H,Ze=`${fe}-list`,Le=`${Ze}-item`;return{[`${fe}-wrapper`]:{[` + ${Ze}${Ze}-picture, + ${Ze}${Ze}-picture-card, + ${Ze}${Ze}-picture-circle + `]:{[Le]:{position:"relative",height:Ce+H.lineWidth*2+H.paddingXS*2,padding:H.paddingXS,border:`${H.lineWidth}px ${H.lineType} ${H.colorBorder}`,borderRadius:H.borderRadiusLG,"&:hover":{background:"transparent"},[`${Le}-thumbnail`]:Object.assign(Object.assign({},Pt.vS),{width:Ce,height:Ce,lineHeight:`${Ce+H.paddingSM}px`,textAlign:"center",flex:"none",[he]:{fontSize:H.fontSizeHeading2,color:H.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Le}-progress`]:{bottom:ke,width:`calc(100% - ${H.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ce+H.paddingXS}},[`${Le}-error`]:{borderColor:H.colorError,[`${Le}-thumbnail ${he}`]:{[`svg path[fill='${zn.blue[0]}']`]:{fill:H.colorErrorBg},[`svg path[fill='${zn.blue.primary}']`]:{fill:H.colorError}}},[`${Le}-uploading`]:{borderStyle:"dashed",[`${Le}-name`]:{marginBottom:ke}}},[`${Ze}${Ze}-picture-circle ${Le}`]:{[`&, &::before, ${Le}-thumbnail`]:{borderRadius:"50%"}}}}},Fr=H=>{const{componentCls:fe,iconCls:he,fontSizeLG:Ce,colorTextLightSolid:ke}=H,Ze=`${fe}-list`,Le=`${Ze}-item`,Te=H.uploadPicCardSize;return{[` + ${fe}-wrapper${fe}-picture-card-wrapper, + ${fe}-wrapper${fe}-picture-circle-wrapper + `]:Object.assign(Object.assign({},(0,Pt.dF)()),{display:"inline-block",width:"100%",[`${fe}${fe}-select`]:{width:Te,height:Te,marginInlineEnd:H.marginXS,marginBottom:H.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:H.colorFillAlter,border:`${H.lineWidth}px dashed ${H.colorBorder}`,borderRadius:H.borderRadiusLG,cursor:"pointer",transition:`border-color ${H.motionDurationSlow}`,[`> ${fe}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${fe}-disabled):hover`]:{borderColor:H.colorPrimary}},[`${Ze}${Ze}-picture-card, ${Ze}${Ze}-picture-circle`]:{[`${Ze}-item-container`]:{display:"inline-block",width:Te,height:Te,marginBlock:`0 ${H.marginXS}px`,marginInline:`0 ${H.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Le]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${H.paddingXS*2}px)`,height:`calc(100% - ${H.paddingXS*2}px)`,backgroundColor:H.colorBgMask,opacity:0,transition:`all ${H.motionDurationSlow}`,content:'" "'}},[`${Le}:hover`]:{[`&::before, ${Le}-actions`]:{opacity:1}},[`${Le}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${H.motionDurationSlow}`,[`${he}-eye, ${he}-download, ${he}-delete`]:{zIndex:10,width:Ce,margin:`0 ${H.marginXXS}px`,fontSize:Ce,cursor:"pointer",transition:`all ${H.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Le}-actions, ${Le}-actions:hover`]:{[`${he}-eye, ${he}-download, ${he}-delete`]:{color:new br.C(ke).setAlpha(.65).toRgbString(),"&:hover":{color:ke}}},[`${Le}-thumbnail, ${Le}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Le}-name`]:{display:"none",textAlign:"center"},[`${Le}-file + ${Le}-name`]:{position:"absolute",bottom:H.margin,display:"block",width:`calc(100% - ${H.paddingXS*2}px)`},[`${Le}-uploading`]:{[`&${Le}`]:{backgroundColor:H.colorFillAlter},[`&::before, ${he}-eye, ${he}-download, ${he}-delete`]:{display:"none"}},[`${Le}-progress`]:{bottom:H.marginXL,width:`calc(100% - ${H.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${fe}-wrapper${fe}-picture-circle-wrapper`]:{[`${fe}${fe}-select`]:{borderRadius:"50%"}}}};var Xn=H=>{const{componentCls:fe}=H;return{[`${fe}-rtl`]:{direction:"rtl"}}};const no=H=>{const{componentCls:fe,colorTextDisabled:he}=H;return{[`${fe}-wrapper`]:Object.assign(Object.assign({},(0,Pt.Wf)(H)),{[fe]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${fe}-select`]:{display:"inline-block"},[`${fe}-disabled`]:{color:he,cursor:"not-allowed"}})}};var Xr=(0,on.Z)("Upload",H=>{const{fontSizeHeading3:fe,fontSize:he,lineHeight:Ce,lineWidth:ke,controlHeightLG:Ze}=H,Le=Math.round(he*Ce),Te=(0,xt.TS)(H,{uploadThumbnailSize:fe*2,uploadProgressOffset:Le/2+ke,uploadPicCardSize:Ze*2.55});return[no(Te),mn(Te),jr(Te),Fr(Te),wn(Te),fr(Te),Xn(Te),(0,un.Z)(Te)]},H=>({actionsColor:H.colorTextDescription})),yo=function(H,fe,he,Ce){function ke(Ze){return Ze instanceof he?Ze:new he(function(Le){Le(Ze)})}return new(he||(he=Promise))(function(Ze,Le){function Te(Qt){try{Mt(Ce.next(Qt))}catch(Kn){Le(Kn)}}function Kt(Qt){try{Mt(Ce.throw(Qt))}catch(Kn){Le(Kn)}}function Mt(Qt){Qt.done?Ze(Qt.value):ke(Qt.value).then(Te,Kt)}Mt((Ce=Ce.apply(H,fe||[])).next())})};const ao=`__LIST_IGNORE_${Date.now()}__`,Ve=(H,fe)=>{const{fileList:he,defaultFileList:Ce,onRemove:ke,showUploadList:Ze=!0,listType:Le="text",onPreview:Te,onDownload:Kt,onChange:Mt,onDrop:Qt,previewFile:Kn,disabled:Ln,locale:Gn,iconRender:$r,isImageUrl:Pr,progress:Qn,prefixCls:mr,className:ur,type:Or="select",children:ar,style:In,itemRender:Dr,maxCount:Cr,data:Fn={},multiple:S=!1,action:Nr="",accept:io="",supportServerRender:lo=!0,rootClassName:Yr}=H,ro=t.useContext(Re.Z),Ar=Ln!=null?Ln:ro,[Yn,Jn]=(0,L.Z)(Ce||[],{value:he,postState:gn=>gn!=null?gn:[]}),[qn,zr]=t.useState("drop"),En=t.useRef(null);t.useMemo(()=>{const gn=Date.now();(he||[]).forEach((Jt,yn)=>{!Jt.uid&&!Object.isFrozen(Jt)&&(Jt.uid=`__AUTO__${gn}_${yn}__`)})},[he]);const Kr=(gn,Jt,yn)=>{let pt=(0,l.Z)(Jt),Un=!1;Cr===1?pt=pt.slice(-1):Cr&&(Un=pt.length>Cr,pt=pt.slice(0,Cr)),(0,Y.flushSync)(()=>{Jn(pt)});const _r={file:gn,fileList:pt};yn&&(_r.event=yn),(!Un||pt.some(Hr=>Hr.uid===gn.uid))&&(0,Y.flushSync)(()=>{Mt==null||Mt(_r)})},lr=(gn,Jt)=>yo(void 0,void 0,void 0,function*(){const{beforeUpload:yn,transformFile:pt}=H;let Un=gn;if(yn){const _r=yield yn(gn,Jt);if(_r===!1)return!1;if(delete gn[ao],_r===ao)return Object.defineProperty(gn,ao,{value:!0,configurable:!0}),!1;typeof _r=="object"&&_r&&(Un=_r)}return pt&&(Un=yield pt(Un)),Un}),Pn=gn=>{const Jt=gn.filter(Un=>!Un.file[ao]);if(!Jt.length)return;const yn=Jt.map(Un=>R(Un.file));let pt=(0,l.Z)(Yn);yn.forEach(Un=>{pt=s(Un,pt)}),yn.forEach((Un,_r)=>{let Hr=Un;if(Jt[_r].parsedFile)Un.status="uploading";else{const{originFileObj:so}=Un;let co;try{co=new File([so],so.name,{type:so.type})}catch(xo){co=new Blob([so],{type:so.type}),co.name=so.name,co.lastModifiedDate=new Date,co.lastModified=new Date().getTime()}co.uid=Un.uid,Hr=co}Kr(Hr,pt)})},dr=(gn,Jt,yn)=>{try{typeof gn=="string"&&(gn=JSON.parse(gn))}catch(_r){}if(!ne(Jt,Yn))return;const pt=R(Jt);pt.status="done",pt.percent=100,pt.response=gn,pt.xhr=yn;const Un=s(pt,Yn);Kr(pt,Un)},Gr=(gn,Jt)=>{if(!ne(Jt,Yn))return;const yn=R(Jt);yn.status="uploading",yn.percent=gn.percent;const pt=s(yn,Yn);Kr(yn,pt,gn)},W=(gn,Jt,yn)=>{if(!ne(yn,Yn))return;const pt=R(yn);pt.error=gn,pt.response=Jt,pt.status="error";const Un=s(pt,Yn);Kr(pt,Un)},be=gn=>{let Jt;Promise.resolve(typeof ke=="function"?ke(gn):ke).then(yn=>{var pt;if(yn===!1)return;const Un=Fe(gn,Yn);Un&&(Jt=Object.assign(Object.assign({},gn),{status:"removed"}),Yn==null||Yn.forEach(_r=>{const Hr=Jt.uid!==void 0?"uid":"name";_r[Hr]===Jt[Hr]&&!Object.isFrozen(_r)&&(_r.status="removed")}),(pt=En.current)===null||pt===void 0||pt.abort(Jt),Kr(Jt,Un))})},Me=gn=>{zr(gn.type),gn.type==="drop"&&(Qt==null||Qt(gn))};t.useImperativeHandle(fe,()=>({onBatchStart:Pn,onSuccess:dr,onProgress:Gr,onError:W,fileList:Yn,upload:En.current}));const{getPrefixCls:Yt,direction:qt,upload:Zt}=t.useContext(ge.E_),_t=Yt("upload",mr),Vt=Object.assign(Object.assign({onBatchStart:Pn,onError:W,onProgress:Gr,onSuccess:dr},H),{data:Fn,multiple:S,action:Nr,accept:io,supportServerRender:lo,prefixCls:_t,disabled:Ar,beforeUpload:lr,onChange:void 0});delete Vt.className,delete Vt.style,(!ar||Ar)&&delete Vt.id;const[Et,Rt]=Xr(_t),[Cn]=(0,$e.Z)("Upload",je.Z.Upload),{showRemoveIcon:On,showPreviewIcon:kn,showDownloadIcon:Mn,removeIcon:ir,previewIcon:An,downloadIcon:sn}=typeof Ze=="boolean"?{}:Ze,bn=(gn,Jt)=>Ze?t.createElement(St,{prefixCls:_t,listType:Le,items:Yn,previewFile:Kn,onPreview:Te,onDownload:Kt,onRemove:be,showRemoveIcon:!Ar&&On,showPreviewIcon:kn,showDownloadIcon:Mn,removeIcon:ir,previewIcon:An,downloadIcon:sn,iconRender:$r,locale:Object.assign(Object.assign({},Cn),Gn),isImageUrl:Pr,progress:Qn,appendAction:gn,appendActionVisible:Jt,itemRender:Dr,disabled:Ar}):gn,Ot=P()(`${_t}-wrapper`,ur,Yr,Rt,Zt==null?void 0:Zt.className,{[`${_t}-rtl`]:qt==="rtl",[`${_t}-picture-card-wrapper`]:Le==="picture-card",[`${_t}-picture-circle-wrapper`]:Le==="picture-circle"}),dn=Object.assign(Object.assign({},Zt==null?void 0:Zt.style),In);if(Or==="drag"){const gn=P()(Rt,_t,`${_t}-drag`,{[`${_t}-drag-uploading`]:Yn.some(Jt=>Jt.status==="uploading"),[`${_t}-drag-hover`]:qn==="dragover",[`${_t}-disabled`]:Ar,[`${_t}-rtl`]:qt==="rtl"});return Et(t.createElement("span",{className:Ot},t.createElement("div",{className:gn,style:dn,onDrop:Me,onDragOver:Me,onDragLeave:Me},t.createElement(x,Object.assign({},Vt,{ref:En,className:`${_t}-btn`}),t.createElement("div",{className:`${_t}-drag-container`},ar))),bn()))}const Dn=P()(_t,`${_t}-select`,{[`${_t}-disabled`]:Ar}),Tr=(gn=>t.createElement("div",{className:Dn,style:gn},t.createElement(x,Object.assign({},Vt,{ref:En}))))(ar?void 0:{display:"none"});return Et(Le==="picture-card"||Le==="picture-circle"?t.createElement("span",{className:Ot},bn(Tr,!!ar)):t.createElement("span",{className:Ot},Tr,bn()))};var ot=t.forwardRef(Ve),Ct=function(H,fe){var he={};for(var Ce in H)Object.prototype.hasOwnProperty.call(H,Ce)&&fe.indexOf(Ce)<0&&(he[Ce]=H[Ce]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Ce=Object.getOwnPropertySymbols(H);ke{var{style:he,height:Ce}=H,ke=Ct(H,["style","height"]);return t.createElement(ot,Object.assign({ref:fe},ke,{type:"drag",style:Object.assign(Object.assign({},he),{height:Ce})}))});const Ut=ot;Ut.Dragger=At,Ut.LIST_IGNORE=ao;var zt=Ut},14625:function(nt){function z(t){var l,b,P="";if(typeof t=="string"||typeof t=="number")P+=t;else if(typeof t=="object")if(Array.isArray(t)){var $=t.length;for(l=0;l<$;l++)t[l]&&(b=z(t[l]))&&(P&&(P+=" "),P+=b)}else for(b in t)t[b]&&(P&&(P+=" "),P+=b);return P}function e(){for(var t,l,b=0,P="",$=arguments.length;b<$;b++)(t=arguments[b])&&(l=z(t))&&(P&&(P+=" "),P+=l);return P}nt.exports=e,nt.exports.clsx=e},97774:function(nt,z,e){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var t=Object.assign||function(g){for(var U=1;U>>7-e%8&1)==1},put:function(e,t){for(var l=0;l>>t-l-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},nt.exports=z},78485:function(nt){nt.exports={L:1,M:0,Q:3,H:2}},13679:function(nt,z,e){var t=e(87532);function l(b,P){if(b.length==null)throw new Error(b.length+"/"+P);for(var $=0;$=7&&this.setupTypeNumber(E),this.dataCache==null&&(this.dataCache=d.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,D)},n.setupPositionProbePattern=function(E,D){for(var w=-1;w<=7;w++)if(!(E+w<=-1||this.moduleCount<=E+w))for(var C=-1;C<=7;C++)D+C<=-1||this.moduleCount<=D+C||(0<=w&&w<=6&&(C==0||C==6)||0<=C&&C<=6&&(w==0||w==6)||2<=w&&w<=4&&2<=C&&C<=4?this.modules[E+w][D+C]=!0:this.modules[E+w][D+C]=!1)},n.getBestMaskPattern=function(){for(var E=0,D=0,w=0;w<8;w++){this.makeImpl(!0,w);var C=P.getLostPoint(this);(w==0||E>C)&&(E=C,D=w)}return D},n.createMovieClip=function(E,D,w){var C=E.createEmptyMovieClip(D,w),v=1;this.make();for(var B=0;B>w&1)==1;this.modules[Math.floor(w/3)][w%3+this.moduleCount-8-3]=C}for(var w=0;w<18;w++){var C=!E&&(D>>w&1)==1;this.modules[w%3+this.moduleCount-8-3][Math.floor(w/3)]=C}},n.setupTypeInfo=function(E,D){for(var w=this.errorCorrectLevel<<3|D,C=P.getBCHTypeInfo(w),v=0;v<15;v++){var B=!E&&(C>>v&1)==1;v<6?this.modules[v][8]=B:v<8?this.modules[v+1][8]=B:this.modules[this.moduleCount-15+v][8]=B}for(var v=0;v<15;v++){var B=!E&&(C>>v&1)==1;v<8?this.modules[8][this.moduleCount-v-1]=B:v<9?this.modules[8][15-v-1+1]=B:this.modules[8][15-v-1]=B}this.modules[this.moduleCount-8][8]=!E},n.mapData=function(E,D){for(var w=-1,C=this.moduleCount-1,v=7,B=0,T=this.moduleCount-1;T>0;T-=2)for(T==6&&T--;;){for(var I=0;I<2;I++)if(this.modules[C][T-I]==null){var g=!1;B>>v&1)==1);var U=P.getMask(D,C,T-I);U&&(g=!g),this.modules[C][T-I]=g,v--,v==-1&&(B++,v=7)}if(C+=w,C<0||this.moduleCount<=C){C-=w,w=-w;break}}},d.PAD0=236,d.PAD1=17,d.createData=function(E,D,w){for(var C=l.getRSBlocks(E,D),v=new b,B=0;BI*8)throw new Error("code length overflow. ("+v.getLengthInBits()+">"+I*8+")");for(v.getLengthInBits()+4<=I*8&&v.put(0,4);v.getLengthInBits()%8!=0;)v.putBit(!1);for(;!(v.getLengthInBits()>=I*8||(v.put(d.PAD0,8),v.getLengthInBits()>=I*8));)v.put(d.PAD1,8);return d.createBytes(v,C)},d.createBytes=function(E,D){for(var w=0,C=0,v=0,B=new Array(D.length),T=new Array(D.length),I=0;I=0?K.get(Z):0}}for(var oe=0,F=0;F=256;)t-=255;return z.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},e=0;e<8;e++)z.EXP_TABLE[e]=1<=0;)n^=$.G15<<$.getBCHDigit(n)-$.getBCHDigit($.G15);return(d<<10|n)^$.G15_MASK},getBCHTypeNumber:function(d){for(var n=d<<12;$.getBCHDigit(n)-$.getBCHDigit($.G18)>=0;)n^=$.G18<<$.getBCHDigit(n)-$.getBCHDigit($.G18);return d<<12|n},getBCHDigit:function(d){for(var n=0;d!=0;)n++,d>>>=1;return n},getPatternPosition:function(d){return $.PATTERN_POSITION_TABLE[d-1]},getMask:function(d,n,E){switch(d){case P.PATTERN000:return(n+E)%2==0;case P.PATTERN001:return n%2==0;case P.PATTERN010:return E%3==0;case P.PATTERN011:return(n+E)%3==0;case P.PATTERN100:return(Math.floor(n/2)+Math.floor(E/3))%2==0;case P.PATTERN101:return n*E%2+n*E%3==0;case P.PATTERN110:return(n*E%2+n*E%3)%2==0;case P.PATTERN111:return(n*E%3+(n+E)%2)%2==0;default:throw new Error("bad maskPattern:"+d)}},getErrorCorrectPolynomial:function(d){for(var n=new l([1],0),E=0;E5&&(E+=3+C-5)}for(var D=0;D=0)&&Object.prototype.propertyIsEnumerable.call(ae,Y)&&(L[Y]=ae[Y])}return L}function d(ae,x){if(ae==null)return{};var L={},Y=Object.keys(ae),ge,Re;for(Re=0;Re=0)&&(L[ge]=ae[ge]);return L}function n(ae,x){if(!(ae instanceof x))throw new TypeError("Cannot call a class as a function")}function E(ae,x){for(var L=0;L>6),x+=String.fromCharCode(128|Y&63)):Y<55296||Y>=57344?(x+=String.fromCharCode(224|Y>>12),x+=String.fromCharCode(128|Y>>6&63),x+=String.fromCharCode(128|Y&63)):(L++,Y=65536+((Y&1023)<<10|ae.charCodeAt(L)&1023),x+=String.fromCharCode(240|Y>>18),x+=String.fromCharCode(128|Y>>12&63),x+=String.fromCharCode(128|Y>>6&63),x+=String.fromCharCode(128|Y&63))}return x}var K={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},Z={},oe=4,O=.1;function _(ae){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=[];return ae.forEach(function(Y,ge){var Re=null;Y.forEach(function($e,je){if(!$e&&Re!==null){L.push("M".concat(Re+x," ").concat(ge+x,"h").concat(je-Re,"v1H").concat(Re+x,"z")),Re=null;return}if(je===Y.length-1){if(!$e)return;Re===null?L.push("M".concat(je+x,",").concat(ge+x," h1v1H").concat(je+x,"z")):L.push("M".concat(Re+x,",").concat(ge+x," h").concat(je+1-Re,"v1H").concat(Re+x,"z"));return}$e&&Re===null&&(Re=je)})}),L.join("")}function ee(ae,x){return ae.slice().map(function(L,Y){return Y=x.y+x.h?L:L.map(function(ge,Re){return Re=x.x+x.w?ge:!1})})}function le(ae,x){var L=ae.imageSettings,Y=ae.size,ge=ae.includeMargin;if(L==null)return null;var Re=ge?oe:0,$e=x.length+Re*2,je=Math.floor(Y*O),Ye=$e/Y,tt=(L.width||je)*Ye,ze=(L.height||je)*Ye,Be=L.x==null?x.length/2-tt/2:L.x*Ye,qe=L.y==null?x.length/2-ze/2:L.y*Ye,dt=null;if(L.excavate){var Ie=Math.floor(Be),st=Math.floor(qe),yt=Math.ceil(tt+Be-Ie),Se=Math.ceil(ze+qe-st);dt={x:Ie,y:st,w:yt,h:Se}}return{x:Be,y:qe,h:ze,w:tt,excavation:dt}}var X=function(){try{new Path2D().addPath(new Path2D)}catch(ae){return!1}return!0}(),h=function(ae){B(x,ae);function x(){var L,Y;n(this,x);for(var ge=arguments.length,Re=new Array(ge),$e=0;$e0&&arguments[0]!==void 0?arguments[0]:[],V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],p=j.length,a=V.length;if(Math.abs(p-a)!==1)return{add:!1,key:null};function k(me,u){var i=new Map;me.forEach(function(R){i.set(R,!0)});var Q=u.filter(function(R){return!i.has(R)});return Q.length===1?Q[0]:null}return p ").concat(V);return V}var qe=g.forwardRef(function(j,V){var p=j.prefixCls,a=j.data,k=j.selectable,me=j.checkable,u=j.expandedKeys,i=j.selectedKeys,Q=j.checkedKeys,R=j.loadedKeys,s=j.loadingKeys,ne=j.halfCheckedKeys,Fe=j.keyEntities,we=j.disabled,_e=j.dragging,Pe=j.dragOverNodeKey,Ne=j.dropPosition,m=j.motion,te=j.height,ue=j.itemHeight,ye=j.virtual,Ae=j.focusable,De=j.activeItem,Ke=j.focused,We=j.tabIndex,Xe=j.onKeyDown,Dt=j.onFocus,St=j.onBlur,Pt=j.onActiveChange,un=j.onListChangeStart,on=j.onListChangeEnd,xt=(0,K.Z)(j,L),Sn=g.useRef(null),mn=g.useRef(null);g.useImperativeHandle(V,function(){return{scrollTo:function(zt){Sn.current.scrollTo(zt)},getIndentWidth:function(){return mn.current.offsetWidth}}});var an=g.useState(u),wn=(0,q.Z)(an,2),Vn=wn[0],Zn=wn[1],sr=g.useState(a),wr=(0,q.Z)(sr,2),er=wr[0],fr=wr[1],zn=g.useState(a),br=(0,q.Z)(zn,2),jr=br[0],Fr=br[1],hr=g.useState([]),Xn=(0,q.Z)(hr,2),no=Xn[0],Xr=Xn[1],yo=g.useState(null),ao=(0,q.Z)(yo,2),Ve=ao[0],pe=ao[1],ot=g.useRef(a);ot.current=a;function Ct(){var Ut=ot.current;fr(Ut),Fr(Ut),Xr([]),pe(null),on()}(0,Z.Z)(function(){Zn(u);var Ut=ae(Vn,u);if(Ut.key!==null)if(Ut.add){var zt=er.findIndex(function(Ze){var Le=Ze.key;return Le===Ut.key}),H=tt(x(er,a,Ut.key),ye,te,ue),fe=er.slice();fe.splice(zt+1,0,Ye),Fr(fe),Xr(H),pe("show")}else{var he=a.findIndex(function(Ze){var Le=Ze.key;return Le===Ut.key}),Ce=tt(x(a,er,Ut.key),ye,te,ue),ke=a.slice();ke.splice(he+1,0,Ye),Fr(ke),Xr(Ce),pe("hide")}else er!==a&&(fr(a),Fr(a))},[u,a]),g.useEffect(function(){_e||Ct()},[_e]);var Nt=m?jr:a,At={expandedKeys:u,selectedKeys:i,loadedKeys:R,loadingKeys:s,checkedKeys:Q,halfCheckedKeys:ne,dragOverNodeKey:Pe,dropPosition:Ne,keyEntities:Fe};return g.createElement(g.Fragment,null,Ke&&De&&g.createElement("span",{style:Y,"aria-live":"assertive"},Be(De)),g.createElement("div",null,g.createElement("input",{style:Y,disabled:Ae===!1||we,tabIndex:Ae!==!1?We:null,onKeyDown:Xe,onFocus:Dt,onBlur:St,value:"",onChange:ge,"aria-label":"for screen reader"})),g.createElement("div",{className:"".concat(p,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},g.createElement("div",{className:"".concat(p,"-indent")},g.createElement("div",{ref:mn,className:"".concat(p,"-indent-unit")}))),g.createElement(oe.Z,(0,t.Z)({},xt,{data:Nt,itemKey:ze,height:te,fullHeight:!1,virtual:ye,itemHeight:ue,prefixCls:"".concat(p,"-list"),ref:Sn,onVisibleChange:function(zt,H){var fe=new Set(zt),he=H.filter(function(Ce){return!fe.has(Ce)});he.some(function(Ce){return ze(Ce)===Re})&&Ct()}}),function(Ut){var zt=Ut.pos,H=(0,t.Z)({},(G(Ut.data),Ut.data)),fe=Ut.title,he=Ut.key,Ce=Ut.isStart,ke=Ut.isEnd,Ze=(0,le.km)(he,zt);delete H.key,delete H.children;var Le=(0,le.H8)(Ze,At);return g.createElement(de,(0,t.Z)({},H,Le,{title:fe,active:!!De&&he===De.key,pos:zt,data:Ut.data,isStart:Ce,isEnd:ke,motion:m,motionNodes:he===Re?no:null,motionType:Ve,onMotionStart:un,onMotionEnd:Ct,treeNodeRequiredProps:At,onMouseMove:function(){Pt(null)}}))}))});qe.displayName="NodeList";var dt=qe,Ie=e(35654),st=e(90782),yt=e(67841),Se=10,ve=function(j){(0,D.Z)(p,j);var V=(0,w.Z)(p);function p(){var a;(0,d.Z)(this,p);for(var k=arguments.length,me=new Array(k),u=0;u2&&arguments[2]!==void 0?arguments[2]:!1,ne=a.state,Fe=ne.dragChildrenKeys,we=ne.dropPosition,_e=ne.dropTargetKey,Pe=ne.dropTargetPos,Ne=ne.dropAllowed;if(Ne){var m=a.props.onDrop;if(a.setState({dragOverNodeKey:null}),a.cleanDragState(),_e!==null){var te=(0,P.Z)((0,P.Z)({},(0,le.H8)(_e,a.getTreeNodeRequiredProps())),{},{active:((R=a.getActiveItem())===null||R===void 0?void 0:R.key)===_e,data:(0,yt.Z)(a.state.keyEntities,_e).node}),ue=Fe.indexOf(_e)!==-1;(0,I.ZP)(!ue,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var ye=(0,Ie.yx)(Pe),Ae={event:i,node:(0,le.F)(te),dragNode:a.dragNode?(0,le.F)(a.dragNode.props):null,dragNodesKeys:[a.dragNode.props.eventKey].concat(Fe),dropToGap:we!==0,dropPosition:we+Number(ye[ye.length-1])};s||m==null||m(Ae),a.dragNode=null}}},a.cleanDragState=function(){var i=a.state.draggingNodeKey;i!==null&&a.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),a.dragStartMousePosition=null,a.currentMouseOverDroppableNodeKey=null},a.triggerExpandActionExpand=function(i,Q){var R=a.state,s=R.expandedKeys,ne=R.flattenNodes,Fe=Q.expanded,we=Q.key,_e=Q.isLeaf;if(!(_e||i.shiftKey||i.metaKey||i.ctrlKey)){var Pe=ne.filter(function(m){return m.key===we})[0],Ne=(0,le.F)((0,P.Z)((0,P.Z)({},(0,le.H8)(we,a.getTreeNodeRequiredProps())),{},{data:Pe.data}));a.setExpandedKeys(Fe?(0,Ie._5)(s,we):(0,Ie.L0)(s,we)),a.onNodeExpand(i,Ne)}},a.onNodeClick=function(i,Q){var R=a.props,s=R.onClick,ne=R.expandAction;ne==="click"&&a.triggerExpandActionExpand(i,Q),s==null||s(i,Q)},a.onNodeDoubleClick=function(i,Q){var R=a.props,s=R.onDoubleClick,ne=R.expandAction;ne==="doubleClick"&&a.triggerExpandActionExpand(i,Q),s==null||s(i,Q)},a.onNodeSelect=function(i,Q){var R=a.state.selectedKeys,s=a.state,ne=s.keyEntities,Fe=s.fieldNames,we=a.props,_e=we.onSelect,Pe=we.multiple,Ne=Q.selected,m=Q[Fe.key],te=!Ne;te?Pe?R=(0,Ie.L0)(R,m):R=[m]:R=(0,Ie._5)(R,m);var ue=R.map(function(ye){var Ae=(0,yt.Z)(ne,ye);return Ae?Ae.node:null}).filter(function(ye){return ye});a.setUncontrolledState({selectedKeys:R}),_e==null||_e(R,{event:"select",selected:te,node:Q,selectedNodes:ue,nativeEvent:i.nativeEvent})},a.onNodeCheck=function(i,Q,R){var s=a.state,ne=s.keyEntities,Fe=s.checkedKeys,we=s.halfCheckedKeys,_e=a.props,Pe=_e.checkStrictly,Ne=_e.onCheck,m=Q.key,te,ue={event:"check",node:Q,checked:R,nativeEvent:i.nativeEvent};if(Pe){var ye=R?(0,Ie.L0)(Fe,m):(0,Ie._5)(Fe,m),Ae=(0,Ie._5)(we,m);te={checked:ye,halfChecked:Ae},ue.checkedNodes=ye.map(function(St){return(0,yt.Z)(ne,St)}).filter(function(St){return St}).map(function(St){return St.node}),a.setUncontrolledState({checkedKeys:ye})}else{var De=(0,st.S)([].concat((0,$.Z)(Fe),[m]),!0,ne),Ke=De.checkedKeys,We=De.halfCheckedKeys;if(!R){var Xe=new Set(Ke);Xe.delete(m);var Dt=(0,st.S)(Array.from(Xe),{checked:!1,halfCheckedKeys:We},ne);Ke=Dt.checkedKeys,We=Dt.halfCheckedKeys}te=Ke,ue.checkedNodes=[],ue.checkedNodesPositions=[],ue.halfCheckedKeys=We,Ke.forEach(function(St){var Pt=(0,yt.Z)(ne,St);if(Pt){var un=Pt.node,on=Pt.pos;ue.checkedNodes.push(un),ue.checkedNodesPositions.push({node:un,pos:on})}}),a.setUncontrolledState({checkedKeys:Ke},!1,{halfCheckedKeys:We})}Ne==null||Ne(te,ue)},a.onNodeLoad=function(i){var Q=i.key,R=new Promise(function(s,ne){a.setState(function(Fe){var we=Fe.loadedKeys,_e=we===void 0?[]:we,Pe=Fe.loadingKeys,Ne=Pe===void 0?[]:Pe,m=a.props,te=m.loadData,ue=m.onLoad;if(!te||_e.indexOf(Q)!==-1||Ne.indexOf(Q)!==-1)return null;var ye=te(i);return ye.then(function(){var Ae=a.state.loadedKeys,De=(0,Ie.L0)(Ae,Q);ue==null||ue(De,{event:"load",node:i}),a.setUncontrolledState({loadedKeys:De}),a.setState(function(Ke){return{loadingKeys:(0,Ie._5)(Ke.loadingKeys,Q)}}),s()}).catch(function(Ae){if(a.setState(function(Ke){return{loadingKeys:(0,Ie._5)(Ke.loadingKeys,Q)}}),a.loadingRetryTimes[Q]=(a.loadingRetryTimes[Q]||0)+1,a.loadingRetryTimes[Q]>=Se){var De=a.state.loadedKeys;(0,I.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),a.setUncontrolledState({loadedKeys:(0,Ie.L0)(De,Q)}),s()}ne(Ae)}),{loadingKeys:(0,Ie.L0)(Ne,Q)}})});return R.catch(function(){}),R},a.onNodeMouseEnter=function(i,Q){var R=a.props.onMouseEnter;R==null||R({event:i,node:Q})},a.onNodeMouseLeave=function(i,Q){var R=a.props.onMouseLeave;R==null||R({event:i,node:Q})},a.onNodeContextMenu=function(i,Q){var R=a.props.onRightClick;R&&(i.preventDefault(),R({event:i,node:Q}))},a.onFocus=function(){var i=a.props.onFocus;a.setState({focused:!0});for(var Q=arguments.length,R=new Array(Q),s=0;s1&&arguments[1]!==void 0?arguments[1]:!1,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!a.destroyed){var s=!1,ne=!0,Fe={};Object.keys(i).forEach(function(we){if(we in a.props){ne=!1;return}s=!0,Fe[we]=i[we]}),s&&(!Q||ne)&&a.setState((0,P.Z)((0,P.Z)({},Fe),R))}},a.scrollTo=function(i){a.listRef.current.scrollTo(i)},a}return(0,n.Z)(p,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var k=this.props.activeKey;k!==void 0&&k!==this.state.activeKey&&(this.setState({activeKey:k}),k!==null&&this.scrollTo({key:k}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var k,me=this.state,u=me.focused,i=me.flattenNodes,Q=me.keyEntities,R=me.draggingNodeKey,s=me.activeKey,ne=me.dropLevelOffset,Fe=me.dropContainerKey,we=me.dropTargetKey,_e=me.dropPosition,Pe=me.dragOverNodeKey,Ne=me.indent,m=this.props,te=m.prefixCls,ue=m.className,ye=m.style,Ae=m.showLine,De=m.focusable,Ke=m.tabIndex,We=Ke===void 0?0:Ke,Xe=m.selectable,Dt=m.showIcon,St=m.icon,Pt=m.switcherIcon,un=m.draggable,on=m.checkable,xt=m.checkStrictly,Sn=m.disabled,mn=m.motion,an=m.loadData,wn=m.filterTreeNode,Vn=m.height,Zn=m.itemHeight,sr=m.virtual,wr=m.titleRender,er=m.dropIndicatorRender,fr=m.onContextMenu,zn=m.onScroll,br=m.direction,jr=m.rootClassName,Fr=m.rootStyle,hr=(0,T.Z)(this.props,{aria:!0,data:!0}),Xn;return un&&((0,b.Z)(un)==="object"?Xn=un:typeof un=="function"?Xn={nodeDraggable:un}:Xn={}),g.createElement(U.k.Provider,{value:{prefixCls:te,selectable:Xe,showIcon:Dt,icon:St,switcherIcon:Pt,draggable:Xn,draggingNodeKey:R,checkable:on,checkStrictly:xt,disabled:Sn,keyEntities:Q,dropLevelOffset:ne,dropContainerKey:Fe,dropTargetKey:we,dropPosition:_e,dragOverNodeKey:Pe,indent:Ne,direction:br,dropIndicatorRender:er,loadData:an,filterTreeNode:wn,titleRender:wr,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}},g.createElement("div",{role:"tree",className:v()(te,ue,jr,(k={},(0,l.Z)(k,"".concat(te,"-show-line"),Ae),(0,l.Z)(k,"".concat(te,"-focused"),u),(0,l.Z)(k,"".concat(te,"-active-focused"),s!==null),k)),style:Fr},g.createElement(dt,(0,t.Z)({ref:this.listRef,prefixCls:te,style:ye,data:i,disabled:Sn,selectable:Xe,checkable:!!on,motion:mn,dragging:R!==null,height:Vn,itemHeight:Zn,virtual:sr,focusable:De,focused:u,tabIndex:We,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:fr,onScroll:zn},this.getTreeNodeRequiredProps(),hr))))}}],[{key:"getDerivedStateFromProps",value:function(k,me){var u=me.prevProps,i={prevProps:k};function Q(De){return!u&&De in k||u&&u[De]!==k[De]}var R,s=me.fieldNames;if(Q("fieldNames")&&(s=(0,le.w$)(k.fieldNames),i.fieldNames=s),Q("treeData")?R=k.treeData:Q("children")&&((0,I.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),R=(0,le.zn)(k.children)),R){i.treeData=R;var ne=(0,le.I8)(R,{fieldNames:s});i.keyEntities=(0,P.Z)((0,l.Z)({},Re,je),ne.keyEntities)}var Fe=i.keyEntities||me.keyEntities;if(Q("expandedKeys")||u&&Q("autoExpandParent"))i.expandedKeys=k.autoExpandParent||!u&&k.defaultExpandParent?(0,Ie.r7)(k.expandedKeys,Fe):k.expandedKeys;else if(!u&&k.defaultExpandAll){var we=(0,P.Z)({},Fe);delete we[Re],i.expandedKeys=Object.keys(we).map(function(De){return we[De].key})}else!u&&k.defaultExpandedKeys&&(i.expandedKeys=k.autoExpandParent||k.defaultExpandParent?(0,Ie.r7)(k.defaultExpandedKeys,Fe):k.defaultExpandedKeys);if(i.expandedKeys||delete i.expandedKeys,R||i.expandedKeys){var _e=(0,le.oH)(R||me.treeData,i.expandedKeys||me.expandedKeys,s);i.flattenNodes=_e}if(k.selectable&&(Q("selectedKeys")?i.selectedKeys=(0,Ie.BT)(k.selectedKeys,k):!u&&k.defaultSelectedKeys&&(i.selectedKeys=(0,Ie.BT)(k.defaultSelectedKeys,k))),k.checkable){var Pe;if(Q("checkedKeys")?Pe=(0,Ie.E6)(k.checkedKeys)||{}:!u&&k.defaultCheckedKeys?Pe=(0,Ie.E6)(k.defaultCheckedKeys)||{}:R&&(Pe=(0,Ie.E6)(k.checkedKeys)||{checkedKeys:me.checkedKeys,halfCheckedKeys:me.halfCheckedKeys}),Pe){var Ne=Pe,m=Ne.checkedKeys,te=m===void 0?[]:m,ue=Ne.halfCheckedKeys,ye=ue===void 0?[]:ue;if(!k.checkStrictly){var Ae=(0,st.S)(te,!0,Fe);te=Ae.checkedKeys,ye=Ae.halfCheckedKeys}i.checkedKeys=te,i.halfCheckedKeys=ye}}return Q("loadedKeys")&&(i.loadedKeys=k.loadedKeys),i}}]),p}(g.Component);ve.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:[],dropIndicatorRender:F,allowDrop:function(){return!0},expandAction:!1},ve.TreeNode=_.Z;var rt=ve,et=rt},35654:function(nt,z,e){"use strict";e.d(z,{BT:function(){return g},E6:function(){return G},L0:function(){return w},OM:function(){return I},_5:function(){return D},r7:function(){return q},wA:function(){return v},yx:function(){return C}});var t=e(94480),l=e(76190),b=e(48736),P=e(59301),$=e(39417),d=e(67841),n=e(71430),E=null;function D(K,Z){if(!K)return[];var oe=K.slice(),O=oe.indexOf(Z);return O>=0&&oe.splice(O,1),oe}function w(K,Z){var oe=(K||[]).slice();return oe.indexOf(Z)===-1&&oe.push(Z),oe}function C(K){return K.split("-")}function v(K,Z){var oe=[],O=(0,d.Z)(Z,K);function _(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ee.forEach(function(le){var X=le.key,h=le.children;oe.push(X),_(h)})}return _(O.children),oe}function B(K){if(K.parent){var Z=C(K.pos);return Number(Z[Z.length-1])===K.parent.children.length-1}return!1}function T(K){var Z=C(K.pos);return Number(Z[Z.length-1])===0}function I(K,Z,oe,O,_,ee,le,X,h,N){var de,ae=K.clientX,x=K.clientY,L=K.target.getBoundingClientRect(),Y=L.top,ge=L.height,Re=(N==="rtl"?-1:1)*(((_==null?void 0:_.x)||0)-ae),$e=(Re-12)/O,je=(0,d.Z)(X,oe.props.eventKey);if(x-1.5?ee({dragNode:Se,dropNode:ve,dropPosition:1})?Ie=1:rt=!1:ee({dragNode:Se,dropNode:ve,dropPosition:0})?Ie=0:ee({dragNode:Se,dropNode:ve,dropPosition:1})?Ie=1:rt=!1:ee({dragNode:Se,dropNode:ve,dropPosition:1})?Ie=1:rt=!1,{dropPosition:Ie,dropLevelOffset:st,dropTargetKey:je.key,dropTargetPos:je.pos,dragOverNodeKey:dt,dropContainerKey:Ie===0?null:((de=je.parent)===null||de===void 0?void 0:de.key)||null,dropAllowed:rt}}function g(K,Z){if(K){var oe=Z.multiple;return oe?K.slice():K.length?[K[0]]:K}}var U=function(Z){return Z};function F(K,Z){if(!K)return[];var oe=Z||{},O=oe.processProps,_=O===void 0?U:O,ee=Array.isArray(K)?K:[K];return ee.map(function(le){var X=le.children,h=_objectWithoutProperties(le,E),N=F(X,Z);return React.createElement(TreeNode,_extends({key:h.key},_(h)),N)})}function G(K){if(!K)return null;var Z;if(Array.isArray(K))Z={checkedKeys:K,halfCheckedKeys:void 0};else if((0,l.Z)(K)==="object")Z={checkedKeys:K.checked||void 0,halfCheckedKeys:K.halfChecked||void 0};else return(0,b.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Z}function q(K,Z){var oe=new Set;function O(_){if(!oe.has(_)){var ee=(0,d.Z)(Z,_);if(ee){oe.add(_);var le=ee.parent,X=ee.node;X.disabled||le&&O(le.key)}}}return(K||[]).forEach(function(_){O(_)}),(0,t.Z)(oe)}},90782:function(nt,z,e){"use strict";e.d(z,{S:function(){return n}});var t=e(48736),l=e(67841);function b(E,D){var w=new Set;return E.forEach(function(C){D.has(C)||w.add(C)}),w}function P(E){var D=E||{},w=D.disabled,C=D.disableCheckbox,v=D.checkable;return!!(w||C)||v===!1}function $(E,D,w,C){for(var v=new Set(E),B=new Set,T=0;T<=w;T+=1){var I=D.get(T)||new Set;I.forEach(function(G){var q=G.key,K=G.node,Z=G.children,oe=Z===void 0?[]:Z;v.has(q)&&!C(K)&&oe.filter(function(O){return!C(O.node)}).forEach(function(O){v.add(O.key)})})}for(var g=new Set,U=w;U>=0;U-=1){var F=D.get(U)||new Set;F.forEach(function(G){var q=G.parent,K=G.node;if(!(C(K)||!G.parent||g.has(G.parent.key))){if(C(G.parent.node)){g.add(q.key);return}var Z=!0,oe=!1;(q.children||[]).filter(function(O){return!C(O.node)}).forEach(function(O){var _=O.key,ee=v.has(_);Z&&!ee&&(Z=!1),!oe&&(ee||B.has(_))&&(oe=!0)}),Z&&v.add(q.key),oe&&B.add(q.key),g.add(q.key)}})}return{checkedKeys:Array.from(v),halfCheckedKeys:Array.from(b(B,v))}}function d(E,D,w,C,v){for(var B=new Set(E),T=new Set(D),I=0;I<=C;I+=1){var g=w.get(I)||new Set;g.forEach(function(q){var K=q.key,Z=q.node,oe=q.children,O=oe===void 0?[]:oe;!B.has(K)&&!T.has(K)&&!v(Z)&&O.filter(function(_){return!v(_.node)}).forEach(function(_){B.delete(_.key)})})}T=new Set;for(var U=new Set,F=C;F>=0;F-=1){var G=w.get(F)||new Set;G.forEach(function(q){var K=q.parent,Z=q.node;if(!(v(Z)||!q.parent||U.has(q.parent.key))){if(v(q.parent.node)){U.add(K.key);return}var oe=!0,O=!1;(K.children||[]).filter(function(_){return!v(_.node)}).forEach(function(_){var ee=_.key,le=B.has(ee);oe&&!le&&(oe=!1),!O&&(le||T.has(ee))&&(O=!0)}),oe||B.delete(K.key),O&&T.add(K.key),U.add(K.key)}})}return{checkedKeys:Array.from(B),halfCheckedKeys:Array.from(b(T,B))}}function n(E,D,w,C){var v=[],B;C?B=C:B=P;var T=new Set(E.filter(function(F){var G=!!(0,l.Z)(w,F);return G||v.push(F),G})),I=new Map,g=0;Object.keys(w).forEach(function(F){var G=w[F],q=G.level,K=I.get(q);K||(K=new Set,I.set(q,K)),K.add(G),g=Math.max(g,q)}),(0,t.ZP)(!v.length,"Tree missing follow keys: ".concat(v.slice(0,100).map(function(F){return"'".concat(F,"'")}).join(", ")));var U;return D===!0?U=$(T,I,g,B):U=d(T,D.halfCheckedKeys,I,g,B),U}},67841:function(nt,z,e){"use strict";e.d(z,{Z:function(){return t}});function t(l,b){return l[b]}},71430:function(nt,z,e){"use strict";e.d(z,{F:function(){return q},H8:function(){return G},I8:function(){return F},km:function(){return v},oH:function(){return g},w$:function(){return B},zn:function(){return I}});var t=e(76190),l=e(94480),b=e(33885),P=e(75931),$=e(11592),d=e(2738),n=e(48736),E=e(67841),D=["children"];function w(K,Z){return"".concat(K,"-").concat(Z)}function C(K){return K&&K.type&&K.type.isTreeNode}function v(K,Z){return K!=null?K:Z}function B(K){var Z=K||{},oe=Z.title,O=Z._title,_=Z.key,ee=Z.children,le=oe||"title";return{title:le,_title:O||[le],key:_||"key",children:ee||"children"}}function T(K,Z){var oe=new Map;function O(_){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(_||[]).forEach(function(le){var X=le[Z.key],h=le[Z.children];warning(X!=null,"Tree node must have a certain key: [".concat(ee).concat(X,"]"));var N=String(X);warning(!oe.has(N)||X===null||X===void 0,"Same 'key' exist in the Tree: ".concat(N)),oe.set(N,!0),O(h,"".concat(ee).concat(N," > "))})}O(K)}function I(K){function Z(oe){var O=(0,$.Z)(oe);return O.map(function(_){if(!C(_))return(0,n.ZP)(!_,"Tree/TreeNode can only accept TreeNode as children."),null;var ee=_.key,le=_.props,X=le.children,h=(0,P.Z)(le,D),N=(0,b.Z)({key:ee},h),de=Z(X);return de.length&&(N.children=de),N}).filter(function(_){return _})}return Z(K)}function g(K,Z,oe){var O=B(oe),_=O._title,ee=O.key,le=O.children,X=new Set(Z===!0?[]:Z),h=[];function N(de){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return de.map(function(x,L){for(var Y=w(ae?ae.pos:"0",L),ge=v(x[ee],Y),Re,$e=0;$e<_.length;$e+=1){var je=_[$e];if(x[je]!==void 0){Re=x[je];break}}var Ye=(0,b.Z)((0,b.Z)({},(0,d.Z)(x,[].concat((0,l.Z)(_),[ee,le]))),{},{title:Re,key:ge,parent:ae,pos:Y,children:null,data:x,isStart:[].concat((0,l.Z)(ae?ae.isStart:[]),[L===0]),isEnd:[].concat((0,l.Z)(ae?ae.isEnd:[]),[L===de.length-1])});return h.push(Ye),Z===!0||X.has(ge)?Ye.children=N(x[le]||[],Ye):Ye.children=[],Ye})}return N(K),h}function U(K,Z,oe){var O={};(0,t.Z)(oe)==="object"?O=oe:O={externalGetKey:oe},O=O||{};var _=O,ee=_.childrenPropName,le=_.externalGetKey,X=_.fieldNames,h=B(X),N=h.key,de=h.children,ae=ee||de,x;le?typeof le=="string"?x=function(ge){return ge[le]}:typeof le=="function"&&(x=function(ge){return le(ge)}):x=function(ge,Re){return v(ge[N],Re)};function L(Y,ge,Re,$e){var je=Y?Y[ae]:K,Ye=Y?w(Re.pos,ge):"0",tt=Y?[].concat((0,l.Z)($e),[Y]):[];if(Y){var ze=x(Y,Ye),Be={node:Y,index:ge,pos:Ye,key:ze,parentPos:Re.node?Re.pos:null,level:Re.level+1,nodes:tt};Z(Be)}je&&je.forEach(function(qe,dt){L(qe,dt,{node:Y,pos:Ye,level:Re?Re.level+1:-1},tt)})}L(null)}function F(K){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe=Z.initWrapper,O=Z.processEntity,_=Z.onProcessFinished,ee=Z.externalGetKey,le=Z.childrenPropName,X=Z.fieldNames,h=arguments.length>2?arguments[2]:void 0,N=ee||h,de={},ae={},x={posEntities:de,keyEntities:ae};return oe&&(x=oe(x)||x),U(K,function(L){var Y=L.node,ge=L.index,Re=L.pos,$e=L.key,je=L.parentPos,Ye=L.level,tt=L.nodes,ze={node:Y,nodes:tt,index:ge,key:$e,pos:Re,level:Ye},Be=v($e,Re);de[Re]=ze,ae[Be]=ze,ze.parent=de[je],ze.parent&&(ze.parent.children=ze.parent.children||[],ze.parent.children.push(ze)),O&&O(ze,x)},{externalGetKey:N,childrenPropName:le,fieldNames:X}),_&&_(x),x}function G(K,Z){var oe=Z.expandedKeys,O=Z.selectedKeys,_=Z.loadedKeys,ee=Z.loadingKeys,le=Z.checkedKeys,X=Z.halfCheckedKeys,h=Z.dragOverNodeKey,N=Z.dropPosition,de=Z.keyEntities,ae=(0,E.Z)(de,K),x={eventKey:K,expanded:oe.indexOf(K)!==-1,selected:O.indexOf(K)!==-1,loaded:_.indexOf(K)!==-1,loading:ee.indexOf(K)!==-1,checked:le.indexOf(K)!==-1,halfChecked:X.indexOf(K)!==-1,pos:String(ae?ae.pos:""),dragOver:h===K&&N===0,dragOverGapTop:h===K&&N===-1,dragOverGapBottom:h===K&&N===1};return x}function q(K){var Z=K.data,oe=K.expanded,O=K.selected,_=K.checked,ee=K.loaded,le=K.loading,X=K.halfChecked,h=K.dragOver,N=K.dragOverGapTop,de=K.dragOverGapBottom,ae=K.pos,x=K.active,L=K.eventKey,Y=(0,b.Z)((0,b.Z)({},Z),{},{expanded:oe,selected:O,checked:_,loaded:ee,loading:le,halfChecked:X,dragOver:h,dragOverGapTop:N,dragOverGapBottom:de,pos:ae,active:x,key:L});return"props"in Y||Object.defineProperty(Y,"props",{get:function(){return(0,n.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),K}}),Y}},8224:function(nt,z,e){"use strict";e.d(z,{Z:function(){return l}});var t=e(4676);function l(b,P,$,d){var n=t.unstable_batchedUpdates?function(D){t.unstable_batchedUpdates($,D)}:$;return b!=null&&b.addEventListener&&b.addEventListener(P,n,d),{remove:function(){b!=null&&b.removeEventListener&&b.removeEventListener(P,n,d)}}}},55468:function(nt,z,e){"use strict";e.d(z,{g1:function(){return C},os:function(){return B}});var t=/margin|padding|width|height|max|min|offset/,l={left:!0,top:!0},b={cssFloat:1,styleFloat:1,float:1};function P(T){return T.nodeType===1?T.ownerDocument.defaultView.getComputedStyle(T,null):{}}function $(T,I,g){if(I=I.toLowerCase(),g==="auto"){if(I==="height")return T.offsetHeight;if(I==="width")return T.offsetWidth}return I in l||(l[I]=t.test(I)),l[I]?parseFloat(g)||0:g}function d(T,I){var g=arguments.length,U=P(T);return I=b[I]?"cssFloat"in T.style?"cssFloat":"styleFloat":I,g===1?U:$(T,I,U[I]||T.style[I])}function n(T,I,g){var U=arguments.length;if(I=b[I]?"cssFloat"in T.style?"cssFloat":"styleFloat":I,U===3)return typeof g=="number"&&t.test(I)&&(g="".concat(g,"px")),T.style[I]=g,g;for(var F in I)I.hasOwnProperty(F)&&n(T,F,I[F]);return P(T)}function E(T){return T===document.body?document.documentElement.clientWidth:T.offsetWidth}function D(T){return T===document.body?window.innerHeight||document.documentElement.clientHeight:T.offsetHeight}function w(){var T=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),I=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:T,height:I}}function C(){var T=document.documentElement.clientWidth,I=window.innerHeight||document.documentElement.clientHeight;return{width:T,height:I}}function v(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function B(T){var I=T.getBoundingClientRect(),g=document.documentElement;return{left:I.left+(window.pageXOffset||g.scrollLeft)-(g.clientLeft||document.body.clientLeft||0),top:I.top+(window.pageYOffset||g.scrollTop)-(g.clientTop||document.body.clientTop||0)}}},24514:function(nt,z,e){"use strict";e.d(z,{G:function(){return P}});var t=e(47273),l=function(d){if((0,t.Z)()&&window.document.documentElement){var n=Array.isArray(d)?d:[d],E=window.document.documentElement;return n.some(function(D){return D in E.style})}return!1},b=function(d,n){if(!l(d))return!1;var E=document.createElement("div"),D=E.style[d];return E.style[d]=n,E.style[d]!==D};function P($,d){return!Array.isArray($)&&d!==void 0?b($,d):l($)}},51353:function(nt,z,e){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),Object.defineProperty(z,"DraggableCore",{enumerable:!0,get:function(){return E.default}}),z.default=void 0;var t=C(e(59301)),l=w(e(12708)),b=w(e(4676)),P=e(14625),$=e(77026),d=e(22013),n=e(80217),E=w(e(68555)),D=w(e(97510));function w(U){return U&&U.__esModule?U:{default:U}}function C(U,F){if(typeof WeakMap=="function")var G=new WeakMap,q=new WeakMap;return(C=function(K,Z){if(!Z&&K&&K.__esModule)return K;var oe,O,_={__proto__:null,default:K};if(K===null||typeof K!="object"&&typeof K!="function")return _;if(oe=Z?q:G){if(oe.has(K))return oe.get(K);oe.set(K,_)}for(const ee in K)ee!=="default"&&{}.hasOwnProperty.call(K,ee)&&((O=(oe=Object.defineProperty)&&Object.getOwnPropertyDescriptor(K,ee))&&(O.get||O.set)?oe(_,ee,O):_[ee]=K[ee]);return _})(U,F)}function v(){return v=Object.assign?Object.assign.bind():function(U){for(var F=1;F{if((0,D.default)("Draggable: onDragStart: %j",q),this.props.onStart(G,(0,d.createDraggableData)(this,q))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),B(this,"onDrag",(G,q)=>{if(!this.state.dragging)return!1;(0,D.default)("Draggable: onDrag: %j",q);const K=(0,d.createDraggableData)(this,q),Z={x:K.x,y:K.y,slackX:0,slackY:0};if(this.props.bounds){const{x:O,y:_}=Z;Z.x+=this.state.slackX,Z.y+=this.state.slackY;const[ee,le]=(0,d.getBoundPosition)(this,Z.x,Z.y);Z.x=ee,Z.y=le,Z.slackX=this.state.slackX+(O-Z.x),Z.slackY=this.state.slackY+(_-Z.y),K.x=Z.x,K.y=Z.y,K.deltaX=Z.x-this.state.x,K.deltaY=Z.y-this.state.y}if(this.props.onDrag(G,K)===!1)return!1;this.setState(Z)}),B(this,"onDragStop",(G,q)=>{if(!this.state.dragging||this.props.onStop(G,(0,d.createDraggableData)(this,q))===!1)return!1;(0,D.default)("Draggable: onDragStop: %j",q);const Z={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:O,y:_}=this.props.position;Z.x=O,Z.y=_}this.setState(Z)}),this.state={dragging:!1,dragged:!1,x:F.position?F.position.x:F.defaultPosition.x,y:F.position?F.position.y:F.defaultPosition.y,prevPropsPosition:Ao({},F.position),slackX:0,slackY:0,isElementSVG:!1},F.position&&!(F.onDrag||F.onStop)&&console.warn("A `position` was applied to this , without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var F,G,q;return(q=(G=(F=this.props)==null?void 0:F.nodeRef)==null?void 0:G.current)!=null?q:b.default.findDOMNode(this)}render(){const ge=this.props,{axis:F,bounds:G,children:q,defaultPosition:K,defaultClassName:Z,defaultClassNameDragging:oe,defaultClassNameDragged:O,position:_,positionOffset:ee,scale:le}=ge,X=ti(ge,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let h={},N=null;const ae=!!!_||this.state.dragging,x=_||K,L={x:(0,d.canDragX)(this)&&ae?this.state.x:x.x,y:(0,d.canDragY)(this)&&ae?this.state.y:x.y};this.state.isElementSVG?N=(0,$.createSVGTransform)(L,ee):h=(0,$.createCSSTransform)(L,ee);const Y=(0,P.clsx)(q.props.className||"",Z,{[oe]:this.state.dragging,[O]:this.state.dragged});return t.createElement(E.default,v({},X,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(q),{className:Y,style:Ao(Ao({},q.props.style),h),transform:N}))}}z.default=g,B(g,"displayName","Draggable"),B(g,"propTypes",Nl(Ao({},E.default.propTypes),{axis:l.default.oneOf(["both","x","y","none"]),bounds:l.default.oneOfType([l.default.shape({left:l.default.number,right:l.default.number,top:l.default.number,bottom:l.default.number}),l.default.string,l.default.oneOf([!1])]),defaultClassName:l.default.string,defaultClassNameDragging:l.default.string,defaultClassNameDragged:l.default.string,defaultPosition:l.default.shape({x:l.default.number,y:l.default.number}),positionOffset:l.default.shape({x:l.default.oneOfType([l.default.number,l.default.string]),y:l.default.oneOfType([l.default.number,l.default.string])}),position:l.default.shape({x:l.default.number,y:l.default.number}),className:n.dontSetMe,style:n.dontSetMe,transform:n.dontSetMe})),B(g,"defaultProps",Nl(Ao({},E.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))},68555:function(nt,z,e){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;var t=D(e(59301)),l=E(e(12708)),b=E(e(4676)),P=e(77026),$=e(22013),d=e(80217),n=E(e(97510));function E(g){return g&&g.__esModule?g:{default:g}}function D(g,U){if(typeof WeakMap=="function")var F=new WeakMap,G=new WeakMap;return(D=function(q,K){if(!K&&q&&q.__esModule)return q;var Z,oe,O={__proto__:null,default:q};if(q===null||typeof q!="object"&&typeof q!="function")return O;if(Z=K?G:F){if(Z.has(q))return Z.get(q);Z.set(q,O)}for(const _ in q)_!=="default"&&{}.hasOwnProperty.call(q,_)&&((oe=(Z=Object.defineProperty)&&Object.getOwnPropertyDescriptor(q,_))&&(oe.get||oe.set)?Z(O,_,oe):O[_]=q[_]);return O})(g,U)}function w(g,U,F){return(U=C(U))in g?Object.defineProperty(g,U,{value:F,enumerable:!0,configurable:!0,writable:!0}):g[U]=F,g}function C(g){var U=v(g,"string");return typeof U=="symbol"?U:U+""}function v(g,U){if(typeof g!="object"||!g)return g;var F=g[Symbol.toPrimitive];if(F!==void 0){var G=F.call(g,U||"default");if(typeof G!="object")return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return(U==="string"?String:Number)(g)}const B={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let T=B.mouse;class I extends t.Component{constructor(){super(...arguments),w(this,"dragging",!1),w(this,"lastX",NaN),w(this,"lastY",NaN),w(this,"touchIdentifier",null),w(this,"mounted",!1),w(this,"handleDragStart",U=>{if(this.props.onMouseDown(U),!this.props.allowAnyClick&&typeof U.button=="number"&&U.button!==0)return!1;const F=this.findDOMNode();if(!F||!F.ownerDocument||!F.ownerDocument.body)throw new Error(" not mounted on DragStart!");const{ownerDocument:G}=F;if(this.props.disabled||!(U.target instanceof G.defaultView.Node)||this.props.handle&&!(0,P.matchesSelectorAndParentsTo)(U.target,this.props.handle,F)||this.props.cancel&&(0,P.matchesSelectorAndParentsTo)(U.target,this.props.cancel,F))return;U.type==="touchstart"&&!this.props.allowMobileScroll&&U.preventDefault();const q=(0,P.getTouchIdentifier)(U);this.touchIdentifier=q;const K=(0,$.getControlPosition)(U,q,this);if(K==null)return;const{x:Z,y:oe}=K,O=(0,$.createCoreData)(this,Z,oe);(0,n.default)("DraggableCore: handleDragStart: %j",O),(0,n.default)("calling",this.props.onStart),!(this.props.onStart(U,O)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,P.addUserSelectStyles)(G),this.dragging=!0,this.lastX=Z,this.lastY=oe,(0,P.addEvent)(G,T.move,this.handleDrag),(0,P.addEvent)(G,T.stop,this.handleDragStop))}),w(this,"handleDrag",U=>{const F=(0,$.getControlPosition)(U,this.touchIdentifier,this);if(F==null)return;let{x:G,y:q}=F;if(Array.isArray(this.props.grid)){let oe=G-this.lastX,O=q-this.lastY;if([oe,O]=(0,$.snapToGrid)(this.props.grid,oe,O),!oe&&!O)return;G=this.lastX+oe,q=this.lastY+O}const K=(0,$.createCoreData)(this,G,q);if((0,n.default)("DraggableCore: handleDrag: %j",K),this.props.onDrag(U,K)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(oe){const O=document.createEvent("MouseEvents");O.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(O)}return}this.lastX=G,this.lastY=q}),w(this,"handleDragStop",U=>{if(!this.dragging)return;const F=(0,$.getControlPosition)(U,this.touchIdentifier,this);if(F==null)return;let{x:G,y:q}=F;if(Array.isArray(this.props.grid)){let O=G-this.lastX||0,_=q-this.lastY||0;[O,_]=(0,$.snapToGrid)(this.props.grid,O,_),G=this.lastX+O,q=this.lastY+_}const K=(0,$.createCoreData)(this,G,q);if(this.props.onStop(U,K)===!1||this.mounted===!1)return!1;const oe=this.findDOMNode();oe&&this.props.enableUserSelectHack&&(0,P.scheduleRemoveUserSelectStyles)(oe.ownerDocument),(0,n.default)("DraggableCore: handleDragStop: %j",K),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,oe&&((0,n.default)("DraggableCore: Removing handlers"),(0,P.removeEvent)(oe.ownerDocument,T.move,this.handleDrag),(0,P.removeEvent)(oe.ownerDocument,T.stop,this.handleDragStop))}),w(this,"onMouseDown",U=>(T=B.mouse,this.handleDragStart(U))),w(this,"onMouseUp",U=>(T=B.mouse,this.handleDragStop(U))),w(this,"onTouchStart",U=>(T=B.touch,this.handleDragStart(U))),w(this,"onTouchEnd",U=>(T=B.touch,this.handleDragStop(U)))}componentDidMount(){this.mounted=!0;const U=this.findDOMNode();U&&(0,P.addEvent)(U,B.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const U=this.findDOMNode();if(U){const{ownerDocument:F}=U;(0,P.removeEvent)(F,B.mouse.move,this.handleDrag),(0,P.removeEvent)(F,B.touch.move,this.handleDrag),(0,P.removeEvent)(F,B.mouse.stop,this.handleDragStop),(0,P.removeEvent)(F,B.touch.stop,this.handleDragStop),(0,P.removeEvent)(U,B.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,P.scheduleRemoveUserSelectStyles)(F)}}findDOMNode(){var U,F,G;return(U=this.props)!=null&&U.nodeRef?(G=(F=this.props)==null?void 0:F.nodeRef)==null?void 0:G.current:b.default.findDOMNode(this)}render(){return t.cloneElement(t.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}z.default=I,w(I,"displayName","DraggableCore"),w(I,"propTypes",{allowAnyClick:l.default.bool,allowMobileScroll:l.default.bool,children:l.default.node.isRequired,disabled:l.default.bool,enableUserSelectHack:l.default.bool,offsetParent:function(g,U){if(g[U]&&g[U].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:l.default.arrayOf(l.default.number),handle:l.default.string,cancel:l.default.string,nodeRef:l.default.object,onStart:l.default.func,onDrag:l.default.func,onStop:l.default.func,onMouseDown:l.default.func,scale:l.default.number,className:d.dontSetMe,style:d.dontSetMe,transform:d.dontSetMe}),w(I,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},96249:function(nt,z,e){"use strict";const{default:t,DraggableCore:l}=e(51353);nt.exports=t,nt.exports.default=t,nt.exports.DraggableCore=l},77026:function(nt,z,e){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.addClassName=Z,z.addEvent=n,z.addUserSelectStyles=G,z.createCSSTransform=T,z.createSVGTransform=I,z.getTouch=U,z.getTouchIdentifier=F,z.getTranslation=g,z.innerHeight=C,z.innerWidth=v,z.matchesSelector=$,z.matchesSelectorAndParentsTo=d,z.offsetXYFromParent=B,z.outerHeight=D,z.outerWidth=w,z.removeClassName=oe,z.removeEvent=E,z.scheduleRemoveUserSelectStyles=q;var t=e(80217),l=b(e(76172));function b(O,_){if(typeof WeakMap=="function")var ee=new WeakMap,le=new WeakMap;return(b=function(X,h){if(!h&&X&&X.__esModule)return X;var N,de,ae={__proto__:null,default:X};if(X===null||typeof X!="object"&&typeof X!="function")return ae;if(N=h?le:ee){if(N.has(X))return N.get(X);N.set(X,ae)}for(const x in X)x!=="default"&&{}.hasOwnProperty.call(X,x)&&((de=(N=Object.defineProperty)&&Object.getOwnPropertyDescriptor(X,x))&&(de.get||de.set)?N(ae,x,de):ae[x]=X[x]);return ae})(O,_)}let P="";function $(O,_){return P||(P=(0,t.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(ee){return(0,t.isFunction)(O[ee])})),(0,t.isFunction)(O[P])?O[P](_):!1}function d(O,_,ee){let le=O;do{if($(le,_))return!0;if(le===ee)return!1;le=le.parentNode}while(le);return!1}function n(O,_,ee,le){if(!O)return;const X=Ao({capture:!0},le);O.addEventListener?O.addEventListener(_,ee,X):O.attachEvent?O.attachEvent("on"+_,ee):O["on"+_]=ee}function E(O,_,ee,le){if(!O)return;const X=Ao({capture:!0},le);O.removeEventListener?O.removeEventListener(_,ee,X):O.detachEvent?O.detachEvent("on"+_,ee):O["on"+_]=null}function D(O){let _=O.clientHeight;const ee=O.ownerDocument.defaultView.getComputedStyle(O);return _+=(0,t.int)(ee.borderTopWidth),_+=(0,t.int)(ee.borderBottomWidth),_}function w(O){let _=O.clientWidth;const ee=O.ownerDocument.defaultView.getComputedStyle(O);return _+=(0,t.int)(ee.borderLeftWidth),_+=(0,t.int)(ee.borderRightWidth),_}function C(O){let _=O.clientHeight;const ee=O.ownerDocument.defaultView.getComputedStyle(O);return _-=(0,t.int)(ee.paddingTop),_-=(0,t.int)(ee.paddingBottom),_}function v(O){let _=O.clientWidth;const ee=O.ownerDocument.defaultView.getComputedStyle(O);return _-=(0,t.int)(ee.paddingLeft),_-=(0,t.int)(ee.paddingRight),_}function B(O,_,ee){const X=_===_.ownerDocument.body?{left:0,top:0}:_.getBoundingClientRect(),h=(O.clientX+_.scrollLeft-X.left)/ee,N=(O.clientY+_.scrollTop-X.top)/ee;return{x:h,y:N}}function T(O,_){const ee=g(O,_,"px");return{[(0,l.browserPrefixToKey)("transform",l.default)]:ee}}function I(O,_){return g(O,_,"")}function g(O,_,ee){let{x:le,y:X}=O,h=`translate(${le}${ee},${X}${ee})`;if(_){const N=`${typeof _.x=="string"?_.x:_.x+ee}`,de=`${typeof _.y=="string"?_.y:_.y+ee}`;h=`translate(${N}, ${de})`+h}return h}function U(O,_){return O.targetTouches&&(0,t.findInArray)(O.targetTouches,ee=>_===ee.identifier)||O.changedTouches&&(0,t.findInArray)(O.changedTouches,ee=>_===ee.identifier)}function F(O){if(O.targetTouches&&O.targetTouches[0])return O.targetTouches[0].identifier;if(O.changedTouches&&O.changedTouches[0])return O.changedTouches[0].identifier}function G(O){if(!O)return;let _=O.getElementById("react-draggable-style-el");_||(_=O.createElement("style"),_.type="text/css",_.id="react-draggable-style-el",_.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;} +`,_.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;} +`,O.getElementsByTagName("head")[0].appendChild(_)),O.body&&Z(O.body,"react-draggable-transparent-selection")}function q(O){window.requestAnimationFrame?window.requestAnimationFrame(()=>{K(O)}):K(O)}function K(O){if(O)try{if(O.body&&oe(O.body,"react-draggable-transparent-selection"),O.selection)O.selection.empty();else{const _=(O.defaultView||window).getSelection();_&&_.type!=="Caret"&&_.removeAllRanges()}}catch(_){}}function Z(O,_){O.classList?O.classList.add(_):O.className.match(new RegExp(`(?:^|\\s)${_}(?!\\S)`))||(O.className+=` ${_}`)}function oe(O,_){O.classList?O.classList.remove(_):O.className=O.className.replace(new RegExp(`(?:^|\\s)${_}(?!\\S)`,"g"),"")}},76172:function(nt,z){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.browserPrefixToKey=l,z.browserPrefixToStyle=b,z.default=void 0,z.getPrefix=t;const e=["Moz","Webkit","O","ms"];function t(){var E,D;let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const n=(D=(E=window.document)==null?void 0:E.documentElement)==null?void 0:D.style;if(!n||d in n)return"";for(let w=0;w: Unmounted during event!");return B}},80217:function(nt,z){"use strict";Object.defineProperty(z,"__esModule",{value:!0}),z.dontSetMe=P,z.findInArray=e,z.int=b,z.isFunction=t,z.isNum=l;function e($,d){for(let n=0,E=$.length;n1&&arguments[1]!==void 0?arguments[1]:60,P=null;return function(){for(var $=this,d=arguments.length,n=new Array(d),E=0;EDe in ke?he(ke,De,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ke[De]=Te,Fe=(ke,De)=>{for(var Te in De||(De={}))Ie.call(De,Te)&&Ge(ke,Te,De[Te]);if(Be)for(var Te of Be(De))Ce.call(De,Te)&&Ge(ke,Te,De[Te]);return ke};const Ye=ke=>React.createElement("svg",Fe({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},ke),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));Ct.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},39469:function(_e,Ct,oe){"use strict";var b=oe(59301),he=Object.defineProperty,Be=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Ge=(ke,De,Te)=>De in ke?he(ke,De,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ke[De]=Te,Fe=(ke,De)=>{for(var Te in De||(De={}))Ie.call(De,Te)&&Ge(ke,Te,De[Te]);if(Be)for(var Te of Be(De))Ce.call(De,Te)&&Ge(ke,Te,De[Te]);return ke};const Ye=ke=>React.createElement("svg",Fe({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},ke),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));Ct.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},4285:function(){"use strict";function _e(le,E,a,x){a===void 0&&(a=0),x===void 0&&(x=1/0),this._name=le,this._defaultValue=E,this._minimum=a,this._maximum=x}Object.defineProperty(_e.prototype,"name",{get:function(){return this._name},set:function(le){if(typeof le!="string"||le==="")throw new Error("Shape name must be a valid string.");this._name=le}}),Object.defineProperty(_e.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("The default value must be a real number, not: "+le);this._defaultValue=le}}),Object.defineProperty(_e.prototype,"minimum",{get:function(){return this._minimum},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("Minimum must be a real number, not: "+le);this._minimum=le}}),Object.defineProperty(_e.prototype,"maximum",{get:function(){return this._maximum},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("Maximum must be a real number, not: "+le);this._maximum=le}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(le,E){var a=go.Shape._FigureParameters[le];return a?a[E]:null},go.Shape.setFigureParameter=function(le,E,a){if(!(a instanceof _e))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValuea.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var x=go.Shape._FigureParameters[le];x||(x=[],go.Shape._FigureParameters[le]=x),x[E]=a};var Ct=[];function oe(le,E){var a=Ct.pop();return a===void 0?new go.Point(le,E):(a.x=le,a.y=E,a)}function b(){var le=Ct.pop();return le===void 0?new go.Point:le}function he(le){Ct.push(le)}function Be(le,E,a,x,y,z,ne,re,ie){ie||(ie=new go.Point);var ge=le-a,fe=y-ne,Pe=NaN,Ue=NaN;if(ge===0)if(fe===0)le===a&&(Pe=le,Ue=E);else{var Me=(z-re)/fe,lt=z-Me*y;Pe=le,Ue=Me*Pe+lt}else if(fe===0){var Le=(E-x)/ge,be=E-Le*le;Pe=y,Ue=Le*Pe+be}else{var Le=(E-x)/ge,Me=(z-re)/fe,be=E-Le*le,lt=z-Me*y;Pe=(lt-be)/(Le-Me),Ue=Le*Pe+be}return ie.x=Pe,ie.y=Ue,ie}function Ie(le,E,a,x,y,z,ne,re,ie,ge,fe,Pe,Ue,Me){var lt=1-ie,Le=ie,be=le*lt+a*Le,Xe=E*lt+x*Le,nt=a*lt+y*Le,ye=x*lt+z*Le,gt=y*lt+ne*Le,pt=z*lt+re*Le,xt=be*lt+nt*Le,ut=Xe*lt+ye*Le,Kt=nt*lt+gt*Le,rn=ye*lt+pt*Le,It=xt*lt+Kt*Le,Zt=ut*lt+rn*Le;ge.x=be,ge.y=Xe,fe.x=xt,fe.y=ut,Pe.x=It,Pe.y=Zt,Ue.x=Kt,Ue.y=rn,Me.x=gt,Me.y=pt}var Ce=new go.Spot(.156,.156),Ge=new go.Spot(.844,.844),Fe=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new _e("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,E/3),x=Math.min(x,a/3);var y=x*Fe,z=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,E-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,x,E-y,0,E,y)).add(new go.PathSegment(go.PathSegment.Line,E,a-x)).add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,a-y,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,x,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,y,a,0,a-y)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()));return y>1&&(z.spot1=new go.Spot(0,0,y,y),z.spot2=new go.Spot(1,1,-y,-y)),z}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=a/2,x.endX=E,x.endY=a/2,x}),go.Shape.defineFigureGenerator("LineV",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=E/2,x.startY=0,x.endX=E/2,x.endY=a,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LineRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.25*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)))}),go.Shape.defineFigureGenerator("LineDown",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Line,E,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.75*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,a)))}),go.Shape.defineFigureGenerator("LineUp",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,E,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(le,E,a){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*E,(1-x)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,x*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(le,E,a){var x=E/2,y=new go.Geometry().add(new go.PathFigure(E,E/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return y.spot1=Ce,y.spot2=Ge,y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Line1",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=E,x.endY=a,x}),go.Shape.defineFigureGenerator("Line2",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=E,x.startY=0,x.endX=0,x.endY=a,x}),go.Shape.defineFigureGenerator("Curve1",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,Fe*E,0,E,(1-Fe)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,0,Fe*a,(1-Fe)*E,a)))}),go.Shape.defineFigureGenerator("Curve3",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,Fe*a,Fe*E,a)))}),go.Shape.defineFigureGenerator("Curve4",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-Fe)*E,0,0,(1-Fe)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new _e("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var y=Math.abs(x)*E;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),yE&&(x=E);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y.5&&(x=.5);var y=Math.abs(x)*E;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),yE&&(x=E/2);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),yE&&(x=E/2);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())):z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),y0&&(ne.add(new go.PathSegment(go.PathSegment.Move,E/2+re,E/2)),ne.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y,y,re,re).close())),z.spot1=Ce,z.spot2=Ge,z.defaultStretch=go.GraphObject.Uniform,z}),go.Shape.defineFigureGenerator("Cloud",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.08034461*E,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*E,.05349299*a,-.09239631*E,.07836421*a,.1406031*E,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*E,.074219*a,.2450511*E,-.00697547*a,.3776197*E,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*E,.07004196*a,.4539471*E,0,.6066018*E,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*E,.08370865*a,.6914277*E,-.01904177*a,.8921095*E,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*E,.3194596*a,1.036446*E,.04105738*a,1.020377*E,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*E,.562044*a,1.04448*E,.360238*a,.992256*E,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*E,.8217117*a,1.032337*E,.5771781*a,1.018411*E,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*E,.9156953*a,1.028411*E,.9571472*a,.8556702*E,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*E,.9310455*a,.7431877*E,1.009325*a,.5624123*E,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*E,.9344623*a,.4820677*E,1.031761*a,.3030112*E,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.870098*a,.2329994*E,1.01518*a,.03213784*E,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*E,.6545475*a,-.02812061*E,.9032597*a,-.01205169*E,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*E,.4265613*a,-.01812061*E,.6089503*a,-.00606892*E,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.1944299*a,-.01606892*E,.3892545*a,-.01205169*E,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(le,E,a){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Line,x*E,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,x*a).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new _e("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new _e("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(le,E,a){var x=le?le.parameter1:NaN,y=le?le.parameter2:NaN;isNaN(x)&&(x=0),isNaN(y)&&(y=315);var z=x%360;z<0&&(z+=360);var ne=y%360,re=Math.min(E,a)/2;return new go.Geometry().add(new go.PathFigure(re,re).add(new go.PathSegment(go.PathSegment.Arc,z,ne,re,re,re,re).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(le,E,a){var x=Fe/Math.SQRT2*.5,y=Math.SQRT2/2,z=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,y*E,z*a,E,(1-x)*a,(y+x)*E,(z+x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new _e("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var y=Math.min(x,E)/2,z=E/2,ne=a/2;return new go.Geometry().add(new go.PathFigure(z-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+y,0)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne-y)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne-y).close()))}),go.Shape.setFigureParameter("ThinCross",0,new _e("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=Math.min(x,E)/2,z=E/2,ne=a/2;return new go.Geometry().add(new go.PathFigure(z-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+y,0)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne-y)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne-y).close()))}),go.Shape.setFigureParameter("ThickX",0,new _e("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(le,E,a){var x=le?le.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),E===0||a===0){var y=new go.Geometry(go.Geometry.Rectangle);return y.startX=0,y.startY=0,y.endX=E,y.endY=a,y}else{var z=E/2,ne=a/2,re=Math.atan2(a,E),ie=x-Math.min(Math.cos(re)*x/2,z),ge=x-Math.min(Math.sin(re)*x/2,ne),y=new go.Geometry,fe=new go.PathFigure(ie,0,!0);return y.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,z,.2*a)),fe.add(new go.PathSegment(go.PathSegment.Line,E-ie,0)),fe.add(new go.PathSegment(go.PathSegment.Line,E,ge)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,E,a-ge)),fe.add(new go.PathSegment(go.PathSegment.Line,E-ie,a)),fe.add(new go.PathSegment(go.PathSegment.Line,z,.8*a)),fe.add(new go.PathSegment(go.PathSegment.Line,ie,a)),fe.add(new go.PathSegment(go.PathSegment.Line,0,a-ge)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ge).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new _e("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=new go.Geometry,z=new go.PathFigure(.1*E,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),y}),go.Shape.setFigureParameter("SquareIBeam",0,new _e("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*a).close()),y}),go.Shape.setFigureParameter("RoundedIBeam",0,new _e("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.5);var y=new go.Geometry,z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,a,Math.abs(1-x)*E,.25*a,Math.abs(1-x)*E,.75*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*E,.75*a,x*E,.25*a).close()),y}),go.Shape.defineFigureGenerator("HalfEllipse",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,Fe*E,0,E,(.5-Fe/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,(.5+Fe/2)*a,Fe*E,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,0,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*E,.75*a,.5*E,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*E,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,0,0,.45*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.55*E,0,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.5*a,.9*E,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*E,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.6*E,.2*a,E,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.7*a,E,.8*a,.6*E,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,.5*E,.75*a,.55*E,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.7*a,.45*E,.95*a,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*E,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*E,.01*a,0,.25*a,.4*E,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.4*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.15*E,a,.5*E,.75*a,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.6*a,.55*E,.95*a,.5*E,.75*a));var z=.2,ne=.3,re=0,ie=z*Fe;return y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5+z+re)*a,(.5-z+ne)*E,(.5+ie+re)*a,(.5-ie+ne)*E,(.5+z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+ne)*E,(.5+re)*a,(.5+ie+ne)*E,(.5+z+re)*a,(.5+z+ne)*E,(.5+ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5-z+re)*a,(1-.5+z+ne)*E,(.5-ie+re)*a,(.5+ie+ne)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.65*E,.36771243*a,(.5-ie+ne)*E,(.5-z+re)*a,(.5-z+ne+.05)*E,(.5-ie+re-.02)*a)),z=.2,ne=0,re=-.3,ie=z*Fe,y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+ne)*E,(.5+re)*a,(.5+ie+ne)*E,(.5+z+re)*a,(.5+z+ne)*E,(.5+ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5-z+re)*a,(1-.5+z+ne)*E,(.5-ie+re)*a,(.5+ie+ne)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+ne)*E,(.5+re)*a,(.5-ie+ne)*E,(.5-z+re)*a,(.5-z+ne)*E,(.5-ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ie+ne)*E,(.5+z+re)*a,(.5-z+ne)*E,(.5+ie+re)*a,(.5-ie+ne)*E,(.5+z+re)*a)),z=.2,ne=-.3,re=0,ie=z*Fe,y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5-z+re)*a,(1-.5+z+ne-.05)*E,(.5-ie+re-.02)*a,(.5+ie+ne)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+ne)*E,(.5+re)*a,(.5-ie+ne)*E,(.5-z+re)*a,(.5-z+ne)*E,(.5-ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5+z+re)*a,(.5-z+ne)*E,(.5+ie+re)*a,(.5-ie+ne)*E,(.5+z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.6*a,(.5+ie+ne)*E,(.5+z+re)*a,(.5+z+ne)*E,(.5+ie+re)*a).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.5,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*.5,E*.5,E*.5,E*.5)),y.add(new go.PathSegment(go.PathSegment.Arc,90,-180,E*.5,E*.75,E*.25,E*.25)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,E*.5,E*.25,E*.25,E*.25));var z=.1,ne=.5,re=.25;return y.add(new go.PathSegment(go.PathSegment.Move,(ne+z)*E,re*a)),y.add(new go.PathSegment(go.PathSegment.Arc,0,-360,E*ne,a*re,z*E,z*E).close()),y=new go.PathFigure(E*.5,0,!1),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*.5,E*.5,E*.5,E*.5)),re=.75,y=new go.PathFigure((ne+z)*E,re*a,!0),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,0,360,E*ne,a*re,z*E,z*E).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(le,E,a){var x=.8535533905932737,y=.5*E,z=.5*a;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,y,z,y,z)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,y,z)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,x*a)).add(new go.PathSegment(go.PathSegment.Move,y,z)).add(new go.PathSegment(go.PathSegment.Line,x*E,x*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=.5,re=.5,ie=new go.PathFigure(ne*E,(re-z)*a);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),z=.4,y=Fe*.4;var ge=b(),fe=b(),Pe=b(),Ue=b();Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.42,ge,fe,Pe,Ue,Ue);var Me=b(),lt=b(),Le=b();Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.58,Ue,Ue,Le,Me,lt);var be=b(),Xe=b(),nt=b();Ie(ne,re+z,ne-y,re+z,ne-z,re+y,ne-z,re,.42,be,Xe,nt,Ue,Ue);var ye=b(),gt=b(),pt=b();return Ie(ne,re+z,ne-y,re+z,ne-z,re+y,ne-z,re,.58,Ue,Ue,pt,ye,gt),ie.add(new go.PathSegment(go.PathSegment.Move,pt.x*E,pt.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,ye.x*E,ye.y*a,gt.x*E,gt.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*E,Pe.y*a,ge.x*E,ge.y*a,fe.x*E,fe.y*a)),ie.add(new go.PathSegment(go.PathSegment.Line,pt.x*E,pt.y*a).close()),ie.add(new go.PathSegment(go.PathSegment.Move,nt.x*E,nt.y*a)),ie.add(new go.PathSegment(go.PathSegment.Line,Le.x*E,Le.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,Me.x*E,Me.y*a,lt.x*E,lt.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,nt.x*E,nt.y*a,be.x*E,be.y*a,Xe.x*E,Xe.y*a).close()),he(ge),he(fe),he(Pe),he(Ue),he(Me),he(lt),he(Le),he(be),he(Xe),he(nt),he(ye),he(gt),he(pt),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*E,0)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*E,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.5*a,E,.25*a,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new _e("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>E&&(x=E);var y=(E-x)/2,z=y+x;return new go.Geometry().add(new go.PathFigure(z,.5*a).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*E,0)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(le,E,a){var x=new go.Geometry,y=Fe*.4,z=.4,ne=.5,re=.5,ie=b(),ge=b(),fe=b(),Pe=b(),Ue=new go.PathFigure((ne-z)*E,re*a,!1);x.add(Ue),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.44,fe,Pe,ge,ie,ie),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*E,ge.y*a,fe.x*E,fe.y*a,Pe.x*E,Pe.y*a));var Me=oe(ge.x,ge.y);Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.56,ie,ie,ge,fe,Pe);var lt=oe(ge.x,ge.y);Ue.add(new go.PathSegment(go.PathSegment.Line,(Me.x*.1+.95*.9)*E,Me.y*.1*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,.85*E,Me.y*.1*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,.85*E,0)),Ue.add(new go.PathSegment(go.PathSegment.Line,E,0)),Ue.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,(lt.x*.1+.9)*E,.15*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,(lt.x*.1+.9)*E,(lt.y*.1+.05*.9)*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,lt.x*E,lt.y*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,fe.x*E,fe.y*a,Pe.x*E,Pe.y*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),z=.35,y=Fe*.35;var Le=new go.PathFigure(ne*E,(re-z)*a,!1);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a));var be=new go.PathFigure((ne-z)*E,re*a,!1);return x.add(be),he(ie),he(ge),he(fe),he(Pe),he(Me),he(lt),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(le,E,a){var x=new go.Geometry,y=.375,z=0,ne=-.125,re=y*Fe,ie=new go.PathFigure((.525+z)*E,(.5+y+ne)*a,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+ne)*a,(.5+re+z)*E,(.5+y+ne)*a,(.5+y+z)*E,(.5+re+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+ne)*a,(1-.5+y+z)*E,(.5-re+ne)*a,(.5+re+z)*E,(.5-y+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+ne)*a,(.5-re+z)*E,(.5-y+ne)*a,(.5-y+z)*E,(.5-re+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.475+z)*E,(.5+y+ne)*a,(.5-y+z)*E,(.5+re+ne)*a,(.5-re+z)*E,(.5+y+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*E,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*E,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*E,a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*E,a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*E,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a).close()),y=.325,z=0,ne=-.125,re=y*Fe;var ie=new go.PathFigure((1-.5+y+z)*E,(.5+ne)*a,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5+y+ne)*a,(.5+y+z)*E,(.5+re+ne)*a,(.5+re+z)*E,(.5+y+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+ne)*a,(.5-re+z)*E,(.5+y+ne)*a,(.5-y+z)*E,(.5+re+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+ne)*a,(.5-y+z)*E,(.5-re+ne)*a,(.5-re+z)*E,(.5-y+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+ne)*a,(.5+re+z)*E,(.5-y+ne)*a,(1-.5+y+z)*E,(.5-re+ne)*a));var ie=new go.PathFigure((.525+z)*E,(.5+y+ne)*a,!1);return x.add(ie),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(le,E,a){var x=le?le.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(le,E,a){var x=le?le.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,x*E,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(le,E,a){var x=new go.Geometry().add(new go.PathFigure(.5*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*E,.5*a,.5*E,.5*a)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Move,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(le,E,a){var x=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(le,E,a){var x=.5;return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new _e("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new _e("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=le?le.parameter2:NaN;isNaN(y)&&(y=.3);var z=(1-x)*E,ne=(.5-y/2)*a,re=(.5+y/2)*a,ie=new go.Geometry,ge=new go.PathFigure(0,ne,!0);ie.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,z,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,z,0)),ge.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Line,z,a)),ge.add(new go.PathSegment(go.PathSegment.Line,z,re)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),ie.spot1=new go.Spot(0,ne/a);var fe=Be(0,re/a,1,re/a,z/E,1,1,.5,b());return ie.spot2=new go.Spot(fe.x,fe.y),he(fe),ie}),go.Shape.setFigureParameter("Arrow2",0,new _e("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new _e("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=30),x>E&&(x=E);var y=le?le.parameter2:NaN;isNaN(y)&&(y=30),y=Math.min(y,a/2);var z=E-x,ne=(a-y)/2,re=ne+y,ie=new go.Geometry,ge=new go.PathFigure(0,ne,!0);ie.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,z,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,z,0)),ge.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Line,z,a)),ge.add(new go.PathSegment(go.PathSegment.Line,z,re)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),ie.spot1=new go.Spot(0,ne/a);var fe=Be(0,re/a,1,re/a,z/E,1,1,.5,b());return ie.spot2=new go.Spot(fe.x,fe.y),he(fe),ie}),go.Shape.defineFigureGenerator("Chevron",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.214*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.786*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new _e("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*a,z=(.5+x/2)*a,ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close());var ie=Be(0,.5,.3,0,0,y/a,.1,y/a,b());return ne.spot1=new go.Spot(ie.x,ie.y),ie=Be(.7,1,1,.5,0,z/a,1,z/a,ie),ne.spot2=new go.Spot(ie.x,ie.y),he(ie),ne}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new _e("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new _e("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=40);var y=le?le.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,ne=z+x,re=(a-y)/2,ie=re+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,ne=z+x,re=0,ie=a):(z=0,ne=a,re=0,ie=a));var ge=new go.Geometry,fe=new go.PathFigure(E,.5*a,!0);ge.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,.3*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,.3*E,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),fe.add(new go.PathSegment(go.PathSegment.Line,.3*E,re)),fe.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,re).close());var Pe=Be(0,.5,.3,re/a,0,z/a,1,z/a,b());return ge.spot1=new go.Spot(Pe.x,Pe.y),Pe=Be(.7,ie/a,1,.5,0,ne/a,1,ne/a,Pe),ge.spot2=new go.Spot(Pe.x,Pe.y),he(Pe),ge}),go.Shape.setFigureParameter("IBeamArrow",0,new _e("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*a,z=(.5+x/2)*a,ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ne.spot1=new go.Spot(0,y/a);var ie=Be(.7,1,1,.5,0,z/a,1,z/a,b());return ne.spot2=new go.Spot(ie.x,ie.y),he(ie),ne}),go.Shape.setFigureParameter("IBeamArrow2",0,new _e("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new _e("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=40);var y=le?le.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,ne=z+x,re=(a-y)/2,ie=re+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,ne=z+x,re=0,ie=a):(z=0,ne=a,re=0,ie=a));var ge=new go.Geometry,fe=new go.PathFigure(E,.5*a,!0);ge.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,0,re)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,re)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,re).close()),ge.spot1=new go.Spot(0,z/a);var Pe=Be(.7,ie/a,1,.5,0,ne/a,1,ne/a,b());return ge.spot2=new go.Spot(Pe.x,Pe.y),he(Pe),ge}),go.Shape.setFigureParameter("Pointer",0,new _e("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.1);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),y.spot1=new go.Spot(x,.35);var ne=Be(.2,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(ne.x,ne.y),he(ne),y}),go.Shape.setFigureParameter("RoundedPointer",0,new _e("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*E,.75*a,x*E,.25*a).close()),y.spot1=new go.Spot(x,.35);var ne=Be(0,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(ne.x,ne.y),he(ne),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new _e("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.4);var y=(.5-x/2)*a,z=(.5+x/2)*a,ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ne.spot1=new go.Spot(.2,.3);var ie=Be(.7,1,1,.5,0,z/a,1,z/a,b());return ne.spot2=new go.Spot(ie.x,ie.y),he(ie),ne}),go.Shape.setFigureParameter("SplitEndArrow2",0,new _e("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=50);var y=(a-x)/2,z=y+x;x>a&&(y=0,z=a);var ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ne.spot1=new go.Spot(.2,y/a);var ie=Be(.7,1,1,.5,0,z/a,1,z/a,b());return ne.spot2=new go.Spot(ie.x,ie.y),he(ie),ne}),go.Shape.setFigureParameter("SquareArrow",0,new _e("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.7);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,x*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,0).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(x,1),y}),go.Shape.defineFigureGenerator("Cone1",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=Fe*.1,ne=new go.PathFigure(0,.9*a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.9*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,a,.85/.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var z=new go.PathFigure(0,.9*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,.8*a,.85/.9*E,.8*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.3*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0).close());var z=new go.PathFigure(0,.3*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,z=Fe*.5,ne=new go.PathFigure(0,x,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,Fe*x,(.5-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,1*E,x,(.5+z)*E,0,1*E,Fe*x)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,1*a,1*E,a-Fe*x,(.5+z)*E,1*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-z)*E,1*a,0,a-Fe*x)),ne.add(new go.PathSegment(go.PathSegment.Line,0,x));var re=new go.PathFigure(E,x,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,2*x,1*E,2*x-Fe*x,(.5+z)*E,2*x)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-z)*E,2*x,0,2*x-Fe*x)),y.spot1=new go.Spot(0,0,0,2*x),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,z=Fe*.5,ne=new go.PathFigure(0,a-x,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,x)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,Fe*x,(.5-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,x,(.5+z)*E,0,E,Fe*x)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,a-Fe*x,(.5+z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-z)*E,a,0,a-Fe*x));var re=new go.PathFigure(0,a-x,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a-2*x,0,a-x-Fe*x,(.5-z)*E,a-2*x)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,a-x,(.5+z)*E,a-2*x,E,a-x-Fe*x)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,0,-2*x),y}),go.Shape.defineFigureGenerator("Cylinder3",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,z=Fe*.5,ne=new go.PathFigure(x,0,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E-x,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-Fe*x,0,E,(.5-z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,(.5+z)*a,E-Fe*x,a)),ne.add(new go.PathSegment(go.PathSegment.Line,x,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,Fe*x,a,0,(.5+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*a,Fe*x,0));var re=new go.PathFigure(x,0,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*a,x+Fe*x,0,2*x,(.5-z)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,x,a,2*x,(.5+z)*a,x+Fe*x,a)),y.spot1=new go.Spot(0,0,2*x,0),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder4",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,z=Fe*.5,ne=new go.PathFigure(E-x,0,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-Fe*x,0,E,(.5-z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,(.5+z)*a,E-Fe*x,a)),ne.add(new go.PathSegment(go.PathSegment.Line,x,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,Fe*x,a,0,(.5+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*a,Fe*x,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E-x,0));var re=new go.PathFigure(E-x,0,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,E-2*x,.5*a,E-x-Fe*x,0,E-2*x,(.5-z)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E-2*x,(.5+z)*a,E-x-Fe*x,a)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,-2*x,0),y}),go.Shape.defineFigureGenerator("Prism1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,.25*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.25*E,.25*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.25*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var z=new go.PathFigure(.5*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(le,E,a){var x=new go.Geometry,y=.2,z=.1,ne=Fe*y,re=Fe*z,ie=.5,ge=.1,fe=new go.PathFigure(ie*E,(ge+z)*a,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-y)*E,ge*a,(ie-ne)*E,(ge+z)*a,(ie-y)*E,(ge+re)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-z)*a,(ie-y)*E,(ge-re)*a,(ie-ne)*E,(ge-z)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+y)*E,ge*a,(ie+ne)*E,(ge-z)*a,(ie+y)*E,(ge-re)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge+z)*a,(ie+y)*E,(ge+re)*a,(ie+ne)*E,(ge+z)*a));var Pe=.05,Ue=Fe*Pe;ie=.05,ge=.25;var Me=new go.PathFigure(.5*E,.2*a,!0);return x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,.95*E,.2*a)),ie=.95,ge=.25,Me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+Pe)*E,ge*a,(ie+Ue)*E,(ge-Pe)*a,(ie+Pe)*E,(ge-Ue)*a)),Me.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),Me.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),Me.add(new go.PathSegment(go.PathSegment.Line,.85*E,.35*a)),Pe=.025,Ue=Fe*Pe,ie=.825,ge=.35,Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-Pe)*a,(ie+Pe)*E,(ge-Ue)*a,(ie+Ue)*E,(ge-Pe)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-Pe)*E,ge*a,(ie-Ue)*E,(ge-Pe)*a,(ie-Pe)*E,(ge-Ue)*a)),Me.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),Me.add(new go.PathSegment(go.PathSegment.Line,.55*E,a)),Me.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a)),Pe=.05,Ue=Fe*Pe,ie=.5,ge=.7,Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-Pe)*a,(ie+Pe)*E,(ge-Ue)*a,(ie+Ue)*E,(ge-Pe)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-Pe)*E,ge*a,(ie-Ue)*E,(ge-Pe)*a,(ie-Pe)*E,(ge-Ue)*a)),Me.add(new go.PathSegment(go.PathSegment.Line,.45*E,a)),Me.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),Me.add(new go.PathSegment(go.PathSegment.Line,.2*E,.35*a)),Pe=.025,Ue=Fe*Pe,ie=.175,ge=.35,Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-Pe)*a,(ie+Pe)*E,(ge-Ue)*a,(ie+Ue)*E,(ge-Pe)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-Pe)*E,ge*a,(ie-Ue)*E,(ge-Pe)*a,(ie-Pe)*E,(ge-Ue)*a)),Me.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),Me.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),Me.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),Pe=.05,Ue=Fe*Pe,ie=.05,ge=.25,Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-Pe)*a,(ie-Pe)*E,(ge-Ue)*a,(ie-Ue)*E,(ge-Pe)*a)),Me.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new _e("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,z=new go.PathFigure(E,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,0).close()),y.spot1=new go.Spot(0,x),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Collate",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a));var z=new go.PathFigure(.5*E,.5*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(0,y*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),ne.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,(1-y)*a)),x}),go.Shape.defineFigureGenerator("Database",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=Fe*.1,ne=new go.PathFigure(E,.1*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+y)*E,0,E,(.1-z)*a));var re=new go.PathFigure(E,.1*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+y)*E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*E,.2*a,0,(.1+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+y)*E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*E,.3*a,0,(.2+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.4*a,E,(.3+z)*a,(.5+y)*E,.4*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-y)*E,.4*a,0,(.3+z)*a)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.9*a,.25*E,.1*a).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=Fe*.1,ne=new go.PathFigure(E,.1*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+y)*E,0,E,(.1-z)*a));var re=new go.PathFigure(E,.1*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+y)*E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*E,.2*a,0,(.1+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+y)*E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*E,.3*a,0,(.2+z)*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)?y=.2:y<.15&&(y=.15);var z=Fe*.2,ne=new go.PathFigure(0,.2*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,0,(.2-z)*a,(.2-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.2*a,(.8+z)*E,0,E,(.2-z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,a,E,(.8+z)*a,(.8+z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-z)*E,a,0,(.8+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var re=new go.PathFigure(0,y*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;(isNaN(y)||y<.1)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(0,y*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),x}),go.Shape.defineFigureGenerator("Document",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;(isNaN(y)||y<.2)&&(y=.2);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(y*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y*a)),ne.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),ne.add(new go.PathSegment(go.PathSegment.Move,(1-y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,(1-y)*a)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(.1*E,.4*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.9*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.6*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Move,.4*E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.9*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.75*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a));var z=new go.PathFigure(E,.5*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a));var ne=new go.PathFigure(E,.5*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.1);var ne=new go.PathFigure(0,0,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var re=new go.PathFigure(y*E,0,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),re.add(new go.PathSegment(go.PathSegment.Move,0,z*a)),re.add(new go.PathSegment(go.PathSegment.Line,E,z*a)),x}),go.Shape.defineFigureGenerator("Junction",function(le,E,a){var x=new go.Geometry,y=1/Math.SQRT2,z=(1-1/Math.SQRT2)/2,ne=Fe*.5,re=.5,ie=new go.PathFigure(E,re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,re*E,a,E,(re+ne)*a,(re+ne)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,re*a,(re-ne)*E,a,0,(re+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,re*E,0,0,(re-ne)*a,(re-ne)*E,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,re*a,(re+ne)*E,0,E,(re-ne)*a));var ge=new go.PathFigure((z+y)*E,(z+y)*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,z*E,z*a)),ge.add(new go.PathSegment(go.PathSegment.Move,z*E,(z+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Line,(z+y)*E,z*a)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close());var z=new go.PathFigure(.1*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.75*a)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=new go.PathFigure(.5*E,a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+.1)*E,.9*a,E,(z+y)*a,(z+y)*E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.7);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.25);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,y*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.44*a,.96*E,.47*a,.93*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.54*a,.86*E,.57*a,.83*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*E,.4*a,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,0).close());var z=new go.PathFigure(.1*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.44*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,.1*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close());var z=new go.PathFigure(.2*E,.1*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Move,.1*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=1-y,ne=new go.PathFigure(0,0,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close());var re=new go.PathFigure(.5*y*E,y*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,(1-.5*y)*E,y*a)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=new go.PathFigure(E,z*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+y)*a,(z+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a));var re=new go.PathFigure(E,.5*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),re.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.5*E,.6*a,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.3);var ne=new go.PathFigure(0,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.3);var ne=new go.PathFigure(0,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure((1-y)*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Move,y*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),x}),go.Shape.defineFigureGenerator("Process",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(y*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(0,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.25);var z=new go.PathFigure(y*E,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a));var ne=new go.PathFigure(y*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),ne.add(new go.PathSegment(go.PathSegment.Move,(1-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,a)),x.spot1=new go.Spot(y,0),x.spot2=new go.Spot(1-y,1),x}),go.Shape.defineFigureGenerator("Terminator",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(.5+y)*E,0,E,(.5-y)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.5+y)*a,(.5+y)*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=new go.PathFigure(E,z*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+y)*a,(z+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a));var re=new go.PathFigure(E,z*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,z*a));var ie=new go.PathFigure(.8*E,.75*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.8*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*E,.75*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*E,.75*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*E,.75*a)),x}),go.Shape.defineFigureGenerator("Ground",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Move,.3*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),x}),go.Shape.defineFigureGenerator("Inverter",function(le,E,a){var x=new go.Geometry,y=Fe*.1,z=.1,ne=.9,re=.5,ie=new go.PathFigure(.8*E,.5*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,a)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a));var ge=new go.PathFigure((ne+z)*E,re*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re-z)*a,(ne+z)*E,(re-y)*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=Fe*.4,ne=Fe*.1,re=.1,ie=.9,ge=.5,fe=new go.PathFigure(.8*E,.5*a,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,.8*E,(.5+z)*a,(.4+y)*E,a)),fe.add(new go.PathSegment(go.PathSegment.Line,0,a)),fe.add(new go.PathSegment(go.PathSegment.Line,0,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(.4+y)*E,0,.8*E,(.5-z)*a));var Pe=new go.PathFigure((ie+re)*E,ge*a,!0);return x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge+re)*a,(ie+re)*E,(ge+ne)*a,(ie+ne)*E,(ge+re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E,ge*a,(ie-ne)*E,(ge+re)*a,(ie-re)*E,(ge+ne)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-re)*a,(ie-re)*E,(ge-ne)*a,(ie-ne)*E,(ge-re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E,ge*a,(ie+ne)*E,(ge-re)*a,(ie+re)*E,(ge-ne)*a)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*y,ne=0,re=.5,ie=new go.PathFigure(.8*E,.5*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(ne+z)*E,(re-y)*a,.7*E,(re-z)*a)),y=.1,z=Fe*.1,ne=.9,re=.5;var ge=new go.PathFigure((ne-y)*E,re*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*y,ne=0,re=.5,ie=new go.PathFigure(0,0,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(ne+z+z)*E,(re-y)*a,.8*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*E,(re+z)*a,(ne+z+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*y,ne=.2,re=.5,ie=new go.PathFigure(.1*E,0,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ge=new go.PathFigure(.8*E,.5*a,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.7*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(ne+z)*E,(re-y)*a,.7*E,(re-z)*a)),y=.1,z=Fe*.1,ne=.9,re=.5;var fe=new go.PathFigure((ne-y)*E,re*a,!0);return x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*y,ne=.2,re=.5,ie=new go.PathFigure(.1*E,0,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ge=new go.PathFigure(.2*E,0,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(ne+z)*E,(re-y)*a,.9*E,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.9*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("Resistor",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),x}),go.Shape.defineFigureGenerator("Inductor",function(le,E,a){var x=new go.Geometry,y=Fe*.1,z=.1,ne=.1,re=.5,ie=new go.PathFigure((ne-y*.5)*E,a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.3,ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,a,(ne+z)*E,0,(ne+y)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.5,ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,a,(ne+z)*E,0,(ne+y)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.7,ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,a,(ne+z)*E,0,(ne+y)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.9,ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y*.5)*E,a,(ne+z)*E,0,(ne+y)*E,a)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=.5,re=.5,ie=new go.PathFigure((ne-z)*E,re*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re-z)*a,(ne+z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Move,(ne-z+.1)*E,re*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z-.1)*E,re*a,ne*E,(re-z)*a,ne*E,(re+z)*a)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("Diode",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(le,E,a){var x=new go.Geometry,y=E,z=a;E=E*.38,a=a*.6;var ne=Fe*.8,re=.8,ie=0,ge=.5,fe=(y-E)/2,Pe=(z-a)/2,Ue=new go.PathFigure(ie*E+fe,(ge+re)*a+Pe,!0);x.add(Ue),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E+fe,ge*a+Pe,(ie-ne)*E+fe,(ge+re)*a+Pe,(ie-re)*E+fe,(ge+ne)*a+Pe)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie-re)*E+fe,(ge-ne)*a+Pe,(ie-ne)*E+fe,(ge-re)*a+Pe)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re+ne*.5)*E+fe,ge*a+Pe,ie*E+fe,(ge-re)*a+Pe,(ie-re+ne*.5)*E+fe,(ge-ne)*a+Pe)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie-re+ne*.5)*E+fe,(ge+ne)*a+Pe,ie*E+fe,(ge+re)*a+Pe).close()),ne=Fe*.4,re=.4,ie=.2,ge=.5;var Me=new go.PathFigure(ie*E+fe,(ge+re)*a+Pe,!0);x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E+fe,ge*a+Pe,(ie-ne)*E+fe,(ge+re)*a+Pe,(ie-re)*E+fe,(ge+ne)*a+Pe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie-re)*E+fe,(ge-ne)*a+Pe,(ie-ne)*E+fe,(ge-re)*a+Pe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re+ne*.5)*E+fe,ge*a+Pe,ie*E+fe,(ge-re)*a+Pe,(ie-re+ne*.5)*E+fe,(ge-ne)*a+Pe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie-re+ne*.5)*E+fe,(ge+ne)*a+Pe,ie*E+fe,(ge+re)*a+Pe).close()),ne=Fe*.2,re=.2,ie=.5,ge=.5;var lt=new go.PathFigure((ie-re)*E+fe,ge*a+Pe,!0);x.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie-re)*E+fe,(ge-ne)*a+Pe,(ie-ne)*E+fe,(ge-re)*a+Pe)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E+fe,ge*a+Pe,(ie+ne)*E+fe,(ge-re)*a+Pe,(ie+re)*E+fe,(ge-ne)*a+Pe)),lt.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie+re)*E+fe,(ge+ne)*a+Pe,(ie+ne)*E+fe,(ge+re)*a+Pe)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E+fe,ge*a+Pe,(ie-ne)*E+fe,(ge+re)*a+Pe,(ie-re)*E+fe,(ge+ne)*a+Pe)),ne=Fe*.4,re=.4,ie=.8,ge=.5;var Le=new go.PathFigure(ie*E+fe,(ge-re)*a+Pe,!0);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E+fe,ge*a+Pe,(ie+ne)*E+fe,(ge-re)*a+Pe,(ie+re)*E+fe,(ge-ne)*a+Pe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie+re)*E+fe,(ge+ne)*a+Pe,(ie+ne)*E+fe,(ge+re)*a+Pe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re-ne*.5)*E+fe,ge*a+Pe,ie*E+fe,(ge+re)*a+Pe,(ie+re-ne*.5)*E+fe,(ge+ne)*a+Pe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie+re-ne*.5)*E+fe,(ge-ne)*a+Pe,ie*E+fe,(ge-re)*a+Pe).close()),ne=Fe*.8,re=.8,ie=1,ge=.5;var be=new go.PathFigure(ie*E+fe,(ge-re)*a+Pe,!0);return x.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E+fe,ge*a+Pe,(ie+ne)*E+fe,(ge-re)*a+Pe,(ie+re)*E+fe,(ge-ne)*a+Pe)),be.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie+re)*E+fe,(ge+ne)*a+Pe,(ie+ne)*E+fe,(ge+re)*a+Pe)),be.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re-ne*.5)*E+fe,ge*a+Pe,ie*E+fe,(ge+re)*a+Pe,(ie+re-ne*.5)*E+fe,(ge+ne)*a+Pe)),be.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie+re-ne*.5)*E+fe,(ge-ne)*a+Pe,ie*E+fe,(ge-re)*a+Pe).close()),x}),go.Shape.defineFigureGenerator("Email",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.54*a)),x}),go.Shape.defineFigureGenerator("Ethernet",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.35*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,0).close());var z=new go.PathFigure(.1*E,a,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var ne=new go.PathFigure(.6*E,a,!0,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*E,.6*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*E,a).close());var re=new go.PathFigure(0,.5*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),re.add(new go.PathSegment(go.PathSegment.Move,.75*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.75*E,.6*a)),re.add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.25*E,.6*a)),x}),go.Shape.defineFigureGenerator("Power",function(le,E,a){var x=new go.Geometry,y=Fe*.4,z=.4,ne=.5,re=.5,ie=b(),ge=b(),fe=b(),Pe=b();Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.5,ie,ie,ge,fe,Pe);var Ue=oe(ge.x,ge.y),Me=new go.PathFigure(ge.x*E,ge.y*a,!0);x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,fe.x*E,fe.y*a,Pe.x*E,Pe.y*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),Ie(ne-z,re,ne-z,re-y,ne-y,re-z,ne,re-z,.5,fe,Pe,ge,ie,ie),Me.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*E,ge.y*a,fe.x*E,fe.y*a,Pe.x*E,Pe.y*a)),y=Fe*.3,z=.3,Ie(ne-z,re,ne-z,re-y,ne-y,re-z,ne,re-z,.5,fe,Pe,ge,ie,ie),Me.add(new go.PathSegment(go.PathSegment.Line,ge.x*E,ge.y*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,Pe.x*E,Pe.y*a,fe.x*E,fe.y*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.5,ie,ie,ge,fe,Pe),Me.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*E,ge.y*a,Pe.x*E,Pe.y*a,fe.x*E,fe.y*a).close());var Me=new go.PathFigure(.45*E,0,!0);return x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)),Me.add(new go.PathSegment(go.PathSegment.Line,.55*E,.5*a)),Me.add(new go.PathSegment(go.PathSegment.Line,.55*E,0).close()),he(ie),he(ge),he(fe),he(Pe),he(Ue),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a/2,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,180,360,E/2,a/2,E/2,a/2));function z(ne,re,ie){ne.add(new go.PathSegment(go.PathSegment.Move,(.3+re)*E,(.8+ie)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(.5+re)*E,(.5+ie)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(.1+re)*E,(.5+ie)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(.3+re)*E,(.8+ie)*a).close())}return z(y,0,0),z(y,.4,0),z(y,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.2*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.37*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.11*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*E,.04*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.49*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.37*a)),y.add(new go.PathSegment(go.PathSegment.Line,.63*E,.86*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*E,.91*a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*E,.78*a)),y.add(new go.PathSegment(go.PathSegment.Line,.44*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.56*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.29*E,0,-.25*E,.63*a,.45*E,.44*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.51*E,.42*a,.48*E,.17*a,.54*E,.35*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.59*E,.18*a,.59*E,.29*a,.58*E,.28*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,.6*a,.8*E,.34*a,.88*E,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.88*E,.31*a,.87*E,.48*a,.88*E,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,1.17*E,.76*a,.82*E,.8*a).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(le,E,a){var x=new go.Geometry,y=.5,z=0,ne=0,re=y*Fe,ie=.4*Math.SQRT2/2+.5,ge=.5-.5*Math.SQRT2/2,fe=1,Pe=.5,Ue=.5,Me=0,lt=new go.PathFigure(ie*E,(1-ge)*a,!1);return x.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,Pe*a,fe*E,.7*a,fe*E,Pe*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+z)*E,(Me+z)*a,(.5+y+z)*E,(.5-re+z)*a,(.5+re+z)*E,(.5-y+z)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+ne)*a,(.5-re+z)*E,(.5-y+ne)*a,(.5-y+z)*E,(.5-re+ne)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+z)*E,.9*a,(.5-y+z)*E,(.5+re+ne)*a,(.5-re+z)*E,.9*a)),lt.add(new go.PathSegment(go.PathSegment.Move,(.25+z)*E,.8*a)),lt.add(new go.PathSegment(go.PathSegment.Line,(.35+z)*E,.9*a)),lt.add(new go.PathSegment(go.PathSegment.Line,(.2+z)*E,.95*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var ne=new go.PathFigure(0,.5*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.2*E,.35*a,.3*E,.35*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.7*E,.65*a,.8*E,.65*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var y=new go.PathFigure(0,.2*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.7*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,0,.6*E,.5*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,a,.4*E,.5*a,E,.5*a).close());var z=new go.PathFigure(.45*E,.73*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.73*a)),z.add(new go.PathSegment(go.PathSegment.Move,.38*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.63*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Move,.31*E,.27*a)),z.add(new go.PathSegment(go.PathSegment.Line,.56*E,.27*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(.335*E,(1-.555)*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.68*a,(1-.12)*E,.46*a,(1-.02)*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.335*E,(1-.555)*a,.02*E,.54*a,.12*E,.46*a)),z.add(new go.PathSegment(go.PathSegment.Line,.365*E,(1-.595)*a));var ne=.5-.285,re=.5,ie=ne,ge=Math.PI/4,fe=4*(1-Math.cos(ge))/(3*Math.sin(ge)),Pe=fe*.5,Ue=ne,Me=ne,lt=fe*Ue,Le=fe*Me;z.add(new go.PathSegment(go.PathSegment.Bezier,(re-Ue)*E,ie*a,(re-(lt+Ue)/2)*E,(ie+(Me+Le)/2)*a,(re-Ue)*E,(ie+Le)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,re*E,(ie-Me)*a,(re-Ue)*E,(ie-Le)*a,(re-lt)*E,(ie-Me)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(re+Ue)*E,ie*a,(re+lt)*E,(ie-Me)*a,(re+Ue)*E,(ie-Le)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*E,(1-.595)*a,(re+Ue)*E,(ie+Le)*a,(re+(lt+Ue)/2)*E,(ie+(Me+Le)/2)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*E,(1-.595)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a));var be=new go.PathFigure(.2*E,a,!1);x.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.2*E,.8*a));var Xe=new go.PathFigure(.8*E,a,!1);return x.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var z=new go.PathFigure(.2*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var ne=new go.PathFigure(.1*E,a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Caution",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.05*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.8*a,0,a,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.1*a,.5*E,0,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.95*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,E,a,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,a));var z=.05;return y.add(new go.PathSegment(go.PathSegment.Move,(.5-z)*E,.875*a)),y.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*E,.875*a,z*E,z*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.325*a,.575*E,.725*a,.625*E,.375*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.75*a,.375*E,.375*a,.425*E,.725*a)),x}),go.Shape.defineFigureGenerator("Recycle",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.45*E,.95*a,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.185*E,.85*a,.17*E,.95*a,.15*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.235*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.625*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,.275*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.575*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.1875*E,.95*a,0,.675*a,0,.7*a)),y.add(new go.PathSegment(go.PathSegment.Move,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.775*a)),y.add(new go.PathSegment(go.PathSegment.Line,.22*E,.775*a));var z=new go.PathFigure(.475*E,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.225*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.275*E,.175*a)),z.add(new go.PathSegment(go.PathSegment.Line,.325*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.05*a,.35*E,0,.375*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.575*E,.375*a)),z.add(new go.PathSegment(go.PathSegment.Line,.525*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.475*a)),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.315*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.32*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,0,.65*E,.05*a,.625*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.38*E,.0105*a));var ne=new go.PathFigure(.675*E,.575*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.875*E,.525*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.85*E,.95*a,E,.8*a,E,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,.95*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,.725*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Move,.675*E,.575*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.775*E,.775*a)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*.5,ne=new go.PathFigure(E,y*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,y*E,a,E,(y+z)*a,(y+z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y*a,(y-z)*E,a,0,(y+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,y*E,0,0,(y-z)*a,(y-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,y*a,(y+z)*E,0,E,(y-z)*a));var re=new go.PathFigure(y*E,0,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*E,.15*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,y*E,.85*a)),re.add(new go.PathSegment(go.PathSegment.Move,0,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.15*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.85*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.58*E,.1*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.78*E,.54*a)),x}),go.Shape.defineFigureGenerator("Package",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.15*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,.15*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.15*a).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var ne=new go.PathFigure(0,.5*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Component",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close());var z=new go.PathFigure(0,.2*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var ne=new go.PathFigure(0,.6*a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.45*E,.6*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.45*E,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.15*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a));var z=new go.PathFigure(.15*E,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(E,.8*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.8*a).close());var ne=.1,re=Fe*.1,ie=.2,ge=.9,fe=new go.PathFigure((ie-ne)*E,ge*a,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-ne)*a,(ie-ne)*E,(ge-re)*a,(ie-re)*E,(ge-ne)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*E,ge*a,(ie+re)*E,(ge-ne)*a,(ie+ne)*E,(ge-re)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge+ne)*a,(ie+ne)*E,(ge+re)*a,(ie+re)*E,(ge+ne)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*E,ge*a,(ie-re)*E,(ge+ne)*a,(ie-ne)*E,(ge+re)*a).close()),ne=.1,re=Fe*.1,ie=.8,ge=.9;var Pe=new go.PathFigure((ie-ne)*E,ge*a,!0);return x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-ne)*a,(ie-ne)*E,(ge-re)*a,(ie-re)*E,(ge-ne)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*E,ge*a,(ie+re)*E,(ge-ne)*a,(ie+ne)*E,(ge-re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge+ne)*a,(ie+ne)*E,(ge+re)*a,(ie+re)*E,(ge+ne)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*E,ge*a,(ie-re)*E,(ge+ne)*a,(ie-ne)*E,(ge+re)*a).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.2*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),x}),go.Shape.defineFigureGenerator("Forklift",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0));var z=new go.PathFigure(0,.5*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var ne=new go.PathFigure(.5*E,.8*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a));var re=new go.PathFigure(.5*E,.7*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.7*a));var ie=.1,ge=Fe*.1,fe=.1,Pe=.9,Ue=new go.PathFigure((fe-ie)*E,Pe*a,!0);x.add(Ue),Ue.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,(Pe-ie)*a,(fe-ie)*E,(Pe-ge)*a,(fe-ge)*E,(Pe-ie)*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(fe+ie)*E,Pe*a,(fe+ge)*E,(Pe-ie)*a,(fe+ie)*E,(Pe-ge)*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,(Pe+ie)*a,(fe+ie)*E,(Pe+ge)*a,(fe+ge)*E,(Pe+ie)*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(fe-ie)*E,Pe*a,(fe-ge)*E,(Pe+ie)*a,(fe-ie)*E,(Pe+ge)*a)),ie=.1,ge=Fe*.1,fe=.4,Pe=.9;var Me=new go.PathFigure((fe-ie)*E,Pe*a,!0);return x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,(Pe-ie)*a,(fe-ie)*E,(Pe-ge)*a,(fe-ge)*E,(Pe-ie)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(fe+ie)*E,Pe*a,(fe+ge)*E,(Pe-ie)*a,(fe+ie)*E,(Pe-ge)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,(Pe+ie)*a,(fe+ie)*E,(Pe+ge)*a,(fe+ge)*E,(Pe+ie)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(fe-ie)*E,Pe*a,(fe-ge)*E,(Pe+ie)*a,(fe-ie)*E,(Pe+ge)*a)),x}),go.Shape.defineFigureGenerator("RailShipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,.4*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.4*a).close());var z=new go.PathFigure(.45*E,.7*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a));var ne=new go.PathFigure(.55*E,.4*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.4*a).close());var fe=.05,Pe=Fe*.05,Ue=.175,Me=.95,re=new go.PathFigure((Ue-fe)*E,Me*a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Me-fe)*a,(Ue-fe)*E,(Me-Pe)*a,(Ue-Pe)*E,(Me-fe)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+fe)*E,Me*a,(Ue+Pe)*E,(Me-fe)*a,(Ue+fe)*E,(Me-Pe)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Me+fe)*a,(Ue+fe)*E,(Me+Pe)*a,(Ue+Pe)*E,(Me+fe)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ue-fe)*E,Me*a,(Ue-Pe)*E,(Me+fe)*a,(Ue-fe)*E,(Me+Pe)*a));var fe=.05,Pe=Fe*.05,Ue=.375,Me=.95,ie=new go.PathFigure((Ue-fe)*E,Me*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Me-fe)*a,(Ue-fe)*E,(Me-Pe)*a,(Ue-Pe)*E,(Me-fe)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+fe)*E,Me*a,(Ue+Pe)*E,(Me-fe)*a,(Ue+fe)*E,(Me-Pe)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Me+fe)*a,(Ue+fe)*E,(Me+Pe)*a,(Ue+Pe)*E,(Me+fe)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ue-fe)*E,Me*a,(Ue-Pe)*E,(Me+fe)*a,(Ue-fe)*E,(Me+Pe)*a));var fe=.05,Pe=Fe*.05,Ue=.625,Me=.95,ge=new go.PathFigure((Ue-fe)*E,Me*a,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Me-fe)*a,(Ue-fe)*E,(Me-Pe)*a,(Ue-Pe)*E,(Me-fe)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+fe)*E,Me*a,(Ue+Pe)*E,(Me-fe)*a,(Ue+fe)*E,(Me-Pe)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Me+fe)*a,(Ue+fe)*E,(Me+Pe)*a,(Ue+Pe)*E,(Me+fe)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Ue-fe)*E,Me*a,(Ue-Pe)*E,(Me+fe)*a,(Ue-fe)*E,(Me+Pe)*a));var fe=.05,Pe=Fe*.05,Ue=.825,Me=.95,lt=new go.PathFigure((Ue-fe)*E,Me*a,!0);x.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Me-fe)*a,(Ue-fe)*E,(Me-Pe)*a,(Ue-Pe)*E,(Me-fe)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+fe)*E,Me*a,(Ue+Pe)*E,(Me-fe)*a,(Ue+fe)*E,(Me-Pe)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Me+fe)*a,(Ue+fe)*E,(Me+Pe)*a,(Ue+Pe)*E,(Me+fe)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Ue-fe)*E,Me*a,(Ue-Pe)*E,(Me+fe)*a,(Ue-fe)*E,(Me+Pe)*a).close());var Le=new go.PathFigure(0,a,!1);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var ne=new go.PathFigure(.15*E,a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.15*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.15*E,a).close());var re=.05,ie=Fe*.05,ge=.35,fe=.775,Pe=new go.PathFigure((ge-re)*E,fe*a,!0);return x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*E,(fe-re)*a,(ge-re)*E,(fe-ie)*a,(ge-ie)*E,(fe-re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge+re)*E,fe*a,(ge+ie)*E,(fe-re)*a,(ge+re)*E,(fe-ie)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*E,(fe+re)*a,(ge+re)*E,(fe+ie)*a,(ge+ie)*E,(fe+re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge-re)*E,fe*a,(ge-ie)*E,(fe+re)*a,(ge-re)*E,(fe+ie)*a).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),x}),go.Shape.defineFigureGenerator("Globe",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.75*E,0,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.75*a,.75*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*E,a,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,.25*a,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,.15*E,.25*a,.15*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.85*E,.75*a,.85*E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.15*a,.35*E,.3*a,.65*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.85*a,.35*E,.7*a,.65*E,.7*a)),x}),go.Shape.defineFigureGenerator("Wave",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.25*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.25*a,.1*E,0,.2*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.25*a,.425*E,.5*a,.575*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.25*a,.8*E,0,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.75*a,.1*E,.5*a,.2*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.75*a,.425*E,a,.575*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.75*a,.8*E,.5*a,.9*E,.5*a)),x}),go.Shape.defineFigureGenerator("Operator",function(le,E,a){var x=new go.Geometry,y=.3,z=Fe*.3,ne=.5,re=.7,ie=new go.PathFigure((ne-y)*E,re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a));var ge=new go.PathFigure(0,.7*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,E,.7*a,0,0,E,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.65*E,.3*a,.65*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.35*E,.5*a,.35*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*E,.6*a,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.2*E,a,.35*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,a,.7*E,.6*a,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.8*E,a,.65*E,.95*a)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,0,a,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.4*a,.8*E,a,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),x}),go.Shape.defineFigureGenerator("Battery",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.1*a));var z=new go.PathFigure(0,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),x}),go.Shape.defineFigureGenerator("Delete",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*.5,ne=.5,re=.5,ie=new go.PathFigure((ne-y)*E,re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a));var ge=new go.PathFigure(.15*E,.5*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*E,.5*a)),x}),go.Shape.defineFigureGenerator("Flag",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.1*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.1*a,.15*E,0,.35*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,.65*E,.2*a,.85*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.85*E,.6*a,.65*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*E,.4*a,.15*E,.4*a).close()),x}),go.Shape.defineFigureGenerator("Help",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*.5,ne=.5,re=.5,ie=new go.PathFigure((ne-y)*E,re*a,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a).close()),y=.05,z=Fe*.05,ne=.5,re=.8;var ge=new go.PathFigure((ne-y)*E,re*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a).close()),ge.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,.75*E,.475*a,.75*E,.225*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.35*a,.4*E,.2*a,.3*E,.25*a)),x}),go.Shape.defineFigureGenerator("Location",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.975*E,.025*a,.5*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*E,.5*a,.5*E,0,.025*E,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*E,.3*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.3*a)),x}),go.Shape.defineFigureGenerator("Unlocked",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.35*a)),x}),go.Shape.defineFigureGenerator("Gear",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.9375*E,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*E,.3316875*a,.79840625*E,.39915625*a,.7834375*E,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*E,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*E,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*E,.19378125*a,.64228125*E,.2188125*a,.603875*E,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*E,.239375*a,.39759375*E,.20190625*a,.36053125*E,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*E,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*E,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*E,.4375*a,.21765625*E,.36059375*a,.201875*E,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*E,.67596875*a,.20221875*E,.603875*a,.21884375*E,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*E,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*E,.80621875*a,.36353125*E,.78340625*a,.3991875*E,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*E,.760625*a,.602375*E,.79809375*a,.63946875*E,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*E,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*E,.56246875*a,.78234375*E,.63940625*a,.798125*E,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*E,.5*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.3*a,0,.375*a,.05*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.075*a,.3*E,.225*a,.4*E,.175*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.525*E,.075*a,.46*E,.05*a,.525*E,.05*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.4*a,.525*E,.275*a,.475*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.55*a,E,.4*a,E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.425*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.7*a,.675*E,.55*a,.675*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.575*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,.85*a,.65*E,.7*a,.65*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.535*E,a,.61*E,.85*a,.61*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*E,a,0,a).close()),x}),go.Shape.defineFigureGenerator("Map",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),x}),go.Shape.defineFigureGenerator("Eject",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.7)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var z=new go.PathFigure(0,a*.6,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*1,a*1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.85).close());var z=new go.PathFigure(.126*E,.85*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.126*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.85*a).close());var ne=new go.PathFigure(.402*E,.85*a,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.402*E,.45*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.598*E,.45*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.598*E,.85*a).close());var re=new go.PathFigure(.678*E,.85*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.678*E,.45*a)),re.add(new go.PathSegment(go.PathSegment.Line,.874*E,.45*a)),re.add(new go.PathSegment(go.PathSegment.Line,.874*E,.85*a).close());var ie=new go.PathFigure(.5*E,.1*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*E,.3*a)),ie.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*E,.3*a).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a*1,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a*1,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*(1-.184)).close());var z=new go.PathFigure(E*.204,a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.204,a*(1-.184))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*1).close());var ne=new go.PathFigure(E*.408,a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.408,a*(1-.184*2))),ne.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*(1-.184*3))),ne.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*1).close());var re=new go.PathFigure(E*.612,a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.612,a*(1-.184*3))),re.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*(1-.184*4))),re.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*1).close());var ie=new go.PathFigure(E*.816,a,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.816,a*(1-.184*4))),ie.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-.184*5))),ie.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,0).close());var z=new go.PathFigure(E*.055,.07*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.07)),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.1).close());var ne=new go.PathFigure(E*.055,.13*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.13)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.16)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.16).close());var re=new go.PathFigure(E*.055,.18*a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.18)),re.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.21)),re.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.21).close());var ie=new go.PathFigure(E*1,0,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.4,0)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.65)),ie.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.55*E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.475*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.35*E,.525*a,0,.4*a,.225*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.475*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.2*a,.975*E,0,E,.08*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.55*E,a).close()),x}),go.Shape.defineFigureGenerator("Key",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*1,a*.5,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.9,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,.575*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.9,.6*a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.17*E,.425*a)),y.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*E,.5*a,.075*E,.075*a).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*0,E*.3,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var z=new go.PathFigure(0,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*0)),z.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*1,E*.3,E*.055)),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var ne=new go.PathFigure(E*.11,a*.1,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.11,a*.8).close());var re=new go.PathFigure(E*(.11+.24133333*1+.028*1),a*.1,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.1)),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.8)),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*1),a*.8).close());var ie=new go.PathFigure(E*(.11+.24133333*2+.028*2),a*.1,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.1)),ie.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.8)),ie.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*2),a*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(le,E,a){var x=new go.Geometry,y=8,z=y*Fe,ne=new go.PathFigure(y,0,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.86,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.14)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-y,a,E,a-z,E-z,a)),ne.add(new go.PathSegment(go.PathSegment.Line,y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,z,a,0,a-z)),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,z,z,0).close());var re=new go.PathFigure(E*.83,0,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.3)),re.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.3)),re.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*0).close());var ie=new go.PathFigure(E*.83,a*1,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*1).close());var ge=new go.PathFigure(E*.78,a*.05,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.05)),ge.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,E*.78,a*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,E/3),x=Math.min(x,a/3);var y=x*Fe,z=a*.8,ne=new go.Geometry,re=new go.PathFigure(x,0,!0);return ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E-x,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,x,E-y,0,E,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,z-x)),re.add(new go.PathSegment(go.PathSegment.Bezier,E-x,z,E,z-y,E-y,z)),re.add(new go.PathSegment(go.PathSegment.Line,E*.7,z)),re.add(new go.PathSegment(go.PathSegment.Line,E*.7,a)),re.add(new go.PathSegment(go.PathSegment.Line,E*.55,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,z-x,y,z,0,z-y)),re.add(new go.PathSegment(go.PathSegment.Line,0,x)),re.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()),y>1?(ne.spot1=new go.Spot(0,0,y,y),ne.spot2=new go.Spot(1,.8,-y,-y)):(ne.spot1=go.Spot.TopLeft,ne.spot2=new go.Spot(1,.8)),ne}),go.Shape.defineFigureGenerator("Repeat",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*.45,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.45).close());var z=new go.PathFigure(E*1,a*.55,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*E,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*.1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.9).close());var z=new go.PathFigure(E*.1,a*.2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,E*.22,a*.285)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.25).close());var ne=new go.PathFigure(E*.28,a*.37,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.37)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.41)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.28,a*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(le,E,a){var x=new go.Geometry,y=15,z=y*Fe,ne=new go.PathFigure(E*.62,a*.475,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-y,a,E,a-z,E-z,a)),ne.add(new go.PathSegment(go.PathSegment.Line,y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,z,a,0,a-z)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.475)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.03)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*0)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*0)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.62,a*.03).close()),z>1?(x.spot1=new go.Spot(0,0,z,z),x.spot2=new go.Spot(1,1,-z,-z)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var ne=new go.PathFigure(E*.4,a*0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.66)),ne.add(new go.PathSegment(go.PathSegment.Line,E*(1-.26),a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;return y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var ne=new go.PathFigure(E*.5,a*0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.63)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.63)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.74,a*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.15,a*0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.15,a*0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close());var z=new go.PathFigure(E*.235,a*.28,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.765,a*.28)),z.add(new go.PathSegment(go.PathSegment.Line,E*.655,a*.97)),z.add(new go.PathSegment(go.PathSegment.Line,E*.345,a*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.5,a*0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},20063:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var _e={},Ct="5.0",oe={},b=null,he=!1,Be=!1,Ie=null,Ce=!1,Ge=null,Fe=null,Ye=0;Ye4?parseFloat(Qe):5};_e.setHTML5Codebase=function(Qe,Oe){Fe=Qe,rn(Qe,Oe)},_e.setJavaCodebase=_e.setJavaCodebaseVersion=_e.isCompiledInstalled=_e.setPreCompiledScriptPath=_e.setPreCompiledResourcePath=function(){},_e.setHTML5CodebaseVersion=function(Qe,Oe){var Et=parseFloat(Qe);if(Et!==NaN&&Et<5){console.log("The GeoGebra HTML5 codebase version "+Et+" is deprecated. Using version latest instead.");return}Ge=Qe,Kt(Qe,Oe)},_e.getHTML5CodebaseVersion=function(){return le},_e.getParameters=function(){return oe},_e.setFontsCSSURL=function(Qe){ne=Qe},_e.setGiacJSURL=function(Qe){},_e.setJNLPFile=function(Qe){De=Qe},_e.setJNLPBaseDir=function(Qe){},_e.inject=function(){function Qe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Oe="auto",Et=oe.id,Gt,vt=!1,wt=0;wt=5)return!0;var Qe=_e.getAppletObject();return Qe&&typeof Qe.recalculateEnvironments=="function"?(Qe.recalculateEnvironments(),!0):!1},_e.startAnimation=function(){var Qe=_e.getAppletObject();return Qe&&typeof Qe.startAnimation=="function"?(Qe.startAnimation(),!0):!1},_e.stopAnimation=function(){var Qe=_e.getAppletObject();return Qe&&typeof Qe.stopAnimation=="function"?(Qe.stopAnimation(),!0):!1},_e.getAppletObject=function(){var Qe=oe.id!==void 0?oe.id:"ggbApplet";return window[Qe]},_e.resize=function(){};var lt=function(Qe,Oe,Et){var Gt=document.createElement("param");Gt.setAttribute("name",Oe),Gt.setAttribute("value",Et),Qe.appendChild(Gt)},Le=function(Qe){return Qe&&Qe!=="false"},be=function(Qe,Oe,Et){ie(le)<=4.2&&(Et=!0);var Gt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==le||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(Gt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var vt=document.createElement("div");vt.classList.add("appletParameters","notranslate");var wt=Oe.width,Ae=Oe.height;if(Oe.disableAutoScale=Oe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Oe.disableAutoScale,Oe.width!==void 0)if(ie(le)<=4.4)Le(Oe.showToolBar)&&(Oe.height-=7),Le(Oe.showAlgebraInput)&&(Oe.height-=37),Oe.width<605&&Le(Oe.showToolBar)&&(Oe.width=605,wt=605);else{var dt=100;(Le(Oe.showToolBar)||Le(Oe.showMenuBar))&&(Oe.hasOwnProperty("customToolBar")&&(Oe.customToolbar=Oe.customToolBar),dt=Le(Oe.showMenuBar)?245:155),wt=5?(Oe.appletOnLoad=function(qt){var ca=Qe.querySelector(".ggb_preview");ca&&ca.parentNode.removeChild(ca),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(et),window.GGBT_wsf_view&&$(window).trigger("resize"),ct(qt)},An||et.appendChild(ot)):vt.appendChild(ot),et.appendChild(vt),An||Qe.appendChild(et),setTimeout(function(){_e.resize()},1)}else{var Bt=document.createElement("div");Bt.className="applet_scaler",Bt.style.position="relative",Bt.style.display="block",Bt.appendChild(vt),Qe.appendChild(Bt),Oe.appletOnLoad=function(qt){_e.resize(),ct(qt)}}function Ht(qt,ca){ca&&typeof ca.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(qt,ca.appletOnLoad):renderGGBElement(qt),It("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ca)}function ht(qt,ca){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:qt,params:ca}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(zn){Ht(zn.article,zn.params)}),html5AppletsToProcess=null)},ie(le)<5&&(qt.className+=" geogebraweb")):Ht(qt,ca)}if(Gt){scriptLoadStarted=!0;for(var On=0;On0?(on.remove(),et.attr("id","fullscreencontent").show(),jQuery(ct).append(et),window.dispatchEvent(new Event("resize"))):be(on,Oe,!1),window.GGBT_wsf_view.launchFullScreen(ct)}else Ve=Gt,be(Qe,Oe,!1);if(!window.GGBT_wsf_view)for(Ae=0;AeQe/4*3&&(on=Qe/4*3),ct=on/5.8,dt.setAttribute("src",y),dt.setAttribute("width",on),dt.setAttribute("height",ct);var et=(Qe-on)/2,An=(Oe-ct)/2;dt.style.left=et+"px",dt.style.top=An+"px",vt.appendChild(dt)}}return vt.appendChild(Ae),vt},xt=function(Qe){return Qe=Qe.toLowerCase(),Qe==="html5"||Qe==="screenshot"?Qe:"html5"},ut=["web","webSimple","web3d","tablet","tablet3d","phone"],Kt=function(Qe,Oe){if(le=Qe,Oe){rn(le,!0);return}var Et=!he;if(Et){var Gt=ie(le);!isNaN(Gt)&&Gt<4.4&&(Et=!1)}var vt,wt;window.location.protocol.substr(0,4)==="http"?vt=window.location.protocol:vt="http:";var Ae=le.indexOf("//");Ae>0?wt=le:Ae===0?wt=vt+le:wt="https://www.geogebra.org/apps/5.2.814.0/";for(var dt in ut)if(le.slice(ut[dt].length*-1)===ut[dt]||le.slice((ut[dt].length+1)*-1)===ut[dt]+"/"){rn(wt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Et&&!b.is3D&&!b.AV&&!b.SV&&!b.CV&&!b.EV2&&!b.CP&&!b.PC&&!b.DA&&!b.FI&&!b.PV&&!Le(oe.showToolBar)&&!Le(oe.showMenuBar)&&!Le(oe.showAlgebraInput)&&!Le(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?wt+="webSimple/":wt+="web3d/",rn(wt,!1)},rn=function(Qe,Oe){if(Qe.requirejs){Te=Qe;return}Qe.slice(-1)!=="/"&&(Qe+="/"),Te=Qe,Oe===null&&(Oe=Qe.indexOf("http")===-1),We=Oe,E="web.nocache.js",a=!1;var Et=Te.split("/");Et.length>1&&(!Oe&&Et[Et.length-2]==="webSimple"?(E="webSimple.nocache.js",a=!0):ut.indexOf(Et[Et.length-2])>=0&&(E=Et[Et.length-2]+".nocache.js")),Et=Qe.split("/"),le=Et[Et.length-3],le.substr(0,4)==="test"?le=le.substr(4,1)+"."+le.substr(5,1):(le.substr(0,3)==="war"||le.substr(0,4)==="beta")&&(le="5.0");var Gt=parseFloat(le);Gt!==NaN&&Gt<5&&Qe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Gt+" is deprecated. Using version latest instead."),Kt("5.0",Oe))},It=function(Qe,Oe){window.console&&window.console.log&&(!Oe||typeof Oe.showLogging=="undefined"||Oe.showLogging&&Oe.showLogging!=="false")&&console.log(Qe)};oe.material_id!==void 0?Pe(Zt):Zt();function Zt(){var Qe=Ct;Ge!==null?Qe=Ge:parseFloat(Qe)<5&&(Qe="5.0"),Kt(Qe,!1),Fe!==null&&rn(Fe,We),Ce=!0}return _e},GGBAppletUtils=function(){"use strict";function _e(){return window.GGBT_wsf_edit!==void 0}function Ct(Ce,Ge){Ge!=1?(Ce.style.transformOrigin="0% 0% 0px",Ce.style.webkitTransformOrigin="0% 0% 0px",Ce.style.transform="scale("+Ge+","+Ge+")",Ce.style.webkitTransform="scale("+Ge+","+Ge+")",Ce.style.maxWidth="initial",Ce.querySelector(".ggb_preview")!==null&&(Ce.querySelector(".ggb_preview").style.maxWidth="initial"),Ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ce.style.transform="none",Ce.style.webkitTransform="none")}function oe(Ce,Ge,Fe,Ye,ke,De){var Te=null;if(De!=null&&De!="")for(var We=Ce.parentNode;We!=null;)if((" "+We.className+" ").indexOf(" "+De+" ")>-1){Te=We;break}else We=We.parentNode;var Ve=0,le=0,E=0,a=0,x=0,y=0,z=0;if(Te)Ve=Te.offsetWidth,le=Math.max(Ye?Te.offsetWidth:0,Te.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ve=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),E=Ve):(Ve=window.innerWidth,le=window.innerHeight,E=window.innerWidth),Ce){var ne=Ce.getBoundingClientRect();ne.left>0&&ne.left<=Ve&&(ke===void 0||!ke)&&(document.dir==="rtl"?(x=Ve-ne.width-ne.left,y=E<=480?10:30):(y=ne.left,x=E<=480?10:30),a=y+x)}if(Ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var re=Ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,z=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,z=40)}}return Ce&&((Fe===void 0||!Fe)&&Ge>0&&Ge+a1&&(De=!0)),Ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(Ce.hasOwnProperty("disableAutoScale")&&Ce.disableAutoScale))ke=b(Ce,Ge,De,Fe,Ce.scaleContainerClass);else return Ye;return De&&(!Ce.hasOwnProperty("scale")||Ye===1)?ke:Math.min(Ye,ke)}function Be(Ce){var Ge=Math.min(window.innerWidth,document.documentElement.clientWidth),Fe=Math.min(window.innerHeight,document.documentElement.clientHeight),Ye=Ce.getBoundingClientRect(),ke=(Ge-Ye.width)/2,De=(Fe-Ye.height)/2;De<0&&(De=0),Ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ke<40?Ce.style.left="40px":Ce.style.left=ke+"px",Ce.style.top=De+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(De<40?Ce.style.top="40px":Ce.style.top=De+"px",Ce.style.left=ke+"px")}function Ie(Ce,Ge){var Fe=Ce.querySelector(".appletParameters");if(Fe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ge.id!==Fe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ce)}if(Fe.parentElement&&/fullscreen/.test(Fe.parentElement.className))return;var Ye=he(Ge,Ce);_e()&&Fe.setAttribute("data-param-scale",Ye);for(var ke=null,De=0;De=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(_e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(_e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(_e){var Ct=c[_e];return Ct==null?null:Ct},r=d,webModule.__errFn=e}function B(){function _e(Ce){var Ge=Ce.lastIndexOf(rb);Ge==-1&&(Ge=Ce.length);var Fe=Ce.indexOf(sb);Fe==-1&&(Fe=Ce.length);var Ye=Ce.lastIndexOf(tb,Math.min(Fe,Ge));return Ye>=O?Ce.substring(O,Ye+P):W}function Ct(Ce){if(!Ce.match(/^\w+:\/\//)){var Ge=o.createElement(ub);Ge.src=Ce+vb,Ce=_e(Ge.src)}return Ce}function oe(){var Ce=__gwt_getMetaProperty(wb);return Ce!=null?Ce:W}function b(){for(var Ce=o.getElementsByTagName(_),Ge=O;GeO?Ce[Ce.length-P].href:W}function Be(){var Ce=o.location;return Ce.href==Ce.protocol+zb+Ce.host+Ce.pathname+Ce.search+Ce.hash}var Ie=oe();return Ie==W&&(Ie=b()),Ie==W&&(Ie=he()),Ie==W&&Be()&&(Ie=_e(o.location.href)),Ie=Ct(Ie),Ie}function C(_e){return _e.match(/^\//)||_e.match(/^[a-zA-Z]+:\/\//)?_e:webModule.__moduleBase+_e}function D(){var _e=[],Ct=O,oe=[],b=[];function he(Ce){var Ge=b[Ce](),Fe=oe[Ce];if(Ge in Fe)return Ge;var Ye=[];for(var ke in Fe)Ye[Fe[ke]]=ke;throw r&&r(Ce,Ye,Ge),null}if(__gwt_isKnownPropertyValue=function(Ce,Ge){return Ge in oe[Ce]},webModule.__getPropMap=function(){var Ce={};for(var Ge in oe)oe.hasOwnProperty(Ge)&&(Ce[Ge]=he(Ge));return Ce},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Be;try{Be=Cb;var Ie=Be.indexOf(Db);Ie!=-1&&(Ct=parseInt(Be.substring(Ie+P),$),Be=Be.substring(O,Ie))}catch(Ce){}return webModule.__softPermutationId=Ct,C(Be+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},25676:function(_e,Ct,oe){"use strict";oe.d(Ct,{Ax:function(){return Ie},Ds:function(){return Ce},KI:function(){return Fe},SI:function(){return Be},f1:function(){return he}});var b=oe(11662);function he(Ye){let ke=!0;if(Ye.length>0){for(let De=0;Dea in E?Be(E,a,{enumerable:!0,configurable:!0,writable:!0,value:x}):E[a]=x,De=(E,a)=>{for(var x in a||(a={}))Fe.call(a,x)&&ke(E,x,a[x]);if(Ge)for(var x of Ge(a))Ye.call(a,x)&&ke(E,x,a[x]);return E},Te=(E,a)=>Ie(E,Ce(a)),We=(E,a)=>{var x={};for(var y in E)Fe.call(E,y)&&a.indexOf(y)<0&&(x[y]=E[y]);if(E!=null&&Ge)for(var y of Ge(E))a.indexOf(y)<0&&Ye.call(E,y)&&(x[y]=E[y]);return x},Ve=(E,a,x)=>new Promise((y,z)=>{var ne=ge=>{try{ie(x.next(ge))}catch(fe){z(fe)}},re=ge=>{try{ie(x.throw(ge))}catch(fe){z(fe)}},ie=ge=>ge.done?y(ge.value):Promise.resolve(ge.value).then(ne,re);ie((x=x.apply(E,a)).next())});const le=E=>{var a=E,{children:x}=a,y=We(a,["children"]);const[z,ne]=(0,he.useState)(!1);return he.createElement(b.ZP,Te(De({},y),{loading:z,onClick:re=>Ve(void 0,null,function*(){try{ne(!0),yield y.onClick(re),ne(!1)}catch(ie){console.error(ie),ne(!1)}})}),x)}},40888:function(_e,Ct,oe){"use strict";var b=oe(86204),he=oe.n(b),Be=Object.defineProperty,Ie=(Ye,ke,De)=>ke in Ye?Be(Ye,ke,{enumerable:!0,configurable:!0,writable:!0,value:De}):Ye[ke]=De,Ce=(Ye,ke,De)=>Ie(Ye,typeof ke!="symbol"?ke+"":ke,De),Ge=(Ye,ke,De)=>new Promise((Te,We)=>{var Ve=a=>{try{E(De.next(a))}catch(x){We(x)}},le=a=>{try{E(De.throw(a))}catch(x){We(x)}},E=a=>a.done?Te(a.value):Promise.resolve(a.value).then(Ve,le);E((De=De.apply(Ye,ke)).next())});class Fe extends b.EventEmitter{constructor(ke,De){super(),Ce(this,"url"),Ce(this,"body"),Ce(this,"fullContent",""),Ce(this,"controller",null),Ce(this,"buffer",""),this.url=ke,this.body=De}startStream(){return Ge(this,null,function*(){this.controller=new AbortController;const{signal:ke}=this.controller;try{const De=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:ke});if(!De.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${De.status}`);const Te=De.headers.get("content-type");if(!Te)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(Te.includes("application/json")){const le=yield De.json();this.emit("error",le);return}if(!Te.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const We=De.body.getReader(),Ve=new TextDecoder("utf-8");for(;;){const{done:le,value:E}=yield We.read();if(le)break;const a=Ve.decode(E,{stream:!0});this.buffer+=a;const x=this.buffer.split(` +(self.webpackChunk=self.webpackChunk||[]).push([[3260],{87169:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Ye}});var b=oe(54476),he=oe(59301),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ie=Be,be=oe(7657),Ge=function(De,Te){return he.createElement(be.Z,(0,b.Z)({},De,{ref:Te,icon:Ie}))},Fe=he.forwardRef(Ge),Ye=Fe},12893:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Ye}});var b=oe(54476),he=oe(59301),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Ie=Be,be=oe(7657),Ge=function(De,Te){return he.createElement(be.Z,(0,b.Z)({},De,{ref:Te,icon:Ie}))},Fe=he.forwardRef(Ge),Ye=Fe},32134:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Ye}});var b=oe(54476),he=oe(59301),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Ie=Be,be=oe(7657),Ge=function(De,Te){return he.createElement(be.Z,(0,b.Z)({},De,{ref:Te,icon:Ie}))},Fe=he.forwardRef(Ge),Ye=Fe},89722:function(_e,xt){"use strict";xt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},63581:function(_e,xt){"use strict";xt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n"}},97663:function(_e,xt){"use strict";xt.Z={flex_box_center:"flex_box_center___ycN2f",flex_space_between:"flex_space_between___LcS9e",flex_box_vertical_center:"flex_box_vertical_center___uwjPm",flex_box_center_end:"flex_box_center_end___Pc903",flex_box_column:"flex_box_column___AXEdv",bg:"bg___fm2Cw",title:"title___J3MCU",editIcon:"editIcon___i4Zll",titleLeft:"titleLeft___da61c",titleRight:"titleRight___EsdL6",formWrap:"formWrap___YTxC3",baseLineHeight:"baseLineHeight___TprCB",radioBtnWrapper:"radioBtnWrapper___Mt_XG",radiogroup:"radiogroup___EvkWh",easy:"easy___mSxtg",medium:"medium___NIaWN",hard:"hard___mddnD",baseFormItem:"baseFormItem___csbyb",cascaderPopup:"cascaderPopup___BttnF",selectdiv:"selectdiv___TAr4i",divitem:"divitem___iaXB2",bottmodiv:"bottmodiv___bmp6p",cancelBtn:"cancelBtn___Q4ZcL",confirmBtn:"confirmBtn___nRiCD",concat:"concat___jlPR1"}},58082:function(_e,xt,oe){"use strict";var b=oe(59301),he=Object.defineProperty,Be=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Ge=(ke,De,Te)=>De in ke?he(ke,De,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ke[De]=Te,Fe=(ke,De)=>{for(var Te in De||(De={}))Ie.call(De,Te)&&Ge(ke,Te,De[Te]);if(Be)for(var Te of Be(De))be.call(De,Te)&&Ge(ke,Te,De[Te]);return ke};const Ye=ke=>React.createElement("svg",Fe({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},ke),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));xt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},39469:function(_e,xt,oe){"use strict";var b=oe(59301),he=Object.defineProperty,Be=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Ge=(ke,De,Te)=>De in ke?he(ke,De,{enumerable:!0,configurable:!0,writable:!0,value:Te}):ke[De]=Te,Fe=(ke,De)=>{for(var Te in De||(De={}))Ie.call(De,Te)&&Ge(ke,Te,De[Te]);if(Be)for(var Te of Be(De))be.call(De,Te)&&Ge(ke,Te,De[Te]);return ke};const Ye=ke=>React.createElement("svg",Fe({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},ke),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));xt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},4285:function(){"use strict";function _e(le,E,a,x){a===void 0&&(a=0),x===void 0&&(x=1/0),this._name=le,this._defaultValue=E,this._minimum=a,this._maximum=x}Object.defineProperty(_e.prototype,"name",{get:function(){return this._name},set:function(le){if(typeof le!="string"||le==="")throw new Error("Shape name must be a valid string.");this._name=le}}),Object.defineProperty(_e.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("The default value must be a real number, not: "+le);this._defaultValue=le}}),Object.defineProperty(_e.prototype,"minimum",{get:function(){return this._minimum},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("Minimum must be a real number, not: "+le);this._minimum=le}}),Object.defineProperty(_e.prototype,"maximum",{get:function(){return this._maximum},set:function(le){if(typeof le!="number"||isNaN(le))throw new Error("Maximum must be a real number, not: "+le);this._maximum=le}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(le,E){var a=go.Shape._FigureParameters[le];return a?a[E]:null},go.Shape.setFigureParameter=function(le,E,a){if(!(a instanceof _e))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValuea.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var x=go.Shape._FigureParameters[le];x||(x=[],go.Shape._FigureParameters[le]=x),x[E]=a};var xt=[];function oe(le,E){var a=xt.pop();return a===void 0?new go.Point(le,E):(a.x=le,a.y=E,a)}function b(){var le=xt.pop();return le===void 0?new go.Point:le}function he(le){xt.push(le)}function Be(le,E,a,x,y,z,ne,re,ie){ie||(ie=new go.Point);var ge=le-a,fe=y-ne,Pe=NaN,Ue=NaN;if(ge===0)if(fe===0)le===a&&(Pe=le,Ue=E);else{var Me=(z-re)/fe,lt=z-Me*y;Pe=le,Ue=Me*Pe+lt}else if(fe===0){var Le=(E-x)/ge,Ce=E-Le*le;Pe=y,Ue=Le*Pe+Ce}else{var Le=(E-x)/ge,Me=(z-re)/fe,Ce=E-Le*le,lt=z-Me*y;Pe=(lt-Ce)/(Le-Me),Ue=Le*Pe+Ce}return ie.x=Pe,ie.y=Ue,ie}function Ie(le,E,a,x,y,z,ne,re,ie,ge,fe,Pe,Ue,Me){var lt=1-ie,Le=ie,Ce=le*lt+a*Le,Xe=E*lt+x*Le,nt=a*lt+y*Le,ye=x*lt+z*Le,gt=y*lt+ne*Le,pt=z*lt+re*Le,wt=Ce*lt+nt*Le,ut=Xe*lt+ye*Le,Kt=nt*lt+gt*Le,rn=ye*lt+pt*Le,It=wt*lt+Kt*Le,Zt=ut*lt+rn*Le;ge.x=Ce,ge.y=Xe,fe.x=wt,fe.y=ut,Pe.x=It,Pe.y=Zt,Ue.x=Kt,Ue.y=rn,Me.x=gt,Me.y=pt}var be=new go.Spot(.156,.156),Ge=new go.Spot(.844,.844),Fe=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new _e("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,E/3),x=Math.min(x,a/3);var y=x*Fe,z=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,E-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,x,E-y,0,E,y)).add(new go.PathSegment(go.PathSegment.Line,E,a-x)).add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,a-y,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,x,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,y,a,0,a-y)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()));return y>1&&(z.spot1=new go.Spot(0,0,y,y),z.spot2=new go.Spot(1,1,-y,-y)),z}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=a/2,x.endX=E,x.endY=a/2,x}),go.Shape.defineFigureGenerator("LineV",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=E/2,x.startY=0,x.endX=E/2,x.endY=a,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LineRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.25*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)))}),go.Shape.defineFigureGenerator("LineDown",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Line,E,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.75*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,a)))}),go.Shape.defineFigureGenerator("LineUp",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,E,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(le,E,a){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*E,(1-x)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,x*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,E,a/2)).add(new go.PathSegment(go.PathSegment.Move,E/2,0)).add(new go.PathSegment(go.PathSegment.Line,E/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(le,E,a){var x=E/2,y=new go.Geometry().add(new go.PathFigure(E,E/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return y.spot1=be,y.spot2=Ge,y.defaultStretch=go.GraphObject.Uniform,y}),go.Shape.defineFigureGenerator("Line1",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=E,x.endY=a,x}),go.Shape.defineFigureGenerator("Line2",function(le,E,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=E,x.startY=0,x.endX=0,x.endY=a,x}),go.Shape.defineFigureGenerator("Curve1",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,Fe*E,0,E,(1-Fe)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,E,a,0,Fe*a,(1-Fe)*E,a)))}),go.Shape.defineFigureGenerator("Curve3",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,Fe*a,Fe*E,a)))}),go.Shape.defineFigureGenerator("Curve4",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-Fe)*E,0,0,(1-Fe)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new _e("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var y=Math.abs(x)*E;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),yE&&(x=E);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),y.5&&(x=.5);var y=Math.abs(x)*E;if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),yE&&(x=E/2);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())),yE&&(x=E/2);var y=Math.abs(x);if(x===0){var z=new go.Geometry(go.Geometry.Rectangle);return z.startX=0,z.startY=0,z.endX=E,z.endY=a,z}else{var z=new go.Geometry;return x>0?z.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E-y,a)).add(new go.PathSegment(go.PathSegment.Line,y,a).close())):z.add(new go.PathFigure(y,0).add(new go.PathSegment(go.PathSegment.Line,E-y,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),y0&&(ne.add(new go.PathSegment(go.PathSegment.Move,E/2+re,E/2)),ne.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y,y,re,re).close())),z.spot1=be,z.spot2=Ge,z.defaultStretch=go.GraphObject.Uniform,z}),go.Shape.defineFigureGenerator("Cloud",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.08034461*E,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*E,.05349299*a,-.09239631*E,.07836421*a,.1406031*E,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*E,.074219*a,.2450511*E,-.00697547*a,.3776197*E,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*E,.07004196*a,.4539471*E,0,.6066018*E,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*E,.08370865*a,.6914277*E,-.01904177*a,.8921095*E,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*E,.3194596*a,1.036446*E,.04105738*a,1.020377*E,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*E,.562044*a,1.04448*E,.360238*a,.992256*E,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*E,.8217117*a,1.032337*E,.5771781*a,1.018411*E,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*E,.9156953*a,1.028411*E,.9571472*a,.8556702*E,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*E,.9310455*a,.7431877*E,1.009325*a,.5624123*E,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*E,.9344623*a,.4820677*E,1.031761*a,.3030112*E,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.870098*a,.2329994*E,1.01518*a,.03213784*E,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*E,.6545475*a,-.02812061*E,.9032597*a,-.01205169*E,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*E,.4265613*a,-.01812061*E,.6089503*a,-.00606892*E,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*E,.1944299*a,-.01606892*E,.3892545*a,-.01205169*E,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(le,E,a){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Line,x*E,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,x*a).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new _e("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new _e("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(le,E,a){var x=le?le.parameter1:NaN,y=le?le.parameter2:NaN;isNaN(x)&&(x=0),isNaN(y)&&(y=315);var z=x%360;z<0&&(z+=360);var ne=y%360,re=Math.min(E,a)/2;return new go.Geometry().add(new go.PathFigure(re,re).add(new go.PathSegment(go.PathSegment.Arc,z,ne,re,re,re,re).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(le,E,a){var x=Fe/Math.SQRT2*.5,y=Math.SQRT2/2,z=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,y*E,z*a,E,(1-x)*a,(y+x)*E,(z+x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new _e("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var y=Math.min(x,E)/2,z=E/2,ne=a/2;return new go.Geometry().add(new go.PathFigure(z-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+y,0)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne-y)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne-y).close()))}),go.Shape.setFigureParameter("ThinCross",0,new _e("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=Math.min(x,E)/2,z=E/2,ne=a/2;return new go.Geometry().add(new go.PathFigure(z-y,0,!0).add(new go.PathSegment(go.PathSegment.Line,z+y,0)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne-y)).add(new go.PathSegment(go.PathSegment.Line,E,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,z+y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,a)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne+y)).add(new go.PathSegment(go.PathSegment.Line,0,ne-y)).add(new go.PathSegment(go.PathSegment.Line,z-y,ne-y).close()))}),go.Shape.setFigureParameter("ThickX",0,new _e("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(le,E,a){var x=le?le.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),E===0||a===0){var y=new go.Geometry(go.Geometry.Rectangle);return y.startX=0,y.startY=0,y.endX=E,y.endY=a,y}else{var z=E/2,ne=a/2,re=Math.atan2(a,E),ie=x-Math.min(Math.cos(re)*x/2,z),ge=x-Math.min(Math.sin(re)*x/2,ne),y=new go.Geometry,fe=new go.PathFigure(ie,0,!0);return y.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,z,.2*a)),fe.add(new go.PathSegment(go.PathSegment.Line,E-ie,0)),fe.add(new go.PathSegment(go.PathSegment.Line,E,ge)),fe.add(new go.PathSegment(go.PathSegment.Line,.8*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,E,a-ge)),fe.add(new go.PathSegment(go.PathSegment.Line,E-ie,a)),fe.add(new go.PathSegment(go.PathSegment.Line,z,.8*a)),fe.add(new go.PathSegment(go.PathSegment.Line,ie,a)),fe.add(new go.PathSegment(go.PathSegment.Line,0,a-ge)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ge).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new _e("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var y=new go.Geometry,z=new go.PathFigure(.1*E,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),y}),go.Shape.setFigureParameter("SquareIBeam",0,new _e("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*E,(1-x)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*E,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*a).close()),y}),go.Shape.setFigureParameter("RoundedIBeam",0,new _e("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.5);var y=new go.Geometry,z=new go.PathFigure(0,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,a,Math.abs(1-x)*E,.25*a,Math.abs(1-x)*E,.75*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*E,.75*a,x*E,.25*a).close()),y}),go.Shape.defineFigureGenerator("HalfEllipse",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,Fe*E,0,E,(.5-Fe/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,(.5+Fe/2)*a,Fe*E,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,E,0,E,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*E,.75*a,.5*E,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*E,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,0,0,.45*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.55*E,0,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.5*a,.9*E,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*E,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.6*E,.2*a,E,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.7*a,E,.8*a,.6*E,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,.5*E,.75*a,.55*E,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*E,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.7*a,.45*E,.95*a,.5*E,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*E,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*E,.01*a,0,.25*a,.4*E,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.4*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.15*E,a,.5*E,.75*a,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.6*a,.55*E,.95*a,.5*E,.75*a));var z=.2,ne=.3,re=0,ie=z*Fe;return y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5+z+re)*a,(.5-z+ne)*E,(.5+ie+re)*a,(.5-ie+ne)*E,(.5+z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+ne)*E,(.5+re)*a,(.5+ie+ne)*E,(.5+z+re)*a,(.5+z+ne)*E,(.5+ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5-z+re)*a,(1-.5+z+ne)*E,(.5-ie+re)*a,(.5+ie+ne)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.65*E,.36771243*a,(.5-ie+ne)*E,(.5-z+re)*a,(.5-z+ne+.05)*E,(.5-ie+re-.02)*a)),z=.2,ne=0,re=-.3,ie=z*Fe,y.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+z+ne)*E,(.5+re)*a,(.5+ie+ne)*E,(.5+z+re)*a,(.5+z+ne)*E,(.5+ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5-z+re)*a,(1-.5+z+ne)*E,(.5-ie+re)*a,(.5+ie+ne)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+ne)*E,(.5+re)*a,(.5-ie+ne)*E,(.5-z+re)*a,(.5-z+ne)*E,(.5-ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ie+ne)*E,(.5+z+re)*a,(.5-z+ne)*E,(.5+ie+re)*a,(.5-ie+ne)*E,(.5+z+re)*a)),z=.2,ne=-.3,re=0,ie=z*Fe,y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5-z+re)*a,(1-.5+z+ne-.05)*E,(.5-ie+re-.02)*a,(.5+ie+ne)*E,(.5-z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5-z+ne)*E,(.5+re)*a,(.5-ie+ne)*E,(.5-z+re)*a,(.5-z+ne)*E,(.5-ie+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ne)*E,(.5+z+re)*a,(.5-z+ne)*E,(.5+ie+re)*a,(.5-ie+ne)*E,(.5+z+re)*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.6*a,(.5+ie+ne)*E,(.5+z+re)*a,(.5+z+ne)*E,(.5+ie+re)*a).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.5,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*.5,E*.5,E*.5,E*.5)),y.add(new go.PathSegment(go.PathSegment.Arc,90,-180,E*.5,E*.75,E*.25,E*.25)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,E*.5,E*.25,E*.25,E*.25));var z=.1,ne=.5,re=.25;return y.add(new go.PathSegment(go.PathSegment.Move,(ne+z)*E,re*a)),y.add(new go.PathSegment(go.PathSegment.Arc,0,-360,E*ne,a*re,z*E,z*E).close()),y=new go.PathFigure(E*.5,0,!1),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*.5,E*.5,E*.5,E*.5)),re=.75,y=new go.PathFigure((ne+z)*E,re*a,!0),x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,0,360,E*ne,a*re,z*E,z*E).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(le,E,a){var x=.8535533905932737,y=.5*E,z=.5*a;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,y,z,y,z)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,y,z)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,x*a)).add(new go.PathSegment(go.PathSegment.Move,y,z)).add(new go.PathSegment(go.PathSegment.Line,x*E,x*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=.5,re=.5,ie=new go.PathFigure(ne*E,(re-z)*a);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),z=.4,y=Fe*.4;var ge=b(),fe=b(),Pe=b(),Ue=b();Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.42,ge,fe,Pe,Ue,Ue);var Me=b(),lt=b(),Le=b();Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.58,Ue,Ue,Le,Me,lt);var Ce=b(),Xe=b(),nt=b();Ie(ne,re+z,ne-y,re+z,ne-z,re+y,ne-z,re,.42,Ce,Xe,nt,Ue,Ue);var ye=b(),gt=b(),pt=b();return Ie(ne,re+z,ne-y,re+z,ne-z,re+y,ne-z,re,.58,Ue,Ue,pt,ye,gt),ie.add(new go.PathSegment(go.PathSegment.Move,pt.x*E,pt.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,ye.x*E,ye.y*a,gt.x*E,gt.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,Pe.x*E,Pe.y*a,ge.x*E,ge.y*a,fe.x*E,fe.y*a)),ie.add(new go.PathSegment(go.PathSegment.Line,pt.x*E,pt.y*a).close()),ie.add(new go.PathSegment(go.PathSegment.Move,nt.x*E,nt.y*a)),ie.add(new go.PathSegment(go.PathSegment.Line,Le.x*E,Le.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,Me.x*E,Me.y*a,lt.x*E,lt.y*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,nt.x*E,nt.y*a,Ce.x*E,Ce.y*a,Xe.x*E,Xe.y*a).close()),he(ge),he(fe),he(Pe),he(Ue),he(Me),he(lt),he(Le),he(Ce),he(Xe),he(nt),he(ye),he(gt),he(pt),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*E,0)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*E,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*E,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.5*a,E,.25*a,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,a)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new _e("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>E&&(x=E);var y=(E-x)/2,z=y+x;return new go.Geometry().add(new go.PathFigure(z,.5*a).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,E,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*E,0)).add(new go.PathSegment(go.PathSegment.Line,.3*E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,E,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(le,E,a){var x=new go.Geometry,y=Fe*.4,z=.4,ne=.5,re=.5,ie=b(),ge=b(),fe=b(),Pe=b(),Ue=new go.PathFigure((ne-z)*E,re*a,!1);x.add(Ue),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.44,fe,Pe,ge,ie,ie),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*E,ge.y*a,fe.x*E,fe.y*a,Pe.x*E,Pe.y*a));var Me=oe(ge.x,ge.y);Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.56,ie,ie,ge,fe,Pe);var lt=oe(ge.x,ge.y);Ue.add(new go.PathSegment(go.PathSegment.Line,(Me.x*.1+.95*.9)*E,Me.y*.1*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,.85*E,Me.y*.1*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,.85*E,0)),Ue.add(new go.PathSegment(go.PathSegment.Line,E,0)),Ue.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,(lt.x*.1+.9)*E,.15*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,(lt.x*.1+.9)*E,(lt.y*.1+.05*.9)*a)),Ue.add(new go.PathSegment(go.PathSegment.Line,lt.x*E,lt.y*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,fe.x*E,fe.y*a,Pe.x*E,Pe.y*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),z=.35,y=Fe*.35;var Le=new go.PathFigure(ne*E,(re-z)*a,!1);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a));var Ce=new go.PathFigure((ne-z)*E,re*a,!1);return x.add(Ce),he(ie),he(ge),he(fe),he(Pe),he(Me),he(lt),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(le,E,a){var x=new go.Geometry,y=.375,z=0,ne=-.125,re=y*Fe,ie=new go.PathFigure((.525+z)*E,(.5+y+ne)*a,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+ne)*a,(.5+re+z)*E,(.5+y+ne)*a,(.5+y+z)*E,(.5+re+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+ne)*a,(1-.5+y+z)*E,(.5-re+ne)*a,(.5+re+z)*E,(.5-y+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+ne)*a,(.5-re+z)*E,(.5-y+ne)*a,(.5-y+z)*E,(.5-re+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.475+z)*E,(.5+y+ne)*a,(.5-y+z)*E,(.5+re+ne)*a,(.5-re+z)*E,(.5+y+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*E,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*E,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.425*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.475*E,a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*E,a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*E,.9*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.575*E,.85*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a).close()),y=.325,z=0,ne=-.125,re=y*Fe;var ie=new go.PathFigure((1-.5+y+z)*E,(.5+ne)*a,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5+y+ne)*a,(.5+y+z)*E,(.5+re+ne)*a,(.5+re+z)*E,(.5+y+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+ne)*a,(.5-re+z)*E,(.5+y+ne)*a,(.5-y+z)*E,(.5+re+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*E,(.5-y+ne)*a,(.5-y+z)*E,(.5-re+ne)*a,(.5-re+z)*E,(.5-y+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+y+z)*E,(.5+ne)*a,(.5+re+z)*E,(.5-y+ne)*a,(1-.5+y+z)*E,(.5-re+ne)*a));var ie=new go.PathFigure((.525+z)*E,(.5+y+ne)*a,!1);return x.add(ie),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(le,E,a){var x=le?le.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(le,E,a){var x=le?le.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,x*E,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,x*E,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(le,E,a){var x=new go.Geometry().add(new go.PathFigure(.5*E,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*E,.5*a,.5*E,.5*a)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.5*E,0)).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Move,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*E,a)).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,E,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(le,E,a){var x=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,E,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(le,E,a){var x=.5;return new go.Geometry().add(new go.PathFigure(E,0,!1).add(new go.PathSegment(go.PathSegment.Line,E,x*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*E,x*a,x*E,x*a)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new _e("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new _e("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=le?le.parameter2:NaN;isNaN(y)&&(y=.3);var z=(1-x)*E,ne=(.5-y/2)*a,re=(.5+y/2)*a,ie=new go.Geometry,ge=new go.PathFigure(0,ne,!0);ie.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,z,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,z,0)),ge.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Line,z,a)),ge.add(new go.PathSegment(go.PathSegment.Line,z,re)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),ie.spot1=new go.Spot(0,ne/a);var fe=Be(0,re/a,1,re/a,z/E,1,1,.5,b());return ie.spot2=new go.Spot(fe.x,fe.y),he(fe),ie}),go.Shape.setFigureParameter("Arrow2",0,new _e("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new _e("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=30),x>E&&(x=E);var y=le?le.parameter2:NaN;isNaN(y)&&(y=30),y=Math.min(y,a/2);var z=E-x,ne=(a-y)/2,re=ne+y,ie=new go.Geometry,ge=new go.PathFigure(0,ne,!0);ie.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,z,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,z,0)),ge.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Line,z,a)),ge.add(new go.PathSegment(go.PathSegment.Line,z,re)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),ie.spot1=new go.Spot(0,ne/a);var fe=Be(0,re/a,1,re/a,z/E,1,1,.5,b());return ie.spot2=new go.Spot(fe.x,fe.y),he(fe),ie}),go.Shape.defineFigureGenerator("Chevron",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.214*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.786*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new _e("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*a,z=(.5+x/2)*a,ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),re.add(new go.PathSegment(go.PathSegment.Line,.3*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close());var ie=Be(0,.5,.3,0,0,y/a,.1,y/a,b());return ne.spot1=new go.Spot(ie.x,ie.y),ie=Be(.7,1,1,.5,0,z/a,1,z/a,ie),ne.spot2=new go.Spot(ie.x,ie.y),he(ie),ne}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new _e("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new _e("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=40);var y=le?le.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,ne=z+x,re=(a-y)/2,ie=re+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,ne=z+x,re=0,ie=a):(z=0,ne=a,re=0,ie=a));var ge=new go.Geometry,fe=new go.PathFigure(E,.5*a,!0);ge.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,.3*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,.3*E,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),fe.add(new go.PathSegment(go.PathSegment.Line,.3*E,re)),fe.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,re).close());var Pe=Be(0,.5,.3,re/a,0,z/a,1,z/a,b());return ge.spot1=new go.Spot(Pe.x,Pe.y),Pe=Be(.7,ie/a,1,.5,0,ne/a,1,ne/a,Pe),ge.spot2=new go.Spot(Pe.x,Pe.y),he(Pe),ge}),go.Shape.setFigureParameter("IBeamArrow",0,new _e("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=(.5-x/2)*a,z=(.5+x/2)*a,ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,a)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ne.spot1=new go.Spot(0,y/a);var ie=Be(.7,1,1,.5,0,z/a,1,z/a,b());return ne.spot2=new go.Spot(ie.x,ie.y),he(ie),ne}),go.Shape.setFigureParameter("IBeamArrow2",0,new _e("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new _e("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=40);var y=le?le.parameter2:NaN;isNaN(y)&&(y=100);var z=(a-x)/2,ne=z+x,re=(a-y)/2,ie=re+y;(x>a||y>a)&&(y>x?(x=x*a/y,z=(a-x)/2,ne=z+x,re=0,ie=a):(z=0,ne=a,re=0,ie=a));var ge=new go.Geometry,fe=new go.PathFigure(E,.5*a,!0);ge.add(fe),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,ne)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,0,ie)),fe.add(new go.PathSegment(go.PathSegment.Line,0,re)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,re)),fe.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),fe.add(new go.PathSegment(go.PathSegment.Line,.7*E,re).close()),ge.spot1=new go.Spot(0,z/a);var Pe=Be(.7,ie/a,1,.5,0,ne/a,1,ne/a,b());return ge.spot2=new go.Spot(Pe.x,Pe.y),he(Pe),ge}),go.Shape.setFigureParameter("Pointer",0,new _e("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.1);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),y.spot1=new go.Spot(x,.35);var ne=Be(.2,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(ne.x,ne.y),he(ne),y}),go.Shape.setFigureParameter("RoundedPointer",0,new _e("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.3);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*E,.75*a,x*E,.25*a).close()),y.spot1=new go.Spot(x,.35);var ne=Be(0,.65,1,.65,0,1,1,.5,b());return y.spot2=new go.Spot(ne.x,ne.y),he(ne),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new _e("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.4);var y=(.5-x/2)*a,z=(.5+x/2)*a,ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ne.spot1=new go.Spot(.2,.3);var ie=Be(.7,1,1,.5,0,z/a,1,z/a,b());return ne.spot2=new go.Spot(ie.x,ie.y),he(ie),ne}),go.Shape.setFigureParameter("SplitEndArrow2",0,new _e("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=50);var y=(a-x)/2,z=y+x;x>a&&(y=0,z=a);var ne=new go.Geometry,re=new go.PathFigure(E,.5*a,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,y)),re.add(new go.PathSegment(go.PathSegment.Line,.7*E,0).close()),ne.spot1=new go.Spot(.2,y/a);var ie=Be(.7,1,1,.5,0,z/a,1,z/a,b());return ne.spot2=new go.Spot(ie.x,ie.y),he(ie),ne}),go.Shape.setFigureParameter("SquareArrow",0,new _e("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.7);var y=new go.Geometry,z=new go.PathFigure(E,.5*a,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,x*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,0).close()),y.spot1=go.Spot.TopLeft,y.spot2=new go.Spot(x,1),y}),go.Shape.defineFigureGenerator("Cone1",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=Fe*.1,ne=new go.PathFigure(0,.9*a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.9*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,a,.85/.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var z=new go.PathFigure(0,.9*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.9*a,(1-.85/.9)*E,.8*a,.85/.9*E,.8*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.3*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0).close());var z=new go.PathFigure(0,.3*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,.7*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,z=Fe*.5,ne=new go.PathFigure(0,x,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,Fe*x,(.5-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,1*E,x,(.5+z)*E,0,1*E,Fe*x)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,1*a,1*E,a-Fe*x,(.5+z)*E,1*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-z)*E,1*a,0,a-Fe*x)),ne.add(new go.PathSegment(go.PathSegment.Line,0,x));var re=new go.PathFigure(E,x,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,2*x,1*E,2*x-Fe*x,(.5+z)*E,2*x)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-z)*E,2*x,0,2*x-Fe*x)),y.spot1=new go.Spot(0,0,0,2*x),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder2",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var y=new go.Geometry,z=Fe*.5,ne=new go.PathFigure(0,a-x,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,x)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,Fe*x,(.5-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,x,(.5+z)*E,0,E,Fe*x)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-x)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,a-Fe*x,(.5+z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-z)*E,a,0,a-Fe*x));var re=new go.PathFigure(0,a-x,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a-2*x,0,a-x-Fe*x,(.5-z)*E,a-2*x)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,a-x,(.5+z)*E,a-2*x,E,a-x-Fe*x)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,0,-2*x),y}),go.Shape.defineFigureGenerator("Cylinder3",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,z=Fe*.5,ne=new go.PathFigure(x,0,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E-x,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-Fe*x,0,E,(.5-z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,(.5+z)*a,E-Fe*x,a)),ne.add(new go.PathSegment(go.PathSegment.Line,x,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,Fe*x,a,0,(.5+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*a,Fe*x,0));var re=new go.PathFigure(x,0,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*a,x+Fe*x,0,2*x,(.5-z)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,x,a,2*x,(.5+z)*a,x+Fe*x,a)),y.spot1=new go.Spot(0,0,2*x,0),y.spot2=new go.Spot(1,1),y}),go.Shape.defineFigureGenerator("Cylinder4",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,E/3);var y=new go.Geometry,z=Fe*.5,ne=new go.PathFigure(E-x,0,!0);y.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,E-Fe*x,0,E,(.5-z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E,(.5+z)*a,E-Fe*x,a)),ne.add(new go.PathSegment(go.PathSegment.Line,x,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,Fe*x,a,0,(.5+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-z)*a,Fe*x,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E-x,0));var re=new go.PathFigure(E-x,0,!1);return y.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,E-2*x,.5*a,E-x-Fe*x,0,E-2*x,(.5-z)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,E-x,a,E-2*x,(.5+z)*a,E-x-Fe*x,a)),y.spot1=new go.Spot(0,0),y.spot2=new go.Spot(1,1,-2*x,0),y}),go.Shape.defineFigureGenerator("Prism1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,.25*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.25*E,.25*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.25*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,.25*E,.5*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var z=new go.PathFigure(.5*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var z=new go.PathFigure(.5*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),z.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(le,E,a){var x=new go.Geometry,y=.2,z=.1,ne=Fe*y,re=Fe*z,ie=.5,ge=.1,fe=new go.PathFigure(ie*E,(ge+z)*a,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-y)*E,ge*a,(ie-ne)*E,(ge+z)*a,(ie-y)*E,(ge+re)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-z)*a,(ie-y)*E,(ge-re)*a,(ie-ne)*E,(ge-z)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+y)*E,ge*a,(ie+ne)*E,(ge-z)*a,(ie+y)*E,(ge-re)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge+z)*a,(ie+y)*E,(ge+re)*a,(ie+ne)*E,(ge+z)*a));var Pe=.05,Ue=Fe*Pe;ie=.05,ge=.25;var Me=new go.PathFigure(.5*E,.2*a,!0);return x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,.95*E,.2*a)),ie=.95,ge=.25,Me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+Pe)*E,ge*a,(ie+Ue)*E,(ge-Pe)*a,(ie+Pe)*E,(ge-Ue)*a)),Me.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),Me.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),Me.add(new go.PathSegment(go.PathSegment.Line,.85*E,.35*a)),Pe=.025,Ue=Fe*Pe,ie=.825,ge=.35,Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-Pe)*a,(ie+Pe)*E,(ge-Ue)*a,(ie+Ue)*E,(ge-Pe)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-Pe)*E,ge*a,(ie-Ue)*E,(ge-Pe)*a,(ie-Pe)*E,(ge-Ue)*a)),Me.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),Me.add(new go.PathSegment(go.PathSegment.Line,.55*E,a)),Me.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a)),Pe=.05,Ue=Fe*Pe,ie=.5,ge=.7,Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-Pe)*a,(ie+Pe)*E,(ge-Ue)*a,(ie+Ue)*E,(ge-Pe)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-Pe)*E,ge*a,(ie-Ue)*E,(ge-Pe)*a,(ie-Pe)*E,(ge-Ue)*a)),Me.add(new go.PathSegment(go.PathSegment.Line,.45*E,a)),Me.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),Me.add(new go.PathSegment(go.PathSegment.Line,.2*E,.35*a)),Pe=.025,Ue=Fe*Pe,ie=.175,ge=.35,Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-Pe)*a,(ie+Pe)*E,(ge-Ue)*a,(ie+Ue)*E,(ge-Pe)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-Pe)*E,ge*a,(ie-Ue)*E,(ge-Pe)*a,(ie-Pe)*E,(ge-Ue)*a)),Me.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),Me.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),Me.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),Pe=.05,Ue=Fe*Pe,ie=.05,ge=.25,Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-Pe)*a,(ie-Pe)*E,(ge-Ue)*a,(ie-Ue)*E,(ge-Pe)*a)),Me.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new _e("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(le,E,a){var x=le?le.parameter1:NaN;isNaN(x)&&(x=.2);var y=new go.Geometry,z=new go.PathFigure(E,0,!0);return y.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,x*a)),z.add(new go.PathSegment(go.PathSegment.Line,x*E,0).close()),y.spot1=new go.Spot(0,x),y.spot2=go.Spot.BottomRight,y}),go.Shape.defineFigureGenerator("Collate",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a));var z=new go.PathFigure(.5*E,.5*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(0,y*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),ne.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,(1-y)*a)),x}),go.Shape.defineFigureGenerator("Database",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=Fe*.1,ne=new go.PathFigure(E,.1*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+y)*E,0,E,(.1-z)*a));var re=new go.PathFigure(E,.1*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+y)*E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*E,.2*a,0,(.1+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+y)*E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*E,.3*a,0,(.2+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.4*a,E,(.3+z)*a,(.5+y)*E,.4*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-y)*E,.4*a,0,(.3+z)*a)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.9*a,.25*E,.1*a).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=Fe*.1,ne=new go.PathFigure(E,.1*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.9+z)*a,(.5+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-y)*E,a,0,(.9+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,(.1-z)*a,(.5-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,(.5+y)*E,0,E,(.1-z)*a));var re=new go.PathFigure(E,.1*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,E,(.1+z)*a,(.5+y)*E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-y)*E,.2*a,0,(.1+z)*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,.2*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.3*a,E,(.2+z)*a,(.5+y)*E,.3*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-y)*E,.3*a,0,(.2+z)*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,a,E,0,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)?y=.2:y<.15&&(y=.15);var z=Fe*.2,ne=new go.PathFigure(0,.2*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,0,(.2-z)*a,(.2-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.2*a,(.8+z)*E,0,E,(.2-z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,a,E,(.8+z)*a,(.8+z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-z)*E,a,0,(.8+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var re=new go.PathFigure(0,y*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;(isNaN(y)||y<.1)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(0,y*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,y*a)),x}),go.Shape.defineFigureGenerator("Document",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;(isNaN(y)||y<.2)&&(y=.2);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(y*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y*a)),ne.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Move,0,(1-y)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),ne.add(new go.PathSegment(go.PathSegment.Move,(1-y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,(1-y)*a)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(.1*E,.4*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.9*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.6*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Move,.4*E,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.9*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(.75*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a));var z=new go.PathFigure(E,.5*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,a));var ne=new go.PathFigure(E,.5*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.1);var ne=new go.PathFigure(0,0,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var re=new go.PathFigure(y*E,0,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),re.add(new go.PathSegment(go.PathSegment.Move,0,z*a)),re.add(new go.PathSegment(go.PathSegment.Line,E,z*a)),x}),go.Shape.defineFigureGenerator("Junction",function(le,E,a){var x=new go.Geometry,y=1/Math.SQRT2,z=(1-1/Math.SQRT2)/2,ne=Fe*.5,re=.5,ie=new go.PathFigure(E,re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,re*E,a,E,(re+ne)*a,(re+ne)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,re*a,(re-ne)*E,a,0,(re+ne)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,re*E,0,0,(re-ne)*a,(re-ne)*E,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,re*a,(re+ne)*E,0,E,(re-ne)*a));var ge=new go.PathFigure((z+y)*E,(z+y)*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,z*E,z*a)),ge.add(new go.PathSegment(go.PathSegment.Move,z*E,(z+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Line,(z+y)*E,z*a)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close());var z=new go.PathFigure(.1*E,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.75*a)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=new go.PathFigure(.5*E,a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+.1)*E,.9*a,E,(z+y)*a,(z+y)*E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.7);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.25);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,y*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.44*a,.96*E,.47*a,.93*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.54*a,.86*E,.57*a,.83*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*E,.4*a,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,0).close());var z=new go.PathFigure(.1*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.44*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,.1*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close());var z=new go.PathFigure(.2*E,.1*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Move,.1*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.9*a)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=1-y,ne=new go.PathFigure(0,0,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close());var re=new go.PathFigure(.5*y*E,y*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,(1-.5*y)*E,y*a)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=new go.PathFigure(E,z*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+y)*a,(z+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a));var re=new go.PathFigure(E,.5*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),re.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(le,E,a){var x=new go.Geometry;a=a/.8;var y=new go.PathFigure(0,.7*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.3*a,.5*E,.6*a,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*E,.4*a,.5*E,a).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.3);var ne=new go.PathFigure(0,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN,z=le?le.parameter2:NaN;isNaN(y)&&(y=.1),isNaN(z)&&(z=.3);var ne=new go.PathFigure(0,0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure((1-y)*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Move,y*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),x}),go.Shape.defineFigureGenerator("Process",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ne=new go.PathFigure(y*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var z=new go.PathFigure(0,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.25);var z=new go.PathFigure(y*E,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a));var ne=new go.PathFigure(y*E,0,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,y*E,a)),ne.add(new go.PathSegment(go.PathSegment.Move,(1-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-y)*E,a)),x.spot1=new go.Spot(y,0),x.spot2=new go.Spot(1-y,1),x}),go.Shape.defineFigureGenerator("Terminator",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.25*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*E,.5*a,.25*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*E,.5*a,.25*E,.5*a)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(le,E,a){var x=new go.Geometry,y=le?le.parameter1:NaN;isNaN(y)&&(y=.1);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,(1-y)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,(1-y)*a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(.5+y)*E,0,E,(.5-y)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,(.5+y)*a,(.5+y)*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=new go.PathFigure(E,z*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,a,E,(z+y)*a,(z+y)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,z*a,(z-y)*E,a,0,(z+y)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*E,0,0,(z-y)*a,(z-y)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,z*a,(z+y)*E,0,E,(z-y)*a));var re=new go.PathFigure(E,z*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,z*a));var ie=new go.PathFigure(.8*E,.75*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.8*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.6*E,.75*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*E,.75*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*E,.75*a)),x}),go.Shape.defineFigureGenerator("Ground",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Move,.3*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),x}),go.Shape.defineFigureGenerator("Inverter",function(le,E,a){var x=new go.Geometry,y=Fe*.1,z=.1,ne=.9,re=.5,ie=new go.PathFigure(.8*E,.5*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,0,a)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a));var ge=new go.PathFigure((ne+z)*E,re*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re-z)*a,(ne+z)*E,(re-y)*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=Fe*.4,ne=Fe*.1,re=.1,ie=.9,ge=.5,fe=new go.PathFigure(.8*E,.5*a,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,.8*E,(.5+z)*a,(.4+y)*E,a)),fe.add(new go.PathSegment(go.PathSegment.Line,0,a)),fe.add(new go.PathSegment(go.PathSegment.Line,0,0)),fe.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),fe.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(.4+y)*E,0,.8*E,(.5-z)*a));var Pe=new go.PathFigure((ie+re)*E,ge*a,!0);return x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge+re)*a,(ie+re)*E,(ge+ne)*a,(ie+ne)*E,(ge+re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E,ge*a,(ie-ne)*E,(ge+re)*a,(ie-re)*E,(ge+ne)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-re)*a,(ie-re)*E,(ge-ne)*a,(ie-ne)*E,(ge-re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E,ge*a,(ie+ne)*E,(ge-re)*a,(ie+re)*E,(ge-ne)*a)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*y,ne=0,re=.5,ie=new go.PathFigure(.8*E,.5*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(ne+z)*E,(re-y)*a,.7*E,(re-z)*a)),y=.1,z=Fe*.1,ne=.9,re=.5;var ge=new go.PathFigure((ne-y)*E,re*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*y,ne=0,re=.5,ie=new go.PathFigure(0,0,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(ne+z+z)*E,(re-y)*a,.8*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*E,(re+z)*a,(ne+z+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*E,.75*a,.25*E,.25*a).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*y,ne=.2,re=.5,ie=new go.PathFigure(.1*E,0,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ge=new go.PathFigure(.8*E,.5*a,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.7*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.5*a,(ne+z)*E,(re-y)*a,.7*E,(re-z)*a)),y=.1,z=Fe*.1,ne=.9,re=.5;var fe=new go.PathFigure((ne-y)*E,re*a,!0);return x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*y,ne=.2,re=.5,ie=new go.PathFigure(.1*E,0,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,a,.35*E,.25*a,.35*E,.75*a));var ge=new go.PathFigure(.2*E,0,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(ne+z)*E,(re-y)*a,.9*E,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.9*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("Resistor",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),x}),go.Shape.defineFigureGenerator("Inductor",function(le,E,a){var x=new go.Geometry,y=Fe*.1,z=.1,ne=.1,re=.5,ie=new go.PathFigure((ne-y*.5)*E,a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.3,ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,a,(ne+z)*E,0,(ne+y)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.5,ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,a,(ne+z)*E,0,(ne+y)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.7,ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,a,(ne+z)*E,0,(ne+y)*E,a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,0,(ne-y)*E,a,(ne-z)*E,0)),ne=.9,ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y*.5)*E,a,(ne+z)*E,0,(ne+y)*E,a)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(le,E,a){var x=new go.Geometry,y=Fe*.5,z=.5,ne=.5,re=.5,ie=new go.PathFigure((ne-z)*E,re*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-z)*a,(ne-z)*E,(re-y)*a,(ne-y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re-z)*a,(ne+z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Move,(ne-z+.1)*E,re*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z-.1)*E,re*a,ne*E,(re-z)*a,ne*E,(re+z)*a)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("Diode",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(le,E,a){var x=new go.Geometry,y=E,z=a;E=E*.38,a=a*.6;var ne=Fe*.8,re=.8,ie=0,ge=.5,fe=(y-E)/2,Pe=(z-a)/2,Ue=new go.PathFigure(ie*E+fe,(ge+re)*a+Pe,!0);x.add(Ue),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E+fe,ge*a+Pe,(ie-ne)*E+fe,(ge+re)*a+Pe,(ie-re)*E+fe,(ge+ne)*a+Pe)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie-re)*E+fe,(ge-ne)*a+Pe,(ie-ne)*E+fe,(ge-re)*a+Pe)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re+ne*.5)*E+fe,ge*a+Pe,ie*E+fe,(ge-re)*a+Pe,(ie-re+ne*.5)*E+fe,(ge-ne)*a+Pe)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie-re+ne*.5)*E+fe,(ge+ne)*a+Pe,ie*E+fe,(ge+re)*a+Pe).close()),ne=Fe*.4,re=.4,ie=.2,ge=.5;var Me=new go.PathFigure(ie*E+fe,(ge+re)*a+Pe,!0);x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E+fe,ge*a+Pe,(ie-ne)*E+fe,(ge+re)*a+Pe,(ie-re)*E+fe,(ge+ne)*a+Pe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie-re)*E+fe,(ge-ne)*a+Pe,(ie-ne)*E+fe,(ge-re)*a+Pe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re+ne*.5)*E+fe,ge*a+Pe,ie*E+fe,(ge-re)*a+Pe,(ie-re+ne*.5)*E+fe,(ge-ne)*a+Pe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie-re+ne*.5)*E+fe,(ge+ne)*a+Pe,ie*E+fe,(ge+re)*a+Pe).close()),ne=Fe*.2,re=.2,ie=.5,ge=.5;var lt=new go.PathFigure((ie-re)*E+fe,ge*a+Pe,!0);x.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie-re)*E+fe,(ge-ne)*a+Pe,(ie-ne)*E+fe,(ge-re)*a+Pe)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E+fe,ge*a+Pe,(ie+ne)*E+fe,(ge-re)*a+Pe,(ie+re)*E+fe,(ge-ne)*a+Pe)),lt.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie+re)*E+fe,(ge+ne)*a+Pe,(ie+ne)*E+fe,(ge+re)*a+Pe)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(ie-re)*E+fe,ge*a+Pe,(ie-ne)*E+fe,(ge+re)*a+Pe,(ie-re)*E+fe,(ge+ne)*a+Pe)),ne=Fe*.4,re=.4,ie=.8,ge=.5;var Le=new go.PathFigure(ie*E+fe,(ge-re)*a+Pe,!0);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E+fe,ge*a+Pe,(ie+ne)*E+fe,(ge-re)*a+Pe,(ie+re)*E+fe,(ge-ne)*a+Pe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie+re)*E+fe,(ge+ne)*a+Pe,(ie+ne)*E+fe,(ge+re)*a+Pe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re-ne*.5)*E+fe,ge*a+Pe,ie*E+fe,(ge+re)*a+Pe,(ie+re-ne*.5)*E+fe,(ge+ne)*a+Pe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie+re-ne*.5)*E+fe,(ge-ne)*a+Pe,ie*E+fe,(ge-re)*a+Pe).close()),ne=Fe*.8,re=.8,ie=1,ge=.5;var Ce=new go.PathFigure(ie*E+fe,(ge-re)*a+Pe,!0);return x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re)*E+fe,ge*a+Pe,(ie+ne)*E+fe,(ge-re)*a+Pe,(ie+re)*E+fe,(ge-ne)*a+Pe)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge+re)*a+Pe,(ie+re)*E+fe,(ge+ne)*a+Pe,(ie+ne)*E+fe,(ge+re)*a+Pe)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie+re-ne*.5)*E+fe,ge*a+Pe,ie*E+fe,(ge+re)*a+Pe,(ie+re-ne*.5)*E+fe,(ge+ne)*a+Pe)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*E+fe,(ge-re)*a+Pe,(ie+re-ne*.5)*E+fe,(ge-ne)*a+Pe,ie*E+fe,(ge-re)*a+Pe).close()),x}),go.Shape.defineFigureGenerator("Email",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Move,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.54*a)),x}),go.Shape.defineFigureGenerator("Ethernet",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.35*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,0).close());var z=new go.PathFigure(.1*E,a,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var ne=new go.PathFigure(.6*E,a,!0,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,.6*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*E,.6*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*E,a).close());var re=new go.PathFigure(0,.5*a,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.5*E,.4*a)),re.add(new go.PathSegment(go.PathSegment.Move,.75*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.75*E,.6*a)),re.add(new go.PathSegment(go.PathSegment.Move,.25*E,.5*a)),re.add(new go.PathSegment(go.PathSegment.Line,.25*E,.6*a)),x}),go.Shape.defineFigureGenerator("Power",function(le,E,a){var x=new go.Geometry,y=Fe*.4,z=.4,ne=.5,re=.5,ie=b(),ge=b(),fe=b(),Pe=b();Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.5,ie,ie,ge,fe,Pe);var Ue=oe(ge.x,ge.y),Me=new go.PathFigure(ge.x*E,ge.y*a,!0);x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,fe.x*E,fe.y*a,Pe.x*E,Pe.y*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne+z)*E,(re+y)*a,(ne+y)*E,(re+z)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,(ne-y)*E,(re+z)*a,(ne-z)*E,(re+y)*a)),Ie(ne-z,re,ne-z,re-y,ne-y,re-z,ne,re-z,.5,fe,Pe,ge,ie,ie),Me.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*E,ge.y*a,fe.x*E,fe.y*a,Pe.x*E,Pe.y*a)),y=Fe*.3,z=.3,Ie(ne-z,re,ne-z,re-y,ne-y,re-z,ne,re-z,.5,fe,Pe,ge,ie,ie),Me.add(new go.PathSegment(go.PathSegment.Line,ge.x*E,ge.y*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*E,re*a,Pe.x*E,Pe.y*a,fe.x*E,fe.y*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+z)*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*E,re*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),Ie(ne,re-z,ne+y,re-z,ne+z,re-y,ne+z,re,.5,ie,ie,ge,fe,Pe),Me.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*E,ge.y*a,Pe.x*E,Pe.y*a,fe.x*E,fe.y*a).close());var Me=new go.PathFigure(.45*E,0,!0);return x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Line,.45*E,.5*a)),Me.add(new go.PathSegment(go.PathSegment.Line,.55*E,.5*a)),Me.add(new go.PathSegment(go.PathSegment.Line,.55*E,0).close()),he(ie),he(ge),he(fe),he(Pe),he(Ue),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a/2,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,180,360,E/2,a/2,E/2,a/2));function z(ne,re,ie){ne.add(new go.PathSegment(go.PathSegment.Move,(.3+re)*E,(.8+ie)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(.5+re)*E,(.5+ie)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(.1+re)*E,(.5+ie)*a)),ne.add(new go.PathSegment(go.PathSegment.Line,(.3+re)*E,(.8+ie)*a).close())}return z(y,0,0),z(y,.4,0),z(y,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.2*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.37*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.11*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*E,.04*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.49*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.37*a)),y.add(new go.PathSegment(go.PathSegment.Line,.63*E,.86*a)),y.add(new go.PathSegment(go.PathSegment.Line,.77*E,.91*a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.34*E,.78*a)),y.add(new go.PathSegment(go.PathSegment.Line,.44*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.56*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.29*E,0,-.25*E,.63*a,.45*E,.44*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.51*E,.42*a,.48*E,.17*a,.54*E,.35*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.59*E,.18*a,.59*E,.29*a,.58*E,.28*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.75*E,.6*a,.8*E,.34*a,.88*E,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.88*E,.31*a,.87*E,.48*a,.88*E,.43*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,1.17*E,.76*a,.82*E,.8*a).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(le,E,a){var x=new go.Geometry,y=.5,z=0,ne=0,re=y*Fe,ie=.4*Math.SQRT2/2+.5,ge=.5-.5*Math.SQRT2/2,fe=1,Pe=.5,Ue=.5,Me=0,lt=new go.PathFigure(ie*E,(1-ge)*a,!1);return x.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,Pe*a,fe*E,.7*a,fe*E,Pe*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+z)*E,(Me+z)*a,(.5+y+z)*E,(.5-re+z)*a,(.5+re+z)*E,(.5-y+z)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-y+z)*E,(.5+ne)*a,(.5-re+z)*E,(.5-y+ne)*a,(.5-y+z)*E,(.5-re+ne)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(.35+z)*E,.9*a,(.5-y+z)*E,(.5+re+ne)*a,(.5-re+z)*E,.9*a)),lt.add(new go.PathSegment(go.PathSegment.Move,(.25+z)*E,.8*a)),lt.add(new go.PathSegment(go.PathSegment.Line,(.35+z)*E,.9*a)),lt.add(new go.PathSegment(go.PathSegment.Line,(.2+z)*E,.95*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var ne=new go.PathFigure(0,.5*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.2*E,.35*a,.3*E,.35*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.7*E,.65*a,.8*E,.65*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var y=new go.PathFigure(0,.2*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.7*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,0,.6*E,.5*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,a,.4*E,.5*a,E,.5*a).close());var z=new go.PathFigure(.45*E,.73*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.7*E,.73*a)),z.add(new go.PathSegment(go.PathSegment.Move,.38*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.63*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Move,.31*E,.27*a)),z.add(new go.PathSegment(go.PathSegment.Line,.56*E,.27*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(.335*E,(1-.555)*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,.68*a,(1-.12)*E,.46*a,(1-.02)*E,.54*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.335*E,(1-.555)*a,.02*E,.54*a,.12*E,.46*a)),z.add(new go.PathSegment(go.PathSegment.Line,.365*E,(1-.595)*a));var ne=.5-.285,re=.5,ie=ne,ge=Math.PI/4,fe=4*(1-Math.cos(ge))/(3*Math.sin(ge)),Pe=fe*.5,Ue=ne,Me=ne,lt=fe*Ue,Le=fe*Me;z.add(new go.PathSegment(go.PathSegment.Bezier,(re-Ue)*E,ie*a,(re-(lt+Ue)/2)*E,(ie+(Me+Le)/2)*a,(re-Ue)*E,(ie+Le)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,re*E,(ie-Me)*a,(re-Ue)*E,(ie-Le)*a,(re-lt)*E,(ie-Me)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(re+Ue)*E,ie*a,(re+lt)*E,(ie-Me)*a,(re+Ue)*E,(ie-Le)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*E,(1-.595)*a,(re+Ue)*E,(ie+Le)*a,(re+(lt+Ue)/2)*E,(ie+(Me+Le)/2)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*E,(1-.595)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.555)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*E,(1-.405)*a)),z.add(new go.PathSegment(go.PathSegment.Line,.335*E,(1-.405)*a));var Ce=new go.PathFigure(.2*E,a,!1);x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Line,.2*E,.8*a));var Xe=new go.PathFigure(.8*E,a,!1);return x.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,a).close());var z=new go.PathFigure(.2*E,.2*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y);var z=new go.PathFigure(E,a,!1);x.add(z);var ne=new go.PathFigure(.1*E,a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Caution",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.05*E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.8*a,0,a,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.55*E,.1*a,.5*E,0,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.95*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,a,E,a,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,a));var z=.05;return y.add(new go.PathSegment(go.PathSegment.Move,(.5-z)*E,.875*a)),y.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*E,.875*a,z*E,z*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.325*a,.575*E,.725*a,.625*E,.375*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.75*a,.375*E,.375*a,.425*E,.725*a)),x}),go.Shape.defineFigureGenerator("Recycle",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.45*E,.95*a,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.185*E,.85*a,.17*E,.95*a,.15*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.235*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,.3*E,.625*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,.275*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.05*E,.575*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.1875*E,.95*a,0,.675*a,0,.7*a)),y.add(new go.PathSegment(go.PathSegment.Move,.45*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.775*a)),y.add(new go.PathSegment(go.PathSegment.Line,.22*E,.775*a));var z=new go.PathFigure(.475*E,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.4*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.225*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Line,.275*E,.175*a)),z.add(new go.PathSegment(go.PathSegment.Line,.325*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,.05*a,.35*E,0,.375*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.575*E,.375*a)),z.add(new go.PathSegment(go.PathSegment.Line,.525*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.75*E,.475*a)),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.315*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.32*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.05*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,0,.65*E,.05*a,.625*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.38*E,.0105*a));var ne=new go.PathFigure(.675*E,.575*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.875*E,.525*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.85*E,.95*a,E,.8*a,E,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,.95*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.85*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,.725*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.65*E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.7*E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Line,E,.775*a)),ne.add(new go.PathSegment(go.PathSegment.Move,.675*E,.575*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.775*E,.775*a)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*.5,ne=new go.PathFigure(E,y*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,y*E,a,E,(y+z)*a,(y+z)*E,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y*a,(y-z)*E,a,0,(y+z)*a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,y*E,0,0,(y-z)*a,(y-z)*E,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E,y*a,(y+z)*E,0,E,(y-z)*a));var re=new go.PathFigure(y*E,0,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,y*E,.15*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,a)),re.add(new go.PathSegment(go.PathSegment.Line,y*E,.85*a)),re.add(new go.PathSegment(go.PathSegment.Move,0,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.15*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Move,E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.85*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.58*E,.1*a)),re.add(new go.PathSegment(go.PathSegment.Move,y*E,y*a)),re.add(new go.PathSegment(go.PathSegment.Line,.78*E,.54*a)),x}),go.Shape.defineFigureGenerator("Package",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.15*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,.15*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,0)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.65*E,.15*a).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var ne=new go.PathFigure(0,.5*a,!1);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,.5*a).close()),x}),go.Shape.defineFigureGenerator("Component",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close());var z=new go.PathFigure(0,.2*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.2*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var ne=new go.PathFigure(0,.6*a,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.45*E,.6*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.45*E,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.15*E,.6*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.6*a));var z=new go.PathFigure(.15*E,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.85*E,.6*a)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.66*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,.33*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.65*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.35*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.33*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),y.add(new go.PathSegment(go.PathSegment.Move,E,.66*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(E,.8*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.8*a).close());var ne=.1,re=Fe*.1,ie=.2,ge=.9,fe=new go.PathFigure((ie-ne)*E,ge*a,!0);x.add(fe),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-ne)*a,(ie-ne)*E,(ge-re)*a,(ie-re)*E,(ge-ne)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*E,ge*a,(ie+re)*E,(ge-ne)*a,(ie+ne)*E,(ge-re)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge+ne)*a,(ie+ne)*E,(ge+re)*a,(ie+re)*E,(ge+ne)*a)),fe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*E,ge*a,(ie-re)*E,(ge+ne)*a,(ie-ne)*E,(ge+re)*a).close()),ne=.1,re=Fe*.1,ie=.8,ge=.9;var Pe=new go.PathFigure((ie-ne)*E,ge*a,!0);return x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge-ne)*a,(ie-ne)*E,(ge-re)*a,(ie-re)*E,(ge-ne)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie+ne)*E,ge*a,(ie+re)*E,(ge-ne)*a,(ie+ne)*E,(ge-re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ie*E,(ge+ne)*a,(ie+ne)*E,(ge+re)*a,(ie+re)*E,(ge+ne)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ie-ne)*E,ge*a,(ie-re)*E,(ge+ne)*a,(ie-ne)*E,(ge+re)*a).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.2*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,0)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,a)),x}),go.Shape.defineFigureGenerator("Forklift",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0));var z=new go.PathFigure(0,.5*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var ne=new go.PathFigure(.5*E,.8*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.1*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.8*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.5*E,.8*a));var re=new go.PathFigure(.5*E,.7*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.7*a));var ie=.1,ge=Fe*.1,fe=.1,Pe=.9,Ue=new go.PathFigure((fe-ie)*E,Pe*a,!0);x.add(Ue),Ue.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,(Pe-ie)*a,(fe-ie)*E,(Pe-ge)*a,(fe-ge)*E,(Pe-ie)*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(fe+ie)*E,Pe*a,(fe+ge)*E,(Pe-ie)*a,(fe+ie)*E,(Pe-ge)*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,(Pe+ie)*a,(fe+ie)*E,(Pe+ge)*a,(fe+ge)*E,(Pe+ie)*a)),Ue.add(new go.PathSegment(go.PathSegment.Bezier,(fe-ie)*E,Pe*a,(fe-ge)*E,(Pe+ie)*a,(fe-ie)*E,(Pe+ge)*a)),ie=.1,ge=Fe*.1,fe=.4,Pe=.9;var Me=new go.PathFigure((fe-ie)*E,Pe*a,!0);return x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,(Pe-ie)*a,(fe-ie)*E,(Pe-ge)*a,(fe-ge)*E,(Pe-ie)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(fe+ie)*E,Pe*a,(fe+ge)*E,(Pe-ie)*a,(fe+ie)*E,(Pe-ge)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,fe*E,(Pe+ie)*a,(fe+ie)*E,(Pe+ge)*a,(fe+ge)*E,(Pe+ie)*a)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(fe-ie)*E,Pe*a,(fe-ge)*E,(Pe+ie)*a,(fe-ie)*E,(Pe+ge)*a)),x}),go.Shape.defineFigureGenerator("RailShipment",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.1*E,.4*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.45*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.4*a).close());var z=new go.PathFigure(.45*E,.7*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.55*E,.7*a));var ne=new go.PathFigure(.55*E,.4*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.9*E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.9*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.55*E,.4*a).close());var fe=.05,Pe=Fe*.05,Ue=.175,Me=.95,re=new go.PathFigure((Ue-fe)*E,Me*a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Me-fe)*a,(Ue-fe)*E,(Me-Pe)*a,(Ue-Pe)*E,(Me-fe)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+fe)*E,Me*a,(Ue+Pe)*E,(Me-fe)*a,(Ue+fe)*E,(Me-Pe)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Me+fe)*a,(Ue+fe)*E,(Me+Pe)*a,(Ue+Pe)*E,(Me+fe)*a)),re.add(new go.PathSegment(go.PathSegment.Bezier,(Ue-fe)*E,Me*a,(Ue-Pe)*E,(Me+fe)*a,(Ue-fe)*E,(Me+Pe)*a));var fe=.05,Pe=Fe*.05,Ue=.375,Me=.95,ie=new go.PathFigure((Ue-fe)*E,Me*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Me-fe)*a,(Ue-fe)*E,(Me-Pe)*a,(Ue-Pe)*E,(Me-fe)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+fe)*E,Me*a,(Ue+Pe)*E,(Me-fe)*a,(Ue+fe)*E,(Me-Pe)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Me+fe)*a,(Ue+fe)*E,(Me+Pe)*a,(Ue+Pe)*E,(Me+fe)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ue-fe)*E,Me*a,(Ue-Pe)*E,(Me+fe)*a,(Ue-fe)*E,(Me+Pe)*a));var fe=.05,Pe=Fe*.05,Ue=.625,Me=.95,ge=new go.PathFigure((Ue-fe)*E,Me*a,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Me-fe)*a,(Ue-fe)*E,(Me-Pe)*a,(Ue-Pe)*E,(Me-fe)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+fe)*E,Me*a,(Ue+Pe)*E,(Me-fe)*a,(Ue+fe)*E,(Me-Pe)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Me+fe)*a,(Ue+fe)*E,(Me+Pe)*a,(Ue+Pe)*E,(Me+fe)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Ue-fe)*E,Me*a,(Ue-Pe)*E,(Me+fe)*a,(Ue-fe)*E,(Me+Pe)*a));var fe=.05,Pe=Fe*.05,Ue=.825,Me=.95,lt=new go.PathFigure((Ue-fe)*E,Me*a,!0);x.add(lt),lt.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Me-fe)*a,(Ue-fe)*E,(Me-Pe)*a,(Ue-Pe)*E,(Me-fe)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Ue+fe)*E,Me*a,(Ue+Pe)*E,(Me-fe)*a,(Ue+fe)*E,(Me-Pe)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,Ue*E,(Me+fe)*a,(Ue+fe)*E,(Me+Pe)*a,(Ue+Pe)*E,(Me+fe)*a)),lt.add(new go.PathSegment(go.PathSegment.Bezier,(Ue-fe)*E,Me*a,(Ue-Pe)*E,(Me+fe)*a,(Ue-fe)*E,(Me+Pe)*a).close());var Le=new go.PathFigure(0,a,!1);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Line,E,a).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var z=new go.PathFigure(0,.2*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.2*a).close());var ne=new go.PathFigure(.15*E,a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.15*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*E,.5*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*E,a)),ne.add(new go.PathSegment(go.PathSegment.Line,.15*E,a).close());var re=.05,ie=Fe*.05,ge=.35,fe=.775,Pe=new go.PathFigure((ge-re)*E,fe*a,!0);return x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*E,(fe-re)*a,(ge-re)*E,(fe-ie)*a,(ge-ie)*E,(fe-re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge+re)*E,fe*a,(ge+ie)*E,(fe-re)*a,(ge+re)*E,(fe-ie)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,ge*E,(fe+re)*a,(ge+re)*E,(fe+ie)*a,(ge+ie)*E,(fe+re)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(ge-re)*E,fe*a,(ge-ie)*E,(fe+re)*a,(ge-re)*E,(fe+ie)*a).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.75*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),y.add(new go.PathSegment(go.PathSegment.Line,0,0)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Move,.2*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,.8*E,.4*a)),x}),go.Shape.defineFigureGenerator("Globe",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,.75*E,0,E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,E,.75*a,.75*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*E,a,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,0,.25*a,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,a,.15*E,.25*a,.15*E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.85*E,.75*a,.85*E,.25*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.15*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.15*a,.35*E,.3*a,.65*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.1675*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8325*E,.85*a,.35*E,.7*a,.65*E,.7*a)),x}),go.Shape.defineFigureGenerator("Wave",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.25*a,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.25*a,.1*E,0,.2*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.25*a,.425*E,.5*a,.575*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.25*a,.8*E,0,.9*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.75*a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.75*a,.1*E,.5*a,.2*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.7*E,.75*a,.425*E,a,.575*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.75*a,.8*E,.5*a,.9*E,.5*a)),x}),go.Shape.defineFigureGenerator("Operator",function(le,E,a){var x=new go.Geometry,y=.3,z=Fe*.3,ne=.5,re=.7,ie=new go.PathFigure((ne-y)*E,re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a));var ge=new go.PathFigure(0,.7*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,E,.7*a,0,0,E,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.5*E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.65*E,.3*a,.65*E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.35*E,.5*a,.35*E,.3*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*E,.6*a,.1*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.2*E,a,.35*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.65*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,a,.7*E,.6*a,.9*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.65*a,.8*E,a,.65*E,.95*a)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E,0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,0,a,.4*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.4*a,.8*E,a,.85*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,0)),x}),go.Shape.defineFigureGenerator("Battery",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,.4*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.1*a));var z=new go.PathFigure(0,.6*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,E,.4*a)),x}),go.Shape.defineFigureGenerator("Delete",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*.5,ne=.5,re=.5,ie=new go.PathFigure((ne-y)*E,re*a,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a));var ge=new go.PathFigure(.15*E,.5*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*E,.5*a)),x}),go.Shape.defineFigureGenerator("Flag",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.1*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.1*a,.15*E,0,.35*E,0)),y.add(new go.PathSegment(go.PathSegment.Bezier,E,.1*a,.65*E,.2*a,.85*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.5*a,.85*E,.6*a,.65*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*E,.4*a,.15*E,.4*a).close()),x}),go.Shape.defineFigureGenerator("Help",function(le,E,a){var x=new go.Geometry,y=.5,z=Fe*.5,ne=.5,re=.5,ie=new go.PathFigure((ne-y)*E,re*a,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a).close()),y=.05,z=Fe*.05,ne=.5,re=.8;var ge=new go.PathFigure((ne-y)*E,re*a,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re-y)*a,(ne-y)*E,(re-z)*a,(ne-z)*E,(re-y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+y)*E,re*a,(ne+z)*E,(re-y)*a,(ne+y)*E,(re-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*E,(re+y)*a,(ne+y)*E,(re+z)*a,(ne+z)*E,(re+y)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-y)*E,re*a,(ne-z)*E,(re+y)*a,(ne-y)*E,(re+z)*a).close()),ge.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,.75*E,.475*a,.75*E,.225*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.35*a,.4*E,.2*a,.3*E,.25*a)),x}),go.Shape.defineFigureGenerator("Location",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.5*E,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*E,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*E,0,.975*E,.025*a,.5*E,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*E,.5*a,.5*E,0,.025*E,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*E,.3*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.3*a)),x}),go.Shape.defineFigureGenerator("Unlocked",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.2*E,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Move,.2*E,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*E,.3*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*E,.3*a,.25*E,0,.75*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*E,.35*a)),x}),go.Shape.defineFigureGenerator("Gear",function(le,E,a){return new go.Geometry().add(new go.PathFigure(.9375*E,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*E,.3316875*a,.79840625*E,.39915625*a,.7834375*E,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*E,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*E,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*E,.19378125*a,.64228125*E,.2188125*a,.603875*E,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*E,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*E,.239375*a,.39759375*E,.20190625*a,.36053125*E,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*E,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*E,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*E,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*E,.4375*a,.21765625*E,.36059375*a,.201875*E,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*E,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*E,.67596875*a,.20221875*E,.603875*a,.21884375*E,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*E,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*E,.80621875*a,.36353125*E,.78340625*a,.3991875*E,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*E,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*E,.760625*a,.602375*E,.79809375*a,.63946875*E,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*E,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*E,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*E,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*E,.56246875*a,.78234375*E,.63940625*a,.798125*E,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*E,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*E,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*E,.5*a,.1*E,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.5*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Bezier,.1*E,.3*a,0,.375*a,.05*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.45*E,.075*a,.3*E,.225*a,.4*E,.175*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.525*E,.075*a,.46*E,.05*a,.525*E,.05*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.3*E,.4*a,.525*E,.275*a,.475*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.55*a,E,.4*a,E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.425*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.55*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.6*E,.7*a,.675*E,.55*a,.675*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.575*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.575*E,.85*a,.65*E,.7*a,.65*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Line,.525*E,.85*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.535*E,a,.61*E,.85*a,.61*E,a)),y.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*E,a,0,a).close()),x}),go.Shape.defineFigureGenerator("Map",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,.2*a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.25*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.25*E,.8*a)),y.add(new go.PathSegment(go.PathSegment.Move,.5*E,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a)),y.add(new go.PathSegment(go.PathSegment.Move,.75*E,0)),y.add(new go.PathSegment(go.PathSegment.Line,.75*E,.8*a)),x}),go.Shape.defineFigureGenerator("Eject",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E,a)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.7)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var z=new go.PathFigure(0,a*.6,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*E,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*1,a*1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.046*E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.3)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*E,a*.85)),y.add(new go.PathSegment(go.PathSegment.Line,E,a*.85).close());var z=new go.PathFigure(.126*E,.85*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.126*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.322*E,.85*a).close());var ne=new go.PathFigure(.402*E,.85*a,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.402*E,.45*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.598*E,.45*a)),ne.add(new go.PathSegment(go.PathSegment.Line,.598*E,.85*a).close());var re=new go.PathFigure(.678*E,.85*a,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.678*E,.45*a)),re.add(new go.PathSegment(go.PathSegment.Line,.874*E,.45*a)),re.add(new go.PathSegment(go.PathSegment.Line,.874*E,.85*a).close());var ie=new go.PathFigure(.5*E,.1*a,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*E,.3*a)),ie.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*E,.3*a).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a*1,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.8)),y.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.6)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.4)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.2)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.15)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,a*1,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.184,a*(1-.184)).close());var z=new go.PathFigure(E*.204,a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.204,a*(1-.184))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,E*.388,a*1).close());var ne=new go.PathFigure(E*.408,a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.408,a*(1-.184*2))),ne.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*(1-.184*3))),ne.add(new go.PathSegment(go.PathSegment.Line,E*.592,a*1).close());var re=new go.PathFigure(E*.612,a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.612,a*(1-.184*3))),re.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*(1-.184*4))),re.add(new go.PathSegment(go.PathSegment.Line,E*.796,a*1).close());var ie=new go.PathFigure(E*.816,a,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.816,a*(1-.184*4))),ie.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-.184*5))),ie.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,0).close());var z=new go.PathFigure(E*.055,.07*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.07)),z.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.1).close());var ne=new go.PathFigure(E*.055,.13*a,!0);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.13)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.16)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.16).close());var re=new go.PathFigure(E*.055,.18*a,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.18)),re.add(new go.PathSegment(go.PathSegment.Line,E*.245,a*.21)),re.add(new go.PathSegment(go.PathSegment.Line,E*.055,a*.21).close());var ie=new go.PathFigure(E*1,0,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.4,0)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.65)),ie.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(.55*E,a,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.7*a)),y.add(new go.PathSegment(go.PathSegment.Line,.1*E,.475*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.35*E,.525*a,0,.4*a,.225*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.4*E,.475*a)),y.add(new go.PathSegment(go.PathSegment.Line,.15*E,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,.2*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.325*a)),y.add(new go.PathSegment(go.PathSegment.Line,.85*E,.1*a)),y.add(new go.PathSegment(go.PathSegment.Bezier,.9*E,.2*a,.975*E,0,E,.08*a)),y.add(new go.PathSegment(go.PathSegment.Line,.7*E,.45*a)),y.add(new go.PathSegment(go.PathSegment.Line,.6*E,.95*a)),y.add(new go.PathSegment(go.PathSegment.Line,.55*E,a).close()),x}),go.Shape.defineFigureGenerator("Key",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*1,a*.5,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.9,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.4*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,.2*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),y.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.15,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,.8*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.65*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,.55*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,.6*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,.575*a)),y.add(new go.PathSegment(go.PathSegment.Line,E*.9,.6*a).close()),y.add(new go.PathSegment(go.PathSegment.Move,.17*E,.425*a)),y.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*E,.5*a,.075*E,.075*a).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(0,0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Arc,270,180,E*0,E*.3,E*.055)),y.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.08,a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*1),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*2),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*3),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*4),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*5),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*6),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*7),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*8),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*9),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*10),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*11),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*12),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*13),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*14),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*.95)),y.add(new go.PathSegment(go.PathSegment.Line,E*(.08+.056*15),a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var z=new go.PathFigure(0,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*0)),z.add(new go.PathSegment(go.PathSegment.Arc,270,-180,E*1,E*.3,E*.055)),z.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1));var ne=new go.PathFigure(E*.11,a*.1,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*0),a*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.11,a*.8).close());var re=new go.PathFigure(E*(.11+.24133333*1+.028*1),a*.1,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.1)),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*1),a*.8)),re.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*1+.028*1),a*.8).close());var ie=new go.PathFigure(E*(.11+.24133333*2+.028*2),a*.1,!1);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.1)),ie.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*3+.028*2),a*.8)),ie.add(new go.PathSegment(go.PathSegment.Line,E*(.11+.24133333*2+.028*2),a*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(le,E,a){var x=new go.Geometry,y=8,z=y*Fe,ne=new go.PathFigure(y,0,!1);x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.86,0)),ne.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.14)),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-y,a,E,a-z,E-z,a)),ne.add(new go.PathSegment(go.PathSegment.Line,y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,z,a,0,a-z)),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,y,0,0,z,z,0).close());var re=new go.PathFigure(E*.83,0,!1);x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.3)),re.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.3)),re.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*0).close());var ie=new go.PathFigure(E*.83,a*1,!1);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E*.83,a*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*.5)),ie.add(new go.PathSegment(go.PathSegment.Line,E*.17,a*1).close());var ge=new go.PathFigure(E*.78,a*.05,!1);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.05)),ge.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,E*.78,a*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(le,E,a){var x=le?le.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,E/3),x=Math.min(x,a/3);var y=x*Fe,z=a*.8,ne=new go.Geometry,re=new go.PathFigure(x,0,!0);return ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E-x,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,E,x,E-y,0,E,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,z-x)),re.add(new go.PathSegment(go.PathSegment.Bezier,E-x,z,E,z-y,E-y,z)),re.add(new go.PathSegment(go.PathSegment.Line,E*.7,z)),re.add(new go.PathSegment(go.PathSegment.Line,E*.7,a)),re.add(new go.PathSegment(go.PathSegment.Line,E*.55,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Bezier,0,z-x,y,z,0,z-y)),re.add(new go.PathSegment(go.PathSegment.Line,0,x)),re.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,y,y,0).close()),y>1?(ne.spot1=new go.Spot(0,0,y,y),ne.spot2=new go.Spot(1,.8,-y,-y)):(ne.spot1=go.Spot.TopLeft,ne.spot2=new go.Spot(1,.8)),ne}),go.Shape.defineFigureGenerator("Repeat",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*.45,!0);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.2,a*.45).close());var z=new go.PathFigure(E*1,a*.55,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.55)),z.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(le,E,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,E,0)).add(new go.PathSegment(go.PathSegment.Line,E,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*E,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*E,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*E,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*E,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*E,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*E,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*.1,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.9)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.9).close());var z=new go.PathFigure(E*.1,a*.2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,E*.22,a*.285)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.1,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.32)),z.add(new go.PathSegment(go.PathSegment.Line,E*.275,a*.25).close());var ne=new go.PathFigure(E*.28,a*.37,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.37)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.41)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.28,a*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(le,E,a){var x=new go.Geometry,y=15,z=y*Fe,ne=new go.PathFigure(E*.62,a*.475,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E,a-y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,E-y,a,E,a-z,E-z,a)),ne.add(new go.PathSegment(go.PathSegment.Line,y,a)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,a-y,z,a,0,a-z)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.475)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.38,a*.03)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*0)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*0)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.62,a*.03).close()),z>1?(x.spot1=new go.Spot(0,0,z,z),x.spot2=new go.Spot(1,1,-z,-z)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var ne=new go.PathFigure(E*.4,a*0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.66)),ne.add(new go.PathSegment(go.PathSegment.Line,E*(1-.26),a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.44)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;return y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*0,a*1,!0);x.add(y);var z=.1/.3;y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.8,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.755,a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*.93,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.64,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.61,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.39,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.36,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*.07,a*(1-z))),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.755),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*.055)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.66),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*(1-.8),a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*(1-z)).close());var ne=new go.PathFigure(E*.5,a*0,!0);return x.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,E*.26,a*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.4,a*.63)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.63)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.6,a*.25)),ne.add(new go.PathSegment(go.PathSegment.Line,E*.74,a*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.15,a*0,!1);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.15,a*0,!1);x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.85,a*0)),y.add(new go.PathSegment(go.PathSegment.Line,E*.7,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.3,a*1).close());var z=new go.PathFigure(E*.235,a*.28,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,E*.765,a*.28)),z.add(new go.PathSegment(go.PathSegment.Line,E*.655,a*.97)),z.add(new go.PathSegment(go.PathSegment.Line,E*.345,a*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(le,E,a){var x=new go.Geometry,y=new go.PathFigure(E*.5,a*0,!0);return x.add(y),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*1,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,E*.75,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.55,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.65,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.5,a*1)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.75)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.55)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.65)),y.add(new go.PathSegment(go.PathSegment.Line,E*0,a*.5)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.35)),y.add(new go.PathSegment(go.PathSegment.Line,E*.25,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.45)),y.add(new go.PathSegment(go.PathSegment.Line,E*.45,a*.25)),y.add(new go.PathSegment(go.PathSegment.Line,E*.35,a*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},20063:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var _e={},xt="5.0",oe={},b=null,he=!1,Be=!1,Ie=null,be=!1,Ge=null,Fe=null,Ye=0;Ye4?parseFloat(Qe):5};_e.setHTML5Codebase=function(Qe,Oe){Fe=Qe,rn(Qe,Oe)},_e.setJavaCodebase=_e.setJavaCodebaseVersion=_e.isCompiledInstalled=_e.setPreCompiledScriptPath=_e.setPreCompiledResourcePath=function(){},_e.setHTML5CodebaseVersion=function(Qe,Oe){var Et=parseFloat(Qe);if(Et!==NaN&&Et<5){console.log("The GeoGebra HTML5 codebase version "+Et+" is deprecated. Using version latest instead.");return}Ge=Qe,Kt(Qe,Oe)},_e.getHTML5CodebaseVersion=function(){return le},_e.getParameters=function(){return oe},_e.setFontsCSSURL=function(Qe){ne=Qe},_e.setGiacJSURL=function(Qe){},_e.setJNLPFile=function(Qe){De=Qe},_e.setJNLPBaseDir=function(Qe){},_e.inject=function(){function Qe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Oe="auto",Et=oe.id,Gt,vt=!1,Dt=0;Dt=5)return!0;var Qe=_e.getAppletObject();return Qe&&typeof Qe.recalculateEnvironments=="function"?(Qe.recalculateEnvironments(),!0):!1},_e.startAnimation=function(){var Qe=_e.getAppletObject();return Qe&&typeof Qe.startAnimation=="function"?(Qe.startAnimation(),!0):!1},_e.stopAnimation=function(){var Qe=_e.getAppletObject();return Qe&&typeof Qe.stopAnimation=="function"?(Qe.stopAnimation(),!0):!1},_e.getAppletObject=function(){var Qe=oe.id!==void 0?oe.id:"ggbApplet";return window[Qe]},_e.resize=function(){};var lt=function(Qe,Oe,Et){var Gt=document.createElement("param");Gt.setAttribute("name",Oe),Gt.setAttribute("value",Et),Qe.appendChild(Gt)},Le=function(Qe){return Qe&&Qe!=="false"},Ce=function(Qe,Oe,Et){ie(le)<=4.2&&(Et=!0);var Gt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==le||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(Gt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var vt=document.createElement("div");vt.classList.add("appletParameters","notranslate");var Dt=Oe.width,Ae=Oe.height;if(Oe.disableAutoScale=Oe.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Oe.disableAutoScale,Oe.width!==void 0)if(ie(le)<=4.4)Le(Oe.showToolBar)&&(Oe.height-=7),Le(Oe.showAlgebraInput)&&(Oe.height-=37),Oe.width<605&&Le(Oe.showToolBar)&&(Oe.width=605,Dt=605);else{var dt=100;(Le(Oe.showToolBar)||Le(Oe.showMenuBar))&&(Oe.hasOwnProperty("customToolBar")&&(Oe.customToolbar=Oe.customToolBar),dt=Le(Oe.showMenuBar)?245:155),Dt=5?(Oe.appletOnLoad=function(qt){var ma=Qe.querySelector(".ggb_preview");ma&&ma.parentNode.removeChild(ma),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(et),window.GGBT_wsf_view&&$(window).trigger("resize"),ct(qt)},An||et.appendChild(ot)):vt.appendChild(ot),et.appendChild(vt),An||Qe.appendChild(et),setTimeout(function(){_e.resize()},1)}else{var bt=document.createElement("div");bt.className="applet_scaler",bt.style.position="relative",bt.style.display="block",bt.appendChild(vt),Qe.appendChild(bt),Oe.appletOnLoad=function(qt){_e.resize(),ct(qt)}}function Ht(qt,ma){ma&&typeof ma.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(qt,ma.appletOnLoad):renderGGBElement(qt),It("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ma)}function ht(qt,ma){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:qt,params:ma}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(zn){Ht(zn.article,zn.params)}),html5AppletsToProcess=null)},ie(le)<5&&(qt.className+=" geogebraweb")):Ht(qt,ma)}if(Gt){scriptLoadStarted=!0;for(var Mn=0;Mn0?(on.remove(),et.attr("id","fullscreencontent").show(),jQuery(ct).append(et),window.dispatchEvent(new Event("resize"))):Ce(on,Oe,!1),window.GGBT_wsf_view.launchFullScreen(ct)}else Ve=Gt,Ce(Qe,Oe,!1);if(!window.GGBT_wsf_view)for(Ae=0;AeQe/4*3&&(on=Qe/4*3),ct=on/5.8,dt.setAttribute("src",y),dt.setAttribute("width",on),dt.setAttribute("height",ct);var et=(Qe-on)/2,An=(Oe-ct)/2;dt.style.left=et+"px",dt.style.top=An+"px",vt.appendChild(dt)}}return vt.appendChild(Ae),vt},wt=function(Qe){return Qe=Qe.toLowerCase(),Qe==="html5"||Qe==="screenshot"?Qe:"html5"},ut=["web","webSimple","web3d","tablet","tablet3d","phone"],Kt=function(Qe,Oe){if(le=Qe,Oe){rn(le,!0);return}var Et=!he;if(Et){var Gt=ie(le);!isNaN(Gt)&&Gt<4.4&&(Et=!1)}var vt,Dt;window.location.protocol.substr(0,4)==="http"?vt=window.location.protocol:vt="http:";var Ae=le.indexOf("//");Ae>0?Dt=le:Ae===0?Dt=vt+le:Dt="https://www.geogebra.org/apps/5.2.814.0/";for(var dt in ut)if(le.slice(ut[dt].length*-1)===ut[dt]||le.slice((ut[dt].length+1)*-1)===ut[dt]+"/"){rn(Dt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Et&&!b.is3D&&!b.AV&&!b.SV&&!b.CV&&!b.EV2&&!b.CP&&!b.PC&&!b.DA&&!b.FI&&!b.PV&&!Le(oe.showToolBar)&&!Le(oe.showMenuBar)&&!Le(oe.showAlgebraInput)&&!Le(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?Dt+="webSimple/":Dt+="web3d/",rn(Dt,!1)},rn=function(Qe,Oe){if(Qe.requirejs){Te=Qe;return}Qe.slice(-1)!=="/"&&(Qe+="/"),Te=Qe,Oe===null&&(Oe=Qe.indexOf("http")===-1),We=Oe,E="web.nocache.js",a=!1;var Et=Te.split("/");Et.length>1&&(!Oe&&Et[Et.length-2]==="webSimple"?(E="webSimple.nocache.js",a=!0):ut.indexOf(Et[Et.length-2])>=0&&(E=Et[Et.length-2]+".nocache.js")),Et=Qe.split("/"),le=Et[Et.length-3],le.substr(0,4)==="test"?le=le.substr(4,1)+"."+le.substr(5,1):(le.substr(0,3)==="war"||le.substr(0,4)==="beta")&&(le="5.0");var Gt=parseFloat(le);Gt!==NaN&&Gt<5&&Qe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Gt+" is deprecated. Using version latest instead."),Kt("5.0",Oe))},It=function(Qe,Oe){window.console&&window.console.log&&(!Oe||typeof Oe.showLogging=="undefined"||Oe.showLogging&&Oe.showLogging!=="false")&&console.log(Qe)};oe.material_id!==void 0?Pe(Zt):Zt();function Zt(){var Qe=xt;Ge!==null?Qe=Ge:parseFloat(Qe)<5&&(Qe="5.0"),Kt(Qe,!1),Fe!==null&&rn(Fe,We),be=!0}return _e},GGBAppletUtils=function(){"use strict";function _e(){return window.GGBT_wsf_edit!==void 0}function xt(be,Ge){Ge!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+Ge+","+Ge+")",be.style.webkitTransform="scale("+Ge+","+Ge+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function oe(be,Ge,Fe,Ye,ke,De){var Te=null;if(De!=null&&De!="")for(var We=be.parentNode;We!=null;)if((" "+We.className+" ").indexOf(" "+De+" ")>-1){Te=We;break}else We=We.parentNode;var Ve=0,le=0,E=0,a=0,x=0,y=0,z=0;if(Te)Ve=Te.offsetWidth,le=Math.max(Ye?Te.offsetWidth:0,Te.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ve=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),E=Ve):(Ve=window.innerWidth,le=window.innerHeight,E=window.innerWidth),be){var ne=be.getBoundingClientRect();ne.left>0&&ne.left<=Ve&&(ke===void 0||!ke)&&(document.dir==="rtl"?(x=Ve-ne.width-ne.left,y=E<=480?10:30):(y=ne.left,x=E<=480?10:30),a=y+x)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var re=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(a=40,z=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,z=40)}}return be&&((Fe===void 0||!Fe)&&Ge>0&&Ge+a1&&(De=!0)),Ge&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))ke=b(be,Ge,De,Fe,be.scaleContainerClass);else return Ye;return De&&(!be.hasOwnProperty("scale")||Ye===1)?ke:Math.min(Ye,ke)}function Be(be){var Ge=Math.min(window.innerWidth,document.documentElement.clientWidth),Fe=Math.min(window.innerHeight,document.documentElement.clientHeight),Ye=be.getBoundingClientRect(),ke=(Ge-Ye.width)/2,De=(Fe-Ye.height)/2;De<0&&(De=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ke<40?be.style.left="40px":be.style.left=ke+"px",be.style.top=De+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(De<40?be.style.top="40px":be.style.top=De+"px",be.style.left=ke+"px")}function Ie(be,Ge){var Fe=be.querySelector(".appletParameters");if(Fe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ge.id!==Fe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(Fe.parentElement&&/fullscreen/.test(Fe.parentElement.className))return;var Ye=he(Ge,be);_e()&&Fe.setAttribute("data-param-scale",Ye);for(var ke=null,De=0;De=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(_e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(_e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(_e){var xt=c[_e];return xt==null?null:xt},r=d,webModule.__errFn=e}function B(){function _e(be){var Ge=be.lastIndexOf(rb);Ge==-1&&(Ge=be.length);var Fe=be.indexOf(sb);Fe==-1&&(Fe=be.length);var Ye=be.lastIndexOf(tb,Math.min(Fe,Ge));return Ye>=O?be.substring(O,Ye+P):W}function xt(be){if(!be.match(/^\w+:\/\//)){var Ge=o.createElement(ub);Ge.src=be+vb,be=_e(Ge.src)}return be}function oe(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function b(){for(var be=o.getElementsByTagName(_),Ge=O;GeO?be[be.length-P].href:W}function Be(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var Ie=oe();return Ie==W&&(Ie=b()),Ie==W&&(Ie=he()),Ie==W&&Be()&&(Ie=_e(o.location.href)),Ie=xt(Ie),Ie}function C(_e){return _e.match(/^\//)||_e.match(/^[a-zA-Z]+:\/\//)?_e:webModule.__moduleBase+_e}function D(){var _e=[],xt=O,oe=[],b=[];function he(be){var Ge=b[be](),Fe=oe[be];if(Ge in Fe)return Ge;var Ye=[];for(var ke in Fe)Ye[Fe[ke]]=ke;throw r&&r(be,Ye,Ge),null}if(__gwt_isKnownPropertyValue=function(be,Ge){return Ge in oe[be]},webModule.__getPropMap=function(){var be={};for(var Ge in oe)oe.hasOwnProperty(Ge)&&(be[Ge]=he(Ge));return be},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Be;try{Be=Cb;var Ie=Be.indexOf(Db);Ie!=-1&&(xt=parseInt(Be.substring(Ie+P),$),Be=Be.substring(O,Ie))}catch(be){}return webModule.__softPermutationId=xt,C(Be+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},25676:function(_e,xt,oe){"use strict";oe.d(xt,{Ax:function(){return Ie},Ds:function(){return be},KI:function(){return Fe},SI:function(){return Be},f1:function(){return he}});var b=oe(11662);function he(Ye){let ke=!0;if(Ye.length>0){for(let De=0;Dea in E?Be(E,a,{enumerable:!0,configurable:!0,writable:!0,value:x}):E[a]=x,De=(E,a)=>{for(var x in a||(a={}))Fe.call(a,x)&&ke(E,x,a[x]);if(Ge)for(var x of Ge(a))Ye.call(a,x)&&ke(E,x,a[x]);return E},Te=(E,a)=>Ie(E,be(a)),We=(E,a)=>{var x={};for(var y in E)Fe.call(E,y)&&a.indexOf(y)<0&&(x[y]=E[y]);if(E!=null&&Ge)for(var y of Ge(E))a.indexOf(y)<0&&Ye.call(E,y)&&(x[y]=E[y]);return x},Ve=(E,a,x)=>new Promise((y,z)=>{var ne=ge=>{try{ie(x.next(ge))}catch(fe){z(fe)}},re=ge=>{try{ie(x.throw(ge))}catch(fe){z(fe)}},ie=ge=>ge.done?y(ge.value):Promise.resolve(ge.value).then(ne,re);ie((x=x.apply(E,a)).next())});const le=E=>{var a=E,{children:x}=a,y=We(a,["children"]);const[z,ne]=(0,he.useState)(!1);return he.createElement(b.ZP,Te(De({},y),{loading:z,onClick:re=>Ve(void 0,null,function*(){try{ne(!0),yield y.onClick(re),ne(!1)}catch(ie){console.error(ie),ne(!1)}})}),x)}},40888:function(_e,xt,oe){"use strict";var b=oe(86204),he=oe.n(b),Be=Object.defineProperty,Ie=(Ye,ke,De)=>ke in Ye?Be(Ye,ke,{enumerable:!0,configurable:!0,writable:!0,value:De}):Ye[ke]=De,be=(Ye,ke,De)=>Ie(Ye,typeof ke!="symbol"?ke+"":ke,De),Ge=(Ye,ke,De)=>new Promise((Te,We)=>{var Ve=a=>{try{E(De.next(a))}catch(x){We(x)}},le=a=>{try{E(De.throw(a))}catch(x){We(x)}},E=a=>a.done?Te(a.value):Promise.resolve(a.value).then(Ve,le);E((De=De.apply(Ye,ke)).next())});class Fe extends b.EventEmitter{constructor(ke,De){super(),be(this,"url"),be(this,"body"),be(this,"fullContent",""),be(this,"controller",null),be(this,"buffer",""),this.url=ke,this.body=De}startStream(){return Ge(this,null,function*(){this.controller=new AbortController;const{signal:ke}=this.controller;try{const De=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:ke});if(!De.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${De.status}`);const Te=De.headers.get("content-type");if(!Te)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(Te.includes("application/json")){const le=yield De.json();this.emit("error",le);return}if(!Te.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const We=De.body.getReader(),Ve=new TextDecoder("utf-8");for(;;){const{done:le,value:E}=yield We.read();if(le)break;const a=Ve.decode(E,{stream:!0});this.buffer+=a;const x=this.buffer.split(` `);this.buffer=x.pop()||"";for(const y of x)if(y.startsWith("data:")){const z=y.slice(5).trim();if(z==="[DONE]")break;try{const ne=JSON.parse(z);ne.data&&this.handleData(ne.data)}catch(ne){this.buffer=y+` -`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",ne)}}}this.emit("done",this.fullContent)}catch(De){De.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",De.message)}})}handleData(ke){ke.content&&(this.fullContent+=ke.content,this.emit("data",{chunk:ke,full:this.fullContent}))}cancelRequest(){var ke;(ke=this.controller)==null||ke.abort()}}Ct.Z=Fe},90973:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return ut}});var b=oe(59301),he=oe(62052),Be=oe(66328),Ie=oe(84821),Ce=oe(18369),Ge=oe(56102),Fe={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ye=oe(8591),ke=oe(11611),De=oe(19825),Te=oe(30084),We=oe(10787),Ve=oe(10939),le=oe(43428),E=oe(95237),a=oe(43604),x={smartWrp:"smartWrp___NjRcB"},y=oe(58466),z=oe(2751),ne=oe(47451),re=oe(59301),ie=(Kt,rn,It)=>new Promise((Zt,Qe)=>{var Oe=vt=>{try{Gt(It.next(vt))}catch(wt){Qe(wt)}},Et=vt=>{try{Gt(It.throw(vt))}catch(wt){Qe(wt)}},Gt=vt=>vt.done?Zt(vt.value):Promise.resolve(vt.value).then(Oe,Et);Gt((It=It.apply(Kt,rn)).next())});const ge=` +`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",ne)}}}this.emit("done",this.fullContent)}catch(De){De.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",De.message)}})}handleData(ke){ke.content&&(this.fullContent+=ke.content,this.emit("data",{chunk:ke,full:this.fullContent}))}cancelRequest(){var ke;(ke=this.controller)==null||ke.abort()}}xt.Z=Fe},90973:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return ut}});var b=oe(59301),he=oe(62052),Be=oe(66328),Ie=oe(84821),be=oe(18369),Ge=oe(56102),Fe={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ye=oe(8591),ke=oe(11611),De=oe(19825),Te=oe(30084),We=oe(10787),Ve=oe(10939),le=oe(43428),E=oe(95237),a=oe(43604),x={smartWrp:"smartWrp___NjRcB"},y=oe(58466),z=oe(2751),ne=oe(47451),re=oe(59301),ie=(Kt,rn,It)=>new Promise((Zt,Qe)=>{var Oe=vt=>{try{Gt(It.next(vt))}catch(Dt){Qe(Dt)}},Et=vt=>{try{Gt(It.throw(vt))}catch(Dt){Qe(Dt)}},Gt=vt=>vt.done?Zt(vt.value):Promise.resolve(vt.value).then(Oe,Et);Gt((It=It.apply(Kt,rn)).next())});const ge=` @@ -136,35 +136,35 @@ initArrayDisplay(); <\/script> -`;function fe({open:Kt=!0,onChange:rn,defaultValue:It,placement:Zt,width:Qe,height:Oe,extra:Et,onDynamic:Gt,showExtra:vt=!0}){const wt=(0,b.useRef)(null),Ae=(0,b.useRef)(null),[dt,on]=(0,b.useState)(It||""),[ct,et]=(0,b.useState)(It||""),[An,ot]=(0,b.useState)(!!Kt),[Bt,Ht]=(0,b.useState)(1),ht={selectOnLineNumbers:!0};(0,b.useEffect)(()=>{Kt&&(on(It),et(It),ot(!0))},[Kt,It]),(0,b.useEffect)(()=>{dt!==""&&(clearTimeout(Ae.current),Ae.current=setTimeout(()=>{const Ot=document.createElement("iframe");if(Ot.style.width="100%",Ot.style.height="100%",Ot.style.border="0",wt.current){wt.current.innerHTML="",wt.current.appendChild(Ot);const Un=Ot.contentDocument||Ot.contentWindow.document;Un.open(),Un.write(dt),Un.close()}},1e3))},[Kt,dt]);const On=Ot=>{on(Ot),rn==null||rn(Ot,ct)};return re.createElement(le.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:An,width:vt?700:"100%",height:Oe||"100vh",rootClassName:x.smartWrp,destroyOnClose:!0,onClose:()=>ot(!1),extra:vt&&re.createElement("div",null,re.createElement(z.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Bt,onChange:Ot=>Ht(Ot)}),re.createElement(ne.Z,{type:"primary",className:"ml20",onClick:()=>ie(this,null,function*(){yield Gt(dt,()=>{ot(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},re.createElement(E.Z,{className:"h100"},re.createElement(a.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Bt===1?"block":"none"}},re.createElement("div",{className:"h100",ref:wt})),re.createElement(a.Z,{flex:"1",style:{display:Bt===2?"block":"none"}},re.createElement(y.ZP,{height:"90vh",value:It,language:"html",theme:"vs",showMiniMap:!1,options:ht,onChange:On}))))}var Pe=fe,Ue=Object.defineProperty,Me=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,nt=(Kt,rn,It)=>rn in Kt?Ue(Kt,rn,{enumerable:!0,configurable:!0,writable:!0,value:It}):Kt[rn]=It,ye=(Kt,rn)=>{for(var It in rn||(rn={}))be.call(rn,It)&&nt(Kt,It,rn[It]);if(Le)for(var It of Le(rn))Xe.call(rn,It)&&nt(Kt,It,rn[It]);return Kt},gt=(Kt,rn)=>Me(Kt,lt(rn)),pt=(Kt,rn)=>{var It={};for(var Zt in Kt)be.call(Kt,Zt)&&rn.indexOf(Zt)<0&&(It[Zt]=Kt[Zt]);if(Kt!=null&&Le)for(var Zt of Le(Kt))rn.indexOf(Zt)<0&&Xe.call(Kt,Zt)&&(It[Zt]=Kt[Zt]);return It},ut=({onFinish:Kt,value:rn,streamingStatus:It,cancelIndex:Zt,loadImage:Qe,onDynamic:Oe})=>{const[Et,Gt]=(0,b.useState)(""),[vt,wt]=(0,b.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Ae,dt]=(0,b.useState)(0),[on,ct]=(0,b.useState)(!1),et=Bt=>Bt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Ht,ht)=>`$$${ht.trim()}$$`).replace(/\\\(([\s\S]*?)\\\)/g,'$$$$$1$$$$').replace(/\\\[([\s\S]*?)\\\]/g,'$$$$$1$$$$').replace(/_{2,}/g,"`$&`"),An=()=>{ct(!0),Kt==null||Kt()};(0,b.useEffect)(()=>{const Bt=Qe?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A +`;function fe({open:Kt=!0,onChange:rn,defaultValue:It,placement:Zt,width:Qe,height:Oe,extra:Et,onDynamic:Gt,showExtra:vt=!0}){const Dt=(0,b.useRef)(null),Ae=(0,b.useRef)(null),[dt,on]=(0,b.useState)(It||""),[ct,et]=(0,b.useState)(It||""),[An,ot]=(0,b.useState)(!!Kt),[bt,Ht]=(0,b.useState)(1),ht={selectOnLineNumbers:!0};(0,b.useEffect)(()=>{Kt&&(on(It),et(It),ot(!0))},[Kt,It]),(0,b.useEffect)(()=>{dt!==""&&(clearTimeout(Ae.current),Ae.current=setTimeout(()=>{const Ot=document.createElement("iframe");if(Ot.style.width="100%",Ot.style.height="100%",Ot.style.border="0",Dt.current){Dt.current.innerHTML="",Dt.current.appendChild(Ot);const Un=Ot.contentDocument||Ot.contentWindow.document;Un.open(),Un.write(dt),Un.close()}},1e3))},[Kt,dt]);const Mn=Ot=>{on(Ot),rn==null||rn(Ot,ct)};return re.createElement(le.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:An,width:vt?700:"100%",height:Oe||"100vh",rootClassName:x.smartWrp,destroyOnClose:!0,onClose:()=>ot(!1),extra:vt&&re.createElement("div",null,re.createElement(z.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:bt,onChange:Ot=>Ht(Ot)}),re.createElement(ne.Z,{type:"primary",className:"ml20",onClick:()=>ie(this,null,function*(){yield Gt(dt,()=>{ot(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},re.createElement(E.Z,{className:"h100"},re.createElement(a.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:bt===1?"block":"none"}},re.createElement("div",{className:"h100",ref:Dt})),re.createElement(a.Z,{flex:"1",style:{display:bt===2?"block":"none"}},re.createElement(y.ZP,{height:"90vh",value:It,language:"html",theme:"vs",showMiniMap:!1,options:ht,onChange:Mn}))))}var Pe=fe,Ue=Object.defineProperty,Me=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Ce=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,nt=(Kt,rn,It)=>rn in Kt?Ue(Kt,rn,{enumerable:!0,configurable:!0,writable:!0,value:It}):Kt[rn]=It,ye=(Kt,rn)=>{for(var It in rn||(rn={}))Ce.call(rn,It)&&nt(Kt,It,rn[It]);if(Le)for(var It of Le(rn))Xe.call(rn,It)&&nt(Kt,It,rn[It]);return Kt},gt=(Kt,rn)=>Me(Kt,lt(rn)),pt=(Kt,rn)=>{var It={};for(var Zt in Kt)Ce.call(Kt,Zt)&&rn.indexOf(Zt)<0&&(It[Zt]=Kt[Zt]);if(Kt!=null&&Le)for(var Zt of Le(Kt))rn.indexOf(Zt)<0&&Xe.call(Kt,Zt)&&(It[Zt]=Kt[Zt]);return It},ut=({onFinish:Kt,value:rn,streamingStatus:It,cancelIndex:Zt,loadImage:Qe,onDynamic:Oe})=>{const[Et,Gt]=(0,b.useState)(""),[vt,Dt]=(0,b.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Ae,dt]=(0,b.useState)(0),[on,ct]=(0,b.useState)(!1),et=bt=>bt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Ht,ht)=>`$$${ht.trim()}$$`).replace(/\\\(([\s\S]*?)\\\)/g,'$$$$$1$$$$').replace(/\\\[([\s\S]*?)\\\]/g,'$$$$$1$$$$').replace(/_{2,}/g,"`$&`"),An=()=>{ct(!0),Kt==null||Kt()};(0,b.useEffect)(()=>{const bt=Qe?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A -${rn}`:rn,Ht=et(Bt);if(!on)if(Qe||!It||Zt>0){Gt(Ht),dt(Ht.length),(!It||Zt>0)&&!Qe&&An();return}else if((Ht==null?void 0:Ht.length)<4)Gt(Ht),dt(Ht.length);else if(Ae{Gt(Ht.slice(0,Ae+2)),dt(Ot=>Ot+2)},ht>10?Math.max(500/(ht/2),20):50);return()=>clearInterval(On)}else It||An()},[rn,It,Zt,Qe,Ae]);const ot=(0,b.useMemo)(()=>b.createElement("section",{className:`${Fe.answer} fadeIn animated edu_md`},b.createElement(he.UG,{remarkPlugins:[Te.Z,We.Z],rehypePlugins:[De.Z,Ie.Z],components:{code(Bt){var Ht=Bt,{node:ht,inline:On,className:Ot,children:Un}=Ht,Bn=pt(Ht,["node","inline","className","children"]);const kn=/language-(\w+)/.exec(Ot||""),qt=String(Un).trim();return On||!kn?b.createElement("code",ye({className:Ot},Bn),Un):b.createElement("code",{className:Fe.codeCopy,"data-text":`\`\`\`${kn?kn[1]:""} +${rn}`:rn,Ht=et(bt);if(!on)if(Qe||!It||Zt>0){Gt(Ht),dt(Ht.length),(!It||Zt>0)&&!Qe&&An();return}else if((Ht==null?void 0:Ht.length)<4)Gt(Ht),dt(Ht.length);else if(Ae{Gt(Ht.slice(0,Ae+2)),dt(Ot=>Ot+2)},ht>10?Math.max(500/(ht/2),20):50);return()=>clearInterval(Mn)}else It||An()},[rn,It,Zt,Qe,Ae]);const ot=(0,b.useMemo)(()=>b.createElement("section",{className:`${Fe.answer} fadeIn animated edu_md`},b.createElement(he.UG,{remarkPlugins:[Te.Z,We.Z],rehypePlugins:[De.Z,Ie.Z],components:{code(bt){var Ht=bt,{node:ht,inline:Mn,className:Ot,children:Un}=Ht,bn=pt(Ht,["node","inline","className","children"]);const kn=/language-(\w+)/.exec(Ot||""),qt=String(Un).trim();return Mn||!kn?b.createElement("code",ye({className:Ot},bn),Un):b.createElement("code",{className:Fe.codeCopy,"data-text":`\`\`\`${kn?kn[1]:""} ${Un} -\`\`\``},b.createElement(Ge.CopyToClipboard,{text:qt,onCopy:()=>Ye.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},b.createElement("button",null,"\u590D\u5236")),kn[1]==="html"&&on&&b.createElement("button",{className:Fe.runCode,onClick:()=>{wt(ye({},gt(ye({},vt),{open:++vt.open,defaultValue:qt,language:kn[1]})))}},"\u8FD0\u884CHTML"),b.createElement(Be.Z,ye({wrapLongLines:!0,style:Ce.Z,language:kn[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},Bn),qt))},img({node:Bt}){var Ht;const ht=(Ht=Bt.properties)==null?void 0:Ht.src;return b.createElement(ke.Z,{src:ht,width:320,"data-text":ht,onLoad:()=>Qe&&setTimeout(()=>An(),500)})}}},on?Et:`${Et}__`)),[Et]);return b.createElement(b.Fragment,null,b.createElement(Pe,{defaultValue:vt.defaultValue,open:vt.open,language:vt.language,height:vt.height,onChange:(Bt,Ht)=>{Gt(Et.replaceAll(Ht,Bt))},onDynamic:Oe}),ot)}},30268:function(_e,Ct,oe){"use strict";var b=oe(59301);const he=({scrollBoxRef:Be,bottomInspectRef:Ie,contentRef:Ce,status:Ge,rootMargin:Fe="70px",bottomOffset:Ye=110})=>{const[ke,De]=(0,b.useState)(!0),Te=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{if(!Be.current||!Ie.current)return;const We=new IntersectionObserver(([Ve])=>{var le,E,a,x;if(!document.contains(Ve.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((le=Ve.rootBounds)==null?void 0:le.width)===0&&((E=Ve.rootBounds)==null?void 0:E.height)===0){console.log("root\uFF08\u6EDA\u52A8\u5BB9\u5668\uFF09\u65E0\u6548\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664");return}if(((a=Ve.boundingClientRect)==null?void 0:a.width)===0&&((x=Ve.boundingClientRect)==null?void 0:x.height)===0){console.log("\u76EE\u6807\u5143\u7D20\u5BBD\u9AD8\u4E3A 0\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664\u6216 display: none");return}De(Ve.isIntersecting)},{root:Be.current,rootMargin:Fe,threshold:0});return We.observe(Ie.current),()=>{We.disconnect()}},[Be.current,Ie.current,Fe]),(0,b.useEffect)(()=>{if(!Ge)return;const We=Be.current,Ve=Ce.current;Te.current=!1;let le=We.scrollTop;const E=()=>{const{scrollTop:x,scrollHeight:y,clientHeight:z}=We;x>le?x+z>=y-Ye&&(We.scrollTop=We.scrollHeight,Te.current=!1):x{Te.current||(We.scrollTop=We.scrollHeight)});return a.observe(Ve),()=>{setTimeout(()=>{a.unobserve(Ve)},250),We.removeEventListener("scroll",E)}},[Ge]),ke};Ct.Z=he},3665:function(_e,Ct,oe){"use strict";var b=oe(59301);const he=({contentRef:Be,status:Ie})=>((0,b.useEffect)(()=>{!Ie&&(Be!=null&&Be.current)&&Be.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(Fe=>{Fe.tagName.toLowerCase()==="code"?Fe.parentElement&&(Fe.parentElement.contentEditable="false"):Fe.tagName.toLowerCase()==="mathx"&&(Fe.contentEditable="false")})},[Ie]),(Ge=!1)=>{const Fe=Te=>{const We={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" ","©":"\xA9","®":"\xAE","€":"\u20AC"};return Te.replace(/&[^;]+;/g,Ve=>We[Ve]||Ve)};if(!Be.current)return"";const Ye=Be.current.cloneNode(!0);Ye.querySelectorAll("code[data-text], mathx[data-text]").forEach(Te=>{let We=Te.getAttribute("data-text");Te.tagName.toLowerCase()==="code"?We=We.replace(/```.*\n|\n```/g,""):Te.tagName.toLowerCase()==="mathx"&&(We=`$$${We}$$`);const Ve=document.createTextNode(We);Te.parentNode.replaceChild(Ve,Te)}),Ge&&Ye.querySelectorAll('[data-select="disabled"]').forEach(We=>{var Ve;const le=We.textContent||"",E=document.createTextNode(le+` +\`\`\``},b.createElement(Ge.CopyToClipboard,{text:qt,onCopy:()=>Ye.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},b.createElement("button",null,"\u590D\u5236")),kn[1]==="html"&&on&&b.createElement("button",{className:Fe.runCode,onClick:()=>{Dt(ye({},gt(ye({},vt),{open:++vt.open,defaultValue:qt,language:kn[1]})))}},"\u8FD0\u884CHTML"),b.createElement(Be.Z,ye({wrapLongLines:!0,style:be.Z,language:kn[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},bn),qt))},img({node:bt}){var Ht;const ht=(Ht=bt.properties)==null?void 0:Ht.src;return b.createElement(ke.Z,{src:ht,width:320,"data-text":ht,onLoad:()=>Qe&&setTimeout(()=>An(),500)})}}},on?Et:`${Et}__`)),[Et]);return b.createElement(b.Fragment,null,b.createElement(Pe,{defaultValue:vt.defaultValue,open:vt.open,language:vt.language,height:vt.height,onChange:(bt,Ht)=>{Gt(Et.replaceAll(Ht,bt))},onDynamic:Oe}),ot)}},30268:function(_e,xt,oe){"use strict";var b=oe(59301);const he=({scrollBoxRef:Be,bottomInspectRef:Ie,contentRef:be,status:Ge,rootMargin:Fe="70px",bottomOffset:Ye=110})=>{const[ke,De]=(0,b.useState)(!0),Te=(0,b.useRef)(!1);return(0,b.useEffect)(()=>{if(!Be.current||!Ie.current)return;const We=new IntersectionObserver(([Ve])=>{var le,E,a,x;if(!document.contains(Ve.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((le=Ve.rootBounds)==null?void 0:le.width)===0&&((E=Ve.rootBounds)==null?void 0:E.height)===0){console.log("root\uFF08\u6EDA\u52A8\u5BB9\u5668\uFF09\u65E0\u6548\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664");return}if(((a=Ve.boundingClientRect)==null?void 0:a.width)===0&&((x=Ve.boundingClientRect)==null?void 0:x.height)===0){console.log("\u76EE\u6807\u5143\u7D20\u5BBD\u9AD8\u4E3A 0\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664\u6216 display: none");return}De(Ve.isIntersecting)},{root:Be.current,rootMargin:Fe,threshold:0});return We.observe(Ie.current),()=>{We.disconnect()}},[Be.current,Ie.current,Fe]),(0,b.useEffect)(()=>{if(!Ge)return;const We=Be.current,Ve=be.current;Te.current=!1;let le=We.scrollTop;const E=()=>{const{scrollTop:x,scrollHeight:y,clientHeight:z}=We;x>le?x+z>=y-Ye&&(We.scrollTop=We.scrollHeight,Te.current=!1):x{Te.current||(We.scrollTop=We.scrollHeight)});return a.observe(Ve),()=>{setTimeout(()=>{a.unobserve(Ve)},250),We.removeEventListener("scroll",E)}},[Ge]),ke};xt.Z=he},3665:function(_e,xt,oe){"use strict";var b=oe(59301);const he=({contentRef:Be,status:Ie})=>((0,b.useEffect)(()=>{!Ie&&(Be!=null&&Be.current)&&Be.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(Fe=>{Fe.tagName.toLowerCase()==="code"?Fe.parentElement&&(Fe.parentElement.contentEditable="false"):Fe.tagName.toLowerCase()==="mathx"&&(Fe.contentEditable="false")})},[Ie]),(Ge=!1)=>{const Fe=Te=>{const We={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":" ","©":"\xA9","®":"\xAE","€":"\u20AC"};return Te.replace(/&[^;]+;/g,Ve=>We[Ve]||Ve)};if(!Be.current)return"";const Ye=Be.current.cloneNode(!0);Ye.querySelectorAll("code[data-text], mathx[data-text]").forEach(Te=>{let We=Te.getAttribute("data-text");Te.tagName.toLowerCase()==="code"?We=We.replace(/```.*\n|\n```/g,""):Te.tagName.toLowerCase()==="mathx"&&(We=`$$${We}$$`);const Ve=document.createTextNode(We);Te.parentNode.replaceChild(Ve,Te)}),Ge&&Ye.querySelectorAll('[data-select="disabled"]').forEach(We=>{var Ve;const le=We.textContent||"",E=document.createTextNode(le+` `);(Ve=We.parentNode)==null||Ve.replaceChild(E,We)});let De=Ye.innerHTML;return Ge||(De=De.replace(/<[^>]*data-select="disabled"[^>]*>.*?<\/[^>]*>/g,"")),De=De.replace(/

/g,""),De=De.replace(/<\/p>/g,` `),De=De.replace(/
/g,` `),De=De.replace(/\r\n/g,` -`),De=De.replace(/<[^>]*>/g,""),De=Fe(De),De});Ct.Z=he},4479:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return We}});var b=oe(59301),he=oe(43418),Be=oe(95237),Ie=oe(93948),Ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABYCAYAAAAORCLFAAAAAXNSR0IArs4c6QAAIABJREFUeF7lfQecXFXZ/nNumT6zvWeTTSWkEEJooUgRpSMooiLfxycqTcQGIvipAf1UsNFEUAQBQTpSDCgtIQVTSAgJ6ckm2ZJt2dnd6XPL+fuec8/sZAmSbAKBv/P73Z3ZmXvv3Ps+5+1lGD5kD855cHM8P85xtRqmG1a5H5sqQqz1Q3aZ+/xy2D4/4zBOyGfN0lZe9v0Tt/fj0vZenBAf0MozFgNjAOe2XR1jy8qC7s/OPdT/12Gc/iNxyH4HYlVrctrb3b5bN7Wzj3X1agDXYOgQILgccFwgk+OoKOOY1uT89nPPmldiFnM/EtTdg4v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jYeB/+pXt+/4aT14bdZ56taR6fY8/64CI3+5//mZuoXTstwewbvK94DI/IKdE1pctMavJxrzZDurrLGV5DY4E2H+4gF2dY8jmQ139KsVj+Xzx9v1fWtD1+pLy33b2sxqI+K3d+U250Pdz7wiRuMn3/UuDQLpFz1ftgIIw1LXN7G7gk3tYbWT1e2H4yR33tH1NG7Nn9/ZrA0ScjB/8x9zCQijfIWHd5BWDS4t+6KpWC4FAoejl/NB+oFD0/9uWP5914uwmf3l0v5ZAxIn7nr/MdWSRv84vhA1eaO3PZ/Kbnv7cnN5fFwDMOP8vz4/Uk8nae+oAAAAASUVORK5CYII=",Ye={dotLoading:"dotLoading___s6Sh4",showHide:"showHide___Dfprh",progress:"progress___QUpqo"},ke=oe(59301);const De=["\u6587\u4EF6\u89E3\u6790\u8BFB\u53D6\u4E2D","\u5185\u5BB9\u7406\u89E3\u5206\u6790\u4E2D","\u7ED3\u6784\u5316\u63D0\u53D6\u4E2D"];var We=()=>{const[Ve,le]=(0,b.useState)(0),[E,a]=(0,b.useState)(!1),[x,y]=(0,b.useState)(!0),z=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(x)return;const Pe=()=>{le(Ue=>Ue>=99?(clearInterval(z.current),99):Ue+1)};return z.current=setInterval(Pe,5e4/99),()=>clearInterval(z.current)},[x]);const ne=()=>{le(0),a(!0),y(!1)},re=(Pe=0)=>{y(!0),le(Pe),a(!1)},ie=Pe=>{const Ue=Pe/1048576;let Me;return Ue<=.3?Me=3:Ue<=.5?Me=5:Ue<=1?Me=10:Ue<=2?Me=20:Ue<=3?Me=30:Ue<=10?Me=Ue*10:Me=100,` \u9884\u8BA1\u5904\u7406\u65F6\u957F\u4E3A${Me}\u5206\u949F\uFF0C\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3`},ge=()=>ke.createElement("span",{className:Ye.dotLoading},ke.createElement("span",null,"."),ke.createElement("span",null,"."),ke.createElement("span",null,"."));return{progress:Ve,progressOpen:E,openProgress:ne,closeProgress:re,toggleLock:()=>y(Pe=>!Pe),CreateProgressModal:(Pe=De,Ue)=>(typeof Pe=="string"&&(Pe=[Pe,Pe,Pe]),ke.createElement(he.default,{centered:!0,closable:!1,destroyOnClose:!0,zIndex:1200,open:E,title:null,footer:null,width:500,afterClose:()=>le(0)},ke.createElement(Be.Z,{align:"middle",className:"mt40 mb20",style:{flexDirection:"column"}},Ve<=30&&ke.createElement(ke.Fragment,null,ke.createElement("img",{src:Ce,alt:"Step 1"}),ke.createElement("div",{className:"mt20 c-light-primary"},Pe[0],ge())),Ve>30&&Ve<60&&ke.createElement(ke.Fragment,null,ke.createElement("img",{src:Ge,alt:"Step 2"}),ke.createElement("div",{className:"mt20 c-light-primary"},Pe[1],ge())),Ve>=60&&ke.createElement(ke.Fragment,null,ke.createElement("img",{src:Fe,alt:"Step 3"}),ke.createElement("div",{className:"mt20 c-light-primary"},Pe[2],ge())),ke.createElement(Ie.Z,{className:Ye.progress,status:"active",style:{width:"auto"},size:[300,8],percent:Ve}),!!Ue&&ke.createElement("div",{className:"c-grey-999"},ie(Ue)))))}}},48977:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return rn}});var b=oe(59301),he=oe(38854),Be=oe(8591),Ie=oe(6848),Ce=oe(92832),Ge=oe(3113),Fe=oe(90973),Ye={wrap:"wrap___AasCO",chatContainer:"chatContainer___n6e3E",btnContainer:"btnContainer___yKyVB",btn:"btn___Y_09T",inputContainer:"inputContainer____bM3M",sendBtn:"sendBtn___UHHLj",sendBtnDisabled:"sendBtnDisabled___AoSRc",cancelBtn:"cancelBtn___yql4C",loadingWrp:"loadingWrp___gYLGT","dot-fade":"dot-fade___LruoO"},De=({position:It,children:Zt})=>{const{left:Qe=0,top:Oe=0}=It||{},[Et,Gt]=(0,b.useState)(Qe),[vt,wt]=(0,b.useState)(Oe),Ae=(0,b.useRef)(null),dt=()=>{if(Ae.current){const on=Ae.current.offsetWidth,ct=Ae.current.offsetHeight,et=window.innerWidth,An=window.innerHeight;let ot=Qe,Bt=Oe;Qe+on>et&&(ot=et-on),ot<0&&(ot=0),Oe+ct>An&&(Bt=An-ct),Bt<0&&(Bt=0),Gt(ot),wt(Bt)}};return(0,b.useEffect)(()=>{if(!Ae.current||!It)return;const on=new ResizeObserver(()=>{dt()});return on.observe(Ae.current),()=>{on.disconnect()}},[Qe,Oe,It]),(0,b.useEffect)(()=>{It&&dt()},[Qe,Oe,It]),It?b.createElement("div",{ref:Ae,style:{position:"fixed",left:`${Et}px`,top:`${vt}px`,zIndex:1050}},Zt):null},Te=oe(11662),We=oe(56102),Ve=oe(40888),le=Object.defineProperty,E=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ne=(It,Zt,Qe)=>Zt in It?le(It,Zt,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):It[Zt]=Qe,re=(It,Zt)=>{for(var Qe in Zt||(Zt={}))y.call(Zt,Qe)&&ne(It,Qe,Zt[Qe]);if(x)for(var Qe of x(Zt))z.call(Zt,Qe)&&ne(It,Qe,Zt[Qe]);return It},ie=(It,Zt)=>E(It,a(Zt)),ge=(It,Zt,Qe)=>new Promise((Oe,Et)=>{var Gt=Ae=>{try{wt(Qe.next(Ae))}catch(dt){Et(dt)}},vt=Ae=>{try{wt(Qe.throw(Ae))}catch(dt){Et(dt)}},wt=Ae=>Ae.done?Oe(Ae.value):Promise.resolve(Ae.value).then(Gt,vt);wt((Qe=Qe.apply(It,Zt)).next())}),Pe=({visible:It,position:Zt,selectText:Qe,applyRefinedText:Oe,fetchUrl:Et,noRestrictModal:Gt})=>{var vt;const[wt,Ae]=(0,b.useState)(!1),[dt,on]=(0,b.useState)([]),[ct,et]=(0,b.useState)(""),[An,ot]=(0,b.useState)(1),[Bt,Ht]=(0,b.useState)(""),[ht,On]=(0,b.useState)(!1),Ot=(0,b.useRef)(null),[Un,Bn]=(0,b.useState)(!1),[kn,qt]=(0,b.useState)(0),ca=(0,b.useRef)(!1),zn=((vt=dt==null?void 0:dt[(dt==null?void 0:dt.length)-1])==null?void 0:vt.loading)===!0;(0,b.useEffect)(()=>{if(It){ot(1);return}Bn(!1),Ae(!1),ba(),qt(0),on([]),ot(0)},[It]);const ba=()=>{var aa,Wn;et(""),Ht(""),(Wn=(aa=Ot.current)==null?void 0:aa.cancelRequest)==null||Wn.call(aa)},ln=(...aa)=>ge(void 0,[...aa],function*(Wn="",Ya=dt){const Ma=Date.now(),Ja=[...Ya,{text:Wn,key:Ma,sender:"user",show:!0},{loading:!0,key:Ma,sender:"AI",show:!0}];ot(2),on(Ja);const Ar=pn(Ya),At={no_record_times:!0,prompt:Wn,history:Ar};Ot.current=new Ve.Z(Te.Z.API_SERVER+Et,At),yield new Promise(Ln=>{Ot.current.on("data",Mn=>{const{chunk:{msg:xn},full:xe}=Mn,ft=xn==="error";Bn(!0),Ht(St(xe)),on(Ft=>Ft.map((Vt,Rt)=>Rt===Ft.length-1?ie(re({},Vt),{text:xe,loading:!1,error:ft}):Vt))}),Ot.current.on("done",()=>Ln()),Ot.current.on("error",Mn=>{const xn="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Object.prototype.toString.call(Mn)==="[object Object]"&&Mn.status===-9&&(ot(1),Gt(Mn.data)),on(xe=>xe.map((ft,Ft)=>Ft===xe.length-1?ie(re({},ft),{text:xn,loading:!1,error:!0}):ft)),Ln()}),Ot.current.on("cancelled",()=>Ln()),Ot.current.startStream()}),Ae(!1)}),cn=aa=>{et(aa.target.value)},pn=aa=>aa.reduce((Ya,Ma)=>{if(Ma.sender==="user"){const Ja=aa.find(Ar=>Ar.key===Ma.key&&Ar.sender==="AI");Ja&&(Ja!=null&&Ja.text)&&!(Ja!=null&&Ja.error)&&Ya.push({question:Ma.text,answer:Ja.text})}return Ya},[]),Oa=()=>{if(Ka)return;const aa=fn("\u6539\u5199");ba(),Ae(!0),ln(aa)},va=aa=>{if(aa.key==="Enter"&&!aa.shiftKey){if(aa.preventDefault(),ca.current||na)return;Oa()}},wa=()=>{var aa,Wn;qt(Ya=>Ya+1),(Wn=(aa=Ot.current)==null?void 0:aa.cancelRequest)==null||Wn.call(aa),Ae(!1),Bn(!1)},_t=[{key:"1",label:b.createElement("span",null," ",b.createElement("i",{className:"iconfont icon-runse font14 mr10"}),"\u6DA6\u8272 ")},{key:"2",label:b.createElement("span",null,b.createElement("i",{className:"iconfont icon-kuoxie font14 mr10"}),"\u6269\u5199")},{key:"3",label:b.createElement("span",null," ",b.createElement("i",{className:"iconfont icon-suoxie font14 mr10"}),"\u7F29\u5199")}],St=(aa="")=>{const Wn=["\u7B54\u6848\uFF1A","\u96BE\u5EA6\uFF1A","\u89E3\u6790\uFF1A","\u77E5\u8BC6\u70B9\uFF1A","\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09","\u7F16\u7A0B\u8BED\u8A00\uFF1A","\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A","\u7A0B\u5E8F\u4EE3\u7801\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"];return Array.from({length:20}).forEach((Ya,Ma)=>{Wn.push(`\u7B54\u6848${Ma+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${Ma+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${Ma+1})\u8F93\u51FA\uFF1A`)}),Wn.forEach(Ya=>{const Ma=new RegExp(Ya,"g");aa=aa.replace(Ma,`**${Ya}** `)}),aa},fn=aa=>aa==="\u6539\u5199"?`${ct}\uFF0C\u6839\u636E\u4E0A\u8FF0\u8981\u6C42\u6539\u5199\u8FD9\u53E5\u8BDD\uFF0C${Qe}\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`:`${Qe}\uFF0C${aa}\u4E0A\u9762\u8FD9\u53E5\u8BDD\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`,Fn=aa=>{let Wn="";aa.key==="1"&&(Wn=fn("\u6DA6\u8272")),aa.key==="2"&&(Wn=fn("\u6269\u5199")),aa.key==="3"&&(Wn=fn("\u7F29\u5199")),ba(),Ae(!0),ln(Wn)},Ea=()=>{const aa=dt.splice(dt.length-2),{text:Wn}=(aa==null?void 0:aa[0])||{};ba(),Ae(!0),ln(Wn,dt)},na=wt||Un,Ka=(ct==null?void 0:ct.trim())==="";return It?b.createElement(he.Z,{open:Ka&&!na&&(ht||!Bt),overlayStyle:{minWidth:200},menu:{items:_t,onClick:Fn}},b.createElement(De,{position:Zt},b.createElement("div",{className:Ye.wrap},An===2&&b.createElement(b.Fragment,null,b.createElement("div",{className:Ye.chatContainer},zn&&b.createElement("div",{className:Ye.loadingWrp},b.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),b.createElement("div",{className:"ai-loading"})),Bt&&b.createElement(Fe.Z,{cancelIndex:kn,streamingStatus:wt,loadImage:!1,onFinish:()=>ge(void 0,null,function*(){qt(0),setTimeout(()=>Bn(!1),0)}),value:Bt})),b.createElement("div",{className:Ye.btnContainer},b.createElement("div",{onClick:()=>Oe(!0,Bt),className:Ye.btn,style:{padding:"0 16px",width:"initial"}},b.createElement("i",{className:"iconfont icon-tihuan mr10 font14"}),"\u66FF\u6362"),b.createElement("div",{onClick:()=>Oe(!1,Bt),className:Ye.btn,style:{padding:"0 16px",width:"initial"}},b.createElement("i",{className:"iconfont icon-charu mr10 font14"}),"\u63D2\u5165"),b.createElement(We.CopyToClipboard,{text:Bt,onCopy:()=>Be.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},b.createElement(Ie.Z,{title:"\u590D\u5236"},b.createElement("div",{className:Ye.btn,style:{marginLeft:"auto"}},b.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),b.createElement(Ie.Z,{title:"\u91CD\u65B0\u751F\u6210"},b.createElement("div",{onClick:Ea,className:Ye.btn},b.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),b.createElement(Ie.Z,{title:"\u5220\u9664"},b.createElement("div",{onClick:()=>{ot(1),ba(),on([])},className:Ye.btn},b.createElement("i",{className:"iconfont icon-shanchu14 font14"}))))),b.createElement("div",{className:Ye.inputContainer},b.createElement(Ce.default.TextArea,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u6587\u672C\u4F18\u5316\u5EFA\u8BAE",value:ct,bordered:!1,onFocus:()=>On(!0),onBlur:()=>setTimeout(()=>On(!1),300),onChange:cn,onPressEnter:va,onCompositionStart:()=>ca.current=!0,onCompositionEnd:()=>ca.current=!1}),Un?b.createElement("div",{className:`iconfont icon-tingzhihuida ${Ye.cancelBtn}`,onClick:wa}):b.createElement(Ge.ZP,{className:Ka?Ye.sendBtnDisabled:Ye.sendBtn,icon:b.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:na,onClick:Oa}))))):b.createElement(b.Fragment,null)},Ue={"hover-line-container":"hover-line-container___kkYQN","hover-line-content":"hover-line-content___ZkD9e","line-button-container":"line-button-container___A79j9",button:"button___X_Iu7"},Me=Object.defineProperty,lt=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Xe=(It,Zt,Qe)=>Zt in It?Me(It,Zt,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):It[Zt]=Qe,nt=(It,Zt)=>{for(var Qe in Zt||(Zt={}))Le.call(Zt,Qe)&&Xe(It,Qe,Zt[Qe]);if(lt)for(var Qe of lt(Zt))be.call(Zt,Qe)&&Xe(It,Qe,Zt[Qe]);return It};const ye=It=>React.createElement("svg",nt({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},It),React.createElement("title",null,"AI\u6539\u5199"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"26.797%",y1:"22.073%",x2:"82.181%",y2:"80.474%",id:"rewrite_svg__a"},React.createElement("stop",{stopColor:"#5C64FF",offset:"0%"}),React.createElement("stop",{stopColor:"#6988F8",offset:"100%"}))),React.createElement("path",{d:"m10.406 4.741.007.015h-.007v-.022.007Zm-.04-.04.855-1.495 1.497-.855-1.496-.855L10.366 0l-.854 1.497-1.497.855 1.496.854.855 1.495ZM3.1 8.442l1.71 3.1 1.603-3.1 3.1-1.71L6.52 5.023l-1.71-3.1-1.71 3.1L0 6.733l3.099 1.709H3.1Zm6.84 3.1 1.069 1.924 1.068-1.924L14 10.473l-1.924-1.069-1.069-1.923L9.94 9.405l-1.924 1.068 1.924 1.07v-.001Z",fill:"url(#rewrite_svg__a)",fillRule:"nonzero"}));var gt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",xt=(0,b.forwardRef)(({initialContent:It,onButtonClick:Zt},Qe)=>{const[Oe,Et]=(0,b.useState)(null),[Gt,vt]=(0,b.useState)(null),[wt,Ae]=(0,b.useState)(""),[dt,on]=(0,b.useState)(null),ct=Qe,et=Ot=>{const Un=document.elementFromPoint(10,Ot),Bn=document.createRange();let kn=null;const qt=document.createTreeWalker(ct.current,NodeFilter.SHOW_TEXT,{acceptNode:Oa=>{const va=document.createRange();va.selectNodeContents(Oa);const wa=va.getBoundingClientRect();return wa.top<=Ot&&wa.bottom>=Ot?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let ca="",zn,ba,ln=null,cn=null,pn=null;for(;zn=qt.nextNode();){zn.parentNode.getAttribute("data-select")==="disabled"&&(ba=!0),ca+=zn.textContent,cn||(cn=zn),pn=zn;const Oa=document.createRange();Oa.selectNodeContents(zn);const va=Oa.getBoundingClientRect();ln===null&&(ln=va.top)}if(cn&&pn&&!ba){const Oa=document.createRange();Oa.setStart(cn,0),Oa.setEnd(pn,pn.textContent.length),on(Oa)}else on(null);return vt(ln-1),ba?"":ca.trim()};function An(Ot){for(;Ot.parentElement&&Ot.parentElement.tagName.toLowerCase()!=="section";){var Un=window.getComputedStyle(Ot.parentElement);if(Un.pointerEvents==="none")return!0;Ot=Ot.parentElement}return!1}const ot=Ot=>{var Un,Bn;if(An(Ot.target)){vt(-1e6);return}if(((Bn=(Un=document.getSelection())==null?void 0:Un.toString)==null?void 0:Bn.call(Un))!==""){vt(-1e6);return}const kn=et(Ot.clientY);if((kn==null?void 0:kn.trim())===""){vt(-1e6);return}const qt=ct.current.getBoundingClientRect();Et(qt.left-30),Ae(kn)},Bt=()=>{},Ht=Ot=>{Zt&&wt&&Zt(wt,Ot.clientX,Ot.clientY,dt)},ht=()=>{if(dt){const Ot=window.getSelection();Ot.removeAllRanges(),Ot.addRange(dt)}},On=()=>{window.getSelection().removeAllRanges()};return(0,b.useEffect)(()=>{const Ot=ct.current;return Ot.addEventListener("mousemove",ot),Ot.addEventListener("mouseleave",Bt),()=>{Ot.removeEventListener("mousemove",ot),Ot.removeEventListener("mouseleave",Bt),On()}},[It]),b.createElement("div",{className:Ue["hover-line-container2"]},Gt!==null&&b.createElement("div",{className:Ue["line-button-container"],style:{top:Gt,left:Oe},onMouseEnter:()=>{ht()},onMouseLeave:()=>{On(),vt(null),Ae(""),on(null)}},b.createElement("div",{className:Ue.button,onClick:Ht},b.createElement("img",{src:gt}),b.createElement("span",null,"AI\u6539\u5199"))))}),ut={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},rn=({nodeRef:It,noRestrictModal:Zt})=>{const[Qe,Oe]=(0,b.useState)(null),[Et,Gt]=(0,b.useState)(null),[vt,wt]=(0,b.useState)(!1),[Ae,dt]=(0,b.useState)(null),[on,ct]=(0,b.useState)(!1),[et,An]=(0,b.useState)(!1),ot=It,Bt=(0,b.useRef)(null),Ht=(0,b.useRef)(null),[ht,On]=(0,b.useState)("");(0,b.useEffect)(()=>{Qe!=null&&Qe.toString()&&On(Qe==null?void 0:Qe.toString())},[Qe==null?void 0:Qe.toString()]);const Ot=()=>{const qt=window.getSelection(),ca=ot.current.scrollTop,zn=ot.current.getBoundingClientRect();if(qt.rangeCount>0&&qt.toString().length>0){const ba=qt.getRangeAt(0);Oe(ba.cloneRange());const ln=ba.getBoundingClientRect(),cn=40;let pn=ln.top+ca-5+cn;pn{if(!qt||qt.rangeCount===0){ct(!1);return}const zn=qt.getRangeAt(0).getBoundingClientRect(),ba=window.getComputedStyle(ot.current),ln=parseInt(ba.lineHeight),cn=parseInt(ba.paddingTop),pn=ot.current.scrollTop,Oa=ot.current.getBoundingClientRect(),va=zn.top-Oa.top+pn,wa=Math.floor((va-cn)/ln),_t=cn+wa*ln-pn;dt(_t),ct(!0)},Bn=qt=>{ot.current&&!ot.current.contains(qt.target)&&An(!1)};(0,b.useEffect)(()=>{const qt=ot.current;return qt.addEventListener("scroll",Ot),qt.addEventListener("input",Ot),qt.addEventListener("click",Ot),qt.addEventListener("mouseup",Ot),qt.addEventListener("keyup",Ot),qt.addEventListener("click",Ot),document.addEventListener("mousedown",Bn),()=>{qt.removeEventListener("scroll",Ot),qt.removeEventListener("input",Ot),qt.removeEventListener("click",Ot),qt.removeEventListener("mouseup",Ot),qt.removeEventListener("keyup",Ot),qt.removeEventListener("click",Ot),document.removeEventListener("mousedown",Bn)}},[]);const kn=(qt=!0,ca)=>{if(!Qe)return;const zn=Ht.current.querySelector("section.edu_md").innerHTML.replace(/]*>([\s\S]*?)<\/p>/g,"$1"),ba=Qe.cloneRange(),ln=window.getSelection();if(ln.removeAllRanges(),ln.addRange(ba),qt){ba.deleteContents();const cn=document.createElement("div");cn.innerHTML=zn;const pn=Array.from(cn.childNodes);for(;pn.length>0;)ba.insertNode(pn.pop())}else{ba.collapse(!1);const cn=document.createElement("div");cn.innerHTML=" "+zn;const pn=Array.from(cn.childNodes);for(;pn.length>0;)ba.insertNode(pn.pop())}ln.removeAllRanges(),Oe(null),wt(!1),Gt(null)};return b.createElement("section",{ref:Ht},Et&&b.createElement("div",{ref:Bt,className:ut.toolbar,style:{top:Et==null?void 0:Et.top,left:Et==null?void 0:Et.left}},b.createElement("div",{className:ut.button,onClick:()=>wt(!0)},b.createElement("img",{src:gt}),b.createElement("span",null,"AI\u6539\u5199"))),b.createElement(Pe,{key:JSON.stringify(Et),noRestrictModal:Zt,visible:vt,position:Et,selectText:ht,applyRefinedText:kn,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),ot.current&&b.createElement(xt,{ref:ot,onButtonClick:(qt,ca,zn,ba)=>{Oe(ba),wt(!0),On(qt),Gt({left:ca,top:zn+20})}}))}},39459:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return Ce}});var b=oe(59301),he=oe(43418),Be={num:"num___VQiqB"},Ce=({visible:Ge,usedCount:Fe,totalCount:Ye,onOk:ke,onCancel:De})=>{const Te=()=>Fe>0?b.createElement("div",null,"\u672C\u6B21\u5C06\u6D88\u80171\u6B21\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\uFF08\u6BCF\u65E5",Ye,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",b.createElement("span",{className:Be.num},Fe),"\u6B21\uFF09\uFF0C\u786E\u5B9A\u64CD\u4F5C\u5417\uFF1F"):b.createElement("div",{className:"mb20"},"\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5",Ye,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",b.createElement("span",{className:Be.num},Fe),"\u6B21\uFF09\u3002");return b.createElement(he.default,{centered:!0,open:Ge,title:"\u63D0\u793A",width:620,zIndex:1100,onCancel:De,onOk:ke,footer:Fe>0?void 0:null},Te())}},97277:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return a},Q:function(){return le}});var b=oe(59301),he={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},Be=oe(40888),Ie=oe(11662),Ce=oe(90973),Ge=o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puyspBOgAAAABJRU5ErkJggg==",De=oe(92310),Te=oe.n(De),We=oe(8591),Ve=(x,y,z)=>new Promise((ne,re)=>{var ie=Pe=>{try{fe(z.next(Pe))}catch(Ue){re(Ue)}},ge=Pe=>{try{fe(z.throw(Pe))}catch(Ue){re(Ue)}},fe=Pe=>Pe.done?ne(Pe.value):Promise.resolve(Pe.value).then(ie,ge);fe((z=z.apply(x,y)).next())});const le={contentRef:{current:null},value:null,status:!1,open:()=>Ve(void 0,null,function*(){}),close:()=>{}};var a=({className:x,style:y,onChange:z,onSuccess:ne,onCancel:re,onError:ie,fetchUrl:ge,noRestrictModal:fe=()=>{},showEditableToolbar:Pe,bottomOffset:Ue=110,loadingText:Me,showEmptyData:lt=!0,onStatusChange:Le,stringTransformer:be,bottomContainerNode:Xe})=>{const[nt,ye]=(0,b.useState)(!1),[gt,pt]=(0,b.useState)(""),[xt,ut]=(0,b.useState)(0),[Kt,rn]=(0,b.useState)(!1),It=(0,b.useRef)(null),Zt=(0,b.useRef)(null),Qe=(0,b.useRef)(null),Oe=(0,b.useRef)(null),Et=(0,Fe.Z)({scrollBoxRef:Oe,bottomInspectRef:Qe,contentRef:Zt,status:Kt,bottomOffset:Ue}),Gt=nt||Kt;(0,b.useEffect)(()=>{z==null||z(gt)},[gt]),(0,b.useEffect)(()=>{Le==null||Le({contentRef:Zt,status:Gt,value:gt,open:vt,close:wt})},[Gt,gt]);const vt=dt=>Ve(void 0,null,function*(){ye(!0),pt(""),ut(0);const on=ge;dt!=null&&dt.fetchUrl&&delete dt.fetchUrl,It.current=new Be.Z(`${Ie.Z.API_SERVER}${on}`,dt),yield new Promise((ct,et)=>{It.current.on("data",An=>{let{chunk:{content:ot,type:Bt}}=An;rn(!0),Bt==="text"&&pt(Ht=>be?be(Ht+ot):Ht+ot)}),It.current.on("done",()=>{ct()}),It.current.on("error",An=>{Object.prototype.toString.call(An)==="[object Object]"&&An.status===-1&&We.ZP.warning((An==null?void 0:An.message)||""),ct(),ie==null||ie(An)}),It.current.on("cancelled",()=>{ct(),re==null||re()}),It.current.startStream()}),ye(!1)}),wt=()=>{var dt,on;ut(1),(on=(dt=It.current)==null?void 0:dt.cancelRequest)==null||on.call(dt),ye(!1),rn(!1)},Ae=(0,b.useMemo)(()=>Zt.current?b.createElement(Ge.Z,{noRestrictModal:fe,nodeRef:Zt}):b.createElement(b.Fragment,null),[Zt.current]);return b.createElement(b.Fragment,null,b.createElement("div",{className:Te()(he.container,x),style:y,ref:Oe},b.createElement("div",{ref:Zt,className:he.liWrap,contentEditable:!Gt},gt&&b.createElement(Ce.Z,{cancelIndex:xt,streamingStatus:nt,loadImage:!1,onFinish:()=>Ve(void 0,null,function*(){ut(0),setTimeout(()=>rn(!1),0),ne==null||ne(gt)}),value:gt})),!gt&&!Gt&&b.createElement("div",{className:he.imgBox},b.createElement("img",{width:56,src:ke}),b.createElement("span",null,"\u9884\u89C8\u533A")),lt&&Gt&&b.createElement(Ye.Z,{text:Me}),!Et&&b.createElement("div",{className:he.backBottom,onClick:()=>{Oe.current.scrollTop=Oe.current.scrollHeight}},b.createElement("i",{className:"iconfont icon-huidaodibu"})),b.createElement("div",{ref:Qe}),Xe),!Gt&&Pe&&Ae)}},22810:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return Ie}});var b=oe(59301),he={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},Ie=({text:Ce})=>b.createElement("div",null,b.createElement("div",{className:he.loading},b.createElement("div",{className:he.dot}),b.createElement("div",{className:he.dot}),b.createElement("div",{className:he.dot})),!!Ce&&b.createElement("div",{className:"mt5"},Ce))},4879:function(_e,Ct,oe){"use strict";oe.d(Ct,{o:function(){return b}});const b=he=>(he=he.replace(new RegExp("(?$1'),he=he.replace(new RegExp("(?]*>/g,""),De=Fe(De),De});xt.Z=he},4479:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return We}});var b=oe(59301),he=oe(43418),Be=oe(95237),Ie=oe(93948),be="data:image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jjq4ePCCF2ijD8vc4vzX/h1QJwpuM3d4+0VCdrL4bAOsfBVaGPCy1L1pHxgkB+bFmjPWGroF8qEPEb+PzPsvND33m7EM5NRT+83CenqBJZzSmM68xttRUorEJSFa8xQOI+yUScYcAoFkM8sWkIL+3lo2YY+HFyUsp7EM69d/+XROG1BGGic508Kav7Ev5FCctp8+rx0Aox8cPNf2VAxAf9Z49k5yNw3g7bualQDK7wfemy7puFk2TplgYL89psNDZEoLCyKVoVY3gvLqpKCcBcrD+Uw2PPDCEzxpQ99TjXTX4Y/H7XXy14+fUG4NWe/6wAIj7oT/8gu8CXzo1SOjcXPf9yL5Au83IpvsjeLY22AqWpkeFtoatbuTBjArBMo8wF2LhpBK8cyGrrTDgjYeB/+pXt+/4aT14bdZ56taR6fY8/64CI3+5//mZuoXTstwewbvK94DI/IKdE1pctMavJxrzZDurrLGV5DY4E2H+4gF2dY8jmQ139KsVj+Xzx9v1fWtD1+pLy33b2sxqI+K3d+U250Pdz7wiRuMn3/UuDQLpFz1ftgIIw1LXN7G7gk3tYbWT1e2H4yR33tH1NG7Nn9/ZrA0ScjB/8x9zCQijfIWHd5BWDS4t+6KpWC4FAoejl/NB+oFD0/9uWP5914uwmf3l0v5ZAxIn7nr/MdWSRv84vhA1eaO3PZ/Kbnv7cnN5fFwDMOP8vz4/Uk8nae+oAAAAASUVORK5CYII=",Ye={dotLoading:"dotLoading___s6Sh4",showHide:"showHide___Dfprh",progress:"progress___QUpqo"},ke=oe(59301);const De=["\u6587\u4EF6\u89E3\u6790\u8BFB\u53D6\u4E2D","\u5185\u5BB9\u7406\u89E3\u5206\u6790\u4E2D","\u7ED3\u6784\u5316\u63D0\u53D6\u4E2D"];var We=()=>{const[Ve,le]=(0,b.useState)(0),[E,a]=(0,b.useState)(!1),[x,y]=(0,b.useState)(!0),z=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(x)return;const Pe=()=>{le(Ue=>Ue>=99?(clearInterval(z.current),99):Ue+1)};return z.current=setInterval(Pe,5e4/99),()=>clearInterval(z.current)},[x]);const ne=()=>{le(0),a(!0),y(!1)},re=(Pe=0)=>{y(!0),le(Pe),a(!1)},ie=Pe=>{const Ue=Pe/1048576;let Me;return Ue<=.3?Me=3:Ue<=.5?Me=5:Ue<=1?Me=10:Ue<=2?Me=20:Ue<=3?Me=30:Ue<=10?Me=Ue*10:Me=100,` \u9884\u8BA1\u5904\u7406\u65F6\u957F\u4E3A${Me}\u5206\u949F\uFF0C\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3`},ge=()=>ke.createElement("span",{className:Ye.dotLoading},ke.createElement("span",null,"."),ke.createElement("span",null,"."),ke.createElement("span",null,"."));return{progress:Ve,progressOpen:E,openProgress:ne,closeProgress:re,toggleLock:()=>y(Pe=>!Pe),CreateProgressModal:(Pe=De,Ue)=>(typeof Pe=="string"&&(Pe=[Pe,Pe,Pe]),ke.createElement(he.default,{centered:!0,closable:!1,destroyOnClose:!0,zIndex:1200,open:E,title:null,footer:null,width:500,afterClose:()=>le(0)},ke.createElement(Be.Z,{align:"middle",className:"mt40 mb20",style:{flexDirection:"column"}},Ve<=30&&ke.createElement(ke.Fragment,null,ke.createElement("img",{src:be,alt:"Step 1"}),ke.createElement("div",{className:"mt20 c-light-primary"},Pe[0],ge())),Ve>30&&Ve<60&&ke.createElement(ke.Fragment,null,ke.createElement("img",{src:Ge,alt:"Step 2"}),ke.createElement("div",{className:"mt20 c-light-primary"},Pe[1],ge())),Ve>=60&&ke.createElement(ke.Fragment,null,ke.createElement("img",{src:Fe,alt:"Step 3"}),ke.createElement("div",{className:"mt20 c-light-primary"},Pe[2],ge())),ke.createElement(Ie.Z,{className:Ye.progress,status:"active",style:{width:"auto"},size:[300,8],percent:Ve}),!!Ue&&ke.createElement("div",{className:"c-grey-999"},ie(Ue)))))}}},48977:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return rn}});var b=oe(59301),he=oe(38854),Be=oe(8591),Ie=oe(6848),be=oe(92832),Ge=oe(3113),Fe=oe(90973),Ye={wrap:"wrap___AasCO",chatContainer:"chatContainer___n6e3E",btnContainer:"btnContainer___yKyVB",btn:"btn___Y_09T",inputContainer:"inputContainer____bM3M",sendBtn:"sendBtn___UHHLj",sendBtnDisabled:"sendBtnDisabled___AoSRc",cancelBtn:"cancelBtn___yql4C",loadingWrp:"loadingWrp___gYLGT","dot-fade":"dot-fade___LruoO"},De=({position:It,children:Zt})=>{const{left:Qe=0,top:Oe=0}=It||{},[Et,Gt]=(0,b.useState)(Qe),[vt,Dt]=(0,b.useState)(Oe),Ae=(0,b.useRef)(null),dt=()=>{if(Ae.current){const on=Ae.current.offsetWidth,ct=Ae.current.offsetHeight,et=window.innerWidth,An=window.innerHeight;let ot=Qe,bt=Oe;Qe+on>et&&(ot=et-on),ot<0&&(ot=0),Oe+ct>An&&(bt=An-ct),bt<0&&(bt=0),Gt(ot),Dt(bt)}};return(0,b.useEffect)(()=>{if(!Ae.current||!It)return;const on=new ResizeObserver(()=>{dt()});return on.observe(Ae.current),()=>{on.disconnect()}},[Qe,Oe,It]),(0,b.useEffect)(()=>{It&&dt()},[Qe,Oe,It]),It?b.createElement("div",{ref:Ae,style:{position:"fixed",left:`${Et}px`,top:`${vt}px`,zIndex:1050}},Zt):null},Te=oe(11662),We=oe(56102),Ve=oe(40888),le=Object.defineProperty,E=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ne=(It,Zt,Qe)=>Zt in It?le(It,Zt,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):It[Zt]=Qe,re=(It,Zt)=>{for(var Qe in Zt||(Zt={}))y.call(Zt,Qe)&&ne(It,Qe,Zt[Qe]);if(x)for(var Qe of x(Zt))z.call(Zt,Qe)&&ne(It,Qe,Zt[Qe]);return It},ie=(It,Zt)=>E(It,a(Zt)),ge=(It,Zt,Qe)=>new Promise((Oe,Et)=>{var Gt=Ae=>{try{Dt(Qe.next(Ae))}catch(dt){Et(dt)}},vt=Ae=>{try{Dt(Qe.throw(Ae))}catch(dt){Et(dt)}},Dt=Ae=>Ae.done?Oe(Ae.value):Promise.resolve(Ae.value).then(Gt,vt);Dt((Qe=Qe.apply(It,Zt)).next())}),Pe=({visible:It,position:Zt,selectText:Qe,applyRefinedText:Oe,fetchUrl:Et,noRestrictModal:Gt})=>{var vt;const[Dt,Ae]=(0,b.useState)(!1),[dt,on]=(0,b.useState)([]),[ct,et]=(0,b.useState)(""),[An,ot]=(0,b.useState)(1),[bt,Ht]=(0,b.useState)(""),[ht,Mn]=(0,b.useState)(!1),Ot=(0,b.useRef)(null),[Un,bn]=(0,b.useState)(!1),[kn,qt]=(0,b.useState)(0),ma=(0,b.useRef)(!1),zn=((vt=dt==null?void 0:dt[(dt==null?void 0:dt.length)-1])==null?void 0:vt.loading)===!0;(0,b.useEffect)(()=>{if(It){ot(1);return}bn(!1),Ae(!1),ba(),qt(0),on([]),ot(0)},[It]);const ba=()=>{var aa,Wn;et(""),Ht(""),(Wn=(aa=Ot.current)==null?void 0:aa.cancelRequest)==null||Wn.call(aa)},ln=(...aa)=>ge(void 0,[...aa],function*(Wn="",Ya=dt){const Ma=Date.now(),Ja=[...Ya,{text:Wn,key:Ma,sender:"user",show:!0},{loading:!0,key:Ma,sender:"AI",show:!0}];ot(2),on(Ja);const Ar=pn(Ya),At={no_record_times:!0,prompt:Wn,history:Ar};Ot.current=new Ve.Z(Te.Z.API_SERVER+Et,At),yield new Promise(In=>{Ot.current.on("data",Rn=>{const{chunk:{msg:wn},full:xe}=Rn,ft=wn==="error";bn(!0),Ht(St(xe)),on(Bt=>Bt.map((Vt,Rt)=>Rt===Bt.length-1?ie(re({},Vt),{text:xe,loading:!1,error:ft}):Vt))}),Ot.current.on("done",()=>In()),Ot.current.on("error",Rn=>{const wn="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Object.prototype.toString.call(Rn)==="[object Object]"&&Rn.status===-9&&(ot(1),Gt(Rn.data)),on(xe=>xe.map((ft,Bt)=>Bt===xe.length-1?ie(re({},ft),{text:wn,loading:!1,error:!0}):ft)),In()}),Ot.current.on("cancelled",()=>In()),Ot.current.startStream()}),Ae(!1)}),cn=aa=>{et(aa.target.value)},pn=aa=>aa.reduce((Ya,Ma)=>{if(Ma.sender==="user"){const Ja=aa.find(Ar=>Ar.key===Ma.key&&Ar.sender==="AI");Ja&&(Ja!=null&&Ja.text)&&!(Ja!=null&&Ja.error)&&Ya.push({question:Ma.text,answer:Ja.text})}return Ya},[]),Oa=()=>{if(Ka)return;const aa=fn("\u6539\u5199");ba(),Ae(!0),ln(aa)},pa=aa=>{if(aa.key==="Enter"&&!aa.shiftKey){if(aa.preventDefault(),ma.current||na)return;Oa()}},wa=()=>{var aa,Wn;qt(Ya=>Ya+1),(Wn=(aa=Ot.current)==null?void 0:aa.cancelRequest)==null||Wn.call(aa),Ae(!1),bn(!1)},_t=[{key:"1",label:b.createElement("span",null," ",b.createElement("i",{className:"iconfont icon-runse font14 mr10"}),"\u6DA6\u8272 ")},{key:"2",label:b.createElement("span",null,b.createElement("i",{className:"iconfont icon-kuoxie font14 mr10"}),"\u6269\u5199")},{key:"3",label:b.createElement("span",null," ",b.createElement("i",{className:"iconfont icon-suoxie font14 mr10"}),"\u7F29\u5199")}],St=(aa="")=>{const Wn=["\u7B54\u6848\uFF1A","\u96BE\u5EA6\uFF1A","\u89E3\u6790\uFF1A","\u77E5\u8BC6\u70B9\uFF1A","\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09","\u7F16\u7A0B\u8BED\u8A00\uFF1A","\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A","\u7A0B\u5E8F\u4EE3\u7801\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"];return Array.from({length:20}).forEach((Ya,Ma)=>{Wn.push(`\u7B54\u6848${Ma+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${Ma+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${Ma+1})\u8F93\u51FA\uFF1A`)}),Wn.forEach(Ya=>{const Ma=new RegExp(Ya,"g");aa=aa.replace(Ma,`**${Ya}** `)}),aa},fn=aa=>aa==="\u6539\u5199"?`${ct}\uFF0C\u6839\u636E\u4E0A\u8FF0\u8981\u6C42\u6539\u5199\u8FD9\u53E5\u8BDD\uFF0C${Qe}\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`:`${Qe}\uFF0C${aa}\u4E0A\u9762\u8FD9\u53E5\u8BDD\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`,Fn=aa=>{let Wn="";aa.key==="1"&&(Wn=fn("\u6DA6\u8272")),aa.key==="2"&&(Wn=fn("\u6269\u5199")),aa.key==="3"&&(Wn=fn("\u7F29\u5199")),ba(),Ae(!0),ln(Wn)},ya=()=>{const aa=dt.splice(dt.length-2),{text:Wn}=(aa==null?void 0:aa[0])||{};ba(),Ae(!0),ln(Wn,dt)},na=Dt||Un,Ka=(ct==null?void 0:ct.trim())==="";return It?b.createElement(he.Z,{open:Ka&&!na&&(ht||!bt),overlayStyle:{minWidth:200},menu:{items:_t,onClick:Fn}},b.createElement(De,{position:Zt},b.createElement("div",{className:Ye.wrap},An===2&&b.createElement(b.Fragment,null,b.createElement("div",{className:Ye.chatContainer},zn&&b.createElement("div",{className:Ye.loadingWrp},b.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),b.createElement("div",{className:"ai-loading"})),bt&&b.createElement(Fe.Z,{cancelIndex:kn,streamingStatus:Dt,loadImage:!1,onFinish:()=>ge(void 0,null,function*(){qt(0),setTimeout(()=>bn(!1),0)}),value:bt})),b.createElement("div",{className:Ye.btnContainer},b.createElement("div",{onClick:()=>Oe(!0,bt),className:Ye.btn,style:{padding:"0 16px",width:"initial"}},b.createElement("i",{className:"iconfont icon-tihuan mr10 font14"}),"\u66FF\u6362"),b.createElement("div",{onClick:()=>Oe(!1,bt),className:Ye.btn,style:{padding:"0 16px",width:"initial"}},b.createElement("i",{className:"iconfont icon-charu mr10 font14"}),"\u63D2\u5165"),b.createElement(We.CopyToClipboard,{text:bt,onCopy:()=>Be.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},b.createElement(Ie.Z,{title:"\u590D\u5236"},b.createElement("div",{className:Ye.btn,style:{marginLeft:"auto"}},b.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),b.createElement(Ie.Z,{title:"\u91CD\u65B0\u751F\u6210"},b.createElement("div",{onClick:ya,className:Ye.btn},b.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),b.createElement(Ie.Z,{title:"\u5220\u9664"},b.createElement("div",{onClick:()=>{ot(1),ba(),on([])},className:Ye.btn},b.createElement("i",{className:"iconfont icon-shanchu14 font14"}))))),b.createElement("div",{className:Ye.inputContainer},b.createElement(be.default.TextArea,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u6587\u672C\u4F18\u5316\u5EFA\u8BAE",value:ct,bordered:!1,onFocus:()=>Mn(!0),onBlur:()=>setTimeout(()=>Mn(!1),300),onChange:cn,onPressEnter:pa,onCompositionStart:()=>ma.current=!0,onCompositionEnd:()=>ma.current=!1}),Un?b.createElement("div",{className:`iconfont icon-tingzhihuida ${Ye.cancelBtn}`,onClick:wa}):b.createElement(Ge.ZP,{className:Ka?Ye.sendBtnDisabled:Ye.sendBtn,icon:b.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:na,onClick:Oa}))))):b.createElement(b.Fragment,null)},Ue={"hover-line-container":"hover-line-container___kkYQN","hover-line-content":"hover-line-content___ZkD9e","line-button-container":"line-button-container___A79j9",button:"button___X_Iu7"},Me=Object.defineProperty,lt=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Xe=(It,Zt,Qe)=>Zt in It?Me(It,Zt,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):It[Zt]=Qe,nt=(It,Zt)=>{for(var Qe in Zt||(Zt={}))Le.call(Zt,Qe)&&Xe(It,Qe,Zt[Qe]);if(lt)for(var Qe of lt(Zt))Ce.call(Zt,Qe)&&Xe(It,Qe,Zt[Qe]);return It};const ye=It=>React.createElement("svg",nt({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},It),React.createElement("title",null,"AI\u6539\u5199"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"26.797%",y1:"22.073%",x2:"82.181%",y2:"80.474%",id:"rewrite_svg__a"},React.createElement("stop",{stopColor:"#5C64FF",offset:"0%"}),React.createElement("stop",{stopColor:"#6988F8",offset:"100%"}))),React.createElement("path",{d:"m10.406 4.741.007.015h-.007v-.022.007Zm-.04-.04.855-1.495 1.497-.855-1.496-.855L10.366 0l-.854 1.497-1.497.855 1.496.854.855 1.495ZM3.1 8.442l1.71 3.1 1.603-3.1 3.1-1.71L6.52 5.023l-1.71-3.1-1.71 3.1L0 6.733l3.099 1.709H3.1Zm6.84 3.1 1.069 1.924 1.068-1.924L14 10.473l-1.924-1.069-1.069-1.923L9.94 9.405l-1.924 1.068 1.924 1.07v-.001Z",fill:"url(#rewrite_svg__a)",fillRule:"nonzero"}));var gt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",wt=(0,b.forwardRef)(({initialContent:It,onButtonClick:Zt},Qe)=>{const[Oe,Et]=(0,b.useState)(null),[Gt,vt]=(0,b.useState)(null),[Dt,Ae]=(0,b.useState)(""),[dt,on]=(0,b.useState)(null),ct=Qe,et=Ot=>{const Un=document.elementFromPoint(10,Ot),bn=document.createRange();let kn=null;const qt=document.createTreeWalker(ct.current,NodeFilter.SHOW_TEXT,{acceptNode:Oa=>{const pa=document.createRange();pa.selectNodeContents(Oa);const wa=pa.getBoundingClientRect();return wa.top<=Ot&&wa.bottom>=Ot?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let ma="",zn,ba,ln=null,cn=null,pn=null;for(;zn=qt.nextNode();){zn.parentNode.getAttribute("data-select")==="disabled"&&(ba=!0),ma+=zn.textContent,cn||(cn=zn),pn=zn;const Oa=document.createRange();Oa.selectNodeContents(zn);const pa=Oa.getBoundingClientRect();ln===null&&(ln=pa.top)}if(cn&&pn&&!ba){const Oa=document.createRange();Oa.setStart(cn,0),Oa.setEnd(pn,pn.textContent.length),on(Oa)}else on(null);return vt(ln-1),ba?"":ma.trim()};function An(Ot){for(;Ot.parentElement&&Ot.parentElement.tagName.toLowerCase()!=="section";){var Un=window.getComputedStyle(Ot.parentElement);if(Un.pointerEvents==="none")return!0;Ot=Ot.parentElement}return!1}const ot=Ot=>{var Un,bn;if(An(Ot.target)){vt(-1e6);return}if(((bn=(Un=document.getSelection())==null?void 0:Un.toString)==null?void 0:bn.call(Un))!==""){vt(-1e6);return}const kn=et(Ot.clientY);if((kn==null?void 0:kn.trim())===""){vt(-1e6);return}const qt=ct.current.getBoundingClientRect();Et(qt.left-30),Ae(kn)},bt=()=>{},Ht=Ot=>{Zt&&Dt&&Zt(Dt,Ot.clientX,Ot.clientY,dt)},ht=()=>{if(dt){const Ot=window.getSelection();Ot.removeAllRanges(),Ot.addRange(dt)}},Mn=()=>{window.getSelection().removeAllRanges()};return(0,b.useEffect)(()=>{const Ot=ct.current;return Ot.addEventListener("mousemove",ot),Ot.addEventListener("mouseleave",bt),()=>{Ot.removeEventListener("mousemove",ot),Ot.removeEventListener("mouseleave",bt),Mn()}},[It]),b.createElement("div",{className:Ue["hover-line-container2"]},Gt!==null&&b.createElement("div",{className:Ue["line-button-container"],style:{top:Gt,left:Oe},onMouseEnter:()=>{ht()},onMouseLeave:()=>{Mn(),vt(null),Ae(""),on(null)}},b.createElement("div",{className:Ue.button,onClick:Ht},b.createElement("img",{src:gt}),b.createElement("span",null,"AI\u6539\u5199"))))}),ut={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},rn=({nodeRef:It,noRestrictModal:Zt})=>{const[Qe,Oe]=(0,b.useState)(null),[Et,Gt]=(0,b.useState)(null),[vt,Dt]=(0,b.useState)(!1),[Ae,dt]=(0,b.useState)(null),[on,ct]=(0,b.useState)(!1),[et,An]=(0,b.useState)(!1),ot=It,bt=(0,b.useRef)(null),Ht=(0,b.useRef)(null),[ht,Mn]=(0,b.useState)("");(0,b.useEffect)(()=>{Qe!=null&&Qe.toString()&&Mn(Qe==null?void 0:Qe.toString())},[Qe==null?void 0:Qe.toString()]);const Ot=()=>{const qt=window.getSelection(),ma=ot.current.scrollTop,zn=ot.current.getBoundingClientRect();if(qt.rangeCount>0&&qt.toString().length>0){const ba=qt.getRangeAt(0);Oe(ba.cloneRange());const ln=ba.getBoundingClientRect(),cn=40;let pn=ln.top+ma-5+cn;pn{if(!qt||qt.rangeCount===0){ct(!1);return}const zn=qt.getRangeAt(0).getBoundingClientRect(),ba=window.getComputedStyle(ot.current),ln=parseInt(ba.lineHeight),cn=parseInt(ba.paddingTop),pn=ot.current.scrollTop,Oa=ot.current.getBoundingClientRect(),pa=zn.top-Oa.top+pn,wa=Math.floor((pa-cn)/ln),_t=cn+wa*ln-pn;dt(_t),ct(!0)},bn=qt=>{ot.current&&!ot.current.contains(qt.target)&&An(!1)};(0,b.useEffect)(()=>{const qt=ot.current;return qt.addEventListener("scroll",Ot),qt.addEventListener("input",Ot),qt.addEventListener("click",Ot),qt.addEventListener("mouseup",Ot),qt.addEventListener("keyup",Ot),qt.addEventListener("click",Ot),document.addEventListener("mousedown",bn),()=>{qt.removeEventListener("scroll",Ot),qt.removeEventListener("input",Ot),qt.removeEventListener("click",Ot),qt.removeEventListener("mouseup",Ot),qt.removeEventListener("keyup",Ot),qt.removeEventListener("click",Ot),document.removeEventListener("mousedown",bn)}},[]);const kn=(qt=!0,ma)=>{if(!Qe)return;const zn=Ht.current.querySelector("section.edu_md").innerHTML.replace(/]*>([\s\S]*?)<\/p>/g,"$1"),ba=Qe.cloneRange(),ln=window.getSelection();if(ln.removeAllRanges(),ln.addRange(ba),qt){ba.deleteContents();const cn=document.createElement("div");cn.innerHTML=zn;const pn=Array.from(cn.childNodes);for(;pn.length>0;)ba.insertNode(pn.pop())}else{ba.collapse(!1);const cn=document.createElement("div");cn.innerHTML=" "+zn;const pn=Array.from(cn.childNodes);for(;pn.length>0;)ba.insertNode(pn.pop())}ln.removeAllRanges(),Oe(null),Dt(!1),Gt(null)};return b.createElement("section",{ref:Ht},Et&&b.createElement("div",{ref:bt,className:ut.toolbar,style:{top:Et==null?void 0:Et.top,left:Et==null?void 0:Et.left}},b.createElement("div",{className:ut.button,onClick:()=>Dt(!0)},b.createElement("img",{src:gt}),b.createElement("span",null,"AI\u6539\u5199"))),b.createElement(Pe,{key:JSON.stringify(Et),noRestrictModal:Zt,visible:vt,position:Et,selectText:ht,applyRefinedText:kn,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),ot.current&&b.createElement(wt,{ref:ot,onButtonClick:(qt,ma,zn,ba)=>{Oe(ba),Dt(!0),Mn(qt),Gt({left:ma,top:zn+20})}}))}},39459:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return be}});var b=oe(59301),he=oe(43418),Be={num:"num___VQiqB"},be=({visible:Ge,usedCount:Fe,totalCount:Ye,onOk:ke,onCancel:De})=>{const Te=()=>Fe>0?b.createElement("div",null,"\u672C\u6B21\u5C06\u6D88\u80171\u6B21\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\uFF08\u6BCF\u65E5",Ye,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",b.createElement("span",{className:Be.num},Fe),"\u6B21\uFF09\uFF0C\u786E\u5B9A\u64CD\u4F5C\u5417\uFF1F"):b.createElement("div",{className:"mb20"},"\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5",Ye,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",b.createElement("span",{className:Be.num},Fe),"\u6B21\uFF09\u3002");return b.createElement(he.default,{centered:!0,open:Ge,title:"\u63D0\u793A",width:620,zIndex:1100,onCancel:De,onOk:ke,footer:Fe>0?void 0:null},Te())}},97277:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return a},Q:function(){return le}});var b=oe(59301),he={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},Be=oe(40888),Ie=oe(11662),be=oe(90973),Ge=oe(48977),Fe=oe(30268),Ye=oe(22810),ke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAADGlJREFUeF7tnVlQHMcZx7/umT0AcSjGBonDOmxdgV2Ww0iWIsmxrfIhJ1VJ2W+uilgEjqtclTwmLxQvyYur8uCKYmFQXMmbXUlV4lw+YsmHkBECdhdkSZZlyUJgScEWh7h2d7pTvcUuw2hhp3dm2dmleWPn66+/+f+me7p7vplGkOQfpRTVt56vgJCyARAtpAg5knS1JosRhBQMdMpJbddPd+68jhCiyQiBkil0sO2qc2J4yoMQLU6mvCizVAFCyLdFlUX9p9o3z/Fqww2Qtbxa7+BuAY9X6pXtGcSBEzVneFsiN8C6lqFKqihuc8MX3pgCTrAFurt2fc2jBj/AI/5GiuGBaCVIgtv2vOnAmd89OstT8Vq33fPL7pzgdJ6LKotaAoLx/k73Jzza8ANs8h1SD1gcBdMfCHg8ki/aMojzk3lPRH9hAxtfp+tfPN64AdZ6/c+pK+jvcr/DU6GwXaqAUT0FwDRfUQJgmgEYrV4ANKpgmssLgGkGYLR6AdCogmkuLwCmGYDR6gVAowqmubwAmGYARqsXAI0qmObyAmCaARitXgA0qmCaywuAaQZgtHoB0KiCaS4vAKYZ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9ouVI4Rie34TAqMfSlCkKDsoS+eLrM9XW8JbLG5tRDXJMAoyCffuWy49bMZAWiUikgqZACiaVkLNcaI/NJCrfA7vjm8IZt3yVa20w1xDUNUA3p+effkm4U7Cqcg2A+AruNymDH80RSHPKcTVLmbITM27E0k8zD2FRCFACTvfFxllsOopQr9fYeq7rJ6S5mzg2wrsl3SD0SEx891y99PIgU0MRAl+tj/V6WWvIDPOJvVH9WQ2w7wCe9FiLTr6/D3cPnZdGaH2DLUCVVFHeyFWZKuVQmBrP36MPzZBtCNFiG7w8Yef2bG+BCptVudapcpkDhiTOVAHniSGTLDTA6IZ4YnvJkM8SsBsggRl5pbj1fASFlQ6IlpkRXkRWPZwrA/wPlJnpuyspBOgAAAABJRU5ErkJggg==",De=oe(92310),Te=oe.n(De),We=oe(8591),Ve=(x,y,z)=>new Promise((ne,re)=>{var ie=Pe=>{try{fe(z.next(Pe))}catch(Ue){re(Ue)}},ge=Pe=>{try{fe(z.throw(Pe))}catch(Ue){re(Ue)}},fe=Pe=>Pe.done?ne(Pe.value):Promise.resolve(Pe.value).then(ie,ge);fe((z=z.apply(x,y)).next())});const le={contentRef:{current:null},value:null,status:!1,open:()=>Ve(void 0,null,function*(){}),close:()=>{}};var a=({className:x,style:y,onChange:z,onSuccess:ne,onCancel:re,onError:ie,fetchUrl:ge,noRestrictModal:fe=()=>{},showEditableToolbar:Pe,bottomOffset:Ue=110,loadingText:Me,showEmptyData:lt=!0,onStatusChange:Le,stringTransformer:Ce,bottomContainerNode:Xe})=>{const[nt,ye]=(0,b.useState)(!1),[gt,pt]=(0,b.useState)(""),[wt,ut]=(0,b.useState)(0),[Kt,rn]=(0,b.useState)(!1),It=(0,b.useRef)(null),Zt=(0,b.useRef)(null),Qe=(0,b.useRef)(null),Oe=(0,b.useRef)(null),Et=(0,Fe.Z)({scrollBoxRef:Oe,bottomInspectRef:Qe,contentRef:Zt,status:Kt,bottomOffset:Ue}),Gt=nt||Kt;(0,b.useEffect)(()=>{z==null||z(gt)},[gt]),(0,b.useEffect)(()=>{Le==null||Le({contentRef:Zt,status:Gt,value:gt,open:vt,close:Dt})},[Gt,gt]);const vt=dt=>Ve(void 0,null,function*(){ye(!0),pt(""),ut(0);const on=ge;dt!=null&&dt.fetchUrl&&delete dt.fetchUrl,It.current=new Be.Z(`${Ie.Z.API_SERVER}${on}`,dt),yield new Promise((ct,et)=>{It.current.on("data",An=>{let{chunk:{content:ot,type:bt}}=An;rn(!0),bt==="text"&&pt(Ht=>Ce?Ce(Ht+ot):Ht+ot)}),It.current.on("done",()=>{ct()}),It.current.on("error",An=>{Object.prototype.toString.call(An)==="[object Object]"&&An.status===-1&&We.ZP.warning((An==null?void 0:An.message)||""),ct(),ie==null||ie(An)}),It.current.on("cancelled",()=>{ct(),re==null||re()}),It.current.startStream()}),ye(!1)}),Dt=()=>{var dt,on;ut(1),(on=(dt=It.current)==null?void 0:dt.cancelRequest)==null||on.call(dt),ye(!1),rn(!1)},Ae=(0,b.useMemo)(()=>Zt.current?b.createElement(Ge.Z,{noRestrictModal:fe,nodeRef:Zt}):b.createElement(b.Fragment,null),[Zt.current]);return b.createElement(b.Fragment,null,b.createElement("div",{className:Te()(he.container,x),style:y,ref:Oe},b.createElement("div",{ref:Zt,className:he.liWrap,contentEditable:!Gt},gt&&b.createElement(be.Z,{cancelIndex:wt,streamingStatus:nt,loadImage:!1,onFinish:()=>Ve(void 0,null,function*(){ut(0),setTimeout(()=>rn(!1),0),ne==null||ne(gt)}),value:gt})),!gt&&!Gt&&b.createElement("div",{className:he.imgBox},b.createElement("img",{width:56,src:ke}),b.createElement("span",null,"\u9884\u89C8\u533A")),lt&&Gt&&b.createElement(Ye.Z,{text:Me}),!Et&&b.createElement("div",{className:he.backBottom,onClick:()=>{Oe.current.scrollTop=Oe.current.scrollHeight}},b.createElement("i",{className:"iconfont icon-huidaodibu"})),b.createElement("div",{ref:Qe}),Xe),!Gt&&Pe&&Ae)}},22810:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Ie}});var b=oe(59301),he={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},Ie=({text:be})=>b.createElement("div",null,b.createElement("div",{className:he.loading},b.createElement("div",{className:he.dot}),b.createElement("div",{className:he.dot}),b.createElement("div",{className:he.dot})),!!be&&b.createElement("div",{className:"mt5"},be))},4879:function(_e,xt,oe){"use strict";oe.d(xt,{o:function(){return b}});const b=he=>(he=he.replace(new RegExp("(?$1'),he=he.replace(new RegExp("(?$1 -`),he)},81232:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return Ie}});var b=oe(59301),he={digitalLabel:"digitalLabel___tImKs",active:"active___Ck70Q"},Ie=({number:Ce,active:Ge,className:Fe})=>b.createElement("div",{className:`${he.digitalLabel} ${Ge?he.active:""} ${Fe}`},Ce)},81399:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return y}});var b=oe(59301),he=oe(17574),Be={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},Ie=oe(73631),Ce=oe(5623),Ge=oe(40427),Fe=Object.defineProperty,Ye=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ve=(z,ne,re)=>ne in z?Fe(z,ne,{enumerable:!0,configurable:!0,writable:!0,value:re}):z[ne]=re,le=(z,ne)=>{for(var re in ne||(ne={}))Te.call(ne,re)&&Ve(z,re,ne[re]);if(De)for(var re of De(ne))We.call(ne,re)&&Ve(z,re,ne[re]);return z},E=(z,ne)=>Ye(z,ke(ne)),a=(z,ne,re)=>new Promise((ie,ge)=>{var fe=Me=>{try{Ue(re.next(Me))}catch(lt){ge(lt)}},Pe=Me=>{try{Ue(re.throw(Me))}catch(lt){ge(lt)}},Ue=Me=>Me.done?ie(Me.value):Promise.resolve(Me.value).then(fe,Pe);Ue((re=re.apply(z,ne)).next())}),y=({value:z,onChange:ne,scrollId:re})=>{const[ie,ge]=(0,b.useState)([]);(0,b.useEffect)(()=>{fe()},[]);const fe=()=>a(void 0,null,function*(){const be=yield(0,Ge.NZ)({});if(be!=null&&be.data){const Xe=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:b.createElement("img",{src:Ie,className:Be.folderIcon}),isLeaf:!1,children:Pe(be.data||[])}];ge(Xe)}}),Pe=be=>be.map(Xe=>({title:Xe.name,key:Xe.group_id,icon:b.createElement("img",{src:Ie,className:Be.folderIcon}),isLeaf:Xe.children.length===0,children:Pe(Xe.children)})),Ue=(be,Xe,nt)=>be.map(ye=>ye.key===Xe?le(le({},ye),nt):ye.children?E(le({},ye),{children:Ue(ye.children,Xe,nt)}):ye),Me=(be,Xe,nt)=>be.map(ye=>{if(ye.key===Xe)return E(le({},ye),{icon:nt?b.createElement("img",{src:Ce,className:Be.folderIcon}):b.createElement("img",{src:Ie,className:Be.folderIcon})});if(ye.children)return E(le({},ye),{children:Me(ye.children,Xe,nt)})}),lt=(be,Xe)=>{ge(nt=>Me(nt,Xe.node.key,Xe.expanded))},Le=z?{selectedKeys:z,defaultExpandedKeys:z}:{};return ie.length>0&&b.createElement("div",{id:re||""},b.createElement(he.default,le({showLine:{showLeafIcon:!1},showIcon:!0,treeData:ie,className:Be.folderWrapper,onSelect:ne,onExpand:lt},Le)))}},51529:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return Ge}});var b=oe(60324),he={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},Be=oe(32637),Ie=oe(59301),Ge=({type:Fe,style:Ye})=>{const ke=Ie.createElement("div",{className:he.wrap,onClick:De=>{De.preventDefault(),De.stopPropagation()}},Ie.createElement("p",null,Fe==="shixun"||Fe==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Ie.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",Fe==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Ie.createElement("div",{className:he.contact},Ie.createElement("div",{className:he.img},Ie.createElement("img",{src:Be,width:"124px",height:"124px"})),Ie.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Ie.createElement(b.Z,{content:ke},Ie.createElement("span",{className:he.text,style:Ye},"\u9AD8\u6D88\u8017"))}},2781:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return Te}});var b=oe(59301),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Be=oe(92310),Ie=oe.n(Be),Ce=oe(71418),Ge=oe(2859),Fe=oe(64866),Ye=oe(22566),ke=(We,Ve,le)=>new Promise((E,a)=>{var x=ne=>{try{z(le.next(ne))}catch(re){a(re)}},y=ne=>{try{z(le.throw(ne))}catch(re){a(re)}},z=ne=>ne.done?E(ne.value):Promise.resolve(ne.value).then(x,y);z((le=le.apply(We,Ve)).next())}),Te=({data:We,className:Ve,fullWidth:le,style:E={},onClose:a,onOk:x,showFullTools:y,noAssociationId:z})=>{const ne=(0,b.useRef)(null),re=(0,b.useRef)(null),ie=(0,b.useRef)(null),ge=(0,b.useRef)(null),[fe,Pe]=(0,b.useState)(!1),[Ue,Me]=(0,b.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,b.useEffect)(()=>{ie.current||(ie.current=document.createElement("style"),document.head.appendChild(ie.current)),We!=null&&We.visible?(document.body.setAttribute("data-custom","y-hidden"),ie.current.innerHTML=" html { overflow-y: hidden; }",We!=null&&We.src&<()):(document.body.removeAttribute("data-custom"),ie.current&&(document.head.removeChild(ie.current),ie.current=null))},[We==null?void 0:We.visible]);const lt=()=>ke(void 0,null,function*(){Pe(!0),Me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ye=yield(0,Ye.ZJ)(We==null?void 0:We.src);ne.current.src="",ne.current.src=ye,ne.current.onload=function(){nt()},Pe(!1),Me("")}),Le=()=>{document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",a()},be=ye=>ke(void 0,null,function*(){Pe(!0),Me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const gt=yield(0,Fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:We.title,file:ye.dataUrl}});gt!=null&>.id&&!z?(yield(0,Fe.ZP)(`/api/attachments/${We.id}/add_subitem.json`,{method:"post",body:{subitem_id:gt==null?void 0:gt.id,settings:JSON.stringify(ye.state)}})).status===0&&x():gt!=null&>.id&&x(gt),document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",Pe(!1),Me("")}),Xe=()=>{const ye=document.querySelector('a[href="https://markerjs.com/"]');ye&&ye.parentNode&&(ye.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(pt=>{const xt=document.querySelector(pt.name);xt&&xt.setAttribute("title",pt.title)})},nt=()=>{re.current=new Ge.hP(ne.current),re.current.targetRoot=ge.current,re.current.addEventListener("render",be),re.current.addEventListener("beforeclose",Le),y&&(re.current.availableMarkerTypes=re.current.ALL_MARKER_TYPES,re.current.uiStyleSettings.redoButtonVisible=!0,re.current.uiStyleSettings.notesButtonVisible=!0,re.current.uiStyleSettings.zoomButtonVisible=!0,re.current.uiStyleSettings.zoomOutButtonVisible=!0,re.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=re.current.uiStyleSettings,re.current.show(),We!=null&&We.snapshotData&&re.current.restoreState(We.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Xe()},300)};return b.createElement(b.Fragment,null,(We==null?void 0:We.visible)&&b.createElement(Ce.Z,{spinning:fe,tip:Ue,style:{position:"absolute"}},b.createElement("div",{ref:ge,className:Ie()(he.imageDimensions,Ve,le?he.fullWidth:""),style:E},b.createElement("img",{className:he.img,ref:ne}))))}},5864:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return ba},$:function(){return zn}});var b=oe(59301),he={flex_box_center:"flex_box_center___ILe3s",flex_space_between:"flex_space_between___c0XhE",flex_box_vertical_center:"flex_box_vertical_center___Iusj1",flex_box_center_end:"flex_box_center_end___DIVMO",flex_box_column:"flex_box_column___x06LA",intelligentBox:"intelligentBox___M5xO7",red:"red___oyEWt",imgBox:"imgBox___DdoNI",underpin:"underpin___fwUex",row:"row___W9MrK",leftLayout:"leftLayout___MMjoZ",rightLayout:"rightLayout___EsxRX",head:"head___Q7Od8",centerBox:"centerBox___j58Ut",title:"title___rMcNx",tip:"tip___gLHFS",leftBox:"leftBox___DJ6lp",question:"question___THjM9",rightBox:"rightBox___CuMdf",error:"error___PHzCG",actionHead:"actionHead___vTHMx",edit:"edit___EaRLy",option:"option___z4UTy",active:"active___o8wNJ",fill:"fill___g760n",text:"text___L_lug",liWrap:"liWrap___LDwxe",li:"li___k4Mcf",buttonFixed:"buttonFixed___QxKdm",buttonWrap:"buttonWrap___OEep5",button:"button___b2y4h",menu:"menu___aQ4xO",tabs:"tabs___QmlP4",dotLoading:"dotLoading___zUYOu",showHide:"showHide___fHrAG"},Be=oe(92310),Ie=oe.n(Be),Ce=oe(78241),Ge=oe(8591),Fe=oe(43418),Ye=oe(5871),ke=oe(95237),De=oe(24905),Te=oe(38854),We=oe(54580),Ve=oe(3113),le=oe(93948),E=oe(19842),a=oe(92832),x=oe(2751),y=oe(11662),z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAABk1JREFUWEd1lwlsVkUQx3/7ClGMSMSrHCKXHCpQhYhCNB5AYqRQGq1AiKgEEAiokAJFFIoipcVE5EYFyn23IGCJgoTDQimWSJSzCIKIcglUEIGu2bdv3+77vo+XfPl2Z2Zn5z8zuzsjSPDJ0tZV2ftfGog0BG0Q1AbuRABCgJDBvxorWqDE5xkZh+4porNGjRXNyKvlMuCbf2OXDPRIWYHnnQJKqaSQOimFos3s67HmG1NCupzxWDcgD2Qjf0P1qT/fqGAcGh4Yb4x1ZZSsCySy3oAV4LnOCByi9Pl7CQ00HPvIDb0cz8sUqSUFLqgQkJRjPCavzEFUZoaecz2oNjYAjXGJgEQi5Bio1kYiZYDEOEt5z4+ecZ4D2I2kGePl0eWlkUJkVxp/+yvkpOa5IDOtxxIAiE2nuEg5RhjZ2EiFhgYpF6ZfTNq662KzI+TpgOGJPJFaMjwEJCc06YZgtY5AENLMA7HpCcVTYfd0TR/yi+Vvy4F9CyG5BaQviV9nKBeOwNrXoNdOSKqqqSe2wJZ3dfS9JP0LM+MmyJt63iEfaj6m11w5DUWdo+c1yUtX6SfkrNZVOXNpP1I2Cg+qApV1KN6wc+WQ31nTh+63/K05sHc+JLeEjKW3BnT+CKxKh66L4P4WWu7ySVj1sh63GwNN0u36IwVQMk6HPWMHVKmm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I1o04CURSVBXYgA6swvoq2UwqsYdsTwKxAHUENq5E2xIOk/lX9+PbmDnQFYihxxjTFdhs60p3M/3oZEH3d5EEGha4f7voFUcvzuaWroCnOh0SqEqsZTz2CmyW47YsD3hDH5YfnvilMqWGQCklJG5lbJUgjd0nMGhH3GJJTATBwwLuib7+tUxq7IffenD2xupwlcFxUfO43xCN6y4BcCuFTCrx2U8XOHN9dabmCbr6/NDq4RjO2fdLo1MfOy2Gw+mrb+Z6OC9qpUDA4fzn8ICbfb4wXm4XI4EKQE0MrS+GO8zOvXxwauew/iTQhBWNnhEhN9KLM19boyRQA6apSMS2t84fe7yRTCYPHhKTQFM2NPsCsNKfddTGYjgJ1ARpNCahOiJF9sXiTIkEGjWh3xy4lINS5EigPkPzSQlVEmheg/4MSKA+O9PJ/a/QIfoKNS1Cqz/9E6OFLRQhuo0IhQa9SdCNvB63UKRoKS0UGtQnQYvZ6sxCk/D1OIke6IbG1z8T8f1Al7ZUhE+g0paK+vRpU5O+ROObmvSnTsk6gVBsKyQV+gSCEEgbe/X5o5NYgW6/u5m+Q1vr0SJ0C+gKpJdbdIkHnNMRSK+XBSwBU05VIL3giaHdhayKQHrFugsCsCX9CKRDDrCUu5jvJJCOGeki/CBK00E/QVA0WIOO2jIIP4jW8/OSP8u/m/aksJr16LC7IMj2sEbzuEkBnmdFo+u9PG7yNxidqHC3DAxxAAAAAElFTkSuQmCC",ge=oe(64866),fe=oe(81399),Pe=oe(5623),Ue=oe(10939),Me=oe(78926),lt=oe(52999),Le=oe(15342),be=oe.n(Le),Xe=(ln,cn,pn)=>new Promise((Oa,va)=>{var wa=fn=>{try{St(pn.next(fn))}catch(Fn){va(Fn)}},_t=fn=>{try{St(pn.throw(fn))}catch(Fn){va(Fn)}},St=fn=>fn.done?Oa(fn.value):Promise.resolve(fn.value).then(wa,_t);St((pn=pn.apply(ln,cn)).next())}),ye=b.memo(({tagName:ln="div",value:cn="",className:pn,style:Oa={},onBlur:va,id:wa})=>{const _t=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(!_t.current)return;Xe(void 0,null,function*(){const Fn=_t.current;Fn.innerHTML="";const Ea=cn==null?void 0:cn.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const na of Ea)if(na.startsWith("$$")&&na.endsWith("$$")||na.startsWith("`$$")&&na.endsWith("$$`")){const Ka=na.startsWith("`$$")?na.slice(3,-3):na.slice(2,-2),aa=document.createElement("span");aa.setAttribute("contentEditable","false"),aa.setAttribute("title",na),aa.className="edu_latex",Fn.appendChild(aa),be().render(Ka,aa,{throwOnError:!1})}else{const Ka=na==null?void 0:na.replace(/<[^>]*>/g,aa=>aa.startsWith("{var fn,Fn;if(va&&_t.current){const na=_t.current.cloneNode(!0),Ka=na.querySelectorAll("span.edu_latex");for(let aa of Ka){const Wn=aa.getAttribute("title"),Ya=document.createTextNode(Wn||""),Ma=aa;(Fn=(fn=Ma.parentNode)==null?void 0:fn.replaceChild)==null||Fn.call(fn,Ya,Ma)}va(na.innerHTML)}};return b.createElement(b.Fragment,null,b.createElement(ln,{ref:_t,contentEditable:!0,className:pn,style:Oa,onBlur:St}))}),gt=oe(16624),pt=oe(10089),xt=oe(43428),ut=oe(6848),Kt=oe(43604),rn={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},It=oe(4879),Zt=oe(22566),Qe=oe(4479),Oe=oe(3665),Et=oe(39459),Gt=oe(97277),vt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAHr1JREFUaEPNmweYnVW1/n/7a6fMmcm0ZEoSUkkCSQgJCVWKoAI2FAH1iqBYwXvFLogF8S9XvRYElUeqIJegFOmEKgiICUkgJBBCkpnMZHoyc6ad9pW9r3t/58wEsJfn+Z8z5zn9fN+711rvetdaewT/rsvi073GBEsdrIN8214WOfbCyLHnSks0SSGqFCCFlSOS/VLKNhXJbULK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X76avXbJ0167iN/r6/Hf6JdyUrMMVHuvaNpPN7SFfHKMQSWa1VnH+h9/I3FlNuOkUtfU1bHsiYvczKbbn2ri340nePH8l20ZGsL0QT3ceSz4zptUyNDrK4oXzeGGTHxxbt/jujuoXv/nd+/9rYqPZX7Lmn3rvH7Lwa3/og0d+eklP78j5c2vmntZUO7V27e5nGM2NsGtoF65dxQmHz+NDZxxBKpEkNSVFmE3w8iMOj2x5kZ78ANWJBNPqpyESJQIZUvJDk8Km1qUpFovDc2e13Mp4+vIv/uasf/i/Wf4R0vqri/mh2RfXLlow66St+fXvbu/qOW4o3z/1iMXzxOnvOIpUlYNjW2QaUvSvTbFlS462PQMUo2EaG2pIpjzT+y4UlQpDuUchH3ec6DdeUqy5+M7P/v/1j1p/aiXuv/zyxDOP7ViyYP7Ug9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",wt=(ln,cn,pn)=>new Promise((Oa,va)=>{var wa=fn=>{try{St(pn.next(fn))}catch(Fn){va(Fn)}},_t=fn=>{try{St(pn.throw(fn))}catch(Fn){va(Fn)}},St=fn=>fn.done?Oa(fn.value):Promise.resolve(fn.value).then(wa,_t);St((pn=pn.apply(ln,cn)).next())}),dt=(0,b.forwardRef)(({onUpdateNum:ln,onSave:cn},pn)=>{var Oa;const va=`\u8BF7\u8F93\u5165\u51FA\u9898\u8981\u6C42\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u5148\u4E0A\u4F20\u6750\u6599\u4E4B\u540E\u518D\u6839\u636E\u6750\u6599\u51FA\u9898 -\u4F8B\uFF1A\u8BF7\u751F\u6210\u5173\u4E8E\u300APython\u7A0B\u5E8F\u8BBE\u8BA1\u300B\u7684\u8BD5\u9898\u3002\u8003\u5BDF\u77E5\u8BC6\u70B9\uFF1A\u53D8\u91CF\u5B9A\u4E49\u3001\u6570\u636E\u7C7B\u578B\u3001\u8FD0\u7B97\u7B26\u548C\u63A7\u5236\u7ED3\u6784\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020%`,[wa,_t]=(0,b.useState)(!1),[St,fn]=(0,b.useState)([]),[Fn,Ea]=(0,b.useState)(null),[na,Ka]=(0,b.useState)([]),[aa,Wn]=(0,b.useState)(0),[Ya,Ma]=(0,b.useState)(0),[Ja,Ar]=(0,b.useState)(!1),[At,Ln]=(0,b.useState)(""),[Mn,xn]=(0,b.useState)(0),[xe,ft]=(0,b.useState)(0),[Ft,Vt]=(0,b.useState)(0),[Rt,yt]=(0,b.useState)(0),[hn,je]=(0,b.useState)(0),[Ke,He]=(0,b.useState)(0),[Mt,un]=(0,b.useState)(0),[sn,Xn]=(0,b.useState)(0),[Qn,gn]=(0,b.useState)(Gt.Q),{contentRef:Yn,value:ha,status:zt,open:_n,close:Je}=Qn,Qt=(0,Oe.Z)({contentRef:Yn,status:zt}),{openProgress:bn,closeProgress:tt,CreateProgressModal:Jn,progressOpen:In}=(0,Qe.Z)();(0,b.useEffect)(()=>{Fn&&la(),Fn===!1&&(Je(),ln==null||ln(),fn([]),Ln(""),xn(0),ft(0),Vt(0),yt(0),je(0),He(0),un(0),Xn(0))},[Fn]);const sa=()=>{Ea(!0)};(0,b.useImperativeHandle)(pn,()=>({onClick:sa}));const Zn=Wt=>{Ar(!0),Wn(Wt),Ma(0)},za=Wt=>wt(void 0,null,function*(){const xa=Wt.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(xa)==-1?(Ge.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):Wt.size/1024/1024>10?(Ge.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),la=()=>wt(void 0,null,function*(){const Wt=yield(0,ge.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});Wt.status===0&&(Wn(Wt.total_number),Ma(Wt.remaining_number))}),_a=Wt=>(Wt=Wt||"",Wt=String(Wt),Wt=Wt.replace(/\s+/g,""),Wt),$a=(Wt=!0)=>wt(void 0,null,function*(){var xa,fa;const Yt=[{name:"\u5355\u9009\u9898",num:Mn||0},{name:"\u591A\u9009\u9898",num:xe||0},{name:"\u5224\u65AD\u9898",num:Ft||0},{name:"\u586B\u7A7A\u9898",num:Rt||0},{name:"\u7B80\u7B54\u9898",num:hn||0},{name:"\u7EC4\u5408\u9898",num:sn||0},{name:"\u7F16\u7A0B\u9898",num:Ke||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:Mt||0}];if(Wt){if(_a(At)){if(At.length>1e3){Ge.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{Ge.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!_a(At)&&!(St!=null&&St.length)){Ge.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const Pn=Yt.reduce((Ra,pa)=>Ra+pa.num,0);if(Pn===0){Ge.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(Pn>30){Ge.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}if(aa!==-1){Ar(!0);return}}Ar(!1);const ea={scene_type:6,request_identifier:Math.random(),file_id:(fa=(xa=St[0])==null?void 0:xa.response)==null?void 0:fa.id,content:At,count_arr:Yt.map(Pn=>Pn.num).join(",")};yield _n(ea),la()}),sr=()=>wt(void 0,null,function*(){const Wt=Qt();if(cn){Ea(!1),cn(Wt);return}bn(),_t(!0),Ka([]);const xa=new FormData;xa.append("html",Wt);const fa=yield(0,ge.ZP)("/api/intelligent_imports/import.json",{method:"post",body:xa},!0);if((fa==null?void 0:fa.status)===0)if(fa!=null&&fa.data){tt(100),Ka(fa==null?void 0:fa.data);return}else Ge.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");_t(!1),tt()}),Tt=()=>wt(void 0,null,function*(){const Wt=Qt();(0,Zt.RG)(Wt)}),Da=["uploading","error"].includes((Oa=St==null?void 0:St[0])==null?void 0:Oa.status);return b.createElement(b.Fragment,null,b.createElement(Et.Z,{visible:Ja,totalCount:aa,usedCount:Ya,onCancel:()=>Ar(!1),onOk:()=>$a(!1)}),b.createElement(xt.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:b.createElement("div",{className:rn.extraHeader},b.createElement(ke.Z,{align:"middle"},!zt&&!!ha&&b.createElement(b.Fragment,null,b.createElement(x.op,{onClick:sr,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),b.createElement(x.op,{onClick:Tt,shape:"default",type:"text"},b.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),b.createElement("i",{onClick:()=>{const Wt=xa=>{Fe.default.confirm({centered:!0,icon:null,width:500,zIndex:1101,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:xa,onOk:()=>{Ea(!1)}})};if(zt){Wt("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else ha?Wt("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):Ea(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Fn},b.createElement("div",{className:rn.wrap},b.createElement("div",{className:rn.left},b.createElement("div",{className:rn.tip},b.createElement("img",{src:vt}),b.createElement("span",null,"\u60A8\u597D\uFF01\u6211\u662F\u60A8\u7684\u667A\u80FD\u51FA\u9898\u52A9\u624B\uFF0C\u6211\u5DF2\u5B66\u4E60\u4E86\u5E73\u53F0\u4EE5\u53CA\u4E92\u8054\u7F51\u4E0A\u6D77\u91CF\u7684\u8BD5\u9898\u77E5\u8BC6\u5E93\u3002\u53EF\u4EE5\u6839\u636E\u60A8\u7684\u8981\u6C42\u548C\u4E0A\u4F20\u7684\u6750\u6599\u7075\u6D3B\u751F\u6210\u5404\u7C7B\u8BD5\u9898\u3002\u6B22\u8FCE\u968F\u65F6\u4E0E\u6211\u4E92\u52A8\uFF0C\u8BA9\u6211\u4EEC\u4E00\u8D77\u6253\u9020\u66F4\u9AD8\u6548\u3001\u66F4\u4F18\u8D28\u7684\u8BD5\u9898\uFF01")),b.createElement("div",{className:"mb10 mt20 c-black"},b.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),b.createElement(a.default.TextArea,{style:{height:160},className:"mb20",value:At,placeholder:va,onChange:Wt=>{Ln(Wt.target.value)}}),b.createElement(We.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${y.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:St,withCredentials:!0,data:{upload_type:1},beforeUpload:za,onChange:({file:Wt})=>{var xa,fa;Wt.status!=="removed"&&(Wt.status==="done"&&((xa=Wt==null?void 0:Wt.response)==null?void 0:xa.status)!==0&&(Wt.status="error",Wt.response=(fa=Wt==null?void 0:Wt.response)==null?void 0:fa.message),fn([Wt]))},onRemove:()=>fn([])},b.createElement(ut.Z,{title:"\u5355\u6B21\u4EC5\u652F\u6301\u4E0A\u4F201\u4E2A\u6587\u6863\u62161\u5F20\u56FE\u7247\uFF0C\u6587\u6863\u652F\u6301PDF/Word\u683C\u5F0F\uFF0C\u56FE\u7247\u652F\u63011\u5F20\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247"},b.createElement(x.op,{style:{borderRadius:2}},b.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),b.createElement("div",{className:"c-black mt20"},b.createElement("div",{className:"mb10 c-black"},b.createElement("b",null,"\u51FA\u9898\u6570\u91CF"),b.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u4FDD\u8BC1\u51FA\u9898\u4F53\u9A8C\uFF0C\u5355\u6B21\u51FA\u9898\u603B\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7",b.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"30"),"\u9053\uFF09")),b.createElement(ke.Z,{style:{gap:16}},b.createElement(Kt.Z,null,b.createElement("label",null,"\u5355\u9009\u9898"),b.createElement(Ye.Z,{min:0,max:10,value:Mn,onChange:xn,style:{marginLeft:"8px"}})),b.createElement(Kt.Z,null,b.createElement("label",null,"\u591A\u9009\u9898"),b.createElement(Ye.Z,{min:0,max:10,value:xe,onChange:ft,style:{marginLeft:"8px"}})),b.createElement(Kt.Z,null,b.createElement("label",null,"\u5224\u65AD\u9898"),b.createElement(Ye.Z,{min:0,max:10,value:Ft,onChange:Vt,style:{marginLeft:"8px"}})),b.createElement(Kt.Z,null,b.createElement("label",null,"\u586B\u7A7A\u9898"),b.createElement(Ye.Z,{min:0,max:10,value:Rt,onChange:yt,style:{marginLeft:"8px"}})),b.createElement(Kt.Z,null,b.createElement("label",null,"\u7B80\u7B54\u9898"),b.createElement(Ye.Z,{min:0,max:10,value:hn,onChange:je,style:{marginLeft:"8px"}})))),zt?b.createElement("div",{onClick:Je,className:rn.bottomBtn},b.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):Da?b.createElement("div",{className:`${rn.bottomBtn} ${rn.disabled}`},b.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):b.createElement("div",{onClick:()=>{$a()},className:rn.bottomBtn},b.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),b.createElement(Gt.Z,{onStatusChange:gn,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!In,noRestrictModal:Zn,stringTransformer:It.o,onError:Wt=>{Object.prototype.toString.call(Wt)==="[object Object]"&&Wt.status===-9&&Zn(Wt.data)}}))),b.createElement(xt.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:wa},b.createElement(ke.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},b.createElement("img",{src:oe(36413),alt:"\u667A\u80FD\u51FA\u9898"}),b.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u9898")),b.createElement(ba,{stickyTop:-24,hideWordFeatures:!0,dataSource:na,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>_t(!1),onSuccess:()=>{_t(!1),Ea(!1)}}),b.createElement("div",{style:{height:70}})),Jn("\u5904\u7406\u4E2D"))}),on=Object.defineProperty,ct=Object.defineProperties,et=Object.getOwnPropertyDescriptors,An=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,Ht=(ln,cn,pn)=>cn in ln?on(ln,cn,{enumerable:!0,configurable:!0,writable:!0,value:pn}):ln[cn]=pn,ht=(ln,cn)=>{for(var pn in cn||(cn={}))ot.call(cn,pn)&&Ht(ln,pn,cn[pn]);if(An)for(var pn of An(cn))Bt.call(cn,pn)&&Ht(ln,pn,cn[pn]);return ln},On=(ln,cn)=>ct(ln,et(cn)),Ot=(ln,cn,pn)=>new Promise((Oa,va)=>{var wa=fn=>{try{St(pn.next(fn))}catch(Fn){va(Fn)}},_t=fn=>{try{St(pn.throw(fn))}catch(Fn){va(Fn)}},St=fn=>fn.done?Oa(fn.value):Promise.resolve(fn.value).then(wa,_t);St((pn=pn.apply(ln,cn)).next())});const Un=ln=>{ln.preventDefault();let pn=(ln.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,pn)},Bn=ln=>{ln.key==="Enter"&&ln.preventDefault()},kn=({children:ln,style:cn})=>b.createElement("div",{className:he.leftBox,style:cn,onPaste:Un},ln),qt=({children:ln,style:cn,className:pn})=>b.createElement("div",{className:Ie()(he.rightBox,pn),style:cn,onPaste:Un},ln),ca=({className:ln,style:cn={},width:pn=1200,onCancel:Oa=()=>{},onSuccess:va=()=>{},gather:wa={},mode:_t=1,stickyTop:St=0,subDisciplineId:fn=[],hideWordFeatures:Fn,dataSource:Ea=[],customLeftHeadNode:na,customRightHeadNode:Ka,customLeftContent:aa,hideRecognition:Wn=!1,onExchange:Ya,isSingleSelection:Ma=!1,underpinBackgroundStyle:Ja={},headExtraNode:Ar,isRefreshItemBank:At=!1,okText:Ln="\u786E\u5B9A\u5BFC\u5165",onSave:Mn})=>{var xn;const[xe,ft]=(0,b.useState)(1),[Ft,Vt]=(0,b.useState)(0),[Rt,yt]=(0,b.useState)(""),[hn,je]=(0,b.useState)(!1),[Ke,He]=(0,b.useState)([]),[Mt,un]=(0,b.useState)([]),[sn,Xn]=(0,b.useState)(!1),[Qn,gn]=(0,b.useState)(!1),[Yn,ha]=(0,b.useState)(!1),[zt,_n]=(0,b.useState)(!1),[Je,Qt]=(0,b.useState)([]),[bn,tt]=(0,b.useState)(1),[Jn,In]=(0,b.useState)(!1),[sa,Zn]=(0,b.useState)(!0),[za,la]=(0,b.useState)(0),[_a,$a]=(0,b.useState)(!1),[sr]=Ce.default.useForm(),[Tt]=Ce.default.useForm(),Da=(0,b.useRef)(null),Wt=(0,b.useRef)(null),xa=(0,b.useRef)(),fa=(0,b.useRef)(null),Yt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Cn=["C","C++","Java","Python","JavaScript","Ruby"];(0,b.useEffect)(()=>{Ea!=null&&Ea.length&&cr(Ea)},[Ea]),(0,b.useEffect)(()=>{xe===2&&Da.current.focus()},[xe]),(0,b.useEffect)(()=>{Yn&&Pn()},[Yn]);const ea=()=>{if(xe===1){Ge.ZP.warning("\u8BF7\u5148\u4E0A\u4F20\u8BD5\u9898\uFF01");return}Fe.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u6E05\u7A7A\u64CD\u4F5C\u5C06\u5220\u9664\u8BD5\u9898\u7F16\u8F91\u533A\u57DF\u7684\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u5B9A\u4E00\u952E\u6E05\u7A7A\u5417\uFF1F",onOk:()=>Ot(void 0,null,function*(){ft(1)})})},Pn=()=>Ot(void 0,null,function*(){const se=yield(0,ge.ZP)("/api/disciplines.json",{method:"get",params:{source:_t===1?"new_question":"subject"}});Qt(se.disciplines||[])}),Ra=se=>{const $e=[],st=(jt,at)=>{jt.length>=2&&$e.push(jt.join(""));for(let tn=at;tn(se=se||"",se=String(se),se=se.replace(/\s+/g,""),se),Va=se=>(se=se||"",se=String(se),se=se.replace(/

/g,""),se=se.replace(/
/g,` -`),se=se.replace(/<\/div>/g,` -`),se=Sr(se),se),ur=se=>se.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),Sr=se=>se.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"),Nr=se=>{var $e;const st=se.clipboardData;if(st){const jt=st.types.toString(),at=st.items;if(jt==="Files"||st.types.indexOf("Files")>-1){se.preventDefault();try{let tn=at[1];(($e=at[0])==null?void 0:$e.kind)==="file"&&(tn=at[0]);const Jt=tn.getAsFile();(0,lt.I)(Jt,Ut=>{var Xt;if(Ut.id){if(((Xt=Jt==null?void 0:Jt.type)==null?void 0:Xt.indexOf("image"))>-1){const ra=``;document.execCommand("insertText",!1,ra)}}else(Ut==null?void 0:Ut.status)===401&&(document.location.href="/user/login")})}catch(tn){Ge.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function pr(se,$e){return Ot(this,null,function*(){if(typeof se=="string")return yield $e(se);if(typeof se!="object"||se===null)return se;if(Array.isArray(se))return yield Promise.all(se.map(at=>Ot(this,null,function*(){return yield pr(at,$e)})));const st={};for(const jt in se)if(Object.prototype.hasOwnProperty.call(se,jt)){const at=se[jt];typeof at=="string"?st[jt]=yield $e(at):typeof at=="object"?st[jt]=yield pr(at,$e):st[jt]=at}return st})}const Yr=()=>Ot(void 0,null,function*(){var se;je(!0),yt("\u5904\u7406\u4E2D"),yield new Promise(jt=>setTimeout(jt,1e3));let $e=(se=Wt.current)==null?void 0:se.querySelectorAll('[data-text="edit"]'),st="";try{$e.forEach(function(jt){var at,tn,Jt,Ut;const Xt=jt.cloneNode(!0),ra=Xt.querySelectorAll("span.edu_latex");for(let Za of ra){const mn=Za.getAttribute("title"),Ia=document.createTextNode(mn),Ca=Za;(tn=(at=Ca.parentNode)==null?void 0:at.replaceChild)==null||tn.call(at,Ia,Ca)}const Ha=Xt.querySelectorAll("span[style]");for(let Za of Ha)if(Za.style.fontFamily){const mn=Za.innerHTML,Ia=document.createTextNode(mn),Ca=Za;(Ut=(Jt=Ca.parentNode)==null?void 0:Jt.replaceChild)==null||Ut.call(Jt,Ia,Ca)}Xt==null||Xt.childNodes.forEach(function(Za){Za.nodeType===Node.ELEMENT_NODE&&Za.localName!=="h5"&&Za.localName!=="h4"?st+=`

${Za.innerHTML}

`:Za.nodeType===Node.TEXT_NODE&&(st+=`

${Za.textContent}

`)})}),Cr("/api/intelligent_imports/import.json",{html:Sr(st)})}catch(jt){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",jt)}}),Xa=se=>{let $e=se.filter(st=>!!(st!=null&&st.type));return $e=$e.map(st=>{var jt;const at=(jt=Qa.find(Jt=>Jt.id===(st==null?void 0:st.type)))==null?void 0:jt.deal,tn=On(ht({},st),{id:String(Math.random()).slice(-6),knowledgePoint:pa(st==null?void 0:st.knowledgePoint)});return at?at(tn):tn}),$e},qa=()=>{if(xe===1){Ge.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!");return}Fe.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u91CD\u65B0\u8BC6\u522B\u4F1A\u8986\u76D6\u53F3\u4FA7\u5DF2\u8BC6\u522B\u7ED3\u679C\uFF0C\u5305\u62EC\u4EBA\u5DE5\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u786E\u5B9A\u91CD\u65B0\u8BC6\u522B\u5417?",onOk:Yr})},fr=()=>b.createElement("div",{className:he.row},b.createElement("div",{className:he.leftLayout},b.createElement(kn,{style:{height:675}},xe===1&&b.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>ft(2)},b.createElement("div",{style:{color:"#9096A3",fontSize:12}},"1.\u672C\u529F\u80FD\u652F\u6301\u5BFC\u5165\u7684\u9898\u578B\uFF1A\u5355\u9009\u9898\u3001\u591A\u9009\u9898\u3001\u586B\u7A7A\u9898\u3001\u5224\u65AD\u9898\u3001\u7B80\u7B54\u9898\u3001 \u7EC4\u5408\u9898\u3001\u7F16\u7A0B\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u3002",b.createElement("br",null),"2.\u82E5\u8981\u5BFC\u5165\u7EC4\u5408\u9898\uFF0C\u8BF7\u5728\u9898\u76EE\u524D\u540E\u4F7F\u7528\u4E00\u5BF9\u201C","{{\u201D\u3001\u201C}}","\u201D\u5C06\u5185\u5BB9\u6807\u51FA\uFF1B\u5927\u9898\u9898\u5E72\u548C\u5C0F\u9898\u9898\u5E72\u4E4B\u95F4\u4E0D\u9700\u8981\u7A7A\u884C\uFF1B\u5927\u9898\u548C\u5C0F\u9898\u9898\u5E72\u90FD\u9700\u6807\u6CE8\u9898\u53F7\uFF1B\u5C0F\u9898\u7B54\u6848\u53EF\u8DDF\u5728\u5C0F\u9898\u9898\u5E72\u540E\uFF0C\u5E76\u7528\u7A7A\u683C\u4E0E\u9898\u5E72\u5185\u5BB9\u9694\u5F00\u3002\u8303\u4F8B\u53EF\u53C2\u8003\u63A8\u8350\u683C\u5F0F\u3002",b.createElement("br",null),"3.\u5BFC\u5165\u652F\u6301\u6587\u672C\u3001\u56FE\u7247\u3001\u516C\u5F0F\u3002\u9898\u76EE\u7ED3\u6784\u652F\u6301\u8BC6\u522B\u7B54\u6848\u3001\u89E3\u6790\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9\u3002",b.createElement("br",null),"4.\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u4FEE\u6539\u9898\u76EE\u5185\u5BB9\u540E\u91CD\u65B0\u8BC6\u522B\uFF0C\u6216\u4E0B\u8F7D\u63A8\u8350\u683C\u5F0F\uFF0C\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u5BFC\u5165\u8BC6\u522B\u3002",b.createElement("br",null)),b.createElement("div",{className:he.imgBox,style:{marginTop:75}},b.createElement("img",{width:56,src:ne}),b.createElement("span",null,"\u7F16\u8F91\u533A"))),xe===2&&b.createElement("div",{"data-text":"edit",onBlur:()=>{Da.current.innerHTML||ft(1)},ref:Da,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),b.createElement("div",{className:he.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},b.createElement("div",{className:he.imgBox,style:{marginTop:240}},b.createElement("img",{width:56,src:re}),b.createElement("span",null,"\u9884\u89C8\u533A")))),ga=(se,$e,st,jt)=>{var at;console.log(se,$e,st,jt,"onDataChange\u4FEE\u6539\u6570\u503C");const tn=JSON.parse(JSON.stringify(Mt));jt===void 0?tn[$e][se]=st:tn[$e].questions[jt][se]=st;const Jt=ht({},tn[$e]),Ut=(at=Qa.find(Xt=>Xt.id===(Jt==null?void 0:Jt.type)))==null?void 0:at.deal;tn[$e]=Ut(Jt),un(tn)},or=(se,$e,st)=>{var jt;const at=st!==void 0,tn=(jt=Qa.find(Xt=>Xt.id===(se==null?void 0:se.type)))==null?void 0:jt.type,Jt=`${$e+1}.${st===void 0?"":st+1+"."}`,Ut=`${(se==null?void 0:se.type)==="7"?"{{":""}${Jt}\u3010${tn}\u3011${(se==null?void 0:se.question)||""}`;return b.createElement(b.Fragment,null,at&&b.createElement("h4",{contentEditable:!0}),b.createElement(ye,{id:se==null?void 0:se.id,tagName:"div",value:Ut}))},dr=(se,$e)=>Ot(void 0,null,function*(){var st;const jt=yield Ya(se,$e),at=(st=jt==null?void 0:jt.data)==null?void 0:st.content;if(at!=null&&at.length){const tn=Xa(at)[0];Ke.splice($e,1,tn),Mt.splice($e,1,tn),He([...Ke]),un([...Mt])}}),ka=(se,$e,st)=>{var jt;const at=st!==void 0,tn=(jt=Qa.find(Ut=>Ut.id===(se==null?void 0:se.type)))==null?void 0:jt.type,Jt=`${$e+1}.${st===void 0?"":st+1+"."}`;return at?b.createElement("div",{style:{padding:"10px 18px"}},`${Jt}\u3010${tn}\u3011`,b.createElement(ye,{id:se==null?void 0:se.id,tagName:"span",className:he.edit,onBlur:Ut=>ga("question",$e,Ut,st),value:(se==null?void 0:se.question)||""})):b.createElement(b.Fragment,null,b.createElement("div",{className:he.actionHead},b.createElement("div",{className:"c-light-primary"},`${Jt}\u3010${tn}\u3011`),_t!==1&&b.createElement(Ye.Z,{disabled:(se==null?void 0:se.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:Ut=>ga("score",$e,Ut,st),value:se==null?void 0:se.score}),b.createElement(ke.Z,{align:"middle",style:{marginLeft:"auto"}},!!Ya&&b.createElement("span",{className:"current c-light-primary mr30",onClick:()=>dr(se,$e)},b.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),b.createElement(De.default,{onChange:Ut=>ga("checked",$e,Ut.target.checked,st),checked:!!(se!=null&&se.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),b.createElement(ye,{id:se==null?void 0:se.id,tagName:"div",style:{padding:"10px 18px"},className:he.edit,onBlur:Ut=>ga("question",$e,Ut,st),value:se==null?void 0:se.question}))},nr=(se,$e,st)=>b.createElement(b.Fragment,null,["0","1","2","4"].includes(se==null?void 0:se.type)&&b.createElement(ye,{id:se==null?void 0:se.id,value:`\u7B54\u6848\uFF1A${$e||""}`,tagName:"p"}),!st&&b.createElement(ye,{id:se==null?void 0:se.id,value:`\u96BE\u5EA6\uFF1A${(se==null?void 0:se.difficulty)||""}`,tagName:"p"}),(se==null?void 0:se.type)!=="7"&&b.createElement(ye,{id:se==null?void 0:se.id,value:`\u89E3\u6790\uFF1A${(se==null?void 0:se.analyze)||""}`,tagName:"p"}),!st&&b.createElement(ye,{id:se==null?void 0:se.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(se==null?void 0:se.knowledgePoint)||""}`,tagName:"p"})),mt=(se,$e,st,jt)=>{const at=jt!==void 0,tn=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Jt=at&&!se.last&&!se.errorMsg?{marginBottom:10}:{},Ut=tn.map(Xt=>({key:Xt,label:Xt,onClick:()=>ga("difficulty",st,Xt,jt)}));return b.createElement("div",{className:he.liWrap,style:Jt},["4"].includes(se==null?void 0:se.type)&&b.createElement("div",{className:he.li},b.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),b.createElement(ye,{id:se==null?void 0:se.id,tagName:"div",className:`${he.edit} c-black`,onBlur:Xt=>ga("answer",st,[Xt],jt),value:$e})),!at&&b.createElement("div",{className:he.li},b.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(Te.Z,{menu:{items:Ut}},b.createElement("span",{className:"c-light-primary"},se==null?void 0:se.difficulty,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(se==null?void 0:se.type)!=="7"&&b.createElement("div",{className:he.li},b.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),b.createElement(ye,{id:se==null?void 0:se.id,tagName:"div",className:`${he.edit} c-grey-333`,onBlur:Xt=>ga("analyze",st,Xt,jt),value:se==null?void 0:se.analyze})),!at&&b.createElement("div",{onKeyDown:Bn,className:he.li},b.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),b.createElement(ye,{id:se==null?void 0:se.id,tagName:"div",value:(se==null?void 0:se.knowledgePoint)||"",className:`${he.edit} c-grey-333`,onBlur:Xt=>ga("knowledgePoint",st,pa(Va(Xt)),jt)})))},it=se=>b.createElement(b.Fragment,null,typeof(se==null?void 0:se.errorMsg)=="string"&&!!(se!=null&&se.errorMsg)&&b.createElement("h5",{contentEditable:!1},b.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),b.createElement("div",null,se==null?void 0:se.errorMsg))),Nt=se=>b.createElement(b.Fragment,null,typeof(se==null?void 0:se.errorMsg)=="string"&&!!(se!=null&&se.errorMsg)&&b.createElement("h5",null,b.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),b.createElement("div",null,se==null?void 0:se.errorMsg))),dn=(se,$e,st,jt)=>{let at="flex";return(Ma&&za!==jt||sn&&!(st!=null&&st.errorMsg))&&(at="none"),b.createElement("div",{className:he.row,style:{display:at}},b.createElement("div",{className:he.leftLayout},aa||b.createElement(kn,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},se))),b.createElement("div",{className:he.rightLayout},b.createElement(qt,{className:st!=null&&st.errorMsg?he.error:""},$e)))},Qa=[{id:"0",type:"\u5355\u9009\u9898",element:(se,$e,st)=>{var jt,at;const tn=st!==void 0;let Jt=(jt=se==null?void 0:se.answer)==null?void 0:jt[0];const Ut=b.createElement(b.Fragment,null,or(se,$e,st),(at=se==null?void 0:se.options)==null?void 0:at.map((Za,mn)=>b.createElement(ye,{id:se==null?void 0:se.id,key:mn,value:`${Yt[mn]}.${Za}`,tagName:"p"})),nr(se,Jt,tn),it(se));let Xt=tn?se:Mt[$e];const ra=Xt==null?void 0:Xt.options,Ha=b.createElement(b.Fragment,null,ka(Xt,$e,st),ra==null?void 0:ra.map((Za,mn)=>{var Ia;return b.createElement("div",{key:mn,className:he.option},b.createElement("aside",{className:((Ia=Xt==null?void 0:Xt.answer)==null?void 0:Ia[0])===Yt[mn]?he.active:"",onClick:()=>ga("answer",$e,[Yt[mn]],st)},Yt[mn]),b.createElement(ye,{id:Xt==null?void 0:Xt.id,tagName:"div",className:`${he.text}`,onBlur:Ca=>{ra[mn]=Ca,ga("options",$e,ra,st)},value:Za}))}),mt(Xt,"",$e,st),Nt(Xt));return tn?[Ut,Ha]:dn(Ut,Ha,Xt,$e)},deal:se=>{var $e,st,jt;se.score=se.score===void 0?2:se.score;let at=pa(($e=se==null?void 0:se.answer)==null?void 0:$e[0]).toUpperCase();se.answer=at?[at]:[];let tn=[];if(!(se!=null&&se.options))tn.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{se.options=(st=se.options)==null?void 0:st.slice(0,8);const Jt=se.options.map(Xt=>Xt==null?void 0:Xt.trim().replace(/^\s+|\s+$/g,""));new Set(Jt).size!==Jt.length&&tn.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return at||tn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),at&&(Yt.slice(0,((jt=se==null?void 0:se.options)==null?void 0:jt.length)||8).includes(at)||tn.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D")),pa(se==null?void 0:se.question)||tn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),se.errorMsg=tn.join(` -`),se}},{id:"1",type:"\u591A\u9009\u9898",element:(se,$e,st)=>{var jt,at;const tn=st!==void 0;let Jt=(jt=se==null?void 0:se.answer)==null?void 0:jt[0];const Ut=b.createElement(b.Fragment,null,or(se,$e,st),(at=se==null?void 0:se.options)==null?void 0:at.map((Za,mn)=>b.createElement(ye,{id:se==null?void 0:se.id,key:mn,value:`${Yt[mn]}.${Za}`,tagName:"p"})),nr(se,Jt,tn),it(se));let Xt=tn?se:Mt[$e];const ra=Xt==null?void 0:Xt.options,Ha=b.createElement(b.Fragment,null,ka(Xt,$e,st),ra==null?void 0:ra.map((Za,mn)=>{var Ia,Ca;return b.createElement("div",{key:mn,className:he.option},b.createElement("aside",{className:(Ca=(Ia=Xt==null?void 0:Xt.answer)==null?void 0:Ia[0])!=null&&Ca.includes(Yt[mn])?he.active:"",onClick:()=>{var Ga;let Ir=((Ga=Xt==null?void 0:Xt.answer)==null?void 0:Ga[0])||"";const Vr=Yt[mn];Ir.includes(Vr)?Ir=Ir.replace(new RegExp(Vr,"g"),""):Ir+=Vr,Ir=Ir.split("").sort().join(""),ga("answer",$e,[Ir],st)}},Yt[mn]),b.createElement(ye,{id:Xt==null?void 0:Xt.id,tagName:"div",className:`${he.text}`,onBlur:Ga=>{ra[mn]=Ga,ga("options",$e,ra,st)},value:Za}))}),mt(Xt,"",$e,st),Nt(Xt));return tn?[Ut,Ha]:dn(Ut,Ha,Xt,$e)},deal:se=>{var $e,st,jt;se.score=se.score===void 0?2:se.score;let at=pa(($e=se==null?void 0:se.answer)==null?void 0:$e[0]).toUpperCase().split("").sort().join("");se.answer=at?[at]:[];let tn=[];if(!(se!=null&&se.options))tn.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{se.options=(st=se.options)==null?void 0:st.slice(0,8);const Jt=se.options.map(Xt=>Xt==null?void 0:Xt.trim().replace(/^\s+|\s+$/g,""));new Set(Jt).size!==Jt.length&&tn.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(at||tn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),at){const Jt=Yt.slice(0,((jt=se==null?void 0:se.options)==null?void 0:jt.length)||8);Ra(Jt).includes(at)||tn.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D")}return pa(se==null?void 0:se.question)||tn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),se.errorMsg=tn.join(` -`),se}},{id:"2",type:"\u5224\u65AD\u9898",element:(se,$e,st)=>{var jt,at;const tn=st!==void 0;let Jt=(jt=se==null?void 0:se.answer)==null?void 0:jt[0];const Ut=b.createElement(b.Fragment,null,or(se,$e,st),nr(se,Jt,tn),it(se));let Xt=tn?se:Mt[$e];const ra=["\u6B63\u786E","\u9519\u8BEF"];let Ha=((at=Xt==null?void 0:Xt.answer)==null?void 0:at[0])||"";["\u6B63\u786E","\u5BF9","T","True","t","true"].includes(Ha)?Ha="\u6B63\u786E":["\u9519\u8BEF","\u9519","T","true","t","false"].includes(Ha)&&(Ha="\u9519\u8BEF");const Za=b.createElement(b.Fragment,null,ka(Xt,$e,st),ra==null?void 0:ra.map((mn,Ia)=>b.createElement("div",{key:Ia,className:he.option},b.createElement("aside",{style:{borderRadius:2},className:Ha===mn?he.active:"",onClick:()=>ga("answer",$e,[mn],st)},mn==="\u6B63\u786E"?"T":"F"),b.createElement("div",{style:{pointerEvents:"none"},className:`${he.text}`},mn))),mt(Xt,"",$e,st),Nt(Xt));return tn?[Ut,Za]:dn(Ut,Za,Xt,$e)},deal:se=>{var $e;se.score=se.score===void 0?2:se.score;let st=pa(($e=se==null?void 0:se.answer)==null?void 0:$e[0]);se.answer=st?[st]:[];let jt=[];return st||jt.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),st&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(st)&&jt.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),pa(se==null?void 0:se.question)||jt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),se.errorMsg=jt.join(` -`),se}},{id:"3",type:"\u586B\u7A7A\u9898",element:(se,$e,st)=>{var jt,at;const tn=st!==void 0,Jt=b.createElement(b.Fragment,null,or(se,$e,st),(jt=se==null?void 0:se.answer)==null?void 0:jt.map((ra,Ha)=>b.createElement(ye,{id:se==null?void 0:se.id,key:Ha,tagName:"p",value:`\u7B54\u6848${Ha+1}\uFF1A${ra.text||""}`})),nr(se,"",tn),it(se));let Ut=tn?se:Mt[$e];const Xt=b.createElement(b.Fragment,null,ka(Ut,$e,st),(at=Ut==null?void 0:Ut.answer)==null?void 0:at.map((ra,Ha)=>b.createElement("div",{key:Ha,className:he.option},b.createElement("aside",{className:he.fill},"\u586B\u7A7A\u9879",Ha+1),ra.model===1&&b.createElement(ye,{id:Ut==null?void 0:Ut.id,tagName:"div",onBlur:Za=>{Ut.answer[Ha].latex=Va(Za),ga("answer",$e,Ut.answer,st)},className:`${he.text}`,value:ra.latex}),ra.model===2&&b.createElement(Me.Z,{value:ra.latex,onChange:Za=>{Ut.answer[Ha].latex=Za,ga("answer",$e,Ut.answer,st)}}))),mt(Ut,"",$e,st),Nt(Ut));return tn?[Jt,Xt]:dn(Jt,Xt,Ut,$e)},deal:se=>{var $e,st,jt,at;se.score=se.score===void 0?2:se.score,se.question=($e=se.question)==null?void 0:$e.replaceAll("\u2581","_");const tn=(st=se.answer)==null?void 0:st.map(Ut=>{if(Object.prototype.toString.call(Ut)==="[object Object]")return Ut;Ut=Ut==null?void 0:Ut.trim();const Xt={model:1,text:Ut,latex:Ut};return Ut.startsWith("$$")&&Ut.endsWith("$$")||Ut.startsWith("`$$")&&Ut.endsWith("$$`")?(Xt.model=2,Xt.latex=Ut.slice(2,-2)):Xt.latex=Va(Ut),Xt});se.answer=tn;let Jt=[];return tn||Jt.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),pa(se==null?void 0:se.question)?se!=null&&se.question.includes("_")?(jt=se==null?void 0:se.answer)!=null&&jt.length&&((se==null?void 0:se.question.match(/_+/g))||[]).length!==((at=se==null?void 0:se.answer)==null?void 0:at.length)&&Jt.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Jt.push("\u586B\u7A7A\u9879\u672A\u8BBE\u7F6E\uFF0C\u8BF7\u4F7F\u7528\u82F1\u6587\u4E0B\u5212\u7EBF\u201C___\u201D\u8868\u793A\u586B\u7A7A\u9879"):Jt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),se.errorMsg=Jt.join(` -`),se}},{id:"4",type:"\u7B80\u7B54\u9898",element:(se,$e,st)=>{var jt,at;const tn=st!==void 0;let Jt=(jt=se==null?void 0:se.answer)==null?void 0:jt[0];const Ut=b.createElement(b.Fragment,null,or(se,$e,st),nr(se,Jt,tn),it(se));let Xt=tn?se:Mt[$e];const ra=b.createElement(b.Fragment,null,ka(Xt,$e,st),mt(Xt,(at=Xt==null?void 0:Xt.answer)==null?void 0:at[0],$e,st),Nt(Xt));return tn?[Ut,ra]:dn(Ut,ra,Xt,$e)},deal:se=>{se.score=se.score===void 0?5:se.score;let $e=[];return pa(se==null?void 0:se.question)||$e.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),se.errorMsg=$e.join(` -`),se}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(se,$e)=>{var st,jt;const at=Mt[$e],tn=Cn.slice(0,4).map(Jt=>({key:Jt,label:Jt,onClick:()=>ga("platform",$e,Jt)}));return b.createElement("div",{className:he.row,style:{display:sn?at!=null&&at.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:he.leftLayout},b.createElement(kn,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},or(se,$e),b.createElement(ye,{id:se==null?void 0:se.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(se==null?void 0:se.description)||""}`,tagName:"p"}),nr(se),b.createElement(ye,{id:se==null?void 0:se.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${se==null?void 0:se.timeLimit}`,tagName:"p"}),b.createElement(ye,{id:se==null?void 0:se.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(se==null?void 0:se.platform)||""}`,tagName:"p"}),b.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),b.createElement("h4",null),b.createElement(ye,{id:se==null?void 0:se.id,value:(se==null?void 0:se.code)||"",tagName:"div"}),(st=se==null?void 0:se.inputs)==null?void 0:st.map((Jt,Ut)=>{var Xt;return b.createElement(b.Fragment,{key:Ut},b.createElement("h4",null),b.createElement(ye,{id:se==null?void 0:se.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Ut+1})\u8F93\u5165\uFF1A${Jt||""}`,tagName:"div"}),b.createElement(ye,{id:se==null?void 0:se.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Ut+1})\u8F93\u51FA\uFF1A${((Xt=se==null?void 0:se.outputs)==null?void 0:Xt[Ut])||""}`,tagName:"div"}))}),it(se)))),b.createElement("div",{className:he.rightLayout},b.createElement(qt,{className:at!=null&&at.errorMsg?he.error:""},ka(at,$e),b.createElement("div",{className:he.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},b.createElement("div",{className:he.li},b.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:at==null?void 0:at.description,tagName:"div",onBlur:Jt=>ga("description",$e,Jt)}))),mt(at,"",$e),b.createElement("div",{className:he.liWrap},b.createElement("div",{className:he.li},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:at==null?void 0:at.timeLimit,tagName:"div",onBlur:Jt=>ga("timeLimit",$e,Va(Jt))})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(Te.Z,{menu:{items:tn}},b.createElement("span",{className:"c-light-primary"},at==null?void 0:at.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:he.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:(at==null?void 0:at.code)||"",onBlur:Jt=>ga("code",$e,Va(Jt)),tagName:"div"}))),(jt=at==null?void 0:at.inputs)==null?void 0:jt.map((Jt,Ut)=>{var Xt;return b.createElement("div",{className:he.liWrap,key:Ut},b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Ut+1,")\u8F93\u5165\uFF1A"),b.createElement(ye,{id:at==null?void 0:at.id,value:Jt||"",className:he.edit,onBlur:ra=>{const Ha=[...(at==null?void 0:at.inputs)||[]];Ha[Ut]=Va(ra),ga("inputs",$e,Ha)},tagName:"div"})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Ut+1,")\u8F93\u51FA\uFF1A"),b.createElement(ye,{id:at==null?void 0:at.id,value:((Xt=at==null?void 0:at.outputs)==null?void 0:Xt[Ut])||"",className:he.edit,onBlur:ra=>{const Ha=[...(at==null?void 0:at.outputs)||[]];Ha[Ut]=Va(ra),ga("outputs",$e,Ha)},tagName:"div"})))}),Nt(at))))},deal:se=>{var $e,st,jt;se.score=se.score===void 0?10:se.score,se.code=($e=se.code)==null?void 0:$e.trim();let at=[];pa(se==null?void 0:se.question)?((st=se==null?void 0:se.question)==null?void 0:st.length)>60&&at.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):at.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),pa(se==null?void 0:se.description)||at.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const tn=pa(String((se==null?void 0:se.timeLimit)||""));if(se.timeLimit=tn,(!tn||tn&&!["3","4","5","6","7","8","9","10"].includes(tn))&&at.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),se.platform=pa(se==null?void 0:se.platform),se!=null&&se.platform){const Jt=["c","c++","java","python"],Ut=(jt=se==null?void 0:se.platform)==null?void 0:jt.toLowerCase(),Xt=Jt.findIndex(ra=>ra===Ut);Xt>-1?se.platform=Cn[Xt]:at.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else at.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(se!=null&&se.inputs)||!(se!=null&&se.outputs))se.inputs=[],se.outputs=[],at.push("\u672A\u8BC6\u522B\u5230\u6D4B\u8BD5\u7528\u4F8B\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u5165\uFF1A1\uFF1B\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u51FA\uFF1A2");else{const Jt=Math.min(se.inputs.length,se.outputs.length);se.inputs=se.inputs.slice(0,Jt),se.outputs=se.outputs.slice(0,Jt),se.outputs.some(Ut=>!pa(Ut))&&at.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return se.errorMsg=at.join(` -`),se}},{id:"7",type:"\u7EC4\u5408\u9898",element:(se,$e)=>{var st,jt;const at=Mt[$e];return b.createElement("div",{className:he.row,style:{display:sn?at!=null&&at.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:he.leftLayout},b.createElement(kn,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},or(se,$e),nr(se),(st=se==null?void 0:se.questions)==null?void 0:st.map((tn,Jt)=>{var Ut;const Xt=(Ut=Qa.find(ra=>ra.id===(tn==null?void 0:tn.type)))==null?void 0:Ut.element;return b.createElement(b.Fragment,{key:`left-${se.id}-${Jt}`},Xt(tn,$e,Jt)[0])}),it(se),b.createElement("p",{contentEditable:!0},"}}")))),b.createElement("div",{className:he.rightLayout},b.createElement(qt,{className:at!=null&&at.errorMsg?he.error:""},ka(at,$e),mt(at,"",$e),(jt=at==null?void 0:at.questions)==null?void 0:jt.map((tn,Jt)=>{var Ut;const Xt=(Ut=Qa.find(ra=>ra.id===(tn==null?void 0:tn.type)))==null?void 0:Ut.element;return b.createElement(b.Fragment,{key:`right-${at.id}-${Jt}`},Xt(tn,$e,Jt)[1])}),Nt(at))))},deal:se=>{var $e,st,jt,at,tn;const Jt=Xa,Ut=[...Qa],Xt=Ut.findIndex(mn=>mn.id==="0"),ra=Ut.findIndex(mn=>mn.id==="1");if(Xt!==-1){const mn=Ut[Xt].deal;Ut[Xt].deal=Ia=>{const Ca=mn(Ia);return Ca.errorMsg&&(Ca.errorMsg=Ca.errorMsg.split(` +`),he)},81232:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Ie}});var b=oe(59301),he={digitalLabel:"digitalLabel___tImKs",active:"active___Ck70Q"},Ie=({number:be,active:Ge,className:Fe})=>b.createElement("div",{className:`${he.digitalLabel} ${Ge?he.active:""} ${Fe}`},be)},81399:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return y}});var b=oe(59301),he=oe(17574),Be={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},Ie=oe(73631),be=oe(5623),Ge=oe(40427),Fe=Object.defineProperty,Ye=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Ve=(z,ne,re)=>ne in z?Fe(z,ne,{enumerable:!0,configurable:!0,writable:!0,value:re}):z[ne]=re,le=(z,ne)=>{for(var re in ne||(ne={}))Te.call(ne,re)&&Ve(z,re,ne[re]);if(De)for(var re of De(ne))We.call(ne,re)&&Ve(z,re,ne[re]);return z},E=(z,ne)=>Ye(z,ke(ne)),a=(z,ne,re)=>new Promise((ie,ge)=>{var fe=Me=>{try{Ue(re.next(Me))}catch(lt){ge(lt)}},Pe=Me=>{try{Ue(re.throw(Me))}catch(lt){ge(lt)}},Ue=Me=>Me.done?ie(Me.value):Promise.resolve(Me.value).then(fe,Pe);Ue((re=re.apply(z,ne)).next())}),y=({value:z,onChange:ne,scrollId:re})=>{const[ie,ge]=(0,b.useState)([]);(0,b.useEffect)(()=>{fe()},[]);const fe=()=>a(void 0,null,function*(){const Ce=yield(0,Ge.NZ)({});if(Ce!=null&&Ce.data){const Xe=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:b.createElement("img",{src:Ie,className:Be.folderIcon}),isLeaf:!1,children:Pe(Ce.data||[])}];ge(Xe)}}),Pe=Ce=>Ce.map(Xe=>({title:Xe.name,key:Xe.group_id,icon:b.createElement("img",{src:Ie,className:Be.folderIcon}),isLeaf:Xe.children.length===0,children:Pe(Xe.children)})),Ue=(Ce,Xe,nt)=>Ce.map(ye=>ye.key===Xe?le(le({},ye),nt):ye.children?E(le({},ye),{children:Ue(ye.children,Xe,nt)}):ye),Me=(Ce,Xe,nt)=>Ce.map(ye=>{if(ye.key===Xe)return E(le({},ye),{icon:nt?b.createElement("img",{src:be,className:Be.folderIcon}):b.createElement("img",{src:Ie,className:Be.folderIcon})});if(ye.children)return E(le({},ye),{children:Me(ye.children,Xe,nt)})}),lt=(Ce,Xe)=>{ge(nt=>Me(nt,Xe.node.key,Xe.expanded))},Le=z?{selectedKeys:z,defaultExpandedKeys:z}:{};return ie.length>0&&b.createElement("div",{id:re||""},b.createElement(he.default,le({showLine:{showLeafIcon:!1},showIcon:!0,treeData:ie,className:Be.folderWrapper,onSelect:ne,onExpand:lt},Le)))}},51529:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Ge}});var b=oe(60324),he={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},Be=oe(32637),Ie=oe(59301),Ge=({type:Fe,style:Ye})=>{const ke=Ie.createElement("div",{className:he.wrap,onClick:De=>{De.preventDefault(),De.stopPropagation()}},Ie.createElement("p",null,Fe==="shixun"||Fe==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Ie.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",Fe==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Ie.createElement("div",{className:he.contact},Ie.createElement("div",{className:he.img},Ie.createElement("img",{src:Be,width:"124px",height:"124px"})),Ie.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Ie.createElement(b.Z,{content:ke},Ie.createElement("span",{className:he.text,style:Ye},"\u9AD8\u6D88\u8017"))}},2781:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Te}});var b=oe(59301),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Be=oe(92310),Ie=oe.n(Be),be=oe(71418),Ge=oe(2859),Fe=oe(64866),Ye=oe(22566),ke=(We,Ve,le)=>new Promise((E,a)=>{var x=ne=>{try{z(le.next(ne))}catch(re){a(re)}},y=ne=>{try{z(le.throw(ne))}catch(re){a(re)}},z=ne=>ne.done?E(ne.value):Promise.resolve(ne.value).then(x,y);z((le=le.apply(We,Ve)).next())}),Te=({data:We,className:Ve,fullWidth:le,style:E={},onClose:a,onOk:x,showFullTools:y,noAssociationId:z})=>{const ne=(0,b.useRef)(null),re=(0,b.useRef)(null),ie=(0,b.useRef)(null),ge=(0,b.useRef)(null),[fe,Pe]=(0,b.useState)(!1),[Ue,Me]=(0,b.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,b.useEffect)(()=>{ie.current||(ie.current=document.createElement("style"),document.head.appendChild(ie.current)),We!=null&&We.visible?(document.body.setAttribute("data-custom","y-hidden"),ie.current.innerHTML=" html { overflow-y: hidden; }",We!=null&&We.src&<()):(document.body.removeAttribute("data-custom"),ie.current&&(document.head.removeChild(ie.current),ie.current=null))},[We==null?void 0:We.visible]);const lt=()=>ke(void 0,null,function*(){Pe(!0),Me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ye=yield(0,Ye.ZJ)(We==null?void 0:We.src);ne.current.src="",ne.current.src=ye,ne.current.onload=function(){nt()},Pe(!1),Me("")}),Le=()=>{document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",a()},Ce=ye=>ke(void 0,null,function*(){Pe(!0),Me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const gt=yield(0,Fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:We.title,file:ye.dataUrl}});gt!=null&>.id&&!z?(yield(0,Fe.ZP)(`/api/attachments/${We.id}/add_subitem.json`,{method:"post",body:{subitem_id:gt==null?void 0:gt.id,settings:JSON.stringify(ye.state)}})).status===0&&x():gt!=null&>.id&&x(gt),document.body.removeAttribute("data-custom"),ie.current.innerHTML=" ",Pe(!1),Me("")}),Xe=()=>{const ye=document.querySelector('a[href="https://markerjs.com/"]');ye&&ye.parentNode&&(ye.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(pt=>{const wt=document.querySelector(pt.name);wt&&wt.setAttribute("title",pt.title)})},nt=()=>{re.current=new Ge.hP(ne.current),re.current.targetRoot=ge.current,re.current.addEventListener("render",Ce),re.current.addEventListener("beforeclose",Le),y&&(re.current.availableMarkerTypes=re.current.ALL_MARKER_TYPES,re.current.uiStyleSettings.redoButtonVisible=!0,re.current.uiStyleSettings.notesButtonVisible=!0,re.current.uiStyleSettings.zoomButtonVisible=!0,re.current.uiStyleSettings.zoomOutButtonVisible=!0,re.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=re.current.uiStyleSettings,re.current.show(),We!=null&&We.snapshotData&&re.current.restoreState(We.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Xe()},300)};return b.createElement(b.Fragment,null,(We==null?void 0:We.visible)&&b.createElement(be.Z,{spinning:fe,tip:Ue,style:{position:"absolute"}},b.createElement("div",{ref:ge,className:Ie()(he.imageDimensions,Ve,le?he.fullWidth:""),style:E},b.createElement("img",{className:he.img,ref:ne}))))}},5864:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return ba},$:function(){return zn}});var b=oe(59301),he={flex_box_center:"flex_box_center___ILe3s",flex_space_between:"flex_space_between___c0XhE",flex_box_vertical_center:"flex_box_vertical_center___Iusj1",flex_box_center_end:"flex_box_center_end___DIVMO",flex_box_column:"flex_box_column___x06LA",intelligentBox:"intelligentBox___M5xO7",red:"red___oyEWt",imgBox:"imgBox___DdoNI",underpin:"underpin___fwUex",row:"row___W9MrK",leftLayout:"leftLayout___MMjoZ",rightLayout:"rightLayout___EsxRX",head:"head___Q7Od8",centerBox:"centerBox___j58Ut",title:"title___rMcNx",tip:"tip___gLHFS",leftBox:"leftBox___DJ6lp",question:"question___THjM9",rightBox:"rightBox___CuMdf",error:"error___PHzCG",actionHead:"actionHead___vTHMx",edit:"edit___EaRLy",option:"option___z4UTy",active:"active___o8wNJ",fill:"fill___g760n",text:"text___L_lug",liWrap:"liWrap___LDwxe",li:"li___k4Mcf",buttonFixed:"buttonFixed___QxKdm",buttonWrap:"buttonWrap___OEep5",button:"button___b2y4h",menu:"menu___aQ4xO",tabs:"tabs___QmlP4",dotLoading:"dotLoading___zUYOu",showHide:"showHide___fHrAG"},Be=oe(92310),Ie=oe.n(Be),be=oe(78241),Ge=oe(8591),Fe=oe(43418),Ye=oe(5871),ke=oe(95237),De=oe(24905),Te=oe(38854),We=oe(54580),Ve=oe(3113),le=oe(93948),E=oe(19842),a=oe(92832),x=oe(2751),y=oe(11662),z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAABk1JREFUWEd1lwlsVkUQx3/7ClGMSMSrHCKXHCpQhYhCNB5AYqRQGq1AiKgEEAiokAJFFIoipcVE5EYFyn23IGCJgoTDQimWSJSzCIKIcglUEIGu2bdv3+77vo+XfPl2Z2Zn5z8zuzsjSPDJ0tZV2ftfGog0BG0Q1AbuRABCgJDBvxorWqDE5xkZh+4porNGjRXNyKvlMuCbf2OXDPRIWYHnnQJKqaSQOimFos3s67HmG1NCupzxWDcgD2Qjf0P1qT/fqGAcGh4Yb4x1ZZSsCySy3oAV4LnOCByi9Pl7CQ00HPvIDb0cz8sUqSUFLqgQkJRjPCavzEFUZoaecz2oNjYAjXGJgEQi5Bio1kYiZYDEOEt5z4+ecZ4D2I2kGePl0eWlkUJkVxp/+yvkpOa5IDOtxxIAiE2nuEg5RhjZ2EiFhgYpF6ZfTNq662KzI+TpgOGJPJFaMjwEJCc06YZgtY5AENLMA7HpCcVTYfd0TR/yi+Vvy4F9CyG5BaQviV9nKBeOwNrXoNdOSKqqqSe2wJZ3dfS9JP0LM+MmyJt63iEfaj6m11w5DUWdo+c1yUtX6SfkrNZVOXNpP1I2Cg+qApV1KN6wc+WQ31nTh+63/K05sHc+JLeEjKW3BnT+CKxKh66L4P4WWu7ySVj1sh63GwNN0u36IwVQMk6HPWMHVKmmeceLoOR9exnpFC2nHs2F/LDxqwi5PBIdJTA6ASClbE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IOk/lX9+PbmDnQFYihxxjTFdhs60p3M/3oZEH3d5EEGha4f7voFUcvzuaWroCnOh0SqEqsZTz2CmyW47YsD3hDH5YfnvilMqWGQCklJG5lbJUgjd0nMGhH3GJJTATBwwLuib7+tUxq7IffenD2xupwlcFxUfO43xCN6y4BcCuFTCrx2U8XOHN9dabmCbr6/NDq4RjO2fdLo1MfOy2Gw+mrb+Z6OC9qpUDA4fzn8ICbfb4wXm4XI4EKQE0MrS+GO8zOvXxwauew/iTQhBWNnhEhN9KLM19boyRQA6apSMS2t84fe7yRTCYPHhKTQFM2NPsCsNKfddTGYjgJ1ARpNCahOiJF9sXiTIkEGjWh3xy4lINS5EigPkPzSQlVEmheg/4MSKA+O9PJ/a/QIfoKNS1Cqz/9E6OFLRQhuo0IhQa9SdCNvB63UKRoKS0UGtQnQYvZ6sxCk/D1OIke6IbG1z8T8f1Al7ZUhE+g0paK+vRpU5O+ROObmvSnTsk6gVBsKyQV+gSCEEgbe/X5o5NYgW6/u5m+Q1vr0SJ0C+gKpJdbdIkHnNMRSK+XBSwBU05VIL3giaHdhayKQHrFugsCsCX9CKRDDrCUu5jvJJCOGeki/CBK00E/QVA0WIOO2jIIP4jW8/OSP8u/m/aksJr16LC7IMj2sEbzuEkBnmdFo+u9PG7yNxidqHC3DAxxAAAAAElFTkSuQmCC",ge=oe(64866),fe=oe(81399),Pe=oe(5623),Ue=oe(10939),Me=oe(78926),lt=oe(52999),Le=oe(15342),Ce=oe.n(Le),Xe=(ln,cn,pn)=>new Promise((Oa,pa)=>{var wa=fn=>{try{St(pn.next(fn))}catch(Fn){pa(Fn)}},_t=fn=>{try{St(pn.throw(fn))}catch(Fn){pa(Fn)}},St=fn=>fn.done?Oa(fn.value):Promise.resolve(fn.value).then(wa,_t);St((pn=pn.apply(ln,cn)).next())}),ye=b.memo(({tagName:ln="div",value:cn="",className:pn,style:Oa={},onBlur:pa,id:wa})=>{const _t=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(!_t.current)return;Xe(void 0,null,function*(){const Fn=_t.current;Fn.innerHTML="";const ya=cn==null?void 0:cn.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const na of ya)if(na.startsWith("$$")&&na.endsWith("$$")||na.startsWith("`$$")&&na.endsWith("$$`")){const Ka=na.startsWith("`$$")?na.slice(3,-3):na.slice(2,-2),aa=document.createElement("span");aa.setAttribute("contentEditable","false"),aa.setAttribute("title",na),aa.className="edu_latex",Fn.appendChild(aa),Ce().render(Ka,aa,{throwOnError:!1})}else{const Ka=na==null?void 0:na.replace(/<[^>]*>/g,aa=>aa.startsWith("{var fn,Fn;if(pa&&_t.current){const na=_t.current.cloneNode(!0),Ka=na.querySelectorAll("span.edu_latex");for(let aa of Ka){const Wn=aa.getAttribute("title"),Ya=document.createTextNode(Wn||""),Ma=aa;(Fn=(fn=Ma.parentNode)==null?void 0:fn.replaceChild)==null||Fn.call(fn,Ya,Ma)}pa(na.innerHTML)}};return b.createElement(b.Fragment,null,b.createElement(ln,{ref:_t,contentEditable:!0,className:pn,style:Oa,onBlur:St}))}),gt=oe(16624),pt=oe(10089),wt=oe(43428),ut=oe(6848),Kt=oe(43604),rn={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},It=oe(4879),Zt=oe(22566),Qe=oe(4479),Oe=oe(3665),Et=oe(39459),Gt=oe(97277),vt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAHr1JREFUaEPNmweYnVW1/n/7a6fMmcm0ZEoSUkkCSQgJCVWKoAI2FAH1iqBYwXvFLogF8S9XvRYElUeqIJegFOmEKgiICUkgJBBCkpnMZHoyc6ad9pW9r3t/58wEsJfn+Z8z5zn9fN+711rvetdaewT/rsvi073GBEsdrIN8214WOfbCyLHnSks0SSGqFCCFlSOS/VLKNhXJbULKTVYgXwhKwWZevNX/d5ya+Ff+6OzZx9W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NpPN7SFfHKMQSWa1VnH+h9/I3FlNuOkUtfU1bHsiYvczKbbn2ri340nePH8l20ZGsL0QT3ceSz4zptUyNDrK4oXzeGGTHxxbt/jujuoXv/nd+/9rYqPZX7Lmn3rvH7Lwa3/og0d+eklP78j5c2vmntZUO7V27e5nGM2NsGtoF65dxQmHz+NDZxxBKpEkNSVFmE3w8iMOj2x5kZ78ANWJBNPqpyESJQIZUvJDk8Km1qUpFovDc2e13Mp4+vIv/uasf/i/Wf4R0vqri/mh2RfXLlow66St+fXvbu/qOW4o3z/1iMXzxOnvOIpUlYNjW2QaUvSvTbFlS462PQMUo2EaG2pIpjzT+y4UlQpDuUchH3ec6DdeUqy5+M7P/v/1j1p/aiXuv/zyxDOP7ViyYP7Ug9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",Dt=(ln,cn,pn)=>new Promise((Oa,pa)=>{var wa=fn=>{try{St(pn.next(fn))}catch(Fn){pa(Fn)}},_t=fn=>{try{St(pn.throw(fn))}catch(Fn){pa(Fn)}},St=fn=>fn.done?Oa(fn.value):Promise.resolve(fn.value).then(wa,_t);St((pn=pn.apply(ln,cn)).next())}),dt=(0,b.forwardRef)(({onUpdateNum:ln,onSave:cn},pn)=>{var Oa;const pa=`\u8BF7\u8F93\u5165\u51FA\u9898\u8981\u6C42\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u5148\u4E0A\u4F20\u6750\u6599\u4E4B\u540E\u518D\u6839\u636E\u6750\u6599\u51FA\u9898 +\u4F8B\uFF1A\u8BF7\u751F\u6210\u5173\u4E8E\u300APython\u7A0B\u5E8F\u8BBE\u8BA1\u300B\u7684\u8BD5\u9898\u3002\u8003\u5BDF\u77E5\u8BC6\u70B9\uFF1A\u53D8\u91CF\u5B9A\u4E49\u3001\u6570\u636E\u7C7B\u578B\u3001\u8FD0\u7B97\u7B26\u548C\u63A7\u5236\u7ED3\u6784\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020%`,[wa,_t]=(0,b.useState)(!1),[St,fn]=(0,b.useState)([]),[Fn,ya]=(0,b.useState)(null),[na,Ka]=(0,b.useState)([]),[aa,Wn]=(0,b.useState)(0),[Ya,Ma]=(0,b.useState)(0),[Ja,Ar]=(0,b.useState)(!1),[At,In]=(0,b.useState)(""),[Rn,wn]=(0,b.useState)(0),[xe,ft]=(0,b.useState)(0),[Bt,Vt]=(0,b.useState)(0),[Rt,yt]=(0,b.useState)(0),[hn,je]=(0,b.useState)(0),[Ke,He]=(0,b.useState)(0),[Mt,un]=(0,b.useState)(0),[sn,Xn]=(0,b.useState)(0),[Qn,gn]=(0,b.useState)(Gt.Q),{contentRef:Yn,value:Pa,status:zt,open:qn,close:Je}=Qn,Qt=(0,Oe.Z)({contentRef:Yn,status:zt}),{openProgress:Cn,closeProgress:tt,CreateProgressModal:Jn,progressOpen:Nn}=(0,Qe.Z)();(0,b.useEffect)(()=>{Fn&&la(),Fn===!1&&(Je(),ln==null||ln(),fn([]),In(""),wn(0),ft(0),Vt(0),yt(0),je(0),He(0),un(0),Xn(0))},[Fn]);const sa=()=>{ya(!0)};(0,b.useImperativeHandle)(pn,()=>({onClick:sa}));const Zn=Wt=>{Ar(!0),Wn(Wt),Ma(0)},za=Wt=>Dt(void 0,null,function*(){const xa=Wt.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(xa)==-1?(Ge.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):Wt.size/1024/1024>10?(Ge.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject()):!0}),la=()=>Dt(void 0,null,function*(){const Wt=yield(0,ge.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});Wt.status===0&&(Wn(Wt.total_number),Ma(Wt.remaining_number))}),_a=Wt=>(Wt=Wt||"",Wt=String(Wt),Wt=Wt.replace(/\s+/g,""),Wt),$a=(Wt=!0)=>Dt(void 0,null,function*(){var xa,va;const Yt=[{name:"\u5355\u9009\u9898",num:Rn||0},{name:"\u591A\u9009\u9898",num:xe||0},{name:"\u5224\u65AD\u9898",num:Bt||0},{name:"\u586B\u7A7A\u9898",num:Rt||0},{name:"\u7B80\u7B54\u9898",num:hn||0},{name:"\u7EC4\u5408\u9898",num:sn||0},{name:"\u7F16\u7A0B\u9898",num:Ke||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:Mt||0}];if(Wt){if(_a(At)){if(At.length>1e3){Ge.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{Ge.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!_a(At)&&!(St!=null&&St.length)){Ge.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const Pn=Yt.reduce((Ra,ha)=>Ra+ha.num,0);if(Pn===0){Ge.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(Pn>30){Ge.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}if(aa!==-1){Ar(!0);return}}Ar(!1);const ea={scene_type:6,request_identifier:Math.random(),file_id:(va=(xa=St[0])==null?void 0:xa.response)==null?void 0:va.id,content:At,count_arr:Yt.map(Pn=>Pn.num).join(",")};yield qn(ea),la()}),sr=()=>Dt(void 0,null,function*(){const Wt=Qt();if(cn){ya(!1),cn(Wt);return}Cn(),_t(!0),Ka([]);const xa=new FormData;xa.append("html",Wt);const va=yield(0,ge.ZP)("/api/intelligent_imports/import.json",{method:"post",body:xa},!0);if((va==null?void 0:va.status)===0)if(va!=null&&va.data){tt(100),Ka(va==null?void 0:va.data);return}else Ge.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");_t(!1),tt()}),Tt=()=>Dt(void 0,null,function*(){const Wt=Qt();(0,Zt.RG)(Wt)}),Da=["uploading","error"].includes((Oa=St==null?void 0:St[0])==null?void 0:Oa.status);return b.createElement(b.Fragment,null,b.createElement(Et.Z,{visible:Ja,totalCount:aa,usedCount:Ya,onCancel:()=>Ar(!1),onOk:()=>$a(!1)}),b.createElement(wt.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:b.createElement("div",{className:rn.extraHeader},b.createElement(ke.Z,{align:"middle"},!zt&&!!Pa&&b.createElement(b.Fragment,null,b.createElement(x.op,{onClick:sr,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),b.createElement(x.op,{onClick:Tt,shape:"default",type:"text"},b.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),b.createElement("i",{onClick:()=>{const Wt=xa=>{Fe.default.confirm({centered:!0,icon:null,width:500,zIndex:1101,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:xa,onOk:()=>{ya(!1)}})};if(zt){Wt("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else Pa?Wt("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):ya(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Fn},b.createElement("div",{className:rn.wrap},b.createElement("div",{className:rn.left},b.createElement("div",{className:rn.tip},b.createElement("img",{src:vt}),b.createElement("span",null,"\u60A8\u597D\uFF01\u6211\u662F\u60A8\u7684\u667A\u80FD\u51FA\u9898\u52A9\u624B\uFF0C\u6211\u5DF2\u5B66\u4E60\u4E86\u5E73\u53F0\u4EE5\u53CA\u4E92\u8054\u7F51\u4E0A\u6D77\u91CF\u7684\u8BD5\u9898\u77E5\u8BC6\u5E93\u3002\u53EF\u4EE5\u6839\u636E\u60A8\u7684\u8981\u6C42\u548C\u4E0A\u4F20\u7684\u6750\u6599\u7075\u6D3B\u751F\u6210\u5404\u7C7B\u8BD5\u9898\u3002\u6B22\u8FCE\u968F\u65F6\u4E0E\u6211\u4E92\u52A8\uFF0C\u8BA9\u6211\u4EEC\u4E00\u8D77\u6253\u9020\u66F4\u9AD8\u6548\u3001\u66F4\u4F18\u8D28\u7684\u8BD5\u9898\uFF01")),b.createElement("div",{className:"mb10 mt20 c-black"},b.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),b.createElement(a.default.TextArea,{style:{height:160},className:"mb20",value:At,placeholder:pa,onChange:Wt=>{In(Wt.target.value)}}),b.createElement(We.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${y.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:St,withCredentials:!0,data:{upload_type:1},beforeUpload:za,onChange:({file:Wt})=>{var xa,va;Wt.status!=="removed"&&(Wt.status==="done"&&((xa=Wt==null?void 0:Wt.response)==null?void 0:xa.status)!==0&&(Wt.status="error",Wt.response=(va=Wt==null?void 0:Wt.response)==null?void 0:va.message),fn([Wt]))},onRemove:()=>fn([])},b.createElement(ut.Z,{title:"\u5355\u6B21\u4EC5\u652F\u6301\u4E0A\u4F201\u4E2A\u6587\u6863\u62161\u5F20\u56FE\u7247\uFF0C\u6587\u6863\u652F\u6301PDF/Word\u683C\u5F0F\uFF0C\u56FE\u7247\u652F\u63011\u5F20\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247"},b.createElement(x.op,{style:{borderRadius:2}},b.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),b.createElement("div",{className:"c-black mt20"},b.createElement("div",{className:"mb10 c-black"},b.createElement("b",null,"\u51FA\u9898\u6570\u91CF"),b.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u4FDD\u8BC1\u51FA\u9898\u4F53\u9A8C\uFF0C\u5355\u6B21\u51FA\u9898\u603B\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7",b.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"30"),"\u9053\uFF09")),b.createElement(ke.Z,{style:{gap:16}},b.createElement(Kt.Z,null,b.createElement("label",null,"\u5355\u9009\u9898"),b.createElement(Ye.Z,{min:0,max:10,value:Rn,onChange:wn,style:{marginLeft:"8px"}})),b.createElement(Kt.Z,null,b.createElement("label",null,"\u591A\u9009\u9898"),b.createElement(Ye.Z,{min:0,max:10,value:xe,onChange:ft,style:{marginLeft:"8px"}})),b.createElement(Kt.Z,null,b.createElement("label",null,"\u5224\u65AD\u9898"),b.createElement(Ye.Z,{min:0,max:10,value:Bt,onChange:Vt,style:{marginLeft:"8px"}})),b.createElement(Kt.Z,null,b.createElement("label",null,"\u586B\u7A7A\u9898"),b.createElement(Ye.Z,{min:0,max:10,value:Rt,onChange:yt,style:{marginLeft:"8px"}})),b.createElement(Kt.Z,null,b.createElement("label",null,"\u7B80\u7B54\u9898"),b.createElement(Ye.Z,{min:0,max:10,value:hn,onChange:je,style:{marginLeft:"8px"}})))),zt?b.createElement("div",{onClick:Je,className:rn.bottomBtn},b.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):Da?b.createElement("div",{className:`${rn.bottomBtn} ${rn.disabled}`},b.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):b.createElement("div",{onClick:()=>{$a()},className:rn.bottomBtn},b.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),b.createElement(Gt.Z,{onStatusChange:gn,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!Nn,noRestrictModal:Zn,stringTransformer:It.o,onError:Wt=>{Object.prototype.toString.call(Wt)==="[object Object]"&&Wt.status===-9&&Zn(Wt.data)}}))),b.createElement(wt.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:wa},b.createElement(ke.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},b.createElement("img",{src:oe(36413),alt:"\u667A\u80FD\u51FA\u9898"}),b.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u9898")),b.createElement(ba,{stickyTop:-24,hideWordFeatures:!0,dataSource:na,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>_t(!1),onSuccess:()=>{_t(!1),ya(!1)}}),b.createElement("div",{style:{height:70}})),Jn("\u5904\u7406\u4E2D"))}),on=Object.defineProperty,ct=Object.defineProperties,et=Object.getOwnPropertyDescriptors,An=Object.getOwnPropertySymbols,ot=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Ht=(ln,cn,pn)=>cn in ln?on(ln,cn,{enumerable:!0,configurable:!0,writable:!0,value:pn}):ln[cn]=pn,ht=(ln,cn)=>{for(var pn in cn||(cn={}))ot.call(cn,pn)&&Ht(ln,pn,cn[pn]);if(An)for(var pn of An(cn))bt.call(cn,pn)&&Ht(ln,pn,cn[pn]);return ln},Mn=(ln,cn)=>ct(ln,et(cn)),Ot=(ln,cn,pn)=>new Promise((Oa,pa)=>{var wa=fn=>{try{St(pn.next(fn))}catch(Fn){pa(Fn)}},_t=fn=>{try{St(pn.throw(fn))}catch(Fn){pa(Fn)}},St=fn=>fn.done?Oa(fn.value):Promise.resolve(fn.value).then(wa,_t);St((pn=pn.apply(ln,cn)).next())});const Un=ln=>{ln.preventDefault();let pn=(ln.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,pn)},bn=ln=>{ln.key==="Enter"&&ln.preventDefault()},kn=({children:ln,style:cn})=>b.createElement("div",{className:he.leftBox,style:cn,onPaste:Un},ln),qt=({children:ln,style:cn,className:pn})=>b.createElement("div",{className:Ie()(he.rightBox,pn),style:cn,onPaste:Un},ln),ma=({className:ln,style:cn={},width:pn=1200,onCancel:Oa=()=>{},onSuccess:pa=()=>{},gather:wa={},mode:_t=1,stickyTop:St=0,subDisciplineId:fn=[],hideWordFeatures:Fn,dataSource:ya=[],customLeftHeadNode:na,customRightHeadNode:Ka,customLeftContent:aa,hideRecognition:Wn=!1,onExchange:Ya,isSingleSelection:Ma=!1,underpinBackgroundStyle:Ja={},headExtraNode:Ar,isRefreshItemBank:At=!1,okText:In="\u786E\u5B9A\u5BFC\u5165",onSave:Rn})=>{var wn;const[xe,ft]=(0,b.useState)(1),[Bt,Vt]=(0,b.useState)(0),[Rt,yt]=(0,b.useState)(""),[hn,je]=(0,b.useState)(!1),[Ke,He]=(0,b.useState)([]),[Mt,un]=(0,b.useState)([]),[sn,Xn]=(0,b.useState)(!1),[Qn,gn]=(0,b.useState)(!1),[Yn,Pa]=(0,b.useState)(!1),[zt,qn]=(0,b.useState)(!1),[Je,Qt]=(0,b.useState)([]),[Cn,tt]=(0,b.useState)(1),[Jn,Nn]=(0,b.useState)(!1),[sa,Zn]=(0,b.useState)(!0),[za,la]=(0,b.useState)(0),[_a,$a]=(0,b.useState)(!1),[sr]=be.default.useForm(),[Tt]=be.default.useForm(),Da=(0,b.useRef)(null),Wt=(0,b.useRef)(null),xa=(0,b.useRef)(),va=(0,b.useRef)(null),Yt=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],xn=["C","C++","Java","Python","JavaScript","Ruby"];(0,b.useEffect)(()=>{ya!=null&&ya.length&&cr(ya)},[ya]),(0,b.useEffect)(()=>{xe===2&&Da.current.focus()},[xe]),(0,b.useEffect)(()=>{Yn&&Pn()},[Yn]);const ea=()=>{if(xe===1){Ge.ZP.warning("\u8BF7\u5148\u4E0A\u4F20\u8BD5\u9898\uFF01");return}Fe.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u6E05\u7A7A\u64CD\u4F5C\u5C06\u5220\u9664\u8BD5\u9898\u7F16\u8F91\u533A\u57DF\u7684\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u5B9A\u4E00\u952E\u6E05\u7A7A\u5417\uFF1F",onOk:()=>Ot(void 0,null,function*(){ft(1)})})},Pn=()=>Ot(void 0,null,function*(){const de=yield(0,ge.ZP)("/api/disciplines.json",{method:"get",params:{source:_t===1?"new_question":"subject"}});Qt(de.disciplines||[])}),Ra=de=>{const $e=[],st=(jt,at)=>{jt.length>=2&&$e.push(jt.join(""));for(let tn=at;tn(de=de||"",de=String(de),de=de.replace(/\s+/g,""),de),Va=de=>(de=de||"",de=String(de),de=de.replace(/
/g,""),de=de.replace(/
/g,` +`),de=de.replace(/<\/div>/g,` +`),de=Sr(de),de),ur=de=>de.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),Sr=de=>de.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"),Nr=de=>{var $e;const st=de.clipboardData;if(st){const jt=st.types.toString(),at=st.items;if(jt==="Files"||st.types.indexOf("Files")>-1){de.preventDefault();try{let tn=at[1];(($e=at[0])==null?void 0:$e.kind)==="file"&&(tn=at[0]);const Jt=tn.getAsFile();(0,lt.I)(Jt,Ut=>{var Xt;if(Ut.id){if(((Xt=Jt==null?void 0:Jt.type)==null?void 0:Xt.indexOf("image"))>-1){const ra=``;document.execCommand("insertText",!1,ra)}}else(Ut==null?void 0:Ut.status)===401&&(document.location.href="/user/login")})}catch(tn){Ge.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function pr(de,$e){return Ot(this,null,function*(){if(typeof de=="string")return yield $e(de);if(typeof de!="object"||de===null)return de;if(Array.isArray(de))return yield Promise.all(de.map(at=>Ot(this,null,function*(){return yield pr(at,$e)})));const st={};for(const jt in de)if(Object.prototype.hasOwnProperty.call(de,jt)){const at=de[jt];typeof at=="string"?st[jt]=yield $e(at):typeof at=="object"?st[jt]=yield pr(at,$e):st[jt]=at}return st})}const Yr=()=>Ot(void 0,null,function*(){var de;je(!0),yt("\u5904\u7406\u4E2D"),yield new Promise(jt=>setTimeout(jt,1e3));let $e=(de=Wt.current)==null?void 0:de.querySelectorAll('[data-text="edit"]'),st="";try{$e.forEach(function(jt){var at,tn,Jt,Ut;const Xt=jt.cloneNode(!0),ra=Xt.querySelectorAll("span.edu_latex");for(let Za of ra){const mn=Za.getAttribute("title"),Ia=document.createTextNode(mn),Ca=Za;(tn=(at=Ca.parentNode)==null?void 0:at.replaceChild)==null||tn.call(at,Ia,Ca)}const Ha=Xt.querySelectorAll("span[style]");for(let Za of Ha)if(Za.style.fontFamily){const mn=Za.innerHTML,Ia=document.createTextNode(mn),Ca=Za;(Ut=(Jt=Ca.parentNode)==null?void 0:Jt.replaceChild)==null||Ut.call(Jt,Ia,Ca)}Xt==null||Xt.childNodes.forEach(function(Za){Za.nodeType===Node.ELEMENT_NODE&&Za.localName!=="h5"&&Za.localName!=="h4"?st+=`

${Za.innerHTML}

`:Za.nodeType===Node.TEXT_NODE&&(st+=`

${Za.textContent}

`)})}),Cr("/api/intelligent_imports/import.json",{html:Sr(st)})}catch(jt){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",jt)}}),Xa=de=>{let $e=de.filter(st=>!!(st!=null&&st.type));return $e=$e.map(st=>{var jt;const at=(jt=Qa.find(Jt=>Jt.id===(st==null?void 0:st.type)))==null?void 0:jt.deal,tn=Mn(ht({},st),{id:String(Math.random()).slice(-6),knowledgePoint:ha(st==null?void 0:st.knowledgePoint)});return at?at(tn):tn}),$e},qa=()=>{if(xe===1){Ge.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!");return}Fe.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u91CD\u65B0\u8BC6\u522B\u4F1A\u8986\u76D6\u53F3\u4FA7\u5DF2\u8BC6\u522B\u7ED3\u679C\uFF0C\u5305\u62EC\u4EBA\u5DE5\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u786E\u5B9A\u91CD\u65B0\u8BC6\u522B\u5417?",onOk:Yr})},fr=()=>b.createElement("div",{className:he.row},b.createElement("div",{className:he.leftLayout},b.createElement(kn,{style:{height:675}},xe===1&&b.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>ft(2)},b.createElement("div",{style:{color:"#9096A3",fontSize:12}},"1.\u672C\u529F\u80FD\u652F\u6301\u5BFC\u5165\u7684\u9898\u578B\uFF1A\u5355\u9009\u9898\u3001\u591A\u9009\u9898\u3001\u586B\u7A7A\u9898\u3001\u5224\u65AD\u9898\u3001\u7B80\u7B54\u9898\u3001 \u7EC4\u5408\u9898\u3001\u7F16\u7A0B\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u3002",b.createElement("br",null),"2.\u82E5\u8981\u5BFC\u5165\u7EC4\u5408\u9898\uFF0C\u8BF7\u5728\u9898\u76EE\u524D\u540E\u4F7F\u7528\u4E00\u5BF9\u201C","{{\u201D\u3001\u201C}}","\u201D\u5C06\u5185\u5BB9\u6807\u51FA\uFF1B\u5927\u9898\u9898\u5E72\u548C\u5C0F\u9898\u9898\u5E72\u4E4B\u95F4\u4E0D\u9700\u8981\u7A7A\u884C\uFF1B\u5927\u9898\u548C\u5C0F\u9898\u9898\u5E72\u90FD\u9700\u6807\u6CE8\u9898\u53F7\uFF1B\u5C0F\u9898\u7B54\u6848\u53EF\u8DDF\u5728\u5C0F\u9898\u9898\u5E72\u540E\uFF0C\u5E76\u7528\u7A7A\u683C\u4E0E\u9898\u5E72\u5185\u5BB9\u9694\u5F00\u3002\u8303\u4F8B\u53EF\u53C2\u8003\u63A8\u8350\u683C\u5F0F\u3002",b.createElement("br",null),"3.\u5BFC\u5165\u652F\u6301\u6587\u672C\u3001\u56FE\u7247\u3001\u516C\u5F0F\u3002\u9898\u76EE\u7ED3\u6784\u652F\u6301\u8BC6\u522B\u7B54\u6848\u3001\u89E3\u6790\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9\u3002",b.createElement("br",null),"4.\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u4FEE\u6539\u9898\u76EE\u5185\u5BB9\u540E\u91CD\u65B0\u8BC6\u522B\uFF0C\u6216\u4E0B\u8F7D\u63A8\u8350\u683C\u5F0F\uFF0C\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u5BFC\u5165\u8BC6\u522B\u3002",b.createElement("br",null)),b.createElement("div",{className:he.imgBox,style:{marginTop:75}},b.createElement("img",{width:56,src:ne}),b.createElement("span",null,"\u7F16\u8F91\u533A"))),xe===2&&b.createElement("div",{"data-text":"edit",onBlur:()=>{Da.current.innerHTML||ft(1)},ref:Da,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),b.createElement("div",{className:he.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},b.createElement("div",{className:he.imgBox,style:{marginTop:240}},b.createElement("img",{width:56,src:re}),b.createElement("span",null,"\u9884\u89C8\u533A")))),fa=(de,$e,st,jt)=>{var at;console.log(de,$e,st,jt,"onDataChange\u4FEE\u6539\u6570\u503C");const tn=JSON.parse(JSON.stringify(Mt));jt===void 0?tn[$e][de]=st:tn[$e].questions[jt][de]=st;const Jt=ht({},tn[$e]),Ut=(at=Qa.find(Xt=>Xt.id===(Jt==null?void 0:Jt.type)))==null?void 0:at.deal;tn[$e]=Ut(Jt),un(tn)},or=(de,$e,st)=>{var jt;const at=st!==void 0,tn=(jt=Qa.find(Xt=>Xt.id===(de==null?void 0:de.type)))==null?void 0:jt.type,Jt=`${$e+1}.${st===void 0?"":st+1+"."}`,Ut=`${(de==null?void 0:de.type)==="7"?"{{":""}${Jt}\u3010${tn}\u3011${(de==null?void 0:de.question)||""}`;return b.createElement(b.Fragment,null,at&&b.createElement("h4",{contentEditable:!0}),b.createElement(ye,{id:de==null?void 0:de.id,tagName:"div",value:Ut}))},dr=(de,$e)=>Ot(void 0,null,function*(){var st;const jt=yield Ya(de,$e),at=(st=jt==null?void 0:jt.data)==null?void 0:st.content;if(at!=null&&at.length){const tn=Xa(at)[0];Ke.splice($e,1,tn),Mt.splice($e,1,tn),He([...Ke]),un([...Mt])}}),ka=(de,$e,st)=>{var jt;const at=st!==void 0,tn=(jt=Qa.find(Ut=>Ut.id===(de==null?void 0:de.type)))==null?void 0:jt.type,Jt=`${$e+1}.${st===void 0?"":st+1+"."}`;return at?b.createElement("div",{style:{padding:"10px 18px"}},`${Jt}\u3010${tn}\u3011`,b.createElement(ye,{id:de==null?void 0:de.id,tagName:"span",className:he.edit,onBlur:Ut=>fa("question",$e,Ut,st),value:(de==null?void 0:de.question)||""})):b.createElement(b.Fragment,null,b.createElement("div",{className:he.actionHead},b.createElement("div",{className:"c-light-primary"},`${Jt}\u3010${tn}\u3011`),_t!==1&&b.createElement(Ye.Z,{disabled:(de==null?void 0:de.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:Ut=>fa("score",$e,Ut,st),value:de==null?void 0:de.score}),b.createElement(ke.Z,{align:"middle",style:{marginLeft:"auto"}},!!Ya&&b.createElement("span",{className:"current c-light-primary mr30",onClick:()=>dr(de,$e)},b.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),b.createElement(De.default,{onChange:Ut=>fa("checked",$e,Ut.target.checked,st),checked:!!(de!=null&&de.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),b.createElement(ye,{id:de==null?void 0:de.id,tagName:"div",style:{padding:"10px 18px"},className:he.edit,onBlur:Ut=>fa("question",$e,Ut,st),value:de==null?void 0:de.question}))},nr=(de,$e,st)=>b.createElement(b.Fragment,null,["0","1","2","4"].includes(de==null?void 0:de.type)&&b.createElement(ye,{id:de==null?void 0:de.id,value:`\u7B54\u6848\uFF1A${$e||""}`,tagName:"p"}),!st&&b.createElement(ye,{id:de==null?void 0:de.id,value:`\u96BE\u5EA6\uFF1A${(de==null?void 0:de.difficulty)||""}`,tagName:"p"}),(de==null?void 0:de.type)!=="7"&&b.createElement(ye,{id:de==null?void 0:de.id,value:`\u89E3\u6790\uFF1A${(de==null?void 0:de.analyze)||""}`,tagName:"p"}),!st&&b.createElement(ye,{id:de==null?void 0:de.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(de==null?void 0:de.knowledgePoint)||""}`,tagName:"p"})),mt=(de,$e,st,jt)=>{const at=jt!==void 0,tn=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Jt=at&&!de.last&&!de.errorMsg?{marginBottom:10}:{},Ut=tn.map(Xt=>({key:Xt,label:Xt,onClick:()=>fa("difficulty",st,Xt,jt)}));return b.createElement("div",{className:he.liWrap,style:Jt},["4"].includes(de==null?void 0:de.type)&&b.createElement("div",{className:he.li},b.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),b.createElement(ye,{id:de==null?void 0:de.id,tagName:"div",className:`${he.edit} c-black`,onBlur:Xt=>fa("answer",st,[Xt],jt),value:$e})),!at&&b.createElement("div",{className:he.li},b.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(Te.Z,{menu:{items:Ut}},b.createElement("span",{className:"c-light-primary"},de==null?void 0:de.difficulty,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(de==null?void 0:de.type)!=="7"&&b.createElement("div",{className:he.li},b.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),b.createElement(ye,{id:de==null?void 0:de.id,tagName:"div",className:`${he.edit} c-grey-333`,onBlur:Xt=>fa("analyze",st,Xt,jt),value:de==null?void 0:de.analyze})),!at&&b.createElement("div",{onKeyDown:bn,className:he.li},b.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),b.createElement(ye,{id:de==null?void 0:de.id,tagName:"div",value:(de==null?void 0:de.knowledgePoint)||"",className:`${he.edit} c-grey-333`,onBlur:Xt=>fa("knowledgePoint",st,ha(Va(Xt)),jt)})))},it=de=>b.createElement(b.Fragment,null,typeof(de==null?void 0:de.errorMsg)=="string"&&!!(de!=null&&de.errorMsg)&&b.createElement("h5",{contentEditable:!1},b.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),b.createElement("div",null,de==null?void 0:de.errorMsg))),Nt=de=>b.createElement(b.Fragment,null,typeof(de==null?void 0:de.errorMsg)=="string"&&!!(de!=null&&de.errorMsg)&&b.createElement("h5",null,b.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),b.createElement("div",null,de==null?void 0:de.errorMsg))),dn=(de,$e,st,jt)=>{let at="flex";return(Ma&&za!==jt||sn&&!(st!=null&&st.errorMsg))&&(at="none"),b.createElement("div",{className:he.row,style:{display:at}},b.createElement("div",{className:he.leftLayout},aa||b.createElement(kn,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},de))),b.createElement("div",{className:he.rightLayout},b.createElement(qt,{className:st!=null&&st.errorMsg?he.error:""},$e)))},Qa=[{id:"0",type:"\u5355\u9009\u9898",element:(de,$e,st)=>{var jt,at;const tn=st!==void 0;let Jt=(jt=de==null?void 0:de.answer)==null?void 0:jt[0];const Ut=b.createElement(b.Fragment,null,or(de,$e,st),(at=de==null?void 0:de.options)==null?void 0:at.map((Za,mn)=>b.createElement(ye,{id:de==null?void 0:de.id,key:mn,value:`${Yt[mn]}.${Za}`,tagName:"p"})),nr(de,Jt,tn),it(de));let Xt=tn?de:Mt[$e];const ra=Xt==null?void 0:Xt.options,Ha=b.createElement(b.Fragment,null,ka(Xt,$e,st),ra==null?void 0:ra.map((Za,mn)=>{var Ia;return b.createElement("div",{key:mn,className:he.option},b.createElement("aside",{className:((Ia=Xt==null?void 0:Xt.answer)==null?void 0:Ia[0])===Yt[mn]?he.active:"",onClick:()=>fa("answer",$e,[Yt[mn]],st)},Yt[mn]),b.createElement(ye,{id:Xt==null?void 0:Xt.id,tagName:"div",className:`${he.text}`,onBlur:Ca=>{ra[mn]=Ca,fa("options",$e,ra,st)},value:Za}))}),mt(Xt,"",$e,st),Nt(Xt));return tn?[Ut,Ha]:dn(Ut,Ha,Xt,$e)},deal:de=>{var $e,st,jt;de.score=de.score===void 0?2:de.score;let at=ha(($e=de==null?void 0:de.answer)==null?void 0:$e[0]).toUpperCase();de.answer=at?[at]:[];let tn=[];if(!(de!=null&&de.options))tn.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{de.options=(st=de.options)==null?void 0:st.slice(0,8);const Jt=de.options.map(Xt=>Xt==null?void 0:Xt.trim().replace(/^\s+|\s+$/g,""));new Set(Jt).size!==Jt.length&&tn.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return at||tn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),at&&(Yt.slice(0,((jt=de==null?void 0:de.options)==null?void 0:jt.length)||8).includes(at)||tn.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D")),ha(de==null?void 0:de.question)||tn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),de.errorMsg=tn.join(` +`),de}},{id:"1",type:"\u591A\u9009\u9898",element:(de,$e,st)=>{var jt,at;const tn=st!==void 0;let Jt=(jt=de==null?void 0:de.answer)==null?void 0:jt[0];const Ut=b.createElement(b.Fragment,null,or(de,$e,st),(at=de==null?void 0:de.options)==null?void 0:at.map((Za,mn)=>b.createElement(ye,{id:de==null?void 0:de.id,key:mn,value:`${Yt[mn]}.${Za}`,tagName:"p"})),nr(de,Jt,tn),it(de));let Xt=tn?de:Mt[$e];const ra=Xt==null?void 0:Xt.options,Ha=b.createElement(b.Fragment,null,ka(Xt,$e,st),ra==null?void 0:ra.map((Za,mn)=>{var Ia,Ca;return b.createElement("div",{key:mn,className:he.option},b.createElement("aside",{className:(Ca=(Ia=Xt==null?void 0:Xt.answer)==null?void 0:Ia[0])!=null&&Ca.includes(Yt[mn])?he.active:"",onClick:()=>{var Ga;let Ir=((Ga=Xt==null?void 0:Xt.answer)==null?void 0:Ga[0])||"";const Vr=Yt[mn];Ir.includes(Vr)?Ir=Ir.replace(new RegExp(Vr,"g"),""):Ir+=Vr,Ir=Ir.split("").sort().join(""),fa("answer",$e,[Ir],st)}},Yt[mn]),b.createElement(ye,{id:Xt==null?void 0:Xt.id,tagName:"div",className:`${he.text}`,onBlur:Ga=>{ra[mn]=Ga,fa("options",$e,ra,st)},value:Za}))}),mt(Xt,"",$e,st),Nt(Xt));return tn?[Ut,Ha]:dn(Ut,Ha,Xt,$e)},deal:de=>{var $e,st,jt;de.score=de.score===void 0?2:de.score;let at=ha(($e=de==null?void 0:de.answer)==null?void 0:$e[0]).toUpperCase().split("").sort().join("");de.answer=at?[at]:[];let tn=[];if(!(de!=null&&de.options))tn.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{de.options=(st=de.options)==null?void 0:st.slice(0,8);const Jt=de.options.map(Xt=>Xt==null?void 0:Xt.trim().replace(/^\s+|\s+$/g,""));new Set(Jt).size!==Jt.length&&tn.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(at||tn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),at){const Jt=Yt.slice(0,((jt=de==null?void 0:de.options)==null?void 0:jt.length)||8);Ra(Jt).includes(at)||tn.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D")}return ha(de==null?void 0:de.question)||tn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),de.errorMsg=tn.join(` +`),de}},{id:"2",type:"\u5224\u65AD\u9898",element:(de,$e,st)=>{var jt,at;const tn=st!==void 0;let Jt=(jt=de==null?void 0:de.answer)==null?void 0:jt[0];const Ut=b.createElement(b.Fragment,null,or(de,$e,st),nr(de,Jt,tn),it(de));let Xt=tn?de:Mt[$e];const ra=["\u6B63\u786E","\u9519\u8BEF"];let Ha=((at=Xt==null?void 0:Xt.answer)==null?void 0:at[0])||"";["\u6B63\u786E","\u5BF9","T","True","t","true"].includes(Ha)?Ha="\u6B63\u786E":["\u9519\u8BEF","\u9519","T","true","t","false"].includes(Ha)&&(Ha="\u9519\u8BEF");const Za=b.createElement(b.Fragment,null,ka(Xt,$e,st),ra==null?void 0:ra.map((mn,Ia)=>b.createElement("div",{key:Ia,className:he.option},b.createElement("aside",{style:{borderRadius:2},className:Ha===mn?he.active:"",onClick:()=>fa("answer",$e,[mn],st)},mn==="\u6B63\u786E"?"T":"F"),b.createElement("div",{style:{pointerEvents:"none"},className:`${he.text}`},mn))),mt(Xt,"",$e,st),Nt(Xt));return tn?[Ut,Za]:dn(Ut,Za,Xt,$e)},deal:de=>{var $e;de.score=de.score===void 0?2:de.score;let st=ha(($e=de==null?void 0:de.answer)==null?void 0:$e[0]);de.answer=st?[st]:[];let jt=[];return st||jt.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),st&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(st)&&jt.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),ha(de==null?void 0:de.question)||jt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),de.errorMsg=jt.join(` +`),de}},{id:"3",type:"\u586B\u7A7A\u9898",element:(de,$e,st)=>{var jt,at;const tn=st!==void 0,Jt=b.createElement(b.Fragment,null,or(de,$e,st),(jt=de==null?void 0:de.answer)==null?void 0:jt.map((ra,Ha)=>b.createElement(ye,{id:de==null?void 0:de.id,key:Ha,tagName:"p",value:`\u7B54\u6848${Ha+1}\uFF1A${ra.text||""}`})),nr(de,"",tn),it(de));let Ut=tn?de:Mt[$e];const Xt=b.createElement(b.Fragment,null,ka(Ut,$e,st),(at=Ut==null?void 0:Ut.answer)==null?void 0:at.map((ra,Ha)=>b.createElement("div",{key:Ha,className:he.option},b.createElement("aside",{className:he.fill},"\u586B\u7A7A\u9879",Ha+1),ra.model===1&&b.createElement(ye,{id:Ut==null?void 0:Ut.id,tagName:"div",onBlur:Za=>{Ut.answer[Ha].latex=Va(Za),fa("answer",$e,Ut.answer,st)},className:`${he.text}`,value:ra.latex}),ra.model===2&&b.createElement(Me.Z,{value:ra.latex,onChange:Za=>{Ut.answer[Ha].latex=Za,fa("answer",$e,Ut.answer,st)}}))),mt(Ut,"",$e,st),Nt(Ut));return tn?[Jt,Xt]:dn(Jt,Xt,Ut,$e)},deal:de=>{var $e,st,jt,at;de.score=de.score===void 0?2:de.score,de.question=($e=de.question)==null?void 0:$e.replaceAll("\u2581","_");const tn=(st=de.answer)==null?void 0:st.map(Ut=>{if(Object.prototype.toString.call(Ut)==="[object Object]")return Ut;Ut=Ut==null?void 0:Ut.trim();const Xt={model:1,text:Ut,latex:Ut};return Ut.startsWith("$$")&&Ut.endsWith("$$")||Ut.startsWith("`$$")&&Ut.endsWith("$$`")?(Xt.model=2,Xt.latex=Ut.slice(2,-2)):Xt.latex=Va(Ut),Xt});de.answer=tn;let Jt=[];return tn||Jt.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),ha(de==null?void 0:de.question)?de!=null&&de.question.includes("_")?(jt=de==null?void 0:de.answer)!=null&&jt.length&&((de==null?void 0:de.question.match(/_+/g))||[]).length!==((at=de==null?void 0:de.answer)==null?void 0:at.length)&&Jt.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Jt.push("\u586B\u7A7A\u9879\u672A\u8BBE\u7F6E\uFF0C\u8BF7\u4F7F\u7528\u82F1\u6587\u4E0B\u5212\u7EBF\u201C___\u201D\u8868\u793A\u586B\u7A7A\u9879"):Jt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),de.errorMsg=Jt.join(` +`),de}},{id:"4",type:"\u7B80\u7B54\u9898",element:(de,$e,st)=>{var jt,at;const tn=st!==void 0;let Jt=(jt=de==null?void 0:de.answer)==null?void 0:jt[0];const Ut=b.createElement(b.Fragment,null,or(de,$e,st),nr(de,Jt,tn),it(de));let Xt=tn?de:Mt[$e];const ra=b.createElement(b.Fragment,null,ka(Xt,$e,st),mt(Xt,(at=Xt==null?void 0:Xt.answer)==null?void 0:at[0],$e,st),Nt(Xt));return tn?[Ut,ra]:dn(Ut,ra,Xt,$e)},deal:de=>{de.score=de.score===void 0?5:de.score;let $e=[];return ha(de==null?void 0:de.question)||$e.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),de.errorMsg=$e.join(` +`),de}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(de,$e)=>{var st,jt;const at=Mt[$e],tn=xn.slice(0,4).map(Jt=>({key:Jt,label:Jt,onClick:()=>fa("platform",$e,Jt)}));return b.createElement("div",{className:he.row,style:{display:sn?at!=null&&at.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:he.leftLayout},b.createElement(kn,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},or(de,$e),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(de==null?void 0:de.description)||""}`,tagName:"p"}),nr(de),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${de==null?void 0:de.timeLimit}`,tagName:"p"}),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(de==null?void 0:de.platform)||""}`,tagName:"p"}),b.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),b.createElement("h4",null),b.createElement(ye,{id:de==null?void 0:de.id,value:(de==null?void 0:de.code)||"",tagName:"div"}),(st=de==null?void 0:de.inputs)==null?void 0:st.map((Jt,Ut)=>{var Xt;return b.createElement(b.Fragment,{key:Ut},b.createElement("h4",null),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Ut+1})\u8F93\u5165\uFF1A${Jt||""}`,tagName:"div"}),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${Ut+1})\u8F93\u51FA\uFF1A${((Xt=de==null?void 0:de.outputs)==null?void 0:Xt[Ut])||""}`,tagName:"div"}))}),it(de)))),b.createElement("div",{className:he.rightLayout},b.createElement(qt,{className:at!=null&&at.errorMsg?he.error:""},ka(at,$e),b.createElement("div",{className:he.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},b.createElement("div",{className:he.li},b.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:at==null?void 0:at.description,tagName:"div",onBlur:Jt=>fa("description",$e,Jt)}))),mt(at,"",$e),b.createElement("div",{className:he.liWrap},b.createElement("div",{className:he.li},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:at==null?void 0:at.timeLimit,tagName:"div",onBlur:Jt=>fa("timeLimit",$e,Va(Jt))})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(Te.Z,{menu:{items:tn}},b.createElement("span",{className:"c-light-primary"},at==null?void 0:at.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:he.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:(at==null?void 0:at.code)||"",onBlur:Jt=>fa("code",$e,Va(Jt)),tagName:"div"}))),(jt=at==null?void 0:at.inputs)==null?void 0:jt.map((Jt,Ut)=>{var Xt;return b.createElement("div",{className:he.liWrap,key:Ut},b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Ut+1,")\u8F93\u5165\uFF1A"),b.createElement(ye,{id:at==null?void 0:at.id,value:Jt||"",className:he.edit,onBlur:ra=>{const Ha=[...(at==null?void 0:at.inputs)||[]];Ha[Ut]=Va(ra),fa("inputs",$e,Ha)},tagName:"div"})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",Ut+1,")\u8F93\u51FA\uFF1A"),b.createElement(ye,{id:at==null?void 0:at.id,value:((Xt=at==null?void 0:at.outputs)==null?void 0:Xt[Ut])||"",className:he.edit,onBlur:ra=>{const Ha=[...(at==null?void 0:at.outputs)||[]];Ha[Ut]=Va(ra),fa("outputs",$e,Ha)},tagName:"div"})))}),Nt(at))))},deal:de=>{var $e,st,jt;de.score=de.score===void 0?10:de.score,de.code=($e=de.code)==null?void 0:$e.trim();let at=[];ha(de==null?void 0:de.question)?((st=de==null?void 0:de.question)==null?void 0:st.length)>60&&at.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):at.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ha(de==null?void 0:de.description)||at.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const tn=ha(String((de==null?void 0:de.timeLimit)||""));if(de.timeLimit=tn,(!tn||tn&&!["3","4","5","6","7","8","9","10"].includes(tn))&&at.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),de.platform=ha(de==null?void 0:de.platform),de!=null&&de.platform){const Jt=["c","c++","java","python"],Ut=(jt=de==null?void 0:de.platform)==null?void 0:jt.toLowerCase(),Xt=Jt.findIndex(ra=>ra===Ut);Xt>-1?de.platform=xn[Xt]:at.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else at.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(de!=null&&de.inputs)||!(de!=null&&de.outputs))de.inputs=[],de.outputs=[],at.push("\u672A\u8BC6\u522B\u5230\u6D4B\u8BD5\u7528\u4F8B\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u5165\uFF1A1\uFF1B\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u51FA\uFF1A2");else{const Jt=Math.min(de.inputs.length,de.outputs.length);de.inputs=de.inputs.slice(0,Jt),de.outputs=de.outputs.slice(0,Jt),de.outputs.some(Ut=>!ha(Ut))&&at.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return de.errorMsg=at.join(` +`),de}},{id:"7",type:"\u7EC4\u5408\u9898",element:(de,$e)=>{var st,jt;const at=Mt[$e];return b.createElement("div",{className:he.row,style:{display:sn?at!=null&&at.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:he.leftLayout},b.createElement(kn,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},or(de,$e),nr(de),(st=de==null?void 0:de.questions)==null?void 0:st.map((tn,Jt)=>{var Ut;const Xt=(Ut=Qa.find(ra=>ra.id===(tn==null?void 0:tn.type)))==null?void 0:Ut.element;return b.createElement(b.Fragment,{key:`left-${de.id}-${Jt}`},Xt(tn,$e,Jt)[0])}),it(de),b.createElement("p",{contentEditable:!0},"}}")))),b.createElement("div",{className:he.rightLayout},b.createElement(qt,{className:at!=null&&at.errorMsg?he.error:""},ka(at,$e),mt(at,"",$e),(jt=at==null?void 0:at.questions)==null?void 0:jt.map((tn,Jt)=>{var Ut;const Xt=(Ut=Qa.find(ra=>ra.id===(tn==null?void 0:tn.type)))==null?void 0:Ut.element;return b.createElement(b.Fragment,{key:`right-${at.id}-${Jt}`},Xt(tn,$e,Jt)[1])}),Nt(at))))},deal:de=>{var $e,st,jt,at,tn;const Jt=Xa,Ut=[...Qa],Xt=Ut.findIndex(mn=>mn.id==="0"),ra=Ut.findIndex(mn=>mn.id==="1");if(Xt!==-1){const mn=Ut[Xt].deal;Ut[Xt].deal=Ia=>{const Ca=mn(Ia);return Ca.errorMsg&&(Ca.errorMsg=Ca.errorMsg.split(` `).filter(Ga=>Ga!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(` `)),Ca}}if(ra!==-1){const mn=Ut[ra].deal;Ut[ra].deal=Ia=>{const Ca=mn(Ia);return Ca.errorMsg&&(Ca.errorMsg=Ca.errorMsg.split(` `).filter(Ga=>Ga!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(` -`)),Ca}}se.questions=($e=se.questions)!=null&&$e.length?Xa(se.questions.slice(0,20)):[],se.questions=(st=se.questions)==null?void 0:st.map((mn,Ia)=>{var Ca;if(mn.type==="0"||mn.type==="1"){const Ga=(Ca=mn.options)==null?void 0:Ca.map(Ir=>Ir==null?void 0:Ir.trim().replace(/^\s+|\s+$/g,""));Ga&&new Set(Ga).size!==Ga.length&&(mn.errorMsg=(mn.errorMsg?mn.errorMsg+` -`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return On(ht({},mn),{last:Ia===se.questions.length-1})});const Ha=(jt=se.questions)==null?void 0:jt.reduce((mn,Ia)=>{const Ca=parseFloat(Ia.score);return isNaN(Ca)?mn:mn+Ca},0);se.score=Ha;let Za=[];return(at=se.questions)!=null&&at.length?se.errorMsg=((tn=se.questions)==null?void 0:tn.findIndex(mn=>!!mn.errorMsg))>-1:Za.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),pa(se==null?void 0:se.question)||Za.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Za.length&&(se.errorMsg=Za.join(` -`)),se}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(se,$e)=>{var st,jt;const at=Mt[$e],tn=Cn.map(Jt=>({key:Jt,label:Jt,onClick:()=>ga("platform",$e,Jt)}));return b.createElement("div",{className:he.row,style:{display:sn?at!=null&&at.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:he.leftLayout},b.createElement(kn,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},or(se,$e),nr(se),b.createElement(ye,{id:se==null?void 0:se.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${se==null?void 0:se.timeLimit}`,tagName:"p"}),b.createElement(ye,{id:se==null?void 0:se.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(se==null?void 0:se.platform)||""}`,tagName:"p"}),b.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),b.createElement("h4",null),b.createElement(ye,{id:se==null?void 0:se.id,value:(se==null?void 0:se.code)||"",tagName:"div"}),b.createElement("h4",null),b.createElement(ye,{id:se==null?void 0:se.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(se==null?void 0:se.input)||""}`,tagName:"p"}),b.createElement(ye,{id:se==null?void 0:se.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(se==null?void 0:se.output)||""}`,tagName:"p"}),(st=se==null?void 0:se.answer)==null?void 0:st.map((Jt,Ut)=>b.createElement(ye,{key:Ut,id:se==null?void 0:se.id,value:`\u7B54\u6848${Ut+1}\uFF1A${Jt||""}`,tagName:"p"})),it(se)))),b.createElement("div",{className:he.rightLayout},b.createElement(qt,{className:at!=null&&at.errorMsg?he.error:""},ka(at,$e),mt(at,"",$e),b.createElement("div",{className:he.liWrap},b.createElement("div",{className:he.li,onKeyDown:Bn},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:at==null?void 0:at.timeLimit,tagName:"div",onBlur:Jt=>ga("timeLimit",$e,Va(Jt))})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(Te.Z,{menu:{items:tn}},b.createElement("span",{className:"c-light-primary"},at==null?void 0:at.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:he.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:(at==null?void 0:at.code)||"",onBlur:Jt=>ga("code",$e,Va(Jt)),tagName:"div"})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:(at==null?void 0:at.input)||"",onBlur:Jt=>ga("input",$e,Va(Jt)),tagName:"div"})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:(at==null?void 0:at.output)||"",onBlur:Jt=>ga("output",$e,Va(Jt)),tagName:"div"}))),b.createElement("div",{className:he.liWrap},(jt=at==null?void 0:at.answer)==null?void 0:jt.map((Jt,Ut)=>b.createElement("div",{className:he.li,key:Ut},b.createElement("aside",null,"\u7B54\u6848",Ut+1,"\uFF1A"),b.createElement(ye,{id:at==null?void 0:at.id,value:Jt||"",className:he.edit,onBlur:Xt=>{const ra=[...(at==null?void 0:at.answer)||[]];ra[Ut]=Va(Xt),ga("output",$e,ra)},tagName:"div"})))),Nt(at))))},deal:se=>{var $e,st,jt,at,tn,Jt,Ut,Xt;se.score=se.score===void 0?10:se.score,se.code=(jt=(st=($e=se.code)==null?void 0:$e.trim())==null?void 0:st.replace(/@_@/g,"@\u2581@"))==null?void 0:jt.replace(/@__@/g,"@\u2581\u2581@");let ra=[];if(pa(se==null?void 0:se.question)||ra.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),pa(se==null?void 0:se.code)?/@▁@|@▁▁@/.test(se==null?void 0:se.code)?(at=se==null?void 0:se.answer)!=null&&at.length&&((tn=se==null?void 0:se.code.match(/@▁@|@▁▁@/g))==null?void 0:tn.length)!==((Jt=se==null?void 0:se.answer)==null?void 0:Jt.length)&&ra.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):ra.push("\u7A0B\u5E8F\u4EE3\u7801\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u7A0B\u5E8F\u4EE3\u7801\u4E2D\u7684\u586B\u7A7A\u9879\u9700\u8981\u4F7F\u7528 @\u2581@ \u7B26\u53F7\u6807\u8BC6\u51FA\u6765"):ra.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),se!=null&&se.answer?(Ut=se.answer)!=null&&Ut.some(Za=>!pa(Za))&&ra.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):ra.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),se.platform=pa(se==null?void 0:se.platform),se!=null&&se.platform){const Za=["c","c++","java","python","javascript","ruby"],mn=(Xt=se==null?void 0:se.platform)==null?void 0:Xt.toLowerCase(),Ia=Za.findIndex(Ca=>Ca===mn);Ia>-1?se.platform=Cn[Ia]:ra.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else ra.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");pa(se==null?void 0:se.output)||ra.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const Ha=pa(String((se==null?void 0:se.timeLimit)||""));return se.timeLimit=Ha,(!Ha||Ha&&!["3","4","5","6","7","8","9","10"].includes(Ha))&&ra.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),se.errorMsg=ra.join(` -`),se}}],vr=()=>b.createElement(b.Fragment,null,Ke.filter(se=>{var $e;return!!(($e=Qa.find(jt=>jt.id===(se==null?void 0:se.type)))==null?void 0:$e.element)}).map((se,$e)=>{var st;const jt=(st=Qa.find(at=>at.id===(se==null?void 0:se.type)))==null?void 0:st.element;return b.createElement(b.Fragment,{key:se.id},jt(se,$e))})),Tr=()=>Ot(void 0,null,function*(){const se=Mt.filter($e=>!$e.checked);if(xe!==3||!se.length){Ge.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if(Mn){$a(!0),yield Mn(Mt),$a(!1);return}sr.setFieldsValue({sub_discipline_id:fn}),ha(!0)}),er=(se,$e=[])=>{if(typeof se=="string")return se.trim();if(Array.isArray(se))return se.map(st=>er(st,$e));if(typeof se=="object"&&se!==null){const st={};for(const jt in se)se.hasOwnProperty(jt)&&($e.includes(jt)?st[jt]=se[jt]:st[jt]=er(se[jt],$e));return st}return se},cr=se=>Ot(void 0,null,function*(){const $e=Xa(er(se));He($e),un(JSON.parse(JSON.stringify($e))),ft(3),je(!1),Xn(!1)});(0,b.useEffect)(()=>{if(sa)return;const se=()=>{Vt($e=>$e>=90?(clearInterval(xa.current),90):$e+1)};return xa.current=setInterval(se,5e4/90),()=>clearInterval(xa.current)},[sa]);const Cr=(se,$e)=>{Zn(!1);const st=new FormData;Object.keys($e).forEach(at=>{st.append(at,$e[at])});const jt=new window.XMLHttpRequest;jt.withCredentials=!0,jt.addEventListener("load",function(at){return Ot(this,null,function*(){var tn,Jt;try{const Ut=JSON.parse((tn=at==null?void 0:at.target)==null?void 0:tn.response);if(Zn(!0),Vt(100),yield new Promise(Xt=>setTimeout(()=>Xt(),780)),Ut.status===0){if(!((Jt=Ut==null?void 0:Ut.data)!=null&&Jt.length)){Ge.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),je(!1);return}cr((Ut==null?void 0:Ut.data)||[])}else je(!1),Ge.ZP.warning(Ut==null?void 0:Ut.message)}catch(Ut){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",Ut)}})}),jt.addEventListener("error",()=>{je(!1)}),jt.open("POST",`${y.Z.API_SERVER}${se}`),jt.send(st)},Rn=se=>Ot(void 0,null,function*(){const $e=se.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf($e)==-1?(Ge.ZP.error(`${se.name}\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\uFF0C\u5F53\u524D\u4EC5\u9650\u652F\u6301\u683C\u5F0F\u4E3Adocx\u6587\u4EF6\uFF08Microsoft Word 2007\u4EE5\u4E0A\u7684\u7248\u672C\uFF09`),Promise.reject()):(je(!0),yt("\u5904\u7406\u4E2D"),Cr("/api/intelligent_imports/import.json",{file:se}),Promise.reject())});let an=[{key:1,label:b.createElement(We.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:Rn},b.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,gt.Ny)()||(0,gt.$O)())&&an.push({key:2,label:b.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{fa.current.onClick()}});const Lt=[Mt.length,(xn=Mt.filter(se=>!!(se!=null&&se.errorMsg)))==null?void 0:xn.length];return b.createElement("div",{className:Ie()(he.intelligentBox,"intelligent-body-curb",ln),style:On(ht({},cn),{width:pn}),ref:Wt},b.createElement("div",{className:he.underpin},b.createElement("b",{style:Ja}),b.createElement("b",{style:Ja})),b.createElement("div",{className:he.head,style:{top:St}},b.createElement("div",{className:he.leftLayout},na||b.createElement(b.Fragment,null,b.createElement(ke.Z,{align:"middle"},b.createElement("div",{className:he.title},"\u8BD5\u9898\u7F16\u8F91"),!Fn&&b.createElement(x.op,{href:`${y.Z.API_SERVER}/api/intelligent_imports/download_template`,download:!0,type:"link"},"\u4E0B\u8F7DWord\u6A21\u7248",b.createElement("i",{className:"iconfont icon-xiazai4 font14 ml10"})),b.createElement(x.op,{onClick:ea,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!Fn&&b.createElement(Te.Z,{overlayClassName:he.menu,menu:{items:an}},b.createElement(x.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!Ar&&Ar),b.createElement("div",{className:he.tip},b.createElement("i",{className:"iconfont icon-tishi7 font12 mr10"}),"\u63D0\u793A\uFF1A\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u7F16\u8F91\u533A\u70B9\u51FB\u5BF9\u5E94\u7684\u8BD5\u9898\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u8BC6\u522B"))),b.createElement(ke.Z,{className:he.rightLayout,style:{alignItems:"start"}},Ka||b.createElement(b.Fragment,null,b.createElement("div",{className:he.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(xe)&&b.createElement(De.default,{className:"ml20",checked:sn,onChange:se=>Xn(se.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(xe)&&b.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",b.createElement("span",{className:"ml5 mr5 c-light-primary"},Lt[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",b.createElement("span",{className:"ml5 mr5 c-red-e53"},Lt[1]),"\u9898")),Ma&&b.createElement("div",{className:he.tabs},Ke==null?void 0:Ke.map((se,$e)=>b.createElement("div",{onClick:()=>{la($e)},className:za===$e&&he.active,key:$e},"\u65B0\u9898",$e+1)))),b.createElement("div",{className:he.centerBox},b.createElement("img",{className:"mb10",src:ie,width:56}),!Wn&&b.createElement(x.op,{onClick:qa},"\u8BC6\u522B"))),[1,2].includes(xe)&&fr(),[3].includes(xe)&&vr(),b.createElement("div",{className:"pb10"}),b.createElement("div",{className:he.buttonFixed},b.createElement("div",{className:he.buttonWrap},b.createElement(Ve.ZP,{size:"middle",className:`${he.button} mr20`,onClick:Oa},"\u53D6\u6D88"),b.createElement(Ve.ZP,{size:"middle",type:"primary",loading:_a,className:`${he.button}`,onClick:Tr},Ln))),b.createElement(Fe.default,{centered:!0,closable:!1,destroyOnClose:!0,open:hn,title:null,footer:null,width:320,afterClose:()=>Vt(0)},b.createElement(ke.Z,{align:"middle",style:{flexDirection:"column"}},b.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},Rt,b.createElement("span",{className:he.dotLoading},b.createElement("span",null,"."),b.createElement("span",null,"."),b.createElement("span",null,"."))),b.createElement(le.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:Ft}),b.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",b.createElement("span",{className:"ml5 c-light-primary"},Ft,"%")))),b.createElement(Fe.default,{centered:!0,open:Yn,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:Qn,width:480,onCancel:()=>ha(!1),onOk:()=>sr.submit(),afterClose:()=>{sr.resetFields()}},b.createElement(Ce.default,{style:{maxHeight:550},form:sr,layout:"horizontal",colon:!1,size:"large",onFinish:se=>Ot(void 0,null,function*(){var $e,st,jt,at,tn;const Jt=Mt.filter(ra=>!ra.checked&&!ra.errorMsg);gn(!0);const Ut=()=>Ot(void 0,null,function*(){var ra,Ha;const Za=yield(0,ge.ZP)("/api/intelligent_imports/save.json",{method:"post",body:On(ht(ht({},wa),se),{list:Jt,mode:_t})});Za.status===0&&(At&&((ra=Za==null?void 0:Za.data)!=null&&ra.success)&&window.location.pathname==="/problemset"&&(pt.Z.publish("refresh-item-bank",se.group_id),yield new Promise(mn=>setTimeout(()=>mn(),1500))),Ge.ZP.success(`\u6210\u529F\u5BFC\u5165${(Ha=Za==null?void 0:Za.data)==null?void 0:Ha.success}\u9053\u8BD5\u9898`,3),va(Za),ha(!1)),gn(!1)});if(_t!==1){yield Ut();return}const Xt=yield(0,ge.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:Mt,mode:_t}});if(Xt.status===0){if(!(($e=Xt==null?void 0:Xt.data)!=null&&$e.error_size)){yield Ut();return}Fe.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{gn(!1)},title:"\u63D0\u793A",content:b.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",b.createElement("span",{className:"c-light-primary ml5 mr5"},(st=Xt==null?void 0:Xt.data)==null?void 0:st.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",b.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(jt=Xt==null?void 0:Xt.data)==null?void 0:jt.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",b.createElement("span",{className:"ml5 mr5"},(tn=(at=Xt==null?void 0:Xt.data)==null?void 0:at.index)==null?void 0:tn.join("\u3001")),"\u9053\uFF09\uFF0C\u91CD\u590D\u8BD5\u9898\u5C06\u4F1A\u4E3A\u60A8\u81EA\u52A8\u8FC7\u6EE4\uFF0C\u786E\u5B9A\u5BFC\u5165\u5417\uFF1F"),onOk:Ut})}})},b.createElement("div",{className:"c-grey-999 mb20"},"\u63D0\u793A\uFF1A\u8BC6\u522B\u6709\u8BEF\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u5BFC\u5165"),b.createElement(Ce.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"sub_discipline_id",labelCol:{span:5},wrapperCol:{span:19},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"}]},b.createElement(E.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",fieldNames:{label:"name",value:"id",children:"sub_disciplines"},options:Je})),_t===1&&b.createElement(Ce.default.Item,{label:b.createElement(ke.Z,{align:"middle",style:{justifyContent:"space-between"}},b.createElement("span",null,"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55"),b.createElement("div",{onClick:()=>_n(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},b.createElement("img",{className:"mr5 primary-hover",src:Pe}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"group_id",labelCol:{span:24},wrapperCol:{span:24}},b.createElement(fe.Z,{key:bn})))),b.createElement(Fe.default,{centered:!0,open:zt,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:Jn,onCancel:()=>_n(!1),onOk:()=>Tt.submit(),afterClose:()=>{Tt.resetFields()}},b.createElement(Ce.default,{style:{maxHeight:550},form:Tt,layout:"horizontal",colon:!1,size:"large",onFinish:se=>Ot(void 0,null,function*(){var $e;In(!0),(yield(0,ge.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:se.name,parent_id:($e=se==null?void 0:se.parent_id)==null?void 0:$e[0]}})).status===0?(tt(bn+1),setTimeout(()=>{Ge.ZP.success("\u64CD\u4F5C\u6210\u529F"),_n(!1),In(!1)},1e3)):In(!1)})},b.createElement(Ce.default.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},b.createElement(a.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"})),b.createElement(Ce.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},b.createElement(fe.Z,null)))),b.createElement(dt,{onSave:se=>{je(!0),yt("\u5904\u7406\u4E2D"),Cr("/api/intelligent_imports/import.json",{html:se})},ref:fa}))},zn=z;var ba=ca},78926:function(_e,Ct,oe){"use strict";var b=oe(59301),he=oe(89722),Be=oe(48136),Ie=oe(50892),Ce=oe(43418),Ge=oe(59301);const Fe=(0,b.forwardRef)(({callback:Ye,width:ke,onChange:De,disabled:Te,readOnly:We,type:Ve="",value:le="",style:E={}},a)=>{const x=(0,b.useRef)(),y=(0,b.useRef)(),[z,ne]=(0,b.useState)(0),[re,ie]=(0,b.useState)(0),[ge,fe]=(0,b.useState)(!1),Pe=()=>{var Le=document.createElement("div");Le.innerHTML=x.current.getValue();var be=Le.innerText;return Ye&&Ye(be),be};(0,b.useImperativeHandle)(a,()=>({getData:Pe}));const Ue=Le=>{Le.preventDefault();const be=Le.clientX-z,Xe=Le.clientY-re;document.body.onmousemove=nt=>{let ye=nt.clientX-be,gt=nt.clientY-Xe;const pt=document.getElementsByClassName("markdown-popup-form")[0],xt=window.innerWidth-pt.offsetWidth,ut=window.innerHeight-pt.offsetHeight;ye=Math.max(0,Math.min(ye,xt)),gt=Math.max(0,Math.min(gt,ut)),Me(nt.clientX,nt.clientY,be,Xe)&&(ne(ye),ie(gt))},document.body.onmouseup=function(){document.body.onmousemove=null}},Me=(Le,be,Xe,nt)=>{const ye=document.body.clientHeight,gt=document.body.clientWidth;return Le<20&&Xe>Le||Le>gt-20&&Xebe||be>ye-20&&nt{ge&&setTimeout(()=>{const Le=document.getElementsByClassName("markdown-popup-form")[0],be=window.innerWidth/2-Le.offsetWidth/2,Xe=window.innerHeight/2-Le.offsetHeight/2;ne(be),ie(Xe)},0)},[ge]);const lt=()=>{Te||We||fe(!0)};return Ge.createElement("div",{style:E},Ge.createElement("div",{style:{width:ke||"100%",position:"relative"},className:`${he.Z.mathFillWrap} ${Te||We?"cursorDefault":""}`,onClick:()=>lt()},Ge.createElement("math-field",{disabled:Te,locale:"zh_cn",class:`${he.Z.mathField} ${Ve}`,readOnly:We,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:x,style:{width:"100%",fontSize:le?18:14},value:le||""})),Ge.createElement(Ce.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:z,top:re},title:Ge.createElement("div",{style:{cursor:"move"},onMouseDown:Ue},"\u8F93\u5165\u516C\u5F0F"),open:ge,onOk:()=>{const Le=y.current.getData();x.current.setValue(Le),De(Le),fe(!1)},onCancel:()=>{fe(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Ge.createElement(Ie.Z,{value:le,ref:y,onChange:De,showSaveButton:!1})))});Ct.Z=Fe},50892:function(_e,Ct,oe){"use strict";var b=oe(59301),he=oe(95237),Be=oe(43604),Ie=oe(99313),Ce=oe(3113),Ge=oe(8658),Fe=oe(89722),Ye=oe(48136),ke=oe(59301);const De=(0,b.forwardRef)(({callback:Te,showSaveButton:We,value:Ve=""},le)=>{const E=(0,b.useRef)(),a=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r +`)),Ca}}de.questions=($e=de.questions)!=null&&$e.length?Xa(de.questions.slice(0,20)):[],de.questions=(st=de.questions)==null?void 0:st.map((mn,Ia)=>{var Ca;if(mn.type==="0"||mn.type==="1"){const Ga=(Ca=mn.options)==null?void 0:Ca.map(Ir=>Ir==null?void 0:Ir.trim().replace(/^\s+|\s+$/g,""));Ga&&new Set(Ga).size!==Ga.length&&(mn.errorMsg=(mn.errorMsg?mn.errorMsg+` +`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return Mn(ht({},mn),{last:Ia===de.questions.length-1})});const Ha=(jt=de.questions)==null?void 0:jt.reduce((mn,Ia)=>{const Ca=parseFloat(Ia.score);return isNaN(Ca)?mn:mn+Ca},0);de.score=Ha;let Za=[];return(at=de.questions)!=null&&at.length?de.errorMsg=((tn=de.questions)==null?void 0:tn.findIndex(mn=>!!mn.errorMsg))>-1:Za.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),ha(de==null?void 0:de.question)||Za.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Za.length&&(de.errorMsg=Za.join(` +`)),de}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(de,$e)=>{var st,jt;const at=Mt[$e],tn=xn.map(Jt=>({key:Jt,label:Jt,onClick:()=>fa("platform",$e,Jt)}));return b.createElement("div",{className:he.row,style:{display:sn?at!=null&&at.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:he.leftLayout},b.createElement(kn,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:he.question},or(de,$e),nr(de),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${de==null?void 0:de.timeLimit}`,tagName:"p"}),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(de==null?void 0:de.platform)||""}`,tagName:"p"}),b.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),b.createElement("h4",null),b.createElement(ye,{id:de==null?void 0:de.id,value:(de==null?void 0:de.code)||"",tagName:"div"}),b.createElement("h4",null),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A${(de==null?void 0:de.input)||""}`,tagName:"p"}),b.createElement(ye,{id:de==null?void 0:de.id,value:`\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A${(de==null?void 0:de.output)||""}`,tagName:"p"}),(st=de==null?void 0:de.answer)==null?void 0:st.map((Jt,Ut)=>b.createElement(ye,{key:Ut,id:de==null?void 0:de.id,value:`\u7B54\u6848${Ut+1}\uFF1A${Jt||""}`,tagName:"p"})),it(de)))),b.createElement("div",{className:he.rightLayout},b.createElement(qt,{className:at!=null&&at.errorMsg?he.error:""},ka(at,$e),mt(at,"",$e),b.createElement("div",{className:he.liWrap},b.createElement("div",{className:he.li,onKeyDown:bn},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:at==null?void 0:at.timeLimit,tagName:"div",onBlur:Jt=>fa("timeLimit",$e,Va(Jt))})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(Te.Z,{menu:{items:tn}},b.createElement("span",{className:"c-light-primary"},at==null?void 0:at.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:he.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:(at==null?void 0:at.code)||"",onBlur:Jt=>fa("code",$e,Va(Jt)),tagName:"div"})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:(at==null?void 0:at.input)||"",onBlur:Jt=>fa("input",$e,Va(Jt)),tagName:"div"})),b.createElement("div",{className:he.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),b.createElement(ye,{className:he.edit,id:at==null?void 0:at.id,value:(at==null?void 0:at.output)||"",onBlur:Jt=>fa("output",$e,Va(Jt)),tagName:"div"}))),b.createElement("div",{className:he.liWrap},(jt=at==null?void 0:at.answer)==null?void 0:jt.map((Jt,Ut)=>b.createElement("div",{className:he.li,key:Ut},b.createElement("aside",null,"\u7B54\u6848",Ut+1,"\uFF1A"),b.createElement(ye,{id:at==null?void 0:at.id,value:Jt||"",className:he.edit,onBlur:Xt=>{const ra=[...(at==null?void 0:at.answer)||[]];ra[Ut]=Va(Xt),fa("output",$e,ra)},tagName:"div"})))),Nt(at))))},deal:de=>{var $e,st,jt,at,tn,Jt,Ut,Xt;de.score=de.score===void 0?10:de.score,de.code=(jt=(st=($e=de.code)==null?void 0:$e.trim())==null?void 0:st.replace(/@_@/g,"@\u2581@"))==null?void 0:jt.replace(/@__@/g,"@\u2581\u2581@");let ra=[];if(ha(de==null?void 0:de.question)||ra.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),ha(de==null?void 0:de.code)?/@▁@|@▁▁@/.test(de==null?void 0:de.code)?(at=de==null?void 0:de.answer)!=null&&at.length&&((tn=de==null?void 0:de.code.match(/@▁@|@▁▁@/g))==null?void 0:tn.length)!==((Jt=de==null?void 0:de.answer)==null?void 0:Jt.length)&&ra.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):ra.push("\u7A0B\u5E8F\u4EE3\u7801\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u7A0B\u5E8F\u4EE3\u7801\u4E2D\u7684\u586B\u7A7A\u9879\u9700\u8981\u4F7F\u7528 @\u2581@ \u7B26\u53F7\u6807\u8BC6\u51FA\u6765"):ra.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),de!=null&&de.answer?(Ut=de.answer)!=null&&Ut.some(Za=>!ha(Za))&&ra.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):ra.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),de.platform=ha(de==null?void 0:de.platform),de!=null&&de.platform){const Za=["c","c++","java","python","javascript","ruby"],mn=(Xt=de==null?void 0:de.platform)==null?void 0:Xt.toLowerCase(),Ia=Za.findIndex(Ca=>Ca===mn);Ia>-1?de.platform=xn[Ia]:ra.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else ra.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");ha(de==null?void 0:de.output)||ra.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const Ha=ha(String((de==null?void 0:de.timeLimit)||""));return de.timeLimit=Ha,(!Ha||Ha&&!["3","4","5","6","7","8","9","10"].includes(Ha))&&ra.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),de.errorMsg=ra.join(` +`),de}}],vr=()=>b.createElement(b.Fragment,null,Ke.filter(de=>{var $e;return!!(($e=Qa.find(jt=>jt.id===(de==null?void 0:de.type)))==null?void 0:$e.element)}).map((de,$e)=>{var st;const jt=(st=Qa.find(at=>at.id===(de==null?void 0:de.type)))==null?void 0:st.element;return b.createElement(b.Fragment,{key:de.id},jt(de,$e))})),Tr=()=>Ot(void 0,null,function*(){const de=Mt.filter($e=>!$e.checked);if(xe!==3||!de.length){Ge.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if(Rn){$a(!0),yield Rn(Mt),$a(!1);return}sr.setFieldsValue({sub_discipline_id:fn}),Pa(!0)}),er=(de,$e=[])=>{if(typeof de=="string")return de.trim();if(Array.isArray(de))return de.map(st=>er(st,$e));if(typeof de=="object"&&de!==null){const st={};for(const jt in de)de.hasOwnProperty(jt)&&($e.includes(jt)?st[jt]=de[jt]:st[jt]=er(de[jt],$e));return st}return de},cr=de=>Ot(void 0,null,function*(){const $e=Xa(er(de));He($e),un(JSON.parse(JSON.stringify($e))),ft(3),je(!1),Xn(!1)});(0,b.useEffect)(()=>{if(sa)return;const de=()=>{Vt($e=>$e>=90?(clearInterval(xa.current),90):$e+1)};return xa.current=setInterval(de,5e4/90),()=>clearInterval(xa.current)},[sa]);const Cr=(de,$e)=>{Zn(!1);const st=new FormData;Object.keys($e).forEach(at=>{st.append(at,$e[at])});const jt=new window.XMLHttpRequest;jt.withCredentials=!0,jt.addEventListener("load",function(at){return Ot(this,null,function*(){var tn,Jt;try{const Ut=JSON.parse((tn=at==null?void 0:at.target)==null?void 0:tn.response);if(Zn(!0),Vt(100),yield new Promise(Xt=>setTimeout(()=>Xt(),780)),Ut.status===0){if(!((Jt=Ut==null?void 0:Ut.data)!=null&&Jt.length)){Ge.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),je(!1);return}cr((Ut==null?void 0:Ut.data)||[])}else je(!1),Ge.ZP.warning(Ut==null?void 0:Ut.message)}catch(Ut){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",Ut)}})}),jt.addEventListener("error",()=>{je(!1)}),jt.open("POST",`${y.Z.API_SERVER}${de}`),jt.send(st)},Tn=de=>Ot(void 0,null,function*(){const $e=de.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf($e)==-1?(Ge.ZP.error(`${de.name}\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\uFF0C\u5F53\u524D\u4EC5\u9650\u652F\u6301\u683C\u5F0F\u4E3Adocx\u6587\u4EF6\uFF08Microsoft Word 2007\u4EE5\u4E0A\u7684\u7248\u672C\uFF09`),Promise.reject()):(je(!0),yt("\u5904\u7406\u4E2D"),Cr("/api/intelligent_imports/import.json",{file:de}),Promise.reject())});let an=[{key:1,label:b.createElement(We.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:Tn},b.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,gt.Ny)()||(0,gt.$O)())&&an.push({key:2,label:b.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{va.current.onClick()}});const Lt=[Mt.length,(wn=Mt.filter(de=>!!(de!=null&&de.errorMsg)))==null?void 0:wn.length];return b.createElement("div",{className:Ie()(he.intelligentBox,"intelligent-body-curb",ln),style:Mn(ht({},cn),{width:pn}),ref:Wt},b.createElement("div",{className:he.underpin},b.createElement("b",{style:Ja}),b.createElement("b",{style:Ja})),b.createElement("div",{className:he.head,style:{top:St}},b.createElement("div",{className:he.leftLayout},na||b.createElement(b.Fragment,null,b.createElement(ke.Z,{align:"middle"},b.createElement("div",{className:he.title},"\u8BD5\u9898\u7F16\u8F91"),!Fn&&b.createElement(x.op,{href:`${y.Z.API_SERVER}/api/intelligent_imports/download_template`,download:!0,type:"link"},"\u4E0B\u8F7DWord\u6A21\u7248",b.createElement("i",{className:"iconfont icon-xiazai4 font14 ml10"})),b.createElement(x.op,{onClick:ea,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!Fn&&b.createElement(Te.Z,{overlayClassName:he.menu,menu:{items:an}},b.createElement(x.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!Ar&&Ar),b.createElement("div",{className:he.tip},b.createElement("i",{className:"iconfont icon-tishi7 font12 mr10"}),"\u63D0\u793A\uFF1A\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u7F16\u8F91\u533A\u70B9\u51FB\u5BF9\u5E94\u7684\u8BD5\u9898\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u8BC6\u522B"))),b.createElement(ke.Z,{className:he.rightLayout,style:{alignItems:"start"}},Ka||b.createElement(b.Fragment,null,b.createElement("div",{className:he.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(xe)&&b.createElement(De.default,{className:"ml20",checked:sn,onChange:de=>Xn(de.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(xe)&&b.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",b.createElement("span",{className:"ml5 mr5 c-light-primary"},Lt[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",b.createElement("span",{className:"ml5 mr5 c-red-e53"},Lt[1]),"\u9898")),Ma&&b.createElement("div",{className:he.tabs},Ke==null?void 0:Ke.map((de,$e)=>b.createElement("div",{onClick:()=>{la($e)},className:za===$e&&he.active,key:$e},"\u65B0\u9898",$e+1)))),b.createElement("div",{className:he.centerBox},b.createElement("img",{className:"mb10",src:ie,width:56}),!Wn&&b.createElement(x.op,{onClick:qa},"\u8BC6\u522B"))),[1,2].includes(xe)&&fr(),[3].includes(xe)&&vr(),b.createElement("div",{className:"pb10"}),b.createElement("div",{className:he.buttonFixed},b.createElement("div",{className:he.buttonWrap},b.createElement(Ve.ZP,{size:"middle",className:`${he.button} mr20`,onClick:Oa},"\u53D6\u6D88"),b.createElement(Ve.ZP,{size:"middle",type:"primary",loading:_a,className:`${he.button}`,onClick:Tr},In))),b.createElement(Fe.default,{centered:!0,closable:!1,destroyOnClose:!0,open:hn,title:null,footer:null,width:320,afterClose:()=>Vt(0)},b.createElement(ke.Z,{align:"middle",style:{flexDirection:"column"}},b.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},Rt,b.createElement("span",{className:he.dotLoading},b.createElement("span",null,"."),b.createElement("span",null,"."),b.createElement("span",null,"."))),b.createElement(le.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:Bt}),b.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",b.createElement("span",{className:"ml5 c-light-primary"},Bt,"%")))),b.createElement(Fe.default,{centered:!0,open:Yn,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:Qn,width:480,onCancel:()=>Pa(!1),onOk:()=>sr.submit(),afterClose:()=>{sr.resetFields()}},b.createElement(be.default,{style:{maxHeight:550},form:sr,layout:"horizontal",colon:!1,size:"large",onFinish:de=>Ot(void 0,null,function*(){var $e,st,jt,at,tn;const Jt=Mt.filter(ra=>!ra.checked&&!ra.errorMsg);gn(!0);const Ut=()=>Ot(void 0,null,function*(){var ra,Ha;const Za=yield(0,ge.ZP)("/api/intelligent_imports/save.json",{method:"post",body:Mn(ht(ht({},wa),de),{list:Jt,mode:_t})});Za.status===0&&(At&&((ra=Za==null?void 0:Za.data)!=null&&ra.success)&&window.location.pathname==="/problemset"&&(pt.Z.publish("refresh-item-bank",de.group_id),yield new Promise(mn=>setTimeout(()=>mn(),1500))),Ge.ZP.success(`\u6210\u529F\u5BFC\u5165${(Ha=Za==null?void 0:Za.data)==null?void 0:Ha.success}\u9053\u8BD5\u9898`,3),pa(Za),Pa(!1)),gn(!1)});if(_t!==1){yield Ut();return}const Xt=yield(0,ge.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:Mt,mode:_t}});if(Xt.status===0){if(!(($e=Xt==null?void 0:Xt.data)!=null&&$e.error_size)){yield Ut();return}Fe.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{gn(!1)},title:"\u63D0\u793A",content:b.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",b.createElement("span",{className:"c-light-primary ml5 mr5"},(st=Xt==null?void 0:Xt.data)==null?void 0:st.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",b.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(jt=Xt==null?void 0:Xt.data)==null?void 0:jt.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",b.createElement("span",{className:"ml5 mr5"},(tn=(at=Xt==null?void 0:Xt.data)==null?void 0:at.index)==null?void 0:tn.join("\u3001")),"\u9053\uFF09\uFF0C\u91CD\u590D\u8BD5\u9898\u5C06\u4F1A\u4E3A\u60A8\u81EA\u52A8\u8FC7\u6EE4\uFF0C\u786E\u5B9A\u5BFC\u5165\u5417\uFF1F"),onOk:Ut})}})},b.createElement("div",{className:"c-grey-999 mb20"},"\u63D0\u793A\uFF1A\u8BC6\u522B\u6709\u8BEF\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u5BFC\u5165"),b.createElement(be.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"sub_discipline_id",labelCol:{span:5},wrapperCol:{span:19},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B"}]},b.createElement(E.Z,{placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",fieldNames:{label:"name",value:"id",children:"sub_disciplines"},options:Je})),_t===1&&b.createElement(be.default.Item,{label:b.createElement(ke.Z,{align:"middle",style:{justifyContent:"space-between"}},b.createElement("span",null,"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55"),b.createElement("div",{onClick:()=>qn(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},b.createElement("img",{className:"mr5 primary-hover",src:Pe}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"group_id",labelCol:{span:24},wrapperCol:{span:24}},b.createElement(fe.Z,{key:Cn})))),b.createElement(Fe.default,{centered:!0,open:zt,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:Jn,onCancel:()=>qn(!1),onOk:()=>Tt.submit(),afterClose:()=>{Tt.resetFields()}},b.createElement(be.default,{style:{maxHeight:550},form:Tt,layout:"horizontal",colon:!1,size:"large",onFinish:de=>Ot(void 0,null,function*(){var $e;Nn(!0),(yield(0,ge.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:de.name,parent_id:($e=de==null?void 0:de.parent_id)==null?void 0:$e[0]}})).status===0?(tt(Cn+1),setTimeout(()=>{Ge.ZP.success("\u64CD\u4F5C\u6210\u529F"),qn(!1),Nn(!1)},1e3)):Nn(!1)})},b.createElement(be.default.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},b.createElement(a.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"})),b.createElement(be.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},b.createElement(fe.Z,null)))),b.createElement(dt,{onSave:de=>{je(!0),yt("\u5904\u7406\u4E2D"),Cr("/api/intelligent_imports/import.json",{html:de})},ref:va}))},zn=z;var ba=ma},78926:function(_e,xt,oe){"use strict";var b=oe(59301),he=oe(89722),Be=oe(48136),Ie=oe(50892),be=oe(43418),Ge=oe(59301);const Fe=(0,b.forwardRef)(({callback:Ye,width:ke,onChange:De,disabled:Te,readOnly:We,type:Ve="",value:le="",style:E={}},a)=>{const x=(0,b.useRef)(),y=(0,b.useRef)(),[z,ne]=(0,b.useState)(0),[re,ie]=(0,b.useState)(0),[ge,fe]=(0,b.useState)(!1),Pe=()=>{var Le=document.createElement("div");Le.innerHTML=x.current.getValue();var Ce=Le.innerText;return Ye&&Ye(Ce),Ce};(0,b.useImperativeHandle)(a,()=>({getData:Pe}));const Ue=Le=>{Le.preventDefault();const Ce=Le.clientX-z,Xe=Le.clientY-re;document.body.onmousemove=nt=>{let ye=nt.clientX-Ce,gt=nt.clientY-Xe;const pt=document.getElementsByClassName("markdown-popup-form")[0],wt=window.innerWidth-pt.offsetWidth,ut=window.innerHeight-pt.offsetHeight;ye=Math.max(0,Math.min(ye,wt)),gt=Math.max(0,Math.min(gt,ut)),Me(nt.clientX,nt.clientY,Ce,Xe)&&(ne(ye),ie(gt))},document.body.onmouseup=function(){document.body.onmousemove=null}},Me=(Le,Ce,Xe,nt)=>{const ye=document.body.clientHeight,gt=document.body.clientWidth;return Le<20&&Xe>Le||Le>gt-20&&XeCe||Ce>ye-20&&nt{ge&&setTimeout(()=>{const Le=document.getElementsByClassName("markdown-popup-form")[0],Ce=window.innerWidth/2-Le.offsetWidth/2,Xe=window.innerHeight/2-Le.offsetHeight/2;ne(Ce),ie(Xe)},0)},[ge]);const lt=()=>{Te||We||fe(!0)};return Ge.createElement("div",{style:E},Ge.createElement("div",{style:{width:ke||"100%",position:"relative"},className:`${he.Z.mathFillWrap} ${Te||We?"cursorDefault":""}`,onClick:()=>lt()},Ge.createElement("math-field",{disabled:Te,locale:"zh_cn",class:`${he.Z.mathField} ${Ve}`,readOnly:We,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:x,style:{width:"100%",fontSize:le?18:14},value:le||""})),Ge.createElement(be.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:z,top:re},title:Ge.createElement("div",{style:{cursor:"move"},onMouseDown:Ue},"\u8F93\u5165\u516C\u5F0F"),open:ge,onOk:()=>{const Le=y.current.getData();x.current.setValue(Le),De(Le),fe(!1)},onCancel:()=>{fe(!1)},destroyOnClose:!0,className:"markdown-popup-form"},Ge.createElement(Ie.Z,{value:le,ref:y,onChange:De,showSaveButton:!1})))});xt.Z=Fe},50892:function(_e,xt,oe){"use strict";var b=oe(59301),he=oe(95237),Be=oe(43604),Ie=oe(99313),be=oe(3113),Ge=oe(8658),Fe=oe(89722),Ye=oe(48136),ke=oe(59301);const De=(0,b.forwardRef)(({callback:Te,showSaveButton:We,value:Ve=""},le)=>{const E=(0,b.useRef)(),a=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r x=a + r\\text{cos}\\theta \\ \r y=b + r\\text{sin}\\theta \r \\end{matrix}\\right. `},{value:`\\begin{array}{l} \r @@ -232,7 +232,7 @@ ${Un} \\end{array}`},{value:`\\begin{array}{c} \r P_{n}=n! \\\\ \r A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r -\\end{array}`}]}]}],y=re=>{E.current.setValue(E.current.getValue()+" "+re.value+" ")},z=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ke.createElement(he.Z,{className:Fe.Z.lists,gutter:[10,10]},a.map((re,ie)=>ke.createElement(Be.Z,{flex:"110px",className:Fe.Z.item},ke.createElement("div",null,ke.createElement(Ge.Z,{value:`$$${re.value}$$`}),re.name),ke.createElement("div",{className:Fe.Z.children},re.children.map((ge,fe)=>ke.createElement("div",{key:fe},ke.createElement("h1",null,ge.name),ke.createElement(he.Z,{gutter:[10,10]},ge.data.map((Pe,Ue)=>ke.createElement(Be.Z,{key:Ue,onClick:()=>y(Pe),className:Fe.Z.diamond},ke.createElement(Ge.Z,{value:"`$$"+Pe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ke.createElement(he.Z,{className:Fe.Z.lists,gutter:[10,10]},x.map((re,ie)=>ke.createElement(Be.Z,{flex:"110px",className:Fe.Z.item},ke.createElement("div",null,ke.createElement(Ge.Z,{value:"`$$"+re.value+"$$`"}),re.name),ke.createElement("div",{className:Fe.Z.children},re.children.map((ge,fe)=>ke.createElement("div",{key:fe},ge.name&&ke.createElement("h1",null,ge.name),ke.createElement(he.Z,{gutter:[10,10]},ge.data.map((Pe,Ue)=>ke.createElement(Be.Z,{key:Ue,onClick:()=>y(Pe),className:Fe.Z.diamond},ke.createElement(Ge.Z,{value:"`$$"+Pe.value+"$$`"}))))))))))}],ne=()=>{var re=document.createElement("div");re.innerHTML=E.current.getValue();var ie=re.innerText;return Te&&Te(ie),ie};return(0,b.useImperativeHandle)(le,()=>({getData:ne})),ke.createElement("div",{className:Fe.Z.mathWrap},ke.createElement(Ie.default,{defaultActiveKey:"1",items:z}),ke.createElement("math-field",{locale:"zh_cn",className:Fe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:E,style:{width:800,marginTop:30,fontSize:18}},Ve||""),We&&ke.createElement("div",{className:Fe.Z.button},ke.createElement(Ce.ZP,{size:"large",onClick:ne,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ct.Z=De},98280:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return We}});var b=oe(59301),he=oe(78241),Be=oe(43418),Ie=oe(92832),Ce=oe(87169),Ge=oe(64866),Fe={publicQuest:"publicQuest___iYvzo",publicQuestContent:"publicQuestContent___vgbKh",public_tips:"public_tips___UX0Dn",concat:"concat___wOfND"},Ye=oe(26692),ke=oe(59301),De=(Ve,le,E)=>new Promise((a,x)=>{var y=re=>{try{ne(E.next(re))}catch(ie){x(ie)}},z=re=>{try{ne(E.throw(re))}catch(ie){x(ie)}},ne=re=>re.done?a(re.value):Promise.resolve(re.value).then(y,z);ne((E=E.apply(Ve,le)).next())}),We=({type:Ve="subject",open:le,onCancel:E,onOkClick:a,subDisciplineId:x})=>{const[y]=he.default.useForm(),[z,ne]=(0,b.useState)([]),[re,ie]=(0,b.useState)(!1);(0,b.useEffect)(()=>{},[]);const ge=()=>De(void 0,null,function*(){if(Ve){const fe=yield(0,Ge.ZP)("/api/disciplines.json",{method:"get",params:{source:Ve}});ne(fe.disciplines||[])}});return ke.createElement(Be.default,{title:ke.createElement("div",{style:{fontWeight:"bold"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"),open:le,width:558,centered:!0,className:Fe.publicQuest,onCancel:()=>{E(),y.resetFields()},onOk:()=>{y.validateFields().then(fe=>De(void 0,null,function*(){const Pe=yield(0,Ge.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:fe==null?void 0:fe.name,sub_discipline_id:x}});(Pe==null?void 0:Pe.status)===0&&a({name:fe==null?void 0:fe.name,id:Pe==null?void 0:Pe.tag_discipline_id,public:!1,type:"personal"}),y.resetFields(),E()}))}},ke.createElement("div",{className:Fe.publicQuestContent},ke.createElement("div",{className:Fe.public_tips},ke.createElement(Ce.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),ke.createElement(he.default,{labelAlign:"left",form:y,colon:!1},ke.createElement(he.default.Item,{label:"\u77E5\u8BC6\u70B9\u540D\u79F0",name:"name",rules:[{required:!0}]},ke.createElement(Ie.default,{showCount:!0,maxLength:20,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"}))),ke.createElement(Ye.Z,{open:re,onCancel:()=>{ie(!1)}})))}},9683:function(_e,Ct,oe){"use strict";oe.d(Ct,{Q:function(){return ke},Z:function(){return Te}});var b=oe(59301),he={flex_box_center:"flex_box_center___VcCAZ",flex_space_between:"flex_space_between___I3jjO",flex_box_vertical_center:"flex_box_vertical_center___Rm_54",flex_box_center_end:"flex_box_center_end___nTsdc",flex_box_column:"flex_box_column___UVpzN",tags:"tags___kRRoe",text:"text___IyyEa",tagWrap:"tagWrap___v63mB",tag:"tag___X7wE6",c:"c___mZMPq",cpp:"cpp___eaTie",java:"java___gL98T",python:"python___eNRkk",edit:"edit___tbVu0"},Be=oe(92310),Ie=oe.n(Be),Ce=oe(43418),Ge=oe(8591),Fe=oe(24905),Ye=(We,Ve,le)=>new Promise((E,a)=>{var x=ne=>{try{z(le.next(ne))}catch(re){a(re)}},y=ne=>{try{z(le.throw(ne))}catch(re){a(re)}},z=ne=>ne.done?E(ne.value):Promise.resolve(ne.value).then(x,y);z((le=le.apply(We,Ve)).next())});const ke=({title:We="\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00",dataSource:Ve=[],visible:le,setVisible:E,tip:a,onOk:x})=>{const[y,z]=(0,b.useState)([]),[ne,re]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{le&&z(Ve)},[le]),b.createElement(Ce.default,{centered:!0,open:le,title:We,confirmLoading:ne,width:564,onOk:()=>Ye(void 0,null,function*(){if(!y.length){Ge.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}re(!0),yield x(y),re(!1)}),onCancel:()=>E(!1)},!!a&&b.createElement("div",{className:"c-grey-666 font16 mb10"},a),b.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},b.createElement(Fe.default.Group,{value:y,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:ie=>{z(ie)}})))};var Te=({title:We="\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00",className:Ve,style:le={},onEdit:E,dataSource:a=[]})=>{const x={C:b.createElement("div",{className:he.c},"C"),"C++":b.createElement("div",{className:he.cpp},"C++"),Java:b.createElement("div",{className:he.java},"Java"),Python:b.createElement("div",{className:he.python},"Python")};return b.createElement("div",{className:Ie()(he.tags,Ve),style:le},!!We&&b.createElement("div",{className:he.text},We),b.createElement("div",{className:he.tagWrap},a==null?void 0:a.map(y=>b.createElement(b.Fragment,{key:y},x[y]))),!!E&&b.createElement("div",{onClick:E,className:`iconfont icon-bianji_Hover ${he.edit}`}))}},13919:function(_e,Ct,oe){"use strict";oe.d(Ct,{t:function(){return An}});var b=oe(59301),he=oe(92832),Be=oe(78241),Ie=oe(43418),Ce=oe(95237),Ge=oe(43604),Fe=oe(5871),Ye=oe(57809),ke=oe(5112),De=oe(27804),Te=oe(90115),We=oe(63581),Ve=oe(8591),le=oe(3113),E=oe(71418),a=oe(24334),x={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},y=oe(64866),z=oe(25537),ne=oe(30720),re=oe(56102),ie=oe(48326),ge=oe(59301),fe=Object.defineProperty,Pe=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,be=(ot,Bt,Ht)=>Bt in ot?fe(ot,Bt,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):ot[Bt]=Ht,Xe=(ot,Bt)=>{for(var Ht in Bt||(Bt={}))lt.call(Bt,Ht)&&be(ot,Ht,Bt[Ht]);if(Me)for(var Ht of Me(Bt))Le.call(Bt,Ht)&&be(ot,Ht,Bt[Ht]);return ot},nt=(ot,Bt)=>Pe(ot,Ue(Bt)),ye=(ot,Bt,Ht)=>new Promise((ht,On)=>{var Ot=kn=>{try{Bn(Ht.next(kn))}catch(qt){On(qt)}},Un=kn=>{try{Bn(Ht.throw(kn))}catch(qt){On(qt)}},Bn=kn=>kn.done?ht(kn.value):Promise.resolve(kn.value).then(Ot,Un);Bn((Ht=Ht.apply(ot,Bt)).next())}),pt=({buttonProps:ot,buttonText:Bt,form:Ht,hackIdentifier:ht="",answerKey:On,data:Ot})=>{const[Un,Bn]=(0,b.useState)(!1),[kn,qt]=(0,b.useState)(!1),[ca,zn]=(0,b.useState)(!1),[ba,ln]=(0,b.useState)({}),[cn,pn]=(0,b.useState)(""),[Oa,va]=(0,b.useState)(""),wa=(0,b.useRef)(ht),_t=(0,b.useRef)(""),St=(0,b.useRef)(!1);(0,b.useEffect)(()=>{ca&&na()},[ca]),(0,b.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const fn=()=>new Date().getTime(),Fn=Ot==null?void 0:Ot.code,Ea=()=>{var Wn,Ya;let Ma=Fn?Ot==null?void 0:Ot.code:(Wn=Ht.getFieldValue("hack_codes"))==null?void 0:Wn.code,Ja=Fn?Ot==null?void 0:Ot.answer_content:Ht.getFieldValue(On),Ar=Fn?Ot==null?void 0:Ot.input:(Ya=Ht.getFieldValue("hack_sets"))==null?void 0:Ya.input;Ja==null||Ja.forEach(At=>{const Ln=At.value||At.answer_text||"";Ma=Ma.replace(/(@▁@|@▁▁@)/,Ln)}),va(Ar),pn(Ma),ln({}),zn(!0)},na=()=>ye(void 0,null,function*(){var Wn,Ya,Ma,Ja;const Ar=fn(),At=Fn?Ot==null?void 0:Ot.time_limit:(Wn=Ht.getFieldsValue())==null?void 0:Wn.hack.time_limit,Ln=Fn?(Ya=Ot==null?void 0:Ot.answer_content)==null?void 0:Ya.length:(Ja=(Ma=Ht.getFieldsValue())==null?void 0:Ma.standard_answers)==null?void 0:Ja.length;Bn(!0),yield(0,z.bM)(_t.current,{test_hack_code:cn,test_input:Oa});function Mn(){return ye(this,null,function*(){const{status:xn,data:xe}=yield(0,z.rX)(_t.current,"submit"),Ft=fn()-Ar>(At+3)*1e3*Ln;if(St.current){if(Ft){Ve.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),Bn(!1);return}if(xn===0){Bn(!1),ln(nt(Xe({},xe),{showText:!0}));return}setTimeout(Mn,1e3)}})}Mn()}),Ka=()=>ye(void 0,null,function*(){var Wn,Ya,Ma,Ja,Ar,At,Ln;if(!Ot){try{yield Ht.validateFields()}catch(ft){(Ma=(Ya=(Wn=ft==null?void 0:ft.errorFields)==null?void 0:Wn[0])==null?void 0:Ya.name)!=null&&Ma.includes("standard_answers")?Ve.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ve.ZP.error(ft.errorFields[0].errors[0]),Ht.scrollToField(ft.errorFields[0].name,{behavior:"smooth",block:"center"});return}qt(!0);let xn="";const xe=Ht.getFieldsValue();wa.current?xn=yield(0,y.ZP)(`/api/problems/${wa.current}.json`,{method:"put",body:nt(Xe({},xe),{hack:nt(Xe({},xe==null?void 0:xe.hack),{sub_discipline_id:(Ln=(At=xe==null?void 0:xe.hack)==null?void 0:At.sub_discipline_id)==null?void 0:Ln[1],difficult:xe.difficulty,item_banks_group_id:xe.item_banks_group_id}),hack_codes:nt(Xe({},xe.hack_codes),{code:a.Base64.encode(xe.hack_codes.code)}),update_hack_sets:[Xe({},xe.hack_sets)],is_blank:!0})}):(xn=yield(0,y.ZP)("/api/problems.json",{method:"post",body:nt(Xe({},xe),{hack:nt(Xe({},xe==null?void 0:xe.hack),{sub_discipline_id:(Ar=(Ja=xe==null?void 0:xe.hack)==null?void 0:Ja.sub_discipline_id)==null?void 0:Ar[1],difficult:xe.difficulty,item_banks_group_id:xe.item_banks_group_id}),hack_codes:nt(Xe({},xe.hack_codes),{code:a.Base64.encode(xe.hack_codes.code)}),hack_sets:[Xe({},xe.hack_sets)],is_blank:!0})}),wa.current=xn==null?void 0:xn.identifier,sessionStorage.projectFill=xn==null?void 0:xn.identifier)}const Mn=yield(0,y.ZP)(`/api/problems/${wa.current}/start.json`,{method:"get"});if((Mn==null?void 0:Mn.status)===0){_t.current=Mn==null?void 0:Mn.identifier,St.current=!0,qt(!1),Ea();return}qt(!1)}),aa=Wn=>{const{status:Ya,error_msg:Ma,execute_time:Ja,output:Ar,input:At,expected_output:Ln}=Wn;let Mn=null;switch(Ya){case ie.h.OK:Mn=ge.createElement(ge.Fragment,null,ge.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ja/1e3,"\u79D2"),ge.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case ie.h.NOMATCH:Mn=ge.createElement(ge.Fragment,null,ge.createElement("div",null,"\u8F93\u5165\uFF1A"),ge.createElement("pre",{style:{fontFamily:"initial"}},At),ge.createElement("div",null,"\u8F93\u51FA\uFF1A"),ge.createElement("pre",{style:{fontFamily:"initial"}},Ar&&a.Base64.decode(Ar)),ge.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),ge.createElement("pre",{style:{fontFamily:"initial"}},Ln&&a.Base64.decode(Ln)));break;case ie.h.EXECUTEFAILURE:Mn=ge.createElement(ge.Fragment,null,ge.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ge.createElement("pre",null,At)),ge.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ge.createElement("pre",{className:"error"},a.Base64.decode(Ma)));break;case ie.h.COMPILEFAILURE:Mn=ge.createElement(ge.Fragment,null,ge.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ge.createElement("pre",null,At)),ge.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ge.createElement("pre",{className:"error"},a.Base64.decode(Ma)));break;case ie.h.PODFAILURE:Mn=ge.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case ie.h.TIMEOUT:Mn=ge.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return ge.createElement(ge.Fragment,null," ",Mn," ")};return ge.createElement("div",null,ge.createElement(le.ZP,nt(Xe({loading:kn},ot),{onClick:Ka}),Bt),ge.createElement(Ie.default,{open:ca,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Un,cancelButtonProps:{style:{display:"none"}},onOk:()=>na(),onCancel:()=>{St.current=!1,zn(!1)}},ge.createElement("div",{className:x.result},ge.createElement("div",{className:x.left},ge.createElement("div",{className:"mb20"},ge.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!Ot&&ge.createElement(re.CopyToClipboard,{text:cn,onCopy:()=>Ve.ZP.success("\u590D\u5236\u6210\u529F")},ge.createElement("span",{style:{float:"right"},className:"current c-light-primary"},ge.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),ge.createElement(ne.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:cn,onChange:Wn=>pn(Wn)})),ge.createElement("div",{className:x.right},ge.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),ge.createElement("div",{className:x.box},ge.createElement("div",{className:x.li},ge.createElement(he.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Oa,onChange:Wn=>va(Wn.target.value),bordered:!1,style:{height:180}}))),ge.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),ge.createElement("div",{className:x.box},ge.createElement(E.Z,{spinning:Un,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},ge.createElement("div",{className:x.li,style:{height:196,overflow:"auto",padding:10}},aa(ba))))))))},xt=oe(87169),ut=oe(59301),Kt=Object.defineProperty,rn=Object.defineProperties,It=Object.getOwnPropertyDescriptors,Zt=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,Et=(ot,Bt,Ht)=>Bt in ot?Kt(ot,Bt,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):ot[Bt]=Ht,Gt=(ot,Bt)=>{for(var Ht in Bt||(Bt={}))Qe.call(Bt,Ht)&&Et(ot,Ht,Bt[Ht]);if(Zt)for(var Ht of Zt(Bt))Oe.call(Bt,Ht)&&Et(ot,Ht,Bt[Ht]);return ot},vt=(ot,Bt)=>rn(ot,It(Bt)),wt=(ot,Bt)=>{var Ht={};for(var ht in ot)Qe.call(ot,ht)&&Bt.indexOf(ht)<0&&(Ht[ht]=ot[ht]);if(ot!=null&&Zt)for(var ht of Zt(ot))Bt.indexOf(ht)<0&&Oe.call(ot,ht)&&(Ht[ht]=ot[ht]);return Ht};const{TextArea:Ae}=he.default,dt=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],on=({value:ot,onChange:Bt})=>ut.createElement(Switch,{checked:ot,onChange:Ht=>{Bt(Ht)}}),ct="@\u2581@",et="@\u2581\u2581@",An=({questionTitlePlaceholder:ot,form:Bt,scoreByBlank:Ht=!1,hackidentifier:ht,answerKey:On})=>{const[Ot,Un]=(0,b.useState)(!1),[Bn,kn]=(0,b.useState)(!1),ca=(0,Te.useParams)().type==="edit",zn=(_t,St)=>{const fn=St.line;let Fn=0;for(let na=0;na{const Ea=_t.getRange(St.from,St.to);let na=0;if(St.text.forEach(Ka=>{na+=Ka.split(ct).length-1}),St.text.forEach(Ka=>{na+=Ka.split(et).length-1}),St.origin!=="setValue"){if(Ea&&(Ea.indexOf(ct)!==-1||Ea.indexOf(et)!==-1)){const Ka=Ea.split(ct).length-1+Ea.split(et).length-1,aa=zn(_t,St.from);if(console.log(`\u5220\u9664${Ka}\u4E2A\uFF0C \u524D\u9762\u6709${aa}\u4E2A\uFF0C\u65B0\u589E${na}\u4E2A`),Ka>1){const Wn=Array.from({length:Ka},(Ya,Ma)=>aa+Ma);Fn(Wn)}else Fn(aa)}else if(na>0){const Ka=zn(_t,St.from);console.log(`\u65B0\u589E${na}\u4E2A\uFF0C\u4E4B\u524D\u6709${Ka}\u4E2A`),fn(na,Ka)}}},ln=()=>{const _t=Bt.getFieldValue(On);Bt.setFieldsValue({[On]:_t==null?void 0:_t.map((St,fn)=>vt(Gt({},St),{position:fn+1}))})},cn=(0,b.useRef)(),pn=(_t,St)=>{for(let fn=0;fn<_t;fn++)cn.current({position:null,answer_text:""},St+fn);ln()},Oa=(0,b.useRef)(),va=_t=>{Oa.current(_t),ln()},wa=Be.default.useWatch(On,Bt);return ut.createElement("div",{className:We.Z.wrap},ut.createElement(Be.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},ut.createElement(De.h,{scrollId:"name",watch:!0,height:140})),ut.createElement("div",{className:We.Z.questionTitleEditorWrap},ut.createElement(Be.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},ut.createElement(De.h,{scrollId:"name",watch:!0,height:400,hidetoolBar:!0,showNullProgramButton:!0,onChange:(_t,St)=>{const fn=Bt.getFieldValue(On);console.log("--preAnswerData",fn,St),Bt.setFieldsValue({[On]:fn==null?void 0:fn.map((Fn,Ea)=>{var na;return vt(Gt({},Fn),{position:Ea+1,multi_line:(na=St==null?void 0:St[Ea])==null?void 0:na.multiLine})})})},placeholder:ot,onCMBeforeChange:(_t,St)=>{ba(_t,St,pn,va)}}))),ut.createElement(Be.default.List,{name:On,rules:[{validator(_t,St){if(!(St!=null&&St.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const fn of St){const{answer_text:Fn}=fn||{};if((Fn==null?void 0:Fn.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(_t,{add:St,remove:fn},{errors:Fn})=>(cn.current=St,Oa.current=fn,ut.createElement(ut.Fragment,null,ut.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},ut.createElement(Be.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),ut.createElement("div",{onClick:()=>{Ie.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:ut.createElement("div",null,ut.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",ut.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),ut.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},ut.createElement(xt.Z,{style:{marginRight:3,color:"#3061D0"}}),ut.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),_t.map((Ea,na)=>{var Ka=Ea,{key:aa,name:Wn}=Ka,Ya=wt(Ka,["key","name"]),Ma,Ja;return ut.createElement(Ce.Z,{className:"mb20",key:aa,align:"middle",wrap:!1},ut.createElement(Ge.Z,{flex:"0 0 auto",className:`${We.Z.blankIndex}`},"\u586B\u7A7A\u9879",na+1),ut.createElement(Ge.Z,{flex:1},ut.createElement(Ce.Z,{align:"top",justify:"space-between",wrap:!1},ut.createElement(Ge.Z,null,ut.createElement(Be.default.Item,vt(Gt({},Ya),{name:[Wn,"answer_text"],noStyle:!0}),(Ma=wa==null?void 0:wa[Wn])!=null&&Ma.multi_line||(Ja=wa==null?void 0:wa[Wn])!=null&&Ja.multiLine?ut.createElement(Ae,{spellCheck:!1,style:{marginLeft:10,width:550}}):ut.createElement(he.default,{style:{marginLeft:10,width:550},className:We.Z.blankInput,size:"large",maxLength:1e3,onBlur:Ar=>{}}))),Ht&&ut.createElement(Ge.Z,{flex:"224px"},ut.createElement(Be.default.Item,vt(Gt({},Ya),{name:[Wn,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),ut.createElement(Fe.Z,{size:"large",className:We.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),ut.createElement("div",{onClick:()=>Un(!0)},ut.createElement(Be.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ut.createElement(De.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ot}))),ut.createElement(Be.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},ut.createElement(Ye.default,{size:"large"},dt.map(_t=>ut.createElement(Ye.default.Option,{key:_t.title,value:_t.key}," ",_t.title)))),ut.createElement(Be.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},ut.createElement(Be.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},ut.createElement(Fe.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),ut.createElement("span",{className:"ml10 font14"},"\u79D2")),ut.createElement(Be.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},ut.createElement(ke.ZP.Group,{style:{marginTop:-10}},ut.createElement(ke.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),ut.createElement(ke.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),ut.createElement(ke.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),ut.createElement(Be.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),ut.createElement("div",{style:{background:"#F6F7F9",padding:15}},ut.createElement(Be.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},ut.createElement(Ae,{rows:4})),ut.createElement(Be.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},ut.createElement(Ae,{rows:4}))),ut.createElement(pt,{form:Bt,answerKey:On,hackIdentifier:ht,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:ut.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},60569:function(_e,Ct,oe){"use strict";oe.d(Ct,{u:function(){return ge}});var b=oe(59301),he=oe(95237),Be=oe(43604),Ie=oe(6848),Ce=oe(78241),Ge=oe(63581),Fe=oe(32134),Ye=oe(12893),ke=oe(27804),De=oe(59301),Te=Object.defineProperty,We=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,x=(fe,Pe,Ue)=>Pe in fe?Te(fe,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):fe[Pe]=Ue,y=(fe,Pe)=>{for(var Ue in Pe||(Pe={}))E.call(Pe,Ue)&&x(fe,Ue,Pe[Ue]);if(le)for(var Ue of le(Pe))a.call(Pe,Ue)&&x(fe,Ue,Pe[Ue]);return fe},z=(fe,Pe)=>We(fe,Ve(Pe)),ne=(fe,Pe)=>{var Ue={};for(var Me in fe)E.call(fe,Me)&&Pe.indexOf(Me)<0&&(Ue[Me]=fe[Me]);if(fe!=null&&le)for(var Me of le(fe))Pe.indexOf(Me)<0&&a.call(fe,Me)&&(Ue[Me]=fe[Me]);return Ue};const re=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ie=({value:fe,onChange:Pe,choiceTextKey:Ue,answerKey:Me,index:lt,isEdit:Le,setInputActive:be,form:Xe,choiceOptionsPath:nt,allowChangeMode:ye,showAddIcon:gt,addItem:pt,deleteItem:xt})=>{console.log(fe,"value");const ut=(fe==null?void 0:fe[Me])===1,Kt=()=>{const It=Xe.getFieldValue(nt);Xe.setFieldValue(nt,It.map(Zt=>z(y({},Zt),{[Me]:0})))},rn=()=>{ut?Pe(z(y({},fe),{[Me]:0})):(ye||Kt(),Pe(z(y({},fe),{[Me]:1})))};return De.createElement(he.Z,{className:Ge.Z.choiceWrap,align:"middle",wrap:!1},De.createElement(Be.Z,{onClick:rn,className:`${Ge.Z.choiceIndex} ${ut?Ge.Z.activeAnswer:""}`},re[lt]),De.createElement(Be.Z,{flex:1,className:`${Ge.Z.editorWrap} ml15`,onClick:be},De.createElement(ke.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Le,value:fe==null?void 0:fe[Ue],onChange:It=>{Pe(z(y({},fe),{[Ue]:It}))}})),De.createElement(Be.Z,{flex:"0 0 auto",className:"ml15"},De.createElement("div",{onClick:rn,className:`${Ge.Z.setAnswerBtn} ${ut?Ge.Z.activeAnswer:""}`},ut?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),De.createElement(Be.Z,{className:Ge.Z.actionWrapper},De.createElement(Ie.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},De.createElement(Fe.Z,{className:Ge.Z.addIcon,onClick:pt,style:{visibility:gt?"visible":"hidden"}})),De.createElement(Ie.Z,{title:"\u5220\u9664"},De.createElement(Ye.Z,{className:Ge.Z.deleteIcon,onClick:xt,style:{visibility:lt>1?"visible":"hidden"}}))))},ge=({questionTitlePlaceholder:fe,titleKey:Pe,choiceKey:Ue,analysisKey:Me,choiceTextKey:lt,answerKey:Le,choiceOptionsPath:be,allowChangeMode:Xe=!0,form:nt,showAnalysis:ye=!0})=>{const[gt,pt]=(0,b.useState)(),[xt,ut]=(0,b.useState)(!1);return De.createElement("div",{className:Ge.Z.wrap},De.createElement("div",{className:Ge.Z.questionTitleEditorWrap},De.createElement(Ce.default.Item,{label:"\u9898\u5E72",name:Pe,labelCol:{span:24},rules:[{required:!0}]},De.createElement(ke.h,{scrollId:Array.isArray(Pe)?Pe.join("_"):`${Pe}`,watch:!0,height:140,placeholder:fe}))),De.createElement(Ce.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),De.createElement(Ce.default.List,{name:Ue,rules:[{validator(Kt,rn){const It=rn.some(Qe=>Qe[Le]===1),Zt=rn.findIndex(Qe=>{var Oe;return((Oe=Qe[lt])==null?void 0:Oe.length)<=0});return Zt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${re[Zt]}\u9009\u9879\u7684\u5185\u5BB9`)):It?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Kt,{add:rn,remove:It})=>De.createElement("div",{id:Array.isArray(be)?be.join("_"):`${be}`},Kt.map((Zt,Qe)=>{var Oe=Zt,{key:Et,name:Gt}=Oe,vt=ne(Oe,["key","name"]);const wt=gt===Et,Ae=()=>{pt(Et)},dt=Qe<7&&Qe===Kt.length-1,on=()=>rn({[lt]:"",[Le]:0}),ct=()=>It(Gt);return De.createElement(Ce.default.Item,z(y({},vt),{key:Et,name:Gt,className:Ge.Z.choiceListWrap,rules:[{validator(et,An){return An!=null&&An.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${re[Qe]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),De.createElement(ie,{choiceTextKey:lt,answerKey:Le,index:Qe,isEdit:wt,setInputActive:Ae,form:nt,choiceOptionsPath:be,allowChangeMode:Xe,showAddIcon:dt,addItem:on,deleteItem:ct}))}),Kt.length<8&&De.createElement("div",{className:`${Ge.Z.addBtn} mb30`,onClick:()=>rn({[lt]:"",[Le]:0})},"\u6DFB\u52A0\u9009\u9879"))),ye&&De.createElement("div",{onClick:()=>ut(!0)},De.createElement(Ce.default.Item,{name:Me,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},De.createElement(ke.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:xt}))))}},55862:function(_e,Ct,oe){"use strict";oe.d(Ct,{u:function(){return Xe}});var b=oe(59301),he=oe(43418),Be=oe(95237),Ie=oe(43604),Ce=oe(92832),Ge=oe(6848),Fe=oe(78673),Ye=oe(78241),ke=oe(5112),De=oe(5871),Te=oe(27804),We=oe(12893),Ve=oe(61485),le=oe(63581),E=oe(78926),a=oe(59301),x=Object.defineProperty,y=Object.defineProperties,z=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,ge=(nt,ye,gt)=>ye in nt?x(nt,ye,{enumerable:!0,configurable:!0,writable:!0,value:gt}):nt[ye]=gt,fe=(nt,ye)=>{for(var gt in ye||(ye={}))re.call(ye,gt)&&ge(nt,gt,ye[gt]);if(ne)for(var gt of ne(ye))ie.call(ye,gt)&&ge(nt,gt,ye[gt]);return nt},Pe=(nt,ye)=>y(nt,z(ye)),Ue=(nt,ye)=>{var gt={};for(var pt in nt)re.call(nt,pt)&&ye.indexOf(pt)<0&&(gt[pt]=nt[pt]);if(nt!=null&&ne)for(var pt of ne(nt))ye.indexOf(pt)<0&&ie.call(nt,pt)&&(gt[pt]=nt[pt]);return gt};const Me=({value:nt,onChange:ye})=>{const gt=xt=>{he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:le.Z.modal,onOk:()=>{const ut=[...nt];ut.splice(xt,1),ye(ut)}})},pt=()=>{const xt=[...nt];xt.push(""),ye(xt)};return a.createElement(Be.Z,{className:"ml20"},a.createElement(Ie.Z,{flex:1},nt==null?void 0:nt.map((xt,ut)=>a.createElement(Be.Z,{key:`${xt}_${ut}`,className:"mb20"},a.createElement(Ce.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:xt,autoSize:{maxRows:3},maxLength:1e3,onBlur:Kt=>{const rn=[...nt],It=Kt.target.value.trim();rn[ut]=It,ye(rn)}}),a.createElement(Ge.Z,{title:"\u5220\u9664"},a.createElement(We.Z,{className:le.Z.deleteIcon,style:{marginLeft:15,visibility:ut>0?"visible":"hidden"},onClick:()=>gt(ut)}))))),a.createElement(Ie.Z,null,a.createElement("div",{className:`${le.Z.addBtn}`,onClick:()=>{pt()}},"\u65B0\u589E\u7B54\u6848")))},lt=({value:nt,onChange:ye})=>{const gt=xt=>{he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:le.Z.modal,onOk:()=>{const ut=[...nt];ut.splice(xt,1),ye(ut)}})},pt=()=>{const xt=[...nt];xt.push(""),ye(xt)};return a.createElement(Be.Z,{className:"ml20"},a.createElement(Ie.Z,{flex:1},nt==null?void 0:nt.map((xt,ut)=>a.createElement(Be.Z,{key:`${xt}_${ut}`,align:"middle",className:"mb20"},a.createElement(E.Z,{value:xt,style:{flex:1},onChange:Kt=>{const rn=[...nt];rn[ut]=Kt,ye(rn)}}),a.createElement(Ge.Z,{title:"\u5220\u9664"},a.createElement(We.Z,{className:le.Z.deleteIcon,style:{marginLeft:15,visibility:ut>0?"visible":"hidden"},onClick:()=>gt(ut)}))))),a.createElement(Ie.Z,null,a.createElement("div",{className:`${le.Z.addBtn}`,onClick:()=>{pt()}},"\u65B0\u589E\u7B54\u6848")))},Le=({value:nt=!0,onChange:ye})=>a.createElement(Fe.Z,{checked:!nt,onChange:gt=>{ye(!gt)}}),be="\u2581",Xe=({questionTitlePlaceholder:nt,form:ye,scoreByBlank:gt=!1,answerKey:pt})=>{const[xt,ut]=(0,b.useState)(!1),Kt=(vt,wt)=>{const Ae=wt.line;let dt=0;for(let ct=0;ct{const on=vt.getRange(wt.from,wt.to);let ct=0;if(wt.text.forEach(et=>{ct+=et.split(be).length-1}),wt.origin!=="setValue"){if(on&&on.indexOf(be)!==-1){const et=on.split(be).length-1,An=Kt(vt,wt.from);if(console.log(`\u5220\u9664${et}\u4E2A\uFF0C \u524D\u9762\u6709${An}\u4E2A\uFF0C\u65B0\u589E${ct}\u4E2A`),et>1){const ot=Array.from({length:et},(Bt,Ht)=>An+Ht);dt(ot)}else dt(An)}else if(ct>0){const et=Kt(vt,wt.from);console.log(`\u65B0\u589E${ct}\u4E2A\uFF0C\u4E4B\u524D\u6709${et}\u4E2A`),Ae(ct,et)}}},It=()=>{const vt=ye.getFieldValue(pt);ye.setFieldsValue({[pt]:vt.map((wt,Ae)=>Pe(fe({},wt),{position:Ae+1}))})},Zt=(0,b.useRef)(),Qe=(vt,wt)=>{for(let Ae=0;Ae{Oe.current(vt),It()},Gt=Ye.default.useWatch(pt,ye);return a.createElement("div",{className:le.Z.wrap},a.createElement("div",{className:le.Z.questionTitleEditorWrap},a.createElement(Ye.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},a.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:nt,showNullButton:!0,onCMBeforeChange:(vt,wt)=>{rn(vt,wt,Qe,Et)}}))),a.createElement(Ye.default.List,{name:pt,rules:[{validator(vt,wt){if(!(wt!=null&&wt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Ae of wt){const{answer_text:dt}=Ae||{};if(dt!=null&&dt.some(on=>(on==null?void 0:on.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(vt,{add:wt,remove:Ae},{errors:dt})=>(Zt.current=wt,Oe.current=Ae,a.createElement(a.Fragment,null,a.createElement(Ye.default.Item,{label:a.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(vt!=null&&vt.length)&&a.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),vt.map((on,ct)=>{var et=on,{key:An,name:ot}=et,Bt=Ue(et,["key","name"]),Ht,ht;return a.createElement("div",{style:{marginBottom:10},key:An},a.createElement(Be.Z,{className:"mb20",align:"middle",wrap:!1},a.createElement(Ie.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${le.Z.blankIndex}`},"\u586B\u7A7A\u9879",ct+1),a.createElement(Ye.default.Item,Pe(fe({},Bt),{name:[ot,"model"],noStyle:!0}),a.createElement(ke.ZP.Group,{onChange:()=>{const On=ye.getFieldValue(pt);ye.setFieldsValue({[pt]:On.map((Ot,Un)=>Pe(fe({},Ot),{answer_text:ot===Un?[""]:Ot.answer_text}))})}},a.createElement(ke.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",a.createElement(Ge.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},a.createElement(Ve.Z,null))),a.createElement(ke.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",a.createElement(Ge.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},a.createElement(Ve.Z,null)))))),a.createElement(Be.Z,{style:{marginLeft:20},align:"middle",wrap:!1},a.createElement(Ie.Z,{flex:1},a.createElement(Be.Z,{align:"top",justify:"space-between",wrap:!1},a.createElement(Ie.Z,{flex:1},a.createElement(Ye.default.Item,Pe(fe({},Bt),{name:[ot,"answer_text"],noStyle:!0}),((ht=(Ht=ye.getFieldValue(pt))==null?void 0:Ht[ot])==null?void 0:ht.model)===1?a.createElement(Me,null):a.createElement(lt,null))),gt&&a.createElement(Ie.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},a.createElement(Ye.default.Item,Pe(fe({},Bt),{name:[ot,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:le.Z.blankInputNumberWrapper}),a.createElement(De.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),a.createElement(Ye.default.Item,Pe(fe({},Bt),{name:[ot,"position"],noStyle:!0}),a.createElement(Ce.default,{type:"hidden"})))))})))),a.createElement(Be.Z,{align:"middle"},a.createElement(Ye.default.Item,{name:"downcase",valuePropName:"checked"},a.createElement(Fe.Z,null)),a.createElement(Ie.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),a.createElement(Be.Z,{align:"middle"},a.createElement(Ye.default.Item,{name:"no_space",valuePropName:"checked"},a.createElement(Fe.Z,null)),a.createElement(Ie.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Gt==null?void 0:Gt.length)>1&&a.createElement(Be.Z,{align:"middle",className:(Gt==null?void 0:Gt.length)>1?"mb30":`${le.Z.hide}`},a.createElement(Ye.default.Item,{name:"is_ordered"},a.createElement(Le,null)),a.createElement(Ie.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),a.createElement("div",{onClick:()=>ut(!0)},a.createElement(Ye.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},a.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:xt}))))}},85881:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return ne}});var b=oe(59301),he=oe(95237),Be=oe(43604),Ie=oe(78241),Ce=oe(63581),Ge=oe(27804),Fe=oe(59301),Ye=Object.defineProperty,ke=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,le=(re,ie,ge)=>ie in re?Ye(re,ie,{enumerable:!0,configurable:!0,writable:!0,value:ge}):re[ie]=ge,E=(re,ie)=>{for(var ge in ie||(ie={}))We.call(ie,ge)&&le(re,ge,ie[ge]);if(Te)for(var ge of Te(ie))Ve.call(ie,ge)&&le(re,ge,ie[ge]);return re},a=(re,ie)=>ke(re,De(ie)),x=(re,ie)=>{var ge={};for(var fe in re)We.call(re,fe)&&ie.indexOf(fe)<0&&(ge[fe]=re[fe]);if(re!=null&&Te)for(var fe of Te(re))ie.indexOf(fe)<0&&Ve.call(re,fe)&&(ge[fe]=re[fe]);return ge};const y={\u6B63\u786E:"T",\u9519\u8BEF:"F"},z=({value:re,onChange:ie,form:ge})=>{const fe=(re==null?void 0:re.is_answer)===1,Pe=re==null?void 0:re.choice_text,Ue=()=>{const Me=ge.getFieldsValue().choices.map(lt=>({choice_text:lt.choice_text,is_answer:0}));ge.setFieldsValue({choices:Me}),ie(a(E({},re),{is_answer:1}))};return Fe.createElement(he.Z,{className:Ce.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},Fe.createElement(Be.Z,{onClick:Ue,className:`${Ce.Z.choiceIndex} ${Ce.Z.judgementIndex} ${fe?Ce.Z.activeAnswer:""}`},y[Pe]),Fe.createElement(Be.Z,{flex:1,className:`${Ce.Z.editorWrap} ml15`},Fe.createElement("div",{className:`${Ce.Z.inputBorder} ${Ce.Z.placeholder} ${fe?Ce.Z.activeJudgementAnswer:""}`},Pe)),Fe.createElement(Be.Z,{flex:"0 0 auto",className:"ml15"},Fe.createElement("div",{onClick:Ue,className:`${Ce.Z.setAnswerBtn} ${fe?Ce.Z.activeAnswer:""}`},fe?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ne=({questionTitlePlaceholder:re,choiceKey:ie,form:ge})=>{const[fe,Pe]=(0,b.useState)(!1);return Fe.createElement("div",{className:Ce.Z.wrap},Fe.createElement("div",{className:Ce.Z.questionTitleEditorWrap},Fe.createElement(Ie.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Fe.createElement(Ge.h,{scrollId:"name",watch:!0,height:140,placeholder:re}))),Fe.createElement(Ie.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Fe.createElement(Ie.default.List,{name:"choices",rules:[{validator(Ue,Me){return Me.some(Le=>(Le==null?void 0:Le.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Ue=>Fe.createElement("div",{id:"choices"},Ue.map(Me=>{var lt=Me,{key:Le,name:be}=lt,Xe=x(lt,["key","name"]);return Fe.createElement(Ie.default.Item,a(E({},Xe),{key:Le,name:be,noStyle:!0}),Fe.createElement(z,{form:ge}))})))),Fe.createElement("div",{onClick:()=>Pe(!0)},Fe.createElement(Ie.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Fe.createElement(Ge.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:fe}))))}},27804:function(_e,Ct,oe){"use strict";oe.d(Ct,{h:function(){return E},x:function(){return a}});var b=oe(30720),he=oe(63581),Be=oe(8658),Ie=oe(59301),Ce=Object.defineProperty,Ge=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,Te=(x,y,z)=>y in x?Ce(x,y,{enumerable:!0,configurable:!0,writable:!0,value:z}):x[y]=z,We=(x,y)=>{for(var z in y||(y={}))ke.call(y,z)&&Te(x,z,y[z]);if(Ye)for(var z of Ye(y))De.call(y,z)&&Te(x,z,y[z]);return x},Ve=(x,y)=>Ge(x,Fe(y)),le=(x,y)=>{var z={};for(var ne in x)ke.call(x,ne)&&y.indexOf(ne)<0&&(z[ne]=x[ne]);if(x!=null&&Ye)for(var ne of Ye(x))y.indexOf(ne)<0&&De.call(x,ne)&&(z[ne]=x[ne]);return z};const E=x=>{var y=x,{value:z,onChange:ne,scrollId:re}=y,ie=le(y,["value","onChange","scrollId"]);return Ie.createElement("div",{id:re||""},Ie.createElement(b.Z,Ve(We({},ie),{defaultValue:z,onChange:(ge,fe)=>{fe!=null&&fe.length?ne(ge,fe):ne(ge)}})))},a=({value:x,onChange:y,placeholder:z,height:ne=140,isEdit:re,miniToolbar:ie,watch:ge=!0})=>re?Ie.createElement(b.Z,{watch:ge,isFocus:!0,height:ne||void 0,placeholder:z,defaultValue:x,onChange:y,miniToolbar:ie}):Ie.createElement("div",{style:{cursor:"pointer"}},x?Ie.createElement(Be.Z,{className:he.Z.inputBorder,value:x}):Ie.createElement("div",{className:`${he.Z.inputBorder} ${he.Z.placeholder} inputBorderError`},z))},2078:function(_e,Ct,oe){"use strict";oe.d(Ct,{W:function(){return lt}});var b=oe(59301),he=oe(8591),Be=oe(12563),Ie=oe(78241),Ce=oe(78673),Ge=oe(95237),Fe=oe(43604),Ye=oe(6848),ke=oe(92832),De=oe(5871),Te=oe(63581),We=oe(27804),Ve=oe(30720),le=oe(61485),E=Object.defineProperty,a=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,re=(Le,be,Xe)=>be in Le?E(Le,be,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Le[be]=Xe,ie=(Le,be)=>{for(var Xe in be||(be={}))z.call(be,Xe)&&re(Le,Xe,be[Xe]);if(y)for(var Xe of y(be))ne.call(be,Xe)&&re(Le,Xe,be[Xe]);return Le},ge=(Le,be)=>a(Le,x(be)),fe=(Le,be)=>{var Xe={};for(var nt in Le)z.call(Le,nt)&&be.indexOf(nt)<0&&(Xe[nt]=Le[nt]);if(Le!=null&&y)for(var nt of y(Le))be.indexOf(nt)<0&&ne.call(Le,nt)&&(Xe[nt]=Le[nt]);return Xe};const Pe=Le=>{var be=Le,{value:Xe,onChange:nt}=be,ye=fe(be,["value","onChange"]);const gt=pt=>{nt([pt])};return b.createElement(Ve.Z,ge(ie({},ye),{defaultValue:Xe==null?void 0:Xe[0],onChange:gt}))},Ue=Le=>{if(!Le)return!1;if(/^s*$/.test(Le)||Le.trim()===""){he.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let be=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Le==="|"?(he.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Me=({value:Le=[],onClose:be})=>b.createElement(Be.default,{closable:!0,onClose:be,className:Te.Z.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Le.join(" \u6216 "))),lt=({questionTitlePlaceholder:Le,form:be,showKeywords:Xe,isMustKeyWords:nt=Xe})=>{const[ye,gt]=(0,b.useState)(!1),[pt,xt]=(0,b.useState)(""),ut=Ie.default.useWatch("use_keywords",be),Kt=Ie.default.useWatch("question_score",be);return b.createElement("div",{className:Te.Z.wrap},b.createElement("div",{className:Te.Z.questionTitleEditorWrap},b.createElement(Ie.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},b.createElement(We.h,{scrollId:"name",watch:!0,height:140,placeholder:Le}))),b.createElement(Ie.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},b.createElement(Pe,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Xe&&!nt&&b.createElement(Ie.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},b.createElement(Ce.Z,{defaultChecked:!0})),Xe&&nt&&b.createElement(Ge.Z,{align:"middle",className:"mb30"},b.createElement(Ie.default.Item,{name:"use_keywords",valuePropName:"checked"},b.createElement(Ce.Z,null)),b.createElement(Fe.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(Fe.Z,null,b.createElement(Ye.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(le.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(ut||!nt)&&b.createElement(Ie.default.List,{name:"keywords",rules:[{validator(rn,It){return nt?It!=null&&It.length?(It==null?void 0:It.reduce((Qe,Oe)=>Qe+Oe.score,0))>parseFloat(Kt)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(rn,{add:It,remove:Zt})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${Te.Z.title} mb10`},nt?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(Ge.Z,{align:"middle",className:"font14 mb30"},b.createElement(Fe.Z,{flex:1},b.createElement(ke.default,{value:pt,onChange:Qe=>{xt(Qe.target.value)},maxLength:50,allowClear:!0,onPressEnter:Qe=>{var Oe,Et,Gt,vt;const wt=`${(Oe=Qe.target)==null?void 0:Oe.value}`,Ae=(Gt=(Et=wt==null?void 0:wt.split("|"))==null?void 0:Et.filter(ct=>!!ct))==null?void 0:Gt.map(ct=>ct==null?void 0:ct.trim()),dt=be.getFieldValue("keywords"),on=((vt=dt==null?void 0:dt.map(ct=>ct==null?void 0:ct.keyword))==null?void 0:vt.flat())||[];for(const ct of Ae)if(on.includes(ct)){he.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Ue(wt)&&(It({keyword:Ae,score:1}),xt(""))},className:Te.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(Fe.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),rn.map(Qe=>{var Oe=Qe,{key:Et,name:Gt}=Oe,vt=fe(Oe,["key","name"]);return b.createElement(Ge.Z,{key:Et,className:"mb20",style:{marginRight:148}},b.createElement(Fe.Z,{flex:1},b.createElement(Ge.Z,{align:"middle",justify:"space-between"},b.createElement(Ie.default.Item,ge(ie({},vt),{name:[Gt,"keyword"]}),b.createElement(Me,{onClose:()=>Zt(Gt)})),nt&&b.createElement(Ie.default.Item,ge(ie({},vt),{name:[Gt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Te.Z.blankInputNumberWrapper}),b.createElement(De.Z,{className:Te.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>gt(!0)},b.createElement(Ie.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(We.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ye}))))}},24136:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return Ce}});var b={text:"text___bQulM",sup:"sup___rX_Y3"},he=oe(78241),Be=oe(59301),Ce=({text:Ge,name:Fe="question_score"})=>{const Ye=({value:ke})=>Be.createElement("div",{className:b.text},Be.createElement("span",{className:b.sup},"*"),Be.createElement("span",{className:"mr10"},"\u5206\u503C"),Be.createElement("span",null,ke||"--"),Be.createElement("span",{className:"c-grey-999"},Ge));return Be.createElement(he.default.Item,{noStyle:!0,name:Fe},Be.createElement(Ye,null))}},62319:function(_e,Ct,oe){"use strict";oe.d(Ct,{h:function(){return re}});var b=oe(59301),he=oe(57809),Be=oe(78241),Ie=oe(3113),Ce=oe(89780),Ge=oe.n(Ce),Fe=oe(76809),Ye=oe(17022),ke=Object.defineProperty,De=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,E=(ie,ge,fe)=>ge in ie?ke(ie,ge,{enumerable:!0,configurable:!0,writable:!0,value:fe}):ie[ge]=fe,a=(ie,ge)=>{for(var fe in ge||(ge={}))Ve.call(ge,fe)&&E(ie,fe,ge[fe]);if(We)for(var fe of We(ge))le.call(ge,fe)&&E(ie,fe,ge[fe]);return ie},x=(ie,ge)=>De(ie,Te(ge));const y=he.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},ne={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"]};Ct.Z=({callback:ie,onCancel:ge})=>{const[fe,Pe]=(0,b.useState)("python");function Ue(lt){Pe(ne[lt][1])}function Me(lt){ie(lt)}return b.createElement(Be.default,x(a({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Me,style:{width:500}}),b.createElement(Be.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.createElement(he.default,{getPopupContainer:lt=>lt.parentNode,onChange:Ue},Object.keys(ne).map(lt=>b.createElement(y,{key:lt,value:lt},ne[lt][0])))),b.createElement(Be.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},b.createElement(re,{mode:fe})),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Ie.ZP,{type:"ghost",onClick:ge},"\u53D6\u6D88")))};function re({value:ie,onChange:ge,mode:fe,options:Pe={}}){const Ue=(0,b.useRef)(),[Me,lt]=(0,b.useState)();return(0,b.useEffect)(()=>{if(Me){let Le=function(be){const Xe=be.getValue();ge&&ge(Xe)};return Me.on("change",Le),()=>{Me.off("change",Le)}}},[Me,ge]),(0,b.useEffect)(()=>{Me&&Me.setOption("mode",fe)},[Me,fe]),(0,b.useEffect)(()=>{Me&&(ie!==Me.getValue()||ie==="")&&setTimeout(()=>{Me.setValue(ie||"")},300)},[Me,ie]),(0,b.useEffect)(()=>{if(Ue.current&&!Me){const Le=Ge().fromTextArea(Ue.current,a({mode:fe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Pe));lt(Le)}},[Ue.current,Me]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:Ue}))}},30720:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return hn}});var b=oe(59301),he=oe(89780),Be=oe.n(he),Ie=oe(76374),Ce=oe(76809),Ge=oe(6313),Fe=oe(25717),Ye=oe(99498),ke=oe(25419),De=oe(67549),Te=oe(8658),We=({value:je="",className:Ke,showTextOnly:He,showLines:Mt,style:un={}})=>{const sn=(0,b.useMemo)(()=>"",[je]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:sn}}))},Ve=oe(59301),le=Object.defineProperty,E=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ne=(je,Ke,He)=>Ke in je?le(je,Ke,{enumerable:!0,configurable:!0,writable:!0,value:He}):je[Ke]=He,re=(je,Ke)=>{for(var He in Ke||(Ke={}))y.call(Ke,He)&&ne(je,He,Ke[He]);if(x)for(var He of x(Ke))z.call(Ke,He)&&ne(je,He,Ke[He]);return je},ie=(je,Ke)=>E(je,a(Ke));let ge=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function fe({onActionCallback:je,title:Ke,icon:He,actionName:Mt,className:un="",children:sn}){function Xn(){je(Mt)}return Ve.createElement("a",{title:Ke,className:un,onClick:Xn},Ve.createElement("i",{className:`${He}`}),sn)}var Pe=({watch:je,showNullButton:Ke,showNullProgramButton:He,onActionCallback:Mt,fullScreen:un,insertTemp:sn,hidetoolBar:Xn,extraUse:Qn})=>{const gn=[...ge,{title:`${je?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${je?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ve.createElement("ul",{className:"markdown-toolbar-container"},!Xn&&gn.map((Yn,ha)=>Ve.createElement("li",{key:ha},Yn.actionName?Ve.createElement(fe,ie(re({},Yn),{onActionCallback:Mt})):Ve.createElement("span",{className:"v-line"}))),Ke?Ve.createElement("li",null,Ve.createElement(fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Mt},Ve.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,He?Ve.createElement(Ve.Fragment,null,Ve.createElement("li",null,Ve.createElement(fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Mt},Ve.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ve.createElement("li",null,Ve.createElement(fe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Mt},Ve.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,sn&&Ve.createElement("li",null,Ve.createElement(fe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${sn}`,onActionCallback:Mt},Ve.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Qn&&Ve.createElement("li",null,Qn),Ve.createElement("li",{className:"btn-full-screen"},Ve.createElement(fe,{icon:`${un?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:un?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Mt})))},Ue=oe(61569),Me=oe(78241),lt=oe(92832),Le=oe(3113),be=Object.defineProperty,Xe=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,xt=(je,Ke,He)=>Ke in je?be(je,Ke,{enumerable:!0,configurable:!0,writable:!0,value:He}):je[Ke]=He,ut=(je,Ke)=>{for(var He in Ke||(Ke={}))gt.call(Ke,He)&&xt(je,He,Ke[He]);if(ye)for(var He of ye(Ke))pt.call(Ke,He)&&xt(je,He,Ke[He]);return je},Kt=(je,Ke)=>Xe(je,nt(Ke));const rn={labelCol:{span:4},wrapperCol:{span:20}};var It=({callback:je,onCancel:Ke})=>{function He(Mt){je(Mt)}return b.createElement(Me.default,Kt(ut({},rn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:He,style:{width:500}}),b.createElement(Me.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(lt.default,null)),b.createElement(Me.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(lt.default,null)),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Le.ZP,{type:"ghost",onClick:Ke},"\u53D6\u6D88")))},Zt=oe(62319),Qe=oe(52999),Oe=oe(43418),Et=oe(95237),Gt=oe(2781),vt=oe(59301),wt=({callback:je,onCancel:Ke})=>{const He=document.createElement("canvas"),Mt=He.getContext("2d");He.width=1e3,He.height=800,Mt.fillStyle="#ffffff",Mt.fillRect(0,0,He.width,He.height);const un=He.toDataURL("image/png");return vt.createElement(Oe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},vt.createElement(Et.Z,{style:{height:"100vh"}},vt.createElement(Gt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:un,visible:!0,title:String(Date.now())},onOk:sn=>{je({src:sn.url})},onClose:Ke})))},Ae=oe(12378);function dt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(dt,go.CommandHandler),dt.prototype.canAlignSelection=function(){var je=this.diagram;return!(je===null||je.isReadOnly||je.isModelReadOnly||je.selection.count<2)},dt.prototype.alignLeft=function(){var je=this.diagram;je.startTransaction("aligning left");var Ke=1/0;je.selection.each(function(He){He instanceof go.Link||(Ke=Math.min(He.position.x,Ke))}),je.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(Ke,He.position.y))}),je.commitTransaction("aligning left")},dt.prototype.alignRight=function(){var je=this.diagram;je.startTransaction("aligning right");var Ke=-1/0;je.selection.each(function(He){if(!(He instanceof go.Link)){var Mt=He.actualBounds.x+He.actualBounds.width;Ke=Math.max(Mt,Ke)}}),je.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(Ke-He.actualBounds.width,He.position.y))}),je.commitTransaction("aligning right")},dt.prototype.alignTop=function(){var je=this.diagram;je.startTransaction("alignTop");var Ke=1/0;je.selection.each(function(He){He instanceof go.Link||(Ke=Math.min(He.position.y,Ke))}),je.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(He.position.x,Ke))}),je.commitTransaction("alignTop")},dt.prototype.alignBottom=function(){var je=this.diagram;je.startTransaction("aligning bottom");var Ke=-1/0;je.selection.each(function(He){if(!(He instanceof go.Link)){var Mt=He.actualBounds.y+He.actualBounds.height;Ke=Math.max(Mt,Ke)}}),je.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(He.actualBounds.x,Ke-He.actualBounds.height))}),je.commitTransaction("aligning bottom")},dt.prototype.alignCenterX=function(){var je=this.diagram,Ke=je.selection.first();if(Ke){je.startTransaction("aligning Center X");var He=Ke.actualBounds.x+Ke.actualBounds.width/2;je.selection.each(function(Mt){Mt instanceof go.Link||Mt.move(new go.Point(He-Mt.actualBounds.width/2,Mt.actualBounds.y))}),je.commitTransaction("aligning Center X")}},dt.prototype.alignCenterY=function(){var je=this.diagram,Ke=je.selection.first();if(Ke){je.startTransaction("aligning Center Y");var He=Ke.actualBounds.y+Ke.actualBounds.height/2;je.selection.each(function(Mt){Mt instanceof go.Link||Mt.move(new go.Point(Mt.actualBounds.x,He-Mt.actualBounds.height/2))}),je.commitTransaction("aligning Center Y")}},dt.prototype.alignColumn=function(je){var Ke=this.diagram;Ke.startTransaction("align Column"),je===void 0&&(je=0),je=parseFloat(je);var He=new Array;Ke.selection.each(function(Qn){Qn instanceof go.Link||He.push(Qn)});for(var Mt=0;Mt0){for(var Qn=sn.elt(Xn-1);Qn!==null&&Qn.isTreeExpanded&&!Qn.isTreeLeaf;){var gn=this._sortTreeChildrenByY(Qn);Qn=gn.last()}Qn!==null&&je.select(Qn)}else je.select(un)}}else if(He.key==="Down")if(Ke.isTreeExpanded&&!Ke.isTreeLeaf){var Mt=this._sortTreeChildrenByY(Ke).first();Mt!==null&&je.select(Mt)}else for(;Ke!==null;){var un=Ke.findTreeParentNode();if(un===null)break;var sn=this._sortTreeChildrenByY(un),Xn=sn.indexOf(Ke);if(Xnsn.y?1:un.xsn.x?1:0}),Ke},dt.prototype.copyToClipboard=function(je){go.CommandHandler.prototype.copyToClipboard.call(this,je),this._lastPasteOffset.set(this.pasteOffset)},dt.prototype.pasteFromClipboard=function(){var je=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(je,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),je},Object.defineProperty(dt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(je){if(je!=="move"&&je!=="select"&&je!=="scroll"&&je!=="tree"&&je!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+je);this._arrowKeyBehavior=je}}),Object.defineProperty(dt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(je){if(!(je instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+je);this._pasteOffset.set(je)}});var on=dt,ct=oe(4285),et=oe(43604),An=oe(64866),ot={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Bt=oe(59301),Ht=(je,Ke,He)=>new Promise((Mt,un)=>{var sn=gn=>{try{Qn(He.next(gn))}catch(Yn){un(Yn)}},Xn=gn=>{try{Qn(He.throw(gn))}catch(Yn){un(Yn)}},Qn=gn=>gn.done?Mt(gn.value):Promise.resolve(gn.value).then(sn,Xn);Qn((He=He.apply(je,Ke)).next())});function ht({onCancel:je,callback:Ke}){let He=(0,b.useRef)(),Mt=(0,b.useRef)(),un=(0,b.useRef)(),sn=(0,b.useRef)(!1);const Xn=(0,b.useRef)(!1),[Qn,gn]=(0,b.useState)(0);function Yn(){const zt=Ae.bx.make,_n={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};He.current=new Ae.S0(Mt.current,{padding:20,grid:zt(Ae.s_,"Grid",zt(Ae.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),zt(Ae.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Yt=>{var Cn=Yt.diagram.commandHandler.addTopLevelParts(Yt.diagram.selection,!0);Cn||Yt.diagram.currentTool.doCancel()},commandHandler:zt(on),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Yt=>{var Cn=Yt.subject;Cn.location=Cn.location.copy().snapToGridPoint(Yt.diagram.grid.gridOrigin,Yt.diagram.grid.gridCellSize),setTimeout(()=>{Yt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Yt=>{var Cn=Yt.subject;setTimeout(()=>{Yt.diagram.commandHandler.editTextBlock()})},LinkRelinked:Yt=>{var Cn=Yt.parameter.part;Cn.invalidateConnectedLinks();var ea=Yt.subject;Yt.diagram.toolManager.linkingTool.isForwards?ea.toNode.invalidateConnectedLinks():ea.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),He.current.nodeTemplate=zt(Ae.NB,"Auto",{locationSpot:Ae.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ae.$u(120,60),minSize:new Ae.$u(40,40),resizable:!0,resizeCellSize:new Ae.$u(10,10),rotatable:!0},new Ae.KX("location","loc",Ae.E9.parse).makeTwoWay(Ae.E9.stringify),new Ae.KX("desiredSize","size",Ae.$u.parse).makeTwoWay(Ae.$u.stringify),zt(Ae.bn,{name:"SHAPE",fill:_n.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ae.z6.AllSides,toSpot:Ae.z6.AllSides},new Ae.KX("figure"),new Ae.KX("fill"),new Ae.KX("stroke","borderColor"),new Ae.KX("strokeWidth","thickness"),new Ae.KX("strokeDashArray","dash")),zt(Ae.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),zt(Ae.al,{margin:1,textAlign:"center",overflow:Ae.al.OverflowEllipsis,editable:!0},new Ae.KX("text").makeTwoWay(),new Ae.KX("stroke","color"))),He.current.nodeTemplate.toolTip=zt("ToolTip",zt(Ae.s_,"Vertical",{maxSize:new Ae.$u(200,NaN)},zt(Ae.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ae.KX("text")),zt(Ae.al,{font:"10pt sans-serif",textAlign:"center"},new Ae.KX("text","details"))));function Je(Yt,Cn){var ea=(Pn,Ra)=>{Pn.handled=!0,Pn.diagram.model.commit(pa=>{var Va=Ra.part.adornedPart,ur=new Ae.E9().setRectSpot(Va.actualBounds,Yt);ur.subtract(Va.location),ur.scale(2,2),ur.x+=Math.sign(ur.x)*130,ur.y+=Math.sign(ur.y)*130,ur.add(Va.location),ur.snapToGridPoint(Pn.diagram.grid.gridOrigin,Pn.diagram.grid.gridCellSize);var Sr=pa.copyNodeData(Va.data);pa.setGroupKeyForNodeData(Sr,pa.getGroupKeyForNodeData(Va.data)),pa.addNodeData(Sr);var Nr={from:Va.key,to:pa.getKeyForNodeData(Sr)};pa.addLinkData(Nr);var pr=Pn.diagram.findNodeForData(Sr);pr.location=ur,Pn.diagram.select(pr),setTimeout(()=>{Pn.diagram.commandHandler.editTextBlock()},20)})};return zt(Ae.bn,{figure:Cn,alignment:Yt,alignmentFocus:Yt.opposite(),width:Yt.equals(Ae.z6.Top)||Yt.equals(Ae.z6.Bottom)?25:18,height:Yt.equals(Ae.z6.Top)||Yt.equals(Ae.z6.Bottom)?18:25,fill:"orange",stroke:_n.white,strokeWidth:4,mouseEnter:(Pn,Ra)=>Ra.fill="dodgerblue",mouseLeave:(Pn,Ra)=>Ra.fill="orange",isActionable:!0,click:ea,contextClick:ea})}function Qt(Yt){return zt(Ae.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Cn,ea)=>ea.fill="dodgerblue",mouseLeave:(Cn,ea)=>ea.fill="orange",click:(Cn,ea)=>{Cn.diagram.commandHandler.showContextMenu(ea.part.adornedPart)}},Yt||{})}He.current.nodeTemplate.selectionAdornmentTemplate=zt(Ae.uz,"Spot",zt(Ae.Vm,{padding:10}),Je(Ae.z6.Top,"TriangleUp"),Je(Ae.z6.Left,"TriangleLeft"),Je(Ae.z6.Right,"TriangleRight"),Je(Ae.z6.Bottom,"TriangleDown"),Qt({alignment:new Ae.z6(.75,0)}));function bn(Yt,Cn){return(ea,Pn)=>{ea.handled=!0,ea.diagram.model.commit(Ra=>{Ra.set(Pn.part.adornedPart.data,Yt,Cn)})}}function tt(Yt,Cn){return Cn||(Cn="color"),zt(Ae.bn,{width:16,height:16,stroke:"lightgray",fill:Yt,margin:1,background:"transparent",mouseEnter:(ea,Pn)=>Pn.stroke="dodgerblue",mouseLeave:(ea,Pn)=>Pn.stroke="lightgray",click:bn(Cn,Yt),contextClick:bn(Cn,Yt)})}function Jn(){return[zt("ContextMenuButton",zt(Ae.s_,"Horizontal",tt(_n.white,"fill"),tt(_n.beige,"fill"),tt(_n.extralightblue,"fill"),tt(_n.extralightred,"fill"))),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",tt(_n.lightgray,"fill"),tt(_n.lightgreen,"fill"),tt(_n.lightblue,"fill"),tt(_n.lightred,"fill")))]}function In(){return[zt("ContextMenuButton",zt(Ae.s_,"Horizontal",tt(_n.black),tt(_n.green),tt(_n.blue),tt(_n.red))),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",tt(_n.white),tt(_n.magenta),tt(_n.purple),tt(_n.orange)))]}function sa(Yt,Cn){return Cn||(Cn="thickness"),zt(Ae.bn,"LineH",{width:16,height:16,strokeWidth:Yt,margin:1,background:"transparent",mouseEnter:(ea,Pn)=>Pn.background="dodgerblue",mouseLeave:(ea,Pn)=>Pn.background="transparent",click:bn(Cn,Yt),contextClick:bn(Cn,Yt)})}function Zn(Yt,Cn){return Cn||(Cn="dash"),zt(Ae.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Yt,margin:1,background:"transparent",mouseEnter:(ea,Pn)=>Pn.background="dodgerblue",mouseLeave:(ea,Pn)=>Pn.background="transparent",click:bn(Cn,Yt),contextClick:bn(Cn,Yt)})}function za(){return[zt("ContextMenuButton",zt(Ae.s_,"Horizontal",sa(1),sa(2),sa(3),sa(4))),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",Zn(null),Zn([2,4]),Zn([4,4])))]}function la(Yt,Cn){return Cn||(Cn="figure"),zt(Ae.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Yt,margin:1,background:"transparent",mouseEnter:(ea,Pn)=>Pn.fill="dodgerblue",mouseLeave:(ea,Pn)=>Pn.fill="lightgray",click:bn(Cn,Yt),contextClick:bn(Cn,Yt)})}He.current.nodeTemplate.contextMenu=zt("ContextMenu",zt("ContextMenuButton",zt(Ae.s_,"Horizontal",la("Rectangle"),la("RoundedRectangle"),la("Ellipse"),la("Diamond"))),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",la("Parallelogram2"),la("ManualOperation"),la("Procedure"),la("Cylinder1"))),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",la("Terminator"),la("CreateRequest"),la("Document"),la("TriangleDown"))),Jn(),In(),za()),He.current.groupTemplate=zt(Ae.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ae.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Yt,Cn)=>{var ea=Cn.addMembers(Cn.diagram.selection,!0);ea||Cn.diagram.currentTool.doCancel()},avoidable:!1},new Ae.KX("location","loc",Ae.E9.parse).makeTwoWay(Ae.E9.stringify),zt(Ae.s_,"Auto",{name:"BODY"},zt(Ae.bn,{parameter1:10,fill:_n.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ae.z6.AllSides,toSpot:Ae.z6.AllSides},new Ae.KX("fill"),new Ae.KX("stroke","color"),new Ae.KX("strokeWidth","thickness"),new Ae.KX("strokeDashArray","dash")),zt(Ae.Vm,{background:"transparent",margin:20})),zt(Ae.al,{alignment:Ae.z6.Top,alignmentFocus:Ae.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ae.KX("text"),new Ae.KX("stroke","color"))),He.current.groupTemplate.selectionAdornmentTemplate=zt(Ae.uz,"Spot",zt(Ae.s_,"Auto",zt(Ae.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),zt(Ae.Vm,{margin:1.5})),Qt({alignment:Ae.z6.TopRight,alignmentFocus:Ae.z6.BottomRight})),He.current.groupTemplate.contextMenu=zt("ContextMenu",Jn(),In(),za()),He.current.linkTemplate=zt(Ae.rU,{layerName:"Foreground",routing:Ae.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ae.KX("fromSpot","fromSpot",Ae.z6.parse),new Ae.KX("toSpot","toSpot",Ae.z6.parse),new Ae.KX("fromShortLength","dir",Yt=>Yt>=1?10:0),new Ae.KX("toShortLength","dir",Yt=>Yt>=1?10:0),new Ae.KX("points").makeTwoWay(),zt(Ae.bn,{strokeWidth:2},new Ae.KX("stroke","color"),new Ae.KX("strokeWidth","thickness"),new Ae.KX("strokeDashArray","dash")),zt(Ae.bn,{segmentIndex:0,segmentOffset:new Ae.E9(15,0),segmentOrientation:Ae.rU.OrientAlong,alignmentFocus:Ae.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ae.KX("fill","color"),new Ae.KX("visible","dir",Yt=>Yt===1)),zt(Ae.bn,{segmentIndex:-1,segmentOffset:new Ae.E9(-10,6),segmentOrientation:Ae.rU.OrientPlus90,alignmentFocus:Ae.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ae.KX("fill","color"),new Ae.KX("visible","dir",Yt=>Yt>=1),new Ae.KX("width","thickness",Yt=>7+3*Yt),new Ae.KX("height","thickness",Yt=>7+3*Yt),new Ae.KX("segmentOffset","thickness",Yt=>new Ae.E9(-15,4+1.5*Yt))),zt(Ae.bn,{segmentIndex:0,segmentOffset:new Ae.E9(15,-6),segmentOrientation:Ae.rU.OrientMinus90,alignmentFocus:Ae.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ae.KX("fill","color"),new Ae.KX("visible","dir",Yt=>Yt===2),new Ae.KX("width","thickness",Yt=>7+3*Yt),new Ae.KX("height","thickness",Yt=>7+3*Yt),new Ae.KX("segmentOffset","thickness",Yt=>new Ae.E9(-15,4+1.5*Yt))),zt(Ae.al,{alignmentFocus:new Ae.z6(0,1,-4,0),editable:!0},new Ae.KX("text").makeTwoWay(),new Ae.KX("stroke","color"))),He.current.linkTemplate.selectionAdornmentTemplate=zt(Ae.uz,zt(Ae.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:_a(2)},new Ae.KX("pathPattern","thickness",_a)),Qt({alignmentFocus:new Ae.z6(0,0,-6,-4)}));function _a(Yt){return zt(Ae.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Yt+4).toString()+" H3"})}function $a(Yt){var Cn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Yt===0?Cn="M0 0 M16 16 M0 8 L16 8":Yt===2&&(Cn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),zt(Ae.bn,{geometryString:Cn,margin:2,background:"transparent",mouseEnter:(ea,Pn)=>Pn.background="dodgerblue",mouseLeave:(ea,Pn)=>Pn.background="transparent",click:bn("dir",Yt),contextClick:bn("dir",Yt)})}function sr(Yt){var Cn=(ea,Pn)=>{ea.handled=!0,ea.diagram.model.commit(Ra=>{var pa=Pn.part.adornedPart;Ra.set(pa.data,Yt?"toSpot":"fromSpot",Ae.z6.stringify(Ae.z6.AllSides)),(Yt?pa.toNode:pa.fromNode).invalidateConnectedLinks()})};return zt(Ae.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ea,Pn)=>Pn.background="dodgerblue",mouseLeave:(ea,Pn)=>Pn.background="transparent",click:Cn,contextClick:Cn})}function Tt(Yt,Cn){var ea=0,Pn=Ae.z6.RightSide;Yt.equals(Ae.z6.Top)?(ea=270,Pn=Ae.z6.TopSide):Yt.equals(Ae.z6.Left)?(ea=180,Pn=Ae.z6.LeftSide):Yt.equals(Ae.z6.Bottom)&&(ea=90,Pn=Ae.z6.BottomSide),Cn||(ea-=180);var Ra=(pa,Va)=>{pa.handled=!0,pa.diagram.model.commit(ur=>{var Sr=Va.part.adornedPart;ur.set(Sr.data,Cn?"toSpot":"fromSpot",Ae.z6.stringify(Pn)),(Cn?Sr.toNode:Sr.fromNode).invalidateConnectedLinks()})};return zt(Ae.bn,{alignment:Yt,alignmentFocus:Yt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ea,background:"transparent",mouseEnter:(pa,Va)=>Va.background="dodgerblue",mouseLeave:(pa,Va)=>Va.background="transparent",click:Ra,contextClick:Ra})}He.current.linkTemplate.contextMenu=zt("ContextMenu",In(),za(),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",$a(0),$a(1),$a(2))),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",zt(Ae.s_,"Spot",sr(!1),Tt(Ae.z6.Top,!1),Tt(Ae.z6.Left,!1),Tt(Ae.z6.Right,!1),Tt(Ae.z6.Bottom,!1)),zt(Ae.s_,"Spot",{margin:new Ae.Zt(0,0,0,2)},sr(!0),Tt(Ae.z6.Top,!0),Tt(Ae.z6.Left,!0),Tt(Ae.z6.Right,!0),Tt(Ae.z6.Bottom,!0)))));const Da=`{ "class": "GraphLinksModel", +\\end{array}`}]}]}],y=re=>{E.current.setValue(E.current.getValue()+" "+re.value+" ")},z=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ke.createElement(he.Z,{className:Fe.Z.lists,gutter:[10,10]},a.map((re,ie)=>ke.createElement(Be.Z,{flex:"110px",className:Fe.Z.item},ke.createElement("div",null,ke.createElement(Ge.Z,{value:`$$${re.value}$$`}),re.name),ke.createElement("div",{className:Fe.Z.children},re.children.map((ge,fe)=>ke.createElement("div",{key:fe},ke.createElement("h1",null,ge.name),ke.createElement(he.Z,{gutter:[10,10]},ge.data.map((Pe,Ue)=>ke.createElement(Be.Z,{key:Ue,onClick:()=>y(Pe),className:Fe.Z.diamond},ke.createElement(Ge.Z,{value:"`$$"+Pe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ke.createElement(he.Z,{className:Fe.Z.lists,gutter:[10,10]},x.map((re,ie)=>ke.createElement(Be.Z,{flex:"110px",className:Fe.Z.item},ke.createElement("div",null,ke.createElement(Ge.Z,{value:"`$$"+re.value+"$$`"}),re.name),ke.createElement("div",{className:Fe.Z.children},re.children.map((ge,fe)=>ke.createElement("div",{key:fe},ge.name&&ke.createElement("h1",null,ge.name),ke.createElement(he.Z,{gutter:[10,10]},ge.data.map((Pe,Ue)=>ke.createElement(Be.Z,{key:Ue,onClick:()=>y(Pe),className:Fe.Z.diamond},ke.createElement(Ge.Z,{value:"`$$"+Pe.value+"$$`"}))))))))))}],ne=()=>{var re=document.createElement("div");re.innerHTML=E.current.getValue();var ie=re.innerText;return Te&&Te(ie),ie};return(0,b.useImperativeHandle)(le,()=>({getData:ne})),ke.createElement("div",{className:Fe.Z.mathWrap},ke.createElement(Ie.default,{defaultActiveKey:"1",items:z}),ke.createElement("math-field",{locale:"zh_cn",className:Fe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:E,style:{width:800,marginTop:30,fontSize:18}},Ve||""),We&&ke.createElement("div",{className:Fe.Z.button},ke.createElement(be.ZP,{size:"large",onClick:ne,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});xt.Z=De},98280:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return We}});var b=oe(59301),he=oe(78241),Be=oe(43418),Ie=oe(92832),be=oe(87169),Ge=oe(64866),Fe={publicQuest:"publicQuest___iYvzo",publicQuestContent:"publicQuestContent___vgbKh",public_tips:"public_tips___UX0Dn",concat:"concat___wOfND"},Ye=oe(26692),ke=oe(59301),De=(Ve,le,E)=>new Promise((a,x)=>{var y=re=>{try{ne(E.next(re))}catch(ie){x(ie)}},z=re=>{try{ne(E.throw(re))}catch(ie){x(ie)}},ne=re=>re.done?a(re.value):Promise.resolve(re.value).then(y,z);ne((E=E.apply(Ve,le)).next())}),We=({type:Ve="subject",open:le,onCancel:E,onOkClick:a,subDisciplineId:x})=>{const[y]=he.default.useForm(),[z,ne]=(0,b.useState)([]),[re,ie]=(0,b.useState)(!1);(0,b.useEffect)(()=>{},[]);const ge=()=>De(void 0,null,function*(){if(Ve){const fe=yield(0,Ge.ZP)("/api/disciplines.json",{method:"get",params:{source:Ve}});ne(fe.disciplines||[])}});return ke.createElement(Be.default,{title:ke.createElement("div",{style:{fontWeight:"bold"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9"),open:le,width:558,centered:!0,className:Fe.publicQuest,onCancel:()=>{E(),y.resetFields()},onOk:()=>{y.validateFields().then(fe=>De(void 0,null,function*(){const Pe=yield(0,Ge.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:fe==null?void 0:fe.name,sub_discipline_id:x}});(Pe==null?void 0:Pe.status)===0&&a({name:fe==null?void 0:fe.name,id:Pe==null?void 0:Pe.tag_discipline_id,public:!1,type:"personal"}),y.resetFields(),E()}))}},ke.createElement("div",{className:Fe.publicQuestContent},ke.createElement("div",{className:Fe.public_tips},ke.createElement(be.Z,{style:{color:"#FF8C29",marginRight:10,paddingTop:5}}),"\u65B0\u5EFA\u7684\u77E5\u8BC6\u70B9\u4EC5\u672C\u4EBA\u53EF\u89C1\uFF0C\u5E73\u53F0\u5BA1\u6838\u5217\u5165\u516C\u5F00\u77E5\u8BC6\u70B9\u540E\uFF0C\u5BF9\u6240\u6709\u7528\u6237\u53EF\u89C1\u3002 \u5E73\u53F0\u6709\u6743\u5220\u9664\u4E0D\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF0C\u8BF7\u8BA4\u771F\u586B\u5199\u77E5\u8BC6\u70B9\u540D\u79F0\u3002"),ke.createElement(he.default,{labelAlign:"left",form:y,colon:!1},ke.createElement(he.default.Item,{label:"\u77E5\u8BC6\u70B9\u540D\u79F0",name:"name",rules:[{required:!0}]},ke.createElement(Ie.default,{showCount:!0,maxLength:20,placeholder:"\u8BF7\u8F93\u5165\u77E5\u8BC6\u70B9\u540D\u79F0"}))),ke.createElement(Ye.Z,{open:re,onCancel:()=>{ie(!1)}})))}},9683:function(_e,xt,oe){"use strict";oe.d(xt,{Q:function(){return ke},Z:function(){return Te}});var b=oe(59301),he={flex_box_center:"flex_box_center___VcCAZ",flex_space_between:"flex_space_between___I3jjO",flex_box_vertical_center:"flex_box_vertical_center___Rm_54",flex_box_center_end:"flex_box_center_end___nTsdc",flex_box_column:"flex_box_column___UVpzN",tags:"tags___kRRoe",text:"text___IyyEa",tagWrap:"tagWrap___v63mB",tag:"tag___X7wE6",c:"c___mZMPq",cpp:"cpp___eaTie",java:"java___gL98T",python:"python___eNRkk",edit:"edit___tbVu0"},Be=oe(92310),Ie=oe.n(Be),be=oe(43418),Ge=oe(8591),Fe=oe(24905),Ye=(We,Ve,le)=>new Promise((E,a)=>{var x=ne=>{try{z(le.next(ne))}catch(re){a(re)}},y=ne=>{try{z(le.throw(ne))}catch(re){a(re)}},z=ne=>ne.done?E(ne.value):Promise.resolve(ne.value).then(x,y);z((le=le.apply(We,Ve)).next())});const ke=({title:We="\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00",dataSource:Ve=[],visible:le,setVisible:E,tip:a,onOk:x})=>{const[y,z]=(0,b.useState)([]),[ne,re]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{le&&z(Ve)},[le]),b.createElement(be.default,{centered:!0,open:le,title:We,confirmLoading:ne,width:564,onOk:()=>Ye(void 0,null,function*(){if(!y.length){Ge.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}re(!0),yield x(y),re(!1)}),onCancel:()=>E(!1)},!!a&&b.createElement("div",{className:"c-grey-666 font16 mb10"},a),b.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},b.createElement(Fe.default.Group,{value:y,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:ie=>{z(ie)}})))};var Te=({title:We="\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00",className:Ve,style:le={},onEdit:E,dataSource:a=[]})=>{const x={C:b.createElement("div",{className:he.c},"C"),"C++":b.createElement("div",{className:he.cpp},"C++"),Java:b.createElement("div",{className:he.java},"Java"),Python:b.createElement("div",{className:he.python},"Python")};return b.createElement("div",{className:Ie()(he.tags,Ve),style:le},!!We&&b.createElement("div",{className:he.text},We),b.createElement("div",{className:he.tagWrap},a==null?void 0:a.map(y=>b.createElement(b.Fragment,{key:y},x[y]))),!!E&&b.createElement("div",{onClick:E,className:`iconfont icon-bianji_Hover ${he.edit}`}))}},13919:function(_e,xt,oe){"use strict";oe.d(xt,{t:function(){return An}});var b=oe(59301),he=oe(92832),Be=oe(78241),Ie=oe(43418),be=oe(95237),Ge=oe(43604),Fe=oe(5871),Ye=oe(57809),ke=oe(5112),De=oe(27804),Te=oe(90115),We=oe(63581),Ve=oe(8591),le=oe(3113),E=oe(71418),a=oe(24334),x={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},y=oe(64866),z=oe(25537),ne=oe(30720),re=oe(56102),ie=oe(48326),ge=oe(59301),fe=Object.defineProperty,Pe=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,Le=Object.prototype.propertyIsEnumerable,Ce=(ot,bt,Ht)=>bt in ot?fe(ot,bt,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):ot[bt]=Ht,Xe=(ot,bt)=>{for(var Ht in bt||(bt={}))lt.call(bt,Ht)&&Ce(ot,Ht,bt[Ht]);if(Me)for(var Ht of Me(bt))Le.call(bt,Ht)&&Ce(ot,Ht,bt[Ht]);return ot},nt=(ot,bt)=>Pe(ot,Ue(bt)),ye=(ot,bt,Ht)=>new Promise((ht,Mn)=>{var Ot=kn=>{try{bn(Ht.next(kn))}catch(qt){Mn(qt)}},Un=kn=>{try{bn(Ht.throw(kn))}catch(qt){Mn(qt)}},bn=kn=>kn.done?ht(kn.value):Promise.resolve(kn.value).then(Ot,Un);bn((Ht=Ht.apply(ot,bt)).next())}),pt=({buttonProps:ot,buttonText:bt,form:Ht,hackIdentifier:ht="",answerKey:Mn,data:Ot})=>{const[Un,bn]=(0,b.useState)(!1),[kn,qt]=(0,b.useState)(!1),[ma,zn]=(0,b.useState)(!1),[ba,ln]=(0,b.useState)({}),[cn,pn]=(0,b.useState)(""),[Oa,pa]=(0,b.useState)(""),wa=(0,b.useRef)(ht),_t=(0,b.useRef)(""),St=(0,b.useRef)(!1);(0,b.useEffect)(()=>{ma&&na()},[ma]),(0,b.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const fn=()=>new Date().getTime(),Fn=Ot==null?void 0:Ot.code,ya=()=>{var Wn,Ya;let Ma=Fn?Ot==null?void 0:Ot.code:(Wn=Ht.getFieldValue("hack_codes"))==null?void 0:Wn.code,Ja=Fn?Ot==null?void 0:Ot.answer_content:Ht.getFieldValue(Mn),Ar=Fn?Ot==null?void 0:Ot.input:(Ya=Ht.getFieldValue("hack_sets"))==null?void 0:Ya.input;Ja==null||Ja.forEach(At=>{const In=At.value||At.answer_text||"";Ma=Ma.replace(/(@▁@|@▁▁@)/,In)}),pa(Ar),pn(Ma),ln({}),zn(!0)},na=()=>ye(void 0,null,function*(){var Wn,Ya,Ma,Ja;const Ar=fn(),At=Fn?Ot==null?void 0:Ot.time_limit:(Wn=Ht.getFieldsValue())==null?void 0:Wn.hack.time_limit,In=Fn?(Ya=Ot==null?void 0:Ot.answer_content)==null?void 0:Ya.length:(Ja=(Ma=Ht.getFieldsValue())==null?void 0:Ma.standard_answers)==null?void 0:Ja.length;bn(!0),yield(0,z.bM)(_t.current,{test_hack_code:cn,test_input:Oa});function Rn(){return ye(this,null,function*(){const{status:wn,data:xe}=yield(0,z.rX)(_t.current,"submit"),Bt=fn()-Ar>(At+3)*1e3*In;if(St.current){if(Bt){Ve.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),bn(!1);return}if(wn===0){bn(!1),ln(nt(Xe({},xe),{showText:!0}));return}setTimeout(Rn,1e3)}})}Rn()}),Ka=()=>ye(void 0,null,function*(){var Wn,Ya,Ma,Ja,Ar,At,In;if(!Ot){try{yield Ht.validateFields()}catch(ft){(Ma=(Ya=(Wn=ft==null?void 0:ft.errorFields)==null?void 0:Wn[0])==null?void 0:Ya.name)!=null&&Ma.includes("standard_answers")?Ve.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ve.ZP.error(ft.errorFields[0].errors[0]),Ht.scrollToField(ft.errorFields[0].name,{behavior:"smooth",block:"center"});return}qt(!0);let wn="";const xe=Ht.getFieldsValue();wa.current?wn=yield(0,y.ZP)(`/api/problems/${wa.current}.json`,{method:"put",body:nt(Xe({},xe),{hack:nt(Xe({},xe==null?void 0:xe.hack),{sub_discipline_id:(In=(At=xe==null?void 0:xe.hack)==null?void 0:At.sub_discipline_id)==null?void 0:In[1],difficult:xe.difficulty,item_banks_group_id:xe.item_banks_group_id}),hack_codes:nt(Xe({},xe.hack_codes),{code:a.Base64.encode(xe.hack_codes.code)}),update_hack_sets:[Xe({},xe.hack_sets)],is_blank:!0})}):(wn=yield(0,y.ZP)("/api/problems.json",{method:"post",body:nt(Xe({},xe),{hack:nt(Xe({},xe==null?void 0:xe.hack),{sub_discipline_id:(Ar=(Ja=xe==null?void 0:xe.hack)==null?void 0:Ja.sub_discipline_id)==null?void 0:Ar[1],difficult:xe.difficulty,item_banks_group_id:xe.item_banks_group_id}),hack_codes:nt(Xe({},xe.hack_codes),{code:a.Base64.encode(xe.hack_codes.code)}),hack_sets:[Xe({},xe.hack_sets)],is_blank:!0})}),wa.current=wn==null?void 0:wn.identifier,sessionStorage.projectFill=wn==null?void 0:wn.identifier)}const Rn=yield(0,y.ZP)(`/api/problems/${wa.current}/start.json`,{method:"get"});if((Rn==null?void 0:Rn.status)===0){_t.current=Rn==null?void 0:Rn.identifier,St.current=!0,qt(!1),ya();return}qt(!1)}),aa=Wn=>{const{status:Ya,error_msg:Ma,execute_time:Ja,output:Ar,input:At,expected_output:In}=Wn;let Rn=null;switch(Ya){case ie.h.OK:Rn=ge.createElement(ge.Fragment,null,ge.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Ja/1e3,"\u79D2"),ge.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case ie.h.NOMATCH:Rn=ge.createElement(ge.Fragment,null,ge.createElement("div",null,"\u8F93\u5165\uFF1A"),ge.createElement("pre",{style:{fontFamily:"initial"}},At),ge.createElement("div",null,"\u8F93\u51FA\uFF1A"),ge.createElement("pre",{style:{fontFamily:"initial"}},Ar&&a.Base64.decode(Ar)),ge.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),ge.createElement("pre",{style:{fontFamily:"initial"}},In&&a.Base64.decode(In)));break;case ie.h.EXECUTEFAILURE:Rn=ge.createElement(ge.Fragment,null,ge.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ge.createElement("pre",null,At)),ge.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ge.createElement("pre",{className:"error"},a.Base64.decode(Ma)));break;case ie.h.COMPILEFAILURE:Rn=ge.createElement(ge.Fragment,null,ge.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ge.createElement("pre",null,At)),ge.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ge.createElement("pre",{className:"error"},a.Base64.decode(Ma)));break;case ie.h.PODFAILURE:Rn=ge.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case ie.h.TIMEOUT:Rn=ge.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return ge.createElement(ge.Fragment,null," ",Rn," ")};return ge.createElement("div",null,ge.createElement(le.ZP,nt(Xe({loading:kn},ot),{onClick:Ka}),bt),ge.createElement(Ie.default,{open:ma,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Un,cancelButtonProps:{style:{display:"none"}},onOk:()=>na(),onCancel:()=>{St.current=!1,zn(!1)}},ge.createElement("div",{className:x.result},ge.createElement("div",{className:x.left},ge.createElement("div",{className:"mb20"},ge.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!Ot&&ge.createElement(re.CopyToClipboard,{text:cn,onCopy:()=>Ve.ZP.success("\u590D\u5236\u6210\u529F")},ge.createElement("span",{style:{float:"right"},className:"current c-light-primary"},ge.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),ge.createElement(ne.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:cn,onChange:Wn=>pn(Wn)})),ge.createElement("div",{className:x.right},ge.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),ge.createElement("div",{className:x.box},ge.createElement("div",{className:x.li},ge.createElement(he.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Oa,onChange:Wn=>pa(Wn.target.value),bordered:!1,style:{height:180}}))),ge.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),ge.createElement("div",{className:x.box},ge.createElement(E.Z,{spinning:Un,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},ge.createElement("div",{className:x.li,style:{height:196,overflow:"auto",padding:10}},aa(ba))))))))},wt=oe(87169),ut=oe(59301),Kt=Object.defineProperty,rn=Object.defineProperties,It=Object.getOwnPropertyDescriptors,Zt=Object.getOwnPropertySymbols,Qe=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,Et=(ot,bt,Ht)=>bt in ot?Kt(ot,bt,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):ot[bt]=Ht,Gt=(ot,bt)=>{for(var Ht in bt||(bt={}))Qe.call(bt,Ht)&&Et(ot,Ht,bt[Ht]);if(Zt)for(var Ht of Zt(bt))Oe.call(bt,Ht)&&Et(ot,Ht,bt[Ht]);return ot},vt=(ot,bt)=>rn(ot,It(bt)),Dt=(ot,bt)=>{var Ht={};for(var ht in ot)Qe.call(ot,ht)&&bt.indexOf(ht)<0&&(Ht[ht]=ot[ht]);if(ot!=null&&Zt)for(var ht of Zt(ot))bt.indexOf(ht)<0&&Oe.call(ot,ht)&&(Ht[ht]=ot[ht]);return Ht};const{TextArea:Ae}=he.default,dt=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],on=({value:ot,onChange:bt})=>ut.createElement(Switch,{checked:ot,onChange:Ht=>{bt(Ht)}}),ct="@\u2581@",et="@\u2581\u2581@",An=({questionTitlePlaceholder:ot,form:bt,scoreByBlank:Ht=!1,hackidentifier:ht,answerKey:Mn})=>{const[Ot,Un]=(0,b.useState)(!1),[bn,kn]=(0,b.useState)(!1),ma=(0,Te.useParams)().type==="edit",zn=(_t,St)=>{const fn=St.line;let Fn=0;for(let na=0;na{const ya=_t.getRange(St.from,St.to);let na=0;if(St.text.forEach(Ka=>{na+=Ka.split(ct).length-1}),St.text.forEach(Ka=>{na+=Ka.split(et).length-1}),St.origin!=="setValue"){if(ya&&(ya.indexOf(ct)!==-1||ya.indexOf(et)!==-1)){const Ka=ya.split(ct).length-1+ya.split(et).length-1,aa=zn(_t,St.from);if(console.log(`\u5220\u9664${Ka}\u4E2A\uFF0C \u524D\u9762\u6709${aa}\u4E2A\uFF0C\u65B0\u589E${na}\u4E2A`),Ka>1){const Wn=Array.from({length:Ka},(Ya,Ma)=>aa+Ma);Fn(Wn)}else Fn(aa)}else if(na>0){const Ka=zn(_t,St.from);console.log(`\u65B0\u589E${na}\u4E2A\uFF0C\u4E4B\u524D\u6709${Ka}\u4E2A`),fn(na,Ka)}}},ln=()=>{const _t=bt.getFieldValue(Mn);bt.setFieldsValue({[Mn]:_t==null?void 0:_t.map((St,fn)=>vt(Gt({},St),{position:fn+1}))})},cn=(0,b.useRef)(),pn=(_t,St)=>{for(let fn=0;fn<_t;fn++)cn.current({position:null,answer_text:""},St+fn);ln()},Oa=(0,b.useRef)(),pa=_t=>{Oa.current(_t),ln()},wa=Be.default.useWatch(Mn,bt);return ut.createElement("div",{className:We.Z.wrap},ut.createElement(Be.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},ut.createElement(De.h,{scrollId:"name",watch:!0,height:140})),ut.createElement("div",{className:We.Z.questionTitleEditorWrap},ut.createElement(Be.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},ut.createElement(De.h,{scrollId:"name",watch:!0,height:400,hidetoolBar:!0,showNullProgramButton:!0,onChange:(_t,St)=>{const fn=bt.getFieldValue(Mn);console.log("--preAnswerData",fn,St),bt.setFieldsValue({[Mn]:fn==null?void 0:fn.map((Fn,ya)=>{var na;return vt(Gt({},Fn),{position:ya+1,multi_line:(na=St==null?void 0:St[ya])==null?void 0:na.multiLine})})})},placeholder:ot,onCMBeforeChange:(_t,St)=>{ba(_t,St,pn,pa)}}))),ut.createElement(Be.default.List,{name:Mn,rules:[{validator(_t,St){if(!(St!=null&&St.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const fn of St){const{answer_text:Fn}=fn||{};if((Fn==null?void 0:Fn.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(_t,{add:St,remove:fn},{errors:Fn})=>(cn.current=St,Oa.current=fn,ut.createElement(ut.Fragment,null,ut.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},ut.createElement(Be.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),ut.createElement("div",{onClick:()=>{Ie.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:ut.createElement("div",null,ut.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",ut.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),ut.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},ut.createElement(wt.Z,{style:{marginRight:3,color:"#3061D0"}}),ut.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),_t.map((ya,na)=>{var Ka=ya,{key:aa,name:Wn}=Ka,Ya=Dt(Ka,["key","name"]),Ma,Ja;return ut.createElement(be.Z,{className:"mb20",key:aa,align:"middle",wrap:!1},ut.createElement(Ge.Z,{flex:"0 0 auto",className:`${We.Z.blankIndex}`},"\u586B\u7A7A\u9879",na+1),ut.createElement(Ge.Z,{flex:1},ut.createElement(be.Z,{align:"top",justify:"space-between",wrap:!1},ut.createElement(Ge.Z,null,ut.createElement(Be.default.Item,vt(Gt({},Ya),{name:[Wn,"answer_text"],noStyle:!0}),(Ma=wa==null?void 0:wa[Wn])!=null&&Ma.multi_line||(Ja=wa==null?void 0:wa[Wn])!=null&&Ja.multiLine?ut.createElement(Ae,{spellCheck:!1,style:{marginLeft:10,width:550}}):ut.createElement(he.default,{style:{marginLeft:10,width:550},className:We.Z.blankInput,size:"large",maxLength:1e3,onBlur:Ar=>{}}))),Ht&&ut.createElement(Ge.Z,{flex:"224px"},ut.createElement(Be.default.Item,vt(Gt({},Ya),{name:[Wn,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),ut.createElement(Fe.Z,{size:"large",className:We.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),ut.createElement("div",{onClick:()=>Un(!0)},ut.createElement(Be.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ut.createElement(De.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ot}))),ut.createElement(Be.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},ut.createElement(Ye.default,{size:"large"},dt.map(_t=>ut.createElement(Ye.default.Option,{key:_t.title,value:_t.key}," ",_t.title)))),ut.createElement(Be.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},ut.createElement(Be.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},ut.createElement(Fe.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),ut.createElement("span",{className:"ml10 font14"},"\u79D2")),ut.createElement(Be.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},ut.createElement(ke.ZP.Group,{style:{marginTop:-10}},ut.createElement(ke.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),ut.createElement(ke.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),ut.createElement(ke.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),ut.createElement(Be.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),ut.createElement("div",{style:{background:"#F6F7F9",padding:15}},ut.createElement(Be.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},ut.createElement(Ae,{rows:4})),ut.createElement(Be.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:["hack_sets","output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},ut.createElement(Ae,{rows:4}))),ut.createElement(pt,{form:bt,answerKey:Mn,hackIdentifier:ht,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:ut.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},60569:function(_e,xt,oe){"use strict";oe.d(xt,{u:function(){return ge}});var b=oe(59301),he=oe(95237),Be=oe(43604),Ie=oe(6848),be=oe(78241),Ge=oe(63581),Fe=oe(32134),Ye=oe(12893),ke=oe(27804),De=oe(59301),Te=Object.defineProperty,We=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,le=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,x=(fe,Pe,Ue)=>Pe in fe?Te(fe,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):fe[Pe]=Ue,y=(fe,Pe)=>{for(var Ue in Pe||(Pe={}))E.call(Pe,Ue)&&x(fe,Ue,Pe[Ue]);if(le)for(var Ue of le(Pe))a.call(Pe,Ue)&&x(fe,Ue,Pe[Ue]);return fe},z=(fe,Pe)=>We(fe,Ve(Pe)),ne=(fe,Pe)=>{var Ue={};for(var Me in fe)E.call(fe,Me)&&Pe.indexOf(Me)<0&&(Ue[Me]=fe[Me]);if(fe!=null&&le)for(var Me of le(fe))Pe.indexOf(Me)<0&&a.call(fe,Me)&&(Ue[Me]=fe[Me]);return Ue};const re=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],ie=({value:fe,onChange:Pe,choiceTextKey:Ue,answerKey:Me,index:lt,isEdit:Le,setInputActive:Ce,form:Xe,choiceOptionsPath:nt,allowChangeMode:ye,showAddIcon:gt,addItem:pt,deleteItem:wt})=>{console.log(fe,"value");const ut=(fe==null?void 0:fe[Me])===1,Kt=()=>{const It=Xe.getFieldValue(nt);Xe.setFieldValue(nt,It.map(Zt=>z(y({},Zt),{[Me]:0})))},rn=()=>{ut?Pe(z(y({},fe),{[Me]:0})):(ye||Kt(),Pe(z(y({},fe),{[Me]:1})))};return De.createElement(he.Z,{className:Ge.Z.choiceWrap,align:"middle",wrap:!1},De.createElement(Be.Z,{onClick:rn,className:`${Ge.Z.choiceIndex} ${ut?Ge.Z.activeAnswer:""}`},re[lt]),De.createElement(Be.Z,{flex:1,className:`${Ge.Z.editorWrap} ml15`,onClick:Ce},De.createElement(ke.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Le,value:fe==null?void 0:fe[Ue],onChange:It=>{Pe(z(y({},fe),{[Ue]:It}))}})),De.createElement(Be.Z,{flex:"0 0 auto",className:"ml15"},De.createElement("div",{onClick:rn,className:`${Ge.Z.setAnswerBtn} ${ut?Ge.Z.activeAnswer:""}`},ut?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),De.createElement(Be.Z,{className:Ge.Z.actionWrapper},De.createElement(Ie.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},De.createElement(Fe.Z,{className:Ge.Z.addIcon,onClick:pt,style:{visibility:gt?"visible":"hidden"}})),De.createElement(Ie.Z,{title:"\u5220\u9664"},De.createElement(Ye.Z,{className:Ge.Z.deleteIcon,onClick:wt,style:{visibility:lt>1?"visible":"hidden"}}))))},ge=({questionTitlePlaceholder:fe,titleKey:Pe,choiceKey:Ue,analysisKey:Me,choiceTextKey:lt,answerKey:Le,choiceOptionsPath:Ce,allowChangeMode:Xe=!0,form:nt,showAnalysis:ye=!0})=>{const[gt,pt]=(0,b.useState)(),[wt,ut]=(0,b.useState)(!1);return De.createElement("div",{className:Ge.Z.wrap},De.createElement("div",{className:Ge.Z.questionTitleEditorWrap},De.createElement(be.default.Item,{label:"\u9898\u5E72",name:Pe,labelCol:{span:24},rules:[{required:!0}]},De.createElement(ke.h,{scrollId:Array.isArray(Pe)?Pe.join("_"):`${Pe}`,watch:!0,height:140,placeholder:fe}))),De.createElement(be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),De.createElement(be.default.List,{name:Ue,rules:[{validator(Kt,rn){const It=rn.some(Qe=>Qe[Le]===1),Zt=rn.findIndex(Qe=>{var Oe;return((Oe=Qe[lt])==null?void 0:Oe.length)<=0});return Zt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${re[Zt]}\u9009\u9879\u7684\u5185\u5BB9`)):It?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Kt,{add:rn,remove:It})=>De.createElement("div",{id:Array.isArray(Ce)?Ce.join("_"):`${Ce}`},Kt.map((Zt,Qe)=>{var Oe=Zt,{key:Et,name:Gt}=Oe,vt=ne(Oe,["key","name"]);const Dt=gt===Et,Ae=()=>{pt(Et)},dt=Qe<7&&Qe===Kt.length-1,on=()=>rn({[lt]:"",[Le]:0}),ct=()=>It(Gt);return De.createElement(be.default.Item,z(y({},vt),{key:Et,name:Gt,className:Ge.Z.choiceListWrap,rules:[{validator(et,An){return An!=null&&An.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${re[Qe]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),De.createElement(ie,{choiceTextKey:lt,answerKey:Le,index:Qe,isEdit:Dt,setInputActive:Ae,form:nt,choiceOptionsPath:Ce,allowChangeMode:Xe,showAddIcon:dt,addItem:on,deleteItem:ct}))}),Kt.length<8&&De.createElement("div",{className:`${Ge.Z.addBtn} mb30`,onClick:()=>rn({[lt]:"",[Le]:0})},"\u6DFB\u52A0\u9009\u9879"))),ye&&De.createElement("div",{onClick:()=>ut(!0)},De.createElement(be.default.Item,{name:Me,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},De.createElement(ke.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:wt}))))}},55862:function(_e,xt,oe){"use strict";oe.d(xt,{u:function(){return Xe}});var b=oe(59301),he=oe(43418),Be=oe(95237),Ie=oe(43604),be=oe(92832),Ge=oe(6848),Fe=oe(78673),Ye=oe(78241),ke=oe(5112),De=oe(5871),Te=oe(27804),We=oe(12893),Ve=oe(61485),le=oe(63581),E=oe(78926),a=oe(59301),x=Object.defineProperty,y=Object.defineProperties,z=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,ge=(nt,ye,gt)=>ye in nt?x(nt,ye,{enumerable:!0,configurable:!0,writable:!0,value:gt}):nt[ye]=gt,fe=(nt,ye)=>{for(var gt in ye||(ye={}))re.call(ye,gt)&&ge(nt,gt,ye[gt]);if(ne)for(var gt of ne(ye))ie.call(ye,gt)&&ge(nt,gt,ye[gt]);return nt},Pe=(nt,ye)=>y(nt,z(ye)),Ue=(nt,ye)=>{var gt={};for(var pt in nt)re.call(nt,pt)&&ye.indexOf(pt)<0&&(gt[pt]=nt[pt]);if(nt!=null&&ne)for(var pt of ne(nt))ye.indexOf(pt)<0&&ie.call(nt,pt)&&(gt[pt]=nt[pt]);return gt};const Me=({value:nt,onChange:ye})=>{const gt=wt=>{he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:le.Z.modal,onOk:()=>{const ut=[...nt];ut.splice(wt,1),ye(ut)}})},pt=()=>{const wt=[...nt];wt.push(""),ye(wt)};return a.createElement(Be.Z,{className:"ml20"},a.createElement(Ie.Z,{flex:1},nt==null?void 0:nt.map((wt,ut)=>a.createElement(Be.Z,{key:`${wt}_${ut}`,className:"mb20"},a.createElement(be.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:wt,autoSize:{maxRows:3},maxLength:1e3,onBlur:Kt=>{const rn=[...nt],It=Kt.target.value.trim();rn[ut]=It,ye(rn)}}),a.createElement(Ge.Z,{title:"\u5220\u9664"},a.createElement(We.Z,{className:le.Z.deleteIcon,style:{marginLeft:15,visibility:ut>0?"visible":"hidden"},onClick:()=>gt(ut)}))))),a.createElement(Ie.Z,null,a.createElement("div",{className:`${le.Z.addBtn}`,onClick:()=>{pt()}},"\u65B0\u589E\u7B54\u6848")))},lt=({value:nt,onChange:ye})=>{const gt=wt=>{he.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:le.Z.modal,onOk:()=>{const ut=[...nt];ut.splice(wt,1),ye(ut)}})},pt=()=>{const wt=[...nt];wt.push(""),ye(wt)};return a.createElement(Be.Z,{className:"ml20"},a.createElement(Ie.Z,{flex:1},nt==null?void 0:nt.map((wt,ut)=>a.createElement(Be.Z,{key:`${wt}_${ut}`,align:"middle",className:"mb20"},a.createElement(E.Z,{value:wt,style:{flex:1},onChange:Kt=>{const rn=[...nt];rn[ut]=Kt,ye(rn)}}),a.createElement(Ge.Z,{title:"\u5220\u9664"},a.createElement(We.Z,{className:le.Z.deleteIcon,style:{marginLeft:15,visibility:ut>0?"visible":"hidden"},onClick:()=>gt(ut)}))))),a.createElement(Ie.Z,null,a.createElement("div",{className:`${le.Z.addBtn}`,onClick:()=>{pt()}},"\u65B0\u589E\u7B54\u6848")))},Le=({value:nt=!0,onChange:ye})=>a.createElement(Fe.Z,{checked:!nt,onChange:gt=>{ye(!gt)}}),Ce="\u2581",Xe=({questionTitlePlaceholder:nt,form:ye,scoreByBlank:gt=!1,answerKey:pt})=>{const[wt,ut]=(0,b.useState)(!1),Kt=(vt,Dt)=>{const Ae=Dt.line;let dt=0;for(let ct=0;ct{const on=vt.getRange(Dt.from,Dt.to);let ct=0;if(Dt.text.forEach(et=>{ct+=et.split(Ce).length-1}),Dt.origin!=="setValue"){if(on&&on.indexOf(Ce)!==-1){const et=on.split(Ce).length-1,An=Kt(vt,Dt.from);if(console.log(`\u5220\u9664${et}\u4E2A\uFF0C \u524D\u9762\u6709${An}\u4E2A\uFF0C\u65B0\u589E${ct}\u4E2A`),et>1){const ot=Array.from({length:et},(bt,Ht)=>An+Ht);dt(ot)}else dt(An)}else if(ct>0){const et=Kt(vt,Dt.from);console.log(`\u65B0\u589E${ct}\u4E2A\uFF0C\u4E4B\u524D\u6709${et}\u4E2A`),Ae(ct,et)}}},It=()=>{const vt=ye.getFieldValue(pt);ye.setFieldsValue({[pt]:vt.map((Dt,Ae)=>Pe(fe({},Dt),{position:Ae+1}))})},Zt=(0,b.useRef)(),Qe=(vt,Dt)=>{for(let Ae=0;Ae{Oe.current(vt),It()},Gt=Ye.default.useWatch(pt,ye);return a.createElement("div",{className:le.Z.wrap},a.createElement("div",{className:le.Z.questionTitleEditorWrap},a.createElement(Ye.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},a.createElement(Te.h,{scrollId:"name",watch:!0,height:140,placeholder:nt,showNullButton:!0,onCMBeforeChange:(vt,Dt)=>{rn(vt,Dt,Qe,Et)}}))),a.createElement(Ye.default.List,{name:pt,rules:[{validator(vt,Dt){if(!(Dt!=null&&Dt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Ae of Dt){const{answer_text:dt}=Ae||{};if(dt!=null&&dt.some(on=>(on==null?void 0:on.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(vt,{add:Dt,remove:Ae},{errors:dt})=>(Zt.current=Dt,Oe.current=Ae,a.createElement(a.Fragment,null,a.createElement(Ye.default.Item,{label:a.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(vt!=null&&vt.length)&&a.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),vt.map((on,ct)=>{var et=on,{key:An,name:ot}=et,bt=Ue(et,["key","name"]),Ht,ht;return a.createElement("div",{style:{marginBottom:10},key:An},a.createElement(Be.Z,{className:"mb20",align:"middle",wrap:!1},a.createElement(Ie.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${le.Z.blankIndex}`},"\u586B\u7A7A\u9879",ct+1),a.createElement(Ye.default.Item,Pe(fe({},bt),{name:[ot,"model"],noStyle:!0}),a.createElement(ke.ZP.Group,{onChange:()=>{const Mn=ye.getFieldValue(pt);ye.setFieldsValue({[pt]:Mn.map((Ot,Un)=>Pe(fe({},Ot),{answer_text:ot===Un?[""]:Ot.answer_text}))})}},a.createElement(ke.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",a.createElement(Ge.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},a.createElement(Ve.Z,null))),a.createElement(ke.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",a.createElement(Ge.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},a.createElement(Ve.Z,null)))))),a.createElement(Be.Z,{style:{marginLeft:20},align:"middle",wrap:!1},a.createElement(Ie.Z,{flex:1},a.createElement(Be.Z,{align:"top",justify:"space-between",wrap:!1},a.createElement(Ie.Z,{flex:1},a.createElement(Ye.default.Item,Pe(fe({},bt),{name:[ot,"answer_text"],noStyle:!0}),((ht=(Ht=ye.getFieldValue(pt))==null?void 0:Ht[ot])==null?void 0:ht.model)===1?a.createElement(Me,null):a.createElement(lt,null))),gt&&a.createElement(Ie.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},a.createElement(Ye.default.Item,Pe(fe({},bt),{name:[ot,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:le.Z.blankInputNumberWrapper}),a.createElement(De.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),a.createElement(Ye.default.Item,Pe(fe({},bt),{name:[ot,"position"],noStyle:!0}),a.createElement(be.default,{type:"hidden"})))))})))),a.createElement(Be.Z,{align:"middle"},a.createElement(Ye.default.Item,{name:"downcase",valuePropName:"checked"},a.createElement(Fe.Z,null)),a.createElement(Ie.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),a.createElement(Be.Z,{align:"middle"},a.createElement(Ye.default.Item,{name:"no_space",valuePropName:"checked"},a.createElement(Fe.Z,null)),a.createElement(Ie.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Gt==null?void 0:Gt.length)>1&&a.createElement(Be.Z,{align:"middle",className:(Gt==null?void 0:Gt.length)>1?"mb30":`${le.Z.hide}`},a.createElement(Ye.default.Item,{name:"is_ordered"},a.createElement(Le,null)),a.createElement(Ie.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),a.createElement("div",{onClick:()=>ut(!0)},a.createElement(Ye.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},a.createElement(Te.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:wt}))))}},85881:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return ne}});var b=oe(59301),he=oe(95237),Be=oe(43604),Ie=oe(78241),be=oe(63581),Ge=oe(27804),Fe=oe(59301),Ye=Object.defineProperty,ke=Object.defineProperties,De=Object.getOwnPropertyDescriptors,Te=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,le=(re,ie,ge)=>ie in re?Ye(re,ie,{enumerable:!0,configurable:!0,writable:!0,value:ge}):re[ie]=ge,E=(re,ie)=>{for(var ge in ie||(ie={}))We.call(ie,ge)&&le(re,ge,ie[ge]);if(Te)for(var ge of Te(ie))Ve.call(ie,ge)&&le(re,ge,ie[ge]);return re},a=(re,ie)=>ke(re,De(ie)),x=(re,ie)=>{var ge={};for(var fe in re)We.call(re,fe)&&ie.indexOf(fe)<0&&(ge[fe]=re[fe]);if(re!=null&&Te)for(var fe of Te(re))ie.indexOf(fe)<0&&Ve.call(re,fe)&&(ge[fe]=re[fe]);return ge};const y={\u6B63\u786E:"T",\u9519\u8BEF:"F"},z=({value:re,onChange:ie,form:ge})=>{const fe=(re==null?void 0:re.is_answer)===1,Pe=re==null?void 0:re.choice_text,Ue=()=>{const Me=ge.getFieldsValue().choices.map(lt=>({choice_text:lt.choice_text,is_answer:0}));ge.setFieldsValue({choices:Me}),ie(a(E({},re),{is_answer:1}))};return Fe.createElement(he.Z,{className:be.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},Fe.createElement(Be.Z,{onClick:Ue,className:`${be.Z.choiceIndex} ${be.Z.judgementIndex} ${fe?be.Z.activeAnswer:""}`},y[Pe]),Fe.createElement(Be.Z,{flex:1,className:`${be.Z.editorWrap} ml15`},Fe.createElement("div",{className:`${be.Z.inputBorder} ${be.Z.placeholder} ${fe?be.Z.activeJudgementAnswer:""}`},Pe)),Fe.createElement(Be.Z,{flex:"0 0 auto",className:"ml15"},Fe.createElement("div",{onClick:Ue,className:`${be.Z.setAnswerBtn} ${fe?be.Z.activeAnswer:""}`},fe?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ne=({questionTitlePlaceholder:re,choiceKey:ie,form:ge})=>{const[fe,Pe]=(0,b.useState)(!1);return Fe.createElement("div",{className:be.Z.wrap},Fe.createElement("div",{className:be.Z.questionTitleEditorWrap},Fe.createElement(Ie.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Fe.createElement(Ge.h,{scrollId:"name",watch:!0,height:140,placeholder:re}))),Fe.createElement(Ie.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},Fe.createElement(Ie.default.List,{name:"choices",rules:[{validator(Ue,Me){return Me.some(Le=>(Le==null?void 0:Le.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Ue=>Fe.createElement("div",{id:"choices"},Ue.map(Me=>{var lt=Me,{key:Le,name:Ce}=lt,Xe=x(lt,["key","name"]);return Fe.createElement(Ie.default.Item,a(E({},Xe),{key:Le,name:Ce,noStyle:!0}),Fe.createElement(z,{form:ge}))})))),Fe.createElement("div",{onClick:()=>Pe(!0)},Fe.createElement(Ie.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Fe.createElement(Ge.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:fe}))))}},27804:function(_e,xt,oe){"use strict";oe.d(xt,{h:function(){return E},x:function(){return a}});var b=oe(30720),he=oe(63581),Be=oe(8658),Ie=oe(59301),be=Object.defineProperty,Ge=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,Te=(x,y,z)=>y in x?be(x,y,{enumerable:!0,configurable:!0,writable:!0,value:z}):x[y]=z,We=(x,y)=>{for(var z in y||(y={}))ke.call(y,z)&&Te(x,z,y[z]);if(Ye)for(var z of Ye(y))De.call(y,z)&&Te(x,z,y[z]);return x},Ve=(x,y)=>Ge(x,Fe(y)),le=(x,y)=>{var z={};for(var ne in x)ke.call(x,ne)&&y.indexOf(ne)<0&&(z[ne]=x[ne]);if(x!=null&&Ye)for(var ne of Ye(x))y.indexOf(ne)<0&&De.call(x,ne)&&(z[ne]=x[ne]);return z};const E=x=>{var y=x,{value:z,onChange:ne,scrollId:re}=y,ie=le(y,["value","onChange","scrollId"]);return Ie.createElement("div",{id:re||""},Ie.createElement(b.Z,Ve(We({},ie),{defaultValue:z,onChange:(ge,fe)=>{fe!=null&&fe.length?ne(ge,fe):ne(ge)}})))},a=({value:x,onChange:y,placeholder:z,height:ne=140,isEdit:re,miniToolbar:ie,watch:ge=!0})=>re?Ie.createElement(b.Z,{watch:ge,isFocus:!0,height:ne||void 0,placeholder:z,defaultValue:x,onChange:y,miniToolbar:ie}):Ie.createElement("div",{style:{cursor:"pointer"}},x?Ie.createElement(Be.Z,{className:he.Z.inputBorder,value:x}):Ie.createElement("div",{className:`${he.Z.inputBorder} ${he.Z.placeholder} inputBorderError`},z))},2078:function(_e,xt,oe){"use strict";oe.d(xt,{W:function(){return lt}});var b=oe(59301),he=oe(8591),Be=oe(12563),Ie=oe(78241),be=oe(78673),Ge=oe(95237),Fe=oe(43604),Ye=oe(6848),ke=oe(92832),De=oe(5871),Te=oe(63581),We=oe(27804),Ve=oe(30720),le=oe(61485),E=Object.defineProperty,a=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,re=(Le,Ce,Xe)=>Ce in Le?E(Le,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Le[Ce]=Xe,ie=(Le,Ce)=>{for(var Xe in Ce||(Ce={}))z.call(Ce,Xe)&&re(Le,Xe,Ce[Xe]);if(y)for(var Xe of y(Ce))ne.call(Ce,Xe)&&re(Le,Xe,Ce[Xe]);return Le},ge=(Le,Ce)=>a(Le,x(Ce)),fe=(Le,Ce)=>{var Xe={};for(var nt in Le)z.call(Le,nt)&&Ce.indexOf(nt)<0&&(Xe[nt]=Le[nt]);if(Le!=null&&y)for(var nt of y(Le))Ce.indexOf(nt)<0&&ne.call(Le,nt)&&(Xe[nt]=Le[nt]);return Xe};const Pe=Le=>{var Ce=Le,{value:Xe,onChange:nt}=Ce,ye=fe(Ce,["value","onChange"]);const gt=pt=>{nt([pt])};return b.createElement(Ve.Z,ge(ie({},ye),{defaultValue:Xe==null?void 0:Xe[0],onChange:gt}))},Ue=Le=>{if(!Le)return!1;if(/^s*$/.test(Le)||Le.trim()===""){he.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Ce=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Le==="|"?(he.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Me=({value:Le=[],onClose:Ce})=>b.createElement(Be.default,{closable:!0,onClose:Ce,className:Te.Z.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Le.join(" \u6216 "))),lt=({questionTitlePlaceholder:Le,form:Ce,showKeywords:Xe,isMustKeyWords:nt=Xe})=>{const[ye,gt]=(0,b.useState)(!1),[pt,wt]=(0,b.useState)(""),ut=Ie.default.useWatch("use_keywords",Ce),Kt=Ie.default.useWatch("question_score",Ce);return b.createElement("div",{className:Te.Z.wrap},b.createElement("div",{className:Te.Z.questionTitleEditorWrap},b.createElement(Ie.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},b.createElement(We.h,{scrollId:"name",watch:!0,height:140,placeholder:Le}))),b.createElement(Ie.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},b.createElement(Pe,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Xe&&!nt&&b.createElement(Ie.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},b.createElement(be.Z,{defaultChecked:!0})),Xe&&nt&&b.createElement(Ge.Z,{align:"middle",className:"mb30"},b.createElement(Ie.default.Item,{name:"use_keywords",valuePropName:"checked"},b.createElement(be.Z,null)),b.createElement(Fe.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(Fe.Z,null,b.createElement(Ye.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(le.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(ut||!nt)&&b.createElement(Ie.default.List,{name:"keywords",rules:[{validator(rn,It){return nt?It!=null&&It.length?(It==null?void 0:It.reduce((Qe,Oe)=>Qe+Oe.score,0))>parseFloat(Kt)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(rn,{add:It,remove:Zt})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${Te.Z.title} mb10`},nt?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(Ge.Z,{align:"middle",className:"font14 mb30"},b.createElement(Fe.Z,{flex:1},b.createElement(ke.default,{value:pt,onChange:Qe=>{wt(Qe.target.value)},maxLength:50,allowClear:!0,onPressEnter:Qe=>{var Oe,Et,Gt,vt;const Dt=`${(Oe=Qe.target)==null?void 0:Oe.value}`,Ae=(Gt=(Et=Dt==null?void 0:Dt.split("|"))==null?void 0:Et.filter(ct=>!!ct))==null?void 0:Gt.map(ct=>ct==null?void 0:ct.trim()),dt=Ce.getFieldValue("keywords"),on=((vt=dt==null?void 0:dt.map(ct=>ct==null?void 0:ct.keyword))==null?void 0:vt.flat())||[];for(const ct of Ae)if(on.includes(ct)){he.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Ue(Dt)&&(It({keyword:Ae,score:1}),wt(""))},className:Te.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(Fe.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),rn.map(Qe=>{var Oe=Qe,{key:Et,name:Gt}=Oe,vt=fe(Oe,["key","name"]);return b.createElement(Ge.Z,{key:Et,className:"mb20",style:{marginRight:148}},b.createElement(Fe.Z,{flex:1},b.createElement(Ge.Z,{align:"middle",justify:"space-between"},b.createElement(Ie.default.Item,ge(ie({},vt),{name:[Gt,"keyword"]}),b.createElement(Me,{onClose:()=>Zt(Gt)})),nt&&b.createElement(Ie.default.Item,ge(ie({},vt),{name:[Gt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Te.Z.blankInputNumberWrapper}),b.createElement(De.Z,{className:Te.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>gt(!0)},b.createElement(Ie.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(We.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ye}))))}},24136:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return be}});var b={text:"text___bQulM",sup:"sup___rX_Y3"},he=oe(78241),Be=oe(59301),be=({text:Ge,name:Fe="question_score"})=>{const Ye=({value:ke})=>Be.createElement("div",{className:b.text},Be.createElement("span",{className:b.sup},"*"),Be.createElement("span",{className:"mr10"},"\u5206\u503C"),Be.createElement("span",null,ke||"--"),Be.createElement("span",{className:"c-grey-999"},Ge));return Be.createElement(he.default.Item,{noStyle:!0,name:Fe},Be.createElement(Ye,null))}},62319:function(_e,xt,oe){"use strict";oe.d(xt,{h:function(){return re}});var b=oe(59301),he=oe(57809),Be=oe(78241),Ie=oe(3113),be=oe(89780),Ge=oe.n(be),Fe=oe(76809),Ye=oe(17022),ke=Object.defineProperty,De=Object.defineProperties,Te=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,E=(ie,ge,fe)=>ge in ie?ke(ie,ge,{enumerable:!0,configurable:!0,writable:!0,value:fe}):ie[ge]=fe,a=(ie,ge)=>{for(var fe in ge||(ge={}))Ve.call(ge,fe)&&E(ie,fe,ge[fe]);if(We)for(var fe of We(ge))le.call(ge,fe)&&E(ie,fe,ge[fe]);return ie},x=(ie,ge)=>De(ie,Te(ge));const y=he.default.Option,z={labelCol:{span:4},wrapperCol:{span:20}},ne={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"]};xt.Z=({callback:ie,onCancel:ge})=>{const[fe,Pe]=(0,b.useState)("python");function Ue(lt){Pe(ne[lt][1])}function Me(lt){ie(lt)}return b.createElement(Be.default,x(a({},z),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Me,style:{width:500}}),b.createElement(Be.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},b.createElement(he.default,{getPopupContainer:lt=>lt.parentNode,onChange:Ue},Object.keys(ne).map(lt=>b.createElement(y,{key:lt,value:lt},ne[lt][0])))),b.createElement(Be.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},b.createElement(re,{mode:fe})),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Ie.ZP,{type:"ghost",onClick:ge},"\u53D6\u6D88")))};function re({value:ie,onChange:ge,mode:fe,options:Pe={}}){const Ue=(0,b.useRef)(),[Me,lt]=(0,b.useState)();return(0,b.useEffect)(()=>{if(Me){let Le=function(Ce){const Xe=Ce.getValue();ge&&ge(Xe)};return Me.on("change",Le),()=>{Me.off("change",Le)}}},[Me,ge]),(0,b.useEffect)(()=>{Me&&Me.setOption("mode",fe)},[Me,fe]),(0,b.useEffect)(()=>{Me&&(ie!==Me.getValue()||ie==="")&&setTimeout(()=>{Me.setValue(ie||"")},300)},[Me,ie]),(0,b.useEffect)(()=>{if(Ue.current&&!Me){const Le=Ge().fromTextArea(Ue.current,a({mode:fe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Pe));lt(Le)}},[Ue.current,Me]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:Ue}))}},30720:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return hn}});var b=oe(59301),he=oe(89780),Be=oe.n(he),Ie=oe(76374),be=oe(76809),Ge=oe(6313),Fe=oe(25717),Ye=oe(99498),ke=oe(25419),De=oe(67549),Te=oe(8658),We=({value:je="",className:Ke,showTextOnly:He,showLines:Mt,style:un={}})=>{const sn=(0,b.useMemo)(()=>"",[je]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:sn}}))},Ve=oe(59301),le=Object.defineProperty,E=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ne=(je,Ke,He)=>Ke in je?le(je,Ke,{enumerable:!0,configurable:!0,writable:!0,value:He}):je[Ke]=He,re=(je,Ke)=>{for(var He in Ke||(Ke={}))y.call(Ke,He)&&ne(je,He,Ke[He]);if(x)for(var He of x(Ke))z.call(Ke,He)&&ne(je,He,Ke[He]);return je},ie=(je,Ke)=>E(je,a(Ke));let ge=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function fe({onActionCallback:je,title:Ke,icon:He,actionName:Mt,className:un="",children:sn}){function Xn(){je(Mt)}return Ve.createElement("a",{title:Ke,className:un,onClick:Xn},Ve.createElement("i",{className:`${He}`}),sn)}var Pe=({watch:je,showNullButton:Ke,showNullProgramButton:He,onActionCallback:Mt,fullScreen:un,insertTemp:sn,hidetoolBar:Xn,extraUse:Qn})=>{const gn=[...ge,{title:`${je?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${je?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ve.createElement("ul",{className:"markdown-toolbar-container"},!Xn&&gn.map((Yn,Pa)=>Ve.createElement("li",{key:Pa},Yn.actionName?Ve.createElement(fe,ie(re({},Yn),{onActionCallback:Mt})):Ve.createElement("span",{className:"v-line"}))),Ke?Ve.createElement("li",null,Ve.createElement(fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Mt},Ve.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,He?Ve.createElement(Ve.Fragment,null,Ve.createElement("li",null,Ve.createElement(fe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Mt},Ve.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ve.createElement("li",null,Ve.createElement(fe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Mt},Ve.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,sn&&Ve.createElement("li",null,Ve.createElement(fe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${sn}`,onActionCallback:Mt},Ve.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Qn&&Ve.createElement("li",null,Qn),Ve.createElement("li",{className:"btn-full-screen"},Ve.createElement(fe,{icon:`${un?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:un?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Mt})))},Ue=oe(61569),Me=oe(78241),lt=oe(92832),Le=oe(3113),Ce=Object.defineProperty,Xe=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,wt=(je,Ke,He)=>Ke in je?Ce(je,Ke,{enumerable:!0,configurable:!0,writable:!0,value:He}):je[Ke]=He,ut=(je,Ke)=>{for(var He in Ke||(Ke={}))gt.call(Ke,He)&&wt(je,He,Ke[He]);if(ye)for(var He of ye(Ke))pt.call(Ke,He)&&wt(je,He,Ke[He]);return je},Kt=(je,Ke)=>Xe(je,nt(Ke));const rn={labelCol:{span:4},wrapperCol:{span:20}};var It=({callback:je,onCancel:Ke})=>{function He(Mt){je(Mt)}return b.createElement(Me.default,Kt(ut({},rn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:He,style:{width:500}}),b.createElement(Me.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},b.createElement(lt.default,null)),b.createElement(Me.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},b.createElement(lt.default,null)),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Le.ZP,{type:"ghost",onClick:Ke},"\u53D6\u6D88")))},Zt=oe(62319),Qe=oe(52999),Oe=oe(43418),Et=oe(95237),Gt=oe(2781),vt=oe(59301),Dt=({callback:je,onCancel:Ke})=>{const He=document.createElement("canvas"),Mt=He.getContext("2d");He.width=1e3,He.height=800,Mt.fillStyle="#ffffff",Mt.fillRect(0,0,He.width,He.height);const un=He.toDataURL("image/png");return vt.createElement(Oe.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},vt.createElement(Et.Z,{style:{height:"100vh"}},vt.createElement(Gt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:un,visible:!0,title:String(Date.now())},onOk:sn=>{je({src:sn.url})},onClose:Ke})))},Ae=oe(12378);function dt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(dt,go.CommandHandler),dt.prototype.canAlignSelection=function(){var je=this.diagram;return!(je===null||je.isReadOnly||je.isModelReadOnly||je.selection.count<2)},dt.prototype.alignLeft=function(){var je=this.diagram;je.startTransaction("aligning left");var Ke=1/0;je.selection.each(function(He){He instanceof go.Link||(Ke=Math.min(He.position.x,Ke))}),je.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(Ke,He.position.y))}),je.commitTransaction("aligning left")},dt.prototype.alignRight=function(){var je=this.diagram;je.startTransaction("aligning right");var Ke=-1/0;je.selection.each(function(He){if(!(He instanceof go.Link)){var Mt=He.actualBounds.x+He.actualBounds.width;Ke=Math.max(Mt,Ke)}}),je.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(Ke-He.actualBounds.width,He.position.y))}),je.commitTransaction("aligning right")},dt.prototype.alignTop=function(){var je=this.diagram;je.startTransaction("alignTop");var Ke=1/0;je.selection.each(function(He){He instanceof go.Link||(Ke=Math.min(He.position.y,Ke))}),je.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(He.position.x,Ke))}),je.commitTransaction("alignTop")},dt.prototype.alignBottom=function(){var je=this.diagram;je.startTransaction("aligning bottom");var Ke=-1/0;je.selection.each(function(He){if(!(He instanceof go.Link)){var Mt=He.actualBounds.y+He.actualBounds.height;Ke=Math.max(Mt,Ke)}}),je.selection.each(function(He){He instanceof go.Link||He.move(new go.Point(He.actualBounds.x,Ke-He.actualBounds.height))}),je.commitTransaction("aligning bottom")},dt.prototype.alignCenterX=function(){var je=this.diagram,Ke=je.selection.first();if(Ke){je.startTransaction("aligning Center X");var He=Ke.actualBounds.x+Ke.actualBounds.width/2;je.selection.each(function(Mt){Mt instanceof go.Link||Mt.move(new go.Point(He-Mt.actualBounds.width/2,Mt.actualBounds.y))}),je.commitTransaction("aligning Center X")}},dt.prototype.alignCenterY=function(){var je=this.diagram,Ke=je.selection.first();if(Ke){je.startTransaction("aligning Center Y");var He=Ke.actualBounds.y+Ke.actualBounds.height/2;je.selection.each(function(Mt){Mt instanceof go.Link||Mt.move(new go.Point(Mt.actualBounds.x,He-Mt.actualBounds.height/2))}),je.commitTransaction("aligning Center Y")}},dt.prototype.alignColumn=function(je){var Ke=this.diagram;Ke.startTransaction("align Column"),je===void 0&&(je=0),je=parseFloat(je);var He=new Array;Ke.selection.each(function(Qn){Qn instanceof go.Link||He.push(Qn)});for(var Mt=0;Mt0){for(var Qn=sn.elt(Xn-1);Qn!==null&&Qn.isTreeExpanded&&!Qn.isTreeLeaf;){var gn=this._sortTreeChildrenByY(Qn);Qn=gn.last()}Qn!==null&&je.select(Qn)}else je.select(un)}}else if(He.key==="Down")if(Ke.isTreeExpanded&&!Ke.isTreeLeaf){var Mt=this._sortTreeChildrenByY(Ke).first();Mt!==null&&je.select(Mt)}else for(;Ke!==null;){var un=Ke.findTreeParentNode();if(un===null)break;var sn=this._sortTreeChildrenByY(un),Xn=sn.indexOf(Ke);if(Xnsn.y?1:un.xsn.x?1:0}),Ke},dt.prototype.copyToClipboard=function(je){go.CommandHandler.prototype.copyToClipboard.call(this,je),this._lastPasteOffset.set(this.pasteOffset)},dt.prototype.pasteFromClipboard=function(){var je=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(je,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),je},Object.defineProperty(dt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(je){if(je!=="move"&&je!=="select"&&je!=="scroll"&&je!=="tree"&&je!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+je);this._arrowKeyBehavior=je}}),Object.defineProperty(dt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(je){if(!(je instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+je);this._pasteOffset.set(je)}});var on=dt,ct=oe(4285),et=oe(43604),An=oe(64866),ot={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},bt=oe(59301),Ht=(je,Ke,He)=>new Promise((Mt,un)=>{var sn=gn=>{try{Qn(He.next(gn))}catch(Yn){un(Yn)}},Xn=gn=>{try{Qn(He.throw(gn))}catch(Yn){un(Yn)}},Qn=gn=>gn.done?Mt(gn.value):Promise.resolve(gn.value).then(sn,Xn);Qn((He=He.apply(je,Ke)).next())});function ht({onCancel:je,callback:Ke}){let He=(0,b.useRef)(),Mt=(0,b.useRef)(),un=(0,b.useRef)(),sn=(0,b.useRef)(!1);const Xn=(0,b.useRef)(!1),[Qn,gn]=(0,b.useState)(0);function Yn(){const zt=Ae.bx.make,qn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};He.current=new Ae.S0(Mt.current,{padding:20,grid:zt(Ae.s_,"Grid",zt(Ae.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),zt(Ae.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Yt=>{var xn=Yt.diagram.commandHandler.addTopLevelParts(Yt.diagram.selection,!0);xn||Yt.diagram.currentTool.doCancel()},commandHandler:zt(on),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Yt=>{var xn=Yt.subject;xn.location=xn.location.copy().snapToGridPoint(Yt.diagram.grid.gridOrigin,Yt.diagram.grid.gridCellSize),setTimeout(()=>{Yt.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Yt=>{var xn=Yt.subject;setTimeout(()=>{Yt.diagram.commandHandler.editTextBlock()})},LinkRelinked:Yt=>{var xn=Yt.parameter.part;xn.invalidateConnectedLinks();var ea=Yt.subject;Yt.diagram.toolManager.linkingTool.isForwards?ea.toNode.invalidateConnectedLinks():ea.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),He.current.nodeTemplate=zt(Ae.NB,"Auto",{locationSpot:Ae.z6.Center,locationObjectName:"SHAPE",desiredSize:new Ae.$u(120,60),minSize:new Ae.$u(40,40),resizable:!0,resizeCellSize:new Ae.$u(10,10),rotatable:!0},new Ae.KX("location","loc",Ae.E9.parse).makeTwoWay(Ae.E9.stringify),new Ae.KX("desiredSize","size",Ae.$u.parse).makeTwoWay(Ae.$u.stringify),zt(Ae.bn,{name:"SHAPE",fill:qn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ae.z6.AllSides,toSpot:Ae.z6.AllSides},new Ae.KX("figure"),new Ae.KX("fill"),new Ae.KX("stroke","borderColor"),new Ae.KX("strokeWidth","thickness"),new Ae.KX("strokeDashArray","dash")),zt(Ae.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),zt(Ae.al,{margin:1,textAlign:"center",overflow:Ae.al.OverflowEllipsis,editable:!0},new Ae.KX("text").makeTwoWay(),new Ae.KX("stroke","color"))),He.current.nodeTemplate.toolTip=zt("ToolTip",zt(Ae.s_,"Vertical",{maxSize:new Ae.$u(200,NaN)},zt(Ae.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ae.KX("text")),zt(Ae.al,{font:"10pt sans-serif",textAlign:"center"},new Ae.KX("text","details"))));function Je(Yt,xn){var ea=(Pn,Ra)=>{Pn.handled=!0,Pn.diagram.model.commit(ha=>{var Va=Ra.part.adornedPart,ur=new Ae.E9().setRectSpot(Va.actualBounds,Yt);ur.subtract(Va.location),ur.scale(2,2),ur.x+=Math.sign(ur.x)*130,ur.y+=Math.sign(ur.y)*130,ur.add(Va.location),ur.snapToGridPoint(Pn.diagram.grid.gridOrigin,Pn.diagram.grid.gridCellSize);var Sr=ha.copyNodeData(Va.data);ha.setGroupKeyForNodeData(Sr,ha.getGroupKeyForNodeData(Va.data)),ha.addNodeData(Sr);var Nr={from:Va.key,to:ha.getKeyForNodeData(Sr)};ha.addLinkData(Nr);var pr=Pn.diagram.findNodeForData(Sr);pr.location=ur,Pn.diagram.select(pr),setTimeout(()=>{Pn.diagram.commandHandler.editTextBlock()},20)})};return zt(Ae.bn,{figure:xn,alignment:Yt,alignmentFocus:Yt.opposite(),width:Yt.equals(Ae.z6.Top)||Yt.equals(Ae.z6.Bottom)?25:18,height:Yt.equals(Ae.z6.Top)||Yt.equals(Ae.z6.Bottom)?18:25,fill:"orange",stroke:qn.white,strokeWidth:4,mouseEnter:(Pn,Ra)=>Ra.fill="dodgerblue",mouseLeave:(Pn,Ra)=>Ra.fill="orange",isActionable:!0,click:ea,contextClick:ea})}function Qt(Yt){return zt(Ae.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(xn,ea)=>ea.fill="dodgerblue",mouseLeave:(xn,ea)=>ea.fill="orange",click:(xn,ea)=>{xn.diagram.commandHandler.showContextMenu(ea.part.adornedPart)}},Yt||{})}He.current.nodeTemplate.selectionAdornmentTemplate=zt(Ae.uz,"Spot",zt(Ae.Vm,{padding:10}),Je(Ae.z6.Top,"TriangleUp"),Je(Ae.z6.Left,"TriangleLeft"),Je(Ae.z6.Right,"TriangleRight"),Je(Ae.z6.Bottom,"TriangleDown"),Qt({alignment:new Ae.z6(.75,0)}));function Cn(Yt,xn){return(ea,Pn)=>{ea.handled=!0,ea.diagram.model.commit(Ra=>{Ra.set(Pn.part.adornedPart.data,Yt,xn)})}}function tt(Yt,xn){return xn||(xn="color"),zt(Ae.bn,{width:16,height:16,stroke:"lightgray",fill:Yt,margin:1,background:"transparent",mouseEnter:(ea,Pn)=>Pn.stroke="dodgerblue",mouseLeave:(ea,Pn)=>Pn.stroke="lightgray",click:Cn(xn,Yt),contextClick:Cn(xn,Yt)})}function Jn(){return[zt("ContextMenuButton",zt(Ae.s_,"Horizontal",tt(qn.white,"fill"),tt(qn.beige,"fill"),tt(qn.extralightblue,"fill"),tt(qn.extralightred,"fill"))),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",tt(qn.lightgray,"fill"),tt(qn.lightgreen,"fill"),tt(qn.lightblue,"fill"),tt(qn.lightred,"fill")))]}function Nn(){return[zt("ContextMenuButton",zt(Ae.s_,"Horizontal",tt(qn.black),tt(qn.green),tt(qn.blue),tt(qn.red))),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",tt(qn.white),tt(qn.magenta),tt(qn.purple),tt(qn.orange)))]}function sa(Yt,xn){return xn||(xn="thickness"),zt(Ae.bn,"LineH",{width:16,height:16,strokeWidth:Yt,margin:1,background:"transparent",mouseEnter:(ea,Pn)=>Pn.background="dodgerblue",mouseLeave:(ea,Pn)=>Pn.background="transparent",click:Cn(xn,Yt),contextClick:Cn(xn,Yt)})}function Zn(Yt,xn){return xn||(xn="dash"),zt(Ae.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Yt,margin:1,background:"transparent",mouseEnter:(ea,Pn)=>Pn.background="dodgerblue",mouseLeave:(ea,Pn)=>Pn.background="transparent",click:Cn(xn,Yt),contextClick:Cn(xn,Yt)})}function za(){return[zt("ContextMenuButton",zt(Ae.s_,"Horizontal",sa(1),sa(2),sa(3),sa(4))),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",Zn(null),Zn([2,4]),Zn([4,4])))]}function la(Yt,xn){return xn||(xn="figure"),zt(Ae.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Yt,margin:1,background:"transparent",mouseEnter:(ea,Pn)=>Pn.fill="dodgerblue",mouseLeave:(ea,Pn)=>Pn.fill="lightgray",click:Cn(xn,Yt),contextClick:Cn(xn,Yt)})}He.current.nodeTemplate.contextMenu=zt("ContextMenu",zt("ContextMenuButton",zt(Ae.s_,"Horizontal",la("Rectangle"),la("RoundedRectangle"),la("Ellipse"),la("Diamond"))),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",la("Parallelogram2"),la("ManualOperation"),la("Procedure"),la("Cylinder1"))),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",la("Terminator"),la("CreateRequest"),la("Document"),la("TriangleDown"))),Jn(),Nn(),za()),He.current.groupTemplate=zt(Ae.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ae.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Yt,xn)=>{var ea=xn.addMembers(xn.diagram.selection,!0);ea||xn.diagram.currentTool.doCancel()},avoidable:!1},new Ae.KX("location","loc",Ae.E9.parse).makeTwoWay(Ae.E9.stringify),zt(Ae.s_,"Auto",{name:"BODY"},zt(Ae.bn,{parameter1:10,fill:qn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Ae.z6.AllSides,toSpot:Ae.z6.AllSides},new Ae.KX("fill"),new Ae.KX("stroke","color"),new Ae.KX("strokeWidth","thickness"),new Ae.KX("strokeDashArray","dash")),zt(Ae.Vm,{background:"transparent",margin:20})),zt(Ae.al,{alignment:Ae.z6.Top,alignmentFocus:Ae.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Ae.KX("text"),new Ae.KX("stroke","color"))),He.current.groupTemplate.selectionAdornmentTemplate=zt(Ae.uz,"Spot",zt(Ae.s_,"Auto",zt(Ae.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),zt(Ae.Vm,{margin:1.5})),Qt({alignment:Ae.z6.TopRight,alignmentFocus:Ae.z6.BottomRight})),He.current.groupTemplate.contextMenu=zt("ContextMenu",Jn(),Nn(),za()),He.current.linkTemplate=zt(Ae.rU,{layerName:"Foreground",routing:Ae.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Ae.KX("fromSpot","fromSpot",Ae.z6.parse),new Ae.KX("toSpot","toSpot",Ae.z6.parse),new Ae.KX("fromShortLength","dir",Yt=>Yt>=1?10:0),new Ae.KX("toShortLength","dir",Yt=>Yt>=1?10:0),new Ae.KX("points").makeTwoWay(),zt(Ae.bn,{strokeWidth:2},new Ae.KX("stroke","color"),new Ae.KX("strokeWidth","thickness"),new Ae.KX("strokeDashArray","dash")),zt(Ae.bn,{segmentIndex:0,segmentOffset:new Ae.E9(15,0),segmentOrientation:Ae.rU.OrientAlong,alignmentFocus:Ae.z6.Right,figure:"circle",width:10,strokeWidth:0},new Ae.KX("fill","color"),new Ae.KX("visible","dir",Yt=>Yt===1)),zt(Ae.bn,{segmentIndex:-1,segmentOffset:new Ae.E9(-10,6),segmentOrientation:Ae.rU.OrientPlus90,alignmentFocus:Ae.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ae.KX("fill","color"),new Ae.KX("visible","dir",Yt=>Yt>=1),new Ae.KX("width","thickness",Yt=>7+3*Yt),new Ae.KX("height","thickness",Yt=>7+3*Yt),new Ae.KX("segmentOffset","thickness",Yt=>new Ae.E9(-15,4+1.5*Yt))),zt(Ae.bn,{segmentIndex:0,segmentOffset:new Ae.E9(15,-6),segmentOrientation:Ae.rU.OrientMinus90,alignmentFocus:Ae.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Ae.KX("fill","color"),new Ae.KX("visible","dir",Yt=>Yt===2),new Ae.KX("width","thickness",Yt=>7+3*Yt),new Ae.KX("height","thickness",Yt=>7+3*Yt),new Ae.KX("segmentOffset","thickness",Yt=>new Ae.E9(-15,4+1.5*Yt))),zt(Ae.al,{alignmentFocus:new Ae.z6(0,1,-4,0),editable:!0},new Ae.KX("text").makeTwoWay(),new Ae.KX("stroke","color"))),He.current.linkTemplate.selectionAdornmentTemplate=zt(Ae.uz,zt(Ae.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:_a(2)},new Ae.KX("pathPattern","thickness",_a)),Qt({alignmentFocus:new Ae.z6(0,0,-6,-4)}));function _a(Yt){return zt(Ae.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Yt+4).toString()+" H3"})}function $a(Yt){var xn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Yt===0?xn="M0 0 M16 16 M0 8 L16 8":Yt===2&&(xn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),zt(Ae.bn,{geometryString:xn,margin:2,background:"transparent",mouseEnter:(ea,Pn)=>Pn.background="dodgerblue",mouseLeave:(ea,Pn)=>Pn.background="transparent",click:Cn("dir",Yt),contextClick:Cn("dir",Yt)})}function sr(Yt){var xn=(ea,Pn)=>{ea.handled=!0,ea.diagram.model.commit(Ra=>{var ha=Pn.part.adornedPart;Ra.set(ha.data,Yt?"toSpot":"fromSpot",Ae.z6.stringify(Ae.z6.AllSides)),(Yt?ha.toNode:ha.fromNode).invalidateConnectedLinks()})};return zt(Ae.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ea,Pn)=>Pn.background="dodgerblue",mouseLeave:(ea,Pn)=>Pn.background="transparent",click:xn,contextClick:xn})}function Tt(Yt,xn){var ea=0,Pn=Ae.z6.RightSide;Yt.equals(Ae.z6.Top)?(ea=270,Pn=Ae.z6.TopSide):Yt.equals(Ae.z6.Left)?(ea=180,Pn=Ae.z6.LeftSide):Yt.equals(Ae.z6.Bottom)&&(ea=90,Pn=Ae.z6.BottomSide),xn||(ea-=180);var Ra=(ha,Va)=>{ha.handled=!0,ha.diagram.model.commit(ur=>{var Sr=Va.part.adornedPart;ur.set(Sr.data,xn?"toSpot":"fromSpot",Ae.z6.stringify(Pn)),(xn?Sr.toNode:Sr.fromNode).invalidateConnectedLinks()})};return zt(Ae.bn,{alignment:Yt,alignmentFocus:Yt.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ea,background:"transparent",mouseEnter:(ha,Va)=>Va.background="dodgerblue",mouseLeave:(ha,Va)=>Va.background="transparent",click:Ra,contextClick:Ra})}He.current.linkTemplate.contextMenu=zt("ContextMenu",Nn(),za(),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",$a(0),$a(1),$a(2))),zt("ContextMenuButton",zt(Ae.s_,"Horizontal",zt(Ae.s_,"Spot",sr(!1),Tt(Ae.z6.Top,!1),Tt(Ae.z6.Left,!1),Tt(Ae.z6.Right,!1),Tt(Ae.z6.Bottom,!1)),zt(Ae.s_,"Spot",{margin:new Ae.Zt(0,0,0,2)},sr(!0),Tt(Ae.z6.Top,!0),Tt(Ae.z6.Left,!0),Tt(Ae.z6.Right,!0),Tt(Ae.z6.Bottom,!0)))));const Da=`{ "class": "GraphLinksModel", "nodeDataArray": [ {"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3}, {"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"}, @@ -252,39 +252,39 @@ ${Un} {"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"}, {"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1}, {"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]} -]}`;var Wt=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function xa(Yt){return console.log("shapeName:",Yt),Wt.indexOf(Yt)>=0}var fa=new Ae.YI(un.current,{maxSelectionCount:1,linkTemplate:zt(Ae.rU,{locationSpot:Ae.z6.Center,selectionAdornmentTemplate:zt(Ae.uz,"Link",{locationSpot:Ae.z6.Center},zt(Ae.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),zt(Ae.bn,{toArrow:"Standard",stroke:null}))},{routing:Ae.rU.AvoidsNodes,curve:Ae.rU.JumpOver,corner:5,toShortLength:4},new Ae.KX("points"),zt(Ae.bn,{isPanelMain:!0,strokeWidth:2}),zt(Ae.bn,{toArrow:"Standard",stroke:null})),model:new Ae.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ae.bn.getFigureGenerators().toArray().map(Yt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Yt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return He.current.addDiagramListener("TextEdited",function(Yt){var Cn;const ea=Yt.subject.part;var Pn=(Cn=document.activeElement)==null?void 0:Cn.value;typeof Pn=="string"&&Pn.trim()===""&&He.current.model.commit(function(Ra){Ra.set(ea.data,"text","\u672A\u547D\u540D"),He.current.commandHandler.stopCommand()},"increment")}),fa.nodeTemplate=zt(Ae.NB,"Auto",{locationSpot:Ae.z6.Center},new Ae.KX("location","location",Ae.E9.parse).makeTwoWay(Ae.E9.stringify),zt(Ae.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new Ae.KX("stroke").makeTwoWay(),new Ae.KX("fill").makeTwoWay(),new Ae.KX("figure")),zt(Ae.al,{margin:new Ae.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ae.$u(16,16),maxSize:new Ae.$u(10,NaN),textAlign:"center",editable:!0},new Ae.KX("key").makeTwoWay())),setTimeout(()=>{He.current.grid=zt(Ae.s_,"Grid",zt(Ae.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),zt(Ae.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),He.current.grid.visible=!0,He.current.grid.gridCellStroke="darkgray",He.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=He.current,He.current}const ha=()=>Ht(this,null,function*(){var zt=He.current.makeImage();const _n=yield(0,An.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:zt.src}});Ke({src:_n.url})});return(0,b.useEffect)(()=>(setTimeout(()=>{Yn()},500),gn(Qn+1),()=>{He.current=null}),[]),Bt.createElement("div",{ref:Xn,className:sn.current?`${ot.maxH60} body-overflow-initial`:"body-overflow-initial"},Bt.createElement(Oe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Qn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Bt.createElement(Et.Z,null,Bt.createElement(et.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Bt.createElement(et.Z,{onClick:()=>{var zt,_n,Je=He.current.selection.first();if(sn.current=!sn.current,document.activeElement&&Je){let Qt=(_n=(zt=document.activeElement)==null?void 0:zt.value)==null?void 0:_n.trim();typeof Qt=="string"&&He.current.model.commit(function(bn){bn.set(Je.data,"text",Qt||"\u672A\u547D\u540D"),He.current.commandHandler.stopCommand()},"increment")}gn(Qn+1)}},Bt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:je},Bt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ot.flowChartWrp},Bt.createElement("div",{style:{display:"flex",height:"100%"}},Bt.createElement("div",{style:{width:"300px",height:"100%"}},Bt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Bt.createElement("div",{style:{height:"calc(100% - 50px)"},className:ot.myPaletteDiv,ref:un})),Bt.createElement("div",{style:{flex:1,position:"relative"}},Bt.createElement("div",{ref:Mt,style:{height:"80vh"}}))),Bt.createElement("div",{className:"tr"},Bt.createElement(Le.ZP,{size:"large",onClick:ha,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var On=ht,Ot=oe(5112),Un=oe(5871);const Bn=Ot.ZP.Group,kn={margin:"0 8px"};var qt=({callback:je,onCancel:Ke})=>{function He(Mt){je(Mt)}return b.createElement(Me.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:He},b.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},b.createElement("span",{style:kn},"\u5355\u5143\u683C\u6570\uFF1A"),b.createElement("span",{style:kn},"\u884C\u6570"),b.createElement(Me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},b.createElement(Un.Z,null)),b.createElement("span",{style:kn},"\u5217\u6570"),b.createElement(Me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},b.createElement(Un.Z,null))),b.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},b.createElement("span",{style:kn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),b.createElement(Me.default.Item,{name:"align"},b.createElement(Bn,null,b.createElement(Ot.ZP,{value:"default"},b.createElement("i",{className:"fa fa-align-justify"})),b.createElement(Ot.ZP,{value:"left"},b.createElement("i",{className:"fa fa-align-left"})),b.createElement(Ot.ZP,{value:"center"},b.createElement("i",{className:"fa fa-align-center"})),b.createElement(Ot.ZP,{value:"right"},b.createElement("i",{className:"fa fa-align-right"}))))),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Le.ZP,{type:"ghost",onClick:Ke},"\u53D6\u6D88")))},ca=oe(78673),zn=oe(20063),ba=oe.n(zn),cn=(0,b.forwardRef)(({use3d:je,width:Ke,height:He,callback:Mt,showSaveButton:un},sn)=>{const Xn=(0,b.useRef)(),Qn=(0,b.useRef)(),[gn,Yn]=(0,b.useState)(!1),ha=(0,b.useRef)({id:Xn,appName:"graphing",width:Ke||1e3,height:He||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,b.useEffect)(()=>{Qn.current=new(ba())(ha.current,!0),window.onload=function(){Qn.current.inject("applet_container")}},[]);const zt=()=>{var _n=window.ggbApplet.getPNGBase64(1,!0,72);return Mt&&Mt(_n),_n};return(0,b.useEffect)(()=>{ha.current.appName=gn?"3D":"graphing",Qn.current.inject("applet_container")},[gn]),(0,b.useEffect)(()=>{Yn(je)},[je]),(0,b.useImperativeHandle)(sn,()=>({getImgData:zt})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Xn}),b.createElement(Et.Z,{align:"middle"},b.createElement(et.Z,{flex:1},b.createElement(ca.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:gn,onChange:_n=>Yn(_n)})),b.createElement(et.Z,null,b.createElement(Le.ZP,{size:"large",onClick:zt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),pn=oe(50892),Oa=oe(1012),va=oe(8591);const wa="link",_t="upload-image",St="add-flowchart",fn="draw-image",Fn="add-flowchart",Ea="code-block",na="add-table",Ka="------------",aa={default:Ka,left:`:${Ka}`,center:`:${Ka}:`,right:`${Ka}:`};var Wn=oe(29152),Ya=(je,Ke,He)=>new Promise((Mt,un)=>{var sn=gn=>{try{Qn(He.next(gn))}catch(Yn){un(Yn)}},Xn=gn=>{try{Qn(He.throw(gn))}catch(Yn){un(Yn)}},Qn=gn=>gn.done?Mt(gn.value):Promise.resolve(gn.value).then(sn,Xn);Qn((He=He.apply(je,Ke)).next())});function Ma(){}let Ja=0;const Ar=1e4,At="\u2581",Ln="@\u2581\u2581@",Mn="@\u2581@",xn=` +]}`;var Wt=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function xa(Yt){return console.log("shapeName:",Yt),Wt.indexOf(Yt)>=0}var va=new Ae.YI(un.current,{maxSelectionCount:1,linkTemplate:zt(Ae.rU,{locationSpot:Ae.z6.Center,selectionAdornmentTemplate:zt(Ae.uz,"Link",{locationSpot:Ae.z6.Center},zt(Ae.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),zt(Ae.bn,{toArrow:"Standard",stroke:null}))},{routing:Ae.rU.AvoidsNodes,curve:Ae.rU.JumpOver,corner:5,toShortLength:4},new Ae.KX("points"),zt(Ae.bn,{isPanelMain:!0,strokeWidth:2}),zt(Ae.bn,{toArrow:"Standard",stroke:null})),model:new Ae.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Ae.bn.getFigureGenerators().toArray().map(Yt=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Yt.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return He.current.addDiagramListener("TextEdited",function(Yt){var xn;const ea=Yt.subject.part;var Pn=(xn=document.activeElement)==null?void 0:xn.value;typeof Pn=="string"&&Pn.trim()===""&&He.current.model.commit(function(Ra){Ra.set(ea.data,"text","\u672A\u547D\u540D"),He.current.commandHandler.stopCommand()},"increment")}),va.nodeTemplate=zt(Ae.NB,"Auto",{locationSpot:Ae.z6.Center},new Ae.KX("location","location",Ae.E9.parse).makeTwoWay(Ae.E9.stringify),zt(Ae.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new Ae.KX("stroke").makeTwoWay(),new Ae.KX("fill").makeTwoWay(),new Ae.KX("figure")),zt(Ae.al,{margin:new Ae.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Ae.$u(16,16),maxSize:new Ae.$u(10,NaN),textAlign:"center",editable:!0},new Ae.KX("key").makeTwoWay())),setTimeout(()=>{He.current.grid=zt(Ae.s_,"Grid",zt(Ae.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),zt(Ae.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),He.current.grid.visible=!0,He.current.grid.gridCellStroke="darkgray",He.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=He.current,He.current}const Pa=()=>Ht(this,null,function*(){var zt=He.current.makeImage();const qn=yield(0,An.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:zt.src}});Ke({src:qn.url})});return(0,b.useEffect)(()=>(setTimeout(()=>{Yn()},500),gn(Qn+1),()=>{He.current=null}),[]),bt.createElement("div",{ref:Xn,className:sn.current?`${ot.maxH60} body-overflow-initial`:"body-overflow-initial"},bt.createElement(Oe.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Qn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:bt.createElement(Et.Z,null,bt.createElement(et.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),bt.createElement(et.Z,{onClick:()=>{var zt,qn,Je=He.current.selection.first();if(sn.current=!sn.current,document.activeElement&&Je){let Qt=(qn=(zt=document.activeElement)==null?void 0:zt.value)==null?void 0:qn.trim();typeof Qt=="string"&&He.current.model.commit(function(Cn){Cn.set(Je.data,"text",Qt||"\u672A\u547D\u540D"),He.current.commandHandler.stopCommand()},"increment")}gn(Qn+1)}},bt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:je},bt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ot.flowChartWrp},bt.createElement("div",{style:{display:"flex",height:"100%"}},bt.createElement("div",{style:{width:"300px",height:"100%"}},bt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),bt.createElement("div",{style:{height:"calc(100% - 50px)"},className:ot.myPaletteDiv,ref:un})),bt.createElement("div",{style:{flex:1,position:"relative"}},bt.createElement("div",{ref:Mt,style:{height:"80vh"}}))),bt.createElement("div",{className:"tr"},bt.createElement(Le.ZP,{size:"large",onClick:Pa,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Mn=ht,Ot=oe(5112),Un=oe(5871);const bn=Ot.ZP.Group,kn={margin:"0 8px"};var qt=({callback:je,onCancel:Ke})=>{function He(Mt){je(Mt)}return b.createElement(Me.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:He},b.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},b.createElement("span",{style:kn},"\u5355\u5143\u683C\u6570\uFF1A"),b.createElement("span",{style:kn},"\u884C\u6570"),b.createElement(Me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},b.createElement(Un.Z,null)),b.createElement("span",{style:kn},"\u5217\u6570"),b.createElement(Me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},b.createElement(Un.Z,null))),b.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},b.createElement("span",{style:kn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),b.createElement(Me.default.Item,{name:"align"},b.createElement(bn,null,b.createElement(Ot.ZP,{value:"default"},b.createElement("i",{className:"fa fa-align-justify"})),b.createElement(Ot.ZP,{value:"left"},b.createElement("i",{className:"fa fa-align-left"})),b.createElement(Ot.ZP,{value:"center"},b.createElement("i",{className:"fa fa-align-center"})),b.createElement(Ot.ZP,{value:"right"},b.createElement("i",{className:"fa fa-align-right"}))))),b.createElement("div",{className:"flex-container flex-end"},b.createElement(Le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),b.createElement(Le.ZP,{type:"ghost",onClick:Ke},"\u53D6\u6D88")))},ma=oe(78673),zn=oe(20063),ba=oe.n(zn),cn=(0,b.forwardRef)(({use3d:je,width:Ke,height:He,callback:Mt,showSaveButton:un},sn)=>{const Xn=(0,b.useRef)(),Qn=(0,b.useRef)(),[gn,Yn]=(0,b.useState)(!1),Pa=(0,b.useRef)({id:Xn,appName:"graphing",width:Ke||1e3,height:He||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,b.useEffect)(()=>{Qn.current=new(ba())(Pa.current,!0),window.onload=function(){Qn.current.inject("applet_container")}},[]);const zt=()=>{var qn=window.ggbApplet.getPNGBase64(1,!0,72);return Mt&&Mt(qn),qn};return(0,b.useEffect)(()=>{Pa.current.appName=gn?"3D":"graphing",Qn.current.inject("applet_container")},[gn]),(0,b.useEffect)(()=>{Yn(je)},[je]),(0,b.useImperativeHandle)(sn,()=>({getImgData:zt})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Xn}),b.createElement(Et.Z,{align:"middle"},b.createElement(et.Z,{flex:1},b.createElement(ma.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:gn,onChange:qn=>Yn(qn)})),b.createElement(et.Z,null,b.createElement(Le.ZP,{size:"large",onClick:zt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),pn=oe(50892),Oa=oe(1012),pa=oe(8591);const wa="link",_t="upload-image",St="add-flowchart",fn="draw-image",Fn="add-flowchart",ya="code-block",na="add-table",Ka="------------",aa={default:Ka,left:`:${Ka}`,center:`:${Ka}:`,right:`${Ka}:`};var Wn=oe(29152),Ya=(je,Ke,He)=>new Promise((Mt,un)=>{var sn=gn=>{try{Qn(He.next(gn))}catch(Yn){un(Yn)}},Xn=gn=>{try{Qn(He.throw(gn))}catch(Yn){un(Yn)}},Qn=gn=>gn.done?Mt(gn.value):Promise.resolve(gn.value).then(sn,Xn);Qn((He=He.apply(je,Ke)).next())});function Ma(){}let Ja=0;const Ar=1e4,At="\u2581",In="@\u2581\u2581@",Rn="@\u2581@",wn=` **\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`,xe=["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"];function ft(je){return/^\d+$/.test(je)?`${je}px`:je}const Vt=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Rt={[Vt+"-B"]:"bold",[Vt+"-I"]:"italic"},yt={[wa]:"\u6DFB\u52A0\u94FE\u63A5",[Ea]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[_t]:"\u6DFB\u52A0\u56FE\u7247",[fn]:"\u6DFB\u52A0\u753B\u56FE",[St]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[na]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var hn=({defaultValue:je="",onChange:Ke,width:He="100%",height:Mt=400,miniToolbar:un=!1,isFocus:sn=!1,watch:Xn,insertTemp:Qn,mode:gn="markdown",id:Yn="markdown-editor-id",showResizeBar:ha=!1,noStorage:zt=!1,showNullButton:_n=!1,showNullProgramButton:Je=!1,hidetoolBar:Qt=!1,fullScreen:bn=!1,onBlur:tt,onCMBeforeChange:Jn,onFullScreen:In,className:sa="",disablePaste:Zn=!1,disabled:za=!1,disabledFill:la=!1,placeholder:_a="",values:$a="",extraUse:sr})=>{const[Tt,Da]=(0,b.useState)(null),[Wt,xa]=(0,b.useState)(je),[fa,Yt]=(0,b.useState)(Xn),[Cn,ea]=(0,b.useState)(bn),[Pn,Ra]=(0,b.useState)(""),[pa,Va]=(0,b.useState)(0),[ur,Sr]=(0,b.useState)(Mt),[Nr,pr]=(0,b.useState)(!1),Yr=(0,b.useRef)((0,Oa.Z)()),Xa=(0,b.useRef)(!1),qa=(0,b.useRef)(),[fr,ga]=(0,b.useState)(0),[or,dr]=(0,b.useState)(0),ka=(0,b.useRef)(),nr=(0,b.useRef)(),mt=(0,b.useRef)(),it=(0,b.useRef)(),Nt=()=>Ya(void 0,null,function*(){var Rn;const an=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Yr.current}});(Rn=an==null?void 0:an.attachments)!=null&&Rn.length&&(console.log("cm:",Tt,ka),an.attachments.map(Lt=>{Lt.content_type.indexOf("image")>-1?Tt.replaceSelection(`![,](/api/attachments/${Lt.id}?type=${Lt.content_type})`):Lt.content_type.indexOf("video")>-1?Tt.replaceSelection(``):Lt.content_type.indexOf("pdf")>-1?Tt.replaceSelection(`${Lt.name}`):Tt.replaceSelection(`[${Lt.name}](${ENV.API_SERVER}/api/attachments/${Lt.id}?type=${Lt.content_type})`)}))});(0,b.useEffect)(()=>{const Rn=window.scrollY||window.pageYOffset;xa($a),Tt==null||Tt.setValue($a),window.scrollTo(0,Rn)},[$a]),(0,b.useEffect)(()=>{In==null||In(Cn)},[Cn]),(0,b.useEffect)(()=>{if(ka.current){let Rn=function(Lt,se){var $e;if(Zn){se.preventDefault();return}const st=se.clipboardData;if(st){const jt=st.types.toString(),at=st.items;if(jt==="Files"||st.types.indexOf("Files")>-1){if(se.preventDefault(),gn=="stex")return;try{let tn=at[1];(($e=at[0])==null?void 0:$e.kind)==="file"&&(tn=at[0]);const Jt=tn.getAsFile(),Ut=Jt.name.split(".").pop();(0,Qe.I)(Jt,Xt=>{var ra,Ha,Za;Xt.id?((ra=Jt==null?void 0:Jt.type)==null?void 0:ra.indexOf("image"))>-1?an.replaceSelection(``):((Ha=Jt==null?void 0:Jt.type)==null?void 0:Ha.indexOf("video"))>-1?an.replaceSelection(``):((Za=Jt==null?void 0:Jt.type)==null?void 0:Za.indexOf("pdf"))>-1?an.replaceSelection(`${Jt.name}`):xe.includes(Ut)?an.replaceSelection(`${Jt.name}`):an.replaceSelection(`[${Jt.name}](/api/attachments/${Xt.id}?type=${Xt.content_type})`):(Xt==null?void 0:Xt.status)===401&&(va.ZP.warning((Xt==null?void 0:Xt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(tn){va.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const an=Be().fromTextArea(ka.current,{mode:gn,lineNumbers:!un,lineWrapping:!0,value:je,autoCloseTags:!Je,autoCloseBrackets:!0});return an.on("keyup",function(Lt,se){se.keyCode===8&&(Lt.getValue()==""?an.setOption("placeholder",_a):an.setOption("placeholder",null))}),an.on("keydown",function(Lt,se){if(se.keyCode===8){var $e=ia(Lt);$e&&se.preventDefault()}}),sn&&an.focus(),an.on("paste",Rn),an.on("dragleave",function(Lt,se){nr.current.classList.remove("mouse-hover-md")}),za&&an.on("beforeChange",function(Lt,se){(se.origin==="paste"||se.origin==="+input")&&se.cancel()}),Da(an),()=>{an.off("paste",Rn)}}},[]);const dn=(0,b.useCallback)(()=>{if(nr.current)try{}catch(Rn){console.log(Rn,"---- to set md editor body height")}},[ur,nr,Cn]);(0,b.useEffect)(()=>{function Rn(){let an=new Ie.Z(Lt=>{for(let se of Lt)(se.target.offsetHeight>0||se.target.offsetWidth>0)&&(dn(),Tt.setSize("100%","100%"),Tt.refresh())});return an.observe(ka.current.parentElement),an}if(Tt){const an=Rn();return()=>{var Lt,se;(Lt=ka.current)!=null&&Lt.parentElement&&an.unobserve((se=ka.current)==null?void 0:se.parentElement)}}},[Tt,dn]),(0,b.useEffect)(()=>{if(Tt){let Rn=[];for(const[an,Lt]of Object.entries(Rt)){let se={[an]:()=>{La(Lt)}};Rn.push(se),Tt.addKeyMap(se)}return qa.current=setInterval(()=>{Xa.current&&Nt()},4e3),()=>{clearInterval(qa.current);for(let an of Rn)Tt.removeKeyMap(an)}}},[Tt]),(0,b.useEffect)(()=>{bn!==Cn&&ea(bn)},[bn]),(0,Wn.Z)(()=>{if(!zt&&pa>0){let Rn=new Date().getTime(),an=window.sessionStorage.getItem(Yn);Rn>=pa+Ar&&(!an||an!==Wt)&&(window.sessionStorage.setItem(Yn,Wt),pr(!0))}},Ar),(0,b.useEffect)(()=>{Yt(Xn)},[Tt,Xn]),(0,b.useEffect)(()=>{Tt&&sn&&Tt.focus()},[Tt,sn]),(0,b.useEffect)(()=>{if(fa&&Tt){let Rn=function(Lt){let se=Lt.target;if(it.current){let $e=se.scrollTop/se.scrollHeight;it.current.scrollTop=it.current.scrollHeight*$e}};const an=Tt.getScrollerElement();return an.addEventListener("scroll",Rn),()=>{an.removeEventListener("scroll",Rn)}}},[Tt,fa]),(0,b.useEffect)(()=>{if(Tt&&Jn){let Rn=function(an,Lt){Jn(an,Lt)};return Tt.on("beforeChange",Rn),()=>{Tt.off("beforeChange",Rn)}}},[Tt,Jn]),(0,b.useEffect)(()=>{if(Tt&&tt){let Rn=function(){tt(Tt.getValue())};return Tt.on("blur",Rn),()=>{Tt.off("blur",Rn)}}},[Tt,tt]);function ia(Rn,an){var Lt=Rn.getDoc(),se=Lt.getCursor(),$e=Lt.getLine(se.line),st=$e.charAt(se.ch-1),jt=$e.lastIndexOf("@\u2581@",se.ch),at=$e.lastIndexOf("@\u2581\u2581@",se.ch),tn=jt>at?jt:at,Jt=jt>at?3:4;if(Ln.indexOf(st)===-1)return null;if(console.log("change1:",an,Rn,$e,se,tn,jt,at,st),tn>=0&&se.ch-tn<5){var Ut=tn+Jt;return Lt.replaceRange("",{line:se.line,ch:tn},{line:se.line,ch:Ut}),{line:se.line,ch:Ut}}return null}(0,b.useEffect)(()=>{if(Tt){let Rn=function(an,Lt){const se=an.getValue();xa(se),Va(new Date().getTime()),an.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ke&&(Je?Ke(se,vr(se)):Ke(se))};return Tt.on("change",Rn),()=>{Tt.off("change",Rn)}}},[Tt,Ke]),(0,b.useEffect)(()=>{if(Tt)if(je==null)Tt.setValue(""),xa("");else{const Rn=window.scrollY||window.pageYOffset;je!==Tt.getValue()&&(Tt.setValue(je),xa(je),Tt.setCursor(za?1:Tt.lineCount(),0),window.scrollTo(0,Rn))}},[Tt,je]);const La=(0,b.useCallback)(Rn=>{const an=Tt.getCursor(),Lt=Tt.getSelection();let se=Lt.split(` -`);switch(Rn){case"bold":return Tt.replaceSelection("**"+Lt+"**"),Lt===""&&Tt.setCursor(an.line,an.ch+2),Tt.focus();case"italic":return Tt.replaceSelection("*"+Lt+"*"),Lt===""&&Tt.setCursor(an.line,an.ch+1),Tt.focus();case"code":return Tt.replaceSelection("`"+Lt+"`"),Lt===""&&Tt.setCursor(an.line,an.ch+1),Tt.focus();case"inline-latex":return Ra("inline-latex"),Tt.focus();case"latex":return Tt.replaceSelection("```latex\n"+Lt+"\n```"),Tt.setCursor(an.line+1,Lt.length+1),Tt.focus();case"line-break":return Tt.replaceSelection(`
-`),Tt.focus();case"list-ul":return Lt===""?Tt.replaceSelection("- "+Lt):Tt.replaceSelection(se.map($e=>$e===""?"":`- ${$e}`).join(` -`)),Tt.focus();case"list-ol":return Lt===""?Tt.replaceSelection("1. "+Lt):Tt.replaceSelection(se.map(($e,st)=>$e===""?"":`${st+1}. ${$e}`).join(` -`)),Tt.focus();case"add-null-ch":return Lt===""&&Tt.setCursor(an.line,an.ch),Tt.replaceSelection(At),Tt.focus();case"add-signal":return Lt===""&&Tt.setCursor(an.line,an.ch),Tt.replaceSelection(Mn),Tt.focus();case"add-multiple":return Lt===""&&Tt.setCursor(an.line,an.ch),Tt.replaceSelection(Ln),Tt.focus();case"inster-template-1":return Lt===""&&Tt.setCursor(an.line,an.ch),Tt.replaceSelection(xn),Tt.focus();case"eraser":return Tt.setValue(""),Tt.focus();case"trigger-watch":return Yt(!fa),Tt.focus();case"trigger-full-screen":return ea(!Cn),Tt.focus();case wa:Ra(wa);return;case Ea:Ra(Ea);return;case _t:Ra(_t);return;case fn:Ra(fn);return;case"maths-latex":Ra("maths-latex");return;case St:Ra(St);return;case na:Ra(na);return;default:throw new Error}},[Tt,fa,Cn]),$t=(0,b.useCallback)((Rn,an)=>{var Lt,se,$e,st,jt,at;switch(Ra(""),Pn){case wa:const{title:ra,link:Ha}=Rn;return Tt.replaceSelection(`[${ra}](${Ha})`),Tt.focus();case Ea:const{language:Za,content:mn}=Rn;return Tt.replaceSelection(["```"+Za,mn,"```"].join(` -`)),Tt.focus();case"maths-latex":for(var tn=atob(Rn),Jt=new Uint8Array(tn.length),Ut=0;Ut{Hr.id?Tt.replaceSelection(`![,](/api/attachments/${Hr.id}?type=${Hr.content_type})`):(Hr==null?void 0:Hr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Tt.replaceSelection("`$$"+Rn+"$$`");break;case _t:case fn:case Fn:const{src:Ia,alt:Ca}=Rn,Ga=an,Ir=($e=(se=(Lt=Ga==null?void 0:Ga.name)==null?void 0:Lt.split("."))==null?void 0:se.pop)==null?void 0:$e.call(se);return((st=Ga==null?void 0:Ga.type)==null?void 0:st.indexOf("image"))>-1||!(Ga!=null&&Ga.type)?Ga.align||Ga.width?Tt.replaceSelection(`

${Ca||

`):Tt.replaceSelection(`${Ca||`):((jt=Ga==null?void 0:Ga.type)==null?void 0:jt.indexOf("video"))>-1?Tt.replaceSelection(``):((at=Ga==null?void 0:Ga.type)==null?void 0:at.indexOf("pdf"))>-1?Tt.replaceSelection(`${Ga.name}`):xe.includes(Ir)?Tt.replaceSelection(`${Ga.name}`):Tt.replaceSelection(`[${Ga.name}](${Ia})`),Tt.focus();case na:const{row:Vr,col:Or,align:Zr}=Rn;let kr=` -`;for(let Hr=0;Hr=0?"Cmd":"Ctrl",Rt={[Vt+"-B"]:"bold",[Vt+"-I"]:"italic"},yt={[wa]:"\u6DFB\u52A0\u94FE\u63A5",[ya]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[_t]:"\u6DFB\u52A0\u56FE\u7247",[fn]:"\u6DFB\u52A0\u753B\u56FE",[St]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[na]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var hn=({defaultValue:je="",onChange:Ke,width:He="100%",height:Mt=400,miniToolbar:un=!1,isFocus:sn=!1,watch:Xn,insertTemp:Qn,mode:gn="markdown",id:Yn="markdown-editor-id",showResizeBar:Pa=!1,noStorage:zt=!1,showNullButton:qn=!1,showNullProgramButton:Je=!1,hidetoolBar:Qt=!1,fullScreen:Cn=!1,onBlur:tt,onCMBeforeChange:Jn,onFullScreen:Nn,className:sa="",disablePaste:Zn=!1,disabled:za=!1,disabledFill:la=!1,placeholder:_a="",values:$a="",extraUse:sr})=>{const[Tt,Da]=(0,b.useState)(null),[Wt,xa]=(0,b.useState)(je),[va,Yt]=(0,b.useState)(Xn),[xn,ea]=(0,b.useState)(Cn),[Pn,Ra]=(0,b.useState)(""),[ha,Va]=(0,b.useState)(0),[ur,Sr]=(0,b.useState)(Mt),[Nr,pr]=(0,b.useState)(!1),Yr=(0,b.useRef)((0,Oa.Z)()),Xa=(0,b.useRef)(!1),qa=(0,b.useRef)(),[fr,fa]=(0,b.useState)(0),[or,dr]=(0,b.useState)(0),ka=(0,b.useRef)(),nr=(0,b.useRef)(),mt=(0,b.useRef)(),it=(0,b.useRef)(),Nt=()=>Ya(void 0,null,function*(){var Tn;const an=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Yr.current}});(Tn=an==null?void 0:an.attachments)!=null&&Tn.length&&(console.log("cm:",Tt,ka),an.attachments.map(Lt=>{Lt.content_type.indexOf("image")>-1?Tt.replaceSelection(`![,](/api/attachments/${Lt.id}?type=${Lt.content_type})`):Lt.content_type.indexOf("video")>-1?Tt.replaceSelection(``):Lt.content_type.indexOf("pdf")>-1?Tt.replaceSelection(`${Lt.name}`):Tt.replaceSelection(`[${Lt.name}](${ENV.API_SERVER}/api/attachments/${Lt.id}?type=${Lt.content_type})`)}))});(0,b.useEffect)(()=>{const Tn=window.scrollY||window.pageYOffset;xa($a),Tt==null||Tt.setValue($a),window.scrollTo(0,Tn)},[$a]),(0,b.useEffect)(()=>{Nn==null||Nn(xn)},[xn]),(0,b.useEffect)(()=>{if(ka.current){let Tn=function(Lt,de){var $e;if(Zn){de.preventDefault();return}const st=de.clipboardData;if(st){const jt=st.types.toString(),at=st.items;if(jt==="Files"||st.types.indexOf("Files")>-1){if(de.preventDefault(),gn=="stex")return;try{let tn=at[1];(($e=at[0])==null?void 0:$e.kind)==="file"&&(tn=at[0]);const Jt=tn.getAsFile(),Ut=Jt.name.split(".").pop();(0,Qe.I)(Jt,Xt=>{var ra,Ha,Za;Xt.id?((ra=Jt==null?void 0:Jt.type)==null?void 0:ra.indexOf("image"))>-1?an.replaceSelection(``):((Ha=Jt==null?void 0:Jt.type)==null?void 0:Ha.indexOf("video"))>-1?an.replaceSelection(``):((Za=Jt==null?void 0:Jt.type)==null?void 0:Za.indexOf("pdf"))>-1?an.replaceSelection(`${Jt.name}`):xe.includes(Ut)?an.replaceSelection(`${Jt.name}`):an.replaceSelection(`[${Jt.name}](/api/attachments/${Xt.id}?type=${Xt.content_type})`):(Xt==null?void 0:Xt.status)===401&&(pa.ZP.warning((Xt==null?void 0:Xt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(tn){pa.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const an=Be().fromTextArea(ka.current,{mode:gn,lineNumbers:!un,lineWrapping:!0,value:je,autoCloseTags:!Je,autoCloseBrackets:!0});return an.on("keyup",function(Lt,de){de.keyCode===8&&(Lt.getValue()==""?an.setOption("placeholder",_a):an.setOption("placeholder",null))}),an.on("keydown",function(Lt,de){if(de.keyCode===8){var $e=ia(Lt);$e&&de.preventDefault()}}),sn&&an.focus(),an.on("paste",Tn),an.on("dragleave",function(Lt,de){nr.current.classList.remove("mouse-hover-md")}),za&&an.on("beforeChange",function(Lt,de){(de.origin==="paste"||de.origin==="+input")&&de.cancel()}),Da(an),()=>{an.off("paste",Tn)}}},[]);const dn=(0,b.useCallback)(()=>{if(nr.current)try{}catch(Tn){console.log(Tn,"---- to set md editor body height")}},[ur,nr,xn]);(0,b.useEffect)(()=>{function Tn(){let an=new Ie.Z(Lt=>{for(let de of Lt)(de.target.offsetHeight>0||de.target.offsetWidth>0)&&(dn(),Tt.setSize("100%","100%"),Tt.refresh())});return an.observe(ka.current.parentElement),an}if(Tt){const an=Tn();return()=>{var Lt,de;(Lt=ka.current)!=null&&Lt.parentElement&&an.unobserve((de=ka.current)==null?void 0:de.parentElement)}}},[Tt,dn]),(0,b.useEffect)(()=>{if(Tt){let Tn=[];for(const[an,Lt]of Object.entries(Rt)){let de={[an]:()=>{La(Lt)}};Tn.push(de),Tt.addKeyMap(de)}return qa.current=setInterval(()=>{Xa.current&&Nt()},4e3),()=>{clearInterval(qa.current);for(let an of Tn)Tt.removeKeyMap(an)}}},[Tt]),(0,b.useEffect)(()=>{Cn!==xn&&ea(Cn)},[Cn]),(0,Wn.Z)(()=>{if(!zt&&ha>0){let Tn=new Date().getTime(),an=window.sessionStorage.getItem(Yn);Tn>=ha+Ar&&(!an||an!==Wt)&&(window.sessionStorage.setItem(Yn,Wt),pr(!0))}},Ar),(0,b.useEffect)(()=>{Yt(Xn)},[Tt,Xn]),(0,b.useEffect)(()=>{Tt&&sn&&Tt.focus()},[Tt,sn]),(0,b.useEffect)(()=>{if(va&&Tt){let Tn=function(Lt){let de=Lt.target;if(it.current){let $e=de.scrollTop/de.scrollHeight;it.current.scrollTop=it.current.scrollHeight*$e}};const an=Tt.getScrollerElement();return an.addEventListener("scroll",Tn),()=>{an.removeEventListener("scroll",Tn)}}},[Tt,va]),(0,b.useEffect)(()=>{if(Tt&&Jn){let Tn=function(an,Lt){Jn(an,Lt)};return Tt.on("beforeChange",Tn),()=>{Tt.off("beforeChange",Tn)}}},[Tt,Jn]),(0,b.useEffect)(()=>{if(Tt&&tt){let Tn=function(){tt(Tt.getValue())};return Tt.on("blur",Tn),()=>{Tt.off("blur",Tn)}}},[Tt,tt]);function ia(Tn,an){var Lt=Tn.getDoc(),de=Lt.getCursor(),$e=Lt.getLine(de.line),st=$e.charAt(de.ch-1),jt=$e.lastIndexOf("@\u2581@",de.ch),at=$e.lastIndexOf("@\u2581\u2581@",de.ch),tn=jt>at?jt:at,Jt=jt>at?3:4;if(In.indexOf(st)===-1)return null;if(console.log("change1:",an,Tn,$e,de,tn,jt,at,st),tn>=0&&de.ch-tn<5){var Ut=tn+Jt;return Lt.replaceRange("",{line:de.line,ch:tn},{line:de.line,ch:Ut}),{line:de.line,ch:Ut}}return null}(0,b.useEffect)(()=>{if(Tt){let Tn=function(an,Lt){const de=an.getValue();xa(de),Va(new Date().getTime()),an.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Ke&&(Je?Ke(de,vr(de)):Ke(de))};return Tt.on("change",Tn),()=>{Tt.off("change",Tn)}}},[Tt,Ke]),(0,b.useEffect)(()=>{if(Tt)if(je==null)Tt.setValue(""),xa("");else{const Tn=window.scrollY||window.pageYOffset;je!==Tt.getValue()&&(Tt.setValue(je),xa(je),Tt.setCursor(za?1:Tt.lineCount(),0),window.scrollTo(0,Tn))}},[Tt,je]);const La=(0,b.useCallback)(Tn=>{const an=Tt.getCursor(),Lt=Tt.getSelection();let de=Lt.split(` +`);switch(Tn){case"bold":return Tt.replaceSelection("**"+Lt+"**"),Lt===""&&Tt.setCursor(an.line,an.ch+2),Tt.focus();case"italic":return Tt.replaceSelection("*"+Lt+"*"),Lt===""&&Tt.setCursor(an.line,an.ch+1),Tt.focus();case"code":return Tt.replaceSelection("`"+Lt+"`"),Lt===""&&Tt.setCursor(an.line,an.ch+1),Tt.focus();case"inline-latex":return Ra("inline-latex"),Tt.focus();case"latex":return Tt.replaceSelection("```latex\n"+Lt+"\n```"),Tt.setCursor(an.line+1,Lt.length+1),Tt.focus();case"line-break":return Tt.replaceSelection(`
+`),Tt.focus();case"list-ul":return Lt===""?Tt.replaceSelection("- "+Lt):Tt.replaceSelection(de.map($e=>$e===""?"":`- ${$e}`).join(` +`)),Tt.focus();case"list-ol":return Lt===""?Tt.replaceSelection("1. "+Lt):Tt.replaceSelection(de.map(($e,st)=>$e===""?"":`${st+1}. ${$e}`).join(` +`)),Tt.focus();case"add-null-ch":return Lt===""&&Tt.setCursor(an.line,an.ch),Tt.replaceSelection(At),Tt.focus();case"add-signal":return Lt===""&&Tt.setCursor(an.line,an.ch),Tt.replaceSelection(Rn),Tt.focus();case"add-multiple":return Lt===""&&Tt.setCursor(an.line,an.ch),Tt.replaceSelection(In),Tt.focus();case"inster-template-1":return Lt===""&&Tt.setCursor(an.line,an.ch),Tt.replaceSelection(wn),Tt.focus();case"eraser":return Tt.setValue(""),Tt.focus();case"trigger-watch":return Yt(!va),Tt.focus();case"trigger-full-screen":return ea(!xn),Tt.focus();case wa:Ra(wa);return;case ya:Ra(ya);return;case _t:Ra(_t);return;case fn:Ra(fn);return;case"maths-latex":Ra("maths-latex");return;case St:Ra(St);return;case na:Ra(na);return;default:throw new Error}},[Tt,va,xn]),$t=(0,b.useCallback)((Tn,an)=>{var Lt,de,$e,st,jt,at;switch(Ra(""),Pn){case wa:const{title:ra,link:Ha}=Tn;return Tt.replaceSelection(`[${ra}](${Ha})`),Tt.focus();case ya:const{language:Za,content:mn}=Tn;return Tt.replaceSelection(["```"+Za,mn,"```"].join(` +`)),Tt.focus();case"maths-latex":for(var tn=atob(Tn),Jt=new Uint8Array(tn.length),Ut=0;Ut{zr.id?Tt.replaceSelection(`![,](/api/attachments/${zr.id}?type=${zr.content_type})`):(zr==null?void 0:zr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Tt.replaceSelection("`$$"+Tn+"$$`");break;case _t:case fn:case Fn:const{src:Ia,alt:Ca}=Tn,Ga=an,Ir=($e=(de=(Lt=Ga==null?void 0:Ga.name)==null?void 0:Lt.split("."))==null?void 0:de.pop)==null?void 0:$e.call(de);return((st=Ga==null?void 0:Ga.type)==null?void 0:st.indexOf("image"))>-1||!(Ga!=null&&Ga.type)?Ga.align||Ga.width?Tt.replaceSelection(`

${Ca||

`):Tt.replaceSelection(`${Ca||`):((jt=Ga==null?void 0:Ga.type)==null?void 0:jt.indexOf("video"))>-1?Tt.replaceSelection(``):((at=Ga==null?void 0:Ga.type)==null?void 0:at.indexOf("pdf"))>-1?Tt.replaceSelection(`${Ga.name}`):xe.includes(Ir)?Tt.replaceSelection(`${Ga.name}`):Tt.replaceSelection(`[${Ga.name}](${Ia})`),Tt.focus();case na:const{row:Vr,col:Or,align:Zr}=Tn;let kr=` +`;for(let zr=0;zr{switch(Pn){case wa:return b.createElement(It,{callback:$t,onCancel:Sa});case Ea:return b.createElement(Zt.Z,{callback:$t,onCancel:Sa});case _t:return b.createElement(Qe.Z,{callback:$t,onCancel:Sa});case St:return b.createElement(On,{callback:$t,onCancel:Sa});case na:return b.createElement(qt,{callback:$t,onCancel:Sa});case"maths-latex":return b.createElement(cn,{showSaveButton:!0,callback:$t});case"inline-latex":return b.createElement(pn.Z,{showSaveButton:!0,callback:$t});default:return null}},[Pn]);function Sa(){Ra("")}(0,b.useEffect)(()=>{if(mt.current){let Rn=function(jt){$e=!0,st=jt.pageY},an=function(){$e=!1},Lt=function(jt){if($e){let at=jt.pageY-st;at<0&&(at=0),at>300&&(at=300);let tn=Mt+at+"px";Sr(tn)}},se=mt.current,$e=!1,st=0;return se.addEventListener("mousedown",Rn),document.addEventListener("mousemove",Lt),document.addEventListener("mouseup",an),()=>{se.removeEventListener("mousedown",Rn),document.removeEventListener("mousemove",Lt),document.removeEventListener("mouseup",an)}}},[Tt,mt]),(0,b.useEffect)(()=>{Sr(Mt)},[Mt]);const ar=ft(He),Ta=ft(ur),da={width:ar,height:Ta},Qa=(0,b.useMemo)(()=>{if(pa){let Rn=new Date(pa),an=Rn.getHours(),Lt=Rn.getMinutes(),se=Rn.getSeconds();return an=an<10?"0"+an:an,Lt=Lt<10?"0"+Lt:Lt,se=se<10?"0"+se:se,`${an}:${Lt}:${se}`}return 0},[pa]),vr=Rn=>{const an=[];if(Je){let Lt=-1;Rn=Rn.replace(/(@▁▁@|@▁@)/g,function(se,$e,st){an.push({multiLine:se!==Mn})})}return an};function Tr(){window.sessionStorage.removeItem(Yn),pr(!1),Va(0)}function er(){pr(!1),Va(0),Tt.setValue(window.sessionStorage.getItem(Yn))}(0,b.useEffect)(()=>{yt[Pn]&&Pn!==fn&&Pn!==St&&setTimeout(()=>{const Rn=document.getElementsByClassName("markdown-popup-form")[0],an=window.innerWidth/2-Rn.offsetWidth/2,Lt=window.innerHeight/2-Rn.offsetHeight/2;ga(an),dr(Lt)},0)},[Pn]);const cr=Rn=>{Rn.preventDefault();const an=Rn.clientX-fr,Lt=Rn.clientY-or;document.body.onmousemove=se=>{let $e=se.clientX-an,st=se.clientY-Lt;const jt=document.getElementsByClassName("markdown-popup-form")[0],at=window.innerWidth-jt.offsetWidth,tn=window.innerHeight-jt.offsetHeight;$e=Math.max(0,Math.min($e,at)),st=Math.max(0,Math.min(st,tn)),Cr(se.clientX,se.clientY,an,Lt)&&(ga($e),dr(st))},document.body.onmouseup=function(){document.body.onmousemove=null}},Cr=(Rn,an,Lt,se)=>{const $e=document.body.clientHeight,st=document.body.clientWidth;return Rn<20&&Lt>Rn||Rn>st-20&&Ltan||an>$e-20&&selt in Me?We(Me,lt,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Me[lt]=Le,z=(Me,lt)=>{for(var Le in lt||(lt={}))a.call(lt,Le)&&y(Me,Le,lt[Le]);if(E)for(var Le of E(lt))x.call(lt,Le)&&y(Me,Le,lt[Le]);return Me},ne=(Me,lt)=>Ve(Me,le(lt));const{useForm:re}=b.default,ie={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}};var fe=({callback:Me,onCancel:lt})=>{const[Le]=re();let be=(0,ke.useRef)();function Xe(gt){be.current.width=Le.getFieldValue("width"),be.current.align=Le.getFieldValue("align"),Me(gt,be.current)}function nt(gt,pt){if(gt.status===-1){he.ZP.error(gt.message);return}Le.setFieldsValue({src:`/api/attachments/${gt.id}`,type:pt.type})}function ye(gt){let pt=gt.target.files[0];be.current=pt,Ue(pt,nt)}return Te.createElement(b.default,ne(z({form:Le},ge),{className:"upload-image-panel",onFinish:Xe,style:{width:470,overflow:"hidden"}}),Te.createElement(b.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Te.createElement("div",{className:"flex-container"},Te.createElement(b.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Te.createElement(Be.default,{style:ie})),Te.createElement(Pe,{onFileChange:ye}))),Te.createElement(b.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Te.createElement(Be.default,{style:{width:264}})),Te.createElement(b.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Te.createElement(Ie.Z,null,Te.createElement(b.default.Item,{name:"width",style:{margin:0}},Te.createElement(Ce.Z,{style:{width:264}})),Te.createElement("span",{className:"ml8"},"%"))),Te.createElement(b.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Te.createElement(Ge.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Te.createElement("aside",null,Te.createElement(b.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Te.createElement(Fe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Te.createElement(Fe.ZP,{type:"default",onClick:lt},"\u53D6\u6D88"))))};function Pe({onFileChange:Me}){return Te.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Te.createElement("input",{type:"file",onChange:Me}))}function Ue(Me,lt){if(!Me)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,De.bg)())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Le=new FormData;Le.append("editormd-image-file",Me),Le.append("file_param_name","editormd-image-file"),Le.append("byxhr","true");var be=new window.XMLHttpRequest;be.withCredentials=!0,be.addEventListener("load",function(Xe){lt(JSON.parse(Xe.target.responseText),Me)},!1),be.addEventListener("error",function(Xe){console.error(Xe)},!1),be.open("POST",`${Ye.KI}/api/attachments.json`),be.send(Le)}},61569:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return Be}});var b=oe(59301),he=oe(4676);class Be extends b.Component{constructor(Ce){super(Ce);const Ge=window.document;this.node=Ge.createElement("div"),Ge.body.appendChild(this.node)}render(){const{children:Ce}=this.props;return(0,he.createPortal)(Ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23734:function(_e,Ct,oe){"use strict";oe.d(Ct,{i:function(){return ge},Z:function(){return Pe}});var b={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},he=oe(71418),Be=oe(6848),Ie=oe(93948),Ce=oe(92310),Ge=oe.n(Ce),Fe=oe(22566),Ye=oe(21692),ke=oe(16624),De=oe(79005),Te=oe(20345),We=oe(77882),Ve=oe(31081),le=oe(75309),E=oe(71979),a=oe(47558),x=oe(42922),y=oe(66832),z=oe(96593),ne=oe(19664),re=oe(91833),ie=oe(59301);const ge=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:De,swimg:Te},{name:"101\u8BA1\u5212",ptimg:We,swimg:Ve},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:le,swimg:E},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:a,swimg:x},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:y,swimg:z},{name:"\u519B\u961F\u4E00\u6D41",ptimg:ne,swimg:re}];var Pe=({className:Ue,dataSource:Me=[],col:lt=4,right:Le,bottom:be=23,precision:Xe=0,wrapWidth:nt=1200,trackEventItems:ye,loading:gt,onRemove:pt=()=>{},isCurrent:xt=!0,showAlias:ut=!1,showProgress:Kt=!1})=>{const rn=Math.floor((nt-(lt-1)*Le)/lt),It=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(Zt=>(window.ENV==="build"&&(Zt.ptimg=`/react/build${Zt.ptimg}`,Zt.swimg=`/react/build${Zt.swimg}`),Zt));return ie.createElement(he.Z,{spinning:gt},ie.createElement("div",{className:Ge()(b.list,Ue)},!!(Me!=null&&Me.length)&&(Me==null?void 0:Me.map((Zt,Qe)=>{var Oe,Et,Gt,vt,wt,Ae;const{name:dt,id:on,identifier:ct,featured:et,school_name:An,image_url:ot,excellent:Bt,is_plan:Ht}=Zt;return ie.createElement("div",{key:on,className:xt&&Kt?b.wrapisCurrent:b.wrap,style:{width:rn,marginRight:(1+Qe)%lt===0?0:Le+Xe,marginBottom:be}},ie.createElement("a",{className:b.li,onClick:ht=>{ht.preventDefault(),ht.stopPropagation(),ye&&(0,Fe.L9)([ye]),(0,Fe.xg)(`/paths/${ct}`)}},ie.createElement("div",{className:b.img},ie.createElement("img",{className:b.cover,src:`${ot}`}),xt&&(0,ke.bg)()&&(Zt==null?void 0:Zt.studying)&&ie.createElement("div",{className:`${b.movebq} user-path-items`,onClick:ht=>{ht.stopPropagation(),pt(Zt)}},ie.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ie.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Oe=Zt==null?void 0:Zt.subject_tags)==null?void 0:Oe.map((ht,On)=>{var Ot,Un;if(On===0){const kn=(Ot=It.find(qt=>qt.name==ht))==null?void 0:Ot.swimg;return ie.createElement("img",{className:b.sign,src:kn,style:{left:"-4px"}})}const Bn=(Un=It.find(kn=>kn.name==ht))==null?void 0:Un.ptimg;return ie.createElement("img",{className:b.sign,src:Bn,style:{left:`${48+52*(On-1)+2*On}px`}})}),ie.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Zt==null?void 0:Zt.excellent)&&ie.createElement("div",{className:b.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ie.createElement("div",{className:b.name},ie.createElement(Be.Z,{title:ut&&(Zt!=null&&Zt.excellent_alias_name)?ie.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${dt}`,ie.createElement("br",null),ie.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Zt==null?void 0:Zt.excellent_alias_name}`)):dt},ie.createElement("span",{className:b.e},ut&&(Zt==null?void 0:Zt.excellent_alias_name)||dt))),xt&&Kt&&((Et=Zt==null?void 0:Zt.progress)==null?void 0:Et.all_score)!=0&&ie.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ie.createElement(Ie.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Gt=Zt==null?void 0:Zt.progress)==null?void 0:Gt.my_score)/((vt=Zt==null?void 0:Zt.progress)==null?void 0:vt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(wt=Zt==null?void 0:Zt.progress)==null?void 0:wt.my_score,"/",(Ae=Zt==null?void 0:Zt.progress)==null?void 0:Ae.all_score),(!xt||!Kt)&&ie.createElement("div",{className:b.tags},ie.createElement("div",null,ie.createElement(Be.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ie.createElement("span",null,ie.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ie.createElement("span",null,Zt.stages_count))),ie.createElement(Be.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ie.createElement("span",null,ie.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ie.createElement("span",null,Zt.members_count)))))))})),!Me.length&&ie.createElement(Ye.Z,null)))}},2751:function(_e,Ct,oe){"use strict";oe.d(Ct,{jL:function(){return Ce},w9:function(){return ln},dN:function(){return va},QD:function(){return gn},cQ:function(){return vt.Z},Oz:function(){return kn},op:function(){return He},O5:function(){return Wt},_b:function(){return Qt},t7:function(){return Me},Gi:function(){return aa},YG:function(){return fn},kT:function(){return na},qp:function(){return x},K3:function(){return ne},vr:function(){return zt},qE:function(){return sn},Je:function(){return be},wb:function(){return Qe},lB:function(){return Gt},cq:function(){return At},tp:function(){return ge},Si:function(){return Yt},k8:function(){return nr},Du:function(){return Sr}});var b=oe(59301),he={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Be="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA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nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Ce=({dataSource:mt=[],img:it,imgWidth:Nt=346,title:dn,sunTitle:ia,bannerExtraContent:La})=>b.createElement("div",{className:he.banner},b.createElement("div",{className:he.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,dn),b.createElement("span",null,ia)),mt.length>0&&b.createElement("div",{className:he.btns},mt.map(($t,Fa)=>b.createElement("div",{key:Fa,onClick:$t.click},$t.name,$t.sign?b.createElement("img",{src:Be,width:39}):null))),La),it&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:it,width:Nt}))),Ge={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Fe=oe(92310),Ye=oe.n(Fe),ke=oe(89392),De=Object.defineProperty,Te=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,le=(mt,it,Nt)=>it in mt?De(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):mt[it]=Nt,E=(mt,it)=>{for(var Nt in it||(it={}))We.call(it,Nt)&&le(mt,Nt,it[Nt]);if(Te)for(var Nt of Te(it))Ve.call(it,Nt)&&le(mt,Nt,it[Nt]);return mt},x=({dataSource:mt=[],value:it,onChange:Nt,onTitleChange:dn,className:ia,title:La,titleWidth:$t=41,style:Fa={},fontColor:Sa="#6A7283",showCount:ar,classNameActive:Ta,styleItem:da={}})=>{const[Qa,vr]=(0,b.useState)(0),[Tr,er]=(0,b.useState)(!1),cr=(0,b.useRef)(null),Cr=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var Rn;mt.length!==0&&(((Rn=cr==null?void 0:cr.current)==null?void 0:Rn.clientHeight)>97?vr(1):vr(0)),mt.length===0&&vr(0),er(!1)},[mt]),b.createElement("div",{className:Ye()(Ge.row,ia),style:Fa},b.createElement("div",{onClick:(0,ke.throttle)(()=>dn==null?void 0:dn(),2e3),style:{width:$t,marginTop:Tr?12:4},className:`${Ge.title} ${dn?"current":""}`},La),b.createElement("div",{className:Tr?`${Ge.tagsWrap} ${Ge.tagsBorderWrap}`:Ge.tagsWrap},b.createElement("div",{className:Ge.bar,ref:Cr,style:Qa>0?{height:Qa===1?97:"auto",overflow:Qa===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:Ge.tag,ref:cr},mt==null?void 0:mt.map(Rn=>b.createElement("span",{onClick:()=>Nt(Rn.id),key:Rn.id,style:E(E({color:Sa},da),(Rn==null?void 0:Rn.style)||{}),className:it===Rn.id?Ye()(Ta||Ge.active,Rn.classNameActive):""},b.createElement("span",{title:Rn.name,className:Ge.name},Rn.name),!!ar&&b.createElement("span",{className:Ge.num},Rn.count))))),!!Qa&&b.createElement(b.Fragment,null,Qa===1?b.createElement("div",{onClick:()=>{var Rn;vr(2),((Rn=cr==null?void 0:cr.current)==null?void 0:Rn.clientHeight)>245?er(!0):er(!1)},className:Ge.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{Cr.current.scrollTop=0,vr(1),er(!1)},className:Ge.action},"\u6536\u8D77",b.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},y={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},ne=({dataSource:mt=[],value:it,onChange:Nt,onTitleChange:dn,className:ia,title:La,titleWidth:$t=41,style:Fa={},fontColor:Sa="#6A7283",showCount:ar,expand:Ta=!0})=>{const[da,Qa]=(0,b.useState)(0),[vr,Tr]=(0,b.useState)(!1),er=(0,b.useRef)(null),cr=(0,b.useRef)(null),[Cr,Rn]=(0,b.useState)(Ta);return b.createElement("div",{className:Ye()(y.row,ia),style:Fa},b.createElement("div",{className:"flex item-center justify-between"},b.createElement("div",{onClick:(0,ke.throttle)(()=>dn==null?void 0:dn(),2e3),style:{width:$t,marginTop:vr?12:4},className:`${y.title} ${dn?"current":""}`},La),b.createElement("i",{className:`iconfont ${Cr?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:Cr?8:10},onClick:()=>Rn(!Cr)})),Cr&&b.createElement("div",{className:vr?`${y.tagsWrap} ${y.tagsBorderWrap}`:y.tagsWrap},b.createElement("div",{className:y.fenge}),b.createElement("div",{className:y.bar,ref:cr},b.createElement("div",{className:y.tag,ref:er},mt==null?void 0:mt.map(an=>b.createElement("span",{onClick:()=>Nt(an.id),key:an.id,style:{color:Sa},className:it===an.id?y.active:""},b.createElement("span",{title:an.name,className:y.name},an.name),!!ar&&b.createElement("span",{className:y.num},an.count)))))))},re={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},ge=({dataSource:mt=[],value:it,onChange:Nt,className:dn,style:ia={}})=>b.createElement("div",{style:ia,className:Ye()(re.tabs,dn)},mt.map(La=>b.createElement("span",{onClick:()=>Nt(La.id),className:it===La.id?re.active:"",key:La.id},La.name))),fe={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Pe=oe(92832),Me=({dataSource:mt=[],value:it="",onChange:Nt,onInputChange:dn=()=>{},className:ia,style:La={},placeholder:$t,allowClear:Fa=!1})=>{var Sa;const[ar,Ta]=(0,b.useState)(""),[da,Qa]=(0,b.useState)("");(0,b.useEffect)(()=>{var er;let cr=it;(er=JSON.stringify(it))!=null&&er.includes("{")&&(Ta(it.id),cr=it.value||"");try{Qa(decodeURIComponent(cr||""))}catch(Cr){Qa(decodeURIComponent(cr||""))}},[it]);const vr=()=>{Nt(encodeURIComponent(da),ar||null)},Tr=er=>{er!==ar&&(Ta(er),Nt(encodeURIComponent(da),er))};return b.createElement("div",{className:Ye()(fe.input,ia),style:La},!!mt.length&&b.createElement("div",{className:fe.dropdown},b.createElement("div",{className:fe.text},(Sa=mt.find(er=>er.id===ar))==null?void 0:Sa.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:fe.b1}),b.createElement("b",{className:fe.b2})),b.createElement("div",{className:fe.menu},mt.map((er,cr)=>b.createElement("div",{key:cr,onClick:()=>Tr(er.id)},er.name)))),b.createElement(Pe.default,{onPressEnter:vr,value:da,onChange:er=>{Qa(er.target.value),dn(encodeURIComponent(er.target.value),ar||null)},bordered:!1,placeholder:$t}),b.createElement("i",{onClick:vr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},lt={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},be=({value:mt,onChange:it,className:Nt,total:dn,pageSize:ia,style:La={}})=>{const $t=mt<2,Fa=mt>=Math.ceil(dn/ia);return dn<=ia?b.createElement(b.Fragment,null):b.createElement("div",{className:Ye()(lt.quickPager,Nt),style:La},b.createElement("div",{onClick:()=>{$t||it(mt-1,"prev")},className:$t?lt.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{Fa||it(mt+1,"next")},className:Fa?lt.disabled:""},"\u4E0B\u4E00\u9875"))},Xe={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},nt=oe(71418),ye=oe(6848),gt=oe(13570),pt=oe(11662),xt=oe(22566),ut=oe(96908),Kt=oe(57177),rn=oe(81378),It=oe(21692),Qe=({className:mt,dataSource:it=[],col:Nt=4,right:dn,bottom:ia=23,precision:La=0,wrapWidth:$t=1200,trackEventItems:Fa,loading:Sa})=>{const ar=Math.floor(($t-(Nt-1)*dn)/Nt);return b.createElement(nt.Z,{spinning:Sa},b.createElement("div",{className:Ye()(Xe.list,mt)},!!it.length&&it.map((Ta,da)=>{const{name:Qa,id:vr,identifier:Tr,power:er,cover_image_id:cr,pic:Cr}=Ta;return b.createElement("div",{className:Xe.wrap,key:vr,style:{width:ar,marginRight:(1+da)%Nt===0?0:dn+La,marginBottom:ia}},b.createElement("a",{target:"_blank",href:`/shixuns/${Tr}/challenges`,className:Xe.li,onClick:Rn=>{Rn.preventDefault(),Fa&&(0,xt.L9)([Fa]),er&&(0,xt.xg)(`/shixuns/${Tr}/challenges`)}},b.createElement("div",{className:Xe.img},b.createElement("img",{className:Xe.cover,src:`${Cr}`}),Ta.is_jupyter&&b.createElement("img",{className:Xe.sign,src:ut}),Ta.is_jupyter_lab&&b.createElement("img",{className:Xe.sign,src:Kt}),Ta.is_unity_3d&&b.createElement("img",{className:Xe.sign,src:rn})),b.createElement("div",{className:Xe.name},b.createElement(ye.Z,{title:Qa||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:Xe.e},Qa||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{className:Xe.tags},b.createElement(ye.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,Ta.challenges_count))),!!Ta.myshixuns_count&&b.createElement(ye.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),b.createElement("span",null,Ta.myshixuns_count))),b.createElement(ye.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,Ta.level))),b.createElement("div",{className:Xe.rate},b.createElement(gt.Z,{allowHalf:!0,disabled:!0,defaultValue:Ta.score_info}),b.createElement("span",null,"\xA0",Ta.score_info?`${Ta.score_info}\u5206`:"5\u5206")))),!er&&b.createElement("div",{className:Xe.lockWrap},b.createElement("img",{src:`${pt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!it.length&&b.createElement(It.Z,null)))},Oe={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},Gt=({className:mt,dataSource:it=[],col:Nt=4,right:dn,bottom:ia=23,precision:La=0,wrapWidth:$t=1200,wrapClassName:Fa,trackEventItems:Sa,loading:ar})=>{const Ta=Math.floor(($t-(Nt-1)*dn)/Nt);return b.createElement(nt.Z,{spinning:ar},b.createElement("div",{className:Ye()(Oe.list,mt)},!!it.length&&it.map((da,Qa)=>{const{name:vr,id:Tr,identifier:er,power:cr,cover_image_id:Cr,pic:Rn}=da;return b.createElement("div",{className:Ye()(Oe.wrap,Fa),key:Tr,style:{width:Ta,marginRight:(1+Qa)%Nt===0?0:dn+La,marginBottom:ia}},b.createElement("a",{target:"_blank",href:`/shixuns/${er}/challenges`,className:Oe.li,onClick:an=>{an.preventDefault(),Sa&&(0,xt.L9)([Sa]),cr&&(0,xt.xg)(`/shixuns/${er}/challenges`)}},b.createElement("img",{src:oe(47621),className:Oe.titleBg}),b.createElement("div",{className:Oe.name},b.createElement(ye.Z,{title:vr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:Oe.e},vr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{style:{padding:"14px",paddingBottom:0}},b.createElement("div",{className:Oe.img},b.createElement("img",{className:Oe.cover,src:Cr?`${pt.Z.API_SERVER}/api/attachments/${Cr}`:`${pt.Z.IMG_SERVER+Rn}`}),da.is_jupyter&&b.createElement("div",{className:Oe.bq},"Jupyter"),da.is_jupyter_lab&&b.createElement("div",{className:Oe.bq},"JupyterLab"),da.is_unity_3d&&b.createElement("div",{className:Oe.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),b.createElement("div",{className:"mt20 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:Oe.text},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:Oe.value},da.myshixuns_count)),b.createElement("div",null,b.createElement("span",{className:Oe.text},"\u56F0\u96BE\u7B49\u7EA7"),b.createElement("span",{className:Oe.value},da.level))),b.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:Oe.text},"\u5173\u5361\u6570"),b.createElement("span",{className:Oe.value},da.challenges_count)),b.createElement("div",{className:Oe.rate},b.createElement(gt.Z,{allowHalf:!0,disabled:!0,defaultValue:da.score_info}),b.createElement("span",{className:Oe.value,style:{color:"#FF9C00"}},"\xA0",da.score_info?`${da.score_info}\u5206`:"5\u5206"))))),!cr&&b.createElement("div",{className:Oe.lockWrap},b.createElement("img",{src:`${pt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!it.length&&b.createElement(It.Z,null)))},vt=oe(23734),wt={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},Ae=oe(79005),dt=oe(20345),on=oe(77882),ct=oe(31081),et=oe(75309),An=oe(71979),ot=oe(47558),Bt=oe(42922),Ht=oe(66832),ht=oe(96593),On=oe(19664),Ot=oe(91833);const Un=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ae,swimg:dt},{name:"101\u8BA1\u5212",ptimg:on,swimg:ct},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:et,swimg:An},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:ot,swimg:Bt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Ht,swimg:ht},{name:"\u519B\u961F\u4E00\u6D41",ptimg:On,swimg:Ot}];var kn=({className:mt,dataSource:it=[],col:Nt=4,right:dn,bottom:ia=23,precision:La=0,wrapWidth:$t=1200,trackEventItems:Fa,loading:Sa,wrapClassName:ar,imgClassName:Ta,isArrow:da=!1})=>{const Qa=Math.floor(($t-(Nt-1)*dn)/Nt),[vr,Tr]=(0,b.useState)(),[er,cr]=(0,b.useState)(),Cr=an=>Tr(an),Rn=()=>Tr(-1);return b.createElement(nt.Z,{spinning:Sa},b.createElement("div",{className:Ye()(wt.list,mt)},!!(it!=null&&it.length)&&(it==null?void 0:it.map((an,Lt)=>{var se;const{name:$e,id:st,identifier:jt,featured:at,school_name:tn,image_url:Jt,excellent:Ut,is_plan:Xt}=an;return b.createElement("div",{key:st,className:Ye()(wt.wrap,ar),style:{width:Qa,marginRight:(1+Lt)%Nt===0?0:dn+La,marginBottom:ia}},b.createElement("a",{target:"_blank",href:`/paths/${jt}`,className:wt.li,onClick:ra=>{ra.preventDefault(),Fa&&(0,xt.L9)([Fa]),(0,xt.xg)(`/paths/${jt}`)}},b.createElement("img",{src:oe(39057),className:wt.titleBg}),b.createElement("div",{className:wt.name},b.createElement(ye.Z,{title:$e},b.createElement("span",{className:wt.e,style:{color:da&&vr===Lt?"#145DFF":"#000000"},onMouseEnter:()=>{Cr(Lt)},onMouseLeave:Rn},$e))),b.createElement("div",{style:{padding:"14px",paddingBottom:0}},b.createElement("div",{className:Ye()(wt.img,Ta)},b.createElement("img",{className:wt.cover,src:`${pt.Z.IMG_SERVER+Jt}`}),(se=an==null?void 0:an.subject_tags)==null?void 0:se.map((ra,Ha)=>{var Za,mn;if(Ha===0){const Ca=(Za=Un.find(Ga=>Ga.name==ra))==null?void 0:Za.swimg;return b.createElement("img",{className:wt.sign,src:Ca,style:{left:"-4px"}})}const Ia=(mn=Un.find(Ca=>Ca.name==ra))==null?void 0:mn.ptimg;return b.createElement("img",{className:wt.sign,src:Ia,style:{left:`${48+52*(Ha-1)+2*Ha}px`}})}),b.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(an==null?void 0:an.excellent)&&b.createElement("div",{className:wt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),b.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:wt.text},"\u7AE0\u8282\u6570"),b.createElement("span",{className:wt.value},an.stages_count)),b.createElement("div",null,b.createElement("span",{className:wt.text},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:wt.value},an.members_count))))))})),!it.length&&b.createElement(It.Z,null)))},qt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ca="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqia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8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",zn=oe(59301),ln=({className:mt,dataSource:it=[],col:Nt=4,right:dn,bottom:ia=23,precision:La=0,wrapWidth:$t=1200,trackEventItems:Fa,loading:Sa})=>{const ar=Math.floor(($t-(Nt-1)*dn)/Nt);return zn.createElement(nt.Z,{spinning:Sa},zn.createElement("div",{className:Ye()(qt.list,mt)},!!it.length&&it.map((Ta,da)=>{const{subject_identifier:Qa,id:vr,identifier:Tr,power:er}=Ta,cr=Ta.is_public!=0&&Ta.is_public;return zn.createElement("div",{className:qt.wrap,key:vr,style:{width:ar,marginRight:(1+da)%Nt===0?0:dn+La,marginBottom:ia}},zn.createElement("a",{className:qt.li,onClick:Cr=>{Cr.preventDefault(),Fa&&(0,xt.L9)([Fa]),(0,xt.xg)(Ta.first_category_url)}},zn.createElement("div",{className:qt.top},zn.createElement(ye.Z,{title:Ta.name},zn.createElement("div",{className:qt.name},Ta.name)),zn.createElement("img",{className:qt.img,src:pt.Z.IMG_SERVER+"/images/"+Ta.avatar_url}),zn.createElement("div",{className:qt.text,title:Ta.creator},Ta.creator),Qa&&zn.createElement("div",{className:qt.btns},zn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),zn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),cr&&zn.createElement("div",{className:qt.sign},"\u516C\u5F00")),zn.createElement("div",{className:qt.bottom},Ta.visits>0&&zn.createElement(ye.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},zn.createElement("span",null,zn.createElement("i",{className:"iconfont icon-liulanyan"}),zn.createElement("span",null,Ta.visits))),Ta.course_members_count>0&&zn.createElement(ye.Z,{title:"\u6210\u5458",placement:"bottom"},zn.createElement("span",null,zn.createElement("i",{className:"iconfont icon-chengyuan"}),Ta.course_members_count)),Ta.tasks_count>0&&zn.createElement(ye.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},zn.createElement("span",null,zn.createElement("i",{className:"iconfont icon-zuoye"}),Ta.tasks_count)),Ta.is_end?zn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):zn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Ta.is_accessible&&zn.createElement("div",{className:qt.lockWrap},zn.createElement("img",{src:`${pt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),zn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!it.length&&zn.createElement(It.Z,null)))},cn={flex_box_center:"flex_box_center___PuarE",flex_space_between:"flex_space_between___q4lAa",flex_box_vertical_center:"flex_box_vertical_center___wsb8w",flex_box_center_end:"flex_box_center_end___H781P",flex_box_column:"flex_box_column___bHK1y",list:"list___e2XDo",wrap:"wrap___cz7sh",lockWrap:"lockWrap___EPuRr",creator:"creator___Y6Xjp",img:"img___kSEud",text:"text___GIlhY",top:"top___K4GCD",sign:"sign___KCjEP",name:"name___z3U4d",middle:"middle___LeUM5",row:"row___VBzfJ",value:"value___qigWu",btns:"btns___kGysm",bottom:"bottom___yPYd5",warpStyle:"warpStyle___pH3uC"},pn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gcTCZqyvRbWARZHQLlavp8ZG20P9rXcHhEmI07kdtsODasA5/OlX6gy/dfF/bbTV5GmHeL3JBLRx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7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",va=({className:mt,dataSource:it=[],col:Nt=4,right:dn,bottom:ia=23,precision:La=0,wrapWidth:$t=1200,wrapClassName:Fa,trackEventItems:Sa,loading:ar})=>{const Ta=Math.floor(($t-(Nt-1)*dn)/Nt);return b.createElement(nt.Z,{spinning:ar},b.createElement("div",{className:Ye()(cn.list,mt)},!!it.length&&it.map((da,Qa)=>{const{subject_identifier:vr,id:Tr,identifier:er,power:cr}=da,Cr=da.is_public!=0&&da.is_public;return b.createElement("div",{className:Ye()(`${cn.wrap} ${da.is_accessible?"":cn.warpStyle}`,Fa),key:Tr,style:{width:Ta,marginRight:(1+Qa)%Nt===0?0:dn+La,marginBottom:ia}},b.createElement("a",{className:cn.li,onClick:Rn=>{Rn.preventDefault(),Sa&&(0,xt.L9)([Sa]),(0,xt.xg)(da.first_category_url)}},b.createElement("div",{className:cn.creator},b.createElement("img",{className:cn.img,src:pt.Z.IMG_SERVER+"/images/"+da.avatar_url}),b.createElement("div",{className:cn.text,title:da.creator},da.creator)),b.createElement("div",{className:cn.top},b.createElement(ye.Z,{title:da.name},b.createElement("div",{className:cn.name},da.name)),Cr&&b.createElement("div",{className:cn.sign},"\u516C\u5F00")),b.createElement("div",{className:cn.middle},b.createElement("div",{className:cn.row,style:{marginBottom:6}},b.createElement("div",null,b.createElement("span",{className:cn.text},"\u8BBF\u95EE\u91CF"),b.createElement("span",{className:cn.value},(da==null?void 0:da.visits)||0)),b.createElement("div",null,b.createElement("span",{className:cn.text},"\u6210\u5458"),b.createElement("span",{className:cn.value},(da==null?void 0:da.course_members_count)||0))),b.createElement("div",{className:cn.row},b.createElement("div",null,b.createElement("span",{className:cn.text,style:{width:42}},"\u4F5C",b.createElement("span",{style:{marginLeft:14}},"\u4E1A")),b.createElement("span",{className:cn.value},(da==null?void 0:da.tasks_count)||0)),b.createElement("div",null,b.createElement("span",{className:cn.text},"\u72B6\u6001"),da.is_end?b.createElement("span",{className:cn.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):b.createElement("span",{className:cn.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),vr&&b.createElement("div",{className:cn.btns},b.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),b.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!da.is_accessible&&b.createElement("div",{className:cn.lockWrap},b.createElement("img",{src:`${pt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!it.length&&b.createElement(It.Z,null)))},wa={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},_t=oe(90115),fn=({dataSource:mt=[],value:it,onChange:Nt,className:dn,style:ia={},tabBarExtraContent:La})=>b.createElement("div",{className:Ye()(wa.tabs,dn),style:ia},b.createElement("div",{className:wa.tabsWrap},mt.map(($t,Fa)=>b.createElement("aside",{className:wa.tab,onClick:()=>{Nt($t.id),$t.link&&_t.history.push($t.link)},key:Fa},b.createElement("div",{className:it===$t.id?wa.active:""},$t.name),($t==null?void 0:$t.resetCount)==null&&($t==null?void 0:$t.total)!==void 0&&b.createElement("span",null,"\uFF08",$t==null?void 0:$t.total,"\uFF09"),($t==null?void 0:$t.resetCount)!==void 0&&($t==null?void 0:$t.total)!==void 0&&b.createElement(ye.Z,{title:($t==null?void 0:$t.tip)!=null?$t==null?void 0:$t.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},$t==null?void 0:$t.resetCount),"/",b.createElement("span",null,$t==null?void 0:$t.total),"\uFF09"))))),b.createElement("div",{className:wa.tabBar},La)),Fn={flex_box_center:"flex_box_center___itkVp",flex_space_between:"flex_space_between___F4yZx",flex_box_vertical_center:"flex_box_vertical_center___ko4cu",flex_box_center_end:"flex_box_center_end___cCBYR",flex_box_column:"flex_box_column___Mpq6K",tabs:"tabs___qRAhL",tabsWrap:"tabsWrap___CGRvS",tab:"tab___eYne_",active:"active___swSx6"},na=({dataSource:mt=[],value:it,onChange:Nt,className:dn,style:ia={},tabBarExtraContent:La})=>b.createElement("div",{className:Ye()(Fn.tabs,dn),style:ia},b.createElement("div",{className:Fn.tabsWrap},mt.map(($t,Fa)=>b.createElement("aside",{className:Fn.tab,onClick:()=>{Nt($t.id),$t.link&&_t.history.push($t.link)},key:Fa},b.createElement("div",{className:it===$t.id?Fn.active:""},$t.name),($t==null?void 0:$t.resetCount)==null&&($t==null?void 0:$t.total)!==void 0&&b.createElement("span",null,"\uFF08",$t==null?void 0:$t.total,"\uFF09"),($t==null?void 0:$t.resetCount)!==void 0&&($t==null?void 0:$t.total)!==void 0&&b.createElement(ye.Z,{title:($t==null?void 0:$t.tip)!=null?$t==null?void 0:$t.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},$t==null?void 0:$t.resetCount),"/",b.createElement("span",null,$t==null?void 0:$t.total),"\uFF09"))))),b.createElement("div",{className:Fn.tabBar},La)),aa=({className:mt,style:it={},children:Nt})=>b.createElement("div",{className:Ye()(mt),style:it},Nt),Wn={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Ya=oe(38854),Ma=oe(20834);const Ja=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var At=({sortValue:mt,dropValue:it,className:Nt,onSort:dn,onDrop:ia,dataSource:La=Ja})=>{var $t;return b.createElement("div",{className:Ye()(Wn.orderWrap,Nt)},b.createElement(Ya.Z,{dropdownRender:()=>b.createElement(Ma.default,null,La.map((Fa,Sa)=>b.createElement(Ma.default.Item,{key:Sa,onClick:()=>ia(Fa.id)},Fa.name)))},b.createElement("span",{className:Wn.orderTextWrap},($t=La.find(Fa=>it===Fa.id))==null?void 0:$t.name)),b.createElement("span",{className:Wn.orderIconWrap},b.createElement("span",{className:Wn.orderAsc},b.createElement("i",{className:mt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Wn.cursorPointer} ${Wn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Wn.cursorPointer}`,onClick:()=>dn(mt==="asc"?"desc":"asc")})),b.createElement("span",{className:Wn.orderDesc},b.createElement("i",{className:mt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Wn.cursorPointer} ${Wn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Wn.cursorPointer}`,onClick:()=>dn(mt==="asc"?"desc":"asc")}))))},Ln={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v",ThemeOne:"ThemeOne___iCQio"},Mn=oe(3113),xn=oe(39587),xe=Object.defineProperty,ft=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,Rt=(mt,it,Nt)=>it in mt?xe(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):mt[it]=Nt,yt=(mt,it)=>{for(var Nt in it||(it={}))Ft.call(it,Nt)&&Rt(mt,Nt,it[Nt]);if(ft)for(var Nt of ft(it))Vt.call(it,Nt)&&Rt(mt,Nt,it[Nt]);return mt},hn=(mt,it)=>{var Nt={};for(var dn in mt)Ft.call(mt,dn)&&it.indexOf(dn)<0&&(Nt[dn]=mt[dn]);if(mt!=null&&ft)for(var dn of ft(mt))it.indexOf(dn)<0&&Vt.call(mt,dn)&&(Nt[dn]=mt[dn]);return Nt},je=(mt,it,Nt)=>new Promise((dn,ia)=>{var La=Sa=>{try{Fa(Nt.next(Sa))}catch(ar){ia(ar)}},$t=Sa=>{try{Fa(Nt.throw(Sa))}catch(ar){ia(ar)}},Fa=Sa=>Sa.done?dn(Sa.value):Promise.resolve(Sa.value).then(La,$t);Fa((Nt=Nt.apply(mt,it)).next())}),He=mt=>{var it=mt,{className:Nt,style:dn,children:ia,loading:La=!1,openLoading:$t,onClick:Fa=()=>{},size:Sa="middle",shape:ar="round",theme:Ta}=it,da=hn(it,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[Qa,vr]=(0,b.useState)(!1),Tr=(0,b.useMemo)(()=>{switch(Ta){case xn.Fy.THEMEONE:return Ln.ThemeOne;case xn.Fy.DEFAULT:default:return Ln.btn}},[Ta]);return b.createElement(Mn.ZP,yt({onClick:(0,ke.throttle)(er=>je(void 0,null,function*(){$t&&vr(!0);try{yield Fa(er)}catch(cr){console.log("error",cr)}$t&&vr(!1)}),2e3,{leading:!0,trailing:!1}),className:Ye()(Tr,Ln[`${Sa}-${ar}`],Nt),style:dn,size:Sa,shape:ar,loading:Qa||La},da),ia)},Mt={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},sn=({className:mt,style:it,children:Nt=null,onClick:dn,title:ia})=>b.createElement("div",{className:Ye()(Mt.head,mt),style:it},b.createElement("span",{className:"primary-hover",onClick:dn},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:ia},ia),b.createElement("div",{className:Mt.node},Nt)),Xn={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},gn=({confirmShow:mt=!0,confirmTitle:it,confirmClick:Nt,cancelShow:dn=!0,cancelTitle:ia,cancelClick:La,className:$t,style:Fa,confirmLoading:Sa=!1})=>b.createElement("div",{className:Ye()(Xn.btns,$t),style:Fa},mt&&b.createElement(Mn.ZP,{loading:Sa,onClick:Nt,type:"primary",className:Xn.confirm},it),dn&&b.createElement(Mn.ZP,{onClick:La,className:Xn.cancel},ia)),Yn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},zt=({className:mt,style:it={},LeftContent:Nt,children:dn,RightContent:ia})=>b.createElement("div",{className:Ye()(Yn.fixedBottom,mt),style:it},b.createElement("div",{className:Yn.wrap},b.createElement("div",{className:Yn.left},Nt),b.createElement("div",{className:Yn.center},dn),b.createElement("div",{className:Yn.right},ia))),_n={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Qt=({className:mt,style:it={},dataSource:Nt=[]})=>b.createElement("div",{className:Ye()(_n.crumbs,mt),style:it},Nt.map((dn,ia)=>ia_t.history.push(dn.path)},dn.name):b.createElement("span",null,dn.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:ia,style:{color:"#5F6368"}},dn.name))),bn=oe(31797),tt=Object.defineProperty,Jn=Object.defineProperties,In=Object.getOwnPropertyDescriptors,sa=Object.getOwnPropertySymbols,Zn=Object.prototype.hasOwnProperty,za=Object.prototype.propertyIsEnumerable,la=(mt,it,Nt)=>it in mt?tt(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):mt[it]=Nt,_a=(mt,it)=>{for(var Nt in it||(it={}))Zn.call(it,Nt)&&la(mt,Nt,it[Nt]);if(sa)for(var Nt of sa(it))za.call(it,Nt)&&la(mt,Nt,it[Nt]);return mt},$a=(mt,it)=>Jn(mt,In(it)),sr=(mt,it)=>{var Nt={};for(var dn in mt)Zn.call(mt,dn)&&it.indexOf(dn)<0&&(Nt[dn]=mt[dn]);if(mt!=null&&sa)for(var dn of sa(mt))it.indexOf(dn)<0&&za.call(mt,dn)&&(Nt[dn]=mt[dn]);return Nt};const{Countdown:Tt}=bn.default;var Wt=mt=>{var it=mt,{onChange:Nt}=it,dn=sr(it,["onChange"]);const[ia,La]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof ia=="number"&&ia>=0&&Nt(ia)},[ia]);const $t=Fa=>{const Sa=Math.floor(Fa/1e3);La(Sa)};return b.createElement(Tt,$a(_a({},dn),{onChange:$t}))},xa={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},Yt=({DataProps:mt,className:it,style:Nt={}})=>{var dn;return b.createElement("div",{className:Ye()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",xa.ClassRoomItem,it),style:Nt,onClick:()=>{(0,xt.xg)(mt==null?void 0:mt.first_category_url)}},b.createElement("div",{className:"flex flex-col item-center"},b.createElement("img",{src:`${(dn=pt.Z)==null?void 0:dn.IMG_SERVER}/images/${mt==null?void 0:mt.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(mt==null?void 0:mt.subject_identifier)&&b.createElement("div",{className:"mt-40px"},b.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),b.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),b.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},b.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(mt!=null&&mt.is_public)&&b.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),b.createElement("span",{className:Ye()("text-16px font-medium",xa.TitleDom)},mt==null?void 0:mt.name)),b.createElement("div",{className:"c-grey-333 font-medium"},mt==null?void 0:mt.creator),b.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",mt==null?void 0:mt.course_members_count),b.createElement("div",{className:"c-grey-333 flex item-center justify-between"},b.createElement("div",null,"\u4F5C\u4E1A\uFF1A",mt==null?void 0:mt.tasks_count),mt!=null&&mt.is_end?b.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):b.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},Cn=Object.defineProperty,ea=Object.getOwnPropertySymbols,Pn=Object.prototype.hasOwnProperty,Ra=Object.prototype.propertyIsEnumerable,pa=(mt,it,Nt)=>it in mt?Cn(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):mt[it]=Nt,Va=(mt,it)=>{for(var Nt in it||(it={}))Pn.call(it,Nt)&&pa(mt,Nt,it[Nt]);if(ea)for(var Nt of ea(it))Ra.call(it,Nt)&&pa(mt,Nt,it[Nt]);return mt},Sr=({DataProps:mt=[],selectValue:it,onChange:Nt,className:dn,style:ia={},extra:La,classNameItem:$t,styleItem:Fa={},barHidden:Sa})=>{const[ar,Ta]=(0,b.useState)();return(0,b.useEffect)(()=>{Ta(Array.isArray(it)?it:[it])},[it]),b.createElement("div",{className:Ye()("flex px-20px py-10px gap-40px",dn),style:Va({borderBottom:"1px solid #D3F0FF"},ia)},mt==null?void 0:mt.map(da=>b.createElement("div",{key:da==null?void 0:da.id,className:Ye()("flex item-center justify-center current c-grey-333 text-16 relative",$t,da==null?void 0:da.className),style:Va(Va({color:ar!=null&&ar.includes(da==null?void 0:da.id)?"#1890FF":"",minWidth:88},Fa),(da==null?void 0:da.style)||{}),onClick:Qa=>{Nt==null||Nt({domEvent:Qa,item:da}),da!=null&&da.link&&_t.history.push(da==null?void 0:da.link)}},da==null?void 0:da.name,!Sa&&(ar==null?void 0:ar.includes(da==null?void 0:da.id))&&b.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),b.createElement("div",{className:"ml-auto"},La))},Nr=Object.defineProperty,pr=Object.defineProperties,Yr=Object.getOwnPropertyDescriptors,Xa=Object.getOwnPropertySymbols,qa=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable,ga=(mt,it,Nt)=>it in mt?Nr(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):mt[it]=Nt,or=(mt,it)=>{for(var Nt in it||(it={}))qa.call(it,Nt)&&ga(mt,Nt,it[Nt]);if(Xa)for(var Nt of Xa(it))fr.call(it,Nt)&&ga(mt,Nt,it[Nt]);return mt},dr=(mt,it)=>pr(mt,Yr(it)),nr=({value:mt,onChange:it,onInputChange:Nt,className:dn,style:ia={},InputProps:La})=>{const[$t,Fa]=(0,b.useState)(mt);return b.createElement("div",{className:Ye()("flex item-center rounded-full px-10px py-2px",dn),style:or({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},ia)},b.createElement(Pe.default,dr(or({bordered:!1},La),{onChange:Sa=>{Fa(Sa.target.value),Nt==null||Nt(encodeURIComponent(Sa.target.value))},onPressEnter:Sa=>{it==null||it({domEvent:Sa,item:{value:$t}})}})),b.createElement("img",{className:"h-22px current",src:oe(25365),height:22,onClick:Sa=>{it==null||it({domEvent:Sa,item:{value:$t}})}}))}},29152:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return he}});var b=oe(59301);function he(Be,Ie){const Ce=(0,b.useRef)();(0,b.useEffect)(()=>{Ce.current=Be}),(0,b.useEffect)(()=>{function Ge(){Ce.current()}if(Ie!==null){let Fe=setInterval(Ge,Ie);return()=>clearInterval(Fe)}},[Ie])}},13778:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return E}});var b=oe(59301),he=oe(8591),Be=oe(43418),Ie=oe(19842),Ce=oe(54580),Ge=oe(3113),Fe=oe(11662),Ye=oe(22566),ke=oe(64866),De=oe(90115),Te={customModal:"customModal___bVzUV",content:"content___oKhZq",upload:"upload___nPxEL",infoText:"infoText___gZEJF",okBtn:"okBtn___CVo2A",fileList:"fileList___tauGN",fileName:"fileName___T_8JX",selectitems:"selectitems___imW2Y"},We=oe(59301),Ve=(a,x,y)=>new Promise((z,ne)=>{var re=fe=>{try{ge(y.next(fe))}catch(Pe){ne(Pe)}},ie=fe=>{try{ge(y.throw(fe))}catch(Pe){ne(Pe)}},ge=fe=>fe.done?z(fe.value):Promise.resolve(fe.value).then(re,ie);ge((y=y.apply(a,x)).next())}),E=({visible:a,onOk:x,onCancel:y,sub_discipline_id:z=[]})=>{const[ne,re]=(0,b.useState)([]),[ie,ge]=(0,b.useState)(!1),fe=(0,De.useParams)(),[Pe,Ue]=(0,b.useState)([]),[Me,lt]=(0,b.useState)([]);(0,b.useEffect)(()=>{a?Le():(lt([]),re([]),ge(!1))},[a]);const Le=()=>Ve(void 0,null,function*(){const pt=yield(0,ke.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});Ue(pt.disciplines||[]),lt((z==null?void 0:z.length)>0?z:[])}),be=()=>{if((Me==null?void 0:Me.length)===0)return he.ZP.warning("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF01");console.log("subDisciplineId",Me),ge(!0),x(ne,Me[1],()=>{ge(!1)})},Xe=()=>{y()},nt=()=>{const pt=`${Fe.Z.API_SERVER}/api/courses/${fe.coursesId}/exercises/down_template`;(0,Ye.Nd)(null,pt)},ye=pt=>{const xt={name:pt.name,uid:pt.uid,file:pt};return re([xt]),!1},gt=()=>{re([])};return We.createElement(Be.default,{title:"\u5BFC\u5165\u8BD5\u9898",open:a,onOk:be,centered:!0,wrapClassName:Te.customModal,onCancel:Xe,width:663,okText:"\u786E\u8BA4",okButtonProps:{className:Te.okBtn},cancelText:"\u53D6\u6D88",confirmLoading:ie},We.createElement("div",{className:Te.content},We.createElement("aside",null,We.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA41"),We.createElement("ul",null,We.createElement("li",null,We.createElement("span",{style:{color:"#5F6367"}},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),We.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginLeft:20},onClick:nt},"\u4E0B\u8F7D\u8003\u8BD5\u8BD5\u9898\u6A21\u677F"),We.createElement("i",{className:"iconfont icon-xiazai4 ml10",onClick:nt,style:{fontSize:14,cursor:"pointer",color:"#0152d9"}})),We.createElement("li",{style:{color:"#FA6400"},className:"mt10"},"\u63D0\u793A"),We.createElement("li",{className:Te.infoText},"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B "),We.createElement("li",{className:Te.infoText},"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),We.createElement("li",{className:Te.infoText},"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),We.createElement("li",{className:Te.infoText},"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))),We.createElement("aside",{style:{marginTop:22}},We.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA42"),We.createElement("ul",{style:{flex:1}},We.createElement("li",{style:{color:"#5F6367"}},"\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF0C\u4E0A\u4F20\u7F16\u8F91\u597D\u7684\u8BD5\u9898\u6587\u6863\uFF0C\u786E\u5B9A\u5BFC\u5165"),a&&We.createElement(We.Fragment,null,We.createElement(Ie.Z,{value:Me,className:Te.selectitems,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Pe,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(pt,xt)=>{lt(pt||[])}}),We.createElement("br",null),We.createElement(Ce.default,{action:`${Fe.Z.API_SERVER}/api/attachments.json`,beforeUpload:ye,onRemove:gt,withCredentials:!0,fileList:ne,accept:".xls,.xlsx",showUploadList:!1},We.createElement(Ge.ZP,{className:Te.upload,type:"primary",icon:We.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6"))),ne.map((pt,xt)=>We.createElement("div",{key:xt,className:Te.fileList},We.createElement("span",{className:Te.fileName},pt==null?void 0:pt.name),We.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:16,cursor:"pointer"},onClick:gt})))))))}},48326:function(_e,Ct,oe){"use strict";oe.d(Ct,{h:function(){return b}});var b=(he=>(he[he.NOMATCH=-1]="NOMATCH",he[he.OK=0]="OK",he[he.TIMEOUT=2]="TIMEOUT",he[he.PODFAILURE=3]="PODFAILURE",he[he.COMPILEFAILURE=4]="COMPILEFAILURE",he[he.EXECUTEFAILURE=5]="EXECUTEFAILURE",he[he.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",he))(b||{})},25537:function(_e,Ct,oe){"use strict";oe.d(Ct,{H7:function(){return E},MK:function(){return le},MU:function(){return De},X6:function(){return We},bM:function(){return ke},fi:function(){return a},fu:function(){return Ye},n4:function(){return x},rX:function(){return Ve},vl:function(){return y},zO:function(){return Te}});var b=oe(64866),he=Object.defineProperty,Be=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Ge=(z,ne,re)=>ne in z?he(z,ne,{enumerable:!0,configurable:!0,writable:!0,value:re}):z[ne]=re,Fe=(z,ne)=>{for(var re in ne||(ne={}))Ie.call(ne,re)&&Ge(z,re,ne[re]);if(Be)for(var re of Be(ne))Ce.call(ne,re)&&Ge(z,re,ne[re]);return z};function Ye(z,ne){return(0,b.U2)(`myproblems/${z}.json`,Fe({hidePopLogin:!0},ne||{}))}function ke(z,ne){return(0,b.v_)(`myproblems/${z}/code_submit.json`,ne)}function De(z,ne){return(0,b.v_)(`myproblems/${z}/code_debug.json`,ne)}function Te(z,ne){return ne.language&&(ne.language=encodeURIComponent(ne.language)),(0,b.U2)(`myproblems/${z}/submit_records.json`,ne)}function We(z){return(0,b.U2)("myproblems/record_detail.json",{id:z})}function Ve(z,ne){return(0,b.U2)(`myproblems/${z}/result.json`,{mode:ne})}function le(z,ne){return(0,b.v_)(`myproblems/${z}/add_notes.json`,ne)}function E(z,ne){return(0,b.v_)(`myproblems/${z}/restore_initial_code.json`,ne)}function a(z){return(0,b.v_)(`myproblems/${z}/sync_code.json`)}function x(z,ne){return(0,b.v_)(`myproblems/${z}/update_code.json`,ne)}function y(z,ne){return(0,b.v_)(`discusses/${z}/plus.json`,ne)}},94287:function(_e,Ct,oe){"use strict";var b=oe(59301),he=oe(6848),Be=oe(92832),Ie=oe(8591),Ce=oe(97663),Ge=oe(59301),Fe=(ke,De,Te)=>new Promise((We,Ve)=>{var le=x=>{try{a(Te.next(x))}catch(y){Ve(y)}},E=x=>{try{a(Te.throw(x))}catch(y){Ve(y)}},a=x=>x.done?We(x.value):Promise.resolve(x.value).then(le,E);a((Te=Te.apply(ke,De)).next())});const Ye=({defaultValue:ke,onFinish:De})=>{const[Te,We]=(0,b.useState)(!1),[Ve,le]=(0,b.useState)(ke);return(0,b.useEffect)(()=>{le(ke)},[ke]),Ge.createElement("div",null,Te?Ge.createElement(Be.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:Ve,onChange:E=>{le(E.target.value)},onBlur:()=>Fe(void 0,null,function*(){var E;if(((E=Ve==null?void 0:Ve.replaceAll(" ",""))==null?void 0:E.length)<=0){Ie.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield De(Ve))&&We(!1)}),onPressEnter:()=>Fe(void 0,null,function*(){var E;if(((E=Ve==null?void 0:Ve.replaceAll(" ",""))==null?void 0:E.length)<=0){Ie.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield De(Ve))&&We(!1)})}):Ge.createElement("div",{className:Ce.Z.title},Ve,Ge.createElement(he.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},Ge.createElement("i",{className:`${Ce.Z.editIcon} iconfont icon-bianji_Hover`,onClick:()=>We(!0)}))))};Ct.Z=Ye},16206:function(_e,Ct,oe){"use strict";oe.r(Ct),oe.d(Ct,{default:function(){return Ri},useCourseOptions:function(){return Oi}});var b=oe(59301),he=oe(90115),Be=oe(78241),Ie=oe(66104),Ce=oe(8591),Ge=oe(71418),Fe=oe(92832),Ye=oe(19842),ke=oe(24905),De=oe(5112),Te=oe(5871),We=oe(3113),Ve=oe(97663),le=oe(3928),E=oe(70646),a=oe(47451),x=oe(43418),y=oe(20834),z=oe(38854),ne=oe(6848),re=oe(43428),ie={flex_box_center:"flex_box_center___gi93l",flex_space_between:"flex_space_between___mWMLA",flex_box_vertical_center:"flex_box_vertical_center___rk4nc",flex_box_center_end:"flex_box_center_end___B8XxF",flex_box_column:"flex_box_column___AX3Vm",moreSpan:"moreSpan___hbStq",bg:"bg___Ya739",title:"title___BC46y",bottomdiv:"bottomdiv___uaPr6",spanBtn:"spanBtn___jjgnA",addQuestionBtn:"addQuestionBtn___qOlYW",saveBtn:"saveBtn___ulgem",left:"left___i8aTX",leftAction:"leftAction___sQkuq",Button:"Button___auxWm",iconWrapper:"iconWrapper___h3H1m",up:"up___tLyCX",down:"down___T5_aj",disabled:"disabled___GRBbF",titleleft:"titleleft___xZGbq",more_style:"more_style___nhWCX",qcount:"qcount___ID7OA",score:"score___T7dbm",qtitle:"qtitle___qJBFd",qcountclick:"qcountclick___m_VKG",right:"right___CBabI",edit:"edit___WHuql",delete:"delete___Pa6db",shixun:"shixun___oObBe",scoreByBlankRadio:"scoreByBlankRadio___r4AWn",modalconfirm:"modalconfirm___Ru9B_",scoremodal:"scoremodal___BdW7P",close:"close___blHYk",content:"content___jlm9o",items:"items___i3TrH",bottom:"bottom___zMQZ6",yes:"yes___lOPY6",no:"no___gtzKI",formcenter:"formcenter___fCxkm",radiogroup:"radiogroup___oXWHc",easy:"easy___ANNVD",medium:"medium___ov7N3",hard:"hard___n4afW",formcenterselect:"formcenterselect___lYa4f",selectitems1:"selectitems1___Y2Zy4",selectitems:"selectitems___c9Pt5",morebottom:"morebottom____I_ev",scoreinput:"scoreinput___O8EhL",shake:"shake___QxkjH",titleTooltip:"titleTooltip___CAyYg",exercise_styles:"exercise_styles___u40hG"},ge=oe(22566),fe=oe(64866),Pe=oe(21692),Ue=oe(9683),Me=oe(11414),lt=oe(8658),Le=oe(59301),be=Object.defineProperty,Xe=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,xt=(de,Se,Ee)=>Se in de?be(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):de[Se]=Ee,ut=(de,Se)=>{for(var Ee in Se||(Se={}))gt.call(Se,Ee)&&xt(de,Ee,Se[Ee]);if(ye)for(var Ee of ye(Se))pt.call(Se,Ee)&&xt(de,Ee,Se[Ee]);return de},Kt=(de,Se)=>Xe(de,nt(Se)),rn=(de,Se,Ee)=>new Promise((rt,yn)=>{var $n=bt=>{try{En(Ee.next(bt))}catch(kt){yn(kt)}},oa=bt=>{try{En(Ee.throw(bt))}catch(kt){yn(kt)}},En=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,oa);En((Ee=Ee.apply(de,Se)).next())}),Zt=({Itemid:de,setqitem:Se,qitem:Ee,data:rt,getdata:yn,bigitem:$n,setBigqitem:oa,isedit:En,handleEditing:bt})=>{const[kt,Tn]=(0,b.useState)([]),[Dt,en]=(0,b.useState)(!1);(0,b.useEffect)(()=>{rt.length>0&&Tn([...rt])},[rt]);const qn=(ma,wn)=>rn(void 0,null,function*(){if(En){bt();return}if(!ma.destination)return;en(!0);let Ba=yield(0,fe.ZP)(`/api/examination_banks/${de}/examination_banks_item_banks/${wn==null?void 0:wn[ma.source.index].question_id}/adjust_position.json`,{method:"post",body:{id:de,itemid:wn==null?void 0:wn[ma.source.index].question_id,position:ma.destination.index}});en(!1),Ba.status===0&&yn({id:wn==null?void 0:wn[ma.source.index].question_id})});return Le.createElement("div",null,Le.createElement(Me.Z5,{onDragEnd:ma=>qn(ma,kt)},Le.createElement(Me.bK,{droppableId:"droppable"},(ma,wn)=>Le.createElement("div",ut({ref:ma.innerRef},ma.droppableProps),Le.createElement(Ge.Z,{spinning:Dt},kt.map((Ba,Aa)=>Le.createElement(Me._l,{key:Aa,draggableId:Aa.toString(),index:Aa},(vn,yr)=>{var Sn,ja;return Le.createElement("aside",ut(ut({ref:vn.innerRef},vn.draggableProps),vn.dragHandleProps),Le.createElement(ne.Z,{title:Le.createElement(lt.Z,{value:(Ba==null?void 0:Ba.question_type)===8?(Sn=Ba==null?void 0:Ba.program_attr)==null?void 0:Sn.description:Ba.question_title}),color:"#fff",placement:"left",overlayClassName:ie.titleTooltip},Le.createElement("div",{onClick:()=>{if(En){bt();return}Se(Kt(ut({},Ba),{index:Aa+1})),oa($n),(0,ge.Vf)("#question-scroll-id")},className:`${ie.qcount} ${Ba.question_id===(Ee==null?void 0:Ee.question_id)?ie.qcountclick:""}`},Le.createElement("span",{className:ie.score},Ba==null?void 0:Ba.question_score,"\u5206"),Le.createElement("span",{className:ie.qtitle},Aa+1,"\u3001",Le.createElement(lt.Z,{value:(Ba==null?void 0:Ba.question_type)===8?(ja=Ba==null?void 0:Ba.program_attr)==null?void 0:ja.description:Ba.question_title,showTextOnly:!0})))))}))),ma.placeholder))))},Qe=oe(95237),Oe=oe(60569),Et=oe(57809),Gt=oe(78673),vt=oe(61485),wt=oe(98280),Ae=oe(59301),dt=(de,Se,Ee)=>new Promise((rt,yn)=>{var $n=bt=>{try{En(Ee.next(bt))}catch(kt){yn(kt)}},oa=bt=>{try{En(Ee.throw(bt))}catch(kt){yn(kt)}},En=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,oa);En((Ee=Ee.apply(de,Se)).next())}),ct=({form:de,TagDiscipline:Se,exerciseitem:Ee,qitem:rt,getTagData:yn})=>{var $n;const[oa,En]=(0,b.useState)(!0),[bt,kt]=(0,b.useState)(!1),[Tn,Dt]=(0,b.useState)(""),[en,qn]=(0,b.useState)([]),[ma,wn]=(0,b.useState)([]),[Ba,Aa]=(0,b.useState)(0);(0,b.useEffect)(()=>{yr()},[]);const vn=Sn=>dt(void 0,null,function*(){const ja=yield(0,fe.ZP)("/api/tag_disciplines.json",{method:"get",params:{sub_discipline_id:Sn==null?void 0:Sn.sub_discipline_id}});wn(ja==null?void 0:ja.tag_disciplines)}),yr=()=>dt(void 0,null,function*(){const Sn=yield(0,fe.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});qn(Sn.disciplines||[]),rt!=null&&rt.sub_discipline_id&&vn(rt),Aa(rt!=null&&rt.sub_discipline_id?1:0),de.setFieldsValue({difficulty:rt.difficulty||2,repeat_answer:!rt.repeat_answer,sub_discipline_id:rt!=null&&rt.sub_discipline_id?[rt==null?void 0:rt.discipline_id,rt==null?void 0:rt.sub_discipline_id]:[]})});return Ae.createElement("div",null,Ae.createElement("div",{style:{marginTop:30,overflow:"hidden",height:oa?"100%":0}},Ae.createElement(Be.default.Item,{className:ie.formcenter,rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u96BE\u5EA6"}],label:"\u96BE\u5EA6",name:"difficulty"},Ae.createElement(De.ZP.Group,{className:ie.radiogroup},Ae.createElement(De.ZP.Button,{className:ie.easy,value:1},"\u7B80\u5355"),Ae.createElement(De.ZP.Button,{className:ie.medium,value:2},"\u9002\u4E2D"),Ae.createElement(De.ZP.Button,{className:ie.hard,value:3},"\u56F0\u96BE"))),Ae.createElement(Be.default.Item,{name:"sub_discipline_id",label:"\u77E5\u8BC6\u70B9",className:ie.formcenterselect},Ae.createElement(Ye.Z,{className:ie.selectitems1,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:en,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(Sn,ja)=>{de.setFieldsValue({sub_discipline_id:Sn,tag_discipline_ids:[]}),Aa(Sn?Sn.length:0),(Sn==null?void 0:Sn.length)>0&&(vn({sub_discipline_id:Sn[1]}),Sn[1]==(rt==null?void 0:rt.sub_discipline_id)&&de.setFieldValue("tag_discipline_ids",rt.tag_discipline_ids))},onClear:()=>{wn([]),de.setFieldValue("tag_discipline_ids",[]),Aa(0)}})),Ae.createElement(Be.default.Item,{className:ie.formcenterselect},Ae.createElement("div",{style:{display:"flex",alignItems:"center",paddingLeft:55}},Ae.createElement(Be.default.Item,{name:"tag_discipline_ids"},Ae.createElement(Et.default,{className:ie.selectitems,disabled:Ba===0,showSearch:!0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",mode:"multiple",listHeight:200,dropdownStyle:{zIndex:9},allowClear:!0,optionFilterProp:"children",filterOption:(Sn,ja)=>ja.key.indexOf(Sn.toLowerCase())>=0},ma==null?void 0:ma.map(Sn=>Ae.createElement(Et.default.Option,{key:Sn.name+Sn.id,value:Sn.id},Ae.createElement("div",{style:{display:"flex",alignItems:"center"}},Ae.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},Sn.name),(Sn==null?void 0:Sn.type)==="personal"&&Ae.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),Ba>0&&Ae.createElement("div",{style:{marginLeft:20,marginTop:"-16px",lineHeight:"48px",height:48,fontSize:14}},Ae.createElement("span",null,"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),Ae.createElement("a",{onClick:()=>{kt(!0)},style:{marginLeft:3,color:"#3061D0"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))),Ae.createElement(Be.default.Item,{className:ie.formcenterselect},Ae.createElement("div",{style:{display:"flex",alignItems:"center"}},Ae.createElement(Be.default.Item,{name:"repeat_answer",valuePropName:"checked"},Ae.createElement(Gt.Z,null)),Ae.createElement("div",{style:{marginLeft:10,marginTop:"-16px",lineHeight:"40px",height:48,color:"#000000"}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898",Ae.createElement(ne.Z,{placement:"right",title:"\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u4F5C\u7B54\u5B8C\u6210\u8BE5\u9898\u5E76\u8FDB\u5165\u4E0B\u4E00\u9898\u4E4B\u540E\uFF0C\u4E0D\u5141\u8BB8\u518D\u4FEE\u6539\u8BE5\u9898\u7B54\u6848"},Ae.createElement(vt.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))))),Ae.createElement(wt.Z,{open:bt,subDisciplineId:($n=de.getFieldValue("sub_discipline_id"))==null?void 0:$n[1],onCancel:()=>{kt(!1)},onOkClick:Sn=>{wn(ja=>[...ja,Sn]),de.setFieldValue("tag_discipline_ids",[...de.getFieldValue("tag_discipline_ids"),Sn==null?void 0:Sn.id])}}))},et=oe(59301),An=Object.defineProperty,ot=Object.defineProperties,Bt=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,Ot=(de,Se,Ee)=>Se in de?An(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):de[Se]=Ee,Un=(de,Se)=>{for(var Ee in Se||(Se={}))ht.call(Se,Ee)&&Ot(de,Ee,Se[Ee]);if(Ht)for(var Ee of Ht(Se))On.call(Se,Ee)&&Ot(de,Ee,Se[Ee]);return de},Bn=(de,Se)=>ot(de,Bt(Se)),kn=(de,Se,Ee)=>new Promise((rt,yn)=>{var $n=bt=>{try{En(Ee.next(bt))}catch(kt){yn(kt)}},oa=bt=>{try{En(Ee.throw(bt))}catch(kt){yn(kt)}},En=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,oa);En((Ee=Ee.apply(de,Se)).next())}),ca=({qitem:de,setisedit:Se,TagDiscipline:Ee,exerciseitem:rt,seveeditor:yn,deleteitem:$n,getTagData:oa,init:En,showTip:bt=!1})=>{const[kt]=Be.default.useForm();(0,b.useEffect)(()=>{var Dt;kt.setFieldsValue(Bn(Un({},de),{name:de==null?void 0:de.question_title,choices:(Dt=de==null?void 0:de.question_choices)==null?void 0:Dt.map(en=>Bn(Un({},en),{standard_boolean:en!=null&&en.standard_boolean?1:0})),repeat_answer:!(de!=null&&de.repeat_answer)}))},[de]);const Tn=Dt=>{if(!(Dt!=null&&Dt.length))return!1;const en=Dt.map(ma=>{var wn;return(wn=ma.choice_text)==null?void 0:wn.trim().replace(/^\s+|\s+$/g,"")});return new Set(en).size!==en.length};return et.createElement("div",null,et.createElement(Be.default,{form:kt,colon:!1,onFinish:Dt=>{var en;if(Tn(Dt.choices)){Ce.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}let qn=Bn(Un({},Dt),{item_type:de==null?void 0:de.question_type,choices:(en=Dt==null?void 0:Dt.choices)==null?void 0:en.map(ma=>Bn(Un({},ma),{is_answer:ma.standard_boolean}))});yn(Un(Un({},de),qn))},onFinishFailed:Dt=>kn(void 0,null,function*(){var en,qn;Ce.ZP.error(Dt.errorFields[0].errors[0]),kt.scrollToField((qn=(en=Dt==null?void 0:Dt.errorFields)==null?void 0:en[0])==null?void 0:qn.name,{behavior:"smooth",block:"center"})})},et.createElement("div",{style:{display:"flex",alignItems:"center"}},et.createElement("div",{style:{flex:1}},et.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),et.createElement("span",null,(de==null?void 0:de.question_type)===1?"\u591A\u9009\u9898":"\u5355\u9009\u9898")),!de.isadd&&et.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{$n()}},et.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),et.createElement(We.ZP,{onClick:()=>{var Dt;de.isadd?(Se(!1),En()):(kt.setFieldsValue(Bn(Un({},de),{name:de==null?void 0:de.question_title,choices:(Dt=de==null?void 0:de.question_choices)==null?void 0:Dt.map(en=>Bn(Un({},en),{standard_boolean:en!=null&&en.standard_boolean?1:0})),repeat_answer:!(de!=null&&de.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),et.createElement(ne.Z,{overlayClassName:ie.shake,open:bt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:et.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},et.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},et.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>kn(void 0,null,function*(){kt.submit()})},"\u4FDD\u5B58"))),et.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},et.createElement(Qe.Z,{align:"middle"},et.createElement(Be.default.Item,{className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},et.createElement(Te.Z,{onBlur:Dt=>{Dt.target.value==="0"&&Ce.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1}))),et.createElement(Oe.u,{form:kt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",titleKey:"name",choiceKey:"choices",analysisKey:"analysis",choiceOptionsPath:"choices",choiceTextKey:"choice_text",answerKey:"standard_boolean"}),et.createElement(ct,{getTagData:oa,qitem:de,exerciseitem:rt,TagDiscipline:Ee,form:kt}))))},zn=oe(55862),ba=oe(24136),ln=oe(59301),cn=Object.defineProperty,pn=Object.defineProperties,Oa=Object.getOwnPropertyDescriptors,va=Object.getOwnPropertySymbols,wa=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,St=(de,Se,Ee)=>Se in de?cn(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):de[Se]=Ee,fn=(de,Se)=>{for(var Ee in Se||(Se={}))wa.call(Se,Ee)&&St(de,Ee,Se[Ee]);if(va)for(var Ee of va(Se))_t.call(Se,Ee)&&St(de,Ee,Se[Ee]);return de},Fn=(de,Se)=>pn(de,Oa(Se)),Ea=(de,Se,Ee)=>new Promise((rt,yn)=>{var $n=bt=>{try{En(Ee.next(bt))}catch(kt){yn(kt)}},oa=bt=>{try{En(Ee.throw(bt))}catch(kt){yn(kt)}},En=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,oa);En((Ee=Ee.apply(de,Se)).next())}),Ka=({qitem:de,TagDiscipline:Se,exerciseitem:Ee,setisedit:rt,seveeditor:yn,deleteitem:$n,getTagData:oa,init:En,showTip:bt=!1})=>{const[kt]=Be.default.useForm(),Tn=Be.default.useWatch("use_blank_score",kt);return(0,b.useEffect)(()=>{kt.setFieldsValue(Fn(fn({},de),{standard_answers:de.standard_answers||[],name:de.question_title,repeat_answer:!de.repeat_answer}))},[de]),ln.createElement("div",null,ln.createElement(Be.default,{form:kt,colon:!1,onValuesChange:(Dt,en)=>{var qn,ma,wn,Ba;if(Dt!=null&&Dt.standard_answers||Dt!=null&&Dt.use_blank_score){let Aa=((qn=kt.getFieldValue("standard_answers"))==null?void 0:qn.length)>0&&((wn=(ma=kt.getFieldValue("standard_answers"))==null?void 0:ma.map(vn=>vn.score))==null?void 0:wn.filter(vn=>vn));(Aa==null?void 0:Aa.length)>0&&kt.setFieldsValue({question_score:(Aa==null?void 0:Aa.length)>0&&((Ba=Aa.reduce((vn,yr)=>vn+yr))==null?void 0:Ba.toFixed(1))})}},onFinish:Dt=>{var en;yn(Fn(fn(fn({},de),Dt),{item_type:de==null?void 0:de.question_type,standard_answers:(en=Dt.standard_answers)==null?void 0:en.map((qn,ma)=>Fn(fn({},qn),{position:qn.choice_id||ma+1}))}))},onFinishFailed:Dt=>Ea(void 0,null,function*(){var en,qn;Dt.errorFields[0].errors[0]==="\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"&&(0,ge.pE)(),Ce.ZP.error(Dt.errorFields[0].errors[0]),kt.scrollToField((qn=(en=Dt==null?void 0:Dt.errorFields)==null?void 0:en[0])==null?void 0:qn.name,{behavior:"smooth",block:"center"})})},ln.createElement("div",{style:{display:"flex",alignItems:"center"}},ln.createElement("div",{style:{flex:1}},ln.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),ln.createElement("span",null,"\u586B\u7A7A\u9898")),!de.isadd&&ln.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{$n()}},ln.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}})," \u5220\u9664"),ln.createElement(We.ZP,{onClick:()=>{de.isadd?(rt(!1),En()):(kt.setFieldsValue(Fn(fn({},de),{standard_answers:de.standard_answers,name:de.question_title,repeat_answer:!de.repeat_answer})),rt(!1))}},"\u53D6\u6D88"),ln.createElement(ne.Z,{overlayClassName:ie.shake,open:bt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:ln.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},ln.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},ln.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{kt.submit()}},"\u4FDD\u5B58"))),ln.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},ln.createElement(Qe.Z,{align:"middle"},Tn?ln.createElement(ba.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}):ln.createElement(Be.default.Item,{key:2,className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},ln.createElement(Te.Z,{onBlur:Dt=>{Dt.target.value==="0"&&Ce.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle",max:100,min:.1})),ln.createElement(Be.default.Item,{name:"use_blank_score",noStyle:!0},ln.createElement(De.ZP.Group,{className:ie.scoreByBlankRadio,optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}]})),ln.createElement(ne.Z,{overlayInnerStyle:{width:460},title:ln.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",ln.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},ln.createElement("i",{className:"icon-tishixiaowenhao font18 ml20 c-3061d0"}))),ln.createElement(zn.u,{form:kt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:Tn,answerKey:"standard_answers"}),ln.createElement(ct,{getTagData:oa,qitem:de,exerciseitem:Ee,TagDiscipline:Se,form:kt}))))},aa=oe(85881),Wn=oe(59301),Ya=Object.defineProperty,Ma=Object.defineProperties,Ja=Object.getOwnPropertyDescriptors,Ar=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,Ln=Object.prototype.propertyIsEnumerable,Mn=(de,Se,Ee)=>Se in de?Ya(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):de[Se]=Ee,xn=(de,Se)=>{for(var Ee in Se||(Se={}))At.call(Se,Ee)&&Mn(de,Ee,Se[Ee]);if(Ar)for(var Ee of Ar(Se))Ln.call(Se,Ee)&&Mn(de,Ee,Se[Ee]);return de},xe=(de,Se)=>Ma(de,Ja(Se)),ft=(de,Se,Ee)=>new Promise((rt,yn)=>{var $n=bt=>{try{En(Ee.next(bt))}catch(kt){yn(kt)}},oa=bt=>{try{En(Ee.throw(bt))}catch(kt){yn(kt)}},En=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,oa);En((Ee=Ee.apply(de,Se)).next())}),Vt=({qitem:de,setisedit:Se,TagDiscipline:Ee,exerciseitem:rt,seveeditor:yn,deleteitem:$n,getTagData:oa,init:En,showTip:bt=!1})=>{const[kt]=Be.default.useForm();return(0,b.useEffect)(()=>{var Tn;kt.setFieldsValue(xe(xn({},de),{name:de.question_title,repeat_answer:!de.repeat_answer,choices:(Tn=de==null?void 0:de.question_choices)==null?void 0:Tn.map(Dt=>xe(xn({},Dt),{is_answer:Dt!=null&&Dt.standard_boolean?1:0}))}))},[de]),Wn.createElement("div",null,Wn.createElement(Be.default,{form:kt,colon:!1,onFinish:Tn=>{yn(xn(xn({},de),Tn))},onFinishFailed:Tn=>ft(void 0,null,function*(){var Dt,en;Ce.ZP.error(Tn.errorFields[0].errors[0]),kt.scrollToField((en=(Dt=Tn==null?void 0:Tn.errorFields)==null?void 0:Dt[0])==null?void 0:en.name,{behavior:"smooth",block:"center"})})},Wn.createElement("div",{style:{display:"flex",alignItems:"center"}},Wn.createElement("div",{style:{flex:1}},Wn.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Wn.createElement("span",null,"\u5224\u65AD\u9898")),!(de!=null&&de.isadd)&&Wn.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{$n()}},Wn.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Wn.createElement(We.ZP,{onClick:()=>{var Tn;de.isadd?(Se(!1),En()):(kt.setFieldsValue(xe(xn({},de),{name:de==null?void 0:de.question_title,choices:(Tn=de==null?void 0:de.question_choices)==null?void 0:Tn.map(Dt=>xe(xn({},Dt),{is_answer:Dt!=null&&Dt.standard_boolean?1:0})),repeat_answer:!(de!=null&&de.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),Wn.createElement(ne.Z,{overlayClassName:ie.shake,open:bt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Wn.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Wn.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Wn.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{kt.submit()}},"\u4FDD\u5B58"))),Wn.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Wn.createElement(Be.default.Item,{className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Wn.createElement(Te.Z,{onBlur:Tn=>{Tn.target.value==="0"&&Ce.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),Wn.createElement(aa.Z,{form:kt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",choiceKey:""}),Wn.createElement(ct,{getTagData:oa,qitem:de,exerciseitem:rt,TagDiscipline:Ee,form:kt}))))},Rt=oe(36381),yt={wrap:"wrap___YewKC",deleteIcon:"deleteIcon___AKmkj",keywordTag:"keywordTag___hMKmU",questionTitleEditorWrap:"questionTitleEditorWrap___SpNyf",choiceWrap:"choiceWrap___lDCnP",choiceIndex:"choiceIndex___dabwf",judgementIndex:"judgementIndex___sausK",setAnswerBtn:"setAnswerBtn___moVcF",activeAnswer:"activeAnswer___Cd32c",activeJudgementAnswer:"activeJudgementAnswer___rbuoo",actionWrapper:"actionWrapper___dZuBC",addIcon:"addIcon___A9GtN",inputBorder:"inputBorder___DeyjY",placeholder:"placeholder___dhOmk",blankWrapper:"blankWrapper___vU8Cg",blankInput:"blankInput___Vzre8",blankInputNumberWrapper:"blankInputNumberWrapper___yLeaN",addBtn:"addBtn___LhI0I",blankIndex:"blankIndex___caKgB",baseInputWrapper:"baseInputWrapper___DhjJY",collapseWrapper:"collapseWrapper___btrfP",panelHeader:"panelHeader___xIZ7O",open:"open___IMQhg",close:"close___FTAU3",hide:"hide___GBtJP",scoreByBlankRadio:"scoreByBlankRadio___HAunQ"},hn=oe(12893),je=oe(30720),Ke=Object.defineProperty,He=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,un=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,Qn=(de,Se,Ee)=>Se in de?Ke(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):de[Se]=Ee,gn=(de,Se)=>{for(var Ee in Se||(Se={}))sn.call(Se,Ee)&&Qn(de,Ee,Se[Ee]);if(un)for(var Ee of un(Se))Xn.call(Se,Ee)&&Qn(de,Ee,Se[Ee]);return de},Yn=(de,Se)=>He(de,Mt(Se)),ha=(de,Se)=>{var Ee={};for(var rt in de)sn.call(de,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=de[rt]);if(de!=null&&un)for(var rt of un(de))Se.indexOf(rt)<0&&Xn.call(de,rt)&&(Ee[rt]=de[rt]);return Ee};const zt=de=>{var Se=de,{value:Ee,onChange:rt,scrollId:yn}=Se,$n=ha(Se,["value","onChange","scrollId"]);return b.createElement("div",{id:yn||""},b.createElement(je.Z,Yn(gn({},$n),{defaultValue:Ee,onChange:(oa,En)=>{console.log("a:",oa,En),En!=null&&En.length?rt(oa,En):rt(oa)}})))},_n=({value:de,onChange:Se,placeholder:Ee,height:rt=140,isEdit:yn})=>yn?b.createElement(je.Z,{watch:!0,isFocus:!0,height:rt,placeholder:Ee,defaultValue:de,onChange:Se}):b.createElement("div",{style:{cursor:"pointer"}},de?b.createElement(lt.Z,{className:yt.inputBorder,value:de}):b.createElement("div",{className:`${yt.inputBorder} ${yt.placeholder}`},Ee));var Je=oe(43604),Qt=oe(32134),bn=Object.defineProperty,tt=Object.defineProperties,Jn=Object.getOwnPropertyDescriptors,In=Object.getOwnPropertySymbols,sa=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,za=(de,Se,Ee)=>Se in de?bn(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):de[Se]=Ee,la=(de,Se)=>{for(var Ee in Se||(Se={}))sa.call(Se,Ee)&&za(de,Ee,Se[Ee]);if(In)for(var Ee of In(Se))Zn.call(Se,Ee)&&za(de,Ee,Se[Ee]);return de},_a=(de,Se)=>tt(de,Jn(Se)),$a=(de,Se)=>{var Ee={};for(var rt in de)sa.call(de,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=de[rt]);if(de!=null&&In)for(var rt of In(de))Se.indexOf(rt)<0&&Zn.call(de,rt)&&(Ee[rt]=de[rt]);return Ee};const sr=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Tt=({value:de,onChange:Se,choiceTextKey:Ee,answerKey:rt,index:yn,isEdit:$n,setInputActive:oa,form:En,choiceOptionsPath:bt,allowChangeMode:kt,showAddIcon:Tn,addItem:Dt,deleteItem:en})=>{const qn=(de==null?void 0:de[rt])===1,ma=()=>{const Ba=En.getFieldValue(bt);En.setFieldValue(bt,Ba.map(Aa=>_a(la({},Aa),{[rt]:0})))},wn=()=>{qn?Se(_a(la({},de),{[rt]:0})):(kt||ma(),Se(_a(la({},de),{[rt]:1})))};return b.createElement(Qe.Z,{className:yt.choiceWrap,align:"middle",wrap:!1},b.createElement(Je.Z,{onClick:wn,className:`${yt.choiceIndex} ${qn?yt.activeAnswer:""}`},sr[yn]),b.createElement(Je.Z,{flex:1,className:`${yt.editorWrap} ml15`,onClick:oa},b.createElement(_n,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:$n,value:de==null?void 0:de[Ee],onChange:Ba=>{Se(_a(la({},de),{[Ee]:Ba}))}})),b.createElement(Je.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:wn,className:`${yt.setAnswerBtn} ${qn?yt.activeAnswer:""}`},qn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),b.createElement(Je.Z,{className:yt.actionWrapper},b.createElement(ne.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},b.createElement(Qt.Z,{className:yt.addIcon,onClick:Dt,style:{visibility:Tn?"visible":"hidden"}})),b.createElement(ne.Z,{title:"\u5220\u9664"},b.createElement(hn.Z,{className:yt.deleteIcon,onClick:en,style:{visibility:yn>1?"visible":"hidden"}}))))},Da=({questionTitlePlaceholder:de,titleKey:Se,choiceKey:Ee,analysisKey:rt,choiceTextKey:yn,answerKey:$n,choiceOptionsPath:oa,allowChangeMode:En=!0,form:bt,showAnalysis:kt=!0})=>{const[Tn,Dt]=(0,b.useState)(),[en,qn]=(0,b.useState)(!1);return b.createElement("div",{className:yt.wrap},b.createElement("div",{className:yt.questionTitleEditorWrap},b.createElement(Be.default.Item,{label:"\u9898\u5E72",name:Se,labelCol:{span:24},rules:[{required:!0}]},b.createElement(zt,{scrollId:Array.isArray(Se)?Se.join("_"):`${Se}`,watch:!0,height:140,placeholder:de}))),b.createElement(Be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),b.createElement(Be.default.List,{name:Ee,rules:[{validator(ma,wn){const Ba=wn.some(vn=>vn[$n]===1),Aa=wn.findIndex(vn=>{var yr;return((yr=vn[yn])==null?void 0:yr.length)<=0});return Aa!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${sr[Aa]}\u9009\u9879\u7684\u5185\u5BB9`)):Ba?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ma,{add:wn,remove:Ba})=>b.createElement("div",{id:Array.isArray(oa)?oa.join("_"):`${oa}`},ma.map((Aa,vn)=>{var yr=Aa,{key:Sn,name:ja}=yr,nn=$a(yr,["key","name"]);const gr=Tn===Sn,Dr=()=>{Dt(Sn)},Br=vn<7&&vn===ma.length-1,Pr=()=>wn({[yn]:"",[$n]:0}),Vn=()=>Ba(ja);return b.createElement(Be.default.Item,_a(la({},nn),{key:Sn,name:ja,noStyle:!0}),b.createElement(Tt,{choiceTextKey:yn,answerKey:$n,index:vn,isEdit:gr,setInputActive:Dr,form:bt,choiceOptionsPath:oa,allowChangeMode:En,showAddIcon:Br,addItem:Pr,deleteItem:Vn}))}),ma.length<8&&b.createElement("div",{className:`${yt.addBtn} mb30`,onClick:()=>wn({[yn]:"",[$n]:0})},"\u6DFB\u52A0\u9009\u9879"))),kt&&b.createElement("div",{onClick:()=>qn(!0)},b.createElement(Be.default.Item,{name:rt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(_n,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:en}))))};var Wt=oe(59301),xa=Object.defineProperty,fa=Object.defineProperties,Yt=Object.getOwnPropertyDescriptors,Cn=Object.getOwnPropertySymbols,ea=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,Ra=(de,Se,Ee)=>Se in de?xa(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):de[Se]=Ee,pa=(de,Se)=>{for(var Ee in Se||(Se={}))ea.call(Se,Ee)&&Ra(de,Ee,Se[Ee]);if(Cn)for(var Ee of Cn(Se))Pn.call(Se,Ee)&&Ra(de,Ee,Se[Ee]);return de},Va=(de,Se)=>fa(de,Yt(Se)),ur=(de,Se)=>{var Ee={};for(var rt in de)ea.call(de,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=de[rt]);if(de!=null&&Cn)for(var rt of Cn(de))Se.indexOf(rt)<0&&Pn.call(de,rt)&&(Ee[rt]=de[rt]);return Ee};const Sr=({value:de,onChange:Se})=>{const Ee=yn=>{x.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:yt.modal,onOk:()=>{const $n=[...de];$n.splice(yn,1),Se($n)}})},rt=()=>{const yn=[...de];yn.push(""),Se(yn)};return Wt.createElement(Qe.Z,{className:"ml20"},Wt.createElement(Je.Z,{flex:1},de==null?void 0:de.map((yn,$n)=>Wt.createElement(Qe.Z,{key:`${yn}_${$n}`,align:"middle",className:"mb20"},Wt.createElement(Fe.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:yn,autoSize:{maxRows:3},maxLength:1e3,onBlur:oa=>{const En=[...de],bt=oa.target.value.trim();En[$n]=bt,Se(En)}}),Wt.createElement(ne.Z,{title:"\u5220\u9664"},Wt.createElement(hn.Z,{className:yt.deleteIcon,style:{marginLeft:15,visibility:$n>0?"visible":"hidden"},onClick:()=>Ee($n)}))))),Wt.createElement(Je.Z,null,Wt.createElement("div",{className:`${yt.addBtn}`,onClick:()=>{rt()}},"\u65B0\u589E\u7B54\u6848")))},Nr=({value:de=!0,onChange:Se})=>Wt.createElement(Gt.Z,{checked:!de,onChange:Ee=>{Se(!Ee)}}),pr="\u2581",Yr=({questionTitlePlaceholder:de,form:Se,name:Ee,scoreByBlank:rt,answerKey:yn,titleKey:$n="name",analysisKey:oa="analysis",isOrdered:En="is_ordered"})=>{var bt,kt;const[Tn,Dt]=(0,b.useState)(!1),en=(Sn,ja)=>{const nn=ja.line;let gr=0;for(let Br=0;Br{const Dr=Sn.getRange(ja.from,ja.to);let Br=0;if(ja.text.forEach(Pr=>{Br+=Pr.split(pr).length-1}),ja.origin!=="setValue"){if(Dr&&Dr.indexOf(pr)!==-1){const Pr=Dr.split(pr).length-1,Vn=en(Sn,ja.from);if(console.log(`\u5220\u9664${Pr}\u4E2A\uFF0C \u524D\u9762\u6709${Vn}\u4E2A\uFF0C\u65B0\u589E${Br}\u4E2A`),Pr>1){const ir=Array.from({length:Pr},(jr,Kr)=>Vn+Kr);gr(ir)}else gr(Vn)}else if(Br>0){const Pr=en(Sn,ja.from);console.log(`\u65B0\u589E${Br}\u4E2A\uFF0C\u4E4B\u524D\u6709${Pr}\u4E2A`),nn(Br,Pr)}}},ma=()=>{const Sn=Se.getFieldValue(["sub_item_banks",...yn]);Se.setFieldValue(["sub_item_banks",...yn],Sn==null?void 0:Sn.map((ja,nn)=>Va(pa({},ja),{position:nn+1})))},wn=(0,b.useRef)(),Ba=(Sn,ja)=>{for(let nn=0;nn{Aa.current(Sn),ma()},yr=(kt=(bt=Se.getFieldValue("sub_item_banks"))==null?void 0:bt[yn==null?void 0:yn[0]])==null?void 0:kt[yn==null?void 0:yn[1]];return console.log(Se==null?void 0:Se.getFieldValue(["sub_item_banks",...rt])),Wt.createElement("div",{className:yt.wrap},Wt.createElement("div",{className:yt.questionTitleEditorWrap},Wt.createElement(Be.default.Item,{label:"\u9898\u5E72",name:$n,labelCol:{span:24},rules:[{required:!0}]},Wt.createElement(zt,{scrollId:"name",watch:!0,height:140,placeholder:de,showNullButton:!0,onCMBeforeChange:(Sn,ja)=>{qn(Sn,ja,Ba,vn)}}))),Wt.createElement(Be.default.List,{name:yn,rules:[{validator(Sn,ja){if((ja==null?void 0:ja.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const nn of ja){const{answer_text:gr}=nn||{};if(gr!=null&&gr.some(Dr=>(Dr==null?void 0:Dr.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Sn,{add:ja,remove:nn},{errors:gr})=>(wn.current=ja,Aa.current=nn,Wt.createElement(Wt.Fragment,null,Wt.createElement(Be.default.Item,{label:Wt.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(Sn!=null&&Sn.length)&&Wt.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),Sn.map((Dr,Br)=>{var Pr=Dr,{key:Vn,name:ir}=Pr,jr=ur(Pr,["key","name"]);return Wt.createElement(Qe.Z,{className:"mb20",key:Vn,align:"top"},Wt.createElement(Je.Z,{flex:"0 0 auto",className:`${yt.blankIndex} pt5`},"\u586B\u7A7A\u9879",Br+1),Wt.createElement(Je.Z,{flex:1},Wt.createElement(Qe.Z,{align:"top",justify:"space-between"},Wt.createElement(Je.Z,{flex:1},Wt.createElement(Be.default.Item,Va(pa({},jr),{name:[ir,"answer_text"],noStyle:!0}),Wt.createElement(Sr,null))),(Se==null?void 0:Se.getFieldValue(["sub_item_banks",...rt]))&&Wt.createElement(Je.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},Wt.createElement(Be.default.Item,Va(pa({},jr),{name:[ir,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:yt.blankInputNumberWrapper}),Wt.createElement(Te.Z,{onChange:()=>{var Kr,_r;let hr=Se==null?void 0:Se.getFieldValue(["sub_item_banks",yn==null?void 0:yn[0],"standard_answers"]),xr=0;for(let Mr in hr)(Kr=hr[Mr])!=null&&Kr.score&&(xr+=Number((_r=hr[Mr])==null?void 0:_r.score));Se==null||Se.setFieldValue(["sub_item_banks",yn==null?void 0:yn[0],"question_score"],xr)},className:yt.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Wt.createElement(Be.default.Item,Va(pa({},jr),{name:[ir,"position"],noStyle:!0}),Wt.createElement(Fe.default,{type:"hidden"}))))})))),Wt.createElement(Qe.Z,{align:"middle"},Wt.createElement(Be.default.Item,{name:[Ee,"downcase"],valuePropName:"checked"},Wt.createElement(Gt.Z,null)),Wt.createElement(Je.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Wt.createElement(Qe.Z,{align:"middle"},Wt.createElement(Be.default.Item,{name:[Ee,"no_space"],valuePropName:"checked"},Wt.createElement(Gt.Z,null)),Wt.createElement(Je.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(yr==null?void 0:yr.length)>1&&Wt.createElement(Qe.Z,{align:"middle",className:(yr==null?void 0:yr.length)>1?"mb30":`${yt.hide}`},Wt.createElement(Be.default.Item,{name:En},Wt.createElement(Nr,null)),Wt.createElement(Je.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Wt.createElement("div",{onClick:()=>Dt(!0)},Wt.createElement(Be.default.Item,{name:oa,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Wt.createElement(_n,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Tn}))))};var Xa=Object.defineProperty,qa=Object.defineProperties,fr=Object.getOwnPropertyDescriptors,ga=Object.getOwnPropertySymbols,or=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable,ka=(de,Se,Ee)=>Se in de?Xa(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):de[Se]=Ee,nr=(de,Se)=>{for(var Ee in Se||(Se={}))or.call(Se,Ee)&&ka(de,Ee,Se[Ee]);if(ga)for(var Ee of ga(Se))dr.call(Se,Ee)&&ka(de,Ee,Se[Ee]);return de},mt=(de,Se)=>qa(de,fr(Se)),it=(de,Se)=>{var Ee={};for(var rt in de)or.call(de,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=de[rt]);if(de!=null&&ga)for(var rt of ga(de))Se.indexOf(rt)<0&&dr.call(de,rt)&&(Ee[rt]=de[rt]);return Ee};const Nt={\u6B63\u786E:"T",\u9519\u8BEF:"F"},dn=({value:de,onChange:Se,form:Ee,choiceKey:rt})=>{const yn=(de==null?void 0:de.is_answer)===1,$n=de==null?void 0:de.choice_text,oa=()=>{var En;const bt=(En=Ee==null?void 0:Ee.getFieldValue(["sub_item_banks",...rt]))==null?void 0:En.map(kt=>({choice_text:kt.choice_text,is_answer:0}));Ee==null||Ee.setFieldValue(["sub_item_banks",...rt],bt),Se(mt(nr({},de),{is_answer:1}))};return b.createElement(Qe.Z,{className:yt.choiceWrap,align:"middle",wrap:!1},b.createElement(Je.Z,{onClick:oa,className:`${yt.choiceIndex} ${yt.judgementIndex} ${yn?yt.activeAnswer:""}`},Nt[$n]),b.createElement(Je.Z,{flex:1,className:`${yt.editorWrap} ml15`},b.createElement("div",{className:`${yt.inputBorder} ${yt.placeholder} ${yn?yt.activeJudgementAnswer:""}`},$n)),b.createElement(Je.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:oa,className:`${yt.setAnswerBtn} ${yn?yt.activeAnswer:""}`},yn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ia=({questionTitlePlaceholder:de,choiceKey:Se="choices",form:Ee,titleKey:rt="name",analysisKey:yn="analysis"})=>{const[$n,oa]=(0,b.useState)(!1);return b.createElement("div",{className:yt.wrap},b.createElement("div",{className:yt.questionTitleEditorWrap},b.createElement(Be.default.Item,{label:"\u9898\u5E72",name:rt,labelCol:{span:24},rules:[{required:!0}]},b.createElement(zt,{scrollId:"name",watch:!0,height:140,placeholder:de}))),b.createElement(Be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},b.createElement(Be.default.List,{name:Se,rules:[{validator(En,bt){return bt.some(Tn=>(Tn==null?void 0:Tn.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},En=>b.createElement("div",{id:"choices"},En.map(bt=>{var kt=bt,{key:Tn,name:Dt}=kt,en=it(kt,["key","name"]);return b.createElement(Be.default.Item,mt(nr({},en),{key:Tn,name:Dt,noStyle:!0}),b.createElement(dn,{form:Ee,choiceKey:Se}))})))),b.createElement("div",{onClick:()=>oa(!0)},b.createElement(Be.default.Item,{name:yn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(_n,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:$n}))))};var La=oe(12563),$t=Object.defineProperty,Fa=Object.defineProperties,Sa=Object.getOwnPropertyDescriptors,ar=Object.getOwnPropertySymbols,Ta=Object.prototype.hasOwnProperty,da=Object.prototype.propertyIsEnumerable,Qa=(de,Se,Ee)=>Se in de?$t(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):de[Se]=Ee,vr=(de,Se)=>{for(var Ee in Se||(Se={}))Ta.call(Se,Ee)&&Qa(de,Ee,Se[Ee]);if(ar)for(var Ee of ar(Se))da.call(Se,Ee)&&Qa(de,Ee,Se[Ee]);return de},Tr=(de,Se)=>Fa(de,Sa(Se)),er=(de,Se)=>{var Ee={};for(var rt in de)Ta.call(de,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=de[rt]);if(de!=null&&ar)for(var rt of ar(de))Se.indexOf(rt)<0&&da.call(de,rt)&&(Ee[rt]=de[rt]);return Ee};const cr=de=>{var Se=de,{value:Ee,onChange:rt}=Se,yn=er(Se,["value","onChange"]);const $n=oa=>{rt([oa])};return b.createElement(je.Z,Tr(vr({},yn),{defaultValue:Ee==null?void 0:Ee[0],onChange:$n}))},Cr=de=>{if(!de)return!1;if(/^s*$/.test(de)||de.trim()===""){Ce.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Se=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return de==="|"?(Ce.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Rn=({value:de=[],onClose:Se})=>b.createElement(La.default,{closable:!0,onClose:Se,className:yt.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},de.join(" \u6216 "))),an=({questionTitlePlaceholder:de,form:Se,showKeywords:Ee,isMustKeyWords:rt=Ee,titleKey:yn="name",analysisKey:$n="analysis",answerTexts:oa="answer_texts",keywords:En="keywords",useKeywords:bt="use_keywords",indexs:kt})=>{var Tn,Dt,en,qn;const[ma,wn]=(0,b.useState)(!1),[Ba,Aa]=(0,b.useState)(""),vn=(Dt=(Tn=Se.getFieldValue("sub_item_banks"))==null?void 0:Tn[bt==null?void 0:bt[0]])==null?void 0:Dt[bt==null?void 0:bt[1]],yr=(qn=(en=Se.getFieldValue("sub_item_banks"))==null?void 0:en[bt==null?void 0:bt[0]])==null?void 0:qn.question_score;return b.createElement("div",{className:yt.wrap},b.createElement("div",{className:yt.questionTitleEditorWrap},b.createElement(Be.default.Item,{label:"\u9898\u5E72",name:yn,labelCol:{span:24},rules:[{required:!0}]},b.createElement(zt,{scrollId:"name",watch:!0,height:140,placeholder:de}))),b.createElement(Be.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:oa,labelCol:{span:24}},b.createElement(cr,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Ee&&!rt&&b.createElement(Be.default.Item,{hidden:!0,name:bt,valuePropName:"checked"},b.createElement(Gt.Z,{defaultChecked:!0})),Ee&&rt&&b.createElement(Qe.Z,{align:"middle",className:"mb30"},b.createElement(Be.default.Item,{name:bt,valuePropName:"checked"},b.createElement(Gt.Z,null)),b.createElement(Je.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(Je.Z,null,b.createElement(ne.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(vt.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(vn||!rt)&&b.createElement(Be.default.List,{name:En,rules:[{validator(Sn,ja){return rt?ja!=null&&ja.length?(ja==null?void 0:ja.reduce((gr,Dr)=>gr+Dr.score,0))>parseFloat(yr)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(Sn,{add:ja,remove:nn})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${yt.title} mb10`},rt?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(Qe.Z,{align:"middle",className:"font14 mb30"},b.createElement(Je.Z,{flex:1},b.createElement(Fe.default,{value:Ba,onChange:gr=>{Aa(gr.target.value)},maxLength:50,allowClear:!0,onPressEnter:gr=>{var Dr,Br,Pr,Vn;const ir=`${(Dr=gr.target)==null?void 0:Dr.value}`,jr=(Pr=(Br=ir==null?void 0:ir.split("|"))==null?void 0:Br.filter(hr=>!!hr))==null?void 0:Pr.map(hr=>hr.trim()),Kr=Se.getFieldValue(["sub_item_banks",...En]),_r=((Vn=Kr==null?void 0:Kr.map(hr=>hr==null?void 0:hr.keyword))==null?void 0:Vn.flat())||[];for(const hr of jr)if(_r.includes(hr)){Ce.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Cr(ir)&&(ja({keyword:jr,score:1}),Aa(""))},className:yt.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(Je.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Sn.map(gr=>{var Dr=gr,{key:Br,name:Pr}=Dr,Vn=er(Dr,["key","name"]);return b.createElement(Qe.Z,{key:Br,className:"mb20",style:{marginRight:148}},b.createElement(Je.Z,{flex:1},b.createElement(Qe.Z,{align:"middle",justify:"space-between"},b.createElement(Be.default.Item,Tr(vr({},Vn),{name:[Pr,"keyword"]}),b.createElement(Rn,{onClose:()=>nn(Pr)})),rt&&b.createElement(Be.default.Item,Tr(vr({},Vn),{name:[Pr,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:yt.blankInputNumberWrapper}),b.createElement(Te.Z,{className:yt.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>wn(!0)},b.createElement(Be.default.Item,{name:$n,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(_n,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ma}))))};var Lt=oe(59301),se=Object.defineProperty,$e=Object.defineProperties,st=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,Jt=(de,Se,Ee)=>Se in de?se(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):de[Se]=Ee,Ut=(de,Se)=>{for(var Ee in Se||(Se={}))at.call(Se,Ee)&&Jt(de,Ee,Se[Ee]);if(jt)for(var Ee of jt(Se))tn.call(Se,Ee)&&Jt(de,Ee,Se[Ee]);return de},Xt=(de,Se)=>$e(de,st(Se)),ra=(de,Se)=>{var Ee={};for(var rt in de)at.call(de,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=de[rt]);if(de!=null&&jt)for(var rt of jt(de))Se.indexOf(rt)<0&&tn.call(de,rt)&&(Ee[rt]=de[rt]);return Ee};const{Panel:Ha}=Rt.default,Za=({questionTitlePlaceholder:de,choiceKey:Se,form:Ee,withScore:rt})=>{const yn=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}],[$n,oa]=(0,b.useState)(),[En,bt]=(0,b.useState)([]),kt=Dt=>{bt(Dt)},Tn=({value:Dt})=>Lt.createElement("div",{style:{width:150,paddingLeft:11}},Dt);return Lt.createElement("div",{className:yt.wrap},Lt.createElement("div",{className:yt.questionTitleEditorWrap},Lt.createElement(Be.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Lt.createElement(zt,{scrollId:"name",watch:!0,height:140,placeholder:de}))),Lt.createElement(Be.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),Lt.createElement(Be.default.List,{name:"sub_item_banks",rules:[{validator(Dt,en){return en?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Dt,{add:en,remove:qn,move:ma})=>{const wn=Ee.getFieldValue("sub_item_banks");return Lt.createElement(Lt.Fragment,null,Lt.createElement(Rt.default,{className:Dt.length>0?yt.collapseWrapper:"",bordered:!1,activeKey:En,onChange:kt,expandIcon:({isActive:Ba})=>Lt.createElement("i",{className:`iconfont icon-weizhankai ${Ba?yt.open:yt.close}`,style:{fontSize:14,transition:"all .2s"}})},Dt.map((Ba,Aa)=>{var vn=Ba,{key:yr,name:Sn}=vn,ja=ra(vn,["key","name"]),nn,gr,Dr,Br,Pr,Vn,ir,jr,Kr,_r,hr,xr,Mr,tr;return Lt.createElement(Ha,{className:yt.panel,forceRender:!0,header:Lt.createElement("div",{className:yt.panelHeader},"\u7B2C",Aa+1,"\u5C0F\u9898",Lt.createElement("span",null,"\uFF08",((nn=wn==null?void 0:wn[Sn])==null?void 0:nn.question_type)==0?"\u5355\u9009\u9898":((gr=wn==null?void 0:wn[Sn])==null?void 0:gr.question_type)==1?"\u591A\u9009\u9898":((Dr=wn==null?void 0:wn[Sn])==null?void 0:Dr.question_type)==3?"\u586B\u7A7A\u9898":((Br=wn==null?void 0:wn[Sn])==null?void 0:Br.question_type)==2?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:Sn,extra:Lt.createElement(Qe.Z,{align:"middle",onClick:Lr=>Lr.stopPropagation()},((Pr=wn==null?void 0:wn[Sn])==null?void 0:Pr.question_type)==3&&Lt.createElement(Lt.Fragment,null,Lt.createElement(De.ZP.Group,{defaultValue:(Vn=wn==null?void 0:wn[Sn])==null?void 0:Vn.use_blank_score,className:ie.scoreByBlankRadio,style:{marginRight:20},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:Lr=>{var Rr,Qr,$r,mo,lo;if(Ee==null||Ee.setFieldValue(["sub_item_banks",Sn,"use_blank_score"],(Rr=Lr==null?void 0:Lr.target)==null?void 0:Rr.value),(Qr=Lr==null?void 0:Lr.target)!=null&&Qr.value){let Ao=0;for(let So in($r=Ee==null?void 0:Ee.getFieldValue(["sub_item_banks",Sn]))==null?void 0:$r.standard_answers)Ao+=Number((lo=(mo=Ee==null?void 0:Ee.getFieldValue(["sub_item_banks",Sn]))==null?void 0:mo.standard_answers[So])==null?void 0:lo.score);Ee==null||Ee.setFieldValue(["sub_item_banks",Sn,"question_score"],Ao||"")}oa(new Date)}}),Lt.createElement(ne.Z,{overlayInnerStyle:{width:460},title:Lt.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",Lt.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},Lt.createElement("i",{className:"icon-tishixiaowenhao font18 mr25 c-3061d0"}))),rt&&Lt.createElement(Be.default.Item,Xt(Ut({},ja),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[Sn,"question_score"],className:yt.blankInputNumberWrapper}),((ir=wn==null?void 0:wn[Sn])==null?void 0:ir.question_type)==3&&((jr=wn==null?void 0:wn[Sn])!=null&&jr.use_blank_score)?Lt.createElement(Tn,null):Lt.createElement(Te.Z,{className:yt.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}})),Lt.createElement(Qe.Z,{align:"middle",className:"pl40",style:{width:82}},Aa!==0&&Lt.createElement("div",{onClick:()=>{var Lr;ma(Aa,Aa-1);const Rr=(Lr=Ee.getFieldValue("sub_item_banks"))==null?void 0:Lr.map((Qr,$r)=>(Dt.map((mo,lo)=>{$r===lo&&(Qr.q_position=Number(mo.name)+1)}),Qr));Ee.setFieldValue("sub_item_banks",Rr)}},Lt.createElement(ne.Z,{title:"\u4E0A\u79FB"},Lt.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),Aa{var Lr;ma(Aa,Aa+1);const Rr=(Lr=Ee.getFieldValue("sub_item_banks"))==null?void 0:Lr.map((Qr,$r)=>(Dt.map((mo,lo)=>{$r===lo&&(Qr.q_position=Number(mo.name)+1)}),Qr));Ee.setFieldValue("sub_item_banks",Rr)},className:Aa===0?"":"ml10"},Lt.createElement(ne.Z,{title:"\u4E0B\u79FB"},Lt.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"})))),Lt.createElement(ne.Z,{title:"\u5220\u9664"},Lt.createElement(hn.Z,{className:`${yt.deleteIcon} ml40`,onClick:()=>qn(Sn)})))},Lt.createElement(Be.default.Item,Xt(Ut({},ja),{name:Sn}),(((Kr=wn==null?void 0:wn[Sn])==null?void 0:Kr.question_type)==0||((_r=wn==null?void 0:wn[Sn])==null?void 0:_r.question_type)==1)&&Lt.createElement(Da,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((hr=wn==null?void 0:wn[Sn])==null?void 0:hr.question_type)==1,form:Ee,choiceKey:[Sn,"choices"],titleKey:[Sn,"name"],analysisKey:[Sn,"analysis"],choiceOptionsPath:["sub_item_banks",Sn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((xr=wn==null?void 0:wn[Sn])==null?void 0:xr.question_type)==3&&Lt.createElement(Yr,{form:Ee,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",name:Sn,scoreByBlank:[Sn,"use_blank_score"],titleKey:[Sn,"name"],analysisKey:[Sn,"analysis"],isOrdered:[Sn,"is_ordered"],answerKey:[Sn,"standard_answers"],key:$n}),((Mr=wn==null?void 0:wn[Sn])==null?void 0:Mr.question_type)==2&&Lt.createElement(ia,{form:Ee,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Sn,"name"],analysisKey:[Sn,"analysis"],choiceKey:[Sn,"choices"]}),((tr=wn==null?void 0:wn[Sn])==null?void 0:tr.question_type)==4&&Lt.createElement(an,{showKeywords:!0,isMustKeyWords:!0,form:Ee,titleKey:[Sn,"name"],analysisKey:[Sn,"analysis"],answerTexts:[Sn,"answer_texts"],useKeywords:[Sn,"use_keywords"],keywords:[Sn,"keywords"],indexs:Sn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9",key:$n})))})),Dt.length<20&&Lt.createElement(z.Z,{menu:{items:[{label:Lt.createElement("div",{onClick:()=>{en({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:0,item_type:"SINGLE"}),bt([Dt==null?void 0:Dt.length,...En])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:Lt.createElement("div",{onClick:()=>{en({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:1,item_type:"MULTIPLE"}),bt([Dt==null?void 0:Dt.length,...En])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:Lt.createElement("div",{onClick:()=>{en({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",question_type:2,item_type:"JUDGMENT"}),bt([Dt==null?void 0:Dt.length,...En])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:Lt.createElement("div",{onClick:()=>{en({name:"",analysis:"",is_ordered:!0,standard_answers:[],question_type:3,item_type:"COMPLETION",use_blank_score:!0,downcase:!0,no_space:!0}),bt([Dt==null?void 0:Dt.length,...En])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:Lt.createElement("div",{onClick:()=>{en({name:"",answer_texts:[],keywords:[],use_keywords:!1,analysis:"",question_type:4,item_type:"SUBJECTIVE"}),bt([Dt==null?void 0:Dt.length,...En])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(Ba=>Ba.show).map(Ba=>({label:Ba.label,key:Ba.key}))}},Lt.createElement("div",{className:`${yt.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var mn=oe(59301),Ia=Object.defineProperty,Ca=Object.defineProperties,Ga=Object.getOwnPropertyDescriptors,Ir=Object.getOwnPropertySymbols,Vr=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable,Zr=(de,Se,Ee)=>Se in de?Ia(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):de[Se]=Ee,kr=(de,Se)=>{for(var Ee in Se||(Se={}))Vr.call(Se,Ee)&&Zr(de,Ee,Se[Ee]);if(Ir)for(var Ee of Ir(Se))Or.call(Se,Ee)&&Zr(de,Ee,Se[Ee]);return de},Hr=(de,Se)=>Ca(de,Ga(Se)),bo=(de,Se,Ee)=>new Promise((rt,yn)=>{var $n=bt=>{try{En(Ee.next(bt))}catch(kt){yn(kt)}},oa=bt=>{try{En(Ee.throw(bt))}catch(kt){yn(kt)}},En=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,oa);En((Ee=Ee.apply(de,Se)).next())}),po=({qitem:de,setisedit:Se,TagDiscipline:Ee,exerciseitem:rt,seveeditor:yn,deleteitem:$n,getTagData:oa,init:En,showTip:bt=!1})=>{const[kt]=Be.default.useForm();(0,b.useEffect)(()=>{var Dt;kt.setFieldsValue(Hr(kr({},de),{name:de.question_title,sub_item_banks:(Dt=de.sub_exercise_questions)==null?void 0:Dt.map(en=>{var qn;return Hr(kr({},en),{name:en.question_title,choices:(qn=en==null?void 0:en.question_choices)==null?void 0:qn.map(ma=>Hr(kr({},ma),{is_answer:ma!=null&&ma.standard_boolean?1:0}))})}),repeat_answer:!de.repeat_answer}))},[de]);const Tn=Dt=>{if(!(Dt!=null&&Dt.length))return!1;const en=Dt.map(ma=>{var wn;return(wn=ma.choice_text)==null?void 0:wn.trim().replace(/^\s+|\s+$/g,"")});return new Set(en).size!==en.length};return mn.createElement("div",null,mn.createElement(Be.default,{form:kt,colon:!1,onValuesChange:(Dt,en)=>{var qn,ma,wn;if(Dt!=null&&Dt.sub_item_banks){let Ba=((qn=kt.getFieldValue("sub_item_banks"))==null?void 0:qn.length)>0&&((wn=(ma=kt.getFieldValue("sub_item_banks"))==null?void 0:ma.map(Aa=>{var vn;if(Aa.question_type==3&&(Aa!=null&&Aa.use_blank_score)){let yr=0;for(let Sn in Aa==null?void 0:Aa.standard_answers)yr+=Number((vn=Aa==null?void 0:Aa.standard_answers[Sn])==null?void 0:vn.score);return yr}else return Aa.question_score}))==null?void 0:wn.filter(Aa=>Aa));(Ba==null?void 0:Ba.length)>0&&kt.setFieldsValue({question_score:parseFloat(Ba==null?void 0:Ba.reduce((Aa,vn)=>parseFloat(Aa)+parseFloat(vn))).toFixed(1)})}},onFinish:Dt=>{var en,qn;if((en=Dt.sub_item_banks)==null?void 0:en.some(wn=>wn.question_type===0||wn.question_type===1?Tn(wn.choices):!1)){Ce.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}yn(Hr(kr(kr({},de),Dt),{sub_item_banks:(qn=Dt==null?void 0:Dt.sub_item_banks)==null?void 0:qn.map(wn=>(console.log(wn),Hr(kr({},wn),{item_type:wn==null?void 0:wn.question_type,id:(wn==null?void 0:wn.question_id)||""})))}))},onFinishFailed:Dt=>bo(void 0,null,function*(){var en,qn;Ce.ZP.error(Dt.errorFields[0].errors[0]),kt.scrollToField((qn=(en=Dt==null?void 0:Dt.errorFields)==null?void 0:en[0])==null?void 0:qn.name,{behavior:"smooth",block:"center"})})},mn.createElement("div",{style:{display:"flex",alignItems:"center"}},mn.createElement("div",{style:{flex:1}},mn.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),mn.createElement("span",null,"\u7EC4\u5408\u9898")),!de.isadd&&mn.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{$n()}},mn.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),mn.createElement(We.ZP,{onClick:()=>{var Dt;de.isadd?(Se(!1),En()):(kt.setFieldsValue(Hr(kr({},de),{name:de==null?void 0:de.question_title,choices:(Dt=de==null?void 0:de.question_choices)==null?void 0:Dt.map(en=>Hr(kr({},en),{standard_boolean:en!=null&&en.standard_boolean?1:0})),repeat_answer:!(de!=null&&de.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),mn.createElement(ne.Z,{overlayClassName:ie.shake,open:bt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:mn.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},mn.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},mn.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{kt.submit()}},"\u4FDD\u5B58"))),mn.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},mn.createElement(ba.Z,{text:"\uFF08\u7EC4\u5408\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5C0F\u9898\u5206\u503C\u4E4B\u548C\uFF09"}),mn.createElement(Za,{form:kt,withScore:!0,choiceKey:"",questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7EC4\u5408\u9898\u9898\u5E72\u5185\u5BB9"}),mn.createElement(ct,{getTagData:oa,qitem:de,exerciseitem:rt,TagDiscipline:Ee,form:kt}))))},Eo=oe(13919),Co=oe(24334),Gr=oe(59301),xo=Object.defineProperty,jl=Object.defineProperties,Hl=Object.getOwnPropertyDescriptors,ci=Object.getOwnPropertySymbols,Qi=Object.prototype.hasOwnProperty,zl=Object.prototype.propertyIsEnumerable,ao=(de,Se,Ee)=>Se in de?xo(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):de[Se]=Ee,Do=(de,Se)=>{for(var Ee in Se||(Se={}))Qi.call(Se,Ee)&&ao(de,Ee,Se[Ee]);if(ci)for(var Ee of ci(Se))zl.call(Se,Ee)&&ao(de,Ee,Se[Ee]);return de},Uo=(de,Se)=>jl(de,Hl(Se)),Zl=(de,Se,Ee)=>new Promise((rt,yn)=>{var $n=bt=>{try{En(Ee.next(bt))}catch(kt){yn(kt)}},oa=bt=>{try{En(Ee.throw(bt))}catch(kt){yn(kt)}},En=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,oa);En((Ee=Ee.apply(de,Se)).next())}),ei=({qitem:de,TagDiscipline:Se,exerciseitem:Ee,setisedit:rt,seveeditor:yn,deleteitem:$n,getTagData:oa,init:En,showTip:bt=!1})=>{const[kt]=Be.default.useForm(),Tn=!0;return(0,b.useEffect)(()=>{var Dt,en,qn;kt.setFieldsValue(Uo(Do({},de),{standard_answers:de.standard_answer,difficulty:de.difficulty,item_banks_group_id:de.item_banks_group_id,hack:Uo(Do({},de),{time_limit:(de==null?void 0:de.time_limit)||3}),hack_codes:{language:(Dt=de==null?void 0:de.program_attr)==null?void 0:Dt.language,code:Co.Base64.decode(((en=de==null?void 0:de.program_attr)==null?void 0:en.code)||"")},hack_sets:Do({},(qn=de==null?void 0:de.hack_sets)==null?void 0:qn[0]),repeat_answer:!de.repeat_answer}))},[de]),Gr.createElement("div",null,Gr.createElement(Be.default,{form:kt,colon:!1,onValuesChange:(Dt,en)=>{var qn,ma,wn,Ba;if(Dt!=null&&Dt.standard_answers){let Aa=((qn=kt.getFieldValue("standard_answers"))==null?void 0:qn.length)>0&&((wn=(ma=kt.getFieldValue("standard_answers"))==null?void 0:ma.map(vn=>vn.score))==null?void 0:wn.filter(vn=>vn));(Aa==null?void 0:Aa.length)>0&&kt.setFieldsValue({question_score:(Aa==null?void 0:Aa.length)>0&&((Ba=Aa.reduce((vn,yr)=>vn+yr))==null?void 0:Ba.toFixed(1))})}},onFinish:Dt=>{var en;yn(Uo(Do(Do({},de),Dt),{item_type:de==null?void 0:de.question_type,standard_answers:(en=Dt.standard_answers)==null?void 0:en.map((qn,ma)=>Uo(Do({},qn),{position:ma+1})),standard_answer:void 0}))},onFinishFailed:Dt=>Zl(void 0,null,function*(){var en,qn;Ce.ZP.error(Dt.errorFields[0].errors[0]),kt.scrollToField((qn=(en=Dt==null?void 0:Dt.errorFields)==null?void 0:en[0])==null?void 0:qn.name,{behavior:"smooth",block:"center"})})},Gr.createElement("div",{style:{display:"flex",alignItems:"center"}},Gr.createElement("div",{style:{flex:1}},Gr.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Gr.createElement("span",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898")),!de.isadd&&Gr.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{$n()}},Gr.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}})," \u5220\u9664"),Gr.createElement(We.ZP,{onClick:()=>{var Dt,en,qn;de.isadd?(rt(!1),En()):(kt.setFieldsValue(Uo(Do({},de),{standard_answers:de.standard_answer,difficulty:de.difficult,item_banks_group_id:de.item_banks_group_id,hack:Do({},de),hack_codes:{language:(Dt=de==null?void 0:de.program_attr)==null?void 0:Dt.language,code:Co.Base64.decode((en=de==null?void 0:de.program_attr)==null?void 0:en.code)},hack_sets:Do({},(qn=de==null?void 0:de.hack_sets)==null?void 0:qn[0]),repeat_answer:!de.repeat_answer})),rt(!1))}},"\u53D6\u6D88"),Gr.createElement(ne.Z,{overlayClassName:ie.shake,open:bt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Gr.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Gr.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Gr.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{kt.submit()}},"\u4FDD\u5B58"))),Gr.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Gr.createElement(ba.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}),Gr.createElement(Eo.t,{form:kt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7A0B\u5E8F\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:Tn,hackidentifier:de==null?void 0:de.hack_identifier,answerKey:"standard_answers"}),Gr.createElement(ct,{getTagData:oa,qitem:de,exerciseitem:Ee,TagDiscipline:Se,form:kt}))))},zr=oe(59301),Ui=Object.defineProperty,Ki=Object.defineProperties,Wl=Object.getOwnPropertyDescriptors,Yi=Object.getOwnPropertySymbols,Vl=Object.prototype.hasOwnProperty,fo=Object.prototype.propertyIsEnumerable,Ji=(de,Se,Ee)=>Se in de?Ui(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):de[Se]=Ee,ho=(de,Se)=>{for(var Ee in Se||(Se={}))Vl.call(Se,Ee)&&Ji(de,Ee,Se[Ee]);if(Yi)for(var Ee of Yi(Se))fo.call(Se,Ee)&&Ji(de,Ee,Se[Ee]);return de},io=(de,Se)=>Ki(de,Wl(Se)),Bi=(de,Se,Ee)=>new Promise((rt,yn)=>{var $n=bt=>{try{En(Ee.next(bt))}catch(kt){yn(kt)}},oa=bt=>{try{En(Ee.throw(bt))}catch(kt){yn(kt)}},En=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,oa);En((Ee=Ee.apply(de,Se)).next())}),Ql=({qitem:de,setqitem:Se,setisedit:Ee,TagDiscipline:rt,exerciseitem:yn,seveeditor:$n,deleteitem:oa,showTip:En=!1})=>{var bt;const[kt]=Be.default.useForm();return(0,b.useEffect)(()=>{var Tn,Dt;kt.setFieldsValue(io(ho({},de),{name:de==null?void 0:de.question_title,choices:(Tn=de==null?void 0:de.question_choices)==null?void 0:Tn.map(en=>io(ho({},en),{standard_boolean:en!=null&&en.standard_boolean?1:0})),repeat_answer:!(de!=null&&de.repeat_answer)})),de.shixun=(Dt=de==null?void 0:de.shixun)==null?void 0:Dt.map(en=>io(ho({},en),{defaultscore:en.challenge_score}))},[]),zr.createElement("div",null,zr.createElement(Be.default,{form:kt,colon:!1,onFinish:Tn=>{var Dt,en;let qn=io(ho({},Tn),{question_scores:(Dt=de==null?void 0:de.shixun)==null?void 0:Dt.map(ma=>ma.challenge_score),item_type:de==null?void 0:de.question_type,choices:(en=Tn==null?void 0:Tn.choices)==null?void 0:en.map(ma=>io(ho({},ma),{is_answer:ma.standard_boolean}))});$n(ho(ho({},de),qn))},onFinishFailed:Tn=>Bi(void 0,null,function*(){var Dt,en;Ce.ZP.error(Tn.errorFields[0].errors[0]),kt.scrollToField((en=(Dt=Tn==null?void 0:Tn.errorFields)==null?void 0:Dt[0])==null?void 0:en.name,{behavior:"smooth",block:"center"})})},zr.createElement("div",{style:{display:"flex",alignItems:"center"}},zr.createElement("div",{style:{flex:1}},zr.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),zr.createElement("span",null,"\u5B9E\u8BAD\u9898")),zr.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{oa()}},zr.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),zr.createElement(We.ZP,{onClick:()=>{var Tn,Dt;kt.setFieldsValue(io(ho({},de),{name:de==null?void 0:de.question_title,choices:(Tn=de==null?void 0:de.question_choices)==null?void 0:Tn.map(en=>io(ho({},en),{standard_boolean:en!=null&&en.standard_boolean?1:0})),repeat_answer:!(de!=null&&de.repeat_answer)})),de.shixun=(Dt=de==null?void 0:de.shixun)==null?void 0:Dt.map(en=>io(ho({},en),{challenge_score:en.defaultscore})),Se(ho({},de)),Ee(!1)}},"\u53D6\u6D88"),zr.createElement(ne.Z,{overlayClassName:ie.shake,open:En,placement:"bottom",color:"rgba(244,156,14,0.19)",title:zr.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},zr.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},zr.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>Bi(void 0,null,function*(){var Tn,Dt,en;if(((Dt=(Tn=de==null?void 0:de.shixun)==null?void 0:Tn.map)==null?void 0:Dt.call(Tn,qn=>qn.challenge_score).filter(qn=>qn).length)<((en=de==null?void 0:de.shixun)==null?void 0:en.length)){Ce.ZP.info("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A");return}kt.submit()})},"\u4FDD\u5B58"))),zr.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},zr.createElement(ba.Z,{text:"\uFF08\u5B9E\u8BAD\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5173\u5361\u5206\u503C\u4E4B\u548C\uFF09"}),zr.createElement(Be.default.Item,{label:"\u9898\u5E72",name:"question_title",labelCol:{span:24},rules:[{required:!0}]},zr.createElement(je.Z,{watch:!0,height:140,placeholder:"",defaultValue:de.question_title})),zr.createElement(Qe.Z,{style:{marginBottom:15},align:"middle",justify:"space-between"},zr.createElement("div",null,zr.createElement("span",{style:{color:"red"}},"*"),"\u5173\u5361\u540D\u79F0"),zr.createElement("a",{href:`/shixuns/${de==null?void 0:de.shixun_identifier}/challenges?exercise=true`,target:"_blank"},zr.createElement("i",{onClick:()=>{},className:"iconfont icon-shixunkecheng font14 mr5"}),"\u5B9E\u8BAD\u8BE6\u60C5")),(bt=de==null?void 0:de.shixun)==null?void 0:bt.map((Tn,Dt)=>zr.createElement("div",{key:Tn.challenge_id,style:{display:"flex",marginBottom:20}},zr.createElement("div",{style:{flex:1}},Dt+1,"\u3001",Tn.challenge_name),zr.createElement("div",null,zr.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C",zr.createElement(Te.Z,{precision:1,value:Tn==null?void 0:Tn.challenge_score,onChange:en=>{const qn=JSON.parse(JSON.stringify((de==null?void 0:de.shixun)||[]));qn[Dt].challenge_score=en;const ma=qn.every(Ba=>!Ba.challenge_score),wn=parseFloat(qn==null?void 0:qn.map(Ba=>Ba.challenge_score).reduce((Ba,Aa)=>parseFloat(Ba||0)+parseFloat(Aa||0)));kt.setFieldsValue({question_score:ma?"":wn.toFixed(1)}),Se(io(ho({},de),{shixun:qn}))},max:200,min:1,style:{marginLeft:10,width:150},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle"})))))))},ta={flex_box_center:"flex_box_center___ljmk3",flex_space_between:"flex_space_between___Fy45C",flex_box_vertical_center:"flex_box_vertical_center___SoC1C",flex_box_center_end:"flex_box_center_end___MumBX",flex_box_column:"flex_box_column___cutpt",warp:"warp___w1JUC",indexTag:"indexTag___LPncW",normalWrap:"normalWrap___pEIzs",redio:"redio___I6tXM",redioitem:"redioitem___cS4Gp",redioitemyes:"redioitemyes___JBDmk",title:"title___XAohQ",titleyes:"titleyes____bNQk",yestag:"yestag___zQnb1",checkbox:"checkbox___MHadU",checkboxitem:"checkboxitem___KX7mB",checkboxitemyes:"checkboxitemyes___MpOWf",bottom:"bottom___FkHfO",bottomitem:"bottomitem___AS0Qp",left:"left___U23z1",right:"right___yJVEk",completion:"completion___Bu5G6",content:"content___LySPW",items:"items___ETMq9",simple:"simple___XX5t0",shixunWrapper:"shixunWrapper___w6oIG",shixun:"shixun___ePWKn",score:"score___nGh9k",qtitle:"qtitle___DAMW1",program:"program___Mm1qL",combination:"combination___Sw7S6",qtype:"qtype___Xdl60",divname:"divname___AZYhO"},Xi=oe(1710),Ul=oe(78926),Nn=oe(59301);const gi=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],Kl=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}];var Yl=({qitem:de,newExercisePaper:Se})=>{var Ee,rt,yn,$n,oa,En,bt,kt,Tn,Dt,en,qn,ma,wn,Ba,Aa,vn,yr,Sn,ja,nn,gr,Dr,Br,Pr;return Nn.createElement("div",{className:ta.warp},((de==null?void 0:de.question_type)===0||(de==null?void 0:de.question_type)===2)&&Nn.createElement("div",{className:ta.normalWrap},(Ee=de==null?void 0:de.question_choices)==null?void 0:Ee.map((Vn,ir)=>Nn.createElement("div",{className:ta.redio,key:ir},!(Vn!=null&&Vn.standard_boolean)&&Nn.createElement("span",{className:ta.redioitem}),(Vn==null?void 0:Vn.standard_boolean)&&Nn.createElement("i",{className:`${ta.redioitemyes} icon-duigou1`}),Nn.createElement("span",{className:`${Vn!=null&&Vn.standard_boolean?ta.titleyes:ta.title} ${ta.indexTag}`},(de==null?void 0:de.question_type)===0?gi[ir]:""),Nn.createElement(lt.Z,{className:Vn!=null&&Vn.standard_boolean?ta.titleyes:ta.title,value:Vn==null?void 0:Vn.choice_text}),(Vn==null?void 0:Vn.standard_boolean)&&Nn.createElement("div",{className:ta.yestag},"\u6B63\u786E\u7B54\u6848")))),(de==null?void 0:de.question_type)===1&&Nn.createElement("div",{className:ta.normalWrap},(rt=de==null?void 0:de.question_choices)==null?void 0:rt.map((Vn,ir)=>Nn.createElement("div",{className:ta.checkbox,key:ir},!(Vn!=null&&Vn.standard_boolean)&&Nn.createElement("span",{className:ta.checkboxitem}),(Vn==null?void 0:Vn.standard_boolean)&&Nn.createElement("i",{className:`${ta.checkboxitemyes} icon-duigou1`}),Nn.createElement("span",{className:`${Vn!=null&&Vn.standard_boolean?ta.titleyes:ta.title} ${ta.indexTag}`},gi[ir]),Nn.createElement(lt.Z,{className:Vn!=null&&Vn.standard_boolean?ta.titleyes:ta.title,value:Vn==null?void 0:Vn.choice_text}),(Vn==null?void 0:Vn.standard_boolean)&&Nn.createElement("div",{className:ta.yestag},"\u6B63\u786E\u7B54\u6848")))),(de==null?void 0:de.question_type)===3&&Nn.createElement("div",{className:ta.completion},(yn=de==null?void 0:de.standard_answers)==null?void 0:yn.map((Vn,ir)=>{var jr;return Nn.createElement(Qe.Z,{align:"top"},Nn.createElement("span",{className:ta.title},"\u586B\u7A7A\u9879",ir+1),Nn.createElement("div",{className:ta.content},(jr=Vn.answer_text)==null?void 0:jr.map((Kr,_r)=>Nn.createElement("div",{key:_r,className:ta.items,style:(Vn==null?void 0:Vn.model)===2?{border:0,padding:0}:{}},(Vn==null?void 0:Vn.model)===1?Nn.createElement("pre",{className:"mb0"},Kr):Nn.createElement(Ul.Z,{value:Kr,disabled:!0})))))})),(de==null?void 0:de.question_type)===4&&Nn.createElement("div",{className:ta.simple},Nn.createElement("div",{className:ta.title},"\u53C2\u8003\u7B54\u6848"),Nn.createElement("div",{className:"mt10",style:{fontSize:"16px"}},($n=de==null?void 0:de.answer_texts)!=null&&$n[0]?Nn.createElement(lt.Z,{className:ta.content,value:(oa=de==null?void 0:de.answer_texts)==null?void 0:oa[0]}):Nn.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),Nn.createElement("div",{className:"mt20 "},Nn.createElement("span",{className:ta.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),Nn.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},de!=null&&de.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))),(de==null?void 0:de.question_type)===5&&Nn.createElement("div",{className:ta.shixunWrapper},(En=de==null?void 0:de.shixun)==null?void 0:En.map((Vn,ir)=>{var jr,Kr;return Nn.createElement("div",null,Nn.createElement("div",{key:ir,className:`${ta.shixun} mb30`},Nn.createElement("span",{className:ta.score},"\uFF08",Vn==null?void 0:Vn.challenge_score,"\u5206\uFF09"),Nn.createElement("span",{className:ta.qtitle},(de==null?void 0:de.index)+"."+(ir+1),"\u3001",Vn==null?void 0:Vn.challenge_name)),((Kr=(jr=Se==null?void 0:Se.editData)==null?void 0:jr.exercise)==null?void 0:Kr.show_challenge_task_pass)&&Nn.createElement(lt.Z,{className:ta.content,value:(Vn==null?void 0:Vn.challenge_task_pass)||"\u6682\u65E0\u5173\u5361\u63CF\u8FF0"}))})),(de==null?void 0:de.question_type)===6&&Nn.createElement("div",{className:ta.program,style:{border:!((kt=(bt=Se==null?void 0:Se.editData)==null?void 0:bt.exercise)!=null&&kt.show_hack_sets)&&!((Dt=(Tn=Se==null?void 0:Se.editData)==null?void 0:Tn.exercise)!=null&&Dt.show_hack_description)&&"none"}},((qn=(en=Se==null?void 0:Se.editData)==null?void 0:en.exercise)==null?void 0:qn.show_hack_sets)&&Nn.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},Nn.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},Nn.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),Nn.createElement(Xi.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(Vn,ir,jr)=>jr+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(Vn,ir,jr)=>Nn.createElement(ne.Z,{title:Nn.createElement("pre",null,Vn)},Nn.createElement("div",{className:ta.divname},Vn))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(Vn,ir,jr)=>Nn.createElement(ne.Z,{title:Nn.createElement("pre",null,Vn)}," ",Nn.createElement("div",{className:ta.divname},Vn))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:(ma=de==null?void 0:de.program_attr)==null?void 0:ma.hack_sets})),((Ba=(wn=Se==null?void 0:Se.editData)==null?void 0:wn.exercise)==null?void 0:Ba.show_hack_description)&&Nn.createElement("div",null,Nn.createElement(lt.Z,{className:ta.content,value:(de==null?void 0:de.description)||"- -"}))),(de==null?void 0:de.question_type)===7&&((Aa=de==null?void 0:de.sub_exercise_questions)==null?void 0:Aa.map((Vn,ir)=>{var jr,Kr,_r,hr,xr,Mr;return Nn.createElement("div",{key:ir},Nn.createElement("div",{className:ta.combination},Nn.createElement("span",{className:ta.score},Vn==null?void 0:Vn.question_score,"\u5206"),Nn.createElement("span",{className:ta.qtype},(jr=Kl.find(tr=>tr.type==Vn.question_type))==null?void 0:jr.name),Nn.createElement("span",{className:ta.qtitle},Nn.createElement(lt.Z,{value:`${ir+1}\u3001${Vn==null?void 0:Vn.question_title}`}))),(Vn.question_type===0||Vn.question_type===2)&&Nn.createElement("div",{className:ta.warp,style:{padding:"20px 58px 0 58px"}},Nn.createElement("div",null,(Kr=Vn==null?void 0:Vn.question_choices)==null?void 0:Kr.map((tr,Lr)=>Nn.createElement("div",{className:ta.redio,key:Lr},!(tr!=null&&tr.standard_boolean)&&Nn.createElement("span",{className:ta.redioitem}),(tr==null?void 0:tr.standard_boolean)&&Nn.createElement("i",{className:`${ta.redioitemyes} icon-duigou1`}),Nn.createElement("span",{className:`${tr!=null&&tr.standard_boolean?ta.titleyes:ta.title} ${ta.indexTag}`},gi[Lr]),Nn.createElement(lt.Z,{className:tr!=null&&tr.standard_boolean?ta.titleyes:ta.title,value:tr==null?void 0:tr.choice_text}),(tr==null?void 0:tr.standard_boolean)&&Nn.createElement("div",{className:ta.yestag},"\u6B63\u786E\u7B54\u6848"))))),Vn.question_type===1&&Nn.createElement("div",{className:ta.normalWrap},(_r=Vn==null?void 0:Vn.question_choices)==null?void 0:_r.map((tr,Lr)=>Nn.createElement("div",{className:ta.checkbox,key:Lr},!(tr!=null&&tr.standard_boolean)&&Nn.createElement("span",{className:ta.checkboxitem}),(tr==null?void 0:tr.standard_boolean)&&Nn.createElement("i",{className:`${ta.checkboxitemyes} icon-duigou1`}),Nn.createElement("span",{className:`${tr!=null&&tr.standard_boolean?ta.titleyes:ta.title} ${ta.indexTag}`},gi[Lr]),Nn.createElement(lt.Z,{className:tr!=null&&tr.standard_boolean?ta.titleyes:ta.title,value:tr==null?void 0:tr.choice_text}),(tr==null?void 0:tr.standard_boolean)&&Nn.createElement("div",{className:ta.yestag},"\u6B63\u786E\u7B54\u6848")))),Vn.question_type===3&&Nn.createElement("div",{className:ta.completion},(hr=Vn==null?void 0:Vn.standard_answers)==null?void 0:hr.map((tr,Lr)=>{var Rr;return Nn.createElement(Qe.Z,{align:"top"},Nn.createElement("span",{className:ta.title},"\u586B\u7A7A\u9879",Lr+1),Nn.createElement("div",{className:ta.content},(Rr=tr.answer_text)==null?void 0:Rr.map((Qr,$r)=>Nn.createElement("div",{key:$r,className:ta.items},Nn.createElement("pre",{className:"mb0"},Qr)))))})),Vn.question_type===4&&Nn.createElement("div",{className:ta.simple},Nn.createElement("div",{className:ta.title},"\u53C2\u8003\u7B54\u6848"),Nn.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(xr=Vn==null?void 0:Vn.answer_texts)!=null&&xr[0]?Nn.createElement(lt.Z,{className:ta.content,value:(Mr=Vn==null?void 0:Vn.answer_texts)==null?void 0:Mr[0]}):Nn.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),Nn.createElement("div",{className:"mt20 "},Nn.createElement("span",{className:ta.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),Nn.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},Vn!=null&&Vn.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))))})),(de==null?void 0:de.question_type)===8&&Nn.createElement("div",null,Nn.createElement(lt.Z,{disabledFill:!0,className:ta.content,showProgramFill:!0,value:Co.Base64.decode(((vn=de==null?void 0:de.program_attr)==null?void 0:vn.code)||"")})),((de==null?void 0:de.question_type)<=4||[6,8].includes(de==null?void 0:de.question_type))&&Nn.createElement("div",{className:ta.bottom},Nn.createElement("div",{className:`${ta.bottomitem} mb30`},Nn.createElement("span",{className:ta.left},"\u89E3\u6790"),Nn.createElement("span",{className:ta.right},de!=null&&de.analysis?Nn.createElement(lt.Z,{value:de==null?void 0:de.analysis}):Nn.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),Nn.createElement("div",{className:`${ta.bottomitem} mb30`},Nn.createElement("span",{className:ta.left},"\u96BE\u5EA6"),Nn.createElement("span",{className:ta.right},(de==null?void 0:de.difficulty)===1?"\u7B80\u5355":(de==null?void 0:de.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),Nn.createElement("div",{className:ta.bottomitem},Nn.createElement("span",{className:ta.left},"\u77E5\u8BC6\u70B9"),Nn.createElement(ne.Z,{title:((yr=de==null?void 0:de.tag_discipline_names)==null?void 0:yr.length)<=0||((Sn=de==null?void 0:de.tag_discipline_names)==null?void 0:Sn.length)==1&&["-"].includes(de==null?void 0:de.tag_discipline_names[0])?"\u6682\u672A\u8BBE\u7F6E~":(nn=(ja=de==null?void 0:de.tag_discipline_names)==null?void 0:ja.join("\uFF1B"))==null?void 0:nn.toString()},Nn.createElement("span",{className:ta.right},((gr=de==null?void 0:de.tag_discipline_names)==null?void 0:gr.length)<=0?Nn.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):((Dr=de==null?void 0:de.tag_discipline_names)==null?void 0:Dr.length)==1&&["-"].includes(de==null?void 0:de.tag_discipline_names[0])?Nn.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):(Pr=(Br=de==null?void 0:de.tag_discipline_names)==null?void 0:Br.join("\uFF1B"))==null?void 0:Pr.toString())))))},qi=oe(13778),bi=oe(2078),to=oe(59301),Jl=Object.defineProperty,ti=Object.defineProperties,Xl=Object.getOwnPropertyDescriptors,Ci=Object.getOwnPropertySymbols,_i=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable,el=(de,Se,Ee)=>Se in de?Jl(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):de[Se]=Ee,ni=(de,Se)=>{for(var Ee in Se||(Se={}))_i.call(Se,Ee)&&el(de,Ee,Se[Ee]);if(Ci)for(var Ee of Ci(Se))$i.call(Se,Ee)&&el(de,Ee,Se[Ee]);return de},tl=(de,Se)=>ti(de,Xl(Se)),ai=(de,Se,Ee)=>new Promise((rt,yn)=>{var $n=bt=>{try{En(Ee.next(bt))}catch(kt){yn(kt)}},oa=bt=>{try{En(Ee.throw(bt))}catch(kt){yn(kt)}},En=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,oa);En((Ee=Ee.apply(de,Se)).next())}),ql=({qitem:de,setisedit:Se,TagDiscipline:Ee,exerciseitem:rt,seveeditor:yn,deleteitem:$n,getTagData:oa,init:En,showTip:bt=!1})=>{const[kt]=Be.default.useForm();return(0,b.useEffect)(()=>{kt.setFieldsValue(tl(ni({},de),{name:de.question_title,answer_texts:de.answer_texts,repeat_answer:!de.repeat_answer}))},[de]),to.createElement("div",null,to.createElement(Be.default,{form:kt,colon:!1,onFinish:Tn=>{yn(ni(ni({},de),Tn))},onFinishFailed:Tn=>ai(void 0,null,function*(){var Dt,en;Ce.ZP.error(Tn.errorFields[0].errors[0]),kt.scrollToField((en=(Dt=Tn==null?void 0:Tn.errorFields)==null?void 0:Dt[0])==null?void 0:en.name,{behavior:"smooth",block:"center"})})},to.createElement("div",{style:{display:"flex",alignItems:"center"}},to.createElement("div",{style:{flex:1}},to.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),to.createElement("span",null,"\u7B80\u7B54\u9898")),!(de!=null&&de.isadd)&&to.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{$n()}},to.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),to.createElement(We.ZP,{onClick:()=>{de.isadd?(Se(!1),En()):(kt.setFieldsValue(tl(ni({},de),{name:de==null?void 0:de.question_title,answer_texts:de.answer_texts||[],repeat_answer:!(de!=null&&de.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),to.createElement(ne.Z,{overlayClassName:ie.shake,open:bt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:to.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},to.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},to.createElement(We.ZP,{type:"primary",className:"ml20",onClick:()=>{kt.submit()}},"\u4FDD\u5B58"))),to.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},to.createElement(Be.default.Item,{className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},to.createElement(Te.Z,{onBlur:Tn=>{Tn.target.value==="0"&&Ce.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),to.createElement(bi.W,{form:kt,showKeywords:!0,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"}),to.createElement(ct,{getTagData:oa,qitem:de,exerciseitem:rt,TagDiscipline:Ee,form:kt}))))},Jr=oe(59301),_l=(de,Se,Ee)=>new Promise((rt,yn)=>{var $n=bt=>{try{En(Ee.next(bt))}catch(kt){yn(kt)}},oa=bt=>{try{En(Ee.throw(bt))}catch(kt){yn(kt)}},En=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,oa);En((Ee=Ee.apply(de,Se)).next())}),xi=({setScoreShow:de,ScoreShow:Se,exerciseitem:Ee,getdata:rt})=>{var yn,$n,oa;const[En,bt]=(0,b.useState)(!1);function kt(){return _l(this,null,function*(){var Tn,Dt,en;let qn=(Dt=(Tn=Ee==null?void 0:Ee.exercise_question_types)==null?void 0:Tn.filter(wn=>wn.Singlequestion))==null?void 0:Dt.map(wn=>({question_type:wn.question_type,score:wn.Singlequestion})),ma=yield(0,fe.ZP)(`/api/examination_banks/${(en=Ee==null?void 0:Ee.exercise)==null?void 0:en.id}/batch_set_score.json`,{method:"POST",body:{question_arr:qn}});(ma==null?void 0:ma.status)===0&&rt()})}return Jr.createElement("div",null,Se&&Jr.createElement(x.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:Se,width:640,centered:!0,zIndex:10,className:ie.scoremodal,onCancel:()=>{de(!1)},onOk:()=>{var Tn,Dt,en;if(Ee!=null&&Ee.use_blank_score&&((en=(Dt=(Tn=Ee==null?void 0:Ee.exercise_question_types)==null?void 0:Tn.filter(qn=>qn.name==="\u586B\u7A7A\u9898"))==null?void 0:Dt[0])!=null&&en.Singlequestion)){bt(!0);return}kt(),de(!1)}},Jr.createElement("div",{className:"c-black"},"\u603B\u5206",Jr.createElement("span",{className:"ml10 c-light-primary"},(Ee==null?void 0:Ee.exercise_question_types.length)>0&&((yn=Ee==null?void 0:Ee.exercise_types)==null?void 0:yn.q_scores))),Jr.createElement("div",{className:ie.content},Jr.createElement("span",null,"\u9898\u578B\u540D\u79F0"),Jr.createElement("span",null,"\u5C0F\u9898\u603B\u6570"),Jr.createElement("span",null,"\u9898\u578B\u603B\u5206"),Jr.createElement("span",null,"\u64CD\u4F5C")),(oa=($n=Ee==null?void 0:Ee.exercise_question_types)==null?void 0:$n.filter(Tn=>Tn.name!=="\u5B9E\u8BAD\u9898"&&Tn.name!=="\u7EC4\u5408\u9898"))==null?void 0:oa.map((Tn,Dt)=>{var en;return Jr.createElement("div",{key:Dt,className:ie.items},Jr.createElement("span",null,Tn==null?void 0:Tn.name),Jr.createElement("span",null,(en=Tn==null?void 0:Tn.items)==null?void 0:en.length),Jr.createElement("span",null,Tn==null?void 0:Tn.score),Jr.createElement("span",null,"\u6BCF\u9898",Jr.createElement(Te.Z,{min:.1,precision:1,max:100,onChange:qn=>{Tn.Singlequestion=qn},defaultValue:Tn.Singlequestion,style:{width:90,height:38,margin:"0px 10px",display:"flex",alignItems:"center"}}),"\u5206"))})),Jr.createElement(x.default,{title:!1,footer:!1,centered:!0,open:En,zIndex:20,width:640,closable:!1,className:ie.scoremodal},Jr.createElement("div",{style:{marginTop:40}},"\u586B\u7A7A\u9898\u4E2D\u5B58\u5728",Jr.createElement("span",{style:{color:"#FA6400"}},"\u6309\u7A7A\u7ED9\u5206"),"\u7684\u5C0F\u9898\uFF0C\u82E5\u6279\u91CF\u8BBE\u7F6E\u5206\u503C\u4F1A\u7EDF\u4E00\u5C06\u586B\u7A7A\u9898\u6539\u4E3A\u6309\u9898\u7ED9\u5206"),Jr.createElement("div",{className:ie.bottom},Jr.createElement(We.ZP,{className:ie.no,onClick:()=>{bt(!1)}},"\u53D6\u6D88"),Jr.createElement(We.ZP,{className:ie.yes,onClick:()=>{kt(),bt(!1),de(!1)}},"\u786E\u8BA4"))))},wi=oe(26995),Di=oe(49613),nl=oe(89392),$l=oe(29590),al=oe(5864),eu=oe(51529),Gn=oe(59301),tu=Object.defineProperty,nu=Object.defineProperties,au=Object.getOwnPropertyDescriptors,rl=Object.getOwnPropertySymbols,ru=Object.prototype.hasOwnProperty,ol=Object.prototype.propertyIsEnumerable,il=(de,Se,Ee)=>Se in de?tu(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):de[Se]=Ee,co=(de,Se)=>{for(var Ee in Se||(Se={}))ru.call(Se,Ee)&&il(de,Ee,Se[Ee]);if(rl)for(var Ee of rl(Se))ol.call(Se,Ee)&&il(de,Ee,Se[Ee]);return de},Lo=(de,Se)=>nu(de,au(Se)),Ur=(de,Se,Ee)=>new Promise((rt,yn)=>{var $n=bt=>{try{En(Ee.next(bt))}catch(kt){yn(kt)}},oa=bt=>{try{En(Ee.throw(bt))}catch(kt){yn(kt)}},En=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,oa);En((Ee=Ee.apply(de,Se)).next())});const Ko=[{name:"\u5355\u9009\u9898",id:0,count:"q_singles",score:"q_singles_scores",nameType:"SINGLE"},{name:"\u591A\u9009\u9898",id:1,count:"q_doubles",score:"q_doubles_scores",nameType:"MULTIPLE"},{name:"\u5224\u65AD\u9898",id:2,count:"q_judges",score:"q_judges_scores",nameType:"JUDGMENT"},{name:"\u586B\u7A7A\u9898",id:3,count:"q_nulls",score:"q_nulls_scores",nameType:"COMPLETION"},{name:"\u7B80\u7B54\u9898",id:4,count:"q_mains",score:"q_mains_scores",nameType:"SUBJECTIVE"},{name:"\u5B9E\u8BAD\u9898",id:5,count:"q_shixuns",score:"q_shixuns_scores",nameType:"PRACTICAL"},{name:"\u7F16\u7A0B\u9898",id:6,count:"q_pros",score:"q_pros_scores",nameType:"PROGRAM"},{name:"\u7EC4\u5408\u9898",id:7,count:"q_combinations",score:"q_combinations_scores",nameType:"COMBINATION"},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",id:8,count:"q_combinations",score:"q_combinations_scores",nameType:"BPROGRAM"}],ou=({user:de,dispatch:Se,itemid:Ee,newExercisePaper:rt,setisedits:yn})=>{var $n,oa,En,bt,kt,Tn,Dt,en,qn,ma,wn,Ba,Aa;const[vn,yr]=(0,b.useState)(),[Sn,ja]=(0,b.useState)(!1),[nn,gr]=(0,b.useState)(),[Dr,Br]=(0,b.useState)(),Pr=(0,b.useRef)(),Vn=(0,b.useRef)(),[ir,jr]=(0,b.useState)(),[Kr,_r]=(0,b.useState)(!1),[hr,xr]=(0,b.useState)(!1),[Mr,tr]=(0,b.useState)(),[Lr,Rr]=(0,b.useState)(!1),[Qr,$r]=(0,b.useState)(!1),[mo,lo]=(0,b.useState)(!1),[Ao,So]=(0,b.useState)(!1),[vi,ri]=(0,b.useState)(!1),[Io,cl]=(0,b.useState)(!1),[uu,gl]=(0,b.useState)(!1),[su,Ti]=(0,b.useState)(!1),[Jo]=Be.default.useForm(),[du,oi]=(0,b.useState)(!1),ml=(0,b.useRef)(null),[eo]=(0,he.useSearchParams)(),[pi,ii]=(0,b.useState)(!1),fl=eo.get("isIntelligentAssistant"),[yo,hi]=(0,b.useState)(!1);(0,b.useEffect)(()=>{ro(),Se({type:"globalSetting/footerToggle",payload:!1})},[]),(0,b.useEffect)(()=>{yn(hr)},[hr]),(0,b.useEffect)(()=>{nn!=null&&nn.question_id&&(Br(nn==null?void 0:nn.question_score),Vn.current=nn==null?void 0:nn.question_id)},[nn]);const wo=jn=>Ur(void 0,null,function*(){let Pa=yield Se({type:"newExercisePaper/getTagDiscipline",payload:{sub_discipline_id:jn}});tr(Pa)});function ro(){return Ur(this,null,function*(){var jn,Pa,Ua,mr,br,Wr;_r(!0),ja(!0);const wr=yield Se({type:"newExercisePaper/editExercise",payload:{id:Ee}});_r(!1),ja(!1),yr(wr),(jn=wr==null?void 0:wr.exercise)!=null&&jn.sub_discipline_id&&wo((Pa=wr==null?void 0:wr.exercise)==null?void 0:Pa.sub_discipline_id),gr(Lo(co({},(br=(mr=(Ua=wr==null?void 0:wr.exercise_question_types)==null?void 0:Ua[0])==null?void 0:mr.items)==null?void 0:br[0]),{index:1})),jr(Lo(co({},(Wr=wr==null?void 0:wr.exercise_question_types)==null?void 0:Wr[0]),{indexs:1}))})}function No(jn,Pa=!0){return Ur(this,null,function*(){var Ua,mr,br,Wr;Pa&&(_r(!0),ja(!0));const wr=yield Se({type:"newExercisePaper/editExercise",payload:{id:Ee}});yr(wr);let no=[];(Ua=wr==null?void 0:wr.exercise_question_types)==null||Ua.map(vo=>{var Mo;(Mo=vo==null?void 0:vo.items)==null||Mo.map((Go,Ei)=>{no.push(Lo(co({},Go),{index:Ei+1}))})});let Oo=(mr=no.filter(vo=>vo.question_id===(jn==null?void 0:jn.id)))==null?void 0:mr[0],Pi=(Wr=((br=wr==null?void 0:wr.exercise_question_types)==null?void 0:br.map((vo,Mo)=>{if((Oo==null?void 0:Oo.question_type)===(vo==null?void 0:vo.question_type))return Lo(co({},vo),{indexs:Mo+1})})).filter(vo=>vo))==null?void 0:Wr[0];jr(co({},Pi)),gr(co({},Oo)),Br(Oo==null?void 0:Oo.question_score),_r(!1),ja(!1)})}function Qo(jn){return Ur(this,null,function*(){var Pa;let Ua=Lo(co({},jn),{difficulty:(jn==null?void 0:jn.difficulty)||2,item_type:jn.question_type,sub_discipline_id:((Pa=jn==null?void 0:jn.sub_discipline_id)==null?void 0:Pa[1])||"",tag_discipline_ids:[],repeat_answer:!jn.repeat_answer}),mr={};jn.question_type===8&&(mr=Lo(co({},jn),{hack:Lo(co({},jn==null?void 0:jn.hack),{difficult:jn.difficulty}),hack_codes:Lo(co({},jn.hack_codes),{code:Co.Base64.encode(jn.hack_codes.code)}),hack_sets:[co({},jn.hack_sets)],is_blank:!0})),jn.tag_discipline_ids&&(Ua.tag_discipline_ids=Array.isArray(jn.tag_discipline_ids)?jn.tag_discipline_ids:[jn.tag_discipline_ids],mr.tag_discipline_ids=Array.isArray(jn.tag_discipline_ids)?jn.tag_discipline_ids:[jn.tag_discipline_ids]),sessionStorage.projectFill&&(mr.hack_identifier=sessionStorage.projectFill);let br=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/examination_banks_item_banks/create_item_bank.json`,{method:"post",body:jn.question_type===8?mr:Ua});(br==null?void 0:br.status)===0&&(xr(!1),No(br)),(0,ge.Vf)("#question-scroll-id")})}function Ou(jn){return Ur(this,null,function*(){ja(!0);let Pa=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/sort_question_type.json`,{method:"post",body:{question_type:jn}});ja(!1),(Pa==null?void 0:Pa.status)===0&&ro()})}const cu=(jn,Pa,Ua)=>Ur(void 0,null,function*(){var mr;if(jn.length===0){Ce.ZP.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),Ua();return}const br=yield(0,le.Hb)(Ee,(mr=jn[0])==null?void 0:mr.file,Pa);br.status===0&&(Ce.ZP.success(`\u6210\u529F\u5BFC\u5165${br==null?void 0:br.success}\u6761`),Rr(!1),ro()),Ua()}),vl=(jn,Pa)=>Ur(void 0,null,function*(){vn.exercise_types.q_scores=Number(vn.exercise_types.q_scores)+Number(jn)-Number(Pa==null?void 0:Pa.question_score);const Ua=yield(0,le.kF)({score:(0,nl.round)(jn,1),question_id:Pa==null?void 0:Pa.question_id});if((Ua==null?void 0:Ua.status)===0){Ce.ZP.success("\u4FEE\u6539\u6210\u529F"),No({id:Vn.current},!1);return}(Ua==null?void 0:Ua.status)===-1&&Br(Pa==null?void 0:Pa.question_score)});function ko(){return Ur(this,null,function*(){x.default.confirm({title:"\u63D0\u793A",content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",okText:"\u786E\u5B9A",centered:!0,className:ie.modalconfirm,onOk:()=>Ur(this,null,function*(){if(nn.question_id){let jn=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/examination_banks_item_banks/${nn.question_id}.json`,{method:"delete"});(jn==null?void 0:jn.status)===0&&(ro(),xr(!1))}else gr({}),xr(!1),ro()}),cancelText:"\u53D6\u6D88"})})}const gu=jn=>Ur(void 0,null,function*(){return yield(0,fe.ZP)(`/api/examination_banks/${Ee}/examination_banks_item_banks.json`,{method:"post",body:co({},jn)})}),{overflow:mu,handleMouseEnter:Xo,handleMouseLeave:qo}=(0,Di.I)(),Si=jn=>Ur(void 0,null,function*(){var Pa,Ua;ja(!0);let mr=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/sort_question_type.json`,{method:"post",body:{question_type:jn}});if(ja(!1),(mr==null?void 0:mr.status)===0){const br=yield Se({type:"newExercisePaper/editExercise",payload:{id:Ee}});yr(br),(Pa=br==null?void 0:br.exercise)!=null&&Pa.sub_discipline_id&&wo((Ua=br==null?void 0:br.exercise)==null?void 0:Ua.sub_discipline_id)}}),Fo=()=>hr?(hi(!0),!0):!1;(0,b.useEffect)(()=>{if(yo){const jn=setTimeout(()=>{hi(!1)},2e3);return()=>clearTimeout(jn)}},[yo]);const pl=(jn,Pa)=>Gn.createElement(y.default,null,Gn.createElement(y.default.Item,{key:"0",onClick:()=>hl(jn==null?void 0:jn.question_type)},Gn.createElement("span",{className:ie.moreSpan},"\u65B0\u589E")),Gn.createElement(y.default.Item,{key:"1",disabled:Pa===0,onClick:()=>Ur(void 0,null,function*(){if(Pa===0||Fo())return;let Ua=(0,ge.rz)(vn==null?void 0:vn.exercise_question_types,Pa,Pa-1);yield Si(Ua.map(mr=>mr.name))})},Gn.createElement("span",{className:ie.moreSpan},"\u4E0A\u79FB")),Gn.createElement(y.default.Item,{key:"2",disabled:Pa===(vn==null?void 0:vn.exercise_question_types.length)-1,onClick:()=>Ur(void 0,null,function*(){if(Pa===(vn==null?void 0:vn.exercise_question_types.length)-1||Fo())return;let Ua=(0,ge.rz)(vn==null?void 0:vn.exercise_question_types,Pa,Pa+1);yield Si(Ua.map(mr=>mr.name))})},Gn.createElement("span",{className:ie.moreSpan},"\u4E0B\u79FB")),Gn.createElement(y.default.Item,{key:"3",onClick:()=>{var Ua;Jo.setFieldsValue({name:jn.name,item_type_en:(Ua=Ko.find(mr=>mr.id==jn.question_type))==null?void 0:Ua.nameType}),oi(!0)}},Gn.createElement("span",{className:ie.moreSpan},"\u91CD\u547D\u540D"))),hl=jn=>{var Pa,Ua,mr,br,Wr,wr,no,Oo,ki,Pi,vo,Mo,Go,Ei,Sl,Pl,Gi,El,Al,Ai,yl,Fl,ui,Bl,bl,ji,Cl,xl;if(!Fo()){if(jn===5){So(!0),ri(!0);return}if(jn===6){if(eo.get("pageType")=="course")eo.get("updateType")=="course"?he.history.push(`/problems/newcreate?express_id=${(Pa=vn==null?void 0:vn.exercise)==null?void 0:Pa.id}&callback_url=/paperlibrary/add/${(Ua=vn==null?void 0:vn.exercise)==null?void 0:Ua.id}?type=2&pageType=course&updateType=course&courseId=${eo.get("courseId")}&stageId=${eo.get("stageId")}`):he.history.push(`/problems/newcreate?express_id=${(mr=vn==null?void 0:vn.exercise)==null?void 0:mr.id}&callback_url=/paperlibrary/add/${(br=vn==null?void 0:vn.exercise)==null?void 0:br.id}?type=2&pageType=course&courseId=${eo.get("courseId")}&stageId=${eo.get("stageId")}`);else{let Mu=(wr=(Wr=rt==null?void 0:rt.editData)==null?void 0:Wr.exercise)!=null&&wr.set_question_sub_discipline?`/problems/newcreate?express_id=${(no=vn==null?void 0:vn.exercise)==null?void 0:no.id}&callback_url=${window.location.pathname+window.location.search}&discipline_id=${(ki=(Oo=rt==null?void 0:rt.editData)==null?void 0:Oo.exercise)==null?void 0:ki.discipline_id}&sub_discipline_id=${(vo=(Pi=rt==null?void 0:rt.editData)==null?void 0:Pi.exercise)==null?void 0:vo.sub_discipline_id}`:`/problems/newcreate?express_id=${(Mo=vn==null?void 0:vn.exercise)==null?void 0:Mo.id}&callback_url=${window.location.pathname+window.location.search}`;he.history.push(Mu)}return}xr(!0),gr(jn===2?{question_type:jn,isadd:!0,repeat_answer:!0,choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],question_choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],difficulty:2,standard_answers:[],question_score:"",tag_discipline_ids:[],question_title:"",discipline_id:(Ei=(Go=rt==null?void 0:rt.editData)==null?void 0:Go.exercise)!=null&&Ei.set_question_sub_discipline?(Pl=(Sl=rt==null?void 0:rt.editData)==null?void 0:Sl.exercise)==null?void 0:Pl.discipline_id:0,sub_discipline_id:(El=(Gi=rt==null?void 0:rt.editData)==null?void 0:Gi.exercise)!=null&&El.set_question_sub_discipline?(Ai=(Al=rt==null?void 0:rt.editData)==null?void 0:Al.exercise)==null?void 0:Ai.sub_discipline_id:0,analysis:""}:{question_type:jn,question_choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),standard_answers:[],repeat_answer:!0,difficulty:2,isadd:!0,tag_discipline_ids:[],question_score:"",analysis:"",sub_item_banks:[],question_title:"",is_ordered:!0,use_keywords:!1,use_blank_score:!0,keywords:[],allow_student_debug:!1,submit_rule:1,downcase:!0,no_space:!0,discipline_id:(Fl=(yl=rt==null?void 0:rt.editData)==null?void 0:yl.exercise)!=null&&Fl.set_question_sub_discipline?(Bl=(ui=rt==null?void 0:rt.editData)==null?void 0:ui.exercise)==null?void 0:Bl.discipline_id:0,sub_discipline_id:(ji=(bl=rt==null?void 0:rt.editData)==null?void 0:bl.exercise)!=null&&ji.set_question_sub_discipline?(xl=(Cl=rt==null?void 0:rt.editData)==null?void 0:Cl.exercise)==null?void 0:xl.sub_discipline_id:0})}},li=[{key:1,label:"\u6279\u91CF\u5BFC\u5165",onClick:()=>{Fo()||Rr(!0)}},{key:2,label:Gn.createElement("div",null,Gn.createElement("img",{width:26,style:{position:"absolute",top:-2},src:al.$}),Gn.createElement("span",null,"\u667A\u80FD\u5BFC\u5165")),onClick:()=>{Fo()||$r(!0)}}];return Gn.createElement("div",null,Gn.createElement(Ge.Z,{spinning:Kr},Gn.createElement("div",{className:ie.bg},Gn.createElement("div",{style:{textAlign:"center"}},(($n=vn==null?void 0:vn.exercise_types)==null?void 0:$n.q_counts)===0&&!hr&&Gn.createElement(Pe.Z,{styles:{marginTop:180},customText:Gn.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",Gn.createElement("span",{className:"c-light-primary"},"\u5E95\u90E8\u64CD\u4F5C\u680F"),"\u8FDB\u884C\u6DFB\u52A0~")}),(((oa=vn==null?void 0:vn.exercise_types)==null?void 0:oa.q_counts)>0||hr)&&Gn.createElement("div",{style:{marginTop:20,borderTop:"1px solid #DCDCDC",display:"block",alignItems:"stretch"}},Gn.createElement("div",{style:{backgroundColor:"#F6F7F9",display:"inline-block",position:"sticky",top:0}},Gn.createElement("div",{className:ie.left},Gn.createElement("div",{className:ie.leftAction},Gn.createElement(We.ZP,{onClick:()=>{Fo()||lo(!0)},className:ie.Button},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C")),Gn.createElement("div",{className:ie.scrollWrapper,style:{overflow:mu},onMouseEnter:Xo,onMouseLeave:qo},(En=vn==null?void 0:vn.exercise_question_types)==null?void 0:En.map((jn,Pa)=>Gn.createElement("div",{key:Pa,className:"mb30"},Gn.createElement("div",{className:ie.title},Gn.createElement("div",{className:ie.titleleft},Gn.createElement("span",{style:{color:"#000000",fontWeight:400,fontSize:12}}," ",(0,ge.EM)(Pa+1),"\u3001\u3010",jn.name,"\u3011"),Gn.createElement("span",{style:{color:"#464F66",fontSize:12}},"\uFF08",jn.count,"\u5C0F\u9898\uFF0C\u5171",jn.score,"\u5206\uFF09")),Gn.createElement(z.Z,{dropdownRender:()=>pl(jn,Pa),placement:"bottomLeft"},Gn.createElement("div",{className:ie.more_style},Gn.createElement("i",{className:"iconfont icon-sandian font12"})))),Gn.createElement(Zt,{handleEditing:()=>{hi(!0)},isedit:hr,setBigqitem:jr,bigitem:Lo(co({},jn),{indexs:Pa+1}),setqitem:Ua=>Ur(void 0,null,function*(){var mr;(mr=Pr.current)==null||mr.blur(),gr(Ua)}),qitem:nn,Itemid:Ee,getdata:No,data:jn.items})))))),Gn.createElement("div",{id:"question-scroll-id",style:{overflow:hr?"hidden":"auto"},className:ie.right,ref:ml},!(nn!=null&&nn.isadd)&&Gn.createElement("div",{className:ie.title},!hr&&Gn.createElement("div",{style:{flex:1}},Gn.createElement("span",{style:{color:"#000000",fontWeight:600,fontSize:16}}," ",(ir==null?void 0:ir.indexs)&&(0,ge.EM)(ir==null?void 0:ir.indexs),"\u3001\u3010",ir==null?void 0:ir.name,"\u3011"),Gn.createElement(ne.Z,{title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0"},Gn.createElement("i",{className:`${ie.edit} iconfont icon-bianji_Hover mr5 ml5 font18`,onClick:()=>{var jn;Jo.setFieldsValue({name:ir.name,item_type_en:(jn=Ko.find(Pa=>Pa.id==ir.question_type))==null?void 0:jn.nameType}),oi(!0)}})),Gn.createElement("span",{style:{color:"#464F66",fontSize:16,fontWeight:400}},"\uFF08",ir==null?void 0:ir.count,"\u5C0F\u9898\uFF0C\u5171",ir==null?void 0:ir.score,"\u5206\uFF09"),(nn==null?void 0:nn.question_type)===6&&Gn.createElement("span",{onClick:()=>ii(2),className:"current c-light-primary font14 bold-400"},"\u6279\u91CF\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00"),(nn==null?void 0:nn.question_type)===5&&Gn.createElement(ke.default,{defaultChecked:(kt=(bt=rt==null?void 0:rt.editData)==null?void 0:bt.exercise)==null?void 0:kt.show_challenge_task_pass,onChange:jn=>Ur(void 0,null,function*(){let Pa=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/update_show_columns.json`,{method:"post",body:{show_challenge_task_pass:jn.target.checked}});(Pa==null?void 0:Pa.status)===0&&(Ce.ZP.info("\u8BBE\u7F6E\u6210\u529F"),No({id:Vn.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u9898\u76EE\u63CF\u8FF0"),(nn==null?void 0:nn.question_type)===6&&Gn.createElement("span",{style:{marginLeft:20},onClick:()=>{var jn,Pa,Ua,mr;x.default.confirm({title:"\u7F16\u7A0B\u9898\u8BBE\u7F6E",icon:null,centered:!0,closable:!0,footer:null,content:Gn.createElement("div",null,(nn==null?void 0:nn.question_type)===6&&Gn.createElement(ke.default,{defaultChecked:(Pa=(jn=rt==null?void 0:rt.editData)==null?void 0:jn.exercise)==null?void 0:Pa.show_hack_sets,onChange:br=>Ur(void 0,null,function*(){let Wr=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/update_show_columns.json`,{method:"post",body:{show_hack_sets:br.target.checked}});(Wr==null?void 0:Wr.status)===0&&(Ce.ZP.info("\u8BBE\u7F6E\u6210\u529F"),x.default.destroyAll(),No({id:Vn.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u6D4B\u8BD5\u7528\u4F8B"),Gn.createElement("br",null),(nn==null?void 0:nn.question_type)===6&&Gn.createElement(ke.default,{defaultChecked:(mr=(Ua=rt==null?void 0:rt.editData)==null?void 0:Ua.exercise)==null?void 0:mr.show_hack_description,onChange:br=>Ur(void 0,null,function*(){let Wr=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/update_show_columns.json`,{method:"post",body:{show_hack_description:br.target.checked}});(Wr==null?void 0:Wr.status)===0&&(Ce.ZP.info("\u8BBE\u7F6E\u6210\u529F"),x.default.destroyAll(),No({id:Vn.current}))}),style:{marginBottom:10}},"\u5C55\u793A\u8BD5\u9898\u63CF\u8FF0"))})},className:"current c-light-primary font14 bold-400"},"\u7F16\u7A0B\u9898\u663E\u793A\u8BBE\u7F6E")),Gn.createElement("div",{style:{display:"flex",alignItems:"center"}},(nn==null?void 0:nn.question_type)===5&&!hr&&Gn.createElement("a",{className:ie.shixun,href:`/shixuns/${nn==null?void 0:nn.shixun_identifier}/challenges?exercise=true`,target:"_blank"},Gn.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u8BD5\u9898\u8BE6\u60C5"),!hr&&[0,1,2,4,6].includes(nn==null?void 0:nn.question_type)&&Gn.createElement(Be.default.Item,{label:"\u5206\u503C",style:{margin:"0 20px"},required:!0},Gn.createElement(Te.Z,{precision:1,ref:Pr,onChange:jn=>Br(jn),value:Dr,onBlur:jn=>{vl(jn.target.value,nn)}})),!hr&&Gn.createElement(ne.Z,{title:"\u5220\u9664"},Gn.createElement("span",{onClick:()=>{ko()},style:{marginRight:20},className:`${ie.delete} mr5 `},"\u5220\u9664")),!hr&&Gn.createElement(ne.Z,{title:"\u7F16\u8F91\u8BD5\u9898"},Gn.createElement("span",{onClick:()=>{var jn,Pa,Ua;(nn==null?void 0:nn.question_type)===6?eo.get("pageType")=="course"?eo.get("updateType")=="course"?he.history.push(`/problems/newedit/${nn==null?void 0:nn.hack_identifier}?type=exercises&express_id=${(jn=vn==null?void 0:vn.exercise)==null?void 0:jn.id}&question_id=${nn==null?void 0:nn.question_id}&score=${nn==null?void 0:nn.question_score}&exercise=true&callback_url=${location.pathname}?type=2&pageType=course&updateType=course&courseId=${eo.get("courseId")}&stageId=${eo.get("stageId")}`):he.history.push(`/problems/newedit/${nn==null?void 0:nn.hack_identifier}?type=exercises&express_id=${(Pa=vn==null?void 0:vn.exercise)==null?void 0:Pa.id}&question_id=${nn==null?void 0:nn.question_id}&score=${nn==null?void 0:nn.question_score}&exercise=true&callback_url=${location.pathname}?type=2&pageType=course&courseId=${eo.get("courseId")}&stageId=${eo.get("stageId")}`):he.history.push(`/problems/newedit/${nn==null?void 0:nn.hack_identifier}?type=exercises&express_id=${(Ua=vn==null?void 0:vn.exercise)==null?void 0:Ua.id}&question_id=${nn==null?void 0:nn.question_id}&score=${nn==null?void 0:nn.question_score}&exercise=true&callback_url=${window.location.pathname+window.location.search}`):xr(!0)},className:`${ie.edit} mr5 `},"\u7F16\u8F91")))),!hr&&Gn.createElement("div",null,Gn.createElement("div",{className:ie.qcount},Gn.createElement("span",{className:ie.score},nn==null?void 0:nn.question_score,"\u5206"),Gn.createElement(lt.Z,{className:ie.qtitle,value:(nn==null?void 0:nn.index)+`\u3001${(nn==null?void 0:nn.question_type)==8?(Tn=nn==null?void 0:nn.program_attr)==null?void 0:Tn.description:nn==null?void 0:nn.question_title}`}),(nn==null?void 0:nn.high_resources_consume)&&Gn.createElement(eu.Z,{type:"shixun",style:{marginLeft:10}})),(nn==null?void 0:nn.question_type)===6&&Gn.createElement(Ue.Z,{onEdit:()=>ii(1),className:"mt10",dataSource:(nn==null?void 0:nn.languages)||[]}),Gn.createElement(Yl,{newExercisePaper:rt,TagDiscipline:Mr,qitem:nn})),hr&&Gn.createElement("div",null,(nn==null?void 0:nn.question_type)<=1&&Gn.createElement(ca,{getTagData:wo,deleteitem:ko,seveeditor:Qo,exerciseitem:vn,TagDiscipline:Mr,setisedit:xr,qitem:nn,init:ro,showTip:yo}),(nn==null?void 0:nn.question_type)===5&&Gn.createElement(Ql,{setqitem:gr,deleteitem:ko,seveeditor:Qo,exerciseitem:vn,TagDiscipline:Mr,setisedit:xr,qitem:nn,showTip:yo}),(nn==null?void 0:nn.question_type)===3&&Gn.createElement(Ka,{getTagData:wo,deleteitem:ko,seveeditor:Qo,exerciseitem:vn,TagDiscipline:Mr,setisedit:xr,qitem:nn,init:ro,showTip:yo}),(nn==null?void 0:nn.question_type)===2&&Gn.createElement(Vt,{getTagData:wo,deleteitem:ko,seveeditor:Qo,exerciseitem:vn,TagDiscipline:Mr,setisedit:xr,qitem:nn,init:ro,showTip:yo}),(nn==null?void 0:nn.question_type)===4&&Gn.createElement(ql,{getTagData:wo,deleteitem:ko,seveeditor:Qo,exerciseitem:vn,TagDiscipline:Mr,setisedit:xr,qitem:nn,init:ro,showTip:yo}),(nn==null?void 0:nn.question_type)===7&&Gn.createElement(po,{getTagData:wo,deleteitem:ko,seveeditor:Qo,exerciseitem:vn,TagDiscipline:Mr,setisedit:xr,qitem:nn,init:ro,showTip:yo}),(nn==null?void 0:nn.question_type)===8&&Gn.createElement(ei,{getTagData:wo,deleteitem:ko,seveeditor:Qo,exerciseitem:vn,TagDiscipline:Mr,setisedit:xr,qitem:nn,init:ro,showTip:yo}))))))),Gn.createElement("div",{className:ie.bottomdiv},Gn.createElement("div",{style:{width:1200,margin:"0px auto",display:"flex",justifyContent:"space-between",alignItems:"center"}},Gn.createElement("span",{className:ie.spanBtn,onClick:()=>{Fo()||(So(!0),ri(!0))}},"\u9898\u5E93\u9009\u9898"),Gn.createElement(z.Z,{menu:{items:li}},Gn.createElement("span",{className:ie.spanBtn},"\u5BFC\u5165\u8BD5\u9898")),Gn.createElement("span",{className:ie.spanBtn,onClick:()=>Ur(void 0,null,function*(){var jn;if(Fo())return;const Pa=yield(0,le.JP)(Ee);Pa.status===0&&window.open(`/classrooms/coursesId/exercise/${Pa.exercise_id}/${(jn=de.userInfo)==null?void 0:jn.login}/initate_answer`)})},"\u6A21\u62DF\u8003\u8BD5"),Gn.createElement("span",{className:ie.spanBtn,onClick:()=>{if(!Fo()){if(fl){window.open(`/paperlibrary/see/${Ee}?isIntelligentAssistant=true`);return}window.open(`/paperlibrary/see/${Ee}`)}}},"\u8BD5\u5377\u9884\u89C8"),Ko==null?void 0:Ko.map((jn,Pa)=>Gn.createElement(We.ZP,{key:Pa,className:ie.addQuestionBtn,type:"primary",onClick:()=>{hl(jn.id)}},jn.name)),Gn.createElement(We.ZP,{className:ie.saveBtn,loading:su,onClick:()=>Ur(void 0,null,function*(){var jn,Pa;const Ua=Number(vn.exercise_types.q_scores);[100,120,150].includes(Ua)||(yield new Promise((wr,no)=>{x.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Gn.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",Gn.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},Ua),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>Ur(void 0,null,function*(){wr("")}),onCancel:()=>{no()}})}));const mr=()=>Ur(void 0,null,function*(){if(eo.get("pageType")=="course")if(eo.get("updateType")=="course")Ce.ZP.info("\u7F16\u8F91\u6210\u529F"),he.history.replace(`/paths/${eo.get("courseId")}`);else{if(Fo())return;(0,$l._C)({id:eo.get("stageId"),subject_id:eo.get("courseId"),homework_type:"exercise",examination_bank_ids:[Ee]}).then(wr=>{(wr==null?void 0:wr.status)==0&&(Ce.ZP.info("\u521B\u5EFA\u6210\u529F"),he.history.replace(`/paths/${eo.get("courseId")}`))})}else{if(Fo())return;if(fl){Ti(!0);const wr=yield(0,fe.ZP)("/api/intelligent_imports/save_recognize_papers.json",{method:"post",body:{examination_bank_id:Ee}});if(Ti(!1),(wr==null?void 0:wr.status)!==0)return}Ce.ZP.info("\u4FDD\u5B58\u6210\u529F"),he.history.push("/paperlibrary?defaultActiveKey=0")}});let br=(Pa=(jn=vn==null?void 0:vn.exercise_question_types)==null?void 0:jn.filter(wr=>wr.question_type===5)[0])==null?void 0:Pa.items,Wr=0;br==null||br.map(wr=>{wr.high_resources_consume&&(Wr=Wr+1)}),console.log(Wr),Wr>0?Se({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u63D0\u793A",count:Wr,fn:()=>{mr()}}}):mr()})},Gn.createElement("i",{className:"iconfont icon-baocun1",style:{fontSize:15,marginRight:5}}),"\u4FDD\u5B58\u8BD5\u5377"))),Gn.createElement(xi,{setScoreShow:lo,ScoreShow:mo,exerciseitem:vn,getdata:ro}),Ao&&Gn.createElement(wi.Z,{setScoreShow:So,isshixuns:vi,ScoreShow:Ao,SpecificDifficulty:(Dt=vn==null?void 0:vn.exercise)==null?void 0:Dt.difficulty,isloadings:Io,onOk:(jn,Pa,Ua,mr)=>Ur(void 0,null,function*(){cl(!0);let Wr=yield gu({exam_id:Ee,item_bank_ids:jn,shixun_ids:Pa});cl(!1),(Wr==null?void 0:Wr.status)===0&&x.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u65B0\u52FE\u9009\u7684\u8BD5\u9898\u5DF2\u7ECF\u6DFB\u52A0\u5230\u8BD5\u5377\uFF0C\u5982\u679C\u9700\u8981\u7EE7\u7EED\u6DFB\u52A0\u65B0\u8BD5\u9898\u8BF7\u70B9\u51FB\u201C\u7EE7\u7EED\u9009\u9898\u201D\uFF0C\u5C06\u56DE\u5230\u60A8\u4E0A\u6B21\u64CD\u4F5C\u7684\u9009\u9898\u9875\u9762",okText:"\u7EE7\u7EED\u9009\u9898",cancelText:"\u8FD4\u56DE\u8BD5\u5377",onOk:()=>{ro()},onCancel:()=>{So(!1),ro()}})})}),Gn.createElement(qi.Z,{sub_discipline_id:(en=vn==null?void 0:vn.exercise)!=null&&en.sub_discipline_id?[(qn=vn==null?void 0:vn.exercise)==null?void 0:qn.discipline_id,(ma=vn==null?void 0:vn.exercise)==null?void 0:ma.sub_discipline_id]:[],visible:Lr,onCancel:()=>Rr(!1),onOk:cu}),Gn.createElement(x.default,{centered:!0,title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0",open:du,width:500,onOk:()=>Jo.submit(),onCancel:()=>oi(!1)},Gn.createElement(Be.default,{form:Jo,initialValues:{},onFinish:jn=>Ur(void 0,null,function*(){(yield(0,le.RK)(co({id:Ee},jn))).status==0&&(Ce.ZP.success("\u4FEE\u6539\u6210\u529F"),ro(),oi(!1))})},Gn.createElement(Be.default.Item,{style:{marginBottom:0},name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9898\u578B\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"},{validator(jn,Pa){var Ua,mr,br,Wr;const wr=(Ua=Ko==null?void 0:Ko.find(no=>no.nameType==Jo.getFieldValue("item_type_en")))==null?void 0:Ua.id;return(Wr=(br=(mr=vn==null?void 0:vn.exercise_question_types)==null?void 0:mr.filter(no=>no.question_type!=wr))==null?void 0:br.map(no=>no==null?void 0:no.name))!=null&&Wr.includes(Pa)?Promise.reject(new Error("\u9898\u578B\u540D\u79F0\u5DF2\u5B58\u5728\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u9898\u578B\u540D\u79F0")):Promise.resolve()}}]},Gn.createElement(Fe.default,{size:"large",maxLength:10,showCount:!0})),Gn.createElement(Be.default.Item,{hidden:!0,name:"item_type_en"},Gn.createElement(Fe.default,{size:"large"})))),Gn.createElement(re.Z,{placement:"bottom",height:"100%",destroyOnClose:!0,closable:!1,className:"body-overflow-hidden",open:Qr},Gn.createElement("div",{style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},"\u667A\u80FD\u5BFC\u5165"),Gn.createElement(al.Z,{stickyTop:-24,subDisciplineId:(wn=vn==null?void 0:vn.exercise)!=null&&wn.sub_discipline_id?[(Ba=vn==null?void 0:vn.exercise)==null?void 0:Ba.discipline_id,(Aa=vn==null?void 0:vn.exercise)==null?void 0:Aa.sub_discipline_id]:[],onCancel:()=>$r(!1),mode:2,gather:{exam_id:Ee},onSuccess:()=>{$r(!1),ro()}}),Gn.createElement("div",{style:{height:70}})),Gn.createElement(Ue.Q,{visible:!!pi,setVisible:ii,tip:pi===2&&"\u8BBE\u7F6E\u5DF2\u6DFB\u52A0\u5728\u8BD5\u5377\u4E2D\u7684\u7F16\u7A0B\u9898\u6240\u5141\u8BB8\u4F7F\u7528\u7684\u7F16\u7A0B\u8BED\u8A00",dataSource:pi===1?nn==null?void 0:nn.languages:[],onOk:jn=>Ur(void 0,null,function*(){const Pa={languages:jn};pi===1?Pa.hack_id=nn==null?void 0:nn.hack_id:Pa.exam_id=Ee,(yield(0,fe.ZP)("/api/problems/update_languages.json",{method:"post",body:Pa})).status===0&&(Ce.ZP.success("\u4FEE\u6539\u6210\u529F"),No({id:Vn.current}),ii(!1))})}))};var Li=(0,he.connect)(({user:de,newExercisePaper:Se,dispatch:Ee})=>({user:de,newExercisePaper:Se,dispatch:Ee}))(ou),ll=oe(81232),Ii=oe(94287),ul=oe(26692),Wa=oe(59301),sl=Object.defineProperty,Nu=Object.defineProperties,iu=Object.getOwnPropertyDescriptors,dl=Object.getOwnPropertySymbols,lu=Object.prototype.hasOwnProperty,Ni=Object.prototype.propertyIsEnumerable,Yo=(de,Se,Ee)=>Se in de?sl(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):de[Se]=Ee,fi=(de,Se)=>{for(var Ee in Se||(Se={}))lu.call(Se,Ee)&&Yo(de,Ee,Se[Ee]);if(dl)for(var Ee of dl(Se))Ni.call(Se,Ee)&&Yo(de,Ee,Se[Ee]);return de},Vo=(de,Se)=>Nu(de,iu(Se)),To=(de,Se,Ee)=>new Promise((rt,yn)=>{var $n=bt=>{try{En(Ee.next(bt))}catch(kt){yn(kt)}},oa=bt=>{try{En(Ee.throw(bt))}catch(kt){yn(kt)}},En=bt=>bt.done?rt(bt.value):Promise.resolve(bt.value).then($n,oa);En((Ee=Ee.apply(de,Se)).next())});const Oi=()=>{const[de,Se]=(0,b.useState)([]);return(0,b.useEffect)(()=>{To(void 0,null,function*(){const rt=yield(0,le.d1)({source:"new_question"});rt!=null&&rt.disciplines&&Se((0,E.L)(rt==null?void 0:rt.disciplines))})},[]),de},Mi=({user:de,newExercisePaper:Se,dispatch:Ee})=>{var rt,yn,$n,oa,En,bt,kt,Tn,Dt,en,qn,ma;const wn=(0,he.useParams)(),Ba=Oi(),[Aa]=Be.default.useForm(),[vn,yr]=(0,b.useState)(),[Sn,ja]=(0,b.useState)(!1),[nn,gr]=(0,b.useState)(1),[Dr,Br]=(0,b.useState)(""),[Pr]=(0,he.useSearchParams)(),[Vn,ir]=(0,b.useState)(!1),[jr,Kr]=(0,b.useState)(!1),[_r,hr]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{Pr.get("type")==="2"&&(Br(wn.id),gr(2))},[Pr.get("type")]),(0,b.useEffect)(()=>{if(wn.id){if(!Ba.length)return;To(void 0,null,function*(){var Mr,tr,Lr;ja(!0);const Rr=yield(0,le.Di)({id:wn.id});ja(!1);const Qr=(Mr=Rr==null?void 0:Rr.exercise)==null?void 0:Mr.sub_discipline_id;let $r=[];for(const Ao of Ba)for(const So of Ao.children)So.value===Qr&&($r=[Ao.value,So.value]);const mo=(tr=Rr==null?void 0:Rr.exercise)==null?void 0:tr.time,lo=Vo(fi({},Rr.exercise),{sub_discipline_id:$r,time:mo===-1?null:mo});yr(lo),hr((Lr=Rr.exercise)==null?void 0:Lr.set_question_sub_discipline)})}else yr({time:60,difficulty:2});Ee({type:"globalSetting/footerToggle",payload:!1})},[Ba]),Wa.createElement("div",{style:{background:"#ffffff",marginTop:-8,padding:8,minHeight:"100vh",paddingBottom:64}},Wa.createElement("section",{className:"edu-container"},Wa.createElement("section",{className:"animated fadeIn"},Wa.createElement("aside",{style:{marginTop:15}},Wa.createElement(Ie.Z,{separator:">"},Wa.createElement(Ie.Z.Item,null,Wa.createElement(he.Link,{to:"/paperlibrary"},"\u8BD5\u5377\u5E93")),Wa.createElement(Ie.Z.Item,null,"\u4EBA\u5DE5\u7EC4\u5377")))),Wa.createElement("div",{className:"bg-white"},Wa.createElement("div",{style:{display:"flex",justifyContent:"center",paddingTop:20,alignItems:"center"}},Wa.createElement("div",{onClick:()=>{if(Vn){Ce.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002");return}gr(1)},className:nn===1?Ve.Z.selectdiv:Ve.Z.divitem},Wa.createElement(ll.Z,{number:1,active:nn===1,className:"mr10"}),Wa.createElement("span",null,"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F")),Wa.createElement("div",{style:{width:188,border:"1px dotted #9096A3",margin:"0px 30px",height:1}}),Wa.createElement("div",{onClick:()=>{if(!wn.id&&!Dr){Ce.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u57FA\u7840\u4FE1\u606F\u518D\u65B0\u5EFA\u8BD5\u9898");return}gr(2),!Dr&&Br(wn.id)},className:nn!==1?Ve.Z.selectdiv:Ve.Z.divitem},Wa.createElement(ll.Z,{number:2,active:nn!==1,className:"mr10"}),Wa.createElement("span",null,"\u7F16\u8F91\u8BD5\u9898"))),nn===2&&Wa.createElement("div",{className:"tc"},Wa.createElement(Ii.Z,{defaultValue:(yn=(rt=Se==null?void 0:Se.editData)==null?void 0:rt.exercise)==null?void 0:yn.exercise_name,onFinish:xr=>To(void 0,null,function*(){var Mr,tr,Lr,Rr,Qr,$r,mo,lo,Ao,So,vi,ri;return xr.trim()===((tr=(Mr=Se==null?void 0:Se.editData)==null?void 0:Mr.exercise)==null?void 0:tr.exercise_name)?!0:(yield(0,le.w0)({id:`${(Rr=(Lr=Se==null?void 0:Se.editData)==null?void 0:Lr.exercise)==null?void 0:Rr.id}`,sub_discipline_id:($r=(Qr=Se==null?void 0:Se.editData)==null?void 0:Qr.exercise)==null?void 0:$r.sub_discipline_id,time:`${(lo=(mo=Se==null?void 0:Se.editData)==null?void 0:mo.exercise)==null?void 0:lo.time}`,exercise_name:xr,exercise_description:(So=(Ao=Se==null?void 0:Se.editData)==null?void 0:Ao.exercise)==null?void 0:So.exercise_description,difficulty:(ri=(vi=Se==null?void 0:Se.editData)==null?void 0:vi.exercise)==null?void 0:ri.difficulty})).status===0?(Aa.setFieldValue("exercise_name",xr),Ee({type:"newExercisePaper/modifyTitle",payload:xr}),!0):!1})}),Wa.createElement("div",{style:{fontSize:14}},Wa.createElement("span",{style:{color:"#5F6368"}},"\u7B54\u9898\u65F6\u957F",Wa.createElement("span",{style:{color:"#000000",marginLeft:8}},(oa=($n=Se==null?void 0:Se.editData)==null?void 0:$n.exercise)==null?void 0:oa.time)),Wa.createElement("span",{style:{margin:"0px 30px",color:"#5F6368"}},"\u96BE\u5EA6",Wa.createElement("span",{style:{color:"#000000",marginLeft:8}},((bt=(En=Se==null?void 0:Se.editData)==null?void 0:En.exercise)==null?void 0:bt.difficulty)===1?"\u7B80\u5355":((Tn=(kt=Se==null?void 0:Se.editData)==null?void 0:kt.exercise)==null?void 0:Tn.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),Wa.createElement("span",{style:{marginRight:30,color:"#5F6368"}},"\u8BD5\u9898\u603B\u6570",Wa.createElement("span",{style:{color:"#000000",marginLeft:8}},((en=(Dt=Se==null?void 0:Se.editData)==null?void 0:Dt.exercise_types)==null?void 0:en.q_counts)||0)),Wa.createElement("span",{style:{color:"#5F6368"}},"\u603B\u5206",Wa.createElement("span",{style:{color:"#000000",marginLeft:8}},(ma=(qn=Se==null?void 0:Se.editData)==null?void 0:qn.exercise_types)==null?void 0:ma.q_scores))))),nn===1&&Wa.createElement(Ge.Z,{spinning:Sn,size:"middle",style:{position:"fixed",maxHeight:"100vh"},className:"mt30"},Wa.createElement("section",{className:[Ve.Z.bg,"mt20"].join(" "),style:{padding:"30px 120px 300px 120px"}},vn&&Wa.createElement(Be.default,{layout:"horizontal",form:Aa,colon:!1,labelCol:{span:4},wrapperCol:{span:20},className:Ve.Z.formWrap,initialValues:vn},Wa.createElement(Be.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u540D\u79F0",className:Ve.Z.baseLineHeight,rules:[{required:!0,validator:(xr,Mr)=>{var tr;return((tr=Mr==null?void 0:Mr.replaceAll(" ",""))==null?void 0:tr.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},Wa.createElement(Fe.default,{maxLength:60,className:Ve.Z.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),Wa.createElement(Be.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"sub_discipline_id",className:Ve.Z.baseLineHeight},Wa.createElement(Ye.Z,{className:Ve.Z.baseFormItem,allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Ba,popupClassName:Ve.Z.cascaderPopup,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14}})),Wa.createElement("div",{className:Ve.Z.concat},Wa.createElement("div",null,Wa.createElement(ke.default,{checked:_r,onChange:xr=>{hr(xr.target.checked)},style:{color:"#000"}},"\u8BBE\u7F6E\u8BE5\u65B9\u5411&\u8BFE\u7A0B\u4E3A\u8BD5\u9898\u6A21\u7248\uFF08\u521B\u5EFA\u65B0\u8BD5\u9898\u81EA\u52A8\u4F7F\u7528\u8BE5\u65B9\u5411&\u8BFE\u7A0B\uFF09")),Wa.createElement("div",null,"\u6CA1\u6709\u5408\u9002\u7684\u65B9\u5411&\u8BFE\u7A0B\uFF1F",Wa.createElement("a",{onClick:()=>Kr(!0)},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"))),Wa.createElement(Be.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:Ve.Z.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},Wa.createElement(De.ZP.Group,{className:Ve.Z.radiogroup},Wa.createElement(De.ZP.Button,{className:Ve.Z.easy,value:1},"\u7B80\u5355"),Wa.createElement(De.ZP.Button,{className:Ve.Z.medium,value:2},"\u9002\u4E2D"),Wa.createElement(De.ZP.Button,{className:Ve.Z.hard,value:3},"\u56F0\u96BE"))),Wa.createElement(Be.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:Ve.Z.baseLineHeight},Wa.createElement("div",{style:{display:"flex",width:"100%"}},Wa.createElement(Be.default.Item,{name:"time",noStyle:!0},Wa.createElement(Te.Z,{min:1,className:Ve.Z.baseFormItem,max:9999,style:{width:220},maxLength:60,placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),Wa.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),Wa.createElement(Be.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exercise_description"},Wa.createElement(Fe.default.TextArea,{rows:6,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"})))),Wa.createElement("div",{className:Ve.Z.bottmodiv},Wa.createElement(We.ZP,{className:`${Ve.Z.cancelBtn} mr5`,type:"primary",onClick:()=>{Pr.get("pageType")=="course"?he.history.push(`/paths/${Pr.get("courseId")}`):he.history.push("/paperlibrary")}},"\u53D6\u6D88"),Wa.createElement(a.Z,{className:`${Ve.Z.confirmBtn} ml15`,type:"primary",onClick:()=>To(void 0,null,function*(){var xr,Mr,tr,Lr;yield Aa.validateFields();const Rr=Aa.getFieldsValue();if(Rr.sub_discipline_id=((xr=Rr.sub_discipline_id)==null?void 0:xr.length)>0?Rr.sub_discipline_id[1]:"",Rr.set_question_sub_discipline=_r,wn.id){(yield(0,le.w0)(fi({id:wn.id},Rr))).status===0&&(Br(wn.id),gr(2),he.history.replace(`/paperlibrary/add/${wn.id}?type=2`));return}const Qr=yield(0,le.un)(Rr);Qr.status===0&&(Br((Mr=Qr==null?void 0:Qr.data)==null?void 0:Mr.exam_id),gr(2),Pr.get("pageType")=="course"?he.history.replace(`/paperlibrary/add/${(tr=Qr==null?void 0:Qr.data)==null?void 0:tr.exam_id}?type=2&pageType=course&courseId=${Pr.get("courseId")}&stageId=${Pr.get("stageId")}`):he.history.replace(`/paperlibrary/add/${(Lr=Qr==null?void 0:Qr.data)==null?void 0:Lr.exam_id}?type=2`))})},"\u4E0B\u4E00\u6B65"))),nn===2&&Wa.createElement("div",null,Wa.createElement(Li,{setisedits:ir,itemid:Dr}))),Wa.createElement(ul.Z,{open:jr,onCancel:()=>{Kr(!1)}}))};var Ri=(0,he.connect)(({user:de,newExercisePaper:Se,dispatch:Ee})=>({user:de,newExercisePaper:Se,dispatch:Ee}))(Mi)},26995:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return Qe}});var b=oe(59301),he=oe(78241),Be=oe(8591),Ie=oe(43418),Ce=oe(99313),Ge=oe(57809),Fe=oe(19842),Ye=oe(98228),ke=oe(92832),De=oe(1710),Te=oe(6848),We=oe(58421),Ve=oe(3113),le=oe(64866),E={flex_box_center:"flex_box_center___kuaVT",flex_space_between:"flex_space_between___exKHH",flex_box_vertical_center:"flex_box_vertical_center___BzvkN",flex_box_center_end:"flex_box_center_end___Ss2DJ",flex_box_column:"flex_box_column___p1LEr",scoremodal:"scoremodal___upTFR",selectWrapper:"selectWrapper___HH3RX",selectWrappers:"selectWrappers___fUWwr",allqingchu:"allqingchu___BFF1D",title:"title___hFasb",score:"score___DXG3o",close:"close___kEIiB",content:"content___Mco8L",items:"items___j98jk",bottom:"bottom___A1n1C",yes:"yes___P1zzb",no:"no___xZqXd",titlecount:"titlecount___fqA9P",add:"add___MqV0R",search:"search___NREgv",searchIcon:"searchIcon___qny3A",tabWrap:"tabWrap___dR18c",previewModal:"previewModal___uSiGS",q_title:"q_title___a9NY9"},a=oe(70646),x={flex_box_center:"flex_box_center___nnwwA",flex_space_between:"flex_space_between___cRir9",flex_box_vertical_center:"flex_box_vertical_center___FqTZ8",flex_box_center_end:"flex_box_center_end___WU5_v",flex_box_column:"flex_box_column___QZFa1",warp:"warp___aLZwN",shixunbutton:"shixunbutton___Eoa1i",redio:"redio___LJ4js",redioitem:"redioitem___YicCC",redioitemyes:"redioitemyes___lX4Nr",title:"title___pi1jH",titleyes:"titleyes___jiEh7",yestag:"yestag___DLWoP",qcount:"qcount___U9kkL",score:"score___vLK4B",qtitle:"qtitle___kyg0t",checkbox:"checkbox___vjiBw",checkboxitem:"checkboxitem___HW3CP",checkboxitemyes:"checkboxitemyes___kpjek",bottom:"bottom___uG8Zq",bottomitem:"bottomitem___TnJQQ",left:"left___M8WXX",right:"right____dkCI",completion:"completion___H6RmA",content:"content___a2hGC",items:"items___D8mLd",simple:"simple___fQ0OS",shixun:"shixun___nB6Jk",combination:"combination___YrOdz",program:"program___lG0JA"},y=oe(8658),z=oe(22566),ne=oe(24334);const re=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var ge=({qitem:Oe})=>{var Et,Gt,vt,wt,Ae,dt,on,ct,et,An;return b.createElement("div",{className:x.warp},b.createElement("div",{className:x.mainPart},b.createElement("div",{className:x.qcount},(Oe==null?void 0:Oe.question_type)===8&&b.createElement(y.Z,{className:x.content,showProgramFill:!0,value:(Et=Oe==null?void 0:Oe.program_attr)==null?void 0:Et.description}),(Oe==null?void 0:Oe.question_type)!=8&&b.createElement(y.Z,{className:x.qtitle,value:(Oe==null?void 0:Oe.name)||(Oe==null?void 0:Oe.title)})),((Oe==null?void 0:Oe.question_type)===0||(Oe==null?void 0:Oe.question_type)===2)&&b.createElement("div",null,(Gt=Oe==null?void 0:Oe.choices)==null?void 0:Gt.map((ot,Bt)=>b.createElement("div",{className:x.redio},!(ot!=null&&ot.is_answer)&&b.createElement("span",{className:x.redioitem}),(ot==null?void 0:ot.is_answer)&&b.createElement("i",{className:`${x.redioitemyes} icon-duigou1`}),b.createElement(y.Z,{className:ot!=null&&ot.is_answer?x.titleyes:x.title,value:re[Bt]+(ot==null?void 0:ot.choice_text)}),(ot==null?void 0:ot.is_answer)&&b.createElement("div",{className:x.yestag},"\u6B63\u786E\u7B54\u6848")))),(Oe==null?void 0:Oe.question_type)===1&&b.createElement("div",null,(vt=Oe==null?void 0:Oe.choices)==null?void 0:vt.map((ot,Bt)=>b.createElement("div",{className:x.checkbox},!(ot!=null&&ot.is_answer)&&b.createElement("span",{className:x.checkboxitem}),(ot==null?void 0:ot.is_answer)&&b.createElement("i",{className:`${x.checkboxitemyes} icon-duigou1`}),b.createElement(y.Z,{className:ot!=null&&ot.is_answer?x.titleyes:x.title,value:re[Bt]+(ot==null?void 0:ot.choice_text)}),(ot==null?void 0:ot.is_answer)&&b.createElement("div",{className:x.yestag},"\u6B63\u786E\u7B54\u6848")))),(Oe==null?void 0:Oe.question_type)===3&&b.createElement("div",{className:x.completion},(wt=Oe==null?void 0:Oe.standard_answer)==null?void 0:wt.map((ot,Bt)=>{var Ht;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:x.title},"\u586B\u7A7A\u9879",Bt+1),b.createElement("div",{className:x.content},(Ht=ot==null?void 0:ot.answer_text)==null?void 0:Ht.map((ht,On)=>b.createElement("div",{className:x.items},ht))))})),(Oe==null?void 0:Oe.question_type)===4&&b.createElement("div",{className:x.simple},b.createElement("div",{className:x.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Ae=Oe==null?void 0:Oe.answer_texts)!=null&&Ae[0]?b.createElement(y.Z,{className:x.content,value:(dt=Oe==null?void 0:Oe.answer_texts)==null?void 0:dt[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(Oe==null?void 0:Oe.question_type)===5&&((on=Oe==null?void 0:Oe.challenge_names)==null?void 0:on.map((ot,Bt)=>b.createElement("div",{className:x.shixun},b.createElement("span",{className:x.qtitle},b.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,z.EM)(Bt+1),"\u9898"),ot)))),(Oe==null?void 0:Oe.question_type)===6&&b.createElement("div",{className:x.program},b.createElement(y.Z,{className:x.content,value:((ct=Oe==null?void 0:Oe.program_attr)==null?void 0:ct.description)||"- -"})),(Oe==null?void 0:Oe.question_type)===7&&((et=Oe==null?void 0:Oe.sub_item_banks)==null?void 0:et.map((ot,Bt)=>{var Ht,ht,On,Ot,Un;return b.createElement("div",null,b.createElement("div",{className:x.combination},b.createElement("span",{className:x.qtitle},ot==null?void 0:ot.name)),b.createElement("div",{className:x.warp,style:{padding:"0px",paddingTop:20}},b.createElement("div",null,((ot==null?void 0:ot.item_type)=="SINGLE"||(ot==null?void 0:ot.item_type)=="JUDGMENT")&&((Ht=ot==null?void 0:ot.choices)==null?void 0:Ht.map((Bn,kn)=>b.createElement("div",{className:x.redio},!(Bn!=null&&Bn.is_answer)&&b.createElement("span",{className:x.redioitem}),(Bn==null?void 0:Bn.is_answer)&&b.createElement("i",{className:`${x.redioitemyes} icon-duigou1`}),b.createElement(y.Z,{className:Bn!=null&&Bn.is_answer?x.titleyes:x.title,value:re[kn]+(Bn==null?void 0:Bn.choice_text)}),(Bn==null?void 0:Bn.is_answer)&&b.createElement("div",{className:x.yestag},"\u6B63\u786E\u7B54\u6848")))),(ot==null?void 0:ot.item_type)=="MULTIPLE"&&((ht=ot==null?void 0:ot.choices)==null?void 0:ht.map((Bn,kn)=>b.createElement("div",{className:x.checkbox},!(Bn!=null&&Bn.is_answer)&&b.createElement("span",{className:x.checkboxitem}),(Bn==null?void 0:Bn.is_answer)&&b.createElement("i",{className:`${x.checkboxitemyes} icon-duigou1`}),b.createElement(y.Z,{className:Bn!=null&&Bn.is_answer?x.titleyes:x.title,value:re[kn]+(Bn==null?void 0:Bn.choice_text)}),(Bn==null?void 0:Bn.is_answer)&&b.createElement("div",{className:x.yestag},"\u6B63\u786E\u7B54\u6848")))),(ot==null?void 0:ot.item_type)=="COMPLETION"&&b.createElement("div",{className:x.completion},(On=ot==null?void 0:ot.standard_answer)==null?void 0:On.map((Bn,kn)=>{var qt;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:x.title},"\u586B\u7A7A\u9879",kn+1),b.createElement("div",{className:x.content},(qt=Bn==null?void 0:Bn.answer_text)==null?void 0:qt.map((ca,zn)=>b.createElement("div",{className:x.items},ca))))})),(ot==null?void 0:ot.item_type)=="SUBJECTIVE"&&b.createElement("div",{className:x.simple},b.createElement("div",{className:x.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Ot=ot==null?void 0:ot.answer_texts)!=null&&Ot[0]?b.createElement(y.Z,{className:x.content,value:(Un=ot==null?void 0:ot.answer_texts)==null?void 0:Un[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(Oe==null?void 0:Oe.question_type)===8&&b.createElement("div",null,b.createElement(y.Z,{disabledFill:!0,className:x.content,showProgramFill:!0,value:ne.Base64.decode(((An=Oe==null?void 0:Oe.program_attr)==null?void 0:An.code)||"")})),(Oe==null?void 0:Oe.question_type)===5&&b.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},b.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),b.createElement("span",{style:{color:"#000000"}},(Oe==null?void 0:Oe.author_name)||"- -")),b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),b.createElement("span",{style:{color:"#000000"}},(Oe==null?void 0:Oe.author_school_name)||"- -")),b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{style:{color:"#000000"}},(Oe==null?void 0:Oe.study_count)||"0"))),b.createElement("a",{className:x.shixunbutton,href:`/shixuns/${Oe==null?void 0:Oe.identifier}/challenges?exercise=true`,target:"_blank"},b.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((Oe==null?void 0:Oe.question_type)<=4||[6,8].includes(Oe==null?void 0:Oe.question_type))&&b.createElement("div",{className:x.bottom},b.createElement("div",{className:x.bottomitem},b.createElement("span",{className:x.left},"\u89E3\u6790"),b.createElement("span",{className:x.right},Oe!=null&&Oe.analysis?b.createElement(y.Z,{value:Oe==null?void 0:Oe.analysis}):b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),b.createElement("div",{className:x.bottomitem},b.createElement("span",{className:x.left},"\u96BE\u5EA6"),b.createElement("span",{className:x.right},(Oe==null?void 0:Oe.difficulty)===1?"\u7B80\u5355":(Oe==null?void 0:Oe.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),b.createElement("div",{className:x.bottomitem},b.createElement("span",{className:x.left},"\u77E5\u8BC6\u70B9"),b.createElement("span",{className:x.right},Oe!=null&&Oe.tag_discipline?Oe==null?void 0:Oe.tag_discipline:b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},fe=oe(39469),Pe=oe(58082),Ue=oe(90115),Me=oe(61485),lt=oe(51529),Le=oe(40427),be=oe(59301),Xe=Object.defineProperty,nt=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,ut=(Oe,Et,Gt)=>Et in Oe?Xe(Oe,Et,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Oe[Et]=Gt,Kt=(Oe,Et)=>{for(var Gt in Et||(Et={}))pt.call(Et,Gt)&&ut(Oe,Gt,Et[Gt]);if(gt)for(var Gt of gt(Et))xt.call(Et,Gt)&&ut(Oe,Gt,Et[Gt]);return Oe},rn=(Oe,Et)=>nt(Oe,ye(Et)),It=(Oe,Et,Gt)=>new Promise((vt,wt)=>{var Ae=ct=>{try{on(Gt.next(ct))}catch(et){wt(et)}},dt=ct=>{try{on(Gt.throw(ct))}catch(et){wt(et)}},on=ct=>ct.done?vt(ct.value):Promise.resolve(ct.value).then(Ae,dt);on((Gt=Gt.apply(Oe,Et)).next())});const Zt=({setScoreShow:Oe,ScoreShow:Et,onOk:Gt,isshixuns:vt=!0,isloadings:wt,dispatch:Ae,isIntelligentAssistant:dt=!1,newExercisePaper:on,shixunsDetail:ct,SpecificDifficulty:et})=>{var An,ot,Bt,Ht;let[ht,On]=(0,b.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,bigmodel:dt,group_id:[]}),[Ot,Un]=(0,b.useState)([]),[Bn,kn]=(0,b.useState)([]),[qt,ca]=(0,b.useState)([]),[zn,ba]=(0,b.useState)([]);const[ln,cn]=(0,b.useState)(!1),[pn]=he.default.useForm(),[Oa,va]=(0,b.useState)(),[wa,_t]=(0,b.useState)(!1);let[St,fn]=(0,b.useState)(vt);const[Fn,Ea]=(0,b.useState)([]),[na,Ka]=(0,b.useState)(0),[aa,Wn]=(0,b.useState)(!0),[Ya,Ma]=(0,b.useState)([]),[Ja,Ar]=(0,b.useState)([]),At=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}];let[Ln,Mn]=(0,b.useState)([]),[xn,xe]=(0,b.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:"",per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const ft=(0,b.useRef)(new Set),Ft=(0,b.useRef)(new Set),Vt=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Rt=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],yt=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[hn,je]=(0,b.useState)(!1),Ke=()=>{pn.resetFields(),St=!1,fn(!1),je(!1),pn.submit()};(0,b.useEffect)(()=>{var Je,Qt,bn,tt,Jn,In,sa,Zn,za,la;(((bn=(Qt=(Je=on==null?void 0:on.editData)==null?void 0:Je.exercise)==null?void 0:Qt.exist_item_bank_ids)==null?void 0:bn.length)>0||((In=(Jn=(tt=on==null?void 0:on.editData)==null?void 0:tt.exercise)==null?void 0:Jn.exist_item_bank_shixun_ids)==null?void 0:In.length)>0)&&Ar([...(Zn=(sa=on==null?void 0:on.editData)==null?void 0:sa.exercise)==null?void 0:Zn.exist_item_bank_ids,...(la=(za=on==null?void 0:on.editData)==null?void 0:za.exercise)==null?void 0:la.exist_item_bank_shixun_ids])},[(ot=(An=on==null?void 0:on.editData)==null?void 0:An.exercise)==null?void 0:ot.exist_item_bank_ids]),(0,b.useEffect)(()=>{Et&&(pn.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),aa&&St&&(pn.setFieldsValue({item_type:"SHIXUN"}),ht.item_type="SHIXUN",et&&(pn.setFieldsValue({diff:et}),ht.diff=et),On(Kt({},ht)),Wn(!1)),He(ht),Mt(),sn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),un())},[Et]),(0,b.useEffect)(()=>{na>0&&setTimeout(()=>{Ka(0)},2e3)},[na]);function He(Je){return It(this,null,function*(){var Qt,bn,tt;if(cn(!0),On(Kt({},Je)),(qt==null?void 0:qt.length)<=0&&Je.type==="5"){ba([]),cn(!1);return}console.log("----",qt,Fn);let Jn=Je.type==="5"?qt==null?void 0:qt.filter(Zn=>!Fn.includes(Zn)):null,In=Je.type==="5"?qt==null?void 0:qt.filter(Zn=>Fn.includes(Zn)):null;Je.group_id=((Qt=Je.group_id)==null?void 0:Qt.map(Zn=>Zn==null?void 0:Zn.value))||null;let sa=yield(0,le.ZP)("/api/item_banks.json",{method:"get",params:rn(Kt({},Je),{discipline_id:((bn=Je==null?void 0:Je.courseid)==null?void 0:bn[0])||null,sub_discipline_id:((tt=Je==null?void 0:Je.courseid)==null?void 0:tt[1])||null,ids:Jn,shixun_ids:In,include_shixuns:!dt,keyword:Je.keyword?encodeURIComponent(Je.keyword):Je.keyword,type:Je.type==="5"?null:Je.type,clazz:Je.type==="3"?"ItemBanksGroup":null})});ba(sa),cn(!1)})}function Mt(){return It(this,null,function*(){let Je=yield(0,le.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:ht.type==="5"?null:ht.type,clazz:"ItemBanksGroup"}});Un((0,a.L)(Je==null?void 0:Je.disciplines))})}function un(){return It(this,null,function*(){let Je=yield(0,le.ZP)("/api/users/vrs_subject_names.json",{method:"Get"});(Je==null?void 0:Je.status)==0&&Mn(Je==null?void 0:Je.names)})}function sn(Je){return It(this,null,function*(){var Qt;let bn=yield(0,le.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Je}),tt=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Qt=bn==null?void 0:bn.data)==null?void 0:Qt.map(Jn=>({title:Jn.name,id:Jn.id,pid:Jn.id,value:Jn.id,key:Jn.id,isLeaf:!Jn.have_child}))}];Ma(tt)})}function Xn(Je){return It(this,null,function*(){var Qt,bn,tt,Jn;cn(!0);let In=(Qt=Je.list)==null?void 0:Qt.filter(za=>!Fn.includes(za)),sa=(bn=Je.list)==null?void 0:bn.filter(za=>Fn.includes(za));if(In.length===0&&sa.length===0){cn(!1),ba([]);return}let Zn=yield(0,le.ZP)("/api/item_banks.json",{method:"get",params:rn(Kt({},Je),{discipline_id:((tt=Je==null?void 0:Je.courseid)==null?void 0:tt[0])||null,sub_discipline_id:((Jn=Je==null?void 0:Je.courseid)==null?void 0:Jn[1])||null,ids:In,shixun_ids:sa,type:Je.type==="5"?null:Je.type,clazz:Je.type==="3"?"ItemBanksGroup":null})});cn(!1),ba(Zn)})}const Qn=Je=>It(void 0,null,function*(){const Qt=yield Ae({type:"shixunsDetail/release",payload:{id:Je}});let bn=Qt==null?void 0:Qt.tag_position,tt=(Qt==null?void 0:Qt.evaluation_set_position)||[],Jn=Qt.status;return Jn===0?(Be.ZP.success("\u53D1\u5E03\u6210\u529F"),He(ht),!0):(Jn===2?Be.ZP.error(`\u7B2C${tt.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):Jn===3?Be.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${bn.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):Be.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),gn=Je=>(Je==null?void 0:Je.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",Yn=(Je,Qt,bn)=>Je.map(tt=>tt.key===Qt?Kt(Kt({},tt),bn):tt.children?rn(Kt({},tt),{children:Yn(tt.children,Qt,bn)}):tt),ha=Je=>It(void 0,null,function*(){const{key:Qt}=Je;let bn=ht.type;const tt=yield(0,Le.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Qt),type:bn}),{data:Jn,total_count:In}=tt||{};In>0&&Ma(sa=>Yn(sa,Qt,{children:Jn.map(Zn=>({title:Zn.name,id:Zn.id,pid:Zn.id,value:Zn.id,key:Zn.id,isLeaf:!Zn.have_child}))}))});function zt(Je){console.log("----",ht),Je==="1"&&(xn.gg=Kt({},ht)),Je==="2"&&(xn.scj=Kt({},ht)),Je==="3"&&(xn.ttgx=Kt({},ht)),Je==="0"&&(xn.wcjd=Kt({},ht)),Je==="5"&&(xn.yx=Kt({},ht)),xe(Kt({},xn))}function _n(){ht.type==="1"&&(ht=xn.gg),ht.type==="2"&&(ht=xn.scj),ht.type==="3"&&(ht=xn.ttgx),ht.type==="0"&&(ht=xn.wcjd),ht.type==="5"&&(ht=xn.yx),(ht==null?void 0:ht.item_type)==="SHIXUN"?(St=!0,fn(!0)):(St=!1,fn(!1)),pn.setFieldsValue(Kt({},ht)),On(Kt({},ht)),He(Kt({},ht))}return be.createElement("div",null,be.createElement(Ie.default,{title:!1,footer:!1,open:Et,width:1360,centered:!0,className:E.scoremodal,onCancel:()=>{Oe(!1)}},be.createElement("div",{style:{display:"flex",alignItems:"center"}},be.createElement("div",{className:E.title},dt?"\u4EE5\u9898\u6362\u9898":"\u9898\u5E93\u9009\u9898")),dt&&be.createElement("div",{style:{padding:10,background:"#F6F7F9",borderRadius:4,marginTop:14}},"\u6839\u636E\u73B0\u6709\u8BD5\u9898\u7684\u9898\u578B\u3001\u65B9\u5411\u3001\u77E5\u8BC6\u70B9\u3001\u96BE\u6613\u5EA6\uFF0C\u5FEB\u901F\u751F\u6210\u65B0\u7684\u8BD5\u9898\uFF0C\u589E\u52A0\u8BD5\u9898\u7684\u4E30\u5BCC\u5EA6"),be.createElement(Ce.default,{className:E.tabWrap,activeKey:ht.type,onChange:Je=>{Je==="3"?(ht.show_all_share=!0,sn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):ht.show_all_share=null,Je==="0"&&sn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),zt(ht.type),ht.type=Je,(ht==null?void 0:ht.item_type)==="SHIXUN"&&ht.type!=="5"&&(St=!0,fn(!0)),je(!1),ht.type==="5"&&(St=!1,fn(!1)),_n(),Mt()},items:[{label:"\u516C\u5171",key:"1"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u6536\u85CF\u5939",key:"2"},{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:be.createElement("div",null,"\u5DF2\u9009",qt.length>0&&be.createElement("span",{className:E.titlecount},qt.length),na>0&&be.createElement("span",{className:E.add},"+",na)),key:"5"}]}),be.createElement(he.default,{layout:"inline",form:pn,onValuesChange:(Je,Qt)=>{const bn=Object.values(Qt).some(Jn=>Jn!==null&&Jn!==""&&Jn!==void 0),tt=Qt.keyword==="";if(je(bn||!tt),ht.page=1,(Qt==null?void 0:Qt.item_type)==="SHIXUN"){if(ht.type==="5"?(et&&pn.setFieldsValue({difficulty:et}),fn(!1)):(et&&pn.setFieldsValue({diff:et}),fn(!0)),Je.keyword||Je.keyword==="")return;setTimeout(()=>{pn.submit()},0)}else{if(Je!=null&&Je.courseid&&pn.setFieldsValue({tag_discipline_id:""}),fn(!1),Je.keyword||Je.keyword==="")return;pn.submit()}},onFinish:Je=>{var Qt;ht.type==="3"&&(!Je.group_id||((Qt=Je==null?void 0:Je.group_id)==null?void 0:Qt.length)===0)?ht.show_all_share=!0:ht.show_all_share=null,On(Kt(Kt({},ht),Je)),He(Kt(Kt({},ht),Je))}},be.createElement(he.default.Item,{name:"item_type"},be.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle"},(dt?At.slice(0,6):At).map(Je=>be.createElement(Ge.default.Option,{key:Je.value},Je.name)))),be.createElement(he.default.Item,{name:"courseid"},be.createElement(Fe.Z,{className:E.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:Ot})),!St&&be.createElement(he.default.Item,{name:"tag_discipline_id"},be.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(Bt=zn==null?void 0:zn.tag_disciplines)==null?void 0:Bt.map(Je=>be.createElement(Ge.default.Option,{key:Je.id},Je.name)))),St&&be.createElement(he.default.Item,{name:"vrs_name"},be.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u79D1\u76EE",style:{width:118},size:"middle",allowClear:!0},(Ht=[{id:"",name:"\u5168\u90E8"},...(Ln==null?void 0:Ln.map(Je=>({id:Je,name:Je})))||[]])==null?void 0:Ht.map(Je=>be.createElement(Ge.default.Option,{key:Je.id},Je.name)))),be.createElement(he.default.Item,{name:St?"diff":"difficulty"},be.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0,disabled:(ht==null?void 0:ht.item_type)==="SHIXUN"&&!!et},!St&&Vt.map(Je=>be.createElement(Ge.default.Option,{value:Je.value,key:Je.value},Je.name)),St&&Rt.map(Je=>be.createElement(Ge.default.Option,{value:Je.value,key:Je.value},Je.name)))),St&&be.createElement(he.default.Item,{name:"shixun_publish_status"},be.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},yt.map(Je=>be.createElement(Ge.default.Option,{key:Je.value},Je.name)))),(ht.type==="3"||ht.type==="0")&&!St&&be.createElement(he.default.Item,{name:"group_id"},be.createElement(Ye.default,{treeDataSimpleMode:!0,style:{width:118},className:E.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Je,Qt)=>Qt.title.toUpperCase().indexOf(Je.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:ha,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:Ya})),hn&&be.createElement("span",{className:E.allqingchu,onClick:Ke},be.createElement("i",{className:"iconfont icon-guanbi4"}),be.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),be.createElement(he.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},be.createElement(ke.default.Search,{className:E.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:be.createElement("i",{className:`iconfont icon-sousuo9 font14 ${E.searchIcon}`,onClick:()=>pn.submit()}),onSearch:Je=>{pn.submit()}}))),be.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},be.createElement("div",{onClick:()=>{ht.updated_at==="asc"?ht.updated_at="desc":ht.updated_at="asc",On(rn(Kt({},ht),{page:1})),He(rn(Kt({},ht),{page:1}))}}," ",ht.updated_at?be.createElement("img",{src:ht.updated_at==="asc"?fe.Z:Pe.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):be.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),be.createElement("div",{onClick:()=>{ht.quotes==="asc"?ht.quotes="desc":ht.quotes="asc",On(rn(Kt({},ht),{page:1})),He(rn(Kt({},ht),{page:1}))},style:{marginLeft:20}}," ",ht.quotes?be.createElement("img",{src:ht.quotes==="asc"?fe.Z:Pe.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):be.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),be.createElement(De.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(zn==null?void 0:zn.items)||(zn==null?void 0:zn.shixun_list),pagination:!1,loading:ln,rowKey:Je=>Je.id,rowSelection:{type:dt?"radio":"checkbox",selectedRowKeys:Bn,getCheckboxProps:Je=>({disabled:Je.shixun_tag_num===1||(Ja==null?void 0:Ja.find(Qt=>Je.id===Qt))}),onSelect(Je,Qt,bn){if(dt){kn([Je.id]),Ft.current=new Set([Je.id]),Ka(1),ca([Je.id]);return}if(Qt)(St||Je!=null&&Je.challenge_names)&&Ea([...Fn,Je.id]),kn([...Bn,Je.id]),Je.identifier?ft.current.add(Je.id):Ft.current.add(Je.id),Ka(1),ca([...qt,Je.id]);else{Je.identifier?ft.current.delete(Je.id):Ft.current.delete(Je.id);let tt=qt.filter(Jn=>Jn!==Je.id);if(kn(tt),ca(tt),St||Je!=null&&Je.challenge_names){let Jn=Fn.filter(In=>In!==Je.id);Ea([...Jn])}if(ht.type==="5"){Xn(rn(Kt({},ht),{list:[...tt]}));return}}},onSelectAll(Je,Qt,bn){var tt,Jn;if(Je){const In=bn.map(Zn=>Zn.id),sa=(Jn=bn==null?void 0:bn.filter(Zn=>Zn==null?void 0:Zn.challenge_names))==null?void 0:Jn.map(Zn=>Zn.id);Ea([...Fn,...sa]),kn([...Bn,...In]),ca([...qt,...In]);for(const Zn of bn)Zn.identifier?ft.current.add(Zn.id):Ft.current.add(Zn.id)}else{const In=bn.map(la=>la.id),sa=Bn.filter(la=>!In.some(_a=>_a===la)),Zn=(tt=bn==null?void 0:bn.filter(la=>la==null?void 0:la.challenge_names))==null?void 0:tt.map(la=>la.id);kn([...sa]),ca([...sa]);let za=Fn.filter(la=>!Zn.some(_a=>_a===la.id));Ea([...za]),ht.type==="5"&&Xn(rn(Kt({},ht),{list:[...sa]}));for(const la of In)la.identifier?ft.current.delete(la):Ft.current.delete(la)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(Je,Qt,bn)=>{var tt,Jn;return be.createElement(Te.Z,{title:gn(Qt)},be.createElement("div",null,St||Qt!=null&&Qt.challenge_names?"\u5B9E\u8BAD\u9898":(Jn=(tt=At==null?void 0:At.filter(In=>In.value===Je))==null?void 0:tt[0])==null?void 0:Jn.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:St?"30%":"60%",key:"name",render:(Je,Qt,bn)=>{var tt;return be.createElement("div",{style:{display:"flex",alignItems:"center"}},be.createElement(Te.Z,{title:gn(Qt)},be.createElement("div",{className:Qt!=null&&Qt.high_resources_consume?E.q_title:""},be.createElement(y.Z,{key:1,showLines:1,showTextOnly:!0,value:St||Qt!=null&&Qt.challenge_names?Qt!=null&&Qt.title||Je===null?"--":Je:(Qt==null?void 0:Qt.item_type)=="BPROGRAM"?(tt=Qt==null?void 0:Qt.program_attr)==null?void 0:tt.description:Je}))),(Qt==null?void 0:Qt.high_resources_consume)&&be.createElement(lt.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!St,render:(Je,Qt,bn)=>{var tt;return be.createElement(Te.Z,{title:gn(Qt)},be.createElement("span",null,Je?(tt=Je==null?void 0:Je.split("\u3001"))==null?void 0:tt[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!St,render:(Je,Qt,bn)=>be.createElement(Te.Z,{title:gn(Qt)},be.createElement("span",null,Je||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(Je,Qt,bn)=>{var tt,Jn,In,sa;return be.createElement(Te.Z,{title:gn(Qt)},be.createElement("div",null,St||Qt!=null&&Qt.challenge_names?(Qt==null?void 0:Qt.level)||((Jn=(tt=Vt==null?void 0:Vt.filter(Zn=>Zn.value===Je))==null?void 0:tt[0])==null?void 0:Jn.name):(sa=(In=Vt==null?void 0:Vt.filter(Zn=>Zn.value===Je))==null?void 0:In[0])==null?void 0:sa.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!St,render:(Je,Qt,bn)=>be.createElement(Te.Z,{title:gn(Qt)},be.createElement("div",null,Je||"- -"))},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!St,render:(Je,Qt,bn)=>be.createElement("span",null,Je||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(Je,Qt,bn)=>be.createElement(Te.Z,{title:gn(Qt)},be.createElement("div",null,St||Qt!=null&&Qt.challenge_names?(Qt==null?void 0:Qt.study_count)||(Qt==null?void 0:Qt.stu_num):Je))},{title:be.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",be.createElement(Te.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},be.createElement(Me.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!St,render:(Je,Qt,bn)=>be.createElement(Te.Z,{title:gn(Qt)},be.createElement("div",null,Je||"- -"))},{title:be.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",be.createElement(Te.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},be.createElement(Me.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!St,render:(Je,Qt,bn)=>be.createElement("span",null,Je||"- -")},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(Je,Qt,bn)=>be.createElement(Te.Z,{title:gn(Qt)},be.createElement("div",{style:{flex:1,textAlign:"start"}},be.createElement("a",{onClick:()=>{var tt,Jn;va(rn(Kt({},Qt),{question_type:St||Qt!=null&&Qt.challenge_names?5:(Jn=(tt=At==null?void 0:At.filter(In=>In.value===(Qt==null?void 0:Qt.item_type)))==null?void 0:tt[0])==null?void 0:Jn.question_type})),_t(!0)}},"\u67E5\u770B"),(Qt==null?void 0:Qt.shixun_tag_num)===1&&be.createElement("a",{style:{marginLeft:10},onClick:()=>{Ie.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:be.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",be.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Qt==null?void 0:Qt.identifier}/challenges`)}},(Qt==null?void 0:Qt.shixun_name)||"--"),"\uFF1F"),onOk:()=>It(void 0,null,function*(){if(!Qn(Qt==null?void 0:Qt.identifier))return new Promise((tt,Jn)=>{Jn()})})})}},"\u53D1\u5E03")))}].filter(Je=>!Je.hidden)}),be.createElement(We.Z,{current:ht.page,total:(zn==null?void 0:zn.items_count)||(zn==null?void 0:zn.shixuns_count),style:{marginBottom:20},defaultPageSize:ht.per_page,showTotal:Je=>be.createElement("span",null,"\u5171\xA0",be.createElement("span",{style:{color:"#165DFF"}},Je),"\xA0\u6761\u6570\u636E"),pageSize:ht.per_page,onChange:(Je,Qt)=>{ht.page=Je,ht.per_page=Qt,On(Kt({},ht)),He(Kt({},ht))}}),be.createElement("div",{className:E.bottom},be.createElement(Ve.ZP,{className:E.no,onClick:()=>{Oe(!1)}},"\u53D6\u6D88"),be.createElement(Ve.ZP,{loading:wt,style:{width:wt&&75},className:E.yes,onClick:()=>It(void 0,null,function*(){if((qt==null?void 0:qt.length)<=0){Be.ZP.info(dt?"\u8BF7\u9009\u62E9\u4E00\u9053\u8BD5\u9898":"\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}Gt([...Ft.current],[...ft.current],!0,qt==null?void 0:qt.length)})},dt?"\u5F00\u59CB\u6362\u9898":"\u786E\u8BA4"))),be.createElement(Ie.default,{open:wa,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:E.previewModal,width:1e3,centered:!0,onCancel:()=>{_t(!1)},onOk:()=>{_t(!1)}},be.createElement(ge,{qitem:Oa})))};var Qe=(0,Ue.connect)(({shixunsDetail:Oe,newExercisePaper:Et})=>({shixunsDetail:Oe,newExercisePaper:Et}))(Zt)},26692:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return De}});var b=oe(43418),he={ul:"ul___TdfYY"},Be=oe(32637),Ie=oe(59301),Ce=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,Ye=(Te,We)=>{var Ve={};for(var le in Te)Ge.call(Te,le)&&We.indexOf(le)<0&&(Ve[le]=Te[le]);if(Te!=null&&Ce)for(var le of Ce(Te))We.indexOf(le)<0&&Fe.call(Te,le)&&(Ve[le]=Te[le]);return Ve},De=Te=>{var We=Te,{open:Ve,onCancel:le}=We,E=Ye(We,["open","onCancel"]);return Ie.createElement(b.default,{centered:!0,open:Ve,title:Ie.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:le,footer:null},Ie.createElement("div",null,Ie.createElement("div",{className:"tc"},Ie.createElement("img",{className:"mt10",src:Be,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),Ie.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),Ie.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),Ie.createElement("div",{style:{color:"#333"},className:"pt30 font14"},Ie.createElement("ul",{className:he.ul},Ie.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),Ie.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),Ie.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},49613:function(_e,Ct,oe){"use strict";oe.d(Ct,{I:function(){return he}});var b=oe(59301);const he=()=>{const[Be,Ie]=(0,b.useState)("hidden");return{overflow:Be,handleMouseEnter:()=>Ie("auto"),handleMouseLeave:()=>Ie("hidden")}}},77578:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return b}});const b=he=>he?typeof he=="function"?he():he:null},66104:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return nt}});var b=oe(92310),he=oe.n(b),Be=oe(11592),Ie=oe(26112),Ce=oe(59301),Ge=oe(92343),Fe=oe(36355),Ye=oe(84105),ke=oe(91857);const De=ye=>{let{children:gt}=ye;const{getPrefixCls:pt}=Ce.useContext(Fe.E_),xt=pt("breadcrumb");return Ce.createElement("li",{className:`${xt}-separator`,"aria-hidden":"true"},gt===""?gt:gt||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var Te=De,We=function(ye,gt){var pt={};for(var xt in ye)Object.prototype.hasOwnProperty.call(ye,xt)&>.indexOf(xt)<0&&(pt[xt]=ye[xt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,xt=Object.getOwnPropertySymbols(ye);utgt[ut]||xt)}function le(ye,gt,pt,xt){if(pt==null)return null;const{className:ut,onClick:Kt}=gt,rn=We(gt,["className","onClick"]),It=Object.assign(Object.assign({},(0,Ie.Z)(rn,{data:!0,aria:!0})),{onClick:Kt});return xt!==void 0?Ce.createElement("a",Object.assign({},It,{className:he()(`${ye}-link`,ut),href:xt}),pt):Ce.createElement("span",Object.assign({},It,{className:he()(`${ye}-link`,ut)}),pt)}function E(ye,gt){return(xt,ut,Kt,rn,It)=>{if(gt)return gt(xt,ut,Kt,rn);const Zt=Ve(xt,ut);return le(ye,xt,Zt,It)}}var a=function(ye,gt){var pt={};for(var xt in ye)Object.prototype.hasOwnProperty.call(ye,xt)&>.indexOf(xt)<0&&(pt[xt]=ye[xt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,xt=Object.getOwnPropertySymbols(ye);ut{const{prefixCls:gt,separator:pt="/",children:xt,menu:ut,overlay:Kt,dropdownProps:rn,href:It}=ye,Qe=(Oe=>{if(ut||Kt){const Et=Object.assign({},rn);if(ut){const Gt=ut||{},{items:vt}=Gt,wt=a(Gt,["items"]);Et.menu=Object.assign(Object.assign({},wt),{items:vt==null?void 0:vt.map((Ae,dt)=>{var{key:on,title:ct,label:et,path:An}=Ae,ot=a(Ae,["key","title","label","path"]);let Bt=et!=null?et:ct;return An&&(Bt=Ce.createElement("a",{href:`${It}${An}`},Bt)),Object.assign(Object.assign({},ot),{key:on!=null?on:dt,label:Bt})})})}else Kt&&(Et.overlay=Kt);return Ce.createElement(ke.Z,Object.assign({placement:"bottom"},Et),Ce.createElement("span",{className:`${gt}-overlay-link`},Oe,Ce.createElement(Ye.Z,null)))}return Oe})(xt);return Qe!=null?Ce.createElement(Ce.Fragment,null,Ce.createElement("li",null,Qe),pt&&Ce.createElement(Te,null,pt)):null},y=ye=>{const{prefixCls:gt,children:pt,href:xt}=ye,ut=a(ye,["prefixCls","children","href"]),{getPrefixCls:Kt}=Ce.useContext(Fe.E_),rn=Kt("breadcrumb",gt);return Ce.createElement(x,Object.assign({},ut,{prefixCls:rn}),le(rn,ut,pt,xt))};y.__ANT_BREADCRUMB_ITEM=!0;var z=y,ne=oe(17313),re=oe(83116),ie=oe(37613);const ge=ye=>{const{componentCls:gt,iconCls:pt}=ye;return{[gt]:Object.assign(Object.assign({},(0,ne.Wf)(ye)),{color:ye.itemColor,fontSize:ye.fontSize,[pt]:{fontSize:ye.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:ye.linkColor,transition:`color ${ye.motionDurationMid}`,padding:`0 ${ye.paddingXXS}px`,borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",marginInline:-ye.marginXXS,"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover}},(0,ne.Qy)(ye)),"li:last-child":{color:ye.lastItemColor},[`${gt}-separator`]:{marginInline:ye.separatorMargin,color:ye.separatorColor},[`${gt}-link`]:{[` +`),Tt.focus();default:throw new Error}},[Tt,Pn]),Ba=(0,b.useMemo)(()=>{switch(Pn){case wa:return b.createElement(It,{callback:$t,onCancel:Ea});case ya:return b.createElement(Zt.Z,{callback:$t,onCancel:Ea});case _t:return b.createElement(Qe.Z,{callback:$t,onCancel:Ea});case St:return b.createElement(Mn,{callback:$t,onCancel:Ea});case na:return b.createElement(qt,{callback:$t,onCancel:Ea});case"maths-latex":return b.createElement(cn,{showSaveButton:!0,callback:$t});case"inline-latex":return b.createElement(pn.Z,{showSaveButton:!0,callback:$t});default:return null}},[Pn]);function Ea(){Ra("")}(0,b.useEffect)(()=>{if(mt.current){let Tn=function(jt){$e=!0,st=jt.pageY},an=function(){$e=!1},Lt=function(jt){if($e){let at=jt.pageY-st;at<0&&(at=0),at>300&&(at=300);let tn=Mt+at+"px";Sr(tn)}},de=mt.current,$e=!1,st=0;return de.addEventListener("mousedown",Tn),document.addEventListener("mousemove",Lt),document.addEventListener("mouseup",an),()=>{de.removeEventListener("mousedown",Tn),document.removeEventListener("mousemove",Lt),document.removeEventListener("mouseup",an)}}},[Tt,mt]),(0,b.useEffect)(()=>{Sr(Mt)},[Mt]);const ar=ft(He),Ta=ft(ur),da={width:ar,height:Ta},Qa=(0,b.useMemo)(()=>{if(ha){let Tn=new Date(ha),an=Tn.getHours(),Lt=Tn.getMinutes(),de=Tn.getSeconds();return an=an<10?"0"+an:an,Lt=Lt<10?"0"+Lt:Lt,de=de<10?"0"+de:de,`${an}:${Lt}:${de}`}return 0},[ha]),vr=Tn=>{const an=[];if(Je){let Lt=-1;Tn=Tn.replace(/(@▁▁@|@▁@)/g,function(de,$e,st){an.push({multiLine:de!==Rn})})}return an};function Tr(){window.sessionStorage.removeItem(Yn),pr(!1),Va(0)}function er(){pr(!1),Va(0),Tt.setValue(window.sessionStorage.getItem(Yn))}(0,b.useEffect)(()=>{yt[Pn]&&Pn!==fn&&Pn!==St&&setTimeout(()=>{const Tn=document.getElementsByClassName("markdown-popup-form")[0],an=window.innerWidth/2-Tn.offsetWidth/2,Lt=window.innerHeight/2-Tn.offsetHeight/2;fa(an),dr(Lt)},0)},[Pn]);const cr=Tn=>{Tn.preventDefault();const an=Tn.clientX-fr,Lt=Tn.clientY-or;document.body.onmousemove=de=>{let $e=de.clientX-an,st=de.clientY-Lt;const jt=document.getElementsByClassName("markdown-popup-form")[0],at=window.innerWidth-jt.offsetWidth,tn=window.innerHeight-jt.offsetHeight;$e=Math.max(0,Math.min($e,at)),st=Math.max(0,Math.min(st,tn)),Cr(de.clientX,de.clientY,an,Lt)&&(fa($e),dr(st))},document.body.onmouseup=function(){document.body.onmousemove=null}},Cr=(Tn,an,Lt,de)=>{const $e=document.body.clientHeight,st=document.body.clientWidth;return Tn<20&&Lt>Tn||Tn>st-20&&Ltan||an>$e-20&&delt in Me?We(Me,lt,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Me[lt]=Le,z=(Me,lt)=>{for(var Le in lt||(lt={}))a.call(lt,Le)&&y(Me,Le,lt[Le]);if(E)for(var Le of E(lt))x.call(lt,Le)&&y(Me,Le,lt[Le]);return Me},ne=(Me,lt)=>Ve(Me,le(lt));const{useForm:re}=b.default,ie={width:280,marginRight:10},ge={labelCol:{span:5},wrapperCol:{span:19}};var fe=({callback:Me,onCancel:lt})=>{const[Le]=re();let Ce=(0,ke.useRef)();function Xe(gt){Ce.current.width=Le.getFieldValue("width"),Ce.current.align=Le.getFieldValue("align"),Me(gt,Ce.current)}function nt(gt,pt){if(gt.status===-1){he.ZP.error(gt.message);return}Le.setFieldsValue({src:`/api/attachments/${gt.id}`,type:pt.type})}function ye(gt){let pt=gt.target.files[0];Ce.current=pt,Ue(pt,nt)}return Te.createElement(b.default,ne(z({form:Le},ge),{className:"upload-image-panel",onFinish:Xe,style:{width:470,overflow:"hidden"}}),Te.createElement(b.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Te.createElement("div",{className:"flex-container"},Te.createElement(b.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Te.createElement(Be.default,{style:ie})),Te.createElement(Pe,{onFileChange:ye}))),Te.createElement(b.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Te.createElement(Be.default,{style:{width:264}})),Te.createElement(b.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Te.createElement(Ie.Z,null,Te.createElement(b.default.Item,{name:"width",style:{margin:0}},Te.createElement(be.Z,{style:{width:264}})),Te.createElement("span",{className:"ml8"},"%"))),Te.createElement(b.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Te.createElement(Ge.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Te.createElement("aside",null,Te.createElement(b.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Te.createElement(Fe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Te.createElement(Fe.ZP,{type:"default",onClick:lt},"\u53D6\u6D88"))))};function Pe({onFileChange:Me}){return Te.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Te.createElement("input",{type:"file",onChange:Me}))}function Ue(Me,lt){if(!Me)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,De.bg)())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Le=new FormData;Le.append("editormd-image-file",Me),Le.append("file_param_name","editormd-image-file"),Le.append("byxhr","true");var Ce=new window.XMLHttpRequest;Ce.withCredentials=!0,Ce.addEventListener("load",function(Xe){lt(JSON.parse(Xe.target.responseText),Me)},!1),Ce.addEventListener("error",function(Xe){console.error(Xe)},!1),Ce.open("POST",`${Ye.KI}/api/attachments.json`),Ce.send(Le)}},61569:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Be}});var b=oe(59301),he=oe(4676);class Be extends b.Component{constructor(be){super(be);const Ge=window.document;this.node=Ge.createElement("div"),Ge.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,he.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},23734:function(_e,xt,oe){"use strict";oe.d(xt,{i:function(){return ge},Z:function(){return Pe}});var b={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},he=oe(71418),Be=oe(6848),Ie=oe(93948),be=oe(92310),Ge=oe.n(be),Fe=oe(22566),Ye=oe(21692),ke=oe(16624),De=oe(79005),Te=oe(20345),We=oe(77882),Ve=oe(31081),le=oe(75309),E=oe(71979),a=oe(47558),x=oe(42922),y=oe(66832),z=oe(96593),ne=oe(19664),re=oe(91833),ie=oe(59301);const ge=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:De,swimg:Te},{name:"101\u8BA1\u5212",ptimg:We,swimg:Ve},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:le,swimg:E},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:a,swimg:x},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:y,swimg:z},{name:"\u519B\u961F\u4E00\u6D41",ptimg:ne,swimg:re}];var Pe=({className:Ue,dataSource:Me=[],col:lt=4,right:Le,bottom:Ce=23,precision:Xe=0,wrapWidth:nt=1200,trackEventItems:ye,loading:gt,onRemove:pt=()=>{},isCurrent:wt=!0,showAlias:ut=!1,showProgress:Kt=!1})=>{const rn=Math.floor((nt-(lt-1)*Le)/lt),It=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(Zt=>(window.ENV==="build"&&(Zt.ptimg=`/react/build${Zt.ptimg}`,Zt.swimg=`/react/build${Zt.swimg}`),Zt));return ie.createElement(he.Z,{spinning:gt},ie.createElement("div",{className:Ge()(b.list,Ue)},!!(Me!=null&&Me.length)&&(Me==null?void 0:Me.map((Zt,Qe)=>{var Oe,Et,Gt,vt,Dt,Ae;const{name:dt,id:on,identifier:ct,featured:et,school_name:An,image_url:ot,excellent:bt,is_plan:Ht}=Zt;return ie.createElement("div",{key:on,className:wt&&Kt?b.wrapisCurrent:b.wrap,style:{width:rn,marginRight:(1+Qe)%lt===0?0:Le+Xe,marginBottom:Ce}},ie.createElement("a",{className:b.li,onClick:ht=>{ht.preventDefault(),ht.stopPropagation(),ye&&(0,Fe.L9)([ye]),(0,Fe.xg)(`/paths/${ct}`)}},ie.createElement("div",{className:b.img},ie.createElement("img",{className:b.cover,src:`${ot}`}),wt&&(0,ke.bg)()&&(Zt==null?void 0:Zt.studying)&&ie.createElement("div",{className:`${b.movebq} user-path-items`,onClick:ht=>{ht.stopPropagation(),pt(Zt)}},ie.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),ie.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Oe=Zt==null?void 0:Zt.subject_tags)==null?void 0:Oe.map((ht,Mn)=>{var Ot,Un;if(Mn===0){const kn=(Ot=It.find(qt=>qt.name==ht))==null?void 0:Ot.swimg;return ie.createElement("img",{className:b.sign,src:kn,style:{left:"-4px"}})}const bn=(Un=It.find(kn=>kn.name==ht))==null?void 0:Un.ptimg;return ie.createElement("img",{className:b.sign,src:bn,style:{left:`${48+52*(Mn-1)+2*Mn}px`}})}),ie.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Zt==null?void 0:Zt.excellent)&&ie.createElement("div",{className:b.bq},"\u5F00\u653E\u8BFE\u7A0B"))),ie.createElement("div",{className:b.name},ie.createElement(Be.Z,{title:ut&&(Zt!=null&&Zt.excellent_alias_name)?ie.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${dt}`,ie.createElement("br",null),ie.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Zt==null?void 0:Zt.excellent_alias_name}`)):dt},ie.createElement("span",{className:b.e},ut&&(Zt==null?void 0:Zt.excellent_alias_name)||dt))),wt&&Kt&&((Et=Zt==null?void 0:Zt.progress)==null?void 0:Et.all_score)!=0&&ie.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},ie.createElement(Ie.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Gt=Zt==null?void 0:Zt.progress)==null?void 0:Gt.my_score)/((vt=Zt==null?void 0:Zt.progress)==null?void 0:vt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Dt=Zt==null?void 0:Zt.progress)==null?void 0:Dt.my_score,"/",(Ae=Zt==null?void 0:Zt.progress)==null?void 0:Ae.all_score),(!wt||!Kt)&&ie.createElement("div",{className:b.tags},ie.createElement("div",null,ie.createElement(Be.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},ie.createElement("span",null,ie.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),ie.createElement("span",null,Zt.stages_count))),ie.createElement(Be.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ie.createElement("span",null,ie.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),ie.createElement("span",null,Zt.members_count)))))))})),!Me.length&&ie.createElement(Ye.Z,null)))}},2751:function(_e,xt,oe){"use strict";oe.d(xt,{jL:function(){return be},w9:function(){return ln},dN:function(){return pa},QD:function(){return gn},cQ:function(){return vt.Z},Oz:function(){return kn},op:function(){return He},O5:function(){return Wt},_b:function(){return Qt},t7:function(){return Me},Gi:function(){return aa},YG:function(){return fn},kT:function(){return na},qp:function(){return x},K3:function(){return ne},vr:function(){return zt},qE:function(){return sn},Je:function(){return Ce},wb:function(){return Qe},lB:function(){return Gt},cq:function(){return At},tp:function(){return ge},Si:function(){return Yt},k8:function(){return nr},Du:function(){return Sr}});var b=oe(59301),he={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Be="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX/E68E3qsGbmhK/6Nt40oIFM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Vib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",be=({dataSource:mt=[],img:it,imgWidth:Nt=346,title:dn,sunTitle:ia,bannerExtraContent:La})=>b.createElement("div",{className:he.banner},b.createElement("div",{className:he.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,dn),b.createElement("span",null,ia)),mt.length>0&&b.createElement("div",{className:he.btns},mt.map(($t,Ba)=>b.createElement("div",{key:Ba,onClick:$t.click},$t.name,$t.sign?b.createElement("img",{src:Be,width:39}):null))),La),it&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:it,width:Nt}))),Ge={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},Fe=oe(92310),Ye=oe.n(Fe),ke=oe(89392),De=Object.defineProperty,Te=Object.getOwnPropertySymbols,We=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,le=(mt,it,Nt)=>it in mt?De(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):mt[it]=Nt,E=(mt,it)=>{for(var Nt in it||(it={}))We.call(it,Nt)&&le(mt,Nt,it[Nt]);if(Te)for(var Nt of Te(it))Ve.call(it,Nt)&&le(mt,Nt,it[Nt]);return mt},x=({dataSource:mt=[],value:it,onChange:Nt,onTitleChange:dn,className:ia,title:La,titleWidth:$t=41,style:Ba={},fontColor:Ea="#6A7283",showCount:ar,classNameActive:Ta,styleItem:da={}})=>{const[Qa,vr]=(0,b.useState)(0),[Tr,er]=(0,b.useState)(!1),cr=(0,b.useRef)(null),Cr=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var Tn;mt.length!==0&&(((Tn=cr==null?void 0:cr.current)==null?void 0:Tn.clientHeight)>97?vr(1):vr(0)),mt.length===0&&vr(0),er(!1)},[mt]),b.createElement("div",{className:Ye()(Ge.row,ia),style:Ba},b.createElement("div",{onClick:(0,ke.throttle)(()=>dn==null?void 0:dn(),2e3),style:{width:$t,marginTop:Tr?12:4},className:`${Ge.title} ${dn?"current":""}`},La),b.createElement("div",{className:Tr?`${Ge.tagsWrap} ${Ge.tagsBorderWrap}`:Ge.tagsWrap},b.createElement("div",{className:Ge.bar,ref:Cr,style:Qa>0?{height:Qa===1?97:"auto",overflow:Qa===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:Ge.tag,ref:cr},mt==null?void 0:mt.map(Tn=>b.createElement("span",{onClick:()=>Nt(Tn.id),key:Tn.id,style:E(E({color:Ea},da),(Tn==null?void 0:Tn.style)||{}),className:it===Tn.id?Ye()(Ta||Ge.active,Tn.classNameActive):""},b.createElement("span",{title:Tn.name,className:Ge.name},Tn.name),!!ar&&b.createElement("span",{className:Ge.num},Tn.count))))),!!Qa&&b.createElement(b.Fragment,null,Qa===1?b.createElement("div",{onClick:()=>{var Tn;vr(2),((Tn=cr==null?void 0:cr.current)==null?void 0:Tn.clientHeight)>245?er(!0):er(!1)},className:Ge.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{Cr.current.scrollTop=0,vr(1),er(!1)},className:Ge.action},"\u6536\u8D77",b.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},y={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},ne=({dataSource:mt=[],value:it,onChange:Nt,onTitleChange:dn,className:ia,title:La,titleWidth:$t=41,style:Ba={},fontColor:Ea="#6A7283",showCount:ar,expand:Ta=!0})=>{const[da,Qa]=(0,b.useState)(0),[vr,Tr]=(0,b.useState)(!1),er=(0,b.useRef)(null),cr=(0,b.useRef)(null),[Cr,Tn]=(0,b.useState)(Ta);return b.createElement("div",{className:Ye()(y.row,ia),style:Ba},b.createElement("div",{className:"flex item-center justify-between"},b.createElement("div",{onClick:(0,ke.throttle)(()=>dn==null?void 0:dn(),2e3),style:{width:$t,marginTop:vr?12:4},className:`${y.title} ${dn?"current":""}`},La),b.createElement("i",{className:`iconfont ${Cr?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:Cr?8:10},onClick:()=>Tn(!Cr)})),Cr&&b.createElement("div",{className:vr?`${y.tagsWrap} ${y.tagsBorderWrap}`:y.tagsWrap},b.createElement("div",{className:y.fenge}),b.createElement("div",{className:y.bar,ref:cr},b.createElement("div",{className:y.tag,ref:er},mt==null?void 0:mt.map(an=>b.createElement("span",{onClick:()=>Nt(an.id),key:an.id,style:{color:Ea},className:it===an.id?y.active:""},b.createElement("span",{title:an.name,className:y.name},an.name),!!ar&&b.createElement("span",{className:y.num},an.count)))))))},re={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},ge=({dataSource:mt=[],value:it,onChange:Nt,className:dn,style:ia={}})=>b.createElement("div",{style:ia,className:Ye()(re.tabs,dn)},mt.map(La=>b.createElement("span",{onClick:()=>Nt(La.id),className:it===La.id?re.active:"",key:La.id},La.name))),fe={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Pe=oe(92832),Me=({dataSource:mt=[],value:it="",onChange:Nt,onInputChange:dn=()=>{},className:ia,style:La={},placeholder:$t,allowClear:Ba=!1})=>{var Ea;const[ar,Ta]=(0,b.useState)(""),[da,Qa]=(0,b.useState)("");(0,b.useEffect)(()=>{var er;let cr=it;(er=JSON.stringify(it))!=null&&er.includes("{")&&(Ta(it.id),cr=it.value||"");try{Qa(decodeURIComponent(cr||""))}catch(Cr){Qa(decodeURIComponent(cr||""))}},[it]);const vr=()=>{Nt(encodeURIComponent(da),ar||null)},Tr=er=>{er!==ar&&(Ta(er),Nt(encodeURIComponent(da),er))};return b.createElement("div",{className:Ye()(fe.input,ia),style:La},!!mt.length&&b.createElement("div",{className:fe.dropdown},b.createElement("div",{className:fe.text},(Ea=mt.find(er=>er.id===ar))==null?void 0:Ea.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:fe.b1}),b.createElement("b",{className:fe.b2})),b.createElement("div",{className:fe.menu},mt.map((er,cr)=>b.createElement("div",{key:cr,onClick:()=>Tr(er.id)},er.name)))),b.createElement(Pe.default,{onPressEnter:vr,value:da,onChange:er=>{Qa(er.target.value),dn(encodeURIComponent(er.target.value),ar||null)},bordered:!1,placeholder:$t}),b.createElement("i",{onClick:vr,className:"iconfont icon-sousuo9 font14 pl10 current"}))},lt={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Ce=({value:mt,onChange:it,className:Nt,total:dn,pageSize:ia,style:La={}})=>{const $t=mt<2,Ba=mt>=Math.ceil(dn/ia);return dn<=ia?b.createElement(b.Fragment,null):b.createElement("div",{className:Ye()(lt.quickPager,Nt),style:La},b.createElement("div",{onClick:()=>{$t||it(mt-1,"prev")},className:$t?lt.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{Ba||it(mt+1,"next")},className:Ba?lt.disabled:""},"\u4E0B\u4E00\u9875"))},Xe={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},nt=oe(71418),ye=oe(6848),gt=oe(13570),pt=oe(11662),wt=oe(22566),ut=oe(96908),Kt=oe(57177),rn=oe(81378),It=oe(21692),Qe=({className:mt,dataSource:it=[],col:Nt=4,right:dn,bottom:ia=23,precision:La=0,wrapWidth:$t=1200,trackEventItems:Ba,loading:Ea})=>{const ar=Math.floor(($t-(Nt-1)*dn)/Nt);return b.createElement(nt.Z,{spinning:Ea},b.createElement("div",{className:Ye()(Xe.list,mt)},!!it.length&&it.map((Ta,da)=>{const{name:Qa,id:vr,identifier:Tr,power:er,cover_image_id:cr,pic:Cr}=Ta;return b.createElement("div",{className:Xe.wrap,key:vr,style:{width:ar,marginRight:(1+da)%Nt===0?0:dn+La,marginBottom:ia}},b.createElement("a",{target:"_blank",href:`/shixuns/${Tr}/challenges`,className:Xe.li,onClick:Tn=>{Tn.preventDefault(),Ba&&(0,wt.L9)([Ba]),er&&(0,wt.xg)(`/shixuns/${Tr}/challenges`)}},b.createElement("div",{className:Xe.img},b.createElement("img",{className:Xe.cover,src:`${Cr}`}),Ta.is_jupyter&&b.createElement("img",{className:Xe.sign,src:ut}),Ta.is_jupyter_lab&&b.createElement("img",{className:Xe.sign,src:Kt}),Ta.is_unity_3d&&b.createElement("img",{className:Xe.sign,src:rn})),b.createElement("div",{className:Xe.name},b.createElement(ye.Z,{title:Qa||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:Xe.e},Qa||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{className:Xe.tags},b.createElement(ye.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),b.createElement("span",null,Ta.challenges_count))),!!Ta.myshixuns_count&&b.createElement(ye.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},b.createElement("span",null,b.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),b.createElement("span",null,Ta.myshixuns_count))),b.createElement(ye.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,Ta.level))),b.createElement("div",{className:Xe.rate},b.createElement(gt.Z,{allowHalf:!0,disabled:!0,defaultValue:Ta.score_info}),b.createElement("span",null,"\xA0",Ta.score_info?`${Ta.score_info}\u5206`:"5\u5206")))),!er&&b.createElement("div",{className:Xe.lockWrap},b.createElement("img",{src:`${pt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!it.length&&b.createElement(It.Z,null)))},Oe={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},Gt=({className:mt,dataSource:it=[],col:Nt=4,right:dn,bottom:ia=23,precision:La=0,wrapWidth:$t=1200,wrapClassName:Ba,trackEventItems:Ea,loading:ar})=>{const Ta=Math.floor(($t-(Nt-1)*dn)/Nt);return b.createElement(nt.Z,{spinning:ar},b.createElement("div",{className:Ye()(Oe.list,mt)},!!it.length&&it.map((da,Qa)=>{const{name:vr,id:Tr,identifier:er,power:cr,cover_image_id:Cr,pic:Tn}=da;return b.createElement("div",{className:Ye()(Oe.wrap,Ba),key:Tr,style:{width:Ta,marginRight:(1+Qa)%Nt===0?0:dn+La,marginBottom:ia}},b.createElement("a",{target:"_blank",href:`/shixuns/${er}/challenges`,className:Oe.li,onClick:an=>{an.preventDefault(),Ea&&(0,wt.L9)([Ea]),cr&&(0,wt.xg)(`/shixuns/${er}/challenges`)}},b.createElement("img",{src:oe(47621),className:Oe.titleBg}),b.createElement("div",{className:Oe.name},b.createElement(ye.Z,{title:vr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:Oe.e},vr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),b.createElement("div",{style:{padding:"14px",paddingBottom:0}},b.createElement("div",{className:Oe.img},b.createElement("img",{className:Oe.cover,src:Cr?`${pt.Z.API_SERVER}/api/attachments/${Cr}`:`${pt.Z.IMG_SERVER+Tn}`}),da.is_jupyter&&b.createElement("div",{className:Oe.bq},"Jupyter"),da.is_jupyter_lab&&b.createElement("div",{className:Oe.bq},"JupyterLab"),da.is_unity_3d&&b.createElement("div",{className:Oe.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),b.createElement("div",{className:"mt20 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:Oe.text},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:Oe.value},da.myshixuns_count)),b.createElement("div",null,b.createElement("span",{className:Oe.text},"\u56F0\u96BE\u7B49\u7EA7"),b.createElement("span",{className:Oe.value},da.level))),b.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:Oe.text},"\u5173\u5361\u6570"),b.createElement("span",{className:Oe.value},da.challenges_count)),b.createElement("div",{className:Oe.rate},b.createElement(gt.Z,{allowHalf:!0,disabled:!0,defaultValue:da.score_info}),b.createElement("span",{className:Oe.value,style:{color:"#FF9C00"}},"\xA0",da.score_info?`${da.score_info}\u5206`:"5\u5206"))))),!cr&&b.createElement("div",{className:Oe.lockWrap},b.createElement("img",{src:`${pt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!it.length&&b.createElement(It.Z,null)))},vt=oe(23734),Dt={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},Ae=oe(79005),dt=oe(20345),on=oe(77882),ct=oe(31081),et=oe(75309),An=oe(71979),ot=oe(47558),bt=oe(42922),Ht=oe(66832),ht=oe(96593),Mn=oe(19664),Ot=oe(91833);const Un=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ae,swimg:dt},{name:"101\u8BA1\u5212",ptimg:on,swimg:ct},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:et,swimg:An},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:ot,swimg:bt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:Ht,swimg:ht},{name:"\u519B\u961F\u4E00\u6D41",ptimg:Mn,swimg:Ot}];var kn=({className:mt,dataSource:it=[],col:Nt=4,right:dn,bottom:ia=23,precision:La=0,wrapWidth:$t=1200,trackEventItems:Ba,loading:Ea,wrapClassName:ar,imgClassName:Ta,isArrow:da=!1})=>{const Qa=Math.floor(($t-(Nt-1)*dn)/Nt),[vr,Tr]=(0,b.useState)(),[er,cr]=(0,b.useState)(),Cr=an=>Tr(an),Tn=()=>Tr(-1);return b.createElement(nt.Z,{spinning:Ea},b.createElement("div",{className:Ye()(Dt.list,mt)},!!(it!=null&&it.length)&&(it==null?void 0:it.map((an,Lt)=>{var de;const{name:$e,id:st,identifier:jt,featured:at,school_name:tn,image_url:Jt,excellent:Ut,is_plan:Xt}=an;return b.createElement("div",{key:st,className:Ye()(Dt.wrap,ar),style:{width:Qa,marginRight:(1+Lt)%Nt===0?0:dn+La,marginBottom:ia}},b.createElement("a",{target:"_blank",href:`/paths/${jt}`,className:Dt.li,onClick:ra=>{ra.preventDefault(),Ba&&(0,wt.L9)([Ba]),(0,wt.xg)(`/paths/${jt}`)}},b.createElement("img",{src:oe(39057),className:Dt.titleBg}),b.createElement("div",{className:Dt.name},b.createElement(ye.Z,{title:$e},b.createElement("span",{className:Dt.e,style:{color:da&&vr===Lt?"#145DFF":"#000000"},onMouseEnter:()=>{Cr(Lt)},onMouseLeave:Tn},$e))),b.createElement("div",{style:{padding:"14px",paddingBottom:0}},b.createElement("div",{className:Ye()(Dt.img,Ta)},b.createElement("img",{className:Dt.cover,src:`${pt.Z.IMG_SERVER+Jt}`}),(de=an==null?void 0:an.subject_tags)==null?void 0:de.map((ra,Ha)=>{var Za,mn;if(Ha===0){const Ca=(Za=Un.find(Ga=>Ga.name==ra))==null?void 0:Za.swimg;return b.createElement("img",{className:Dt.sign,src:Ca,style:{left:"-4px"}})}const Ia=(mn=Un.find(Ca=>Ca.name==ra))==null?void 0:mn.ptimg;return b.createElement("img",{className:Dt.sign,src:Ia,style:{left:`${48+52*(Ha-1)+2*Ha}px`}})}),b.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(an==null?void 0:an.excellent)&&b.createElement("div",{className:Dt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),b.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:Dt.text},"\u7AE0\u8282\u6570"),b.createElement("span",{className:Dt.value},an.stages_count)),b.createElement("div",null,b.createElement("span",{className:Dt.text},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:Dt.value},an.members_count))))))})),!it.length&&b.createElement(It.Z,null)))},qt={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ma="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUe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YuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",zn=oe(59301),ln=({className:mt,dataSource:it=[],col:Nt=4,right:dn,bottom:ia=23,precision:La=0,wrapWidth:$t=1200,trackEventItems:Ba,loading:Ea})=>{const ar=Math.floor(($t-(Nt-1)*dn)/Nt);return zn.createElement(nt.Z,{spinning:Ea},zn.createElement("div",{className:Ye()(qt.list,mt)},!!it.length&&it.map((Ta,da)=>{const{subject_identifier:Qa,id:vr,identifier:Tr,power:er}=Ta,cr=Ta.is_public!=0&&Ta.is_public;return zn.createElement("div",{className:qt.wrap,key:vr,style:{width:ar,marginRight:(1+da)%Nt===0?0:dn+La,marginBottom:ia}},zn.createElement("a",{className:qt.li,onClick:Cr=>{Cr.preventDefault(),Ba&&(0,wt.L9)([Ba]),(0,wt.xg)(Ta.first_category_url)}},zn.createElement("div",{className:qt.top},zn.createElement(ye.Z,{title:Ta.name},zn.createElement("div",{className:qt.name},Ta.name)),zn.createElement("img",{className:qt.img,src:pt.Z.IMG_SERVER+"/images/"+Ta.avatar_url}),zn.createElement("div",{className:qt.text,title:Ta.creator},Ta.creator),Qa&&zn.createElement("div",{className:qt.btns},zn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),zn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),cr&&zn.createElement("div",{className:qt.sign},"\u516C\u5F00")),zn.createElement("div",{className:qt.bottom},Ta.visits>0&&zn.createElement(ye.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},zn.createElement("span",null,zn.createElement("i",{className:"iconfont icon-liulanyan"}),zn.createElement("span",null,Ta.visits))),Ta.course_members_count>0&&zn.createElement(ye.Z,{title:"\u6210\u5458",placement:"bottom"},zn.createElement("span",null,zn.createElement("i",{className:"iconfont icon-chengyuan"}),Ta.course_members_count)),Ta.tasks_count>0&&zn.createElement(ye.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},zn.createElement("span",null,zn.createElement("i",{className:"iconfont icon-zuoye"}),Ta.tasks_count)),Ta.is_end?zn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):zn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Ta.is_accessible&&zn.createElement("div",{className:qt.lockWrap},zn.createElement("img",{src:`${pt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),zn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!it.length&&zn.createElement(It.Z,null)))},cn={flex_box_center:"flex_box_center___PuarE",flex_space_between:"flex_space_between___q4lAa",flex_box_vertical_center:"flex_box_vertical_center___wsb8w",flex_box_center_end:"flex_box_center_end___H781P",flex_box_column:"flex_box_column___bHK1y",list:"list___e2XDo",wrap:"wrap___cz7sh",lockWrap:"lockWrap___EPuRr",creator:"creator___Y6Xjp",img:"img___kSEud",text:"text___GIlhY",top:"top___K4GCD",sign:"sign___KCjEP",name:"name___z3U4d",middle:"middle___LeUM5",row:"row___VBzfJ",value:"value___qigWu",btns:"btns___kGysm",bottom:"bottom___yPYd5",warpStyle:"warpStyle___pH3uC"},pn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1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7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",pa=({className:mt,dataSource:it=[],col:Nt=4,right:dn,bottom:ia=23,precision:La=0,wrapWidth:$t=1200,wrapClassName:Ba,trackEventItems:Ea,loading:ar})=>{const Ta=Math.floor(($t-(Nt-1)*dn)/Nt);return b.createElement(nt.Z,{spinning:ar},b.createElement("div",{className:Ye()(cn.list,mt)},!!it.length&&it.map((da,Qa)=>{const{subject_identifier:vr,id:Tr,identifier:er,power:cr}=da,Cr=da.is_public!=0&&da.is_public;return b.createElement("div",{className:Ye()(`${cn.wrap} ${da.is_accessible?"":cn.warpStyle}`,Ba),key:Tr,style:{width:Ta,marginRight:(1+Qa)%Nt===0?0:dn+La,marginBottom:ia}},b.createElement("a",{className:cn.li,onClick:Tn=>{Tn.preventDefault(),Ea&&(0,wt.L9)([Ea]),(0,wt.xg)(da.first_category_url)}},b.createElement("div",{className:cn.creator},b.createElement("img",{className:cn.img,src:pt.Z.IMG_SERVER+"/images/"+da.avatar_url}),b.createElement("div",{className:cn.text,title:da.creator},da.creator)),b.createElement("div",{className:cn.top},b.createElement(ye.Z,{title:da.name},b.createElement("div",{className:cn.name},da.name)),Cr&&b.createElement("div",{className:cn.sign},"\u516C\u5F00")),b.createElement("div",{className:cn.middle},b.createElement("div",{className:cn.row,style:{marginBottom:6}},b.createElement("div",null,b.createElement("span",{className:cn.text},"\u8BBF\u95EE\u91CF"),b.createElement("span",{className:cn.value},(da==null?void 0:da.visits)||0)),b.createElement("div",null,b.createElement("span",{className:cn.text},"\u6210\u5458"),b.createElement("span",{className:cn.value},(da==null?void 0:da.course_members_count)||0))),b.createElement("div",{className:cn.row},b.createElement("div",null,b.createElement("span",{className:cn.text,style:{width:42}},"\u4F5C",b.createElement("span",{style:{marginLeft:14}},"\u4E1A")),b.createElement("span",{className:cn.value},(da==null?void 0:da.tasks_count)||0)),b.createElement("div",null,b.createElement("span",{className:cn.text},"\u72B6\u6001"),da.is_end?b.createElement("span",{className:cn.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):b.createElement("span",{className:cn.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),vr&&b.createElement("div",{className:cn.btns},b.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),b.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!da.is_accessible&&b.createElement("div",{className:cn.lockWrap},b.createElement("img",{src:`${pt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),b.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!it.length&&b.createElement(It.Z,null)))},wa={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},_t=oe(90115),fn=({dataSource:mt=[],value:it,onChange:Nt,className:dn,style:ia={},tabBarExtraContent:La})=>b.createElement("div",{className:Ye()(wa.tabs,dn),style:ia},b.createElement("div",{className:wa.tabsWrap},mt.map(($t,Ba)=>b.createElement("aside",{className:wa.tab,onClick:()=>{Nt($t.id),$t.link&&_t.history.push($t.link)},key:Ba},b.createElement("div",{className:it===$t.id?wa.active:""},$t.name),($t==null?void 0:$t.resetCount)==null&&($t==null?void 0:$t.total)!==void 0&&b.createElement("span",null,"\uFF08",$t==null?void 0:$t.total,"\uFF09"),($t==null?void 0:$t.resetCount)!==void 0&&($t==null?void 0:$t.total)!==void 0&&b.createElement(ye.Z,{title:($t==null?void 0:$t.tip)!=null?$t==null?void 0:$t.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},$t==null?void 0:$t.resetCount),"/",b.createElement("span",null,$t==null?void 0:$t.total),"\uFF09"))))),b.createElement("div",{className:wa.tabBar},La)),Fn={flex_box_center:"flex_box_center___itkVp",flex_space_between:"flex_space_between___F4yZx",flex_box_vertical_center:"flex_box_vertical_center___ko4cu",flex_box_center_end:"flex_box_center_end___cCBYR",flex_box_column:"flex_box_column___Mpq6K",tabs:"tabs___qRAhL",tabsWrap:"tabsWrap___CGRvS",tab:"tab___eYne_",active:"active___swSx6"},na=({dataSource:mt=[],value:it,onChange:Nt,className:dn,style:ia={},tabBarExtraContent:La})=>b.createElement("div",{className:Ye()(Fn.tabs,dn),style:ia},b.createElement("div",{className:Fn.tabsWrap},mt.map(($t,Ba)=>b.createElement("aside",{className:Fn.tab,onClick:()=>{Nt($t.id),$t.link&&_t.history.push($t.link)},key:Ba},b.createElement("div",{className:it===$t.id?Fn.active:""},$t.name),($t==null?void 0:$t.resetCount)==null&&($t==null?void 0:$t.total)!==void 0&&b.createElement("span",null,"\uFF08",$t==null?void 0:$t.total,"\uFF09"),($t==null?void 0:$t.resetCount)!==void 0&&($t==null?void 0:$t.total)!==void 0&&b.createElement(ye.Z,{title:($t==null?void 0:$t.tip)!=null?$t==null?void 0:$t.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},$t==null?void 0:$t.resetCount),"/",b.createElement("span",null,$t==null?void 0:$t.total),"\uFF09"))))),b.createElement("div",{className:Fn.tabBar},La)),aa=({className:mt,style:it={},children:Nt})=>b.createElement("div",{className:Ye()(mt),style:it},Nt),Wn={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Ya=oe(38854),Ma=oe(20834);const Ja=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var At=({sortValue:mt,dropValue:it,className:Nt,onSort:dn,onDrop:ia,dataSource:La=Ja})=>{var $t;return b.createElement("div",{className:Ye()(Wn.orderWrap,Nt)},b.createElement(Ya.Z,{dropdownRender:()=>b.createElement(Ma.default,null,La.map((Ba,Ea)=>b.createElement(Ma.default.Item,{key:Ea,onClick:()=>ia(Ba.id)},Ba.name)))},b.createElement("span",{className:Wn.orderTextWrap},($t=La.find(Ba=>it===Ba.id))==null?void 0:$t.name)),b.createElement("span",{className:Wn.orderIconWrap},b.createElement("span",{className:Wn.orderAsc},b.createElement("i",{className:mt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Wn.cursorPointer} ${Wn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Wn.cursorPointer}`,onClick:()=>dn(mt==="asc"?"desc":"asc")})),b.createElement("span",{className:Wn.orderDesc},b.createElement("i",{className:mt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Wn.cursorPointer} ${Wn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Wn.cursorPointer}`,onClick:()=>dn(mt==="asc"?"desc":"asc")}))))},In={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v",ThemeOne:"ThemeOne___iCQio"},Rn=oe(3113),wn=oe(39587),xe=Object.defineProperty,ft=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable,Rt=(mt,it,Nt)=>it in mt?xe(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):mt[it]=Nt,yt=(mt,it)=>{for(var Nt in it||(it={}))Bt.call(it,Nt)&&Rt(mt,Nt,it[Nt]);if(ft)for(var Nt of ft(it))Vt.call(it,Nt)&&Rt(mt,Nt,it[Nt]);return mt},hn=(mt,it)=>{var Nt={};for(var dn in mt)Bt.call(mt,dn)&&it.indexOf(dn)<0&&(Nt[dn]=mt[dn]);if(mt!=null&&ft)for(var dn of ft(mt))it.indexOf(dn)<0&&Vt.call(mt,dn)&&(Nt[dn]=mt[dn]);return Nt},je=(mt,it,Nt)=>new Promise((dn,ia)=>{var La=Ea=>{try{Ba(Nt.next(Ea))}catch(ar){ia(ar)}},$t=Ea=>{try{Ba(Nt.throw(Ea))}catch(ar){ia(ar)}},Ba=Ea=>Ea.done?dn(Ea.value):Promise.resolve(Ea.value).then(La,$t);Ba((Nt=Nt.apply(mt,it)).next())}),He=mt=>{var it=mt,{className:Nt,style:dn,children:ia,loading:La=!1,openLoading:$t,onClick:Ba=()=>{},size:Ea="middle",shape:ar="round",theme:Ta}=it,da=hn(it,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[Qa,vr]=(0,b.useState)(!1),Tr=(0,b.useMemo)(()=>{switch(Ta){case wn.Fy.THEMEONE:return In.ThemeOne;case wn.Fy.DEFAULT:default:return In.btn}},[Ta]);return b.createElement(Rn.ZP,yt({onClick:(0,ke.throttle)(er=>je(void 0,null,function*(){$t&&vr(!0);try{yield Ba(er)}catch(cr){console.log("error",cr)}$t&&vr(!1)}),2e3,{leading:!0,trailing:!1}),className:Ye()(Tr,In[`${Ea}-${ar}`],Nt),style:dn,size:Ea,shape:ar,loading:Qa||La},da),ia)},Mt={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},sn=({className:mt,style:it,children:Nt=null,onClick:dn,title:ia})=>b.createElement("div",{className:Ye()(Mt.head,mt),style:it},b.createElement("span",{className:"primary-hover",onClick:dn},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:ia},ia),b.createElement("div",{className:Mt.node},Nt)),Xn={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},gn=({confirmShow:mt=!0,confirmTitle:it,confirmClick:Nt,cancelShow:dn=!0,cancelTitle:ia,cancelClick:La,className:$t,style:Ba,confirmLoading:Ea=!1})=>b.createElement("div",{className:Ye()(Xn.btns,$t),style:Ba},mt&&b.createElement(Rn.ZP,{loading:Ea,onClick:Nt,type:"primary",className:Xn.confirm},it),dn&&b.createElement(Rn.ZP,{onClick:La,className:Xn.cancel},ia)),Yn={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},zt=({className:mt,style:it={},LeftContent:Nt,children:dn,RightContent:ia})=>b.createElement("div",{className:Ye()(Yn.fixedBottom,mt),style:it},b.createElement("div",{className:Yn.wrap},b.createElement("div",{className:Yn.left},Nt),b.createElement("div",{className:Yn.center},dn),b.createElement("div",{className:Yn.right},ia))),qn={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Qt=({className:mt,style:it={},dataSource:Nt=[]})=>b.createElement("div",{className:Ye()(qn.crumbs,mt),style:it},Nt.map((dn,ia)=>ia_t.history.push(dn.path)},dn.name):b.createElement("span",null,dn.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:ia,style:{color:"#5F6368"}},dn.name))),Cn=oe(31797),tt=Object.defineProperty,Jn=Object.defineProperties,Nn=Object.getOwnPropertyDescriptors,sa=Object.getOwnPropertySymbols,Zn=Object.prototype.hasOwnProperty,za=Object.prototype.propertyIsEnumerable,la=(mt,it,Nt)=>it in mt?tt(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):mt[it]=Nt,_a=(mt,it)=>{for(var Nt in it||(it={}))Zn.call(it,Nt)&&la(mt,Nt,it[Nt]);if(sa)for(var Nt of sa(it))za.call(it,Nt)&&la(mt,Nt,it[Nt]);return mt},$a=(mt,it)=>Jn(mt,Nn(it)),sr=(mt,it)=>{var Nt={};for(var dn in mt)Zn.call(mt,dn)&&it.indexOf(dn)<0&&(Nt[dn]=mt[dn]);if(mt!=null&&sa)for(var dn of sa(mt))it.indexOf(dn)<0&&za.call(mt,dn)&&(Nt[dn]=mt[dn]);return Nt};const{Countdown:Tt}=Cn.default;var Wt=mt=>{var it=mt,{onChange:Nt}=it,dn=sr(it,["onChange"]);const[ia,La]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof ia=="number"&&ia>=0&&Nt(ia)},[ia]);const $t=Ba=>{const Ea=Math.floor(Ba/1e3);La(Ea)};return b.createElement(Tt,$a(_a({},dn),{onChange:$t}))},xa={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},Yt=({DataProps:mt,className:it,style:Nt={}})=>{var dn;return b.createElement("div",{className:Ye()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",xa.ClassRoomItem,it),style:Nt,onClick:()=>{(0,wt.xg)(mt==null?void 0:mt.first_category_url)}},b.createElement("div",{className:"flex flex-col item-center"},b.createElement("img",{src:`${(dn=pt.Z)==null?void 0:dn.IMG_SERVER}/images/${mt==null?void 0:mt.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(mt==null?void 0:mt.subject_identifier)&&b.createElement("div",{className:"mt-40px"},b.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),b.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),b.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},b.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(mt!=null&&mt.is_public)&&b.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),b.createElement("span",{className:Ye()("text-16px font-medium",xa.TitleDom)},mt==null?void 0:mt.name)),b.createElement("div",{className:"c-grey-333 font-medium"},mt==null?void 0:mt.creator),b.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",mt==null?void 0:mt.course_members_count),b.createElement("div",{className:"c-grey-333 flex item-center justify-between"},b.createElement("div",null,"\u4F5C\u4E1A\uFF1A",mt==null?void 0:mt.tasks_count),mt!=null&&mt.is_end?b.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):b.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},xn=Object.defineProperty,ea=Object.getOwnPropertySymbols,Pn=Object.prototype.hasOwnProperty,Ra=Object.prototype.propertyIsEnumerable,ha=(mt,it,Nt)=>it in mt?xn(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):mt[it]=Nt,Va=(mt,it)=>{for(var Nt in it||(it={}))Pn.call(it,Nt)&&ha(mt,Nt,it[Nt]);if(ea)for(var Nt of ea(it))Ra.call(it,Nt)&&ha(mt,Nt,it[Nt]);return mt},Sr=({DataProps:mt=[],selectValue:it,onChange:Nt,className:dn,style:ia={},extra:La,classNameItem:$t,styleItem:Ba={},barHidden:Ea})=>{const[ar,Ta]=(0,b.useState)();return(0,b.useEffect)(()=>{Ta(Array.isArray(it)?it:[it])},[it]),b.createElement("div",{className:Ye()("flex px-20px py-10px gap-40px",dn),style:Va({borderBottom:"1px solid #D3F0FF"},ia)},mt==null?void 0:mt.map(da=>b.createElement("div",{key:da==null?void 0:da.id,className:Ye()("flex item-center justify-center current c-grey-333 text-16 relative",$t,da==null?void 0:da.className),style:Va(Va({color:ar!=null&&ar.includes(da==null?void 0:da.id)?"#1890FF":"",minWidth:88},Ba),(da==null?void 0:da.style)||{}),onClick:Qa=>{Nt==null||Nt({domEvent:Qa,item:da}),da!=null&&da.link&&_t.history.push(da==null?void 0:da.link)}},da==null?void 0:da.name,!Ea&&(ar==null?void 0:ar.includes(da==null?void 0:da.id))&&b.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),b.createElement("div",{className:"ml-auto"},La))},Nr=Object.defineProperty,pr=Object.defineProperties,Yr=Object.getOwnPropertyDescriptors,Xa=Object.getOwnPropertySymbols,qa=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable,fa=(mt,it,Nt)=>it in mt?Nr(mt,it,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):mt[it]=Nt,or=(mt,it)=>{for(var Nt in it||(it={}))qa.call(it,Nt)&&fa(mt,Nt,it[Nt]);if(Xa)for(var Nt of Xa(it))fr.call(it,Nt)&&fa(mt,Nt,it[Nt]);return mt},dr=(mt,it)=>pr(mt,Yr(it)),nr=({value:mt,onChange:it,onInputChange:Nt,className:dn,style:ia={},InputProps:La})=>{const[$t,Ba]=(0,b.useState)(mt);return b.createElement("div",{className:Ye()("flex item-center rounded-full px-10px py-2px",dn),style:or({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},ia)},b.createElement(Pe.default,dr(or({bordered:!1},La),{onChange:Ea=>{Ba(Ea.target.value),Nt==null||Nt(encodeURIComponent(Ea.target.value))},onPressEnter:Ea=>{it==null||it({domEvent:Ea,item:{value:$t}})}})),b.createElement("img",{className:"h-22px current",src:oe(25365),height:22,onClick:Ea=>{it==null||it({domEvent:Ea,item:{value:$t}})}}))}},29152:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return he}});var b=oe(59301);function he(Be,Ie){const be=(0,b.useRef)();(0,b.useEffect)(()=>{be.current=Be}),(0,b.useEffect)(()=>{function Ge(){be.current()}if(Ie!==null){let Fe=setInterval(Ge,Ie);return()=>clearInterval(Fe)}},[Ie])}},13778:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return E}});var b=oe(59301),he=oe(8591),Be=oe(43418),Ie=oe(19842),be=oe(54580),Ge=oe(3113),Fe=oe(11662),Ye=oe(22566),ke=oe(64866),De=oe(90115),Te={customModal:"customModal___bVzUV",content:"content___oKhZq",upload:"upload___nPxEL",infoText:"infoText___gZEJF",okBtn:"okBtn___CVo2A",fileList:"fileList___tauGN",fileName:"fileName___T_8JX",selectitems:"selectitems___imW2Y"},We=oe(59301),Ve=(a,x,y)=>new Promise((z,ne)=>{var re=fe=>{try{ge(y.next(fe))}catch(Pe){ne(Pe)}},ie=fe=>{try{ge(y.throw(fe))}catch(Pe){ne(Pe)}},ge=fe=>fe.done?z(fe.value):Promise.resolve(fe.value).then(re,ie);ge((y=y.apply(a,x)).next())}),E=({visible:a,onOk:x,onCancel:y,sub_discipline_id:z=[]})=>{const[ne,re]=(0,b.useState)([]),[ie,ge]=(0,b.useState)(!1),fe=(0,De.useParams)(),[Pe,Ue]=(0,b.useState)([]),[Me,lt]=(0,b.useState)([]);(0,b.useEffect)(()=>{a?Le():(lt([]),re([]),ge(!1))},[a]);const Le=()=>Ve(void 0,null,function*(){const pt=yield(0,ke.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});Ue(pt.disciplines||[]),lt((z==null?void 0:z.length)>0?z:[])}),Ce=()=>{if((Me==null?void 0:Me.length)===0)return he.ZP.warning("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF01");console.log("subDisciplineId",Me),ge(!0),x(ne,Me[1],()=>{ge(!1)})},Xe=()=>{y()},nt=()=>{const pt=`${Fe.Z.API_SERVER}/api/courses/${fe.coursesId}/exercises/down_template`;(0,Ye.Nd)(null,pt)},ye=pt=>{const wt={name:pt.name,uid:pt.uid,file:pt};return re([wt]),!1},gt=()=>{re([])};return We.createElement(Be.default,{title:"\u5BFC\u5165\u8BD5\u9898",open:a,onOk:Ce,centered:!0,wrapClassName:Te.customModal,onCancel:Xe,width:663,okText:"\u786E\u8BA4",okButtonProps:{className:Te.okBtn},cancelText:"\u53D6\u6D88",confirmLoading:ie},We.createElement("div",{className:Te.content},We.createElement("aside",null,We.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA41"),We.createElement("ul",null,We.createElement("li",null,We.createElement("span",{style:{color:"#5F6367"}},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),We.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginLeft:20},onClick:nt},"\u4E0B\u8F7D\u8003\u8BD5\u8BD5\u9898\u6A21\u677F"),We.createElement("i",{className:"iconfont icon-xiazai4 ml10",onClick:nt,style:{fontSize:14,cursor:"pointer",color:"#0152d9"}})),We.createElement("li",{style:{color:"#FA6400"},className:"mt10"},"\u63D0\u793A"),We.createElement("li",{className:Te.infoText},"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B "),We.createElement("li",{className:Te.infoText},"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),We.createElement("li",{className:Te.infoText},"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),We.createElement("li",{className:Te.infoText},"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))),We.createElement("aside",{style:{marginTop:22}},We.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA42"),We.createElement("ul",{style:{flex:1}},We.createElement("li",{style:{color:"#5F6367"}},"\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF0C\u4E0A\u4F20\u7F16\u8F91\u597D\u7684\u8BD5\u9898\u6587\u6863\uFF0C\u786E\u5B9A\u5BFC\u5165"),a&&We.createElement(We.Fragment,null,We.createElement(Ie.Z,{value:Me,className:Te.selectitems,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Pe,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(pt,wt)=>{lt(pt||[])}}),We.createElement("br",null),We.createElement(be.default,{action:`${Fe.Z.API_SERVER}/api/attachments.json`,beforeUpload:ye,onRemove:gt,withCredentials:!0,fileList:ne,accept:".xls,.xlsx",showUploadList:!1},We.createElement(Ge.ZP,{className:Te.upload,type:"primary",icon:We.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6"))),ne.map((pt,wt)=>We.createElement("div",{key:wt,className:Te.fileList},We.createElement("span",{className:Te.fileName},pt==null?void 0:pt.name),We.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:16,cursor:"pointer"},onClick:gt})))))))}},48326:function(_e,xt,oe){"use strict";oe.d(xt,{h:function(){return b}});var b=(he=>(he[he.NOMATCH=-1]="NOMATCH",he[he.OK=0]="OK",he[he.TIMEOUT=2]="TIMEOUT",he[he.PODFAILURE=3]="PODFAILURE",he[he.COMPILEFAILURE=4]="COMPILEFAILURE",he[he.EXECUTEFAILURE=5]="EXECUTEFAILURE",he[he.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",he))(b||{})},25537:function(_e,xt,oe){"use strict";oe.d(xt,{H7:function(){return E},MK:function(){return le},MU:function(){return De},X6:function(){return We},bM:function(){return ke},fi:function(){return a},fu:function(){return Ye},n4:function(){return x},rX:function(){return Ve},vl:function(){return y},zO:function(){return Te}});var b=oe(64866),he=Object.defineProperty,Be=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,Ge=(z,ne,re)=>ne in z?he(z,ne,{enumerable:!0,configurable:!0,writable:!0,value:re}):z[ne]=re,Fe=(z,ne)=>{for(var re in ne||(ne={}))Ie.call(ne,re)&&Ge(z,re,ne[re]);if(Be)for(var re of Be(ne))be.call(ne,re)&&Ge(z,re,ne[re]);return z};function Ye(z,ne){return(0,b.U2)(`myproblems/${z}.json`,Fe({hidePopLogin:!0},ne||{}))}function ke(z,ne){return(0,b.v_)(`myproblems/${z}/code_submit.json`,ne)}function De(z,ne){return(0,b.v_)(`myproblems/${z}/code_debug.json`,ne)}function Te(z,ne){return ne.language&&(ne.language=encodeURIComponent(ne.language)),(0,b.U2)(`myproblems/${z}/submit_records.json`,ne)}function We(z){return(0,b.U2)("myproblems/record_detail.json",{id:z})}function Ve(z,ne){return(0,b.U2)(`myproblems/${z}/result.json`,{mode:ne})}function le(z,ne){return(0,b.v_)(`myproblems/${z}/add_notes.json`,ne)}function E(z,ne){return(0,b.v_)(`myproblems/${z}/restore_initial_code.json`,ne)}function a(z){return(0,b.v_)(`myproblems/${z}/sync_code.json`)}function x(z,ne){return(0,b.v_)(`myproblems/${z}/update_code.json`,ne)}function y(z,ne){return(0,b.v_)(`discusses/${z}/plus.json`,ne)}},94287:function(_e,xt,oe){"use strict";var b=oe(59301),he=oe(6848),Be=oe(92832),Ie=oe(8591),be=oe(97663),Ge=oe(59301),Fe=(ke,De,Te)=>new Promise((We,Ve)=>{var le=x=>{try{a(Te.next(x))}catch(y){Ve(y)}},E=x=>{try{a(Te.throw(x))}catch(y){Ve(y)}},a=x=>x.done?We(x.value):Promise.resolve(x.value).then(le,E);a((Te=Te.apply(ke,De)).next())});const Ye=({defaultValue:ke,onFinish:De})=>{const[Te,We]=(0,b.useState)(!1),[Ve,le]=(0,b.useState)(ke);return(0,b.useEffect)(()=>{le(ke)},[ke]),Ge.createElement("div",null,Te?Ge.createElement(Be.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:Ve,onChange:E=>{le(E.target.value)},onBlur:()=>Fe(void 0,null,function*(){var E;if(((E=Ve==null?void 0:Ve.replaceAll(" ",""))==null?void 0:E.length)<=0){Ie.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield De(Ve))&&We(!1)}),onPressEnter:()=>Fe(void 0,null,function*(){var E;if(((E=Ve==null?void 0:Ve.replaceAll(" ",""))==null?void 0:E.length)<=0){Ie.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield De(Ve))&&We(!1)})}):Ge.createElement("div",{className:be.Z.title},Ve,Ge.createElement(he.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},Ge.createElement("i",{className:`${be.Z.editIcon} iconfont icon-bianji_Hover`,onClick:()=>We(!0)}))))};xt.Z=Ye},16206:function(_e,xt,oe){"use strict";oe.r(xt),oe.d(xt,{default:function(){return Ri},useCourseOptions:function(){return Oi}});var b=oe(59301),he=oe(90115),Be=oe(78241),Ie=oe(66104),be=oe(8591),Ge=oe(71418),Fe=oe(92832),Ye=oe(19842),ke=oe(24905),De=oe(5112),Te=oe(5871),We=oe(3113),Ve=oe(97663),le=oe(3928),E=oe(70646),a=oe(47451),x=oe(43418),y=oe(20834),z=oe(38854),ne=oe(6848),re=oe(43428),ie={flex_box_center:"flex_box_center___gi93l",flex_space_between:"flex_space_between___mWMLA",flex_box_vertical_center:"flex_box_vertical_center___rk4nc",flex_box_center_end:"flex_box_center_end___B8XxF",flex_box_column:"flex_box_column___AX3Vm",moreSpan:"moreSpan___hbStq",bg:"bg___Ya739",title:"title___BC46y",bottomdiv:"bottomdiv___uaPr6",spanBtn:"spanBtn___jjgnA",addQuestionBtn:"addQuestionBtn___qOlYW",saveBtn:"saveBtn___ulgem",left:"left___i8aTX",leftAction:"leftAction___sQkuq",Button:"Button___auxWm",iconWrapper:"iconWrapper___h3H1m",up:"up___tLyCX",down:"down___T5_aj",disabled:"disabled___GRBbF",titleleft:"titleleft___xZGbq",more_style:"more_style___nhWCX",qcount:"qcount___ID7OA",score:"score___T7dbm",qtitle:"qtitle___qJBFd",qcountclick:"qcountclick___m_VKG",right:"right___CBabI",edit:"edit___WHuql",delete:"delete___Pa6db",shixun:"shixun___oObBe",scoreByBlankRadio:"scoreByBlankRadio___r4AWn",modalconfirm:"modalconfirm___Ru9B_",scoremodal:"scoremodal___BdW7P",close:"close___blHYk",content:"content___jlm9o",items:"items___i3TrH",bottom:"bottom___zMQZ6",yes:"yes___lOPY6",no:"no___gtzKI",formcenter:"formcenter___fCxkm",radiogroup:"radiogroup___oXWHc",easy:"easy___ANNVD",medium:"medium___ov7N3",hard:"hard___n4afW",formcenterselect:"formcenterselect___lYa4f",selectitems1:"selectitems1___Y2Zy4",selectitems:"selectitems___c9Pt5",morebottom:"morebottom____I_ev",scoreinput:"scoreinput___O8EhL",shake:"shake___QxkjH",titleTooltip:"titleTooltip___CAyYg",exercise_styles:"exercise_styles___u40hG"},ge=oe(22566),fe=oe(64866),Pe=oe(21692),Ue=oe(9683),Me=oe(11414),lt=oe(8658),Le=oe(59301),Ce=Object.defineProperty,Xe=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,wt=(se,Se,Ee)=>Se in se?Ce(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,ut=(se,Se)=>{for(var Ee in Se||(Se={}))gt.call(Se,Ee)&&wt(se,Ee,Se[Ee]);if(ye)for(var Ee of ye(Se))pt.call(Se,Ee)&&wt(se,Ee,Se[Ee]);return se},Kt=(se,Se)=>Xe(se,nt(Se)),rn=(se,Se,Ee)=>new Promise((rt,yn)=>{var _n=Ct=>{try{En(Ee.next(Ct))}catch(kt){yn(kt)}},oa=Ct=>{try{En(Ee.throw(Ct))}catch(kt){yn(kt)}},En=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(_n,oa);En((Ee=Ee.apply(se,Se)).next())}),Zt=({Itemid:se,setqitem:Se,qitem:Ee,data:rt,getdata:yn,bigitem:_n,setBigqitem:oa,isedit:En,handleEditing:Ct})=>{const[kt,Dn]=(0,b.useState)([]),[Ft,en]=(0,b.useState)(!1);(0,b.useEffect)(()=>{rt.length>0&&Dn([...rt])},[rt]);const $n=(ga,Bn)=>rn(void 0,null,function*(){if(En){Ct();return}if(!ga.destination)return;en(!0);let ca=yield(0,fe.ZP)(`/api/examination_banks/${se}/examination_banks_item_banks/${Bn==null?void 0:Bn[ga.source.index].question_id}/adjust_position.json`,{method:"post",body:{id:se,itemid:Bn==null?void 0:Bn[ga.source.index].question_id,position:ga.destination.index}});en(!1),ca.status===0&&yn({id:Bn==null?void 0:Bn[ga.source.index].question_id})});return Le.createElement("div",null,Le.createElement(Me.Z5,{onDragEnd:ga=>$n(ga,kt)},Le.createElement(Me.bK,{droppableId:"droppable"},(ga,Bn)=>Le.createElement("div",ut({ref:ga.innerRef},ga.droppableProps),Le.createElement(Ge.Z,{spinning:Ft},kt.map((ca,Sa)=>Le.createElement(Me._l,{key:Sa,draggableId:Sa.toString(),index:Sa},(vn,yr)=>{var Sn,ja;return Le.createElement("aside",ut(ut({ref:vn.innerRef},vn.draggableProps),vn.dragHandleProps),Le.createElement(ne.Z,{title:Le.createElement(lt.Z,{value:(ca==null?void 0:ca.question_type)===8?(Sn=ca==null?void 0:ca.program_attr)==null?void 0:Sn.description:ca.question_title}),color:"#fff",placement:"left",overlayClassName:ie.titleTooltip},Le.createElement("div",{onClick:()=>{if(En){Ct();return}Se(Kt(ut({},ca),{index:Sa+1})),oa(_n),(0,ge.Vf)("#question-scroll-id")},className:`${ie.qcount} ${ca.question_id===(Ee==null?void 0:Ee.question_id)?ie.qcountclick:""}`},Le.createElement("span",{className:ie.score},ca==null?void 0:ca.question_score,"\u5206"),Le.createElement("span",{className:ie.qtitle},Sa+1,"\u3001",Le.createElement(lt.Z,{value:(ca==null?void 0:ca.question_type)===8?(ja=ca==null?void 0:ca.program_attr)==null?void 0:ja.description:ca.question_title,showTextOnly:!0})))))}))),ga.placeholder))))},Qe=oe(95237),Oe=oe(60569),Et=oe(57809),Gt=oe(78673),vt=oe(61485),Dt=oe(98280),Ae=oe(59301),dt=(se,Se,Ee)=>new Promise((rt,yn)=>{var _n=Ct=>{try{En(Ee.next(Ct))}catch(kt){yn(kt)}},oa=Ct=>{try{En(Ee.throw(Ct))}catch(kt){yn(kt)}},En=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(_n,oa);En((Ee=Ee.apply(se,Se)).next())}),ct=({form:se,TagDiscipline:Se,exerciseitem:Ee,qitem:rt,getTagData:yn})=>{var _n;const[oa,En]=(0,b.useState)(!0),[Ct,kt]=(0,b.useState)(!1),[Dn,Ft]=(0,b.useState)(""),[en,$n]=(0,b.useState)([]),[ga,Bn]=(0,b.useState)([]),[ca,Sa]=(0,b.useState)(0);(0,b.useEffect)(()=>{yr()},[]);const vn=Sn=>dt(void 0,null,function*(){const ja=yield(0,fe.ZP)("/api/tag_disciplines.json",{method:"get",params:{sub_discipline_id:Sn==null?void 0:Sn.sub_discipline_id}});Bn(ja==null?void 0:ja.tag_disciplines)}),yr=()=>dt(void 0,null,function*(){const Sn=yield(0,fe.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});$n(Sn.disciplines||[]),rt!=null&&rt.sub_discipline_id&&vn(rt),Sa(rt!=null&&rt.sub_discipline_id?1:0),se.setFieldsValue({difficulty:rt.difficulty||2,repeat_answer:!rt.repeat_answer,sub_discipline_id:rt!=null&&rt.sub_discipline_id?[rt==null?void 0:rt.discipline_id,rt==null?void 0:rt.sub_discipline_id]:[]})});return Ae.createElement("div",null,Ae.createElement("div",{style:{marginTop:30,overflow:"hidden",height:oa?"100%":0}},Ae.createElement(Be.default.Item,{className:ie.formcenter,rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u96BE\u5EA6"}],label:"\u96BE\u5EA6",name:"difficulty"},Ae.createElement(De.ZP.Group,{className:ie.radiogroup},Ae.createElement(De.ZP.Button,{className:ie.easy,value:1},"\u7B80\u5355"),Ae.createElement(De.ZP.Button,{className:ie.medium,value:2},"\u9002\u4E2D"),Ae.createElement(De.ZP.Button,{className:ie.hard,value:3},"\u56F0\u96BE"))),Ae.createElement(Be.default.Item,{name:"sub_discipline_id",label:"\u77E5\u8BC6\u70B9",className:ie.formcenterselect},Ae.createElement(Ye.Z,{className:ie.selectitems1,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:en,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(Sn,ja)=>{se.setFieldsValue({sub_discipline_id:Sn,tag_discipline_ids:[]}),Sa(Sn?Sn.length:0),(Sn==null?void 0:Sn.length)>0&&(vn({sub_discipline_id:Sn[1]}),Sn[1]==(rt==null?void 0:rt.sub_discipline_id)&&se.setFieldValue("tag_discipline_ids",rt.tag_discipline_ids))},onClear:()=>{Bn([]),se.setFieldValue("tag_discipline_ids",[]),Sa(0)}})),Ae.createElement(Be.default.Item,{className:ie.formcenterselect},Ae.createElement("div",{style:{display:"flex",alignItems:"center",paddingLeft:55}},Ae.createElement(Be.default.Item,{name:"tag_discipline_ids"},Ae.createElement(Et.default,{className:ie.selectitems,disabled:ca===0,showSearch:!0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9\uFF0C\u652F\u6301\u9009\u62E9\u591A\u4E2A",mode:"multiple",listHeight:200,dropdownStyle:{zIndex:9},allowClear:!0,optionFilterProp:"children",filterOption:(Sn,ja)=>ja.key.indexOf(Sn.toLowerCase())>=0},ga==null?void 0:ga.map(Sn=>Ae.createElement(Et.default.Option,{key:Sn.name+Sn.id,value:Sn.id},Ae.createElement("div",{style:{display:"flex",alignItems:"center"}},Ae.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},Sn.name),(Sn==null?void 0:Sn.type)==="personal"&&Ae.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),ca>0&&Ae.createElement("div",{style:{marginLeft:20,marginTop:"-16px",lineHeight:"48px",height:48,fontSize:14}},Ae.createElement("span",null,"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),Ae.createElement("a",{onClick:()=>{kt(!0)},style:{marginLeft:3,color:"#3061D0"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))),Ae.createElement(Be.default.Item,{className:ie.formcenterselect},Ae.createElement("div",{style:{display:"flex",alignItems:"center"}},Ae.createElement(Be.default.Item,{name:"repeat_answer",valuePropName:"checked"},Ae.createElement(Gt.Z,null)),Ae.createElement("div",{style:{marginLeft:10,marginTop:"-16px",lineHeight:"40px",height:48,color:"#000000"}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898",Ae.createElement(ne.Z,{placement:"right",title:"\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u4F5C\u7B54\u5B8C\u6210\u8BE5\u9898\u5E76\u8FDB\u5165\u4E0B\u4E00\u9898\u4E4B\u540E\uFF0C\u4E0D\u5141\u8BB8\u518D\u4FEE\u6539\u8BE5\u9898\u7B54\u6848"},Ae.createElement(vt.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))))),Ae.createElement(Dt.Z,{open:Ct,subDisciplineId:(_n=se.getFieldValue("sub_discipline_id"))==null?void 0:_n[1],onCancel:()=>{kt(!1)},onOkClick:Sn=>{Bn(ja=>[...ja,Sn]),se.setFieldValue("tag_discipline_ids",[...se.getFieldValue("tag_discipline_ids"),Sn==null?void 0:Sn.id])}}))},et=oe(59301),An=Object.defineProperty,ot=Object.defineProperties,bt=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,ht=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,Ot=(se,Se,Ee)=>Se in se?An(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,Un=(se,Se)=>{for(var Ee in Se||(Se={}))ht.call(Se,Ee)&&Ot(se,Ee,Se[Ee]);if(Ht)for(var Ee of Ht(Se))Mn.call(Se,Ee)&&Ot(se,Ee,Se[Ee]);return se},bn=(se,Se)=>ot(se,bt(Se)),kn=(se,Se,Ee)=>new Promise((rt,yn)=>{var _n=Ct=>{try{En(Ee.next(Ct))}catch(kt){yn(kt)}},oa=Ct=>{try{En(Ee.throw(Ct))}catch(kt){yn(kt)}},En=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(_n,oa);En((Ee=Ee.apply(se,Se)).next())}),ma=({qitem:se,setisedit:Se,TagDiscipline:Ee,exerciseitem:rt,seveeditor:yn,deleteitem:_n,getTagData:oa,init:En,showTip:Ct=!1})=>{const[kt]=Be.default.useForm();(0,b.useEffect)(()=>{var Ft;kt.setFieldsValue(bn(Un({},se),{name:se==null?void 0:se.question_title,choices:(Ft=se==null?void 0:se.question_choices)==null?void 0:Ft.map(en=>bn(Un({},en),{standard_boolean:en!=null&&en.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)}))},[se]);const Dn=Ft=>{if(!(Ft!=null&&Ft.length))return!1;const en=Ft.map(ga=>{var Bn;return(Bn=ga.choice_text)==null?void 0:Bn.trim().replace(/^\s+|\s+$/g,"")});return new Set(en).size!==en.length};return et.createElement("div",null,et.createElement(Be.default,{form:kt,colon:!1,onFinish:Ft=>{var en;if(Dn(Ft.choices)){be.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}let $n=bn(Un({},Ft),{item_type:se==null?void 0:se.question_type,choices:(en=Ft==null?void 0:Ft.choices)==null?void 0:en.map(ga=>bn(Un({},ga),{is_answer:ga.standard_boolean}))});yn(Un(Un({},se),$n))},onFinishFailed:Ft=>kn(void 0,null,function*(){var en,$n;be.ZP.error(Ft.errorFields[0].errors[0]),kt.scrollToField(($n=(en=Ft==null?void 0:Ft.errorFields)==null?void 0:en[0])==null?void 0:$n.name,{behavior:"smooth",block:"center"})})},et.createElement("div",{style:{display:"flex",alignItems:"center"}},et.createElement("div",{style:{flex:1}},et.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),et.createElement("span",null,(se==null?void 0:se.question_type)===1?"\u591A\u9009\u9898":"\u5355\u9009\u9898")),!se.isadd&&et.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{_n()}},et.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),et.createElement(We.ZP,{onClick:()=>{var Ft;se.isadd?(Se(!1),En()):(kt.setFieldsValue(bn(Un({},se),{name:se==null?void 0:se.question_title,choices:(Ft=se==null?void 0:se.question_choices)==null?void 0:Ft.map(en=>bn(Un({},en),{standard_boolean:en!=null&&en.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),et.createElement(ne.Z,{overlayClassName:ie.shake,open:Ct,placement:"bottom",color:"rgba(244,156,14,0.19)",title:et.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},et.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},et.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>kn(void 0,null,function*(){kt.submit()})},"\u4FDD\u5B58"))),et.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},et.createElement(Qe.Z,{align:"middle"},et.createElement(Be.default.Item,{className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},et.createElement(Te.Z,{onBlur:Ft=>{Ft.target.value==="0"&&be.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1}))),et.createElement(Oe.u,{form:kt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",titleKey:"name",choiceKey:"choices",analysisKey:"analysis",choiceOptionsPath:"choices",choiceTextKey:"choice_text",answerKey:"standard_boolean"}),et.createElement(ct,{getTagData:oa,qitem:se,exerciseitem:rt,TagDiscipline:Ee,form:kt}))))},zn=oe(55862),ba=oe(24136),ln=oe(59301),cn=Object.defineProperty,pn=Object.defineProperties,Oa=Object.getOwnPropertyDescriptors,pa=Object.getOwnPropertySymbols,wa=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,St=(se,Se,Ee)=>Se in se?cn(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,fn=(se,Se)=>{for(var Ee in Se||(Se={}))wa.call(Se,Ee)&&St(se,Ee,Se[Ee]);if(pa)for(var Ee of pa(Se))_t.call(Se,Ee)&&St(se,Ee,Se[Ee]);return se},Fn=(se,Se)=>pn(se,Oa(Se)),ya=(se,Se,Ee)=>new Promise((rt,yn)=>{var _n=Ct=>{try{En(Ee.next(Ct))}catch(kt){yn(kt)}},oa=Ct=>{try{En(Ee.throw(Ct))}catch(kt){yn(kt)}},En=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(_n,oa);En((Ee=Ee.apply(se,Se)).next())}),Ka=({qitem:se,TagDiscipline:Se,exerciseitem:Ee,setisedit:rt,seveeditor:yn,deleteitem:_n,getTagData:oa,init:En,showTip:Ct=!1})=>{const[kt]=Be.default.useForm(),Dn=Be.default.useWatch("use_blank_score",kt);return(0,b.useEffect)(()=>{kt.setFieldsValue(Fn(fn({},se),{standard_answers:se.standard_answers||[],name:se.question_title,repeat_answer:!se.repeat_answer}))},[se]),ln.createElement("div",null,ln.createElement(Be.default,{form:kt,colon:!1,onValuesChange:(Ft,en)=>{var $n,ga,Bn,ca;if(Ft!=null&&Ft.standard_answers||Ft!=null&&Ft.use_blank_score){let Sa=(($n=kt.getFieldValue("standard_answers"))==null?void 0:$n.length)>0&&((Bn=(ga=kt.getFieldValue("standard_answers"))==null?void 0:ga.map(vn=>vn.score))==null?void 0:Bn.filter(vn=>vn));(Sa==null?void 0:Sa.length)>0&&kt.setFieldsValue({question_score:(Sa==null?void 0:Sa.length)>0&&((ca=Sa.reduce((vn,yr)=>vn+yr))==null?void 0:ca.toFixed(1))})}},onFinish:Ft=>{var en;yn(Fn(fn(fn({},se),Ft),{item_type:se==null?void 0:se.question_type,standard_answers:(en=Ft.standard_answers)==null?void 0:en.map(($n,ga)=>Fn(fn({},$n),{position:$n.choice_id||ga+1}))}))},onFinishFailed:Ft=>ya(void 0,null,function*(){var en,$n;Ft.errorFields[0].errors[0]==="\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"&&(0,ge.pE)(),be.ZP.error(Ft.errorFields[0].errors[0]),kt.scrollToField(($n=(en=Ft==null?void 0:Ft.errorFields)==null?void 0:en[0])==null?void 0:$n.name,{behavior:"smooth",block:"center"})})},ln.createElement("div",{style:{display:"flex",alignItems:"center"}},ln.createElement("div",{style:{flex:1}},ln.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),ln.createElement("span",null,"\u586B\u7A7A\u9898")),!se.isadd&&ln.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{_n()}},ln.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}})," \u5220\u9664"),ln.createElement(We.ZP,{onClick:()=>{se.isadd?(rt(!1),En()):(kt.setFieldsValue(Fn(fn({},se),{standard_answers:se.standard_answers,name:se.question_title,repeat_answer:!se.repeat_answer})),rt(!1))}},"\u53D6\u6D88"),ln.createElement(ne.Z,{overlayClassName:ie.shake,open:Ct,placement:"bottom",color:"rgba(244,156,14,0.19)",title:ln.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},ln.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},ln.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{kt.submit()}},"\u4FDD\u5B58"))),ln.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},ln.createElement(Qe.Z,{align:"middle"},Dn?ln.createElement(ba.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}):ln.createElement(Be.default.Item,{key:2,className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},ln.createElement(Te.Z,{onBlur:Ft=>{Ft.target.value==="0"&&be.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle",max:100,min:.1})),ln.createElement(Be.default.Item,{name:"use_blank_score",noStyle:!0},ln.createElement(De.ZP.Group,{className:ie.scoreByBlankRadio,optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}]})),ln.createElement(ne.Z,{overlayInnerStyle:{width:460},title:ln.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",ln.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},ln.createElement("i",{className:"icon-tishixiaowenhao font18 ml20 c-3061d0"}))),ln.createElement(zn.u,{form:kt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:Dn,answerKey:"standard_answers"}),ln.createElement(ct,{getTagData:oa,qitem:se,exerciseitem:Ee,TagDiscipline:Se,form:kt}))))},aa=oe(85881),Wn=oe(59301),Ya=Object.defineProperty,Ma=Object.defineProperties,Ja=Object.getOwnPropertyDescriptors,Ar=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,In=Object.prototype.propertyIsEnumerable,Rn=(se,Se,Ee)=>Se in se?Ya(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,wn=(se,Se)=>{for(var Ee in Se||(Se={}))At.call(Se,Ee)&&Rn(se,Ee,Se[Ee]);if(Ar)for(var Ee of Ar(Se))In.call(Se,Ee)&&Rn(se,Ee,Se[Ee]);return se},xe=(se,Se)=>Ma(se,Ja(Se)),ft=(se,Se,Ee)=>new Promise((rt,yn)=>{var _n=Ct=>{try{En(Ee.next(Ct))}catch(kt){yn(kt)}},oa=Ct=>{try{En(Ee.throw(Ct))}catch(kt){yn(kt)}},En=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(_n,oa);En((Ee=Ee.apply(se,Se)).next())}),Vt=({qitem:se,setisedit:Se,TagDiscipline:Ee,exerciseitem:rt,seveeditor:yn,deleteitem:_n,getTagData:oa,init:En,showTip:Ct=!1})=>{const[kt]=Be.default.useForm();return(0,b.useEffect)(()=>{var Dn;kt.setFieldsValue(xe(wn({},se),{name:se.question_title,repeat_answer:!se.repeat_answer,choices:(Dn=se==null?void 0:se.question_choices)==null?void 0:Dn.map(Ft=>xe(wn({},Ft),{is_answer:Ft!=null&&Ft.standard_boolean?1:0}))}))},[se]),Wn.createElement("div",null,Wn.createElement(Be.default,{form:kt,colon:!1,onFinish:Dn=>{yn(wn(wn({},se),Dn))},onFinishFailed:Dn=>ft(void 0,null,function*(){var Ft,en;be.ZP.error(Dn.errorFields[0].errors[0]),kt.scrollToField((en=(Ft=Dn==null?void 0:Dn.errorFields)==null?void 0:Ft[0])==null?void 0:en.name,{behavior:"smooth",block:"center"})})},Wn.createElement("div",{style:{display:"flex",alignItems:"center"}},Wn.createElement("div",{style:{flex:1}},Wn.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Wn.createElement("span",null,"\u5224\u65AD\u9898")),!(se!=null&&se.isadd)&&Wn.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{_n()}},Wn.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Wn.createElement(We.ZP,{onClick:()=>{var Dn;se.isadd?(Se(!1),En()):(kt.setFieldsValue(xe(wn({},se),{name:se==null?void 0:se.question_title,choices:(Dn=se==null?void 0:se.question_choices)==null?void 0:Dn.map(Ft=>xe(wn({},Ft),{is_answer:Ft!=null&&Ft.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),Wn.createElement(ne.Z,{overlayClassName:ie.shake,open:Ct,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Wn.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Wn.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Wn.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{kt.submit()}},"\u4FDD\u5B58"))),Wn.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Wn.createElement(Be.default.Item,{className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Wn.createElement(Te.Z,{onBlur:Dn=>{Dn.target.value==="0"&&be.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),Wn.createElement(aa.Z,{form:kt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",choiceKey:""}),Wn.createElement(ct,{getTagData:oa,qitem:se,exerciseitem:rt,TagDiscipline:Ee,form:kt}))))},Rt=oe(36381),yt={wrap:"wrap___YewKC",deleteIcon:"deleteIcon___AKmkj",keywordTag:"keywordTag___hMKmU",questionTitleEditorWrap:"questionTitleEditorWrap___SpNyf",choiceWrap:"choiceWrap___lDCnP",choiceIndex:"choiceIndex___dabwf",judgementIndex:"judgementIndex___sausK",setAnswerBtn:"setAnswerBtn___moVcF",activeAnswer:"activeAnswer___Cd32c",activeJudgementAnswer:"activeJudgementAnswer___rbuoo",actionWrapper:"actionWrapper___dZuBC",addIcon:"addIcon___A9GtN",inputBorder:"inputBorder___DeyjY",placeholder:"placeholder___dhOmk",blankWrapper:"blankWrapper___vU8Cg",blankInput:"blankInput___Vzre8",blankInputNumberWrapper:"blankInputNumberWrapper___yLeaN",addBtn:"addBtn___LhI0I",blankIndex:"blankIndex___caKgB",baseInputWrapper:"baseInputWrapper___DhjJY",collapseWrapper:"collapseWrapper___btrfP",panelHeader:"panelHeader___xIZ7O",open:"open___IMQhg",close:"close___FTAU3",hide:"hide___GBtJP",scoreByBlankRadio:"scoreByBlankRadio___HAunQ"},hn=oe(12893),je=oe(30720),Ke=Object.defineProperty,He=Object.defineProperties,Mt=Object.getOwnPropertyDescriptors,un=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,Qn=(se,Se,Ee)=>Se in se?Ke(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,gn=(se,Se)=>{for(var Ee in Se||(Se={}))sn.call(Se,Ee)&&Qn(se,Ee,Se[Ee]);if(un)for(var Ee of un(Se))Xn.call(Se,Ee)&&Qn(se,Ee,Se[Ee]);return se},Yn=(se,Se)=>He(se,Mt(Se)),Pa=(se,Se)=>{var Ee={};for(var rt in se)sn.call(se,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=se[rt]);if(se!=null&&un)for(var rt of un(se))Se.indexOf(rt)<0&&Xn.call(se,rt)&&(Ee[rt]=se[rt]);return Ee};const zt=se=>{var Se=se,{value:Ee,onChange:rt,scrollId:yn}=Se,_n=Pa(Se,["value","onChange","scrollId"]);return b.createElement("div",{id:yn||""},b.createElement(je.Z,Yn(gn({},_n),{defaultValue:Ee,onChange:(oa,En)=>{console.log("a:",oa,En),En!=null&&En.length?rt(oa,En):rt(oa)}})))},qn=({value:se,onChange:Se,placeholder:Ee,height:rt=140,isEdit:yn})=>yn?b.createElement(je.Z,{watch:!0,isFocus:!0,height:rt,placeholder:Ee,defaultValue:se,onChange:Se}):b.createElement("div",{style:{cursor:"pointer"}},se?b.createElement(lt.Z,{className:yt.inputBorder,value:se}):b.createElement("div",{className:`${yt.inputBorder} ${yt.placeholder}`},Ee));var Je=oe(43604),Qt=oe(32134),Cn=Object.defineProperty,tt=Object.defineProperties,Jn=Object.getOwnPropertyDescriptors,Nn=Object.getOwnPropertySymbols,sa=Object.prototype.hasOwnProperty,Zn=Object.prototype.propertyIsEnumerable,za=(se,Se,Ee)=>Se in se?Cn(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,la=(se,Se)=>{for(var Ee in Se||(Se={}))sa.call(Se,Ee)&&za(se,Ee,Se[Ee]);if(Nn)for(var Ee of Nn(Se))Zn.call(Se,Ee)&&za(se,Ee,Se[Ee]);return se},_a=(se,Se)=>tt(se,Jn(Se)),$a=(se,Se)=>{var Ee={};for(var rt in se)sa.call(se,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=se[rt]);if(se!=null&&Nn)for(var rt of Nn(se))Se.indexOf(rt)<0&&Zn.call(se,rt)&&(Ee[rt]=se[rt]);return Ee};const sr=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Tt=({value:se,onChange:Se,choiceTextKey:Ee,answerKey:rt,index:yn,isEdit:_n,setInputActive:oa,form:En,choiceOptionsPath:Ct,allowChangeMode:kt,showAddIcon:Dn,addItem:Ft,deleteItem:en})=>{const $n=(se==null?void 0:se[rt])===1,ga=()=>{const ca=En.getFieldValue(Ct);En.setFieldValue(Ct,ca.map(Sa=>_a(la({},Sa),{[rt]:0})))},Bn=()=>{$n?Se(_a(la({},se),{[rt]:0})):(kt||ga(),Se(_a(la({},se),{[rt]:1})))};return b.createElement(Qe.Z,{className:yt.choiceWrap,align:"middle",wrap:!1},b.createElement(Je.Z,{onClick:Bn,className:`${yt.choiceIndex} ${$n?yt.activeAnswer:""}`},sr[yn]),b.createElement(Je.Z,{flex:1,className:`${yt.editorWrap} ml15`,onClick:oa},b.createElement(qn,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:_n,value:se==null?void 0:se[Ee],onChange:ca=>{Se(_a(la({},se),{[Ee]:ca}))}})),b.createElement(Je.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:Bn,className:`${yt.setAnswerBtn} ${$n?yt.activeAnswer:""}`},$n?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),b.createElement(Je.Z,{className:yt.actionWrapper},b.createElement(ne.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},b.createElement(Qt.Z,{className:yt.addIcon,onClick:Ft,style:{visibility:Dn?"visible":"hidden"}})),b.createElement(ne.Z,{title:"\u5220\u9664"},b.createElement(hn.Z,{className:yt.deleteIcon,onClick:en,style:{visibility:yn>1?"visible":"hidden"}}))))},Da=({questionTitlePlaceholder:se,titleKey:Se,choiceKey:Ee,analysisKey:rt,choiceTextKey:yn,answerKey:_n,choiceOptionsPath:oa,allowChangeMode:En=!0,form:Ct,showAnalysis:kt=!0})=>{const[Dn,Ft]=(0,b.useState)(),[en,$n]=(0,b.useState)(!1);return b.createElement("div",{className:yt.wrap},b.createElement("div",{className:yt.questionTitleEditorWrap},b.createElement(Be.default.Item,{label:"\u9898\u5E72",name:Se,labelCol:{span:24},rules:[{required:!0}]},b.createElement(zt,{scrollId:Array.isArray(Se)?Se.join("_"):`${Se}`,watch:!0,height:140,placeholder:se}))),b.createElement(Be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),b.createElement(Be.default.List,{name:Ee,rules:[{validator(ga,Bn){const ca=Bn.some(vn=>vn[_n]===1),Sa=Bn.findIndex(vn=>{var yr;return((yr=vn[yn])==null?void 0:yr.length)<=0});return Sa!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${sr[Sa]}\u9009\u9879\u7684\u5185\u5BB9`)):ca?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(ga,{add:Bn,remove:ca})=>b.createElement("div",{id:Array.isArray(oa)?oa.join("_"):`${oa}`},ga.map((Sa,vn)=>{var yr=Sa,{key:Sn,name:ja}=yr,nn=$a(yr,["key","name"]);const gr=Dn===Sn,Dr=()=>{Ft(Sn)},Br=vn<7&&vn===ga.length-1,Pr=()=>Bn({[yn]:"",[_n]:0}),Vn=()=>ca(ja);return b.createElement(Be.default.Item,_a(la({},nn),{key:Sn,name:ja,noStyle:!0}),b.createElement(Tt,{choiceTextKey:yn,answerKey:_n,index:vn,isEdit:gr,setInputActive:Dr,form:Ct,choiceOptionsPath:oa,allowChangeMode:En,showAddIcon:Br,addItem:Pr,deleteItem:Vn}))}),ga.length<8&&b.createElement("div",{className:`${yt.addBtn} mb30`,onClick:()=>Bn({[yn]:"",[_n]:0})},"\u6DFB\u52A0\u9009\u9879"))),kt&&b.createElement("div",{onClick:()=>$n(!0)},b.createElement(Be.default.Item,{name:rt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(qn,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:en}))))};var Wt=oe(59301),xa=Object.defineProperty,va=Object.defineProperties,Yt=Object.getOwnPropertyDescriptors,xn=Object.getOwnPropertySymbols,ea=Object.prototype.hasOwnProperty,Pn=Object.prototype.propertyIsEnumerable,Ra=(se,Se,Ee)=>Se in se?xa(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,ha=(se,Se)=>{for(var Ee in Se||(Se={}))ea.call(Se,Ee)&&Ra(se,Ee,Se[Ee]);if(xn)for(var Ee of xn(Se))Pn.call(Se,Ee)&&Ra(se,Ee,Se[Ee]);return se},Va=(se,Se)=>va(se,Yt(Se)),ur=(se,Se)=>{var Ee={};for(var rt in se)ea.call(se,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=se[rt]);if(se!=null&&xn)for(var rt of xn(se))Se.indexOf(rt)<0&&Pn.call(se,rt)&&(Ee[rt]=se[rt]);return Ee};const Sr=({value:se,onChange:Se})=>{const Ee=yn=>{x.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:yt.modal,onOk:()=>{const _n=[...se];_n.splice(yn,1),Se(_n)}})},rt=()=>{const yn=[...se];yn.push(""),Se(yn)};return Wt.createElement(Qe.Z,{className:"ml20"},Wt.createElement(Je.Z,{flex:1},se==null?void 0:se.map((yn,_n)=>Wt.createElement(Qe.Z,{key:`${yn}_${_n}`,align:"middle",className:"mb20"},Wt.createElement(Fe.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:yn,autoSize:{maxRows:3},maxLength:1e3,onBlur:oa=>{const En=[...se],Ct=oa.target.value.trim();En[_n]=Ct,Se(En)}}),Wt.createElement(ne.Z,{title:"\u5220\u9664"},Wt.createElement(hn.Z,{className:yt.deleteIcon,style:{marginLeft:15,visibility:_n>0?"visible":"hidden"},onClick:()=>Ee(_n)}))))),Wt.createElement(Je.Z,null,Wt.createElement("div",{className:`${yt.addBtn}`,onClick:()=>{rt()}},"\u65B0\u589E\u7B54\u6848")))},Nr=({value:se=!0,onChange:Se})=>Wt.createElement(Gt.Z,{checked:!se,onChange:Ee=>{Se(!Ee)}}),pr="\u2581",Yr=({questionTitlePlaceholder:se,form:Se,name:Ee,scoreByBlank:rt,answerKey:yn,titleKey:_n="name",analysisKey:oa="analysis",isOrdered:En="is_ordered"})=>{var Ct,kt;const[Dn,Ft]=(0,b.useState)(!1),en=(Sn,ja)=>{const nn=ja.line;let gr=0;for(let Br=0;Br{const Dr=Sn.getRange(ja.from,ja.to);let Br=0;if(ja.text.forEach(Pr=>{Br+=Pr.split(pr).length-1}),ja.origin!=="setValue"){if(Dr&&Dr.indexOf(pr)!==-1){const Pr=Dr.split(pr).length-1,Vn=en(Sn,ja.from);if(console.log(`\u5220\u9664${Pr}\u4E2A\uFF0C \u524D\u9762\u6709${Vn}\u4E2A\uFF0C\u65B0\u589E${Br}\u4E2A`),Pr>1){const ir=Array.from({length:Pr},(Hr,Kr)=>Vn+Kr);gr(ir)}else gr(Vn)}else if(Br>0){const Pr=en(Sn,ja.from);console.log(`\u65B0\u589E${Br}\u4E2A\uFF0C\u4E4B\u524D\u6709${Pr}\u4E2A`),nn(Br,Pr)}}},ga=()=>{const Sn=Se.getFieldValue(["sub_item_banks",...yn]);Se.setFieldValue(["sub_item_banks",...yn],Sn==null?void 0:Sn.map((ja,nn)=>Va(ha({},ja),{position:nn+1})))},Bn=(0,b.useRef)(),ca=(Sn,ja)=>{for(let nn=0;nn{Sa.current(Sn),ga()},yr=(kt=(Ct=Se.getFieldValue("sub_item_banks"))==null?void 0:Ct[yn==null?void 0:yn[0]])==null?void 0:kt[yn==null?void 0:yn[1]];return console.log(Se==null?void 0:Se.getFieldValue(["sub_item_banks",...rt])),Wt.createElement("div",{className:yt.wrap},Wt.createElement("div",{className:yt.questionTitleEditorWrap},Wt.createElement(Be.default.Item,{label:"\u9898\u5E72",name:_n,labelCol:{span:24},rules:[{required:!0}]},Wt.createElement(zt,{scrollId:"name",watch:!0,height:140,placeholder:se,showNullButton:!0,onCMBeforeChange:(Sn,ja)=>{$n(Sn,ja,ca,vn)}}))),Wt.createElement(Be.default.List,{name:yn,rules:[{validator(Sn,ja){if((ja==null?void 0:ja.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const nn of ja){const{answer_text:gr}=nn||{};if(gr!=null&&gr.some(Dr=>(Dr==null?void 0:Dr.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Sn,{add:ja,remove:nn},{errors:gr})=>(Bn.current=ja,Sa.current=nn,Wt.createElement(Wt.Fragment,null,Wt.createElement(Be.default.Item,{label:Wt.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(Sn!=null&&Sn.length)&&Wt.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),Sn.map((Dr,Br)=>{var Pr=Dr,{key:Vn,name:ir}=Pr,Hr=ur(Pr,["key","name"]);return Wt.createElement(Qe.Z,{className:"mb20",key:Vn,align:"top"},Wt.createElement(Je.Z,{flex:"0 0 auto",className:`${yt.blankIndex} pt5`},"\u586B\u7A7A\u9879",Br+1),Wt.createElement(Je.Z,{flex:1},Wt.createElement(Qe.Z,{align:"top",justify:"space-between"},Wt.createElement(Je.Z,{flex:1},Wt.createElement(Be.default.Item,Va(ha({},Hr),{name:[ir,"answer_text"],noStyle:!0}),Wt.createElement(Sr,null))),(Se==null?void 0:Se.getFieldValue(["sub_item_banks",...rt]))&&Wt.createElement(Je.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},Wt.createElement(Be.default.Item,Va(ha({},Hr),{name:[ir,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:yt.blankInputNumberWrapper}),Wt.createElement(Te.Z,{onChange:()=>{var Kr,_r;let hr=Se==null?void 0:Se.getFieldValue(["sub_item_banks",yn==null?void 0:yn[0],"standard_answers"]),xr=0;for(let Mr in hr)(Kr=hr[Mr])!=null&&Kr.score&&(xr+=Number((_r=hr[Mr])==null?void 0:_r.score));Se==null||Se.setFieldValue(["sub_item_banks",yn==null?void 0:yn[0],"question_score"],xr)},className:yt.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Wt.createElement(Be.default.Item,Va(ha({},Hr),{name:[ir,"position"],noStyle:!0}),Wt.createElement(Fe.default,{type:"hidden"}))))})))),Wt.createElement(Qe.Z,{align:"middle"},Wt.createElement(Be.default.Item,{name:[Ee,"downcase"],valuePropName:"checked"},Wt.createElement(Gt.Z,null)),Wt.createElement(Je.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Wt.createElement(Qe.Z,{align:"middle"},Wt.createElement(Be.default.Item,{name:[Ee,"no_space"],valuePropName:"checked"},Wt.createElement(Gt.Z,null)),Wt.createElement(Je.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(yr==null?void 0:yr.length)>1&&Wt.createElement(Qe.Z,{align:"middle",className:(yr==null?void 0:yr.length)>1?"mb30":`${yt.hide}`},Wt.createElement(Be.default.Item,{name:En},Wt.createElement(Nr,null)),Wt.createElement(Je.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Wt.createElement("div",{onClick:()=>Ft(!0)},Wt.createElement(Be.default.Item,{name:oa,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Wt.createElement(qn,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Dn}))))};var Xa=Object.defineProperty,qa=Object.defineProperties,fr=Object.getOwnPropertyDescriptors,fa=Object.getOwnPropertySymbols,or=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable,ka=(se,Se,Ee)=>Se in se?Xa(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,nr=(se,Se)=>{for(var Ee in Se||(Se={}))or.call(Se,Ee)&&ka(se,Ee,Se[Ee]);if(fa)for(var Ee of fa(Se))dr.call(Se,Ee)&&ka(se,Ee,Se[Ee]);return se},mt=(se,Se)=>qa(se,fr(Se)),it=(se,Se)=>{var Ee={};for(var rt in se)or.call(se,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=se[rt]);if(se!=null&&fa)for(var rt of fa(se))Se.indexOf(rt)<0&&dr.call(se,rt)&&(Ee[rt]=se[rt]);return Ee};const Nt={\u6B63\u786E:"T",\u9519\u8BEF:"F"},dn=({value:se,onChange:Se,form:Ee,choiceKey:rt})=>{const yn=(se==null?void 0:se.is_answer)===1,_n=se==null?void 0:se.choice_text,oa=()=>{var En;const Ct=(En=Ee==null?void 0:Ee.getFieldValue(["sub_item_banks",...rt]))==null?void 0:En.map(kt=>({choice_text:kt.choice_text,is_answer:0}));Ee==null||Ee.setFieldValue(["sub_item_banks",...rt],Ct),Se(mt(nr({},se),{is_answer:1}))};return b.createElement(Qe.Z,{className:yt.choiceWrap,align:"middle",wrap:!1},b.createElement(Je.Z,{onClick:oa,className:`${yt.choiceIndex} ${yt.judgementIndex} ${yn?yt.activeAnswer:""}`},Nt[_n]),b.createElement(Je.Z,{flex:1,className:`${yt.editorWrap} ml15`},b.createElement("div",{className:`${yt.inputBorder} ${yt.placeholder} ${yn?yt.activeJudgementAnswer:""}`},_n)),b.createElement(Je.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:oa,className:`${yt.setAnswerBtn} ${yn?yt.activeAnswer:""}`},yn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},ia=({questionTitlePlaceholder:se,choiceKey:Se="choices",form:Ee,titleKey:rt="name",analysisKey:yn="analysis"})=>{const[_n,oa]=(0,b.useState)(!1);return b.createElement("div",{className:yt.wrap},b.createElement("div",{className:yt.questionTitleEditorWrap},b.createElement(Be.default.Item,{label:"\u9898\u5E72",name:rt,labelCol:{span:24},rules:[{required:!0}]},b.createElement(zt,{scrollId:"name",watch:!0,height:140,placeholder:se}))),b.createElement(Be.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},b.createElement(Be.default.List,{name:Se,rules:[{validator(En,Ct){return Ct.some(Dn=>(Dn==null?void 0:Dn.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},En=>b.createElement("div",{id:"choices"},En.map(Ct=>{var kt=Ct,{key:Dn,name:Ft}=kt,en=it(kt,["key","name"]);return b.createElement(Be.default.Item,mt(nr({},en),{key:Dn,name:Ft,noStyle:!0}),b.createElement(dn,{form:Ee,choiceKey:Se}))})))),b.createElement("div",{onClick:()=>oa(!0)},b.createElement(Be.default.Item,{name:yn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(qn,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:_n}))))};var La=oe(12563),$t=Object.defineProperty,Ba=Object.defineProperties,Ea=Object.getOwnPropertyDescriptors,ar=Object.getOwnPropertySymbols,Ta=Object.prototype.hasOwnProperty,da=Object.prototype.propertyIsEnumerable,Qa=(se,Se,Ee)=>Se in se?$t(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,vr=(se,Se)=>{for(var Ee in Se||(Se={}))Ta.call(Se,Ee)&&Qa(se,Ee,Se[Ee]);if(ar)for(var Ee of ar(Se))da.call(Se,Ee)&&Qa(se,Ee,Se[Ee]);return se},Tr=(se,Se)=>Ba(se,Ea(Se)),er=(se,Se)=>{var Ee={};for(var rt in se)Ta.call(se,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=se[rt]);if(se!=null&&ar)for(var rt of ar(se))Se.indexOf(rt)<0&&da.call(se,rt)&&(Ee[rt]=se[rt]);return Ee};const cr=se=>{var Se=se,{value:Ee,onChange:rt}=Se,yn=er(Se,["value","onChange"]);const _n=oa=>{rt([oa])};return b.createElement(je.Z,Tr(vr({},yn),{defaultValue:Ee==null?void 0:Ee[0],onChange:_n}))},Cr=se=>{if(!se)return!1;if(/^s*$/.test(se)||se.trim()===""){be.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Se=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return se==="|"?(be.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Tn=({value:se=[],onClose:Se})=>b.createElement(La.default,{closable:!0,onClose:Se,className:yt.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},se.join(" \u6216 "))),an=({questionTitlePlaceholder:se,form:Se,showKeywords:Ee,isMustKeyWords:rt=Ee,titleKey:yn="name",analysisKey:_n="analysis",answerTexts:oa="answer_texts",keywords:En="keywords",useKeywords:Ct="use_keywords",indexs:kt})=>{var Dn,Ft,en,$n;const[ga,Bn]=(0,b.useState)(!1),[ca,Sa]=(0,b.useState)(""),vn=(Ft=(Dn=Se.getFieldValue("sub_item_banks"))==null?void 0:Dn[Ct==null?void 0:Ct[0]])==null?void 0:Ft[Ct==null?void 0:Ct[1]],yr=($n=(en=Se.getFieldValue("sub_item_banks"))==null?void 0:en[Ct==null?void 0:Ct[0]])==null?void 0:$n.question_score;return b.createElement("div",{className:yt.wrap},b.createElement("div",{className:yt.questionTitleEditorWrap},b.createElement(Be.default.Item,{label:"\u9898\u5E72",name:yn,labelCol:{span:24},rules:[{required:!0}]},b.createElement(zt,{scrollId:"name",watch:!0,height:140,placeholder:se}))),b.createElement(Be.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:oa,labelCol:{span:24}},b.createElement(cr,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Ee&&!rt&&b.createElement(Be.default.Item,{hidden:!0,name:Ct,valuePropName:"checked"},b.createElement(Gt.Z,{defaultChecked:!0})),Ee&&rt&&b.createElement(Qe.Z,{align:"middle",className:"mb30"},b.createElement(Be.default.Item,{name:Ct,valuePropName:"checked"},b.createElement(Gt.Z,null)),b.createElement(Je.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(Je.Z,null,b.createElement(ne.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},b.createElement(vt.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(vn||!rt)&&b.createElement(Be.default.List,{name:En,rules:[{validator(Sn,ja){return rt?ja!=null&&ja.length?(ja==null?void 0:ja.reduce((gr,Dr)=>gr+Dr.score,0))>parseFloat(yr)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(Sn,{add:ja,remove:nn})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${yt.title} mb10`},rt?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(Qe.Z,{align:"middle",className:"font14 mb30"},b.createElement(Je.Z,{flex:1},b.createElement(Fe.default,{value:ca,onChange:gr=>{Sa(gr.target.value)},maxLength:50,allowClear:!0,onPressEnter:gr=>{var Dr,Br,Pr,Vn;const ir=`${(Dr=gr.target)==null?void 0:Dr.value}`,Hr=(Pr=(Br=ir==null?void 0:ir.split("|"))==null?void 0:Br.filter(hr=>!!hr))==null?void 0:Pr.map(hr=>hr.trim()),Kr=Se.getFieldValue(["sub_item_banks",...En]),_r=((Vn=Kr==null?void 0:Kr.map(hr=>hr==null?void 0:hr.keyword))==null?void 0:Vn.flat())||[];for(const hr of Hr)if(_r.includes(hr)){be.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Cr(ir)&&(ja({keyword:Hr,score:1}),Sa(""))},className:yt.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),b.createElement(Je.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Sn.map(gr=>{var Dr=gr,{key:Br,name:Pr}=Dr,Vn=er(Dr,["key","name"]);return b.createElement(Qe.Z,{key:Br,className:"mb20",style:{marginRight:148}},b.createElement(Je.Z,{flex:1},b.createElement(Qe.Z,{align:"middle",justify:"space-between"},b.createElement(Be.default.Item,Tr(vr({},Vn),{name:[Pr,"keyword"]}),b.createElement(Tn,{onClose:()=>nn(Pr)})),rt&&b.createElement(Be.default.Item,Tr(vr({},Vn),{name:[Pr,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:yt.blankInputNumberWrapper}),b.createElement(Te.Z,{className:yt.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),b.createElement("div",{onClick:()=>Bn(!0)},b.createElement(Be.default.Item,{name:_n,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(qn,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ga}))))};var Lt=oe(59301),de=Object.defineProperty,$e=Object.defineProperties,st=Object.getOwnPropertyDescriptors,jt=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,tn=Object.prototype.propertyIsEnumerable,Jt=(se,Se,Ee)=>Se in se?de(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,Ut=(se,Se)=>{for(var Ee in Se||(Se={}))at.call(Se,Ee)&&Jt(se,Ee,Se[Ee]);if(jt)for(var Ee of jt(Se))tn.call(Se,Ee)&&Jt(se,Ee,Se[Ee]);return se},Xt=(se,Se)=>$e(se,st(Se)),ra=(se,Se)=>{var Ee={};for(var rt in se)at.call(se,rt)&&Se.indexOf(rt)<0&&(Ee[rt]=se[rt]);if(se!=null&&jt)for(var rt of jt(se))Se.indexOf(rt)<0&&tn.call(se,rt)&&(Ee[rt]=se[rt]);return Ee};const{Panel:Ha}=Rt.default,Za=({questionTitlePlaceholder:se,choiceKey:Se,form:Ee,withScore:rt})=>{const yn=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}],[_n,oa]=(0,b.useState)(),[En,Ct]=(0,b.useState)([]),kt=Ft=>{Ct(Ft)},Dn=({value:Ft})=>Lt.createElement("div",{style:{width:150,paddingLeft:11}},Ft);return Lt.createElement("div",{className:yt.wrap},Lt.createElement("div",{className:yt.questionTitleEditorWrap},Lt.createElement(Be.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Lt.createElement(zt,{scrollId:"name",watch:!0,height:140,placeholder:se}))),Lt.createElement(Be.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),Lt.createElement(Be.default.List,{name:"sub_item_banks",rules:[{validator(Ft,en){return en?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Ft,{add:en,remove:$n,move:ga})=>{const Bn=Ee.getFieldValue("sub_item_banks");return Lt.createElement(Lt.Fragment,null,Lt.createElement(Rt.default,{className:Ft.length>0?yt.collapseWrapper:"",bordered:!1,activeKey:En,onChange:kt,expandIcon:({isActive:ca})=>Lt.createElement("i",{className:`iconfont icon-weizhankai ${ca?yt.open:yt.close}`,style:{fontSize:14,transition:"all .2s"}})},Ft.map((ca,Sa)=>{var vn=ca,{key:yr,name:Sn}=vn,ja=ra(vn,["key","name"]),nn,gr,Dr,Br,Pr,Vn,ir,Hr,Kr,_r,hr,xr,Mr,tr;return Lt.createElement(Ha,{className:yt.panel,forceRender:!0,header:Lt.createElement("div",{className:yt.panelHeader},"\u7B2C",Sa+1,"\u5C0F\u9898",Lt.createElement("span",null,"\uFF08",((nn=Bn==null?void 0:Bn[Sn])==null?void 0:nn.question_type)==0?"\u5355\u9009\u9898":((gr=Bn==null?void 0:Bn[Sn])==null?void 0:gr.question_type)==1?"\u591A\u9009\u9898":((Dr=Bn==null?void 0:Bn[Sn])==null?void 0:Dr.question_type)==3?"\u586B\u7A7A\u9898":((Br=Bn==null?void 0:Bn[Sn])==null?void 0:Br.question_type)==2?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:Sn,extra:Lt.createElement(Qe.Z,{align:"middle",onClick:Lr=>Lr.stopPropagation()},((Pr=Bn==null?void 0:Bn[Sn])==null?void 0:Pr.question_type)==3&&Lt.createElement(Lt.Fragment,null,Lt.createElement(De.ZP.Group,{defaultValue:(Vn=Bn==null?void 0:Bn[Sn])==null?void 0:Vn.use_blank_score,className:ie.scoreByBlankRadio,style:{marginRight:20},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:Lr=>{var Rr,Qr,$r,mo,lo;if(Ee==null||Ee.setFieldValue(["sub_item_banks",Sn,"use_blank_score"],(Rr=Lr==null?void 0:Lr.target)==null?void 0:Rr.value),(Qr=Lr==null?void 0:Lr.target)!=null&&Qr.value){let Ao=0;for(let So in($r=Ee==null?void 0:Ee.getFieldValue(["sub_item_banks",Sn]))==null?void 0:$r.standard_answers)Ao+=Number((lo=(mo=Ee==null?void 0:Ee.getFieldValue(["sub_item_banks",Sn]))==null?void 0:mo.standard_answers[So])==null?void 0:lo.score);Ee==null||Ee.setFieldValue(["sub_item_banks",Sn,"question_score"],Ao||"")}oa(new Date)}}),Lt.createElement(ne.Z,{overlayInnerStyle:{width:460},title:Lt.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",Lt.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},Lt.createElement("i",{className:"icon-tishixiaowenhao font18 mr25 c-3061d0"}))),rt&&Lt.createElement(Be.default.Item,Xt(Ut({},ja),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[Sn,"question_score"],className:yt.blankInputNumberWrapper}),((ir=Bn==null?void 0:Bn[Sn])==null?void 0:ir.question_type)==3&&((Hr=Bn==null?void 0:Bn[Sn])!=null&&Hr.use_blank_score)?Lt.createElement(Dn,null):Lt.createElement(Te.Z,{className:yt.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}})),Lt.createElement(Qe.Z,{align:"middle",className:"pl40",style:{width:82}},Sa!==0&&Lt.createElement("div",{onClick:()=>{var Lr;ga(Sa,Sa-1);const Rr=(Lr=Ee.getFieldValue("sub_item_banks"))==null?void 0:Lr.map((Qr,$r)=>(Ft.map((mo,lo)=>{$r===lo&&(Qr.q_position=Number(mo.name)+1)}),Qr));Ee.setFieldValue("sub_item_banks",Rr)}},Lt.createElement(ne.Z,{title:"\u4E0A\u79FB"},Lt.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),Sa{var Lr;ga(Sa,Sa+1);const Rr=(Lr=Ee.getFieldValue("sub_item_banks"))==null?void 0:Lr.map((Qr,$r)=>(Ft.map((mo,lo)=>{$r===lo&&(Qr.q_position=Number(mo.name)+1)}),Qr));Ee.setFieldValue("sub_item_banks",Rr)},className:Sa===0?"":"ml10"},Lt.createElement(ne.Z,{title:"\u4E0B\u79FB"},Lt.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"})))),Lt.createElement(ne.Z,{title:"\u5220\u9664"},Lt.createElement(hn.Z,{className:`${yt.deleteIcon} ml40`,onClick:()=>$n(Sn)})))},Lt.createElement(Be.default.Item,Xt(Ut({},ja),{name:Sn}),(((Kr=Bn==null?void 0:Bn[Sn])==null?void 0:Kr.question_type)==0||((_r=Bn==null?void 0:Bn[Sn])==null?void 0:_r.question_type)==1)&&Lt.createElement(Da,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((hr=Bn==null?void 0:Bn[Sn])==null?void 0:hr.question_type)==1,form:Ee,choiceKey:[Sn,"choices"],titleKey:[Sn,"name"],analysisKey:[Sn,"analysis"],choiceOptionsPath:["sub_item_banks",Sn,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((xr=Bn==null?void 0:Bn[Sn])==null?void 0:xr.question_type)==3&&Lt.createElement(Yr,{form:Ee,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",name:Sn,scoreByBlank:[Sn,"use_blank_score"],titleKey:[Sn,"name"],analysisKey:[Sn,"analysis"],isOrdered:[Sn,"is_ordered"],answerKey:[Sn,"standard_answers"],key:_n}),((Mr=Bn==null?void 0:Bn[Sn])==null?void 0:Mr.question_type)==2&&Lt.createElement(ia,{form:Ee,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Sn,"name"],analysisKey:[Sn,"analysis"],choiceKey:[Sn,"choices"]}),((tr=Bn==null?void 0:Bn[Sn])==null?void 0:tr.question_type)==4&&Lt.createElement(an,{showKeywords:!0,isMustKeyWords:!0,form:Ee,titleKey:[Sn,"name"],analysisKey:[Sn,"analysis"],answerTexts:[Sn,"answer_texts"],useKeywords:[Sn,"use_keywords"],keywords:[Sn,"keywords"],indexs:Sn,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9",key:_n})))})),Ft.length<20&&Lt.createElement(z.Z,{menu:{items:[{label:Lt.createElement("div",{onClick:()=>{en({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:0,item_type:"SINGLE"}),Ct([Ft==null?void 0:Ft.length,...En])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:Lt.createElement("div",{onClick:()=>{en({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:1,item_type:"MULTIPLE"}),Ct([Ft==null?void 0:Ft.length,...En])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:Lt.createElement("div",{onClick:()=>{en({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",question_type:2,item_type:"JUDGMENT"}),Ct([Ft==null?void 0:Ft.length,...En])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:Lt.createElement("div",{onClick:()=>{en({name:"",analysis:"",is_ordered:!0,standard_answers:[],question_type:3,item_type:"COMPLETION",use_blank_score:!0,downcase:!0,no_space:!0}),Ct([Ft==null?void 0:Ft.length,...En])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:Lt.createElement("div",{onClick:()=>{en({name:"",answer_texts:[],keywords:[],use_keywords:!1,analysis:"",question_type:4,item_type:"SUBJECTIVE"}),Ct([Ft==null?void 0:Ft.length,...En])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(ca=>ca.show).map(ca=>({label:ca.label,key:ca.key}))}},Lt.createElement("div",{className:`${yt.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var mn=oe(59301),Ia=Object.defineProperty,Ca=Object.defineProperties,Ga=Object.getOwnPropertyDescriptors,Ir=Object.getOwnPropertySymbols,Vr=Object.prototype.hasOwnProperty,Or=Object.prototype.propertyIsEnumerable,Zr=(se,Se,Ee)=>Se in se?Ia(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,kr=(se,Se)=>{for(var Ee in Se||(Se={}))Vr.call(Se,Ee)&&Zr(se,Ee,Se[Ee]);if(Ir)for(var Ee of Ir(Se))Or.call(Se,Ee)&&Zr(se,Ee,Se[Ee]);return se},zr=(se,Se)=>Ca(se,Ga(Se)),bo=(se,Se,Ee)=>new Promise((rt,yn)=>{var _n=Ct=>{try{En(Ee.next(Ct))}catch(kt){yn(kt)}},oa=Ct=>{try{En(Ee.throw(Ct))}catch(kt){yn(kt)}},En=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(_n,oa);En((Ee=Ee.apply(se,Se)).next())}),ho=({qitem:se,setisedit:Se,TagDiscipline:Ee,exerciseitem:rt,seveeditor:yn,deleteitem:_n,getTagData:oa,init:En,showTip:Ct=!1})=>{const[kt]=Be.default.useForm();(0,b.useEffect)(()=>{var Ft;kt.setFieldsValue(zr(kr({},se),{name:se.question_title,sub_item_banks:(Ft=se.sub_exercise_questions)==null?void 0:Ft.map(en=>{var $n;return zr(kr({},en),{name:en.question_title,choices:($n=en==null?void 0:en.question_choices)==null?void 0:$n.map(ga=>zr(kr({},ga),{is_answer:ga!=null&&ga.standard_boolean?1:0}))})}),repeat_answer:!se.repeat_answer}))},[se]);const Dn=Ft=>{if(!(Ft!=null&&Ft.length))return!1;const en=Ft.map(ga=>{var Bn;return(Bn=ga.choice_text)==null?void 0:Bn.trim().replace(/^\s+|\s+$/g,"")});return new Set(en).size!==en.length};return mn.createElement("div",null,mn.createElement(Be.default,{form:kt,colon:!1,onValuesChange:(Ft,en)=>{var $n,ga,Bn;if(Ft!=null&&Ft.sub_item_banks){let ca=(($n=kt.getFieldValue("sub_item_banks"))==null?void 0:$n.length)>0&&((Bn=(ga=kt.getFieldValue("sub_item_banks"))==null?void 0:ga.map(Sa=>{var vn;if(Sa.question_type==3&&(Sa!=null&&Sa.use_blank_score)){let yr=0;for(let Sn in Sa==null?void 0:Sa.standard_answers)yr+=Number((vn=Sa==null?void 0:Sa.standard_answers[Sn])==null?void 0:vn.score);return yr}else return Sa.question_score}))==null?void 0:Bn.filter(Sa=>Sa));(ca==null?void 0:ca.length)>0&&kt.setFieldsValue({question_score:parseFloat(ca==null?void 0:ca.reduce((Sa,vn)=>parseFloat(Sa)+parseFloat(vn))).toFixed(1)})}},onFinish:Ft=>{var en,$n;if((en=Ft.sub_item_banks)==null?void 0:en.some(Bn=>Bn.question_type===0||Bn.question_type===1?Dn(Bn.choices):!1)){be.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}yn(zr(kr(kr({},se),Ft),{sub_item_banks:($n=Ft==null?void 0:Ft.sub_item_banks)==null?void 0:$n.map(Bn=>(console.log(Bn),zr(kr({},Bn),{item_type:Bn==null?void 0:Bn.question_type,id:(Bn==null?void 0:Bn.question_id)||""})))}))},onFinishFailed:Ft=>bo(void 0,null,function*(){var en,$n;be.ZP.error(Ft.errorFields[0].errors[0]),kt.scrollToField(($n=(en=Ft==null?void 0:Ft.errorFields)==null?void 0:en[0])==null?void 0:$n.name,{behavior:"smooth",block:"center"})})},mn.createElement("div",{style:{display:"flex",alignItems:"center"}},mn.createElement("div",{style:{flex:1}},mn.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),mn.createElement("span",null,"\u7EC4\u5408\u9898")),!se.isadd&&mn.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{_n()}},mn.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),mn.createElement(We.ZP,{onClick:()=>{var Ft;se.isadd?(Se(!1),En()):(kt.setFieldsValue(zr(kr({},se),{name:se==null?void 0:se.question_title,choices:(Ft=se==null?void 0:se.question_choices)==null?void 0:Ft.map(en=>zr(kr({},en),{standard_boolean:en!=null&&en.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),mn.createElement(ne.Z,{overlayClassName:ie.shake,open:Ct,placement:"bottom",color:"rgba(244,156,14,0.19)",title:mn.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},mn.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},mn.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{kt.submit()}},"\u4FDD\u5B58"))),mn.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},mn.createElement(ba.Z,{text:"\uFF08\u7EC4\u5408\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5C0F\u9898\u5206\u503C\u4E4B\u548C\uFF09"}),mn.createElement(Za,{form:kt,withScore:!0,choiceKey:"",questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7EC4\u5408\u9898\u9898\u5E72\u5185\u5BB9"}),mn.createElement(ct,{getTagData:oa,qitem:se,exerciseitem:rt,TagDiscipline:Ee,form:kt}))))},Eo=oe(13919),Co=oe(24334),Gr=oe(59301),xo=Object.defineProperty,jl=Object.defineProperties,Hl=Object.getOwnPropertyDescriptors,ci=Object.getOwnPropertySymbols,Qi=Object.prototype.hasOwnProperty,zl=Object.prototype.propertyIsEnumerable,ao=(se,Se,Ee)=>Se in se?xo(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,Do=(se,Se)=>{for(var Ee in Se||(Se={}))Qi.call(Se,Ee)&&ao(se,Ee,Se[Ee]);if(ci)for(var Ee of ci(Se))zl.call(Se,Ee)&&ao(se,Ee,Se[Ee]);return se},Uo=(se,Se)=>jl(se,Hl(Se)),Zl=(se,Se,Ee)=>new Promise((rt,yn)=>{var _n=Ct=>{try{En(Ee.next(Ct))}catch(kt){yn(kt)}},oa=Ct=>{try{En(Ee.throw(Ct))}catch(kt){yn(kt)}},En=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(_n,oa);En((Ee=Ee.apply(se,Se)).next())}),ei=({qitem:se,TagDiscipline:Se,exerciseitem:Ee,setisedit:rt,seveeditor:yn,deleteitem:_n,getTagData:oa,init:En,showTip:Ct=!1})=>{const[kt]=Be.default.useForm(),Dn=!0;return(0,b.useEffect)(()=>{var Ft,en,$n;kt.setFieldsValue(Uo(Do({},se),{standard_answers:se.standard_answer,difficulty:se.difficulty,item_banks_group_id:se.item_banks_group_id,hack:Uo(Do({},se),{time_limit:(se==null?void 0:se.time_limit)||3}),hack_codes:{language:(Ft=se==null?void 0:se.program_attr)==null?void 0:Ft.language,code:Co.Base64.decode(((en=se==null?void 0:se.program_attr)==null?void 0:en.code)||"")},hack_sets:Do({},($n=se==null?void 0:se.hack_sets)==null?void 0:$n[0]),repeat_answer:!se.repeat_answer}))},[se]),Gr.createElement("div",null,Gr.createElement(Be.default,{form:kt,colon:!1,onValuesChange:(Ft,en)=>{var $n,ga,Bn,ca;if(Ft!=null&&Ft.standard_answers){let Sa=(($n=kt.getFieldValue("standard_answers"))==null?void 0:$n.length)>0&&((Bn=(ga=kt.getFieldValue("standard_answers"))==null?void 0:ga.map(vn=>vn.score))==null?void 0:Bn.filter(vn=>vn));(Sa==null?void 0:Sa.length)>0&&kt.setFieldsValue({question_score:(Sa==null?void 0:Sa.length)>0&&((ca=Sa.reduce((vn,yr)=>vn+yr))==null?void 0:ca.toFixed(1))})}},onFinish:Ft=>{var en;yn(Uo(Do(Do({},se),Ft),{item_type:se==null?void 0:se.question_type,standard_answers:(en=Ft.standard_answers)==null?void 0:en.map(($n,ga)=>Uo(Do({},$n),{position:ga+1})),standard_answer:void 0}))},onFinishFailed:Ft=>Zl(void 0,null,function*(){var en,$n;be.ZP.error(Ft.errorFields[0].errors[0]),kt.scrollToField(($n=(en=Ft==null?void 0:Ft.errorFields)==null?void 0:en[0])==null?void 0:$n.name,{behavior:"smooth",block:"center"})})},Gr.createElement("div",{style:{display:"flex",alignItems:"center"}},Gr.createElement("div",{style:{flex:1}},Gr.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Gr.createElement("span",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898")),!se.isadd&&Gr.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{_n()}},Gr.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}})," \u5220\u9664"),Gr.createElement(We.ZP,{onClick:()=>{var Ft,en,$n;se.isadd?(rt(!1),En()):(kt.setFieldsValue(Uo(Do({},se),{standard_answers:se.standard_answer,difficulty:se.difficult,item_banks_group_id:se.item_banks_group_id,hack:Do({},se),hack_codes:{language:(Ft=se==null?void 0:se.program_attr)==null?void 0:Ft.language,code:Co.Base64.decode((en=se==null?void 0:se.program_attr)==null?void 0:en.code)},hack_sets:Do({},($n=se==null?void 0:se.hack_sets)==null?void 0:$n[0]),repeat_answer:!se.repeat_answer})),rt(!1))}},"\u53D6\u6D88"),Gr.createElement(ne.Z,{overlayClassName:ie.shake,open:Ct,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Gr.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Gr.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Gr.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{kt.submit()}},"\u4FDD\u5B58"))),Gr.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Gr.createElement(ba.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}),Gr.createElement(Eo.t,{form:kt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7A0B\u5E8F\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:Dn,hackidentifier:se==null?void 0:se.hack_identifier,answerKey:"standard_answers"}),Gr.createElement(ct,{getTagData:oa,qitem:se,exerciseitem:Ee,TagDiscipline:Se,form:kt}))))},jr=oe(59301),Ui=Object.defineProperty,Ki=Object.defineProperties,Wl=Object.getOwnPropertyDescriptors,Yi=Object.getOwnPropertySymbols,Vl=Object.prototype.hasOwnProperty,fo=Object.prototype.propertyIsEnumerable,Ji=(se,Se,Ee)=>Se in se?Ui(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,vo=(se,Se)=>{for(var Ee in Se||(Se={}))Vl.call(Se,Ee)&&Ji(se,Ee,Se[Ee]);if(Yi)for(var Ee of Yi(Se))fo.call(Se,Ee)&&Ji(se,Ee,Se[Ee]);return se},io=(se,Se)=>Ki(se,Wl(Se)),Bi=(se,Se,Ee)=>new Promise((rt,yn)=>{var _n=Ct=>{try{En(Ee.next(Ct))}catch(kt){yn(kt)}},oa=Ct=>{try{En(Ee.throw(Ct))}catch(kt){yn(kt)}},En=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(_n,oa);En((Ee=Ee.apply(se,Se)).next())}),Ql=({qitem:se,setqitem:Se,setisedit:Ee,TagDiscipline:rt,exerciseitem:yn,seveeditor:_n,deleteitem:oa,showTip:En=!1})=>{var Ct;const[kt]=Be.default.useForm();return(0,b.useEffect)(()=>{var Dn,Ft;kt.setFieldsValue(io(vo({},se),{name:se==null?void 0:se.question_title,choices:(Dn=se==null?void 0:se.question_choices)==null?void 0:Dn.map(en=>io(vo({},en),{standard_boolean:en!=null&&en.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)})),se.shixun=(Ft=se==null?void 0:se.shixun)==null?void 0:Ft.map(en=>io(vo({},en),{defaultscore:en.challenge_score}))},[]),jr.createElement("div",null,jr.createElement(Be.default,{form:kt,colon:!1,onFinish:Dn=>{var Ft,en;let $n=io(vo({},Dn),{question_scores:(Ft=se==null?void 0:se.shixun)==null?void 0:Ft.map(ga=>ga.challenge_score),item_type:se==null?void 0:se.question_type,choices:(en=Dn==null?void 0:Dn.choices)==null?void 0:en.map(ga=>io(vo({},ga),{is_answer:ga.standard_boolean}))});_n(vo(vo({},se),$n))},onFinishFailed:Dn=>Bi(void 0,null,function*(){var Ft,en;be.ZP.error(Dn.errorFields[0].errors[0]),kt.scrollToField((en=(Ft=Dn==null?void 0:Dn.errorFields)==null?void 0:Ft[0])==null?void 0:en.name,{behavior:"smooth",block:"center"})})},jr.createElement("div",{style:{display:"flex",alignItems:"center"}},jr.createElement("div",{style:{flex:1}},jr.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),jr.createElement("span",null,"\u5B9E\u8BAD\u9898")),jr.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{oa()}},jr.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),jr.createElement(We.ZP,{onClick:()=>{var Dn,Ft;kt.setFieldsValue(io(vo({},se),{name:se==null?void 0:se.question_title,choices:(Dn=se==null?void 0:se.question_choices)==null?void 0:Dn.map(en=>io(vo({},en),{standard_boolean:en!=null&&en.standard_boolean?1:0})),repeat_answer:!(se!=null&&se.repeat_answer)})),se.shixun=(Ft=se==null?void 0:se.shixun)==null?void 0:Ft.map(en=>io(vo({},en),{challenge_score:en.defaultscore})),Se(vo({},se)),Ee(!1)}},"\u53D6\u6D88"),jr.createElement(ne.Z,{overlayClassName:ie.shake,open:En,placement:"bottom",color:"rgba(244,156,14,0.19)",title:jr.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},jr.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},jr.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>Bi(void 0,null,function*(){var Dn,Ft,en,$n;if(((Ft=(Dn=se==null?void 0:se.shixun)==null?void 0:Dn.map)==null?void 0:Ft.call(Dn,ca=>ca.challenge_score).filter(ca=>ca).length)<((en=se==null?void 0:se.shixun)==null?void 0:en.length)){be.ZP.info("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A");return}const ga=parseFloat(kt.getFieldValue("question_score")),Bn=parseFloat(($n=se==null?void 0:se.shixun)==null?void 0:$n.map(ca=>ca.challenge_score).reduce((ca,Sa)=>parseFloat(ca||0)+parseFloat(Sa||0)));if((se==null?void 0:se.shixun_mode)===2&&ga!==Bn){be.ZP.info("\u8003\u70B9\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BD5\u9898\u5206\u503C");return}kt.submit()})},"\u4FDD\u5B58"))),jr.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},(se==null?void 0:se.shixun_mode)===0?jr.createElement(ba.Z,{text:"\uFF08\u5B9E\u8BAD\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5173\u5361\u5206\u503C\u4E4B\u548C\uFF09"}):jr.createElement(Be.default.Item,{className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},jr.createElement(Te.Z,{onChange:Dn=>{var Ft;(se==null?void 0:se.shixun_mode)===1&&((Ft=se==null?void 0:se.shixun)==null?void 0:Ft.length)===1&&(se.shixun[0].challenge_score=Dn,Se(vo({},se)))},onBlur:Dn=>{const Ft=Number(Dn.target.value);Ft<1&&be.ZP.error("\u5206\u6570\u4E0D\u80FD\u5C0F\u4E8E1"),Ft>200&&be.ZP.error("\u5206\u6570\u4E0D\u80FD\u5927\u4E8E200")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:200,min:1})),jr.createElement(Be.default.Item,{label:"\u9898\u5E72",name:"question_title",labelCol:{span:24},rules:[{required:!0}]},jr.createElement(je.Z,{watch:!0,height:140,placeholder:"",defaultValue:se.question_title})),jr.createElement(Qe.Z,{style:{marginBottom:15},align:"middle",justify:"space-between"},jr.createElement("div",null,jr.createElement("span",{style:{color:"red"}},"*"),(se==null?void 0:se.shixun_mode)===2?"\u8003\u70B9":"\u5173\u5361","\u540D\u79F0"),jr.createElement("a",{href:`/shixuns/${se==null?void 0:se.shixun_identifier}/challenges?exercise=true`,target:"_blank"},jr.createElement("i",{onClick:()=>{},className:"iconfont icon-shixunkecheng font14 mr5"}),"\u5B9E\u8BAD\u8BE6\u60C5")),(Ct=se==null?void 0:se.shixun)==null?void 0:Ct.map((Dn,Ft)=>jr.createElement("div",{key:Dn.challenge_id,style:{display:"flex",marginBottom:20}},jr.createElement("div",{style:{flex:1}},Ft+1,"\u3001",Dn.challenge_name),jr.createElement("div",null,jr.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C",jr.createElement(Te.Z,{precision:1,value:Dn==null?void 0:Dn.challenge_score,onChange:en=>{const $n=JSON.parse(JSON.stringify((se==null?void 0:se.shixun)||[]));$n[Ft].challenge_score=en;const ga=$n.every(ca=>!ca.challenge_score),Bn=parseFloat($n==null?void 0:$n.map(ca=>ca.challenge_score).reduce((ca,Sa)=>parseFloat(ca||0)+parseFloat(Sa||0)));(se==null?void 0:se.shixun_mode)!==2&&kt.setFieldsValue({question_score:ga?"":Bn.toFixed(1)}),Se(io(vo({},se),{shixun:$n}))},max:200,min:1,style:{marginLeft:10,width:150},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle"})))))))},ta={flex_box_center:"flex_box_center___ljmk3",flex_space_between:"flex_space_between___Fy45C",flex_box_vertical_center:"flex_box_vertical_center___SoC1C",flex_box_center_end:"flex_box_center_end___MumBX",flex_box_column:"flex_box_column___cutpt",warp:"warp___w1JUC",indexTag:"indexTag___LPncW",normalWrap:"normalWrap___pEIzs",redio:"redio___I6tXM",redioitem:"redioitem___cS4Gp",redioitemyes:"redioitemyes___JBDmk",title:"title___XAohQ",titleyes:"titleyes____bNQk",yestag:"yestag___zQnb1",checkbox:"checkbox___MHadU",checkboxitem:"checkboxitem___KX7mB",checkboxitemyes:"checkboxitemyes___MpOWf",bottom:"bottom___FkHfO",bottomitem:"bottomitem___AS0Qp",left:"left___U23z1",right:"right___yJVEk",completion:"completion___Bu5G6",content:"content___LySPW",items:"items___ETMq9",simple:"simple___XX5t0",shixunWrapper:"shixunWrapper___w6oIG",shixun:"shixun___ePWKn",score:"score___nGh9k",qtitle:"qtitle___DAMW1",program:"program___Mm1qL",combination:"combination___Sw7S6",qtype:"qtype___Xdl60",divname:"divname___AZYhO"},Xi=oe(1710),Ul=oe(78926),On=oe(59301);const gi=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],Kl=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}];var Yl=({qitem:se,newExercisePaper:Se})=>{var Ee,rt,yn,_n,oa,En,Ct,kt,Dn,Ft,en,$n,ga,Bn,ca,Sa,vn,yr,Sn,ja,nn,gr,Dr,Br,Pr;return On.createElement("div",{className:ta.warp},((se==null?void 0:se.question_type)===0||(se==null?void 0:se.question_type)===2)&&On.createElement("div",{className:ta.normalWrap},(Ee=se==null?void 0:se.question_choices)==null?void 0:Ee.map((Vn,ir)=>On.createElement("div",{className:ta.redio,key:ir},!(Vn!=null&&Vn.standard_boolean)&&On.createElement("span",{className:ta.redioitem}),(Vn==null?void 0:Vn.standard_boolean)&&On.createElement("i",{className:`${ta.redioitemyes} icon-duigou1`}),On.createElement("span",{className:`${Vn!=null&&Vn.standard_boolean?ta.titleyes:ta.title} ${ta.indexTag}`},(se==null?void 0:se.question_type)===0?gi[ir]:""),On.createElement(lt.Z,{className:Vn!=null&&Vn.standard_boolean?ta.titleyes:ta.title,value:Vn==null?void 0:Vn.choice_text}),(Vn==null?void 0:Vn.standard_boolean)&&On.createElement("div",{className:ta.yestag},"\u6B63\u786E\u7B54\u6848")))),(se==null?void 0:se.question_type)===1&&On.createElement("div",{className:ta.normalWrap},(rt=se==null?void 0:se.question_choices)==null?void 0:rt.map((Vn,ir)=>On.createElement("div",{className:ta.checkbox,key:ir},!(Vn!=null&&Vn.standard_boolean)&&On.createElement("span",{className:ta.checkboxitem}),(Vn==null?void 0:Vn.standard_boolean)&&On.createElement("i",{className:`${ta.checkboxitemyes} icon-duigou1`}),On.createElement("span",{className:`${Vn!=null&&Vn.standard_boolean?ta.titleyes:ta.title} ${ta.indexTag}`},gi[ir]),On.createElement(lt.Z,{className:Vn!=null&&Vn.standard_boolean?ta.titleyes:ta.title,value:Vn==null?void 0:Vn.choice_text}),(Vn==null?void 0:Vn.standard_boolean)&&On.createElement("div",{className:ta.yestag},"\u6B63\u786E\u7B54\u6848")))),(se==null?void 0:se.question_type)===3&&On.createElement("div",{className:ta.completion},(yn=se==null?void 0:se.standard_answers)==null?void 0:yn.map((Vn,ir)=>{var Hr;return On.createElement(Qe.Z,{align:"top"},On.createElement("span",{className:ta.title},"\u586B\u7A7A\u9879",ir+1),On.createElement("div",{className:ta.content},(Hr=Vn.answer_text)==null?void 0:Hr.map((Kr,_r)=>On.createElement("div",{key:_r,className:ta.items,style:(Vn==null?void 0:Vn.model)===2?{border:0,padding:0}:{}},(Vn==null?void 0:Vn.model)===1?On.createElement("pre",{className:"mb0"},Kr):On.createElement(Ul.Z,{value:Kr,disabled:!0})))))})),(se==null?void 0:se.question_type)===4&&On.createElement("div",{className:ta.simple},On.createElement("div",{className:ta.title},"\u53C2\u8003\u7B54\u6848"),On.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(_n=se==null?void 0:se.answer_texts)!=null&&_n[0]?On.createElement(lt.Z,{className:ta.content,value:(oa=se==null?void 0:se.answer_texts)==null?void 0:oa[0]}):On.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),On.createElement("div",{className:"mt20 "},On.createElement("span",{className:ta.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),On.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},se!=null&&se.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))),(se==null?void 0:se.question_type)===5&&On.createElement("div",{className:ta.shixunWrapper},(En=se==null?void 0:se.shixun)==null?void 0:En.map((Vn,ir)=>{var Hr,Kr;return On.createElement("div",null,On.createElement("div",{key:ir,className:`${ta.shixun} mb30`},On.createElement("span",{className:ta.score},"\uFF08",Vn==null?void 0:Vn.challenge_score,"\u5206\uFF09"),On.createElement("span",{className:ta.qtitle},(se==null?void 0:se.index)+"."+(ir+1),"\u3001",Vn==null?void 0:Vn.challenge_name)),((Kr=(Hr=Se==null?void 0:Se.editData)==null?void 0:Hr.exercise)==null?void 0:Kr.show_challenge_task_pass)&&On.createElement(lt.Z,{className:ta.content,value:(Vn==null?void 0:Vn.challenge_task_pass)||"\u6682\u65E0\u5173\u5361\u63CF\u8FF0"}))})),(se==null?void 0:se.question_type)===6&&On.createElement("div",{className:ta.program,style:{border:!((kt=(Ct=Se==null?void 0:Se.editData)==null?void 0:Ct.exercise)!=null&&kt.show_hack_sets)&&!((Ft=(Dn=Se==null?void 0:Se.editData)==null?void 0:Dn.exercise)!=null&&Ft.show_hack_description)&&"none"}},(($n=(en=Se==null?void 0:Se.editData)==null?void 0:en.exercise)==null?void 0:$n.show_hack_sets)&&On.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},On.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},On.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),On.createElement(Xi.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(Vn,ir,Hr)=>Hr+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(Vn,ir,Hr)=>On.createElement(ne.Z,{title:On.createElement("pre",null,Vn)},On.createElement("div",{className:ta.divname},Vn))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(Vn,ir,Hr)=>On.createElement(ne.Z,{title:On.createElement("pre",null,Vn)}," ",On.createElement("div",{className:ta.divname},Vn))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:(ga=se==null?void 0:se.program_attr)==null?void 0:ga.hack_sets})),((ca=(Bn=Se==null?void 0:Se.editData)==null?void 0:Bn.exercise)==null?void 0:ca.show_hack_description)&&On.createElement("div",null,On.createElement(lt.Z,{className:ta.content,value:(se==null?void 0:se.description)||"- -"}))),(se==null?void 0:se.question_type)===7&&((Sa=se==null?void 0:se.sub_exercise_questions)==null?void 0:Sa.map((Vn,ir)=>{var Hr,Kr,_r,hr,xr,Mr;return On.createElement("div",{key:ir},On.createElement("div",{className:ta.combination},On.createElement("span",{className:ta.score},Vn==null?void 0:Vn.question_score,"\u5206"),On.createElement("span",{className:ta.qtype},(Hr=Kl.find(tr=>tr.type==Vn.question_type))==null?void 0:Hr.name),On.createElement("span",{className:ta.qtitle},On.createElement(lt.Z,{value:`${ir+1}\u3001${Vn==null?void 0:Vn.question_title}`}))),(Vn.question_type===0||Vn.question_type===2)&&On.createElement("div",{className:ta.warp,style:{padding:"20px 58px 0 58px"}},On.createElement("div",null,(Kr=Vn==null?void 0:Vn.question_choices)==null?void 0:Kr.map((tr,Lr)=>On.createElement("div",{className:ta.redio,key:Lr},!(tr!=null&&tr.standard_boolean)&&On.createElement("span",{className:ta.redioitem}),(tr==null?void 0:tr.standard_boolean)&&On.createElement("i",{className:`${ta.redioitemyes} icon-duigou1`}),On.createElement("span",{className:`${tr!=null&&tr.standard_boolean?ta.titleyes:ta.title} ${ta.indexTag}`},gi[Lr]),On.createElement(lt.Z,{className:tr!=null&&tr.standard_boolean?ta.titleyes:ta.title,value:tr==null?void 0:tr.choice_text}),(tr==null?void 0:tr.standard_boolean)&&On.createElement("div",{className:ta.yestag},"\u6B63\u786E\u7B54\u6848"))))),Vn.question_type===1&&On.createElement("div",{className:ta.normalWrap},(_r=Vn==null?void 0:Vn.question_choices)==null?void 0:_r.map((tr,Lr)=>On.createElement("div",{className:ta.checkbox,key:Lr},!(tr!=null&&tr.standard_boolean)&&On.createElement("span",{className:ta.checkboxitem}),(tr==null?void 0:tr.standard_boolean)&&On.createElement("i",{className:`${ta.checkboxitemyes} icon-duigou1`}),On.createElement("span",{className:`${tr!=null&&tr.standard_boolean?ta.titleyes:ta.title} ${ta.indexTag}`},gi[Lr]),On.createElement(lt.Z,{className:tr!=null&&tr.standard_boolean?ta.titleyes:ta.title,value:tr==null?void 0:tr.choice_text}),(tr==null?void 0:tr.standard_boolean)&&On.createElement("div",{className:ta.yestag},"\u6B63\u786E\u7B54\u6848")))),Vn.question_type===3&&On.createElement("div",{className:ta.completion},(hr=Vn==null?void 0:Vn.standard_answers)==null?void 0:hr.map((tr,Lr)=>{var Rr;return On.createElement(Qe.Z,{align:"top"},On.createElement("span",{className:ta.title},"\u586B\u7A7A\u9879",Lr+1),On.createElement("div",{className:ta.content},(Rr=tr.answer_text)==null?void 0:Rr.map((Qr,$r)=>On.createElement("div",{key:$r,className:ta.items},On.createElement("pre",{className:"mb0"},Qr)))))})),Vn.question_type===4&&On.createElement("div",{className:ta.simple},On.createElement("div",{className:ta.title},"\u53C2\u8003\u7B54\u6848"),On.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(xr=Vn==null?void 0:Vn.answer_texts)!=null&&xr[0]?On.createElement(lt.Z,{className:ta.content,value:(Mr=Vn==null?void 0:Vn.answer_texts)==null?void 0:Mr[0]}):On.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),On.createElement("div",{className:"mt20 "},On.createElement("span",{className:ta.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),On.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},Vn!=null&&Vn.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))))})),(se==null?void 0:se.question_type)===8&&On.createElement("div",null,On.createElement(lt.Z,{disabledFill:!0,className:ta.content,showProgramFill:!0,value:Co.Base64.decode(((vn=se==null?void 0:se.program_attr)==null?void 0:vn.code)||"")})),((se==null?void 0:se.question_type)<=4||[6,8].includes(se==null?void 0:se.question_type))&&On.createElement("div",{className:ta.bottom},On.createElement("div",{className:`${ta.bottomitem} mb30`},On.createElement("span",{className:ta.left},"\u89E3\u6790"),On.createElement("span",{className:ta.right},se!=null&&se.analysis?On.createElement(lt.Z,{value:se==null?void 0:se.analysis}):On.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),On.createElement("div",{className:`${ta.bottomitem} mb30`},On.createElement("span",{className:ta.left},"\u96BE\u5EA6"),On.createElement("span",{className:ta.right},(se==null?void 0:se.difficulty)===1?"\u7B80\u5355":(se==null?void 0:se.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),On.createElement("div",{className:ta.bottomitem},On.createElement("span",{className:ta.left},"\u77E5\u8BC6\u70B9"),On.createElement(ne.Z,{title:((yr=se==null?void 0:se.tag_discipline_names)==null?void 0:yr.length)<=0||((Sn=se==null?void 0:se.tag_discipline_names)==null?void 0:Sn.length)==1&&["-"].includes(se==null?void 0:se.tag_discipline_names[0])?"\u6682\u672A\u8BBE\u7F6E~":(nn=(ja=se==null?void 0:se.tag_discipline_names)==null?void 0:ja.join("\uFF1B"))==null?void 0:nn.toString()},On.createElement("span",{className:ta.right},((gr=se==null?void 0:se.tag_discipline_names)==null?void 0:gr.length)<=0?On.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):((Dr=se==null?void 0:se.tag_discipline_names)==null?void 0:Dr.length)==1&&["-"].includes(se==null?void 0:se.tag_discipline_names[0])?On.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):(Pr=(Br=se==null?void 0:se.tag_discipline_names)==null?void 0:Br.join("\uFF1B"))==null?void 0:Pr.toString())))))},qi=oe(13778),bi=oe(2078),to=oe(59301),Jl=Object.defineProperty,ti=Object.defineProperties,Xl=Object.getOwnPropertyDescriptors,Ci=Object.getOwnPropertySymbols,_i=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable,el=(se,Se,Ee)=>Se in se?Jl(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,ni=(se,Se)=>{for(var Ee in Se||(Se={}))_i.call(Se,Ee)&&el(se,Ee,Se[Ee]);if(Ci)for(var Ee of Ci(Se))$i.call(Se,Ee)&&el(se,Ee,Se[Ee]);return se},tl=(se,Se)=>ti(se,Xl(Se)),ai=(se,Se,Ee)=>new Promise((rt,yn)=>{var _n=Ct=>{try{En(Ee.next(Ct))}catch(kt){yn(kt)}},oa=Ct=>{try{En(Ee.throw(Ct))}catch(kt){yn(kt)}},En=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(_n,oa);En((Ee=Ee.apply(se,Se)).next())}),ql=({qitem:se,setisedit:Se,TagDiscipline:Ee,exerciseitem:rt,seveeditor:yn,deleteitem:_n,getTagData:oa,init:En,showTip:Ct=!1})=>{const[kt]=Be.default.useForm();return(0,b.useEffect)(()=>{kt.setFieldsValue(tl(ni({},se),{name:se.question_title,answer_texts:se.answer_texts,repeat_answer:!se.repeat_answer}))},[se]),to.createElement("div",null,to.createElement(Be.default,{form:kt,colon:!1,onFinish:Dn=>{yn(ni(ni({},se),Dn))},onFinishFailed:Dn=>ai(void 0,null,function*(){var Ft,en;be.ZP.error(Dn.errorFields[0].errors[0]),kt.scrollToField((en=(Ft=Dn==null?void 0:Dn.errorFields)==null?void 0:Ft[0])==null?void 0:en.name,{behavior:"smooth",block:"center"})})},to.createElement("div",{style:{display:"flex",alignItems:"center"}},to.createElement("div",{style:{flex:1}},to.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),to.createElement("span",null,"\u7B80\u7B54\u9898")),!(se!=null&&se.isadd)&&to.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{_n()}},to.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),to.createElement(We.ZP,{onClick:()=>{se.isadd?(Se(!1),En()):(kt.setFieldsValue(tl(ni({},se),{name:se==null?void 0:se.question_title,answer_texts:se.answer_texts||[],repeat_answer:!(se!=null&&se.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),to.createElement(ne.Z,{overlayClassName:ie.shake,open:Ct,placement:"bottom",color:"rgba(244,156,14,0.19)",title:to.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},to.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},to.createElement(We.ZP,{type:"primary",className:"ml20",onClick:()=>{kt.submit()}},"\u4FDD\u5B58"))),to.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},to.createElement(Be.default.Item,{className:ie.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},to.createElement(Te.Z,{onBlur:Dn=>{Dn.target.value==="0"&&be.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),to.createElement(bi.W,{form:kt,showKeywords:!0,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"}),to.createElement(ct,{getTagData:oa,qitem:se,exerciseitem:rt,TagDiscipline:Ee,form:kt}))))},Jr=oe(59301),_l=(se,Se,Ee)=>new Promise((rt,yn)=>{var _n=Ct=>{try{En(Ee.next(Ct))}catch(kt){yn(kt)}},oa=Ct=>{try{En(Ee.throw(Ct))}catch(kt){yn(kt)}},En=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(_n,oa);En((Ee=Ee.apply(se,Se)).next())}),xi=({setScoreShow:se,ScoreShow:Se,exerciseitem:Ee,getdata:rt})=>{var yn,_n,oa;const[En,Ct]=(0,b.useState)(!1);function kt(){return _l(this,null,function*(){var Dn,Ft,en;let $n=(Ft=(Dn=Ee==null?void 0:Ee.exercise_question_types)==null?void 0:Dn.filter(Bn=>Bn.Singlequestion))==null?void 0:Ft.map(Bn=>({question_type:Bn.question_type,score:Bn.Singlequestion})),ga=yield(0,fe.ZP)(`/api/examination_banks/${(en=Ee==null?void 0:Ee.exercise)==null?void 0:en.id}/batch_set_score.json`,{method:"POST",body:{question_arr:$n}});(ga==null?void 0:ga.status)===0&&rt()})}return Jr.createElement("div",null,Se&&Jr.createElement(x.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:Se,width:640,centered:!0,zIndex:10,className:ie.scoremodal,onCancel:()=>{se(!1)},onOk:()=>{var Dn,Ft,en;if(Ee!=null&&Ee.use_blank_score&&((en=(Ft=(Dn=Ee==null?void 0:Ee.exercise_question_types)==null?void 0:Dn.filter($n=>$n.name==="\u586B\u7A7A\u9898"))==null?void 0:Ft[0])!=null&&en.Singlequestion)){Ct(!0);return}kt(),se(!1)}},Jr.createElement("div",{className:"c-black"},"\u603B\u5206",Jr.createElement("span",{className:"ml10 c-light-primary"},(Ee==null?void 0:Ee.exercise_question_types.length)>0&&((yn=Ee==null?void 0:Ee.exercise_types)==null?void 0:yn.q_scores))),Jr.createElement("div",{className:ie.content},Jr.createElement("span",null,"\u9898\u578B\u540D\u79F0"),Jr.createElement("span",null,"\u5C0F\u9898\u603B\u6570"),Jr.createElement("span",null,"\u9898\u578B\u603B\u5206"),Jr.createElement("span",null,"\u64CD\u4F5C")),(oa=(_n=Ee==null?void 0:Ee.exercise_question_types)==null?void 0:_n.filter(Dn=>Dn.name!=="\u5B9E\u8BAD\u9898"&&Dn.name!=="\u7EC4\u5408\u9898"))==null?void 0:oa.map((Dn,Ft)=>{var en;return Jr.createElement("div",{key:Ft,className:ie.items},Jr.createElement("span",null,Dn==null?void 0:Dn.name),Jr.createElement("span",null,(en=Dn==null?void 0:Dn.items)==null?void 0:en.length),Jr.createElement("span",null,Dn==null?void 0:Dn.score),Jr.createElement("span",null,"\u6BCF\u9898",Jr.createElement(Te.Z,{min:.1,precision:1,max:100,onChange:$n=>{Dn.Singlequestion=$n},defaultValue:Dn.Singlequestion,style:{width:90,height:38,margin:"0px 10px",display:"flex",alignItems:"center"}}),"\u5206"))})),Jr.createElement(x.default,{title:!1,footer:!1,centered:!0,open:En,zIndex:20,width:640,closable:!1,className:ie.scoremodal},Jr.createElement("div",{style:{marginTop:40}},"\u586B\u7A7A\u9898\u4E2D\u5B58\u5728",Jr.createElement("span",{style:{color:"#FA6400"}},"\u6309\u7A7A\u7ED9\u5206"),"\u7684\u5C0F\u9898\uFF0C\u82E5\u6279\u91CF\u8BBE\u7F6E\u5206\u503C\u4F1A\u7EDF\u4E00\u5C06\u586B\u7A7A\u9898\u6539\u4E3A\u6309\u9898\u7ED9\u5206"),Jr.createElement("div",{className:ie.bottom},Jr.createElement(We.ZP,{className:ie.no,onClick:()=>{Ct(!1)}},"\u53D6\u6D88"),Jr.createElement(We.ZP,{className:ie.yes,onClick:()=>{kt(),Ct(!1),se(!1)}},"\u786E\u8BA4"))))},wi=oe(26995),Di=oe(49613),nl=oe(89392),$l=oe(29590),al=oe(5864),eu=oe(51529),Gn=oe(59301),tu=Object.defineProperty,nu=Object.defineProperties,au=Object.getOwnPropertyDescriptors,rl=Object.getOwnPropertySymbols,ru=Object.prototype.hasOwnProperty,ol=Object.prototype.propertyIsEnumerable,il=(se,Se,Ee)=>Se in se?tu(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,co=(se,Se)=>{for(var Ee in Se||(Se={}))ru.call(Se,Ee)&&il(se,Ee,Se[Ee]);if(rl)for(var Ee of rl(Se))ol.call(Se,Ee)&&il(se,Ee,Se[Ee]);return se},Lo=(se,Se)=>nu(se,au(Se)),Ur=(se,Se,Ee)=>new Promise((rt,yn)=>{var _n=Ct=>{try{En(Ee.next(Ct))}catch(kt){yn(kt)}},oa=Ct=>{try{En(Ee.throw(Ct))}catch(kt){yn(kt)}},En=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(_n,oa);En((Ee=Ee.apply(se,Se)).next())});const Ko=[{name:"\u5355\u9009\u9898",id:0,count:"q_singles",score:"q_singles_scores",nameType:"SINGLE"},{name:"\u591A\u9009\u9898",id:1,count:"q_doubles",score:"q_doubles_scores",nameType:"MULTIPLE"},{name:"\u5224\u65AD\u9898",id:2,count:"q_judges",score:"q_judges_scores",nameType:"JUDGMENT"},{name:"\u586B\u7A7A\u9898",id:3,count:"q_nulls",score:"q_nulls_scores",nameType:"COMPLETION"},{name:"\u7B80\u7B54\u9898",id:4,count:"q_mains",score:"q_mains_scores",nameType:"SUBJECTIVE"},{name:"\u5B9E\u8BAD\u9898",id:5,count:"q_shixuns",score:"q_shixuns_scores",nameType:"PRACTICAL"},{name:"\u7F16\u7A0B\u9898",id:6,count:"q_pros",score:"q_pros_scores",nameType:"PROGRAM"},{name:"\u7EC4\u5408\u9898",id:7,count:"q_combinations",score:"q_combinations_scores",nameType:"COMBINATION"},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",id:8,count:"q_combinations",score:"q_combinations_scores",nameType:"BPROGRAM"}],ou=({user:se,dispatch:Se,itemid:Ee,newExercisePaper:rt,setisedits:yn})=>{var _n,oa,En,Ct,kt,Dn,Ft,en,$n,ga,Bn,ca,Sa;const[vn,yr]=(0,b.useState)(),[Sn,ja]=(0,b.useState)(!1),[nn,gr]=(0,b.useState)(),[Dr,Br]=(0,b.useState)(),Pr=(0,b.useRef)(),Vn=(0,b.useRef)(),[ir,Hr]=(0,b.useState)(),[Kr,_r]=(0,b.useState)(!1),[hr,xr]=(0,b.useState)(!1),[Mr,tr]=(0,b.useState)(),[Lr,Rr]=(0,b.useState)(!1),[Qr,$r]=(0,b.useState)(!1),[mo,lo]=(0,b.useState)(!1),[Ao,So]=(0,b.useState)(!1),[vi,ri]=(0,b.useState)(!1),[Io,cl]=(0,b.useState)(!1),[uu,gl]=(0,b.useState)(!1),[su,Ti]=(0,b.useState)(!1),[Jo]=Be.default.useForm(),[du,oi]=(0,b.useState)(!1),ml=(0,b.useRef)(null),[eo]=(0,he.useSearchParams)(),[pi,ii]=(0,b.useState)(!1),fl=eo.get("isIntelligentAssistant"),[yo,hi]=(0,b.useState)(!1);(0,b.useEffect)(()=>{ro(),Se({type:"globalSetting/footerToggle",payload:!1})},[]),(0,b.useEffect)(()=>{yn(hr)},[hr]),(0,b.useEffect)(()=>{nn!=null&&nn.question_id&&(Br(nn==null?void 0:nn.question_score),Vn.current=nn==null?void 0:nn.question_id)},[nn]);const wo=jn=>Ur(void 0,null,function*(){let Aa=yield Se({type:"newExercisePaper/getTagDiscipline",payload:{sub_discipline_id:jn}});tr(Aa)});function ro(){return Ur(this,null,function*(){var jn,Aa,Ua,mr,br,Wr;_r(!0),ja(!0);const wr=yield Se({type:"newExercisePaper/editExercise",payload:{id:Ee}});_r(!1),ja(!1),yr(wr),(jn=wr==null?void 0:wr.exercise)!=null&&jn.sub_discipline_id&&wo((Aa=wr==null?void 0:wr.exercise)==null?void 0:Aa.sub_discipline_id),gr(Lo(co({},(br=(mr=(Ua=wr==null?void 0:wr.exercise_question_types)==null?void 0:Ua[0])==null?void 0:mr.items)==null?void 0:br[0]),{index:1})),Hr(Lo(co({},(Wr=wr==null?void 0:wr.exercise_question_types)==null?void 0:Wr[0]),{indexs:1}))})}function No(jn,Aa=!0){return Ur(this,null,function*(){var Ua,mr,br,Wr;Aa&&(_r(!0),ja(!0));const wr=yield Se({type:"newExercisePaper/editExercise",payload:{id:Ee}});yr(wr);let no=[];(Ua=wr==null?void 0:wr.exercise_question_types)==null||Ua.map(po=>{var Mo;(Mo=po==null?void 0:po.items)==null||Mo.map((Go,Ei)=>{no.push(Lo(co({},Go),{index:Ei+1}))})});let Oo=(mr=no.filter(po=>po.question_id===(jn==null?void 0:jn.id)))==null?void 0:mr[0],Pi=(Wr=((br=wr==null?void 0:wr.exercise_question_types)==null?void 0:br.map((po,Mo)=>{if((Oo==null?void 0:Oo.question_type)===(po==null?void 0:po.question_type))return Lo(co({},po),{indexs:Mo+1})})).filter(po=>po))==null?void 0:Wr[0];Hr(co({},Pi)),gr(co({},Oo)),Br(Oo==null?void 0:Oo.question_score),_r(!1),ja(!1)})}function Qo(jn){return Ur(this,null,function*(){var Aa;let Ua=Lo(co({},jn),{difficulty:(jn==null?void 0:jn.difficulty)||2,item_type:jn.question_type,sub_discipline_id:((Aa=jn==null?void 0:jn.sub_discipline_id)==null?void 0:Aa[1])||"",tag_discipline_ids:[],repeat_answer:!jn.repeat_answer}),mr={};jn.question_type===8&&(mr=Lo(co({},jn),{hack:Lo(co({},jn==null?void 0:jn.hack),{difficult:jn.difficulty}),hack_codes:Lo(co({},jn.hack_codes),{code:Co.Base64.encode(jn.hack_codes.code)}),hack_sets:[co({},jn.hack_sets)],is_blank:!0})),jn.tag_discipline_ids&&(Ua.tag_discipline_ids=Array.isArray(jn.tag_discipline_ids)?jn.tag_discipline_ids:[jn.tag_discipline_ids],mr.tag_discipline_ids=Array.isArray(jn.tag_discipline_ids)?jn.tag_discipline_ids:[jn.tag_discipline_ids]),sessionStorage.projectFill&&(mr.hack_identifier=sessionStorage.projectFill);let br=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/examination_banks_item_banks/create_item_bank.json`,{method:"post",body:jn.question_type===8?mr:Ua});(br==null?void 0:br.status)===0&&(xr(!1),No(br)),(0,ge.Vf)("#question-scroll-id")})}function Ou(jn){return Ur(this,null,function*(){ja(!0);let Aa=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/sort_question_type.json`,{method:"post",body:{question_type:jn}});ja(!1),(Aa==null?void 0:Aa.status)===0&&ro()})}const cu=(jn,Aa,Ua)=>Ur(void 0,null,function*(){var mr;if(jn.length===0){be.ZP.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),Ua();return}const br=yield(0,le.Hb)(Ee,(mr=jn[0])==null?void 0:mr.file,Aa);br.status===0&&(be.ZP.success(`\u6210\u529F\u5BFC\u5165${br==null?void 0:br.success}\u6761`),Rr(!1),ro()),Ua()}),vl=(jn,Aa)=>Ur(void 0,null,function*(){vn.exercise_types.q_scores=Number(vn.exercise_types.q_scores)+Number(jn)-Number(Aa==null?void 0:Aa.question_score);const Ua=yield(0,le.kF)({score:(0,nl.round)(jn,1),question_id:Aa==null?void 0:Aa.question_id});if((Ua==null?void 0:Ua.status)===0){be.ZP.success("\u4FEE\u6539\u6210\u529F"),No({id:Vn.current},!1);return}(Ua==null?void 0:Ua.status)===-1&&Br(Aa==null?void 0:Aa.question_score)});function ko(){return Ur(this,null,function*(){x.default.confirm({title:"\u63D0\u793A",content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",okText:"\u786E\u5B9A",centered:!0,className:ie.modalconfirm,onOk:()=>Ur(this,null,function*(){if(nn.question_id){let jn=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/examination_banks_item_banks/${nn.question_id}.json`,{method:"delete"});(jn==null?void 0:jn.status)===0&&(ro(),xr(!1))}else gr({}),xr(!1),ro()}),cancelText:"\u53D6\u6D88"})})}const gu=jn=>Ur(void 0,null,function*(){return yield(0,fe.ZP)(`/api/examination_banks/${Ee}/examination_banks_item_banks.json`,{method:"post",body:co({},jn)})}),{overflow:mu,handleMouseEnter:Xo,handleMouseLeave:qo}=(0,Di.I)(),Si=jn=>Ur(void 0,null,function*(){var Aa,Ua;ja(!0);let mr=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/sort_question_type.json`,{method:"post",body:{question_type:jn}});if(ja(!1),(mr==null?void 0:mr.status)===0){const br=yield Se({type:"newExercisePaper/editExercise",payload:{id:Ee}});yr(br),(Aa=br==null?void 0:br.exercise)!=null&&Aa.sub_discipline_id&&wo((Ua=br==null?void 0:br.exercise)==null?void 0:Ua.sub_discipline_id)}}),Fo=()=>hr?(hi(!0),!0):!1;(0,b.useEffect)(()=>{if(yo){const jn=setTimeout(()=>{hi(!1)},2e3);return()=>clearTimeout(jn)}},[yo]);const pl=(jn,Aa)=>Gn.createElement(y.default,null,Gn.createElement(y.default.Item,{key:"0",onClick:()=>hl(jn==null?void 0:jn.question_type)},Gn.createElement("span",{className:ie.moreSpan},"\u65B0\u589E")),Gn.createElement(y.default.Item,{key:"1",disabled:Aa===0,onClick:()=>Ur(void 0,null,function*(){if(Aa===0||Fo())return;let Ua=(0,ge.rz)(vn==null?void 0:vn.exercise_question_types,Aa,Aa-1);yield Si(Ua.map(mr=>mr.name))})},Gn.createElement("span",{className:ie.moreSpan},"\u4E0A\u79FB")),Gn.createElement(y.default.Item,{key:"2",disabled:Aa===(vn==null?void 0:vn.exercise_question_types.length)-1,onClick:()=>Ur(void 0,null,function*(){if(Aa===(vn==null?void 0:vn.exercise_question_types.length)-1||Fo())return;let Ua=(0,ge.rz)(vn==null?void 0:vn.exercise_question_types,Aa,Aa+1);yield Si(Ua.map(mr=>mr.name))})},Gn.createElement("span",{className:ie.moreSpan},"\u4E0B\u79FB")),Gn.createElement(y.default.Item,{key:"3",onClick:()=>{var Ua;Jo.setFieldsValue({name:jn.name,item_type_en:(Ua=Ko.find(mr=>mr.id==jn.question_type))==null?void 0:Ua.nameType}),oi(!0)}},Gn.createElement("span",{className:ie.moreSpan},"\u91CD\u547D\u540D"))),hl=jn=>{var Aa,Ua,mr,br,Wr,wr,no,Oo,ki,Pi,po,Mo,Go,Ei,Sl,Pl,Gi,El,Al,Ai,yl,Fl,ui,Bl,bl,ji,Cl,xl;if(!Fo()){if(jn===5){So(!0),ri(!0);return}if(jn===6){if(eo.get("pageType")=="course")eo.get("updateType")=="course"?he.history.push(`/problems/newcreate?express_id=${(Aa=vn==null?void 0:vn.exercise)==null?void 0:Aa.id}&callback_url=/paperlibrary/add/${(Ua=vn==null?void 0:vn.exercise)==null?void 0:Ua.id}?type=2&pageType=course&updateType=course&courseId=${eo.get("courseId")}&stageId=${eo.get("stageId")}`):he.history.push(`/problems/newcreate?express_id=${(mr=vn==null?void 0:vn.exercise)==null?void 0:mr.id}&callback_url=/paperlibrary/add/${(br=vn==null?void 0:vn.exercise)==null?void 0:br.id}?type=2&pageType=course&courseId=${eo.get("courseId")}&stageId=${eo.get("stageId")}`);else{let Mu=(wr=(Wr=rt==null?void 0:rt.editData)==null?void 0:Wr.exercise)!=null&&wr.set_question_sub_discipline?`/problems/newcreate?express_id=${(no=vn==null?void 0:vn.exercise)==null?void 0:no.id}&callback_url=${window.location.pathname+window.location.search}&discipline_id=${(ki=(Oo=rt==null?void 0:rt.editData)==null?void 0:Oo.exercise)==null?void 0:ki.discipline_id}&sub_discipline_id=${(po=(Pi=rt==null?void 0:rt.editData)==null?void 0:Pi.exercise)==null?void 0:po.sub_discipline_id}`:`/problems/newcreate?express_id=${(Mo=vn==null?void 0:vn.exercise)==null?void 0:Mo.id}&callback_url=${window.location.pathname+window.location.search}`;he.history.push(Mu)}return}xr(!0),gr(jn===2?{question_type:jn,isadd:!0,repeat_answer:!0,choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],question_choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],difficulty:2,standard_answers:[],question_score:"",tag_discipline_ids:[],question_title:"",discipline_id:(Ei=(Go=rt==null?void 0:rt.editData)==null?void 0:Go.exercise)!=null&&Ei.set_question_sub_discipline?(Pl=(Sl=rt==null?void 0:rt.editData)==null?void 0:Sl.exercise)==null?void 0:Pl.discipline_id:0,sub_discipline_id:(El=(Gi=rt==null?void 0:rt.editData)==null?void 0:Gi.exercise)!=null&&El.set_question_sub_discipline?(Ai=(Al=rt==null?void 0:rt.editData)==null?void 0:Al.exercise)==null?void 0:Ai.sub_discipline_id:0,analysis:""}:{question_type:jn,question_choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),standard_answers:[],repeat_answer:!0,difficulty:2,isadd:!0,tag_discipline_ids:[],question_score:"",analysis:"",sub_item_banks:[],question_title:"",is_ordered:!0,use_keywords:!1,use_blank_score:!0,keywords:[],allow_student_debug:!1,submit_rule:1,downcase:!0,no_space:!0,discipline_id:(Fl=(yl=rt==null?void 0:rt.editData)==null?void 0:yl.exercise)!=null&&Fl.set_question_sub_discipline?(Bl=(ui=rt==null?void 0:rt.editData)==null?void 0:ui.exercise)==null?void 0:Bl.discipline_id:0,sub_discipline_id:(ji=(bl=rt==null?void 0:rt.editData)==null?void 0:bl.exercise)!=null&&ji.set_question_sub_discipline?(xl=(Cl=rt==null?void 0:rt.editData)==null?void 0:Cl.exercise)==null?void 0:xl.sub_discipline_id:0})}},li=[{key:1,label:"\u6279\u91CF\u5BFC\u5165",onClick:()=>{Fo()||Rr(!0)}},{key:2,label:Gn.createElement("div",null,Gn.createElement("img",{width:26,style:{position:"absolute",top:-2},src:al.$}),Gn.createElement("span",null,"\u667A\u80FD\u5BFC\u5165")),onClick:()=>{Fo()||$r(!0)}}];return Gn.createElement("div",null,Gn.createElement(Ge.Z,{spinning:Kr},Gn.createElement("div",{className:ie.bg},Gn.createElement("div",{style:{textAlign:"center"}},((_n=vn==null?void 0:vn.exercise_types)==null?void 0:_n.q_counts)===0&&!hr&&Gn.createElement(Pe.Z,{styles:{marginTop:180},customText:Gn.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",Gn.createElement("span",{className:"c-light-primary"},"\u5E95\u90E8\u64CD\u4F5C\u680F"),"\u8FDB\u884C\u6DFB\u52A0~")}),(((oa=vn==null?void 0:vn.exercise_types)==null?void 0:oa.q_counts)>0||hr)&&Gn.createElement("div",{style:{marginTop:20,borderTop:"1px solid #DCDCDC",display:"block",alignItems:"stretch"}},Gn.createElement("div",{style:{backgroundColor:"#F6F7F9",display:"inline-block",position:"sticky",top:0}},Gn.createElement("div",{className:ie.left},Gn.createElement("div",{className:ie.leftAction},Gn.createElement(We.ZP,{onClick:()=>{Fo()||lo(!0)},className:ie.Button},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C")),Gn.createElement("div",{className:ie.scrollWrapper,style:{overflow:mu},onMouseEnter:Xo,onMouseLeave:qo},(En=vn==null?void 0:vn.exercise_question_types)==null?void 0:En.map((jn,Aa)=>Gn.createElement("div",{key:Aa,className:"mb30"},Gn.createElement("div",{className:ie.title},Gn.createElement("div",{className:ie.titleleft},Gn.createElement("span",{style:{color:"#000000",fontWeight:400,fontSize:12}}," ",(0,ge.EM)(Aa+1),"\u3001\u3010",jn.name,"\u3011"),Gn.createElement("span",{style:{color:"#464F66",fontSize:12}},"\uFF08",jn.count,"\u5C0F\u9898\uFF0C\u5171",jn.score,"\u5206\uFF09")),Gn.createElement(z.Z,{dropdownRender:()=>pl(jn,Aa),placement:"bottomLeft"},Gn.createElement("div",{className:ie.more_style},Gn.createElement("i",{className:"iconfont icon-sandian font12"})))),Gn.createElement(Zt,{handleEditing:()=>{hi(!0)},isedit:hr,setBigqitem:Hr,bigitem:Lo(co({},jn),{indexs:Aa+1}),setqitem:Ua=>Ur(void 0,null,function*(){var mr;(mr=Pr.current)==null||mr.blur(),gr(Ua)}),qitem:nn,Itemid:Ee,getdata:No,data:jn.items})))))),Gn.createElement("div",{id:"question-scroll-id",style:{overflow:hr?"hidden":"auto"},className:ie.right,ref:ml},!(nn!=null&&nn.isadd)&&Gn.createElement("div",{className:ie.title},!hr&&Gn.createElement("div",{style:{flex:1}},Gn.createElement("span",{style:{color:"#000000",fontWeight:600,fontSize:16}}," ",(ir==null?void 0:ir.indexs)&&(0,ge.EM)(ir==null?void 0:ir.indexs),"\u3001\u3010",ir==null?void 0:ir.name,"\u3011"),Gn.createElement(ne.Z,{title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0"},Gn.createElement("i",{className:`${ie.edit} iconfont icon-bianji_Hover mr5 ml5 font18`,onClick:()=>{var jn;Jo.setFieldsValue({name:ir.name,item_type_en:(jn=Ko.find(Aa=>Aa.id==ir.question_type))==null?void 0:jn.nameType}),oi(!0)}})),Gn.createElement("span",{style:{color:"#464F66",fontSize:16,fontWeight:400}},"\uFF08",ir==null?void 0:ir.count,"\u5C0F\u9898\uFF0C\u5171",ir==null?void 0:ir.score,"\u5206\uFF09"),(nn==null?void 0:nn.question_type)===6&&Gn.createElement("span",{onClick:()=>ii(2),className:"current c-light-primary font14 bold-400"},"\u6279\u91CF\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00"),(nn==null?void 0:nn.question_type)===5&&Gn.createElement(ke.default,{defaultChecked:(kt=(Ct=rt==null?void 0:rt.editData)==null?void 0:Ct.exercise)==null?void 0:kt.show_challenge_task_pass,onChange:jn=>Ur(void 0,null,function*(){let Aa=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/update_show_columns.json`,{method:"post",body:{show_challenge_task_pass:jn.target.checked}});(Aa==null?void 0:Aa.status)===0&&(be.ZP.info("\u8BBE\u7F6E\u6210\u529F"),No({id:Vn.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u9898\u76EE\u63CF\u8FF0"),(nn==null?void 0:nn.question_type)===6&&Gn.createElement("span",{style:{marginLeft:20},onClick:()=>{var jn,Aa,Ua,mr;x.default.confirm({title:"\u7F16\u7A0B\u9898\u8BBE\u7F6E",icon:null,centered:!0,closable:!0,footer:null,content:Gn.createElement("div",null,(nn==null?void 0:nn.question_type)===6&&Gn.createElement(ke.default,{defaultChecked:(Aa=(jn=rt==null?void 0:rt.editData)==null?void 0:jn.exercise)==null?void 0:Aa.show_hack_sets,onChange:br=>Ur(void 0,null,function*(){let Wr=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/update_show_columns.json`,{method:"post",body:{show_hack_sets:br.target.checked}});(Wr==null?void 0:Wr.status)===0&&(be.ZP.info("\u8BBE\u7F6E\u6210\u529F"),x.default.destroyAll(),No({id:Vn.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u6D4B\u8BD5\u7528\u4F8B"),Gn.createElement("br",null),(nn==null?void 0:nn.question_type)===6&&Gn.createElement(ke.default,{defaultChecked:(mr=(Ua=rt==null?void 0:rt.editData)==null?void 0:Ua.exercise)==null?void 0:mr.show_hack_description,onChange:br=>Ur(void 0,null,function*(){let Wr=yield(0,fe.ZP)(`/api/examination_banks/${Ee}/update_show_columns.json`,{method:"post",body:{show_hack_description:br.target.checked}});(Wr==null?void 0:Wr.status)===0&&(be.ZP.info("\u8BBE\u7F6E\u6210\u529F"),x.default.destroyAll(),No({id:Vn.current}))}),style:{marginBottom:10}},"\u5C55\u793A\u8BD5\u9898\u63CF\u8FF0"))})},className:"current c-light-primary font14 bold-400"},"\u7F16\u7A0B\u9898\u663E\u793A\u8BBE\u7F6E")),Gn.createElement("div",{style:{display:"flex",alignItems:"center"}},(nn==null?void 0:nn.question_type)===5&&!hr&&Gn.createElement("a",{className:ie.shixun,href:`/shixuns/${nn==null?void 0:nn.shixun_identifier}/challenges?exercise=true`,target:"_blank"},Gn.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u8BD5\u9898\u8BE6\u60C5"),!hr&&[0,1,2,4,6].includes(nn==null?void 0:nn.question_type)&&Gn.createElement(Be.default.Item,{label:"\u5206\u503C",style:{margin:"0 20px"},required:!0},Gn.createElement(Te.Z,{precision:1,ref:Pr,onChange:jn=>Br(jn),value:Dr,onBlur:jn=>{vl(jn.target.value,nn)}})),!hr&&Gn.createElement(ne.Z,{title:"\u5220\u9664"},Gn.createElement("span",{onClick:()=>{ko()},style:{marginRight:20},className:`${ie.delete} mr5 `},"\u5220\u9664")),!hr&&Gn.createElement(ne.Z,{title:"\u7F16\u8F91\u8BD5\u9898"},Gn.createElement("span",{onClick:()=>{var jn,Aa,Ua;(nn==null?void 0:nn.question_type)===6?eo.get("pageType")=="course"?eo.get("updateType")=="course"?he.history.push(`/problems/newedit/${nn==null?void 0:nn.hack_identifier}?type=exercises&express_id=${(jn=vn==null?void 0:vn.exercise)==null?void 0:jn.id}&question_id=${nn==null?void 0:nn.question_id}&score=${nn==null?void 0:nn.question_score}&exercise=true&callback_url=${location.pathname}?type=2&pageType=course&updateType=course&courseId=${eo.get("courseId")}&stageId=${eo.get("stageId")}`):he.history.push(`/problems/newedit/${nn==null?void 0:nn.hack_identifier}?type=exercises&express_id=${(Aa=vn==null?void 0:vn.exercise)==null?void 0:Aa.id}&question_id=${nn==null?void 0:nn.question_id}&score=${nn==null?void 0:nn.question_score}&exercise=true&callback_url=${location.pathname}?type=2&pageType=course&courseId=${eo.get("courseId")}&stageId=${eo.get("stageId")}`):he.history.push(`/problems/newedit/${nn==null?void 0:nn.hack_identifier}?type=exercises&express_id=${(Ua=vn==null?void 0:vn.exercise)==null?void 0:Ua.id}&question_id=${nn==null?void 0:nn.question_id}&score=${nn==null?void 0:nn.question_score}&exercise=true&callback_url=${window.location.pathname+window.location.search}`):xr(!0)},className:`${ie.edit} mr5 `},"\u7F16\u8F91")))),!hr&&Gn.createElement("div",null,Gn.createElement("div",{className:ie.qcount},Gn.createElement("span",{className:ie.score},nn==null?void 0:nn.question_score,"\u5206"),Gn.createElement(lt.Z,{className:ie.qtitle,value:(nn==null?void 0:nn.index)+`\u3001${(nn==null?void 0:nn.question_type)==8?(Dn=nn==null?void 0:nn.program_attr)==null?void 0:Dn.description:nn==null?void 0:nn.question_title}`}),(nn==null?void 0:nn.high_resources_consume)&&Gn.createElement(eu.Z,{type:"shixun",style:{marginLeft:10}})),(nn==null?void 0:nn.question_type)===6&&Gn.createElement(Ue.Z,{onEdit:()=>ii(1),className:"mt10",dataSource:(nn==null?void 0:nn.languages)||[]}),Gn.createElement(Yl,{newExercisePaper:rt,TagDiscipline:Mr,qitem:nn})),hr&&Gn.createElement("div",null,(nn==null?void 0:nn.question_type)<=1&&Gn.createElement(ma,{getTagData:wo,deleteitem:ko,seveeditor:Qo,exerciseitem:vn,TagDiscipline:Mr,setisedit:xr,qitem:nn,init:ro,showTip:yo}),(nn==null?void 0:nn.question_type)===5&&Gn.createElement(Ql,{setqitem:gr,deleteitem:ko,seveeditor:Qo,exerciseitem:vn,TagDiscipline:Mr,setisedit:xr,qitem:nn,showTip:yo}),(nn==null?void 0:nn.question_type)===3&&Gn.createElement(Ka,{getTagData:wo,deleteitem:ko,seveeditor:Qo,exerciseitem:vn,TagDiscipline:Mr,setisedit:xr,qitem:nn,init:ro,showTip:yo}),(nn==null?void 0:nn.question_type)===2&&Gn.createElement(Vt,{getTagData:wo,deleteitem:ko,seveeditor:Qo,exerciseitem:vn,TagDiscipline:Mr,setisedit:xr,qitem:nn,init:ro,showTip:yo}),(nn==null?void 0:nn.question_type)===4&&Gn.createElement(ql,{getTagData:wo,deleteitem:ko,seveeditor:Qo,exerciseitem:vn,TagDiscipline:Mr,setisedit:xr,qitem:nn,init:ro,showTip:yo}),(nn==null?void 0:nn.question_type)===7&&Gn.createElement(ho,{getTagData:wo,deleteitem:ko,seveeditor:Qo,exerciseitem:vn,TagDiscipline:Mr,setisedit:xr,qitem:nn,init:ro,showTip:yo}),(nn==null?void 0:nn.question_type)===8&&Gn.createElement(ei,{getTagData:wo,deleteitem:ko,seveeditor:Qo,exerciseitem:vn,TagDiscipline:Mr,setisedit:xr,qitem:nn,init:ro,showTip:yo}))))))),Gn.createElement("div",{className:ie.bottomdiv},Gn.createElement("div",{style:{width:1200,margin:"0px auto",display:"flex",justifyContent:"space-between",alignItems:"center"}},Gn.createElement("span",{className:ie.spanBtn,onClick:()=>{Fo()||(So(!0),ri(!0))}},"\u9898\u5E93\u9009\u9898"),Gn.createElement(z.Z,{menu:{items:li}},Gn.createElement("span",{className:ie.spanBtn},"\u5BFC\u5165\u8BD5\u9898")),Gn.createElement("span",{className:ie.spanBtn,onClick:()=>Ur(void 0,null,function*(){var jn;if(Fo())return;const Aa=yield(0,le.JP)(Ee);Aa.status===0&&window.open(`/classrooms/coursesId/exercise/${Aa.exercise_id}/${(jn=se.userInfo)==null?void 0:jn.login}/initate_answer`)})},"\u6A21\u62DF\u8003\u8BD5"),Gn.createElement("span",{className:ie.spanBtn,onClick:()=>{if(!Fo()){if(fl){window.open(`/paperlibrary/see/${Ee}?isIntelligentAssistant=true`);return}window.open(`/paperlibrary/see/${Ee}`)}}},"\u8BD5\u5377\u9884\u89C8"),Ko==null?void 0:Ko.map((jn,Aa)=>Gn.createElement(We.ZP,{key:Aa,className:ie.addQuestionBtn,type:"primary",onClick:()=>{hl(jn.id)}},jn.name)),Gn.createElement(We.ZP,{className:ie.saveBtn,loading:su,onClick:()=>Ur(void 0,null,function*(){var jn,Aa;const Ua=Number(vn.exercise_types.q_scores);[100,120,150].includes(Ua)||(yield new Promise((wr,no)=>{x.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Gn.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",Gn.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},Ua),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>Ur(void 0,null,function*(){wr("")}),onCancel:()=>{no()}})}));const mr=()=>Ur(void 0,null,function*(){if(eo.get("pageType")=="course")if(eo.get("updateType")=="course")be.ZP.info("\u7F16\u8F91\u6210\u529F"),he.history.replace(`/paths/${eo.get("courseId")}`);else{if(Fo())return;(0,$l._C)({id:eo.get("stageId"),subject_id:eo.get("courseId"),homework_type:"exercise",examination_bank_ids:[Ee]}).then(wr=>{(wr==null?void 0:wr.status)==0&&(be.ZP.info("\u521B\u5EFA\u6210\u529F"),he.history.replace(`/paths/${eo.get("courseId")}`))})}else{if(Fo())return;if(fl){Ti(!0);const wr=yield(0,fe.ZP)("/api/intelligent_imports/save_recognize_papers.json",{method:"post",body:{examination_bank_id:Ee}});if(Ti(!1),(wr==null?void 0:wr.status)!==0)return}be.ZP.info("\u4FDD\u5B58\u6210\u529F"),he.history.push("/paperlibrary?defaultActiveKey=0")}});let br=(Aa=(jn=vn==null?void 0:vn.exercise_question_types)==null?void 0:jn.filter(wr=>wr.question_type===5)[0])==null?void 0:Aa.items,Wr=0;br==null||br.map(wr=>{wr.high_resources_consume&&(Wr=Wr+1)}),console.log(Wr),Wr>0?Se({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u63D0\u793A",count:Wr,fn:()=>{mr()}}}):mr()})},Gn.createElement("i",{className:"iconfont icon-baocun1",style:{fontSize:15,marginRight:5}}),"\u4FDD\u5B58\u8BD5\u5377"))),Gn.createElement(xi,{setScoreShow:lo,ScoreShow:mo,exerciseitem:vn,getdata:ro}),Ao&&Gn.createElement(wi.Z,{setScoreShow:So,isshixuns:vi,ScoreShow:Ao,SpecificDifficulty:(Ft=vn==null?void 0:vn.exercise)==null?void 0:Ft.difficulty,isloadings:Io,onOk:(jn,Aa,Ua,mr)=>Ur(void 0,null,function*(){cl(!0);let Wr=yield gu({exam_id:Ee,item_bank_ids:jn,shixun_ids:Aa});cl(!1),(Wr==null?void 0:Wr.status)===0&&x.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u65B0\u52FE\u9009\u7684\u8BD5\u9898\u5DF2\u7ECF\u6DFB\u52A0\u5230\u8BD5\u5377\uFF0C\u5982\u679C\u9700\u8981\u7EE7\u7EED\u6DFB\u52A0\u65B0\u8BD5\u9898\u8BF7\u70B9\u51FB\u201C\u7EE7\u7EED\u9009\u9898\u201D\uFF0C\u5C06\u56DE\u5230\u60A8\u4E0A\u6B21\u64CD\u4F5C\u7684\u9009\u9898\u9875\u9762",okText:"\u7EE7\u7EED\u9009\u9898",cancelText:"\u8FD4\u56DE\u8BD5\u5377",onOk:()=>{ro()},onCancel:()=>{So(!1),ro()}})})}),Gn.createElement(qi.Z,{sub_discipline_id:(en=vn==null?void 0:vn.exercise)!=null&&en.sub_discipline_id?[($n=vn==null?void 0:vn.exercise)==null?void 0:$n.discipline_id,(ga=vn==null?void 0:vn.exercise)==null?void 0:ga.sub_discipline_id]:[],visible:Lr,onCancel:()=>Rr(!1),onOk:cu}),Gn.createElement(x.default,{centered:!0,title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0",open:du,width:500,onOk:()=>Jo.submit(),onCancel:()=>oi(!1)},Gn.createElement(Be.default,{form:Jo,initialValues:{},onFinish:jn=>Ur(void 0,null,function*(){(yield(0,le.RK)(co({id:Ee},jn))).status==0&&(be.ZP.success("\u4FEE\u6539\u6210\u529F"),ro(),oi(!1))})},Gn.createElement(Be.default.Item,{style:{marginBottom:0},name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9898\u578B\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"},{validator(jn,Aa){var Ua,mr,br,Wr;const wr=(Ua=Ko==null?void 0:Ko.find(no=>no.nameType==Jo.getFieldValue("item_type_en")))==null?void 0:Ua.id;return(Wr=(br=(mr=vn==null?void 0:vn.exercise_question_types)==null?void 0:mr.filter(no=>no.question_type!=wr))==null?void 0:br.map(no=>no==null?void 0:no.name))!=null&&Wr.includes(Aa)?Promise.reject(new Error("\u9898\u578B\u540D\u79F0\u5DF2\u5B58\u5728\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u9898\u578B\u540D\u79F0")):Promise.resolve()}}]},Gn.createElement(Fe.default,{size:"large",maxLength:10,showCount:!0})),Gn.createElement(Be.default.Item,{hidden:!0,name:"item_type_en"},Gn.createElement(Fe.default,{size:"large"})))),Gn.createElement(re.Z,{placement:"bottom",height:"100%",destroyOnClose:!0,closable:!1,className:"body-overflow-hidden",open:Qr},Gn.createElement("div",{style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},"\u667A\u80FD\u5BFC\u5165"),Gn.createElement(al.Z,{stickyTop:-24,subDisciplineId:(Bn=vn==null?void 0:vn.exercise)!=null&&Bn.sub_discipline_id?[(ca=vn==null?void 0:vn.exercise)==null?void 0:ca.discipline_id,(Sa=vn==null?void 0:vn.exercise)==null?void 0:Sa.sub_discipline_id]:[],onCancel:()=>$r(!1),mode:2,gather:{exam_id:Ee},onSuccess:()=>{$r(!1),ro()}}),Gn.createElement("div",{style:{height:70}})),Gn.createElement(Ue.Q,{visible:!!pi,setVisible:ii,tip:pi===2&&"\u8BBE\u7F6E\u5DF2\u6DFB\u52A0\u5728\u8BD5\u5377\u4E2D\u7684\u7F16\u7A0B\u9898\u6240\u5141\u8BB8\u4F7F\u7528\u7684\u7F16\u7A0B\u8BED\u8A00",dataSource:pi===1?nn==null?void 0:nn.languages:[],onOk:jn=>Ur(void 0,null,function*(){const Aa={languages:jn};pi===1?Aa.hack_id=nn==null?void 0:nn.hack_id:Aa.exam_id=Ee,(yield(0,fe.ZP)("/api/problems/update_languages.json",{method:"post",body:Aa})).status===0&&(be.ZP.success("\u4FEE\u6539\u6210\u529F"),No({id:Vn.current}),ii(!1))})}))};var Li=(0,he.connect)(({user:se,newExercisePaper:Se,dispatch:Ee})=>({user:se,newExercisePaper:Se,dispatch:Ee}))(ou),ll=oe(81232),Ii=oe(94287),ul=oe(26692),Wa=oe(59301),sl=Object.defineProperty,Nu=Object.defineProperties,iu=Object.getOwnPropertyDescriptors,dl=Object.getOwnPropertySymbols,lu=Object.prototype.hasOwnProperty,Ni=Object.prototype.propertyIsEnumerable,Yo=(se,Se,Ee)=>Se in se?sl(se,Se,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):se[Se]=Ee,fi=(se,Se)=>{for(var Ee in Se||(Se={}))lu.call(Se,Ee)&&Yo(se,Ee,Se[Ee]);if(dl)for(var Ee of dl(Se))Ni.call(Se,Ee)&&Yo(se,Ee,Se[Ee]);return se},Vo=(se,Se)=>Nu(se,iu(Se)),To=(se,Se,Ee)=>new Promise((rt,yn)=>{var _n=Ct=>{try{En(Ee.next(Ct))}catch(kt){yn(kt)}},oa=Ct=>{try{En(Ee.throw(Ct))}catch(kt){yn(kt)}},En=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(_n,oa);En((Ee=Ee.apply(se,Se)).next())});const Oi=()=>{const[se,Se]=(0,b.useState)([]);return(0,b.useEffect)(()=>{To(void 0,null,function*(){const rt=yield(0,le.d1)({source:"new_question"});rt!=null&&rt.disciplines&&Se((0,E.L)(rt==null?void 0:rt.disciplines))})},[]),se},Mi=({user:se,newExercisePaper:Se,dispatch:Ee})=>{var rt,yn,_n,oa,En,Ct,kt,Dn,Ft,en,$n,ga;const Bn=(0,he.useParams)(),ca=Oi(),[Sa]=Be.default.useForm(),[vn,yr]=(0,b.useState)(),[Sn,ja]=(0,b.useState)(!1),[nn,gr]=(0,b.useState)(1),[Dr,Br]=(0,b.useState)(""),[Pr]=(0,he.useSearchParams)(),[Vn,ir]=(0,b.useState)(!1),[Hr,Kr]=(0,b.useState)(!1),[_r,hr]=(0,b.useState)(!1);return(0,b.useEffect)(()=>{Pr.get("type")==="2"&&(Br(Bn.id),gr(2))},[Pr.get("type")]),(0,b.useEffect)(()=>{if(Bn.id){if(!ca.length)return;To(void 0,null,function*(){var Mr,tr,Lr;ja(!0);const Rr=yield(0,le.Di)({id:Bn.id});ja(!1);const Qr=(Mr=Rr==null?void 0:Rr.exercise)==null?void 0:Mr.sub_discipline_id;let $r=[];for(const Ao of ca)for(const So of Ao.children)So.value===Qr&&($r=[Ao.value,So.value]);const mo=(tr=Rr==null?void 0:Rr.exercise)==null?void 0:tr.time,lo=Vo(fi({},Rr.exercise),{sub_discipline_id:$r,time:mo===-1?null:mo});yr(lo),hr((Lr=Rr.exercise)==null?void 0:Lr.set_question_sub_discipline)})}else yr({time:60,difficulty:2});Ee({type:"globalSetting/footerToggle",payload:!1})},[ca]),Wa.createElement("div",{style:{background:"#ffffff",marginTop:-8,padding:8,minHeight:"100vh",paddingBottom:64}},Wa.createElement("section",{className:"edu-container"},Wa.createElement("section",{className:"animated fadeIn"},Wa.createElement("aside",{style:{marginTop:15}},Wa.createElement(Ie.Z,{separator:">"},Wa.createElement(Ie.Z.Item,null,Wa.createElement(he.Link,{to:"/paperlibrary"},"\u8BD5\u5377\u5E93")),Wa.createElement(Ie.Z.Item,null,"\u4EBA\u5DE5\u7EC4\u5377")))),Wa.createElement("div",{className:"bg-white"},Wa.createElement("div",{style:{display:"flex",justifyContent:"center",paddingTop:20,alignItems:"center"}},Wa.createElement("div",{onClick:()=>{if(Vn){be.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002");return}gr(1)},className:nn===1?Ve.Z.selectdiv:Ve.Z.divitem},Wa.createElement(ll.Z,{number:1,active:nn===1,className:"mr10"}),Wa.createElement("span",null,"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F")),Wa.createElement("div",{style:{width:188,border:"1px dotted #9096A3",margin:"0px 30px",height:1}}),Wa.createElement("div",{onClick:()=>{if(!Bn.id&&!Dr){be.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u57FA\u7840\u4FE1\u606F\u518D\u65B0\u5EFA\u8BD5\u9898");return}gr(2),!Dr&&Br(Bn.id)},className:nn!==1?Ve.Z.selectdiv:Ve.Z.divitem},Wa.createElement(ll.Z,{number:2,active:nn!==1,className:"mr10"}),Wa.createElement("span",null,"\u7F16\u8F91\u8BD5\u9898"))),nn===2&&Wa.createElement("div",{className:"tc"},Wa.createElement(Ii.Z,{defaultValue:(yn=(rt=Se==null?void 0:Se.editData)==null?void 0:rt.exercise)==null?void 0:yn.exercise_name,onFinish:xr=>To(void 0,null,function*(){var Mr,tr,Lr,Rr,Qr,$r,mo,lo,Ao,So,vi,ri;return xr.trim()===((tr=(Mr=Se==null?void 0:Se.editData)==null?void 0:Mr.exercise)==null?void 0:tr.exercise_name)?!0:(yield(0,le.w0)({id:`${(Rr=(Lr=Se==null?void 0:Se.editData)==null?void 0:Lr.exercise)==null?void 0:Rr.id}`,sub_discipline_id:($r=(Qr=Se==null?void 0:Se.editData)==null?void 0:Qr.exercise)==null?void 0:$r.sub_discipline_id,time:`${(lo=(mo=Se==null?void 0:Se.editData)==null?void 0:mo.exercise)==null?void 0:lo.time}`,exercise_name:xr,exercise_description:(So=(Ao=Se==null?void 0:Se.editData)==null?void 0:Ao.exercise)==null?void 0:So.exercise_description,difficulty:(ri=(vi=Se==null?void 0:Se.editData)==null?void 0:vi.exercise)==null?void 0:ri.difficulty})).status===0?(Sa.setFieldValue("exercise_name",xr),Ee({type:"newExercisePaper/modifyTitle",payload:xr}),!0):!1})}),Wa.createElement("div",{style:{fontSize:14}},Wa.createElement("span",{style:{color:"#5F6368"}},"\u7B54\u9898\u65F6\u957F",Wa.createElement("span",{style:{color:"#000000",marginLeft:8}},(oa=(_n=Se==null?void 0:Se.editData)==null?void 0:_n.exercise)==null?void 0:oa.time)),Wa.createElement("span",{style:{margin:"0px 30px",color:"#5F6368"}},"\u96BE\u5EA6",Wa.createElement("span",{style:{color:"#000000",marginLeft:8}},((Ct=(En=Se==null?void 0:Se.editData)==null?void 0:En.exercise)==null?void 0:Ct.difficulty)===1?"\u7B80\u5355":((Dn=(kt=Se==null?void 0:Se.editData)==null?void 0:kt.exercise)==null?void 0:Dn.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),Wa.createElement("span",{style:{marginRight:30,color:"#5F6368"}},"\u8BD5\u9898\u603B\u6570",Wa.createElement("span",{style:{color:"#000000",marginLeft:8}},((en=(Ft=Se==null?void 0:Se.editData)==null?void 0:Ft.exercise_types)==null?void 0:en.q_counts)||0)),Wa.createElement("span",{style:{color:"#5F6368"}},"\u603B\u5206",Wa.createElement("span",{style:{color:"#000000",marginLeft:8}},(ga=($n=Se==null?void 0:Se.editData)==null?void 0:$n.exercise_types)==null?void 0:ga.q_scores))))),nn===1&&Wa.createElement(Ge.Z,{spinning:Sn,size:"middle",style:{position:"fixed",maxHeight:"100vh"},className:"mt30"},Wa.createElement("section",{className:[Ve.Z.bg,"mt20"].join(" "),style:{padding:"30px 120px 300px 120px"}},vn&&Wa.createElement(Be.default,{layout:"horizontal",form:Sa,colon:!1,labelCol:{span:4},wrapperCol:{span:20},className:Ve.Z.formWrap,initialValues:vn},Wa.createElement(Be.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u540D\u79F0",className:Ve.Z.baseLineHeight,rules:[{required:!0,validator:(xr,Mr)=>{var tr;return((tr=Mr==null?void 0:Mr.replaceAll(" ",""))==null?void 0:tr.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},Wa.createElement(Fe.default,{maxLength:60,className:Ve.Z.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),Wa.createElement(Be.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"sub_discipline_id",className:Ve.Z.baseLineHeight},Wa.createElement(Ye.Z,{className:Ve.Z.baseFormItem,allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:ca,popupClassName:Ve.Z.cascaderPopup,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14}})),Wa.createElement("div",{className:Ve.Z.concat},Wa.createElement("div",null,Wa.createElement(ke.default,{checked:_r,onChange:xr=>{hr(xr.target.checked)},style:{color:"#000"}},"\u8BBE\u7F6E\u8BE5\u65B9\u5411&\u8BFE\u7A0B\u4E3A\u8BD5\u9898\u6A21\u7248\uFF08\u521B\u5EFA\u65B0\u8BD5\u9898\u81EA\u52A8\u4F7F\u7528\u8BE5\u65B9\u5411&\u8BFE\u7A0B\uFF09")),Wa.createElement("div",null,"\u6CA1\u6709\u5408\u9002\u7684\u65B9\u5411&\u8BFE\u7A0B\uFF1F",Wa.createElement("a",{onClick:()=>Kr(!0)},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"))),Wa.createElement(Be.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:Ve.Z.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},Wa.createElement(De.ZP.Group,{className:Ve.Z.radiogroup},Wa.createElement(De.ZP.Button,{className:Ve.Z.easy,value:1},"\u7B80\u5355"),Wa.createElement(De.ZP.Button,{className:Ve.Z.medium,value:2},"\u9002\u4E2D"),Wa.createElement(De.ZP.Button,{className:Ve.Z.hard,value:3},"\u56F0\u96BE"))),Wa.createElement(Be.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:Ve.Z.baseLineHeight},Wa.createElement("div",{style:{display:"flex",width:"100%"}},Wa.createElement(Be.default.Item,{name:"time",noStyle:!0},Wa.createElement(Te.Z,{min:1,className:Ve.Z.baseFormItem,max:9999,style:{width:220},maxLength:60,placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),Wa.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),Wa.createElement(Be.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exercise_description"},Wa.createElement(Fe.default.TextArea,{rows:6,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"})))),Wa.createElement("div",{className:Ve.Z.bottmodiv},Wa.createElement(We.ZP,{className:`${Ve.Z.cancelBtn} mr5`,type:"primary",onClick:()=>{Pr.get("pageType")=="course"?he.history.push(`/paths/${Pr.get("courseId")}`):he.history.push("/paperlibrary")}},"\u53D6\u6D88"),Wa.createElement(a.Z,{className:`${Ve.Z.confirmBtn} ml15`,type:"primary",onClick:()=>To(void 0,null,function*(){var xr,Mr,tr,Lr;yield Sa.validateFields();const Rr=Sa.getFieldsValue();if(Rr.sub_discipline_id=((xr=Rr.sub_discipline_id)==null?void 0:xr.length)>0?Rr.sub_discipline_id[1]:"",Rr.set_question_sub_discipline=_r,Bn.id){(yield(0,le.w0)(fi({id:Bn.id},Rr))).status===0&&(Br(Bn.id),gr(2),he.history.replace(`/paperlibrary/add/${Bn.id}?type=2`));return}const Qr=yield(0,le.un)(Rr);Qr.status===0&&(Br((Mr=Qr==null?void 0:Qr.data)==null?void 0:Mr.exam_id),gr(2),Pr.get("pageType")=="course"?he.history.replace(`/paperlibrary/add/${(tr=Qr==null?void 0:Qr.data)==null?void 0:tr.exam_id}?type=2&pageType=course&courseId=${Pr.get("courseId")}&stageId=${Pr.get("stageId")}`):he.history.replace(`/paperlibrary/add/${(Lr=Qr==null?void 0:Qr.data)==null?void 0:Lr.exam_id}?type=2`))})},"\u4E0B\u4E00\u6B65"))),nn===2&&Wa.createElement("div",null,Wa.createElement(Li,{setisedits:ir,itemid:Dr}))),Wa.createElement(ul.Z,{open:Hr,onCancel:()=>{Kr(!1)}}))};var Ri=(0,he.connect)(({user:se,newExercisePaper:Se,dispatch:Ee})=>({user:se,newExercisePaper:Se,dispatch:Ee}))(Mi)},26995:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return Qe}});var b=oe(59301),he=oe(78241),Be=oe(8591),Ie=oe(43418),be=oe(99313),Ge=oe(57809),Fe=oe(19842),Ye=oe(98228),ke=oe(92832),De=oe(1710),Te=oe(6848),We=oe(58421),Ve=oe(3113),le=oe(64866),E={flex_box_center:"flex_box_center___kuaVT",flex_space_between:"flex_space_between___exKHH",flex_box_vertical_center:"flex_box_vertical_center___BzvkN",flex_box_center_end:"flex_box_center_end___Ss2DJ",flex_box_column:"flex_box_column___p1LEr",scoremodal:"scoremodal___upTFR",selectWrapper:"selectWrapper___HH3RX",selectWrappers:"selectWrappers___fUWwr",allqingchu:"allqingchu___BFF1D",title:"title___hFasb",score:"score___DXG3o",close:"close___kEIiB",content:"content___Mco8L",items:"items___j98jk",bottom:"bottom___A1n1C",yes:"yes___P1zzb",no:"no___xZqXd",titlecount:"titlecount___fqA9P",add:"add___MqV0R",search:"search___NREgv",searchIcon:"searchIcon___qny3A",tabWrap:"tabWrap___dR18c",previewModal:"previewModal___uSiGS",q_title:"q_title___a9NY9"},a=oe(70646),x={flex_box_center:"flex_box_center___nnwwA",flex_space_between:"flex_space_between___cRir9",flex_box_vertical_center:"flex_box_vertical_center___FqTZ8",flex_box_center_end:"flex_box_center_end___WU5_v",flex_box_column:"flex_box_column___QZFa1",warp:"warp___aLZwN",shixunbutton:"shixunbutton___Eoa1i",redio:"redio___LJ4js",redioitem:"redioitem___YicCC",redioitemyes:"redioitemyes___lX4Nr",title:"title___pi1jH",titleyes:"titleyes___jiEh7",yestag:"yestag___DLWoP",qcount:"qcount___U9kkL",score:"score___vLK4B",qtitle:"qtitle___kyg0t",checkbox:"checkbox___vjiBw",checkboxitem:"checkboxitem___HW3CP",checkboxitemyes:"checkboxitemyes___kpjek",bottom:"bottom___uG8Zq",bottomitem:"bottomitem___TnJQQ",left:"left___M8WXX",right:"right____dkCI",completion:"completion___H6RmA",content:"content___a2hGC",items:"items___D8mLd",simple:"simple___fQ0OS",shixun:"shixun___nB6Jk",combination:"combination___YrOdz",program:"program___lG0JA"},y=oe(8658),z=oe(22566),ne=oe(24334);const re=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var ge=({qitem:Oe})=>{var Et,Gt,vt,Dt,Ae,dt,on,ct,et,An;return b.createElement("div",{className:x.warp},b.createElement("div",{className:x.mainPart},b.createElement("div",{className:x.qcount},(Oe==null?void 0:Oe.question_type)===8&&b.createElement(y.Z,{className:x.content,showProgramFill:!0,value:(Et=Oe==null?void 0:Oe.program_attr)==null?void 0:Et.description}),(Oe==null?void 0:Oe.question_type)!=8&&b.createElement(y.Z,{className:x.qtitle,value:(Oe==null?void 0:Oe.name)||(Oe==null?void 0:Oe.title)})),((Oe==null?void 0:Oe.question_type)===0||(Oe==null?void 0:Oe.question_type)===2)&&b.createElement("div",null,(Gt=Oe==null?void 0:Oe.choices)==null?void 0:Gt.map((ot,bt)=>b.createElement("div",{className:x.redio},!(ot!=null&&ot.is_answer)&&b.createElement("span",{className:x.redioitem}),(ot==null?void 0:ot.is_answer)&&b.createElement("i",{className:`${x.redioitemyes} icon-duigou1`}),b.createElement(y.Z,{className:ot!=null&&ot.is_answer?x.titleyes:x.title,value:re[bt]+(ot==null?void 0:ot.choice_text)}),(ot==null?void 0:ot.is_answer)&&b.createElement("div",{className:x.yestag},"\u6B63\u786E\u7B54\u6848")))),(Oe==null?void 0:Oe.question_type)===1&&b.createElement("div",null,(vt=Oe==null?void 0:Oe.choices)==null?void 0:vt.map((ot,bt)=>b.createElement("div",{className:x.checkbox},!(ot!=null&&ot.is_answer)&&b.createElement("span",{className:x.checkboxitem}),(ot==null?void 0:ot.is_answer)&&b.createElement("i",{className:`${x.checkboxitemyes} icon-duigou1`}),b.createElement(y.Z,{className:ot!=null&&ot.is_answer?x.titleyes:x.title,value:re[bt]+(ot==null?void 0:ot.choice_text)}),(ot==null?void 0:ot.is_answer)&&b.createElement("div",{className:x.yestag},"\u6B63\u786E\u7B54\u6848")))),(Oe==null?void 0:Oe.question_type)===3&&b.createElement("div",{className:x.completion},(Dt=Oe==null?void 0:Oe.standard_answer)==null?void 0:Dt.map((ot,bt)=>{var Ht;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:x.title},"\u586B\u7A7A\u9879",bt+1),b.createElement("div",{className:x.content},(Ht=ot==null?void 0:ot.answer_text)==null?void 0:Ht.map((ht,Mn)=>b.createElement("div",{className:x.items},ht))))})),(Oe==null?void 0:Oe.question_type)===4&&b.createElement("div",{className:x.simple},b.createElement("div",{className:x.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Ae=Oe==null?void 0:Oe.answer_texts)!=null&&Ae[0]?b.createElement(y.Z,{className:x.content,value:(dt=Oe==null?void 0:Oe.answer_texts)==null?void 0:dt[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(Oe==null?void 0:Oe.question_type)===5&&((on=Oe==null?void 0:Oe.challenge_names)==null?void 0:on.map((ot,bt)=>b.createElement("div",{className:x.shixun},b.createElement("span",{className:x.qtitle},b.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,z.EM)(bt+1),"\u9898"),ot)))),(Oe==null?void 0:Oe.question_type)===6&&b.createElement("div",{className:x.program},b.createElement(y.Z,{className:x.content,value:((ct=Oe==null?void 0:Oe.program_attr)==null?void 0:ct.description)||"- -"})),(Oe==null?void 0:Oe.question_type)===7&&((et=Oe==null?void 0:Oe.sub_item_banks)==null?void 0:et.map((ot,bt)=>{var Ht,ht,Mn,Ot,Un;return b.createElement("div",null,b.createElement("div",{className:x.combination},b.createElement("span",{className:x.qtitle},ot==null?void 0:ot.name)),b.createElement("div",{className:x.warp,style:{padding:"0px",paddingTop:20}},b.createElement("div",null,((ot==null?void 0:ot.item_type)=="SINGLE"||(ot==null?void 0:ot.item_type)=="JUDGMENT")&&((Ht=ot==null?void 0:ot.choices)==null?void 0:Ht.map((bn,kn)=>b.createElement("div",{className:x.redio},!(bn!=null&&bn.is_answer)&&b.createElement("span",{className:x.redioitem}),(bn==null?void 0:bn.is_answer)&&b.createElement("i",{className:`${x.redioitemyes} icon-duigou1`}),b.createElement(y.Z,{className:bn!=null&&bn.is_answer?x.titleyes:x.title,value:re[kn]+(bn==null?void 0:bn.choice_text)}),(bn==null?void 0:bn.is_answer)&&b.createElement("div",{className:x.yestag},"\u6B63\u786E\u7B54\u6848")))),(ot==null?void 0:ot.item_type)=="MULTIPLE"&&((ht=ot==null?void 0:ot.choices)==null?void 0:ht.map((bn,kn)=>b.createElement("div",{className:x.checkbox},!(bn!=null&&bn.is_answer)&&b.createElement("span",{className:x.checkboxitem}),(bn==null?void 0:bn.is_answer)&&b.createElement("i",{className:`${x.checkboxitemyes} icon-duigou1`}),b.createElement(y.Z,{className:bn!=null&&bn.is_answer?x.titleyes:x.title,value:re[kn]+(bn==null?void 0:bn.choice_text)}),(bn==null?void 0:bn.is_answer)&&b.createElement("div",{className:x.yestag},"\u6B63\u786E\u7B54\u6848")))),(ot==null?void 0:ot.item_type)=="COMPLETION"&&b.createElement("div",{className:x.completion},(Mn=ot==null?void 0:ot.standard_answer)==null?void 0:Mn.map((bn,kn)=>{var qt;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:x.title},"\u586B\u7A7A\u9879",kn+1),b.createElement("div",{className:x.content},(qt=bn==null?void 0:bn.answer_text)==null?void 0:qt.map((ma,zn)=>b.createElement("div",{className:x.items},ma))))})),(ot==null?void 0:ot.item_type)=="SUBJECTIVE"&&b.createElement("div",{className:x.simple},b.createElement("div",{className:x.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Ot=ot==null?void 0:ot.answer_texts)!=null&&Ot[0]?b.createElement(y.Z,{className:x.content,value:(Un=ot==null?void 0:ot.answer_texts)==null?void 0:Un[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(Oe==null?void 0:Oe.question_type)===8&&b.createElement("div",null,b.createElement(y.Z,{disabledFill:!0,className:x.content,showProgramFill:!0,value:ne.Base64.decode(((An=Oe==null?void 0:Oe.program_attr)==null?void 0:An.code)||"")})),(Oe==null?void 0:Oe.question_type)===5&&b.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},b.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),b.createElement("span",{style:{color:"#000000"}},(Oe==null?void 0:Oe.author_name)||"- -")),b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),b.createElement("span",{style:{color:"#000000"}},(Oe==null?void 0:Oe.author_school_name)||"- -")),b.createElement("div",{style:{marginRight:30}},b.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{style:{color:"#000000"}},(Oe==null?void 0:Oe.study_count)||"0"))),b.createElement("a",{className:x.shixunbutton,href:`/shixuns/${Oe==null?void 0:Oe.identifier}/challenges?exercise=true`,target:"_blank"},b.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((Oe==null?void 0:Oe.question_type)<=4||[6,8].includes(Oe==null?void 0:Oe.question_type))&&b.createElement("div",{className:x.bottom},b.createElement("div",{className:x.bottomitem},b.createElement("span",{className:x.left},"\u89E3\u6790"),b.createElement("span",{className:x.right},Oe!=null&&Oe.analysis?b.createElement(y.Z,{value:Oe==null?void 0:Oe.analysis}):b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),b.createElement("div",{className:x.bottomitem},b.createElement("span",{className:x.left},"\u96BE\u5EA6"),b.createElement("span",{className:x.right},(Oe==null?void 0:Oe.difficulty)===1?"\u7B80\u5355":(Oe==null?void 0:Oe.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),b.createElement("div",{className:x.bottomitem},b.createElement("span",{className:x.left},"\u77E5\u8BC6\u70B9"),b.createElement("span",{className:x.right},Oe!=null&&Oe.tag_discipline?Oe==null?void 0:Oe.tag_discipline:b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},fe=oe(39469),Pe=oe(58082),Ue=oe(90115),Me=oe(61485),lt=oe(51529),Le=oe(40427),Ce=oe(59301),Xe=Object.defineProperty,nt=Object.defineProperties,ye=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,ut=(Oe,Et,Gt)=>Et in Oe?Xe(Oe,Et,{enumerable:!0,configurable:!0,writable:!0,value:Gt}):Oe[Et]=Gt,Kt=(Oe,Et)=>{for(var Gt in Et||(Et={}))pt.call(Et,Gt)&&ut(Oe,Gt,Et[Gt]);if(gt)for(var Gt of gt(Et))wt.call(Et,Gt)&&ut(Oe,Gt,Et[Gt]);return Oe},rn=(Oe,Et)=>nt(Oe,ye(Et)),It=(Oe,Et,Gt)=>new Promise((vt,Dt)=>{var Ae=ct=>{try{on(Gt.next(ct))}catch(et){Dt(et)}},dt=ct=>{try{on(Gt.throw(ct))}catch(et){Dt(et)}},on=ct=>ct.done?vt(ct.value):Promise.resolve(ct.value).then(Ae,dt);on((Gt=Gt.apply(Oe,Et)).next())});const Zt=({setScoreShow:Oe,ScoreShow:Et,onOk:Gt,isshixuns:vt=!0,isloadings:Dt,dispatch:Ae,isIntelligentAssistant:dt=!1,newExercisePaper:on,shixunsDetail:ct,SpecificDifficulty:et})=>{var An,ot,bt,Ht;let[ht,Mn]=(0,b.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,bigmodel:dt,group_id:[]}),[Ot,Un]=(0,b.useState)([]),[bn,kn]=(0,b.useState)([]),[qt,ma]=(0,b.useState)([]),[zn,ba]=(0,b.useState)([]);const[ln,cn]=(0,b.useState)(!1),[pn]=he.default.useForm(),[Oa,pa]=(0,b.useState)(),[wa,_t]=(0,b.useState)(!1);let[St,fn]=(0,b.useState)(vt);const[Fn,ya]=(0,b.useState)([]),[na,Ka]=(0,b.useState)(0),[aa,Wn]=(0,b.useState)(!0),[Ya,Ma]=(0,b.useState)([]),[Ja,Ar]=(0,b.useState)([]),At=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}];let[In,Rn]=(0,b.useState)([]),[wn,xe]=(0,b.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:"",per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const ft=(0,b.useRef)(new Set),Bt=(0,b.useRef)(new Set),Vt=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Rt=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],yt=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[hn,je]=(0,b.useState)(!1),Ke=()=>{pn.resetFields(),St=!1,fn(!1),je(!1),pn.submit()};(0,b.useEffect)(()=>{var Je,Qt,Cn,tt,Jn,Nn,sa,Zn,za,la;(((Cn=(Qt=(Je=on==null?void 0:on.editData)==null?void 0:Je.exercise)==null?void 0:Qt.exist_item_bank_ids)==null?void 0:Cn.length)>0||((Nn=(Jn=(tt=on==null?void 0:on.editData)==null?void 0:tt.exercise)==null?void 0:Jn.exist_item_bank_shixun_ids)==null?void 0:Nn.length)>0)&&Ar([...(Zn=(sa=on==null?void 0:on.editData)==null?void 0:sa.exercise)==null?void 0:Zn.exist_item_bank_ids,...(la=(za=on==null?void 0:on.editData)==null?void 0:za.exercise)==null?void 0:la.exist_item_bank_shixun_ids])},[(ot=(An=on==null?void 0:on.editData)==null?void 0:An.exercise)==null?void 0:ot.exist_item_bank_ids]),(0,b.useEffect)(()=>{Et&&(pn.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),aa&&St&&(pn.setFieldsValue({item_type:"SHIXUN"}),ht.item_type="SHIXUN",et&&(pn.setFieldsValue({diff:et}),ht.diff=et),Mn(Kt({},ht)),Wn(!1)),He(ht),Mt(),sn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),un())},[Et]),(0,b.useEffect)(()=>{na>0&&setTimeout(()=>{Ka(0)},2e3)},[na]);function He(Je){return It(this,null,function*(){var Qt,Cn,tt;if(cn(!0),Mn(Kt({},Je)),(qt==null?void 0:qt.length)<=0&&Je.type==="5"){ba([]),cn(!1);return}console.log("----",qt,Fn);let Jn=Je.type==="5"?qt==null?void 0:qt.filter(Zn=>!Fn.includes(Zn)):null,Nn=Je.type==="5"?qt==null?void 0:qt.filter(Zn=>Fn.includes(Zn)):null;Je.group_id=((Qt=Je.group_id)==null?void 0:Qt.map(Zn=>Zn==null?void 0:Zn.value))||null;let sa=yield(0,le.ZP)("/api/item_banks.json",{method:"get",params:rn(Kt({},Je),{discipline_id:((Cn=Je==null?void 0:Je.courseid)==null?void 0:Cn[0])||null,sub_discipline_id:((tt=Je==null?void 0:Je.courseid)==null?void 0:tt[1])||null,ids:Jn,shixun_ids:Nn,include_shixuns:!dt,keyword:Je.keyword?encodeURIComponent(Je.keyword):Je.keyword,type:Je.type==="5"?null:Je.type,clazz:Je.type==="3"?"ItemBanksGroup":null})});ba(sa),cn(!1)})}function Mt(){return It(this,null,function*(){let Je=yield(0,le.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:ht.type==="5"?null:ht.type,clazz:"ItemBanksGroup"}});Un((0,a.L)(Je==null?void 0:Je.disciplines))})}function un(){return It(this,null,function*(){let Je=yield(0,le.ZP)("/api/users/vrs_subject_names.json",{method:"Get"});(Je==null?void 0:Je.status)==0&&Rn(Je==null?void 0:Je.names)})}function sn(Je){return It(this,null,function*(){var Qt;let Cn=yield(0,le.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Je}),tt=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Qt=Cn==null?void 0:Cn.data)==null?void 0:Qt.map(Jn=>({title:Jn.name,id:Jn.id,pid:Jn.id,value:Jn.id,key:Jn.id,isLeaf:!Jn.have_child}))}];Ma(tt)})}function Xn(Je){return It(this,null,function*(){var Qt,Cn,tt,Jn;cn(!0);let Nn=(Qt=Je.list)==null?void 0:Qt.filter(za=>!Fn.includes(za)),sa=(Cn=Je.list)==null?void 0:Cn.filter(za=>Fn.includes(za));if(Nn.length===0&&sa.length===0){cn(!1),ba([]);return}let Zn=yield(0,le.ZP)("/api/item_banks.json",{method:"get",params:rn(Kt({},Je),{discipline_id:((tt=Je==null?void 0:Je.courseid)==null?void 0:tt[0])||null,sub_discipline_id:((Jn=Je==null?void 0:Je.courseid)==null?void 0:Jn[1])||null,ids:Nn,shixun_ids:sa,type:Je.type==="5"?null:Je.type,clazz:Je.type==="3"?"ItemBanksGroup":null})});cn(!1),ba(Zn)})}const Qn=Je=>It(void 0,null,function*(){const Qt=yield Ae({type:"shixunsDetail/release",payload:{id:Je}});let Cn=Qt==null?void 0:Qt.tag_position,tt=(Qt==null?void 0:Qt.evaluation_set_position)||[],Jn=Qt.status;return Jn===0?(Be.ZP.success("\u53D1\u5E03\u6210\u529F"),He(ht),!0):(Jn===2?Be.ZP.error(`\u7B2C${tt.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):Jn===3?Be.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${Cn.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):Be.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),gn=Je=>(Je==null?void 0:Je.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",Yn=(Je,Qt,Cn)=>Je.map(tt=>tt.key===Qt?Kt(Kt({},tt),Cn):tt.children?rn(Kt({},tt),{children:Yn(tt.children,Qt,Cn)}):tt),Pa=Je=>It(void 0,null,function*(){const{key:Qt}=Je;let Cn=ht.type;const tt=yield(0,Le.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Qt),type:Cn}),{data:Jn,total_count:Nn}=tt||{};Nn>0&&Ma(sa=>Yn(sa,Qt,{children:Jn.map(Zn=>({title:Zn.name,id:Zn.id,pid:Zn.id,value:Zn.id,key:Zn.id,isLeaf:!Zn.have_child}))}))});function zt(Je){console.log("----",ht),Je==="1"&&(wn.gg=Kt({},ht)),Je==="2"&&(wn.scj=Kt({},ht)),Je==="3"&&(wn.ttgx=Kt({},ht)),Je==="0"&&(wn.wcjd=Kt({},ht)),Je==="5"&&(wn.yx=Kt({},ht)),xe(Kt({},wn))}function qn(){ht.type==="1"&&(ht=wn.gg),ht.type==="2"&&(ht=wn.scj),ht.type==="3"&&(ht=wn.ttgx),ht.type==="0"&&(ht=wn.wcjd),ht.type==="5"&&(ht=wn.yx),(ht==null?void 0:ht.item_type)==="SHIXUN"?(St=!0,fn(!0)):(St=!1,fn(!1)),pn.setFieldsValue(Kt({},ht)),Mn(Kt({},ht)),He(Kt({},ht))}return Ce.createElement("div",null,Ce.createElement(Ie.default,{title:!1,footer:!1,open:Et,width:1360,centered:!0,className:E.scoremodal,onCancel:()=>{Oe(!1)}},Ce.createElement("div",{style:{display:"flex",alignItems:"center"}},Ce.createElement("div",{className:E.title},dt?"\u4EE5\u9898\u6362\u9898":"\u9898\u5E93\u9009\u9898")),dt&&Ce.createElement("div",{style:{padding:10,background:"#F6F7F9",borderRadius:4,marginTop:14}},"\u6839\u636E\u73B0\u6709\u8BD5\u9898\u7684\u9898\u578B\u3001\u65B9\u5411\u3001\u77E5\u8BC6\u70B9\u3001\u96BE\u6613\u5EA6\uFF0C\u5FEB\u901F\u751F\u6210\u65B0\u7684\u8BD5\u9898\uFF0C\u589E\u52A0\u8BD5\u9898\u7684\u4E30\u5BCC\u5EA6"),Ce.createElement(be.default,{className:E.tabWrap,activeKey:ht.type,onChange:Je=>{Je==="3"?(ht.show_all_share=!0,sn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):ht.show_all_share=null,Je==="0"&&sn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),zt(ht.type),ht.type=Je,(ht==null?void 0:ht.item_type)==="SHIXUN"&&ht.type!=="5"&&(St=!0,fn(!0)),je(!1),ht.type==="5"&&(St=!1,fn(!1)),qn(),Mt()},items:[{label:"\u516C\u5171",key:"1"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u6536\u85CF\u5939",key:"2"},{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:Ce.createElement("div",null,"\u5DF2\u9009",qt.length>0&&Ce.createElement("span",{className:E.titlecount},qt.length),na>0&&Ce.createElement("span",{className:E.add},"+",na)),key:"5"}]}),Ce.createElement(he.default,{layout:"inline",form:pn,onValuesChange:(Je,Qt)=>{const Cn=Object.values(Qt).some(Jn=>Jn!==null&&Jn!==""&&Jn!==void 0),tt=Qt.keyword==="";if(je(Cn||!tt),ht.page=1,(Qt==null?void 0:Qt.item_type)==="SHIXUN"){if(ht.type==="5"?(et&&pn.setFieldsValue({difficulty:et}),fn(!1)):(et&&pn.setFieldsValue({diff:et}),fn(!0)),Je.keyword||Je.keyword==="")return;setTimeout(()=>{pn.submit()},0)}else{if(Je!=null&&Je.courseid&&pn.setFieldsValue({tag_discipline_id:""}),fn(!1),Je.keyword||Je.keyword==="")return;pn.submit()}},onFinish:Je=>{var Qt;ht.type==="3"&&(!Je.group_id||((Qt=Je==null?void 0:Je.group_id)==null?void 0:Qt.length)===0)?ht.show_all_share=!0:ht.show_all_share=null,Mn(Kt(Kt({},ht),Je)),He(Kt(Kt({},ht),Je))}},Ce.createElement(he.default.Item,{name:"item_type"},Ce.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle"},(dt?At.slice(0,6):At).map(Je=>Ce.createElement(Ge.default.Option,{key:Je.value},Je.name)))),Ce.createElement(he.default.Item,{name:"courseid"},Ce.createElement(Fe.Z,{className:E.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:Ot})),!St&&Ce.createElement(he.default.Item,{name:"tag_discipline_id"},Ce.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(bt=zn==null?void 0:zn.tag_disciplines)==null?void 0:bt.map(Je=>Ce.createElement(Ge.default.Option,{key:Je.id},Je.name)))),St&&Ce.createElement(he.default.Item,{name:"vrs_name"},Ce.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u79D1\u76EE",style:{width:118},size:"middle",allowClear:!0},(Ht=[{id:"",name:"\u5168\u90E8"},...(In==null?void 0:In.map(Je=>({id:Je,name:Je})))||[]])==null?void 0:Ht.map(Je=>Ce.createElement(Ge.default.Option,{key:Je.id},Je.name)))),Ce.createElement(he.default.Item,{name:St?"diff":"difficulty"},Ce.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0,disabled:(ht==null?void 0:ht.item_type)==="SHIXUN"&&!!et},!St&&Vt.map(Je=>Ce.createElement(Ge.default.Option,{value:Je.value,key:Je.value},Je.name)),St&&Rt.map(Je=>Ce.createElement(Ge.default.Option,{value:Je.value,key:Je.value},Je.name)))),St&&Ce.createElement(he.default.Item,{name:"shixun_publish_status"},Ce.createElement(Ge.default,{className:E.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},yt.map(Je=>Ce.createElement(Ge.default.Option,{key:Je.value},Je.name)))),(ht.type==="3"||ht.type==="0")&&!St&&Ce.createElement(he.default.Item,{name:"group_id"},Ce.createElement(Ye.default,{treeDataSimpleMode:!0,style:{width:118},className:E.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Je,Qt)=>Qt.title.toUpperCase().indexOf(Je.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:Pa,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:Ya})),hn&&Ce.createElement("span",{className:E.allqingchu,onClick:Ke},Ce.createElement("i",{className:"iconfont icon-guanbi4"}),Ce.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Ce.createElement(he.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Ce.createElement(ke.default.Search,{className:E.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Ce.createElement("i",{className:`iconfont icon-sousuo9 font14 ${E.searchIcon}`,onClick:()=>pn.submit()}),onSearch:Je=>{pn.submit()}}))),Ce.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Ce.createElement("div",{onClick:()=>{ht.updated_at==="asc"?ht.updated_at="desc":ht.updated_at="asc",Mn(rn(Kt({},ht),{page:1})),He(rn(Kt({},ht),{page:1}))}}," ",ht.updated_at?Ce.createElement("img",{src:ht.updated_at==="asc"?fe.Z:Pe.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ce.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Ce.createElement("div",{onClick:()=>{ht.quotes==="asc"?ht.quotes="desc":ht.quotes="asc",Mn(rn(Kt({},ht),{page:1})),He(rn(Kt({},ht),{page:1}))},style:{marginLeft:20}}," ",ht.quotes?Ce.createElement("img",{src:ht.quotes==="asc"?fe.Z:Pe.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ce.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Ce.createElement(De.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(zn==null?void 0:zn.items)||(zn==null?void 0:zn.shixun_list),pagination:!1,loading:ln,rowKey:Je=>Je.id,rowSelection:{type:dt?"radio":"checkbox",selectedRowKeys:bn,getCheckboxProps:Je=>({disabled:Je.shixun_tag_num===1||(Ja==null?void 0:Ja.find(Qt=>Je.id===Qt))}),onSelect(Je,Qt,Cn){if(dt){kn([Je.id]),Bt.current=new Set([Je.id]),Ka(1),ma([Je.id]);return}if(Qt)(St||Je!=null&&Je.challenge_names)&&ya([...Fn,Je.id]),kn([...bn,Je.id]),Je.identifier?ft.current.add(Je.id):Bt.current.add(Je.id),Ka(1),ma([...qt,Je.id]);else{Je.identifier?ft.current.delete(Je.id):Bt.current.delete(Je.id);let tt=qt.filter(Jn=>Jn!==Je.id);if(kn(tt),ma(tt),St||Je!=null&&Je.challenge_names){let Jn=Fn.filter(Nn=>Nn!==Je.id);ya([...Jn])}if(ht.type==="5"){Xn(rn(Kt({},ht),{list:[...tt]}));return}}},onSelectAll(Je,Qt,Cn){var tt,Jn;if(Je){const Nn=Cn.map(Zn=>Zn.id),sa=(Jn=Cn==null?void 0:Cn.filter(Zn=>Zn==null?void 0:Zn.challenge_names))==null?void 0:Jn.map(Zn=>Zn.id);ya([...Fn,...sa]),kn([...bn,...Nn]),ma([...qt,...Nn]);for(const Zn of Cn)Zn.identifier?ft.current.add(Zn.id):Bt.current.add(Zn.id)}else{const Nn=Cn.map(la=>la.id),sa=bn.filter(la=>!Nn.some(_a=>_a===la)),Zn=(tt=Cn==null?void 0:Cn.filter(la=>la==null?void 0:la.challenge_names))==null?void 0:tt.map(la=>la.id);kn([...sa]),ma([...sa]);let za=Fn.filter(la=>!Zn.some(_a=>_a===la.id));ya([...za]),ht.type==="5"&&Xn(rn(Kt({},ht),{list:[...sa]}));for(const la of Nn)la.identifier?ft.current.delete(la):Bt.current.delete(la)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(Je,Qt,Cn)=>{var tt,Jn;return Ce.createElement(Te.Z,{title:gn(Qt)},Ce.createElement("div",null,St||Qt!=null&&Qt.challenge_names?"\u5B9E\u8BAD\u9898":(Jn=(tt=At==null?void 0:At.filter(Nn=>Nn.value===Je))==null?void 0:tt[0])==null?void 0:Jn.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:St?"30%":"60%",key:"name",render:(Je,Qt,Cn)=>{var tt;return Ce.createElement("div",{style:{display:"flex",alignItems:"center"}},Ce.createElement(Te.Z,{title:gn(Qt)},Ce.createElement("div",{className:Qt!=null&&Qt.high_resources_consume?E.q_title:""},Ce.createElement(y.Z,{key:1,showLines:1,showTextOnly:!0,value:St||Qt!=null&&Qt.challenge_names?Qt!=null&&Qt.title||Je===null?"--":Je:(Qt==null?void 0:Qt.item_type)=="BPROGRAM"?(tt=Qt==null?void 0:Qt.program_attr)==null?void 0:tt.description:Je}))),(Qt==null?void 0:Qt.high_resources_consume)&&Ce.createElement(lt.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!St,render:(Je,Qt,Cn)=>{var tt;return Ce.createElement(Te.Z,{title:gn(Qt)},Ce.createElement("span",null,Je?(tt=Je==null?void 0:Je.split("\u3001"))==null?void 0:tt[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!St,render:(Je,Qt,Cn)=>Ce.createElement(Te.Z,{title:gn(Qt)},Ce.createElement("span",null,Je||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(Je,Qt,Cn)=>{var tt,Jn,Nn,sa;return Ce.createElement(Te.Z,{title:gn(Qt)},Ce.createElement("div",null,St||Qt!=null&&Qt.challenge_names?(Qt==null?void 0:Qt.level)||((Jn=(tt=Vt==null?void 0:Vt.filter(Zn=>Zn.value===Je))==null?void 0:tt[0])==null?void 0:Jn.name):(sa=(Nn=Vt==null?void 0:Vt.filter(Zn=>Zn.value===Je))==null?void 0:Nn[0])==null?void 0:sa.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!St,render:(Je,Qt,Cn)=>Ce.createElement(Te.Z,{title:gn(Qt)},Ce.createElement("div",null,Je||"- -"))},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!St,render:(Je,Qt,Cn)=>Ce.createElement("span",null,Je||"- -")},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(Je,Qt,Cn)=>Ce.createElement(Te.Z,{title:gn(Qt)},Ce.createElement("div",null,St||Qt!=null&&Qt.challenge_names?(Qt==null?void 0:Qt.study_count)||(Qt==null?void 0:Qt.stu_num):Je))},{title:Ce.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Ce.createElement(Te.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Ce.createElement(Me.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!St,render:(Je,Qt,Cn)=>Ce.createElement(Te.Z,{title:gn(Qt)},Ce.createElement("div",null,Je||"- -"))},{title:Ce.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Ce.createElement(Te.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Ce.createElement(Me.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!St,render:(Je,Qt,Cn)=>Ce.createElement("span",null,Je||"- -")},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(Je,Qt,Cn)=>Ce.createElement(Te.Z,{title:gn(Qt)},Ce.createElement("div",{style:{flex:1,textAlign:"start"}},Ce.createElement("a",{onClick:()=>{var tt,Jn;pa(rn(Kt({},Qt),{question_type:St||Qt!=null&&Qt.challenge_names?5:(Jn=(tt=At==null?void 0:At.filter(Nn=>Nn.value===(Qt==null?void 0:Qt.item_type)))==null?void 0:tt[0])==null?void 0:Jn.question_type})),_t(!0)}},"\u67E5\u770B"),(Qt==null?void 0:Qt.shixun_tag_num)===1&&Ce.createElement("a",{style:{marginLeft:10},onClick:()=>{Ie.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Ce.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Ce.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Qt==null?void 0:Qt.identifier}/challenges`)}},(Qt==null?void 0:Qt.shixun_name)||"--"),"\uFF1F"),onOk:()=>It(void 0,null,function*(){if(!Qn(Qt==null?void 0:Qt.identifier))return new Promise((tt,Jn)=>{Jn()})})})}},"\u53D1\u5E03")))}].filter(Je=>!Je.hidden)}),Ce.createElement(We.Z,{current:ht.page,total:(zn==null?void 0:zn.items_count)||(zn==null?void 0:zn.shixuns_count),style:{marginBottom:20},defaultPageSize:ht.per_page,showTotal:Je=>Ce.createElement("span",null,"\u5171\xA0",Ce.createElement("span",{style:{color:"#165DFF"}},Je),"\xA0\u6761\u6570\u636E"),pageSize:ht.per_page,onChange:(Je,Qt)=>{ht.page=Je,ht.per_page=Qt,Mn(Kt({},ht)),He(Kt({},ht))}}),Ce.createElement("div",{className:E.bottom},Ce.createElement(Ve.ZP,{className:E.no,onClick:()=>{Oe(!1)}},"\u53D6\u6D88"),Ce.createElement(Ve.ZP,{loading:Dt,style:{width:Dt&&75},className:E.yes,onClick:()=>It(void 0,null,function*(){if((qt==null?void 0:qt.length)<=0){Be.ZP.info(dt?"\u8BF7\u9009\u62E9\u4E00\u9053\u8BD5\u9898":"\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}Gt([...Bt.current],[...ft.current],!0,qt==null?void 0:qt.length)})},dt?"\u5F00\u59CB\u6362\u9898":"\u786E\u8BA4"))),Ce.createElement(Ie.default,{open:wa,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:E.previewModal,width:1e3,centered:!0,onCancel:()=>{_t(!1)},onOk:()=>{_t(!1)}},Ce.createElement(ge,{qitem:Oa})))};var Qe=(0,Ue.connect)(({shixunsDetail:Oe,newExercisePaper:Et})=>({shixunsDetail:Oe,newExercisePaper:Et}))(Zt)},26692:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return De}});var b=oe(43418),he={ul:"ul___TdfYY"},Be=oe(32637),Ie=oe(59301),be=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,Ye=(Te,We)=>{var Ve={};for(var le in Te)Ge.call(Te,le)&&We.indexOf(le)<0&&(Ve[le]=Te[le]);if(Te!=null&&be)for(var le of be(Te))We.indexOf(le)<0&&Fe.call(Te,le)&&(Ve[le]=Te[le]);return Ve},De=Te=>{var We=Te,{open:Ve,onCancel:le}=We,E=Ye(We,["open","onCancel"]);return Ie.createElement(b.default,{centered:!0,open:Ve,title:Ie.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:le,footer:null},Ie.createElement("div",null,Ie.createElement("div",{className:"tc"},Ie.createElement("img",{className:"mt10",src:Be,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),Ie.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),Ie.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),Ie.createElement("div",{style:{color:"#333"},className:"pt30 font14"},Ie.createElement("ul",{className:he.ul},Ie.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),Ie.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),Ie.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},49613:function(_e,xt,oe){"use strict";oe.d(xt,{I:function(){return he}});var b=oe(59301);const he=()=>{const[Be,Ie]=(0,b.useState)("hidden");return{overflow:Be,handleMouseEnter:()=>Ie("auto"),handleMouseLeave:()=>Ie("hidden")}}},77578:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return b}});const b=he=>he?typeof he=="function"?he():he:null},66104:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return nt}});var b=oe(92310),he=oe.n(b),Be=oe(11592),Ie=oe(26112),be=oe(59301),Ge=oe(92343),Fe=oe(36355),Ye=oe(84105),ke=oe(91857);const De=ye=>{let{children:gt}=ye;const{getPrefixCls:pt}=be.useContext(Fe.E_),wt=pt("breadcrumb");return be.createElement("li",{className:`${wt}-separator`,"aria-hidden":"true"},gt===""?gt:gt||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var Te=De,We=function(ye,gt){var pt={};for(var wt in ye)Object.prototype.hasOwnProperty.call(ye,wt)&>.indexOf(wt)<0&&(pt[wt]=ye[wt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,wt=Object.getOwnPropertySymbols(ye);utgt[ut]||wt)}function le(ye,gt,pt,wt){if(pt==null)return null;const{className:ut,onClick:Kt}=gt,rn=We(gt,["className","onClick"]),It=Object.assign(Object.assign({},(0,Ie.Z)(rn,{data:!0,aria:!0})),{onClick:Kt});return wt!==void 0?be.createElement("a",Object.assign({},It,{className:he()(`${ye}-link`,ut),href:wt}),pt):be.createElement("span",Object.assign({},It,{className:he()(`${ye}-link`,ut)}),pt)}function E(ye,gt){return(wt,ut,Kt,rn,It)=>{if(gt)return gt(wt,ut,Kt,rn);const Zt=Ve(wt,ut);return le(ye,wt,Zt,It)}}var a=function(ye,gt){var pt={};for(var wt in ye)Object.prototype.hasOwnProperty.call(ye,wt)&>.indexOf(wt)<0&&(pt[wt]=ye[wt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,wt=Object.getOwnPropertySymbols(ye);ut{const{prefixCls:gt,separator:pt="/",children:wt,menu:ut,overlay:Kt,dropdownProps:rn,href:It}=ye,Qe=(Oe=>{if(ut||Kt){const Et=Object.assign({},rn);if(ut){const Gt=ut||{},{items:vt}=Gt,Dt=a(Gt,["items"]);Et.menu=Object.assign(Object.assign({},Dt),{items:vt==null?void 0:vt.map((Ae,dt)=>{var{key:on,title:ct,label:et,path:An}=Ae,ot=a(Ae,["key","title","label","path"]);let bt=et!=null?et:ct;return An&&(bt=be.createElement("a",{href:`${It}${An}`},bt)),Object.assign(Object.assign({},ot),{key:on!=null?on:dt,label:bt})})})}else Kt&&(Et.overlay=Kt);return be.createElement(ke.Z,Object.assign({placement:"bottom"},Et),be.createElement("span",{className:`${gt}-overlay-link`},Oe,be.createElement(Ye.Z,null)))}return Oe})(wt);return Qe!=null?be.createElement(be.Fragment,null,be.createElement("li",null,Qe),pt&&be.createElement(Te,null,pt)):null},y=ye=>{const{prefixCls:gt,children:pt,href:wt}=ye,ut=a(ye,["prefixCls","children","href"]),{getPrefixCls:Kt}=be.useContext(Fe.E_),rn=Kt("breadcrumb",gt);return be.createElement(x,Object.assign({},ut,{prefixCls:rn}),le(rn,ut,pt,wt))};y.__ANT_BREADCRUMB_ITEM=!0;var z=y,ne=oe(17313),re=oe(83116),ie=oe(37613);const ge=ye=>{const{componentCls:gt,iconCls:pt}=ye;return{[gt]:Object.assign(Object.assign({},(0,ne.Wf)(ye)),{color:ye.itemColor,fontSize:ye.fontSize,[pt]:{fontSize:ye.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:ye.linkColor,transition:`color ${ye.motionDurationMid}`,padding:`0 ${ye.paddingXXS}px`,borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",marginInline:-ye.marginXXS,"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover}},(0,ne.Qy)(ye)),"li:last-child":{color:ye.lastItemColor},[`${gt}-separator`]:{marginInline:ye.separatorMargin,color:ye.separatorColor},[`${gt}-link`]:{[` > ${pt} + span, > ${pt} + a - `]:{marginInlineStart:ye.marginXXS}},[`${gt}-overlay-link`]:{borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",padding:`0 ${ye.paddingXXS}px`,marginInline:-ye.marginXXS,[`> ${pt}`]:{marginInlineStart:ye.marginXXS,fontSize:ye.fontSizeIcon},"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover,a:{color:ye.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${ye.componentCls}-rtl`]:{direction:"rtl"}})}};var fe=(0,re.Z)("Breadcrumb",ye=>{const gt=(0,ie.TS)(ye,{});return[ge(gt)]},ye=>({itemColor:ye.colorTextDescription,lastItemColor:ye.colorText,iconFontSize:ye.fontSize,linkColor:ye.colorTextDescription,linkHoverColor:ye.colorText,separatorColor:ye.colorTextDescription,separatorMargin:ye.marginXS})),Pe=function(ye,gt){var pt={};for(var xt in ye)Object.prototype.hasOwnProperty.call(ye,xt)&>.indexOf(xt)<0&&(pt[xt]=ye[xt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,xt=Object.getOwnPropertySymbols(ye);ut{var{breadcrumbName:rn}=Kt,It=Pe(Kt,["breadcrumbName"]);return Object.assign(Object.assign({},It),{title:rn})})}),ut}function Me(ye,gt){return(0,Ce.useMemo)(()=>ye||(gt?gt.map(Ue):null),[ye,gt])}var lt=function(ye,gt){var pt={};for(var xt in ye)Object.prototype.hasOwnProperty.call(ye,xt)&>.indexOf(xt)<0&&(pt[xt]=ye[xt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,xt=Object.getOwnPropertySymbols(ye);ut{if(gt===void 0)return gt;let pt=(gt||"").replace(/^\//,"");return Object.keys(ye).forEach(xt=>{pt=pt.replace(`:${xt}`,ye[xt])}),pt},be=ye=>{const{prefixCls:gt,separator:pt="/",style:xt,className:ut,rootClassName:Kt,routes:rn,items:It,children:Zt,itemRender:Qe,params:Oe={}}=ye,Et=lt(ye,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Gt,direction:vt,breadcrumb:wt}=Ce.useContext(Fe.E_);let Ae;const dt=Gt("breadcrumb",gt),[on,ct]=fe(dt),et=Me(It,rn),An=E(dt,Qe);if(et&&et.length>0){const Ht=[],ht=It||rn;Ae=et.map((On,Ot)=>{const{path:Un,key:Bn,type:kn,menu:qt,overlay:ca,onClick:zn,className:ba,separator:ln,dropdownProps:cn}=On,pn=Le(Oe,Un);pn!==void 0&&Ht.push(pn);const Oa=Bn!=null?Bn:Ot;if(kn==="separator")return Ce.createElement(Te,{key:Oa},ln);const va={},wa=Ot===et.length-1;qt?va.menu=qt:ca&&(va.overlay=ca);let{href:_t}=On;return Ht.length&&pn!==void 0&&(_t=`#/${Ht.join("/")}`),Ce.createElement(x,Object.assign({key:Oa},va,(0,Ie.Z)(On,{data:!0,aria:!0}),{className:ba,dropdownProps:cn,href:_t,separator:wa?"":pt,onClick:zn,prefixCls:dt}),An(On,Oe,ht,Ht,_t))})}else if(Zt){const Ht=(0,Be.Z)(Zt).length;Ae=(0,Be.Z)(Zt).map((ht,On)=>{if(!ht)return ht;const Ot=On===Ht-1;return(0,Ge.Tm)(ht,{separator:Ot?"":pt,key:On})})}const ot=he()(dt,wt==null?void 0:wt.className,{[`${dt}-rtl`]:vt==="rtl"},ut,Kt,ct),Bt=Object.assign(Object.assign({},wt==null?void 0:wt.style),xt);return on(Ce.createElement("nav",Object.assign({className:ot,style:Bt},Et),Ce.createElement("ol",null,Ae)))};be.Item=z,be.Separator=Te;var Xe=be,nt=Xe},19842:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z:function(){return xn}});var b=oe(94480),he=oe(59301),Be=oe(33853),Ie=oe(58617),Ce=oe(38819),Ge=oe(92310),Fe=oe.n(Ge),Ye=oe(54476),ke=oe(42978),De=oe(75931),Te=oe(77861),We=oe(17115),Ve=oe(90782),le=oe(6089),E=oe(18929),a=he.createContext(null),x=a,y=oe(76190),z=oe(20068),ne=oe(33885),re="__rc_cascader_search_mark__",ie=function(ft,Ft,Vt){var Rt=Vt.label;return Ft.some(function(yt){return String(yt[Rt]).toLowerCase().includes(ft.toLowerCase())})},ge=function(ft,Ft,Vt,Rt){return Ft.map(function(yt){return yt[Rt.label]}).join(" / ")},fe=function(xe,ft,Ft,Vt,Rt,yt){var hn=Rt.filter,je=hn===void 0?ie:hn,Ke=Rt.render,He=Ke===void 0?ge:Ke,Mt=Rt.limit,un=Mt===void 0?50:Mt,sn=Rt.sort;return he.useMemo(function(){var Xn=[];if(!xe)return[];function Qn(gn,Yn){var ha=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;gn.forEach(function(zt){if(!(!sn&&un!==!1&&un>0&&Xn.length>=un)){var _n=[].concat((0,b.Z)(Yn),[zt]),Je=zt[Ft.children],Qt=ha||zt.disabled;if((!Je||Je.length===0||yt)&&je(xe,_n,{label:Ft.label})){var bn;Xn.push((0,ne.Z)((0,ne.Z)({},zt),{},(bn={disabled:Qt},(0,z.Z)(bn,Ft.label,He(xe,_n,Vt,Ft)),(0,z.Z)(bn,re,_n),(0,z.Z)(bn,Ft.children,void 0),bn)))}Je&&Qn(zt[Ft.children],_n,Qt)}})}return Qn(ft,[]),sn&&Xn.sort(function(gn,Yn){return sn(gn[re],Yn[re],xe,Ft)}),un!==!1&&un>0?Xn.slice(0,un):Xn},[xe,ft,Ft,Vt,He,yt,je,sn,un])},Pe="__RC_CASCADER_SPLIT__",Ue="SHOW_PARENT",Me="SHOW_CHILD";function lt(xe){return xe.join(Pe)}function Le(xe){return xe.map(lt)}function be(xe){return xe.split(Pe)}function Xe(xe){var ft=xe||{},Ft=ft.label,Vt=ft.value,Rt=ft.children,yt=Vt||"value";return{label:Ft||"label",value:yt,key:yt,children:Rt||"children"}}function nt(xe,ft){var Ft,Vt;return(Ft=xe.isLeaf)!==null&&Ft!==void 0?Ft:!((Vt=xe[ft.children])!==null&&Vt!==void 0&&Vt.length)}function ye(xe){var ft=xe.parentElement;if(ft){var Ft=xe.offsetTop-ft.offsetTop;Ft-ft.scrollTop<0?ft.scrollTo({top:Ft}):Ft+xe.offsetHeight-ft.scrollTop>ft.offsetHeight&&ft.scrollTo({top:Ft+xe.offsetHeight-ft.offsetHeight})}}function gt(xe,ft){return xe.map(function(Ft){var Vt;return(Vt=Ft[re])===null||Vt===void 0?void 0:Vt.map(function(Rt){return Rt[ft.value]})})}function pt(xe,ft,Ft){var Vt=new Set(xe),Rt=ft();return xe.filter(function(yt){var hn=Rt[yt],je=hn?hn.parent:null,Ke=hn?hn.children:null;return hn&&hn.node.disabled?!0:Ft===Me?!(Ke&&Ke.some(function(He){return He.key&&Vt.has(He.key)})):!(je&&!je.node.disabled&&Vt.has(je.key))})}function xt(xe,ft,Ft){for(var Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Rt=ft,yt=[],hn=function(){var He,Mt,un,sn=xe[je],Xn=(He=Rt)===null||He===void 0?void 0:He.findIndex(function(gn){var Yn=gn[Ft.value];return Vt?String(Yn)===String(sn):Yn===sn}),Qn=Xn!==-1?(Mt=Rt)===null||Mt===void 0?void 0:Mt[Xn]:null;yt.push({value:(un=Qn==null?void 0:Qn[Ft.value])!==null&&un!==void 0?un:sn,index:Xn,option:Qn}),Rt=Qn==null?void 0:Qn[Ft.children]},je=0;je1){var tt=Qn.slice(0,-1);zt(tt)}else He(!1)},Qt=function(){var tt,Jn=((tt=Yn[gn])===null||tt===void 0?void 0:tt[Ft.children])||[],In=Jn.find(function(Zn){return!Zn.disabled});if(In){var sa=[].concat((0,b.Z)(Qn),[In[Ft.value]]);zt(sa)}};he.useImperativeHandle(xe,function(){return{onKeyDown:function(tt){var Jn=tt.which;switch(Jn){case dt.Z.UP:case dt.Z.DOWN:{var In=0;Jn===dt.Z.UP?In=-1:Jn===dt.Z.DOWN&&(In=1),In!==0&&_n(In);break}case dt.Z.LEFT:{if(Ke)break;un?Qt():Je();break}case dt.Z.RIGHT:{if(Ke)break;un?Je():Qt();break}case dt.Z.BACKSPACE:{Ke||Je();break}case dt.Z.ENTER:{if(Qn.length){var sa=Yn[gn],Zn=(sa==null?void 0:sa[re])||[];Zn.length?yt(Zn.map(function(za){return za[Ft.value]}),Zn[Zn.length-1]):yt(Qn,Yn[gn])}break}case dt.Z.ESC:He(!1),Mt&&tt.stopPropagation()}},onKeyUp:function(){}}})},ct=he.forwardRef(function(xe,ft){var Ft,Vt,Rt,yt,hn=(0,Te.lk)(),je=hn.prefixCls,Ke=hn.multiple,He=hn.searchValue,Mt=hn.toggleOpen,un=hn.notFoundContent,sn=hn.direction,Xn=hn.open,Qn=he.useRef(),gn=sn==="rtl",Yn=he.useContext(x),ha=Yn.options,zt=Yn.values,_n=Yn.halfValues,Je=Yn.fieldNames,Qt=Yn.changeOnSelect,bn=Yn.onSelect,tt=Yn.searchOptions,Jn=Yn.dropdownPrefixCls,In=Yn.loadData,sa=Yn.expandTrigger,Zn=Jn||je,za=he.useState([]),la=(0,ke.Z)(za,2),_a=la[0],$a=la[1],sr=function(qa){if(!(!In||He)){var fr=xt(qa,ha,Je),ga=fr.map(function(ka){var nr=ka.option;return nr}),or=ga[ga.length-1];if(or&&!nt(or,Je)){var dr=lt(qa);$a(function(ka){return[].concat((0,b.Z)(ka),[dr])}),In(ga)}}};he.useEffect(function(){_a.length&&_a.forEach(function(Xa){var qa=be(Xa),fr=xt(qa,ha,Je,!0).map(function(or){var dr=or.option;return dr}),ga=fr[fr.length-1];(!ga||ga[Je.children]||nt(ga,Je))&&$a(function(or){return or.filter(function(dr){return dr!==Xa})})})},[ha,_a,Je]);var Tt=he.useMemo(function(){return new Set(Le(zt))},[zt]),Da=he.useMemo(function(){return new Set(Le(_n))},[_n]),Wt=Ae(),xa=(0,ke.Z)(Wt,2),fa=xa[0],Yt=xa[1],Cn=function(qa){Yt(qa),sr(qa)},ea=function(qa){var fr=qa.disabled,ga=nt(qa,Je);return!fr&&(ga||Qt||Ke)},Pn=function(qa,fr){var ga=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;bn(qa),!Ke&&(fr||Qt&&(sa==="hover"||ga))&&Mt(!1)},Ra=he.useMemo(function(){return He?tt:ha},[He,tt,ha]),pa=he.useMemo(function(){for(var Xa=[{options:Ra}],qa=Ra,fr=gt(qa,Je),ga=function(){var nr=fa[or],mt=qa.find(function(Nt,dn){return(fr[dn]?lt(fr[dn]):Nt[Je.value])===nr}),it=mt==null?void 0:mt[Je.children];if(!(it!=null&&it.length))return"break";qa=it,Xa.push({options:it})},or=0;or":_a,sr=xe.loadingIcon,Tt=xe.children,Da=xe.dropdownMatchSelectWidth,Wt=Da===void 0?!1:Da,xa=xe.showCheckedStrategy,fa=xa===void 0?Ue:xa,Yt=(0,De.Z)(xe,Ht),Cn=(0,We.ZP)(Ft),ea=!!un,Pn=(0,E.Z)(hn,{value:je,postState:On}),Ra=(0,ke.Z)(Pn,2),pa=Ra[0],Va=Ra[1],ur=he.useMemo(function(){return Xe(yt)},[JSON.stringify(yt)]),Sr=he.useMemo(function(){return zt||[]},[zt]),Nr=rn(Sr,ur),pr=he.useCallback(function(an){var Lt=Nr();return an.map(function(se){var $e=Lt[se].nodes;return $e.map(function(st){return st[ur.value]})})},[Nr,ur]),Yr=(0,E.Z)("",{value:Qn,postState:function(Lt){return Lt||""}}),Xa=(0,ke.Z)(Yr,2),qa=Xa[0],fr=Xa[1],ga=function(Lt,se){fr(Lt),se.source!=="blur"&&gn&&gn(Lt)},or=Qe(Yn),dr=(0,ke.Z)(or,2),ka=dr[0],nr=dr[1],mt=fe(qa,Sr,ur,_n||Rt,nr,Ke),it=It(Sr,ur),Nt=he.useMemo(function(){var an=it(pa),Lt=(0,ke.Z)(an,2),se=Lt[0],$e=Lt[1];if(!ea||!pa.length)return[se,[],$e];var st=Le(se),jt=Nr(),at=(0,Ve.S)(st,!0,jt),tn=at.checkedKeys,Jt=at.halfCheckedKeys;return[pr(tn),pr(Jt),$e]},[ea,pa,Nr,pr,it]),dn=(0,ke.Z)(Nt,3),ia=dn[0],La=dn[1],$t=dn[2],Fa=he.useMemo(function(){var an=Le(ia),Lt=pt(an,Nr,fa);return[].concat((0,b.Z)($t),(0,b.Z)(pr(Lt)))},[ia,Nr,pr,$t,fa]),Sa=ut(Fa,Sr,ur,ea,Mt),ar=(0,le.Z)(function(an){if(Va(an),He){var Lt=On(an),se=Lt.map(function(jt){return xt(jt,Sr,ur).map(function(at){return at.option})}),$e=ea?Lt:Lt[0],st=ea?se:se[0];He($e,st)}}),Ta=(0,le.Z)(function(an){if((!ea||Xn)&&fr(""),!ea)ar(an);else{var Lt=lt(an),se=Le(ia),$e=Le(La),st=se.includes(Lt),jt=$t.some(function(mn){return lt(mn)===Lt}),at=ia,tn=$t;if(jt&&!st)tn=$t.filter(function(mn){return lt(mn)!==Lt});else{var Jt=st?se.filter(function(mn){return mn!==Lt}):[].concat((0,b.Z)(se),[Lt]),Ut=Nr(),Xt;if(st){var ra=(0,Ve.S)(Jt,{checked:!1,halfCheckedKeys:$e},Ut);Xt=ra.checkedKeys}else{var Ha=(0,Ve.S)(Jt,!0,Ut);Xt=Ha.checkedKeys}var Za=pt(Xt,Nr,fa);at=pr(Za)}ar([].concat((0,b.Z)(tn),(0,b.Z)(at)))}}),da=function(Lt,se){if(se.type==="clear"){ar([]);return}var $e=se.values[0],st=$e.valueCells;Ta(st)},Qa=bn!==void 0?bn:Qt,vr=Jn||tt,Tr=Zn||sa,er=function(Lt){za==null||za(Lt),la==null||la(Lt)},cr=he.useMemo(function(){return{options:Sr,fieldNames:ur,values:ia,halfValues:La,changeOnSelect:Ke,onSelect:Ta,checkable:un,searchOptions:mt,dropdownPrefixCls:_n,loadData:Je,expandTrigger:ha,expandIcon:$a,loadingIcon:sr,dropdownMenuColumnStyle:In}},[Sr,ur,ia,La,Ke,Ta,un,mt,_n,Je,ha,$a,sr,In]),Cr=!(qa?mt:Sr).length,Rn=qa&&nr.matchInputWidth||Cr?{}:{minWidth:"auto"};return he.createElement(x.Provider,{value:cr},he.createElement(Te.Ac,(0,Ye.Z)({},Yt,{ref:ft,id:Cn,prefixCls:Rt,autoClearSearchValue:Xn,dropdownMatchSelectWidth:Wt,dropdownStyle:Rn,displayValues:Sa,onDisplayValuesChange:da,mode:ea?"multiple":void 0,searchValue:qa,onSearch:ga,showSearch:ka,OptionList:et,emptyOptions:Cr,open:Qa,dropdownClassName:vr,placement:Tr,onDropdownVisibleChange:er,getRawInputElement:function(){return Tt}})))});Ot.SHOW_PARENT=Ue,Ot.SHOW_CHILD=Me;var Un=Ot,Bn=Un,kn=oe(2738),qt=oe(62892),ca=oe(53487),zn=oe(19080),ba=oe(36355),ln=oe(93891),cn=oe(1684),pn=oe(19716),Oa=oe(32441),va=oe(14154),wa=oe(58582),_t=oe(84443),St=oe(66339),fn=oe(33234),Fn=oe(98447),Ea=oe(17313),na=oe(74207),Ka=oe(83116);const aa=xe=>{const{prefixCls:ft,componentCls:Ft,antCls:Vt}=xe,Rt=`${Ft}-menu-item`,yt=` + `]:{marginInlineStart:ye.marginXXS}},[`${gt}-overlay-link`]:{borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",padding:`0 ${ye.paddingXXS}px`,marginInline:-ye.marginXXS,[`> ${pt}`]:{marginInlineStart:ye.marginXXS,fontSize:ye.fontSizeIcon},"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover,a:{color:ye.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${ye.componentCls}-rtl`]:{direction:"rtl"}})}};var fe=(0,re.Z)("Breadcrumb",ye=>{const gt=(0,ie.TS)(ye,{});return[ge(gt)]},ye=>({itemColor:ye.colorTextDescription,lastItemColor:ye.colorText,iconFontSize:ye.fontSize,linkColor:ye.colorTextDescription,linkHoverColor:ye.colorText,separatorColor:ye.colorTextDescription,separatorMargin:ye.marginXS})),Pe=function(ye,gt){var pt={};for(var wt in ye)Object.prototype.hasOwnProperty.call(ye,wt)&>.indexOf(wt)<0&&(pt[wt]=ye[wt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,wt=Object.getOwnPropertySymbols(ye);ut{var{breadcrumbName:rn}=Kt,It=Pe(Kt,["breadcrumbName"]);return Object.assign(Object.assign({},It),{title:rn})})}),ut}function Me(ye,gt){return(0,be.useMemo)(()=>ye||(gt?gt.map(Ue):null),[ye,gt])}var lt=function(ye,gt){var pt={};for(var wt in ye)Object.prototype.hasOwnProperty.call(ye,wt)&>.indexOf(wt)<0&&(pt[wt]=ye[wt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,wt=Object.getOwnPropertySymbols(ye);ut{if(gt===void 0)return gt;let pt=(gt||"").replace(/^\//,"");return Object.keys(ye).forEach(wt=>{pt=pt.replace(`:${wt}`,ye[wt])}),pt},Ce=ye=>{const{prefixCls:gt,separator:pt="/",style:wt,className:ut,rootClassName:Kt,routes:rn,items:It,children:Zt,itemRender:Qe,params:Oe={}}=ye,Et=lt(ye,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Gt,direction:vt,breadcrumb:Dt}=be.useContext(Fe.E_);let Ae;const dt=Gt("breadcrumb",gt),[on,ct]=fe(dt),et=Me(It,rn),An=E(dt,Qe);if(et&&et.length>0){const Ht=[],ht=It||rn;Ae=et.map((Mn,Ot)=>{const{path:Un,key:bn,type:kn,menu:qt,overlay:ma,onClick:zn,className:ba,separator:ln,dropdownProps:cn}=Mn,pn=Le(Oe,Un);pn!==void 0&&Ht.push(pn);const Oa=bn!=null?bn:Ot;if(kn==="separator")return be.createElement(Te,{key:Oa},ln);const pa={},wa=Ot===et.length-1;qt?pa.menu=qt:ma&&(pa.overlay=ma);let{href:_t}=Mn;return Ht.length&&pn!==void 0&&(_t=`#/${Ht.join("/")}`),be.createElement(x,Object.assign({key:Oa},pa,(0,Ie.Z)(Mn,{data:!0,aria:!0}),{className:ba,dropdownProps:cn,href:_t,separator:wa?"":pt,onClick:zn,prefixCls:dt}),An(Mn,Oe,ht,Ht,_t))})}else if(Zt){const Ht=(0,Be.Z)(Zt).length;Ae=(0,Be.Z)(Zt).map((ht,Mn)=>{if(!ht)return ht;const Ot=Mn===Ht-1;return(0,Ge.Tm)(ht,{separator:Ot?"":pt,key:Mn})})}const ot=he()(dt,Dt==null?void 0:Dt.className,{[`${dt}-rtl`]:vt==="rtl"},ut,Kt,ct),bt=Object.assign(Object.assign({},Dt==null?void 0:Dt.style),wt);return on(be.createElement("nav",Object.assign({className:ot,style:bt},Et),be.createElement("ol",null,Ae)))};Ce.Item=z,Ce.Separator=Te;var Xe=Ce,nt=Xe},19842:function(_e,xt,oe){"use strict";oe.d(xt,{Z:function(){return wn}});var b=oe(94480),he=oe(59301),Be=oe(33853),Ie=oe(58617),be=oe(38819),Ge=oe(92310),Fe=oe.n(Ge),Ye=oe(54476),ke=oe(42978),De=oe(75931),Te=oe(77861),We=oe(17115),Ve=oe(90782),le=oe(6089),E=oe(18929),a=he.createContext(null),x=a,y=oe(76190),z=oe(20068),ne=oe(33885),re="__rc_cascader_search_mark__",ie=function(ft,Bt,Vt){var Rt=Vt.label;return Bt.some(function(yt){return String(yt[Rt]).toLowerCase().includes(ft.toLowerCase())})},ge=function(ft,Bt,Vt,Rt){return Bt.map(function(yt){return yt[Rt.label]}).join(" / ")},fe=function(xe,ft,Bt,Vt,Rt,yt){var hn=Rt.filter,je=hn===void 0?ie:hn,Ke=Rt.render,He=Ke===void 0?ge:Ke,Mt=Rt.limit,un=Mt===void 0?50:Mt,sn=Rt.sort;return he.useMemo(function(){var Xn=[];if(!xe)return[];function Qn(gn,Yn){var Pa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;gn.forEach(function(zt){if(!(!sn&&un!==!1&&un>0&&Xn.length>=un)){var qn=[].concat((0,b.Z)(Yn),[zt]),Je=zt[Bt.children],Qt=Pa||zt.disabled;if((!Je||Je.length===0||yt)&&je(xe,qn,{label:Bt.label})){var Cn;Xn.push((0,ne.Z)((0,ne.Z)({},zt),{},(Cn={disabled:Qt},(0,z.Z)(Cn,Bt.label,He(xe,qn,Vt,Bt)),(0,z.Z)(Cn,re,qn),(0,z.Z)(Cn,Bt.children,void 0),Cn)))}Je&&Qn(zt[Bt.children],qn,Qt)}})}return Qn(ft,[]),sn&&Xn.sort(function(gn,Yn){return sn(gn[re],Yn[re],xe,Bt)}),un!==!1&&un>0?Xn.slice(0,un):Xn},[xe,ft,Bt,Vt,He,yt,je,sn,un])},Pe="__RC_CASCADER_SPLIT__",Ue="SHOW_PARENT",Me="SHOW_CHILD";function lt(xe){return xe.join(Pe)}function Le(xe){return xe.map(lt)}function Ce(xe){return xe.split(Pe)}function Xe(xe){var ft=xe||{},Bt=ft.label,Vt=ft.value,Rt=ft.children,yt=Vt||"value";return{label:Bt||"label",value:yt,key:yt,children:Rt||"children"}}function nt(xe,ft){var Bt,Vt;return(Bt=xe.isLeaf)!==null&&Bt!==void 0?Bt:!((Vt=xe[ft.children])!==null&&Vt!==void 0&&Vt.length)}function ye(xe){var ft=xe.parentElement;if(ft){var Bt=xe.offsetTop-ft.offsetTop;Bt-ft.scrollTop<0?ft.scrollTo({top:Bt}):Bt+xe.offsetHeight-ft.scrollTop>ft.offsetHeight&&ft.scrollTo({top:Bt+xe.offsetHeight-ft.offsetHeight})}}function gt(xe,ft){return xe.map(function(Bt){var Vt;return(Vt=Bt[re])===null||Vt===void 0?void 0:Vt.map(function(Rt){return Rt[ft.value]})})}function pt(xe,ft,Bt){var Vt=new Set(xe),Rt=ft();return xe.filter(function(yt){var hn=Rt[yt],je=hn?hn.parent:null,Ke=hn?hn.children:null;return hn&&hn.node.disabled?!0:Bt===Me?!(Ke&&Ke.some(function(He){return He.key&&Vt.has(He.key)})):!(je&&!je.node.disabled&&Vt.has(je.key))})}function wt(xe,ft,Bt){for(var Vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Rt=ft,yt=[],hn=function(){var He,Mt,un,sn=xe[je],Xn=(He=Rt)===null||He===void 0?void 0:He.findIndex(function(gn){var Yn=gn[Bt.value];return Vt?String(Yn)===String(sn):Yn===sn}),Qn=Xn!==-1?(Mt=Rt)===null||Mt===void 0?void 0:Mt[Xn]:null;yt.push({value:(un=Qn==null?void 0:Qn[Bt.value])!==null&&un!==void 0?un:sn,index:Xn,option:Qn}),Rt=Qn==null?void 0:Qn[Bt.children]},je=0;je1){var tt=Qn.slice(0,-1);zt(tt)}else He(!1)},Qt=function(){var tt,Jn=((tt=Yn[gn])===null||tt===void 0?void 0:tt[Bt.children])||[],Nn=Jn.find(function(Zn){return!Zn.disabled});if(Nn){var sa=[].concat((0,b.Z)(Qn),[Nn[Bt.value]]);zt(sa)}};he.useImperativeHandle(xe,function(){return{onKeyDown:function(tt){var Jn=tt.which;switch(Jn){case dt.Z.UP:case dt.Z.DOWN:{var Nn=0;Jn===dt.Z.UP?Nn=-1:Jn===dt.Z.DOWN&&(Nn=1),Nn!==0&&qn(Nn);break}case dt.Z.LEFT:{if(Ke)break;un?Qt():Je();break}case dt.Z.RIGHT:{if(Ke)break;un?Je():Qt();break}case dt.Z.BACKSPACE:{Ke||Je();break}case dt.Z.ENTER:{if(Qn.length){var sa=Yn[gn],Zn=(sa==null?void 0:sa[re])||[];Zn.length?yt(Zn.map(function(za){return za[Bt.value]}),Zn[Zn.length-1]):yt(Qn,Yn[gn])}break}case dt.Z.ESC:He(!1),Mt&&tt.stopPropagation()}},onKeyUp:function(){}}})},ct=he.forwardRef(function(xe,ft){var Bt,Vt,Rt,yt,hn=(0,Te.lk)(),je=hn.prefixCls,Ke=hn.multiple,He=hn.searchValue,Mt=hn.toggleOpen,un=hn.notFoundContent,sn=hn.direction,Xn=hn.open,Qn=he.useRef(),gn=sn==="rtl",Yn=he.useContext(x),Pa=Yn.options,zt=Yn.values,qn=Yn.halfValues,Je=Yn.fieldNames,Qt=Yn.changeOnSelect,Cn=Yn.onSelect,tt=Yn.searchOptions,Jn=Yn.dropdownPrefixCls,Nn=Yn.loadData,sa=Yn.expandTrigger,Zn=Jn||je,za=he.useState([]),la=(0,ke.Z)(za,2),_a=la[0],$a=la[1],sr=function(qa){if(!(!Nn||He)){var fr=wt(qa,Pa,Je),fa=fr.map(function(ka){var nr=ka.option;return nr}),or=fa[fa.length-1];if(or&&!nt(or,Je)){var dr=lt(qa);$a(function(ka){return[].concat((0,b.Z)(ka),[dr])}),Nn(fa)}}};he.useEffect(function(){_a.length&&_a.forEach(function(Xa){var qa=Ce(Xa),fr=wt(qa,Pa,Je,!0).map(function(or){var dr=or.option;return dr}),fa=fr[fr.length-1];(!fa||fa[Je.children]||nt(fa,Je))&&$a(function(or){return or.filter(function(dr){return dr!==Xa})})})},[Pa,_a,Je]);var Tt=he.useMemo(function(){return new Set(Le(zt))},[zt]),Da=he.useMemo(function(){return new Set(Le(qn))},[qn]),Wt=Ae(),xa=(0,ke.Z)(Wt,2),va=xa[0],Yt=xa[1],xn=function(qa){Yt(qa),sr(qa)},ea=function(qa){var fr=qa.disabled,fa=nt(qa,Je);return!fr&&(fa||Qt||Ke)},Pn=function(qa,fr){var fa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Cn(qa),!Ke&&(fr||Qt&&(sa==="hover"||fa))&&Mt(!1)},Ra=he.useMemo(function(){return He?tt:Pa},[He,tt,Pa]),ha=he.useMemo(function(){for(var Xa=[{options:Ra}],qa=Ra,fr=gt(qa,Je),fa=function(){var nr=va[or],mt=qa.find(function(Nt,dn){return(fr[dn]?lt(fr[dn]):Nt[Je.value])===nr}),it=mt==null?void 0:mt[Je.children];if(!(it!=null&&it.length))return"break";qa=it,Xa.push({options:it})},or=0;or":_a,sr=xe.loadingIcon,Tt=xe.children,Da=xe.dropdownMatchSelectWidth,Wt=Da===void 0?!1:Da,xa=xe.showCheckedStrategy,va=xa===void 0?Ue:xa,Yt=(0,De.Z)(xe,Ht),xn=(0,We.ZP)(Bt),ea=!!un,Pn=(0,E.Z)(hn,{value:je,postState:Mn}),Ra=(0,ke.Z)(Pn,2),ha=Ra[0],Va=Ra[1],ur=he.useMemo(function(){return Xe(yt)},[JSON.stringify(yt)]),Sr=he.useMemo(function(){return zt||[]},[zt]),Nr=rn(Sr,ur),pr=he.useCallback(function(an){var Lt=Nr();return an.map(function(de){var $e=Lt[de].nodes;return $e.map(function(st){return st[ur.value]})})},[Nr,ur]),Yr=(0,E.Z)("",{value:Qn,postState:function(Lt){return Lt||""}}),Xa=(0,ke.Z)(Yr,2),qa=Xa[0],fr=Xa[1],fa=function(Lt,de){fr(Lt),de.source!=="blur"&&gn&&gn(Lt)},or=Qe(Yn),dr=(0,ke.Z)(or,2),ka=dr[0],nr=dr[1],mt=fe(qa,Sr,ur,qn||Rt,nr,Ke),it=It(Sr,ur),Nt=he.useMemo(function(){var an=it(ha),Lt=(0,ke.Z)(an,2),de=Lt[0],$e=Lt[1];if(!ea||!ha.length)return[de,[],$e];var st=Le(de),jt=Nr(),at=(0,Ve.S)(st,!0,jt),tn=at.checkedKeys,Jt=at.halfCheckedKeys;return[pr(tn),pr(Jt),$e]},[ea,ha,Nr,pr,it]),dn=(0,ke.Z)(Nt,3),ia=dn[0],La=dn[1],$t=dn[2],Ba=he.useMemo(function(){var an=Le(ia),Lt=pt(an,Nr,va);return[].concat((0,b.Z)($t),(0,b.Z)(pr(Lt)))},[ia,Nr,pr,$t,va]),Ea=ut(Ba,Sr,ur,ea,Mt),ar=(0,le.Z)(function(an){if(Va(an),He){var Lt=Mn(an),de=Lt.map(function(jt){return wt(jt,Sr,ur).map(function(at){return at.option})}),$e=ea?Lt:Lt[0],st=ea?de:de[0];He($e,st)}}),Ta=(0,le.Z)(function(an){if((!ea||Xn)&&fr(""),!ea)ar(an);else{var Lt=lt(an),de=Le(ia),$e=Le(La),st=de.includes(Lt),jt=$t.some(function(mn){return lt(mn)===Lt}),at=ia,tn=$t;if(jt&&!st)tn=$t.filter(function(mn){return lt(mn)!==Lt});else{var Jt=st?de.filter(function(mn){return mn!==Lt}):[].concat((0,b.Z)(de),[Lt]),Ut=Nr(),Xt;if(st){var ra=(0,Ve.S)(Jt,{checked:!1,halfCheckedKeys:$e},Ut);Xt=ra.checkedKeys}else{var Ha=(0,Ve.S)(Jt,!0,Ut);Xt=Ha.checkedKeys}var Za=pt(Xt,Nr,va);at=pr(Za)}ar([].concat((0,b.Z)(tn),(0,b.Z)(at)))}}),da=function(Lt,de){if(de.type==="clear"){ar([]);return}var $e=de.values[0],st=$e.valueCells;Ta(st)},Qa=Cn!==void 0?Cn:Qt,vr=Jn||tt,Tr=Zn||sa,er=function(Lt){za==null||za(Lt),la==null||la(Lt)},cr=he.useMemo(function(){return{options:Sr,fieldNames:ur,values:ia,halfValues:La,changeOnSelect:Ke,onSelect:Ta,checkable:un,searchOptions:mt,dropdownPrefixCls:qn,loadData:Je,expandTrigger:Pa,expandIcon:$a,loadingIcon:sr,dropdownMenuColumnStyle:Nn}},[Sr,ur,ia,La,Ke,Ta,un,mt,qn,Je,Pa,$a,sr,Nn]),Cr=!(qa?mt:Sr).length,Tn=qa&&nr.matchInputWidth||Cr?{}:{minWidth:"auto"};return he.createElement(x.Provider,{value:cr},he.createElement(Te.Ac,(0,Ye.Z)({},Yt,{ref:ft,id:xn,prefixCls:Rt,autoClearSearchValue:Xn,dropdownMatchSelectWidth:Wt,dropdownStyle:Tn,displayValues:Ea,onDisplayValuesChange:da,mode:ea?"multiple":void 0,searchValue:qa,onSearch:fa,showSearch:ka,OptionList:et,emptyOptions:Cr,open:Qa,dropdownClassName:vr,placement:Tr,onDropdownVisibleChange:er,getRawInputElement:function(){return Tt}})))});Ot.SHOW_PARENT=Ue,Ot.SHOW_CHILD=Me;var Un=Ot,bn=Un,kn=oe(2738),qt=oe(62892),ma=oe(53487),zn=oe(19080),ba=oe(36355),ln=oe(93891),cn=oe(1684),pn=oe(19716),Oa=oe(32441),pa=oe(14154),wa=oe(58582),_t=oe(84443),St=oe(66339),fn=oe(33234),Fn=oe(98447),ya=oe(17313),na=oe(74207),Ka=oe(83116);const aa=xe=>{const{prefixCls:ft,componentCls:Bt,antCls:Vt}=xe,Rt=`${Bt}-menu-item`,yt=` &${Rt}-expand ${Rt}-expand-icon, ${Rt}-loading-icon - `;return[{[Ft]:{width:xe.controlWidth}},{[`${Ft}-dropdown`]:[(0,Fn.C2)(`${ft}-checkbox`,xe),{[`&${Vt}-select-dropdown`]:{padding:0}},{[Ft]:{"&-checkbox":{top:0,marginInlineEnd:xe.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Ft}-menu-empty`]:{[`${Ft}-menu`]:{width:"100%",height:"auto",[Rt]:{color:xe.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:xe.controlItemWidth,height:xe.dropdownHeight,margin:0,padding:xe.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${xe.lineWidth}px ${xe.lineType} ${xe.colorSplit}`},"&-item":Object.assign(Object.assign({},Ea.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:xe.optionPadding,lineHeight:xe.lineHeight,cursor:"pointer",transition:`all ${xe.motionDurationMid}`,borderRadius:xe.borderRadiusSM,"&:hover":{background:xe.controlItemBgHover},"&-disabled":{color:xe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[yt]:{color:xe.colorTextDisabled}},[`&-active:not(${Rt}-disabled)`]:{"&, &:hover":{fontWeight:xe.optionSelectedFontWeight,backgroundColor:xe.optionSelectedBg}},"&-content":{flex:"auto"},[yt]:{marginInlineStart:xe.paddingXXS,color:xe.colorTextDescription,fontSize:xe.fontSizeIcon},"&-keyword":{color:xe.colorHighlight}})}}}]},{[`${Ft}-dropdown-rtl`]:{direction:"rtl"}},(0,na.c)(xe)]};var Wn=(0,Ka.Z)("Cascader",xe=>[aa(xe)],xe=>{const ft=Math.round((xe.controlHeight-xe.fontSize*xe.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:xe.controlItemBgActive,optionSelectedFontWeight:xe.fontWeightStrong,optionPadding:`${ft}px ${xe.paddingSM}px`,menuPadding:xe.paddingXXS}}),Ya=function(xe,ft){var Ft={};for(var Vt in xe)Object.prototype.hasOwnProperty.call(xe,Vt)&&ft.indexOf(Vt)<0&&(Ft[Vt]=xe[Vt]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Vt=Object.getOwnPropertySymbols(xe);RtKe===0?[je]:[].concat((0,b.Z)(hn),[ft,je]),[]),Rt=[];let yt=0;return Vt.forEach((hn,je)=>{const Ke=yt+hn.length;let He=xe.slice(yt,Ke);yt=Ke,je%2===1&&(He=he.createElement("span",{className:`${Ft}-menu-item-keyword`,key:`separator-${je}`},He)),Rt.push(He)}),Rt}const At=(xe,ft,Ft,Vt)=>{const Rt=[],yt=xe.toLowerCase();return ft.forEach((hn,je)=>{je!==0&&Rt.push(" / ");let Ke=hn[Vt.label];const He=typeof Ke;(He==="string"||He==="number")&&(Ke=Ar(String(Ke),yt,Ft)),Rt.push(Ke)}),Rt},Ln=he.forwardRef((xe,ft)=>{const{prefixCls:Ft,size:Vt,disabled:Rt,className:yt,rootClassName:hn,multiple:je,bordered:Ke=!0,transitionName:He,choiceTransitionName:Mt="",popupClassName:un,dropdownClassName:sn,expandIcon:Xn,placement:Qn,showSearch:gn,allowClear:Yn=!0,notFoundContent:ha,direction:zt,getPopupContainer:_n,status:Je,showArrow:Qt,builtinPlacements:bn,style:tt}=xe,Jn=Ya(xe,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),In=(0,kn.Z)(Jn,["suffixIcon"]),{getPopupContainer:sa,getPrefixCls:Zn,renderEmpty:za,direction:la,popupOverflow:_a,cascader:$a}=he.useContext(ba.E_),sr=zt||la,Tt=sr==="rtl",{status:Da,hasFeedback:Wt,isFormItemInput:xa,feedbackIcon:fa}=he.useContext(Oa.aM),Yt=(0,zn.F)(Da,Je),Cn=ha||(za==null?void 0:za("Cascader"))||he.createElement(ln.Z,{componentName:"Cascader"}),ea=Zn(),Pn=Zn("select",Ft),Ra=Zn("cascader",Ft),[pa,Va]=(0,va.Z)(Pn),[ur]=Wn(Ra),{compactSize:Sr,compactItemClassnames:Nr}=(0,fn.ri)(Pn,zt),pr=Fe()(un||sn,`${Ra}-dropdown`,{[`${Ra}-dropdown-rtl`]:sr==="rtl"},hn,Va),Yr=he.useMemo(()=>{if(!gn)return gn;let $t={render:At};return typeof gn=="object"&&($t=Object.assign(Object.assign({},$t),gn)),$t},[gn]),Xa=(0,pn.Z)($t=>{var Fa;return(Fa=Vt!=null?Vt:Sr)!==null&&Fa!==void 0?Fa:$t}),qa=he.useContext(cn.Z),fr=Rt!=null?Rt:qa;let ga=Xn;Xn||(ga=Tt?he.createElement(Be.Z,null):he.createElement(Ce.Z,null));const or=he.createElement("span",{className:`${Pn}-menu-item-loading-icon`},he.createElement(Ie.Z,{spin:!0})),dr=he.useMemo(()=>je?he.createElement("span",{className:`${Ra}-checkbox-inner`}):!1,[je]),ka=(0,_t.Z)(xe.suffixIcon,Qt),{suffixIcon:nr,removeIcon:mt,clearIcon:it}=(0,St.Z)(Object.assign(Object.assign({},xe),{hasFeedback:Wt,feedbackIcon:fa,showSuffixIcon:ka,multiple:je,prefixCls:Pn,componentName:"Cascader"})),Nt=he.useMemo(()=>Qn!==void 0?Qn:Tt?"bottomRight":"bottomLeft",[Qn,Tt]),dn=(0,wa.Z)(bn,_a),ia=Yn===!0?{clearIcon:it}:Yn,La=he.createElement(Bn,Object.assign({prefixCls:Pn,className:Fe()(!Ft&&Ra,{[`${Pn}-lg`]:Xa==="large",[`${Pn}-sm`]:Xa==="small",[`${Pn}-rtl`]:Tt,[`${Pn}-borderless`]:!Ke,[`${Pn}-in-form-item`]:xa},(0,zn.Z)(Pn,Yt,Wt),Nr,$a==null?void 0:$a.className,yt,hn,Va),disabled:fr,style:Object.assign(Object.assign({},$a==null?void 0:$a.style),tt)},In,{builtinPlacements:dn,direction:sr,placement:Nt,notFoundContent:Cn,allowClear:ia,showSearch:Yr,expandIcon:ga,suffixIcon:nr,removeIcon:mt,loadingIcon:or,checkable:dr,dropdownClassName:pr,dropdownPrefixCls:Ft||Ra,choiceTransitionName:(0,qt.m)(ea,"",Mt),transitionName:(0,qt.m)(ea,"slide-up",He),getPopupContainer:_n||sa,ref:ft}));return ur(pa(La))}),Mn=(0,ca.Z)(Ln);Ln.SHOW_PARENT=Ja,Ln.SHOW_CHILD=Ma,Ln._InternalPanelDoNotUseOrYouWillBeFired=Mn;var xn=Ln},36381:function(_e,Ct,oe){"use strict";oe.d(Ct,{default:function(){return on}});var b=oe(38819),he=oe(92310),Be=oe.n(he),Ie=oe(54476),Ce=oe(94480),Ge=oe(42978),Fe=oe(76190),Ye=oe(18929),ke=oe(48736),De=oe(59301),Te=oe(75931),We=oe(11592),Ve=oe(20068),le=oe(77900),E=oe(10228),a=De.forwardRef(function(ct,et){var An=ct.prefixCls,ot=ct.forceRender,Bt=ct.className,Ht=ct.style,ht=ct.children,On=ct.isActive,Ot=ct.role,Un=De.useState(On||ot),Bn=(0,Ge.Z)(Un,2),kn=Bn[0],qt=Bn[1];return De.useEffect(function(){(ot||On)&&qt(!0)},[ot,On]),kn?De.createElement("div",{ref:et,className:Be()("".concat(An,"-content"),(0,Ve.Z)((0,Ve.Z)({},"".concat(An,"-content-active"),On),"".concat(An,"-content-inactive"),!On),Bt),style:Ht,role:Ot},De.createElement("div",{className:"".concat(An,"-content-box")},ht)):null});a.displayName="PanelContent";var x=a,y=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],z=De.forwardRef(function(ct,et){var An=ct.showArrow,ot=An===void 0?!0:An,Bt=ct.headerClass,Ht=ct.isActive,ht=ct.onItemClick,On=ct.forceRender,Ot=ct.className,Un=ct.prefixCls,Bn=ct.collapsible,kn=ct.accordion,qt=ct.panelKey,ca=ct.extra,zn=ct.header,ba=ct.expandIcon,ln=ct.openMotion,cn=ct.destroyInactivePanel,pn=ct.children,Oa=(0,Te.Z)(ct,y),va=Bn==="disabled",wa=Bn==="header",_t=Bn==="icon",St=ca!=null&&typeof ca!="boolean",fn=function(){ht==null||ht(qt)},Fn=function(Ya){(Ya.key==="Enter"||Ya.keyCode===E.Z.ENTER||Ya.which===E.Z.ENTER)&&fn()},Ea=typeof ba=="function"?ba(ct):De.createElement("i",{className:"arrow"});Ea&&(Ea=De.createElement("div",{className:"".concat(Un,"-expand-icon"),onClick:["header","icon"].includes(Bn)?fn:void 0},Ea));var na=Be()((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)({},"".concat(Un,"-item"),!0),"".concat(Un,"-item-active"),Ht),"".concat(Un,"-item-disabled"),va),Ot),Ka=Be()(Bt,(0,Ve.Z)((0,Ve.Z)((0,Ve.Z)({},"".concat(Un,"-header"),!0),"".concat(Un,"-header-collapsible-only"),wa),"".concat(Un,"-icon-collapsible-only"),_t)),aa={className:Ka,"aria-expanded":Ht,"aria-disabled":va,onKeyDown:Fn};return!wa&&!_t&&(aa.onClick=fn,aa.role=kn?"tab":"button",aa.tabIndex=va?-1:0),De.createElement("div",(0,Ie.Z)({},Oa,{ref:et,className:na}),De.createElement("div",aa,ot&&Ea,De.createElement("span",{className:"".concat(Un,"-header-text"),onClick:Bn==="header"?fn:void 0},zn),St&&De.createElement("div",{className:"".concat(Un,"-extra")},ca)),De.createElement(le.default,(0,Ie.Z)({visible:Ht,leavedClassName:"".concat(Un,"-content-hidden")},ln,{forceRender:On,removeOnLeave:cn}),function(Wn,Ya){var Ma=Wn.className,Ja=Wn.style;return De.createElement(x,{ref:Ya,prefixCls:Un,className:Ma,style:Ja,isActive:Ht,forceRender:On,role:kn?"tabpanel":void 0},pn)}))}),ne=z,re=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],ie=function(et,An){var ot=An.prefixCls,Bt=An.accordion,Ht=An.collapsible,ht=An.destroyInactivePanel,On=An.onItemClick,Ot=An.activeKey,Un=An.openMotion,Bn=An.expandIcon;return et.map(function(kn,qt){var ca=kn.children,zn=kn.label,ba=kn.key,ln=kn.collapsible,cn=kn.onItemClick,pn=kn.destroyInactivePanel,Oa=(0,Te.Z)(kn,re),va=String(ba!=null?ba:qt),wa=ln!=null?ln:Ht,_t=pn!=null?pn:ht,St=function(Ea){wa!=="disabled"&&(On(Ea),cn==null||cn(Ea))},fn=!1;return Bt?fn=Ot[0]===va:fn=Ot.indexOf(va)>-1,De.createElement(ne,(0,Ie.Z)({},Oa,{prefixCls:ot,key:va,panelKey:va,isActive:fn,accordion:Bt,openMotion:Un,expandIcon:Bn,header:zn,collapsible:wa,onItemClick:St,destroyInactivePanel:_t}),ca)})},ge=function(et,An,ot){if(!et)return null;var Bt=ot.prefixCls,Ht=ot.accordion,ht=ot.collapsible,On=ot.destroyInactivePanel,Ot=ot.onItemClick,Un=ot.activeKey,Bn=ot.openMotion,kn=ot.expandIcon,qt=et.key||String(An),ca=et.props,zn=ca.header,ba=ca.headerClass,ln=ca.destroyInactivePanel,cn=ca.collapsible,pn=ca.onItemClick,Oa=!1;Ht?Oa=Un[0]===qt:Oa=Un.indexOf(qt)>-1;var va=cn!=null?cn:ht,wa=function(fn){va!=="disabled"&&(Ot(fn),pn==null||pn(fn))},_t={key:qt,panelKey:qt,header:zn,headerClass:ba,isActive:Oa,prefixCls:Bt,destroyInactivePanel:ln!=null?ln:On,openMotion:Bn,accordion:Ht,children:et.props.children,onItemClick:wa,expandIcon:kn,collapsible:va};return typeof et.type=="string"?et:(Object.keys(_t).forEach(function(St){typeof _t[St]=="undefined"&&delete _t[St]}),De.cloneElement(et,_t))};function fe(ct,et,An){return Array.isArray(ct)?ie(ct,An):(0,We.Z)(et).map(function(ot,Bt){return ge(ot,Bt,An)})}var Pe=fe,Ue=oe(26112);function Me(ct){var et=ct;if(!Array.isArray(et)){var An=(0,Fe.Z)(et);et=An==="number"||An==="string"?[et]:[]}return et.map(function(ot){return String(ot)})}var lt=De.forwardRef(function(ct,et){var An=ct.prefixCls,ot=An===void 0?"rc-collapse":An,Bt=ct.destroyInactivePanel,Ht=Bt===void 0?!1:Bt,ht=ct.style,On=ct.accordion,Ot=ct.className,Un=ct.children,Bn=ct.collapsible,kn=ct.openMotion,qt=ct.expandIcon,ca=ct.activeKey,zn=ct.defaultActiveKey,ba=ct.onChange,ln=ct.items,cn=Be()(ot,Ot),pn=(0,Ye.Z)([],{value:ca,onChange:function(Fn){return ba==null?void 0:ba(Fn)},defaultValue:zn,postState:Me}),Oa=(0,Ge.Z)(pn,2),va=Oa[0],wa=Oa[1],_t=function(Fn){return wa(function(){if(On)return va[0]===Fn?[]:[Fn];var Ea=va.indexOf(Fn),na=Ea>-1;return na?va.filter(function(Ka){return Ka!==Fn}):[].concat((0,Ce.Z)(va),[Fn])})};(0,ke.ZP)(!Un,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var St=Pe(ln,Un,{prefixCls:ot,accordion:On,openMotion:kn,expandIcon:qt,collapsible:Bn,destroyInactivePanel:Ht,onItemClick:_t,activeKey:va});return De.createElement("div",(0,Ie.Z)({ref:et,className:cn,style:ht,role:On?"tablist":void 0},(0,Ue.Z)(ct,{aria:!0,data:!0})),St)}),Le=Object.assign(lt,{Panel:ne}),be=Le,Xe=Le.Panel,nt=oe(2738),ye=oe(62892),gt=oe(92343),pt=oe(36355),xt=oe(19716),Kt=De.forwardRef((ct,et)=>{const{getPrefixCls:An}=De.useContext(pt.E_),{prefixCls:ot,className:Bt,showArrow:Ht=!0}=ct,ht=An("collapse",ot),On=Be()({[`${ht}-no-arrow`]:!Ht},Bt);return De.createElement(be.Panel,Object.assign({ref:et},ct,{prefixCls:ht,className:On}))}),rn=oe(17313),It=oe(8378),Zt=oe(83116),Qe=oe(37613);const Oe=ct=>{const{componentCls:et,contentBg:An,padding:ot,headerBg:Bt,headerPadding:Ht,collapseHeaderPaddingSM:ht,collapseHeaderPaddingLG:On,collapsePanelBorderRadius:Ot,lineWidth:Un,lineType:Bn,colorBorder:kn,colorText:qt,colorTextHeading:ca,colorTextDisabled:zn,fontSize:ba,fontSizeLG:ln,lineHeight:cn,marginSM:pn,paddingSM:Oa,paddingLG:va,paddingXS:wa,motionDurationSlow:_t,fontSizeIcon:St,contentPadding:fn}=ct,Fn=`${Un}px ${Bn} ${kn}`;return{[et]:Object.assign(Object.assign({},(0,rn.Wf)(ct)),{backgroundColor:Bt,border:Fn,borderBottom:0,borderRadius:`${Ot}px`,"&-rtl":{direction:"rtl"},[`& > ${et}-item`]:{borderBottom:Fn,"&:last-child":{[` + `;return[{[Bt]:{width:xe.controlWidth}},{[`${Bt}-dropdown`]:[(0,Fn.C2)(`${ft}-checkbox`,xe),{[`&${Vt}-select-dropdown`]:{padding:0}},{[Bt]:{"&-checkbox":{top:0,marginInlineEnd:xe.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Bt}-menu-empty`]:{[`${Bt}-menu`]:{width:"100%",height:"auto",[Rt]:{color:xe.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:xe.controlItemWidth,height:xe.dropdownHeight,margin:0,padding:xe.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${xe.lineWidth}px ${xe.lineType} ${xe.colorSplit}`},"&-item":Object.assign(Object.assign({},ya.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:xe.optionPadding,lineHeight:xe.lineHeight,cursor:"pointer",transition:`all ${xe.motionDurationMid}`,borderRadius:xe.borderRadiusSM,"&:hover":{background:xe.controlItemBgHover},"&-disabled":{color:xe.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[yt]:{color:xe.colorTextDisabled}},[`&-active:not(${Rt}-disabled)`]:{"&, &:hover":{fontWeight:xe.optionSelectedFontWeight,backgroundColor:xe.optionSelectedBg}},"&-content":{flex:"auto"},[yt]:{marginInlineStart:xe.paddingXXS,color:xe.colorTextDescription,fontSize:xe.fontSizeIcon},"&-keyword":{color:xe.colorHighlight}})}}}]},{[`${Bt}-dropdown-rtl`]:{direction:"rtl"}},(0,na.c)(xe)]};var Wn=(0,Ka.Z)("Cascader",xe=>[aa(xe)],xe=>{const ft=Math.round((xe.controlHeight-xe.fontSize*xe.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:xe.controlItemBgActive,optionSelectedFontWeight:xe.fontWeightStrong,optionPadding:`${ft}px ${xe.paddingSM}px`,menuPadding:xe.paddingXXS}}),Ya=function(xe,ft){var Bt={};for(var Vt in xe)Object.prototype.hasOwnProperty.call(xe,Vt)&&ft.indexOf(Vt)<0&&(Bt[Vt]=xe[Vt]);if(xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,Vt=Object.getOwnPropertySymbols(xe);RtKe===0?[je]:[].concat((0,b.Z)(hn),[ft,je]),[]),Rt=[];let yt=0;return Vt.forEach((hn,je)=>{const Ke=yt+hn.length;let He=xe.slice(yt,Ke);yt=Ke,je%2===1&&(He=he.createElement("span",{className:`${Bt}-menu-item-keyword`,key:`separator-${je}`},He)),Rt.push(He)}),Rt}const At=(xe,ft,Bt,Vt)=>{const Rt=[],yt=xe.toLowerCase();return ft.forEach((hn,je)=>{je!==0&&Rt.push(" / ");let Ke=hn[Vt.label];const He=typeof Ke;(He==="string"||He==="number")&&(Ke=Ar(String(Ke),yt,Bt)),Rt.push(Ke)}),Rt},In=he.forwardRef((xe,ft)=>{const{prefixCls:Bt,size:Vt,disabled:Rt,className:yt,rootClassName:hn,multiple:je,bordered:Ke=!0,transitionName:He,choiceTransitionName:Mt="",popupClassName:un,dropdownClassName:sn,expandIcon:Xn,placement:Qn,showSearch:gn,allowClear:Yn=!0,notFoundContent:Pa,direction:zt,getPopupContainer:qn,status:Je,showArrow:Qt,builtinPlacements:Cn,style:tt}=xe,Jn=Ya(xe,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style"]),Nn=(0,kn.Z)(Jn,["suffixIcon"]),{getPopupContainer:sa,getPrefixCls:Zn,renderEmpty:za,direction:la,popupOverflow:_a,cascader:$a}=he.useContext(ba.E_),sr=zt||la,Tt=sr==="rtl",{status:Da,hasFeedback:Wt,isFormItemInput:xa,feedbackIcon:va}=he.useContext(Oa.aM),Yt=(0,zn.F)(Da,Je),xn=Pa||(za==null?void 0:za("Cascader"))||he.createElement(ln.Z,{componentName:"Cascader"}),ea=Zn(),Pn=Zn("select",Bt),Ra=Zn("cascader",Bt),[ha,Va]=(0,pa.Z)(Pn),[ur]=Wn(Ra),{compactSize:Sr,compactItemClassnames:Nr}=(0,fn.ri)(Pn,zt),pr=Fe()(un||sn,`${Ra}-dropdown`,{[`${Ra}-dropdown-rtl`]:sr==="rtl"},hn,Va),Yr=he.useMemo(()=>{if(!gn)return gn;let $t={render:At};return typeof gn=="object"&&($t=Object.assign(Object.assign({},$t),gn)),$t},[gn]),Xa=(0,pn.Z)($t=>{var Ba;return(Ba=Vt!=null?Vt:Sr)!==null&&Ba!==void 0?Ba:$t}),qa=he.useContext(cn.Z),fr=Rt!=null?Rt:qa;let fa=Xn;Xn||(fa=Tt?he.createElement(Be.Z,null):he.createElement(be.Z,null));const or=he.createElement("span",{className:`${Pn}-menu-item-loading-icon`},he.createElement(Ie.Z,{spin:!0})),dr=he.useMemo(()=>je?he.createElement("span",{className:`${Ra}-checkbox-inner`}):!1,[je]),ka=(0,_t.Z)(xe.suffixIcon,Qt),{suffixIcon:nr,removeIcon:mt,clearIcon:it}=(0,St.Z)(Object.assign(Object.assign({},xe),{hasFeedback:Wt,feedbackIcon:va,showSuffixIcon:ka,multiple:je,prefixCls:Pn,componentName:"Cascader"})),Nt=he.useMemo(()=>Qn!==void 0?Qn:Tt?"bottomRight":"bottomLeft",[Qn,Tt]),dn=(0,wa.Z)(Cn,_a),ia=Yn===!0?{clearIcon:it}:Yn,La=he.createElement(bn,Object.assign({prefixCls:Pn,className:Fe()(!Bt&&Ra,{[`${Pn}-lg`]:Xa==="large",[`${Pn}-sm`]:Xa==="small",[`${Pn}-rtl`]:Tt,[`${Pn}-borderless`]:!Ke,[`${Pn}-in-form-item`]:xa},(0,zn.Z)(Pn,Yt,Wt),Nr,$a==null?void 0:$a.className,yt,hn,Va),disabled:fr,style:Object.assign(Object.assign({},$a==null?void 0:$a.style),tt)},Nn,{builtinPlacements:dn,direction:sr,placement:Nt,notFoundContent:xn,allowClear:ia,showSearch:Yr,expandIcon:fa,suffixIcon:nr,removeIcon:mt,loadingIcon:or,checkable:dr,dropdownClassName:pr,dropdownPrefixCls:Bt||Ra,choiceTransitionName:(0,qt.m)(ea,"",Mt),transitionName:(0,qt.m)(ea,"slide-up",He),getPopupContainer:qn||sa,ref:ft}));return ur(ha(La))}),Rn=(0,ma.Z)(In);In.SHOW_PARENT=Ja,In.SHOW_CHILD=Ma,In._InternalPanelDoNotUseOrYouWillBeFired=Rn;var wn=In},36381:function(_e,xt,oe){"use strict";oe.d(xt,{default:function(){return on}});var b=oe(38819),he=oe(92310),Be=oe.n(he),Ie=oe(54476),be=oe(94480),Ge=oe(42978),Fe=oe(76190),Ye=oe(18929),ke=oe(48736),De=oe(59301),Te=oe(75931),We=oe(11592),Ve=oe(20068),le=oe(77900),E=oe(10228),a=De.forwardRef(function(ct,et){var An=ct.prefixCls,ot=ct.forceRender,bt=ct.className,Ht=ct.style,ht=ct.children,Mn=ct.isActive,Ot=ct.role,Un=De.useState(Mn||ot),bn=(0,Ge.Z)(Un,2),kn=bn[0],qt=bn[1];return De.useEffect(function(){(ot||Mn)&&qt(!0)},[ot,Mn]),kn?De.createElement("div",{ref:et,className:Be()("".concat(An,"-content"),(0,Ve.Z)((0,Ve.Z)({},"".concat(An,"-content-active"),Mn),"".concat(An,"-content-inactive"),!Mn),bt),style:Ht,role:Ot},De.createElement("div",{className:"".concat(An,"-content-box")},ht)):null});a.displayName="PanelContent";var x=a,y=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],z=De.forwardRef(function(ct,et){var An=ct.showArrow,ot=An===void 0?!0:An,bt=ct.headerClass,Ht=ct.isActive,ht=ct.onItemClick,Mn=ct.forceRender,Ot=ct.className,Un=ct.prefixCls,bn=ct.collapsible,kn=ct.accordion,qt=ct.panelKey,ma=ct.extra,zn=ct.header,ba=ct.expandIcon,ln=ct.openMotion,cn=ct.destroyInactivePanel,pn=ct.children,Oa=(0,Te.Z)(ct,y),pa=bn==="disabled",wa=bn==="header",_t=bn==="icon",St=ma!=null&&typeof ma!="boolean",fn=function(){ht==null||ht(qt)},Fn=function(Ya){(Ya.key==="Enter"||Ya.keyCode===E.Z.ENTER||Ya.which===E.Z.ENTER)&&fn()},ya=typeof ba=="function"?ba(ct):De.createElement("i",{className:"arrow"});ya&&(ya=De.createElement("div",{className:"".concat(Un,"-expand-icon"),onClick:["header","icon"].includes(bn)?fn:void 0},ya));var na=Be()((0,Ve.Z)((0,Ve.Z)((0,Ve.Z)({},"".concat(Un,"-item"),!0),"".concat(Un,"-item-active"),Ht),"".concat(Un,"-item-disabled"),pa),Ot),Ka=Be()(bt,(0,Ve.Z)((0,Ve.Z)((0,Ve.Z)({},"".concat(Un,"-header"),!0),"".concat(Un,"-header-collapsible-only"),wa),"".concat(Un,"-icon-collapsible-only"),_t)),aa={className:Ka,"aria-expanded":Ht,"aria-disabled":pa,onKeyDown:Fn};return!wa&&!_t&&(aa.onClick=fn,aa.role=kn?"tab":"button",aa.tabIndex=pa?-1:0),De.createElement("div",(0,Ie.Z)({},Oa,{ref:et,className:na}),De.createElement("div",aa,ot&&ya,De.createElement("span",{className:"".concat(Un,"-header-text"),onClick:bn==="header"?fn:void 0},zn),St&&De.createElement("div",{className:"".concat(Un,"-extra")},ma)),De.createElement(le.default,(0,Ie.Z)({visible:Ht,leavedClassName:"".concat(Un,"-content-hidden")},ln,{forceRender:Mn,removeOnLeave:cn}),function(Wn,Ya){var Ma=Wn.className,Ja=Wn.style;return De.createElement(x,{ref:Ya,prefixCls:Un,className:Ma,style:Ja,isActive:Ht,forceRender:Mn,role:kn?"tabpanel":void 0},pn)}))}),ne=z,re=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],ie=function(et,An){var ot=An.prefixCls,bt=An.accordion,Ht=An.collapsible,ht=An.destroyInactivePanel,Mn=An.onItemClick,Ot=An.activeKey,Un=An.openMotion,bn=An.expandIcon;return et.map(function(kn,qt){var ma=kn.children,zn=kn.label,ba=kn.key,ln=kn.collapsible,cn=kn.onItemClick,pn=kn.destroyInactivePanel,Oa=(0,Te.Z)(kn,re),pa=String(ba!=null?ba:qt),wa=ln!=null?ln:Ht,_t=pn!=null?pn:ht,St=function(ya){wa!=="disabled"&&(Mn(ya),cn==null||cn(ya))},fn=!1;return bt?fn=Ot[0]===pa:fn=Ot.indexOf(pa)>-1,De.createElement(ne,(0,Ie.Z)({},Oa,{prefixCls:ot,key:pa,panelKey:pa,isActive:fn,accordion:bt,openMotion:Un,expandIcon:bn,header:zn,collapsible:wa,onItemClick:St,destroyInactivePanel:_t}),ma)})},ge=function(et,An,ot){if(!et)return null;var bt=ot.prefixCls,Ht=ot.accordion,ht=ot.collapsible,Mn=ot.destroyInactivePanel,Ot=ot.onItemClick,Un=ot.activeKey,bn=ot.openMotion,kn=ot.expandIcon,qt=et.key||String(An),ma=et.props,zn=ma.header,ba=ma.headerClass,ln=ma.destroyInactivePanel,cn=ma.collapsible,pn=ma.onItemClick,Oa=!1;Ht?Oa=Un[0]===qt:Oa=Un.indexOf(qt)>-1;var pa=cn!=null?cn:ht,wa=function(fn){pa!=="disabled"&&(Ot(fn),pn==null||pn(fn))},_t={key:qt,panelKey:qt,header:zn,headerClass:ba,isActive:Oa,prefixCls:bt,destroyInactivePanel:ln!=null?ln:Mn,openMotion:bn,accordion:Ht,children:et.props.children,onItemClick:wa,expandIcon:kn,collapsible:pa};return typeof et.type=="string"?et:(Object.keys(_t).forEach(function(St){typeof _t[St]=="undefined"&&delete _t[St]}),De.cloneElement(et,_t))};function fe(ct,et,An){return Array.isArray(ct)?ie(ct,An):(0,We.Z)(et).map(function(ot,bt){return ge(ot,bt,An)})}var Pe=fe,Ue=oe(26112);function Me(ct){var et=ct;if(!Array.isArray(et)){var An=(0,Fe.Z)(et);et=An==="number"||An==="string"?[et]:[]}return et.map(function(ot){return String(ot)})}var lt=De.forwardRef(function(ct,et){var An=ct.prefixCls,ot=An===void 0?"rc-collapse":An,bt=ct.destroyInactivePanel,Ht=bt===void 0?!1:bt,ht=ct.style,Mn=ct.accordion,Ot=ct.className,Un=ct.children,bn=ct.collapsible,kn=ct.openMotion,qt=ct.expandIcon,ma=ct.activeKey,zn=ct.defaultActiveKey,ba=ct.onChange,ln=ct.items,cn=Be()(ot,Ot),pn=(0,Ye.Z)([],{value:ma,onChange:function(Fn){return ba==null?void 0:ba(Fn)},defaultValue:zn,postState:Me}),Oa=(0,Ge.Z)(pn,2),pa=Oa[0],wa=Oa[1],_t=function(Fn){return wa(function(){if(Mn)return pa[0]===Fn?[]:[Fn];var ya=pa.indexOf(Fn),na=ya>-1;return na?pa.filter(function(Ka){return Ka!==Fn}):[].concat((0,be.Z)(pa),[Fn])})};(0,ke.ZP)(!Un,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var St=Pe(ln,Un,{prefixCls:ot,accordion:Mn,openMotion:kn,expandIcon:qt,collapsible:bn,destroyInactivePanel:Ht,onItemClick:_t,activeKey:pa});return De.createElement("div",(0,Ie.Z)({ref:et,className:cn,style:ht,role:Mn?"tablist":void 0},(0,Ue.Z)(ct,{aria:!0,data:!0})),St)}),Le=Object.assign(lt,{Panel:ne}),Ce=Le,Xe=Le.Panel,nt=oe(2738),ye=oe(62892),gt=oe(92343),pt=oe(36355),wt=oe(19716),Kt=De.forwardRef((ct,et)=>{const{getPrefixCls:An}=De.useContext(pt.E_),{prefixCls:ot,className:bt,showArrow:Ht=!0}=ct,ht=An("collapse",ot),Mn=Be()({[`${ht}-no-arrow`]:!Ht},bt);return De.createElement(Ce.Panel,Object.assign({ref:et},ct,{prefixCls:ht,className:Mn}))}),rn=oe(17313),It=oe(8378),Zt=oe(83116),Qe=oe(37613);const Oe=ct=>{const{componentCls:et,contentBg:An,padding:ot,headerBg:bt,headerPadding:Ht,collapseHeaderPaddingSM:ht,collapseHeaderPaddingLG:Mn,collapsePanelBorderRadius:Ot,lineWidth:Un,lineType:bn,colorBorder:kn,colorText:qt,colorTextHeading:ma,colorTextDisabled:zn,fontSize:ba,fontSizeLG:ln,lineHeight:cn,marginSM:pn,paddingSM:Oa,paddingLG:pa,paddingXS:wa,motionDurationSlow:_t,fontSizeIcon:St,contentPadding:fn}=ct,Fn=`${Un}px ${bn} ${kn}`;return{[et]:Object.assign(Object.assign({},(0,rn.Wf)(ct)),{backgroundColor:bt,border:Fn,borderBottom:0,borderRadius:`${Ot}px`,"&-rtl":{direction:"rtl"},[`& > ${et}-item`]:{borderBottom:Fn,"&:last-child":{[` &, - & > ${et}-header`]:{borderRadius:`0 0 ${Ot}px ${Ot}px`}},[`> ${et}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:Ht,color:ca,lineHeight:cn,cursor:"pointer",transition:`all ${_t}, visibility 0s`,[`> ${et}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${et}-expand-icon`]:{height:ba*cn,display:"flex",alignItems:"center",paddingInlineEnd:pn},[`${et}-arrow`]:Object.assign(Object.assign({},(0,rn.Ro)()),{fontSize:St,svg:{transition:`transform ${_t}`}}),[`${et}-header-text`]:{marginInlineEnd:"auto"}},[`${et}-header-collapsible-only`]:{cursor:"default",[`${et}-header-text`]:{flex:"none",cursor:"pointer"}},[`${et}-icon-collapsible-only`]:{cursor:"default",[`${et}-expand-icon`]:{cursor:"pointer"}}},[`${et}-content`]:{color:qt,backgroundColor:An,borderTop:Fn,[`& > ${et}-content-box`]:{padding:fn},"&-hidden":{display:"none"}},"&-small":{[`> ${et}-item`]:{[`> ${et}-header`]:{padding:ht,paddingInlineStart:wa,[`> ${et}-expand-icon`]:{marginInlineStart:Oa-wa}},[`> ${et}-content > ${et}-content-box`]:{padding:Oa}}},"&-large":{[`> ${et}-item`]:{fontSize:ln,[`> ${et}-header`]:{padding:On,paddingInlineStart:ot,[`> ${et}-expand-icon`]:{height:ln*cn,marginInlineStart:va-ot}},[`> ${et}-content > ${et}-content-box`]:{padding:va}}},[`${et}-item:last-child`]:{[`> ${et}-content`]:{borderRadius:`0 0 ${Ot}px ${Ot}px`}},[`& ${et}-item-disabled > ${et}-header`]:{"\n &,\n & > .arrow\n ":{color:zn,cursor:"not-allowed"}},[`&${et}-icon-position-end`]:{[`& > ${et}-item`]:{[`> ${et}-header`]:{[`${et}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:pn}}}}})}},Et=ct=>{const{componentCls:et}=ct,An=`> ${et}-item > ${et}-header ${et}-arrow svg`;return{[`${et}-rtl`]:{[An]:{transform:"rotate(180deg)"}}}},Gt=ct=>{const{componentCls:et,headerBg:An,paddingXXS:ot,colorBorder:Bt}=ct;return{[`${et}-borderless`]:{backgroundColor:An,border:0,[`> ${et}-item`]:{borderBottom:`1px solid ${Bt}`},[` + & > ${et}-header`]:{borderRadius:`0 0 ${Ot}px ${Ot}px`}},[`> ${et}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:Ht,color:ma,lineHeight:cn,cursor:"pointer",transition:`all ${_t}, visibility 0s`,[`> ${et}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${et}-expand-icon`]:{height:ba*cn,display:"flex",alignItems:"center",paddingInlineEnd:pn},[`${et}-arrow`]:Object.assign(Object.assign({},(0,rn.Ro)()),{fontSize:St,svg:{transition:`transform ${_t}`}}),[`${et}-header-text`]:{marginInlineEnd:"auto"}},[`${et}-header-collapsible-only`]:{cursor:"default",[`${et}-header-text`]:{flex:"none",cursor:"pointer"}},[`${et}-icon-collapsible-only`]:{cursor:"default",[`${et}-expand-icon`]:{cursor:"pointer"}}},[`${et}-content`]:{color:qt,backgroundColor:An,borderTop:Fn,[`& > ${et}-content-box`]:{padding:fn},"&-hidden":{display:"none"}},"&-small":{[`> ${et}-item`]:{[`> ${et}-header`]:{padding:ht,paddingInlineStart:wa,[`> ${et}-expand-icon`]:{marginInlineStart:Oa-wa}},[`> ${et}-content > ${et}-content-box`]:{padding:Oa}}},"&-large":{[`> ${et}-item`]:{fontSize:ln,[`> ${et}-header`]:{padding:Mn,paddingInlineStart:ot,[`> ${et}-expand-icon`]:{height:ln*cn,marginInlineStart:pa-ot}},[`> ${et}-content > ${et}-content-box`]:{padding:pa}}},[`${et}-item:last-child`]:{[`> ${et}-content`]:{borderRadius:`0 0 ${Ot}px ${Ot}px`}},[`& ${et}-item-disabled > ${et}-header`]:{"\n &,\n & > .arrow\n ":{color:zn,cursor:"not-allowed"}},[`&${et}-icon-position-end`]:{[`& > ${et}-item`]:{[`> ${et}-header`]:{[`${et}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:pn}}}}})}},Et=ct=>{const{componentCls:et}=ct,An=`> ${et}-item > ${et}-header ${et}-arrow svg`;return{[`${et}-rtl`]:{[An]:{transform:"rotate(180deg)"}}}},Gt=ct=>{const{componentCls:et,headerBg:An,paddingXXS:ot,colorBorder:bt}=ct;return{[`${et}-borderless`]:{backgroundColor:An,border:0,[`> ${et}-item`]:{borderBottom:`1px solid ${bt}`},[` > ${et}-item:last-child, > ${et}-item:last-child ${et}-header - `]:{borderRadius:0},[`> ${et}-item:last-child`]:{borderBottom:0},[`> ${et}-item > ${et}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${et}-item > ${et}-content > ${et}-content-box`]:{paddingTop:ot}}}},vt=ct=>{const{componentCls:et,paddingSM:An}=ct;return{[`${et}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${et}-item`]:{borderBottom:0,[`> ${et}-content`]:{backgroundColor:"transparent",border:0,[`> ${et}-content-box`]:{paddingBlock:An}}}}}};var wt=(0,Zt.Z)("Collapse",ct=>{const et=(0,Qe.TS)(ct,{collapseHeaderPaddingSM:`${ct.paddingXS}px ${ct.paddingSM}px`,collapseHeaderPaddingLG:`${ct.padding}px ${ct.paddingLG}px`,collapsePanelBorderRadius:ct.borderRadiusLG});return[Oe(et),Gt(et),vt(et),Et(et),(0,It.Z)(et)]},ct=>({headerPadding:`${ct.paddingSM}px ${ct.padding}px`,headerBg:ct.colorFillAlter,contentPadding:`${ct.padding}px 16px`,contentBg:ct.colorBgContainer})),dt=Object.assign(De.forwardRef((ct,et)=>{const{getPrefixCls:An,direction:ot,collapse:Bt}=De.useContext(pt.E_),{prefixCls:Ht,className:ht,rootClassName:On,style:Ot,bordered:Un=!0,ghost:Bn,size:kn,expandIconPosition:qt="start",children:ca,expandIcon:zn}=ct,ba=(0,xt.Z)(Fn=>{var Ea;return(Ea=kn!=null?kn:Fn)!==null&&Ea!==void 0?Ea:"middle"}),ln=An("collapse",Ht),cn=An(),[pn,Oa]=wt(ln),va=De.useMemo(()=>qt==="left"?"start":qt==="right"?"end":qt,[qt]),wa=function(){let Fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Ea=zn?zn(Fn):De.createElement(b.Z,{rotate:Fn.isActive?90:void 0});return(0,gt.Tm)(Ea,()=>({className:Be()(Ea.props.className,`${ln}-arrow`)}))},_t=Be()(`${ln}-icon-position-${va}`,{[`${ln}-borderless`]:!Un,[`${ln}-rtl`]:ot==="rtl",[`${ln}-ghost`]:!!Bn,[`${ln}-${ba}`]:ba!=="middle"},Bt==null?void 0:Bt.className,ht,On,Oa),St=Object.assign(Object.assign({},(0,ye.Z)(cn)),{motionAppear:!1,leavedClassName:`${ln}-content-hidden`}),fn=De.useMemo(()=>ca?(0,We.Z)(ca).map((Fn,Ea)=>{var na,Ka;if(!((na=Fn.props)===null||na===void 0)&&na.disabled){const aa=(Ka=Fn.key)!==null&&Ka!==void 0?Ka:String(Ea),{disabled:Wn,collapsible:Ya}=Fn.props,Ma=Object.assign(Object.assign({},(0,nt.Z)(Fn.props,["disabled"])),{key:aa,collapsible:Ya!=null?Ya:Wn?"disabled":void 0});return(0,gt.Tm)(Fn,Ma)}return Fn}):null,[ca]);return pn(De.createElement(be,Object.assign({ref:et,openMotion:St},(0,nt.Z)(ct,["rootClassName"]),{expandIcon:wa,prefixCls:ln,className:_t,style:Object.assign(Object.assign({},Bt==null?void 0:Bt.style),Ot)}),fn))}),{Panel:Kt}),on=dt},39722:function(_e,Ct,oe){"use strict";oe.d(Ct,{t5:function(){return De}});var b=oe(92310),he=oe.n(b),Be=oe(55477),Ie=oe(59301),Ce=oe(36355),Ge=oe(77578),Fe=oe(17356),Ye=function(We,Ve){var le={};for(var E in We)Object.prototype.hasOwnProperty.call(We,E)&&Ve.indexOf(E)<0&&(le[E]=We[E]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,E=Object.getOwnPropertySymbols(We);a{if(!(!Ve&&!le))return Ie.createElement(Ie.Fragment,null,Ve&&Ie.createElement("div",{className:`${We}-title`},(0,Ge.Z)(Ve)),Ie.createElement("div",{className:`${We}-inner-content`},(0,Ge.Z)(le)))},De=We=>{const{hashId:Ve,prefixCls:le,className:E,style:a,placement:x="top",title:y,content:z,children:ne}=We;return Ie.createElement("div",{className:he()(Ve,le,`${le}-pure`,`${le}-placement-${x}`,E),style:a},Ie.createElement("div",{className:`${le}-arrow`}),Ie.createElement(Be.G,Object.assign({},We,{className:Ve,prefixCls:le}),ne||ke(le,y,z)))},Te=We=>{const{prefixCls:Ve}=We,le=Ye(We,["prefixCls"]),{getPrefixCls:E}=Ie.useContext(Ce.E_),a=E("popover",Ve),[x,y]=(0,Fe.Z)(a);return x(Ie.createElement(De,Object.assign({},le,{prefixCls:a,hashId:y})))};Ct.ZP=Te},60324:function(_e,Ct,oe){"use strict";var b=oe(92310),he=oe.n(b),Be=oe(59301),Ie=oe(77578),Ce=oe(62892),Ge=oe(36355),Fe=oe(6848),Ye=oe(39722),ke=oe(17356),De=function(Ve,le){var E={};for(var a in Ve)Object.prototype.hasOwnProperty.call(Ve,a)&&le.indexOf(a)<0&&(E[a]=Ve[a]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,a=Object.getOwnPropertySymbols(Ve);x{let{title:le,content:E,prefixCls:a}=Ve;return Be.createElement(Be.Fragment,null,le&&Be.createElement("div",{className:`${a}-title`},(0,Ie.Z)(le)),Be.createElement("div",{className:`${a}-inner-content`},(0,Ie.Z)(E)))},We=Be.forwardRef((Ve,le)=>{const{prefixCls:E,title:a,content:x,overlayClassName:y,placement:z="top",trigger:ne="hover",mouseEnterDelay:re=.1,mouseLeaveDelay:ie=.1,overlayStyle:ge={}}=Ve,fe=De(Ve,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Pe}=Be.useContext(Ge.E_),Ue=Pe("popover",E),[Me,lt]=(0,ke.Z)(Ue),Le=Pe(),be=he()(y,lt);return Me(Be.createElement(Fe.Z,Object.assign({placement:z,trigger:ne,mouseEnterDelay:re,mouseLeaveDelay:ie,overlayStyle:ge},fe,{prefixCls:Ue,overlayClassName:be,ref:le,overlay:a||x?Be.createElement(Te,{prefixCls:Ue,title:a,content:x}):null,transitionName:(0,Ce.m)(Le,"zoom-big",fe.transitionName),"data-popover-inject":!0})))});We._InternalPanelDoNotUseOrYouWillBeFired=Ye.ZP,Ct.Z=We},17356:function(_e,Ct,oe){"use strict";var b=oe(17313),he=oe(29878),Be=oe(19447),Ie=oe(33166),Ce=oe(83116),Ge=oe(37613);const Fe=De=>{const{componentCls:Te,popoverColor:We,minWidth:Ve,fontWeightStrong:le,popoverPadding:E,boxShadowSecondary:a,colorTextHeading:x,borderRadiusLG:y,zIndexPopup:z,marginXS:ne,colorBgElevated:re,popoverBg:ie}=De;return[{[Te]:Object.assign(Object.assign({},(0,b.Wf)(De)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:z,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":re,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Te}-content`]:{position:"relative"},[`${Te}-inner`]:{backgroundColor:ie,backgroundClip:"padding-box",borderRadius:y,boxShadow:a,padding:E},[`${Te}-title`]:{minWidth:Ve,marginBottom:ne,color:x,fontWeight:le},[`${Te}-inner-content`]:{color:We}})},(0,Be.ZP)(De,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Te}-pure`]:{position:"relative",maxWidth:"none",margin:De.sizePopupArrow,display:"inline-block",[`${Te}-content`]:{display:"inline-block"}}}]},Ye=De=>{const{componentCls:Te}=De;return{[Te]:Ie.i.map(We=>{const Ve=De[`${We}6`];return{[`&${Te}-${We}`]:{"--antd-arrow-background-color":Ve,[`${Te}-inner`]:{backgroundColor:Ve},[`${Te}-arrow`]:{background:"transparent"}}}})}},ke=De=>{const{componentCls:Te,lineWidth:We,lineType:Ve,colorSplit:le,paddingSM:E,controlHeight:a,fontSize:x,lineHeight:y,padding:z}=De,ne=a-Math.round(x*y),re=ne/2,ie=ne/2-We,ge=z;return{[Te]:{[`${Te}-inner`]:{padding:0},[`${Te}-title`]:{margin:0,padding:`${re}px ${ge}px ${ie}px`,borderBottom:`${We}px ${Ve} ${le}`},[`${Te}-inner-content`]:{padding:`${E}px ${ge}px`}}}};Ct.Z=(0,Ce.Z)("Popover",De=>{const{colorBgElevated:Te,colorText:We,wireframe:Ve}=De,le=(0,Ge.TS)(De,{popoverPadding:12,popoverBg:Te,popoverColor:We});return[Fe(le),Ye(le),Ve&&ke(le),(0,he._y)(le,"zoom-big")]},De=>({width:177,minWidth:177,zIndexPopup:De.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},12563:function(_e,Ct,oe){"use strict";oe.d(Ct,{default:function(){return lt}});var b=oe(59301),he=oe(99267),Be=oe(92310),Ie=oe.n(Be),Ce=oe(36785),Ge=oe(47729),Fe=oe(14088),Ye=oe(36355),ke=oe(17313),De=oe(37613),Te=oe(83116);const We=Le=>{const{paddingXXS:be,lineWidth:Xe,tagPaddingHorizontal:nt,componentCls:ye}=Le,gt=nt-Xe,pt=be-Xe;return{[ye]:Object.assign(Object.assign({},(0,ke.Wf)(Le)),{display:"inline-block",height:"auto",marginInlineEnd:Le.marginXS,paddingInline:gt,fontSize:Le.tagFontSize,lineHeight:Le.tagLineHeight,whiteSpace:"nowrap",background:Le.defaultBg,border:`${Le.lineWidth}px ${Le.lineType} ${Le.colorBorder}`,borderRadius:Le.borderRadiusSM,opacity:1,transition:`all ${Le.motionDurationMid}`,textAlign:"start",position:"relative",[`&${ye}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Le.defaultColor},[`${ye}-close-icon`]:{marginInlineStart:pt,color:Le.colorTextDescription,fontSize:Le.tagIconSize,cursor:"pointer",transition:`all ${Le.motionDurationMid}`,"&:hover":{color:Le.colorTextHeading}},[`&${ye}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Le.iconCls}-close, ${Le.iconCls}-close:hover`]:{color:Le.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${ye}-checkable-checked):hover`]:{color:Le.colorPrimary,backgroundColor:Le.colorFillSecondary},"&:active, &-checked":{color:Le.colorTextLightSolid},"&-checked":{backgroundColor:Le.colorPrimary,"&:hover":{backgroundColor:Le.colorPrimaryHover}},"&:active":{backgroundColor:Le.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Le.iconCls} + span, > span + ${Le.iconCls}`]:{marginInlineStart:gt}}),[`${ye}-borderless`]:{borderColor:"transparent",background:Le.tagBorderlessBg}}},Ve=Le=>{const{lineWidth:be,fontSizeIcon:Xe}=Le,nt=Le.fontSizeSM,ye=`${Le.lineHeightSM*nt}px`;return(0,De.TS)(Le,{tagFontSize:nt,tagLineHeight:ye,tagIconSize:Xe-2*be,tagPaddingHorizontal:8,tagBorderlessBg:Le.colorFillTertiary})},le=Le=>({defaultBg:Le.colorFillQuaternary,defaultColor:Le.colorText});var E=(0,Te.Z)("Tag",Le=>{const be=Ve(Le);return We(be)},le),a=function(Le,be){var Xe={};for(var nt in Le)Object.prototype.hasOwnProperty.call(Le,nt)&&be.indexOf(nt)<0&&(Xe[nt]=Le[nt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,nt=Object.getOwnPropertySymbols(Le);ye{const{prefixCls:be,style:Xe,className:nt,checked:ye,onChange:gt,onClick:pt}=Le,xt=a(Le,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:ut,tag:Kt}=b.useContext(Ye.E_),rn=Et=>{gt==null||gt(!ye),pt==null||pt(Et)},It=ut("tag",be),[Zt,Qe]=E(It),Oe=Ie()(It,`${It}-checkable`,{[`${It}-checkable-checked`]:ye},Kt==null?void 0:Kt.className,nt,Qe);return Zt(b.createElement("span",Object.assign({},xt,{style:Object.assign(Object.assign({},Xe),Kt==null?void 0:Kt.style),className:Oe,onClick:rn})))},z=oe(45157);const ne=Le=>(0,z.Z)(Le,(be,Xe)=>{let{textColor:nt,lightBorderColor:ye,lightColor:gt,darkColor:pt}=Xe;return{[`${Le.componentCls}-${be}`]:{color:nt,background:gt,borderColor:ye,"&-inverse":{color:Le.colorTextLightSolid,background:pt,borderColor:pt},[`&${Le.componentCls}-borderless`]:{borderColor:"transparent"}}}});var re=(0,Te.b)(["Tag","preset"],Le=>{const be=Ve(Le);return ne(be)},le);function ie(Le){return typeof Le!="string"?Le:Le.charAt(0).toUpperCase()+Le.slice(1)}const ge=(Le,be,Xe)=>{const nt=ie(Xe);return{[`${Le.componentCls}-${be}`]:{color:Le[`color${Xe}`],background:Le[`color${nt}Bg`],borderColor:Le[`color${nt}Border`],[`&${Le.componentCls}-borderless`]:{borderColor:"transparent"}}}};var fe=(0,Te.b)(["Tag","status"],Le=>{const be=Ve(Le);return[ge(be,"success","Success"),ge(be,"processing","Info"),ge(be,"error","Error"),ge(be,"warning","Warning")]},le),Pe=function(Le,be){var Xe={};for(var nt in Le)Object.prototype.hasOwnProperty.call(Le,nt)&&be.indexOf(nt)<0&&(Xe[nt]=Le[nt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,nt=Object.getOwnPropertySymbols(Le);ye{const{prefixCls:Xe,className:nt,rootClassName:ye,style:gt,children:pt,icon:xt,color:ut,onClose:Kt,closeIcon:rn,closable:It,bordered:Zt=!0}=Le,Qe=Pe(Le,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Oe,direction:Et,tag:Gt}=b.useContext(Ye.E_),[vt,wt]=b.useState(!0);b.useEffect(()=>{"visible"in Qe&&wt(Qe.visible)},[Qe.visible]);const Ae=(0,Ce.o2)(ut),dt=(0,Ce.yT)(ut),on=Ae||dt,ct=Object.assign(Object.assign({backgroundColor:ut&&!on?ut:void 0},Gt==null?void 0:Gt.style),gt),et=Oe("tag",Xe),[An,ot]=E(et),Bt=Ie()(et,Gt==null?void 0:Gt.className,{[`${et}-${ut}`]:on,[`${et}-has-color`]:ut&&!on,[`${et}-hidden`]:!vt,[`${et}-rtl`]:Et==="rtl",[`${et}-borderless`]:!Zt},nt,ye,ot),Ht=kn=>{kn.stopPropagation(),Kt==null||Kt(kn),!kn.defaultPrevented&&wt(!1)},[,ht]=(0,Ge.Z)(It,rn,kn=>kn===null?b.createElement(he.Z,{className:`${et}-close-icon`,onClick:Ht}):b.createElement("span",{className:`${et}-close-icon`,onClick:Ht},kn),null,!1),On=typeof Qe.onClick=="function"||pt&&pt.type==="a",Ot=xt||null,Un=Ot?b.createElement(b.Fragment,null,Ot,pt&&b.createElement("span",null,pt)):pt,Bn=b.createElement("span",Object.assign({},Qe,{ref:be,className:Bt,style:ct}),Un,ht,Ae&&b.createElement(re,{key:"preset",prefixCls:et}),dt&&b.createElement(fe,{key:"status",prefixCls:et}));return An(On?b.createElement(Fe.Z,{component:"Tag"},Bn):Bn)},Me=b.forwardRef(Ue);Me.CheckableTag=y;var lt=Me},98228:function(_e,Ct,oe){"use strict";oe.d(Ct,{default:function(){return Ar}});var b=oe(92310),he=oe.n(b),Be=oe(54476),Ie=oe(94480),Ce=oe(33885),Ge=oe(42978),Fe=oe(75931),Ye=oe(76190),ke=oe(77861),De=oe(17115),Te=oe(90782),We=oe(18929),Ve=oe(48736),le=oe(59301),E=function(At){var Ln=le.useRef({valueLabels:new Map});return le.useMemo(function(){var Mn=Ln.current.valueLabels,xn=new Map,xe=At.map(function(ft){var Ft,Vt=ft.value,Rt=(Ft=ft.label)!==null&&Ft!==void 0?Ft:Mn.get(Vt);return xn.set(Vt,Rt),(0,Ce.Z)((0,Ce.Z)({},ft),{},{label:Rt})});return Ln.current.valueLabels=xn,[xe]},[At])},a=function(At,Ln,Mn,xn){return le.useMemo(function(){var xe=At.map(function(Rt){var yt=Rt.value;return yt}),ft=Ln.map(function(Rt){var yt=Rt.value;return yt}),Ft=xe.filter(function(Rt){return!xn[Rt]});if(Mn){var Vt=(0,Te.S)(xe,!0,xn);xe=Vt.checkedKeys,ft=Vt.halfCheckedKeys}return[Array.from(new Set([].concat((0,Ie.Z)(Ft),(0,Ie.Z)(xe)))),ft]},[At,Ln,Mn,xn])},x=oe(71430),y=function(At,Ln){return le.useMemo(function(){var Mn=(0,x.I8)(At,{fieldNames:Ln,initWrapper:function(xe){return(0,Ce.Z)((0,Ce.Z)({},xe),{},{valueEntities:new Map})},processEntity:function(xe,ft){var Ft=xe.node[Ln.value];if(0)var Vt;ft.valueEntities.set(Ft,xe)}});return Mn},[At,Ln])},z=oe(20068),ne=oe(11592),re=function(){return null},ie=re,ge=["children","value"];function fe(At){return(0,ne.Z)(At).map(function(Ln){if(!le.isValidElement(Ln)||!Ln.type)return null;var Mn=Ln,xn=Mn.key,xe=Mn.props,ft=xe.children,Ft=xe.value,Vt=(0,Fe.Z)(xe,ge),Rt=(0,Ce.Z)({key:xn,value:Ft},Vt),yt=fe(ft);return yt.length&&(Rt.children=yt),Rt}).filter(function(Ln){return Ln})}function Pe(At){if(!At)return At;var Ln=(0,Ce.Z)({},At);return"props"in Ln||Object.defineProperty(Ln,"props",{get:function(){return(0,Ve.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Ln}}),Ln}function Ue(At,Ln,Mn,xn,xe,ft){var Ft=null,Vt=null;function Rt(){function yt(hn){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return hn.map(function(He,Mt){var un="".concat(je,"-").concat(Mt),sn=He[ft.value],Xn=Mn.includes(sn),Qn=yt(He[ft.children]||[],un,Xn),gn=le.createElement(ie,He,Qn.map(function(ha){return ha.node}));if(Ln===sn&&(Ft=gn),Xn){var Yn={pos:un,node:gn,children:Qn};return Ke||Vt.push(Yn),Yn}return null}).filter(function(He){return He})}Vt||(Vt=[],yt(xn),Vt.sort(function(hn,je){var Ke=hn.node.props.value,He=je.node.props.value,Mt=Mn.indexOf(Ke),un=Mn.indexOf(He);return Mt-un}))}Object.defineProperty(At,"triggerNode",{get:function(){return(0,Ve.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Rt(),Ft}}),Object.defineProperty(At,"allCheckedNodes",{get:function(){return(0,Ve.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Rt(),xe?Vt:Vt.map(function(hn){var je=hn.node;return je})}})}var Me=function(At,Ln,Mn){var xn=Mn.treeNodeFilterProp,xe=Mn.filterTreeNode,ft=Mn.fieldNames,Ft=ft.children;return le.useMemo(function(){if(!Ln||xe===!1)return At;var Vt;if(typeof xe=="function")Vt=xe;else{var Rt=Ln.toUpperCase();Vt=function(je,Ke){var He=Ke[xn];return String(He).toUpperCase().includes(Rt)}}function yt(hn){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return hn.reduce(function(Ke,He){var Mt=He[Ft],un=je||Vt(Ln,Pe(He)),sn=yt(Mt||[],un);return(un||sn.length)&&Ke.push((0,Ce.Z)((0,Ce.Z)({},He),{},(0,z.Z)({isLeaf:void 0},Ft,sn))),Ke},[])}return yt(At)},[At,Ln,Ft,xn,xe])};function lt(At){var Ln=le.useRef();Ln.current=At;var Mn=le.useCallback(function(){return Ln.current.apply(Ln,arguments)},[]);return Mn}function Le(At,Ln){var Mn=Ln.id,xn=Ln.pId,xe=Ln.rootPId,ft={},Ft=[],Vt=At.map(function(Rt){var yt=(0,Ce.Z)({},Rt),hn=yt[Mn];return ft[hn]=yt,yt.key=yt.key||hn,yt});return Vt.forEach(function(Rt){var yt=Rt[xn],hn=ft[yt];hn&&(hn.children=hn.children||[],hn.children.push(Rt)),(yt===xe||!hn&&xe===null)&&Ft.push(Rt)}),Ft}function be(At,Ln,Mn){return le.useMemo(function(){return At?Mn?Le(At,(0,Ce.Z)({id:"id",pId:"pId",rootPId:null},Mn!==!0?Mn:{})):At:fe(Ln)},[Ln,Mn,At])}var Xe=le.createContext(null),nt=Xe,ye=oe(10228),gt=oe(80547),pt=oe(60091),xt=le.createContext(null),ut=xt;function Kt(At){return Array.isArray(At)?At:At!==void 0?[At]:[]}function rn(At){var Ln=At||{},Mn=Ln.label,xn=Ln.value,xe=Ln.children,ft=xn||"value";return{_title:Mn?[Mn]:["title","label"],value:ft,key:ft,children:xe||"children"}}function It(At){return!At||At.disabled||At.disableCheckbox||At.checkable===!1}function Zt(At,Ln){var Mn=[];function xn(xe){xe.forEach(function(ft){var Ft=ft[Ln.children];Ft&&(Mn.push(ft[Ln.value]),xn(Ft))})}return xn(At),Mn}function Qe(At){return At==null}var Oe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Et=function(Ln,Mn){var xn=(0,ke.lk)(),xe=xn.prefixCls,ft=xn.multiple,Ft=xn.searchValue,Vt=xn.toggleOpen,Rt=xn.open,yt=xn.notFoundContent,hn=le.useContext(ut),je=hn.virtual,Ke=hn.listHeight,He=hn.listItemHeight,Mt=hn.treeData,un=hn.fieldNames,sn=hn.onSelect,Xn=hn.dropdownMatchSelectWidth,Qn=hn.treeExpandAction,gn=le.useContext(nt),Yn=gn.checkable,ha=gn.checkedKeys,zt=gn.halfCheckedKeys,_n=gn.treeExpandedKeys,Je=gn.treeDefaultExpandAll,Qt=gn.treeDefaultExpandedKeys,bn=gn.onTreeExpand,tt=gn.treeIcon,Jn=gn.showTreeIcon,In=gn.switcherIcon,sa=gn.treeLine,Zn=gn.treeNodeFilterProp,za=gn.loadData,la=gn.treeLoadedKeys,_a=gn.treeMotion,$a=gn.onTreeLoad,sr=gn.keyEntities,Tt=le.useRef(),Da=(0,gt.Z)(function(){return Mt},[Rt,Mt],function(ka,nr){return nr[0]&&ka[1]!==nr[1]}),Wt=le.useState(null),xa=(0,Ge.Z)(Wt,2),fa=xa[0],Yt=xa[1],Cn=sr[fa],ea=le.useMemo(function(){return Yn?{checked:ha,halfChecked:zt}:null},[Yn,ha,zt]);le.useEffect(function(){if(Rt&&!ft&&ha.length){var ka;(ka=Tt.current)===null||ka===void 0||ka.scrollTo({key:ha[0]}),Yt(ha[0])}},[Rt]);var Pn=String(Ft).toLowerCase(),Ra=function(nr){return Pn?String(nr[Zn]).toLowerCase().includes(Pn):!1},pa=le.useState(Qt),Va=(0,Ge.Z)(pa,2),ur=Va[0],Sr=Va[1],Nr=le.useState(null),pr=(0,Ge.Z)(Nr,2),Yr=pr[0],Xa=pr[1],qa=le.useMemo(function(){return _n?(0,Ie.Z)(_n):Ft?Yr:ur},[ur,Yr,_n,Ft]);le.useEffect(function(){Ft&&Xa(Zt(Mt,un))},[Ft]);var fr=function(nr){Sr(nr),Xa(nr),bn&&bn(nr)},ga=function(nr){nr.preventDefault()},or=function(nr,mt){var it=mt.node;Yn&&It(it)||(sn(it.key,{selected:!ha.includes(it.key)}),ft||Vt(!1))};if(le.useImperativeHandle(Mn,function(){var ka;return{scrollTo:(ka=Tt.current)===null||ka===void 0?void 0:ka.scrollTo,onKeyDown:function(mt){var it,Nt=mt.which;switch(Nt){case ye.Z.UP:case ye.Z.DOWN:case ye.Z.LEFT:case ye.Z.RIGHT:(it=Tt.current)===null||it===void 0||it.onKeyDown(mt);break;case ye.Z.ENTER:{if(Cn){var dn=(Cn==null?void 0:Cn.node)||{},ia=dn.selectable,La=dn.value;ia!==!1&&or(null,{node:{key:fa},selected:!ha.includes(La)})}break}case ye.Z.ESC:Vt(!1)}},onKeyUp:function(){}}}),Da.length===0)return le.createElement("div",{role:"listbox",className:"".concat(xe,"-empty"),onMouseDown:ga},yt);var dr={fieldNames:un};return la&&(dr.loadedKeys=la),qa&&(dr.expandedKeys=qa),le.createElement("div",{onMouseDown:ga},Cn&&Rt&&le.createElement("span",{style:Oe,"aria-live":"assertive"},Cn.node.value),le.createElement(pt.Z,(0,Be.Z)({ref:Tt,focusable:!1,prefixCls:"".concat(xe,"-tree"),treeData:Da,height:Ke,itemHeight:He,virtual:je!==!1&&Xn!==!1,multiple:ft,icon:tt,showIcon:Jn,switcherIcon:In,showLine:sa,loadData:Ft?null:za,motion:_a,activeKey:fa,checkable:Yn,checkStrictly:!0,checkedKeys:ea,selectedKeys:Yn?[]:ha,defaultExpandAll:Je},dr,{onActiveChange:Yt,onSelect:or,onCheck:or,onExpand:fr,onLoad:$a,filterTreeNode:Ra,expandAction:Qn})))},Gt=le.forwardRef(Et);Gt.displayName="OptionList";var vt=Gt,wt="SHOW_ALL",Ae="SHOW_PARENT",dt="SHOW_CHILD";function on(At,Ln,Mn,xn){var xe=new Set(At);return Ln===dt?At.filter(function(ft){var Ft=Mn[ft];return!(Ft&&Ft.children&&Ft.children.some(function(Vt){var Rt=Vt.node;return xe.has(Rt[xn.value])})&&Ft.children.every(function(Vt){var Rt=Vt.node;return It(Rt)||xe.has(Rt[xn.value])}))}):Ln===Ae?At.filter(function(ft){var Ft=Mn[ft],Vt=Ft?Ft.parent:null;return!(Vt&&!It(Vt.node)&&xe.has(Vt.key))}):At}function ct(At){var Ln=At.searchPlaceholder,Mn=At.treeCheckStrictly,xn=At.treeCheckable,xe=At.labelInValue,ft=At.value,Ft=At.multiple;warning(!Ln,"`searchPlaceholder` has been removed."),Mn&&xe===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(xe||Mn)&&warning(toArray(ft).every(function(Vt){return Vt&&_typeof(Vt)==="object"&&"value"in Vt}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Mn||Ft||xn?warning(!ft||Array.isArray(ft),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(ft),"`value` should not be array when `TreeSelect` is single mode.")}var et=null,An=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function ot(At){return!At||(0,Ye.Z)(At)!=="object"}var Bt=le.forwardRef(function(At,Ln){var Mn=At.id,xn=At.prefixCls,xe=xn===void 0?"rc-tree-select":xn,ft=At.value,Ft=At.defaultValue,Vt=At.onChange,Rt=At.onSelect,yt=At.onDeselect,hn=At.searchValue,je=At.inputValue,Ke=At.onSearch,He=At.autoClearSearchValue,Mt=He===void 0?!0:He,un=At.filterTreeNode,sn=At.treeNodeFilterProp,Xn=sn===void 0?"value":sn,Qn=At.showCheckedStrategy,gn=At.treeNodeLabelProp,Yn=At.multiple,ha=At.treeCheckable,zt=At.treeCheckStrictly,_n=At.labelInValue,Je=At.fieldNames,Qt=At.treeDataSimpleMode,bn=At.treeData,tt=At.children,Jn=At.loadData,In=At.treeLoadedKeys,sa=At.onTreeLoad,Zn=At.treeDefaultExpandAll,za=At.treeExpandedKeys,la=At.treeDefaultExpandedKeys,_a=At.onTreeExpand,$a=At.treeExpandAction,sr=At.virtual,Tt=At.listHeight,Da=Tt===void 0?200:Tt,Wt=At.listItemHeight,xa=Wt===void 0?20:Wt,fa=At.onDropdownVisibleChange,Yt=At.dropdownMatchSelectWidth,Cn=Yt===void 0?!0:Yt,ea=At.treeLine,Pn=At.treeIcon,Ra=At.showTreeIcon,pa=At.switcherIcon,Va=At.treeMotion,ur=(0,Fe.Z)(At,An),Sr=(0,De.ZP)(Mn),Nr=ha&&!zt,pr=ha||zt,Yr=zt||_n,Xa=pr||Yn,qa=(0,We.Z)(Ft,{value:ft}),fr=(0,Ge.Z)(qa,2),ga=fr[0],or=fr[1],dr=le.useMemo(function(){return ha?Qn||dt:wt},[Qn,ha]),ka=le.useMemo(function(){return rn(Je)},[JSON.stringify(Je)]),nr=(0,We.Z)("",{value:hn!==void 0?hn:je,postState:function(Ia){return Ia||""}}),mt=(0,Ge.Z)(nr,2),it=mt[0],Nt=mt[1],dn=function(Ia){Nt(Ia),Ke==null||Ke(Ia)},ia=be(bn,tt,Qt),La=y(ia,ka),$t=La.keyEntities,Fa=La.valueEntities,Sa=le.useCallback(function(mn){var Ia=[],Ca=[];return mn.forEach(function(Ga){Fa.has(Ga)?Ca.push(Ga):Ia.push(Ga)}),{missingRawValues:Ia,existRawValues:Ca}},[Fa]),ar=Me(ia,it,{fieldNames:ka,treeNodeFilterProp:Xn,filterTreeNode:un}),Ta=le.useCallback(function(mn){if(mn){if(gn)return mn[gn];for(var Ia=ka._title,Ca=0;Ca{const{componentCls:Ln,treePrefixCls:Mn,colorBgElevated:xn}=At,xe=`.${Mn}`;return[{[`${Ln}-dropdown`]:[{padding:`${At.paddingXS}px ${At.paddingXS/2}px`},(0,Ea.Yk)(Mn,(0,fn.TS)(At,{colorBgContainer:xn})),{[xe]:{borderRadius:0,[`${xe}-list-holder-inner`]:{alignItems:"stretch",[`${xe}-treenode`]:{[`${xe}-node-content-wrapper`]:{flex:"auto"}}}}},(0,St.C2)(`${Mn}-checkbox`,At),{"&-rtl":{direction:"rtl",[`${xe}-switcher${xe}-switcher_close`]:{[`${xe}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Ka(At,Ln){return(0,Fn.Z)("TreeSelect",Mn=>{const xn=(0,fn.TS)(Mn,{treePrefixCls:Ln});return[na(xn)]},Ea.TM)(At)}var aa=function(At,Ln){var Mn={};for(var xn in At)Object.prototype.hasOwnProperty.call(At,xn)&&Ln.indexOf(xn)<0&&(Mn[xn]=At[xn]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,xn=Object.getOwnPropertySymbols(At);xe{var Mn,{prefixCls:xn,size:xe,disabled:ft,bordered:Ft=!0,className:Vt,rootClassName:Rt,treeCheckable:yt,multiple:hn,listHeight:je=256,listItemHeight:Ke=26,placement:He,notFoundContent:Mt,switcherIcon:un,treeLine:sn,getPopupContainer:Xn,popupClassName:Qn,dropdownClassName:gn,treeIcon:Yn=!1,transitionName:ha,choiceTransitionName:zt="",status:_n,treeExpandAction:Je,builtinPlacements:Qt,dropdownMatchSelectWidth:bn,popupMatchSelectWidth:tt,allowClear:Jn}=At,In=aa(At,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:sa,getPrefixCls:Zn,renderEmpty:za,direction:la,virtual:_a,popupMatchSelectWidth:$a,popupOverflow:sr}=le.useContext(qt.E_),Tt=Zn(),Da=Zn("select",xn),Wt=Zn("select-tree",xn),xa=Zn("tree-select",xn),{compactSize:fa,compactItemClassnames:Yt}=(0,wa.ri)(Da,la),[Cn,ea]=(0,cn.Z)(Da),[Pn]=Ka(xa,Wt),Ra=he()(Qn||gn,`${xa}-dropdown`,{[`${xa}-dropdown-rtl`]:la==="rtl"},Rt,ea),pa=!!(yt||hn),Va=(0,Oa.Z)(In.suffixIcon,In.showArrow),ur=(Mn=tt!=null?tt:bn)!==null&&Mn!==void 0?Mn:$a,{status:Sr,hasFeedback:Nr,isFormItemInput:pr,feedbackIcon:Yr}=le.useContext(ln.aM),Xa=(0,kn.F)(Sr,_n),{suffixIcon:qa,removeIcon:fr,clearIcon:ga}=(0,va.Z)(Object.assign(Object.assign({},In),{multiple:pa,showSuffixIcon:Va,hasFeedback:Nr,feedbackIcon:Yr,prefixCls:Da,componentName:"TreeSelect"})),or=Jn===!0?{clearIcon:ga}:Jn;let dr;Mt!==void 0?dr=Mt:dr=(za==null?void 0:za("Select"))||le.createElement(zn.Z,{componentName:"Select"});const ka=(0,Ot.Z)(In,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),nr=le.useMemo(()=>He!==void 0?He:la==="rtl"?"bottomRight":"bottomLeft",[He,la]),mt=(0,pn.Z)(Qt,sr),it=(0,ba.Z)(Fa=>{var Sa;return(Sa=xe!=null?xe:fa)!==null&&Sa!==void 0?Sa:Fa}),Nt=le.useContext(ca.Z),dn=ft!=null?ft:Nt,ia=he()(!xn&&xa,{[`${Da}-lg`]:it==="large",[`${Da}-sm`]:it==="small",[`${Da}-rtl`]:la==="rtl",[`${Da}-borderless`]:!Ft,[`${Da}-in-form-item`]:pr},(0,kn.Z)(Da,Xa,Nr),Yt,Vt,Rt,ea),La=Fa=>le.createElement(_t.Z,{prefixCls:Wt,switcherIcon:un,treeNodeProps:Fa,showLine:sn}),$t=le.createElement(On,Object.assign({virtual:_a,disabled:dn},ka,{dropdownMatchSelectWidth:ur,builtinPlacements:mt,ref:Ln,prefixCls:Da,className:ia,listHeight:je,listItemHeight:Ke,treeCheckable:yt&&le.createElement("span",{className:`${Da}-tree-checkbox-inner`}),treeLine:!!sn,suffixIcon:qa,multiple:pa,placement:nr,removeIcon:fr,allowClear:or,switcherIcon:La,showTreeIcon:Yn,notFoundContent:dr,getPopupContainer:Xn||sa,treeMotion:null,dropdownClassName:Ra,choiceTransitionName:(0,Bn.m)(Tt,"",zt),transitionName:(0,Bn.m)(Tt,"slide-up",ha),treeExpandAction:Je}));return Cn(Pn($t))},Ma=le.forwardRef(Wn),Ja=(0,Un.Z)(Ma);Ma.TreeNode=ie,Ma.SHOW_ALL=wt,Ma.SHOW_PARENT=Ae,Ma.SHOW_CHILD=dt,Ma._InternalPanelDoNotUseOrYouWillBeFired=Ja;var Ar=Ma},24334:function(_e,Ct,oe){var b,he;(function(Be,Ie){_e.exports=Ie(Be)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof oe.g!="undefined"?oe.g:this,function(Be){"use strict";Be=Be||{};var Ie=Be.Base64,Ce="2.6.4",Ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fe=function(Xe){for(var nt={},ye=0,gt=Xe.length;ye>>6)+Ye(128|nt&63):Ye(224|nt>>>12&15)+Ye(128|nt>>>6&63)+Ye(128|nt&63)}else{var nt=65536+(Xe.charCodeAt(0)-55296)*1024+(Xe.charCodeAt(1)-56320);return Ye(240|nt>>>18&7)+Ye(128|nt>>>12&63)+Ye(128|nt>>>6&63)+Ye(128|nt&63)}},De=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Te=function(Xe){return Xe.replace(De,ke)},We=function(Xe){var nt=[0,2,1][Xe.length%3],ye=Xe.charCodeAt(0)<<16|(Xe.length>1?Xe.charCodeAt(1):0)<<8|(Xe.length>2?Xe.charCodeAt(2):0),gt=[Ge.charAt(ye>>>18),Ge.charAt(ye>>>12&63),nt>=2?"=":Ge.charAt(ye>>>6&63),nt>=1?"=":Ge.charAt(ye&63)];return gt.join("")},Ve=Be.btoa&&typeof Be.btoa=="function"?function(Xe){return Be.btoa(Xe)}:function(Xe){if(Xe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Xe.replace(/[\s\S]{1,3}/g,We)},le=function(Xe){return Ve(Te(String(Xe)))},E=function(Xe){return Xe.replace(/[+\/]/g,function(nt){return nt=="+"?"-":"_"}).replace(/=/g,"")},a=function(Xe,nt){return nt?E(le(Xe)):le(Xe)},x=function(Xe){return a(Xe,!0)},y;Be.Uint8Array&&(y=function(Xe,nt){for(var ye="",gt=0,pt=Xe.length;gt>>18)+Ge.charAt(rn>>>12&63)+(typeof ut!="undefined"?Ge.charAt(rn>>>6&63):"=")+(typeof Kt!="undefined"?Ge.charAt(rn&63):"=")}return nt?E(ye):ye});var z=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ne=function(Xe){switch(Xe.length){case 4:var nt=(7&Xe.charCodeAt(0))<<18|(63&Xe.charCodeAt(1))<<12|(63&Xe.charCodeAt(2))<<6|63&Xe.charCodeAt(3),ye=nt-65536;return Ye((ye>>>10)+55296)+Ye((ye&1023)+56320);case 3:return Ye((15&Xe.charCodeAt(0))<<12|(63&Xe.charCodeAt(1))<<6|63&Xe.charCodeAt(2));default:return Ye((31&Xe.charCodeAt(0))<<6|63&Xe.charCodeAt(1))}},re=function(Xe){return Xe.replace(z,ne)},ie=function(Xe){var nt=Xe.length,ye=nt%4,gt=(nt>0?Fe[Xe.charAt(0)]<<18:0)|(nt>1?Fe[Xe.charAt(1)]<<12:0)|(nt>2?Fe[Xe.charAt(2)]<<6:0)|(nt>3?Fe[Xe.charAt(3)]:0),pt=[Ye(gt>>>16),Ye(gt>>>8&255),Ye(gt&255)];return pt.length-=[0,0,2,1][ye],pt.join("")},ge=Be.atob&&typeof Be.atob=="function"?function(Xe){return Be.atob(Xe)}:function(Xe){return Xe.replace(/\S{1,4}/g,ie)},fe=function(Xe){return ge(String(Xe).replace(/[^A-Za-z0-9\+\/]/g,""))},Pe=function(Xe){return re(ge(Xe))},Ue=function(Xe){return String(Xe).replace(/[-_]/g,function(nt){return nt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Me=function(Xe){return Pe(Ue(Xe))},lt;Be.Uint8Array&&(lt=function(Xe){return Uint8Array.from(fe(Ue(Xe)),function(nt){return nt.charCodeAt(0)})});var Le=function(){var Xe=Be.Base64;return Be.Base64=Ie,Xe};if(Be.Base64={VERSION:Ce,atob:fe,btoa:Ve,fromBase64:Me,toBase64:a,utob:Te,encode:a,encodeURI:x,btou:re,decode:Me,noConflict:Le,fromUint8Array:y,toUint8Array:lt},typeof Object.defineProperty=="function"){var be=function(Xe){return{value:Xe,enumerable:!1,writable:!0,configurable:!0}};Be.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",be(function(){return Me(this)})),Object.defineProperty(String.prototype,"toBase64",be(function(Xe){return a(this,Xe)})),Object.defineProperty(String.prototype,"toBase64URI",be(function(){return a(this,!0)}))}}return Be.Meteor&&(Base64=Be.Base64),_e.exports?_e.exports.Base64=Be.Base64:(b=[],he=function(){return Be.Base64}.apply(Ct,b),he!==void 0&&(_e.exports=he)),{Base64:Be.Base64}})},11414:function(_e,Ct,oe){"use strict";oe.d(Ct,{Z5:function(){return qs},_l:function(){return Hd},bK:function(){return ns}});var b=oe(59301),he=oe(18773);function Be(ee,te){ee.prototype=Object.create(te.prototype),ee.prototype.constructor=ee,(0,he.Z)(ee,te)}var Ie=oe(54476),Ce=oe(59781),Ge=b.createContext(null),Fe=null;function Ye(ee){ee()}var ke=Ye,De=function(te){return ke=te},Te=function(){return ke};function We(){var ee=Te(),te=null,ae=null;return{clear:function(){te=null,ae=null},notify:function(){ee(function(){for(var ce=te;ce;)ce.callback(),ce=ce.next})},get:function(){for(var ce=[],me=te;me;)ce.push(me),me=me.next;return ce},subscribe:function(ce){var me=!0,ve=ae={callback:ce,next:null,prev:ae};return ve.prev?ve.prev.next=ve:te=ve,function(){!me||te===null||(me=!1,ve.next?ve.next.prev=ve.prev:ae=ve.prev,ve.prev?ve.prev.next=ve.next:te=ve.next)}}}}var Ve={notify:function(){},get:function(){return[]}};function le(ee,te){var ae,ue=Ve;function ce(Ne){return we(),ue.subscribe(Ne)}function me(){ue.notify()}function ve(){ze.onStateChange&&ze.onStateChange()}function pe(){return!!ae}function we(){ae||(ae=te?te.addNestedSub(ve):ee.subscribe(ve),ue=We())}function Ze(){ae&&(ae(),ae=void 0,ue.clear(),ue=Ve)}var ze={addNestedSub:ce,notifyNestedSubs:me,handleChangeWrapper:ve,isSubscribed:pe,trySubscribe:we,tryUnsubscribe:Ze,getListeners:function(){return ue}};return ze}var E=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect;function a(ee){var te=ee.store,ae=ee.context,ue=ee.children,ce=(0,b.useMemo)(function(){var pe=le(te);return{store:te,subscription:pe}},[te]),me=(0,b.useMemo)(function(){return te.getState()},[te]);E(function(){var pe=ce.subscription;return pe.onStateChange=pe.notifyNestedSubs,pe.trySubscribe(),me!==te.getState()&&pe.notifyNestedSubs(),function(){pe.tryUnsubscribe(),pe.onStateChange=null}},[ce,me]);var ve=ae||Ge;return b.createElement(ve.Provider,{value:ce},ue)}var x=a,y=oe(85377),z=oe(94266),ne=oe.n(z),re=oe(53410),ie=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],ge=["reactReduxForwardedRef"],fe=[],Pe=[null,null],Ue=function(te){try{return JSON.stringify(te)}catch(ae){return String(te)}};function Me(ee,te){var ae=ee[1];return[te.payload,ae+1]}function lt(ee,te,ae){E(function(){return ee.apply(void 0,te)},ae)}function Le(ee,te,ae,ue,ce,me,ve){ee.current=ue,te.current=ce,ae.current=!1,me.current&&(me.current=null,ve())}function be(ee,te,ae,ue,ce,me,ve,pe,we,Ze){if(ee){var ze=!1,Ne=null,Re=function(){if(!ze){var Dn=te.getState(),Hn,Kn;try{Hn=ue(Dn,ce.current)}catch(ua){Kn=ua,Ne=ua}Kn||(Ne=null),Hn===me.current?ve.current||we():(me.current=Hn,pe.current=Hn,ve.current=!0,Ze({type:"STORE_UPDATED",payload:{error:Kn}}))}};ae.onStateChange=Re,ae.trySubscribe(),Re();var qe=function(){if(ze=!0,ae.tryUnsubscribe(),ae.onStateChange=null,Ne)throw Ne};return qe}}var Xe=function(){return[null,0]};function nt(ee,te){te===void 0&&(te={});var ae=te,ue=ae.getDisplayName,ce=ue===void 0?function(rr){return"ConnectAdvanced("+rr+")"}:ue,me=ae.methodName,ve=me===void 0?"connectAdvanced":me,pe=ae.renderCountProp,we=pe===void 0?void 0:pe,Ze=ae.shouldHandleStateChanges,ze=Ze===void 0?!0:Ze,Ne=ae.storeKey,Re=Ne===void 0?"store":Ne,qe=ae.withRef,Pt=qe===void 0?!1:qe,Dn=ae.forwardRef,Hn=Dn===void 0?!1:Dn,Kn=ae.context,ua=Kn===void 0?Ge:Kn,ya=(0,y.Z)(ae,ie);if(0)var Na;var lr=ua;return function(Er){var Xr=Er.displayName||Er.name||"Component",Fr=ce(Xr),qr=(0,Ie.Z)({},ya,{getDisplayName:ce,methodName:ve,renderCountProp:we,shouldHandleStateChanges:ze,storeKey:Re,displayName:Fr,wrappedComponentName:Xr,WrappedComponent:Er}),oo=ya.pure;function uo(so){return ee(so.dispatch,qr)}var jo=oo?b.useMemo:function(so){return so()};function Ro(so){var _o=(0,b.useMemo)(function(){var Vi=so.reactReduxForwardedRef,xu=(0,y.Z)(so,ge);return[so.context,Vi,xu]},[so]),zo=_o[0],Zi=_o[1],si=_o[2],$o=(0,b.useMemo)(function(){return zo&&zo.Consumer&&(0,re.isContextConsumer)(b.createElement(zo.Consumer,null))?zo:lr},[zo,lr]),Zo=(0,b.useContext)($o),di=!!so.store&&!!so.store.getState&&!!so.store.dispatch,Ol=!!Zo&&!!Zo.store,Wo=di?so.store:Zo.store,Wi=(0,b.useMemo)(function(){return uo(Wo)},[Wo]),Ml=(0,b.useMemo)(function(){if(!ze)return Pe;var Vi=le(Wo,di?null:Zo.subscription),xu=Vi.notifyNestedSubs.bind(Vi);return[Vi,xu]},[Wo,di,Zo]),Fi=Ml[0],Rl=Ml[1],Tl=(0,b.useMemo)(function(){return di?Zo:(0,Ie.Z)({},Zo,{subscription:Fi})},[di,Zo,Fi]),as=(0,b.useReducer)(Me,fe,Xe),Ud=as[0],kl=Ud[0],Kd=as[1];if(kl&&kl.error)throw kl.error;var rs=(0,b.useRef)(),Bu=(0,b.useRef)(si),Gl=(0,b.useRef)(),os=(0,b.useRef)(!1),bu=jo(function(){return Gl.current&&si===Bu.current?Gl.current:Wi(Wo.getState(),si)},[Wo,kl,si]);lt(Le,[Bu,rs,os,si,bu,Gl,Rl]),lt(be,[ze,Wo,Fi,Wi,Bu,rs,os,Gl,Rl,Kd],[Wo,Fi,Wi]);var Cu=(0,b.useMemo)(function(){return b.createElement(Er,(0,Ie.Z)({},bu,{ref:Zi}))},[Zi,Er,bu]),Yd=(0,b.useMemo)(function(){return ze?b.createElement($o.Provider,{value:Tl},Cu):Cu},[$o,Cu,Tl]);return Yd}var Bo=oo?b.memo(Ro):Ro;if(Bo.WrappedComponent=Er,Bo.displayName=Ro.displayName=Fr,Hn){var Ho=b.forwardRef(function(_o,zo){return b.createElement(Bo,(0,Ie.Z)({},_o,{reactReduxForwardedRef:zo}))});return Ho.displayName=Fr,Ho.WrappedComponent=Er,ne()(Ho,Er)}return ne()(Bo,Er)}}function ye(ee,te){return ee===te?ee!==0||te!==0||1/ee===1/te:ee!==ee&&te!==te}function gt(ee,te){if(ye(ee,te))return!0;if(typeof ee!="object"||ee===null||typeof te!="object"||te===null)return!1;var ae=Object.keys(ee),ue=Object.keys(te);if(ae.length!==ue.length)return!1;for(var ce=0;ce=0;ue--){var ce=te[ue](ee);if(ce)return ce}return function(me,ve){throw new Error("Invalid value of type "+typeof ee+" for "+ae+" argument when connecting component "+ve.wrappedComponentName+".")}}function ht(ee,te){return ee===te}function On(ee){var te=ee===void 0?{}:ee,ae=te.connectHOC,ue=ae===void 0?nt:ae,ce=te.mapStateToPropsFactories,me=ce===void 0?Gt:ce,ve=te.mapDispatchToPropsFactories,pe=ve===void 0?Qe:ve,we=te.mergePropsFactories,Ze=we===void 0?on:we,ze=te.selectorFactory,Ne=ze===void 0?ot:ze;return function(qe,Pt,Dn,Hn){Hn===void 0&&(Hn={});var Kn=Hn,ua=Kn.pure,ya=ua===void 0?!0:ua,Na=Kn.areStatesEqual,lr=Na===void 0?ht:Na,rr=Kn.areOwnPropsEqual,Er=rr===void 0?gt:rr,Xr=Kn.areStatePropsEqual,Fr=Xr===void 0?gt:Xr,qr=Kn.areMergedPropsEqual,oo=qr===void 0?gt:qr,uo=(0,y.Z)(Kn,Bt),jo=Ht(qe,me,"mapStateToProps"),Ro=Ht(Pt,pe,"mapDispatchToProps"),Bo=Ht(Dn,Ze,"mergeProps");return ue(Ne,(0,Ie.Z)({methodName:"connect",getDisplayName:function(so){return"Connect("+so+")"},shouldHandleStateChanges:!!qe,initMapStateToProps:jo,initMapDispatchToProps:Ro,initMergeProps:Bo,pure:ya,areStatesEqual:lr,areOwnPropsEqual:Er,areStatePropsEqual:Fr,areMergedPropsEqual:oo},uo))}}var Ot=On();function Un(){var ee=useContext(ReactReduxContext);return ee}function Bn(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(){var ue=te(),ce=ue.store;return ce}}var kn=null;function qt(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultStore:createStoreHook(ee);return function(){var ue=te();return ue.dispatch}}var ca=null,zn=function(te,ae){return te===ae};function ba(ee,te,ae,ue){var ce=useReducer(function(Pt){return Pt+1},0),me=ce[1],ve=useMemo(function(){return createSubscription(ae,ue)},[ae,ue]),pe=useRef(),we=useRef(),Ze=useRef(),ze=useRef(),Ne=ae.getState(),Re;try{if(ee!==we.current||Ne!==Ze.current||pe.current){var qe=ee(Ne);ze.current===void 0||!te(qe,ze.current)?Re=qe:Re=ze.current}else Re=ze.current}catch(Pt){throw pe.current&&(Pt.message+=` + `]:{borderRadius:0},[`> ${et}-item:last-child`]:{borderBottom:0},[`> ${et}-item > ${et}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${et}-item > ${et}-content > ${et}-content-box`]:{paddingTop:ot}}}},vt=ct=>{const{componentCls:et,paddingSM:An}=ct;return{[`${et}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${et}-item`]:{borderBottom:0,[`> ${et}-content`]:{backgroundColor:"transparent",border:0,[`> ${et}-content-box`]:{paddingBlock:An}}}}}};var Dt=(0,Zt.Z)("Collapse",ct=>{const et=(0,Qe.TS)(ct,{collapseHeaderPaddingSM:`${ct.paddingXS}px ${ct.paddingSM}px`,collapseHeaderPaddingLG:`${ct.padding}px ${ct.paddingLG}px`,collapsePanelBorderRadius:ct.borderRadiusLG});return[Oe(et),Gt(et),vt(et),Et(et),(0,It.Z)(et)]},ct=>({headerPadding:`${ct.paddingSM}px ${ct.padding}px`,headerBg:ct.colorFillAlter,contentPadding:`${ct.padding}px 16px`,contentBg:ct.colorBgContainer})),dt=Object.assign(De.forwardRef((ct,et)=>{const{getPrefixCls:An,direction:ot,collapse:bt}=De.useContext(pt.E_),{prefixCls:Ht,className:ht,rootClassName:Mn,style:Ot,bordered:Un=!0,ghost:bn,size:kn,expandIconPosition:qt="start",children:ma,expandIcon:zn}=ct,ba=(0,wt.Z)(Fn=>{var ya;return(ya=kn!=null?kn:Fn)!==null&&ya!==void 0?ya:"middle"}),ln=An("collapse",Ht),cn=An(),[pn,Oa]=Dt(ln),pa=De.useMemo(()=>qt==="left"?"start":qt==="right"?"end":qt,[qt]),wa=function(){let Fn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const ya=zn?zn(Fn):De.createElement(b.Z,{rotate:Fn.isActive?90:void 0});return(0,gt.Tm)(ya,()=>({className:Be()(ya.props.className,`${ln}-arrow`)}))},_t=Be()(`${ln}-icon-position-${pa}`,{[`${ln}-borderless`]:!Un,[`${ln}-rtl`]:ot==="rtl",[`${ln}-ghost`]:!!bn,[`${ln}-${ba}`]:ba!=="middle"},bt==null?void 0:bt.className,ht,Mn,Oa),St=Object.assign(Object.assign({},(0,ye.Z)(cn)),{motionAppear:!1,leavedClassName:`${ln}-content-hidden`}),fn=De.useMemo(()=>ma?(0,We.Z)(ma).map((Fn,ya)=>{var na,Ka;if(!((na=Fn.props)===null||na===void 0)&&na.disabled){const aa=(Ka=Fn.key)!==null&&Ka!==void 0?Ka:String(ya),{disabled:Wn,collapsible:Ya}=Fn.props,Ma=Object.assign(Object.assign({},(0,nt.Z)(Fn.props,["disabled"])),{key:aa,collapsible:Ya!=null?Ya:Wn?"disabled":void 0});return(0,gt.Tm)(Fn,Ma)}return Fn}):null,[ma]);return pn(De.createElement(Ce,Object.assign({ref:et,openMotion:St},(0,nt.Z)(ct,["rootClassName"]),{expandIcon:wa,prefixCls:ln,className:_t,style:Object.assign(Object.assign({},bt==null?void 0:bt.style),Ot)}),fn))}),{Panel:Kt}),on=dt},39722:function(_e,xt,oe){"use strict";oe.d(xt,{t5:function(){return De}});var b=oe(92310),he=oe.n(b),Be=oe(55477),Ie=oe(59301),be=oe(36355),Ge=oe(77578),Fe=oe(17356),Ye=function(We,Ve){var le={};for(var E in We)Object.prototype.hasOwnProperty.call(We,E)&&Ve.indexOf(E)<0&&(le[E]=We[E]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,E=Object.getOwnPropertySymbols(We);a{if(!(!Ve&&!le))return Ie.createElement(Ie.Fragment,null,Ve&&Ie.createElement("div",{className:`${We}-title`},(0,Ge.Z)(Ve)),Ie.createElement("div",{className:`${We}-inner-content`},(0,Ge.Z)(le)))},De=We=>{const{hashId:Ve,prefixCls:le,className:E,style:a,placement:x="top",title:y,content:z,children:ne}=We;return Ie.createElement("div",{className:he()(Ve,le,`${le}-pure`,`${le}-placement-${x}`,E),style:a},Ie.createElement("div",{className:`${le}-arrow`}),Ie.createElement(Be.G,Object.assign({},We,{className:Ve,prefixCls:le}),ne||ke(le,y,z)))},Te=We=>{const{prefixCls:Ve}=We,le=Ye(We,["prefixCls"]),{getPrefixCls:E}=Ie.useContext(be.E_),a=E("popover",Ve),[x,y]=(0,Fe.Z)(a);return x(Ie.createElement(De,Object.assign({},le,{prefixCls:a,hashId:y})))};xt.ZP=Te},60324:function(_e,xt,oe){"use strict";var b=oe(92310),he=oe.n(b),Be=oe(59301),Ie=oe(77578),be=oe(62892),Ge=oe(36355),Fe=oe(6848),Ye=oe(39722),ke=oe(17356),De=function(Ve,le){var E={};for(var a in Ve)Object.prototype.hasOwnProperty.call(Ve,a)&&le.indexOf(a)<0&&(E[a]=Ve[a]);if(Ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,a=Object.getOwnPropertySymbols(Ve);x{let{title:le,content:E,prefixCls:a}=Ve;return Be.createElement(Be.Fragment,null,le&&Be.createElement("div",{className:`${a}-title`},(0,Ie.Z)(le)),Be.createElement("div",{className:`${a}-inner-content`},(0,Ie.Z)(E)))},We=Be.forwardRef((Ve,le)=>{const{prefixCls:E,title:a,content:x,overlayClassName:y,placement:z="top",trigger:ne="hover",mouseEnterDelay:re=.1,mouseLeaveDelay:ie=.1,overlayStyle:ge={}}=Ve,fe=De(Ve,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Pe}=Be.useContext(Ge.E_),Ue=Pe("popover",E),[Me,lt]=(0,ke.Z)(Ue),Le=Pe(),Ce=he()(y,lt);return Me(Be.createElement(Fe.Z,Object.assign({placement:z,trigger:ne,mouseEnterDelay:re,mouseLeaveDelay:ie,overlayStyle:ge},fe,{prefixCls:Ue,overlayClassName:Ce,ref:le,overlay:a||x?Be.createElement(Te,{prefixCls:Ue,title:a,content:x}):null,transitionName:(0,be.m)(Le,"zoom-big",fe.transitionName),"data-popover-inject":!0})))});We._InternalPanelDoNotUseOrYouWillBeFired=Ye.ZP,xt.Z=We},17356:function(_e,xt,oe){"use strict";var b=oe(17313),he=oe(29878),Be=oe(19447),Ie=oe(33166),be=oe(83116),Ge=oe(37613);const Fe=De=>{const{componentCls:Te,popoverColor:We,minWidth:Ve,fontWeightStrong:le,popoverPadding:E,boxShadowSecondary:a,colorTextHeading:x,borderRadiusLG:y,zIndexPopup:z,marginXS:ne,colorBgElevated:re,popoverBg:ie}=De;return[{[Te]:Object.assign(Object.assign({},(0,b.Wf)(De)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:z,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":re,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Te}-content`]:{position:"relative"},[`${Te}-inner`]:{backgroundColor:ie,backgroundClip:"padding-box",borderRadius:y,boxShadow:a,padding:E},[`${Te}-title`]:{minWidth:Ve,marginBottom:ne,color:x,fontWeight:le},[`${Te}-inner-content`]:{color:We}})},(0,Be.ZP)(De,{colorBg:"var(--antd-arrow-background-color)"}),{[`${Te}-pure`]:{position:"relative",maxWidth:"none",margin:De.sizePopupArrow,display:"inline-block",[`${Te}-content`]:{display:"inline-block"}}}]},Ye=De=>{const{componentCls:Te}=De;return{[Te]:Ie.i.map(We=>{const Ve=De[`${We}6`];return{[`&${Te}-${We}`]:{"--antd-arrow-background-color":Ve,[`${Te}-inner`]:{backgroundColor:Ve},[`${Te}-arrow`]:{background:"transparent"}}}})}},ke=De=>{const{componentCls:Te,lineWidth:We,lineType:Ve,colorSplit:le,paddingSM:E,controlHeight:a,fontSize:x,lineHeight:y,padding:z}=De,ne=a-Math.round(x*y),re=ne/2,ie=ne/2-We,ge=z;return{[Te]:{[`${Te}-inner`]:{padding:0},[`${Te}-title`]:{margin:0,padding:`${re}px ${ge}px ${ie}px`,borderBottom:`${We}px ${Ve} ${le}`},[`${Te}-inner-content`]:{padding:`${E}px ${ge}px`}}}};xt.Z=(0,be.Z)("Popover",De=>{const{colorBgElevated:Te,colorText:We,wireframe:Ve}=De,le=(0,Ge.TS)(De,{popoverPadding:12,popoverBg:Te,popoverColor:We});return[Fe(le),Ye(le),Ve&&ke(le),(0,he._y)(le,"zoom-big")]},De=>({width:177,minWidth:177,zIndexPopup:De.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},12563:function(_e,xt,oe){"use strict";oe.d(xt,{default:function(){return lt}});var b=oe(59301),he=oe(99267),Be=oe(92310),Ie=oe.n(Be),be=oe(36785),Ge=oe(47729),Fe=oe(14088),Ye=oe(36355),ke=oe(17313),De=oe(37613),Te=oe(83116);const We=Le=>{const{paddingXXS:Ce,lineWidth:Xe,tagPaddingHorizontal:nt,componentCls:ye}=Le,gt=nt-Xe,pt=Ce-Xe;return{[ye]:Object.assign(Object.assign({},(0,ke.Wf)(Le)),{display:"inline-block",height:"auto",marginInlineEnd:Le.marginXS,paddingInline:gt,fontSize:Le.tagFontSize,lineHeight:Le.tagLineHeight,whiteSpace:"nowrap",background:Le.defaultBg,border:`${Le.lineWidth}px ${Le.lineType} ${Le.colorBorder}`,borderRadius:Le.borderRadiusSM,opacity:1,transition:`all ${Le.motionDurationMid}`,textAlign:"start",position:"relative",[`&${ye}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Le.defaultColor},[`${ye}-close-icon`]:{marginInlineStart:pt,color:Le.colorTextDescription,fontSize:Le.tagIconSize,cursor:"pointer",transition:`all ${Le.motionDurationMid}`,"&:hover":{color:Le.colorTextHeading}},[`&${ye}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Le.iconCls}-close, ${Le.iconCls}-close:hover`]:{color:Le.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${ye}-checkable-checked):hover`]:{color:Le.colorPrimary,backgroundColor:Le.colorFillSecondary},"&:active, &-checked":{color:Le.colorTextLightSolid},"&-checked":{backgroundColor:Le.colorPrimary,"&:hover":{backgroundColor:Le.colorPrimaryHover}},"&:active":{backgroundColor:Le.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Le.iconCls} + span, > span + ${Le.iconCls}`]:{marginInlineStart:gt}}),[`${ye}-borderless`]:{borderColor:"transparent",background:Le.tagBorderlessBg}}},Ve=Le=>{const{lineWidth:Ce,fontSizeIcon:Xe}=Le,nt=Le.fontSizeSM,ye=`${Le.lineHeightSM*nt}px`;return(0,De.TS)(Le,{tagFontSize:nt,tagLineHeight:ye,tagIconSize:Xe-2*Ce,tagPaddingHorizontal:8,tagBorderlessBg:Le.colorFillTertiary})},le=Le=>({defaultBg:Le.colorFillQuaternary,defaultColor:Le.colorText});var E=(0,Te.Z)("Tag",Le=>{const Ce=Ve(Le);return We(Ce)},le),a=function(Le,Ce){var Xe={};for(var nt in Le)Object.prototype.hasOwnProperty.call(Le,nt)&&Ce.indexOf(nt)<0&&(Xe[nt]=Le[nt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,nt=Object.getOwnPropertySymbols(Le);ye{const{prefixCls:Ce,style:Xe,className:nt,checked:ye,onChange:gt,onClick:pt}=Le,wt=a(Le,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:ut,tag:Kt}=b.useContext(Ye.E_),rn=Et=>{gt==null||gt(!ye),pt==null||pt(Et)},It=ut("tag",Ce),[Zt,Qe]=E(It),Oe=Ie()(It,`${It}-checkable`,{[`${It}-checkable-checked`]:ye},Kt==null?void 0:Kt.className,nt,Qe);return Zt(b.createElement("span",Object.assign({},wt,{style:Object.assign(Object.assign({},Xe),Kt==null?void 0:Kt.style),className:Oe,onClick:rn})))},z=oe(45157);const ne=Le=>(0,z.Z)(Le,(Ce,Xe)=>{let{textColor:nt,lightBorderColor:ye,lightColor:gt,darkColor:pt}=Xe;return{[`${Le.componentCls}-${Ce}`]:{color:nt,background:gt,borderColor:ye,"&-inverse":{color:Le.colorTextLightSolid,background:pt,borderColor:pt},[`&${Le.componentCls}-borderless`]:{borderColor:"transparent"}}}});var re=(0,Te.b)(["Tag","preset"],Le=>{const Ce=Ve(Le);return ne(Ce)},le);function ie(Le){return typeof Le!="string"?Le:Le.charAt(0).toUpperCase()+Le.slice(1)}const ge=(Le,Ce,Xe)=>{const nt=ie(Xe);return{[`${Le.componentCls}-${Ce}`]:{color:Le[`color${Xe}`],background:Le[`color${nt}Bg`],borderColor:Le[`color${nt}Border`],[`&${Le.componentCls}-borderless`]:{borderColor:"transparent"}}}};var fe=(0,Te.b)(["Tag","status"],Le=>{const Ce=Ve(Le);return[ge(Ce,"success","Success"),ge(Ce,"processing","Info"),ge(Ce,"error","Error"),ge(Ce,"warning","Warning")]},le),Pe=function(Le,Ce){var Xe={};for(var nt in Le)Object.prototype.hasOwnProperty.call(Le,nt)&&Ce.indexOf(nt)<0&&(Xe[nt]=Le[nt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,nt=Object.getOwnPropertySymbols(Le);ye{const{prefixCls:Xe,className:nt,rootClassName:ye,style:gt,children:pt,icon:wt,color:ut,onClose:Kt,closeIcon:rn,closable:It,bordered:Zt=!0}=Le,Qe=Pe(Le,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:Oe,direction:Et,tag:Gt}=b.useContext(Ye.E_),[vt,Dt]=b.useState(!0);b.useEffect(()=>{"visible"in Qe&&Dt(Qe.visible)},[Qe.visible]);const Ae=(0,be.o2)(ut),dt=(0,be.yT)(ut),on=Ae||dt,ct=Object.assign(Object.assign({backgroundColor:ut&&!on?ut:void 0},Gt==null?void 0:Gt.style),gt),et=Oe("tag",Xe),[An,ot]=E(et),bt=Ie()(et,Gt==null?void 0:Gt.className,{[`${et}-${ut}`]:on,[`${et}-has-color`]:ut&&!on,[`${et}-hidden`]:!vt,[`${et}-rtl`]:Et==="rtl",[`${et}-borderless`]:!Zt},nt,ye,ot),Ht=kn=>{kn.stopPropagation(),Kt==null||Kt(kn),!kn.defaultPrevented&&Dt(!1)},[,ht]=(0,Ge.Z)(It,rn,kn=>kn===null?b.createElement(he.Z,{className:`${et}-close-icon`,onClick:Ht}):b.createElement("span",{className:`${et}-close-icon`,onClick:Ht},kn),null,!1),Mn=typeof Qe.onClick=="function"||pt&&pt.type==="a",Ot=wt||null,Un=Ot?b.createElement(b.Fragment,null,Ot,pt&&b.createElement("span",null,pt)):pt,bn=b.createElement("span",Object.assign({},Qe,{ref:Ce,className:bt,style:ct}),Un,ht,Ae&&b.createElement(re,{key:"preset",prefixCls:et}),dt&&b.createElement(fe,{key:"status",prefixCls:et}));return An(Mn?b.createElement(Fe.Z,{component:"Tag"},bn):bn)},Me=b.forwardRef(Ue);Me.CheckableTag=y;var lt=Me},98228:function(_e,xt,oe){"use strict";oe.d(xt,{default:function(){return Ar}});var b=oe(92310),he=oe.n(b),Be=oe(54476),Ie=oe(94480),be=oe(33885),Ge=oe(42978),Fe=oe(75931),Ye=oe(76190),ke=oe(77861),De=oe(17115),Te=oe(90782),We=oe(18929),Ve=oe(48736),le=oe(59301),E=function(At){var In=le.useRef({valueLabels:new Map});return le.useMemo(function(){var Rn=In.current.valueLabels,wn=new Map,xe=At.map(function(ft){var Bt,Vt=ft.value,Rt=(Bt=ft.label)!==null&&Bt!==void 0?Bt:Rn.get(Vt);return wn.set(Vt,Rt),(0,be.Z)((0,be.Z)({},ft),{},{label:Rt})});return In.current.valueLabels=wn,[xe]},[At])},a=function(At,In,Rn,wn){return le.useMemo(function(){var xe=At.map(function(Rt){var yt=Rt.value;return yt}),ft=In.map(function(Rt){var yt=Rt.value;return yt}),Bt=xe.filter(function(Rt){return!wn[Rt]});if(Rn){var Vt=(0,Te.S)(xe,!0,wn);xe=Vt.checkedKeys,ft=Vt.halfCheckedKeys}return[Array.from(new Set([].concat((0,Ie.Z)(Bt),(0,Ie.Z)(xe)))),ft]},[At,In,Rn,wn])},x=oe(71430),y=function(At,In){return le.useMemo(function(){var Rn=(0,x.I8)(At,{fieldNames:In,initWrapper:function(xe){return(0,be.Z)((0,be.Z)({},xe),{},{valueEntities:new Map})},processEntity:function(xe,ft){var Bt=xe.node[In.value];if(0)var Vt;ft.valueEntities.set(Bt,xe)}});return Rn},[At,In])},z=oe(20068),ne=oe(11592),re=function(){return null},ie=re,ge=["children","value"];function fe(At){return(0,ne.Z)(At).map(function(In){if(!le.isValidElement(In)||!In.type)return null;var Rn=In,wn=Rn.key,xe=Rn.props,ft=xe.children,Bt=xe.value,Vt=(0,Fe.Z)(xe,ge),Rt=(0,be.Z)({key:wn,value:Bt},Vt),yt=fe(ft);return yt.length&&(Rt.children=yt),Rt}).filter(function(In){return In})}function Pe(At){if(!At)return At;var In=(0,be.Z)({},At);return"props"in In||Object.defineProperty(In,"props",{get:function(){return(0,Ve.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),In}}),In}function Ue(At,In,Rn,wn,xe,ft){var Bt=null,Vt=null;function Rt(){function yt(hn){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return hn.map(function(He,Mt){var un="".concat(je,"-").concat(Mt),sn=He[ft.value],Xn=Rn.includes(sn),Qn=yt(He[ft.children]||[],un,Xn),gn=le.createElement(ie,He,Qn.map(function(Pa){return Pa.node}));if(In===sn&&(Bt=gn),Xn){var Yn={pos:un,node:gn,children:Qn};return Ke||Vt.push(Yn),Yn}return null}).filter(function(He){return He})}Vt||(Vt=[],yt(wn),Vt.sort(function(hn,je){var Ke=hn.node.props.value,He=je.node.props.value,Mt=Rn.indexOf(Ke),un=Rn.indexOf(He);return Mt-un}))}Object.defineProperty(At,"triggerNode",{get:function(){return(0,Ve.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Rt(),Bt}}),Object.defineProperty(At,"allCheckedNodes",{get:function(){return(0,Ve.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Rt(),xe?Vt:Vt.map(function(hn){var je=hn.node;return je})}})}var Me=function(At,In,Rn){var wn=Rn.treeNodeFilterProp,xe=Rn.filterTreeNode,ft=Rn.fieldNames,Bt=ft.children;return le.useMemo(function(){if(!In||xe===!1)return At;var Vt;if(typeof xe=="function")Vt=xe;else{var Rt=In.toUpperCase();Vt=function(je,Ke){var He=Ke[wn];return String(He).toUpperCase().includes(Rt)}}function yt(hn){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return hn.reduce(function(Ke,He){var Mt=He[Bt],un=je||Vt(In,Pe(He)),sn=yt(Mt||[],un);return(un||sn.length)&&Ke.push((0,be.Z)((0,be.Z)({},He),{},(0,z.Z)({isLeaf:void 0},Bt,sn))),Ke},[])}return yt(At)},[At,In,Bt,wn,xe])};function lt(At){var In=le.useRef();In.current=At;var Rn=le.useCallback(function(){return In.current.apply(In,arguments)},[]);return Rn}function Le(At,In){var Rn=In.id,wn=In.pId,xe=In.rootPId,ft={},Bt=[],Vt=At.map(function(Rt){var yt=(0,be.Z)({},Rt),hn=yt[Rn];return ft[hn]=yt,yt.key=yt.key||hn,yt});return Vt.forEach(function(Rt){var yt=Rt[wn],hn=ft[yt];hn&&(hn.children=hn.children||[],hn.children.push(Rt)),(yt===xe||!hn&&xe===null)&&Bt.push(Rt)}),Bt}function Ce(At,In,Rn){return le.useMemo(function(){return At?Rn?Le(At,(0,be.Z)({id:"id",pId:"pId",rootPId:null},Rn!==!0?Rn:{})):At:fe(In)},[In,Rn,At])}var Xe=le.createContext(null),nt=Xe,ye=oe(10228),gt=oe(80547),pt=oe(60091),wt=le.createContext(null),ut=wt;function Kt(At){return Array.isArray(At)?At:At!==void 0?[At]:[]}function rn(At){var In=At||{},Rn=In.label,wn=In.value,xe=In.children,ft=wn||"value";return{_title:Rn?[Rn]:["title","label"],value:ft,key:ft,children:xe||"children"}}function It(At){return!At||At.disabled||At.disableCheckbox||At.checkable===!1}function Zt(At,In){var Rn=[];function wn(xe){xe.forEach(function(ft){var Bt=ft[In.children];Bt&&(Rn.push(ft[In.value]),wn(Bt))})}return wn(At),Rn}function Qe(At){return At==null}var Oe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Et=function(In,Rn){var wn=(0,ke.lk)(),xe=wn.prefixCls,ft=wn.multiple,Bt=wn.searchValue,Vt=wn.toggleOpen,Rt=wn.open,yt=wn.notFoundContent,hn=le.useContext(ut),je=hn.virtual,Ke=hn.listHeight,He=hn.listItemHeight,Mt=hn.treeData,un=hn.fieldNames,sn=hn.onSelect,Xn=hn.dropdownMatchSelectWidth,Qn=hn.treeExpandAction,gn=le.useContext(nt),Yn=gn.checkable,Pa=gn.checkedKeys,zt=gn.halfCheckedKeys,qn=gn.treeExpandedKeys,Je=gn.treeDefaultExpandAll,Qt=gn.treeDefaultExpandedKeys,Cn=gn.onTreeExpand,tt=gn.treeIcon,Jn=gn.showTreeIcon,Nn=gn.switcherIcon,sa=gn.treeLine,Zn=gn.treeNodeFilterProp,za=gn.loadData,la=gn.treeLoadedKeys,_a=gn.treeMotion,$a=gn.onTreeLoad,sr=gn.keyEntities,Tt=le.useRef(),Da=(0,gt.Z)(function(){return Mt},[Rt,Mt],function(ka,nr){return nr[0]&&ka[1]!==nr[1]}),Wt=le.useState(null),xa=(0,Ge.Z)(Wt,2),va=xa[0],Yt=xa[1],xn=sr[va],ea=le.useMemo(function(){return Yn?{checked:Pa,halfChecked:zt}:null},[Yn,Pa,zt]);le.useEffect(function(){if(Rt&&!ft&&Pa.length){var ka;(ka=Tt.current)===null||ka===void 0||ka.scrollTo({key:Pa[0]}),Yt(Pa[0])}},[Rt]);var Pn=String(Bt).toLowerCase(),Ra=function(nr){return Pn?String(nr[Zn]).toLowerCase().includes(Pn):!1},ha=le.useState(Qt),Va=(0,Ge.Z)(ha,2),ur=Va[0],Sr=Va[1],Nr=le.useState(null),pr=(0,Ge.Z)(Nr,2),Yr=pr[0],Xa=pr[1],qa=le.useMemo(function(){return qn?(0,Ie.Z)(qn):Bt?Yr:ur},[ur,Yr,qn,Bt]);le.useEffect(function(){Bt&&Xa(Zt(Mt,un))},[Bt]);var fr=function(nr){Sr(nr),Xa(nr),Cn&&Cn(nr)},fa=function(nr){nr.preventDefault()},or=function(nr,mt){var it=mt.node;Yn&&It(it)||(sn(it.key,{selected:!Pa.includes(it.key)}),ft||Vt(!1))};if(le.useImperativeHandle(Rn,function(){var ka;return{scrollTo:(ka=Tt.current)===null||ka===void 0?void 0:ka.scrollTo,onKeyDown:function(mt){var it,Nt=mt.which;switch(Nt){case ye.Z.UP:case ye.Z.DOWN:case ye.Z.LEFT:case ye.Z.RIGHT:(it=Tt.current)===null||it===void 0||it.onKeyDown(mt);break;case ye.Z.ENTER:{if(xn){var dn=(xn==null?void 0:xn.node)||{},ia=dn.selectable,La=dn.value;ia!==!1&&or(null,{node:{key:va},selected:!Pa.includes(La)})}break}case ye.Z.ESC:Vt(!1)}},onKeyUp:function(){}}}),Da.length===0)return le.createElement("div",{role:"listbox",className:"".concat(xe,"-empty"),onMouseDown:fa},yt);var dr={fieldNames:un};return la&&(dr.loadedKeys=la),qa&&(dr.expandedKeys=qa),le.createElement("div",{onMouseDown:fa},xn&&Rt&&le.createElement("span",{style:Oe,"aria-live":"assertive"},xn.node.value),le.createElement(pt.Z,(0,Be.Z)({ref:Tt,focusable:!1,prefixCls:"".concat(xe,"-tree"),treeData:Da,height:Ke,itemHeight:He,virtual:je!==!1&&Xn!==!1,multiple:ft,icon:tt,showIcon:Jn,switcherIcon:Nn,showLine:sa,loadData:Bt?null:za,motion:_a,activeKey:va,checkable:Yn,checkStrictly:!0,checkedKeys:ea,selectedKeys:Yn?[]:Pa,defaultExpandAll:Je},dr,{onActiveChange:Yt,onSelect:or,onCheck:or,onExpand:fr,onLoad:$a,filterTreeNode:Ra,expandAction:Qn})))},Gt=le.forwardRef(Et);Gt.displayName="OptionList";var vt=Gt,Dt="SHOW_ALL",Ae="SHOW_PARENT",dt="SHOW_CHILD";function on(At,In,Rn,wn){var xe=new Set(At);return In===dt?At.filter(function(ft){var Bt=Rn[ft];return!(Bt&&Bt.children&&Bt.children.some(function(Vt){var Rt=Vt.node;return xe.has(Rt[wn.value])})&&Bt.children.every(function(Vt){var Rt=Vt.node;return It(Rt)||xe.has(Rt[wn.value])}))}):In===Ae?At.filter(function(ft){var Bt=Rn[ft],Vt=Bt?Bt.parent:null;return!(Vt&&!It(Vt.node)&&xe.has(Vt.key))}):At}function ct(At){var In=At.searchPlaceholder,Rn=At.treeCheckStrictly,wn=At.treeCheckable,xe=At.labelInValue,ft=At.value,Bt=At.multiple;warning(!In,"`searchPlaceholder` has been removed."),Rn&&xe===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(xe||Rn)&&warning(toArray(ft).every(function(Vt){return Vt&&_typeof(Vt)==="object"&&"value"in Vt}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Rn||Bt||wn?warning(!ft||Array.isArray(ft),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(ft),"`value` should not be array when `TreeSelect` is single mode.")}var et=null,An=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function ot(At){return!At||(0,Ye.Z)(At)!=="object"}var bt=le.forwardRef(function(At,In){var Rn=At.id,wn=At.prefixCls,xe=wn===void 0?"rc-tree-select":wn,ft=At.value,Bt=At.defaultValue,Vt=At.onChange,Rt=At.onSelect,yt=At.onDeselect,hn=At.searchValue,je=At.inputValue,Ke=At.onSearch,He=At.autoClearSearchValue,Mt=He===void 0?!0:He,un=At.filterTreeNode,sn=At.treeNodeFilterProp,Xn=sn===void 0?"value":sn,Qn=At.showCheckedStrategy,gn=At.treeNodeLabelProp,Yn=At.multiple,Pa=At.treeCheckable,zt=At.treeCheckStrictly,qn=At.labelInValue,Je=At.fieldNames,Qt=At.treeDataSimpleMode,Cn=At.treeData,tt=At.children,Jn=At.loadData,Nn=At.treeLoadedKeys,sa=At.onTreeLoad,Zn=At.treeDefaultExpandAll,za=At.treeExpandedKeys,la=At.treeDefaultExpandedKeys,_a=At.onTreeExpand,$a=At.treeExpandAction,sr=At.virtual,Tt=At.listHeight,Da=Tt===void 0?200:Tt,Wt=At.listItemHeight,xa=Wt===void 0?20:Wt,va=At.onDropdownVisibleChange,Yt=At.dropdownMatchSelectWidth,xn=Yt===void 0?!0:Yt,ea=At.treeLine,Pn=At.treeIcon,Ra=At.showTreeIcon,ha=At.switcherIcon,Va=At.treeMotion,ur=(0,Fe.Z)(At,An),Sr=(0,De.ZP)(Rn),Nr=Pa&&!zt,pr=Pa||zt,Yr=zt||qn,Xa=pr||Yn,qa=(0,We.Z)(Bt,{value:ft}),fr=(0,Ge.Z)(qa,2),fa=fr[0],or=fr[1],dr=le.useMemo(function(){return Pa?Qn||dt:Dt},[Qn,Pa]),ka=le.useMemo(function(){return rn(Je)},[JSON.stringify(Je)]),nr=(0,We.Z)("",{value:hn!==void 0?hn:je,postState:function(Ia){return Ia||""}}),mt=(0,Ge.Z)(nr,2),it=mt[0],Nt=mt[1],dn=function(Ia){Nt(Ia),Ke==null||Ke(Ia)},ia=Ce(Cn,tt,Qt),La=y(ia,ka),$t=La.keyEntities,Ba=La.valueEntities,Ea=le.useCallback(function(mn){var Ia=[],Ca=[];return mn.forEach(function(Ga){Ba.has(Ga)?Ca.push(Ga):Ia.push(Ga)}),{missingRawValues:Ia,existRawValues:Ca}},[Ba]),ar=Me(ia,it,{fieldNames:ka,treeNodeFilterProp:Xn,filterTreeNode:un}),Ta=le.useCallback(function(mn){if(mn){if(gn)return mn[gn];for(var Ia=ka._title,Ca=0;Ca{const{componentCls:In,treePrefixCls:Rn,colorBgElevated:wn}=At,xe=`.${Rn}`;return[{[`${In}-dropdown`]:[{padding:`${At.paddingXS}px ${At.paddingXS/2}px`},(0,ya.Yk)(Rn,(0,fn.TS)(At,{colorBgContainer:wn})),{[xe]:{borderRadius:0,[`${xe}-list-holder-inner`]:{alignItems:"stretch",[`${xe}-treenode`]:{[`${xe}-node-content-wrapper`]:{flex:"auto"}}}}},(0,St.C2)(`${Rn}-checkbox`,At),{"&-rtl":{direction:"rtl",[`${xe}-switcher${xe}-switcher_close`]:{[`${xe}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Ka(At,In){return(0,Fn.Z)("TreeSelect",Rn=>{const wn=(0,fn.TS)(Rn,{treePrefixCls:In});return[na(wn)]},ya.TM)(At)}var aa=function(At,In){var Rn={};for(var wn in At)Object.prototype.hasOwnProperty.call(At,wn)&&In.indexOf(wn)<0&&(Rn[wn]=At[wn]);if(At!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,wn=Object.getOwnPropertySymbols(At);xe{var Rn,{prefixCls:wn,size:xe,disabled:ft,bordered:Bt=!0,className:Vt,rootClassName:Rt,treeCheckable:yt,multiple:hn,listHeight:je=256,listItemHeight:Ke=26,placement:He,notFoundContent:Mt,switcherIcon:un,treeLine:sn,getPopupContainer:Xn,popupClassName:Qn,dropdownClassName:gn,treeIcon:Yn=!1,transitionName:Pa,choiceTransitionName:zt="",status:qn,treeExpandAction:Je,builtinPlacements:Qt,dropdownMatchSelectWidth:Cn,popupMatchSelectWidth:tt,allowClear:Jn}=At,Nn=aa(At,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear"]);const{getPopupContainer:sa,getPrefixCls:Zn,renderEmpty:za,direction:la,virtual:_a,popupMatchSelectWidth:$a,popupOverflow:sr}=le.useContext(qt.E_),Tt=Zn(),Da=Zn("select",wn),Wt=Zn("select-tree",wn),xa=Zn("tree-select",wn),{compactSize:va,compactItemClassnames:Yt}=(0,wa.ri)(Da,la),[xn,ea]=(0,cn.Z)(Da),[Pn]=Ka(xa,Wt),Ra=he()(Qn||gn,`${xa}-dropdown`,{[`${xa}-dropdown-rtl`]:la==="rtl"},Rt,ea),ha=!!(yt||hn),Va=(0,Oa.Z)(Nn.suffixIcon,Nn.showArrow),ur=(Rn=tt!=null?tt:Cn)!==null&&Rn!==void 0?Rn:$a,{status:Sr,hasFeedback:Nr,isFormItemInput:pr,feedbackIcon:Yr}=le.useContext(ln.aM),Xa=(0,kn.F)(Sr,qn),{suffixIcon:qa,removeIcon:fr,clearIcon:fa}=(0,pa.Z)(Object.assign(Object.assign({},Nn),{multiple:ha,showSuffixIcon:Va,hasFeedback:Nr,feedbackIcon:Yr,prefixCls:Da,componentName:"TreeSelect"})),or=Jn===!0?{clearIcon:fa}:Jn;let dr;Mt!==void 0?dr=Mt:dr=(za==null?void 0:za("Select"))||le.createElement(zn.Z,{componentName:"Select"});const ka=(0,Ot.Z)(Nn,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),nr=le.useMemo(()=>He!==void 0?He:la==="rtl"?"bottomRight":"bottomLeft",[He,la]),mt=(0,pn.Z)(Qt,sr),it=(0,ba.Z)(Ba=>{var Ea;return(Ea=xe!=null?xe:va)!==null&&Ea!==void 0?Ea:Ba}),Nt=le.useContext(ma.Z),dn=ft!=null?ft:Nt,ia=he()(!wn&&xa,{[`${Da}-lg`]:it==="large",[`${Da}-sm`]:it==="small",[`${Da}-rtl`]:la==="rtl",[`${Da}-borderless`]:!Bt,[`${Da}-in-form-item`]:pr},(0,kn.Z)(Da,Xa,Nr),Yt,Vt,Rt,ea),La=Ba=>le.createElement(_t.Z,{prefixCls:Wt,switcherIcon:un,treeNodeProps:Ba,showLine:sn}),$t=le.createElement(Mn,Object.assign({virtual:_a,disabled:dn},ka,{dropdownMatchSelectWidth:ur,builtinPlacements:mt,ref:In,prefixCls:Da,className:ia,listHeight:je,listItemHeight:Ke,treeCheckable:yt&&le.createElement("span",{className:`${Da}-tree-checkbox-inner`}),treeLine:!!sn,suffixIcon:qa,multiple:ha,placement:nr,removeIcon:fr,allowClear:or,switcherIcon:La,showTreeIcon:Yn,notFoundContent:dr,getPopupContainer:Xn||sa,treeMotion:null,dropdownClassName:Ra,choiceTransitionName:(0,bn.m)(Tt,"",zt),transitionName:(0,bn.m)(Tt,"slide-up",Pa),treeExpandAction:Je}));return xn(Pn($t))},Ma=le.forwardRef(Wn),Ja=(0,Un.Z)(Ma);Ma.TreeNode=ie,Ma.SHOW_ALL=Dt,Ma.SHOW_PARENT=Ae,Ma.SHOW_CHILD=dt,Ma._InternalPanelDoNotUseOrYouWillBeFired=Ja;var Ar=Ma},24334:function(_e,xt,oe){var b,he;(function(Be,Ie){_e.exports=Ie(Be)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof oe.g!="undefined"?oe.g:this,function(Be){"use strict";Be=Be||{};var Ie=Be.Base64,be="2.6.4",Ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fe=function(Xe){for(var nt={},ye=0,gt=Xe.length;ye>>6)+Ye(128|nt&63):Ye(224|nt>>>12&15)+Ye(128|nt>>>6&63)+Ye(128|nt&63)}else{var nt=65536+(Xe.charCodeAt(0)-55296)*1024+(Xe.charCodeAt(1)-56320);return Ye(240|nt>>>18&7)+Ye(128|nt>>>12&63)+Ye(128|nt>>>6&63)+Ye(128|nt&63)}},De=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Te=function(Xe){return Xe.replace(De,ke)},We=function(Xe){var nt=[0,2,1][Xe.length%3],ye=Xe.charCodeAt(0)<<16|(Xe.length>1?Xe.charCodeAt(1):0)<<8|(Xe.length>2?Xe.charCodeAt(2):0),gt=[Ge.charAt(ye>>>18),Ge.charAt(ye>>>12&63),nt>=2?"=":Ge.charAt(ye>>>6&63),nt>=1?"=":Ge.charAt(ye&63)];return gt.join("")},Ve=Be.btoa&&typeof Be.btoa=="function"?function(Xe){return Be.btoa(Xe)}:function(Xe){if(Xe.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Xe.replace(/[\s\S]{1,3}/g,We)},le=function(Xe){return Ve(Te(String(Xe)))},E=function(Xe){return Xe.replace(/[+\/]/g,function(nt){return nt=="+"?"-":"_"}).replace(/=/g,"")},a=function(Xe,nt){return nt?E(le(Xe)):le(Xe)},x=function(Xe){return a(Xe,!0)},y;Be.Uint8Array&&(y=function(Xe,nt){for(var ye="",gt=0,pt=Xe.length;gt>>18)+Ge.charAt(rn>>>12&63)+(typeof ut!="undefined"?Ge.charAt(rn>>>6&63):"=")+(typeof Kt!="undefined"?Ge.charAt(rn&63):"=")}return nt?E(ye):ye});var z=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ne=function(Xe){switch(Xe.length){case 4:var nt=(7&Xe.charCodeAt(0))<<18|(63&Xe.charCodeAt(1))<<12|(63&Xe.charCodeAt(2))<<6|63&Xe.charCodeAt(3),ye=nt-65536;return Ye((ye>>>10)+55296)+Ye((ye&1023)+56320);case 3:return Ye((15&Xe.charCodeAt(0))<<12|(63&Xe.charCodeAt(1))<<6|63&Xe.charCodeAt(2));default:return Ye((31&Xe.charCodeAt(0))<<6|63&Xe.charCodeAt(1))}},re=function(Xe){return Xe.replace(z,ne)},ie=function(Xe){var nt=Xe.length,ye=nt%4,gt=(nt>0?Fe[Xe.charAt(0)]<<18:0)|(nt>1?Fe[Xe.charAt(1)]<<12:0)|(nt>2?Fe[Xe.charAt(2)]<<6:0)|(nt>3?Fe[Xe.charAt(3)]:0),pt=[Ye(gt>>>16),Ye(gt>>>8&255),Ye(gt&255)];return pt.length-=[0,0,2,1][ye],pt.join("")},ge=Be.atob&&typeof Be.atob=="function"?function(Xe){return Be.atob(Xe)}:function(Xe){return Xe.replace(/\S{1,4}/g,ie)},fe=function(Xe){return ge(String(Xe).replace(/[^A-Za-z0-9\+\/]/g,""))},Pe=function(Xe){return re(ge(Xe))},Ue=function(Xe){return String(Xe).replace(/[-_]/g,function(nt){return nt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Me=function(Xe){return Pe(Ue(Xe))},lt;Be.Uint8Array&&(lt=function(Xe){return Uint8Array.from(fe(Ue(Xe)),function(nt){return nt.charCodeAt(0)})});var Le=function(){var Xe=Be.Base64;return Be.Base64=Ie,Xe};if(Be.Base64={VERSION:be,atob:fe,btoa:Ve,fromBase64:Me,toBase64:a,utob:Te,encode:a,encodeURI:x,btou:re,decode:Me,noConflict:Le,fromUint8Array:y,toUint8Array:lt},typeof Object.defineProperty=="function"){var Ce=function(Xe){return{value:Xe,enumerable:!1,writable:!0,configurable:!0}};Be.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ce(function(){return Me(this)})),Object.defineProperty(String.prototype,"toBase64",Ce(function(Xe){return a(this,Xe)})),Object.defineProperty(String.prototype,"toBase64URI",Ce(function(){return a(this,!0)}))}}return Be.Meteor&&(Base64=Be.Base64),_e.exports?_e.exports.Base64=Be.Base64:(b=[],he=function(){return Be.Base64}.apply(xt,b),he!==void 0&&(_e.exports=he)),{Base64:Be.Base64}})},11414:function(_e,xt,oe){"use strict";oe.d(xt,{Z5:function(){return qs},_l:function(){return Hd},bK:function(){return ns}});var b=oe(59301),he=oe(18773);function Be(ee,te){ee.prototype=Object.create(te.prototype),ee.prototype.constructor=ee,(0,he.Z)(ee,te)}var Ie=oe(54476),be=oe(59781),Ge=b.createContext(null),Fe=null;function Ye(ee){ee()}var ke=Ye,De=function(te){return ke=te},Te=function(){return ke};function We(){var ee=Te(),te=null,ae=null;return{clear:function(){te=null,ae=null},notify:function(){ee(function(){for(var ce=te;ce;)ce.callback(),ce=ce.next})},get:function(){for(var ce=[],me=te;me;)ce.push(me),me=me.next;return ce},subscribe:function(ce){var me=!0,ve=ae={callback:ce,next:null,prev:ae};return ve.prev?ve.prev.next=ve:te=ve,function(){!me||te===null||(me=!1,ve.next?ve.next.prev=ve.prev:ae=ve.prev,ve.prev?ve.prev.next=ve.next:te=ve.next)}}}}var Ve={notify:function(){},get:function(){return[]}};function le(ee,te){var ae,ue=Ve;function ce(Ne){return we(),ue.subscribe(Ne)}function me(){ue.notify()}function ve(){ze.onStateChange&&ze.onStateChange()}function pe(){return!!ae}function we(){ae||(ae=te?te.addNestedSub(ve):ee.subscribe(ve),ue=We())}function Ze(){ae&&(ae(),ae=void 0,ue.clear(),ue=Ve)}var ze={addNestedSub:ce,notifyNestedSubs:me,handleChangeWrapper:ve,isSubscribed:pe,trySubscribe:we,tryUnsubscribe:Ze,getListeners:function(){return ue}};return ze}var E=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect;function a(ee){var te=ee.store,ae=ee.context,ue=ee.children,ce=(0,b.useMemo)(function(){var pe=le(te);return{store:te,subscription:pe}},[te]),me=(0,b.useMemo)(function(){return te.getState()},[te]);E(function(){var pe=ce.subscription;return pe.onStateChange=pe.notifyNestedSubs,pe.trySubscribe(),me!==te.getState()&&pe.notifyNestedSubs(),function(){pe.tryUnsubscribe(),pe.onStateChange=null}},[ce,me]);var ve=ae||Ge;return b.createElement(ve.Provider,{value:ce},ue)}var x=a,y=oe(85377),z=oe(94266),ne=oe.n(z),re=oe(53410),ie=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],ge=["reactReduxForwardedRef"],fe=[],Pe=[null,null],Ue=function(te){try{return JSON.stringify(te)}catch(ae){return String(te)}};function Me(ee,te){var ae=ee[1];return[te.payload,ae+1]}function lt(ee,te,ae){E(function(){return ee.apply(void 0,te)},ae)}function Le(ee,te,ae,ue,ce,me,ve){ee.current=ue,te.current=ce,ae.current=!1,me.current&&(me.current=null,ve())}function Ce(ee,te,ae,ue,ce,me,ve,pe,we,Ze){if(ee){var ze=!1,Ne=null,Re=function(){if(!ze){var Ln=te.getState(),Hn,Kn;try{Hn=ue(Ln,ce.current)}catch(ua){Kn=ua,Ne=ua}Kn||(Ne=null),Hn===me.current?ve.current||we():(me.current=Hn,pe.current=Hn,ve.current=!0,Ze({type:"STORE_UPDATED",payload:{error:Kn}}))}};ae.onStateChange=Re,ae.trySubscribe(),Re();var qe=function(){if(ze=!0,ae.tryUnsubscribe(),ae.onStateChange=null,Ne)throw Ne};return qe}}var Xe=function(){return[null,0]};function nt(ee,te){te===void 0&&(te={});var ae=te,ue=ae.getDisplayName,ce=ue===void 0?function(rr){return"ConnectAdvanced("+rr+")"}:ue,me=ae.methodName,ve=me===void 0?"connectAdvanced":me,pe=ae.renderCountProp,we=pe===void 0?void 0:pe,Ze=ae.shouldHandleStateChanges,ze=Ze===void 0?!0:Ze,Ne=ae.storeKey,Re=Ne===void 0?"store":Ne,qe=ae.withRef,Pt=qe===void 0?!1:qe,Ln=ae.forwardRef,Hn=Ln===void 0?!1:Ln,Kn=ae.context,ua=Kn===void 0?Ge:Kn,Fa=(0,y.Z)(ae,ie);if(0)var Na;var lr=ua;return function(Er){var Xr=Er.displayName||Er.name||"Component",Fr=ce(Xr),qr=(0,Ie.Z)({},Fa,{getDisplayName:ce,methodName:ve,renderCountProp:we,shouldHandleStateChanges:ze,storeKey:Re,displayName:Fr,wrappedComponentName:Xr,WrappedComponent:Er}),oo=Fa.pure;function uo(so){return ee(so.dispatch,qr)}var jo=oo?b.useMemo:function(so){return so()};function Ro(so){var _o=(0,b.useMemo)(function(){var Vi=so.reactReduxForwardedRef,xu=(0,y.Z)(so,ge);return[so.context,Vi,xu]},[so]),zo=_o[0],Zi=_o[1],si=_o[2],$o=(0,b.useMemo)(function(){return zo&&zo.Consumer&&(0,re.isContextConsumer)(b.createElement(zo.Consumer,null))?zo:lr},[zo,lr]),Zo=(0,b.useContext)($o),di=!!so.store&&!!so.store.getState&&!!so.store.dispatch,Ol=!!Zo&&!!Zo.store,Wo=di?so.store:Zo.store,Wi=(0,b.useMemo)(function(){return uo(Wo)},[Wo]),Ml=(0,b.useMemo)(function(){if(!ze)return Pe;var Vi=le(Wo,di?null:Zo.subscription),xu=Vi.notifyNestedSubs.bind(Vi);return[Vi,xu]},[Wo,di,Zo]),Fi=Ml[0],Rl=Ml[1],Tl=(0,b.useMemo)(function(){return di?Zo:(0,Ie.Z)({},Zo,{subscription:Fi})},[di,Zo,Fi]),as=(0,b.useReducer)(Me,fe,Xe),Ud=as[0],kl=Ud[0],Kd=as[1];if(kl&&kl.error)throw kl.error;var rs=(0,b.useRef)(),Bu=(0,b.useRef)(si),Gl=(0,b.useRef)(),os=(0,b.useRef)(!1),bu=jo(function(){return Gl.current&&si===Bu.current?Gl.current:Wi(Wo.getState(),si)},[Wo,kl,si]);lt(Le,[Bu,rs,os,si,bu,Gl,Rl]),lt(Ce,[ze,Wo,Fi,Wi,Bu,rs,os,Gl,Rl,Kd],[Wo,Fi,Wi]);var Cu=(0,b.useMemo)(function(){return b.createElement(Er,(0,Ie.Z)({},bu,{ref:Zi}))},[Zi,Er,bu]),Yd=(0,b.useMemo)(function(){return ze?b.createElement($o.Provider,{value:Tl},Cu):Cu},[$o,Cu,Tl]);return Yd}var Bo=oo?b.memo(Ro):Ro;if(Bo.WrappedComponent=Er,Bo.displayName=Ro.displayName=Fr,Hn){var Ho=b.forwardRef(function(_o,zo){return b.createElement(Bo,(0,Ie.Z)({},_o,{reactReduxForwardedRef:zo}))});return Ho.displayName=Fr,Ho.WrappedComponent=Er,ne()(Ho,Er)}return ne()(Bo,Er)}}function ye(ee,te){return ee===te?ee!==0||te!==0||1/ee===1/te:ee!==ee&&te!==te}function gt(ee,te){if(ye(ee,te))return!0;if(typeof ee!="object"||ee===null||typeof te!="object"||te===null)return!1;var ae=Object.keys(ee),ue=Object.keys(te);if(ae.length!==ue.length)return!1;for(var ce=0;ce=0;ue--){var ce=te[ue](ee);if(ce)return ce}return function(me,ve){throw new Error("Invalid value of type "+typeof ee+" for "+ae+" argument when connecting component "+ve.wrappedComponentName+".")}}function ht(ee,te){return ee===te}function Mn(ee){var te=ee===void 0?{}:ee,ae=te.connectHOC,ue=ae===void 0?nt:ae,ce=te.mapStateToPropsFactories,me=ce===void 0?Gt:ce,ve=te.mapDispatchToPropsFactories,pe=ve===void 0?Qe:ve,we=te.mergePropsFactories,Ze=we===void 0?on:we,ze=te.selectorFactory,Ne=ze===void 0?ot:ze;return function(qe,Pt,Ln,Hn){Hn===void 0&&(Hn={});var Kn=Hn,ua=Kn.pure,Fa=ua===void 0?!0:ua,Na=Kn.areStatesEqual,lr=Na===void 0?ht:Na,rr=Kn.areOwnPropsEqual,Er=rr===void 0?gt:rr,Xr=Kn.areStatePropsEqual,Fr=Xr===void 0?gt:Xr,qr=Kn.areMergedPropsEqual,oo=qr===void 0?gt:qr,uo=(0,y.Z)(Kn,bt),jo=Ht(qe,me,"mapStateToProps"),Ro=Ht(Pt,pe,"mapDispatchToProps"),Bo=Ht(Ln,Ze,"mergeProps");return ue(Ne,(0,Ie.Z)({methodName:"connect",getDisplayName:function(so){return"Connect("+so+")"},shouldHandleStateChanges:!!qe,initMapStateToProps:jo,initMapDispatchToProps:Ro,initMergeProps:Bo,pure:Fa,areStatesEqual:lr,areOwnPropsEqual:Er,areStatePropsEqual:Fr,areMergedPropsEqual:oo},uo))}}var Ot=Mn();function Un(){var ee=useContext(ReactReduxContext);return ee}function bn(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(){var ue=te(),ce=ue.store;return ce}}var kn=null;function qt(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultStore:createStoreHook(ee);return function(){var ue=te();return ue.dispatch}}var ma=null,zn=function(te,ae){return te===ae};function ba(ee,te,ae,ue){var ce=useReducer(function(Pt){return Pt+1},0),me=ce[1],ve=useMemo(function(){return createSubscription(ae,ue)},[ae,ue]),pe=useRef(),we=useRef(),Ze=useRef(),ze=useRef(),Ne=ae.getState(),Re;try{if(ee!==we.current||Ne!==Ze.current||pe.current){var qe=ee(Ne);ze.current===void 0||!te(qe,ze.current)?Re=qe:Re=ze.current}else Re=ze.current}catch(Pt){throw pe.current&&(Pt.message+=` The error may be correlated with this previous error: `+pe.current.stack+` -`),Pt}return useIsomorphicLayoutEffect(function(){we.current=ee,Ze.current=Ne,ze.current=Re,pe.current=void 0}),useIsomorphicLayoutEffect(function(){function Pt(){try{var Dn=ae.getState();if(Dn===Ze.current)return;var Hn=we.current(Dn);if(te(Hn,ze.current))return;ze.current=Hn,Ze.current=Dn}catch(Kn){pe.current=Kn}me()}return ve.onStateChange=Pt,ve.trySubscribe(),Pt(),function(){return ve.tryUnsubscribe()}},[ae,ve]),Re}function ln(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(ue,ce){ce===void 0&&(ce=zn);var me=te(),ve=me.store,pe=me.subscription,we=ba(ue,ce,ve,pe);return useDebugValue(we),we}}var cn=null,pn=oe(4676);De(pn.unstable_batchedUpdates);function Oa(ee,te){if(ee.length!==te.length)return!1;for(var ae=0;ae");return ue.callbacks},ue.setCallbacks=function(pe){ue.callbacks=pe},ue}var ae=te.prototype;return ae.componentDidMount=function(){this.unbind=_n(window,[{eventName:"error",fn:this.onWindowError}])},ae.componentWillUnmount=function(){this.unbind()},ae.componentDidCatch=function(ce){if(ce instanceof bn){this.setState({});return}throw ce},ae.render=function(){return this.props.children(this.setCallbacks)},te}(b.Component),In=` +`)},sn=function(te){return[un(te),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Xn="__react-beautiful-dnd-disable-dev-warnings";function Qn(ee,te){var ae;je||typeof window!="undefined"&&window[Xn]||(ae=console)[ee].apply(ae,sn(te))}var gn=Qn.bind(null,"warn"),Yn=Qn.bind(null,"error");function Pa(){}function zt(ee,te){return(0,Ie.Z)({},ee,{},te)}function qn(ee,te,ae){var ue=te.map(function(ce){var me=zt(ae,ce.options);return ee.addEventListener(ce.eventName,ce.fn,me),function(){ee.removeEventListener(ce.eventName,ce.fn,me)}});return function(){ue.forEach(function(me){me()})}}var Je=!0,Qt="Invariant failed";function Cn(ee){this.message=ee}Cn.prototype.toString=function(){return this.message};function tt(ee,te){if(!ee)throw Je?new Cn(Qt):new Cn(Qt+": "+(te||""))}var Jn=function(ee){Be(te,ee);function te(){for(var ue,ce=arguments.length,me=new Array(ce),ve=0;ve");return ue.callbacks},ue.setCallbacks=function(pe){ue.callbacks=pe},ue}var ae=te.prototype;return ae.componentDidMount=function(){this.unbind=qn(window,[{eventName:"error",fn:this.onWindowError}])},ae.componentWillUnmount=function(){this.unbind()},ae.componentDidCatch=function(ce){if(ce instanceof Cn){this.setState({});return}throw ce},ae.render=function(){return this.props.children(this.setCallbacks)},te}(b.Component),Nn=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key @@ -320,7 +320,7 @@ The error may be correlated with this previous error: `:` The item has been dropped while not over a drop area. `+$a(te.source)+` - `},Tt={dragHandleUsageInstructions:In,onDragStart:Zn,onDragUpdate:_a,onDragEnd:sr},Da={x:0,y:0},Wt=function(te,ae){return{x:te.x+ae.x,y:te.y+ae.y}},xa=function(te,ae){return{x:te.x-ae.x,y:te.y-ae.y}},fa=function(te,ae){return te.x===ae.x&&te.y===ae.y},Yt=function(te){return{x:te.x!==0?-te.x:0,y:te.y!==0?-te.y:0}},Cn=function(te,ae,ue){var ce;return ue===void 0&&(ue=0),ce={},ce[te]=ae,ce[te==="x"?"y":"x"]=ue,ce},ea=function(te,ae){return Math.sqrt(Math.pow(ae.x-te.x,2)+Math.pow(ae.y-te.y,2))},Pn=function(te,ae){return Math.min.apply(Math,ae.map(function(ue){return ea(te,ue)}))},Ra=function(te){return function(ae){return{x:te(ae.x),y:te(ae.y)}}},pa=function(ee,te){var ae=na({top:Math.max(te.top,ee.top),right:Math.min(te.right,ee.right),bottom:Math.min(te.bottom,ee.bottom),left:Math.max(te.left,ee.left)});return ae.width<=0||ae.height<=0?null:ae},Va=function(te,ae){return{top:te.top+ae.y,left:te.left+ae.x,bottom:te.bottom+ae.y,right:te.right+ae.x}},ur=function(te){return[{x:te.left,y:te.top},{x:te.right,y:te.top},{x:te.left,y:te.bottom},{x:te.right,y:te.bottom}]},Sr={top:0,right:0,bottom:0,left:0},Nr=function(te,ae){return ae?Va(te,ae.scroll.diff.displacement):te},pr=function(te,ae,ue){if(ue&&ue.increasedBy){var ce;return(0,Ie.Z)({},te,(ce={},ce[ae.end]=te[ae.end]+ue.increasedBy[ae.line],ce))}return te},Yr=function(te,ae){return ae&&ae.shouldClipSubject?pa(ae.pageMarginBox,te):na(te)},Xa=function(ee){var te=ee.page,ae=ee.withPlaceholder,ue=ee.axis,ce=ee.frame,me=Nr(te.marginBox,ce),ve=pr(me,ue,ae),pe=Yr(ve,ce);return{page:te,withPlaceholder:ae,active:pe}},qa=function(ee,te){ee.frame||tt(!1);var ae=ee.frame,ue=xa(te,ae.scroll.initial),ce=Yt(ue),me=(0,Ie.Z)({},ae,{scroll:{initial:ae.scroll.initial,current:te,diff:{value:ue,displacement:ce},max:ae.scroll.max}}),ve=Xa({page:ee.subject.page,withPlaceholder:ee.subject.withPlaceholder,axis:ee.axis,frame:me}),pe=(0,Ie.Z)({},ee,{frame:me,subject:ve});return pe};function fr(ee){return Number.isInteger?Number.isInteger(ee):typeof ee=="number"&&isFinite(ee)&&Math.floor(ee)===ee}function ga(ee){return Object.values?Object.values(ee):Object.keys(ee).map(function(te){return ee[te]})}function or(ee,te){if(ee.findIndex)return ee.findIndex(te);for(var ae=0;aeee.bottom,Ze=ue.leftee.right,ze=we&&Ze;if(ze)return!0;var Ne=we&&ve||Ze&&me;return Ne}},Tr=function(ee){var te=Qa(ee.top,ee.bottom),ae=Qa(ee.left,ee.right);return function(ue){var ce=te(ue.top)&&te(ue.bottom)&&ae(ue.left)&&ae(ue.right);return ce}},er={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},cr={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Cr=function(ee){return function(te){var ae=Qa(te.top,te.bottom),ue=Qa(te.left,te.right);return function(ce){return ee===er?ae(ce.top)&&ae(ce.bottom):ue(ce.left)&&ue(ce.right)}}},Rn=function(te,ae){var ue=ae.frame?ae.frame.scroll.diff.displacement:Da;return Va(te,ue)},an=function(te,ae,ue){return ae.subject.active?ue(ae.subject.active)(te):!1},Lt=function(te,ae,ue){return ue(ae)(te)},se=function(te){var ae=te.target,ue=te.destination,ce=te.viewport,me=te.withDroppableDisplacement,ve=te.isVisibleThroughFrameFn,pe=me?Rn(ae,ue):ae;return an(pe,ue,ve)&&Lt(pe,ce,ve)},$e=function(te){return se((0,Ie.Z)({},te,{isVisibleThroughFrameFn:vr}))},st=function(te){return se((0,Ie.Z)({},te,{isVisibleThroughFrameFn:Tr}))},jt=function(te){return se((0,Ie.Z)({},te,{isVisibleThroughFrameFn:Cr(te.destination.axis)}))},at=function(te,ae,ue){if(typeof ue=="boolean")return ue;if(!ae)return!0;var ce=ae.invisible,me=ae.visible;if(ce[te])return!1;var ve=me[te];return ve?ve.shouldAnimate:!0};function tn(ee,te){var ae=ee.page.marginBox,ue={top:te.point.y,right:0,bottom:0,left:te.point.x};return na(Ka(ae,ue))}function Jt(ee){var te=ee.afterDragging,ae=ee.destination,ue=ee.displacedBy,ce=ee.viewport,me=ee.forceShouldAnimate,ve=ee.last;return te.reduce(function(we,Ze){var ze=tn(Ze,ue),Ne=Ze.descriptor.id;we.all.push(Ne);var Re=$e({target:ze,destination:ae,viewport:ce,withDroppableDisplacement:!0});if(!Re)return we.invisible[Ze.descriptor.id]=!0,we;var qe=at(Ne,ve,me),Pt={draggableId:Ne,shouldAnimate:qe};return we.visible[Ne]=Pt,we},{all:[],visible:{},invisible:{}})}function Ut(ee,te){if(!ee.length)return 0;var ae=ee[ee.length-1].descriptor.index;return te.inHomeList?ae:ae+1}function Xt(ee){var te=ee.insideDestination,ae=ee.inHomeList,ue=ee.displacedBy,ce=ee.destination,me=Ut(te,{inHomeList:ae});return{displaced:Ta,displacedBy:ue,at:{type:"REORDER",destination:{droppableId:ce.descriptor.id,index:me}}}}function ra(ee){var te=ee.draggable,ae=ee.insideDestination,ue=ee.destination,ce=ee.viewport,me=ee.displacedBy,ve=ee.last,pe=ee.index,we=ee.forceShouldAnimate,Ze=Sa(te,ue);if(pe==null)return Xt({insideDestination:ae,inHomeList:Ze,displacedBy:me,destination:ue});var ze=dr(ae,function(Dn){return Dn.descriptor.index===pe});if(!ze)return Xt({insideDestination:ae,inHomeList:Ze,displacedBy:me,destination:ue});var Ne=$t(te,ae),Re=ae.indexOf(ze),qe=Ne.slice(Re),Pt=Jt({afterDragging:qe,destination:ue,displacedBy:me,last:ve,viewport:ce.frame,forceShouldAnimate:we});return{displaced:Pt,displacedBy:me,at:{type:"REORDER",destination:{droppableId:ue.descriptor.id,index:pe}}}}function Ha(ee,te){return!!te.effected[ee]}var Za=function(ee){var te=ee.isMovingForward,ae=ee.destination,ue=ee.draggables,ce=ee.combine,me=ee.afterCritical;if(!ae.isCombineEnabled)return null;var ve=ce.draggableId,pe=ue[ve],we=pe.descriptor.index,Ze=Ha(ve,me);return Ze?te?we:we-1:te?we+1:we},mn=function(ee){var te=ee.isMovingForward,ae=ee.isInHomeList,ue=ee.insideDestination,ce=ee.location;if(!ue.length)return null;var me=ce.index,ve=te?me+1:me-1,pe=ue[0].descriptor.index,we=ue[ue.length-1].descriptor.index,Ze=ae?we:we+1;return veZe?null:ve},Ia=function(ee){var te=ee.isMovingForward,ae=ee.isInHomeList,ue=ee.draggable,ce=ee.draggables,me=ee.destination,ve=ee.insideDestination,pe=ee.previousImpact,we=ee.viewport,Ze=ee.afterCritical,ze=pe.at;if(ze||tt(!1),ze.type==="REORDER"){var Ne=mn({isMovingForward:te,isInHomeList:ae,location:ze.destination,insideDestination:ve});return Ne==null?null:ra({draggable:ue,insideDestination:ve,destination:me,viewport:we,last:pe.displaced,displacedBy:pe.displacedBy,index:Ne})}var Re=Za({isMovingForward:te,destination:me,displaced:pe.displaced,draggables:ce,combine:ze.combine,afterCritical:Ze});return Re==null?null:ra({draggable:ue,insideDestination:ve,destination:me,viewport:we,last:pe.displaced,displacedBy:pe.displacedBy,index:Re})},Ca=function(ee){var te=ee.displaced,ae=ee.afterCritical,ue=ee.combineWith,ce=ee.displacedBy,me=!!(te.visible[ue]||te.invisible[ue]);return Ha(ue,ae)?me?Da:Yt(ce.point):me?ce.point:Da},Ga=function(ee){var te=ee.afterCritical,ae=ee.impact,ue=ee.draggables,ce=La(ae);ce||tt(!1);var me=ce.draggableId,ve=ue[me].page.borderBox.center,pe=Ca({displaced:ae.displaced,afterCritical:te,combineWith:me,displacedBy:ae.displacedBy});return Wt(ve,pe)},Ir=function(te,ae){return ae.margin[te.start]+ae.borderBox[te.size]/2},Vr=function(te,ae){return ae.margin[te.end]+ae.borderBox[te.size]/2},Or=function(te,ae,ue){return ae[te.crossAxisStart]+ue.margin[te.crossAxisStart]+ue.borderBox[te.crossAxisSize]/2},Zr=function(te){var ae=te.axis,ue=te.moveRelativeTo,ce=te.isMoving;return Cn(ae.line,ue.marginBox[ae.end]+Ir(ae,ce),Or(ae,ue.marginBox,ce))},kr=function(te){var ae=te.axis,ue=te.moveRelativeTo,ce=te.isMoving;return Cn(ae.line,ue.marginBox[ae.start]-Vr(ae,ce),Or(ae,ue.marginBox,ce))},Hr=function(te){var ae=te.axis,ue=te.moveInto,ce=te.isMoving;return Cn(ae.line,ue.contentBox[ae.start]+Ir(ae,ce),Or(ae,ue.contentBox,ce))},bo=function(ee){var te=ee.impact,ae=ee.draggable,ue=ee.draggables,ce=ee.droppable,me=ee.afterCritical,ve=dn(ce.descriptor.id,ue),pe=ae.page,we=ce.axis;if(!ve.length)return Hr({axis:we,moveInto:ce.page,isMoving:pe});var Ze=te.displaced,ze=te.displacedBy,Ne=Ze.all[0];if(Ne){var Re=ue[Ne];if(Ha(Ne,me))return kr({axis:we,moveRelativeTo:Re.page,isMoving:pe});var qe=At(Re.page,ze.point);return kr({axis:we,moveRelativeTo:qe,isMoving:pe})}var Pt=ve[ve.length-1];if(Pt.descriptor.id===ae.descriptor.id)return pe.borderBox.center;if(Ha(Pt.descriptor.id,me)){var Dn=At(Pt.page,Yt(me.displacedBy.point));return Zr({axis:we,moveRelativeTo:Dn,isMoving:pe})}return Zr({axis:we,moveRelativeTo:Pt.page,isMoving:pe})},Po=function(ee,te){var ae=ee.frame;return ae?Wt(te,ae.scroll.diff.displacement):te},po=function(te){var ae=te.impact,ue=te.draggable,ce=te.droppable,me=te.draggables,ve=te.afterCritical,pe=ue.page.borderBox.center,we=ae.at;return!ce||!we?pe:we.type==="REORDER"?bo({impact:ae,draggable:ue,draggables:me,droppable:ce,afterCritical:ve}):Ga({impact:ae,draggables:me,afterCritical:ve})},Eo=function(ee){var te=po(ee),ae=ee.droppable,ue=ae?Po(ae,te):te;return ue},Co=function(ee,te){var ae=xa(te,ee.scroll.initial),ue=Yt(ae),ce=na({top:te.y,bottom:te.y+ee.frame.height,left:te.x,right:te.x+ee.frame.width}),me={frame:ce,scroll:{initial:ee.scroll.initial,max:ee.scroll.max,current:te,diff:{value:ae,displacement:ue}}};return me};function Gr(ee,te){return ee.map(function(ae){return te[ae]})}function xo(ee,te){for(var ae=0;ae1?ze.sort(function(Ne,Re){return ao(Ne)[pe.start]-ao(Re)[pe.start]})[0]:Ze.sort(function(Ne,Re){var qe=Pn(ae,ur(ao(Ne))),Pt=Pn(ae,ur(ao(Re)));return qe!==Pt?qe-Pt:ao(Ne)[pe.start]-ao(Re)[pe.start]})[0]},Uo=function(te,ae){var ue=te.page.borderBox.center;return Ha(te.descriptor.id,ae)?xa(ue,ae.displacedBy.point):ue},Zl=function(te,ae){var ue=te.page.borderBox;return Ha(te.descriptor.id,ae)?Va(ue,Yt(ae.displacedBy.point)):ue},wu=function(ee){var te=ee.pageBorderBoxCenter,ae=ee.viewport,ue=ee.destination,ce=ee.insideDestination,me=ee.afterCritical,ve=ce.filter(function(pe){return st({target:Zl(pe,me),destination:ue,viewport:ae.frame,withDroppableDisplacement:!0})}).sort(function(pe,we){var Ze=ea(te,Po(ue,Uo(pe,me))),ze=ea(te,Po(ue,Uo(we,me)));return Zete.left&&ee.topte.top}function Ql(ee){var te=ee.pageBorderBox,ae=ee.draggable,ue=ee.candidates,ce=ae.page.borderBox.center,me=ue.map(function(ve){var pe=ve.axis,we=Cn(ve.axis.line,te.center[pe.line],ve.page.borderBox.center[pe.crossAxisLine]);return{id:ve.descriptor.id,distance:ea(ce,we)}}).sort(function(ve,pe){return pe.distance-ve.distance});return me[0]?me[0].id:null}function ta(ee){var te=ee.pageBorderBox,ae=ee.draggable,ue=ee.droppables,ce=it(ue).filter(function(me){if(!me.isEnabled)return!1;var ve=me.subject.active;if(!ve||!Du(te,ve))return!1;if(Bi(ve)(te.center))return!0;var pe=me.axis,we=ve.center[pe.crossAxisLine],Ze=te[pe.crossAxisStart],ze=te[pe.crossAxisEnd],Ne=Qa(ve[pe.crossAxisStart],ve[pe.crossAxisEnd]),Re=Ne(Ze),qe=Ne(ze);return!Re&&!qe?!0:Re?Zewe});return ce.length?ce.length===1?ce[0].descriptor.id:Ql({pageBorderBox:te,draggable:ae,candidates:ce}):null}var Xi=function(te,ae){return na(Va(te,ae))},Ul=function(ee,te){var ae=ee.frame;return ae?Xi(te,ae.scroll.diff.value):te};function Nn(ee){var te=ee.displaced,ae=ee.id;return!!(te.visible[ae]||te.invisible[ae])}function gi(ee){var te=ee.draggable,ae=ee.closest,ue=ee.inHomeList;return ae?ue&&ae.descriptor.index>te.descriptor.index?ae.descriptor.index-1:ae.descriptor.index:null}var Kl=function(ee){var te=ee.pageBorderBoxWithDroppableScroll,ae=ee.draggable,ue=ee.destination,ce=ee.insideDestination,me=ee.last,ve=ee.viewport,pe=ee.afterCritical,we=ue.axis,Ze=ei(ue.axis,ae.displaceBy),ze=Ze.value,Ne=te[we.start],Re=te[we.end],qe=$t(ae,ce),Pt=dr(qe,function(Hn){var Kn=Hn.descriptor.id,ua=Hn.page.borderBox.center[we.line],ya=Ha(Kn,pe),Na=Nn({displaced:me,id:Kn});return ya?Na?Re<=ua:NeKn[pe.start]+ya&&NeKn[pe.start]-Ze+ya&&zeKn[pe.start]+Ze+ya&&NeKn[pe.start]+ya&&ze=Ee)return de;var me=ce/Ee,ve=Ri+Se*me,pe=ue==="CANCEL"?ve*rt:ve;return Number(pe.toFixed(2))},$n=function(ee){var te=ee.impact,ae=ee.draggable,ue=ee.dimensions,ce=ee.viewport,me=ee.afterCritical,ve=ue.draggables,pe=ue.droppables,we=fo(te),Ze=we?pe[we]:null,ze=pe[ae.descriptor.droppableId],Ne=_i({impact:te,draggable:ae,draggables:ve,afterCritical:me,droppable:Ze||ze,viewport:ce}),Re=xa(Ne,ae.client.borderBox.center);return Re},oa=function(ee){var te=ee.draggables,ae=ee.reason,ue=ee.lastImpact,ce=ee.home,me=ee.viewport,ve=ee.onLiftImpact;if(!ue.at||ae!=="DROP"){var pe=Ci({draggables:te,impact:ve,destination:ce,viewport:me,forceShouldAnimate:!0});return{impact:pe,didDropInsideDroppable:!1}}if(ue.at.type==="REORDER")return{impact:ue,didDropInsideDroppable:!0};var we=(0,Ie.Z)({},ue,{displaced:Ta});return{impact:we,didDropInsideDroppable:!0}},En=function(ee){var te=ee.getState,ae=ee.dispatch;return function(ue){return function(ce){if(ce.type!=="DROP"){ue(ce);return}var me=te(),ve=ce.payload.reason;if(me.phase==="COLLECTING"){ae(Wa({reason:ve}));return}if(me.phase!=="IDLE"){var pe=me.phase==="DROP_PENDING"&&me.isWaiting;pe&&tt(!1),me.phase==="DRAGGING"||me.phase==="DROP_PENDING"||tt(!1);var we=me.critical,Ze=me.dimensions,ze=Ze.draggables[me.critical.draggable.id],Ne=oa({reason:ve,lastImpact:me.impact,afterCritical:me.afterCritical,onLiftImpact:me.onLiftImpact,home:me.dimensions.droppables[me.critical.droppable.id],viewport:me.viewport,draggables:me.dimensions.draggables}),Re=Ne.impact,qe=Ne.didDropInsideDroppable,Pt=qe?ia(Re):null,Dn=qe?La(Re):null,Hn={index:we.draggable.index,droppableId:we.droppable.id},Kn={draggableId:ze.descriptor.id,type:ze.descriptor.type,source:Hn,reason:ve,mode:me.movementMode,destination:Pt,combine:Dn},ua=$n({impact:Re,draggable:ze,dimensions:Ze,viewport:me.viewport,afterCritical:me.afterCritical}),ya={critical:me.critical,afterCritical:me.afterCritical,result:Kn,impact:Re},Na=!fa(me.current.client.offset,ua)||!!Kn.combine;if(!Na){ae(Ii({completed:ya}));return}var lr=yn({current:me.current.client.offset,destination:ua,reason:ve}),rr={newHomeClientOffset:ua,dropDuration:lr,completed:ya};ae(ll(rr))}}}},bt=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function kt(ee){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ae){ae.target!==window&&ae.target!==window.document||ee()}}}function Tn(ee){var te=ee.onWindowScroll;function ae(){te(bt())}var ue=hn(ae),ce=kt(ue),me=ha;function ve(){return me!==ha}function pe(){ve()&&tt(!1),me=_n(window,[ce])}function we(){ve()||tt(!1),ue.cancel(),me(),me=ha}return{start:pe,stop:we,isActive:ve}}var Dt=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},en=function(ee){var te=Tn({onWindowScroll:function(ue){ee.dispatch(il({newScroll:ue}))}});return function(ae){return function(ue){!te.isActive()&&ue.type==="INITIAL_PUBLISH"&&te.start(),te.isActive()&&Dt(ue)&&te.stop(),ae(ue)}}},qn=function(ee){var te=!1,ae=!1,ue=setTimeout(function(){ae=!0}),ce=function(ve){te||ae||(te=!0,ee(ve),clearTimeout(ue))};return ce.wasCalled=function(){return te},ce},ma=function(){var ee=[],te=function(me){var ve=or(ee,function(Ze){return Ze.timerId===me});ve===-1&&tt(!1);var pe=ee.splice(ve,1),we=pe[0];we.callback()},ae=function(me){var ve=setTimeout(function(){return te(ve)}),pe={timerId:ve,callback:me};ee.push(pe)},ue=function(){if(ee.length){var me=[].concat(ee);ee.length=0,me.forEach(function(ve){clearTimeout(ve.timerId),ve.callback()})}};return{add:ae,flush:ue}},wn=function(te,ae){return te==null&&ae==null?!0:te==null||ae==null?!1:te.droppableId===ae.droppableId&&te.index===ae.index},Ba=function(te,ae){return te==null&&ae==null?!0:te==null||ae==null?!1:te.draggableId===ae.draggableId&&te.droppableId===ae.droppableId},Aa=function(te,ae){if(te===ae)return!0;var ue=te.draggable.id===ae.draggable.id&&te.draggable.droppableId===ae.draggable.droppableId&&te.draggable.type===ae.draggable.type&&te.draggable.index===ae.draggable.index,ce=te.droppable.id===ae.droppable.id&&te.droppable.type===ae.droppable.type;return ue&&ce},vn=function(te,ae){ai(),ae(),mi()},yr=function(te,ae){return{draggableId:te.draggable.id,type:te.droppable.type,source:{droppableId:te.droppable.id,index:te.draggable.index},mode:ae}},Sn=function(te,ae,ue,ce){if(!te){ue(ce(ae));return}var me=qn(ue),ve={announce:me};te(ae,ve),me.wasCalled()||ue(ce(ae))},ja=function(ee,te){var ae=ma(),ue=null,ce=function(Re,qe){ue&&tt(!1),vn("onBeforeCapture",function(){var Pt=ee().onBeforeCapture;if(Pt){var Dn={draggableId:Re,mode:qe};Pt(Dn)}})},me=function(Re,qe){ue&&tt(!1),vn("onBeforeDragStart",function(){var Pt=ee().onBeforeDragStart;Pt&&Pt(yr(Re,qe))})},ve=function(Re,qe){ue&&tt(!1);var Pt=yr(Re,qe);ue={mode:qe,lastCritical:Re,lastLocation:Pt.source,lastCombine:null},ae.add(function(){vn("onDragStart",function(){return Sn(ee().onDragStart,Pt,te,Tt.onDragStart)})})},pe=function(Re,qe){var Pt=ia(qe),Dn=La(qe);ue||tt(!1);var Hn=!Aa(Re,ue.lastCritical);Hn&&(ue.lastCritical=Re);var Kn=!wn(ue.lastLocation,Pt);Kn&&(ue.lastLocation=Pt);var ua=!Ba(ue.lastCombine,Dn);if(ua&&(ue.lastCombine=Dn),!(!Hn&&!Kn&&!ua)){var ya=(0,Ie.Z)({},yr(Re,ue.mode),{combine:Dn,destination:Pt});ae.add(function(){vn("onDragUpdate",function(){return Sn(ee().onDragUpdate,ya,te,Tt.onDragUpdate)})})}},we=function(){ue||tt(!1),ae.flush()},Ze=function(Re){ue||tt(!1),ue=null,vn("onDragEnd",function(){return Sn(ee().onDragEnd,Re,te,Tt.onDragEnd)})},ze=function(){if(ue){var Re=(0,Ie.Z)({},yr(ue.lastCritical,ue.mode),{combine:null,destination:null,reason:"CANCEL"});Ze(Re)}};return{beforeCapture:ce,beforeStart:me,start:ve,update:pe,flush:we,drop:Ze,abort:ze}},nn=function(ee,te){var ae=ja(ee,te);return function(ue){return function(ce){return function(me){if(me.type==="BEFORE_INITIAL_CAPTURE"){ae.beforeCapture(me.payload.draggableId,me.payload.movementMode);return}if(me.type==="INITIAL_PUBLISH"){var ve=me.payload.critical;ae.beforeStart(ve,me.payload.movementMode),ce(me),ae.start(ve,me.payload.movementMode);return}if(me.type==="DROP_COMPLETE"){var pe=me.payload.completed.result;ae.flush(),ce(me),ae.drop(pe);return}if(ce(me),me.type==="FLUSH"){ae.abort();return}var we=ue.getState();we.phase==="DRAGGING"&&ae.update(we.critical,we.impact)}}}},gr=function(ee){return function(te){return function(ae){if(ae.type!=="DROP_ANIMATION_FINISHED"){te(ae);return}var ue=ee.getState();ue.phase!=="DROP_ANIMATING"&&tt(!1),ee.dispatch(Ii({completed:ue.completed}))}}},Dr=function(ee){var te=null,ae=null;function ue(){ae&&(cancelAnimationFrame(ae),ae=null),te&&(te(),te=null)}return function(ce){return function(me){if((me.type==="FLUSH"||me.type==="DROP_COMPLETE"||me.type==="DROP_ANIMATION_FINISHED")&&ue(),ce(me),me.type==="DROP_ANIMATE"){var ve={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var we=ee.getState();we.phase==="DROP_ANIMATING"&&ee.dispatch(sl())}};ae=requestAnimationFrame(function(){ae=null,te=_n(window,[ve])})}}}},Br=function(ee){return function(){return function(te){return function(ae){(ae.type==="DROP_COMPLETE"||ae.type==="FLUSH"||ae.type==="DROP_ANIMATE")&&ee.stopPublishing(),te(ae)}}}},Pr=function(ee){var te=!1;return function(){return function(ae){return function(ue){if(ue.type==="INITIAL_PUBLISH"){te=!0,ee.tryRecordFocus(ue.payload.critical.draggable.id),ae(ue),ee.tryRestoreFocusRecorded();return}if(ae(ue),!!te){if(ue.type==="FLUSH"){te=!1,ee.tryRestoreFocusRecorded();return}if(ue.type==="DROP_COMPLETE"){te=!1;var ce=ue.payload.completed.result;ce.combine&&ee.tryShiftRecord(ce.draggableId,ce.combine.draggableId),ee.tryRestoreFocusRecorded()}}}}}},Vn=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},ir=function(ee){return function(te){return function(ae){return function(ue){if(Vn(ue)){ee.stop(),ae(ue);return}if(ue.type==="INITIAL_PUBLISH"){ae(ue);var ce=te.getState();ce.phase!=="DRAGGING"&&tt(!1),ee.start(ce);return}ae(ue),ee.scroll(te.getState())}}}},jr=function(ee){return function(te){return function(ae){if(te(ae),ae.type==="PUBLISH_WHILE_DRAGGING"){var ue=ee.getState();ue.phase==="DROP_PENDING"&&(ue.isWaiting||ee.dispatch(ul({reason:ue.reason})))}}}},Kr=Ce.qC,_r=function(ee){var te=ee.dimensionMarshal,ae=ee.focusMarshal,ue=ee.styleMarshal,ce=ee.getResponders,me=ee.announce,ve=ee.autoScroller;return(0,Ce.MT)($l,Kr((0,Ce.md)(lu(ue),Br(te),dl(te),En,gr,Dr,jr,ir(ve),en,Pr(ae),nn(ce,me))))},hr=function(){return{additions:{},removals:{},modified:{}}};function xr(ee){var te=ee.registry,ae=ee.callbacks,ue=hr(),ce=null,me=function(){ce||(ae.collectionStarting(),ce=requestAnimationFrame(function(){ce=null,ai();var ze=ue,Ne=ze.additions,Re=ze.removals,qe=ze.modified,Pt=Object.keys(Ne).map(function(Kn){return te.draggable.getById(Kn).getDimension(Da)}).sort(function(Kn,ua){return Kn.descriptor.index-ua.descriptor.index}),Dn=Object.keys(qe).map(function(Kn){var ua=te.droppable.getById(Kn),ya=ua.callbacks.getScrollWhileDragging();return{droppableId:Kn,scroll:ya}}),Hn={additions:Pt,removals:Object.keys(Re),modified:Dn};ue=hr(),mi(),ae.publish(Hn)}))},ve=function(ze){var Ne=ze.descriptor.id;ue.additions[Ne]=ze,ue.modified[ze.descriptor.droppableId]=!0,ue.removals[Ne]&&delete ue.removals[Ne],me()},pe=function(ze){var Ne=ze.descriptor;ue.removals[Ne.id]=!0,ue.modified[Ne.droppableId]=!0,ue.additions[Ne.id]&&delete ue.additions[Ne.id],me()},we=function(){ce&&(cancelAnimationFrame(ce),ce=null,ue=hr())};return{add:ve,remove:pe,stop:we}}var Mr=function(ee){var te=ee.scrollHeight,ae=ee.scrollWidth,ue=ee.height,ce=ee.width,me=xa({x:ae,y:te},{x:ce,y:ue}),ve={x:Math.max(0,me.x),y:Math.max(0,me.y)};return ve},tr=function(){var ee=document.documentElement;return ee||tt(!1),ee},Lr=function(){var ee=tr(),te=Mr({scrollHeight:ee.scrollHeight,scrollWidth:ee.scrollWidth,width:ee.clientWidth,height:ee.clientHeight});return te},Rr=function(){var ee=bt(),te=Lr(),ae=ee.y,ue=ee.x,ce=tr(),me=ce.clientWidth,ve=ce.clientHeight,pe=ue+me,we=ae+ve,Ze=na({top:ae,left:ue,right:pe,bottom:we}),ze={frame:Ze,scroll:{initial:ee,current:ee,max:te,diff:{value:Da,displacement:Da}}};return ze},Qr=function(ee){var te=ee.critical,ae=ee.scrollOptions,ue=ee.registry;ai();var ce=Rr(),me=ce.scroll.current,ve=te.droppable,pe=ue.droppable.getAllByType(ve.type).map(function(Ne){return Ne.callbacks.getDimensionAndWatchScroll(me,ae)}),we=ue.draggable.getAllByType(te.draggable.type).map(function(Ne){return Ne.getDimension(me)}),Ze={draggables:mt(we),droppables:nr(pe)};mi();var ze={dimensions:Ze,critical:te,viewport:ce};return ze};function $r(ee,te,ae){if(ae.descriptor.id===te.id||ae.descriptor.type!==te.type)return!1;var ue=ee.droppable.getById(ae.descriptor.droppableId);return ue.descriptor.mode==="virtual"}var mo=function(ee,te){var ae=null,ue=xr({callbacks:{publish:te.publishWhileDragging,collectionStarting:te.collectionStarting},registry:ee}),ce=function(qe,Pt){ee.droppable.exists(qe)||tt(!1),ae&&te.updateDroppableIsEnabled({id:qe,isEnabled:Pt})},me=function(qe,Pt){ae&&(ee.droppable.exists(qe)||tt(!1),te.updateDroppableIsCombineEnabled({id:qe,isCombineEnabled:Pt}))},ve=function(qe,Pt){ae&&(ee.droppable.exists(qe)||tt(!1),te.updateDroppableScroll({id:qe,newScroll:Pt}))},pe=function(qe,Pt){ae&&ee.droppable.getById(qe).callbacks.scroll(Pt)},we=function(){if(ae){ue.stop();var qe=ae.critical.droppable;ee.droppable.getAllByType(qe.type).forEach(function(Pt){return Pt.callbacks.dragStopped()}),ae.unsubscribe(),ae=null}},Ze=function(qe){ae||tt(!1);var Pt=ae.critical.draggable;qe.type==="ADDITION"&&$r(ee,Pt,qe.value)&&ue.add(qe.value),qe.type==="REMOVAL"&&$r(ee,Pt,qe.value)&&ue.remove(qe.value)},ze=function(qe){ae&&tt(!1);var Pt=ee.draggable.getById(qe.draggableId),Dn=ee.droppable.getById(Pt.descriptor.droppableId),Hn={draggable:Pt.descriptor,droppable:Dn.descriptor},Kn=ee.subscribe(Ze);return ae={critical:Hn,unsubscribe:Kn},Qr({critical:Hn,registry:ee,scrollOptions:qe.scrollOptions})},Ne={updateDroppableIsEnabled:ce,updateDroppableIsCombineEnabled:me,scrollDroppable:pe,updateDroppableScroll:ve,startPublishing:ze,stopPublishing:we};return Ne},lo=function(ee,te){return ee.phase==="IDLE"?!0:ee.phase!=="DROP_ANIMATING"||ee.completed.result.draggableId===te?!1:ee.completed.result.reason==="DROP"},Ao=function(ee){window.scrollBy(ee.x,ee.y)},So=Rt(function(ee){return it(ee).filter(function(te){return!(!te.isEnabled||!te.frame)})}),vi=function(te,ae){var ue=dr(So(ae),function(ce){return ce.frame||tt(!1),Bi(ce.frame.pageMarginBox)(te)});return ue},ri=function(ee){var te=ee.center,ae=ee.destination,ue=ee.droppables;if(ae){var ce=ue[ae];return ce.frame?ce:null}var me=vi(te,ue);return me},Io={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(te){return Math.pow(te,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},cl=function(ee,te){var ae=ee[te.size]*Io.startFromPercentage,ue=ee[te.size]*Io.maxScrollAtPercentage,ce={startScrollingFrom:ae,maxScrollValueAt:ue};return ce},uu=function(ee){var te=ee.startOfRange,ae=ee.endOfRange,ue=ee.current,ce=ae-te;if(ce===0)return 0;var me=ue-te,ve=me/ce;return ve},gl=1,su=function(ee,te){if(ee>te.startScrollingFrom)return 0;if(ee<=te.maxScrollValueAt)return Io.maxPixelScroll;if(ee===te.startScrollingFrom)return gl;var ae=uu({startOfRange:te.maxScrollValueAt,endOfRange:te.startScrollingFrom,current:ee}),ue=1-ae,ce=Io.maxPixelScroll*Io.ease(ue);return Math.ceil(ce)},Ti=Io.durationDampening.accelerateAt,Jo=Io.durationDampening.stopDampeningAt,du=function(ee,te){var ae=te,ue=Jo,ce=Date.now(),me=ce-ae;if(me>=Jo)return ee;if(mete.height,me=ae.width>te.width;return!me&&!ce?ue:me&&ce?null:{x:me?0:ue.x,y:ce?0:ue.y}},pi=Ra(function(ee){return ee===0?0:ee}),ii=function(ee){var te=ee.dragStartTime,ae=ee.container,ue=ee.subject,ce=ee.center,me=ee.shouldUseTimeDampening,ve={top:ce.y-ae.top,right:ae.right-ce.x,bottom:ae.bottom-ce.y,left:ce.x-ae.left},pe=ml({container:ae,distanceToEdges:ve,dragStartTime:te,axis:er,shouldUseTimeDampening:me}),we=ml({container:ae,distanceToEdges:ve,dragStartTime:te,axis:cr,shouldUseTimeDampening:me}),Ze=pi({x:we,y:pe});if(fa(Ze,Da))return null;var ze=eo({container:ae,subject:ue,proposedScroll:Ze});return ze?fa(ze,Da)?null:ze:null},fl=Ra(function(ee){return ee===0?0:ee>0?1:-1}),yo=function(){var ee=function(ae,ue){return ae<0?ae:ae>ue?ae-ue:0};return function(te){var ae=te.current,ue=te.max,ce=te.change,me=Wt(ae,ce),ve={x:ee(me.x,ue.x),y:ee(me.y,ue.y)};return fa(ve,Da)?null:ve}}(),hi=function(te){var ae=te.max,ue=te.current,ce=te.change,me={x:Math.max(ue.x,ae.x),y:Math.max(ue.y,ae.y)},ve=fl(ce),pe=yo({max:me,current:ue,change:ve});return!pe||ve.x!==0&&pe.x===0||ve.y!==0&&pe.y===0},wo=function(te,ae){return hi({current:te.scroll.current,max:te.scroll.max,change:ae})},ro=function(te,ae){if(!wo(te,ae))return null;var ue=te.scroll.max,ce=te.scroll.current;return yo({current:ce,max:ue,change:ae})},No=function(te,ae){var ue=te.frame;return ue?hi({current:ue.scroll.current,max:ue.scroll.max,change:ae}):!1},Qo=function(te,ae){var ue=te.frame;return!ue||!No(te,ae)?null:yo({current:ue.scroll.current,max:ue.scroll.max,change:ae})},Ou=function(ee){var te=ee.viewport,ae=ee.subject,ue=ee.center,ce=ee.dragStartTime,me=ee.shouldUseTimeDampening,ve=ii({dragStartTime:ce,container:te.frame,subject:ae,center:ue,shouldUseTimeDampening:me});return ve&&wo(te,ve)?ve:null},cu=function(ee){var te=ee.droppable,ae=ee.subject,ue=ee.center,ce=ee.dragStartTime,me=ee.shouldUseTimeDampening,ve=te.frame;if(!ve)return null;var pe=ii({dragStartTime:ce,container:ve.pageMarginBox,subject:ae,center:ue,shouldUseTimeDampening:me});return pe&&No(te,pe)?pe:null},vl=function(ee){var te=ee.state,ae=ee.dragStartTime,ue=ee.shouldUseTimeDampening,ce=ee.scrollWindow,me=ee.scrollDroppable,ve=te.current.page.borderBoxCenter,pe=te.dimensions.draggables[te.critical.draggable.id],we=pe.page.marginBox;if(te.isWindowScrollAllowed){var Ze=te.viewport,ze=Ou({dragStartTime:ae,viewport:Ze,subject:we,center:ve,shouldUseTimeDampening:ue});if(ze){ce(ze);return}}var Ne=ri({center:ve,destination:fo(te.impact),droppables:te.dimensions.droppables});if(Ne){var Re=cu({dragStartTime:ae,droppable:Ne,subject:we,center:ve,shouldUseTimeDampening:ue});Re&&me(Ne.descriptor.id,Re)}},ko=function(ee){var te=ee.scrollWindow,ae=ee.scrollDroppable,ue=hn(te),ce=hn(ae),me=null,ve=function(ze){me||tt(!1);var Ne=me,Re=Ne.shouldUseTimeDampening,qe=Ne.dragStartTime;vl({state:ze,scrollWindow:ue,scrollDroppable:ce,dragStartTime:qe,shouldUseTimeDampening:Re})},pe=function(ze){ai(),me&&tt(!1);var Ne=Date.now(),Re=!1,qe=function(){Re=!0};vl({state:ze,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:qe,scrollDroppable:qe}),me={dragStartTime:Ne,shouldUseTimeDampening:Re},mi(),Re&&ve(ze)},we=function(){me&&(ue.cancel(),ce.cancel(),me=null)};return{start:pe,stop:we,scroll:ve}},gu=function(ee){var te=ee.move,ae=ee.scrollDroppable,ue=ee.scrollWindow,ce=function(Ze,ze){var Ne=Wt(Ze.current.client.selection,ze);te({client:Ne})},me=function(Ze,ze){if(!No(Ze,ze))return ze;var Ne=Qo(Ze,ze);if(!Ne)return ae(Ze.descriptor.id,ze),null;var Re=xa(ze,Ne);ae(Ze.descriptor.id,Re);var qe=xa(ze,Re);return qe},ve=function(Ze,ze,Ne){if(!Ze||!wo(ze,Ne))return Ne;var Re=ro(ze,Ne);if(!Re)return ue(Ne),null;var qe=xa(Ne,Re);ue(qe);var Pt=xa(Ne,qe);return Pt},pe=function(Ze){var ze=Ze.scrollJumpRequest;if(ze){var Ne=fo(Ze.impact);Ne||tt(!1);var Re=me(Ze.dimensions.droppables[Ne],ze);if(Re){var qe=Ze.viewport,Pt=ve(Ze.isWindowScrollAllowed,qe,Re);Pt&&ce(Ze,Pt)}}};return pe},mu=function(ee){var te=ee.scrollDroppable,ae=ee.scrollWindow,ue=ee.move,ce=ko({scrollWindow:ae,scrollDroppable:te}),me=gu({move:ue,scrollWindow:ae,scrollDroppable:te}),ve=function(Ze){if(Ze.phase==="DRAGGING"){if(Ze.movementMode==="FLUID"){ce.scroll(Ze);return}Ze.scrollJumpRequest&&me(Ze)}},pe={scroll:ve,start:ce.start,stop:ce.stop};return pe},Xo="data-rbd",qo=function(){var ee=Xo+"-drag-handle";return{base:ee,draggableId:ee+"-draggable-id",contextId:ee+"-context-id"}}(),Si=function(){var ee=Xo+"-draggable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),Fo=function(){var ee=Xo+"-droppable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),pl={contextId:Xo+"-scroll-container-context-id"},hl=function(te){return function(ae){return"["+ae+'="'+te+'"]'}},li=function(te,ae){return te.map(function(ue){var ce=ue.styles[ae];return ce?ue.selector+" { "+ce+" }":""}).join(" ")},jn="pointer-events: none;",Pa=function(ee){var te=hl(ee),ae=function(){var pe=` + `},Tt={dragHandleUsageInstructions:Nn,onDragStart:Zn,onDragUpdate:_a,onDragEnd:sr},Da={x:0,y:0},Wt=function(te,ae){return{x:te.x+ae.x,y:te.y+ae.y}},xa=function(te,ae){return{x:te.x-ae.x,y:te.y-ae.y}},va=function(te,ae){return te.x===ae.x&&te.y===ae.y},Yt=function(te){return{x:te.x!==0?-te.x:0,y:te.y!==0?-te.y:0}},xn=function(te,ae,ue){var ce;return ue===void 0&&(ue=0),ce={},ce[te]=ae,ce[te==="x"?"y":"x"]=ue,ce},ea=function(te,ae){return Math.sqrt(Math.pow(ae.x-te.x,2)+Math.pow(ae.y-te.y,2))},Pn=function(te,ae){return Math.min.apply(Math,ae.map(function(ue){return ea(te,ue)}))},Ra=function(te){return function(ae){return{x:te(ae.x),y:te(ae.y)}}},ha=function(ee,te){var ae=na({top:Math.max(te.top,ee.top),right:Math.min(te.right,ee.right),bottom:Math.min(te.bottom,ee.bottom),left:Math.max(te.left,ee.left)});return ae.width<=0||ae.height<=0?null:ae},Va=function(te,ae){return{top:te.top+ae.y,left:te.left+ae.x,bottom:te.bottom+ae.y,right:te.right+ae.x}},ur=function(te){return[{x:te.left,y:te.top},{x:te.right,y:te.top},{x:te.left,y:te.bottom},{x:te.right,y:te.bottom}]},Sr={top:0,right:0,bottom:0,left:0},Nr=function(te,ae){return ae?Va(te,ae.scroll.diff.displacement):te},pr=function(te,ae,ue){if(ue&&ue.increasedBy){var ce;return(0,Ie.Z)({},te,(ce={},ce[ae.end]=te[ae.end]+ue.increasedBy[ae.line],ce))}return te},Yr=function(te,ae){return ae&&ae.shouldClipSubject?ha(ae.pageMarginBox,te):na(te)},Xa=function(ee){var te=ee.page,ae=ee.withPlaceholder,ue=ee.axis,ce=ee.frame,me=Nr(te.marginBox,ce),ve=pr(me,ue,ae),pe=Yr(ve,ce);return{page:te,withPlaceholder:ae,active:pe}},qa=function(ee,te){ee.frame||tt(!1);var ae=ee.frame,ue=xa(te,ae.scroll.initial),ce=Yt(ue),me=(0,Ie.Z)({},ae,{scroll:{initial:ae.scroll.initial,current:te,diff:{value:ue,displacement:ce},max:ae.scroll.max}}),ve=Xa({page:ee.subject.page,withPlaceholder:ee.subject.withPlaceholder,axis:ee.axis,frame:me}),pe=(0,Ie.Z)({},ee,{frame:me,subject:ve});return pe};function fr(ee){return Number.isInteger?Number.isInteger(ee):typeof ee=="number"&&isFinite(ee)&&Math.floor(ee)===ee}function fa(ee){return Object.values?Object.values(ee):Object.keys(ee).map(function(te){return ee[te]})}function or(ee,te){if(ee.findIndex)return ee.findIndex(te);for(var ae=0;aeee.bottom,Ze=ue.leftee.right,ze=we&&Ze;if(ze)return!0;var Ne=we&&ve||Ze&&me;return Ne}},Tr=function(ee){var te=Qa(ee.top,ee.bottom),ae=Qa(ee.left,ee.right);return function(ue){var ce=te(ue.top)&&te(ue.bottom)&&ae(ue.left)&&ae(ue.right);return ce}},er={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},cr={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Cr=function(ee){return function(te){var ae=Qa(te.top,te.bottom),ue=Qa(te.left,te.right);return function(ce){return ee===er?ae(ce.top)&&ae(ce.bottom):ue(ce.left)&&ue(ce.right)}}},Tn=function(te,ae){var ue=ae.frame?ae.frame.scroll.diff.displacement:Da;return Va(te,ue)},an=function(te,ae,ue){return ae.subject.active?ue(ae.subject.active)(te):!1},Lt=function(te,ae,ue){return ue(ae)(te)},de=function(te){var ae=te.target,ue=te.destination,ce=te.viewport,me=te.withDroppableDisplacement,ve=te.isVisibleThroughFrameFn,pe=me?Tn(ae,ue):ae;return an(pe,ue,ve)&&Lt(pe,ce,ve)},$e=function(te){return de((0,Ie.Z)({},te,{isVisibleThroughFrameFn:vr}))},st=function(te){return de((0,Ie.Z)({},te,{isVisibleThroughFrameFn:Tr}))},jt=function(te){return de((0,Ie.Z)({},te,{isVisibleThroughFrameFn:Cr(te.destination.axis)}))},at=function(te,ae,ue){if(typeof ue=="boolean")return ue;if(!ae)return!0;var ce=ae.invisible,me=ae.visible;if(ce[te])return!1;var ve=me[te];return ve?ve.shouldAnimate:!0};function tn(ee,te){var ae=ee.page.marginBox,ue={top:te.point.y,right:0,bottom:0,left:te.point.x};return na(Ka(ae,ue))}function Jt(ee){var te=ee.afterDragging,ae=ee.destination,ue=ee.displacedBy,ce=ee.viewport,me=ee.forceShouldAnimate,ve=ee.last;return te.reduce(function(we,Ze){var ze=tn(Ze,ue),Ne=Ze.descriptor.id;we.all.push(Ne);var Re=$e({target:ze,destination:ae,viewport:ce,withDroppableDisplacement:!0});if(!Re)return we.invisible[Ze.descriptor.id]=!0,we;var qe=at(Ne,ve,me),Pt={draggableId:Ne,shouldAnimate:qe};return we.visible[Ne]=Pt,we},{all:[],visible:{},invisible:{}})}function Ut(ee,te){if(!ee.length)return 0;var ae=ee[ee.length-1].descriptor.index;return te.inHomeList?ae:ae+1}function Xt(ee){var te=ee.insideDestination,ae=ee.inHomeList,ue=ee.displacedBy,ce=ee.destination,me=Ut(te,{inHomeList:ae});return{displaced:Ta,displacedBy:ue,at:{type:"REORDER",destination:{droppableId:ce.descriptor.id,index:me}}}}function ra(ee){var te=ee.draggable,ae=ee.insideDestination,ue=ee.destination,ce=ee.viewport,me=ee.displacedBy,ve=ee.last,pe=ee.index,we=ee.forceShouldAnimate,Ze=Ea(te,ue);if(pe==null)return Xt({insideDestination:ae,inHomeList:Ze,displacedBy:me,destination:ue});var ze=dr(ae,function(Ln){return Ln.descriptor.index===pe});if(!ze)return Xt({insideDestination:ae,inHomeList:Ze,displacedBy:me,destination:ue});var Ne=$t(te,ae),Re=ae.indexOf(ze),qe=Ne.slice(Re),Pt=Jt({afterDragging:qe,destination:ue,displacedBy:me,last:ve,viewport:ce.frame,forceShouldAnimate:we});return{displaced:Pt,displacedBy:me,at:{type:"REORDER",destination:{droppableId:ue.descriptor.id,index:pe}}}}function Ha(ee,te){return!!te.effected[ee]}var Za=function(ee){var te=ee.isMovingForward,ae=ee.destination,ue=ee.draggables,ce=ee.combine,me=ee.afterCritical;if(!ae.isCombineEnabled)return null;var ve=ce.draggableId,pe=ue[ve],we=pe.descriptor.index,Ze=Ha(ve,me);return Ze?te?we:we-1:te?we+1:we},mn=function(ee){var te=ee.isMovingForward,ae=ee.isInHomeList,ue=ee.insideDestination,ce=ee.location;if(!ue.length)return null;var me=ce.index,ve=te?me+1:me-1,pe=ue[0].descriptor.index,we=ue[ue.length-1].descriptor.index,Ze=ae?we:we+1;return veZe?null:ve},Ia=function(ee){var te=ee.isMovingForward,ae=ee.isInHomeList,ue=ee.draggable,ce=ee.draggables,me=ee.destination,ve=ee.insideDestination,pe=ee.previousImpact,we=ee.viewport,Ze=ee.afterCritical,ze=pe.at;if(ze||tt(!1),ze.type==="REORDER"){var Ne=mn({isMovingForward:te,isInHomeList:ae,location:ze.destination,insideDestination:ve});return Ne==null?null:ra({draggable:ue,insideDestination:ve,destination:me,viewport:we,last:pe.displaced,displacedBy:pe.displacedBy,index:Ne})}var Re=Za({isMovingForward:te,destination:me,displaced:pe.displaced,draggables:ce,combine:ze.combine,afterCritical:Ze});return Re==null?null:ra({draggable:ue,insideDestination:ve,destination:me,viewport:we,last:pe.displaced,displacedBy:pe.displacedBy,index:Re})},Ca=function(ee){var te=ee.displaced,ae=ee.afterCritical,ue=ee.combineWith,ce=ee.displacedBy,me=!!(te.visible[ue]||te.invisible[ue]);return Ha(ue,ae)?me?Da:Yt(ce.point):me?ce.point:Da},Ga=function(ee){var te=ee.afterCritical,ae=ee.impact,ue=ee.draggables,ce=La(ae);ce||tt(!1);var me=ce.draggableId,ve=ue[me].page.borderBox.center,pe=Ca({displaced:ae.displaced,afterCritical:te,combineWith:me,displacedBy:ae.displacedBy});return Wt(ve,pe)},Ir=function(te,ae){return ae.margin[te.start]+ae.borderBox[te.size]/2},Vr=function(te,ae){return ae.margin[te.end]+ae.borderBox[te.size]/2},Or=function(te,ae,ue){return ae[te.crossAxisStart]+ue.margin[te.crossAxisStart]+ue.borderBox[te.crossAxisSize]/2},Zr=function(te){var ae=te.axis,ue=te.moveRelativeTo,ce=te.isMoving;return xn(ae.line,ue.marginBox[ae.end]+Ir(ae,ce),Or(ae,ue.marginBox,ce))},kr=function(te){var ae=te.axis,ue=te.moveRelativeTo,ce=te.isMoving;return xn(ae.line,ue.marginBox[ae.start]-Vr(ae,ce),Or(ae,ue.marginBox,ce))},zr=function(te){var ae=te.axis,ue=te.moveInto,ce=te.isMoving;return xn(ae.line,ue.contentBox[ae.start]+Ir(ae,ce),Or(ae,ue.contentBox,ce))},bo=function(ee){var te=ee.impact,ae=ee.draggable,ue=ee.draggables,ce=ee.droppable,me=ee.afterCritical,ve=dn(ce.descriptor.id,ue),pe=ae.page,we=ce.axis;if(!ve.length)return zr({axis:we,moveInto:ce.page,isMoving:pe});var Ze=te.displaced,ze=te.displacedBy,Ne=Ze.all[0];if(Ne){var Re=ue[Ne];if(Ha(Ne,me))return kr({axis:we,moveRelativeTo:Re.page,isMoving:pe});var qe=At(Re.page,ze.point);return kr({axis:we,moveRelativeTo:qe,isMoving:pe})}var Pt=ve[ve.length-1];if(Pt.descriptor.id===ae.descriptor.id)return pe.borderBox.center;if(Ha(Pt.descriptor.id,me)){var Ln=At(Pt.page,Yt(me.displacedBy.point));return Zr({axis:we,moveRelativeTo:Ln,isMoving:pe})}return Zr({axis:we,moveRelativeTo:Pt.page,isMoving:pe})},Po=function(ee,te){var ae=ee.frame;return ae?Wt(te,ae.scroll.diff.displacement):te},ho=function(te){var ae=te.impact,ue=te.draggable,ce=te.droppable,me=te.draggables,ve=te.afterCritical,pe=ue.page.borderBox.center,we=ae.at;return!ce||!we?pe:we.type==="REORDER"?bo({impact:ae,draggable:ue,draggables:me,droppable:ce,afterCritical:ve}):Ga({impact:ae,draggables:me,afterCritical:ve})},Eo=function(ee){var te=ho(ee),ae=ee.droppable,ue=ae?Po(ae,te):te;return ue},Co=function(ee,te){var ae=xa(te,ee.scroll.initial),ue=Yt(ae),ce=na({top:te.y,bottom:te.y+ee.frame.height,left:te.x,right:te.x+ee.frame.width}),me={frame:ce,scroll:{initial:ee.scroll.initial,max:ee.scroll.max,current:te,diff:{value:ae,displacement:ue}}};return me};function Gr(ee,te){return ee.map(function(ae){return te[ae]})}function xo(ee,te){for(var ae=0;ae1?ze.sort(function(Ne,Re){return ao(Ne)[pe.start]-ao(Re)[pe.start]})[0]:Ze.sort(function(Ne,Re){var qe=Pn(ae,ur(ao(Ne))),Pt=Pn(ae,ur(ao(Re)));return qe!==Pt?qe-Pt:ao(Ne)[pe.start]-ao(Re)[pe.start]})[0]},Uo=function(te,ae){var ue=te.page.borderBox.center;return Ha(te.descriptor.id,ae)?xa(ue,ae.displacedBy.point):ue},Zl=function(te,ae){var ue=te.page.borderBox;return Ha(te.descriptor.id,ae)?Va(ue,Yt(ae.displacedBy.point)):ue},wu=function(ee){var te=ee.pageBorderBoxCenter,ae=ee.viewport,ue=ee.destination,ce=ee.insideDestination,me=ee.afterCritical,ve=ce.filter(function(pe){return st({target:Zl(pe,me),destination:ue,viewport:ae.frame,withDroppableDisplacement:!0})}).sort(function(pe,we){var Ze=ea(te,Po(ue,Uo(pe,me))),ze=ea(te,Po(ue,Uo(we,me)));return Zete.left&&ee.topte.top}function Ql(ee){var te=ee.pageBorderBox,ae=ee.draggable,ue=ee.candidates,ce=ae.page.borderBox.center,me=ue.map(function(ve){var pe=ve.axis,we=xn(ve.axis.line,te.center[pe.line],ve.page.borderBox.center[pe.crossAxisLine]);return{id:ve.descriptor.id,distance:ea(ce,we)}}).sort(function(ve,pe){return pe.distance-ve.distance});return me[0]?me[0].id:null}function ta(ee){var te=ee.pageBorderBox,ae=ee.draggable,ue=ee.droppables,ce=it(ue).filter(function(me){if(!me.isEnabled)return!1;var ve=me.subject.active;if(!ve||!Du(te,ve))return!1;if(Bi(ve)(te.center))return!0;var pe=me.axis,we=ve.center[pe.crossAxisLine],Ze=te[pe.crossAxisStart],ze=te[pe.crossAxisEnd],Ne=Qa(ve[pe.crossAxisStart],ve[pe.crossAxisEnd]),Re=Ne(Ze),qe=Ne(ze);return!Re&&!qe?!0:Re?Zewe});return ce.length?ce.length===1?ce[0].descriptor.id:Ql({pageBorderBox:te,draggable:ae,candidates:ce}):null}var Xi=function(te,ae){return na(Va(te,ae))},Ul=function(ee,te){var ae=ee.frame;return ae?Xi(te,ae.scroll.diff.value):te};function On(ee){var te=ee.displaced,ae=ee.id;return!!(te.visible[ae]||te.invisible[ae])}function gi(ee){var te=ee.draggable,ae=ee.closest,ue=ee.inHomeList;return ae?ue&&ae.descriptor.index>te.descriptor.index?ae.descriptor.index-1:ae.descriptor.index:null}var Kl=function(ee){var te=ee.pageBorderBoxWithDroppableScroll,ae=ee.draggable,ue=ee.destination,ce=ee.insideDestination,me=ee.last,ve=ee.viewport,pe=ee.afterCritical,we=ue.axis,Ze=ei(ue.axis,ae.displaceBy),ze=Ze.value,Ne=te[we.start],Re=te[we.end],qe=$t(ae,ce),Pt=dr(qe,function(Hn){var Kn=Hn.descriptor.id,ua=Hn.page.borderBox.center[we.line],Fa=Ha(Kn,pe),Na=On({displaced:me,id:Kn});return Fa?Na?Re<=ua:NeKn[pe.start]+Fa&&NeKn[pe.start]-Ze+Fa&&zeKn[pe.start]+Ze+Fa&&NeKn[pe.start]+Fa&&ze=Ee)return se;var me=ce/Ee,ve=Ri+Se*me,pe=ue==="CANCEL"?ve*rt:ve;return Number(pe.toFixed(2))},_n=function(ee){var te=ee.impact,ae=ee.draggable,ue=ee.dimensions,ce=ee.viewport,me=ee.afterCritical,ve=ue.draggables,pe=ue.droppables,we=fo(te),Ze=we?pe[we]:null,ze=pe[ae.descriptor.droppableId],Ne=_i({impact:te,draggable:ae,draggables:ve,afterCritical:me,droppable:Ze||ze,viewport:ce}),Re=xa(Ne,ae.client.borderBox.center);return Re},oa=function(ee){var te=ee.draggables,ae=ee.reason,ue=ee.lastImpact,ce=ee.home,me=ee.viewport,ve=ee.onLiftImpact;if(!ue.at||ae!=="DROP"){var pe=Ci({draggables:te,impact:ve,destination:ce,viewport:me,forceShouldAnimate:!0});return{impact:pe,didDropInsideDroppable:!1}}if(ue.at.type==="REORDER")return{impact:ue,didDropInsideDroppable:!0};var we=(0,Ie.Z)({},ue,{displaced:Ta});return{impact:we,didDropInsideDroppable:!0}},En=function(ee){var te=ee.getState,ae=ee.dispatch;return function(ue){return function(ce){if(ce.type!=="DROP"){ue(ce);return}var me=te(),ve=ce.payload.reason;if(me.phase==="COLLECTING"){ae(Wa({reason:ve}));return}if(me.phase!=="IDLE"){var pe=me.phase==="DROP_PENDING"&&me.isWaiting;pe&&tt(!1),me.phase==="DRAGGING"||me.phase==="DROP_PENDING"||tt(!1);var we=me.critical,Ze=me.dimensions,ze=Ze.draggables[me.critical.draggable.id],Ne=oa({reason:ve,lastImpact:me.impact,afterCritical:me.afterCritical,onLiftImpact:me.onLiftImpact,home:me.dimensions.droppables[me.critical.droppable.id],viewport:me.viewport,draggables:me.dimensions.draggables}),Re=Ne.impact,qe=Ne.didDropInsideDroppable,Pt=qe?ia(Re):null,Ln=qe?La(Re):null,Hn={index:we.draggable.index,droppableId:we.droppable.id},Kn={draggableId:ze.descriptor.id,type:ze.descriptor.type,source:Hn,reason:ve,mode:me.movementMode,destination:Pt,combine:Ln},ua=_n({impact:Re,draggable:ze,dimensions:Ze,viewport:me.viewport,afterCritical:me.afterCritical}),Fa={critical:me.critical,afterCritical:me.afterCritical,result:Kn,impact:Re},Na=!va(me.current.client.offset,ua)||!!Kn.combine;if(!Na){ae(Ii({completed:Fa}));return}var lr=yn({current:me.current.client.offset,destination:ua,reason:ve}),rr={newHomeClientOffset:ua,dropDuration:lr,completed:Fa};ae(ll(rr))}}}},Ct=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function kt(ee){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ae){ae.target!==window&&ae.target!==window.document||ee()}}}function Dn(ee){var te=ee.onWindowScroll;function ae(){te(Ct())}var ue=hn(ae),ce=kt(ue),me=Pa;function ve(){return me!==Pa}function pe(){ve()&&tt(!1),me=qn(window,[ce])}function we(){ve()||tt(!1),ue.cancel(),me(),me=Pa}return{start:pe,stop:we,isActive:ve}}var Ft=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},en=function(ee){var te=Dn({onWindowScroll:function(ue){ee.dispatch(il({newScroll:ue}))}});return function(ae){return function(ue){!te.isActive()&&ue.type==="INITIAL_PUBLISH"&&te.start(),te.isActive()&&Ft(ue)&&te.stop(),ae(ue)}}},$n=function(ee){var te=!1,ae=!1,ue=setTimeout(function(){ae=!0}),ce=function(ve){te||ae||(te=!0,ee(ve),clearTimeout(ue))};return ce.wasCalled=function(){return te},ce},ga=function(){var ee=[],te=function(me){var ve=or(ee,function(Ze){return Ze.timerId===me});ve===-1&&tt(!1);var pe=ee.splice(ve,1),we=pe[0];we.callback()},ae=function(me){var ve=setTimeout(function(){return te(ve)}),pe={timerId:ve,callback:me};ee.push(pe)},ue=function(){if(ee.length){var me=[].concat(ee);ee.length=0,me.forEach(function(ve){clearTimeout(ve.timerId),ve.callback()})}};return{add:ae,flush:ue}},Bn=function(te,ae){return te==null&&ae==null?!0:te==null||ae==null?!1:te.droppableId===ae.droppableId&&te.index===ae.index},ca=function(te,ae){return te==null&&ae==null?!0:te==null||ae==null?!1:te.draggableId===ae.draggableId&&te.droppableId===ae.droppableId},Sa=function(te,ae){if(te===ae)return!0;var ue=te.draggable.id===ae.draggable.id&&te.draggable.droppableId===ae.draggable.droppableId&&te.draggable.type===ae.draggable.type&&te.draggable.index===ae.draggable.index,ce=te.droppable.id===ae.droppable.id&&te.droppable.type===ae.droppable.type;return ue&&ce},vn=function(te,ae){ai(),ae(),mi()},yr=function(te,ae){return{draggableId:te.draggable.id,type:te.droppable.type,source:{droppableId:te.droppable.id,index:te.draggable.index},mode:ae}},Sn=function(te,ae,ue,ce){if(!te){ue(ce(ae));return}var me=$n(ue),ve={announce:me};te(ae,ve),me.wasCalled()||ue(ce(ae))},ja=function(ee,te){var ae=ga(),ue=null,ce=function(Re,qe){ue&&tt(!1),vn("onBeforeCapture",function(){var Pt=ee().onBeforeCapture;if(Pt){var Ln={draggableId:Re,mode:qe};Pt(Ln)}})},me=function(Re,qe){ue&&tt(!1),vn("onBeforeDragStart",function(){var Pt=ee().onBeforeDragStart;Pt&&Pt(yr(Re,qe))})},ve=function(Re,qe){ue&&tt(!1);var Pt=yr(Re,qe);ue={mode:qe,lastCritical:Re,lastLocation:Pt.source,lastCombine:null},ae.add(function(){vn("onDragStart",function(){return Sn(ee().onDragStart,Pt,te,Tt.onDragStart)})})},pe=function(Re,qe){var Pt=ia(qe),Ln=La(qe);ue||tt(!1);var Hn=!Sa(Re,ue.lastCritical);Hn&&(ue.lastCritical=Re);var Kn=!Bn(ue.lastLocation,Pt);Kn&&(ue.lastLocation=Pt);var ua=!ca(ue.lastCombine,Ln);if(ua&&(ue.lastCombine=Ln),!(!Hn&&!Kn&&!ua)){var Fa=(0,Ie.Z)({},yr(Re,ue.mode),{combine:Ln,destination:Pt});ae.add(function(){vn("onDragUpdate",function(){return Sn(ee().onDragUpdate,Fa,te,Tt.onDragUpdate)})})}},we=function(){ue||tt(!1),ae.flush()},Ze=function(Re){ue||tt(!1),ue=null,vn("onDragEnd",function(){return Sn(ee().onDragEnd,Re,te,Tt.onDragEnd)})},ze=function(){if(ue){var Re=(0,Ie.Z)({},yr(ue.lastCritical,ue.mode),{combine:null,destination:null,reason:"CANCEL"});Ze(Re)}};return{beforeCapture:ce,beforeStart:me,start:ve,update:pe,flush:we,drop:Ze,abort:ze}},nn=function(ee,te){var ae=ja(ee,te);return function(ue){return function(ce){return function(me){if(me.type==="BEFORE_INITIAL_CAPTURE"){ae.beforeCapture(me.payload.draggableId,me.payload.movementMode);return}if(me.type==="INITIAL_PUBLISH"){var ve=me.payload.critical;ae.beforeStart(ve,me.payload.movementMode),ce(me),ae.start(ve,me.payload.movementMode);return}if(me.type==="DROP_COMPLETE"){var pe=me.payload.completed.result;ae.flush(),ce(me),ae.drop(pe);return}if(ce(me),me.type==="FLUSH"){ae.abort();return}var we=ue.getState();we.phase==="DRAGGING"&&ae.update(we.critical,we.impact)}}}},gr=function(ee){return function(te){return function(ae){if(ae.type!=="DROP_ANIMATION_FINISHED"){te(ae);return}var ue=ee.getState();ue.phase!=="DROP_ANIMATING"&&tt(!1),ee.dispatch(Ii({completed:ue.completed}))}}},Dr=function(ee){var te=null,ae=null;function ue(){ae&&(cancelAnimationFrame(ae),ae=null),te&&(te(),te=null)}return function(ce){return function(me){if((me.type==="FLUSH"||me.type==="DROP_COMPLETE"||me.type==="DROP_ANIMATION_FINISHED")&&ue(),ce(me),me.type==="DROP_ANIMATE"){var ve={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var we=ee.getState();we.phase==="DROP_ANIMATING"&&ee.dispatch(sl())}};ae=requestAnimationFrame(function(){ae=null,te=qn(window,[ve])})}}}},Br=function(ee){return function(){return function(te){return function(ae){(ae.type==="DROP_COMPLETE"||ae.type==="FLUSH"||ae.type==="DROP_ANIMATE")&&ee.stopPublishing(),te(ae)}}}},Pr=function(ee){var te=!1;return function(){return function(ae){return function(ue){if(ue.type==="INITIAL_PUBLISH"){te=!0,ee.tryRecordFocus(ue.payload.critical.draggable.id),ae(ue),ee.tryRestoreFocusRecorded();return}if(ae(ue),!!te){if(ue.type==="FLUSH"){te=!1,ee.tryRestoreFocusRecorded();return}if(ue.type==="DROP_COMPLETE"){te=!1;var ce=ue.payload.completed.result;ce.combine&&ee.tryShiftRecord(ce.draggableId,ce.combine.draggableId),ee.tryRestoreFocusRecorded()}}}}}},Vn=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},ir=function(ee){return function(te){return function(ae){return function(ue){if(Vn(ue)){ee.stop(),ae(ue);return}if(ue.type==="INITIAL_PUBLISH"){ae(ue);var ce=te.getState();ce.phase!=="DRAGGING"&&tt(!1),ee.start(ce);return}ae(ue),ee.scroll(te.getState())}}}},Hr=function(ee){return function(te){return function(ae){if(te(ae),ae.type==="PUBLISH_WHILE_DRAGGING"){var ue=ee.getState();ue.phase==="DROP_PENDING"&&(ue.isWaiting||ee.dispatch(ul({reason:ue.reason})))}}}},Kr=be.qC,_r=function(ee){var te=ee.dimensionMarshal,ae=ee.focusMarshal,ue=ee.styleMarshal,ce=ee.getResponders,me=ee.announce,ve=ee.autoScroller;return(0,be.MT)($l,Kr((0,be.md)(lu(ue),Br(te),dl(te),En,gr,Dr,Hr,ir(ve),en,Pr(ae),nn(ce,me))))},hr=function(){return{additions:{},removals:{},modified:{}}};function xr(ee){var te=ee.registry,ae=ee.callbacks,ue=hr(),ce=null,me=function(){ce||(ae.collectionStarting(),ce=requestAnimationFrame(function(){ce=null,ai();var ze=ue,Ne=ze.additions,Re=ze.removals,qe=ze.modified,Pt=Object.keys(Ne).map(function(Kn){return te.draggable.getById(Kn).getDimension(Da)}).sort(function(Kn,ua){return Kn.descriptor.index-ua.descriptor.index}),Ln=Object.keys(qe).map(function(Kn){var ua=te.droppable.getById(Kn),Fa=ua.callbacks.getScrollWhileDragging();return{droppableId:Kn,scroll:Fa}}),Hn={additions:Pt,removals:Object.keys(Re),modified:Ln};ue=hr(),mi(),ae.publish(Hn)}))},ve=function(ze){var Ne=ze.descriptor.id;ue.additions[Ne]=ze,ue.modified[ze.descriptor.droppableId]=!0,ue.removals[Ne]&&delete ue.removals[Ne],me()},pe=function(ze){var Ne=ze.descriptor;ue.removals[Ne.id]=!0,ue.modified[Ne.droppableId]=!0,ue.additions[Ne.id]&&delete ue.additions[Ne.id],me()},we=function(){ce&&(cancelAnimationFrame(ce),ce=null,ue=hr())};return{add:ve,remove:pe,stop:we}}var Mr=function(ee){var te=ee.scrollHeight,ae=ee.scrollWidth,ue=ee.height,ce=ee.width,me=xa({x:ae,y:te},{x:ce,y:ue}),ve={x:Math.max(0,me.x),y:Math.max(0,me.y)};return ve},tr=function(){var ee=document.documentElement;return ee||tt(!1),ee},Lr=function(){var ee=tr(),te=Mr({scrollHeight:ee.scrollHeight,scrollWidth:ee.scrollWidth,width:ee.clientWidth,height:ee.clientHeight});return te},Rr=function(){var ee=Ct(),te=Lr(),ae=ee.y,ue=ee.x,ce=tr(),me=ce.clientWidth,ve=ce.clientHeight,pe=ue+me,we=ae+ve,Ze=na({top:ae,left:ue,right:pe,bottom:we}),ze={frame:Ze,scroll:{initial:ee,current:ee,max:te,diff:{value:Da,displacement:Da}}};return ze},Qr=function(ee){var te=ee.critical,ae=ee.scrollOptions,ue=ee.registry;ai();var ce=Rr(),me=ce.scroll.current,ve=te.droppable,pe=ue.droppable.getAllByType(ve.type).map(function(Ne){return Ne.callbacks.getDimensionAndWatchScroll(me,ae)}),we=ue.draggable.getAllByType(te.draggable.type).map(function(Ne){return Ne.getDimension(me)}),Ze={draggables:mt(we),droppables:nr(pe)};mi();var ze={dimensions:Ze,critical:te,viewport:ce};return ze};function $r(ee,te,ae){if(ae.descriptor.id===te.id||ae.descriptor.type!==te.type)return!1;var ue=ee.droppable.getById(ae.descriptor.droppableId);return ue.descriptor.mode==="virtual"}var mo=function(ee,te){var ae=null,ue=xr({callbacks:{publish:te.publishWhileDragging,collectionStarting:te.collectionStarting},registry:ee}),ce=function(qe,Pt){ee.droppable.exists(qe)||tt(!1),ae&&te.updateDroppableIsEnabled({id:qe,isEnabled:Pt})},me=function(qe,Pt){ae&&(ee.droppable.exists(qe)||tt(!1),te.updateDroppableIsCombineEnabled({id:qe,isCombineEnabled:Pt}))},ve=function(qe,Pt){ae&&(ee.droppable.exists(qe)||tt(!1),te.updateDroppableScroll({id:qe,newScroll:Pt}))},pe=function(qe,Pt){ae&&ee.droppable.getById(qe).callbacks.scroll(Pt)},we=function(){if(ae){ue.stop();var qe=ae.critical.droppable;ee.droppable.getAllByType(qe.type).forEach(function(Pt){return Pt.callbacks.dragStopped()}),ae.unsubscribe(),ae=null}},Ze=function(qe){ae||tt(!1);var Pt=ae.critical.draggable;qe.type==="ADDITION"&&$r(ee,Pt,qe.value)&&ue.add(qe.value),qe.type==="REMOVAL"&&$r(ee,Pt,qe.value)&&ue.remove(qe.value)},ze=function(qe){ae&&tt(!1);var Pt=ee.draggable.getById(qe.draggableId),Ln=ee.droppable.getById(Pt.descriptor.droppableId),Hn={draggable:Pt.descriptor,droppable:Ln.descriptor},Kn=ee.subscribe(Ze);return ae={critical:Hn,unsubscribe:Kn},Qr({critical:Hn,registry:ee,scrollOptions:qe.scrollOptions})},Ne={updateDroppableIsEnabled:ce,updateDroppableIsCombineEnabled:me,scrollDroppable:pe,updateDroppableScroll:ve,startPublishing:ze,stopPublishing:we};return Ne},lo=function(ee,te){return ee.phase==="IDLE"?!0:ee.phase!=="DROP_ANIMATING"||ee.completed.result.draggableId===te?!1:ee.completed.result.reason==="DROP"},Ao=function(ee){window.scrollBy(ee.x,ee.y)},So=Rt(function(ee){return it(ee).filter(function(te){return!(!te.isEnabled||!te.frame)})}),vi=function(te,ae){var ue=dr(So(ae),function(ce){return ce.frame||tt(!1),Bi(ce.frame.pageMarginBox)(te)});return ue},ri=function(ee){var te=ee.center,ae=ee.destination,ue=ee.droppables;if(ae){var ce=ue[ae];return ce.frame?ce:null}var me=vi(te,ue);return me},Io={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(te){return Math.pow(te,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},cl=function(ee,te){var ae=ee[te.size]*Io.startFromPercentage,ue=ee[te.size]*Io.maxScrollAtPercentage,ce={startScrollingFrom:ae,maxScrollValueAt:ue};return ce},uu=function(ee){var te=ee.startOfRange,ae=ee.endOfRange,ue=ee.current,ce=ae-te;if(ce===0)return 0;var me=ue-te,ve=me/ce;return ve},gl=1,su=function(ee,te){if(ee>te.startScrollingFrom)return 0;if(ee<=te.maxScrollValueAt)return Io.maxPixelScroll;if(ee===te.startScrollingFrom)return gl;var ae=uu({startOfRange:te.maxScrollValueAt,endOfRange:te.startScrollingFrom,current:ee}),ue=1-ae,ce=Io.maxPixelScroll*Io.ease(ue);return Math.ceil(ce)},Ti=Io.durationDampening.accelerateAt,Jo=Io.durationDampening.stopDampeningAt,du=function(ee,te){var ae=te,ue=Jo,ce=Date.now(),me=ce-ae;if(me>=Jo)return ee;if(mete.height,me=ae.width>te.width;return!me&&!ce?ue:me&&ce?null:{x:me?0:ue.x,y:ce?0:ue.y}},pi=Ra(function(ee){return ee===0?0:ee}),ii=function(ee){var te=ee.dragStartTime,ae=ee.container,ue=ee.subject,ce=ee.center,me=ee.shouldUseTimeDampening,ve={top:ce.y-ae.top,right:ae.right-ce.x,bottom:ae.bottom-ce.y,left:ce.x-ae.left},pe=ml({container:ae,distanceToEdges:ve,dragStartTime:te,axis:er,shouldUseTimeDampening:me}),we=ml({container:ae,distanceToEdges:ve,dragStartTime:te,axis:cr,shouldUseTimeDampening:me}),Ze=pi({x:we,y:pe});if(va(Ze,Da))return null;var ze=eo({container:ae,subject:ue,proposedScroll:Ze});return ze?va(ze,Da)?null:ze:null},fl=Ra(function(ee){return ee===0?0:ee>0?1:-1}),yo=function(){var ee=function(ae,ue){return ae<0?ae:ae>ue?ae-ue:0};return function(te){var ae=te.current,ue=te.max,ce=te.change,me=Wt(ae,ce),ve={x:ee(me.x,ue.x),y:ee(me.y,ue.y)};return va(ve,Da)?null:ve}}(),hi=function(te){var ae=te.max,ue=te.current,ce=te.change,me={x:Math.max(ue.x,ae.x),y:Math.max(ue.y,ae.y)},ve=fl(ce),pe=yo({max:me,current:ue,change:ve});return!pe||ve.x!==0&&pe.x===0||ve.y!==0&&pe.y===0},wo=function(te,ae){return hi({current:te.scroll.current,max:te.scroll.max,change:ae})},ro=function(te,ae){if(!wo(te,ae))return null;var ue=te.scroll.max,ce=te.scroll.current;return yo({current:ce,max:ue,change:ae})},No=function(te,ae){var ue=te.frame;return ue?hi({current:ue.scroll.current,max:ue.scroll.max,change:ae}):!1},Qo=function(te,ae){var ue=te.frame;return!ue||!No(te,ae)?null:yo({current:ue.scroll.current,max:ue.scroll.max,change:ae})},Ou=function(ee){var te=ee.viewport,ae=ee.subject,ue=ee.center,ce=ee.dragStartTime,me=ee.shouldUseTimeDampening,ve=ii({dragStartTime:ce,container:te.frame,subject:ae,center:ue,shouldUseTimeDampening:me});return ve&&wo(te,ve)?ve:null},cu=function(ee){var te=ee.droppable,ae=ee.subject,ue=ee.center,ce=ee.dragStartTime,me=ee.shouldUseTimeDampening,ve=te.frame;if(!ve)return null;var pe=ii({dragStartTime:ce,container:ve.pageMarginBox,subject:ae,center:ue,shouldUseTimeDampening:me});return pe&&No(te,pe)?pe:null},vl=function(ee){var te=ee.state,ae=ee.dragStartTime,ue=ee.shouldUseTimeDampening,ce=ee.scrollWindow,me=ee.scrollDroppable,ve=te.current.page.borderBoxCenter,pe=te.dimensions.draggables[te.critical.draggable.id],we=pe.page.marginBox;if(te.isWindowScrollAllowed){var Ze=te.viewport,ze=Ou({dragStartTime:ae,viewport:Ze,subject:we,center:ve,shouldUseTimeDampening:ue});if(ze){ce(ze);return}}var Ne=ri({center:ve,destination:fo(te.impact),droppables:te.dimensions.droppables});if(Ne){var Re=cu({dragStartTime:ae,droppable:Ne,subject:we,center:ve,shouldUseTimeDampening:ue});Re&&me(Ne.descriptor.id,Re)}},ko=function(ee){var te=ee.scrollWindow,ae=ee.scrollDroppable,ue=hn(te),ce=hn(ae),me=null,ve=function(ze){me||tt(!1);var Ne=me,Re=Ne.shouldUseTimeDampening,qe=Ne.dragStartTime;vl({state:ze,scrollWindow:ue,scrollDroppable:ce,dragStartTime:qe,shouldUseTimeDampening:Re})},pe=function(ze){ai(),me&&tt(!1);var Ne=Date.now(),Re=!1,qe=function(){Re=!0};vl({state:ze,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:qe,scrollDroppable:qe}),me={dragStartTime:Ne,shouldUseTimeDampening:Re},mi(),Re&&ve(ze)},we=function(){me&&(ue.cancel(),ce.cancel(),me=null)};return{start:pe,stop:we,scroll:ve}},gu=function(ee){var te=ee.move,ae=ee.scrollDroppable,ue=ee.scrollWindow,ce=function(Ze,ze){var Ne=Wt(Ze.current.client.selection,ze);te({client:Ne})},me=function(Ze,ze){if(!No(Ze,ze))return ze;var Ne=Qo(Ze,ze);if(!Ne)return ae(Ze.descriptor.id,ze),null;var Re=xa(ze,Ne);ae(Ze.descriptor.id,Re);var qe=xa(ze,Re);return qe},ve=function(Ze,ze,Ne){if(!Ze||!wo(ze,Ne))return Ne;var Re=ro(ze,Ne);if(!Re)return ue(Ne),null;var qe=xa(Ne,Re);ue(qe);var Pt=xa(Ne,qe);return Pt},pe=function(Ze){var ze=Ze.scrollJumpRequest;if(ze){var Ne=fo(Ze.impact);Ne||tt(!1);var Re=me(Ze.dimensions.droppables[Ne],ze);if(Re){var qe=Ze.viewport,Pt=ve(Ze.isWindowScrollAllowed,qe,Re);Pt&&ce(Ze,Pt)}}};return pe},mu=function(ee){var te=ee.scrollDroppable,ae=ee.scrollWindow,ue=ee.move,ce=ko({scrollWindow:ae,scrollDroppable:te}),me=gu({move:ue,scrollWindow:ae,scrollDroppable:te}),ve=function(Ze){if(Ze.phase==="DRAGGING"){if(Ze.movementMode==="FLUID"){ce.scroll(Ze);return}Ze.scrollJumpRequest&&me(Ze)}},pe={scroll:ve,start:ce.start,stop:ce.stop};return pe},Xo="data-rbd",qo=function(){var ee=Xo+"-drag-handle";return{base:ee,draggableId:ee+"-draggable-id",contextId:ee+"-context-id"}}(),Si=function(){var ee=Xo+"-draggable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),Fo=function(){var ee=Xo+"-droppable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),pl={contextId:Xo+"-scroll-container-context-id"},hl=function(te){return function(ae){return"["+ae+'="'+te+'"]'}},li=function(te,ae){return te.map(function(ue){var ce=ue.styles[ae];return ce?ue.selector+" { "+ce+" }":""}).join(" ")},jn="pointer-events: none;",Aa=function(ee){var te=hl(ee),ae=function(){var pe=` cursor: -webkit-grab; cursor: grab; `;return{selector:te(qo.contextId),styles:{always:` @@ -337,9 +337,9 @@ The error may be correlated with this previous error: -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; - `}},ve=[ue,ae,ce,me];return{always:li(ve,"always"),resting:li(ve,"resting"),dragging:li(ve,"dragging"),dropAnimating:li(ve,"dropAnimating"),userCancel:li(ve,"userCancel")}},Ua=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect,mr=function(){var te=document.querySelector("head");return te||tt(!1),te},br=function(te){var ae=document.createElement("style");return te&&ae.setAttribute("nonce",te),ae.type="text/css",ae};function Wr(ee,te){var ae=_t(function(){return Pa(ee)},[ee]),ue=(0,b.useRef)(null),ce=(0,b.useRef)(null),me=St(Rt(function(Ne){var Re=ce.current;Re||tt(!1),Re.textContent=Ne}),[]),ve=St(function(Ne){var Re=ue.current;Re||tt(!1),Re.textContent=Ne},[]);Ua(function(){!ue.current&&!ce.current||tt(!1);var Ne=br(te),Re=br(te);return ue.current=Ne,ce.current=Re,Ne.setAttribute(Xo+"-always",ee),Re.setAttribute(Xo+"-dynamic",ee),mr().appendChild(Ne),mr().appendChild(Re),ve(ae.always),me(ae.resting),function(){var qe=function(Dn){var Hn=Dn.current;Hn||tt(!1),mr().removeChild(Hn),Dn.current=null};qe(ue),qe(ce)}},[te,ve,me,ae.always,ae.resting,ee]);var pe=St(function(){return me(ae.dragging)},[me,ae.dragging]),we=St(function(Ne){if(Ne==="DROP"){me(ae.dropAnimating);return}me(ae.userCancel)},[me,ae.dropAnimating,ae.userCancel]),Ze=St(function(){ce.current&&me(ae.resting)},[me,ae.resting]),ze=_t(function(){return{dragging:pe,dropping:we,resting:Ze}},[pe,we,Ze]);return ze}var wr=function(ee){return ee&&ee.ownerDocument?ee.ownerDocument.defaultView:window};function no(ee){return ee instanceof wr(ee).HTMLElement}function Oo(ee,te){var ae="["+qo.contextId+'="'+ee+'"]',ue=ka(document.querySelectorAll(ae));if(!ue.length)return null;var ce=dr(ue,function(me){return me.getAttribute(qo.draggableId)===te});return!ce||!no(ce)?null:ce}function ki(ee){var te=(0,b.useRef)({}),ae=(0,b.useRef)(null),ue=(0,b.useRef)(null),ce=(0,b.useRef)(!1),me=St(function(Re,qe){var Pt={id:Re,focus:qe};return te.current[Re]=Pt,function(){var Hn=te.current,Kn=Hn[Re];Kn!==Pt&&delete Hn[Re]}},[]),ve=St(function(Re){var qe=Oo(ee,Re);qe&&qe!==document.activeElement&&qe.focus()},[ee]),pe=St(function(Re,qe){ae.current===Re&&(ae.current=qe)},[]),we=St(function(){ue.current||ce.current&&(ue.current=requestAnimationFrame(function(){ue.current=null;var Re=ae.current;Re&&ve(Re)}))},[ve]),Ze=St(function(Re){ae.current=null;var qe=document.activeElement;qe&&qe.getAttribute(qo.draggableId)===Re&&(ae.current=Re)},[]);Ua(function(){return ce.current=!0,function(){ce.current=!1;var Re=ue.current;Re&&cancelAnimationFrame(Re)}},[]);var ze=_t(function(){return{register:me,tryRecordFocus:Ze,tryRestoreFocusRecorded:we,tryShiftRecord:pe}},[me,Ze,we,pe]);return ze}function Pi(){var ee={draggables:{},droppables:{}},te=[];function ae(Ne){return te.push(Ne),function(){var qe=te.indexOf(Ne);qe!==-1&&te.splice(qe,1)}}function ue(Ne){te.length&&te.forEach(function(Re){return Re(Ne)})}function ce(Ne){return ee.draggables[Ne]||null}function me(Ne){var Re=ce(Ne);return Re||tt(!1),Re}var ve={register:function(Re){ee.draggables[Re.descriptor.id]=Re,ue({type:"ADDITION",value:Re})},update:function(Re,qe){var Pt=ee.draggables[qe.descriptor.id];Pt&&Pt.uniqueId===Re.uniqueId&&(delete ee.draggables[qe.descriptor.id],ee.draggables[Re.descriptor.id]=Re)},unregister:function(Re){var qe=Re.descriptor.id,Pt=ce(qe);Pt&&Re.uniqueId===Pt.uniqueId&&(delete ee.draggables[qe],ue({type:"REMOVAL",value:Re}))},getById:me,findById:ce,exists:function(Re){return!!ce(Re)},getAllByType:function(Re){return ga(ee.draggables).filter(function(qe){return qe.descriptor.type===Re})}};function pe(Ne){return ee.droppables[Ne]||null}function we(Ne){var Re=pe(Ne);return Re||tt(!1),Re}var Ze={register:function(Re){ee.droppables[Re.descriptor.id]=Re},unregister:function(Re){var qe=pe(Re.descriptor.id);qe&&Re.uniqueId===qe.uniqueId&&delete ee.droppables[Re.descriptor.id]},getById:we,findById:pe,exists:function(Re){return!!pe(Re)},getAllByType:function(Re){return ga(ee.droppables).filter(function(qe){return qe.descriptor.type===Re})}};function ze(){ee.draggables={},ee.droppables={},te.length=0}return{draggable:ve,droppable:Ze,subscribe:ae,clean:ze}}function vo(){var ee=_t(Pi,[]);return(0,b.useEffect)(function(){return function(){requestAnimationFrame(ee.clean)}},[ee]),ee}var Mo=b.createContext(null),Go=function(){var ee=document.body;return ee||tt(!1),ee},Ei={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Sl=function(te){return"rbd-announcement-"+te};function Pl(ee){var te=_t(function(){return Sl(ee)},[ee]),ae=(0,b.useRef)(null);(0,b.useEffect)(function(){var me=document.createElement("div");return ae.current=me,me.id=te,me.setAttribute("aria-live","assertive"),me.setAttribute("aria-atomic","true"),(0,Ie.Z)(me.style,Ei),Go().appendChild(me),function(){setTimeout(function(){var we=Go();we.contains(me)&&we.removeChild(me),me===ae.current&&(ae.current=null)})}},[te]);var ue=St(function(ce){var me=ae.current;if(me){me.textContent=ce;return}},[]);return ue}var Gi=0,El={separator:"::"};function Al(){Gi=0}function Ai(ee,te){return te===void 0&&(te=El),_t(function(){return""+ee+te.separator+Gi++},[te.separator,ee])}function yl(ee){var te=ee.contextId,ae=ee.uniqueId;return"rbd-hidden-text-"+te+"-"+ae}function Fl(ee){var te=ee.contextId,ae=ee.text,ue=Ai("hidden-text",{separator:"-"}),ce=_t(function(){return yl({contextId:te,uniqueId:ue})},[ue,te]);return(0,b.useEffect)(function(){var ve=document.createElement("div");return ve.id=ce,ve.textContent=ae,ve.style.display="none",Go().appendChild(ve),function(){var we=Go();we.contains(ve)&&we.removeChild(ve)}},[ce,ae]),ce}var ui=b.createContext(null),Bl={react:"^16.8.5","react-dom":"^16.8.5"},bl=/(\d+)\.(\d+)\.(\d+)/,ji=function(te){var ae=bl.exec(te);ae==null&&tt(!1);var ue=Number(ae[1]),ce=Number(ae[2]),me=Number(ae[3]);return{major:ue,minor:ce,patch:me,raw:te}},Cl=function(te,ae){return ae.major>te.major?!0:ae.majorte.minor?!0:ae.minor=te.patch},xl=function(ee,te){var ae=ji(ee),ue=ji(te);Cl(ae,ue)},Mu=` + `}},ve=[ue,ae,ce,me];return{always:li(ve,"always"),resting:li(ve,"resting"),dragging:li(ve,"dragging"),dropAnimating:li(ve,"dropAnimating"),userCancel:li(ve,"userCancel")}},Ua=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect,mr=function(){var te=document.querySelector("head");return te||tt(!1),te},br=function(te){var ae=document.createElement("style");return te&&ae.setAttribute("nonce",te),ae.type="text/css",ae};function Wr(ee,te){var ae=_t(function(){return Aa(ee)},[ee]),ue=(0,b.useRef)(null),ce=(0,b.useRef)(null),me=St(Rt(function(Ne){var Re=ce.current;Re||tt(!1),Re.textContent=Ne}),[]),ve=St(function(Ne){var Re=ue.current;Re||tt(!1),Re.textContent=Ne},[]);Ua(function(){!ue.current&&!ce.current||tt(!1);var Ne=br(te),Re=br(te);return ue.current=Ne,ce.current=Re,Ne.setAttribute(Xo+"-always",ee),Re.setAttribute(Xo+"-dynamic",ee),mr().appendChild(Ne),mr().appendChild(Re),ve(ae.always),me(ae.resting),function(){var qe=function(Ln){var Hn=Ln.current;Hn||tt(!1),mr().removeChild(Hn),Ln.current=null};qe(ue),qe(ce)}},[te,ve,me,ae.always,ae.resting,ee]);var pe=St(function(){return me(ae.dragging)},[me,ae.dragging]),we=St(function(Ne){if(Ne==="DROP"){me(ae.dropAnimating);return}me(ae.userCancel)},[me,ae.dropAnimating,ae.userCancel]),Ze=St(function(){ce.current&&me(ae.resting)},[me,ae.resting]),ze=_t(function(){return{dragging:pe,dropping:we,resting:Ze}},[pe,we,Ze]);return ze}var wr=function(ee){return ee&&ee.ownerDocument?ee.ownerDocument.defaultView:window};function no(ee){return ee instanceof wr(ee).HTMLElement}function Oo(ee,te){var ae="["+qo.contextId+'="'+ee+'"]',ue=ka(document.querySelectorAll(ae));if(!ue.length)return null;var ce=dr(ue,function(me){return me.getAttribute(qo.draggableId)===te});return!ce||!no(ce)?null:ce}function ki(ee){var te=(0,b.useRef)({}),ae=(0,b.useRef)(null),ue=(0,b.useRef)(null),ce=(0,b.useRef)(!1),me=St(function(Re,qe){var Pt={id:Re,focus:qe};return te.current[Re]=Pt,function(){var Hn=te.current,Kn=Hn[Re];Kn!==Pt&&delete Hn[Re]}},[]),ve=St(function(Re){var qe=Oo(ee,Re);qe&&qe!==document.activeElement&&qe.focus()},[ee]),pe=St(function(Re,qe){ae.current===Re&&(ae.current=qe)},[]),we=St(function(){ue.current||ce.current&&(ue.current=requestAnimationFrame(function(){ue.current=null;var Re=ae.current;Re&&ve(Re)}))},[ve]),Ze=St(function(Re){ae.current=null;var qe=document.activeElement;qe&&qe.getAttribute(qo.draggableId)===Re&&(ae.current=Re)},[]);Ua(function(){return ce.current=!0,function(){ce.current=!1;var Re=ue.current;Re&&cancelAnimationFrame(Re)}},[]);var ze=_t(function(){return{register:me,tryRecordFocus:Ze,tryRestoreFocusRecorded:we,tryShiftRecord:pe}},[me,Ze,we,pe]);return ze}function Pi(){var ee={draggables:{},droppables:{}},te=[];function ae(Ne){return te.push(Ne),function(){var qe=te.indexOf(Ne);qe!==-1&&te.splice(qe,1)}}function ue(Ne){te.length&&te.forEach(function(Re){return Re(Ne)})}function ce(Ne){return ee.draggables[Ne]||null}function me(Ne){var Re=ce(Ne);return Re||tt(!1),Re}var ve={register:function(Re){ee.draggables[Re.descriptor.id]=Re,ue({type:"ADDITION",value:Re})},update:function(Re,qe){var Pt=ee.draggables[qe.descriptor.id];Pt&&Pt.uniqueId===Re.uniqueId&&(delete ee.draggables[qe.descriptor.id],ee.draggables[Re.descriptor.id]=Re)},unregister:function(Re){var qe=Re.descriptor.id,Pt=ce(qe);Pt&&Re.uniqueId===Pt.uniqueId&&(delete ee.draggables[qe],ue({type:"REMOVAL",value:Re}))},getById:me,findById:ce,exists:function(Re){return!!ce(Re)},getAllByType:function(Re){return fa(ee.draggables).filter(function(qe){return qe.descriptor.type===Re})}};function pe(Ne){return ee.droppables[Ne]||null}function we(Ne){var Re=pe(Ne);return Re||tt(!1),Re}var Ze={register:function(Re){ee.droppables[Re.descriptor.id]=Re},unregister:function(Re){var qe=pe(Re.descriptor.id);qe&&Re.uniqueId===qe.uniqueId&&delete ee.droppables[Re.descriptor.id]},getById:we,findById:pe,exists:function(Re){return!!pe(Re)},getAllByType:function(Re){return fa(ee.droppables).filter(function(qe){return qe.descriptor.type===Re})}};function ze(){ee.draggables={},ee.droppables={},te.length=0}return{draggable:ve,droppable:Ze,subscribe:ae,clean:ze}}function po(){var ee=_t(Pi,[]);return(0,b.useEffect)(function(){return function(){requestAnimationFrame(ee.clean)}},[ee]),ee}var Mo=b.createContext(null),Go=function(){var ee=document.body;return ee||tt(!1),ee},Ei={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Sl=function(te){return"rbd-announcement-"+te};function Pl(ee){var te=_t(function(){return Sl(ee)},[ee]),ae=(0,b.useRef)(null);(0,b.useEffect)(function(){var me=document.createElement("div");return ae.current=me,me.id=te,me.setAttribute("aria-live","assertive"),me.setAttribute("aria-atomic","true"),(0,Ie.Z)(me.style,Ei),Go().appendChild(me),function(){setTimeout(function(){var we=Go();we.contains(me)&&we.removeChild(me),me===ae.current&&(ae.current=null)})}},[te]);var ue=St(function(ce){var me=ae.current;if(me){me.textContent=ce;return}},[]);return ue}var Gi=0,El={separator:"::"};function Al(){Gi=0}function Ai(ee,te){return te===void 0&&(te=El),_t(function(){return""+ee+te.separator+Gi++},[te.separator,ee])}function yl(ee){var te=ee.contextId,ae=ee.uniqueId;return"rbd-hidden-text-"+te+"-"+ae}function Fl(ee){var te=ee.contextId,ae=ee.text,ue=Ai("hidden-text",{separator:"-"}),ce=_t(function(){return yl({contextId:te,uniqueId:ue})},[ue,te]);return(0,b.useEffect)(function(){var ve=document.createElement("div");return ve.id=ce,ve.textContent=ae,ve.style.display="none",Go().appendChild(ve),function(){var we=Go();we.contains(ve)&&we.removeChild(ve)}},[ce,ae]),ce}var ui=b.createContext(null),Bl={react:"^16.8.5","react-dom":"^16.8.5"},bl=/(\d+)\.(\d+)\.(\d+)/,ji=function(te){var ae=bl.exec(te);ae==null&&tt(!1);var ue=Number(ae[1]),ce=Number(ae[2]),me=Number(ae[3]);return{major:ue,minor:ce,patch:me,raw:te}},Cl=function(te,ae){return ae.major>te.major?!0:ae.majorte.minor?!0:ae.minor=te.patch},xl=function(ee,te){var ae=ji(ee),ue=ji(te);Cl(ae,ue)},Mu=` We expect a html5 doctype: This is to ensure consistent browser layout and measurement More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md -`,is=function(ee){var te=ee.doctype;te&&(te.name.toLowerCase(),te.publicId)};function Jd(ee){}function Hi(ee,te){}function ls(){Hi(function(){xl(Bl.react,b.version),is(document)},[])}function fu(ee){var te=(0,b.useRef)(ee);return(0,b.useEffect)(function(){te.current=ee}),te}function us(){var ee=null;function te(){return!!ee}function ae(ve){return ve===ee}function ue(ve){ee&&tt(!1);var pe={abandon:ve};return ee=pe,pe}function ce(){ee||tt(!1),ee=null}function me(){ee&&(ee.abandon(),ce())}return{isClaimed:te,isActive:ae,claim:ue,release:ce,tryAbandon:me}}var ss=9,ds=13,vu=27,Ru=32,cs=33,gs=34,ms=35,fs=36,vs=37,ps=38,hs=39,Ss=40,wl,Ps=(wl={},wl[ds]=!0,wl[ss]=!0,wl),Tu=function(ee){Ps[ee.keyCode]&&ee.preventDefault()},Dl=function(){var ee="visibilitychange";if(typeof document=="undefined")return ee;var te=[ee,"ms"+ee,"webkit"+ee,"moz"+ee,"o"+ee],ae=dr(te,function(ue){return"on"+ue in document});return ae||ee}(),ku=0,Gu=5;function Es(ee,te){return Math.abs(te.x-ee.x)>=Gu||Math.abs(te.y-ee.y)>=Gu}var ju={type:"IDLE"};function As(ee){var te=ee.cancel,ae=ee.completed,ue=ee.getPhase,ce=ee.setPhase;return[{eventName:"mousemove",fn:function(ve){var pe=ve.button,we=ve.clientX,Ze=ve.clientY;if(pe===ku){var ze={x:we,y:Ze},Ne=ue();if(Ne.type==="DRAGGING"){ve.preventDefault(),Ne.actions.move(ze);return}Ne.type!=="PENDING"&&tt(!1);var Re=Ne.point;if(Es(Re,ze)){ve.preventDefault();var qe=Ne.actions.fluidLift(ze);ce({type:"DRAGGING",actions:qe})}}}},{eventName:"mouseup",fn:function(ve){var pe=ue();if(pe.type!=="DRAGGING"){te();return}ve.preventDefault(),pe.actions.drop({shouldBlockNextClick:!0}),ae()}},{eventName:"mousedown",fn:function(ve){ue().type==="DRAGGING"&&ve.preventDefault(),te()}},{eventName:"keydown",fn:function(ve){var pe=ue();if(pe.type==="PENDING"){te();return}if(ve.keyCode===vu){ve.preventDefault(),te();return}Tu(ve)}},{eventName:"resize",fn:te},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ue().type==="PENDING"&&te()}},{eventName:"webkitmouseforcedown",fn:function(ve){var pe=ue();if(pe.type==="IDLE"&&tt(!1),pe.actions.shouldRespectForcePress()){te();return}ve.preventDefault()}},{eventName:Dl,fn:te}]}function ys(ee){var te=(0,b.useRef)(ju),ae=(0,b.useRef)(ha),ue=_t(function(){return{eventName:"mousedown",fn:function(Ne){if(!Ne.defaultPrevented&&Ne.button===ku&&!(Ne.ctrlKey||Ne.metaKey||Ne.shiftKey||Ne.altKey)){var Re=ee.findClosestDraggableId(Ne);if(Re){var qe=ee.tryGetLock(Re,ve,{sourceEvent:Ne});if(qe){Ne.preventDefault();var Pt={x:Ne.clientX,y:Ne.clientY};ae.current(),Ze(qe,Pt)}}}}}},[ee]),ce=_t(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Ne){if(!Ne.defaultPrevented){var Re=ee.findClosestDraggableId(Ne);if(Re){var qe=ee.findOptionsForDraggable(Re);qe&&(qe.shouldRespectForcePress||ee.canGetLock(Re)&&Ne.preventDefault())}}}}},[ee]),me=St(function(){var Ne={passive:!1,capture:!0};ae.current=_n(window,[ce,ue],Ne)},[ce,ue]),ve=St(function(){var ze=te.current;ze.type!=="IDLE"&&(te.current=ju,ae.current(),me())},[me]),pe=St(function(){var ze=te.current;ve(),ze.type==="DRAGGING"&&ze.actions.cancel({shouldBlockNextClick:!0}),ze.type==="PENDING"&&ze.actions.abort()},[ve]),we=St(function(){var Ne={capture:!0,passive:!1},Re=As({cancel:pe,completed:ve,getPhase:function(){return te.current},setPhase:function(Pt){te.current=Pt}});ae.current=_n(window,Re,Ne)},[pe,ve]),Ze=St(function(Ne,Re){te.current.type!=="IDLE"&&tt(!1),te.current={type:"PENDING",point:Re,actions:Ne},we()},[we]);Ua(function(){return me(),function(){ae.current()}},[me])}var yi;function Fs(){}var Bs=(yi={},yi[gs]=!0,yi[cs]=!0,yi[fs]=!0,yi[ms]=!0,yi);function bs(ee,te){function ae(){te(),ee.cancel()}function ue(){te(),ee.drop()}return[{eventName:"keydown",fn:function(me){if(me.keyCode===vu){me.preventDefault(),ae();return}if(me.keyCode===Ru){me.preventDefault(),ue();return}if(me.keyCode===Ss){me.preventDefault(),ee.moveDown();return}if(me.keyCode===ps){me.preventDefault(),ee.moveUp();return}if(me.keyCode===hs){me.preventDefault(),ee.moveRight();return}if(me.keyCode===vs){me.preventDefault(),ee.moveLeft();return}if(Bs[me.keyCode]){me.preventDefault();return}Tu(me)}},{eventName:"mousedown",fn:ae},{eventName:"mouseup",fn:ae},{eventName:"click",fn:ae},{eventName:"touchstart",fn:ae},{eventName:"resize",fn:ae},{eventName:"wheel",fn:ae,options:{passive:!0}},{eventName:Dl,fn:ae}]}function Cs(ee){var te=(0,b.useRef)(Fs),ae=_t(function(){return{eventName:"keydown",fn:function(me){if(me.defaultPrevented||me.keyCode!==Ru)return;var ve=ee.findClosestDraggableId(me);if(!ve)return;var pe=ee.tryGetLock(ve,ze,{sourceEvent:me});if(!pe)return;me.preventDefault();var we=!0,Ze=pe.snapLift();te.current();function ze(){we||tt(!1),we=!1,te.current(),ue()}te.current=_n(window,bs(Ze,ze),{capture:!0,passive:!1})}}},[ee]),ue=St(function(){var me={passive:!1,capture:!0};te.current=_n(window,[ae],me)},[ae]);Ua(function(){return ue(),function(){te.current()}},[ue])}var pu={type:"IDLE"},xs=120,ws=.15;function Ds(ee){var te=ee.cancel,ae=ee.getPhase;return[{eventName:"orientationchange",fn:te},{eventName:"resize",fn:te},{eventName:"contextmenu",fn:function(ce){ce.preventDefault()}},{eventName:"keydown",fn:function(ce){if(ae().type!=="DRAGGING"){te();return}ce.keyCode===vu&&ce.preventDefault(),te()}},{eventName:Dl,fn:te}]}function Ls(ee){var te=ee.cancel,ae=ee.completed,ue=ee.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(me){var ve=ue();if(ve.type!=="DRAGGING"){te();return}ve.hasMoved=!0;var pe=me.touches[0],we=pe.clientX,Ze=pe.clientY,ze={x:we,y:Ze};me.preventDefault(),ve.actions.move(ze)}},{eventName:"touchend",fn:function(me){var ve=ue();if(ve.type!=="DRAGGING"){te();return}me.preventDefault(),ve.actions.drop({shouldBlockNextClick:!0}),ae()}},{eventName:"touchcancel",fn:function(me){if(ue().type!=="DRAGGING"){te();return}me.preventDefault(),te()}},{eventName:"touchforcechange",fn:function(me){var ve=ue();ve.type==="IDLE"&&tt(!1);var pe=me.touches[0];if(pe){var we=pe.force>=ws;if(we){var Ze=ve.actions.shouldRespectForcePress();if(ve.type==="PENDING"){Ze&&te();return}if(Ze){if(ve.hasMoved){me.preventDefault();return}te();return}me.preventDefault()}}}},{eventName:Dl,fn:te}]}function Is(ee){var te=(0,b.useRef)(pu),ae=(0,b.useRef)(ha),ue=St(function(){return te.current},[]),ce=St(function(qe){te.current=qe},[]),me=_t(function(){return{eventName:"touchstart",fn:function(qe){if(!qe.defaultPrevented){var Pt=ee.findClosestDraggableId(qe);if(Pt){var Dn=ee.tryGetLock(Pt,pe,{sourceEvent:qe});if(Dn){var Hn=qe.touches[0],Kn=Hn.clientX,ua=Hn.clientY,ya={x:Kn,y:ua};ae.current(),Ne(Dn,ya)}}}}}},[ee]),ve=St(function(){var qe={capture:!0,passive:!1};ae.current=_n(window,[me],qe)},[me]),pe=St(function(){var Re=te.current;Re.type!=="IDLE"&&(Re.type==="PENDING"&&clearTimeout(Re.longPressTimerId),ce(pu),ae.current(),ve())},[ve,ce]),we=St(function(){var Re=te.current;pe(),Re.type==="DRAGGING"&&Re.actions.cancel({shouldBlockNextClick:!0}),Re.type==="PENDING"&&Re.actions.abort()},[pe]),Ze=St(function(){var qe={capture:!0,passive:!1},Pt={cancel:we,completed:pe,getPhase:ue},Dn=_n(window,Ls(Pt),qe),Hn=_n(window,Ds(Pt),qe);ae.current=function(){Dn(),Hn()}},[we,ue,pe]),ze=St(function(){var qe=ue();qe.type!=="PENDING"&&tt(!1);var Pt=qe.actions.fluidLift(qe.point);ce({type:"DRAGGING",actions:Pt,hasMoved:!1})},[ue,ce]),Ne=St(function(qe,Pt){ue().type!=="IDLE"&&tt(!1);var Dn=setTimeout(ze,xs);ce({type:"PENDING",point:Pt,actions:qe,longPressTimerId:Dn}),Ze()},[Ze,ue,ce,ze]);Ua(function(){return ve(),function(){ae.current();var Pt=ue();Pt.type==="PENDING"&&(clearTimeout(Pt.longPressTimerId),ce(pu))}},[ue,ve,ce]),Ua(function(){var qe=_n(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return qe},[])}function Ns(ee){}var Os={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Hu(ee,te){if(te==null)return!1;var ae=!!Os[te.tagName.toLowerCase()];if(ae)return!0;var ue=te.getAttribute("contenteditable");return ue==="true"||ue===""?!0:te===ee?!1:Hu(ee,te.parentElement)}function Ms(ee,te){var ae=te.target;return no(ae)?Hu(ee,ae):!1}var Rs=function(ee){return na(ee.getBoundingClientRect()).center};function Ts(ee){return ee instanceof wr(ee).Element}var ks=function(){var ee="matches";if(typeof document=="undefined")return ee;var te=[ee,"msMatchesSelector","webkitMatchesSelector"],ae=dr(te,function(ue){return ue in Element.prototype});return ae||ee}();function zu(ee,te){return ee==null?null:ee[ks](te)?ee:zu(ee.parentElement,te)}function Gs(ee,te){return ee.closest?ee.closest(te):zu(ee,te)}function js(ee){return"["+qo.contextId+'="'+ee+'"]'}function Hs(ee,te){var ae=te.target;if(!Ts(ae))return null;var ue=js(ee),ce=Gs(ae,ue);return!ce||!no(ce)?null:ce}function zs(ee,te){var ae=Hs(ee,te);return ae?ae.getAttribute(qo.draggableId):null}function Zs(ee,te){var ae="["+Si.contextId+'="'+ee+'"]',ue=ka(document.querySelectorAll(ae)),ce=dr(ue,function(me){return me.getAttribute(Si.id)===te});return!ce||!no(ce)?null:ce}function Ws(ee){ee.preventDefault()}function Ll(ee){var te=ee.expected,ae=ee.phase,ue=ee.isLockActive,ce=ee.shouldWarn;return!(!ue()||te!==ae)}function Zu(ee){var te=ee.lockAPI,ae=ee.store,ue=ee.registry,ce=ee.draggableId;if(te.isClaimed())return!1;var me=ue.draggable.findById(ce);return!(!me||!me.options.isEnabled||!lo(ae.getState(),ce))}function Vs(ee){var te=ee.lockAPI,ae=ee.contextId,ue=ee.store,ce=ee.registry,me=ee.draggableId,ve=ee.forceSensorStop,pe=ee.sourceEvent,we=Zu({lockAPI:te,store:ue,registry:ce,draggableId:me});if(!we)return null;var Ze=ce.draggable.getById(me),ze=Zs(ae,Ze.descriptor.id);if(!ze||pe&&!Ze.options.canDragInteractiveElements&&Ms(ze,pe))return null;var Ne=te.claim(ve||ha),Re="PRE_DRAG";function qe(){return Ze.options.shouldRespectForcePress}function Pt(){return te.isActive(Ne)}function Dn(rr,Er){Ll({expected:rr,phase:Re,isLockActive:Pt,shouldWarn:!0})&&ue.dispatch(Er())}var Hn=Dn.bind(null,"DRAGGING");function Kn(rr){function Er(){te.release(),Re="COMPLETED"}Re!=="PRE_DRAG"&&(Er(),Re!=="PRE_DRAG"&&tt(!1)),ue.dispatch(eu(rr.liftActionArgs)),Re="DRAGGING";function Xr(Fr,qr){if(qr===void 0&&(qr={shouldBlockNextClick:!1}),rr.cleanup(),qr.shouldBlockNextClick){var oo=_n(window,[{eventName:"click",fn:Ws,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(oo)}Er(),ue.dispatch(ul({reason:Fr}))}return(0,Ie.Z)({isActive:function(){return Ll({expected:"DRAGGING",phase:Re,isLockActive:Pt,shouldWarn:!1})},shouldRespectForcePress:qe,drop:function(qr){return Xr("DROP",qr)},cancel:function(qr){return Xr("CANCEL",qr)}},rr.actions)}function ua(rr){var Er=hn(function(Fr){Hn(function(){return ol({client:Fr})})}),Xr=Kn({liftActionArgs:{id:me,clientSelection:rr,movementMode:"FLUID"},cleanup:function(){return Er.cancel()},actions:{move:Er}});return(0,Ie.Z)({},Xr,{move:Er})}function ya(){var rr={moveUp:function(){return Hn(Lo)},moveRight:function(){return Hn(Ko)},moveDown:function(){return Hn(Ur)},moveLeft:function(){return Hn(ou)}};return Kn({liftActionArgs:{id:me,clientSelection:Rs(ze),movementMode:"SNAP"},cleanup:ha,actions:rr})}function Na(){var rr=Ll({expected:"PRE_DRAG",phase:Re,isLockActive:Pt,shouldWarn:!0});rr&&te.release()}var lr={isActive:function(){return Ll({expected:"PRE_DRAG",phase:Re,isLockActive:Pt,shouldWarn:!1})},shouldRespectForcePress:qe,fluidLift:ua,snapLift:ya,abort:Na};return lr}var Qs=[ys,Cs,Is];function Us(ee){var te=ee.contextId,ae=ee.store,ue=ee.registry,ce=ee.customSensors,me=ee.enableDefaultSensors,ve=[].concat(me?Qs:[],ce||[]),pe=(0,b.useState)(function(){return us()})[0],we=St(function(ua,ya){ua.isDragging&&!ya.isDragging&&pe.tryAbandon()},[pe]);Ua(function(){var ua=ae.getState(),ya=ae.subscribe(function(){var Na=ae.getState();we(ua,Na),ua=Na});return ya},[pe,ae,we]),Ua(function(){return pe.tryAbandon},[pe.tryAbandon]);var Ze=St(function(Kn){return Zu({lockAPI:pe,registry:ue,store:ae,draggableId:Kn})},[pe,ue,ae]),ze=St(function(Kn,ua,ya){return Vs({lockAPI:pe,registry:ue,contextId:te,store:ae,draggableId:Kn,forceSensorStop:ua,sourceEvent:ya&&ya.sourceEvent?ya.sourceEvent:null})},[te,pe,ue,ae]),Ne=St(function(Kn){return zs(te,Kn)},[te]),Re=St(function(Kn){var ua=ue.draggable.findById(Kn);return ua?ua.options:null},[ue.draggable]),qe=St(function(){pe.isClaimed()&&(pe.tryAbandon(),ae.getState().phase!=="IDLE"&&ae.dispatch(Li()))},[pe,ae]),Pt=St(pe.isClaimed,[pe]),Dn=_t(function(){return{canGetLock:Ze,tryGetLock:ze,findClosestDraggableId:Ne,findOptionsForDraggable:Re,tryReleaseLock:qe,isLockClaimed:Pt}},[Ze,ze,Ne,Re,qe,Pt]);Ns(ve);for(var Hn=0;Hn=Gu||Math.abs(te.y-ee.y)>=Gu}var ju={type:"IDLE"};function As(ee){var te=ee.cancel,ae=ee.completed,ue=ee.getPhase,ce=ee.setPhase;return[{eventName:"mousemove",fn:function(ve){var pe=ve.button,we=ve.clientX,Ze=ve.clientY;if(pe===ku){var ze={x:we,y:Ze},Ne=ue();if(Ne.type==="DRAGGING"){ve.preventDefault(),Ne.actions.move(ze);return}Ne.type!=="PENDING"&&tt(!1);var Re=Ne.point;if(Es(Re,ze)){ve.preventDefault();var qe=Ne.actions.fluidLift(ze);ce({type:"DRAGGING",actions:qe})}}}},{eventName:"mouseup",fn:function(ve){var pe=ue();if(pe.type!=="DRAGGING"){te();return}ve.preventDefault(),pe.actions.drop({shouldBlockNextClick:!0}),ae()}},{eventName:"mousedown",fn:function(ve){ue().type==="DRAGGING"&&ve.preventDefault(),te()}},{eventName:"keydown",fn:function(ve){var pe=ue();if(pe.type==="PENDING"){te();return}if(ve.keyCode===vu){ve.preventDefault(),te();return}Tu(ve)}},{eventName:"resize",fn:te},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ue().type==="PENDING"&&te()}},{eventName:"webkitmouseforcedown",fn:function(ve){var pe=ue();if(pe.type==="IDLE"&&tt(!1),pe.actions.shouldRespectForcePress()){te();return}ve.preventDefault()}},{eventName:Dl,fn:te}]}function ys(ee){var te=(0,b.useRef)(ju),ae=(0,b.useRef)(Pa),ue=_t(function(){return{eventName:"mousedown",fn:function(Ne){if(!Ne.defaultPrevented&&Ne.button===ku&&!(Ne.ctrlKey||Ne.metaKey||Ne.shiftKey||Ne.altKey)){var Re=ee.findClosestDraggableId(Ne);if(Re){var qe=ee.tryGetLock(Re,ve,{sourceEvent:Ne});if(qe){Ne.preventDefault();var Pt={x:Ne.clientX,y:Ne.clientY};ae.current(),Ze(qe,Pt)}}}}}},[ee]),ce=_t(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(Ne){if(!Ne.defaultPrevented){var Re=ee.findClosestDraggableId(Ne);if(Re){var qe=ee.findOptionsForDraggable(Re);qe&&(qe.shouldRespectForcePress||ee.canGetLock(Re)&&Ne.preventDefault())}}}}},[ee]),me=St(function(){var Ne={passive:!1,capture:!0};ae.current=qn(window,[ce,ue],Ne)},[ce,ue]),ve=St(function(){var ze=te.current;ze.type!=="IDLE"&&(te.current=ju,ae.current(),me())},[me]),pe=St(function(){var ze=te.current;ve(),ze.type==="DRAGGING"&&ze.actions.cancel({shouldBlockNextClick:!0}),ze.type==="PENDING"&&ze.actions.abort()},[ve]),we=St(function(){var Ne={capture:!0,passive:!1},Re=As({cancel:pe,completed:ve,getPhase:function(){return te.current},setPhase:function(Pt){te.current=Pt}});ae.current=qn(window,Re,Ne)},[pe,ve]),Ze=St(function(Ne,Re){te.current.type!=="IDLE"&&tt(!1),te.current={type:"PENDING",point:Re,actions:Ne},we()},[we]);Ua(function(){return me(),function(){ae.current()}},[me])}var yi;function Fs(){}var Bs=(yi={},yi[gs]=!0,yi[cs]=!0,yi[fs]=!0,yi[ms]=!0,yi);function bs(ee,te){function ae(){te(),ee.cancel()}function ue(){te(),ee.drop()}return[{eventName:"keydown",fn:function(me){if(me.keyCode===vu){me.preventDefault(),ae();return}if(me.keyCode===Ru){me.preventDefault(),ue();return}if(me.keyCode===Ss){me.preventDefault(),ee.moveDown();return}if(me.keyCode===ps){me.preventDefault(),ee.moveUp();return}if(me.keyCode===hs){me.preventDefault(),ee.moveRight();return}if(me.keyCode===vs){me.preventDefault(),ee.moveLeft();return}if(Bs[me.keyCode]){me.preventDefault();return}Tu(me)}},{eventName:"mousedown",fn:ae},{eventName:"mouseup",fn:ae},{eventName:"click",fn:ae},{eventName:"touchstart",fn:ae},{eventName:"resize",fn:ae},{eventName:"wheel",fn:ae,options:{passive:!0}},{eventName:Dl,fn:ae}]}function Cs(ee){var te=(0,b.useRef)(Fs),ae=_t(function(){return{eventName:"keydown",fn:function(me){if(me.defaultPrevented||me.keyCode!==Ru)return;var ve=ee.findClosestDraggableId(me);if(!ve)return;var pe=ee.tryGetLock(ve,ze,{sourceEvent:me});if(!pe)return;me.preventDefault();var we=!0,Ze=pe.snapLift();te.current();function ze(){we||tt(!1),we=!1,te.current(),ue()}te.current=qn(window,bs(Ze,ze),{capture:!0,passive:!1})}}},[ee]),ue=St(function(){var me={passive:!1,capture:!0};te.current=qn(window,[ae],me)},[ae]);Ua(function(){return ue(),function(){te.current()}},[ue])}var pu={type:"IDLE"},xs=120,ws=.15;function Ds(ee){var te=ee.cancel,ae=ee.getPhase;return[{eventName:"orientationchange",fn:te},{eventName:"resize",fn:te},{eventName:"contextmenu",fn:function(ce){ce.preventDefault()}},{eventName:"keydown",fn:function(ce){if(ae().type!=="DRAGGING"){te();return}ce.keyCode===vu&&ce.preventDefault(),te()}},{eventName:Dl,fn:te}]}function Ls(ee){var te=ee.cancel,ae=ee.completed,ue=ee.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(me){var ve=ue();if(ve.type!=="DRAGGING"){te();return}ve.hasMoved=!0;var pe=me.touches[0],we=pe.clientX,Ze=pe.clientY,ze={x:we,y:Ze};me.preventDefault(),ve.actions.move(ze)}},{eventName:"touchend",fn:function(me){var ve=ue();if(ve.type!=="DRAGGING"){te();return}me.preventDefault(),ve.actions.drop({shouldBlockNextClick:!0}),ae()}},{eventName:"touchcancel",fn:function(me){if(ue().type!=="DRAGGING"){te();return}me.preventDefault(),te()}},{eventName:"touchforcechange",fn:function(me){var ve=ue();ve.type==="IDLE"&&tt(!1);var pe=me.touches[0];if(pe){var we=pe.force>=ws;if(we){var Ze=ve.actions.shouldRespectForcePress();if(ve.type==="PENDING"){Ze&&te();return}if(Ze){if(ve.hasMoved){me.preventDefault();return}te();return}me.preventDefault()}}}},{eventName:Dl,fn:te}]}function Is(ee){var te=(0,b.useRef)(pu),ae=(0,b.useRef)(Pa),ue=St(function(){return te.current},[]),ce=St(function(qe){te.current=qe},[]),me=_t(function(){return{eventName:"touchstart",fn:function(qe){if(!qe.defaultPrevented){var Pt=ee.findClosestDraggableId(qe);if(Pt){var Ln=ee.tryGetLock(Pt,pe,{sourceEvent:qe});if(Ln){var Hn=qe.touches[0],Kn=Hn.clientX,ua=Hn.clientY,Fa={x:Kn,y:ua};ae.current(),Ne(Ln,Fa)}}}}}},[ee]),ve=St(function(){var qe={capture:!0,passive:!1};ae.current=qn(window,[me],qe)},[me]),pe=St(function(){var Re=te.current;Re.type!=="IDLE"&&(Re.type==="PENDING"&&clearTimeout(Re.longPressTimerId),ce(pu),ae.current(),ve())},[ve,ce]),we=St(function(){var Re=te.current;pe(),Re.type==="DRAGGING"&&Re.actions.cancel({shouldBlockNextClick:!0}),Re.type==="PENDING"&&Re.actions.abort()},[pe]),Ze=St(function(){var qe={capture:!0,passive:!1},Pt={cancel:we,completed:pe,getPhase:ue},Ln=qn(window,Ls(Pt),qe),Hn=qn(window,Ds(Pt),qe);ae.current=function(){Ln(),Hn()}},[we,ue,pe]),ze=St(function(){var qe=ue();qe.type!=="PENDING"&&tt(!1);var Pt=qe.actions.fluidLift(qe.point);ce({type:"DRAGGING",actions:Pt,hasMoved:!1})},[ue,ce]),Ne=St(function(qe,Pt){ue().type!=="IDLE"&&tt(!1);var Ln=setTimeout(ze,xs);ce({type:"PENDING",point:Pt,actions:qe,longPressTimerId:Ln}),Ze()},[Ze,ue,ce,ze]);Ua(function(){return ve(),function(){ae.current();var Pt=ue();Pt.type==="PENDING"&&(clearTimeout(Pt.longPressTimerId),ce(pu))}},[ue,ve,ce]),Ua(function(){var qe=qn(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return qe},[])}function Ns(ee){}var Os={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Hu(ee,te){if(te==null)return!1;var ae=!!Os[te.tagName.toLowerCase()];if(ae)return!0;var ue=te.getAttribute("contenteditable");return ue==="true"||ue===""?!0:te===ee?!1:Hu(ee,te.parentElement)}function Ms(ee,te){var ae=te.target;return no(ae)?Hu(ee,ae):!1}var Rs=function(ee){return na(ee.getBoundingClientRect()).center};function Ts(ee){return ee instanceof wr(ee).Element}var ks=function(){var ee="matches";if(typeof document=="undefined")return ee;var te=[ee,"msMatchesSelector","webkitMatchesSelector"],ae=dr(te,function(ue){return ue in Element.prototype});return ae||ee}();function zu(ee,te){return ee==null?null:ee[ks](te)?ee:zu(ee.parentElement,te)}function Gs(ee,te){return ee.closest?ee.closest(te):zu(ee,te)}function js(ee){return"["+qo.contextId+'="'+ee+'"]'}function Hs(ee,te){var ae=te.target;if(!Ts(ae))return null;var ue=js(ee),ce=Gs(ae,ue);return!ce||!no(ce)?null:ce}function zs(ee,te){var ae=Hs(ee,te);return ae?ae.getAttribute(qo.draggableId):null}function Zs(ee,te){var ae="["+Si.contextId+'="'+ee+'"]',ue=ka(document.querySelectorAll(ae)),ce=dr(ue,function(me){return me.getAttribute(Si.id)===te});return!ce||!no(ce)?null:ce}function Ws(ee){ee.preventDefault()}function Ll(ee){var te=ee.expected,ae=ee.phase,ue=ee.isLockActive,ce=ee.shouldWarn;return!(!ue()||te!==ae)}function Zu(ee){var te=ee.lockAPI,ae=ee.store,ue=ee.registry,ce=ee.draggableId;if(te.isClaimed())return!1;var me=ue.draggable.findById(ce);return!(!me||!me.options.isEnabled||!lo(ae.getState(),ce))}function Vs(ee){var te=ee.lockAPI,ae=ee.contextId,ue=ee.store,ce=ee.registry,me=ee.draggableId,ve=ee.forceSensorStop,pe=ee.sourceEvent,we=Zu({lockAPI:te,store:ue,registry:ce,draggableId:me});if(!we)return null;var Ze=ce.draggable.getById(me),ze=Zs(ae,Ze.descriptor.id);if(!ze||pe&&!Ze.options.canDragInteractiveElements&&Ms(ze,pe))return null;var Ne=te.claim(ve||Pa),Re="PRE_DRAG";function qe(){return Ze.options.shouldRespectForcePress}function Pt(){return te.isActive(Ne)}function Ln(rr,Er){Ll({expected:rr,phase:Re,isLockActive:Pt,shouldWarn:!0})&&ue.dispatch(Er())}var Hn=Ln.bind(null,"DRAGGING");function Kn(rr){function Er(){te.release(),Re="COMPLETED"}Re!=="PRE_DRAG"&&(Er(),Re!=="PRE_DRAG"&&tt(!1)),ue.dispatch(eu(rr.liftActionArgs)),Re="DRAGGING";function Xr(Fr,qr){if(qr===void 0&&(qr={shouldBlockNextClick:!1}),rr.cleanup(),qr.shouldBlockNextClick){var oo=qn(window,[{eventName:"click",fn:Ws,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(oo)}Er(),ue.dispatch(ul({reason:Fr}))}return(0,Ie.Z)({isActive:function(){return Ll({expected:"DRAGGING",phase:Re,isLockActive:Pt,shouldWarn:!1})},shouldRespectForcePress:qe,drop:function(qr){return Xr("DROP",qr)},cancel:function(qr){return Xr("CANCEL",qr)}},rr.actions)}function ua(rr){var Er=hn(function(Fr){Hn(function(){return ol({client:Fr})})}),Xr=Kn({liftActionArgs:{id:me,clientSelection:rr,movementMode:"FLUID"},cleanup:function(){return Er.cancel()},actions:{move:Er}});return(0,Ie.Z)({},Xr,{move:Er})}function Fa(){var rr={moveUp:function(){return Hn(Lo)},moveRight:function(){return Hn(Ko)},moveDown:function(){return Hn(Ur)},moveLeft:function(){return Hn(ou)}};return Kn({liftActionArgs:{id:me,clientSelection:Rs(ze),movementMode:"SNAP"},cleanup:Pa,actions:rr})}function Na(){var rr=Ll({expected:"PRE_DRAG",phase:Re,isLockActive:Pt,shouldWarn:!0});rr&&te.release()}var lr={isActive:function(){return Ll({expected:"PRE_DRAG",phase:Re,isLockActive:Pt,shouldWarn:!1})},shouldRespectForcePress:qe,fluidLift:ua,snapLift:Fa,abort:Na};return lr}var Qs=[ys,Cs,Is];function Us(ee){var te=ee.contextId,ae=ee.store,ue=ee.registry,ce=ee.customSensors,me=ee.enableDefaultSensors,ve=[].concat(me?Qs:[],ce||[]),pe=(0,b.useState)(function(){return us()})[0],we=St(function(ua,Fa){ua.isDragging&&!Fa.isDragging&&pe.tryAbandon()},[pe]);Ua(function(){var ua=ae.getState(),Fa=ae.subscribe(function(){var Na=ae.getState();we(ua,Na),ua=Na});return Fa},[pe,ae,we]),Ua(function(){return pe.tryAbandon},[pe.tryAbandon]);var Ze=St(function(Kn){return Zu({lockAPI:pe,registry:ue,store:ae,draggableId:Kn})},[pe,ue,ae]),ze=St(function(Kn,ua,Fa){return Vs({lockAPI:pe,registry:ue,contextId:te,store:ae,draggableId:Kn,forceSensorStop:ua,sourceEvent:Fa&&Fa.sourceEvent?Fa.sourceEvent:null})},[te,pe,ue,ae]),Ne=St(function(Kn){return zs(te,Kn)},[te]),Re=St(function(Kn){var ua=ue.draggable.findById(Kn);return ua?ua.options:null},[ue.draggable]),qe=St(function(){pe.isClaimed()&&(pe.tryAbandon(),ae.getState().phase!=="IDLE"&&ae.dispatch(Li()))},[pe,ae]),Pt=St(pe.isClaimed,[pe]),Ln=_t(function(){return{canGetLock:Ze,tryGetLock:ze,findClosestDraggableId:Ne,findOptionsForDraggable:Re,tryReleaseLock:qe,isLockClaimed:Pt}},[Ze,ze,Ne,Re,qe,Pt]);Ns(ve);for(var Hn=0;Hni in r?a(r,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[i]=l,c=(r,i)=>{for(var l in i||(i={}))s.call(i,l)&&o(r,l,i[l]);if(t)for(var l of t(i))u.call(i,l)&&o(r,l,i[l]);return r};const n=({cancelText:r="\u53D6\u6D88",okText:i="\u786E\u5B9A",loading:l=!1,hasOkBtn:d=!0,hasCancelBtn:E=!0,okButtonProps:v={},onCancel:m=()=>{},onOk:p=()=>{},className:S=""})=>x.createElement("div",{className:f()(e.buttonFixed,S)},x.createElement("div",{className:e.buttonWrap},E&&x.createElement(pe.ZP,{size:"middle",className:`${e.button} mr20`,onClick:m},r),d&&x.createElement(pe.ZP,c({size:"middle",type:"primary",className:`${e.button} mr20`,loading:l,onClick:p},v),i)))},23734:function(Nt,Ve,w){"use strict";w.d(Ve,{i:function(){return g},Z:function(){return y}});var x={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},pe=w(71418),e=w(6848),I=w(93948),f=w(92310),a=w.n(f),t=w(22566),s=w(21692),u=w(16624),o=w(79005),c=w(20345),n=w(77882),r=w(31081),i=w(75309),l=w(71979),d=w(47558),E=w(42922),v=w(66832),m=w(96593),p=w(19664),S=w(91833),C=w(59301);const g=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:o,swimg:c},{name:"101\u8BA1\u5212",ptimg:n,swimg:r},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:i,swimg:l},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:d,swimg:E},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:v,swimg:m},{name:"\u519B\u961F\u4E00\u6D41",ptimg:p,swimg:S}];var y=({className:b,dataSource:h=[],col:A=4,right:B,bottom:k=23,precision:R=0,wrapWidth:M=1200,trackEventItems:z,loading:K,onRemove:W=()=>{},isCurrent:Y=!0,showAlias:H=!1,showProgress:re=!1})=>{const G=Math.floor((M-(A-1)*B)/A),ee=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(X=>(window.ENV==="build"&&(X.ptimg=`/react/build${X.ptimg}`,X.swimg=`/react/build${X.swimg}`),X));return C.createElement(pe.Z,{spinning:K},C.createElement("div",{className:a()(x.list,b)},!!(h!=null&&h.length)&&(h==null?void 0:h.map((X,Q)=>{var q,$,le,se,Ee,Se;const{name:ie,id:L,identifier:J,featured:N,school_name:Z,image_url:ne,excellent:U,is_plan:D}=X;return C.createElement("div",{key:L,className:Y&&re?x.wrapisCurrent:x.wrap,style:{width:G,marginRight:(1+Q)%A===0?0:B+R,marginBottom:k}},C.createElement("a",{className:x.li,onClick:T=>{T.preventDefault(),T.stopPropagation(),z&&(0,t.L9)([z]),(0,t.xg)(`/paths/${J}`)}},C.createElement("div",{className:x.img},C.createElement("img",{className:x.cover,src:`${ne}`}),Y&&(0,u.bg)()&&(X==null?void 0:X.studying)&&C.createElement("div",{className:`${x.movebq} user-path-items`,onClick:T=>{T.stopPropagation(),W(X)}},C.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),C.createElement("span",{className:"c-red"},"\u79FB\u9664")),(q=X==null?void 0:X.subject_tags)==null?void 0:q.map((T,P)=>{var j,F;if(P===0){const ae=(j=ee.find(V=>V.name==T))==null?void 0:j.swimg;return C.createElement("img",{className:x.sign,src:ae,style:{left:"-4px"}})}const te=(F=ee.find(ae=>ae.name==T))==null?void 0:F.ptimg;return C.createElement("img",{className:x.sign,src:te,style:{left:`${48+52*(P-1)+2*P}px`}})}),C.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(X==null?void 0:X.excellent)&&C.createElement("div",{className:x.bq},"\u5F00\u653E\u8BFE\u7A0B"))),C.createElement("div",{className:x.name},C.createElement(e.Z,{title:H&&(X!=null&&X.excellent_alias_name)?C.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ie}`,C.createElement("br",null),C.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${X==null?void 0:X.excellent_alias_name}`)):ie},C.createElement("span",{className:x.e},H&&(X==null?void 0:X.excellent_alias_name)||ie))),Y&&re&&(($=X==null?void 0:X.progress)==null?void 0:$.all_score)!=0&&C.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},C.createElement(I.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((le=X==null?void 0:X.progress)==null?void 0:le.my_score)/((se=X==null?void 0:X.progress)==null?void 0:se.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ee=X==null?void 0:X.progress)==null?void 0:Ee.my_score,"/",(Se=X==null?void 0:X.progress)==null?void 0:Se.all_score),(!Y||!re)&&C.createElement("div",{className:x.tags},C.createElement("div",null,C.createElement(e.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},C.createElement("span",null,C.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),C.createElement("span",null,X.stages_count))),C.createElement(e.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},C.createElement("span",null,C.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),C.createElement("span",null,X.members_count)))))))})),!h.length&&C.createElement(s.Z,null)))}},2751:function(Nt,Ve,w){"use strict";w.d(Ve,{jL:function(){return f},w9:function(){return Ae},dN:function(){return ue},QD:function(){return Qe},cQ:function(){return se.Z},Oz:function(){return ae},op:function(){return fe},O5:function(){return $e},_b:function(){return dt},t7:function(){return h},Gi:function(){return ut},YG:function(){return ke},kT:function(){return Fe},qp:function(){return E},K3:function(){return p},vr:function(){return ft},qE:function(){return he},Je:function(){return k},wb:function(){return Q},lB:function(){return le},cq:function(){return Lt},tp:function(){return g},Si:function(){return jt},k8:function(){return un},Du:function(){return cn}});var x=w(59301),pe={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCz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wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",f=({dataSource:_e=[],img:qe,imgWidth:st=346,title:yt,sunTitle:Ct,bannerExtraContent:Xt})=>x.createElement("div",{className:pe.banner},x.createElement("div",{className:pe.content},x.createElement("aside",null,x.createElement("p",null,x.createElement("b",null,yt),x.createElement("span",null,Ct)),_e.length>0&&x.createElement("div",{className:pe.btns},_e.map((Bt,It)=>x.createElement("div",{key:It,onClick:Bt.click},Bt.name,Bt.sign?x.createElement("img",{src:e,width:39}):null))),Xt),qe&&x.createElement("img",{style:{marginTop:33,marginRight:38},src:qe,width:st}))),a={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},t=w(92310),s=w.n(t),u=w(89392),o=Object.defineProperty,c=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,i=(_e,qe,st)=>qe in _e?o(_e,qe,{enumerable:!0,configurable:!0,writable:!0,value:st}):_e[qe]=st,l=(_e,qe)=>{for(var st in qe||(qe={}))n.call(qe,st)&&i(_e,st,qe[st]);if(c)for(var st of c(qe))r.call(qe,st)&&i(_e,st,qe[st]);return _e},E=({dataSource:_e=[],value:qe,onChange:st,onTitleChange:yt,className:Ct,title:Xt,titleWidth:Bt=41,style:It={},fontColor:bt="#6A7283",showCount:Kt,classNameActive:Gt,styleItem:Yt={}})=>{const[In,xn]=(0,x.useState)(0),[Bn,Dn]=(0,x.useState)(!1),Jn=(0,x.useRef)(null),rr=(0,x.useRef)(null);return(0,x.useEffect)(()=>{var or;_e.length!==0&&(((or=Jn==null?void 0:Jn.current)==null?void 0:or.clientHeight)>97?xn(1):xn(0)),_e.length===0&&xn(0),Dn(!1)},[_e]),x.createElement("div",{className:s()(a.row,Ct),style:It},x.createElement("div",{onClick:(0,u.throttle)(()=>yt==null?void 0:yt(),2e3),style:{width:Bt,marginTop:Bn?12:4},className:`${a.title} ${yt?"current":""}`},Xt),x.createElement("div",{className:Bn?`${a.tagsWrap} ${a.tagsBorderWrap}`:a.tagsWrap},x.createElement("div",{className:a.bar,ref:rr,style:In>0?{height:In===1?97:"auto",overflow:In===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},x.createElement("div",{className:a.tag,ref:Jn},_e==null?void 0:_e.map(or=>x.createElement("span",{onClick:()=>st(or.id),key:or.id,style:l(l({color:bt},Yt),(or==null?void 0:or.style)||{}),className:qe===or.id?s()(Gt||a.active,or.classNameActive):""},x.createElement("span",{title:or.name,className:a.name},or.name),!!Kt&&x.createElement("span",{className:a.num},or.count))))),!!In&&x.createElement(x.Fragment,null,In===1?x.createElement("div",{onClick:()=>{var or;xn(2),((or=Jn==null?void 0:Jn.current)==null?void 0:or.clientHeight)>245?Dn(!0):Dn(!1)},className:a.action},"\u5C55\u5F00",x.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):x.createElement("div",{onClick:()=>{rr.current.scrollTop=0,xn(1),Dn(!1)},className:a.action},"\u6536\u8D77",x.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},v={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},p=({dataSource:_e=[],value:qe,onChange:st,onTitleChange:yt,className:Ct,title:Xt,titleWidth:Bt=41,style:It={},fontColor:bt="#6A7283",showCount:Kt,expand:Gt=!0})=>{const[Yt,In]=(0,x.useState)(0),[xn,Bn]=(0,x.useState)(!1),Dn=(0,x.useRef)(null),Jn=(0,x.useRef)(null),[rr,or]=(0,x.useState)(Gt);return x.createElement("div",{className:s()(v.row,Ct),style:It},x.createElement("div",{className:"flex item-center justify-between"},x.createElement("div",{onClick:(0,u.throttle)(()=>yt==null?void 0:yt(),2e3),style:{width:Bt,marginTop:xn?12:4},className:`${v.title} ${yt?"current":""}`},Xt),x.createElement("i",{className:`iconfont ${rr?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:rr?8:10},onClick:()=>or(!rr)})),rr&&x.createElement("div",{className:xn?`${v.tagsWrap} ${v.tagsBorderWrap}`:v.tagsWrap},x.createElement("div",{className:v.fenge}),x.createElement("div",{className:v.bar,ref:Jn},x.createElement("div",{className:v.tag,ref:Dn},_e==null?void 0:_e.map(tr=>x.createElement("span",{onClick:()=>st(tr.id),key:tr.id,style:{color:bt},className:qe===tr.id?v.active:""},x.createElement("span",{title:tr.name,className:v.name},tr.name),!!Kt&&x.createElement("span",{className:v.num},tr.count)))))))},S={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},g=({dataSource:_e=[],value:qe,onChange:st,className:yt,style:Ct={}})=>x.createElement("div",{style:Ct,className:s()(S.tabs,yt)},_e.map(Xt=>x.createElement("span",{onClick:()=>st(Xt.id),className:qe===Xt.id?S.active:"",key:Xt.id},Xt.name))),O={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},y=w(92832),h=({dataSource:_e=[],value:qe="",onChange:st,onInputChange:yt=()=>{},className:Ct,style:Xt={},placeholder:Bt,allowClear:It=!1})=>{var bt;const[Kt,Gt]=(0,x.useState)(""),[Yt,In]=(0,x.useState)("");(0,x.useEffect)(()=>{var Dn;let Jn=qe;(Dn=JSON.stringify(qe))!=null&&Dn.includes("{")&&(Gt(qe.id),Jn=qe.value||"");try{In(decodeURIComponent(Jn||""))}catch(rr){In(decodeURIComponent(Jn||""))}},[qe]);const xn=()=>{st(encodeURIComponent(Yt),Kt||null)},Bn=Dn=>{Dn!==Kt&&(Gt(Dn),st(encodeURIComponent(Yt),Dn))};return x.createElement("div",{className:s()(O.input,Ct),style:Xt},!!_e.length&&x.createElement("div",{className:O.dropdown},x.createElement("div",{className:O.text},(bt=_e.find(Dn=>Dn.id===Kt))==null?void 0:bt.name,x.createElement("i",{className:"iconfont icon-zhankai4"}),x.createElement("b",{className:O.b1}),x.createElement("b",{className:O.b2})),x.createElement("div",{className:O.menu},_e.map((Dn,Jn)=>x.createElement("div",{key:Jn,onClick:()=>Bn(Dn.id)},Dn.name)))),x.createElement(y.default,{onPressEnter:xn,value:Yt,onChange:Dn=>{In(Dn.target.value),yt(encodeURIComponent(Dn.target.value),Kt||null)},bordered:!1,placeholder:Bt}),x.createElement("i",{onClick:xn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},A={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},k=({value:_e,onChange:qe,className:st,total:yt,pageSize:Ct,style:Xt={}})=>{const Bt=_e<2,It=_e>=Math.ceil(yt/Ct);return yt<=Ct?x.createElement(x.Fragment,null):x.createElement("div",{className:s()(A.quickPager,st),style:Xt},x.createElement("div",{onClick:()=>{Bt||qe(_e-1,"prev")},className:Bt?A.disabled:""},"\u4E0A\u4E00\u9875"),x.createElement("div",{onClick:()=>{It||qe(_e+1,"next")},className:It?A.disabled:""},"\u4E0B\u4E00\u9875"))},R={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},M=w(71418),z=w(6848),K=w(13570),W=w(11662),Y=w(22566),H=w(96908),re=w(57177),G=w(81378),ee=w(21692),Q=({className:_e,dataSource:qe=[],col:st=4,right:yt,bottom:Ct=23,precision:Xt=0,wrapWidth:Bt=1200,trackEventItems:It,loading:bt})=>{const Kt=Math.floor((Bt-(st-1)*yt)/st);return x.createElement(M.Z,{spinning:bt},x.createElement("div",{className:s()(R.list,_e)},!!qe.length&&qe.map((Gt,Yt)=>{const{name:In,id:xn,identifier:Bn,power:Dn,cover_image_id:Jn,pic:rr}=Gt;return x.createElement("div",{className:R.wrap,key:xn,style:{width:Kt,marginRight:(1+Yt)%st===0?0:yt+Xt,marginBottom:Ct}},x.createElement("a",{target:"_blank",href:`/shixuns/${Bn}/challenges`,className:R.li,onClick:or=>{or.preventDefault(),It&&(0,Y.L9)([It]),Dn&&(0,Y.xg)(`/shixuns/${Bn}/challenges`)}},x.createElement("div",{className:R.img},x.createElement("img",{className:R.cover,src:`${rr}`}),Gt.is_jupyter&&x.createElement("img",{className:R.sign,src:H}),Gt.is_jupyter_lab&&x.createElement("img",{className:R.sign,src:re}),Gt.is_unity_3d&&x.createElement("img",{className:R.sign,src:G})),x.createElement("div",{className:R.name},x.createElement(z.Z,{title:In||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},x.createElement("span",{className:R.e},In||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),x.createElement("div",{className:R.tags},x.createElement(z.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},x.createElement("span",null,x.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),x.createElement("span",null,Gt.challenges_count))),!!Gt.myshixuns_count&&x.createElement(z.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},x.createElement("span",null,x.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),x.createElement("span",null,Gt.myshixuns_count))),x.createElement(z.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},x.createElement("span",null,x.createElement("span",null,Gt.level))),x.createElement("div",{className:R.rate},x.createElement(K.Z,{allowHalf:!0,disabled:!0,defaultValue:Gt.score_info}),x.createElement("span",null,"\xA0",Gt.score_info?`${Gt.score_info}\u5206`:"5\u5206")))),!Dn&&x.createElement("div",{className:R.lockWrap},x.createElement("img",{src:`${W.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),x.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!qe.length&&x.createElement(ee.Z,null)))},q={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},le=({className:_e,dataSource:qe=[],col:st=4,right:yt,bottom:Ct=23,precision:Xt=0,wrapWidth:Bt=1200,wrapClassName:It,trackEventItems:bt,loading:Kt})=>{const Gt=Math.floor((Bt-(st-1)*yt)/st);return x.createElement(M.Z,{spinning:Kt},x.createElement("div",{className:s()(q.list,_e)},!!qe.length&&qe.map((Yt,In)=>{const{name:xn,id:Bn,identifier:Dn,power:Jn,cover_image_id:rr,pic:or}=Yt;return x.createElement("div",{className:s()(q.wrap,It),key:Bn,style:{width:Gt,marginRight:(1+In)%st===0?0:yt+Xt,marginBottom:Ct}},x.createElement("a",{target:"_blank",href:`/shixuns/${Dn}/challenges`,className:q.li,onClick:tr=>{tr.preventDefault(),bt&&(0,Y.L9)([bt]),Jn&&(0,Y.xg)(`/shixuns/${Dn}/challenges`)}},x.createElement("img",{src:w(47621),className:q.titleBg}),x.createElement("div",{className:q.name},x.createElement(z.Z,{title:xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},x.createElement("span",{className:q.e},xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),x.createElement("div",{style:{padding:"14px",paddingBottom:0}},x.createElement("div",{className:q.img},x.createElement("img",{className:q.cover,src:rr?`${W.Z.API_SERVER}/api/attachments/${rr}`:`${W.Z.IMG_SERVER+or}`}),Yt.is_jupyter&&x.createElement("div",{className:q.bq},"Jupyter"),Yt.is_jupyter_lab&&x.createElement("div",{className:q.bq},"JupyterLab"),Yt.is_unity_3d&&x.createElement("div",{className:q.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),x.createElement("div",{className:"mt20 flex item-center justify-between"},x.createElement("div",null,x.createElement("span",{className:q.text},"\u5B66\u4E60\u4EBA\u6570"),x.createElement("span",{className:q.value},Yt.myshixuns_count)),x.createElement("div",null,x.createElement("span",{className:q.text},"\u56F0\u96BE\u7B49\u7EA7"),x.createElement("span",{className:q.value},Yt.level))),x.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},x.createElement("div",null,x.createElement("span",{className:q.text},"\u5173\u5361\u6570"),x.createElement("span",{className:q.value},Yt.challenges_count)),x.createElement("div",{className:q.rate},x.createElement(K.Z,{allowHalf:!0,disabled:!0,defaultValue:Yt.score_info}),x.createElement("span",{className:q.value,style:{color:"#FF9C00"}},"\xA0",Yt.score_info?`${Yt.score_info}\u5206`:"5\u5206"))))),!Jn&&x.createElement("div",{className:q.lockWrap},x.createElement("img",{src:`${W.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),x.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!qe.length&&x.createElement(ee.Z,null)))},se=w(23734),Ee={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},Se=w(79005),ie=w(20345),L=w(77882),J=w(31081),N=w(75309),Z=w(71979),ne=w(47558),U=w(42922),D=w(66832),T=w(96593),P=w(19664),j=w(91833);const F=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Se,swimg:ie},{name:"101\u8BA1\u5212",ptimg:L,swimg:J},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:N,swimg:Z},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:ne,swimg:U},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:D,swimg:T},{name:"\u519B\u961F\u4E00\u6D41",ptimg:P,swimg:j}];var ae=({className:_e,dataSource:qe=[],col:st=4,right:yt,bottom:Ct=23,precision:Xt=0,wrapWidth:Bt=1200,trackEventItems:It,loading:bt,wrapClassName:Kt,imgClassName:Gt,isArrow:Yt=!1})=>{const In=Math.floor((Bt-(st-1)*yt)/st),[xn,Bn]=(0,x.useState)(),[Dn,Jn]=(0,x.useState)(),rr=tr=>Bn(tr),or=()=>Bn(-1);return x.createElement(M.Z,{spinning:bt},x.createElement("div",{className:s()(Ee.list,_e)},!!(qe!=null&&qe.length)&&(qe==null?void 0:qe.map((tr,ir)=>{var Rr;const{name:Lr,id:Qr,identifier:Pr,featured:_r,school_name:va,image_url:Jr,excellent:ba,is_plan:ha}=tr;return x.createElement("div",{key:Qr,className:s()(Ee.wrap,Kt),style:{width:In,marginRight:(1+ir)%st===0?0:yt+Xt,marginBottom:Ct}},x.createElement("a",{target:"_blank",href:`/paths/${Pr}`,className:Ee.li,onClick:Gn=>{Gn.preventDefault(),It&&(0,Y.L9)([It]),(0,Y.xg)(`/paths/${Pr}`)}},x.createElement("img",{src:w(39057),className:Ee.titleBg}),x.createElement("div",{className:Ee.name},x.createElement(z.Z,{title:Lr},x.createElement("span",{className:Ee.e,style:{color:Yt&&xn===ir?"#145DFF":"#000000"},onMouseEnter:()=>{rr(ir)},onMouseLeave:or},Lr))),x.createElement("div",{style:{padding:"14px",paddingBottom:0}},x.createElement("div",{className:s()(Ee.img,Gt)},x.createElement("img",{className:Ee.cover,src:`${W.Z.IMG_SERVER+Jr}`}),(Rr=tr==null?void 0:tr.subject_tags)==null?void 0:Rr.map((Gn,$n)=>{var gr,nr;if($n===0){const Cr=(gr=F.find(zr=>zr.name==Gn))==null?void 0:gr.swimg;return x.createElement("img",{className:Ee.sign,src:Cr,style:{left:"-4px"}})}const pr=(nr=F.find(Cr=>Cr.name==Gn))==null?void 0:nr.ptimg;return x.createElement("img",{className:Ee.sign,src:pr,style:{left:`${48+52*($n-1)+2*$n}px`}})}),x.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(tr==null?void 0:tr.excellent)&&x.createElement("div",{className:Ee.bq},"\u5F00\u653E\u8BFE\u7A0B"))),x.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},x.createElement("div",null,x.createElement("span",{className:Ee.text},"\u7AE0\u8282\u6570"),x.createElement("span",{className:Ee.value},tr.stages_count)),x.createElement("div",null,x.createElement("span",{className:Ee.text},"\u5B66\u4E60\u4EBA\u6570"),x.createElement("span",{className:Ee.value},tr.members_count))))))})),!qe.length&&x.createElement(ee.Z,null)))},V={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},de="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOfRbyZh7Xy9B7hnAzOzmCpUvA/jDC2WvbReogE3/TTLufo6IKu0+38r9PQE4n+f1VVS+B+ZbWhnEBX8P0Q4H7gc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Bm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",we=w(59301),Ae=({className:_e,dataSource:qe=[],col:st=4,right:yt,bottom:Ct=23,precision:Xt=0,wrapWidth:Bt=1200,trackEventItems:It,loading:bt})=>{const Kt=Math.floor((Bt-(st-1)*yt)/st);return we.createElement(M.Z,{spinning:bt},we.createElement("div",{className:s()(V.list,_e)},!!qe.length&&qe.map((Gt,Yt)=>{const{subject_identifier:In,id:xn,identifier:Bn,power:Dn}=Gt,Jn=Gt.is_public!=0&&Gt.is_public;return we.createElement("div",{className:V.wrap,key:xn,style:{width:Kt,marginRight:(1+Yt)%st===0?0:yt+Xt,marginBottom:Ct}},we.createElement("a",{className:V.li,onClick:rr=>{rr.preventDefault(),It&&(0,Y.L9)([It]),(0,Y.xg)(Gt.first_category_url)}},we.createElement("div",{className:V.top},we.createElement(z.Z,{title:Gt.name},we.createElement("div",{className:V.name},Gt.name)),we.createElement("img",{className:V.img,src:W.Z.IMG_SERVER+"/images/"+Gt.avatar_url}),we.createElement("div",{className:V.text,title:Gt.creator},Gt.creator),In&&we.createElement("div",{className:V.btns},we.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),we.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Jn&&we.createElement("div",{className:V.sign},"\u516C\u5F00")),we.createElement("div",{className:V.bottom},Gt.visits>0&&we.createElement(z.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-liulanyan"}),we.createElement("span",null,Gt.visits))),Gt.course_members_count>0&&we.createElement(z.Z,{title:"\u6210\u5458",placement:"bottom"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-chengyuan"}),Gt.course_members_count)),Gt.tasks_count>0&&we.createElement(z.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-zuoye"}),Gt.tasks_count)),Gt.is_end?we.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):we.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Gt.is_accessible&&we.createElement("div",{className:V.lockWrap},we.createElement("img",{src:`${W.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),we.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!qe.length&&we.createElement(ee.Z,null)))},ve={flex_box_center:"flex_box_center___PuarE",flex_space_between:"flex_space_between___q4lAa",flex_box_vertical_center:"flex_box_vertical_center___wsb8w",flex_box_center_end:"flex_box_center_end___H781P",flex_box_column:"flex_box_column___bHK1y",list:"list___e2XDo",wrap:"wrap___cz7sh",lockWrap:"lockWrap___EPuRr",creator:"creator___Y6Xjp",img:"img___kSEud",text:"text___GIlhY",top:"top___K4GCD",sign:"sign___KCjEP",name:"name___z3U4d",middle:"middle___LeUM5",row:"row___VBzfJ",value:"value___qigWu",btns:"btns___kGysm",bottom:"bottom___yPYd5",warpStyle:"warpStyle___pH3uC"},oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+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gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",ue=({className:_e,dataSource:qe=[],col:st=4,right:yt,bottom:Ct=23,precision:Xt=0,wrapWidth:Bt=1200,wrapClassName:It,trackEventItems:bt,loading:Kt})=>{const Gt=Math.floor((Bt-(st-1)*yt)/st);return x.createElement(M.Z,{spinning:Kt},x.createElement("div",{className:s()(ve.list,_e)},!!qe.length&&qe.map((Yt,In)=>{const{subject_identifier:xn,id:Bn,identifier:Dn,power:Jn}=Yt,rr=Yt.is_public!=0&&Yt.is_public;return x.createElement("div",{className:s()(`${ve.wrap} ${Yt.is_accessible?"":ve.warpStyle}`,It),key:Bn,style:{width:Gt,marginRight:(1+In)%st===0?0:yt+Xt,marginBottom:Ct}},x.createElement("a",{className:ve.li,onClick:or=>{or.preventDefault(),bt&&(0,Y.L9)([bt]),(0,Y.xg)(Yt.first_category_url)}},x.createElement("div",{className:ve.creator},x.createElement("img",{className:ve.img,src:W.Z.IMG_SERVER+"/images/"+Yt.avatar_url}),x.createElement("div",{className:ve.text,title:Yt.creator},Yt.creator)),x.createElement("div",{className:ve.top},x.createElement(z.Z,{title:Yt.name},x.createElement("div",{className:ve.name},Yt.name)),rr&&x.createElement("div",{className:ve.sign},"\u516C\u5F00")),x.createElement("div",{className:ve.middle},x.createElement("div",{className:ve.row,style:{marginBottom:6}},x.createElement("div",null,x.createElement("span",{className:ve.text},"\u8BBF\u95EE\u91CF"),x.createElement("span",{className:ve.value},(Yt==null?void 0:Yt.visits)||0)),x.createElement("div",null,x.createElement("span",{className:ve.text},"\u6210\u5458"),x.createElement("span",{className:ve.value},(Yt==null?void 0:Yt.course_members_count)||0))),x.createElement("div",{className:ve.row},x.createElement("div",null,x.createElement("span",{className:ve.text,style:{width:42}},"\u4F5C",x.createElement("span",{style:{marginLeft:14}},"\u4E1A")),x.createElement("span",{className:ve.value},(Yt==null?void 0:Yt.tasks_count)||0)),x.createElement("div",null,x.createElement("span",{className:ve.text},"\u72B6\u6001"),Yt.is_end?x.createElement("span",{className:ve.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):x.createElement("span",{className:ve.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),xn&&x.createElement("div",{className:ve.btns},x.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),x.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!Yt.is_accessible&&x.createElement("div",{className:ve.lockWrap},x.createElement("img",{src:`${W.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),x.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!qe.length&&x.createElement(ee.Z,null)))},ye={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Ce=w(90115),ke=({dataSource:_e=[],value:qe,onChange:st,className:yt,style:Ct={},tabBarExtraContent:Xt})=>x.createElement("div",{className:s()(ye.tabs,yt),style:Ct},x.createElement("div",{className:ye.tabsWrap},_e.map((Bt,It)=>x.createElement("aside",{className:ye.tab,onClick:()=>{st(Bt.id),Bt.link&&Ce.history.push(Bt.link)},key:It},x.createElement("div",{className:qe===Bt.id?ye.active:""},Bt.name),(Bt==null?void 0:Bt.resetCount)==null&&(Bt==null?void 0:Bt.total)!==void 0&&x.createElement("span",null,"\uFF08",Bt==null?void 0:Bt.total,"\uFF09"),(Bt==null?void 0:Bt.resetCount)!==void 0&&(Bt==null?void 0:Bt.total)!==void 0&&x.createElement(z.Z,{title:(Bt==null?void 0:Bt.tip)!=null?Bt==null?void 0:Bt.tip:""},x.createElement("span",{style:{color:"#9096A3"}},"\uFF08",x.createElement("span",{style:{color:"#000"}},Bt==null?void 0:Bt.resetCount),"/",x.createElement("span",null,Bt==null?void 0:Bt.total),"\uFF09"))))),x.createElement("div",{className:ye.tabBar},Xt)),Xe={flex_box_center:"flex_box_center___itkVp",flex_space_between:"flex_space_between___F4yZx",flex_box_vertical_center:"flex_box_vertical_center___ko4cu",flex_box_center_end:"flex_box_center_end___cCBYR",flex_box_column:"flex_box_column___Mpq6K",tabs:"tabs___qRAhL",tabsWrap:"tabsWrap___CGRvS",tab:"tab___eYne_",active:"active___swSx6"},Fe=({dataSource:_e=[],value:qe,onChange:st,className:yt,style:Ct={},tabBarExtraContent:Xt})=>x.createElement("div",{className:s()(Xe.tabs,yt),style:Ct},x.createElement("div",{className:Xe.tabsWrap},_e.map((Bt,It)=>x.createElement("aside",{className:Xe.tab,onClick:()=>{st(Bt.id),Bt.link&&Ce.history.push(Bt.link)},key:It},x.createElement("div",{className:qe===Bt.id?Xe.active:""},Bt.name),(Bt==null?void 0:Bt.resetCount)==null&&(Bt==null?void 0:Bt.total)!==void 0&&x.createElement("span",null,"\uFF08",Bt==null?void 0:Bt.total,"\uFF09"),(Bt==null?void 0:Bt.resetCount)!==void 0&&(Bt==null?void 0:Bt.total)!==void 0&&x.createElement(z.Z,{title:(Bt==null?void 0:Bt.tip)!=null?Bt==null?void 0:Bt.tip:""},x.createElement("span",{style:{color:"#9096A3"}},"\uFF08",x.createElement("span",{style:{color:"#000"}},Bt==null?void 0:Bt.resetCount),"/",x.createElement("span",null,Bt==null?void 0:Bt.total),"\uFF09"))))),x.createElement("div",{className:Xe.tabBar},Xt)),ut=({className:_e,style:qe={},children:st})=>x.createElement("div",{className:s()(_e),style:qe},st),ht={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Ft=w(38854),Ht=w(20834);const At=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Lt=({sortValue:_e,dropValue:qe,className:st,onSort:yt,onDrop:Ct,dataSource:Xt=At})=>{var Bt;return x.createElement("div",{className:s()(ht.orderWrap,st)},x.createElement(Ft.Z,{dropdownRender:()=>x.createElement(Ht.default,null,Xt.map((It,bt)=>x.createElement(Ht.default.Item,{key:bt,onClick:()=>Ct(It.id)},It.name)))},x.createElement("span",{className:ht.orderTextWrap},(Bt=Xt.find(It=>qe===It.id))==null?void 0:Bt.name)),x.createElement("span",{className:ht.orderIconWrap},x.createElement("span",{className:ht.orderAsc},x.createElement("i",{className:_e==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ht.cursorPointer} ${ht.active}`:`iconfont icon-sanjiaoxing-up font12 ${ht.cursorPointer}`,onClick:()=>yt(_e==="asc"?"desc":"asc")})),x.createElement("span",{className:ht.orderDesc},x.createElement("i",{className:_e==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ht.cursorPointer} ${ht.active}`:`iconfont icon-sanjiaoxing-down font12 ${ht.cursorPointer}`,onClick:()=>yt(_e==="asc"?"desc":"asc")}))))},wt={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v",ThemeOne:"ThemeOne___iCQio"},Qt=w(3113),Jt=w(39587),an=Object.defineProperty,bn=Object.getOwnPropertySymbols,Sn=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,zn=(_e,qe,st)=>qe in _e?an(_e,qe,{enumerable:!0,configurable:!0,writable:!0,value:st}):_e[qe]=st,jn=(_e,qe)=>{for(var st in qe||(qe={}))Sn.call(qe,st)&&zn(_e,st,qe[st]);if(bn)for(var st of bn(qe))On.call(qe,st)&&zn(_e,st,qe[st]);return _e},qt=(_e,qe)=>{var st={};for(var yt in _e)Sn.call(_e,yt)&&qe.indexOf(yt)<0&&(st[yt]=_e[yt]);if(_e!=null&&bn)for(var yt of bn(_e))qe.indexOf(yt)<0&&On.call(_e,yt)&&(st[yt]=_e[yt]);return st},Nn=(_e,qe,st)=>new Promise((yt,Ct)=>{var Xt=bt=>{try{It(st.next(bt))}catch(Kt){Ct(Kt)}},Bt=bt=>{try{It(st.throw(bt))}catch(Kt){Ct(Kt)}},It=bt=>bt.done?yt(bt.value):Promise.resolve(bt.value).then(Xt,Bt);It((st=st.apply(_e,qe)).next())}),fe=_e=>{var qe=_e,{className:st,style:yt,children:Ct,loading:Xt=!1,openLoading:Bt,onClick:It=()=>{},size:bt="middle",shape:Kt="round",theme:Gt}=qe,Yt=qt(qe,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[In,xn]=(0,x.useState)(!1),Bn=(0,x.useMemo)(()=>{switch(Gt){case Jt.Fy.THEMEONE:return wt.ThemeOne;case Jt.Fy.DEFAULT:default:return wt.btn}},[Gt]);return x.createElement(Qt.ZP,jn({onClick:(0,u.throttle)(Dn=>Nn(void 0,null,function*(){Bt&&xn(!0);try{yield It(Dn)}catch(Jn){console.log("error",Jn)}Bt&&xn(!1)}),2e3,{leading:!0,trailing:!1}),className:s()(Bn,wt[`${bt}-${Kt}`],st),style:yt,size:bt,shape:Kt,loading:In||Xt},Yt),Ct)},be={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},he=({className:_e,style:qe,children:st=null,onClick:yt,title:Ct})=>x.createElement("div",{className:s()(be.head,_e),style:qe},x.createElement("span",{className:"primary-hover",onClick:yt},x.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),x.createElement("b",{title:Ct},Ct),x.createElement("div",{className:be.node},st)),Ne={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Qe=({confirmShow:_e=!0,confirmTitle:qe,confirmClick:st,cancelShow:yt=!0,cancelTitle:Ct,cancelClick:Xt,className:Bt,style:It,confirmLoading:bt=!1})=>x.createElement("div",{className:s()(Ne.btns,Bt),style:It},_e&&x.createElement(Qt.ZP,{loading:bt,onClick:st,type:"primary",className:Ne.confirm},qe),yt&&x.createElement(Qt.ZP,{onClick:Xt,className:Ne.cancel},Ct)),Ge={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},ft=({className:_e,style:qe={},LeftContent:st,children:yt,RightContent:Ct})=>x.createElement("div",{className:s()(Ge.fixedBottom,_e),style:qe},x.createElement("div",{className:Ge.wrap},x.createElement("div",{className:Ge.left},st),x.createElement("div",{className:Ge.center},yt),x.createElement("div",{className:Ge.right},Ct))),St={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},dt=({className:_e,style:qe={},dataSource:st=[]})=>x.createElement("div",{className:s()(St.crumbs,_e),style:qe},st.map((yt,Ct)=>CtCe.history.push(yt.path)},yt.name):x.createElement("span",null,yt.name),x.createElement("span",null,"\xA0",">","\xA0")):x.createElement("span",{key:Ct,style:{color:"#5F6368"}},yt.name))),Et=w(31797),Te=Object.defineProperty,Le=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,ot=(_e,qe,st)=>qe in _e?Te(_e,qe,{enumerable:!0,configurable:!0,writable:!0,value:st}):_e[qe]=st,Oe=(_e,qe)=>{for(var st in qe||(qe={}))nt.call(qe,st)&&ot(_e,st,qe[st]);if(We)for(var st of We(qe))tt.call(qe,st)&&ot(_e,st,qe[st]);return _e},ze=(_e,qe)=>Le(_e,Me(qe)),Ue=(_e,qe)=>{var st={};for(var yt in _e)nt.call(_e,yt)&&qe.indexOf(yt)<0&&(st[yt]=_e[yt]);if(_e!=null&&We)for(var yt of We(_e))qe.indexOf(yt)<0&&tt.call(_e,yt)&&(st[yt]=_e[yt]);return st};const{Countdown:Je}=Et.default;var $e=_e=>{var qe=_e,{onChange:st}=qe,yt=Ue(qe,["onChange"]);const[Ct,Xt]=(0,x.useState)(null);(0,x.useEffect)(()=>{typeof Ct=="number"&&Ct>=0&&st(Ct)},[Ct]);const Bt=It=>{const bt=Math.floor(It/1e3);Xt(bt)};return x.createElement(Je,ze(Oe({},yt),{onChange:Bt}))},et={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},jt=({DataProps:_e,className:qe,style:st={}})=>{var yt;return x.createElement("div",{className:s()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",et.ClassRoomItem,qe),style:st,onClick:()=>{(0,Y.xg)(_e==null?void 0:_e.first_category_url)}},x.createElement("div",{className:"flex flex-col item-center"},x.createElement("img",{src:`${(yt=W.Z)==null?void 0:yt.IMG_SERVER}/images/${_e==null?void 0:_e.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(_e==null?void 0:_e.subject_identifier)&&x.createElement("div",{className:"mt-40px"},x.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),x.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),x.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},x.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(_e!=null&&_e.is_public)&&x.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),x.createElement("span",{className:s()("text-16px font-medium",et.TitleDom)},_e==null?void 0:_e.name)),x.createElement("div",{className:"c-grey-333 font-medium"},_e==null?void 0:_e.creator),x.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",_e==null?void 0:_e.course_members_count),x.createElement("div",{className:"c-grey-333 flex item-center justify-between"},x.createElement("div",null,"\u4F5C\u4E1A\uFF1A",_e==null?void 0:_e.tasks_count),_e!=null&&_e.is_end?x.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):x.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},Dt=Object.defineProperty,Ut=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,Vt=(_e,qe,st)=>qe in _e?Dt(_e,qe,{enumerable:!0,configurable:!0,writable:!0,value:st}):_e[qe]=st,Rt=(_e,qe)=>{for(var st in qe||(qe={}))en.call(qe,st)&&Vt(_e,st,qe[st]);if(Ut)for(var st of Ut(qe))on.call(qe,st)&&Vt(_e,st,qe[st]);return _e},cn=({DataProps:_e=[],selectValue:qe,onChange:st,className:yt,style:Ct={},extra:Xt,classNameItem:Bt,styleItem:It={},barHidden:bt})=>{const[Kt,Gt]=(0,x.useState)();return(0,x.useEffect)(()=>{Gt(Array.isArray(qe)?qe:[qe])},[qe]),x.createElement("div",{className:s()("flex px-20px py-10px gap-40px",yt),style:Rt({borderBottom:"1px solid #D3F0FF"},Ct)},_e==null?void 0:_e.map(Yt=>x.createElement("div",{key:Yt==null?void 0:Yt.id,className:s()("flex item-center justify-center current c-grey-333 text-16 relative",Bt,Yt==null?void 0:Yt.className),style:Rt(Rt({color:Kt!=null&&Kt.includes(Yt==null?void 0:Yt.id)?"#1890FF":"",minWidth:88},It),(Yt==null?void 0:Yt.style)||{}),onClick:In=>{st==null||st({domEvent:In,item:Yt}),Yt!=null&&Yt.link&&Ce.history.push(Yt==null?void 0:Yt.link)}},Yt==null?void 0:Yt.name,!bt&&(Kt==null?void 0:Kt.includes(Yt==null?void 0:Yt.id))&&x.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),x.createElement("div",{className:"ml-auto"},Xt))},ln=Object.defineProperty,_t=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,vn=Object.getOwnPropertySymbols,tn=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,Un=(_e,qe,st)=>qe in _e?ln(_e,qe,{enumerable:!0,configurable:!0,writable:!0,value:st}):_e[qe]=st,sn=(_e,qe)=>{for(var st in qe||(qe={}))tn.call(qe,st)&&Un(_e,st,qe[st]);if(vn)for(var st of vn(qe))Rn.call(qe,st)&&Un(_e,st,qe[st]);return _e},Tt=(_e,qe)=>_t(_e,$t(qe)),un=({value:_e,onChange:qe,onInputChange:st,className:yt,style:Ct={},InputProps:Xt})=>{const[Bt,It]=(0,x.useState)(_e);return x.createElement("div",{className:s()("flex item-center rounded-full px-10px py-2px",yt),style:sn({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},Ct)},x.createElement(y.default,Tt(sn({bordered:!1},Xt),{onChange:bt=>{It(bt.target.value),st==null||st(encodeURIComponent(bt.target.value))},onPressEnter:bt=>{qe==null||qe({domEvent:bt,item:{value:Bt}})}})),x.createElement("img",{className:"h-22px current",src:w(25365),height:22,onClick:bt=>{qe==null||qe({domEvent:bt,item:{value:Bt}})}}))}},62006:function(Nt,Ve,w){"use strict";w.r(Ve),w.d(Ve,{PracticeFileType:function(){return ke},default:function(){return rt}});var x=w(59301),pe=w(90115),e=w(61485),I=w(57809),f=w(92832),a=w(36381),t=w(78241),s=w(43418),u=w(8591),o=w(5871),c=w(24905),n=w(54580),r=w(3113),i=w(5112),l=w(1710),d=w(95237),E=w(43604),v=w(60324),m=w(81327),p=w(6848),S=w(55159),C={flex_box_center:"flex_box_center___MjMLk",flex_space_between:"flex_space_between___PcWTa",flex_box_vertical_center:"flex_box_vertical_center___Cq7f3",flex_box_center_end:"flex_box_center_end___sMsFo",flex_box_column:"flex_box_column___n6Hxq",bg:"bg____Ic4Q",radioStyle:"radioStyle___kewjX",formWrap:"formWrap___jcehV",onePart:"onePart___ECsrp",searchInput:"searchInput___UhEpw",twoPart:"twoPart___WVIpx",title:"title___RpX2E",threePart:"threePart___Tzme_",flexRowCenter:"flexRowCenter___M7zUK",fourPart:"fourPart___HgBFj",testJi:"testJi___s6Skh",upBtn:"upBtn___eKx0D",checkboxs:"checkboxs___B4uNe",averageWarp:"averageWarp___yXrlD",averageCustom:"averageCustom___t5o4x",groupWrap:"groupWrap___eT0sR",customInput:"customInput___pywUD",btns:"btns___lJQrt",uploadBtn:"uploadBtn___bb8tt",addBtn:"addBtn___KmPzc",deleteBtn:"deleteBtn___j15T3",uploadTips:"uploadTips___ezbms",uploadTipsIcon:"uploadTipsIcon___ZWRlB",downloadBtn:"downloadBtn____jf42",fileItem:"fileItem___fJ0rs",multiSelect:"multiSelect___Xb8b8",multiple_select:"multiple_select___HUup3"},g=w(4121),O=w(64165),y=w(99313),b=w(71418),h={flex_box_center:"flex_box_center___vvciu",flex_space_between:"flex_space_between___WPxvw",flex_box_vertical_center:"flex_box_vertical_center___YY9Br",flex_box_center_end:"flex_box_center_end___FiVhK",flex_box_column:"flex_box_column___FWnfq",wrap:"wrap___AEhcV",content:"content___NDdD8",mainPathWrap:"mainPathWrap___BNeQ2",colorBlue:"colorBlue___UwyKz",empty:"empty___aaM_9"},A=Object.defineProperty,B=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,M=(Fe,it,ut)=>it in Fe?A(Fe,it,{enumerable:!0,configurable:!0,writable:!0,value:ut}):Fe[it]=ut,z=(Fe,it)=>{for(var ut in it||(it={}))k.call(it,ut)&&M(Fe,ut,it[ut]);if(B)for(var ut of B(it))R.call(it,ut)&&M(Fe,ut,it[ut]);return Fe},K=(Fe,it,ut)=>new Promise((ht,Ft)=>{var Ht=Lt=>{try{Wt(ut.next(Lt))}catch(wt){Ft(wt)}},At=Lt=>{try{Wt(ut.throw(Lt))}catch(wt){Ft(wt)}},Wt=Lt=>Lt.done?ht(Lt.value):Promise.resolve(Lt.value).then(Ht,At);Wt((ut=ut.apply(Fe,it)).next())});const W=Fe=>Fe!=null&&Fe.length?Fe.filter((it,ut)=>ut!==0).map(it=>it.val).join("").substr(1):"",Y=({shixunsDetail:Fe,globalSetting:it,dispatch:ut,fileType:ht,path:Ft,onFinish:Ht=()=>{}})=>{const At=(0,pe.useParams)(),[Wt,Lt]=(0,x.useState)(""),[wt,Qt]=(0,x.useState)("1"),[Jt,an]=(0,x.useState)([]),[bn,Sn]=(0,x.useState)(!1),[On,zn]=(0,x.useState)([]),qt=[ke.OriginalPicturePath,ke.ExpectPicturePath,ke.PicturePath].includes(ht);(0,x.useEffect)(()=>{Fe.actionTabs.key==="EditPracticeSetting-SelectFilePath"&&(Lt(Ft||""),Nn())},[Fe.actionTabs.key,Ft,wt]);const Nn=(Qe="")=>K(void 0,null,function*(){Sn(!0);const Ge=yield ut({type:`shixunsDetail/${wt==="1"?"getRepository":"getSecretRepository"}`,payload:{id:At.id,path:Qe}});if(Ge!=null&&Ge.trees){const Ke=Ge.trees.map(ft=>z(z({},ft),{name:ft.name,val:ft.name}));zn(Ke||[])}else zn([]);Sn(!1)}),De=Qe=>{const Ge=W(Jt);let Ke=`${Ge&&`${Ge}/`}${Qe}`;wt==="2"&&(Ke=`secret/${Ke}`),ht===ke.Path?!(Wt!=null&&Wt.includes(`${Ke}\uFF1B`))&&Lt(`${Wt}${Ke}\uFF1B`):ht===ke.ExecPath&&Lt(Ke)},fe=Qe=>{if(Qe.type==="tree"){Jt.length?Jt.push({val:`/${Qe.val}`,path:Qe.val}):Jt.push({val:"\u6839\u76EE\u5F55",path:""},{val:`/${Qe.val}`,path:Qe.val}),an(Jt);const Ge=W(Jt);qt&&Lt(Ge),Nn(Ge)}},be=(Qe,Ge)=>{const Ke=Jt.filter((St,Ot)=>Ot<=Ge);an(Ke);const ft=W(Ke);qt&&Lt(ft),Nn(ft)},ge=()=>K(void 0,null,function*(){Ht(Wt),he()}),he=()=>{Lt(""),an([]),zn([]),Qt("1"),ut({type:"shixunsDetail/setActionTabs",payload:{}})},Ne=()=>x.createElement(O.Z,{style:{margin:"0 0"},image:O.Z.PRESENTED_IMAGE_SIMPLE,imageStyle:{height:60},description:x.createElement("div",null,x.createElement("p",{style:{color:"#888",marginBottom:0}},"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u6682\u65E0\u6587\u4EF6\u3002\u8BF7\u5148\u5F00\u542F\u5E76\u4E0A\u4F20\u4EE3\u7801\u6587"),x.createElement("span",{style:{color:"#888"}},"\u4EF6\u3001\u6807\u51C6\u56FE\u7247\u7B49\u6587\u4EF6\u5230\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))},x.createElement(r.ZP,{type:"primary",onClick:()=>{he(),ut({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"warehouse"}}),pe.history.push(`/shixuns/${At.id}/edit?tabId=warehouse`)}},"\u53BB\u4E0A\u4F20")),Be=W(Jt);return x.createElement(s.default,{centered:!0,title:"\u6587\u4EF6\u8DEF\u5F84",closable:!1,keyboard:!1,open:Fe.actionTabs.key==="EditPracticeSetting-SelectFilePath",onOk:ge,onCancel:he},x.createElement("div",{className:h.wrap},x.createElement(y.default,{activeKey:wt,onChange:Qe=>{an([]),Qt(Qe)}},x.createElement(y.default.TabPane,{tab:"\u4EE3\u7801\u4ED3\u5E93",key:"1"}),ht==="exec_path"&&x.createElement(y.default.TabPane,{tab:"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",key:"2"})),x.createElement(b.Z,{style:{backgroundColor:"#f5f5f5",height:200},spinning:bn},x.createElement("div",{className:h.content},x.createElement("div",null,!!(Jt!=null&&Jt.length)&&Jt.map((Qe,Ge)=>x.createElement("a",{style:{whiteSpace:Ge===0?"nowrap":""},key:Ge,onClick:()=>be(Qe,Ge)},Qe.val))),On!=null&&On.length?On.map((Qe,Ge)=>Qe.type==="tree"?x.createElement("a",{key:Ge,onClick:()=>fe(Qe)},x.createElement("i",{className:`iconfont icon-wenjianjia ${h.colorBlue}`}),Be&&`${Be}/`,Qe.name):x.createElement("a",{key:Ge,onClick:()=>De(`${Qe.name}`)},x.createElement("i",{className:`iconfont icon-zuoye ${h.colorBlue}`}),Be&&`${Be}/`,Qe.name)):Ne())),x.createElement("label",{className:"mt5"},"\u5DF2\u9009\u4E2D\u7684\u6587\u4EF6:"),x.createElement(f.default,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09",value:Wt,onChange:Qe=>Lt(Qe.target.value)})))};var H=(0,pe.connect)(({shixunsDetail:Fe,globalSetting:it})=>({shixunsDetail:Fe,globalSetting:it}))(Y),re=w(78442),G=w(89392),ee=w(21824),X=w(78673),Q=w(26227),q=w(62772),$={text:"text___XxpQd",box:"box___DE1hR"},le=Object.defineProperty,se=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,J=(Fe,it,ut)=>it in Fe?le(Fe,it,{enumerable:!0,configurable:!0,writable:!0,value:ut}):Fe[it]=ut,N=(Fe,it)=>{for(var ut in it||(it={}))ie.call(it,ut)&&J(Fe,ut,it[ut]);if(Se)for(var ut of Se(it))L.call(it,ut)&&J(Fe,ut,it[ut]);return Fe},Z=(Fe,it)=>se(Fe,Ee(it)),U=({form:Fe})=>{const it={is_step_grading:!1,step_grading_type:0,step_grading_rules:[{compelete_time_min:"",compelete_time_max:"",point_value:"",score_rate:""}]},[ut,ht]=(0,x.useState)([]),[Ft,Ht]=(0,x.useState)([]),At=t.default.useWatch("is_step_grading",Fe),Wt=t.default.useWatch("step_grading_type",Fe),Lt=t.default.useWatch("vrs_point_answer_type",Fe);console.log(Lt,"answerType"),(0,x.useEffect)(()=>{typeof Lt=="number"&&(ht([]),Ht([]))},[Lt]);const wt=Qt=>{const Jt=(0,G.cloneDeep)(Fe.getFieldValue("step_grading_rules")||[]);Qt.target.value===0&&(Ht(Jt),Fe.setFieldsValue({step_grading_rules:ut})),Qt.target.value===1&&(ht(Jt),Fe.setFieldsValue({step_grading_rules:Ft}))};return x.createElement(x.Fragment,null,x.createElement("div",{className:"relative"},x.createElement(t.default.Item,{className:"mb0",name:"is_step_grading",label:"\u9636\u68AF\u5224\u5206",valuePropName:"checked"},x.createElement(X.Z,null)),x.createElement("div",{className:$.text},"\u5F00\u542F\u540E\uFF0C\u7CFB\u7EDF\u5C06\u6839\u636E\u8BBE\u7F6E\u7684\u9636\u68AF\u5224\u5206\u89C4\u5219\u7ED9\u5206")),At&&x.createElement("div",{className:$.box},x.createElement(t.default.Item,{name:"step_grading_type",label:"",className:"mb0",initialValue:0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5224\u5206\u7C7B\u578B"}]},x.createElement(i.ZP.Group,{onChange:wt},x.createElement(i.ZP,{value:0},"\u6309\u7167\u91C7\u96C6\u70B9\u64CD\u4F5C\u5B8C\u6210\u65F6\u95F4"),Lt===0&&x.createElement(i.ZP,{value:1},"\u6309\u7167\u91C7\u96C6\u70B9\u6570\u503C"))),x.createElement(t.default.List,{name:"step_grading_rules"},(Qt,{add:Jt,remove:an})=>x.createElement("div",null,Qt.map((bn,Sn)=>(console.log(bn.key,555),x.createElement(m.Z,{key:bn.key,size:10,className:"mb20"},Wt===0&&x.createElement(m.Z,{size:8},x.createElement("span",null,"\u5B8C\u6210\u65F6\u95F4"),x.createElement(t.default.Item,Z(N({},bn),{className:"mb0",name:[bn.name,"compelete_time_min"],label:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u79D2\u6570"}]}),x.createElement(o.Z,{controls:!1,suffix:"\u79D2",min:0})),x.createElement("div",null,"-"),x.createElement(t.default.Item,Z(N({},bn),{className:"mb0",name:[bn.name,"compelete_time_max"],label:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u79D2\u6570"}]}),x.createElement(o.Z,{controls:!1,suffix:"\u79D2",min:0}))),Wt===1&&x.createElement(m.Z,{size:8},x.createElement("span",null,"\u91C7\u96C6\u70B9\u6570\u503C\u4E3A"),x.createElement(t.default.Item,Z(N({},bn),{className:"mb0",name:[bn.name,"point_value"],label:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6570\u503C"}]}),x.createElement(o.Z,{controls:!1}))),x.createElement("div",null,"\uFF0C\u53EF\u5F97"),x.createElement(t.default.Item,Z(N({},bn),{className:"mb0",name:[bn.name,"score_rate"],label:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F97\u5206\u6BD4\u4F8B"},{min:0,max:100,message:"\u8BF7\u8F93\u51650-100\u7684\u6570\u503C",type:"number"}]}),x.createElement(o.Z,{controls:!1,suffix:"%"})),x.createElement("div",null,"\u5206\u503C"),x.createElement(r.ZP,{type:"text",danger:!0,icon:x.createElement(Q.Z,null),onClick:()=>an(bn.name)})))),x.createElement(r.ZP,{type:"dashed",onClick:()=>Jt({compelete_time_min:"",compelete_time_max:"",point_value:"",score_rate:""}),icon:x.createElement(q.Z,null),block:!0},"\u6DFB\u52A0\u89C4\u5219")))))},D=w(64866),T=w(17614),P=w(71773),j=w(2751),F=w(11662),te=w(38852),ae=Object.defineProperty,V=Object.defineProperties,de=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ve=(Fe,it,ut)=>it in Fe?ae(Fe,it,{enumerable:!0,configurable:!0,writable:!0,value:ut}):Fe[it]=ut,oe=(Fe,it)=>{for(var ut in it||(it={}))xe.call(it,ut)&&ve(Fe,ut,it[ut]);if(we)for(var ut of we(it))Ae.call(it,ut)&&ve(Fe,ut,it[ut]);return Fe},_=(Fe,it)=>V(Fe,de(it)),ue=(Fe,it,ut)=>new Promise((ht,Ft)=>{var Ht=Lt=>{try{Wt(ut.next(Lt))}catch(wt){Ft(wt)}},At=Lt=>{try{Wt(ut.throw(Lt))}catch(wt){Ft(wt)}},Wt=Lt=>Lt.done?ht(Lt.value):Promise.resolve(Lt.value).then(Ht,At);Wt((ut=ut.apply(Fe,it)).next())});const{Option:ye}=I.default,{TextArea:Ce}=f.default,{Panel:je}=a.default;var ke=(Fe=>(Fe.Path="path",Fe.ExecPath="exec_path",Fe.OriginalPicturePath="original_picture_path",Fe.ExpectPicturePath="expect_picture_path",Fe.PicturePath="picture_path",Fe))(ke||{});const Xe=({shixunsDetail:Fe,dispatch:it,practiceSetting:ut})=>{var ht,Ft,Ht,At,Wt,Lt,wt,Qt,Jt,an,bn,Sn,On,zn,jn,qt,Nn,De,fe,be,ge,he;const Ne=(0,pe.useDispatch)(),[Be]=t.default.useForm(),[Qe]=t.default.useForm(),[Ge]=t.default.useForm(),[Ke,ft]=(0,x.useState)({}),[St,Ot]=(0,x.useState)({}),[dt,Et]=(0,x.useState)([]),[Te,Le]=(0,x.useState)({}),[Me,We]=(0,x.useState)([]),[nt,tt]=(0,x.useState)({hidden:0,input_visible:!1,is_invisible:!1,actual_output_visible:!1,last_match_rule:!1}),[ot,Oe]=(0,x.useState)([!1]),[ze,Ue]=(0,x.useState)(!1),[Je,Ye]=(0,x.useState)(),$e=(0,x.useRef)({formValue:{},testSetList:[],uploadData:[]}),[et,vt]=(0,x.useState)(!0),[jt,Dt]=(0,x.useState)(!0),Ut=(0,x.useRef)(null),[en,on]=(0,x.useState)(!1),[Vt,Rt]=(0,x.useState)(!1),[pn,cn]=(0,x.useState)(!1),[ln,_t]=(0,x.useState)(!1),[$t,vn]=(0,x.useState)(!1),tn=(0,pe.useParams)(),[Rn,Un]=(0,x.useState)(!1),[sn,Tt]=(0,x.useState)(!1),[Pt,un]=(0,x.useState)(!1),[_e,qe]=(0,x.useState)(!1),[st,yt]=(0,x.useState)(!1),[Ct,Xt]=(0,x.useState)([]),[Bt,It]=(0,x.useState)("");let[bt,Kt]=(0,x.useState)([{}]);const[Gt,Yt]=(0,x.useState)([]),[In,xn]=(0,x.useState)([]),[Bn,Dn]=(0,x.useState)(null),[Jn,rr]=(0,x.useState)([]),[or,tr]=(0,x.useState)({}),[ir,Rr]=(0,x.useState)([]),[Lr,Qr]=(0,x.useState)(null),[Pr,_r]=(0,x.useState)([]),[va,Jr]=(0,x.useState)([]),[ba,ha]=(0,x.useState)([]),[Gn,$n]=(0,x.useState)(),[gr,nr]=(0,x.useState)([]),pr=["test_set_rules","go_back_url","next_challenge","position","name","chooses","st","id","path","exec_path","show_type","original_picture_path","expect_picture_path","picture_path","test_set_rules_expression","web_route","test_set_score","test_set_average","exec_time","ignore_space","with_code_file","unity_3d","unity_3d_routes","unity_3d_result","has_web_route","test_sets","is_file","proxy_port","unity3d_show_location","show_vrs_content"];let Cr=[];(0,x.useEffect)(()=>{zr(),Cn()},[]),(0,x.useEffect)(()=>{console.log(dt);let Re=dt.every(mn=>mn.hidden===1);Un(Re);let pt=dt.every(mn=>mn.is_invisible);Tt(pt);let Zt=dt.every(mn=>mn.last_match_rule);un(Zt);let gn=dt.every(mn=>mn.input_visible);qe(gn);let yn=dt.every(mn=>mn.actual_output_visible);yt(yn)},[dt]),(0,x.useEffect)(()=>{var Re;Fe.actionTabs.key=="\u7F16\u8F91\u8BBE\u7F6E\u9879"?Hn(Fe.actionTabs.params):Fe.actionTabs.key=="\u7F16\u8F91\u91C7\u96C6\u70B9"&&(Xn(Fe.actionTabs.params),Xa(((Re=Fe==null?void 0:Fe.detail)==null?void 0:Re.vrs_subject_id)||[]))},[Fe.actionTabs.key]),(0,x.useEffect)(()=>{tn.challengesId?$n(!0):$n(!1)},[tn]),(0,x.useEffect)(()=>(JSON.stringify($e.current.formValue)!=="{}"&&$e.current.testSetList.length&&vr(),()=>{clearTimeout(Ut.current)}),[Ke,Me]);const zr=()=>ue(void 0,null,function*(){var Re,pt;vt(!0);const Zt=yield it({type:"shixunsDetail/getRepository",payload:{id:tn.id,path:""}});Dt((Zt==null?void 0:Zt.trees)===null);const gn=yield(0,S.ii)({id:tn.id,challengeId:tn.challengesId,tab:1});if(gn){vt(!1);const yn=((pt=(Re=gn.test_sets)==null?void 0:Re[0])==null?void 0:pt.is_file)||!1,mn=_(oe({},gn),{is_file:yn});Le(mn),parseInt(gn==null?void 0:gn.code_compile_score)>0&&vn(!0),ia(mn)}}),Cn=()=>ue(void 0,null,function*(){const Re=yield(0,D.ZP)("/api/vrs_env_list",{method:"get"});(Re==null?void 0:Re.status)===0&&Xt(Re==null?void 0:Re.data)}),Hn=Re=>ue(void 0,null,function*(){Dn(Re),Qe.setFieldsValue(oe({},Re))}),Xn=Re=>ue(void 0,null,function*(){var pt,Zt,gn;Qr(Re),Ge.setFieldsValue(_(oe({},Re),{vrs_env_id:(pt=Fe==null?void 0:Fe.detail)==null?void 0:pt.vrs_env_id,vrs_subject_id:(Zt=Fe==null?void 0:Fe.detail)==null?void 0:Zt.vrs_subject_id})),console.log("shixunsDetail?.detail?.vrs_subject_id",(gn=Fe==null?void 0:Fe.detail)==null?void 0:gn.vrs_subject_id)}),Qn=Re=>{let pt=Re==null?void 0:Re.length;if(pt==0)return;const Zt=Math.floor(100/pt),gn=100%pt,yn=Number(Zt)+Number(gn);console.log(pt,Re),Rr(Re.map((mn,fr)=>_(oe({},mn),{score:fr==pt-1?yn:Zt})))},vr=()=>{clearTimeout(Ut.current),Ut.current=setTimeout(xr,500)},xr=()=>{pr.some(pt=>{const Zt=(0,G.isNumber)(Ke[pt])?String(Ke[pt]):Ke[pt],gn=(0,G.isNumber)($e.current.formValue[pt])?String($e.current.formValue[pt]):$e.current.formValue[pt];return!(0,G.isEqual)(Zt,gn)})||!(0,G.isEqual)($e.current.testSetList,Me)||!(0,G.isEqual)($e.current.uploadData,dt)?it({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):it({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},ia=Re=>{var pt,Zt,gn,yn,mn;if(Re.proxy_port=(Re==null?void 0:Re.proxy_port)||8080,Be.setFieldsValue(oe({},Re)),ft(oe({},Re)),Re!=null&&Re.is_file){const fr=Re.test_sets||[];Et(fr);const Yn=[{hidden:0,input:"",output:"",score:100}];$e.current={formValue:oe({},Re),testSetList:Yn,uploadData:fr},We(Yn),Oe(Array(Yn.length).fill(!1))}else{const fr=(pt=Re.test_sets)!=null&&pt.length?Re.test_sets:[{hidden:0,input:"",output:"",score:100}];$e.current={formValue:oe({},Re),testSetList:fr,uploadData:[]},Oe(Array(fr.length).fill(!1)),We(fr)}xn((Re==null?void 0:Re.vrs_settings)||[]),Rr((Re==null?void 0:Re.test_sets)||[]),Kt((Re==null?void 0:Re.step_settings)||[{}]),nr(Re!=null&&Re.img_attachment?[_(oe({},Re==null?void 0:Re.img_attachment),{name:(Zt=Re==null?void 0:Re.img_attachment)==null?void 0:Zt.title,response:{id:(yn=(gn=Re==null?void 0:Re.img_attachment)==null?void 0:gn.url)==null?void 0:yn.split("/")[3]}})]:[]),Re!=null&&Re.voice_attachment&&ha([{response:oe({},Re==null?void 0:Re.voice_attachment),uid:(mn=Re==null?void 0:Re.voice_attachment)==null?void 0:mn.id,status:"done"}])},Nr=Re=>ue(void 0,null,function*(){if(jt){s.default.confirm({centered:!0,title:"\u63D0\u793A",content:"\u8BF7\u5148\u4E0A\u4F20\u672C\u5173\u4EFB\u52A1\u7684\u6240\u6709\u4EE3\u7801\u6587\u4EF6\u3001\u6807\u51C6\u56FE\u7247\u7B49\u6240\u6709\u5FC5\u8981\u7684\u6587\u4EF6\u5230\u4EE3\u7801\u4ED3\u5E93",okText:"\u53BB\u4E0A\u4F20",onOk:()=>{it({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"warehouse"}}),pe.history.push(`/shixuns/${tn.id}/edit?tabId=warehouse`)},cancelText:"\u53D6\u6D88"});return}it({type:"shixunsDetail/setActionTabs",payload:{key:"EditPracticeSetting-SelectFilePath"}}),Ye(Re)}),Hr=Re=>{const pt={[Je]:Re};Be.setFieldsValue(pt),ft(oe(oe({},Ke),pt))},$r=Re=>{const pt=Be.getFieldsValue();ft(oe({},pt)),"vrs_env_id"in Re&&(Be.setFieldsValue({vrs_subject_id:null}),ft(_(oe({},pt),{vrs_subject_id:null})),xn([]),Rr([])),"vrs_subject_id"in Re&&(xn([]),Rr([])),"test_set_score"in Re&&Re.test_set_score&&(Be.setFieldsValue({test_set_average:!0}),Ke.is_file?dr(dt):yr(Me)),"test_set_average"in Re&&Re.test_set_average&&(Qn(ir),Ke.is_file?dr(dt):yr(Me)),"unity_3d"in Re&&(Re.unity_3d||(Be.setFieldsValue({with_code_file:!0}),ft(_(oe({},pt),{with_code_file:!0}))))},yr=Re=>{let pt=parseInt(Be.getFieldValue("code_compile_score")||0);const Zt=Math.floor((100-pt)/Re.length),gn=Zt+(100-pt)%Re.length;Re=Re.map((yn,mn)=>mn===Re.length-1?_(oe({},yn),{score:gn}):_(oe({},yn),{score:Zt})),$e.current.testSetList=(0,G.clone)(Re),We(Re)},dr=Re=>{let pt=parseInt(Be.getFieldValue("code_compile_score")||0);const Zt=Math.floor((100-pt)/Re.length),gn=Zt+(100-pt)%Re.length;Re=Re.map((yn,mn)=>mn===Re.length-1?_(oe({},yn),{score:gn}):_(oe({},yn),{score:Zt})),$e.current.uploadData=(0,G.clone)(Re),Et(Re)},Vr=()=>{const Re=[...Me,{hidden:0,input:"",output:"",score:0}];Oe([...ot,!1]),Ue(!1),Be.getFieldValue("test_set_average")?yr(Re):We(Re)},Mr=(Re,pt=!1,Zt=1)=>ue(void 0,null,function*(){var gn,yn,mn,fr,Yn,sr,la,Gr,Kr;const{vrs_type:ga,vrs_env_id:ya,vrs_subject_id:Ia,test_set_average:Oa,vrs_settings:Qa,test_set:ka,point_hint:vo}=Re;console.log(Re),Re.path&&!Re.path.endsWith("\uFF1B")&&(Re.path=Re.path+"\uFF1B"),console.log(ba),console.log(Re),console.log(gr),((gn=Fe.detail)==null?void 0:gn.vrs_type)==1?(yield(0,D.ZP)(`/api/shixuns/${tn==null?void 0:tn.id}/challenges/${tn==null?void 0:tn.challengesId}/update_vrs_setting`,{method:"put",body:_(oe({},Re),{vrs_type:1,vrs_env_id:ya,vrs_subject_id:Ia,test_set:ir,unity_3d_routes:(mn=(yn=Ct==null?void 0:Ct.filter(_a=>{var to;return _a.id==((to=Fe==null?void 0:Fe.detail)==null?void 0:to.vrs_env_id)}))==null?void 0:yn[0])==null?void 0:mn.url,voice_attachment_id:(sr=(Yn=(fr=ba.filter(_a=>_a.status==="done"))==null?void 0:fr[0])==null?void 0:Yn.response)==null?void 0:sr.container_id,step_settings:[...bt],img_attachment_id:((Gr=(la=gr==null?void 0:gr[0])==null?void 0:la.response)==null?void 0:Gr.id)||""})})).status==0&&u.ZP.success("\u4FDD\u5B58\u6210\u529F"):(yield(0,S.Rs)(_(oe({},tn),{tab:1,vrs_type:0,challenge:_(oe(oe({},Re),{test_set_rules_expression:Re.test_set_rules===0?null:Re.test_set_rules_expression}),{shixunfileexpectpicturepath:Re.original_picture_path,shixunfilestandardpicturepath:Re.expect_picture_path}),test_set:Cr,sync_origin_shixun:pt}))).status>=0&&((Kr=Fe==null?void 0:Fe.detail)!=null&&Kr.copy_for_exercise&&(0,P.m)(it,Fe,tn.id,Zt),pe.history.replace(`/shixuns/${tn.id}/edit/${tn.challengesId}/tab=3`))}),sa=(Re,pt)=>{const Zt=[...dt];Zt.splice(pt,1),Ke.test_set_average?dr(Zt):Et(Zt)},Wr=(Re,pt)=>{console.log(Re,pt);const Zt=dt.map((gn,yn)=>yn===pt?_(oe({},gn),{score:Re.target.value?Number(Re.target.value):0}):gn);Et(Zt)},Ka=(Re,pt,Zt)=>{Zt==="hidden"&&(Re=Re?1:0),console.log(Re,pt);const gn=dt.map((mn,fr)=>fr===pt?_(oe({},mn),{[Zt]:Re}):mn);Et(gn),console.log(gn);const yn=gn.every(mn=>mn[Zt]===Re);Zt==="hidden"?Un(yn&&Re):Zt==="is_invisible"?Tt(yn&&Re):Zt==="input_visible"?qe(yn&&Re):Zt==="actual_output_visible"?yt(yn&&Re):un(yn&&Re)},Za=(Re,pt)=>{pt==="hidden"&&(Re=Re?1:0),console.log(Re);const Zt=dt.map((gn,yn)=>_(oe({},gn),{[pt]:Re}));Et(Zt),pt==="hidden"?Un(Re):pt==="is_invisible"?Tt(Re):pt==="input_visible"?qe(Re):pt==="actual_output_visible"?yt(Re):un(Re)},io=Re=>{if(Re!=null&&Re.length){if(Be.setFieldsValue({is_file:Re==null?void 0:Re[0].is_file}),ft(_(oe({},Ke),{is_file:Re==null?void 0:Re[0].is_file})),Re!=null&&Re[0].is_file){const pt=dt.concat(Re.map(Zt=>_(oe({},Zt),{hidden:0,is_invisible:!1,last_match_rule:!1})));Ke.test_set_average?dr(pt):Et(pt)}if(!(Re!=null&&Re[0].is_file)){const pt=Me==null?void 0:Me.filter(Zt=>Zt.input||Zt.output).concat(Re);Oe(Array(pt.length).fill(!1)),Ke.test_set_average?yr(pt):We(pt)}}},Aa=()=>{s.default.confirm({title:"\u5220\u9664\u6D4B\u8BD5\u7528\u4F8B\u63D0\u793A",content:"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u672C\u5173\u5361\u4E2D\u7684\u6D4B\u8BD5\u7528\u4F8B\u5168\u90E8\u5220\u9664\uFF1F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>{Re()}});const Re=()=>{Ke.is_file?dr([]):(yr([{hidden:0,input:"",output:"",score:0}]),Oe([!1]))}},so=()=>{var Re;const pt=()=>{pe.history.push(`/shixuns/${tn.id}/challenges`),it({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(Re=ut==null?void 0:ut.sideBar)!=null&&Re.confirmLeave?s.default.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{pt()}}):pt()};console.log(dt,444);const lo=Re=>ue(void 0,null,function*(){xn(In.filter(pt=>!Re.includes(pt.id)))}),Ga=Re=>ue(void 0,null,function*(){let pt=ir.filter(Zt=>!Re.includes(Zt.id));Rr(pt),Qn(pt)}),co=[{title:"\u5E8F\u53F7",render:(Re,pt,Zt)=>Zt+1,width:60,align:"center"},{title:"\u76EE\u6807",dataIndex:"target",align:"center"},{title:"\u8BBE\u7F6E\u9879\u540D\u79F0",dataIndex:"name",align:"center"},{title:"\u6001\u52BF\u503C",dataIndex:"value",align:"center"},{title:"\u64CD\u4F5C",dataIndex:"course_group_name",align:"right",width:200,render:(Re,pt)=>x.createElement(x.Fragment,null,x.createElement("span",{onClick:()=>{Ne({type:"shixunsDetail/setActionTabs",payload:{key:"\u7F16\u8F91\u8BBE\u7F6E\u9879",params:pt}})},className:"current c-light-primary mr15"},"\u7F16\u8F91"),x.createElement("span",{onClick:()=>lo([pt==null?void 0:pt.id]),className:"current",style:{color:"#9096A3"}},"\u5220\u9664"))}],mo=[{title:"\u5E8F\u53F7",render:(Re,pt,Zt)=>Zt+1,width:60,align:"center"},{title:"\u91C7\u96C6\u70B9\u540D\u79F0",dataIndex:"vrs_point_name",align:"center"},{title:"\u7B54\u6848\u503C\u7C7B\u578B",dataIndex:"vrs_point_answer_type",align:"center",render:(Re,pt,Zt)=>Re==0?"\u56FA\u5B9A\u503C":Re==1?"\u533A\u95F4\u503C":"\u72B6\u6001\u503C"},{title:"\u7B54\u6848",dataIndex:"vrs_point_answer_value",align:"center"},{title:"\u5F97\u5206\u6BD4\u4F8B",dataIndex:"score",align:"left",width:220,render:(Re,pt,Zt)=>{var gn;return x.createElement(x.Fragment,null,x.createElement(o.Z,{min:0,max:100,value:(gn=ir[Zt])==null?void 0:gn.score,disabled:Ke==null?void 0:Ke.test_set_average,onChange:yn=>{ir[Zt].score=yn?Number(yn):0,Rr([...ir])}}),x.createElement("span",{className:"ml5"},"%"))}},{title:"\u662F\u5426\u9636\u68AF\u5224\u5206",dataIndex:"is_step_grading",align:"left",width:112,render:(Re,pt,Zt)=>Re?"\u662F":"\u5426"},Ke.point_hint&&{title:"\u5F15\u5BFC\u987A\u5E8F",dataIndex:"vrs_position",align:"center"},Ke.point_hint&&{title:"\u5F15\u5BFC\u5185\u5BB9",dataIndex:"vrs_content",ellipsis:!0,align:"center"},{title:"\u64CD\u4F5C",dataIndex:"course_group_name",align:"right",width:200,render:(Re,pt)=>x.createElement(x.Fragment,null,x.createElement("span",{onClick:()=>{var Zt;Ke.vrs_question_type=(Zt=Fe.detail)==null?void 0:Zt.vrs_question_type,ft(oe({},Ke)),Ne({type:"shixunsDetail/setActionTabs",payload:{key:"\u7F16\u8F91\u91C7\u96C6\u70B9",params:pt}})},className:"current mr15",style:{color:"#3061D0"}},"\u7F16\u8F91"),x.createElement("span",{onClick:()=>Ga([pt==null?void 0:pt.id]),className:"current",style:{color:"#9096A3"}},"\u5220\u9664"))}].filter(Re=>!!Re),Xa=Re=>ue(void 0,null,function*(){const pt=yield(0,D.ZP)("/api/vrs_points.json",{method:"get",params:{vrs_subject_id:Re}});(pt==null?void 0:pt.status)==0&&Yt(pt.data)}),eo=Re=>{["uploading","done","removed"].includes(Re.file.status)&&nr(Re.fileList)},Ya=Re=>Re.type==="image/jpeg"||Re.type==="image/png"?Re.size/1024/1024>10?(u.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E10MB"),!1):(nr([]),!0):(u.ZP.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),!1);return x.createElement(x.Fragment,null,x.createElement("section",{key:1,className:C.bg},x.createElement(t.default,{form:Be,className:C.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:$r,onFinish:Re=>{var pt,Zt,gn;let yn=parseInt(Be.getFieldValue("code_compile_score")||0);if(((pt=Fe.detail)==null?void 0:pt.vrs_type)==1&&(ir!=null&&ir.length)){const mn=ir.reduce((fr,Yn)=>fr+Yn,0);if(Re.test_set_score&&mn!==100&&(ir!=null&&ir.length)){u.ZP.error("\u6570\u636E\u91C7\u96C6\u70B9\u7684\u5F97\u5206\u6BD4\u4F8B\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}}if(Re.is_file){if(!(dt!=null&&dt.length)){u.ZP.error("\u6D4B\u8BD5\u96C6\u4E0D\u80FD\u4E3A\u7A7A");return}const fr=dt.map(Yn=>Yn.score).reduce((Yn,sr)=>Yn+sr,0)+yn;if(Re.test_set_score&&fr!==100&&(Me!=null&&Me.length)){u.ZP.error("\u6D4B\u8BD5\u96C6\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}Cr=dt}if(!Re.is_file){const fr=Me.map(Yn=>Yn.score).reduce((Yn,sr)=>Yn+sr,0)+yn;if(Re.test_set_score&&fr!==100&&(Me!=null&&Me.length)){u.ZP.error("\u6D4B\u8BD5\u96C6\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}Cr=Me.map(Yn=>_(oe({},Yn),{is_file:!1}))}Re.test_set_score||(Cr=Cr.map(mn=>_(oe({},mn),{is_target:!1,target_name:""}))),(Zt=Fe==null?void 0:Fe.detail)!=null&&Zt.is_fork_from_creator&&((gn=Fe==null?void 0:Fe.detail)!=null&&gn.copy_for_exercise)&&(Te!=null&&Te.has_relation)?it({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",value:Re,type:"taskLevel",fn:(mn,fr,Yn)=>{Mr(mn,fr,Yn)}}}):Mr(Re)},initialValues:{test_set_rules:0}},x.createElement(T.Z,{activeIndex:1}),x.createElement("div",{className:(ht=Fe==null?void 0:Fe.detail)!=null&&ht.is_client_unity_3d?"":C.onePart},((Ft=Fe.detail)==null?void 0:Ft.identity)<3&&((Ht=Fe.detail)==null?void 0:Ht.unity_3d)&&((At=Fe.detail)==null?void 0:At.vrs_type)==1&&x.createElement(x.Fragment,null,x.createElement(t.default.Item,{name:"is_time_limit",valuePropName:"checked"},x.createElement(c.default,{style:{color:"#333333"}},"\u5F00\u542F\u4EFB\u52A1\u5B8C\u6210\u65F6\u95F4\u9650\u5236\uFF0C\u672A\u5728\u6307\u5B9A\u65F6\u95F4\u5185\u5B8C\u6210")),Ke.is_time_limit&&x.createElement("div",{style:{display:"flex",alignItems:"center",marginBottom:10}},x.createElement("div",{style:{color:"#000000"}},"\u9650\u5236\u65F6\u957F"),x.createElement(t.default.Item,{className:"ml20",style:{marginBottom:"0px"},name:"time_limit",rules:[{required:!0,message:"\u9650\u5236\u65F6\u957F\u4E0D\u80FD\u4E3A\u7A7A"}]},x.createElement(o.Z,{size:"large",style:{width:120},min:1,precision:0})),x.createElement("div",{style:{color:"#9096A3",marginLeft:10}},"\u5206\u949F")),x.createElement(t.default.Item,{name:"show_vrs_content",valuePropName:"checked"},x.createElement(c.default,{style:{color:"#333333"}},"\u662F\u5426\u5728\u4EFF\u771F\u5BA2\u6237\u7AEF\u663E\u793A\u5F15\u5BFC\u5185\u5BB9\u7684\u4EA4\u4E92\u9762\u677F")),((Wt=Fe.detail)==null?void 0:Wt.vrs_question_type)==1&&(Ke==null?void 0:Ke.show_vrs_content)&&x.createElement(x.Fragment,null,x.createElement(t.default.Item,{name:"vrs_content",label:"\u5F15\u5BFC\u5185\u5BB9:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F15\u5BFC\u5185\u5BB9"}]},x.createElement(Ce,{defaultValue:Ke.vrs_content,rows:6})),x.createElement(t.default.Item,{name:"img_attachment_id",valuePropName:"imgFileList"},x.createElement("div",{className:C.upload},x.createElement(n.default,{fileList:gr,action:`${F.Z.API_SERVER}/api/attachments.json`,onChange:Re=>eo(Re),onRemove:Re=>{nr([])},beforeUpload:Re=>Ya(Re),withCredentials:!0,accept:"image/*"},x.createElement(r.ZP,{type:"primary",style:{height:"38px",padding:"4px 27px"}},"\u4E0A\u4F20\u56FE\u7247")))),x.createElement(t.default.Item,{name:"audioFiles",valuePropName:"audioFiles"},x.createElement(te.Z,{isEdit:Gn,value:ba,onChange:ha,maxSize:5e3,maxCount:1}))),x.createElement(t.default.Item,{name:"test_set_average",label:"\u91C7\u96C6\u70B9\u5F97\u5206\u89C4\u8303"},x.createElement(i.ZP.Group,null,x.createElement(i.ZP,{value:!0},"\u5747\u5206\u6BD4\u4F8B"),x.createElement(i.ZP,{value:!1},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B"))),x.createElement("div",{style:{position:"relative"}},x.createElement(t.default.Item,{name:"test_set",label:"\u8003\u6838\u6570\u636E\u91C7\u96C6\u70B9\u4E0E\u6807\u51C6\u7B54\u6848",rules:[{required:!1,message:"\u8BF7\u6DFB\u52A0\u8003\u6838\u6570\u636E\u91C7\u96C6\u70B9\u4E0E\u6807\u51C6\u7B54\u6848"}]},x.createElement("div",{className:"flex item-center justify-between"},x.createElement("div",{className:C.btns},x.createElement("div",{className:C.addBtn,onClick:()=>{var Re,pt;Ne({type:"shixunsDetail/setActionTabs",payload:{key:"\u6DFB\u52A0\u91C7\u96C6\u70B9"}}),Ke.vrs_question_type=(Re=Fe.detail)==null?void 0:Re.vrs_question_type,ft(oe({},Ke)),Xa(((pt=Fe==null?void 0:Fe.detail)==null?void 0:pt.vrs_subject_id)||[])}},x.createElement("span",null,"\u6DFB\u52A0\u91C7\u96C6\u70B9")),(Pr==null?void 0:Pr.length)>0&&x.createElement("div",{className:C.deleteBtn,onClick:()=>s.default.confirm({title:"\u63D0\u793A",centered:!0,content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E9B\u91C7\u96C6\u70B9\u5417\uFF1F",onOk:()=>Ga(Pr)})},x.createElement("span",null,"\u6279\u91CF\u5220\u9664"))),x.createElement(j.t7,{className:C.searchInput,style:{width:300},placeholder:"\u8BF7\u8F93\u5165\u91C7\u96C6\u70B9\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:Bt,onChange:Re=>{var pt;return It((pt=decodeURIComponent(Re))==null?void 0:pt.trim())}})),x.createElement(l.default,{style:{padding:"15px 0"},pagination:!1,columns:mo,dataSource:ir==null?void 0:ir.filter(Re=>{var pt,Zt;return!Bt||((pt=Re==null?void 0:Re.vrs_point_name)==null?void 0:pt.toLowerCase().includes(Bt.toLowerCase()))||((Zt=Re==null?void 0:Re.vrs_point_name)==null?void 0:Zt.includes(Bt))}),rowKey:Re=>Re==null?void 0:Re.id,rowSelection:{selectedRowKeys:Pr,onChange:Re=>{_r(Re)}}})),((Lt=Fe.detail)==null?void 0:Lt.vrs_question_type)==0&&x.createElement(t.default.Item,{name:"point_hint",valuePropName:"checked",style:{position:"absolute",top:10,right:0}},x.createElement(c.default,null,x.createElement("span",{style:{fontSize:14}},"\u5BF9\u5B66\u5458\u5F00\u542F\u91C7\u96C6\u70B9\u64CD\u4F5C\u5F15\u5BFC")))),((wt=Fe.detail)==null?void 0:wt.vrs_question_type)==1&&x.createElement("div",{className:"mb100"},x.createElement(t.default.Item,{name:"open_step_settings",valuePropName:"checked"},x.createElement(c.default,{style:{color:"#333333"}},"\u6307\u5B9A\u4E0B\u4E00\u6B65\u4EFB\u52A1",x.createElement("span",{style:{color:"#9096A3",fontSize:14}},"\uFF08\u672A\u5F00\u542F\u65F6\uFF0C\u5B66\u5458\u5B8C\u6210\u5F53\u524D\u4EFB\u52A1\u540E\u5C06\u6309\u9ED8\u8BA4\u6392\u5E8F\u8FDB\u884C\u4E0B\u4E00\u6B65\u4EFB\u52A1\u3002\u5F00\u542F\u4E4B\u540E\uFF0C\u5C06\u6839\u636E\u5F53\u524D\u4EFB\u52A1\u7684\u4E0D\u540C\u5B8C\u6210\u60C5\u51B5\u8FDB\u5165\u6307\u5B9A\u7684\u4E0B\u4E00\u6B65\u4EFB\u52A1\uFF09"))),Ke.open_step_settings&&x.createElement(d.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 20px",marginTop:"1px",marginBottom:50}},bt&&(bt==null?void 0:bt.map(function(Re,pt){var Zt,gn,yn;return x.createElement(E.Z,{span:24,key:pt},x.createElement(d.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:pt==(bt==null?void 0:bt.length)-1?"0px":"10px"}},x.createElement("div",{style:{minWidth:60,marginRight:"15px",textAlign:"right"}},"\u89C4\u5219",pt+1,"\uFF1A"),x.createElement("div",{className:"mr10"},"\u82E5\u91C7\u96C6\u70B9"),x.createElement(I.default,{mode:"multiple",className:C.multiple_select,style:{width:"38%"},value:Re.check_points,placeholder:"\u8BF7\u9009\u62E9\u91C7\u96C6\u70B9",onChange:mn=>{bt[pt].check_points=mn,Kt(bt.slice())}},(Zt=Ct==null?void 0:Ct.filter(mn=>{var fr;return mn.id==((fr=Fe==null?void 0:Fe.detail)==null?void 0:fr.vrs_env_id)})[0])==null?void 0:Zt.vrs_points.map(mn=>x.createElement(ye,{value:mn.name},mn.name))),x.createElement("div",{className:"ml10"},"\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u8FDB\u5165"),x.createElement("div",{className:"ml20"},x.createElement(I.default,{style:{width:"250px",height:40},size:"large",value:Re.challenge_id,placeholder:"\u8BF7\u9009\u62E9\u4EFB\u52A1",onChange:mn=>{bt[pt].challenge_id=mn,Kt(bt.slice())}},(yn=(gn=Fe==null?void 0:Fe.challenges)==null?void 0:gn.challenge_list)==null?void 0:yn.map((mn,fr)=>x.createElement(ye,{value:mn.challenge_id},`\u4EFB\u52A1${fr+1}`)))),x.createElement("div",{style:{display:"flex",width:"50px"}},x.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{Kt(bt.concat({}))}}),pt!=0&&x.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{bt=bt.filter((mn,fr)=>pt!==fr),Kt(bt.slice()),setTimeout(()=>Kt(bt.slice()),10)}}))))}))))),!((Qt=Fe.detail)!=null&&Qt.unity_3d)&&((Jt=Fe.detail)==null?void 0:Jt.identity)<3&&((an=Fe.detail)==null?void 0:an.vrs_type)!=1&&x.createElement(t.default.Item,{name:"unity_3d_routes",label:"\u8DEF\u5F84:",rules:[{required:!0,message:"\u5FC5\u586B\u9879\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"}]},x.createElement(f.default,{bordered:!1,disabled:((bn=Fe.detail)==null?void 0:bn.shixun_status)===2,placeholder:"\u8BF7\u8F93\u5165\u7B2C\u4E09\u65B9\u5E73\u53F0\u7684\u94FE\u63A5\u5730\u5740\u3002\u4F8B\uFF1Ahttps://..."})),((Sn=Fe.detail)==null?void 0:Sn.unity_3d)&&((On=Fe.detail)==null?void 0:On.identity)<3&&((zn=Fe.detail)==null?void 0:zn.vrs_type)!=1&&x.createElement(x.Fragment,null,x.createElement(t.default.Item,{name:"with_code_file",label:"\u662F\u5426\u9700\u8981\u4EE3\u7801\u8BC4\u6D4B:"},x.createElement(i.ZP.Group,null,x.createElement(i.ZP,{value:!0},"\u662F"),x.createElement(i.ZP,{value:!1},"\u5426"))),Ke.with_code_file?x.createElement(t.default.Item,{name:"unity_3d_result",label:"\u8BC4\u6D4B\u7ED3\u679C\u662F\u5426\u7531 Unity3D \u51B3\u5B9A:"},x.createElement(i.ZP.Group,null,x.createElement(i.ZP,{value:!0},"\u662F"),x.createElement(i.ZP,{value:!1},"\u5426"))):null,Ke.with_code_file?x.createElement(t.default.Item,{name:"unity3d_show_location",label:"Unity3D\u5185\u5BB9\u5C55\u793A\u4F4D\u7F6E:"},x.createElement(i.ZP.Group,null,x.createElement(i.ZP,{value:0},"\u5DE6\u4FA7\uFF08\u4EFB\u52A1\u8981\u6C42\u4E0A\u65B9\uFF09"),x.createElement(i.ZP,{value:1},"\u53F3\u4FA7\uFF08\u53EF\u901A\u8FC7\u5B9E\u9A8C\u73AF\u5883\u5207\u6362\uFF09"))):null)),x.createElement("div",{className:C.twoPart},Ke.with_code_file&&((jn=Fe.detail)==null?void 0:jn.vrs_type)!=1&&x.createElement(x.Fragment,null,x.createElement("div",{className:C.title},"\u8BC4\u6D4B\u6587\u4EF6"),x.createElement(t.default.Item,{name:"exec_time",label:x.createElement("div",null,"\u8BC4\u6D4B\u65F6\u957F\u9650\u5236 ",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u7A0B\u5E8F\u7F16\u8BD1\u3001\u6267\u884C\u6240\u5141\u8BB8\u7684\u6700\u5927\u65F6\u957F\uFF0C\u5355\u4F4D\uFF1A\u79D2\uFF09")),rules:[{required:!0,message:"\u5FC5\u586B\u9879\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"}]},x.createElement(f.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u8BC4\u6D4B\u65F6\u957F",className:C.width300})),x.createElement(t.default.Item,{label:x.createElement("div",null,"\u8BC4\u6D4B\u7ED3\u679C\u5C55\u793A\u65B9\u5F0F ",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u5B66\u5458\u8BC4\u6D4B\u672C\u5173\u4EFB\u52A1\u65F6\uFF0C\u67E5\u770B\u6548\u679C\u9875\u4E0A\u9700\u8981\u5C55\u73B0\u7684\u6587\u4EF6\u7C7B\u578B\uFF09"))},x.createElement(t.default.Item,{name:"show_type",noStyle:!0,rules:[{required:!0,message:"\u5FC5\u586B\u9879\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"}]},x.createElement(I.default,{bordered:!1,size:"large",style:{width:600},getPopupContainer:Re=>Re.parentNode},x.createElement(ye,{value:-1},"\u6D4B\u8BD5\u96C6\u5BF9\u6BD4"),x.createElement(ye,{value:1},"\u56FE\u7247"),x.createElement(ye,{value:2},"apk/exe"),x.createElement(ye,{value:3},"txt"),x.createElement(ye,{value:4},"html"),x.createElement(ye,{value:5},"mp3"),x.createElement(ye,{value:6},"mp4"),x.createElement(ye,{value:7},"LaTeX"),x.createElement(ye,{value:8},"office"),x.createElement(ye,{value:9},"Verilog"))),x.createElement(v.Z,{overlayClassName:C.popover,placement:"bottomLeft",content:x.createElement("p",{className:"font12"},"\u56FE\u7247\uFF1A\u5904\u7406\u6216\u8F93\u51FA\u56FE\u7247\u7C7B\u578B\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u586B\u6B64\u9879",x.createElement("br",null),"\u53EF\u4EE5\u901A\u8FC7\u8BBE\u7F6E\u56FE\u7247\u8DEF\u5F84\u548C\u5B66\u5458\u7B54\u6848\u6587\u4EF6\u8DEF\u5F84\uFF0C\u5C55\u793A\u4EE3\u7801\u5BF9\u5E94\u7684\u56FE\u7247\u6548\u679C",x.createElement("br",null),x.createElement("br",null),"apk/exe\uFF1A\u5199\u53EF\u6267\u884C\u6587\u4EF6\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u586B\u6B64\u9879",x.createElement("br",null),"\u53EF\u4EE5\u901A\u8FC7\u8BBE\u7F6E\u5B66\u5458\u7B54\u6848\u6587\u4EF6\u8DEF\u5F84\uFF0C\u5C55\u793A\u4E8C\u7EF4\u7801\u4EE5\u4F9B\u626B\u7801\u4E0B\u8F7D",x.createElement("br",null),x.createElement("br",null),"txt\uFF1A\u8F93\u51FAtxt\u6587\u6863\u7C7B\u578B\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u586B\u6B64\u9879",x.createElement("br",null),"\u53EF\u4EE5\u901A\u8FC7\u5B66\u5458\u7B54\u6848\u6587\u4EF6\u8DEF\u5F84\u8BBE\u7F6E\uFF0C\u5C55\u793Atxt\u6587\u4EF6\u5185\u5BB9",x.createElement("br",null),x.createElement("br",null),"html\uFF1Aweb\u7C7B\u578B\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u586B\u6B64\u9879",x.createElement("br",null),"\u53EF\u4EE5\u901A\u8FC7Web\u8DEF\u7531\u8BBE\u7F6E\uFF0C\u5C55\u793Ahtml\u6548\u679C\u9884\u89C8\u9875",x.createElement("br",null),x.createElement("br",null),"mp3/mp4\uFF1Amp3/mp4\u6587\u4EF6\u7C7B\u578B\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u586B\u6B64\u9879",x.createElement("br",null),"\u53EF\u4EE5\u901A\u8FC7\u5B66\u5458\u7B54\u6848\u6587\u4EF6\u8DEF\u5F84\u8BBE\u7F6E\uFF0C\u5C55\u793Amp3/mp4\u6587\u4EF6\u5185\u5BB9",x.createElement("br",null),x.createElement("br",null),"LaTeX\uFF1ALaTeX\u5B9E\u9A8C\u62A5\u544A\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u62E9\u6B64\u9879",x.createElement("br",null),"\u5B66\u5458\u53EF\u4EE5\u4F7F\u7528LaTeX\u7CFB\u7EDF\u64B0\u5199\u5B9E\u9A8C\u62A5\u544A\uFF0C\u6700\u7EC8\u4EE5PDF\u683C\u5F0F\u5C55\u793A",x.createElement("br",null),x.createElement("span",{className:"c-red"},"\u6CE8\u610F\uFF1A\u9009\u62E9\u4E86LaTeX\u7684\u5173\u5361\uFF0C\u9700\u8981\u6559\u5E08\u624B\u52A8\u5BF9\u8BE5\u5173\u5361\u8FDB\u884C\u5224\u5206"),x.createElement("br",null),x.createElement("br",null),"Office\uFF1AMicrosoftOffice\u76F8\u5173\u6587\u4EF6\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u586B\u6B64\u9879",x.createElement("br",null),"\u6CE8\u610F\uFF1A\u5B66\u751F\u4E0A\u4F20\u7684office\u6587\u4EF6\u76EE\u5F55\u662F\u5728/data/bigfiles\u76EE\u5F55\u4E0B\uFF0C\u5982\u679C\u8981\u505A\u8BC4\u6D4B\uFF0C\u8BF7\u8BFB\u53D6\u6B64\u76EE\u5F55\u7684\u6587\u4EF6",x.createElement("br",null)),trigger:"click"},x.createElement(e.Z,{className:"ml5 font24 c-light-black"}))),x.createElement(t.default.Item,{name:"path",label:x.createElement("div",null,"\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6 ",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u8BE5\u6587\u4EF6\u5C06\u76F4\u63A5\u663E\u793A\u7ED9\u5B66\u751F\uFF0C\u9700\u8981\u5B66\u751F\u5728\u5176\u4E2D\u586B\u5199\u4EE3\u7801\uFF09")),rules:[{required:!0,message:"\u5FC5\u586B\u9879\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"}]},x.createElement(f.default,{bordered:!1,placeholder:"\u70B9\u51FB\u9009\u62E9\u4EE3\u7801\u6587\u4EF6\uFF0C\u53EF\u540C\u65F6\u9009\u62E9\u591A\u4E2A\u6587\u4EF6",onClick:()=>Nr("path")})),x.createElement(t.default.Item,{name:"exec_path",label:x.createElement("div",null,"\u8BC4\u6D4B\u6267\u884C\u6587\u4EF6 ",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u70B9\u51FB\u8BC4\u6D4B\u6309\u94AE\u65F6\u8C03\u7528\u7684\u6587\u4EF6\uFF0C\u7528\u4E8E\u68C0\u6D4B\u5B66\u5458\u7ED3\u679C\u662F\u5426\u6B63\u786E\uFF0C\u53EF\u4EE5\u4E0E\u201C\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u201D\u4E00\u81F4\uFF09")),rules:[{required:!0,message:"\u5FC5\u586B\u9879\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"}]},x.createElement(f.default,{bordered:!1,placeholder:"\u70B9\u51FB\u9009\u62E9\u4EE3\u7801\u6587\u4EF6",onClick:()=>Nr("exec_path")})),Ke.show_type===4&&(Ke.web_route||(Te==null?void 0:Te.has_web_route))&&x.createElement(x.Fragment,null,x.createElement(t.default.Item,{name:"proxy_port",label:x.createElement("div",null,"\u7AEF\u53E3\u53F7 ",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u8BF7\u6CE8\u610F\u5C06\u670D\u52A1\u5668\u7A0B\u5E8F\u7684\u7AEF\u53E3\u53F7\u6620\u5C04\u5230\u4EE5\u4E0B\u7AEF\u53E3\uFF0C\u9ED8\u8BA48080\uFF09")),rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7AEF\u53E3\u53F7"},{validator:(Re,pt)=>/^([0-9]|[1-9]\d|[1-9]\d{2}|[1-9]\d{3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$/.test(pt)||!pt?Promise.resolve():Promise.reject(new Error("\u7AEF\u53E3\u8F93\u5165\u8303\u56F4(0-65535)"))}]},x.createElement(f.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u51650-65535\u7684\u503C"})),x.createElement(t.default.Item,{name:"web_route",label:x.createElement("div",null,"Web\u8DEF\u7531 ",x.createElement("span",{className:"font12 c-light-black"}," \uFF08\u7F51\u7AD9\u7C7B\u578B\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u586B\u5199Web\u8DEF\u7531\u5730\u5740\uFF09"))},x.createElement(f.default,{bordered:!1,placeholder:"\u7F51\u7AD9\u7C7B\u578B\u5B9E\u8BAD\uFF0C\u8BF7\u586B\u5199Web\u8DEF\u7531\u5730\u5740\u3002\u4F8B\uFF1Ajava/mypage"}))),(Ke.show_type===1||Ke.show_type===5||Ke.show_type===6)&&x.createElement(t.default.Item,{name:"original_picture_path",label:x.createElement("div",null,"\u6E90\u6587\u4EF6\u76EE\u5F55 ",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u8BE5\u76EE\u5F55\u7528\u4E8E\u5B58\u653E\u9700\u8981\u5904\u7406\u7684\u56FE\u7247/MP3/MP4\u7B49\u6587\u4EF6\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u5355\u72EC\u7684\u6587\u4EF6\u5939\uFF09"))},x.createElement(f.default,{bordered:!1,placeholder:"\u70B9\u51FB\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\uFF0C\u4F8B\uFF1Asrc/step1/sourcefiles",onClick:()=>Nr("original_picture_path")})),Ke.show_type!==-1&&x.createElement(t.default.Item,{name:"picture_path",label:x.createElement("div",null,"\u5B66\u5458\u7B54\u6848\u6587\u4EF6\u76EE\u5F55 ",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u8BE5\u76EE\u5F55\u7528\u4E8E\u5B58\u653E\u5B66\u5458\u4EE3\u7801\u6267\u884C\u540E\u751F\u6210\u7684\u6587\u4EF6\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u5355\u72EC\u7684\u6587\u4EF6\u5939\uFF09"))},x.createElement(f.default,{bordered:!1,placeholder:"\u70B9\u51FB\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\uFF0C\u4F8B\uFF1Asrc/step1/outputfiles",onClick:()=>Nr("picture_path")})),(Ke.show_type===1||Ke.show_type===5||Ke.show_type===6)&&x.createElement(t.default.Item,{name:"expect_picture_path",label:x.createElement("div",null,"\u6807\u51C6\u7B54\u6848\u6587\u4EF6\u76EE\u5F55 ",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u8BE5\u76EE\u5F55\u7528\u4E8E\u5B58\u653E\u6700\u7EC8\u4F5C\u4E3A\u53C2\u8003\u7684\u6587\u4EF6\uFF0C\u5728\u8BC4\u6D4B\u901A\u8FC7\u540E\u4F1A\u5C55\u793A\u7ED9\u5B66\u5458\u67E5\u770B\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u5355\u72EC\u7684\u6587\u4EF6\u5939\uFF09"))},x.createElement(f.default,{bordered:!1,placeholder:"\u70B9\u51FB\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\uFF0C\u4F8B\uFF1Asrc/step1/expectedfiles",onClick:()=>Nr("expect_picture_path")})))),x.createElement("div",{className:C.threePart},Ke.with_code_file&&((qt=Fe.detail)==null?void 0:qt.vrs_type)!=1&&x.createElement(x.Fragment,null,x.createElement("div",{className:C.title},"\u8BC4\u6D4B\u89C4\u5219"),x.createElement("div",{className:C.flexRowCenter},x.createElement(t.default.Item,{className:C.formCustom,name:"test_set_rules",label:"\u901A\u5173\u5224\u5B9A:"},x.createElement(i.ZP.Group,{className:"ml25"},x.createElement(i.ZP,{className:C.radioStyle,value:0},"\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u5BF9\u6BD4"),x.createElement(i.ZP,{className:C.radioStyle,value:1},"\u5B9E\u9645\u8F93\u51FA\u6EE1\u8DB3\u89C4\u5219"))),Ke.test_set_rules===1&&x.createElement(x.Fragment,null,x.createElement(t.default.Item,{name:"test_set_rules_expression",style:{marginTop:50,position:"relative",top:40},rules:[{required:!0,message:"\u5FC5\u586B\u9879\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"}]},x.createElement(f.default,{style:{width:400,marginLeft:-40},bordered:!1,placeholder:"\u9002\u7528\u4E8E\u8F93\u51FA\u7ED3\u679C\u52A8\u6001\u53D8\u5316\u7684\u7A0B\u5E8F"})),x.createElement(v.Z,{overlayClassName:C.popover,placement:"bottomLeft",content:x.createElement("p",{className:"font12"},"\u4F7F\u7528\u793A\u4F8B1\uFF1A\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u7684\u76F8\u5BF9\u8BEF\u5DEE\u57280.01\u4EE5\u5185\uFF0C\u53EF\u4F7F\u7528\u4EE5\u4E0B\u8868\u8FBE\u5F0F\uFF1A",x.createElement("br",null),"(actual-expect)/expect <= 0.01",x.createElement("br",null),"\u4F7F\u7528\u793A\u4F8B2\uFF1A\u5B9E\u9645\u8F93\u51FA\u7ED3\u679C\u5305\u542B\u67D0\u6BB5\u5B57\u7B26\u4E32hello\uFF0C\u53EF\u4F7F\u7528\u4EE5\u4E0B\u8868\u8FBE\u5F0F\uFF1A",x.createElement("br",null),'string.contains(actual, "hello")',x.createElement("br",null),x.createElement("br",null),"\u82E5\u9700\u8981\u5BF9\u8F93\u51FA\u7ED3\u679C\u4E2D\u6BCF\u4E2A\u5143\u7D20\u8FDB\u884C\u64CD\u4F5C\uFF0C\u53EF\u4F7F\u7528list\u96C6\u5408",x.createElement("br",null),"\u793A\u4F8B\u53C2\u8003\uFF1A\u5047\u8BBE\u7A0B\u5E8F\u5B9E\u9645\u8F93\u51FA\u4E3A\uFF1A100 1000 10000\uFF1B\u9884\u671F\u8F93\u51FA\u4E3A\uFF1A100.01 1000.02 10000.05",x.createElement("br",null),"\u8BC4\u6D4B\u8981\u6C42\uFF1A\u5B9E\u9645\u8F93\u51FA\u5217\u8868\u4E2D\u5143\u7D20\u4E0E\u9884\u671F\u8F93\u51FA\u5217\u8868\u4E2D\u5BF9\u5E94\u5143\u7D20\u76F8\u5BF9\u8BEF\u5DEE\u57280.01 \u4E4B\u5185\uFF0C\u53EF\u4F7F\u4EE5\u4E0B\u8868\u8FBE\u5F0F\uFF1A",x.createElement("br",null),"list.forEach( 'math.abs( (actualElem-expectElem)/expectElem ) <= 0.01 ' )",x.createElement("br",null),x.createElement("br",null),x.createElement("a",{href:"https://www.educoder.net/forums/4346",target:"_blank",style:{background:"#0152d9",color:"#fff"}},"\u70B9\u51FB\u67E5\u770B\u8BE6\u60C5\u8BF4\u660E"),x.createElement("br",null)),trigger:"click"},x.createElement(e.Z,{style:{padding:"114px 0 0 9px"},className:"font24 c-light-black"})))),x.createElement(t.default.Item,{className:C.formCustom,name:"ignore_space",label:"\u7A7A\u683C\u5904\u7406:"},x.createElement(i.ZP.Group,{className:"ml25"},x.createElement(i.ZP,{className:C.radioStyle,value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),x.createElement(i.ZP,{className:C.radioStyle,value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),x.createElement(i.ZP,{className:C.radioStyle,value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C",x.createElement("span",{className:"font12 c-light-black"},"(\u8BC4\u6D4B\u8FC7\u7A0B\u4E2D\u81EA\u52A8\u53BB\u6389\u6240\u6709\u7A7A\u683C\u8FDB\u884C\u5BF9\u6BD4)")))))),x.createElement("div",{className:C.fourPart},Ke.with_code_file&&((Nn=Fe.detail)==null?void 0:Nn.vrs_type)!=1&&x.createElement(x.Fragment,null,x.createElement("div",{className:C.title},"\u6D4B\u8BD5\u96C6"),x.createElement(t.default.Item,{className:C.testJi,name:"test_set_score",label:"\u5F97\u5206\u89C4\u8303:"},x.createElement(i.ZP.Group,{className:"ml25"},x.createElement(i.ZP,{value:!1,className:C.radioStyle},"\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u6240\u6709\u6D4B\u8BD5\u96C6\u90FD\u6B63\u786E\u65F6\uFF0C\u624D\u80FD\u83B7\u5F97\u91D1\u5E01\uFF09")),x.createElement(i.ZP,{value:!0,className:C.radioStyle},"\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u90E8\u5206\u6D4B\u8BD5\u96C6\u6B63\u786E\u65F6\uFF0C\u6309\u914D\u7F6E\u7684\u6BD4\u4F8B\u83B7\u5F97\u91D1\u5E01\uFF09")))),Ke.test_set_score&&x.createElement("div",{className:C.averageWarp},x.createElement(t.default.Item,{className:C.averageCustom,name:"test_set_average",label:""},x.createElement(i.ZP.Group,null,x.createElement(i.ZP,{style:{margin:"0 40px 0 20px"},value:!0},"\u5747\u5206\u6BD4\u4F8B"),x.createElement(i.ZP,{value:!1},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B")))),Ke.test_set_score&&x.createElement("div",null,x.createElement("div",{style:{display:"flex",height:"30px",marginBottom:"10px",paddingLeft:"93px"}},x.createElement(c.default,{checked:$t,style:{display:"flex",alignItems:"center"},className:C.checkboxs,onChange:Re=>{vn(Re.target.checked),Be.setFieldsValue({code_compile_score:0}),Ke.test_set_average&&(Ke.is_file?dr(dt):yr(Me))}},"\u542F\u7528\u7F16\u8BD1\u901A\u8FC7\u5373\u53EF\u5F97\u5206"),$t&&x.createElement("span",{style:{display:"flex"}},x.createElement(t.default.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7F16\u8BD1\u5F97\u5206"}],name:"code_compile_score"},x.createElement(o.Z,{onChange:()=>{Ke.test_set_average&&(Ke.is_file?dr(dt):yr(Me))},parser:Re=>isNaN(parseInt(Re))?"":parseInt(Re),min:0,max:100,style:{width:"85px",margin:"5px 0px",fontSize:"14px"}}))," ",x.createElement("span",{style:{display:"flex",alignItems:"center",marginLeft:"5px",marginTop:10}},"%",x.createElement("div",{style:{color:"#999",fontSize:"12px"}},"\uFF08\u8BF7\u6CE8\u610F\u8BE5\u5B9E\u8BAD\u9898\u662F\u5426\u6709\u7F16\u8BD1\u8FC7\u7A0B\uFF0C\u82E5\u6CA1\u6709\u5219\u65E0\u6CD5\u83B7\u5F97\u7F16\u8BD1\u5F97\u5206\uFF09"))))),x.createElement(t.default.Item,{className:C.testJi,name:"is_file",label:"\u7528\u4F8B\u7C7B\u578B:"},x.createElement(i.ZP.Group,{className:"ml25"},x.createElement(m.Z,{direction:"horizontal"},x.createElement(i.ZP,{value:!1,className:C.radioStyle},"\u6587\u672C"),x.createElement(i.ZP,{value:!0,className:C.radioStyle},"\u6587\u4EF6")))),x.createElement("div",{style:{marginTop:"20px"},className:C.upBtn},!Ke.is_file&&x.createElement(r.ZP,{ghost:!0,disabled:ot.every(Re=>!Re),type:"primary",className:"mb20",style:{right:"345px"},onClick:()=>Rt(!0)},"\u6279\u91CF\u8BBE\u7F6E"),x.createElement(r.ZP,{ghost:!0,type:"primary",className:"mb20",style:{right:"174px"},onClick:()=>Aa()},"\u4E00\u952E\u5220\u9664\u6D4B\u8BD5\u7528\u4F8B"),x.createElement(r.ZP,{ghost:!0,type:"primary",className:"mb20",style:{right:"4px"},onClick:()=>on(!0)},"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"),Ke.is_file&&x.createElement(re.Y2,{showEvaluatingSetting:!0,onEvaluatingChange:Ka,checkAll1:Rn,checkAll2:sn,checkAll3:Pt,checkAll4:_e,checkAll5:st,onSelectAll:Za,disabled:Ke==null?void 0:Ke.test_set_average,inputChange:Wr,showScore:Ke==null?void 0:Ke.test_set_score,data:dt,onRemove:sa})),!Ke.is_file&&x.createElement(c.default,{checked:ot.every(Re=>!!Re),onChange:Re=>{const pt=ot.map(()=>Re.target.checked);Oe(pt),Ue(Re.target.checked)}},"\u5168\u9009"),!Ke.is_file&&Me.map((Re,pt)=>x.createElement("div",{className:C.groupWrap,key:pt},x.createElement("div",{className:"font16"},x.createElement(c.default,{checked:ot[pt],onChange:Zt=>{console.log(ot);const gn=[...ot];gn[pt]=Zt.target.checked;const yn=gn.every(mn=>mn);Oe(gn),Ue(yn)}}),x.createElement("span",{className:"mr10 ml5"},"\u7EC4",pt+1," : "),Ke.test_set_score&&x.createElement("span",{style:{marginRight:100}},x.createElement(o.Z,{style:{width:85},value:Re.score,precision:0,min:0,max:100,onBlur:Zt=>{if(Number(Zt)<0||Number(Zt)>100){u.ZP.info("\u6D4B\u8BD5\u7528\u4F8B\u7684\u6743\u91CD\u6BD4\u4F8B\u503C\u9650\u5236\u4E3A 0-100");const gn=Me.map((mn,fr)=>fr===pt?_(oe({},mn),{score:100}):mn),yn={test_set_average:!1};ft(oe(oe({},Ke),yn)),Be.setFieldsValue(yn),We(gn)}},onChange:Zt=>{const gn=Me.map((mn,fr)=>fr===pt?_(oe({},mn),{score:Zt?Number(Zt):0}):mn),yn={test_set_average:!1};ft(oe(oe({},Ke),yn)),Be.setFieldsValue(yn),We(gn)}}),x.createElement("span",{className:"ml10 mr10"},"%")),Ke.test_set_score&&x.createElement(c.default,{className:"font14 ml5",checked:Re.is_target,onChange:Zt=>{const gn=Me.map((yn,mn)=>mn===pt?_(oe({},yn),{is_target:Zt.target.checked}):yn);We(gn)}},"\u6307\u6807\u6D4B\u8BD5\u96C6",x.createElement(p.Z,{title:"\u5982\u9700\u8981\u8F93\u51FA\u6307\u6807\uFF0C\u53EF\u4EE5\u52FE\u9009\u6307\u6807\u6D4B\u6D4B\u8BD5\u96C6\uFF0C\u5E76\u5BF9\u6307\u6807\u8FDB\u884C\u547D\u540D\u3002\u6559\u5E08\u53EF\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u5B9E\u8BAD\u62A5\u544A\u9875\u9762\u67E5\u770B\u5B66\u751F\u7684\u6307\u6807\u662F\u5426\u5408\u683C\u3002\u6307\u6807\u5F97\u5206\u8BA1\u5165\u6700\u7EC8\u6210\u7EE9"},x.createElement(e.Z,{className:"ml5 font12 c-light-black"}))," "),Re.is_target&&Ke.test_set_score&&x.createElement(f.default,{value:Re.target_name,maxLength:30,style:{width:"50%"},onChange:Zt=>{const gn=Me.map((yn,mn)=>mn===pt?_(oe({},yn),{target_name:Zt.target.value}):yn);We(gn)}}),x.createElement("span",{className:"tr flex1",style:{float:"right"}},pt!==0&&x.createElement(p.Z,{placement:"bottom",title:"\u5220\u9664"},x.createElement("span",{className:"font16 c-red current",onClick:()=>{const Zt=Me.filter((yn,mn)=>mn!==pt),gn=ot.filter((yn,mn)=>mn!==pt);Oe(gn),yr(Zt)}},"\u5220\xA0\u9664")))),x.createElement(Ce,{bordered:!1,className:"mt10",rows:5,placeholder:"\u8F93\u5165",value:Re.input,onChange:Zt=>{const gn=Me.map((yn,mn)=>mn===pt?_(oe({},yn),{input:Zt.target.value}):yn);We(gn)}}),x.createElement(Ce,{bordered:!1,className:"mt10",rows:5,placeholder:"\u9884\u671F\u8F93\u51FA",value:Re.output,onChange:Zt=>{const gn=Me.map((yn,mn)=>mn===pt?_(oe({},yn),{output:Zt.target.value}):yn);We(gn)}}),x.createElement("div",{className:"mt10"},x.createElement("span",{className:"font14 mr15"},"\u53EF\u89C1\u6027: ",x.createElement(p.Z,{title:x.createElement("div",null,x.createElement("span",null,'\u5168\u90E8\u9690\u85CF\uFF1A\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'),x.createElement("br",null),x.createElement("span",null,"\u9690\u85CF\u8F93\u5165\uFF1A\u52FE\u9009\u540E\u6D4B\u8BD5\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"),x.createElement("br",null),x.createElement("span",null,"\u9690\u85CF\u9884\u671F\u8F93\u51FA\uFF1A\u52FE\u9009\u540E\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"),x.createElement("br",null),x.createElement("span",null,"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA\uFF1A\u52FE\u9009\u540E\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"),x.createElement("br",null))},x.createElement(e.Z,{className:"ml5 font12 c-light-black"}))),x.createElement(c.default,{checked:Re.hidden===1,onChange:Zt=>{const gn=Me.map((yn,mn)=>mn===pt?_(oe({},yn),{hidden:Zt.target.checked?1:0,input_visible:Zt.target.checked,is_invisible:Zt.target.checked,actual_output_visible:Zt.target.checked}):yn);We(gn)}},x.createElement("span",{className:"font14"},"\u5168\u90E8\u9690\u85CF")),x.createElement(c.default,{checked:Re.hidden===1?!0:Re.input_visible,onChange:Zt=>{const gn=Me.map((yn,mn)=>{if(mn===pt){const fr=Zt.target.checked&&Re.is_invisible&&Re.actual_output_visible?1:0;return _(oe({},yn),{input_visible:Zt.target.checked,hidden:fr})}return yn});We(gn)}},x.createElement("span",{className:"font14"},"\u9690\u85CF\u8F93\u5165")),x.createElement(c.default,{checked:Re.hidden===1?!0:Re.is_invisible,onChange:Zt=>{const gn=Me.map((yn,mn)=>{if(mn===pt){const fr=Zt.target.checked&&Re.actual_output_visible&&Re.input_visible?1:0;return _(oe({},yn),{is_invisible:Zt.target.checked,hidden:fr})}return yn});We(gn)}},x.createElement("span",{className:"font14"},"\u9690\u85CF\u9884\u671F\u8F93\u51FA")),x.createElement(c.default,{checked:Re.hidden===1?!0:Re.actual_output_visible,onChange:Zt=>{const gn=Me.map((yn,mn)=>{if(mn===pt){const fr=Zt.target.checked&&Re.is_invisible&&Re.input_visible?1:0;return _(oe({},yn),{actual_output_visible:Zt.target.checked,hidden:fr})}return yn});We(gn)}},x.createElement("span",{className:"font14"},"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA"))),x.createElement("div",null,x.createElement("span",{className:"font14 mr20"},"\u7279\u6B8A\u5224\u5B9A:"),x.createElement(c.default,{checked:Re.last_match_rule,onChange:Zt=>{const gn=Me.map((yn,mn)=>mn===pt?_(oe({},yn),{last_match_rule:Zt.target.checked}):yn);We(gn)}},x.createElement("span",{className:"font14"},"\u672B\u5C3E\u5339\u914D",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173\uFF09")))))),!Ke.is_file&&x.createElement("div",null,x.createElement(r.ZP,{type:"primary",ghost:!0,className:"mt10",onClick:Vr},"\u65B0\u589E\u6D4B\u8BD5\u96C6"),x.createElement("span",{className:" ml20 mt10 font12 c-light-black"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u516C\u5F00\u6D4B\u8BD5\u96C6\u548C\u9690\u85CF\u6D4B\u8BD5\u96C6\u7ED3\u5408\u4F7F\u7528\uFF0C\u53EF\u4EE5\u964D\u4F4E\u4F5C\u5F0A\u7684\u673A\u7387\uFF1B\u9690\u85CF\u6D4B\u8BD5\u96C6\uFF0C\u5728\u201C\u63D0\u4EA4\u8BC4\u6D4B\u201D\u65F6\u4E5F\u5C06\u88AB\u7CFB\u7EDF\u81EA\u52A8\u68C0\u6D4B"))))),x.createElement(H,{fileType:Je,path:Ke==null?void 0:Ke[Je],onFinish:Re=>Hr(Re)})),x.createElement(g.t,{key:2,onOk:()=>Be.submit(),className:"customFixedButton",onCancel:so}),x.createElement(ee.Z,{loading:et}),x.createElement(re.ZP,{rootIdentifier:(De=Fe==null?void 0:Fe.detail)==null?void 0:De.root_identifier,visible:en,onClose:()=>on(!1),onOK:io,multiple:!0,defaultMultipleValue:Ke==null?void 0:Ke.is_file}),x.createElement(s.default,{open:Vt,onOk:()=>{const Re=Me.map((pt,Zt)=>ot[Zt]?(console.log(oe({},pt)),console.log(oe({},nt)),console.log(oe(oe({},pt),nt)),oe(oe({},pt),nt)):pt);We(Re),tt({hidden:0,input_visible:!1,is_invisible:!1,actual_output_visible:!1,last_match_rule:!1}),Rt(!1)},centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:()=>{tt({hidden:0,input_visible:!1,is_invisible:!1,actual_output_visible:!1,last_match_rule:!1}),Rt(!1)},width:586,title:"\u6279\u91CF\u8BBE\u7F6E"},x.createElement("div",null,x.createElement("span",{className:"font14 mr15"},"\u53EF\u89C1\u6027: ",x.createElement(p.Z,{title:x.createElement("div",null,x.createElement("span",null,'\u5168\u90E8\u9690\u85CF\uFF1A\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'),x.createElement("br",null),x.createElement("span",null,"\u9690\u85CF\u8F93\u5165\uFF1A\u52FE\u9009\u540E\u6D4B\u8BD5\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"),x.createElement("br",null),x.createElement("span",null,"\u9690\u85CF\u9884\u671F\u8F93\u51FA\uFF1A\u52FE\u9009\u540E\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"),x.createElement("br",null),x.createElement("span",null,"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA\uFF1A\u52FE\u9009\u540E\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"),x.createElement("br",null))},x.createElement(e.Z,{className:"ml5 font12 c-light-black"}))),x.createElement(c.default,{checked:nt.hidden===1,onChange:Re=>{tt(_(oe({},nt),{hidden:Re.target.checked?1:0,input_visible:Re.target.checked,is_invisible:Re.target.checked,actual_output_visible:Re.target.checked}))}},x.createElement("span",{className:"font14 mr10"},"\u5168\u90E8\u9690\u85CF")),x.createElement(c.default,{checked:nt.input_visible,onChange:Re=>{const pt=Re.target.checked&&nt.is_invisible&&nt.actual_output_visible?1:0;tt(_(oe({},nt),{hidden:pt,input_visible:Re.target.checked}))}},x.createElement("span",{className:"font14 mr10"},"\u9690\u85CF\u8F93\u5165")),x.createElement(c.default,{checked:nt.is_invisible,onChange:Re=>{const pt=Re.target.checked&&nt.input_visible&&nt.actual_output_visible?1:0;tt(_(oe({},nt),{hidden:pt,is_invisible:Re.target.checked}))}},x.createElement("span",{className:"font14 mr10"},"\u9690\u85CF\u9884\u671F\u8F93\u51FA")),x.createElement(c.default,{checked:nt.actual_output_visible,onChange:Re=>{const pt=Re.target.checked&&nt.input_visible&&nt.is_invisible?1:0;tt(_(oe({},nt),{hidden:pt,actual_output_visible:Re.target.checked}))}},x.createElement("span",{className:"font14"},"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA")),x.createElement("div",{className:"mt10"},x.createElement("span",{className:"font14 mr20"},"\u7279\u6B8A\u5224\u5B9A:"),x.createElement(c.default,{checked:nt.last_match_rule,onChange:Re=>{tt(_(oe({},nt),{last_match_rule:Re.target.checked}))}},x.createElement("span",{className:"font14"},"\u672B\u5C3E\u5339\u914D",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173\uFF09")))))),x.createElement(s.default,{zIndex:1001,width:600,centered:!0,title:Fe.actionTabs.key,open:["\u7F16\u8F91\u8BBE\u7F6E\u9879","\u6DFB\u52A0\u8BBE\u7F6E\u9879"].includes(Fe.actionTabs.key),onCancel:()=>{Ne({type:"shixunsDetail/setActionTabs",payload:{}})},onOk:()=>Qe.submit(),afterClose:()=>{Qe.resetFields(),Dn(null)}},x.createElement(t.default,{form:Qe,className:"mt10",labelCol:{span:5},wrapperCol:{span:20},onFinish:Re=>{if(Fe.actionTabs.key=="\u7F16\u8F91\u8BBE\u7F6E\u9879"){let pt=In.findIndex(Zt=>Zt.id==Fe.actionTabs.params.id);In[pt]=oe(oe({},In[pt]),Re),xn([...In])}else xn([...In,_(oe({},Re),{id:new Date().getTime()})]);it({type:"shixunsDetail/setActionTabs",payload:{}})},colon:!1,size:"large",labelAlign:"right"},x.createElement(t.default.Item,{label:"\u76EE\u6807",name:"target",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u76EE\u6807\u540D\u79F0"}]},x.createElement(f.default,{placeholder:"\u8BF7\u8F93\u5165\u76EE\u6807\u540D\u79F0",maxLength:20})),x.createElement(t.default.Item,{label:"\u8BBE\u7F6E\u9879\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BBE\u7F6E\u9879\u540D\u79F0"}]},x.createElement(f.default,{placeholder:"\u8BF7\u8F93\u5165\u8BBE\u7F6E\u9879\u540D\u79F0\uFF0C\u6700\u5927\u652F\u630120\u4E2A\u5B57\u7B26",maxLength:20})),x.createElement(t.default.Item,{label:"\u6001\u52BF\u503C",name:"value",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6001\u52BF\u503C"}]},x.createElement(f.default,{placeholder:"\u8BF7\u8F93\u5165\u6001\u52BF\u503C\uFF0C\u6700\u5927\u652F\u630120\u4E2A\u5B57\u7B26",maxLength:20})))),x.createElement(s.default,{zIndex:1001,width:730,centered:!0,title:Fe.actionTabs.key,open:["\u7F16\u8F91\u91C7\u96C6\u70B9","\u6DFB\u52A0\u91C7\u96C6\u70B9"].includes(Fe.actionTabs.key),onCancel:()=>{Ne({type:"shixunsDetail/setActionTabs",payload:{}})},onOk:()=>Ge.submit(),afterClose:()=>{Ge.resetFields(),Dn(null)}},x.createElement(t.default,{form:Ge,className:"mt10",labelCol:{flex:"112px"},onFinish:Re=>{if(Fe.actionTabs.key=="\u7F16\u8F91\u91C7\u96C6\u70B9"){let pt=ir.findIndex(Zt=>Zt.id==Fe.actionTabs.params.id);ir[pt]=oe(oe({},ir[pt]),Re),Rr([...ir])}else{let pt=Re.vrs_point_name.map(gn=>{const yn=Gt.find(mn=>mn.name===gn);return _(oe({},Re),{vrs_point_name:gn,id:gn,vrs_point_answer_type:yn==null?void 0:yn.vrs_point_answer_type,vrs_point_answer_value:yn==null?void 0:yn.vrs_point_answer_value})}),Zt=pt.map(gn=>_(oe({},gn),{score:0}));console.log(Re,pt,Gt,88),Ke.test_set_average?Qn([...ir,...pt]):Rr([...ir,Zt])}it({type:"shixunsDetail/setActionTabs",payload:{}})},onValuesChange:(Re,pt)=>{Re.vrs_point_answer_type&&Ge.setFieldsValue({vrs_point_answer_value:"",step_grading_rules:[],step_grading_type:0}),Ot(oe({},pt))},initialValues:{vrs_env_id:(fe=Fe==null?void 0:Fe.detail)==null?void 0:fe.vrs_env_id,vrs_subject_id:(be=Fe==null?void 0:Fe.detail)==null?void 0:be.vrs_subject_id},colon:!1,size:"large",labelAlign:"right"},x.createElement(t.default.Item,{name:"vrs_env_id",label:"\u5173\u8054\u4EFF\u771F\u73AF\u5883",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4EFF\u771F\u73AF\u5883"}]},x.createElement(I.default,{placeholder:"\u8BF7\u9009\u62E9\u4EFF\u771F\u73AF\u5883",size:"large",style:{width:"100%"},getPopupContainer:Re=>Re.parentNode},Ct==null?void 0:Ct.map(Re=>x.createElement(ye,{value:Re.id},`${Re.name}\uFF08${Re.url}\uFF09`)))),x.createElement(t.default.Item,{name:"vrs_subject_id",label:"\u5173\u8054\u79D1\u76EE",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5173\u8054\u79D1\u76EE"}]},x.createElement(I.default,{mode:Ke.vrs_question_type===1?"multiple":null,placeholder:"\u8BF7\u9009\u62E9\u5173\u8054\u79D1\u76EE",size:"large",style:{width:"100%"},getPopupContainer:Re=>Re.parentNode,onChange:(Re,pt)=>ue(void 0,null,function*(){return Xa(Re)})},(ge=Ct==null?void 0:Ct.filter(Re=>{var pt;return Re.id==((pt=Fe==null?void 0:Fe.detail)==null?void 0:pt.vrs_env_id)})[0])==null?void 0:ge.vrs_subjects.map(Re=>x.createElement(ye,{value:Re.id},Re.name)))),x.createElement(t.default.Item,{label:"\u91C7\u96C6\u70B9",name:"vrs_point_name",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u91C7\u96C6\u70B9"}]},x.createElement(I.default,{placeholder:"\u8BF7\u9009\u62E9\u91C7\u96C6\u70B9",mode:Fe.actionTabs.key=="\u7F16\u8F91\u91C7\u96C6\u70B9"?void 0:"multiple",size:"large",maxTagCount:"responsive",style:{width:"100%"},className:C.multiSelect},Gt.map(Re=>{var pt,Zt;return x.createElement(ye,{disabled:(Zt=(pt=ir==null?void 0:ir.map(gn=>gn.vrs_point_name))==null?void 0:pt.filter(gn=>{var yn,mn;return gn!==((mn=(yn=Fe.actionTabs)==null?void 0:yn.params)==null?void 0:mn.vrs_point_name)}))==null?void 0:Zt.includes(Re.name),value:Re.name},Re.name)}))),Fe.actionTabs.key=="\u7F16\u8F91\u91C7\u96C6\u70B9"&&x.createElement(t.default.Item,{label:"\u7B54\u6848\u503C\u7C7B\u578B",name:"vrs_point_answer_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7B54\u6848\u503C\u7C7B\u578B"}]},x.createElement(I.default,{placeholder:"\u8BF7\u9009\u62E9\u7B54\u6848\u503C\u7C7B\u578B"},x.createElement(I.default.Option,{value:0},"\u56FA\u5B9A\u503C"),x.createElement(I.default.Option,{value:1},"\u533A\u95F4\u503C"),x.createElement(I.default.Option,{value:2},"\u72B6\u6001\u503C"))),Fe.actionTabs.key=="\u7F16\u8F91\u91C7\u96C6\u70B9"&&x.createElement(t.default.Item,{shouldUpdate:(Re,pt)=>Re.vrs_point_answer_type!==pt.vrs_point_answer_type,noStyle:!0},({getFieldValue:Re})=>{const pt=Re("vrs_point_answer_type");return x.createElement(t.default.Item,{label:"\u7B54\u6848",name:"vrs_point_answer_value",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B54\u6848"},{validator:(Zt,gn)=>{if(pt===1&&gn){if(!/^\d+-\d+$/.test(gn))return Promise.reject(new Error('\u533A\u95F4\u503C\u683C\u5F0F\u5E94\u4E3A"\u6570\u5B57-\u6570\u5B57"\uFF0C\u5982\uFF1A1-5'));const[mn,fr]=gn.split("-").map(Number);if(mn>=fr)return Promise.reject(new Error("\u533A\u95F4\u503C\u5DE6\u8FB9\u6570\u5B57\u5FC5\u987B\u5C0F\u4E8E\u53F3\u8FB9\u6570\u5B57"))}return Promise.resolve()}}]},x.createElement(f.default,{placeholder:pt===1?"\u8BF7\u8F93\u5165\u533A\u95F4\u503C\uFF0C\u683C\u5F0F\u5982\uFF1A1-5":"\u8BF7\u8F93\u5165\u7B54\u6848\uFF0C\u6700\u5927\u652F\u630120\u4E2A\u5B57\u7B26",maxLength:20}))}),Ke.point_hint&&x.createElement(x.Fragment,null,x.createElement(t.default.Item,{name:"vrs_position",label:"\u5F15\u5BFC\u987A\u5E8F"},x.createElement(o.Z,{placeholder:"\u8BF7\u8F93\u5165\u5F15\u5BFC\u987A\u5E8F",min:0,precision:0,controls:!1,style:{width:"100%"}})),x.createElement(t.default.Item,{name:"vrs_content",label:"\u5F15\u5BFC\u5185\u5BB9"},x.createElement(f.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u5F15\u5BFC\u5185\u5BB9",style:{height:100}}))),Fe.actionTabs.key=="\u7F16\u8F91\u91C7\u96C6\u70B9"&&x.createElement(U,{form:Ge}))),x.createElement(s.default,{zIndex:1001,width:800,centered:!0,title:"\u4E0A\u4F20\u91C7\u96C6\u70B9",open:Fe.actionTabs.key=="\u4E0A\u4F20\u91C7\u96C6\u70B9",onCancel:()=>{Ne({type:"shixunsDetail/setActionTabs",payload:{}})},onOk:()=>{Be.submit()}},x.createElement(t.default,{form:Be,className:"mt10",layout:"vertical",onFinish:Re=>{if((va==null?void 0:va.length)<=0){u.ZP.info("\u8BF7\u4E0A\u4F20\u8BD5\u9898\u6587\u4EF6");return}}},x.createElement(t.default.Item,{name:"vrs_env_id",label:"\u5173\u8054\u4EFF\u771F\u73AF\u5883",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4EFF\u771F\u73AF\u5883"}]},x.createElement(I.default,{placeholder:"\u8BF7\u9009\u62E9\u4EFF\u771F\u73AF\u5883",size:"large",style:{width:"100%"},disabled:!0,getPopupContainer:Re=>Re.parentNode},Ct==null?void 0:Ct.map(Re=>x.createElement(ye,{value:Re.id},`${Re.name}\uFF08${Re.url}\uFF09`)))),x.createElement(t.default.Item,{name:"vrs_subject_id",label:"\u5173\u8054\u79D1\u76EE",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5173\u8054\u79D1\u76EE"}]},x.createElement(I.default,{placeholder:"\u8BF7\u9009\u62E9\u5173\u8054\u79D1\u76EE",size:"large",style:{width:"100%"},disabled:!0,getPopupContainer:Re=>Re.parentNode},(he=Ct==null?void 0:Ct.filter(Re=>{var pt;return Re.id==((pt=Fe==null?void 0:Fe.detail)==null?void 0:pt.vrs_env_id)})[0])==null?void 0:he.vrs_subjects.map(Re=>x.createElement(ye,{value:Re.id},Re.name)))),x.createElement("div",{className:"mb30"},x.createElement("span",{className:C.uploadTips},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),x.createElement("a",{className:`${C.downloadBtn} ml30`,href:F.Z.API_SERVER+"/api/item_banks/down_template",download:!0},x.createElement("i",{className:"iconfont icon-xiazai4 mr5 font14"}),"\u4E0B\u8F7D\u6A21\u7248")),x.createElement("div",{className:"flex item-center"},x.createElement(n.default,{onRemove:()=>{Jr([])},beforeUpload:Re=>{if(console.log(Re),(Re==null?void 0:Re.size)>1024*1024*50)return u.ZP.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;let pt=[];return pt.push(Re),Jr([...pt]),!1},fileList:va,accept:".xls,.xlsx",showUploadList:!1},x.createElement("div",{className:C.uploadBtn},x.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}}),"\u7ACB\u5373\u4E0A\u4F20")),va.map((Re,pt)=>x.createElement("div",{key:Re.uid,className:C.fileItem},x.createElement("span",{className:"file-name"},Re.name),x.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:14,cursor:"pointer"},onClick:()=>Jr(va.filter(Zt=>Zt.uid!==Re.uid))})))))))};var rt=(0,pe.connect)(({shixunsDetail:Fe,newCourse:it,globalSetting:ut,practiceSetting:ht})=>({shixunsDetail:Fe,newCourse:it,globalSetting:ut,practiceSetting:ht}))(Xe)},38852:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return O}});var x=w(59301),pe=w(8591),e=w(54580),I=w(3113),f=w(11662),a=Object.defineProperty,t=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,o=(y,b,h)=>b in y?a(y,b,{enumerable:!0,configurable:!0,writable:!0,value:h}):y[b]=h,c=(y,b)=>{for(var h in b||(b={}))s.call(b,h)&&o(y,h,b[h]);if(t)for(var h of t(b))u.call(b,h)&&o(y,h,b[h]);return y};const n=y=>React.createElement("svg",c({id:"yinpin_svg__\\u56FE\\u5C42_1",xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 16 14",style:{enableBackground:"new 0 0 16 14"},xmlSpace:"preserve"},y),React.createElement("style",null,".yinpin_svg__st0{fill:#3061d0}"),React.createElement("title",null,"\u97F3\u9891"),React.createElement("g",{id:"yinpin_svg__\\u9875\\u9762-1"},React.createElement("g",{id:"yinpin_svg___x31_2-\\u9898\\u76EE-\\u672A\\u5F00\\u542F\\u65F6\\u95F4\\u9650\\u5236",transform:"translate(-270 -904)"},React.createElement("g",{id:"yinpin_svg__\\u7F16\\u7EC4-2\\u5907\\u4EFD-2",transform:"translate(120 892)"},React.createElement("g",{id:"yinpin_svg__\\u7F16\\u7EC4-6",transform:"translate(130 3)"},React.createElement("g",{id:"yinpin_svg__\\u97F3\\u9891",transform:"translate(20 9)"},React.createElement("path",{id:"yinpin_svg__\\u8DEF\\u5F84",className:"yinpin_svg__st0",d:"M14.8 7.6H14V5.7C14 2.6 11.3 0 8 0S2 2.6 2 5.7v1.9h-.8C.5 7.6 0 8.1 0 8.8v4c0 .7.5 1.2 1.2 1.2H2c.7 0 1.2-.5 1.2-1.2V5.7c0-2.5 2.2-4.5 4.8-4.5s4.8 2 4.8 4.5v7.1c0 .7.5 1.2 1.2 1.2h.8c.7 0 1.2-.5 1.2-1.2v-4c0-.7-.5-1.2-1.2-1.2z"}),React.createElement("path",{id:"yinpin_svg__\\u8DEF\\u5F84_1_",className:"yinpin_svg__st0",d:"M8.8 11.2c-.3 0-.5-.1-.6-.4l-.8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EuMiAxLjIgMS4yaC44Yy43IDAgMS4yLS41IDEuMi0xLjJ2LTRjMC0uNy0uNS0xLjItMS4yLTEuMnoiLz48cGF0aCBpZD0i6Lev5b6EXzFfIiBjbGFzcz0ic3QwIiBkPSJNOC44IDExLjJjLS4zIDAtLjUtLjEtLjYtLjRsLS44LTIuMS0uMy42YzAgLjItLjMuMy0uNS4zSDQuOGMtLjMgMC0uNi0uMy0uNi0uNnMuMy0uNi42LS42aDEuNGwuNi0xLjZjLjEtLjIuMy0uNC42LS40LjIgMCAuNS4xLjYuNGwxIDIuNC4yLS40Yy4xLS4yLjMtLjMuNS0uM2gxLjZjLjMgMCAuNi4zLjYuNnMtLjMuNi0uNi42SDEwTDkuNCAxMWMtLjEuMS0uMy4zLS42LjJ6Ii8+PC9nPjwvZz48L2c+PC9nPjwvZz48L3N2Zz4=",i=Object.defineProperty,l=Object.defineProperties,d=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,p=(y,b,h)=>b in y?i(y,b,{enumerable:!0,configurable:!0,writable:!0,value:h}):y[b]=h,S=(y,b)=>{for(var h in b||(b={}))v.call(b,h)&&p(y,h,b[h]);if(E)for(var h of E(b))m.call(b,h)&&p(y,h,b[h]);return y},C=(y,b)=>l(y,d(b)),O=({value:y=[],onChange:b,maxSize:h=50,maxCount:A=10,isEdit:B=!1})=>{const k=W=>{if(W===0)return"0B";const Y=1024,H=["B","KB","MB","GB"],re=Math.floor(Math.log(W)/Math.log(Y));return`${parseFloat((W/Math.pow(Y,re)).toFixed(1))}${H[re]}`},R=W=>{const Y=[".mp3",".flac",".wav"],H=W.toLowerCase().substring(W.lastIndexOf("."));return Y.includes(H)},M=W=>R(W.name)?W.size/1024/1024=A?(pe.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${A}\u4E2A\u97F3\u9891\u6587\u4EF6`),!1):!0:(pe.ZP.error(`\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7${h}MB`),!1):(pe.ZP.error("\u4EC5\u652F\u6301MP3\u3001FLAC\u3001WAV\u683C\u5F0F\u7684\u97F3\u9891\u6587\u4EF6"),!1),z=W=>{const{file:Y}=W;if(Y.status==="uploading"){const H=y.findIndex(G=>G.uid===Y.uid);let re;if(H>=0)re=[...y],re[H]=C(S({},re[H]),{status:"uploading",percent:Y.percent||0});else{const G={uid:Y.uid,name:Y.name,size:Y.size,file:Y.originFileObj,status:"uploading",percent:Y.percent||0};re=[...y,G]}b==null||b(re);return}if(Y.status==="done"){const H=y.map(re=>re.uid===Y.uid?C(S({},re),{status:"done",percent:100,response:Y.response}):re);b==null||b(H),pe.ZP.success(`${Y.name} \u4E0A\u4F20\u6210\u529F`)}if(Y.status==="error"){const H=y.map(re=>re.uid===Y.uid?C(S({},re),{status:"error",percent:0}):re);b==null||b(H),pe.ZP.error(`${Y.name} \u4E0A\u4F20\u5931\u8D25`)}},K=W=>{const Y=y.filter(H=>H.uid!==W);b==null||b(Y)};return console.log("value",y),x.createElement("div",{className:"audio-upload-container",style:{display:"flex",alignItems:"flex-start",gap:"16px"}},x.createElement(e.default,{action:`${f.Z.API_SERVER}/api/attachments.json`,beforeUpload:M,onChange:z,accept:".mp3,.flac,.wav",showUploadList:!1,multiple:!1,withCredentials:!0,name:"file",maxCount:A},x.createElement(I.ZP,{type:"primary",style:{height:"38px",padding:"4px 27px"}},"\u4E0A\u4F20\u97F3\u9891")),x.createElement("div",{className:"audio-file-list"},y==null?void 0:y.map((W,Y)=>{var H,re;const G=W.status==="uploading";return x.createElement("div",{key:W.uid,className:"audio-file-item",style:{marginBottom:8}},x.createElement("div",{className:"audio-file-info",style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},x.createElement("div",{style:{display:"flex",alignItems:"center",flex:1}},x.createElement("img",{src:r,style:{width:16,height:14,marginRight:4}}),x.createElement("div",{style:{flex:1}},x.createElement("div",{style:{display:"flex",alignItems:"center",marginBottom:G?4:0}},x.createElement("span",{className:"file-name",style:{marginRight:8}},((H=W==null?void 0:W.response)==null?void 0:H.filename)||(W==null?void 0:W.name)),x.createElement("span",{className:"file-size"},k(((re=W==null?void 0:W.response)==null?void 0:re.size)||W.size))),G&&W.percent!==void 0&&x.createElement("div",{style:{width:"100%"}},x.createElement("div",{style:{height:2,backgroundColor:"#f0f0f0",borderRadius:1,overflow:"hidden"}},x.createElement("div",{style:{height:"100%",backgroundColor:"#1890ff",width:`${W.percent}%`,transition:"width 0.3s ease"}}))))),x.createElement("div",{style:{marginLeft:8}},x.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#CCCCCC",fontSize:16,cursor:"pointer"},onClick:()=>K(W.uid)}))))})))}},17614:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return f}});var x=w(59301),pe=w(43418),e=w(90115);const I=({activeIndex:a,isEdit:t=!0,dispatch:s,practiceSetting:u,shixunsDetail:o})=>{var c;const n=(0,e.useParams)(),{id:r,challengesId:i}=n,l=(c=o==null?void 0:o.detail)==null?void 0:c.is_client_unity_3d,d=(0,x.useMemo)(()=>{var v;if(o!=null&&o.detail)return[{name:l?((v=o==null?void 0:o.detail)==null?void 0:v.vrs_question_type)==1?"\u4EFB\u52A1\u8BBE\u7F6E":"\u9898\u76EE\u8BBE\u7F6E":"\u672C\u5173\u4EFB\u52A1",url:`/shixuns/${r}/edit/${i}/editcheckpoint`},{name:l?"\u4EFF\u771F\u73AF\u5883\u8BBE\u7F6E":"\u8BC4\u6D4B\u8BBE\u7F6E",url:`/shixuns/${r}/edit/${i}/tab=2`},!l&&{name:"\u53C2\u8003\u7B54\u6848",url:`/shixuns/${r}/edit/${i}/tab=3`},!l&&{name:"\u5173\u5361\u6392\u884C\u699C",url:`/shixuns/${r}/edit/${i}/tab=4`}].filter(Boolean)},[r,i,o]),E=v=>{var m;const p=()=>{e.history.push(v),s({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(m=u==null?void 0:u.sideBar)!=null&&m.confirmLeave?pe.default.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{p()}}):p()};return x.createElement("ul",{className:"challenge-nav"},t?d==null?void 0:d.map((v,m)=>a===m?x.createElement("li",{key:v.url}," ",x.createElement("a",{className:"active"},v.name)," "):x.createElement("li",{key:v.url}," ",x.createElement("a",{onClick:()=>E(v.url)},v.name)," ")):x.createElement("li",{key:d[0].url}," ",x.createElement("a",{className:"active"},d[0].name)," "))};var f=(0,e.connect)(({globalSetting:a,practiceSetting:t,shixunsDetail:s})=>({globalSetting:a,practiceSetting:t,shixunsDetail:s}))(I)},21824:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return f}});var x=w(59301),pe=w(71418),e={loading:"loading___lueiN"},f=({loading:a})=>a?x.createElement("div",{className:e.loading},x.createElement(pe.Z,null)):x.createElement(x.Fragment,null)},78442:function(Nt,Ve,w){"use strict";w.d(Ve,{Y2:function(){return z},ZP:function(){return K}});var x=w(59301),pe=w(54580),e=w(8591),I=w(43418),f=w(95237),a=w(5112),t=w(3113),s=w(24905),u=w(6848),o=w(92832),c={wrap:"wrap___MkYbQ",colorBlue:"colorBlue___onjbP",repeatedName:"repeatedName___nbqnE",text:"text___xvutp",greyText:"greyText___dihvZ",noData:"noData___LxOJA",dragger:"dragger___y7F4A",uploadText:"uploadText___Et3KS",btnS:"btnS___k1e6j",testCaseRadio:"testCaseRadio___q1wXT",head:"head___s4Eix",operation:"operation___JCAVh",headProgram:"headProgram___uWA_M",listWrapper:"listWrapper___xW3b4",list:"list___dCbd6",del:"del___abNho",info:"info___J1Wmf"},n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAADICAYAAACAj9YNAAAAAXNSR0IArs4c6QAAD59JREFUeF7tnet527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oaAEPvhf8GGJUY46yQLwUICaWjA5VFHhy8frpO6j4nloVWywMCsQsuOQ/xqd5+BRik0ZsK/1nysoKnyZPC1W4sd9C9YZzRrxeKg5ibCsbuthsaiDWTHomPioQlYNREJurMUDWW2ZFJdDWolCJba14u/liX7keDTG2le3MbDQzEGskPNNOL7scv8a+nFMGMaqxnvILiPXktqa1Cl8DJYIY20pNTlePBYhVl5gJSjxQEkMMkHWTeECsG6v1LDT2HGwZcRLEjudj/HUkPd7XiASI1VCVMe8rIDgHKwIxQOY+G4GYe4sVLTARYNMKkiuxGWL8hSRFWVA8FCBWXFIGXFVAeJB/PUYWxACZ66QEYq7tVbK4TIBlV2InGajIlCRE2TCAWFk9Ge2mhBrf9/++Hv4IcsYnuxK7Atn3EAJ/VTnDEEVdgZgiM9yFUqACO2lSDGJnmL3teWrpI+OAmA8f9a0i4xB/bTHFITafkwEyfYkjjwiIyTWjx2MFdmEc32O/ThQrZhWIzSDjK0qxHmhtB8S0OmMxroLbx5ujtZp6HA/8OSerKXK9sYFYPW37GrkiwCYhq1ViS5fYXprMWSBm0jZVQVfZPm5aiV2A7HAxlqpMVY49DAaI2fFKX6SVq6/lgjepxC5gxlmZvoRbjwiIWXFKU5wbwuu07M0hNh/6U5VpSrt7sQAxCy5pirEBwDY7E7unMzDTlIE3sQAx1fYoCq4RvJpWYtfyAzNFCfkRChBTaYuioBrDSxXETsEAM0UJGgIQU2WHkmCG8X2KpMR3HkutqMmZWEzwAC1GpaptgFhVeU0NvgvD+FsTuJbqqYXYMkiA1iThgVgT2dVMqhpc5iB2A7T5kcR852z68NaMOnkPxOroqnXUGVrhb9iV/m5j7QWbqMSeiTBXatPnU/gSxuHzSntA90zE238HYnLNWvTYXU26lusfbSZQnT4GgbUm8P/6C+VmwqlgeQAAAABJRU5ErkJggg==",r=w(47257),i=w.n(r),l=w(64866),d=w(1012),E=w(22566),v=w(48909),m=w(59301),p=Object.defineProperty,S=Object.defineProperties,C=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,b=(W,Y,H)=>Y in W?p(W,Y,{enumerable:!0,configurable:!0,writable:!0,value:H}):W[Y]=H,h=(W,Y)=>{for(var H in Y||(Y={}))O.call(Y,H)&&b(W,H,Y[H]);if(g)for(var H of g(Y))y.call(Y,H)&&b(W,H,Y[H]);return W},A=(W,Y)=>S(W,C(Y)),B=(W,Y,H)=>new Promise((re,G)=>{var ee=q=>{try{Q(H.next(q))}catch($){G($)}},X=q=>{try{Q(H.throw(q))}catch($){G($)}},Q=q=>q.done?re(q.value):Promise.resolve(q.value).then(ee,X);Q((H=H.apply(W,Y)).next())});const{Dragger:k}=pe.default,R=W=>{const Y=$=>$&&$.substring(0,$.lastIndexOf("."));for(var H=[...W],re=0,G=[],ee=0;ee{if($.forEach(le=>{let se=le.name.split(/\.(?=[^\.]+$)/);le.name=`${se[0]}.${se[1].toLowerCase()}`}),$[0].name.includes(".in"))return $.length===2?$:[$[0],{}];if($[0].name.includes(".out"))return $.length===2?$.reverse():[{},$[0]]})},M=({onClose:W,onOK:Y,visible:H,wrapClassName:re,rootIdentifier:G,multiple:ee=!1,defaultMultipleValue:X=!0})=>{const[Q,q]=(0,x.useState)([]),[$,le]=(0,x.useState)({}),[se,Ee]=(0,x.useState)(!1),[Se,ie]=(0,x.useState)(!0),[L,J]=(0,x.useState)(null),N=(0,x.useRef)([]),Z=(0,x.useRef)(0),ne=()=>{W()};(0,x.useEffect)(()=>{U()},[]),(0,x.useEffect)(()=>{H&&(N.current=[],Z.current=0,q([]),ie(X))},[H]);const U=()=>B(void 0,null,function*(){try{J(!0)}catch(V){}}),D=V=>V&&V.substring(0,V.lastIndexOf(".")),T=V=>{var de,we;const xe=D((de=V[0])==null?void 0:de.name)||D((we=V[1])==null?void 0:we.name),Ae=Q.filter(ve=>D(ve.name)!==xe);N.current=[...Ae],q([...Ae])},P=V=>{if(!Se){const oe=new FormData;oe.append("file",V.file),(0,l.ZP)("/api/attachments/get_file_content.json",{method:"post",body:oe},!0).then(ue=>{if(ue.status===0){Z.current=Z.current+1;const ye=N.current.map(Ce=>{var je;if(Ce.name===V.name){const ke=h({},Ce);return(je=V==null?void 0:V.name)!=null&&je.includes(".in")?ke.input=ue==null?void 0:ue.content:ke.output=ue==null?void 0:ue.content,ke}return Ce});if(N.current=[...ye],q([...ye]),Z.current>0&&Z.current===Q.length){Ee(!1);let Ce=R(ye);Ce=Ce.filter(je=>{var ke,Xe;return!!((ke=je[0])!=null&&ke.name&&((Xe=je[1])!=null&&Xe.name))}),Ce=Ce.map(je=>A(h(h({},je[0]),je[1]),{is_file:!1})),Y(Ce),W()}}else Ee(!1),W()});return}if(L){const oe=new FormData;oe.append("file",V.file),G===null?oe.append("identifier","testsets"):oe.append("identifier",G),(0,l.ZP)("/api/attachments.json",{method:"post",body:oe},!0).then(ue=>{if(ue.filename){Z.current=Z.current+1;const ye=N.current.map(Ce=>{var je;if(Ce.name===(ue==null?void 0:ue.filename)){const ke=A(h({},Ce),{is_oss:!L});return(je=ue==null?void 0:ue.filename)!=null&&je.includes(".in")?(ke.in_object_key=ue==null?void 0:ue.object,ke.in_object_size=ue==null?void 0:ue.size,ke.input=ue==null?void 0:ue.filename,ke.in_file=V):(ke.out_object_key=ue==null?void 0:ue.object,ke.out_object_size=ue==null?void 0:ue.size,ke.output=ue==null?void 0:ue.filename,ke.out_file=V),ke}return Ce});if(N.current=[...ye],q([...ye]),Z.current>0&&Z.current===Q.length){Ee(!1);let Ce=R(ye);Ce=Ce.filter(je=>{var ke,Xe;return!!((ke=je[0])!=null&&ke.name&&((Xe=je[1])!=null&&Xe.name))}),Ce=Ce.map(je=>A(h(h({},je[0]),je[1]),{is_file:!0})),Y(Ce),W()}}else Ee(!1),W()});return}const de=new(i())({endpoint:$.end_point,region:$.region,accessKeyId:$.access_key_id,accessKeySecret:$.access_key_secret,bucket:$.bucket,stsToken:$.security_token}),we=V.name,xe={container_type:"TestSet",file_name:we},Ae=(0,d.Z)();let ve=`testsets/${G}/${Ae}${we.indexOf(".")>-1?"."+we.split(".").pop():""}`;G===null&&(ve=`testsets/${Ae}${we.indexOf(".")>-1?"."+we.split(".").pop():""}`),de.multipartUpload(ve,new Blob([V.file],{type:V.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:we+""},url:$==null?void 0:$.callback_url,host:$==null?void 0:$.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,l.rz)(xe)}}).then(function(oe){if(oe.data.status===0){Z.current=Z.current+1;const _=N.current.map(ue=>{var ye,Ce,je,ke,Xe,rt,Fe,it,ut,ht,Ft,Ht,At,Wt,Lt,wt,Qt;if(ue.name===((Ce=(ye=oe.data)==null?void 0:ye.data)==null?void 0:Ce.file_name)){const Jt=A(h({},ue),{is_oss:!L});return(Xe=(ke=(je=oe.data)==null?void 0:je.data)==null?void 0:ke.file_name)!=null&&Xe.includes(".in")?(Jt.in_object_key=(Fe=(rt=oe.data)==null?void 0:rt.data)==null?void 0:Fe.object,Jt.in_object_size=(ut=(it=oe.data)==null?void 0:it.data)==null?void 0:ut.size,Jt.input=(Ft=(ht=oe.data)==null?void 0:ht.data)==null?void 0:Ft.file_name,Jt.in_file=V):(Jt.out_object_key=(At=(Ht=oe.data)==null?void 0:Ht.data)==null?void 0:At.object,Jt.out_object_size=(Lt=(Wt=oe.data)==null?void 0:Wt.data)==null?void 0:Lt.size,Jt.output=(Qt=(wt=oe.data)==null?void 0:wt.data)==null?void 0:Qt.file_name,Jt.out_file=V),Jt}return ue});if(N.current=[..._],q([..._]),Z.current>0&&Z.current===Q.length){Ee(!1);let ue=R(_);ue=ue.filter(ye=>{var Ce,je;return!!((Ce=ye[0])!=null&&Ce.name&&((je=ye[1])!=null&&je.name))}),ue=ue.map(ye=>A(h(h({},ye[0]),ye[1]),{is_file:!0})),Y(ue),W()}}})},j=V=>new Promise((de,we)=>{let xe=0,Ae=[];for(let ve=0;ve{xe++,xe===V.length&&(Ae.length?(e.ZP.warning(`${Ae.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),we()):de(V))}).catch(oe=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",oe),xe++,Ae.push(V[ve].name),xe===V.length&&(Ae.length?(e.ZP.warning(`${Ae.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),we()):de(V))})}),F=()=>B(void 0,null,function*(){if(Q.length===0){e.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield j(Q),Ee(!0),R(Q).some(de=>{var we,xe;return!((we=de[0])!=null&&we.name&&((xe=de[1])!=null&&xe.name))})){I.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>B(void 0,null,function*(){Q.map(de=>B(void 0,null,function*(){P(de)}))}),onCancel:()=>{Ee(!1)}});return}Q.map(de=>B(void 0,null,function*(){P(de)}))}),te={name:"file",fileList:Q,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:V=>{if(Q!=null&&Q.some(we=>we.name===V.name))return e.ZP.info(`${V.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(V.size/1024/1024>100)return e.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(V.name))return e.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const de={name:V.name,uid:V.uid,file:V,percent:0};return Q.push(de),N.current=[...Q],q([...Q]),!1}},ae=R(Q);return console.log(Q,ae,"fileList"),m.createElement(I.default,{open:H,wrapClassName:re,onOk:F,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:se},onCancel:ne,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},m.createElement("div",{className:c.wrap},Q.length?m.createElement("div",null,m.createElement(f.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},m.createElement("div",{style:{visibility:ee?"visible":"hidden"}},m.createElement("span",{className:c.greyText},"\u7528\u4F8B\u7C7B\u578B"),m.createElement(a.ZP.Group,{className:`ml20 ${c.testCaseRadio}`,optionType:"button",value:Se,onChange:V=>ie(V.target.value)},m.createElement(a.ZP,{value:!1},"\u6587\u672C"),m.createElement(a.ZP,{value:!0},"\u6587\u4EF6"))),m.createElement(pe.default,h({},te),m.createElement(t.ZP,{type:"primary",className:c.btnS},m.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),m.createElement(z,{data:ae,onRemove:T})):m.createElement("div",{className:`${c.noData} mb30`},m.createElement(pe.default.Dragger,A(h({},te),{className:c.dragger}),m.createElement("img",{src:n,alt:"",className:"mb20"}),m.createElement("div",null,m.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),m.createElement("span",{className:c.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),m.createElement("div",{className:c.text},m.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),m.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",m.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",m.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",m.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",m.createElement("br",null))))},z=({data:W=[],onRemove:Y,width:H="auto",showScore:re=!1,disabled:G=!1,inputChange:ee,onEvaluatingChange:X,onSelectAll:Q,checkAll1:q,checkAll2:$,checkAll3:le,checkAll4:se,checkAll5:Ee,showEvaluatingSetting:Se=!1,className:ie="",isProgramHomework:L=!1})=>{const J={value:"",filename:"",dataUrl:""},[N,Z]=(0,x.useState)(h({},J)),ne=T=>{let P=document.createElement("a");document.body.appendChild(P);let j=URL.createObjectURL(T.file);P.href=j,P.download=T.name,P.click(),URL.revokeObjectURL(j),document.body.removeChild(P)},U=(T,P)=>{(0,E.LR)(T,P)},D=(T,P)=>{I.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:m.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{Y(T,P)},onCancel:()=>{}})};return W.length?m.createElement("div",{className:ie,style:{width:H}},m.createElement("div",{className:`${L?c.headProgram:c.head}`},Se&&m.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},m.createElement(s.default,{checked:q,onChange:T=>{Q(T.target.checked,"hidden")}}),m.createElement(u.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},m.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),m.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),m.createElement("div",{style:{width:L?"25%":"15%"}},"\u7528\u4F8B"),m.createElement("div",{style:{width:re?L?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),m.createElement("div",{style:{width:re?L?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),re&&m.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),Se&&m.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},m.createElement(s.default,{checked:se,onChange:T=>{Q(T.target.checked,"input_visible")}}),m.createElement(u.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},m.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),m.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Se&&m.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},m.createElement(s.default,{checked:$,onChange:T=>{Q(T.target.checked,"is_invisible")}}),m.createElement(u.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},m.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),m.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Se&&m.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},m.createElement(s.default,{checked:Ee,onChange:T=>{Q(T.target.checked,"actual_output_visible")}}),m.createElement(u.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},m.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),m.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Se&&m.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},m.createElement(s.default,{checked:le,onChange:T=>{Q(T.target.checked,"last_match_rule")}}),m.createElement(u.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},m.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),m.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),m.createElement("div",{className:c.operation,style:L?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),m.createElement("div",{className:c.listWrapper,style:{boxShadow:L?"0px 2px 4px 0px #EAEEF4":"unset"}},W.map((T,P)=>{var j,F,te,ae;return m.createElement("div",{key:P,className:c.list,style:L?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},Se&&m.createElement("div",{style:{width:"15%"}},m.createElement(s.default,{checked:!!T.hidden,onChange:V=>{X(V.target.checked,P,"hidden")}})),m.createElement("div",{style:{width:L?"25%":"15%",paddingLeft:L?"5px":"0px",paddingRight:L?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",P+1),m.createElement("div",{className:c.info,style:{width:re?L?"20%":"15%":"25%"}},m.createElement("span",{title:T.input||((j=T[0])==null?void 0:j.name),onClick:()=>B(void 0,null,function*(){let V;T.input?T.input_file_url?V=T.input_file_url:V=T.in_file:V=T[0];let de;typeof V=="string"?(de=yield fetch(V,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Z({value:yield de.text(),filename:"",dataUrl:V})):(de=yield(0,E.db)(V.file),Z({value:de.text,filename:V.name,dataUrl:de.link}))})},T.input||((F=T[0])==null?void 0:F.name))),m.createElement("div",{className:c.info,style:{width:re?L?"20%":"15%":"25%"}},m.createElement("span",{title:T.output||((te=T[1])==null?void 0:te.name),onClick:()=>B(void 0,null,function*(){let V;T.input?T.output_file_url?V=T.output_file_url:V=T.out_file:V=T[1];let de;typeof V=="string"?(de=yield fetch(V,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Z({value:yield de.text(),filename:"",dataUrl:V})):(de=yield(0,E.db)(V.file),Z({value:de.text,filename:V.name,dataUrl:de.link}))})},T.output||((ae=T[1])==null?void 0:ae.name))),re&&m.createElement("div",{style:{width:"20%"}},m.createElement(o.default,{size:"large",addonAfter:L?"%":null,disabled:G,style:{width:"80%"},onChange:V=>ee(V,P),value:T.score}),!L&&m.createElement("span",null,"\xA0%")),Se&&m.createElement("div",{style:{width:"20%"}},m.createElement(s.default,{checked:T.input_visible||!1,onChange:V=>{X(V.target.checked,P,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Se&&m.createElement("div",{style:{width:"20%"}},m.createElement(s.default,{checked:T.is_invisible||!1,onChange:V=>{X(V.target.checked,P,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Se&&m.createElement("div",{style:{width:"20%"}},m.createElement(s.default,{checked:T.actual_output_visible||!1,onChange:V=>{X(V.target.checked,P,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Se&&m.createElement("div",{style:{width:"20%"}},m.createElement(s.default,{checked:T.last_match_rule||!1,onChange:V=>{X(V.target.checked,P,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),m.createElement("div",{onClick:()=>D(T,P),style:L?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},m.createElement("span",{className:c.del},"\u5220\u9664")))})),m.createElement(v.Z,{close:!0,data:N.dataUrl,filename:N.filename,type:N.dataUrl.length?"txt":"",onClose:()=>Z(h({},J)),monacoEditor:{value:N.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):m.createElement(m.Fragment,null)};var K=M},71773:function(Nt,Ve,w){"use strict";w.d(Ve,{S:function(){return a},m:function(){return t}});var x=w(22566),pe=w(8591),e=w(43418),I=w(59301),f=(s,u,o)=>new Promise((c,n)=>{var r=d=>{try{l(o.next(d))}catch(E){n(E)}},i=d=>{try{l(o.throw(d))}catch(E){n(E)}},l=d=>d.done?c(d.value):Promise.resolve(d.value).then(r,i);l((o=o.apply(s,u)).next())});const a=s=>{let u=document.createElement("textarea");return u.value=s,u.value},t=(s,u,o,c,n)=>f(void 0,null,function*(){var r,i;const l=yield s({type:"shixunsDetail/saveCopyForExercise",payload:{id:o,save_type:c}});c===1?((l==null?void 0:l.status)==0&&pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),(r=l==null?void 0:l.data)!=null&&r.exists_same_shixun_name?s({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u540D\u4FEE\u6539",name:(i=l==null?void 0:l.data)==null?void 0:i.shixun_name}}):s({type:"classroomList/setActionTabs",payload:{}})):(s({type:"classroomList/setActionTabs",payload:{}}),(l==null?void 0:l.status)===0&&e.default.info({title:"\u63D0\u793A",width:460,icon:null,centered:!0,content:I.createElement("div",null,I.createElement("div",null,"\u5B9E\u8BAD\u540C\u6B65\u4FEE\u6539\u5B8C\u6210\uFF0C\u8BF7\u9A8C\u8BC1\u5B9E\u8BAD\u662F\u5426\u53EF\u4EE5\u6B63\u5E38\u4F7F\u7528\u3002")),okText:"\u524D\u5F80\u539F\u5B9E\u8BAD",onOk:()=>{var d,E;(0,x.xg)(`/shixuns/${(E=(d=u==null?void 0:u.detail)==null?void 0:d.fork_from)==null?void 0:E.fork_identifier}/challenges`)}}))})},47257:function(Nt){(function(Ve){(function(w){if(1)Nt.exports=w();else var x})(function(){var w,x,pe;return function(){function e(I,f,a){function t(o,c){if(!f[o]){if(!I[o]){var n=void 0;if(!c&&n)return require(o,!0);if(s)return s(o,!0);var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r}var i=f[o]={exports:{}};I[o][0].call(i.exports,function(l){var d=I[o][1][l];return t(d||l)},i,i.exports,e,I,f,a)}return f[o].exports}for(var s=void 0,u=0;u +(self.webpackChunk=self.webpackChunk||[]).push([[9205],{89489:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},59477:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},40001:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},26227:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},49198:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},84105:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},41464:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},18785:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},73331:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},15277:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},52671:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},8657:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},56082:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},33853:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},15075:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},62772:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},43531:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},61485:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},38819:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},47472:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},87395:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return s}});var x=w(54476),pe=w(59301),e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},I=e,f=w(7657),a=function(o,c){return pe.createElement(f.Z,(0,x.Z)({},o,{ref:c,icon:I}))},t=pe.forwardRef(a),s=t},4121:function(Nt,Ve,w){"use strict";w.d(Ve,{t:function(){return n}});var x=w(59301),pe=w(3113),e={buttonFixed:"buttonFixed___vyq30",button:"button___hxmYv",buttonWrap:"buttonWrap___uK8dl"},I=w(92310),f=w.n(I),a=Object.defineProperty,t=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,o=(r,i,l)=>i in r?a(r,i,{enumerable:!0,configurable:!0,writable:!0,value:l}):r[i]=l,c=(r,i)=>{for(var l in i||(i={}))s.call(i,l)&&o(r,l,i[l]);if(t)for(var l of t(i))u.call(i,l)&&o(r,l,i[l]);return r};const n=({cancelText:r="\u53D6\u6D88",okText:i="\u786E\u5B9A",loading:l=!1,hasOkBtn:d=!0,hasCancelBtn:E=!0,okButtonProps:v={},onCancel:m=()=>{},onOk:p=()=>{},className:S=""})=>x.createElement("div",{className:f()(e.buttonFixed,S)},x.createElement("div",{className:e.buttonWrap},E&&x.createElement(pe.ZP,{size:"middle",className:`${e.button} mr20`,onClick:m},r),d&&x.createElement(pe.ZP,c({size:"middle",type:"primary",className:`${e.button} mr20`,loading:l,onClick:p},v),i)))},23734:function(Nt,Ve,w){"use strict";w.d(Ve,{i:function(){return g},Z:function(){return y}});var x={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT"},pe=w(71418),e=w(6848),I=w(93948),f=w(92310),a=w.n(f),t=w(22566),s=w(21692),u=w(16624),o=w(79005),c=w(20345),n=w(77882),r=w(31081),i=w(75309),l=w(71979),d=w(47558),E=w(42922),v=w(66832),m=w(96593),p=w(19664),S=w(91833),C=w(59301);const g=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:o,swimg:c},{name:"101\u8BA1\u5212",ptimg:n,swimg:r},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:i,swimg:l},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:d,swimg:E},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:v,swimg:m},{name:"\u519B\u961F\u4E00\u6D41",ptimg:p,swimg:S}];var y=({className:b,dataSource:h=[],col:A=4,right:B,bottom:k=23,precision:R=0,wrapWidth:M=1200,trackEventItems:z,loading:K,onRemove:W=()=>{},isCurrent:Y=!0,showAlias:H=!1,showProgress:re=!1})=>{const G=Math.floor((M-(A-1)*B)/A),ee=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}].map(X=>(window.ENV==="build"&&(X.ptimg=`/react/build${X.ptimg}`,X.swimg=`/react/build${X.swimg}`),X));return C.createElement(pe.Z,{spinning:K},C.createElement("div",{className:a()(x.list,b)},!!(h!=null&&h.length)&&(h==null?void 0:h.map((X,Q)=>{var q,$,le,se,Ee,Se;const{name:ie,id:L,identifier:J,featured:N,school_name:Z,image_url:ne,excellent:U,is_plan:D}=X;return C.createElement("div",{key:L,className:Y&&re?x.wrapisCurrent:x.wrap,style:{width:G,marginRight:(1+Q)%A===0?0:B+R,marginBottom:k}},C.createElement("a",{className:x.li,onClick:T=>{T.preventDefault(),T.stopPropagation(),z&&(0,t.L9)([z]),(0,t.xg)(`/paths/${J}`)}},C.createElement("div",{className:x.img},C.createElement("img",{className:x.cover,src:`${ne}`}),Y&&(0,u.bg)()&&(X==null?void 0:X.studying)&&C.createElement("div",{className:`${x.movebq} user-path-items`,onClick:T=>{T.stopPropagation(),W(X)}},C.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),C.createElement("span",{className:"c-red"},"\u79FB\u9664")),(q=X==null?void 0:X.subject_tags)==null?void 0:q.map((T,P)=>{var j,F;if(P===0){const ae=(j=ee.find(V=>V.name==T))==null?void 0:j.swimg;return C.createElement("img",{className:x.sign,src:ae,style:{left:"-4px"}})}const te=(F=ee.find(ae=>ae.name==T))==null?void 0:F.ptimg;return C.createElement("img",{className:x.sign,src:te,style:{left:`${48+52*(P-1)+2*P}px`}})}),C.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(X==null?void 0:X.excellent)&&C.createElement("div",{className:x.bq},"\u5F00\u653E\u8BFE\u7A0B"))),C.createElement("div",{className:x.name},C.createElement(e.Z,{title:H&&(X!=null&&X.excellent_alias_name)?C.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ie}`,C.createElement("br",null),C.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${X==null?void 0:X.excellent_alias_name}`)):ie},C.createElement("span",{className:x.e},H&&(X==null?void 0:X.excellent_alias_name)||ie))),Y&&re&&(($=X==null?void 0:X.progress)==null?void 0:$.all_score)!=0&&C.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},C.createElement(I.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((le=X==null?void 0:X.progress)==null?void 0:le.my_score)/((se=X==null?void 0:X.progress)==null?void 0:se.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ee=X==null?void 0:X.progress)==null?void 0:Ee.my_score,"/",(Se=X==null?void 0:X.progress)==null?void 0:Se.all_score),(!Y||!re)&&C.createElement("div",{className:x.tags},C.createElement("div",null,C.createElement(e.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},C.createElement("span",null,C.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),C.createElement("span",null,X.stages_count))),C.createElement(e.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},C.createElement("span",null,C.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),C.createElement("span",null,X.members_count)))))))})),!h.length&&C.createElement(s.Z,null)))}},2751:function(Nt,Ve,w){"use strict";w.d(Ve,{jL:function(){return f},w9:function(){return Ae},dN:function(){return ue},QD:function(){return Qe},cQ:function(){return se.Z},Oz:function(){return ae},op:function(){return fe},O5:function(){return $e},_b:function(){return dt},t7:function(){return h},Gi:function(){return ut},YG:function(){return ke},kT:function(){return Fe},qp:function(){return E},K3:function(){return p},vr:function(){return ft},qE:function(){return he},Je:function(){return k},wb:function(){return Q},lB:function(){return le},cq:function(){return Lt},tp:function(){return g},Si:function(){return jt},k8:function(){return un},Du:function(){return cn}});var x=w(59301),pe={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJ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eDd/KR7+NePLt35fPnO/8fj592ljz5sPn49rwBUC4mF0bqmp2HZMguKhOC4kpPpF8fNgLEjkPzyz/qzjo3zcwKSyqOfy2avePKuNHgwUjEB3j4FbB1R973/3zfsh9ten/+nerk35RM36MPfswdu2qMDoqOY9BO59jhb6zJdbVneyhSMixPpnphR7BSBr3tAf9i2cH45j9k0Dy58Zreitwr0dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",f=({dataSource:_e=[],img:qe,imgWidth:st=346,title:yt,sunTitle:Ct,bannerExtraContent:Xt})=>x.createElement("div",{className:pe.banner},x.createElement("div",{className:pe.content},x.createElement("aside",null,x.createElement("p",null,x.createElement("b",null,yt),x.createElement("span",null,Ct)),_e.length>0&&x.createElement("div",{className:pe.btns},_e.map((Bt,It)=>x.createElement("div",{key:It,onClick:Bt.click},Bt.name,Bt.sign?x.createElement("img",{src:e,width:39}):null))),Xt),qe&&x.createElement("img",{style:{marginTop:33,marginRight:38},src:qe,width:st}))),a={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},t=w(92310),s=w.n(t),u=w(89392),o=Object.defineProperty,c=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,i=(_e,qe,st)=>qe in _e?o(_e,qe,{enumerable:!0,configurable:!0,writable:!0,value:st}):_e[qe]=st,l=(_e,qe)=>{for(var st in qe||(qe={}))n.call(qe,st)&&i(_e,st,qe[st]);if(c)for(var st of c(qe))r.call(qe,st)&&i(_e,st,qe[st]);return _e},E=({dataSource:_e=[],value:qe,onChange:st,onTitleChange:yt,className:Ct,title:Xt,titleWidth:Bt=41,style:It={},fontColor:bt="#6A7283",showCount:Kt,classNameActive:Gt,styleItem:Yt={}})=>{const[In,xn]=(0,x.useState)(0),[Bn,Dn]=(0,x.useState)(!1),Jn=(0,x.useRef)(null),rr=(0,x.useRef)(null);return(0,x.useEffect)(()=>{var or;_e.length!==0&&(((or=Jn==null?void 0:Jn.current)==null?void 0:or.clientHeight)>97?xn(1):xn(0)),_e.length===0&&xn(0),Dn(!1)},[_e]),x.createElement("div",{className:s()(a.row,Ct),style:It},x.createElement("div",{onClick:(0,u.throttle)(()=>yt==null?void 0:yt(),2e3),style:{width:Bt,marginTop:Bn?12:4},className:`${a.title} ${yt?"current":""}`},Xt),x.createElement("div",{className:Bn?`${a.tagsWrap} ${a.tagsBorderWrap}`:a.tagsWrap},x.createElement("div",{className:a.bar,ref:rr,style:In>0?{height:In===1?97:"auto",overflow:In===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},x.createElement("div",{className:a.tag,ref:Jn},_e==null?void 0:_e.map(or=>x.createElement("span",{onClick:()=>st(or.id),key:or.id,style:l(l({color:bt},Yt),(or==null?void 0:or.style)||{}),className:qe===or.id?s()(Gt||a.active,or.classNameActive):""},x.createElement("span",{title:or.name,className:a.name},or.name),!!Kt&&x.createElement("span",{className:a.num},or.count))))),!!In&&x.createElement(x.Fragment,null,In===1?x.createElement("div",{onClick:()=>{var or;xn(2),((or=Jn==null?void 0:Jn.current)==null?void 0:or.clientHeight)>245?Dn(!0):Dn(!1)},className:a.action},"\u5C55\u5F00",x.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):x.createElement("div",{onClick:()=>{rr.current.scrollTop=0,xn(1),Dn(!1)},className:a.action},"\u6536\u8D77",x.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},v={flex_box_center:"flex_box_center___HDG9F",flex_space_between:"flex_space_between___KhP6Z",flex_box_vertical_center:"flex_box_vertical_center___ZlFcA",flex_box_center_end:"flex_box_center_end___o7d_z",flex_box_column:"flex_box_column___ULJgZ",row:"row___Skft7",title:"title___KP2uZ",fenge:"fenge___yM8ys",tagsWrap:"tagsWrap___XcmUd",action:"action___y7wAl",bar:"bar___gdtOz",tag:"tag___PL8Db",name:"name___gsqnj",num:"num___sRnLB",active:"active___yNnAU",tagsBorderWrap:"tagsBorderWrap___BKCHD"},p=({dataSource:_e=[],value:qe,onChange:st,onTitleChange:yt,className:Ct,title:Xt,titleWidth:Bt=41,style:It={},fontColor:bt="#6A7283",showCount:Kt,expand:Gt=!0})=>{const[Yt,In]=(0,x.useState)(0),[xn,Bn]=(0,x.useState)(!1),Dn=(0,x.useRef)(null),Jn=(0,x.useRef)(null),[rr,or]=(0,x.useState)(Gt);return x.createElement("div",{className:s()(v.row,Ct),style:It},x.createElement("div",{className:"flex item-center justify-between"},x.createElement("div",{onClick:(0,u.throttle)(()=>yt==null?void 0:yt(),2e3),style:{width:Bt,marginTop:xn?12:4},className:`${v.title} ${yt?"current":""}`},Xt),x.createElement("i",{className:`iconfont ${rr?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:rr?8:10},onClick:()=>or(!rr)})),rr&&x.createElement("div",{className:xn?`${v.tagsWrap} ${v.tagsBorderWrap}`:v.tagsWrap},x.createElement("div",{className:v.fenge}),x.createElement("div",{className:v.bar,ref:Jn},x.createElement("div",{className:v.tag,ref:Dn},_e==null?void 0:_e.map(tr=>x.createElement("span",{onClick:()=>st(tr.id),key:tr.id,style:{color:bt},className:qe===tr.id?v.active:""},x.createElement("span",{title:tr.name,className:v.name},tr.name),!!Kt&&x.createElement("span",{className:v.num},tr.count)))))))},S={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},g=({dataSource:_e=[],value:qe,onChange:st,className:yt,style:Ct={}})=>x.createElement("div",{style:Ct,className:s()(S.tabs,yt)},_e.map(Xt=>x.createElement("span",{onClick:()=>st(Xt.id),className:qe===Xt.id?S.active:"",key:Xt.id},Xt.name))),O={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},y=w(92832),h=({dataSource:_e=[],value:qe="",onChange:st,onInputChange:yt=()=>{},className:Ct,style:Xt={},placeholder:Bt,allowClear:It=!1})=>{var bt;const[Kt,Gt]=(0,x.useState)(""),[Yt,In]=(0,x.useState)("");(0,x.useEffect)(()=>{var Dn;let Jn=qe;(Dn=JSON.stringify(qe))!=null&&Dn.includes("{")&&(Gt(qe.id),Jn=qe.value||"");try{In(decodeURIComponent(Jn||""))}catch(rr){In(decodeURIComponent(Jn||""))}},[qe]);const xn=()=>{st(encodeURIComponent(Yt),Kt||null)},Bn=Dn=>{Dn!==Kt&&(Gt(Dn),st(encodeURIComponent(Yt),Dn))};return x.createElement("div",{className:s()(O.input,Ct),style:Xt},!!_e.length&&x.createElement("div",{className:O.dropdown},x.createElement("div",{className:O.text},(bt=_e.find(Dn=>Dn.id===Kt))==null?void 0:bt.name,x.createElement("i",{className:"iconfont icon-zhankai4"}),x.createElement("b",{className:O.b1}),x.createElement("b",{className:O.b2})),x.createElement("div",{className:O.menu},_e.map((Dn,Jn)=>x.createElement("div",{key:Jn,onClick:()=>Bn(Dn.id)},Dn.name)))),x.createElement(y.default,{onPressEnter:xn,value:Yt,onChange:Dn=>{In(Dn.target.value),yt(encodeURIComponent(Dn.target.value),Kt||null)},bordered:!1,placeholder:Bt}),x.createElement("i",{onClick:xn,className:"iconfont icon-sousuo9 font14 pl10 current"}))},A={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},k=({value:_e,onChange:qe,className:st,total:yt,pageSize:Ct,style:Xt={}})=>{const Bt=_e<2,It=_e>=Math.ceil(yt/Ct);return yt<=Ct?x.createElement(x.Fragment,null):x.createElement("div",{className:s()(A.quickPager,st),style:Xt},x.createElement("div",{onClick:()=>{Bt||qe(_e-1,"prev")},className:Bt?A.disabled:""},"\u4E0A\u4E00\u9875"),x.createElement("div",{onClick:()=>{It||qe(_e+1,"next")},className:It?A.disabled:""},"\u4E0B\u4E00\u9875"))},R={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},M=w(71418),z=w(6848),K=w(13570),W=w(11662),Y=w(22566),H=w(96908),re=w(57177),G=w(81378),ee=w(21692),Q=({className:_e,dataSource:qe=[],col:st=4,right:yt,bottom:Ct=23,precision:Xt=0,wrapWidth:Bt=1200,trackEventItems:It,loading:bt})=>{const Kt=Math.floor((Bt-(st-1)*yt)/st);return x.createElement(M.Z,{spinning:bt},x.createElement("div",{className:s()(R.list,_e)},!!qe.length&&qe.map((Gt,Yt)=>{const{name:In,id:xn,identifier:Bn,power:Dn,cover_image_id:Jn,pic:rr}=Gt;return x.createElement("div",{className:R.wrap,key:xn,style:{width:Kt,marginRight:(1+Yt)%st===0?0:yt+Xt,marginBottom:Ct}},x.createElement("a",{target:"_blank",href:`/shixuns/${Bn}/challenges`,className:R.li,onClick:or=>{or.preventDefault(),It&&(0,Y.L9)([It]),Dn&&(0,Y.xg)(`/shixuns/${Bn}/challenges`)}},x.createElement("div",{className:R.img},x.createElement("img",{className:R.cover,src:`${rr}`}),Gt.is_jupyter&&x.createElement("img",{className:R.sign,src:H}),Gt.is_jupyter_lab&&x.createElement("img",{className:R.sign,src:re}),Gt.is_unity_3d&&x.createElement("img",{className:R.sign,src:G})),x.createElement("div",{className:R.name},x.createElement(z.Z,{title:In||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},x.createElement("span",{className:R.e},In||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),x.createElement("div",{className:R.tags},x.createElement(z.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},x.createElement("span",null,x.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),x.createElement("span",null,Gt.challenges_count))),!!Gt.myshixuns_count&&x.createElement(z.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},x.createElement("span",null,x.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),x.createElement("span",null,Gt.myshixuns_count))),x.createElement(z.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},x.createElement("span",null,x.createElement("span",null,Gt.level))),x.createElement("div",{className:R.rate},x.createElement(K.Z,{allowHalf:!0,disabled:!0,defaultValue:Gt.score_info}),x.createElement("span",null,"\xA0",Gt.score_info?`${Gt.score_info}\u5206`:"5\u5206")))),!Dn&&x.createElement("div",{className:R.lockWrap},x.createElement("img",{src:`${W.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),x.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!qe.length&&x.createElement(ee.Z,null)))},q={flex_box_center:"flex_box_center___KD0ZB",flex_space_between:"flex_space_between___rMep5",flex_box_vertical_center:"flex_box_vertical_center___jD3Po",flex_box_center_end:"flex_box_center_end___RbohB",flex_box_column:"flex_box_column___GmzUj",list:"list___dlUtq",wrap:"wrap___LYbIZ",lockWrap:"lockWrap___U7Ajb",li:"li___bsnqy",img:"img___yQ3UM",cover:"cover___KP0L8",bq:"bq___DtmL1",sign:"sign___TZ9Wq",titleBg:"titleBg___tnX0O",name:"name___OGYeq",e:"e___zxiB9",text:"text____ZmZX",value:"value___WPLok",rate:"rate___iOr7E"},le=({className:_e,dataSource:qe=[],col:st=4,right:yt,bottom:Ct=23,precision:Xt=0,wrapWidth:Bt=1200,wrapClassName:It,trackEventItems:bt,loading:Kt})=>{const Gt=Math.floor((Bt-(st-1)*yt)/st);return x.createElement(M.Z,{spinning:Kt},x.createElement("div",{className:s()(q.list,_e)},!!qe.length&&qe.map((Yt,In)=>{const{name:xn,id:Bn,identifier:Dn,power:Jn,cover_image_id:rr,pic:or}=Yt;return x.createElement("div",{className:s()(q.wrap,It),key:Bn,style:{width:Gt,marginRight:(1+In)%st===0?0:yt+Xt,marginBottom:Ct}},x.createElement("a",{target:"_blank",href:`/shixuns/${Dn}/challenges`,className:q.li,onClick:tr=>{tr.preventDefault(),bt&&(0,Y.L9)([bt]),Jn&&(0,Y.xg)(`/shixuns/${Dn}/challenges`)}},x.createElement("img",{src:w(47621),className:q.titleBg}),x.createElement("div",{className:q.name},x.createElement(z.Z,{title:xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},x.createElement("span",{className:q.e},xn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),x.createElement("div",{style:{padding:"14px",paddingBottom:0}},x.createElement("div",{className:q.img},x.createElement("img",{className:q.cover,src:rr?`${W.Z.API_SERVER}/api/attachments/${rr}`:`${W.Z.IMG_SERVER+or}`}),Yt.is_jupyter&&x.createElement("div",{className:q.bq},"Jupyter"),Yt.is_jupyter_lab&&x.createElement("div",{className:q.bq},"JupyterLab"),Yt.is_unity_3d&&x.createElement("div",{className:q.bq,style:{background:"linear-gradient(rgba(90, 167, 237, 0.8) 0%, rgba(79, 29, 189, 0.8) 100%)"}},"\u865A\u62DF\u4EFF\u771F")),x.createElement("div",{className:"mt20 flex item-center justify-between"},x.createElement("div",null,x.createElement("span",{className:q.text},"\u5B66\u4E60\u4EBA\u6570"),x.createElement("span",{className:q.value},Yt.myshixuns_count)),x.createElement("div",null,x.createElement("span",{className:q.text},"\u56F0\u96BE\u7B49\u7EA7"),x.createElement("span",{className:q.value},Yt.level))),x.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},x.createElement("div",null,x.createElement("span",{className:q.text},"\u5173\u5361\u6570"),x.createElement("span",{className:q.value},Yt.challenges_count)),x.createElement("div",{className:q.rate},x.createElement(K.Z,{allowHalf:!0,disabled:!0,defaultValue:Yt.score_info}),x.createElement("span",{className:q.value,style:{color:"#FF9C00"}},"\xA0",Yt.score_info?`${Yt.score_info}\u5206`:"5\u5206"))))),!Jn&&x.createElement("div",{className:q.lockWrap},x.createElement("img",{src:`${W.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),x.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!qe.length&&x.createElement(ee.Z,null)))},se=w(23734),Ee={flex_box_center:"flex_box_center___vu9yi",flex_space_between:"flex_space_between___LwoH7",flex_box_vertical_center:"flex_box_vertical_center___pUG0J",flex_box_center_end:"flex_box_center_end___xWI9t",flex_box_column:"flex_box_column___Mr5rB",list:"list___zE1wj",wrap:"wrap___5HG1h",lockWrap:"lockWrap___zziwX",li:"li___aNI2z",img:"img___adfIp",cover:"cover___G1cj9",bq:"bq___hpdTt",sign:"sign___kHAha",titleBg:"titleBg___S1VlI",name:"name___zsjxM",e:"e___fd1jW",text:"text___b9Tdy",value:"value___ZASRv",unit:"unit___sMNBQ",tags:"tags___KbL1d",tag1:"tag1___c9ebE",tag2:"tag2___bxczv"},Se=w(79005),ie=w(20345),L=w(77882),J=w(31081),N=w(75309),Z=w(71979),ne=w(47558),U=w(42922),D=w(66832),T=w(96593),P=w(19664),j=w(91833);const F=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Se,swimg:ie},{name:"101\u8BA1\u5212",ptimg:L,swimg:J},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:N,swimg:Z},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:ne,swimg:U},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:D,swimg:T},{name:"\u519B\u961F\u4E00\u6D41",ptimg:P,swimg:j}];var ae=({className:_e,dataSource:qe=[],col:st=4,right:yt,bottom:Ct=23,precision:Xt=0,wrapWidth:Bt=1200,trackEventItems:It,loading:bt,wrapClassName:Kt,imgClassName:Gt,isArrow:Yt=!1})=>{const In=Math.floor((Bt-(st-1)*yt)/st),[xn,Bn]=(0,x.useState)(),[Dn,Jn]=(0,x.useState)(),rr=tr=>Bn(tr),or=()=>Bn(-1);return x.createElement(M.Z,{spinning:bt},x.createElement("div",{className:s()(Ee.list,_e)},!!(qe!=null&&qe.length)&&(qe==null?void 0:qe.map((tr,ir)=>{var Rr;const{name:Lr,id:Qr,identifier:Pr,featured:_r,school_name:va,image_url:Jr,excellent:ba,is_plan:ha}=tr;return x.createElement("div",{key:Qr,className:s()(Ee.wrap,Kt),style:{width:In,marginRight:(1+ir)%st===0?0:yt+Xt,marginBottom:Ct}},x.createElement("a",{target:"_blank",href:`/paths/${Pr}`,className:Ee.li,onClick:Gn=>{Gn.preventDefault(),It&&(0,Y.L9)([It]),(0,Y.xg)(`/paths/${Pr}`)}},x.createElement("img",{src:w(39057),className:Ee.titleBg}),x.createElement("div",{className:Ee.name},x.createElement(z.Z,{title:Lr},x.createElement("span",{className:Ee.e,style:{color:Yt&&xn===ir?"#145DFF":"#000000"},onMouseEnter:()=>{rr(ir)},onMouseLeave:or},Lr))),x.createElement("div",{style:{padding:"14px",paddingBottom:0}},x.createElement("div",{className:s()(Ee.img,Gt)},x.createElement("img",{className:Ee.cover,src:`${W.Z.IMG_SERVER+Jr}`}),(Rr=tr==null?void 0:tr.subject_tags)==null?void 0:Rr.map((Gn,$n)=>{var gr,nr;if($n===0){const Cr=(gr=F.find(zr=>zr.name==Gn))==null?void 0:gr.swimg;return x.createElement("img",{className:Ee.sign,src:Cr,style:{left:"-4px"}})}const pr=(nr=F.find(Cr=>Cr.name==Gn))==null?void 0:nr.ptimg;return x.createElement("img",{className:Ee.sign,src:pr,style:{left:`${48+52*($n-1)+2*$n}px`}})}),x.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(tr==null?void 0:tr.excellent)&&x.createElement("div",{className:Ee.bq},"\u5F00\u653E\u8BFE\u7A0B"))),x.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},x.createElement("div",null,x.createElement("span",{className:Ee.text},"\u7AE0\u8282\u6570"),x.createElement("span",{className:Ee.value},tr.stages_count)),x.createElement("div",null,x.createElement("span",{className:Ee.text},"\u5B66\u4E60\u4EBA\u6570"),x.createElement("span",{className:Ee.value},tr.members_count))))))})),!qe.length&&x.createElement(ee.Z,null)))},V={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},de="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9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XDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",we=w(59301),Ae=({className:_e,dataSource:qe=[],col:st=4,right:yt,bottom:Ct=23,precision:Xt=0,wrapWidth:Bt=1200,trackEventItems:It,loading:bt})=>{const Kt=Math.floor((Bt-(st-1)*yt)/st);return we.createElement(M.Z,{spinning:bt},we.createElement("div",{className:s()(V.list,_e)},!!qe.length&&qe.map((Gt,Yt)=>{const{subject_identifier:In,id:xn,identifier:Bn,power:Dn}=Gt,Jn=Gt.is_public!=0&&Gt.is_public;return we.createElement("div",{className:V.wrap,key:xn,style:{width:Kt,marginRight:(1+Yt)%st===0?0:yt+Xt,marginBottom:Ct}},we.createElement("a",{className:V.li,onClick:rr=>{rr.preventDefault(),It&&(0,Y.L9)([It]),(0,Y.xg)(Gt.first_category_url)}},we.createElement("div",{className:V.top},we.createElement(z.Z,{title:Gt.name},we.createElement("div",{className:V.name},Gt.name)),we.createElement("img",{className:V.img,src:W.Z.IMG_SERVER+"/images/"+Gt.avatar_url}),we.createElement("div",{className:V.text,title:Gt.creator},Gt.creator),In&&we.createElement("div",{className:V.btns},we.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),we.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Jn&&we.createElement("div",{className:V.sign},"\u516C\u5F00")),we.createElement("div",{className:V.bottom},Gt.visits>0&&we.createElement(z.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-liulanyan"}),we.createElement("span",null,Gt.visits))),Gt.course_members_count>0&&we.createElement(z.Z,{title:"\u6210\u5458",placement:"bottom"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-chengyuan"}),Gt.course_members_count)),Gt.tasks_count>0&&we.createElement(z.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},we.createElement("span",null,we.createElement("i",{className:"iconfont icon-zuoye"}),Gt.tasks_count)),Gt.is_end?we.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):we.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Gt.is_accessible&&we.createElement("div",{className:V.lockWrap},we.createElement("img",{src:`${W.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),we.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!qe.length&&we.createElement(ee.Z,null)))},ve={flex_box_center:"flex_box_center___PuarE",flex_space_between:"flex_space_between___q4lAa",flex_box_vertical_center:"flex_box_vertical_center___wsb8w",flex_box_center_end:"flex_box_center_end___H781P",flex_box_column:"flex_box_column___bHK1y",list:"list___e2XDo",wrap:"wrap___cz7sh",lockWrap:"lockWrap___EPuRr",creator:"creator___Y6Xjp",img:"img___kSEud",text:"text___GIlhY",top:"top___K4GCD",sign:"sign___KCjEP",name:"name___z3U4d",middle:"middle___LeUM5",row:"row___VBzfJ",value:"value___qigWu",btns:"btns___kGysm",bottom:"bottom___yPYd5",warpStyle:"warpStyle___pH3uC"},oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37p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z89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",ue=({className:_e,dataSource:qe=[],col:st=4,right:yt,bottom:Ct=23,precision:Xt=0,wrapWidth:Bt=1200,wrapClassName:It,trackEventItems:bt,loading:Kt})=>{const Gt=Math.floor((Bt-(st-1)*yt)/st);return x.createElement(M.Z,{spinning:Kt},x.createElement("div",{className:s()(ve.list,_e)},!!qe.length&&qe.map((Yt,In)=>{const{subject_identifier:xn,id:Bn,identifier:Dn,power:Jn}=Yt,rr=Yt.is_public!=0&&Yt.is_public;return x.createElement("div",{className:s()(`${ve.wrap} ${Yt.is_accessible?"":ve.warpStyle}`,It),key:Bn,style:{width:Gt,marginRight:(1+In)%st===0?0:yt+Xt,marginBottom:Ct}},x.createElement("a",{className:ve.li,onClick:or=>{or.preventDefault(),bt&&(0,Y.L9)([bt]),(0,Y.xg)(Yt.first_category_url)}},x.createElement("div",{className:ve.creator},x.createElement("img",{className:ve.img,src:W.Z.IMG_SERVER+"/images/"+Yt.avatar_url}),x.createElement("div",{className:ve.text,title:Yt.creator},Yt.creator)),x.createElement("div",{className:ve.top},x.createElement(z.Z,{title:Yt.name},x.createElement("div",{className:ve.name},Yt.name)),rr&&x.createElement("div",{className:ve.sign},"\u516C\u5F00")),x.createElement("div",{className:ve.middle},x.createElement("div",{className:ve.row,style:{marginBottom:6}},x.createElement("div",null,x.createElement("span",{className:ve.text},"\u8BBF\u95EE\u91CF"),x.createElement("span",{className:ve.value},(Yt==null?void 0:Yt.visits)||0)),x.createElement("div",null,x.createElement("span",{className:ve.text},"\u6210\u5458"),x.createElement("span",{className:ve.value},(Yt==null?void 0:Yt.course_members_count)||0))),x.createElement("div",{className:ve.row},x.createElement("div",null,x.createElement("span",{className:ve.text,style:{width:42}},"\u4F5C",x.createElement("span",{style:{marginLeft:14}},"\u4E1A")),x.createElement("span",{className:ve.value},(Yt==null?void 0:Yt.tasks_count)||0)),x.createElement("div",null,x.createElement("span",{className:ve.text},"\u72B6\u6001"),Yt.is_end?x.createElement("span",{className:ve.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):x.createElement("span",{className:ve.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),xn&&x.createElement("div",{className:ve.btns},x.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),x.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!Yt.is_accessible&&x.createElement("div",{className:ve.lockWrap},x.createElement("img",{src:`${W.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),x.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!qe.length&&x.createElement(ee.Z,null)))},ye={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},Ce=w(90115),ke=({dataSource:_e=[],value:qe,onChange:st,className:yt,style:Ct={},tabBarExtraContent:Xt})=>x.createElement("div",{className:s()(ye.tabs,yt),style:Ct},x.createElement("div",{className:ye.tabsWrap},_e.map((Bt,It)=>x.createElement("aside",{className:ye.tab,onClick:()=>{st(Bt.id),Bt.link&&Ce.history.push(Bt.link)},key:It},x.createElement("div",{className:qe===Bt.id?ye.active:""},Bt.name),(Bt==null?void 0:Bt.resetCount)==null&&(Bt==null?void 0:Bt.total)!==void 0&&x.createElement("span",null,"\uFF08",Bt==null?void 0:Bt.total,"\uFF09"),(Bt==null?void 0:Bt.resetCount)!==void 0&&(Bt==null?void 0:Bt.total)!==void 0&&x.createElement(z.Z,{title:(Bt==null?void 0:Bt.tip)!=null?Bt==null?void 0:Bt.tip:""},x.createElement("span",{style:{color:"#9096A3"}},"\uFF08",x.createElement("span",{style:{color:"#000"}},Bt==null?void 0:Bt.resetCount),"/",x.createElement("span",null,Bt==null?void 0:Bt.total),"\uFF09"))))),x.createElement("div",{className:ye.tabBar},Xt)),Xe={flex_box_center:"flex_box_center___itkVp",flex_space_between:"flex_space_between___F4yZx",flex_box_vertical_center:"flex_box_vertical_center___ko4cu",flex_box_center_end:"flex_box_center_end___cCBYR",flex_box_column:"flex_box_column___Mpq6K",tabs:"tabs___qRAhL",tabsWrap:"tabsWrap___CGRvS",tab:"tab___eYne_",active:"active___swSx6"},Fe=({dataSource:_e=[],value:qe,onChange:st,className:yt,style:Ct={},tabBarExtraContent:Xt})=>x.createElement("div",{className:s()(Xe.tabs,yt),style:Ct},x.createElement("div",{className:Xe.tabsWrap},_e.map((Bt,It)=>x.createElement("aside",{className:Xe.tab,onClick:()=>{st(Bt.id),Bt.link&&Ce.history.push(Bt.link)},key:It},x.createElement("div",{className:qe===Bt.id?Xe.active:""},Bt.name),(Bt==null?void 0:Bt.resetCount)==null&&(Bt==null?void 0:Bt.total)!==void 0&&x.createElement("span",null,"\uFF08",Bt==null?void 0:Bt.total,"\uFF09"),(Bt==null?void 0:Bt.resetCount)!==void 0&&(Bt==null?void 0:Bt.total)!==void 0&&x.createElement(z.Z,{title:(Bt==null?void 0:Bt.tip)!=null?Bt==null?void 0:Bt.tip:""},x.createElement("span",{style:{color:"#9096A3"}},"\uFF08",x.createElement("span",{style:{color:"#000"}},Bt==null?void 0:Bt.resetCount),"/",x.createElement("span",null,Bt==null?void 0:Bt.total),"\uFF09"))))),x.createElement("div",{className:Xe.tabBar},Xt)),ut=({className:_e,style:qe={},children:st})=>x.createElement("div",{className:s()(_e),style:qe},st),ht={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Ft=w(38854),Ht=w(20834);const At=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Lt=({sortValue:_e,dropValue:qe,className:st,onSort:yt,onDrop:Ct,dataSource:Xt=At})=>{var Bt;return x.createElement("div",{className:s()(ht.orderWrap,st)},x.createElement(Ft.Z,{dropdownRender:()=>x.createElement(Ht.default,null,Xt.map((It,bt)=>x.createElement(Ht.default.Item,{key:bt,onClick:()=>Ct(It.id)},It.name)))},x.createElement("span",{className:ht.orderTextWrap},(Bt=Xt.find(It=>qe===It.id))==null?void 0:Bt.name)),x.createElement("span",{className:ht.orderIconWrap},x.createElement("span",{className:ht.orderAsc},x.createElement("i",{className:_e==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ht.cursorPointer} ${ht.active}`:`iconfont icon-sanjiaoxing-up font12 ${ht.cursorPointer}`,onClick:()=>yt(_e==="asc"?"desc":"asc")})),x.createElement("span",{className:ht.orderDesc},x.createElement("i",{className:_e==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ht.cursorPointer} ${ht.active}`:`iconfont icon-sanjiaoxing-down font12 ${ht.cursorPointer}`,onClick:()=>yt(_e==="asc"?"desc":"asc")}))))},wt={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v",ThemeOne:"ThemeOne___iCQio"},Qt=w(3113),Jt=w(39587),an=Object.defineProperty,bn=Object.getOwnPropertySymbols,Sn=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,zn=(_e,qe,st)=>qe in _e?an(_e,qe,{enumerable:!0,configurable:!0,writable:!0,value:st}):_e[qe]=st,jn=(_e,qe)=>{for(var st in qe||(qe={}))Sn.call(qe,st)&&zn(_e,st,qe[st]);if(bn)for(var st of bn(qe))On.call(qe,st)&&zn(_e,st,qe[st]);return _e},qt=(_e,qe)=>{var st={};for(var yt in _e)Sn.call(_e,yt)&&qe.indexOf(yt)<0&&(st[yt]=_e[yt]);if(_e!=null&&bn)for(var yt of bn(_e))qe.indexOf(yt)<0&&On.call(_e,yt)&&(st[yt]=_e[yt]);return st},Nn=(_e,qe,st)=>new Promise((yt,Ct)=>{var Xt=bt=>{try{It(st.next(bt))}catch(Kt){Ct(Kt)}},Bt=bt=>{try{It(st.throw(bt))}catch(Kt){Ct(Kt)}},It=bt=>bt.done?yt(bt.value):Promise.resolve(bt.value).then(Xt,Bt);It((st=st.apply(_e,qe)).next())}),fe=_e=>{var qe=_e,{className:st,style:yt,children:Ct,loading:Xt=!1,openLoading:Bt,onClick:It=()=>{},size:bt="middle",shape:Kt="round",theme:Gt}=qe,Yt=qt(qe,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[In,xn]=(0,x.useState)(!1),Bn=(0,x.useMemo)(()=>{switch(Gt){case Jt.Fy.THEMEONE:return wt.ThemeOne;case Jt.Fy.DEFAULT:default:return wt.btn}},[Gt]);return x.createElement(Qt.ZP,jn({onClick:(0,u.throttle)(Dn=>Nn(void 0,null,function*(){Bt&&xn(!0);try{yield It(Dn)}catch(Jn){console.log("error",Jn)}Bt&&xn(!1)}),2e3,{leading:!0,trailing:!1}),className:s()(Bn,wt[`${bt}-${Kt}`],st),style:yt,size:bt,shape:Kt,loading:In||Xt},Yt),Ct)},be={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},he=({className:_e,style:qe,children:st=null,onClick:yt,title:Ct})=>x.createElement("div",{className:s()(be.head,_e),style:qe},x.createElement("span",{className:"primary-hover",onClick:yt},x.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),x.createElement("b",{title:Ct},Ct),x.createElement("div",{className:be.node},st)),Ne={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Qe=({confirmShow:_e=!0,confirmTitle:qe,confirmClick:st,cancelShow:yt=!0,cancelTitle:Ct,cancelClick:Xt,className:Bt,style:It,confirmLoading:bt=!1})=>x.createElement("div",{className:s()(Ne.btns,Bt),style:It},_e&&x.createElement(Qt.ZP,{loading:bt,onClick:st,type:"primary",className:Ne.confirm},qe),yt&&x.createElement(Qt.ZP,{onClick:Xt,className:Ne.cancel},Ct)),Ge={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},ft=({className:_e,style:qe={},LeftContent:st,children:yt,RightContent:Ct})=>x.createElement("div",{className:s()(Ge.fixedBottom,_e),style:qe},x.createElement("div",{className:Ge.wrap},x.createElement("div",{className:Ge.left},st),x.createElement("div",{className:Ge.center},yt),x.createElement("div",{className:Ge.right},Ct))),St={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},dt=({className:_e,style:qe={},dataSource:st=[]})=>x.createElement("div",{className:s()(St.crumbs,_e),style:qe},st.map((yt,Ct)=>CtCe.history.push(yt.path)},yt.name):x.createElement("span",null,yt.name),x.createElement("span",null,"\xA0",">","\xA0")):x.createElement("span",{key:Ct,style:{color:"#5F6368"}},yt.name))),Et=w(31797),Te=Object.defineProperty,Le=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,ot=(_e,qe,st)=>qe in _e?Te(_e,qe,{enumerable:!0,configurable:!0,writable:!0,value:st}):_e[qe]=st,Oe=(_e,qe)=>{for(var st in qe||(qe={}))nt.call(qe,st)&&ot(_e,st,qe[st]);if(We)for(var st of We(qe))tt.call(qe,st)&&ot(_e,st,qe[st]);return _e},ze=(_e,qe)=>Le(_e,Me(qe)),Ue=(_e,qe)=>{var st={};for(var yt in _e)nt.call(_e,yt)&&qe.indexOf(yt)<0&&(st[yt]=_e[yt]);if(_e!=null&&We)for(var yt of We(_e))qe.indexOf(yt)<0&&tt.call(_e,yt)&&(st[yt]=_e[yt]);return st};const{Countdown:Je}=Et.default;var $e=_e=>{var qe=_e,{onChange:st}=qe,yt=Ue(qe,["onChange"]);const[Ct,Xt]=(0,x.useState)(null);(0,x.useEffect)(()=>{typeof Ct=="number"&&Ct>=0&&st(Ct)},[Ct]);const Bt=It=>{const bt=Math.floor(It/1e3);Xt(bt)};return x.createElement(Je,ze(Oe({},yt),{onChange:Bt}))},et={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},jt=({DataProps:_e,className:qe,style:st={}})=>{var yt;return x.createElement("div",{className:s()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",et.ClassRoomItem,qe),style:st,onClick:()=>{(0,Y.xg)(_e==null?void 0:_e.first_category_url)}},x.createElement("div",{className:"flex flex-col item-center"},x.createElement("img",{src:`${(yt=W.Z)==null?void 0:yt.IMG_SERVER}/images/${_e==null?void 0:_e.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(_e==null?void 0:_e.subject_identifier)&&x.createElement("div",{className:"mt-40px"},x.createElement("div",{className:"rounded-full",style:{background:"rgba(33,202,159,0.1)",border:"1px solid #6BFF98",color:"#0EA17B"}},"\u5F00\u653E\u8BFE\u7A0B"),x.createElement("div",{className:"rounded-full",style:{background:"rgba(255,160,0,0.1)",border:"1px solid #FFC055",color:"#C97319"}},"\u5F00\u653E\u8BFE\u5802"))),x.createElement("div",{className:"flex-1 flex flex-col justify-between gap-10px"},x.createElement("div",{className:"multi_ellipsis2",style:{height:48}},!!(_e!=null&&_e.is_public)&&x.createElement("div",{className:"c-white rounded-4px mr-4px h-24px w-42px item-center justify-center",style:{background:"#21CA9F",border:"1px solid #6BFF98",display:"inline-flex"}},"\u516C\u5F00"),x.createElement("span",{className:s()("text-16px font-medium",et.TitleDom)},_e==null?void 0:_e.name)),x.createElement("div",{className:"c-grey-333 font-medium"},_e==null?void 0:_e.creator),x.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",_e==null?void 0:_e.course_members_count),x.createElement("div",{className:"c-grey-333 flex item-center justify-between"},x.createElement("div",null,"\u4F5C\u4E1A\uFF1A",_e==null?void 0:_e.tasks_count),_e!=null&&_e.is_end?x.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):x.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},Dt=Object.defineProperty,Ut=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,Vt=(_e,qe,st)=>qe in _e?Dt(_e,qe,{enumerable:!0,configurable:!0,writable:!0,value:st}):_e[qe]=st,Rt=(_e,qe)=>{for(var st in qe||(qe={}))en.call(qe,st)&&Vt(_e,st,qe[st]);if(Ut)for(var st of Ut(qe))on.call(qe,st)&&Vt(_e,st,qe[st]);return _e},cn=({DataProps:_e=[],selectValue:qe,onChange:st,className:yt,style:Ct={},extra:Xt,classNameItem:Bt,styleItem:It={},barHidden:bt})=>{const[Kt,Gt]=(0,x.useState)();return(0,x.useEffect)(()=>{Gt(Array.isArray(qe)?qe:[qe])},[qe]),x.createElement("div",{className:s()("flex px-20px py-10px gap-40px",yt),style:Rt({borderBottom:"1px solid #D3F0FF"},Ct)},_e==null?void 0:_e.map(Yt=>x.createElement("div",{key:Yt==null?void 0:Yt.id,className:s()("flex item-center justify-center current c-grey-333 text-16 relative",Bt,Yt==null?void 0:Yt.className),style:Rt(Rt({color:Kt!=null&&Kt.includes(Yt==null?void 0:Yt.id)?"#1890FF":"",minWidth:88},It),(Yt==null?void 0:Yt.style)||{}),onClick:In=>{st==null||st({domEvent:In,item:Yt}),Yt!=null&&Yt.link&&Ce.history.push(Yt==null?void 0:Yt.link)}},Yt==null?void 0:Yt.name,!bt&&(Kt==null?void 0:Kt.includes(Yt==null?void 0:Yt.id))&&x.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),x.createElement("div",{className:"ml-auto"},Xt))},ln=Object.defineProperty,_t=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,vn=Object.getOwnPropertySymbols,tn=Object.prototype.hasOwnProperty,Rn=Object.prototype.propertyIsEnumerable,Un=(_e,qe,st)=>qe in _e?ln(_e,qe,{enumerable:!0,configurable:!0,writable:!0,value:st}):_e[qe]=st,sn=(_e,qe)=>{for(var st in qe||(qe={}))tn.call(qe,st)&&Un(_e,st,qe[st]);if(vn)for(var st of vn(qe))Rn.call(qe,st)&&Un(_e,st,qe[st]);return _e},Tt=(_e,qe)=>_t(_e,$t(qe)),un=({value:_e,onChange:qe,onInputChange:st,className:yt,style:Ct={},InputProps:Xt})=>{const[Bt,It]=(0,x.useState)(_e);return x.createElement("div",{className:s()("flex item-center rounded-full px-10px py-2px",yt),style:sn({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},Ct)},x.createElement(y.default,Tt(sn({bordered:!1},Xt),{onChange:bt=>{It(bt.target.value),st==null||st(encodeURIComponent(bt.target.value))},onPressEnter:bt=>{qe==null||qe({domEvent:bt,item:{value:Bt}})}})),x.createElement("img",{className:"h-22px current",src:w(25365),height:22,onClick:bt=>{qe==null||qe({domEvent:bt,item:{value:Bt}})}}))}},62006:function(Nt,Ve,w){"use strict";w.r(Ve),w.d(Ve,{PracticeFileType:function(){return ke},default:function(){return rt}});var x=w(59301),pe=w(90115),e=w(61485),I=w(57809),f=w(92832),a=w(36381),t=w(78241),s=w(43418),u=w(8591),o=w(5871),c=w(24905),n=w(54580),r=w(3113),i=w(5112),l=w(1710),d=w(95237),E=w(43604),v=w(60324),m=w(81327),p=w(6848),S=w(55159),C={flex_box_center:"flex_box_center___MjMLk",flex_space_between:"flex_space_between___PcWTa",flex_box_vertical_center:"flex_box_vertical_center___Cq7f3",flex_box_center_end:"flex_box_center_end___sMsFo",flex_box_column:"flex_box_column___n6Hxq",bg:"bg____Ic4Q",radioStyle:"radioStyle___kewjX",formWrap:"formWrap___jcehV",onePart:"onePart___ECsrp",searchInput:"searchInput___UhEpw",twoPart:"twoPart___WVIpx",title:"title___RpX2E",threePart:"threePart___Tzme_",flexRowCenter:"flexRowCenter___M7zUK",fourPart:"fourPart___HgBFj",testJi:"testJi___s6Skh",upBtn:"upBtn___eKx0D",checkboxs:"checkboxs___B4uNe",averageWarp:"averageWarp___yXrlD",averageCustom:"averageCustom___t5o4x",groupWrap:"groupWrap___eT0sR",customInput:"customInput___pywUD",btns:"btns___lJQrt",uploadBtn:"uploadBtn___bb8tt",addBtn:"addBtn___KmPzc",deleteBtn:"deleteBtn___j15T3",uploadTips:"uploadTips___ezbms",uploadTipsIcon:"uploadTipsIcon___ZWRlB",downloadBtn:"downloadBtn____jf42",fileItem:"fileItem___fJ0rs",multiSelect:"multiSelect___Xb8b8",multiple_select:"multiple_select___HUup3"},g=w(4121),O=w(64165),y=w(99313),b=w(71418),h={flex_box_center:"flex_box_center___vvciu",flex_space_between:"flex_space_between___WPxvw",flex_box_vertical_center:"flex_box_vertical_center___YY9Br",flex_box_center_end:"flex_box_center_end___FiVhK",flex_box_column:"flex_box_column___FWnfq",wrap:"wrap___AEhcV",content:"content___NDdD8",mainPathWrap:"mainPathWrap___BNeQ2",colorBlue:"colorBlue___UwyKz",empty:"empty___aaM_9"},A=Object.defineProperty,B=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,M=(Fe,it,ut)=>it in Fe?A(Fe,it,{enumerable:!0,configurable:!0,writable:!0,value:ut}):Fe[it]=ut,z=(Fe,it)=>{for(var ut in it||(it={}))k.call(it,ut)&&M(Fe,ut,it[ut]);if(B)for(var ut of B(it))R.call(it,ut)&&M(Fe,ut,it[ut]);return Fe},K=(Fe,it,ut)=>new Promise((ht,Ft)=>{var Ht=Lt=>{try{Wt(ut.next(Lt))}catch(wt){Ft(wt)}},At=Lt=>{try{Wt(ut.throw(Lt))}catch(wt){Ft(wt)}},Wt=Lt=>Lt.done?ht(Lt.value):Promise.resolve(Lt.value).then(Ht,At);Wt((ut=ut.apply(Fe,it)).next())});const W=Fe=>Fe!=null&&Fe.length?Fe.filter((it,ut)=>ut!==0).map(it=>it.val).join("").substr(1):"",Y=({shixunsDetail:Fe,globalSetting:it,dispatch:ut,fileType:ht,path:Ft,onFinish:Ht=()=>{}})=>{const At=(0,pe.useParams)(),[Wt,Lt]=(0,x.useState)(""),[wt,Qt]=(0,x.useState)("1"),[Jt,an]=(0,x.useState)([]),[bn,Sn]=(0,x.useState)(!1),[On,zn]=(0,x.useState)([]),qt=[ke.OriginalPicturePath,ke.ExpectPicturePath,ke.PicturePath].includes(ht);(0,x.useEffect)(()=>{Fe.actionTabs.key==="EditPracticeSetting-SelectFilePath"&&(Lt(Ft||""),Nn())},[Fe.actionTabs.key,Ft,wt]);const Nn=(Qe="")=>K(void 0,null,function*(){Sn(!0);const Ge=yield ut({type:`shixunsDetail/${wt==="1"?"getRepository":"getSecretRepository"}`,payload:{id:At.id,path:Qe}});if(Ge!=null&&Ge.trees){const Ke=Ge.trees.map(ft=>z(z({},ft),{name:ft.name,val:ft.name}));zn(Ke||[])}else zn([]);Sn(!1)}),De=Qe=>{const Ge=W(Jt);let Ke=`${Ge&&`${Ge}/`}${Qe}`;wt==="2"&&(Ke=`secret/${Ke}`),ht===ke.Path?!(Wt!=null&&Wt.includes(`${Ke}\uFF1B`))&&Lt(`${Wt}${Ke}\uFF1B`):ht===ke.ExecPath&&Lt(Ke)},fe=Qe=>{if(Qe.type==="tree"){Jt.length?Jt.push({val:`/${Qe.val}`,path:Qe.val}):Jt.push({val:"\u6839\u76EE\u5F55",path:""},{val:`/${Qe.val}`,path:Qe.val}),an(Jt);const Ge=W(Jt);qt&&Lt(Ge),Nn(Ge)}},be=(Qe,Ge)=>{const Ke=Jt.filter((St,Ot)=>Ot<=Ge);an(Ke);const ft=W(Ke);qt&&Lt(ft),Nn(ft)},ge=()=>K(void 0,null,function*(){Ht(Wt),he()}),he=()=>{Lt(""),an([]),zn([]),Qt("1"),ut({type:"shixunsDetail/setActionTabs",payload:{}})},Ne=()=>x.createElement(O.Z,{style:{margin:"0 0"},image:O.Z.PRESENTED_IMAGE_SIMPLE,imageStyle:{height:60},description:x.createElement("div",null,x.createElement("p",{style:{color:"#888",marginBottom:0}},"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93\u6682\u65E0\u6587\u4EF6\u3002\u8BF7\u5148\u5F00\u542F\u5E76\u4E0A\u4F20\u4EE3\u7801\u6587"),x.createElement("span",{style:{color:"#888"}},"\u4EF6\u3001\u6807\u51C6\u56FE\u7247\u7B49\u6587\u4EF6\u5230\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93"))},x.createElement(r.ZP,{type:"primary",onClick:()=>{he(),ut({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"warehouse"}}),pe.history.push(`/shixuns/${At.id}/edit?tabId=warehouse`)}},"\u53BB\u4E0A\u4F20")),Be=W(Jt);return x.createElement(s.default,{centered:!0,title:"\u6587\u4EF6\u8DEF\u5F84",closable:!1,keyboard:!1,open:Fe.actionTabs.key==="EditPracticeSetting-SelectFilePath",onOk:ge,onCancel:he},x.createElement("div",{className:h.wrap},x.createElement(y.default,{activeKey:wt,onChange:Qe=>{an([]),Qt(Qe)}},x.createElement(y.default.TabPane,{tab:"\u4EE3\u7801\u4ED3\u5E93",key:"1"}),ht==="exec_path"&&x.createElement(y.default.TabPane,{tab:"\u79C1\u5BC6\u4EE3\u7801\u4ED3\u5E93",key:"2"})),x.createElement(b.Z,{style:{backgroundColor:"#f5f5f5",height:200},spinning:bn},x.createElement("div",{className:h.content},x.createElement("div",null,!!(Jt!=null&&Jt.length)&&Jt.map((Qe,Ge)=>x.createElement("a",{style:{whiteSpace:Ge===0?"nowrap":""},key:Ge,onClick:()=>be(Qe,Ge)},Qe.val))),On!=null&&On.length?On.map((Qe,Ge)=>Qe.type==="tree"?x.createElement("a",{key:Ge,onClick:()=>fe(Qe)},x.createElement("i",{className:`iconfont icon-wenjianjia ${h.colorBlue}`}),Be&&`${Be}/`,Qe.name):x.createElement("a",{key:Ge,onClick:()=>De(`${Qe.name}`)},x.createElement("i",{className:`iconfont icon-zuoye ${h.colorBlue}`}),Be&&`${Be}/`,Qe.name)):Ne())),x.createElement("label",{className:"mt5"},"\u5DF2\u9009\u4E2D\u7684\u6587\u4EF6:"),x.createElement(f.default,{placeholder:"\u8BF7\u8F93\u5165\u65B0\u6587\u4EF6\u5939\u540D/\u5B50\u6587\u4EF6\u5939\u540D\u3002\uFF08\u5982\uFF1Asrc/step1\uFF09",value:Wt,onChange:Qe=>Lt(Qe.target.value)})))};var H=(0,pe.connect)(({shixunsDetail:Fe,globalSetting:it})=>({shixunsDetail:Fe,globalSetting:it}))(Y),re=w(78442),G=w(89392),ee=w(21824),X=w(78673),Q=w(26227),q=w(62772),$={text:"text___XxpQd",box:"box___DE1hR"},le=Object.defineProperty,se=Object.defineProperties,Ee=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,J=(Fe,it,ut)=>it in Fe?le(Fe,it,{enumerable:!0,configurable:!0,writable:!0,value:ut}):Fe[it]=ut,N=(Fe,it)=>{for(var ut in it||(it={}))ie.call(it,ut)&&J(Fe,ut,it[ut]);if(Se)for(var ut of Se(it))L.call(it,ut)&&J(Fe,ut,it[ut]);return Fe},Z=(Fe,it)=>se(Fe,Ee(it)),U=({form:Fe})=>{const it={is_step_grading:!1,step_grading_type:0,step_grading_rules:[{compelete_time_min:"",compelete_time_max:"",point_value:"",score_rate:""}]},[ut,ht]=(0,x.useState)([]),[Ft,Ht]=(0,x.useState)([]),At=t.default.useWatch("is_step_grading",Fe),Wt=t.default.useWatch("step_grading_type",Fe),Lt=t.default.useWatch("vrs_point_answer_type",Fe);console.log(Lt,"answerType"),(0,x.useEffect)(()=>{typeof Lt=="number"&&(ht([]),Ht([]))},[Lt]);const wt=Qt=>{const Jt=(0,G.cloneDeep)(Fe.getFieldValue("step_grading_rules")||[]);Qt.target.value===0&&(Ht(Jt),Fe.setFieldsValue({step_grading_rules:ut})),Qt.target.value===1&&(ht(Jt),Fe.setFieldsValue({step_grading_rules:Ft}))};return x.createElement(x.Fragment,null,x.createElement("div",{className:"relative"},x.createElement(t.default.Item,{className:"mb0",name:"is_step_grading",label:"\u9636\u68AF\u5224\u5206",valuePropName:"checked"},x.createElement(X.Z,null)),x.createElement("div",{className:$.text},"\u5F00\u542F\u540E\uFF0C\u7CFB\u7EDF\u5C06\u6839\u636E\u8BBE\u7F6E\u7684\u9636\u68AF\u5224\u5206\u89C4\u5219\u7ED9\u5206")),At&&x.createElement("div",{className:$.box},x.createElement(t.default.Item,{name:"step_grading_type",label:"",className:"mb0",initialValue:0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5224\u5206\u7C7B\u578B"}]},x.createElement(i.ZP.Group,{onChange:wt},x.createElement(i.ZP,{value:0},"\u6309\u7167\u91C7\u96C6\u70B9\u64CD\u4F5C\u5B8C\u6210\u65F6\u95F4"),Lt===0&&x.createElement(i.ZP,{value:1},"\u6309\u7167\u91C7\u96C6\u70B9\u6570\u503C"))),x.createElement(t.default.List,{name:"step_grading_rules"},(Qt,{add:Jt,remove:an})=>x.createElement("div",null,Qt.map((bn,Sn)=>(console.log(bn.key,555),x.createElement(m.Z,{key:bn.key,size:10,className:"mb20"},Wt===0&&x.createElement(m.Z,{size:8},x.createElement("span",null,"\u5B8C\u6210\u65F6\u95F4"),x.createElement(t.default.Item,Z(N({},bn),{className:"mb0",name:[bn.name,"compelete_time_min"],label:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u79D2\u6570"}]}),x.createElement(o.Z,{controls:!1,suffix:"\u79D2",min:0})),x.createElement("div",null,"-"),x.createElement(t.default.Item,Z(N({},bn),{className:"mb0",name:[bn.name,"compelete_time_max"],label:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u79D2\u6570"}]}),x.createElement(o.Z,{controls:!1,suffix:"\u79D2",min:0}))),Wt===1&&x.createElement(m.Z,{size:8},x.createElement("span",null,"\u91C7\u96C6\u70B9\u6570\u503C\u4E3A"),x.createElement(t.default.Item,Z(N({},bn),{className:"mb0",name:[bn.name,"point_value"],label:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6570\u503C"}]}),x.createElement(o.Z,{controls:!1}))),x.createElement("div",null,"\uFF0C\u53EF\u5F97"),x.createElement(t.default.Item,Z(N({},bn),{className:"mb0",name:[bn.name,"score_rate"],label:!1,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F97\u5206\u6BD4\u4F8B"},{min:0,max:100,message:"\u8BF7\u8F93\u51650-100\u7684\u6570\u503C",type:"number"}]}),x.createElement(o.Z,{controls:!1,suffix:"%"})),x.createElement("div",null,"\u5206\u503C"),x.createElement(r.ZP,{type:"text",danger:!0,icon:x.createElement(Q.Z,null),onClick:()=>an(bn.name)})))),x.createElement(r.ZP,{type:"dashed",onClick:()=>Jt({compelete_time_min:"",compelete_time_max:"",point_value:"",score_rate:""}),icon:x.createElement(q.Z,null),block:!0},"\u6DFB\u52A0\u89C4\u5219")))))},D=w(64866),T=w(17614),P=w(71773),j=w(2751),F=w(11662),te=w(38852),ae=Object.defineProperty,V=Object.defineProperties,de=Object.getOwnPropertyDescriptors,we=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ve=(Fe,it,ut)=>it in Fe?ae(Fe,it,{enumerable:!0,configurable:!0,writable:!0,value:ut}):Fe[it]=ut,oe=(Fe,it)=>{for(var ut in it||(it={}))xe.call(it,ut)&&ve(Fe,ut,it[ut]);if(we)for(var ut of we(it))Ae.call(it,ut)&&ve(Fe,ut,it[ut]);return Fe},_=(Fe,it)=>V(Fe,de(it)),ue=(Fe,it,ut)=>new Promise((ht,Ft)=>{var Ht=Lt=>{try{Wt(ut.next(Lt))}catch(wt){Ft(wt)}},At=Lt=>{try{Wt(ut.throw(Lt))}catch(wt){Ft(wt)}},Wt=Lt=>Lt.done?ht(Lt.value):Promise.resolve(Lt.value).then(Ht,At);Wt((ut=ut.apply(Fe,it)).next())});const{Option:ye}=I.default,{TextArea:Ce}=f.default,{Panel:je}=a.default;var ke=(Fe=>(Fe.Path="path",Fe.ExecPath="exec_path",Fe.OriginalPicturePath="original_picture_path",Fe.ExpectPicturePath="expect_picture_path",Fe.PicturePath="picture_path",Fe))(ke||{});const Xe=({shixunsDetail:Fe,dispatch:it,practiceSetting:ut})=>{var ht,Ft,Ht,At,Wt,Lt,wt,Qt,Jt,an,bn,Sn,On,zn,jn,qt,Nn,De,fe,be,ge,he;const Ne=(0,pe.useDispatch)(),[Be]=t.default.useForm(),[Qe]=t.default.useForm(),[Ge]=t.default.useForm(),[Ke,ft]=(0,x.useState)({}),[St,Ot]=(0,x.useState)({}),[dt,Et]=(0,x.useState)([]),[Te,Le]=(0,x.useState)({}),[Me,We]=(0,x.useState)([]),[nt,tt]=(0,x.useState)({hidden:0,input_visible:!1,is_invisible:!1,actual_output_visible:!1,last_match_rule:!1}),[ot,Oe]=(0,x.useState)([!1]),[ze,Ue]=(0,x.useState)(!1),[Je,Ye]=(0,x.useState)(),$e=(0,x.useRef)({formValue:{},testSetList:[],uploadData:[]}),[et,vt]=(0,x.useState)(!0),[jt,Dt]=(0,x.useState)(!0),Ut=(0,x.useRef)(null),[en,on]=(0,x.useState)(!1),[Vt,Rt]=(0,x.useState)(!1),[pn,cn]=(0,x.useState)(!1),[ln,_t]=(0,x.useState)(!1),[$t,vn]=(0,x.useState)(!1),tn=(0,pe.useParams)(),[Rn,Un]=(0,x.useState)(!1),[sn,Tt]=(0,x.useState)(!1),[Pt,un]=(0,x.useState)(!1),[_e,qe]=(0,x.useState)(!1),[st,yt]=(0,x.useState)(!1),[Ct,Xt]=(0,x.useState)([]),[Bt,It]=(0,x.useState)("");let[bt,Kt]=(0,x.useState)([{}]);const[Gt,Yt]=(0,x.useState)([]),[In,xn]=(0,x.useState)([]),[Bn,Dn]=(0,x.useState)(null),[Jn,rr]=(0,x.useState)([]),[or,tr]=(0,x.useState)({}),[ir,Rr]=(0,x.useState)([]),[Lr,Qr]=(0,x.useState)(null),[Pr,_r]=(0,x.useState)([]),[va,Jr]=(0,x.useState)([]),[ba,ha]=(0,x.useState)([]),[Gn,$n]=(0,x.useState)(),[gr,nr]=(0,x.useState)([]),pr=["test_set_rules","go_back_url","next_challenge","position","name","chooses","st","id","path","exec_path","show_type","original_picture_path","expect_picture_path","picture_path","test_set_rules_expression","web_route","test_set_score","test_set_average","exec_time","ignore_space","with_code_file","unity_3d","unity_3d_routes","unity_3d_result","has_web_route","test_sets","is_file","proxy_port","unity3d_show_location","show_vrs_content"];let Cr=[];(0,x.useEffect)(()=>{zr(),Cn()},[]),(0,x.useEffect)(()=>{console.log(dt);let Re=dt.every(mn=>mn.hidden===1);Un(Re);let pt=dt.every(mn=>mn.is_invisible);Tt(pt);let Zt=dt.every(mn=>mn.last_match_rule);un(Zt);let gn=dt.every(mn=>mn.input_visible);qe(gn);let yn=dt.every(mn=>mn.actual_output_visible);yt(yn)},[dt]),(0,x.useEffect)(()=>{var Re;Fe.actionTabs.key=="\u7F16\u8F91\u8BBE\u7F6E\u9879"?Hn(Fe.actionTabs.params):Fe.actionTabs.key=="\u7F16\u8F91\u91C7\u96C6\u70B9"&&(Xn(Fe.actionTabs.params),Xa(((Re=Fe==null?void 0:Fe.detail)==null?void 0:Re.vrs_subject_id)||[]))},[Fe.actionTabs.key]),(0,x.useEffect)(()=>{tn.challengesId?$n(!0):$n(!1)},[tn]),(0,x.useEffect)(()=>(JSON.stringify($e.current.formValue)!=="{}"&&$e.current.testSetList.length&&vr(),()=>{clearTimeout(Ut.current)}),[Ke,Me]);const zr=()=>ue(void 0,null,function*(){var Re,pt;vt(!0);const Zt=yield it({type:"shixunsDetail/getRepository",payload:{id:tn.id,path:""}});Dt((Zt==null?void 0:Zt.trees)===null);const gn=yield(0,S.ii)({id:tn.id,challengeId:tn.challengesId,tab:1});if(gn){vt(!1);const yn=((pt=(Re=gn.test_sets)==null?void 0:Re[0])==null?void 0:pt.is_file)||!1,mn=_(oe({},gn),{is_file:yn});Le(mn),parseInt(gn==null?void 0:gn.code_compile_score)>0&&vn(!0),ia(mn)}}),Cn=()=>ue(void 0,null,function*(){const Re=yield(0,D.ZP)("/api/vrs_env_list",{method:"get"});(Re==null?void 0:Re.status)===0&&Xt(Re==null?void 0:Re.data)}),Hn=Re=>ue(void 0,null,function*(){Dn(Re),Qe.setFieldsValue(oe({},Re))}),Xn=Re=>ue(void 0,null,function*(){var pt,Zt,gn;Qr(Re),Ge.setFieldsValue(_(oe({},Re),{vrs_env_id:(pt=Fe==null?void 0:Fe.detail)==null?void 0:pt.vrs_env_id,vrs_subject_id:(Zt=Fe==null?void 0:Fe.detail)==null?void 0:Zt.vrs_subject_id})),console.log("shixunsDetail?.detail?.vrs_subject_id",(gn=Fe==null?void 0:Fe.detail)==null?void 0:gn.vrs_subject_id)}),Qn=Re=>{let pt=Re==null?void 0:Re.length;if(pt==0)return;const Zt=Math.floor(100/pt),gn=100%pt,yn=Number(Zt)+Number(gn);console.log(pt,Re),Rr(Re.map((mn,fr)=>_(oe({},mn),{score:fr==pt-1?yn:Zt})))},vr=()=>{clearTimeout(Ut.current),Ut.current=setTimeout(xr,500)},xr=()=>{pr.some(pt=>{const Zt=(0,G.isNumber)(Ke[pt])?String(Ke[pt]):Ke[pt],gn=(0,G.isNumber)($e.current.formValue[pt])?String($e.current.formValue[pt]):$e.current.formValue[pt];return!(0,G.isEqual)(Zt,gn)})||!(0,G.isEqual)($e.current.testSetList,Me)||!(0,G.isEqual)($e.current.uploadData,dt)?it({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!0}}):it({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})},ia=Re=>{var pt,Zt,gn,yn,mn;if(Re.proxy_port=(Re==null?void 0:Re.proxy_port)||8080,Be.setFieldsValue(oe({},Re)),ft(oe({},Re)),Re!=null&&Re.is_file){const fr=Re.test_sets||[];Et(fr);const Yn=[{hidden:0,input:"",output:"",score:100}];$e.current={formValue:oe({},Re),testSetList:Yn,uploadData:fr},We(Yn),Oe(Array(Yn.length).fill(!1))}else{const fr=(pt=Re.test_sets)!=null&&pt.length?Re.test_sets:[{hidden:0,input:"",output:"",score:100}];$e.current={formValue:oe({},Re),testSetList:fr,uploadData:[]},Oe(Array(fr.length).fill(!1)),We(fr)}xn((Re==null?void 0:Re.vrs_settings)||[]),Rr((Re==null?void 0:Re.test_sets)||[]),Kt((Re==null?void 0:Re.step_settings)||[{}]),nr(Re!=null&&Re.img_attachment?[_(oe({},Re==null?void 0:Re.img_attachment),{name:(Zt=Re==null?void 0:Re.img_attachment)==null?void 0:Zt.title,response:{id:(yn=(gn=Re==null?void 0:Re.img_attachment)==null?void 0:gn.url)==null?void 0:yn.split("/")[3]}})]:[]),Re!=null&&Re.voice_attachment&&ha([{response:oe({},Re==null?void 0:Re.voice_attachment),uid:(mn=Re==null?void 0:Re.voice_attachment)==null?void 0:mn.id,status:"done"}])},Nr=Re=>ue(void 0,null,function*(){if(jt){s.default.confirm({centered:!0,title:"\u63D0\u793A",content:"\u8BF7\u5148\u4E0A\u4F20\u672C\u5173\u4EFB\u52A1\u7684\u6240\u6709\u4EE3\u7801\u6587\u4EF6\u3001\u6807\u51C6\u56FE\u7247\u7B49\u6240\u6709\u5FC5\u8981\u7684\u6587\u4EF6\u5230\u4EE3\u7801\u4ED3\u5E93",okText:"\u53BB\u4E0A\u4F20",onOk:()=>{it({type:"practiceSetting/setSideBarTabs",payload:{tabsActive:"warehouse"}}),pe.history.push(`/shixuns/${tn.id}/edit?tabId=warehouse`)},cancelText:"\u53D6\u6D88"});return}it({type:"shixunsDetail/setActionTabs",payload:{key:"EditPracticeSetting-SelectFilePath"}}),Ye(Re)}),Hr=Re=>{const pt={[Je]:Re};Be.setFieldsValue(pt),ft(oe(oe({},Ke),pt))},$r=Re=>{const pt=Be.getFieldsValue();ft(oe({},pt)),"vrs_env_id"in Re&&(Be.setFieldsValue({vrs_subject_id:null}),ft(_(oe({},pt),{vrs_subject_id:null})),xn([]),Rr([])),"vrs_subject_id"in Re&&(xn([]),Rr([])),"test_set_score"in Re&&Re.test_set_score&&(Be.setFieldsValue({test_set_average:!0}),Ke.is_file?dr(dt):yr(Me)),"test_set_average"in Re&&Re.test_set_average&&(Qn(ir),Ke.is_file?dr(dt):yr(Me)),"unity_3d"in Re&&(Re.unity_3d||(Be.setFieldsValue({with_code_file:!0}),ft(_(oe({},pt),{with_code_file:!0}))))},yr=Re=>{let pt=parseInt(Be.getFieldValue("code_compile_score")||0);const Zt=Math.floor((100-pt)/Re.length),gn=Zt+(100-pt)%Re.length;Re=Re.map((yn,mn)=>mn===Re.length-1?_(oe({},yn),{score:gn}):_(oe({},yn),{score:Zt})),$e.current.testSetList=(0,G.clone)(Re),We(Re)},dr=Re=>{let pt=parseInt(Be.getFieldValue("code_compile_score")||0);const Zt=Math.floor((100-pt)/Re.length),gn=Zt+(100-pt)%Re.length;Re=Re.map((yn,mn)=>mn===Re.length-1?_(oe({},yn),{score:gn}):_(oe({},yn),{score:Zt})),$e.current.uploadData=(0,G.clone)(Re),Et(Re)},Vr=()=>{const Re=[...Me,{hidden:0,input:"",output:"",score:0}];Oe([...ot,!1]),Ue(!1),Be.getFieldValue("test_set_average")?yr(Re):We(Re)},Mr=(Re,pt=!1,Zt=1)=>ue(void 0,null,function*(){var gn,yn,mn,fr,Yn,sr,la,Gr,Kr;const{vrs_type:ga,vrs_env_id:ya,vrs_subject_id:Ia,test_set_average:Oa,vrs_settings:Qa,test_set:ka,point_hint:vo}=Re;console.log(Re),Re.path&&!Re.path.endsWith("\uFF1B")&&(Re.path=Re.path+"\uFF1B"),console.log(ba),console.log(Re),console.log(gr),((gn=Fe.detail)==null?void 0:gn.vrs_type)==1?(yield(0,D.ZP)(`/api/shixuns/${tn==null?void 0:tn.id}/challenges/${tn==null?void 0:tn.challengesId}/update_vrs_setting`,{method:"put",body:_(oe({},Re),{vrs_type:1,vrs_env_id:ya,vrs_subject_id:Ia,test_set:ir,unity_3d_routes:(mn=(yn=Ct==null?void 0:Ct.filter(_a=>{var to;return _a.id==((to=Fe==null?void 0:Fe.detail)==null?void 0:to.vrs_env_id)}))==null?void 0:yn[0])==null?void 0:mn.url,voice_attachment_id:(sr=(Yn=(fr=ba.filter(_a=>_a.status==="done"))==null?void 0:fr[0])==null?void 0:Yn.response)==null?void 0:sr.container_id,step_settings:[...bt],img_attachment_id:((Gr=(la=gr==null?void 0:gr[0])==null?void 0:la.response)==null?void 0:Gr.id)||""})})).status==0&&u.ZP.success("\u4FDD\u5B58\u6210\u529F"):(yield(0,S.Rs)(_(oe({},tn),{tab:1,vrs_type:0,challenge:_(oe(oe({},Re),{test_set_rules_expression:Re.test_set_rules===0?null:Re.test_set_rules_expression}),{shixunfileexpectpicturepath:Re.original_picture_path,shixunfilestandardpicturepath:Re.expect_picture_path}),test_set:Cr,sync_origin_shixun:pt}))).status>=0&&((Kr=Fe==null?void 0:Fe.detail)!=null&&Kr.copy_for_exercise&&(0,P.m)(it,Fe,tn.id,Zt),pe.history.replace(`/shixuns/${tn.id}/edit/${tn.challengesId}/tab=3`))}),sa=(Re,pt)=>{const Zt=[...dt];Zt.splice(pt,1),Ke.test_set_average?dr(Zt):Et(Zt)},Wr=(Re,pt)=>{console.log(Re,pt);const Zt=dt.map((gn,yn)=>yn===pt?_(oe({},gn),{score:Re.target.value?Number(Re.target.value):0}):gn);Et(Zt)},Ka=(Re,pt,Zt)=>{Zt==="hidden"&&(Re=Re?1:0),console.log(Re,pt);const gn=dt.map((mn,fr)=>fr===pt?_(oe({},mn),{[Zt]:Re}):mn);Et(gn),console.log(gn);const yn=gn.every(mn=>mn[Zt]===Re);Zt==="hidden"?Un(yn&&Re):Zt==="is_invisible"?Tt(yn&&Re):Zt==="input_visible"?qe(yn&&Re):Zt==="actual_output_visible"?yt(yn&&Re):un(yn&&Re)},Za=(Re,pt)=>{pt==="hidden"&&(Re=Re?1:0),console.log(Re);const Zt=dt.map((gn,yn)=>_(oe({},gn),{[pt]:Re}));Et(Zt),pt==="hidden"?Un(Re):pt==="is_invisible"?Tt(Re):pt==="input_visible"?qe(Re):pt==="actual_output_visible"?yt(Re):un(Re)},io=Re=>{if(Re!=null&&Re.length){if(Be.setFieldsValue({is_file:Re==null?void 0:Re[0].is_file}),ft(_(oe({},Ke),{is_file:Re==null?void 0:Re[0].is_file})),Re!=null&&Re[0].is_file){const pt=dt.concat(Re.map(Zt=>_(oe({},Zt),{hidden:0,is_invisible:!1,last_match_rule:!1})));Ke.test_set_average?dr(pt):Et(pt)}if(!(Re!=null&&Re[0].is_file)){const pt=Me==null?void 0:Me.filter(Zt=>Zt.input||Zt.output).concat(Re);Oe(Array(pt.length).fill(!1)),Ke.test_set_average?yr(pt):We(pt)}}},Aa=()=>{s.default.confirm({title:"\u5220\u9664\u6D4B\u8BD5\u7528\u4F8B\u63D0\u793A",content:"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u672C\u5173\u5361\u4E2D\u7684\u6D4B\u8BD5\u7528\u4F8B\u5168\u90E8\u5220\u9664\uFF1F",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:()=>{Re()}});const Re=()=>{Ke.is_file?dr([]):(yr([{hidden:0,input:"",output:"",score:0}]),Oe([!1]))}},so=()=>{var Re;const pt=()=>{pe.history.push(`/shixuns/${tn.id}/challenges`),it({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(Re=ut==null?void 0:ut.sideBar)!=null&&Re.confirmLeave?s.default.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{pt()}}):pt()};console.log(dt,444);const lo=Re=>ue(void 0,null,function*(){xn(In.filter(pt=>!Re.includes(pt.id)))}),Ga=Re=>ue(void 0,null,function*(){let pt=ir.filter(Zt=>!Re.includes(Zt.id));Rr(pt),Qn(pt)}),co=[{title:"\u5E8F\u53F7",render:(Re,pt,Zt)=>Zt+1,width:60,align:"center"},{title:"\u76EE\u6807",dataIndex:"target",align:"center"},{title:"\u8BBE\u7F6E\u9879\u540D\u79F0",dataIndex:"name",align:"center"},{title:"\u6001\u52BF\u503C",dataIndex:"value",align:"center"},{title:"\u64CD\u4F5C",dataIndex:"course_group_name",align:"right",width:200,render:(Re,pt)=>x.createElement(x.Fragment,null,x.createElement("span",{onClick:()=>{Ne({type:"shixunsDetail/setActionTabs",payload:{key:"\u7F16\u8F91\u8BBE\u7F6E\u9879",params:pt}})},className:"current c-light-primary mr15"},"\u7F16\u8F91"),x.createElement("span",{onClick:()=>lo([pt==null?void 0:pt.id]),className:"current",style:{color:"#9096A3"}},"\u5220\u9664"))}],mo=[{title:"\u5E8F\u53F7",render:(Re,pt,Zt)=>Zt+1,width:60,align:"center"},{title:"\u91C7\u96C6\u70B9\u540D\u79F0",dataIndex:"vrs_point_name",align:"center"},{title:"\u7B54\u6848\u503C\u7C7B\u578B",dataIndex:"vrs_point_answer_type",align:"center",render:(Re,pt,Zt)=>Re==0?"\u56FA\u5B9A\u503C":Re==1?"\u533A\u95F4\u503C":"\u72B6\u6001\u503C"},{title:"\u7B54\u6848",dataIndex:"vrs_point_answer_value",align:"center"},{title:"\u5F97\u5206\u6BD4\u4F8B",dataIndex:"score",align:"left",width:220,render:(Re,pt,Zt)=>{var gn;return x.createElement(x.Fragment,null,x.createElement(o.Z,{min:0,max:100,value:(gn=ir[Zt])==null?void 0:gn.score,disabled:Ke==null?void 0:Ke.test_set_average,onChange:yn=>{ir[Zt].score=yn?Number(yn):0,Rr([...ir])}}),x.createElement("span",{className:"ml5"},"%"))}},{title:"\u662F\u5426\u9636\u68AF\u5224\u5206",dataIndex:"is_step_grading",align:"left",width:112,render:(Re,pt,Zt)=>Re?"\u662F":"\u5426"},Ke.point_hint&&{title:"\u5F15\u5BFC\u987A\u5E8F",dataIndex:"vrs_position",align:"center"},Ke.point_hint&&{title:"\u5F15\u5BFC\u5185\u5BB9",dataIndex:"vrs_content",ellipsis:!0,align:"center"},{title:"\u64CD\u4F5C",dataIndex:"course_group_name",align:"right",width:200,render:(Re,pt)=>x.createElement(x.Fragment,null,x.createElement("span",{onClick:()=>{var Zt;Ke.vrs_question_type=(Zt=Fe.detail)==null?void 0:Zt.vrs_question_type,ft(oe({},Ke)),Ne({type:"shixunsDetail/setActionTabs",payload:{key:"\u7F16\u8F91\u91C7\u96C6\u70B9",params:pt}})},className:"current mr15",style:{color:"#3061D0"}},"\u7F16\u8F91"),x.createElement("span",{onClick:()=>Ga([pt==null?void 0:pt.id]),className:"current",style:{color:"#9096A3"}},"\u5220\u9664"))}].filter(Re=>!!Re),Xa=Re=>ue(void 0,null,function*(){const pt=yield(0,D.ZP)("/api/vrs_points.json",{method:"get",params:{vrs_subject_id:Re}});(pt==null?void 0:pt.status)==0&&Yt(pt.data)}),eo=Re=>{["uploading","done","removed"].includes(Re.file.status)&&nr(Re.fileList)},Ya=Re=>Re.type==="image/jpeg"||Re.type==="image/png"?Re.size/1024/1024>10?(u.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E10MB"),!1):(nr([]),!0):(u.ZP.error("\u8BF7\u4E0A\u4F20jpg\u6216png\u7684\u56FE\u7247!"),!1);return x.createElement(x.Fragment,null,x.createElement("section",{key:1,className:C.bg},x.createElement(t.default,{form:Be,className:C.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:$r,onFinish:Re=>{var pt,Zt,gn;let yn=parseInt(Be.getFieldValue("code_compile_score")||0);if(((pt=Fe.detail)==null?void 0:pt.vrs_type)==1&&(ir!=null&&ir.length)){const mn=ir.reduce((fr,Yn)=>fr+Yn,0);if(Re.test_set_score&&mn!==100&&(ir!=null&&ir.length)){u.ZP.error("\u6570\u636E\u91C7\u96C6\u70B9\u7684\u5F97\u5206\u6BD4\u4F8B\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}}if(Re.is_file){if(!(dt!=null&&dt.length)){u.ZP.error("\u6D4B\u8BD5\u96C6\u4E0D\u80FD\u4E3A\u7A7A");return}const fr=dt.map(Yn=>Yn.score).reduce((Yn,sr)=>Yn+sr,0)+yn;if(Re.test_set_score&&fr!==100&&(Me!=null&&Me.length)){u.ZP.error("\u6D4B\u8BD5\u96C6\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}Cr=dt}if(!Re.is_file){const fr=Me.map(Yn=>Yn.score).reduce((Yn,sr)=>Yn+sr,0)+yn;if(Re.test_set_score&&fr!==100&&(Me!=null&&Me.length)){u.ZP.error("\u6D4B\u8BD5\u96C6\u7684\u8BC4\u5206\u5360\u6BD4\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E100");return}Cr=Me.map(Yn=>_(oe({},Yn),{is_file:!1}))}Re.test_set_score||(Cr=Cr.map(mn=>_(oe({},mn),{is_target:!1,target_name:""}))),(Zt=Fe==null?void 0:Fe.detail)!=null&&Zt.is_fork_from_creator&&((gn=Fe==null?void 0:Fe.detail)!=null&&gn.copy_for_exercise)&&(Te!=null&&Te.has_relation)?it({type:"classroomList/setActionTabs",payload:{key:"\u540C\u6B65\u4FEE\u6539",value:Re,type:"taskLevel",fn:(mn,fr,Yn)=>{Mr(mn,fr,Yn)}}}):Mr(Re)},initialValues:{test_set_rules:0}},x.createElement(T.Z,{activeIndex:1}),x.createElement("div",{className:(ht=Fe==null?void 0:Fe.detail)!=null&&ht.is_client_unity_3d?"":C.onePart},((Ft=Fe.detail)==null?void 0:Ft.identity)<3&&((Ht=Fe.detail)==null?void 0:Ht.unity_3d)&&((At=Fe.detail)==null?void 0:At.vrs_type)==1&&x.createElement(x.Fragment,null,x.createElement(t.default.Item,{name:"is_time_limit",valuePropName:"checked"},x.createElement(c.default,{style:{color:"#333333"}},"\u5F00\u542F\u4EFB\u52A1\u5B8C\u6210\u65F6\u95F4\u9650\u5236\uFF0C\u672A\u5728\u6307\u5B9A\u65F6\u95F4\u5185\u5B8C\u6210\u4E0D\u5F97\u5206")),Ke.is_time_limit&&x.createElement("div",{style:{display:"flex",alignItems:"center",marginBottom:10}},x.createElement("div",{style:{color:"#000000"}},"\u9650\u5236\u65F6\u957F"),x.createElement(t.default.Item,{className:"ml20",style:{marginBottom:"0px"},name:"time_limit",rules:[{required:!0,message:"\u9650\u5236\u65F6\u957F\u4E0D\u80FD\u4E3A\u7A7A"}]},x.createElement(o.Z,{size:"large",style:{width:120},min:1,precision:0})),x.createElement("div",{style:{color:"#9096A3",marginLeft:10}},"\u5206\u949F")),x.createElement(t.default.Item,{name:"show_vrs_content",valuePropName:"checked"},x.createElement(c.default,{style:{color:"#333333"}},"\u662F\u5426\u5728\u4EFF\u771F\u5BA2\u6237\u7AEF\u663E\u793A\u5F15\u5BFC\u5185\u5BB9\u7684\u4EA4\u4E92\u9762\u677F")),((Wt=Fe.detail)==null?void 0:Wt.vrs_question_type)==1&&(Ke==null?void 0:Ke.show_vrs_content)&&x.createElement(x.Fragment,null,x.createElement(t.default.Item,{name:"vrs_content",label:"\u5F15\u5BFC\u5185\u5BB9:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F15\u5BFC\u5185\u5BB9"}]},x.createElement(Ce,{defaultValue:Ke.vrs_content,rows:6})),x.createElement(t.default.Item,{name:"img_attachment_id",valuePropName:"imgFileList"},x.createElement("div",{className:C.upload},x.createElement(n.default,{fileList:gr,action:`${F.Z.API_SERVER}/api/attachments.json`,onChange:Re=>eo(Re),onRemove:Re=>{nr([])},beforeUpload:Re=>Ya(Re),withCredentials:!0,accept:"image/*"},x.createElement(r.ZP,{type:"primary",style:{height:"38px",padding:"4px 27px"}},"\u4E0A\u4F20\u56FE\u7247")))),x.createElement(t.default.Item,{name:"audioFiles",valuePropName:"audioFiles"},x.createElement(te.Z,{isEdit:Gn,value:ba,onChange:ha,maxSize:5e3,maxCount:1}))),x.createElement(t.default.Item,{name:"test_set_average",label:"\u91C7\u96C6\u70B9\u5F97\u5206\u89C4\u8303"},x.createElement(i.ZP.Group,null,x.createElement(i.ZP,{value:!0},"\u5747\u5206\u6BD4\u4F8B"),x.createElement(i.ZP,{value:!1},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B"))),x.createElement("div",{style:{position:"relative"}},x.createElement(t.default.Item,{name:"test_set",label:"\u8003\u6838\u6570\u636E\u91C7\u96C6\u70B9\u4E0E\u6807\u51C6\u7B54\u6848",rules:[{required:!1,message:"\u8BF7\u6DFB\u52A0\u8003\u6838\u6570\u636E\u91C7\u96C6\u70B9\u4E0E\u6807\u51C6\u7B54\u6848"}]},x.createElement("div",{className:"flex item-center justify-between"},x.createElement("div",{className:C.btns},x.createElement("div",{className:C.addBtn,onClick:()=>{var Re,pt;Ne({type:"shixunsDetail/setActionTabs",payload:{key:"\u6DFB\u52A0\u91C7\u96C6\u70B9"}}),Ke.vrs_question_type=(Re=Fe.detail)==null?void 0:Re.vrs_question_type,ft(oe({},Ke)),Xa(((pt=Fe==null?void 0:Fe.detail)==null?void 0:pt.vrs_subject_id)||[])}},x.createElement("span",null,"\u6DFB\u52A0\u91C7\u96C6\u70B9")),(Pr==null?void 0:Pr.length)>0&&x.createElement("div",{className:C.deleteBtn,onClick:()=>s.default.confirm({title:"\u63D0\u793A",centered:!0,content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E9B\u91C7\u96C6\u70B9\u5417\uFF1F",onOk:()=>Ga(Pr)})},x.createElement("span",null,"\u6279\u91CF\u5220\u9664"))),x.createElement(j.t7,{className:C.searchInput,style:{width:300},placeholder:"\u8BF7\u8F93\u5165\u91C7\u96C6\u70B9\u540D\u79F0\u8FDB\u884C\u641C\u7D22",value:Bt,onChange:Re=>{var pt;return It((pt=decodeURIComponent(Re))==null?void 0:pt.trim())}})),x.createElement(l.default,{style:{padding:"15px 0"},pagination:!1,columns:mo,dataSource:ir==null?void 0:ir.filter(Re=>{var pt,Zt;return!Bt||((pt=Re==null?void 0:Re.vrs_point_name)==null?void 0:pt.toLowerCase().includes(Bt.toLowerCase()))||((Zt=Re==null?void 0:Re.vrs_point_name)==null?void 0:Zt.includes(Bt))}),rowKey:Re=>Re==null?void 0:Re.id,rowSelection:{selectedRowKeys:Pr,onChange:Re=>{_r(Re)}}})),((Lt=Fe.detail)==null?void 0:Lt.vrs_question_type)==0&&x.createElement(t.default.Item,{name:"point_hint",valuePropName:"checked",style:{position:"absolute",top:10,right:0}},x.createElement(c.default,null,x.createElement("span",{style:{fontSize:14}},"\u5BF9\u5B66\u5458\u5F00\u542F\u91C7\u96C6\u70B9\u64CD\u4F5C\u5F15\u5BFC")))),((wt=Fe.detail)==null?void 0:wt.vrs_question_type)==1&&x.createElement("div",{className:"mb100"},x.createElement(t.default.Item,{name:"open_step_settings",valuePropName:"checked"},x.createElement(c.default,{style:{color:"#333333"}},"\u6307\u5B9A\u4E0B\u4E00\u6B65\u4EFB\u52A1",x.createElement("span",{style:{color:"#9096A3",fontSize:14}},"\uFF08\u672A\u5F00\u542F\u65F6\uFF0C\u5B66\u5458\u5B8C\u6210\u5F53\u524D\u4EFB\u52A1\u540E\u5C06\u6309\u9ED8\u8BA4\u6392\u5E8F\u8FDB\u884C\u4E0B\u4E00\u6B65\u4EFB\u52A1\u3002\u5F00\u542F\u4E4B\u540E\uFF0C\u5C06\u6839\u636E\u5F53\u524D\u4EFB\u52A1\u7684\u4E0D\u540C\u5B8C\u6210\u60C5\u51B5\u8FDB\u5165\u6307\u5B9A\u7684\u4E0B\u4E00\u6B65\u4EFB\u52A1\uFF09"))),Ke.open_step_settings&&x.createElement(d.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 20px",marginTop:"1px",marginBottom:50}},bt&&(bt==null?void 0:bt.map(function(Re,pt){var Zt,gn,yn;return x.createElement(E.Z,{span:24,key:pt},x.createElement(d.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:pt==(bt==null?void 0:bt.length)-1?"0px":"10px"}},x.createElement("div",{style:{minWidth:60,marginRight:"15px",textAlign:"right"}},"\u89C4\u5219",pt+1,"\uFF1A"),x.createElement("div",{className:"mr10"},"\u82E5\u91C7\u96C6\u70B9"),x.createElement(I.default,{mode:"multiple",className:C.multiple_select,style:{width:"38%"},value:Re.check_points,placeholder:"\u8BF7\u9009\u62E9\u91C7\u96C6\u70B9",onChange:mn=>{bt[pt].check_points=mn,Kt(bt.slice())}},(Zt=Ct==null?void 0:Ct.filter(mn=>{var fr;return mn.id==((fr=Fe==null?void 0:Fe.detail)==null?void 0:fr.vrs_env_id)})[0])==null?void 0:Zt.vrs_points.map(mn=>x.createElement(ye,{value:mn.name},mn.name))),x.createElement("div",{className:"ml10"},"\u5168\u90E8\u6B63\u786E\uFF0C\u5219\u8FDB\u5165"),x.createElement("div",{className:"ml20"},x.createElement(I.default,{style:{width:"250px",height:40},size:"large",value:Re.challenge_id,placeholder:"\u8BF7\u9009\u62E9\u4EFB\u52A1",onChange:mn=>{bt[pt].challenge_id=mn,Kt(bt.slice())}},(yn=(gn=Fe==null?void 0:Fe.challenges)==null?void 0:gn.challenge_list)==null?void 0:yn.map((mn,fr)=>x.createElement(ye,{value:mn.challenge_id},`\u4EFB\u52A1${fr+1}`)))),x.createElement("div",{style:{display:"flex",width:"50px"}},x.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{Kt(bt.concat({}))}}),pt!=0&&x.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{bt=bt.filter((mn,fr)=>pt!==fr),Kt(bt.slice()),setTimeout(()=>Kt(bt.slice()),10)}}))))}))))),!((Qt=Fe.detail)!=null&&Qt.unity_3d)&&((Jt=Fe.detail)==null?void 0:Jt.identity)<3&&((an=Fe.detail)==null?void 0:an.vrs_type)!=1&&x.createElement(t.default.Item,{name:"unity_3d_routes",label:"\u8DEF\u5F84:",rules:[{required:!0,message:"\u5FC5\u586B\u9879\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"}]},x.createElement(f.default,{bordered:!1,disabled:((bn=Fe.detail)==null?void 0:bn.shixun_status)===2,placeholder:"\u8BF7\u8F93\u5165\u7B2C\u4E09\u65B9\u5E73\u53F0\u7684\u94FE\u63A5\u5730\u5740\u3002\u4F8B\uFF1Ahttps://..."})),((Sn=Fe.detail)==null?void 0:Sn.unity_3d)&&((On=Fe.detail)==null?void 0:On.identity)<3&&((zn=Fe.detail)==null?void 0:zn.vrs_type)!=1&&x.createElement(x.Fragment,null,x.createElement(t.default.Item,{name:"with_code_file",label:"\u662F\u5426\u9700\u8981\u4EE3\u7801\u8BC4\u6D4B:"},x.createElement(i.ZP.Group,null,x.createElement(i.ZP,{value:!0},"\u662F"),x.createElement(i.ZP,{value:!1},"\u5426"))),Ke.with_code_file?x.createElement(t.default.Item,{name:"unity_3d_result",label:"\u8BC4\u6D4B\u7ED3\u679C\u662F\u5426\u7531 Unity3D \u51B3\u5B9A:"},x.createElement(i.ZP.Group,null,x.createElement(i.ZP,{value:!0},"\u662F"),x.createElement(i.ZP,{value:!1},"\u5426"))):null,Ke.with_code_file?x.createElement(t.default.Item,{name:"unity3d_show_location",label:"Unity3D\u5185\u5BB9\u5C55\u793A\u4F4D\u7F6E:"},x.createElement(i.ZP.Group,null,x.createElement(i.ZP,{value:0},"\u5DE6\u4FA7\uFF08\u4EFB\u52A1\u8981\u6C42\u4E0A\u65B9\uFF09"),x.createElement(i.ZP,{value:1},"\u53F3\u4FA7\uFF08\u53EF\u901A\u8FC7\u5B9E\u9A8C\u73AF\u5883\u5207\u6362\uFF09"))):null)),x.createElement("div",{className:C.twoPart},Ke.with_code_file&&((jn=Fe.detail)==null?void 0:jn.vrs_type)!=1&&x.createElement(x.Fragment,null,x.createElement("div",{className:C.title},"\u8BC4\u6D4B\u6587\u4EF6"),x.createElement(t.default.Item,{name:"exec_time",label:x.createElement("div",null,"\u8BC4\u6D4B\u65F6\u957F\u9650\u5236 ",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u7A0B\u5E8F\u7F16\u8BD1\u3001\u6267\u884C\u6240\u5141\u8BB8\u7684\u6700\u5927\u65F6\u957F\uFF0C\u5355\u4F4D\uFF1A\u79D2\uFF09")),rules:[{required:!0,message:"\u5FC5\u586B\u9879\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"}]},x.createElement(f.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u5165\u8BC4\u6D4B\u65F6\u957F",className:C.width300})),x.createElement(t.default.Item,{label:x.createElement("div",null,"\u8BC4\u6D4B\u7ED3\u679C\u5C55\u793A\u65B9\u5F0F ",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u5B66\u5458\u8BC4\u6D4B\u672C\u5173\u4EFB\u52A1\u65F6\uFF0C\u67E5\u770B\u6548\u679C\u9875\u4E0A\u9700\u8981\u5C55\u73B0\u7684\u6587\u4EF6\u7C7B\u578B\uFF09"))},x.createElement(t.default.Item,{name:"show_type",noStyle:!0,rules:[{required:!0,message:"\u5FC5\u586B\u9879\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"}]},x.createElement(I.default,{bordered:!1,size:"large",style:{width:600},getPopupContainer:Re=>Re.parentNode},x.createElement(ye,{value:-1},"\u6D4B\u8BD5\u96C6\u5BF9\u6BD4"),x.createElement(ye,{value:1},"\u56FE\u7247"),x.createElement(ye,{value:2},"apk/exe"),x.createElement(ye,{value:3},"txt"),x.createElement(ye,{value:4},"html"),x.createElement(ye,{value:5},"mp3"),x.createElement(ye,{value:6},"mp4"),x.createElement(ye,{value:7},"LaTeX"),x.createElement(ye,{value:8},"office"),x.createElement(ye,{value:9},"Verilog"))),x.createElement(v.Z,{overlayClassName:C.popover,placement:"bottomLeft",content:x.createElement("p",{className:"font12"},"\u56FE\u7247\uFF1A\u5904\u7406\u6216\u8F93\u51FA\u56FE\u7247\u7C7B\u578B\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u586B\u6B64\u9879",x.createElement("br",null),"\u53EF\u4EE5\u901A\u8FC7\u8BBE\u7F6E\u56FE\u7247\u8DEF\u5F84\u548C\u5B66\u5458\u7B54\u6848\u6587\u4EF6\u8DEF\u5F84\uFF0C\u5C55\u793A\u4EE3\u7801\u5BF9\u5E94\u7684\u56FE\u7247\u6548\u679C",x.createElement("br",null),x.createElement("br",null),"apk/exe\uFF1A\u5199\u53EF\u6267\u884C\u6587\u4EF6\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u586B\u6B64\u9879",x.createElement("br",null),"\u53EF\u4EE5\u901A\u8FC7\u8BBE\u7F6E\u5B66\u5458\u7B54\u6848\u6587\u4EF6\u8DEF\u5F84\uFF0C\u5C55\u793A\u4E8C\u7EF4\u7801\u4EE5\u4F9B\u626B\u7801\u4E0B\u8F7D",x.createElement("br",null),x.createElement("br",null),"txt\uFF1A\u8F93\u51FAtxt\u6587\u6863\u7C7B\u578B\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u586B\u6B64\u9879",x.createElement("br",null),"\u53EF\u4EE5\u901A\u8FC7\u5B66\u5458\u7B54\u6848\u6587\u4EF6\u8DEF\u5F84\u8BBE\u7F6E\uFF0C\u5C55\u793Atxt\u6587\u4EF6\u5185\u5BB9",x.createElement("br",null),x.createElement("br",null),"html\uFF1Aweb\u7C7B\u578B\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u586B\u6B64\u9879",x.createElement("br",null),"\u53EF\u4EE5\u901A\u8FC7Web\u8DEF\u7531\u8BBE\u7F6E\uFF0C\u5C55\u793Ahtml\u6548\u679C\u9884\u89C8\u9875",x.createElement("br",null),x.createElement("br",null),"mp3/mp4\uFF1Amp3/mp4\u6587\u4EF6\u7C7B\u578B\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u586B\u6B64\u9879",x.createElement("br",null),"\u53EF\u4EE5\u901A\u8FC7\u5B66\u5458\u7B54\u6848\u6587\u4EF6\u8DEF\u5F84\u8BBE\u7F6E\uFF0C\u5C55\u793Amp3/mp4\u6587\u4EF6\u5185\u5BB9",x.createElement("br",null),x.createElement("br",null),"LaTeX\uFF1ALaTeX\u5B9E\u9A8C\u62A5\u544A\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u62E9\u6B64\u9879",x.createElement("br",null),"\u5B66\u5458\u53EF\u4EE5\u4F7F\u7528LaTeX\u7CFB\u7EDF\u64B0\u5199\u5B9E\u9A8C\u62A5\u544A\uFF0C\u6700\u7EC8\u4EE5PDF\u683C\u5F0F\u5C55\u793A",x.createElement("br",null),x.createElement("span",{className:"c-red"},"\u6CE8\u610F\uFF1A\u9009\u62E9\u4E86LaTeX\u7684\u5173\u5361\uFF0C\u9700\u8981\u6559\u5E08\u624B\u52A8\u5BF9\u8BE5\u5173\u5361\u8FDB\u884C\u5224\u5206"),x.createElement("br",null),x.createElement("br",null),"Office\uFF1AMicrosoftOffice\u76F8\u5173\u6587\u4EF6\u7684\u4EFB\u52A1\uFF0C\u8BF7\u9009\u586B\u6B64\u9879",x.createElement("br",null),"\u6CE8\u610F\uFF1A\u5B66\u751F\u4E0A\u4F20\u7684office\u6587\u4EF6\u76EE\u5F55\u662F\u5728/data/bigfiles\u76EE\u5F55\u4E0B\uFF0C\u5982\u679C\u8981\u505A\u8BC4\u6D4B\uFF0C\u8BF7\u8BFB\u53D6\u6B64\u76EE\u5F55\u7684\u6587\u4EF6",x.createElement("br",null)),trigger:"click"},x.createElement(e.Z,{className:"ml5 font24 c-light-black"}))),x.createElement(t.default.Item,{name:"path",label:x.createElement("div",null,"\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6 ",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u8BE5\u6587\u4EF6\u5C06\u76F4\u63A5\u663E\u793A\u7ED9\u5B66\u751F\uFF0C\u9700\u8981\u5B66\u751F\u5728\u5176\u4E2D\u586B\u5199\u4EE3\u7801\uFF09")),rules:[{required:!0,message:"\u5FC5\u586B\u9879\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"}]},x.createElement(f.default,{bordered:!1,placeholder:"\u70B9\u51FB\u9009\u62E9\u4EE3\u7801\u6587\u4EF6\uFF0C\u53EF\u540C\u65F6\u9009\u62E9\u591A\u4E2A\u6587\u4EF6",onClick:()=>Nr("path")})),x.createElement(t.default.Item,{name:"exec_path",label:x.createElement("div",null,"\u8BC4\u6D4B\u6267\u884C\u6587\u4EF6 ",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u70B9\u51FB\u8BC4\u6D4B\u6309\u94AE\u65F6\u8C03\u7528\u7684\u6587\u4EF6\uFF0C\u7528\u4E8E\u68C0\u6D4B\u5B66\u5458\u7ED3\u679C\u662F\u5426\u6B63\u786E\uFF0C\u53EF\u4EE5\u4E0E\u201C\u5B66\u5458\u4EFB\u52A1\u6587\u4EF6\u201D\u4E00\u81F4\uFF09")),rules:[{required:!0,message:"\u5FC5\u586B\u9879\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"}]},x.createElement(f.default,{bordered:!1,placeholder:"\u70B9\u51FB\u9009\u62E9\u4EE3\u7801\u6587\u4EF6",onClick:()=>Nr("exec_path")})),Ke.show_type===4&&(Ke.web_route||(Te==null?void 0:Te.has_web_route))&&x.createElement(x.Fragment,null,x.createElement(t.default.Item,{name:"proxy_port",label:x.createElement("div",null,"\u7AEF\u53E3\u53F7 ",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u8BF7\u6CE8\u610F\u5C06\u670D\u52A1\u5668\u7A0B\u5E8F\u7684\u7AEF\u53E3\u53F7\u6620\u5C04\u5230\u4EE5\u4E0B\u7AEF\u53E3\uFF0C\u9ED8\u8BA48080\uFF09")),rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7AEF\u53E3\u53F7"},{validator:(Re,pt)=>/^([0-9]|[1-9]\d|[1-9]\d{2}|[1-9]\d{3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$/.test(pt)||!pt?Promise.resolve():Promise.reject(new Error("\u7AEF\u53E3\u8F93\u5165\u8303\u56F4(0-65535)"))}]},x.createElement(f.default,{bordered:!1,placeholder:"\u8BF7\u8F93\u51650-65535\u7684\u503C"})),x.createElement(t.default.Item,{name:"web_route",label:x.createElement("div",null,"Web\u8DEF\u7531 ",x.createElement("span",{className:"font12 c-light-black"}," \uFF08\u7F51\u7AD9\u7C7B\u578B\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u8BF7\u586B\u5199Web\u8DEF\u7531\u5730\u5740\uFF09"))},x.createElement(f.default,{bordered:!1,placeholder:"\u7F51\u7AD9\u7C7B\u578B\u5B9E\u8BAD\uFF0C\u8BF7\u586B\u5199Web\u8DEF\u7531\u5730\u5740\u3002\u4F8B\uFF1Ajava/mypage"}))),(Ke.show_type===1||Ke.show_type===5||Ke.show_type===6)&&x.createElement(t.default.Item,{name:"original_picture_path",label:x.createElement("div",null,"\u6E90\u6587\u4EF6\u76EE\u5F55 ",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u8BE5\u76EE\u5F55\u7528\u4E8E\u5B58\u653E\u9700\u8981\u5904\u7406\u7684\u56FE\u7247/MP3/MP4\u7B49\u6587\u4EF6\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u5355\u72EC\u7684\u6587\u4EF6\u5939\uFF09"))},x.createElement(f.default,{bordered:!1,placeholder:"\u70B9\u51FB\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\uFF0C\u4F8B\uFF1Asrc/step1/sourcefiles",onClick:()=>Nr("original_picture_path")})),Ke.show_type!==-1&&x.createElement(t.default.Item,{name:"picture_path",label:x.createElement("div",null,"\u5B66\u5458\u7B54\u6848\u6587\u4EF6\u76EE\u5F55 ",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u8BE5\u76EE\u5F55\u7528\u4E8E\u5B58\u653E\u5B66\u5458\u4EE3\u7801\u6267\u884C\u540E\u751F\u6210\u7684\u6587\u4EF6\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u5355\u72EC\u7684\u6587\u4EF6\u5939\uFF09"))},x.createElement(f.default,{bordered:!1,placeholder:"\u70B9\u51FB\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\uFF0C\u4F8B\uFF1Asrc/step1/outputfiles",onClick:()=>Nr("picture_path")})),(Ke.show_type===1||Ke.show_type===5||Ke.show_type===6)&&x.createElement(t.default.Item,{name:"expect_picture_path",label:x.createElement("div",null,"\u6807\u51C6\u7B54\u6848\u6587\u4EF6\u76EE\u5F55 ",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u8BE5\u76EE\u5F55\u7528\u4E8E\u5B58\u653E\u6700\u7EC8\u4F5C\u4E3A\u53C2\u8003\u7684\u6587\u4EF6\uFF0C\u5728\u8BC4\u6D4B\u901A\u8FC7\u540E\u4F1A\u5C55\u793A\u7ED9\u5B66\u5458\u67E5\u770B\uFF0C\u5EFA\u8BAE\u4F7F\u7528\u5355\u72EC\u7684\u6587\u4EF6\u5939\uFF09"))},x.createElement(f.default,{bordered:!1,placeholder:"\u70B9\u51FB\u9009\u62E9\u6587\u4EF6\u76EE\u5F55\uFF0C\u4F8B\uFF1Asrc/step1/expectedfiles",onClick:()=>Nr("expect_picture_path")})))),x.createElement("div",{className:C.threePart},Ke.with_code_file&&((qt=Fe.detail)==null?void 0:qt.vrs_type)!=1&&x.createElement(x.Fragment,null,x.createElement("div",{className:C.title},"\u8BC4\u6D4B\u89C4\u5219"),x.createElement("div",{className:C.flexRowCenter},x.createElement(t.default.Item,{className:C.formCustom,name:"test_set_rules",label:"\u901A\u5173\u5224\u5B9A:"},x.createElement(i.ZP.Group,{className:"ml25"},x.createElement(i.ZP,{className:C.radioStyle,value:0},"\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u5BF9\u6BD4"),x.createElement(i.ZP,{className:C.radioStyle,value:1},"\u5B9E\u9645\u8F93\u51FA\u6EE1\u8DB3\u89C4\u5219"))),Ke.test_set_rules===1&&x.createElement(x.Fragment,null,x.createElement(t.default.Item,{name:"test_set_rules_expression",style:{marginTop:50,position:"relative",top:40},rules:[{required:!0,message:"\u5FC5\u586B\u9879\uFF1A\u4E0D\u80FD\u4E3A\u7A7A"}]},x.createElement(f.default,{style:{width:400,marginLeft:-40},bordered:!1,placeholder:"\u9002\u7528\u4E8E\u8F93\u51FA\u7ED3\u679C\u52A8\u6001\u53D8\u5316\u7684\u7A0B\u5E8F"})),x.createElement(v.Z,{overlayClassName:C.popover,placement:"bottomLeft",content:x.createElement("p",{className:"font12"},"\u4F7F\u7528\u793A\u4F8B1\uFF1A\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u7684\u76F8\u5BF9\u8BEF\u5DEE\u57280.01\u4EE5\u5185\uFF0C\u53EF\u4F7F\u7528\u4EE5\u4E0B\u8868\u8FBE\u5F0F\uFF1A",x.createElement("br",null),"(actual-expect)/expect <= 0.01",x.createElement("br",null),"\u4F7F\u7528\u793A\u4F8B2\uFF1A\u5B9E\u9645\u8F93\u51FA\u7ED3\u679C\u5305\u542B\u67D0\u6BB5\u5B57\u7B26\u4E32hello\uFF0C\u53EF\u4F7F\u7528\u4EE5\u4E0B\u8868\u8FBE\u5F0F\uFF1A",x.createElement("br",null),'string.contains(actual, "hello")',x.createElement("br",null),x.createElement("br",null),"\u82E5\u9700\u8981\u5BF9\u8F93\u51FA\u7ED3\u679C\u4E2D\u6BCF\u4E2A\u5143\u7D20\u8FDB\u884C\u64CD\u4F5C\uFF0C\u53EF\u4F7F\u7528list\u96C6\u5408",x.createElement("br",null),"\u793A\u4F8B\u53C2\u8003\uFF1A\u5047\u8BBE\u7A0B\u5E8F\u5B9E\u9645\u8F93\u51FA\u4E3A\uFF1A100 1000 10000\uFF1B\u9884\u671F\u8F93\u51FA\u4E3A\uFF1A100.01 1000.02 10000.05",x.createElement("br",null),"\u8BC4\u6D4B\u8981\u6C42\uFF1A\u5B9E\u9645\u8F93\u51FA\u5217\u8868\u4E2D\u5143\u7D20\u4E0E\u9884\u671F\u8F93\u51FA\u5217\u8868\u4E2D\u5BF9\u5E94\u5143\u7D20\u76F8\u5BF9\u8BEF\u5DEE\u57280.01 \u4E4B\u5185\uFF0C\u53EF\u4F7F\u4EE5\u4E0B\u8868\u8FBE\u5F0F\uFF1A",x.createElement("br",null),"list.forEach( 'math.abs( (actualElem-expectElem)/expectElem ) <= 0.01 ' )",x.createElement("br",null),x.createElement("br",null),x.createElement("a",{href:"https://www.educoder.net/forums/4346",target:"_blank",style:{background:"#0152d9",color:"#fff"}},"\u70B9\u51FB\u67E5\u770B\u8BE6\u60C5\u8BF4\u660E"),x.createElement("br",null)),trigger:"click"},x.createElement(e.Z,{style:{padding:"114px 0 0 9px"},className:"font24 c-light-black"})))),x.createElement(t.default.Item,{className:C.formCustom,name:"ignore_space",label:"\u7A7A\u683C\u5904\u7406:"},x.createElement(i.ZP.Group,{className:"ml25"},x.createElement(i.ZP,{className:C.radioStyle,value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),x.createElement(i.ZP,{className:C.radioStyle,value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),x.createElement(i.ZP,{className:C.radioStyle,value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C",x.createElement("span",{className:"font12 c-light-black"},"(\u8BC4\u6D4B\u8FC7\u7A0B\u4E2D\u81EA\u52A8\u53BB\u6389\u6240\u6709\u7A7A\u683C\u8FDB\u884C\u5BF9\u6BD4)")))))),x.createElement("div",{className:C.fourPart},Ke.with_code_file&&((Nn=Fe.detail)==null?void 0:Nn.vrs_type)!=1&&x.createElement(x.Fragment,null,x.createElement("div",{className:C.title},"\u6D4B\u8BD5\u96C6"),x.createElement(t.default.Item,{className:C.testJi,name:"test_set_score",label:"\u5F97\u5206\u89C4\u8303:"},x.createElement(i.ZP.Group,{className:"ml25"},x.createElement(i.ZP,{value:!1,className:C.radioStyle},"\u901A\u8FC7\u5168\u90E8\u6D4B\u8BD5\u96C6",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u6240\u6709\u6D4B\u8BD5\u96C6\u90FD\u6B63\u786E\u65F6\uFF0C\u624D\u80FD\u83B7\u5F97\u91D1\u5E01\uFF09")),x.createElement(i.ZP,{value:!0,className:C.radioStyle},"\u901A\u8FC7\u90E8\u5206\u6D4B\u8BD5\u96C6",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u90E8\u5206\u6D4B\u8BD5\u96C6\u6B63\u786E\u65F6\uFF0C\u6309\u914D\u7F6E\u7684\u6BD4\u4F8B\u83B7\u5F97\u91D1\u5E01\uFF09")))),Ke.test_set_score&&x.createElement("div",{className:C.averageWarp},x.createElement(t.default.Item,{className:C.averageCustom,name:"test_set_average",label:""},x.createElement(i.ZP.Group,null,x.createElement(i.ZP,{style:{margin:"0 40px 0 20px"},value:!0},"\u5747\u5206\u6BD4\u4F8B"),x.createElement(i.ZP,{value:!1},"\u81EA\u5B9A\u4E49\u6BD4\u4F8B")))),Ke.test_set_score&&x.createElement("div",null,x.createElement("div",{style:{display:"flex",height:"30px",marginBottom:"10px",paddingLeft:"93px"}},x.createElement(c.default,{checked:$t,style:{display:"flex",alignItems:"center"},className:C.checkboxs,onChange:Re=>{vn(Re.target.checked),Be.setFieldsValue({code_compile_score:0}),Ke.test_set_average&&(Ke.is_file?dr(dt):yr(Me))}},"\u542F\u7528\u7F16\u8BD1\u901A\u8FC7\u5373\u53EF\u5F97\u5206"),$t&&x.createElement("span",{style:{display:"flex"}},x.createElement(t.default.Item,{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7F16\u8BD1\u5F97\u5206"}],name:"code_compile_score"},x.createElement(o.Z,{onChange:()=>{Ke.test_set_average&&(Ke.is_file?dr(dt):yr(Me))},parser:Re=>isNaN(parseInt(Re))?"":parseInt(Re),min:0,max:100,style:{width:"85px",margin:"5px 0px",fontSize:"14px"}}))," ",x.createElement("span",{style:{display:"flex",alignItems:"center",marginLeft:"5px",marginTop:10}},"%",x.createElement("div",{style:{color:"#999",fontSize:"12px"}},"\uFF08\u8BF7\u6CE8\u610F\u8BE5\u5B9E\u8BAD\u9898\u662F\u5426\u6709\u7F16\u8BD1\u8FC7\u7A0B\uFF0C\u82E5\u6CA1\u6709\u5219\u65E0\u6CD5\u83B7\u5F97\u7F16\u8BD1\u5F97\u5206\uFF09"))))),x.createElement(t.default.Item,{className:C.testJi,name:"is_file",label:"\u7528\u4F8B\u7C7B\u578B:"},x.createElement(i.ZP.Group,{className:"ml25"},x.createElement(m.Z,{direction:"horizontal"},x.createElement(i.ZP,{value:!1,className:C.radioStyle},"\u6587\u672C"),x.createElement(i.ZP,{value:!0,className:C.radioStyle},"\u6587\u4EF6")))),x.createElement("div",{style:{marginTop:"20px"},className:C.upBtn},!Ke.is_file&&x.createElement(r.ZP,{ghost:!0,disabled:ot.every(Re=>!Re),type:"primary",className:"mb20",style:{right:"345px"},onClick:()=>Rt(!0)},"\u6279\u91CF\u8BBE\u7F6E"),x.createElement(r.ZP,{ghost:!0,type:"primary",className:"mb20",style:{right:"174px"},onClick:()=>Aa()},"\u4E00\u952E\u5220\u9664\u6D4B\u8BD5\u7528\u4F8B"),x.createElement(r.ZP,{ghost:!0,type:"primary",className:"mb20",style:{right:"4px"},onClick:()=>on(!0)},"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"),Ke.is_file&&x.createElement(re.Y2,{showEvaluatingSetting:!0,onEvaluatingChange:Ka,checkAll1:Rn,checkAll2:sn,checkAll3:Pt,checkAll4:_e,checkAll5:st,onSelectAll:Za,disabled:Ke==null?void 0:Ke.test_set_average,inputChange:Wr,showScore:Ke==null?void 0:Ke.test_set_score,data:dt,onRemove:sa})),!Ke.is_file&&x.createElement(c.default,{checked:ot.every(Re=>!!Re),onChange:Re=>{const pt=ot.map(()=>Re.target.checked);Oe(pt),Ue(Re.target.checked)}},"\u5168\u9009"),!Ke.is_file&&Me.map((Re,pt)=>x.createElement("div",{className:C.groupWrap,key:pt},x.createElement("div",{className:"font16"},x.createElement(c.default,{checked:ot[pt],onChange:Zt=>{console.log(ot);const gn=[...ot];gn[pt]=Zt.target.checked;const yn=gn.every(mn=>mn);Oe(gn),Ue(yn)}}),x.createElement("span",{className:"mr10 ml5"},"\u7EC4",pt+1," : "),Ke.test_set_score&&x.createElement("span",{style:{marginRight:100}},x.createElement(o.Z,{style:{width:85},value:Re.score,precision:0,min:0,max:100,onBlur:Zt=>{if(Number(Zt)<0||Number(Zt)>100){u.ZP.info("\u6D4B\u8BD5\u7528\u4F8B\u7684\u6743\u91CD\u6BD4\u4F8B\u503C\u9650\u5236\u4E3A 0-100");const gn=Me.map((mn,fr)=>fr===pt?_(oe({},mn),{score:100}):mn),yn={test_set_average:!1};ft(oe(oe({},Ke),yn)),Be.setFieldsValue(yn),We(gn)}},onChange:Zt=>{const gn=Me.map((mn,fr)=>fr===pt?_(oe({},mn),{score:Zt?Number(Zt):0}):mn),yn={test_set_average:!1};ft(oe(oe({},Ke),yn)),Be.setFieldsValue(yn),We(gn)}}),x.createElement("span",{className:"ml10 mr10"},"%")),Ke.test_set_score&&x.createElement(c.default,{className:"font14 ml5",checked:Re.is_target,onChange:Zt=>{const gn=Me.map((yn,mn)=>mn===pt?_(oe({},yn),{is_target:Zt.target.checked}):yn);We(gn)}},"\u6307\u6807\u6D4B\u8BD5\u96C6",x.createElement(p.Z,{title:"\u5982\u9700\u8981\u8F93\u51FA\u6307\u6807\uFF0C\u53EF\u4EE5\u52FE\u9009\u6307\u6807\u6D4B\u6D4B\u8BD5\u96C6\uFF0C\u5E76\u5BF9\u6307\u6807\u8FDB\u884C\u547D\u540D\u3002\u6559\u5E08\u53EF\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u5B9E\u8BAD\u62A5\u544A\u9875\u9762\u67E5\u770B\u5B66\u751F\u7684\u6307\u6807\u662F\u5426\u5408\u683C\u3002\u6307\u6807\u5F97\u5206\u8BA1\u5165\u6700\u7EC8\u6210\u7EE9"},x.createElement(e.Z,{className:"ml5 font12 c-light-black"}))," "),Re.is_target&&Ke.test_set_score&&x.createElement(f.default,{value:Re.target_name,maxLength:30,style:{width:"50%"},onChange:Zt=>{const gn=Me.map((yn,mn)=>mn===pt?_(oe({},yn),{target_name:Zt.target.value}):yn);We(gn)}}),x.createElement("span",{className:"tr flex1",style:{float:"right"}},pt!==0&&x.createElement(p.Z,{placement:"bottom",title:"\u5220\u9664"},x.createElement("span",{className:"font16 c-red current",onClick:()=>{const Zt=Me.filter((yn,mn)=>mn!==pt),gn=ot.filter((yn,mn)=>mn!==pt);Oe(gn),yr(Zt)}},"\u5220\xA0\u9664")))),x.createElement(Ce,{bordered:!1,className:"mt10",rows:5,placeholder:"\u8F93\u5165",value:Re.input,onChange:Zt=>{const gn=Me.map((yn,mn)=>mn===pt?_(oe({},yn),{input:Zt.target.value}):yn);We(gn)}}),x.createElement(Ce,{bordered:!1,className:"mt10",rows:5,placeholder:"\u9884\u671F\u8F93\u51FA",value:Re.output,onChange:Zt=>{const gn=Me.map((yn,mn)=>mn===pt?_(oe({},yn),{output:Zt.target.value}):yn);We(gn)}}),x.createElement("div",{className:"mt10"},x.createElement("span",{className:"font14 mr15"},"\u53EF\u89C1\u6027: ",x.createElement(p.Z,{title:x.createElement("div",null,x.createElement("span",null,'\u5168\u90E8\u9690\u85CF\uFF1A\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'),x.createElement("br",null),x.createElement("span",null,"\u9690\u85CF\u8F93\u5165\uFF1A\u52FE\u9009\u540E\u6D4B\u8BD5\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"),x.createElement("br",null),x.createElement("span",null,"\u9690\u85CF\u9884\u671F\u8F93\u51FA\uFF1A\u52FE\u9009\u540E\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"),x.createElement("br",null),x.createElement("span",null,"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA\uFF1A\u52FE\u9009\u540E\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"),x.createElement("br",null))},x.createElement(e.Z,{className:"ml5 font12 c-light-black"}))),x.createElement(c.default,{checked:Re.hidden===1,onChange:Zt=>{const gn=Me.map((yn,mn)=>mn===pt?_(oe({},yn),{hidden:Zt.target.checked?1:0,input_visible:Zt.target.checked,is_invisible:Zt.target.checked,actual_output_visible:Zt.target.checked}):yn);We(gn)}},x.createElement("span",{className:"font14"},"\u5168\u90E8\u9690\u85CF")),x.createElement(c.default,{checked:Re.hidden===1?!0:Re.input_visible,onChange:Zt=>{const gn=Me.map((yn,mn)=>{if(mn===pt){const fr=Zt.target.checked&&Re.is_invisible&&Re.actual_output_visible?1:0;return _(oe({},yn),{input_visible:Zt.target.checked,hidden:fr})}return yn});We(gn)}},x.createElement("span",{className:"font14"},"\u9690\u85CF\u8F93\u5165")),x.createElement(c.default,{checked:Re.hidden===1?!0:Re.is_invisible,onChange:Zt=>{const gn=Me.map((yn,mn)=>{if(mn===pt){const fr=Zt.target.checked&&Re.actual_output_visible&&Re.input_visible?1:0;return _(oe({},yn),{is_invisible:Zt.target.checked,hidden:fr})}return yn});We(gn)}},x.createElement("span",{className:"font14"},"\u9690\u85CF\u9884\u671F\u8F93\u51FA")),x.createElement(c.default,{checked:Re.hidden===1?!0:Re.actual_output_visible,onChange:Zt=>{const gn=Me.map((yn,mn)=>{if(mn===pt){const fr=Zt.target.checked&&Re.is_invisible&&Re.input_visible?1:0;return _(oe({},yn),{actual_output_visible:Zt.target.checked,hidden:fr})}return yn});We(gn)}},x.createElement("span",{className:"font14"},"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA"))),x.createElement("div",null,x.createElement("span",{className:"font14 mr20"},"\u7279\u6B8A\u5224\u5B9A:"),x.createElement(c.default,{checked:Re.last_match_rule,onChange:Zt=>{const gn=Me.map((yn,mn)=>mn===pt?_(oe({},yn),{last_match_rule:Zt.target.checked}):yn);We(gn)}},x.createElement("span",{className:"font14"},"\u672B\u5C3E\u5339\u914D",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173\uFF09")))))),!Ke.is_file&&x.createElement("div",null,x.createElement(r.ZP,{type:"primary",ghost:!0,className:"mt10",onClick:Vr},"\u65B0\u589E\u6D4B\u8BD5\u96C6"),x.createElement("span",{className:" ml20 mt10 font12 c-light-black"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u516C\u5F00\u6D4B\u8BD5\u96C6\u548C\u9690\u85CF\u6D4B\u8BD5\u96C6\u7ED3\u5408\u4F7F\u7528\uFF0C\u53EF\u4EE5\u964D\u4F4E\u4F5C\u5F0A\u7684\u673A\u7387\uFF1B\u9690\u85CF\u6D4B\u8BD5\u96C6\uFF0C\u5728\u201C\u63D0\u4EA4\u8BC4\u6D4B\u201D\u65F6\u4E5F\u5C06\u88AB\u7CFB\u7EDF\u81EA\u52A8\u68C0\u6D4B"))))),x.createElement(H,{fileType:Je,path:Ke==null?void 0:Ke[Je],onFinish:Re=>Hr(Re)})),x.createElement(g.t,{key:2,onOk:()=>Be.submit(),className:"customFixedButton",onCancel:so}),x.createElement(ee.Z,{loading:et}),x.createElement(re.ZP,{rootIdentifier:(De=Fe==null?void 0:Fe.detail)==null?void 0:De.root_identifier,visible:en,onClose:()=>on(!1),onOK:io,multiple:!0,defaultMultipleValue:Ke==null?void 0:Ke.is_file}),x.createElement(s.default,{open:Vt,onOk:()=>{const Re=Me.map((pt,Zt)=>ot[Zt]?(console.log(oe({},pt)),console.log(oe({},nt)),console.log(oe(oe({},pt),nt)),oe(oe({},pt),nt)):pt);We(Re),tt({hidden:0,input_visible:!1,is_invisible:!1,actual_output_visible:!1,last_match_rule:!1}),Rt(!1)},centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:()=>{tt({hidden:0,input_visible:!1,is_invisible:!1,actual_output_visible:!1,last_match_rule:!1}),Rt(!1)},width:586,title:"\u6279\u91CF\u8BBE\u7F6E"},x.createElement("div",null,x.createElement("span",{className:"font14 mr15"},"\u53EF\u89C1\u6027: ",x.createElement(p.Z,{title:x.createElement("div",null,x.createElement("span",null,'\u5168\u90E8\u9690\u85CF\uFF1A\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'),x.createElement("br",null),x.createElement("span",null,"\u9690\u85CF\u8F93\u5165\uFF1A\u52FE\u9009\u540E\u6D4B\u8BD5\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"),x.createElement("br",null),x.createElement("span",null,"\u9690\u85CF\u9884\u671F\u8F93\u51FA\uFF1A\u52FE\u9009\u540E\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"),x.createElement("br",null),x.createElement("span",null,"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA\uFF1A\u52FE\u9009\u540E\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"),x.createElement("br",null))},x.createElement(e.Z,{className:"ml5 font12 c-light-black"}))),x.createElement(c.default,{checked:nt.hidden===1,onChange:Re=>{tt(_(oe({},nt),{hidden:Re.target.checked?1:0,input_visible:Re.target.checked,is_invisible:Re.target.checked,actual_output_visible:Re.target.checked}))}},x.createElement("span",{className:"font14 mr10"},"\u5168\u90E8\u9690\u85CF")),x.createElement(c.default,{checked:nt.input_visible,onChange:Re=>{const pt=Re.target.checked&&nt.is_invisible&&nt.actual_output_visible?1:0;tt(_(oe({},nt),{hidden:pt,input_visible:Re.target.checked}))}},x.createElement("span",{className:"font14 mr10"},"\u9690\u85CF\u8F93\u5165")),x.createElement(c.default,{checked:nt.is_invisible,onChange:Re=>{const pt=Re.target.checked&&nt.input_visible&&nt.actual_output_visible?1:0;tt(_(oe({},nt),{hidden:pt,is_invisible:Re.target.checked}))}},x.createElement("span",{className:"font14 mr10"},"\u9690\u85CF\u9884\u671F\u8F93\u51FA")),x.createElement(c.default,{checked:nt.actual_output_visible,onChange:Re=>{const pt=Re.target.checked&&nt.input_visible&&nt.is_invisible?1:0;tt(_(oe({},nt),{hidden:pt,actual_output_visible:Re.target.checked}))}},x.createElement("span",{className:"font14"},"\u9690\u85CF\u5B9E\u9645\u8F93\u51FA")),x.createElement("div",{className:"mt10"},x.createElement("span",{className:"font14 mr20"},"\u7279\u6B8A\u5224\u5B9A:"),x.createElement(c.default,{checked:nt.last_match_rule,onChange:Re=>{tt(_(oe({},nt),{last_match_rule:Re.target.checked}))}},x.createElement("span",{className:"font14"},"\u672B\u5C3E\u5339\u914D",x.createElement("span",{className:"font12 c-light-black"},"\uFF08\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173\uFF09")))))),x.createElement(s.default,{zIndex:1001,width:600,centered:!0,title:Fe.actionTabs.key,open:["\u7F16\u8F91\u8BBE\u7F6E\u9879","\u6DFB\u52A0\u8BBE\u7F6E\u9879"].includes(Fe.actionTabs.key),onCancel:()=>{Ne({type:"shixunsDetail/setActionTabs",payload:{}})},onOk:()=>Qe.submit(),afterClose:()=>{Qe.resetFields(),Dn(null)}},x.createElement(t.default,{form:Qe,className:"mt10",labelCol:{span:5},wrapperCol:{span:20},onFinish:Re=>{if(Fe.actionTabs.key=="\u7F16\u8F91\u8BBE\u7F6E\u9879"){let pt=In.findIndex(Zt=>Zt.id==Fe.actionTabs.params.id);In[pt]=oe(oe({},In[pt]),Re),xn([...In])}else xn([...In,_(oe({},Re),{id:new Date().getTime()})]);it({type:"shixunsDetail/setActionTabs",payload:{}})},colon:!1,size:"large",labelAlign:"right"},x.createElement(t.default.Item,{label:"\u76EE\u6807",name:"target",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u76EE\u6807\u540D\u79F0"}]},x.createElement(f.default,{placeholder:"\u8BF7\u8F93\u5165\u76EE\u6807\u540D\u79F0",maxLength:20})),x.createElement(t.default.Item,{label:"\u8BBE\u7F6E\u9879\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BBE\u7F6E\u9879\u540D\u79F0"}]},x.createElement(f.default,{placeholder:"\u8BF7\u8F93\u5165\u8BBE\u7F6E\u9879\u540D\u79F0\uFF0C\u6700\u5927\u652F\u630120\u4E2A\u5B57\u7B26",maxLength:20})),x.createElement(t.default.Item,{label:"\u6001\u52BF\u503C",name:"value",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6001\u52BF\u503C"}]},x.createElement(f.default,{placeholder:"\u8BF7\u8F93\u5165\u6001\u52BF\u503C\uFF0C\u6700\u5927\u652F\u630120\u4E2A\u5B57\u7B26",maxLength:20})))),x.createElement(s.default,{zIndex:1001,width:730,centered:!0,title:Fe.actionTabs.key,open:["\u7F16\u8F91\u91C7\u96C6\u70B9","\u6DFB\u52A0\u91C7\u96C6\u70B9"].includes(Fe.actionTabs.key),onCancel:()=>{Ne({type:"shixunsDetail/setActionTabs",payload:{}})},onOk:()=>Ge.submit(),afterClose:()=>{Ge.resetFields(),Dn(null)}},x.createElement(t.default,{form:Ge,className:"mt10",labelCol:{flex:"112px"},onFinish:Re=>{if(Fe.actionTabs.key=="\u7F16\u8F91\u91C7\u96C6\u70B9"){let pt=ir.findIndex(Zt=>Zt.id==Fe.actionTabs.params.id);ir[pt]=oe(oe({},ir[pt]),Re),Rr([...ir])}else{let pt=Re.vrs_point_name.map(gn=>{const yn=Gt.find(mn=>mn.name===gn);return _(oe({},Re),{vrs_point_name:gn,id:gn,vrs_point_answer_type:yn==null?void 0:yn.vrs_point_answer_type,vrs_point_answer_value:yn==null?void 0:yn.vrs_point_answer_value})}),Zt=pt.map(gn=>_(oe({},gn),{score:0}));console.log(Re,pt,Gt,88),Ke.test_set_average?Qn([...ir,...pt]):Rr([...ir,Zt])}it({type:"shixunsDetail/setActionTabs",payload:{}})},onValuesChange:(Re,pt)=>{Re.vrs_point_answer_type&&Ge.setFieldsValue({vrs_point_answer_value:"",step_grading_rules:[],step_grading_type:0}),Ot(oe({},pt))},initialValues:{vrs_env_id:(fe=Fe==null?void 0:Fe.detail)==null?void 0:fe.vrs_env_id,vrs_subject_id:(be=Fe==null?void 0:Fe.detail)==null?void 0:be.vrs_subject_id},colon:!1,size:"large",labelAlign:"right"},x.createElement(t.default.Item,{name:"vrs_env_id",label:"\u5173\u8054\u4EFF\u771F\u73AF\u5883",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4EFF\u771F\u73AF\u5883"}]},x.createElement(I.default,{placeholder:"\u8BF7\u9009\u62E9\u4EFF\u771F\u73AF\u5883",size:"large",style:{width:"100%"},getPopupContainer:Re=>Re.parentNode},Ct==null?void 0:Ct.map(Re=>x.createElement(ye,{value:Re.id},`${Re.name}\uFF08${Re.url}\uFF09`)))),x.createElement(t.default.Item,{name:"vrs_subject_id",label:"\u5173\u8054\u79D1\u76EE",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5173\u8054\u79D1\u76EE"}]},x.createElement(I.default,{mode:Ke.vrs_question_type===1?"multiple":null,placeholder:"\u8BF7\u9009\u62E9\u5173\u8054\u79D1\u76EE",size:"large",style:{width:"100%"},getPopupContainer:Re=>Re.parentNode,onChange:(Re,pt)=>ue(void 0,null,function*(){return Xa(Re)})},(ge=Ct==null?void 0:Ct.filter(Re=>{var pt;return Re.id==((pt=Fe==null?void 0:Fe.detail)==null?void 0:pt.vrs_env_id)})[0])==null?void 0:ge.vrs_subjects.map(Re=>x.createElement(ye,{value:Re.id},Re.name)))),x.createElement(t.default.Item,{label:"\u91C7\u96C6\u70B9",name:"vrs_point_name",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u91C7\u96C6\u70B9"}]},x.createElement(I.default,{placeholder:"\u8BF7\u9009\u62E9\u91C7\u96C6\u70B9",mode:Fe.actionTabs.key=="\u7F16\u8F91\u91C7\u96C6\u70B9"?void 0:"multiple",size:"large",maxTagCount:"responsive",style:{width:"100%"},className:C.multiSelect},Gt.map(Re=>{var pt,Zt;return x.createElement(ye,{disabled:(Zt=(pt=ir==null?void 0:ir.map(gn=>gn.vrs_point_name))==null?void 0:pt.filter(gn=>{var yn,mn;return gn!==((mn=(yn=Fe.actionTabs)==null?void 0:yn.params)==null?void 0:mn.vrs_point_name)}))==null?void 0:Zt.includes(Re.name),value:Re.name},Re.name)}))),Fe.actionTabs.key=="\u7F16\u8F91\u91C7\u96C6\u70B9"&&x.createElement(t.default.Item,{label:"\u7B54\u6848\u503C\u7C7B\u578B",name:"vrs_point_answer_type",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7B54\u6848\u503C\u7C7B\u578B"}]},x.createElement(I.default,{placeholder:"\u8BF7\u9009\u62E9\u7B54\u6848\u503C\u7C7B\u578B"},x.createElement(I.default.Option,{value:0},"\u56FA\u5B9A\u503C"),x.createElement(I.default.Option,{value:1},"\u533A\u95F4\u503C"),x.createElement(I.default.Option,{value:2},"\u72B6\u6001\u503C"))),Fe.actionTabs.key=="\u7F16\u8F91\u91C7\u96C6\u70B9"&&x.createElement(t.default.Item,{shouldUpdate:(Re,pt)=>Re.vrs_point_answer_type!==pt.vrs_point_answer_type,noStyle:!0},({getFieldValue:Re})=>{const pt=Re("vrs_point_answer_type");return x.createElement(t.default.Item,{label:"\u7B54\u6848",name:"vrs_point_answer_value",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7B54\u6848"},{validator:(Zt,gn)=>{if(pt===1&&gn){if(!/^\d+-\d+$/.test(gn))return Promise.reject(new Error('\u533A\u95F4\u503C\u683C\u5F0F\u5E94\u4E3A"\u6570\u5B57-\u6570\u5B57"\uFF0C\u5982\uFF1A1-5'));const[mn,fr]=gn.split("-").map(Number);if(mn>=fr)return Promise.reject(new Error("\u533A\u95F4\u503C\u5DE6\u8FB9\u6570\u5B57\u5FC5\u987B\u5C0F\u4E8E\u53F3\u8FB9\u6570\u5B57"))}return Promise.resolve()}}]},x.createElement(f.default,{placeholder:pt===1?"\u8BF7\u8F93\u5165\u533A\u95F4\u503C\uFF0C\u683C\u5F0F\u5982\uFF1A1-5":"\u8BF7\u8F93\u5165\u7B54\u6848\uFF0C\u6700\u5927\u652F\u630120\u4E2A\u5B57\u7B26",maxLength:20}))}),Ke.point_hint&&x.createElement(x.Fragment,null,x.createElement(t.default.Item,{name:"vrs_position",label:"\u5F15\u5BFC\u987A\u5E8F"},x.createElement(o.Z,{placeholder:"\u8BF7\u8F93\u5165\u5F15\u5BFC\u987A\u5E8F",min:0,precision:0,controls:!1,style:{width:"100%"}})),x.createElement(t.default.Item,{name:"vrs_content",label:"\u5F15\u5BFC\u5185\u5BB9"},x.createElement(f.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165\u5F15\u5BFC\u5185\u5BB9",style:{height:100}}))),Fe.actionTabs.key=="\u7F16\u8F91\u91C7\u96C6\u70B9"&&x.createElement(U,{form:Ge}))),x.createElement(s.default,{zIndex:1001,width:800,centered:!0,title:"\u4E0A\u4F20\u91C7\u96C6\u70B9",open:Fe.actionTabs.key=="\u4E0A\u4F20\u91C7\u96C6\u70B9",onCancel:()=>{Ne({type:"shixunsDetail/setActionTabs",payload:{}})},onOk:()=>{Be.submit()}},x.createElement(t.default,{form:Be,className:"mt10",layout:"vertical",onFinish:Re=>{if((va==null?void 0:va.length)<=0){u.ZP.info("\u8BF7\u4E0A\u4F20\u8BD5\u9898\u6587\u4EF6");return}}},x.createElement(t.default.Item,{name:"vrs_env_id",label:"\u5173\u8054\u4EFF\u771F\u73AF\u5883",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4EFF\u771F\u73AF\u5883"}]},x.createElement(I.default,{placeholder:"\u8BF7\u9009\u62E9\u4EFF\u771F\u73AF\u5883",size:"large",style:{width:"100%"},disabled:!0,getPopupContainer:Re=>Re.parentNode},Ct==null?void 0:Ct.map(Re=>x.createElement(ye,{value:Re.id},`${Re.name}\uFF08${Re.url}\uFF09`)))),x.createElement(t.default.Item,{name:"vrs_subject_id",label:"\u5173\u8054\u79D1\u76EE",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5173\u8054\u79D1\u76EE"}]},x.createElement(I.default,{placeholder:"\u8BF7\u9009\u62E9\u5173\u8054\u79D1\u76EE",size:"large",style:{width:"100%"},disabled:!0,getPopupContainer:Re=>Re.parentNode},(he=Ct==null?void 0:Ct.filter(Re=>{var pt;return Re.id==((pt=Fe==null?void 0:Fe.detail)==null?void 0:pt.vrs_env_id)})[0])==null?void 0:he.vrs_subjects.map(Re=>x.createElement(ye,{value:Re.id},Re.name)))),x.createElement("div",{className:"mb30"},x.createElement("span",{className:C.uploadTips},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),x.createElement("a",{className:`${C.downloadBtn} ml30`,href:F.Z.API_SERVER+"/api/item_banks/down_template",download:!0},x.createElement("i",{className:"iconfont icon-xiazai4 mr5 font14"}),"\u4E0B\u8F7D\u6A21\u7248")),x.createElement("div",{className:"flex item-center"},x.createElement(n.default,{onRemove:()=>{Jr([])},beforeUpload:Re=>{if(console.log(Re),(Re==null?void 0:Re.size)>1024*1024*50)return u.ZP.info("\u6587\u4EF6\u8D85\u8FC750M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;let pt=[];return pt.push(Re),Jr([...pt]),!1},fileList:va,accept:".xls,.xlsx",showUploadList:!1},x.createElement("div",{className:C.uploadBtn},x.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}}),"\u7ACB\u5373\u4E0A\u4F20")),va.map((Re,pt)=>x.createElement("div",{key:Re.uid,className:C.fileItem},x.createElement("span",{className:"file-name"},Re.name),x.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:14,cursor:"pointer"},onClick:()=>Jr(va.filter(Zt=>Zt.uid!==Re.uid))})))))))};var rt=(0,pe.connect)(({shixunsDetail:Fe,newCourse:it,globalSetting:ut,practiceSetting:ht})=>({shixunsDetail:Fe,newCourse:it,globalSetting:ut,practiceSetting:ht}))(Xe)},38852:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return O}});var x=w(59301),pe=w(8591),e=w(54580),I=w(3113),f=w(11662),a=Object.defineProperty,t=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,o=(y,b,h)=>b in y?a(y,b,{enumerable:!0,configurable:!0,writable:!0,value:h}):y[b]=h,c=(y,b)=>{for(var h in b||(b={}))s.call(b,h)&&o(y,h,b[h]);if(t)for(var h of t(b))u.call(b,h)&&o(y,h,b[h]);return y};const n=y=>React.createElement("svg",c({id:"yinpin_svg__\\u56FE\\u5C42_1",xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 16 14",style:{enableBackground:"new 0 0 16 14"},xmlSpace:"preserve"},y),React.createElement("style",null,".yinpin_svg__st0{fill:#3061d0}"),React.createElement("title",null,"\u97F3\u9891"),React.createElement("g",{id:"yinpin_svg__\\u9875\\u9762-1"},React.createElement("g",{id:"yinpin_svg___x31_2-\\u9898\\u76EE-\\u672A\\u5F00\\u542F\\u65F6\\u95F4\\u9650\\u5236",transform:"translate(-270 -904)"},React.createElement("g",{id:"yinpin_svg__\\u7F16\\u7EC4-2\\u5907\\u4EFD-2",transform:"translate(120 892)"},React.createElement("g",{id:"yinpin_svg__\\u7F16\\u7EC4-6",transform:"translate(130 3)"},React.createElement("g",{id:"yinpin_svg__\\u97F3\\u9891",transform:"translate(20 9)"},React.createElement("path",{id:"yinpin_svg__\\u8DEF\\u5F84",className:"yinpin_svg__st0",d:"M14.8 7.6H14V5.7C14 2.6 11.3 0 8 0S2 2.6 2 5.7v1.9h-.8C.5 7.6 0 8.1 0 8.8v4c0 .7.5 1.2 1.2 1.2H2c.7 0 1.2-.5 1.2-1.2V5.7c0-2.5 2.2-4.5 4.8-4.5s4.8 2 4.8 4.5v7.1c0 .7.5 1.2 1.2 1.2h.8c.7 0 1.2-.5 1.2-1.2v-4c0-.7-.5-1.2-1.2-1.2z"}),React.createElement("path",{id:"yinpin_svg__\\u8DEF\\u5F84_1_",className:"yinpin_svg__st0",d:"M8.8 11.2c-.3 0-.5-.1-.6-.4l-.8-2.1-.3.6c0 .2-.3.3-.5.3H4.8c-.3 0-.6-.3-.6-.6s.3-.6.6-.6h1.4l.6-1.6c.1-.2.3-.4.6-.4.2 0 .5.1.6.4l1 2.4.2-.4c.1-.2.3-.3.5-.3h1.6c.3 0 .6.3.6.6s-.3.6-.6.6H10L9.4 11c-.1.1-.3.3-.6.2z"})))))));var r="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSLlm77lsYJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4PSIwIiB5PSIwIiB2aWV3Qm94PSIwIDAgMTYgMTQiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDE2IDE0IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGU+LnN0MHtmaWxsOiMzMDYxZDB9PC9zdHlsZT48ZyBpZD0i6aG16Z2iLTEiPjxnIGlkPSJfeDMxXzIt6aKY55uuLeacquW8gOWQr+aXtumXtOmZkOWItiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTI3MCAtOTA0KSI+PGcgaWQ9Iue8lue7hC0y5aSH5Lu9LTIiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEyMCA4OTIpIj48ZyBpZD0i57yW57uELTYiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEzMCAzKSI+PGcgaWQ9Iumfs+mikSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjAgOSkiPjxwYXRoIGlkPSLot6/lvoQiIGNsYXNzPSJzdDAiIGQ9Ik0xNC44IDcuNkgxNFY1LjdDMTQgMi42IDExLjMgMCA4IDBTMiAyLjYgMiA1Ljd2MS45aC0uOEMuNSA3LjYgMCA4LjEgMCA4Ljh2NGMwIC43LjUgMS4yIDEuMiAxLjJIMmMuNyAwIDEuMi0uNSAxLjItMS4yVjUuN2MwLTIuNSAyLjItNC41IDQuOC00LjVzNC44IDIgNC44IDQuNXY3LjFjMCAuNy41IDEuMiAxLjIgMS4yaC44Yy43IDAgMS4yLS41IDEuMi0xLjJ2LTRjMC0uNy0uNS0xLjItMS4yLTEuMnoiLz48cGF0aCBpZD0i6Lev5b6EXzFfIiBjbGFzcz0ic3QwIiBkPSJNOC44IDExLjJjLS4zIDAtLjUtLjEtLjYtLjRsLS44LTIuMS0uMy42YzAgLjItLjMuMy0uNS4zSDQuOGMtLjMgMC0uNi0uMy0uNi0uNnMuMy0uNi42LS42aDEuNGwuNi0xLjZjLjEtLjIuMy0uNC42LS40LjIgMCAuNS4xLjYuNGwxIDIuNC4yLS40Yy4xLS4yLjMtLjMuNS0uM2gxLjZjLjMgMCAuNi4zLjYuNnMtLjMuNi0uNi42SDEwTDkuNCAxMWMtLjEuMS0uMy4zLS42LjJ6Ii8+PC9nPjwvZz48L2c+PC9nPjwvZz48L3N2Zz4=",i=Object.defineProperty,l=Object.defineProperties,d=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,p=(y,b,h)=>b in y?i(y,b,{enumerable:!0,configurable:!0,writable:!0,value:h}):y[b]=h,S=(y,b)=>{for(var h in b||(b={}))v.call(b,h)&&p(y,h,b[h]);if(E)for(var h of E(b))m.call(b,h)&&p(y,h,b[h]);return y},C=(y,b)=>l(y,d(b)),O=({value:y=[],onChange:b,maxSize:h=50,maxCount:A=10,isEdit:B=!1})=>{const k=W=>{if(W===0)return"0B";const Y=1024,H=["B","KB","MB","GB"],re=Math.floor(Math.log(W)/Math.log(Y));return`${parseFloat((W/Math.pow(Y,re)).toFixed(1))}${H[re]}`},R=W=>{const Y=[".mp3",".flac",".wav"],H=W.toLowerCase().substring(W.lastIndexOf("."));return Y.includes(H)},M=W=>R(W.name)?W.size/1024/1024=A?(pe.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${A}\u4E2A\u97F3\u9891\u6587\u4EF6`),!1):!0:(pe.ZP.error(`\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7${h}MB`),!1):(pe.ZP.error("\u4EC5\u652F\u6301MP3\u3001FLAC\u3001WAV\u683C\u5F0F\u7684\u97F3\u9891\u6587\u4EF6"),!1),z=W=>{const{file:Y}=W;if(Y.status==="uploading"){const H=y.findIndex(G=>G.uid===Y.uid);let re;if(H>=0)re=[...y],re[H]=C(S({},re[H]),{status:"uploading",percent:Y.percent||0});else{const G={uid:Y.uid,name:Y.name,size:Y.size,file:Y.originFileObj,status:"uploading",percent:Y.percent||0};re=[...y,G]}b==null||b(re);return}if(Y.status==="done"){const H=y.map(re=>re.uid===Y.uid?C(S({},re),{status:"done",percent:100,response:Y.response}):re);b==null||b(H),pe.ZP.success(`${Y.name} \u4E0A\u4F20\u6210\u529F`)}if(Y.status==="error"){const H=y.map(re=>re.uid===Y.uid?C(S({},re),{status:"error",percent:0}):re);b==null||b(H),pe.ZP.error(`${Y.name} \u4E0A\u4F20\u5931\u8D25`)}},K=W=>{const Y=y.filter(H=>H.uid!==W);b==null||b(Y)};return console.log("value",y),x.createElement("div",{className:"audio-upload-container",style:{display:"flex",alignItems:"flex-start",gap:"16px"}},x.createElement(e.default,{action:`${f.Z.API_SERVER}/api/attachments.json`,beforeUpload:M,onChange:z,accept:".mp3,.flac,.wav",showUploadList:!1,multiple:!1,withCredentials:!0,name:"file",maxCount:A},x.createElement(I.ZP,{type:"primary",style:{height:"38px",padding:"4px 27px"}},"\u4E0A\u4F20\u97F3\u9891")),x.createElement("div",{className:"audio-file-list"},y==null?void 0:y.map((W,Y)=>{var H,re;const G=W.status==="uploading";return x.createElement("div",{key:W.uid,className:"audio-file-item",style:{marginBottom:8}},x.createElement("div",{className:"audio-file-info",style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},x.createElement("div",{style:{display:"flex",alignItems:"center",flex:1}},x.createElement("img",{src:r,style:{width:16,height:14,marginRight:4}}),x.createElement("div",{style:{flex:1}},x.createElement("div",{style:{display:"flex",alignItems:"center",marginBottom:G?4:0}},x.createElement("span",{className:"file-name",style:{marginRight:8}},((H=W==null?void 0:W.response)==null?void 0:H.filename)||(W==null?void 0:W.name)),x.createElement("span",{className:"file-size"},k(((re=W==null?void 0:W.response)==null?void 0:re.size)||W.size))),G&&W.percent!==void 0&&x.createElement("div",{style:{width:"100%"}},x.createElement("div",{style:{height:2,backgroundColor:"#f0f0f0",borderRadius:1,overflow:"hidden"}},x.createElement("div",{style:{height:"100%",backgroundColor:"#1890ff",width:`${W.percent}%`,transition:"width 0.3s ease"}}))))),x.createElement("div",{style:{marginLeft:8}},x.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#CCCCCC",fontSize:16,cursor:"pointer"},onClick:()=>K(W.uid)}))))})))}},17614:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return f}});var x=w(59301),pe=w(43418),e=w(90115);const I=({activeIndex:a,isEdit:t=!0,dispatch:s,practiceSetting:u,shixunsDetail:o})=>{var c;const n=(0,e.useParams)(),{id:r,challengesId:i}=n,l=(c=o==null?void 0:o.detail)==null?void 0:c.is_client_unity_3d,d=(0,x.useMemo)(()=>{var v;if(o!=null&&o.detail)return[{name:l?((v=o==null?void 0:o.detail)==null?void 0:v.vrs_question_type)==1?"\u4EFB\u52A1\u8BBE\u7F6E":"\u9898\u76EE\u8BBE\u7F6E":"\u672C\u5173\u4EFB\u52A1",url:`/shixuns/${r}/edit/${i}/editcheckpoint`},{name:l?"\u4EFF\u771F\u73AF\u5883\u8BBE\u7F6E":"\u8BC4\u6D4B\u8BBE\u7F6E",url:`/shixuns/${r}/edit/${i}/tab=2`},!l&&{name:"\u53C2\u8003\u7B54\u6848",url:`/shixuns/${r}/edit/${i}/tab=3`},!l&&{name:"\u5173\u5361\u6392\u884C\u699C",url:`/shixuns/${r}/edit/${i}/tab=4`}].filter(Boolean)},[r,i,o]),E=v=>{var m;const p=()=>{e.history.push(v),s({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})};(m=u==null?void 0:u.sideBar)!=null&&m.confirmLeave?pe.default.confirm({title:"\u79BB\u5F00\u6B64\u9875\u63D0\u793A",content:"\u7CFB\u7EDF\u53EF\u80FD\u4E0D\u4F1A\u4FDD\u5B58\u60A8\u6240\u505A\u7684\u66F4\u6539\u3002",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{p()}}):p()};return x.createElement("ul",{className:"challenge-nav"},t?d==null?void 0:d.map((v,m)=>a===m?x.createElement("li",{key:v.url}," ",x.createElement("a",{className:"active"},v.name)," "):x.createElement("li",{key:v.url}," ",x.createElement("a",{onClick:()=>E(v.url)},v.name)," ")):x.createElement("li",{key:d[0].url}," ",x.createElement("a",{className:"active"},d[0].name)," "))};var f=(0,e.connect)(({globalSetting:a,practiceSetting:t,shixunsDetail:s})=>({globalSetting:a,practiceSetting:t,shixunsDetail:s}))(I)},21824:function(Nt,Ve,w){"use strict";w.d(Ve,{Z:function(){return f}});var x=w(59301),pe=w(71418),e={loading:"loading___lueiN"},f=({loading:a})=>a?x.createElement("div",{className:e.loading},x.createElement(pe.Z,null)):x.createElement(x.Fragment,null)},78442:function(Nt,Ve,w){"use strict";w.d(Ve,{Y2:function(){return z},ZP:function(){return K}});var x=w(59301),pe=w(54580),e=w(8591),I=w(43418),f=w(95237),a=w(5112),t=w(3113),s=w(24905),u=w(6848),o=w(92832),c={wrap:"wrap___MkYbQ",colorBlue:"colorBlue___onjbP",repeatedName:"repeatedName___nbqnE",text:"text___xvutp",greyText:"greyText___dihvZ",noData:"noData___LxOJA",dragger:"dragger___y7F4A",uploadText:"uploadText___Et3KS",btnS:"btnS___k1e6j",testCaseRadio:"testCaseRadio___q1wXT",head:"head___s4Eix",operation:"operation___JCAVh",headProgram:"headProgram___uWA_M",listWrapper:"listWrapper___xW3b4",list:"list___dCbd6",del:"del___abNho",info:"info___J1Wmf"},n="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAATEAAADICAYAAACAj9YNAAAAAXNSR0IArs4c6QAAD59JREFUeF7tnet527gShsFUZFeQpJN1GkncyG46iVJBVFG4D6mLKYmSMLgQM4NXf855NrgMvm/8egBC9BD4oIBhBV7++fPlHP6n8PH/p/84Dp8XS7v8txB2N8sext/h7+G/73++3v67YZ08hz54Xhxr86fAy7c/P+ZVHQB1DaYaCz7AbBzfgVsNefPHBGL5GjJCRQUW0PpecRrp0DugJpWsXnsgVk9bRk5QQCm0nq1khhpb0Gcy1fl3IFZHV0YVKDCfa03nWeOgqdoSrODc9Lz1BGgp8qX1AWJputGrgAJz1bXd2VaBiEVDUJ2J5EpvDMTStaNnogJHeFmvuiSrB2gStYRtgZhQMJqnKWD0rCttsfd7AbPSioYQgFgFURnyQwHnW8ZUq4FZqnIr/YBYQTEZ6lKBDreNshQYxvf9v6+He298khUAYsnS0fGeAsBLmBvj+JWnmULNFs2BWLp29LxSYL4qMczXJLa4Se9Nf7aYiY4CsUTh6MbWsUoOsMUUywrExJLRYakAW8cq+UBVJpAViAnEoinV16Y5QFUWJTcQi5KJRtcKUIFtlBOA7KnQQOypRDS42D5yeN8iIdhePlAdiLVISaNzUn01No6rGKsGALHGeWllegCmxCm2lzdGADEluak5DACmzB1AdmEIEFOWn9rCAWDaHDnGA8jOxgAxpTmqIayXt/0vbt9rcOJ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Nh/6U5VpSrt7sQAxCy5pirEBwDY7E7unMzDTlIE3sQAx1fYoCq4RvJpWYtfyAzNFCfkRChBTaYuioBrDSxXETsEAM0UJGgIQU2WHkmCG8X2KpMR3HkutqMmZWEzwAC1GpaptgFhVeU0NvgvD+FsTuJbqqYXYMkiA1iThgVgT2dVMqhpc5iB2A7T5kcR852z68NaMOnkPxOroqnXUGVrhb9iV/m5j7QWbqMSeiTBXatPnU/gSxuHzSntA90zE238HYnLNWvTYXU26lusfbSZQnT4GgbUm8P/6C+VmwqlgeQAAAABJRU5ErkJggg==",r=w(47257),i=w.n(r),l=w(64866),d=w(1012),E=w(22566),v=w(48909),m=w(59301),p=Object.defineProperty,S=Object.defineProperties,C=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,b=(W,Y,H)=>Y in W?p(W,Y,{enumerable:!0,configurable:!0,writable:!0,value:H}):W[Y]=H,h=(W,Y)=>{for(var H in Y||(Y={}))O.call(Y,H)&&b(W,H,Y[H]);if(g)for(var H of g(Y))y.call(Y,H)&&b(W,H,Y[H]);return W},A=(W,Y)=>S(W,C(Y)),B=(W,Y,H)=>new Promise((re,G)=>{var ee=q=>{try{Q(H.next(q))}catch($){G($)}},X=q=>{try{Q(H.throw(q))}catch($){G($)}},Q=q=>q.done?re(q.value):Promise.resolve(q.value).then(ee,X);Q((H=H.apply(W,Y)).next())});const{Dragger:k}=pe.default,R=W=>{const Y=$=>$&&$.substring(0,$.lastIndexOf("."));for(var H=[...W],re=0,G=[],ee=0;ee{if($.forEach(le=>{let se=le.name.split(/\.(?=[^\.]+$)/);le.name=`${se[0]}.${se[1].toLowerCase()}`}),$[0].name.includes(".in"))return $.length===2?$:[$[0],{}];if($[0].name.includes(".out"))return $.length===2?$.reverse():[{},$[0]]})},M=({onClose:W,onOK:Y,visible:H,wrapClassName:re,rootIdentifier:G,multiple:ee=!1,defaultMultipleValue:X=!0})=>{const[Q,q]=(0,x.useState)([]),[$,le]=(0,x.useState)({}),[se,Ee]=(0,x.useState)(!1),[Se,ie]=(0,x.useState)(!0),[L,J]=(0,x.useState)(null),N=(0,x.useRef)([]),Z=(0,x.useRef)(0),ne=()=>{W()};(0,x.useEffect)(()=>{U()},[]),(0,x.useEffect)(()=>{H&&(N.current=[],Z.current=0,q([]),ie(X))},[H]);const U=()=>B(void 0,null,function*(){try{J(!0)}catch(V){}}),D=V=>V&&V.substring(0,V.lastIndexOf(".")),T=V=>{var de,we;const xe=D((de=V[0])==null?void 0:de.name)||D((we=V[1])==null?void 0:we.name),Ae=Q.filter(ve=>D(ve.name)!==xe);N.current=[...Ae],q([...Ae])},P=V=>{if(!Se){const oe=new FormData;oe.append("file",V.file),(0,l.ZP)("/api/attachments/get_file_content.json",{method:"post",body:oe},!0).then(ue=>{if(ue.status===0){Z.current=Z.current+1;const ye=N.current.map(Ce=>{var je;if(Ce.name===V.name){const ke=h({},Ce);return(je=V==null?void 0:V.name)!=null&&je.includes(".in")?ke.input=ue==null?void 0:ue.content:ke.output=ue==null?void 0:ue.content,ke}return Ce});if(N.current=[...ye],q([...ye]),Z.current>0&&Z.current===Q.length){Ee(!1);let Ce=R(ye);Ce=Ce.filter(je=>{var ke,Xe;return!!((ke=je[0])!=null&&ke.name&&((Xe=je[1])!=null&&Xe.name))}),Ce=Ce.map(je=>A(h(h({},je[0]),je[1]),{is_file:!1})),Y(Ce),W()}}else Ee(!1),W()});return}if(L){const oe=new FormData;oe.append("file",V.file),G===null?oe.append("identifier","testsets"):oe.append("identifier",G),(0,l.ZP)("/api/attachments.json",{method:"post",body:oe},!0).then(ue=>{if(ue.filename){Z.current=Z.current+1;const ye=N.current.map(Ce=>{var je;if(Ce.name===(ue==null?void 0:ue.filename)){const ke=A(h({},Ce),{is_oss:!L});return(je=ue==null?void 0:ue.filename)!=null&&je.includes(".in")?(ke.in_object_key=ue==null?void 0:ue.object,ke.in_object_size=ue==null?void 0:ue.size,ke.input=ue==null?void 0:ue.filename,ke.in_file=V):(ke.out_object_key=ue==null?void 0:ue.object,ke.out_object_size=ue==null?void 0:ue.size,ke.output=ue==null?void 0:ue.filename,ke.out_file=V),ke}return Ce});if(N.current=[...ye],q([...ye]),Z.current>0&&Z.current===Q.length){Ee(!1);let Ce=R(ye);Ce=Ce.filter(je=>{var ke,Xe;return!!((ke=je[0])!=null&&ke.name&&((Xe=je[1])!=null&&Xe.name))}),Ce=Ce.map(je=>A(h(h({},je[0]),je[1]),{is_file:!0})),Y(Ce),W()}}else Ee(!1),W()});return}const de=new(i())({endpoint:$.end_point,region:$.region,accessKeyId:$.access_key_id,accessKeySecret:$.access_key_secret,bucket:$.bucket,stsToken:$.security_token}),we=V.name,xe={container_type:"TestSet",file_name:we},Ae=(0,d.Z)();let ve=`testsets/${G}/${Ae}${we.indexOf(".")>-1?"."+we.split(".").pop():""}`;G===null&&(ve=`testsets/${Ae}${we.indexOf(".")>-1?"."+we.split(".").pop():""}`),de.multipartUpload(ve,new Blob([V.file],{type:V.file.type}),{timeout:3600*1e3,partSize:1002400,callback:{customValue:{id:we+""},url:$==null?void 0:$.callback_url,host:$==null?void 0:$.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,l.rz)(xe)}}).then(function(oe){if(oe.data.status===0){Z.current=Z.current+1;const _=N.current.map(ue=>{var ye,Ce,je,ke,Xe,rt,Fe,it,ut,ht,Ft,Ht,At,Wt,Lt,wt,Qt;if(ue.name===((Ce=(ye=oe.data)==null?void 0:ye.data)==null?void 0:Ce.file_name)){const Jt=A(h({},ue),{is_oss:!L});return(Xe=(ke=(je=oe.data)==null?void 0:je.data)==null?void 0:ke.file_name)!=null&&Xe.includes(".in")?(Jt.in_object_key=(Fe=(rt=oe.data)==null?void 0:rt.data)==null?void 0:Fe.object,Jt.in_object_size=(ut=(it=oe.data)==null?void 0:it.data)==null?void 0:ut.size,Jt.input=(Ft=(ht=oe.data)==null?void 0:ht.data)==null?void 0:Ft.file_name,Jt.in_file=V):(Jt.out_object_key=(At=(Ht=oe.data)==null?void 0:Ht.data)==null?void 0:At.object,Jt.out_object_size=(Lt=(Wt=oe.data)==null?void 0:Wt.data)==null?void 0:Lt.size,Jt.output=(Qt=(wt=oe.data)==null?void 0:wt.data)==null?void 0:Qt.file_name,Jt.out_file=V),Jt}return ue});if(N.current=[..._],q([..._]),Z.current>0&&Z.current===Q.length){Ee(!1);let ue=R(_);ue=ue.filter(ye=>{var Ce,je;return!!((Ce=ye[0])!=null&&Ce.name&&((je=ye[1])!=null&&je.name))}),ue=ue.map(ye=>A(h(h({},ye[0]),ye[1]),{is_file:!0})),Y(ue),W()}}})},j=V=>new Promise((de,we)=>{let xe=0,Ae=[];for(let ve=0;ve{xe++,xe===V.length&&(Ae.length?(e.ZP.warning(`${Ae.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),we()):de(V))}).catch(oe=>{console.log("\u9519\u8BEF\u4FE1\u606F\uFF1A",oe),xe++,Ae.push(V[ve].name),xe===V.length&&(Ae.length?(e.ZP.warning(`${Ae.join("\uFF0C")}\u6587\u4EF6\u5DF2\u635F\u574F\u6216\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u5220\u9664\u540E\u91CD\u65B0\u4E0A\u4F20\uFF01`),we()):de(V))})}),F=()=>B(void 0,null,function*(){if(Q.length===0){e.ZP.warning("\u8BF7\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6");return}if(yield j(Q),Ee(!0),R(Q).some(de=>{var we,xe;return!((we=de[0])!=null&&we.name&&((xe=de[1])!=null&&xe.name))})){I.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u4E0A\u4F20\u7684\u6D4B\u8BD5\u7528\u4F8B\u4E2D\u5B58\u5728\u672A\u914D\u5BF9\u7684\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u4EC5\u4FDD\u5B58\u5DF2\u914D\u5BF9\u7684\u6D4B\u8BD5\u7528\u4F8B\uFF1F",onOk:()=>B(void 0,null,function*(){Q.map(de=>B(void 0,null,function*(){P(de)}))}),onCancel:()=>{Ee(!1)}});return}Q.map(de=>B(void 0,null,function*(){P(de)}))}),te={name:"file",fileList:Q,multiple:!0,accept:".in, .out",showUploadList:!1,beforeUpload:V=>{if(Q!=null&&Q.some(we=>we.name===V.name))return e.ZP.info(`${V.name}\u6587\u4EF6\u5DF2\u5B58\u5728`),!1;if(V.size/1024/1024>100)return e.ZP.info("\u6587\u4EF6\u8D85\u8FC7100M\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42"),!1;if(!/\.(in|out|IN|OUT)$/.test(V.name))return e.ZP.warning("\u8F93\u5165\u6587\u4EF6\u53EA\u80FD\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6"),!1;const de={name:V.name,uid:V.uid,file:V,percent:0};return Q.push(de),N.current=[...Q],q([...Q]),!1}},ae=R(Q);return console.log(Q,ae,"fileList"),m.createElement(I.default,{open:H,wrapClassName:re,onOk:F,centered:!0,okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",okButtonProps:{loading:se},onCancel:ne,width:730,title:"\u6279\u91CF\u4E0A\u4F20\u6D4B\u8BD5\u7528\u4F8B"},m.createElement("div",{className:c.wrap},Q.length?m.createElement("div",null,m.createElement(f.Z,{justify:"space-between",align:"middle",style:{marginBottom:40}},m.createElement("div",{style:{visibility:ee?"visible":"hidden"}},m.createElement("span",{className:c.greyText},"\u7528\u4F8B\u7C7B\u578B"),m.createElement(a.ZP.Group,{className:`ml20 ${c.testCaseRadio}`,optionType:"button",value:Se,onChange:V=>ie(V.target.value)},m.createElement(a.ZP,{value:!1},"\u6587\u672C"),m.createElement(a.ZP,{value:!0},"\u6587\u4EF6"))),m.createElement(pe.default,h({},te),m.createElement(t.ZP,{type:"primary",className:c.btnS},m.createElement("i",{className:"iconfont icon-shangchuan2"}),"\u4E0A\u4F20\u6587\u4EF6"))),m.createElement(z,{data:ae,onRemove:T})):m.createElement("div",{className:`${c.noData} mb30`},m.createElement(pe.default.Dragger,A(h({},te),{className:c.dragger}),m.createElement("img",{src:n,alt:"",className:"mb20"}),m.createElement("div",null,m.createElement("span",null,"\u62D6\u62FD\u6587\u4EF6\u6216"),m.createElement("span",{className:c.uploadText},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),m.createElement("div",{className:c.text},m.createElement("span",{style:{color:"#FA6400"}},"\u63D0\u793A"),m.createElement("br",null),"1\u3001\u6587\u4EF6\u5FC5\u987B\u4E0A\u4F20.in\u548C.out\u7C7B\u578B\u7684\u6587\u672C\u6587\u4EF6\u3002",m.createElement("br",null),"2\u3001\u4E0A\u4F20\u7684\u6587\u4EF6\u7F16\u7801\u4EC5\u652F\u6301UTF-8\uFF0C\u5426\u5219\u53EF\u80FD\u4F1A\u51FA\u73B0\u6587\u672C\u4E71\u7801\u3002",m.createElement("br",null),"3\u3001\u8F93\u5165\u8F93\u51FA\u6587\u4EF6\u9700\u6587\u4EF6\u540D\u79F0\u4E00\u4E00\u5BF9\u5E94\uFF0C\u672A\u5BF9\u5E94\u65F6\uFF0C\u5C06\u65E0\u6CD5\u4E0A\u4F20\u3002",m.createElement("br",null),"4\u3001\u5355\u4E2A\u4E0A\u4F20\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7100MB\uFF0C\u8D85\u8FC7\u65F6\u53EF\u4EE5\u5206\u6279\u6B21\u4E0A\u4F20\u3002",m.createElement("br",null))))},z=({data:W=[],onRemove:Y,width:H="auto",showScore:re=!1,disabled:G=!1,inputChange:ee,onEvaluatingChange:X,onSelectAll:Q,checkAll1:q,checkAll2:$,checkAll3:le,checkAll4:se,checkAll5:Ee,showEvaluatingSetting:Se=!1,className:ie="",isProgramHomework:L=!1})=>{const J={value:"",filename:"",dataUrl:""},[N,Z]=(0,x.useState)(h({},J)),ne=T=>{let P=document.createElement("a");document.body.appendChild(P);let j=URL.createObjectURL(T.file);P.href=j,P.download=T.name,P.click(),URL.revokeObjectURL(j),document.body.removeChild(P)},U=(T,P)=>{(0,E.LR)(T,P)},D=(T,P)=>{I.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:m.createElement("div",{className:"tc font16"},"\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664\u8BE5\u6D4B\u8BD5\u7528\u4F8B?"),onOk:()=>{Y(T,P)},onCancel:()=>{}})};return W.length?m.createElement("div",{className:ie,style:{width:H}},m.createElement("div",{className:`${L?c.headProgram:c.head}`},Se&&m.createElement("div",{style:{width:"15%",display:"flex",alignItems:"center"}},m.createElement(s.default,{checked:q,onChange:T=>{Q(T.target.checked,"hidden")}}),m.createElement(u.Z,{title:'\u9690\u85CF\u6D4B\u8BD5\u96C6\u53EF\u4EE5\u9632\u6B62\u5B66\u751F\u901A\u8FC7"print"\u7B49\u624B\u6BB5\u76F4\u63A5\u901A\u5173'},m.createElement("span",{style:{marginLeft:"8px"}},"\u9690\u85CF"),m.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),m.createElement("div",{style:{width:L?"25%":"15%"}},"\u7528\u4F8B"),m.createElement("div",{style:{width:re?L?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u5165"),m.createElement("div",{style:{width:re?L?"20%":"15%":"25%",padding:"0 12px"}},"\u8F93\u51FA"),re&&m.createElement("div",{style:{width:"20%"}},"\u5F97\u5206\u6BD4\u4F8B"),Se&&m.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},m.createElement(s.default,{checked:se,onChange:T=>{Q(T.target.checked,"input_visible")}}),m.createElement(u.Z,{title:"\u52FE\u9009\u540E\uFF0C\u8F93\u5165\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},m.createElement("span",{style:{marginLeft:"8px"}},"\u8F93\u5165"),m.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Se&&m.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},m.createElement(s.default,{checked:$,onChange:T=>{Q(T.target.checked,"is_invisible")}}),m.createElement(u.Z,{title:"\u52FE\u9009\u540E\uFF0C\u9884\u671F\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},m.createElement("span",{style:{marginLeft:"8px"}},"\u9884\u671F\u8F93\u51FA"),m.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Se&&m.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},m.createElement(s.default,{checked:Ee,onChange:T=>{Q(T.target.checked,"actual_output_visible")}}),m.createElement(u.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u5BF9\u5B66\u5458\u59CB\u7EC8\u4E0D\u53EF\u89C1"},m.createElement("span",{style:{marginLeft:"8px"}},"\u5B9E\u9645\u8F93\u51FA"),m.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),Se&&m.createElement("div",{style:{width:"20%",display:"flex",alignItems:"center"}},m.createElement(s.default,{checked:le,onChange:T=>{Q(T.target.checked,"last_match_rule")}}),m.createElement(u.Z,{title:"\u52FE\u9009\u540E\uFF0C\u5B9E\u9645\u8F93\u51FA\u4E0E\u9884\u671F\u8F93\u51FA\u6700\u540E\u4E00\u884C\u76F8\u540C\u5373\u53EF\u901A\u5173"},m.createElement("span",{style:{marginLeft:"8px"}},"\u7279\u6B8A\u5224\u5B9A"),m.createElement("i",{className:"ml5 font14 iconfont icon-xiaowenhao1"}))),m.createElement("div",{className:c.operation,style:L?{flex:1,textAlign:"right"}:{width:"10%"}},"\u64CD\u4F5C")),m.createElement("div",{className:c.listWrapper,style:{boxShadow:L?"0px 2px 4px 0px #EAEEF4":"unset"}},W.map((T,P)=>{var j,F,te,ae;return m.createElement("div",{key:P,className:c.list,style:L?{marginBottom:"0px",height:"66px",borderBottom:"1px solid #F6F7F8"}:{}},Se&&m.createElement("div",{style:{width:"15%"}},m.createElement(s.default,{checked:!!T.hidden,onChange:V=>{X(V.target.checked,P,"hidden")}})),m.createElement("div",{style:{width:L?"25%":"15%",paddingLeft:L?"5px":"0px",paddingRight:L?"5px":"0px"}},"\u6D4B\u8BD5\u7528\u4F8B",P+1),m.createElement("div",{className:c.info,style:{width:re?L?"20%":"15%":"25%"}},m.createElement("span",{title:T.input||((j=T[0])==null?void 0:j.name),onClick:()=>B(void 0,null,function*(){let V;T.input?T.input_file_url?V=T.input_file_url:V=T.in_file:V=T[0];let de;typeof V=="string"?(de=yield fetch(V,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Z({value:yield de.text(),filename:"",dataUrl:V})):(de=yield(0,E.db)(V.file),Z({value:de.text,filename:V.name,dataUrl:de.link}))})},T.input||((F=T[0])==null?void 0:F.name))),m.createElement("div",{className:c.info,style:{width:re?L?"20%":"15%":"25%"}},m.createElement("span",{title:T.output||((te=T[1])==null?void 0:te.name),onClick:()=>B(void 0,null,function*(){let V;T.input?T.output_file_url?V=T.output_file_url:V=T.out_file:V=T[1];let de;typeof V=="string"?(de=yield fetch(V,{method:"Get",headers:{"Content-Type":"application/octet-stream",Accept:"*/*"}}),Z({value:yield de.text(),filename:"",dataUrl:V})):(de=yield(0,E.db)(V.file),Z({value:de.text,filename:V.name,dataUrl:de.link}))})},T.output||((ae=T[1])==null?void 0:ae.name))),re&&m.createElement("div",{style:{width:"20%"}},m.createElement(o.default,{size:"large",addonAfter:L?"%":null,disabled:G,style:{width:"80%"},onChange:V=>ee(V,P),value:T.score}),!L&&m.createElement("span",null,"\xA0%")),Se&&m.createElement("div",{style:{width:"20%"}},m.createElement(s.default,{checked:T.input_visible||!1,onChange:V=>{X(V.target.checked,P,"input_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Se&&m.createElement("div",{style:{width:"20%"}},m.createElement(s.default,{checked:T.is_invisible||!1,onChange:V=>{X(V.target.checked,P,"is_invisible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Se&&m.createElement("div",{style:{width:"20%"}},m.createElement(s.default,{checked:T.actual_output_visible||!1,onChange:V=>{X(V.target.checked,P,"actual_output_visible")},className:"font14"},"\u5BF9\u5B66\u5458\u4E0D\u53EF\u89C1")),Se&&m.createElement("div",{style:{width:"20%"}},m.createElement(s.default,{checked:T.last_match_rule||!1,onChange:V=>{X(V.target.checked,P,"last_match_rule")},className:"font14"},"\u672B\u5C3E\u5339\u914D")),m.createElement("div",{onClick:()=>D(T,P),style:L?{flex:1,textAlign:"right",paddingLeft:"5px",paddingRight:"5px"}:{width:"10%",textAlign:"center"}},m.createElement("span",{className:c.del},"\u5220\u9664")))})),m.createElement(v.Z,{close:!0,data:N.dataUrl,filename:N.filename,type:N.dataUrl.length?"txt":"",onClose:()=>Z(h({},J)),monacoEditor:{value:N.value,language:"txt",onChange:()=>{},options:{fontSize:14,readOnly:!0,minimap:{enabled:!1}}}})):m.createElement(m.Fragment,null)};var K=M},71773:function(Nt,Ve,w){"use strict";w.d(Ve,{S:function(){return a},m:function(){return t}});var x=w(22566),pe=w(8591),e=w(43418),I=w(59301),f=(s,u,o)=>new Promise((c,n)=>{var r=d=>{try{l(o.next(d))}catch(E){n(E)}},i=d=>{try{l(o.throw(d))}catch(E){n(E)}},l=d=>d.done?c(d.value):Promise.resolve(d.value).then(r,i);l((o=o.apply(s,u)).next())});const a=s=>{let u=document.createElement("textarea");return u.value=s,u.value},t=(s,u,o,c,n)=>f(void 0,null,function*(){var r,i;const l=yield s({type:"shixunsDetail/saveCopyForExercise",payload:{id:o,save_type:c}});c===1?((l==null?void 0:l.status)==0&&pe.ZP.success("\u4FDD\u5B58\u6210\u529F"),(r=l==null?void 0:l.data)!=null&&r.exists_same_shixun_name?s({type:"classroomList/setActionTabs",payload:{key:"\u91CD\u540D\u4FEE\u6539",name:(i=l==null?void 0:l.data)==null?void 0:i.shixun_name}}):s({type:"classroomList/setActionTabs",payload:{}})):(s({type:"classroomList/setActionTabs",payload:{}}),(l==null?void 0:l.status)===0&&e.default.info({title:"\u63D0\u793A",width:460,icon:null,centered:!0,content:I.createElement("div",null,I.createElement("div",null,"\u5B9E\u8BAD\u540C\u6B65\u4FEE\u6539\u5B8C\u6210\uFF0C\u8BF7\u9A8C\u8BC1\u5B9E\u8BAD\u662F\u5426\u53EF\u4EE5\u6B63\u5E38\u4F7F\u7528\u3002")),okText:"\u524D\u5F80\u539F\u5B9E\u8BAD",onOk:()=>{var d,E;(0,x.xg)(`/shixuns/${(E=(d=u==null?void 0:u.detail)==null?void 0:d.fork_from)==null?void 0:E.fork_identifier}/challenges`)}}))})},47257:function(Nt){(function(Ve){(function(w){if(1)Nt.exports=w();else var x})(function(){var w,x,pe;return function(){function e(I,f,a){function t(o,c){if(!f[o]){if(!I[o]){var n=void 0;if(!c&&n)return require(o,!0);if(s)return s(o,!0);var r=new Error("Cannot find module '"+o+"'");throw r.code="MODULE_NOT_FOUND",r}var i=f[o]={exports:{}};I[o][0].call(i.exports,function(l){var d=I[o][1][l];return t(d||l)},i,i.exports,e,I,f,a)}return f[o].exports}for(var s=void 0,u=0;u `.concat(v,` diff --git a/umi.7da6327b.js b/umi.104c2043.js similarity index 98% rename from umi.7da6327b.js rename to umi.104c2043.js index 35142c9136..b5fa1c6bc8 100644 --- a/umi.7da6327b.js +++ b/umi.104c2043.js @@ -1480,6 +1480,6 @@ Schedule: ${X.map(lt=>ku(lt))} pos: ${this.timelinePos}`),ue.length&&this.log(`R `).split(` `),G=[],ue=t?Vo(t.baseTime,t.timescale):0;let de="00:00.000",xe=0,Me=0,Fe,lt=!0;j.oncue=function(ut){const Vt=n[s];let Jt=n.ccOffset;const rr=(xe-ue)/9e4;if(Vt!=null&&Vt.new&&(Me!==void 0?Jt=n.ccOffset=Vt.start:Tl(n,s,rr)),rr){if(!t){Fe=new Error("Missing initPTS for VTT MPEGTS");return}Jt=rr-n.presentationOffset}const xr=ut.endTime-ut.startTime,jr=Yo((ut.startTime+Jt-Me)*9e4,v*9e4)/9e4;ut.startTime=Math.max(jr,0),ut.endTime=Math.max(jr+xr,0);const pn=ut.text.trim();ut.text=decodeURIComponent(encodeURIComponent(pn)),ut.id||(ut.id=lf(ut.startTime,ut.endTime,pn)),ut.endTime>0&&G.push(ut)},j.onparsingerror=function(ut){Fe=ut},j.onflush=function(){if(Fe){T(Fe);return}w(G)},X.forEach(ut=>{if(lt)if(iu(ut,"X-TIMESTAMP-MAP=")){lt=!1,ut.slice(16).split(",").forEach(Vt=>{iu(Vt,"LOCAL:")?de=Vt.slice(6):iu(Vt,"MPEGTS:")&&(xe=parseInt(Vt.slice(7)))});try{Me=Af(de)/1e3}catch(Vt){Fe=Vt}return}else ut===""&&(lt=!1);j.parse(ut+` `)}),j.flush()}const au="stpp.ttml.im1t",Cf=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Tf=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,cf={left:"start",center:"center",right:"end",start:"start",end:"end"};function Uc(D,t,n,s){const v=_t(new Uint8Array(D),["mdat"]);if(v.length===0){s(new Error("Could not parse IMSC1 mdat"));return}const w=v.map(j=>J(j)),T=gu(t.baseTime,1,t.timescale);try{w.forEach(j=>n(Ff(j,T)))}catch(j){s(j)}}function Ff(D,t){const v=new DOMParser().parseFromString(D,"text/xml").getElementsByTagName("tt")[0];if(!v)throw new Error("Invalid ttml");const w={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},T=Object.keys(w).reduce((de,xe)=>(de[xe]=v.getAttribute(`ttp:${xe}`)||w[xe],de),{}),j=v.getAttribute("xml:space")!=="preserve",X=$f(zc(v,"styling","style")),G=$f(zc(v,"layout","region")),ue=zc(v,"body","[begin]");return[].map.call(ue,de=>{const xe=Yf(de,j);if(!xe||!de.hasAttribute("begin"))return null;const Me=ff(de.getAttribute("begin"),T),Fe=ff(de.getAttribute("dur"),T);let lt=ff(de.getAttribute("end"),T);if(Me===null)throw Zf(de);if(lt===null){if(Fe===null)throw Zf(de);lt=Me+Fe}const ut=new Sf(Me-t,lt-t,xe);ut.id=lf(ut.startTime,ut.endTime,ut.text);const Vt=G[de.getAttribute("region")],Jt=X[de.getAttribute("style")],rr=Bf(Vt,Jt,X),{textAlign:xr}=rr;if(xr){const jr=cf[xr];jr&&(ut.lineAlign=jr),ut.align=xr}return y(ut,rr),ut}).filter(de=>de!==null)}function zc(D,t,n){const s=D.getElementsByTagName(t)[0];return s?[].slice.call(s.querySelectorAll(n)):[]}function $f(D){return D.reduce((t,n)=>{const s=n.getAttribute("xml:id");return s&&(t[s]=n),t},{})}function Yf(D,t){return[].slice.call(D.childNodes).reduce((n,s,v)=>{var w;return s.nodeName==="br"&&v?n+` -`:(w=s.childNodes)!=null&&w.length?Yf(s,t):t?n+s.textContent.trim().replace(/\s+/g," "):n+s.textContent},"")}function Bf(D,t,n){const s="http://www.w3.org/ns/ttml#styling";let v=null;const w=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],T=D!=null&&D.hasAttribute("style")?D.getAttribute("style"):null;return T&&n.hasOwnProperty(T)&&(v=n[T]),w.reduce((j,X)=>{const G=Xf(t,s,X)||Xf(D,s,X)||Xf(v,s,X);return G&&(j[X]=G),j},{})}function Xf(D,t,n){return D&&D.hasAttributeNS(t,n)?D.getAttributeNS(t,n):null}function Zf(D){return new Error(`Could not parse ttml timestamp ${D}`)}function ff(D,t){if(!D)return null;let n=Lf(D);return n===null&&(Cf.test(D)?n=id(D,t):Tf.test(D)&&(n=Wf(D,t))),n}function id(D,t){const n=Cf.exec(D),s=(n[4]|0)+(n[5]|0)/t.subFrameRate;return(n[1]|0)*3600+(n[2]|0)*60+(n[3]|0)+s/t.frameRate}function Wf(D,t){const n=Tf.exec(D),s=Number(n[1]);switch(n[2]){case"h":return s*3600;case"m":return s*60;case"ms":return s*1e3;case"f":return s/t.frameRate;case"t":return s/t.tickRate}return s}class Nf{constructor(t,n){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=n}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(t,n,s){(this.startTime===null||this.startTime>t)&&(this.startTime=t),this.endTime=n,this.screen=s,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class ad{constructor(t){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=g(),this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},t.on(o.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(o.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(o.MANIFEST_LOADING,this.onManifestLoading,this),t.on(o.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(o.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(o.FRAG_LOADING,this.onFragLoading,this),t.on(o.FRAG_LOADED,this.onFragLoaded,this),t.on(o.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(o.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(o.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(o.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(o.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:t}=this;t.off(o.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(o.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(o.MANIFEST_LOADING,this.onManifestLoading,this),t.off(o.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(o.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(o.FRAG_LOADING,this.onFragLoading,this),t.off(o.FRAG_LOADED,this.onFragLoaded,this),t.off(o.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(o.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(o.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(o.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(o.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const t=new Nf(this,"textTrack1"),n=new Nf(this,"textTrack2"),s=new Nf(this,"textTrack3"),v=new Nf(this,"textTrack4");this.cea608Parser1=new yl(1,t,n),this.cea608Parser2=new yl(3,s,v)}addCues(t,n,s,v,w){let T=!1;for(let j=w.length;j--;){const X=w[j],G=Hf(X[0],X[1],n,s);if(G>=0&&(X[0]=Math.min(X[0],n),X[1]=Math.max(X[1],s),T=!0,G/(s-n)>.5))return}if(T||w.push([n,s]),this.config.renderTextTracksNatively){const j=this.captionsTracks[t];this.Cues.newCue(j,n,s,v)}else{const j=this.Cues.newCue(null,n,s,v);this.hls.trigger(o.CUES_PARSED,{type:"captions",cues:j,track:t})}}onInitPtsFound(t,{frag:n,id:s,initPTS:v,timescale:w,trackId:T}){const{unparsedVttFrags:j}=this;s===u.MAIN&&(this.initPTS[n.cc]={baseTime:v,timescale:w,trackId:T}),j.length&&(this.unparsedVttFrags=[],j.forEach(X=>{this.initPTS[X.frag.cc]?this.onFragLoaded(o.FRAG_LOADED,X):this.hls.trigger(o.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:X.frag,error:new Error("Subtitle discontinuity domain does not match main")})}))}getExistingTrack(t,n){const{media:s}=this;if(s)for(let v=0;v{ns(v[w]),delete v[w]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=g(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:t}=this;if(!t)return;const n=t.textTracks;if(n)for(let s=0;sw.textCodec===au);if(this.config.enableWebVTT||v&&this.config.enableIMSC1){if(Kc(this.tracks,s)){this.tracks=s;return}if(this.textTracks=[],this.tracks=s,this.config.renderTextTracksNatively){const T=this.media,j=T?ql(T.textTracks):null;if(this.tracks.forEach((X,G)=>{let ue;if(j){let de=null;for(let xe=0;xeG!==null).map(G=>G.label);X.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${X.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const T=this.tracks.map(j=>({label:j.name,kind:j.type.toLowerCase(),default:j.default,subtitleTrack:j}));this.hls.trigger(o.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:T})}}}onManifestLoaded(t,n){this.config.enableCEA708Captions&&n.captions&&n.captions.forEach(s=>{const v=/(?:CC|SERVICE)([1-4])/.exec(s.instreamId);if(!v)return;const w=`textTrack${v[1]}`,T=this.captionsProperties[w];T&&(T.label=s.name,s.lang&&(T.languageCode=s.lang),T.media=s)})}closedCaptionsForLevel(t){const n=this.hls.levels[t.level];return n==null?void 0:n.attrs["CLOSED-CAPTIONS"]}onFragLoading(t,n){if(this.enabled&&n.frag.type===u.MAIN){var s,v;const{cea608Parser1:w,cea608Parser2:T,lastSn:j}=this,{cc:X,sn:G}=n.frag,ue=(s=(v=n.part)==null?void 0:v.index)!=null?s:-1;w&&T&&(G!==j+1||G===j&&ue!==this.lastPartIndex+1||X!==this.lastCc)&&(w.reset(),T.reset()),this.lastCc=X,this.lastSn=G,this.lastPartIndex=ue}}onFragLoaded(t,n){const{frag:s,payload:v}=n;if(s.type===u.SUBTITLE)if(v.byteLength){const w=s.decryptdata,T="stats"in n;if(w==null||!w.encrypted||T){const j=this.tracks[s.level],X=this.vttCCs;X[s.cc]||(X[s.cc]={start:s.start,prevCC:this.prevCC,new:!0},this.prevCC=s.cc),j&&j.textCodec===au?this._parseIMSC1(s,v):this._parseVTTs(n)}}else this.hls.trigger(o.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:s,error:new Error("Empty subtitle payload")})}_parseIMSC1(t,n){const s=this.hls;Uc(n,this.initPTS[t.cc],v=>{this._appendCues(v,t.level),s.trigger(o.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},v=>{s.logger.log(`Failed to parse IMSC1: ${v}`),s.trigger(o.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:v})})}_parseVTTs(t){var n;const{frag:s,payload:v}=t,{initPTS:w,unparsedVttFrags:T}=this,j=w.length-1;if(!w[s.cc]&&j===-1){T.push(t);return}const X=this.hls,G=(n=s.initSegment)!=null&&n.data?Gt(s.initSegment.data,new Uint8Array(v)).buffer:v;jc(G,this.initPTS[s.cc],this.vttCCs,s.cc,s.start,ue=>{this._appendCues(ue,s.level),X.trigger(o.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:s})},ue=>{const de=ue.message==="Missing initPTS for VTT MPEGTS";de?T.push(t):this._fallbackToIMSC1(s,v),X.logger.log(`Failed to parse VTT cue: ${ue}`),!(de&&j>s.cc)&&X.trigger(o.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:s,error:ue})})}_fallbackToIMSC1(t,n){const s=this.tracks[t.level];s.textCodec||Uc(n,this.initPTS[t.cc],()=>{s.textCodec=au,this._parseIMSC1(t,n)},()=>{s.textCodec="wvtt"})}_appendCues(t,n){const s=this.hls;if(this.config.renderTextTracksNatively){const v=this.textTracks[n];if(!v||v.mode==="disabled")return;t.forEach(w=>Wo(v,w))}else{const v=this.tracks[n];if(!v)return;const w=v.default?"default":"subtitles"+n;s.trigger(o.CUES_PARSED,{type:"subtitles",cues:t,track:w})}}onFragDecrypted(t,n){const{frag:s}=n;s.type===u.SUBTITLE&&this.onFragLoaded(o.FRAG_LOADED,n)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(t,n){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:s,samples:v}=n;if(!(s.type===u.MAIN&&this.closedCaptionsForLevel(s)==="NONE"))for(let w=0;wAo(j[X],n,s))}if(this.config.renderTextTracksNatively&&n===0&&v!==void 0){const{textTracks:j}=this;Object.keys(j).forEach(X=>Ao(j[X],n,v))}}}extractCea608Data(t){const n=[[],[]],s=t[0]&31;let v=2;for(let w=0;w=16?X--:X++;const Me=sl(G.trim()),Fe=lf(t,n,Me);D!=null&&(de=D.cues)!=null&&de.getCueById(Fe)||(T=new ue(t,n,Me),T.id=Fe,T.line=xe+1,T.align="left",T.position=10+Math.min(80,Math.floor(X*8/32)*10),v.push(T))}return D&&v.length&&(v.sort((xe,Me)=>xe.line==="auto"||Me.line==="auto"?0:xe.line>8&&Me.line>8?Me.line-xe.line:xe.line-Me.line),v.forEach(xe=>Wo(D,xe))),v}};function _e(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(D){}return!1}const Re=/(\d+)-(\d+)\/(\d+)/;class at{constructor(t){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||vn,this.controller=new self.AbortController,this.stats=new U}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var t;this.abortInternal(),(t=this.callbacks)!=null&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(t,n,s){const v=this.stats;if(v.loading.start)throw new Error("Loader can only be used once.");v.loading.start=self.performance.now();const w=jt(t,this.controller.signal),T=t.responseType==="arraybuffer",j=T?"byteLength":"length",{maxTimeToFirstByteMs:X,maxLoadTimeMs:G}=n.loadPolicy;this.context=t,this.config=n,this.callbacks=s,this.request=this.fetchSetup(t,w),self.clearTimeout(this.requestTimeout),n.timeout=X&&r(X)?X:G,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(v,t,this.response))},n.timeout),(ao(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(de=>{var xe;this.response=this.loader=de;const Me=Math.max(self.performance.now(),v.loading.start);if(self.clearTimeout(this.requestTimeout),n.timeout=G,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(v,t,this.response))},G-(Me-v.loading.start)),!de.ok){const{status:lt,statusText:ut}=de;throw new Oi(ut||"fetch, bad network response",lt,de)}v.loading.first=Me,v.total=Or(de.headers)||v.total;const Fe=(xe=this.callbacks)==null?void 0:xe.onProgress;return Fe&&r(n.highWaterMark)?this.loadProgressively(de,v,t,n.highWaterMark,Fe):T?de.arrayBuffer():t.responseType==="json"?de.json():de.text()}).then(de=>{var xe,Me;const Fe=this.response;if(!Fe)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),v.loading.end=Math.max(self.performance.now(),v.loading.first);const lt=de[j];lt&&(v.loaded=v.total=lt);const ut={url:Fe.url,data:de,code:Fe.status},Vt=(xe=this.callbacks)==null?void 0:xe.onProgress;Vt&&!r(n.highWaterMark)&&Vt(v,t,de,Fe),(Me=this.callbacks)==null||Me.onSuccess(ut,v,t,Fe)}).catch(de=>{var xe;if(self.clearTimeout(this.requestTimeout),v.aborted)return;const Me=de&&de.code||0,Fe=de?de.message:null;(xe=this.callbacks)==null||xe.onError({code:Me,text:Fe},t,de?de.details:null,v)})}getCacheAge(){let t=null;if(this.response){const n=this.response.headers.get("age");t=n?parseFloat(n):null}return t}getResponseHeader(t){return this.response?this.response.headers.get(t):null}loadProgressively(t,n,s,v=0,w){const T=new gr,j=t.body.getReader(),X=()=>j.read().then(G=>{if(G.done)return T.dataLength&&w(n,s,T.flush().buffer,t),Promise.resolve(new ArrayBuffer(0));const ue=G.value,de=ue.length;return n.loaded+=de,de=v&&w(n,s,T.flush().buffer,t)):w(n,s,ue.buffer,t),X()}).catch(()=>Promise.reject());return X()}}function jt(D,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(y({},D.headers))};return D.rangeEnd&&n.headers.set("Range","bytes="+D.rangeStart+"-"+String(D.rangeEnd-1)),n}function ar(D){const t=Re.exec(D);if(t)return parseInt(t[2])-parseInt(t[1])+1}function Or(D){const t=D.get("Content-Range");if(t){const s=ar(t);if(r(s))return s}const n=D.get("Content-Length");if(n)return parseInt(n)}function vn(D,t){return new self.Request(D.url,t)}class Oi extends Error{constructor(t,n,s){super(t),this.code=void 0,this.details=void 0,this.code=n,this.details=s}}const Ua=/^age:\s*[\d.]+\s*$/im;class Yn{constructor(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=t&&t.xhrSetup||null,this.stats=new U,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,t.readyState!==4&&(this.stats.aborted=!0,t.abort()))}abort(){var t;this.abortInternal(),(t=this.callbacks)!=null&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(t,n,s){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=n,this.callbacks=s,this.loadInternal()}loadInternal(){const{config:t,context:n}=this;if(!t||!n)return;const s=this.loader=new self.XMLHttpRequest,v=this.stats;v.loading.first=0,v.loaded=0,v.aborted=!1;const w=this.xhrSetup;w?Promise.resolve().then(()=>{if(!(this.loader!==s||this.stats.aborted))return w(s,n.url)}).catch(T=>{if(!(this.loader!==s||this.stats.aborted))return s.open("GET",n.url,!0),w(s,n.url)}).then(()=>{this.loader!==s||this.stats.aborted||this.openAndSendXhr(s,n,t)}).catch(T=>{var j;(j=this.callbacks)==null||j.onError({code:s.status,text:T.message},n,s,v)}):this.openAndSendXhr(s,n,t)}openAndSendXhr(t,n,s){t.readyState||t.open("GET",n.url,!0);const v=n.headers,{maxTimeToFirstByteMs:w,maxLoadTimeMs:T}=s.loadPolicy;if(v)for(const j in v)t.setRequestHeader(j,v[j]);n.rangeEnd&&t.setRequestHeader("Range","bytes="+n.rangeStart+"-"+(n.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=n.responseType,self.clearTimeout(this.requestTimeout),s.timeout=w&&r(w)?w:T,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),s.timeout),t.send()}readystatechange(){const{context:t,loader:n,stats:s}=this;if(!t||!n)return;const v=n.readyState,w=this.config;if(!s.aborted&&v>=2&&(s.loading.first===0&&(s.loading.first=Math.max(self.performance.now(),s.loading.start),w.timeout!==w.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),w.timeout=w.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),w.loadPolicy.maxLoadTimeMs-(s.loading.first-s.loading.start)))),v===4)){self.clearTimeout(this.requestTimeout),n.onreadystatechange=null,n.onprogress=null;const G=n.status,ue=n.responseType==="text"?n.responseText:null;if(G>=200&&G<300){const Fe=ue!=null?ue:n.response;if(Fe!=null){var T,j;s.loading.end=Math.max(self.performance.now(),s.loading.first);const lt=n.responseType==="arraybuffer"?Fe.byteLength:Fe.length;s.loaded=s.total=lt,s.bwEstimate=s.total*8e3/(s.loading.end-s.loading.first);const ut=(T=this.callbacks)==null?void 0:T.onProgress;ut&&ut(s,t,Fe,n);const Vt={url:n.responseURL,data:Fe,code:G};(j=this.callbacks)==null||j.onSuccess(Vt,s,t,n);return}}const de=w.loadPolicy.errorRetry,xe=s.retry,Me={url:t.url,data:void 0,code:G};if(Cr(de,xe,!1,Me))this.retry(de);else{var X;W.error(`${G} while loading ${t.url}`),(X=this.callbacks)==null||X.onError({code:G,text:n.statusText},t,n,s)}}}loadtimeout(){if(!this.config)return;const t=this.config.loadPolicy.timeoutRetry,n=this.stats.retry;if(Cr(t,n,!0))this.retry(t);else{var s;W.warn(`timeout while loading ${(s=this.context)==null?void 0:s.url}`);const v=this.callbacks;v&&(this.abortInternal(),v.onTimeout(this.stats,this.context,this.loader))}}retry(t){const{context:n,stats:s}=this;this.retryDelay=Dr(t,s.retry),s.retry++,W.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${n==null?void 0:n.url}, retrying ${s.retry}/${t.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(t){const n=this.stats;n.loaded=t.loaded,t.lengthComputable&&(n.total=t.total)}getCacheAge(){let t=null;if(this.loader&&Ua.test(this.loader.getAllResponseHeaders())){const n=this.loader.getResponseHeader("age");t=n?parseFloat(n):null}return t}getResponseHeader(t){return this.loader&&new RegExp(`^${t}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(t):null}}const ha={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},za=b(b({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:Yn,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:et,bufferController:lo,capLevelController:El,errorController:on,fpsController:cs,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:_u,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,preserveManualLevelOnError:!1,certLoadPolicy:{default:ha},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},Ma()),{},{subtitleStreamController:Cl,subtitleTrackController:Fc,timelineController:ad,audioStreamController:Gc,audioTrackController:Il,emeController:ke,cmcdController:xf,contentSteeringController:O,interstitialsController:Ef});function Ma(){return{cueHandler:z,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function en(D,t,n){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(t.liveMaxLatencyDurationCount!==void 0&&(t.liveSyncDurationCount===void 0||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(t.liveMaxLatencyDuration!==void 0&&(t.liveSyncDuration===void 0||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const s=Nr(D),v=["manifest","level","frag"],w=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return v.forEach(T=>{const j=`${T==="level"?"playlist":T}LoadPolicy`,X=t[j]===void 0,G=[];w.forEach(ue=>{const de=`${T}Loading${ue}`,xe=t[de];if(xe!==void 0&&X){G.push(de);const Me=s[j].default;switch(t[j]={default:Me},ue){case"TimeOut":Me.maxLoadTimeMs=xe,Me.maxTimeToFirstByteMs=xe;break;case"MaxRetry":Me.errorRetry.maxNumRetry=xe,Me.timeoutRetry.maxNumRetry=xe;break;case"RetryDelay":Me.errorRetry.retryDelayMs=xe,Me.timeoutRetry.retryDelayMs=xe;break;case"MaxRetryTimeout":Me.errorRetry.maxRetryDelayMs=xe,Me.timeoutRetry.maxRetryDelayMs=xe;break}}}),G.length&&n.warn(`hls.js config: "${G.join('", "')}" setting(s) are deprecated, use "${j}": ${zi(t[j])}`)}),b(b({},s),t)}function Nr(D){return D&&typeof D=="object"?Array.isArray(D)?D.map(Nr):Object.keys(D).reduce((t,n)=>(t[n]=Nr(D[n]),t),{}):D}function Qr(D,t){const n=D.loader;n!==at&&n!==Yn?(t.log("[config]: Custom loader detected, cannot enable progressive streaming"),D.progressive=!1):_e()&&(D.loader=at,D.progressive=!0,D.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}const In=2,Zn=.1,Xa=.05,Wi=100;class Qa extends ks{constructor(t,n){super("gap-controller",t.logger),this.hls=void 0,this.fragmentTracker=void 0,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var s;(s=this.media)!=null&&s.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var s;this.ended=((s=this.media)==null?void 0:s.currentTime)||1,this.hls.trigger(o.MEDIA_ENDED,{stalled:!1})}},this.hls=t,this.fragmentTracker=n,this.registerListeners()}registerListeners(){const{hls:t}=this;t&&(t.on(o.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(o.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(o.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(o.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(o.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(o.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(t,n){this.setInterval(Wi),this.mediaSource=n.mediaSource;const s=this.media=n.media;ja(s,"playing",this.onMediaPlaying),ja(s,"waiting",this.onMediaWaiting),ja(s,"ended",this.onMediaEnded)}onMediaDetaching(t,n){this.clearInterval();const{media:s}=this;s&&(rs(s,"playing",this.onMediaPlaying),rs(s,"waiting",this.onMediaWaiting),rs(s,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(t,n){this.buffered=n.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var t;if(!((t=this.media)!=null&&t.readyState)||!this.hasBuffered)return;const n=this.media.currentTime;this.poll(n,this.lastCurrentTime),this.lastCurrentTime=n}poll(t,n){var s,v;const w=(s=this.hls)==null?void 0:s.config;if(!w)return;const T=this.media;if(!T)return;const{seeking:j}=T,X=this.seeking&&!j,G=!this.seeking&&j,ue=T.paused&&!j||T.ended||T.playbackRate===0;if(this.seeking=j,t!==n){n&&(this.ended=0),this.moved=!0,j||(this.nudgeRetry=0,w.nudgeOnVideoHole&&!ue&&t>n&&this.nudgeOnVideoHole(t,n)),this.waiting===0&&this.stallResolved(t);return}if(G||X){X&&this.stallResolved(t);return}if(ue){this.nudgeRetry=0,this.stallResolved(t),!this.ended&&T.ended&&this.hls&&(this.ended=t||1,this.hls.trigger(o.MEDIA_ENDED,{stalled:!1}));return}if(!li.getBuffered(T).length){this.nudgeRetry=0;return}const de=li.bufferInfo(T,t,0),xe=de.nextStart||0,Me=this.fragmentTracker;if(j&&Me&&this.hls){const pn=fs(this.hls.inFlightFragments,t),Ur=de.len>In,an=!xe||pn||xe-t>In&&!Me.getPartialFragment(t);if(Ur||an)return;this.moved=!1}const Fe=(v=this.hls)==null?void 0:v.latestLevelDetails;if(!this.moved&&this.stalled!==null&&Me){if(!(de.len>0)&&!xe)return;const Ur=Math.max(xe,de.start||0)-t,nn=!!(Fe!=null&&Fe.live)?Fe.targetduration*2:In,Vr=Nl(t,Me);if(Ur>0&&(Ur<=nn||Vr)){T.paused||this._trySkipBufferHole(Vr);return}}const lt=w.detectStallWithCurrentTimeMs,ut=self.performance.now(),Vt=this.waiting;let Jt=this.stalled;if(Jt===null)if(Vt>0&&ut-Vt=lt||Vt)&&this.hls){var xr;if(((xr=this.mediaSource)==null?void 0:xr.readyState)==="ended"&&!(Fe!=null&&Fe.live)&&Math.abs(t-((Fe==null?void 0:Fe.edge)||0))<1){if(this.ended)return;this.ended=t||1,this.hls.trigger(o.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(de),!this.media||!this.hls)return}const jr=li.bufferInfo(T,t,w.maxBufferHole);this._tryFixBufferStall(jr,rr,t)}stallResolved(t){const n=this.stalled;if(n&&this.hls&&(this.stalled=null,this.stallReported)){const s=self.performance.now()-n;this.log(`playback not stuck anymore @${t}, after ${Math.round(s)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(o.STALL_RESOLVED,{})}}nudgeOnVideoHole(t,n){var s;const v=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(s=this.buffered.audio)!=null&&s.length&&v&&v.length>1&&t>v.end(0)){const w=li.bufferedInfo(li.timeRangesToArray(this.buffered.audio),t,0);if(w.len>1&&n>=w.start){const T=li.timeRangesToArray(v),j=li.bufferedInfo(T,n,0).bufferedIndex;if(j>-1&&jj)&&ue-G<1&&t-G<2){const de=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${t} hole: ${G} -> ${ue} buffered index: ${X}`);this.warn(de.message),this.media.currentTime+=1e-6;let xe=Nl(t,this.fragmentTracker);xe&&"fragment"in xe?xe=xe.fragment:xe||(xe=void 0);const Me=li.bufferInfo(this.media,t,0);this.hls.trigger(o.ERROR,{type:c.MEDIA_ERROR,details:f.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:de,reason:de.message,frag:xe,buffer:Me.len,bufferInfo:Me})}}}}}_tryFixBufferStall(t,n,s){var v,w;const{fragmentTracker:T,media:j}=this,X=(v=this.hls)==null?void 0:v.config;if(!j||!T||!X)return;const G=(w=this.hls)==null?void 0:w.latestLevelDetails,ue=Nl(s,T);if((ue||G!=null&&G.live&&s1&&t.len>X.maxBufferHole||t.nextStart&&(t.nextStart-sX.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(t))}adjacentTraversal(t,n){const s=this.fragmentTracker,v=t.nextStart;if(s&&v){const w=s.getFragAtPos(n,u.MAIN),T=s.getFragAtPos(v,u.MAIN);if(w&&T)return T.sn-w.sn<2}return!1}_reportStall(t){const{hls:n,media:s,stallReported:v,stalled:w}=this;if(!v&&w!==null&&s&&n){this.stallReported=!0;const T=new Error(`Playback stalling at @${s.currentTime} due to low buffer (${zi(t)})`);this.warn(T.message),n.trigger(o.ERROR,{type:c.MEDIA_ERROR,details:f.BUFFER_STALLED_ERROR,fatal:!1,error:T,buffer:t.len,bufferInfo:t,stalled:{start:w}})}}_trySkipBufferHole(t){var n;const{fragmentTracker:s,media:v}=this,w=(n=this.hls)==null?void 0:n.config;if(!v||!s||!w)return 0;const T=v.currentTime,j=li.bufferInfo(v,T,0),X=T0&&j.len<1&&v.readyState<3,xe=X-T;if(xe>0&&(ue||de)){if(xe>w.maxBufferHole){let Fe=!1;if(T===0){const lt=s.getAppendedFrag(0,u.MAIN);lt&&X{const D=od();try{D&&new D(0,Number.POSITIVE_INFINITY,"")}catch(t){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class Sd{constructor(t){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.assetCue=void 0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(o.EVENT_CUE_ENTER,{})},this.hls=t,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:t}=this;t&&(t.on(o.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(o.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(o.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(o.MANIFEST_LOADING,this.onManifestLoading,this),t.on(o.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(o.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(o.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(o.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:t}=this;t&&(t.off(o.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(o.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(o.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(o.MANIFEST_LOADING,this.onManifestLoading,this),t.off(o.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(o.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(o.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(o.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}onMediaAttaching(t,n){var s;this.media=n.media,((s=n.overrides)==null?void 0:s.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){var t;const n=(t=this.hls)==null?void 0:t.latestLevelDetails;n&&this.updateDateRangeCues(n)}onMediaDetaching(t,n){this.media=null,!n.transferMedia&&(this.id3Track&&(this.removeCues&&ns(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(t){const n=this.getID3Track(t.textTracks);return n.mode="hidden",n}getID3Track(t){if(this.media){for(let n=0;ned&&(de=ed),de-ue<=0&&(de=ue+sd);for(let Me=0;Meue.type===Tn.audioId3&&X:v==="video"?G=ue=>ue.type===Tn.emsg&&j:G=ue=>ue.type===Tn.audioId3&&X||ue.type===Tn.emsg&&j,Ao(w,n,s,G)}}onLevelUpdated(t,{details:n}){this.updateDateRangeCues(n,!0)}onLevelPtsUpdated(t,n){Math.abs(n.drift)>.01&&this.updateDateRangeCues(n.details)}updateDateRangeCues(t,n){if(!this.hls||!this.media)return;const{assetPlayerId:s,timelineOffset:v,enableDateRangeMetadataCues:w,interstitialsController:T}=this.hls.config;if(!w)return;const j=od();if(s&&v&&!T){const{fragmentStart:lt,fragmentEnd:ut}=t;let Vt=this.assetCue;Vt?(Vt.startTime=lt,Vt.endTime=ut):j&&(Vt=this.assetCue=ud(j,lt,ut,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),Vt&&(Vt.id=s,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(Vt),Vt.addEventListener("enter",this.onEventCueEnter)))}if(!t.hasProgramDateTime)return;const{id3Track:X}=this,{dateRanges:G}=t,ue=Object.keys(G);let de=this.dateRangeCuesAppended;if(X&&n){var xe;if((xe=X.cues)!=null&&xe.length){const lt=Object.keys(de).filter(ut=>!ue.includes(ut));for(let ut=lt.length;ut--;){var Me;const Vt=lt[ut],Jt=(Me=de[Vt])==null?void 0:Me.cues;delete de[Vt],Jt&&Object.keys(Jt).forEach(rr=>{const xr=Jt[rr];if(xr){xr.removeEventListener("enter",this.onEventCueEnter);try{X.removeCue(xr)}catch(jr){}}})}}else de=this.dateRangeCuesAppended={}}const Fe=t.fragments[t.fragments.length-1];if(!(ue.length===0||!r(Fe==null?void 0:Fe.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let lt=0;lt{if(Ei!==Vt.id){const Qi=G[Ei];if(Qi.class===Vt.class&&Qi.startDate>Vt.startDate&&(!Dn||Vt.startDate.01&&(Ei.startTime=Jt,Ei.endTime=pn);else if(j){let Qi=Vt.attr[Dn];Ho(Dn)&&(Qi=V(Qi));const qi=ud(j,Jt,pn,{key:Dn,data:Qi},Tn.dateRange);qi&&(qi.id=ut,this.id3Track.addCue(qi),xr[Dn]=qi,T&&(Dn==="X-ASSET-LIST"||Dn==="X-ASSET-URL")&&qi.addEventListener("enter",this.onEventCueEnter))}}de[ut]={cues:xr,dateRange:Vt,durationKnown:jr}}}}}class Ad{constructor(t){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:n}=this,s=this.levelDetails;if(!n||!s)return;this.currentTime=n.currentTime;const v=this.computeLatency();if(v===null)return;this._latency=v;const{lowLatencyMode:w,maxLiveSyncPlaybackRate:T}=this.config;if(!w||T===1||!s.live)return;const j=this.targetLatency;if(j===null)return;const X=v-j,G=Math.min(this.maxLatency,j+s.targetduration);if(X.05&&this.forwardBufferLength>1){const de=Math.min(2,Math.max(1,T)),xe=Math.round(2/(1+Math.exp(-.75*X-this.edgeStalled))*20)/20,Me=Math.min(de,Math.max(1,xe));this.changeMediaPlaybackRate(n,Me)}else n.playbackRate!==1&&n.playbackRate!==0&&this.changeMediaPlaybackRate(n,1)},this.hls=t,this.config=t.config,this.registerListeners()}get levelDetails(){var t;return((t=this.hls)==null?void 0:t.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:t}=this;if(t.liveMaxLatencyDuration!==void 0)return t.liveMaxLatencyDuration;const n=this.levelDetails;return n?t.liveMaxLatencyDurationCount*n.targetduration:0}get targetLatency(){const t=this.levelDetails;if(t===null||this.hls===null)return null;const{holdBack:n,partHoldBack:s,targetduration:v}=t,{liveSyncDuration:w,liveSyncDurationCount:T,lowLatencyMode:j}=this.config,X=this.hls.userConfig;let G=j&&s||n;(this._targetLatencyUpdated||X.liveSyncDuration||X.liveSyncDurationCount||G===0)&&(G=w!==void 0?w:T*v);const ue=v;return G+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,ue)}set targetLatency(t){this.stallCount=0,this.config.liveSyncDuration=t,this._targetLatencyUpdated=!0}get liveSyncPosition(){const t=this.estimateLiveEdge(),n=this.targetLatency;if(t===null||n===null)return null;const s=this.levelDetails;if(s===null)return null;const v=s.edge,w=t-n-this.edgeStalled,T=v-s.totalduration,j=v-(this.config.lowLatencyMode&&s.partTarget||s.targetduration);return Math.min(Math.max(T,w),j)}get drift(){const t=this.levelDetails;return t===null?1:t.drift}get edgeStalled(){const t=this.levelDetails;if(t===null)return 0;const n=(this.config.lowLatencyMode&&t.partTarget||t.targetduration)*3;return Math.max(t.age-n,0)}get forwardBufferLength(){const{media:t}=this,n=this.levelDetails;if(!t||!n)return 0;const s=t.buffered.length;return(s?t.buffered.end(s-1):n.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:t}=this;t&&(t.on(o.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(o.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(o.MANIFEST_LOADING,this.onManifestLoading,this),t.on(o.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(o.ERROR,this.onError,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(o.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(o.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(o.MANIFEST_LOADING,this.onManifestLoading,this),t.off(o.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(o.ERROR,this.onError,this))}onMediaAttached(t,n){this.media=n.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(t,{details:n}){n.advanced&&this.onTimeupdate(),!n.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(t,n){var s;n.details===f.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(s=this.levelDetails)!=null&&s.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(t,n){var s,v;t.playbackRate!==n&&((s=this.hls)==null||s.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(v=this.targetLatency)==null?void 0:v.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${t.playbackRate} to ${n}`),t.playbackRate=n)}estimateLiveEdge(){const t=this.levelDetails;return t===null?null:t.edge+t.age}computeLatency(){const t=this.estimateLiveEdge();return t===null?null:t-this.currentTime}}class Cd extends wo{constructor(t,n){super(t,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=n,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(o.MANIFEST_LOADING,this.onManifestLoading,this),t.on(o.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(o.LEVEL_LOADED,this.onLevelLoaded,this),t.on(o.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(o.FRAG_BUFFERED,this.onFragBuffered,this),t.on(o.ERROR,this.onError,this)}_unregisterListeners(){const{hls:t}=this;t.off(o.MANIFEST_LOADING,this.onManifestLoading,this),t.off(o.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(o.LEVEL_LOADED,this.onLevelLoaded,this),t.off(o.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(o.FRAG_BUFFERED,this.onFragBuffered,this),t.off(o.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(n=>{n.loadError=0,n.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(t,n){this.resetLevels()}onManifestLoaded(t,n){const s=this.hls.config.preferManagedMediaSource,v=[],w={},T={};let j=!1,X=!1,G=!1;n.levels.forEach(ue=>{const de=ue.attrs;let{audioCodec:xe,videoCodec:Me}=ue;xe&&(ue.audioCodec=xe=At(xe,s)||void 0),Me&&(Me=ue.videoCodec=Rr(Me));const{width:Fe,height:lt,unknownCodecs:ut}=ue,Vt=(ut==null?void 0:ut.length)||0;if(j||(j=!!(Fe&<)),X||(X=!!Me),G||(G=!!xe),Vt||xe&&!this.isAudioSupported(xe)||Me&&!this.isVideoSupported(Me)){this.log(`Some or all CODECS not supported "${de.CODECS}"`);return}const{CODECS:Jt,"FRAME-RATE":rr,"HDCP-LEVEL":xr,"PATHWAY-ID":jr,RESOLUTION:pn,"VIDEO-RANGE":Ur}=de,nn=`${`${jr||"."}-`}${ue.bitrate}-${pn}-${rr}-${Jt}-${Ur}-${xr}`;if(w[nn])if(w[nn].uri!==ue.url&&!ue.attrs["PATHWAY-ID"]){const Vr=T[nn]+=1;ue.attrs["PATHWAY-ID"]=new Array(Vr+1).join(".");const Dn=this.createLevel(ue);w[nn]=Dn,v.push(Dn)}else w[nn].addGroupId("audio",de.AUDIO),w[nn].addGroupId("text",de.SUBTITLES);else{const Vr=this.createLevel(ue);w[nn]=Vr,T[nn]=1,v.push(Vr)}}),this.filterAndSortMediaOptions(v,n,j,X,G)}createLevel(t){const n=new wi(t),s=t.supplemental;if(s!=null&&s.videoCodec&&!this.isVideoSupported(s.videoCodec)){const v=new Error(`SUPPLEMENTAL-CODECS not supported "${s.videoCodec}"`);this.log(v.message),n.supportedResult=ot(v,[])}return n}isAudioSupported(t){return Pe(t,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(t){return Pe(t,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(t,n,s,v,w){var T;let j=[],X=[],G=t;const ue=((T=n.stats)==null?void 0:T.parsing)||{};if((s||v)&&w&&(G=G.filter(({videoCodec:Jt,videoRange:rr,width:xr,height:jr})=>(!!Jt||!!(xr&&jr))&&Qn(rr))),G.length===0){Promise.resolve().then(()=>{if(this.hls){let Jt="no level with compatible codecs found in manifest",rr=Jt;n.levels.length&&(rr=`one or more CODECS in variant not supported: ${zi(n.levels.map(jr=>jr.attrs.CODECS).filter((jr,pn,Ur)=>Ur.indexOf(jr)===pn))}`,this.warn(rr),Jt+=` (${rr})`);const xr=new Error(Jt);this.hls.trigger(o.ERROR,{type:c.MEDIA_ERROR,details:f.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:n.url,error:xr,reason:rr})}}),ue.end=performance.now();return}n.audioTracks&&(j=n.audioTracks.filter(Jt=>!Jt.audioCodec||this.isAudioSupported(Jt.audioCodec)),hd(j)),n.subtitles&&(X=n.subtitles,hd(X));const de=G.slice(0);G.sort((Jt,rr)=>{if(Jt.attrs["HDCP-LEVEL"]!==rr.attrs["HDCP-LEVEL"])return(Jt.attrs["HDCP-LEVEL"]||"")>(rr.attrs["HDCP-LEVEL"]||"")?1:-1;if(s&&Jt.height!==rr.height)return Jt.height-rr.height;if(Jt.frameRate!==rr.frameRate)return Jt.frameRate-rr.frameRate;if(Jt.videoRange!==rr.videoRange)return On.indexOf(Jt.videoRange)-On.indexOf(rr.videoRange);if(Jt.videoCodec!==rr.videoCodec){const xr=we(Jt.videoCodec),jr=we(rr.videoCodec);if(xr!==jr)return jr-xr}if(Jt.uri===rr.uri&&Jt.codecSet!==rr.codecSet){const xr=gt(Jt.codecSet),jr=gt(rr.codecSet);if(xr!==jr)return jr-xr}return Jt.averageBitrate!==rr.averageBitrate?Jt.averageBitrate-rr.averageBitrate:0});let xe=de[0];if(this.steering&&(G=this.steering.filterParsedLevels(G),G.length!==de.length)){for(let Jt=0;Jtxr&&xr===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=jr)}break}const Fe=w&&!v,lt=this.hls.config,ut=!!(lt.audioStreamController&<.audioTrackController),Vt={levels:G,audioTracks:j,subtitleTracks:X,sessionData:n.sessionData,sessionKeys:n.sessionKeys,firstLevel:this._firstLevel,stats:n.stats,audio:w,video:v,altAudio:ut&&!Fe&&j.some(Jt=>!!Jt.url)};ue.end=performance.now(),this.hls.trigger(o.MANIFEST_PARSED,Vt)}get levels(){return this._levels.length===0?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(t){const n=this._levels;if(n.length===0)return;if(t<0||t>=n.length){const ue=new Error("invalid level idx"),de=t<0;if(this.hls.trigger(o.ERROR,{type:c.OTHER_ERROR,details:f.LEVEL_SWITCH_ERROR,level:t,fatal:de,error:ue,reason:ue.message}),de)return;t=Math.min(t,n.length-1)}const s=this.currentLevelIndex,v=this.currentLevel,w=v?v.attrs["PATHWAY-ID"]:void 0,T=n[t],j=T.attrs["PATHWAY-ID"];if(this.currentLevelIndex=t,this.currentLevel=T,s===t&&v&&w===j)return;this.log(`Switching to level ${t} (${T.height?T.height+"p ":""}${T.videoRange?T.videoRange+" ":""}${T.codecSet?T.codecSet+" ":""}@${T.bitrate})${j?" with Pathway "+j:""} from level ${s}${w?" with Pathway "+w:""}`);const X={level:t,attrs:T.attrs,details:T.details,bitrate:T.bitrate,averageBitrate:T.averageBitrate,maxBitrate:T.maxBitrate,realBitrate:T.realBitrate,width:T.width,height:T.height,codecSet:T.codecSet,audioCodec:T.audioCodec,videoCodec:T.videoCodec,audioGroups:T.audioGroups,subtitleGroups:T.subtitleGroups,loaded:T.loaded,loadError:T.loadError,fragmentError:T.fragmentError,name:T.name,id:T.id,uri:T.uri,url:T.url,urlId:0,audioGroupIds:T.audioGroupIds,textGroupIds:T.textGroupIds};this.hls.trigger(o.LEVEL_SWITCHING,X);const G=T.details;if(!G||G.live){const ue=this.switchParams(T.uri,v==null?void 0:v.details,G);this.loadPlaylist(ue)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(t){this.manualLevelIndex=t,this._startLevel===void 0&&(this._startLevel=t),t!==-1&&(this.level=t)}get firstLevel(){return this._firstLevel}set firstLevel(t){this._firstLevel=t}get startLevel(){if(this._startLevel===void 0){const t=this.hls.config.startLevel;return t!==void 0?t:this.hls.firstAutoLevel}return this._startLevel}set startLevel(t){this._startLevel=t}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(t){if(this.steering){const n=this.steering.pathways(),s=t.filter(v=>n.indexOf(v)!==-1);if(t.length<1){this.warn(`pathwayPriority ${t} should contain at least one pathway from list: ${n}`);return}this.steering.pathwayPriority=s}}onError(t,n){n.fatal||!n.context||n.context.type===h.LEVEL&&n.context.level===this.level&&this.checkRetry(n)}onFragBuffered(t,{frag:n}){if(n!==void 0&&n.type===u.MAIN){const s=n.elementaryStreams;if(!Object.keys(s).some(w=>!!s[w]))return;const v=this._levels[n.level];v!=null&&v.loadError&&(this.log(`Resetting level error count of ${v.loadError} on frag buffered`),v.loadError=0)}}onLevelLoaded(t,n){var s;const{level:v,details:w}=n,T=n.levelInfo;if(!T){var j;this.warn(`Invalid level index ${v}`),(j=n.deliveryDirectives)!=null&&j.skip&&(w.deltaUpdateFailed=!0);return}if(T===this.currentLevel||n.withoutMultiVariant){T.fragmentError===0&&(T.loadError=0);let X=T.details;X===n.details&&X.advanced&&(X=void 0),this.playlistLoaded(v,n,X)}else(s=n.deliveryDirectives)!=null&&s.skip&&(w.deltaUpdateFailed=!0)}loadPlaylist(t){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,t)}loadingPlaylist(t,n){super.loadingPlaylist(t,n);const s=this.getUrlWithDirectives(t.uri,n),v=this.currentLevelIndex,w=t.attrs["PATHWAY-ID"],T=t.details,j=T==null?void 0:T.age;this.log(`Loading level index ${v}${(n==null?void 0:n.msn)!==void 0?" at sn "+n.msn+" part "+n.part:""}${w?" Pathway "+w:""}${j&&T.live?" age "+j.toFixed(1)+(T.type?" "+T.type||0:""):""} ${s}`),this.hls.trigger(o.LEVEL_LOADING,{url:s,level:v,levelInfo:t,pathwayId:t.attrs["PATHWAY-ID"],id:0,deliveryDirectives:n||null})}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(t){this.level=t,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=t)}removeLevel(t){var n;if(this._levels.length===1)return;const s=this._levels.filter((w,T)=>T!==t?!0:(this.steering&&this.steering.removeLevel(w),w===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,w.details&&w.details.fragments.forEach(j=>j.level=-1)),!1));ps(s),this._levels=s,this.currentLevelIndex>-1&&(n=this.currentLevel)!=null&&n.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const v=s.length-1;this._firstLevel=Math.min(this._firstLevel,v),this._startLevel&&(this._startLevel=Math.min(this._startLevel,v)),this.hls.trigger(o.LEVELS_UPDATED,{levels:s})}onLevelsUpdated(t,{levels:n}){this._levels=n}checkMaxAutoUpdated(){const{autoLevelCapping:t,maxAutoLevel:n,maxHdcpLevel:s}=this.hls;this._maxAutoLevel!==n&&(this._maxAutoLevel=n,this.hls.trigger(o.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:n,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:s}))}}function hd(D){const t={};D.forEach(n=>{const s=n.groupId||"";n.id=t[s]=t[s]||0,t[s]++})}function pd(){return self.SourceBuffer||self.WebKitSourceBuffer}function md(){if(!ae())return!1;const t=pd();return!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function"}function Td(){if(!md())return!1;const D=ae();return typeof(D==null?void 0:D.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(t=>D.isTypeSupported(We(t,"video")))||["mp4a.40.2","fLaC"].some(t=>D.isTypeSupported(We(t,"audio"))))}function Pd(){var D;const t=pd();return typeof(t==null||(D=t.prototype)==null?void 0:D.changeType)=="function"}const vd=100;class _d extends Nt{constructor(t,n,s){super(t,n,s,"stream-controller",u.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const v=this.media,w=v?v.currentTime:null;if(w===null||!r(w)||(this.log(`Media seeked to ${w.toFixed(3)}`),!this.getBufferedFrag(w)))return;const T=this.getFwdBufferInfoAtPos(v,w,u.MAIN,0);if(T===null||T.len===0){this.warn(`Main forward buffer length at ${w} on "seeked" event ${T?T.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(o.MANIFEST_PARSED,this.onManifestParsed,this),t.on(o.LEVEL_LOADING,this.onLevelLoading,this),t.on(o.LEVEL_LOADED,this.onLevelLoaded,this),t.on(o.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(o.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(o.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(o.BUFFER_CREATED,this.onBufferCreated,this),t.on(o.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(o.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(o.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(o.MANIFEST_PARSED,this.onManifestParsed,this),t.off(o.LEVEL_LOADED,this.onLevelLoaded,this),t.off(o.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(o.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(o.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(o.BUFFER_CREATED,this.onBufferCreated,this),t.off(o.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(o.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(o.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(t,n){if(this.levels){const{lastCurrentTime:s,hls:v}=this;if(this.stopLoad(),this.setInterval(vd),this.level=-1,!this.startFragRequested){let w=v.startLevel;w===-1&&(v.config.testBandwidth&&this.levels.length>1?(w=0,this.bitrateTest=!0):w=v.firstAutoLevel),v.nextLoadLevel=w,this.level=v.loadLevel,this._hasEnoughToStart=!!n}s>0&&t===-1&&!n&&(this.log(`Override startPosition with lastCurrentTime @${s.toFixed(3)}`),t=s),this.state=De.IDLE,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}else this._forceStartLoad=!0,this.state=De.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case De.WAITING_LEVEL:{const{levels:t,level:n}=this,s=t==null?void 0:t[n],v=s==null?void 0:s.details;if(v&&(!v.live||this.levelLastLoaded===s&&!this.waitForLive(s))){if(this.waitForCdnTuneIn(v))break;this.state=De.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=De.IDLE;break}break}case De.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===De.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var t;super.onTickEnd(),(t=this.media)!=null&&t.readyState&&this.media.seeking===!1&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:t,levelLastLoaded:n,levels:s,media:v}=this;if(n===null||!v&&!this.primaryPrefetch&&(this.startFragRequested||!t.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const w=this.buffering?t.nextLoadLevel:t.loadLevel;if(!(s!=null&&s[w]))return;const T=s[w],j=this.getMainFwdBufferInfo();if(j===null)return;const X=this.getLevelDetails();if(X&&this._streamEnded(j,X)){const lt={};this.altAudio===2&&(lt.type="video"),this.hls.trigger(o.BUFFER_EOS,lt),this.state=De.ENDED;return}if(!this.buffering)return;t.loadLevel!==w&&t.manualLevel===-1&&this.log(`Adapting to level ${w} from level ${this.level}`),this.level=t.nextLoadLevel=w;const G=T.details;if(!G||this.state===De.WAITING_LEVEL||this.waitForLive(T)){this.level=w,this.state=De.WAITING_LEVEL,this.startFragRequested=!1;return}const ue=j.len,de=this.getMaxBufferLength(T.maxBitrate);if(ue>=de)return;this.backtrackFragment&&this.backtrackFragment.start>j.end&&(this.backtrackFragment=null);const xe=this.backtrackFragment?this.backtrackFragment.start:j.end;let Me=this.getNextFragment(xe,G);if(this.couldBacktrack&&!this.fragPrevious&&Me&&Ce(Me)&&this.fragmentTracker.getState(Me)!==_n.OK){var Fe;const ut=((Fe=this.backtrackFragment)!=null?Fe:Me).sn-G.startSN,Vt=G.fragments[ut-1];Vt&&Me.cc===Vt.cc&&(Me=Vt,this.fragmentTracker.removeFragment(Vt))}else this.backtrackFragment&&j.len&&(this.backtrackFragment=null);if(Me&&this.isLoopLoading(Me,xe)){if(!Me.gap){const ut=this.audioOnly&&!this.altAudio?ie.AUDIO:ie.VIDEO,Vt=(ut===ie.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Vt&&this.afterBufferFlushed(Vt,ut,u.MAIN)}Me=this.getNextFragmentLoopLoading(Me,G,j,u.MAIN,de)}Me&&(Me.initSegment&&!Me.initSegment.data&&!this.bitrateTest&&(Me=Me.initSegment),this.loadFragment(Me,T,xe))}loadFragment(t,n,s){const v=this.fragmentTracker.getState(t);v===_n.NOT_LOADED||v===_n.PARTIAL?Ce(t)?this.bitrateTest?(this.log(`Fragment ${t.sn} of level ${t.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(t,n)):super.loadFragment(t,n,s):this._loadInitSegment(t,n):this.clearTrackerIfNeeded(t)}getBufferedFrag(t){return this.fragmentTracker.getBufferedFrag(t,u.MAIN)}followingBufferedFrag(t){return t?this.getBufferedFrag(t.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:t,media:n}=this;if(n!=null&&n.readyState){let s;const v=this.getAppendedFrag(n.currentTime);v&&v.start>1&&this.flushMainBuffer(0,v.start-1);const w=this.getLevelDetails();if(w!=null&&w.live){const j=this.getMainFwdBufferInfo();if(!j||j.len=T-n.maxFragLookUpTolerance&&w<=j;if(v!==null&&s.duration>v&&(w{this.hls&&this.hls.trigger(o.AUDIO_TRACK_SWITCHED,n)}),s.trigger(o.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}s.trigger(o.AUDIO_TRACK_SWITCHED,n)}}onAudioTrackSwitched(t,n){const s=st(n.url,this.hls);if(s){const v=this.videoBuffer;v&&this.mediaBuffer!==v&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=v)}this.altAudio=s?2:0,this.tick()}onBufferCreated(t,n){const s=n.tracks;let v,w,T=!1;for(const j in s){const X=s[j];if(X.id==="main"){if(w=j,v=X,j==="video"){const G=s[j];G&&(this.videoBuffer=G.buffer)}}else T=!0}T&&v?(this.log(`Alternate track found, use ${w}.buffered to schedule main fragment loading`),this.mediaBuffer=v.buffer):this.mediaBuffer=this.media}onFragBuffered(t,n){const{frag:s,part:v}=n,w=s.type===u.MAIN;if(w){if(this.fragContextChanged(s)){this.warn(`Fragment ${s.sn}${v?" p: "+v.index:""} of level ${s.level} finished buffering, but was aborted. state: ${this.state}`),this.state===De.PARSED&&(this.state=De.IDLE);return}const j=v?v.stats:s.stats;this.fragLastKbps=Math.round(8*j.total/(j.buffering.end-j.loading.first)),Ce(s)&&(this.fragPrevious=s),this.fragBufferedComplete(s,v)}const T=this.media;T&&(!this._hasEnoughToStart&&li.getBuffered(T).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),w&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(t,n){var s;if(n.fatal){this.state=De.ERROR;return}switch(n.details){case f.FRAG_GAP:case f.FRAG_PARSING_ERROR:case f.FRAG_DECRYPT_ERROR:case f.FRAG_LOAD_ERROR:case f.FRAG_LOAD_TIMEOUT:case f.KEY_LOAD_ERROR:case f.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(u.MAIN,n);break;case f.LEVEL_LOAD_ERROR:case f.LEVEL_LOAD_TIMEOUT:case f.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===De.WAITING_LEVEL&&((s=n.context)==null?void 0:s.type)===h.LEVEL&&(this.state=De.IDLE);break;case f.BUFFER_ADD_CODEC_ERROR:case f.BUFFER_APPEND_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&this.resetLoadingState();break;case f.BUFFER_FULL_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&(!this.config.interstitialsController&&this.config.assetPlayerId?this._hasEnoughToStart=!0:this.flushMainBuffer(0,Number.POSITIVE_INFINITY));break;case f.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onFragLoadEmergencyAborted(){this.state=De.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(t,{type:n}){if(n!==ie.AUDIO||!this.altAudio){const s=(n===ie.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;s&&(this.afterBufferFlushed(s,n,u.MAIN),this.tick())}}onLevelsUpdated(t,n){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,this.level===-1&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=n.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:t}=this;if(!t)return;const n=t.currentTime;let s=this.startPosition;if(s>=0&&n0&&(X{const{hls:v}=this,w=s==null?void 0:s.frag;if(!w||this.fragContextChanged(w))return;n.fragmentError=0,this.state=De.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const T=w.stats;T.parsing.start=T.parsing.end=T.buffering.start=T.buffering.end=self.performance.now(),v.trigger(o.FRAG_LOADED,s),w.bitrateTest=!1}).catch(s=>{this.state===De.STOPPED||this.state===De.ERROR||(this.warn(s),this.resetFragmentLoading(t))})}_handleTransmuxComplete(t){const n=this.playlistType,{hls:s}=this,{remuxResult:v,chunkMeta:w}=t,T=this.getCurrentContext(w);if(!T){this.resetWhenMissingContext(w);return}const{frag:j,part:X,level:G}=T,{video:ue,text:de,id3:xe,initSegment:Me}=v,{details:Fe}=G,lt=this.altAudio?void 0:v.audio;if(this.fragContextChanged(j)){this.fragmentTracker.removeFragment(j);return}if(this.state=De.PARSING,Me){const ut=Me.tracks;if(ut){const xr=j.initSegment||j;if(this.unhandledEncryptionError(Me,j))return;this._bufferInitSegment(G,ut,xr,w),s.trigger(o.FRAG_PARSING_INIT_SEGMENT,{frag:xr,id:n,tracks:ut})}const Vt=Me.initPTS,Jt=Me.timescale,rr=this.initPTS[j.cc];if(r(Vt)&&(!rr||rr.baseTime!==Vt||rr.timescale!==Jt)){const xr=Me.trackId;this.initPTS[j.cc]={baseTime:Vt,timescale:Jt,trackId:xr},s.trigger(o.INIT_PTS_FOUND,{frag:j,id:n,initPTS:Vt,timescale:Jt,trackId:xr})}}if(ue&&Fe){lt&&ue.type==="audiovideo"&&this.logMuxedErr(j);const ut=Fe.fragments[j.sn-1-Fe.startSN],Vt=j.sn===Fe.startSN,Jt=!ut||j.cc>ut.cc;if(v.independent!==!1){const{startPTS:rr,endPTS:xr,startDTS:jr,endDTS:pn}=ue;if(X)X.elementaryStreams[ue.type]={startPTS:rr,endPTS:xr,startDTS:jr,endDTS:pn};else if(ue.firstKeyFrame&&ue.independent&&w.id===1&&!Jt&&(this.couldBacktrack=!0),ue.dropped&&ue.independent){const Ur=this.getMainFwdBufferInfo(),an=(Ur?Ur.end:this.getLoadPosition())+this.config.maxBufferHole,nn=ue.firstKeyFramePTS?ue.firstKeyFramePTS:rr;if(!Vt&&anIn&&(j.gap=!0);j.setElementaryStreamInfo(ue.type,rr,xr,jr,pn),this.backtrackFragment&&(this.backtrackFragment=j),this.bufferFragmentData(ue,j,X,w,Vt||Jt)}else if(Vt||Jt)j.gap=!0;else{this.backtrack(j);return}}if(lt){const{startPTS:ut,endPTS:Vt,startDTS:Jt,endDTS:rr}=lt;X&&(X.elementaryStreams[ie.AUDIO]={startPTS:ut,endPTS:Vt,startDTS:Jt,endDTS:rr}),j.setElementaryStreamInfo(ie.AUDIO,ut,Vt,Jt,rr),this.bufferFragmentData(lt,j,X,w)}if(Fe&&xe!=null&&xe.samples.length){const ut={id:n,frag:j,details:Fe,samples:xe.samples};s.trigger(o.FRAG_PARSING_METADATA,ut)}if(Fe&&de){const ut={id:n,frag:j,details:Fe,samples:de.samples};s.trigger(o.FRAG_PARSING_USERDATA,ut)}}logMuxedErr(t){this.warn(`${Ce(t)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${t.url}`)}_bufferInitSegment(t,n,s,v){if(this.state!==De.PARSING)return;this.audioOnly=!!n.audio&&!n.video,this.altAudio&&!this.audioOnly&&(delete n.audio,n.audiovideo&&this.logMuxedErr(s));const{audio:w,video:T,audiovideo:j}=n;if(w){const G=t.audioCodec;let ue=tn(w.codec,G);ue==="mp4a"&&(ue="mp4a.40.5");const de=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){ue&&(ue.indexOf("mp4a.40.5")!==-1?ue="mp4a.40.2":ue="mp4a.40.5");const xe=w.metadata;xe&&"channelCount"in xe&&(xe.channelCount||1)!==1&&de.indexOf("firefox")===-1&&(ue="mp4a.40.5")}ue&&ue.indexOf("mp4a.40.5")!==-1&&de.indexOf("android")!==-1&&w.container!=="audio/mpeg"&&(ue="mp4a.40.2",this.log(`Android: force audio codec to ${ue}`)),G&&G!==ue&&this.log(`Swapping manifest audio codec "${G}" for "${ue}"`),w.levelCodec=ue,w.id=u.MAIN,this.log(`Init audio buffer, container:${w.container}, codecs[selected/level/parsed]=[${ue||""}/${G||""}/${w.codec}]`),delete n.audiovideo}if(T){T.levelCodec=t.videoCodec,T.id=u.MAIN;const G=T.codec;if((G==null?void 0:G.length)===4)switch(G){case"hvc1":case"hev1":T.codec="hvc1.1.6.L120.90";break;case"av01":T.codec="av01.0.04M.08";break;case"avc1":T.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${T.container}, codecs[level/parsed]=[${t.videoCodec||""}/${G}]${T.codec!==G?" parsed-corrected="+T.codec:""}${T.supplemental?" supplemental="+T.supplemental:""}`),delete n.audiovideo}j&&(this.log(`Init audiovideo buffer, container:${j.container}, codecs[level/parsed]=[${t.codecs}/${j.codec}]`),delete n.video,delete n.audio);const X=Object.keys(n);if(X.length){if(this.hls.trigger(o.BUFFER_CODECS,n),!this.hls)return;X.forEach(G=>{const de=n[G].initSegment;de!=null&&de.byteLength&&this.hls.trigger(o.BUFFER_APPENDING,{type:G,data:de,frag:s,part:null,chunkMeta:v,parent:s.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const t=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(t,u.MAIN)}get maxBufferLength(){const{levels:t,level:n}=this,s=t==null?void 0:t[n];return s?this.getMaxBufferLength(s.maxBitrate):this.config.maxBufferLength}backtrack(t){this.couldBacktrack=!0,this.backtrackFragment=t,this.resetTransmuxer(),this.flushBufferGap(t),this.fragmentTracker.removeFragment(t),this.fragPrevious=null,this.nextLoadPosition=t.start,this.state=De.IDLE}checkFragmentChanged(){const t=this.media;let n=null;if(t&&t.readyState>1&&t.seeking===!1){const s=t.currentTime;if(li.isBuffered(t,s)?n=this.getAppendedFrag(s):li.isBuffered(t,s+.1)&&(n=this.getAppendedFrag(s+.1)),n){this.backtrackFragment=null;const v=this.fragPlaying,w=n.level;(!v||n.sn!==v.sn||v.level!==w)&&(this.fragPlaying=n,this.hls.trigger(o.FRAG_CHANGED,{frag:n}),(!v||v.level!==w)&&this.hls.trigger(o.LEVEL_SWITCHED,{level:w}))}}}get nextLevel(){const t=this.nextBufferedFrag;return t?t.level:-1}get currentFrag(){var t;if(this.fragPlaying)return this.fragPlaying;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;return r(n)?this.getAppendedFrag(n):null}get currentProgramDateTime(){var t;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;if(r(n)){const s=this.getLevelDetails(),v=this.currentFrag||(s?ur(null,s.fragments,n):null);if(v){const w=v.programDateTime;if(w!==null){const T=w+(n-v.start)*1e3;return new Date(T)}}}return null}get currentLevel(){const t=this.currentFrag;return t?t.level:-1}get nextBufferedFrag(){const t=this.currentFrag;return t?this.followingBufferedFrag(t):null}get forceStartLoad(){return this._forceStartLoad}}class Id extends R{constructor(t,n){super("key-loader",n),this.config=void 0,this.keyIdToKeyInfo={},this.emeController=null,this.config=t}abort(t){for(const s in this.keyIdToKeyInfo){const v=this.keyIdToKeyInfo[s].loader;if(v){var n;if(t&&t!==((n=v.context)==null?void 0:n.frag.type))return;v.abort()}}}detach(){for(const t in this.keyIdToKeyInfo){const n=this.keyIdToKeyInfo[t];(n.mediaKeySessionContext||n.decryptdata.isCommonEncryption)&&delete this.keyIdToKeyInfo[t]}}destroy(){this.detach();for(const t in this.keyIdToKeyInfo){const n=this.keyIdToKeyInfo[t].loader;n&&n.destroy()}this.keyIdToKeyInfo={}}createKeyLoadError(t,n=f.KEY_LOAD_ERROR,s,v,w){return new Bi({type:c.NETWORK_ERROR,details:n,fatal:!1,frag:t,response:w,error:s,networkDetails:v})}loadClear(t,n,s){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(n.length)for(let v=0,w=n.length;v{if(!this.emeController)return;T.setKeyFormat(j);const X=Jo(j);if(X)return this.emeController.getKeySystemAccess([X])})}if(this.config.requireKeySystemAccessOnStart){const v=ko(this.config);if(v.length)return this.emeController.getKeySystemAccess(v)}}return null}load(t){return!t.decryptdata&&t.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(t).then(n=>this.loadInternal(t,n)):this.loadInternal(t)}loadInternal(t,n){var s,v;n&&t.setKeyFormat(n);const w=t.decryptdata;if(!w){const G=new Error(n?`Expected frag.decryptdata to be defined after setting format ${n}`:`Missing decryption data on fragment in onKeyLoading (emeEnabled with controller: ${this.emeController&&this.config.emeEnabled})`);return Promise.reject(this.createKeyLoadError(t,f.KEY_LOAD_ERROR,G))}const T=w.uri;if(!T)return Promise.reject(this.createKeyLoadError(t,f.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${T}"`)));const j=ld(w);let X=this.keyIdToKeyInfo[j];if((s=X)!=null&&s.decryptdata.key)return w.key=X.decryptdata.key,Promise.resolve({frag:t,keyInfo:X});if(this.emeController&&(v=X)!=null&&v.keyLoadPromise)switch(this.emeController.getKeyStatus(X.decryptdata)){case"usable":case"usable-in-future":return X.keyLoadPromise.then(ue=>{const{keyInfo:de}=ue;return w.key=de.decryptdata.key,{frag:t,keyInfo:de}})}switch(this.log(`${this.keyIdToKeyInfo[j]?"Rel":"L"}oading${w.keyId?" keyId: "+Q(w.keyId):""} URI: ${w.uri} from ${t.type} ${t.level}`),X=this.keyIdToKeyInfo[j]={decryptdata:w,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},w.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return w.keyFormat==="identity"?this.loadKeyHTTP(X,t):this.loadKeyEME(X,t);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(X,t);default:return Promise.reject(this.createKeyLoadError(t,f.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${w.method}"`)))}}loadKeyEME(t,n){const s={frag:n,keyInfo:t};if(this.emeController&&this.config.emeEnabled){var v;if(!t.decryptdata.keyId&&(v=n.initSegment)!=null&&v.data){const T=bt(n.initSegment.data);if(T.length){let j=T[0];j.some(X=>X!==0)?(this.log(`Using keyId found in init segment ${Q(j)}`),Lo.setKeyIdForUri(t.decryptdata.uri,j)):(j=Lo.addKeyIdForUri(t.decryptdata.uri),this.log(`Generating keyId to patch media ${Q(j)}`)),t.decryptdata.keyId=j}}if(!t.decryptdata.keyId&&!Ce(n))return Promise.resolve(s);const w=this.emeController.loadKey(s);return(t.keyLoadPromise=w.then(T=>(t.mediaKeySessionContext=T,s))).catch(T=>{throw t.keyLoadPromise=null,"data"in T&&(T.data.frag=n),T})}return Promise.resolve(s)}loadKeyHTTP(t,n){const s=this.config,v=s.loader,w=new v(s);return n.keyLoader=t.loader=w,t.keyLoadPromise=new Promise((T,j)=>{const X={keyInfo:t,frag:n,responseType:"arraybuffer",url:t.decryptdata.uri},G=s.keyLoadPolicy.default,ue={loadPolicy:G,timeout:G.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},de={onSuccess:(xe,Me,Fe,lt)=>{const{frag:ut,keyInfo:Vt}=Fe,Jt=ld(Vt.decryptdata);if(!ut.decryptdata||Vt!==this.keyIdToKeyInfo[Jt])return j(this.createKeyLoadError(ut,f.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),lt));Vt.decryptdata.key=ut.decryptdata.key=new Uint8Array(xe.data),ut.keyLoader=null,Vt.loader=null,T({frag:ut,keyInfo:Vt})},onError:(xe,Me,Fe,lt)=>{this.resetLoader(Me),j(this.createKeyLoadError(n,f.KEY_LOAD_ERROR,new Error(`HTTP Error ${xe.code} loading key ${xe.text}`),Fe,b({url:X.url,data:void 0},xe)))},onTimeout:(xe,Me,Fe)=>{this.resetLoader(Me),j(this.createKeyLoadError(n,f.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),Fe))},onAbort:(xe,Me,Fe)=>{this.resetLoader(Me),j(this.createKeyLoadError(n,f.INTERNAL_ABORTED,new Error("key loading aborted"),Fe))}};w.load(X,ue,de)})}resetLoader(t){const{frag:n,keyInfo:s,url:v}=t,w=s.loader;n.keyLoader===w&&(n.keyLoader=null,s.loader=null);const T=ld(s.decryptdata)||v;delete this.keyIdToKeyInfo[T],w&&w.destroy()}}function ld(D){if(D.keyFormat!==hs.FAIRPLAY){const t=D.keyId;if(t)return Q(t)}return D.uri}function gd(D){const{type:t}=D;switch(t){case h.AUDIO_TRACK:return u.AUDIO;case h.SUBTITLE_TRACK:return u.SUBTITLE;default:return u.MAIN}}function cd(D,t){let n=D.url;return(n===void 0||n.indexOf("data:")===0)&&(n=t.url),n}class td{constructor(t){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=t,this.registerListeners()}startLoad(t){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:t}=this;t.on(o.MANIFEST_LOADING,this.onManifestLoading,this),t.on(o.LEVEL_LOADING,this.onLevelLoading,this),t.on(o.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(o.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.on(o.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:t}=this;t.off(o.MANIFEST_LOADING,this.onManifestLoading,this),t.off(o.LEVEL_LOADING,this.onLevelLoading,this),t.off(o.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(o.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.off(o.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(t){const n=this.hls.config,s=n.pLoader,v=n.loader,w=s||v,T=new w(n);return this.loaders[t.type]=T,T}getInternalLoader(t){return this.loaders[t.type]}resetInternalLoader(t){this.loaders[t]&&delete this.loaders[t]}destroyInternalLoaders(){for(const t in this.loaders){const n=this.loaders[t];n&&n.destroy(),this.resetInternalLoader(t)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(t,n){const{url:s}=n;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:h.MANIFEST,url:s,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(t,n){const{id:s,level:v,pathwayId:w,url:T,deliveryDirectives:j,levelInfo:X}=n;this.load({id:s,level:v,pathwayId:w,responseType:"text",type:h.LEVEL,url:T,deliveryDirectives:j,levelOrTrack:X})}onAudioTrackLoading(t,n){const{id:s,groupId:v,url:w,deliveryDirectives:T,track:j}=n;this.load({id:s,groupId:v,level:null,responseType:"text",type:h.AUDIO_TRACK,url:w,deliveryDirectives:T,levelOrTrack:j})}onSubtitleTrackLoading(t,n){const{id:s,groupId:v,url:w,deliveryDirectives:T,track:j}=n;this.load({id:s,groupId:v,level:null,responseType:"text",type:h.SUBTITLE_TRACK,url:w,deliveryDirectives:T,levelOrTrack:j})}onLevelsUpdated(t,n){const s=this.loaders[h.LEVEL];if(s){const v=s.context;v&&!n.levels.some(w=>w===v.levelOrTrack)&&(s.abort(),delete this.loaders[h.LEVEL])}}load(t){var n;const s=this.hls.config;let v=this.getInternalLoader(t);if(v){const G=this.hls.logger,ue=v.context;if(ue&&ue.levelOrTrack===t.levelOrTrack&&(ue.url===t.url||ue.deliveryDirectives&&!t.deliveryDirectives)){ue.url===t.url?G.log(`[playlist-loader]: ignore ${t.url} ongoing request`):G.log(`[playlist-loader]: ignore ${t.url} in favor of ${ue.url}`);return}G.log(`[playlist-loader]: aborting previous loader for type: ${t.type}`),v.abort()}let w;if(t.type===h.MANIFEST?w=s.manifestLoadPolicy.default:w=y({},s.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),v=this.createInternalLoader(t),r((n=t.deliveryDirectives)==null?void 0:n.part)){let G;if(t.type===h.LEVEL&&t.level!==null?G=this.hls.levels[t.level].details:t.type===h.AUDIO_TRACK&&t.id!==null?G=this.hls.audioTracks[t.id].details:t.type===h.SUBTITLE_TRACK&&t.id!==null&&(G=this.hls.subtitleTracks[t.id].details),G){const ue=G.partTarget,de=G.targetduration;if(ue&&de){const xe=Math.max(ue*3,de*.8)*1e3;w=y({},w,{maxTimeToFirstByteMs:Math.min(xe,w.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(xe,w.maxTimeToFirstByteMs)})}}}const T=w.errorRetry||w.timeoutRetry||{},j={loadPolicy:w,timeout:w.maxLoadTimeMs,maxRetry:T.maxNumRetry||0,retryDelay:T.retryDelayMs||0,maxRetryDelay:T.maxRetryDelayMs||0},X={onSuccess:(G,ue,de,xe)=>{const Me=this.getInternalLoader(de);this.resetInternalLoader(de.type);const Fe=G.data;ue.parsing.start=performance.now(),zo.isMediaPlaylist(Fe)||de.type!==h.MANIFEST?this.handleTrackOrLevelPlaylist(G,ue,de,xe||null,Me):this.handleMasterPlaylist(G,ue,de,xe)},onError:(G,ue,de,xe)=>{this.handleNetworkError(ue,de,!1,G,xe)},onTimeout:(G,ue,de)=>{this.handleNetworkError(ue,de,!0,void 0,G)}};v.load(t,j,X)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:t,startPosition:n},forceStartLoad:s}=this.hls;(t||s)&&(this.hls.logger.log(`${t?"auto":"force"} startLoad with configured startPosition ${n}`),this.hls.startLoad(n))}handleMasterPlaylist(t,n,s,v){const w=this.hls,T=t.data,j=cd(t,s),X=zo.parseMasterPlaylist(T,j);if(X.playlistParsingError){n.parsing.end=performance.now(),this.handleManifestParsingError(t,s,X.playlistParsingError,v,n);return}const{contentSteering:G,levels:ue,sessionData:de,sessionKeys:xe,startTimeOffset:Me,variableList:Fe}=X;this.variableList=Fe,ue.forEach(Jt=>{const{unknownCodecs:rr}=Jt;if(rr){const{preferManagedMediaSource:xr}=this.hls.config;let{audioCodec:jr,videoCodec:pn}=Jt;for(let Ur=rr.length;Ur--;){const an=rr[Ur];Pe(an,"audio",xr)?(Jt.audioCodec=jr=jr?`${jr},${an}`:an,Ht.audio[jr.substring(0,4)]=2,rr.splice(Ur,1)):Pe(an,"video",xr)&&(Jt.videoCodec=pn=pn?`${pn},${an}`:an,Ht.video[pn.substring(0,4)]=2,rr.splice(Ur,1))}}});const{AUDIO:lt=[],SUBTITLES:ut,"CLOSED-CAPTIONS":Vt}=zo.parseMasterPlaylistMedia(T,j,X);lt.length&&!lt.some(rr=>!rr.url)&&ue[0].audioCodec&&!ue[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),lt.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Ki({}),bitrate:0,url:""})),w.trigger(o.MANIFEST_LOADED,{levels:ue,audioTracks:lt,subtitles:ut,captions:Vt,contentSteering:G,url:j,stats:n,networkDetails:v,sessionData:de,sessionKeys:xe,startTimeOffset:Me,variableList:Fe})}handleTrackOrLevelPlaylist(t,n,s,v,w){const T=this.hls,{id:j,level:X,type:G}=s,ue=cd(t,s),de=r(X)?X:r(j)?j:0,xe=gd(s),Me=zo.parseLevelPlaylist(t.data,ue,de,xe,0,this.variableList);if(G===h.MANIFEST){const Fe={attrs:new Ki({}),bitrate:0,details:Me,name:"",url:ue};Me.requestScheduled=n.loading.start+$r(Me,0),T.trigger(o.MANIFEST_LOADED,{levels:[Fe],audioTracks:[],url:ue,stats:n,networkDetails:v,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}n.parsing.end=performance.now(),s.levelDetails=Me,this.handlePlaylistLoaded(Me,t,n,s,v,w)}handleManifestParsingError(t,n,s,v,w){this.hls.trigger(o.ERROR,{type:c.NETWORK_ERROR,details:f.MANIFEST_PARSING_ERROR,fatal:n.type===h.MANIFEST,url:t.url,err:s,error:s,reason:s.message,response:t,context:n,networkDetails:v,stats:w})}handleNetworkError(t,n,s=!1,v,w){let T=`A network ${s?"timeout":"error"+(v?" (status "+v.code+")":"")} occurred while loading ${t.type}`;t.type===h.LEVEL?T+=`: ${t.level} id: ${t.id}`:(t.type===h.AUDIO_TRACK||t.type===h.SUBTITLE_TRACK)&&(T+=` id: ${t.id} group-id: "${t.groupId}"`);const j=new Error(T);this.hls.logger.warn(`[playlist-loader]: ${T}`);let X=f.UNKNOWN,G=!1;const ue=this.getInternalLoader(t);switch(t.type){case h.MANIFEST:X=s?f.MANIFEST_LOAD_TIMEOUT:f.MANIFEST_LOAD_ERROR,G=!0;break;case h.LEVEL:X=s?f.LEVEL_LOAD_TIMEOUT:f.LEVEL_LOAD_ERROR,G=!1;break;case h.AUDIO_TRACK:X=s?f.AUDIO_TRACK_LOAD_TIMEOUT:f.AUDIO_TRACK_LOAD_ERROR,G=!1;break;case h.SUBTITLE_TRACK:X=s?f.SUBTITLE_TRACK_LOAD_TIMEOUT:f.SUBTITLE_LOAD_ERROR,G=!1;break}ue&&this.resetInternalLoader(t.type);const de={type:c.NETWORK_ERROR,details:X,fatal:G,url:t.url,loader:ue,context:t,error:j,networkDetails:n,stats:w};if(v){const xe=(n==null?void 0:n.url)||t.url;de.response=b({url:xe,data:void 0},v)}this.hls.trigger(o.ERROR,de)}handlePlaylistLoaded(t,n,s,v,w,T){const j=this.hls,{type:X,level:G,levelOrTrack:ue,id:de,groupId:xe,deliveryDirectives:Me}=v,Fe=cd(n,v),lt=gd(v);let ut=typeof v.level=="number"&<===u.MAIN?G:void 0;const Vt=t.playlistParsingError;if(Vt){if(this.hls.logger.warn(`${Vt} ${t.url}`),!j.config.ignorePlaylistParsingErrors){j.trigger(o.ERROR,{type:c.NETWORK_ERROR,details:f.LEVEL_PARSING_ERROR,fatal:!1,url:Fe,error:Vt,reason:Vt.message,response:n,context:v,level:ut,parent:lt,networkDetails:w,stats:s});return}t.playlistParsingError=null}if(!t.fragments.length){const Jt=t.playlistParsingError=new Error("No Segments found in Playlist");j.trigger(o.ERROR,{type:c.NETWORK_ERROR,details:f.LEVEL_EMPTY_ERROR,fatal:!1,url:Fe,error:Jt,reason:Jt.message,response:n,context:v,level:ut,parent:lt,networkDetails:w,stats:s});return}switch(t.live&&T&&(T.getCacheAge&&(t.ageHeader=T.getCacheAge()||0),(!T.getCacheAge||isNaN(t.ageHeader))&&(t.ageHeader=0)),X){case h.MANIFEST:case h.LEVEL:if(ut){if(!ue)ut=0;else if(ue!==j.levels[ut]){const Jt=j.levels.indexOf(ue);Jt>-1&&(ut=Jt)}}j.trigger(o.LEVEL_LOADED,{details:t,levelInfo:ue||j.levels[0],level:ut||0,id:de||0,stats:s,networkDetails:w,deliveryDirectives:Me,withoutMultiVariant:X===h.MANIFEST});break;case h.AUDIO_TRACK:j.trigger(o.AUDIO_TRACK_LOADED,{details:t,track:ue,id:de||0,groupId:xe||"",stats:s,networkDetails:w,deliveryDirectives:Me});break;case h.SUBTITLE_TRACK:j.trigger(o.SUBTITLE_TRACK_LOADED,{details:t,track:ue,id:de||0,groupId:xe||"",stats:s,networkDetails:w,deliveryDirectives:Me});break}}}class If{static get version(){return ii}static isMSESupported(){return md()}static isSupported(){return Td()}static getMediaSource(){return ae()}static get Events(){return o}static get MetadataSchema(){return Tn}static get ErrorTypes(){return c}static get ErrorDetails(){return f}static get DefaultConfig(){return If.defaultConfig?If.defaultConfig:za}static set DefaultConfig(t){If.defaultConfig=t}constructor(t={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new ni,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const n=this.logger=H(t.debug||!1,"Hls instance",t.assetPlayerId),s=this.config=en(If.DefaultConfig,t,n);this.userConfig=t,s.progressive&&Qr(s,n);const{abrController:v,bufferController:w,capLevelController:T,errorController:j,fpsController:X}=s,G=new j(this),ue=this.abrController=new v(this),de=new ka(this),xe=s.interstitialsController,Me=xe?this.interstitialsController=new xe(this,If):null,Fe=this.bufferController=new w(this,de),lt=this.capLevelController=new T(this),ut=new X(this),Vt=new td(this),Jt=s.contentSteeringController,rr=Jt?new Jt(this):null,xr=this.levelController=new Cd(this,rr),jr=new Sd(this),pn=new Id(this.config,this.logger),Ur=this.streamController=new _d(this,de,pn),an=this.gapController=new Qa(this,de);lt.setStreamController(Ur),ut.setStreamController(Ur);const nn=[Vt,xr,Ur];Me&&nn.splice(1,0,Me),rr&&nn.splice(1,0,rr),this.networkControllers=nn;const Vr=[ue,Fe,an,lt,ut,jr,de];this.audioTrackController=this.createController(s.audioTrackController,nn);const Dn=s.audioStreamController;Dn&&nn.push(this.audioStreamController=new Dn(this,de,pn)),this.subtitleTrackController=this.createController(s.subtitleTrackController,nn);const Ei=s.subtitleStreamController;Ei&&nn.push(this.subtititleStreamController=new Ei(this,de,pn)),this.createController(s.timelineController,Vr),pn.emeController=this.emeController=this.createController(s.emeController,Vr),this.cmcdController=this.createController(s.cmcdController,Vr),this.latencyController=this.createController(Ad,Vr),this.coreComponents=Vr,nn.push(G);const Qi=G.onErrorOut;typeof Qi=="function"&&this.on(o.ERROR,Qi,G),this.on(o.MANIFEST_LOADED,Vt.onManifestLoaded,Vt)}createController(t,n){if(t){const s=new t(this);return n&&n.push(s),s}return null}on(t,n,s=this){this._emitter.on(t,n,s)}once(t,n,s=this){this._emitter.once(t,n,s)}removeAllListeners(t){this._emitter.removeAllListeners(t)}off(t,n,s=this,v){this._emitter.off(t,n,s,v)}listeners(t){return this._emitter.listeners(t)}emit(t,n,s){return this._emitter.emit(t,n,s)}trigger(t,n){if(this.config.debug)return this.emit(t,t,n);try{return this.emit(t,t,n)}catch(s){if(this.logger.error("An internal error happened while handling event "+t+'. Error message: "'+s.message+'". Here is a stacktrace:',s),!this.triggeringException){this.triggeringException=!0;const v=t===o.ERROR;this.trigger(o.ERROR,{type:c.OTHER_ERROR,details:f.INTERNAL_EXCEPTION,fatal:v,event:t,error:s}),this.triggeringException=!1}}return!1}listenerCount(t){return this._emitter.listenerCount(t)}destroy(){this.logger.log("destroy"),this.trigger(o.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(n=>n.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(n=>n.destroy()),this.coreComponents.length=0;const t=this.config;t.xhrSetup=t.fetchSetup=void 0,this.userConfig=null}attachMedia(t){if(!t||"media"in t&&!t.media){const w=new Error(`attachMedia failed: invalid argument (${t})`);this.trigger(o.ERROR,{type:c.OTHER_ERROR,details:f.ATTACH_MEDIA_ERROR,fatal:!0,error:w});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const n="media"in t,s=n?t.media:t,v=n?t:{media:s};this._media=s,this.trigger(o.MEDIA_ATTACHING,v)}detachMedia(){this.logger.log("detachMedia"),this.trigger(o.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const t=this.bufferController.transferMedia();return this.trigger(o.MEDIA_DETACHING,{transferMedia:t}),t}loadSource(t){this.stopLoad();const n=this.media,s=this._url,v=this._url=$.buildAbsoluteURL(self.location.href,t,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${v}`),n&&s&&(s!==v||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(n)),this.trigger(o.MANIFEST_LOADING,{url:t})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(t=-1,n){this.logger.log(`startLoad(${t+(n?", ":"")})`),this.started=!0,this.resumeBuffering();for(let s=0;s{t.resumeBuffering&&t.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(t=>{t.pauseBuffering&&t.pauseBuffering()}))}get inFlightFragments(){const t={[u.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(t[u.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(t[u.SUBTITLE]=this.subtititleStreamController.inFlightFrag),t}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const t=this._media,n=t==null?void 0:t.currentTime;this.detachMedia(),t&&(this.attachMedia(t),n&&this.startLoad(n))}removeLevel(t){this.levelController.removeLevel(t)}get sessionId(){let t=this._sessionId;return t||(t=this._sessionId=rf()),t}get levels(){const t=this.levelController.levels;return t||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(t){this.logger.log(`set currentLevel:${t}`),this.levelController.manualLevel=t,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(t){this.logger.log(`set nextLevel:${t}`),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(t){this.logger.log(`set loadLevel:${t}`),this.levelController.manualLevel=t}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(t){this.levelController.nextLoadLevel=t}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(t){this.logger.log(`set firstLevel:${t}`),this.levelController.firstLevel=t}get startLevel(){const t=this.levelController.startLevel;return t===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:t}set startLevel(t){this.logger.log(`set startLevel:${t}`),t!==-1&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(t){const n=!!t;n!==this.config.capLevelToPlayerSize&&(n?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=n)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimate():NaN}set bandwidthEstimate(t){this.abrController.resetEstimator(t)}get abrEwmaDefaultEstimate(){const{bwEstimator:t}=this.abrController;return t?t.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimateTTFB():NaN}set autoLevelCapping(t){this._autoLevelCapping!==t&&(this.logger.log(`set autoLevelCapping:${t}`),this._autoLevelCapping=t,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(t){Br(t)&&this._maxHdcpLevel!==t&&(this._maxHdcpLevel=t,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:t,config:{minAutoBitrate:n}}=this;if(!t)return 0;const s=t.length;for(let v=0;v=n)return v;return 0}get maxAutoLevel(){const{levels:t,autoLevelCapping:n,maxHdcpLevel:s}=this;let v;if(n===-1&&t!=null&&t.length?v=t.length-1:v=n,s)for(let w=v;w--;){const T=t[w].attrs["HDCP-LEVEL"];if(T&&T<=s)return w}return v}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(t){this.abrController.nextAutoLevel=t}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(t){var n;return((n=this.audioTrackController)==null?void 0:n.setAudioOption(t))||null}setSubtitleOption(t){var n;return((n=this.subtitleTrackController)==null?void 0:n.setSubtitleOption(t))||null}get allAudioTracks(){const t=this.audioTrackController;return t?t.allAudioTracks:[]}get audioTracks(){const t=this.audioTrackController;return t?t.audioTracks:[]}get audioTrack(){const t=this.audioTrackController;return t?t.audioTrack:-1}set audioTrack(t){const n=this.audioTrackController;n&&(n.audioTrack=t)}get allSubtitleTracks(){const t=this.subtitleTrackController;return t?t.allSubtitleTracks:[]}get subtitleTracks(){const t=this.subtitleTrackController;return t?t.subtitleTracks:[]}get subtitleTrack(){const t=this.subtitleTrackController;return t?t.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(t){const n=this.subtitleTrackController;n&&(n.subtitleTrack=t)}get subtitleDisplay(){const t=this.subtitleTrackController;return t?t.subtitleDisplay:!1}set subtitleDisplay(t){const n=this.subtitleTrackController;n&&(n.subtitleDisplay=t)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(t){this.config.lowLatencyMode=t}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(t){this.latencyController.targetLatency=t}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(t){this.levelController.pathwayPriority=t}get bufferedToEnd(){var t;return!!((t=this.bufferController)!=null&&t.bufferedToEnd)}get interstitialsManager(){var t;return((t=this.interstitialsController)==null?void 0:t.interstitialsManager)||null}getMediaDecodingInfo(t,n=this.allAudioTracks){const s=Ia(n);return Bt(t,s,navigator.mediaCapabilities)}}If.defaultConfig=void 0},53280:function(d,_,e){"use strict";e.d(_,{D:function(){return i}});function r(l,c,f){var o=f||{},h=o.noTrailing,u=h===void 0?!1:h,a=o.noLeading,x=a===void 0?!1:a,p=o.debounceMode,y=p===void 0?void 0:p,m,b=!1,S=0;function k(){m&&clearTimeout(m)}function R(I){var M=I||{},B=M.upcomingOnly,N=B===void 0?!1:B;k(),b=!N}function A(){for(var I=arguments.length,M=new Array(I),B=0;Bl?x?(S=Date.now(),u||(m=setTimeout(y?W:H,l))):H():u!==!0&&(m=setTimeout(y?W:H,y===void 0?l-K:l))}return A.cancel=R,A}function i(l,c,f){var o=f||{},h=o.atBegin,u=h===void 0?!1:h;return r(l,c,{debounceMode:u!==!1})}}},__webpack_module_cache__={};function __webpack_require__(d){var _=__webpack_module_cache__[d];if(_!==void 0)return _.exports;var e=__webpack_module_cache__[d]={id:d,loaded:!1,exports:{}};return __webpack_modules__[d].call(e.exports,e,e.exports,__webpack_require__),e.loaded=!0,e.exports}__webpack_require__.m=__webpack_modules__,function(){__webpack_require__.amdO={}}(),function(){__webpack_require__.n=function(d){var _=d&&d.__esModule?function(){return d.default}:function(){return d};return __webpack_require__.d(_,{a:_}),_}}(),function(){var d=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},_;__webpack_require__.t=function(e,r){if(r&1&&(e=this(e)),r&8||typeof e=="object"&&e&&(r&4&&e.__esModule||r&16&&typeof e.then=="function"))return e;var i=Object.create(null);__webpack_require__.r(i);var l={};_=_||[null,d({}),d([]),d(d)];for(var c=r&2&&e;typeof c=="object"&&!~_.indexOf(c);c=d(c))Object.getOwnPropertyNames(c).forEach(function(f){l[f]=function(){return e[f]}});return l.default=function(){return e},__webpack_require__.d(i,l),i}}(),function(){__webpack_require__.d=function(d,_){for(var e in _)__webpack_require__.o(_,e)&&!__webpack_require__.o(d,e)&&Object.defineProperty(d,e,{enumerable:!0,get:_[e]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(d){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(_,e){return __webpack_require__.f[e](d,_),_},[]))}}(),function(){__webpack_require__.u=function(d){return""+({26:"p__Classrooms__Lists__Graduation__Tasks__Edit__index",67:"p__Message__index",109:"p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index",119:"p__User__ThemeChange__Paths",195:"p__Classrooms__Lists__GroupHomework__Detail__index",201:"p__Classrooms__ThemeChange__Students",264:"p__User__Detail__Order__pages__orderPay__index",292:"p__Classrooms__Lists__Exercise__Add__index",337:"p__Paperlibrary__Random__PreviewEdit__index",479:"p__Classrooms__Lists__GroupHomework__EditWork__index",485:"p__Question__AddOrEdit__BatchAdd__index",508:"p__Forums__Detail__id",518:"p__Shixuns__Detail__Settings__ThemeChange__index",532:"p__ExcellentCourse__index",533:"p__Classrooms__Lists__Video__Statistics__Detail__index",547:"p__Account__index",556:"p__User__Detail__Order__pages__invoice__index",559:"layouts__virtualDetail__index",570:"p__Home__Detail__OnlineNum__index",576:"p__Account__Profile__Edit__index",643:"p__Classrooms__Lists__Polls__QuestionnaireInfo__index",680:"p__Innovation__index",700:"p__tasks__Jupyter__index",737:"p__Classrooms__Lists__CommonHomework__Detail__components__CodeReview__Detail__index",799:"p__User__Detail__Topics__Poll__Detail__index",879:"p__User__ThemeChange__AccountInfo",895:"p__Classrooms__Lists__Video__Items__videoInfo__index",900:"p__User__ThemeChange__Classrooms",906:"p__User__ThemeChange__CareerCertification",921:"p__Classrooms__Lists__Exercise__CodeDetails__index",928:"p__RestFul__Edit__index",1006:"p__RestFul__index",1043:"p__Classrooms__Lists__Graduation__Tasks__index",1045:"p__virtualSpaces__Lists__Knowledge__AddAndEdit__index",1048:"p__Classrooms__Lists__ProgramHomework__Detail__Ranking__index",1070:"p__Innovation__PublicMirror__index",1077:"p__User__ThemeTwoLogin__index",1211:"p__Classrooms__Lists__CommonHomework__EditWork__index",1253:"p__Graduations__Lists__Gradingsummary__index",1257:"p__Classrooms__Lists__ResourceRecommend__index",1276:"p__MoopCases__Success__index",1343:"p__User__Detail__ResourceAllocation__index",1423:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index",1427:"p__Classrooms__Lists__Statistics__index",1450:"p__Classrooms__Lists__ShixunHomeworks__Commitsummary__index",1461:"p__Graduations__Lists__Topics__index",1470:"p__User__Register__index",1475:"p__Shixuns__Detail__Dataset__JupyterData__index",1477:"p__Classrooms__ThemeChange__Assistant",1482:"p__Classrooms__Lists__Graduation__Topics__Edit__index",1512:"p__Classrooms__Lists__Exercise__AnswerCheck__index",1520:"p__Engineering__Lists__StudentList__index",1545:"p__Paperlibrary__Random__ExchangeFromProblemSet__index",1578:"p__Classrooms__Lists__Graduation__Topics__Detail__index",1581:"p__Problemset__Preview__index",1582:"p__Classrooms__Lists__GroupHomework__Add__index",1651:"p__Paths__ThemeChange__Statistics",1657:"p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index",1660:"p__User__QQLogin__index",1674:"p__Classrooms__ClassicCases__index",1678:"p__Classrooms__ThemeChange__Attachment",1713:"p__virtualSpaces__Lists__Settings__index",1717:"layouts__index",1727:"p__Classrooms__Lists__CourseGroup__NotList__index",1754:"p__Classrooms__ThemeChange__Video",1783:"p__virtualSpaces__Lists__Experiment__index",1798:"p__Classrooms__ThemeChange__GroupHomework",1799:"p__Competitions__Entered__Assembly__TeamDateil",1831:"p__Graduations__Index__index",1836:"p__Classrooms__Lists__Attendance__Webview__Teacher__index",1855:"p__MoopCases__InfoPanel__index",1880:"p__User__Detail__Order__pages__apply__index",1897:"p__User__ThemeChange__ClassManagement",1939:"p__User__Detail__Order__index",1953:"p__Problemset__NewItem__index",1962:"p__Classrooms__Lists__Engineering__index",1993:"p__Shixuns__Detail__Dataset__ThemeChange__index",2045:"p__Engineering__Lists__TeacherList__index",2099:"p__Paperlibrary__ThemeChange__index",2102:"p__Classrooms__Lists__Board__Edit__index",2130:"p__Shixuns__Detail__Repository__UploadFile__ThemeChange__index",2141:"p__Shixuns__Detail__Split__index",2203:"p__Classrooms__ThemeChange__ShixunHomeworks",2216:"p__DataSet__Index__index",2240:"p__User__Detail__Videos__Upload__index",2281:"p__Paths__ThemeChange__Detail",2300:"p__Api__index",2303:"p__Classrooms__Lists__CommonHomework__Comment__index",2307:"p__Report__index",2338:"p__Classrooms__Lists__CommonHomework__Review__index",2339:"p__virtualSpaces__Lists__Plan__Detail__index",2396:"p__User__Detail__ResourcesCenter__index",2404:"p__Classrooms__Lists__Template__teacher__index",2412:"p__User__Detail__Videos__index",2425:"p__Classrooms__Lists__Board__Detail__index",2443:"p__Graduations__Lists__StageModule__index",2476:"p__Colleges__index",2501:"p__Search__index",2539:"p__Graduations__Review__index",2548:"p__Engineering__Norm__Detail__index",2570:"p__Competitions__Detail__index",2603:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Add__index",2659:"p__User__Detail__UserPortrait__index",2707:"p__Innovation__MyDataSet__index",2806:"p__User__Detail__Topics__Exercise__Detail__index",2819:"p__Classrooms__Lists__Template__detail__index",2823:"p__Engineering__Navigation__Home__index",2829:"p__Messages__Private__index",2862:"p__User__ThemeChange__ExperImentImg",2865:"p__Innovation__MyMirror__index",2884:"p__Classrooms__Lists__ProgramHomework__Comment__index",3006:"p__Engineering__index",3086:"p__Shixuns__Detail__ForkList__ThemeChange__index",3141:"p__Innovation__Detail__index",3157:"p__User__Detail__ExperImentImg__Add__index",3183:"p__Engineering__Lists__GraduationIndex__index",3212:"p__MoopCases__index",3220:"p__Classrooms__Lists__Video__Upload__index",3247:"p__Paperlibrary__See__index",3260:"p__Paperlibrary__Add__index",3276:"p__Classrooms__Lists__Statistics__UserportraitStatistics__index",3317:"p__Classrooms__Lists__Graduation__Topics__Add__index",3391:"p__Classrooms__Lists__ProgramHomework__Detail__components__CodeReview__Detail__index",3433:"p__Classrooms__Lists__Exercise__Sumup__Edit__index",3442:"p__Classrooms__Lists__Board__Add__index",3447:"p__User__Detail__Order__pages__orderInformation__index",3451:"p__Classrooms__Lists__Statistics__StudentStatistics__Detail__index",3509:"p__HttpStatus__SixActivities",3581:"p__Shixuns__Detail__Collaborators__ThemeChange__index",3585:"p__Classrooms__Lists__Statistics__StudentSituation__index",3668:"p__Classrooms__Lists__CommonHomework__Detail__index",3747:"p__virtualSpaces__Lists__Homepage__index",3784:"p__Paperlibrary__Random__Detail__index",3831:"p__User__ThemeChange__VirtualSpaces",3862:"p__HttpStatus__403",3873:"p__virtualSpaces__Lists__Lesson__index",3910:"p__HttpStatus__introduction",3951:"p__Classrooms__Lists__ProgramHomework__Detail__index",4017:"p__Classrooms__Lists__PlaceholderPage__index",4030:"p__Classrooms__Lists__ProgramHomework__AddAndEdit__index",4048:"p__Forums__ThemeChange__index",4056:"p__IntrainCourse__index",4058:"p__Demo__index",4078:"p__Messages__Tidings__index",4093:"p__Classrooms__Lists__Attendance__Detail__index",4105:"p__Classrooms__Lists__Exercise__Answer__index",4144:"p__Problemset__Preview__New__index",4164:"p__Classrooms__Lists__Exercise__Detail__index",4216:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Edit__index",4217:"p__Classrooms__Lists__Video__Statistics__index",4227:"p__Paths__Overview__index",4259:"p__User__Detail__Order__pages__result__index",4264:"p__Forums__New__index",4297:"p__Classrooms__ThemeChange__Polls",4449:"p__Competitions__Exports__index",4492:"p__Graduations__Lists__StudentSelection__index",4496:"p__HttpStatus__HpcCourse",4498:"p__Shixuns__Edit__body__Level__Challenges__NewPractice__index",4504:"p__virtualSpaces__Lists__Survey__index",4514:"p__Account__Results__index",4520:"p__Account__Secure__index",4546:"p__Engineering__Lists__TrainingProgram__Add__index",4565:"p__HttpStatus__500",4572:"p__Classrooms__Lists__ExportList__index",4599:"p__Problemset__index",4610:"p__User__Detail__LearningPath__index",4621:"p__Administration__Profession__index",4662:"p__Classrooms__Lists__GroupHomework__Review__index",4715:"p__virtualSpaces__Lists__Material__Detail__index",4736:"p__User__Detail__Projects__index",4741:"p__Problems__OjForm__NewEdit__index",4757:"p__virtualSpaces__Lists__Workplace__index",4766:"p__Administration__index",4770:"p__Classrooms__Lists__ProgramHomework__Detail__answer__index",4795:"p__Classrooms__Lists__Graduation__Tasks__Add__index",4800:"p__Engineering__Lists__GraduatedMatrix__index",4889:"p__Classrooms__Lists__Exercise__ImitateAnswer__index",4928:"p__Classrooms__Lists__LearningPath__index",4944:"p__Classrooms__Lists__Statistics__ZbStatistics__StudentDetail__index",4973:"p__Engineering__Evaluate__List__index",4994:"p__Problems__OjForm__index",5022:"p__Graduations__Lists__Settings__index",5043:"p__User__Detail__Topics__Poll__Edit__index",5048:"p__Classrooms__Lists__Graduation__Topics__index",5096:"p__Shixuns__Detail__AuditSituation__index",5111:"p__Terminal__index",5117:"p__User__ThemeChange__Certificate",5125:"p__Classrooms__Lists__Exercise__DetailedAnalysis__index",5148:"p__Classrooms__Lists__Polls__Answer__index",5165:"p__User__ThemeChange__Topics",5176:"p__User__Detail__Videos__Protocol__index",5177:"p__Classrooms__ThemeChange__Teachers",5179:"p__Administration__Student__Edit__index",5186:"p__Classrooms__Overview__index",5230:"p__Shixuns__Detail__Repository__AddFile__ThemeChange__index",5238:"p__virtualSpaces__Lists__Material__index",5297:"p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail__index",5307:"p__Shixuns__ThemeChange__New",5319:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index",5330:"p__Classrooms__ThemeChange__ShixunHomeworksComment",5335:"p__Engineering__Lists__CourseMatrix__index",5357:"p__Engineering__Lists__TrainingProgram__Edit__index",5359:"p__Messages__Detail__index",5382:"p__DataSet__Detail__index",5402:"p__User__Detail__Topics__Detail__index",5466:"p__Classrooms__ThemeChange__LiveVideo",5518:"p__Classrooms__Lists__Template__index",5549:"p__Shixuns__New__CreateImg__index",5572:"p__Paths__HigherVocationalEducation__index",5573:"p__Shixuns__Detail__Merge__index",5624:"p__Graduations__Lists__Index__index",5650:"p__Competitions__Update__index",5694:"p__Classrooms__ThemeChange__ShixunHomeworksDetail",5705:"p__virtualSpaces__Lists__Construction__index",5729:"p__Help__Index",5775:"p__Engineering__Lists__Document__index",5776:"p__User__ThemeChange__RealNameCertification",5786:"layouts__LoginAndRegister__index",5798:"p__Classrooms__Lists__Video__Statistics__UserDetail__index",5800:"p__User__ThemeChange__Competitions",5816:"p__Paperlibrary__Random__Edit__index",5823:"p__Classrooms__Lists__Statistics__ZbStatistics__index",5888:"p__Classrooms__Lists__CommonHomework__Add__index",5891:"p__virtualSpaces__Lists__Resources__index",5894:"p__Shixuns__Detail__Repository__Commit__ThemeChange__index",5902:"p__Classrooms__Lists__Exercise__Sumup__index",5915:"p__knowledgegraph__Detail__Statistics__index",5972:"layouts__user__index",5992:"p__Classrooms__Lists__Exercise__ReviewGroup__index",6029:"p__Administration__Student__index",6034:"p__HttpStatus__UserAgents",6063:"p__Graduations__Lists__Personmanage__index",6069:"p__virtualSpaces__Lists__Lesson__Detail__index",6080:"p__Paths__ThemeChange__New",6127:"p__Classrooms__Lists__ProgramHomework__Ranking__index",6170:"p__HttpStatus__downloadStudent",6185:"p__Classrooms__ThemeChange__Announcement",6265:"p__virtualSpaces__Lists__Discussion__index",6270:"p__MyProblem__index",6282:"p__Classrooms__ThemeChange__ProgramHomework",6328:"p__Shixuns__Edit__body__Warehouse__index",6366:"p__Innovation__PublicProject__index",6434:"p__User__Detail__Order__pages__records__index",6444:"p__Video__Detail__id",6451:"p__Shixuns__Detail__RankingList__ThemeChange__index",6452:"p__Innovation__PublicDataSet__index",6531:"p__HttpStatus__404",6583:"p__User__Detail__Classrooms__index",6587:"p__User__Detail__Videos__Protocol__resource",6634:"p__Innovation__Tasks__index",6637:"p__Shixuns__Detail__Repository__ThemeChange__index",6651:"p__Engineering__Evaluate__Detail__index",6682:"p__User__ThemeChange__Shixuns",6685:"p__Classrooms__Index__index",6729:"p__Classrooms__Lists__GroupHomework__Edit__index",6741:"p__Engineering__Norm__List__index",6776:"p__Classrooms__ThemeChange__Exercise",6784:"p__Innovation__Edit__index",6788:"p__Home__Detail__ShixunContext__Detail__index",6789:"p__Classrooms__ThemeChange__index",6796:"p__virtualSpaces__Lists__Announcement__Detail__index",6820:"p__User__Detail__Topics__Normal__index",6882:"p__Classrooms__New__StartClass__index",6904:"p__MoopCases__FormPanel__index",6913:"p__Question__AddOrEdit__index",6963:"p__Classrooms__Lists__Engineering__Detail__index",7043:"p__User__Detail__Topics__Exercise__Edit__index",7045:"p__Classrooms__Lists__CommonHomework__SubmitWork__index",7058:"p__virtualSpaces__Lists__Survey__Detail__index",7062:"layouts__SimpleLayouts",7099:"p__Competitions__ThemeChange__index",7178:"p__User__BindAccount__index",7182:"p__User__ResetPassword__index",7224:"p__StatsDashboard__index",7242:"p__Innovation__MyProject__index",7260:"p__Account__Certification__index",7289:"p__tasks__ThemeChange__index",7322:"layouts__ThemeChange__ShixunDetail",7323:"p__Classrooms__ThemeChange__New",7329:"p__Classrooms__ThemeChange__Attendance",7333:"p__User__WechatLogin__index",7395:"p__Classrooms__Lists__Statistics__StudentDetail__index",7402:"p__User__ThemeChange__OtherResources",7460:"p__Question__OjProblem__index",7477:"p__virtualSpaces__Lists__Announcement__index",7482:"p__Classrooms__Lists__Exercise__Notice__index",7527:"p__MyProblem__RecordDetail__index",7545:"p__Graduations__Lists__Archives__index",7560:"p__Administration__College__index",7589:"p__virtualSpaces__Lists__DigitalTopics__index",7614:"p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index",7622:"p__Classrooms__Lists__Polls__Detail__index",7806:"p__Classrooms__Lists__Statistics__StatisticsQuality__index",7835:"p__Problemset__ThemeChange__index",7855:"p__User__Detail__ResourcesCenter__Detail__index",7857:"p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index",7883:"p__Classrooms__Lists__Exercise__WrongAnswer__index",7884:"p__Shixuns__Exports__index",7901:"p__Guidance__ThemeChange",7922:"p__Classrooms__Lists__CourseGroup__Detail__index",8062:"p__User__Detail__Topicbank__index",8072:"p__Classrooms__Lists__GroupHomework__SubmitWork__index",8085:"p__Classrooms__Lists__Exercise__Review__index",8115:"p__User__ThemeChange__DataSet",8143:"layouts__GraduationsDetail__index",8145:"p__User__ThemeChange__ClassManagementItem",8155:"p__Shixuns__Overview__index",8217:"p__User__ThemeChange__AccountInfoEdit",8237:"p__User__Detail__Order__pages__view__index",8241:"p__virtualSpaces__Lists__Plan__index",8286:"p__User__ThemeChange__ExperImentImgDetail",8332:"p__User__ThemeChange__Detail",8340:"p__Classrooms__Lists__Attendance__Webview__Student__index",8365:"p__Home__Detail__ShixunContext__index",8398:"p__virtualSpaces__Lists__Resources__Detail__index",8431:"p__Classrooms__Lists__Exercise__Export__index",8435:"p__Classrooms__Lists__Attendance__index",8447:"p__virtualSpaces__Lists__Knowledge__index",8458:"p__Classrooms__ThemeChange__CommonHomework",8479:"p__User__ThemeChange__TeachGroup",8517:"p__User__Detail__Topics__Group__index",8552:"p__Shixuns__ThemeChange__index",8563:"p__virtualSpaces__Lists__Discussion__Detail__index",8579:"p__Competitions__ThemeChange__Edit",8639:"p__Forums__Index__redirect",8665:"p__Engineering__Lists__TrainingObjectives__index",8688:"p__Shixuns__Detail__Repository__index",8689:"p__Classrooms__Lists__Statistics__VideoStatistics__index",8723:"p__Classrooms__Lists__Polls__Edit__index",8787:"p__Competitions__Entered__index",8823:"p__knowledgegraph__Detail__id",8827:"p__Classrooms__Lists__OnlineLearning__index",8866:"p__index",8882:"p__Classrooms__Lists__Graduation__Tasks__Detail__index",8885:"p__Classrooms__Lists__Statistics__StudentStatistics__index",8965:"p__Shixuns__Detail__Discuss__ThemeChange__index",8999:"p__Three__index",9039:"p__Classrooms__ThemeChange__CourseGroup",9076:"p__Account__Binding__index",9205:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index",9366:"p__User__Login__index",9391:"p__Engineering__Lists__CurseSetting__index",9404:"monaco-editor",9406:"p__Classrooms__ThemeChange__Board",9416:"p__Graduations__Lists__Tasks__index",9417:"p__Shixuns__ThemeOne__Detail__SkillTags__index",9449:"p__Shixuns__ThemeChange__Detail",9487:"p__LargeScreen__index",9489:"p__Engineering__Lists__CourseList__index",9507:"p__User__Detail__ResourceGuarantee__index",9511:"p__Shixuns__ThemeChange__Edit",9647:"p__Question__Index__index",9649:"p__Engineering__Lists__TrainingProgram__index",9674:"p__Shixuns__New__ImagePreview__index",9677:"p__virtualSpaces__Lists__Announcement__AddAndEdit__index",9695:"p__Classrooms__Lists__Polls__Add__index",9715:"p__Classrooms__Lists__CommonHomework__Edit__index",9716:"p__Question__OjProblem__RecordDetail__index",9785:"p__Classrooms__Lists__Template__student__index",9788:"p__Account__Profile__index",9814:"p__Shixuns__Detail__Challenges__ThemeChange__index",9891:"p__User__Detail__Videos__Success__index",9906:"p__Paths__ThemeChange__index",9921:"p__Classrooms__ExamList__index",9922:"p__Classrooms__Lists__Statistics__StudentVideo__index",9944:"p__Classrooms__Lists__Video__Statistics__StudentDetail__index"}[d]||d)+"."+{26:"e00d29e8",67:"4431283b",109:"36903c61",119:"77ff516e",195:"a29ef434",201:"5ab0eda5",264:"76f4c29e",292:"d802d844",316:"1f60ada6",337:"480447af",354:"d4d139cf",479:"cd1bc62e",485:"c881156b",508:"c66fc33d",518:"560ee96a",532:"6efe504e",533:"30594b13",547:"9db75212",556:"68ab9ae5",559:"70015a9e",570:"85b961ed",576:"0c6d4a12",629:"44a1d9a5",643:"7025b18e",671:"4a609b8d",680:"c1be65f9",700:"89b43118",737:"408c8d28",741:"ac5fd360",799:"33b1a603",879:"102fc3fa",895:"9e89d2bb",900:"b958bcbd",906:"b2c21b19",921:"80092406",928:"ae1bf1be",981:"24da50c7",1003:"73ab34d7",1006:"d73e5ea5",1043:"a797e82f",1045:"2800ae6e",1048:"a97a0d6a",1070:"f444905c",1077:"f64ec642",1144:"c90eccaf",1154:"8cb80842",1211:"1c26d131",1253:"3d67c120",1257:"5aec6ece",1274:"5f6ea65a",1276:"91b0591a",1343:"bae9b845",1423:"212edd01",1427:"5c6b6e03",1450:"3f79370b",1461:"e5b9df08",1462:"fcf08abc",1470:"73c4e959",1475:"55fa8622",1477:"77beded3",1482:"85cc9467",1512:"1fe4a8be",1520:"8c55e9ec",1545:"940746e5",1578:"d28a2030",1581:"544fe920",1582:"e3326415",1646:"e6e27b60",1651:"09349f36",1657:"44ada0e0",1660:"ec51306c",1674:"eae458ca",1678:"6fd9c75c",1713:"dd5948b0",1717:"6226196c",1727:"0b8cd4ab",1731:"547ed6d2",1754:"f74cc373",1783:"340e4dd6",1798:"ebccf262",1799:"3ca6f85b",1831:"24772145",1836:"647614b3",1855:"456cfe5c",1880:"cde1e643",1897:"33211e6f",1939:"1339cbc6",1953:"070730a5",1962:"7151933f",1993:"e8126f2b",2011:"59d51f98",2045:"ab21eede",2099:"6aa509f8",2102:"94533926",2130:"4609e429",2141:"e41e5c5b",2203:"277785b2",2216:"ffdff73b",2240:"a409e074",2249:"f4830452",2281:"842925b0",2300:"624da73e",2303:"d0955371",2307:"6be8004a",2338:"a8c5d4b5",2339:"e6d2554e",2386:"192e235c",2396:"d574af20",2404:"01e1472f",2412:"049f69ae",2425:"a851a54f",2443:"cbd65e4c",2450:"4b769401",2476:"b9e9c5f4",2494:"68080a87",2501:"3635e75c",2538:"de4a3723",2539:"6ed3bc47",2548:"bf0d459a",2570:"5d53bae4",2594:"e87d3761",2603:"6ad933b2",2659:"2a5c040b",2707:"0e83213a",2806:"70dece10",2819:"ad7869be",2823:"3aca8a20",2829:"4afa3a2a",2837:"54a82605",2862:"2aa32f74",2865:"bd7f5fe4",2884:"22fc4d4d",2969:"ab3357d7",3006:"db89c614",3086:"6dfd32f6",3133:"9bf3f89c",3141:"9cb80922",3157:"aa9f867f",3183:"8a38973e",3198:"8e655451",3212:"e499918b",3220:"5f3e7a32",3247:"5c99e4b6",3260:"bc2bf005",3276:"8ea641d0",3317:"7d461d80",3391:"14aa0d72",3433:"362e20ac",3442:"ae98a379",3447:"548c9013",3451:"f48e5d9d",3509:"1a39687f",3550:"3dc83156",3581:"55e85b19",3585:"99d50f15",3668:"5858a88f",3697:"481a10d9",3747:"b2d0dcc7",3754:"902b9539",3777:"d5b0f2f1",3784:"123dd6ef",3805:"9dbcb95e",3831:"456f4285",3862:"7aa55914",3873:"ad89f702",3885:"f87f7f15",3910:"ae9f037a",3951:"e7d943b1",3987:"5cecd51b",4014:"27a8e97c",4017:"661fb235",4030:"fde074ba",4048:"75207c4c",4056:"f1832c57",4058:"ab5c3fdb",4078:"8d5d5fd7",4088:"236723f3",4093:"aa726877",4105:"2a13ad19",4144:"7850cd9c",4164:"aade9c4e",4216:"7884971a",4217:"f0233f01",4227:"0e4ef8b1",4259:"7bec4715",4264:"c585577b",4297:"8850a72e",4347:"ce21ef2e",4354:"140899b7",4360:"cf5efa52",4449:"92f0e82d",4492:"ba72b641",4496:"34caa754",4498:"fa1dcc61",4504:"8ef64f6c",4514:"3b06ad05",4520:"e42388b9",4546:"68c9d4d6",4565:"a2adb025",4572:"1527055c",4599:"61def4cb",4610:"7c72795e",4621:"bf909089",4628:"ece2c60c",4662:"934fc17c",4685:"c33f1528",4715:"5ce17d53",4736:"4eeada15",4741:"243633c3",4757:"f9640552",4766:"0cf83363",4770:"b8c5a4a5",4790:"619413e4",4795:"0707cfb4",4797:"a24e92db",4800:"adcb7c2a",4850:"1edda4b7",4889:"953fbd7a",4928:"9e322228",4944:"ab5d8fec",4973:"8319ad1e",4994:"84630e42",5022:"51533f5d",5043:"18b216cf",5048:"f216f88b",5060:"85dafcc6",5096:"bbbc5903",5111:"dd4105f1",5117:"f47ec05d",5125:"67b2924e",5148:"8bb5dae4",5165:"719a26d2",5176:"1793c371",5177:"2dfabc40",5179:"4e8fcebb",5186:"5c968d4c",5230:"5f0f6184",5238:"4989a055",5290:"5dabcdc2",5297:"d3fd6dc0",5307:"d86d3629",5319:"56dfa369",5321:"1163c84e",5330:"5687deb5",5335:"7499ce5b",5354:"7ae70604",5357:"79f523ff",5359:"c85ebe86",5382:"ce61a020",5402:"3190a402",5416:"454536b7",5434:"38b302a6",5466:"d377d96e",5494:"d89549c4",5518:"2459b270",5549:"97c41611",5572:"34d4bb96",5573:"215c5ba4",5624:"e48d88ae",5631:"e00d3d36",5650:"8fdbf80d",5679:"4a090bef",5694:"622ddf28",5705:"fbfe57db",5729:"3426c061",5764:"e0d7e586",5775:"cc6c47c4",5776:"7da82462",5786:"08913526",5795:"cf69d0fc",5798:"9e5812a0",5800:"f88c8790",5816:"5286df55",5823:"a8d1eafb",5860:"2ef62ffb",5876:"5eded409",5888:"353f1eac",5891:"59d06ee5",5894:"9f049b0a",5902:"d3d19aad",5911:"37e9f683",5915:"5e421193",5972:"dc86e689",5992:"1046742e",6029:"8a8d3757",6034:"fb70b929",6045:"d268f87f",6047:"3ce45acd",6063:"07906265",6069:"d4cea048",6080:"4668b76a",6126:"99519171",6127:"be3058fc",6170:"50fd637f",6185:"dc165700",6265:"7bfd0f18",6270:"5a33eaf5",6282:"0877e1a4",6328:"8af19232",6366:"8e9ddad8",6378:"7f3a946a",6411:"9f8cd1ac",6434:"4b3f394b",6444:"418148f5",6451:"6c57e4d1",6452:"8d93931a",6531:"bb93427f",6583:"de16d0b9",6587:"649110d6",6634:"0ae86df4",6637:"ce3fbe6a",6651:"e57570c1",6682:"7795b470",6685:"c225a9f3",6729:"591d7cd9",6741:"e16c744b",6774:"59d4d618",6776:"96743a66",6784:"91dceca9",6788:"da9f1861",6789:"2202f9f0",6796:"1787c451",6820:"f00704c2",6882:"bc8dca0b",6904:"1b2e7ec9",6913:"786304f7",6963:"d3d031d6",7043:"bf777200",7045:"f66d0461",7058:"bab616f4",7062:"21a0bd7d",7084:"46ccce72",7099:"201c78d5",7156:"e7466006",7178:"173d8879",7182:"ff521607",7224:"588538bd",7242:"e5d3ece9",7260:"a79fbfce",7289:"23230df2",7322:"02f3086e",7323:"00379244",7329:"1665d7a2",7333:"9be5a3ff",7365:"1005464f",7395:"4beb4daa",7402:"4744b815",7460:"0e0918bb",7477:"fbbd2a90",7482:"a92f11a5",7502:"31f52e5c",7527:"908d25cd",7545:"eeca11d6",7560:"e802d9c9",7589:"aba2dc51",7591:"c8233ce9",7614:"1c6bbd74",7622:"963e9600",7686:"4fcec9f9",7699:"2ed178b2",7706:"c2a79e40",7806:"d278c6f2",7835:"d7403cf9",7855:"d53c0076",7857:"c8f3067a",7883:"b7c50a20",7884:"00f49609",7901:"48637486",7922:"8154f358",7964:"29aed9a1",8062:"d93caf4b",8072:"7b5abb84",8085:"ed6d7671",8089:"d536b13a",8115:"81920fb8",8143:"ef6be34d",8145:"c59e6866",8155:"ddf42751",8161:"83c5fa9a",8214:"de5c9772",8217:"de67a48b",8237:"dd8c63c9",8241:"cace3785",8286:"1bb63baf",8302:"55794970",8332:"a88b9369",8340:"ec0feeeb",8350:"07df8a75",8365:"a60876a8",8398:"2fe6b831",8431:"10fc8c3f",8435:"29ffda57",8447:"a3636402",8458:"699241e9",8461:"c4b93b00",8479:"d7528efa",8517:"d5e8647d",8552:"2e676bd8",8561:"333e8ec9",8563:"c6c31f9a",8579:"fde23efd",8639:"27462b9c",8640:"36a9b60b",8665:"8f50ab80",8688:"c299c854",8689:"f58f590e",8723:"411aa554",8737:"ce7dad23",8776:"0ad26240",8787:"56dfcb85",8823:"23a23461",8827:"bd504d04",8842:"9f25a3e2",8866:"70d2de69",8882:"c2269de2",8885:"4cad09d2",8898:"d002bcd8",8909:"f8e19b87",8920:"7f82440c",8954:"347a192d",8963:"790aecdd",8965:"a1afe8fc",8999:"c7505d4c",9039:"ec42cb2d",9076:"03834dec",9104:"bbcb2345",9176:"13c0f500",9205:"c46c7353",9252:"0d791a59",9260:"cf5f8140",9366:"772cee2a",9391:"6b90e452",9404:"9fcc3d3e",9406:"c677a118",9416:"2c8ff2c9",9417:"926a691e",9449:"59897dda",9487:"66ce957a",9489:"0597b53c",9507:"a80d315b",9511:"a4e914b2",9554:"ed358e7b",9559:"f794af19",9647:"e1f1aa30",9649:"7bda8259",9674:"8acfd631",9677:"3f0a9162",9695:"fdc46f88",9715:"9a9ab706",9716:"b21884c0",9785:"4df0a975",9788:"10524069",9814:"4145522b",9875:"22b5a5f5",9891:"ccbea3cc",9895:"b8e31ff2",9906:"5bfb2a07",9921:"1aa6f465",9922:"55aee1a5",9928:"5989f5e0",9944:"3c5fe76d",9950:"74f6dfb2",9968:"17466785"}[d]+".async.js"}}(),function(){__webpack_require__.miniCssF=function(d){return""+({26:"p__Classrooms__Lists__Graduation__Tasks__Edit__index",67:"p__Message__index",109:"p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index",119:"p__User__ThemeChange__Paths",195:"p__Classrooms__Lists__GroupHomework__Detail__index",201:"p__Classrooms__ThemeChange__Students",264:"p__User__Detail__Order__pages__orderPay__index",292:"p__Classrooms__Lists__Exercise__Add__index",337:"p__Paperlibrary__Random__PreviewEdit__index",479:"p__Classrooms__Lists__GroupHomework__EditWork__index",485:"p__Question__AddOrEdit__BatchAdd__index",508:"p__Forums__Detail__id",518:"p__Shixuns__Detail__Settings__ThemeChange__index",532:"p__ExcellentCourse__index",533:"p__Classrooms__Lists__Video__Statistics__Detail__index",547:"p__Account__index",556:"p__User__Detail__Order__pages__invoice__index",559:"layouts__virtualDetail__index",576:"p__Account__Profile__Edit__index",643:"p__Classrooms__Lists__Polls__QuestionnaireInfo__index",680:"p__Innovation__index",700:"p__tasks__Jupyter__index",737:"p__Classrooms__Lists__CommonHomework__Detail__components__CodeReview__Detail__index",799:"p__User__Detail__Topics__Poll__Detail__index",879:"p__User__ThemeChange__AccountInfo",895:"p__Classrooms__Lists__Video__Items__videoInfo__index",900:"p__User__ThemeChange__Classrooms",906:"p__User__ThemeChange__CareerCertification",921:"p__Classrooms__Lists__Exercise__CodeDetails__index",928:"p__RestFul__Edit__index",1006:"p__RestFul__index",1043:"p__Classrooms__Lists__Graduation__Tasks__index",1045:"p__virtualSpaces__Lists__Knowledge__AddAndEdit__index",1048:"p__Classrooms__Lists__ProgramHomework__Detail__Ranking__index",1070:"p__Innovation__PublicMirror__index",1077:"p__User__ThemeTwoLogin__index",1211:"p__Classrooms__Lists__CommonHomework__EditWork__index",1253:"p__Graduations__Lists__Gradingsummary__index",1257:"p__Classrooms__Lists__ResourceRecommend__index",1276:"p__MoopCases__Success__index",1343:"p__User__Detail__ResourceAllocation__index",1423:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index",1427:"p__Classrooms__Lists__Statistics__index",1450:"p__Classrooms__Lists__ShixunHomeworks__Commitsummary__index",1461:"p__Graduations__Lists__Topics__index",1470:"p__User__Register__index",1475:"p__Shixuns__Detail__Dataset__JupyterData__index",1477:"p__Classrooms__ThemeChange__Assistant",1482:"p__Classrooms__Lists__Graduation__Topics__Edit__index",1512:"p__Classrooms__Lists__Exercise__AnswerCheck__index",1520:"p__Engineering__Lists__StudentList__index",1545:"p__Paperlibrary__Random__ExchangeFromProblemSet__index",1578:"p__Classrooms__Lists__Graduation__Topics__Detail__index",1581:"p__Problemset__Preview__index",1582:"p__Classrooms__Lists__GroupHomework__Add__index",1651:"p__Paths__ThemeChange__Statistics",1657:"p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index",1674:"p__Classrooms__ClassicCases__index",1678:"p__Classrooms__ThemeChange__Attachment",1713:"p__virtualSpaces__Lists__Settings__index",1717:"layouts__index",1727:"p__Classrooms__Lists__CourseGroup__NotList__index",1754:"p__Classrooms__ThemeChange__Video",1783:"p__virtualSpaces__Lists__Experiment__index",1798:"p__Classrooms__ThemeChange__GroupHomework",1831:"p__Graduations__Index__index",1836:"p__Classrooms__Lists__Attendance__Webview__Teacher__index",1855:"p__MoopCases__InfoPanel__index",1880:"p__User__Detail__Order__pages__apply__index",1897:"p__User__ThemeChange__ClassManagement",1939:"p__User__Detail__Order__index",1953:"p__Problemset__NewItem__index",1962:"p__Classrooms__Lists__Engineering__index",1993:"p__Shixuns__Detail__Dataset__ThemeChange__index",2045:"p__Engineering__Lists__TeacherList__index",2099:"p__Paperlibrary__ThemeChange__index",2102:"p__Classrooms__Lists__Board__Edit__index",2130:"p__Shixuns__Detail__Repository__UploadFile__ThemeChange__index",2141:"p__Shixuns__Detail__Split__index",2203:"p__Classrooms__ThemeChange__ShixunHomeworks",2216:"p__DataSet__Index__index",2240:"p__User__Detail__Videos__Upload__index",2281:"p__Paths__ThemeChange__Detail",2303:"p__Classrooms__Lists__CommonHomework__Comment__index",2307:"p__Report__index",2338:"p__Classrooms__Lists__CommonHomework__Review__index",2339:"p__virtualSpaces__Lists__Plan__Detail__index",2396:"p__User__Detail__ResourcesCenter__index",2404:"p__Classrooms__Lists__Template__teacher__index",2412:"p__User__Detail__Videos__index",2425:"p__Classrooms__Lists__Board__Detail__index",2443:"p__Graduations__Lists__StageModule__index",2476:"p__Colleges__index",2501:"p__Search__index",2539:"p__Graduations__Review__index",2548:"p__Engineering__Norm__Detail__index",2570:"p__Competitions__Detail__index",2603:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Add__index",2659:"p__User__Detail__UserPortrait__index",2707:"p__Innovation__MyDataSet__index",2806:"p__User__Detail__Topics__Exercise__Detail__index",2819:"p__Classrooms__Lists__Template__detail__index",2823:"p__Engineering__Navigation__Home__index",2829:"p__Messages__Private__index",2862:"p__User__ThemeChange__ExperImentImg",2865:"p__Innovation__MyMirror__index",2884:"p__Classrooms__Lists__ProgramHomework__Comment__index",3006:"p__Engineering__index",3086:"p__Shixuns__Detail__ForkList__ThemeChange__index",3141:"p__Innovation__Detail__index",3157:"p__User__Detail__ExperImentImg__Add__index",3183:"p__Engineering__Lists__GraduationIndex__index",3212:"p__MoopCases__index",3220:"p__Classrooms__Lists__Video__Upload__index",3247:"p__Paperlibrary__See__index",3260:"p__Paperlibrary__Add__index",3276:"p__Classrooms__Lists__Statistics__UserportraitStatistics__index",3317:"p__Classrooms__Lists__Graduation__Topics__Add__index",3391:"p__Classrooms__Lists__ProgramHomework__Detail__components__CodeReview__Detail__index",3433:"p__Classrooms__Lists__Exercise__Sumup__Edit__index",3442:"p__Classrooms__Lists__Board__Add__index",3447:"p__User__Detail__Order__pages__orderInformation__index",3451:"p__Classrooms__Lists__Statistics__StudentStatistics__Detail__index",3509:"p__HttpStatus__SixActivities",3581:"p__Shixuns__Detail__Collaborators__ThemeChange__index",3585:"p__Classrooms__Lists__Statistics__StudentSituation__index",3668:"p__Classrooms__Lists__CommonHomework__Detail__index",3747:"p__virtualSpaces__Lists__Homepage__index",3784:"p__Paperlibrary__Random__Detail__index",3831:"p__User__ThemeChange__VirtualSpaces",3873:"p__virtualSpaces__Lists__Lesson__index",3910:"p__HttpStatus__introduction",3951:"p__Classrooms__Lists__ProgramHomework__Detail__index",4030:"p__Classrooms__Lists__ProgramHomework__AddAndEdit__index",4048:"p__Forums__ThemeChange__index",4056:"p__IntrainCourse__index",4078:"p__Messages__Tidings__index",4093:"p__Classrooms__Lists__Attendance__Detail__index",4105:"p__Classrooms__Lists__Exercise__Answer__index",4144:"p__Problemset__Preview__New__index",4164:"p__Classrooms__Lists__Exercise__Detail__index",4216:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Edit__index",4217:"p__Classrooms__Lists__Video__Statistics__index",4227:"p__Paths__Overview__index",4259:"p__User__Detail__Order__pages__result__index",4264:"p__Forums__New__index",4297:"p__Classrooms__ThemeChange__Polls",4449:"p__Competitions__Exports__index",4492:"p__Graduations__Lists__StudentSelection__index",4496:"p__HttpStatus__HpcCourse",4498:"p__Shixuns__Edit__body__Level__Challenges__NewPractice__index",4504:"p__virtualSpaces__Lists__Survey__index",4514:"p__Account__Results__index",4520:"p__Account__Secure__index",4546:"p__Engineering__Lists__TrainingProgram__Add__index",4572:"p__Classrooms__Lists__ExportList__index",4599:"p__Problemset__index",4610:"p__User__Detail__LearningPath__index",4621:"p__Administration__Profession__index",4662:"p__Classrooms__Lists__GroupHomework__Review__index",4715:"p__virtualSpaces__Lists__Material__Detail__index",4736:"p__User__Detail__Projects__index",4741:"p__Problems__OjForm__NewEdit__index",4757:"p__virtualSpaces__Lists__Workplace__index",4766:"p__Administration__index",4770:"p__Classrooms__Lists__ProgramHomework__Detail__answer__index",4795:"p__Classrooms__Lists__Graduation__Tasks__Add__index",4800:"p__Engineering__Lists__GraduatedMatrix__index",4889:"p__Classrooms__Lists__Exercise__ImitateAnswer__index",4928:"p__Classrooms__Lists__LearningPath__index",4944:"p__Classrooms__Lists__Statistics__ZbStatistics__StudentDetail__index",4973:"p__Engineering__Evaluate__List__index",4994:"p__Problems__OjForm__index",5022:"p__Graduations__Lists__Settings__index",5043:"p__User__Detail__Topics__Poll__Edit__index",5048:"p__Classrooms__Lists__Graduation__Topics__index",5096:"p__Shixuns__Detail__AuditSituation__index",5111:"p__Terminal__index",5117:"p__User__ThemeChange__Certificate",5125:"p__Classrooms__Lists__Exercise__DetailedAnalysis__index",5148:"p__Classrooms__Lists__Polls__Answer__index",5165:"p__User__ThemeChange__Topics",5176:"p__User__Detail__Videos__Protocol__index",5177:"p__Classrooms__ThemeChange__Teachers",5179:"p__Administration__Student__Edit__index",5186:"p__Classrooms__Overview__index",5230:"p__Shixuns__Detail__Repository__AddFile__ThemeChange__index",5238:"p__virtualSpaces__Lists__Material__index",5297:"p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail__index",5307:"p__Shixuns__ThemeChange__New",5319:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index",5330:"p__Classrooms__ThemeChange__ShixunHomeworksComment",5335:"p__Engineering__Lists__CourseMatrix__index",5357:"p__Engineering__Lists__TrainingProgram__Edit__index",5359:"p__Messages__Detail__index",5382:"p__DataSet__Detail__index",5402:"p__User__Detail__Topics__Detail__index",5466:"p__Classrooms__ThemeChange__LiveVideo",5518:"p__Classrooms__Lists__Template__index",5549:"p__Shixuns__New__CreateImg__index",5572:"p__Paths__HigherVocationalEducation__index",5573:"p__Shixuns__Detail__Merge__index",5624:"p__Graduations__Lists__Index__index",5650:"p__Competitions__Update__index",5694:"p__Classrooms__ThemeChange__ShixunHomeworksDetail",5705:"p__virtualSpaces__Lists__Construction__index",5729:"p__Help__Index",5775:"p__Engineering__Lists__Document__index",5776:"p__User__ThemeChange__RealNameCertification",5786:"layouts__LoginAndRegister__index",5798:"p__Classrooms__Lists__Video__Statistics__UserDetail__index",5800:"p__User__ThemeChange__Competitions",5816:"p__Paperlibrary__Random__Edit__index",5823:"p__Classrooms__Lists__Statistics__ZbStatistics__index",5888:"p__Classrooms__Lists__CommonHomework__Add__index",5891:"p__virtualSpaces__Lists__Resources__index",5894:"p__Shixuns__Detail__Repository__Commit__ThemeChange__index",5915:"p__knowledgegraph__Detail__Statistics__index",5972:"layouts__user__index",5992:"p__Classrooms__Lists__Exercise__ReviewGroup__index",6029:"p__Administration__Student__index",6063:"p__Graduations__Lists__Personmanage__index",6069:"p__virtualSpaces__Lists__Lesson__Detail__index",6080:"p__Paths__ThemeChange__New",6127:"p__Classrooms__Lists__ProgramHomework__Ranking__index",6185:"p__Classrooms__ThemeChange__Announcement",6265:"p__virtualSpaces__Lists__Discussion__index",6270:"p__MyProblem__index",6282:"p__Classrooms__ThemeChange__ProgramHomework",6328:"p__Shixuns__Edit__body__Warehouse__index",6366:"p__Innovation__PublicProject__index",6434:"p__User__Detail__Order__pages__records__index",6444:"p__Video__Detail__id",6451:"p__Shixuns__Detail__RankingList__ThemeChange__index",6452:"p__Innovation__PublicDataSet__index",6583:"p__User__Detail__Classrooms__index",6587:"p__User__Detail__Videos__Protocol__resource",6634:"p__Innovation__Tasks__index",6637:"p__Shixuns__Detail__Repository__ThemeChange__index",6651:"p__Engineering__Evaluate__Detail__index",6682:"p__User__ThemeChange__Shixuns",6685:"p__Classrooms__Index__index",6729:"p__Classrooms__Lists__GroupHomework__Edit__index",6741:"p__Engineering__Norm__List__index",6776:"p__Classrooms__ThemeChange__Exercise",6784:"p__Innovation__Edit__index",6789:"p__Classrooms__ThemeChange__index",6796:"p__virtualSpaces__Lists__Announcement__Detail__index",6820:"p__User__Detail__Topics__Normal__index",6882:"p__Classrooms__New__StartClass__index",6904:"p__MoopCases__FormPanel__index",6913:"p__Question__AddOrEdit__index",6963:"p__Classrooms__Lists__Engineering__Detail__index",7043:"p__User__Detail__Topics__Exercise__Edit__index",7045:"p__Classrooms__Lists__CommonHomework__SubmitWork__index",7058:"p__virtualSpaces__Lists__Survey__Detail__index",7062:"layouts__SimpleLayouts",7099:"p__Competitions__ThemeChange__index",7178:"p__User__BindAccount__index",7182:"p__User__ResetPassword__index",7224:"p__StatsDashboard__index",7242:"p__Innovation__MyProject__index",7260:"p__Account__Certification__index",7289:"p__tasks__ThemeChange__index",7322:"layouts__ThemeChange__ShixunDetail",7323:"p__Classrooms__ThemeChange__New",7329:"p__Classrooms__ThemeChange__Attendance",7395:"p__Classrooms__Lists__Statistics__StudentDetail__index",7402:"p__User__ThemeChange__OtherResources",7460:"p__Question__OjProblem__index",7477:"p__virtualSpaces__Lists__Announcement__index",7482:"p__Classrooms__Lists__Exercise__Notice__index",7527:"p__MyProblem__RecordDetail__index",7545:"p__Graduations__Lists__Archives__index",7560:"p__Administration__College__index",7589:"p__virtualSpaces__Lists__DigitalTopics__index",7614:"p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index",7622:"p__Classrooms__Lists__Polls__Detail__index",7806:"p__Classrooms__Lists__Statistics__StatisticsQuality__index",7835:"p__Problemset__ThemeChange__index",7855:"p__User__Detail__ResourcesCenter__Detail__index",7857:"p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index",7883:"p__Classrooms__Lists__Exercise__WrongAnswer__index",7884:"p__Shixuns__Exports__index",7901:"p__Guidance__ThemeChange",7922:"p__Classrooms__Lists__CourseGroup__Detail__index",8062:"p__User__Detail__Topicbank__index",8072:"p__Classrooms__Lists__GroupHomework__SubmitWork__index",8085:"p__Classrooms__Lists__Exercise__Review__index",8115:"p__User__ThemeChange__DataSet",8143:"layouts__GraduationsDetail__index",8145:"p__User__ThemeChange__ClassManagementItem",8155:"p__Shixuns__Overview__index",8217:"p__User__ThemeChange__AccountInfoEdit",8237:"p__User__Detail__Order__pages__view__index",8241:"p__virtualSpaces__Lists__Plan__index",8286:"p__User__ThemeChange__ExperImentImgDetail",8332:"p__User__ThemeChange__Detail",8398:"p__virtualSpaces__Lists__Resources__Detail__index",8431:"p__Classrooms__Lists__Exercise__Export__index",8435:"p__Classrooms__Lists__Attendance__index",8447:"p__virtualSpaces__Lists__Knowledge__index",8458:"p__Classrooms__ThemeChange__CommonHomework",8479:"p__User__ThemeChange__TeachGroup",8517:"p__User__Detail__Topics__Group__index",8552:"p__Shixuns__ThemeChange__index",8563:"p__virtualSpaces__Lists__Discussion__Detail__index",8579:"p__Competitions__ThemeChange__Edit",8665:"p__Engineering__Lists__TrainingObjectives__index",8688:"p__Shixuns__Detail__Repository__index",8689:"p__Classrooms__Lists__Statistics__VideoStatistics__index",8723:"p__Classrooms__Lists__Polls__Edit__index",8787:"p__Competitions__Entered__index",8823:"p__knowledgegraph__Detail__id",8827:"p__Classrooms__Lists__OnlineLearning__index",8866:"p__index",8882:"p__Classrooms__Lists__Graduation__Tasks__Detail__index",8885:"p__Classrooms__Lists__Statistics__StudentStatistics__index",8965:"p__Shixuns__Detail__Discuss__ThemeChange__index",8999:"p__Three__index",9039:"p__Classrooms__ThemeChange__CourseGroup",9076:"p__Account__Binding__index",9205:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index",9366:"p__User__Login__index",9391:"p__Engineering__Lists__CurseSetting__index",9404:"monaco-editor",9406:"p__Classrooms__ThemeChange__Board",9416:"p__Graduations__Lists__Tasks__index",9449:"p__Shixuns__ThemeChange__Detail",9487:"p__LargeScreen__index",9489:"p__Engineering__Lists__CourseList__index",9507:"p__User__Detail__ResourceGuarantee__index",9511:"p__Shixuns__ThemeChange__Edit",9647:"p__Question__Index__index",9649:"p__Engineering__Lists__TrainingProgram__index",9674:"p__Shixuns__New__ImagePreview__index",9677:"p__virtualSpaces__Lists__Announcement__AddAndEdit__index",9695:"p__Classrooms__Lists__Polls__Add__index",9715:"p__Classrooms__Lists__CommonHomework__Edit__index",9716:"p__Question__OjProblem__RecordDetail__index",9785:"p__Classrooms__Lists__Template__student__index",9788:"p__Account__Profile__index",9814:"p__Shixuns__Detail__Challenges__ThemeChange__index",9891:"p__User__Detail__Videos__Success__index",9906:"p__Paths__ThemeChange__index",9921:"p__Classrooms__ExamList__index",9922:"p__Classrooms__Lists__Statistics__StudentVideo__index",9944:"p__Classrooms__Lists__Video__Statistics__StudentDetail__index"}[d]||d)+"."+{26:"91ed81ab",67:"de58cef9",109:"1a7fc455",119:"25b26a6d",195:"8653772c",201:"7872e384",264:"5fd9b3fc",292:"7241a671",337:"45f063ed",479:"bba9e475",485:"d63578fe",508:"82593858",518:"c6774a1c",532:"c1a3e627",533:"7c6a1361",547:"5581debc",556:"c9ce9a90",559:"c49aa5ba",576:"e4f97d42",643:"22ded693",680:"e67e9e01",700:"573b339d",737:"98eb2f74",799:"08103cd8",879:"8ef20790",895:"ad846737",900:"228aca9a",906:"a29ef4e5",921:"30cc7e9b",928:"0277270a",1006:"2263131d",1043:"e8c0878b",1045:"8e5fbfd7",1048:"dafc3f4f",1070:"e67e9e01",1077:"4749f7c5",1211:"bdb8faab",1253:"619593a3",1257:"156e8f74",1276:"bbc6eeec",1343:"f50c7fcf",1423:"5c4a76fc",1427:"c24d69b3",1450:"1edcc2ed",1461:"e71bb36a",1470:"183c9793",1475:"5bfcb58b",1477:"970fcf81",1482:"d159af07",1512:"f3653a35",1520:"f7300d0e",1545:"0c4169ac",1578:"efcb0bdc",1581:"efffd7c0",1582:"8e45b6ff",1651:"55e4f704",1657:"c0cb4a08",1674:"fdbc1e05",1678:"484ca996",1713:"e5cf33ee",1717:"10201060",1727:"522640e5",1754:"118c994b",1783:"0d3d06a0",1798:"3157272a",1831:"cb1c37ee",1836:"5f0d3f7f",1855:"b92cccb4",1880:"750743ca",1897:"62544c06",1939:"ce7e2b5a",1953:"20ce3901",1962:"84e145fa",1993:"c47eb47a",2045:"dcfad42d",2099:"3b401031",2102:"ec61f9f0",2130:"fa9a5d94",2141:"5eb2f330",2203:"bd175c79",2216:"33467293",2240:"e7cce869",2281:"2976b5a2",2303:"1ed5567d",2307:"b2c54321",2338:"dea1928a",2339:"1336108e",2396:"2fd22400",2404:"08d36549",2412:"84cd3fdc",2425:"47b23ee4",2443:"637429ad",2476:"cf85a190",2501:"2441982c",2539:"082dd38b",2548:"75182034",2570:"846a7fe1",2603:"0277270a",2659:"f6071a36",2707:"cabcb16e",2806:"505dc6f7",2819:"9455b08a",2823:"a13b21fb",2829:"a5909474",2862:"dff7c42d",2865:"6ef3cf6b",2884:"ebfe0ea4",3006:"7fce4e74",3086:"d0ebac07",3141:"4e2f2f7c",3157:"f5d985ab",3183:"b2253f40",3212:"ad1521c1",3220:"a5be3990",3247:"50105eb7",3260:"38b222b9",3276:"7bbb651d",3317:"137440b7",3391:"f0e498fe",3433:"2018f6c1",3442:"bdf7849c",3447:"1653d818",3451:"e3a31387",3509:"70043ca5",3581:"c4be28e8",3585:"5f288e7b",3668:"fd3ea050",3747:"1af43845",3784:"c81d4a51",3831:"2711fd44",3873:"7cbe1ba5",3910:"658d457f",3951:"9b11b034",4030:"af04fe52",4048:"f9582bef",4056:"10eacfff",4078:"aa54548e",4093:"775588f4",4105:"7f9d4513",4144:"f10aa199",4164:"803fd4c3",4216:"0277270a",4217:"387bf824",4227:"79c3b323",4259:"ebd953ac",4264:"36917df0",4297:"cb8a8129",4449:"e68d8d58",4492:"12cb2835",4496:"77babddd",4498:"820c0a39",4504:"9074cfde",4514:"887bdbb6",4520:"e86d61a1",4546:"4101a1f2",4572:"70e5675d",4599:"aa988bc4",4610:"687005a6",4621:"807fbac2",4662:"37625a1c",4715:"1230954d",4736:"5b6f4e2f",4741:"92525927",4757:"73b754d2",4766:"b5df5a8e",4770:"674b2d2a",4795:"939f9f81",4800:"f50302a4",4889:"a91da64a",4928:"a4b1a237",4944:"4dd50f6d",4973:"129c56e8",4994:"43974304",5022:"81b1b86b",5043:"247e6954",5048:"aa08c681",5096:"4f6a4d00",5111:"5d09a39a",5117:"ab408bd4",5125:"57501e4a",5148:"572faeac",5165:"48afbcf3",5176:"9c49e7fa",5177:"ec157db5",5179:"21f01751",5186:"e766ffd9",5230:"8ecdafbb",5238:"865509db",5297:"5426028f",5307:"803b391d",5319:"34217c3f",5330:"d6eee700",5335:"fec6fd9f",5357:"1fbb7d24",5359:"b254a598",5382:"d75b7acd",5402:"e8092123",5466:"12cfd33a",5518:"9f425be3",5549:"39285664",5572:"c945fbf2",5573:"6ecf393c",5624:"75c5add6",5650:"f8f63f4b",5694:"c3e4a8be",5705:"df6bf207",5729:"46f9b5d4",5775:"8945cad2",5776:"9d910e47",5786:"37a81eaa",5798:"ce1cf7da",5800:"ace57161",5816:"4adf0529",5823:"5b7427ba",5888:"193a7f8f",5891:"cbb6f851",5894:"4c5225a9",5915:"bc9c3e69",5972:"79479731",5992:"419f5d2f",6029:"7f981b9d",6063:"3b503608",6069:"a9aeea2e",6080:"bc1c2b36",6127:"f31505a8",6185:"bd124dd8",6265:"8aa3f229",6270:"5496b206",6282:"f0151247",6328:"de2b9d62",6366:"079fc2d8",6434:"48c2a3cc",6444:"fd46d237",6451:"4db8623e",6452:"50a6d310",6583:"7599cb91",6587:"9c49e7fa",6634:"020d2aed",6637:"4348c475",6651:"b07fe216",6682:"0b183f46",6685:"50d3c702",6729:"aea3b7f5",6741:"b838eb14",6776:"461a4e93",6784:"1affe817",6789:"f85c816f",6796:"b24f73ad",6820:"cebdf1cf",6882:"c2d2eada",6904:"44afaa9b",6913:"739202fe",6963:"84e145fa",7043:"25478869",7045:"48f6fc4c",7058:"70169de5",7062:"5282c3e5",7099:"f105b5d4",7178:"6e47d75d",7182:"183c9793",7224:"7caf9754",7242:"4f353f61",7260:"2c380d56",7289:"e6d2cdef",7322:"ac5aaaee",7323:"3e11a2bc",7329:"e5af7e18",7395:"ff574c5d",7402:"c2ab8a41",7460:"dedd2038",7477:"7903c644",7482:"c37a3f01",7527:"a4765b7e",7545:"6e229fc1",7560:"d82e43ca",7589:"2517c75a",7614:"de9ee12f",7622:"5e2922e8",7806:"80b7b1d6",7835:"b5f6ea62",7855:"8698f084",7857:"13a29416",7883:"93cf27b2",7884:"1ca6cde0",7901:"505c3349",7922:"0e7ce87a",8062:"8e384b9f",8072:"540f746b",8085:"e6b0e037",8115:"4168d1d3",8143:"1021d119",8145:"aa6ec833",8155:"d345abd7",8214:"03cdfb68",8217:"3f5e9ac7",8237:"faafb9cc",8241:"5bd955ca",8286:"69a76d39",8332:"71c0dfbb",8398:"b128b7d6",8431:"289b326c",8435:"0980085d",8447:"5dded7c0",8458:"9d938150",8479:"b4705507",8517:"cccfddad",8552:"a656ad91",8563:"20b25782",8579:"600a1b47",8665:"c52575bc",8688:"c044db56",8689:"c7b937bf",8723:"3eab1580",8787:"121de108",8823:"e5c765d5",8827:"7c77dcba",8866:"b95f6ec9",8882:"f3e42f72",8885:"de905169",8965:"bd9f71c8",8999:"448aa22f",9039:"e5b0c473",9076:"6a501148",9205:"be1b937c",9366:"4f511490",9391:"c11edda0",9404:"d8cf04f7",9406:"b142636c",9416:"483ff19d",9449:"45975a82",9487:"a73f5679",9489:"ee2bb5b7",9507:"d52efba5",9511:"1151ea04",9647:"9df3db4c",9649:"00fb4211",9674:"bb2d1c58",9677:"af7d4c8f",9695:"e6d547d3",9715:"b6c6645f",9716:"a5750e0d",9785:"08d36549",9788:"781a4d20",9814:"bbe362ca",9891:"512a9301",9906:"bb12ef11",9921:"e0db9101",9922:"33690872",9944:"1ba31055"}[d]+".chunk.css"}}(),function(){__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(d){if(typeof window=="object")return window}}()}(),function(){__webpack_require__.hmd=function(d){return d=Object.create(d),d.children||(d.children=[]),Object.defineProperty(d,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+d.id)}}),d}}(),function(){__webpack_require__.o=function(d,_){return Object.prototype.hasOwnProperty.call(d,_)}}(),function(){var d={};__webpack_require__.l=function(_,e,r,i){if(d[_]){d[_].push(e);return}var l,c;if(r!==void 0)for(var f=document.getElementsByTagName("script"),o=0;o{const G=Xf(t,s,X)||Xf(D,s,X)||Xf(v,s,X);return G&&(j[X]=G),j},{})}function Xf(D,t,n){return D&&D.hasAttributeNS(t,n)?D.getAttributeNS(t,n):null}function Zf(D){return new Error(`Could not parse ttml timestamp ${D}`)}function ff(D,t){if(!D)return null;let n=Lf(D);return n===null&&(Cf.test(D)?n=id(D,t):Tf.test(D)&&(n=Wf(D,t))),n}function id(D,t){const n=Cf.exec(D),s=(n[4]|0)+(n[5]|0)/t.subFrameRate;return(n[1]|0)*3600+(n[2]|0)*60+(n[3]|0)+s/t.frameRate}function Wf(D,t){const n=Tf.exec(D),s=Number(n[1]);switch(n[2]){case"h":return s*3600;case"m":return s*60;case"ms":return s*1e3;case"f":return s/t.frameRate;case"t":return s/t.tickRate}return s}class Nf{constructor(t,n){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=n}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(t,n,s){(this.startTime===null||this.startTime>t)&&(this.startTime=t),this.endTime=n,this.screen=s,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class ad{constructor(t){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=g(),this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},t.on(o.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(o.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(o.MANIFEST_LOADING,this.onManifestLoading,this),t.on(o.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(o.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(o.FRAG_LOADING,this.onFragLoading,this),t.on(o.FRAG_LOADED,this.onFragLoaded,this),t.on(o.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(o.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(o.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(o.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(o.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:t}=this;t.off(o.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(o.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(o.MANIFEST_LOADING,this.onManifestLoading,this),t.off(o.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(o.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(o.FRAG_LOADING,this.onFragLoading,this),t.off(o.FRAG_LOADED,this.onFragLoaded,this),t.off(o.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(o.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(o.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(o.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(o.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const t=new Nf(this,"textTrack1"),n=new Nf(this,"textTrack2"),s=new Nf(this,"textTrack3"),v=new Nf(this,"textTrack4");this.cea608Parser1=new yl(1,t,n),this.cea608Parser2=new yl(3,s,v)}addCues(t,n,s,v,w){let T=!1;for(let j=w.length;j--;){const X=w[j],G=Hf(X[0],X[1],n,s);if(G>=0&&(X[0]=Math.min(X[0],n),X[1]=Math.max(X[1],s),T=!0,G/(s-n)>.5))return}if(T||w.push([n,s]),this.config.renderTextTracksNatively){const j=this.captionsTracks[t];this.Cues.newCue(j,n,s,v)}else{const j=this.Cues.newCue(null,n,s,v);this.hls.trigger(o.CUES_PARSED,{type:"captions",cues:j,track:t})}}onInitPtsFound(t,{frag:n,id:s,initPTS:v,timescale:w,trackId:T}){const{unparsedVttFrags:j}=this;s===u.MAIN&&(this.initPTS[n.cc]={baseTime:v,timescale:w,trackId:T}),j.length&&(this.unparsedVttFrags=[],j.forEach(X=>{this.initPTS[X.frag.cc]?this.onFragLoaded(o.FRAG_LOADED,X):this.hls.trigger(o.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:X.frag,error:new Error("Subtitle discontinuity domain does not match main")})}))}getExistingTrack(t,n){const{media:s}=this;if(s)for(let v=0;v{ns(v[w]),delete v[w]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=g(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:t}=this;if(!t)return;const n=t.textTracks;if(n)for(let s=0;sw.textCodec===au);if(this.config.enableWebVTT||v&&this.config.enableIMSC1){if(Kc(this.tracks,s)){this.tracks=s;return}if(this.textTracks=[],this.tracks=s,this.config.renderTextTracksNatively){const T=this.media,j=T?ql(T.textTracks):null;if(this.tracks.forEach((X,G)=>{let ue;if(j){let de=null;for(let xe=0;xeG!==null).map(G=>G.label);X.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${X.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const T=this.tracks.map(j=>({label:j.name,kind:j.type.toLowerCase(),default:j.default,subtitleTrack:j}));this.hls.trigger(o.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:T})}}}onManifestLoaded(t,n){this.config.enableCEA708Captions&&n.captions&&n.captions.forEach(s=>{const v=/(?:CC|SERVICE)([1-4])/.exec(s.instreamId);if(!v)return;const w=`textTrack${v[1]}`,T=this.captionsProperties[w];T&&(T.label=s.name,s.lang&&(T.languageCode=s.lang),T.media=s)})}closedCaptionsForLevel(t){const n=this.hls.levels[t.level];return n==null?void 0:n.attrs["CLOSED-CAPTIONS"]}onFragLoading(t,n){if(this.enabled&&n.frag.type===u.MAIN){var s,v;const{cea608Parser1:w,cea608Parser2:T,lastSn:j}=this,{cc:X,sn:G}=n.frag,ue=(s=(v=n.part)==null?void 0:v.index)!=null?s:-1;w&&T&&(G!==j+1||G===j&&ue!==this.lastPartIndex+1||X!==this.lastCc)&&(w.reset(),T.reset()),this.lastCc=X,this.lastSn=G,this.lastPartIndex=ue}}onFragLoaded(t,n){const{frag:s,payload:v}=n;if(s.type===u.SUBTITLE)if(v.byteLength){const w=s.decryptdata,T="stats"in n;if(w==null||!w.encrypted||T){const j=this.tracks[s.level],X=this.vttCCs;X[s.cc]||(X[s.cc]={start:s.start,prevCC:this.prevCC,new:!0},this.prevCC=s.cc),j&&j.textCodec===au?this._parseIMSC1(s,v):this._parseVTTs(n)}}else this.hls.trigger(o.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:s,error:new Error("Empty subtitle payload")})}_parseIMSC1(t,n){const s=this.hls;Uc(n,this.initPTS[t.cc],v=>{this._appendCues(v,t.level),s.trigger(o.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},v=>{s.logger.log(`Failed to parse IMSC1: ${v}`),s.trigger(o.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:v})})}_parseVTTs(t){var n;const{frag:s,payload:v}=t,{initPTS:w,unparsedVttFrags:T}=this,j=w.length-1;if(!w[s.cc]&&j===-1){T.push(t);return}const X=this.hls,G=(n=s.initSegment)!=null&&n.data?Gt(s.initSegment.data,new Uint8Array(v)).buffer:v;jc(G,this.initPTS[s.cc],this.vttCCs,s.cc,s.start,ue=>{this._appendCues(ue,s.level),X.trigger(o.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:s})},ue=>{const de=ue.message==="Missing initPTS for VTT MPEGTS";de?T.push(t):this._fallbackToIMSC1(s,v),X.logger.log(`Failed to parse VTT cue: ${ue}`),!(de&&j>s.cc)&&X.trigger(o.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:s,error:ue})})}_fallbackToIMSC1(t,n){const s=this.tracks[t.level];s.textCodec||Uc(n,this.initPTS[t.cc],()=>{s.textCodec=au,this._parseIMSC1(t,n)},()=>{s.textCodec="wvtt"})}_appendCues(t,n){const s=this.hls;if(this.config.renderTextTracksNatively){const v=this.textTracks[n];if(!v||v.mode==="disabled")return;t.forEach(w=>Wo(v,w))}else{const v=this.tracks[n];if(!v)return;const w=v.default?"default":"subtitles"+n;s.trigger(o.CUES_PARSED,{type:"subtitles",cues:t,track:w})}}onFragDecrypted(t,n){const{frag:s}=n;s.type===u.SUBTITLE&&this.onFragLoaded(o.FRAG_LOADED,n)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(t,n){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:s,samples:v}=n;if(!(s.type===u.MAIN&&this.closedCaptionsForLevel(s)==="NONE"))for(let w=0;wAo(j[X],n,s))}if(this.config.renderTextTracksNatively&&n===0&&v!==void 0){const{textTracks:j}=this;Object.keys(j).forEach(X=>Ao(j[X],n,v))}}}extractCea608Data(t){const n=[[],[]],s=t[0]&31;let v=2;for(let w=0;w=16?X--:X++;const Me=sl(G.trim()),Fe=lf(t,n,Me);D!=null&&(de=D.cues)!=null&&de.getCueById(Fe)||(T=new ue(t,n,Me),T.id=Fe,T.line=xe+1,T.align="left",T.position=10+Math.min(80,Math.floor(X*8/32)*10),v.push(T))}return D&&v.length&&(v.sort((xe,Me)=>xe.line==="auto"||Me.line==="auto"?0:xe.line>8&&Me.line>8?Me.line-xe.line:xe.line-Me.line),v.forEach(xe=>Wo(D,xe))),v}};function _e(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(D){}return!1}const Re=/(\d+)-(\d+)\/(\d+)/;class at{constructor(t){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||vn,this.controller=new self.AbortController,this.stats=new U}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var t;this.abortInternal(),(t=this.callbacks)!=null&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(t,n,s){const v=this.stats;if(v.loading.start)throw new Error("Loader can only be used once.");v.loading.start=self.performance.now();const w=jt(t,this.controller.signal),T=t.responseType==="arraybuffer",j=T?"byteLength":"length",{maxTimeToFirstByteMs:X,maxLoadTimeMs:G}=n.loadPolicy;this.context=t,this.config=n,this.callbacks=s,this.request=this.fetchSetup(t,w),self.clearTimeout(this.requestTimeout),n.timeout=X&&r(X)?X:G,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(v,t,this.response))},n.timeout),(ao(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(de=>{var xe;this.response=this.loader=de;const Me=Math.max(self.performance.now(),v.loading.start);if(self.clearTimeout(this.requestTimeout),n.timeout=G,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(v,t,this.response))},G-(Me-v.loading.start)),!de.ok){const{status:lt,statusText:ut}=de;throw new Oi(ut||"fetch, bad network response",lt,de)}v.loading.first=Me,v.total=Or(de.headers)||v.total;const Fe=(xe=this.callbacks)==null?void 0:xe.onProgress;return Fe&&r(n.highWaterMark)?this.loadProgressively(de,v,t,n.highWaterMark,Fe):T?de.arrayBuffer():t.responseType==="json"?de.json():de.text()}).then(de=>{var xe,Me;const Fe=this.response;if(!Fe)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),v.loading.end=Math.max(self.performance.now(),v.loading.first);const lt=de[j];lt&&(v.loaded=v.total=lt);const ut={url:Fe.url,data:de,code:Fe.status},Vt=(xe=this.callbacks)==null?void 0:xe.onProgress;Vt&&!r(n.highWaterMark)&&Vt(v,t,de,Fe),(Me=this.callbacks)==null||Me.onSuccess(ut,v,t,Fe)}).catch(de=>{var xe;if(self.clearTimeout(this.requestTimeout),v.aborted)return;const Me=de&&de.code||0,Fe=de?de.message:null;(xe=this.callbacks)==null||xe.onError({code:Me,text:Fe},t,de?de.details:null,v)})}getCacheAge(){let t=null;if(this.response){const n=this.response.headers.get("age");t=n?parseFloat(n):null}return t}getResponseHeader(t){return this.response?this.response.headers.get(t):null}loadProgressively(t,n,s,v=0,w){const T=new gr,j=t.body.getReader(),X=()=>j.read().then(G=>{if(G.done)return T.dataLength&&w(n,s,T.flush().buffer,t),Promise.resolve(new ArrayBuffer(0));const ue=G.value,de=ue.length;return n.loaded+=de,de=v&&w(n,s,T.flush().buffer,t)):w(n,s,ue.buffer,t),X()}).catch(()=>Promise.reject());return X()}}function jt(D,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(y({},D.headers))};return D.rangeEnd&&n.headers.set("Range","bytes="+D.rangeStart+"-"+String(D.rangeEnd-1)),n}function ar(D){const t=Re.exec(D);if(t)return parseInt(t[2])-parseInt(t[1])+1}function Or(D){const t=D.get("Content-Range");if(t){const s=ar(t);if(r(s))return s}const n=D.get("Content-Length");if(n)return parseInt(n)}function vn(D,t){return new self.Request(D.url,t)}class Oi extends Error{constructor(t,n,s){super(t),this.code=void 0,this.details=void 0,this.code=n,this.details=s}}const Ua=/^age:\s*[\d.]+\s*$/im;class Yn{constructor(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=t&&t.xhrSetup||null,this.stats=new U,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,t.readyState!==4&&(this.stats.aborted=!0,t.abort()))}abort(){var t;this.abortInternal(),(t=this.callbacks)!=null&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(t,n,s){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=n,this.callbacks=s,this.loadInternal()}loadInternal(){const{config:t,context:n}=this;if(!t||!n)return;const s=this.loader=new self.XMLHttpRequest,v=this.stats;v.loading.first=0,v.loaded=0,v.aborted=!1;const w=this.xhrSetup;w?Promise.resolve().then(()=>{if(!(this.loader!==s||this.stats.aborted))return w(s,n.url)}).catch(T=>{if(!(this.loader!==s||this.stats.aborted))return s.open("GET",n.url,!0),w(s,n.url)}).then(()=>{this.loader!==s||this.stats.aborted||this.openAndSendXhr(s,n,t)}).catch(T=>{var j;(j=this.callbacks)==null||j.onError({code:s.status,text:T.message},n,s,v)}):this.openAndSendXhr(s,n,t)}openAndSendXhr(t,n,s){t.readyState||t.open("GET",n.url,!0);const v=n.headers,{maxTimeToFirstByteMs:w,maxLoadTimeMs:T}=s.loadPolicy;if(v)for(const j in v)t.setRequestHeader(j,v[j]);n.rangeEnd&&t.setRequestHeader("Range","bytes="+n.rangeStart+"-"+(n.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=n.responseType,self.clearTimeout(this.requestTimeout),s.timeout=w&&r(w)?w:T,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),s.timeout),t.send()}readystatechange(){const{context:t,loader:n,stats:s}=this;if(!t||!n)return;const v=n.readyState,w=this.config;if(!s.aborted&&v>=2&&(s.loading.first===0&&(s.loading.first=Math.max(self.performance.now(),s.loading.start),w.timeout!==w.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),w.timeout=w.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),w.loadPolicy.maxLoadTimeMs-(s.loading.first-s.loading.start)))),v===4)){self.clearTimeout(this.requestTimeout),n.onreadystatechange=null,n.onprogress=null;const G=n.status,ue=n.responseType==="text"?n.responseText:null;if(G>=200&&G<300){const Fe=ue!=null?ue:n.response;if(Fe!=null){var T,j;s.loading.end=Math.max(self.performance.now(),s.loading.first);const lt=n.responseType==="arraybuffer"?Fe.byteLength:Fe.length;s.loaded=s.total=lt,s.bwEstimate=s.total*8e3/(s.loading.end-s.loading.first);const ut=(T=this.callbacks)==null?void 0:T.onProgress;ut&&ut(s,t,Fe,n);const Vt={url:n.responseURL,data:Fe,code:G};(j=this.callbacks)==null||j.onSuccess(Vt,s,t,n);return}}const de=w.loadPolicy.errorRetry,xe=s.retry,Me={url:t.url,data:void 0,code:G};if(Cr(de,xe,!1,Me))this.retry(de);else{var X;W.error(`${G} while loading ${t.url}`),(X=this.callbacks)==null||X.onError({code:G,text:n.statusText},t,n,s)}}}loadtimeout(){if(!this.config)return;const t=this.config.loadPolicy.timeoutRetry,n=this.stats.retry;if(Cr(t,n,!0))this.retry(t);else{var s;W.warn(`timeout while loading ${(s=this.context)==null?void 0:s.url}`);const v=this.callbacks;v&&(this.abortInternal(),v.onTimeout(this.stats,this.context,this.loader))}}retry(t){const{context:n,stats:s}=this;this.retryDelay=Dr(t,s.retry),s.retry++,W.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${n==null?void 0:n.url}, retrying ${s.retry}/${t.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(t){const n=this.stats;n.loaded=t.loaded,t.lengthComputable&&(n.total=t.total)}getCacheAge(){let t=null;if(this.loader&&Ua.test(this.loader.getAllResponseHeaders())){const n=this.loader.getResponseHeader("age");t=n?parseFloat(n):null}return t}getResponseHeader(t){return this.loader&&new RegExp(`^${t}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(t):null}}const ha={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},za=b(b({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:Yn,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:et,bufferController:lo,capLevelController:El,errorController:on,fpsController:cs,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:_u,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,preserveManualLevelOnError:!1,certLoadPolicy:{default:ha},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},Ma()),{},{subtitleStreamController:Cl,subtitleTrackController:Fc,timelineController:ad,audioStreamController:Gc,audioTrackController:Il,emeController:ke,cmcdController:xf,contentSteeringController:O,interstitialsController:Ef});function Ma(){return{cueHandler:z,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function en(D,t,n){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(t.liveMaxLatencyDurationCount!==void 0&&(t.liveSyncDurationCount===void 0||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(t.liveMaxLatencyDuration!==void 0&&(t.liveSyncDuration===void 0||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const s=Nr(D),v=["manifest","level","frag"],w=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return v.forEach(T=>{const j=`${T==="level"?"playlist":T}LoadPolicy`,X=t[j]===void 0,G=[];w.forEach(ue=>{const de=`${T}Loading${ue}`,xe=t[de];if(xe!==void 0&&X){G.push(de);const Me=s[j].default;switch(t[j]={default:Me},ue){case"TimeOut":Me.maxLoadTimeMs=xe,Me.maxTimeToFirstByteMs=xe;break;case"MaxRetry":Me.errorRetry.maxNumRetry=xe,Me.timeoutRetry.maxNumRetry=xe;break;case"RetryDelay":Me.errorRetry.retryDelayMs=xe,Me.timeoutRetry.retryDelayMs=xe;break;case"MaxRetryTimeout":Me.errorRetry.maxRetryDelayMs=xe,Me.timeoutRetry.maxRetryDelayMs=xe;break}}}),G.length&&n.warn(`hls.js config: "${G.join('", "')}" setting(s) are deprecated, use "${j}": ${zi(t[j])}`)}),b(b({},s),t)}function Nr(D){return D&&typeof D=="object"?Array.isArray(D)?D.map(Nr):Object.keys(D).reduce((t,n)=>(t[n]=Nr(D[n]),t),{}):D}function Qr(D,t){const n=D.loader;n!==at&&n!==Yn?(t.log("[config]: Custom loader detected, cannot enable progressive streaming"),D.progressive=!1):_e()&&(D.loader=at,D.progressive=!0,D.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}const In=2,Zn=.1,Xa=.05,Wi=100;class Qa extends ks{constructor(t,n){super("gap-controller",t.logger),this.hls=void 0,this.fragmentTracker=void 0,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var s;(s=this.media)!=null&&s.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var s;this.ended=((s=this.media)==null?void 0:s.currentTime)||1,this.hls.trigger(o.MEDIA_ENDED,{stalled:!1})}},this.hls=t,this.fragmentTracker=n,this.registerListeners()}registerListeners(){const{hls:t}=this;t&&(t.on(o.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(o.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(o.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(o.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(o.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(o.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(t,n){this.setInterval(Wi),this.mediaSource=n.mediaSource;const s=this.media=n.media;ja(s,"playing",this.onMediaPlaying),ja(s,"waiting",this.onMediaWaiting),ja(s,"ended",this.onMediaEnded)}onMediaDetaching(t,n){this.clearInterval();const{media:s}=this;s&&(rs(s,"playing",this.onMediaPlaying),rs(s,"waiting",this.onMediaWaiting),rs(s,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(t,n){this.buffered=n.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var t;if(!((t=this.media)!=null&&t.readyState)||!this.hasBuffered)return;const n=this.media.currentTime;this.poll(n,this.lastCurrentTime),this.lastCurrentTime=n}poll(t,n){var s,v;const w=(s=this.hls)==null?void 0:s.config;if(!w)return;const T=this.media;if(!T)return;const{seeking:j}=T,X=this.seeking&&!j,G=!this.seeking&&j,ue=T.paused&&!j||T.ended||T.playbackRate===0;if(this.seeking=j,t!==n){n&&(this.ended=0),this.moved=!0,j||(this.nudgeRetry=0,w.nudgeOnVideoHole&&!ue&&t>n&&this.nudgeOnVideoHole(t,n)),this.waiting===0&&this.stallResolved(t);return}if(G||X){X&&this.stallResolved(t);return}if(ue){this.nudgeRetry=0,this.stallResolved(t),!this.ended&&T.ended&&this.hls&&(this.ended=t||1,this.hls.trigger(o.MEDIA_ENDED,{stalled:!1}));return}if(!li.getBuffered(T).length){this.nudgeRetry=0;return}const de=li.bufferInfo(T,t,0),xe=de.nextStart||0,Me=this.fragmentTracker;if(j&&Me&&this.hls){const pn=fs(this.hls.inFlightFragments,t),Ur=de.len>In,an=!xe||pn||xe-t>In&&!Me.getPartialFragment(t);if(Ur||an)return;this.moved=!1}const Fe=(v=this.hls)==null?void 0:v.latestLevelDetails;if(!this.moved&&this.stalled!==null&&Me){if(!(de.len>0)&&!xe)return;const Ur=Math.max(xe,de.start||0)-t,nn=!!(Fe!=null&&Fe.live)?Fe.targetduration*2:In,Vr=Nl(t,Me);if(Ur>0&&(Ur<=nn||Vr)){T.paused||this._trySkipBufferHole(Vr);return}}const lt=w.detectStallWithCurrentTimeMs,ut=self.performance.now(),Vt=this.waiting;let Jt=this.stalled;if(Jt===null)if(Vt>0&&ut-Vt=lt||Vt)&&this.hls){var xr;if(((xr=this.mediaSource)==null?void 0:xr.readyState)==="ended"&&!(Fe!=null&&Fe.live)&&Math.abs(t-((Fe==null?void 0:Fe.edge)||0))<1){if(this.ended)return;this.ended=t||1,this.hls.trigger(o.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(de),!this.media||!this.hls)return}const jr=li.bufferInfo(T,t,w.maxBufferHole);this._tryFixBufferStall(jr,rr,t)}stallResolved(t){const n=this.stalled;if(n&&this.hls&&(this.stalled=null,this.stallReported)){const s=self.performance.now()-n;this.log(`playback not stuck anymore @${t}, after ${Math.round(s)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(o.STALL_RESOLVED,{})}}nudgeOnVideoHole(t,n){var s;const v=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(s=this.buffered.audio)!=null&&s.length&&v&&v.length>1&&t>v.end(0)){const w=li.bufferedInfo(li.timeRangesToArray(this.buffered.audio),t,0);if(w.len>1&&n>=w.start){const T=li.timeRangesToArray(v),j=li.bufferedInfo(T,n,0).bufferedIndex;if(j>-1&&jj)&&ue-G<1&&t-G<2){const de=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${t} hole: ${G} -> ${ue} buffered index: ${X}`);this.warn(de.message),this.media.currentTime+=1e-6;let xe=Nl(t,this.fragmentTracker);xe&&"fragment"in xe?xe=xe.fragment:xe||(xe=void 0);const Me=li.bufferInfo(this.media,t,0);this.hls.trigger(o.ERROR,{type:c.MEDIA_ERROR,details:f.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:de,reason:de.message,frag:xe,buffer:Me.len,bufferInfo:Me})}}}}}_tryFixBufferStall(t,n,s){var v,w;const{fragmentTracker:T,media:j}=this,X=(v=this.hls)==null?void 0:v.config;if(!j||!T||!X)return;const G=(w=this.hls)==null?void 0:w.latestLevelDetails,ue=Nl(s,T);if((ue||G!=null&&G.live&&s1&&t.len>X.maxBufferHole||t.nextStart&&(t.nextStart-sX.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(t))}adjacentTraversal(t,n){const s=this.fragmentTracker,v=t.nextStart;if(s&&v){const w=s.getFragAtPos(n,u.MAIN),T=s.getFragAtPos(v,u.MAIN);if(w&&T)return T.sn-w.sn<2}return!1}_reportStall(t){const{hls:n,media:s,stallReported:v,stalled:w}=this;if(!v&&w!==null&&s&&n){this.stallReported=!0;const T=new Error(`Playback stalling at @${s.currentTime} due to low buffer (${zi(t)})`);this.warn(T.message),n.trigger(o.ERROR,{type:c.MEDIA_ERROR,details:f.BUFFER_STALLED_ERROR,fatal:!1,error:T,buffer:t.len,bufferInfo:t,stalled:{start:w}})}}_trySkipBufferHole(t){var n;const{fragmentTracker:s,media:v}=this,w=(n=this.hls)==null?void 0:n.config;if(!v||!s||!w)return 0;const T=v.currentTime,j=li.bufferInfo(v,T,0),X=T0&&j.len<1&&v.readyState<3,xe=X-T;if(xe>0&&(ue||de)){if(xe>w.maxBufferHole){let Fe=!1;if(T===0){const lt=s.getAppendedFrag(0,u.MAIN);lt&&X{const D=od();try{D&&new D(0,Number.POSITIVE_INFINITY,"")}catch(t){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class Sd{constructor(t){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.assetCue=void 0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(o.EVENT_CUE_ENTER,{})},this.hls=t,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:t}=this;t&&(t.on(o.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(o.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(o.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(o.MANIFEST_LOADING,this.onManifestLoading,this),t.on(o.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(o.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(o.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(o.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:t}=this;t&&(t.off(o.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(o.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(o.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(o.MANIFEST_LOADING,this.onManifestLoading,this),t.off(o.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(o.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(o.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(o.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}onMediaAttaching(t,n){var s;this.media=n.media,((s=n.overrides)==null?void 0:s.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){var t;const n=(t=this.hls)==null?void 0:t.latestLevelDetails;n&&this.updateDateRangeCues(n)}onMediaDetaching(t,n){this.media=null,!n.transferMedia&&(this.id3Track&&(this.removeCues&&ns(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(t){const n=this.getID3Track(t.textTracks);return n.mode="hidden",n}getID3Track(t){if(this.media){for(let n=0;ned&&(de=ed),de-ue<=0&&(de=ue+sd);for(let Me=0;Meue.type===Tn.audioId3&&X:v==="video"?G=ue=>ue.type===Tn.emsg&&j:G=ue=>ue.type===Tn.audioId3&&X||ue.type===Tn.emsg&&j,Ao(w,n,s,G)}}onLevelUpdated(t,{details:n}){this.updateDateRangeCues(n,!0)}onLevelPtsUpdated(t,n){Math.abs(n.drift)>.01&&this.updateDateRangeCues(n.details)}updateDateRangeCues(t,n){if(!this.hls||!this.media)return;const{assetPlayerId:s,timelineOffset:v,enableDateRangeMetadataCues:w,interstitialsController:T}=this.hls.config;if(!w)return;const j=od();if(s&&v&&!T){const{fragmentStart:lt,fragmentEnd:ut}=t;let Vt=this.assetCue;Vt?(Vt.startTime=lt,Vt.endTime=ut):j&&(Vt=this.assetCue=ud(j,lt,ut,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),Vt&&(Vt.id=s,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(Vt),Vt.addEventListener("enter",this.onEventCueEnter)))}if(!t.hasProgramDateTime)return;const{id3Track:X}=this,{dateRanges:G}=t,ue=Object.keys(G);let de=this.dateRangeCuesAppended;if(X&&n){var xe;if((xe=X.cues)!=null&&xe.length){const lt=Object.keys(de).filter(ut=>!ue.includes(ut));for(let ut=lt.length;ut--;){var Me;const Vt=lt[ut],Jt=(Me=de[Vt])==null?void 0:Me.cues;delete de[Vt],Jt&&Object.keys(Jt).forEach(rr=>{const xr=Jt[rr];if(xr){xr.removeEventListener("enter",this.onEventCueEnter);try{X.removeCue(xr)}catch(jr){}}})}}else de=this.dateRangeCuesAppended={}}const Fe=t.fragments[t.fragments.length-1];if(!(ue.length===0||!r(Fe==null?void 0:Fe.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let lt=0;lt{if(Ei!==Vt.id){const Qi=G[Ei];if(Qi.class===Vt.class&&Qi.startDate>Vt.startDate&&(!Dn||Vt.startDate.01&&(Ei.startTime=Jt,Ei.endTime=pn);else if(j){let Qi=Vt.attr[Dn];Ho(Dn)&&(Qi=V(Qi));const qi=ud(j,Jt,pn,{key:Dn,data:Qi},Tn.dateRange);qi&&(qi.id=ut,this.id3Track.addCue(qi),xr[Dn]=qi,T&&(Dn==="X-ASSET-LIST"||Dn==="X-ASSET-URL")&&qi.addEventListener("enter",this.onEventCueEnter))}}de[ut]={cues:xr,dateRange:Vt,durationKnown:jr}}}}}class Ad{constructor(t){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:n}=this,s=this.levelDetails;if(!n||!s)return;this.currentTime=n.currentTime;const v=this.computeLatency();if(v===null)return;this._latency=v;const{lowLatencyMode:w,maxLiveSyncPlaybackRate:T}=this.config;if(!w||T===1||!s.live)return;const j=this.targetLatency;if(j===null)return;const X=v-j,G=Math.min(this.maxLatency,j+s.targetduration);if(X.05&&this.forwardBufferLength>1){const de=Math.min(2,Math.max(1,T)),xe=Math.round(2/(1+Math.exp(-.75*X-this.edgeStalled))*20)/20,Me=Math.min(de,Math.max(1,xe));this.changeMediaPlaybackRate(n,Me)}else n.playbackRate!==1&&n.playbackRate!==0&&this.changeMediaPlaybackRate(n,1)},this.hls=t,this.config=t.config,this.registerListeners()}get levelDetails(){var t;return((t=this.hls)==null?void 0:t.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:t}=this;if(t.liveMaxLatencyDuration!==void 0)return t.liveMaxLatencyDuration;const n=this.levelDetails;return n?t.liveMaxLatencyDurationCount*n.targetduration:0}get targetLatency(){const t=this.levelDetails;if(t===null||this.hls===null)return null;const{holdBack:n,partHoldBack:s,targetduration:v}=t,{liveSyncDuration:w,liveSyncDurationCount:T,lowLatencyMode:j}=this.config,X=this.hls.userConfig;let G=j&&s||n;(this._targetLatencyUpdated||X.liveSyncDuration||X.liveSyncDurationCount||G===0)&&(G=w!==void 0?w:T*v);const ue=v;return G+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,ue)}set targetLatency(t){this.stallCount=0,this.config.liveSyncDuration=t,this._targetLatencyUpdated=!0}get liveSyncPosition(){const t=this.estimateLiveEdge(),n=this.targetLatency;if(t===null||n===null)return null;const s=this.levelDetails;if(s===null)return null;const v=s.edge,w=t-n-this.edgeStalled,T=v-s.totalduration,j=v-(this.config.lowLatencyMode&&s.partTarget||s.targetduration);return Math.min(Math.max(T,w),j)}get drift(){const t=this.levelDetails;return t===null?1:t.drift}get edgeStalled(){const t=this.levelDetails;if(t===null)return 0;const n=(this.config.lowLatencyMode&&t.partTarget||t.targetduration)*3;return Math.max(t.age-n,0)}get forwardBufferLength(){const{media:t}=this,n=this.levelDetails;if(!t||!n)return 0;const s=t.buffered.length;return(s?t.buffered.end(s-1):n.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:t}=this;t&&(t.on(o.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(o.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(o.MANIFEST_LOADING,this.onManifestLoading,this),t.on(o.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(o.ERROR,this.onError,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(o.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(o.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(o.MANIFEST_LOADING,this.onManifestLoading,this),t.off(o.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(o.ERROR,this.onError,this))}onMediaAttached(t,n){this.media=n.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(t,{details:n}){n.advanced&&this.onTimeupdate(),!n.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(t,n){var s;n.details===f.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(s=this.levelDetails)!=null&&s.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(t,n){var s,v;t.playbackRate!==n&&((s=this.hls)==null||s.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(v=this.targetLatency)==null?void 0:v.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${t.playbackRate} to ${n}`),t.playbackRate=n)}estimateLiveEdge(){const t=this.levelDetails;return t===null?null:t.edge+t.age}computeLatency(){const t=this.estimateLiveEdge();return t===null?null:t-this.currentTime}}class Cd extends wo{constructor(t,n){super(t,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=n,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(o.MANIFEST_LOADING,this.onManifestLoading,this),t.on(o.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(o.LEVEL_LOADED,this.onLevelLoaded,this),t.on(o.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(o.FRAG_BUFFERED,this.onFragBuffered,this),t.on(o.ERROR,this.onError,this)}_unregisterListeners(){const{hls:t}=this;t.off(o.MANIFEST_LOADING,this.onManifestLoading,this),t.off(o.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(o.LEVEL_LOADED,this.onLevelLoaded,this),t.off(o.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(o.FRAG_BUFFERED,this.onFragBuffered,this),t.off(o.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(n=>{n.loadError=0,n.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(t,n){this.resetLevels()}onManifestLoaded(t,n){const s=this.hls.config.preferManagedMediaSource,v=[],w={},T={};let j=!1,X=!1,G=!1;n.levels.forEach(ue=>{const de=ue.attrs;let{audioCodec:xe,videoCodec:Me}=ue;xe&&(ue.audioCodec=xe=At(xe,s)||void 0),Me&&(Me=ue.videoCodec=Rr(Me));const{width:Fe,height:lt,unknownCodecs:ut}=ue,Vt=(ut==null?void 0:ut.length)||0;if(j||(j=!!(Fe&<)),X||(X=!!Me),G||(G=!!xe),Vt||xe&&!this.isAudioSupported(xe)||Me&&!this.isVideoSupported(Me)){this.log(`Some or all CODECS not supported "${de.CODECS}"`);return}const{CODECS:Jt,"FRAME-RATE":rr,"HDCP-LEVEL":xr,"PATHWAY-ID":jr,RESOLUTION:pn,"VIDEO-RANGE":Ur}=de,nn=`${`${jr||"."}-`}${ue.bitrate}-${pn}-${rr}-${Jt}-${Ur}-${xr}`;if(w[nn])if(w[nn].uri!==ue.url&&!ue.attrs["PATHWAY-ID"]){const Vr=T[nn]+=1;ue.attrs["PATHWAY-ID"]=new Array(Vr+1).join(".");const Dn=this.createLevel(ue);w[nn]=Dn,v.push(Dn)}else w[nn].addGroupId("audio",de.AUDIO),w[nn].addGroupId("text",de.SUBTITLES);else{const Vr=this.createLevel(ue);w[nn]=Vr,T[nn]=1,v.push(Vr)}}),this.filterAndSortMediaOptions(v,n,j,X,G)}createLevel(t){const n=new wi(t),s=t.supplemental;if(s!=null&&s.videoCodec&&!this.isVideoSupported(s.videoCodec)){const v=new Error(`SUPPLEMENTAL-CODECS not supported "${s.videoCodec}"`);this.log(v.message),n.supportedResult=ot(v,[])}return n}isAudioSupported(t){return Pe(t,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(t){return Pe(t,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(t,n,s,v,w){var T;let j=[],X=[],G=t;const ue=((T=n.stats)==null?void 0:T.parsing)||{};if((s||v)&&w&&(G=G.filter(({videoCodec:Jt,videoRange:rr,width:xr,height:jr})=>(!!Jt||!!(xr&&jr))&&Qn(rr))),G.length===0){Promise.resolve().then(()=>{if(this.hls){let Jt="no level with compatible codecs found in manifest",rr=Jt;n.levels.length&&(rr=`one or more CODECS in variant not supported: ${zi(n.levels.map(jr=>jr.attrs.CODECS).filter((jr,pn,Ur)=>Ur.indexOf(jr)===pn))}`,this.warn(rr),Jt+=` (${rr})`);const xr=new Error(Jt);this.hls.trigger(o.ERROR,{type:c.MEDIA_ERROR,details:f.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:n.url,error:xr,reason:rr})}}),ue.end=performance.now();return}n.audioTracks&&(j=n.audioTracks.filter(Jt=>!Jt.audioCodec||this.isAudioSupported(Jt.audioCodec)),hd(j)),n.subtitles&&(X=n.subtitles,hd(X));const de=G.slice(0);G.sort((Jt,rr)=>{if(Jt.attrs["HDCP-LEVEL"]!==rr.attrs["HDCP-LEVEL"])return(Jt.attrs["HDCP-LEVEL"]||"")>(rr.attrs["HDCP-LEVEL"]||"")?1:-1;if(s&&Jt.height!==rr.height)return Jt.height-rr.height;if(Jt.frameRate!==rr.frameRate)return Jt.frameRate-rr.frameRate;if(Jt.videoRange!==rr.videoRange)return On.indexOf(Jt.videoRange)-On.indexOf(rr.videoRange);if(Jt.videoCodec!==rr.videoCodec){const xr=we(Jt.videoCodec),jr=we(rr.videoCodec);if(xr!==jr)return jr-xr}if(Jt.uri===rr.uri&&Jt.codecSet!==rr.codecSet){const xr=gt(Jt.codecSet),jr=gt(rr.codecSet);if(xr!==jr)return jr-xr}return Jt.averageBitrate!==rr.averageBitrate?Jt.averageBitrate-rr.averageBitrate:0});let xe=de[0];if(this.steering&&(G=this.steering.filterParsedLevels(G),G.length!==de.length)){for(let Jt=0;Jtxr&&xr===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=jr)}break}const Fe=w&&!v,lt=this.hls.config,ut=!!(lt.audioStreamController&<.audioTrackController),Vt={levels:G,audioTracks:j,subtitleTracks:X,sessionData:n.sessionData,sessionKeys:n.sessionKeys,firstLevel:this._firstLevel,stats:n.stats,audio:w,video:v,altAudio:ut&&!Fe&&j.some(Jt=>!!Jt.url)};ue.end=performance.now(),this.hls.trigger(o.MANIFEST_PARSED,Vt)}get levels(){return this._levels.length===0?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(t){const n=this._levels;if(n.length===0)return;if(t<0||t>=n.length){const ue=new Error("invalid level idx"),de=t<0;if(this.hls.trigger(o.ERROR,{type:c.OTHER_ERROR,details:f.LEVEL_SWITCH_ERROR,level:t,fatal:de,error:ue,reason:ue.message}),de)return;t=Math.min(t,n.length-1)}const s=this.currentLevelIndex,v=this.currentLevel,w=v?v.attrs["PATHWAY-ID"]:void 0,T=n[t],j=T.attrs["PATHWAY-ID"];if(this.currentLevelIndex=t,this.currentLevel=T,s===t&&v&&w===j)return;this.log(`Switching to level ${t} (${T.height?T.height+"p ":""}${T.videoRange?T.videoRange+" ":""}${T.codecSet?T.codecSet+" ":""}@${T.bitrate})${j?" with Pathway "+j:""} from level ${s}${w?" with Pathway "+w:""}`);const X={level:t,attrs:T.attrs,details:T.details,bitrate:T.bitrate,averageBitrate:T.averageBitrate,maxBitrate:T.maxBitrate,realBitrate:T.realBitrate,width:T.width,height:T.height,codecSet:T.codecSet,audioCodec:T.audioCodec,videoCodec:T.videoCodec,audioGroups:T.audioGroups,subtitleGroups:T.subtitleGroups,loaded:T.loaded,loadError:T.loadError,fragmentError:T.fragmentError,name:T.name,id:T.id,uri:T.uri,url:T.url,urlId:0,audioGroupIds:T.audioGroupIds,textGroupIds:T.textGroupIds};this.hls.trigger(o.LEVEL_SWITCHING,X);const G=T.details;if(!G||G.live){const ue=this.switchParams(T.uri,v==null?void 0:v.details,G);this.loadPlaylist(ue)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(t){this.manualLevelIndex=t,this._startLevel===void 0&&(this._startLevel=t),t!==-1&&(this.level=t)}get firstLevel(){return this._firstLevel}set firstLevel(t){this._firstLevel=t}get startLevel(){if(this._startLevel===void 0){const t=this.hls.config.startLevel;return t!==void 0?t:this.hls.firstAutoLevel}return this._startLevel}set startLevel(t){this._startLevel=t}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(t){if(this.steering){const n=this.steering.pathways(),s=t.filter(v=>n.indexOf(v)!==-1);if(t.length<1){this.warn(`pathwayPriority ${t} should contain at least one pathway from list: ${n}`);return}this.steering.pathwayPriority=s}}onError(t,n){n.fatal||!n.context||n.context.type===h.LEVEL&&n.context.level===this.level&&this.checkRetry(n)}onFragBuffered(t,{frag:n}){if(n!==void 0&&n.type===u.MAIN){const s=n.elementaryStreams;if(!Object.keys(s).some(w=>!!s[w]))return;const v=this._levels[n.level];v!=null&&v.loadError&&(this.log(`Resetting level error count of ${v.loadError} on frag buffered`),v.loadError=0)}}onLevelLoaded(t,n){var s;const{level:v,details:w}=n,T=n.levelInfo;if(!T){var j;this.warn(`Invalid level index ${v}`),(j=n.deliveryDirectives)!=null&&j.skip&&(w.deltaUpdateFailed=!0);return}if(T===this.currentLevel||n.withoutMultiVariant){T.fragmentError===0&&(T.loadError=0);let X=T.details;X===n.details&&X.advanced&&(X=void 0),this.playlistLoaded(v,n,X)}else(s=n.deliveryDirectives)!=null&&s.skip&&(w.deltaUpdateFailed=!0)}loadPlaylist(t){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,t)}loadingPlaylist(t,n){super.loadingPlaylist(t,n);const s=this.getUrlWithDirectives(t.uri,n),v=this.currentLevelIndex,w=t.attrs["PATHWAY-ID"],T=t.details,j=T==null?void 0:T.age;this.log(`Loading level index ${v}${(n==null?void 0:n.msn)!==void 0?" at sn "+n.msn+" part "+n.part:""}${w?" Pathway "+w:""}${j&&T.live?" age "+j.toFixed(1)+(T.type?" "+T.type||0:""):""} ${s}`),this.hls.trigger(o.LEVEL_LOADING,{url:s,level:v,levelInfo:t,pathwayId:t.attrs["PATHWAY-ID"],id:0,deliveryDirectives:n||null})}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(t){this.level=t,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=t)}removeLevel(t){var n;if(this._levels.length===1)return;const s=this._levels.filter((w,T)=>T!==t?!0:(this.steering&&this.steering.removeLevel(w),w===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,w.details&&w.details.fragments.forEach(j=>j.level=-1)),!1));ps(s),this._levels=s,this.currentLevelIndex>-1&&(n=this.currentLevel)!=null&&n.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const v=s.length-1;this._firstLevel=Math.min(this._firstLevel,v),this._startLevel&&(this._startLevel=Math.min(this._startLevel,v)),this.hls.trigger(o.LEVELS_UPDATED,{levels:s})}onLevelsUpdated(t,{levels:n}){this._levels=n}checkMaxAutoUpdated(){const{autoLevelCapping:t,maxAutoLevel:n,maxHdcpLevel:s}=this.hls;this._maxAutoLevel!==n&&(this._maxAutoLevel=n,this.hls.trigger(o.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:n,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:s}))}}function hd(D){const t={};D.forEach(n=>{const s=n.groupId||"";n.id=t[s]=t[s]||0,t[s]++})}function pd(){return self.SourceBuffer||self.WebKitSourceBuffer}function md(){if(!ae())return!1;const t=pd();return!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function"}function Td(){if(!md())return!1;const D=ae();return typeof(D==null?void 0:D.isTypeSupported)=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(t=>D.isTypeSupported(We(t,"video")))||["mp4a.40.2","fLaC"].some(t=>D.isTypeSupported(We(t,"audio"))))}function Pd(){var D;const t=pd();return typeof(t==null||(D=t.prototype)==null?void 0:D.changeType)=="function"}const vd=100;class _d extends Nt{constructor(t,n,s){super(t,n,s,"stream-controller",u.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const v=this.media,w=v?v.currentTime:null;if(w===null||!r(w)||(this.log(`Media seeked to ${w.toFixed(3)}`),!this.getBufferedFrag(w)))return;const T=this.getFwdBufferInfoAtPos(v,w,u.MAIN,0);if(T===null||T.len===0){this.warn(`Main forward buffer length at ${w} on "seeked" event ${T?T.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(o.MANIFEST_PARSED,this.onManifestParsed,this),t.on(o.LEVEL_LOADING,this.onLevelLoading,this),t.on(o.LEVEL_LOADED,this.onLevelLoaded,this),t.on(o.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(o.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(o.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(o.BUFFER_CREATED,this.onBufferCreated,this),t.on(o.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(o.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(o.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(o.MANIFEST_PARSED,this.onManifestParsed,this),t.off(o.LEVEL_LOADED,this.onLevelLoaded,this),t.off(o.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(o.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(o.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(o.BUFFER_CREATED,this.onBufferCreated,this),t.off(o.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(o.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(o.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(t,n){if(this.levels){const{lastCurrentTime:s,hls:v}=this;if(this.stopLoad(),this.setInterval(vd),this.level=-1,!this.startFragRequested){let w=v.startLevel;w===-1&&(v.config.testBandwidth&&this.levels.length>1?(w=0,this.bitrateTest=!0):w=v.firstAutoLevel),v.nextLoadLevel=w,this.level=v.loadLevel,this._hasEnoughToStart=!!n}s>0&&t===-1&&!n&&(this.log(`Override startPosition with lastCurrentTime @${s.toFixed(3)}`),t=s),this.state=De.IDLE,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}else this._forceStartLoad=!0,this.state=De.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case De.WAITING_LEVEL:{const{levels:t,level:n}=this,s=t==null?void 0:t[n],v=s==null?void 0:s.details;if(v&&(!v.live||this.levelLastLoaded===s&&!this.waitForLive(s))){if(this.waitForCdnTuneIn(v))break;this.state=De.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=De.IDLE;break}break}case De.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===De.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var t;super.onTickEnd(),(t=this.media)!=null&&t.readyState&&this.media.seeking===!1&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:t,levelLastLoaded:n,levels:s,media:v}=this;if(n===null||!v&&!this.primaryPrefetch&&(this.startFragRequested||!t.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const w=this.buffering?t.nextLoadLevel:t.loadLevel;if(!(s!=null&&s[w]))return;const T=s[w],j=this.getMainFwdBufferInfo();if(j===null)return;const X=this.getLevelDetails();if(X&&this._streamEnded(j,X)){const lt={};this.altAudio===2&&(lt.type="video"),this.hls.trigger(o.BUFFER_EOS,lt),this.state=De.ENDED;return}if(!this.buffering)return;t.loadLevel!==w&&t.manualLevel===-1&&this.log(`Adapting to level ${w} from level ${this.level}`),this.level=t.nextLoadLevel=w;const G=T.details;if(!G||this.state===De.WAITING_LEVEL||this.waitForLive(T)){this.level=w,this.state=De.WAITING_LEVEL,this.startFragRequested=!1;return}const ue=j.len,de=this.getMaxBufferLength(T.maxBitrate);if(ue>=de)return;this.backtrackFragment&&this.backtrackFragment.start>j.end&&(this.backtrackFragment=null);const xe=this.backtrackFragment?this.backtrackFragment.start:j.end;let Me=this.getNextFragment(xe,G);if(this.couldBacktrack&&!this.fragPrevious&&Me&&Ce(Me)&&this.fragmentTracker.getState(Me)!==_n.OK){var Fe;const ut=((Fe=this.backtrackFragment)!=null?Fe:Me).sn-G.startSN,Vt=G.fragments[ut-1];Vt&&Me.cc===Vt.cc&&(Me=Vt,this.fragmentTracker.removeFragment(Vt))}else this.backtrackFragment&&j.len&&(this.backtrackFragment=null);if(Me&&this.isLoopLoading(Me,xe)){if(!Me.gap){const ut=this.audioOnly&&!this.altAudio?ie.AUDIO:ie.VIDEO,Vt=(ut===ie.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Vt&&this.afterBufferFlushed(Vt,ut,u.MAIN)}Me=this.getNextFragmentLoopLoading(Me,G,j,u.MAIN,de)}Me&&(Me.initSegment&&!Me.initSegment.data&&!this.bitrateTest&&(Me=Me.initSegment),this.loadFragment(Me,T,xe))}loadFragment(t,n,s){const v=this.fragmentTracker.getState(t);v===_n.NOT_LOADED||v===_n.PARTIAL?Ce(t)?this.bitrateTest?(this.log(`Fragment ${t.sn} of level ${t.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(t,n)):super.loadFragment(t,n,s):this._loadInitSegment(t,n):this.clearTrackerIfNeeded(t)}getBufferedFrag(t){return this.fragmentTracker.getBufferedFrag(t,u.MAIN)}followingBufferedFrag(t){return t?this.getBufferedFrag(t.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:t,media:n}=this;if(n!=null&&n.readyState){let s;const v=this.getAppendedFrag(n.currentTime);v&&v.start>1&&this.flushMainBuffer(0,v.start-1);const w=this.getLevelDetails();if(w!=null&&w.live){const j=this.getMainFwdBufferInfo();if(!j||j.len=T-n.maxFragLookUpTolerance&&w<=j;if(v!==null&&s.duration>v&&(w{this.hls&&this.hls.trigger(o.AUDIO_TRACK_SWITCHED,n)}),s.trigger(o.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}s.trigger(o.AUDIO_TRACK_SWITCHED,n)}}onAudioTrackSwitched(t,n){const s=st(n.url,this.hls);if(s){const v=this.videoBuffer;v&&this.mediaBuffer!==v&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=v)}this.altAudio=s?2:0,this.tick()}onBufferCreated(t,n){const s=n.tracks;let v,w,T=!1;for(const j in s){const X=s[j];if(X.id==="main"){if(w=j,v=X,j==="video"){const G=s[j];G&&(this.videoBuffer=G.buffer)}}else T=!0}T&&v?(this.log(`Alternate track found, use ${w}.buffered to schedule main fragment loading`),this.mediaBuffer=v.buffer):this.mediaBuffer=this.media}onFragBuffered(t,n){const{frag:s,part:v}=n,w=s.type===u.MAIN;if(w){if(this.fragContextChanged(s)){this.warn(`Fragment ${s.sn}${v?" p: "+v.index:""} of level ${s.level} finished buffering, but was aborted. state: ${this.state}`),this.state===De.PARSED&&(this.state=De.IDLE);return}const j=v?v.stats:s.stats;this.fragLastKbps=Math.round(8*j.total/(j.buffering.end-j.loading.first)),Ce(s)&&(this.fragPrevious=s),this.fragBufferedComplete(s,v)}const T=this.media;T&&(!this._hasEnoughToStart&&li.getBuffered(T).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),w&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(t,n){var s;if(n.fatal){this.state=De.ERROR;return}switch(n.details){case f.FRAG_GAP:case f.FRAG_PARSING_ERROR:case f.FRAG_DECRYPT_ERROR:case f.FRAG_LOAD_ERROR:case f.FRAG_LOAD_TIMEOUT:case f.KEY_LOAD_ERROR:case f.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(u.MAIN,n);break;case f.LEVEL_LOAD_ERROR:case f.LEVEL_LOAD_TIMEOUT:case f.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===De.WAITING_LEVEL&&((s=n.context)==null?void 0:s.type)===h.LEVEL&&(this.state=De.IDLE);break;case f.BUFFER_ADD_CODEC_ERROR:case f.BUFFER_APPEND_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&this.resetLoadingState();break;case f.BUFFER_FULL_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&(!this.config.interstitialsController&&this.config.assetPlayerId?this._hasEnoughToStart=!0:this.flushMainBuffer(0,Number.POSITIVE_INFINITY));break;case f.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onFragLoadEmergencyAborted(){this.state=De.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(t,{type:n}){if(n!==ie.AUDIO||!this.altAudio){const s=(n===ie.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;s&&(this.afterBufferFlushed(s,n,u.MAIN),this.tick())}}onLevelsUpdated(t,n){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,this.level===-1&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=n.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:t}=this;if(!t)return;const n=t.currentTime;let s=this.startPosition;if(s>=0&&n0&&(X{const{hls:v}=this,w=s==null?void 0:s.frag;if(!w||this.fragContextChanged(w))return;n.fragmentError=0,this.state=De.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const T=w.stats;T.parsing.start=T.parsing.end=T.buffering.start=T.buffering.end=self.performance.now(),v.trigger(o.FRAG_LOADED,s),w.bitrateTest=!1}).catch(s=>{this.state===De.STOPPED||this.state===De.ERROR||(this.warn(s),this.resetFragmentLoading(t))})}_handleTransmuxComplete(t){const n=this.playlistType,{hls:s}=this,{remuxResult:v,chunkMeta:w}=t,T=this.getCurrentContext(w);if(!T){this.resetWhenMissingContext(w);return}const{frag:j,part:X,level:G}=T,{video:ue,text:de,id3:xe,initSegment:Me}=v,{details:Fe}=G,lt=this.altAudio?void 0:v.audio;if(this.fragContextChanged(j)){this.fragmentTracker.removeFragment(j);return}if(this.state=De.PARSING,Me){const ut=Me.tracks;if(ut){const xr=j.initSegment||j;if(this.unhandledEncryptionError(Me,j))return;this._bufferInitSegment(G,ut,xr,w),s.trigger(o.FRAG_PARSING_INIT_SEGMENT,{frag:xr,id:n,tracks:ut})}const Vt=Me.initPTS,Jt=Me.timescale,rr=this.initPTS[j.cc];if(r(Vt)&&(!rr||rr.baseTime!==Vt||rr.timescale!==Jt)){const xr=Me.trackId;this.initPTS[j.cc]={baseTime:Vt,timescale:Jt,trackId:xr},s.trigger(o.INIT_PTS_FOUND,{frag:j,id:n,initPTS:Vt,timescale:Jt,trackId:xr})}}if(ue&&Fe){lt&&ue.type==="audiovideo"&&this.logMuxedErr(j);const ut=Fe.fragments[j.sn-1-Fe.startSN],Vt=j.sn===Fe.startSN,Jt=!ut||j.cc>ut.cc;if(v.independent!==!1){const{startPTS:rr,endPTS:xr,startDTS:jr,endDTS:pn}=ue;if(X)X.elementaryStreams[ue.type]={startPTS:rr,endPTS:xr,startDTS:jr,endDTS:pn};else if(ue.firstKeyFrame&&ue.independent&&w.id===1&&!Jt&&(this.couldBacktrack=!0),ue.dropped&&ue.independent){const Ur=this.getMainFwdBufferInfo(),an=(Ur?Ur.end:this.getLoadPosition())+this.config.maxBufferHole,nn=ue.firstKeyFramePTS?ue.firstKeyFramePTS:rr;if(!Vt&&anIn&&(j.gap=!0);j.setElementaryStreamInfo(ue.type,rr,xr,jr,pn),this.backtrackFragment&&(this.backtrackFragment=j),this.bufferFragmentData(ue,j,X,w,Vt||Jt)}else if(Vt||Jt)j.gap=!0;else{this.backtrack(j);return}}if(lt){const{startPTS:ut,endPTS:Vt,startDTS:Jt,endDTS:rr}=lt;X&&(X.elementaryStreams[ie.AUDIO]={startPTS:ut,endPTS:Vt,startDTS:Jt,endDTS:rr}),j.setElementaryStreamInfo(ie.AUDIO,ut,Vt,Jt,rr),this.bufferFragmentData(lt,j,X,w)}if(Fe&&xe!=null&&xe.samples.length){const ut={id:n,frag:j,details:Fe,samples:xe.samples};s.trigger(o.FRAG_PARSING_METADATA,ut)}if(Fe&&de){const ut={id:n,frag:j,details:Fe,samples:de.samples};s.trigger(o.FRAG_PARSING_USERDATA,ut)}}logMuxedErr(t){this.warn(`${Ce(t)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${t.url}`)}_bufferInitSegment(t,n,s,v){if(this.state!==De.PARSING)return;this.audioOnly=!!n.audio&&!n.video,this.altAudio&&!this.audioOnly&&(delete n.audio,n.audiovideo&&this.logMuxedErr(s));const{audio:w,video:T,audiovideo:j}=n;if(w){const G=t.audioCodec;let ue=tn(w.codec,G);ue==="mp4a"&&(ue="mp4a.40.5");const de=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){ue&&(ue.indexOf("mp4a.40.5")!==-1?ue="mp4a.40.2":ue="mp4a.40.5");const xe=w.metadata;xe&&"channelCount"in xe&&(xe.channelCount||1)!==1&&de.indexOf("firefox")===-1&&(ue="mp4a.40.5")}ue&&ue.indexOf("mp4a.40.5")!==-1&&de.indexOf("android")!==-1&&w.container!=="audio/mpeg"&&(ue="mp4a.40.2",this.log(`Android: force audio codec to ${ue}`)),G&&G!==ue&&this.log(`Swapping manifest audio codec "${G}" for "${ue}"`),w.levelCodec=ue,w.id=u.MAIN,this.log(`Init audio buffer, container:${w.container}, codecs[selected/level/parsed]=[${ue||""}/${G||""}/${w.codec}]`),delete n.audiovideo}if(T){T.levelCodec=t.videoCodec,T.id=u.MAIN;const G=T.codec;if((G==null?void 0:G.length)===4)switch(G){case"hvc1":case"hev1":T.codec="hvc1.1.6.L120.90";break;case"av01":T.codec="av01.0.04M.08";break;case"avc1":T.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${T.container}, codecs[level/parsed]=[${t.videoCodec||""}/${G}]${T.codec!==G?" parsed-corrected="+T.codec:""}${T.supplemental?" supplemental="+T.supplemental:""}`),delete n.audiovideo}j&&(this.log(`Init audiovideo buffer, container:${j.container}, codecs[level/parsed]=[${t.codecs}/${j.codec}]`),delete n.video,delete n.audio);const X=Object.keys(n);if(X.length){if(this.hls.trigger(o.BUFFER_CODECS,n),!this.hls)return;X.forEach(G=>{const de=n[G].initSegment;de!=null&&de.byteLength&&this.hls.trigger(o.BUFFER_APPENDING,{type:G,data:de,frag:s,part:null,chunkMeta:v,parent:s.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const t=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(t,u.MAIN)}get maxBufferLength(){const{levels:t,level:n}=this,s=t==null?void 0:t[n];return s?this.getMaxBufferLength(s.maxBitrate):this.config.maxBufferLength}backtrack(t){this.couldBacktrack=!0,this.backtrackFragment=t,this.resetTransmuxer(),this.flushBufferGap(t),this.fragmentTracker.removeFragment(t),this.fragPrevious=null,this.nextLoadPosition=t.start,this.state=De.IDLE}checkFragmentChanged(){const t=this.media;let n=null;if(t&&t.readyState>1&&t.seeking===!1){const s=t.currentTime;if(li.isBuffered(t,s)?n=this.getAppendedFrag(s):li.isBuffered(t,s+.1)&&(n=this.getAppendedFrag(s+.1)),n){this.backtrackFragment=null;const v=this.fragPlaying,w=n.level;(!v||n.sn!==v.sn||v.level!==w)&&(this.fragPlaying=n,this.hls.trigger(o.FRAG_CHANGED,{frag:n}),(!v||v.level!==w)&&this.hls.trigger(o.LEVEL_SWITCHED,{level:w}))}}}get nextLevel(){const t=this.nextBufferedFrag;return t?t.level:-1}get currentFrag(){var t;if(this.fragPlaying)return this.fragPlaying;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;return r(n)?this.getAppendedFrag(n):null}get currentProgramDateTime(){var t;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;if(r(n)){const s=this.getLevelDetails(),v=this.currentFrag||(s?ur(null,s.fragments,n):null);if(v){const w=v.programDateTime;if(w!==null){const T=w+(n-v.start)*1e3;return new Date(T)}}}return null}get currentLevel(){const t=this.currentFrag;return t?t.level:-1}get nextBufferedFrag(){const t=this.currentFrag;return t?this.followingBufferedFrag(t):null}get forceStartLoad(){return this._forceStartLoad}}class Id extends R{constructor(t,n){super("key-loader",n),this.config=void 0,this.keyIdToKeyInfo={},this.emeController=null,this.config=t}abort(t){for(const s in this.keyIdToKeyInfo){const v=this.keyIdToKeyInfo[s].loader;if(v){var n;if(t&&t!==((n=v.context)==null?void 0:n.frag.type))return;v.abort()}}}detach(){for(const t in this.keyIdToKeyInfo){const n=this.keyIdToKeyInfo[t];(n.mediaKeySessionContext||n.decryptdata.isCommonEncryption)&&delete this.keyIdToKeyInfo[t]}}destroy(){this.detach();for(const t in this.keyIdToKeyInfo){const n=this.keyIdToKeyInfo[t].loader;n&&n.destroy()}this.keyIdToKeyInfo={}}createKeyLoadError(t,n=f.KEY_LOAD_ERROR,s,v,w){return new Bi({type:c.NETWORK_ERROR,details:n,fatal:!1,frag:t,response:w,error:s,networkDetails:v})}loadClear(t,n,s){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(n.length)for(let v=0,w=n.length;v{if(!this.emeController)return;T.setKeyFormat(j);const X=Jo(j);if(X)return this.emeController.getKeySystemAccess([X])})}if(this.config.requireKeySystemAccessOnStart){const v=ko(this.config);if(v.length)return this.emeController.getKeySystemAccess(v)}}return null}load(t){return!t.decryptdata&&t.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(t).then(n=>this.loadInternal(t,n)):this.loadInternal(t)}loadInternal(t,n){var s,v;n&&t.setKeyFormat(n);const w=t.decryptdata;if(!w){const G=new Error(n?`Expected frag.decryptdata to be defined after setting format ${n}`:`Missing decryption data on fragment in onKeyLoading (emeEnabled with controller: ${this.emeController&&this.config.emeEnabled})`);return Promise.reject(this.createKeyLoadError(t,f.KEY_LOAD_ERROR,G))}const T=w.uri;if(!T)return Promise.reject(this.createKeyLoadError(t,f.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${T}"`)));const j=ld(w);let X=this.keyIdToKeyInfo[j];if((s=X)!=null&&s.decryptdata.key)return w.key=X.decryptdata.key,Promise.resolve({frag:t,keyInfo:X});if(this.emeController&&(v=X)!=null&&v.keyLoadPromise)switch(this.emeController.getKeyStatus(X.decryptdata)){case"usable":case"usable-in-future":return X.keyLoadPromise.then(ue=>{const{keyInfo:de}=ue;return w.key=de.decryptdata.key,{frag:t,keyInfo:de}})}switch(this.log(`${this.keyIdToKeyInfo[j]?"Rel":"L"}oading${w.keyId?" keyId: "+Q(w.keyId):""} URI: ${w.uri} from ${t.type} ${t.level}`),X=this.keyIdToKeyInfo[j]={decryptdata:w,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},w.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return w.keyFormat==="identity"?this.loadKeyHTTP(X,t):this.loadKeyEME(X,t);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(X,t);default:return Promise.reject(this.createKeyLoadError(t,f.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${w.method}"`)))}}loadKeyEME(t,n){const s={frag:n,keyInfo:t};if(this.emeController&&this.config.emeEnabled){var v;if(!t.decryptdata.keyId&&(v=n.initSegment)!=null&&v.data){const T=bt(n.initSegment.data);if(T.length){let j=T[0];j.some(X=>X!==0)?(this.log(`Using keyId found in init segment ${Q(j)}`),Lo.setKeyIdForUri(t.decryptdata.uri,j)):(j=Lo.addKeyIdForUri(t.decryptdata.uri),this.log(`Generating keyId to patch media ${Q(j)}`)),t.decryptdata.keyId=j}}if(!t.decryptdata.keyId&&!Ce(n))return Promise.resolve(s);const w=this.emeController.loadKey(s);return(t.keyLoadPromise=w.then(T=>(t.mediaKeySessionContext=T,s))).catch(T=>{throw t.keyLoadPromise=null,"data"in T&&(T.data.frag=n),T})}return Promise.resolve(s)}loadKeyHTTP(t,n){const s=this.config,v=s.loader,w=new v(s);return n.keyLoader=t.loader=w,t.keyLoadPromise=new Promise((T,j)=>{const X={keyInfo:t,frag:n,responseType:"arraybuffer",url:t.decryptdata.uri},G=s.keyLoadPolicy.default,ue={loadPolicy:G,timeout:G.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},de={onSuccess:(xe,Me,Fe,lt)=>{const{frag:ut,keyInfo:Vt}=Fe,Jt=ld(Vt.decryptdata);if(!ut.decryptdata||Vt!==this.keyIdToKeyInfo[Jt])return j(this.createKeyLoadError(ut,f.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),lt));Vt.decryptdata.key=ut.decryptdata.key=new Uint8Array(xe.data),ut.keyLoader=null,Vt.loader=null,T({frag:ut,keyInfo:Vt})},onError:(xe,Me,Fe,lt)=>{this.resetLoader(Me),j(this.createKeyLoadError(n,f.KEY_LOAD_ERROR,new Error(`HTTP Error ${xe.code} loading key ${xe.text}`),Fe,b({url:X.url,data:void 0},xe)))},onTimeout:(xe,Me,Fe)=>{this.resetLoader(Me),j(this.createKeyLoadError(n,f.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),Fe))},onAbort:(xe,Me,Fe)=>{this.resetLoader(Me),j(this.createKeyLoadError(n,f.INTERNAL_ABORTED,new Error("key loading aborted"),Fe))}};w.load(X,ue,de)})}resetLoader(t){const{frag:n,keyInfo:s,url:v}=t,w=s.loader;n.keyLoader===w&&(n.keyLoader=null,s.loader=null);const T=ld(s.decryptdata)||v;delete this.keyIdToKeyInfo[T],w&&w.destroy()}}function ld(D){if(D.keyFormat!==hs.FAIRPLAY){const t=D.keyId;if(t)return Q(t)}return D.uri}function gd(D){const{type:t}=D;switch(t){case h.AUDIO_TRACK:return u.AUDIO;case h.SUBTITLE_TRACK:return u.SUBTITLE;default:return u.MAIN}}function cd(D,t){let n=D.url;return(n===void 0||n.indexOf("data:")===0)&&(n=t.url),n}class td{constructor(t){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=t,this.registerListeners()}startLoad(t){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:t}=this;t.on(o.MANIFEST_LOADING,this.onManifestLoading,this),t.on(o.LEVEL_LOADING,this.onLevelLoading,this),t.on(o.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(o.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.on(o.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:t}=this;t.off(o.MANIFEST_LOADING,this.onManifestLoading,this),t.off(o.LEVEL_LOADING,this.onLevelLoading,this),t.off(o.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(o.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.off(o.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(t){const n=this.hls.config,s=n.pLoader,v=n.loader,w=s||v,T=new w(n);return this.loaders[t.type]=T,T}getInternalLoader(t){return this.loaders[t.type]}resetInternalLoader(t){this.loaders[t]&&delete this.loaders[t]}destroyInternalLoaders(){for(const t in this.loaders){const n=this.loaders[t];n&&n.destroy(),this.resetInternalLoader(t)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(t,n){const{url:s}=n;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:h.MANIFEST,url:s,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(t,n){const{id:s,level:v,pathwayId:w,url:T,deliveryDirectives:j,levelInfo:X}=n;this.load({id:s,level:v,pathwayId:w,responseType:"text",type:h.LEVEL,url:T,deliveryDirectives:j,levelOrTrack:X})}onAudioTrackLoading(t,n){const{id:s,groupId:v,url:w,deliveryDirectives:T,track:j}=n;this.load({id:s,groupId:v,level:null,responseType:"text",type:h.AUDIO_TRACK,url:w,deliveryDirectives:T,levelOrTrack:j})}onSubtitleTrackLoading(t,n){const{id:s,groupId:v,url:w,deliveryDirectives:T,track:j}=n;this.load({id:s,groupId:v,level:null,responseType:"text",type:h.SUBTITLE_TRACK,url:w,deliveryDirectives:T,levelOrTrack:j})}onLevelsUpdated(t,n){const s=this.loaders[h.LEVEL];if(s){const v=s.context;v&&!n.levels.some(w=>w===v.levelOrTrack)&&(s.abort(),delete this.loaders[h.LEVEL])}}load(t){var n;const s=this.hls.config;let v=this.getInternalLoader(t);if(v){const G=this.hls.logger,ue=v.context;if(ue&&ue.levelOrTrack===t.levelOrTrack&&(ue.url===t.url||ue.deliveryDirectives&&!t.deliveryDirectives)){ue.url===t.url?G.log(`[playlist-loader]: ignore ${t.url} ongoing request`):G.log(`[playlist-loader]: ignore ${t.url} in favor of ${ue.url}`);return}G.log(`[playlist-loader]: aborting previous loader for type: ${t.type}`),v.abort()}let w;if(t.type===h.MANIFEST?w=s.manifestLoadPolicy.default:w=y({},s.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),v=this.createInternalLoader(t),r((n=t.deliveryDirectives)==null?void 0:n.part)){let G;if(t.type===h.LEVEL&&t.level!==null?G=this.hls.levels[t.level].details:t.type===h.AUDIO_TRACK&&t.id!==null?G=this.hls.audioTracks[t.id].details:t.type===h.SUBTITLE_TRACK&&t.id!==null&&(G=this.hls.subtitleTracks[t.id].details),G){const ue=G.partTarget,de=G.targetduration;if(ue&&de){const xe=Math.max(ue*3,de*.8)*1e3;w=y({},w,{maxTimeToFirstByteMs:Math.min(xe,w.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(xe,w.maxTimeToFirstByteMs)})}}}const T=w.errorRetry||w.timeoutRetry||{},j={loadPolicy:w,timeout:w.maxLoadTimeMs,maxRetry:T.maxNumRetry||0,retryDelay:T.retryDelayMs||0,maxRetryDelay:T.maxRetryDelayMs||0},X={onSuccess:(G,ue,de,xe)=>{const Me=this.getInternalLoader(de);this.resetInternalLoader(de.type);const Fe=G.data;ue.parsing.start=performance.now(),zo.isMediaPlaylist(Fe)||de.type!==h.MANIFEST?this.handleTrackOrLevelPlaylist(G,ue,de,xe||null,Me):this.handleMasterPlaylist(G,ue,de,xe)},onError:(G,ue,de,xe)=>{this.handleNetworkError(ue,de,!1,G,xe)},onTimeout:(G,ue,de)=>{this.handleNetworkError(ue,de,!0,void 0,G)}};v.load(t,j,X)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:t,startPosition:n},forceStartLoad:s}=this.hls;(t||s)&&(this.hls.logger.log(`${t?"auto":"force"} startLoad with configured startPosition ${n}`),this.hls.startLoad(n))}handleMasterPlaylist(t,n,s,v){const w=this.hls,T=t.data,j=cd(t,s),X=zo.parseMasterPlaylist(T,j);if(X.playlistParsingError){n.parsing.end=performance.now(),this.handleManifestParsingError(t,s,X.playlistParsingError,v,n);return}const{contentSteering:G,levels:ue,sessionData:de,sessionKeys:xe,startTimeOffset:Me,variableList:Fe}=X;this.variableList=Fe,ue.forEach(Jt=>{const{unknownCodecs:rr}=Jt;if(rr){const{preferManagedMediaSource:xr}=this.hls.config;let{audioCodec:jr,videoCodec:pn}=Jt;for(let Ur=rr.length;Ur--;){const an=rr[Ur];Pe(an,"audio",xr)?(Jt.audioCodec=jr=jr?`${jr},${an}`:an,Ht.audio[jr.substring(0,4)]=2,rr.splice(Ur,1)):Pe(an,"video",xr)&&(Jt.videoCodec=pn=pn?`${pn},${an}`:an,Ht.video[pn.substring(0,4)]=2,rr.splice(Ur,1))}}});const{AUDIO:lt=[],SUBTITLES:ut,"CLOSED-CAPTIONS":Vt}=zo.parseMasterPlaylistMedia(T,j,X);lt.length&&!lt.some(rr=>!rr.url)&&ue[0].audioCodec&&!ue[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),lt.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new Ki({}),bitrate:0,url:""})),w.trigger(o.MANIFEST_LOADED,{levels:ue,audioTracks:lt,subtitles:ut,captions:Vt,contentSteering:G,url:j,stats:n,networkDetails:v,sessionData:de,sessionKeys:xe,startTimeOffset:Me,variableList:Fe})}handleTrackOrLevelPlaylist(t,n,s,v,w){const T=this.hls,{id:j,level:X,type:G}=s,ue=cd(t,s),de=r(X)?X:r(j)?j:0,xe=gd(s),Me=zo.parseLevelPlaylist(t.data,ue,de,xe,0,this.variableList);if(G===h.MANIFEST){const Fe={attrs:new Ki({}),bitrate:0,details:Me,name:"",url:ue};Me.requestScheduled=n.loading.start+$r(Me,0),T.trigger(o.MANIFEST_LOADED,{levels:[Fe],audioTracks:[],url:ue,stats:n,networkDetails:v,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}n.parsing.end=performance.now(),s.levelDetails=Me,this.handlePlaylistLoaded(Me,t,n,s,v,w)}handleManifestParsingError(t,n,s,v,w){this.hls.trigger(o.ERROR,{type:c.NETWORK_ERROR,details:f.MANIFEST_PARSING_ERROR,fatal:n.type===h.MANIFEST,url:t.url,err:s,error:s,reason:s.message,response:t,context:n,networkDetails:v,stats:w})}handleNetworkError(t,n,s=!1,v,w){let T=`A network ${s?"timeout":"error"+(v?" (status "+v.code+")":"")} occurred while loading ${t.type}`;t.type===h.LEVEL?T+=`: ${t.level} id: ${t.id}`:(t.type===h.AUDIO_TRACK||t.type===h.SUBTITLE_TRACK)&&(T+=` id: ${t.id} group-id: "${t.groupId}"`);const j=new Error(T);this.hls.logger.warn(`[playlist-loader]: ${T}`);let X=f.UNKNOWN,G=!1;const ue=this.getInternalLoader(t);switch(t.type){case h.MANIFEST:X=s?f.MANIFEST_LOAD_TIMEOUT:f.MANIFEST_LOAD_ERROR,G=!0;break;case h.LEVEL:X=s?f.LEVEL_LOAD_TIMEOUT:f.LEVEL_LOAD_ERROR,G=!1;break;case h.AUDIO_TRACK:X=s?f.AUDIO_TRACK_LOAD_TIMEOUT:f.AUDIO_TRACK_LOAD_ERROR,G=!1;break;case h.SUBTITLE_TRACK:X=s?f.SUBTITLE_TRACK_LOAD_TIMEOUT:f.SUBTITLE_LOAD_ERROR,G=!1;break}ue&&this.resetInternalLoader(t.type);const de={type:c.NETWORK_ERROR,details:X,fatal:G,url:t.url,loader:ue,context:t,error:j,networkDetails:n,stats:w};if(v){const xe=(n==null?void 0:n.url)||t.url;de.response=b({url:xe,data:void 0},v)}this.hls.trigger(o.ERROR,de)}handlePlaylistLoaded(t,n,s,v,w,T){const j=this.hls,{type:X,level:G,levelOrTrack:ue,id:de,groupId:xe,deliveryDirectives:Me}=v,Fe=cd(n,v),lt=gd(v);let ut=typeof v.level=="number"&<===u.MAIN?G:void 0;const Vt=t.playlistParsingError;if(Vt){if(this.hls.logger.warn(`${Vt} ${t.url}`),!j.config.ignorePlaylistParsingErrors){j.trigger(o.ERROR,{type:c.NETWORK_ERROR,details:f.LEVEL_PARSING_ERROR,fatal:!1,url:Fe,error:Vt,reason:Vt.message,response:n,context:v,level:ut,parent:lt,networkDetails:w,stats:s});return}t.playlistParsingError=null}if(!t.fragments.length){const Jt=t.playlistParsingError=new Error("No Segments found in Playlist");j.trigger(o.ERROR,{type:c.NETWORK_ERROR,details:f.LEVEL_EMPTY_ERROR,fatal:!1,url:Fe,error:Jt,reason:Jt.message,response:n,context:v,level:ut,parent:lt,networkDetails:w,stats:s});return}switch(t.live&&T&&(T.getCacheAge&&(t.ageHeader=T.getCacheAge()||0),(!T.getCacheAge||isNaN(t.ageHeader))&&(t.ageHeader=0)),X){case h.MANIFEST:case h.LEVEL:if(ut){if(!ue)ut=0;else if(ue!==j.levels[ut]){const Jt=j.levels.indexOf(ue);Jt>-1&&(ut=Jt)}}j.trigger(o.LEVEL_LOADED,{details:t,levelInfo:ue||j.levels[0],level:ut||0,id:de||0,stats:s,networkDetails:w,deliveryDirectives:Me,withoutMultiVariant:X===h.MANIFEST});break;case h.AUDIO_TRACK:j.trigger(o.AUDIO_TRACK_LOADED,{details:t,track:ue,id:de||0,groupId:xe||"",stats:s,networkDetails:w,deliveryDirectives:Me});break;case h.SUBTITLE_TRACK:j.trigger(o.SUBTITLE_TRACK_LOADED,{details:t,track:ue,id:de||0,groupId:xe||"",stats:s,networkDetails:w,deliveryDirectives:Me});break}}}class If{static get version(){return ii}static isMSESupported(){return md()}static isSupported(){return Td()}static getMediaSource(){return ae()}static get Events(){return o}static get MetadataSchema(){return Tn}static get ErrorTypes(){return c}static get ErrorDetails(){return f}static get DefaultConfig(){return If.defaultConfig?If.defaultConfig:za}static set DefaultConfig(t){If.defaultConfig=t}constructor(t={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new ni,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const n=this.logger=H(t.debug||!1,"Hls instance",t.assetPlayerId),s=this.config=en(If.DefaultConfig,t,n);this.userConfig=t,s.progressive&&Qr(s,n);const{abrController:v,bufferController:w,capLevelController:T,errorController:j,fpsController:X}=s,G=new j(this),ue=this.abrController=new v(this),de=new ka(this),xe=s.interstitialsController,Me=xe?this.interstitialsController=new xe(this,If):null,Fe=this.bufferController=new w(this,de),lt=this.capLevelController=new T(this),ut=new X(this),Vt=new td(this),Jt=s.contentSteeringController,rr=Jt?new Jt(this):null,xr=this.levelController=new Cd(this,rr),jr=new Sd(this),pn=new Id(this.config,this.logger),Ur=this.streamController=new _d(this,de,pn),an=this.gapController=new Qa(this,de);lt.setStreamController(Ur),ut.setStreamController(Ur);const nn=[Vt,xr,Ur];Me&&nn.splice(1,0,Me),rr&&nn.splice(1,0,rr),this.networkControllers=nn;const Vr=[ue,Fe,an,lt,ut,jr,de];this.audioTrackController=this.createController(s.audioTrackController,nn);const Dn=s.audioStreamController;Dn&&nn.push(this.audioStreamController=new Dn(this,de,pn)),this.subtitleTrackController=this.createController(s.subtitleTrackController,nn);const Ei=s.subtitleStreamController;Ei&&nn.push(this.subtititleStreamController=new Ei(this,de,pn)),this.createController(s.timelineController,Vr),pn.emeController=this.emeController=this.createController(s.emeController,Vr),this.cmcdController=this.createController(s.cmcdController,Vr),this.latencyController=this.createController(Ad,Vr),this.coreComponents=Vr,nn.push(G);const Qi=G.onErrorOut;typeof Qi=="function"&&this.on(o.ERROR,Qi,G),this.on(o.MANIFEST_LOADED,Vt.onManifestLoaded,Vt)}createController(t,n){if(t){const s=new t(this);return n&&n.push(s),s}return null}on(t,n,s=this){this._emitter.on(t,n,s)}once(t,n,s=this){this._emitter.once(t,n,s)}removeAllListeners(t){this._emitter.removeAllListeners(t)}off(t,n,s=this,v){this._emitter.off(t,n,s,v)}listeners(t){return this._emitter.listeners(t)}emit(t,n,s){return this._emitter.emit(t,n,s)}trigger(t,n){if(this.config.debug)return this.emit(t,t,n);try{return this.emit(t,t,n)}catch(s){if(this.logger.error("An internal error happened while handling event "+t+'. Error message: "'+s.message+'". Here is a stacktrace:',s),!this.triggeringException){this.triggeringException=!0;const v=t===o.ERROR;this.trigger(o.ERROR,{type:c.OTHER_ERROR,details:f.INTERNAL_EXCEPTION,fatal:v,event:t,error:s}),this.triggeringException=!1}}return!1}listenerCount(t){return this._emitter.listenerCount(t)}destroy(){this.logger.log("destroy"),this.trigger(o.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(n=>n.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(n=>n.destroy()),this.coreComponents.length=0;const t=this.config;t.xhrSetup=t.fetchSetup=void 0,this.userConfig=null}attachMedia(t){if(!t||"media"in t&&!t.media){const w=new Error(`attachMedia failed: invalid argument (${t})`);this.trigger(o.ERROR,{type:c.OTHER_ERROR,details:f.ATTACH_MEDIA_ERROR,fatal:!0,error:w});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const n="media"in t,s=n?t.media:t,v=n?t:{media:s};this._media=s,this.trigger(o.MEDIA_ATTACHING,v)}detachMedia(){this.logger.log("detachMedia"),this.trigger(o.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const t=this.bufferController.transferMedia();return this.trigger(o.MEDIA_DETACHING,{transferMedia:t}),t}loadSource(t){this.stopLoad();const n=this.media,s=this._url,v=this._url=$.buildAbsoluteURL(self.location.href,t,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${v}`),n&&s&&(s!==v||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(n)),this.trigger(o.MANIFEST_LOADING,{url:t})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(t=-1,n){this.logger.log(`startLoad(${t+(n?", ":"")})`),this.started=!0,this.resumeBuffering();for(let s=0;s{t.resumeBuffering&&t.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(t=>{t.pauseBuffering&&t.pauseBuffering()}))}get inFlightFragments(){const t={[u.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(t[u.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(t[u.SUBTITLE]=this.subtititleStreamController.inFlightFrag),t}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const t=this._media,n=t==null?void 0:t.currentTime;this.detachMedia(),t&&(this.attachMedia(t),n&&this.startLoad(n))}removeLevel(t){this.levelController.removeLevel(t)}get sessionId(){let t=this._sessionId;return t||(t=this._sessionId=rf()),t}get levels(){const t=this.levelController.levels;return t||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(t){this.logger.log(`set currentLevel:${t}`),this.levelController.manualLevel=t,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(t){this.logger.log(`set nextLevel:${t}`),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(t){this.logger.log(`set loadLevel:${t}`),this.levelController.manualLevel=t}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(t){this.levelController.nextLoadLevel=t}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(t){this.logger.log(`set firstLevel:${t}`),this.levelController.firstLevel=t}get startLevel(){const t=this.levelController.startLevel;return t===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:t}set startLevel(t){this.logger.log(`set startLevel:${t}`),t!==-1&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(t){const n=!!t;n!==this.config.capLevelToPlayerSize&&(n?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=n)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimate():NaN}set bandwidthEstimate(t){this.abrController.resetEstimator(t)}get abrEwmaDefaultEstimate(){const{bwEstimator:t}=this.abrController;return t?t.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimateTTFB():NaN}set autoLevelCapping(t){this._autoLevelCapping!==t&&(this.logger.log(`set autoLevelCapping:${t}`),this._autoLevelCapping=t,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(t){Br(t)&&this._maxHdcpLevel!==t&&(this._maxHdcpLevel=t,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:t,config:{minAutoBitrate:n}}=this;if(!t)return 0;const s=t.length;for(let v=0;v=n)return v;return 0}get maxAutoLevel(){const{levels:t,autoLevelCapping:n,maxHdcpLevel:s}=this;let v;if(n===-1&&t!=null&&t.length?v=t.length-1:v=n,s)for(let w=v;w--;){const T=t[w].attrs["HDCP-LEVEL"];if(T&&T<=s)return w}return v}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(t){this.abrController.nextAutoLevel=t}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(t){var n;return((n=this.audioTrackController)==null?void 0:n.setAudioOption(t))||null}setSubtitleOption(t){var n;return((n=this.subtitleTrackController)==null?void 0:n.setSubtitleOption(t))||null}get allAudioTracks(){const t=this.audioTrackController;return t?t.allAudioTracks:[]}get audioTracks(){const t=this.audioTrackController;return t?t.audioTracks:[]}get audioTrack(){const t=this.audioTrackController;return t?t.audioTrack:-1}set audioTrack(t){const n=this.audioTrackController;n&&(n.audioTrack=t)}get allSubtitleTracks(){const t=this.subtitleTrackController;return t?t.allSubtitleTracks:[]}get subtitleTracks(){const t=this.subtitleTrackController;return t?t.subtitleTracks:[]}get subtitleTrack(){const t=this.subtitleTrackController;return t?t.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(t){const n=this.subtitleTrackController;n&&(n.subtitleTrack=t)}get subtitleDisplay(){const t=this.subtitleTrackController;return t?t.subtitleDisplay:!1}set subtitleDisplay(t){const n=this.subtitleTrackController;n&&(n.subtitleDisplay=t)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(t){this.config.lowLatencyMode=t}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(t){this.latencyController.targetLatency=t}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(t){this.levelController.pathwayPriority=t}get bufferedToEnd(){var t;return!!((t=this.bufferController)!=null&&t.bufferedToEnd)}get interstitialsManager(){var t;return((t=this.interstitialsController)==null?void 0:t.interstitialsManager)||null}getMediaDecodingInfo(t,n=this.allAudioTracks){const s=Ia(n);return Bt(t,s,navigator.mediaCapabilities)}}If.defaultConfig=void 0},53280:function(d,_,e){"use strict";e.d(_,{D:function(){return i}});function r(l,c,f){var o=f||{},h=o.noTrailing,u=h===void 0?!1:h,a=o.noLeading,x=a===void 0?!1:a,p=o.debounceMode,y=p===void 0?void 0:p,m,b=!1,S=0;function k(){m&&clearTimeout(m)}function R(I){var M=I||{},B=M.upcomingOnly,N=B===void 0?!1:B;k(),b=!N}function A(){for(var I=arguments.length,M=new Array(I),B=0;Bl?x?(S=Date.now(),u||(m=setTimeout(y?W:H,l))):H():u!==!0&&(m=setTimeout(y?W:H,y===void 0?l-K:l))}return A.cancel=R,A}function i(l,c,f){var o=f||{},h=o.atBegin,u=h===void 0?!1:h;return r(l,c,{debounceMode:u!==!1})}}},__webpack_module_cache__={};function __webpack_require__(d){var _=__webpack_module_cache__[d];if(_!==void 0)return _.exports;var e=__webpack_module_cache__[d]={id:d,loaded:!1,exports:{}};return __webpack_modules__[d].call(e.exports,e,e.exports,__webpack_require__),e.loaded=!0,e.exports}__webpack_require__.m=__webpack_modules__,function(){__webpack_require__.amdO={}}(),function(){__webpack_require__.n=function(d){var _=d&&d.__esModule?function(){return d.default}:function(){return d};return __webpack_require__.d(_,{a:_}),_}}(),function(){var d=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},_;__webpack_require__.t=function(e,r){if(r&1&&(e=this(e)),r&8||typeof e=="object"&&e&&(r&4&&e.__esModule||r&16&&typeof e.then=="function"))return e;var i=Object.create(null);__webpack_require__.r(i);var l={};_=_||[null,d({}),d([]),d(d)];for(var c=r&2&&e;typeof c=="object"&&!~_.indexOf(c);c=d(c))Object.getOwnPropertyNames(c).forEach(function(f){l[f]=function(){return e[f]}});return l.default=function(){return e},__webpack_require__.d(i,l),i}}(),function(){__webpack_require__.d=function(d,_){for(var e in _)__webpack_require__.o(_,e)&&!__webpack_require__.o(d,e)&&Object.defineProperty(d,e,{enumerable:!0,get:_[e]})}}(),function(){__webpack_require__.f={},__webpack_require__.e=function(d){return Promise.all(Object.keys(__webpack_require__.f).reduce(function(_,e){return __webpack_require__.f[e](d,_),_},[]))}}(),function(){__webpack_require__.u=function(d){return""+({26:"p__Classrooms__Lists__Graduation__Tasks__Edit__index",67:"p__Message__index",109:"p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index",119:"p__User__ThemeChange__Paths",195:"p__Classrooms__Lists__GroupHomework__Detail__index",201:"p__Classrooms__ThemeChange__Students",264:"p__User__Detail__Order__pages__orderPay__index",292:"p__Classrooms__Lists__Exercise__Add__index",337:"p__Paperlibrary__Random__PreviewEdit__index",479:"p__Classrooms__Lists__GroupHomework__EditWork__index",485:"p__Question__AddOrEdit__BatchAdd__index",508:"p__Forums__Detail__id",518:"p__Shixuns__Detail__Settings__ThemeChange__index",532:"p__ExcellentCourse__index",533:"p__Classrooms__Lists__Video__Statistics__Detail__index",547:"p__Account__index",556:"p__User__Detail__Order__pages__invoice__index",559:"layouts__virtualDetail__index",570:"p__Home__Detail__OnlineNum__index",576:"p__Account__Profile__Edit__index",643:"p__Classrooms__Lists__Polls__QuestionnaireInfo__index",680:"p__Innovation__index",700:"p__tasks__Jupyter__index",737:"p__Classrooms__Lists__CommonHomework__Detail__components__CodeReview__Detail__index",799:"p__User__Detail__Topics__Poll__Detail__index",879:"p__User__ThemeChange__AccountInfo",895:"p__Classrooms__Lists__Video__Items__videoInfo__index",900:"p__User__ThemeChange__Classrooms",906:"p__User__ThemeChange__CareerCertification",921:"p__Classrooms__Lists__Exercise__CodeDetails__index",928:"p__RestFul__Edit__index",1006:"p__RestFul__index",1043:"p__Classrooms__Lists__Graduation__Tasks__index",1045:"p__virtualSpaces__Lists__Knowledge__AddAndEdit__index",1048:"p__Classrooms__Lists__ProgramHomework__Detail__Ranking__index",1070:"p__Innovation__PublicMirror__index",1077:"p__User__ThemeTwoLogin__index",1211:"p__Classrooms__Lists__CommonHomework__EditWork__index",1253:"p__Graduations__Lists__Gradingsummary__index",1257:"p__Classrooms__Lists__ResourceRecommend__index",1276:"p__MoopCases__Success__index",1343:"p__User__Detail__ResourceAllocation__index",1423:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index",1427:"p__Classrooms__Lists__Statistics__index",1450:"p__Classrooms__Lists__ShixunHomeworks__Commitsummary__index",1461:"p__Graduations__Lists__Topics__index",1470:"p__User__Register__index",1475:"p__Shixuns__Detail__Dataset__JupyterData__index",1477:"p__Classrooms__ThemeChange__Assistant",1482:"p__Classrooms__Lists__Graduation__Topics__Edit__index",1512:"p__Classrooms__Lists__Exercise__AnswerCheck__index",1520:"p__Engineering__Lists__StudentList__index",1545:"p__Paperlibrary__Random__ExchangeFromProblemSet__index",1578:"p__Classrooms__Lists__Graduation__Topics__Detail__index",1581:"p__Problemset__Preview__index",1582:"p__Classrooms__Lists__GroupHomework__Add__index",1651:"p__Paths__ThemeChange__Statistics",1657:"p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index",1660:"p__User__QQLogin__index",1674:"p__Classrooms__ClassicCases__index",1678:"p__Classrooms__ThemeChange__Attachment",1713:"p__virtualSpaces__Lists__Settings__index",1717:"layouts__index",1727:"p__Classrooms__Lists__CourseGroup__NotList__index",1754:"p__Classrooms__ThemeChange__Video",1783:"p__virtualSpaces__Lists__Experiment__index",1798:"p__Classrooms__ThemeChange__GroupHomework",1799:"p__Competitions__Entered__Assembly__TeamDateil",1831:"p__Graduations__Index__index",1836:"p__Classrooms__Lists__Attendance__Webview__Teacher__index",1855:"p__MoopCases__InfoPanel__index",1880:"p__User__Detail__Order__pages__apply__index",1897:"p__User__ThemeChange__ClassManagement",1939:"p__User__Detail__Order__index",1953:"p__Problemset__NewItem__index",1962:"p__Classrooms__Lists__Engineering__index",1993:"p__Shixuns__Detail__Dataset__ThemeChange__index",2045:"p__Engineering__Lists__TeacherList__index",2099:"p__Paperlibrary__ThemeChange__index",2102:"p__Classrooms__Lists__Board__Edit__index",2130:"p__Shixuns__Detail__Repository__UploadFile__ThemeChange__index",2141:"p__Shixuns__Detail__Split__index",2203:"p__Classrooms__ThemeChange__ShixunHomeworks",2216:"p__DataSet__Index__index",2240:"p__User__Detail__Videos__Upload__index",2281:"p__Paths__ThemeChange__Detail",2300:"p__Api__index",2303:"p__Classrooms__Lists__CommonHomework__Comment__index",2307:"p__Report__index",2338:"p__Classrooms__Lists__CommonHomework__Review__index",2339:"p__virtualSpaces__Lists__Plan__Detail__index",2396:"p__User__Detail__ResourcesCenter__index",2404:"p__Classrooms__Lists__Template__teacher__index",2412:"p__User__Detail__Videos__index",2425:"p__Classrooms__Lists__Board__Detail__index",2443:"p__Graduations__Lists__StageModule__index",2476:"p__Colleges__index",2501:"p__Search__index",2539:"p__Graduations__Review__index",2548:"p__Engineering__Norm__Detail__index",2570:"p__Competitions__Detail__index",2603:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Add__index",2659:"p__User__Detail__UserPortrait__index",2707:"p__Innovation__MyDataSet__index",2806:"p__User__Detail__Topics__Exercise__Detail__index",2819:"p__Classrooms__Lists__Template__detail__index",2823:"p__Engineering__Navigation__Home__index",2829:"p__Messages__Private__index",2862:"p__User__ThemeChange__ExperImentImg",2865:"p__Innovation__MyMirror__index",2884:"p__Classrooms__Lists__ProgramHomework__Comment__index",3006:"p__Engineering__index",3086:"p__Shixuns__Detail__ForkList__ThemeChange__index",3141:"p__Innovation__Detail__index",3157:"p__User__Detail__ExperImentImg__Add__index",3183:"p__Engineering__Lists__GraduationIndex__index",3212:"p__MoopCases__index",3220:"p__Classrooms__Lists__Video__Upload__index",3247:"p__Paperlibrary__See__index",3260:"p__Paperlibrary__Add__index",3276:"p__Classrooms__Lists__Statistics__UserportraitStatistics__index",3317:"p__Classrooms__Lists__Graduation__Topics__Add__index",3391:"p__Classrooms__Lists__ProgramHomework__Detail__components__CodeReview__Detail__index",3433:"p__Classrooms__Lists__Exercise__Sumup__Edit__index",3442:"p__Classrooms__Lists__Board__Add__index",3447:"p__User__Detail__Order__pages__orderInformation__index",3451:"p__Classrooms__Lists__Statistics__StudentStatistics__Detail__index",3509:"p__HttpStatus__SixActivities",3581:"p__Shixuns__Detail__Collaborators__ThemeChange__index",3585:"p__Classrooms__Lists__Statistics__StudentSituation__index",3668:"p__Classrooms__Lists__CommonHomework__Detail__index",3747:"p__virtualSpaces__Lists__Homepage__index",3784:"p__Paperlibrary__Random__Detail__index",3831:"p__User__ThemeChange__VirtualSpaces",3862:"p__HttpStatus__403",3873:"p__virtualSpaces__Lists__Lesson__index",3910:"p__HttpStatus__introduction",3951:"p__Classrooms__Lists__ProgramHomework__Detail__index",4017:"p__Classrooms__Lists__PlaceholderPage__index",4030:"p__Classrooms__Lists__ProgramHomework__AddAndEdit__index",4048:"p__Forums__ThemeChange__index",4056:"p__IntrainCourse__index",4058:"p__Demo__index",4078:"p__Messages__Tidings__index",4093:"p__Classrooms__Lists__Attendance__Detail__index",4105:"p__Classrooms__Lists__Exercise__Answer__index",4144:"p__Problemset__Preview__New__index",4164:"p__Classrooms__Lists__Exercise__Detail__index",4216:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Edit__index",4217:"p__Classrooms__Lists__Video__Statistics__index",4227:"p__Paths__Overview__index",4259:"p__User__Detail__Order__pages__result__index",4264:"p__Forums__New__index",4297:"p__Classrooms__ThemeChange__Polls",4449:"p__Competitions__Exports__index",4492:"p__Graduations__Lists__StudentSelection__index",4496:"p__HttpStatus__HpcCourse",4498:"p__Shixuns__Edit__body__Level__Challenges__NewPractice__index",4504:"p__virtualSpaces__Lists__Survey__index",4514:"p__Account__Results__index",4520:"p__Account__Secure__index",4546:"p__Engineering__Lists__TrainingProgram__Add__index",4565:"p__HttpStatus__500",4572:"p__Classrooms__Lists__ExportList__index",4599:"p__Problemset__index",4610:"p__User__Detail__LearningPath__index",4621:"p__Administration__Profession__index",4662:"p__Classrooms__Lists__GroupHomework__Review__index",4715:"p__virtualSpaces__Lists__Material__Detail__index",4736:"p__User__Detail__Projects__index",4741:"p__Problems__OjForm__NewEdit__index",4757:"p__virtualSpaces__Lists__Workplace__index",4766:"p__Administration__index",4770:"p__Classrooms__Lists__ProgramHomework__Detail__answer__index",4795:"p__Classrooms__Lists__Graduation__Tasks__Add__index",4800:"p__Engineering__Lists__GraduatedMatrix__index",4889:"p__Classrooms__Lists__Exercise__ImitateAnswer__index",4928:"p__Classrooms__Lists__LearningPath__index",4944:"p__Classrooms__Lists__Statistics__ZbStatistics__StudentDetail__index",4973:"p__Engineering__Evaluate__List__index",4994:"p__Problems__OjForm__index",5022:"p__Graduations__Lists__Settings__index",5043:"p__User__Detail__Topics__Poll__Edit__index",5048:"p__Classrooms__Lists__Graduation__Topics__index",5096:"p__Shixuns__Detail__AuditSituation__index",5111:"p__Terminal__index",5117:"p__User__ThemeChange__Certificate",5125:"p__Classrooms__Lists__Exercise__DetailedAnalysis__index",5148:"p__Classrooms__Lists__Polls__Answer__index",5165:"p__User__ThemeChange__Topics",5176:"p__User__Detail__Videos__Protocol__index",5177:"p__Classrooms__ThemeChange__Teachers",5179:"p__Administration__Student__Edit__index",5186:"p__Classrooms__Overview__index",5230:"p__Shixuns__Detail__Repository__AddFile__ThemeChange__index",5238:"p__virtualSpaces__Lists__Material__index",5297:"p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail__index",5307:"p__Shixuns__ThemeChange__New",5319:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index",5330:"p__Classrooms__ThemeChange__ShixunHomeworksComment",5335:"p__Engineering__Lists__CourseMatrix__index",5357:"p__Engineering__Lists__TrainingProgram__Edit__index",5359:"p__Messages__Detail__index",5382:"p__DataSet__Detail__index",5402:"p__User__Detail__Topics__Detail__index",5466:"p__Classrooms__ThemeChange__LiveVideo",5518:"p__Classrooms__Lists__Template__index",5549:"p__Shixuns__New__CreateImg__index",5572:"p__Paths__HigherVocationalEducation__index",5573:"p__Shixuns__Detail__Merge__index",5624:"p__Graduations__Lists__Index__index",5650:"p__Competitions__Update__index",5694:"p__Classrooms__ThemeChange__ShixunHomeworksDetail",5705:"p__virtualSpaces__Lists__Construction__index",5729:"p__Help__Index",5775:"p__Engineering__Lists__Document__index",5776:"p__User__ThemeChange__RealNameCertification",5786:"layouts__LoginAndRegister__index",5798:"p__Classrooms__Lists__Video__Statistics__UserDetail__index",5800:"p__User__ThemeChange__Competitions",5816:"p__Paperlibrary__Random__Edit__index",5823:"p__Classrooms__Lists__Statistics__ZbStatistics__index",5888:"p__Classrooms__Lists__CommonHomework__Add__index",5891:"p__virtualSpaces__Lists__Resources__index",5894:"p__Shixuns__Detail__Repository__Commit__ThemeChange__index",5902:"p__Classrooms__Lists__Exercise__Sumup__index",5915:"p__knowledgegraph__Detail__Statistics__index",5972:"layouts__user__index",5992:"p__Classrooms__Lists__Exercise__ReviewGroup__index",6029:"p__Administration__Student__index",6034:"p__HttpStatus__UserAgents",6063:"p__Graduations__Lists__Personmanage__index",6069:"p__virtualSpaces__Lists__Lesson__Detail__index",6080:"p__Paths__ThemeChange__New",6127:"p__Classrooms__Lists__ProgramHomework__Ranking__index",6170:"p__HttpStatus__downloadStudent",6185:"p__Classrooms__ThemeChange__Announcement",6265:"p__virtualSpaces__Lists__Discussion__index",6270:"p__MyProblem__index",6282:"p__Classrooms__ThemeChange__ProgramHomework",6328:"p__Shixuns__Edit__body__Warehouse__index",6366:"p__Innovation__PublicProject__index",6434:"p__User__Detail__Order__pages__records__index",6444:"p__Video__Detail__id",6451:"p__Shixuns__Detail__RankingList__ThemeChange__index",6452:"p__Innovation__PublicDataSet__index",6531:"p__HttpStatus__404",6583:"p__User__Detail__Classrooms__index",6587:"p__User__Detail__Videos__Protocol__resource",6634:"p__Innovation__Tasks__index",6637:"p__Shixuns__Detail__Repository__ThemeChange__index",6651:"p__Engineering__Evaluate__Detail__index",6682:"p__User__ThemeChange__Shixuns",6685:"p__Classrooms__Index__index",6729:"p__Classrooms__Lists__GroupHomework__Edit__index",6741:"p__Engineering__Norm__List__index",6776:"p__Classrooms__ThemeChange__Exercise",6784:"p__Innovation__Edit__index",6788:"p__Home__Detail__ShixunContext__Detail__index",6789:"p__Classrooms__ThemeChange__index",6796:"p__virtualSpaces__Lists__Announcement__Detail__index",6820:"p__User__Detail__Topics__Normal__index",6882:"p__Classrooms__New__StartClass__index",6904:"p__MoopCases__FormPanel__index",6913:"p__Question__AddOrEdit__index",6963:"p__Classrooms__Lists__Engineering__Detail__index",7043:"p__User__Detail__Topics__Exercise__Edit__index",7045:"p__Classrooms__Lists__CommonHomework__SubmitWork__index",7058:"p__virtualSpaces__Lists__Survey__Detail__index",7062:"layouts__SimpleLayouts",7099:"p__Competitions__ThemeChange__index",7178:"p__User__BindAccount__index",7182:"p__User__ResetPassword__index",7224:"p__StatsDashboard__index",7242:"p__Innovation__MyProject__index",7260:"p__Account__Certification__index",7289:"p__tasks__ThemeChange__index",7322:"layouts__ThemeChange__ShixunDetail",7323:"p__Classrooms__ThemeChange__New",7329:"p__Classrooms__ThemeChange__Attendance",7333:"p__User__WechatLogin__index",7395:"p__Classrooms__Lists__Statistics__StudentDetail__index",7402:"p__User__ThemeChange__OtherResources",7460:"p__Question__OjProblem__index",7477:"p__virtualSpaces__Lists__Announcement__index",7482:"p__Classrooms__Lists__Exercise__Notice__index",7527:"p__MyProblem__RecordDetail__index",7545:"p__Graduations__Lists__Archives__index",7560:"p__Administration__College__index",7589:"p__virtualSpaces__Lists__DigitalTopics__index",7614:"p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index",7622:"p__Classrooms__Lists__Polls__Detail__index",7806:"p__Classrooms__Lists__Statistics__StatisticsQuality__index",7835:"p__Problemset__ThemeChange__index",7855:"p__User__Detail__ResourcesCenter__Detail__index",7857:"p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index",7883:"p__Classrooms__Lists__Exercise__WrongAnswer__index",7884:"p__Shixuns__Exports__index",7901:"p__Guidance__ThemeChange",7922:"p__Classrooms__Lists__CourseGroup__Detail__index",8062:"p__User__Detail__Topicbank__index",8072:"p__Classrooms__Lists__GroupHomework__SubmitWork__index",8085:"p__Classrooms__Lists__Exercise__Review__index",8115:"p__User__ThemeChange__DataSet",8143:"layouts__GraduationsDetail__index",8145:"p__User__ThemeChange__ClassManagementItem",8155:"p__Shixuns__Overview__index",8217:"p__User__ThemeChange__AccountInfoEdit",8237:"p__User__Detail__Order__pages__view__index",8241:"p__virtualSpaces__Lists__Plan__index",8286:"p__User__ThemeChange__ExperImentImgDetail",8332:"p__User__ThemeChange__Detail",8340:"p__Classrooms__Lists__Attendance__Webview__Student__index",8365:"p__Home__Detail__ShixunContext__index",8398:"p__virtualSpaces__Lists__Resources__Detail__index",8431:"p__Classrooms__Lists__Exercise__Export__index",8435:"p__Classrooms__Lists__Attendance__index",8447:"p__virtualSpaces__Lists__Knowledge__index",8458:"p__Classrooms__ThemeChange__CommonHomework",8479:"p__User__ThemeChange__TeachGroup",8517:"p__User__Detail__Topics__Group__index",8552:"p__Shixuns__ThemeChange__index",8563:"p__virtualSpaces__Lists__Discussion__Detail__index",8579:"p__Competitions__ThemeChange__Edit",8639:"p__Forums__Index__redirect",8665:"p__Engineering__Lists__TrainingObjectives__index",8688:"p__Shixuns__Detail__Repository__index",8689:"p__Classrooms__Lists__Statistics__VideoStatistics__index",8723:"p__Classrooms__Lists__Polls__Edit__index",8787:"p__Competitions__Entered__index",8823:"p__knowledgegraph__Detail__id",8827:"p__Classrooms__Lists__OnlineLearning__index",8866:"p__index",8882:"p__Classrooms__Lists__Graduation__Tasks__Detail__index",8885:"p__Classrooms__Lists__Statistics__StudentStatistics__index",8965:"p__Shixuns__Detail__Discuss__ThemeChange__index",8999:"p__Three__index",9039:"p__Classrooms__ThemeChange__CourseGroup",9076:"p__Account__Binding__index",9205:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index",9366:"p__User__Login__index",9391:"p__Engineering__Lists__CurseSetting__index",9404:"monaco-editor",9406:"p__Classrooms__ThemeChange__Board",9416:"p__Graduations__Lists__Tasks__index",9417:"p__Shixuns__ThemeOne__Detail__SkillTags__index",9449:"p__Shixuns__ThemeChange__Detail",9487:"p__LargeScreen__index",9489:"p__Engineering__Lists__CourseList__index",9507:"p__User__Detail__ResourceGuarantee__index",9511:"p__Shixuns__ThemeChange__Edit",9647:"p__Question__Index__index",9649:"p__Engineering__Lists__TrainingProgram__index",9674:"p__Shixuns__New__ImagePreview__index",9677:"p__virtualSpaces__Lists__Announcement__AddAndEdit__index",9695:"p__Classrooms__Lists__Polls__Add__index",9715:"p__Classrooms__Lists__CommonHomework__Edit__index",9716:"p__Question__OjProblem__RecordDetail__index",9785:"p__Classrooms__Lists__Template__student__index",9788:"p__Account__Profile__index",9814:"p__Shixuns__Detail__Challenges__ThemeChange__index",9891:"p__User__Detail__Videos__Success__index",9906:"p__Paths__ThemeChange__index",9921:"p__Classrooms__ExamList__index",9922:"p__Classrooms__Lists__Statistics__StudentVideo__index",9944:"p__Classrooms__Lists__Video__Statistics__StudentDetail__index"}[d]||d)+"."+{26:"e00d29e8",67:"4431283b",109:"36903c61",119:"77ff516e",195:"a29ef434",201:"5ab0eda5",264:"76f4c29e",292:"86449254",316:"1f60ada6",337:"480447af",354:"d4d139cf",479:"cd1bc62e",485:"c881156b",508:"c66fc33d",518:"560ee96a",532:"6efe504e",533:"30594b13",547:"9db75212",556:"68ab9ae5",559:"70015a9e",570:"85b961ed",576:"0c6d4a12",629:"44a1d9a5",643:"7025b18e",671:"4a609b8d",680:"c1be65f9",700:"89b43118",737:"408c8d28",741:"ac5fd360",799:"33b1a603",879:"102fc3fa",895:"9e89d2bb",900:"b958bcbd",906:"b2c21b19",921:"80092406",928:"ae1bf1be",981:"24da50c7",1003:"73ab34d7",1006:"d73e5ea5",1043:"a797e82f",1045:"2800ae6e",1048:"a97a0d6a",1070:"f444905c",1077:"f64ec642",1144:"c90eccaf",1154:"8cb80842",1211:"1c26d131",1253:"3d67c120",1257:"5aec6ece",1274:"5f6ea65a",1276:"91b0591a",1343:"bae9b845",1423:"212edd01",1427:"5c6b6e03",1450:"3f79370b",1461:"e5b9df08",1462:"fcf08abc",1470:"73c4e959",1475:"55fa8622",1477:"77beded3",1482:"85cc9467",1512:"1fe4a8be",1520:"8c55e9ec",1545:"940746e5",1578:"d28a2030",1581:"544fe920",1582:"e3326415",1646:"e6e27b60",1651:"09349f36",1657:"44ada0e0",1660:"ec51306c",1674:"eae458ca",1678:"6fd9c75c",1713:"dd5948b0",1717:"6226196c",1727:"0b8cd4ab",1731:"547ed6d2",1754:"f74cc373",1783:"340e4dd6",1798:"ebccf262",1799:"3ca6f85b",1831:"24772145",1836:"647614b3",1855:"456cfe5c",1880:"cde1e643",1897:"33211e6f",1939:"1339cbc6",1953:"070730a5",1962:"7151933f",1993:"e8126f2b",2011:"59d51f98",2045:"ab21eede",2099:"6aa509f8",2102:"94533926",2130:"4609e429",2141:"e41e5c5b",2203:"277785b2",2216:"ffdff73b",2240:"a409e074",2249:"f4830452",2281:"842925b0",2300:"624da73e",2303:"d0955371",2307:"6be8004a",2338:"a8c5d4b5",2339:"e6d2554e",2386:"192e235c",2396:"d574af20",2404:"01e1472f",2412:"049f69ae",2425:"a851a54f",2443:"cbd65e4c",2450:"4b769401",2476:"b9e9c5f4",2494:"68080a87",2501:"3635e75c",2538:"de4a3723",2539:"6ed3bc47",2548:"bf0d459a",2570:"5d53bae4",2594:"e87d3761",2603:"6ad933b2",2659:"2a5c040b",2707:"0e83213a",2806:"70dece10",2819:"ad7869be",2823:"3aca8a20",2829:"4afa3a2a",2837:"54a82605",2862:"2aa32f74",2865:"bd7f5fe4",2884:"22fc4d4d",2969:"ab3357d7",3006:"db89c614",3086:"6dfd32f6",3133:"9bf3f89c",3141:"9cb80922",3157:"aa9f867f",3183:"8a38973e",3198:"8e655451",3212:"e499918b",3220:"5f3e7a32",3247:"5c99e4b6",3260:"ea52c607",3276:"8ea641d0",3317:"7d461d80",3391:"14aa0d72",3433:"362e20ac",3442:"ae98a379",3447:"548c9013",3451:"f48e5d9d",3509:"1a39687f",3550:"3dc83156",3581:"55e85b19",3585:"99d50f15",3668:"5858a88f",3697:"481a10d9",3747:"b2d0dcc7",3754:"902b9539",3777:"d5b0f2f1",3784:"123dd6ef",3805:"9dbcb95e",3831:"456f4285",3862:"7aa55914",3873:"ad89f702",3885:"f87f7f15",3910:"ae9f037a",3951:"e7d943b1",3987:"5cecd51b",4014:"27a8e97c",4017:"661fb235",4030:"fde074ba",4048:"75207c4c",4056:"f1832c57",4058:"ab5c3fdb",4078:"8d5d5fd7",4088:"236723f3",4093:"aa726877",4105:"319a2761",4144:"7850cd9c",4164:"aade9c4e",4216:"7884971a",4217:"f0233f01",4227:"0e4ef8b1",4259:"7bec4715",4264:"c585577b",4297:"8850a72e",4347:"ce21ef2e",4354:"140899b7",4360:"cf5efa52",4449:"92f0e82d",4492:"ba72b641",4496:"34caa754",4498:"fa1dcc61",4504:"8ef64f6c",4514:"3b06ad05",4520:"e42388b9",4546:"68c9d4d6",4565:"a2adb025",4572:"1527055c",4599:"61def4cb",4610:"7c72795e",4621:"bf909089",4628:"ece2c60c",4662:"934fc17c",4685:"c33f1528",4715:"5ce17d53",4736:"4eeada15",4741:"243633c3",4757:"f9640552",4766:"0cf83363",4770:"b8c5a4a5",4790:"619413e4",4795:"0707cfb4",4797:"a24e92db",4800:"adcb7c2a",4850:"1edda4b7",4889:"953fbd7a",4928:"9e322228",4944:"ab5d8fec",4973:"8319ad1e",4994:"84630e42",5022:"51533f5d",5043:"18b216cf",5048:"f216f88b",5060:"85dafcc6",5096:"bbbc5903",5111:"dd4105f1",5117:"f47ec05d",5125:"67b2924e",5148:"8bb5dae4",5165:"719a26d2",5176:"1793c371",5177:"2dfabc40",5179:"4e8fcebb",5186:"5c968d4c",5230:"5f0f6184",5238:"4989a055",5290:"5dabcdc2",5297:"d3fd6dc0",5307:"d86d3629",5319:"56dfa369",5321:"1163c84e",5330:"5687deb5",5335:"7499ce5b",5354:"7ae70604",5357:"79f523ff",5359:"c85ebe86",5382:"ce61a020",5402:"3190a402",5416:"454536b7",5434:"38b302a6",5466:"d377d96e",5494:"d89549c4",5518:"2459b270",5549:"97c41611",5572:"34d4bb96",5573:"215c5ba4",5624:"e48d88ae",5631:"e00d3d36",5650:"8fdbf80d",5679:"4a090bef",5694:"622ddf28",5705:"fbfe57db",5729:"3426c061",5764:"e0d7e586",5775:"cc6c47c4",5776:"7da82462",5786:"08913526",5795:"cf69d0fc",5798:"9e5812a0",5800:"f88c8790",5816:"5286df55",5823:"a8d1eafb",5860:"2ef62ffb",5876:"5eded409",5888:"353f1eac",5891:"59d06ee5",5894:"9f049b0a",5902:"d3d19aad",5911:"37e9f683",5915:"5e421193",5972:"dc86e689",5992:"1046742e",6029:"8a8d3757",6034:"fb70b929",6045:"d268f87f",6047:"3ce45acd",6063:"07906265",6069:"d4cea048",6080:"4668b76a",6126:"99519171",6127:"be3058fc",6170:"50fd637f",6185:"dc165700",6265:"7bfd0f18",6270:"5a33eaf5",6282:"0877e1a4",6328:"8af19232",6366:"8e9ddad8",6378:"7f3a946a",6411:"9f8cd1ac",6434:"4b3f394b",6444:"418148f5",6451:"6c57e4d1",6452:"8d93931a",6531:"bb93427f",6583:"de16d0b9",6587:"649110d6",6634:"0ae86df4",6637:"ce3fbe6a",6651:"e57570c1",6682:"7795b470",6685:"c225a9f3",6729:"591d7cd9",6741:"e16c744b",6774:"59d4d618",6776:"96743a66",6784:"91dceca9",6788:"da9f1861",6789:"2202f9f0",6796:"1787c451",6820:"f00704c2",6882:"bc8dca0b",6904:"1b2e7ec9",6913:"786304f7",6963:"d3d031d6",7043:"bf777200",7045:"f66d0461",7058:"bab616f4",7062:"21a0bd7d",7084:"46ccce72",7099:"201c78d5",7156:"e7466006",7178:"173d8879",7182:"ff521607",7224:"588538bd",7242:"e5d3ece9",7260:"a79fbfce",7289:"23230df2",7322:"02f3086e",7323:"00379244",7329:"1665d7a2",7333:"9be5a3ff",7365:"1005464f",7395:"4beb4daa",7402:"4744b815",7460:"0e0918bb",7477:"fbbd2a90",7482:"a92f11a5",7502:"31f52e5c",7527:"908d25cd",7545:"eeca11d6",7560:"e802d9c9",7589:"aba2dc51",7591:"c8233ce9",7614:"1c6bbd74",7622:"963e9600",7686:"4fcec9f9",7699:"2ed178b2",7706:"c2a79e40",7806:"d278c6f2",7835:"d7403cf9",7855:"d53c0076",7857:"c8f3067a",7883:"b7c50a20",7884:"00f49609",7901:"48637486",7922:"8154f358",7964:"29aed9a1",8062:"d93caf4b",8072:"7b5abb84",8085:"ed6d7671",8089:"d536b13a",8115:"81920fb8",8143:"ef6be34d",8145:"c59e6866",8155:"ddf42751",8161:"83c5fa9a",8214:"de5c9772",8217:"de67a48b",8237:"dd8c63c9",8241:"cace3785",8286:"1bb63baf",8302:"55794970",8332:"a88b9369",8340:"ec0feeeb",8350:"07df8a75",8365:"a60876a8",8398:"2fe6b831",8431:"10fc8c3f",8435:"29ffda57",8447:"a3636402",8458:"699241e9",8461:"c4b93b00",8479:"d7528efa",8517:"d5e8647d",8552:"2e676bd8",8561:"333e8ec9",8563:"c6c31f9a",8579:"fde23efd",8639:"27462b9c",8640:"36a9b60b",8665:"8f50ab80",8688:"c299c854",8689:"f58f590e",8723:"411aa554",8737:"ce7dad23",8776:"0ad26240",8787:"56dfcb85",8823:"23a23461",8827:"bd504d04",8842:"9f25a3e2",8866:"70d2de69",8882:"c2269de2",8885:"4cad09d2",8898:"d002bcd8",8909:"f8e19b87",8920:"7f82440c",8954:"347a192d",8963:"790aecdd",8965:"a1afe8fc",8999:"c7505d4c",9039:"ec42cb2d",9076:"03834dec",9104:"bbcb2345",9176:"13c0f500",9205:"172eaf92",9252:"0d791a59",9260:"cf5f8140",9366:"772cee2a",9391:"6b90e452",9404:"9fcc3d3e",9406:"c677a118",9416:"2c8ff2c9",9417:"926a691e",9449:"59897dda",9487:"66ce957a",9489:"0597b53c",9507:"a80d315b",9511:"a4e914b2",9554:"ed358e7b",9559:"f794af19",9647:"e1f1aa30",9649:"7bda8259",9674:"8acfd631",9677:"3f0a9162",9695:"fdc46f88",9715:"9a9ab706",9716:"b21884c0",9785:"4df0a975",9788:"10524069",9814:"4145522b",9875:"22b5a5f5",9891:"ccbea3cc",9895:"b8e31ff2",9906:"5bfb2a07",9921:"1aa6f465",9922:"55aee1a5",9928:"5989f5e0",9944:"3c5fe76d",9950:"74f6dfb2",9968:"17466785"}[d]+".async.js"}}(),function(){__webpack_require__.miniCssF=function(d){return""+({26:"p__Classrooms__Lists__Graduation__Tasks__Edit__index",67:"p__Message__index",109:"p__Classrooms__Lists__ShixunHomeworks__Detail__components__CodeReview__Detail__index",119:"p__User__ThemeChange__Paths",195:"p__Classrooms__Lists__GroupHomework__Detail__index",201:"p__Classrooms__ThemeChange__Students",264:"p__User__Detail__Order__pages__orderPay__index",292:"p__Classrooms__Lists__Exercise__Add__index",337:"p__Paperlibrary__Random__PreviewEdit__index",479:"p__Classrooms__Lists__GroupHomework__EditWork__index",485:"p__Question__AddOrEdit__BatchAdd__index",508:"p__Forums__Detail__id",518:"p__Shixuns__Detail__Settings__ThemeChange__index",532:"p__ExcellentCourse__index",533:"p__Classrooms__Lists__Video__Statistics__Detail__index",547:"p__Account__index",556:"p__User__Detail__Order__pages__invoice__index",559:"layouts__virtualDetail__index",576:"p__Account__Profile__Edit__index",643:"p__Classrooms__Lists__Polls__QuestionnaireInfo__index",680:"p__Innovation__index",700:"p__tasks__Jupyter__index",737:"p__Classrooms__Lists__CommonHomework__Detail__components__CodeReview__Detail__index",799:"p__User__Detail__Topics__Poll__Detail__index",879:"p__User__ThemeChange__AccountInfo",895:"p__Classrooms__Lists__Video__Items__videoInfo__index",900:"p__User__ThemeChange__Classrooms",906:"p__User__ThemeChange__CareerCertification",921:"p__Classrooms__Lists__Exercise__CodeDetails__index",928:"p__RestFul__Edit__index",1006:"p__RestFul__index",1043:"p__Classrooms__Lists__Graduation__Tasks__index",1045:"p__virtualSpaces__Lists__Knowledge__AddAndEdit__index",1048:"p__Classrooms__Lists__ProgramHomework__Detail__Ranking__index",1070:"p__Innovation__PublicMirror__index",1077:"p__User__ThemeTwoLogin__index",1211:"p__Classrooms__Lists__CommonHomework__EditWork__index",1253:"p__Graduations__Lists__Gradingsummary__index",1257:"p__Classrooms__Lists__ResourceRecommend__index",1276:"p__MoopCases__Success__index",1343:"p__User__Detail__ResourceAllocation__index",1423:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeAnswer__index",1427:"p__Classrooms__Lists__Statistics__index",1450:"p__Classrooms__Lists__ShixunHomeworks__Commitsummary__index",1461:"p__Graduations__Lists__Topics__index",1470:"p__User__Register__index",1475:"p__Shixuns__Detail__Dataset__JupyterData__index",1477:"p__Classrooms__ThemeChange__Assistant",1482:"p__Classrooms__Lists__Graduation__Topics__Edit__index",1512:"p__Classrooms__Lists__Exercise__AnswerCheck__index",1520:"p__Engineering__Lists__StudentList__index",1545:"p__Paperlibrary__Random__ExchangeFromProblemSet__index",1578:"p__Classrooms__Lists__Graduation__Topics__Detail__index",1581:"p__Problemset__Preview__index",1582:"p__Classrooms__Lists__GroupHomework__Add__index",1651:"p__Paths__ThemeChange__Statistics",1657:"p__Shixuns__Edit__body__Level__Challenges__EditQuestion__index",1674:"p__Classrooms__ClassicCases__index",1678:"p__Classrooms__ThemeChange__Attachment",1713:"p__virtualSpaces__Lists__Settings__index",1717:"layouts__index",1727:"p__Classrooms__Lists__CourseGroup__NotList__index",1754:"p__Classrooms__ThemeChange__Video",1783:"p__virtualSpaces__Lists__Experiment__index",1798:"p__Classrooms__ThemeChange__GroupHomework",1831:"p__Graduations__Index__index",1836:"p__Classrooms__Lists__Attendance__Webview__Teacher__index",1855:"p__MoopCases__InfoPanel__index",1880:"p__User__Detail__Order__pages__apply__index",1897:"p__User__ThemeChange__ClassManagement",1939:"p__User__Detail__Order__index",1953:"p__Problemset__NewItem__index",1962:"p__Classrooms__Lists__Engineering__index",1993:"p__Shixuns__Detail__Dataset__ThemeChange__index",2045:"p__Engineering__Lists__TeacherList__index",2099:"p__Paperlibrary__ThemeChange__index",2102:"p__Classrooms__Lists__Board__Edit__index",2130:"p__Shixuns__Detail__Repository__UploadFile__ThemeChange__index",2141:"p__Shixuns__Detail__Split__index",2203:"p__Classrooms__ThemeChange__ShixunHomeworks",2216:"p__DataSet__Index__index",2240:"p__User__Detail__Videos__Upload__index",2281:"p__Paths__ThemeChange__Detail",2303:"p__Classrooms__Lists__CommonHomework__Comment__index",2307:"p__Report__index",2338:"p__Classrooms__Lists__CommonHomework__Review__index",2339:"p__virtualSpaces__Lists__Plan__Detail__index",2396:"p__User__Detail__ResourcesCenter__index",2404:"p__Classrooms__Lists__Template__teacher__index",2412:"p__User__Detail__Videos__index",2425:"p__Classrooms__Lists__Board__Detail__index",2443:"p__Graduations__Lists__StageModule__index",2476:"p__Colleges__index",2501:"p__Search__index",2539:"p__Graduations__Review__index",2548:"p__Engineering__Norm__Detail__index",2570:"p__Competitions__Detail__index",2603:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Add__index",2659:"p__User__Detail__UserPortrait__index",2707:"p__Innovation__MyDataSet__index",2806:"p__User__Detail__Topics__Exercise__Detail__index",2819:"p__Classrooms__Lists__Template__detail__index",2823:"p__Engineering__Navigation__Home__index",2829:"p__Messages__Private__index",2862:"p__User__ThemeChange__ExperImentImg",2865:"p__Innovation__MyMirror__index",2884:"p__Classrooms__Lists__ProgramHomework__Comment__index",3006:"p__Engineering__index",3086:"p__Shixuns__Detail__ForkList__ThemeChange__index",3141:"p__Innovation__Detail__index",3157:"p__User__Detail__ExperImentImg__Add__index",3183:"p__Engineering__Lists__GraduationIndex__index",3212:"p__MoopCases__index",3220:"p__Classrooms__Lists__Video__Upload__index",3247:"p__Paperlibrary__See__index",3260:"p__Paperlibrary__Add__index",3276:"p__Classrooms__Lists__Statistics__UserportraitStatistics__index",3317:"p__Classrooms__Lists__Graduation__Topics__Add__index",3391:"p__Classrooms__Lists__ProgramHomework__Detail__components__CodeReview__Detail__index",3433:"p__Classrooms__Lists__Exercise__Sumup__Edit__index",3442:"p__Classrooms__Lists__Board__Add__index",3447:"p__User__Detail__Order__pages__orderInformation__index",3451:"p__Classrooms__Lists__Statistics__StudentStatistics__Detail__index",3509:"p__HttpStatus__SixActivities",3581:"p__Shixuns__Detail__Collaborators__ThemeChange__index",3585:"p__Classrooms__Lists__Statistics__StudentSituation__index",3668:"p__Classrooms__Lists__CommonHomework__Detail__index",3747:"p__virtualSpaces__Lists__Homepage__index",3784:"p__Paperlibrary__Random__Detail__index",3831:"p__User__ThemeChange__VirtualSpaces",3873:"p__virtualSpaces__Lists__Lesson__index",3910:"p__HttpStatus__introduction",3951:"p__Classrooms__Lists__ProgramHomework__Detail__index",4030:"p__Classrooms__Lists__ProgramHomework__AddAndEdit__index",4048:"p__Forums__ThemeChange__index",4056:"p__IntrainCourse__index",4078:"p__Messages__Tidings__index",4093:"p__Classrooms__Lists__Attendance__Detail__index",4105:"p__Classrooms__Lists__Exercise__Answer__index",4144:"p__Problemset__Preview__New__index",4164:"p__Classrooms__Lists__Exercise__Detail__index",4216:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Edit__index",4217:"p__Classrooms__Lists__Video__Statistics__index",4227:"p__Paths__Overview__index",4259:"p__User__Detail__Order__pages__result__index",4264:"p__Forums__New__index",4297:"p__Classrooms__ThemeChange__Polls",4449:"p__Competitions__Exports__index",4492:"p__Graduations__Lists__StudentSelection__index",4496:"p__HttpStatus__HpcCourse",4498:"p__Shixuns__Edit__body__Level__Challenges__NewPractice__index",4504:"p__virtualSpaces__Lists__Survey__index",4514:"p__Account__Results__index",4520:"p__Account__Secure__index",4546:"p__Engineering__Lists__TrainingProgram__Add__index",4572:"p__Classrooms__Lists__ExportList__index",4599:"p__Problemset__index",4610:"p__User__Detail__LearningPath__index",4621:"p__Administration__Profession__index",4662:"p__Classrooms__Lists__GroupHomework__Review__index",4715:"p__virtualSpaces__Lists__Material__Detail__index",4736:"p__User__Detail__Projects__index",4741:"p__Problems__OjForm__NewEdit__index",4757:"p__virtualSpaces__Lists__Workplace__index",4766:"p__Administration__index",4770:"p__Classrooms__Lists__ProgramHomework__Detail__answer__index",4795:"p__Classrooms__Lists__Graduation__Tasks__Add__index",4800:"p__Engineering__Lists__GraduatedMatrix__index",4889:"p__Classrooms__Lists__Exercise__ImitateAnswer__index",4928:"p__Classrooms__Lists__LearningPath__index",4944:"p__Classrooms__Lists__Statistics__ZbStatistics__StudentDetail__index",4973:"p__Engineering__Evaluate__List__index",4994:"p__Problems__OjForm__index",5022:"p__Graduations__Lists__Settings__index",5043:"p__User__Detail__Topics__Poll__Edit__index",5048:"p__Classrooms__Lists__Graduation__Topics__index",5096:"p__Shixuns__Detail__AuditSituation__index",5111:"p__Terminal__index",5117:"p__User__ThemeChange__Certificate",5125:"p__Classrooms__Lists__Exercise__DetailedAnalysis__index",5148:"p__Classrooms__Lists__Polls__Answer__index",5165:"p__User__ThemeChange__Topics",5176:"p__User__Detail__Videos__Protocol__index",5177:"p__Classrooms__ThemeChange__Teachers",5179:"p__Administration__Student__Edit__index",5186:"p__Classrooms__Overview__index",5230:"p__Shixuns__Detail__Repository__AddFile__ThemeChange__index",5238:"p__virtualSpaces__Lists__Material__index",5297:"p__Classrooms__Lists__Exercise__Detail__components__DuplicateChecking__CheckDetail__index",5307:"p__Shixuns__ThemeChange__New",5319:"p__Classrooms__Lists__ProgramHomework__Detail__answer__Detail__index",5330:"p__Classrooms__ThemeChange__ShixunHomeworksComment",5335:"p__Engineering__Lists__CourseMatrix__index",5357:"p__Engineering__Lists__TrainingProgram__Edit__index",5359:"p__Messages__Detail__index",5382:"p__DataSet__Detail__index",5402:"p__User__Detail__Topics__Detail__index",5466:"p__Classrooms__ThemeChange__LiveVideo",5518:"p__Classrooms__Lists__Template__index",5549:"p__Shixuns__New__CreateImg__index",5572:"p__Paths__HigherVocationalEducation__index",5573:"p__Shixuns__Detail__Merge__index",5624:"p__Graduations__Lists__Index__index",5650:"p__Competitions__Update__index",5694:"p__Classrooms__ThemeChange__ShixunHomeworksDetail",5705:"p__virtualSpaces__Lists__Construction__index",5729:"p__Help__Index",5775:"p__Engineering__Lists__Document__index",5776:"p__User__ThemeChange__RealNameCertification",5786:"layouts__LoginAndRegister__index",5798:"p__Classrooms__Lists__Video__Statistics__UserDetail__index",5800:"p__User__ThemeChange__Competitions",5816:"p__Paperlibrary__Random__Edit__index",5823:"p__Classrooms__Lists__Statistics__ZbStatistics__index",5888:"p__Classrooms__Lists__CommonHomework__Add__index",5891:"p__virtualSpaces__Lists__Resources__index",5894:"p__Shixuns__Detail__Repository__Commit__ThemeChange__index",5915:"p__knowledgegraph__Detail__Statistics__index",5972:"layouts__user__index",5992:"p__Classrooms__Lists__Exercise__ReviewGroup__index",6029:"p__Administration__Student__index",6063:"p__Graduations__Lists__Personmanage__index",6069:"p__virtualSpaces__Lists__Lesson__Detail__index",6080:"p__Paths__ThemeChange__New",6127:"p__Classrooms__Lists__ProgramHomework__Ranking__index",6185:"p__Classrooms__ThemeChange__Announcement",6265:"p__virtualSpaces__Lists__Discussion__index",6270:"p__MyProblem__index",6282:"p__Classrooms__ThemeChange__ProgramHomework",6328:"p__Shixuns__Edit__body__Warehouse__index",6366:"p__Innovation__PublicProject__index",6434:"p__User__Detail__Order__pages__records__index",6444:"p__Video__Detail__id",6451:"p__Shixuns__Detail__RankingList__ThemeChange__index",6452:"p__Innovation__PublicDataSet__index",6583:"p__User__Detail__Classrooms__index",6587:"p__User__Detail__Videos__Protocol__resource",6634:"p__Innovation__Tasks__index",6637:"p__Shixuns__Detail__Repository__ThemeChange__index",6651:"p__Engineering__Evaluate__Detail__index",6682:"p__User__ThemeChange__Shixuns",6685:"p__Classrooms__Index__index",6729:"p__Classrooms__Lists__GroupHomework__Edit__index",6741:"p__Engineering__Norm__List__index",6776:"p__Classrooms__ThemeChange__Exercise",6784:"p__Innovation__Edit__index",6789:"p__Classrooms__ThemeChange__index",6796:"p__virtualSpaces__Lists__Announcement__Detail__index",6820:"p__User__Detail__Topics__Normal__index",6882:"p__Classrooms__New__StartClass__index",6904:"p__MoopCases__FormPanel__index",6913:"p__Question__AddOrEdit__index",6963:"p__Classrooms__Lists__Engineering__Detail__index",7043:"p__User__Detail__Topics__Exercise__Edit__index",7045:"p__Classrooms__Lists__CommonHomework__SubmitWork__index",7058:"p__virtualSpaces__Lists__Survey__Detail__index",7062:"layouts__SimpleLayouts",7099:"p__Competitions__ThemeChange__index",7178:"p__User__BindAccount__index",7182:"p__User__ResetPassword__index",7224:"p__StatsDashboard__index",7242:"p__Innovation__MyProject__index",7260:"p__Account__Certification__index",7289:"p__tasks__ThemeChange__index",7322:"layouts__ThemeChange__ShixunDetail",7323:"p__Classrooms__ThemeChange__New",7329:"p__Classrooms__ThemeChange__Attendance",7395:"p__Classrooms__Lists__Statistics__StudentDetail__index",7402:"p__User__ThemeChange__OtherResources",7460:"p__Question__OjProblem__index",7477:"p__virtualSpaces__Lists__Announcement__index",7482:"p__Classrooms__Lists__Exercise__Notice__index",7527:"p__MyProblem__RecordDetail__index",7545:"p__Graduations__Lists__Archives__index",7560:"p__Administration__College__index",7589:"p__virtualSpaces__Lists__DigitalTopics__index",7614:"p__Shixuns__Edit__body__Level__Challenges__RankingSetting__index",7622:"p__Classrooms__Lists__Polls__Detail__index",7806:"p__Classrooms__Lists__Statistics__StatisticsQuality__index",7835:"p__Problemset__ThemeChange__index",7855:"p__User__Detail__ResourcesCenter__Detail__index",7857:"p__Shixuns__Edit__body__Level__Challenges__NewQuestion__index",7883:"p__Classrooms__Lists__Exercise__WrongAnswer__index",7884:"p__Shixuns__Exports__index",7901:"p__Guidance__ThemeChange",7922:"p__Classrooms__Lists__CourseGroup__Detail__index",8062:"p__User__Detail__Topicbank__index",8072:"p__Classrooms__Lists__GroupHomework__SubmitWork__index",8085:"p__Classrooms__Lists__Exercise__Review__index",8115:"p__User__ThemeChange__DataSet",8143:"layouts__GraduationsDetail__index",8145:"p__User__ThemeChange__ClassManagementItem",8155:"p__Shixuns__Overview__index",8217:"p__User__ThemeChange__AccountInfoEdit",8237:"p__User__Detail__Order__pages__view__index",8241:"p__virtualSpaces__Lists__Plan__index",8286:"p__User__ThemeChange__ExperImentImgDetail",8332:"p__User__ThemeChange__Detail",8398:"p__virtualSpaces__Lists__Resources__Detail__index",8431:"p__Classrooms__Lists__Exercise__Export__index",8435:"p__Classrooms__Lists__Attendance__index",8447:"p__virtualSpaces__Lists__Knowledge__index",8458:"p__Classrooms__ThemeChange__CommonHomework",8479:"p__User__ThemeChange__TeachGroup",8517:"p__User__Detail__Topics__Group__index",8552:"p__Shixuns__ThemeChange__index",8563:"p__virtualSpaces__Lists__Discussion__Detail__index",8579:"p__Competitions__ThemeChange__Edit",8665:"p__Engineering__Lists__TrainingObjectives__index",8688:"p__Shixuns__Detail__Repository__index",8689:"p__Classrooms__Lists__Statistics__VideoStatistics__index",8723:"p__Classrooms__Lists__Polls__Edit__index",8787:"p__Competitions__Entered__index",8823:"p__knowledgegraph__Detail__id",8827:"p__Classrooms__Lists__OnlineLearning__index",8866:"p__index",8882:"p__Classrooms__Lists__Graduation__Tasks__Detail__index",8885:"p__Classrooms__Lists__Statistics__StudentStatistics__index",8965:"p__Shixuns__Detail__Discuss__ThemeChange__index",8999:"p__Three__index",9039:"p__Classrooms__ThemeChange__CourseGroup",9076:"p__Account__Binding__index",9205:"p__Shixuns__Edit__body__Level__Challenges__EditPracticeSetting__index",9366:"p__User__Login__index",9391:"p__Engineering__Lists__CurseSetting__index",9404:"monaco-editor",9406:"p__Classrooms__ThemeChange__Board",9416:"p__Graduations__Lists__Tasks__index",9449:"p__Shixuns__ThemeChange__Detail",9487:"p__LargeScreen__index",9489:"p__Engineering__Lists__CourseList__index",9507:"p__User__Detail__ResourceGuarantee__index",9511:"p__Shixuns__ThemeChange__Edit",9647:"p__Question__Index__index",9649:"p__Engineering__Lists__TrainingProgram__index",9674:"p__Shixuns__New__ImagePreview__index",9677:"p__virtualSpaces__Lists__Announcement__AddAndEdit__index",9695:"p__Classrooms__Lists__Polls__Add__index",9715:"p__Classrooms__Lists__CommonHomework__Edit__index",9716:"p__Question__OjProblem__RecordDetail__index",9785:"p__Classrooms__Lists__Template__student__index",9788:"p__Account__Profile__index",9814:"p__Shixuns__Detail__Challenges__ThemeChange__index",9891:"p__User__Detail__Videos__Success__index",9906:"p__Paths__ThemeChange__index",9921:"p__Classrooms__ExamList__index",9922:"p__Classrooms__Lists__Statistics__StudentVideo__index",9944:"p__Classrooms__Lists__Video__Statistics__StudentDetail__index"}[d]||d)+"."+{26:"91ed81ab",67:"de58cef9",109:"1a7fc455",119:"25b26a6d",195:"8653772c",201:"7872e384",264:"5fd9b3fc",292:"7241a671",337:"45f063ed",479:"bba9e475",485:"d63578fe",508:"82593858",518:"c6774a1c",532:"c1a3e627",533:"7c6a1361",547:"5581debc",556:"c9ce9a90",559:"c49aa5ba",576:"e4f97d42",643:"22ded693",680:"e67e9e01",700:"573b339d",737:"98eb2f74",799:"08103cd8",879:"8ef20790",895:"ad846737",900:"228aca9a",906:"a29ef4e5",921:"30cc7e9b",928:"0277270a",1006:"2263131d",1043:"e8c0878b",1045:"8e5fbfd7",1048:"dafc3f4f",1070:"e67e9e01",1077:"4749f7c5",1211:"bdb8faab",1253:"619593a3",1257:"156e8f74",1276:"bbc6eeec",1343:"f50c7fcf",1423:"5c4a76fc",1427:"c24d69b3",1450:"1edcc2ed",1461:"e71bb36a",1470:"183c9793",1475:"5bfcb58b",1477:"970fcf81",1482:"d159af07",1512:"f3653a35",1520:"f7300d0e",1545:"0c4169ac",1578:"efcb0bdc",1581:"efffd7c0",1582:"8e45b6ff",1651:"55e4f704",1657:"c0cb4a08",1674:"fdbc1e05",1678:"484ca996",1713:"e5cf33ee",1717:"10201060",1727:"522640e5",1754:"118c994b",1783:"0d3d06a0",1798:"3157272a",1831:"cb1c37ee",1836:"5f0d3f7f",1855:"b92cccb4",1880:"750743ca",1897:"62544c06",1939:"ce7e2b5a",1953:"20ce3901",1962:"84e145fa",1993:"c47eb47a",2045:"dcfad42d",2099:"3b401031",2102:"ec61f9f0",2130:"fa9a5d94",2141:"5eb2f330",2203:"bd175c79",2216:"33467293",2240:"e7cce869",2281:"2976b5a2",2303:"1ed5567d",2307:"b2c54321",2338:"dea1928a",2339:"1336108e",2396:"2fd22400",2404:"08d36549",2412:"84cd3fdc",2425:"47b23ee4",2443:"637429ad",2476:"cf85a190",2501:"2441982c",2539:"082dd38b",2548:"75182034",2570:"846a7fe1",2603:"0277270a",2659:"f6071a36",2707:"cabcb16e",2806:"505dc6f7",2819:"9455b08a",2823:"a13b21fb",2829:"a5909474",2862:"dff7c42d",2865:"6ef3cf6b",2884:"ebfe0ea4",3006:"7fce4e74",3086:"d0ebac07",3141:"4e2f2f7c",3157:"f5d985ab",3183:"b2253f40",3212:"ad1521c1",3220:"a5be3990",3247:"50105eb7",3260:"38b222b9",3276:"7bbb651d",3317:"137440b7",3391:"f0e498fe",3433:"2018f6c1",3442:"bdf7849c",3447:"1653d818",3451:"e3a31387",3509:"70043ca5",3581:"c4be28e8",3585:"5f288e7b",3668:"fd3ea050",3747:"1af43845",3784:"c81d4a51",3831:"2711fd44",3873:"7cbe1ba5",3910:"658d457f",3951:"9b11b034",4030:"af04fe52",4048:"f9582bef",4056:"10eacfff",4078:"aa54548e",4093:"775588f4",4105:"7f9d4513",4144:"f10aa199",4164:"803fd4c3",4216:"0277270a",4217:"387bf824",4227:"79c3b323",4259:"ebd953ac",4264:"36917df0",4297:"cb8a8129",4449:"e68d8d58",4492:"12cb2835",4496:"77babddd",4498:"820c0a39",4504:"9074cfde",4514:"887bdbb6",4520:"e86d61a1",4546:"4101a1f2",4572:"70e5675d",4599:"aa988bc4",4610:"687005a6",4621:"807fbac2",4662:"37625a1c",4715:"1230954d",4736:"5b6f4e2f",4741:"92525927",4757:"73b754d2",4766:"b5df5a8e",4770:"674b2d2a",4795:"939f9f81",4800:"f50302a4",4889:"a91da64a",4928:"a4b1a237",4944:"4dd50f6d",4973:"129c56e8",4994:"43974304",5022:"81b1b86b",5043:"247e6954",5048:"aa08c681",5096:"4f6a4d00",5111:"5d09a39a",5117:"ab408bd4",5125:"57501e4a",5148:"572faeac",5165:"48afbcf3",5176:"9c49e7fa",5177:"ec157db5",5179:"21f01751",5186:"e766ffd9",5230:"8ecdafbb",5238:"865509db",5297:"5426028f",5307:"803b391d",5319:"34217c3f",5330:"d6eee700",5335:"fec6fd9f",5357:"1fbb7d24",5359:"b254a598",5382:"d75b7acd",5402:"e8092123",5466:"12cfd33a",5518:"9f425be3",5549:"39285664",5572:"c945fbf2",5573:"6ecf393c",5624:"75c5add6",5650:"f8f63f4b",5694:"c3e4a8be",5705:"df6bf207",5729:"46f9b5d4",5775:"8945cad2",5776:"9d910e47",5786:"37a81eaa",5798:"ce1cf7da",5800:"ace57161",5816:"4adf0529",5823:"5b7427ba",5888:"193a7f8f",5891:"cbb6f851",5894:"4c5225a9",5915:"bc9c3e69",5972:"79479731",5992:"419f5d2f",6029:"7f981b9d",6063:"3b503608",6069:"a9aeea2e",6080:"bc1c2b36",6127:"f31505a8",6185:"bd124dd8",6265:"8aa3f229",6270:"5496b206",6282:"f0151247",6328:"de2b9d62",6366:"079fc2d8",6434:"48c2a3cc",6444:"fd46d237",6451:"4db8623e",6452:"50a6d310",6583:"7599cb91",6587:"9c49e7fa",6634:"020d2aed",6637:"4348c475",6651:"b07fe216",6682:"0b183f46",6685:"50d3c702",6729:"aea3b7f5",6741:"b838eb14",6776:"461a4e93",6784:"1affe817",6789:"f85c816f",6796:"b24f73ad",6820:"cebdf1cf",6882:"c2d2eada",6904:"44afaa9b",6913:"739202fe",6963:"84e145fa",7043:"25478869",7045:"48f6fc4c",7058:"70169de5",7062:"5282c3e5",7099:"f105b5d4",7178:"6e47d75d",7182:"183c9793",7224:"7caf9754",7242:"4f353f61",7260:"2c380d56",7289:"e6d2cdef",7322:"ac5aaaee",7323:"3e11a2bc",7329:"e5af7e18",7395:"ff574c5d",7402:"c2ab8a41",7460:"dedd2038",7477:"7903c644",7482:"c37a3f01",7527:"a4765b7e",7545:"6e229fc1",7560:"d82e43ca",7589:"2517c75a",7614:"de9ee12f",7622:"5e2922e8",7806:"80b7b1d6",7835:"b5f6ea62",7855:"8698f084",7857:"13a29416",7883:"93cf27b2",7884:"1ca6cde0",7901:"505c3349",7922:"0e7ce87a",8062:"8e384b9f",8072:"540f746b",8085:"e6b0e037",8115:"4168d1d3",8143:"1021d119",8145:"aa6ec833",8155:"d345abd7",8214:"03cdfb68",8217:"3f5e9ac7",8237:"faafb9cc",8241:"5bd955ca",8286:"69a76d39",8332:"71c0dfbb",8398:"b128b7d6",8431:"289b326c",8435:"0980085d",8447:"5dded7c0",8458:"9d938150",8479:"b4705507",8517:"cccfddad",8552:"a656ad91",8563:"20b25782",8579:"600a1b47",8665:"c52575bc",8688:"c044db56",8689:"c7b937bf",8723:"3eab1580",8787:"121de108",8823:"e5c765d5",8827:"7c77dcba",8866:"b95f6ec9",8882:"f3e42f72",8885:"de905169",8965:"bd9f71c8",8999:"448aa22f",9039:"e5b0c473",9076:"6a501148",9205:"be1b937c",9366:"4f511490",9391:"c11edda0",9404:"d8cf04f7",9406:"b142636c",9416:"483ff19d",9449:"45975a82",9487:"a73f5679",9489:"ee2bb5b7",9507:"d52efba5",9511:"1151ea04",9647:"9df3db4c",9649:"00fb4211",9674:"bb2d1c58",9677:"af7d4c8f",9695:"e6d547d3",9715:"b6c6645f",9716:"a5750e0d",9785:"08d36549",9788:"781a4d20",9814:"bbe362ca",9891:"512a9301",9906:"bb12ef11",9921:"e0db9101",9922:"33690872",9944:"1ba31055"}[d]+".chunk.css"}}(),function(){__webpack_require__.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(d){if(typeof window=="object")return window}}()}(),function(){__webpack_require__.hmd=function(d){return d=Object.create(d),d.children||(d.children=[]),Object.defineProperty(d,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+d.id)}}),d}}(),function(){__webpack_require__.o=function(d,_){return Object.prototype.hasOwnProperty.call(d,_)}}(),function(){var d={};__webpack_require__.l=function(_,e,r,i){if(d[_]){d[_].push(e);return}var l,c;if(r!==void 0)for(var f=document.getElementsByTagName("script"),o=0;o0&&arguments[0]!==void 0?arguments[0]:"";return Fn.endsWith("/")?Fn:"".concat(Fn,"/")}var fc=__webpack_require__(38127),dc=__webpack_require__(38329),rl=__webpack_require__(8616),nl=["content"],Ou=["content"],yf=/^(http:|https:)?\/\//;function hc(Fn){return yf.test(Fn)||Fn.startsWith("/")&&!Fn.startsWith("/*")||Fn.startsWith("./")||Fn.startsWith("../")}var bu=function(){return $e.createElement("noscript",{dangerouslySetInnerHTML:{__html:"Enable JavaScript to run this app."}})},vl=function(ti){var Xi,Ba=ti.loaderData,la=ti.htmlPageOpts,Ea=ti.manifest,ya=(Ea==null||(Xi=Ea.assets)===null||Xi===void 0?void 0:Xi["umi.css"])||"";return $e.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__UMI_LOADER_DATA__ = ".concat(JSON.stringify(Ba||{}),"; window.__UMI_METADATA_LOADER_DATA__ = ").concat(JSON.stringify(la||{}),"; window.__UMI_BUILD_ClIENT_CSS__ = '").concat(ya,"'")}})};function Du(Fn){var ti=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof Fn=="string")return hc(Fn)?(0,vo.Z)({src:Fn},ti):{content:Fn};if((0,rl.Z)(Fn)==="object")return(0,vo.Z)((0,vo.Z)({},Fn),ti);throw new Error("Invalid script type: ".concat((0,rl.Z)(Fn)))}function zf(Fn){return hc(Fn)?{type:"link",href:Fn}:{type:"style",content:Fn}}var Jc=function(ti){var Xi,Ba,la,Ea,ya,Ds,ca=ti.htmlPageOpts;return $e.createElement($e.Fragment,null,(ca==null?void 0:ca.title)&&$e.createElement("title",null,ca.title),ca==null||(Xi=ca.favicons)===null||Xi===void 0?void 0:Xi.map(function(Ms,Yu){return $e.createElement("link",{key:Yu,rel:"shortcut icon",href:Ms})}),(ca==null?void 0:ca.description)&&$e.createElement("meta",{name:"description",content:ca.description}),(ca==null||(Ba=ca.keywords)===null||Ba===void 0?void 0:Ba.length)&&$e.createElement("meta",{name:"keywords",content:ca.keywords.join(",")}),ca==null||(la=ca.metas)===null||la===void 0?void 0:la.map(function(Ms){return $e.createElement("meta",{key:Ms.name,name:Ms.name,content:Ms.content})}),ca==null||(Ea=ca.links)===null||Ea===void 0?void 0:Ea.map(function(Ms,Yu){return $e.createElement("link",(0,dc.Z)({key:Yu},Ms))}),ca==null||(ya=ca.styles)===null||ya===void 0?void 0:ya.map(function(Ms,Yu){var al=zf(Ms),yl=al.type,Xu=al.href,Bl=al.content;if(yl==="link")return $e.createElement("link",{key:Yu,rel:"stylesheet",href:Xu});if(yl==="style")return $e.createElement("style",{key:Yu},Bl)}),ca==null||(Ds=ca.headScripts)===null||Ds===void 0?void 0:Ds.map(function(Ms,Yu){var al=Du(Ms),yl=al.content,Xu=(0,fc.Z)(al,nl);return $e.createElement("script",(0,dc.Z)({dangerouslySetInnerHTML:{__html:yl},key:Yu},Xu))}))};function Zo(Fn){var ti,Xi=Fn.children,Ba=Fn.loaderData,la=Fn.manifest,Ea=Fn.htmlPageOpts,ya=Fn.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ds=Fn.mountElementId;if(ya!=null&&ya.pureHtml)return $e.createElement("html",null,$e.createElement("head",null,$e.createElement(Jc,{htmlPageOpts:Ea})),$e.createElement("body",null,$e.createElement(bu,null),$e.createElement("div",{id:Ds},Xi),$e.createElement(vl,{manifest:la,loaderData:Ba,htmlPageOpts:Ea})));if(ya!=null&&ya.pureApp)return $e.createElement($e.Fragment,null,Xi);var ca=typeof window=="undefined"?la==null?void 0:la.assets["umi.css"]:window.__UMI_BUILD_ClIENT_CSS__;return $e.createElement("html",{suppressHydrationWarning:!0,lang:(Ea==null?void 0:Ea.lang)||"en"},$e.createElement("head",null,$e.createElement("meta",{charSet:"utf-8"}),$e.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),ca&&$e.createElement("link",{suppressHydrationWarning:!0,rel:"stylesheet",href:ca}),$e.createElement(Jc,{htmlPageOpts:Ea})),$e.createElement("body",null,$e.createElement(bu,null),$e.createElement("div",{id:Ds},Xi),$e.createElement(vl,{manifest:la,loaderData:Ba,htmlPageOpts:Ea}),Ea==null||(ti=Ea.scripts)===null||ti===void 0?void 0:ti.map(function(Ms,Yu){var al=Du(Ms),yl=al.content,Xu=(0,fc.Z)(al,Ou);return $e.createElement("script",(0,dc.Z)({dangerouslySetInnerHTML:{__html:yl},key:Yu},Xu))})))}var Rl=$e.createContext(void 0);function kc(){return $e.useContext(Rl)}var pc=["redirect"];function mc(Fn){var ti=Fn.routesById,Xi=Fn.parentId,Ba=Fn.routeComponents,la=Fn.useStream,Ea=la===void 0?!0:la;return Object.keys(ti).filter(function(ya){return ti[ya].parentId===Xi}).map(function(ya){var Ds=_c((0,vo.Z)((0,vo.Z)({route:ti[ya],routeComponent:Ba[ya],loadingComponent:Fn.loadingComponent,reactRouter5Compat:Fn.reactRouter5Compat},Fn.reactRouter5Compat&&{hasChildren:Object.keys(ti).filter(function(Ms){return ti[Ms].parentId===ya}).length>0}),{},{useStream:Ea})),ca=mc({routesById:ti,routeComponents:Ba,parentId:Ds.id,loadingComponent:Fn.loadingComponent,reactRouter5Compat:Fn.reactRouter5Compat,useStream:Ea});return ca.length>0&&(Ds.children=ca,Ds.routes=ca),Ds})}function vc(Fn){var ti=(0,yu.UO)(),Xi=(0,yu.Gn)(Fn.to,ti),Ba=(0,cc.T$)(),la=(0,yu.TH)();if(Ba!=null&&Ba.keepQuery){var Ea=la.search+la.hash;Xi+=Ea}var ya=(0,vo.Z)((0,vo.Z)({},Fn),{},{to:Xi});return $e.createElement(yu.Fg,(0,dc.Z)({replace:!0},ya))}function _c(Fn){var ti=Fn.route,Xi=Fn.useStream,Ba=Xi===void 0?!0:Xi,la=ti.redirect,Ea=(0,fc.Z)(ti,pc),ya=Fn.reactRouter5Compat?Rc:Xl;return(0,vo.Z)({element:la?$e.createElement(vc,{to:la}):$e.createElement(Rl.Provider,{value:{route:Fn.route}},$e.createElement(ya,{loader:$e.memo(Fn.routeComponent),loadingComponent:Fn.loadingComponent||Rf,hasChildren:Fn.hasChildren,useStream:Ba}))},Ea)}function Rf(){return $e.createElement("div",null)}function Rc(Fn){var ti=kc(),Xi=ti.route,Ba=(0,cc.Ov)(),la=Ba.history,Ea=Ba.clientRoutes,ya=(0,yu.UO)(),Ds={params:ya,isExact:!0,path:Xi.path,url:la.location.pathname},ca=Fn.loader,Ms={location:la.location,match:Ds,history:la,params:ya,route:Xi,routes:Ea};return Fn.useStream?$e.createElement($e.Suspense,{fallback:$e.createElement(Fn.loadingComponent,null)},$e.createElement(ca,Ms,Fn.hasChildren&&$e.createElement(yu.j3,null))):$e.createElement(ca,Ms,Fn.hasChildren&&$e.createElement(yu.j3,null))}function Xl(Fn){var ti=Fn.loader;return Fn.useStream?$e.createElement($e.Suspense,{fallback:$e.createElement(Fn.loadingComponent,null)},$e.createElement(ti,null)):$e.createElement(ti,null)}var Ql=null;function bf(){return Ql}function ef(Fn){var ti=Fn.history,Xi=$e.useState({action:ti.action,location:ti.location}),Ba=(0,Iu.Z)(Xi,2),la=Ba[0],Ea=Ba[1];return(0,$e.useLayoutEffect)(function(){return ti.listen(Ea)},[ti]),(0,$e.useLayoutEffect)(function(){function ya(Ds){Fn.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:Fn.routes,clientRoutes:Fn.clientRoutes,location:Ds.location,action:Ds.action,basename:Fn.basename,isFirst:!!Ds.isFirst}})}return ya({location:la.location,action:la.action,isFirst:!0}),ti.listen(ya)},[ti,Fn.routes,Fn.clientRoutes]),$e.createElement(yu.F0,{navigator:ti,location:la.location,basename:Fn.basename},Fn.children)}function il(){var Fn=(0,cc.Ov)(),ti=Fn.clientRoutes;return(0,yu.V$)(ti)}var gc=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],yc=function(ti,Xi){var Ba=ti.basename||"/",la=mc({routesById:ti.routes,routeComponents:ti.routeComponents,loadingComponent:ti.loadingComponent,reactRouter5Compat:ti.reactRouter5Compat,useStream:ti.useStream});ti.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:la}});for(var Ea=$e.createElement(ef,{basename:Ba,pluginManager:ti.pluginManager,routes:ti.routes,clientRoutes:la,history:ti.history},Xi),ya=0,Ds=gc;yanew Promise((Ba,la)=>{var Ea=ca=>{try{Ds(Xi.next(ca))}catch(Ms){la(Ms)}},ya=ca=>{try{Ds(Xi.throw(ca))}catch(Ms){la(Ms)}},Ds=ca=>ca.done?Ba(ca.value):Promise.resolve(ca.value).then(Ea,ya);Ds((Xi=Xi.apply(Fn,ti)).next())});function xf(){return Mc(this,null,function*(){return{routes:{1:{path:"/",parentId:"@@/global-layout",id:"1"},2:{path:"/paperlibrary",parentId:"1",id:"2"},3:{path:"/paperlibrary",parentId:"2",id:"3"},4:{path:"/paperlibrary/add",parentId:"2",id:"4"},5:{path:"/paperlibrary/add/:id",parentId:"2",id:"5"},6:{path:"/paperlibrary/see/:id",parentId:"2",id:"6"},7:{path:"/paperlibrary/edit_select/:id",parentId:"2",id:"7"},8:{path:"/paperlibrary/exchangequestion",parentId:"2",id:"8"},9:{path:"/paths",parentId:"1",id:"9"},10:{path:"/paths",parentId:"9",id:"10"},11:{path:"/paths/higherVocationalEducation",parentId:"9",id:"11"},12:{path:"/paths/new",parentId:"9",id:"12"},13:{path:"/paths/guidance",exact:!0,parentId:"9",id:"13"},14:{path:"/paths/:pathId",parentId:"9",id:"14"},15:{path:"/paths/:pathId/statistics",parentId:"9",id:"15"},16:{path:"/paths/:pathId/edit",parentId:"9",id:"16"},17:{path:"/paths/:pathId/:stageId/program_homework/:categoryId/add",parentId:"9",id:"17"},18:{path:"/paths/:pathId/:stageId/program_homework/:categoryId/edit",parentId:"9",id:"18"},19:{path:"/classrooms",parentId:"1",id:"19"},20:{path:"/classrooms",parentId:"19",id:"20"},21:{path:"/classrooms/examList",parentId:"19",id:"21"},22:{path:"/classrooms/classicCases",parentId:"19",id:"22"},23:{path:"/classrooms/index",parentId:"19",id:"23"},24:{path:"/classrooms/new",parentId:"19",id:"24"},25:{path:"/classrooms/:coursesId/edit",parentId:"19",id:"25"},26:{path:"/classrooms/news/:subjectid/newgold/:id",parentId:"19",id:"26"},27:{path:"/classrooms/:coursesId/newgolds/settings",parentId:"19",id:"27"},28:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/review_detail/:userId",parentId:"19",id:"28"},29:{path:"/classrooms/:coursesId/common_homework/:categoryId/review_detail/:userId",parentId:"19",id:"29"},30:{path:"/classrooms/:coursesId/program_homework/:categoryId/review_detail/:userId",parentId:"19",id:"30"},31:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/detail",parentId:"19",id:"31"},32:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/:homeworkId/comment",parentId:"19",id:"32"},33:{path:"/classrooms/:coursesId/common_homework/:categoryId/:homeworkId/comment",parentId:"19",id:"33"},34:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/:homeworkId/commitsummary",parentId:"19",id:"34"},35:{path:"/classrooms/:coursesId/group_homework/:categoryId/detail",parentId:"19",id:"35"},36:{path:"/classrooms/:coursesId/common_homework/:categoryId/detail",parentId:"19",id:"36"},37:{path:"/classrooms/:coursesId/common_homework/:categoryId/review/:userId",parentId:"19",id:"37"},38:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/review/:userId",parentId:"19",id:"38"},39:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/post",parentId:"19",id:"39"},40:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/:homeworkId/edit",parentId:"19",id:"40"},41:{path:"/classrooms/:coursesId/exercise/:categoryId/detail/:userId/review_detail",parentId:"19",id:"41"},42:{path:"/classrooms/:coursesId/exercise/:categoryId/detail",parentId:"19",id:"42"},43:{path:"/classrooms/:coursesId/exercise/:categoryId/preview_select",parentId:"19",id:"43"},44:{path:"/classrooms/:coursesId/exercise/:categoryId/:login/initate_answer",parentId:"19",id:"44"},45:{path:"/classrooms/:coursesId/exercise/:categoryId/users/:login",parentId:"19",id:"45"},46:{path:"/classrooms/:coursesId/exercise/:categoryId/wrongAnswer/:login",parentId:"19",id:"46"},47:{path:"/classrooms/:coursesId/exercisenotice/:categoryId/users/:login",parentId:"19",id:"47"},48:{path:"/classrooms/:coursesId/exercise/:categoryId/random/edit",parentId:"19",id:"48"},49:{path:"/classrooms/:coursesId/exercise/:categoryId/random/preview",parentId:"19",id:"49"},50:{path:"/classrooms/:coursesId/exercise/add",parentId:"19",id:"50"},51:{path:"/classrooms/:coursesId/exercise/add/:exerciseId",parentId:"19",id:"51"},52:{path:"/classrooms/:coursesId/exercise/:exerciseId/reviews/group",parentId:"19",id:"52"},53:{path:"/classrooms/:coursesId/exercise/:exerciseId/review/:userId",parentId:"19",id:"53"},54:{path:"/classrooms/:coursesId/exercise/:exerciseId/centralizeReview/:userId",parentId:"19",id:"54"},55:{path:"/classrooms/:coursesId/exercise/:exerciseId/export_blank",parentId:"19",id:"55"},56:{path:"/classrooms/:coursesId/exercise/:exerciseId/sumup",parentId:"19",id:"56"},57:{path:"/classrooms/:coursesId/exercise/:exerciseId/sumup/edit",parentId:"19",id:"57"},58:{path:"/classrooms/:coursesId/exercise/:exerciseId/analysis/:studentId",parentId:"19",id:"58"},59:{path:"/classrooms/:coursesId/shixun_homework/:exerciseId/analysis/:studentId",parentId:"19",id:"59"},60:{path:"/classrooms/:coursesId/exercise/:exerciseId/analysis/:studentId/code",parentId:"19",id:"60"},61:{path:"/classrooms/:coursesId/shixun_homework/:exerciseId/analysis/:studentId/code",parentId:"19",id:"61"},62:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/detail",parentId:"19",id:"62"},63:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/add",parentId:"19",id:"63"},64:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/edit",parentId:"19",id:"64"},65:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/add",parentId:"19",id:"65"},66:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/edit",parentId:"19",id:"66"},67:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/detail",parentId:"19",id:"67"},68:{path:"/classrooms/:coursesId/common_homework/:categoryId/add",parentId:"19",id:"68"},69:{path:"/classrooms/:coursesId/common_homework/:categoryId/edit",parentId:"19",id:"69"},70:{path:"/classrooms/:coursesId/common_homework/:commonHomeworkId/post",parentId:"19",id:"70"},71:{path:"/classrooms/:coursesId/common_homework/:commonHomeworkId/:homeworkId/edit",parentId:"19",id:"71"},72:{path:"/classrooms/:coursesId/group_homework/:categoryId/add",parentId:"19",id:"72"},73:{path:"/classrooms/:coursesId/group_homework/:categoryId/edit",parentId:"19",id:"73"},74:{path:"/classrooms/:coursesId/poll/:categoryId/add",parentId:"19",id:"74"},75:{path:"/classrooms/:coursesId/poll/:categoryId/edit",parentId:"19",id:"75"},76:{path:"/classrooms/:coursesId/poll/:categoryId/detail",parentId:"19",id:"76"},77:{path:"/classrooms/:coursesId/poll/:categoryId/users/:login",parentId:"19",id:"77"},78:{path:"/classrooms/:coursesId/poll/:categoryId/questionnaireInfo/:login",parentId:"19",id:"78"},79:{path:"/classrooms/:coursesId/board/:categoryId/Add",parentId:"19",id:"79"},80:{path:"/classrooms/:coursesId/board/:categoryId/Edit/:boardId",parentId:"19",id:"80"},81:{path:"/classrooms/:coursesId/board/:categoryId/Detail/:boardId",parentId:"19",id:"81"},82:{path:"/classrooms/:courseId/template/:templateId",parentId:"19",id:"82"},83:{path:"/classrooms/:courseId/common_homework/:homeworkId/lab-report/:reportId",parentId:"19",id:"83"},84:{path:"/classrooms/guidance",parentId:"19",id:"84"},85:{path:"/classrooms/:courseId/common_homework/:homeworkId/lab-report-view/:workId",parentId:"19",id:"85"},86:{path:"/classrooms/:coursesId/exercise/:categoryId/users/:login/check",parentId:"19",id:"86"},87:{path:"/classrooms/:coursesId/Studentdetail/:login",parentId:"19",id:"87"},88:{path:"/classrooms/:coursesId/StudentSituation/:categoryId/:login",parentId:"19",id:"88"},89:{path:"/classrooms/:coursesId/engineering/datail",parentId:"19",id:"89"},90:{path:"/classrooms/:coursesId/program_homework/:categoryId/add",parentId:"19",id:"90"},91:{path:"/classrooms/:coursesId/program_homework/:categoryId/edit",parentId:"19",id:"91"},92:{path:"/classrooms/:coursesId/program_homework/ranking",parentId:"19",id:"92"},93:{path:"/classrooms/:coursesId/program_homework/:categoryId/detail",parentId:"19",id:"93"},94:{path:"/classrooms/:coursesId/program_homework/:categoryId/:homeworkId/ranking",parentId:"19",id:"94"},95:{path:"/classrooms/:coursesId/program_homework/:categoryId/:homeworkId/:user_id/comment",parentId:"19",id:"95"},96:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer",parentId:"19",id:"96"},97:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/add",parentId:"19",id:"97"},98:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/:answerid/edit",parentId:"19",id:"98"},99:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/:answerid/detail",parentId:"19",id:"99"},100:{path:"/classrooms/:videoId/video_info",parentId:"19",id:"100"},101:{path:"/classrooms/",parentId:"19",id:"101"},102:{path:"/classrooms/:coursesId/shixun_homework/:categoryId",parentId:"101",id:"102"},103:{path:"/classrooms/:coursesId/shixun_homework",parentId:"101",id:"103"},104:{path:"/classrooms/:coursesId/graduation_topics/:categoryId",parentId:"101",id:"104"},105:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId",parentId:"101",id:"105"},106:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId",parentId:"101",id:"106"},107:{path:"/classrooms/:coursesId/exercise/:categoryId",parentId:"101",id:"107"},108:{path:"/classrooms/:coursesId/exercise",parentId:"101",id:"108"},109:{path:"/classrooms/:coursesId/poll/:categoryId",parentId:"101",id:"109"},110:{path:"/classrooms/:coursesId/poll",parentId:"101",id:"110"},111:{path:"/classrooms/:coursesId/common_homework/:categoryId",parentId:"101",id:"111"},112:{path:"/classrooms/:coursesId/common_homework",parentId:"101",id:"112"},113:{path:"/classrooms/:coursesId/group_homework/:categoryId",parentId:"101",id:"113"},114:{path:"/classrooms/:coursesId/group_homework",parentId:"101",id:"114"},115:{path:"/classrooms/:coursesId/teachers",parentId:"101",id:"115"},116:{path:"/classrooms/:coursesId/students",parentId:"101",id:"116"},117:{path:"/classrooms/:coursesId/assistant",parentId:"101",id:"117"},118:{path:"/classrooms/:coursesId/program_homework",parentId:"101",id:"118"},119:{path:"/classrooms/:coursesId/program_homework/:categoryId",parentId:"101",id:"119"},120:{path:"/classrooms/:coursesId/engineering",parentId:"101",id:"120"},121:{path:"/classrooms/:coursesId/learning_path",parentId:"101",id:"121"},122:{path:"/classrooms/:coursesId/resource_recommend",parentId:"101",id:"122"},123:{path:"/classrooms/:coursesId/attendance",parentId:"101",id:"123"},124:{path:"/classrooms/:coursesId/attendance/StudetnSign",parentId:"101",id:"124"},125:{path:"/classrooms/:coursesId/attendance/:categoryId/:tabId/detail",parentId:"101",id:"125"},126:{path:"/classrooms/:coursesId/announcement",parentId:"101",id:"126"},127:{path:"/classrooms/:coursesId/announcement/:categoryId",parentId:"101",id:"127"},128:{path:"/classrooms/:coursesId/online_learning",parentId:"101",id:"128"},129:{path:"/classrooms/:coursesId/online_learning/:categoryId",parentId:"101",id:"129"},130:{path:"/classrooms/:coursesId/attachment/:categoryId",parentId:"101",id:"130"},131:{path:"/classrooms/:coursesId/attachment",parentId:"101",id:"131"},132:{path:"/classrooms/:coursesId/video",parentId:"101",id:"132"},133:{path:"/classrooms/:coursesId/video/:categoryId",parentId:"101",id:"133"},134:{path:"/classrooms/:coursesId/video/:categoryId/statistics",parentId:"101",id:"134"},135:{path:"/classrooms/:coursesId/video/:username/upload",parentId:"101",id:"135"},136:{path:"/classrooms/:coursesId/video/:categoryId/statistics/:videoId",parentId:"101",id:"136"},137:{path:"/classrooms/:coursesId/video/:categoryId/statistics/:videoId/:userId",parentId:"101",id:"137"},138:{path:"/classrooms/:coursesId/live_video/:categoryId",parentId:"101",id:"138"},139:{path:"/classrooms/:coursesId/live_video",parentId:"101",id:"139"},140:{path:"/classrooms/:coursesId/video/:categoryId/studentstatistics",parentId:"101",id:"140"},141:{path:"/classrooms/:coursesId/board/:categoryId",parentId:"101",id:"141"},142:{path:"/classrooms/:coursesId/board",parentId:"101",id:"142"},143:{path:"/classrooms/:coursesId/course_group",parentId:"101",id:"143"},144:{path:"/classrooms/:coursesId/course_group/:categoryId",parentId:"101",id:"144"},145:{path:"/classrooms/:coursesId/course_group/:categoryId/detail",parentId:"101",id:"145"},146:{path:"/classrooms/:coursesId/not_course_group/:categoryId",parentId:"101",id:"146"},147:{path:"/classrooms/:coursesId/not_course_group",parentId:"101",id:"147"},148:{path:"/classrooms/:coursesId/statistics/",parentId:"101",id:"148"},149:{path:"/classrooms/:coursesId/statistics/:categoryId",parentId:"101",id:"149"},150:{path:"/classrooms/:coursesId/statistics_video/:categoryId",parentId:"101",id:"150"},151:{path:"/classrooms/:coursesId/statistics_quality/:categoryId",parentId:"101",id:"151"},152:{path:"/classrooms/:coursesId/statistics_user_portrait/:categoryId",parentId:"101",id:"152"},153:{path:"/classrooms/:coursesId/student_statistics/:categoryId",parentId:"101",id:"153"},154:{path:"/classrooms/:coursesId/student_statistics/:categoryId/:listId/:type",parentId:"101",id:"154"},155:{path:"/classrooms/:coursesId/video_statistics/:categoryId/Student/:studentid",parentId:"101",id:"155"},156:{path:"/classrooms/:coursesId/exportlist/:type",parentId:"101",id:"156"},157:{path:"/classrooms/:coursesId",parentId:"101",id:"157"},158:{path:"/classrooms/:coursesId/template",parentId:"101",id:"158"},159:{path:"/classrooms/:coursesId/statistics_zb",parentId:"19",id:"159"},160:{path:"/classrooms/:coursesId/statistics_zb/:categoryId/detail/:studentid",parentId:"19",id:"160"},161:{path:"/competitions",parentId:"1",id:"161"},162:{path:"/competitions/index",parentId:"161",id:"162"},163:{path:"/competitions/:identifier/list",parentId:"161",id:"163"},164:{path:"/competitions/exports",parentId:"161",id:"164"},165:{path:"/competitions",parentId:"161",id:"165"},166:{path:"/competitions/:identifier",parentId:"161",id:"166"},167:{path:"/competitions/index/:identifier",parentId:"161",id:"167"},168:{path:"/competitions/:identifier/detail/enroll",parentId:"161",id:"168"},169:{path:"/competitions/:identifier/detail/UpdateTeanname/:Teannameid",parentId:"161",id:"169"},170:{path:"/competitions/:identifier/detail/teamDetail/:Teamid",parentId:"161",id:"170"},171:{path:"/competitions/detail/:identifier",parentId:"161",id:"171"},172:{path:"/forums",parentId:"1",id:"172"},173:{path:"/forums",parentId:"172",id:"173"},174:{path:"/forums/categories/:memoType",parentId:"172",id:"174"},175:{path:"/forums/new",parentId:"172",id:"175"},176:{path:"/forums/:memoId/edit",parentId:"172",id:"176"},177:{path:"/forums/:memoId",parentId:"172",id:"177"},178:{path:"/problemset",parentId:"1",id:"178"},179:{path:"/problemset",parentId:"178",id:"179"},180:{path:"/problemset/newitem",parentId:"178",id:"180"},181:{path:"/problemset/:type/:id",parentId:"178",id:"181"},182:{path:"/problemset/preview",parentId:"178",id:"182"},183:{path:"/problemset/preview_new",parentId:"178",id:"183"},184:{path:"/problemset/preview_select",parentId:"178",id:"184"},185:{path:"/shixuns",parentId:"1",id:"185"},186:{path:"/shixuns",parentId:"185",id:"186"},187:{path:"/shixuns/exports",parentId:"185",id:"187"},188:{path:"/shixuns/new",parentId:"185",id:"188"},189:{path:"/shixuns/edit",parentId:"185",id:"189"},190:{path:"/shixuns/new/CreateImg",parentId:"185",id:"190"},191:{path:"/shixuns/new/:id/imagepreview",parentId:"185",id:"191"},192:{path:"/shixuns/:id/Merge",parentId:"185",id:"192"},193:{path:"/shixuns/:id/Split",parentId:"185",id:"193"},194:{path:"/shixuns/:id/edit",parentId:"185",id:"194"},195:{path:"shixuns/:id/edit/warehouse",parentId:"194",id:"195"},196:{path:"/shixuns/:id/edit/newquestion",parentId:"194",id:"196"},197:{path:"/shixuns/:id/edit/:challengesId/editquestion",parentId:"194",id:"197"},198:{path:"/shixuns/:id/edit/:challengesId/editquestion/:questionId",parentId:"194",id:"198"},199:{path:"/shixuns/:id/edit/new",parentId:"194",id:"199"},200:{path:"/shixuns/:id/edit/:challengesId/editcheckpoint",parentId:"194",id:"200"},201:{path:"/shixuns/:id/edit/:challengesId/tab=2",parentId:"194",id:"201"},202:{path:"/shixuns/:id/edit/:challengesId/tab=3",parentId:"194",id:"202"},203:{path:"/shixuns/:id/edit/:challengesId/tab=4",parentId:"194",id:"203"},204:{path:"/shixuns/:id",parentId:"185",id:"204"},205:{path:"/shixuns/:id/challenges",parentId:"204",id:"205"},206:{path:"/shixuns/:id/repository",parentId:"204",id:"206"},207:{path:"/shixuns/:id/secret_repository",parentId:"204",id:"207"},208:{path:"/shixuns/:id/collaborators",parentId:"204",id:"208"},209:{path:"/shixuns/:id/dataset",parentId:"204",id:"209"},210:{path:"/shixuns/:id/dataset/jupyterEdit",parentId:"204",id:"210"},211:{path:"/shixuns/:id/shixun_discuss",parentId:"204",id:"211"},212:{path:"/shixuns/:id/ranking_list",parentId:"204",id:"212"},213:{path:"/shixuns/:id/settings",parentId:"204",id:"213"},214:{path:"/shixuns/:id/repository/:repoId/commits",parentId:"204",id:"214"},215:{path:"/shixuns/:id/secret_repository/:repoId/commits",parentId:"204",id:"215"},216:{path:"/shixuns/:id/repository/upload_file",parentId:"204",id:"216"},217:{path:"/shixuns/:id/secret_repository/upload_file",parentId:"204",id:"217"},218:{path:"/shixuns/:id/repository/add_file",parentId:"204",id:"218"},219:{path:"/shixuns/:id/secret_repository/add_file",parentId:"204",id:"219"},220:{path:"/shixuns/:id/repository/master/shixun_show/:fileId",exact:!1,parentId:"204",id:"220"},221:{path:"/shixuns/:id/secret_repository/master/shixun_show/:fileId",exact:!1,parentId:"204",id:"221"},222:{path:"/shixuns/:id/audit_situation",parentId:"204",id:"222"},223:{path:"/shixuns/:id/fork_list",parentId:"204",id:"223"},224:{path:"/shixuns/:id/skill_tags",parentId:"204",id:"224"},225:{path:"/users",parentId:"1",id:"225"},226:{path:"/users/:username/videos/protocol",parentId:"225",id:"226"},227:{path:"/users/:username/videos/resourceProtocol",parentId:"225",id:"227"},228:{path:"/users/:username/videos/success",parentId:"225",id:"228"},229:{path:"/users/:username/topicbank/:topicstype",parentId:"225",id:"229"},230:{path:"/users/:username/topics/:topicId/:topictype/normal/detail",parentId:"225",id:"230"},231:{path:"/users/:username/topics/:topicId/:topictype/group/detail",parentId:"225",id:"231"},232:{path:"/users/:username/topics/:topicId/:topictype/normal/edit",parentId:"225",id:"232"},233:{path:"/users/:username/topics/:topicId/:topictype/group/edit",parentId:"225",id:"233"},234:{path:"/users/:username/topics/:topicId/:topictype/exercise/edit",parentId:"225",id:"234"},235:{path:"/users/:username/topics/:topicId/:topictype/exercise/detail",parentId:"225",id:"235"},236:{path:"/users/:username/topics/:topicId/:topictype/poll/edit",parentId:"225",id:"236"},237:{path:"/users/:username/topics/:topicId/:topictype/poll/detail",parentId:"225",id:"237"},238:{path:"/users/:username/experiment-img/add",parentId:"225",id:"238"},239:{path:"/users/:username",parentId:"225",id:"239"},240:{path:"/users/:username",parentId:"239",id:"240"},241:{path:"/users/:username/baseInfo/edit",parentId:"239",id:"241"},242:{path:"/users/:username/baseInfo",parentId:"239",id:"242"},243:{path:"/users/:username/realNameCertification",parentId:"239",id:"243"},244:{path:"/users/:username/careerCertification",parentId:"239",id:"244"},245:{path:"/users/:username/classrooms",parentId:"239",id:"245"},246:{path:"/users/:username/shixuns",parentId:"239",id:"246"},247:{path:"/users/:username/dataSet",parentId:"239",id:"247"},248:{path:"/users/:username/userPortrait",parentId:"239",id:"248"},249:{path:"/users/:username/learningPath",parentId:"239",id:"249"},250:{path:"/users/:username/teach-group",parentId:"239",id:"250"},251:{path:"/users/:username/competitions",parentId:"239",id:"251"},252:{path:"/users/:username/experiment-img",parentId:"239",id:"252"},253:{path:"/users/:username/experiment-img/:experid/detail",parentId:"239",id:"253"},254:{path:"/users/:username/certificate",parentId:"239",id:"254"},255:{path:"/users/:username/otherResources",parentId:"239",id:"255"},256:{path:"/users/:username/classmanagement",parentId:"239",id:"256"},257:{path:"/users/:username/classmanagement/:couserid",parentId:"239",id:"257"},258:{path:"/users/:username/paths",parentId:"239",id:"258"},259:{path:"/users/:username/projects",parentId:"239",id:"259"},260:{path:"/users/:username/videos",parentId:"239",id:"260"},261:{path:"/users/:username/videos/upload",parentId:"239",id:"261"},262:{path:"/users/:username/topics/:topicstype",parentId:"239",id:"262"},263:{path:"/users/:username/vspaces",parentId:"239",id:"263"},264:{path:"/users/:username/resourcesCenter",parentId:"239",id:"264"},265:{path:"/users/:username/resourcesCenter/:id/detail",parentId:"239",id:"265"},266:{path:"/users/:username/resourceGuarantee",parentId:"239",id:"266"},267:{path:"/users/:username/resourceAllocation",parentId:"239",id:"267"},268:{parentId:"1",id:"268"},269:{path:"/problems",parentId:"268",id:"269"},270:{path:"/problems",parentId:"269",id:"270"},271:{path:"/problems/batchAdd",parentId:"269",id:"271"},272:{path:"/problems/newcreate",parentId:"268",id:"272"},273:{path:"/problems/newedit/:id",exact:!0,parentId:"268",id:"273"},274:{path:"/problems/:id/edit",exact:!0,parentId:"268",id:"274"},275:{path:"/problems/new",exact:!0,parentId:"268",id:"275"},276:{path:"/problems/:id/oj/:save_identifier",parentId:"268",id:"276"},277:{path:"/problems/:id/record-detail/:submitId",parentId:"268",id:"277"},278:{path:"/problems/add",parentId:"268",id:"278"},279:{path:"/problems/:id/ojedit",parentId:"268",id:"279"},280:{path:"/engineering",parentId:"1",id:"280"},281:{path:"/engineering",parentId:"280",id:"281"},282:{path:"/engineering/teacherList",parentId:"281",id:"282"},283:{path:"/engineering/studentList",parentId:"281",id:"283"},284:{path:"/engineering/training/program",parentId:"281",id:"284"},285:{path:"/engineering/training/program/add",parentId:"281",id:"285"},286:{path:"/engineering/training/program/edit",parentId:"281",id:"286"},287:{path:"/engineering/training/objectives",parentId:"281",id:"287"},288:{path:"/engineering/graduated/index",parentId:"281",id:"288"},289:{path:"/engineering/graduated/matrix",parentId:"281",id:"289"},290:{path:"/engineering/course/list",parentId:"281",id:"290"},291:{path:"/engineering/course/setting",parentId:"281",id:"291"},292:{path:"/engineering/course/matrix",parentId:"281",id:"292"},293:{path:"/engineering/navigation",parentId:"281",id:"293"},294:{path:"/engineering/evaluate/course",parentId:"281",id:"294"},295:{path:"/engineering/evaluate/course/:ec_year_id/:id",parentId:"281",id:"295"},296:{path:"/engineering/evaluate/norm",parentId:"281",id:"296"},297:{path:"/engineering/evaluate/document",parentId:"281",id:"297"},298:{path:"/engineering/evaluate/norm/:ec_year_id/:id",parentId:"281",id:"298"},299:{path:"/engineering/*",redirect:"/404",parentId:"281",id:"299"},300:{path:"/innovation",parentId:"1",id:"300"},301:{path:"/innovation/tasks/:taskId",parentId:"300",id:"301"},302:{path:"/innovation",parentId:"300",id:"302"},303:{path:"/innovation/project",parentId:"302",id:"303"},304:{path:"/innovation/dataset",parentId:"302",id:"304"},305:{path:"/innovation/mirror",parentId:"302",id:"305"},306:{path:"/innovation/my-project",parentId:"302",id:"306"},307:{path:"/innovation/my-dataset",parentId:"302",id:"307"},308:{path:"/innovation/my-mirror",parentId:"302",id:"308"},309:{path:"/innovation/project/create",parentId:"302",id:"309"},310:{path:"/innovation/project/edit/:id",parentId:"302",id:"310"},311:{path:"/innovation/project/detail/:taskId",parentId:"302",id:"311"},312:{path:"/tasks",parentId:"1",id:"312"},313:{path:"/tasks/:taskId",exact:!0,parentId:"312",id:"313"},314:{path:"/tasks/:identifier/jupyter/",exact:!0,parentId:"312",id:"314"},315:{path:"/tasks/:courseId/:homeworkId/:taskId",exact:!0,parentId:"312",id:"315"},316:{path:"/tasks/jupyter/:courseId/:homeworkId/:identifier",exact:!0,parentId:"312",id:"316"},317:{path:"/tasks/:courseId/:exerciseId/:taskId/exercise",exact:!0,parentId:"312",id:"317"},318:{path:"/myproblems",parentId:"1",id:"318"},319:{path:"/myproblems/:id/record-detail/:submitId",exact:!0,parentId:"318",id:"319"},320:{path:"/myproblems/:id",exact:!0,parentId:"318",id:"320"},321:{path:"/account",parentId:"1",id:"321"},322:{path:"/account",parentId:"321",id:"322"},323:{path:"/account/profile",parentId:"322",id:"323"},324:{path:"/account/profile/edit",parentId:"322",id:"324"},325:{path:"/account/certification",parentId:"322",id:"325"},326:{path:"/account/secure",parentId:"322",id:"326"},327:{path:"/account/binding",parentId:"322",id:"327"},328:{path:"/account/Results",parentId:"322",id:"328"},329:{path:"/ch",parentId:"1",id:"329"},330:{path:"/ch/rest/edit/:categoryId/:id",exact:!0,parentId:"329",id:"330"},331:{path:"/ch/rest/",exact:!0,parentId:"329",id:"331"},332:{path:"/ch/rest/:id",exact:!0,parentId:"329",id:"332"},333:{path:"/order",parentId:"1",id:"333"},334:{path:"/order",parentId:"333",id:"334"},335:{path:"/order/invoice",parentId:"333",id:"335"},336:{path:"/order/records",parentId:"333",id:"336"},337:{path:"/order/apply",parentId:"333",id:"337"},338:{path:"/order/view",parentId:"333",id:"338"},339:{path:"/order/:courseId/information",parentId:"333",id:"339"},340:{path:"/order/:courseId/pay",parentId:"333",id:"340"},341:{path:"/order/:orderNum/result",parentId:"333",id:"341"},342:{path:"/messages",parentId:"1",id:"342"},343:{path:"/messages/:userId/user_tidings",parentId:"342",id:"343"},344:{path:"/messages/:userId/private_messages",parentId:"342",id:"344"},345:{path:"/messages/:userId/message_detail",parentId:"342",id:"345"},346:{path:"/vtrs",parentId:"1",id:"346"},347:{path:"/vtrs/:virtual_spacesId",parentId:"346",id:"347"},348:{path:"/vtrs/:virtual_spacesId",exact:!0,parentId:"347",id:"348"},349:{path:"/vtrs/:virtual_spacesId/workplace",exact:!0,parentId:"347",id:"349"},350:{path:"/vtrs/:virtual_spacesId/experiment",parentId:"347",id:"350"},351:{path:"/vtrs/:virtual_spacesId/announcement",parentId:"347",id:"351"},352:{path:"/vtrs/:virtual_spacesId/announcement/add",parentId:"347",id:"352"},353:{path:"/vtrs/:virtual_spacesId/announcement/:id/edit",parentId:"347",id:"353"},354:{path:"/vtrs/:virtual_spacesId/announcement/:id/detail",parentId:"347",id:"354"},355:{path:"/vtrs/:virtual_spacesId/survey",parentId:"347",id:"355"},356:{path:"/vtrs/:virtual_spacesId/survey/:id/detail",parentId:"347",id:"356"},357:{path:"/vtrs/:virtual_spacesId/knowledge",parentId:"347",id:"357"},358:{path:"/vtrs/:virtual_spacesId/knowledge/add",parentId:"347",id:"358"},359:{path:"/vtrs/:virtual_spacesId/knowledge/:id/edit",parentId:"347",id:"359"},360:{path:"/vtrs/:virtual_spacesId/material",parentId:"347",id:"360"},361:{path:"/vtrs/:virtual_spacesId/material/:id/detail",parentId:"347",id:"361"},362:{path:"/vtrs/:virtual_spacesId/lesson",parentId:"347",id:"362"},363:{path:"/vtrs/:virtual_spacesId/lesson/:id/detail",parentId:"347",id:"363"},364:{path:"/vtrs/:virtual_spacesId/lesson/:id/detail/:fileid",parentId:"347",id:"364"},365:{path:"/vtrs/:virtual_spacesId/discussion",parentId:"347",id:"365"},366:{path:"/vtrs/:virtual_spacesId/discussion/:id/detail",parentId:"347",id:"366"},367:{path:"/vtrs/:virtual_spacesId/discussion/:id/detail/:fileid",parentId:"347",id:"367"},368:{path:"/vtrs/:virtual_spacesId/settings",parentId:"347",id:"368"},369:{path:"/vtrs/:virtual_spacesId/resources",parentId:"347",id:"369"},370:{path:"/vtrs/:virtual_spacesId/resources/:id/detail",parentId:"347",id:"370"},371:{path:"/vtrs/:virtual_spacesId/Plan",parentId:"347",id:"371"},372:{path:"/vtrs/:virtual_spacesId/plan/:id/detail",parentId:"347",id:"372"},373:{path:"/vtrs/:virtual_spacesId/digtal",parentId:"347",id:"373"},374:{path:"/vtrs/:virtual_spacesId/homepage",parentId:"347",id:"374"},375:{path:"/vtrs/:virtual_spacesId/*",parentId:"347",id:"375"},376:{path:"/101",parentId:"1",id:"376"},377:{path:"/101/:virtual_spacesId",parentId:"376",id:"377"},378:{path:"/101/:virtual_spacesId",exact:!0,parentId:"377",id:"378"},379:{path:"/101/:virtual_spacesId/workplace",exact:!0,parentId:"377",id:"379"},380:{path:"/101/:virtual_spacesId/experiment",parentId:"377",id:"380"},381:{path:"/101/:virtual_spacesId/announcement",parentId:"377",id:"381"},382:{path:"/101/:virtual_spacesId/announcement/add",parentId:"377",id:"382"},383:{path:"/101/:virtual_spacesId/announcement/:id/edit",parentId:"377",id:"383"},384:{path:"/101/:virtual_spacesId/announcement/:id/detail",parentId:"377",id:"384"},385:{path:"/101/:virtual_spacesId/survey",parentId:"377",id:"385"},386:{path:"/101/:virtual_spacesId/survey/:id/detail",parentId:"377",id:"386"},387:{path:"/101/:virtual_spacesId/knowledge",parentId:"377",id:"387"},388:{path:"/101/:virtual_spacesId/knowledge/add",parentId:"377",id:"388"},389:{path:"/101/:virtual_spacesId/knowledge/:id/edit",parentId:"377",id:"389"},390:{path:"/101/:virtual_spacesId/material",parentId:"377",id:"390"},391:{path:"/101/:virtual_spacesId/material/:id/detail",parentId:"377",id:"391"},392:{path:"/101/:virtual_spacesId/lesson",parentId:"377",id:"392"},393:{path:"/101/:virtual_spacesId/lesson/:id/detail",parentId:"377",id:"393"},394:{path:"/101/:virtual_spacesId/lesson/:id/detail/:fileid",parentId:"377",id:"394"},395:{path:"/101/:virtual_spacesId/discussion",parentId:"377",id:"395"},396:{path:"/101/:virtual_spacesId/discussion/:id/detail",parentId:"377",id:"396"},397:{path:"/101/:virtual_spacesId/discussion/:id/detail/:fileid",parentId:"377",id:"397"},398:{path:"/101/:virtual_spacesId/settings",parentId:"377",id:"398"},399:{path:"/101/:virtual_spacesId/resources",parentId:"377",id:"399"},400:{path:"/101/:virtual_spacesId/resources/:id/detail",parentId:"377",id:"400"},401:{path:"/101/:virtual_spacesId/Plan",parentId:"377",id:"401"},402:{path:"/101/:virtual_spacesId/plan/:id/detail",parentId:"377",id:"402"},403:{path:"/101/:virtual_spacesId/digtal",parentId:"377",id:"403"},404:{path:"/101/:virtual_spacesId/homepage",parentId:"377",id:"404"},405:{path:"/101/:virtual_spacesId/*",parentId:"377",id:"405"},406:{path:"/administration",parentId:"1",id:"406"},407:{path:"/administration",parentId:"406",id:"407"},408:{path:"/administration/college",parentId:"407",id:"408"},409:{path:"/administration/student",parentId:"407",id:"409"},410:{path:"/administration/student/:studentId/edit",parentId:"407",id:"410"},411:{path:"/administration/profession",parentId:"407",id:"411"},412:{path:"/graduations",parentId:"1",id:"412"},413:{path:"/graduations",exact:!0,parentId:"412",id:"413"},414:{path:"/graduations/:id/:moduleKey/:moduleId/review/:itemId",exact:!0,parentId:"412",id:"414"},415:{path:"/graduations/:id",parentId:"412",id:"415"},416:{path:"/graduations/:id/index",parentId:"415",id:"416"},417:{path:"/graduations/:id/topics",parentId:"415",id:"417"},418:{path:"/graduations/:id/student_selection",parentId:"415",id:"418"},419:{path:"/graduations/:id/tasks",parentId:"415",id:"419"},420:{path:"/graduations/:id/opening_report",parentId:"415",id:"420"},421:{path:"/graduations/:id/midterm_report",parentId:"415",id:"421"},422:{path:"/graduations/:id/thesis",parentId:"415",id:"422"},423:{path:"/graduations/:id/final_defense",parentId:"415",id:"423"},424:{path:"/graduations/:id/final_thesis",parentId:"415",id:"424"},425:{path:"/graduations/:id/settings",parentId:"415",id:"425"},426:{path:"/graduations/:id/teachers",parentId:"415",id:"426"},427:{path:"/graduations/:id/students",parentId:"415",id:"427"},428:{path:"/graduations/:id/archives",parentId:"415",id:"428"},429:{path:"/graduations/:id/grading_summary",parentId:"415",id:"429"},430:{path:"/dataset",parentId:"1",id:"430"},431:{path:"/dataset",exact:!0,parentId:"430",id:"431"},432:{path:"/dataset/:id/detail",exact:!0,parentId:"430",id:"432"},433:{path:"/knowledgegraph",parentId:"1",id:"433"},434:{path:"/knowledgegraph/:pathId",parentId:"433",id:"434"},435:{path:"/knowledgegraph/:pathId/statistics",parentId:"433",id:"435"},436:{path:"/newlogin",parentId:"1",id:"436"},437:{path:"/onlinenum",parentId:"1",id:"437"},438:{path:"/onlinenum",parentId:"437",id:"438"},439:{path:"/shixuncontext",parentId:"1",id:"439"},440:{path:"/shixuncontext",parentId:"439",id:"440"},441:{path:"/shixuncontext/:Id/detail",parentId:"439",id:"441"},442:{path:"/educoder-demo",exact:!0,parentId:"1",id:"442"},443:{path:"/training",parentId:"1",id:"443"},444:{name:"\u7CBE\u57F9\u8BFE\u7A0B",path:"/training",parentId:"443",id:"444"},445:{path:"/largeScreen",exact:!0,parentId:"1",id:"445"},446:{path:"/quality",parentId:"1",id:"446"},447:{name:"\u7CBE\u54C1\u8BFE\u7A0B",path:"/quality",parentId:"446",id:"447"},448:{path:"/otherlogin",exact:!0,parentId:"1",id:"448"},449:{path:"/otherloginqq",exact:!0,parentId:"1",id:"449"},450:{path:"/otherloginstart",exact:!0,parentId:"1",id:"450"},451:{path:"/pathsoverview",exact:!0,parentId:"1",id:"451"},452:{path:"/shixunsoverview",exact:!0,parentId:"1",id:"452"},453:{path:"/classroomsoverview",exact:!0,parentId:"1",id:"453"},454:{path:"/login",parentId:"1",id:"454"},455:{path:"/login",parentId:"454",id:"455"},456:{path:"/user",parentId:"1",id:"456"},457:{path:"/user/login",parentId:"456",id:"457"},458:{path:"/user/register",parentId:"456",id:"458"},459:{path:"/user/reset-password",parentId:"456",id:"459"},460:{path:"/colleges",parentId:"1",id:"460"},461:{path:"/colleges/:id/statistics",parentId:"460",id:"461"},462:{path:"/help",parentId:"1",id:"462"},463:{path:"/help/:id",parentId:"462",id:"463"},464:{path:"/video",parentId:"1",id:"464"},465:{path:"/video/:videoId",parentId:"464",id:"465"},466:{path:"/terminal",parentId:"1",id:"466"},467:{path:"/report/:taskId/:game_report_id",parentId:"1",id:"467"},468:{path:"/statsDashboard",parentId:"1",id:"468"},469:{path:"/zbstatistics",parentId:"1",id:"469"},470:{path:"/zbstatistics/detail/:id",parentId:"1",id:"470"},471:{path:"/",parentId:"1",id:"471"},472:{path:"/",exact:!0,parentId:"471",id:"472"},473:{path:"/api/*",exact:!0,parentId:"471",id:"473"},474:{path:"/search",exact:!0,parentId:"471",id:"474"},475:{path:"/moop_cases",exact:!0,parentId:"471",id:"475"},476:{path:"/moop_cases/new",exact:!0,parentId:"471",id:"476"},477:{path:"/moop_cases/:caseId",exact:!0,parentId:"471",id:"477"},478:{path:"/moop_cases/:caseId/edit",exact:!0,parentId:"471",id:"478"},479:{path:"/moop_cases/:caseId/publish-success",exact:!0,parentId:"471",id:"479"},480:{path:"/randompaper",exact:!0,parentId:"471",id:"480"},481:{path:"/randompaper/edit/:id",exact:!0,parentId:"471",id:"481"},482:{path:"/randompaper/detail/:id",exact:!0,parentId:"471",id:"482"},483:{path:"/403",parentId:"471",id:"483"},484:{path:"/500",parentId:"471",id:"484"},485:{path:"/404",parentId:"471",id:"485"},486:{path:"/download",parentId:"471",id:"486"},487:{path:"/iwce",parentId:"471",id:"487"},488:{path:"/classrooms/:coursesId/attendance/TeacherSign",parentId:"471",id:"488"},489:{path:"/classrooms/:coursesId/attendance/:categoryId",parentId:"471",id:"489"},490:{path:"/Activities",parentId:"471",id:"490"},491:{path:"/iwce/:itemname",parentId:"471",id:"491"},492:{path:"/hpc-course",parentId:"471",id:"492"},493:{path:"/user_agents",parentId:"471",id:"493"},494:{path:"/three",parentId:"471",id:"494"},495:{path:"/introduction",parentId:"471",id:"495"},496:{path:"/chatgpt",parentId:"471",id:"496"},497:{path:"/*",parentId:"471",id:"497"},"@@/global-layout":{id:"@@/global-layout",path:"/",isLayout:!0}},routeComponents:{1:$e.lazy(()=>__webpack_require__.e(9176).then(__webpack_require__.bind(__webpack_require__,29176))),2:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),3:$e.lazy(()=>Promise.all([__webpack_require__.e(1003),__webpack_require__.e(2099)]).then(__webpack_require__.bind(__webpack_require__,89854))),4:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(3260)]).then(__webpack_require__.bind(__webpack_require__,16206))),5:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(3260)]).then(__webpack_require__.bind(__webpack_require__,16206))),6:$e.lazy(()=>__webpack_require__.e(3247).then(__webpack_require__.bind(__webpack_require__,68158))),7:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(8461),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43300))),8:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(8461),__webpack_require__.e(1545)]).then(__webpack_require__.bind(__webpack_require__,12272))),9:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),10:$e.lazy(()=>__webpack_require__.e(9906).then(__webpack_require__.bind(__webpack_require__,49691))),11:$e.lazy(()=>__webpack_require__.e(5572).then(__webpack_require__.bind(__webpack_require__,55347))),12:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6080)]).then(__webpack_require__.bind(__webpack_require__,81159))),13:$e.lazy(()=>__webpack_require__.e(7901).then(__webpack_require__.bind(__webpack_require__,62114))),14:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(2281)]).then(__webpack_require__.bind(__webpack_require__,64129))),15:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1651)]).then(__webpack_require__.bind(__webpack_require__,28320))),16:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6080)]).then(__webpack_require__.bind(__webpack_require__,81159))),17:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(8461),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43300))),18:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(8461),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43300))),19:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),20:$e.lazy(()=>__webpack_require__.e(6789).then(__webpack_require__.bind(__webpack_require__,4547))),21:$e.lazy(()=>__webpack_require__.e(9921).then(__webpack_require__.bind(__webpack_require__,21753))),22:$e.lazy(()=>__webpack_require__.e(1674).then(__webpack_require__.bind(__webpack_require__,61785))),23:$e.lazy(()=>__webpack_require__.e(6685).then(__webpack_require__.bind(__webpack_require__,90922))),24:$e.lazy(()=>__webpack_require__.e(7323).then(__webpack_require__.bind(__webpack_require__,75705))),25:$e.lazy(()=>__webpack_require__.e(7323).then(__webpack_require__.bind(__webpack_require__,75705))),26:$e.lazy(()=>__webpack_require__.e(6882).then(__webpack_require__.bind(__webpack_require__,24609))),27:$e.lazy(()=>__webpack_require__.e(6882).then(__webpack_require__.bind(__webpack_require__,24609))),28:$e.lazy(()=>__webpack_require__.e(109).then(__webpack_require__.bind(__webpack_require__,14345))),29:$e.lazy(()=>__webpack_require__.e(737).then(__webpack_require__.bind(__webpack_require__,96398))),30:$e.lazy(()=>__webpack_require__.e(3391).then(__webpack_require__.bind(__webpack_require__,7634))),31:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(5694)]).then(__webpack_require__.bind(__webpack_require__,5050))),32:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(5330)]).then(__webpack_require__.bind(__webpack_require__,38694))),33:$e.lazy(()=>Promise.all([__webpack_require__.e(1003),__webpack_require__.e(2303)]).then(__webpack_require__.bind(__webpack_require__,80148))),34:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1450)]).then(__webpack_require__.bind(__webpack_require__,72889))),35:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(195)]).then(__webpack_require__.bind(__webpack_require__,8973))),36:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3668)]).then(__webpack_require__.bind(__webpack_require__,14535))),37:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(2338)]).then(__webpack_require__.bind(__webpack_require__,92137))),38:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4662)]).then(__webpack_require__.bind(__webpack_require__,22726))),39:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8072)]).then(__webpack_require__.bind(__webpack_require__,34537))),40:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(479)]).then(__webpack_require__.bind(__webpack_require__,69544))),41:$e.lazy(()=>__webpack_require__.e(5297).then(__webpack_require__.bind(__webpack_require__,6213))),42:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(4164)]).then(__webpack_require__.bind(__webpack_require__,86310))),43:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(8461),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43300))),44:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(7699),__webpack_require__.e(4889)]).then(__webpack_require__.bind(__webpack_require__,98557))),45:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(7699),__webpack_require__.e(4105)]).then(__webpack_require__.bind(__webpack_require__,41919))),46:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(7883)]).then(__webpack_require__.bind(__webpack_require__,62948))),47:$e.lazy(()=>__webpack_require__.e(7482).then(__webpack_require__.bind(__webpack_require__,42258))),48:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,80177))),49:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(337)]).then(__webpack_require__.bind(__webpack_require__,61467))),50:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(292)]).then(__webpack_require__.bind(__webpack_require__,58931))),51:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(292)]).then(__webpack_require__.bind(__webpack_require__,58931))),52:$e.lazy(()=>__webpack_require__.e(5992).then(__webpack_require__.bind(__webpack_require__,31862))),53:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(1003),__webpack_require__.e(7699),__webpack_require__.e(8085)]).then(__webpack_require__.bind(__webpack_require__,83038))),54:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(1003),__webpack_require__.e(7699),__webpack_require__.e(8085)]).then(__webpack_require__.bind(__webpack_require__,83038))),55:$e.lazy(()=>__webpack_require__.e(8431).then(__webpack_require__.bind(__webpack_require__,37735))),56:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5902)]).then(__webpack_require__.bind(__webpack_require__,1690))),57:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(3433)]).then(__webpack_require__.bind(__webpack_require__,82275))),58:$e.lazy(()=>__webpack_require__.e(5125).then(__webpack_require__.bind(__webpack_require__,60519))),59:$e.lazy(()=>__webpack_require__.e(5125).then(__webpack_require__.bind(__webpack_require__,60519))),60:$e.lazy(()=>__webpack_require__.e(921).then(__webpack_require__.bind(__webpack_require__,66897))),61:$e.lazy(()=>__webpack_require__.e(921).then(__webpack_require__.bind(__webpack_require__,66897))),62:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1578)]).then(__webpack_require__.bind(__webpack_require__,31240))),63:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3317)]).then(__webpack_require__.bind(__webpack_require__,70846))),64:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1482)]).then(__webpack_require__.bind(__webpack_require__,55940))),65:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4795)]).then(__webpack_require__.bind(__webpack_require__,29388))),66:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(26)]).then(__webpack_require__.bind(__webpack_require__,90025))),67:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8882)]).then(__webpack_require__.bind(__webpack_require__,96791))),68:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5888)]).then(__webpack_require__.bind(__webpack_require__,22797))),69:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(9715)]).then(__webpack_require__.bind(__webpack_require__,76715))),70:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(7045)]).then(__webpack_require__.bind(__webpack_require__,74622))),71:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1211)]).then(__webpack_require__.bind(__webpack_require__,45629))),72:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1582)]).then(__webpack_require__.bind(__webpack_require__,7880))),73:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6729)]).then(__webpack_require__.bind(__webpack_require__,66314))),74:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(9695)]).then(__webpack_require__.bind(__webpack_require__,96993))),75:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8723)]).then(__webpack_require__.bind(__webpack_require__,74167))),76:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7622)]).then(__webpack_require__.bind(__webpack_require__,77560))),77:$e.lazy(()=>__webpack_require__.e(5148).then(__webpack_require__.bind(__webpack_require__,98646))),78:$e.lazy(()=>__webpack_require__.e(643).then(__webpack_require__.bind(__webpack_require__,24448))),79:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3442)]).then(__webpack_require__.bind(__webpack_require__,56273))),80:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2102)]).then(__webpack_require__.bind(__webpack_require__,3435))),81:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2425)]).then(__webpack_require__.bind(__webpack_require__,86205))),82:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2404)]).then(__webpack_require__.bind(__webpack_require__,58264))),83:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(9785)]).then(__webpack_require__.bind(__webpack_require__,13933))),84:$e.lazy(()=>__webpack_require__.e(7901).then(__webpack_require__.bind(__webpack_require__,62114))),85:$e.lazy(()=>__webpack_require__.e(2819).then(__webpack_require__.bind(__webpack_require__,55227))),86:$e.lazy(()=>__webpack_require__.e(1512).then(__webpack_require__.bind(__webpack_require__,76431))),87:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7395)]).then(__webpack_require__.bind(__webpack_require__,63329))),88:$e.lazy(()=>__webpack_require__.e(3585).then(__webpack_require__.bind(__webpack_require__,18583))),89:$e.lazy(()=>__webpack_require__.e(6963).then(__webpack_require__.bind(__webpack_require__,44923))),90:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4030)]).then(__webpack_require__.bind(__webpack_require__,3235))),91:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4030)]).then(__webpack_require__.bind(__webpack_require__,3235))),92:$e.lazy(()=>__webpack_require__.e(6127).then(__webpack_require__.bind(__webpack_require__,78439))),93:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3951)]).then(__webpack_require__.bind(__webpack_require__,67506))),94:$e.lazy(()=>__webpack_require__.e(1048).then(__webpack_require__.bind(__webpack_require__,63298))),95:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2884)]).then(__webpack_require__.bind(__webpack_require__,23072))),96:$e.lazy(()=>__webpack_require__.e(4770).then(__webpack_require__.bind(__webpack_require__,55715))),97:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2603)]).then(__webpack_require__.bind(__webpack_require__,54488))),98:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4216)]).then(__webpack_require__.bind(__webpack_require__,39682))),99:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5319)]).then(__webpack_require__.bind(__webpack_require__,58026))),100:$e.lazy(()=>__webpack_require__.e(895).then(__webpack_require__.bind(__webpack_require__,50684))),101:$e.lazy(()=>__webpack_require__.e(7322).then(__webpack_require__.bind(__webpack_require__,59324))),102:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1731),__webpack_require__.e(2203)]).then(__webpack_require__.bind(__webpack_require__,96691))),103:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1731),__webpack_require__.e(2203)]).then(__webpack_require__.bind(__webpack_require__,96691))),104:$e.lazy(()=>__webpack_require__.e(5048).then(__webpack_require__.bind(__webpack_require__,81189))),105:$e.lazy(()=>__webpack_require__.e(1043).then(__webpack_require__.bind(__webpack_require__,55521))),106:$e.lazy(()=>__webpack_require__.e(1043).then(__webpack_require__.bind(__webpack_require__,55521))),107:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6776)]).then(__webpack_require__.bind(__webpack_require__,41536))),108:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6776)]).then(__webpack_require__.bind(__webpack_require__,41536))),109:$e.lazy(()=>__webpack_require__.e(4297).then(__webpack_require__.bind(__webpack_require__,37509))),110:$e.lazy(()=>__webpack_require__.e(4297).then(__webpack_require__.bind(__webpack_require__,37509))),111:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1731),__webpack_require__.e(8458)]).then(__webpack_require__.bind(__webpack_require__,94602))),112:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1731),__webpack_require__.e(8458)]).then(__webpack_require__.bind(__webpack_require__,94602))),113:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1731),__webpack_require__.e(1798)]).then(__webpack_require__.bind(__webpack_require__,49727))),114:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1731),__webpack_require__.e(1798)]).then(__webpack_require__.bind(__webpack_require__,49727))),115:$e.lazy(()=>__webpack_require__.e(5177).then(__webpack_require__.bind(__webpack_require__,18498))),116:$e.lazy(()=>__webpack_require__.e(201).then(__webpack_require__.bind(__webpack_require__,45816))),117:$e.lazy(()=>__webpack_require__.e(1477).then(__webpack_require__.bind(__webpack_require__,75677))),118:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1731),__webpack_require__.e(6282)]).then(__webpack_require__.bind(__webpack_require__,26947))),119:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1731),__webpack_require__.e(6282)]).then(__webpack_require__.bind(__webpack_require__,26947))),120:$e.lazy(()=>__webpack_require__.e(1962).then(__webpack_require__.bind(__webpack_require__,60949))),121:$e.lazy(()=>__webpack_require__.e(4928).then(__webpack_require__.bind(__webpack_require__,48153))),122:$e.lazy(()=>__webpack_require__.e(1257).then(__webpack_require__.bind(__webpack_require__,22428))),123:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2450),__webpack_require__.e(7329)]).then(__webpack_require__.bind(__webpack_require__,64489))),124:$e.lazy(()=>__webpack_require__.e(8340).then(__webpack_require__.bind(__webpack_require__,4417))),125:$e.lazy(()=>__webpack_require__.e(4093).then(__webpack_require__.bind(__webpack_require__,77014))),126:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6185)]).then(__webpack_require__.bind(__webpack_require__,9585))),127:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6185)]).then(__webpack_require__.bind(__webpack_require__,9585))),128:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8827)]).then(__webpack_require__.bind(__webpack_require__,93852))),129:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8827)]).then(__webpack_require__.bind(__webpack_require__,93852))),130:$e.lazy(()=>__webpack_require__.e(1678).then(__webpack_require__.bind(__webpack_require__,23547))),131:$e.lazy(()=>__webpack_require__.e(1678).then(__webpack_require__.bind(__webpack_require__,23547))),132:$e.lazy(()=>__webpack_require__.e(1754).then(__webpack_require__.bind(__webpack_require__,69909))),133:$e.lazy(()=>__webpack_require__.e(1754).then(__webpack_require__.bind(__webpack_require__,69909))),134:$e.lazy(()=>__webpack_require__.e(4217).then(__webpack_require__.bind(__webpack_require__,93711))),135:$e.lazy(()=>__webpack_require__.e(3220).then(__webpack_require__.bind(__webpack_require__,45600))),136:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(533)]).then(__webpack_require__.bind(__webpack_require__,68716))),137:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5798)]).then(__webpack_require__.bind(__webpack_require__,79147))),138:$e.lazy(()=>__webpack_require__.e(5466).then(__webpack_require__.bind(__webpack_require__,2769))),139:$e.lazy(()=>__webpack_require__.e(5466).then(__webpack_require__.bind(__webpack_require__,2769))),140:$e.lazy(()=>__webpack_require__.e(9944).then(__webpack_require__.bind(__webpack_require__,91243))),141:$e.lazy(()=>__webpack_require__.e(9406).then(__webpack_require__.bind(__webpack_require__,69303))),142:$e.lazy(()=>__webpack_require__.e(9406).then(__webpack_require__.bind(__webpack_require__,69303))),143:$e.lazy(()=>__webpack_require__.e(9039).then(__webpack_require__.bind(__webpack_require__,32180))),144:$e.lazy(()=>__webpack_require__.e(9039).then(__webpack_require__.bind(__webpack_require__,32180))),145:$e.lazy(()=>__webpack_require__.e(7922).then(__webpack_require__.bind(__webpack_require__,50636))),146:$e.lazy(()=>__webpack_require__.e(1727).then(__webpack_require__.bind(__webpack_require__,34048))),147:$e.lazy(()=>__webpack_require__.e(1727).then(__webpack_require__.bind(__webpack_require__,34048))),148:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1427)]).then(__webpack_require__.bind(__webpack_require__,54084))),149:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1427)]).then(__webpack_require__.bind(__webpack_require__,54084))),150:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8689)]).then(__webpack_require__.bind(__webpack_require__,46879))),151:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7806)]).then(__webpack_require__.bind(__webpack_require__,16055))),152:$e.lazy(()=>__webpack_require__.e(3276).then(__webpack_require__.bind(__webpack_require__,89034))),153:$e.lazy(()=>__webpack_require__.e(8885).then(__webpack_require__.bind(__webpack_require__,79390))),154:$e.lazy(()=>__webpack_require__.e(3451).then(__webpack_require__.bind(__webpack_require__,9098))),155:$e.lazy(()=>__webpack_require__.e(9922).then(__webpack_require__.bind(__webpack_require__,24680))),156:$e.lazy(()=>__webpack_require__.e(4572).then(__webpack_require__.bind(__webpack_require__,34306))),157:$e.lazy(()=>__webpack_require__.e(4017).then(__webpack_require__.bind(__webpack_require__,82019))),158:$e.lazy(()=>__webpack_require__.e(5518).then(__webpack_require__.bind(__webpack_require__,2446))),159:$e.lazy(()=>__webpack_require__.e(5823).then(__webpack_require__.bind(__webpack_require__,68984))),160:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4944)]).then(__webpack_require__.bind(__webpack_require__,27707))),161:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),162:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9875),__webpack_require__.e(7099)]).then(__webpack_require__.bind(__webpack_require__,53921))),163:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9875),__webpack_require__.e(7099)]).then(__webpack_require__.bind(__webpack_require__,53921))),164:$e.lazy(()=>__webpack_require__.e(4449).then(__webpack_require__.bind(__webpack_require__,40571))),165:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9875),__webpack_require__.e(7099)]).then(__webpack_require__.bind(__webpack_require__,53921))),166:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5860),__webpack_require__.e(2570)]).then(__webpack_require__.bind(__webpack_require__,44884))),167:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5860),__webpack_require__.e(2570)]).then(__webpack_require__.bind(__webpack_require__,44884))),168:$e.lazy(()=>__webpack_require__.e(8787).then(__webpack_require__.bind(__webpack_require__,7870))),169:$e.lazy(()=>__webpack_require__.e(5650).then(__webpack_require__.bind(__webpack_require__,4505))),170:$e.lazy(()=>__webpack_require__.e(1799).then(__webpack_require__.bind(__webpack_require__,93685))),171:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5860),__webpack_require__.e(8579)]).then(__webpack_require__.bind(__webpack_require__,89801))),172:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),173:$e.lazy(()=>__webpack_require__.e(8639).then(__webpack_require__.bind(__webpack_require__,13207))),174:$e.lazy(()=>__webpack_require__.e(4048).then(__webpack_require__.bind(__webpack_require__,10229))),175:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4264)]).then(__webpack_require__.bind(__webpack_require__,23752))),176:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4264)]).then(__webpack_require__.bind(__webpack_require__,23752))),177:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(508)]).then(__webpack_require__.bind(__webpack_require__,92471))),178:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),179:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(8461),__webpack_require__.e(7835)]).then(__webpack_require__.bind(__webpack_require__,47825))),180:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(1953)]).then(__webpack_require__.bind(__webpack_require__,63037))),181:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(1953)]).then(__webpack_require__.bind(__webpack_require__,63037))),182:$e.lazy(()=>__webpack_require__.e(1581).then(__webpack_require__.bind(__webpack_require__,29488))),183:$e.lazy(()=>__webpack_require__.e(4144).then(__webpack_require__.bind(__webpack_require__,26472))),184:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(8461),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43300))),185:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),186:$e.lazy(()=>__webpack_require__.e(8552).then(__webpack_require__.bind(__webpack_require__,55036))),187:$e.lazy(()=>__webpack_require__.e(7884).then(__webpack_require__.bind(__webpack_require__,98491))),188:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5307)]).then(__webpack_require__.bind(__webpack_require__,74660))),189:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5307)]).then(__webpack_require__.bind(__webpack_require__,74660))),190:$e.lazy(()=>__webpack_require__.e(5549).then(__webpack_require__.bind(__webpack_require__,26917))),191:$e.lazy(()=>__webpack_require__.e(9674).then(__webpack_require__.bind(__webpack_require__,49048))),192:$e.lazy(()=>__webpack_require__.e(5573).then(__webpack_require__.bind(__webpack_require__,23671))),193:$e.lazy(()=>__webpack_require__.e(2141).then(__webpack_require__.bind(__webpack_require__,31341))),194:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(7502),__webpack_require__.e(9511)]).then(__webpack_require__.bind(__webpack_require__,36659))),195:$e.lazy(()=>__webpack_require__.e(6328).then(__webpack_require__.bind(__webpack_require__,80265))),196:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(7857)]).then(__webpack_require__.bind(__webpack_require__,55233))),197:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(1657)]).then(__webpack_require__.bind(__webpack_require__,57614))),198:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(1657)]).then(__webpack_require__.bind(__webpack_require__,57614))),199:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(4498)]).then(__webpack_require__.bind(__webpack_require__,72997))),200:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(4498)]).then(__webpack_require__.bind(__webpack_require__,72997))),201:$e.lazy(()=>__webpack_require__.e(9205).then(__webpack_require__.bind(__webpack_require__,62006))),202:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1423)]).then(__webpack_require__.bind(__webpack_require__,78246))),203:$e.lazy(()=>__webpack_require__.e(7614).then(__webpack_require__.bind(__webpack_require__,73661))),204:$e.lazy(()=>__webpack_require__.e(9449).then(__webpack_require__.bind(__webpack_require__,83263))),205:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9814)]).then(__webpack_require__.bind(__webpack_require__,60277))),206:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6637)]).then(__webpack_require__.bind(__webpack_require__,58275))),207:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6637)]).then(__webpack_require__.bind(__webpack_require__,58275))),208:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(3581)]).then(__webpack_require__.bind(__webpack_require__,57225))),209:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1993)]).then(__webpack_require__.bind(__webpack_require__,72946))),210:$e.lazy(()=>Promise.all([__webpack_require__.e(7502),__webpack_require__.e(1475)]).then(__webpack_require__.bind(__webpack_require__,65630))),211:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(8965)]).then(__webpack_require__.bind(__webpack_require__,21716))),212:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6451)]).then(__webpack_require__.bind(__webpack_require__,50469))),213:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(518)]).then(__webpack_require__.bind(__webpack_require__,28882))),214:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5894)]).then(__webpack_require__.bind(__webpack_require__,92363))),215:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5894)]).then(__webpack_require__.bind(__webpack_require__,92363))),216:$e.lazy(()=>__webpack_require__.e(2130).then(__webpack_require__.bind(__webpack_require__,66111))),217:$e.lazy(()=>__webpack_require__.e(2130).then(__webpack_require__.bind(__webpack_require__,66111))),218:$e.lazy(()=>__webpack_require__.e(5230).then(__webpack_require__.bind(__webpack_require__,32301))),219:$e.lazy(()=>__webpack_require__.e(5230).then(__webpack_require__.bind(__webpack_require__,32301))),220:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,13875))),221:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,13875))),222:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5096)]).then(__webpack_require__.bind(__webpack_require__,48997))),223:$e.lazy(()=>__webpack_require__.e(3086).then(__webpack_require__.bind(__webpack_require__,24677))),224:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9417)]).then(__webpack_require__.bind(__webpack_require__,85424))),225:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),226:$e.lazy(()=>__webpack_require__.e(5176).then(__webpack_require__.bind(__webpack_require__,71020))),227:$e.lazy(()=>__webpack_require__.e(6587).then(__webpack_require__.bind(__webpack_require__,58949))),228:$e.lazy(()=>__webpack_require__.e(9891).then(__webpack_require__.bind(__webpack_require__,24662))),229:$e.lazy(()=>__webpack_require__.e(8062).then(__webpack_require__.bind(__webpack_require__,83014))),230:$e.lazy(()=>__webpack_require__.e(5402).then(__webpack_require__.bind(__webpack_require__,99981))),231:$e.lazy(()=>__webpack_require__.e(5402).then(__webpack_require__.bind(__webpack_require__,99981))),232:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6820)]).then(__webpack_require__.bind(__webpack_require__,57430))),233:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8517)]).then(__webpack_require__.bind(__webpack_require__,46613))),234:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(7043)]).then(__webpack_require__.bind(__webpack_require__,6510))),235:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2806)]).then(__webpack_require__.bind(__webpack_require__,30577))),236:$e.lazy(()=>__webpack_require__.e(5043).then(__webpack_require__.bind(__webpack_require__,61222))),237:$e.lazy(()=>__webpack_require__.e(799).then(__webpack_require__.bind(__webpack_require__,59556))),238:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3157)]).then(__webpack_require__.bind(__webpack_require__,26353))),239:$e.lazy(()=>__webpack_require__.e(8332).then(__webpack_require__.bind(__webpack_require__,67781))),240:$e.lazy(()=>__webpack_require__.e(6583).then(__webpack_require__.bind(__webpack_require__,57387))),241:$e.lazy(()=>__webpack_require__.e(8217).then(__webpack_require__.bind(__webpack_require__,73015))),242:$e.lazy(()=>__webpack_require__.e(879).then(__webpack_require__.bind(__webpack_require__,42864))),243:$e.lazy(()=>__webpack_require__.e(5776).then(__webpack_require__.bind(__webpack_require__,10723))),244:$e.lazy(()=>__webpack_require__.e(906).then(__webpack_require__.bind(__webpack_require__,33701))),245:$e.lazy(()=>__webpack_require__.e(900).then(__webpack_require__.bind(__webpack_require__,79025))),246:$e.lazy(()=>__webpack_require__.e(6682).then(__webpack_require__.bind(__webpack_require__,60069))),247:$e.lazy(()=>__webpack_require__.e(8115).then(__webpack_require__.bind(__webpack_require__,60494))),248:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2659)]).then(__webpack_require__.bind(__webpack_require__,31799))),249:$e.lazy(()=>__webpack_require__.e(4610).then(__webpack_require__.bind(__webpack_require__,89881))),250:$e.lazy(()=>__webpack_require__.e(8479).then(__webpack_require__.bind(__webpack_require__,32682))),251:$e.lazy(()=>__webpack_require__.e(5800).then(__webpack_require__.bind(__webpack_require__,84258))),252:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2862)]).then(__webpack_require__.bind(__webpack_require__,8582))),253:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8286)]).then(__webpack_require__.bind(__webpack_require__,50553))),254:$e.lazy(()=>__webpack_require__.e(5117).then(__webpack_require__.bind(__webpack_require__,97354))),255:$e.lazy(()=>__webpack_require__.e(7402).then(__webpack_require__.bind(__webpack_require__,97711))),256:$e.lazy(()=>__webpack_require__.e(1897).then(__webpack_require__.bind(__webpack_require__,65314))),257:$e.lazy(()=>__webpack_require__.e(8145).then(__webpack_require__.bind(__webpack_require__,54665))),258:$e.lazy(()=>__webpack_require__.e(119).then(__webpack_require__.bind(__webpack_require__,32166))),259:$e.lazy(()=>__webpack_require__.e(4736).then(__webpack_require__.bind(__webpack_require__,19161))),260:$e.lazy(()=>__webpack_require__.e(2412).then(__webpack_require__.bind(__webpack_require__,88480))),261:$e.lazy(()=>__webpack_require__.e(2240).then(__webpack_require__.bind(__webpack_require__,21838))),262:$e.lazy(()=>__webpack_require__.e(5165).then(__webpack_require__.bind(__webpack_require__,65790))),263:$e.lazy(()=>__webpack_require__.e(3831).then(__webpack_require__.bind(__webpack_require__,87654))),264:$e.lazy(()=>__webpack_require__.e(2396).then(__webpack_require__.bind(__webpack_require__,41894))),265:$e.lazy(()=>__webpack_require__.e(7855).then(__webpack_require__.bind(__webpack_require__,49696))),266:$e.lazy(()=>__webpack_require__.e(9507).then(__webpack_require__.bind(__webpack_require__,79488))),267:$e.lazy(()=>__webpack_require__.e(1343).then(__webpack_require__.bind(__webpack_require__,4033))),268:$e.lazy(()=>__webpack_require__.e(9176).then(__webpack_require__.bind(__webpack_require__,29176))),269:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),270:$e.lazy(()=>__webpack_require__.e(9647).then(__webpack_require__.bind(__webpack_require__,99135))),271:$e.lazy(()=>__webpack_require__.e(485).then(__webpack_require__.bind(__webpack_require__,26058))),272:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4741)]).then(__webpack_require__.bind(__webpack_require__,6066))),273:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4741)]).then(__webpack_require__.bind(__webpack_require__,6066))),274:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4994)]).then(__webpack_require__.bind(__webpack_require__,85604))),275:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4994)]).then(__webpack_require__.bind(__webpack_require__,85604))),276:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(7460)]).then(__webpack_require__.bind(__webpack_require__,86962))),277:$e.lazy(()=>__webpack_require__.e(9716).then(__webpack_require__.bind(__webpack_require__,98897))),278:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6913)]).then(__webpack_require__.bind(__webpack_require__,90605))),279:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6913)]).then(__webpack_require__.bind(__webpack_require__,90605))),280:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),281:$e.lazy(()=>__webpack_require__.e(3006).then(__webpack_require__.bind(__webpack_require__,28485))),282:$e.lazy(()=>__webpack_require__.e(2045).then(__webpack_require__.bind(__webpack_require__,95677))),283:$e.lazy(()=>__webpack_require__.e(1520).then(__webpack_require__.bind(__webpack_require__,97648))),284:$e.lazy(()=>__webpack_require__.e(9649).then(__webpack_require__.bind(__webpack_require__,5188))),285:$e.lazy(()=>__webpack_require__.e(4546).then(__webpack_require__.bind(__webpack_require__,7264))),286:$e.lazy(()=>__webpack_require__.e(5357).then(__webpack_require__.bind(__webpack_require__,10598))),287:$e.lazy(()=>__webpack_require__.e(8665).then(__webpack_require__.bind(__webpack_require__,4255))),288:$e.lazy(()=>__webpack_require__.e(3183).then(__webpack_require__.bind(__webpack_require__,7602))),289:$e.lazy(()=>__webpack_require__.e(4800).then(__webpack_require__.bind(__webpack_require__,81255))),290:$e.lazy(()=>__webpack_require__.e(9489).then(__webpack_require__.bind(__webpack_require__,45980))),291:$e.lazy(()=>__webpack_require__.e(9391).then(__webpack_require__.bind(__webpack_require__,22715))),292:$e.lazy(()=>__webpack_require__.e(5335).then(__webpack_require__.bind(__webpack_require__,80931))),293:$e.lazy(()=>__webpack_require__.e(2823).then(__webpack_require__.bind(__webpack_require__,8453))),294:$e.lazy(()=>__webpack_require__.e(4973).then(__webpack_require__.bind(__webpack_require__,5266))),295:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6651)]).then(__webpack_require__.bind(__webpack_require__,24242))),296:$e.lazy(()=>__webpack_require__.e(6741).then(__webpack_require__.bind(__webpack_require__,55006))),297:$e.lazy(()=>__webpack_require__.e(5775).then(__webpack_require__.bind(__webpack_require__,14206))),298:$e.lazy(()=>__webpack_require__.e(2548).then(__webpack_require__.bind(__webpack_require__,63586))),299:$e.lazy(()=>__webpack_require__.e(9176).then(__webpack_require__.bind(__webpack_require__,29176))),300:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),301:$e.lazy(()=>__webpack_require__.e(6634).then(__webpack_require__.bind(__webpack_require__,11018))),302:$e.lazy(()=>__webpack_require__.e(680).then(__webpack_require__.bind(__webpack_require__,89085))),303:$e.lazy(()=>__webpack_require__.e(6366).then(__webpack_require__.bind(__webpack_require__,41326))),304:$e.lazy(()=>__webpack_require__.e(6452).then(__webpack_require__.bind(__webpack_require__,93513))),305:$e.lazy(()=>__webpack_require__.e(1070).then(__webpack_require__.bind(__webpack_require__,71432))),306:$e.lazy(()=>__webpack_require__.e(7242).then(__webpack_require__.bind(__webpack_require__,92450))),307:$e.lazy(()=>__webpack_require__.e(2707).then(__webpack_require__.bind(__webpack_require__,18245))),308:$e.lazy(()=>__webpack_require__.e(2865).then(__webpack_require__.bind(__webpack_require__,34644))),309:$e.lazy(()=>__webpack_require__.e(6784).then(__webpack_require__.bind(__webpack_require__,58871))),310:$e.lazy(()=>__webpack_require__.e(6784).then(__webpack_require__.bind(__webpack_require__,58871))),311:$e.lazy(()=>__webpack_require__.e(3141).then(__webpack_require__.bind(__webpack_require__,87110))),312:$e.lazy(()=>__webpack_require__.e(9176).then(__webpack_require__.bind(__webpack_require__,29176))),313:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(1003),__webpack_require__.e(7289)]).then(__webpack_require__.bind(__webpack_require__,42984))),314:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1003),__webpack_require__.e(700)]).then(__webpack_require__.bind(__webpack_require__,43512))),315:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(1003),__webpack_require__.e(7289)]).then(__webpack_require__.bind(__webpack_require__,42984))),316:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1003),__webpack_require__.e(700)]).then(__webpack_require__.bind(__webpack_require__,43512))),317:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(1003),__webpack_require__.e(7289)]).then(__webpack_require__.bind(__webpack_require__,42984))),318:$e.lazy(()=>__webpack_require__.e(9176).then(__webpack_require__.bind(__webpack_require__,29176))),319:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(7527)]).then(__webpack_require__.bind(__webpack_require__,36190))),320:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6270)]).then(__webpack_require__.bind(__webpack_require__,41092))),321:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),322:$e.lazy(()=>__webpack_require__.e(547).then(__webpack_require__.bind(__webpack_require__,23632))),323:$e.lazy(()=>__webpack_require__.e(9788).then(__webpack_require__.bind(__webpack_require__,58921))),324:$e.lazy(()=>__webpack_require__.e(576).then(__webpack_require__.bind(__webpack_require__,17553))),325:$e.lazy(()=>__webpack_require__.e(7260).then(__webpack_require__.bind(__webpack_require__,80465))),326:$e.lazy(()=>__webpack_require__.e(4520).then(__webpack_require__.bind(__webpack_require__,6055))),327:$e.lazy(()=>__webpack_require__.e(9076).then(__webpack_require__.bind(__webpack_require__,16643))),328:$e.lazy(()=>__webpack_require__.e(4514).then(__webpack_require__.bind(__webpack_require__,29331))),329:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),330:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(928)]).then(__webpack_require__.bind(__webpack_require__,10178))),331:$e.lazy(()=>__webpack_require__.e(1006).then(__webpack_require__.bind(__webpack_require__,43814))),332:$e.lazy(()=>__webpack_require__.e(1006).then(__webpack_require__.bind(__webpack_require__,43814))),333:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),334:$e.lazy(()=>__webpack_require__.e(1939).then(__webpack_require__.bind(__webpack_require__,58114))),335:$e.lazy(()=>__webpack_require__.e(556).then(__webpack_require__.bind(__webpack_require__,39661))),336:$e.lazy(()=>__webpack_require__.e(6434).then(__webpack_require__.bind(__webpack_require__,9505))),337:$e.lazy(()=>__webpack_require__.e(1880).then(__webpack_require__.bind(__webpack_require__,72085))),338:$e.lazy(()=>__webpack_require__.e(8237).then(__webpack_require__.bind(__webpack_require__,20792))),339:$e.lazy(()=>__webpack_require__.e(3447).then(__webpack_require__.bind(__webpack_require__,61622))),340:$e.lazy(()=>__webpack_require__.e(264).then(__webpack_require__.bind(__webpack_require__,62463))),341:$e.lazy(()=>__webpack_require__.e(4259).then(__webpack_require__.bind(__webpack_require__,69399))),342:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),343:$e.lazy(()=>__webpack_require__.e(4078).then(__webpack_require__.bind(__webpack_require__,38607))),344:$e.lazy(()=>__webpack_require__.e(2829).then(__webpack_require__.bind(__webpack_require__,12279))),345:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5359)]).then(__webpack_require__.bind(__webpack_require__,74607))),346:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),347:$e.lazy(()=>__webpack_require__.e(559).then(__webpack_require__.bind(__webpack_require__,61234))),348:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,54758))),349:$e.lazy(()=>__webpack_require__.e(4757).then(__webpack_require__.bind(__webpack_require__,30383))),350:$e.lazy(()=>__webpack_require__.e(1783).then(__webpack_require__.bind(__webpack_require__,52679))),351:$e.lazy(()=>__webpack_require__.e(7477).then(__webpack_require__.bind(__webpack_require__,13747))),352:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,85132))),353:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,85132))),354:$e.lazy(()=>__webpack_require__.e(6796).then(__webpack_require__.bind(__webpack_require__,89567))),355:$e.lazy(()=>__webpack_require__.e(4504).then(__webpack_require__.bind(__webpack_require__,57445))),356:$e.lazy(()=>__webpack_require__.e(7058).then(__webpack_require__.bind(__webpack_require__,81771))),357:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8447)]).then(__webpack_require__.bind(__webpack_require__,34341))),358:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,16807))),359:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,16807))),360:$e.lazy(()=>__webpack_require__.e(5238).then(__webpack_require__.bind(__webpack_require__,52280))),361:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4715)]).then(__webpack_require__.bind(__webpack_require__,34322))),362:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3873)]).then(__webpack_require__.bind(__webpack_require__,25402))),363:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,2121))),364:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,2121))),365:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6265)]).then(__webpack_require__.bind(__webpack_require__,5751))),366:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,70210))),367:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,70210))),368:$e.lazy(()=>__webpack_require__.e(1713).then(__webpack_require__.bind(__webpack_require__,16214))),369:$e.lazy(()=>__webpack_require__.e(5891).then(__webpack_require__.bind(__webpack_require__,23096))),370:$e.lazy(()=>__webpack_require__.e(8398).then(__webpack_require__.bind(__webpack_require__,24597))),371:$e.lazy(()=>__webpack_require__.e(8241).then(__webpack_require__.bind(__webpack_require__,67851))),372:$e.lazy(()=>__webpack_require__.e(2339).then(__webpack_require__.bind(__webpack_require__,22842))),373:$e.lazy(()=>__webpack_require__.e(7589).then(__webpack_require__.bind(__webpack_require__,48521))),374:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,54758))),375:$e.lazy(()=>__webpack_require__.e(5705).then(__webpack_require__.bind(__webpack_require__,12974))),376:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),377:$e.lazy(()=>__webpack_require__.e(559).then(__webpack_require__.bind(__webpack_require__,61234))),378:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,54758))),379:$e.lazy(()=>__webpack_require__.e(4757).then(__webpack_require__.bind(__webpack_require__,30383))),380:$e.lazy(()=>__webpack_require__.e(1783).then(__webpack_require__.bind(__webpack_require__,52679))),381:$e.lazy(()=>__webpack_require__.e(7477).then(__webpack_require__.bind(__webpack_require__,13747))),382:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,85132))),383:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,85132))),384:$e.lazy(()=>__webpack_require__.e(6796).then(__webpack_require__.bind(__webpack_require__,89567))),385:$e.lazy(()=>__webpack_require__.e(4504).then(__webpack_require__.bind(__webpack_require__,57445))),386:$e.lazy(()=>__webpack_require__.e(7058).then(__webpack_require__.bind(__webpack_require__,81771))),387:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8447)]).then(__webpack_require__.bind(__webpack_require__,34341))),388:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,16807))),389:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,16807))),390:$e.lazy(()=>__webpack_require__.e(5238).then(__webpack_require__.bind(__webpack_require__,52280))),391:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4715)]).then(__webpack_require__.bind(__webpack_require__,34322))),392:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3873)]).then(__webpack_require__.bind(__webpack_require__,25402))),393:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,2121))),394:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,2121))),395:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6265)]).then(__webpack_require__.bind(__webpack_require__,5751))),396:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,70210))),397:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,70210))),398:$e.lazy(()=>__webpack_require__.e(1713).then(__webpack_require__.bind(__webpack_require__,16214))),399:$e.lazy(()=>__webpack_require__.e(5891).then(__webpack_require__.bind(__webpack_require__,23096))),400:$e.lazy(()=>__webpack_require__.e(8398).then(__webpack_require__.bind(__webpack_require__,24597))),401:$e.lazy(()=>__webpack_require__.e(8241).then(__webpack_require__.bind(__webpack_require__,67851))),402:$e.lazy(()=>__webpack_require__.e(2339).then(__webpack_require__.bind(__webpack_require__,22842))),403:$e.lazy(()=>__webpack_require__.e(7589).then(__webpack_require__.bind(__webpack_require__,48521))),404:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,54758))),405:$e.lazy(()=>__webpack_require__.e(5705).then(__webpack_require__.bind(__webpack_require__,12974))),406:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),407:$e.lazy(()=>__webpack_require__.e(4766).then(__webpack_require__.bind(__webpack_require__,93514))),408:$e.lazy(()=>__webpack_require__.e(7560).then(__webpack_require__.bind(__webpack_require__,88773))),409:$e.lazy(()=>__webpack_require__.e(6029).then(__webpack_require__.bind(__webpack_require__,9744))),410:$e.lazy(()=>__webpack_require__.e(5179).then(__webpack_require__.bind(__webpack_require__,8091))),411:$e.lazy(()=>__webpack_require__.e(4621).then(__webpack_require__.bind(__webpack_require__,90493))),412:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),413:$e.lazy(()=>__webpack_require__.e(1831).then(__webpack_require__.bind(__webpack_require__,67080))),414:$e.lazy(()=>__webpack_require__.e(2539).then(__webpack_require__.bind(__webpack_require__,36801))),415:$e.lazy(()=>__webpack_require__.e(8143).then(__webpack_require__.bind(__webpack_require__,69756))),416:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5624)]).then(__webpack_require__.bind(__webpack_require__,29586))),417:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1461)]).then(__webpack_require__.bind(__webpack_require__,73823))),418:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4492)]).then(__webpack_require__.bind(__webpack_require__,93147))),419:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(9416)]).then(__webpack_require__.bind(__webpack_require__,76919))),420:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,99929))),421:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,99929))),422:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,99929))),423:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,99929))),424:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,99929))),425:$e.lazy(()=>__webpack_require__.e(5022).then(__webpack_require__.bind(__webpack_require__,11556))),426:$e.lazy(()=>__webpack_require__.e(6063).then(__webpack_require__.bind(__webpack_require__,76736))),427:$e.lazy(()=>__webpack_require__.e(6063).then(__webpack_require__.bind(__webpack_require__,76736))),428:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(7545)]).then(__webpack_require__.bind(__webpack_require__,34965))),429:$e.lazy(()=>__webpack_require__.e(1253).then(__webpack_require__.bind(__webpack_require__,52896))),430:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),431:$e.lazy(()=>__webpack_require__.e(2216).then(__webpack_require__.bind(__webpack_require__,18562))),432:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5382)]).then(__webpack_require__.bind(__webpack_require__,10019))),433:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),434:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(8823)]).then(__webpack_require__.bind(__webpack_require__,24971))),435:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5915)]).then(__webpack_require__.bind(__webpack_require__,62125))),436:$e.lazy(()=>__webpack_require__.e(1077).then(__webpack_require__.bind(__webpack_require__,59174))),437:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),438:$e.lazy(()=>__webpack_require__.e(570).then(__webpack_require__.bind(__webpack_require__,79595))),439:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),440:$e.lazy(()=>__webpack_require__.e(8365).then(__webpack_require__.bind(__webpack_require__,80633))),441:$e.lazy(()=>__webpack_require__.e(6788).then(__webpack_require__.bind(__webpack_require__,81717))),442:$e.lazy(()=>__webpack_require__.e(4058).then(__webpack_require__.bind(__webpack_require__,46289))),443:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),444:$e.lazy(()=>__webpack_require__.e(4056).then(__webpack_require__.bind(__webpack_require__,12990))),445:$e.lazy(()=>__webpack_require__.e(9487).then(__webpack_require__.bind(__webpack_require__,85911))),446:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),447:$e.lazy(()=>__webpack_require__.e(532).then(__webpack_require__.bind(__webpack_require__,41826))),448:$e.lazy(()=>__webpack_require__.e(7178).then(__webpack_require__.bind(__webpack_require__,37954))),449:$e.lazy(()=>__webpack_require__.e(1660).then(__webpack_require__.bind(__webpack_require__,77780))),450:$e.lazy(()=>__webpack_require__.e(7333).then(__webpack_require__.bind(__webpack_require__,18699))),451:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4227)]).then(__webpack_require__.bind(__webpack_require__,56676))),452:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8155)]).then(__webpack_require__.bind(__webpack_require__,46989))),453:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5186)]).then(__webpack_require__.bind(__webpack_require__,79811))),454:$e.lazy(()=>__webpack_require__.e(5786).then(__webpack_require__.bind(__webpack_require__,96587))),455:$e.lazy(()=>__webpack_require__.e(9366).then(__webpack_require__.bind(__webpack_require__,47609))),456:$e.lazy(()=>__webpack_require__.e(5972).then(__webpack_require__.bind(__webpack_require__,88229))),457:$e.lazy(()=>__webpack_require__.e(9366).then(__webpack_require__.bind(__webpack_require__,47609))),458:$e.lazy(()=>__webpack_require__.e(1470).then(__webpack_require__.bind(__webpack_require__,73797))),459:$e.lazy(()=>__webpack_require__.e(7182).then(__webpack_require__.bind(__webpack_require__,63207))),460:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),461:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2476)]).then(__webpack_require__.bind(__webpack_require__,79229))),462:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),463:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5729)]).then(__webpack_require__.bind(__webpack_require__,93188))),464:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),465:$e.lazy(()=>__webpack_require__.e(6444).then(__webpack_require__.bind(__webpack_require__,74843))),466:$e.lazy(()=>__webpack_require__.e(5111).then(__webpack_require__.bind(__webpack_require__,38550))),467:$e.lazy(()=>__webpack_require__.e(2307).then(__webpack_require__.bind(__webpack_require__,97437))),468:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7224)]).then(__webpack_require__.bind(__webpack_require__,83180))),469:$e.lazy(()=>__webpack_require__.e(5823).then(__webpack_require__.bind(__webpack_require__,68984))),470:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4944)]).then(__webpack_require__.bind(__webpack_require__,27707))),471:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),472:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9875),__webpack_require__.e(8866)]).then(__webpack_require__.bind(__webpack_require__,84659))),473:$e.lazy(()=>__webpack_require__.e(2300).then(__webpack_require__.bind(__webpack_require__,3233))),474:$e.lazy(()=>__webpack_require__.e(2501).then(__webpack_require__.bind(__webpack_require__,89493))),475:$e.lazy(()=>__webpack_require__.e(3212).then(__webpack_require__.bind(__webpack_require__,78400))),476:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6904)]).then(__webpack_require__.bind(__webpack_require__,17206))),477:$e.lazy(()=>__webpack_require__.e(1855).then(__webpack_require__.bind(__webpack_require__,39914))),478:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6904)]).then(__webpack_require__.bind(__webpack_require__,17206))),479:$e.lazy(()=>__webpack_require__.e(1276).then(__webpack_require__.bind(__webpack_require__,99524))),480:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,80177))),481:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,80177))),482:$e.lazy(()=>__webpack_require__.e(3784).then(__webpack_require__.bind(__webpack_require__,82657))),483:$e.lazy(()=>__webpack_require__.e(3862).then(__webpack_require__.bind(__webpack_require__,18700))),484:$e.lazy(()=>__webpack_require__.e(4565).then(__webpack_require__.bind(__webpack_require__,58144))),485:$e.lazy(()=>__webpack_require__.e(6531).then(__webpack_require__.bind(__webpack_require__,5914))),486:$e.lazy(()=>__webpack_require__.e(6170).then(__webpack_require__.bind(__webpack_require__,6448))),487:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,67501))),488:$e.lazy(()=>__webpack_require__.e(1836).then(__webpack_require__.bind(__webpack_require__,52600))),489:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2450),__webpack_require__.e(8435)]).then(__webpack_require__.bind(__webpack_require__,23077))),490:$e.lazy(()=>__webpack_require__.e(3509).then(__webpack_require__.bind(__webpack_require__,61657))),491:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,67501))),492:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,67501))),493:$e.lazy(()=>__webpack_require__.e(6034).then(__webpack_require__.bind(__webpack_require__,75435))),494:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8999)]).then(__webpack_require__.bind(__webpack_require__,65007))),495:$e.lazy(()=>__webpack_require__.e(3910).then(__webpack_require__.bind(__webpack_require__,37787))),496:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(67)]).then(__webpack_require__.bind(__webpack_require__,65120))),497:$e.lazy(()=>__webpack_require__.e(6531).then(__webpack_require__.bind(__webpack_require__,5914))),"@@/global-layout":$e.lazy(()=>__webpack_require__.e(1717).then(__webpack_require__.bind(__webpack_require__,79196)))}}})}var P=__webpack_require__(51579),O=__webpack_require__(93869),L=__webpack_require__(71418),ve=__webpack_require__(98450),ke=()=>$e.createElement(L.Z,{size:"middle",className:ve.Z.loading}),dn=__webpack_require__(90115),Pn=__webpack_require__(66649),hn=__webpack_require__.n(Pn),Fi=__webpack_require__(91392),cs=__webpack_require__.n(Fi),Ka=__webpack_require__(73100),Wo=__webpack_require__.n(Ka),ns=__webpack_require__(14805),Ao=__webpack_require__.n(ns),Us=__webpack_require__(13477),tf=__webpack_require__.n(Us),ql=__webpack_require__(64796),Fc=__webpack_require__.n(ql),rf=__webpack_require__(9007),Vu=__webpack_require__.n(rf),Si=__webpack_require__(58626),Sl=__webpack_require__.n(Si),Bc=__webpack_require__(9084),nu=__webpack_require__.n(Bc),co=__webpack_require__(5116),_s=__webpack_require__.n(co),_l=__webpack_require__(50991),Jl=__webpack_require__.n(_l),gl=__webpack_require__(39050),Ll=__webpack_require__.n(gl),Al=__webpack_require__(1554),wf=__webpack_require__.n(Al),ku=__webpack_require__(59697),Ml=__webpack_require__.n(ku);hn().extend(Wo()),hn().extend(Ao()),hn().extend(tf()),hn().extend(Fc()),hn().extend(Vu()),hn().extend(Sl()),hn().extend(nu()),hn().extend(_s()),hn().extend(Jl()),hn().extend(Ll()),hn().extend(wf()),hn().extend(Ml()),hn().extend(cs());var nf=Object.defineProperty,Fl=Object.getOwnPropertySymbols,Ef=Object.prototype.hasOwnProperty,Ru=Object.prototype.propertyIsEnumerable,Cl=(Fn,ti,Xi)=>ti in Fn?nf(Fn,ti,{enumerable:!0,configurable:!0,writable:!0,value:Xi}):Fn[ti]=Xi,ec=(Fn,ti)=>{for(var Xi in ti||(ti={}))Ef.call(ti,Xi)&&Cl(Fn,Xi,ti[Xi]);if(Fl)for(var Xi of Fl(ti))Ru.call(ti,Xi)&&Cl(Fn,Xi,ti[Xi]);return Fn},Nc=(Fn,ti,Xi)=>new Promise((Ba,la)=>{var Ea=ca=>{try{Ds(Xi.next(ca))}catch(Ms){la(Ms)}},ya=ca=>{try{Ds(Xi.throw(ca))}catch(Ms){la(Ms)}},Ds=ca=>ca.done?Ba(ca.value):Promise.resolve(ca.value).then(Ea,ya);Ds((Xi=Xi.apply(Fn,ti)).next())});const ju="/react/build/",xu=!1;function wu(){return Nc(this,null,function*(){const Fn=(0,P.gD)(),{routes:ti,routeComponents:Xi}=yield xf(Fn);yield Fn.applyPlugins({key:"patchRoutes",type:dn.ApplyPluginsType.event,args:{routes:ti,routeComponents:Xi}});const Ba=Fn.applyPlugins({key:"modifyContextOpts",type:dn.ApplyPluginsType.modify,initialValue:{}}),la=Ba.basename||"/",Ea=Ba.historyType||"browser",ya=(0,O.fi)(ec({type:Ea,basename:la},Ba.historyOpts));return Fn.applyPlugins({key:"render",type:dn.ApplyPluginsType.compose,initialValue(){const Ds={useStream:!0,routes:ti,routeComponents:Xi,pluginManager:Fn,mountElementId:"root",rootElement:Ba.rootElement||document.getElementById("root"),loadingComponent:ke,publicPath:ju,runtimePublicPath:xu,history:ya,historyType:Ea,basename:la,__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{pureApp:!1,pureHtml:!1},callback:Ba.callback},ca=Fn.applyPlugins({key:"modifyClientRenderOpts",type:dn.ApplyPluginsType.modify,initialValue:Ds});return Lc(ca)}})()})}wu(),typeof window!="undefined"&&(window.g_umi={version:"4.6.7"})})()})(); +(`+a+": "+x+")",o.name="ChunkLoadError",o.type=a,o.request=x,l[1](o)}};__webpack_require__.l(f,h,"chunk-"+r,r)}};var _=function(r,i){var l=i[0],c=i[1],f=i[2],o,h,u=0;if(l.some(function(x){return d[x]!==0})){for(o in c)__webpack_require__.o(c,o)&&(__webpack_require__.m[o]=c[o]);if(f)var a=f(__webpack_require__)}for(r&&r(i);u0&&arguments[0]!==void 0?arguments[0]:"";return Fn.endsWith("/")?Fn:"".concat(Fn,"/")}var fc=__webpack_require__(38127),dc=__webpack_require__(38329),rl=__webpack_require__(8616),nl=["content"],Ou=["content"],yf=/^(http:|https:)?\/\//;function hc(Fn){return yf.test(Fn)||Fn.startsWith("/")&&!Fn.startsWith("/*")||Fn.startsWith("./")||Fn.startsWith("../")}var bu=function(){return $e.createElement("noscript",{dangerouslySetInnerHTML:{__html:"Enable JavaScript to run this app."}})},vl=function(ti){var Xi,Ba=ti.loaderData,la=ti.htmlPageOpts,Ea=ti.manifest,ya=(Ea==null||(Xi=Ea.assets)===null||Xi===void 0?void 0:Xi["umi.css"])||"";return $e.createElement("script",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:"window.__UMI_LOADER_DATA__ = ".concat(JSON.stringify(Ba||{}),"; window.__UMI_METADATA_LOADER_DATA__ = ").concat(JSON.stringify(la||{}),"; window.__UMI_BUILD_ClIENT_CSS__ = '").concat(ya,"'")}})};function Du(Fn){var ti=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof Fn=="string")return hc(Fn)?(0,vo.Z)({src:Fn},ti):{content:Fn};if((0,rl.Z)(Fn)==="object")return(0,vo.Z)((0,vo.Z)({},Fn),ti);throw new Error("Invalid script type: ".concat((0,rl.Z)(Fn)))}function zf(Fn){return hc(Fn)?{type:"link",href:Fn}:{type:"style",content:Fn}}var Jc=function(ti){var Xi,Ba,la,Ea,ya,Ds,ca=ti.htmlPageOpts;return $e.createElement($e.Fragment,null,(ca==null?void 0:ca.title)&&$e.createElement("title",null,ca.title),ca==null||(Xi=ca.favicons)===null||Xi===void 0?void 0:Xi.map(function(Ms,Yu){return $e.createElement("link",{key:Yu,rel:"shortcut icon",href:Ms})}),(ca==null?void 0:ca.description)&&$e.createElement("meta",{name:"description",content:ca.description}),(ca==null||(Ba=ca.keywords)===null||Ba===void 0?void 0:Ba.length)&&$e.createElement("meta",{name:"keywords",content:ca.keywords.join(",")}),ca==null||(la=ca.metas)===null||la===void 0?void 0:la.map(function(Ms){return $e.createElement("meta",{key:Ms.name,name:Ms.name,content:Ms.content})}),ca==null||(Ea=ca.links)===null||Ea===void 0?void 0:Ea.map(function(Ms,Yu){return $e.createElement("link",(0,dc.Z)({key:Yu},Ms))}),ca==null||(ya=ca.styles)===null||ya===void 0?void 0:ya.map(function(Ms,Yu){var al=zf(Ms),yl=al.type,Xu=al.href,Bl=al.content;if(yl==="link")return $e.createElement("link",{key:Yu,rel:"stylesheet",href:Xu});if(yl==="style")return $e.createElement("style",{key:Yu},Bl)}),ca==null||(Ds=ca.headScripts)===null||Ds===void 0?void 0:Ds.map(function(Ms,Yu){var al=Du(Ms),yl=al.content,Xu=(0,fc.Z)(al,nl);return $e.createElement("script",(0,dc.Z)({dangerouslySetInnerHTML:{__html:yl},key:Yu},Xu))}))};function Zo(Fn){var ti,Xi=Fn.children,Ba=Fn.loaderData,la=Fn.manifest,Ea=Fn.htmlPageOpts,ya=Fn.__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ds=Fn.mountElementId;if(ya!=null&&ya.pureHtml)return $e.createElement("html",null,$e.createElement("head",null,$e.createElement(Jc,{htmlPageOpts:Ea})),$e.createElement("body",null,$e.createElement(bu,null),$e.createElement("div",{id:Ds},Xi),$e.createElement(vl,{manifest:la,loaderData:Ba,htmlPageOpts:Ea})));if(ya!=null&&ya.pureApp)return $e.createElement($e.Fragment,null,Xi);var ca=typeof window=="undefined"?la==null?void 0:la.assets["umi.css"]:window.__UMI_BUILD_ClIENT_CSS__;return $e.createElement("html",{suppressHydrationWarning:!0,lang:(Ea==null?void 0:Ea.lang)||"en"},$e.createElement("head",null,$e.createElement("meta",{charSet:"utf-8"}),$e.createElement("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),ca&&$e.createElement("link",{suppressHydrationWarning:!0,rel:"stylesheet",href:ca}),$e.createElement(Jc,{htmlPageOpts:Ea})),$e.createElement("body",null,$e.createElement(bu,null),$e.createElement("div",{id:Ds},Xi),$e.createElement(vl,{manifest:la,loaderData:Ba,htmlPageOpts:Ea}),Ea==null||(ti=Ea.scripts)===null||ti===void 0?void 0:ti.map(function(Ms,Yu){var al=Du(Ms),yl=al.content,Xu=(0,fc.Z)(al,Ou);return $e.createElement("script",(0,dc.Z)({dangerouslySetInnerHTML:{__html:yl},key:Yu},Xu))})))}var Rl=$e.createContext(void 0);function kc(){return $e.useContext(Rl)}var pc=["redirect"];function mc(Fn){var ti=Fn.routesById,Xi=Fn.parentId,Ba=Fn.routeComponents,la=Fn.useStream,Ea=la===void 0?!0:la;return Object.keys(ti).filter(function(ya){return ti[ya].parentId===Xi}).map(function(ya){var Ds=_c((0,vo.Z)((0,vo.Z)({route:ti[ya],routeComponent:Ba[ya],loadingComponent:Fn.loadingComponent,reactRouter5Compat:Fn.reactRouter5Compat},Fn.reactRouter5Compat&&{hasChildren:Object.keys(ti).filter(function(Ms){return ti[Ms].parentId===ya}).length>0}),{},{useStream:Ea})),ca=mc({routesById:ti,routeComponents:Ba,parentId:Ds.id,loadingComponent:Fn.loadingComponent,reactRouter5Compat:Fn.reactRouter5Compat,useStream:Ea});return ca.length>0&&(Ds.children=ca,Ds.routes=ca),Ds})}function vc(Fn){var ti=(0,yu.UO)(),Xi=(0,yu.Gn)(Fn.to,ti),Ba=(0,cc.T$)(),la=(0,yu.TH)();if(Ba!=null&&Ba.keepQuery){var Ea=la.search+la.hash;Xi+=Ea}var ya=(0,vo.Z)((0,vo.Z)({},Fn),{},{to:Xi});return $e.createElement(yu.Fg,(0,dc.Z)({replace:!0},ya))}function _c(Fn){var ti=Fn.route,Xi=Fn.useStream,Ba=Xi===void 0?!0:Xi,la=ti.redirect,Ea=(0,fc.Z)(ti,pc),ya=Fn.reactRouter5Compat?Rc:Xl;return(0,vo.Z)({element:la?$e.createElement(vc,{to:la}):$e.createElement(Rl.Provider,{value:{route:Fn.route}},$e.createElement(ya,{loader:$e.memo(Fn.routeComponent),loadingComponent:Fn.loadingComponent||Rf,hasChildren:Fn.hasChildren,useStream:Ba}))},Ea)}function Rf(){return $e.createElement("div",null)}function Rc(Fn){var ti=kc(),Xi=ti.route,Ba=(0,cc.Ov)(),la=Ba.history,Ea=Ba.clientRoutes,ya=(0,yu.UO)(),Ds={params:ya,isExact:!0,path:Xi.path,url:la.location.pathname},ca=Fn.loader,Ms={location:la.location,match:Ds,history:la,params:ya,route:Xi,routes:Ea};return Fn.useStream?$e.createElement($e.Suspense,{fallback:$e.createElement(Fn.loadingComponent,null)},$e.createElement(ca,Ms,Fn.hasChildren&&$e.createElement(yu.j3,null))):$e.createElement(ca,Ms,Fn.hasChildren&&$e.createElement(yu.j3,null))}function Xl(Fn){var ti=Fn.loader;return Fn.useStream?$e.createElement($e.Suspense,{fallback:$e.createElement(Fn.loadingComponent,null)},$e.createElement(ti,null)):$e.createElement(ti,null)}var Ql=null;function bf(){return Ql}function ef(Fn){var ti=Fn.history,Xi=$e.useState({action:ti.action,location:ti.location}),Ba=(0,Iu.Z)(Xi,2),la=Ba[0],Ea=Ba[1];return(0,$e.useLayoutEffect)(function(){return ti.listen(Ea)},[ti]),(0,$e.useLayoutEffect)(function(){function ya(Ds){Fn.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:Fn.routes,clientRoutes:Fn.clientRoutes,location:Ds.location,action:Ds.action,basename:Fn.basename,isFirst:!!Ds.isFirst}})}return ya({location:la.location,action:la.action,isFirst:!0}),ti.listen(ya)},[ti,Fn.routes,Fn.clientRoutes]),$e.createElement(yu.F0,{navigator:ti,location:la.location,basename:Fn.basename},Fn.children)}function il(){var Fn=(0,cc.Ov)(),ti=Fn.clientRoutes;return(0,yu.V$)(ti)}var gc=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],yc=function(ti,Xi){var Ba=ti.basename||"/",la=mc({routesById:ti.routes,routeComponents:ti.routeComponents,loadingComponent:ti.loadingComponent,reactRouter5Compat:ti.reactRouter5Compat,useStream:ti.useStream});ti.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:la}});for(var Ea=$e.createElement(ef,{basename:Ba,pluginManager:ti.pluginManager,routes:ti.routes,clientRoutes:la,history:ti.history},Xi),ya=0,Ds=gc;yanew Promise((Ba,la)=>{var Ea=ca=>{try{Ds(Xi.next(ca))}catch(Ms){la(Ms)}},ya=ca=>{try{Ds(Xi.throw(ca))}catch(Ms){la(Ms)}},Ds=ca=>ca.done?Ba(ca.value):Promise.resolve(ca.value).then(Ea,ya);Ds((Xi=Xi.apply(Fn,ti)).next())});function xf(){return Mc(this,null,function*(){return{routes:{1:{path:"/",parentId:"@@/global-layout",id:"1"},2:{path:"/paperlibrary",parentId:"1",id:"2"},3:{path:"/paperlibrary",parentId:"2",id:"3"},4:{path:"/paperlibrary/add",parentId:"2",id:"4"},5:{path:"/paperlibrary/add/:id",parentId:"2",id:"5"},6:{path:"/paperlibrary/see/:id",parentId:"2",id:"6"},7:{path:"/paperlibrary/edit_select/:id",parentId:"2",id:"7"},8:{path:"/paperlibrary/exchangequestion",parentId:"2",id:"8"},9:{path:"/paths",parentId:"1",id:"9"},10:{path:"/paths",parentId:"9",id:"10"},11:{path:"/paths/higherVocationalEducation",parentId:"9",id:"11"},12:{path:"/paths/new",parentId:"9",id:"12"},13:{path:"/paths/guidance",exact:!0,parentId:"9",id:"13"},14:{path:"/paths/:pathId",parentId:"9",id:"14"},15:{path:"/paths/:pathId/statistics",parentId:"9",id:"15"},16:{path:"/paths/:pathId/edit",parentId:"9",id:"16"},17:{path:"/paths/:pathId/:stageId/program_homework/:categoryId/add",parentId:"9",id:"17"},18:{path:"/paths/:pathId/:stageId/program_homework/:categoryId/edit",parentId:"9",id:"18"},19:{path:"/classrooms",parentId:"1",id:"19"},20:{path:"/classrooms",parentId:"19",id:"20"},21:{path:"/classrooms/examList",parentId:"19",id:"21"},22:{path:"/classrooms/classicCases",parentId:"19",id:"22"},23:{path:"/classrooms/index",parentId:"19",id:"23"},24:{path:"/classrooms/new",parentId:"19",id:"24"},25:{path:"/classrooms/:coursesId/edit",parentId:"19",id:"25"},26:{path:"/classrooms/news/:subjectid/newgold/:id",parentId:"19",id:"26"},27:{path:"/classrooms/:coursesId/newgolds/settings",parentId:"19",id:"27"},28:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/review_detail/:userId",parentId:"19",id:"28"},29:{path:"/classrooms/:coursesId/common_homework/:categoryId/review_detail/:userId",parentId:"19",id:"29"},30:{path:"/classrooms/:coursesId/program_homework/:categoryId/review_detail/:userId",parentId:"19",id:"30"},31:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/detail",parentId:"19",id:"31"},32:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/:homeworkId/comment",parentId:"19",id:"32"},33:{path:"/classrooms/:coursesId/common_homework/:categoryId/:homeworkId/comment",parentId:"19",id:"33"},34:{path:"/classrooms/:coursesId/shixun_homework/:categoryId/:homeworkId/commitsummary",parentId:"19",id:"34"},35:{path:"/classrooms/:coursesId/group_homework/:categoryId/detail",parentId:"19",id:"35"},36:{path:"/classrooms/:coursesId/common_homework/:categoryId/detail",parentId:"19",id:"36"},37:{path:"/classrooms/:coursesId/common_homework/:categoryId/review/:userId",parentId:"19",id:"37"},38:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/review/:userId",parentId:"19",id:"38"},39:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/post",parentId:"19",id:"39"},40:{path:"/classrooms/:coursesId/group_homework/:commonHomeworkId/:homeworkId/edit",parentId:"19",id:"40"},41:{path:"/classrooms/:coursesId/exercise/:categoryId/detail/:userId/review_detail",parentId:"19",id:"41"},42:{path:"/classrooms/:coursesId/exercise/:categoryId/detail",parentId:"19",id:"42"},43:{path:"/classrooms/:coursesId/exercise/:categoryId/preview_select",parentId:"19",id:"43"},44:{path:"/classrooms/:coursesId/exercise/:categoryId/:login/initate_answer",parentId:"19",id:"44"},45:{path:"/classrooms/:coursesId/exercise/:categoryId/users/:login",parentId:"19",id:"45"},46:{path:"/classrooms/:coursesId/exercise/:categoryId/wrongAnswer/:login",parentId:"19",id:"46"},47:{path:"/classrooms/:coursesId/exercisenotice/:categoryId/users/:login",parentId:"19",id:"47"},48:{path:"/classrooms/:coursesId/exercise/:categoryId/random/edit",parentId:"19",id:"48"},49:{path:"/classrooms/:coursesId/exercise/:categoryId/random/preview",parentId:"19",id:"49"},50:{path:"/classrooms/:coursesId/exercise/add",parentId:"19",id:"50"},51:{path:"/classrooms/:coursesId/exercise/add/:exerciseId",parentId:"19",id:"51"},52:{path:"/classrooms/:coursesId/exercise/:exerciseId/reviews/group",parentId:"19",id:"52"},53:{path:"/classrooms/:coursesId/exercise/:exerciseId/review/:userId",parentId:"19",id:"53"},54:{path:"/classrooms/:coursesId/exercise/:exerciseId/centralizeReview/:userId",parentId:"19",id:"54"},55:{path:"/classrooms/:coursesId/exercise/:exerciseId/export_blank",parentId:"19",id:"55"},56:{path:"/classrooms/:coursesId/exercise/:exerciseId/sumup",parentId:"19",id:"56"},57:{path:"/classrooms/:coursesId/exercise/:exerciseId/sumup/edit",parentId:"19",id:"57"},58:{path:"/classrooms/:coursesId/exercise/:exerciseId/analysis/:studentId",parentId:"19",id:"58"},59:{path:"/classrooms/:coursesId/shixun_homework/:exerciseId/analysis/:studentId",parentId:"19",id:"59"},60:{path:"/classrooms/:coursesId/exercise/:exerciseId/analysis/:studentId/code",parentId:"19",id:"60"},61:{path:"/classrooms/:coursesId/shixun_homework/:exerciseId/analysis/:studentId/code",parentId:"19",id:"61"},62:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/detail",parentId:"19",id:"62"},63:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/add",parentId:"19",id:"63"},64:{path:"/classrooms/:coursesId/graduation_topics/:categoryId/edit",parentId:"19",id:"64"},65:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/add",parentId:"19",id:"65"},66:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/edit",parentId:"19",id:"66"},67:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId/detail",parentId:"19",id:"67"},68:{path:"/classrooms/:coursesId/common_homework/:categoryId/add",parentId:"19",id:"68"},69:{path:"/classrooms/:coursesId/common_homework/:categoryId/edit",parentId:"19",id:"69"},70:{path:"/classrooms/:coursesId/common_homework/:commonHomeworkId/post",parentId:"19",id:"70"},71:{path:"/classrooms/:coursesId/common_homework/:commonHomeworkId/:homeworkId/edit",parentId:"19",id:"71"},72:{path:"/classrooms/:coursesId/group_homework/:categoryId/add",parentId:"19",id:"72"},73:{path:"/classrooms/:coursesId/group_homework/:categoryId/edit",parentId:"19",id:"73"},74:{path:"/classrooms/:coursesId/poll/:categoryId/add",parentId:"19",id:"74"},75:{path:"/classrooms/:coursesId/poll/:categoryId/edit",parentId:"19",id:"75"},76:{path:"/classrooms/:coursesId/poll/:categoryId/detail",parentId:"19",id:"76"},77:{path:"/classrooms/:coursesId/poll/:categoryId/users/:login",parentId:"19",id:"77"},78:{path:"/classrooms/:coursesId/poll/:categoryId/questionnaireInfo/:login",parentId:"19",id:"78"},79:{path:"/classrooms/:coursesId/board/:categoryId/Add",parentId:"19",id:"79"},80:{path:"/classrooms/:coursesId/board/:categoryId/Edit/:boardId",parentId:"19",id:"80"},81:{path:"/classrooms/:coursesId/board/:categoryId/Detail/:boardId",parentId:"19",id:"81"},82:{path:"/classrooms/:courseId/template/:templateId",parentId:"19",id:"82"},83:{path:"/classrooms/:courseId/common_homework/:homeworkId/lab-report/:reportId",parentId:"19",id:"83"},84:{path:"/classrooms/guidance",parentId:"19",id:"84"},85:{path:"/classrooms/:courseId/common_homework/:homeworkId/lab-report-view/:workId",parentId:"19",id:"85"},86:{path:"/classrooms/:coursesId/exercise/:categoryId/users/:login/check",parentId:"19",id:"86"},87:{path:"/classrooms/:coursesId/Studentdetail/:login",parentId:"19",id:"87"},88:{path:"/classrooms/:coursesId/StudentSituation/:categoryId/:login",parentId:"19",id:"88"},89:{path:"/classrooms/:coursesId/engineering/datail",parentId:"19",id:"89"},90:{path:"/classrooms/:coursesId/program_homework/:categoryId/add",parentId:"19",id:"90"},91:{path:"/classrooms/:coursesId/program_homework/:categoryId/edit",parentId:"19",id:"91"},92:{path:"/classrooms/:coursesId/program_homework/ranking",parentId:"19",id:"92"},93:{path:"/classrooms/:coursesId/program_homework/:categoryId/detail",parentId:"19",id:"93"},94:{path:"/classrooms/:coursesId/program_homework/:categoryId/:homeworkId/ranking",parentId:"19",id:"94"},95:{path:"/classrooms/:coursesId/program_homework/:categoryId/:homeworkId/:user_id/comment",parentId:"19",id:"95"},96:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer",parentId:"19",id:"96"},97:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/add",parentId:"19",id:"97"},98:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/:answerid/edit",parentId:"19",id:"98"},99:{path:"/classrooms/:coursesId/program_homework/:categoryId/answer/:answerid/detail",parentId:"19",id:"99"},100:{path:"/classrooms/:videoId/video_info",parentId:"19",id:"100"},101:{path:"/classrooms/",parentId:"19",id:"101"},102:{path:"/classrooms/:coursesId/shixun_homework/:categoryId",parentId:"101",id:"102"},103:{path:"/classrooms/:coursesId/shixun_homework",parentId:"101",id:"103"},104:{path:"/classrooms/:coursesId/graduation_topics/:categoryId",parentId:"101",id:"104"},105:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId",parentId:"101",id:"105"},106:{path:"/classrooms/:coursesId/graduation_tasks/:categoryId",parentId:"101",id:"106"},107:{path:"/classrooms/:coursesId/exercise/:categoryId",parentId:"101",id:"107"},108:{path:"/classrooms/:coursesId/exercise",parentId:"101",id:"108"},109:{path:"/classrooms/:coursesId/poll/:categoryId",parentId:"101",id:"109"},110:{path:"/classrooms/:coursesId/poll",parentId:"101",id:"110"},111:{path:"/classrooms/:coursesId/common_homework/:categoryId",parentId:"101",id:"111"},112:{path:"/classrooms/:coursesId/common_homework",parentId:"101",id:"112"},113:{path:"/classrooms/:coursesId/group_homework/:categoryId",parentId:"101",id:"113"},114:{path:"/classrooms/:coursesId/group_homework",parentId:"101",id:"114"},115:{path:"/classrooms/:coursesId/teachers",parentId:"101",id:"115"},116:{path:"/classrooms/:coursesId/students",parentId:"101",id:"116"},117:{path:"/classrooms/:coursesId/assistant",parentId:"101",id:"117"},118:{path:"/classrooms/:coursesId/program_homework",parentId:"101",id:"118"},119:{path:"/classrooms/:coursesId/program_homework/:categoryId",parentId:"101",id:"119"},120:{path:"/classrooms/:coursesId/engineering",parentId:"101",id:"120"},121:{path:"/classrooms/:coursesId/learning_path",parentId:"101",id:"121"},122:{path:"/classrooms/:coursesId/resource_recommend",parentId:"101",id:"122"},123:{path:"/classrooms/:coursesId/attendance",parentId:"101",id:"123"},124:{path:"/classrooms/:coursesId/attendance/StudetnSign",parentId:"101",id:"124"},125:{path:"/classrooms/:coursesId/attendance/:categoryId/:tabId/detail",parentId:"101",id:"125"},126:{path:"/classrooms/:coursesId/announcement",parentId:"101",id:"126"},127:{path:"/classrooms/:coursesId/announcement/:categoryId",parentId:"101",id:"127"},128:{path:"/classrooms/:coursesId/online_learning",parentId:"101",id:"128"},129:{path:"/classrooms/:coursesId/online_learning/:categoryId",parentId:"101",id:"129"},130:{path:"/classrooms/:coursesId/attachment/:categoryId",parentId:"101",id:"130"},131:{path:"/classrooms/:coursesId/attachment",parentId:"101",id:"131"},132:{path:"/classrooms/:coursesId/video",parentId:"101",id:"132"},133:{path:"/classrooms/:coursesId/video/:categoryId",parentId:"101",id:"133"},134:{path:"/classrooms/:coursesId/video/:categoryId/statistics",parentId:"101",id:"134"},135:{path:"/classrooms/:coursesId/video/:username/upload",parentId:"101",id:"135"},136:{path:"/classrooms/:coursesId/video/:categoryId/statistics/:videoId",parentId:"101",id:"136"},137:{path:"/classrooms/:coursesId/video/:categoryId/statistics/:videoId/:userId",parentId:"101",id:"137"},138:{path:"/classrooms/:coursesId/live_video/:categoryId",parentId:"101",id:"138"},139:{path:"/classrooms/:coursesId/live_video",parentId:"101",id:"139"},140:{path:"/classrooms/:coursesId/video/:categoryId/studentstatistics",parentId:"101",id:"140"},141:{path:"/classrooms/:coursesId/board/:categoryId",parentId:"101",id:"141"},142:{path:"/classrooms/:coursesId/board",parentId:"101",id:"142"},143:{path:"/classrooms/:coursesId/course_group",parentId:"101",id:"143"},144:{path:"/classrooms/:coursesId/course_group/:categoryId",parentId:"101",id:"144"},145:{path:"/classrooms/:coursesId/course_group/:categoryId/detail",parentId:"101",id:"145"},146:{path:"/classrooms/:coursesId/not_course_group/:categoryId",parentId:"101",id:"146"},147:{path:"/classrooms/:coursesId/not_course_group",parentId:"101",id:"147"},148:{path:"/classrooms/:coursesId/statistics/",parentId:"101",id:"148"},149:{path:"/classrooms/:coursesId/statistics/:categoryId",parentId:"101",id:"149"},150:{path:"/classrooms/:coursesId/statistics_video/:categoryId",parentId:"101",id:"150"},151:{path:"/classrooms/:coursesId/statistics_quality/:categoryId",parentId:"101",id:"151"},152:{path:"/classrooms/:coursesId/statistics_user_portrait/:categoryId",parentId:"101",id:"152"},153:{path:"/classrooms/:coursesId/student_statistics/:categoryId",parentId:"101",id:"153"},154:{path:"/classrooms/:coursesId/student_statistics/:categoryId/:listId/:type",parentId:"101",id:"154"},155:{path:"/classrooms/:coursesId/video_statistics/:categoryId/Student/:studentid",parentId:"101",id:"155"},156:{path:"/classrooms/:coursesId/exportlist/:type",parentId:"101",id:"156"},157:{path:"/classrooms/:coursesId",parentId:"101",id:"157"},158:{path:"/classrooms/:coursesId/template",parentId:"101",id:"158"},159:{path:"/classrooms/:coursesId/statistics_zb",parentId:"19",id:"159"},160:{path:"/classrooms/:coursesId/statistics_zb/:categoryId/detail/:studentid",parentId:"19",id:"160"},161:{path:"/competitions",parentId:"1",id:"161"},162:{path:"/competitions/index",parentId:"161",id:"162"},163:{path:"/competitions/:identifier/list",parentId:"161",id:"163"},164:{path:"/competitions/exports",parentId:"161",id:"164"},165:{path:"/competitions",parentId:"161",id:"165"},166:{path:"/competitions/:identifier",parentId:"161",id:"166"},167:{path:"/competitions/index/:identifier",parentId:"161",id:"167"},168:{path:"/competitions/:identifier/detail/enroll",parentId:"161",id:"168"},169:{path:"/competitions/:identifier/detail/UpdateTeanname/:Teannameid",parentId:"161",id:"169"},170:{path:"/competitions/:identifier/detail/teamDetail/:Teamid",parentId:"161",id:"170"},171:{path:"/competitions/detail/:identifier",parentId:"161",id:"171"},172:{path:"/forums",parentId:"1",id:"172"},173:{path:"/forums",parentId:"172",id:"173"},174:{path:"/forums/categories/:memoType",parentId:"172",id:"174"},175:{path:"/forums/new",parentId:"172",id:"175"},176:{path:"/forums/:memoId/edit",parentId:"172",id:"176"},177:{path:"/forums/:memoId",parentId:"172",id:"177"},178:{path:"/problemset",parentId:"1",id:"178"},179:{path:"/problemset",parentId:"178",id:"179"},180:{path:"/problemset/newitem",parentId:"178",id:"180"},181:{path:"/problemset/:type/:id",parentId:"178",id:"181"},182:{path:"/problemset/preview",parentId:"178",id:"182"},183:{path:"/problemset/preview_new",parentId:"178",id:"183"},184:{path:"/problemset/preview_select",parentId:"178",id:"184"},185:{path:"/shixuns",parentId:"1",id:"185"},186:{path:"/shixuns",parentId:"185",id:"186"},187:{path:"/shixuns/exports",parentId:"185",id:"187"},188:{path:"/shixuns/new",parentId:"185",id:"188"},189:{path:"/shixuns/edit",parentId:"185",id:"189"},190:{path:"/shixuns/new/CreateImg",parentId:"185",id:"190"},191:{path:"/shixuns/new/:id/imagepreview",parentId:"185",id:"191"},192:{path:"/shixuns/:id/Merge",parentId:"185",id:"192"},193:{path:"/shixuns/:id/Split",parentId:"185",id:"193"},194:{path:"/shixuns/:id/edit",parentId:"185",id:"194"},195:{path:"shixuns/:id/edit/warehouse",parentId:"194",id:"195"},196:{path:"/shixuns/:id/edit/newquestion",parentId:"194",id:"196"},197:{path:"/shixuns/:id/edit/:challengesId/editquestion",parentId:"194",id:"197"},198:{path:"/shixuns/:id/edit/:challengesId/editquestion/:questionId",parentId:"194",id:"198"},199:{path:"/shixuns/:id/edit/new",parentId:"194",id:"199"},200:{path:"/shixuns/:id/edit/:challengesId/editcheckpoint",parentId:"194",id:"200"},201:{path:"/shixuns/:id/edit/:challengesId/tab=2",parentId:"194",id:"201"},202:{path:"/shixuns/:id/edit/:challengesId/tab=3",parentId:"194",id:"202"},203:{path:"/shixuns/:id/edit/:challengesId/tab=4",parentId:"194",id:"203"},204:{path:"/shixuns/:id",parentId:"185",id:"204"},205:{path:"/shixuns/:id/challenges",parentId:"204",id:"205"},206:{path:"/shixuns/:id/repository",parentId:"204",id:"206"},207:{path:"/shixuns/:id/secret_repository",parentId:"204",id:"207"},208:{path:"/shixuns/:id/collaborators",parentId:"204",id:"208"},209:{path:"/shixuns/:id/dataset",parentId:"204",id:"209"},210:{path:"/shixuns/:id/dataset/jupyterEdit",parentId:"204",id:"210"},211:{path:"/shixuns/:id/shixun_discuss",parentId:"204",id:"211"},212:{path:"/shixuns/:id/ranking_list",parentId:"204",id:"212"},213:{path:"/shixuns/:id/settings",parentId:"204",id:"213"},214:{path:"/shixuns/:id/repository/:repoId/commits",parentId:"204",id:"214"},215:{path:"/shixuns/:id/secret_repository/:repoId/commits",parentId:"204",id:"215"},216:{path:"/shixuns/:id/repository/upload_file",parentId:"204",id:"216"},217:{path:"/shixuns/:id/secret_repository/upload_file",parentId:"204",id:"217"},218:{path:"/shixuns/:id/repository/add_file",parentId:"204",id:"218"},219:{path:"/shixuns/:id/secret_repository/add_file",parentId:"204",id:"219"},220:{path:"/shixuns/:id/repository/master/shixun_show/:fileId",exact:!1,parentId:"204",id:"220"},221:{path:"/shixuns/:id/secret_repository/master/shixun_show/:fileId",exact:!1,parentId:"204",id:"221"},222:{path:"/shixuns/:id/audit_situation",parentId:"204",id:"222"},223:{path:"/shixuns/:id/fork_list",parentId:"204",id:"223"},224:{path:"/shixuns/:id/skill_tags",parentId:"204",id:"224"},225:{path:"/users",parentId:"1",id:"225"},226:{path:"/users/:username/videos/protocol",parentId:"225",id:"226"},227:{path:"/users/:username/videos/resourceProtocol",parentId:"225",id:"227"},228:{path:"/users/:username/videos/success",parentId:"225",id:"228"},229:{path:"/users/:username/topicbank/:topicstype",parentId:"225",id:"229"},230:{path:"/users/:username/topics/:topicId/:topictype/normal/detail",parentId:"225",id:"230"},231:{path:"/users/:username/topics/:topicId/:topictype/group/detail",parentId:"225",id:"231"},232:{path:"/users/:username/topics/:topicId/:topictype/normal/edit",parentId:"225",id:"232"},233:{path:"/users/:username/topics/:topicId/:topictype/group/edit",parentId:"225",id:"233"},234:{path:"/users/:username/topics/:topicId/:topictype/exercise/edit",parentId:"225",id:"234"},235:{path:"/users/:username/topics/:topicId/:topictype/exercise/detail",parentId:"225",id:"235"},236:{path:"/users/:username/topics/:topicId/:topictype/poll/edit",parentId:"225",id:"236"},237:{path:"/users/:username/topics/:topicId/:topictype/poll/detail",parentId:"225",id:"237"},238:{path:"/users/:username/experiment-img/add",parentId:"225",id:"238"},239:{path:"/users/:username",parentId:"225",id:"239"},240:{path:"/users/:username",parentId:"239",id:"240"},241:{path:"/users/:username/baseInfo/edit",parentId:"239",id:"241"},242:{path:"/users/:username/baseInfo",parentId:"239",id:"242"},243:{path:"/users/:username/realNameCertification",parentId:"239",id:"243"},244:{path:"/users/:username/careerCertification",parentId:"239",id:"244"},245:{path:"/users/:username/classrooms",parentId:"239",id:"245"},246:{path:"/users/:username/shixuns",parentId:"239",id:"246"},247:{path:"/users/:username/dataSet",parentId:"239",id:"247"},248:{path:"/users/:username/userPortrait",parentId:"239",id:"248"},249:{path:"/users/:username/learningPath",parentId:"239",id:"249"},250:{path:"/users/:username/teach-group",parentId:"239",id:"250"},251:{path:"/users/:username/competitions",parentId:"239",id:"251"},252:{path:"/users/:username/experiment-img",parentId:"239",id:"252"},253:{path:"/users/:username/experiment-img/:experid/detail",parentId:"239",id:"253"},254:{path:"/users/:username/certificate",parentId:"239",id:"254"},255:{path:"/users/:username/otherResources",parentId:"239",id:"255"},256:{path:"/users/:username/classmanagement",parentId:"239",id:"256"},257:{path:"/users/:username/classmanagement/:couserid",parentId:"239",id:"257"},258:{path:"/users/:username/paths",parentId:"239",id:"258"},259:{path:"/users/:username/projects",parentId:"239",id:"259"},260:{path:"/users/:username/videos",parentId:"239",id:"260"},261:{path:"/users/:username/videos/upload",parentId:"239",id:"261"},262:{path:"/users/:username/topics/:topicstype",parentId:"239",id:"262"},263:{path:"/users/:username/vspaces",parentId:"239",id:"263"},264:{path:"/users/:username/resourcesCenter",parentId:"239",id:"264"},265:{path:"/users/:username/resourcesCenter/:id/detail",parentId:"239",id:"265"},266:{path:"/users/:username/resourceGuarantee",parentId:"239",id:"266"},267:{path:"/users/:username/resourceAllocation",parentId:"239",id:"267"},268:{parentId:"1",id:"268"},269:{path:"/problems",parentId:"268",id:"269"},270:{path:"/problems",parentId:"269",id:"270"},271:{path:"/problems/batchAdd",parentId:"269",id:"271"},272:{path:"/problems/newcreate",parentId:"268",id:"272"},273:{path:"/problems/newedit/:id",exact:!0,parentId:"268",id:"273"},274:{path:"/problems/:id/edit",exact:!0,parentId:"268",id:"274"},275:{path:"/problems/new",exact:!0,parentId:"268",id:"275"},276:{path:"/problems/:id/oj/:save_identifier",parentId:"268",id:"276"},277:{path:"/problems/:id/record-detail/:submitId",parentId:"268",id:"277"},278:{path:"/problems/add",parentId:"268",id:"278"},279:{path:"/problems/:id/ojedit",parentId:"268",id:"279"},280:{path:"/engineering",parentId:"1",id:"280"},281:{path:"/engineering",parentId:"280",id:"281"},282:{path:"/engineering/teacherList",parentId:"281",id:"282"},283:{path:"/engineering/studentList",parentId:"281",id:"283"},284:{path:"/engineering/training/program",parentId:"281",id:"284"},285:{path:"/engineering/training/program/add",parentId:"281",id:"285"},286:{path:"/engineering/training/program/edit",parentId:"281",id:"286"},287:{path:"/engineering/training/objectives",parentId:"281",id:"287"},288:{path:"/engineering/graduated/index",parentId:"281",id:"288"},289:{path:"/engineering/graduated/matrix",parentId:"281",id:"289"},290:{path:"/engineering/course/list",parentId:"281",id:"290"},291:{path:"/engineering/course/setting",parentId:"281",id:"291"},292:{path:"/engineering/course/matrix",parentId:"281",id:"292"},293:{path:"/engineering/navigation",parentId:"281",id:"293"},294:{path:"/engineering/evaluate/course",parentId:"281",id:"294"},295:{path:"/engineering/evaluate/course/:ec_year_id/:id",parentId:"281",id:"295"},296:{path:"/engineering/evaluate/norm",parentId:"281",id:"296"},297:{path:"/engineering/evaluate/document",parentId:"281",id:"297"},298:{path:"/engineering/evaluate/norm/:ec_year_id/:id",parentId:"281",id:"298"},299:{path:"/engineering/*",redirect:"/404",parentId:"281",id:"299"},300:{path:"/innovation",parentId:"1",id:"300"},301:{path:"/innovation/tasks/:taskId",parentId:"300",id:"301"},302:{path:"/innovation",parentId:"300",id:"302"},303:{path:"/innovation/project",parentId:"302",id:"303"},304:{path:"/innovation/dataset",parentId:"302",id:"304"},305:{path:"/innovation/mirror",parentId:"302",id:"305"},306:{path:"/innovation/my-project",parentId:"302",id:"306"},307:{path:"/innovation/my-dataset",parentId:"302",id:"307"},308:{path:"/innovation/my-mirror",parentId:"302",id:"308"},309:{path:"/innovation/project/create",parentId:"302",id:"309"},310:{path:"/innovation/project/edit/:id",parentId:"302",id:"310"},311:{path:"/innovation/project/detail/:taskId",parentId:"302",id:"311"},312:{path:"/tasks",parentId:"1",id:"312"},313:{path:"/tasks/:taskId",exact:!0,parentId:"312",id:"313"},314:{path:"/tasks/:identifier/jupyter/",exact:!0,parentId:"312",id:"314"},315:{path:"/tasks/:courseId/:homeworkId/:taskId",exact:!0,parentId:"312",id:"315"},316:{path:"/tasks/jupyter/:courseId/:homeworkId/:identifier",exact:!0,parentId:"312",id:"316"},317:{path:"/tasks/:courseId/:exerciseId/:taskId/exercise",exact:!0,parentId:"312",id:"317"},318:{path:"/myproblems",parentId:"1",id:"318"},319:{path:"/myproblems/:id/record-detail/:submitId",exact:!0,parentId:"318",id:"319"},320:{path:"/myproblems/:id",exact:!0,parentId:"318",id:"320"},321:{path:"/account",parentId:"1",id:"321"},322:{path:"/account",parentId:"321",id:"322"},323:{path:"/account/profile",parentId:"322",id:"323"},324:{path:"/account/profile/edit",parentId:"322",id:"324"},325:{path:"/account/certification",parentId:"322",id:"325"},326:{path:"/account/secure",parentId:"322",id:"326"},327:{path:"/account/binding",parentId:"322",id:"327"},328:{path:"/account/Results",parentId:"322",id:"328"},329:{path:"/ch",parentId:"1",id:"329"},330:{path:"/ch/rest/edit/:categoryId/:id",exact:!0,parentId:"329",id:"330"},331:{path:"/ch/rest/",exact:!0,parentId:"329",id:"331"},332:{path:"/ch/rest/:id",exact:!0,parentId:"329",id:"332"},333:{path:"/order",parentId:"1",id:"333"},334:{path:"/order",parentId:"333",id:"334"},335:{path:"/order/invoice",parentId:"333",id:"335"},336:{path:"/order/records",parentId:"333",id:"336"},337:{path:"/order/apply",parentId:"333",id:"337"},338:{path:"/order/view",parentId:"333",id:"338"},339:{path:"/order/:courseId/information",parentId:"333",id:"339"},340:{path:"/order/:courseId/pay",parentId:"333",id:"340"},341:{path:"/order/:orderNum/result",parentId:"333",id:"341"},342:{path:"/messages",parentId:"1",id:"342"},343:{path:"/messages/:userId/user_tidings",parentId:"342",id:"343"},344:{path:"/messages/:userId/private_messages",parentId:"342",id:"344"},345:{path:"/messages/:userId/message_detail",parentId:"342",id:"345"},346:{path:"/vtrs",parentId:"1",id:"346"},347:{path:"/vtrs/:virtual_spacesId",parentId:"346",id:"347"},348:{path:"/vtrs/:virtual_spacesId",exact:!0,parentId:"347",id:"348"},349:{path:"/vtrs/:virtual_spacesId/workplace",exact:!0,parentId:"347",id:"349"},350:{path:"/vtrs/:virtual_spacesId/experiment",parentId:"347",id:"350"},351:{path:"/vtrs/:virtual_spacesId/announcement",parentId:"347",id:"351"},352:{path:"/vtrs/:virtual_spacesId/announcement/add",parentId:"347",id:"352"},353:{path:"/vtrs/:virtual_spacesId/announcement/:id/edit",parentId:"347",id:"353"},354:{path:"/vtrs/:virtual_spacesId/announcement/:id/detail",parentId:"347",id:"354"},355:{path:"/vtrs/:virtual_spacesId/survey",parentId:"347",id:"355"},356:{path:"/vtrs/:virtual_spacesId/survey/:id/detail",parentId:"347",id:"356"},357:{path:"/vtrs/:virtual_spacesId/knowledge",parentId:"347",id:"357"},358:{path:"/vtrs/:virtual_spacesId/knowledge/add",parentId:"347",id:"358"},359:{path:"/vtrs/:virtual_spacesId/knowledge/:id/edit",parentId:"347",id:"359"},360:{path:"/vtrs/:virtual_spacesId/material",parentId:"347",id:"360"},361:{path:"/vtrs/:virtual_spacesId/material/:id/detail",parentId:"347",id:"361"},362:{path:"/vtrs/:virtual_spacesId/lesson",parentId:"347",id:"362"},363:{path:"/vtrs/:virtual_spacesId/lesson/:id/detail",parentId:"347",id:"363"},364:{path:"/vtrs/:virtual_spacesId/lesson/:id/detail/:fileid",parentId:"347",id:"364"},365:{path:"/vtrs/:virtual_spacesId/discussion",parentId:"347",id:"365"},366:{path:"/vtrs/:virtual_spacesId/discussion/:id/detail",parentId:"347",id:"366"},367:{path:"/vtrs/:virtual_spacesId/discussion/:id/detail/:fileid",parentId:"347",id:"367"},368:{path:"/vtrs/:virtual_spacesId/settings",parentId:"347",id:"368"},369:{path:"/vtrs/:virtual_spacesId/resources",parentId:"347",id:"369"},370:{path:"/vtrs/:virtual_spacesId/resources/:id/detail",parentId:"347",id:"370"},371:{path:"/vtrs/:virtual_spacesId/Plan",parentId:"347",id:"371"},372:{path:"/vtrs/:virtual_spacesId/plan/:id/detail",parentId:"347",id:"372"},373:{path:"/vtrs/:virtual_spacesId/digtal",parentId:"347",id:"373"},374:{path:"/vtrs/:virtual_spacesId/homepage",parentId:"347",id:"374"},375:{path:"/vtrs/:virtual_spacesId/*",parentId:"347",id:"375"},376:{path:"/101",parentId:"1",id:"376"},377:{path:"/101/:virtual_spacesId",parentId:"376",id:"377"},378:{path:"/101/:virtual_spacesId",exact:!0,parentId:"377",id:"378"},379:{path:"/101/:virtual_spacesId/workplace",exact:!0,parentId:"377",id:"379"},380:{path:"/101/:virtual_spacesId/experiment",parentId:"377",id:"380"},381:{path:"/101/:virtual_spacesId/announcement",parentId:"377",id:"381"},382:{path:"/101/:virtual_spacesId/announcement/add",parentId:"377",id:"382"},383:{path:"/101/:virtual_spacesId/announcement/:id/edit",parentId:"377",id:"383"},384:{path:"/101/:virtual_spacesId/announcement/:id/detail",parentId:"377",id:"384"},385:{path:"/101/:virtual_spacesId/survey",parentId:"377",id:"385"},386:{path:"/101/:virtual_spacesId/survey/:id/detail",parentId:"377",id:"386"},387:{path:"/101/:virtual_spacesId/knowledge",parentId:"377",id:"387"},388:{path:"/101/:virtual_spacesId/knowledge/add",parentId:"377",id:"388"},389:{path:"/101/:virtual_spacesId/knowledge/:id/edit",parentId:"377",id:"389"},390:{path:"/101/:virtual_spacesId/material",parentId:"377",id:"390"},391:{path:"/101/:virtual_spacesId/material/:id/detail",parentId:"377",id:"391"},392:{path:"/101/:virtual_spacesId/lesson",parentId:"377",id:"392"},393:{path:"/101/:virtual_spacesId/lesson/:id/detail",parentId:"377",id:"393"},394:{path:"/101/:virtual_spacesId/lesson/:id/detail/:fileid",parentId:"377",id:"394"},395:{path:"/101/:virtual_spacesId/discussion",parentId:"377",id:"395"},396:{path:"/101/:virtual_spacesId/discussion/:id/detail",parentId:"377",id:"396"},397:{path:"/101/:virtual_spacesId/discussion/:id/detail/:fileid",parentId:"377",id:"397"},398:{path:"/101/:virtual_spacesId/settings",parentId:"377",id:"398"},399:{path:"/101/:virtual_spacesId/resources",parentId:"377",id:"399"},400:{path:"/101/:virtual_spacesId/resources/:id/detail",parentId:"377",id:"400"},401:{path:"/101/:virtual_spacesId/Plan",parentId:"377",id:"401"},402:{path:"/101/:virtual_spacesId/plan/:id/detail",parentId:"377",id:"402"},403:{path:"/101/:virtual_spacesId/digtal",parentId:"377",id:"403"},404:{path:"/101/:virtual_spacesId/homepage",parentId:"377",id:"404"},405:{path:"/101/:virtual_spacesId/*",parentId:"377",id:"405"},406:{path:"/administration",parentId:"1",id:"406"},407:{path:"/administration",parentId:"406",id:"407"},408:{path:"/administration/college",parentId:"407",id:"408"},409:{path:"/administration/student",parentId:"407",id:"409"},410:{path:"/administration/student/:studentId/edit",parentId:"407",id:"410"},411:{path:"/administration/profession",parentId:"407",id:"411"},412:{path:"/graduations",parentId:"1",id:"412"},413:{path:"/graduations",exact:!0,parentId:"412",id:"413"},414:{path:"/graduations/:id/:moduleKey/:moduleId/review/:itemId",exact:!0,parentId:"412",id:"414"},415:{path:"/graduations/:id",parentId:"412",id:"415"},416:{path:"/graduations/:id/index",parentId:"415",id:"416"},417:{path:"/graduations/:id/topics",parentId:"415",id:"417"},418:{path:"/graduations/:id/student_selection",parentId:"415",id:"418"},419:{path:"/graduations/:id/tasks",parentId:"415",id:"419"},420:{path:"/graduations/:id/opening_report",parentId:"415",id:"420"},421:{path:"/graduations/:id/midterm_report",parentId:"415",id:"421"},422:{path:"/graduations/:id/thesis",parentId:"415",id:"422"},423:{path:"/graduations/:id/final_defense",parentId:"415",id:"423"},424:{path:"/graduations/:id/final_thesis",parentId:"415",id:"424"},425:{path:"/graduations/:id/settings",parentId:"415",id:"425"},426:{path:"/graduations/:id/teachers",parentId:"415",id:"426"},427:{path:"/graduations/:id/students",parentId:"415",id:"427"},428:{path:"/graduations/:id/archives",parentId:"415",id:"428"},429:{path:"/graduations/:id/grading_summary",parentId:"415",id:"429"},430:{path:"/dataset",parentId:"1",id:"430"},431:{path:"/dataset",exact:!0,parentId:"430",id:"431"},432:{path:"/dataset/:id/detail",exact:!0,parentId:"430",id:"432"},433:{path:"/knowledgegraph",parentId:"1",id:"433"},434:{path:"/knowledgegraph/:pathId",parentId:"433",id:"434"},435:{path:"/knowledgegraph/:pathId/statistics",parentId:"433",id:"435"},436:{path:"/newlogin",parentId:"1",id:"436"},437:{path:"/onlinenum",parentId:"1",id:"437"},438:{path:"/onlinenum",parentId:"437",id:"438"},439:{path:"/shixuncontext",parentId:"1",id:"439"},440:{path:"/shixuncontext",parentId:"439",id:"440"},441:{path:"/shixuncontext/:Id/detail",parentId:"439",id:"441"},442:{path:"/educoder-demo",exact:!0,parentId:"1",id:"442"},443:{path:"/training",parentId:"1",id:"443"},444:{name:"\u7CBE\u57F9\u8BFE\u7A0B",path:"/training",parentId:"443",id:"444"},445:{path:"/largeScreen",exact:!0,parentId:"1",id:"445"},446:{path:"/quality",parentId:"1",id:"446"},447:{name:"\u7CBE\u54C1\u8BFE\u7A0B",path:"/quality",parentId:"446",id:"447"},448:{path:"/otherlogin",exact:!0,parentId:"1",id:"448"},449:{path:"/otherloginqq",exact:!0,parentId:"1",id:"449"},450:{path:"/otherloginstart",exact:!0,parentId:"1",id:"450"},451:{path:"/pathsoverview",exact:!0,parentId:"1",id:"451"},452:{path:"/shixunsoverview",exact:!0,parentId:"1",id:"452"},453:{path:"/classroomsoverview",exact:!0,parentId:"1",id:"453"},454:{path:"/login",parentId:"1",id:"454"},455:{path:"/login",parentId:"454",id:"455"},456:{path:"/user",parentId:"1",id:"456"},457:{path:"/user/login",parentId:"456",id:"457"},458:{path:"/user/register",parentId:"456",id:"458"},459:{path:"/user/reset-password",parentId:"456",id:"459"},460:{path:"/colleges",parentId:"1",id:"460"},461:{path:"/colleges/:id/statistics",parentId:"460",id:"461"},462:{path:"/help",parentId:"1",id:"462"},463:{path:"/help/:id",parentId:"462",id:"463"},464:{path:"/video",parentId:"1",id:"464"},465:{path:"/video/:videoId",parentId:"464",id:"465"},466:{path:"/terminal",parentId:"1",id:"466"},467:{path:"/report/:taskId/:game_report_id",parentId:"1",id:"467"},468:{path:"/statsDashboard",parentId:"1",id:"468"},469:{path:"/zbstatistics",parentId:"1",id:"469"},470:{path:"/zbstatistics/detail/:id",parentId:"1",id:"470"},471:{path:"/",parentId:"1",id:"471"},472:{path:"/",exact:!0,parentId:"471",id:"472"},473:{path:"/api/*",exact:!0,parentId:"471",id:"473"},474:{path:"/search",exact:!0,parentId:"471",id:"474"},475:{path:"/moop_cases",exact:!0,parentId:"471",id:"475"},476:{path:"/moop_cases/new",exact:!0,parentId:"471",id:"476"},477:{path:"/moop_cases/:caseId",exact:!0,parentId:"471",id:"477"},478:{path:"/moop_cases/:caseId/edit",exact:!0,parentId:"471",id:"478"},479:{path:"/moop_cases/:caseId/publish-success",exact:!0,parentId:"471",id:"479"},480:{path:"/randompaper",exact:!0,parentId:"471",id:"480"},481:{path:"/randompaper/edit/:id",exact:!0,parentId:"471",id:"481"},482:{path:"/randompaper/detail/:id",exact:!0,parentId:"471",id:"482"},483:{path:"/403",parentId:"471",id:"483"},484:{path:"/500",parentId:"471",id:"484"},485:{path:"/404",parentId:"471",id:"485"},486:{path:"/download",parentId:"471",id:"486"},487:{path:"/iwce",parentId:"471",id:"487"},488:{path:"/classrooms/:coursesId/attendance/TeacherSign",parentId:"471",id:"488"},489:{path:"/classrooms/:coursesId/attendance/:categoryId",parentId:"471",id:"489"},490:{path:"/Activities",parentId:"471",id:"490"},491:{path:"/iwce/:itemname",parentId:"471",id:"491"},492:{path:"/hpc-course",parentId:"471",id:"492"},493:{path:"/user_agents",parentId:"471",id:"493"},494:{path:"/three",parentId:"471",id:"494"},495:{path:"/introduction",parentId:"471",id:"495"},496:{path:"/chatgpt",parentId:"471",id:"496"},497:{path:"/*",parentId:"471",id:"497"},"@@/global-layout":{id:"@@/global-layout",path:"/",isLayout:!0}},routeComponents:{1:$e.lazy(()=>__webpack_require__.e(9176).then(__webpack_require__.bind(__webpack_require__,29176))),2:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),3:$e.lazy(()=>Promise.all([__webpack_require__.e(1003),__webpack_require__.e(2099)]).then(__webpack_require__.bind(__webpack_require__,89854))),4:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(3260)]).then(__webpack_require__.bind(__webpack_require__,16206))),5:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(3260)]).then(__webpack_require__.bind(__webpack_require__,16206))),6:$e.lazy(()=>__webpack_require__.e(3247).then(__webpack_require__.bind(__webpack_require__,68158))),7:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(8461),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43300))),8:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(8461),__webpack_require__.e(1545)]).then(__webpack_require__.bind(__webpack_require__,12272))),9:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),10:$e.lazy(()=>__webpack_require__.e(9906).then(__webpack_require__.bind(__webpack_require__,49691))),11:$e.lazy(()=>__webpack_require__.e(5572).then(__webpack_require__.bind(__webpack_require__,55347))),12:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6080)]).then(__webpack_require__.bind(__webpack_require__,81159))),13:$e.lazy(()=>__webpack_require__.e(7901).then(__webpack_require__.bind(__webpack_require__,62114))),14:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(2281)]).then(__webpack_require__.bind(__webpack_require__,64129))),15:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1651)]).then(__webpack_require__.bind(__webpack_require__,28320))),16:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6080)]).then(__webpack_require__.bind(__webpack_require__,81159))),17:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(8461),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43300))),18:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(8461),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43300))),19:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),20:$e.lazy(()=>__webpack_require__.e(6789).then(__webpack_require__.bind(__webpack_require__,4547))),21:$e.lazy(()=>__webpack_require__.e(9921).then(__webpack_require__.bind(__webpack_require__,21753))),22:$e.lazy(()=>__webpack_require__.e(1674).then(__webpack_require__.bind(__webpack_require__,61785))),23:$e.lazy(()=>__webpack_require__.e(6685).then(__webpack_require__.bind(__webpack_require__,90922))),24:$e.lazy(()=>__webpack_require__.e(7323).then(__webpack_require__.bind(__webpack_require__,75705))),25:$e.lazy(()=>__webpack_require__.e(7323).then(__webpack_require__.bind(__webpack_require__,75705))),26:$e.lazy(()=>__webpack_require__.e(6882).then(__webpack_require__.bind(__webpack_require__,24609))),27:$e.lazy(()=>__webpack_require__.e(6882).then(__webpack_require__.bind(__webpack_require__,24609))),28:$e.lazy(()=>__webpack_require__.e(109).then(__webpack_require__.bind(__webpack_require__,14345))),29:$e.lazy(()=>__webpack_require__.e(737).then(__webpack_require__.bind(__webpack_require__,96398))),30:$e.lazy(()=>__webpack_require__.e(3391).then(__webpack_require__.bind(__webpack_require__,7634))),31:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(5694)]).then(__webpack_require__.bind(__webpack_require__,5050))),32:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(5330)]).then(__webpack_require__.bind(__webpack_require__,38694))),33:$e.lazy(()=>Promise.all([__webpack_require__.e(1003),__webpack_require__.e(2303)]).then(__webpack_require__.bind(__webpack_require__,80148))),34:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1450)]).then(__webpack_require__.bind(__webpack_require__,72889))),35:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(195)]).then(__webpack_require__.bind(__webpack_require__,8973))),36:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3668)]).then(__webpack_require__.bind(__webpack_require__,14535))),37:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(2338)]).then(__webpack_require__.bind(__webpack_require__,92137))),38:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4662)]).then(__webpack_require__.bind(__webpack_require__,22726))),39:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8072)]).then(__webpack_require__.bind(__webpack_require__,34537))),40:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(479)]).then(__webpack_require__.bind(__webpack_require__,69544))),41:$e.lazy(()=>__webpack_require__.e(5297).then(__webpack_require__.bind(__webpack_require__,6213))),42:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(4164)]).then(__webpack_require__.bind(__webpack_require__,86310))),43:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(8461),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43300))),44:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(7699),__webpack_require__.e(4889)]).then(__webpack_require__.bind(__webpack_require__,98557))),45:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(7699),__webpack_require__.e(4105)]).then(__webpack_require__.bind(__webpack_require__,14892))),46:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(7883)]).then(__webpack_require__.bind(__webpack_require__,62948))),47:$e.lazy(()=>__webpack_require__.e(7482).then(__webpack_require__.bind(__webpack_require__,42258))),48:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,80177))),49:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(337)]).then(__webpack_require__.bind(__webpack_require__,61467))),50:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(292)]).then(__webpack_require__.bind(__webpack_require__,58931))),51:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(292)]).then(__webpack_require__.bind(__webpack_require__,58931))),52:$e.lazy(()=>__webpack_require__.e(5992).then(__webpack_require__.bind(__webpack_require__,31862))),53:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(1003),__webpack_require__.e(7699),__webpack_require__.e(8085)]).then(__webpack_require__.bind(__webpack_require__,83038))),54:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(1003),__webpack_require__.e(7699),__webpack_require__.e(8085)]).then(__webpack_require__.bind(__webpack_require__,83038))),55:$e.lazy(()=>__webpack_require__.e(8431).then(__webpack_require__.bind(__webpack_require__,37735))),56:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5902)]).then(__webpack_require__.bind(__webpack_require__,1690))),57:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(3433)]).then(__webpack_require__.bind(__webpack_require__,82275))),58:$e.lazy(()=>__webpack_require__.e(5125).then(__webpack_require__.bind(__webpack_require__,60519))),59:$e.lazy(()=>__webpack_require__.e(5125).then(__webpack_require__.bind(__webpack_require__,60519))),60:$e.lazy(()=>__webpack_require__.e(921).then(__webpack_require__.bind(__webpack_require__,66897))),61:$e.lazy(()=>__webpack_require__.e(921).then(__webpack_require__.bind(__webpack_require__,66897))),62:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1578)]).then(__webpack_require__.bind(__webpack_require__,31240))),63:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3317)]).then(__webpack_require__.bind(__webpack_require__,70846))),64:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1482)]).then(__webpack_require__.bind(__webpack_require__,55940))),65:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4795)]).then(__webpack_require__.bind(__webpack_require__,29388))),66:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(26)]).then(__webpack_require__.bind(__webpack_require__,90025))),67:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8882)]).then(__webpack_require__.bind(__webpack_require__,96791))),68:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5888)]).then(__webpack_require__.bind(__webpack_require__,22797))),69:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(9715)]).then(__webpack_require__.bind(__webpack_require__,76715))),70:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(7045)]).then(__webpack_require__.bind(__webpack_require__,74622))),71:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1211)]).then(__webpack_require__.bind(__webpack_require__,45629))),72:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1582)]).then(__webpack_require__.bind(__webpack_require__,7880))),73:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6729)]).then(__webpack_require__.bind(__webpack_require__,66314))),74:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(9695)]).then(__webpack_require__.bind(__webpack_require__,96993))),75:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8723)]).then(__webpack_require__.bind(__webpack_require__,74167))),76:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7622)]).then(__webpack_require__.bind(__webpack_require__,77560))),77:$e.lazy(()=>__webpack_require__.e(5148).then(__webpack_require__.bind(__webpack_require__,98646))),78:$e.lazy(()=>__webpack_require__.e(643).then(__webpack_require__.bind(__webpack_require__,24448))),79:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3442)]).then(__webpack_require__.bind(__webpack_require__,56273))),80:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2102)]).then(__webpack_require__.bind(__webpack_require__,3435))),81:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2425)]).then(__webpack_require__.bind(__webpack_require__,86205))),82:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2404)]).then(__webpack_require__.bind(__webpack_require__,58264))),83:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(9785)]).then(__webpack_require__.bind(__webpack_require__,13933))),84:$e.lazy(()=>__webpack_require__.e(7901).then(__webpack_require__.bind(__webpack_require__,62114))),85:$e.lazy(()=>__webpack_require__.e(2819).then(__webpack_require__.bind(__webpack_require__,55227))),86:$e.lazy(()=>__webpack_require__.e(1512).then(__webpack_require__.bind(__webpack_require__,76431))),87:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7395)]).then(__webpack_require__.bind(__webpack_require__,63329))),88:$e.lazy(()=>__webpack_require__.e(3585).then(__webpack_require__.bind(__webpack_require__,18583))),89:$e.lazy(()=>__webpack_require__.e(6963).then(__webpack_require__.bind(__webpack_require__,44923))),90:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4030)]).then(__webpack_require__.bind(__webpack_require__,3235))),91:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4030)]).then(__webpack_require__.bind(__webpack_require__,3235))),92:$e.lazy(()=>__webpack_require__.e(6127).then(__webpack_require__.bind(__webpack_require__,78439))),93:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3951)]).then(__webpack_require__.bind(__webpack_require__,67506))),94:$e.lazy(()=>__webpack_require__.e(1048).then(__webpack_require__.bind(__webpack_require__,63298))),95:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2884)]).then(__webpack_require__.bind(__webpack_require__,23072))),96:$e.lazy(()=>__webpack_require__.e(4770).then(__webpack_require__.bind(__webpack_require__,55715))),97:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2603)]).then(__webpack_require__.bind(__webpack_require__,54488))),98:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4216)]).then(__webpack_require__.bind(__webpack_require__,39682))),99:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5319)]).then(__webpack_require__.bind(__webpack_require__,58026))),100:$e.lazy(()=>__webpack_require__.e(895).then(__webpack_require__.bind(__webpack_require__,50684))),101:$e.lazy(()=>__webpack_require__.e(7322).then(__webpack_require__.bind(__webpack_require__,59324))),102:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1731),__webpack_require__.e(2203)]).then(__webpack_require__.bind(__webpack_require__,96691))),103:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1731),__webpack_require__.e(2203)]).then(__webpack_require__.bind(__webpack_require__,96691))),104:$e.lazy(()=>__webpack_require__.e(5048).then(__webpack_require__.bind(__webpack_require__,81189))),105:$e.lazy(()=>__webpack_require__.e(1043).then(__webpack_require__.bind(__webpack_require__,55521))),106:$e.lazy(()=>__webpack_require__.e(1043).then(__webpack_require__.bind(__webpack_require__,55521))),107:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6776)]).then(__webpack_require__.bind(__webpack_require__,41536))),108:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6776)]).then(__webpack_require__.bind(__webpack_require__,41536))),109:$e.lazy(()=>__webpack_require__.e(4297).then(__webpack_require__.bind(__webpack_require__,37509))),110:$e.lazy(()=>__webpack_require__.e(4297).then(__webpack_require__.bind(__webpack_require__,37509))),111:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1731),__webpack_require__.e(8458)]).then(__webpack_require__.bind(__webpack_require__,94602))),112:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1731),__webpack_require__.e(8458)]).then(__webpack_require__.bind(__webpack_require__,94602))),113:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1731),__webpack_require__.e(1798)]).then(__webpack_require__.bind(__webpack_require__,49727))),114:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1731),__webpack_require__.e(1798)]).then(__webpack_require__.bind(__webpack_require__,49727))),115:$e.lazy(()=>__webpack_require__.e(5177).then(__webpack_require__.bind(__webpack_require__,18498))),116:$e.lazy(()=>__webpack_require__.e(201).then(__webpack_require__.bind(__webpack_require__,45816))),117:$e.lazy(()=>__webpack_require__.e(1477).then(__webpack_require__.bind(__webpack_require__,75677))),118:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1731),__webpack_require__.e(6282)]).then(__webpack_require__.bind(__webpack_require__,26947))),119:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1731),__webpack_require__.e(6282)]).then(__webpack_require__.bind(__webpack_require__,26947))),120:$e.lazy(()=>__webpack_require__.e(1962).then(__webpack_require__.bind(__webpack_require__,60949))),121:$e.lazy(()=>__webpack_require__.e(4928).then(__webpack_require__.bind(__webpack_require__,48153))),122:$e.lazy(()=>__webpack_require__.e(1257).then(__webpack_require__.bind(__webpack_require__,22428))),123:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2450),__webpack_require__.e(7329)]).then(__webpack_require__.bind(__webpack_require__,64489))),124:$e.lazy(()=>__webpack_require__.e(8340).then(__webpack_require__.bind(__webpack_require__,4417))),125:$e.lazy(()=>__webpack_require__.e(4093).then(__webpack_require__.bind(__webpack_require__,77014))),126:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6185)]).then(__webpack_require__.bind(__webpack_require__,9585))),127:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6185)]).then(__webpack_require__.bind(__webpack_require__,9585))),128:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8827)]).then(__webpack_require__.bind(__webpack_require__,93852))),129:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8827)]).then(__webpack_require__.bind(__webpack_require__,93852))),130:$e.lazy(()=>__webpack_require__.e(1678).then(__webpack_require__.bind(__webpack_require__,23547))),131:$e.lazy(()=>__webpack_require__.e(1678).then(__webpack_require__.bind(__webpack_require__,23547))),132:$e.lazy(()=>__webpack_require__.e(1754).then(__webpack_require__.bind(__webpack_require__,69909))),133:$e.lazy(()=>__webpack_require__.e(1754).then(__webpack_require__.bind(__webpack_require__,69909))),134:$e.lazy(()=>__webpack_require__.e(4217).then(__webpack_require__.bind(__webpack_require__,93711))),135:$e.lazy(()=>__webpack_require__.e(3220).then(__webpack_require__.bind(__webpack_require__,45600))),136:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(533)]).then(__webpack_require__.bind(__webpack_require__,68716))),137:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5798)]).then(__webpack_require__.bind(__webpack_require__,79147))),138:$e.lazy(()=>__webpack_require__.e(5466).then(__webpack_require__.bind(__webpack_require__,2769))),139:$e.lazy(()=>__webpack_require__.e(5466).then(__webpack_require__.bind(__webpack_require__,2769))),140:$e.lazy(()=>__webpack_require__.e(9944).then(__webpack_require__.bind(__webpack_require__,91243))),141:$e.lazy(()=>__webpack_require__.e(9406).then(__webpack_require__.bind(__webpack_require__,69303))),142:$e.lazy(()=>__webpack_require__.e(9406).then(__webpack_require__.bind(__webpack_require__,69303))),143:$e.lazy(()=>__webpack_require__.e(9039).then(__webpack_require__.bind(__webpack_require__,32180))),144:$e.lazy(()=>__webpack_require__.e(9039).then(__webpack_require__.bind(__webpack_require__,32180))),145:$e.lazy(()=>__webpack_require__.e(7922).then(__webpack_require__.bind(__webpack_require__,50636))),146:$e.lazy(()=>__webpack_require__.e(1727).then(__webpack_require__.bind(__webpack_require__,34048))),147:$e.lazy(()=>__webpack_require__.e(1727).then(__webpack_require__.bind(__webpack_require__,34048))),148:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1427)]).then(__webpack_require__.bind(__webpack_require__,54084))),149:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1427)]).then(__webpack_require__.bind(__webpack_require__,54084))),150:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8689)]).then(__webpack_require__.bind(__webpack_require__,46879))),151:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7806)]).then(__webpack_require__.bind(__webpack_require__,16055))),152:$e.lazy(()=>__webpack_require__.e(3276).then(__webpack_require__.bind(__webpack_require__,89034))),153:$e.lazy(()=>__webpack_require__.e(8885).then(__webpack_require__.bind(__webpack_require__,79390))),154:$e.lazy(()=>__webpack_require__.e(3451).then(__webpack_require__.bind(__webpack_require__,9098))),155:$e.lazy(()=>__webpack_require__.e(9922).then(__webpack_require__.bind(__webpack_require__,24680))),156:$e.lazy(()=>__webpack_require__.e(4572).then(__webpack_require__.bind(__webpack_require__,34306))),157:$e.lazy(()=>__webpack_require__.e(4017).then(__webpack_require__.bind(__webpack_require__,82019))),158:$e.lazy(()=>__webpack_require__.e(5518).then(__webpack_require__.bind(__webpack_require__,2446))),159:$e.lazy(()=>__webpack_require__.e(5823).then(__webpack_require__.bind(__webpack_require__,68984))),160:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4944)]).then(__webpack_require__.bind(__webpack_require__,27707))),161:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),162:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9875),__webpack_require__.e(7099)]).then(__webpack_require__.bind(__webpack_require__,53921))),163:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9875),__webpack_require__.e(7099)]).then(__webpack_require__.bind(__webpack_require__,53921))),164:$e.lazy(()=>__webpack_require__.e(4449).then(__webpack_require__.bind(__webpack_require__,40571))),165:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9875),__webpack_require__.e(7099)]).then(__webpack_require__.bind(__webpack_require__,53921))),166:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5860),__webpack_require__.e(2570)]).then(__webpack_require__.bind(__webpack_require__,44884))),167:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5860),__webpack_require__.e(2570)]).then(__webpack_require__.bind(__webpack_require__,44884))),168:$e.lazy(()=>__webpack_require__.e(8787).then(__webpack_require__.bind(__webpack_require__,7870))),169:$e.lazy(()=>__webpack_require__.e(5650).then(__webpack_require__.bind(__webpack_require__,4505))),170:$e.lazy(()=>__webpack_require__.e(1799).then(__webpack_require__.bind(__webpack_require__,93685))),171:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5860),__webpack_require__.e(8579)]).then(__webpack_require__.bind(__webpack_require__,89801))),172:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),173:$e.lazy(()=>__webpack_require__.e(8639).then(__webpack_require__.bind(__webpack_require__,13207))),174:$e.lazy(()=>__webpack_require__.e(4048).then(__webpack_require__.bind(__webpack_require__,10229))),175:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4264)]).then(__webpack_require__.bind(__webpack_require__,23752))),176:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4264)]).then(__webpack_require__.bind(__webpack_require__,23752))),177:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(508)]).then(__webpack_require__.bind(__webpack_require__,92471))),178:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),179:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(8461),__webpack_require__.e(7835)]).then(__webpack_require__.bind(__webpack_require__,47825))),180:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(1953)]).then(__webpack_require__.bind(__webpack_require__,63037))),181:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(1953)]).then(__webpack_require__.bind(__webpack_require__,63037))),182:$e.lazy(()=>__webpack_require__.e(1581).then(__webpack_require__.bind(__webpack_require__,29488))),183:$e.lazy(()=>__webpack_require__.e(4144).then(__webpack_require__.bind(__webpack_require__,26472))),184:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(8461),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,43300))),185:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),186:$e.lazy(()=>__webpack_require__.e(8552).then(__webpack_require__.bind(__webpack_require__,55036))),187:$e.lazy(()=>__webpack_require__.e(7884).then(__webpack_require__.bind(__webpack_require__,98491))),188:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5307)]).then(__webpack_require__.bind(__webpack_require__,74660))),189:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5307)]).then(__webpack_require__.bind(__webpack_require__,74660))),190:$e.lazy(()=>__webpack_require__.e(5549).then(__webpack_require__.bind(__webpack_require__,26917))),191:$e.lazy(()=>__webpack_require__.e(9674).then(__webpack_require__.bind(__webpack_require__,49048))),192:$e.lazy(()=>__webpack_require__.e(5573).then(__webpack_require__.bind(__webpack_require__,23671))),193:$e.lazy(()=>__webpack_require__.e(2141).then(__webpack_require__.bind(__webpack_require__,31341))),194:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(7502),__webpack_require__.e(9511)]).then(__webpack_require__.bind(__webpack_require__,36659))),195:$e.lazy(()=>__webpack_require__.e(6328).then(__webpack_require__.bind(__webpack_require__,80265))),196:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(7857)]).then(__webpack_require__.bind(__webpack_require__,55233))),197:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(1657)]).then(__webpack_require__.bind(__webpack_require__,57614))),198:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(1657)]).then(__webpack_require__.bind(__webpack_require__,57614))),199:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(4498)]).then(__webpack_require__.bind(__webpack_require__,72997))),200:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1003),__webpack_require__.e(4498)]).then(__webpack_require__.bind(__webpack_require__,72997))),201:$e.lazy(()=>__webpack_require__.e(9205).then(__webpack_require__.bind(__webpack_require__,62006))),202:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1423)]).then(__webpack_require__.bind(__webpack_require__,78246))),203:$e.lazy(()=>__webpack_require__.e(7614).then(__webpack_require__.bind(__webpack_require__,73661))),204:$e.lazy(()=>__webpack_require__.e(9449).then(__webpack_require__.bind(__webpack_require__,83263))),205:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9814)]).then(__webpack_require__.bind(__webpack_require__,60277))),206:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6637)]).then(__webpack_require__.bind(__webpack_require__,58275))),207:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6637)]).then(__webpack_require__.bind(__webpack_require__,58275))),208:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(3581)]).then(__webpack_require__.bind(__webpack_require__,57225))),209:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1993)]).then(__webpack_require__.bind(__webpack_require__,72946))),210:$e.lazy(()=>Promise.all([__webpack_require__.e(7502),__webpack_require__.e(1475)]).then(__webpack_require__.bind(__webpack_require__,65630))),211:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(8965)]).then(__webpack_require__.bind(__webpack_require__,21716))),212:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6451)]).then(__webpack_require__.bind(__webpack_require__,50469))),213:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(518)]).then(__webpack_require__.bind(__webpack_require__,28882))),214:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5894)]).then(__webpack_require__.bind(__webpack_require__,92363))),215:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5894)]).then(__webpack_require__.bind(__webpack_require__,92363))),216:$e.lazy(()=>__webpack_require__.e(2130).then(__webpack_require__.bind(__webpack_require__,66111))),217:$e.lazy(()=>__webpack_require__.e(2130).then(__webpack_require__.bind(__webpack_require__,66111))),218:$e.lazy(()=>__webpack_require__.e(5230).then(__webpack_require__.bind(__webpack_require__,32301))),219:$e.lazy(()=>__webpack_require__.e(5230).then(__webpack_require__.bind(__webpack_require__,32301))),220:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,13875))),221:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,13875))),222:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5096)]).then(__webpack_require__.bind(__webpack_require__,48997))),223:$e.lazy(()=>__webpack_require__.e(3086).then(__webpack_require__.bind(__webpack_require__,24677))),224:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9417)]).then(__webpack_require__.bind(__webpack_require__,85424))),225:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),226:$e.lazy(()=>__webpack_require__.e(5176).then(__webpack_require__.bind(__webpack_require__,71020))),227:$e.lazy(()=>__webpack_require__.e(6587).then(__webpack_require__.bind(__webpack_require__,58949))),228:$e.lazy(()=>__webpack_require__.e(9891).then(__webpack_require__.bind(__webpack_require__,24662))),229:$e.lazy(()=>__webpack_require__.e(8062).then(__webpack_require__.bind(__webpack_require__,83014))),230:$e.lazy(()=>__webpack_require__.e(5402).then(__webpack_require__.bind(__webpack_require__,99981))),231:$e.lazy(()=>__webpack_require__.e(5402).then(__webpack_require__.bind(__webpack_require__,99981))),232:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6820)]).then(__webpack_require__.bind(__webpack_require__,57430))),233:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8517)]).then(__webpack_require__.bind(__webpack_require__,46613))),234:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(7043)]).then(__webpack_require__.bind(__webpack_require__,6510))),235:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2806)]).then(__webpack_require__.bind(__webpack_require__,30577))),236:$e.lazy(()=>__webpack_require__.e(5043).then(__webpack_require__.bind(__webpack_require__,61222))),237:$e.lazy(()=>__webpack_require__.e(799).then(__webpack_require__.bind(__webpack_require__,59556))),238:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3157)]).then(__webpack_require__.bind(__webpack_require__,26353))),239:$e.lazy(()=>__webpack_require__.e(8332).then(__webpack_require__.bind(__webpack_require__,67781))),240:$e.lazy(()=>__webpack_require__.e(6583).then(__webpack_require__.bind(__webpack_require__,57387))),241:$e.lazy(()=>__webpack_require__.e(8217).then(__webpack_require__.bind(__webpack_require__,73015))),242:$e.lazy(()=>__webpack_require__.e(879).then(__webpack_require__.bind(__webpack_require__,42864))),243:$e.lazy(()=>__webpack_require__.e(5776).then(__webpack_require__.bind(__webpack_require__,10723))),244:$e.lazy(()=>__webpack_require__.e(906).then(__webpack_require__.bind(__webpack_require__,33701))),245:$e.lazy(()=>__webpack_require__.e(900).then(__webpack_require__.bind(__webpack_require__,79025))),246:$e.lazy(()=>__webpack_require__.e(6682).then(__webpack_require__.bind(__webpack_require__,60069))),247:$e.lazy(()=>__webpack_require__.e(8115).then(__webpack_require__.bind(__webpack_require__,60494))),248:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2659)]).then(__webpack_require__.bind(__webpack_require__,31799))),249:$e.lazy(()=>__webpack_require__.e(4610).then(__webpack_require__.bind(__webpack_require__,89881))),250:$e.lazy(()=>__webpack_require__.e(8479).then(__webpack_require__.bind(__webpack_require__,32682))),251:$e.lazy(()=>__webpack_require__.e(5800).then(__webpack_require__.bind(__webpack_require__,84258))),252:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2862)]).then(__webpack_require__.bind(__webpack_require__,8582))),253:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8286)]).then(__webpack_require__.bind(__webpack_require__,50553))),254:$e.lazy(()=>__webpack_require__.e(5117).then(__webpack_require__.bind(__webpack_require__,97354))),255:$e.lazy(()=>__webpack_require__.e(7402).then(__webpack_require__.bind(__webpack_require__,97711))),256:$e.lazy(()=>__webpack_require__.e(1897).then(__webpack_require__.bind(__webpack_require__,65314))),257:$e.lazy(()=>__webpack_require__.e(8145).then(__webpack_require__.bind(__webpack_require__,54665))),258:$e.lazy(()=>__webpack_require__.e(119).then(__webpack_require__.bind(__webpack_require__,32166))),259:$e.lazy(()=>__webpack_require__.e(4736).then(__webpack_require__.bind(__webpack_require__,19161))),260:$e.lazy(()=>__webpack_require__.e(2412).then(__webpack_require__.bind(__webpack_require__,88480))),261:$e.lazy(()=>__webpack_require__.e(2240).then(__webpack_require__.bind(__webpack_require__,21838))),262:$e.lazy(()=>__webpack_require__.e(5165).then(__webpack_require__.bind(__webpack_require__,65790))),263:$e.lazy(()=>__webpack_require__.e(3831).then(__webpack_require__.bind(__webpack_require__,87654))),264:$e.lazy(()=>__webpack_require__.e(2396).then(__webpack_require__.bind(__webpack_require__,41894))),265:$e.lazy(()=>__webpack_require__.e(7855).then(__webpack_require__.bind(__webpack_require__,49696))),266:$e.lazy(()=>__webpack_require__.e(9507).then(__webpack_require__.bind(__webpack_require__,79488))),267:$e.lazy(()=>__webpack_require__.e(1343).then(__webpack_require__.bind(__webpack_require__,4033))),268:$e.lazy(()=>__webpack_require__.e(9176).then(__webpack_require__.bind(__webpack_require__,29176))),269:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),270:$e.lazy(()=>__webpack_require__.e(9647).then(__webpack_require__.bind(__webpack_require__,99135))),271:$e.lazy(()=>__webpack_require__.e(485).then(__webpack_require__.bind(__webpack_require__,26058))),272:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4741)]).then(__webpack_require__.bind(__webpack_require__,6066))),273:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4741)]).then(__webpack_require__.bind(__webpack_require__,6066))),274:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4994)]).then(__webpack_require__.bind(__webpack_require__,85604))),275:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4994)]).then(__webpack_require__.bind(__webpack_require__,85604))),276:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(7460)]).then(__webpack_require__.bind(__webpack_require__,86962))),277:$e.lazy(()=>__webpack_require__.e(9716).then(__webpack_require__.bind(__webpack_require__,98897))),278:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6913)]).then(__webpack_require__.bind(__webpack_require__,90605))),279:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6913)]).then(__webpack_require__.bind(__webpack_require__,90605))),280:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),281:$e.lazy(()=>__webpack_require__.e(3006).then(__webpack_require__.bind(__webpack_require__,28485))),282:$e.lazy(()=>__webpack_require__.e(2045).then(__webpack_require__.bind(__webpack_require__,95677))),283:$e.lazy(()=>__webpack_require__.e(1520).then(__webpack_require__.bind(__webpack_require__,97648))),284:$e.lazy(()=>__webpack_require__.e(9649).then(__webpack_require__.bind(__webpack_require__,5188))),285:$e.lazy(()=>__webpack_require__.e(4546).then(__webpack_require__.bind(__webpack_require__,7264))),286:$e.lazy(()=>__webpack_require__.e(5357).then(__webpack_require__.bind(__webpack_require__,10598))),287:$e.lazy(()=>__webpack_require__.e(8665).then(__webpack_require__.bind(__webpack_require__,4255))),288:$e.lazy(()=>__webpack_require__.e(3183).then(__webpack_require__.bind(__webpack_require__,7602))),289:$e.lazy(()=>__webpack_require__.e(4800).then(__webpack_require__.bind(__webpack_require__,81255))),290:$e.lazy(()=>__webpack_require__.e(9489).then(__webpack_require__.bind(__webpack_require__,45980))),291:$e.lazy(()=>__webpack_require__.e(9391).then(__webpack_require__.bind(__webpack_require__,22715))),292:$e.lazy(()=>__webpack_require__.e(5335).then(__webpack_require__.bind(__webpack_require__,80931))),293:$e.lazy(()=>__webpack_require__.e(2823).then(__webpack_require__.bind(__webpack_require__,8453))),294:$e.lazy(()=>__webpack_require__.e(4973).then(__webpack_require__.bind(__webpack_require__,5266))),295:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6651)]).then(__webpack_require__.bind(__webpack_require__,24242))),296:$e.lazy(()=>__webpack_require__.e(6741).then(__webpack_require__.bind(__webpack_require__,55006))),297:$e.lazy(()=>__webpack_require__.e(5775).then(__webpack_require__.bind(__webpack_require__,14206))),298:$e.lazy(()=>__webpack_require__.e(2548).then(__webpack_require__.bind(__webpack_require__,63586))),299:$e.lazy(()=>__webpack_require__.e(9176).then(__webpack_require__.bind(__webpack_require__,29176))),300:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),301:$e.lazy(()=>__webpack_require__.e(6634).then(__webpack_require__.bind(__webpack_require__,11018))),302:$e.lazy(()=>__webpack_require__.e(680).then(__webpack_require__.bind(__webpack_require__,89085))),303:$e.lazy(()=>__webpack_require__.e(6366).then(__webpack_require__.bind(__webpack_require__,41326))),304:$e.lazy(()=>__webpack_require__.e(6452).then(__webpack_require__.bind(__webpack_require__,93513))),305:$e.lazy(()=>__webpack_require__.e(1070).then(__webpack_require__.bind(__webpack_require__,71432))),306:$e.lazy(()=>__webpack_require__.e(7242).then(__webpack_require__.bind(__webpack_require__,92450))),307:$e.lazy(()=>__webpack_require__.e(2707).then(__webpack_require__.bind(__webpack_require__,18245))),308:$e.lazy(()=>__webpack_require__.e(2865).then(__webpack_require__.bind(__webpack_require__,34644))),309:$e.lazy(()=>__webpack_require__.e(6784).then(__webpack_require__.bind(__webpack_require__,58871))),310:$e.lazy(()=>__webpack_require__.e(6784).then(__webpack_require__.bind(__webpack_require__,58871))),311:$e.lazy(()=>__webpack_require__.e(3141).then(__webpack_require__.bind(__webpack_require__,87110))),312:$e.lazy(()=>__webpack_require__.e(9176).then(__webpack_require__.bind(__webpack_require__,29176))),313:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(1003),__webpack_require__.e(7289)]).then(__webpack_require__.bind(__webpack_require__,42984))),314:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1003),__webpack_require__.e(700)]).then(__webpack_require__.bind(__webpack_require__,43512))),315:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(1003),__webpack_require__.e(7289)]).then(__webpack_require__.bind(__webpack_require__,42984))),316:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1003),__webpack_require__.e(700)]).then(__webpack_require__.bind(__webpack_require__,43512))),317:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(1003),__webpack_require__.e(7289)]).then(__webpack_require__.bind(__webpack_require__,42984))),318:$e.lazy(()=>__webpack_require__.e(9176).then(__webpack_require__.bind(__webpack_require__,29176))),319:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(7527)]).then(__webpack_require__.bind(__webpack_require__,36190))),320:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6270)]).then(__webpack_require__.bind(__webpack_require__,41092))),321:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),322:$e.lazy(()=>__webpack_require__.e(547).then(__webpack_require__.bind(__webpack_require__,23632))),323:$e.lazy(()=>__webpack_require__.e(9788).then(__webpack_require__.bind(__webpack_require__,58921))),324:$e.lazy(()=>__webpack_require__.e(576).then(__webpack_require__.bind(__webpack_require__,17553))),325:$e.lazy(()=>__webpack_require__.e(7260).then(__webpack_require__.bind(__webpack_require__,80465))),326:$e.lazy(()=>__webpack_require__.e(4520).then(__webpack_require__.bind(__webpack_require__,6055))),327:$e.lazy(()=>__webpack_require__.e(9076).then(__webpack_require__.bind(__webpack_require__,16643))),328:$e.lazy(()=>__webpack_require__.e(4514).then(__webpack_require__.bind(__webpack_require__,29331))),329:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),330:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(928)]).then(__webpack_require__.bind(__webpack_require__,10178))),331:$e.lazy(()=>__webpack_require__.e(1006).then(__webpack_require__.bind(__webpack_require__,43814))),332:$e.lazy(()=>__webpack_require__.e(1006).then(__webpack_require__.bind(__webpack_require__,43814))),333:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),334:$e.lazy(()=>__webpack_require__.e(1939).then(__webpack_require__.bind(__webpack_require__,58114))),335:$e.lazy(()=>__webpack_require__.e(556).then(__webpack_require__.bind(__webpack_require__,39661))),336:$e.lazy(()=>__webpack_require__.e(6434).then(__webpack_require__.bind(__webpack_require__,9505))),337:$e.lazy(()=>__webpack_require__.e(1880).then(__webpack_require__.bind(__webpack_require__,72085))),338:$e.lazy(()=>__webpack_require__.e(8237).then(__webpack_require__.bind(__webpack_require__,20792))),339:$e.lazy(()=>__webpack_require__.e(3447).then(__webpack_require__.bind(__webpack_require__,61622))),340:$e.lazy(()=>__webpack_require__.e(264).then(__webpack_require__.bind(__webpack_require__,62463))),341:$e.lazy(()=>__webpack_require__.e(4259).then(__webpack_require__.bind(__webpack_require__,69399))),342:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),343:$e.lazy(()=>__webpack_require__.e(4078).then(__webpack_require__.bind(__webpack_require__,38607))),344:$e.lazy(()=>__webpack_require__.e(2829).then(__webpack_require__.bind(__webpack_require__,12279))),345:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5359)]).then(__webpack_require__.bind(__webpack_require__,74607))),346:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),347:$e.lazy(()=>__webpack_require__.e(559).then(__webpack_require__.bind(__webpack_require__,61234))),348:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,54758))),349:$e.lazy(()=>__webpack_require__.e(4757).then(__webpack_require__.bind(__webpack_require__,30383))),350:$e.lazy(()=>__webpack_require__.e(1783).then(__webpack_require__.bind(__webpack_require__,52679))),351:$e.lazy(()=>__webpack_require__.e(7477).then(__webpack_require__.bind(__webpack_require__,13747))),352:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,85132))),353:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,85132))),354:$e.lazy(()=>__webpack_require__.e(6796).then(__webpack_require__.bind(__webpack_require__,89567))),355:$e.lazy(()=>__webpack_require__.e(4504).then(__webpack_require__.bind(__webpack_require__,57445))),356:$e.lazy(()=>__webpack_require__.e(7058).then(__webpack_require__.bind(__webpack_require__,81771))),357:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8447)]).then(__webpack_require__.bind(__webpack_require__,34341))),358:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,16807))),359:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,16807))),360:$e.lazy(()=>__webpack_require__.e(5238).then(__webpack_require__.bind(__webpack_require__,52280))),361:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4715)]).then(__webpack_require__.bind(__webpack_require__,34322))),362:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3873)]).then(__webpack_require__.bind(__webpack_require__,25402))),363:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,2121))),364:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,2121))),365:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6265)]).then(__webpack_require__.bind(__webpack_require__,5751))),366:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,70210))),367:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,70210))),368:$e.lazy(()=>__webpack_require__.e(1713).then(__webpack_require__.bind(__webpack_require__,16214))),369:$e.lazy(()=>__webpack_require__.e(5891).then(__webpack_require__.bind(__webpack_require__,23096))),370:$e.lazy(()=>__webpack_require__.e(8398).then(__webpack_require__.bind(__webpack_require__,24597))),371:$e.lazy(()=>__webpack_require__.e(8241).then(__webpack_require__.bind(__webpack_require__,67851))),372:$e.lazy(()=>__webpack_require__.e(2339).then(__webpack_require__.bind(__webpack_require__,22842))),373:$e.lazy(()=>__webpack_require__.e(7589).then(__webpack_require__.bind(__webpack_require__,48521))),374:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,54758))),375:$e.lazy(()=>__webpack_require__.e(5705).then(__webpack_require__.bind(__webpack_require__,12974))),376:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),377:$e.lazy(()=>__webpack_require__.e(559).then(__webpack_require__.bind(__webpack_require__,61234))),378:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,54758))),379:$e.lazy(()=>__webpack_require__.e(4757).then(__webpack_require__.bind(__webpack_require__,30383))),380:$e.lazy(()=>__webpack_require__.e(1783).then(__webpack_require__.bind(__webpack_require__,52679))),381:$e.lazy(()=>__webpack_require__.e(7477).then(__webpack_require__.bind(__webpack_require__,13747))),382:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,85132))),383:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,85132))),384:$e.lazy(()=>__webpack_require__.e(6796).then(__webpack_require__.bind(__webpack_require__,89567))),385:$e.lazy(()=>__webpack_require__.e(4504).then(__webpack_require__.bind(__webpack_require__,57445))),386:$e.lazy(()=>__webpack_require__.e(7058).then(__webpack_require__.bind(__webpack_require__,81771))),387:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8447)]).then(__webpack_require__.bind(__webpack_require__,34341))),388:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,16807))),389:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,16807))),390:$e.lazy(()=>__webpack_require__.e(5238).then(__webpack_require__.bind(__webpack_require__,52280))),391:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4715)]).then(__webpack_require__.bind(__webpack_require__,34322))),392:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3873)]).then(__webpack_require__.bind(__webpack_require__,25402))),393:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,2121))),394:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,2121))),395:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6265)]).then(__webpack_require__.bind(__webpack_require__,5751))),396:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,70210))),397:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,70210))),398:$e.lazy(()=>__webpack_require__.e(1713).then(__webpack_require__.bind(__webpack_require__,16214))),399:$e.lazy(()=>__webpack_require__.e(5891).then(__webpack_require__.bind(__webpack_require__,23096))),400:$e.lazy(()=>__webpack_require__.e(8398).then(__webpack_require__.bind(__webpack_require__,24597))),401:$e.lazy(()=>__webpack_require__.e(8241).then(__webpack_require__.bind(__webpack_require__,67851))),402:$e.lazy(()=>__webpack_require__.e(2339).then(__webpack_require__.bind(__webpack_require__,22842))),403:$e.lazy(()=>__webpack_require__.e(7589).then(__webpack_require__.bind(__webpack_require__,48521))),404:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,54758))),405:$e.lazy(()=>__webpack_require__.e(5705).then(__webpack_require__.bind(__webpack_require__,12974))),406:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),407:$e.lazy(()=>__webpack_require__.e(4766).then(__webpack_require__.bind(__webpack_require__,93514))),408:$e.lazy(()=>__webpack_require__.e(7560).then(__webpack_require__.bind(__webpack_require__,88773))),409:$e.lazy(()=>__webpack_require__.e(6029).then(__webpack_require__.bind(__webpack_require__,9744))),410:$e.lazy(()=>__webpack_require__.e(5179).then(__webpack_require__.bind(__webpack_require__,8091))),411:$e.lazy(()=>__webpack_require__.e(4621).then(__webpack_require__.bind(__webpack_require__,90493))),412:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),413:$e.lazy(()=>__webpack_require__.e(1831).then(__webpack_require__.bind(__webpack_require__,67080))),414:$e.lazy(()=>__webpack_require__.e(2539).then(__webpack_require__.bind(__webpack_require__,36801))),415:$e.lazy(()=>__webpack_require__.e(8143).then(__webpack_require__.bind(__webpack_require__,69756))),416:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5624)]).then(__webpack_require__.bind(__webpack_require__,29586))),417:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(1461)]).then(__webpack_require__.bind(__webpack_require__,73823))),418:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4492)]).then(__webpack_require__.bind(__webpack_require__,93147))),419:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(9416)]).then(__webpack_require__.bind(__webpack_require__,76919))),420:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,99929))),421:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,99929))),422:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,99929))),423:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,99929))),424:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,99929))),425:$e.lazy(()=>__webpack_require__.e(5022).then(__webpack_require__.bind(__webpack_require__,11556))),426:$e.lazy(()=>__webpack_require__.e(6063).then(__webpack_require__.bind(__webpack_require__,76736))),427:$e.lazy(()=>__webpack_require__.e(6063).then(__webpack_require__.bind(__webpack_require__,76736))),428:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(7545)]).then(__webpack_require__.bind(__webpack_require__,34965))),429:$e.lazy(()=>__webpack_require__.e(1253).then(__webpack_require__.bind(__webpack_require__,52896))),430:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),431:$e.lazy(()=>__webpack_require__.e(2216).then(__webpack_require__.bind(__webpack_require__,18562))),432:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5382)]).then(__webpack_require__.bind(__webpack_require__,10019))),433:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),434:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6411),__webpack_require__.e(8823)]).then(__webpack_require__.bind(__webpack_require__,24971))),435:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5915)]).then(__webpack_require__.bind(__webpack_require__,62125))),436:$e.lazy(()=>__webpack_require__.e(1077).then(__webpack_require__.bind(__webpack_require__,59174))),437:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),438:$e.lazy(()=>__webpack_require__.e(570).then(__webpack_require__.bind(__webpack_require__,79595))),439:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),440:$e.lazy(()=>__webpack_require__.e(8365).then(__webpack_require__.bind(__webpack_require__,80633))),441:$e.lazy(()=>__webpack_require__.e(6788).then(__webpack_require__.bind(__webpack_require__,81717))),442:$e.lazy(()=>__webpack_require__.e(4058).then(__webpack_require__.bind(__webpack_require__,46289))),443:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),444:$e.lazy(()=>__webpack_require__.e(4056).then(__webpack_require__.bind(__webpack_require__,12990))),445:$e.lazy(()=>__webpack_require__.e(9487).then(__webpack_require__.bind(__webpack_require__,85911))),446:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),447:$e.lazy(()=>__webpack_require__.e(532).then(__webpack_require__.bind(__webpack_require__,41826))),448:$e.lazy(()=>__webpack_require__.e(7178).then(__webpack_require__.bind(__webpack_require__,37954))),449:$e.lazy(()=>__webpack_require__.e(1660).then(__webpack_require__.bind(__webpack_require__,77780))),450:$e.lazy(()=>__webpack_require__.e(7333).then(__webpack_require__.bind(__webpack_require__,18699))),451:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4227)]).then(__webpack_require__.bind(__webpack_require__,56676))),452:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8155)]).then(__webpack_require__.bind(__webpack_require__,46989))),453:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5186)]).then(__webpack_require__.bind(__webpack_require__,79811))),454:$e.lazy(()=>__webpack_require__.e(5786).then(__webpack_require__.bind(__webpack_require__,96587))),455:$e.lazy(()=>__webpack_require__.e(9366).then(__webpack_require__.bind(__webpack_require__,47609))),456:$e.lazy(()=>__webpack_require__.e(5972).then(__webpack_require__.bind(__webpack_require__,88229))),457:$e.lazy(()=>__webpack_require__.e(9366).then(__webpack_require__.bind(__webpack_require__,47609))),458:$e.lazy(()=>__webpack_require__.e(1470).then(__webpack_require__.bind(__webpack_require__,73797))),459:$e.lazy(()=>__webpack_require__.e(7182).then(__webpack_require__.bind(__webpack_require__,63207))),460:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),461:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2476)]).then(__webpack_require__.bind(__webpack_require__,79229))),462:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),463:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5729)]).then(__webpack_require__.bind(__webpack_require__,93188))),464:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),465:$e.lazy(()=>__webpack_require__.e(6444).then(__webpack_require__.bind(__webpack_require__,74843))),466:$e.lazy(()=>__webpack_require__.e(5111).then(__webpack_require__.bind(__webpack_require__,38550))),467:$e.lazy(()=>__webpack_require__.e(2307).then(__webpack_require__.bind(__webpack_require__,97437))),468:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7224)]).then(__webpack_require__.bind(__webpack_require__,83180))),469:$e.lazy(()=>__webpack_require__.e(5823).then(__webpack_require__.bind(__webpack_require__,68984))),470:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4944)]).then(__webpack_require__.bind(__webpack_require__,27707))),471:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,3793))),472:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9875),__webpack_require__.e(8866)]).then(__webpack_require__.bind(__webpack_require__,84659))),473:$e.lazy(()=>__webpack_require__.e(2300).then(__webpack_require__.bind(__webpack_require__,3233))),474:$e.lazy(()=>__webpack_require__.e(2501).then(__webpack_require__.bind(__webpack_require__,89493))),475:$e.lazy(()=>__webpack_require__.e(3212).then(__webpack_require__.bind(__webpack_require__,78400))),476:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6904)]).then(__webpack_require__.bind(__webpack_require__,17206))),477:$e.lazy(()=>__webpack_require__.e(1855).then(__webpack_require__.bind(__webpack_require__,39914))),478:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(6904)]).then(__webpack_require__.bind(__webpack_require__,17206))),479:$e.lazy(()=>__webpack_require__.e(1276).then(__webpack_require__.bind(__webpack_require__,99524))),480:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,80177))),481:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,80177))),482:$e.lazy(()=>__webpack_require__.e(3784).then(__webpack_require__.bind(__webpack_require__,82657))),483:$e.lazy(()=>__webpack_require__.e(3862).then(__webpack_require__.bind(__webpack_require__,18700))),484:$e.lazy(()=>__webpack_require__.e(4565).then(__webpack_require__.bind(__webpack_require__,58144))),485:$e.lazy(()=>__webpack_require__.e(6531).then(__webpack_require__.bind(__webpack_require__,5914))),486:$e.lazy(()=>__webpack_require__.e(6170).then(__webpack_require__.bind(__webpack_require__,6448))),487:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,67501))),488:$e.lazy(()=>__webpack_require__.e(1836).then(__webpack_require__.bind(__webpack_require__,52600))),489:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2450),__webpack_require__.e(8435)]).then(__webpack_require__.bind(__webpack_require__,23077))),490:$e.lazy(()=>__webpack_require__.e(3509).then(__webpack_require__.bind(__webpack_require__,61657))),491:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,67501))),492:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,67501))),493:$e.lazy(()=>__webpack_require__.e(6034).then(__webpack_require__.bind(__webpack_require__,75435))),494:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(8999)]).then(__webpack_require__.bind(__webpack_require__,65007))),495:$e.lazy(()=>__webpack_require__.e(3910).then(__webpack_require__.bind(__webpack_require__,37787))),496:$e.lazy(()=>Promise.all([__webpack_require__.e(8640),__webpack_require__.e(67)]).then(__webpack_require__.bind(__webpack_require__,65120))),497:$e.lazy(()=>__webpack_require__.e(6531).then(__webpack_require__.bind(__webpack_require__,5914))),"@@/global-layout":$e.lazy(()=>__webpack_require__.e(1717).then(__webpack_require__.bind(__webpack_require__,79196)))}}})}var P=__webpack_require__(51579),O=__webpack_require__(93869),L=__webpack_require__(71418),ve=__webpack_require__(98450),ke=()=>$e.createElement(L.Z,{size:"middle",className:ve.Z.loading}),dn=__webpack_require__(90115),Pn=__webpack_require__(66649),hn=__webpack_require__.n(Pn),Fi=__webpack_require__(91392),cs=__webpack_require__.n(Fi),Ka=__webpack_require__(73100),Wo=__webpack_require__.n(Ka),ns=__webpack_require__(14805),Ao=__webpack_require__.n(ns),Us=__webpack_require__(13477),tf=__webpack_require__.n(Us),ql=__webpack_require__(64796),Fc=__webpack_require__.n(ql),rf=__webpack_require__(9007),Vu=__webpack_require__.n(rf),Si=__webpack_require__(58626),Sl=__webpack_require__.n(Si),Bc=__webpack_require__(9084),nu=__webpack_require__.n(Bc),co=__webpack_require__(5116),_s=__webpack_require__.n(co),_l=__webpack_require__(50991),Jl=__webpack_require__.n(_l),gl=__webpack_require__(39050),Ll=__webpack_require__.n(gl),Al=__webpack_require__(1554),wf=__webpack_require__.n(Al),ku=__webpack_require__(59697),Ml=__webpack_require__.n(ku);hn().extend(Wo()),hn().extend(Ao()),hn().extend(tf()),hn().extend(Fc()),hn().extend(Vu()),hn().extend(Sl()),hn().extend(nu()),hn().extend(_s()),hn().extend(Jl()),hn().extend(Ll()),hn().extend(wf()),hn().extend(Ml()),hn().extend(cs());var nf=Object.defineProperty,Fl=Object.getOwnPropertySymbols,Ef=Object.prototype.hasOwnProperty,Ru=Object.prototype.propertyIsEnumerable,Cl=(Fn,ti,Xi)=>ti in Fn?nf(Fn,ti,{enumerable:!0,configurable:!0,writable:!0,value:Xi}):Fn[ti]=Xi,ec=(Fn,ti)=>{for(var Xi in ti||(ti={}))Ef.call(ti,Xi)&&Cl(Fn,Xi,ti[Xi]);if(Fl)for(var Xi of Fl(ti))Ru.call(ti,Xi)&&Cl(Fn,Xi,ti[Xi]);return Fn},Nc=(Fn,ti,Xi)=>new Promise((Ba,la)=>{var Ea=ca=>{try{Ds(Xi.next(ca))}catch(Ms){la(Ms)}},ya=ca=>{try{Ds(Xi.throw(ca))}catch(Ms){la(Ms)}},Ds=ca=>ca.done?Ba(ca.value):Promise.resolve(ca.value).then(Ea,ya);Ds((Xi=Xi.apply(Fn,ti)).next())});const ju="/react/build/",xu=!1;function wu(){return Nc(this,null,function*(){const Fn=(0,P.gD)(),{routes:ti,routeComponents:Xi}=yield xf(Fn);yield Fn.applyPlugins({key:"patchRoutes",type:dn.ApplyPluginsType.event,args:{routes:ti,routeComponents:Xi}});const Ba=Fn.applyPlugins({key:"modifyContextOpts",type:dn.ApplyPluginsType.modify,initialValue:{}}),la=Ba.basename||"/",Ea=Ba.historyType||"browser",ya=(0,O.fi)(ec({type:Ea,basename:la},Ba.historyOpts));return Fn.applyPlugins({key:"render",type:dn.ApplyPluginsType.compose,initialValue(){const Ds={useStream:!0,routes:ti,routeComponents:Xi,pluginManager:Fn,mountElementId:"root",rootElement:Ba.rootElement||document.getElementById("root"),loadingComponent:ke,publicPath:ju,runtimePublicPath:xu,history:ya,historyType:Ea,basename:la,__INTERNAL_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{pureApp:!1,pureHtml:!1},callback:Ba.callback},ca=Fn.applyPlugins({key:"modifyClientRenderOpts",type:dn.ApplyPluginsType.modify,initialValue:Ds});return Lc(ca)}})()})}wu(),typeof window!="undefined"&&(window.g_umi={version:"4.6.7"})})()})();