From 30f23a865ce5b0a7f7fdf45dcec0cee8dfa31aac Mon Sep 17 00:00:00 2001 From: autosubmit Date: Wed, 4 Feb 2026 16:40:17 +0800 Subject: [PATCH] Auto Submit --- index.html | 2 +- ...ts__Exercise__Add__index.774e60d0.async.js | 142 +++++++++--------- umi.0679f87f.js => umi.fb106675.js | 2 +- 3 files changed, 73 insertions(+), 73 deletions(-) rename p__Classrooms__Lists__Exercise__Add__index.352ac5a8.async.js => p__Classrooms__Lists__Exercise__Add__index.774e60d0.async.js (67%) rename umi.0679f87f.js => umi.fb106675.js (99%) diff --git a/index.html b/index.html index d8857755ea..7d8f415b23 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.352ac5a8.async.js b/p__Classrooms__Lists__Exercise__Add__index.774e60d0.async.js similarity index 67% rename from p__Classrooms__Lists__Exercise__Add__index.352ac5a8.async.js rename to p__Classrooms__Lists__Exercise__Add__index.774e60d0.async.js index 63fcc99abd..c7703ca55f 100644 --- a/p__Classrooms__Lists__Exercise__Add__index.352ac5a8.async.js +++ b/p__Classrooms__Lists__Exercise__Add__index.774e60d0.async.js @@ -1,6 +1,6 @@ -(self.webpackChunk=self.webpackChunk||[]).push([[292],{87169:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return Ke}});var b=ae(60499),Ee=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 Ee.createElement(Re.Z,(0,b.Z)({},De,{ref:ke,icon:Be}))},xe=Ee.forwardRef(We),Ke=xe},12893:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return Ke}});var b=ae(60499),Ee=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 Ee.createElement(Re.Z,(0,b.Z)({},De,{ref:ke,icon:Be}))},xe=Ee.forwardRef(We),Ke=xe},32134:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return Ke}});var b=ae(60499),Ee=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 Ee.createElement(Re.Z,(0,b.Z)({},De,{ref:ke,icon:Be}))},xe=Ee.forwardRef(We),Ke=xe},14973:function(ot,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"}},44388:function(ot,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"}},49570:function(ot,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"}},42653:function(ot,jt,ae){"use strict";var b=ae(59301),Ee=Object.defineProperty,we=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,We=(Oe,De,ke)=>De in Oe?Ee(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-.203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EuNjI1LTEuOTMxYS42MzMuNjMzIDAgMCAwLS4zMzItMS4wMjJsLTEuNzYxLS40MzZhMS43NSAxLjc1IDAgMCAxLTEuMDY1LS43NzRsLS45NTktMS41NGEuNjMzLjYzMyAwIDAgMC0uMjAzLS4yMDNabTEuNTQ0IDUuMjNhLjc1Ljc1IDAgMCAxIC4xMDIgMS40OTNsLS4xMDIuMDA3SDUuMzYyYS43NS43NSAwIDAgMS0uMTAyLTEuNDk0bC4xMDItLjAwNmgzLjQyNVoiIGZpbGw9IiMzMDYxRDAiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg=="},42128:function(ot,jt,ae){"use strict";var b=ae(59301),Ee=Object.defineProperty,we=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,We=(Oe,De,ke)=>De in Oe?Ee(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+"},95006:function(ot,jt,ae){"use strict";var b=ae(59301),Ee=Object.defineProperty,we=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,We=(Oe,De,ke)=>De in Oe?Ee(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=="},64242:function(){"use strict";function ot(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(ot.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(ot.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(ot.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(ot.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 ot))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 Ee(ue){jt.push(ue)}function we(ue,E,a,x,y,z,te,oe,se){se||(se=new go.Point);var le=ue-a,Pe=y-te,Fe=NaN,Qe=NaN;if(le===0)if(Pe===0)ue===a&&(Fe=ue,Qe=E);else{var Le=(z-oe)/Pe,ut=z-Le*y;Fe=ue,Qe=Le*Fe+ut}else if(Pe===0){var Me=(E-x)/le,Ye=E-Me*ue;Fe=y,Qe=Me*Fe+Ye}else{var Me=(E-x)/le,Le=(z-oe)/Pe,Ye=E-Me*ue,ut=z-Le*y;Fe=(ut-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,le,Pe,Fe,Qe,Le){var ut=1-se,Me=se,Ye=ue*ut+a*Me,Ge=E*ut+x*Me,$e=a*ut+y*Me,be=x*ut+z*Me,ft=y*ut+te*Me,dt=z*ut+oe*Me,Ft=Ye*ut+$e*Me,Pt=Ge*ut+be*Me,En=$e*ut+ft*Me,Bn=be*ut+dt*Me,Qt=Ft*ut+En*Me,St=Pt*ut+Bn*Me;le.x=Ye,le.y=Ge,Pe.x=Ft,Pe.y=Pt,Fe.x=Qt,Fe.y=St,Qe.x=En,Qe.y=Bn,Le.x=ft,Le.y=dt}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 ot("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 ot("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 ot("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ot("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 ot("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 ot("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 ot("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),le=x-Math.min(Math.sin(oe)*x/2,te),y=new go.Geometry,Pe=new go.PathFigure(se,0,!0);return y.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,z,.2*a)),Pe.add(new go.PathSegment(go.PathSegment.Line,E-se,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,E,le)),Pe.add(new go.PathSegment(go.PathSegment.Line,.8*E,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,E,a-le)),Pe.add(new go.PathSegment(go.PathSegment.Line,E-se,a)),Pe.add(new go.PathSegment(go.PathSegment.Line,z,.8*a)),Pe.add(new go.PathSegment(go.PathSegment.Line,se,a)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,a-le)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,le).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new ot("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 ot("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 ot("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 le=b(),Pe=b(),Fe=b(),Qe=b();Be(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.42,le,Pe,Fe,Qe,Qe);var Le=b(),ut=b(),Me=b();Be(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.58,Qe,Qe,Me,Le,ut);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(),ft=b(),dt=b();return Be(te,oe+z,te-y,oe+z,te-z,oe+y,te-z,oe,.58,Qe,Qe,dt,be,ft),se.add(new go.PathSegment(go.PathSegment.Move,dt.x*E,dt.y*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,be.x*E,be.y*a,ft.x*E,ft.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,le.x*E,le.y*a,Pe.x*E,Pe.y*a)),se.add(new go.PathSegment(go.PathSegment.Line,dt.x*E,dt.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,ut.x*E,ut.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()),Ee(le),Ee(Pe),Ee(Fe),Ee(Qe),Ee(Le),Ee(ut),Ee(Me),Ee(Ye),Ee(Ge),Ee($e),Ee(be),Ee(ft),Ee(dt),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 ot("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(),le=b(),Pe=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,Pe,Fe,le,se,se),Qe.add(new go.PathSegment(go.PathSegment.Bezier,le.x*E,le.y*a,Pe.x*E,Pe.y*a,Fe.x*E,Fe.y*a));var Le=ae(le.x,le.y);Be(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.56,se,se,le,Pe,Fe);var ut=ae(le.x,le.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,(ut.x*.1+.9)*E,.15*a)),Qe.add(new go.PathSegment(go.PathSegment.Line,(ut.x*.1+.9)*E,(ut.y*.1+.05*.9)*a)),Qe.add(new go.PathSegment(go.PathSegment.Line,ut.x*E,ut.y*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,Pe.x*E,Pe.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),Ee(se),Ee(le),Ee(Pe),Ee(Fe),Ee(Le),Ee(ut),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 ot("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ot("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,le=new go.PathFigure(0,te,!0);se.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,te)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),le.add(new go.PathSegment(go.PathSegment.Line,z,a)),le.add(new go.PathSegment(go.PathSegment.Line,z,oe)),le.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),se.spot1=new go.Spot(0,te/a);var Pe=we(0,oe/a,1,oe/a,z/E,1,1,.5,b());return se.spot2=new go.Spot(Pe.x,Pe.y),Ee(Pe),se}),go.Shape.setFigureParameter("Arrow2",0,new ot("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ot("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,le=new go.PathFigure(0,te,!0);se.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,te)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),le.add(new go.PathSegment(go.PathSegment.Line,z,a)),le.add(new go.PathSegment(go.PathSegment.Line,z,oe)),le.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),se.spot1=new go.Spot(0,te/a);var Pe=we(0,oe/a,1,oe/a,z/E,1,1,.5,b());return se.spot2=new go.Spot(Pe.x,Pe.y),Ee(Pe),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 ot("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),Ee(se),te}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ot("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ot("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 le=new go.Geometry,Pe=new go.PathFigure(E,.5*a,!0);le.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*E,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*E,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*E,oe)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),Pe.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 le.spot1=new go.Spot(Fe.x,Fe.y),Fe=we(.7,se/a,1,.5,0,te/a,1,te/a,Fe),le.spot2=new go.Spot(Fe.x,Fe.y),Ee(Fe),le}),go.Shape.setFigureParameter("IBeamArrow",0,new ot("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),Ee(se),te}),go.Shape.setFigureParameter("IBeamArrow2",0,new ot("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ot("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 le=new go.Geometry,Pe=new go.PathFigure(E,.5*a,!0);le.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,oe)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,oe)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,oe).close()),le.spot1=new go.Spot(0,z/a);var Fe=we(.7,se/a,1,.5,0,te/a,1,te/a,b());return le.spot2=new go.Spot(Fe.x,Fe.y),Ee(Fe),le}),go.Shape.setFigureParameter("Pointer",0,new ot("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),Ee(te),y}),go.Shape.setFigureParameter("RoundedPointer",0,new ot("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),Ee(te),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new ot("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),Ee(se),te}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ot("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),Ee(se),te}),go.Shape.setFigureParameter("SquareArrow",0,new ot("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,le=.1,Pe=new go.PathFigure(se*E,(le+z)*a,!0);x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(se-y)*E,le*a,(se-te)*E,(le+z)*a,(se-y)*E,(le+oe)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le-z)*a,(se-y)*E,(le-oe)*a,(se-te)*E,(le-z)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(se+y)*E,le*a,(se+te)*E,(le-z)*a,(se+y)*E,(le-oe)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le+z)*a,(se+y)*E,(le+oe)*a,(se+te)*E,(le+z)*a));var Fe=.05,Qe=xe*Fe;se=.05,le=.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,le=.25,Le.add(new go.PathSegment(go.PathSegment.Bezier,(se+Fe)*E,le*a,(se+Qe)*E,(le-Fe)*a,(se+Fe)*E,(le-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,le=.35,Le.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le-Fe)*a,(se+Fe)*E,(le-Qe)*a,(se+Qe)*E,(le-Fe)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-Fe)*E,le*a,(se-Qe)*E,(le-Fe)*a,(se-Fe)*E,(le-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,le=.7,Le.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le-Fe)*a,(se+Fe)*E,(le-Qe)*a,(se+Qe)*E,(le-Fe)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-Fe)*E,le*a,(se-Qe)*E,(le-Fe)*a,(se-Fe)*E,(le-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,le=.35,Le.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le-Fe)*a,(se+Fe)*E,(le-Qe)*a,(se+Qe)*E,(le-Fe)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-Fe)*E,le*a,(se-Qe)*E,(le-Fe)*a,(se-Fe)*E,(le-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,le=.25,Le.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le-Fe)*a,(se-Fe)*E,(le-Qe)*a,(se-Qe)*E,(le-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 ot("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 le=new go.PathFigure((z+y)*E,(z+y)*a,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*E,z*a)),le.add(new go.PathSegment(go.PathSegment.Move,z*E,(z+y)*a)),le.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 le=new go.PathFigure((te+z)*E,oe*a,!0);return x.add(le),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)),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)),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,le=.5,Pe=new go.PathFigure(.8*E,.5*a,!0);x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,.8*E,(.5+z)*a,(.4+y)*E,a)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,a)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),Pe.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,le*a,!0);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le+oe)*a,(se+oe)*E,(le+te)*a,(se+te)*E,(le+oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe)*E,le*a,(se-te)*E,(le+oe)*a,(se-oe)*E,(le+te)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le-oe)*a,(se-oe)*E,(le-te)*a,(se-te)*E,(le-oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe)*E,le*a,(se+te)*E,(le-oe)*a,(se+oe)*E,(le-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 le=new go.PathFigure((te-y)*E,oe*a,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-y)*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,oe*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+y)*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),le.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 le=new go.PathFigure(.8*E,.5*a,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.7*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a)),le.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 Pe=new go.PathFigure((te-y)*E,oe*a,!0);return x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-y)*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,oe*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+y)*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),Pe.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 le=new go.PathFigure(.2*E,0,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(te+z)*E,(oe-y)*a,.9*E,(oe-z)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.9*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),le.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,le=.5,Pe=(y-E)/2,Fe=(z-a)/2,Qe=new go.PathFigure(se*E+Pe,(le+oe)*a+Fe,!0);x.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe)*E+Pe,le*a+Fe,(se-te)*E+Pe,(le+oe)*a+Fe,(se-oe)*E+Pe,(le+te)*a+Fe)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le-oe)*a+Fe,(se-oe)*E+Pe,(le-te)*a+Fe,(se-te)*E+Pe,(le-oe)*a+Fe)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe+te*.5)*E+Pe,le*a+Fe,se*E+Pe,(le-oe)*a+Fe,(se-oe+te*.5)*E+Pe,(le-te)*a+Fe)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le+oe)*a+Fe,(se-oe+te*.5)*E+Pe,(le+te)*a+Fe,se*E+Pe,(le+oe)*a+Fe).close()),te=xe*.4,oe=.4,se=.2,le=.5;var Le=new go.PathFigure(se*E+Pe,(le+oe)*a+Fe,!0);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe)*E+Pe,le*a+Fe,(se-te)*E+Pe,(le+oe)*a+Fe,(se-oe)*E+Pe,(le+te)*a+Fe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le-oe)*a+Fe,(se-oe)*E+Pe,(le-te)*a+Fe,(se-te)*E+Pe,(le-oe)*a+Fe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe+te*.5)*E+Pe,le*a+Fe,se*E+Pe,(le-oe)*a+Fe,(se-oe+te*.5)*E+Pe,(le-te)*a+Fe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le+oe)*a+Fe,(se-oe+te*.5)*E+Pe,(le+te)*a+Fe,se*E+Pe,(le+oe)*a+Fe).close()),te=xe*.2,oe=.2,se=.5,le=.5;var ut=new go.PathFigure((se-oe)*E+Pe,le*a+Fe,!0);x.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le-oe)*a+Fe,(se-oe)*E+Pe,(le-te)*a+Fe,(se-te)*E+Pe,(le-oe)*a+Fe)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe)*E+Pe,le*a+Fe,(se+te)*E+Pe,(le-oe)*a+Fe,(se+oe)*E+Pe,(le-te)*a+Fe)),ut.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le+oe)*a+Fe,(se+oe)*E+Pe,(le+te)*a+Fe,(se+te)*E+Pe,(le+oe)*a+Fe)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe)*E+Pe,le*a+Fe,(se-te)*E+Pe,(le+oe)*a+Fe,(se-oe)*E+Pe,(le+te)*a+Fe)),te=xe*.4,oe=.4,se=.8,le=.5;var Me=new go.PathFigure(se*E+Pe,(le-oe)*a+Fe,!0);x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe)*E+Pe,le*a+Fe,(se+te)*E+Pe,(le-oe)*a+Fe,(se+oe)*E+Pe,(le-te)*a+Fe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le+oe)*a+Fe,(se+oe)*E+Pe,(le+te)*a+Fe,(se+te)*E+Pe,(le+oe)*a+Fe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe-te*.5)*E+Pe,le*a+Fe,se*E+Pe,(le+oe)*a+Fe,(se+oe-te*.5)*E+Pe,(le+te)*a+Fe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le-oe)*a+Fe,(se+oe-te*.5)*E+Pe,(le-te)*a+Fe,se*E+Pe,(le-oe)*a+Fe).close()),te=xe*.8,oe=.8,se=1,le=.5;var Ye=new go.PathFigure(se*E+Pe,(le-oe)*a+Fe,!0);return x.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe)*E+Pe,le*a+Fe,(se+te)*E+Pe,(le-oe)*a+Fe,(se+oe)*E+Pe,(le-te)*a+Fe)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le+oe)*a+Fe,(se+oe)*E+Pe,(le+te)*a+Fe,(se+te)*E+Pe,(le+oe)*a+Fe)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe-te*.5)*E+Pe,le*a+Fe,se*E+Pe,(le+oe)*a+Fe,(se+oe-te*.5)*E+Pe,(le+te)*a+Fe)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le-oe)*a+Fe,(se+oe-te*.5)*E+Pe,(le-te)*a+Fe,se*E+Pe,(le-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(),le=b(),Pe=b(),Fe=b();Be(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.5,se,se,le,Pe,Fe);var Qe=ae(le.x,le.y),Le=new go.PathFigure(le.x*E,le.y*a,!0);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,Pe.x*E,Pe.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,Pe,Fe,le,se,se),Le.add(new go.PathSegment(go.PathSegment.Bezier,le.x*E,le.y*a,Pe.x*E,Pe.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,Pe,Fe,le,se,se),Le.add(new go.PathSegment(go.PathSegment.Line,le.x*E,le.y*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,Fe.x*E,Fe.y*a,Pe.x*E,Pe.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,le,Pe,Fe),Le.add(new go.PathSegment(go.PathSegment.Bezier,le.x*E,le.y*a,Fe.x*E,Fe.y*a,Pe.x*E,Pe.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()),Ee(se),Ee(le),Ee(Pe),Ee(Fe),Ee(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,le=.5-.5*Math.SQRT2/2,Pe=1,Fe=.5,Qe=.5,Le=0,ut=new go.PathFigure(se*E,(1-le)*a,!1);return x.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,Pe*E,Fe*a,Pe*E,.7*a,Pe*E,Fe*a)),ut.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)),ut.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)),ut.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)),ut.add(new go.PathSegment(go.PathSegment.Move,(.25+z)*E,.8*a)),ut.add(new go.PathSegment(go.PathSegment.Line,(.35+z)*E,.9*a)),ut.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,le=Math.PI/4,Pe=4*(1-Math.cos(le))/(3*Math.sin(le)),Fe=Pe*.5,Qe=te,Le=te,ut=Pe*Qe,Me=Pe*Le;z.add(new go.PathSegment(go.PathSegment.Bezier,(oe-Qe)*E,se*a,(oe-(ut+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-ut)*E,(se-Le)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(oe+Qe)*E,se*a,(oe+ut)*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+(ut+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,le=.9,Pe=new go.PathFigure((se-te)*E,le*a,!0);x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le-te)*a,(se-te)*E,(le-oe)*a,(se-oe)*E,(le-te)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(se+te)*E,le*a,(se+oe)*E,(le-te)*a,(se+te)*E,(le-oe)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le+te)*a,(se+te)*E,(le+oe)*a,(se+oe)*E,(le+te)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(se-te)*E,le*a,(se-oe)*E,(le+te)*a,(se-te)*E,(le+oe)*a).close()),te=.1,oe=xe*.1,se=.8,le=.9;var Fe=new go.PathFigure((se-te)*E,le*a,!0);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le-te)*a,(se-te)*E,(le-oe)*a,(se-oe)*E,(le-te)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se+te)*E,le*a,(se+oe)*E,(le-te)*a,(se+te)*E,(le-oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le+te)*a,(se+te)*E,(le+oe)*a,(se+oe)*E,(le+te)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se-te)*E,le*a,(se-oe)*E,(le+te)*a,(se-te)*E,(le+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,le=xe*.1,Pe=.1,Fe=.9,Qe=new go.PathFigure((Pe-se)*E,Fe*a,!0);x.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*E,(Fe-se)*a,(Pe-se)*E,(Fe-le)*a,(Pe-le)*E,(Fe-se)*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+se)*E,Fe*a,(Pe+le)*E,(Fe-se)*a,(Pe+se)*E,(Fe-le)*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*E,(Fe+se)*a,(Pe+se)*E,(Fe+le)*a,(Pe+le)*E,(Fe+se)*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-se)*E,Fe*a,(Pe-le)*E,(Fe+se)*a,(Pe-se)*E,(Fe+le)*a)),se=.1,le=xe*.1,Pe=.4,Fe=.9;var Le=new go.PathFigure((Pe-se)*E,Fe*a,!0);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Pe*E,(Fe-se)*a,(Pe-se)*E,(Fe-le)*a,(Pe-le)*E,(Fe-se)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+se)*E,Fe*a,(Pe+le)*E,(Fe-se)*a,(Pe+se)*E,(Fe-le)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Pe*E,(Fe+se)*a,(Pe+se)*E,(Fe+le)*a,(Pe+le)*E,(Fe+se)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-se)*E,Fe*a,(Pe-le)*E,(Fe+se)*a,(Pe-se)*E,(Fe+le)*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 Pe=.05,Fe=xe*.05,Qe=.175,Le=.95,oe=new go.PathFigure((Qe-Pe)*E,Le*a,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le-Pe)*a,(Qe-Pe)*E,(Le-Fe)*a,(Qe-Fe)*E,(Le-Pe)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Pe)*E,Le*a,(Qe+Fe)*E,(Le-Pe)*a,(Qe+Pe)*E,(Le-Fe)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le+Pe)*a,(Qe+Pe)*E,(Le+Fe)*a,(Qe+Fe)*E,(Le+Pe)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Qe-Pe)*E,Le*a,(Qe-Fe)*E,(Le+Pe)*a,(Qe-Pe)*E,(Le+Fe)*a));var Pe=.05,Fe=xe*.05,Qe=.375,Le=.95,se=new go.PathFigure((Qe-Pe)*E,Le*a,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le-Pe)*a,(Qe-Pe)*E,(Le-Fe)*a,(Qe-Fe)*E,(Le-Pe)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Pe)*E,Le*a,(Qe+Fe)*E,(Le-Pe)*a,(Qe+Pe)*E,(Le-Fe)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le+Pe)*a,(Qe+Pe)*E,(Le+Fe)*a,(Qe+Fe)*E,(Le+Pe)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Qe-Pe)*E,Le*a,(Qe-Fe)*E,(Le+Pe)*a,(Qe-Pe)*E,(Le+Fe)*a));var Pe=.05,Fe=xe*.05,Qe=.625,Le=.95,le=new go.PathFigure((Qe-Pe)*E,Le*a,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le-Pe)*a,(Qe-Pe)*E,(Le-Fe)*a,(Qe-Fe)*E,(Le-Pe)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Pe)*E,Le*a,(Qe+Fe)*E,(Le-Pe)*a,(Qe+Pe)*E,(Le-Fe)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le+Pe)*a,(Qe+Pe)*E,(Le+Fe)*a,(Qe+Fe)*E,(Le+Pe)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(Qe-Pe)*E,Le*a,(Qe-Fe)*E,(Le+Pe)*a,(Qe-Pe)*E,(Le+Fe)*a));var Pe=.05,Fe=xe*.05,Qe=.825,Le=.95,ut=new go.PathFigure((Qe-Pe)*E,Le*a,!0);x.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le-Pe)*a,(Qe-Pe)*E,(Le-Fe)*a,(Qe-Fe)*E,(Le-Pe)*a)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Pe)*E,Le*a,(Qe+Fe)*E,(Le-Pe)*a,(Qe+Pe)*E,(Le-Fe)*a)),ut.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le+Pe)*a,(Qe+Pe)*E,(Le+Fe)*a,(Qe+Fe)*E,(Le+Pe)*a)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Qe-Pe)*E,Le*a,(Qe-Fe)*E,(Le+Pe)*a,(Qe-Pe)*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,le=.35,Pe=.775,Fe=new go.PathFigure((le-oe)*E,Pe*a,!0);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,le*E,(Pe-oe)*a,(le-oe)*E,(Pe-se)*a,(le-se)*E,(Pe-oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(le+oe)*E,Pe*a,(le+se)*E,(Pe-oe)*a,(le+oe)*E,(Pe-se)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,le*E,(Pe+oe)*a,(le+oe)*E,(Pe+se)*a,(le+se)*E,(Pe+oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(le-oe)*E,Pe*a,(le-se)*E,(Pe+oe)*a,(le-oe)*E,(Pe+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 le=new go.PathFigure(0,.7*a,!1);return x.add(le),le.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 le=new go.PathFigure(.15*E,.5*a,!1);return x.add(le),le.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 le=new go.PathFigure((te-y)*E,oe*a,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-y)*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,oe*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+y)*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),le.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()),le.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),le.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,.75*E,.475*a,.75*E,.225*a)),le.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 le=new go.PathFigure(E*.78,a*.05,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.05)),le.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.25)),le.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")},13547: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 ot={},jt="5.0",ae={},b=null,Ee=!1,we=!1,Be=null,Re=!1,We=null,xe=null,Ke=0;Ke4?parseFloat(Te):5};ot.setHTML5Codebase=function(Te,et){xe=Te,Bn(Te,et)},ot.setJavaCodebase=ot.setJavaCodebaseVersion=ot.isCompiledInstalled=ot.setPreCompiledScriptPath=ot.setPreCompiledResourcePath=function(){},ot.setHTML5CodebaseVersion=function(Te,et){var _t=parseFloat(Te);if(_t!==NaN&&_t<5){console.log("The GeoGebra HTML5 codebase version "+_t+" is deprecated. Using version latest instead.");return}We=Te,En(Te,et)},ot.getHTML5CodebaseVersion=function(){return ue},ot.getParameters=function(){return ae},ot.setFontsCSSURL=function(Te){te=Te},ot.setGiacJSURL=function(Te){},ot.setJNLPFile=function(Te){De=Te},ot.setJNLPBaseDir=function(Te){},ot.inject=function(){function Te(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var et="auto",_t=ae.id,xn,It=!1,qt=0;qt=5)return!0;var Te=ot.getAppletObject();return Te&&typeof Te.recalculateEnvironments=="function"?(Te.recalculateEnvironments(),!0):!1},ot.startAnimation=function(){var Te=ot.getAppletObject();return Te&&typeof Te.startAnimation=="function"?(Te.startAnimation(),!0):!1},ot.stopAnimation=function(){var Te=ot.getAppletObject();return Te&&typeof Te.stopAnimation=="function"?(Te.stopAnimation(),!0):!1},ot.getAppletObject=function(){var Te=ae.id!==void 0?ae.id:"ggbApplet";return window[Te]},ot.resize=function(){};var ut=function(Te,et,_t){var xn=document.createElement("param");xn.setAttribute("name",et),xn.setAttribute("value",_t),Te.appendChild(xn)},Me=function(Te){return Te&&Te!=="false"},Ye=function(Te,et,_t){se(ue)<=4.2&&(_t=!0);var xn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ue||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(xn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var It=document.createElement("div");It.classList.add("appletParameters","notranslate");var qt=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,qt=605);else{var rt=100;(Me(et.showToolBar)||Me(et.showMenuBar))&&(et.hasOwnProperty("customToolBar")&&(et.customToolbar=et.customToolBar),rt=Me(et.showMenuBar)?245:155),qt=5?(et.appletOnLoad=function(jn){var za=Te.querySelector(".ggb_preview");za&&za.parentNode.removeChild(za),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(pt),window.GGBT_wsf_view&&$(window).trigger("resize"),tt(jn)},Xn||pt.appendChild(mn)):It.appendChild(mn),pt.appendChild(It),Xn||Te.appendChild(pt),setTimeout(function(){ot.resize()},1)}else{var Ut=document.createElement("div");Ut.className="applet_scaler",Ut.style.position="relative",Ut.style.display="block",Ut.appendChild(It),Te.appendChild(Ut),et.appletOnLoad=function(jn){ot.resize(),tt(jn)}}function kt(jn,za){za&&typeof za.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(jn,za.appletOnLoad):renderGGBElement(jn),Qt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",za)}function Wn(jn,za){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:jn,params:za}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Aa){kt(Aa.article,Aa.params)}),html5AppletsToProcess=null)},se(ue)<5&&(jn.className+=" geogebraweb")):kt(jn,za)}if(xn){scriptLoadStarted=!0;for(var ia=0;ia0?(on.remove(),pt.attr("id","fullscreencontent").show(),jQuery(tt).append(pt),window.dispatchEvent(new Event("resize"))):Ye(on,et,!1),window.GGBT_wsf_view.launchFullScreen(tt)}else Ue=xn,Ye(Te,et,!1);if(!window.GGBT_wsf_view)for(Ce=0;CeTe/4*3&&(on=Te/4*3),tt=on/5.8,rt.setAttribute("src",y),rt.setAttribute("width",on),rt.setAttribute("height",tt);var pt=(Te-on)/2,Xn=(et-tt)/2;rt.style.left=pt+"px",rt.style.top=Xn+"px",It.appendChild(rt)}}return It.appendChild(Ce),It},Ft=function(Te){return Te=Te.toLowerCase(),Te==="html5"||Te==="screenshot"?Te:"html5"},Pt=["web","webSimple","web3d","tablet","tablet3d","phone"],En=function(Te,et){if(ue=Te,et){Bn(ue,!0);return}var _t=!Ee;if(_t){var xn=se(ue);!isNaN(xn)&&xn<4.4&&(_t=!1)}var It,qt;window.location.protocol.substr(0,4)==="http"?It=window.location.protocol:It="http:";var Ce=ue.indexOf("//");Ce>0?qt=ue:Ce===0?qt=It+ue:qt="https://www.geogebra.org/apps/5.2.814.0/";for(var rt in Pt)if(ue.slice(Pt[rt].length*-1)===Pt[rt]||ue.slice((Pt[rt].length+1)*-1)===Pt[rt]+"/"){Bn(qt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&_t&&!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")?qt+="webSimple/":qt+="web3d/",Bn(qt,!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 _t=ke.split("/");_t.length>1&&(!et&&_t[_t.length-2]==="webSimple"?(E="webSimple.nocache.js",a=!0):Pt.indexOf(_t[_t.length-2])>=0&&(E=_t[_t.length-2]+".nocache.js")),_t=Te.split("/"),ue=_t[_t.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 xn=parseFloat(ue);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))},Qt=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(St):St();function St(){var Te=jt;We!==null?Te=We:parseFloat(Te)<5&&(Te="5.0"),En(Te,!1),xe!==null&&Bn(xe,ze),Re=!0}return ot},GGBAppletUtils=function(){"use strict";function ot(){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=Ee(We,Re);ot()&&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(ot){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ot){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ot){var jt=c[ot];return jt==null?null:jt},r=d,webModule.__errFn=e}function B(){function ot(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=ot(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=Ee()),Be==W&&we()&&(Be=ot(o.location.href)),Be=jt(Be),Be}function C(ot){return ot.match(/^\//)||ot.match(/^[a-zA-Z]+:\/\//)?ot:webModule.__moduleBase+ot}function D(){var ot=[],jt=O,ae=[],b=[];function Ee(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]=Ee(We));return Re},webModule.__computePropValue=Ee,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})()},5862:function(ot,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 Ee}});var b=ae(41510);function Ee(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=le=>{try{se(x.next(le))}catch(Pe){z(Pe)}},oe=le=>{try{se(x.throw(le))}catch(Pe){z(Pe)}},se=le=>le.done?y(le.value):Promise.resolve(le.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,Ee.useState)(!1);return Ee.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)}},25603:function(ot,jt,ae){"use strict";var b=ae(86204),Ee=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(` +(self.webpackChunk=self.webpackChunk||[]).push([[292],{87169:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return Ke}});var b=ae(60499),Ee=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 Ee.createElement(Re.Z,(0,b.Z)({},De,{ref:ke,icon:Be}))},xe=Ee.forwardRef(We),Ke=xe},12893:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return Ke}});var b=ae(60499),Ee=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 Ee.createElement(Re.Z,(0,b.Z)({},De,{ref:ke,icon:Be}))},xe=Ee.forwardRef(We),Ke=xe},32134:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return Ke}});var b=ae(60499),Ee=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 Ee.createElement(Re.Z,(0,b.Z)({},De,{ref:ke,icon:Be}))},xe=Ee.forwardRef(We),Ke=xe},14973:function(ot,Gt){"use strict";Gt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},44388:function(ot,Gt){"use strict";Gt.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"}},49570:function(ot,Gt){"use strict";Gt.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"}},42653:function(ot,Gt,ae){"use strict";var b=ae(59301),Ee=Object.defineProperty,we=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,We=(Oe,De,ke)=>De in Oe?Ee(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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JsLTEuNzYxLS40MzZhMS43NSAxLjc1IDAgMCAxLTEuMDY1LS43NzRsLS45NTktMS41NGEuNjMzLjYzMyAwIDAgMC0uMjAzLS4yMDNabTEuNTQ0IDUuMjNhLjc1Ljc1IDAgMCAxIC4xMDIgMS40OTNsLS4xMDIuMDA3SDUuMzYyYS43NS43NSAwIDAgMS0uMTAyLTEuNDk0bC4xMDItLjAwNmgzLjQyNVoiIGZpbGw9IiMzMDYxRDAiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg=="},42128:function(ot,Gt,ae){"use strict";var b=ae(59301),Ee=Object.defineProperty,we=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,We=(Oe,De,ke)=>De in Oe?Ee(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"}));Gt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},95006:function(ot,Gt,ae){"use strict";var b=ae(59301),Ee=Object.defineProperty,we=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,We=(Oe,De,ke)=>De in Oe?Ee(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"}));Gt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},64242:function(){"use strict";function ot(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(ot.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(ot.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(ot.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(ot.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 ot))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 Gt=[];function ae(ue,E){var a=Gt.pop();return a===void 0?new go.Point(ue,E):(a.x=ue,a.y=E,a)}function b(){var ue=Gt.pop();return ue===void 0?new go.Point:ue}function Ee(ue){Gt.push(ue)}function we(ue,E,a,x,y,z,te,oe,se){se||(se=new go.Point);var le=ue-a,Pe=y-te,Fe=NaN,Qe=NaN;if(le===0)if(Pe===0)ue===a&&(Fe=ue,Qe=E);else{var Le=(z-oe)/Pe,ut=z-Le*y;Fe=ue,Qe=Le*Fe+ut}else if(Pe===0){var Me=(E-x)/le,Ye=E-Me*ue;Fe=y,Qe=Me*Fe+Ye}else{var Me=(E-x)/le,Le=(z-oe)/Pe,Ye=E-Me*ue,ut=z-Le*y;Fe=(ut-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,le,Pe,Fe,Qe,Le){var ut=1-se,Me=se,Ye=ue*ut+a*Me,Ge=E*ut+x*Me,$e=a*ut+y*Me,be=x*ut+z*Me,ft=y*ut+te*Me,ct=z*ut+oe*Me,Ft=Ye*ut+$e*Me,At=Ge*ut+be*Me,hn=$e*ut+ft*Me,Bn=be*ut+ct*Me,Ut=Ft*ut+hn*Me,Pt=At*ut+Bn*Me;le.x=Ye,le.y=Ge,Pe.x=Ft,Pe.y=At,Fe.x=Ut,Fe.y=Pt,Qe.x=hn,Qe.y=Bn,Le.x=ft,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 ot("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 ot("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 ot("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ot("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 ot("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 ot("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 ot("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),le=x-Math.min(Math.sin(oe)*x/2,te),y=new go.Geometry,Pe=new go.PathFigure(se,0,!0);return y.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,z,.2*a)),Pe.add(new go.PathSegment(go.PathSegment.Line,E-se,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,E,le)),Pe.add(new go.PathSegment(go.PathSegment.Line,.8*E,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,E,a-le)),Pe.add(new go.PathSegment(go.PathSegment.Line,E-se,a)),Pe.add(new go.PathSegment(go.PathSegment.Line,z,.8*a)),Pe.add(new go.PathSegment(go.PathSegment.Line,se,a)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,a-le)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,le).close()),y}}),go.Shape.setFigureParameter("ThinX",0,new ot("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 ot("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 ot("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 le=b(),Pe=b(),Fe=b(),Qe=b();Be(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.42,le,Pe,Fe,Qe,Qe);var Le=b(),ut=b(),Me=b();Be(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.58,Qe,Qe,Me,Le,ut);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(),ft=b(),ct=b();return Be(te,oe+z,te-y,oe+z,te-z,oe+y,te-z,oe,.58,Qe,Qe,ct,be,ft),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,ft.x*E,ft.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,le.x*E,le.y*a,Pe.x*E,Pe.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,ut.x*E,ut.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()),Ee(le),Ee(Pe),Ee(Fe),Ee(Qe),Ee(Le),Ee(ut),Ee(Me),Ee(Ye),Ee(Ge),Ee($e),Ee(be),Ee(ft),Ee(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 ot("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(),le=b(),Pe=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,Pe,Fe,le,se,se),Qe.add(new go.PathSegment(go.PathSegment.Bezier,le.x*E,le.y*a,Pe.x*E,Pe.y*a,Fe.x*E,Fe.y*a));var Le=ae(le.x,le.y);Be(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.56,se,se,le,Pe,Fe);var ut=ae(le.x,le.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,(ut.x*.1+.9)*E,.15*a)),Qe.add(new go.PathSegment(go.PathSegment.Line,(ut.x*.1+.9)*E,(ut.y*.1+.05*.9)*a)),Qe.add(new go.PathSegment(go.PathSegment.Line,ut.x*E,ut.y*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,Pe.x*E,Pe.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),Ee(se),Ee(le),Ee(Pe),Ee(Fe),Ee(Le),Ee(ut),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 ot("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ot("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,le=new go.PathFigure(0,te,!0);se.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,te)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),le.add(new go.PathSegment(go.PathSegment.Line,z,a)),le.add(new go.PathSegment(go.PathSegment.Line,z,oe)),le.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),se.spot1=new go.Spot(0,te/a);var Pe=we(0,oe/a,1,oe/a,z/E,1,1,.5,b());return se.spot2=new go.Spot(Pe.x,Pe.y),Ee(Pe),se}),go.Shape.setFigureParameter("Arrow2",0,new ot("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ot("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,le=new go.PathFigure(0,te,!0);se.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z,te)),le.add(new go.PathSegment(go.PathSegment.Line,z,0)),le.add(new go.PathSegment(go.PathSegment.Line,E,.5*a)),le.add(new go.PathSegment(go.PathSegment.Line,z,a)),le.add(new go.PathSegment(go.PathSegment.Line,z,oe)),le.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),se.spot1=new go.Spot(0,te/a);var Pe=we(0,oe/a,1,oe/a,z/E,1,1,.5,b());return se.spot2=new go.Spot(Pe.x,Pe.y),Ee(Pe),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 ot("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),Ee(se),te}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ot("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ot("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 le=new go.Geometry,Pe=new go.PathFigure(E,.5*a,!0);le.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*E,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*E,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*E,oe)),Pe.add(new go.PathSegment(go.PathSegment.Line,.3*E,z)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),Pe.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 le.spot1=new go.Spot(Fe.x,Fe.y),Fe=we(.7,se/a,1,.5,0,te/a,1,te/a,Fe),le.spot2=new go.Spot(Fe.x,Fe.y),Ee(Fe),le}),go.Shape.setFigureParameter("IBeamArrow",0,new ot("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),Ee(se),te}),go.Shape.setFigureParameter("IBeamArrow2",0,new ot("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ot("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 le=new go.Geometry,Pe=new go.PathFigure(E,.5*a,!0);le.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,te)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,se)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,oe)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,oe)),Pe.add(new go.PathSegment(go.PathSegment.Line,.2*E,z)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,z)),Pe.add(new go.PathSegment(go.PathSegment.Line,.7*E,oe).close()),le.spot1=new go.Spot(0,z/a);var Fe=we(.7,se/a,1,.5,0,te/a,1,te/a,b());return le.spot2=new go.Spot(Fe.x,Fe.y),Ee(Fe),le}),go.Shape.setFigureParameter("Pointer",0,new ot("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),Ee(te),y}),go.Shape.setFigureParameter("RoundedPointer",0,new ot("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),Ee(te),y}),go.Shape.setFigureParameter("SplitEndArrow",0,new ot("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),Ee(se),te}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ot("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),Ee(se),te}),go.Shape.setFigureParameter("SquareArrow",0,new ot("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,le=.1,Pe=new go.PathFigure(se*E,(le+z)*a,!0);x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(se-y)*E,le*a,(se-te)*E,(le+z)*a,(se-y)*E,(le+oe)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le-z)*a,(se-y)*E,(le-oe)*a,(se-te)*E,(le-z)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(se+y)*E,le*a,(se+te)*E,(le-z)*a,(se+y)*E,(le-oe)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le+z)*a,(se+y)*E,(le+oe)*a,(se+te)*E,(le+z)*a));var Fe=.05,Qe=xe*Fe;se=.05,le=.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,le=.25,Le.add(new go.PathSegment(go.PathSegment.Bezier,(se+Fe)*E,le*a,(se+Qe)*E,(le-Fe)*a,(se+Fe)*E,(le-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,le=.35,Le.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le-Fe)*a,(se+Fe)*E,(le-Qe)*a,(se+Qe)*E,(le-Fe)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-Fe)*E,le*a,(se-Qe)*E,(le-Fe)*a,(se-Fe)*E,(le-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,le=.7,Le.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le-Fe)*a,(se+Fe)*E,(le-Qe)*a,(se+Qe)*E,(le-Fe)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-Fe)*E,le*a,(se-Qe)*E,(le-Fe)*a,(se-Fe)*E,(le-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,le=.35,Le.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le-Fe)*a,(se+Fe)*E,(le-Qe)*a,(se+Qe)*E,(le-Fe)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-Fe)*E,le*a,(se-Qe)*E,(le-Fe)*a,(se-Fe)*E,(le-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,le=.25,Le.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le-Fe)*a,(se-Fe)*E,(le-Qe)*a,(se-Qe)*E,(le-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 ot("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 le=new go.PathFigure((z+y)*E,(z+y)*a,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,z*E,z*a)),le.add(new go.PathSegment(go.PathSegment.Move,z*E,(z+y)*a)),le.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 le=new go.PathFigure((te+z)*E,oe*a,!0);return x.add(le),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)),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)),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,le=.5,Pe=new go.PathFigure(.8*E,.5*a,!0);x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,.4*E,a,.8*E,(.5+z)*a,(.4+y)*E,a)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,a)),Pe.add(new go.PathSegment(go.PathSegment.Line,0,0)),Pe.add(new go.PathSegment(go.PathSegment.Line,.4*E,0)),Pe.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,le*a,!0);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le+oe)*a,(se+oe)*E,(le+te)*a,(se+te)*E,(le+oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe)*E,le*a,(se-te)*E,(le+oe)*a,(se-oe)*E,(le+te)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le-oe)*a,(se-oe)*E,(le-te)*a,(se-te)*E,(le-oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe)*E,le*a,(se+te)*E,(le-oe)*a,(se+oe)*E,(le-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 le=new go.PathFigure((te-y)*E,oe*a,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-y)*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,oe*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+y)*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),le.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 le=new go.PathFigure(.8*E,.5*a,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.7*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,0,.45*E,.75*a,.45*E,.25*a)),le.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 Pe=new go.PathFigure((te-y)*E,oe*a,!0);return x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-y)*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,oe*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+y)*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),Pe.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 le=new go.PathFigure(.2*E,0,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,E,.5*a,(te+z)*E,(oe-y)*a,.9*E,(oe-z)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,.2*E,a,.9*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),le.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,le=.5,Pe=(y-E)/2,Fe=(z-a)/2,Qe=new go.PathFigure(se*E+Pe,(le+oe)*a+Fe,!0);x.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe)*E+Pe,le*a+Fe,(se-te)*E+Pe,(le+oe)*a+Fe,(se-oe)*E+Pe,(le+te)*a+Fe)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le-oe)*a+Fe,(se-oe)*E+Pe,(le-te)*a+Fe,(se-te)*E+Pe,(le-oe)*a+Fe)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe+te*.5)*E+Pe,le*a+Fe,se*E+Pe,(le-oe)*a+Fe,(se-oe+te*.5)*E+Pe,(le-te)*a+Fe)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le+oe)*a+Fe,(se-oe+te*.5)*E+Pe,(le+te)*a+Fe,se*E+Pe,(le+oe)*a+Fe).close()),te=xe*.4,oe=.4,se=.2,le=.5;var Le=new go.PathFigure(se*E+Pe,(le+oe)*a+Fe,!0);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe)*E+Pe,le*a+Fe,(se-te)*E+Pe,(le+oe)*a+Fe,(se-oe)*E+Pe,(le+te)*a+Fe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le-oe)*a+Fe,(se-oe)*E+Pe,(le-te)*a+Fe,(se-te)*E+Pe,(le-oe)*a+Fe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe+te*.5)*E+Pe,le*a+Fe,se*E+Pe,(le-oe)*a+Fe,(se-oe+te*.5)*E+Pe,(le-te)*a+Fe)),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le+oe)*a+Fe,(se-oe+te*.5)*E+Pe,(le+te)*a+Fe,se*E+Pe,(le+oe)*a+Fe).close()),te=xe*.2,oe=.2,se=.5,le=.5;var ut=new go.PathFigure((se-oe)*E+Pe,le*a+Fe,!0);x.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le-oe)*a+Fe,(se-oe)*E+Pe,(le-te)*a+Fe,(se-te)*E+Pe,(le-oe)*a+Fe)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe)*E+Pe,le*a+Fe,(se+te)*E+Pe,(le-oe)*a+Fe,(se+oe)*E+Pe,(le-te)*a+Fe)),ut.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le+oe)*a+Fe,(se+oe)*E+Pe,(le+te)*a+Fe,(se+te)*E+Pe,(le+oe)*a+Fe)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(se-oe)*E+Pe,le*a+Fe,(se-te)*E+Pe,(le+oe)*a+Fe,(se-oe)*E+Pe,(le+te)*a+Fe)),te=xe*.4,oe=.4,se=.8,le=.5;var Me=new go.PathFigure(se*E+Pe,(le-oe)*a+Fe,!0);x.add(Me),Me.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe)*E+Pe,le*a+Fe,(se+te)*E+Pe,(le-oe)*a+Fe,(se+oe)*E+Pe,(le-te)*a+Fe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le+oe)*a+Fe,(se+oe)*E+Pe,(le+te)*a+Fe,(se+te)*E+Pe,(le+oe)*a+Fe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe-te*.5)*E+Pe,le*a+Fe,se*E+Pe,(le+oe)*a+Fe,(se+oe-te*.5)*E+Pe,(le+te)*a+Fe)),Me.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le-oe)*a+Fe,(se+oe-te*.5)*E+Pe,(le-te)*a+Fe,se*E+Pe,(le-oe)*a+Fe).close()),te=xe*.8,oe=.8,se=1,le=.5;var Ye=new go.PathFigure(se*E+Pe,(le-oe)*a+Fe,!0);return x.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe)*E+Pe,le*a+Fe,(se+te)*E+Pe,(le-oe)*a+Fe,(se+oe)*E+Pe,(le-te)*a+Fe)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le+oe)*a+Fe,(se+oe)*E+Pe,(le+te)*a+Fe,(se+te)*E+Pe,(le+oe)*a+Fe)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(se+oe-te*.5)*E+Pe,le*a+Fe,se*E+Pe,(le+oe)*a+Fe,(se+oe-te*.5)*E+Pe,(le+te)*a+Fe)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,se*E+Pe,(le-oe)*a+Fe,(se+oe-te*.5)*E+Pe,(le-te)*a+Fe,se*E+Pe,(le-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(),le=b(),Pe=b(),Fe=b();Be(te,oe-z,te+y,oe-z,te+z,oe-y,te+z,oe,.5,se,se,le,Pe,Fe);var Qe=ae(le.x,le.y),Le=new go.PathFigure(le.x*E,le.y*a,!0);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*E,oe*a,Pe.x*E,Pe.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,Pe,Fe,le,se,se),Le.add(new go.PathSegment(go.PathSegment.Bezier,le.x*E,le.y*a,Pe.x*E,Pe.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,Pe,Fe,le,se,se),Le.add(new go.PathSegment(go.PathSegment.Line,le.x*E,le.y*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*E,oe*a,Fe.x*E,Fe.y*a,Pe.x*E,Pe.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,le,Pe,Fe),Le.add(new go.PathSegment(go.PathSegment.Bezier,le.x*E,le.y*a,Fe.x*E,Fe.y*a,Pe.x*E,Pe.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()),Ee(se),Ee(le),Ee(Pe),Ee(Fe),Ee(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,le=.5-.5*Math.SQRT2/2,Pe=1,Fe=.5,Qe=.5,Le=0,ut=new go.PathFigure(se*E,(1-le)*a,!1);return x.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,Pe*E,Fe*a,Pe*E,.7*a,Pe*E,Fe*a)),ut.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)),ut.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)),ut.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)),ut.add(new go.PathSegment(go.PathSegment.Move,(.25+z)*E,.8*a)),ut.add(new go.PathSegment(go.PathSegment.Line,(.35+z)*E,.9*a)),ut.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,le=Math.PI/4,Pe=4*(1-Math.cos(le))/(3*Math.sin(le)),Fe=Pe*.5,Qe=te,Le=te,ut=Pe*Qe,Me=Pe*Le;z.add(new go.PathSegment(go.PathSegment.Bezier,(oe-Qe)*E,se*a,(oe-(ut+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-ut)*E,(se-Le)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(oe+Qe)*E,se*a,(oe+ut)*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+(ut+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,le=.9,Pe=new go.PathFigure((se-te)*E,le*a,!0);x.add(Pe),Pe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le-te)*a,(se-te)*E,(le-oe)*a,(se-oe)*E,(le-te)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(se+te)*E,le*a,(se+oe)*E,(le-te)*a,(se+te)*E,(le-oe)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le+te)*a,(se+te)*E,(le+oe)*a,(se+oe)*E,(le+te)*a)),Pe.add(new go.PathSegment(go.PathSegment.Bezier,(se-te)*E,le*a,(se-oe)*E,(le+te)*a,(se-te)*E,(le+oe)*a).close()),te=.1,oe=xe*.1,se=.8,le=.9;var Fe=new go.PathFigure((se-te)*E,le*a,!0);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le-te)*a,(se-te)*E,(le-oe)*a,(se-oe)*E,(le-te)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se+te)*E,le*a,(se+oe)*E,(le-te)*a,(se+te)*E,(le-oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,se*E,(le+te)*a,(se+te)*E,(le+oe)*a,(se+oe)*E,(le+te)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se-te)*E,le*a,(se-oe)*E,(le+te)*a,(se-te)*E,(le+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,le=xe*.1,Pe=.1,Fe=.9,Qe=new go.PathFigure((Pe-se)*E,Fe*a,!0);x.add(Qe),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*E,(Fe-se)*a,(Pe-se)*E,(Fe-le)*a,(Pe-le)*E,(Fe-se)*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+se)*E,Fe*a,(Pe+le)*E,(Fe-se)*a,(Pe+se)*E,(Fe-le)*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,Pe*E,(Fe+se)*a,(Pe+se)*E,(Fe+le)*a,(Pe+le)*E,(Fe+se)*a)),Qe.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-se)*E,Fe*a,(Pe-le)*E,(Fe+se)*a,(Pe-se)*E,(Fe+le)*a)),se=.1,le=xe*.1,Pe=.4,Fe=.9;var Le=new go.PathFigure((Pe-se)*E,Fe*a,!0);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,Pe*E,(Fe-se)*a,(Pe-se)*E,(Fe-le)*a,(Pe-le)*E,(Fe-se)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Pe+se)*E,Fe*a,(Pe+le)*E,(Fe-se)*a,(Pe+se)*E,(Fe-le)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,Pe*E,(Fe+se)*a,(Pe+se)*E,(Fe+le)*a,(Pe+le)*E,(Fe+se)*a)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(Pe-se)*E,Fe*a,(Pe-le)*E,(Fe+se)*a,(Pe-se)*E,(Fe+le)*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 Pe=.05,Fe=xe*.05,Qe=.175,Le=.95,oe=new go.PathFigure((Qe-Pe)*E,Le*a,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le-Pe)*a,(Qe-Pe)*E,(Le-Fe)*a,(Qe-Fe)*E,(Le-Pe)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Pe)*E,Le*a,(Qe+Fe)*E,(Le-Pe)*a,(Qe+Pe)*E,(Le-Fe)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le+Pe)*a,(Qe+Pe)*E,(Le+Fe)*a,(Qe+Fe)*E,(Le+Pe)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(Qe-Pe)*E,Le*a,(Qe-Fe)*E,(Le+Pe)*a,(Qe-Pe)*E,(Le+Fe)*a));var Pe=.05,Fe=xe*.05,Qe=.375,Le=.95,se=new go.PathFigure((Qe-Pe)*E,Le*a,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le-Pe)*a,(Qe-Pe)*E,(Le-Fe)*a,(Qe-Fe)*E,(Le-Pe)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Pe)*E,Le*a,(Qe+Fe)*E,(Le-Pe)*a,(Qe+Pe)*E,(Le-Fe)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le+Pe)*a,(Qe+Pe)*E,(Le+Fe)*a,(Qe+Fe)*E,(Le+Pe)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(Qe-Pe)*E,Le*a,(Qe-Fe)*E,(Le+Pe)*a,(Qe-Pe)*E,(Le+Fe)*a));var Pe=.05,Fe=xe*.05,Qe=.625,Le=.95,le=new go.PathFigure((Qe-Pe)*E,Le*a,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le-Pe)*a,(Qe-Pe)*E,(Le-Fe)*a,(Qe-Fe)*E,(Le-Pe)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Pe)*E,Le*a,(Qe+Fe)*E,(Le-Pe)*a,(Qe+Pe)*E,(Le-Fe)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le+Pe)*a,(Qe+Pe)*E,(Le+Fe)*a,(Qe+Fe)*E,(Le+Pe)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(Qe-Pe)*E,Le*a,(Qe-Fe)*E,(Le+Pe)*a,(Qe-Pe)*E,(Le+Fe)*a));var Pe=.05,Fe=xe*.05,Qe=.825,Le=.95,ut=new go.PathFigure((Qe-Pe)*E,Le*a,!0);x.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le-Pe)*a,(Qe-Pe)*E,(Le-Fe)*a,(Qe-Fe)*E,(Le-Pe)*a)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Qe+Pe)*E,Le*a,(Qe+Fe)*E,(Le-Pe)*a,(Qe+Pe)*E,(Le-Fe)*a)),ut.add(new go.PathSegment(go.PathSegment.Bezier,Qe*E,(Le+Pe)*a,(Qe+Pe)*E,(Le+Fe)*a,(Qe+Fe)*E,(Le+Pe)*a)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(Qe-Pe)*E,Le*a,(Qe-Fe)*E,(Le+Pe)*a,(Qe-Pe)*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,le=.35,Pe=.775,Fe=new go.PathFigure((le-oe)*E,Pe*a,!0);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,le*E,(Pe-oe)*a,(le-oe)*E,(Pe-se)*a,(le-se)*E,(Pe-oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(le+oe)*E,Pe*a,(le+se)*E,(Pe-oe)*a,(le+oe)*E,(Pe-se)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,le*E,(Pe+oe)*a,(le+oe)*E,(Pe+se)*a,(le+se)*E,(Pe+oe)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(le-oe)*E,Pe*a,(le-se)*E,(Pe+oe)*a,(le-oe)*E,(Pe+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 le=new go.PathFigure(0,.7*a,!1);return x.add(le),le.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 le=new go.PathFigure(.15*E,.5*a,!1);return x.add(le),le.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 le=new go.PathFigure((te-y)*E,oe*a,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe-y)*a,(te-y)*E,(oe-z)*a,(te-z)*E,(oe-y)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te+y)*E,oe*a,(te+z)*E,(oe-y)*a,(te+y)*E,(oe-z)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*E,(oe+y)*a,(te+y)*E,(oe+z)*a,(te+z)*E,(oe+y)*a)),le.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()),le.add(new go.PathSegment(go.PathSegment.Move,.5*E,.7*a)),le.add(new go.PathSegment(go.PathSegment.Line,.5*E,.5*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*E,.2*a,.75*E,.475*a,.75*E,.225*a)),le.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 le=new go.PathFigure(E*.78,a*.05,!1);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.05)),le.add(new go.PathSegment(go.PathSegment.Line,E*.66,a*.25)),le.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")},13547: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 ot={},Gt="5.0",ae={},b=null,Ee=!1,we=!1,Be=null,Re=!1,We=null,xe=null,Ke=0;Ke4?parseFloat(Te):5};ot.setHTML5Codebase=function(Te,et){xe=Te,Bn(Te,et)},ot.setJavaCodebase=ot.setJavaCodebaseVersion=ot.isCompiledInstalled=ot.setPreCompiledScriptPath=ot.setPreCompiledResourcePath=function(){},ot.setHTML5CodebaseVersion=function(Te,et){var Jt=parseFloat(Te);if(Jt!==NaN&&Jt<5){console.log("The GeoGebra HTML5 codebase version "+Jt+" is deprecated. Using version latest instead.");return}We=Te,hn(Te,et)},ot.getHTML5CodebaseVersion=function(){return ue},ot.getParameters=function(){return ae},ot.setFontsCSSURL=function(Te){te=Te},ot.setGiacJSURL=function(Te){},ot.setJNLPFile=function(Te){De=Te},ot.setJNLPBaseDir=function(Te){},ot.inject=function(){function Te(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var et="auto",Jt=ae.id,xn,Mt=!1,qt=0;qt=5)return!0;var Te=ot.getAppletObject();return Te&&typeof Te.recalculateEnvironments=="function"?(Te.recalculateEnvironments(),!0):!1},ot.startAnimation=function(){var Te=ot.getAppletObject();return Te&&typeof Te.startAnimation=="function"?(Te.startAnimation(),!0):!1},ot.stopAnimation=function(){var Te=ot.getAppletObject();return Te&&typeof Te.stopAnimation=="function"?(Te.stopAnimation(),!0):!1},ot.getAppletObject=function(){var Te=ae.id!==void 0?ae.id:"ggbApplet";return window[Te]},ot.resize=function(){};var ut=function(Te,et,Jt){var xn=document.createElement("param");xn.setAttribute("name",et),xn.setAttribute("value",Jt),Te.appendChild(xn)},Me=function(Te){return Te&&Te!=="false"},Ye=function(Te,et,Jt){se(ue)<=4.2&&(Jt=!0);var xn=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ue||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(xn=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Mt=document.createElement("div");Mt.classList.add("appletParameters","notranslate");var qt=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,qt=605);else{var rt=100;(Me(et.showToolBar)||Me(et.showMenuBar))&&(et.hasOwnProperty("customToolBar")&&(et.customToolbar=et.customToolBar),rt=Me(et.showMenuBar)?245:155),qt=5?(et.appletOnLoad=function(kn){var za=Te.querySelector(".ggb_preview");za&&za.parentNode.removeChild(za),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(pt),window.GGBT_wsf_view&&$(window).trigger("resize"),tt(kn)},Xn||pt.appendChild(gn)):Mt.appendChild(gn),pt.appendChild(Mt),Xn||Te.appendChild(pt),setTimeout(function(){ot.resize()},1)}else{var Yt=document.createElement("div");Yt.className="applet_scaler",Yt.style.position="relative",Yt.style.display="block",Yt.appendChild(Mt),Te.appendChild(Yt),et.appletOnLoad=function(kn){ot.resize(),tt(kn)}}function jt(kn,za){za&&typeof za.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(kn,za.appletOnLoad):renderGGBElement(kn),Ut("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",za)}function Vn(kn,za){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:kn,params:za}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Aa){jt(Aa.article,Aa.params)}),html5AppletsToProcess=null)},se(ue)<5&&(kn.className+=" geogebraweb")):jt(kn,za)}if(xn){scriptLoadStarted=!0;for(var ia=0;ia0?(rn.remove(),pt.attr("id","fullscreencontent").show(),jQuery(tt).append(pt),window.dispatchEvent(new Event("resize"))):Ye(rn,et,!1),window.GGBT_wsf_view.launchFullScreen(tt)}else Ue=xn,Ye(Te,et,!1);if(!window.GGBT_wsf_view)for(Ce=0;CeTe/4*3&&(rn=Te/4*3),tt=rn/5.8,rt.setAttribute("src",y),rt.setAttribute("width",rn),rt.setAttribute("height",tt);var pt=(Te-rn)/2,Xn=(et-tt)/2;rt.style.left=pt+"px",rt.style.top=Xn+"px",Mt.appendChild(rt)}}return Mt.appendChild(Ce),Mt},Ft=function(Te){return Te=Te.toLowerCase(),Te==="html5"||Te==="screenshot"?Te:"html5"},At=["web","webSimple","web3d","tablet","tablet3d","phone"],hn=function(Te,et){if(ue=Te,et){Bn(ue,!0);return}var Jt=!Ee;if(Jt){var xn=se(ue);!isNaN(xn)&&xn<4.4&&(Jt=!1)}var Mt,qt;window.location.protocol.substr(0,4)==="http"?Mt=window.location.protocol:Mt="http:";var Ce=ue.indexOf("//");Ce>0?qt=ue:Ce===0?qt=Mt+ue:qt="https://www.geogebra.org/apps/5.2.814.0/";for(var rt in At)if(ue.slice(At[rt].length*-1)===At[rt]||ue.slice((At[rt].length+1)*-1)===At[rt]+"/"){Bn(qt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Jt&&!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")?qt+="webSimple/":qt+="web3d/",Bn(qt,!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 Jt=ke.split("/");Jt.length>1&&(!et&&Jt[Jt.length-2]==="webSimple"?(E="webSimple.nocache.js",a=!0):At.indexOf(Jt[Jt.length-2])>=0&&(E=Jt[Jt.length-2]+".nocache.js")),Jt=Te.split("/"),ue=Jt[Jt.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 xn=parseFloat(ue);xn!==NaN&&xn<5&&Te.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+xn+" is deprecated. Using version latest instead."),hn("5.0",et))},Ut=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=Gt;We!==null?Te=We:parseFloat(Te)<5&&(Te="5.0"),hn(Te,!1),xe!==null&&Bn(xe,ze),Re=!0}return ot},GGBAppletUtils=function(){"use strict";function ot(){return window.GGBT_wsf_edit!==void 0}function Gt(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=Ee(We,Re);ot()&&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(ot){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ot){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ot){var Gt=c[ot];return Gt==null?null:Gt},r=d,webModule.__errFn=e}function B(){function ot(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 Gt(Re){if(!Re.match(/^\w+:\/\//)){var We=o.createElement(ub);We.src=Re+vb,Re=ot(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=Ee()),Be==W&&we()&&(Be=ot(o.location.href)),Be=Gt(Be),Be}function C(ot){return ot.match(/^\//)||ot.match(/^[a-zA-Z]+:\/\//)?ot:webModule.__moduleBase+ot}function D(){var ot=[],Gt=O,ae=[],b=[];function Ee(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]=Ee(We));return Re},webModule.__computePropValue=Ee,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var we;try{we=Cb;var Be=we.indexOf(Db);Be!=-1&&(Gt=parseInt(we.substring(Be+P),$),we=we.substring(O,Be))}catch(Re){}return webModule.__softPermutationId=Gt,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})()},5862:function(ot,Gt,ae){"use strict";ae.d(Gt,{Ax:function(){return Be},Ds:function(){return Re},KI:function(){return xe},SI:function(){return we},f1:function(){return Ee}});var b=ae(41510);function Ee(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=le=>{try{se(x.next(le))}catch(Pe){z(Pe)}},oe=le=>{try{se(x.throw(le))}catch(Pe){z(Pe)}},se=le=>le.done?y(le.value):Promise.resolve(le.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,Ee.useState)(!1);return Ee.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)}},25603:function(ot,Gt,ae){"use strict";var b=ae(86204),Ee=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=xe},85525:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return Pt}});var b=ae(59301),Ee=ae(47055),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(72067),ke=ae(30084),ze=ae(10787),Ue=ae(1891),ue=ae(43428),E=ae(95237),a=ae(43604),x={smartWrp:"smartWrp___NjRcB"},y=ae(7441),z=ae(14739),te=ae(48697),oe=ae(59301),se=(En,Bn,Qt)=>new Promise((St,Te)=>{var et=It=>{try{xn(Qt.next(It))}catch(qt){Te(qt)}},_t=It=>{try{xn(Qt.throw(It))}catch(qt){Te(qt)}},xn=It=>It.done?St(It.value):Promise.resolve(It.value).then(et,_t);xn((Qt=Qt.apply(En,Bn)).next())});const le=` +`+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()}}Gt.Z=xe},85525:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return At}});var b=ae(59301),Ee=ae(47055),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(72067),ke=ae(30084),ze=ae(10787),Ue=ae(1891),ue=ae(43428),E=ae(95237),a=ae(43604),x={smartWrp:"smartWrp___NjRcB"},y=ae(7441),z=ae(14739),te=ae(48697),oe=ae(59301),se=(hn,Bn,Ut)=>new Promise((Pt,Te)=>{var et=Mt=>{try{xn(Ut.next(Mt))}catch(qt){Te(qt)}},Jt=Mt=>{try{xn(Ut.throw(Mt))}catch(qt){Te(qt)}},xn=Mt=>Mt.done?Pt(Mt.value):Promise.resolve(Mt.value).then(et,Jt);xn((Ut=Ut.apply(hn,Bn)).next())});const le=` @@ -136,35 +136,35 @@ initArrayDisplay(); <\/script> -`;function Pe({open:En=!0,onChange:Bn,defaultValue:Qt,placement:St,width:Te,height:et,extra:_t,onDynamic:xn,showExtra:It=!0}){const qt=(0,b.useRef)(null),Ce=(0,b.useRef)(null),[rt,on]=(0,b.useState)(Qt||""),[tt,pt]=(0,b.useState)(Qt||""),[Xn,mn]=(0,b.useState)(!!En),[Ut,kt]=(0,b.useState)(1),Wn={selectOnLineNumbers:!0};(0,b.useEffect)(()=>{En&&(on(Qt),pt(Qt),mn(!0))},[En,Qt]),(0,b.useEffect)(()=>{rt!==""&&(clearTimeout(Ce.current),Ce.current=setTimeout(()=>{const nn=document.createElement("iframe");if(nn.style.width="100%",nn.style.height="100%",nn.style.border="0",qt.current){qt.current.innerHTML="",qt.current.appendChild(nn);const Ba=nn.contentDocument||nn.contentWindow.document;Ba.open(),Ba.write(rt),Ba.close()}},1e3))},[En,rt]);const ia=nn=>{on(nn),Bn==null||Bn(nn,tt)};return oe.createElement(ue.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Xn,width:It?700:"100%",height:et||"100vh",rootClassName:x.smartWrp,destroyOnClose:!0,onClose:()=>mn(!1),extra:It&&oe.createElement("div",null,oe.createElement(z.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ut,onChange:nn=>kt(nn)}),oe.createElement(te.Z,{type:"primary",className:"ml20",onClick:()=>se(this,null,function*(){yield xn(rt,()=>{mn(!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:Ut===1?"block":"none"}},oe.createElement("div",{className:"h100",ref:qt})),oe.createElement(a.Z,{flex:"1",style:{display:Ut===2?"block":"none"}},oe.createElement(y.ZP,{height:"90vh",value:Qt,language:"html",theme:"vs",showMiniMap:!1,options:Wn,onChange:ia}))))}var Fe=Pe,Qe=Object.defineProperty,Le=Object.defineProperties,ut=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,$e=(En,Bn,Qt)=>Bn in En?Qe(En,Bn,{enumerable:!0,configurable:!0,writable:!0,value:Qt}):En[Bn]=Qt,be=(En,Bn)=>{for(var Qt in Bn||(Bn={}))Ye.call(Bn,Qt)&&$e(En,Qt,Bn[Qt]);if(Me)for(var Qt of Me(Bn))Ge.call(Bn,Qt)&&$e(En,Qt,Bn[Qt]);return En},ft=(En,Bn)=>Le(En,ut(Bn)),dt=(En,Bn)=>{var Qt={};for(var St in En)Ye.call(En,St)&&Bn.indexOf(St)<0&&(Qt[St]=En[St]);if(En!=null&&Me)for(var St of Me(En))Bn.indexOf(St)<0&&Ge.call(En,St)&&(Qt[St]=En[St]);return Qt},Pt=({onFinish:En,value:Bn,streamingStatus:Qt,cancelIndex:St,loadImage:Te,onDynamic:et})=>{const[_t,xn]=(0,b.useState)(""),[It,qt]=(0,b.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Ce,rt]=(0,b.useState)(0),[on,tt]=(0,b.useState)(!1),pt=Ut=>Ut.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(kt,Wn)=>`$$${Wn.trim()}$$`).replace(/\\\(([\s\S]*?)\\\)/g,'$$$$$1$$$$').replace(/\\\[([\s\S]*?)\\\]/g,'$$$$$1$$$$').replace(/_{2,}/g,"`$&`"),Xn=()=>{tt(!0),En==null||En()};(0,b.useEffect)(()=>{const Ut=Te?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A +`;function Pe({open:hn=!0,onChange:Bn,defaultValue:Ut,placement:Pt,width:Te,height:et,extra:Jt,onDynamic:xn,showExtra:Mt=!0}){const qt=(0,b.useRef)(null),Ce=(0,b.useRef)(null),[rt,rn]=(0,b.useState)(Ut||""),[tt,pt]=(0,b.useState)(Ut||""),[Xn,gn]=(0,b.useState)(!!hn),[Yt,jt]=(0,b.useState)(1),Vn={selectOnLineNumbers:!0};(0,b.useEffect)(()=>{hn&&(rn(Ut),pt(Ut),gn(!0))},[hn,Ut]),(0,b.useEffect)(()=>{rt!==""&&(clearTimeout(Ce.current),Ce.current=setTimeout(()=>{const tn=document.createElement("iframe");if(tn.style.width="100%",tn.style.height="100%",tn.style.border="0",qt.current){qt.current.innerHTML="",qt.current.appendChild(tn);const Ba=tn.contentDocument||tn.contentWindow.document;Ba.open(),Ba.write(rt),Ba.close()}},1e3))},[hn,rt]);const ia=tn=>{rn(tn),Bn==null||Bn(tn,tt)};return oe.createElement(ue.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Xn,width:Mt?700:"100%",height:et||"100vh",rootClassName:x.smartWrp,destroyOnClose:!0,onClose:()=>gn(!1),extra:Mt&&oe.createElement("div",null,oe.createElement(z.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Yt,onChange:tn=>jt(tn)}),oe.createElement(te.Z,{type:"primary",className:"ml20",onClick:()=>se(this,null,function*(){yield xn(rt,()=>{gn(!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:Yt===1?"block":"none"}},oe.createElement("div",{className:"h100",ref:qt})),oe.createElement(a.Z,{flex:"1",style:{display:Yt===2?"block":"none"}},oe.createElement(y.ZP,{height:"90vh",value:Ut,language:"html",theme:"vs",showMiniMap:!1,options:Vn,onChange:ia}))))}var Fe=Pe,Qe=Object.defineProperty,Le=Object.defineProperties,ut=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,$e=(hn,Bn,Ut)=>Bn in hn?Qe(hn,Bn,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):hn[Bn]=Ut,be=(hn,Bn)=>{for(var Ut in Bn||(Bn={}))Ye.call(Bn,Ut)&&$e(hn,Ut,Bn[Ut]);if(Me)for(var Ut of Me(Bn))Ge.call(Bn,Ut)&&$e(hn,Ut,Bn[Ut]);return hn},ft=(hn,Bn)=>Le(hn,ut(Bn)),ct=(hn,Bn)=>{var Ut={};for(var Pt in hn)Ye.call(hn,Pt)&&Bn.indexOf(Pt)<0&&(Ut[Pt]=hn[Pt]);if(hn!=null&&Me)for(var Pt of Me(hn))Bn.indexOf(Pt)<0&&Ge.call(hn,Pt)&&(Ut[Pt]=hn[Pt]);return Ut},At=({onFinish:hn,value:Bn,streamingStatus:Ut,cancelIndex:Pt,loadImage:Te,onDynamic:et})=>{const[Jt,xn]=(0,b.useState)(""),[Mt,qt]=(0,b.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Ce,rt]=(0,b.useState)(0),[rn,tt]=(0,b.useState)(!1),pt=Yt=>Yt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(jt,Vn)=>`$$${Vn.trim()}$$`).replace(/\\\(([\s\S]*?)\\\)/g,'$$$$$1$$$$').replace(/\\\[([\s\S]*?)\\\]/g,'$$$$$1$$$$').replace(/_{2,}/g,"`$&`"),Xn=()=>{tt(!0),hn==null||hn()};(0,b.useEffect)(()=>{const Yt=Te?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A -${Bn}`:Bn,kt=pt(Ut);if(!on)if(Te||!Qt||St>0){xn(kt),rt(kt.length),(!Qt||St>0)&&!Te&&Xn();return}else if((kt==null?void 0:kt.length)<4)xn(kt),rt(kt.length);else if(Ce{xn(kt.slice(0,Ce+2)),rt(nn=>nn+2)},Wn>10?Math.max(500/(Wn/2),20):50);return()=>clearInterval(ia)}else Qt||Xn()},[Bn,Qt,St,Te,Ce]);const mn=(0,b.useMemo)(()=>b.createElement("section",{className:`${xe.answer} fadeIn animated edu_md`},b.createElement(Ee.UG,{remarkPlugins:[ke.Z,ze.Z],rehypePlugins:[De.Z,Be.Z],components:{code(Ut){var kt=Ut,{node:Wn,inline:ia,className:nn,children:Ba}=kt,Ka=dt(kt,["node","inline","className","children"]);const Fa=/language-(\w+)/.exec(nn||""),jn=String(Ba).trim();return ia||!Fa?b.createElement("code",be({className:nn},Ka),Ba):b.createElement("code",{className:xe.codeCopy,"data-text":`\`\`\`${Fa?Fa[1]:""} +${Bn}`:Bn,jt=pt(Yt);if(!rn)if(Te||!Ut||Pt>0){xn(jt),rt(jt.length),(!Ut||Pt>0)&&!Te&&Xn();return}else if((jt==null?void 0:jt.length)<4)xn(jt),rt(jt.length);else if(Ce{xn(jt.slice(0,Ce+2)),rt(tn=>tn+2)},Vn>10?Math.max(500/(Vn/2),20):50);return()=>clearInterval(ia)}else Ut||Xn()},[Bn,Ut,Pt,Te,Ce]);const gn=(0,b.useMemo)(()=>b.createElement("section",{className:`${xe.answer} fadeIn animated edu_md`},b.createElement(Ee.UG,{remarkPlugins:[ke.Z,ze.Z],rehypePlugins:[De.Z,Be.Z],components:{code(Yt){var jt=Yt,{node:Vn,inline:ia,className:tn,children:Ba}=jt,Ka=ct(jt,["node","inline","className","children"]);const Fa=/language-(\w+)/.exec(tn||""),kn=String(Ba).trim();return ia||!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"&&on&&b.createElement("button",{className:xe.runCode,onClick:()=>{qt(be({},ft(be({},It),{open:++It.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:Ut}){var kt;const Wn=(kt=Ut.properties)==null?void 0:kt.src;return b.createElement(Oe.Z,{src:Wn,width:320,"data-text":Wn,onLoad:()=>Te&&setTimeout(()=>Xn(),500)})}}},on?_t:`${_t}__`)),[_t]);return b.createElement(b.Fragment,null,b.createElement(Fe,{defaultValue:It.defaultValue,open:It.open,language:It.language,height:It.height,onChange:(Ut,kt)=>{xn(_t.replaceAll(kt,Ut))},onDynamic:et}),mn)}},77557:function(ot,jt,ae){"use strict";var b=ae(59301);const Ee=({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=Ee},24745:function(ot,jt,ae){"use strict";var b=ae(59301);const Ee=({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+` +\`\`\``},b.createElement(We.CopyToClipboard,{text:kn,onCopy:()=>Ke.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},b.createElement("button",null,"\u590D\u5236")),Fa[1]==="html"&&rn&&b.createElement("button",{className:xe.runCode,onClick:()=>{qt(be({},ft(be({},Mt),{open:++Mt.open,defaultValue:kn,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),kn))},img({node:Yt}){var jt;const Vn=(jt=Yt.properties)==null?void 0:jt.src;return b.createElement(Oe.Z,{src:Vn,width:320,"data-text":Vn,onLoad:()=>Te&&setTimeout(()=>Xn(),500)})}}},rn?Jt:`${Jt}__`)),[Jt]);return b.createElement(b.Fragment,null,b.createElement(Fe,{defaultValue:Mt.defaultValue,open:Mt.open,language:Mt.language,height:Mt.height,onChange:(Yt,jt)=>{xn(Jt.replaceAll(jt,Yt))},onDynamic:et}),gn)}},77557:function(ot,Gt,ae){"use strict";var b=ae(59301);const Ee=({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};Gt.Z=Ee},24745:function(ot,Gt,ae){"use strict";var b=ae(59301);const Ee=({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=xe(De),De});jt.Z=Ee},25062:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return ze}});var b=ae(59301),Ee=ae(43418),we=ae(95237),Be=ae(93948),Re="data:image/png;base64,iVBORw0KGgoAA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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=",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`},le=()=>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(Ee.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],le())),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],le())),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],le())),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)))))}}},80199:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return Bn}});var b=ae(59301),Ee=ae(38854),we=ae(8591),Be=ae(6848),Re=ae(92832),We=ae(3113),xe=ae(85525),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:Qt,children:St})=>{const{left:Te=0,top:et=0}=Qt||{},[_t,xn]=(0,b.useState)(Te),[It,qt]=(0,b.useState)(et),Ce=(0,b.useRef)(null),rt=()=>{if(Ce.current){const on=Ce.current.offsetWidth,tt=Ce.current.offsetHeight,pt=window.innerWidth,Xn=window.innerHeight;let mn=Te,Ut=et;Te+on>pt&&(mn=pt-on),mn<0&&(mn=0),et+tt>Xn&&(Ut=Xn-tt),Ut<0&&(Ut=0),xn(mn),qt(Ut)}};return(0,b.useEffect)(()=>{if(!Ce.current||!Qt)return;const on=new ResizeObserver(()=>{rt()});return on.observe(Ce.current),()=>{on.disconnect()}},[Te,et,Qt]),(0,b.useEffect)(()=>{Qt&&rt()},[Te,et,Qt]),Qt?b.createElement("div",{ref:Ce,style:{position:"fixed",left:`${_t}px`,top:`${It}px`,zIndex:1050}},St):null},ke=ae(41510),ze=ae(56102),Ue=ae(25603),ue=Object.defineProperty,E=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(Qt,St,Te)=>St in Qt?ue(Qt,St,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Qt[St]=Te,oe=(Qt,St)=>{for(var Te in St||(St={}))y.call(St,Te)&&te(Qt,Te,St[Te]);if(x)for(var Te of x(St))z.call(St,Te)&&te(Qt,Te,St[Te]);return Qt},se=(Qt,St)=>E(Qt,a(St)),le=(Qt,St,Te)=>new Promise((et,_t)=>{var xn=Ce=>{try{qt(Te.next(Ce))}catch(rt){_t(rt)}},It=Ce=>{try{qt(Te.throw(Ce))}catch(rt){_t(rt)}},qt=Ce=>Ce.done?et(Ce.value):Promise.resolve(Ce.value).then(xn,It);qt((Te=Te.apply(Qt,St)).next())}),Fe=({visible:Qt,position:St,selectText:Te,applyRefinedText:et,fetchUrl:_t,noRestrictModal:xn})=>{var It;const[qt,Ce]=(0,b.useState)(!1),[rt,on]=(0,b.useState)([]),[tt,pt]=(0,b.useState)(""),[Xn,mn]=(0,b.useState)(1),[Ut,kt]=(0,b.useState)(""),[Wn,ia]=(0,b.useState)(!1),nn=(0,b.useRef)(null),[Ba,Ka]=(0,b.useState)(!1),[Fa,jn]=(0,b.useState)(0),za=(0,b.useRef)(!1),Aa=((It=rt==null?void 0:rt[(rt==null?void 0:rt.length)-1])==null?void 0:It.loading)===!0;(0,b.useEffect)(()=>{if(Qt){mn(1);return}Ka(!1),Ce(!1),fr(),jn(0),on([]),mn(0)},[Qt]);const fr=()=>{var Da,Ra;pt(""),kt(""),(Ra=(Da=nn.current)==null?void 0:Da.cancelRequest)==null||Ra.call(Da)},ua=(...Da)=>le(void 0,[...Da],function*(Ra="",Br=rt){const nr=Date.now(),Rr=[...Br,{text:Ra,key:nr,sender:"user",show:!0},{loading:!0,key:nr,sender:"AI",show:!0}];mn(2),on(Rr);const Mo=da(Br),Yt={no_record_times:!0,prompt:Ra,history:Mo};nn.current=new Ue.Z(ke.Z.API_SERVER+_t,Yt),yield new Promise(Yn=>{nn.current.on("data",ea=>{const{chunk:{msg:ba},full:Ze}=ea,Mt=ba==="error";Ka(!0),kt(sn(Ze)),on(en=>en.map((pn,Rt)=>Rt===en.length-1?se(oe({},pn),{text:Ze,loading:!1,error:Mt}):pn))}),nn.current.on("done",()=>Yn()),nn.current.on("error",ea=>{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(ea)==="[object Object]"&&ea.status===-9&&(mn(1),xn(ea.data)),on(Ze=>Ze.map((Mt,en)=>en===Ze.length-1?se(oe({},Mt),{text:ba,loading:!1,error:!0}):Mt)),Yn()}),nn.current.on("cancelled",()=>Yn()),nn.current.startStream()}),Ce(!1)}),Zn=Da=>{pt(Da.target.value)},da=Da=>Da.reduce((Br,nr)=>{if(nr.sender==="user"){const Rr=Da.find(Mo=>Mo.key===nr.key&&Mo.sender==="AI");Rr&&(Rr!=null&&Rr.text)&&!(Rr!=null&&Rr.error)&&Br.push({question:nr.text,answer:Rr.text})}return Br},[]),Ea=()=>{if(Wa)return;const Da=Et("\u6539\u5199");fr(),Ce(!0),ua(Da)},xa=Da=>{if(Da.key==="Enter"&&!Da.shiftKey){if(Da.preventDefault(),za.current||Ca)return;Ea()}},_a=()=>{var Da,Ra;jn(Br=>Br+1),(Ra=(Da=nn.current)==null?void 0:Da.cancelRequest)==null||Ra.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")}],sn=(Da="")=>{const Ra=["\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,nr)=>{Ra.push(`\u7B54\u6848${nr+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${nr+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${nr+1})\u8F93\u51FA\uFF1A`)}),Ra.forEach(Br=>{const nr=new RegExp(Br,"g");Da=Da.replace(nr,`**${Br}** `)}),Da},Et=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 Ra="";Da.key==="1"&&(Ra=Et("\u6DA6\u8272")),Da.key==="2"&&(Ra=Et("\u6269\u5199")),Da.key==="3"&&(Ra=Et("\u7F29\u5199")),fr(),Ce(!0),ua(Ra)},Za=()=>{const Da=rt.splice(rt.length-2),{text:Ra}=(Da==null?void 0:Da[0])||{};fr(),Ce(!0),ua(Ra,rt)},Ca=qt||Ba,Wa=(tt==null?void 0:tt.trim())==="";return Qt?b.createElement(Ee.Z,{open:Wa&&!Ca&&(Wn||!Ut),overlayStyle:{minWidth:200},menu:{items:Sn,onClick:Tt}},b.createElement(De,{position:St},b.createElement("div",{className:Ke.wrap},Xn===2&&b.createElement(b.Fragment,null,b.createElement("div",{className:Ke.chatContainer},Aa&&b.createElement("div",{className:Ke.loadingWrp},b.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),b.createElement("div",{className:"ai-loading"})),Ut&&b.createElement(xe.Z,{cancelIndex:Fa,streamingStatus:qt,loadImage:!1,onFinish:()=>le(void 0,null,function*(){jn(0),setTimeout(()=>Ka(!1),0)}),value:Ut})),b.createElement("div",{className:Ke.btnContainer},b.createElement("div",{onClick:()=>et(!0,Ut),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,Ut),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:Ut,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:Za,className:Ke.btn},b.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),b.createElement(Be.Z,{title:"\u5220\u9664"},b.createElement("div",{onClick:()=>{mn(1),fr(),on([])},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:()=>ia(!0),onBlur:()=>setTimeout(()=>ia(!1),300),onChange:Zn,onPressEnter:xa,onCompositionStart:()=>za.current=!0,onCompositionEnd:()=>za.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:Ea}))))):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,ut=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ge=(Qt,St,Te)=>St in Qt?Le(Qt,St,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Qt[St]=Te,$e=(Qt,St)=>{for(var Te in St||(St={}))Me.call(St,Te)&&Ge(Qt,Te,St[Te]);if(ut)for(var Te of ut(St))Ye.call(St,Te)&&Ge(Qt,Te,St[Te]);return Qt};const be=Qt=>React.createElement("svg",$e({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Qt),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 ft="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Ft=(0,b.forwardRef)(({initialContent:Qt,onButtonClick:St},Te)=>{const[et,_t]=(0,b.useState)(null),[xn,It]=(0,b.useState)(null),[qt,Ce]=(0,b.useState)(""),[rt,on]=(0,b.useState)(null),tt=Te,pt=nn=>{const Ba=document.elementFromPoint(10,nn),Ka=document.createRange();let Fa=null;const jn=document.createTreeWalker(tt.current,NodeFilter.SHOW_TEXT,{acceptNode:Ea=>{const xa=document.createRange();xa.selectNodeContents(Ea);const _a=xa.getBoundingClientRect();return _a.top<=nn&&_a.bottom>=nn?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let za="",Aa,fr,ua=null,Zn=null,da=null;for(;Aa=jn.nextNode();){Aa.parentNode.getAttribute("data-select")==="disabled"&&(fr=!0),za+=Aa.textContent,Zn||(Zn=Aa),da=Aa;const Ea=document.createRange();Ea.selectNodeContents(Aa);const xa=Ea.getBoundingClientRect();ua===null&&(ua=xa.top)}if(Zn&&da&&!fr){const Ea=document.createRange();Ea.setStart(Zn,0),Ea.setEnd(da,da.textContent.length),on(Ea)}else on(null);return It(ua-1),fr?"":za.trim()};function Xn(nn){for(;nn.parentElement&&nn.parentElement.tagName.toLowerCase()!=="section";){var Ba=window.getComputedStyle(nn.parentElement);if(Ba.pointerEvents==="none")return!0;nn=nn.parentElement}return!1}const mn=nn=>{var Ba,Ka;if(Xn(nn.target)){It(-1e6);return}if(((Ka=(Ba=document.getSelection())==null?void 0:Ba.toString)==null?void 0:Ka.call(Ba))!==""){It(-1e6);return}const Fa=pt(nn.clientY);if((Fa==null?void 0:Fa.trim())===""){It(-1e6);return}const jn=tt.current.getBoundingClientRect();_t(jn.left-30),Ce(Fa)},Ut=()=>{},kt=nn=>{St&&qt&&St(qt,nn.clientX,nn.clientY,rt)},Wn=()=>{if(rt){const nn=window.getSelection();nn.removeAllRanges(),nn.addRange(rt)}},ia=()=>{window.getSelection().removeAllRanges()};return(0,b.useEffect)(()=>{const nn=tt.current;return nn.addEventListener("mousemove",mn),nn.addEventListener("mouseleave",Ut),()=>{nn.removeEventListener("mousemove",mn),nn.removeEventListener("mouseleave",Ut),ia()}},[Qt]),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:()=>{ia(),It(null),Ce(""),on(null)}},b.createElement("div",{className:Qe.button,onClick:kt},b.createElement("img",{src:ft}),b.createElement("span",null,"AI\u6539\u5199"))))}),Pt={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},Bn=({nodeRef:Qt,noRestrictModal:St})=>{const[Te,et]=(0,b.useState)(null),[_t,xn]=(0,b.useState)(null),[It,qt]=(0,b.useState)(!1),[Ce,rt]=(0,b.useState)(null),[on,tt]=(0,b.useState)(!1),[pt,Xn]=(0,b.useState)(!1),mn=Qt,Ut=(0,b.useRef)(null),kt=(0,b.useRef)(null),[Wn,ia]=(0,b.useState)("");(0,b.useEffect)(()=>{Te!=null&&Te.toString()&&ia(Te==null?void 0:Te.toString())},[Te==null?void 0:Te.toString()]);const nn=()=>{const jn=window.getSelection(),za=mn.current.scrollTop,Aa=mn.current.getBoundingClientRect();if(jn.rangeCount>0&&jn.toString().length>0){const fr=jn.getRangeAt(0);et(fr.cloneRange());const ua=fr.getBoundingClientRect(),Zn=40;let da=ua.top+za-5+Zn;da{if(!jn||jn.rangeCount===0){tt(!1);return}const Aa=jn.getRangeAt(0).getBoundingClientRect(),fr=window.getComputedStyle(mn.current),ua=parseInt(fr.lineHeight),Zn=parseInt(fr.paddingTop),da=mn.current.scrollTop,Ea=mn.current.getBoundingClientRect(),xa=Aa.top-Ea.top+da,_a=Math.floor((xa-Zn)/ua),Sn=Zn+_a*ua-da;rt(Sn),tt(!0)},Ka=jn=>{mn.current&&!mn.current.contains(jn.target)&&Xn(!1)};(0,b.useEffect)(()=>{const jn=mn.current;return jn.addEventListener("scroll",nn),jn.addEventListener("input",nn),jn.addEventListener("click",nn),jn.addEventListener("mouseup",nn),jn.addEventListener("keyup",nn),jn.addEventListener("click",nn),document.addEventListener("mousedown",Ka),()=>{jn.removeEventListener("scroll",nn),jn.removeEventListener("input",nn),jn.removeEventListener("click",nn),jn.removeEventListener("mouseup",nn),jn.removeEventListener("keyup",nn),jn.removeEventListener("click",nn),document.removeEventListener("mousedown",Ka)}},[]);const Fa=(jn=!0,za)=>{if(!Te)return;const Aa=kt.current.querySelector("section.edu_md").innerHTML.replace(/]*>([\s\S]*?)<\/p>/g,"$1"),fr=Te.cloneRange(),ua=window.getSelection();if(ua.removeAllRanges(),ua.addRange(fr),jn){fr.deleteContents();const Zn=document.createElement("div");Zn.innerHTML=Aa;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=" "+Aa;const da=Array.from(Zn.childNodes);for(;da.length>0;)fr.insertNode(da.pop())}ua.removeAllRanges(),et(null),qt(!1),xn(null)};return b.createElement("section",{ref:kt},_t&&b.createElement("div",{ref:Ut,className:Pt.toolbar,style:{top:_t==null?void 0:_t.top,left:_t==null?void 0:_t.left}},b.createElement("div",{className:Pt.button,onClick:()=>qt(!0)},b.createElement("img",{src:ft}),b.createElement("span",null,"AI\u6539\u5199"))),b.createElement(Fe,{key:JSON.stringify(_t),noRestrictModal:St,visible:It,position:_t,selectText:Wn,applyRefinedText:Fa,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),mn.current&&b.createElement(Ft,{ref:mn,onButtonClick:(jn,za,Aa,fr)=>{et(fr),qt(!0),ia(jn),xn({left:za,top:Aa+20})}}))}},51874:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return Re}});var b=ae(59301),Ee=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(Ee.default,{centered:!0,open:We,title:"\u63D0\u793A",width:620,zIndex:1100,onCancel:De,onOk:Oe,footer:xe>0?void 0:null},ke())}},46736:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return a},Q:function(){return ue}});var b=ae(59301),Ee={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},we=ae(25603),Be=ae(41510),Re=ae(85525),We=ae(80199),xe=ae(77557),Ke=ae(26412),Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAADGlJREFUeF7tnVlQHMcZx7/umT0AcSjGBonDOmxdgV2Ww0iWIsmxrfIhJ1VJ2W+uilgEjqtclTwmLxQvyYur8uCKYmFQXMmbXUlV4lw+YsmHkBECdhdkSZZlyUJgScEWh7h2d7pTvcUuw2hhp3dm2dmleWPn66+/+f+me7p7vplGkOQfpRTVt56vgJCyARAtpAg5knS1JosRhBQMdMpJbddPd+68jhCiyQiBkil0sO2qc2J4yoMQLU6mvCizVAFCyLdFlUX9p9o3z/Fqww2Qtbxa7+BuAY9X6pXtGcSBEzVneFsiN8C6lqFKqihuc8MX3pgCTrAFurt2fc2jBj/AI/5GiuGBaCVIgtv2vOnAmd89OstT8Vq33fPL7pzgdJ6LKotaAoLx/k73Jzza8ANs8h1SD1gcBdMfCHg8ki/aMojzk3lPRH9hAxtfp+tfPN64AdZ6/c+pK+jvcr/DU6GwXaqAUT0FwDRfUQJgmgEYrV4ANKpgmssLgGkGYLR6AdCogmkuLwCmGYDR6gVAowqmubwAmGYARqsXAI0qmObyAmCaARitXgA0qmCaywuAaQZgtHoB0KiCaS4vAKYZgNHqBUCjCqa5vACYZgBGqxcAjSqY5vKmARR5nmkmmaD65fJII0/kRZ6nteFpo1PnkSKR55lZ8KLRxvJIRZ5nZgJkUbM8UlSnyfPcXpkLPz1QBPm5mXti2Rj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2A+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{Pe(z.next(Fe))}catch(Qe){oe(Qe)}},le=Fe=>{try{Pe(z.throw(Fe))}catch(Qe){oe(Qe)}},Pe=Fe=>Fe.done?te(Fe.value):Promise.resolve(Fe.value).then(se,le);Pe((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:le,noRestrictModal:Pe=()=>{},showEditableToolbar:Fe,bottomOffset:Qe=110,loadingText:Le,showEmptyData:ut=!0,onStatusChange:Me,stringTransformer:Ye,bottomContainerNode:Ge})=>{const[$e,be]=(0,b.useState)(!1),[ft,dt]=(0,b.useState)(""),[Ft,Pt]=(0,b.useState)(0),[En,Bn]=(0,b.useState)(!1),Qt=(0,b.useRef)(null),St=(0,b.useRef)(null),Te=(0,b.useRef)(null),et=(0,b.useRef)(null),_t=(0,xe.Z)({scrollBoxRef:et,bottomInspectRef:Te,contentRef:St,status:En,bottomOffset:Qe}),xn=$e||En;(0,b.useEffect)(()=>{z==null||z(ft)},[ft]),(0,b.useEffect)(()=>{Me==null||Me({contentRef:St,status:xn,value:ft,open:It,close:qt})},[xn,ft]);const It=rt=>Ue(void 0,null,function*(){be(!0),dt(""),Pt(0);const on=le;rt!=null&&rt.fetchUrl&&delete rt.fetchUrl,Qt.current=new we.Z(`${Be.Z.API_SERVER}${on}`,rt),yield new Promise((tt,pt)=>{Qt.current.on("data",Xn=>{let{chunk:{content:mn,type:Ut}}=Xn;Bn(!0),Ut==="text"&&dt(kt=>Ye?Ye(kt+mn):kt+mn)}),Qt.current.on("done",()=>{tt()}),Qt.current.on("error",Xn=>{Object.prototype.toString.call(Xn)==="[object Object]"&&Xn.status===-1&&ze.ZP.warning((Xn==null?void 0:Xn.message)||""),tt(),se==null||se(Xn)}),Qt.current.on("cancelled",()=>{tt(),oe==null||oe()}),Qt.current.startStream()}),be(!1)}),qt=()=>{var rt,on;Pt(1),(on=(rt=Qt.current)==null?void 0:rt.cancelRequest)==null||on.call(rt),be(!1),Bn(!1)},Ce=(0,b.useMemo)(()=>St.current?b.createElement(We.Z,{noRestrictModal:Pe,nodeRef:St}):b.createElement(b.Fragment,null),[St.current]);return b.createElement(b.Fragment,null,b.createElement("div",{className:ke()(Ee.container,x),style:y,ref:et},b.createElement("div",{ref:St,className:Ee.liWrap,contentEditable:!xn},ft&&b.createElement(Re.Z,{cancelIndex:Ft,streamingStatus:$e,loadImage:!1,onFinish:()=>Ue(void 0,null,function*(){Pt(0),setTimeout(()=>Bn(!1),0),te==null||te(ft)}),value:ft})),!ft&&!xn&&b.createElement("div",{className:Ee.imgBox},b.createElement("img",{width:56,src:Oe}),b.createElement("span",null,"\u9884\u89C8\u533A")),ut&&xn&&b.createElement(Ke.Z,{text:Le}),!_t&&b.createElement("div",{className:Ee.backBottom,onClick:()=>{et.current.scrollTop=et.current.scrollHeight}},b.createElement("i",{className:"iconfont icon-huidaodibu"})),b.createElement("div",{ref:Te}),Ge),!xn&&Fe&&Ce)}},26412:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return Be}});var b=ae(59301),Ee={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},Be=({text:Re})=>b.createElement("div",null,b.createElement("div",{className:Ee.loading},b.createElement("div",{className:Ee.dot}),b.createElement("div",{className:Ee.dot}),b.createElement("div",{className:Ee.dot})),!!Re&&b.createElement("div",{className:"mt5"},Re))},77095:function(ot,jt,ae){"use strict";ae.d(jt,{o:function(){return b}});const b=Ee=>(Ee=Ee.replace(new RegExp("(?$1'),Ee=Ee.replace(new RegExp("(?]*>/g,""),De=xe(De),De});Gt.Z=Ee},25062:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return ze}});var b=ae(59301),Ee=ae(43418),we=ae(95237),Be=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+wPQBuscNnIBwPCDyQDZHnAEsXtPHzzo6fPG1p/vu/khQeDcvcr8A8cC8xKzV240fuW4AoSAQCAI+H+AzAdMEwADLliBYFmATR2SBZAbY0mWhsyuZvfRM48Tzj4i9vpv3+aHf7QMH4qXVqbPnr8ETqWxIi0SAUEgCURoFDD+QswDuANkswJkEIZ8HkmnA0QBfALj/2U6Mr4kt+u3nOo9vamryS+jEpiUBjQFaJp3WNRYSr1kQGstBtwCdMfm5ZeV1BqYxmMxmIGGoaTZ0x4TuOLZBmoox6K5jGw7t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},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`},le=()=>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(Ee.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],le())),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],le())),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],le())),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)))))}}},80199:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return Bn}});var b=ae(59301),Ee=ae(38854),we=ae(8591),Be=ae(6848),Re=ae(92832),We=ae(3113),xe=ae(85525),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:Ut,children:Pt})=>{const{left:Te=0,top:et=0}=Ut||{},[Jt,xn]=(0,b.useState)(Te),[Mt,qt]=(0,b.useState)(et),Ce=(0,b.useRef)(null),rt=()=>{if(Ce.current){const rn=Ce.current.offsetWidth,tt=Ce.current.offsetHeight,pt=window.innerWidth,Xn=window.innerHeight;let gn=Te,Yt=et;Te+rn>pt&&(gn=pt-rn),gn<0&&(gn=0),et+tt>Xn&&(Yt=Xn-tt),Yt<0&&(Yt=0),xn(gn),qt(Yt)}};return(0,b.useEffect)(()=>{if(!Ce.current||!Ut)return;const rn=new ResizeObserver(()=>{rt()});return rn.observe(Ce.current),()=>{rn.disconnect()}},[Te,et,Ut]),(0,b.useEffect)(()=>{Ut&&rt()},[Te,et,Ut]),Ut?b.createElement("div",{ref:Ce,style:{position:"fixed",left:`${Jt}px`,top:`${Mt}px`,zIndex:1050}},Pt):null},ke=ae(41510),ze=ae(56102),Ue=ae(25603),ue=Object.defineProperty,E=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(Ut,Pt,Te)=>Pt in Ut?ue(Ut,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Ut[Pt]=Te,oe=(Ut,Pt)=>{for(var Te in Pt||(Pt={}))y.call(Pt,Te)&&te(Ut,Te,Pt[Te]);if(x)for(var Te of x(Pt))z.call(Pt,Te)&&te(Ut,Te,Pt[Te]);return Ut},se=(Ut,Pt)=>E(Ut,a(Pt)),le=(Ut,Pt,Te)=>new Promise((et,Jt)=>{var xn=Ce=>{try{qt(Te.next(Ce))}catch(rt){Jt(rt)}},Mt=Ce=>{try{qt(Te.throw(Ce))}catch(rt){Jt(rt)}},qt=Ce=>Ce.done?et(Ce.value):Promise.resolve(Ce.value).then(xn,Mt);qt((Te=Te.apply(Ut,Pt)).next())}),Fe=({visible:Ut,position:Pt,selectText:Te,applyRefinedText:et,fetchUrl:Jt,noRestrictModal:xn})=>{var Mt;const[qt,Ce]=(0,b.useState)(!1),[rt,rn]=(0,b.useState)([]),[tt,pt]=(0,b.useState)(""),[Xn,gn]=(0,b.useState)(1),[Yt,jt]=(0,b.useState)(""),[Vn,ia]=(0,b.useState)(!1),tn=(0,b.useRef)(null),[Ba,Ka]=(0,b.useState)(!1),[Fa,kn]=(0,b.useState)(0),za=(0,b.useRef)(!1),Aa=((Mt=rt==null?void 0:rt[(rt==null?void 0:rt.length)-1])==null?void 0:Mt.loading)===!0;(0,b.useEffect)(()=>{if(Ut){gn(1);return}Ka(!1),Ce(!1),vr(),kn(0),rn([]),gn(0)},[Ut]);const vr=()=>{var Da,Ra;pt(""),jt(""),(Ra=(Da=tn.current)==null?void 0:Da.cancelRequest)==null||Ra.call(Da)},ua=(...Da)=>le(void 0,[...Da],function*(Ra="",xr=rt){const ar=Date.now(),kr=[...xr,{text:Ra,key:ar,sender:"user",show:!0},{loading:!0,key:ar,sender:"AI",show:!0}];gn(2),rn(kr);const Mo=da(xr),Kt={no_record_times:!0,prompt:Ra,history:Mo};tn.current=new Ue.Z(ke.Z.API_SERVER+Jt,Kt),yield new Promise(Un=>{tn.current.on("data",$n=>{const{chunk:{msg:ba},full:Ze}=$n,kt=ba==="error";Ka(!0),jt(ln(Ze)),rn($t=>$t.map((vn,Tt)=>Tt===$t.length-1?se(oe({},vn),{text:Ze,loading:!1,error:kt}):vn))}),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&&(gn(1),xn($n.data)),rn(Ze=>Ze.map((kt,$t)=>$t===Ze.length-1?se(oe({},kt),{text:ba,loading:!1,error:!0}):kt)),Un()}),tn.current.on("cancelled",()=>Un()),tn.current.startStream()}),Ce(!1)}),Tn=Da=>{pt(Da.target.value)},da=Da=>Da.reduce((xr,ar)=>{if(ar.sender==="user"){const kr=Da.find(Mo=>Mo.key===ar.key&&Mo.sender==="AI");kr&&(kr!=null&&kr.text)&&!(kr!=null&&kr.error)&&xr.push({question:ar.text,answer:kr.text})}return xr},[]),Ea=()=>{if(Wa)return;const Da=St("\u6539\u5199");vr(),Ce(!0),ua(Da)},xa=Da=>{if(Da.key==="Enter"&&!Da.shiftKey){if(Da.preventDefault(),za.current||Ca)return;Ea()}},_a=()=>{var Da,Ra;kn(xr=>xr+1),(Ra=(Da=tn.current)==null?void 0:Da.cancelRequest)==null||Ra.call(Da),Ce(!1),Ka(!1)},En=[{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")}],ln=(Da="")=>{const Ra=["\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((xr,ar)=>{Ra.push(`\u7B54\u6848${ar+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${ar+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${ar+1})\u8F93\u51FA\uFF1A`)}),Ra.forEach(xr=>{const ar=new RegExp(xr,"g");Da=Da.replace(ar,`**${xr}** `)}),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`,Zt=Da=>{let Ra="";Da.key==="1"&&(Ra=St("\u6DA6\u8272")),Da.key==="2"&&(Ra=St("\u6269\u5199")),Da.key==="3"&&(Ra=St("\u7F29\u5199")),vr(),Ce(!0),ua(Ra)},Za=()=>{const Da=rt.splice(rt.length-2),{text:Ra}=(Da==null?void 0:Da[0])||{};vr(),Ce(!0),ua(Ra,rt)},Ca=qt||Ba,Wa=(tt==null?void 0:tt.trim())==="";return Ut?b.createElement(Ee.Z,{open:Wa&&!Ca&&(Vn||!Yt),overlayStyle:{minWidth:200},menu:{items:En,onClick:Zt}},b.createElement(De,{position:Pt},b.createElement("div",{className:Ke.wrap},Xn===2&&b.createElement(b.Fragment,null,b.createElement("div",{className:Ke.chatContainer},Aa&&b.createElement("div",{className:Ke.loadingWrp},b.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),b.createElement("div",{className:"ai-loading"})),Yt&&b.createElement(xe.Z,{cancelIndex:Fa,streamingStatus:qt,loadImage:!1,onFinish:()=>le(void 0,null,function*(){kn(0),setTimeout(()=>Ka(!1),0)}),value:Yt})),b.createElement("div",{className:Ke.btnContainer},b.createElement("div",{onClick:()=>et(!0,Yt),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,Yt),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:Yt,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:Za,className:Ke.btn},b.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),b.createElement(Be.Z,{title:"\u5220\u9664"},b.createElement("div",{onClick:()=>{gn(1),vr(),rn([])},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:()=>ia(!0),onBlur:()=>setTimeout(()=>ia(!1),300),onChange:Tn,onPressEnter:xa,onCompositionStart:()=>za.current=!0,onCompositionEnd:()=>za.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:Ea}))))):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,ut=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ge=(Ut,Pt,Te)=>Pt in Ut?Le(Ut,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Te}):Ut[Pt]=Te,$e=(Ut,Pt)=>{for(var Te in Pt||(Pt={}))Me.call(Pt,Te)&&Ge(Ut,Te,Pt[Te]);if(ut)for(var Te of ut(Pt))Ye.call(Pt,Te)&&Ge(Ut,Te,Pt[Te]);return Ut};const be=Ut=>React.createElement("svg",$e({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Ut),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 ft="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",Ft=(0,b.forwardRef)(({initialContent:Ut,onButtonClick:Pt},Te)=>{const[et,Jt]=(0,b.useState)(null),[xn,Mt]=(0,b.useState)(null),[qt,Ce]=(0,b.useState)(""),[rt,rn]=(0,b.useState)(null),tt=Te,pt=tn=>{const Ba=document.elementFromPoint(10,tn),Ka=document.createRange();let Fa=null;const kn=document.createTreeWalker(tt.current,NodeFilter.SHOW_TEXT,{acceptNode:Ea=>{const xa=document.createRange();xa.selectNodeContents(Ea);const _a=xa.getBoundingClientRect();return _a.top<=tn&&_a.bottom>=tn?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let za="",Aa,vr,ua=null,Tn=null,da=null;for(;Aa=kn.nextNode();){Aa.parentNode.getAttribute("data-select")==="disabled"&&(vr=!0),za+=Aa.textContent,Tn||(Tn=Aa),da=Aa;const Ea=document.createRange();Ea.selectNodeContents(Aa);const xa=Ea.getBoundingClientRect();ua===null&&(ua=xa.top)}if(Tn&&da&&!vr){const Ea=document.createRange();Ea.setStart(Tn,0),Ea.setEnd(da,da.textContent.length),rn(Ea)}else rn(null);return Mt(ua-1),vr?"":za.trim()};function Xn(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 gn=tn=>{var Ba,Ka;if(Xn(tn.target)){Mt(-1e6);return}if(((Ka=(Ba=document.getSelection())==null?void 0:Ba.toString)==null?void 0:Ka.call(Ba))!==""){Mt(-1e6);return}const Fa=pt(tn.clientY);if((Fa==null?void 0:Fa.trim())===""){Mt(-1e6);return}const kn=tt.current.getBoundingClientRect();Jt(kn.left-30),Ce(Fa)},Yt=()=>{},jt=tn=>{Pt&&qt&&Pt(qt,tn.clientX,tn.clientY,rt)},Vn=()=>{if(rt){const tn=window.getSelection();tn.removeAllRanges(),tn.addRange(rt)}},ia=()=>{window.getSelection().removeAllRanges()};return(0,b.useEffect)(()=>{const tn=tt.current;return tn.addEventListener("mousemove",gn),tn.addEventListener("mouseleave",Yt),()=>{tn.removeEventListener("mousemove",gn),tn.removeEventListener("mouseleave",Yt),ia()}},[Ut]),b.createElement("div",{className:Qe["hover-line-container2"]},xn!==null&&b.createElement("div",{className:Qe["line-button-container"],style:{top:xn,left:et},onMouseEnter:()=>{Vn()},onMouseLeave:()=>{ia(),Mt(null),Ce(""),rn(null)}},b.createElement("div",{className:Qe.button,onClick:jt},b.createElement("img",{src:ft}),b.createElement("span",null,"AI\u6539\u5199"))))}),At={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},Bn=({nodeRef:Ut,noRestrictModal:Pt})=>{const[Te,et]=(0,b.useState)(null),[Jt,xn]=(0,b.useState)(null),[Mt,qt]=(0,b.useState)(!1),[Ce,rt]=(0,b.useState)(null),[rn,tt]=(0,b.useState)(!1),[pt,Xn]=(0,b.useState)(!1),gn=Ut,Yt=(0,b.useRef)(null),jt=(0,b.useRef)(null),[Vn,ia]=(0,b.useState)("");(0,b.useEffect)(()=>{Te!=null&&Te.toString()&&ia(Te==null?void 0:Te.toString())},[Te==null?void 0:Te.toString()]);const tn=()=>{const kn=window.getSelection(),za=gn.current.scrollTop,Aa=gn.current.getBoundingClientRect();if(kn.rangeCount>0&&kn.toString().length>0){const vr=kn.getRangeAt(0);et(vr.cloneRange());const ua=vr.getBoundingClientRect(),Tn=40;let da=ua.top+za-5+Tn;da{if(!kn||kn.rangeCount===0){tt(!1);return}const Aa=kn.getRangeAt(0).getBoundingClientRect(),vr=window.getComputedStyle(gn.current),ua=parseInt(vr.lineHeight),Tn=parseInt(vr.paddingTop),da=gn.current.scrollTop,Ea=gn.current.getBoundingClientRect(),xa=Aa.top-Ea.top+da,_a=Math.floor((xa-Tn)/ua),En=Tn+_a*ua-da;rt(En),tt(!0)},Ka=kn=>{gn.current&&!gn.current.contains(kn.target)&&Xn(!1)};(0,b.useEffect)(()=>{const kn=gn.current;return kn.addEventListener("scroll",tn),kn.addEventListener("input",tn),kn.addEventListener("click",tn),kn.addEventListener("mouseup",tn),kn.addEventListener("keyup",tn),kn.addEventListener("click",tn),document.addEventListener("mousedown",Ka),()=>{kn.removeEventListener("scroll",tn),kn.removeEventListener("input",tn),kn.removeEventListener("click",tn),kn.removeEventListener("mouseup",tn),kn.removeEventListener("keyup",tn),kn.removeEventListener("click",tn),document.removeEventListener("mousedown",Ka)}},[]);const Fa=(kn=!0,za)=>{if(!Te)return;const Aa=jt.current.querySelector("section.edu_md").innerHTML.replace(/]*>([\s\S]*?)<\/p>/g,"$1"),vr=Te.cloneRange(),ua=window.getSelection();if(ua.removeAllRanges(),ua.addRange(vr),kn){vr.deleteContents();const Tn=document.createElement("div");Tn.innerHTML=Aa;const da=Array.from(Tn.childNodes);for(;da.length>0;)vr.insertNode(da.pop())}else{vr.collapse(!1);const Tn=document.createElement("div");Tn.innerHTML=" "+Aa;const da=Array.from(Tn.childNodes);for(;da.length>0;)vr.insertNode(da.pop())}ua.removeAllRanges(),et(null),qt(!1),xn(null)};return b.createElement("section",{ref:jt},Jt&&b.createElement("div",{ref:Yt,className:At.toolbar,style:{top:Jt==null?void 0:Jt.top,left:Jt==null?void 0:Jt.left}},b.createElement("div",{className:At.button,onClick:()=>qt(!0)},b.createElement("img",{src:ft}),b.createElement("span",null,"AI\u6539\u5199"))),b.createElement(Fe,{key:JSON.stringify(Jt),noRestrictModal:Pt,visible:Mt,position:Jt,selectText:Vn,applyRefinedText:Fa,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),gn.current&&b.createElement(Ft,{ref:gn,onButtonClick:(kn,za,Aa,vr)=>{et(vr),qt(!0),ia(kn),xn({left:za,top:Aa+20})}}))}},51874:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return Re}});var b=ae(59301),Ee=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(Ee.default,{centered:!0,open:We,title:"\u63D0\u793A",width:620,zIndex:1100,onCancel:De,onOk:Oe,footer:xe>0?void 0:null},ke())}},46736:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return a},Q:function(){return ue}});var b=ae(59301),Ee={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},we=ae(25603),Be=ae(41510),Re=ae(85525),We=ae(80199),xe=ae(77557),Ke=ae(26412),Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAADGlJREFUeF7tnVlQHMcZx7/umT0AcSjGBonDOmxdgV2Ww0iWIsmxrfIhJ1VJ2W+uilgEjqtclTwmLxQvyYur8uCKYmFQXMmbXUlV4lw+YsmHkBECdhdkSZZlyUJgScEWh7h2d7pTvcUuw2hhp3dm2dmleWPn66+/+f+me7p7vplGkOQfpRTVt56vgJCyARAtpAg5knS1JosRhBQMdMpJbddPd+68jhCiyQiBkil0sO2qc2J4yoMQLU6mvCizVAFCyLdFlUX9p9o3z/Fqww2Qtbxa7+BuAY9X6pXtG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SKSCLx3RxP3FfXFACbDAM9ne4bei8GXrusBsjEuPeB6oJECMYdVDqvTm/gEe9gG5VnRv1bQgrZipAUWyq7x0eKIWY9wEh6nzewbcmcbMlNCsYlO75WLDlv65kvsuWxEMEbQmGlUp0BEHXJuk0cJk5QvwOcQohZDzAqbGPzYEmIEk880WOjVUATMlYmqYJn7cg2R2zziIQxCilKDgYpHxAtpAgt+0EENmDJr3T1zY4ESkNh8KwGxDUDkEFir9FNj47vWO7NWp4uVG3L5nm51HHh9Ikdo4sXjL98NSCuKYBRcZ9ouVI4Rie34TAqMfSlCkKDsoS+eLrM9XW8JbLG5tRDXJMAoyCffuWy49bMZAWiUikgqZACiaVkLNcaI/NJCrfA7vjm8IZt3yVa20w1xDUNUA3p+effkm4U7Cqcg2A+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{Pe(z.next(Fe))}catch(Qe){oe(Qe)}},le=Fe=>{try{Pe(z.throw(Fe))}catch(Qe){oe(Qe)}},Pe=Fe=>Fe.done?te(Fe.value):Promise.resolve(Fe.value).then(se,le);Pe((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:le,noRestrictModal:Pe=()=>{},showEditableToolbar:Fe,bottomOffset:Qe=110,loadingText:Le,showEmptyData:ut=!0,onStatusChange:Me,stringTransformer:Ye,bottomContainerNode:Ge})=>{const[$e,be]=(0,b.useState)(!1),[ft,ct]=(0,b.useState)(""),[Ft,At]=(0,b.useState)(0),[hn,Bn]=(0,b.useState)(!1),Ut=(0,b.useRef)(null),Pt=(0,b.useRef)(null),Te=(0,b.useRef)(null),et=(0,b.useRef)(null),Jt=(0,xe.Z)({scrollBoxRef:et,bottomInspectRef:Te,contentRef:Pt,status:hn,bottomOffset:Qe}),xn=$e||hn;(0,b.useEffect)(()=>{z==null||z(ft)},[ft]),(0,b.useEffect)(()=>{Me==null||Me({contentRef:Pt,status:xn,value:ft,open:Mt,close:qt})},[xn,ft]);const Mt=rt=>Ue(void 0,null,function*(){be(!0),ct(""),At(0);const rn=le;rt!=null&&rt.fetchUrl&&delete rt.fetchUrl,Ut.current=new we.Z(`${Be.Z.API_SERVER}${rn}`,rt),yield new Promise((tt,pt)=>{Ut.current.on("data",Xn=>{let{chunk:{content:gn,type:Yt}}=Xn;Bn(!0),Yt==="text"&&ct(jt=>Ye?Ye(jt+gn):jt+gn)}),Ut.current.on("done",()=>{tt()}),Ut.current.on("error",Xn=>{Object.prototype.toString.call(Xn)==="[object Object]"&&Xn.status===-1&&ze.ZP.warning((Xn==null?void 0:Xn.message)||""),tt(),se==null||se(Xn)}),Ut.current.on("cancelled",()=>{tt(),oe==null||oe()}),Ut.current.startStream()}),be(!1)}),qt=()=>{var rt,rn;At(1),(rn=(rt=Ut.current)==null?void 0:rt.cancelRequest)==null||rn.call(rt),be(!1),Bn(!1)},Ce=(0,b.useMemo)(()=>Pt.current?b.createElement(We.Z,{noRestrictModal:Pe,nodeRef:Pt}):b.createElement(b.Fragment,null),[Pt.current]);return b.createElement(b.Fragment,null,b.createElement("div",{className:ke()(Ee.container,x),style:y,ref:et},b.createElement("div",{ref:Pt,className:Ee.liWrap,contentEditable:!xn},ft&&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(ft)}),value:ft})),!ft&&!xn&&b.createElement("div",{className:Ee.imgBox},b.createElement("img",{width:56,src:Oe}),b.createElement("span",null,"\u9884\u89C8\u533A")),ut&&xn&&b.createElement(Ke.Z,{text:Le}),!Jt&&b.createElement("div",{className:Ee.backBottom,onClick:()=>{et.current.scrollTop=et.current.scrollHeight}},b.createElement("i",{className:"iconfont icon-huidaodibu"})),b.createElement("div",{ref:Te}),Ge),!xn&&Fe&&Ce)}},26412:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return Be}});var b=ae(59301),Ee={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},Be=({text:Re})=>b.createElement("div",null,b.createElement("div",{className:Ee.loading},b.createElement("div",{className:Ee.dot}),b.createElement("div",{className:Ee.dot}),b.createElement("div",{className:Ee.dot})),!!Re&&b.createElement("div",{className:"mt5"},Re))},77095:function(ot,Gt,ae){"use strict";ae.d(Gt,{o:function(){return b}});const b=Ee=>(Ee=Ee.replace(new RegExp("(?$1'),Ee=Ee.replace(new RegExp("(?$1 -`),Ee)},57466:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return x}});var b=ae(59301),Ee=ae(17574),we=ae(93758),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 le=Qe=>{try{Fe(te.next(Qe))}catch(Le){se(Le)}},Pe=Qe=>{try{Fe(te.throw(Qe))}catch(Le){se(Le)}},Fe=Qe=>Qe.done?oe(Qe.value):Promise.resolve(Qe.value).then(le,Pe);Fe((te=te.apply(y,z)).next())}),x=y=>{var z=y,{value:te,onChange:oe,defaultValue:se,disabled:le}=z,Pe=ue(z,["value","onChange","defaultValue","disabled"]);const[Fe,Qe]=(0,b.useState)([]),[Le,ut]=(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),ut("2")}}),Ye=$e=>{function be(ft){const dt=ft.children,Ft=Array.isArray(dt)&&dt.length>0,Pt=ft==null?void 0:ft.group_id;return{title:b.createElement("div",{title:ft==null?void 0:ft.name,className:Be.name},ft==null?void 0:ft.name),value:Pt,key:Pt,icon:b.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:Ft?dt==null?void 0:dt.map(En=>be(En)):[]}}return $e==null?void 0:$e.map(ft=>be(ft))},Ge=se?{defaultExpandedKeys:[0],defaultSelectedKeys:[0]}:{selectedKeys:te,defaultExpandedKeys:te};return b.createElement("div",{className:Be.customTree},b.createElement(Ee.default,ze(Ue(ze({key:Le},Ge),{showIcon:!0,treeData:Fe,onSelect:oe,disabled:le}),Pe)))}},60636:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return Be}});var b=ae(59301),Ee={digitalLabel:"digitalLabel___tImKs",active:"active___Ck70Q"},Be=({number:Re,active:We,className:xe})=>b.createElement("div",{className:`${Ee.digitalLabel} ${We?Ee.active:""} ${xe}`},Re)},54185:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return y}});var b=ae(59301),Ee=ae(17574),we={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},Be=ae(73631),Re=ae(5623),We=ae(93758),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,le)=>{var Pe=Le=>{try{Qe(oe.next(Le))}catch(ut){le(ut)}},Fe=Le=>{try{Qe(oe.throw(Le))}catch(ut){le(ut)}},Qe=Le=>Le.done?se(Le.value):Promise.resolve(Le.value).then(Pe,Fe);Qe((oe=oe.apply(z,te)).next())}),y=({value:z,onChange:te,scrollId:oe})=>{const[se,le]=(0,b.useState)([]);(0,b.useEffect)(()=>{Pe()},[]);const Pe=()=>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||[])}];le(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)})}),ut=(Ye,Ge)=>{le($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(Ee.default,ue({showLine:{showLeafIcon:!1},showIcon:!0,treeData:se,className:we.folderWrapper,onSelect:te,onExpand:ut},Me)))}},70659:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return We}});var b=ae(60324),Ee={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:Ee.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:Ee.contact},Be.createElement("div",{className:Ee.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:Ee.text,style:Ke},"\u9AD8\u6D88\u8017"))}},94094:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return ke}});var b=ae(59301),Ee={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},we=ae(92310),Be=ae.n(we),Re=ae(71418),We=ae(2859),xe=ae(23789),Ke=ae(21331),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),le=(0,b.useRef)(null),[Pe,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&&ut()):(document.body.removeAttribute("data-custom"),se.current&&(document.head.removeChild(se.current),se.current=null))},[ze==null?void 0:ze.visible]);const ut=()=>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 ft=yield(0,xe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ze.title,file:be.dataUrl}});ft!=null&&ft.id&&!z?(yield(0,xe.ZP)(`/api/attachments/${ze.id}/add_subitem.json`,{method:"post",body:{subitem_id:ft==null?void 0:ft.id,settings:JSON.stringify(be.state)}})).status===0&&x():ft!=null&&ft.id&&x(ft),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(dt=>{const Ft=document.querySelector(dt.name);Ft&&Ft.setAttribute("title",dt.title)})},$e=()=>{oe.current=new We.hP(te.current),oe.current.targetRoot=le.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:Pe,tip:Qe,style:{position:"absolute"}},b.createElement("div",{ref:le,className:Be()(Ee.imageDimensions,Ue,ue?Ee.fullWidth:""),style:E},b.createElement("img",{className:Ee.img,ref:te}))))}},30561:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return fr},$:function(){return Aa}});var b=ae(59301),Ee={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=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1MfOy2Gw+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",le=ae(23789),Pe=ae(54185),Fe=ae(5623),Qe=ae(1891),Le=ae(10438),ut=ae(30315),Me=ae(15342),Ye=ae.n(Me),Ge=(ua,Zn,da)=>new Promise((Ea,xa)=>{var _a=Et=>{try{sn(da.next(Et))}catch(Tt){xa(Tt)}},Sn=Et=>{try{sn(da.throw(Et))}catch(Tt){xa(Tt)}},sn=Et=>Et.done?Ea(Et.value):Promise.resolve(Et.value).then(_a,Sn);sn((da=da.apply(ua,Zn)).next())}),be=b.memo(({tagName:ua="div",value:Zn="",className:da,style:Ea={},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 Za=Zn==null?void 0:Zn.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const Ca of Za)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 Et,Tt;if(xa&&Sn.current){const Ca=Sn.current.cloneNode(!0),Wa=Ca.querySelectorAll("span.edu_latex");for(let Da of Wa){const Ra=Da.getAttribute("title"),Br=document.createTextNode(Ra||""),nr=Da;(Tt=(Et=nr.parentNode)==null?void 0:Et.replaceChild)==null||Tt.call(Et,Br,nr)}xa(Ca.innerHTML)}};return b.createElement(b.Fragment,null,b.createElement(ua,{ref:Sn,contentEditable:!0,className:da,style:Ea,onBlur:sn}))}),ft=ae(35219),dt=ae(27284),Ft=ae(43428),Pt=ae(6848),En=ae(43604),Bn={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},Qt=ae(77095),St=ae(21331),Te=ae(25062),et=ae(24745),_t=ae(51874),xn=ae(46736),It="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAHr1JREFUaEPNmweYnVW1/n/7a6fMmcm0ZEoSUkkCSQgJCVWKoAI2FAH1iqBYwXvFLogF8S9XvRYElUeqIJegFOmEKgiICUkgJBBCkpnMZHoyc6ad9pW9r3t/58wEsJfn+Z8z5zn9fN+711rvetdaewT/rsvi073GBEsdrIN8214WOfbCyLHnSks0SSGqFCCFlSOS/VLKNhXJbULKTVYgXwhKwWZevNX/d5ya+Ff+6OzZx9WGycRbhZs+JbKdYyPbmqZsR5Qsi7xrIS2LSAgQFuh7fdHIVQRSmZsVhsqSciARyifswL/LsuX9w8/fOfyvOs9/CeB5845bEuJ9WljidOm6tZHtEjkOkWPjuw4l2yZMJAk1UKsMVh9ZCVAqBhxJiEJzE2GEE0Z4ocSOwmE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F65dxQmHz+NDZxxBKpEkNSVFmE3w8iMOj2x5kZ78ANWJBNPqpyESJQIZUvJDk8Km1qUpFovDc2e13Mp4+vIv/uasf/i/Wf4R0vqri/mh2RfXLlow66St+fXvbu/qOW4o3z/1iMXzxOnvOIpUlYNjW2QaUvSvTbFlS462PQMUo2EaG2pIpjzT+y4UlQpDuUchH3ec6DdeUqy5+M7P/v/1j1p/aiXuv/zyxDOP7ViyYP7Ug9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",qt=(ua,Zn,da)=>new Promise((Ea,xa)=>{var _a=Et=>{try{sn(da.next(Et))}catch(Tt){xa(Tt)}},Sn=Et=>{try{sn(da.throw(Et))}catch(Tt){xa(Tt)}},sn=Et=>Et.done?Ea(Et.value):Promise.resolve(Et.value).then(_a,Sn);sn((da=da.apply(ua,Zn)).next())}),rt=(0,b.forwardRef)(({onUpdateNum:ua,onSave:Zn},da)=>{var Ea;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),[sn,Et]=(0,b.useState)([]),[Tt,Za]=(0,b.useState)(null),[Ca,Wa]=(0,b.useState)([]),[Da,Ra]=(0,b.useState)(0),[Br,nr]=(0,b.useState)(0),[Rr,Mo]=(0,b.useState)(!1),[Yt,Yn]=(0,b.useState)(""),[ea,ba]=(0,b.useState)(0),[Ze,Mt]=(0,b.useState)(0),[en,pn]=(0,b.useState)(0),[Rt,Qn]=(0,b.useState)(0),[_n,Je]=(0,b.useState)(0),[nt,Xe]=(0,b.useState)(0),[ln,Cn]=(0,b.useState)(0),[Nn,wa]=(0,b.useState)(0),[pa,na]=(0,b.useState)(xn.Q),{contentRef:ya,value:qn,status:zt,open:Ma,close:pr}=pa,So=(0,et.Z)({contentRef:ya,status:zt}),{openProgress:$a,closeProgress:Gt,CreateProgressModal:qr,progressOpen:Ua}=(0,Te.Z)();(0,b.useEffect)(()=>{Tt&&Dr(),Tt===!1&&(pr(),ua==null||ua(),Et([]),Yn(""),ba(0),Mt(0),pn(0),Qn(0),Je(0),Xe(0),Cn(0),wa(0))},[Tt]);const Sr=()=>{Za(!0)};(0,b.useImperativeHandle)(da,()=>({onClick:Sr}));const ir=ga=>{Mo(!0),Ra(ga),nr(0)},Wr=ga=>qt(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}),Dr=()=>qt(void 0,null,function*(){const ga=yield(0,le.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});ga.status===0&&(Ra(ga.total_number),nr(ga.remaining_number))}),ao=ga=>(ga=ga||"",ga=String(ga),ga=ga.replace(/\s+/g,""),ga),kr=(ga=!0)=>qt(void 0,null,function*(){var ur,Va;const hn=[{name:"\u5355\u9009\u9898",num:ea||0},{name:"\u591A\u9009\u9898",num:Ze||0},{name:"\u5224\u65AD\u9898",num:en||0},{name:"\u586B\u7A7A\u9898",num:Rt||0},{name:"\u7B80\u7B54\u9898",num:_n||0},{name:"\u7EC4\u5408\u9898",num:Nn||0},{name:"\u7F16\u7A0B\u9898",num:nt||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:ln||0}];if(ga){if(ao(Yt)){if(Yt.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(!ao(Yt)&&!(sn!=null&&sn.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 Jn=hn.reduce((sr,tr)=>sr+tr.num,0);if(Jn===0){We.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(Jn>30){We.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}if(Da!==-1){Mo(!0);return}}Mo(!1);const La={scene_type:6,request_identifier:Math.random(),file_id:(Va=(ur=sn[0])==null?void 0:ur.response)==null?void 0:Va.id,content:Yt,count_arr:hn.map(Jn=>Jn.num).join(",")};yield Ma(La),Dr()}),ca=()=>qt(void 0,null,function*(){const ga=So();if(Zn){Za(!1),Zn(ga);return}$a(),Sn(!0),Wa([]);const ur=new FormData;ur.append("html",ga);const Va=yield(0,le.ZP)("/api/intelligent_imports/import.json",{method:"post",body:ur},!0);if((Va==null?void 0:Va.status)===0)if(Va!=null&&Va.data){Gt(100),Wa(Va==null?void 0:Va.data);return}else We.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");Sn(!1),Gt()}),an=()=>qt(void 0,null,function*(){const ga=So();(0,St.RG)(ga)}),gr=["uploading","error"].includes((Ea=sn==null?void 0:sn[0])==null?void 0:Ea.status);return b.createElement(b.Fragment,null,b.createElement(_t.Z,{visible:Rr,totalCount:Da,usedCount:Br,onCancel:()=>Mo(!1),onOk:()=>kr(!1)}),b.createElement(Ft.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:b.createElement("div",{className:Bn.extraHeader},b.createElement(Oe.Z,{align:"middle"},!zt&&!!qn&&b.createElement(b.Fragment,null,b.createElement(x.op,{onClick:ca,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),b.createElement(x.op,{onClick:an,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:()=>{Za(!1)}})};if(zt){ga("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else qn?ga("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):Za(!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:Bn.wrap},b.createElement("div",{className:Bn.left},b.createElement("div",{className:Bn.tip},b.createElement("img",{src:It}),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:Yt,placeholder:xa,onChange:ga=>{Yn(ga.target.value)}}),b.createElement(ze.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${y.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:sn,withCredentials:!0,data:{upload_type:1},beforeUpload:Wr,onChange:({file:ga})=>{var ur,Va;ga.status!=="removed"&&(ga.status==="done"&&((ur=ga==null?void 0:ga.response)==null?void 0:ur.status)!==0&&(ga.status="error",ga.response=(Va=ga==null?void 0:ga.response)==null?void 0:Va.message),Et([ga]))},onRemove:()=>Et([])},b.createElement(Pt.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:ea,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:en,onChange:pn,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:_n,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:()=>{kr()},className:Bn.bottomBtn},b.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),b.createElement(xn.Z,{onStatusChange:na,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!Ua,noRestrictModal:ir,stringTransformer:Qt.o,onError:ga=>{Object.prototype.toString.call(ga)==="[object Object]"&&ga.status===-9&&ir(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),Za(!1)}}),b.createElement("div",{style:{height:70}})),qr("\u5904\u7406\u4E2D"))}),on=Object.defineProperty,tt=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,Xn=Object.getOwnPropertySymbols,mn=Object.prototype.hasOwnProperty,Ut=Object.prototype.propertyIsEnumerable,kt=(ua,Zn,da)=>Zn in ua?on(ua,Zn,{enumerable:!0,configurable:!0,writable:!0,value:da}):ua[Zn]=da,Wn=(ua,Zn)=>{for(var da in Zn||(Zn={}))mn.call(Zn,da)&&kt(ua,da,Zn[da]);if(Xn)for(var da of Xn(Zn))Ut.call(Zn,da)&&kt(ua,da,Zn[da]);return ua},ia=(ua,Zn)=>tt(ua,pt(Zn)),nn=(ua,Zn,da)=>new Promise((Ea,xa)=>{var _a=Et=>{try{sn(da.next(Et))}catch(Tt){xa(Tt)}},Sn=Et=>{try{sn(da.throw(Et))}catch(Tt){xa(Tt)}},sn=Et=>Et.done?Ea(Et.value):Promise.resolve(Et.value).then(_a,Sn);sn((da=da.apply(ua,Zn)).next())});const Ba=ua=>{ua.preventDefault();let da=(ua.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,da)},Ka=ua=>{ua.key==="Enter"&&ua.preventDefault()},Fa=({children:ua,style:Zn})=>b.createElement("div",{className:Ee.leftBox,style:Zn,onPaste:Ba},ua),jn=({children:ua,style:Zn,className:da})=>b.createElement("div",{className:Be()(Ee.rightBox,da),style:Zn,onPaste:Ba},ua),za=({className:ua,style:Zn={},width:da=1200,onCancel:Ea=()=>{},onSuccess:xa=()=>{},gather:_a={},mode:Sn=1,stickyTop:sn=0,subDisciplineId:Et=[],hideWordFeatures:Tt,dataSource:Za=[],customLeftHeadNode:Ca,customRightHeadNode:Wa,customLeftContent:Da,hideRecognition:Ra=!1,onExchange:Br,isSingleSelection:nr=!1,underpinBackgroundStyle:Rr={},headExtraNode:Mo,isRefreshItemBank:Yt=!1,okText:Yn="\u786E\u5B9A\u5BFC\u5165",onSave:ea})=>{var ba;const[Ze,Mt]=(0,b.useState)(1),[en,pn]=(0,b.useState)(0),[Rt,Qn]=(0,b.useState)(""),[_n,Je]=(0,b.useState)(!1),[nt,Xe]=(0,b.useState)([]),[ln,Cn]=(0,b.useState)([]),[Nn,wa]=(0,b.useState)(!1),[pa,na]=(0,b.useState)(!1),[ya,qn]=(0,b.useState)(!1),[zt,Ma]=(0,b.useState)(!1),[pr,So]=(0,b.useState)([]),[$a,Gt]=(0,b.useState)(1),[qr,Ua]=(0,b.useState)(!1),[Sr,ir]=(0,b.useState)(!0),[Wr,Dr]=(0,b.useState)(0),[ao,kr]=(0,b.useState)(!1),[ca]=Re.default.useForm(),[an]=Re.default.useForm(),gr=(0,b.useRef)(null),ga=(0,b.useRef)(null),ur=(0,b.useRef)(),Va=(0,b.useRef)(null),hn=["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"],aa=["C","C++","Java","Python","JavaScript","Ruby"];(0,b.useEffect)(()=>{Za!=null&&Za.length&&yo(Za)},[Za]),(0,b.useEffect)(()=>{Ze===2&&gr.current.focus()},[Ze]),(0,b.useEffect)(()=>{ya&&Jn()},[ya]);const La=()=>{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:()=>nn(void 0,null,function*(){Mt(1)})})},Jn=()=>nn(void 0,null,function*(){const me=yield(0,le.ZP)("/api/disciplines.json",{method:"get",params:{source:Sn===1?"new_question":"subject"}});So(me.disciplines||[])}),sr=me=>{const gt=[],Ct=(cn,vt)=>{cn.length>=2&>.push(cn.join(""));for(let Ln=vt;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,` +`),Ee)},57466:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return x}});var b=ae(59301),Ee=ae(17574),we=ae(93758),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 le=Qe=>{try{Fe(te.next(Qe))}catch(Le){se(Le)}},Pe=Qe=>{try{Fe(te.throw(Qe))}catch(Le){se(Le)}},Fe=Qe=>Qe.done?oe(Qe.value):Promise.resolve(Qe.value).then(le,Pe);Fe((te=te.apply(y,z)).next())}),x=y=>{var z=y,{value:te,onChange:oe,defaultValue:se,disabled:le}=z,Pe=ue(z,["value","onChange","defaultValue","disabled"]);const[Fe,Qe]=(0,b.useState)([]),[Le,ut]=(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),ut("2")}}),Ye=$e=>{function be(ft){const ct=ft.children,Ft=Array.isArray(ct)&&ct.length>0,At=ft==null?void 0:ft.group_id;return{title:b.createElement("div",{title:ft==null?void 0:ft.name,className:Be.name},ft==null?void 0:ft.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(hn=>be(hn)):[]}}return $e==null?void 0:$e.map(ft=>be(ft))},Ge=se?{defaultExpandedKeys:[0],defaultSelectedKeys:[0]}:{selectedKeys:te,defaultExpandedKeys:te};return b.createElement("div",{className:Be.customTree},b.createElement(Ee.default,ze(Ue(ze({key:Le},Ge),{showIcon:!0,treeData:Fe,onSelect:oe,disabled:le}),Pe)))}},60636:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return Be}});var b=ae(59301),Ee={digitalLabel:"digitalLabel___tImKs",active:"active___Ck70Q"},Be=({number:Re,active:We,className:xe})=>b.createElement("div",{className:`${Ee.digitalLabel} ${We?Ee.active:""} ${xe}`},Re)},54185:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return y}});var b=ae(59301),Ee=ae(17574),we={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},Be=ae(73631),Re=ae(5623),We=ae(93758),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,le)=>{var Pe=Le=>{try{Qe(oe.next(Le))}catch(ut){le(ut)}},Fe=Le=>{try{Qe(oe.throw(Le))}catch(ut){le(ut)}},Qe=Le=>Le.done?se(Le.value):Promise.resolve(Le.value).then(Pe,Fe);Qe((oe=oe.apply(z,te)).next())}),y=({value:z,onChange:te,scrollId:oe})=>{const[se,le]=(0,b.useState)([]);(0,b.useEffect)(()=>{Pe()},[]);const Pe=()=>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||[])}];le(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)})}),ut=(Ye,Ge)=>{le($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(Ee.default,ue({showLine:{showLeafIcon:!1},showIcon:!0,treeData:se,className:we.folderWrapper,onSelect:te,onExpand:ut},Me)))}},70659:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return We}});var b=ae(60324),Ee={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:Ee.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:Ee.contact},Be.createElement("div",{className:Ee.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:Ee.text,style:Ke},"\u9AD8\u6D88\u8017"))}},94094:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return ke}});var b=ae(59301),Ee={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},we=ae(92310),Be=ae.n(we),Re=ae(71418),We=ae(2859),xe=ae(23789),Ke=ae(21331),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),le=(0,b.useRef)(null),[Pe,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&&ut()):(document.body.removeAttribute("data-custom"),se.current&&(document.head.removeChild(se.current),se.current=null))},[ze==null?void 0:ze.visible]);const ut=()=>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 ft=yield(0,xe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ze.title,file:be.dataUrl}});ft!=null&&ft.id&&!z?(yield(0,xe.ZP)(`/api/attachments/${ze.id}/add_subitem.json`,{method:"post",body:{subitem_id:ft==null?void 0:ft.id,settings:JSON.stringify(be.state)}})).status===0&&x():ft!=null&&ft.id&&x(ft),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 Ft=document.querySelector(ct.name);Ft&&Ft.setAttribute("title",ct.title)})},$e=()=>{oe.current=new We.hP(te.current),oe.current.targetRoot=le.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:Pe,tip:Qe,style:{position:"absolute"}},b.createElement("div",{ref:le,className:Be()(Ee.imageDimensions,Ue,ue?Ee.fullWidth:""),style:E},b.createElement("img",{className:Ee.img,ref:te}))))}},30561:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return vr},$:function(){return Aa}});var b=ae(59301),Ee={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(14739),y=ae(41510),z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAAUCAYAAADC1B7dAAAAAXNSR0IArs4c6QAABk1JREFUWEd1lwlsVkUQx3/7ClGMSMSrH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lVEmheg/4MSKA+O9PJ/a/QIfoKNS1Cqz/9E6OFLRQhuo0IhQa9SdCNvB63UKRoKS0UGtQnQYvZ6sxCk/D1OIke6IbG1z8T8f1Al7ZUhE+g0paK+vRpU5O+ROObmvSnTsk6gVBsKyQV+gSCEEgbe/X5o5NYgW6/u5m+Q1vr0SJ0C+gKpJdbdIkHnNMRSK+XBSwBU05VIL3giaHdhayKQHrFugsCsCX9CKRDDrCUu5jvJJCOGeki/CBK00E/QVA0WIOO2jIIP4jW8/OSP8u/m/aksJr16LC7IMj2sEbzuEkBnmdFo+u9PG7yNxidqHC3DAxxAAAAAElFTkSuQmCC",le=ae(23789),Pe=ae(54185),Fe=ae(5623),Qe=ae(1891),Le=ae(10438),ut=ae(30315),Me=ae(15342),Ye=ae.n(Me),Ge=(ua,Tn,da)=>new Promise((Ea,xa)=>{var _a=St=>{try{ln(da.next(St))}catch(Zt){xa(Zt)}},En=St=>{try{ln(da.throw(St))}catch(Zt){xa(Zt)}},ln=St=>St.done?Ea(St.value):Promise.resolve(St.value).then(_a,En);ln((da=da.apply(ua,Tn)).next())}),be=b.memo(({tagName:ua="div",value:Tn="",className:da,style:Ea={},onBlur:xa,id:_a})=>{const En=(0,b.useRef)(null);(0,b.useEffect)(()=>{if(!En.current)return;Ge(void 0,null,function*(){const Zt=En.current;Zt.innerHTML="";const Za=Tn==null?void 0:Tn.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const Ca of Za)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",Zt.appendChild(Da),Ye().render(Wa,Da,{throwOnError:!1})}else{const Wa=Ca==null?void 0:Ca.replace(/<[^>]*>/g,Da=>Da.startsWith("{var St,Zt;if(xa&&En.current){const Ca=En.current.cloneNode(!0),Wa=Ca.querySelectorAll("span.edu_latex");for(let Da of Wa){const Ra=Da.getAttribute("title"),xr=document.createTextNode(Ra||""),ar=Da;(Zt=(St=ar.parentNode)==null?void 0:St.replaceChild)==null||Zt.call(St,xr,ar)}xa(Ca.innerHTML)}};return b.createElement(b.Fragment,null,b.createElement(ua,{ref:En,contentEditable:!0,className:da,style:Ea,onBlur:ln}))}),ft=ae(35219),ct=ae(27284),Ft=ae(43428),At=ae(6848),hn=ae(43604),Bn={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},Ut=ae(77095),Pt=ae(21331),Te=ae(25062),et=ae(24745),Jt=ae(51874),xn=ae(46736),Mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAHr1JREFUaEPNmweYnVW1/n/7a6fMmcm0ZEoSUkkCSQgJCVWKoAI2FAH1iqBYwXvFLogF8S9XvRYElUeqIJegFOmEKgiICUkgJBBCkpnMZHoyc6ad9pW9r3t/58wEsJfn+Z8z5zn9fN+711rvetdaewT/rsvi073GBEsdrIN8214WOfbCyLHnSks0SSGqFCCFlSOS/VLKNhXJbULKTVYgXwhKwWZevNX/d5ya+Ff+6OzZx9WGycRbhZs+JbKdYyPbmqZsR5Qsi7xrIS2LSAgQFuh7fdHIVQRSmZsVhsqSciARyifswL/LsuX9w8/fOfyvOs9/CeB5845bEuJ9WljidOm6tZHtEjkOkWPjuw4l2yZMJAk1UKsMVh9ZCVAqBhxJiEJzE2GEE0Z4ocSOwmEnCm9VxfDy7M77tvyzwP8pwAfMPG6JtOyLI0e8M7SEi2UTuB7SdlGOi+85+K5NyfEIXBdcrwy4YmENVsVgZQhBBKEPUYQVBNhBSDKMEGGAG8nAlvJuEfoX9+986B8G/g8Bnlt3yBQvk/m6tKxPKWElIhvjrhpk6HjmPkh4+K5L0XUpWTaJVIJpDfU01VVTP6Uaz3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Uqy5+M7P/v/1j1p/aiXuv/zyxDOP7ViyYP7Ug9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",qt=(ua,Tn,da)=>new Promise((Ea,xa)=>{var _a=St=>{try{ln(da.next(St))}catch(Zt){xa(Zt)}},En=St=>{try{ln(da.throw(St))}catch(Zt){xa(Zt)}},ln=St=>St.done?Ea(St.value):Promise.resolve(St.value).then(_a,En);ln((da=da.apply(ua,Tn)).next())}),rt=(0,b.forwardRef)(({onUpdateNum:ua,onSave:Tn},da)=>{var Ea;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,En]=(0,b.useState)(!1),[ln,St]=(0,b.useState)([]),[Zt,Za]=(0,b.useState)(null),[Ca,Wa]=(0,b.useState)([]),[Da,Ra]=(0,b.useState)(0),[xr,ar]=(0,b.useState)(0),[kr,Mo]=(0,b.useState)(!1),[Kt,Un]=(0,b.useState)(""),[$n,ba]=(0,b.useState)(0),[Ze,kt]=(0,b.useState)(0),[$t,vn]=(0,b.useState)(0),[Tt,Wn]=(0,b.useState)(0),[Kn,Je]=(0,b.useState)(0),[nt,Xe]=(0,b.useState)(0),[on,Cn]=(0,b.useState)(0),[Ln,wa]=(0,b.useState)(0),[pa,ta]=(0,b.useState)(xn.Q),{contentRef:ya,value:qn,status:Wt,open:Ma,close:hr}=pa,So=(0,et.Z)({contentRef:ya,status:Wt}),{openProgress:$a,closeProgress:Vt,CreateProgressModal:$r,progressOpen:Ua}=(0,Te.Z)();(0,b.useEffect)(()=>{Zt&&Lr(),Zt===!1&&(hr(),ua==null||ua(),St([]),Un(""),ba(0),kt(0),vn(0),Wn(0),Je(0),Xe(0),Cn(0),wa(0))},[Zt]);const Pr=()=>{Za(!0)};(0,b.useImperativeHandle)(da,()=>({onClick:Pr}));const ur=ga=>{Mo(!0),Ra(ga),ar(0)},Qr=ga=>qt(void 0,null,function*(){const sr=ga.name.split(".").slice(-1)[0].toLowerCase();return["docx","doc","pdf","png","jpg"].indexOf(sr)==-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=()=>qt(void 0,null,function*(){const ga=yield(0,le.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});ga.status===0&&(Ra(ga.total_number),ar(ga.remaining_number))}),ro=ga=>(ga=ga||"",ga=String(ga),ga=ga.replace(/\s+/g,""),ga),Tr=(ga=!0)=>qt(void 0,null,function*(){var sr,Va;const pn=[{name:"\u5355\u9009\u9898",num:$n||0},{name:"\u591A\u9009\u9898",num:Ze||0},{name:"\u5224\u65AD\u9898",num:$t||0},{name:"\u586B\u7A7A\u9898",num:Tt||0},{name:"\u7B80\u7B54\u9898",num:Kn||0},{name:"\u7EC4\u5408\u9898",num:Ln||0},{name:"\u7F16\u7A0B\u9898",num:nt||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:on||0}];if(ga){if(ro(Kt)){if(Kt.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(!ro(Kt)&&!(ln!=null&&ln.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=pn.reduce((dr,tr)=>dr+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){Mo(!0);return}}Mo(!1);const La={scene_type:6,request_identifier:Math.random(),file_id:(Va=(sr=ln[0])==null?void 0:sr.response)==null?void 0:Va.id,content:Kt,count_arr:pn.map(_n=>_n.num).join(",")};yield Ma(La),Lr()}),ca=()=>qt(void 0,null,function*(){const ga=So();if(Tn){Za(!1),Tn(ga);return}$a(),En(!0),Wa([]);const sr=new FormData;sr.append("html",ga);const Va=yield(0,le.ZP)("/api/intelligent_imports/import.json",{method:"post",body:sr},!0);if((Va==null?void 0:Va.status)===0)if(Va!=null&&Va.data){Vt(100),Wa(Va==null?void 0:Va.data);return}else We.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");En(!1),Vt()}),nn=()=>qt(void 0,null,function*(){const ga=So();(0,Pt.RG)(ga)}),mr=["uploading","error"].includes((Ea=ln==null?void 0:ln[0])==null?void 0:Ea.status);return b.createElement(b.Fragment,null,b.createElement(Jt.Z,{visible:kr,totalCount:Da,usedCount:xr,onCancel:()=>Mo(!1),onOk:()=>Tr(!1)}),b.createElement(Ft.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:b.createElement("div",{className:Bn.extraHeader},b.createElement(Oe.Z,{align:"middle"},!Wt&&!!qn&&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=sr=>{xe.default.confirm({centered:!0,icon:null,width:500,zIndex:1101,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:sr,onOk:()=>{Za(!1)}})};if(Wt){ga("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else qn?ga("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):Za(!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:Zt},b.createElement("div",{className:Bn.wrap},b.createElement("div",{className:Bn.left},b.createElement("div",{className:Bn.tip},b.createElement("img",{src:Mt}),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:Kt,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:ln,withCredentials:!0,data:{upload_type:1},beforeUpload:Qr,onChange:({file:ga})=>{var sr,Va;ga.status!=="removed"&&(ga.status==="done"&&((sr=ga==null?void 0:ga.response)==null?void 0:sr.status)!==0&&(ga.status="error",ga.response=(Va=ga==null?void 0:ga.response)==null?void 0:Va.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(hn.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(hn.Z,null,b.createElement("label",null,"\u591A\u9009\u9898"),b.createElement(Ke.Z,{min:0,max:10,value:Ze,onChange:kt,style:{marginLeft:"8px"}})),b.createElement(hn.Z,null,b.createElement("label",null,"\u5224\u65AD\u9898"),b.createElement(Ke.Z,{min:0,max:10,value:$t,onChange:vn,style:{marginLeft:"8px"}})),b.createElement(hn.Z,null,b.createElement("label",null,"\u586B\u7A7A\u9898"),b.createElement(Ke.Z,{min:0,max:10,value:Tt,onChange:Wn,style:{marginLeft:"8px"}})),b.createElement(hn.Z,null,b.createElement("label",null,"\u7B80\u7B54\u9898"),b.createElement(Ke.Z,{min:0,max:10,value:Kn,onChange:Je,style:{marginLeft:"8px"}})))),Wt?b.createElement("div",{onClick:hr,className:Bn.bottomBtn},b.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):mr?b.createElement("div",{className:`${Bn.bottomBtn} ${Bn.disabled}`},b.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):b.createElement("div",{onClick:()=>{Tr()},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:ur,stringTransformer:Ut.o,onError:ga=>{Object.prototype.toString.call(ga)==="[object Object]"&&ga.status===-9&&ur(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(vr,{stickyTop:-24,hideWordFeatures:!0,dataSource:Ca,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>En(!1),onSuccess:()=>{En(!1),Za(!1)}}),b.createElement("div",{style:{height:70}})),$r("\u5904\u7406\u4E2D"))}),rn=Object.defineProperty,tt=Object.defineProperties,pt=Object.getOwnPropertyDescriptors,Xn=Object.getOwnPropertySymbols,gn=Object.prototype.hasOwnProperty,Yt=Object.prototype.propertyIsEnumerable,jt=(ua,Tn,da)=>Tn in ua?rn(ua,Tn,{enumerable:!0,configurable:!0,writable:!0,value:da}):ua[Tn]=da,Vn=(ua,Tn)=>{for(var da in Tn||(Tn={}))gn.call(Tn,da)&&jt(ua,da,Tn[da]);if(Xn)for(var da of Xn(Tn))Yt.call(Tn,da)&&jt(ua,da,Tn[da]);return ua},ia=(ua,Tn)=>tt(ua,pt(Tn)),tn=(ua,Tn,da)=>new Promise((Ea,xa)=>{var _a=St=>{try{ln(da.next(St))}catch(Zt){xa(Zt)}},En=St=>{try{ln(da.throw(St))}catch(Zt){xa(Zt)}},ln=St=>St.done?Ea(St.value):Promise.resolve(St.value).then(_a,En);ln((da=da.apply(ua,Tn)).next())});const Ba=ua=>{ua.preventDefault();let da=(ua.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,da)},Ka=ua=>{ua.key==="Enter"&&ua.preventDefault()},Fa=({children:ua,style:Tn})=>b.createElement("div",{className:Ee.leftBox,style:Tn,onPaste:Ba},ua),kn=({children:ua,style:Tn,className:da})=>b.createElement("div",{className:Be()(Ee.rightBox,da),style:Tn,onPaste:Ba},ua),za=({className:ua,style:Tn={},width:da=1200,onCancel:Ea=()=>{},onSuccess:xa=()=>{},gather:_a={},mode:En=1,stickyTop:ln=0,subDisciplineId:St=[],hideWordFeatures:Zt,dataSource:Za=[],customLeftHeadNode:Ca,customRightHeadNode:Wa,customLeftContent:Da,hideRecognition:Ra=!1,onExchange:xr,isSingleSelection:ar=!1,underpinBackgroundStyle:kr={},headExtraNode:Mo,isRefreshItemBank:Kt=!1,okText:Un="\u786E\u5B9A\u5BFC\u5165",onSave:$n})=>{var ba;const[Ze,kt]=(0,b.useState)(1),[$t,vn]=(0,b.useState)(0),[Tt,Wn]=(0,b.useState)(""),[Kn,Je]=(0,b.useState)(!1),[nt,Xe]=(0,b.useState)([]),[on,Cn]=(0,b.useState)([]),[Ln,wa]=(0,b.useState)(!1),[pa,ta]=(0,b.useState)(!1),[ya,qn]=(0,b.useState)(!1),[Wt,Ma]=(0,b.useState)(!1),[hr,So]=(0,b.useState)([]),[$a,Vt]=(0,b.useState)(1),[$r,Ua]=(0,b.useState)(!1),[Pr,ur]=(0,b.useState)(!0),[Qr,Lr]=(0,b.useState)(0),[ro,Tr]=(0,b.useState)(!1),[ca]=Re.default.useForm(),[nn]=Re.default.useForm(),mr=(0,b.useRef)(null),ga=(0,b.useRef)(null),sr=(0,b.useRef)(),Va=(0,b.useRef)(null),pn=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],na=["C","C++","Java","Python","JavaScript","Ruby"];(0,b.useEffect)(()=>{Za!=null&&Za.length&&yo(Za)},[Za]),(0,b.useEffect)(()=>{Ze===2&&mr.current.focus()},[Ze]),(0,b.useEffect)(()=>{ya&&_n()},[ya]);const La=()=>{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*(){kt(1)})})},_n=()=>tn(void 0,null,function*(){const me=yield(0,le.ZP)("/api/disciplines.json",{method:"get",params:{source:En===1?"new_question":"subject"}});So(me.disciplines||[])}),dr=me=>{const mt=[],Ct=(dn,vt)=>{dn.length>=2&&mt.push(dn.join(""));for(let Dn=vt;Dn(me=me||"",me=String(me),me=me.replace(/\s+/g,""),me),yr=me=>(me=me||"",me=String(me),me=me.replace(/
/g,""),me=me.replace(/
/g,` `),me=me.replace(/<\/div>/g,` -`),me=mr(me),me),$r=me=>me.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),mr=me=>me.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"),_o=me=>{var gt;const Ct=me.clipboardData;if(Ct){const cn=Ct.types.toString(),vt=Ct.items;if(cn==="Files"||Ct.types.indexOf("Files")>-1){me.preventDefault();try{let Ln=vt[1];((gt=vt[0])==null?void 0:gt.kind)==="file"&&(Ln=vt[0]);const An=Ln.getAsFile();(0,ut.I)(An,vn=>{var yn;if(vn.id){if(((yn=An==null?void 0:An.type)==null?void 0:yn.indexOf("image"))>-1){const Ia=``;document.execCommand("insertText",!1,Ia)}}else(vn==null?void 0:vn.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 Ro(me,gt){return nn(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(vt=>nn(this,null,function*(){return yield Ro(vt,gt)})));const Ct={};for(const cn in me)if(Object.prototype.hasOwnProperty.call(me,cn)){const vt=me[cn];typeof vt=="string"?Ct[cn]=yield gt(vt):typeof vt=="object"?Ct[cn]=yield Ro(vt,gt):Ct[cn]=vt}return Ct})}const Fl=()=>nn(void 0,null,function*(){var me;Je(!0),Qn("\u5904\u7406\u4E2D"),yield new Promise(cn=>setTimeout(cn,1e3));let gt=(me=ga.current)==null?void 0:me.querySelectorAll('[data-text="edit"]'),Ct="";try{gt.forEach(function(cn){var vt,Ln,An,vn;const yn=cn.cloneNode(!0),Ia=yn.querySelectorAll("span.edu_latex");for(let Fr of Ia){const ma=Fr.getAttribute("title"),va=document.createTextNode(ma),rr=Fr;(Ln=(vt=rr.parentNode)==null?void 0:vt.replaceChild)==null||Ln.call(vt,va,rr)}const cr=yn.querySelectorAll("span[style]");for(let Fr of cr)if(Fr.style.fontFamily){const ma=Fr.innerHTML,va=document.createTextNode(ma),rr=Fr;(vn=(An=rr.parentNode)==null?void 0:An.replaceChild)==null||vn.call(An,va,rr)}yn==null||yn.childNodes.forEach(function(Fr){Fr.nodeType===Node.ELEMENT_NODE&&Fr.localName!=="h5"&&Fr.localName!=="h4"?Ct+=`

${Fr.innerHTML}

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

${Fr.textContent}

`)})}),To("/api/intelligent_imports/import.json",{html:mr(Ct)})}catch(cn){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",cn)}}),xr=me=>{let gt=me.filter(Ct=>!!(Ct!=null&&Ct.type));return gt=gt.map(Ct=>{var cn;const vt=(cn=wr.find(An=>An.id===(Ct==null?void 0:Ct.type)))==null?void 0:cn.deal,Ln=ia(Wn({},Ct),{id:String(Math.random()).slice(-6),knowledgePoint:tr(Ct==null?void 0:Ct.knowledgePoint)});return vt?vt(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:Fl})},Ao=()=>b.createElement("div",{className:Ee.row},b.createElement("div",{className:Ee.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:Ee.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:Ee.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},b.createElement("div",{className:Ee.imgBox,style:{marginTop:240}},b.createElement("img",{width:56,src:oe}),b.createElement("span",null,"\u9884\u89C8\u533A")))),Ja=(me,gt,Ct,cn)=>{var vt;console.log(me,gt,Ct,cn,"onDataChange\u4FEE\u6539\u6570\u503C");const Ln=JSON.parse(JSON.stringify(ln));cn===void 0?Ln[gt][me]=Ct:Ln[gt].questions[cn][me]=Ct;const An=Wn({},Ln[gt]),vn=(vt=wr.find(yn=>yn.id===(An==null?void 0:An.type)))==null?void 0:vt.deal;Ln[gt]=vn(An),Cn(Ln)},Qr=(me,gt,Ct)=>{var cn;const vt=Ct!==void 0,Ln=(cn=wr.find(yn=>yn.id===(me==null?void 0:me.type)))==null?void 0:cn.type,An=`${gt+1}.${Ct===void 0?"":Ct+1+"."}`,vn=`${(me==null?void 0:me.type)==="7"?"{{":""}${An}\u3010${Ln}\u3011${(me==null?void 0:me.question)||""}`;return b.createElement(b.Fragment,null,vt&&b.createElement("h4",{contentEditable:!0}),b.createElement(be,{id:me==null?void 0:me.id,tagName:"div",value:vn}))},eo=(me,gt)=>nn(void 0,null,function*(){var Ct;const cn=yield Br(me,gt),vt=(Ct=cn==null?void 0:cn.data)==null?void 0:Ct.content;if(vt!=null&&vt.length){const Ln=xr(vt)[0];nt.splice(gt,1,Ln),ln.splice(gt,1,Ln),Xe([...nt]),Cn([...ln])}}),hr=(me,gt,Ct)=>{var cn;const vt=Ct!==void 0,Ln=(cn=wr.find(vn=>vn.id===(me==null?void 0:me.type)))==null?void 0:cn.type,An=`${gt+1}.${Ct===void 0?"":Ct+1+"."}`;return vt?b.createElement("div",{style:{padding:"10px 18px"}},`${An}\u3010${Ln}\u3011`,b.createElement(be,{id:me==null?void 0:me.id,tagName:"span",className:Ee.edit,onBlur:vn=>Ja("question",gt,vn,Ct),value:(me==null?void 0:me.question)||""})):b.createElement(b.Fragment,null,b.createElement("div",{className:Ee.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:vn=>Ja("score",gt,vn,Ct),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:()=>eo(me,gt)},b.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),b.createElement(De.default,{onChange:vn=>Ja("checked",gt,vn.target.checked,Ct),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:Ee.edit,onBlur:vn=>Ja("question",gt,vn,Ct),value:me==null?void 0:me.question}))},to=(me,gt,Ct)=>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"}),!Ct&&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"}),!Ct&&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,Ct,cn)=>{const vt=cn!==void 0,Ln=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],An=vt&&!me.last&&!me.errorMsg?{marginBottom:10}:{},vn=Ln.map(yn=>({key:yn,label:yn,onClick:()=>Ja("difficulty",Ct,yn,cn)}));return b.createElement("div",{className:Ee.liWrap,style:An},["4"].includes(me==null?void 0:me.type)&&b.createElement("div",{className:Ee.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:`${Ee.edit} c-black`,onBlur:yn=>Ja("answer",Ct,[yn],cn),value:gt})),!vt&&b.createElement("div",{className:Ee.li},b.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(ke.Z,{menu:{items:vn}},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:Ee.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:`${Ee.edit} c-grey-333`,onBlur:yn=>Ja("analyze",Ct,yn,cn),value:me==null?void 0:me.analyze})),!vt&&b.createElement("div",{onKeyDown:Ka,className:Ee.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:`${Ee.edit} c-grey-333`,onBlur:yn=>Ja("knowledgePoint",Ct,tr(Ar(yn)),cn)})))},At=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))),ht=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))),kn=(me,gt,Ct,cn)=>{let vt="flex";return(nr&&Wr!==cn||Nn&&!(Ct!=null&&Ct.errorMsg))&&(vt="none"),b.createElement("div",{className:Ee.row,style:{display:vt}},b.createElement("div",{className:Ee.leftLayout},Da||b.createElement(Fa,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ee.question},me))),b.createElement("div",{className:Ee.rightLayout},b.createElement(jn,{className:Ct!=null&&Ct.errorMsg?Ee.error:""},gt)))},wr=[{id:"0",type:"\u5355\u9009\u9898",element:(me,gt,Ct)=>{var cn,vt;const Ln=Ct!==void 0;let An=(cn=me==null?void 0:me.answer)==null?void 0:cn[0];const vn=b.createElement(b.Fragment,null,Qr(me,gt,Ct),(vt=me==null?void 0:me.options)==null?void 0:vt.map((Fr,ma)=>b.createElement(be,{id:me==null?void 0:me.id,key:ma,value:`${hn[ma]}.${Fr}`,tagName:"p"})),to(me,An,Ln),At(me));let yn=Ln?me:ln[gt];const Ia=yn==null?void 0:yn.options,cr=b.createElement(b.Fragment,null,hr(yn,gt,Ct),Ia==null?void 0:Ia.map((Fr,ma)=>{var va;return b.createElement("div",{key:ma,className:Ee.option},b.createElement("aside",{className:((va=yn==null?void 0:yn.answer)==null?void 0:va[0])===hn[ma]?Ee.active:"",onClick:()=>Ja("answer",gt,[hn[ma]],Ct)},hn[ma]),b.createElement(be,{id:yn==null?void 0:yn.id,tagName:"div",className:`${Ee.text}`,onBlur:rr=>{Ia[ma]=rr,Ja("options",gt,Ia,Ct)},value:Fr}))}),xt(yn,"",gt,Ct),ht(yn));return Ln?[vn,cr]:kn(vn,cr,yn,gt)},deal:me=>{var gt,Ct,cn;me.score=me.score===void 0?2:me.score;let vt=tr((gt=me==null?void 0:me.answer)==null?void 0:gt[0]).toUpperCase();me.answer=vt?[vt]:[];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=(Ct=me.options)==null?void 0:Ct.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 vt||Ln.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),vt&&(hn.slice(0,((cn=me==null?void 0:me.options)==null?void 0:cn.length)||8).includes(vt)||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,Ct)=>{var cn,vt;const Ln=Ct!==void 0;let An=(cn=me==null?void 0:me.answer)==null?void 0:cn[0];const vn=b.createElement(b.Fragment,null,Qr(me,gt,Ct),(vt=me==null?void 0:me.options)==null?void 0:vt.map((Fr,ma)=>b.createElement(be,{id:me==null?void 0:me.id,key:ma,value:`${hn[ma]}.${Fr}`,tagName:"p"})),to(me,An,Ln),At(me));let yn=Ln?me:ln[gt];const Ia=yn==null?void 0:yn.options,cr=b.createElement(b.Fragment,null,hr(yn,gt,Ct),Ia==null?void 0:Ia.map((Fr,ma)=>{var va,rr;return b.createElement("div",{key:ma,className:Ee.option},b.createElement("aside",{className:(rr=(va=yn==null?void 0:yn.answer)==null?void 0:va[0])!=null&&rr.includes(hn[ma])?Ee.active:"",onClick:()=>{var Er;let Jo=((Er=yn==null?void 0:yn.answer)==null?void 0:Er[0])||"";const sl=hn[ma];Jo.includes(sl)?Jo=Jo.replace(new RegExp(sl,"g"),""):Jo+=sl,Jo=Jo.split("").sort().join(""),Ja("answer",gt,[Jo],Ct)}},hn[ma]),b.createElement(be,{id:yn==null?void 0:yn.id,tagName:"div",className:`${Ee.text}`,onBlur:Er=>{Ia[ma]=Er,Ja("options",gt,Ia,Ct)},value:Fr}))}),xt(yn,"",gt,Ct),ht(yn));return Ln?[vn,cr]:kn(vn,cr,yn,gt)},deal:me=>{var gt,Ct,cn;me.score=me.score===void 0?2:me.score;let vt=tr((gt=me==null?void 0:me.answer)==null?void 0:gt[0]).toUpperCase().split("").sort().join("");me.answer=vt?[vt]:[];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=(Ct=me.options)==null?void 0:Ct.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(vt||Ln.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),vt){const An=hn.slice(0,((cn=me==null?void 0:me.options)==null?void 0:cn.length)||8);sr(An).includes(vt)||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,Ct)=>{var cn,vt;const Ln=Ct!==void 0;let An=(cn=me==null?void 0:me.answer)==null?void 0:cn[0];const vn=b.createElement(b.Fragment,null,Qr(me,gt,Ct),to(me,An,Ln),At(me));let yn=Ln?me:ln[gt];const Ia=["\u6B63\u786E","\u9519\u8BEF"];let cr=((vt=yn==null?void 0:yn.answer)==null?void 0:vt[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,Ct),Ia==null?void 0:Ia.map((ma,va)=>b.createElement("div",{key:va,className:Ee.option},b.createElement("aside",{style:{borderRadius:2},className:cr===ma?Ee.active:"",onClick:()=>Ja("answer",gt,[ma],Ct)},ma==="\u6B63\u786E"?"T":"F"),b.createElement("div",{style:{pointerEvents:"none"},className:`${Ee.text}`},ma))),xt(yn,"",gt,Ct),ht(yn));return Ln?[vn,Fr]:kn(vn,Fr,yn,gt)},deal:me=>{var gt;me.score=me.score===void 0?2:me.score;let Ct=tr((gt=me==null?void 0:me.answer)==null?void 0:gt[0]);me.answer=Ct?[Ct]:[];let cn=[];return Ct||cn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),Ct&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(Ct)&&cn.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)||cn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),me.errorMsg=cn.join(` -`),me}},{id:"3",type:"\u586B\u7A7A\u9898",element:(me,gt,Ct)=>{var cn,vt;const Ln=Ct!==void 0,An=b.createElement(b.Fragment,null,Qr(me,gt,Ct),(cn=me==null?void 0:me.answer)==null?void 0:cn.map((Ia,cr)=>b.createElement(be,{id:me==null?void 0:me.id,key:cr,tagName:"p",value:`\u7B54\u6848${cr+1}\uFF1A${Ia.text||""}`})),to(me,"",Ln),At(me));let vn=Ln?me:ln[gt];const yn=b.createElement(b.Fragment,null,hr(vn,gt,Ct),(vt=vn==null?void 0:vn.answer)==null?void 0:vt.map((Ia,cr)=>b.createElement("div",{key:cr,className:Ee.option},b.createElement("aside",{className:Ee.fill},"\u586B\u7A7A\u9879",cr+1),Ia.model===1&&b.createElement(be,{id:vn==null?void 0:vn.id,tagName:"div",onBlur:Fr=>{vn.answer[cr].latex=Ar(Fr),Ja("answer",gt,vn.answer,Ct)},className:`${Ee.text}`,value:Ia.latex}),Ia.model===2&&b.createElement(Le.Z,{value:Ia.latex,onChange:Fr=>{vn.answer[cr].latex=Fr,Ja("answer",gt,vn.answer,Ct)}}))),xt(vn,"",gt,Ct),ht(vn));return Ln?[An,yn]:kn(An,yn,vn,gt)},deal:me=>{var gt,Ct,cn,vt;me.score=me.score===void 0?2:me.score,me.question=(gt=me.question)==null?void 0:gt.replaceAll("\u2581","_");const Ln=(Ct=me.answer)==null?void 0:Ct.map(vn=>{if(Object.prototype.toString.call(vn)==="[object Object]")return vn;vn=vn==null?void 0:vn.trim();const yn={model:1,text:vn,latex:vn};return vn.startsWith("$$")&&vn.endsWith("$$")||vn.startsWith("`$$")&&vn.endsWith("$$`")?(yn.model=2,yn.latex=vn.slice(2,-2)):yn.latex=Ar(vn),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("_")?(cn=me==null?void 0:me.answer)!=null&&cn.length&&((me==null?void 0:me.question.match(/_+/g))||[]).length!==((vt=me==null?void 0:me.answer)==null?void 0:vt.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,Ct)=>{var cn,vt;const Ln=Ct!==void 0;let An=(cn=me==null?void 0:me.answer)==null?void 0:cn[0];const vn=b.createElement(b.Fragment,null,Qr(me,gt,Ct),to(me,An,Ln),At(me));let yn=Ln?me:ln[gt];const Ia=b.createElement(b.Fragment,null,hr(yn,gt,Ct),xt(yn,(vt=yn==null?void 0:yn.answer)==null?void 0:vt[0],gt,Ct),ht(yn));return Ln?[vn,Ia]:kn(vn,Ia,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 Ct,cn;const vt=ln[gt],Ln=aa.slice(0,4).map(An=>({key:An,label:An,onClick:()=>Ja("platform",gt,An)}));return b.createElement("div",{className:Ee.row,style:{display:Nn?vt!=null&&vt.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:Ee.leftLayout},b.createElement(Fa,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ee.question},Qr(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"}),to(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"}),(Ct=me==null?void 0:me.inputs)==null?void 0:Ct.map((An,vn)=>{var yn;return b.createElement(b.Fragment,{key:vn},b.createElement("h4",null),b.createElement(be,{id:me==null?void 0:me.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${vn+1})\u8F93\u5165\uFF1A${An||""}`,tagName:"div"}),b.createElement(be,{id:me==null?void 0:me.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${vn+1})\u8F93\u51FA\uFF1A${((yn=me==null?void 0:me.outputs)==null?void 0:yn[vn])||""}`,tagName:"div"}))}),At(me)))),b.createElement("div",{className:Ee.rightLayout},b.createElement(jn,{className:vt!=null&&vt.errorMsg?Ee.error:""},hr(vt,gt),b.createElement("div",{className:Ee.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},b.createElement("div",{className:Ee.li},b.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),b.createElement(be,{className:Ee.edit,id:vt==null?void 0:vt.id,value:vt==null?void 0:vt.description,tagName:"div",onBlur:An=>Ja("description",gt,An)}))),xt(vt,"",gt),b.createElement("div",{className:Ee.liWrap},b.createElement("div",{className:Ee.li},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(be,{className:Ee.edit,id:vt==null?void 0:vt.id,value:vt==null?void 0:vt.timeLimit,tagName:"div",onBlur:An=>Ja("timeLimit",gt,Ar(An))})),b.createElement("div",{className:Ee.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"},vt==null?void 0:vt.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:Ee.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),b.createElement(be,{className:Ee.edit,id:vt==null?void 0:vt.id,value:(vt==null?void 0:vt.code)||"",onBlur:An=>Ja("code",gt,Ar(An)),tagName:"div"}))),(cn=vt==null?void 0:vt.inputs)==null?void 0:cn.map((An,vn)=>{var yn;return b.createElement("div",{className:Ee.liWrap,key:vn},b.createElement("div",{className:Ee.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",vn+1,")\u8F93\u5165\uFF1A"),b.createElement(be,{id:vt==null?void 0:vt.id,value:An||"",className:Ee.edit,onBlur:Ia=>{const cr=[...(vt==null?void 0:vt.inputs)||[]];cr[vn]=Ar(Ia),Ja("inputs",gt,cr)},tagName:"div"})),b.createElement("div",{className:Ee.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",vn+1,")\u8F93\u51FA\uFF1A"),b.createElement(be,{id:vt==null?void 0:vt.id,value:((yn=vt==null?void 0:vt.outputs)==null?void 0:yn[vn])||"",className:Ee.edit,onBlur:Ia=>{const cr=[...(vt==null?void 0:vt.outputs)||[]];cr[vn]=Ar(Ia),Ja("outputs",gt,cr)},tagName:"div"})))}),ht(vt))))},deal:me=>{var gt,Ct,cn;me.score=me.score===void 0?10:me.score,me.code=(gt=me.code)==null?void 0:gt.trim();let vt=[];tr(me==null?void 0:me.question)?((Ct=me==null?void 0:me.question)==null?void 0:Ct.length)>60&&vt.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):vt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),tr(me==null?void 0:me.description)||vt.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))&&vt.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"],vn=(cn=me==null?void 0:me.platform)==null?void 0:cn.toLowerCase(),yn=An.findIndex(Ia=>Ia===vn);yn>-1?me.platform=aa[yn]:vt.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else vt.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=[],vt.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(vn=>!tr(vn))&&vt.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return me.errorMsg=vt.join(` -`),me}},{id:"7",type:"\u7EC4\u5408\u9898",element:(me,gt)=>{var Ct,cn;const vt=ln[gt];return b.createElement("div",{className:Ee.row,style:{display:Nn?vt!=null&&vt.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:Ee.leftLayout},b.createElement(Fa,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ee.question},Qr(me,gt),to(me),(Ct=me==null?void 0:me.questions)==null?void 0:Ct.map((Ln,An)=>{var vn;const yn=(vn=wr.find(Ia=>Ia.id===(Ln==null?void 0:Ln.type)))==null?void 0:vn.element;return b.createElement(b.Fragment,{key:`left-${me.id}-${An}`},yn(Ln,gt,An)[0])}),At(me),b.createElement("p",{contentEditable:!0},"}}")))),b.createElement("div",{className:Ee.rightLayout},b.createElement(jn,{className:vt!=null&&vt.errorMsg?Ee.error:""},hr(vt,gt),xt(vt,"",gt),(cn=vt==null?void 0:vt.questions)==null?void 0:cn.map((Ln,An)=>{var vn;const yn=(vn=wr.find(Ia=>Ia.id===(Ln==null?void 0:Ln.type)))==null?void 0:vn.element;return b.createElement(b.Fragment,{key:`right-${vt.id}-${An}`},yn(Ln,gt,An)[1])}),ht(vt))))},deal:me=>{var gt,Ct,cn,vt,Ln;const An=xr,vn=[...wr],yn=vn.findIndex(ma=>ma.id==="0"),Ia=vn.findIndex(ma=>ma.id==="1");if(yn!==-1){const ma=vn[yn].deal;vn[yn].deal=va=>{const rr=ma(va);return rr.errorMsg&&(rr.errorMsg=rr.errorMsg.split(` -`).filter(Er=>Er!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(` -`)),rr}}if(Ia!==-1){const ma=vn[Ia].deal;vn[Ia].deal=va=>{const rr=ma(va);return rr.errorMsg&&(rr.errorMsg=rr.errorMsg.split(` -`).filter(Er=>Er!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(` -`)),rr}}me.questions=(gt=me.questions)!=null&>.length?xr(me.questions.slice(0,20)):[],me.questions=(Ct=me.questions)==null?void 0:Ct.map((ma,va)=>{var rr;if(ma.type==="0"||ma.type==="1"){const Er=(rr=ma.options)==null?void 0:rr.map(Jo=>Jo==null?void 0:Jo.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 ia(Wn({},ma),{last:va===me.questions.length-1})});const cr=(cn=me.questions)==null?void 0:cn.reduce((ma,va)=>{const rr=parseFloat(va.score);return isNaN(rr)?ma:ma+rr},0);me.score=cr;let Fr=[];return(vt=me.questions)!=null&&vt.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 Ct,cn;const vt=ln[gt],Ln=aa.map(An=>({key:An,label:An,onClick:()=>Ja("platform",gt,An)}));return b.createElement("div",{className:Ee.row,style:{display:Nn?vt!=null&&vt.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:Ee.leftLayout},b.createElement(Fa,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ee.question},Qr(me,gt),to(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"}),(Ct=me==null?void 0:me.answer)==null?void 0:Ct.map((An,vn)=>b.createElement(be,{key:vn,id:me==null?void 0:me.id,value:`\u7B54\u6848${vn+1}\uFF1A${An||""}`,tagName:"p"})),At(me)))),b.createElement("div",{className:Ee.rightLayout},b.createElement(jn,{className:vt!=null&&vt.errorMsg?Ee.error:""},hr(vt,gt),xt(vt,"",gt),b.createElement("div",{className:Ee.liWrap},b.createElement("div",{className:Ee.li,onKeyDown:Ka},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(be,{className:Ee.edit,id:vt==null?void 0:vt.id,value:vt==null?void 0:vt.timeLimit,tagName:"div",onBlur:An=>Ja("timeLimit",gt,Ar(An))})),b.createElement("div",{className:Ee.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"},vt==null?void 0:vt.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:Ee.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),b.createElement(be,{className:Ee.edit,id:vt==null?void 0:vt.id,value:(vt==null?void 0:vt.code)||"",onBlur:An=>Ja("code",gt,Ar(An)),tagName:"div"})),b.createElement("div",{className:Ee.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),b.createElement(be,{className:Ee.edit,id:vt==null?void 0:vt.id,value:(vt==null?void 0:vt.input)||"",onBlur:An=>Ja("input",gt,Ar(An)),tagName:"div"})),b.createElement("div",{className:Ee.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),b.createElement(be,{className:Ee.edit,id:vt==null?void 0:vt.id,value:(vt==null?void 0:vt.output)||"",onBlur:An=>Ja("output",gt,Ar(An)),tagName:"div"}))),b.createElement("div",{className:Ee.liWrap},(cn=vt==null?void 0:vt.answer)==null?void 0:cn.map((An,vn)=>b.createElement("div",{className:Ee.li,key:vn},b.createElement("aside",null,"\u7B54\u6848",vn+1,"\uFF1A"),b.createElement(be,{id:vt==null?void 0:vt.id,value:An||"",className:Ee.edit,onBlur:yn=>{const Ia=[...(vt==null?void 0:vt.answer)||[]];Ia[vn]=Ar(yn),Ja("output",gt,Ia)},tagName:"div"})))),ht(vt))))},deal:me=>{var gt,Ct,cn,vt,Ln,An,vn,yn;me.score=me.score===void 0?10:me.score,me.code=(cn=(Ct=(gt=me.code)==null?void 0:gt.trim())==null?void 0:Ct.replace(/@_@/g,"@\u2581@"))==null?void 0:cn.replace(/@__@/g,"@\u2581\u2581@");let Ia=[];if(tr(me==null?void 0:me.question)||Ia.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),tr(me==null?void 0:me.code)?/@▁@|@▁▁@/.test(me==null?void 0:me.code)?(vt=me==null?void 0:me.answer)!=null&&vt.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)&&Ia.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Ia.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"):Ia.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),me!=null&&me.answer?(vn=me.answer)!=null&&vn.some(Fr=>!tr(Fr))&&Ia.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):Ia.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(rr=>rr===ma);va>-1?me.platform=aa[va]:Ia.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else Ia.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)||Ia.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))&&Ia.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),me.errorMsg=Ia.join(` -`),me}}],bo=()=>b.createElement(b.Fragment,null,nt.filter(me=>{var gt;return!!((gt=wr.find(cn=>cn.id===(me==null?void 0:me.type)))==null?void 0:gt.element)}).map((me,gt)=>{var Ct;const cn=(Ct=wr.find(vt=>vt.id===(me==null?void 0:me.type)))==null?void 0:Ct.element;return b.createElement(b.Fragment,{key:me.id},cn(me,gt))})),rl=()=>nn(void 0,null,function*(){const me=ln.filter(gt=>!gt.checked);if(Ze!==3||!me.length){We.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if(ea){kr(!0),yield ea(ln),kr(!1);return}ca.setFieldsValue({sub_discipline_id:Et}),qn(!0)}),Tr=(me,gt=[])=>{if(typeof me=="string")return me.trim();if(Array.isArray(me))return me.map(Ct=>Tr(Ct,gt));if(typeof me=="object"&&me!==null){const Ct={};for(const cn in me)me.hasOwnProperty(cn)&&(gt.includes(cn)?Ct[cn]=me[cn]:Ct[cn]=Tr(me[cn],gt));return Ct}return me},yo=me=>nn(void 0,null,function*(){const gt=xr(Tr(me));Xe(gt),Cn(JSON.parse(JSON.stringify(gt))),Mt(3),Je(!1),wa(!1)});(0,b.useEffect)(()=>{if(Sr)return;const me=()=>{pn(gt=>gt>=90?(clearInterval(ur.current),90):gt+1)};return ur.current=setInterval(me,5e4/90),()=>clearInterval(ur.current)},[Sr]);const To=(me,gt)=>{ir(!1);const Ct=new FormData;Object.keys(gt).forEach(vt=>{Ct.append(vt,gt[vt])});const cn=new window.XMLHttpRequest;cn.withCredentials=!0,cn.addEventListener("load",function(vt){return nn(this,null,function*(){var Ln,An;try{const vn=JSON.parse((Ln=vt==null?void 0:vt.target)==null?void 0:Ln.response);if(ir(!0),pn(100),yield new Promise(yn=>setTimeout(()=>yn(),780)),vn.status===0){if(!((An=vn==null?void 0:vn.data)!=null&&An.length)){We.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),Je(!1);return}yo((vn==null?void 0:vn.data)||[])}else Je(!1),We.ZP.warning(vn==null?void 0:vn.message)}catch(vn){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",vn)}})}),cn.addEventListener("error",()=>{Je(!1)}),cn.open("POST",`${y.Z.API_SERVER}${me}`),cn.send(Ct)},sa=me=>nn(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"),To("/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:sa},b.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,ft.Ny)()||(0,ft.$O)())&&Dn.push({key:2,label:b.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{Va.current.onClick()}});const Hn=[ln.length,(ba=ln.filter(me=>!!(me!=null&&me.errorMsg)))==null?void 0:ba.length];return b.createElement("div",{className:Be()(Ee.intelligentBox,"intelligent-body-curb",ua),style:ia(Wn({},Zn),{width:da}),ref:ga},b.createElement("div",{className:Ee.underpin},b.createElement("b",{style:Rr}),b.createElement("b",{style:Rr})),b.createElement("div",{className:Ee.head,style:{top:sn}},b.createElement("div",{className:Ee.leftLayout},Ca||b.createElement(b.Fragment,null,b.createElement(Oe.Z,{align:"middle"},b.createElement("div",{className:Ee.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:La,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!Tt&&b.createElement(ke.Z,{overlayClassName:Ee.menu,menu:{items:Dn}},b.createElement(x.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!Mo&&Mo),b.createElement("div",{className:Ee.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:Ee.rightLayout,style:{alignItems:"start"}},Wa||b.createElement(b.Fragment,null,b.createElement("div",{className:Ee.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")),nr&&b.createElement("div",{className:Ee.tabs},nt==null?void 0:nt.map((me,gt)=>b.createElement("div",{onClick:()=>{Dr(gt)},className:Wr===gt&&Ee.active,key:gt},"\u65B0\u9898",gt+1)))),b.createElement("div",{className:Ee.centerBox},b.createElement("img",{className:"mb10",src:se,width:56}),!Ra&&b.createElement(x.op,{onClick:Nr},"\u8BC6\u522B"))),[1,2].includes(Ze)&&Ao(),[3].includes(Ze)&&bo(),b.createElement("div",{className:"pb10"}),b.createElement("div",{className:Ee.buttonFixed},b.createElement("div",{className:Ee.buttonWrap},b.createElement(Ue.ZP,{size:"middle",className:`${Ee.button} mr20`,onClick:Ea},"\u53D6\u6D88"),b.createElement(Ue.ZP,{size:"middle",type:"primary",loading:ao,className:`${Ee.button}`,onClick:rl},Yn))),b.createElement(xe.default,{centered:!0,closable:!1,destroyOnClose:!0,open:_n,title:null,footer:null,width:320,afterClose:()=>pn(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:Ee.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:en}),b.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",b.createElement("span",{className:"ml5 c-light-primary"},en,"%")))),b.createElement(xe.default,{centered:!0,open:ya,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:pa,width:480,onCancel:()=>qn(!1),onOk:()=>ca.submit(),afterClose:()=>{ca.resetFields()}},b.createElement(Re.default,{style:{maxHeight:550},form:ca,layout:"horizontal",colon:!1,size:"large",onFinish:me=>nn(void 0,null,function*(){var gt,Ct,cn,vt,Ln;const An=ln.filter(Ia=>!Ia.checked&&!Ia.errorMsg);na(!0);const vn=()=>nn(void 0,null,function*(){var Ia,cr;const Fr=yield(0,le.ZP)("/api/intelligent_imports/save.json",{method:"post",body:ia(Wn(Wn({},_a),me),{list:An,mode:Sn})});Fr.status===0&&(Yt&&((Ia=Fr==null?void 0:Fr.data)!=null&&Ia.success)&&window.location.pathname==="/problemset"&&(dt.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),qn(!1)),na(!1)});if(Sn!==1){yield vn();return}const yn=yield(0,le.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:ln,mode:Sn}});if(yn.status===0){if(!((gt=yn==null?void 0:yn.data)!=null&>.error_size)){yield vn();return}xe.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{na(!1)},title:"\u63D0\u793A",content:b.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",b.createElement("span",{className:"c-light-primary ml5 mr5"},(Ct=yn==null?void 0:yn.data)==null?void 0:Ct.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",b.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(cn=yn==null?void 0:yn.data)==null?void 0:cn.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",b.createElement("span",{className:"ml5 mr5"},(Ln=(vt=yn==null?void 0:yn.data)==null?void 0:vt.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:vn})}})},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:()=>Ma(!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(Pe.Z,{key:$a})))),b.createElement(xe.default,{centered:!0,open:zt,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:qr,onCancel:()=>Ma(!1),onOk:()=>an.submit(),afterClose:()=>{an.resetFields()}},b.createElement(Re.default,{style:{maxHeight:550},form:an,layout:"horizontal",colon:!1,size:"large",onFinish:me=>nn(void 0,null,function*(){var gt;Ua(!0),(yield(0,le.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($a+1),setTimeout(()=>{We.ZP.success("\u64CD\u4F5C\u6210\u529F"),Ma(!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(Pe.Z,null)))),b.createElement(rt,{onSave:me=>{Je(!0),Qn("\u5904\u7406\u4E2D"),To("/api/intelligent_imports/import.json",{html:me})},ref:Va}))},Aa=z;var fr=za},10438:function(ot,jt,ae){"use strict";var b=ae(59301),Ee=ae(14973),we=ae(48136),Be=ae(29386),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),[le,Pe]=(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,ft=$e.clientY-Ge;const dt=document.getElementsByClassName("markdown-popup-form")[0],Ft=window.innerWidth-dt.offsetWidth,Pt=window.innerHeight-dt.offsetHeight;be=Math.max(0,Math.min(be,Ft)),ft=Math.max(0,Math.min(ft,Pt)),Le($e.clientX,$e.clientY,Ye,Ge)&&(te(be),se(ft))},document.body.onmouseup=function(){document.body.onmousemove=null}},Le=(Me,Ye,Ge,$e)=>{const be=document.body.clientHeight,ft=document.body.clientWidth;return Me<20&&Ge>Me||Me>ft-20&&GeYe||Ye>be-20&&$e{le&&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)},[le]);const ut=()=>{ke||ze||Pe(!0)};return We.createElement("div",{style:E},We.createElement("div",{style:{width:Oe||"100%",position:"relative"},className:`${Ee.Z.mathFillWrap} ${ke||ze?"cursorDefault":""}`,onClick:()=>ut()},We.createElement("math-field",{disabled:ke,locale:"zh_cn",class:`${Ee.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:le,onOk:()=>{const Me=y.current.getData();x.current.setValue(Me),De(Me),Pe(!1)},onCancel:()=>{Pe(!1)},destroyOnClose:!0,className:"markdown-popup-form"},We.createElement(Be.Z,{value:ue,ref:y,onChange:De,showSaveButton:!1})))});jt.Z=xe},29386:function(ot,jt,ae){"use strict";var b=ae(59301),Ee=ae(95237),we=ae(43604),Be=ae(99313),Re=ae(3113),We=ae(28900),xe=ae(14973),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 +`),me=fr(me),me),eo=me=>me.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'"),fr=me=>me.replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"),_o=me=>{var mt;const Ct=me.clipboardData;if(Ct){const dn=Ct.types.toString(),vt=Ct.items;if(dn==="Files"||Ct.types.indexOf("Files")>-1){me.preventDefault();try{let Dn=vt[1];((mt=vt[0])==null?void 0:mt.kind)==="file"&&(Dn=vt[0]);const An=Dn.getAsFile();(0,ut.I)(An,fn=>{var yn;if(fn.id){if(((yn=An==null?void 0:An.type)==null?void 0:yn.indexOf("image"))>-1){const Ia=``;document.execCommand("insertText",!1,Ia)}}else(fn==null?void 0:fn.status)===401&&(document.location.href="/user/login")})}catch(Dn){We.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function Ro(me,mt){return tn(this,null,function*(){if(typeof me=="string")return yield mt(me);if(typeof me!="object"||me===null)return me;if(Array.isArray(me))return yield Promise.all(me.map(vt=>tn(this,null,function*(){return yield Ro(vt,mt)})));const Ct={};for(const dn in me)if(Object.prototype.hasOwnProperty.call(me,dn)){const vt=me[dn];typeof vt=="string"?Ct[dn]=yield mt(vt):typeof vt=="object"?Ct[dn]=yield Ro(vt,mt):Ct[dn]=vt}return Ct})}const Fl=()=>tn(void 0,null,function*(){var me;Je(!0),Wn("\u5904\u7406\u4E2D"),yield new Promise(dn=>setTimeout(dn,1e3));let mt=(me=ga.current)==null?void 0:me.querySelectorAll('[data-text="edit"]'),Ct="";try{mt.forEach(function(dn){var vt,Dn,An,fn;const yn=dn.cloneNode(!0),Ia=yn.querySelectorAll("span.edu_latex");for(let Cr of Ia){const ma=Cr.getAttribute("title"),va=document.createTextNode(ma),or=Cr;(Dn=(vt=or.parentNode)==null?void 0:vt.replaceChild)==null||Dn.call(vt,va,or)}const gr=yn.querySelectorAll("span[style]");for(let Cr of gr)if(Cr.style.fontFamily){const ma=Cr.innerHTML,va=document.createTextNode(ma),or=Cr;(fn=(An=or.parentNode)==null?void 0:An.replaceChild)==null||fn.call(An,va,or)}yn==null||yn.childNodes.forEach(function(Cr){Cr.nodeType===Node.ELEMENT_NODE&&Cr.localName!=="h5"&&Cr.localName!=="h4"?Ct+=`

${Cr.innerHTML}

`:Cr.nodeType===Node.TEXT_NODE&&(Ct+=`

${Cr.textContent}

`)})}),To("/api/intelligent_imports/import.json",{html:fr(Ct)})}catch(dn){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",dn)}}),wr=me=>{let mt=me.filter(Ct=>!!(Ct!=null&&Ct.type));return mt=mt.map(Ct=>{var dn;const vt=(dn=Dr.find(An=>An.id===(Ct==null?void 0:Ct.type)))==null?void 0:dn.deal,Dn=ia(Vn({},Ct),{id:String(Math.random()).slice(-6),knowledgePoint:tr(Ct==null?void 0:Ct.knowledgePoint)});return vt?vt(Dn):Dn}),mt},Or=()=>{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:Fl})},Ao=()=>b.createElement("div",{className:Ee.row},b.createElement("div",{className:Ee.leftLayout},b.createElement(Fa,{style:{height:675}},Ze===1&&b.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>kt(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:Ee.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:()=>{mr.current.innerHTML||kt(1)},ref:mr,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),b.createElement("div",{className:Ee.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},b.createElement("div",{className:Ee.imgBox,style:{marginTop:240}},b.createElement("img",{width:56,src:oe}),b.createElement("span",null,"\u9884\u89C8\u533A")))),Ja=(me,mt,Ct,dn)=>{var vt;console.log(me,mt,Ct,dn,"onDataChange\u4FEE\u6539\u6570\u503C");const Dn=JSON.parse(JSON.stringify(on));dn===void 0?Dn[mt][me]=Ct:Dn[mt].questions[dn][me]=Ct;const An=Vn({},Dn[mt]),fn=(vt=Dr.find(yn=>yn.id===(An==null?void 0:An.type)))==null?void 0:vt.deal;Dn[mt]=fn(An),Cn(Dn)},Ur=(me,mt,Ct)=>{var dn;const vt=Ct!==void 0,Dn=(dn=Dr.find(yn=>yn.id===(me==null?void 0:me.type)))==null?void 0:dn.type,An=`${mt+1}.${Ct===void 0?"":Ct+1+"."}`,fn=`${(me==null?void 0:me.type)==="7"?"{{":""}${An}\u3010${Dn}\u3011${(me==null?void 0:me.question)||""}`;return b.createElement(b.Fragment,null,vt&&b.createElement("h4",{contentEditable:!0}),b.createElement(be,{id:me==null?void 0:me.id,tagName:"div",value:fn}))},to=(me,mt)=>tn(void 0,null,function*(){var Ct;const dn=yield xr(me,mt),vt=(Ct=dn==null?void 0:dn.data)==null?void 0:Ct.content;if(vt!=null&&vt.length){const Dn=wr(vt)[0];nt.splice(mt,1,Dn),on.splice(mt,1,Dn),Xe([...nt]),Cn([...on])}}),Er=(me,mt,Ct)=>{var dn;const vt=Ct!==void 0,Dn=(dn=Dr.find(fn=>fn.id===(me==null?void 0:me.type)))==null?void 0:dn.type,An=`${mt+1}.${Ct===void 0?"":Ct+1+"."}`;return vt?b.createElement("div",{style:{padding:"10px 18px"}},`${An}\u3010${Dn}\u3011`,b.createElement(be,{id:me==null?void 0:me.id,tagName:"span",className:Ee.edit,onBlur:fn=>Ja("question",mt,fn,Ct),value:(me==null?void 0:me.question)||""})):b.createElement(b.Fragment,null,b.createElement("div",{className:Ee.actionHead},b.createElement("div",{className:"c-light-primary"},`${An}\u3010${Dn}\u3011`),En!==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:fn=>Ja("score",mt,fn,Ct),value:me==null?void 0:me.score}),b.createElement(Oe.Z,{align:"middle",style:{marginLeft:"auto"}},!!xr&&b.createElement("span",{className:"current c-light-primary mr30",onClick:()=>to(me,mt)},b.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),b.createElement(De.default,{onChange:fn=>Ja("checked",mt,fn.target.checked,Ct),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:Ee.edit,onBlur:fn=>Ja("question",mt,fn,Ct),value:me==null?void 0:me.question}))},no=(me,mt,Ct)=>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${mt||""}`,tagName:"p"}),!Ct&&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"}),!Ct&&b.createElement(be,{id:me==null?void 0:me.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(me==null?void 0:me.knowledgePoint)||""}`,tagName:"p"})),wt=(me,mt,Ct,dn)=>{const vt=dn!==void 0,Dn=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],An=vt&&!me.last&&!me.errorMsg?{marginBottom:10}:{},fn=Dn.map(yn=>({key:yn,label:yn,onClick:()=>Ja("difficulty",Ct,yn,dn)}));return b.createElement("div",{className:Ee.liWrap,style:An},["4"].includes(me==null?void 0:me.type)&&b.createElement("div",{className:Ee.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:`${Ee.edit} c-black`,onBlur:yn=>Ja("answer",Ct,[yn],dn),value:mt})),!vt&&b.createElement("div",{className:Ee.li},b.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(ke.Z,{menu:{items:fn}},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:Ee.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:`${Ee.edit} c-grey-333`,onBlur:yn=>Ja("analyze",Ct,yn,dn),value:me==null?void 0:me.analyze})),!vt&&b.createElement("div",{onKeyDown:Ka,className:Ee.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:`${Ee.edit} c-grey-333`,onBlur:yn=>Ja("knowledgePoint",Ct,tr(yr(yn)),dn)})))},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))),ht=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,mt,Ct,dn)=>{let vt="flex";return(ar&&Qr!==dn||Ln&&!(Ct!=null&&Ct.errorMsg))&&(vt="none"),b.createElement("div",{className:Ee.row,style:{display:vt}},b.createElement("div",{className:Ee.leftLayout},Da||b.createElement(Fa,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ee.question},me))),b.createElement("div",{className:Ee.rightLayout},b.createElement(kn,{className:Ct!=null&&Ct.errorMsg?Ee.error:""},mt)))},Dr=[{id:"0",type:"\u5355\u9009\u9898",element:(me,mt,Ct)=>{var dn,vt;const Dn=Ct!==void 0;let An=(dn=me==null?void 0:me.answer)==null?void 0:dn[0];const fn=b.createElement(b.Fragment,null,Ur(me,mt,Ct),(vt=me==null?void 0:me.options)==null?void 0:vt.map((Cr,ma)=>b.createElement(be,{id:me==null?void 0:me.id,key:ma,value:`${pn[ma]}.${Cr}`,tagName:"p"})),no(me,An,Dn),yt(me));let yn=Dn?me:on[mt];const Ia=yn==null?void 0:yn.options,gr=b.createElement(b.Fragment,null,Er(yn,mt,Ct),Ia==null?void 0:Ia.map((Cr,ma)=>{var va;return b.createElement("div",{key:ma,className:Ee.option},b.createElement("aside",{className:((va=yn==null?void 0:yn.answer)==null?void 0:va[0])===pn[ma]?Ee.active:"",onClick:()=>Ja("answer",mt,[pn[ma]],Ct)},pn[ma]),b.createElement(be,{id:yn==null?void 0:yn.id,tagName:"div",className:`${Ee.text}`,onBlur:or=>{Ia[ma]=or,Ja("options",mt,Ia,Ct)},value:Cr}))}),wt(yn,"",mt,Ct),ht(yn));return Dn?[fn,gr]:Mn(fn,gr,yn,mt)},deal:me=>{var mt,Ct,dn;me.score=me.score===void 0?2:me.score;let vt=tr((mt=me==null?void 0:me.answer)==null?void 0:mt[0]).toUpperCase();me.answer=vt?[vt]:[];let Dn=[];if(!(me!=null&&me.options))Dn.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=(Ct=me.options)==null?void 0:Ct.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&&Dn.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return vt||Dn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),vt&&(pn.slice(0,((dn=me==null?void 0:me.options)==null?void 0:dn.length)||8).includes(vt)||Dn.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)||Dn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),me.errorMsg=Dn.join(` +`),me}},{id:"1",type:"\u591A\u9009\u9898",element:(me,mt,Ct)=>{var dn,vt;const Dn=Ct!==void 0;let An=(dn=me==null?void 0:me.answer)==null?void 0:dn[0];const fn=b.createElement(b.Fragment,null,Ur(me,mt,Ct),(vt=me==null?void 0:me.options)==null?void 0:vt.map((Cr,ma)=>b.createElement(be,{id:me==null?void 0:me.id,key:ma,value:`${pn[ma]}.${Cr}`,tagName:"p"})),no(me,An,Dn),yt(me));let yn=Dn?me:on[mt];const Ia=yn==null?void 0:yn.options,gr=b.createElement(b.Fragment,null,Er(yn,mt,Ct),Ia==null?void 0:Ia.map((Cr,ma)=>{var va,or;return b.createElement("div",{key:ma,className:Ee.option},b.createElement("aside",{className:(or=(va=yn==null?void 0:yn.answer)==null?void 0:va[0])!=null&&or.includes(pn[ma])?Ee.active:"",onClick:()=>{var Sr;let Jo=((Sr=yn==null?void 0:yn.answer)==null?void 0:Sr[0])||"";const sl=pn[ma];Jo.includes(sl)?Jo=Jo.replace(new RegExp(sl,"g"),""):Jo+=sl,Jo=Jo.split("").sort().join(""),Ja("answer",mt,[Jo],Ct)}},pn[ma]),b.createElement(be,{id:yn==null?void 0:yn.id,tagName:"div",className:`${Ee.text}`,onBlur:Sr=>{Ia[ma]=Sr,Ja("options",mt,Ia,Ct)},value:Cr}))}),wt(yn,"",mt,Ct),ht(yn));return Dn?[fn,gr]:Mn(fn,gr,yn,mt)},deal:me=>{var mt,Ct,dn;me.score=me.score===void 0?2:me.score;let vt=tr((mt=me==null?void 0:me.answer)==null?void 0:mt[0]).toUpperCase().split("").sort().join("");me.answer=vt?[vt]:[];let Dn=[];if(!(me!=null&&me.options))Dn.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=(Ct=me.options)==null?void 0:Ct.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&&Dn.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(vt||Dn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),vt){const An=pn.slice(0,((dn=me==null?void 0:me.options)==null?void 0:dn.length)||8);dr(An).includes(vt)||Dn.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)||Dn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),me.errorMsg=Dn.join(` +`),me}},{id:"2",type:"\u5224\u65AD\u9898",element:(me,mt,Ct)=>{var dn,vt;const Dn=Ct!==void 0;let An=(dn=me==null?void 0:me.answer)==null?void 0:dn[0];const fn=b.createElement(b.Fragment,null,Ur(me,mt,Ct),no(me,An,Dn),yt(me));let yn=Dn?me:on[mt];const Ia=["\u6B63\u786E","\u9519\u8BEF"];let gr=((vt=yn==null?void 0:yn.answer)==null?void 0:vt[0])||"";["\u6B63\u786E","\u5BF9","T","True","t","true"].includes(gr)?gr="\u6B63\u786E":["\u9519\u8BEF","\u9519","T","true","t","false"].includes(gr)&&(gr="\u9519\u8BEF");const Cr=b.createElement(b.Fragment,null,Er(yn,mt,Ct),Ia==null?void 0:Ia.map((ma,va)=>b.createElement("div",{key:va,className:Ee.option},b.createElement("aside",{style:{borderRadius:2},className:gr===ma?Ee.active:"",onClick:()=>Ja("answer",mt,[ma],Ct)},ma==="\u6B63\u786E"?"T":"F"),b.createElement("div",{style:{pointerEvents:"none"},className:`${Ee.text}`},ma))),wt(yn,"",mt,Ct),ht(yn));return Dn?[fn,Cr]:Mn(fn,Cr,yn,mt)},deal:me=>{var mt;me.score=me.score===void 0?2:me.score;let Ct=tr((mt=me==null?void 0:me.answer)==null?void 0:mt[0]);me.answer=Ct?[Ct]:[];let dn=[];return Ct||dn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),Ct&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(Ct)&&dn.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)||dn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),me.errorMsg=dn.join(` +`),me}},{id:"3",type:"\u586B\u7A7A\u9898",element:(me,mt,Ct)=>{var dn,vt;const Dn=Ct!==void 0,An=b.createElement(b.Fragment,null,Ur(me,mt,Ct),(dn=me==null?void 0:me.answer)==null?void 0:dn.map((Ia,gr)=>b.createElement(be,{id:me==null?void 0:me.id,key:gr,tagName:"p",value:`\u7B54\u6848${gr+1}\uFF1A${Ia.text||""}`})),no(me,"",Dn),yt(me));let fn=Dn?me:on[mt];const yn=b.createElement(b.Fragment,null,Er(fn,mt,Ct),(vt=fn==null?void 0:fn.answer)==null?void 0:vt.map((Ia,gr)=>b.createElement("div",{key:gr,className:Ee.option},b.createElement("aside",{className:Ee.fill},"\u586B\u7A7A\u9879",gr+1),Ia.model===1&&b.createElement(be,{id:fn==null?void 0:fn.id,tagName:"div",onBlur:Cr=>{fn.answer[gr].latex=yr(Cr),Ja("answer",mt,fn.answer,Ct)},className:`${Ee.text}`,value:Ia.latex}),Ia.model===2&&b.createElement(Le.Z,{value:Ia.latex,onChange:Cr=>{fn.answer[gr].latex=Cr,Ja("answer",mt,fn.answer,Ct)}}))),wt(fn,"",mt,Ct),ht(fn));return Dn?[An,yn]:Mn(An,yn,fn,mt)},deal:me=>{var mt,Ct,dn,vt;me.score=me.score===void 0?2:me.score,me.question=(mt=me.question)==null?void 0:mt.replaceAll("\u2581","_");const Dn=(Ct=me.answer)==null?void 0:Ct.map(fn=>{if(Object.prototype.toString.call(fn)==="[object Object]")return fn;fn=fn==null?void 0:fn.trim();const yn={model:1,text:fn,latex:fn};return fn.startsWith("$$")&&fn.endsWith("$$")||fn.startsWith("`$$")&&fn.endsWith("$$`")?(yn.model=2,yn.latex=fn.slice(2,-2)):yn.latex=yr(fn),yn});me.answer=Dn;let An=[];return Dn||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("_")?(dn=me==null?void 0:me.answer)!=null&&dn.length&&((me==null?void 0:me.question.match(/_+/g))||[]).length!==((vt=me==null?void 0:me.answer)==null?void 0:vt.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,mt,Ct)=>{var dn,vt;const Dn=Ct!==void 0;let An=(dn=me==null?void 0:me.answer)==null?void 0:dn[0];const fn=b.createElement(b.Fragment,null,Ur(me,mt,Ct),no(me,An,Dn),yt(me));let yn=Dn?me:on[mt];const Ia=b.createElement(b.Fragment,null,Er(yn,mt,Ct),wt(yn,(vt=yn==null?void 0:yn.answer)==null?void 0:vt[0],mt,Ct),ht(yn));return Dn?[fn,Ia]:Mn(fn,Ia,yn,mt)},deal:me=>{me.score=me.score===void 0?5:me.score;let mt=[];return tr(me==null?void 0:me.question)||mt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),me.errorMsg=mt.join(` +`),me}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(me,mt)=>{var Ct,dn;const vt=on[mt],Dn=na.slice(0,4).map(An=>({key:An,label:An,onClick:()=>Ja("platform",mt,An)}));return b.createElement("div",{className:Ee.row,style:{display:Ln?vt!=null&&vt.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:Ee.leftLayout},b.createElement(Fa,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ee.question},Ur(me,mt),b.createElement(be,{id:me==null?void 0:me.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(me==null?void 0:me.description)||""}`,tagName:"p"}),no(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"}),(Ct=me==null?void 0:me.inputs)==null?void 0:Ct.map((An,fn)=>{var yn;return b.createElement(b.Fragment,{key:fn},b.createElement("h4",null),b.createElement(be,{id:me==null?void 0:me.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${fn+1})\u8F93\u5165\uFF1A${An||""}`,tagName:"div"}),b.createElement(be,{id:me==null?void 0:me.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${fn+1})\u8F93\u51FA\uFF1A${((yn=me==null?void 0:me.outputs)==null?void 0:yn[fn])||""}`,tagName:"div"}))}),yt(me)))),b.createElement("div",{className:Ee.rightLayout},b.createElement(kn,{className:vt!=null&&vt.errorMsg?Ee.error:""},Er(vt,mt),b.createElement("div",{className:Ee.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},b.createElement("div",{className:Ee.li},b.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),b.createElement(be,{className:Ee.edit,id:vt==null?void 0:vt.id,value:vt==null?void 0:vt.description,tagName:"div",onBlur:An=>Ja("description",mt,An)}))),wt(vt,"",mt),b.createElement("div",{className:Ee.liWrap},b.createElement("div",{className:Ee.li},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(be,{className:Ee.edit,id:vt==null?void 0:vt.id,value:vt==null?void 0:vt.timeLimit,tagName:"div",onBlur:An=>Ja("timeLimit",mt,yr(An))})),b.createElement("div",{className:Ee.li},b.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(ke.Z,{menu:{items:Dn}},b.createElement("span",{className:"c-light-primary"},vt==null?void 0:vt.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:Ee.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),b.createElement(be,{className:Ee.edit,id:vt==null?void 0:vt.id,value:(vt==null?void 0:vt.code)||"",onBlur:An=>Ja("code",mt,yr(An)),tagName:"div"}))),(dn=vt==null?void 0:vt.inputs)==null?void 0:dn.map((An,fn)=>{var yn;return b.createElement("div",{className:Ee.liWrap,key:fn},b.createElement("div",{className:Ee.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",fn+1,")\u8F93\u5165\uFF1A"),b.createElement(be,{id:vt==null?void 0:vt.id,value:An||"",className:Ee.edit,onBlur:Ia=>{const gr=[...(vt==null?void 0:vt.inputs)||[]];gr[fn]=yr(Ia),Ja("inputs",mt,gr)},tagName:"div"})),b.createElement("div",{className:Ee.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",fn+1,")\u8F93\u51FA\uFF1A"),b.createElement(be,{id:vt==null?void 0:vt.id,value:((yn=vt==null?void 0:vt.outputs)==null?void 0:yn[fn])||"",className:Ee.edit,onBlur:Ia=>{const gr=[...(vt==null?void 0:vt.outputs)||[]];gr[fn]=yr(Ia),Ja("outputs",mt,gr)},tagName:"div"})))}),ht(vt))))},deal:me=>{var mt,Ct,dn;me.score=me.score===void 0?10:me.score,me.code=(mt=me.code)==null?void 0:mt.trim();let vt=[];tr(me==null?void 0:me.question)?((Ct=me==null?void 0:me.question)==null?void 0:Ct.length)>60&&vt.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):vt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),tr(me==null?void 0:me.description)||vt.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const Dn=tr(String((me==null?void 0:me.timeLimit)||""));if(me.timeLimit=Dn,(!Dn||Dn&&!["3","4","5","6","7","8","9","10"].includes(Dn))&&vt.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"],fn=(dn=me==null?void 0:me.platform)==null?void 0:dn.toLowerCase(),yn=An.findIndex(Ia=>Ia===fn);yn>-1?me.platform=na[yn]:vt.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else vt.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=[],vt.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(fn=>!tr(fn))&&vt.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return me.errorMsg=vt.join(` +`),me}},{id:"7",type:"\u7EC4\u5408\u9898",element:(me,mt)=>{var Ct,dn;const vt=on[mt];return b.createElement("div",{className:Ee.row,style:{display:Ln?vt!=null&&vt.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:Ee.leftLayout},b.createElement(Fa,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ee.question},Ur(me,mt),no(me),(Ct=me==null?void 0:me.questions)==null?void 0:Ct.map((Dn,An)=>{var fn;const yn=(fn=Dr.find(Ia=>Ia.id===(Dn==null?void 0:Dn.type)))==null?void 0:fn.element;return b.createElement(b.Fragment,{key:`left-${me.id}-${An}`},yn(Dn,mt,An)[0])}),yt(me),b.createElement("p",{contentEditable:!0},"}}")))),b.createElement("div",{className:Ee.rightLayout},b.createElement(kn,{className:vt!=null&&vt.errorMsg?Ee.error:""},Er(vt,mt),wt(vt,"",mt),(dn=vt==null?void 0:vt.questions)==null?void 0:dn.map((Dn,An)=>{var fn;const yn=(fn=Dr.find(Ia=>Ia.id===(Dn==null?void 0:Dn.type)))==null?void 0:fn.element;return b.createElement(b.Fragment,{key:`right-${vt.id}-${An}`},yn(Dn,mt,An)[1])}),ht(vt))))},deal:me=>{var mt,Ct,dn,vt,Dn;const An=wr,fn=[...Dr],yn=fn.findIndex(ma=>ma.id==="0"),Ia=fn.findIndex(ma=>ma.id==="1");if(yn!==-1){const ma=fn[yn].deal;fn[yn].deal=va=>{const or=ma(va);return or.errorMsg&&(or.errorMsg=or.errorMsg.split(` +`).filter(Sr=>Sr!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(` +`)),or}}if(Ia!==-1){const ma=fn[Ia].deal;fn[Ia].deal=va=>{const or=ma(va);return or.errorMsg&&(or.errorMsg=or.errorMsg.split(` +`).filter(Sr=>Sr!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(` +`)),or}}me.questions=(mt=me.questions)!=null&&mt.length?wr(me.questions.slice(0,20)):[],me.questions=(Ct=me.questions)==null?void 0:Ct.map((ma,va)=>{var or;if(ma.type==="0"||ma.type==="1"){const Sr=(or=ma.options)==null?void 0:or.map(Jo=>Jo==null?void 0:Jo.trim().replace(/^\s+|\s+$/g,""));Sr&&new Set(Sr).size!==Sr.length&&(ma.errorMsg=(ma.errorMsg?ma.errorMsg+` +`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return ia(Vn({},ma),{last:va===me.questions.length-1})});const gr=(dn=me.questions)==null?void 0:dn.reduce((ma,va)=>{const or=parseFloat(va.score);return isNaN(or)?ma:ma+or},0);me.score=gr;let Cr=[];return(vt=me.questions)!=null&&vt.length?me.errorMsg=((Dn=me.questions)==null?void 0:Dn.findIndex(ma=>!!ma.errorMsg))>-1:Cr.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),tr(me==null?void 0:me.question)||Cr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Cr.length&&(me.errorMsg=Cr.join(` +`)),me}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(me,mt)=>{var Ct,dn;const vt=on[mt],Dn=na.map(An=>({key:An,label:An,onClick:()=>Ja("platform",mt,An)}));return b.createElement("div",{className:Ee.row,style:{display:Ln?vt!=null&&vt.errorMsg?"flex":"none":"flex"}},b.createElement("div",{className:Ee.leftLayout},b.createElement(Fa,null,b.createElement("div",{"data-text":"edit",contentEditable:!0,className:Ee.question},Ur(me,mt),no(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"}),(Ct=me==null?void 0:me.answer)==null?void 0:Ct.map((An,fn)=>b.createElement(be,{key:fn,id:me==null?void 0:me.id,value:`\u7B54\u6848${fn+1}\uFF1A${An||""}`,tagName:"p"})),yt(me)))),b.createElement("div",{className:Ee.rightLayout},b.createElement(kn,{className:vt!=null&&vt.errorMsg?Ee.error:""},Er(vt,mt),wt(vt,"",mt),b.createElement("div",{className:Ee.liWrap},b.createElement("div",{className:Ee.li,onKeyDown:Ka},b.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),b.createElement(be,{className:Ee.edit,id:vt==null?void 0:vt.id,value:vt==null?void 0:vt.timeLimit,tagName:"div",onBlur:An=>Ja("timeLimit",mt,yr(An))})),b.createElement("div",{className:Ee.li},b.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),b.createElement("div",{className:"c-black"},b.createElement(ke.Z,{menu:{items:Dn}},b.createElement("span",{className:"c-light-primary"},vt==null?void 0:vt.platform,b.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),b.createElement("div",{className:Ee.li,style:{flexDirection:"column",alignItems:"start"}},b.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),b.createElement(be,{className:Ee.edit,id:vt==null?void 0:vt.id,value:(vt==null?void 0:vt.code)||"",onBlur:An=>Ja("code",mt,yr(An)),tagName:"div"})),b.createElement("div",{className:Ee.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A"),b.createElement(be,{className:Ee.edit,id:vt==null?void 0:vt.id,value:(vt==null?void 0:vt.input)||"",onBlur:An=>Ja("input",mt,yr(An)),tagName:"div"})),b.createElement("div",{className:Ee.li},b.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"),b.createElement(be,{className:Ee.edit,id:vt==null?void 0:vt.id,value:(vt==null?void 0:vt.output)||"",onBlur:An=>Ja("output",mt,yr(An)),tagName:"div"}))),b.createElement("div",{className:Ee.liWrap},(dn=vt==null?void 0:vt.answer)==null?void 0:dn.map((An,fn)=>b.createElement("div",{className:Ee.li,key:fn},b.createElement("aside",null,"\u7B54\u6848",fn+1,"\uFF1A"),b.createElement(be,{id:vt==null?void 0:vt.id,value:An||"",className:Ee.edit,onBlur:yn=>{const Ia=[...(vt==null?void 0:vt.answer)||[]];Ia[fn]=yr(yn),Ja("output",mt,Ia)},tagName:"div"})))),ht(vt))))},deal:me=>{var mt,Ct,dn,vt,Dn,An,fn,yn;me.score=me.score===void 0?10:me.score,me.code=(dn=(Ct=(mt=me.code)==null?void 0:mt.trim())==null?void 0:Ct.replace(/@_@/g,"@\u2581@"))==null?void 0:dn.replace(/@__@/g,"@\u2581\u2581@");let Ia=[];if(tr(me==null?void 0:me.question)||Ia.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),tr(me==null?void 0:me.code)?/@▁@|@▁▁@/.test(me==null?void 0:me.code)?(vt=me==null?void 0:me.answer)!=null&&vt.length&&((Dn=me==null?void 0:me.code.match(/@▁@|@▁▁@/g))==null?void 0:Dn.length)!==((An=me==null?void 0:me.answer)==null?void 0:An.length)&&Ia.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):Ia.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"):Ia.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),me!=null&&me.answer?(fn=me.answer)!=null&&fn.some(Cr=>!tr(Cr))&&Ia.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):Ia.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 Cr=["c","c++","java","python","javascript","ruby"],ma=(yn=me==null?void 0:me.platform)==null?void 0:yn.toLowerCase(),va=Cr.findIndex(or=>or===ma);va>-1?me.platform=na[va]:Ia.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else Ia.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)||Ia.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879");const gr=tr(String((me==null?void 0:me.timeLimit)||""));return me.timeLimit=gr,(!gr||gr&&!["3","4","5","6","7","8","9","10"].includes(gr))&&Ia.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),me.errorMsg=Ia.join(` +`),me}}],bo=()=>b.createElement(b.Fragment,null,nt.filter(me=>{var mt;return!!((mt=Dr.find(dn=>dn.id===(me==null?void 0:me.type)))==null?void 0:mt.element)}).map((me,mt)=>{var Ct;const dn=(Ct=Dr.find(vt=>vt.id===(me==null?void 0:me.type)))==null?void 0:Ct.element;return b.createElement(b.Fragment,{key:me.id},dn(me,mt))})),rl=()=>tn(void 0,null,function*(){const me=on.filter(mt=>!mt.checked);if(Ze!==3||!me.length){We.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if($n){Tr(!0),yield $n(on),Tr(!1);return}ca.setFieldsValue({sub_discipline_id:St}),qn(!0)}),jr=(me,mt=[])=>{if(typeof me=="string")return me.trim();if(Array.isArray(me))return me.map(Ct=>jr(Ct,mt));if(typeof me=="object"&&me!==null){const Ct={};for(const dn in me)me.hasOwnProperty(dn)&&(mt.includes(dn)?Ct[dn]=me[dn]:Ct[dn]=jr(me[dn],mt));return Ct}return me},yo=me=>tn(void 0,null,function*(){const mt=wr(jr(me));Xe(mt),Cn(JSON.parse(JSON.stringify(mt))),kt(3),Je(!1),wa(!1)});(0,b.useEffect)(()=>{if(Pr)return;const me=()=>{vn(mt=>mt>=90?(clearInterval(sr.current),90):mt+1)};return sr.current=setInterval(me,5e4/90),()=>clearInterval(sr.current)},[Pr]);const To=(me,mt)=>{ur(!1);const Ct=new FormData;Object.keys(mt).forEach(vt=>{Ct.append(vt,mt[vt])});const dn=new window.XMLHttpRequest;dn.withCredentials=!0,dn.addEventListener("load",function(vt){return tn(this,null,function*(){var Dn,An;try{const fn=JSON.parse((Dn=vt==null?void 0:vt.target)==null?void 0:Dn.response);if(ur(!0),vn(100),yield new Promise(yn=>setTimeout(()=>yn(),780)),fn.status===0){if(!((An=fn==null?void 0:fn.data)!=null&&An.length)){We.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),Je(!1);return}yo((fn==null?void 0:fn.data)||[])}else Je(!1),We.ZP.warning(fn==null?void 0:fn.message)}catch(fn){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",fn)}})}),dn.addEventListener("error",()=>{Je(!1)}),dn.open("POST",`${y.Z.API_SERVER}${me}`),dn.send(Ct)},sa=me=>tn(void 0,null,function*(){const mt=me.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf(mt)==-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),Wn("\u5904\u7406\u4E2D"),To("/api/intelligent_imports/import.json",{file:me}),Promise.reject())});let wn=[{key:1,label:b.createElement(ze.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:sa},b.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,ft.Ny)()||(0,ft.$O)())&&wn.push({key:2,label:b.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{Va.current.onClick()}});const Gn=[on.length,(ba=on.filter(me=>!!(me!=null&&me.errorMsg)))==null?void 0:ba.length];return b.createElement("div",{className:Be()(Ee.intelligentBox,"intelligent-body-curb",ua),style:ia(Vn({},Tn),{width:da}),ref:ga},b.createElement("div",{className:Ee.underpin},b.createElement("b",{style:kr}),b.createElement("b",{style:kr})),b.createElement("div",{className:Ee.head,style:{top:ln}},b.createElement("div",{className:Ee.leftLayout},Ca||b.createElement(b.Fragment,null,b.createElement(Oe.Z,{align:"middle"},b.createElement("div",{className:Ee.title},"\u8BD5\u9898\u7F16\u8F91"),!Zt&&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:La,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!Zt&&b.createElement(ke.Z,{overlayClassName:Ee.menu,menu:{items:wn}},b.createElement(x.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!Mo&&Mo),b.createElement("div",{className:Ee.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:Ee.rightLayout,style:{alignItems:"start"}},Wa||b.createElement(b.Fragment,null,b.createElement("div",{className:Ee.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(Ze)&&b.createElement(De.default,{className:"ml20",checked:Ln,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"},Gn[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",b.createElement("span",{className:"ml5 mr5 c-red-e53"},Gn[1]),"\u9898")),ar&&b.createElement("div",{className:Ee.tabs},nt==null?void 0:nt.map((me,mt)=>b.createElement("div",{onClick:()=>{Lr(mt)},className:Qr===mt&&Ee.active,key:mt},"\u65B0\u9898",mt+1)))),b.createElement("div",{className:Ee.centerBox},b.createElement("img",{className:"mb10",src:se,width:56}),!Ra&&b.createElement(x.op,{onClick:Or},"\u8BC6\u522B"))),[1,2].includes(Ze)&&Ao(),[3].includes(Ze)&&bo(),b.createElement("div",{className:"pb10"}),b.createElement("div",{className:Ee.buttonFixed},b.createElement("div",{className:Ee.buttonWrap},b.createElement(Ue.ZP,{size:"middle",className:`${Ee.button} mr20`,onClick:Ea},"\u53D6\u6D88"),b.createElement(Ue.ZP,{size:"middle",type:"primary",loading:ro,className:`${Ee.button}`,onClick:rl},Un))),b.createElement(xe.default,{centered:!0,closable:!1,destroyOnClose:!0,open:Kn,title:null,footer:null,width:320,afterClose:()=>vn(0)},b.createElement(Oe.Z,{align:"middle",style:{flexDirection:"column"}},b.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},Tt,b.createElement("span",{className:Ee.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:$t}),b.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",b.createElement("span",{className:"ml5 c-light-primary"},$t,"%")))),b.createElement(xe.default,{centered:!0,open:ya,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:pa,width:480,onCancel:()=>qn(!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 mt,Ct,dn,vt,Dn;const An=on.filter(Ia=>!Ia.checked&&!Ia.errorMsg);ta(!0);const fn=()=>tn(void 0,null,function*(){var Ia,gr;const Cr=yield(0,le.ZP)("/api/intelligent_imports/save.json",{method:"post",body:ia(Vn(Vn({},_a),me),{list:An,mode:En})});Cr.status===0&&(Kt&&((Ia=Cr==null?void 0:Cr.data)!=null&&Ia.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${(gr=Cr==null?void 0:Cr.data)==null?void 0:gr.success}\u9053\u8BD5\u9898`,3),xa(Cr),qn(!1)),ta(!1)});if(En!==1){yield fn();return}const yn=yield(0,le.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:on,mode:En}});if(yn.status===0){if(!((mt=yn==null?void 0:yn.data)!=null&&mt.error_size)){yield fn();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"},(Ct=yn==null?void 0:yn.data)==null?void 0:Ct.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",b.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(dn=yn==null?void 0:yn.data)==null?void 0:dn.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",b.createElement("span",{className:"ml5 mr5"},(Dn=(vt=yn==null?void 0:yn.data)==null?void 0:vt.index)==null?void 0:Dn.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:fn})}})},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:hr})),En===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:()=>Ma(!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(Pe.Z,{key:$a})))),b.createElement(xe.default,{centered:!0,open:Wt,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:$r,onCancel:()=>Ma(!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 mt;Ua(!0),(yield(0,le.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:me.name,parent_id:(mt=me==null?void 0:me.parent_id)==null?void 0:mt[0]}})).status===0?(Vt($a+1),setTimeout(()=>{We.ZP.success("\u64CD\u4F5C\u6210\u529F"),Ma(!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(Pe.Z,null)))),b.createElement(rt,{onSave:me=>{Je(!0),Wn("\u5904\u7406\u4E2D"),To("/api/intelligent_imports/import.json",{html:me})},ref:Va}))},Aa=z;var vr=za},10438:function(ot,Gt,ae){"use strict";var b=ae(59301),Ee=ae(14973),we=ae(48136),Be=ae(29386),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),[le,Pe]=(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,ft=$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)),ft=Math.max(0,Math.min(ft,At)),Le($e.clientX,$e.clientY,Ye,Ge)&&(te(be),se(ft))},document.body.onmouseup=function(){document.body.onmousemove=null}},Le=(Me,Ye,Ge,$e)=>{const be=document.body.clientHeight,ft=document.body.clientWidth;return Me<20&&Ge>Me||Me>ft-20&&GeYe||Ye>be-20&&$e{le&&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)},[le]);const ut=()=>{ke||ze||Pe(!0)};return We.createElement("div",{style:E},We.createElement("div",{style:{width:Oe||"100%",position:"relative"},className:`${Ee.Z.mathFillWrap} ${ke||ze?"cursorDefault":""}`,onClick:()=>ut()},We.createElement("math-field",{disabled:ke,locale:"zh_cn",class:`${Ee.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:le,onOk:()=>{const Me=y.current.getData();x.current.setValue(Me),De(Me),Pe(!1)},onCancel:()=>{Pe(!1)},destroyOnClose:!0,className:"markdown-popup-form"},We.createElement(Be.Z,{value:ue,ref:y,onChange:De,showSaveButton:!1})))});Gt.Z=xe},29386:function(ot,Gt,ae){"use strict";var b=ae(59301),Ee=ae(95237),we=ae(43604),Be=ae(99313),Re=ae(3113),We=ae(28900),xe=ae(14973),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(Ee.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((le,Pe)=>Oe.createElement("div",{key:Pe},Oe.createElement("h1",null,le.name),Oe.createElement(Ee.Z,{gutter:[10,10]},le.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(Ee.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((le,Pe)=>Oe.createElement("div",{key:Pe},le.name&&Oe.createElement("h1",null,le.name),Oe.createElement(Ee.Z,{gutter:[10,10]},le.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},74038:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return ze}});var b=ae(59301),Ee=ae(78241),we=ae(43418),Be=ae(92832),Re=ae(87169),We=ae(23789),xe={publicQuest:"publicQuest___iYvzo",publicQuestContent:"publicQuestContent___vgbKh",public_tips:"public_tips___UX0Dn",concat:"concat___wOfND"},Ke=ae(76832),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]=Ee.default.useForm(),[z,te]=(0,b.useState)([]),[oe,se]=(0,b.useState)(!1);(0,b.useEffect)(()=>{},[]);const le=()=>De(void 0,null,function*(){if(Ue){const Pe=yield(0,We.ZP)("/api/disciplines.json",{method:"get",params:{source:Ue}});te(Pe.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(Pe=>De(void 0,null,function*(){const Fe=yield(0,We.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:Pe==null?void 0:Pe.name,sub_discipline_id:x}});(Fe==null?void 0:Fe.status)===0&&a({name:Pe==null?void 0:Pe.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(Ee.default,{labelAlign:"left",form:y,colon:!1},Oe.createElement(Ee.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)}})))}},98524:function(ot,jt,ae){"use strict";ae.d(jt,{Q:function(){return Oe},Z:function(){return ke}});var b=ae(59301),Ee={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:Ee.c},"C"),"C++":b.createElement("div",{className:Ee.cpp},"C++"),Java:b.createElement("div",{className:Ee.java},"Java"),Python:b.createElement("div",{className:Ee.python},"Python")};return b.createElement("div",{className:Be()(Ee.tags,Ue),style:ue},!!ze&&b.createElement("div",{className:Ee.text},ze),b.createElement("div",{className:Ee.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 ${Ee.edit}`}))}},94827:function(ot,jt,ae){"use strict";ae.d(jt,{t:function(){return Xn}});var b=ae(59301),Ee=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(80061),ke=ae(6075),ze=ae(44388),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(23789),z=ae(18509),te=ae(37962),oe=ae(56102),se=ae(78547),le=ae(59301),Pe=Object.defineProperty,Fe=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Ye=(mn,Ut,kt)=>Ut in mn?Pe(mn,Ut,{enumerable:!0,configurable:!0,writable:!0,value:kt}):mn[Ut]=kt,Ge=(mn,Ut)=>{for(var kt in Ut||(Ut={}))ut.call(Ut,kt)&&Ye(mn,kt,Ut[kt]);if(Le)for(var kt of Le(Ut))Me.call(Ut,kt)&&Ye(mn,kt,Ut[kt]);return mn},$e=(mn,Ut)=>Fe(mn,Qe(Ut)),be=(mn,Ut,kt)=>new Promise((Wn,ia)=>{var nn=Fa=>{try{Ka(kt.next(Fa))}catch(jn){ia(jn)}},Ba=Fa=>{try{Ka(kt.throw(Fa))}catch(jn){ia(jn)}},Ka=Fa=>Fa.done?Wn(Fa.value):Promise.resolve(Fa.value).then(nn,Ba);Ka((kt=kt.apply(mn,Ut)).next())}),dt=({buttonProps:mn,buttonText:Ut,form:kt,hackIdentifier:Wn="",answerKey:ia,data:nn})=>{const[Ba,Ka]=(0,b.useState)(!1),[Fa,jn]=(0,b.useState)(!1),[za,Aa]=(0,b.useState)(!1),[fr,ua]=(0,b.useState)({}),[Zn,da]=(0,b.useState)(""),[Ea,xa]=(0,b.useState)(""),_a=(0,b.useRef)(Wn),Sn=(0,b.useRef)(""),sn=(0,b.useRef)(!1);(0,b.useEffect)(()=>{za&&Ca()},[za]),(0,b.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const Et=()=>new Date().getTime(),Tt=nn==null?void 0:nn.code,Za=()=>{var Ra,Br;let nr=Tt?nn==null?void 0:nn.code:(Ra=kt.getFieldValue("hack_codes"))==null?void 0:Ra.code,Rr=Tt?nn==null?void 0:nn.answer_content:kt.getFieldValue(ia),Mo=Tt?nn==null?void 0:nn.input:(Br=kt.getFieldValue("hack_sets"))==null?void 0:Br.input;Rr==null||Rr.forEach(Yt=>{const Yn=Yt.value||Yt.answer_text||"";nr=nr.replace(/(@▁@|@▁▁@)/,Yn)}),xa(Mo),da(nr),ua({}),Aa(!0)},Ca=()=>be(void 0,null,function*(){var Ra,Br,nr,Rr;const Mo=Et(),Yt=Tt?nn==null?void 0:nn.time_limit:(Ra=kt.getFieldsValue())==null?void 0:Ra.hack.time_limit,Yn=Tt?(Br=nn==null?void 0:nn.answer_content)==null?void 0:Br.length:(Rr=(nr=kt.getFieldsValue())==null?void 0:nr.standard_answers)==null?void 0:Rr.length;Ka(!0),yield(0,z.bM)(Sn.current,{test_hack_code:Zn,test_input:Ea});function ea(){return be(this,null,function*(){const{status:ba,data:Ze}=yield(0,z.rX)(Sn.current,"submit"),en=Et()-Mo>(Yt+3)*1e3*Yn;if(sn.current){if(en){Ue.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),Ka(!1);return}if(ba===0){Ka(!1),ua($e(Ge({},Ze),{showText:!0}));return}setTimeout(ea,1e3)}})}ea()}),Wa=()=>be(void 0,null,function*(){var Ra,Br,nr,Rr,Mo,Yt,Yn;if(!nn){try{yield kt.validateFields()}catch(Mt){(nr=(Br=(Ra=Mt==null?void 0:Mt.errorFields)==null?void 0:Ra[0])==null?void 0:Br.name)!=null&&nr.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:(Yn=(Yt=Ze==null?void 0:Ze.hack)==null?void 0:Yt.sub_discipline_id)==null?void 0:Yn[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:(Mo=(Rr=Ze==null?void 0:Ze.hack)==null?void 0:Rr.sub_discipline_id)==null?void 0:Mo[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 ea=yield(0,y.ZP)(`/api/problems/${_a.current}/start.json`,{method:"get"});if((ea==null?void 0:ea.status)===0){Sn.current=ea==null?void 0:ea.identifier,sn.current=!0,jn(!1),Za();return}jn(!1)}),Da=Ra=>{const{status:Br,error_msg:nr,execute_time:Rr,output:Mo,input:Yt,expected_output:Yn}=Ra;let ea=null;switch(Br){case se.h.OK:ea=le.createElement(le.Fragment,null,le.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Rr/1e3,"\u79D2"),le.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case se.h.NOMATCH:ea=le.createElement(le.Fragment,null,le.createElement("div",null,"\u8F93\u5165\uFF1A"),le.createElement("pre",{style:{fontFamily:"initial"}},Yt),le.createElement("div",null,"\u8F93\u51FA\uFF1A"),le.createElement("pre",{style:{fontFamily:"initial"}},Mo&&a.Base64.decode(Mo)),le.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),le.createElement("pre",{style:{fontFamily:"initial"}},Yn&&a.Base64.decode(Yn)));break;case se.h.EXECUTEFAILURE:ea=le.createElement(le.Fragment,null,le.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",le.createElement("pre",null,Yt)),le.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),le.createElement("pre",{className:"error"},a.Base64.decode(nr)));break;case se.h.COMPILEFAILURE:ea=le.createElement(le.Fragment,null,le.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",le.createElement("pre",null,Yt)),le.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),le.createElement("pre",{className:"error"},a.Base64.decode(nr)));break;case se.h.PODFAILURE:ea=le.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case se.h.TIMEOUT:ea=le.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return le.createElement(le.Fragment,null," ",ea," ")};return le.createElement("div",null,le.createElement(ue.ZP,$e(Ge({loading:Fa},mn),{onClick:Wa}),Ut),le.createElement(Be.default,{open:za,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Ba,cancelButtonProps:{style:{display:"none"}},onOk:()=>Ca(),onCancel:()=>{sn.current=!1,Aa(!1)}},le.createElement("div",{className:x.result},le.createElement("div",{className:x.left},le.createElement("div",{className:"mb20"},le.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!nn&&le.createElement(oe.CopyToClipboard,{text:Zn,onCopy:()=>Ue.ZP.success("\u590D\u5236\u6210\u529F")},le.createElement("span",{style:{float:"right"},className:"current c-light-primary"},le.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),le.createElement(te.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:Zn,onChange:Ra=>da(Ra)})),le.createElement("div",{className:x.right},le.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),le.createElement("div",{className:x.box},le.createElement("div",{className:x.li},le.createElement(Ee.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Ea,onChange:Ra=>xa(Ra.target.value),bordered:!1,style:{height:180}}))),le.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),le.createElement("div",{className:x.box},le.createElement(E.Z,{spinning:Ba,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},le.createElement("div",{className:x.li,style:{height:196,overflow:"auto",padding:10}},Da(fr))))))))},Ft=ae(87169),Pt=ae(59301),En=Object.defineProperty,Bn=Object.defineProperties,Qt=Object.getOwnPropertyDescriptors,St=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,_t=(mn,Ut,kt)=>Ut in mn?En(mn,Ut,{enumerable:!0,configurable:!0,writable:!0,value:kt}):mn[Ut]=kt,xn=(mn,Ut)=>{for(var kt in Ut||(Ut={}))Te.call(Ut,kt)&&_t(mn,kt,Ut[kt]);if(St)for(var kt of St(Ut))et.call(Ut,kt)&&_t(mn,kt,Ut[kt]);return mn},It=(mn,Ut)=>Bn(mn,Qt(Ut)),qt=(mn,Ut)=>{var kt={};for(var Wn in mn)Te.call(mn,Wn)&&Ut.indexOf(Wn)<0&&(kt[Wn]=mn[Wn]);if(mn!=null&&St)for(var Wn of St(mn))Ut.indexOf(Wn)<0&&et.call(mn,Wn)&&(kt[Wn]=mn[Wn]);return kt};const{TextArea:Ce}=Ee.default,rt=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],on=({value:mn,onChange:Ut})=>Pt.createElement(Switch,{checked:mn,onChange:kt=>{Ut(kt)}}),tt="@\u2581@",pt="@\u2581\u2581@",Xn=({questionTitlePlaceholder:mn,form:Ut,scoreByBlank:kt=!1,hackidentifier:Wn,answerKey:ia})=>{const[nn,Ba]=(0,b.useState)(!1),[Ka,Fa]=(0,b.useState)(!1),za=(0,ke.useParams)().type==="edit",Aa=(Sn,sn)=>{const Et=sn.line;let Tt=0;for(let Ca=0;Ca{const Za=Sn.getRange(sn.from,sn.to);let Ca=0;if(sn.text.forEach(Wa=>{Ca+=Wa.split(tt).length-1}),sn.text.forEach(Wa=>{Ca+=Wa.split(pt).length-1}),sn.origin!=="setValue"){if(Za&&(Za.indexOf(tt)!==-1||Za.indexOf(pt)!==-1)){const Wa=Za.split(tt).length-1+Za.split(pt).length-1,Da=Aa(Sn,sn.from);if(console.log(`\u5220\u9664${Wa}\u4E2A\uFF0C \u524D\u9762\u6709${Da}\u4E2A\uFF0C\u65B0\u589E${Ca}\u4E2A`),Wa>1){const Ra=Array.from({length:Wa},(Br,nr)=>Da+nr);Tt(Ra)}else Tt(Da)}else if(Ca>0){const Wa=Aa(Sn,sn.from);console.log(`\u65B0\u589E${Ca}\u4E2A\uFF0C\u4E4B\u524D\u6709${Wa}\u4E2A`),Et(Ca,Wa)}}},ua=()=>{const Sn=Ut.getFieldValue(ia);Ut.setFieldsValue({[ia]:Sn==null?void 0:Sn.map((sn,Et)=>It(xn({},sn),{position:Et+1}))})},Zn=(0,b.useRef)(),da=(Sn,sn)=>{for(let Et=0;Et{Ea.current(Sn),ua()},_a=we.default.useWatch(ia,Ut);return Pt.createElement("div",{className:ze.Z.wrap},Pt.createElement(we.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},Pt.createElement(De.h,{scrollId:"name",watch:!0,height:140})),Pt.createElement("div",{className:ze.Z.questionTitleEditorWrap},Pt.createElement(we.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},Pt.createElement(De.h,{scrollId:"name",watch:!0,height:400,hidetoolBar:!0,showNullProgramButton:!0,onChange:(Sn,sn)=>{const Et=Ut.getFieldValue(ia);console.log("--preAnswerData",Et,sn),Ut.setFieldsValue({[ia]:Et==null?void 0:Et.map((Tt,Za)=>{var Ca;return It(xn({},Tt),{position:Za+1,multi_line:(Ca=sn==null?void 0:sn[Za])==null?void 0:Ca.multiLine})})})},placeholder:mn,onCMBeforeChange:(Sn,sn)=>{fr(Sn,sn,da,xa)}}))),Pt.createElement(we.default.List,{name:ia,rules:[{validator(Sn,sn){if(!(sn!=null&&sn.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Et of sn){const{answer_text:Tt}=Et||{};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:sn,remove:Et},{errors:Tt})=>(Zn.current=sn,Ea.current=Et,Pt.createElement(Pt.Fragment,null,Pt.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},Pt.createElement(we.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),Pt.createElement("div",{onClick:()=>{Be.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:Pt.createElement("div",null,Pt.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",Pt.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),Pt.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"}},Pt.createElement(Ft.Z,{style:{marginRight:3,color:"#3061D0"}}),Pt.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Sn.map((Za,Ca)=>{var Wa=Za,{key:Da,name:Ra}=Wa,Br=qt(Wa,["key","name"]),nr,Rr;return Pt.createElement(Re.Z,{className:"mb20",key:Da,align:"middle",wrap:!1},Pt.createElement(We.Z,{flex:"0 0 auto",className:`${ze.Z.blankIndex}`},"\u586B\u7A7A\u9879",Ca+1),Pt.createElement(We.Z,{flex:1},Pt.createElement(Re.Z,{align:"top",justify:"space-between",wrap:!1},Pt.createElement(We.Z,null,Pt.createElement(we.default.Item,It(xn({},Br),{name:[Ra,"answer_text"],noStyle:!0}),(nr=_a==null?void 0:_a[Ra])!=null&&nr.multi_line||(Rr=_a==null?void 0:_a[Ra])!=null&&Rr.multiLine?Pt.createElement(Ce,{spellCheck:!1,style:{marginLeft:10,width:550}}):Pt.createElement(Ee.default,{style:{marginLeft:10,width:550},className:ze.Z.blankInput,size:"large",maxLength:1e3,onBlur:Mo=>{}}))),kt&&Pt.createElement(We.Z,{flex:"224px"},Pt.createElement(we.default.Item,It(xn({},Br),{name:[Ra,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),Pt.createElement(xe.Z,{size:"large",className:ze.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),Pt.createElement("div",{onClick:()=>Ba(!0)},Pt.createElement(we.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Pt.createElement(De.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:nn}))),Pt.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"}]},Pt.createElement(Ke.default,{size:"large"},rt.map(Sn=>Pt.createElement(Ke.default.Option,{key:Sn.title,value:Sn.key}," ",Sn.title)))),Pt.createElement(we.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},Pt.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},Pt.createElement(xe.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),Pt.createElement("span",{className:"ml10 font14"},"\u79D2")),Pt.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"}]},Pt.createElement(Oe.ZP.Group,{style:{marginTop:-10}},Pt.createElement(Oe.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),Pt.createElement(Oe.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),Pt.createElement(Oe.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),Pt.createElement(we.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}}),Pt.createElement("div",{style:{background:"#F6F7F9",padding:15}},Pt.createElement(we.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:["hack_sets","input"]},Pt.createElement(Ce,{rows:4})),Pt.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"}]},Pt.createElement(Ce,{rows:4}))),Pt.createElement(dt,{form:Ut,answerKey:ia,hackIdentifier:Wn,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:Pt.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"}}}))}},80815:function(ot,jt,ae){"use strict";ae.d(jt,{u:function(){return le}});var b=ae(59301),Ee=ae(95237),we=ae(43604),Be=ae(6848),Re=ae(78241),We=ae(44388),xe=ae(32134),Ke=ae(12893),Oe=ae(80061),De=ae(59301),ke=Object.defineProperty,ze=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,x=(Pe,Fe,Qe)=>Fe in Pe?ke(Pe,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Pe[Fe]=Qe,y=(Pe,Fe)=>{for(var Qe in Fe||(Fe={}))E.call(Fe,Qe)&&x(Pe,Qe,Fe[Qe]);if(ue)for(var Qe of ue(Fe))a.call(Fe,Qe)&&x(Pe,Qe,Fe[Qe]);return Pe},z=(Pe,Fe)=>ze(Pe,Ue(Fe)),te=(Pe,Fe)=>{var Qe={};for(var Le in Pe)E.call(Pe,Le)&&Fe.indexOf(Le)<0&&(Qe[Le]=Pe[Le]);if(Pe!=null&&ue)for(var Le of ue(Pe))Fe.indexOf(Le)<0&&a.call(Pe,Le)&&(Qe[Le]=Pe[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:Pe,onChange:Fe,choiceTextKey:Qe,answerKey:Le,index:ut,isEdit:Me,setInputActive:Ye,form:Ge,choiceOptionsPath:$e,allowChangeMode:be,showAddIcon:ft,addItem:dt,deleteItem:Ft})=>{console.log(Pe,"value");const Pt=(Pe==null?void 0:Pe[Le])===1,En=()=>{const Qt=Ge.getFieldValue($e);Ge.setFieldValue($e,Qt.map(St=>z(y({},St),{[Le]:0})))},Bn=()=>{Pt?Fe(z(y({},Pe),{[Le]:0})):(be||En(),Fe(z(y({},Pe),{[Le]:1})))};return De.createElement(Ee.Z,{className:We.Z.choiceWrap,align:"middle",wrap:!1},De.createElement(we.Z,{onClick:Bn,className:`${We.Z.choiceIndex} ${Pt?We.Z.activeAnswer:""}`},oe[ut]),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:Pe==null?void 0:Pe[Qe],onChange:Qt=>{Fe(z(y({},Pe),{[Qe]:Qt}))}})),De.createElement(we.Z,{flex:"0 0 auto",className:"ml15"},De.createElement("div",{onClick:Bn,className:`${We.Z.setAnswerBtn} ${Pt?We.Z.activeAnswer:""}`},Pt?"\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:dt,style:{visibility:ft?"visible":"hidden"}})),De.createElement(Be.Z,{title:"\u5220\u9664"},De.createElement(Ke.Z,{className:We.Z.deleteIcon,onClick:Ft,style:{visibility:ut>1?"visible":"hidden"}}))))},le=({questionTitlePlaceholder:Pe,titleKey:Fe,choiceKey:Qe,analysisKey:Le,choiceTextKey:ut,answerKey:Me,choiceOptionsPath:Ye,allowChangeMode:Ge=!0,form:$e,showAnalysis:be=!0})=>{const[ft,dt]=(0,b.useState)(),[Ft,Pt]=(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:Pe}))),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 Qt=Bn.some(Te=>Te[Me]===1),St=Bn.findIndex(Te=>{var et;return((et=Te[ut])==null?void 0:et.length)<=0});return St!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${oe[St]}\u9009\u9879\u7684\u5185\u5BB9`)):Qt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(En,{add:Bn,remove:Qt})=>De.createElement("div",{id:Array.isArray(Ye)?Ye.join("_"):`${Ye}`},En.map((St,Te)=>{var et=St,{key:_t,name:xn}=et,It=te(et,["key","name"]);const qt=ft===_t,Ce=()=>{dt(_t)},rt=Te<7&&Te===En.length-1,on=()=>Bn({[ut]:"",[Me]:0}),tt=()=>Qt(xn);return De.createElement(Re.default.Item,z(y({},It),{key:_t,name:xn,className:We.Z.choiceListWrap,rules:[{validator(pt,Xn){return Xn!=null&&Xn.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${oe[Te]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),De.createElement(se,{choiceTextKey:ut,answerKey:Me,index:Te,isEdit:qt,setInputActive:Ce,form:$e,choiceOptionsPath:Ye,allowChangeMode:Ge,showAddIcon:rt,addItem:on,deleteItem:tt}))}),En.length<8&&De.createElement("div",{className:`${We.Z.addBtn} mb30`,onClick:()=>Bn({[ut]:"",[Me]:0})},"\u6DFB\u52A0\u9009\u9879"))),be&&De.createElement("div",{onClick:()=>Pt(!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}))))}},41940:function(ot,jt,ae){"use strict";ae.d(jt,{u:function(){return Ge}});var b=ae(59301),Ee=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(80061),ze=ae(12893),Ue=ae(61485),ue=ae(44388),E=ae(10438),a=ae(59301),x=Object.defineProperty,y=Object.defineProperties,z=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,le=($e,be,ft)=>be in $e?x($e,be,{enumerable:!0,configurable:!0,writable:!0,value:ft}):$e[be]=ft,Pe=($e,be)=>{for(var ft in be||(be={}))oe.call(be,ft)&&le($e,ft,be[ft]);if(te)for(var ft of te(be))se.call(be,ft)&&le($e,ft,be[ft]);return $e},Fe=($e,be)=>y($e,z(be)),Qe=($e,be)=>{var ft={};for(var dt in $e)oe.call($e,dt)&&be.indexOf(dt)<0&&(ft[dt]=$e[dt]);if($e!=null&&te)for(var dt of te($e))be.indexOf(dt)<0&&se.call($e,dt)&&(ft[dt]=$e[dt]);return ft};const Le=({value:$e,onChange:be})=>{const ft=Ft=>{Ee.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 Pt=[...$e];Pt.splice(Ft,1),be(Pt)}})},dt=()=>{const Ft=[...$e];Ft.push(""),be(Ft)};return a.createElement(we.Z,{className:"ml20"},a.createElement(Be.Z,{flex:1},$e==null?void 0:$e.map((Ft,Pt)=>a.createElement(we.Z,{key:`${Ft}_${Pt}`,className:"mb20"},a.createElement(Re.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:Ft,autoSize:{maxRows:3},maxLength:1e3,onBlur:En=>{const Bn=[...$e],Qt=En.target.value.trim();Bn[Pt]=Qt,be(Bn)}}),a.createElement(We.Z,{title:"\u5220\u9664"},a.createElement(ze.Z,{className:ue.Z.deleteIcon,style:{marginLeft:15,visibility:Pt>0?"visible":"hidden"},onClick:()=>ft(Pt)}))))),a.createElement(Be.Z,null,a.createElement("div",{className:`${ue.Z.addBtn}`,onClick:()=>{dt()}},"\u65B0\u589E\u7B54\u6848")))},ut=({value:$e,onChange:be})=>{const ft=Ft=>{Ee.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 Pt=[...$e];Pt.splice(Ft,1),be(Pt)}})},dt=()=>{const Ft=[...$e];Ft.push(""),be(Ft)};return a.createElement(we.Z,{className:"ml20"},a.createElement(Be.Z,{flex:1},$e==null?void 0:$e.map((Ft,Pt)=>a.createElement(we.Z,{key:`${Ft}_${Pt}`,align:"middle",className:"mb20"},a.createElement(E.Z,{value:Ft,style:{flex:1},onChange:En=>{const Bn=[...$e];Bn[Pt]=En,be(Bn)}}),a.createElement(We.Z,{title:"\u5220\u9664"},a.createElement(ze.Z,{className:ue.Z.deleteIcon,style:{marginLeft:15,visibility:Pt>0?"visible":"hidden"},onClick:()=>ft(Pt)}))))),a.createElement(Be.Z,null,a.createElement("div",{className:`${ue.Z.addBtn}`,onClick:()=>{dt()}},"\u65B0\u589E\u7B54\u6848")))},Me=({value:$e=!0,onChange:be})=>a.createElement(xe.Z,{checked:!$e,onChange:ft=>{be(!ft)}}),Ye="\u2581",Ge=({questionTitlePlaceholder:$e,form:be,scoreByBlank:ft=!1,answerKey:dt})=>{const[Ft,Pt]=(0,b.useState)(!1),En=(It,qt)=>{const Ce=qt.line;let rt=0;for(let tt=0;tt{const on=It.getRange(qt.from,qt.to);let tt=0;if(qt.text.forEach(pt=>{tt+=pt.split(Ye).length-1}),qt.origin!=="setValue"){if(on&&on.indexOf(Ye)!==-1){const pt=on.split(Ye).length-1,Xn=En(It,qt.from);if(console.log(`\u5220\u9664${pt}\u4E2A\uFF0C \u524D\u9762\u6709${Xn}\u4E2A\uFF0C\u65B0\u589E${tt}\u4E2A`),pt>1){const mn=Array.from({length:pt},(Ut,kt)=>Xn+kt);rt(mn)}else rt(Xn)}else if(tt>0){const pt=En(It,qt.from);console.log(`\u65B0\u589E${tt}\u4E2A\uFF0C\u4E4B\u524D\u6709${pt}\u4E2A`),Ce(tt,pt)}}},Qt=()=>{const It=be.getFieldValue(dt);be.setFieldsValue({[dt]:It.map((qt,Ce)=>Fe(Pe({},qt),{position:Ce+1}))})},St=(0,b.useRef)(),Te=(It,qt)=>{for(let Ce=0;Ce{et.current(It),Qt()},xn=Ke.default.useWatch(dt,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:(It,qt)=>{Bn(It,qt,Te,_t)}}))),a.createElement(Ke.default.List,{name:dt,rules:[{validator(It,qt){if(!(qt!=null&&qt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Ce of qt){const{answer_text:rt}=Ce||{};if(rt!=null&&rt.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()}}]},(It,{add:qt,remove:Ce},{errors:rt})=>(St.current=qt,et.current=Ce,a.createElement(a.Fragment,null,a.createElement(Ke.default.Item,{label:a.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(It!=null&&It.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}}),It.map((on,tt)=>{var pt=on,{key:Xn,name:mn}=pt,Ut=Qe(pt,["key","name"]),kt,Wn;return a.createElement("div",{style:{marginBottom:10},key:Xn},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(Pe({},Ut),{name:[mn,"model"],noStyle:!0}),a.createElement(Oe.ZP.Group,{onChange:()=>{const ia=be.getFieldValue(dt);be.setFieldsValue({[dt]:ia.map((nn,Ba)=>Fe(Pe({},nn),{answer_text:mn===Ba?[""]:nn.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(Pe({},Ut),{name:[mn,"answer_text"],noStyle:!0}),((Wn=(kt=be.getFieldValue(dt))==null?void 0:kt[mn])==null?void 0:Wn.model)===1?a.createElement(Le,null):a.createElement(ut,null))),ft&&a.createElement(Be.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},a.createElement(Ke.default.Item,Fe(Pe({},Ut),{name:[mn,"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(Pe({},Ut),{name:[mn,"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")),(xn==null?void 0:xn.length)>1&&a.createElement(we.Z,{align:"middle",className:(xn==null?void 0:xn.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:()=>Pt(!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}))))}},48700:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return te}});var b=ae(59301),Ee=ae(95237),we=ae(43604),Be=ae(78241),Re=ae(44388),We=ae(80061),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,le)=>se in oe?Ke(oe,se,{enumerable:!0,configurable:!0,writable:!0,value:le}):oe[se]=le,E=(oe,se)=>{for(var le in se||(se={}))ze.call(se,le)&&ue(oe,le,se[le]);if(ke)for(var le of ke(se))Ue.call(se,le)&&ue(oe,le,se[le]);return oe},a=(oe,se)=>Oe(oe,De(se)),x=(oe,se)=>{var le={};for(var Pe in oe)ze.call(oe,Pe)&&se.indexOf(Pe)<0&&(le[Pe]=oe[Pe]);if(oe!=null&&ke)for(var Pe of ke(oe))se.indexOf(Pe)<0&&Ue.call(oe,Pe)&&(le[Pe]=oe[Pe]);return le};const y={\u6B63\u786E:"T",\u9519\u8BEF:"F"},z=({value:oe,onChange:se,form:le})=>{const Pe=(oe==null?void 0:oe.is_answer)===1,Fe=oe==null?void 0:oe.choice_text,Qe=()=>{const Le=le.getFieldsValue().choices.map(ut=>({choice_text:ut.choice_text,is_answer:0}));le.setFieldsValue({choices:Le}),se(a(E({},oe),{is_answer:1}))};return xe.createElement(Ee.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} ${Pe?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} ${Pe?Re.Z.activeJudgementAnswer:""}`},Fe)),xe.createElement(we.Z,{flex:"0 0 auto",className:"ml15"},xe.createElement("div",{onClick:Qe,className:`${Re.Z.setAnswerBtn} ${Pe?Re.Z.activeAnswer:""}`},Pe?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},te=({questionTitlePlaceholder:oe,choiceKey:se,form:le})=>{const[Pe,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 ut=Le,{key:Me,name:Ye}=ut,Ge=x(ut,["key","name"]);return xe.createElement(Be.default.Item,a(E({},Ge),{key:Me,name:Ye,noStyle:!0}),xe.createElement(z,{form:le}))})))),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:Pe}))))}},80061:function(ot,jt,ae){"use strict";ae.d(jt,{h:function(){return E},x:function(){return a}});var b=ae(37962),Ee=ae(44388),we=ae(28900),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:(le,Pe)=>{Pe!=null&&Pe.length?te(le,Pe):te(le)}})))},a=({value:x,onChange:y,placeholder:z,height:te=140,isEdit:oe,miniToolbar:se,watch:le=!0})=>oe?Be.createElement(b.Z,{watch:le,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:Ee.Z.inputBorder,value:x}):Be.createElement("div",{className:`${Ee.Z.inputBorder} ${Ee.Z.placeholder} inputBorderError`},z))},88637:function(ot,jt,ae){"use strict";ae.d(jt,{W:function(){return ut}});var b=ae(59301),Ee=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(44388),ze=ae(80061),Ue=ae(37962),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},le=(Me,Ye)=>a(Me,x(Ye)),Pe=(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=Pe(Ye,["value","onChange"]);const ft=dt=>{$e([dt])};return b.createElement(Ue.Z,le(se({},be),{defaultValue:Ge==null?void 0:Ge[0],onChange:ft}))},Qe=Me=>{if(!Me)return!1;if(/^s*$/.test(Me)||Me.trim()===""){Ee.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==="|"?(Ee.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 "))),ut=({questionTitlePlaceholder:Me,form:Ye,showKeywords:Ge,isMustKeyWords:$e=Ge})=>{const[be,ft]=(0,b.useState)(!1),[dt,Ft]=(0,b.useState)(""),Pt=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"}})))),(Pt||!$e)&&b.createElement(Be.default.List,{name:"keywords",rules:[{validator(Bn,Qt){return $e?Qt!=null&&Qt.length?(Qt==null?void 0:Qt.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:Qt,remove:St})=>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:dt,onChange:Te=>{Ft(Te.target.value)},maxLength:50,allowClear:!0,onPressEnter:Te=>{var et,_t,xn,It;const qt=`${(et=Te.target)==null?void 0:et.value}`,Ce=(xn=(_t=qt==null?void 0:qt.split("|"))==null?void 0:_t.filter(tt=>!!tt))==null?void 0:xn.map(tt=>tt==null?void 0:tt.trim()),rt=Ye.getFieldValue("keywords"),on=((It=rt==null?void 0:rt.map(tt=>tt==null?void 0:tt.keyword))==null?void 0:It.flat())||[];for(const tt of Ce)if(on.includes(tt)){Ee.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Qe(qt)&&(Qt({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(xe.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:_t,name:xn}=et,It=Pe(et,["key","name"]);return b.createElement(We.Z,{key:_t,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,le(se({},It),{name:[xn,"keyword"]}),b.createElement(Le,{onClose:()=>St(xn)})),$e&&b.createElement(Be.default.Item,le(se({},It),{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:()=>ft(!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}))))}},24417:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return Re}});var b={text:"text___bQulM",sup:"sup___rX_Y3"},Ee=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(Ee.default.Item,{noStyle:!0,name:xe},we.createElement(Ke,null))}},33008:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return Qe},P:function(){return le}});var b=ae(59301),Ee=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(95382),Oe=Object.defineProperty,De=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,E=(Le,ut,Me)=>ut in Le?Oe(Le,ut,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Le[ut]=Me,a=(Le,ut)=>{for(var Me in ut||(ut={}))Ue.call(ut,Me)&&E(Le,Me,ut[Me]);if(ze)for(var Me of ze(ut))ue.call(ut,Me)&&E(Le,Me,ut[Me]);return Le},x=(Le,ut)=>De(Le,ke(ut)),y=(Le,ut)=>{var Me={};for(var Ye in Le)Ue.call(Le,Ye)&&ut.indexOf(Ye)<0&&(Me[Ye]=Le[Ye]);if(Le!=null&&ze)for(var Ye of ze(Le))ut.indexOf(Ye)<0&&ue.call(Le,Ye)&&(Me[Ye]=Le[Ye]);return Me},z=(Le,ut,Me)=>new Promise((Ye,Ge)=>{var $e=dt=>{try{ft(Me.next(dt))}catch(Ft){Ge(Ft)}},be=dt=>{try{ft(Me.throw(dt))}catch(Ft){Ge(Ft)}},ft=dt=>dt.done?Ye(dt.value):Promise.resolve(dt.value).then($e,be);ft((Me=Me.apply(Le,ut)).next())});const te=({studentNames:Le,total:ut})=>{const Me=["","\u4E00","\u4E24","\u4E09"];return ut>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},ut),"\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[ut],"\u540D\u5B66\u751F")},oe=({used:Le,copy:ut,canNotCopy:Me,studentNames:Ye,studentCount:Ge,inPaper:$e,is_random:be=!1,position:ft=""})=>{const dt=()=>{if(ut>0&&Me>0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:xe.orangeColor},ut),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C",b.createElement("span",{className:xe.orangeColor},Me),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236");if(ut>0&&Me===0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:xe.orangeColor},ut),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236");if(ut===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")},Ft=ft||($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:xe.orangeColor},Le),"\u4E2A\u9879\u76EE\uFF0C",dt(),"\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:ut,visible:Me,inPaper:Ye,renderData:Ge,type:$e,isMultipleCourse:be=!1})=>{const[ft]=Ee.default.useForm(),[dt,Ft]=(0,b.useState)(1),[Pt,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]),Qt=(0,b.useMemo)(()=>{var St;return(St=Ge==null?void 0:Ge.course_data_list)==null?void 0:St.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:xe.antdModal,width:682,confirmLoading:Pt,onCancel:Le,onOk:()=>z(void 0,null,function*(){var St;En(!0);let Te=dt;if(be){const et=a({},ft.getFieldsValue());Te=(St=Ge==null?void 0:Ge.course_data_list)==null?void 0:St.map(_t=>et[_t.id]!==void 0?x(a({},_t),{is_copy:et[_t.id]}):_t)}yield ut(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(Ee.default,{form:ft,preserve:!1},Qt==null?void 0:Qt.map(St=>b.createElement(b.Fragment,{key:St.id},b.createElement("h3",{className:"ml15 mb5"},St.name),b.createElement(Ee.default.Item,{name:St.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:dt,onChange:St=>Ft(St.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:Pt,title:"\u63D0\u793A",width:682,onCancel:Le,onOk:()=>z(void 0,null,function*(){var St;En(!0);let Te=0;if(be){const et=a({},ft.getFieldsValue());Te=(St=Ge==null?void 0:Ge.course_data_list)==null?void 0:St.map(_t=>et[_t.id]!==void 0?x(a({},_t),{is_use:et[_t.id]}):_t)}yield ut(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(Ee.default,{form:ft,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"),Qt==null?void 0:Qt.map(St=>b.createElement(b.Fragment,{key:St.id},b.createElement("h3",{className:"ml15 mb5"},St.name),b.createElement(Ee.default.Item,{name:St.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"))))},le=function(){const[Le,ut]=(0,b.useState)(!1),[Me,Ye]=(0,b.useState)();return[Le,()=>ut(!1),Me,be=>z(this,null,function*(){var ft;const dt=be,{isImportMultipleCourse:Ft=!1}=dt,Pt=y(dt,["isImportMultipleCourse"]);console.log(be);const En=(be==null?void 0:be.result)||(yield(0,Ke.Tr)(Pt));return"status"in En?!1:Ft?((ft=En==null?void 0:En.course_data_list)==null?void 0:ft.some(Qt=>Qt.is_show))?(Ye(En),ut(!0),!0):En.course_data_list||[]:En.student_count===0?!1:(Ye(En),ut(!0),!0)})]},Pe=Le=>{const[ut]=Ee.default.useForm(),[Me,Ye]=(0,b.useState)(!1),{onCancel:Ge,onOk:$e,visible:be,inPaper:ft=!1,renderData:dt,type:Ft,isMultipleCourse:Pt=!1,position:En}=Le;let Bn=(0,b.useMemo)(()=>ft?[{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(Ee.default.Item,{name:[`${Ft==="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(Ee.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: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(Ee.default.Item,{name:[`${Ft==="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(Ee.default.Item,{name:[`${Ft==="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")))}],[ft]),Qt=(0,b.useMemo)(()=>ft?[{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(Ee.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(Ee.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: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(Ee.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(Be.ZP.Group,null,b.createElement(Be.ZP,{value:1},"\u662F"),b.createElement(Be.ZP,{value:0},"\u5426"))),b.createElement(Ee.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"})))}],[ft]);if(Pt){const Te={title:"\u8BFE\u5802\u540D\u79F0",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:xe.tableCell,render:(et,_t)=>b.createElement("a",{href:`/classrooms/${_t.course_id}`},et)};Bn=[Te,...Bn],Qt=[Te,...Qt]}const St=(0,b.useMemo)(()=>oe({used:dt==null?void 0:dt.repeat_shixun_num,copy:dt==null?void 0:dt.can_copy_num,canNotCopy:dt==null?void 0:dt.no_copy_num,studentNames:dt==null?void 0:dt.student_names,studentCount:dt==null?void 0:dt.student_count,is_random:dt==null?void 0:dt.is_random,inPaper:ft,position:En}),[dt,ft,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=ut.getFieldsValue(),et=Object.keys(Te).map(_t=>({id:parseInt(_t.split("_")[0]),course_id:parseInt(_t.split("_")[1]),is_use:Te[_t].is_use,is_copy:Te[_t].is_copy}));yield $e(et),Ye(!1)}),onCancel:Ge,width:880,okText:"\u786E\u8BA4",className:xe.antdModal,destroyOnClose:!0},b.createElement(Ee.default,{form:ut,preserve:!1},b.createElement("div",{className:xe.brief},St),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")),(dt==null?void 0:dt.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:Bn,className:xe.antdTable,dataSource:dt==null?void 0:dt.can_copy_list,rowKey:Ft==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),(dt==null?void 0:dt.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:Qt,className:xe.antdTable,dataSource:dt==null?void 0:dt.no_copy_list,rowKey:Ft==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})),(dt==null?void 0:dt.no_use_list.length)>0&&(dt==null?void 0:dt.no_use_list.map(Te=>b.createElement("div",{key:Ft==="subject"?Te.stage_shixun_id:Te.shixun_course_id||Te.id},b.createElement(Ee.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(Ee.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:ut}=Le;return ut==="multiple"?b.createElement(Pe,a({},Le)):b.createElement(se,a({},Le))}},40886:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return Ke}});var b=ae(59301),Ee={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:le,repeat_shixun_num:Pe,student_count:Fe,total_num:Qe,use_num:Le}=De;let ut=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:Ee.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:Ee.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:Ee.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:Ee.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:Ee.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:Ee.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:Ee.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:Ee.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:Ee.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:Ee.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:Ee.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:Ee.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:Ee.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:Ee.orangeColor},Fe)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",b.createElement("span",{className:Ee.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:Ee.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:Ee.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",b.createElement("span",{className:Ee.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",b.createElement("span",{className:Ee.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:Ee.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:Ee.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:Ee.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:Ee.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",b.createElement("span",{className:Ee.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:Ee.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:Ee.flex},b.createElement("img",{src:Re,style:{width:14}}),b.createElement("span",{className:Ee.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),b.createElement("div",{className:Ee.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:Ee.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",ut&&b.createElement("span",{className:Ee.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",ut&&b.createElement("span",{className:Ee.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:Ee.flex},b.createElement("img",{src:Be,style:{width:14}}),b.createElement("span",{className:Ee.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),b.createElement("div",{className:Ee.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:!ut&&"none"}},zIndex:1003,confirmLoading:Ue,okText:ut?ze:"\u6211\u77E5\u9053\u4E86",onOk:()=>We(void 0,null,function*(){ut?yield ke([...a,...se]):E(!1)})},b.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Me(),Ye()))}},8738:function(ot,jt,ae){"use strict";ae.d(jt,{h:function(){return oe}});var b=ae(59301),Ee=ae(57809),we=ae(78241),Be=ae(3113),Re=ae(89780),We=ae.n(Re),xe=ae(42741),Ke=ae(27494),Oe=Object.defineProperty,De=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,E=(se,le,Pe)=>le in se?Oe(se,le,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[le]=Pe,a=(se,le)=>{for(var Pe in le||(le={}))Ue.call(le,Pe)&&E(se,Pe,le[Pe]);if(ze)for(var Pe of ze(le))ue.call(le,Pe)&&E(se,Pe,le[Pe]);return se},x=(se,le)=>De(se,ke(le));const y=Ee.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:le})=>{const[Pe,Fe]=(0,b.useState)("python");function Qe(ut){Fe(te[ut][1])}function Le(ut){se(ut)}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(Ee.default,{getPopupContainer:ut=>ut.parentNode,onChange:Qe},Object.keys(te).map(ut=>b.createElement(y,{key:ut,value:ut},te[ut][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:Pe})),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:le},"\u53D6\u6D88")))};function oe({value:se,onChange:le,mode:Pe,options:Fe={}}){const Qe=(0,b.useRef)(),[Le,ut]=(0,b.useState)();return(0,b.useEffect)(()=>{if(Le){let Me=function(Ye){const Ge=Ye.getValue();le&&le(Ge)};return Le.on("change",Me),()=>{Le.off("change",Me)}}},[Le,le]),(0,b.useEffect)(()=>{Le&&Le.setOption("mode",Pe)},[Le,Pe]),(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:Pe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Fe));ut(Me)}},[Qe.current,Le]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:Qe}))}},37962:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return _n}});var b=ae(59301),Ee=ae(89780),we=ae.n(Ee),Be=ae(76374),Re=ae(42741),We=ae(6313),xe=ae(25717),Ke=ae(99498),Oe=ae(25419),De=ae(67549),ke=ae(28900),ze=({value:Je="",className:nt,showTextOnly:Xe,showLines:ln,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 le=[{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 Pe({onActionCallback:Je,title:nt,icon:Xe,actionName:ln,className:Cn="",children:Nn}){function wa(){Je(ln)}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:ln,fullScreen:Cn,insertTemp:Nn,hidetoolBar:wa,extraUse:pa})=>{const na=[...le,{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&&na.map((ya,qn)=>Ue.createElement("li",{key:qn},ya.actionName?Ue.createElement(Pe,se(oe({},ya),{onActionCallback:ln})):Ue.createElement("span",{className:"v-line"}))),nt?Ue.createElement("li",null,Ue.createElement(Pe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ln},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(Pe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ln},Ue.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ue.createElement("li",null,Ue.createElement(Pe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ln},Ue.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Nn&&Ue.createElement("li",null,Ue.createElement(Pe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Nn}`,onActionCallback:ln},Ue.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),pa&&Ue.createElement("li",null,pa),Ue.createElement("li",{className:"btn-full-screen"},Ue.createElement(Pe,{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:ln})))},Qe=ae(23252),Le=ae(78241),ut=ae(92832),Me=ae(3113),Ye=Object.defineProperty,Ge=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,dt=Object.prototype.propertyIsEnumerable,Ft=(Je,nt,Xe)=>nt in Je?Ye(Je,nt,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Je[nt]=Xe,Pt=(Je,nt)=>{for(var Xe in nt||(nt={}))ft.call(nt,Xe)&&Ft(Je,Xe,nt[Xe]);if(be)for(var Xe of be(nt))dt.call(nt,Xe)&&Ft(Je,Xe,nt[Xe]);return Je},En=(Je,nt)=>Ge(Je,$e(nt));const Bn={labelCol:{span:4},wrapperCol:{span:20}};var Qt=({callback:Je,onCancel:nt})=>{function Xe(ln){Je(ln)}return b.createElement(Le.default,En(Pt({},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(ut.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(ut.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")))},St=ae(8738),Te=ae(30315),et=ae(43418),_t=ae(95237),xn=ae(94094),It=ae(59301),qt=({callback:Je,onCancel:nt})=>{const Xe=document.createElement("canvas"),ln=Xe.getContext("2d");Xe.width=1e3,Xe.height=800,ln.fillStyle="#ffffff",ln.fillRect(0,0,Xe.width,Xe.height);const Cn=Xe.toDataURL("image/png");return It.createElement(et.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},It.createElement(_t.Z,{style:{height:"100vh"}},It.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:nt})))},Ce=ae(12378);function rt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(rt,go.CommandHandler),rt.prototype.canAlignSelection=function(){var Je=this.diagram;return!(Je===null||Je.isReadOnly||Je.isModelReadOnly||Je.selection.count<2)},rt.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")},rt.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 ln=Xe.actualBounds.x+Xe.actualBounds.width;nt=Math.max(ln,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")},rt.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")},rt.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 ln=Xe.actualBounds.y+Xe.actualBounds.height;nt=Math.max(ln,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")},rt.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(ln){ln instanceof go.Link||ln.move(new go.Point(Xe-ln.actualBounds.width/2,ln.actualBounds.y))}),Je.commitTransaction("aligning Center X")}},rt.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(ln){ln instanceof go.Link||ln.move(new go.Point(ln.actualBounds.x,Xe-ln.actualBounds.height/2))}),Je.commitTransaction("aligning Center Y")}},rt.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(pa){pa instanceof go.Link||Xe.push(pa)});for(var ln=0;ln0){for(var pa=Nn.elt(wa-1);pa!==null&&pa.isTreeExpanded&&!pa.isTreeLeaf;){var na=this._sortTreeChildrenByY(pa);pa=na.last()}pa!==null&&Je.select(pa)}else Je.select(Cn)}}else if(Xe.key==="Down")if(nt.isTreeExpanded&&!nt.isTreeLeaf){var ln=this._sortTreeChildrenByY(nt).first();ln!==null&&Je.select(ln)}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},rt.prototype.copyToClipboard=function(Je){go.CommandHandler.prototype.copyToClipboard.call(this,Je),this._lastPasteOffset.set(this.pasteOffset)},rt.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(rt.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(rt.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=rt,tt=ae(64242),pt=ae(43604),Xn=ae(23789),mn={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ut=ae(59301),kt=(Je,nt,Xe)=>new Promise((ln,Cn)=>{var Nn=na=>{try{pa(Xe.next(na))}catch(ya){Cn(ya)}},wa=na=>{try{pa(Xe.throw(na))}catch(ya){Cn(ya)}},pa=na=>na.done?ln(na.value):Promise.resolve(na.value).then(Nn,wa);pa((Xe=Xe.apply(Je,nt)).next())});function Wn({onCancel:Je,callback:nt}){let Xe=(0,b.useRef)(),ln=(0,b.useRef)(),Cn=(0,b.useRef)(),Nn=(0,b.useRef)(!1);const wa=(0,b.useRef)(!1),[pa,na]=(0,b.useState)(0);function ya(){const zt=Ce.bx.make,Ma={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(ln.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:hn=>{var aa=hn.diagram.commandHandler.addTopLevelParts(hn.diagram.selection,!0);aa||hn.diagram.currentTool.doCancel()},commandHandler:zt(on),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:hn=>{var aa=hn.subject;aa.location=aa.location.copy().snapToGridPoint(hn.diagram.grid.gridOrigin,hn.diagram.grid.gridCellSize),setTimeout(()=>{hn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:hn=>{var aa=hn.subject;setTimeout(()=>{hn.diagram.commandHandler.editTextBlock()})},LinkRelinked:hn=>{var aa=hn.parameter.part;aa.invalidateConnectedLinks();var La=hn.subject;hn.diagram.toolManager.linkingTool.isForwards?La.toNode.invalidateConnectedLinks():La.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:Ma.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(hn,aa){var La=(Jn,sr)=>{Jn.handled=!0,Jn.diagram.model.commit(tr=>{var Ar=sr.part.adornedPart,$r=new Ce.E9().setRectSpot(Ar.actualBounds,hn);$r.subtract(Ar.location),$r.scale(2,2),$r.x+=Math.sign($r.x)*130,$r.y+=Math.sign($r.y)*130,$r.add(Ar.location),$r.snapToGridPoint(Jn.diagram.grid.gridOrigin,Jn.diagram.grid.gridCellSize);var mr=tr.copyNodeData(Ar.data);tr.setGroupKeyForNodeData(mr,tr.getGroupKeyForNodeData(Ar.data)),tr.addNodeData(mr);var _o={from:Ar.key,to:tr.getKeyForNodeData(mr)};tr.addLinkData(_o);var Ro=Jn.diagram.findNodeForData(mr);Ro.location=$r,Jn.diagram.select(Ro),setTimeout(()=>{Jn.diagram.commandHandler.editTextBlock()},20)})};return zt(Ce.bn,{figure:aa,alignment:hn,alignmentFocus:hn.opposite(),width:hn.equals(Ce.z6.Top)||hn.equals(Ce.z6.Bottom)?25:18,height:hn.equals(Ce.z6.Top)||hn.equals(Ce.z6.Bottom)?18:25,fill:"orange",stroke:Ma.white,strokeWidth:4,mouseEnter:(Jn,sr)=>sr.fill="dodgerblue",mouseLeave:(Jn,sr)=>sr.fill="orange",isActionable:!0,click:La,contextClick:La})}function So(hn){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:(aa,La)=>La.fill="dodgerblue",mouseLeave:(aa,La)=>La.fill="orange",click:(aa,La)=>{aa.diagram.commandHandler.showContextMenu(La.part.adornedPart)}},hn||{})}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"),So({alignment:new Ce.z6(.75,0)}));function $a(hn,aa){return(La,Jn)=>{La.handled=!0,La.diagram.model.commit(sr=>{sr.set(Jn.part.adornedPart.data,hn,aa)})}}function Gt(hn,aa){return aa||(aa="color"),zt(Ce.bn,{width:16,height:16,stroke:"lightgray",fill:hn,margin:1,background:"transparent",mouseEnter:(La,Jn)=>Jn.stroke="dodgerblue",mouseLeave:(La,Jn)=>Jn.stroke="lightgray",click:$a(aa,hn),contextClick:$a(aa,hn)})}function qr(){return[zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Gt(Ma.white,"fill"),Gt(Ma.beige,"fill"),Gt(Ma.extralightblue,"fill"),Gt(Ma.extralightred,"fill"))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Gt(Ma.lightgray,"fill"),Gt(Ma.lightgreen,"fill"),Gt(Ma.lightblue,"fill"),Gt(Ma.lightred,"fill")))]}function Ua(){return[zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Gt(Ma.black),Gt(Ma.green),Gt(Ma.blue),Gt(Ma.red))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Gt(Ma.white),Gt(Ma.magenta),Gt(Ma.purple),Gt(Ma.orange)))]}function Sr(hn,aa){return aa||(aa="thickness"),zt(Ce.bn,"LineH",{width:16,height:16,strokeWidth:hn,margin:1,background:"transparent",mouseEnter:(La,Jn)=>Jn.background="dodgerblue",mouseLeave:(La,Jn)=>Jn.background="transparent",click:$a(aa,hn),contextClick:$a(aa,hn)})}function ir(hn,aa){return aa||(aa="dash"),zt(Ce.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:hn,margin:1,background:"transparent",mouseEnter:(La,Jn)=>Jn.background="dodgerblue",mouseLeave:(La,Jn)=>Jn.background="transparent",click:$a(aa,hn),contextClick:$a(aa,hn)})}function Wr(){return[zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Sr(1),Sr(2),Sr(3),Sr(4))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",ir(null),ir([2,4]),ir([4,4])))]}function Dr(hn,aa){return aa||(aa="figure"),zt(Ce.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:hn,margin:1,background:"transparent",mouseEnter:(La,Jn)=>Jn.fill="dodgerblue",mouseLeave:(La,Jn)=>Jn.fill="lightgray",click:$a(aa,hn),contextClick:$a(aa,hn)})}Xe.current.nodeTemplate.contextMenu=zt("ContextMenu",zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Dr("Rectangle"),Dr("RoundedRectangle"),Dr("Ellipse"),Dr("Diamond"))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Dr("Parallelogram2"),Dr("ManualOperation"),Dr("Procedure"),Dr("Cylinder1"))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",Dr("Terminator"),Dr("CreateRequest"),Dr("Document"),Dr("TriangleDown"))),qr(),Ua(),Wr()),Xe.current.groupTemplate=zt(Ce.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ce.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(hn,aa)=>{var La=aa.addMembers(aa.diagram.selection,!0);La||aa.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:Ma.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})),So({alignment:Ce.z6.TopRight,alignmentFocus:Ce.z6.BottomRight})),Xe.current.groupTemplate.contextMenu=zt("ContextMenu",qr(),Ua(),Wr()),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",hn=>hn>=1?10:0),new Ce.KX("toShortLength","dir",hn=>hn>=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",hn=>hn===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",hn=>hn>=1),new Ce.KX("width","thickness",hn=>7+3*hn),new Ce.KX("height","thickness",hn=>7+3*hn),new Ce.KX("segmentOffset","thickness",hn=>new Ce.E9(-15,4+1.5*hn))),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",hn=>hn===2),new Ce.KX("width","thickness",hn=>7+3*hn),new Ce.KX("height","thickness",hn=>7+3*hn),new Ce.KX("segmentOffset","thickness",hn=>new Ce.E9(-15,4+1.5*hn))),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:ao(2)},new Ce.KX("pathPattern","thickness",ao)),So({alignmentFocus:new Ce.z6(0,0,-6,-4)}));function ao(hn){return zt(Ce.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(hn+4).toString()+" H3"})}function kr(hn){var aa="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return hn===0?aa="M0 0 M16 16 M0 8 L16 8":hn===2&&(aa="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),zt(Ce.bn,{geometryString:aa,margin:2,background:"transparent",mouseEnter:(La,Jn)=>Jn.background="dodgerblue",mouseLeave:(La,Jn)=>Jn.background="transparent",click:$a("dir",hn),contextClick:$a("dir",hn)})}function ca(hn){var aa=(La,Jn)=>{La.handled=!0,La.diagram.model.commit(sr=>{var tr=Jn.part.adornedPart;sr.set(tr.data,hn?"toSpot":"fromSpot",Ce.z6.stringify(Ce.z6.AllSides)),(hn?tr.toNode:tr.fromNode).invalidateConnectedLinks()})};return zt(Ce.bn,{width:12,height:12,fill:"transparent",mouseEnter:(La,Jn)=>Jn.background="dodgerblue",mouseLeave:(La,Jn)=>Jn.background="transparent",click:aa,contextClick:aa})}function an(hn,aa){var La=0,Jn=Ce.z6.RightSide;hn.equals(Ce.z6.Top)?(La=270,Jn=Ce.z6.TopSide):hn.equals(Ce.z6.Left)?(La=180,Jn=Ce.z6.LeftSide):hn.equals(Ce.z6.Bottom)&&(La=90,Jn=Ce.z6.BottomSide),aa||(La-=180);var sr=(tr,Ar)=>{tr.handled=!0,tr.diagram.model.commit($r=>{var mr=Ar.part.adornedPart;$r.set(mr.data,aa?"toSpot":"fromSpot",Ce.z6.stringify(Jn)),(aa?mr.toNode:mr.fromNode).invalidateConnectedLinks()})};return zt(Ce.bn,{alignment:hn,alignmentFocus:hn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:La,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(),Wr(),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",kr(0),kr(1),kr(2))),zt("ContextMenuButton",zt(Ce.s_,"Horizontal",zt(Ce.s_,"Spot",ca(!1),an(Ce.z6.Top,!1),an(Ce.z6.Left,!1),an(Ce.z6.Right,!1),an(Ce.z6.Bottom,!1)),zt(Ce.s_,"Spot",{margin:new Ce.Zt(0,0,0,2)},ca(!0),an(Ce.z6.Top,!0),an(Ce.z6.Left,!0),an(Ce.z6.Right,!0),an(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(Ee.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((le,Pe)=>Oe.createElement("div",{key:Pe},Oe.createElement("h1",null,le.name),Oe.createElement(Ee.Z,{gutter:[10,10]},le.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(Ee.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((le,Pe)=>Oe.createElement("div",{key:Pe},le.name&&Oe.createElement("h1",null,le.name),Oe.createElement(Ee.Z,{gutter:[10,10]},le.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")))});Gt.Z=De},74038:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return ze}});var b=ae(59301),Ee=ae(78241),we=ae(43418),Be=ae(92832),Re=ae(87169),We=ae(23789),xe={publicQuest:"publicQuest___iYvzo",publicQuestContent:"publicQuestContent___vgbKh",public_tips:"public_tips___UX0Dn",concat:"concat___wOfND"},Ke=ae(76832),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]=Ee.default.useForm(),[z,te]=(0,b.useState)([]),[oe,se]=(0,b.useState)(!1);(0,b.useEffect)(()=>{},[]);const le=()=>De(void 0,null,function*(){if(Ue){const Pe=yield(0,We.ZP)("/api/disciplines.json",{method:"get",params:{source:Ue}});te(Pe.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(Pe=>De(void 0,null,function*(){const Fe=yield(0,We.ZP)("/api/tag_disciplines.json",{method:"post",body:{name:Pe==null?void 0:Pe.name,sub_discipline_id:x}});(Fe==null?void 0:Fe.status)===0&&a({name:Pe==null?void 0:Pe.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(Ee.default,{labelAlign:"left",form:y,colon:!1},Oe.createElement(Ee.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)}})))}},98524:function(ot,Gt,ae){"use strict";ae.d(Gt,{Q:function(){return Oe},Z:function(){return ke}});var b=ae(59301),Ee={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:Ee.c},"C"),"C++":b.createElement("div",{className:Ee.cpp},"C++"),Java:b.createElement("div",{className:Ee.java},"Java"),Python:b.createElement("div",{className:Ee.python},"Python")};return b.createElement("div",{className:Be()(Ee.tags,Ue),style:ue},!!ze&&b.createElement("div",{className:Ee.text},ze),b.createElement("div",{className:Ee.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 ${Ee.edit}`}))}},94827:function(ot,Gt,ae){"use strict";ae.d(Gt,{t:function(){return Xn}});var b=ae(59301),Ee=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(80061),ke=ae(6075),ze=ae(44388),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(23789),z=ae(18509),te=ae(37962),oe=ae(56102),se=ae(78547),le=ae(59301),Pe=Object.defineProperty,Fe=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable,Ye=(gn,Yt,jt)=>Yt in gn?Pe(gn,Yt,{enumerable:!0,configurable:!0,writable:!0,value:jt}):gn[Yt]=jt,Ge=(gn,Yt)=>{for(var jt in Yt||(Yt={}))ut.call(Yt,jt)&&Ye(gn,jt,Yt[jt]);if(Le)for(var jt of Le(Yt))Me.call(Yt,jt)&&Ye(gn,jt,Yt[jt]);return gn},$e=(gn,Yt)=>Fe(gn,Qe(Yt)),be=(gn,Yt,jt)=>new Promise((Vn,ia)=>{var tn=Fa=>{try{Ka(jt.next(Fa))}catch(kn){ia(kn)}},Ba=Fa=>{try{Ka(jt.throw(Fa))}catch(kn){ia(kn)}},Ka=Fa=>Fa.done?Vn(Fa.value):Promise.resolve(Fa.value).then(tn,Ba);Ka((jt=jt.apply(gn,Yt)).next())}),ct=({buttonProps:gn,buttonText:Yt,form:jt,hackIdentifier:Vn="",answerKey:ia,data:tn})=>{const[Ba,Ka]=(0,b.useState)(!1),[Fa,kn]=(0,b.useState)(!1),[za,Aa]=(0,b.useState)(!1),[vr,ua]=(0,b.useState)({}),[Tn,da]=(0,b.useState)(""),[Ea,xa]=(0,b.useState)(""),_a=(0,b.useRef)(Vn),En=(0,b.useRef)(""),ln=(0,b.useRef)(!1);(0,b.useEffect)(()=>{za&&Ca()},[za]),(0,b.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const St=()=>new Date().getTime(),Zt=tn==null?void 0:tn.code,Za=()=>{var Ra,xr;let ar=Zt?tn==null?void 0:tn.code:(Ra=jt.getFieldValue("hack_codes"))==null?void 0:Ra.code,kr=Zt?tn==null?void 0:tn.answer_content:jt.getFieldValue(ia),Mo=Zt?tn==null?void 0:tn.input:(xr=jt.getFieldValue("hack_sets"))==null?void 0:xr.input;kr==null||kr.forEach(Kt=>{const Un=Kt.value||Kt.answer_text||"";ar=ar.replace(/(@▁@|@▁▁@)/,Un)}),xa(Mo),da(ar),ua({}),Aa(!0)},Ca=()=>be(void 0,null,function*(){var Ra,xr,ar,kr;const Mo=St(),Kt=Zt?tn==null?void 0:tn.time_limit:(Ra=jt.getFieldsValue())==null?void 0:Ra.hack.time_limit,Un=Zt?(xr=tn==null?void 0:tn.answer_content)==null?void 0:xr.length:(kr=(ar=jt.getFieldsValue())==null?void 0:ar.standard_answers)==null?void 0:kr.length;Ka(!0),yield(0,z.bM)(En.current,{test_hack_code:Tn,test_input:Ea});function $n(){return be(this,null,function*(){const{status:ba,data:Ze}=yield(0,z.rX)(En.current,"submit"),$t=St()-Mo>(Kt+3)*1e3*Un;if(ln.current){if($t){Ue.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),Ka(!1);return}if(ba===0){Ka(!1),ua($e(Ge({},Ze),{showText:!0}));return}setTimeout($n,1e3)}})}$n()}),Wa=()=>be(void 0,null,function*(){var Ra,xr,ar,kr,Mo,Kt,Un;if(!tn){try{yield jt.validateFields()}catch(kt){(ar=(xr=(Ra=kt==null?void 0:kt.errorFields)==null?void 0:Ra[0])==null?void 0:xr.name)!=null&&ar.includes("standard_answers")?Ue.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Ue.ZP.error(kt.errorFields[0].errors[0]),jt.scrollToField(kt.errorFields[0].name,{behavior:"smooth",block:"center"});return}kn(!0);let ba="";const Ze=jt.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=(Kt=Ze==null?void 0:Ze.hack)==null?void 0:Kt.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:(Mo=(kr=Ze==null?void 0:Ze.hack)==null?void 0:kr.sub_discipline_id)==null?void 0:Mo[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){En.current=$n==null?void 0:$n.identifier,ln.current=!0,kn(!1),Za();return}kn(!1)}),Da=Ra=>{const{status:xr,error_msg:ar,execute_time:kr,output:Mo,input:Kt,expected_output:Un}=Ra;let $n=null;switch(xr){case se.h.OK:$n=le.createElement(le.Fragment,null,le.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",kr/1e3,"\u79D2"),le.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case se.h.NOMATCH:$n=le.createElement(le.Fragment,null,le.createElement("div",null,"\u8F93\u5165\uFF1A"),le.createElement("pre",{style:{fontFamily:"initial"}},Kt),le.createElement("div",null,"\u8F93\u51FA\uFF1A"),le.createElement("pre",{style:{fontFamily:"initial"}},Mo&&a.Base64.decode(Mo)),le.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),le.createElement("pre",{style:{fontFamily:"initial"}},Un&&a.Base64.decode(Un)));break;case se.h.EXECUTEFAILURE:$n=le.createElement(le.Fragment,null,le.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",le.createElement("pre",null,Kt)),le.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),le.createElement("pre",{className:"error"},a.Base64.decode(ar)));break;case se.h.COMPILEFAILURE:$n=le.createElement(le.Fragment,null,le.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",le.createElement("pre",null,Kt)),le.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),le.createElement("pre",{className:"error"},a.Base64.decode(ar)));break;case se.h.PODFAILURE:$n=le.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case se.h.TIMEOUT:$n=le.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return le.createElement(le.Fragment,null," ",$n," ")};return le.createElement("div",null,le.createElement(ue.ZP,$e(Ge({loading:Fa},gn),{onClick:Wa}),Yt),le.createElement(Be.default,{open:za,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:Ba,cancelButtonProps:{style:{display:"none"}},onOk:()=>Ca(),onCancel:()=>{ln.current=!1,Aa(!1)}},le.createElement("div",{className:x.result},le.createElement("div",{className:x.left},le.createElement("div",{className:"mb20"},le.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!tn&&le.createElement(oe.CopyToClipboard,{text:Tn,onCopy:()=>Ue.ZP.success("\u590D\u5236\u6210\u529F")},le.createElement("span",{style:{float:"right"},className:"current c-light-primary"},le.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),le.createElement(te.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:Tn,onChange:Ra=>da(Ra)})),le.createElement("div",{className:x.right},le.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B"),le.createElement("div",{className:x.box},le.createElement("div",{className:x.li},le.createElement(Ee.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:Ea,onChange:Ra=>xa(Ra.target.value),bordered:!1,style:{height:180}}))),le.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),le.createElement("div",{className:x.box},le.createElement(E.Z,{spinning:Ba,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},le.createElement("div",{className:x.li,style:{height:196,overflow:"auto",padding:10}},Da(vr))))))))},Ft=ae(87169),At=ae(59301),hn=Object.defineProperty,Bn=Object.defineProperties,Ut=Object.getOwnPropertyDescriptors,Pt=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Jt=(gn,Yt,jt)=>Yt in gn?hn(gn,Yt,{enumerable:!0,configurable:!0,writable:!0,value:jt}):gn[Yt]=jt,xn=(gn,Yt)=>{for(var jt in Yt||(Yt={}))Te.call(Yt,jt)&&Jt(gn,jt,Yt[jt]);if(Pt)for(var jt of Pt(Yt))et.call(Yt,jt)&&Jt(gn,jt,Yt[jt]);return gn},Mt=(gn,Yt)=>Bn(gn,Ut(Yt)),qt=(gn,Yt)=>{var jt={};for(var Vn in gn)Te.call(gn,Vn)&&Yt.indexOf(Vn)<0&&(jt[Vn]=gn[Vn]);if(gn!=null&&Pt)for(var Vn of Pt(gn))Yt.indexOf(Vn)<0&&et.call(gn,Vn)&&(jt[Vn]=gn[Vn]);return jt};const{TextArea:Ce}=Ee.default,rt=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],rn=({value:gn,onChange:Yt})=>At.createElement(Switch,{checked:gn,onChange:jt=>{Yt(jt)}}),tt="@\u2581@",pt="@\u2581\u2581@",Xn=({questionTitlePlaceholder:gn,form:Yt,scoreByBlank:jt=!1,hackidentifier:Vn,answerKey:ia})=>{const[tn,Ba]=(0,b.useState)(!1),[Ka,Fa]=(0,b.useState)(!1),za=(0,ke.useParams)().type==="edit",Aa=(En,ln)=>{const St=ln.line;let Zt=0;for(let Ca=0;Ca{const Za=En.getRange(ln.from,ln.to);let Ca=0;if(ln.text.forEach(Wa=>{Ca+=Wa.split(tt).length-1}),ln.text.forEach(Wa=>{Ca+=Wa.split(pt).length-1}),ln.origin!=="setValue"){if(Za&&(Za.indexOf(tt)!==-1||Za.indexOf(pt)!==-1)){const Wa=Za.split(tt).length-1+Za.split(pt).length-1,Da=Aa(En,ln.from);if(console.log(`\u5220\u9664${Wa}\u4E2A\uFF0C \u524D\u9762\u6709${Da}\u4E2A\uFF0C\u65B0\u589E${Ca}\u4E2A`),Wa>1){const Ra=Array.from({length:Wa},(xr,ar)=>Da+ar);Zt(Ra)}else Zt(Da)}else if(Ca>0){const Wa=Aa(En,ln.from);console.log(`\u65B0\u589E${Ca}\u4E2A\uFF0C\u4E4B\u524D\u6709${Wa}\u4E2A`),St(Ca,Wa)}}},ua=()=>{const En=Yt.getFieldValue(ia);Yt.setFieldsValue({[ia]:En==null?void 0:En.map((ln,St)=>Mt(xn({},ln),{position:St+1}))})},Tn=(0,b.useRef)(),da=(En,ln)=>{for(let St=0;St{Ea.current(En),ua()},_a=we.default.useWatch(ia,Yt);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:(En,ln)=>{const St=Yt.getFieldValue(ia);console.log("--preAnswerData",St,ln),Yt.setFieldsValue({[ia]:St==null?void 0:St.map((Zt,Za)=>{var Ca;return Mt(xn({},Zt),{position:Za+1,multi_line:(Ca=ln==null?void 0:ln[Za])==null?void 0:Ca.multiLine})})})},placeholder:gn,onCMBeforeChange:(En,ln)=>{vr(En,ln,da,xa)}}))),At.createElement(we.default.List,{name:ia,rules:[{validator(En,ln){if(!(ln!=null&&ln.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const St of ln){const{answer_text:Zt}=St||{};if((Zt==null?void 0:Zt.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(En,{add:ln,remove:St},{errors:Zt})=>(Tn.current=ln,Ea.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(Ft.Z,{style:{marginRight:3,color:"#3061D0"}}),At.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),En.map((Za,Ca)=>{var Wa=Za,{key:Da,name:Ra}=Wa,xr=qt(Wa,["key","name"]),ar,kr;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,Mt(xn({},xr),{name:[Ra,"answer_text"],noStyle:!0}),(ar=_a==null?void 0:_a[Ra])!=null&&ar.multi_line||(kr=_a==null?void 0:_a[Ra])!=null&&kr.multiLine?At.createElement(Ce,{spellCheck:!1,style:{marginLeft:10,width:550}}):At.createElement(Ee.default,{style:{marginLeft:10,width:550},className:ze.Z.blankInput,size:"large",maxLength:1e3,onBlur:Mo=>{}}))),jt&&At.createElement(We.Z,{flex:"224px"},At.createElement(we.default.Item,Mt(xn({},xr),{name:[Ra,"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"},rt.map(En=>At.createElement(Ke.default.Option,{key:En.title,value:En.key}," ",En.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:Yt,answerKey:ia,hackIdentifier:Vn,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"}}}))}},80815:function(ot,Gt,ae){"use strict";ae.d(Gt,{u:function(){return le}});var b=ae(59301),Ee=ae(95237),we=ae(43604),Be=ae(6848),Re=ae(78241),We=ae(44388),xe=ae(32134),Ke=ae(12893),Oe=ae(80061),De=ae(59301),ke=Object.defineProperty,ze=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,ue=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,x=(Pe,Fe,Qe)=>Fe in Pe?ke(Pe,Fe,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Pe[Fe]=Qe,y=(Pe,Fe)=>{for(var Qe in Fe||(Fe={}))E.call(Fe,Qe)&&x(Pe,Qe,Fe[Qe]);if(ue)for(var Qe of ue(Fe))a.call(Fe,Qe)&&x(Pe,Qe,Fe[Qe]);return Pe},z=(Pe,Fe)=>ze(Pe,Ue(Fe)),te=(Pe,Fe)=>{var Qe={};for(var Le in Pe)E.call(Pe,Le)&&Fe.indexOf(Le)<0&&(Qe[Le]=Pe[Le]);if(Pe!=null&&ue)for(var Le of ue(Pe))Fe.indexOf(Le)<0&&a.call(Pe,Le)&&(Qe[Le]=Pe[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:Pe,onChange:Fe,choiceTextKey:Qe,answerKey:Le,index:ut,isEdit:Me,setInputActive:Ye,form:Ge,choiceOptionsPath:$e,allowChangeMode:be,showAddIcon:ft,addItem:ct,deleteItem:Ft})=>{console.log(Pe,"value");const At=(Pe==null?void 0:Pe[Le])===1,hn=()=>{const Ut=Ge.getFieldValue($e);Ge.setFieldValue($e,Ut.map(Pt=>z(y({},Pt),{[Le]:0})))},Bn=()=>{At?Fe(z(y({},Pe),{[Le]:0})):(be||hn(),Fe(z(y({},Pe),{[Le]:1})))};return De.createElement(Ee.Z,{className:We.Z.choiceWrap,align:"middle",wrap:!1},De.createElement(we.Z,{onClick:Bn,className:`${We.Z.choiceIndex} ${At?We.Z.activeAnswer:""}`},oe[ut]),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:Pe==null?void 0:Pe[Qe],onChange:Ut=>{Fe(z(y({},Pe),{[Qe]:Ut}))}})),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(Be.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},De.createElement(xe.Z,{className:We.Z.addIcon,onClick:ct,style:{visibility:ft?"visible":"hidden"}})),De.createElement(Be.Z,{title:"\u5220\u9664"},De.createElement(Ke.Z,{className:We.Z.deleteIcon,onClick:Ft,style:{visibility:ut>1?"visible":"hidden"}}))))},le=({questionTitlePlaceholder:Pe,titleKey:Fe,choiceKey:Qe,analysisKey:Le,choiceTextKey:ut,answerKey:Me,choiceOptionsPath:Ye,allowChangeMode:Ge=!0,form:$e,showAnalysis:be=!0})=>{const[ft,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:Pe}))),De.createElement(Re.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),De.createElement(Re.default.List,{name:Qe,rules:[{validator(hn,Bn){const Ut=Bn.some(Te=>Te[Me]===1),Pt=Bn.findIndex(Te=>{var et;return((et=Te[ut])==null?void 0:et.length)<=0});return Pt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${oe[Pt]}\u9009\u9879\u7684\u5185\u5BB9`)):Ut?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(hn,{add:Bn,remove:Ut})=>De.createElement("div",{id:Array.isArray(Ye)?Ye.join("_"):`${Ye}`},hn.map((Pt,Te)=>{var et=Pt,{key:Jt,name:xn}=et,Mt=te(et,["key","name"]);const qt=ft===Jt,Ce=()=>{ct(Jt)},rt=Te<7&&Te===hn.length-1,rn=()=>Bn({[ut]:"",[Me]:0}),tt=()=>Ut(xn);return De.createElement(Re.default.Item,z(y({},Mt),{key:Jt,name:xn,className:We.Z.choiceListWrap,rules:[{validator(pt,Xn){return Xn!=null&&Xn.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${oe[Te]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),De.createElement(se,{choiceTextKey:ut,answerKey:Me,index:Te,isEdit:qt,setInputActive:Ce,form:$e,choiceOptionsPath:Ye,allowChangeMode:Ge,showAddIcon:rt,addItem:rn,deleteItem:tt}))}),hn.length<8&&De.createElement("div",{className:`${We.Z.addBtn} mb30`,onClick:()=>Bn({[ut]:"",[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}))))}},41940:function(ot,Gt,ae){"use strict";ae.d(Gt,{u:function(){return Ge}});var b=ae(59301),Ee=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(80061),ze=ae(12893),Ue=ae(61485),ue=ae(44388),E=ae(10438),a=ae(59301),x=Object.defineProperty,y=Object.defineProperties,z=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,oe=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,le=($e,be,ft)=>be in $e?x($e,be,{enumerable:!0,configurable:!0,writable:!0,value:ft}):$e[be]=ft,Pe=($e,be)=>{for(var ft in be||(be={}))oe.call(be,ft)&&le($e,ft,be[ft]);if(te)for(var ft of te(be))se.call(be,ft)&&le($e,ft,be[ft]);return $e},Fe=($e,be)=>y($e,z(be)),Qe=($e,be)=>{var ft={};for(var ct in $e)oe.call($e,ct)&&be.indexOf(ct)<0&&(ft[ct]=$e[ct]);if($e!=null&&te)for(var ct of te($e))be.indexOf(ct)<0&&se.call($e,ct)&&(ft[ct]=$e[ct]);return ft};const Le=({value:$e,onChange:be})=>{const ft=Ft=>{Ee.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(Ft,1),be(At)}})},ct=()=>{const Ft=[...$e];Ft.push(""),be(Ft)};return a.createElement(we.Z,{className:"ml20"},a.createElement(Be.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:hn=>{const Bn=[...$e],Ut=hn.target.value.trim();Bn[At]=Ut,be(Bn)}}),a.createElement(We.Z,{title:"\u5220\u9664"},a.createElement(ze.Z,{className:ue.Z.deleteIcon,style:{marginLeft:15,visibility:At>0?"visible":"hidden"},onClick:()=>ft(At)}))))),a.createElement(Be.Z,null,a.createElement("div",{className:`${ue.Z.addBtn}`,onClick:()=>{ct()}},"\u65B0\u589E\u7B54\u6848")))},ut=({value:$e,onChange:be})=>{const ft=Ft=>{Ee.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(Ft,1),be(At)}})},ct=()=>{const Ft=[...$e];Ft.push(""),be(Ft)};return a.createElement(we.Z,{className:"ml20"},a.createElement(Be.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:hn=>{const Bn=[...$e];Bn[At]=hn,be(Bn)}}),a.createElement(We.Z,{title:"\u5220\u9664"},a.createElement(ze.Z,{className:ue.Z.deleteIcon,style:{marginLeft:15,visibility:At>0?"visible":"hidden"},onClick:()=>ft(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:ft=>{be(!ft)}}),Ye="\u2581",Ge=({questionTitlePlaceholder:$e,form:be,scoreByBlank:ft=!1,answerKey:ct})=>{const[Ft,At]=(0,b.useState)(!1),hn=(Mt,qt)=>{const Ce=qt.line;let rt=0;for(let tt=0;tt{const rn=Mt.getRange(qt.from,qt.to);let tt=0;if(qt.text.forEach(pt=>{tt+=pt.split(Ye).length-1}),qt.origin!=="setValue"){if(rn&&rn.indexOf(Ye)!==-1){const pt=rn.split(Ye).length-1,Xn=hn(Mt,qt.from);if(console.log(`\u5220\u9664${pt}\u4E2A\uFF0C \u524D\u9762\u6709${Xn}\u4E2A\uFF0C\u65B0\u589E${tt}\u4E2A`),pt>1){const gn=Array.from({length:pt},(Yt,jt)=>Xn+jt);rt(gn)}else rt(Xn)}else if(tt>0){const pt=hn(Mt,qt.from);console.log(`\u65B0\u589E${tt}\u4E2A\uFF0C\u4E4B\u524D\u6709${pt}\u4E2A`),Ce(tt,pt)}}},Ut=()=>{const Mt=be.getFieldValue(ct);be.setFieldsValue({[ct]:Mt.map((qt,Ce)=>Fe(Pe({},qt),{position:Ce+1}))})},Pt=(0,b.useRef)(),Te=(Mt,qt)=>{for(let Ce=0;Ce{et.current(Mt),Ut()},xn=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:(Mt,qt)=>{Bn(Mt,qt,Te,Jt)}}))),a.createElement(Ke.default.List,{name:ct,rules:[{validator(Mt,qt){if(!(qt!=null&&qt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Ce of qt){const{answer_text:rt}=Ce||{};if(rt!=null&&rt.some(rn=>(rn==null?void 0:rn.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Mt,{add:qt,remove:Ce},{errors:rt})=>(Pt.current=qt,et.current=Ce,a.createElement(a.Fragment,null,a.createElement(Ke.default.Item,{label:a.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(Mt!=null&&Mt.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}}),Mt.map((rn,tt)=>{var pt=rn,{key:Xn,name:gn}=pt,Yt=Qe(pt,["key","name"]),jt,Vn;return a.createElement("div",{style:{marginBottom:10},key:Xn},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(Pe({},Yt),{name:[gn,"model"],noStyle:!0}),a.createElement(Oe.ZP.Group,{onChange:()=>{const ia=be.getFieldValue(ct);be.setFieldsValue({[ct]:ia.map((tn,Ba)=>Fe(Pe({},tn),{answer_text:gn===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(Pe({},Yt),{name:[gn,"answer_text"],noStyle:!0}),((Vn=(jt=be.getFieldValue(ct))==null?void 0:jt[gn])==null?void 0:Vn.model)===1?a.createElement(Le,null):a.createElement(ut,null))),ft&&a.createElement(Be.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},a.createElement(Ke.default.Item,Fe(Pe({},Yt),{name:[gn,"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(Pe({},Yt),{name:[gn,"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")),(xn==null?void 0:xn.length)>1&&a.createElement(we.Z,{align:"middle",className:(xn==null?void 0:xn.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:Ft}))))}},48700:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return te}});var b=ae(59301),Ee=ae(95237),we=ae(43604),Be=ae(78241),Re=ae(44388),We=ae(80061),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,le)=>se in oe?Ke(oe,se,{enumerable:!0,configurable:!0,writable:!0,value:le}):oe[se]=le,E=(oe,se)=>{for(var le in se||(se={}))ze.call(se,le)&&ue(oe,le,se[le]);if(ke)for(var le of ke(se))Ue.call(se,le)&&ue(oe,le,se[le]);return oe},a=(oe,se)=>Oe(oe,De(se)),x=(oe,se)=>{var le={};for(var Pe in oe)ze.call(oe,Pe)&&se.indexOf(Pe)<0&&(le[Pe]=oe[Pe]);if(oe!=null&&ke)for(var Pe of ke(oe))se.indexOf(Pe)<0&&Ue.call(oe,Pe)&&(le[Pe]=oe[Pe]);return le};const y={\u6B63\u786E:"T",\u9519\u8BEF:"F"},z=({value:oe,onChange:se,form:le})=>{const Pe=(oe==null?void 0:oe.is_answer)===1,Fe=oe==null?void 0:oe.choice_text,Qe=()=>{const Le=le.getFieldsValue().choices.map(ut=>({choice_text:ut.choice_text,is_answer:0}));le.setFieldsValue({choices:Le}),se(a(E({},oe),{is_answer:1}))};return xe.createElement(Ee.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} ${Pe?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} ${Pe?Re.Z.activeJudgementAnswer:""}`},Fe)),xe.createElement(we.Z,{flex:"0 0 auto",className:"ml15"},xe.createElement("div",{onClick:Qe,className:`${Re.Z.setAnswerBtn} ${Pe?Re.Z.activeAnswer:""}`},Pe?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},te=({questionTitlePlaceholder:oe,choiceKey:se,form:le})=>{const[Pe,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 ut=Le,{key:Me,name:Ye}=ut,Ge=x(ut,["key","name"]);return xe.createElement(Be.default.Item,a(E({},Ge),{key:Me,name:Ye,noStyle:!0}),xe.createElement(z,{form:le}))})))),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:Pe}))))}},80061:function(ot,Gt,ae){"use strict";ae.d(Gt,{h:function(){return E},x:function(){return a}});var b=ae(37962),Ee=ae(44388),we=ae(28900),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:(le,Pe)=>{Pe!=null&&Pe.length?te(le,Pe):te(le)}})))},a=({value:x,onChange:y,placeholder:z,height:te=140,isEdit:oe,miniToolbar:se,watch:le=!0})=>oe?Be.createElement(b.Z,{watch:le,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:Ee.Z.inputBorder,value:x}):Be.createElement("div",{className:`${Ee.Z.inputBorder} ${Ee.Z.placeholder} inputBorderError`},z))},88637:function(ot,Gt,ae){"use strict";ae.d(Gt,{W:function(){return ut}});var b=ae(59301),Ee=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(44388),ze=ae(80061),Ue=ae(37962),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},le=(Me,Ye)=>a(Me,x(Ye)),Pe=(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=Pe(Ye,["value","onChange"]);const ft=ct=>{$e([ct])};return b.createElement(Ue.Z,le(se({},be),{defaultValue:Ge==null?void 0:Ge[0],onChange:ft}))},Qe=Me=>{if(!Me)return!1;if(/^s*$/.test(Me)||Me.trim()===""){Ee.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==="|"?(Ee.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 "))),ut=({questionTitlePlaceholder:Me,form:Ye,showKeywords:Ge,isMustKeyWords:$e=Ge})=>{const[be,ft]=(0,b.useState)(!1),[ct,Ft]=(0,b.useState)(""),At=Be.default.useWatch("use_keywords",Ye),hn=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(Bn,Ut){return $e?Ut!=null&&Ut.length?(Ut==null?void 0:Ut.reduce((Te,et)=>Te+et.score,0))>parseFloat(hn)?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:Ut,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=>{Ft(Te.target.value)},maxLength:50,allowClear:!0,onPressEnter:Te=>{var et,Jt,xn,Mt;const qt=`${(et=Te.target)==null?void 0:et.value}`,Ce=(xn=(Jt=qt==null?void 0:qt.split("|"))==null?void 0:Jt.filter(tt=>!!tt))==null?void 0:xn.map(tt=>tt==null?void 0:tt.trim()),rt=Ye.getFieldValue("keywords"),rn=((Mt=rt==null?void 0:rt.map(tt=>tt==null?void 0:tt.keyword))==null?void 0:Mt.flat())||[];for(const tt of Ce)if(rn.includes(tt)){Ee.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Qe(qt)&&(Ut({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(xe.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:Jt,name:xn}=et,Mt=Pe(et,["key","name"]);return b.createElement(We.Z,{key:Jt,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,le(se({},Mt),{name:[xn,"keyword"]}),b.createElement(Le,{onClose:()=>Pt(xn)})),$e&&b.createElement(Be.default.Item,le(se({},Mt),{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:()=>ft(!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}))))}},24417:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return Re}});var b={text:"text___bQulM",sup:"sup___rX_Y3"},Ee=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(Ee.default.Item,{noStyle:!0,name:xe},we.createElement(Ke,null))}},33008:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return Qe},P:function(){return le}});var b=ae(59301),Ee=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(95382),Oe=Object.defineProperty,De=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,E=(Le,ut,Me)=>ut in Le?Oe(Le,ut,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Le[ut]=Me,a=(Le,ut)=>{for(var Me in ut||(ut={}))Ue.call(ut,Me)&&E(Le,Me,ut[Me]);if(ze)for(var Me of ze(ut))ue.call(ut,Me)&&E(Le,Me,ut[Me]);return Le},x=(Le,ut)=>De(Le,ke(ut)),y=(Le,ut)=>{var Me={};for(var Ye in Le)Ue.call(Le,Ye)&&ut.indexOf(Ye)<0&&(Me[Ye]=Le[Ye]);if(Le!=null&&ze)for(var Ye of ze(Le))ut.indexOf(Ye)<0&&ue.call(Le,Ye)&&(Me[Ye]=Le[Ye]);return Me},z=(Le,ut,Me)=>new Promise((Ye,Ge)=>{var $e=ct=>{try{ft(Me.next(ct))}catch(Ft){Ge(Ft)}},be=ct=>{try{ft(Me.throw(ct))}catch(Ft){Ge(Ft)}},ft=ct=>ct.done?Ye(ct.value):Promise.resolve(ct.value).then($e,be);ft((Me=Me.apply(Le,ut)).next())});const te=({studentNames:Le,total:ut})=>{const Me=["","\u4E00","\u4E24","\u4E09"];return ut>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},ut),"\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[ut],"\u540D\u5B66\u751F")},oe=({used:Le,copy:ut,canNotCopy:Me,studentNames:Ye,studentCount:Ge,inPaper:$e,is_random:be=!1,position:ft=""})=>{const ct=()=>{if(ut>0&&Me>0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:xe.orangeColor},ut),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C",b.createElement("span",{className:xe.orangeColor},Me),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236");if(ut>0&&Me===0)return b.createElement(b.Fragment,null,"\u5176\u4E2D",b.createElement("span",{className:xe.orangeColor},ut),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236");if(ut===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")},Ft=ft||($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: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:ut,visible:Me,inPaper:Ye,renderData:Ge,type:$e,isMultipleCourse:be=!1})=>{const[ft]=Ee.default.useForm(),[ct,Ft]=(0,b.useState)(1),[At,hn]=(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]),Ut=(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:xe.antdModal,width:682,confirmLoading:At,onCancel:Le,onOk:()=>z(void 0,null,function*(){var Pt;hn(!0);let Te=ct;if(be){const et=a({},ft.getFieldsValue());Te=(Pt=Ge==null?void 0:Ge.course_data_list)==null?void 0:Pt.map(Jt=>et[Jt.id]!==void 0?x(a({},Jt),{is_copy:et[Jt.id]}):Jt)}yield ut(Te),hn(!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(Ee.default,{form:ft,preserve:!1},Ut==null?void 0:Ut.map(Pt=>b.createElement(b.Fragment,{key:Pt.id},b.createElement("h3",{className:"ml15 mb5"},Pt.name),b.createElement(Ee.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=>Ft(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;hn(!0);let Te=0;if(be){const et=a({},ft.getFieldsValue());Te=(Pt=Ge==null?void 0:Ge.course_data_list)==null?void 0:Pt.map(Jt=>et[Jt.id]!==void 0?x(a({},Jt),{is_use:et[Jt.id]}):Jt)}yield ut(Te),hn(!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(Ee.default,{form:ft,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"),Ut==null?void 0:Ut.map(Pt=>b.createElement(b.Fragment,{key:Pt.id},b.createElement("h3",{className:"ml15 mb5"},Pt.name),b.createElement(Ee.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"))))},le=function(){const[Le,ut]=(0,b.useState)(!1),[Me,Ye]=(0,b.useState)();return[Le,()=>ut(!1),Me,be=>z(this,null,function*(){var ft;const ct=be,{isImportMultipleCourse:Ft=!1}=ct,At=y(ct,["isImportMultipleCourse"]);console.log(be);const hn=(be==null?void 0:be.result)||(yield(0,Ke.Tr)(At));return"status"in hn?!1:Ft?((ft=hn==null?void 0:hn.course_data_list)==null?void 0:ft.some(Ut=>Ut.is_show))?(Ye(hn),ut(!0),!0):hn.course_data_list||[]:hn.student_count===0?!1:(Ye(hn),ut(!0),!0)})]},Pe=Le=>{const[ut]=Ee.default.useForm(),[Me,Ye]=(0,b.useState)(!1),{onCancel:Ge,onOk:$e,visible:be,inPaper:ft=!1,renderData:ct,type:Ft,isMultipleCourse:At=!1,position:hn}=Le;let Bn=(0,b.useMemo)(()=>ft?[{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(Ee.default.Item,{name:[`${Ft==="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(Ee.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: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(Ee.default.Item,{name:[`${Ft==="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(Ee.default.Item,{name:[`${Ft==="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")))}],[ft]),Ut=(0,b.useMemo)(()=>ft?[{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(Ee.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(Ee.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: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(Ee.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(Be.ZP.Group,null,b.createElement(Be.ZP,{value:1},"\u662F"),b.createElement(Be.ZP,{value:0},"\u5426"))),b.createElement(Ee.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"})))}],[ft]);if(At){const Te={title:"\u8BFE\u5802\u540D\u79F0",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:xe.tableCell,render:(et,Jt)=>b.createElement("a",{href:`/classrooms/${Jt.course_id}`},et)};Bn=[Te,...Bn],Ut=[Te,...Ut]}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:ft,position:hn}),[ct,ft,hn]);return b.createElement(we.default,{title:"\u63D0\u793A",centered:!0,open:be,confirmLoading:Me,onOk:()=>z(void 0,null,function*(){Ye(!0);const Te=ut.getFieldsValue(),et=Object.keys(Te).map(Jt=>({id:parseInt(Jt.split("_")[0]),course_id:parseInt(Jt.split("_")[1]),is_use:Te[Jt].is_use,is_copy:Te[Jt].is_copy}));yield $e(et),Ye(!1)}),onCancel:Ge,width:880,okText:"\u786E\u8BA4",className:xe.antdModal,destroyOnClose:!0},b.createElement(Ee.default,{form:ut,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:Bn,className:xe.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:xe.contentTitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),b.createElement(We.default,{columns:Ut,className:xe.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(Ee.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(Ee.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:ut}=Le;return ut==="multiple"?b.createElement(Pe,a({},Le)):b.createElement(se,a({},Le))}},40886:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return Ke}});var b=ae(59301),Ee={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:le,repeat_shixun_num:Pe,student_count:Fe,total_num:Qe,use_num:Le}=De;let ut=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:Ee.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:Ee.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:Ee.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:Ee.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:Ee.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:Ee.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:Ee.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:Ee.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:Ee.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:Ee.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:Ee.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:Ee.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:Ee.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:Ee.orangeColor},Fe)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",b.createElement("span",{className:Ee.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:Ee.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:Ee.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",b.createElement("span",{className:Ee.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",b.createElement("span",{className:Ee.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:Ee.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",b.createElement("span",{className:Ee.orangeColor},Le),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",b.createElement("span",{className:Ee.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:Ee.orangeColor},Fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",b.createElement("span",{className:Ee.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:Ee.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:Ee.flex},b.createElement("img",{src:Re,style:{width:14}}),b.createElement("span",{className:Ee.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),b.createElement("div",{className:Ee.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:Ee.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",ut&&b.createElement("span",{className:Ee.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",ut&&b.createElement("span",{className:Ee.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:Ee.flex},b.createElement("img",{src:Be,style:{width:14}}),b.createElement("span",{className:Ee.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),b.createElement("div",{className:Ee.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:!ut&&"none"}},zIndex:1003,confirmLoading:Ue,okText:ut?ze:"\u6211\u77E5\u9053\u4E86",onOk:()=>We(void 0,null,function*(){ut?yield ke([...a,...se]):E(!1)})},b.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Me(),Ye()))}},8738:function(ot,Gt,ae){"use strict";ae.d(Gt,{h:function(){return oe}});var b=ae(59301),Ee=ae(57809),we=ae(78241),Be=ae(3113),Re=ae(89780),We=ae.n(Re),xe=ae(42741),Ke=ae(27494),Oe=Object.defineProperty,De=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,E=(se,le,Pe)=>le in se?Oe(se,le,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):se[le]=Pe,a=(se,le)=>{for(var Pe in le||(le={}))Ue.call(le,Pe)&&E(se,Pe,le[Pe]);if(ze)for(var Pe of ze(le))ue.call(le,Pe)&&E(se,Pe,le[Pe]);return se},x=(se,le)=>De(se,ke(le));const y=Ee.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"]};Gt.Z=({callback:se,onCancel:le})=>{const[Pe,Fe]=(0,b.useState)("python");function Qe(ut){Fe(te[ut][1])}function Le(ut){se(ut)}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(Ee.default,{getPopupContainer:ut=>ut.parentNode,onChange:Qe},Object.keys(te).map(ut=>b.createElement(y,{key:ut,value:ut},te[ut][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:Pe})),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:le},"\u53D6\u6D88")))};function oe({value:se,onChange:le,mode:Pe,options:Fe={}}){const Qe=(0,b.useRef)(),[Le,ut]=(0,b.useState)();return(0,b.useEffect)(()=>{if(Le){let Me=function(Ye){const Ge=Ye.getValue();le&&le(Ge)};return Le.on("change",Me),()=>{Le.off("change",Me)}}},[Le,le]),(0,b.useEffect)(()=>{Le&&Le.setOption("mode",Pe)},[Le,Pe]),(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:Pe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Fe));ut(Me)}},[Qe.current,Le]),b.createElement("div",{className:"my-codemirror-container"},b.createElement("textarea",{ref:Qe}))}},37962:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return Kn}});var b=ae(59301),Ee=ae(89780),we=ae.n(Ee),Be=ae(76374),Re=ae(42741),We=ae(6313),xe=ae(25717),Ke=ae(99498),Oe=ae(25419),De=ae(67549),ke=ae(28900),ze=({value:Je="",className:nt,showTextOnly:Xe,showLines:on,style:Cn={}})=>{const Ln=(0,b.useMemo)(()=>"",[Je]);return b.createElement(b.Fragment,null,b.createElement("div",{dangerouslySetInnerHTML:{__html:Ln}}))},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 le=[{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 Pe({onActionCallback:Je,title:nt,icon:Xe,actionName:on,className:Cn="",children:Ln}){function wa(){Je(on)}return Ue.createElement("a",{title:nt,className:Cn,onClick:wa},Ue.createElement("i",{className:`${Xe}`}),Ln)}var Fe=({watch:Je,showNullButton:nt,showNullProgramButton:Xe,onActionCallback:on,fullScreen:Cn,insertTemp:Ln,hidetoolBar:wa,extraUse:pa})=>{const ta=[...le,{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,qn)=>Ue.createElement("li",{key:qn},ya.actionName?Ue.createElement(Pe,se(oe({},ya),{onActionCallback:on})):Ue.createElement("span",{className:"v-line"}))),nt?Ue.createElement("li",null,Ue.createElement(Pe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:on},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(Pe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:on},Ue.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ue.createElement("li",null,Ue.createElement(Pe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:on},Ue.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ln&&Ue.createElement("li",null,Ue.createElement(Pe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ln}`,onActionCallback:on},Ue.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),pa&&Ue.createElement("li",null,pa),Ue.createElement("li",{className:"btn-full-screen"},Ue.createElement(Pe,{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:on})))},Qe=ae(23252),Le=ae(78241),ut=ae(92832),Me=ae(3113),Ye=Object.defineProperty,Ge=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,ft=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,Ft=(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={}))ft.call(nt,Xe)&&Ft(Je,Xe,nt[Xe]);if(be)for(var Xe of be(nt))ct.call(nt,Xe)&&Ft(Je,Xe,nt[Xe]);return Je},hn=(Je,nt)=>Ge(Je,$e(nt));const Bn={labelCol:{span:4},wrapperCol:{span:20}};var Ut=({callback:Je,onCancel:nt})=>{function Xe(on){Je(on)}return b.createElement(Le.default,hn(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(ut.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(ut.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(8738),Te=ae(30315),et=ae(43418),Jt=ae(95237),xn=ae(94094),Mt=ae(59301),qt=({callback:Je,onCancel:nt})=>{const Xe=document.createElement("canvas"),on=Xe.getContext("2d");Xe.width=1e3,Xe.height=800,on.fillStyle="#ffffff",on.fillRect(0,0,Xe.width,Xe.height);const Cn=Xe.toDataURL("image/png");return Mt.createElement(et.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Mt.createElement(Jt.Z,{style:{height:"100vh"}},Mt.createElement(xn.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Cn,visible:!0,title:String(Date.now())},onOk:Ln=>{Je({src:Ln.url})},onClose:nt})))},Ce=ae(12378);function rt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(rt,go.CommandHandler),rt.prototype.canAlignSelection=function(){var Je=this.diagram;return!(Je===null||Je.isReadOnly||Je.isModelReadOnly||Je.selection.count<2)},rt.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")},rt.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 on=Xe.actualBounds.x+Xe.actualBounds.width;nt=Math.max(on,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")},rt.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")},rt.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 on=Xe.actualBounds.y+Xe.actualBounds.height;nt=Math.max(on,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")},rt.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(on){on instanceof go.Link||on.move(new go.Point(Xe-on.actualBounds.width/2,on.actualBounds.y))}),Je.commitTransaction("aligning Center X")}},rt.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(on){on instanceof go.Link||on.move(new go.Point(on.actualBounds.x,Xe-on.actualBounds.height/2))}),Je.commitTransaction("aligning Center Y")}},rt.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(pa){pa instanceof go.Link||Xe.push(pa)});for(var on=0;on0){for(var pa=Ln.elt(wa-1);pa!==null&&pa.isTreeExpanded&&!pa.isTreeLeaf;){var ta=this._sortTreeChildrenByY(pa);pa=ta.last()}pa!==null&&Je.select(pa)}else Je.select(Cn)}}else if(Xe.key==="Down")if(nt.isTreeExpanded&&!nt.isTreeLeaf){var on=this._sortTreeChildrenByY(nt).first();on!==null&&Je.select(on)}else for(;nt!==null;){var Cn=nt.findTreeParentNode();if(Cn===null)break;var Ln=this._sortTreeChildrenByY(Cn),wa=Ln.indexOf(nt);if(waLn.y?1:Cn.xLn.x?1:0}),nt},rt.prototype.copyToClipboard=function(Je){go.CommandHandler.prototype.copyToClipboard.call(this,Je),this._lastPasteOffset.set(this.pasteOffset)},rt.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(rt.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(rt.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 rn=rt,tt=ae(64242),pt=ae(43604),Xn=ae(23789),gn={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Yt=ae(59301),jt=(Je,nt,Xe)=>new Promise((on,Cn)=>{var Ln=ta=>{try{pa(Xe.next(ta))}catch(ya){Cn(ya)}},wa=ta=>{try{pa(Xe.throw(ta))}catch(ya){Cn(ya)}},pa=ta=>ta.done?on(ta.value):Promise.resolve(ta.value).then(Ln,wa);pa((Xe=Xe.apply(Je,nt)).next())});function Vn({onCancel:Je,callback:nt}){let Xe=(0,b.useRef)(),on=(0,b.useRef)(),Cn=(0,b.useRef)(),Ln=(0,b.useRef)(!1);const wa=(0,b.useRef)(!1),[pa,ta]=(0,b.useState)(0);function ya(){const Wt=Ce.bx.make,Ma={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(on.current,{padding:20,grid:Wt(Ce.s_,"Grid",Wt(Ce.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Wt(Ce.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:pn=>{var na=pn.diagram.commandHandler.addTopLevelParts(pn.diagram.selection,!0);na||pn.diagram.currentTool.doCancel()},commandHandler:Wt(rn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:pn=>{var na=pn.subject;na.location=na.location.copy().snapToGridPoint(pn.diagram.grid.gridOrigin,pn.diagram.grid.gridCellSize),setTimeout(()=>{pn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:pn=>{var na=pn.subject;setTimeout(()=>{pn.diagram.commandHandler.editTextBlock()})},LinkRelinked:pn=>{var na=pn.parameter.part;na.invalidateConnectedLinks();var La=pn.subject;pn.diagram.toolManager.linkingTool.isForwards?La.toNode.invalidateConnectedLinks():La.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Xe.current.nodeTemplate=Wt(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),Wt(Ce.bn,{name:"SHAPE",fill:Ma.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")),Wt(Ce.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Wt(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=Wt("ToolTip",Wt(Ce.s_,"Vertical",{maxSize:new Ce.$u(200,NaN)},Wt(Ce.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Ce.KX("text")),Wt(Ce.al,{font:"10pt sans-serif",textAlign:"center"},new Ce.KX("text","details"))));function hr(pn,na){var La=(_n,dr)=>{_n.handled=!0,_n.diagram.model.commit(tr=>{var yr=dr.part.adornedPart,eo=new Ce.E9().setRectSpot(yr.actualBounds,pn);eo.subtract(yr.location),eo.scale(2,2),eo.x+=Math.sign(eo.x)*130,eo.y+=Math.sign(eo.y)*130,eo.add(yr.location),eo.snapToGridPoint(_n.diagram.grid.gridOrigin,_n.diagram.grid.gridCellSize);var fr=tr.copyNodeData(yr.data);tr.setGroupKeyForNodeData(fr,tr.getGroupKeyForNodeData(yr.data)),tr.addNodeData(fr);var _o={from:yr.key,to:tr.getKeyForNodeData(fr)};tr.addLinkData(_o);var Ro=_n.diagram.findNodeForData(fr);Ro.location=eo,_n.diagram.select(Ro),setTimeout(()=>{_n.diagram.commandHandler.editTextBlock()},20)})};return Wt(Ce.bn,{figure:na,alignment:pn,alignmentFocus:pn.opposite(),width:pn.equals(Ce.z6.Top)||pn.equals(Ce.z6.Bottom)?25:18,height:pn.equals(Ce.z6.Top)||pn.equals(Ce.z6.Bottom)?18:25,fill:"orange",stroke:Ma.white,strokeWidth:4,mouseEnter:(_n,dr)=>dr.fill="dodgerblue",mouseLeave:(_n,dr)=>dr.fill="orange",isActionable:!0,click:La,contextClick:La})}function So(pn){return Wt(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,La)=>La.fill="dodgerblue",mouseLeave:(na,La)=>La.fill="orange",click:(na,La)=>{na.diagram.commandHandler.showContextMenu(La.part.adornedPart)}},pn||{})}Xe.current.nodeTemplate.selectionAdornmentTemplate=Wt(Ce.uz,"Spot",Wt(Ce.Vm,{padding:10}),hr(Ce.z6.Top,"TriangleUp"),hr(Ce.z6.Left,"TriangleLeft"),hr(Ce.z6.Right,"TriangleRight"),hr(Ce.z6.Bottom,"TriangleDown"),So({alignment:new Ce.z6(.75,0)}));function $a(pn,na){return(La,_n)=>{La.handled=!0,La.diagram.model.commit(dr=>{dr.set(_n.part.adornedPart.data,pn,na)})}}function Vt(pn,na){return na||(na="color"),Wt(Ce.bn,{width:16,height:16,stroke:"lightgray",fill:pn,margin:1,background:"transparent",mouseEnter:(La,_n)=>_n.stroke="dodgerblue",mouseLeave:(La,_n)=>_n.stroke="lightgray",click:$a(na,pn),contextClick:$a(na,pn)})}function $r(){return[Wt("ContextMenuButton",Wt(Ce.s_,"Horizontal",Vt(Ma.white,"fill"),Vt(Ma.beige,"fill"),Vt(Ma.extralightblue,"fill"),Vt(Ma.extralightred,"fill"))),Wt("ContextMenuButton",Wt(Ce.s_,"Horizontal",Vt(Ma.lightgray,"fill"),Vt(Ma.lightgreen,"fill"),Vt(Ma.lightblue,"fill"),Vt(Ma.lightred,"fill")))]}function Ua(){return[Wt("ContextMenuButton",Wt(Ce.s_,"Horizontal",Vt(Ma.black),Vt(Ma.green),Vt(Ma.blue),Vt(Ma.red))),Wt("ContextMenuButton",Wt(Ce.s_,"Horizontal",Vt(Ma.white),Vt(Ma.magenta),Vt(Ma.purple),Vt(Ma.orange)))]}function Pr(pn,na){return na||(na="thickness"),Wt(Ce.bn,"LineH",{width:16,height:16,strokeWidth:pn,margin:1,background:"transparent",mouseEnter:(La,_n)=>_n.background="dodgerblue",mouseLeave:(La,_n)=>_n.background="transparent",click:$a(na,pn),contextClick:$a(na,pn)})}function ur(pn,na){return na||(na="dash"),Wt(Ce.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:pn,margin:1,background:"transparent",mouseEnter:(La,_n)=>_n.background="dodgerblue",mouseLeave:(La,_n)=>_n.background="transparent",click:$a(na,pn),contextClick:$a(na,pn)})}function Qr(){return[Wt("ContextMenuButton",Wt(Ce.s_,"Horizontal",Pr(1),Pr(2),Pr(3),Pr(4))),Wt("ContextMenuButton",Wt(Ce.s_,"Horizontal",ur(null),ur([2,4]),ur([4,4])))]}function Lr(pn,na){return na||(na="figure"),Wt(Ce.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:pn,margin:1,background:"transparent",mouseEnter:(La,_n)=>_n.fill="dodgerblue",mouseLeave:(La,_n)=>_n.fill="lightgray",click:$a(na,pn),contextClick:$a(na,pn)})}Xe.current.nodeTemplate.contextMenu=Wt("ContextMenu",Wt("ContextMenuButton",Wt(Ce.s_,"Horizontal",Lr("Rectangle"),Lr("RoundedRectangle"),Lr("Ellipse"),Lr("Diamond"))),Wt("ContextMenuButton",Wt(Ce.s_,"Horizontal",Lr("Parallelogram2"),Lr("ManualOperation"),Lr("Procedure"),Lr("Cylinder1"))),Wt("ContextMenuButton",Wt(Ce.s_,"Horizontal",Lr("Terminator"),Lr("CreateRequest"),Lr("Document"),Lr("TriangleDown"))),$r(),Ua(),Qr()),Xe.current.groupTemplate=Wt(Ce.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Ce.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(pn,na)=>{var La=na.addMembers(na.diagram.selection,!0);La||na.diagram.currentTool.doCancel()},avoidable:!1},new Ce.KX("location","loc",Ce.E9.parse).makeTwoWay(Ce.E9.stringify),Wt(Ce.s_,"Auto",{name:"BODY"},Wt(Ce.bn,{parameter1:10,fill:Ma.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")),Wt(Ce.Vm,{background:"transparent",margin:20})),Wt(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=Wt(Ce.uz,"Spot",Wt(Ce.s_,"Auto",Wt(Ce.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Wt(Ce.Vm,{margin:1.5})),So({alignment:Ce.z6.TopRight,alignmentFocus:Ce.z6.BottomRight})),Xe.current.groupTemplate.contextMenu=Wt("ContextMenu",$r(),Ua(),Qr()),Xe.current.linkTemplate=Wt(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",pn=>pn>=1?10:0),new Ce.KX("toShortLength","dir",pn=>pn>=1?10:0),new Ce.KX("points").makeTwoWay(),Wt(Ce.bn,{strokeWidth:2},new Ce.KX("stroke","color"),new Ce.KX("strokeWidth","thickness"),new Ce.KX("strokeDashArray","dash")),Wt(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",pn=>pn===1)),Wt(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",pn=>pn>=1),new Ce.KX("width","thickness",pn=>7+3*pn),new Ce.KX("height","thickness",pn=>7+3*pn),new Ce.KX("segmentOffset","thickness",pn=>new Ce.E9(-15,4+1.5*pn))),Wt(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",pn=>pn===2),new Ce.KX("width","thickness",pn=>7+3*pn),new Ce.KX("height","thickness",pn=>7+3*pn),new Ce.KX("segmentOffset","thickness",pn=>new Ce.E9(-15,4+1.5*pn))),Wt(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=Wt(Ce.uz,Wt(Ce.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:ro(2)},new Ce.KX("pathPattern","thickness",ro)),So({alignmentFocus:new Ce.z6(0,0,-6,-4)}));function ro(pn){return Wt(Ce.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(pn+4).toString()+" H3"})}function Tr(pn){var na="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return pn===0?na="M0 0 M16 16 M0 8 L16 8":pn===2&&(na="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Wt(Ce.bn,{geometryString:na,margin:2,background:"transparent",mouseEnter:(La,_n)=>_n.background="dodgerblue",mouseLeave:(La,_n)=>_n.background="transparent",click:$a("dir",pn),contextClick:$a("dir",pn)})}function ca(pn){var na=(La,_n)=>{La.handled=!0,La.diagram.model.commit(dr=>{var tr=_n.part.adornedPart;dr.set(tr.data,pn?"toSpot":"fromSpot",Ce.z6.stringify(Ce.z6.AllSides)),(pn?tr.toNode:tr.fromNode).invalidateConnectedLinks()})};return Wt(Ce.bn,{width:12,height:12,fill:"transparent",mouseEnter:(La,_n)=>_n.background="dodgerblue",mouseLeave:(La,_n)=>_n.background="transparent",click:na,contextClick:na})}function nn(pn,na){var La=0,_n=Ce.z6.RightSide;pn.equals(Ce.z6.Top)?(La=270,_n=Ce.z6.TopSide):pn.equals(Ce.z6.Left)?(La=180,_n=Ce.z6.LeftSide):pn.equals(Ce.z6.Bottom)&&(La=90,_n=Ce.z6.BottomSide),na||(La-=180);var dr=(tr,yr)=>{tr.handled=!0,tr.diagram.model.commit(eo=>{var fr=yr.part.adornedPart;eo.set(fr.data,na?"toSpot":"fromSpot",Ce.z6.stringify(_n)),(na?fr.toNode:fr.fromNode).invalidateConnectedLinks()})};return Wt(Ce.bn,{alignment:pn,alignmentFocus:pn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:La,background:"transparent",mouseEnter:(tr,yr)=>yr.background="dodgerblue",mouseLeave:(tr,yr)=>yr.background="transparent",click:dr,contextClick:dr})}Xe.current.linkTemplate.contextMenu=Wt("ContextMenu",Ua(),Qr(),Wt("ContextMenuButton",Wt(Ce.s_,"Horizontal",Tr(0),Tr(1),Tr(2))),Wt("ContextMenuButton",Wt(Ce.s_,"Horizontal",Wt(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)),Wt(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 mr=`{ "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 @@ ${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(hn){return console.log("shapeName:",hn),ga.indexOf(hn)>=0}var Va=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(hn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:hn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Xe.current.addDiagramListener("TextEdited",function(hn){var aa;const La=hn.subject.part;var Jn=(aa=document.activeElement)==null?void 0:aa.value;typeof Jn=="string"&&Jn.trim()===""&&Xe.current.model.commit(function(sr){sr.set(La.data,"text","\u672A\u547D\u540D"),Xe.current.commandHandler.stopCommand()},"increment")}),Va.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 qn=()=>kt(this,null,function*(){var zt=Xe.current.makeImage();const Ma=yield(0,Xn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:zt.src}});nt({src:Ma.url})});return(0,b.useEffect)(()=>(setTimeout(()=>{ya()},500),na(pa+1),()=>{Xe.current=null}),[]),Ut.createElement("div",{ref:wa,className:Nn.current?`${mn.maxH60} body-overflow-initial`:"body-overflow-initial"},Ut.createElement(et.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!pa,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Ut.createElement(_t.Z,null,Ut.createElement(pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Ut.createElement(pt.Z,{onClick:()=>{var zt,Ma,pr=Xe.current.selection.first();if(Nn.current=!Nn.current,document.activeElement&&pr){let So=(Ma=(zt=document.activeElement)==null?void 0:zt.value)==null?void 0:Ma.trim();typeof So=="string"&&Xe.current.model.commit(function($a){$a.set(pr.data,"text",So||"\u672A\u547D\u540D"),Xe.current.commandHandler.stopCommand()},"increment")}na(pa+1)}},Ut.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Je},Ut.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:mn.flowChartWrp},Ut.createElement("div",{style:{display:"flex",height:"100%"}},Ut.createElement("div",{style:{width:"300px",height:"100%"}},Ut.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Ut.createElement("div",{style:{height:"calc(100% - 50px)"},className:mn.myPaletteDiv,ref:Cn})),Ut.createElement("div",{style:{flex:1,position:"relative"}},Ut.createElement("div",{ref:ln,style:{height:"80vh"}}))),Ut.createElement("div",{className:"tr"},Ut.createElement(Me.ZP,{size:"large",onClick:qn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ia=Wn,nn=ae(5112),Ba=ae(5871);const Ka=nn.ZP.Group,Fa={margin:"0 8px"};var jn=({callback:Je,onCancel:nt})=>{function Xe(ln){Je(ln)}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(nn.ZP,{value:"default"},b.createElement("i",{className:"fa fa-align-justify"})),b.createElement(nn.ZP,{value:"left"},b.createElement("i",{className:"fa fa-align-left"})),b.createElement(nn.ZP,{value:"center"},b.createElement("i",{className:"fa fa-align-center"})),b.createElement(nn.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")))},za=ae(78673),Aa=ae(13547),fr=ae.n(Aa),Zn=(0,b.forwardRef)(({use3d:Je,width:nt,height:Xe,callback:ln,showSaveButton:Cn},Nn)=>{const wa=(0,b.useRef)(),pa=(0,b.useRef)(),[na,ya]=(0,b.useState)(!1),qn=(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)(()=>{pa.current=new(fr())(qn.current,!0),window.onload=function(){pa.current.inject("applet_container")}},[]);const zt=()=>{var Ma=window.ggbApplet.getPNGBase64(1,!0,72);return ln&&ln(Ma),Ma};return(0,b.useEffect)(()=>{qn.current.appName=na?"3D":"graphing",pa.current.inject("applet_container")},[na]),(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(_t.Z,{align:"middle"},b.createElement(pt.Z,{flex:1},b.createElement(za.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:na,onChange:Ma=>ya(Ma)})),b.createElement(pt.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(29386),Ea=ae(1012),xa=ae(8591);const _a="link",Sn="upload-image",sn="add-flowchart",Et="draw-image",Tt="add-flowchart",Za="code-block",Ca="add-table",Wa="------------",Da={default:Wa,left:`:${Wa}`,center:`:${Wa}:`,right:`${Wa}:`};var Ra=ae(34500),Br=(Je,nt,Xe)=>new Promise((ln,Cn)=>{var Nn=na=>{try{pa(Xe.next(na))}catch(ya){Cn(ya)}},wa=na=>{try{pa(Xe.throw(na))}catch(ya){Cn(ya)}},pa=na=>na.done?ln(na.value):Promise.resolve(na.value).then(Nn,wa);pa((Xe=Xe.apply(Je,nt)).next())});function nr(){}let Rr=0;const Mo=1e4,Yt="\u2581",Yn="@\u2581\u2581@",ea="@\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 sr(pn){return console.log("shapeName:",pn),ga.indexOf(pn)>=0}var Va=new Ce.YI(Cn.current,{maxSelectionCount:1,linkTemplate:Wt(Ce.rU,{locationSpot:Ce.z6.Center,selectionAdornmentTemplate:Wt(Ce.uz,"Link",{locationSpot:Ce.z6.Center},Wt(Ce.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Wt(Ce.bn,{toArrow:"Standard",stroke:null}))},{routing:Ce.rU.AvoidsNodes,curve:Ce.rU.JumpOver,corner:5,toShortLength:4},new Ce.KX("points"),Wt(Ce.bn,{isPanelMain:!0,strokeWidth:2}),Wt(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(pn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:pn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Xe.current.addDiagramListener("TextEdited",function(pn){var na;const La=pn.subject.part;var _n=(na=document.activeElement)==null?void 0:na.value;typeof _n=="string"&&_n.trim()===""&&Xe.current.model.commit(function(dr){dr.set(La.data,"text","\u672A\u547D\u540D"),Xe.current.commandHandler.stopCommand()},"increment")}),Va.nodeTemplate=Wt(Ce.NB,"Auto",{locationSpot:Ce.z6.Center},new Ce.KX("location","location",Ce.E9.parse).makeTwoWay(Ce.E9.stringify),Wt(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")),Wt(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=Wt(Ce.s_,"Grid",Wt(Ce.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Wt(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 qn=()=>jt(this,null,function*(){var Wt=Xe.current.makeImage();const Ma=yield(0,Xn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Wt.src}});nt({src:Ma.url})});return(0,b.useEffect)(()=>(setTimeout(()=>{ya()},500),ta(pa+1),()=>{Xe.current=null}),[]),Yt.createElement("div",{ref:wa,className:Ln.current?`${gn.maxH60} body-overflow-initial`:"body-overflow-initial"},Yt.createElement(et.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!pa,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Yt.createElement(Jt.Z,null,Yt.createElement(pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Yt.createElement(pt.Z,{onClick:()=>{var Wt,Ma,hr=Xe.current.selection.first();if(Ln.current=!Ln.current,document.activeElement&&hr){let So=(Ma=(Wt=document.activeElement)==null?void 0:Wt.value)==null?void 0:Ma.trim();typeof So=="string"&&Xe.current.model.commit(function($a){$a.set(hr.data,"text",So||"\u672A\u547D\u540D"),Xe.current.commandHandler.stopCommand()},"increment")}ta(pa+1)}},Yt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Je},Yt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:gn.flowChartWrp},Yt.createElement("div",{style:{display:"flex",height:"100%"}},Yt.createElement("div",{style:{width:"300px",height:"100%"}},Yt.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Yt.createElement("div",{style:{height:"calc(100% - 50px)"},className:gn.myPaletteDiv,ref:Cn})),Yt.createElement("div",{style:{flex:1,position:"relative"}},Yt.createElement("div",{ref:on,style:{height:"80vh"}}))),Yt.createElement("div",{className:"tr"},Yt.createElement(Me.ZP,{size:"large",onClick:qn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ia=Vn,tn=ae(5112),Ba=ae(5871);const Ka=tn.ZP.Group,Fa={margin:"0 8px"};var kn=({callback:Je,onCancel:nt})=>{function Xe(on){Je(on)}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")))},za=ae(78673),Aa=ae(13547),vr=ae.n(Aa),Tn=(0,b.forwardRef)(({use3d:Je,width:nt,height:Xe,callback:on,showSaveButton:Cn},Ln)=>{const wa=(0,b.useRef)(),pa=(0,b.useRef)(),[ta,ya]=(0,b.useState)(!1),qn=(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)(()=>{pa.current=new(vr())(qn.current,!0),window.onload=function(){pa.current.inject("applet_container")}},[]);const Wt=()=>{var Ma=window.ggbApplet.getPNGBase64(1,!0,72);return on&&on(Ma),Ma};return(0,b.useEffect)(()=>{qn.current.appName=ta?"3D":"graphing",pa.current.inject("applet_container")},[ta]),(0,b.useEffect)(()=>{ya(Je)},[Je]),(0,b.useImperativeHandle)(Ln,()=>({getImgData:Wt})),b.createElement(b.Fragment,null,b.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:wa}),b.createElement(Jt.Z,{align:"middle"},b.createElement(pt.Z,{flex:1},b.createElement(za.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:ta,onChange:Ma=>ya(Ma)})),b.createElement(pt.Z,null,b.createElement(Me.ZP,{size:"large",onClick:Wt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),da=ae(29386),Ea=ae(1012),xa=ae(8591);const _a="link",En="upload-image",ln="add-flowchart",St="draw-image",Zt="add-flowchart",Za="code-block",Ca="add-table",Wa="------------",Da={default:Wa,left:`:${Wa}`,center:`:${Wa}:`,right:`${Wa}:`};var Ra=ae(34500),xr=(Je,nt,Xe)=>new Promise((on,Cn)=>{var Ln=ta=>{try{pa(Xe.next(ta))}catch(ya){Cn(ya)}},wa=ta=>{try{pa(Xe.throw(ta))}catch(ya){Cn(ya)}},pa=ta=>ta.done?on(ta.value):Promise.resolve(ta.value).then(Ln,wa);pa((Xe=Xe.apply(Je,nt)).next())});function ar(){}let kr=0;const Mo=1e4,Kt="\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 Mt(Je){return/^\d+$/.test(Je)?`${Je}px`:Je}const pn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Rt={[pn+"-B"]:"bold",[pn+"-I"]:"italic"},Qn={[_a]:"\u6DFB\u52A0\u94FE\u63A5",[Za]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Sn]:"\u6DFB\u52A0\u56FE\u7247",[Et]:"\u6DFB\u52A0\u753B\u56FE",[sn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ca]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var _n=({defaultValue:Je="",onChange:nt,width:Xe="100%",height:ln=400,miniToolbar:Cn=!1,isFocus:Nn=!1,watch:wa,insertTemp:pa,mode:na="markdown",id:ya="markdown-editor-id",showResizeBar:qn=!1,noStorage:zt=!1,showNullButton:Ma=!1,showNullProgramButton:pr=!1,hidetoolBar:So=!1,fullScreen:$a=!1,onBlur:Gt,onCMBeforeChange:qr,onFullScreen:Ua,className:Sr="",disablePaste:ir=!1,disabled:Wr=!1,disabledFill:Dr=!1,placeholder:ao="",values:kr="",extraUse:ca})=>{const[an,gr]=(0,b.useState)(null),[ga,ur]=(0,b.useState)(Je),[Va,hn]=(0,b.useState)(wa),[aa,La]=(0,b.useState)($a),[Jn,sr]=(0,b.useState)(""),[tr,Ar]=(0,b.useState)(0),[$r,mr]=(0,b.useState)(ln),[_o,Ro]=(0,b.useState)(!1),Fl=(0,b.useRef)((0,Ea.Z)()),xr=(0,b.useRef)(!1),Nr=(0,b.useRef)(),[Ao,Ja]=(0,b.useState)(0),[Qr,eo]=(0,b.useState)(0),hr=(0,b.useRef)(),to=(0,b.useRef)(),xt=(0,b.useRef)(),At=(0,b.useRef)(),ht=()=>Br(void 0,null,function*(){var sa;const Dn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Fl.current}});(sa=Dn==null?void 0:Dn.attachments)!=null&&sa.length&&(console.log("cm:",an,hr),Dn.attachments.map(Hn=>{Hn.content_type.indexOf("image")>-1?an.replaceSelection(`![,](/api/attachments/${Hn.id}?type=${Hn.content_type})`):Hn.content_type.indexOf("video")>-1?an.replaceSelection(``):Hn.content_type.indexOf("pdf")>-1?an.replaceSelection(`${Hn.name}`):an.replaceSelection(`[${Hn.name}](${ENV.API_SERVER}/api/attachments/${Hn.id}?type=${Hn.content_type})`)}))});(0,b.useEffect)(()=>{const sa=window.scrollY||window.pageYOffset;ur(kr),an==null||an.setValue(kr),window.scrollTo(0,sa)},[kr]),(0,b.useEffect)(()=>{Ua==null||Ua(aa)},[aa]),(0,b.useEffect)(()=>{if(hr.current){let sa=function(Hn,me){var gt;if(ir){me.preventDefault();return}const Ct=me.clipboardData;if(Ct){const cn=Ct.types.toString(),vt=Ct.items;if(cn==="Files"||Ct.types.indexOf("Files")>-1){if(me.preventDefault(),na=="stex")return;try{let Ln=vt[1];((gt=vt[0])==null?void 0:gt.kind)==="file"&&(Ln=vt[0]);const An=Ln.getAsFile(),vn=An.name.split(".").pop();(0,Te.I)(An,yn=>{var Ia,cr,Fr;yn.id?((Ia=An==null?void 0:An.type)==null?void 0:Ia.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(vn)?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:na,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",ao):Dn.setOption("placeholder",null))}),Dn.on("keydown",function(Hn,me){if(me.keyCode===8){var gt=Ga(Hn);gt&&me.preventDefault()}}),Nn&&Dn.focus(),Dn.on("paste",sa),Dn.on("dragleave",function(Hn,me){to.current.classList.remove("mouse-hover-md")}),Wr&&Dn.on("beforeChange",function(Hn,me){(me.origin==="paste"||me.origin==="+input")&&me.cancel()}),gr(Dn),()=>{Dn.off("paste",sa)}}},[]);const kn=(0,b.useCallback)(()=>{if(to.current)try{}catch(sa){console.log(sa,"---- to set md editor body height")}},[$r,to,aa]);(0,b.useEffect)(()=>{function sa(){let Dn=new Be.Z(Hn=>{for(let me of Hn)(me.target.offsetHeight>0||me.target.offsetWidth>0)&&(kn(),an.setSize("100%","100%"),an.refresh())});return Dn.observe(hr.current.parentElement),Dn}if(an){const Dn=sa();return()=>{var Hn,me;(Hn=hr.current)!=null&&Hn.parentElement&&Dn.unobserve((me=hr.current)==null?void 0:me.parentElement)}}},[an,kn]),(0,b.useEffect)(()=>{if(an){let sa=[];for(const[Dn,Hn]of Object.entries(Rt)){let me={[Dn]:()=>{ar(Hn)}};sa.push(me),an.addKeyMap(me)}return Nr.current=setInterval(()=>{xr.current&&ht()},4e3),()=>{clearInterval(Nr.current);for(let Dn of sa)an.removeKeyMap(Dn)}}},[an]),(0,b.useEffect)(()=>{$a!==aa&&La($a)},[$a]),(0,Ra.Z)(()=>{if(!zt&&tr>0){let sa=new Date().getTime(),Dn=window.sessionStorage.getItem(ya);sa>=tr+Mo&&(!Dn||Dn!==ga)&&(window.sessionStorage.setItem(ya,ga),Ro(!0))}},Mo),(0,b.useEffect)(()=>{hn(wa)},[an,wa]),(0,b.useEffect)(()=>{an&&Nn&&an.focus()},[an,Nn]),(0,b.useEffect)(()=>{if(Va&&an){let sa=function(Hn){let me=Hn.target;if(At.current){let gt=me.scrollTop/me.scrollHeight;At.current.scrollTop=At.current.scrollHeight*gt}};const Dn=an.getScrollerElement();return Dn.addEventListener("scroll",sa),()=>{Dn.removeEventListener("scroll",sa)}}},[an,Va]),(0,b.useEffect)(()=>{if(an&&qr){let sa=function(Dn,Hn){qr(Dn,Hn)};return an.on("beforeChange",sa),()=>{an.off("beforeChange",sa)}}},[an,qr]),(0,b.useEffect)(()=>{if(an&&Gt){let sa=function(){Gt(an.getValue())};return an.on("blur",sa),()=>{an.off("blur",sa)}}},[an,Gt]);function Ga(sa,Dn){var Hn=sa.getDoc(),me=Hn.getCursor(),gt=Hn.getLine(me.line),Ct=gt.charAt(me.ch-1),cn=gt.lastIndexOf("@\u2581@",me.ch),vt=gt.lastIndexOf("@\u2581\u2581@",me.ch),Ln=cn>vt?cn:vt,An=cn>vt?3:4;if(Yn.indexOf(Ct)===-1)return null;if(console.log("change1:",Dn,sa,gt,me,Ln,cn,vt,Ct),Ln>=0&&me.ch-Ln<5){var vn=Ln+An;return Hn.replaceRange("",{line:me.line,ch:Ln},{line:me.line,ch:vn}),{line:me.line,ch:vn}}return null}(0,b.useEffect)(()=>{if(an){let sa=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 an.on("change",sa),()=>{an.off("change",sa)}}},[an,nt]),(0,b.useEffect)(()=>{if(an)if(Je==null)an.setValue(""),ur("");else{const sa=window.scrollY||window.pageYOffset;Je!==an.getValue()&&(an.setValue(Je),ur(Je),an.setCursor(Wr?1:an.lineCount(),0),window.scrollTo(0,sa))}},[an,Je]);const ar=(0,b.useCallback)(sa=>{const Dn=an.getCursor(),Hn=an.getSelection();let me=Hn.split(` -`);switch(sa){case"bold":return an.replaceSelection("**"+Hn+"**"),Hn===""&&an.setCursor(Dn.line,Dn.ch+2),an.focus();case"italic":return an.replaceSelection("*"+Hn+"*"),Hn===""&&an.setCursor(Dn.line,Dn.ch+1),an.focus();case"code":return an.replaceSelection("`"+Hn+"`"),Hn===""&&an.setCursor(Dn.line,Dn.ch+1),an.focus();case"inline-latex":return sr("inline-latex"),an.focus();case"latex":return an.replaceSelection("```latex\n"+Hn+"\n```"),an.setCursor(Dn.line+1,Hn.length+1),an.focus();case"line-break":return an.replaceSelection(`
-`),an.focus();case"list-ul":return Hn===""?an.replaceSelection("- "+Hn):an.replaceSelection(me.map(gt=>gt===""?"":`- ${gt}`).join(` -`)),an.focus();case"list-ol":return Hn===""?an.replaceSelection("1. "+Hn):an.replaceSelection(me.map((gt,Ct)=>gt===""?"":`${Ct+1}. ${gt}`).join(` -`)),an.focus();case"add-null-ch":return Hn===""&&an.setCursor(Dn.line,Dn.ch),an.replaceSelection(Yt),an.focus();case"add-signal":return Hn===""&&an.setCursor(Dn.line,Dn.ch),an.replaceSelection(ea),an.focus();case"add-multiple":return Hn===""&&an.setCursor(Dn.line,Dn.ch),an.replaceSelection(Yn),an.focus();case"inster-template-1":return Hn===""&&an.setCursor(Dn.line,Dn.ch),an.replaceSelection(ba),an.focus();case"eraser":return an.setValue(""),an.focus();case"trigger-watch":return hn(!Va),an.focus();case"trigger-full-screen":return La(!aa),an.focus();case _a:sr(_a);return;case Za:sr(Za);return;case Sn:sr(Sn);return;case Et:sr(Et);return;case"maths-latex":sr("maths-latex");return;case sn:sr(sn);return;case Ca:sr(Ca);return;default:throw new Error}},[an,Va,aa]),Pn=(0,b.useCallback)((sa,Dn)=>{var Hn,me,gt,Ct,cn,vt;switch(sr(""),Jn){case _a:const{title:Ia,link:cr}=sa;return an.replaceSelection(`[${Ia}](${cr})`),an.focus();case Za:const{language:Fr,content:ma}=sa;return an.replaceSelection(["```"+Fr,ma,"```"].join(` -`)),an.focus();case"maths-latex":for(var Ln=atob(sa),An=new Uint8Array(Ln.length),vn=0;vn{Cl.id?an.replaceSelection(`![,](/api/attachments/${Cl.id}?type=${Cl.content_type})`):(Cl==null?void 0:Cl.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":an.replaceSelection("`$$"+sa+"$$`");break;case Sn:case Et:case Tt:const{src:va,alt:rr}=sa,Er=Dn,Jo=(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((Ct=Er==null?void 0:Er.type)==null?void 0:Ct.indexOf("image"))>-1||!(Er!=null&&Er.type)?Er.align||Er.width?an.replaceSelection(`

${rr||

`):an.replaceSelection(`${rr||`):((cn=Er==null?void 0:Er.type)==null?void 0:cn.indexOf("video"))>-1?an.replaceSelection(``):((vt=Er==null?void 0:Er.type)==null?void 0:vt.indexOf("pdf"))>-1?an.replaceSelection(`${Er.name}`):Ze.includes(Jo)?an.replaceSelection(`${Er.name}`):an.replaceSelection(`[${Er.name}](${va})`),an.focus();case Ca:const{row:sl,col:Qo,align:ol}=sa;let hl=` +\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 kt(Je){return/^\d+$/.test(Je)?`${Je}px`:Je}const vn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Tt={[vn+"-B"]:"bold",[vn+"-I"]:"italic"},Wn={[_a]:"\u6DFB\u52A0\u94FE\u63A5",[Za]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[En]:"\u6DFB\u52A0\u56FE\u7247",[St]:"\u6DFB\u52A0\u753B\u56FE",[ln]:"\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:on=400,miniToolbar:Cn=!1,isFocus:Ln=!1,watch:wa,insertTemp:pa,mode:ta="markdown",id:ya="markdown-editor-id",showResizeBar:qn=!1,noStorage:Wt=!1,showNullButton:Ma=!1,showNullProgramButton:hr=!1,hidetoolBar:So=!1,fullScreen:$a=!1,onBlur:Vt,onCMBeforeChange:$r,onFullScreen:Ua,className:Pr="",disablePaste:ur=!1,disabled:Qr=!1,disabledFill:Lr=!1,placeholder:ro="",values:Tr="",extraUse:ca})=>{const[nn,mr]=(0,b.useState)(null),[ga,sr]=(0,b.useState)(Je),[Va,pn]=(0,b.useState)(wa),[na,La]=(0,b.useState)($a),[_n,dr]=(0,b.useState)(""),[tr,yr]=(0,b.useState)(0),[eo,fr]=(0,b.useState)(on),[_o,Ro]=(0,b.useState)(!1),Fl=(0,b.useRef)((0,Ea.Z)()),wr=(0,b.useRef)(!1),Or=(0,b.useRef)(),[Ao,Ja]=(0,b.useState)(0),[Ur,to]=(0,b.useState)(0),Er=(0,b.useRef)(),no=(0,b.useRef)(),wt=(0,b.useRef)(),yt=(0,b.useRef)(),ht=()=>xr(void 0,null,function*(){var sa;const wn=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Fl.current}});(sa=wn==null?void 0:wn.attachments)!=null&&sa.length&&(console.log("cm:",nn,Er),wn.attachments.map(Gn=>{Gn.content_type.indexOf("image")>-1?nn.replaceSelection(`![,](/api/attachments/${Gn.id}?type=${Gn.content_type})`):Gn.content_type.indexOf("video")>-1?nn.replaceSelection(``):Gn.content_type.indexOf("pdf")>-1?nn.replaceSelection(`${Gn.name}`):nn.replaceSelection(`[${Gn.name}](${ENV.API_SERVER}/api/attachments/${Gn.id}?type=${Gn.content_type})`)}))});(0,b.useEffect)(()=>{const sa=window.scrollY||window.pageYOffset;sr(Tr),nn==null||nn.setValue(Tr),window.scrollTo(0,sa)},[Tr]),(0,b.useEffect)(()=>{Ua==null||Ua(na)},[na]),(0,b.useEffect)(()=>{if(Er.current){let sa=function(Gn,me){var mt;if(ur){me.preventDefault();return}const Ct=me.clipboardData;if(Ct){const dn=Ct.types.toString(),vt=Ct.items;if(dn==="Files"||Ct.types.indexOf("Files")>-1){if(me.preventDefault(),ta=="stex")return;try{let Dn=vt[1];((mt=vt[0])==null?void 0:mt.kind)==="file"&&(Dn=vt[0]);const An=Dn.getAsFile(),fn=An.name.split(".").pop();(0,Te.I)(An,yn=>{var Ia,gr,Cr;yn.id?((Ia=An==null?void 0:An.type)==null?void 0:Ia.indexOf("image"))>-1?wn.replaceSelection(``):((gr=An==null?void 0:An.type)==null?void 0:gr.indexOf("video"))>-1?wn.replaceSelection(``):((Cr=An==null?void 0:An.type)==null?void 0:Cr.indexOf("pdf"))>-1?wn.replaceSelection(`${An.name}`):Ze.includes(fn)?wn.replaceSelection(`${An.name}`):wn.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(Dn){xa.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const wn=we().fromTextArea(Er.current,{mode:ta,lineNumbers:!Cn,lineWrapping:!0,value:Je,autoCloseTags:!hr,autoCloseBrackets:!0});return wn.on("keyup",function(Gn,me){me.keyCode===8&&(Gn.getValue()==""?wn.setOption("placeholder",ro):wn.setOption("placeholder",null))}),wn.on("keydown",function(Gn,me){if(me.keyCode===8){var mt=Ga(Gn);mt&&me.preventDefault()}}),Ln&&wn.focus(),wn.on("paste",sa),wn.on("dragleave",function(Gn,me){no.current.classList.remove("mouse-hover-md")}),Qr&&wn.on("beforeChange",function(Gn,me){(me.origin==="paste"||me.origin==="+input")&&me.cancel()}),mr(wn),()=>{wn.off("paste",sa)}}},[]);const Mn=(0,b.useCallback)(()=>{if(no.current)try{}catch(sa){console.log(sa,"---- to set md editor body height")}},[eo,no,na]);(0,b.useEffect)(()=>{function sa(){let wn=new Be.Z(Gn=>{for(let me of Gn)(me.target.offsetHeight>0||me.target.offsetWidth>0)&&(Mn(),nn.setSize("100%","100%"),nn.refresh())});return wn.observe(Er.current.parentElement),wn}if(nn){const wn=sa();return()=>{var Gn,me;(Gn=Er.current)!=null&&Gn.parentElement&&wn.unobserve((me=Er.current)==null?void 0:me.parentElement)}}},[nn,Mn]),(0,b.useEffect)(()=>{if(nn){let sa=[];for(const[wn,Gn]of Object.entries(Tt)){let me={[wn]:()=>{rr(Gn)}};sa.push(me),nn.addKeyMap(me)}return Or.current=setInterval(()=>{wr.current&&ht()},4e3),()=>{clearInterval(Or.current);for(let wn of sa)nn.removeKeyMap(wn)}}},[nn]),(0,b.useEffect)(()=>{$a!==na&&La($a)},[$a]),(0,Ra.Z)(()=>{if(!Wt&&tr>0){let sa=new Date().getTime(),wn=window.sessionStorage.getItem(ya);sa>=tr+Mo&&(!wn||wn!==ga)&&(window.sessionStorage.setItem(ya,ga),Ro(!0))}},Mo),(0,b.useEffect)(()=>{pn(wa)},[nn,wa]),(0,b.useEffect)(()=>{nn&&Ln&&nn.focus()},[nn,Ln]),(0,b.useEffect)(()=>{if(Va&&nn){let sa=function(Gn){let me=Gn.target;if(yt.current){let mt=me.scrollTop/me.scrollHeight;yt.current.scrollTop=yt.current.scrollHeight*mt}};const wn=nn.getScrollerElement();return wn.addEventListener("scroll",sa),()=>{wn.removeEventListener("scroll",sa)}}},[nn,Va]),(0,b.useEffect)(()=>{if(nn&&$r){let sa=function(wn,Gn){$r(wn,Gn)};return nn.on("beforeChange",sa),()=>{nn.off("beforeChange",sa)}}},[nn,$r]),(0,b.useEffect)(()=>{if(nn&&Vt){let sa=function(){Vt(nn.getValue())};return nn.on("blur",sa),()=>{nn.off("blur",sa)}}},[nn,Vt]);function Ga(sa,wn){var Gn=sa.getDoc(),me=Gn.getCursor(),mt=Gn.getLine(me.line),Ct=mt.charAt(me.ch-1),dn=mt.lastIndexOf("@\u2581@",me.ch),vt=mt.lastIndexOf("@\u2581\u2581@",me.ch),Dn=dn>vt?dn:vt,An=dn>vt?3:4;if(Un.indexOf(Ct)===-1)return null;if(console.log("change1:",wn,sa,mt,me,Dn,dn,vt,Ct),Dn>=0&&me.ch-Dn<5){var fn=Dn+An;return Gn.replaceRange("",{line:me.line,ch:Dn},{line:me.line,ch:fn}),{line:me.line,ch:fn}}return null}(0,b.useEffect)(()=>{if(nn){let sa=function(wn,Gn){const me=wn.getValue();sr(me),yr(new Date().getTime()),wn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),nt&&(hr?nt(me,bo(me)):nt(me))};return nn.on("change",sa),()=>{nn.off("change",sa)}}},[nn,nt]),(0,b.useEffect)(()=>{if(nn)if(Je==null)nn.setValue(""),sr("");else{const sa=window.scrollY||window.pageYOffset;Je!==nn.getValue()&&(nn.setValue(Je),sr(Je),nn.setCursor(Qr?1:nn.lineCount(),0),window.scrollTo(0,sa))}},[nn,Je]);const rr=(0,b.useCallback)(sa=>{const wn=nn.getCursor(),Gn=nn.getSelection();let me=Gn.split(` +`);switch(sa){case"bold":return nn.replaceSelection("**"+Gn+"**"),Gn===""&&nn.setCursor(wn.line,wn.ch+2),nn.focus();case"italic":return nn.replaceSelection("*"+Gn+"*"),Gn===""&&nn.setCursor(wn.line,wn.ch+1),nn.focus();case"code":return nn.replaceSelection("`"+Gn+"`"),Gn===""&&nn.setCursor(wn.line,wn.ch+1),nn.focus();case"inline-latex":return dr("inline-latex"),nn.focus();case"latex":return nn.replaceSelection("```latex\n"+Gn+"\n```"),nn.setCursor(wn.line+1,Gn.length+1),nn.focus();case"line-break":return nn.replaceSelection(`
+`),nn.focus();case"list-ul":return Gn===""?nn.replaceSelection("- "+Gn):nn.replaceSelection(me.map(mt=>mt===""?"":`- ${mt}`).join(` +`)),nn.focus();case"list-ol":return Gn===""?nn.replaceSelection("1. "+Gn):nn.replaceSelection(me.map((mt,Ct)=>mt===""?"":`${Ct+1}. ${mt}`).join(` +`)),nn.focus();case"add-null-ch":return Gn===""&&nn.setCursor(wn.line,wn.ch),nn.replaceSelection(Kt),nn.focus();case"add-signal":return Gn===""&&nn.setCursor(wn.line,wn.ch),nn.replaceSelection($n),nn.focus();case"add-multiple":return Gn===""&&nn.setCursor(wn.line,wn.ch),nn.replaceSelection(Un),nn.focus();case"inster-template-1":return Gn===""&&nn.setCursor(wn.line,wn.ch),nn.replaceSelection(ba),nn.focus();case"eraser":return nn.setValue(""),nn.focus();case"trigger-watch":return pn(!Va),nn.focus();case"trigger-full-screen":return La(!na),nn.focus();case _a:dr(_a);return;case Za:dr(Za);return;case En:dr(En);return;case St:dr(St);return;case"maths-latex":dr("maths-latex");return;case ln:dr(ln);return;case Ca:dr(Ca);return;default:throw new Error}},[nn,Va,na]),Sn=(0,b.useCallback)((sa,wn)=>{var Gn,me,mt,Ct,dn,vt;switch(dr(""),_n){case _a:const{title:Ia,link:gr}=sa;return nn.replaceSelection(`[${Ia}](${gr})`),nn.focus();case Za:const{language:Cr,content:ma}=sa;return nn.replaceSelection(["```"+Cr,ma,"```"].join(` +`)),nn.focus();case"maths-latex":for(var Dn=atob(sa),An=new Uint8Array(Dn.length),fn=0;fn{Cl.id?nn.replaceSelection(`![,](/api/attachments/${Cl.id}?type=${Cl.content_type})`):(Cl==null?void 0:Cl.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":nn.replaceSelection("`$$"+sa+"$$`");break;case En:case St:case Zt:const{src:va,alt:or}=sa,Sr=wn,Jo=(mt=(me=(Gn=Sr==null?void 0:Sr.name)==null?void 0:Gn.split("."))==null?void 0:me.pop)==null?void 0:mt.call(me);return((Ct=Sr==null?void 0:Sr.type)==null?void 0:Ct.indexOf("image"))>-1||!(Sr!=null&&Sr.type)?Sr.align||Sr.width?nn.replaceSelection(`

${or||

`):nn.replaceSelection(`${or||`):((dn=Sr==null?void 0:Sr.type)==null?void 0:dn.indexOf("video"))>-1?nn.replaceSelection(``):((vt=Sr==null?void 0:Sr.type)==null?void 0:vt.indexOf("pdf"))>-1?nn.replaceSelection(`${Sr.name}`):Ze.includes(Jo)?nn.replaceSelection(`${Sr.name}`):nn.replaceSelection(`[${Sr.name}](${va})`),nn.focus();case Ca:const{row:sl,col:Qo,align:ol}=sa;let hl=` `;for(let Cl=0;Cl{switch(Jn){case _a:return b.createElement(Qt,{callback:Pn,onCancel:Xa});case Za:return b.createElement(St.Z,{callback:Pn,onCancel:Xa});case Sn:return b.createElement(Te.Z,{callback:Pn,onCancel:Xa});case sn:return b.createElement(ia,{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}},[Jn]);function Xa(){sr("")}(0,b.useEffect)(()=>{if(xt.current){let sa=function(cn){gt=!0,Ct=cn.pageY},Dn=function(){gt=!1},Hn=function(cn){if(gt){let vt=cn.pageY-Ct;vt<0&&(vt=0),vt>300&&(vt=300);let Ln=ln+vt+"px";mr(Ln)}},me=xt.current,gt=!1,Ct=0;return me.addEventListener("mousedown",sa),document.addEventListener("mousemove",Hn),document.addEventListener("mouseup",Dn),()=>{me.removeEventListener("mousedown",sa),document.removeEventListener("mousemove",Hn),document.removeEventListener("mouseup",Dn)}}},[an,xt]),(0,b.useEffect)(()=>{mr(ln)},[ln]);const ro=Mt(Xe),dr=Mt($r),Ha={width:ro,height:dr},wr=(0,b.useMemo)(()=>{if(tr){let sa=new Date(tr),Dn=sa.getHours(),Hn=sa.getMinutes(),me=sa.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=sa=>{const Dn=[];if(pr){let Hn=-1;sa=sa.replace(/(@▁▁@|@▁@)/g,function(me,gt,Ct){Dn.push({multiLine:me!==ea})})}return Dn};function rl(){window.sessionStorage.removeItem(ya),Ro(!1),Ar(0)}function Tr(){Ro(!1),Ar(0),an.setValue(window.sessionStorage.getItem(ya))}(0,b.useEffect)(()=>{Qn[Jn]&&Jn!==Et&&Jn!==sn&&setTimeout(()=>{const sa=document.getElementsByClassName("markdown-popup-form")[0],Dn=window.innerWidth/2-sa.offsetWidth/2,Hn=window.innerHeight/2-sa.offsetHeight/2;Ja(Dn),eo(Hn)},0)},[Jn]);const yo=sa=>{sa.preventDefault();const Dn=sa.clientX-Ao,Hn=sa.clientY-Qr;document.body.onmousemove=me=>{let gt=me.clientX-Dn,Ct=me.clientY-Hn;const cn=document.getElementsByClassName("markdown-popup-form")[0],vt=window.innerWidth-cn.offsetWidth,Ln=window.innerHeight-cn.offsetHeight;gt=Math.max(0,Math.min(gt,vt)),Ct=Math.max(0,Math.min(Ct,Ln)),To(me.clientX,me.clientY,Dn,Hn)&&(Ja(gt),eo(Ct))},document.body.onmouseup=function(){document.body.onmousemove=null}},To=(sa,Dn,Hn,me)=>{const gt=document.body.clientHeight,Ct=document.body.clientWidth;return sa<20&&Hn>sa||sa>Ct-20&&HnDn||Dn>gt-20&&meut in Le?ze(Le,ut,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Le[ut]=Me,z=(Le,ut)=>{for(var Me in ut||(ut={}))a.call(ut,Me)&&y(Le,Me,ut[Me]);if(E)for(var Me of E(ut))x.call(ut,Me)&&y(Le,Me,ut[Me]);return Le},te=(Le,ut)=>Ue(Le,ue(ut));const{useForm:oe}=b.default,se={width:280,marginRight:10},le={labelCol:{span:5},wrapperCol:{span:19}};var Pe=({callback:Le,onCancel:ut})=>{const[Me]=oe();let Ye=(0,Oe.useRef)();function Ge(ft){Ye.current.width=Me.getFieldValue("width"),Ye.current.align=Me.getFieldValue("align"),Le(ft,Ye.current)}function $e(ft,dt){if(ft.status===-1){Ee.ZP.error(ft.message);return}Me.setFieldsValue({src:`/api/attachments/${ft.id}`,type:dt.type})}function be(ft){let dt=ft.target.files[0];Ye.current=dt,Qe(dt,$e)}return ke.createElement(b.default,te(z({form:Me},le),{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:ut},"\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,ut){if(!Le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,De.bg)())throw Ee.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){ut(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)}},23252:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return we}});var b=ae(59301),Ee=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,Ee.createPortal)(Re,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},50543:function(ot,jt,ae){"use strict";ae.d(jt,{i:function(){return le},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"},Ee=ae(71418),we=ae(6848),Be=ae(93948),Re=ae(92310),We=ae.n(Re),xe=ae(21331),Ke=ae(41625),Oe=ae(35219),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 le=[{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:ut=4,right:Me,bottom:Ye=23,precision:Ge=0,wrapWidth:$e=1200,trackEventItems:be,loading:ft,onRemove:dt=()=>{},isCurrent:Ft=!0,showAlias:Pt=!1,showProgress:En=!1})=>{const Bn=Math.floor(($e-(ut-1)*Me)/ut),Qt=[{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(St=>(window.ENV==="build"&&(St.ptimg=`/react/build${St.ptimg}`,St.swimg=`/react/build${St.swimg}`),St));return se.createElement(Ee.Z,{spinning:ft},se.createElement("div",{className:We()(b.list,Qe)},!!(Le!=null&&Le.length)&&(Le==null?void 0:Le.map((St,Te)=>{var et,_t,xn,It,qt,Ce;const{name:rt,id:on,identifier:tt,featured:pt,school_name:Xn,image_url:mn,excellent:Ut,is_plan:kt}=St;return se.createElement("div",{key:on,className:Ft&&En?b.wrapisCurrent:b.wrap,style:{width:Bn,marginRight:(1+Te)%ut===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:`${mn}`}),Ft&&(0,Oe.bg)()&&(St==null?void 0:St.studying)&&se.createElement("div",{className:`${b.movebq} user-path-items`,onClick:Wn=>{Wn.stopPropagation(),dt(St)}},se.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),se.createElement("span",{className:"c-red"},"\u79FB\u9664")),(et=St==null?void 0:St.subject_tags)==null?void 0:et.map((Wn,ia)=>{var nn,Ba;if(ia===0){const Fa=(nn=Qt.find(jn=>jn.name==Wn))==null?void 0:nn.swimg;return se.createElement("img",{className:b.sign,src:Fa,style:{left:"-4px"}})}const Ka=(Ba=Qt.find(Fa=>Fa.name==Wn))==null?void 0:Ba.ptimg;return se.createElement("img",{className:b.sign,src:Ka,style:{left:`${48+52*(ia-1)+2*ia}px`}})}),se.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(St==null?void 0:St.excellent)&&se.createElement("div",{className:b.bq},"\u5F00\u653E\u8BFE\u7A0B"))),se.createElement("div",{className:b.name},se.createElement(we.Z,{title:Pt&&(St!=null&&St.excellent_alias_name)?se.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${rt}`,se.createElement("br",null),se.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${St==null?void 0:St.excellent_alias_name}`)):rt},se.createElement("span",{className:b.e},Pt&&(St==null?void 0:St.excellent_alias_name)||rt))),Ft&&En&&((_t=St==null?void 0:St.progress)==null?void 0:_t.all_score)!=0&&se.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},se.createElement(Be.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((xn=St==null?void 0:St.progress)==null?void 0:xn.my_score)/((It=St==null?void 0:St.progress)==null?void 0:It.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(qt=St==null?void 0:St.progress)==null?void 0:qt.my_score,"/",(Ce=St==null?void 0:St.progress)==null?void 0:Ce.all_score),(!Ft||!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,St.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,St.members_count)))))))})),!Le.length&&se.createElement(Ke.Z,null)))}},14739:function(ot,jt,ae){"use strict";ae.d(jt,{jL:function(){return Re},w9:function(){return ua},dN:function(){return xa},QD:function(){return na},cQ:function(){return It.Z},Oz:function(){return Fa},op:function(){return Xe},O5:function(){return ga},_b:function(){return So},t7:function(){return Le},Gi:function(){return Da},YG:function(){return Et},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 Yt},tp:function(){return le},Si:function(){return hn},k8:function(){return to},Du:function(){return mr}});var b=ae(59301),Ee={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+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKq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dSRK5J0YbwJDLfo39eWTDrTOebkDeL2+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:At,imgWidth:ht=346,title:kn,sunTitle:Ga,bannerExtraContent:ar})=>b.createElement("div",{className:Ee.banner},b.createElement("div",{className:Ee.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,kn),b.createElement("span",null,Ga)),xt.length>0&&b.createElement("div",{className:Ee.btns},xt.map((Pn,er)=>b.createElement("div",{key:er,onClick:Pn.click},Pn.name,Pn.sign?b.createElement("img",{src:we,width:39}):null))),ar),At&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:At,width:ht}))),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(78267),De=Object.defineProperty,ke=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,ue=(xt,At,ht)=>At in xt?De(xt,At,{enumerable:!0,configurable:!0,writable:!0,value:ht}):xt[At]=ht,E=(xt,At)=>{for(var ht in At||(At={}))ze.call(At,ht)&&ue(xt,ht,At[ht]);if(ke)for(var ht of ke(At))Ue.call(At,ht)&&ue(xt,ht,At[ht]);return xt},x=({dataSource:xt=[],value:At,onChange:ht,onTitleChange:kn,className:Ga,title:ar,titleWidth:Pn=41,style:er={},fontColor:Xa="#6A7283",showCount:ro,classNameActive:dr,styleItem:Ha={}})=>{const[wr,bo]=(0,b.useState)(0),[rl,Tr]=(0,b.useState)(!1),yo=(0,b.useRef)(null),To=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var sa;xt.length!==0&&(((sa=yo==null?void 0:yo.current)==null?void 0:sa.clientHeight)>97?bo(1):bo(0)),xt.length===0&&bo(0),Tr(!1)},[xt]),b.createElement("div",{className:Ke()(We.row,Ga),style:er},b.createElement("div",{onClick:(0,Oe.throttle)(()=>kn==null?void 0:kn(),2e3),style:{width:Pn,marginTop:rl?12:4},className:`${We.title} ${kn?"current":""}`},ar),b.createElement("div",{className:rl?`${We.tagsWrap} ${We.tagsBorderWrap}`:We.tagsWrap},b.createElement("div",{className:We.bar,ref:To,style:wr>0?{height:wr===1?97:"auto",overflow:wr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:We.tag,ref:yo},xt==null?void 0:xt.map(sa=>b.createElement("span",{onClick:()=>ht(sa.id),key:sa.id,style:E(E({color:Xa},Ha),(sa==null?void 0:sa.style)||{}),className:At===sa.id?Ke()(dr||We.active,sa.classNameActive):""},b.createElement("span",{title:sa.name,className:We.name},sa.name),!!ro&&b.createElement("span",{className:We.num},sa.count))))),!!wr&&b.createElement(b.Fragment,null,wr===1?b.createElement("div",{onClick:()=>{var sa;bo(2),((sa=yo==null?void 0:yo.current)==null?void 0:sa.clientHeight)>245?Tr(!0):Tr(!1)},className:We.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{To.current.scrollTop=0,bo(1),Tr(!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:At,onChange:ht,onTitleChange:kn,className:Ga,title:ar,titleWidth:Pn=41,style:er={},fontColor:Xa="#6A7283",showCount:ro,expand:dr=!0})=>{const[Ha,wr]=(0,b.useState)(0),[bo,rl]=(0,b.useState)(!1),Tr=(0,b.useRef)(null),yo=(0,b.useRef)(null),[To,sa]=(0,b.useState)(dr);return b.createElement("div",{className:Ke()(y.row,Ga),style:er},b.createElement("div",{className:"flex item-center justify-between"},b.createElement("div",{onClick:(0,Oe.throttle)(()=>kn==null?void 0:kn(),2e3),style:{width:Pn,marginTop:bo?12:4},className:`${y.title} ${kn?"current":""}`},ar),b.createElement("i",{className:`iconfont ${To?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:To?8:10},onClick:()=>sa(!To)})),To&&b.createElement("div",{className:bo?`${y.tagsWrap} ${y.tagsBorderWrap}`:y.tagsWrap},b.createElement("div",{className:y.fenge}),b.createElement("div",{className:y.bar,ref:yo},b.createElement("div",{className:y.tag,ref:Tr},xt==null?void 0:xt.map(Dn=>b.createElement("span",{onClick:()=>ht(Dn.id),key:Dn.id,style:{color:Xa},className:At===Dn.id?y.active:""},b.createElement("span",{title:Dn.name,className:y.name},Dn.name),!!ro&&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"},le=({dataSource:xt=[],value:At,onChange:ht,className:kn,style:Ga={}})=>b.createElement("div",{style:Ga,className:Ke()(oe.tabs,kn)},xt.map(ar=>b.createElement("span",{onClick:()=>ht(ar.id),className:At===ar.id?oe.active:"",key:ar.id},ar.name))),Pe={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:At="",onChange:ht,onInputChange:kn=()=>{},className:Ga,style:ar={},placeholder:Pn,allowClear:er=!1})=>{var Xa;const[ro,dr]=(0,b.useState)(""),[Ha,wr]=(0,b.useState)("");(0,b.useEffect)(()=>{var Tr;let yo=At;(Tr=JSON.stringify(At))!=null&&Tr.includes("{")&&(dr(At.id),yo=At.value||"");try{wr(decodeURIComponent(yo||""))}catch(To){wr(decodeURIComponent(yo||""))}},[At]);const bo=()=>{ht(encodeURIComponent(Ha),ro||null)},rl=Tr=>{Tr!==ro&&(dr(Tr),ht(encodeURIComponent(Ha),Tr))};return b.createElement("div",{className:Ke()(Pe.input,Ga),style:ar},!!xt.length&&b.createElement("div",{className:Pe.dropdown},b.createElement("div",{className:Pe.text},(Xa=xt.find(Tr=>Tr.id===ro))==null?void 0:Xa.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:Pe.b1}),b.createElement("b",{className:Pe.b2})),b.createElement("div",{className:Pe.menu},xt.map((Tr,yo)=>b.createElement("div",{key:yo,onClick:()=>rl(Tr.id)},Tr.name)))),b.createElement(Fe.default,{onPressEnter:bo,value:Ha,onChange:Tr=>{wr(Tr.target.value),kn(encodeURIComponent(Tr.target.value),ro||null)},bordered:!1,placeholder:Pn}),b.createElement("i",{onClick:bo,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ut={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:At,className:ht,total:kn,pageSize:Ga,style:ar={}})=>{const Pn=xt<2,er=xt>=Math.ceil(kn/Ga);return kn<=Ga?b.createElement(b.Fragment,null):b.createElement("div",{className:Ke()(ut.quickPager,ht),style:ar},b.createElement("div",{onClick:()=>{Pn||At(xt-1,"prev")},className:Pn?ut.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{er||At(xt+1,"next")},className:er?ut.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),ft=ae(13570),dt=ae(41510),Ft=ae(21331),Pt=ae(96908),En=ae(57177),Bn=ae(81378),Qt=ae(41625),Te=({className:xt,dataSource:At=[],col:ht=4,right:kn,bottom:Ga=23,precision:ar=0,wrapWidth:Pn=1200,trackEventItems:er,loading:Xa})=>{const ro=Math.floor((Pn-(ht-1)*kn)/ht);return b.createElement($e.Z,{spinning:Xa},b.createElement("div",{className:Ke()(Ge.list,xt)},!!At.length&&At.map((dr,Ha)=>{const{name:wr,id:bo,identifier:rl,power:Tr,cover_image_id:yo,pic:To}=dr;return b.createElement("div",{className:Ge.wrap,key:bo,style:{width:ro,marginRight:(1+Ha)%ht===0?0:kn+ar,marginBottom:Ga}},b.createElement("a",{target:"_blank",href:`/shixuns/${rl}/challenges`,className:Ge.li,onClick:sa=>{sa.preventDefault(),er&&(0,Ft.L9)([er]),Tr&&(0,Ft.xg)(`/shixuns/${rl}/challenges`)}},b.createElement("div",{className:Ge.img},b.createElement("img",{className:Ge.cover,src:`${To}`}),dr.is_jupyter&&b.createElement("img",{className:Ge.sign,src:Pt}),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(ft.Z,{allowHalf:!0,disabled:!0,defaultValue:dr.score_info}),b.createElement("span",null,"\xA0",dr.score_info?`${dr.score_info}\u5206`:"5\u5206")))),!Tr&&b.createElement("div",{className:Ge.lockWrap},b.createElement("img",{src:`${dt.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")))}),!At.length&&b.createElement(Qt.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:At=[],col:ht=4,right:kn,bottom:Ga=23,precision:ar=0,wrapWidth:Pn=1200,wrapClassName:er,trackEventItems:Xa,loading:ro})=>{const dr=Math.floor((Pn-(ht-1)*kn)/ht);return b.createElement($e.Z,{spinning:ro},b.createElement("div",{className:Ke()(et.list,xt)},!!At.length&&At.map((Ha,wr)=>{const{name:bo,id:rl,identifier:Tr,power:yo,cover_image_id:To,pic:sa}=Ha;return b.createElement("div",{className:Ke()(et.wrap,er),key:rl,style:{width:dr,marginRight:(1+wr)%ht===0?0:kn+ar,marginBottom:Ga}},b.createElement("a",{target:"_blank",href:`/shixuns/${Tr}/challenges`,className:et.li,onClick:Dn=>{Dn.preventDefault(),Xa&&(0,Ft.L9)([Xa]),yo&&(0,Ft.xg)(`/shixuns/${Tr}/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:To?`${dt.Z.API_SERVER}/api/attachments/${To}`:`${dt.Z.IMG_SERVER+sa}`}),Ha.is_jupyter&&b.createElement("div",{className:et.bq},"Jupyter"),Ha.is_jupyter_lab&&b.createElement("div",{className:et.bq},"JupyterLab"),Ha.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},Ha.myshixuns_count)),b.createElement("div",null,b.createElement("span",{className:et.text},"\u56F0\u96BE\u7B49\u7EA7"),b.createElement("span",{className:et.value},Ha.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},Ha.challenges_count)),b.createElement("div",{className:et.rate},b.createElement(ft.Z,{allowHalf:!0,disabled:!0,defaultValue:Ha.score_info}),b.createElement("span",{className:et.value,style:{color:"#FF9C00"}},"\xA0",Ha.score_info?`${Ha.score_info}\u5206`:"5\u5206"))))),!yo&&b.createElement("div",{className:et.lockWrap},b.createElement("img",{src:`${dt.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")))}),!At.length&&b.createElement(Qt.Z,null)))},It=ae(50543),qt={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),rt=ae(20345),on=ae(77882),tt=ae(31081),pt=ae(75309),Xn=ae(71979),mn=ae(47558),Ut=ae(42922),kt=ae(66832),Wn=ae(96593),ia=ae(19664),nn=ae(91833);const Ba=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ce,swimg:rt},{name:"101\u8BA1\u5212",ptimg:on,swimg:tt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:pt,swimg:Xn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:mn,swimg:Ut},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:kt,swimg:Wn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:ia,swimg:nn}];var Fa=({className:xt,dataSource:At=[],col:ht=4,right:kn,bottom:Ga=23,precision:ar=0,wrapWidth:Pn=1200,trackEventItems:er,loading:Xa,wrapClassName:ro,imgClassName:dr,isArrow:Ha=!1})=>{const wr=Math.floor((Pn-(ht-1)*kn)/ht),[bo,rl]=(0,b.useState)(),[Tr,yo]=(0,b.useState)(),To=Dn=>rl(Dn),sa=()=>rl(-1);return b.createElement($e.Z,{spinning:Xa},b.createElement("div",{className:Ke()(qt.list,xt)},!!(At!=null&&At.length)&&(At==null?void 0:At.map((Dn,Hn)=>{var me;const{name:gt,id:Ct,identifier:cn,featured:vt,school_name:Ln,image_url:An,excellent:vn,is_plan:yn}=Dn;return b.createElement("div",{key:Ct,className:Ke()(qt.wrap,ro),style:{width:wr,marginRight:(1+Hn)%ht===0?0:kn+ar,marginBottom:Ga}},b.createElement("a",{target:"_blank",href:`/paths/${cn}`,className:qt.li,onClick:Ia=>{Ia.preventDefault(),er&&(0,Ft.L9)([er]),(0,Ft.xg)(`/paths/${cn}`)}},b.createElement("img",{src:ae(39057),className:qt.titleBg}),b.createElement("div",{className:qt.name},b.createElement(be.Z,{title:gt},b.createElement("span",{className:qt.e,style:{color:Ha&&bo===Hn?"#145DFF":"#000000"},onMouseEnter:()=>{To(Hn)},onMouseLeave:sa},gt))),b.createElement("div",{style:{padding:"14px",paddingBottom:0}},b.createElement("div",{className:Ke()(qt.img,dr)},b.createElement("img",{className:qt.cover,src:`${dt.Z.IMG_SERVER+An}`}),(me=Dn==null?void 0:Dn.subject_tags)==null?void 0:me.map((Ia,cr)=>{var Fr,ma;if(cr===0){const rr=(Fr=Ba.find(Er=>Er.name==Ia))==null?void 0:Fr.swimg;return b.createElement("img",{className:qt.sign,src:rr,style:{left:"-4px"}})}const va=(ma=Ba.find(rr=>rr.name==Ia))==null?void 0:ma.ptimg;return b.createElement("img",{className:qt.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:qt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),b.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:qt.text},"\u7AE0\u8282\u6570"),b.createElement("span",{className:qt.value},Dn.stages_count)),b.createElement("div",null,b.createElement("span",{className:qt.text},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:qt.value},Dn.members_count))))))})),!At.length&&b.createElement(Qt.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"},za="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xg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OrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Aa=ae(59301),ua=({className:xt,dataSource:At=[],col:ht=4,right:kn,bottom:Ga=23,precision:ar=0,wrapWidth:Pn=1200,trackEventItems:er,loading:Xa})=>{const ro=Math.floor((Pn-(ht-1)*kn)/ht);return Aa.createElement($e.Z,{spinning:Xa},Aa.createElement("div",{className:Ke()(jn.list,xt)},!!At.length&&At.map((dr,Ha)=>{const{subject_identifier:wr,id:bo,identifier:rl,power:Tr}=dr,yo=dr.is_public!=0&&dr.is_public;return Aa.createElement("div",{className:jn.wrap,key:bo,style:{width:ro,marginRight:(1+Ha)%ht===0?0:kn+ar,marginBottom:Ga}},Aa.createElement("a",{className:jn.li,onClick:To=>{To.preventDefault(),er&&(0,Ft.L9)([er]),(0,Ft.xg)(dr.first_category_url)}},Aa.createElement("div",{className:jn.top},Aa.createElement(be.Z,{title:dr.name},Aa.createElement("div",{className:jn.name},dr.name)),Aa.createElement("img",{className:jn.img,src:dt.Z.IMG_SERVER+"/images/"+dr.avatar_url}),Aa.createElement("div",{className:jn.text,title:dr.creator},dr.creator),wr&&Aa.createElement("div",{className:jn.btns},Aa.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Aa.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),yo&&Aa.createElement("div",{className:jn.sign},"\u516C\u5F00")),Aa.createElement("div",{className:jn.bottom},dr.visits>0&&Aa.createElement(be.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Aa.createElement("span",null,Aa.createElement("i",{className:"iconfont icon-liulanyan"}),Aa.createElement("span",null,dr.visits))),dr.course_members_count>0&&Aa.createElement(be.Z,{title:"\u6210\u5458",placement:"bottom"},Aa.createElement("span",null,Aa.createElement("i",{className:"iconfont icon-chengyuan"}),dr.course_members_count)),dr.tasks_count>0&&Aa.createElement(be.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Aa.createElement("span",null,Aa.createElement("i",{className:"iconfont icon-zuoye"}),dr.tasks_count)),dr.is_end?Aa.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Aa.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!dr.is_accessible&&Aa.createElement("div",{className:jn.lockWrap},Aa.createElement("img",{src:`${dt.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Aa.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!At.length&&Aa.createElement(Qt.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/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldkkYmYmb+eSkT+lIjOLOcYlm2BBcx8sfoJz+O/BHhkOSe5evqiaaXoTxIx55tExMsxrmUBOJ/njVVUvgvmW5djUqu+D6JHHbgfTSRostdj7TnAuWLlDq/K37pwqXYxCGlaOf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YlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",xa=({className:xt,dataSource:At=[],col:ht=4,right:kn,bottom:Ga=23,precision:ar=0,wrapWidth:Pn=1200,wrapClassName:er,trackEventItems:Xa,loading:ro})=>{const dr=Math.floor((Pn-(ht-1)*kn)/ht);return b.createElement($e.Z,{spinning:ro},b.createElement("div",{className:Ke()(Zn.list,xt)},!!At.length&&At.map((Ha,wr)=>{const{subject_identifier:bo,id:rl,identifier:Tr,power:yo}=Ha,To=Ha.is_public!=0&&Ha.is_public;return b.createElement("div",{className:Ke()(`${Zn.wrap} ${Ha.is_accessible?"":Zn.warpStyle}`,er),key:rl,style:{width:dr,marginRight:(1+wr)%ht===0?0:kn+ar,marginBottom:Ga}},b.createElement("a",{className:Zn.li,onClick:sa=>{sa.preventDefault(),Xa&&(0,Ft.L9)([Xa]),(0,Ft.xg)(Ha.first_category_url)}},b.createElement("div",{className:Zn.creator},b.createElement("img",{className:Zn.img,src:dt.Z.IMG_SERVER+"/images/"+Ha.avatar_url}),b.createElement("div",{className:Zn.text,title:Ha.creator},Ha.creator)),b.createElement("div",{className:Zn.top},b.createElement(be.Z,{title:Ha.name},b.createElement("div",{className:Zn.name},Ha.name)),To&&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},(Ha==null?void 0:Ha.visits)||0)),b.createElement("div",null,b.createElement("span",{className:Zn.text},"\u6210\u5458"),b.createElement("span",{className:Zn.value},(Ha==null?void 0:Ha.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},(Ha==null?void 0:Ha.tasks_count)||0)),b.createElement("div",null,b.createElement("span",{className:Zn.text},"\u72B6\u6001"),Ha.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"))),!Ha.is_accessible&&b.createElement("div",{className:Zn.lockWrap},b.createElement("img",{src:`${dt.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")))}),!At.length&&b.createElement(Qt.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(6075),Et=({dataSource:xt=[],value:At,onChange:ht,className:kn,style:Ga={},tabBarExtraContent:ar})=>b.createElement("div",{className:Ke()(_a.tabs,kn),style:Ga},b.createElement("div",{className:_a.tabsWrap},xt.map((Pn,er)=>b.createElement("aside",{className:_a.tab,onClick:()=>{ht(Pn.id),Pn.link&&Sn.history.push(Pn.link)},key:er},b.createElement("div",{className:At===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},ar)),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:At,onChange:ht,className:kn,style:Ga={},tabBarExtraContent:ar})=>b.createElement("div",{className:Ke()(Tt.tabs,kn),style:Ga},b.createElement("div",{className:Tt.tabsWrap},xt.map((Pn,er)=>b.createElement("aside",{className:Tt.tab,onClick:()=>{ht(Pn.id),Pn.link&&Sn.history.push(Pn.link)},key:er},b.createElement("div",{className:At===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},ar)),Da=({className:xt,style:At={},children:ht})=>b.createElement("div",{className:Ke()(xt),style:At},ht),Ra={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),nr=ae(20834);const Rr=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Yt=({sortValue:xt,dropValue:At,className:ht,onSort:kn,onDrop:Ga,dataSource:ar=Rr})=>{var Pn;return b.createElement("div",{className:Ke()(Ra.orderWrap,ht)},b.createElement(Br.Z,{dropdownRender:()=>b.createElement(nr.default,null,ar.map((er,Xa)=>b.createElement(nr.default.Item,{key:Xa,onClick:()=>Ga(er.id)},er.name)))},b.createElement("span",{className:Ra.orderTextWrap},(Pn=ar.find(er=>At===er.id))==null?void 0:Pn.name)),b.createElement("span",{className:Ra.orderIconWrap},b.createElement("span",{className:Ra.orderAsc},b.createElement("i",{className:xt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ra.cursorPointer} ${Ra.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ra.cursorPointer}`,onClick:()=>kn(xt==="asc"?"desc":"asc")})),b.createElement("span",{className:Ra.orderDesc},b.createElement("i",{className:xt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ra.cursorPointer} ${Ra.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ra.cursorPointer}`,onClick:()=>kn(xt==="asc"?"desc":"asc")}))))},Yn={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"},ea=ae(3113),ba=ae(95051),Ze=Object.defineProperty,Mt=Object.getOwnPropertySymbols,en=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,Rt=(xt,At,ht)=>At in xt?Ze(xt,At,{enumerable:!0,configurable:!0,writable:!0,value:ht}):xt[At]=ht,Qn=(xt,At)=>{for(var ht in At||(At={}))en.call(At,ht)&&Rt(xt,ht,At[ht]);if(Mt)for(var ht of Mt(At))pn.call(At,ht)&&Rt(xt,ht,At[ht]);return xt},_n=(xt,At)=>{var ht={};for(var kn in xt)en.call(xt,kn)&&At.indexOf(kn)<0&&(ht[kn]=xt[kn]);if(xt!=null&&Mt)for(var kn of Mt(xt))At.indexOf(kn)<0&&pn.call(xt,kn)&&(ht[kn]=xt[kn]);return ht},Je=(xt,At,ht)=>new Promise((kn,Ga)=>{var ar=Xa=>{try{er(ht.next(Xa))}catch(ro){Ga(ro)}},Pn=Xa=>{try{er(ht.throw(Xa))}catch(ro){Ga(ro)}},er=Xa=>Xa.done?kn(Xa.value):Promise.resolve(Xa.value).then(ar,Pn);er((ht=ht.apply(xt,At)).next())}),Xe=xt=>{var At=xt,{className:ht,style:kn,children:Ga,loading:ar=!1,openLoading:Pn,onClick:er=()=>{},size:Xa="middle",shape:ro="round",theme:dr}=At,Ha=_n(At,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[wr,bo]=(0,b.useState)(!1),rl=(0,b.useMemo)(()=>{switch(dr){case ba.Fy.THEMEONE:return Yn.ThemeOne;case ba.Fy.DEFAULT:default:return Yn.btn}},[dr]);return b.createElement(ea.ZP,Qn({onClick:(0,Oe.throttle)(Tr=>Je(void 0,null,function*(){Pn&&bo(!0);try{yield er(Tr)}catch(yo){console.log("error",yo)}Pn&&bo(!1)}),2e3,{leading:!0,trailing:!1}),className:Ke()(rl,Yn[`${Xa}-${ro}`],ht),style:kn,size:Xa,shape:ro,loading:wr||ar},Ha),Ga)},ln={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:At,children:ht=null,onClick:kn,title:Ga})=>b.createElement("div",{className:Ke()(ln.head,xt),style:At},b.createElement("span",{className:"primary-hover",onClick:kn},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:Ga},Ga),b.createElement("div",{className:ln.node},ht)),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"},na=({confirmShow:xt=!0,confirmTitle:At,confirmClick:ht,cancelShow:kn=!0,cancelTitle:Ga,cancelClick:ar,className:Pn,style:er,confirmLoading:Xa=!1})=>b.createElement("div",{className:Ke()(wa.btns,Pn),style:er},xt&&b.createElement(ea.ZP,{loading:Xa,onClick:ht,type:"primary",className:wa.confirm},At),kn&&b.createElement(ea.ZP,{onClick:ar,className:wa.cancel},Ga)),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:At={},LeftContent:ht,children:kn,RightContent:Ga})=>b.createElement("div",{className:Ke()(ya.fixedBottom,xt),style:At},b.createElement("div",{className:ya.wrap},b.createElement("div",{className:ya.left},ht),b.createElement("div",{className:ya.center},kn),b.createElement("div",{className:ya.right},Ga))),Ma={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"},So=({className:xt,style:At={},dataSource:ht=[]})=>b.createElement("div",{className:Ke()(Ma.crumbs,xt),style:At},ht.map((kn,Ga)=>GaSn.history.push(kn.path)},kn.name):b.createElement("span",null,kn.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:Ga,style:{color:"#5F6368"}},kn.name))),$a=ae(31797),Gt=Object.defineProperty,qr=Object.defineProperties,Ua=Object.getOwnPropertyDescriptors,Sr=Object.getOwnPropertySymbols,ir=Object.prototype.hasOwnProperty,Wr=Object.prototype.propertyIsEnumerable,Dr=(xt,At,ht)=>At in xt?Gt(xt,At,{enumerable:!0,configurable:!0,writable:!0,value:ht}):xt[At]=ht,ao=(xt,At)=>{for(var ht in At||(At={}))ir.call(At,ht)&&Dr(xt,ht,At[ht]);if(Sr)for(var ht of Sr(At))Wr.call(At,ht)&&Dr(xt,ht,At[ht]);return xt},kr=(xt,At)=>qr(xt,Ua(At)),ca=(xt,At)=>{var ht={};for(var kn in xt)ir.call(xt,kn)&&At.indexOf(kn)<0&&(ht[kn]=xt[kn]);if(xt!=null&&Sr)for(var kn of Sr(xt))At.indexOf(kn)<0&&Wr.call(xt,kn)&&(ht[kn]=xt[kn]);return ht};const{Countdown:an}=$a.default;var ga=xt=>{var At=xt,{onChange:ht}=At,kn=ca(At,["onChange"]);const[Ga,ar]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof Ga=="number"&&Ga>=0&&ht(Ga)},[Ga]);const Pn=er=>{const Xa=Math.floor(er/1e3);ar(Xa)};return b.createElement(an,kr(ao({},kn),{onChange:Pn}))},ur={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},hn=({DataProps:xt,className:At,style:ht={}})=>{var kn;return b.createElement("div",{className:Ke()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",ur.ClassRoomItem,At),style:ht,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:`${(kn=dt.Z)==null?void 0:kn.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"))))},aa=Object.defineProperty,La=Object.getOwnPropertySymbols,Jn=Object.prototype.hasOwnProperty,sr=Object.prototype.propertyIsEnumerable,tr=(xt,At,ht)=>At in xt?aa(xt,At,{enumerable:!0,configurable:!0,writable:!0,value:ht}):xt[At]=ht,Ar=(xt,At)=>{for(var ht in At||(At={}))Jn.call(At,ht)&&tr(xt,ht,At[ht]);if(La)for(var ht of La(At))sr.call(At,ht)&&tr(xt,ht,At[ht]);return xt},mr=({DataProps:xt=[],selectValue:At,onChange:ht,className:kn,style:Ga={},extra:ar,classNameItem:Pn,styleItem:er={},barHidden:Xa})=>{const[ro,dr]=(0,b.useState)();return(0,b.useEffect)(()=>{dr(Array.isArray(At)?At:[At])},[At]),b.createElement("div",{className:Ke()("flex px-20px py-10px gap-40px",kn),style:Ar({borderBottom:"1px solid #D3F0FF"},Ga)},xt==null?void 0:xt.map(Ha=>b.createElement("div",{key:Ha==null?void 0:Ha.id,className:Ke()("flex item-center justify-center current c-grey-333 text-16 relative",Pn,Ha==null?void 0:Ha.className),style:Ar(Ar({color:ro!=null&&ro.includes(Ha==null?void 0:Ha.id)?"#1890FF":"",minWidth:88},er),(Ha==null?void 0:Ha.style)||{}),onClick:wr=>{ht==null||ht({domEvent:wr,item:Ha}),Ha!=null&&Ha.link&&Sn.history.push(Ha==null?void 0:Ha.link)}},Ha==null?void 0:Ha.name,!Xa&&(ro==null?void 0:ro.includes(Ha==null?void 0:Ha.id))&&b.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),b.createElement("div",{className:"ml-auto"},ar))},_o=Object.defineProperty,Ro=Object.defineProperties,Fl=Object.getOwnPropertyDescriptors,xr=Object.getOwnPropertySymbols,Nr=Object.prototype.hasOwnProperty,Ao=Object.prototype.propertyIsEnumerable,Ja=(xt,At,ht)=>At in xt?_o(xt,At,{enumerable:!0,configurable:!0,writable:!0,value:ht}):xt[At]=ht,Qr=(xt,At)=>{for(var ht in At||(At={}))Nr.call(At,ht)&&Ja(xt,ht,At[ht]);if(xr)for(var ht of xr(At))Ao.call(At,ht)&&Ja(xt,ht,At[ht]);return xt},eo=(xt,At)=>Ro(xt,Fl(At)),to=({value:xt,onChange:At,onInputChange:ht,className:kn,style:Ga={},InputProps:ar})=>{const[Pn,er]=(0,b.useState)(xt);return b.createElement("div",{className:Ke()("flex item-center rounded-full px-10px py-2px",kn),style:Qr({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},Ga)},b.createElement(Fe.default,eo(Qr({bordered:!1},ar),{onChange:Xa=>{er(Xa.target.value),ht==null||ht(encodeURIComponent(Xa.target.value))},onPressEnter:Xa=>{At==null||At({domEvent:Xa,item:{value:Pn}})}})),b.createElement("img",{className:"h-22px current",src:ae(25365),height:22,onClick:Xa=>{At==null||At({domEvent:Xa,item:{value:Pn}})}}))}},34500:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return Ee}});var b=ae(59301);function Ee(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])}},29849:function(ot,jt,ae){"use strict";ae.r(jt),ae.d(jt,{default:function(){return gu}});var b=ae(59301),Ee=ae(6075),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=(ie,Se,he)=>new Promise((ct,bt)=>{var Un=it=>{try{Jt(he.next(it))}catch(tn){bt(tn)}},bn=it=>{try{Jt(he.throw(it))}catch(tn){bt(tn)}},Jt=it=>it.done?ct(it.value):Promise.resolve(it.value).then(Un,bn);Jt((he=he.apply(ie,Se)).next())});const y=({user:ie,dispatch:Se,classroomList:he,onModalOk:ct,setsubloading:bt})=>{const Un=(0,Ee.useParams)(),[bn,Jt]=(0,b.useState)(),[it,tn]=(0,b.useState)(!1);function In(Ht){return Ht&&Ht{tn(!1)},zIndex:8888,destroyOnClose:!0,footer:null,maskClosable:!1,keyboard:!1,open:he.actionTabs.key==="\u9884\u7EA6\u5F39\u7A97",onCancel:()=>{if(it){Be.ZP.warning("\u6B63\u5728\u8BF7\u6C42\u6570\u636E\u4E2D...");return}bt(!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:In,format:"YYYY-MM-DD HH:mm:ss",onChange:(Ht,Ot)=>{Jt(Ot)},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:it,type:"primary",onClick:()=>x(void 0,null,function*(){tn(!0),ct(bn,()=>{Se({type:"classroomList/setActionTabs",payload:{}})})})},"\u786E\u8BA4"))))};var z=(0,Ee.connect)(({user:ie,classroomList:Se})=>({user:ie,classroomList:Se}))(y),te=ae(23789),oe=ae(32134),se=ae(12893),le={wrap:"wrap___Ww0Ti",itemWarp:"itemWarp___LMLjd",addIcon:"addIcon___xmRLl",deleteIcon:"deleteIcon___gjwgO"},Pe=ae(57809),Fe=Object.defineProperty,Qe=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,Me=(ie,Se,he)=>Se in ie?Fe(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Ye=(ie,Se)=>{for(var he in Se||(Se={}))Le.call(Se,he)&&Me(ie,he,Se[he]);if(Qe)for(var he of Qe(Se))ut.call(Se,he)&&Me(ie,he,Se[he]);return ie},Ge=(ie,Se,he)=>new Promise((ct,bt)=>{var Un=it=>{try{Jt(he.next(it))}catch(tn){bt(tn)}},bn=it=>{try{Jt(he.throw(it))}catch(tn){bt(tn)}},Jt=it=>it.done?ct(it.value):Promise.resolve(it.value).then(Un,bn);Jt((he=he.apply(ie,Se)).next())}),be=({setitem:ie,item:Se,rz:he})=>{var ct,bt,Un,bn,Jt,it,tn,In;let[Ht,Ot]=(0,b.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const[mt]=we.default.useForm(),[Dt,yt]=(0,b.useState)(!1);(0,b.useEffect)(()=>{he&&!Dt&&(Ht.zydatas=he,Ot(Ye({},Ht)),yt(!0),Se!=null&&Se.ec_course_id&&Bt())},[Se,he,Dt]),console.log(Ht,"params");function Bt(){return Ge(this,null,function*(){yield Xt(Se==null?void 0:Se.ec_major_school_id),yield $t(Se==null?void 0:Se.ec_year_id),yield wn(Se==null?void 0:Se.ec_course_id),mt.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 Xt(un){return Ge(this,null,function*(){const Wt=yield(0,te.ZP)(`/api/ec_major_schools/${un}/ec_years/get_year_list.json`,{method:"get"});Ht.jbdatas=Wt==null?void 0:Wt.data,Ot(Ye({},Ht)),mt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function $t(un){return Ge(this,null,function*(){const Wt=yield(0,te.ZP)(`/api/ec_years/${un}/ec_courses/get_courses.json`,{method:"get"});Ht.kcdatas=Wt==null?void 0:Wt.data,Ot(Ye({},Ht)),mt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const wn=un=>Ge(void 0,null,function*(){const Wt=yield(0,te.ZP)(`/api/ec_courses/${un}/ec_points.json`,{method:"get",params:{ec_course_id:un}});Ht.zsdatas=Wt==null?void 0:Wt.data,Ot(Ye({},Ht))});return b.createElement("div",{className:le.from},b.createElement(we.default,{form:mt,layout:"inline",onValuesChange:un=>{console.log("----",un),un.ec_major_school_id&&(Ht.jbdatas=[],Ht.kcdatas=[],Ht.zsdatas=[],Ot(Ye({},Ht)),Xt(un.ec_major_school_id)),un.ec_year_id&&(Ht.kcdatas=[],Ht.zsdatas=[],Ot(Ye({},Ht)),$t(un.ec_year_id)),un.ec_course_id&&(Ht.zsdatas=[],Ot(Ye({},Ht)),wn(un.ec_course_id))},onFinish:un=>Ge(void 0,null,function*(){ie(un)})},b.createElement(we.default.Item,{name:"ec_major_school_id"},b.createElement(Pe.default,{style:{width:160},disabled:((ct=Ht.zydatas)==null?void 0:ct.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(bt=Ht==null?void 0:Ht.zydatas)==null?void 0:bt.map((un,Wt)=>b.createElement(Pe.default.Option,{key:Wt,value:un==null?void 0:un.ec_major_school_id},un==null?void 0:un.name)))),b.createElement(we.default.Item,{name:"ec_year_id"},b.createElement(Pe.default,{style:{width:160},disabled:((Un=Ht.jbdatas)==null?void 0:Un.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(bn=Ht==null?void 0:Ht.jbdatas)==null?void 0:bn.map((un,Wt)=>b.createElement(Pe.default.Option,{key:Wt,value:un==null?void 0:un.ec_year_id},un==null?void 0:un.year)))),b.createElement(we.default.Item,{name:"ec_course_id"},b.createElement(Pe.default,{style:{width:208},disabled:((Jt=Ht.kcdatas)==null?void 0:Jt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(it=Ht==null?void 0:Ht.kcdatas)==null?void 0:it.map((un,Wt)=>b.createElement(Pe.default.Option,{key:Wt,value:un==null?void 0:un.id},un==null?void 0:un.name)))),b.createElement(we.default.Item,{name:"ec_point_ids"},b.createElement(Pe.default,{onChange:()=>{mt.submit()},style:{width:160},maxTagCount:1,maxTagTextLength:7,mode:"multiple",disabled:((tn=Ht.zsdatas)==null?void 0:tn.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(In=Ht==null?void 0:Ht.zsdatas)==null?void 0:In.map((un,Wt)=>b.createElement(Pe.default.Option,{key:Wt,value:un==null?void 0:un.id},un==null?void 0:un.name))))))},ft=Object.defineProperty,dt=Object.defineProperties,Ft=Object.getOwnPropertyDescriptors,Pt=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,Qt=(ie,Se,he)=>Se in ie?ft(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,St=(ie,Se)=>{for(var he in Se||(Se={}))En.call(Se,he)&&Qt(ie,he,Se[he]);if(Pt)for(var he of Pt(Se))Bn.call(Se,he)&&Qt(ie,he,Se[he]);return ie},Te=(ie,Se)=>dt(ie,Ft(Se)),et=(ie,Se,he)=>new Promise((ct,bt)=>{var Un=it=>{try{Jt(he.next(it))}catch(tn){bt(tn)}},bn=it=>{try{Jt(he.throw(it))}catch(tn){bt(tn)}},Jt=it=>it.done?ct(it.value):Promise.resolve(it.value).then(Un,bn);Jt((he=he.apply(ie,Se)).next())});const _t=({user:ie,exercise_id:Se=null,homework_common_id:he=null,setitem:ct})=>{var bt,Un,bn;let[Jt,it]=(0,b.useState)([{id:Math.random()}]),[tn,In]=(0,b.useState)(null);function Ht(){return et(this,null,function*(){var mt,Dt,yt,Bt;let Xt=yield(0,te.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:Se,homework_common_id:he}});if(((mt=Xt==null?void 0:Xt.data)==null?void 0:mt.length)>0){let $t=[];(Dt=Xt==null?void 0:Xt.data)==null||Dt.map(wn=>{var un;(un=wn==null?void 0:wn.ec_point_ids)==null||un.map(Wt=>{$t.push(Wt)})}),ct(Te(St({},(yt=Xt==null?void 0:Xt.data)==null?void 0:yt[0]),{ec_point_ids:$t})),it((Bt=Xt==null?void 0:Xt.data)==null?void 0:Bt.map(wn=>Te(St({},wn),{id:Math.random()})))}})}(0,b.useEffect)(()=>{var mt,Dt;(Dt=(mt=ie==null?void 0:ie.userInfo)==null?void 0:mt.course)!=null&&Dt.course_school_id&&Ot()},[(Un=(bt=ie==null?void 0:ie.userInfo)==null?void 0:bt.course)==null?void 0:Un.course_school_id]);function Ot(){return et(this,null,function*(){var mt,Dt;const yt=yield(0,te.ZP)(`/api/schools/${(Dt=(mt=ie==null?void 0:ie.userInfo)==null?void 0:mt.course)==null?void 0:Dt.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});In(yt==null?void 0:yt.data),(he||Se)&&Ht()})}return console.log(Jt,tn,"datas"),b.createElement("div",{style:{display:(bn=ie.userInfo.course)!=null&&bn.is_openengineering?"":"none"}},b.createElement("div",{className:le.wrap},b.createElement("p",null,"\u5DE5\u7A0B\u8BA4\u8BC1",b.createElement("br",null),"\u8003\u6838\u77E5\u8BC6\u70B9"),b.createElement("div",{className:le.itemWarp},Jt==null?void 0:Jt.map((mt,Dt)=>b.createElement("div",{key:mt.id,style:{display:"flex",alignItems:"center",marginBottom:20}},b.createElement(be,{rz:tn,item:mt,setitem:yt=>{yt=St(St({},Jt==null?void 0:Jt[Dt]),yt),Jt.splice(Dt,1,yt),it([...Jt]);let Bt=[];Jt==null||Jt.map(Xt=>{var $t;($t=Xt==null?void 0:Xt.ec_point_ids)==null||$t.map(wn=>{Bt.push(wn)})}),ct(Te(St({},yt),{ec_point_ids:Bt}))}}),b.createElement(oe.Z,{className:le.addIcon,onClick:()=>{Jt.push({id:Math.random()}),it([...Jt])}}),Dt!=0&&b.createElement(se.Z,{className:le.deleteIcon,onClick:()=>{Jt.splice(Dt,1);let yt=[];Jt==null||Jt.map(Bt=>{var Xt;(Xt=Bt==null?void 0:Bt.ec_point_ids)==null||Xt.map($t=>{yt.push($t)})}),ct(Te(St({},Jt[Dt-1]),{ec_point_ids:yt})),it([...Jt])}}))))))};var xn=(0,Ee.connect)(({user:ie})=>({user:ie}))(_t),It=ae(20834),qt=ae(71418),Ce=ae(38854),rt=ae(6848),on=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"},pt=ae(21331),Xn=ae(41625),mn=ae(98524),Ut=ae(43141),kt=ae(28900),Wn=ae(59301),ia=Object.defineProperty,nn=Object.defineProperties,Ba=Object.getOwnPropertyDescriptors,Ka=Object.getOwnPropertySymbols,Fa=Object.prototype.hasOwnProperty,jn=Object.prototype.propertyIsEnumerable,za=(ie,Se,he)=>Se in ie?ia(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Aa=(ie,Se)=>{for(var he in Se||(Se={}))Fa.call(Se,he)&&za(ie,he,Se[he]);if(Ka)for(var he of Ka(Se))jn.call(Se,he)&&za(ie,he,Se[he]);return ie},fr=(ie,Se)=>nn(ie,Ba(Se)),ua=(ie,Se,he)=>new Promise((ct,bt)=>{var Un=it=>{try{Jt(he.next(it))}catch(tn){bt(tn)}},bn=it=>{try{Jt(he.throw(it))}catch(tn){bt(tn)}},Jt=it=>it.done?ct(it.value):Promise.resolve(it.value).then(Un,bn);Jt((he=he.apply(ie,Se)).next())}),da=({Itemid:ie,setqitem:Se,qitem:he,data:ct,getdata:bt,bigitem:Un,setBigqitem:bn,isedit:Jt,handleEditing:it})=>{const[tn,In]=(0,b.useState)([]),[Ht,Ot]=(0,b.useState)(!1),mt=(yt,Bt,Xt)=>{const $t=Array.from(yt),[wn]=$t.splice(Bt,1);return $t.splice(Xt,0,wn),$t};(0,b.useEffect)(()=>{ct.length>0&&In([...ct])},[ct]);const Dt=(yt,Bt)=>ua(void 0,null,function*(){if(!yt.destination)return;if(Jt){it();return}const Xt=mt(Bt,yt.source.index,yt.destination.index);Ot(!0);let $t=yield(0,te.ZP)(`/api/exercises/${ie}/adjust_position.json`,{method:"post",body:{id:ie,question_ids:Xt==null?void 0:Xt.map(wn=>wn.question_id)}});Ot(!1),$t.status===0&&bt({id:Bt==null?void 0:Bt[yt.source.index].question_id})});return Wn.createElement("div",null,Wn.createElement(Ut.Z5,{onDragEnd:yt=>Dt(yt,tn)},Wn.createElement(Ut.bK,{droppableId:"droppable"},(yt,Bt)=>Wn.createElement("div",Aa({ref:yt.innerRef},yt.droppableProps),Wn.createElement(qt.Z,{spinning:Ht},tn.map((Xt,$t)=>Wn.createElement(Ut._l,{key:$t,draggableId:$t.toString(),index:$t},(wn,un)=>{var Wt,Ir;return Wn.createElement("aside",Aa(Aa({ref:wn.innerRef},wn.draggableProps),wn.dragHandleProps),Wn.createElement(rt.Z,{title:Wn.createElement(kt.Z,{value:(Xt==null?void 0:Xt.question_type)===8?(Wt=Xt==null?void 0:Xt.program_attr)==null?void 0:Wt.description:Xt.question_title}),color:"#fff",placement:"left",overlayClassName:tt.titleTooltip},Wn.createElement("div",{onClick:()=>{if(Jt){it();return}Se(fr(Aa({},Xt),{index:$t+1})),bn(Un),(0,pt.Vf)("#question-scroll-id")},className:`${tt.qcount} ${Xt.question_id===(he==null?void 0:he.question_id)?tt.qcountclick:""}`},Wn.createElement("span",{className:tt.score},Xt==null?void 0:Xt.question_score,"\u5206"),Wn.createElement("span",{className:tt.qtitle},$t+1,"\u3001",Wn.createElement(kt.Z,{value:(Xt==null?void 0:Xt.question_type)===8?(Ir=Xt==null?void 0:Xt.program_attr)==null?void 0:Ir.description:Xt.question_title,showTextOnly:!0})))))}))),yt.placeholder))))},Ea=ae(95237),xa=ae(80815),_a=ae(78673),Sn=ae(61485),sn=ae(74038),Et=ae(59301),Tt=(ie,Se,he)=>new Promise((ct,bt)=>{var Un=it=>{try{Jt(he.next(it))}catch(tn){bt(tn)}},bn=it=>{try{Jt(he.throw(it))}catch(tn){bt(tn)}},Jt=it=>it.done?ct(it.value):Promise.resolve(it.value).then(Un,bn);Jt((he=he.apply(ie,Se)).next())}),Ca=({form:ie,TagDiscipline:Se,exerciseitem:he,qitem:ct,getTagData:bt})=>{var Un;const[bn,Jt]=(0,b.useState)(!0),[it,tn]=(0,b.useState)(!1),[In,Ht]=(0,b.useState)(""),[Ot,mt]=(0,b.useState)([]),[Dt,yt]=(0,b.useState)([]),[Bt,Xt]=(0,b.useState)(0);(0,b.useEffect)(()=>{wn()},[]);const $t=un=>Tt(void 0,null,function*(){const Wt=yield(0,te.ZP)("/api/tag_disciplines.json",{method:"get",params:{sub_discipline_id:un==null?void 0:un.sub_discipline_id}});yt(Wt==null?void 0:Wt.tag_disciplines)}),wn=()=>Tt(void 0,null,function*(){const un=yield(0,te.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});mt(un.disciplines||[]),ct!=null&&ct.sub_discipline_id&&$t(ct),Xt(ct!=null&&ct.sub_discipline_id?1:0),ie.setFieldsValue({difficulty:ct.difficulty||2,tag_discipline_ids:ct.tag_discipline_ids,repeat_answer:!ct.repeat_answer,sub_discipline_id:ct!=null&&ct.sub_discipline_id?[ct==null?void 0:ct.discipline_id,ct==null?void 0:ct.sub_discipline_id]:[]})});return Et.createElement("div",null,Et.createElement("div",{style:{marginTop:30,height:bn?"100%":"0px",overflow:"hidden"}},Et.createElement(we.default.Item,{className:tt.formcenter,rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u96BE\u5EA6"}],label:"\u96BE\u5EA6",name:"difficulty"},Et.createElement(Oe.ZP.Group,{className:tt.radiogroup},Et.createElement(Oe.ZP.Button,{className:tt.easy,value:1},"\u7B80\u5355"),Et.createElement(Oe.ZP.Button,{className:tt.medium,value:2},"\u9002\u4E2D"),Et.createElement(Oe.ZP.Button,{className:tt.hard,value:3},"\u56F0\u96BE"))),Et.createElement(we.default.Item,{name:"sub_discipline_id",label:"\u77E5\u8BC6\u70B9",className:tt.formcenterselect},Et.createElement(xe.Z,{className:tt.selectitems1,expandTrigger:"hover",placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:Ot,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(un,Wt)=>{ie.setFieldsValue({sub_discipline_id:un,tag_discipline_ids:[]}),Xt(un?un.length:0),(un==null?void 0:un.length)>0&&($t({sub_discipline_id:un[1]}),un[1]==(ct==null?void 0:ct.sub_discipline_id)&&ie.setFieldValue("tag_discipline_ids",ct.tag_discipline_ids))},onClear:()=>{yt([]),ie.setFieldValue("tag_discipline_ids",[]),Xt(0)}})),Et.createElement(we.default.Item,{className:tt.formcenterselect},Et.createElement("div",{style:{display:"flex",alignItems:"center",paddingLeft:55}},Et.createElement(we.default.Item,{name:"tag_discipline_ids"},Et.createElement(Pe.default,{className:tt.selectitems,disabled:Bt===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:(un,Wt)=>Wt.key.indexOf(un.toLowerCase())>=0},Dt==null?void 0:Dt.map(un=>Et.createElement(Pe.default.Option,{key:un.name+un.id,value:un.id},Et.createElement("div",{style:{display:"flex",alignItems:"center"}},Et.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},un.name),(un==null?void 0:un.type)==="personal"&&Et.createElement("div",{style:{marginLeft:"5px",border:"1px solid #24C074",color:"#24C074",padding:"0 4px",borderRadius:"2px",fontSize:"12px",height:"20px",lineHeight:"20px"}},"\u81EA\u7528")))))),Bt>0&&Et.createElement("div",{style:{marginLeft:20,marginTop:"-16px",lineHeight:"48px",height:48,fontSize:14}},Et.createElement("span",null,"\u6CA1\u6709\u5408\u9002\u7684\u77E5\u8BC6\u70B9\uFF1F"),Et.createElement("a",{onClick:()=>{tn(!0)},style:{marginLeft:3,color:"#3061D0"}},"\u65B0\u5EFA\u77E5\u8BC6\u70B9")))),Et.createElement(we.default.Item,{className:tt.formcenterselect},Et.createElement("div",{style:{display:"flex",alignItems:"center"}},Et.createElement(we.default.Item,{name:"repeat_answer",valuePropName:"checked"},Et.createElement(_a.Z,null)),Et.createElement("div",{style:{marginLeft:10,marginTop:"-16px",lineHeight:"48px",height:48,color:"#000000"}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898",Et.createElement(rt.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"},Et.createElement(Sn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))))),Et.createElement(sn.Z,{open:it,subDisciplineId:(Un=ie.getFieldValue("sub_discipline_id"))==null?void 0:Un[1],onCancel:()=>{tn(!1)},onOkClick:un=>{yt(Wt=>[...Wt,un]),ie.setFieldValue("tag_discipline_ids",[...ie.getFieldValue("tag_discipline_ids"),un==null?void 0:un.id])}}))},Wa=ae(59301),Da=Object.defineProperty,Ra=Object.defineProperties,Br=Object.getOwnPropertyDescriptors,nr=Object.getOwnPropertySymbols,Rr=Object.prototype.hasOwnProperty,Mo=Object.prototype.propertyIsEnumerable,Yt=(ie,Se,he)=>Se in ie?Da(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Yn=(ie,Se)=>{for(var he in Se||(Se={}))Rr.call(Se,he)&&Yt(ie,he,Se[he]);if(nr)for(var he of nr(Se))Mo.call(Se,he)&&Yt(ie,he,Se[he]);return ie},ea=(ie,Se)=>Ra(ie,Br(Se)),ba=(ie,Se,he)=>new Promise((ct,bt)=>{var Un=it=>{try{Jt(he.next(it))}catch(tn){bt(tn)}},bn=it=>{try{Jt(he.throw(it))}catch(tn){bt(tn)}},Jt=it=>it.done?ct(it.value):Promise.resolve(it.value).then(Un,bn);Jt((he=he.apply(ie,Se)).next())}),Mt=({qitem:ie,setisedit:Se,TagDiscipline:he,exerciseitem:ct,seveeditor:bt,deleteitem:Un,getTagData:bn,init:Jt,showTip:it=!1})=>{var tn;const[In]=we.default.useForm();(0,b.useEffect)(()=>{var Ot;In.setFieldsValue(ea(Yn({},ie),{name:ie==null?void 0:ie.question_title,choices:(Ot=ie==null?void 0:ie.question_choices)==null?void 0:Ot.map(mt=>ea(Yn({},mt),{standard_boolean:mt!=null&&mt.standard_boolean?1:0})),repeat_answer:!(ie!=null&&ie.repeat_answer)}))},[ie]);const Ht=Ot=>{if(!(Ot!=null&&Ot.length))return!1;const mt=Ot.map(yt=>{var Bt;return(Bt=yt.choice_text)==null?void 0:Bt.trim().replace(/^\s+|\s+$/g,"")});return new Set(mt).size!==mt.length};return Wa.createElement("div",null,Wa.createElement(we.default,{form:In,colon:!1,onFinish:Ot=>{var mt,Dt,yt,Bt,Xt;if(Ht(Ot.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 $t=(Dt=(mt=Ot==null?void 0:Ot.choices)==null?void 0:mt.map)==null?void 0:Dt.call(mt,(un,Wt)=>{if((un==null?void 0:un.standard_boolean)===1)return Wt+1}),wn=ea(Yn({},Ot),{item_type:ie==null?void 0:ie.question_type,question_choices:(Bt=(yt=Ot==null?void 0:Ot.choices)==null?void 0:yt.map)==null?void 0:Bt.call(yt,un=>un.choice_text),standard_answers:$t.filter(un=>un),choices:(Xt=Ot==null?void 0:Ot.choices)==null?void 0:Xt.map(un=>ea(Yn({},un),{is_answer:un.standard_boolean}))});bt(Yn(Yn({},ie),wn))},onFinishFailed:Ot=>ba(void 0,null,function*(){var mt,Dt;Be.ZP.error(Ot.errorFields[0].errors[0]),In.scrollToField((Dt=(mt=Ot==null?void 0:Ot.errorFields)==null?void 0:mt[0])==null?void 0:Dt.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,(ie==null?void 0:ie.question_type)===1?"\u591A\u9009\u9898":"\u5355\u9009\u9898")),((tn=ct==null?void 0:ct.exercise)==null?void 0:tn.exercise_status)==1&&!(ie!=null&&ie.isadd)&&Wa.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Un()}},Wa.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Wa.createElement(ke.ZP,{onClick:()=>{var Ot;ie.isadd?(Se(!1),Jt()):(In.setFieldsValue(ea(Yn({},ie),{name:ie==null?void 0:ie.question_title,choices:(Ot=ie==null?void 0:ie.question_choices)==null?void 0:Ot.map(mt=>ea(Yn({},mt),{standard_boolean:mt!=null&&mt.standard_boolean?1:0})),repeat_answer:!(ie!=null&&ie.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),Wa.createElement(rt.Z,{overlayClassName:tt.shake,open:it,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*(){In.submit()})},"\u4FDD\u5B58"))),Wa.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Wa.createElement(Ea.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:Ot=>{Ot.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:In,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:bn,qitem:ie,exerciseitem:ct,TagDiscipline:he,form:In}))))},en=ae(41940),pn=ae(24417),Rt=ae(59301),Qn=Object.defineProperty,_n=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,Cn=(ie,Se,he)=>Se in ie?Qn(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Nn=(ie,Se)=>{for(var he in Se||(Se={}))Xe.call(Se,he)&&Cn(ie,he,Se[he]);if(nt)for(var he of nt(Se))ln.call(Se,he)&&Cn(ie,he,Se[he]);return ie},wa=(ie,Se)=>_n(ie,Je(Se)),pa=(ie,Se,he)=>new Promise((ct,bt)=>{var Un=it=>{try{Jt(he.next(it))}catch(tn){bt(tn)}},bn=it=>{try{Jt(he.throw(it))}catch(tn){bt(tn)}},Jt=it=>it.done?ct(it.value):Promise.resolve(it.value).then(Un,bn);Jt((he=he.apply(ie,Se)).next())}),ya=({qitem:ie,TagDiscipline:Se,exerciseitem:he,setisedit:ct,seveeditor:bt,deleteitem:Un,getTagData:bn,init:Jt,showTip:it=!1})=>{var tn;const[In]=we.default.useForm(),Ht=we.default.useWatch("use_blank_score",In);return(0,b.useEffect)(()=>{In.setFieldsValue(wa(Nn({},ie),{standard_answers:ie.standard_answers||[],name:ie.question_title,repeat_answer:!ie.repeat_answer}))},[ie]),Rt.createElement("div",null,Rt.createElement(we.default,{form:In,colon:!1,onValuesChange:(Ot,mt)=>{var Dt,yt,Bt,Xt;if(Ot!=null&&Ot.standard_answers||Ot!=null&&Ot.use_blank_score){let $t=((Dt=In.getFieldValue("standard_answers"))==null?void 0:Dt.length)>0&&((Bt=(yt=In.getFieldValue("standard_answers"))==null?void 0:yt.map(wn=>wn.score))==null?void 0:Bt.filter(wn=>wn));($t==null?void 0:$t.length)>0&&In.setFieldsValue({question_score:($t==null?void 0:$t.length)>0&&((Xt=$t.reduce((wn,un)=>wn+un))==null?void 0:Xt.toFixed(1))})}},onFinish:Ot=>{bt(wa(Nn(Nn({},ie),Ot),{item_type:ie==null?void 0:ie.question_type,standard_answers:Ot.standard_answers,question_title:Ot.name}))},onFinishFailed:Ot=>pa(void 0,null,function*(){var mt,Dt;Ot.errorFields[0].errors[0]==="\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"&&(0,pt.pE)(),Be.ZP.error(Ot.errorFields[0].errors[0]),In.scrollToField((Dt=(mt=Ot==null?void 0:Ot.errorFields)==null?void 0:mt[0])==null?void 0:Dt.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")),((tn=he==null?void 0:he.exercise)==null?void 0:tn.exercise_status)==1&&!(ie!=null&&ie.isadd)&&Rt.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Un()}},Rt.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Rt.createElement(ke.ZP,{onClick:()=>{ie.isadd?(ct(!1),Jt()):(In.setFieldsValue(wa(Nn({},ie),{standard_answers:ie.standard_answers||[],name:ie.question_title,repeat_answer:!ie.repeat_answer})),ct(!1))}},"\u53D6\u6D88"),Rt.createElement(rt.Z,{overlayClassName:tt.shake,open:it,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:()=>{In.submit()}},"\u4FDD\u5B58"))),Rt.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Rt.createElement(Ea.Z,{align:"middle"},Ht?Rt.createElement(pn.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:Ot=>{Ot.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(rt.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(en.u,{form:In,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:Ht,answerKey:"standard_answers"}),Rt.createElement(Ca,{getTagData:bn,qitem:ie,exerciseitem:he,TagDiscipline:Se,form:In}))))},qn=ae(48700),zt=ae(59301),Ma=Object.defineProperty,pr=Object.defineProperties,So=Object.getOwnPropertyDescriptors,$a=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable,Ua=(ie,Se,he)=>Se in ie?Ma(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Sr=(ie,Se)=>{for(var he in Se||(Se={}))Gt.call(Se,he)&&Ua(ie,he,Se[he]);if($a)for(var he of $a(Se))qr.call(Se,he)&&Ua(ie,he,Se[he]);return ie},ir=(ie,Se)=>pr(ie,So(Se)),Wr=(ie,Se,he)=>new Promise((ct,bt)=>{var Un=it=>{try{Jt(he.next(it))}catch(tn){bt(tn)}},bn=it=>{try{Jt(he.throw(it))}catch(tn){bt(tn)}},Jt=it=>it.done?ct(it.value):Promise.resolve(it.value).then(Un,bn);Jt((he=he.apply(ie,Se)).next())}),ao=({qitem:ie,setisedit:Se,TagDiscipline:he,exerciseitem:ct,seveeditor:bt,deleteitem:Un,getTagData:bn,init:Jt,showTip:it=!1})=>{var tn;const[In]=we.default.useForm();return(0,b.useEffect)(()=>{var Ht;In.setFieldsValue(ir(Sr({},ie),{name:ie.question_title,repeat_answer:!ie.repeat_answer,choices:(Ht=ie==null?void 0:ie.question_choices)==null?void 0:Ht.map(Ot=>ir(Sr({},Ot),{is_answer:Ot!=null&&Ot.standard_boolean?1:0}))}))},[ie]),zt.createElement("div",null,zt.createElement(we.default,{form:In,colon:!1,onFinish:Ht=>{var Ot,mt,Dt,yt;let Bt=(mt=(Ot=Ht==null?void 0:Ht.choices)==null?void 0:Ot.map)==null?void 0:mt.call(Ot,(Xt,$t)=>{if((Xt==null?void 0:Xt.is_answer)===1)return $t+1});bt(ir(Sr(Sr({},ie),Ht),{question_title:Ht.name,standard_answers:Bt.filter(Xt=>Xt),question_choices:(yt=(Dt=Ht==null?void 0:Ht.choices)==null?void 0:Dt.map)==null?void 0:yt.call(Dt,Xt=>Xt.choice_text)}))},onFinishFailed:Ht=>Wr(void 0,null,function*(){var Ot,mt;Be.ZP.error(Ht.errorFields[0].errors[0]),In.scrollToField((mt=(Ot=Ht==null?void 0:Ht.errorFields)==null?void 0:Ot[0])==null?void 0:mt.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")),((tn=ct==null?void 0:ct.exercise)==null?void 0:tn.exercise_status)==1&&!(ie!=null&&ie.isadd)&&zt.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Un()}},zt.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),zt.createElement(ke.ZP,{onClick:()=>{var Ht;ie.isadd?(Se(!1),Jt()):(In.setFieldsValue(ir(Sr({},ie),{name:ie.question_title,repeat_answer:!ie.repeat_answer,choices:(Ht=ie==null?void 0:ie.question_choices)==null?void 0:Ht.map(Ot=>ir(Sr({},Ot),{is_answer:Ot!=null&&Ot.standard_boolean?1:0}))})),Se(!1))}},"\u53D6\u6D88"),zt.createElement(rt.Z,{overlayClassName:tt.shake,open:it,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:()=>{In.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:Ht=>{Ht.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(qn.Z,{form:In,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",choiceKey:""}),zt.createElement(Ca,{getTagData:bn,qitem:ie,exerciseitem:ct,TagDiscipline:he,form:In}))))},kr=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"},an=ae(37962),gr=Object.defineProperty,ga=Object.defineProperties,ur=Object.getOwnPropertyDescriptors,Va=Object.getOwnPropertySymbols,hn=Object.prototype.hasOwnProperty,aa=Object.prototype.propertyIsEnumerable,La=(ie,Se,he)=>Se in ie?gr(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Jn=(ie,Se)=>{for(var he in Se||(Se={}))hn.call(Se,he)&&La(ie,he,Se[he]);if(Va)for(var he of Va(Se))aa.call(Se,he)&&La(ie,he,Se[he]);return ie},sr=(ie,Se)=>ga(ie,ur(Se)),tr=(ie,Se)=>{var he={};for(var ct in ie)hn.call(ie,ct)&&Se.indexOf(ct)<0&&(he[ct]=ie[ct]);if(ie!=null&&Va)for(var ct of Va(ie))Se.indexOf(ct)<0&&aa.call(ie,ct)&&(he[ct]=ie[ct]);return he};const Ar=ie=>{var Se=ie,{value:he,onChange:ct,scrollId:bt}=Se,Un=tr(Se,["value","onChange","scrollId"]);return b.createElement("div",{id:bt||""},b.createElement(an.Z,sr(Jn({},Un),{defaultValue:he,onChange:(bn,Jt)=>{console.log("a:",bn,Jt),Jt!=null&&Jt.length?ct(bn,Jt):ct(bn)}})))},$r=({value:ie,onChange:Se,placeholder:he,height:ct=140,isEdit:bt})=>bt?b.createElement(an.Z,{watch:!0,isFocus:!0,height:ct,placeholder:he,defaultValue:ie,onChange:Se}):b.createElement("div",{style:{cursor:"pointer"}},ie?b.createElement(kt.Z,{className:ca.inputBorder,value:ie}):b.createElement("div",{className:`${ca.inputBorder} ${ca.placeholder}`},he));var mr=ae(43604),_o=Object.defineProperty,Ro=Object.defineProperties,Fl=Object.getOwnPropertyDescriptors,xr=Object.getOwnPropertySymbols,Nr=Object.prototype.hasOwnProperty,Ao=Object.prototype.propertyIsEnumerable,Ja=(ie,Se,he)=>Se in ie?_o(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Qr=(ie,Se)=>{for(var he in Se||(Se={}))Nr.call(Se,he)&&Ja(ie,he,Se[he]);if(xr)for(var he of xr(Se))Ao.call(Se,he)&&Ja(ie,he,Se[he]);return ie},eo=(ie,Se)=>Ro(ie,Fl(Se)),hr=(ie,Se)=>{var he={};for(var ct in ie)Nr.call(ie,ct)&&Se.indexOf(ct)<0&&(he[ct]=ie[ct]);if(ie!=null&&xr)for(var ct of xr(ie))Se.indexOf(ct)<0&&Ao.call(ie,ct)&&(he[ct]=ie[ct]);return he};const to=["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:ie,onChange:Se,choiceTextKey:he,answerKey:ct,index:bt,isEdit:Un,setInputActive:bn,form:Jt,choiceOptionsPath:it,allowChangeMode:tn,showAddIcon:In,addItem:Ht,deleteItem:Ot})=>{const mt=(ie==null?void 0:ie[ct])===1,Dt=()=>{const Bt=Jt.getFieldValue(it);Jt.setFieldValue(it,Bt.map(Xt=>eo(Qr({},Xt),{[ct]:0})))},yt=()=>{mt?Se(eo(Qr({},ie),{[ct]:0})):(tn||Dt(),Se(eo(Qr({},ie),{[ct]:1})))};return b.createElement(Ea.Z,{className:ca.choiceWrap,align:"middle",wrap:!1},b.createElement(mr.Z,{onClick:yt,className:`${ca.choiceIndex} ${mt?ca.activeAnswer:""}`},to[bt]),b.createElement(mr.Z,{flex:1,className:`${ca.editorWrap} ml15`,onClick:bn},b.createElement($r,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Un,value:ie==null?void 0:ie[he],onChange:Bt=>{Se(eo(Qr({},ie),{[he]:Bt}))}})),b.createElement(mr.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:yt,className:`${ca.setAnswerBtn} ${mt?ca.activeAnswer:""}`},mt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),b.createElement(mr.Z,{className:ca.actionWrapper},b.createElement(rt.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},b.createElement(oe.Z,{className:ca.addIcon,onClick:Ht,style:{visibility:In?"visible":"hidden"}})),b.createElement(rt.Z,{title:"\u5220\u9664"},b.createElement(se.Z,{className:ca.deleteIcon,onClick:Ot,style:{visibility:bt>1?"visible":"hidden"}}))))},At=({questionTitlePlaceholder:ie,titleKey:Se,choiceKey:he,analysisKey:ct,choiceTextKey:bt,answerKey:Un,choiceOptionsPath:bn,allowChangeMode:Jt=!0,form:it,showAnalysis:tn=!0})=>{const[In,Ht]=(0,b.useState)(),[Ot,mt]=(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:ie}))),b.createElement(we.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),b.createElement(we.default.List,{name:he,rules:[{validator(Dt,yt){const Bt=yt.some($t=>$t[Un]===1),Xt=yt.findIndex($t=>{var wn;return((wn=$t[bt])==null?void 0:wn.length)<=0});return Xt!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${to[Xt]}\u9009\u9879\u7684\u5185\u5BB9`)):Bt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(Dt,{add:yt,remove:Bt})=>b.createElement("div",{id:Array.isArray(bn)?bn.join("_"):`${bn}`},Dt.map((Xt,$t)=>{var wn=Xt,{key:un,name:Wt}=wn,Ir=hr(wn,["key","name"]);const oo=In===un,qa=()=>{Ht(un)},Yr=$t<7&&$t===Dt.length-1,$n=()=>yt({[bt]:"",[Un]:0}),Kr=()=>Bt(Wt);return b.createElement(we.default.Item,eo(Qr({},Ir),{key:un,name:Wt,noStyle:!0}),b.createElement(xt,{choiceTextKey:bt,answerKey:Un,index:$t,isEdit:oo,setInputActive:qa,form:it,choiceOptionsPath:bn,allowChangeMode:Jt,showAddIcon:Yr,addItem:$n,deleteItem:Kr}))}),Dt.length<8&&b.createElement("div",{className:`${ca.addBtn} mb30`,onClick:()=>yt({[bt]:"",[Un]:0})},"\u6DFB\u52A0\u9009\u9879"))),tn&&b.createElement("div",{onClick:()=>mt(!0)},b.createElement(we.default.Item,{name:ct,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement($r,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ot}))))};var ht=ae(59301),kn=Object.defineProperty,Ga=Object.defineProperties,ar=Object.getOwnPropertyDescriptors,Pn=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,Xa=Object.prototype.propertyIsEnumerable,ro=(ie,Se,he)=>Se in ie?kn(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,dr=(ie,Se)=>{for(var he in Se||(Se={}))er.call(Se,he)&&ro(ie,he,Se[he]);if(Pn)for(var he of Pn(Se))Xa.call(Se,he)&&ro(ie,he,Se[he]);return ie},Ha=(ie,Se)=>Ga(ie,ar(Se)),wr=(ie,Se)=>{var he={};for(var ct in ie)er.call(ie,ct)&&Se.indexOf(ct)<0&&(he[ct]=ie[ct]);if(ie!=null&&Pn)for(var ct of Pn(ie))Se.indexOf(ct)<0&&Xa.call(ie,ct)&&(he[ct]=ie[ct]);return he};const bo=({value:ie,onChange:Se})=>{const he=bt=>{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 Un=[...ie];Un.splice(bt,1),Se(Un)}})},ct=()=>{const bt=[...ie];bt.push(""),Se(bt)};return ht.createElement(Ea.Z,{className:"ml20"},ht.createElement(mr.Z,{flex:1},ie==null?void 0:ie.map((bt,Un)=>ht.createElement(Ea.Z,{key:`${bt}_${Un}`,align:"middle",className:"mb20"},ht.createElement(We.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:bt,autoSize:{maxRows:3},maxLength:1e3,onBlur:bn=>{const Jt=[...ie],it=bn.target.value.trim();Jt[Un]=it,Se(Jt)}}),ht.createElement(rt.Z,{title:"\u5220\u9664"},ht.createElement(se.Z,{className:ca.deleteIcon,style:{marginLeft:15,visibility:Un>0?"visible":"hidden"},onClick:()=>he(Un)}))))),ht.createElement(mr.Z,null,ht.createElement("div",{className:`${ca.addBtn}`,onClick:()=>{ct()}},"\u65B0\u589E\u7B54\u6848")))},rl=({value:ie=!0,onChange:Se})=>ht.createElement(_a.Z,{checked:!ie,onChange:he=>{Se(!he)}}),Tr="\u2581",yo=({questionTitlePlaceholder:ie,form:Se,name:he,scoreByBlank:ct,answerKey:bt,titleKey:Un="name",analysisKey:bn="analysis",isOrdered:Jt="is_ordered"})=>{var it,tn;const[In,Ht]=(0,b.useState)(!1),Ot=(un,Wt)=>{const Ir=Wt.line;let oo=0;for(let Yr=0;Yr{const qa=un.getRange(Wt.from,Wt.to);let Yr=0;if(Wt.text.forEach($n=>{Yr+=$n.split(Tr).length-1}),Wt.origin!=="setValue"){if(qa&&qa.indexOf(Tr)!==-1){const $n=qa.split(Tr).length-1,Kr=Ot(un,Wt.from);if(console.log(`\u5220\u9664${$n}\u4E2A\uFF0C \u524D\u9762\u6709${Kr}\u4E2A\uFF0C\u65B0\u589E${Yr}\u4E2A`),$n>1){const lo=Array.from({length:$n},(Do,Lr)=>Kr+Lr);oo(lo)}else oo(Kr)}else if(Yr>0){const $n=Ot(un,Wt.from);console.log(`\u65B0\u589E${Yr}\u4E2A\uFF0C\u4E4B\u524D\u6709${$n}\u4E2A`),Ir(Yr,$n)}}},Dt=()=>{const un=Se.getFieldValue(["sub_item_banks",...bt]);Se.setFieldValue(["sub_item_banks",...bt],un==null?void 0:un.map((Wt,Ir)=>Ha(dr({},Wt),{position:Ir+1})))},yt=(0,b.useRef)(),Bt=(un,Wt)=>{for(let Ir=0;Ir{Xt.current(un),Dt()},wn=(tn=(it=Se.getFieldValue("sub_item_banks"))==null?void 0:it[bt==null?void 0:bt[0]])==null?void 0:tn[bt==null?void 0:bt[1]];return console.log(Se==null?void 0:Se.getFieldValue(["sub_item_banks",...ct])),ht.createElement("div",{className:ca.wrap},ht.createElement("div",{className:ca.questionTitleEditorWrap},ht.createElement(we.default.Item,{label:"\u9898\u5E72",name:Un,labelCol:{span:24},rules:[{required:!0}]},ht.createElement(Ar,{scrollId:"name",watch:!0,height:140,placeholder:ie,showNullButton:!0,onCMBeforeChange:(un,Wt)=>{mt(un,Wt,Bt,$t)}}))),ht.createElement(we.default.List,{name:bt,rules:[{validator(un,Wt){if((Wt==null?void 0:Wt.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Ir of Wt){const{answer_text:oo}=Ir||{};if(oo!=null&&oo.some(qa=>(qa==null?void 0:qa.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(un,{add:Wt,remove:Ir},{errors:oo})=>(yt.current=Wt,Xt.current=Ir,ht.createElement(ht.Fragment,null,ht.createElement(we.default.Item,{label:ht.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(un!=null&&un.length)&&ht.createElement("span",{style:{color:"#E99237"}},"\uFF08\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879\uFF09")),required:!0,labelCol:{span:24}}),un.map((qa,Yr)=>{var $n=qa,{key:Kr,name:lo}=$n,Do=wr($n,["key","name"]);return ht.createElement(Ea.Z,{className:"mb20",key:Kr,align:"top"},ht.createElement(mr.Z,{flex:"0 0 auto",className:`${ca.blankIndex} pt5`},"\u586B\u7A7A\u9879",Yr+1),ht.createElement(mr.Z,{flex:1},ht.createElement(Ea.Z,{align:"top",justify:"space-between"},ht.createElement(mr.Z,{flex:1},ht.createElement(we.default.Item,Ha(dr({},Do),{name:[lo,"answer_text"],noStyle:!0}),ht.createElement(bo,null))),(Se==null?void 0:Se.getFieldValue(["sub_item_banks",...ct]))&&ht.createElement(mr.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},ht.createElement(we.default.Item,Ha(dr({},Do),{name:[lo,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ca.blankInputNumberWrapper}),ht.createElement(De.Z,{onChange:()=>{var Lr,Lo;let Io=Se==null?void 0:Se.getFieldValue(["sub_item_banks",bt==null?void 0:bt[0],"standard_answers"]),Al=0;for(let On in Io)(Lr=Io[On])!=null&&Lr.score&&(Al+=Number((Lo=Io[On])==null?void 0:Lo.score));Se==null||Se.setFieldValue(["sub_item_banks",bt==null?void 0:bt[0],"question_score"],Al)},className:ca.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),ht.createElement(we.default.Item,Ha(dr({},Do),{name:[lo,"position"],noStyle:!0}),ht.createElement(We.default,{type:"hidden"}))))})))),ht.createElement(Ea.Z,{align:"middle"},ht.createElement(we.default.Item,{name:[he,"downcase"],valuePropName:"checked"},ht.createElement(_a.Z,null)),ht.createElement(mr.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),ht.createElement(Ea.Z,{align:"middle"},ht.createElement(we.default.Item,{name:[he,"no_space"],valuePropName:"checked"},ht.createElement(_a.Z,null)),ht.createElement(mr.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(wn==null?void 0:wn.length)>1&&ht.createElement(Ea.Z,{align:"middle",className:(wn==null?void 0:wn.length)>1?"mb30":`${ca.hide}`},ht.createElement(we.default.Item,{name:Jt},ht.createElement(rl,null)),ht.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")),ht.createElement("div",{onClick:()=>Ht(!0)},ht.createElement(we.default.Item,{name:bn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ht.createElement($r,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:In}))))};var To=Object.defineProperty,sa=Object.defineProperties,Dn=Object.getOwnPropertyDescriptors,Hn=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,Ct=(ie,Se,he)=>Se in ie?To(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,cn=(ie,Se)=>{for(var he in Se||(Se={}))me.call(Se,he)&&Ct(ie,he,Se[he]);if(Hn)for(var he of Hn(Se))gt.call(Se,he)&&Ct(ie,he,Se[he]);return ie},vt=(ie,Se)=>sa(ie,Dn(Se)),Ln=(ie,Se)=>{var he={};for(var ct in ie)me.call(ie,ct)&&Se.indexOf(ct)<0&&(he[ct]=ie[ct]);if(ie!=null&&Hn)for(var ct of Hn(ie))Se.indexOf(ct)<0&>.call(ie,ct)&&(he[ct]=ie[ct]);return he};const An={\u6B63\u786E:"T",\u9519\u8BEF:"F"},vn=({value:ie,onChange:Se,form:he,choiceKey:ct})=>{const bt=(ie==null?void 0:ie.is_answer)===1,Un=ie==null?void 0:ie.choice_text,bn=()=>{var Jt;const it=(Jt=he==null?void 0:he.getFieldValue(["sub_item_banks",...ct]))==null?void 0:Jt.map(tn=>({choice_text:tn.choice_text,is_answer:0}));he==null||he.setFieldValue(["sub_item_banks",...ct],it),Se(vt(cn({},ie),{is_answer:1}))};return b.createElement(Ea.Z,{className:ca.choiceWrap,align:"middle",wrap:!1},b.createElement(mr.Z,{onClick:bn,className:`${ca.choiceIndex} ${ca.judgementIndex} ${bt?ca.activeAnswer:""}`},An[Un]),b.createElement(mr.Z,{flex:1,className:`${ca.editorWrap} ml15`},b.createElement("div",{className:`${ca.inputBorder} ${ca.placeholder} ${bt?ca.activeJudgementAnswer:""}`},Un)),b.createElement(mr.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:bn,className:`${ca.setAnswerBtn} ${bt?ca.activeAnswer:""}`},bt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},yn=({questionTitlePlaceholder:ie,choiceKey:Se="choices",form:he,titleKey:ct="name",analysisKey:bt="analysis"})=>{const[Un,bn]=(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:ct,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Ar,{scrollId:"name",watch:!0,height:140,placeholder:ie}))),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,it){return it.some(In=>(In==null?void 0:In.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Jt=>b.createElement("div",{id:"choices"},Jt.map(it=>{var tn=it,{key:In,name:Ht}=tn,Ot=Ln(tn,["key","name"]);return b.createElement(we.default.Item,vt(cn({},Ot),{key:In,name:Ht,noStyle:!0}),b.createElement(vn,{form:he,choiceKey:Se}))})))),b.createElement("div",{onClick:()=>bn(!0)},b.createElement(we.default.Item,{name:bt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement($r,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Un}))))};var Ia=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(42653),ma=ae(84097),va=ae(59301);const rr=({qitem:ie,form:Se,exercise:he,loading:ct,dispatch:bt,aiReviewSettings:Un=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:()=>{bt({type:"exercise/setActionTabs",payload:{key:"\u6D4B\u8BD5AI\u8BC4\u5206",questionId:ie==null?void 0:ie.question_id,ai_review_settings:Se.getFieldValue(Un||"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:Un||"ai_review_settings"},(bn,{add:Jt,remove:it})=>bn.map((tn,In)=>{var Ht;return va.createElement(Ea.Z,{key:tn.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:[tn.name,"name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u9879\u76EE"}]},va.createElement(We.default,{onChange:Ot=>{Se.setFieldValue([tn.name,"content"],Ot.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:[tn.name,"content"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6"}]},va.createElement(We.default,{onChange:Ot=>{Se.setFieldValue([tn.name,"content"],Ot.target.value)},placeholder:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6",size:"large",style:{width:Un?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:[tn.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([tn.name,"weight"]),onChange:Ot=>{Number.isInteger(Ot)||Se.setFieldValue([tn.name,"weight"],parseFloat(Ot).toFixed(2))},size:"large",addonAfter:"%",placeholder:"\u8BF7\u8F93\u5165\u6743\u91CD",min:.01,step:1,max:100,style:{width:"110px"}}))),va.createElement(Ea.Z,{className:(Ht=cr)==null?void 0:Ht.h_lh_40},va.createElement(mr.Z,null,va.createElement("i",{className:"iconfont icon-tianjiatimu ml10 current",style:{color:"#00B187"},onClick:()=>{if(bn.length>=10)return Be.ZP.info("\u6700\u591A\u53EA\u80FD\u6DFB\u52A010\u4E2A\u8BC4\u5206\u9879\u76EE");Jt()}})),In>0&&va.createElement(mr.Z,null,va.createElement("i",{className:"iconfont icon-shanjian1 ml10 current",style:{color:"#E30000"},onClick:()=>{it(tn.name)}}))))}))),va.createElement(ma.Z,null));var Er=(0,Ee.connect)(({exercise:ie,loading:Se})=>({exercise:ie,loading:Se.effects}))(rr),Jo=Object.defineProperty,sl=Object.defineProperties,Qo=Object.getOwnPropertyDescriptors,ol=Object.getOwnPropertySymbols,hl=Object.prototype.hasOwnProperty,Cl=Object.prototype.propertyIsEnumerable,Ci=(ie,Se,he)=>Se in ie?Jo(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,ri=(ie,Se)=>{for(var he in Se||(Se={}))hl.call(Se,he)&&Ci(ie,he,Se[he]);if(ol)for(var he of ol(Se))Cl.call(Se,he)&&Ci(ie,he,Se[he]);return ie},oi=(ie,Se)=>sl(ie,Qo(Se)),li=(ie,Se)=>{var he={};for(var ct in ie)hl.call(ie,ct)&&Se.indexOf(ct)<0&&(he[ct]=ie[ct]);if(ie!=null&&ol)for(var ct of ol(ie))Se.indexOf(ct)<0&&Cl.call(ie,ct)&&(he[ct]=ie[ct]);return he};const au=ie=>{var Se=ie,{value:he,onChange:ct}=Se,bt=li(Se,["value","onChange"]);const Un=bn=>{ct([bn])};return b.createElement(an.Z,oi(ri({},bt),{defaultValue:he==null?void 0:he[0],onChange:Un}))},di=ie=>{if(!ie)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 ie==="|"?(Be.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Oi=({value:ie=[],onClose:Se})=>b.createElement(Ia.default,{closable:!0,onClose:Se,className:ca.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},ie.join(" \u6216 "))),rs=({questionTitlePlaceholder:ie,form:Se,showKeywords:he,isMustKeyWords:ct=he,titleKey:bt="name",analysisKey:Un="analysis",answerTexts:bn="answer_texts",keywords:Jt="keywords",useKeywords:it="use_keywords",indexs:tn,qitem:In,exerciseitem:Ht,aiReviewSettings:Ot})=>{var mt,Dt,yt,Bt,Xt;const[$t,wn]=(0,b.useState)(!1),[un,Wt]=(0,b.useState)(""),Ir=(Dt=(mt=Se.getFieldValue("sub_item_banks"))==null?void 0:mt[it==null?void 0:it[0]])==null?void 0:Dt[it==null?void 0:it[1]],oo=(Bt=(yt=Se.getFieldValue("sub_item_banks"))==null?void 0:yt[it==null?void 0:it[0]])==null?void 0:Bt.question_score;return b.createElement("div",{className:ca.wrap},b.createElement("div",{className:ca.questionTitleEditorWrap},b.createElement(we.default.Item,{label:"\u9898\u5E72",name:bt,labelCol:{span:24},rules:[{required:!0}]},b.createElement(Ar,{scrollId:"name",watch:!0,height:140,placeholder:ie}))),b.createElement(we.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:bn,labelCol:{span:24}},b.createElement(au,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),he&&!ct&&b.createElement(we.default.Item,{hidden:!0,name:it,valuePropName:"checked"},b.createElement(_a.Z,{defaultChecked:!0})),he&&ct&&b.createElement(Ea.Z,{align:"middle",className:"mb30"},b.createElement(we.default.Item,{name:it,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(rt.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"}})))),(Ir||!ct)&&b.createElement(we.default.List,{name:Jt,rules:[{validator(qa,Yr){return ct?Yr!=null&&Yr.length?(Yr==null?void 0:Yr.reduce((Kr,lo)=>Kr+lo.score,0))>parseFloat(oo)?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()}}]},(qa,{add:Yr,remove:$n})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${ca.title} mb10`},ct?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(Ea.Z,{align:"middle",className:"font14 mb30"},b.createElement(mr.Z,{flex:1},b.createElement(We.default,{value:un,onChange:Kr=>{Wt(Kr.target.value)},maxLength:50,allowClear:!0,onPressEnter:Kr=>{var lo,Do,Lr,Lo;const Io=`${(lo=Kr.target)==null?void 0:lo.value}`,Al=(Lr=(Do=Io==null?void 0:Io.split("|"))==null?void 0:Do.filter(xl=>!!xl))==null?void 0:Lr.map(xl=>xl==null?void 0:xl.trim()),On=Se.getFieldValue(["sub_item_banks",...Jt]),fl=((Lo=On==null?void 0:On.map(xl=>xl==null?void 0:xl.keyword))==null?void 0:Lo.flat())||[];for(const xl of Al)if(fl.includes(xl)){Be.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}di(Io)&&(Yr({keyword:Al,score:1}),Wt(""))},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")),qa.map(Kr=>{var lo=Kr,{key:Do,name:Lr}=lo,Lo=li(lo,["key","name"]);return b.createElement(Ea.Z,{key:Do,className:"mb20",style:{marginRight:148}},b.createElement(mr.Z,{flex:1},b.createElement(Ea.Z,{align:"middle",justify:"space-between"},b.createElement(we.default.Item,oi(ri({},Lo),{name:[Lr,"keyword"]}),b.createElement(Oi,{onClose:()=>$n(Lr)})),ct&&b.createElement(we.default.Item,oi(ri({},Lo),{name:[Lr,"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:()=>wn(!0)},b.createElement(we.default.Item,{name:Un,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement($r,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:$t}))),((Xt=Ht==null?void 0:Ht.exercise)==null?void 0:Xt.is_open_ai_review)&&b.createElement(Er,{form:Se,qitem:In,aiReviewSettings:Ot}))};var no=ae(59301),Bu=Object.defineProperty,Mu=Object.defineProperties,os=Object.getOwnPropertyDescriptors,Zl=Object.getOwnPropertySymbols,Yu=Object.prototype.hasOwnProperty,Ru=Object.prototype.propertyIsEnumerable,Su=(ie,Se,he)=>Se in ie?Bu(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,ku=(ie,Se)=>{for(var he in Se||(Se={}))Yu.call(Se,he)&&Su(ie,he,Se[he]);if(Zl)for(var he of Zl(Se))Ru.call(Se,he)&&Su(ie,he,Se[he]);return ie},ru=(ie,Se)=>Mu(ie,os(Se)),Ku=(ie,Se)=>{var he={};for(var ct in ie)Yu.call(ie,ct)&&Se.indexOf(ct)<0&&(he[ct]=ie[ct]);if(ie!=null&&Zl)for(var ct of Zl(ie))Se.indexOf(ct)<0&&Ru.call(ie,ct)&&(he[ct]=ie[ct]);return he};const{Panel:Tu}=kr.default,ju=({questionTitlePlaceholder:ie,choiceKey:Se,form:he,withScore:ct,exerciseitem:bt})=>{const Un=[{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"}],[bn,Jt]=(0,b.useState)(),[it,tn]=(0,b.useState)([]),In=Ot=>{tn(Ot)},Ht=({value:Ot})=>no.createElement("div",{style:{width:150,paddingLeft:11}},Ot);return no.createElement("div",{className:ca.wrap},no.createElement("div",{className:ca.questionTitleEditorWrap},no.createElement(we.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},no.createElement(Ar,{scrollId:"name",watch:!0,height:140,placeholder:ie}))),no.createElement(we.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),no.createElement(we.default.List,{name:"sub_item_banks",rules:[{validator(Ot,mt){return mt?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Ot,{add:mt,remove:Dt,move:yt})=>{const Bt=he.getFieldValue("sub_item_banks");return no.createElement(no.Fragment,null,no.createElement(kr.default,{className:Ot.length>0?ca.collapseWrapper:"",bordered:!1,activeKey:it,onChange:In,expandIcon:({isActive:Xt})=>no.createElement("i",{className:`iconfont icon-weizhankai ${Xt?ca.open:ca.close}`,style:{fontSize:14,transition:"all .2s"}})},Ot.map((Xt,$t)=>{var wn=Xt,{key:un,name:Wt}=wn,Ir=Ku(wn,["key","name"]),oo,qa,Yr,$n,Kr,lo,Do,Lr,Lo,Io,Al,On,fl,xl;return no.createElement(Tu,{className:ca.panel,forceRender:!0,header:no.createElement("div",{className:ca.panelHeader},"\u7B2C",$t+1,"\u5C0F\u9898",no.createElement("span",null,"\uFF08",((oo=Bt==null?void 0:Bt[Wt])==null?void 0:oo.question_type)==0?"\u5355\u9009\u9898":((qa=Bt==null?void 0:Bt[Wt])==null?void 0:qa.question_type)==1?"\u591A\u9009\u9898":((Yr=Bt==null?void 0:Bt[Wt])==null?void 0:Yr.question_type)==3?"\u586B\u7A7A\u9898":(($n=Bt==null?void 0:Bt[Wt])==null?void 0:$n.question_type)==2?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:Wt,extra:no.createElement(Ea.Z,{align:"middle",onClick:ko=>ko.stopPropagation()},((Kr=Bt==null?void 0:Bt[Wt])==null?void 0:Kr.question_type)==3&&no.createElement(no.Fragment,null,no.createElement(Oe.ZP.Group,{defaultValue:(lo=Bt==null?void 0:Bt[Wt])==null?void 0:lo.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:ko=>{var zn,Bl,zl,Jl,Wl;if(he==null||he.setFieldValue(["sub_item_banks",Wt,"use_blank_score"],(zn=ko==null?void 0:ko.target)==null?void 0:zn.value),(Bl=ko==null?void 0:ko.target)!=null&&Bl.value){let Ql=0;for(let vl in(zl=he==null?void 0:he.getFieldValue(["sub_item_banks",Wt]))==null?void 0:zl.standard_answers)Ql+=Number((Wl=(Jl=he==null?void 0:he.getFieldValue(["sub_item_banks",Wt]))==null?void 0:Jl.standard_answers[vl])==null?void 0:Wl.score);he==null||he.setFieldValue(["sub_item_banks",Wt,"question_score"],Ql||"")}Jt(new Date)}}),no.createElement(rt.Z,{overlayInnerStyle:{width:460},title:no.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",no.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")},no.createElement("i",{className:"icon-tishixiaowenhao font18 mr25 c-3061d0"}))),ct&&no.createElement(we.default.Item,ru(ku({},Ir),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[Wt,"question_score"],className:ca.blankInputNumberWrapper}),((Do=Bt==null?void 0:Bt[Wt])==null?void 0:Do.question_type)==3&&((Lr=Bt==null?void 0:Bt[Wt])!=null&&Lr.use_blank_score)?no.createElement(Ht,null):no.createElement(De.Z,{className:ca.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}})),no.createElement(Ea.Z,{align:"middle",className:"pl40",style:{width:82}},$t!==0&&no.createElement("div",{onClick:()=>{var ko;yt($t,$t-1);const zn=(ko=he.getFieldValue("sub_item_banks"))==null?void 0:ko.map((Bl,zl)=>(Ot.map((Jl,Wl)=>{zl===Wl&&(Bl.q_position=Number(Jl.name)+1)}),Bl));he.setFieldValue("sub_item_banks",zn)}},no.createElement(rt.Z,{title:"\u4E0A\u79FB"},no.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),$t{var ko;yt($t,$t+1);const zn=(ko=he.getFieldValue("sub_item_banks"))==null?void 0:ko.map((Bl,zl)=>(Ot.map((Jl,Wl)=>{zl===Wl&&(Bl.q_position=Number(Jl.name)+1)}),Bl));he.setFieldValue("sub_item_banks",zn)},className:$t===0?"":"ml10"},no.createElement(rt.Z,{title:"\u4E0B\u79FB"},no.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"})))),no.createElement(rt.Z,{title:"\u5220\u9664"},no.createElement(se.Z,{className:`${ca.deleteIcon} ml40`,onClick:()=>Dt(Wt)})))},no.createElement(we.default.Item,ru(ku({},Ir),{name:Wt}),(((Lo=Bt==null?void 0:Bt[Wt])==null?void 0:Lo.question_type)==0||((Io=Bt==null?void 0:Bt[Wt])==null?void 0:Io.question_type)==1)&&no.createElement(At,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((Al=Bt==null?void 0:Bt[Wt])==null?void 0:Al.question_type)==1,form:he,choiceKey:[Wt,"choices"],titleKey:[Wt,"name"],analysisKey:[Wt,"analysis"],choiceOptionsPath:["sub_item_banks",Wt,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((On=Bt==null?void 0:Bt[Wt])==null?void 0:On.question_type)==3&&no.createElement(yo,{form:he,name:Wt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:[Wt,"use_blank_score"],titleKey:[Wt,"name"],analysisKey:[Wt,"analysis"],isOrdered:[Wt,"is_ordered"],answerKey:[Wt,"standard_answers"],key:bn}),((fl=Bt==null?void 0:Bt[Wt])==null?void 0:fl.question_type)==2&&no.createElement(yn,{form:he,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Wt,"name"],analysisKey:[Wt,"analysis"],choiceKey:[Wt,"choices"]}),((xl=Bt==null?void 0:Bt[Wt])==null?void 0:xl.question_type)==4&&no.createElement(rs,{showKeywords:!0,isMustKeyWords:!0,form:he,titleKey:[Wt,"name"],analysisKey:[Wt,"analysis"],answerTexts:[Wt,"answer_texts"],useKeywords:[Wt,"use_keywords"],keywords:[Wt,"keywords"],aiReviewSettings:[Wt,"ai_review_settings"],indexs:Wt,qitem:Bt==null?void 0:Bt[Wt],questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9",exerciseitem:bt})))})),Ot.length<20&&no.createElement(Ce.Z,{menu:{items:[{label:no.createElement("div",{onClick:()=>{mt({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:0,item_type:"SINGLE"}),tn([Ot==null?void 0:Ot.length,...it])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:no.createElement("div",{onClick:()=>{mt({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:1,item_type:"MULTIPLE"}),tn([Ot==null?void 0:Ot.length,...it])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:no.createElement("div",{onClick:()=>{mt({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",question_type:2,item_type:"JUDGMENT"}),tn([Ot==null?void 0:Ot.length,...it])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:no.createElement("div",{onClick:()=>{mt({name:"",analysis:"",is_ordered:!0,standard_answers:[],question_type:3,item_type:"COMPLETION",use_blank_score:!0,downcase:!0,no_space:!0}),tn([Ot==null?void 0:Ot.length,...it])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:no.createElement("div",{onClick:()=>{mt({name:"",answer_texts:[],keywords:[],use_keywords:!1,analysis:"",question_type:4,item_type:"SUBJECTIVE"}),tn([Ot==null?void 0:Ot.length,...it])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(Xt=>Xt.show).map(Xt=>({label:Xt.label,key:Xt.key}))}},no.createElement("div",{className:`${ca.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var Gl=ae(59301),_u=Object.defineProperty,xu=Object.defineProperties,Ol=Object.getOwnPropertyDescriptors,wu=Object.getOwnPropertySymbols,ls=Object.prototype.hasOwnProperty,ou=Object.prototype.propertyIsEnumerable,$i=(ie,Se,he)=>Se in ie?_u(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,bi=(ie,Se)=>{for(var he in Se||(Se={}))ls.call(Se,he)&&$i(ie,he,Se[he]);if(wu)for(var he of wu(Se))ou.call(Se,he)&&$i(ie,he,Se[he]);return ie},Bi=(ie,Se)=>xu(ie,Ol(Se)),is=(ie,Se,he)=>new Promise((ct,bt)=>{var Un=it=>{try{Jt(he.next(it))}catch(tn){bt(tn)}},bn=it=>{try{Jt(he.throw(it))}catch(tn){bt(tn)}},Jt=it=>it.done?ct(it.value):Promise.resolve(it.value).then(Un,bn);Jt((he=he.apply(ie,Se)).next())}),us=({qitem:ie,setisedit:Se,TagDiscipline:he,exerciseitem:ct,seveeditor:bt,deleteitem:Un,getTagData:bn,init:Jt,showTip:it=!1})=>{var tn;const[In]=we.default.useForm(),{unified_ai_setting:Ht,ai_review_settings:Ot}=ct==null?void 0:ct.exercise;(0,b.useEffect)(()=>{var Dt;In.setFieldsValue(Bi(bi({},ie),{name:ie.question_title,sub_item_banks:(Dt=ie.sub_exercise_questions)==null?void 0:Dt.map(yt=>{var Bt,Xt;if(yt.question_type==4){const $t=Ht?Ot:((Bt=yt==null?void 0:yt.ai_review_settings)==null?void 0:Bt.length)>0?yt.ai_review_settings:Ot;yt.ai_review_settings=$t}return Bi(bi({},yt),{name:yt.question_title,choices:(Xt=yt==null?void 0:yt.question_choices)==null?void 0:Xt.map($t=>Bi(bi({},$t),{is_answer:$t!=null&&$t.standard_boolean?1:0}))})}),repeat_answer:!ie.repeat_answer}))},[ie]);const mt=Dt=>{if(!(Dt!=null&&Dt.length))return!1;const yt=Dt.map(Xt=>{var $t;return($t=Xt.choice_text)==null?void 0:$t.trim().replace(/^\s+|\s+$/g,"")});return new Set(yt).size!==yt.length};return Gl.createElement("div",null,Gl.createElement(we.default,{form:In,colon:!1,onValuesChange:(Dt,yt)=>{var Bt,Xt,$t,wn;if(Dt!=null&&Dt.sub_item_banks){let un=((Bt=In.getFieldValue("sub_item_banks"))==null?void 0:Bt.length)>0&&(($t=(Xt=In.getFieldValue("sub_item_banks"))==null?void 0:Xt.map(Wt=>{var Ir;if(Wt.question_type==3&&(Wt!=null&&Wt.use_blank_score)){let oo=0;for(let qa in Wt==null?void 0:Wt.standard_answers)oo+=Number((Ir=Wt==null?void 0:Wt.standard_answers[qa])==null?void 0:Ir.score);return oo}else return Wt.question_score}))==null?void 0:$t.filter(Wt=>Wt));(un==null?void 0:un.length)>0&&In.setFieldsValue({question_score:(wn=parseFloat(un.reduce((Wt,Ir)=>parseFloat(Wt)+parseFloat(Ir))))==null?void 0:wn.toFixed(1)})}},onFinish:Dt=>{var yt,Bt;if((yt=Dt.sub_item_banks)==null?void 0:yt.some($t=>$t.question_type===0||$t.question_type===1?mt($t.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}bt(Bi(bi(bi({},ie),Dt),{question_title:Dt.name,sub_questions:(Bt=Dt==null?void 0:Dt.sub_item_banks)==null?void 0:Bt.map($t=>{var wn,un,Wt,Ir;return($t==null?void 0:$t.question_type)==3?Bi(bi({},$t),{question_title:$t.name,item_type:$t==null?void 0:$t.question_type}):Bi(bi({},$t),{question_title:$t.name,question_choices:(un=(wn=$t==null?void 0:$t.choices)==null?void 0:wn.map)==null?void 0:un.call(wn,oo=>oo.choice_text),standard_answers:(Ir=(Wt=$t==null?void 0:$t.choices)==null?void 0:Wt.map)==null?void 0:Ir.call(Wt,(oo,qa)=>(oo==null?void 0:oo.is_answer)===1&&qa+1).filter(oo=>oo),item_type:$t==null?void 0:$t.question_type})})}))},onFinishFailed:Dt=>is(void 0,null,function*(){var yt,Bt;Be.ZP.error(Dt.errorFields[0].errors[0]),In.scrollToField((Bt=(yt=Dt==null?void 0:Dt.errorFields)==null?void 0:yt[0])==null?void 0:Bt.name,{behavior:"smooth",block:"center"})})},Gl.createElement("div",{style:{display:"flex",alignItems:"center"}},Gl.createElement("div",{style:{flex:1}},Gl.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Gl.createElement("span",null,"\u7EC4\u5408\u9898")),((tn=ct==null?void 0:ct.exercise)==null?void 0:tn.exercise_status)==1&&!(ie!=null&&ie.isadd)&&Gl.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Un()}},Gl.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Gl.createElement(ke.ZP,{onClick:()=>{var Dt;ie.isadd?(Se(!1),Jt()):(In.setFieldsValue(Bi(bi({},ie),{name:ie.question_title,sub_item_banks:(Dt=ie.sub_exercise_questions)==null?void 0:Dt.map(yt=>{var Bt;return Bi(bi({},yt),{name:yt.question_title,choices:(Bt=yt==null?void 0:yt.question_choices)==null?void 0:Bt.map(Xt=>Bi(bi({},Xt),{is_answer:Xt!=null&&Xt.standard_boolean?1:0}))})}),repeat_answer:!ie.repeat_answer})),Se(!1))}},"\u53D6\u6D88"),Gl.createElement(rt.Z,{overlayClassName:tt.shake,open:it,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Gl.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Gl.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")},Gl.createElement(ke.ZP,{className:"ml20",type:"primary",onClick:()=>{In.submit()}},"\u4FDD\u5B58"))),Gl.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Gl.createElement(pn.Z,{text:"\uFF08\u7EC4\u5408\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5C0F\u9898\u5206\u503C\u4E4B\u548C\uFF09"}),Gl.createElement(ju,{form:In,withScore:!0,choiceKey:"",exerciseitem:ct,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7EC4\u5408\u9898\u9898\u5E72\u5185\u5BB9"}),Gl.createElement(Ca,{getTagData:bn,qitem:ie,exerciseitem:ct,TagDiscipline:he,form:In}))))},Ju=ae(81327),ss=ae(14739),Cr=ae(59301),ds=Object.defineProperty,cs=Object.defineProperties,Gu=Object.getOwnPropertyDescriptors,Du=Object.getOwnPropertySymbols,gs=Object.prototype.hasOwnProperty,Hu=Object.prototype.propertyIsEnumerable,du=(ie,Se,he)=>Se in ie?ds(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Dl=(ie,Se)=>{for(var he in Se||(Se={}))gs.call(Se,he)&&du(ie,he,Se[he]);if(Du)for(var he of Du(Se))Hu.call(Se,he)&&du(ie,he,Se[he]);return ie},ql=(ie,Se)=>cs(ie,Gu(Se)),zu=(ie,Se,he)=>new Promise((ct,bt)=>{var Un=it=>{try{Jt(he.next(it))}catch(tn){bt(tn)}},bn=it=>{try{Jt(he.throw(it))}catch(tn){bt(tn)}},Jt=it=>it.done?ct(it.value):Promise.resolve(it.value).then(Un,bn);Jt((he=he.apply(ie,Se)).next())}),bs=({qitem:ie,setqitem:Se,setisedit:he,TagDiscipline:ct,exerciseitem:bt,seveeditor:Un,deleteitem:bn,showTip:Jt=!1})=>{var it,tn;const[In]=we.default.useForm();(0,b.useEffect)(()=>{var yt,Bt;In.setFieldsValue(ql(Dl({},ie),{name:ie==null?void 0:ie.question_title,choices:(yt=ie==null?void 0:ie.question_choices)==null?void 0:yt.map(Xt=>ql(Dl({},Xt),{standard_boolean:Xt!=null&&Xt.standard_boolean?1:0})),repeat_answer:!(ie!=null&&ie.repeat_answer)})),ie.shixun=(Bt=ie==null?void 0:ie.shixun)==null?void 0:Bt.map(Xt=>ql(Dl({},Xt),{defaultscore:Xt.challenge_score}))},[]);const Ht=(yt,Bt,Xt)=>{const $t=JSON.parse(JSON.stringify((ie==null?void 0:ie.shixun)||[]));$t[Xt][yt]=Bt,Se(ql(Dl({},ie),{shixun:$t}))},Ot=(yt,Bt,Xt,$t)=>{const wn=JSON.parse(JSON.stringify((ie==null?void 0:ie.shixun)||[]));wn[Xt].challenge_step_penalties[$t][yt]=Bt,Se(ql(Dl({},ie),{shixun:wn}))},mt=yt=>{var Bt;const Xt=JSON.parse(JSON.stringify((ie==null?void 0:ie.shixun)||[]));(Bt=Xt[yt])!=null&&Bt.challenge_step_penalties&&Xt[yt].challenge_step_penalties.push({id:null,score:null,start_time:null,end_time:null}),Se(ql(Dl({},ie),{shixun:Xt}))},Dt=(yt,Bt)=>{var Xt;const $t=JSON.parse(JSON.stringify((ie==null?void 0:ie.shixun)||[]));$t[yt].challenge_step_penalties,(Xt=$t[yt])!=null&&Xt.challenge_step_penalties&&$t[yt].challenge_step_penalties.splice(Bt,1),Se(ql(Dl({},ie),{shixun:$t}))};return Cr.createElement("div",null,Cr.createElement(we.default,{form:In,colon:!1,onFinish:yt=>{var Bt,Xt;let $t=ql(Dl({},yt),{question_scores:(Bt=ie==null?void 0:ie.shixun)==null?void 0:Bt.map(wn=>wn.challenge_score),item_type:ie==null?void 0:ie.question_type,choices:(Xt=yt==null?void 0:yt.choices)==null?void 0:Xt.map(wn=>ql(Dl({},wn),{is_answer:wn.standard_boolean}))});Un(Dl(Dl({},ie),$t))},onFinishFailed:yt=>zu(void 0,null,function*(){var Bt,Xt;Be.ZP.error(yt.errorFields[0].errors[0]),In.scrollToField((Xt=(Bt=yt==null?void 0:yt.errorFields)==null?void 0:Bt[0])==null?void 0:Xt.name,{behavior:"smooth",block:"center"})})},Cr.createElement("div",{style:{display:"flex",alignItems:"center"}},Cr.createElement("div",{style:{flex:1}},Cr.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Cr.createElement("span",null,"\u5B9E\u8BAD\u9898")),((it=bt==null?void 0:bt.exercise)==null?void 0:it.exercise_status)==1&&!(ie!=null&&ie.isadd)&&Cr.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{bn()}},Cr.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Cr.createElement(ke.ZP,{onClick:()=>{var yt,Bt;In.setFieldsValue(ql(Dl({},ie),{name:ie==null?void 0:ie.question_title,choices:(yt=ie==null?void 0:ie.question_choices)==null?void 0:yt.map(Xt=>ql(Dl({},Xt),{standard_boolean:Xt!=null&&Xt.standard_boolean?1:0})),repeat_answer:!(ie!=null&&ie.repeat_answer)})),ie.shixun=(Bt=ie==null?void 0:ie.shixun)==null?void 0:Bt.map(Xt=>ql(Dl({},Xt),{challenge_score:Xt.defaultscore})),Se(Dl({},ie)),he(!1)}},"\u53D6\u6D88"),Cr.createElement(rt.Z,{overlayClassName:tt.shake,open:Jt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Cr.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Cr.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")},Cr.createElement(ke.ZP,{className:"ml20",type:"primary",onClick:()=>zu(void 0,null,function*(){var yt,Bt,Xt,$t;if(((Bt=(yt=ie==null?void 0:ie.shixun)==null?void 0:yt.map)==null?void 0:Bt.call(yt,Wt=>Wt.challenge_score).filter(Wt=>Wt).length)<((Xt=ie==null?void 0:ie.shixun)==null?void 0:Xt.length)){Be.ZP.info("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A");return}console.log(ie,"qitem");const wn=parseFloat(In.getFieldValue("question_score")),un=parseFloat(($t=ie==null?void 0:ie.shixun)==null?void 0:$t.map(Wt=>Wt.challenge_score).reduce((Wt,Ir)=>parseFloat(Wt||0)+parseFloat(Ir||0)));if((ie==null?void 0:ie.shixun_mode)===2&&wn!==un){Be.ZP.info("\u8003\u70B9\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BD5\u9898\u5206\u503C");return}In.submit()})},"\u4FDD\u5B58"))),Cr.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},(ie==null?void 0:ie.shixun_mode)===0?Cr.createElement(pn.Z,{text:"\uFF08\u5B9E\u8BAD\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5173\u5361\u5206\u503C\u4E4B\u548C\uFF09"}):Cr.createElement(we.default.Item,{className:tt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Cr.createElement(De.Z,{onChange:yt=>{var Bt;(ie==null?void 0:ie.shixun_mode)===1&&((Bt=ie==null?void 0:ie.shixun)==null?void 0:Bt.length)===1&&(ie.shixun[0].challenge_score=yt,Se(Dl({},ie)))},onBlur:yt=>{const Bt=Number(yt.target.value);Bt<1&&Be.ZP.error("\u5206\u6570\u4E0D\u80FD\u5C0F\u4E8E1"),Bt>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})),Cr.createElement(we.default.Item,{label:"\u9898\u5E72",name:"question_title",labelCol:{span:24},rules:[{required:!0}]},Cr.createElement(an.Z,{watch:!0,height:140,placeholder:"",defaultValue:ie.question_title})),Cr.createElement(Ea.Z,{style:{marginBottom:15},align:"middle",justify:"space-between"},Cr.createElement("div",null,Cr.createElement("span",{style:{color:"red"}},"*"),(ie==null?void 0:ie.shixun_mode)===2?"\u8003\u70B9":"\u5173\u5361","\u540D\u79F0"),Cr.createElement("a",{href:`/shixuns/${ie==null?void 0:ie.shixun_identifier}/challenges?exercise=true`,target:"_blank"},Cr.createElement("i",{onClick:()=>{},className:"iconfont icon-shixunkecheng font14 mr5"}),"\u5B9E\u8BAD\u8BE6\u60C5")),(tn=ie==null?void 0:ie.shixun)==null?void 0:tn.map((yt,Bt)=>{var Xt,$t;return Cr.createElement(b.Fragment,{key:yt.challenge_id},Cr.createElement("div",{style:{display:"flex",marginBottom:20}},Cr.createElement("div",{style:{flex:1}},Bt+1,"\u3001",yt.challenge_name),Cr.createElement("div",null,Cr.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C",Cr.createElement(De.Z,{precision:1,value:yt==null?void 0:yt.challenge_score,onChange:wn=>{const un=JSON.parse(JSON.stringify((ie==null?void 0:ie.shixun)||[]));un[Bt].challenge_score=wn;const Wt=un.every(oo=>!oo.challenge_score),Ir=parseFloat(un==null?void 0:un.map(oo=>oo.challenge_score).reduce((oo,qa)=>parseFloat(oo||0)+parseFloat(qa||0)));(ie==null?void 0:ie.shixun_mode)!==2&&In.setFieldsValue({question_score:Wt?"":Ir.toFixed(1)}),Se(ql(Dl({},ie),{shixun:un}))},max:200,min:1,style:{marginLeft:10,width:150},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle"}))),[1,2].includes(ie==null?void 0:ie.shixun_mode)&&Cr.createElement("div",{className:"mb20"},Cr.createElement(Ju.Z,null,Cr.createElement(_a.Z,{checked:yt==null?void 0:yt.is_time_limit,onChange:wn=>Ht("is_time_limit",wn,Bt)}),Cr.createElement("span",{className:"c-grey-333"},"\u5F00\u542F\u5B8C\u6210\u65F6\u95F4\u9650\u5236\uFF0C\u5E76\u8BBE\u7F6E\u5F97\u5206\u89C4\u5219")),[1].includes(ie==null?void 0:ie.shixun_mode)&&(yt==null?void 0:yt.is_time_limit)&&Cr.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:10}},Cr.createElement("div",null,"\u9650\u5236\u5B8C\u6210\u65F6\u95F4"),Cr.createElement(De.Z,{suffix:"\u79D2",value:yt==null?void 0:yt.time_limit,onChange:wn=>Ht("time_limit",wn,Bt),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),Cr.createElement("div",null,"\uFF0C\u6BCF\u8D85\u8FC7"),Cr.createElement(De.Z,{suffix:"\u79D2",value:yt==null?void 0:yt.timeout_second,onChange:wn=>Ht("timeout_second",wn,Bt),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),Cr.createElement("div",null,"\uFF0C\u6263\u9664"),Cr.createElement(De.Z,{suffix:"\u5206",value:yt==null?void 0:yt.deduct_point,onChange:wn=>Ht("deduct_point",wn,Bt),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),Cr.createElement("div",null,"\uFF0C\u76F4\u81F3\u6263\u5B8C\u8BE5\u9898\u5206\u503C")),[2].includes(ie==null?void 0:ie.shixun_mode)&&(yt==null?void 0:yt.is_time_limit)&&Cr.createElement(Cr.Fragment,null,Cr.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:10}},Cr.createElement("div",null,"\u9650\u5236\u5B8C\u6210\u65F6\u95F4"),Cr.createElement(De.Z,{suffix:"\u79D2",value:yt==null?void 0:yt.time_limit,onChange:wn=>Ht("time_limit",wn,Bt),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),Cr.createElement("div",null,"\uFF0C\u8D85\u8FC7\u65F6\u95F4\u4E0D\u5F97\u5206\uFF0C\u53EF\u4EE5\u8BBE\u7F6E\u5B66\u5458\u5728\u6307\u5B9A\u65F6\u95F4\u5185\u5B8C\u6210\u6263\u9664\u4E0D\u540C\u5206\u503C")),!!((Xt=yt==null?void 0:yt.challenge_step_penalties)!=null&&Xt.length)&&Cr.createElement("div",{className:"mt20 p20",style:{backgroundColor:"#F6F7F9",display:"flex",flexDirection:"column",gap:20}},($t=yt==null?void 0:yt.challenge_step_penalties)==null?void 0:$t.map((wn,un)=>Cr.createElement(Ea.Z,{key:un,align:"middle"},Cr.createElement("div",null,"\u5B8C\u6210\u65F6\u95F4"),Cr.createElement(De.Z,{suffix:"\u79D2",value:wn==null?void 0:wn.start_time,onChange:Wt=>Ot("start_time",Wt,Bt,un),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),Cr.createElement("div",null,"-"),Cr.createElement(De.Z,{suffix:"\u79D2",value:wn==null?void 0:wn.end_time,onChange:Wt=>Ot("end_time",Wt,Bt,un),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),Cr.createElement("div",null,"\uFF0C\u6263\u9664"),Cr.createElement(De.Z,{suffix:"\u5206",value:wn==null?void 0:wn.score,onChange:Wt=>Ot("score",Wt,Bt,un),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),Cr.createElement("i",{className:"iconfont icon-shanchu15 c-red current ml20",onClick:()=>Dt(Bt,un)})))),Cr.createElement(ss.op,{onClick:()=>mt(Bt),className:"mt20",shape:"default"},"\u6DFB\u52A0\u5F97\u5206\u89C4\u5219"))))}))))},Na={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"},Xu=ae(1710),Pu=ae(10438),zi=ae(24334),ra=ae(59301);const Vu=["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"],fs=[{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 eu=({qitem:ie,exercise:Se})=>{var he,ct,bt,Un,bn,Jt,it,tn,In,Ht,Ot,mt,Dt,yt,Bt,Xt,$t,wn,un,Wt,Ir,oo,qa,Yr;return ra.createElement("div",{className:Na.warp},((ie==null?void 0:ie.question_type)===0||(ie==null?void 0:ie.question_type)===2)&&ra.createElement("div",{className:Na.normalWrap},(he=ie==null?void 0:ie.question_choices)==null?void 0:he.map(($n,Kr)=>ra.createElement("div",{className:Na.redio},!($n!=null&&$n.standard_boolean)&&ra.createElement("span",{className:Na.redioitem}),($n==null?void 0:$n.standard_boolean)&&ra.createElement("i",{className:`${Na.redioitemyes} icon-duigou1`}),ra.createElement("span",{className:`${$n!=null&&$n.standard_boolean?Na.titleyes:Na.title} ${Na.indexTag}`},(ie==null?void 0:ie.question_type)===0?Vu[Kr]:""),ra.createElement(kt.Z,{className:$n!=null&&$n.standard_boolean?Na.titleyes:Na.title,value:$n==null?void 0:$n.choice_text}),($n==null?void 0:$n.standard_boolean)&&ra.createElement("div",{className:Na.yestag},"\u6B63\u786E\u7B54\u6848")))),(ie==null?void 0:ie.question_type)===1&&ra.createElement("div",{className:Na.normalWrap},(ct=ie==null?void 0:ie.question_choices)==null?void 0:ct.map(($n,Kr)=>ra.createElement("div",{className:Na.checkbox},!($n!=null&&$n.standard_boolean)&&ra.createElement("span",{className:Na.checkboxitem}),($n==null?void 0:$n.standard_boolean)&&ra.createElement("i",{className:`${Na.checkboxitemyes} icon-duigou1`}),ra.createElement("span",{className:`${$n!=null&&$n.standard_boolean?Na.titleyes:Na.title} ${Na.indexTag}`},Vu[Kr]),ra.createElement(kt.Z,{className:$n!=null&&$n.standard_boolean?Na.titleyes:Na.title,value:$n==null?void 0:$n.choice_text}),($n==null?void 0:$n.standard_boolean)&&ra.createElement("div",{className:Na.yestag},"\u6B63\u786E\u7B54\u6848")))),(ie==null?void 0:ie.question_type)===3&&ra.createElement("div",{className:Na.completion},(bt=ie==null?void 0:ie.standard_answers)==null?void 0:bt.map(($n,Kr)=>{var lo;return ra.createElement(Ea.Z,{align:"top"},ra.createElement("span",{className:Na.title},"\u586B\u7A7A\u9879",Kr+1),ra.createElement("div",{className:Na.content},(lo=$n.answer_text)==null?void 0:lo.map((Do,Lr)=>ra.createElement("div",{key:Lr,className:Na.items,style:($n==null?void 0:$n.model)===2?{border:0,padding:0}:{}},($n==null?void 0:$n.model)===1?ra.createElement("pre",{className:"mb0"},Do):ra.createElement(Pu.Z,{value:Do,disabled:!0})))))})),(ie==null?void 0:ie.question_type)===4&&ra.createElement("div",{className:Na.simple},ra.createElement("div",{className:Na.title},"\u53C2\u8003\u7B54\u6848"),ra.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Un=ie==null?void 0:ie.answer_texts)!=null&&Un[0]?ra.createElement(kt.Z,{className:Na.content,value:(bn=ie==null?void 0:ie.answer_texts)==null?void 0:bn[0]}):ra.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),ra.createElement("div",{className:"mt20 "},ra.createElement("span",{className:Na.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),ra.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},ie!=null&&ie.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))),(ie==null?void 0:ie.question_type)===5&&ra.createElement("div",{className:Na.shixunWrapper},(Jt=ie==null?void 0:ie.shixun)==null?void 0:Jt.map(($n,Kr)=>{var lo,Do;return ra.createElement("div",null,ra.createElement("div",{key:Kr,className:`${Na.shixun} mb30`},ra.createElement("span",{style:{flexShrink:0},className:Na.score},"\uFF08",$n==null?void 0:$n.challenge_score,"\u5206\uFF09"),ra.createElement(rt.Z,{title:`${(ie==null?void 0:ie.index)+"."+(Kr+1)}\u3001${$n==null?void 0:$n.challenge_name}`},ra.createElement("span",{style:{width:"fit-content",marginRight:"auto"},className:Na.qtitle},(ie==null?void 0:ie.index)+"."+(Kr+1),"\u3001",$n==null?void 0:$n.challenge_name)),($n==null?void 0:$n.is_time_limit)&&ra.createElement("span",{className:"pl10",style:{color:"#FF6800",flexShrink:0}},"\u5DF2\u5F00\u542F\u5B8C\u6210\u65F6\u95F4\u9650\u5236")),((Do=(lo=Se==null?void 0:Se.editData)==null?void 0:lo.exercise)==null?void 0:Do.show_challenge_task_pass)&&ra.createElement(kt.Z,{className:Na.content,value:($n==null?void 0:$n.task_pass)||"\u6682\u65E0\u5173\u5361\u63CF\u8FF0"}))})),(ie==null?void 0:ie.question_type)===6&&ra.createElement("div",{className:Na.program,style:{border:!((tn=(it=Se==null?void 0:Se.editData)==null?void 0:it.exercise)!=null&&tn.show_hack_sets)&&!((Ht=(In=Se==null?void 0:Se.editData)==null?void 0:In.exercise)!=null&&Ht.show_hack_description)&&"none"}},((mt=(Ot=Se==null?void 0:Se.editData)==null?void 0:Ot.exercise)==null?void 0:mt.show_hack_sets)&&ra.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},ra.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},ra.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),ra.createElement(Xu.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:($n,Kr,lo)=>lo+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:($n,Kr,lo)=>ra.createElement(rt.Z,{title:ra.createElement("pre",null,$n)},ra.createElement("div",{className:Na.divname},$n))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:($n,Kr,lo)=>ra.createElement(rt.Z,{title:ra.createElement("pre",null,$n)}," ",ra.createElement("div",{className:Na.divname},$n))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:ie==null?void 0:ie.hack_sets})),((yt=(Dt=Se==null?void 0:Se.editData)==null?void 0:Dt.exercise)==null?void 0:yt.show_hack_description)&&ra.createElement("div",null,ra.createElement(kt.Z,{className:Na.content,value:(ie==null?void 0:ie.description)||"- -"}))),(ie==null?void 0:ie.question_type)===7&&((Bt=ie==null?void 0:ie.sub_exercise_questions)==null?void 0:Bt.map(($n,Kr)=>{var lo,Do,Lr,Lo,Io,Al;return ra.createElement("div",{key:Kr},ra.createElement("div",{className:Na.combination},ra.createElement("span",{className:Na.score},$n==null?void 0:$n.question_score,"\u5206"),ra.createElement("span",{className:Na.qtype},(lo=fs.find(On=>On.type==$n.question_type))==null?void 0:lo.name),ra.createElement("span",{className:Na.qtitle},Kr+1,"\u3001",$n==null?void 0:$n.question_title)),($n.question_type===0||$n.question_type===2)&&ra.createElement("div",{className:Na.warp,style:{padding:"30px 58px",paddingBottom:0}},ra.createElement("div",null,(Do=$n==null?void 0:$n.question_choices)==null?void 0:Do.map((On,fl)=>ra.createElement("div",{className:Na.redio,key:fl},!(On!=null&&On.standard_boolean)&&ra.createElement("span",{className:Na.redioitem}),(On==null?void 0:On.standard_boolean)&&ra.createElement("i",{className:`${Na.redioitemyes} icon-duigou1`}),$n.question_type===2&&ra.createElement("span",{className:`${On!=null&&On.standard_boolean?Na.titleyes:Na.title} ${Na.indexTag}`},Vu[fl]),ra.createElement(kt.Z,{className:On!=null&&On.standard_boolean?Na.titleyes:Na.title,value:On==null?void 0:On.choice_text}),(On==null?void 0:On.standard_boolean)&&ra.createElement("div",{className:Na.yestag},"\u6B63\u786E\u7B54\u6848"))))),$n.question_type===1&&ra.createElement("div",{className:Na.normalWrap},(Lr=$n==null?void 0:$n.question_choices)==null?void 0:Lr.map((On,fl)=>ra.createElement("div",{className:Na.checkbox,key:fl},!(On!=null&&On.standard_boolean)&&ra.createElement("span",{className:Na.checkboxitem}),(On==null?void 0:On.standard_boolean)&&ra.createElement("i",{className:`${Na.checkboxitemyes} icon-duigou1`}),ra.createElement("span",{className:`${On!=null&&On.standard_boolean?Na.titleyes:Na.title} ${Na.indexTag}`},Vu[fl]),ra.createElement(kt.Z,{className:On!=null&&On.standard_boolean?Na.titleyes:Na.title,value:On==null?void 0:On.choice_text}),(On==null?void 0:On.standard_boolean)&&ra.createElement("div",{className:Na.yestag},"\u6B63\u786E\u7B54\u6848")))),$n.question_type===3&&ra.createElement("div",{className:Na.completion},(Lo=$n==null?void 0:$n.standard_answers)==null?void 0:Lo.map((On,fl)=>{var xl;return ra.createElement(Ea.Z,{align:"top"},ra.createElement("span",{className:Na.title},"\u586B\u7A7A\u9879",fl+1),ra.createElement("div",{className:Na.content},(xl=On.answer_text)==null?void 0:xl.map((ko,zn)=>ra.createElement("div",{key:zn,className:Na.items},ra.createElement("pre",{className:"mb0"},ko)))))})),$n.question_type===4&&ra.createElement("div",{className:Na.simple},ra.createElement("div",{className:Na.title},"\u53C2\u8003\u7B54\u6848"),ra.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Io=$n==null?void 0:$n.answer_texts)!=null&&Io[0]?ra.createElement(kt.Z,{className:Na.content,value:(Al=$n==null?void 0:$n.answer_texts)==null?void 0:Al[0]}):ra.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),ra.createElement("div",{className:"mt20 "},ra.createElement("span",{className:Na.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),ra.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},$n!=null&&$n.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))))})),(ie==null?void 0:ie.question_type)===8&&ra.createElement("div",null,ra.createElement(kt.Z,{disabledFill:!0,className:Na.content,showProgramFill:!0,value:zi.Base64.decode(((Xt=ie==null?void 0:ie.program_attr)==null?void 0:Xt.code)||"")})),((ie==null?void 0:ie.question_type)<=4||[6,8].includes(ie==null?void 0:ie.question_type))&&ra.createElement("div",{className:Na.bottom},ra.createElement("div",{className:`${Na.bottomitem} mb30`},ra.createElement("span",{className:Na.left},"\u89E3\u6790"),ra.createElement("span",{className:Na.right},ie!=null&&ie.analysis?ra.createElement(kt.Z,{value:ie==null?void 0:ie.analysis}):ra.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),ra.createElement("div",{className:`${Na.bottomitem} mb30`},ra.createElement("span",{className:Na.left},"\u96BE\u5EA6"),ra.createElement("span",{className:Na.right},(ie==null?void 0:ie.difficulty)===1?"\u7B80\u5355":(ie==null?void 0:ie.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),ra.createElement("div",{className:Na.bottomitem},ra.createElement("span",{className:Na.left},"\u77E5\u8BC6\u70B9"),ra.createElement(rt.Z,{title:(($t=ie==null?void 0:ie.tag_discipline_names)==null?void 0:$t.length)<=0||((wn=ie==null?void 0:ie.tag_discipline_names)==null?void 0:wn.length)==1&&["-"].includes(ie==null?void 0:ie.tag_discipline_names[0])?"\u6682\u672A\u8BBE\u7F6E~":(Wt=(un=ie==null?void 0:ie.tag_discipline_names)==null?void 0:un.join("\uFF1B"))==null?void 0:Wt.toString()},ra.createElement("span",{className:Na.right},((Ir=ie==null?void 0:ie.tag_discipline_names)==null?void 0:Ir.length)<=0?ra.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):((oo=ie==null?void 0:ie.tag_discipline_names)==null?void 0:oo.length)==1&&["-"].includes(ie==null?void 0:ie.tag_discipline_names[0])?ra.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):(Yr=(qa=ie==null?void 0:ie.tag_discipline_names)==null?void 0:qa.join("\uFF1B"))==null?void 0:Yr.toString())))))},Lu=ae(73256),Wu=ae(88637),Ll=ae(59301),ps=Object.defineProperty,ce=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,st=(ie,Se,he)=>Se in ie?ps(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,at=(ie,Se)=>{for(var he in Se||(Se={}))Ne.call(Se,he)&&st(ie,he,Se[he]);if(fe)for(var he of fe(Se))Ie.call(Se,he)&&st(ie,he,Se[he]);return ie},Lt=(ie,Se)=>ce(ie,ge(Se)),Nt=(ie,Se,he)=>new Promise((ct,bt)=>{var Un=it=>{try{Jt(he.next(it))}catch(tn){bt(tn)}},bn=it=>{try{Jt(he.throw(it))}catch(tn){bt(tn)}},Jt=it=>it.done?ct(it.value):Promise.resolve(it.value).then(Un,bn);Jt((he=he.apply(ie,Se)).next())}),Kn=({qitem:ie,setisedit:Se,TagDiscipline:he,exerciseitem:ct,seveeditor:bt,deleteitem:Un,getTagData:bn,init:Jt,showTip:it=!1})=>{var tn,In,Ht,Ot;const[mt]=we.default.useForm(),{unified_ai_setting:Dt,ai_review_settings:yt}=ct==null?void 0:ct.exercise,Bt=Dt?yt:((tn=ie==null?void 0:ie.ai_review_settings)==null?void 0:tn.length)>0?ie.ai_review_settings:yt;return(0,b.useEffect)(()=>{mt.setFieldsValue(Lt(at({},ie),{name:ie.question_title,answer_texts:ie.answer_texts,repeat_answer:!ie.repeat_answer,ai_review_settings:Bt}))},[ie]),Ll.createElement("div",null,Ll.createElement(we.default,{form:mt,colon:!1,onFinish:Xt=>{var $t;($t=ct==null?void 0:ct.exercise)!=null&&$t.is_open_ai_review&&!(0,pt.BR)(Xt==null?void 0:Xt.ai_review_settings)||bt(Lt(at(at({},ie),Xt),{answer_texts:Xt==null?void 0:Xt.answer_texts,question_title:Xt==null?void 0:Xt.name}))},onFinishFailed:Xt=>Nt(void 0,null,function*(){var $t,wn;Be.ZP.error(Xt.errorFields[0].errors[0]),mt.scrollToField((wn=($t=Xt==null?void 0:Xt.errorFields)==null?void 0:$t[0])==null?void 0:wn.name,{behavior:"smooth",block:"center"})})},Ll.createElement("div",{style:{display:"flex",alignItems:"center"}},Ll.createElement("div",{style:{flex:1}},Ll.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Ll.createElement("span",null,"\u7B80\u7B54\u9898")),((In=ct==null?void 0:ct.exercise)==null?void 0:In.exercise_status)==1&&!(ie!=null&&ie.isadd)&&Ll.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Un()}},Ll.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Ll.createElement(ke.ZP,{onClick:()=>{ie.isadd?(Se(!1),Jt()):(mt.setFieldsValue(Lt(at({},ie),{name:ie==null?void 0:ie.question_title,answer_texts:ie.answer_texts||[],repeat_answer:!(ie!=null&&ie.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),Ll.createElement(rt.Z,{overlayClassName:tt.shake,open:it,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Ll.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Ll.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")},Ll.createElement(ke.ZP,{type:"primary",className:"ml20",onClick:()=>{mt.submit()}},"\u4FDD\u5B58"))),Ll.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Ll.createElement(we.default.Item,{className:tt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Ll.createElement(De.Z,{onBlur:Xt=>{Xt.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})),Ll.createElement(Wu.W,{form:mt,showKeywords:!0,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"}),((Ht=ct==null?void 0:ct.exercise)==null?void 0:Ht.is_open_ai_review)&&!((Ot=ct==null?void 0:ct.exercise)!=null&&Ot.unified_ai_setting)&&Ll.createElement(Er,{form:mt,qitem:ie}),Ll.createElement(Ca,{getTagData:bn,qitem:ie,exerciseitem:ct,TagDiscipline:he,form:mt}))))},Vt=ae(59301),fn=(ie,Se,he)=>new Promise((ct,bt)=>{var Un=it=>{try{Jt(he.next(it))}catch(tn){bt(tn)}},bn=it=>{try{Jt(he.throw(it))}catch(tn){bt(tn)}},Jt=it=>it.done?ct(it.value):Promise.resolve(it.value).then(Un,bn);Jt((he=he.apply(ie,Se)).next())}),Rn=({setScoreShow:ie,ScoreShow:Se,exerciseitem:he,getdata:ct})=>{var bt,Un,bn;const[Jt,it]=(0,b.useState)(!1);function tn(){return fn(this,null,function*(){var In,Ht,Ot;let mt=(Ht=(In=he==null?void 0:he.exercise_question_types)==null?void 0:In.filter(yt=>yt.Singlequestion))==null?void 0:Ht.map(yt=>({question_type:yt.question_type,score:yt.Singlequestion})),Dt=yield(0,te.ZP)(`/api/exercises/${(Ot=he==null?void 0:he.exercise)==null?void 0:Ot.id}/batch_set_score.json`,{method:"POST",body:{question_arr:mt}});(Dt==null?void 0:Dt.status)===0&&ct()})}return Vt.createElement("div",null,Se&&Vt.createElement(Ue.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:Se,width:640,centered:!0,zIndex:10,className:tt.scoremodal,onCancel:()=>{ie(!1)},onOk:()=>{var In,Ht,Ot;if(he!=null&&he.use_blank_score&&((Ot=(Ht=(In=he==null?void 0:he.exercise_question_types)==null?void 0:In.filter(mt=>mt.name==="\u586B\u7A7A\u9898"))==null?void 0:Ht[0])!=null&&Ot.Singlequestion)){it(!0);return}tn(),ie(!1)}},Vt.createElement("div",{className:"c-black"},"\u603B\u5206",Vt.createElement("span",{className:"ml10 c-light-primary"},(he==null?void 0:he.exercise_question_types.length)>0&&((bt=he==null?void 0:he.exercise_types)==null?void 0:bt.q_scores))),Vt.createElement("div",{className:tt.content},Vt.createElement("span",null,"\u9898\u578B\u540D\u79F0"),Vt.createElement("span",null,"\u5C0F\u9898\u603B\u6570"),Vt.createElement("span",null,"\u9898\u578B\u603B\u5206"),Vt.createElement("span",null,"\u64CD\u4F5C")),(bn=(Un=he==null?void 0:he.exercise_question_types)==null?void 0:Un.filter(In=>In.name!=="\u7EC4\u5408\u9898"))==null?void 0:bn.map(In=>{var Ht;return Vt.createElement("div",{className:tt.items},Vt.createElement("span",null,In==null?void 0:In.name),Vt.createElement("span",null,(Ht=In==null?void 0:In.items)==null?void 0:Ht.length),Vt.createElement("span",null,In==null?void 0:In.score),Vt.createElement("span",null,"\u6BCF\u9898",Vt.createElement(De.Z,{max:100,precision:1,min:.1,onChange:Ot=>{In.Singlequestion=Ot},style:{width:90,height:38,margin:"0px 10px",display:"flex",alignItems:"center"}}),"\u5206"))})),Vt.createElement(Ue.default,{title:!1,footer:!1,centered:!0,zIndex:20,open:Jt,width:640,closable:!1,className:tt.scoremodal},Vt.createElement("div",{style:{marginTop:40}},"\u586B\u7A7A\u9898\u4E2D\u5B58\u5728",Vt.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"),Vt.createElement("div",{className:tt.bottom},Vt.createElement(ke.ZP,{className:tt.no,onClick:()=>{it(!1)}},"\u53D6\u6D88"),Vt.createElement(ke.ZP,{className:tt.yes,onClick:()=>{tn(),it(!1),ie(!1)}},"\u786E\u8BA4"))))},wt=ae(99313),dn=ae(98228),Tn=ae(58421),oa={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"},Sa=ae(8418),gn={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 ka=["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 ha=({qitem:ie})=>{var Se,he,ct,bt,Un,bn,Jt,it,tn,In;return b.createElement("div",{className:gn.warp},b.createElement("div",{className:gn.mainPart},b.createElement("div",{className:gn.qcount},(ie==null?void 0:ie.question_type)===8&&b.createElement(kt.Z,{className:gn.content,showProgramFill:!0,value:(Se=ie==null?void 0:ie.program_attr)==null?void 0:Se.description}),(ie==null?void 0:ie.question_type)!=8&&b.createElement(kt.Z,{className:gn.qtitle,value:(ie==null?void 0:ie.name)||(ie==null?void 0:ie.title)})),((ie==null?void 0:ie.question_type)===0||(ie==null?void 0:ie.question_type)===2)&&b.createElement("div",null,(he=ie==null?void 0:ie.choices)==null?void 0:he.map((Ht,Ot)=>b.createElement("div",{className:gn.redio},!(Ht!=null&&Ht.is_answer)&&b.createElement("span",{className:gn.redioitem}),(Ht==null?void 0:Ht.is_answer)&&b.createElement("i",{className:`${gn.redioitemyes} icon-duigou1`}),b.createElement(kt.Z,{className:Ht!=null&&Ht.is_answer?gn.titleyes:gn.title,value:ka[Ot]+(Ht==null?void 0:Ht.choice_text)}),(Ht==null?void 0:Ht.is_answer)&&b.createElement("div",{className:gn.yestag},"\u6B63\u786E\u7B54\u6848")))),(ie==null?void 0:ie.question_type)===1&&b.createElement("div",null,(ct=ie==null?void 0:ie.choices)==null?void 0:ct.map((Ht,Ot)=>b.createElement("div",{className:gn.checkbox},!(Ht!=null&&Ht.is_answer)&&b.createElement("span",{className:gn.checkboxitem}),(Ht==null?void 0:Ht.is_answer)&&b.createElement("i",{className:`${gn.checkboxitemyes} icon-duigou1`}),b.createElement(kt.Z,{className:Ht!=null&&Ht.is_answer?gn.titleyes:gn.title,value:ka[Ot]+(Ht==null?void 0:Ht.choice_text)}),(Ht==null?void 0:Ht.is_answer)&&b.createElement("div",{className:gn.yestag},"\u6B63\u786E\u7B54\u6848")))),(ie==null?void 0:ie.question_type)===3&&b.createElement("div",{className:gn.completion},(bt=ie==null?void 0:ie.standard_answer)==null?void 0:bt.map((Ht,Ot)=>{var mt;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:gn.title},"\u586B\u7A7A\u9879",Ot+1),b.createElement("div",{className:gn.content},(mt=Ht==null?void 0:Ht.answer_text)==null?void 0:mt.map((Dt,yt)=>b.createElement("div",{className:gn.items},Dt))))})),(ie==null?void 0:ie.question_type)===4&&b.createElement("div",{className:gn.simple},b.createElement("div",{className:gn.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Un=ie==null?void 0:ie.answer_texts)!=null&&Un[0]?b.createElement(kt.Z,{className:gn.content,value:(bn=ie==null?void 0:ie.answer_texts)==null?void 0:bn[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(ie==null?void 0:ie.question_type)===5&&((Jt=ie==null?void 0:ie.challenge_names)==null?void 0:Jt.map((Ht,Ot)=>b.createElement("div",{className:gn.shixun},b.createElement("span",{className:gn.qtitle},b.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,pt.EM)(Ot+1),"\u9898"),Ht)))),(ie==null?void 0:ie.question_type)===6&&b.createElement("div",{className:gn.simple},b.createElement(kt.Z,{className:gn.content,value:((it=ie==null?void 0:ie.program_attr)==null?void 0:it.description)||"- -"})),(ie==null?void 0:ie.question_type)===7&&((tn=ie==null?void 0:ie.sub_item_banks)==null?void 0:tn.map((Ht,Ot)=>{var mt,Dt,yt,Bt,Xt;return b.createElement("div",null,b.createElement("div",{className:gn.combination},b.createElement("span",{className:gn.qtitle},Ht==null?void 0:Ht.name)),b.createElement("div",{className:gn.warp,style:{padding:"0px",paddingTop:20}},b.createElement("div",null,((Ht==null?void 0:Ht.item_type)=="SINGLE"||(Ht==null?void 0:Ht.item_type)=="JUDGMENT")&&((mt=Ht==null?void 0:Ht.choices)==null?void 0:mt.map(($t,wn)=>b.createElement("div",{className:gn.redio},!($t!=null&&$t.is_answer)&&b.createElement("span",{className:gn.redioitem}),($t==null?void 0:$t.is_answer)&&b.createElement("i",{className:`${gn.redioitemyes} icon-duigou1`}),b.createElement(kt.Z,{className:$t!=null&&$t.is_answer?gn.titleyes:gn.title,value:ka[wn]+($t==null?void 0:$t.choice_text)}),($t==null?void 0:$t.is_answer)&&b.createElement("div",{className:gn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Ht==null?void 0:Ht.item_type)=="MULTIPLE"&&((Dt=Ht==null?void 0:Ht.choices)==null?void 0:Dt.map(($t,wn)=>b.createElement("div",{className:gn.checkbox},!($t!=null&&$t.is_answer)&&b.createElement("span",{className:gn.checkboxitem}),($t==null?void 0:$t.is_answer)&&b.createElement("i",{className:`${gn.checkboxitemyes} icon-duigou1`}),b.createElement(kt.Z,{className:$t!=null&&$t.is_answer?gn.titleyes:gn.title,value:ka[wn]+($t==null?void 0:$t.choice_text)}),($t==null?void 0:$t.is_answer)&&b.createElement("div",{className:gn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Ht==null?void 0:Ht.item_type)=="COMPLETION"&&b.createElement("div",{className:gn.completion},(yt=Ht==null?void 0:Ht.standard_answer)==null?void 0:yt.map(($t,wn)=>{var un;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:gn.title},"\u586B\u7A7A\u9879",wn+1),b.createElement("div",{className:gn.content},(un=$t==null?void 0:$t.answer_text)==null?void 0:un.map((Wt,Ir)=>b.createElement("div",{className:gn.items},Wt))))})),(Ht==null?void 0:Ht.item_type)=="SUBJECTIVE"&&b.createElement("div",{className:gn.simple},b.createElement("div",{className:gn.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Bt=Ht==null?void 0:Ht.answer_texts)!=null&&Bt[0]?b.createElement(kt.Z,{className:gn.content,value:(Xt=Ht==null?void 0:Ht.answer_texts)==null?void 0:Xt[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(ie==null?void 0:ie.question_type)===8&&b.createElement("div",null,b.createElement(kt.Z,{disabledFill:!0,className:gn.content,showProgramFill:!0,value:zi.Base64.decode(((In=ie==null?void 0:ie.program_attr)==null?void 0:In.code)||"")})),(ie==null?void 0:ie.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"}},(ie==null?void 0:ie.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"}},(ie==null?void 0:ie.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"}},(ie==null?void 0:ie.study_count)||"0"))),b.createElement("a",{className:gn.shixunbutton,href:`/shixuns/${ie==null?void 0:ie.identifier}/challenges?exercise=true`,target:"_blank"},b.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((ie==null?void 0:ie.question_type)<=4||[6,8].includes(ie==null?void 0:ie.question_type))&&b.createElement("div",{className:gn.bottom},b.createElement("div",{className:gn.bottomitem},b.createElement("span",{className:gn.left},"\u89E3\u6790"),b.createElement("span",{className:gn.right},ie!=null&&ie.analysis?b.createElement(kt.Z,{value:ie==null?void 0:ie.analysis}):b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),b.createElement("div",{className:gn.bottomitem},b.createElement("span",{className:gn.left},"\u96BE\u5EA6"),b.createElement("span",{className:gn.right},(ie==null?void 0:ie.difficulty)===1?"\u7B80\u5355":(ie==null?void 0:ie.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),b.createElement("div",{className:gn.bottomitem},b.createElement("span",{className:gn.left},"\u77E5\u8BC6\u70B9"),b.createElement("span",{className:gn.right},ie!=null&&ie.tag_discipline?ie==null?void 0:ie.tag_discipline:b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},Jr=ae(95006),Pr=ae(42128),Ur=ae(33008),so=ae(70659),Fo=ae(93758),xo=ae(40886),ll=ae(95382),Gn=ae(59301),co=Object.defineProperty,Po=Object.defineProperties,jo=Object.getOwnPropertyDescriptors,Zo=Object.getOwnPropertySymbols,Bo=Object.prototype.hasOwnProperty,$o=Object.prototype.propertyIsEnumerable,bl=(ie,Se,he)=>Se in ie?co(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,jr=(ie,Se)=>{for(var he in Se||(Se={}))Bo.call(Se,he)&&bl(ie,he,Se[he]);if(Zo)for(var he of Zo(Se))$o.call(Se,he)&&bl(ie,he,Se[he]);return ie},el=(ie,Se)=>Po(ie,jo(Se)),No=(ie,Se,he)=>new Promise((ct,bt)=>{var Un=it=>{try{Jt(he.next(it))}catch(tn){bt(tn)}},bn=it=>{try{Jt(he.throw(it))}catch(tn){bt(tn)}},Jt=it=>it.done?ct(it.value):Promise.resolve(it.value).then(Un,bn);Jt((he=he.apply(ie,Se)).next())});const Ml=({setScoreShow:ie,ScoreShow:Se,onOk:he,isshixuns:ct,isloadings:bt,dispatch:Un,shixunsDetail:bn,exercise:Jt,SpecificDifficulty:it=!1})=>{var tn,In,Ht,Ot;let[mt,Dt]=(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:[]}),[yt,Bt]=(0,b.useState)([]),[Xt,$t]=(0,b.useState)([]),[wn,un]=(0,b.useState)([]),[Wt,Ir]=(0,b.useState)([]);const[oo,qa]=(0,b.useState)(!1),[Yr]=we.default.useForm(),[$n,Kr]=(0,b.useState)(),[lo,Do]=(0,b.useState)(!1);let[Lr,Lo]=(0,b.useState)(ct);const[Io,Al]=(0,b.useState)([]),[On,fl]=(0,b.useState)(!0),[xl,ko]=(0,b.useState)([]),[zn,Bl]=(0,b.useState)(0),[zl,Jl]=(0,b.useState)([]),Wl=[{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}],[Ql,vl]=(0,b.useState)({});let[Qi,Ni]=(0,b.useState)([]);(0,b.useEffect)(()=>{var Kt,Vn,_r,br,Mr,fo,Wo,vo,fi,kl;(((_r=(Vn=(Kt=Jt==null?void 0:Jt.editData)==null?void 0:Kt.exercise)==null?void 0:Vn.exist_item_bank_ids)==null?void 0:_r.length)>0||((fo=(Mr=(br=Jt==null?void 0:Jt.editData)==null?void 0:br.exercise)==null?void 0:Mr.exist_item_bank_shixun_ids)==null?void 0:fo.length)>0)&&Jl([...(vo=(Wo=Jt==null?void 0:Jt.editData)==null?void 0:Wo.exercise)==null?void 0:vo.exist_item_bank_ids,...(kl=(fi=Jt==null?void 0:Jt.editData)==null?void 0:fi.exercise)==null?void 0:kl.exist_item_bank_shixun_ids])},[(In=(tn=Jt==null?void 0:Jt.editData)==null?void 0:tn.exercise)==null?void 0:In.exist_item_bank_ids]);const ai=(0,b.useRef)(new Set),Ho=(0,b.useRef)(new Set);let[al,Xl]=(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 Gr=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Uo=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],yl=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[wl,Ul]=(0,b.useState)(!1),mi=()=>{Yr.resetFields(),Lr=!1,Lo(!1),Ul(!1),Yr.submit()};(0,b.useEffect)(()=>{zn>0&&setTimeout(()=>{Bl(0)},2e3)},[zn]),(0,b.useEffect)(()=>{Se&&(Yr.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),On&&Lr&&(Yr.setFieldsValue({item_type:"SHIXUN"}),mt.item_type="SHIXUN",it&&(Yr.setFieldsValue({diff:it}),mt.diff=it),Dt(jr({},mt)),fl(!1)),cl(mt),ui(),Pi({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Zi())},[Se]);function cl(Kt){return No(this,null,function*(){var Vn,_r,br;if(qa(!0),Dt(Kt),(wn==null?void 0:wn.length)<=0&&Kt.type==="5"){Ir([]),qa(!1);return}let Mr=Kt.type==="5"?wn==null?void 0:wn.filter(vo=>!Io.includes(vo)):null,fo=Kt.type==="5"?wn==null?void 0:wn.filter(vo=>Io.includes(vo)):null,Wo=yield(0,te.ZP)("/api/item_banks.json",{method:"get",params:el(jr({},Kt),{discipline_id:((Vn=Kt==null?void 0:Kt.courseid)==null?void 0:Vn[0])||null,sub_discipline_id:((_r=Kt==null?void 0:Kt.courseid)==null?void 0:_r[1])||null,ids:Mr,shixun_ids:fo,group_id:((br=Kt.group_id)==null?void 0:br.map(vo=>vo==null?void 0:vo.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})});Ir(Wo),qa(!1)})}function Zi(){return No(this,null,function*(){let Kt=yield(0,te.ZP)("/api/users/vrs_subject_names.json",{method:"Get"});(Kt==null?void 0:Kt.status)==0&&Ni(Kt==null?void 0:Kt.names)})}function Pi(Kt){return No(this,null,function*(){var Vn;let _r=yield(0,te.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:Kt}),br=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Vn=_r==null?void 0:_r.data)==null?void 0:Vn.map(Mr=>({title:Mr.name,id:Mr.id,pid:Mr.id,value:Mr.id,key:Mr.id,isLeaf:!Mr.have_child}))}];ko(br)})}function ui(){return No(this,null,function*(){let Kt=yield(0,te.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:mt.type==="5"?null:mt.type,clazz:"ItemBanksGroup"}});Bt((0,Sa.L)(Kt==null?void 0:Kt.disciplines))})}function pl(Kt){return No(this,null,function*(){var Vn,_r,br,Mr;qa(!0);let fo=(Vn=Kt.list)==null?void 0:Vn.filter(fi=>!Io.includes(fi)),Wo=(_r=Kt.list)==null?void 0:_r.filter(fi=>Io.includes(fi));if(fo.length===0&&Wo.length===0){qa(!1),Ir([]);return}let vo=yield(0,te.ZP)("/api/item_banks.json",{method:"get",params:el(jr({},Kt),{discipline_id:((br=Kt==null?void 0:Kt.courseid)==null?void 0:br[0])||null,sub_discipline_id:((Mr=Kt==null?void 0:Kt.courseid)==null?void 0:Mr[1])||null,ids:fo,shixun_ids:Wo,type:Kt.type==="5"?null:Kt.type,clazz:Kt.type==="3"?"ItemBanksGroup":null})});qa(!1),Ir(vo)})}const Ui=(0,Ee.useParams)(),[Gi,zo,yu,Fu]=(0,Ur.P)(),tu=Kt=>No(void 0,null,function*(){const Vn=yield Un({type:"shixunsDetail/release",payload:{id:Kt}});let _r=Vn==null?void 0:Vn.tag_position,br=(Vn==null?void 0:Vn.evaluation_set_position)||[],Mr=Vn.status;return Mr===0?(Be.ZP.success("\u53D1\u5E03\u6210\u529F"),cl(mt),!0):(Mr===2?Be.ZP.error(`\u7B2C${br.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):Mr===3?Be.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${_r.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)}),Ai=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":"",Yi=(Kt,Vn,_r)=>Kt.map(br=>br.key===Vn?jr(jr({},br),_r):br.children?el(jr({},br),{children:Yi(br.children,Vn,_r)}):br),Nu=Kt=>No(void 0,null,function*(){const{key:Vn}=Kt;let _r=mt.type;const br=yield(0,Fo.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Vn),type:_r}),{data:Mr,total_count:fo}=br||{};fo>0&&ko(Wo=>Yi(Wo,Vn,{children:Mr.map(vo=>({title:vo.name,id:vo.id,pid:vo.id,value:vo.id,key:vo.id,isLeaf:!vo.have_child}))}))});function Cu(Kt){console.log("----",mt),Kt==="1"&&(al.gg=jr({},mt)),Kt==="2"&&(al.scj=jr({},mt)),Kt==="3"&&(al.ttgx=jr({},mt)),Kt==="0"&&(al.wcjd=jr({},mt)),Kt==="5"&&(al.yx=jr({},mt)),Xl(jr({},al))}function yi(){mt.type==="1"&&(mt=al.gg),mt.type==="2"&&(mt=al.scj),mt.type==="3"&&(mt=al.ttgx),mt.type==="0"&&(mt=al.wcjd),mt.type==="5"&&(mt=al.yx),(mt==null?void 0:mt.item_type)==="SHIXUN"?(Lr=!0,Lo(!0)):(Lr=!1,Lo(!1)),Yr.setFieldsValue(jr({},mt)),Dt(jr({},mt)),cl(jr({},mt))}return Gn.createElement("div",null,Gn.createElement(Ue.default,{title:!1,footer:!1,open:Se,width:1360,centered:!0,className:oa.scoremodal,onCancel:()=>{ie(!1)}},Gn.createElement("div",{style:{display:"flex",alignItems:"center"}},Gn.createElement("div",{className:oa.title},"\u9898\u5E93\u9009\u9898")),Gn.createElement(wt.default,{className:oa.tabWrap,activeKey:mt.type,onChange:Kt=>{Kt==="3"?(mt.show_all_share=!0,Pi({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):mt.show_all_share=null,Kt==="0"&&Pi({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Cu(mt.type),mt.type=Kt,(mt==null?void 0:mt.item_type)==="SHIXUN"&&mt.type!=="5"&&(Lr=!0,Lo(!0)),Ul(!1),mt.type==="5"&&(Lr=!1,Lo(!1)),yi(),ui()},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",wn.length>0&&Gn.createElement("span",{className:oa.titlecount},wn.length),zn>0&&Gn.createElement("span",{className:oa.add},"+",zn)),key:"5"}]}),Gn.createElement(we.default,{layout:"inline",form:Yr,onValuesChange:(Kt,Vn)=>{var _r,br;const Mr=Object.values(Vn).some(Wo=>Wo!==null&&Wo!==""&&Wo!==void 0),fo=Vn.keyword==="";if(Ul(Mr||!fo),mt.page=1,mt.keyword=(br=(_r=mt.keyword)==null?void 0:_r.replace)==null?void 0:br.call(_r,/^\s+|\s+$/g,""),(Vn==null?void 0:Vn.item_type)==="SHIXUN"){if(mt.type==="5"?(it&&(Kt==null?void 0:Kt.item_type)==="SHIXUN"&&Yr.setFieldsValue({difficulty:it}),Lo(!1)):(it&&(Kt==null?void 0:Kt.item_type)==="SHIXUN"&&Yr.setFieldsValue({diff:it}),Lo(!0)),Kt.keyword||Kt.keyword==="")return;setTimeout(()=>{Yr.submit()},0)}else{if(Kt!=null&&Kt.courseid&&Yr.setFieldsValue({tag_discipline_id:""}),Lo(!1),Kt.keyword||Kt.keyword==="")return;Yr.submit()}},onFinish:Kt=>{var Vn;mt.type==="3"&&(!Kt.group_id||((Vn=Kt==null?void 0:Kt.group_id)==null?void 0:Vn.length)===0)?mt.show_all_share=!0:mt.show_all_share=null,Dt(jr(jr({},mt),Kt)),cl(jr(jr({},mt),Kt))}},Gn.createElement(we.default.Item,{name:"item_type"},Gn.createElement(Pe.default,{className:oa.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle",allowClear:!0},Wl.map(Kt=>Gn.createElement(Pe.default.Option,{key:Kt.value},Kt.name)))),Gn.createElement(we.default.Item,{name:"courseid"},Gn.createElement(xe.Z,{className:oa.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:yt})),!Lr&&Gn.createElement(we.default.Item,{name:"tag_discipline_id"},Gn.createElement(Pe.default,{className:oa.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(Ht=Wt==null?void 0:Wt.tag_disciplines)==null?void 0:Ht.map(Kt=>Gn.createElement(Pe.default.Option,{key:Kt.id},Kt.name)))),Lr&&Gn.createElement(we.default.Item,{name:"vrs_name"},Gn.createElement(Pe.default,{className:oa.selectWrapper,placeholder:"\u79D1\u76EE",style:{width:118},size:"middle",allowClear:!0},(Ot=[{id:"",name:"\u5168\u90E8"},...(Qi==null?void 0:Qi.map(Kt=>({id:Kt,name:Kt})))||[]])==null?void 0:Ot.map(Kt=>Gn.createElement(Pe.default.Option,{key:Kt.id},Kt.name)))),Gn.createElement(we.default.Item,{name:Lr?"diff":"difficulty"},Gn.createElement(Pe.default,{className:oa.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!Lr&&Gr.map(Kt=>Gn.createElement(Pe.default.Option,{value:Kt.value,key:Kt.value},Kt.name)),Lr&&Uo.map(Kt=>Gn.createElement(Pe.default.Option,{value:Kt.value,key:Kt.value},Kt.name)))),Lr&&Gn.createElement(we.default.Item,{name:"shixun_publish_status"},Gn.createElement(Pe.default,{className:oa.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},yl.map(Kt=>Gn.createElement(Pe.default.Option,{key:Kt.value},Kt.name)))),(mt.type==="3"||mt.type==="0")&&!Lr&&Gn.createElement(we.default.Item,{name:"group_id"},Gn.createElement(dn.default,{treeDataSimpleMode:!0,style:{width:118},className:oa.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(Kt,Vn)=>Vn.title.toUpperCase().indexOf(Kt.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:Nu,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:xl})),wl&&Gn.createElement("span",{className:oa.allqingchu,onClick:mi},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:oa.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Gn.createElement("i",{className:`iconfont icon-sousuo9 font14 ${oa.searchIcon}`,onClick:()=>Yr.submit()}),onSearch:Kt=>{Yr.submit()}}))),Gn.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Gn.createElement("div",{onClick:()=>{mt.updated_at==="asc"?mt.updated_at="desc":mt.updated_at="asc",Dt(el(jr({},mt),{page:1})),cl(el(jr({},mt),{page:1}))}}," ",mt.updated_at?Gn.createElement("img",{src:mt.updated_at==="asc"?Jr.Z:Pr.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:()=>{mt.quotes==="asc"?mt.quotes="desc":mt.quotes="asc",Dt(el(jr({},mt),{page:1})),cl(el(jr({},mt),{page:1}))},style:{marginLeft:20}}," ",mt.quotes?Gn.createElement("img",{src:mt.quotes==="asc"?Jr.Z:Pr.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(Xu.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Wt==null?void 0:Wt.items)||(Wt==null?void 0:Wt.shixun_list),pagination:!1,loading:oo,rowKey:Kt=>Kt.id,rowSelection:{type:"checkbox",selectedRowKeys:[...Xt,...zl],getCheckboxProps:Kt=>({disabled:Kt.shixun_tag_num===1||(zl==null?void 0:zl.find(Vn=>Kt.id===Vn))}),onSelect(Kt,Vn,_r){if(console.log("---",_r,Vn,Kt),Vn)(Lr||Kt!=null&&Kt.challenge_names)&&Al([...Io,Kt.id]),$t([...Xt,Kt.id]),Kt.identifier?ai.current.add(Kt.id):Ho.current.add(Kt.id),Bl(1),un([...wn,Kt.id]);else{Kt.identifier?ai.current.delete(Kt.id):Ho.current.delete(Kt.id);let br=wn.filter(Mr=>Mr!==Kt.id);if($t(br),un(br),Lr||Kt!=null&&Kt.challenge_names){let Mr=Io.filter(fo=>fo!==Kt.id);Al([...Mr])}if(mt.type==="5"){pl(el(jr({},mt),{list:[...br]}));return}}},onSelectAll(Kt,Vn,_r){var br,Mr;if(console.log("----",_r),Kt){const fo=_r.map(vo=>vo.id),Wo=(Mr=_r==null?void 0:_r.filter(vo=>vo==null?void 0:vo.challenge_names))==null?void 0:Mr.map(vo=>vo.id);Al([...Io,...Wo]),$t([...Xt,...fo]),un([...wn,...fo]);for(const vo of _r)vo.identifier?ai.current.add(vo.id):Ho.current.add(vo.id)}else{const fo=_r.map(kl=>kl.id),Wo=Xt.filter(kl=>!fo.some(bu=>bu===kl)),vo=(br=_r==null?void 0:_r.filter(kl=>kl==null?void 0:kl.challenge_names))==null?void 0:br.map(kl=>kl.id);$t([...Wo]),un([...Wo]);let fi=Io.filter(kl=>!vo.some(bu=>bu===kl.id));Al([...fi]),mt.type==="5"&&pl(el(jr({},mt),{list:[...Wo]}));for(const kl of fo)kl.identifier?ai.current.delete(kl):Ho.current.delete(kl)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(Kt,Vn,_r)=>{var br,Mr;return Gn.createElement(rt.Z,{title:Ai(Vn)},Gn.createElement("div",null,Lr||Vn!=null&&Vn.challenge_names?"\u5B9E\u8BAD\u9898":(Mr=(br=Wl==null?void 0:Wl.filter(fo=>fo.value===Kt))==null?void 0:br[0])==null?void 0:Mr.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:Lr?"30%":"60%",key:"name",render:(Kt,Vn,_r)=>{var br;return Gn.createElement("div",{style:{display:"flex",alignItems:"center"}},Gn.createElement(rt.Z,{title:Ai(Vn)},Gn.createElement("span",null,Gn.createElement(kt.Z,{key:1,showLines:1,showTextOnly:!0,value:Lr||Vn!=null&&Vn.challenge_names?Vn!=null&&Vn.title||Kt===null?"--":Kt:(Vn==null?void 0:Vn.item_type)=="BPROGRAM"?(br=Vn==null?void 0:Vn.program_attr)==null?void 0:br.description:Kt}))),(Vn==null?void 0:Vn.high_resources_consume)&&Gn.createElement(so.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!Lr,render:(Kt,Vn,_r)=>{var br;return Gn.createElement(rt.Z,{title:Ai(Vn)},Gn.createElement("span",null,Kt?(br=Kt==null?void 0:Kt.split("\u3001"))==null?void 0:br[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!Lr,render:(Kt,Vn,_r)=>Gn.createElement(rt.Z,{title:Ai(Vn)},Gn.createElement("span",null,Kt||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(Kt,Vn,_r)=>{var br,Mr,fo,Wo;return Gn.createElement(rt.Z,{title:Ai(Vn)},Gn.createElement("div",null,Lr||Vn!=null&&Vn.challenge_names?(Vn==null?void 0:Vn.level)||((Mr=(br=Gr==null?void 0:Gr.filter(vo=>vo.value===Kt))==null?void 0:br[0])==null?void 0:Mr.name):(Wo=(fo=Gr==null?void 0:Gr.filter(vo=>vo.value===Kt))==null?void 0:fo[0])==null?void 0:Wo.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!Lr,render:(Kt,Vn,_r)=>Gn.createElement(rt.Z,{title:Ai(Vn)},Gn.createElement("div",null,Kt||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(Kt,Vn,_r)=>Gn.createElement(rt.Z,{title:Ai(Vn)},Gn.createElement("div",null,Lr||Vn!=null&&Vn.challenge_names?(Vn==null?void 0:Vn.study_count)||(Vn==null?void 0:Vn.stu_num):Kt))},{title:Gn.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Gn.createElement(rt.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:!Lr,render:(Kt,Vn,_r)=>Gn.createElement(rt.Z,{title:Ai(Vn)},Gn.createElement("div",null,Kt||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(Kt,Vn,_r)=>Gn.createElement(rt.Z,{title:Ai(Vn)},Gn.createElement("div",{style:{flex:1,textAlign:"start"}},Gn.createElement("a",{onClick:()=>{var br,Mr;Kr(el(jr({},Vn),{question_type:Lr||Vn!=null&&Vn.challenge_names?5:(Mr=(br=Wl==null?void 0:Wl.filter(fo=>fo.value===(Vn==null?void 0:Vn.item_type)))==null?void 0:br[0])==null?void 0:Mr.question_type})),Do(!0)}},"\u67E5\u770B"),(Vn==null?void 0:Vn.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/${Vn==null?void 0:Vn.identifier}/challenges`)}},(Vn==null?void 0:Vn.shixun_name)||"--"),"\uFF1F"),onOk:()=>No(void 0,null,function*(){if(!tu(Vn==null?void 0:Vn.identifier))return new Promise((br,Mr)=>{Mr()})})})}},"\u53D1\u5E03")))}].filter(Kt=>!Kt.hidden)}),Gn.createElement(Tn.Z,{current:mt.page,total:(Wt==null?void 0:Wt.items_count)||(Wt==null?void 0:Wt.shixuns_count),style:{marginBottom:20},defaultPageSize:mt.per_page,showTotal:Kt=>Gn.createElement("span",null,"\u5171\xA0",Gn.createElement("span",{style:{color:"#165DFF"}},Kt),"\xA0\u6761\u6570\u636E"),pageSize:mt.per_page,onChange:(Kt,Vn)=>{mt.page=Kt,mt.per_page=Vn,Dt(jr({},mt)),cl(jr({},mt))}}),Gn.createElement("div",{className:oa.bottom},Gn.createElement(ke.ZP,{className:oa.no,onClick:()=>{ie(!1)}},"\u53D6\u6D88"),Gn.createElement(ke.ZP,{loading:bt,style:{width:bt&&75},className:oa.yes,onClick:()=>No(void 0,null,function*(){if((wn==null?void 0:wn.length)<=0){Be.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}let Kt=yield(0,ll.Tr)({id:[...wn==null?void 0:wn.filter(Vn=>Io.includes(Vn))],course_id:Ui.coursesId,type:"shixun"});(Kt==null?void 0:Kt.student_count)===0?he([...Ho.current],[...wn==null?void 0:wn.filter(Vn=>Io.includes(Vn))],!0,wn==null?void 0:wn.length):vl(Kt)})},"\u786E\u8BA4"))),Gn.createElement(Ue.default,{open:lo,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:oa.previewModal,width:1e3,centered:!0,onCancel:()=>{Do(!1)},onOk:()=>{Do(!1)}},Gn.createElement(ha,{qitem:$n})),Gn.createElement(xo.Z,{resdata:Ql,type:"exercise",okloading:bt,oktext:(Ql==null?void 0:Ql.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Kt=>No(void 0,null,function*(){const Vn=[],_r=[];for(const br of Ql==null?void 0:Ql.can_copy_list)Vn.push(br.id);zo(),yield he([...Ho.current],[...ai.current].filter(br=>!_r.includes(br)),!0,wn==null?void 0:wn.length,Vn)})}))};var il=(0,Ee.connect)(({shixunsDetail:ie,exercise:Se})=>({shixunsDetail:ie,exercise:Se}))(Ml),Pl=ae(94827),wo=ae(59301),Vl=Object.defineProperty,Nl=Object.defineProperties,$l=Object.getOwnPropertyDescriptors,ii=Object.getOwnPropertySymbols,mo=Object.prototype.hasOwnProperty,ul=Object.prototype.propertyIsEnumerable,tl=(ie,Se,he)=>Se in ie?Vl(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Xo=(ie,Se)=>{for(var he in Se||(Se={}))mo.call(Se,he)&&tl(ie,he,Se[he]);if(ii)for(var he of ii(Se))ul.call(Se,he)&&tl(ie,he,Se[he]);return ie},El=(ie,Se)=>Nl(ie,$l(Se)),gl=(ie,Se,he)=>new Promise((ct,bt)=>{var Un=it=>{try{Jt(he.next(it))}catch(tn){bt(tn)}},bn=it=>{try{Jt(he.throw(it))}catch(tn){bt(tn)}},Jt=it=>it.done?ct(it.value):Promise.resolve(it.value).then(Un,bn);Jt((he=he.apply(ie,Se)).next())}),xi=({qitem:ie,TagDiscipline:Se,exerciseitem:he,setisedit:ct,seveeditor:bt,deleteitem:Un,getTagData:bn,init:Jt,showTip:it=!1})=>{var tn;const[In]=we.default.useForm(),Ht=!0;return(0,b.useEffect)(()=>{var Ot,mt,Dt;In.setFieldsValue(El(Xo({},ie),{standard_answers:ie.standard_answer,difficulty:(ie==null?void 0:ie.difficult)||2,item_banks_group_id:ie.item_banks_group_id,hack:El(Xo({},ie),{time_limit:(ie==null?void 0:ie.time_limit)||3}),hack_codes:{language:(Ot=ie==null?void 0:ie.program_attr)==null?void 0:Ot.language,code:zi.Base64.decode(((mt=ie==null?void 0:ie.program_attr)==null?void 0:mt.code)||"")},hack_sets:Xo({},(Dt=ie==null?void 0:ie.hack_sets)==null?void 0:Dt[0]),repeat_answer:!ie.repeat_answer}))},[ie]),wo.createElement("div",null,wo.createElement(we.default,{form:In,colon:!1,onValuesChange:(Ot,mt)=>{var Dt,yt,Bt,Xt;if(Ot!=null&&Ot.standard_answers){let $t=((Dt=In.getFieldValue("standard_answers"))==null?void 0:Dt.length)>0&&((Bt=(yt=In.getFieldValue("standard_answers"))==null?void 0:yt.map(wn=>wn.score))==null?void 0:Bt.filter(wn=>wn));($t==null?void 0:$t.length)>0&&In.setFieldsValue({question_score:($t==null?void 0:$t.length)>0&&((Xt=$t.reduce((wn,un)=>wn+un))==null?void 0:Xt.toFixed(1))})}},onFinish:Ot=>{var mt;bt(El(Xo(Xo({},ie),Ot),{item_type:ie==null?void 0:ie.question_type,standard_answers:(mt=Ot.standard_answers)==null?void 0:mt.map((Dt,yt)=>El(Xo({},Dt),{position:yt+1})),hack_codes:El(Xo({},Ot.hack_codes),{code:zi.Base64.encode(Ot.hack_codes.code)}),standard_answer:void 0}))},onFinishFailed:Ot=>gl(void 0,null,function*(){var mt,Dt;Be.ZP.error(Ot.errorFields[0].errors[0]),In.scrollToField((Dt=(mt=Ot==null?void 0:Ot.errorFields)==null?void 0:mt[0])==null?void 0:Dt.name,{behavior:"smooth",block:"center"})})},wo.createElement("div",{style:{display:"flex",alignItems:"center"}},wo.createElement("div",{style:{flex:1}},wo.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),wo.createElement("span",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898")),((tn=he==null?void 0:he.exercise)==null?void 0:tn.exercise_status)==1&&!(ie!=null&&ie.isadd)&&wo.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Un()}},wo.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}})," \u5220\u9664"),wo.createElement(ke.ZP,{onClick:()=>{var Ot,mt,Dt,yt;ie.isadd?(ct(!1),Jt()):(In.setFieldsValue(El(Xo({},ie),{standard_answers:ie.standard_answer,difficulty:ie.difficult,item_banks_group_id:ie.item_banks_group_id,hack:El(Xo({},ie),{sub_discipline_id:(Ot=he==null?void 0:he.exercise)==null?void 0:Ot.sub_discipline_id,tag_discipline_ids:[]}),hack_codes:{language:(mt=ie==null?void 0:ie.program_attr)==null?void 0:mt.language,code:zi.Base64.decode((Dt=ie==null?void 0:ie.program_attr)==null?void 0:Dt.code)},hack_sets:Xo({},(yt=ie==null?void 0:ie.hack_sets)==null?void 0:yt[0]),repeat_answer:!ie.repeat_answer})),ct(!1))}},"\u53D6\u6D88"),wo.createElement(rt.Z,{overlayClassName:tt.shake,open:it,placement:"bottom",color:"rgba(244,156,14,0.19)",title:wo.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},wo.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")},wo.createElement(ke.ZP,{className:"ml20",type:"primary",onClick:()=>{In.submit()}},"\u4FDD\u5B58"))),wo.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},wo.createElement(pn.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}),wo.createElement(Pl.t,{form:In,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7A0B\u5E8F\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:Ht,hackidentifier:ie==null?void 0:ie.hack_identifier,answerKey:"standard_answers"}),wo.createElement(Ca,{getTagData:bn,qitem:ie,exerciseitem:he,TagDiscipline:Se,form:In}))))},Ei=ae(41510),Yl=ae(99530),Si=ae(48924),cu=ae(78267),lu=ae(57466),Hl=ae(30561),Fn=ae(59301),Kl=Object.defineProperty,iu=Object.defineProperties,Mi=Object.getOwnPropertyDescriptors,ei=Object.getOwnPropertySymbols,ml=Object.prototype.hasOwnProperty,ti=Object.prototype.propertyIsEnumerable,wi=(ie,Se,he)=>Se in ie?Kl(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Sl=(ie,Se)=>{for(var he in Se||(Se={}))ml.call(Se,he)&&wi(ie,he,Se[he]);if(ei)for(var he of ei(Se))ti.call(Se,he)&&wi(ie,he,Se[he]);return ie},Il=(ie,Se)=>iu(ie,Mi(Se)),Co=(ie,Se,he)=>new Promise((ct,bt)=>{var Un=it=>{try{Jt(he.next(it))}catch(tn){bt(tn)}},bn=it=>{try{Jt(he.throw(it))}catch(tn){bt(tn)}},Jt=it=>it.done?ct(it.value):Promise.resolve(it.value).then(Un,bn);Jt((he=he.apply(ie,Se)).next())});const{confirm:Di}=Ue.default,dl=[{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"}],_l=({user:ie,dispatch:Se,itemid:he,setisedits:ct,exercise:bt,setitemid:Un})=>{var bn,Jt,it,tn,In,Ht,Ot,mt,Dt,yt,Bt,Xt,$t,wn,un,Wt,Ir,oo,qa,Yr,$n,Kr,lo,Do,Lr,Lo,Io,Al;const[On,fl]=(0,b.useState)(),[xl,ko]=(0,b.useState)(!1),[zn,Bl]=(0,b.useState)(),[zl,Jl]=(0,b.useState)(),Wl=(0,b.useRef)(),Ql=(0,b.useRef)(),[vl,Qi]=(0,b.useState)(),[Ni,ai]=(0,b.useState)(!1),[Ho,al]=(0,b.useState)(!1),[Xl,Gr]=(0,b.useState)(),[Uo,yl]=(0,b.useState)(!1),[wl,Ul]=(0,b.useState)(!1),[mi,cl]=(0,b.useState)(!1),[Zi,Pi]=(0,b.useState)(!1),[ui,pl]=(0,b.useState)(!1),[Ui,Gi]=(0,b.useState)(!1),zo=(0,Ee.useParams)(),[yu,Fu]=(0,b.useState)(!1),[tu]=we.default.useForm(),[Ai,Yi]=(0,b.useState)(!1),[Nu,Cu]=(0,b.useState)(!1),[yi,Kt]=(0,b.useState)(!1),[Vn,_r]=(0,b.useState)(!1),br=(0,b.useRef)();(0,b.useEffect)(()=>{he&&fo()},[he]),(0,b.useEffect)(()=>{ct(Ho)},[Ho]),(0,b.useEffect)(()=>{zn!=null&&zn.question_id&&(Jl(zn==null?void 0:zn.question_score),Ql.current=zn==null?void 0:zn.question_id)},[zn]);const Mr=ta=>Co(void 0,null,function*(){let or=yield Se({type:"newExercisePaper/getTagDiscipline",payload:{sub_discipline_id:ta}});Se({type:"globalSetting/footerToggle",payload:!1}),Gr(or)});function fo(){return Co(this,null,function*(){var ta,or,Xr,io,po,Hr;ai(!0),ko(!0);const ho=yield Se({type:"exercise/editExercise",payload:{categoryId:he}});ai(!1),ko(!1),fl(ho),pl(!1),(ta=ho==null?void 0:ho.exercise)!=null&&ta.sub_discipline_id&&Mr((or=ho==null?void 0:ho.exercise)==null?void 0:or.sub_discipline_id),Bl(Il(Sl({},(po=(io=(Xr=ho==null?void 0:ho.exercise_question_types)==null?void 0:Xr[0])==null?void 0:io.items)==null?void 0:po[0]),{index:1})),Qi(Il(Sl({},(Hr=ho==null?void 0:ho.exercise_question_types)==null?void 0:Hr[0]),{indexs:1}))})}function Wo(ta,or=!0){return Co(this,null,function*(){var Xr,io,po,Hr;or&&(ai(!0),ko(!0));const ho=yield Se({type:"exercise/editExercise",payload:{categoryId:he}});fl(ho);let Yo=[];(Xr=ho==null?void 0:ho.exercise_question_types)==null||Xr.map(Vr=>{var Ko;(Ko=Vr==null?void 0:Vr.items)==null||Ko.map((Ji,vi)=>{Yo.push(Il(Sl({},Ji),{index:vi+1}))})});let zr=(io=Yo.filter(Vr=>Vr.question_id===(ta==null?void 0:ta.id)))==null?void 0:io[0],yr=(Hr=((po=ho==null?void 0:ho.exercise_question_types)==null?void 0:po.map((Vr,Ko)=>{if((zr==null?void 0:zr.question_type)===(Vr==null?void 0:Vr.question_type))return Il(Sl({},Vr),{indexs:Ko+1})})).filter(Vr=>Vr))==null?void 0:Hr[0];Qi(Sl({},yr)),Bl(Sl({},zr)),Jl(zr==null?void 0:zr.question_score),ai(!1),ko(!1),pl(!1)})}function vo(ta){return Co(this,null,function*(){var or;let Xr=Il(Sl({},ta),{repeat_answer:!ta.repeat_answer,difficulty:(ta==null?void 0:ta.difficulty)||2,item_type:ta.question_type,sub_discipline_id:((or=ta==null?void 0:ta.sub_discipline_id)==null?void 0:or[1])||"",tag_discipline_ids:[],hack:Il(Sl({},ta==null?void 0:ta.hack),{difficult:(ta==null?void 0:ta.difficulty)||2}),hack_identifier:sessionStorage.projectFill});ta.tag_discipline_ids&&(Xr.tag_discipline_ids=Array.isArray(ta.tag_discipline_ids)?ta.tag_discipline_ids:[ta.tag_discipline_ids]);let io=ui?`/api/exercises/${he}/exercise_questions`:`/api/exercise_questions/${ta==null?void 0:ta.question_id}.json`;if((ta==null?void 0:ta.is_my)===1){const po=Di({title:"\u63D0\u793A",content:Fn.createElement("div",null,Fn.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"),Fn.createElement("i",{className:"iconfont icon-guanbi",style:{position:"absolute",top:"20px",right:"20px",cursor:"pointer"},onClick:()=>{po.destroy()}})),okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>Co(this,null,function*(){Xr.is_cover=1;let Hr=yield(0,te.ZP)(io,{method:ui?"post":"PUT",body:Sl({},Xr)});(Hr==null?void 0:Hr.status)===0&&(al(!1),Wo({id:(Hr==null?void 0:Hr.exercise_question_id)||(ta==null?void 0:ta.question_id)})),po.destroy()}),onCancel:()=>Co(this,null,function*(){let Hr=yield(0,te.ZP)(io,{method:ui?"post":"PUT",body:Sl({},Xr)});(Hr==null?void 0:Hr.status)===0&&(al(!1),Wo({id:(Hr==null?void 0:Hr.exercise_question_id)||(ta==null?void 0:ta.question_id)})),po.destroy()})})}else{let po=yield(0,te.ZP)(io,{method:ui?"post":"PUT",body:Sl({},Xr)});(po==null?void 0:po.status)===0&&(al(!1),Wo({id:(po==null?void 0:po.exercise_question_id)||(ta==null?void 0:ta.question_id)}))}(0,pt.Vf)("#question-scroll-id")})}function fi(ta){return Co(this,null,function*(){var or,Xr;ko(!0);let io=yield(0,te.ZP)(`/api/exercises/${he}/sort_question_type.json`,{method:"post",body:{question_type:ta}});if(ko(!1),(io==null?void 0:io.status)===0){const po=yield Se({type:"exercise/editExercise",payload:{categoryId:he}});fl(po),pl(!1),(or=po==null?void 0:po.exercise)!=null&&or.sub_discipline_id&&Mr((Xr=po==null?void 0:po.exercise)==null?void 0:Xr.sub_discipline_id)}})}const kl=(ta,or,Xr)=>Co(void 0,null,function*(){var io;if(ta.length===0){Be.ZP.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),Xr();return}const po={id:zo==null?void 0:zo.exerciseId,file:(io=ta[0])==null?void 0:io.file,sub_discipline_id:or};Ki(po,`${Ei.Z.API_SERVER}/api/courses/${zo==null?void 0:zo.coursesId}/exercises/import_exercise.json`,Hr=>{var ho;if((Hr==null?void 0:Hr.status)===0){const Yo={};(ho=Hr==null?void 0:Hr.fail)==null||ho.forEach(Oa=>{var yr;((yr=Object.keys(Yo))==null?void 0:yr.includes(Oa.message))?Yo[Oa.message]=Yo[Oa.message]+1:Yo[Oa.message]=1});let zr=`\u6210\u529F\u5BFC\u5165${Hr==null?void 0:Hr.success}\u6761`;Object.keys(Yo).forEach(Oa=>{zr=zr+`,${Oa}${Yo[Oa]}\u6761`}),Be.ZP.success(zr),yl(!1),fo()}(Hr==null?void 0:Hr.status)===-1&&(Be.ZP.error(Hr==null?void 0:Hr.message),Xr())})}),bu=(ta,or)=>Co(void 0,null,function*(){On.exercise_types.q_scores=Number(On.exercise_types.q_scores)+Number(ta)-Number(or==null?void 0:or.question_score);const Xr=yield(0,Si.zR)({score:(0,cu.round)(ta,1),question_id:or==null?void 0:or.question_id});if((Xr==null?void 0:Xr.status)===0){Be.ZP.success("\u4FEE\u6539\u6210\u529F"),Wo({id:Ql.current},!1);return}(Xr==null?void 0:Xr.status)===-1&&Jl(or==null?void 0:or.question_score)}),Hi=()=>{_r(!0)};(0,b.useEffect)(()=>{if(Vn){const ta=setTimeout(()=>{_r(!1)},2e3);return()=>clearTimeout(ta)}},[Vn]);const Ki=(ta,or,Xr,io,po)=>{const Hr=new FormData;Object.keys(ta).forEach(Yo=>{Hr.append(Yo,ta[Yo])});const ho=new window.XMLHttpRequest;return ho.withCredentials=!0,ho.addEventListener("load",function(Yo){var zr;Xr(JSON.parse((zr=Yo==null?void 0:Yo.target)==null?void 0:zr.response))},!1),ho.addEventListener("error",function(Yo){po&&po(Yo)},!1),ho.upload.onprogress=Yo=>{io&&io(Yo)},ho.open("POST",or),ho.send(Hr),ho};function _i(){return Co(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:()=>Co(this,null,function*(){if(zn.question_id){let ta=yield(0,te.ZP)(`/api/exercise_questions/${zn.question_id}.json`,{method:"delete"});(ta==null?void 0:ta.status)===0&&(fo(),al(!1))}else Bl({}),al(!1),fo()}),cancelText:"\u53D6\u6D88"})})}const hs=ta=>Co(void 0,null,function*(){return yield(0,te.ZP)(`/api/exercises/${he}/select_questions.json`,{method:"post",body:Sl({},ta)})}),{overflow:qu,handleMouseEnter:$u,handleMouseLeave:es}=(0,Yl.I)(),Es=(ta,or)=>Fn.createElement(It.default,null,Fn.createElement(It.default.Item,{key:"0",onClick:()=>ts(ta==null?void 0:ta.question_type)},Fn.createElement("span",{className:tt.moreSpan},"\u65B0\u589E")),Fn.createElement(It.default.Item,{key:"1",disabled:or===0,onClick:()=>Co(void 0,null,function*(){if(or===0)return;if(Ho){Hi();return}let Xr=(0,pt.rz)(On==null?void 0:On.exercise_question_types,or,or-1);yield fi(Xr.map(io=>io.name))})},Fn.createElement("span",{className:tt.moreSpan},"\u4E0A\u79FB")),Fn.createElement(It.default.Item,{key:"2",disabled:or===(On==null?void 0:On.exercise_question_types.length)-1,onClick:()=>Co(void 0,null,function*(){if(or===(On==null?void 0:On.exercise_question_types.length)-1)return;if(Ho){Hi();return}let Xr=(0,pt.rz)(On==null?void 0:On.exercise_question_types,or,or+1);yield fi(Xr.map(io=>io.name))})},Fn.createElement("span",{className:tt.moreSpan},"\u4E0B\u79FB")),Fn.createElement(It.default.Item,{key:"3",onClick:()=>{var Xr;tu.setFieldsValue({name:ta.name,item_type_en:(Xr=dl.find(io=>io.id==ta.question_type))==null?void 0:Xr.nameType}),Yi(!0)}},Fn.createElement("span",{className:tt.moreSpan},"\u91CD\u547D\u540D"))),ts=ta=>{var or,Xr,io,po,Hr,ho,Yo,zr,Oa,yr,Vr,Ko,Ji,vi,Xi,Ii,mu,nu,Fi,Ss,Bs,Ps,xs,As;if(Ho){Hi();return}if(pl(!0),ta===5){cl(!0),Pi(!0);return}if(ta===6){let Us=(Xr=(or=bt==null?void 0:bt.editData)==null?void 0:or.exercise)!=null&&Xr.set_question_sub_discipline?`/problems/newcreate?express_id=${(io=On==null?void 0:On.exercise)==null?void 0:io.id}&callback_url=/classrooms/${zo.coursesId}/exercise/add/${he}?type=2&discipline_id=${(Hr=(po=bt==null?void 0:bt.editData)==null?void 0:po.exercise)==null?void 0:Hr.discipline_id}&sub_discipline_id=${(Yo=(ho=bt==null?void 0:bt.editData)==null?void 0:ho.exercise)==null?void 0:Yo.sub_discipline_id}`:`/problems/newcreate?express_id=${(zr=On==null?void 0:On.exercise)==null?void 0:zr.id}&callback_url=/classrooms/${zo.coursesId}/exercise/add/${he}?type=2`;Ee.history.push(Us);return}al(!0),Bl(ta===2?{question_type:ta,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:(yr=(Oa=bt==null?void 0:bt.editData)==null?void 0:Oa.exercise)!=null&&yr.set_question_sub_discipline?(Ko=(Vr=bt==null?void 0:bt.editData)==null?void 0:Vr.exercise)==null?void 0:Ko.discipline_id:0,sub_discipline_id:(vi=(Ji=bt==null?void 0:bt.editData)==null?void 0:Ji.exercise)!=null&&vi.set_question_sub_discipline?(Ii=(Xi=bt==null?void 0:bt.editData)==null?void 0:Xi.exercise)==null?void 0:Ii.sub_discipline_id:0,analysis:""}:{question_type:ta,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:(nu=(mu=bt==null?void 0:bt.editData)==null?void 0:mu.exercise)!=null&&nu.set_question_sub_discipline?(Ss=(Fi=bt==null?void 0:bt.editData)==null?void 0:Fi.exercise)==null?void 0:Ss.discipline_id:0,sub_discipline_id:(Ps=(Bs=bt==null?void 0:bt.editData)==null?void 0:Bs.exercise)!=null&&Ps.set_question_sub_discipline?(As=(xs=bt==null?void 0:bt.editData)==null?void 0:xs.exercise)==null?void 0:As.sub_discipline_id:0,downcase:!0,no_space:!0})},ns=[{key:1,label:"\u6279\u91CF\u5BFC\u5165",onClick:()=>{yl(!0)}},{key:2,label:Fn.createElement("div",null,Fn.createElement("img",{width:26,style:{position:"absolute",top:-2},src:Hl.$}),Fn.createElement("span",null,"\u667A\u80FD\u5BFC\u5165")),onClick:()=>{if(Ho){Hi();return}Cu(!0)}}];return console.log(vl==null?void 0:vl.question_type,zn==null?void 0:zn.question_type),Fn.createElement("div",null,Fn.createElement(qt.Z,{spinning:Ni},Fn.createElement("div",{className:tt.bg},((bn=On==null?void 0:On.exercise_types)==null?void 0:bn.q_counts)===0&&!Ho&&Fn.createElement(Xn.Z,{styles:{marginTop:180},customText:Fn.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",Fn.createElement("span",{className:"c-light-primary"},"\u5E95\u90E8\u64CD\u4F5C\u680F"),"\u8FDB\u884C\u6DFB\u52A0~")}),(((Jt=On==null?void 0:On.exercise_types)==null?void 0:Jt.q_counts)>0||Ho)&&Fn.createElement("div",{style:{textAlign:"center"}},Fn.createElement("div",{style:{marginTop:20,borderTop:"1px solid #DCDCDC",display:"block",alignItems:"stretch"}},Fn.createElement("div",{style:{backgroundColor:"#F6F7F9",display:"inline-block",position:"sticky",top:0}},Fn.createElement("div",{className:tt.left},Fn.createElement("div",{className:tt.leftAction},((it=On==null?void 0:On.exercise)==null?void 0:it.exercise_status)===1&&Fn.createElement(ke.ZP,{onClick:()=>{if(Ho){Hi();return}Ul(!0)},className:tt.Button},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C")),Fn.createElement("div",{className:tt.scrollWrapper,style:{overflow:qu},onMouseEnter:$u,onMouseLeave:es},(tn=On==null?void 0:On.exercise_question_types)==null?void 0:tn.map((ta,or)=>Fn.createElement("div",{key:or,className:"mb30"},Fn.createElement("div",{className:tt.title},Fn.createElement("div",{className:tt.titleleft},Fn.createElement("span",{style:{color:"#000000",fontWeight:400,fontSize:12}}," ",(0,pt.EM)(or+1),"\u3001\u3010",ta.name,"\u3011"),Fn.createElement("span",{style:{color:"#464F66",fontSize:12}},"\uFF08",ta.count,"\u5C0F\u9898\uFF0C\u5171",ta.score,"\u5206\uFF09")),Fn.createElement(Ce.Z,{dropdownRender:()=>Es(ta,or),placement:"bottomLeft"},Fn.createElement("div",{className:tt.more_style},Fn.createElement("i",{className:"iconfont icon-sandian font12"})))),Fn.createElement(da,{handleEditing:Hi,isedit:Ho,setBigqitem:Qi,bigitem:Il(Sl({},ta),{indexs:or+1}),setqitem:Xr=>Co(void 0,null,function*(){var io;(io=Wl.current)==null||io.blur(),Bl(Xr)}),qitem:zn,Itemid:he,getdata:Wo,data:ta.items})))))),Fn.createElement("div",{id:"question-scroll-id",style:{overflow:Ho?"hidden":"auto"},className:tt.right},!(zn!=null&&zn.isadd)&&Fn.createElement("div",{className:tt.title},!Ho&&Fn.createElement("div",{style:{flex:1}},Fn.createElement("span",{style:{color:"#000000",fontWeight:600,fontSize:16}}," ",(vl==null?void 0:vl.indexs)&&(0,pt.EM)(vl==null?void 0:vl.indexs),"\u3001\u3010",vl==null?void 0:vl.name,"\u3011"),Fn.createElement(rt.Z,{title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0"},Fn.createElement("i",{className:`${tt.edit} iconfont icon-bianji_Hover mr5 ml5 font18`,onClick:()=>{var ta;tu.setFieldsValue({name:vl.name,item_type_en:(ta=dl.find(or=>or.id==vl.question_type))==null?void 0:ta.nameType}),Yi(!0)}})),Fn.createElement("span",{style:{color:"#464F66",fontSize:16,fontWeight:400}},"\uFF08",vl==null?void 0:vl.count,"\u5C0F\u9898\uFF0C\u5171",vl==null?void 0:vl.score,"\u5206\uFF09"),(zn==null?void 0:zn.question_type)===6&&Fn.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&&Fn.createElement(Ke.default,{defaultChecked:(Ht=(In=bt==null?void 0:bt.editData)==null?void 0:In.exercise)==null?void 0:Ht.show_challenge_task_pass,onChange:ta=>Co(void 0,null,function*(){let or=yield(0,te.ZP)(`/api/exercises/${he}/update_show_columns.json`,{method:"post",body:{show_challenge_task_pass:ta.target.checked}});(or==null?void 0:or.status)===0&&(Be.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Wo({id:Ql.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u9898\u76EE\u63CF\u8FF0"),(zn==null?void 0:zn.question_type)===6&&Fn.createElement("span",{style:{marginLeft:20},onClick:()=>{var ta,or,Xr,io;Ue.default.confirm({title:"\u7F16\u7A0B\u9898\u8BBE\u7F6E",icon:null,centered:!0,closable:!0,footer:null,content:Fn.createElement("div",null,(zn==null?void 0:zn.question_type)===6&&Fn.createElement(Ke.default,{defaultChecked:(or=(ta=bt==null?void 0:bt.editData)==null?void 0:ta.exercise)==null?void 0:or.show_hack_sets,onChange:po=>Co(void 0,null,function*(){let Hr=yield(0,te.ZP)(`/api/exercises/${he}/update_show_columns.json`,{method:"post",body:{show_hack_sets:po.target.checked}});(Hr==null?void 0:Hr.status)===0&&(Be.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Ue.default.destroyAll(),Wo({id:Ql.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u6D4B\u8BD5\u7528\u4F8B"),Fn.createElement("br",null),(zn==null?void 0:zn.question_type)===6&&Fn.createElement(Ke.default,{defaultChecked:(io=(Xr=bt==null?void 0:bt.editData)==null?void 0:Xr.exercise)==null?void 0:io.show_hack_description,onChange:po=>Co(void 0,null,function*(){let Hr=yield(0,te.ZP)(`/api/exercises/${he}/update_show_columns.json`,{method:"post",body:{show_hack_description:po.target.checked}});(Hr==null?void 0:Hr.status)===0&&(Be.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Ue.default.destroyAll(),Wo({id:Ql.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")),Fn.createElement("div",{style:{display:"flex",alignItems:"center"}},(zn==null?void 0:zn.question_type)===5&&!Ho&&Fn.createElement("a",{className:tt.shixun,href:`/shixuns/${zn==null?void 0:zn.shixun_identifier}/challenges?exercise=true`,target:"_blank"},Fn.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u8BD5\u9898\u8BE6\u60C5"),!Ho&&((Ot=On==null?void 0:On.exercise)==null?void 0:Ot.exercise_status)==1&&[0,1,2,4,6].includes(zn==null?void 0:zn.question_type)&&Fn.createElement(we.default.Item,{label:"\u5206\u503C",style:{margin:"0 20px"},required:!0},Fn.createElement(De.Z,{precision:1,ref:Wl,onChange:ta=>Jl(ta),value:zl,onBlur:ta=>{bu(ta.target.value,zn)}})),!Ho&&((mt=On==null?void 0:On.exercise)==null?void 0:mt.exercise_status)==1&&Fn.createElement(rt.Z,{title:"\u5220\u9664"},Fn.createElement("span",{onClick:()=>{_i()},style:{marginRight:20},className:`${tt.delete} mr8 ml8 `},"\u5220\u9664")),(zn==null?void 0:zn.question_type)!==5&&!Ho&&Fn.createElement(Fn.Fragment,null,(zn==null?void 0:zn.is_my)==1&&Fn.createElement(rt.Z,{title:"\u67E5\u770B\u539F\u9898"},Fn.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}`)}})),Fn.createElement(rt.Z,{title:"\u52A0\u5165\u6211\u7684\u9898\u5E93"},Fn.createElement("i",{className:`${tt.tianjia} iconfont icon-jiarushitiku mr8 ml8`,onClick:()=>{br.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:Fn.createElement("div",{className:`font14 ${tt.overflow}`,style:{maxHeight:500,overflow:"auto"}},Fn.createElement("p",{className:"c-grey-333"},"\u8BF7\u9009\u62E9\u52A0\u5165\u7684\u6587\u4EF6\u5939"),Fn.createElement(qt.Z,{spinning:!1},Fn.createElement(lu.Z,{defaultValue:!0,value:br.current,onChange:ta=>br.current=ta}))),onOk:()=>Co(void 0,null,function*(){var ta;(0,Si.$l)({id:zn==null?void 0:zn.question_id,group_id:((ta=br==null?void 0:br.current)==null?void 0:ta[0])||""}).then(or=>{(or==null?void 0:or.status)==0&&(Be.ZP.success("\u52A0\u5165\u6210\u529F"),fo())})})})}}))),!Ho&&(((Dt=On==null?void 0:On.exercise)==null?void 0:Dt.exercise_status)==1||((yt=On==null?void 0:On.exercise)==null?void 0:yt.exercise_status)==2&&((Xt=(Bt=ie.userInfo)==null?void 0:Bt.course)==null?void 0:Xt.course_role)!=15||(($t=On==null?void 0:On.exercise)==null?void 0:$t.exercise_status)==3&&((un=(wn=ie.userInfo)==null?void 0:wn.course)==null?void 0:un.course_role)!=15||((Wt=On==null?void 0:On.exercise)==null?void 0:Wt.exercise_status)==4&&((oo=(Ir=ie.userInfo)==null?void 0:Ir.course)==null?void 0:oo.course_role)!=15)&&Fn.createElement(rt.Z,{title:"\u7F16\u8F91\u8BD5\u9898"},Fn.createElement("span",{onClick:()=>{(zn==null?void 0:zn.question_type)===6?Ee.history.push(`/problems/newedit/${zn==null?void 0:zn.hack_identifier}?type=exercises&express_id=${zo.exerciseId}&question_id=${zn==null?void 0:zn.question_id}&score=${zn==null?void 0:zn.question_score}&exercise=true&callback_url=/classrooms/${zo.coursesId}/exercise/add/${he}?type=2`):al(!0)},className:`${tt.edit} ml8`},"\u7F16\u8F91")))),!Ho&&Fn.createElement("div",null,Fn.createElement("div",{className:tt.qcount},Fn.createElement("span",{className:tt.score},zn==null?void 0:zn.question_score,"\u5206"),Fn.createElement(kt.Z,{className:tt.qtitle,value:(zn==null?void 0:zn.index)+`\u3001${(zn==null?void 0:zn.question_type)==8?(qa=zn==null?void 0:zn.program_attr)==null?void 0:qa.description:zn==null?void 0:zn.question_title}`}),(zn==null?void 0:zn.high_resources_consume)&&Fn.createElement(so.Z,{type:"shixun",style:{marginLeft:10}})),(zn==null?void 0:zn.question_type)===6&&Fn.createElement(mn.Z,{onEdit:()=>Kt(1),className:"mt10",dataSource:(zn==null?void 0:zn.languages)||[]}),Fn.createElement(eu,{exercise:bt,TagDiscipline:Xl,qitem:zn})),Ho&&Fn.createElement("div",null,(zn==null?void 0:zn.question_type)<=1&&Fn.createElement(Mt,{deleteitem:_i,getTagData:Mr,seveeditor:vo,exerciseitem:On,TagDiscipline:Xl,setisedit:al,qitem:zn,init:fo,showTip:Vn}),(zn==null?void 0:zn.question_type)===5&&Fn.createElement(bs,{setqitem:Bl,deleteitem:_i,seveeditor:vo,exerciseitem:On,TagDiscipline:Xl,setisedit:al,qitem:zn,showTip:Vn}),(zn==null?void 0:zn.question_type)===3&&Fn.createElement(ya,{deleteitem:_i,getTagData:Mr,seveeditor:vo,exerciseitem:On,TagDiscipline:Xl,setisedit:al,qitem:zn,init:fo,showTip:Vn}),(zn==null?void 0:zn.question_type)===2&&Fn.createElement(ao,{deleteitem:_i,getTagData:Mr,seveeditor:vo,exerciseitem:On,TagDiscipline:Xl,setisedit:al,qitem:zn,init:fo,showTip:Vn}),(zn==null?void 0:zn.question_type)===4&&Fn.createElement(Kn,{deleteitem:_i,getTagData:Mr,seveeditor:vo,exerciseitem:On,TagDiscipline:Xl,setisedit:al,qitem:zn,init:fo,showTip:Vn}),(zn==null?void 0:zn.question_type)===7&&Fn.createElement(us,{deleteitem:_i,getTagData:Mr,seveeditor:vo,exerciseitem:On,TagDiscipline:Xl,setisedit:al,qitem:zn,init:fo,showTip:Vn}),(zn==null?void 0:zn.question_type)===8&&Fn.createElement(xi,{deleteitem:_i,getTagData:Mr,seveeditor:vo,exerciseitem:On,TagDiscipline:Xl,setisedit:al,qitem:zn,init:fo,showTip:Vn}))))))),Fn.createElement("div",{className:tt.bottomdiv},Fn.createElement("div",{className:tt.exercise_styles},((Yr=On==null?void 0:On.exercise)==null?void 0:Yr.exercise_status)==1&&Fn.createElement(Fn.Fragment,null,Fn.createElement("span",{className:tt.spanBtn,onClick:()=>{if(Ho){Hi();return}cl(!0),Pi(!0)}},"\u9898\u5E93\u9009\u9898"),Fn.createElement(Ce.Z,{menu:{items:ns}},Fn.createElement("span",{className:tt.spanBtn},"\u5BFC\u5165\u8BD5\u9898")),Fn.createElement("span",{className:tt.spanBtn,onClick:()=>Co(void 0,null,function*(){var ta;let or=yield(0,te.ZP)(`/api/exercises/${zo==null?void 0:zo.exerciseId}/simulate_start_answer.json`,{method:"get",params:{coursesId:zo==null?void 0:zo.coursesId,categoryId:zo==null?void 0:zo.exerciseId}});(or==null?void 0:or.status)!=-1&&window.open(`/classrooms/${zo==null?void 0:zo.coursesId}/exercise/${zo==null?void 0:zo.exerciseId}/${(ta=ie.userInfo)==null?void 0:ta.login}/initate_answer`)})},"\u6A21\u62DF\u8003\u8BD5"),Fn.createElement("span",{className:tt.spanBtn,onClick:()=>{window.open(`/classrooms/${zo==null?void 0:zo.coursesId}/exercise/${zo==null?void 0:zo.exerciseId}/detail?random=false&tabs=2`)}},"\u8BD5\u5377\u9884\u89C8"),dl==null?void 0:dl.map(ta=>Fn.createElement(ke.ZP,{className:tt.addQuestionBtn,key:ta.id,type:"primary",onClick:()=>{ts(ta.id)}},ta.name))),(($n=On==null?void 0:On.exercise)==null?void 0:$n.exercise_status)!=1&&Fn.createElement(Fn.Fragment,null,Fn.createElement("span",{style:{width:"1022px"}})),Fn.createElement("span",{className:tt.saveBtn,onClick:()=>Co(void 0,null,function*(){var ta,or,Xr;if(Ho){Hi();return}const io=Number(On.exercise_types.q_scores);[100,120,150].includes(io)||(yield new Promise((ho,Yo)=>{Ue.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Fn.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",Fn.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},io),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>Co(void 0,null,function*(){ho("")}),onCancel:()=>{Yo()}})}));let po=(or=(ta=On==null?void 0:On.exercise_question_types)==null?void 0:ta.filter(ho=>ho.question_type===5)[0])==null?void 0:or.items,Hr=0;po==null||po.map(ho=>{ho.high_resources_consume&&(Hr=Hr+1)}),console.log(Hr),Hr>0?Se({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u63D0\u793A",count:Hr,fn:()=>{var ho;((ho=On==null?void 0:On.exercise)==null?void 0:ho.exercise_status)==1?(Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),Ee.history.push(`/classrooms/${zo==null?void 0:zo.coursesId}/exercise/${he}/detail?random=false&tabs=3`),Gi(!1)):Ee.history.back()}}}):((Xr=On==null?void 0:On.exercise)==null?void 0:Xr.exercise_status)==1?(Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),Ee.history.push(`/classrooms/${zo==null?void 0:zo.coursesId}/exercise/${he}/detail?random=false&tabs=3`),Gi(!1)):Ee.history.back()})},Fn.createElement("i",{className:"iconfont icon-baocun1",style:{fontSize:15,marginRight:5}}),"\u4FDD\u5B58\u8BD5\u5377"))),Fn.createElement(Rn,{setScoreShow:Ul,ScoreShow:wl,exerciseitem:On,getdata:fo}),mi&&Fn.createElement(il,{setScoreShow:cl,isshixuns:Zi,SpecificDifficulty:(Kr=On==null?void 0:On.exercise)==null?void 0:Kr.difficulty,isloadings:yu,ScoreShow:mi,onOk:(ta,or,Xr,io,po)=>Co(void 0,null,function*(){Fu(!0);let ho=yield hs({exam_id:he,item_bank_ids:ta,shixun_ids:or,shixun_copy_ids:po});Fu(!1),(ho==null?void 0:ho.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:()=>{fo()},onCancel:()=>{cl(!1),fo()}})})}),Fn.createElement(Lu.Z,{sub_discipline_id:(lo=On==null?void 0:On.exercise)!=null&&lo.sub_discipline_id?[(Do=On==null?void 0:On.exercise)==null?void 0:Do.discipline_id,(Lr=On==null?void 0:On.exercise)==null?void 0:Lr.sub_discipline_id]:[],visible:Uo,onCancel:()=>yl(!1),onOk:kl}),Fn.createElement(Ue.default,{title:"\u63D0\u793A",open:Ui,confirmLoading:!1,centered:!0,okText:"\u8BBE\u7F6E\u89C4\u5219",cancelText:"\u4FEE\u6539\u8BD5\u5377",footer:Fn.createElement("div",null,Fn.createElement(ke.ZP,{onClick:()=>{Gi(!1),Ee.history.back()}},"\u7A0D\u540E\u518D\u8BF4"),Fn.createElement(ke.ZP,{type:"primary",onClick:()=>{Ee.history.push(`/classrooms/${zo==null?void 0:zo.coursesId}/exercise/${he}/detail?random=false&tabs=3`),Gi(!1)}},"\u8BBE\u7F6E\u89C4\u5219")),onCancel:()=>{Gi(!1)}},Fn.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")),Fn.createElement(Ue.default,{centered:!0,title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0",open:Ai,width:500,onOk:()=>tu.submit(),onCancel:()=>Yi(!1)},Fn.createElement(we.default,{form:tu,initialValues:{},onFinish:ta=>Co(void 0,null,function*(){(yield(0,Si.RK)(Sl({id:he},ta))).status==0&&(Be.ZP.success("\u4FEE\u6539\u6210\u529F"),fo(),Yi(!1))})},Fn.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(ta,or){var Xr,io,po,Hr;const ho=(Xr=dl==null?void 0:dl.find(Yo=>Yo.nameType==tu.getFieldValue("item_type_en")))==null?void 0:Xr.id;return(Hr=(po=(io=On==null?void 0:On.exercise_question_types)==null?void 0:io.filter(Yo=>Yo.question_type!=ho))==null?void 0:po.map(Yo=>Yo==null?void 0:Yo.name))!=null&&Hr.includes(or)?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()}}]},Fn.createElement(We.default,{size:"large",maxLength:10,showCount:!0})),Fn.createElement(we.default.Item,{hidden:!0,name:"item_type_en"},Fn.createElement(We.default,{size:"large"})))),Fn.createElement(on.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Nu},Fn.createElement("div",{style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},"\u667A\u80FD\u5BFC\u5165"),Fn.createElement(Hl.Z,{stickyTop:-24,subDisciplineId:(Lo=On==null?void 0:On.exercise)!=null&&Lo.sub_discipline_id?[(Io=On==null?void 0:On.exercise)==null?void 0:Io.discipline_id,(Al=On==null?void 0:On.exercise)==null?void 0:Al.sub_discipline_id]:[],onCancel:()=>Cu(!1),mode:3,gather:{exercise_id:he},onSuccess:()=>{Cu(!1),fo()}}),Fn.createElement("div",{style:{height:70}})),Fn.createElement(mn.Q,{visible:!!yi,setVisible:Kt,tip:yi===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:yi===1?zn==null?void 0:zn.languages:[],onOk:ta=>Co(void 0,null,function*(){const or={languages:ta};yi===1?or.hack_id=zn==null?void 0:zn.hack_id:or.exercise_id=he,(yield(0,te.ZP)("/api/problems/update_languages.json",{method:"post",body:or})).status===0&&(Be.ZP.success("\u4FEE\u6539\u6210\u529F"),Wo({id:Ql.current}),Kt(!1))})}))};var Vi=(0,Ee.connect)(({user:ie,exercise:Se,dispatch:he})=>({user:ie,exercise:Se,dispatch:he}))(_l),qo=ae(60636),ni=ae(3607),Li=ae(82798),Go=ae(87169),Ri=ae(76832),ja=ae(59301),ci=Object.defineProperty,uu=Object.defineProperties,ki=Object.getOwnPropertyDescriptors,Ti=Object.getOwnPropertySymbols,Wi=Object.prototype.hasOwnProperty,Zr=Object.prototype.propertyIsEnumerable,Qa=(ie,Se,he)=>Se in ie?ci(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Or=(ie,Se)=>{for(var he in Se||(Se={}))Wi.call(Se,he)&&Qa(ie,he,Se[he]);if(Ti)for(var he of Ti(Se))Zr.call(Se,he)&&Qa(ie,he,Se[he]);return ie},nl=(ie,Se)=>uu(ie,ki(Se)),gi=(ie,Se)=>{var he={};for(var ct in ie)Wi.call(ie,ct)&&Se.indexOf(ct)<0&&(he[ct]=ie[ct]);if(ie!=null&&Ti)for(var ct of Ti(ie))Se.indexOf(ct)<0&&Zr.call(ie,ct)&&(he[ct]=ie[ct]);return he},ji=(ie,Se,he)=>new Promise((ct,bt)=>{var Un=it=>{try{Jt(he.next(it))}catch(tn){bt(tn)}},bn=it=>{try{Jt(he.throw(it))}catch(tn){bt(tn)}},Jt=it=>it.done?ct(it.value):Promise.resolve(it.value).then(Un,bn);Jt((he=he.apply(ie,Se)).next())});const Au=ie=>{var Se=ie,{classroomList:he,globalSetting:ct,problemset:bt,loading:Un,exercise:bn,user:Jt,dispatch:it}=Se,tn=gi(Se,["classroomList","globalSetting","problemset","loading","exercise","user","dispatch"]),In,Ht,Ot,mt,Dt,yt,Bt,Xt,$t,wn,un,Wt,Ir,oo;const qa=(0,Ee.useParams)(),[Yr,$n]=(0,b.useState)(!1),{userInfo:Kr}=Jt,[lo]=we.default.useForm();let[Do,Lr]=(0,b.useState)({});const[Lo,Io]=(0,b.useState)(1),[Al,On]=(0,b.useState)(""),[fl]=(0,Ee.useSearchParams)(),[xl,ko]=(0,b.useState)(!1),[zn,Bl]=(0,b.useState)(!1),[zl,Jl]=(0,b.useState)(!1),[Wl,Ql]=(0,b.useState)(""),[vl,Qi]=(0,b.useState)(!1),[Ni,ai]=(0,b.useState)(!1);(0,b.useEffect)(()=>{it({type:"problemset/getEditDisciplines",payload:{source:"new_question",identifier:qa==null?void 0:qa.coursesId}}),it({type:"globalSetting/footerToggle",payload:!1}),lo.setFieldsValue({difficulty:2,courseid:[]})},[]),(0,b.useEffect)(()=>{qa.exerciseId&&ji(void 0,null,function*(){var Gr,Uo,yl;const wl=yield it({type:"exercise/editExercise",payload:{categoryId:qa.exerciseId}});(wl==null?void 0:wl.status)!==-1&&(((Gr=wl==null?void 0:wl.exercise)==null?void 0:Gr.exercise_status)===2||((Uo=wl==null?void 0:wl.exercise)==null?void 0:Uo.exercise_status)===3||((yl=wl==null?void 0:wl.exercise)==null?void 0:yl.exercise_status)===4?Jl(!0):Jl(!1))})},[qa]),(0,b.useEffect)(()=>{if(qa.exerciseId){let Gr=bn.editData.exercise;ai(Gr==null?void 0:Gr.set_question_sub_discipline),lo.setFieldsValue(nl(Or({},Gr),{courseid:Gr!=null&&Gr.sub_discipline_id?[Gr==null?void 0:Gr.discipline_id,Gr==null?void 0:Gr.sub_discipline_id]:[]}))}},[bn]),(0,b.useEffect)(()=>{fl.get("type")==="2"&&(On(qa.exerciseId),Io(2))},[fl.get("type")]),(0,b.useEffect)(()=>{var Gr;let Uo=(Gr=bt==null?void 0:bt.disciplinesData)==null?void 0:Gr.checked;Uo!=null&&Uo.sub_discipline_id&&lo.setFieldsValue({courseid:[Uo==null?void 0:Uo.discipline_id,Uo==null?void 0:Uo.sub_discipline_id]})},[(In=bt==null?void 0:bt.disciplinesData)==null?void 0:In.checked]);function Ho(Gr,Uo){return ji(this,null,function*(){var yl,wl,Ul,mi;yield lo.validateFields();const cl=lo.getFieldsValue(),{courseid:Zi}=cl,[Pi,ui]=Zi;cl.sub_discipline_id=ui,cl.is_md=!0,cl.time=parseInt(cl.time)>9999?9999:cl.time;const pl=yield it({type:"exercise/addExercise",payload:Or(Or({},cl),qa)});pl.status===0?(yield(0,te.ZP)(`/api/courses/${qa==null?void 0:qa.coursesId}/exercises/notice_at.json`,{method:"POST",body:{course_id:qa==null?void 0:qa.coursesId,id:(yl=pl==null?void 0:pl.data)==null?void 0:yl.exercise_id,time:Gr}}),Xl((wl=pl.data)==null?void 0:wl.exercise_id),On((Ul=pl==null?void 0:pl.data)==null?void 0:Ul.exercise_id),Io(2),ko(!1),Ee.history.replace(`/classrooms/${qa.coursesId}/exercise/add/${(mi=pl.data)==null?void 0:mi.exercise_id}?type=2`)):Be.ZP.error(pl.message),Uo()})}function al(Gr){Lr(Or({},Gr))}function Xl(Gr){return ji(this,null,function*(){if(!(Do!=null&&Do.ec_point_ids))return;const Uo=Or({},Do);delete Uo.id;let yl=yield(0,te.ZP)(`/api/ec_courses/${Do==null?void 0:Do.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:Or({exercise_id:Gr},Uo)})})}return ja.createElement("div",{style:{background:"#ffffff",marginTop:-8,padding:8,minHeight:"100vh",paddingBottom:64}},ja.createElement("section",{className:"edu-container"},ja.createElement("section",{className:"animated fadeIn"},ja.createElement("aside",{className:"mt10"},Kr&&ja.createElement(Re.Z,{separator:">"},ja.createElement(Re.Z.Item,null,ja.createElement(Ee.Link,{to:`/classrooms/${qa.coursesId}/exercise`},(Ht=Kr==null?void 0:Kr.course)==null?void 0:Ht.course_name)),ja.createElement(Re.Z.Item,null,ja.createElement(Ee.Link,{to:`/classrooms/${qa.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")),ja.createElement(Re.Z.Item,null,qa.exerciseId?"\u7F16\u8F91\u8BD5\u5377":"\u65B0\u5EFA\u8BD5\u5377")))),qa.exerciseId&&ja.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}},ja.createElement(Go.Z,{style:{marginRight:5,color:"#E99237"}}),ja.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"),ja.createElement("span",{className:ze.addQuestionBtn,onClick:()=>{it({type:"exercise/setActionTabs",payload:{key:"\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93",selectArrs:[qa.exerciseId]}})}},"\u52A0\u5165\u8BD5\u5377\u5E93")),ja.createElement(Li.Z,{haveInit:!0,init:()=>{Ql(new Date)}}),ja.createElement("div",{className:"bg-white"},ja.createElement("div",{style:{display:"flex",justifyContent:"center",paddingTop:20,alignItems:"center"}},ja.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}Io(1)},className:Lo===1?ze.selectdiv:ze.divitem},ja.createElement(qo.Z,{number:1,active:Lo===1,className:"mr10"}),ja.createElement("span",null,"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F")),ja.createElement("div",{style:{width:188,border:"1px dotted #9096A3",margin:"0px 30px",height:1}}),ja.createElement("div",{onClick:()=>{if(!qa.exerciseId&&!Al){Be.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u57FA\u7840\u4FE1\u606F\u518D\u65B0\u5EFA\u8BD5\u9898");return}Io(2),!Al&&On(qa.exerciseId)},className:Lo!==1?ze.selectdiv:ze.divitem},ja.createElement(qo.Z,{number:2,active:Lo!==1,className:"mr10"}),ja.createElement("span",null,"\u7F16\u8F91\u8BD5\u9898"))),Lo===2&&ja.createElement("div",{className:"tc"},ja.createElement(ni.Z,{defaultValue:(mt=(Ot=bn==null?void 0:bn.editData)==null?void 0:Ot.exercise)==null?void 0:mt.exercise_name,onFinish:Gr=>ji(void 0,null,function*(){var Uo,yl,wl,Ul,mi,cl,Zi,Pi,ui,pl,Ui,Gi;return Gr.trim()===((yl=(Uo=bn==null?void 0:bn.editData)==null?void 0:Uo.exercise)==null?void 0:yl.exercise_name)?!0:(yield(0,Si.wy)({exercise_name:Gr,exercise_description:(Ul=(wl=bn==null?void 0:bn.editData)==null?void 0:wl.exercise)==null?void 0:Ul.exercise_description,sub_discipline_id:(cl=(mi=bn==null?void 0:bn.editData)==null?void 0:mi.exercise)==null?void 0:cl.sub_discipline_id,time:(Pi=(Zi=bn==null?void 0:bn.editData)==null?void 0:Zi.exercise)==null?void 0:Pi.time,exerciseId:(pl=(ui=bn.editData)==null?void 0:ui.exercise)==null?void 0:pl.id,difficulty:(Gi=(Ui=bn.editData)==null?void 0:Ui.exercise)==null?void 0:Gi.difficulty})).status===0?(lo.setFieldValue("exercise_name",Gr),!0):!1})}),ja.createElement("div",{style:{fontSize:14}},ja.createElement("span",{style:{color:"#5F6368"}},"\u7B54\u9898\u65F6\u957F",ja.createElement("span",{style:{color:"#000000",marginLeft:8}},((yt=(Dt=bn==null?void 0:bn.editData)==null?void 0:Dt.exercise)==null?void 0:yt.time)||"\u4E0D\u9650")),ja.createElement("span",{style:{margin:"0px 30px",color:"#5F6368"}},"\u96BE\u5EA6",ja.createElement("span",{style:{color:"#000000",marginLeft:8}},((Xt=(Bt=bn==null?void 0:bn.editData)==null?void 0:Bt.exercise)==null?void 0:Xt.difficulty)===1?"\u7B80\u5355":((wn=($t=bn==null?void 0:bn.editData)==null?void 0:$t.exercise)==null?void 0:wn.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),ja.createElement("span",{style:{marginRight:30,color:"#5F6368"}},"\u8BD5\u9898\u603B\u6570",ja.createElement("span",{style:{color:"#000000",marginLeft:8}},((Wt=(un=bn==null?void 0:bn.editData)==null?void 0:un.exercise_types)==null?void 0:Wt.q_counts)||0)),ja.createElement("span",{style:{color:"#5F6368"}},"\u603B\u5206",ja.createElement("span",{style:{color:"#000000",marginLeft:8}},(oo=(Ir=bn==null?void 0:bn.editData)==null?void 0:Ir.exercise_types)==null?void 0:oo.q_scores))))),Lo===1&&ja.createElement("div",null,ja.createElement("section",{className:[ze.bg,"mt20"].join(" "),style:{padding:"30px 120px 300px 120px"}},ja.createElement(we.default,{form:lo,colon:!1,layout:"horizontal",labelCol:{span:4},wrapperCol:{span:20},initialValues:{time:60},onFinish:Gr=>ji(void 0,null,function*(){var Uo,yl,wl,Ul,mi;if($n(!0),ko(!0),qa.exerciseId){Gr.exerciseId=(yl=(Uo=bn.editData)==null?void 0:Uo.exercise)==null?void 0:yl.id,Gr.sub_discipline_id=Gr.courseid[Gr.courseid.length-1],yield(0,Si.wy)(nl(Or({},Gr),{set_question_sub_discipline:Ni})),Io(2),Xl(qa==null?void 0:qa.exerciseId),On(qa.exerciseId),$n(!1),ko(!1);return}const cl=yield(0,te.ZP)(`/api/courses/${qa==null?void 0:qa.coursesId}/exercises/overload_alert.json`,{method:"get",params:{course_id:qa==null?void 0:qa.coursesId}});if(cl!=null&&cl.alert)it({type:"classroomList/setActionTabs",payload:{key:"\u9884\u7EA6\u5F39\u7A97"}});else{const{courseid:Zi}=Gr,[Pi,ui]=Zi;Gr.sub_discipline_id=ui,Gr.is_md=!0,Gr.time=parseInt(Gr.time)>9999?9999:Gr.time,Gr.set_question_sub_discipline=Ni;const pl=yield it({type:"exercise/addExercise",payload:nl(Or(Or({},Gr),qa),{category_id:fl.get("catalogue")||null})});pl.status===0&&(Xl((wl=pl.data)==null?void 0:wl.exercise_id),Ee.history.replace(`/classrooms/${qa.coursesId}/exercise/add/${(Ul=pl.data)==null?void 0:Ul.exercise_id}?type=2`),On((mi=pl==null?void 0:pl.data)==null?void 0:mi.exercise_id),Io(2)),ko(!1)}$n(!1)}),className:ze.formWrap},ja.createElement(we.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u540D\u79F0",className:ze.baseLineHeight,rules:[{required:!0,validator:(Gr,Uo)=>{var yl;return((yl=Uo==null?void 0:Uo.replaceAll(" ",""))==null?void 0:yl.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},ja.createElement(We.default,{maxLength:60,className:ze.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),ja.createElement(we.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"courseid",className:ze.baseLineHeight},ja.createElement(xe.Z,{disabled:zl,placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:bt.courseOptions,className:ze.baseFormItem,size:"large",popupClassName:ze.cascaderPopup,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14},allowClear:!0})),ja.createElement("div",{className:ze.concat},ja.createElement("div",null,ja.createElement(Ke.default,{checked:Ni,onChange:Gr=>{ai(Gr.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")),ja.createElement("div",null,"\u6CA1\u6709\u5408\u9002\u7684\u65B9\u5411&\u8BFE\u7A0B\uFF1F",ja.createElement("a",{onClick:()=>Qi(!0)},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"))),ja.createElement(we.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:ze.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},ja.createElement(Oe.ZP.Group,{className:ze.radiogroup,disabled:zl},ja.createElement(Oe.ZP.Button,{className:ze.easy,value:1},"\u7B80\u5355"),ja.createElement(Oe.ZP.Button,{className:ze.medium,value:2},"\u9002\u4E2D"),ja.createElement(Oe.ZP.Button,{className:ze.hard,value:3},"\u56F0\u96BE"))),ja.createElement(we.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:ze.baseLineHeight},ja.createElement("div",{style:{display:"flex",width:"100%"}},ja.createElement(we.default.Item,{name:"time",noStyle:!0},ja.createElement(De.Z,{disabled:zl,min:1,max:9999,className:ze.baseFormItem,style:{width:220},maxLength:60,placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),ja.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),ja.createElement(we.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exercise_description"},ja.createElement(We.default.TextArea,{disabled:zl,rows:6,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"}))),ja.createElement(xn,{exercise_id:qa==null?void 0:qa.exerciseId,setitem:al})),ja.createElement("div",{className:ze.bottmodiv},ja.createElement(ke.ZP,{className:`${ze.cancelBtn}`,type:"primary",onClick:()=>{Ee.history.back()}},"\u53D6\u6D88"),ja.createElement(ke.ZP,{loading:xl,onClick:()=>{lo.validateFields(),lo.submit()},type:"primary",className:`${ze.confirmBtn} ml20`},"\u4E0B\u4E00\u6B65")),ja.createElement(z,{setsubloading:ko,onModalOk:Ho})),Lo===2&&ja.createElement("div",null,ja.createElement(Vi,{key:Wl,setisedits:Bl,setitemid:On,itemid:Al}))),ja.createElement(Ri.Z,{open:vl,onCancel:()=>{Qi(!1)}}))};var gu=(0,Ee.connect)(({classroomList:ie,loading:Se,user:he,problemset:ct,globalSetting:bt,exercise:Un})=>({classroomList:ie,globalSetting:bt,problemset:ct,user:he,exercise:Un,loading:Se.effects}))(Au)},84097:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return Ye}});var b=ae(78241),Ee=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(6075),ze=ae(23789),Ue=ae(21331),ue={radio_con:"radio_con___cvwXd",result_con:"result_con___m5Gmr",result_title:"result_title___D7L1n"},E=ae(35219),a=ae(37962),x=ae(28900),y=ae(59301),z=Object.defineProperty,te=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,Pe=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={}))le.call($e,be)&&Fe(Ge,be,$e[be]);if(se)for(var be of se($e))Pe.call($e,be)&&Fe(Ge,be,$e[be]);return Ge},Le=(Ge,$e)=>te(Ge,oe($e)),ut=(Ge,$e,be)=>new Promise((ft,dt)=>{var Ft=Bn=>{try{En(be.next(Bn))}catch(Qt){dt(Qt)}},Pt=Bn=>{try{En(be.throw(Bn))}catch(Qt){dt(Qt)}},En=Bn=>Bn.done?ft(Bn.value):Promise.resolve(Bn.value).then(Ft,Pt);En((be=be.apply(Ge,$e)).next())});const Me=({shixunHomeworks:Ge,exercise:$e,loading:be,dispatch:ft})=>{var dt,Ft,Pt;const{commonHeader:En}=$e,[Bn,Qt]=(0,De.useState)([]),[St,Te]=(0,De.useState)(Le(Qe({},(0,ke.useParams)()),{page:1,limit:10})),[et,_t]=(0,De.useState)([]),[xn,It]=(0,De.useState)(""),[qt,Ce]=(0,De.useState)(1),[rt]=b.default.useForm(),[on,tt]=(0,De.useState)({}),[pt,Xn]=(0,De.useState)(null),[mn,Ut]=(0,De.useState)(!1),[kt,Wn]=(0,De.useState)([]),[ia,nn]=(0,De.useState)(null),[Ba,Ka]=(0,De.useState)(0),[Fa,jn]=(0,De.useState)(0),[za,Aa]=(0,De.useState)(!1),fr=[{title:"\u5E8F\u53F7",dataIndex:"1",width:80,render:(Et,Tt,Za)=>(St.page-1)*St.limit+Za+1},{title:"\u59D3\u540D",dataIndex:"user_name",ellipsis:!0,width:180},{title:"\u5B66\u53F7",dataIndex:"student_id",align:"left",sorter:!0,render:Et=>Et||"--"},{title:"\u5206\u73ED",dataIndex:"user_group_name",align:"left",render:(Et,Tt)=>y.createElement("div",{className:ue.banding,title:Et||"--"},Et||"--")},{title:"\u63D0\u4EA4\u72B6\u6001",width:200,dataIndex:"commit_status",render:(Et,Tt)=>Et===0?y.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):Et===1?y.createElement("span",{style:{color:"#DF3042"}},!Tt.is_make_up&&"\u8003\u8BD5\u4E2D",Tt.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):Et===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:(Et,Tt)=>Tt.commit_status===0||Tt.commit_status===1?"--":!Tt.open_total_score&&(0,E.dE)()?"\u8001\u5E08\u5BA1\u6838\u4E2D":(Et=typeof Et=="number"?Number(Et):Et,console.log(typeof Et),Et||(Et=0),Et===100?y.createElement("span",{className:"c-green"},Et):Et>60?y.createElement("span",{className:"c-orange"},Et):Et==Fa*.6?y.createElement("span",{className:"c-red"},Et):y.createElement("span",null,Et))}].filter(Et=>!!Et);(0,De.useEffect)(()=>{var Et;((Et=$e.actionTabs)==null?void 0:Et.key)=="\u6D4B\u8BD5AI\u8BC4\u5206"&&(Wn([]),nn(null),ua(),da(St))},[(dt=$e.actionTabs)==null?void 0:dt.key]);const ua=()=>ut(void 0,null,function*(){var Et;if(!((Et=$e.actionTabs)!=null&&Et.showSelectQuestion))return;const Tt=yield(0,ze.ZP)(`/api/exercises/${St==null?void 0:St.categoryId}/all_subj_questions.json`,{method:"get"});Tt.status==0&&Wn(Tt.data)}),Zn=(Et,Tt)=>{St.page=Et,St.limit=Tt,Te(Qe({},St)),da(St)},da=Et=>ut(void 0,null,function*(){Aa(!0);const Tt=yield(0,ze.ZP)(`/api/exercises/${St.categoryId||(St==null?void 0:St.exerciseId)}/exercise_users.json`,{method:"get",params:Et});Tt.status==0&&(Ka(Tt.data.total_count),Te(Le(Qe({},St),{total:Tt.data.total_count})),Qt(Tt.data.exercise_users),jn(Tt.data.total_score)),Aa(!1)}),Ea=Et=>{St.search=Et,St.page=1,rt.resetFields(),tt({}),_t([]),Xn(null),Te(Qe({},St)),da(St)},xa=Et=>ut(void 0,null,function*(){var Tt,Za;const Ca=Qe({},on);if(!((Tt=Et==null?void 0:Et.content)!=null&&Tt.trim())){Ee.ZP.warning("\u8BF7\u8F93\u5165\u7B54\u9898\u5185\u5BB9\uFF01");return}Ca.content=Et==null?void 0:Et.content,Ca.attachment_ids=(Za=Et==null?void 0:Et.attachment_ids)==null?void 0:Za.map(Wa=>Wa.response.id),_a(Ca)}),_a=Et=>ut(void 0,null,function*(){var Tt;Ut(!0);const{showSelectQuestion:Za,ai_review_settings:Ca}=$e.actionTabs,Wa=yield(0,ze.ZP)(`/api/exercises/${(St==null?void 0:St.categoryId)||(St==null?void 0:St.exerciseId)}/test_ai_review.json`,{method:"post",body:Le(Qe({},Et),{exercise_question_id:Za?ia:(Tt=$e.actionTabs)==null?void 0:Tt.questionId,ai_review_settings:Ca})});if([0,-3].includes(Wa.status)){Wa.status==0&&Ee.ZP.success("\u8BC4\u5206\u6D4B\u8BD5\u6210\u529F\uFF01"),Xn(Wa);const Da=document.querySelector(".modal-ai-pfcs");if(Da){const Ra=Da.querySelector(".ant-modal-body");Ra&&(Ra.scrollTop=Ra.scrollHeight)}}Ut(!1)}),Sn=()=>{ft({type:"exercise/setActionTabs",payload:{key:""}}),Ce(1),sn()},sn=()=>{rt.resetFields(),tt({}),_t([]),It(""),Xn(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:mn,open:((Ft=$e.actionTabs)==null?void 0:Ft.key)==="\u6D4B\u8BD5AI\u8BC4\u5206",destroyOnClose:!0,onCancel:()=>Sn(),okText:pt?"\u91CD\u65B0\u6D4B\u8BD5":"\u5F00\u59CB\u6D4B\u8BD5",onOk:()=>{var Et;if((Et=$e.actionTabs)!=null&&Et.showSelectQuestion&&!ia)return Ee.ZP.warning("\u8BF7\u9009\u62E9\u9898\u76EE\uFF01");if(qt==1){if(et.length==0)return Ee.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 qt==2&&rt.submit()}},y.createElement(Be.Z,{spinning:mn,tip:"\u6D4B\u8BD5AI\u8BC4\u5206\u4E2D\u2026\u2026"},((Pt=$e.actionTabs)==null?void 0:Pt.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:ia,onChange:Et=>nn(Et)},kt==null?void 0:kt.map(Et=>y.createElement(We.default.Option,{key:Et==null?void 0:Et.id,value:Et==null?void 0:Et.id},Et==null?void 0:Et.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:Et=>{Et.target.value==1&&Zn(1,10),Ce(Et.target.value),sn()},value:qt,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"}}]})),qt==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:Et=>It(Et.target.value),onSearch:Ea})),y.createElement(Oe.default,{rowSelection:{type:"radio",selectedRowKeys:et,onChange:(Et,Tt)=>{_t(Et)},getCheckboxProps:Et=>({disabled:[0,1].includes(Et==null?void 0:Et.commit_status)})},loading:za,rowKey:"exercise_user_id",dataSource:Bn||[],columns:fr,pagination:{current:St.page,hideOnSinglePage:!0,showQuickJumper:!0,showSizeChanger:!0,pageSize:St.limit,className:"mb0",pageSizeOptions:["10","20","50","100","200"],total:Ba,size:"default",showTotal:Ue.rU,onChange:Zn},onChange:(Et,Tt,Za)=>{St.page=1,Za.order===void 0?(St.order_type=null,St.order=null):(St.order_type=Za.order==="descend"?"desc":"asc",St.order=Za.field),Te(Qe({},St)),da(St)}})),qt==2&&y.createElement("div",{style:{marginTop:20}},y.createElement(b.default,{form:rt,className:ue.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{tt(Qe({},rt.getFieldsValue()))},onFinish:xa},y.createElement(b.default.Item,{name:"content",label:"",style:{marginBottom:0}},y.createElement(a.Z,{watch:!0})))),pt&&y.createElement("div",{className:ue.result_con},y.createElement("div",{className:ue.result_title},"AI\u8BC4\u5206\u7ED3\u679C"),(pt==null?void 0:pt.status)==0&&y.createElement("div",{className:"p20"},y.createElement("div",{className:"mb5"},y.createElement("span",{style:{color:"#333",fontWeight:"bold"}},"\u8BC4\u5206\uFF1A"),pt==null?void 0:pt.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:pt==null?void 0:pt.content,style:{fontSize:"14px"}}))),(pt==null?void 0:pt.status)==-3&&y.createElement("div",{className:"p20"},y.createElement(x.Z,{value:pt==null?void 0:pt.message,style:{fontSize:"14px"}})))))};var Ye=(0,ke.connect)(({shixunHomeworks:Ge,exercise:$e,loading:be,user:ft})=>({shixunHomeworks:Ge,exercise:$e,loading:be.effects,user:ft}))(Me)},73256:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return E}});var b=ae(59301),Ee=ae(8591),we=ae(43418),Be=ae(19842),Re=ae(54580),We=ae(3113),xe=ae(41510),Ke=ae(21331),Oe=ae(23789),De=ae(6075),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=Pe=>{try{le(y.next(Pe))}catch(Fe){te(Fe)}},se=Pe=>{try{le(y.throw(Pe))}catch(Fe){te(Fe)}},le=Pe=>Pe.done?z(Pe.value):Promise.resolve(Pe.value).then(oe,se);le((y=y.apply(a,x)).next())}),E=({visible:a,onOk:x,onCancel:y,sub_discipline_id:z=[]})=>{const[te,oe]=(0,b.useState)([]),[se,le]=(0,b.useState)(!1),Pe=(0,De.useParams)(),[Fe,Qe]=(0,b.useState)([]),[Le,ut]=(0,b.useState)([]);(0,b.useEffect)(()=>{a?Me():(ut([]),oe([]),le(!1))},[a]);const Me=()=>Ue(void 0,null,function*(){const dt=yield(0,Oe.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});Qe(dt.disciplines||[]),ut((z==null?void 0:z.length)>0?z:[])}),Ye=()=>{if((Le==null?void 0:Le.length)===0)return Ee.ZP.warning("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF01");console.log("subDisciplineId",Le),le(!0),x(te,Le[1],()=>{le(!1)})},Ge=()=>{y()},$e=()=>{const dt=`${xe.Z.API_SERVER}/api/courses/${Pe.coursesId}/exercises/down_template`;(0,Ke.Nd)(null,dt)},be=dt=>{const Ft={name:dt.name,uid:dt.uid,file:dt};return oe([Ft]),!1},ft=()=>{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:(dt,Ft)=>{ut(dt||[])}}),ze.createElement("br",null),ze.createElement(Re.default,{action:`${xe.Z.API_SERVER}/api/attachments.json`,beforeUpload:be,onRemove:ft,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((dt,Ft)=>ze.createElement("div",{key:Ft,className:ke.fileList},ze.createElement("span",{className:ke.fileName},dt==null?void 0:dt.name),ze.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:16,cursor:"pointer"},onClick:ft})))))))}},82798:function(ot,jt,ae){"use strict";var b=ae(59301),Ee=ae(43418),we=ae(23789),Be=ae(6075),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,le;let Pe=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=Pe==null?void 0:Pe.cover_exercises)==null?void 0:se.length)>0)ue(!0),a((le=Pe==null?void 0:Pe.cover_exercises)==null?void 0:le[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(),Ee.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(Ee.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 le=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),(le==null?void 0:le.status)===0&&(ke&&De(),ue(!1),Ee.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),Ee.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)},78547:function(ot,jt,ae){"use strict";ae.d(jt,{h:function(){return b}});var b=(Ee=>(Ee[Ee.NOMATCH=-1]="NOMATCH",Ee[Ee.OK=0]="OK",Ee[Ee.TIMEOUT=2]="TIMEOUT",Ee[Ee.PODFAILURE=3]="PODFAILURE",Ee[Ee.COMPILEFAILURE=4]="COMPILEFAILURE",Ee[Ee.EXECUTEFAILURE=5]="EXECUTEFAILURE",Ee[Ee.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",Ee))(b||{})},18509:function(ot,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(23789),Ee=Object.defineProperty,we=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,We=(z,te,oe)=>te in z?Ee(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)}},3607:function(ot,jt,ae){"use strict";var b=ae(59301),Ee=ae(6848),we=ae(92832),Be=ae(8591),Re=ae(49570),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(Ee.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},76832:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return De}});var b=ae(43418),Ee={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:Ee.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")))))}},99530:function(ot,jt,ae){"use strict";ae.d(jt,{I:function(){return Ee}});var b=ae(59301);const Ee=()=>{const[we,Be]=(0,b.useState)("hidden");return{overflow:we,handleMouseEnter:()=>Be("auto"),handleMouseLeave:()=>Be("hidden")}}},77578:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return b}});const b=Ee=>Ee?typeof Ee=="function"?Ee():Ee:null},66104:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return $e}});var b=ae(92310),Ee=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:ft}=be;const{getPrefixCls:dt}=Re.useContext(xe.E_),Ft=dt("breadcrumb");return Re.createElement("li",{className:`${Ft}-separator`,"aria-hidden":"true"},ft===""?ft:ft||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var ke=De,ze=function(be,ft){var dt={};for(var Ft in be)Object.prototype.hasOwnProperty.call(be,Ft)&&ft.indexOf(Ft)<0&&(dt[Ft]=be[Ft]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ft=Object.getOwnPropertySymbols(be);Ptft[Pt]||Ft)}function ue(be,ft,dt,Ft){if(dt==null)return null;const{className:Pt,onClick:En}=ft,Bn=ze(ft,["className","onClick"]),Qt=Object.assign(Object.assign({},(0,Be.Z)(Bn,{data:!0,aria:!0})),{onClick:En});return Ft!==void 0?Re.createElement("a",Object.assign({},Qt,{className:Ee()(`${be}-link`,Pt),href:Ft}),dt):Re.createElement("span",Object.assign({},Qt,{className:Ee()(`${be}-link`,Pt)}),dt)}function E(be,ft){return(Ft,Pt,En,Bn,Qt)=>{if(ft)return ft(Ft,Pt,En,Bn);const St=Ue(Ft,Pt);return ue(be,Ft,St,Qt)}}var a=function(be,ft){var dt={};for(var Ft in be)Object.prototype.hasOwnProperty.call(be,Ft)&&ft.indexOf(Ft)<0&&(dt[Ft]=be[Ft]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ft=Object.getOwnPropertySymbols(be);Pt{const{prefixCls:ft,separator:dt="/",children:Ft,menu:Pt,overlay:En,dropdownProps:Bn,href:Qt}=be,Te=(et=>{if(Pt||En){const _t=Object.assign({},Bn);if(Pt){const xn=Pt||{},{items:It}=xn,qt=a(xn,["items"]);_t.menu=Object.assign(Object.assign({},qt),{items:It==null?void 0:It.map((Ce,rt)=>{var{key:on,title:tt,label:pt,path:Xn}=Ce,mn=a(Ce,["key","title","label","path"]);let Ut=pt!=null?pt:tt;return Xn&&(Ut=Re.createElement("a",{href:`${Qt}${Xn}`},Ut)),Object.assign(Object.assign({},mn),{key:on!=null?on:rt,label:Ut})})})}else En&&(_t.overlay=En);return Re.createElement(Oe.Z,Object.assign({placement:"bottom"},_t),Re.createElement("span",{className:`${ft}-overlay-link`},et,Re.createElement(Ke.Z,null)))}return et})(Ft);return Te!=null?Re.createElement(Re.Fragment,null,Re.createElement("li",null,Te),dt&&Re.createElement(ke,null,dt)):null},y=be=>{const{prefixCls:ft,children:dt,href:Ft}=be,Pt=a(be,["prefixCls","children","href"]),{getPrefixCls:En}=Re.useContext(xe.E_),Bn=En("breadcrumb",ft);return Re.createElement(x,Object.assign({},Pt,{prefixCls:Bn}),ue(Bn,Pt,dt,Ft))};y.__ANT_BREADCRUMB_ITEM=!0;var z=y,te=ae(17313),oe=ae(83116),se=ae(37613);const le=be=>{const{componentCls:ft,iconCls:dt}=be;return{[ft]:Object.assign(Object.assign({},(0,te.Wf)(be)),{color:be.itemColor,fontSize:be.fontSize,[dt]:{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},[`${ft}-separator`]:{marginInline:be.separatorMargin,color:be.separatorColor},[`${ft}-link`]:{[` - > ${dt} + span, - > ${dt} + a - `]:{marginInlineStart:be.marginXXS}},[`${ft}-overlay-link`]:{borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",padding:`0 ${be.paddingXXS}px`,marginInline:-be.marginXXS,[`> ${dt}`]:{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 Pe=(0,oe.Z)("Breadcrumb",be=>{const ft=(0,se.TS)(be,{});return[le(ft)]},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,ft){var dt={};for(var Ft in be)Object.prototype.hasOwnProperty.call(be,Ft)&&ft.indexOf(Ft)<0&&(dt[Ft]=be[Ft]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ft=Object.getOwnPropertySymbols(be);Pt{var{breadcrumbName:Bn}=En,Qt=Fe(En,["breadcrumbName"]);return Object.assign(Object.assign({},Qt),{title:Bn})})}),Pt}function Le(be,ft){return(0,Re.useMemo)(()=>be||(ft?ft.map(Qe):null),[be,ft])}var ut=function(be,ft){var dt={};for(var Ft in be)Object.prototype.hasOwnProperty.call(be,Ft)&&ft.indexOf(Ft)<0&&(dt[Ft]=be[Ft]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ft=Object.getOwnPropertySymbols(be);Pt{if(ft===void 0)return ft;let dt=(ft||"").replace(/^\//,"");return Object.keys(be).forEach(Ft=>{dt=dt.replace(`:${Ft}`,be[Ft])}),dt},Ye=be=>{const{prefixCls:ft,separator:dt="/",style:Ft,className:Pt,rootClassName:En,routes:Bn,items:Qt,children:St,itemRender:Te,params:et={}}=be,_t=ut(be,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:xn,direction:It,breadcrumb:qt}=Re.useContext(xe.E_);let Ce;const rt=xn("breadcrumb",ft),[on,tt]=Pe(rt),pt=Le(Qt,Bn),Xn=E(rt,Te);if(pt&&pt.length>0){const kt=[],Wn=Qt||Bn;Ce=pt.map((ia,nn)=>{const{path:Ba,key:Ka,type:Fa,menu:jn,overlay:za,onClick:Aa,className:fr,separator:ua,dropdownProps:Zn}=ia,da=Me(et,Ba);da!==void 0&&kt.push(da);const Ea=Ka!=null?Ka:nn;if(Fa==="separator")return Re.createElement(ke,{key:Ea},ua);const xa={},_a=nn===pt.length-1;jn?xa.menu=jn:za&&(xa.overlay=za);let{href:Sn}=ia;return kt.length&&da!==void 0&&(Sn=`#/${kt.join("/")}`),Re.createElement(x,Object.assign({key:Ea},xa,(0,Be.Z)(ia,{data:!0,aria:!0}),{className:fr,dropdownProps:Zn,href:Sn,separator:_a?"":dt,onClick:Aa,prefixCls:rt}),Xn(ia,et,Wn,kt,Sn))})}else if(St){const kt=(0,we.Z)(St).length;Ce=(0,we.Z)(St).map((Wn,ia)=>{if(!Wn)return Wn;const nn=ia===kt-1;return(0,We.Tm)(Wn,{separator:nn?"":dt,key:ia})})}const mn=Ee()(rt,qt==null?void 0:qt.className,{[`${rt}-rtl`]:It==="rtl"},Pt,En,tt),Ut=Object.assign(Object.assign({},qt==null?void 0:qt.style),Ft);return on(Re.createElement("nav",Object.assign({className:mn,style:Ut},_t),Re.createElement("ol",null,Ce)))};Ye.Item=z,Ye.Separator=ke;var Ge=Ye,$e=Ge},19842:function(ot,jt,ae){"use strict";ae.d(jt,{Z:function(){return ba}});var b=ae(77654),Ee=ae(59301),we=ae(33853),Be=ae(58617),Re=ae(38819),We=ae(92310),xe=ae.n(We),Ke=ae(60499),Oe=ae(72190),De=ae(42244),ke=ae(77861),ze=ae(17115),Ue=ae(90782),ue=ae(6089),E=ae(18929),a=Ee.createContext(null),x=a,y=ae(43749),z=ae(18642),te=ae(85899),oe="__rc_cascader_search_mark__",se=function(Mt,en,pn){var Rt=pn.label;return en.some(function(Qn){return String(Qn[Rt]).toLowerCase().includes(Mt.toLowerCase())})},le=function(Mt,en,pn,Rt){return en.map(function(Qn){return Qn[Rt.label]}).join(" / ")},Pe=function(Ze,Mt,en,pn,Rt,Qn){var _n=Rt.filter,Je=_n===void 0?se:_n,nt=Rt.render,Xe=nt===void 0?le:nt,ln=Rt.limit,Cn=ln===void 0?50:ln,Nn=Rt.sort;return Ee.useMemo(function(){var wa=[];if(!Ze)return[];function pa(na,ya){var qn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;na.forEach(function(zt){if(!(!Nn&&Cn!==!1&&Cn>0&&wa.length>=Cn)){var Ma=[].concat((0,b.Z)(ya),[zt]),pr=zt[en.children],So=qn||zt.disabled;if((!pr||pr.length===0||Qn)&&Je(Ze,Ma,{label:en.label})){var $a;wa.push((0,te.Z)((0,te.Z)({},zt),{},($a={disabled:So},(0,z.Z)($a,en.label,Xe(Ze,Ma,pn,en)),(0,z.Z)($a,oe,Ma),(0,z.Z)($a,en.children,void 0),$a)))}pr&&pa(zt[en.children],Ma,So)}})}return pa(Mt,[]),Nn&&wa.sort(function(na,ya){return Nn(na[oe],ya[oe],Ze,en)}),Cn!==!1&&Cn>0?wa.slice(0,Cn):wa},[Ze,Mt,en,pn,Xe,Qn,Je,Nn,Cn])},Fe="__RC_CASCADER_SPLIT__",Qe="SHOW_PARENT",Le="SHOW_CHILD";function ut(Ze){return Ze.join(Fe)}function Me(Ze){return Ze.map(ut)}function Ye(Ze){return Ze.split(Fe)}function Ge(Ze){var Mt=Ze||{},en=Mt.label,pn=Mt.value,Rt=Mt.children,Qn=pn||"value";return{label:en||"label",value:Qn,key:Qn,children:Rt||"children"}}function $e(Ze,Mt){var en,pn;return(en=Ze.isLeaf)!==null&&en!==void 0?en:!((pn=Ze[Mt.children])!==null&&pn!==void 0&&pn.length)}function be(Ze){var Mt=Ze.parentElement;if(Mt){var en=Ze.offsetTop-Mt.offsetTop;en-Mt.scrollTop<0?Mt.scrollTo({top:en}):en+Ze.offsetHeight-Mt.scrollTop>Mt.offsetHeight&&Mt.scrollTo({top:en+Ze.offsetHeight-Mt.offsetHeight})}}function ft(Ze,Mt){return Ze.map(function(en){var pn;return(pn=en[oe])===null||pn===void 0?void 0:pn.map(function(Rt){return Rt[Mt.value]})})}function dt(Ze,Mt,en){var pn=new Set(Ze),Rt=Mt();return Ze.filter(function(Qn){var _n=Rt[Qn],Je=_n?_n.parent:null,nt=_n?_n.children:null;return _n&&_n.node.disabled?!0:en===Le?!(nt&&nt.some(function(Xe){return Xe.key&&pn.has(Xe.key)})):!(Je&&!Je.node.disabled&&pn.has(Je.key))})}function Ft(Ze,Mt,en){for(var pn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Rt=Mt,Qn=[],_n=function(){var Xe,ln,Cn,Nn=Ze[Je],wa=(Xe=Rt)===null||Xe===void 0?void 0:Xe.findIndex(function(na){var ya=na[en.value];return pn?String(ya)===String(Nn):ya===Nn}),pa=wa!==-1?(ln=Rt)===null||ln===void 0?void 0:ln[wa]:null;Qn.push({value:(Cn=pa==null?void 0:pa[en.value])!==null&&Cn!==void 0?Cn:Nn,index:wa,option:pa}),Rt=pa==null?void 0:pa[en.children]},Je=0;Je1){var Gt=pa.slice(0,-1);zt(Gt)}else Xe(!1)},So=function(){var Gt,qr=((Gt=ya[na])===null||Gt===void 0?void 0:Gt[en.children])||[],Ua=qr.find(function(ir){return!ir.disabled});if(Ua){var Sr=[].concat((0,b.Z)(pa),[Ua[en.value]]);zt(Sr)}};Ee.useImperativeHandle(Ze,function(){return{onKeyDown:function(Gt){var qr=Gt.which;switch(qr){case rt.Z.UP:case rt.Z.DOWN:{var Ua=0;qr===rt.Z.UP?Ua=-1:qr===rt.Z.DOWN&&(Ua=1),Ua!==0&&Ma(Ua);break}case rt.Z.LEFT:{if(nt)break;Cn?So():pr();break}case rt.Z.RIGHT:{if(nt)break;Cn?pr():So();break}case rt.Z.BACKSPACE:{nt||pr();break}case rt.Z.ENTER:{if(pa.length){var Sr=ya[na],ir=(Sr==null?void 0:Sr[oe])||[];ir.length?Qn(ir.map(function(Wr){return Wr[en.value]}),ir[ir.length-1]):Qn(pa,ya[na])}break}case rt.Z.ESC:Xe(!1),ln&&Gt.stopPropagation()}},onKeyUp:function(){}}})},tt=Ee.forwardRef(function(Ze,Mt){var en,pn,Rt,Qn,_n=(0,ke.lk)(),Je=_n.prefixCls,nt=_n.multiple,Xe=_n.searchValue,ln=_n.toggleOpen,Cn=_n.notFoundContent,Nn=_n.direction,wa=_n.open,pa=Ee.useRef(),na=Nn==="rtl",ya=Ee.useContext(x),qn=ya.options,zt=ya.values,Ma=ya.halfValues,pr=ya.fieldNames,So=ya.changeOnSelect,$a=ya.onSelect,Gt=ya.searchOptions,qr=ya.dropdownPrefixCls,Ua=ya.loadData,Sr=ya.expandTrigger,ir=qr||Je,Wr=Ee.useState([]),Dr=(0,Oe.Z)(Wr,2),ao=Dr[0],kr=Dr[1],ca=function(Nr){if(!(!Ua||Xe)){var Ao=Ft(Nr,qn,pr),Ja=Ao.map(function(hr){var to=hr.option;return to}),Qr=Ja[Ja.length-1];if(Qr&&!$e(Qr,pr)){var eo=ut(Nr);kr(function(hr){return[].concat((0,b.Z)(hr),[eo])}),Ua(Ja)}}};Ee.useEffect(function(){ao.length&&ao.forEach(function(xr){var Nr=Ye(xr),Ao=Ft(Nr,qn,pr,!0).map(function(Qr){var eo=Qr.option;return eo}),Ja=Ao[Ao.length-1];(!Ja||Ja[pr.children]||$e(Ja,pr))&&kr(function(Qr){return Qr.filter(function(eo){return eo!==xr})})})},[qn,ao,pr]);var an=Ee.useMemo(function(){return new Set(Me(zt))},[zt]),gr=Ee.useMemo(function(){return new Set(Me(Ma))},[Ma]),ga=Ce(),ur=(0,Oe.Z)(ga,2),Va=ur[0],hn=ur[1],aa=function(Nr){hn(Nr),ca(Nr)},La=function(Nr){var Ao=Nr.disabled,Ja=$e(Nr,pr);return!Ao&&(Ja||So||nt)},Jn=function(Nr,Ao){var Ja=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;$a(Nr),!nt&&(Ao||So&&(Sr==="hover"||Ja))&&ln(!1)},sr=Ee.useMemo(function(){return Xe?Gt:qn},[Xe,Gt,qn]),tr=Ee.useMemo(function(){for(var xr=[{options:sr}],Nr=sr,Ao=ft(Nr,pr),Ja=function(){var to=Va[Qr],xt=Nr.find(function(ht,kn){return(Ao[kn]?ut(Ao[kn]):ht[pr.value])===to}),At=xt==null?void 0:xt[pr.children];if(!(At!=null&&At.length))return"break";Nr=At,xr.push({options:At})},Qr=0;Qr":ao,ca=Ze.loadingIcon,an=Ze.children,gr=Ze.dropdownMatchSelectWidth,ga=gr===void 0?!1:gr,ur=Ze.showCheckedStrategy,Va=ur===void 0?Qe:ur,hn=(0,De.Z)(Ze,kt),aa=(0,ze.ZP)(en),La=!!Cn,Jn=(0,E.Z)(_n,{value:Je,postState:ia}),sr=(0,Oe.Z)(Jn,2),tr=sr[0],Ar=sr[1],$r=Ee.useMemo(function(){return Ge(Qn)},[JSON.stringify(Qn)]),mr=Ee.useMemo(function(){return zt||[]},[zt]),_o=Bn(mr,$r),Ro=Ee.useCallback(function(Dn){var Hn=_o();return Dn.map(function(me){var gt=Hn[me].nodes;return gt.map(function(Ct){return Ct[$r.value]})})},[_o,$r]),Fl=(0,E.Z)("",{value:pa,postState:function(Hn){return Hn||""}}),xr=(0,Oe.Z)(Fl,2),Nr=xr[0],Ao=xr[1],Ja=function(Hn,me){Ao(Hn),me.source!=="blur"&&na&&na(Hn)},Qr=Te(ya),eo=(0,Oe.Z)(Qr,2),hr=eo[0],to=eo[1],xt=Pe(Nr,mr,$r,Ma||Rt,to,nt),At=Qt(mr,$r),ht=Ee.useMemo(function(){var Dn=At(tr),Hn=(0,Oe.Z)(Dn,2),me=Hn[0],gt=Hn[1];if(!La||!tr.length)return[me,[],gt];var Ct=Me(me),cn=_o(),vt=(0,Ue.S)(Ct,!0,cn),Ln=vt.checkedKeys,An=vt.halfCheckedKeys;return[Ro(Ln),Ro(An),gt]},[La,tr,_o,Ro,At]),kn=(0,Oe.Z)(ht,3),Ga=kn[0],ar=kn[1],Pn=kn[2],er=Ee.useMemo(function(){var Dn=Me(Ga),Hn=dt(Dn,_o,Va);return[].concat((0,b.Z)(Pn),(0,b.Z)(Ro(Hn)))},[Ga,_o,Ro,Pn,Va]),Xa=Pt(er,mr,$r,La,ln),ro=(0,ue.Z)(function(Dn){if(Ar(Dn),Xe){var Hn=ia(Dn),me=Hn.map(function(cn){return Ft(cn,mr,$r).map(function(vt){return vt.option})}),gt=La?Hn:Hn[0],Ct=La?me:me[0];Xe(gt,Ct)}}),dr=(0,ue.Z)(function(Dn){if((!La||wa)&&Ao(""),!La)ro(Dn);else{var Hn=ut(Dn),me=Me(Ga),gt=Me(ar),Ct=me.includes(Hn),cn=Pn.some(function(ma){return ut(ma)===Hn}),vt=Ga,Ln=Pn;if(cn&&!Ct)Ln=Pn.filter(function(ma){return ut(ma)!==Hn});else{var An=Ct?me.filter(function(ma){return ma!==Hn}):[].concat((0,b.Z)(me),[Hn]),vn=_o(),yn;if(Ct){var Ia=(0,Ue.S)(An,{checked:!1,halfCheckedKeys:gt},vn);yn=Ia.checkedKeys}else{var cr=(0,Ue.S)(An,!0,vn);yn=cr.checkedKeys}var Fr=dt(yn,_o,Va);vt=Ro(Fr)}ro([].concat((0,b.Z)(Ln),(0,b.Z)(vt)))}}),Ha=function(Hn,me){if(me.type==="clear"){ro([]);return}var gt=me.values[0],Ct=gt.valueCells;dr(Ct)},wr=$a!==void 0?$a:So,bo=qr||Gt,rl=ir||Sr,Tr=function(Hn){Wr==null||Wr(Hn),Dr==null||Dr(Hn)},yo=Ee.useMemo(function(){return{options:mr,fieldNames:$r,values:Ga,halfValues:ar,changeOnSelect:nt,onSelect:dr,checkable:Cn,searchOptions:xt,dropdownPrefixCls:Ma,loadData:pr,expandTrigger:qn,expandIcon:kr,loadingIcon:ca,dropdownMenuColumnStyle:Ua}},[mr,$r,Ga,ar,nt,dr,Cn,xt,Ma,pr,qn,kr,ca,Ua]),To=!(Nr?xt:mr).length,sa=Nr&&to.matchInputWidth||To?{}:{minWidth:"auto"};return Ee.createElement(x.Provider,{value:yo},Ee.createElement(ke.Ac,(0,Ke.Z)({},hn,{ref:Mt,id:aa,prefixCls:Rt,autoClearSearchValue:wa,dropdownMatchSelectWidth:ga,dropdownStyle:sa,displayValues:Xa,onDisplayValuesChange:Ha,mode:La?"multiple":void 0,searchValue:Nr,onSearch:Ja,showSearch:hr,OptionList:pt,emptyOptions:To,open:wr,dropdownClassName:bo,placement:rl,onDropdownVisibleChange:Tr,getRawInputElement:function(){return an}})))});nn.SHOW_PARENT=Qe,nn.SHOW_CHILD=Le;var Ba=nn,Ka=Ba,Fa=ae(2738),jn=ae(62892),za=ae(53487),Aa=ae(19080),fr=ae(36355),ua=ae(93891),Zn=ae(1684),da=ae(19716),Ea=ae(32441),xa=ae(14154),_a=ae(58582),Sn=ae(84443),sn=ae(66339),Et=ae(33234),Tt=ae(98447),Za=ae(17313),Ca=ae(74207),Wa=ae(83116);const Da=Ze=>{const{prefixCls:Mt,componentCls:en,antCls:pn}=Ze,Rt=`${en}-menu-item`,Qn=` - &${Rt}-expand ${Rt}-expand-icon, - ${Rt}-loading-icon - `;return[{[en]:{width:Ze.controlWidth}},{[`${en}-dropdown`]:[(0,Tt.C2)(`${Mt}-checkbox`,Ze),{[`&${pn}-select-dropdown`]:{padding:0}},{[en]:{"&-checkbox":{top:0,marginInlineEnd:Ze.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${en}-menu-empty`]:{[`${en}-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({},Za.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}})}}}]},{[`${en}-dropdown-rtl`]:{direction:"rtl"}},(0,Ca.c)(Ze)]};var Ra=(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 en={};for(var pn in Ze)Object.prototype.hasOwnProperty.call(Ze,pn)&&Mt.indexOf(pn)<0&&(en[pn]=Ze[pn]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,pn=Object.getOwnPropertySymbols(Ze);Rtnt===0?[Je]:[].concat((0,b.Z)(_n),[Mt,Je]),[]),Rt=[];let Qn=0;return pn.forEach((_n,Je)=>{const nt=Qn+_n.length;let Xe=Ze.slice(Qn,nt);Qn=nt,Je%2===1&&(Xe=Ee.createElement("span",{className:`${en}-menu-item-keyword`,key:`separator-${Je}`},Xe)),Rt.push(Xe)}),Rt}const Yt=(Ze,Mt,en,pn)=>{const Rt=[],Qn=Ze.toLowerCase();return Mt.forEach((_n,Je)=>{Je!==0&&Rt.push(" / ");let nt=_n[pn.label];const Xe=typeof nt;(Xe==="string"||Xe==="number")&&(nt=Mo(String(nt),Qn,en)),Rt.push(nt)}),Rt},Yn=Ee.forwardRef((Ze,Mt)=>{const{prefixCls:en,size:pn,disabled:Rt,className:Qn,rootClassName:_n,multiple:Je,bordered:nt=!0,transitionName:Xe,choiceTransitionName:ln="",popupClassName:Cn,dropdownClassName:Nn,expandIcon:wa,placement:pa,showSearch:na,allowClear:ya=!0,notFoundContent:qn,direction:zt,getPopupContainer:Ma,status:pr,showArrow:So,builtinPlacements:$a,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:ir,renderEmpty:Wr,direction:Dr,popupOverflow:ao,cascader:kr}=Ee.useContext(fr.E_),ca=zt||Dr,an=ca==="rtl",{status:gr,hasFeedback:ga,isFormItemInput:ur,feedbackIcon:Va}=Ee.useContext(Ea.aM),hn=(0,Aa.F)(gr,pr),aa=qn||(Wr==null?void 0:Wr("Cascader"))||Ee.createElement(ua.Z,{componentName:"Cascader"}),La=ir(),Jn=ir("select",en),sr=ir("cascader",en),[tr,Ar]=(0,xa.Z)(Jn),[$r]=Ra(sr),{compactSize:mr,compactItemClassnames:_o}=(0,Et.ri)(Jn,zt),Ro=xe()(Cn||Nn,`${sr}-dropdown`,{[`${sr}-dropdown-rtl`]:ca==="rtl"},_n,Ar),Fl=Ee.useMemo(()=>{if(!na)return na;let Pn={render:Yt};return typeof na=="object"&&(Pn=Object.assign(Object.assign({},Pn),na)),Pn},[na]),xr=(0,da.Z)(Pn=>{var er;return(er=pn!=null?pn:mr)!==null&&er!==void 0?er:Pn}),Nr=Ee.useContext(Zn.Z),Ao=Rt!=null?Rt:Nr;let Ja=wa;wa||(Ja=an?Ee.createElement(we.Z,null):Ee.createElement(Re.Z,null));const Qr=Ee.createElement("span",{className:`${Jn}-menu-item-loading-icon`},Ee.createElement(Be.Z,{spin:!0})),eo=Ee.useMemo(()=>Je?Ee.createElement("span",{className:`${sr}-checkbox-inner`}):!1,[Je]),hr=(0,Sn.Z)(Ze.suffixIcon,So),{suffixIcon:to,removeIcon:xt,clearIcon:At}=(0,sn.Z)(Object.assign(Object.assign({},Ze),{hasFeedback:ga,feedbackIcon:Va,showSuffixIcon:hr,multiple:Je,prefixCls:Jn,componentName:"Cascader"})),ht=Ee.useMemo(()=>pa!==void 0?pa:an?"bottomRight":"bottomLeft",[pa,an]),kn=(0,_a.Z)($a,ao),Ga=ya===!0?{clearIcon:At}:ya,ar=Ee.createElement(Ka,Object.assign({prefixCls:Jn,className:xe()(!en&&sr,{[`${Jn}-lg`]:xr==="large",[`${Jn}-sm`]:xr==="small",[`${Jn}-rtl`]:an,[`${Jn}-borderless`]:!nt,[`${Jn}-in-form-item`]:ur},(0,Aa.Z)(Jn,hn,ga),_o,kr==null?void 0:kr.className,Qn,_n,Ar),disabled:Ao,style:Object.assign(Object.assign({},kr==null?void 0:kr.style),Gt)},Ua,{builtinPlacements:kn,direction:ca,placement:ht,notFoundContent:aa,allowClear:Ga,showSearch:Fl,expandIcon:Ja,suffixIcon:to,removeIcon:xt,loadingIcon:Qr,checkable:eo,dropdownClassName:Ro,dropdownPrefixCls:en||sr,choiceTransitionName:(0,jn.m)(La,"",ln),transitionName:(0,jn.m)(La,"slide-up",Xe),getPopupContainer:Ma||Sr,ref:Mt}));return $r(tr(ar))}),ea=(0,za.Z)(Yn);Yn.SHOW_PARENT=Rr,Yn.SHOW_CHILD=nr,Yn._InternalPanelDoNotUseOrYouWillBeFired=ea;var ba=Yn},36381:function(ot,jt,ae){"use strict";ae.d(jt,{default:function(){return on}});var b=ae(38819),Ee=ae(92310),we=ae.n(Ee),Be=ae(60499),Re=ae(77654),We=ae(72190),xe=ae(43749),Ke=ae(18929),Oe=ae(48736),De=ae(59301),ke=ae(42244),ze=ae(11592),Ue=ae(18642),ue=ae(77900),E=ae(10228),a=De.forwardRef(function(tt,pt){var Xn=tt.prefixCls,mn=tt.forceRender,Ut=tt.className,kt=tt.style,Wn=tt.children,ia=tt.isActive,nn=tt.role,Ba=De.useState(ia||mn),Ka=(0,We.Z)(Ba,2),Fa=Ka[0],jn=Ka[1];return De.useEffect(function(){(mn||ia)&&jn(!0)},[mn,ia]),Fa?De.createElement("div",{ref:pt,className:we()("".concat(Xn,"-content"),(0,Ue.Z)((0,Ue.Z)({},"".concat(Xn,"-content-active"),ia),"".concat(Xn,"-content-inactive"),!ia),Ut),style:kt,role:nn},De.createElement("div",{className:"".concat(Xn,"-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,pt){var Xn=tt.showArrow,mn=Xn===void 0?!0:Xn,Ut=tt.headerClass,kt=tt.isActive,Wn=tt.onItemClick,ia=tt.forceRender,nn=tt.className,Ba=tt.prefixCls,Ka=tt.collapsible,Fa=tt.accordion,jn=tt.panelKey,za=tt.extra,Aa=tt.header,fr=tt.expandIcon,ua=tt.openMotion,Zn=tt.destroyInactivePanel,da=tt.children,Ea=(0,ke.Z)(tt,y),xa=Ka==="disabled",_a=Ka==="header",Sn=Ka==="icon",sn=za!=null&&typeof za!="boolean",Et=function(){Wn==null||Wn(jn)},Tt=function(Br){(Br.key==="Enter"||Br.keyCode===E.Z.ENTER||Br.which===E.Z.ENTER)&&Et()},Za=typeof fr=="function"?fr(tt):De.createElement("i",{className:"arrow"});Za&&(Za=De.createElement("div",{className:"".concat(Ba,"-expand-icon"),onClick:["header","icon"].includes(Ka)?Et:void 0},Za));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),nn),Wa=we()(Ut,(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=Et,Da.role=Fa?"tab":"button",Da.tabIndex=xa?-1:0),De.createElement("div",(0,Be.Z)({},Ea,{ref:pt,className:Ca}),De.createElement("div",Da,mn&&Za,De.createElement("span",{className:"".concat(Ba,"-header-text"),onClick:Ka==="header"?Et:void 0},Aa),sn&&De.createElement("div",{className:"".concat(Ba,"-extra")},za)),De.createElement(ue.default,(0,Be.Z)({visible:kt,leavedClassName:"".concat(Ba,"-content-hidden")},ua,{forceRender:ia,removeOnLeave:Zn}),function(Ra,Br){var nr=Ra.className,Rr=Ra.style;return De.createElement(x,{ref:Br,prefixCls:Ba,className:nr,style:Rr,isActive:kt,forceRender:ia,role:Fa?"tabpanel":void 0},da)}))}),te=z,oe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],se=function(pt,Xn){var mn=Xn.prefixCls,Ut=Xn.accordion,kt=Xn.collapsible,Wn=Xn.destroyInactivePanel,ia=Xn.onItemClick,nn=Xn.activeKey,Ba=Xn.openMotion,Ka=Xn.expandIcon;return pt.map(function(Fa,jn){var za=Fa.children,Aa=Fa.label,fr=Fa.key,ua=Fa.collapsible,Zn=Fa.onItemClick,da=Fa.destroyInactivePanel,Ea=(0,ke.Z)(Fa,oe),xa=String(fr!=null?fr:jn),_a=ua!=null?ua:kt,Sn=da!=null?da:Wn,sn=function(Za){_a!=="disabled"&&(ia(Za),Zn==null||Zn(Za))},Et=!1;return Ut?Et=nn[0]===xa:Et=nn.indexOf(xa)>-1,De.createElement(te,(0,Be.Z)({},Ea,{prefixCls:mn,key:xa,panelKey:xa,isActive:Et,accordion:Ut,openMotion:Ba,expandIcon:Ka,header:Aa,collapsible:_a,onItemClick:sn,destroyInactivePanel:Sn}),za)})},le=function(pt,Xn,mn){if(!pt)return null;var Ut=mn.prefixCls,kt=mn.accordion,Wn=mn.collapsible,ia=mn.destroyInactivePanel,nn=mn.onItemClick,Ba=mn.activeKey,Ka=mn.openMotion,Fa=mn.expandIcon,jn=pt.key||String(Xn),za=pt.props,Aa=za.header,fr=za.headerClass,ua=za.destroyInactivePanel,Zn=za.collapsible,da=za.onItemClick,Ea=!1;kt?Ea=Ba[0]===jn:Ea=Ba.indexOf(jn)>-1;var xa=Zn!=null?Zn:Wn,_a=function(Et){xa!=="disabled"&&(nn(Et),da==null||da(Et))},Sn={key:jn,panelKey:jn,header:Aa,headerClass:fr,isActive:Ea,prefixCls:Ut,destroyInactivePanel:ua!=null?ua:ia,openMotion:Ka,accordion:kt,children:pt.props.children,onItemClick:_a,expandIcon:Fa,collapsible:xa};return typeof pt.type=="string"?pt:(Object.keys(Sn).forEach(function(sn){typeof Sn[sn]=="undefined"&&delete Sn[sn]}),De.cloneElement(pt,Sn))};function Pe(tt,pt,Xn){return Array.isArray(tt)?se(tt,Xn):(0,ze.Z)(pt).map(function(mn,Ut){return le(mn,Ut,Xn)})}var Fe=Pe,Qe=ae(26112);function Le(tt){var pt=tt;if(!Array.isArray(pt)){var Xn=(0,xe.Z)(pt);pt=Xn==="number"||Xn==="string"?[pt]:[]}return pt.map(function(mn){return String(mn)})}var ut=De.forwardRef(function(tt,pt){var Xn=tt.prefixCls,mn=Xn===void 0?"rc-collapse":Xn,Ut=tt.destroyInactivePanel,kt=Ut===void 0?!1:Ut,Wn=tt.style,ia=tt.accordion,nn=tt.className,Ba=tt.children,Ka=tt.collapsible,Fa=tt.openMotion,jn=tt.expandIcon,za=tt.activeKey,Aa=tt.defaultActiveKey,fr=tt.onChange,ua=tt.items,Zn=we()(mn,nn),da=(0,Ke.Z)([],{value:za,onChange:function(Tt){return fr==null?void 0:fr(Tt)},defaultValue:Aa,postState:Le}),Ea=(0,We.Z)(da,2),xa=Ea[0],_a=Ea[1],Sn=function(Tt){return _a(function(){if(ia)return xa[0]===Tt?[]:[Tt];var Za=xa.indexOf(Tt),Ca=Za>-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 sn=Fe(ua,Ba,{prefixCls:mn,accordion:ia,openMotion:Fa,expandIcon:jn,collapsible:Ka,destroyInactivePanel:kt,onItemClick:Sn,activeKey:xa});return De.createElement("div",(0,Be.Z)({ref:pt,className:Zn,style:Wn,role:ia?"tablist":void 0},(0,Qe.Z)(tt,{aria:!0,data:!0})),sn)}),Me=Object.assign(ut,{Panel:te}),Ye=Me,Ge=Me.Panel,$e=ae(2738),be=ae(62892),ft=ae(92343),dt=ae(36355),Ft=ae(19716),En=De.forwardRef((tt,pt)=>{const{getPrefixCls:Xn}=De.useContext(dt.E_),{prefixCls:mn,className:Ut,showArrow:kt=!0}=tt,Wn=Xn("collapse",mn),ia=we()({[`${Wn}-no-arrow`]:!kt},Ut);return De.createElement(Ye.Panel,Object.assign({ref:pt},tt,{prefixCls:Wn,className:ia}))}),Bn=ae(17313),Qt=ae(8378),St=ae(83116),Te=ae(37613);const et=tt=>{const{componentCls:pt,contentBg:Xn,padding:mn,headerBg:Ut,headerPadding:kt,collapseHeaderPaddingSM:Wn,collapseHeaderPaddingLG:ia,collapsePanelBorderRadius:nn,lineWidth:Ba,lineType:Ka,colorBorder:Fa,colorText:jn,colorTextHeading:za,colorTextDisabled:Aa,fontSize:fr,fontSizeLG:ua,lineHeight:Zn,marginSM:da,paddingSM:Ea,paddingLG:xa,paddingXS:_a,motionDurationSlow:Sn,fontSizeIcon:sn,contentPadding:Et}=tt,Tt=`${Ba}px ${Ka} ${Fa}`;return{[pt]:Object.assign(Object.assign({},(0,Bn.Wf)(tt)),{backgroundColor:Ut,border:Tt,borderBottom:0,borderRadius:`${nn}px`,"&-rtl":{direction:"rtl"},[`& > ${pt}-item`]:{borderBottom:Tt,"&:last-child":{[` +`}return nn.replaceSelection(hl+` +`),nn.focus();default:throw new Error}},[nn,_n]),er=(0,b.useMemo)(()=>{switch(_n){case _a:return b.createElement(Ut,{callback:Sn,onCancel:Xa});case Za:return b.createElement(Pt.Z,{callback:Sn,onCancel:Xa});case En:return b.createElement(Te.Z,{callback:Sn,onCancel:Xa});case ln:return b.createElement(ia,{callback:Sn,onCancel:Xa});case Ca:return b.createElement(kn,{callback:Sn,onCancel:Xa});case"maths-latex":return b.createElement(Tn,{showSaveButton:!0,callback:Sn});case"inline-latex":return b.createElement(da.Z,{showSaveButton:!0,callback:Sn});default:return null}},[_n]);function Xa(){dr("")}(0,b.useEffect)(()=>{if(wt.current){let sa=function(dn){mt=!0,Ct=dn.pageY},wn=function(){mt=!1},Gn=function(dn){if(mt){let vt=dn.pageY-Ct;vt<0&&(vt=0),vt>300&&(vt=300);let Dn=on+vt+"px";fr(Dn)}},me=wt.current,mt=!1,Ct=0;return me.addEventListener("mousedown",sa),document.addEventListener("mousemove",Gn),document.addEventListener("mouseup",wn),()=>{me.removeEventListener("mousedown",sa),document.removeEventListener("mousemove",Gn),document.removeEventListener("mouseup",wn)}}},[nn,wt]),(0,b.useEffect)(()=>{fr(on)},[on]);const oo=kt(Xe),cr=kt(eo),Ha={width:oo,height:cr},Dr=(0,b.useMemo)(()=>{if(tr){let sa=new Date(tr),wn=sa.getHours(),Gn=sa.getMinutes(),me=sa.getSeconds();return wn=wn<10?"0"+wn:wn,Gn=Gn<10?"0"+Gn:Gn,me=me<10?"0"+me:me,`${wn}:${Gn}:${me}`}return 0},[tr]),bo=sa=>{const wn=[];if(hr){let Gn=-1;sa=sa.replace(/(@▁▁@|@▁@)/g,function(me,mt,Ct){wn.push({multiLine:me!==$n})})}return wn};function rl(){window.sessionStorage.removeItem(ya),Ro(!1),yr(0)}function jr(){Ro(!1),yr(0),nn.setValue(window.sessionStorage.getItem(ya))}(0,b.useEffect)(()=>{Wn[_n]&&_n!==St&&_n!==ln&&setTimeout(()=>{const sa=document.getElementsByClassName("markdown-popup-form")[0],wn=window.innerWidth/2-sa.offsetWidth/2,Gn=window.innerHeight/2-sa.offsetHeight/2;Ja(wn),to(Gn)},0)},[_n]);const yo=sa=>{sa.preventDefault();const wn=sa.clientX-Ao,Gn=sa.clientY-Ur;document.body.onmousemove=me=>{let mt=me.clientX-wn,Ct=me.clientY-Gn;const dn=document.getElementsByClassName("markdown-popup-form")[0],vt=window.innerWidth-dn.offsetWidth,Dn=window.innerHeight-dn.offsetHeight;mt=Math.max(0,Math.min(mt,vt)),Ct=Math.max(0,Math.min(Ct,Dn)),To(me.clientX,me.clientY,wn,Gn)&&(Ja(mt),to(Ct))},document.body.onmouseup=function(){document.body.onmousemove=null}},To=(sa,wn,Gn,me)=>{const mt=document.body.clientHeight,Ct=document.body.clientWidth;return sa<20&&Gn>sa||sa>Ct-20&&Gnwn||wn>mt-20&&meut in Le?ze(Le,ut,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Le[ut]=Me,z=(Le,ut)=>{for(var Me in ut||(ut={}))a.call(ut,Me)&&y(Le,Me,ut[Me]);if(E)for(var Me of E(ut))x.call(ut,Me)&&y(Le,Me,ut[Me]);return Le},te=(Le,ut)=>Ue(Le,ue(ut));const{useForm:oe}=b.default,se={width:280,marginRight:10},le={labelCol:{span:5},wrapperCol:{span:19}};var Pe=({callback:Le,onCancel:ut})=>{const[Me]=oe();let Ye=(0,Oe.useRef)();function Ge(ft){Ye.current.width=Me.getFieldValue("width"),Ye.current.align=Me.getFieldValue("align"),Le(ft,Ye.current)}function $e(ft,ct){if(ft.status===-1){Ee.ZP.error(ft.message);return}Me.setFieldsValue({src:`/api/attachments/${ft.id}`,type:ct.type})}function be(ft){let ct=ft.target.files[0];Ye.current=ct,Qe(ct,$e)}return ke.createElement(b.default,te(z({form:Me},le),{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:ut},"\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,ut){if(!Le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,De.bg)())throw Ee.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){ut(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)}},23252:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return we}});var b=ae(59301),Ee=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,Ee.createPortal)(Re,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},50543:function(ot,Gt,ae){"use strict";ae.d(Gt,{i:function(){return le},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"},Ee=ae(71418),we=ae(6848),Be=ae(93948),Re=ae(92310),We=ae.n(Re),xe=ae(21331),Ke=ae(41625),Oe=ae(35219),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 le=[{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:ut=4,right:Me,bottom:Ye=23,precision:Ge=0,wrapWidth:$e=1200,trackEventItems:be,loading:ft,onRemove:ct=()=>{},isCurrent:Ft=!0,showAlias:At=!1,showProgress:hn=!1})=>{const Bn=Math.floor(($e-(ut-1)*Me)/ut),Ut=[{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(Ee.Z,{spinning:ft},se.createElement("div",{className:We()(b.list,Qe)},!!(Le!=null&&Le.length)&&(Le==null?void 0:Le.map((Pt,Te)=>{var et,Jt,xn,Mt,qt,Ce;const{name:rt,id:rn,identifier:tt,featured:pt,school_name:Xn,image_url:gn,excellent:Yt,is_plan:jt}=Pt;return se.createElement("div",{key:rn,className:Ft&&hn?b.wrapisCurrent:b.wrap,style:{width:Bn,marginRight:(1+Te)%ut===0?0:Me+Ge,marginBottom:Ye}},se.createElement("a",{className:b.li,onClick:Vn=>{Vn.preventDefault(),Vn.stopPropagation(),be&&(0,xe.L9)([be]),(0,xe.xg)(`/paths/${tt}`)}},se.createElement("div",{className:b.img},se.createElement("img",{className:b.cover,src:`${gn}`}),Ft&&(0,Oe.bg)()&&(Pt==null?void 0:Pt.studying)&&se.createElement("div",{className:`${b.movebq} user-path-items`,onClick:Vn=>{Vn.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((Vn,ia)=>{var tn,Ba;if(ia===0){const Fa=(tn=Ut.find(kn=>kn.name==Vn))==null?void 0:tn.swimg;return se.createElement("img",{className:b.sign,src:Fa,style:{left:"-4px"}})}const Ka=(Ba=Ut.find(Fa=>Fa.name==Vn))==null?void 0:Ba.ptimg;return se.createElement("img",{className:b.sign,src:Ka,style:{left:`${48+52*(ia-1)+2*ia}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${rt}`,se.createElement("br",null),se.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Pt==null?void 0:Pt.excellent_alias_name}`)):rt},se.createElement("span",{className:b.e},At&&(Pt==null?void 0:Pt.excellent_alias_name)||rt))),Ft&&hn&&((Jt=Pt==null?void 0:Pt.progress)==null?void 0:Jt.all_score)!=0&&se.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},se.createElement(Be.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((xn=Pt==null?void 0:Pt.progress)==null?void 0:xn.my_score)/((Mt=Pt==null?void 0:Pt.progress)==null?void 0:Mt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(qt=Pt==null?void 0:Pt.progress)==null?void 0:qt.my_score,"/",(Ce=Pt==null?void 0:Pt.progress)==null?void 0:Ce.all_score),(!Ft||!hn)&&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)))}},14739:function(ot,Gt,ae){"use strict";ae.d(Gt,{jL:function(){return Re},w9:function(){return ua},dN:function(){return xa},QD:function(){return ta},cQ:function(){return Mt.Z},Oz:function(){return Fa},op:function(){return Xe},O5:function(){return ga},_b:function(){return So},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 Wt},qE:function(){return Ln},Je:function(){return Ye},wb:function(){return Te},lB:function(){return xn},cq:function(){return Kt},tp:function(){return le},Si:function(){return pn},k8:function(){return no},Du:function(){return fr}});var b=ae(59301),Ee={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+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cX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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:wt=[],img:yt,imgWidth:ht=346,title:Mn,sunTitle:Ga,bannerExtraContent:rr})=>b.createElement("div",{className:Ee.banner},b.createElement("div",{className:Ee.content},b.createElement("aside",null,b.createElement("p",null,b.createElement("b",null,Mn),b.createElement("span",null,Ga)),wt.length>0&&b.createElement("div",{className:Ee.btns},wt.map((Sn,er)=>b.createElement("div",{key:er,onClick:Sn.click},Sn.name,Sn.sign?b.createElement("img",{src:we,width:39}):null))),rr),yt&&b.createElement("img",{style:{marginTop:33,marginRight:38},src:yt,width:ht}))),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(78267),De=Object.defineProperty,ke=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,ue=(wt,yt,ht)=>yt in wt?De(wt,yt,{enumerable:!0,configurable:!0,writable:!0,value:ht}):wt[yt]=ht,E=(wt,yt)=>{for(var ht in yt||(yt={}))ze.call(yt,ht)&&ue(wt,ht,yt[ht]);if(ke)for(var ht of ke(yt))Ue.call(yt,ht)&&ue(wt,ht,yt[ht]);return wt},x=({dataSource:wt=[],value:yt,onChange:ht,onTitleChange:Mn,className:Ga,title:rr,titleWidth:Sn=41,style:er={},fontColor:Xa="#6A7283",showCount:oo,classNameActive:cr,styleItem:Ha={}})=>{const[Dr,bo]=(0,b.useState)(0),[rl,jr]=(0,b.useState)(!1),yo=(0,b.useRef)(null),To=(0,b.useRef)(null);return(0,b.useEffect)(()=>{var sa;wt.length!==0&&(((sa=yo==null?void 0:yo.current)==null?void 0:sa.clientHeight)>97?bo(1):bo(0)),wt.length===0&&bo(0),jr(!1)},[wt]),b.createElement("div",{className:Ke()(We.row,Ga),style:er},b.createElement("div",{onClick:(0,Oe.throttle)(()=>Mn==null?void 0:Mn(),2e3),style:{width:Sn,marginTop:rl?12:4},className:`${We.title} ${Mn?"current":""}`},rr),b.createElement("div",{className:rl?`${We.tagsWrap} ${We.tagsBorderWrap}`:We.tagsWrap},b.createElement("div",{className:We.bar,ref:To,style:Dr>0?{height:Dr===1?97:"auto",overflow:Dr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},b.createElement("div",{className:We.tag,ref:yo},wt==null?void 0:wt.map(sa=>b.createElement("span",{onClick:()=>ht(sa.id),key:sa.id,style:E(E({color:Xa},Ha),(sa==null?void 0:sa.style)||{}),className:yt===sa.id?Ke()(cr||We.active,sa.classNameActive):""},b.createElement("span",{title:sa.name,className:We.name},sa.name),!!oo&&b.createElement("span",{className:We.num},sa.count))))),!!Dr&&b.createElement(b.Fragment,null,Dr===1?b.createElement("div",{onClick:()=>{var sa;bo(2),((sa=yo==null?void 0:yo.current)==null?void 0:sa.clientHeight)>245?jr(!0):jr(!1)},className:We.action},"\u5C55\u5F00",b.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):b.createElement("div",{onClick:()=>{To.current.scrollTop=0,bo(1),jr(!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:wt=[],value:yt,onChange:ht,onTitleChange:Mn,className:Ga,title:rr,titleWidth:Sn=41,style:er={},fontColor:Xa="#6A7283",showCount:oo,expand:cr=!0})=>{const[Ha,Dr]=(0,b.useState)(0),[bo,rl]=(0,b.useState)(!1),jr=(0,b.useRef)(null),yo=(0,b.useRef)(null),[To,sa]=(0,b.useState)(cr);return b.createElement("div",{className:Ke()(y.row,Ga),style:er},b.createElement("div",{className:"flex item-center justify-between"},b.createElement("div",{onClick:(0,Oe.throttle)(()=>Mn==null?void 0:Mn(),2e3),style:{width:Sn,marginTop:bo?12:4},className:`${y.title} ${Mn?"current":""}`},rr),b.createElement("i",{className:`iconfont ${To?"icon-yizhankai":"icon-weizhankai"} current`,style:{color:"#727C95",fontSize:To?8:10},onClick:()=>sa(!To)})),To&&b.createElement("div",{className:bo?`${y.tagsWrap} ${y.tagsBorderWrap}`:y.tagsWrap},b.createElement("div",{className:y.fenge}),b.createElement("div",{className:y.bar,ref:yo},b.createElement("div",{className:y.tag,ref:jr},wt==null?void 0:wt.map(wn=>b.createElement("span",{onClick:()=>ht(wn.id),key:wn.id,style:{color:Xa},className:yt===wn.id?y.active:""},b.createElement("span",{title:wn.name,className:y.name},wn.name),!!oo&&b.createElement("span",{className:y.num},wn.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"},le=({dataSource:wt=[],value:yt,onChange:ht,className:Mn,style:Ga={}})=>b.createElement("div",{style:Ga,className:Ke()(oe.tabs,Mn)},wt.map(rr=>b.createElement("span",{onClick:()=>ht(rr.id),className:yt===rr.id?oe.active:"",key:rr.id},rr.name))),Pe={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:wt=[],value:yt="",onChange:ht,onInputChange:Mn=()=>{},className:Ga,style:rr={},placeholder:Sn,allowClear:er=!1})=>{var Xa;const[oo,cr]=(0,b.useState)(""),[Ha,Dr]=(0,b.useState)("");(0,b.useEffect)(()=>{var jr;let yo=yt;(jr=JSON.stringify(yt))!=null&&jr.includes("{")&&(cr(yt.id),yo=yt.value||"");try{Dr(decodeURIComponent(yo||""))}catch(To){Dr(decodeURIComponent(yo||""))}},[yt]);const bo=()=>{ht(encodeURIComponent(Ha),oo||null)},rl=jr=>{jr!==oo&&(cr(jr),ht(encodeURIComponent(Ha),jr))};return b.createElement("div",{className:Ke()(Pe.input,Ga),style:rr},!!wt.length&&b.createElement("div",{className:Pe.dropdown},b.createElement("div",{className:Pe.text},(Xa=wt.find(jr=>jr.id===oo))==null?void 0:Xa.name,b.createElement("i",{className:"iconfont icon-zhankai4"}),b.createElement("b",{className:Pe.b1}),b.createElement("b",{className:Pe.b2})),b.createElement("div",{className:Pe.menu},wt.map((jr,yo)=>b.createElement("div",{key:yo,onClick:()=>rl(jr.id)},jr.name)))),b.createElement(Fe.default,{onPressEnter:bo,value:Ha,onChange:jr=>{Dr(jr.target.value),Mn(encodeURIComponent(jr.target.value),oo||null)},bordered:!1,placeholder:Sn}),b.createElement("i",{onClick:bo,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ut={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:wt,onChange:yt,className:ht,total:Mn,pageSize:Ga,style:rr={}})=>{const Sn=wt<2,er=wt>=Math.ceil(Mn/Ga);return Mn<=Ga?b.createElement(b.Fragment,null):b.createElement("div",{className:Ke()(ut.quickPager,ht),style:rr},b.createElement("div",{onClick:()=>{Sn||yt(wt-1,"prev")},className:Sn?ut.disabled:""},"\u4E0A\u4E00\u9875"),b.createElement("div",{onClick:()=>{er||yt(wt+1,"next")},className:er?ut.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),ft=ae(13570),ct=ae(41510),Ft=ae(21331),At=ae(96908),hn=ae(57177),Bn=ae(81378),Ut=ae(41625),Te=({className:wt,dataSource:yt=[],col:ht=4,right:Mn,bottom:Ga=23,precision:rr=0,wrapWidth:Sn=1200,trackEventItems:er,loading:Xa})=>{const oo=Math.floor((Sn-(ht-1)*Mn)/ht);return b.createElement($e.Z,{spinning:Xa},b.createElement("div",{className:Ke()(Ge.list,wt)},!!yt.length&&yt.map((cr,Ha)=>{const{name:Dr,id:bo,identifier:rl,power:jr,cover_image_id:yo,pic:To}=cr;return b.createElement("div",{className:Ge.wrap,key:bo,style:{width:oo,marginRight:(1+Ha)%ht===0?0:Mn+rr,marginBottom:Ga}},b.createElement("a",{target:"_blank",href:`/shixuns/${rl}/challenges`,className:Ge.li,onClick:sa=>{sa.preventDefault(),er&&(0,Ft.L9)([er]),jr&&(0,Ft.xg)(`/shixuns/${rl}/challenges`)}},b.createElement("div",{className:Ge.img},b.createElement("img",{className:Ge.cover,src:`${To}`}),cr.is_jupyter&&b.createElement("img",{className:Ge.sign,src:At}),cr.is_jupyter_lab&&b.createElement("img",{className:Ge.sign,src:hn}),cr.is_unity_3d&&b.createElement("img",{className:Ge.sign,src:Bn})),b.createElement("div",{className:Ge.name},b.createElement(be.Z,{title:Dr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},b.createElement("span",{className:Ge.e},Dr||"\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,cr.challenges_count))),!!cr.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,cr.myshixuns_count))),b.createElement(be.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},b.createElement("span",null,b.createElement("span",null,cr.level))),b.createElement("div",{className:Ge.rate},b.createElement(ft.Z,{allowHalf:!0,disabled:!0,defaultValue:cr.score_info}),b.createElement("span",null,"\xA0",cr.score_info?`${cr.score_info}\u5206`:"5\u5206")))),!jr&&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(Ut.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:wt,dataSource:yt=[],col:ht=4,right:Mn,bottom:Ga=23,precision:rr=0,wrapWidth:Sn=1200,wrapClassName:er,trackEventItems:Xa,loading:oo})=>{const cr=Math.floor((Sn-(ht-1)*Mn)/ht);return b.createElement($e.Z,{spinning:oo},b.createElement("div",{className:Ke()(et.list,wt)},!!yt.length&&yt.map((Ha,Dr)=>{const{name:bo,id:rl,identifier:jr,power:yo,cover_image_id:To,pic:sa}=Ha;return b.createElement("div",{className:Ke()(et.wrap,er),key:rl,style:{width:cr,marginRight:(1+Dr)%ht===0?0:Mn+rr,marginBottom:Ga}},b.createElement("a",{target:"_blank",href:`/shixuns/${jr}/challenges`,className:et.li,onClick:wn=>{wn.preventDefault(),Xa&&(0,Ft.L9)([Xa]),yo&&(0,Ft.xg)(`/shixuns/${jr}/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:To?`${ct.Z.API_SERVER}/api/attachments/${To}`:`${ct.Z.IMG_SERVER+sa}`}),Ha.is_jupyter&&b.createElement("div",{className:et.bq},"Jupyter"),Ha.is_jupyter_lab&&b.createElement("div",{className:et.bq},"JupyterLab"),Ha.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},Ha.myshixuns_count)),b.createElement("div",null,b.createElement("span",{className:et.text},"\u56F0\u96BE\u7B49\u7EA7"),b.createElement("span",{className:et.value},Ha.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},Ha.challenges_count)),b.createElement("div",{className:et.rate},b.createElement(ft.Z,{allowHalf:!0,disabled:!0,defaultValue:Ha.score_info}),b.createElement("span",{className:et.value,style:{color:"#FF9C00"}},"\xA0",Ha.score_info?`${Ha.score_info}\u5206`:"5\u5206"))))),!yo&&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(Ut.Z,null)))},Mt=ae(50543),qt={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),rt=ae(20345),rn=ae(77882),tt=ae(31081),pt=ae(75309),Xn=ae(71979),gn=ae(47558),Yt=ae(42922),jt=ae(66832),Vn=ae(96593),ia=ae(19664),tn=ae(91833);const Ba=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:Ce,swimg:rt},{name:"101\u8BA1\u5212",ptimg:rn,swimg:tt},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:pt,swimg:Xn},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:gn,swimg:Yt},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:jt,swimg:Vn},{name:"\u519B\u961F\u4E00\u6D41",ptimg:ia,swimg:tn}];var Fa=({className:wt,dataSource:yt=[],col:ht=4,right:Mn,bottom:Ga=23,precision:rr=0,wrapWidth:Sn=1200,trackEventItems:er,loading:Xa,wrapClassName:oo,imgClassName:cr,isArrow:Ha=!1})=>{const Dr=Math.floor((Sn-(ht-1)*Mn)/ht),[bo,rl]=(0,b.useState)(),[jr,yo]=(0,b.useState)(),To=wn=>rl(wn),sa=()=>rl(-1);return b.createElement($e.Z,{spinning:Xa},b.createElement("div",{className:Ke()(qt.list,wt)},!!(yt!=null&&yt.length)&&(yt==null?void 0:yt.map((wn,Gn)=>{var me;const{name:mt,id:Ct,identifier:dn,featured:vt,school_name:Dn,image_url:An,excellent:fn,is_plan:yn}=wn;return b.createElement("div",{key:Ct,className:Ke()(qt.wrap,oo),style:{width:Dr,marginRight:(1+Gn)%ht===0?0:Mn+rr,marginBottom:Ga}},b.createElement("a",{target:"_blank",href:`/paths/${dn}`,className:qt.li,onClick:Ia=>{Ia.preventDefault(),er&&(0,Ft.L9)([er]),(0,Ft.xg)(`/paths/${dn}`)}},b.createElement("img",{src:ae(39057),className:qt.titleBg}),b.createElement("div",{className:qt.name},b.createElement(be.Z,{title:mt},b.createElement("span",{className:qt.e,style:{color:Ha&&bo===Gn?"#145DFF":"#000000"},onMouseEnter:()=>{To(Gn)},onMouseLeave:sa},mt))),b.createElement("div",{style:{padding:"14px",paddingBottom:0}},b.createElement("div",{className:Ke()(qt.img,cr)},b.createElement("img",{className:qt.cover,src:`${ct.Z.IMG_SERVER+An}`}),(me=wn==null?void 0:wn.subject_tags)==null?void 0:me.map((Ia,gr)=>{var Cr,ma;if(gr===0){const or=(Cr=Ba.find(Sr=>Sr.name==Ia))==null?void 0:Cr.swimg;return b.createElement("img",{className:qt.sign,src:or,style:{left:"-4px"}})}const va=(ma=Ba.find(or=>or.name==Ia))==null?void 0:ma.ptimg;return b.createElement("img",{className:qt.sign,src:va,style:{left:`${48+52*(gr-1)+2*gr}px`}})}),b.createElement("div",{style:{position:"absolute",right:"4px",bottom:"4px"}},(wn==null?void 0:wn.excellent)&&b.createElement("div",{className:qt.bq},"\u5F00\u653E\u8BFE\u7A0B"))),b.createElement("div",{className:"mt10 mb10 flex item-center justify-between"},b.createElement("div",null,b.createElement("span",{className:qt.text},"\u7AE0\u8282\u6570"),b.createElement("span",{className:qt.value},wn.stages_count)),b.createElement("div",null,b.createElement("span",{className:qt.text},"\u5B66\u4E60\u4EBA\u6570"),b.createElement("span",{className:qt.value},wn.members_count))))))})),!yt.length&&b.createElement(Ut.Z,null)))},kn={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"},za="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/U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nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Aa=ae(59301),ua=({className:wt,dataSource:yt=[],col:ht=4,right:Mn,bottom:Ga=23,precision:rr=0,wrapWidth:Sn=1200,trackEventItems:er,loading:Xa})=>{const oo=Math.floor((Sn-(ht-1)*Mn)/ht);return Aa.createElement($e.Z,{spinning:Xa},Aa.createElement("div",{className:Ke()(kn.list,wt)},!!yt.length&&yt.map((cr,Ha)=>{const{subject_identifier:Dr,id:bo,identifier:rl,power:jr}=cr,yo=cr.is_public!=0&&cr.is_public;return Aa.createElement("div",{className:kn.wrap,key:bo,style:{width:oo,marginRight:(1+Ha)%ht===0?0:Mn+rr,marginBottom:Ga}},Aa.createElement("a",{className:kn.li,onClick:To=>{To.preventDefault(),er&&(0,Ft.L9)([er]),(0,Ft.xg)(cr.first_category_url)}},Aa.createElement("div",{className:kn.top},Aa.createElement(be.Z,{title:cr.name},Aa.createElement("div",{className:kn.name},cr.name)),Aa.createElement("img",{className:kn.img,src:ct.Z.IMG_SERVER+"/images/"+cr.avatar_url}),Aa.createElement("div",{className:kn.text,title:cr.creator},cr.creator),Dr&&Aa.createElement("div",{className:kn.btns},Aa.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Aa.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),yo&&Aa.createElement("div",{className:kn.sign},"\u516C\u5F00")),Aa.createElement("div",{className:kn.bottom},cr.visits>0&&Aa.createElement(be.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Aa.createElement("span",null,Aa.createElement("i",{className:"iconfont icon-liulanyan"}),Aa.createElement("span",null,cr.visits))),cr.course_members_count>0&&Aa.createElement(be.Z,{title:"\u6210\u5458",placement:"bottom"},Aa.createElement("span",null,Aa.createElement("i",{className:"iconfont icon-chengyuan"}),cr.course_members_count)),cr.tasks_count>0&&Aa.createElement(be.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Aa.createElement("span",null,Aa.createElement("i",{className:"iconfont icon-zuoye"}),cr.tasks_count)),cr.is_end?Aa.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Aa.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!cr.is_accessible&&Aa.createElement("div",{className:kn.lockWrap},Aa.createElement("img",{src:`${ct.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Aa.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!yt.length&&Aa.createElement(Ut.Z,null)))},Tn={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/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPFyrs9j78A5l/sxQRXrE2ix5SiLyZj7v+s2BgArBjA+XzpzR7oq8x880ouQK/7JqKnFfiziUT0iV731aj9ZQeYmYez+fJXiOguZl72/ldk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LQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",xa=({className:wt,dataSource:yt=[],col:ht=4,right:Mn,bottom:Ga=23,precision:rr=0,wrapWidth:Sn=1200,wrapClassName:er,trackEventItems:Xa,loading:oo})=>{const cr=Math.floor((Sn-(ht-1)*Mn)/ht);return b.createElement($e.Z,{spinning:oo},b.createElement("div",{className:Ke()(Tn.list,wt)},!!yt.length&&yt.map((Ha,Dr)=>{const{subject_identifier:bo,id:rl,identifier:jr,power:yo}=Ha,To=Ha.is_public!=0&&Ha.is_public;return b.createElement("div",{className:Ke()(`${Tn.wrap} ${Ha.is_accessible?"":Tn.warpStyle}`,er),key:rl,style:{width:cr,marginRight:(1+Dr)%ht===0?0:Mn+rr,marginBottom:Ga}},b.createElement("a",{className:Tn.li,onClick:sa=>{sa.preventDefault(),Xa&&(0,Ft.L9)([Xa]),(0,Ft.xg)(Ha.first_category_url)}},b.createElement("div",{className:Tn.creator},b.createElement("img",{className:Tn.img,src:ct.Z.IMG_SERVER+"/images/"+Ha.avatar_url}),b.createElement("div",{className:Tn.text,title:Ha.creator},Ha.creator)),b.createElement("div",{className:Tn.top},b.createElement(be.Z,{title:Ha.name},b.createElement("div",{className:Tn.name},Ha.name)),To&&b.createElement("div",{className:Tn.sign},"\u516C\u5F00")),b.createElement("div",{className:Tn.middle},b.createElement("div",{className:Tn.row,style:{marginBottom:6}},b.createElement("div",null,b.createElement("span",{className:Tn.text},"\u8BBF\u95EE\u91CF"),b.createElement("span",{className:Tn.value},(Ha==null?void 0:Ha.visits)||0)),b.createElement("div",null,b.createElement("span",{className:Tn.text},"\u6210\u5458"),b.createElement("span",{className:Tn.value},(Ha==null?void 0:Ha.course_members_count)||0))),b.createElement("div",{className:Tn.row},b.createElement("div",null,b.createElement("span",{className:Tn.text,style:{width:42}},"\u4F5C",b.createElement("span",{style:{marginLeft:14}},"\u4E1A")),b.createElement("span",{className:Tn.value},(Ha==null?void 0:Ha.tasks_count)||0)),b.createElement("div",null,b.createElement("span",{className:Tn.text},"\u72B6\u6001"),Ha.is_end?b.createElement("span",{className:Tn.value,style:{color:"#6E8BAA"}},"\u5DF2\u7ED3\u675F"):b.createElement("span",{className:Tn.value,style:{color:"#1AAE64"}},"\u8FDB\u884C\u4E2D")))),bo&&b.createElement("div",{className:Tn.btns},b.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),b.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802"))),!Ha.is_accessible&&b.createElement("div",{className:Tn.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(Ut.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"},En=ae(6075),St=({dataSource:wt=[],value:yt,onChange:ht,className:Mn,style:Ga={},tabBarExtraContent:rr})=>b.createElement("div",{className:Ke()(_a.tabs,Mn),style:Ga},b.createElement("div",{className:_a.tabsWrap},wt.map((Sn,er)=>b.createElement("aside",{className:_a.tab,onClick:()=>{ht(Sn.id),Sn.link&&En.history.push(Sn.link)},key:er},b.createElement("div",{className:yt===Sn.id?_a.active:""},Sn.name),(Sn==null?void 0:Sn.resetCount)==null&&(Sn==null?void 0:Sn.total)!==void 0&&b.createElement("span",null,"\uFF08",Sn==null?void 0:Sn.total,"\uFF09"),(Sn==null?void 0:Sn.resetCount)!==void 0&&(Sn==null?void 0:Sn.total)!==void 0&&b.createElement(be.Z,{title:(Sn==null?void 0:Sn.tip)!=null?Sn==null?void 0:Sn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},Sn==null?void 0:Sn.resetCount),"/",b.createElement("span",null,Sn==null?void 0:Sn.total),"\uFF09"))))),b.createElement("div",{className:_a.tabBar},rr)),Zt={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:wt=[],value:yt,onChange:ht,className:Mn,style:Ga={},tabBarExtraContent:rr})=>b.createElement("div",{className:Ke()(Zt.tabs,Mn),style:Ga},b.createElement("div",{className:Zt.tabsWrap},wt.map((Sn,er)=>b.createElement("aside",{className:Zt.tab,onClick:()=>{ht(Sn.id),Sn.link&&En.history.push(Sn.link)},key:er},b.createElement("div",{className:yt===Sn.id?Zt.active:""},Sn.name),(Sn==null?void 0:Sn.resetCount)==null&&(Sn==null?void 0:Sn.total)!==void 0&&b.createElement("span",null,"\uFF08",Sn==null?void 0:Sn.total,"\uFF09"),(Sn==null?void 0:Sn.resetCount)!==void 0&&(Sn==null?void 0:Sn.total)!==void 0&&b.createElement(be.Z,{title:(Sn==null?void 0:Sn.tip)!=null?Sn==null?void 0:Sn.tip:""},b.createElement("span",{style:{color:"#9096A3"}},"\uFF08",b.createElement("span",{style:{color:"#000"}},Sn==null?void 0:Sn.resetCount),"/",b.createElement("span",null,Sn==null?void 0:Sn.total),"\uFF09"))))),b.createElement("div",{className:Zt.tabBar},rr)),Da=({className:wt,style:yt={},children:ht})=>b.createElement("div",{className:Ke()(wt),style:yt},ht),Ra={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"},xr=ae(38854),ar=ae(20834);const kr=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Kt=({sortValue:wt,dropValue:yt,className:ht,onSort:Mn,onDrop:Ga,dataSource:rr=kr})=>{var Sn;return b.createElement("div",{className:Ke()(Ra.orderWrap,ht)},b.createElement(xr.Z,{dropdownRender:()=>b.createElement(ar.default,null,rr.map((er,Xa)=>b.createElement(ar.default.Item,{key:Xa,onClick:()=>Ga(er.id)},er.name)))},b.createElement("span",{className:Ra.orderTextWrap},(Sn=rr.find(er=>yt===er.id))==null?void 0:Sn.name)),b.createElement("span",{className:Ra.orderIconWrap},b.createElement("span",{className:Ra.orderAsc},b.createElement("i",{className:wt==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Ra.cursorPointer} ${Ra.active}`:`iconfont icon-sanjiaoxing-up font12 ${Ra.cursorPointer}`,onClick:()=>Mn(wt==="asc"?"desc":"asc")})),b.createElement("span",{className:Ra.orderDesc},b.createElement("i",{className:wt==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Ra.cursorPointer} ${Ra.active}`:`iconfont icon-sanjiaoxing-down font12 ${Ra.cursorPointer}`,onClick:()=>Mn(wt==="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(95051),Ze=Object.defineProperty,kt=Object.getOwnPropertySymbols,$t=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,Tt=(wt,yt,ht)=>yt in wt?Ze(wt,yt,{enumerable:!0,configurable:!0,writable:!0,value:ht}):wt[yt]=ht,Wn=(wt,yt)=>{for(var ht in yt||(yt={}))$t.call(yt,ht)&&Tt(wt,ht,yt[ht]);if(kt)for(var ht of kt(yt))vn.call(yt,ht)&&Tt(wt,ht,yt[ht]);return wt},Kn=(wt,yt)=>{var ht={};for(var Mn in wt)$t.call(wt,Mn)&&yt.indexOf(Mn)<0&&(ht[Mn]=wt[Mn]);if(wt!=null&&kt)for(var Mn of kt(wt))yt.indexOf(Mn)<0&&vn.call(wt,Mn)&&(ht[Mn]=wt[Mn]);return ht},Je=(wt,yt,ht)=>new Promise((Mn,Ga)=>{var rr=Xa=>{try{er(ht.next(Xa))}catch(oo){Ga(oo)}},Sn=Xa=>{try{er(ht.throw(Xa))}catch(oo){Ga(oo)}},er=Xa=>Xa.done?Mn(Xa.value):Promise.resolve(Xa.value).then(rr,Sn);er((ht=ht.apply(wt,yt)).next())}),Xe=wt=>{var yt=wt,{className:ht,style:Mn,children:Ga,loading:rr=!1,openLoading:Sn,onClick:er=()=>{},size:Xa="middle",shape:oo="round",theme:cr}=yt,Ha=Kn(yt,["className","style","children","loading","openLoading","onClick","size","shape","theme"]);const[Dr,bo]=(0,b.useState)(!1),rl=(0,b.useMemo)(()=>{switch(cr){case ba.Fy.THEMEONE:return Un.ThemeOne;case ba.Fy.DEFAULT:default:return Un.btn}},[cr]);return b.createElement($n.ZP,Wn({onClick:(0,Oe.throttle)(jr=>Je(void 0,null,function*(){Sn&&bo(!0);try{yield er(jr)}catch(yo){console.log("error",yo)}Sn&&bo(!1)}),2e3,{leading:!0,trailing:!1}),className:Ke()(rl,Un[`${Xa}-${oo}`],ht),style:Mn,size:Xa,shape:oo,loading:Dr||rr},Ha),Ga)},on={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"},Ln=({className:wt,style:yt,children:ht=null,onClick:Mn,title:Ga})=>b.createElement("div",{className:Ke()(on.head,wt),style:yt},b.createElement("span",{className:"primary-hover",onClick:Mn},b.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),b.createElement("b",{title:Ga},Ga),b.createElement("div",{className:on.node},ht)),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:wt=!0,confirmTitle:yt,confirmClick:ht,cancelShow:Mn=!0,cancelTitle:Ga,cancelClick:rr,className:Sn,style:er,confirmLoading:Xa=!1})=>b.createElement("div",{className:Ke()(wa.btns,Sn),style:er},wt&&b.createElement($n.ZP,{loading:Xa,onClick:ht,type:"primary",className:wa.confirm},yt),Mn&&b.createElement($n.ZP,{onClick:rr,className:wa.cancel},Ga)),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"},Wt=({className:wt,style:yt={},LeftContent:ht,children:Mn,RightContent:Ga})=>b.createElement("div",{className:Ke()(ya.fixedBottom,wt),style:yt},b.createElement("div",{className:ya.wrap},b.createElement("div",{className:ya.left},ht),b.createElement("div",{className:ya.center},Mn),b.createElement("div",{className:ya.right},Ga))),Ma={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"},So=({className:wt,style:yt={},dataSource:ht=[]})=>b.createElement("div",{className:Ke()(Ma.crumbs,wt),style:yt},ht.map((Mn,Ga)=>GaEn.history.push(Mn.path)},Mn.name):b.createElement("span",null,Mn.name),b.createElement("span",null,"\xA0",">","\xA0")):b.createElement("span",{key:Ga,style:{color:"#5F6368"}},Mn.name))),$a=ae(31797),Vt=Object.defineProperty,$r=Object.defineProperties,Ua=Object.getOwnPropertyDescriptors,Pr=Object.getOwnPropertySymbols,ur=Object.prototype.hasOwnProperty,Qr=Object.prototype.propertyIsEnumerable,Lr=(wt,yt,ht)=>yt in wt?Vt(wt,yt,{enumerable:!0,configurable:!0,writable:!0,value:ht}):wt[yt]=ht,ro=(wt,yt)=>{for(var ht in yt||(yt={}))ur.call(yt,ht)&&Lr(wt,ht,yt[ht]);if(Pr)for(var ht of Pr(yt))Qr.call(yt,ht)&&Lr(wt,ht,yt[ht]);return wt},Tr=(wt,yt)=>$r(wt,Ua(yt)),ca=(wt,yt)=>{var ht={};for(var Mn in wt)ur.call(wt,Mn)&&yt.indexOf(Mn)<0&&(ht[Mn]=wt[Mn]);if(wt!=null&&Pr)for(var Mn of Pr(wt))yt.indexOf(Mn)<0&&Qr.call(wt,Mn)&&(ht[Mn]=wt[Mn]);return ht};const{Countdown:nn}=$a.default;var ga=wt=>{var yt=wt,{onChange:ht}=yt,Mn=ca(yt,["onChange"]);const[Ga,rr]=(0,b.useState)(null);(0,b.useEffect)(()=>{typeof Ga=="number"&&Ga>=0&&ht(Ga)},[Ga]);const Sn=er=>{const Xa=Math.floor(er/1e3);rr(Xa)};return b.createElement(nn,Tr(ro({},Mn),{onChange:Sn}))},sr={ClassRoomItem:"ClassRoomItem___F4pL0",TitleDom:"TitleDom___DB76T"},pn=({DataProps:wt,className:yt,style:ht={}})=>{var Mn;return b.createElement("div",{className:Ke()("rounded-40px bg-white py-10px pb-30px px-30px flex gap-22px current h-full",sr.ClassRoomItem,yt),style:ht,onClick:()=>{(0,Ft.xg)(wt==null?void 0:wt.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/${wt==null?void 0:wt.avatar_url}`,className:"rounded-full",style:{height:76,width:76,marginTop:"-24px"}}),(wt==null?void 0:wt.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}},!!(wt!=null&&wt.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",sr.TitleDom)},wt==null?void 0:wt.name)),b.createElement("div",{className:"c-grey-333 font-medium"},wt==null?void 0:wt.creator),b.createElement("div",{className:"c-grey-333"},"\u6210\u5458\uFF1A",wt==null?void 0:wt.course_members_count),b.createElement("div",{className:"c-grey-333 flex item-center justify-between"},b.createElement("div",null,"\u4F5C\u4E1A\uFF1A",wt==null?void 0:wt.tasks_count),wt!=null&&wt.is_end?b.createElement("div",{style:{color:"#5F6A95"}},"\u5DF2\u7ED3\u675F"):b.createElement("div",{style:{color:"#37AD83"}},"\u8FDB\u884C\u4E2D"))))},na=Object.defineProperty,La=Object.getOwnPropertySymbols,_n=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable,tr=(wt,yt,ht)=>yt in wt?na(wt,yt,{enumerable:!0,configurable:!0,writable:!0,value:ht}):wt[yt]=ht,yr=(wt,yt)=>{for(var ht in yt||(yt={}))_n.call(yt,ht)&&tr(wt,ht,yt[ht]);if(La)for(var ht of La(yt))dr.call(yt,ht)&&tr(wt,ht,yt[ht]);return wt},fr=({DataProps:wt=[],selectValue:yt,onChange:ht,className:Mn,style:Ga={},extra:rr,classNameItem:Sn,styleItem:er={},barHidden:Xa})=>{const[oo,cr]=(0,b.useState)();return(0,b.useEffect)(()=>{cr(Array.isArray(yt)?yt:[yt])},[yt]),b.createElement("div",{className:Ke()("flex px-20px py-10px gap-40px",Mn),style:yr({borderBottom:"1px solid #D3F0FF"},Ga)},wt==null?void 0:wt.map(Ha=>b.createElement("div",{key:Ha==null?void 0:Ha.id,className:Ke()("flex item-center justify-center current c-grey-333 text-16 relative",Sn,Ha==null?void 0:Ha.className),style:yr(yr({color:oo!=null&&oo.includes(Ha==null?void 0:Ha.id)?"#1890FF":"",minWidth:88},er),(Ha==null?void 0:Ha.style)||{}),onClick:Dr=>{ht==null||ht({domEvent:Dr,item:Ha}),Ha!=null&&Ha.link&&En.history.push(Ha==null?void 0:Ha.link)}},Ha==null?void 0:Ha.name,!Xa&&(oo==null?void 0:oo.includes(Ha==null?void 0:Ha.id))&&b.createElement("div",{className:"absolute w-full h-2px",style:{background:"#1890FF",bottom:"-10px",left:0}}))),b.createElement("div",{className:"ml-auto"},rr))},_o=Object.defineProperty,Ro=Object.defineProperties,Fl=Object.getOwnPropertyDescriptors,wr=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,Ao=Object.prototype.propertyIsEnumerable,Ja=(wt,yt,ht)=>yt in wt?_o(wt,yt,{enumerable:!0,configurable:!0,writable:!0,value:ht}):wt[yt]=ht,Ur=(wt,yt)=>{for(var ht in yt||(yt={}))Or.call(yt,ht)&&Ja(wt,ht,yt[ht]);if(wr)for(var ht of wr(yt))Ao.call(yt,ht)&&Ja(wt,ht,yt[ht]);return wt},to=(wt,yt)=>Ro(wt,Fl(yt)),no=({value:wt,onChange:yt,onInputChange:ht,className:Mn,style:Ga={},InputProps:rr})=>{const[Sn,er]=(0,b.useState)(wt);return b.createElement("div",{className:Ke()("flex item-center rounded-full px-10px py-2px",Mn),style:Ur({background:"linear-gradient( #E4F6FF 0%, #EAF3FF 100%)",border:"1px solid #fff",boxShadow:"inset 0px 1px 3px 0px rgba(133,188,255,0.5)"},Ga)},b.createElement(Fe.default,to(Ur({bordered:!1},rr),{onChange:Xa=>{er(Xa.target.value),ht==null||ht(encodeURIComponent(Xa.target.value))},onPressEnter:Xa=>{yt==null||yt({domEvent:Xa,item:{value:Sn}})}})),b.createElement("img",{className:"h-22px current",src:ae(25365),height:22,onClick:Xa=>{yt==null||yt({domEvent:Xa,item:{value:Sn}})}}))}},34500:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return Ee}});var b=ae(59301);function Ee(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])}},29849:function(ot,Gt,ae){"use strict";ae.r(Gt),ae.d(Gt,{default:function(){return gu}});var b=ae(59301),Ee=ae(6075),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=(ie,Se,he)=>new Promise((gt,bt)=>{var Qn=it=>{try{Xt(he.next(it))}catch(en){bt(en)}},bn=it=>{try{Xt(he.throw(it))}catch(en){bt(en)}},Xt=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,bn);Xt((he=he.apply(ie,Se)).next())});const y=({user:ie,dispatch:Se,classroomList:he,onModalOk:gt,setsubloading:bt})=>{const Qn=(0,Ee.useParams)(),[bn,Xt]=(0,b.useState)(),[it,en]=(0,b.useState)(!1);function ra(Bt){return Bt&&Bt{en(!1)},zIndex:8888,destroyOnClose:!0,footer:null,maskClosable:!1,keyboard:!1,open:he.actionTabs.key==="\u9884\u7EA6\u5F39\u7A97",onCancel:()=>{if(it){Be.ZP.warning("\u6B63\u5728\u8BF7\u6C42\u6570\u636E\u4E2D...");return}bt(!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:ra,format:"YYYY-MM-DD HH:mm:ss",onChange:(Bt,Lt)=>{Xt(Lt)},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:it,type:"primary",onClick:()=>x(void 0,null,function*(){en(!0),gt(bn,()=>{Se({type:"classroomList/setActionTabs",payload:{}})})})},"\u786E\u8BA4"))))};var z=(0,Ee.connect)(({user:ie,classroomList:Se})=>({user:ie,classroomList:Se}))(y),te=ae(23789),oe=ae(32134),se=ae(12893),le={wrap:"wrap___Ww0Ti",itemWarp:"itemWarp___LMLjd",addIcon:"addIcon___xmRLl",deleteIcon:"deleteIcon___gjwgO"},Pe=ae(57809),Fe=Object.defineProperty,Qe=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,Me=(ie,Se,he)=>Se in ie?Fe(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Ye=(ie,Se)=>{for(var he in Se||(Se={}))Le.call(Se,he)&&Me(ie,he,Se[he]);if(Qe)for(var he of Qe(Se))ut.call(Se,he)&&Me(ie,he,Se[he]);return ie},Ge=(ie,Se,he)=>new Promise((gt,bt)=>{var Qn=it=>{try{Xt(he.next(it))}catch(en){bt(en)}},bn=it=>{try{Xt(he.throw(it))}catch(en){bt(en)}},Xt=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,bn);Xt((he=he.apply(ie,Se)).next())}),be=({setitem:ie,item:Se,rz:he})=>{var gt,bt,Qn,bn,Xt,it,en,ra;let[Bt,Lt]=(0,b.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const[dt]=we.default.useForm(),[xt,Pn]=(0,b.useState)(!1);(0,b.useEffect)(()=>{he&&!xt&&(Bt.zydatas=he,Lt(Ye({},Bt)),Pn(!0),Se!=null&&Se.ec_course_id&&Et())},[Se,he,xt]),console.log(Bt,"params");function Et(){return Ge(this,null,function*(){yield Ht(Se==null?void 0:Se.ec_major_school_id),yield Nt(Se==null?void 0:Se.ec_year_id),yield Zn(Se==null?void 0:Se.ec_course_id),dt.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 Ht(sn){return Ge(this,null,function*(){const Rt=yield(0,te.ZP)(`/api/ec_major_schools/${sn}/ec_years/get_year_list.json`,{method:"get"});Bt.jbdatas=Rt==null?void 0:Rt.data,Lt(Ye({},Bt)),dt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function Nt(sn){return Ge(this,null,function*(){const Rt=yield(0,te.ZP)(`/api/ec_years/${sn}/ec_courses/get_courses.json`,{method:"get"});Bt.kcdatas=Rt==null?void 0:Rt.data,Lt(Ye({},Bt)),dt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const Zn=sn=>Ge(void 0,null,function*(){const Rt=yield(0,te.ZP)(`/api/ec_courses/${sn}/ec_points.json`,{method:"get",params:{ec_course_id:sn}});Bt.zsdatas=Rt==null?void 0:Rt.data,Lt(Ye({},Bt))});return b.createElement("div",{className:le.from},b.createElement(we.default,{form:dt,layout:"inline",onValuesChange:sn=>{console.log("----",sn),sn.ec_major_school_id&&(Bt.jbdatas=[],Bt.kcdatas=[],Bt.zsdatas=[],Lt(Ye({},Bt)),Ht(sn.ec_major_school_id)),sn.ec_year_id&&(Bt.kcdatas=[],Bt.zsdatas=[],Lt(Ye({},Bt)),Nt(sn.ec_year_id)),sn.ec_course_id&&(Bt.zsdatas=[],Lt(Ye({},Bt)),Zn(sn.ec_course_id))},onFinish:sn=>Ge(void 0,null,function*(){ie(sn)})},b.createElement(we.default.Item,{name:"ec_major_school_id"},b.createElement(Pe.default,{style:{width:160},disabled:((gt=Bt.zydatas)==null?void 0:gt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(bt=Bt==null?void 0:Bt.zydatas)==null?void 0:bt.map((sn,Rt)=>b.createElement(Pe.default.Option,{key:Rt,value:sn==null?void 0:sn.ec_major_school_id},sn==null?void 0:sn.name)))),b.createElement(we.default.Item,{name:"ec_year_id"},b.createElement(Pe.default,{style:{width:160},disabled:((Qn=Bt.jbdatas)==null?void 0:Qn.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(bn=Bt==null?void 0:Bt.jbdatas)==null?void 0:bn.map((sn,Rt)=>b.createElement(Pe.default.Option,{key:Rt,value:sn==null?void 0:sn.ec_year_id},sn==null?void 0:sn.year)))),b.createElement(we.default.Item,{name:"ec_course_id"},b.createElement(Pe.default,{style:{width:208},disabled:((Xt=Bt.kcdatas)==null?void 0:Xt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(it=Bt==null?void 0:Bt.kcdatas)==null?void 0:it.map((sn,Rt)=>b.createElement(Pe.default.Option,{key:Rt,value:sn==null?void 0:sn.id},sn==null?void 0:sn.name)))),b.createElement(we.default.Item,{name:"ec_point_ids"},b.createElement(Pe.default,{onChange:()=>{dt.submit()},style:{width:160},maxTagCount:1,maxTagTextLength:7,mode:"multiple",disabled:((en=Bt.zsdatas)==null?void 0:en.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(ra=Bt==null?void 0:Bt.zsdatas)==null?void 0:ra.map((sn,Rt)=>b.createElement(Pe.default.Option,{key:Rt,value:sn==null?void 0:sn.id},sn==null?void 0:sn.name))))))},ft=Object.defineProperty,ct=Object.defineProperties,Ft=Object.getOwnPropertyDescriptors,At=Object.getOwnPropertySymbols,hn=Object.prototype.hasOwnProperty,Bn=Object.prototype.propertyIsEnumerable,Ut=(ie,Se,he)=>Se in ie?ft(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Pt=(ie,Se)=>{for(var he in Se||(Se={}))hn.call(Se,he)&&Ut(ie,he,Se[he]);if(At)for(var he of At(Se))Bn.call(Se,he)&&Ut(ie,he,Se[he]);return ie},Te=(ie,Se)=>ct(ie,Ft(Se)),et=(ie,Se,he)=>new Promise((gt,bt)=>{var Qn=it=>{try{Xt(he.next(it))}catch(en){bt(en)}},bn=it=>{try{Xt(he.throw(it))}catch(en){bt(en)}},Xt=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,bn);Xt((he=he.apply(ie,Se)).next())});const Jt=({user:ie,exercise_id:Se=null,homework_common_id:he=null,setitem:gt})=>{var bt,Qn,bn;let[Xt,it]=(0,b.useState)([{id:Math.random()}]),[en,ra]=(0,b.useState)(null);function Bt(){return et(this,null,function*(){var dt,xt,Pn,Et;let Ht=yield(0,te.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:Se,homework_common_id:he}});if(((dt=Ht==null?void 0:Ht.data)==null?void 0:dt.length)>0){let Nt=[];(xt=Ht==null?void 0:Ht.data)==null||xt.map(Zn=>{var sn;(sn=Zn==null?void 0:Zn.ec_point_ids)==null||sn.map(Rt=>{Nt.push(Rt)})}),gt(Te(Pt({},(Pn=Ht==null?void 0:Ht.data)==null?void 0:Pn[0]),{ec_point_ids:Nt})),it((Et=Ht==null?void 0:Ht.data)==null?void 0:Et.map(Zn=>Te(Pt({},Zn),{id:Math.random()})))}})}(0,b.useEffect)(()=>{var dt,xt;(xt=(dt=ie==null?void 0:ie.userInfo)==null?void 0:dt.course)!=null&&xt.course_school_id&&Lt()},[(Qn=(bt=ie==null?void 0:ie.userInfo)==null?void 0:bt.course)==null?void 0:Qn.course_school_id]);function Lt(){return et(this,null,function*(){var dt,xt;const Pn=yield(0,te.ZP)(`/api/schools/${(xt=(dt=ie==null?void 0:ie.userInfo)==null?void 0:dt.course)==null?void 0:xt.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});ra(Pn==null?void 0:Pn.data),(he||Se)&&Bt()})}return console.log(Xt,en,"datas"),b.createElement("div",{style:{display:(bn=ie.userInfo.course)!=null&&bn.is_openengineering?"":"none"}},b.createElement("div",{className:le.wrap},b.createElement("p",null,"\u5DE5\u7A0B\u8BA4\u8BC1",b.createElement("br",null),"\u8003\u6838\u77E5\u8BC6\u70B9"),b.createElement("div",{className:le.itemWarp},Xt==null?void 0:Xt.map((dt,xt)=>b.createElement("div",{key:dt.id,style:{display:"flex",alignItems:"center",marginBottom:20}},b.createElement(be,{rz:en,item:dt,setitem:Pn=>{Pn=Pt(Pt({},Xt==null?void 0:Xt[xt]),Pn),Xt.splice(xt,1,Pn),it([...Xt]);let Et=[];Xt==null||Xt.map(Ht=>{var Nt;(Nt=Ht==null?void 0:Ht.ec_point_ids)==null||Nt.map(Zn=>{Et.push(Zn)})}),gt(Te(Pt({},Pn),{ec_point_ids:Et}))}}),b.createElement(oe.Z,{className:le.addIcon,onClick:()=>{Xt.push({id:Math.random()}),it([...Xt])}}),xt!=0&&b.createElement(se.Z,{className:le.deleteIcon,onClick:()=>{Xt.splice(xt,1);let Pn=[];Xt==null||Xt.map(Et=>{var Ht;(Ht=Et==null?void 0:Et.ec_point_ids)==null||Ht.map(Nt=>{Pn.push(Nt)})}),gt(Te(Pt({},Xt[xt-1]),{ec_point_ids:Pn})),it([...Xt])}}))))))};var xn=(0,Ee.connect)(({user:ie})=>({user:ie}))(Jt),Mt=ae(20834),qt=ae(71418),Ce=ae(38854),rt=ae(6848),rn=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"},pt=ae(21331),Xn=ae(41625),gn=ae(98524),Yt=ae(43141),jt=ae(28900),Vn=ae(59301),ia=Object.defineProperty,tn=Object.defineProperties,Ba=Object.getOwnPropertyDescriptors,Ka=Object.getOwnPropertySymbols,Fa=Object.prototype.hasOwnProperty,kn=Object.prototype.propertyIsEnumerable,za=(ie,Se,he)=>Se in ie?ia(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Aa=(ie,Se)=>{for(var he in Se||(Se={}))Fa.call(Se,he)&&za(ie,he,Se[he]);if(Ka)for(var he of Ka(Se))kn.call(Se,he)&&za(ie,he,Se[he]);return ie},vr=(ie,Se)=>tn(ie,Ba(Se)),ua=(ie,Se,he)=>new Promise((gt,bt)=>{var Qn=it=>{try{Xt(he.next(it))}catch(en){bt(en)}},bn=it=>{try{Xt(he.throw(it))}catch(en){bt(en)}},Xt=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,bn);Xt((he=he.apply(ie,Se)).next())}),da=({Itemid:ie,setqitem:Se,qitem:he,data:gt,getdata:bt,bigitem:Qn,setBigqitem:bn,isedit:Xt,handleEditing:it})=>{const[en,ra]=(0,b.useState)([]),[Bt,Lt]=(0,b.useState)(!1),dt=(Pn,Et,Ht)=>{const Nt=Array.from(Pn),[Zn]=Nt.splice(Et,1);return Nt.splice(Ht,0,Zn),Nt};(0,b.useEffect)(()=>{gt.length>0&&ra([...gt])},[gt]);const xt=(Pn,Et)=>ua(void 0,null,function*(){if(!Pn.destination)return;if(Xt){it();return}const Ht=dt(Et,Pn.source.index,Pn.destination.index);Lt(!0);let Nt=yield(0,te.ZP)(`/api/exercises/${ie}/adjust_position.json`,{method:"post",body:{id:ie,question_ids:Ht==null?void 0:Ht.map(Zn=>Zn.question_id)}});Lt(!1),Nt.status===0&&bt({id:Et==null?void 0:Et[Pn.source.index].question_id})});return Vn.createElement("div",null,Vn.createElement(Yt.Z5,{onDragEnd:Pn=>xt(Pn,en)},Vn.createElement(Yt.bK,{droppableId:"droppable"},(Pn,Et)=>Vn.createElement("div",Aa({ref:Pn.innerRef},Pn.droppableProps),Vn.createElement(qt.Z,{spinning:Bt},en.map((Ht,Nt)=>Vn.createElement(Yt._l,{key:Nt,draggableId:Nt.toString(),index:Nt},(Zn,sn)=>{var Rt,nr;return Vn.createElement("aside",Aa(Aa({ref:Zn.innerRef},Zn.draggableProps),Zn.dragHandleProps),Vn.createElement(rt.Z,{title:Vn.createElement(jt.Z,{value:(Ht==null?void 0:Ht.question_type)===8?(Rt=Ht==null?void 0:Ht.program_attr)==null?void 0:Rt.description:Ht.question_title}),color:"#fff",placement:"left",overlayClassName:tt.titleTooltip},Vn.createElement("div",{onClick:()=>{if(Xt){it();return}Se(vr(Aa({},Ht),{index:Nt+1})),bn(Qn),(0,pt.Vf)("#question-scroll-id")},className:`${tt.qcount} ${Ht.question_id===(he==null?void 0:he.question_id)?tt.qcountclick:""}`},Vn.createElement("span",{className:tt.score},Ht==null?void 0:Ht.question_score,"\u5206"),Vn.createElement("span",{className:tt.qtitle},Nt+1,"\u3001",Vn.createElement(jt.Z,{value:(Ht==null?void 0:Ht.question_type)===8?(nr=Ht==null?void 0:Ht.program_attr)==null?void 0:nr.description:Ht.question_title,showTextOnly:!0})))))}))),Pn.placeholder))))},Ea=ae(95237),xa=ae(80815),_a=ae(78673),En=ae(61485),ln=ae(74038),St=ae(59301),Zt=(ie,Se,he)=>new Promise((gt,bt)=>{var Qn=it=>{try{Xt(he.next(it))}catch(en){bt(en)}},bn=it=>{try{Xt(he.throw(it))}catch(en){bt(en)}},Xt=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,bn);Xt((he=he.apply(ie,Se)).next())}),Ca=({form:ie,TagDiscipline:Se,exerciseitem:he,qitem:gt,getTagData:bt})=>{var Qn;const[bn,Xt]=(0,b.useState)(!0),[it,en]=(0,b.useState)(!1),[ra,Bt]=(0,b.useState)(""),[Lt,dt]=(0,b.useState)([]),[xt,Pn]=(0,b.useState)([]),[Et,Ht]=(0,b.useState)(0);(0,b.useEffect)(()=>{Zn()},[]);const Nt=sn=>Zt(void 0,null,function*(){const Rt=yield(0,te.ZP)("/api/tag_disciplines.json",{method:"get",params:{sub_discipline_id:sn==null?void 0:sn.sub_discipline_id}});Pn(Rt==null?void 0:Rt.tag_disciplines)}),Zn=()=>Zt(void 0,null,function*(){const sn=yield(0,te.ZP)("/api/disciplines.json",{method:"get",params:{source:"subject"}});dt(sn.disciplines||[]),gt!=null&>.sub_discipline_id&&Nt(gt),Ht(gt!=null&>.sub_discipline_id?1:0),ie.setFieldsValue({difficulty:gt.difficulty||2,tag_discipline_ids:gt.tag_discipline_ids,repeat_answer:!gt.repeat_answer,sub_discipline_id:gt!=null&>.sub_discipline_id?[gt==null?void 0:gt.discipline_id,gt==null?void 0:gt.sub_discipline_id]:[]})});return St.createElement("div",null,St.createElement("div",{style:{marginTop:30,height:bn?"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:Lt,fieldNames:{label:"name",value:"id",children:"sub_disciplines"},onChange:(sn,Rt)=>{ie.setFieldsValue({sub_discipline_id:sn,tag_discipline_ids:[]}),Ht(sn?sn.length:0),(sn==null?void 0:sn.length)>0&&(Nt({sub_discipline_id:sn[1]}),sn[1]==(gt==null?void 0:gt.sub_discipline_id)&&ie.setFieldValue("tag_discipline_ids",gt.tag_discipline_ids))},onClear:()=>{Pn([]),ie.setFieldValue("tag_discipline_ids",[]),Ht(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(Pe.default,{className:tt.selectitems,disabled:Et===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:(sn,Rt)=>Rt.key.indexOf(sn.toLowerCase())>=0},xt==null?void 0:xt.map(sn=>St.createElement(Pe.default.Option,{key:sn.name+sn.id,value:sn.id},St.createElement("div",{style:{display:"flex",alignItems:"center"}},St.createElement("span",{style:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},sn.name),(sn==null?void 0:sn.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")))))),Et>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:()=>{en(!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(rt.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(En.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))))),St.createElement(ln.Z,{open:it,subDisciplineId:(Qn=ie.getFieldValue("sub_discipline_id"))==null?void 0:Qn[1],onCancel:()=>{en(!1)},onOkClick:sn=>{Pn(Rt=>[...Rt,sn]),ie.setFieldValue("tag_discipline_ids",[...ie.getFieldValue("tag_discipline_ids"),sn==null?void 0:sn.id])}}))},Wa=ae(59301),Da=Object.defineProperty,Ra=Object.defineProperties,xr=Object.getOwnPropertyDescriptors,ar=Object.getOwnPropertySymbols,kr=Object.prototype.hasOwnProperty,Mo=Object.prototype.propertyIsEnumerable,Kt=(ie,Se,he)=>Se in ie?Da(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Un=(ie,Se)=>{for(var he in Se||(Se={}))kr.call(Se,he)&&Kt(ie,he,Se[he]);if(ar)for(var he of ar(Se))Mo.call(Se,he)&&Kt(ie,he,Se[he]);return ie},$n=(ie,Se)=>Ra(ie,xr(Se)),ba=(ie,Se,he)=>new Promise((gt,bt)=>{var Qn=it=>{try{Xt(he.next(it))}catch(en){bt(en)}},bn=it=>{try{Xt(he.throw(it))}catch(en){bt(en)}},Xt=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,bn);Xt((he=he.apply(ie,Se)).next())}),kt=({qitem:ie,setisedit:Se,TagDiscipline:he,exerciseitem:gt,seveeditor:bt,deleteitem:Qn,getTagData:bn,init:Xt,showTip:it=!1})=>{var en;const[ra]=we.default.useForm();(0,b.useEffect)(()=>{var Lt;ra.setFieldsValue($n(Un({},ie),{name:ie==null?void 0:ie.question_title,choices:(Lt=ie==null?void 0:ie.question_choices)==null?void 0:Lt.map(dt=>$n(Un({},dt),{standard_boolean:dt!=null&&dt.standard_boolean?1:0})),repeat_answer:!(ie!=null&&ie.repeat_answer)}))},[ie]);const Bt=Lt=>{if(!(Lt!=null&&Lt.length))return!1;const dt=Lt.map(Pn=>{var Et;return(Et=Pn.choice_text)==null?void 0:Et.trim().replace(/^\s+|\s+$/g,"")});return new Set(dt).size!==dt.length};return Wa.createElement("div",null,Wa.createElement(we.default,{form:ra,colon:!1,onFinish:Lt=>{var dt,xt,Pn,Et,Ht;if(Bt(Lt.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 Nt=(xt=(dt=Lt==null?void 0:Lt.choices)==null?void 0:dt.map)==null?void 0:xt.call(dt,(sn,Rt)=>{if((sn==null?void 0:sn.standard_boolean)===1)return Rt+1}),Zn=$n(Un({},Lt),{item_type:ie==null?void 0:ie.question_type,question_choices:(Et=(Pn=Lt==null?void 0:Lt.choices)==null?void 0:Pn.map)==null?void 0:Et.call(Pn,sn=>sn.choice_text),standard_answers:Nt.filter(sn=>sn),choices:(Ht=Lt==null?void 0:Lt.choices)==null?void 0:Ht.map(sn=>$n(Un({},sn),{is_answer:sn.standard_boolean}))});bt(Un(Un({},ie),Zn))},onFinishFailed:Lt=>ba(void 0,null,function*(){var dt,xt;Be.ZP.error(Lt.errorFields[0].errors[0]),ra.scrollToField((xt=(dt=Lt==null?void 0:Lt.errorFields)==null?void 0:dt[0])==null?void 0:xt.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,(ie==null?void 0:ie.question_type)===1?"\u591A\u9009\u9898":"\u5355\u9009\u9898")),((en=gt==null?void 0:gt.exercise)==null?void 0:en.exercise_status)==1&&!(ie!=null&&ie.isadd)&&Wa.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Qn()}},Wa.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Wa.createElement(ke.ZP,{onClick:()=>{var Lt;ie.isadd?(Se(!1),Xt()):(ra.setFieldsValue($n(Un({},ie),{name:ie==null?void 0:ie.question_title,choices:(Lt=ie==null?void 0:ie.question_choices)==null?void 0:Lt.map(dt=>$n(Un({},dt),{standard_boolean:dt!=null&&dt.standard_boolean?1:0})),repeat_answer:!(ie!=null&&ie.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),Wa.createElement(rt.Z,{overlayClassName:tt.shake,open:it,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*(){ra.submit()})},"\u4FDD\u5B58"))),Wa.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Wa.createElement(Ea.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:Lt=>{Lt.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:ra,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:bn,qitem:ie,exerciseitem:gt,TagDiscipline:he,form:ra}))))},$t=ae(41940),vn=ae(24417),Tt=ae(59301),Wn=Object.defineProperty,Kn=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,on=Object.prototype.propertyIsEnumerable,Cn=(ie,Se,he)=>Se in ie?Wn(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Ln=(ie,Se)=>{for(var he in Se||(Se={}))Xe.call(Se,he)&&Cn(ie,he,Se[he]);if(nt)for(var he of nt(Se))on.call(Se,he)&&Cn(ie,he,Se[he]);return ie},wa=(ie,Se)=>Kn(ie,Je(Se)),pa=(ie,Se,he)=>new Promise((gt,bt)=>{var Qn=it=>{try{Xt(he.next(it))}catch(en){bt(en)}},bn=it=>{try{Xt(he.throw(it))}catch(en){bt(en)}},Xt=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,bn);Xt((he=he.apply(ie,Se)).next())}),ya=({qitem:ie,TagDiscipline:Se,exerciseitem:he,setisedit:gt,seveeditor:bt,deleteitem:Qn,getTagData:bn,init:Xt,showTip:it=!1})=>{var en;const[ra]=we.default.useForm(),Bt=we.default.useWatch("use_blank_score",ra);return(0,b.useEffect)(()=>{ra.setFieldsValue(wa(Ln({},ie),{standard_answers:ie.standard_answers||[],name:ie.question_title,repeat_answer:!ie.repeat_answer}))},[ie]),Tt.createElement("div",null,Tt.createElement(we.default,{form:ra,colon:!1,onValuesChange:(Lt,dt)=>{var xt,Pn,Et,Ht;if(Lt!=null&&Lt.standard_answers||Lt!=null&&Lt.use_blank_score){let Nt=((xt=ra.getFieldValue("standard_answers"))==null?void 0:xt.length)>0&&((Et=(Pn=ra.getFieldValue("standard_answers"))==null?void 0:Pn.map(Zn=>Zn.score))==null?void 0:Et.filter(Zn=>Zn));(Nt==null?void 0:Nt.length)>0&&ra.setFieldsValue({question_score:(Nt==null?void 0:Nt.length)>0&&((Ht=Nt.reduce((Zn,sn)=>Zn+sn))==null?void 0:Ht.toFixed(1))})}},onFinish:Lt=>{bt(wa(Ln(Ln({},ie),Lt),{item_type:ie==null?void 0:ie.question_type,standard_answers:Lt.standard_answers,question_title:Lt.name}))},onFinishFailed:Lt=>pa(void 0,null,function*(){var dt,xt;Lt.errorFields[0].errors[0]==="\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"&&(0,pt.pE)(),Be.ZP.error(Lt.errorFields[0].errors[0]),ra.scrollToField((xt=(dt=Lt==null?void 0:Lt.errorFields)==null?void 0:dt[0])==null?void 0:xt.name,{behavior:"smooth",block:"center"})})},Tt.createElement("div",{style:{display:"flex",alignItems:"center"}},Tt.createElement("div",{style:{flex:1}},Tt.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Tt.createElement("span",null,"\u586B\u7A7A\u9898")),((en=he==null?void 0:he.exercise)==null?void 0:en.exercise_status)==1&&!(ie!=null&&ie.isadd)&&Tt.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Qn()}},Tt.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Tt.createElement(ke.ZP,{onClick:()=>{ie.isadd?(gt(!1),Xt()):(ra.setFieldsValue(wa(Ln({},ie),{standard_answers:ie.standard_answers||[],name:ie.question_title,repeat_answer:!ie.repeat_answer})),gt(!1))}},"\u53D6\u6D88"),Tt.createElement(rt.Z,{overlayClassName:tt.shake,open:it,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Tt.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Tt.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")},Tt.createElement(ke.ZP,{type:"primary",className:"ml20",onClick:()=>{ra.submit()}},"\u4FDD\u5B58"))),Tt.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Tt.createElement(Ea.Z,{align:"middle"},Bt?Tt.createElement(vn.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}):Tt.createElement(we.default.Item,{key:2,className:tt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Tt.createElement(De.Z,{onBlur:Lt=>{Lt.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})),Tt.createElement(we.default.Item,{name:"use_blank_score",noStyle:!0},Tt.createElement(Oe.ZP.Group,{className:tt.scoreByBlankRadio,optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}]})),Tt.createElement(rt.Z,{overlayInnerStyle:{width:460},title:Tt.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",Tt.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")},Tt.createElement("i",{className:"icon-tishixiaowenhao font18 ml20 c-3061d0"}))),Tt.createElement($t.u,{form:ra,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:Bt,answerKey:"standard_answers"}),Tt.createElement(Ca,{getTagData:bn,qitem:ie,exerciseitem:he,TagDiscipline:Se,form:ra}))))},qn=ae(48700),Wt=ae(59301),Ma=Object.defineProperty,hr=Object.defineProperties,So=Object.getOwnPropertyDescriptors,$a=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable,Ua=(ie,Se,he)=>Se in ie?Ma(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Pr=(ie,Se)=>{for(var he in Se||(Se={}))Vt.call(Se,he)&&Ua(ie,he,Se[he]);if($a)for(var he of $a(Se))$r.call(Se,he)&&Ua(ie,he,Se[he]);return ie},ur=(ie,Se)=>hr(ie,So(Se)),Qr=(ie,Se,he)=>new Promise((gt,bt)=>{var Qn=it=>{try{Xt(he.next(it))}catch(en){bt(en)}},bn=it=>{try{Xt(he.throw(it))}catch(en){bt(en)}},Xt=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,bn);Xt((he=he.apply(ie,Se)).next())}),ro=({qitem:ie,setisedit:Se,TagDiscipline:he,exerciseitem:gt,seveeditor:bt,deleteitem:Qn,getTagData:bn,init:Xt,showTip:it=!1})=>{var en;const[ra]=we.default.useForm();return(0,b.useEffect)(()=>{var Bt;ra.setFieldsValue(ur(Pr({},ie),{name:ie.question_title,repeat_answer:!ie.repeat_answer,choices:(Bt=ie==null?void 0:ie.question_choices)==null?void 0:Bt.map(Lt=>ur(Pr({},Lt),{is_answer:Lt!=null&&Lt.standard_boolean?1:0}))}))},[ie]),Wt.createElement("div",null,Wt.createElement(we.default,{form:ra,colon:!1,onFinish:Bt=>{var Lt,dt,xt,Pn;let Et=(dt=(Lt=Bt==null?void 0:Bt.choices)==null?void 0:Lt.map)==null?void 0:dt.call(Lt,(Ht,Nt)=>{if((Ht==null?void 0:Ht.is_answer)===1)return Nt+1});bt(ur(Pr(Pr({},ie),Bt),{question_title:Bt.name,standard_answers:Et.filter(Ht=>Ht),question_choices:(Pn=(xt=Bt==null?void 0:Bt.choices)==null?void 0:xt.map)==null?void 0:Pn.call(xt,Ht=>Ht.choice_text)}))},onFinishFailed:Bt=>Qr(void 0,null,function*(){var Lt,dt;Be.ZP.error(Bt.errorFields[0].errors[0]),ra.scrollToField((dt=(Lt=Bt==null?void 0:Bt.errorFields)==null?void 0:Lt[0])==null?void 0:dt.name,{behavior:"smooth",block:"center"})})},Wt.createElement("div",{style:{display:"flex",alignItems:"center"}},Wt.createElement("div",{style:{flex:1}},Wt.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Wt.createElement("span",null,"\u5224\u65AD\u9898")),((en=gt==null?void 0:gt.exercise)==null?void 0:en.exercise_status)==1&&!(ie!=null&&ie.isadd)&&Wt.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Qn()}},Wt.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Wt.createElement(ke.ZP,{onClick:()=>{var Bt;ie.isadd?(Se(!1),Xt()):(ra.setFieldsValue(ur(Pr({},ie),{name:ie.question_title,repeat_answer:!ie.repeat_answer,choices:(Bt=ie==null?void 0:ie.question_choices)==null?void 0:Bt.map(Lt=>ur(Pr({},Lt),{is_answer:Lt!=null&&Lt.standard_boolean?1:0}))})),Se(!1))}},"\u53D6\u6D88"),Wt.createElement(rt.Z,{overlayClassName:tt.shake,open:it,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Wt.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Wt.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")},Wt.createElement(ke.ZP,{type:"primary",className:"ml20",onClick:()=>{ra.submit()}},"\u4FDD\u5B58"))),Wt.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Wt.createElement(we.default.Item,{className:tt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Wt.createElement(De.Z,{onBlur:Bt=>{Bt.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})),Wt.createElement(qn.Z,{form:ra,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",choiceKey:""}),Wt.createElement(Ca,{getTagData:bn,qitem:ie,exerciseitem:gt,TagDiscipline:he,form:ra}))))},Tr=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(37962),mr=Object.defineProperty,ga=Object.defineProperties,sr=Object.getOwnPropertyDescriptors,Va=Object.getOwnPropertySymbols,pn=Object.prototype.hasOwnProperty,na=Object.prototype.propertyIsEnumerable,La=(ie,Se,he)=>Se in ie?mr(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,_n=(ie,Se)=>{for(var he in Se||(Se={}))pn.call(Se,he)&&La(ie,he,Se[he]);if(Va)for(var he of Va(Se))na.call(Se,he)&&La(ie,he,Se[he]);return ie},dr=(ie,Se)=>ga(ie,sr(Se)),tr=(ie,Se)=>{var he={};for(var gt in ie)pn.call(ie,gt)&&Se.indexOf(gt)<0&&(he[gt]=ie[gt]);if(ie!=null&&Va)for(var gt of Va(ie))Se.indexOf(gt)<0&&na.call(ie,gt)&&(he[gt]=ie[gt]);return he};const yr=ie=>{var Se=ie,{value:he,onChange:gt,scrollId:bt}=Se,Qn=tr(Se,["value","onChange","scrollId"]);return b.createElement("div",{id:bt||""},b.createElement(nn.Z,dr(_n({},Qn),{defaultValue:he,onChange:(bn,Xt)=>{console.log("a:",bn,Xt),Xt!=null&&Xt.length?gt(bn,Xt):gt(bn)}})))},eo=({value:ie,onChange:Se,placeholder:he,height:gt=140,isEdit:bt})=>bt?b.createElement(nn.Z,{watch:!0,isFocus:!0,height:gt,placeholder:he,defaultValue:ie,onChange:Se}):b.createElement("div",{style:{cursor:"pointer"}},ie?b.createElement(jt.Z,{className:ca.inputBorder,value:ie}):b.createElement("div",{className:`${ca.inputBorder} ${ca.placeholder}`},he));var fr=ae(43604),_o=Object.defineProperty,Ro=Object.defineProperties,Fl=Object.getOwnPropertyDescriptors,wr=Object.getOwnPropertySymbols,Or=Object.prototype.hasOwnProperty,Ao=Object.prototype.propertyIsEnumerable,Ja=(ie,Se,he)=>Se in ie?_o(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Ur=(ie,Se)=>{for(var he in Se||(Se={}))Or.call(Se,he)&&Ja(ie,he,Se[he]);if(wr)for(var he of wr(Se))Ao.call(Se,he)&&Ja(ie,he,Se[he]);return ie},to=(ie,Se)=>Ro(ie,Fl(Se)),Er=(ie,Se)=>{var he={};for(var gt in ie)Or.call(ie,gt)&&Se.indexOf(gt)<0&&(he[gt]=ie[gt]);if(ie!=null&&wr)for(var gt of wr(ie))Se.indexOf(gt)<0&&Ao.call(ie,gt)&&(he[gt]=ie[gt]);return he};const no=["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"],wt=({value:ie,onChange:Se,choiceTextKey:he,answerKey:gt,index:bt,isEdit:Qn,setInputActive:bn,form:Xt,choiceOptionsPath:it,allowChangeMode:en,showAddIcon:ra,addItem:Bt,deleteItem:Lt})=>{const dt=(ie==null?void 0:ie[gt])===1,xt=()=>{const Et=Xt.getFieldValue(it);Xt.setFieldValue(it,Et.map(Ht=>to(Ur({},Ht),{[gt]:0})))},Pn=()=>{dt?Se(to(Ur({},ie),{[gt]:0})):(en||xt(),Se(to(Ur({},ie),{[gt]:1})))};return b.createElement(Ea.Z,{className:ca.choiceWrap,align:"middle",wrap:!1},b.createElement(fr.Z,{onClick:Pn,className:`${ca.choiceIndex} ${dt?ca.activeAnswer:""}`},no[bt]),b.createElement(fr.Z,{flex:1,className:`${ca.editorWrap} ml15`,onClick:bn},b.createElement(eo,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Qn,value:ie==null?void 0:ie[he],onChange:Et=>{Se(to(Ur({},ie),{[he]:Et}))}})),b.createElement(fr.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:Pn,className:`${ca.setAnswerBtn} ${dt?ca.activeAnswer:""}`},dt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),b.createElement(fr.Z,{className:ca.actionWrapper},b.createElement(rt.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},b.createElement(oe.Z,{className:ca.addIcon,onClick:Bt,style:{visibility:ra?"visible":"hidden"}})),b.createElement(rt.Z,{title:"\u5220\u9664"},b.createElement(se.Z,{className:ca.deleteIcon,onClick:Lt,style:{visibility:bt>1?"visible":"hidden"}}))))},yt=({questionTitlePlaceholder:ie,titleKey:Se,choiceKey:he,analysisKey:gt,choiceTextKey:bt,answerKey:Qn,choiceOptionsPath:bn,allowChangeMode:Xt=!0,form:it,showAnalysis:en=!0})=>{const[ra,Bt]=(0,b.useState)(),[Lt,dt]=(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(yr,{scrollId:Array.isArray(Se)?Se.join("_"):`${Se}`,watch:!0,height:140,placeholder:ie}))),b.createElement(we.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),b.createElement(we.default.List,{name:he,rules:[{validator(xt,Pn){const Et=Pn.some(Nt=>Nt[Qn]===1),Ht=Pn.findIndex(Nt=>{var Zn;return((Zn=Nt[bt])==null?void 0:Zn.length)<=0});return Ht!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${no[Ht]}\u9009\u9879\u7684\u5185\u5BB9`)):Et?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(xt,{add:Pn,remove:Et})=>b.createElement("div",{id:Array.isArray(bn)?bn.join("_"):`${bn}`},xt.map((Ht,Nt)=>{var Zn=Ht,{key:sn,name:Rt}=Zn,nr=Er(Zn,["key","name"]);const Kr=ra===sn,qa=()=>{Bt(sn)},Nr=Nt<7&&Nt===xt.length-1,Jn=()=>Pn({[bt]:"",[Qn]:0}),_r=()=>Et(Rt);return b.createElement(we.default.Item,to(Ur({},nr),{key:sn,name:Rt,noStyle:!0}),b.createElement(wt,{choiceTextKey:bt,answerKey:Qn,index:Nt,isEdit:Kr,setInputActive:qa,form:it,choiceOptionsPath:bn,allowChangeMode:Xt,showAddIcon:Nr,addItem:Jn,deleteItem:_r}))}),xt.length<8&&b.createElement("div",{className:`${ca.addBtn} mb30`,onClick:()=>Pn({[bt]:"",[Qn]:0})},"\u6DFB\u52A0\u9009\u9879"))),en&&b.createElement("div",{onClick:()=>dt(!0)},b.createElement(we.default.Item,{name:gt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(eo,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Lt}))))};var ht=ae(59301),Mn=Object.defineProperty,Ga=Object.defineProperties,rr=Object.getOwnPropertyDescriptors,Sn=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,Xa=Object.prototype.propertyIsEnumerable,oo=(ie,Se,he)=>Se in ie?Mn(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,cr=(ie,Se)=>{for(var he in Se||(Se={}))er.call(Se,he)&&oo(ie,he,Se[he]);if(Sn)for(var he of Sn(Se))Xa.call(Se,he)&&oo(ie,he,Se[he]);return ie},Ha=(ie,Se)=>Ga(ie,rr(Se)),Dr=(ie,Se)=>{var he={};for(var gt in ie)er.call(ie,gt)&&Se.indexOf(gt)<0&&(he[gt]=ie[gt]);if(ie!=null&&Sn)for(var gt of Sn(ie))Se.indexOf(gt)<0&&Xa.call(ie,gt)&&(he[gt]=ie[gt]);return he};const bo=({value:ie,onChange:Se})=>{const he=bt=>{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 Qn=[...ie];Qn.splice(bt,1),Se(Qn)}})},gt=()=>{const bt=[...ie];bt.push(""),Se(bt)};return ht.createElement(Ea.Z,{className:"ml20"},ht.createElement(fr.Z,{flex:1},ie==null?void 0:ie.map((bt,Qn)=>ht.createElement(Ea.Z,{key:`${bt}_${Qn}`,align:"middle",className:"mb20"},ht.createElement(We.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:bt,autoSize:{maxRows:3},maxLength:1e3,onBlur:bn=>{const Xt=[...ie],it=bn.target.value.trim();Xt[Qn]=it,Se(Xt)}}),ht.createElement(rt.Z,{title:"\u5220\u9664"},ht.createElement(se.Z,{className:ca.deleteIcon,style:{marginLeft:15,visibility:Qn>0?"visible":"hidden"},onClick:()=>he(Qn)}))))),ht.createElement(fr.Z,null,ht.createElement("div",{className:`${ca.addBtn}`,onClick:()=>{gt()}},"\u65B0\u589E\u7B54\u6848")))},rl=({value:ie=!0,onChange:Se})=>ht.createElement(_a.Z,{checked:!ie,onChange:he=>{Se(!he)}}),jr="\u2581",yo=({questionTitlePlaceholder:ie,form:Se,name:he,scoreByBlank:gt,answerKey:bt,titleKey:Qn="name",analysisKey:bn="analysis",isOrdered:Xt="is_ordered"})=>{var it,en;const[ra,Bt]=(0,b.useState)(!1),Lt=(sn,Rt)=>{const nr=Rt.line;let Kr=0;for(let Nr=0;Nr{const qa=sn.getRange(Rt.from,Rt.to);let Nr=0;if(Rt.text.forEach(Jn=>{Nr+=Jn.split(jr).length-1}),Rt.origin!=="setValue"){if(qa&&qa.indexOf(jr)!==-1){const Jn=qa.split(jr).length-1,_r=Lt(sn,Rt.from);if(console.log(`\u5220\u9664${Jn}\u4E2A\uFF0C \u524D\u9762\u6709${_r}\u4E2A\uFF0C\u65B0\u589E${Nr}\u4E2A`),Jn>1){const lo=Array.from({length:Jn},(Do,Ir)=>_r+Ir);Kr(lo)}else Kr(_r)}else if(Nr>0){const Jn=Lt(sn,Rt.from);console.log(`\u65B0\u589E${Nr}\u4E2A\uFF0C\u4E4B\u524D\u6709${Jn}\u4E2A`),nr(Nr,Jn)}}},xt=()=>{const sn=Se.getFieldValue(["sub_item_banks",...bt]);Se.setFieldValue(["sub_item_banks",...bt],sn==null?void 0:sn.map((Rt,nr)=>Ha(cr({},Rt),{position:nr+1})))},Pn=(0,b.useRef)(),Et=(sn,Rt)=>{for(let nr=0;nr{Ht.current(sn),xt()},Zn=(en=(it=Se.getFieldValue("sub_item_banks"))==null?void 0:it[bt==null?void 0:bt[0]])==null?void 0:en[bt==null?void 0:bt[1]];return console.log(Se==null?void 0:Se.getFieldValue(["sub_item_banks",...gt])),ht.createElement("div",{className:ca.wrap},ht.createElement("div",{className:ca.questionTitleEditorWrap},ht.createElement(we.default.Item,{label:"\u9898\u5E72",name:Qn,labelCol:{span:24},rules:[{required:!0}]},ht.createElement(yr,{scrollId:"name",watch:!0,height:140,placeholder:ie,showNullButton:!0,onCMBeforeChange:(sn,Rt)=>{dt(sn,Rt,Et,Nt)}}))),ht.createElement(we.default.List,{name:bt,rules:[{validator(sn,Rt){if((Rt==null?void 0:Rt.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const nr of Rt){const{answer_text:Kr}=nr||{};if(Kr!=null&&Kr.some(qa=>(qa==null?void 0:qa.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(sn,{add:Rt,remove:nr},{errors:Kr})=>(Pn.current=Rt,Ht.current=nr,ht.createElement(ht.Fragment,null,ht.createElement(we.default.Item,{label:ht.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848",!(sn!=null&&sn.length)&&ht.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((qa,Nr)=>{var Jn=qa,{key:_r,name:lo}=Jn,Do=Dr(Jn,["key","name"]);return ht.createElement(Ea.Z,{className:"mb20",key:_r,align:"top"},ht.createElement(fr.Z,{flex:"0 0 auto",className:`${ca.blankIndex} pt5`},"\u586B\u7A7A\u9879",Nr+1),ht.createElement(fr.Z,{flex:1},ht.createElement(Ea.Z,{align:"top",justify:"space-between"},ht.createElement(fr.Z,{flex:1},ht.createElement(we.default.Item,Ha(cr({},Do),{name:[lo,"answer_text"],noStyle:!0}),ht.createElement(bo,null))),(Se==null?void 0:Se.getFieldValue(["sub_item_banks",...gt]))&&ht.createElement(fr.Z,{flex:"224px",style:{margin:"-7px 0 0 20px"}},ht.createElement(we.default.Item,Ha(cr({},Do),{name:[lo,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:ca.blankInputNumberWrapper}),ht.createElement(De.Z,{onChange:()=>{var Ir,Lo;let Io=Se==null?void 0:Se.getFieldValue(["sub_item_banks",bt==null?void 0:bt[0],"standard_answers"]),Al=0;for(let Nn in Io)(Ir=Io[Nn])!=null&&Ir.score&&(Al+=Number((Lo=Io[Nn])==null?void 0:Lo.score));Se==null||Se.setFieldValue(["sub_item_banks",bt==null?void 0:bt[0],"question_score"],Al)},className:ca.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),ht.createElement(we.default.Item,Ha(cr({},Do),{name:[lo,"position"],noStyle:!0}),ht.createElement(We.default,{type:"hidden"}))))})))),ht.createElement(Ea.Z,{align:"middle"},ht.createElement(we.default.Item,{name:[he,"downcase"],valuePropName:"checked"},ht.createElement(_a.Z,null)),ht.createElement(fr.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),ht.createElement(Ea.Z,{align:"middle"},ht.createElement(we.default.Item,{name:[he,"no_space"],valuePropName:"checked"},ht.createElement(_a.Z,null)),ht.createElement(fr.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(Zn==null?void 0:Zn.length)>1&&ht.createElement(Ea.Z,{align:"middle",className:(Zn==null?void 0:Zn.length)>1?"mb30":`${ca.hide}`},ht.createElement(we.default.Item,{name:Xt},ht.createElement(rl,null)),ht.createElement(fr.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")),ht.createElement("div",{onClick:()=>Bt(!0)},ht.createElement(we.default.Item,{name:bn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ht.createElement(eo,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:ra}))))};var To=Object.defineProperty,sa=Object.defineProperties,wn=Object.getOwnPropertyDescriptors,Gn=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,Ct=(ie,Se,he)=>Se in ie?To(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,dn=(ie,Se)=>{for(var he in Se||(Se={}))me.call(Se,he)&&Ct(ie,he,Se[he]);if(Gn)for(var he of Gn(Se))mt.call(Se,he)&&Ct(ie,he,Se[he]);return ie},vt=(ie,Se)=>sa(ie,wn(Se)),Dn=(ie,Se)=>{var he={};for(var gt in ie)me.call(ie,gt)&&Se.indexOf(gt)<0&&(he[gt]=ie[gt]);if(ie!=null&&Gn)for(var gt of Gn(ie))Se.indexOf(gt)<0&&mt.call(ie,gt)&&(he[gt]=ie[gt]);return he};const An={\u6B63\u786E:"T",\u9519\u8BEF:"F"},fn=({value:ie,onChange:Se,form:he,choiceKey:gt})=>{const bt=(ie==null?void 0:ie.is_answer)===1,Qn=ie==null?void 0:ie.choice_text,bn=()=>{var Xt;const it=(Xt=he==null?void 0:he.getFieldValue(["sub_item_banks",...gt]))==null?void 0:Xt.map(en=>({choice_text:en.choice_text,is_answer:0}));he==null||he.setFieldValue(["sub_item_banks",...gt],it),Se(vt(dn({},ie),{is_answer:1}))};return b.createElement(Ea.Z,{className:ca.choiceWrap,align:"middle",wrap:!1},b.createElement(fr.Z,{onClick:bn,className:`${ca.choiceIndex} ${ca.judgementIndex} ${bt?ca.activeAnswer:""}`},An[Qn]),b.createElement(fr.Z,{flex:1,className:`${ca.editorWrap} ml15`},b.createElement("div",{className:`${ca.inputBorder} ${ca.placeholder} ${bt?ca.activeJudgementAnswer:""}`},Qn)),b.createElement(fr.Z,{flex:"0 0 auto",className:"ml15"},b.createElement("div",{onClick:bn,className:`${ca.setAnswerBtn} ${bt?ca.activeAnswer:""}`},bt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},yn=({questionTitlePlaceholder:ie,choiceKey:Se="choices",form:he,titleKey:gt="name",analysisKey:bt="analysis"})=>{const[Qn,bn]=(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:gt,labelCol:{span:24},rules:[{required:!0}]},b.createElement(yr,{scrollId:"name",watch:!0,height:140,placeholder:ie}))),b.createElement(we.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},b.createElement(we.default.List,{name:Se,rules:[{validator(Xt,it){return it.some(ra=>(ra==null?void 0:ra.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},Xt=>b.createElement("div",{id:"choices"},Xt.map(it=>{var en=it,{key:ra,name:Bt}=en,Lt=Dn(en,["key","name"]);return b.createElement(we.default.Item,vt(dn({},Lt),{key:ra,name:Bt,noStyle:!0}),b.createElement(fn,{form:he,choiceKey:Se}))})))),b.createElement("div",{onClick:()=>bn(!0)},b.createElement(we.default.Item,{name:bt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(eo,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Qn}))))};var Ia=ae(12563),gr={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"},Cr=ae(42653),ma=ae(84097),va=ae(59301);const or=({qitem:ie,form:Se,exercise:he,loading:gt,dispatch:bt,aiReviewSettings:Qn=null})=>va.createElement("div",{className:gr.ai_config},va.createElement("div",{style:{lineHeight:"32px",paddingBottom:8}},"\u8BC4\u5206\u6807\u51C6"),va.createElement("div",{className:gr.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:gr.btns_pfbz,onClick:()=>{bt({type:"exercise/setActionTabs",payload:{key:"\u6D4B\u8BD5AI\u8BC4\u5206",questionId:ie==null?void 0:ie.question_id,ai_review_settings:Se.getFieldValue(Qn||"ai_review_settings")}})}},va.createElement("img",{src:Cr.Z}),"\u6D4B\u8BD5AI\u8BC4\u5206"))),va.createElement("div",{style:{background:"#F6F7F9"}},va.createElement(we.default.List,{name:Qn||"ai_review_settings"},(bn,{add:Xt,remove:it})=>bn.map((en,ra)=>{var Bt;return va.createElement(Ea.Z,{key:en.key,style:{padding:"5px 10px 5px 15px"}},va.createElement(fr.Z,{className:gr.lable_name1},"\u8BC4\u5206\u9879\u76EE"),va.createElement(fr.Z,null,va.createElement(we.default.Item,{className:"ml10",name:[en.name,"name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u9879\u76EE"}]},va.createElement(We.default,{onChange:Lt=>{Se.setFieldValue([en.name,"content"],Lt.target.value)},placeholder:"\u8BF7\u8F93\u5165\u6700\u591A10\u5B57\u7B26",size:"large",style:{width:142},maxLength:10,className:"mr15"}))),va.createElement(fr.Z,{className:gr.lable_name1},"\u8BC4\u5206\u6807\u51C6"),va.createElement(fr.Z,null,va.createElement(we.default.Item,{className:"ml10",name:[en.name,"content"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6"}]},va.createElement(We.default,{onChange:Lt=>{Se.setFieldValue([en.name,"content"],Lt.target.value)},placeholder:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6",size:"large",style:{width:Qn?232:318},className:"mr15",maxLength:500}))),va.createElement(fr.Z,{className:gr.lable_name1},"\u6743\u91CD"),va.createElement(fr.Z,null,va.createElement(we.default.Item,{className:"ml10",name:[en.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([en.name,"weight"]),onChange:Lt=>{Number.isInteger(Lt)||Se.setFieldValue([en.name,"weight"],parseFloat(Lt).toFixed(2))},size:"large",addonAfter:"%",placeholder:"\u8BF7\u8F93\u5165\u6743\u91CD",min:.01,step:1,max:100,style:{width:"110px"}}))),va.createElement(Ea.Z,{className:(Bt=gr)==null?void 0:Bt.h_lh_40},va.createElement(fr.Z,null,va.createElement("i",{className:"iconfont icon-tianjiatimu ml10 current",style:{color:"#00B187"},onClick:()=>{if(bn.length>=10)return Be.ZP.info("\u6700\u591A\u53EA\u80FD\u6DFB\u52A010\u4E2A\u8BC4\u5206\u9879\u76EE");Xt()}})),ra>0&&va.createElement(fr.Z,null,va.createElement("i",{className:"iconfont icon-shanjian1 ml10 current",style:{color:"#E30000"},onClick:()=>{it(en.name)}}))))}))),va.createElement(ma.Z,null));var Sr=(0,Ee.connect)(({exercise:ie,loading:Se})=>({exercise:ie,loading:Se.effects}))(or),Jo=Object.defineProperty,sl=Object.defineProperties,Qo=Object.getOwnPropertyDescriptors,ol=Object.getOwnPropertySymbols,hl=Object.prototype.hasOwnProperty,Cl=Object.prototype.propertyIsEnumerable,Ci=(ie,Se,he)=>Se in ie?Jo(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,ri=(ie,Se)=>{for(var he in Se||(Se={}))hl.call(Se,he)&&Ci(ie,he,Se[he]);if(ol)for(var he of ol(Se))Cl.call(Se,he)&&Ci(ie,he,Se[he]);return ie},oi=(ie,Se)=>sl(ie,Qo(Se)),li=(ie,Se)=>{var he={};for(var gt in ie)hl.call(ie,gt)&&Se.indexOf(gt)<0&&(he[gt]=ie[gt]);if(ie!=null&&ol)for(var gt of ol(ie))Se.indexOf(gt)<0&&Cl.call(ie,gt)&&(he[gt]=ie[gt]);return he};const au=ie=>{var Se=ie,{value:he,onChange:gt}=Se,bt=li(Se,["value","onChange"]);const Qn=bn=>{gt([bn])};return b.createElement(nn.Z,oi(ri({},bt),{defaultValue:he==null?void 0:he[0],onChange:Qn}))},di=ie=>{if(!ie)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 ie==="|"?(Be.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Oi=({value:ie=[],onClose:Se})=>b.createElement(Ia.default,{closable:!0,onClose:Se,className:ca.keywordTag},b.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},ie.join(" \u6216 "))),rs=({questionTitlePlaceholder:ie,form:Se,showKeywords:he,isMustKeyWords:gt=he,titleKey:bt="name",analysisKey:Qn="analysis",answerTexts:bn="answer_texts",keywords:Xt="keywords",useKeywords:it="use_keywords",indexs:en,qitem:ra,exerciseitem:Bt,aiReviewSettings:Lt})=>{var dt,xt,Pn,Et,Ht;const[Nt,Zn]=(0,b.useState)(!1),[sn,Rt]=(0,b.useState)(""),nr=(xt=(dt=Se.getFieldValue("sub_item_banks"))==null?void 0:dt[it==null?void 0:it[0]])==null?void 0:xt[it==null?void 0:it[1]],Kr=(Et=(Pn=Se.getFieldValue("sub_item_banks"))==null?void 0:Pn[it==null?void 0:it[0]])==null?void 0:Et.question_score;return b.createElement("div",{className:ca.wrap},b.createElement("div",{className:ca.questionTitleEditorWrap},b.createElement(we.default.Item,{label:"\u9898\u5E72",name:bt,labelCol:{span:24},rules:[{required:!0}]},b.createElement(yr,{scrollId:"name",watch:!0,height:140,placeholder:ie}))),b.createElement(we.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:bn,labelCol:{span:24}},b.createElement(au,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),he&&!gt&&b.createElement(we.default.Item,{hidden:!0,name:it,valuePropName:"checked"},b.createElement(_a.Z,{defaultChecked:!0})),he&>&&b.createElement(Ea.Z,{align:"middle",className:"mb30"},b.createElement(we.default.Item,{name:it,valuePropName:"checked"},b.createElement(_a.Z,null)),b.createElement(fr.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),b.createElement(fr.Z,null,b.createElement(rt.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(En.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(nr||!gt)&&b.createElement(we.default.List,{name:Xt,rules:[{validator(qa,Nr){return gt?Nr!=null&&Nr.length?(Nr==null?void 0:Nr.reduce((_r,lo)=>_r+lo.score,0))>parseFloat(Kr)?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()}}]},(qa,{add:Nr,remove:Jn})=>b.createElement(b.Fragment,null,b.createElement("div",{className:`${ca.title} mb10`},gt?"\u5173\u952E\u8BCD":b.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),b.createElement(Ea.Z,{align:"middle",className:"font14 mb30"},b.createElement(fr.Z,{flex:1},b.createElement(We.default,{value:sn,onChange:_r=>{Rt(_r.target.value)},maxLength:50,allowClear:!0,onPressEnter:_r=>{var lo,Do,Ir,Lo;const Io=`${(lo=_r.target)==null?void 0:lo.value}`,Al=(Ir=(Do=Io==null?void 0:Io.split("|"))==null?void 0:Do.filter(xl=>!!xl))==null?void 0:Ir.map(xl=>xl==null?void 0:xl.trim()),Nn=Se.getFieldValue(["sub_item_banks",...Xt]),fl=((Lo=Nn==null?void 0:Nn.map(xl=>xl==null?void 0:xl.keyword))==null?void 0:Lo.flat())||[];for(const xl of Al)if(fl.includes(xl)){Be.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}di(Io)&&(Nr({keyword:Al,score:1}),Rt(""))},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(fr.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),qa.map(_r=>{var lo=_r,{key:Do,name:Ir}=lo,Lo=li(lo,["key","name"]);return b.createElement(Ea.Z,{key:Do,className:"mb20",style:{marginRight:148}},b.createElement(fr.Z,{flex:1},b.createElement(Ea.Z,{align:"middle",justify:"space-between"},b.createElement(we.default.Item,oi(ri({},Lo),{name:[Ir,"keyword"]}),b.createElement(Oi,{onClose:()=>Jn(Ir)})),gt&&b.createElement(we.default.Item,oi(ri({},Lo),{name:[Ir,"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:()=>Zn(!0)},b.createElement(we.default.Item,{name:Qn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},b.createElement(eo,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Nt}))),((Ht=Bt==null?void 0:Bt.exercise)==null?void 0:Ht.is_open_ai_review)&&b.createElement(Sr,{form:Se,qitem:ra,aiReviewSettings:Lt}))};var ao=ae(59301),Bu=Object.defineProperty,Mu=Object.defineProperties,os=Object.getOwnPropertyDescriptors,Zl=Object.getOwnPropertySymbols,Yu=Object.prototype.hasOwnProperty,Ru=Object.prototype.propertyIsEnumerable,Su=(ie,Se,he)=>Se in ie?Bu(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,ku=(ie,Se)=>{for(var he in Se||(Se={}))Yu.call(Se,he)&&Su(ie,he,Se[he]);if(Zl)for(var he of Zl(Se))Ru.call(Se,he)&&Su(ie,he,Se[he]);return ie},ru=(ie,Se)=>Mu(ie,os(Se)),Ku=(ie,Se)=>{var he={};for(var gt in ie)Yu.call(ie,gt)&&Se.indexOf(gt)<0&&(he[gt]=ie[gt]);if(ie!=null&&Zl)for(var gt of Zl(ie))Se.indexOf(gt)<0&&Ru.call(ie,gt)&&(he[gt]=ie[gt]);return he};const{Panel:Tu}=Tr.default,ju=({questionTitlePlaceholder:ie,choiceKey:Se,form:he,withScore:gt,exerciseitem:bt})=>{const Qn=[{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"}],[bn,Xt]=(0,b.useState)(),[it,en]=(0,b.useState)([]),ra=Lt=>{en(Lt)},Bt=({value:Lt})=>ao.createElement("div",{style:{width:150,paddingLeft:11}},Lt);return ao.createElement("div",{className:ca.wrap},ao.createElement("div",{className:ca.questionTitleEditorWrap},ao.createElement(we.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ao.createElement(yr,{scrollId:"name",watch:!0,height:140,placeholder:ie}))),ao.createElement(we.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),ao.createElement(we.default.List,{name:"sub_item_banks",rules:[{validator(Lt,dt){return dt?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Lt,{add:dt,remove:xt,move:Pn})=>{const Et=he.getFieldValue("sub_item_banks");return ao.createElement(ao.Fragment,null,ao.createElement(Tr.default,{className:Lt.length>0?ca.collapseWrapper:"",bordered:!1,activeKey:it,onChange:ra,expandIcon:({isActive:Ht})=>ao.createElement("i",{className:`iconfont icon-weizhankai ${Ht?ca.open:ca.close}`,style:{fontSize:14,transition:"all .2s"}})},Lt.map((Ht,Nt)=>{var Zn=Ht,{key:sn,name:Rt}=Zn,nr=Ku(Zn,["key","name"]),Kr,qa,Nr,Jn,_r,lo,Do,Ir,Lo,Io,Al,Nn,fl,xl;return ao.createElement(Tu,{className:ca.panel,forceRender:!0,header:ao.createElement("div",{className:ca.panelHeader},"\u7B2C",Nt+1,"\u5C0F\u9898",ao.createElement("span",null,"\uFF08",((Kr=Et==null?void 0:Et[Rt])==null?void 0:Kr.question_type)==0?"\u5355\u9009\u9898":((qa=Et==null?void 0:Et[Rt])==null?void 0:qa.question_type)==1?"\u591A\u9009\u9898":((Nr=Et==null?void 0:Et[Rt])==null?void 0:Nr.question_type)==3?"\u586B\u7A7A\u9898":((Jn=Et==null?void 0:Et[Rt])==null?void 0:Jn.question_type)==2?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:Rt,extra:ao.createElement(Ea.Z,{align:"middle",onClick:ko=>ko.stopPropagation()},((_r=Et==null?void 0:Et[Rt])==null?void 0:_r.question_type)==3&&ao.createElement(ao.Fragment,null,ao.createElement(Oe.ZP.Group,{defaultValue:(lo=Et==null?void 0:Et[Rt])==null?void 0:lo.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:ko=>{var Hn,Bl,zl,Jl,Wl;if(he==null||he.setFieldValue(["sub_item_banks",Rt,"use_blank_score"],(Hn=ko==null?void 0:ko.target)==null?void 0:Hn.value),(Bl=ko==null?void 0:ko.target)!=null&&Bl.value){let Ql=0;for(let vl in(zl=he==null?void 0:he.getFieldValue(["sub_item_banks",Rt]))==null?void 0:zl.standard_answers)Ql+=Number((Wl=(Jl=he==null?void 0:he.getFieldValue(["sub_item_banks",Rt]))==null?void 0:Jl.standard_answers[vl])==null?void 0:Wl.score);he==null||he.setFieldValue(["sub_item_banks",Rt,"question_score"],Ql||"")}Xt(new Date)}}),ao.createElement(rt.Z,{overlayInnerStyle:{width:460},title:ao.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",ao.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")},ao.createElement("i",{className:"icon-tishixiaowenhao font18 mr25 c-3061d0"}))),gt&&ao.createElement(we.default.Item,ru(ku({},nr),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[Rt,"question_score"],className:ca.blankInputNumberWrapper}),((Do=Et==null?void 0:Et[Rt])==null?void 0:Do.question_type)==3&&((Ir=Et==null?void 0:Et[Rt])!=null&&Ir.use_blank_score)?ao.createElement(Bt,null):ao.createElement(De.Z,{className:ca.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}})),ao.createElement(Ea.Z,{align:"middle",className:"pl40",style:{width:82}},Nt!==0&&ao.createElement("div",{onClick:()=>{var ko;Pn(Nt,Nt-1);const Hn=(ko=he.getFieldValue("sub_item_banks"))==null?void 0:ko.map((Bl,zl)=>(Lt.map((Jl,Wl)=>{zl===Wl&&(Bl.q_position=Number(Jl.name)+1)}),Bl));he.setFieldValue("sub_item_banks",Hn)}},ao.createElement(rt.Z,{title:"\u4E0A\u79FB"},ao.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),Nt{var ko;Pn(Nt,Nt+1);const Hn=(ko=he.getFieldValue("sub_item_banks"))==null?void 0:ko.map((Bl,zl)=>(Lt.map((Jl,Wl)=>{zl===Wl&&(Bl.q_position=Number(Jl.name)+1)}),Bl));he.setFieldValue("sub_item_banks",Hn)},className:Nt===0?"":"ml10"},ao.createElement(rt.Z,{title:"\u4E0B\u79FB"},ao.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"})))),ao.createElement(rt.Z,{title:"\u5220\u9664"},ao.createElement(se.Z,{className:`${ca.deleteIcon} ml40`,onClick:()=>xt(Rt)})))},ao.createElement(we.default.Item,ru(ku({},nr),{name:Rt}),(((Lo=Et==null?void 0:Et[Rt])==null?void 0:Lo.question_type)==0||((Io=Et==null?void 0:Et[Rt])==null?void 0:Io.question_type)==1)&&ao.createElement(yt,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((Al=Et==null?void 0:Et[Rt])==null?void 0:Al.question_type)==1,form:he,choiceKey:[Rt,"choices"],titleKey:[Rt,"name"],analysisKey:[Rt,"analysis"],choiceOptionsPath:["sub_item_banks",Rt,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((Nn=Et==null?void 0:Et[Rt])==null?void 0:Nn.question_type)==3&&ao.createElement(yo,{form:he,name:Rt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\u5E76\u8BBE\u7F6E\u586B\u7A7A\u9879",scoreByBlank:[Rt,"use_blank_score"],titleKey:[Rt,"name"],analysisKey:[Rt,"analysis"],isOrdered:[Rt,"is_ordered"],answerKey:[Rt,"standard_answers"],key:bn}),((fl=Et==null?void 0:Et[Rt])==null?void 0:fl.question_type)==2&&ao.createElement(yn,{form:he,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[Rt,"name"],analysisKey:[Rt,"analysis"],choiceKey:[Rt,"choices"]}),((xl=Et==null?void 0:Et[Rt])==null?void 0:xl.question_type)==4&&ao.createElement(rs,{showKeywords:!0,isMustKeyWords:!0,form:he,titleKey:[Rt,"name"],analysisKey:[Rt,"analysis"],answerTexts:[Rt,"answer_texts"],useKeywords:[Rt,"use_keywords"],keywords:[Rt,"keywords"],aiReviewSettings:[Rt,"ai_review_settings"],indexs:Rt,qitem:Et==null?void 0:Et[Rt],questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9",exerciseitem:bt})))})),Lt.length<20&&ao.createElement(Ce.Z,{menu:{items:[{label:ao.createElement("div",{onClick:()=>{dt({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:0,item_type:"SINGLE"}),en([Lt==null?void 0:Lt.length,...it])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:ao.createElement("div",{onClick:()=>{dt({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:1,item_type:"MULTIPLE"}),en([Lt==null?void 0:Lt.length,...it])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:ao.createElement("div",{onClick:()=>{dt({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",question_type:2,item_type:"JUDGMENT"}),en([Lt==null?void 0:Lt.length,...it])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:ao.createElement("div",{onClick:()=>{dt({name:"",analysis:"",is_ordered:!0,standard_answers:[],question_type:3,item_type:"COMPLETION",use_blank_score:!0,downcase:!0,no_space:!0}),en([Lt==null?void 0:Lt.length,...it])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:ao.createElement("div",{onClick:()=>{dt({name:"",answer_texts:[],keywords:[],use_keywords:!1,analysis:"",question_type:4,item_type:"SUBJECTIVE"}),en([Lt==null?void 0:Lt.length,...it])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(Ht=>Ht.show).map(Ht=>({label:Ht.label,key:Ht.key}))}},ao.createElement("div",{className:`${ca.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var Gl=ae(59301),_u=Object.defineProperty,xu=Object.defineProperties,Ol=Object.getOwnPropertyDescriptors,wu=Object.getOwnPropertySymbols,ls=Object.prototype.hasOwnProperty,ou=Object.prototype.propertyIsEnumerable,$i=(ie,Se,he)=>Se in ie?_u(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,bi=(ie,Se)=>{for(var he in Se||(Se={}))ls.call(Se,he)&&$i(ie,he,Se[he]);if(wu)for(var he of wu(Se))ou.call(Se,he)&&$i(ie,he,Se[he]);return ie},Bi=(ie,Se)=>xu(ie,Ol(Se)),is=(ie,Se,he)=>new Promise((gt,bt)=>{var Qn=it=>{try{Xt(he.next(it))}catch(en){bt(en)}},bn=it=>{try{Xt(he.throw(it))}catch(en){bt(en)}},Xt=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,bn);Xt((he=he.apply(ie,Se)).next())}),us=({qitem:ie,setisedit:Se,TagDiscipline:he,exerciseitem:gt,seveeditor:bt,deleteitem:Qn,getTagData:bn,init:Xt,showTip:it=!1})=>{var en;const[ra]=we.default.useForm(),{unified_ai_setting:Bt,ai_review_settings:Lt}=gt==null?void 0:gt.exercise;(0,b.useEffect)(()=>{var xt;ra.setFieldsValue(Bi(bi({},ie),{name:ie.question_title,sub_item_banks:(xt=ie.sub_exercise_questions)==null?void 0:xt.map(Pn=>{var Et,Ht;if(Pn.question_type==4){const Nt=Bt?Lt:((Et=Pn==null?void 0:Pn.ai_review_settings)==null?void 0:Et.length)>0?Pn.ai_review_settings:Lt;Pn.ai_review_settings=Nt}return Bi(bi({},Pn),{name:Pn.question_title,choices:(Ht=Pn==null?void 0:Pn.question_choices)==null?void 0:Ht.map(Nt=>Bi(bi({},Nt),{is_answer:Nt!=null&&Nt.standard_boolean?1:0}))})}),repeat_answer:!ie.repeat_answer}))},[ie]);const dt=xt=>{if(!(xt!=null&&xt.length))return!1;const Pn=xt.map(Ht=>{var Nt;return(Nt=Ht.choice_text)==null?void 0:Nt.trim().replace(/^\s+|\s+$/g,"")});return new Set(Pn).size!==Pn.length};return Gl.createElement("div",null,Gl.createElement(we.default,{form:ra,colon:!1,onValuesChange:(xt,Pn)=>{var Et,Ht,Nt,Zn;if(xt!=null&&xt.sub_item_banks){let sn=((Et=ra.getFieldValue("sub_item_banks"))==null?void 0:Et.length)>0&&((Nt=(Ht=ra.getFieldValue("sub_item_banks"))==null?void 0:Ht.map(Rt=>{var nr;if(Rt.question_type==3&&(Rt!=null&&Rt.use_blank_score)){let Kr=0;for(let qa in Rt==null?void 0:Rt.standard_answers)Kr+=Number((nr=Rt==null?void 0:Rt.standard_answers[qa])==null?void 0:nr.score);return Kr}else return Rt.question_score}))==null?void 0:Nt.filter(Rt=>Rt));(sn==null?void 0:sn.length)>0&&ra.setFieldsValue({question_score:(Zn=parseFloat(sn.reduce((Rt,nr)=>parseFloat(Rt)+parseFloat(nr))))==null?void 0:Zn.toFixed(1)})}},onFinish:xt=>{var Pn,Et;if((Pn=xt.sub_item_banks)==null?void 0:Pn.some(Nt=>Nt.question_type===0||Nt.question_type===1?dt(Nt.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}bt(Bi(bi(bi({},ie),xt),{question_title:xt.name,sub_questions:(Et=xt==null?void 0:xt.sub_item_banks)==null?void 0:Et.map(Nt=>{var Zn,sn,Rt,nr;return(Nt==null?void 0:Nt.question_type)==3?Bi(bi({},Nt),{question_title:Nt.name,item_type:Nt==null?void 0:Nt.question_type}):Bi(bi({},Nt),{question_title:Nt.name,question_choices:(sn=(Zn=Nt==null?void 0:Nt.choices)==null?void 0:Zn.map)==null?void 0:sn.call(Zn,Kr=>Kr.choice_text),standard_answers:(nr=(Rt=Nt==null?void 0:Nt.choices)==null?void 0:Rt.map)==null?void 0:nr.call(Rt,(Kr,qa)=>(Kr==null?void 0:Kr.is_answer)===1&&qa+1).filter(Kr=>Kr),item_type:Nt==null?void 0:Nt.question_type})})}))},onFinishFailed:xt=>is(void 0,null,function*(){var Pn,Et;Be.ZP.error(xt.errorFields[0].errors[0]),ra.scrollToField((Et=(Pn=xt==null?void 0:xt.errorFields)==null?void 0:Pn[0])==null?void 0:Et.name,{behavior:"smooth",block:"center"})})},Gl.createElement("div",{style:{display:"flex",alignItems:"center"}},Gl.createElement("div",{style:{flex:1}},Gl.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Gl.createElement("span",null,"\u7EC4\u5408\u9898")),((en=gt==null?void 0:gt.exercise)==null?void 0:en.exercise_status)==1&&!(ie!=null&&ie.isadd)&&Gl.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Qn()}},Gl.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Gl.createElement(ke.ZP,{onClick:()=>{var xt;ie.isadd?(Se(!1),Xt()):(ra.setFieldsValue(Bi(bi({},ie),{name:ie.question_title,sub_item_banks:(xt=ie.sub_exercise_questions)==null?void 0:xt.map(Pn=>{var Et;return Bi(bi({},Pn),{name:Pn.question_title,choices:(Et=Pn==null?void 0:Pn.question_choices)==null?void 0:Et.map(Ht=>Bi(bi({},Ht),{is_answer:Ht!=null&&Ht.standard_boolean?1:0}))})}),repeat_answer:!ie.repeat_answer})),Se(!1))}},"\u53D6\u6D88"),Gl.createElement(rt.Z,{overlayClassName:tt.shake,open:it,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Gl.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Gl.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")},Gl.createElement(ke.ZP,{className:"ml20",type:"primary",onClick:()=>{ra.submit()}},"\u4FDD\u5B58"))),Gl.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Gl.createElement(vn.Z,{text:"\uFF08\u7EC4\u5408\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5C0F\u9898\u5206\u503C\u4E4B\u548C\uFF09"}),Gl.createElement(ju,{form:ra,withScore:!0,choiceKey:"",exerciseitem:gt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7EC4\u5408\u9898\u9898\u5E72\u5185\u5BB9"}),Gl.createElement(Ca,{getTagData:bn,qitem:ie,exerciseitem:gt,TagDiscipline:he,form:ra}))))},Ju=ae(81327),ss=ae(14739),br=ae(59301),ds=Object.defineProperty,cs=Object.defineProperties,Gu=Object.getOwnPropertyDescriptors,Du=Object.getOwnPropertySymbols,gs=Object.prototype.hasOwnProperty,Hu=Object.prototype.propertyIsEnumerable,du=(ie,Se,he)=>Se in ie?ds(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Dl=(ie,Se)=>{for(var he in Se||(Se={}))gs.call(Se,he)&&du(ie,he,Se[he]);if(Du)for(var he of Du(Se))Hu.call(Se,he)&&du(ie,he,Se[he]);return ie},ql=(ie,Se)=>cs(ie,Gu(Se)),zu=(ie,Se,he)=>new Promise((gt,bt)=>{var Qn=it=>{try{Xt(he.next(it))}catch(en){bt(en)}},bn=it=>{try{Xt(he.throw(it))}catch(en){bt(en)}},Xt=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,bn);Xt((he=he.apply(ie,Se)).next())}),bs=({qitem:ie,setqitem:Se,setisedit:he,TagDiscipline:gt,exerciseitem:bt,seveeditor:Qn,deleteitem:bn,showTip:Xt=!1})=>{var it,en,ra;const[Bt]=we.default.useForm();(0,b.useEffect)(()=>{var Et,Ht;Bt.setFieldsValue(ql(Dl({},ie),{name:ie==null?void 0:ie.question_title,choices:(Et=ie==null?void 0:ie.question_choices)==null?void 0:Et.map(Nt=>ql(Dl({},Nt),{standard_boolean:Nt!=null&&Nt.standard_boolean?1:0})),repeat_answer:!(ie!=null&&ie.repeat_answer)})),ie.shixun=(Ht=ie==null?void 0:ie.shixun)==null?void 0:Ht.map(Nt=>ql(Dl({},Nt),{defaultscore:Nt.challenge_score}))},[]);const Lt=(Et,Ht,Nt)=>{const Zn=JSON.parse(JSON.stringify((ie==null?void 0:ie.shixun)||[]));Zn[Nt][Et]=Ht,Se(ql(Dl({},ie),{shixun:Zn}))},dt=(Et,Ht,Nt,Zn)=>{const sn=JSON.parse(JSON.stringify((ie==null?void 0:ie.shixun)||[]));sn[Nt].challenge_step_penalties[Zn][Et]=Ht,Se(ql(Dl({},ie),{shixun:sn}))},xt=Et=>{var Ht;const Nt=JSON.parse(JSON.stringify((ie==null?void 0:ie.shixun)||[]));(Ht=Nt[Et])!=null&&Ht.challenge_step_penalties&&Nt[Et].challenge_step_penalties.push({id:null,score:null,start_time:null,end_time:null}),Se(ql(Dl({},ie),{shixun:Nt}))},Pn=(Et,Ht)=>{var Nt;const Zn=JSON.parse(JSON.stringify((ie==null?void 0:ie.shixun)||[]));Zn[Et].challenge_step_penalties,(Nt=Zn[Et])!=null&&Nt.challenge_step_penalties&&Zn[Et].challenge_step_penalties.splice(Ht,1),Se(ql(Dl({},ie),{shixun:Zn}))};return br.createElement("div",null,br.createElement(we.default,{form:Bt,colon:!1,onFinish:Et=>{var Ht,Nt;let Zn=ql(Dl({},Et),{question_scores:(Ht=ie==null?void 0:ie.shixun)==null?void 0:Ht.map(sn=>sn.challenge_score),item_type:ie==null?void 0:ie.question_type,choices:(Nt=Et==null?void 0:Et.choices)==null?void 0:Nt.map(sn=>ql(Dl({},sn),{is_answer:sn.standard_boolean}))});Qn(Dl(Dl({},ie),Zn))},onFinishFailed:Et=>zu(void 0,null,function*(){var Ht,Nt;Be.ZP.error(Et.errorFields[0].errors[0]),Bt.scrollToField((Nt=(Ht=Et==null?void 0:Et.errorFields)==null?void 0:Ht[0])==null?void 0:Nt.name,{behavior:"smooth",block:"center"})})},br.createElement("div",{style:{display:"flex",alignItems:"center"}},br.createElement("div",{style:{flex:1}},br.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),br.createElement("span",null,"\u5B9E\u8BAD\u9898")),((it=bt==null?void 0:bt.exercise)==null?void 0:it.exercise_status)==1&&!(ie!=null&&ie.isadd)&&br.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{bn()}},br.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),br.createElement(ke.ZP,{onClick:()=>{var Et,Ht;Bt.setFieldsValue(ql(Dl({},ie),{name:ie==null?void 0:ie.question_title,choices:(Et=ie==null?void 0:ie.question_choices)==null?void 0:Et.map(Nt=>ql(Dl({},Nt),{standard_boolean:Nt!=null&&Nt.standard_boolean?1:0})),repeat_answer:!(ie!=null&&ie.repeat_answer)})),ie.shixun=(Ht=ie==null?void 0:ie.shixun)==null?void 0:Ht.map(Nt=>ql(Dl({},Nt),{challenge_score:Nt.defaultscore})),Se(Dl({},ie)),he(!1)}},"\u53D6\u6D88"),br.createElement(rt.Z,{overlayClassName:tt.shake,open:Xt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:br.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},br.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")},br.createElement(ke.ZP,{className:"ml20",type:"primary",onClick:()=>zu(void 0,null,function*(){var Et,Ht,Nt,Zn;if(((Ht=(Et=ie==null?void 0:ie.shixun)==null?void 0:Et.map)==null?void 0:Ht.call(Et,nr=>nr.challenge_score).filter(nr=>nr).length)<((Nt=ie==null?void 0:ie.shixun)==null?void 0:Nt.length)){Be.ZP.info("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A");return}console.log(ie,"qitem");const sn=parseFloat(Bt.getFieldValue("question_score")),Rt=parseFloat((Zn=ie==null?void 0:ie.shixun)==null?void 0:Zn.map(nr=>nr.challenge_score).reduce((nr,Kr)=>parseFloat(nr||0)+parseFloat(Kr||0)));if((ie==null?void 0:ie.shixun_mode)===2&&sn!==Rt){Be.ZP.info("\u8003\u70B9\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u7B49\u4E8E\u8BD5\u9898\u5206\u503C");return}Bt.submit()})},"\u4FDD\u5B58"))),br.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},(ie==null?void 0:ie.shixun_mode)===0?br.createElement(vn.Z,{text:"\uFF08\u5B9E\u8BAD\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5173\u5361\u5206\u503C\u4E4B\u548C\uFF09"}):br.createElement(we.default.Item,{className:tt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},br.createElement(De.Z,{disabled:!!((en=ie==null?void 0:ie.shixun)!=null&&en.some(Et=>Et.challenge_test_set_score_rule==2)),onChange:Et=>{var Ht;(ie==null?void 0:ie.shixun_mode)===1&&((Ht=ie==null?void 0:ie.shixun)==null?void 0:Ht.length)===1&&(ie.shixun[0].challenge_score=Et,Se(Dl({},ie)))},onBlur:Et=>{const Ht=Number(Et.target.value);Ht<1&&Be.ZP.error("\u5206\u6570\u4E0D\u80FD\u5C0F\u4E8E1"),Ht>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})),br.createElement(we.default.Item,{label:"\u9898\u5E72",name:"question_title",labelCol:{span:24},rules:[{required:!0}]},br.createElement(nn.Z,{watch:!0,height:140,placeholder:"",defaultValue:ie.question_title})),br.createElement(Ea.Z,{style:{marginBottom:15},align:"middle",justify:"space-between"},br.createElement("div",null,br.createElement("span",{style:{color:"red"}},"*"),(ie==null?void 0:ie.shixun_mode)===2?"\u8003\u70B9":"\u5173\u5361","\u540D\u79F0"),br.createElement("a",{href:`/shixuns/${ie==null?void 0:ie.shixun_identifier}/challenges?exercise=true`,target:"_blank"},br.createElement("i",{onClick:()=>{},className:"iconfont icon-shixunkecheng font14 mr5"}),"\u5B9E\u8BAD\u8BE6\u60C5")),(ra=ie==null?void 0:ie.shixun)==null?void 0:ra.map((Et,Ht)=>{var Nt,Zn,sn;return br.createElement(b.Fragment,{key:Et.challenge_id},br.createElement("div",{style:{display:"flex",marginBottom:20}},br.createElement("div",{style:{flex:1}},Ht+1,"\u3001",Et.challenge_name),br.createElement("div",null,br.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C",br.createElement(De.Z,{disabled:!!((Nt=ie==null?void 0:ie.shixun)!=null&&Nt.some(Rt=>Rt.challenge_test_set_score_rule==2)),precision:1,value:Et==null?void 0:Et.challenge_score,onChange:Rt=>{const nr=JSON.parse(JSON.stringify((ie==null?void 0:ie.shixun)||[]));nr[Ht].challenge_score=Rt;const Kr=nr.every(Nr=>!Nr.challenge_score),qa=parseFloat(nr==null?void 0:nr.map(Nr=>Nr.challenge_score).reduce((Nr,Jn)=>parseFloat(Nr||0)+parseFloat(Jn||0)));(ie==null?void 0:ie.shixun_mode)!==2&&Bt.setFieldsValue({question_score:Kr?"":qa.toFixed(1)}),Se(ql(Dl({},ie),{shixun:nr}))},max:200,min:1,style:{marginLeft:10,width:150},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle"}))),[1,2].includes(ie==null?void 0:ie.shixun_mode)&&br.createElement("div",{className:"mb20"},br.createElement(Ju.Z,null,br.createElement(_a.Z,{checked:Et==null?void 0:Et.is_time_limit,onChange:Rt=>Lt("is_time_limit",Rt,Ht)}),br.createElement("span",{className:"c-grey-333"},"\u5F00\u542F\u5B8C\u6210\u65F6\u95F4\u9650\u5236\uFF0C\u5E76\u8BBE\u7F6E\u5F97\u5206\u89C4\u5219")),[1].includes(ie==null?void 0:ie.shixun_mode)&&(Et==null?void 0:Et.is_time_limit)&&br.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:10}},br.createElement("div",null,"\u9650\u5236\u5B8C\u6210\u65F6\u95F4"),br.createElement(De.Z,{suffix:"\u79D2",value:Et==null?void 0:Et.time_limit,onChange:Rt=>Lt("time_limit",Rt,Ht),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),br.createElement("div",null,"\uFF0C\u6BCF\u8D85\u8FC7"),br.createElement(De.Z,{suffix:"\u79D2",value:Et==null?void 0:Et.timeout_second,onChange:Rt=>Lt("timeout_second",Rt,Ht),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),br.createElement("div",null,"\uFF0C\u6263\u9664"),br.createElement(De.Z,{suffix:"\u5206",value:Et==null?void 0:Et.deduct_point,onChange:Rt=>Lt("deduct_point",Rt,Ht),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),br.createElement("div",null,"\uFF0C\u76F4\u81F3\u6263\u5B8C\u8BE5\u9898\u5206\u503C")),[2].includes(ie==null?void 0:ie.shixun_mode)&&(Et==null?void 0:Et.is_time_limit)&&br.createElement(br.Fragment,null,br.createElement("div",{style:{display:"flex",alignItems:"center",marginTop:10}},br.createElement("div",null,"\u9650\u5236\u5B8C\u6210\u65F6\u95F4"),br.createElement(De.Z,{suffix:"\u79D2",value:Et==null?void 0:Et.time_limit,onChange:Rt=>Lt("time_limit",Rt,Ht),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),br.createElement("div",null,"\uFF0C\u8D85\u8FC7\u65F6\u95F4\u4E0D\u5F97\u5206\uFF0C\u53EF\u4EE5\u8BBE\u7F6E\u5B66\u5458\u5728\u6307\u5B9A\u65F6\u95F4\u5185\u5B8C\u6210\u6263\u9664\u4E0D\u540C\u5206\u503C")),!!((Zn=Et==null?void 0:Et.challenge_step_penalties)!=null&&Zn.length)&&br.createElement("div",{className:"mt20 p20",style:{backgroundColor:"#F6F7F9",display:"flex",flexDirection:"column",gap:20}},(sn=Et==null?void 0:Et.challenge_step_penalties)==null?void 0:sn.map((Rt,nr)=>br.createElement(Ea.Z,{key:nr,align:"middle"},br.createElement("div",null,"\u5B8C\u6210\u65F6\u95F4"),br.createElement(De.Z,{suffix:"\u79D2",value:Rt==null?void 0:Rt.start_time,onChange:Kr=>dt("start_time",Kr,Ht,nr),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),br.createElement("div",null,"-"),br.createElement(De.Z,{suffix:"\u79D2",value:Rt==null?void 0:Rt.end_time,onChange:Kr=>dt("end_time",Kr,Ht,nr),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),br.createElement("div",null,"\uFF0C\u6263\u9664"),br.createElement(De.Z,{suffix:"\u5206",value:Rt==null?void 0:Rt.score,onChange:Kr=>dt("score",Kr,Ht,nr),className:"ml10 mr10",size:"large",style:{width:120},min:1,precision:0}),br.createElement("i",{className:"iconfont icon-shanchu15 c-red current ml20",onClick:()=>Pn(Ht,nr)})))),br.createElement(ss.op,{onClick:()=>xt(Ht),className:"mt20",shape:"default"},"\u6DFB\u52A0\u5F97\u5206\u89C4\u5219"))))}))))},Na={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"},Xu=ae(1710),Pu=ae(10438),zi=ae(24334),aa=ae(59301);const Vu=["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"],fs=[{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 eu=({qitem:ie,exercise:Se})=>{var he,gt,bt,Qn,bn,Xt,it,en,ra,Bt,Lt,dt,xt,Pn,Et,Ht,Nt,Zn,sn,Rt,nr,Kr,qa,Nr;return aa.createElement("div",{className:Na.warp},((ie==null?void 0:ie.question_type)===0||(ie==null?void 0:ie.question_type)===2)&&aa.createElement("div",{className:Na.normalWrap},(he=ie==null?void 0:ie.question_choices)==null?void 0:he.map((Jn,_r)=>aa.createElement("div",{className:Na.redio},!(Jn!=null&&Jn.standard_boolean)&&aa.createElement("span",{className:Na.redioitem}),(Jn==null?void 0:Jn.standard_boolean)&&aa.createElement("i",{className:`${Na.redioitemyes} icon-duigou1`}),aa.createElement("span",{className:`${Jn!=null&&Jn.standard_boolean?Na.titleyes:Na.title} ${Na.indexTag}`},(ie==null?void 0:ie.question_type)===0?Vu[_r]:""),aa.createElement(jt.Z,{className:Jn!=null&&Jn.standard_boolean?Na.titleyes:Na.title,value:Jn==null?void 0:Jn.choice_text}),(Jn==null?void 0:Jn.standard_boolean)&&aa.createElement("div",{className:Na.yestag},"\u6B63\u786E\u7B54\u6848")))),(ie==null?void 0:ie.question_type)===1&&aa.createElement("div",{className:Na.normalWrap},(gt=ie==null?void 0:ie.question_choices)==null?void 0:gt.map((Jn,_r)=>aa.createElement("div",{className:Na.checkbox},!(Jn!=null&&Jn.standard_boolean)&&aa.createElement("span",{className:Na.checkboxitem}),(Jn==null?void 0:Jn.standard_boolean)&&aa.createElement("i",{className:`${Na.checkboxitemyes} icon-duigou1`}),aa.createElement("span",{className:`${Jn!=null&&Jn.standard_boolean?Na.titleyes:Na.title} ${Na.indexTag}`},Vu[_r]),aa.createElement(jt.Z,{className:Jn!=null&&Jn.standard_boolean?Na.titleyes:Na.title,value:Jn==null?void 0:Jn.choice_text}),(Jn==null?void 0:Jn.standard_boolean)&&aa.createElement("div",{className:Na.yestag},"\u6B63\u786E\u7B54\u6848")))),(ie==null?void 0:ie.question_type)===3&&aa.createElement("div",{className:Na.completion},(bt=ie==null?void 0:ie.standard_answers)==null?void 0:bt.map((Jn,_r)=>{var lo;return aa.createElement(Ea.Z,{align:"top"},aa.createElement("span",{className:Na.title},"\u586B\u7A7A\u9879",_r+1),aa.createElement("div",{className:Na.content},(lo=Jn.answer_text)==null?void 0:lo.map((Do,Ir)=>aa.createElement("div",{key:Ir,className:Na.items,style:(Jn==null?void 0:Jn.model)===2?{border:0,padding:0}:{}},(Jn==null?void 0:Jn.model)===1?aa.createElement("pre",{className:"mb0"},Do):aa.createElement(Pu.Z,{value:Do,disabled:!0})))))})),(ie==null?void 0:ie.question_type)===4&&aa.createElement("div",{className:Na.simple},aa.createElement("div",{className:Na.title},"\u53C2\u8003\u7B54\u6848"),aa.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Qn=ie==null?void 0:ie.answer_texts)!=null&&Qn[0]?aa.createElement(jt.Z,{className:Na.content,value:(bn=ie==null?void 0:ie.answer_texts)==null?void 0:bn[0]}):aa.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),aa.createElement("div",{className:"mt20 "},aa.createElement("span",{className:Na.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),aa.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},ie!=null&&ie.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))),(ie==null?void 0:ie.question_type)===5&&aa.createElement("div",{className:Na.shixunWrapper},(Xt=ie==null?void 0:ie.shixun)==null?void 0:Xt.map((Jn,_r)=>{var lo,Do;return aa.createElement("div",null,aa.createElement("div",{key:_r,className:`${Na.shixun} mb30`},aa.createElement("span",{style:{flexShrink:0},className:Na.score},"\uFF08",Jn==null?void 0:Jn.challenge_score,"\u5206\uFF09"),aa.createElement(rt.Z,{title:`${(ie==null?void 0:ie.index)+"."+(_r+1)}\u3001${Jn==null?void 0:Jn.challenge_name}`},aa.createElement("span",{style:{width:"fit-content",marginRight:"auto"},className:Na.qtitle},(ie==null?void 0:ie.index)+"."+(_r+1),"\u3001",Jn==null?void 0:Jn.challenge_name)),(Jn==null?void 0:Jn.is_time_limit)&&aa.createElement("span",{className:"pl10",style:{color:"#FF6800",flexShrink:0}},"\u5DF2\u5F00\u542F\u5B8C\u6210\u65F6\u95F4\u9650\u5236")),((Do=(lo=Se==null?void 0:Se.editData)==null?void 0:lo.exercise)==null?void 0:Do.show_challenge_task_pass)&&aa.createElement(jt.Z,{className:Na.content,value:(Jn==null?void 0:Jn.task_pass)||"\u6682\u65E0\u5173\u5361\u63CF\u8FF0"}))})),(ie==null?void 0:ie.question_type)===6&&aa.createElement("div",{className:Na.program,style:{border:!((en=(it=Se==null?void 0:Se.editData)==null?void 0:it.exercise)!=null&&en.show_hack_sets)&&!((Bt=(ra=Se==null?void 0:Se.editData)==null?void 0:ra.exercise)!=null&&Bt.show_hack_description)&&"none"}},((dt=(Lt=Se==null?void 0:Se.editData)==null?void 0:Lt.exercise)==null?void 0:dt.show_hack_sets)&&aa.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},aa.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},aa.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),aa.createElement(Xu.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(Jn,_r,lo)=>lo+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(Jn,_r,lo)=>aa.createElement(rt.Z,{title:aa.createElement("pre",null,Jn)},aa.createElement("div",{className:Na.divname},Jn))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(Jn,_r,lo)=>aa.createElement(rt.Z,{title:aa.createElement("pre",null,Jn)}," ",aa.createElement("div",{className:Na.divname},Jn))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:ie==null?void 0:ie.hack_sets})),((Pn=(xt=Se==null?void 0:Se.editData)==null?void 0:xt.exercise)==null?void 0:Pn.show_hack_description)&&aa.createElement("div",null,aa.createElement(jt.Z,{className:Na.content,value:(ie==null?void 0:ie.description)||"- -"}))),(ie==null?void 0:ie.question_type)===7&&((Et=ie==null?void 0:ie.sub_exercise_questions)==null?void 0:Et.map((Jn,_r)=>{var lo,Do,Ir,Lo,Io,Al;return aa.createElement("div",{key:_r},aa.createElement("div",{className:Na.combination},aa.createElement("span",{className:Na.score},Jn==null?void 0:Jn.question_score,"\u5206"),aa.createElement("span",{className:Na.qtype},(lo=fs.find(Nn=>Nn.type==Jn.question_type))==null?void 0:lo.name),aa.createElement("span",{className:Na.qtitle},_r+1,"\u3001",Jn==null?void 0:Jn.question_title)),(Jn.question_type===0||Jn.question_type===2)&&aa.createElement("div",{className:Na.warp,style:{padding:"30px 58px",paddingBottom:0}},aa.createElement("div",null,(Do=Jn==null?void 0:Jn.question_choices)==null?void 0:Do.map((Nn,fl)=>aa.createElement("div",{className:Na.redio,key:fl},!(Nn!=null&&Nn.standard_boolean)&&aa.createElement("span",{className:Na.redioitem}),(Nn==null?void 0:Nn.standard_boolean)&&aa.createElement("i",{className:`${Na.redioitemyes} icon-duigou1`}),Jn.question_type===2&&aa.createElement("span",{className:`${Nn!=null&&Nn.standard_boolean?Na.titleyes:Na.title} ${Na.indexTag}`},Vu[fl]),aa.createElement(jt.Z,{className:Nn!=null&&Nn.standard_boolean?Na.titleyes:Na.title,value:Nn==null?void 0:Nn.choice_text}),(Nn==null?void 0:Nn.standard_boolean)&&aa.createElement("div",{className:Na.yestag},"\u6B63\u786E\u7B54\u6848"))))),Jn.question_type===1&&aa.createElement("div",{className:Na.normalWrap},(Ir=Jn==null?void 0:Jn.question_choices)==null?void 0:Ir.map((Nn,fl)=>aa.createElement("div",{className:Na.checkbox,key:fl},!(Nn!=null&&Nn.standard_boolean)&&aa.createElement("span",{className:Na.checkboxitem}),(Nn==null?void 0:Nn.standard_boolean)&&aa.createElement("i",{className:`${Na.checkboxitemyes} icon-duigou1`}),aa.createElement("span",{className:`${Nn!=null&&Nn.standard_boolean?Na.titleyes:Na.title} ${Na.indexTag}`},Vu[fl]),aa.createElement(jt.Z,{className:Nn!=null&&Nn.standard_boolean?Na.titleyes:Na.title,value:Nn==null?void 0:Nn.choice_text}),(Nn==null?void 0:Nn.standard_boolean)&&aa.createElement("div",{className:Na.yestag},"\u6B63\u786E\u7B54\u6848")))),Jn.question_type===3&&aa.createElement("div",{className:Na.completion},(Lo=Jn==null?void 0:Jn.standard_answers)==null?void 0:Lo.map((Nn,fl)=>{var xl;return aa.createElement(Ea.Z,{align:"top"},aa.createElement("span",{className:Na.title},"\u586B\u7A7A\u9879",fl+1),aa.createElement("div",{className:Na.content},(xl=Nn.answer_text)==null?void 0:xl.map((ko,Hn)=>aa.createElement("div",{key:Hn,className:Na.items},aa.createElement("pre",{className:"mb0"},ko)))))})),Jn.question_type===4&&aa.createElement("div",{className:Na.simple},aa.createElement("div",{className:Na.title},"\u53C2\u8003\u7B54\u6848"),aa.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Io=Jn==null?void 0:Jn.answer_texts)!=null&&Io[0]?aa.createElement(jt.Z,{className:Na.content,value:(Al=Jn==null?void 0:Jn.answer_texts)==null?void 0:Al[0]}):aa.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),aa.createElement("div",{className:"mt20 "},aa.createElement("span",{className:Na.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),aa.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},Jn!=null&&Jn.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))))})),(ie==null?void 0:ie.question_type)===8&&aa.createElement("div",null,aa.createElement(jt.Z,{disabledFill:!0,className:Na.content,showProgramFill:!0,value:zi.Base64.decode(((Ht=ie==null?void 0:ie.program_attr)==null?void 0:Ht.code)||"")})),((ie==null?void 0:ie.question_type)<=4||[6,8].includes(ie==null?void 0:ie.question_type))&&aa.createElement("div",{className:Na.bottom},aa.createElement("div",{className:`${Na.bottomitem} mb30`},aa.createElement("span",{className:Na.left},"\u89E3\u6790"),aa.createElement("span",{className:Na.right},ie!=null&&ie.analysis?aa.createElement(jt.Z,{value:ie==null?void 0:ie.analysis}):aa.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),aa.createElement("div",{className:`${Na.bottomitem} mb30`},aa.createElement("span",{className:Na.left},"\u96BE\u5EA6"),aa.createElement("span",{className:Na.right},(ie==null?void 0:ie.difficulty)===1?"\u7B80\u5355":(ie==null?void 0:ie.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),aa.createElement("div",{className:Na.bottomitem},aa.createElement("span",{className:Na.left},"\u77E5\u8BC6\u70B9"),aa.createElement(rt.Z,{title:((Nt=ie==null?void 0:ie.tag_discipline_names)==null?void 0:Nt.length)<=0||((Zn=ie==null?void 0:ie.tag_discipline_names)==null?void 0:Zn.length)==1&&["-"].includes(ie==null?void 0:ie.tag_discipline_names[0])?"\u6682\u672A\u8BBE\u7F6E~":(Rt=(sn=ie==null?void 0:ie.tag_discipline_names)==null?void 0:sn.join("\uFF1B"))==null?void 0:Rt.toString()},aa.createElement("span",{className:Na.right},((nr=ie==null?void 0:ie.tag_discipline_names)==null?void 0:nr.length)<=0?aa.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):((Kr=ie==null?void 0:ie.tag_discipline_names)==null?void 0:Kr.length)==1&&["-"].includes(ie==null?void 0:ie.tag_discipline_names[0])?aa.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):(Nr=(qa=ie==null?void 0:ie.tag_discipline_names)==null?void 0:qa.join("\uFF1B"))==null?void 0:Nr.toString())))))},Lu=ae(73256),Wu=ae(88637),Ll=ae(59301),ps=Object.defineProperty,ce=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,st=(ie,Se,he)=>Se in ie?ps(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,at=(ie,Se)=>{for(var he in Se||(Se={}))Ne.call(Se,he)&&st(ie,he,Se[he]);if(fe)for(var he of fe(Se))Ie.call(Se,he)&&st(ie,he,Se[he]);return ie},It=(ie,Se)=>ce(ie,ge(Se)),Ot=(ie,Se,he)=>new Promise((gt,bt)=>{var Qn=it=>{try{Xt(he.next(it))}catch(en){bt(en)}},bn=it=>{try{Xt(he.throw(it))}catch(en){bt(en)}},Xt=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,bn);Xt((he=he.apply(ie,Se)).next())}),Yn=({qitem:ie,setisedit:Se,TagDiscipline:he,exerciseitem:gt,seveeditor:bt,deleteitem:Qn,getTagData:bn,init:Xt,showTip:it=!1})=>{var en,ra,Bt,Lt;const[dt]=we.default.useForm(),{unified_ai_setting:xt,ai_review_settings:Pn}=gt==null?void 0:gt.exercise,Et=xt?Pn:((en=ie==null?void 0:ie.ai_review_settings)==null?void 0:en.length)>0?ie.ai_review_settings:Pn;return(0,b.useEffect)(()=>{dt.setFieldsValue(It(at({},ie),{name:ie.question_title,answer_texts:ie.answer_texts,repeat_answer:!ie.repeat_answer,ai_review_settings:Et}))},[ie]),Ll.createElement("div",null,Ll.createElement(we.default,{form:dt,colon:!1,onFinish:Ht=>{var Nt;(Nt=gt==null?void 0:gt.exercise)!=null&&Nt.is_open_ai_review&&!(0,pt.BR)(Ht==null?void 0:Ht.ai_review_settings)||bt(It(at(at({},ie),Ht),{answer_texts:Ht==null?void 0:Ht.answer_texts,question_title:Ht==null?void 0:Ht.name}))},onFinishFailed:Ht=>Ot(void 0,null,function*(){var Nt,Zn;Be.ZP.error(Ht.errorFields[0].errors[0]),dt.scrollToField((Zn=(Nt=Ht==null?void 0:Ht.errorFields)==null?void 0:Nt[0])==null?void 0:Zn.name,{behavior:"smooth",block:"center"})})},Ll.createElement("div",{style:{display:"flex",alignItems:"center"}},Ll.createElement("div",{style:{flex:1}},Ll.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Ll.createElement("span",null,"\u7B80\u7B54\u9898")),((ra=gt==null?void 0:gt.exercise)==null?void 0:ra.exercise_status)==1&&!(ie!=null&&ie.isadd)&&Ll.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Qn()}},Ll.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Ll.createElement(ke.ZP,{onClick:()=>{ie.isadd?(Se(!1),Xt()):(dt.setFieldsValue(It(at({},ie),{name:ie==null?void 0:ie.question_title,answer_texts:ie.answer_texts||[],repeat_answer:!(ie!=null&&ie.repeat_answer)})),Se(!1))}},"\u53D6\u6D88"),Ll.createElement(rt.Z,{overlayClassName:tt.shake,open:it,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Ll.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Ll.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")},Ll.createElement(ke.ZP,{type:"primary",className:"ml20",onClick:()=>{dt.submit()}},"\u4FDD\u5B58"))),Ll.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Ll.createElement(we.default.Item,{className:tt.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Ll.createElement(De.Z,{onBlur:Ht=>{Ht.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})),Ll.createElement(Wu.W,{form:dt,showKeywords:!0,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"}),((Bt=gt==null?void 0:gt.exercise)==null?void 0:Bt.is_open_ai_review)&&!((Lt=gt==null?void 0:gt.exercise)!=null&&Lt.unified_ai_setting)&&Ll.createElement(Sr,{form:dt,qitem:ie}),Ll.createElement(Ca,{getTagData:bn,qitem:ie,exerciseitem:gt,TagDiscipline:he,form:dt}))))},Qt=ae(59301),mn=(ie,Se,he)=>new Promise((gt,bt)=>{var Qn=it=>{try{Xt(he.next(it))}catch(en){bt(en)}},bn=it=>{try{Xt(he.throw(it))}catch(en){bt(en)}},Xt=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,bn);Xt((he=he.apply(ie,Se)).next())}),On=({setScoreShow:ie,ScoreShow:Se,exerciseitem:he,getdata:gt})=>{var bt,Qn,bn;const[Xt,it]=(0,b.useState)(!1);function en(){return mn(this,null,function*(){var Bt,Lt,dt;let xt=(Lt=(Bt=he==null?void 0:he.exercise_question_types)==null?void 0:Bt.filter(Et=>Et.Singlequestion))==null?void 0:Lt.map(Et=>({question_type:Et.question_type,score:Et.Singlequestion})),Pn=yield(0,te.ZP)(`/api/exercises/${(dt=he==null?void 0:he.exercise)==null?void 0:dt.id}/batch_set_score.json`,{method:"POST",body:{question_arr:xt}});(Pn==null?void 0:Pn.status)===0&>()})}const ra=Bt=>{if((Bt==null?void 0:Bt.name)!="\u5B9E\u8BAD\u9898")return!1;const Lt=Bt.items;for(const dt of Lt)for(const xt of dt.shixun)if(xt.challenge_test_set_score_rule==2)return!0;return!1};return Qt.createElement("div",null,Se&&Qt.createElement(Ue.default,{title:"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C",open:Se,width:640,centered:!0,zIndex:10,className:tt.scoremodal,onCancel:()=>{ie(!1)},onOk:()=>{var Bt,Lt,dt;if(he!=null&&he.use_blank_score&&((dt=(Lt=(Bt=he==null?void 0:he.exercise_question_types)==null?void 0:Bt.filter(xt=>xt.name==="\u586B\u7A7A\u9898"))==null?void 0:Lt[0])!=null&&dt.Singlequestion)){it(!0);return}en(),ie(!1)}},Qt.createElement("div",{className:"c-black"},"\u603B\u5206",Qt.createElement("span",{className:"ml10 c-light-primary"},(he==null?void 0:he.exercise_question_types.length)>0&&((bt=he==null?void 0:he.exercise_types)==null?void 0:bt.q_scores))),Qt.createElement("div",{className:tt.content},Qt.createElement("span",null,"\u9898\u578B\u540D\u79F0"),Qt.createElement("span",null,"\u5C0F\u9898\u603B\u6570"),Qt.createElement("span",null,"\u9898\u578B\u603B\u5206"),Qt.createElement("span",null,"\u64CD\u4F5C")),(bn=(Qn=he==null?void 0:he.exercise_question_types)==null?void 0:Qn.filter(Bt=>Bt.name!=="\u7EC4\u5408\u9898"))==null?void 0:bn.map(Bt=>{var Lt;return Qt.createElement("div",{className:tt.items},Qt.createElement("span",null,Bt==null?void 0:Bt.name),Qt.createElement("span",null,(Lt=Bt==null?void 0:Bt.items)==null?void 0:Lt.length),Qt.createElement("span",null,Bt==null?void 0:Bt.score),Qt.createElement("span",null,"\u6BCF\u9898",Qt.createElement(De.Z,{disabled:ra(Bt),max:100,precision:1,min:.1,onChange:dt=>{Bt.Singlequestion=dt},style:{width:90,height:38,margin:"0px 10px",display:"flex",alignItems:"center"}}),"\u5206"))})),Qt.createElement(Ue.default,{title:!1,footer:!1,centered:!0,zIndex:20,open:Xt,width:640,closable:!1,className:tt.scoremodal},Qt.createElement("div",{style:{marginTop:40}},"\u586B\u7A7A\u9898\u4E2D\u5B58\u5728",Qt.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"),Qt.createElement("div",{className:tt.bottom},Qt.createElement(ke.ZP,{className:tt.no,onClick:()=>{it(!1)}},"\u53D6\u6D88"),Qt.createElement(ke.ZP,{className:tt.yes,onClick:()=>{en(),it(!1),ie(!1)}},"\u786E\u8BA4"))))},Dt=ae(99313),un=ae(98228),Rn=ae(58421),oa={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"},Sa=ae(8418),cn={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 ka=["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 ha=({qitem:ie})=>{var Se,he,gt,bt,Qn,bn,Xt,it,en,ra;return b.createElement("div",{className:cn.warp},b.createElement("div",{className:cn.mainPart},b.createElement("div",{className:cn.qcount},(ie==null?void 0:ie.question_type)===8&&b.createElement(jt.Z,{className:cn.content,showProgramFill:!0,value:(Se=ie==null?void 0:ie.program_attr)==null?void 0:Se.description}),(ie==null?void 0:ie.question_type)!=8&&b.createElement(jt.Z,{className:cn.qtitle,value:(ie==null?void 0:ie.name)||(ie==null?void 0:ie.title)})),((ie==null?void 0:ie.question_type)===0||(ie==null?void 0:ie.question_type)===2)&&b.createElement("div",null,(he=ie==null?void 0:ie.choices)==null?void 0:he.map((Bt,Lt)=>b.createElement("div",{className:cn.redio},!(Bt!=null&&Bt.is_answer)&&b.createElement("span",{className:cn.redioitem}),(Bt==null?void 0:Bt.is_answer)&&b.createElement("i",{className:`${cn.redioitemyes} icon-duigou1`}),b.createElement(jt.Z,{className:Bt!=null&&Bt.is_answer?cn.titleyes:cn.title,value:ka[Lt]+(Bt==null?void 0:Bt.choice_text)}),(Bt==null?void 0:Bt.is_answer)&&b.createElement("div",{className:cn.yestag},"\u6B63\u786E\u7B54\u6848")))),(ie==null?void 0:ie.question_type)===1&&b.createElement("div",null,(gt=ie==null?void 0:ie.choices)==null?void 0:gt.map((Bt,Lt)=>b.createElement("div",{className:cn.checkbox},!(Bt!=null&&Bt.is_answer)&&b.createElement("span",{className:cn.checkboxitem}),(Bt==null?void 0:Bt.is_answer)&&b.createElement("i",{className:`${cn.checkboxitemyes} icon-duigou1`}),b.createElement(jt.Z,{className:Bt!=null&&Bt.is_answer?cn.titleyes:cn.title,value:ka[Lt]+(Bt==null?void 0:Bt.choice_text)}),(Bt==null?void 0:Bt.is_answer)&&b.createElement("div",{className:cn.yestag},"\u6B63\u786E\u7B54\u6848")))),(ie==null?void 0:ie.question_type)===3&&b.createElement("div",{className:cn.completion},(bt=ie==null?void 0:ie.standard_answer)==null?void 0:bt.map((Bt,Lt)=>{var dt;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:cn.title},"\u586B\u7A7A\u9879",Lt+1),b.createElement("div",{className:cn.content},(dt=Bt==null?void 0:Bt.answer_text)==null?void 0:dt.map((xt,Pn)=>b.createElement("div",{className:cn.items},xt))))})),(ie==null?void 0:ie.question_type)===4&&b.createElement("div",{className:cn.simple},b.createElement("div",{className:cn.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Qn=ie==null?void 0:ie.answer_texts)!=null&&Qn[0]?b.createElement(jt.Z,{className:cn.content,value:(bn=ie==null?void 0:ie.answer_texts)==null?void 0:bn[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(ie==null?void 0:ie.question_type)===5&&((Xt=ie==null?void 0:ie.challenge_names)==null?void 0:Xt.map((Bt,Lt)=>b.createElement("div",{className:cn.shixun},b.createElement("span",{className:cn.qtitle},b.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,pt.EM)(Lt+1),"\u9898"),Bt)))),(ie==null?void 0:ie.question_type)===6&&b.createElement("div",{className:cn.simple},b.createElement(jt.Z,{className:cn.content,value:((it=ie==null?void 0:ie.program_attr)==null?void 0:it.description)||"- -"})),(ie==null?void 0:ie.question_type)===7&&((en=ie==null?void 0:ie.sub_item_banks)==null?void 0:en.map((Bt,Lt)=>{var dt,xt,Pn,Et,Ht;return b.createElement("div",null,b.createElement("div",{className:cn.combination},b.createElement("span",{className:cn.qtitle},Bt==null?void 0:Bt.name)),b.createElement("div",{className:cn.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")&&((dt=Bt==null?void 0:Bt.choices)==null?void 0:dt.map((Nt,Zn)=>b.createElement("div",{className:cn.redio},!(Nt!=null&&Nt.is_answer)&&b.createElement("span",{className:cn.redioitem}),(Nt==null?void 0:Nt.is_answer)&&b.createElement("i",{className:`${cn.redioitemyes} icon-duigou1`}),b.createElement(jt.Z,{className:Nt!=null&&Nt.is_answer?cn.titleyes:cn.title,value:ka[Zn]+(Nt==null?void 0:Nt.choice_text)}),(Nt==null?void 0:Nt.is_answer)&&b.createElement("div",{className:cn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Bt==null?void 0:Bt.item_type)=="MULTIPLE"&&((xt=Bt==null?void 0:Bt.choices)==null?void 0:xt.map((Nt,Zn)=>b.createElement("div",{className:cn.checkbox},!(Nt!=null&&Nt.is_answer)&&b.createElement("span",{className:cn.checkboxitem}),(Nt==null?void 0:Nt.is_answer)&&b.createElement("i",{className:`${cn.checkboxitemyes} icon-duigou1`}),b.createElement(jt.Z,{className:Nt!=null&&Nt.is_answer?cn.titleyes:cn.title,value:ka[Zn]+(Nt==null?void 0:Nt.choice_text)}),(Nt==null?void 0:Nt.is_answer)&&b.createElement("div",{className:cn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Bt==null?void 0:Bt.item_type)=="COMPLETION"&&b.createElement("div",{className:cn.completion},(Pn=Bt==null?void 0:Bt.standard_answer)==null?void 0:Pn.map((Nt,Zn)=>{var sn;return b.createElement("div",{style:{display:"flex"}},b.createElement("span",{className:cn.title},"\u586B\u7A7A\u9879",Zn+1),b.createElement("div",{className:cn.content},(sn=Nt==null?void 0:Nt.answer_text)==null?void 0:sn.map((Rt,nr)=>b.createElement("div",{className:cn.items},Rt))))})),(Bt==null?void 0:Bt.item_type)=="SUBJECTIVE"&&b.createElement("div",{className:cn.simple},b.createElement("div",{className:cn.title},"\u53C2\u8003\u7B54\u6848"),b.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Et=Bt==null?void 0:Bt.answer_texts)!=null&&Et[0]?b.createElement(jt.Z,{className:cn.content,value:(Ht=Bt==null?void 0:Bt.answer_texts)==null?void 0:Ht[0]}):b.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(ie==null?void 0:ie.question_type)===8&&b.createElement("div",null,b.createElement(jt.Z,{disabledFill:!0,className:cn.content,showProgramFill:!0,value:zi.Base64.decode(((ra=ie==null?void 0:ie.program_attr)==null?void 0:ra.code)||"")})),(ie==null?void 0:ie.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"}},(ie==null?void 0:ie.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"}},(ie==null?void 0:ie.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"}},(ie==null?void 0:ie.study_count)||"0"))),b.createElement("a",{className:cn.shixunbutton,href:`/shixuns/${ie==null?void 0:ie.identifier}/challenges?exercise=true`,target:"_blank"},b.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((ie==null?void 0:ie.question_type)<=4||[6,8].includes(ie==null?void 0:ie.question_type))&&b.createElement("div",{className:cn.bottom},b.createElement("div",{className:cn.bottomitem},b.createElement("span",{className:cn.left},"\u89E3\u6790"),b.createElement("span",{className:cn.right},ie!=null&&ie.analysis?b.createElement(jt.Z,{value:ie==null?void 0:ie.analysis}):b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),b.createElement("div",{className:cn.bottomitem},b.createElement("span",{className:cn.left},"\u96BE\u5EA6"),b.createElement("span",{className:cn.right},(ie==null?void 0:ie.difficulty)===1?"\u7B80\u5355":(ie==null?void 0:ie.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),b.createElement("div",{className:cn.bottomitem},b.createElement("span",{className:cn.left},"\u77E5\u8BC6\u70B9"),b.createElement("span",{className:cn.right},ie!=null&&ie.tag_discipline?ie==null?void 0:ie.tag_discipline:b.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},Xr=ae(95006),Ar=ae(42128),Yr=ae(33008),so=ae(70659),Fo=ae(93758),xo=ae(40886),ll=ae(95382),jn=ae(59301),co=Object.defineProperty,Po=Object.defineProperties,jo=Object.getOwnPropertyDescriptors,Zo=Object.getOwnPropertySymbols,Bo=Object.prototype.hasOwnProperty,$o=Object.prototype.propertyIsEnumerable,bl=(ie,Se,he)=>Se in ie?co(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Zr=(ie,Se)=>{for(var he in Se||(Se={}))Bo.call(Se,he)&&bl(ie,he,Se[he]);if(Zo)for(var he of Zo(Se))$o.call(Se,he)&&bl(ie,he,Se[he]);return ie},el=(ie,Se)=>Po(ie,jo(Se)),No=(ie,Se,he)=>new Promise((gt,bt)=>{var Qn=it=>{try{Xt(he.next(it))}catch(en){bt(en)}},bn=it=>{try{Xt(he.throw(it))}catch(en){bt(en)}},Xt=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,bn);Xt((he=he.apply(ie,Se)).next())});const Ml=({setScoreShow:ie,ScoreShow:Se,onOk:he,isshixuns:gt,isloadings:bt,dispatch:Qn,shixunsDetail:bn,exercise:Xt,SpecificDifficulty:it=!1})=>{var en,ra,Bt,Lt;let[dt,xt]=(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:[]}),[Pn,Et]=(0,b.useState)([]),[Ht,Nt]=(0,b.useState)([]),[Zn,sn]=(0,b.useState)([]),[Rt,nr]=(0,b.useState)([]);const[Kr,qa]=(0,b.useState)(!1),[Nr]=we.default.useForm(),[Jn,_r]=(0,b.useState)(),[lo,Do]=(0,b.useState)(!1);let[Ir,Lo]=(0,b.useState)(gt);const[Io,Al]=(0,b.useState)([]),[Nn,fl]=(0,b.useState)(!0),[xl,ko]=(0,b.useState)([]),[Hn,Bl]=(0,b.useState)(0),[zl,Jl]=(0,b.useState)([]),Wl=[{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}],[Ql,vl]=(0,b.useState)({});let[Qi,Ni]=(0,b.useState)([]);(0,b.useEffect)(()=>{var _t,zn,Jr,Br,Rr,fo,Wo,vo,fi,kl;(((Jr=(zn=(_t=Xt==null?void 0:Xt.editData)==null?void 0:_t.exercise)==null?void 0:zn.exist_item_bank_ids)==null?void 0:Jr.length)>0||((fo=(Rr=(Br=Xt==null?void 0:Xt.editData)==null?void 0:Br.exercise)==null?void 0:Rr.exist_item_bank_shixun_ids)==null?void 0:fo.length)>0)&&Jl([...(vo=(Wo=Xt==null?void 0:Xt.editData)==null?void 0:Wo.exercise)==null?void 0:vo.exist_item_bank_ids,...(kl=(fi=Xt==null?void 0:Xt.editData)==null?void 0:fi.exercise)==null?void 0:kl.exist_item_bank_shixun_ids])},[(ra=(en=Xt==null?void 0:Xt.editData)==null?void 0:en.exercise)==null?void 0:ra.exist_item_bank_ids]);const ai=(0,b.useRef)(new Set),Ho=(0,b.useRef)(new Set);let[al,Xl]=(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 Hr=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Uo=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],yl=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[wl,Ul]=(0,b.useState)(!1),mi=()=>{Nr.resetFields(),Ir=!1,Lo(!1),Ul(!1),Nr.submit()};(0,b.useEffect)(()=>{Hn>0&&setTimeout(()=>{Bl(0)},2e3)},[Hn]),(0,b.useEffect)(()=>{Se&&(Nr.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null}),Nn&&Ir&&(Nr.setFieldsValue({item_type:"SHIXUN"}),dt.item_type="SHIXUN",it&&(Nr.setFieldsValue({diff:it}),dt.diff=it),xt(Zr({},dt)),fl(!1)),cl(dt),ui(),Pi({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Zi())},[Se]);function cl(_t){return No(this,null,function*(){var zn,Jr,Br;if(qa(!0),xt(_t),(Zn==null?void 0:Zn.length)<=0&&_t.type==="5"){nr([]),qa(!1);return}let Rr=_t.type==="5"?Zn==null?void 0:Zn.filter(vo=>!Io.includes(vo)):null,fo=_t.type==="5"?Zn==null?void 0:Zn.filter(vo=>Io.includes(vo)):null,Wo=yield(0,te.ZP)("/api/item_banks.json",{method:"get",params:el(Zr({},_t),{discipline_id:((zn=_t==null?void 0:_t.courseid)==null?void 0:zn[0])||null,sub_discipline_id:((Jr=_t==null?void 0:_t.courseid)==null?void 0:Jr[1])||null,ids:Rr,shixun_ids:fo,group_id:((Br=_t.group_id)==null?void 0:Br.map(vo=>vo==null?void 0:vo.value))||null,keyword:_t.keyword?encodeURIComponent(_t.keyword):_t.keyword,include_shixuns:!0,type:_t.type==="5"?null:_t.type,clazz:_t.type==="3"?"ItemBanksGroup":null})});nr(Wo),qa(!1)})}function Zi(){return No(this,null,function*(){let _t=yield(0,te.ZP)("/api/users/vrs_subject_names.json",{method:"Get"});(_t==null?void 0:_t.status)==0&&Ni(_t==null?void 0:_t.names)})}function Pi(_t){return No(this,null,function*(){var zn;let Jr=yield(0,te.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:_t}),Br=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(zn=Jr==null?void 0:Jr.data)==null?void 0:zn.map(Rr=>({title:Rr.name,id:Rr.id,pid:Rr.id,value:Rr.id,key:Rr.id,isLeaf:!Rr.have_child}))}];ko(Br)})}function ui(){return No(this,null,function*(){let _t=yield(0,te.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:dt.type==="5"?null:dt.type,clazz:"ItemBanksGroup"}});Et((0,Sa.L)(_t==null?void 0:_t.disciplines))})}function pl(_t){return No(this,null,function*(){var zn,Jr,Br,Rr;qa(!0);let fo=(zn=_t.list)==null?void 0:zn.filter(fi=>!Io.includes(fi)),Wo=(Jr=_t.list)==null?void 0:Jr.filter(fi=>Io.includes(fi));if(fo.length===0&&Wo.length===0){qa(!1),nr([]);return}let vo=yield(0,te.ZP)("/api/item_banks.json",{method:"get",params:el(Zr({},_t),{discipline_id:((Br=_t==null?void 0:_t.courseid)==null?void 0:Br[0])||null,sub_discipline_id:((Rr=_t==null?void 0:_t.courseid)==null?void 0:Rr[1])||null,ids:fo,shixun_ids:Wo,type:_t.type==="5"?null:_t.type,clazz:_t.type==="3"?"ItemBanksGroup":null})});qa(!1),nr(vo)})}const Ui=(0,Ee.useParams)(),[Gi,zo,yu,Fu]=(0,Yr.P)(),tu=_t=>No(void 0,null,function*(){const zn=yield Qn({type:"shixunsDetail/release",payload:{id:_t}});let Jr=zn==null?void 0:zn.tag_position,Br=(zn==null?void 0:zn.evaluation_set_position)||[],Rr=zn.status;return Rr===0?(Be.ZP.success("\u53D1\u5E03\u6210\u529F"),cl(dt),!0):(Rr===2?Be.ZP.error(`\u7B2C${Br.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):Rr===3?Be.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${Jr.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)}),Ai=_t=>(_t==null?void 0:_t.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",Yi=(_t,zn,Jr)=>_t.map(Br=>Br.key===zn?Zr(Zr({},Br),Jr):Br.children?el(Zr({},Br),{children:Yi(Br.children,zn,Jr)}):Br),Nu=_t=>No(void 0,null,function*(){const{key:zn}=_t;let Jr=dt.type;const Br=yield(0,Fo.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(zn),type:Jr}),{data:Rr,total_count:fo}=Br||{};fo>0&&ko(Wo=>Yi(Wo,zn,{children:Rr.map(vo=>({title:vo.name,id:vo.id,pid:vo.id,value:vo.id,key:vo.id,isLeaf:!vo.have_child}))}))});function Cu(_t){console.log("----",dt),_t==="1"&&(al.gg=Zr({},dt)),_t==="2"&&(al.scj=Zr({},dt)),_t==="3"&&(al.ttgx=Zr({},dt)),_t==="0"&&(al.wcjd=Zr({},dt)),_t==="5"&&(al.yx=Zr({},dt)),Xl(Zr({},al))}function yi(){dt.type==="1"&&(dt=al.gg),dt.type==="2"&&(dt=al.scj),dt.type==="3"&&(dt=al.ttgx),dt.type==="0"&&(dt=al.wcjd),dt.type==="5"&&(dt=al.yx),(dt==null?void 0:dt.item_type)==="SHIXUN"?(Ir=!0,Lo(!0)):(Ir=!1,Lo(!1)),Nr.setFieldsValue(Zr({},dt)),xt(Zr({},dt)),cl(Zr({},dt))}return jn.createElement("div",null,jn.createElement(Ue.default,{title:!1,footer:!1,open:Se,width:1360,centered:!0,className:oa.scoremodal,onCancel:()=>{ie(!1)}},jn.createElement("div",{style:{display:"flex",alignItems:"center"}},jn.createElement("div",{className:oa.title},"\u9898\u5E93\u9009\u9898")),jn.createElement(Dt.default,{className:oa.tabWrap,activeKey:dt.type,onChange:_t=>{_t==="3"?(dt.show_all_share=!0,Pi({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):dt.show_all_share=null,_t==="0"&&Pi({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Cu(dt.type),dt.type=_t,(dt==null?void 0:dt.item_type)==="SHIXUN"&&dt.type!=="5"&&(Ir=!0,Lo(!0)),Ul(!1),dt.type==="5"&&(Ir=!1,Lo(!1)),yi(),ui()},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:jn.createElement("div",null,"\u5DF2\u9009",Zn.length>0&&jn.createElement("span",{className:oa.titlecount},Zn.length),Hn>0&&jn.createElement("span",{className:oa.add},"+",Hn)),key:"5"}]}),jn.createElement(we.default,{layout:"inline",form:Nr,onValuesChange:(_t,zn)=>{var Jr,Br;const Rr=Object.values(zn).some(Wo=>Wo!==null&&Wo!==""&&Wo!==void 0),fo=zn.keyword==="";if(Ul(Rr||!fo),dt.page=1,dt.keyword=(Br=(Jr=dt.keyword)==null?void 0:Jr.replace)==null?void 0:Br.call(Jr,/^\s+|\s+$/g,""),(zn==null?void 0:zn.item_type)==="SHIXUN"){if(dt.type==="5"?(it&&(_t==null?void 0:_t.item_type)==="SHIXUN"&&Nr.setFieldsValue({difficulty:it}),Lo(!1)):(it&&(_t==null?void 0:_t.item_type)==="SHIXUN"&&Nr.setFieldsValue({diff:it}),Lo(!0)),_t.keyword||_t.keyword==="")return;setTimeout(()=>{Nr.submit()},0)}else{if(_t!=null&&_t.courseid&&Nr.setFieldsValue({tag_discipline_id:""}),Lo(!1),_t.keyword||_t.keyword==="")return;Nr.submit()}},onFinish:_t=>{var zn;dt.type==="3"&&(!_t.group_id||((zn=_t==null?void 0:_t.group_id)==null?void 0:zn.length)===0)?dt.show_all_share=!0:dt.show_all_share=null,xt(Zr(Zr({},dt),_t)),cl(Zr(Zr({},dt),_t))}},jn.createElement(we.default.Item,{name:"item_type"},jn.createElement(Pe.default,{className:oa.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle",allowClear:!0},Wl.map(_t=>jn.createElement(Pe.default.Option,{key:_t.value},_t.name)))),jn.createElement(we.default.Item,{name:"courseid"},jn.createElement(xe.Z,{className:oa.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:Pn})),!Ir&&jn.createElement(we.default.Item,{name:"tag_discipline_id"},jn.createElement(Pe.default,{className:oa.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(Bt=Rt==null?void 0:Rt.tag_disciplines)==null?void 0:Bt.map(_t=>jn.createElement(Pe.default.Option,{key:_t.id},_t.name)))),Ir&&jn.createElement(we.default.Item,{name:"vrs_name"},jn.createElement(Pe.default,{className:oa.selectWrapper,placeholder:"\u79D1\u76EE",style:{width:118},size:"middle",allowClear:!0},(Lt=[{id:"",name:"\u5168\u90E8"},...(Qi==null?void 0:Qi.map(_t=>({id:_t,name:_t})))||[]])==null?void 0:Lt.map(_t=>jn.createElement(Pe.default.Option,{key:_t.id},_t.name)))),jn.createElement(we.default.Item,{name:Ir?"diff":"difficulty"},jn.createElement(Pe.default,{className:oa.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!Ir&&Hr.map(_t=>jn.createElement(Pe.default.Option,{value:_t.value,key:_t.value},_t.name)),Ir&&Uo.map(_t=>jn.createElement(Pe.default.Option,{value:_t.value,key:_t.value},_t.name)))),Ir&&jn.createElement(we.default.Item,{name:"shixun_publish_status"},jn.createElement(Pe.default,{className:oa.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},yl.map(_t=>jn.createElement(Pe.default.Option,{key:_t.value},_t.name)))),(dt.type==="3"||dt.type==="0")&&!Ir&&jn.createElement(we.default.Item,{name:"group_id"},jn.createElement(un.default,{treeDataSimpleMode:!0,style:{width:118},className:oa.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(_t,zn)=>zn.title.toUpperCase().indexOf(_t.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:Nu,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:xl})),wl&&jn.createElement("span",{className:oa.allqingchu,onClick:mi},jn.createElement("i",{className:"iconfont icon-guanbi4"}),jn.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),jn.createElement(we.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},jn.createElement(We.default.Search,{className:oa.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:jn.createElement("i",{className:`iconfont icon-sousuo9 font14 ${oa.searchIcon}`,onClick:()=>Nr.submit()}),onSearch:_t=>{Nr.submit()}}))),jn.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},jn.createElement("div",{onClick:()=>{dt.updated_at==="asc"?dt.updated_at="desc":dt.updated_at="asc",xt(el(Zr({},dt),{page:1})),cl(el(Zr({},dt),{page:1}))}}," ",dt.updated_at?jn.createElement("img",{src:dt.updated_at==="asc"?Xr.Z:Ar.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):jn.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),jn.createElement("div",{onClick:()=>{dt.quotes==="asc"?dt.quotes="desc":dt.quotes="asc",xt(el(Zr({},dt),{page:1})),cl(el(Zr({},dt),{page:1}))},style:{marginLeft:20}}," ",dt.quotes?jn.createElement("img",{src:dt.quotes==="asc"?Xr.Z:Ar.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):jn.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),jn.createElement(Xu.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Rt==null?void 0:Rt.items)||(Rt==null?void 0:Rt.shixun_list),pagination:!1,loading:Kr,rowKey:_t=>_t.id,rowSelection:{type:"checkbox",selectedRowKeys:[...Ht,...zl],getCheckboxProps:_t=>({disabled:_t.shixun_tag_num===1||(zl==null?void 0:zl.find(zn=>_t.id===zn))}),onSelect(_t,zn,Jr){if(console.log("---",Jr,zn,_t),zn)(Ir||_t!=null&&_t.challenge_names)&&Al([...Io,_t.id]),Nt([...Ht,_t.id]),_t.identifier?ai.current.add(_t.id):Ho.current.add(_t.id),Bl(1),sn([...Zn,_t.id]);else{_t.identifier?ai.current.delete(_t.id):Ho.current.delete(_t.id);let Br=Zn.filter(Rr=>Rr!==_t.id);if(Nt(Br),sn(Br),Ir||_t!=null&&_t.challenge_names){let Rr=Io.filter(fo=>fo!==_t.id);Al([...Rr])}if(dt.type==="5"){pl(el(Zr({},dt),{list:[...Br]}));return}}},onSelectAll(_t,zn,Jr){var Br,Rr;if(console.log("----",Jr),_t){const fo=Jr.map(vo=>vo.id),Wo=(Rr=Jr==null?void 0:Jr.filter(vo=>vo==null?void 0:vo.challenge_names))==null?void 0:Rr.map(vo=>vo.id);Al([...Io,...Wo]),Nt([...Ht,...fo]),sn([...Zn,...fo]);for(const vo of Jr)vo.identifier?ai.current.add(vo.id):Ho.current.add(vo.id)}else{const fo=Jr.map(kl=>kl.id),Wo=Ht.filter(kl=>!fo.some(bu=>bu===kl)),vo=(Br=Jr==null?void 0:Jr.filter(kl=>kl==null?void 0:kl.challenge_names))==null?void 0:Br.map(kl=>kl.id);Nt([...Wo]),sn([...Wo]);let fi=Io.filter(kl=>!vo.some(bu=>bu===kl.id));Al([...fi]),dt.type==="5"&&pl(el(Zr({},dt),{list:[...Wo]}));for(const kl of fo)kl.identifier?ai.current.delete(kl):Ho.current.delete(kl)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(_t,zn,Jr)=>{var Br,Rr;return jn.createElement(rt.Z,{title:Ai(zn)},jn.createElement("div",null,Ir||zn!=null&&zn.challenge_names?"\u5B9E\u8BAD\u9898":(Rr=(Br=Wl==null?void 0:Wl.filter(fo=>fo.value===_t))==null?void 0:Br[0])==null?void 0:Rr.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:Ir?"30%":"60%",key:"name",render:(_t,zn,Jr)=>{var Br;return jn.createElement("div",{style:{display:"flex",alignItems:"center"}},jn.createElement(rt.Z,{title:Ai(zn)},jn.createElement("span",null,jn.createElement(jt.Z,{key:1,showLines:1,showTextOnly:!0,value:Ir||zn!=null&&zn.challenge_names?zn!=null&&zn.title||_t===null?"--":_t:(zn==null?void 0:zn.item_type)=="BPROGRAM"?(Br=zn==null?void 0:zn.program_attr)==null?void 0:Br.description:_t}))),(zn==null?void 0:zn.high_resources_consume)&&jn.createElement(so.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!Ir,render:(_t,zn,Jr)=>{var Br;return jn.createElement(rt.Z,{title:Ai(zn)},jn.createElement("span",null,_t?(Br=_t==null?void 0:_t.split("\u3001"))==null?void 0:Br[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!Ir,render:(_t,zn,Jr)=>jn.createElement(rt.Z,{title:Ai(zn)},jn.createElement("span",null,_t||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(_t,zn,Jr)=>{var Br,Rr,fo,Wo;return jn.createElement(rt.Z,{title:Ai(zn)},jn.createElement("div",null,Ir||zn!=null&&zn.challenge_names?(zn==null?void 0:zn.level)||((Rr=(Br=Hr==null?void 0:Hr.filter(vo=>vo.value===_t))==null?void 0:Br[0])==null?void 0:Rr.name):(Wo=(fo=Hr==null?void 0:Hr.filter(vo=>vo.value===_t))==null?void 0:fo[0])==null?void 0:Wo.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!Ir,render:(_t,zn,Jr)=>jn.createElement(rt.Z,{title:Ai(zn)},jn.createElement("div",null,_t||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(_t,zn,Jr)=>jn.createElement(rt.Z,{title:Ai(zn)},jn.createElement("div",null,Ir||zn!=null&&zn.challenge_names?(zn==null?void 0:zn.study_count)||(zn==null?void 0:zn.stu_num):_t))},{title:jn.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",jn.createElement(rt.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},jn.createElement(En.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!Ir,render:(_t,zn,Jr)=>jn.createElement(rt.Z,{title:Ai(zn)},jn.createElement("div",null,_t||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(_t,zn,Jr)=>jn.createElement(rt.Z,{title:Ai(zn)},jn.createElement("div",{style:{flex:1,textAlign:"start"}},jn.createElement("a",{onClick:()=>{var Br,Rr;_r(el(Zr({},zn),{question_type:Ir||zn!=null&&zn.challenge_names?5:(Rr=(Br=Wl==null?void 0:Wl.filter(fo=>fo.value===(zn==null?void 0:zn.item_type)))==null?void 0:Br[0])==null?void 0:Rr.question_type})),Do(!0)}},"\u67E5\u770B"),(zn==null?void 0:zn.shixun_tag_num)===1&&jn.createElement("a",{style:{marginLeft:10},onClick:()=>{Ue.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:jn.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",jn.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${zn==null?void 0:zn.identifier}/challenges`)}},(zn==null?void 0:zn.shixun_name)||"--"),"\uFF1F"),onOk:()=>No(void 0,null,function*(){if(!tu(zn==null?void 0:zn.identifier))return new Promise((Br,Rr)=>{Rr()})})})}},"\u53D1\u5E03")))}].filter(_t=>!_t.hidden)}),jn.createElement(Rn.Z,{current:dt.page,total:(Rt==null?void 0:Rt.items_count)||(Rt==null?void 0:Rt.shixuns_count),style:{marginBottom:20},defaultPageSize:dt.per_page,showTotal:_t=>jn.createElement("span",null,"\u5171\xA0",jn.createElement("span",{style:{color:"#165DFF"}},_t),"\xA0\u6761\u6570\u636E"),pageSize:dt.per_page,onChange:(_t,zn)=>{dt.page=_t,dt.per_page=zn,xt(Zr({},dt)),cl(Zr({},dt))}}),jn.createElement("div",{className:oa.bottom},jn.createElement(ke.ZP,{className:oa.no,onClick:()=>{ie(!1)}},"\u53D6\u6D88"),jn.createElement(ke.ZP,{loading:bt,style:{width:bt&&75},className:oa.yes,onClick:()=>No(void 0,null,function*(){if((Zn==null?void 0:Zn.length)<=0){Be.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}let _t=yield(0,ll.Tr)({id:[...Zn==null?void 0:Zn.filter(zn=>Io.includes(zn))],course_id:Ui.coursesId,type:"shixun"});(_t==null?void 0:_t.student_count)===0?he([...Ho.current],[...Zn==null?void 0:Zn.filter(zn=>Io.includes(zn))],!0,Zn==null?void 0:Zn.length):vl(_t)})},"\u786E\u8BA4"))),jn.createElement(Ue.default,{open:lo,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:oa.previewModal,width:1e3,centered:!0,onCancel:()=>{Do(!1)},onOk:()=>{Do(!1)}},jn.createElement(ha,{qitem:Jn})),jn.createElement(xo.Z,{resdata:Ql,type:"exercise",okloading:bt,oktext:(Ql==null?void 0:Ql.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:_t=>No(void 0,null,function*(){const zn=[],Jr=[];for(const Br of Ql==null?void 0:Ql.can_copy_list)zn.push(Br.id);zo(),yield he([...Ho.current],[...ai.current].filter(Br=>!Jr.includes(Br)),!0,Zn==null?void 0:Zn.length,zn)})}))};var il=(0,Ee.connect)(({shixunsDetail:ie,exercise:Se})=>({shixunsDetail:ie,exercise:Se}))(Ml),Pl=ae(94827),wo=ae(59301),Vl=Object.defineProperty,Nl=Object.defineProperties,$l=Object.getOwnPropertyDescriptors,ii=Object.getOwnPropertySymbols,mo=Object.prototype.hasOwnProperty,ul=Object.prototype.propertyIsEnumerable,tl=(ie,Se,he)=>Se in ie?Vl(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Xo=(ie,Se)=>{for(var he in Se||(Se={}))mo.call(Se,he)&&tl(ie,he,Se[he]);if(ii)for(var he of ii(Se))ul.call(Se,he)&&tl(ie,he,Se[he]);return ie},El=(ie,Se)=>Nl(ie,$l(Se)),gl=(ie,Se,he)=>new Promise((gt,bt)=>{var Qn=it=>{try{Xt(he.next(it))}catch(en){bt(en)}},bn=it=>{try{Xt(he.throw(it))}catch(en){bt(en)}},Xt=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,bn);Xt((he=he.apply(ie,Se)).next())}),xi=({qitem:ie,TagDiscipline:Se,exerciseitem:he,setisedit:gt,seveeditor:bt,deleteitem:Qn,getTagData:bn,init:Xt,showTip:it=!1})=>{var en;const[ra]=we.default.useForm(),Bt=!0;return(0,b.useEffect)(()=>{var Lt,dt,xt;ra.setFieldsValue(El(Xo({},ie),{standard_answers:ie.standard_answer,difficulty:(ie==null?void 0:ie.difficult)||2,item_banks_group_id:ie.item_banks_group_id,hack:El(Xo({},ie),{time_limit:(ie==null?void 0:ie.time_limit)||3}),hack_codes:{language:(Lt=ie==null?void 0:ie.program_attr)==null?void 0:Lt.language,code:zi.Base64.decode(((dt=ie==null?void 0:ie.program_attr)==null?void 0:dt.code)||"")},hack_sets:Xo({},(xt=ie==null?void 0:ie.hack_sets)==null?void 0:xt[0]),repeat_answer:!ie.repeat_answer}))},[ie]),wo.createElement("div",null,wo.createElement(we.default,{form:ra,colon:!1,onValuesChange:(Lt,dt)=>{var xt,Pn,Et,Ht;if(Lt!=null&&Lt.standard_answers){let Nt=((xt=ra.getFieldValue("standard_answers"))==null?void 0:xt.length)>0&&((Et=(Pn=ra.getFieldValue("standard_answers"))==null?void 0:Pn.map(Zn=>Zn.score))==null?void 0:Et.filter(Zn=>Zn));(Nt==null?void 0:Nt.length)>0&&ra.setFieldsValue({question_score:(Nt==null?void 0:Nt.length)>0&&((Ht=Nt.reduce((Zn,sn)=>Zn+sn))==null?void 0:Ht.toFixed(1))})}},onFinish:Lt=>{var dt;bt(El(Xo(Xo({},ie),Lt),{item_type:ie==null?void 0:ie.question_type,standard_answers:(dt=Lt.standard_answers)==null?void 0:dt.map((xt,Pn)=>El(Xo({},xt),{position:Pn+1})),hack_codes:El(Xo({},Lt.hack_codes),{code:zi.Base64.encode(Lt.hack_codes.code)}),standard_answer:void 0}))},onFinishFailed:Lt=>gl(void 0,null,function*(){var dt,xt;Be.ZP.error(Lt.errorFields[0].errors[0]),ra.scrollToField((xt=(dt=Lt==null?void 0:Lt.errorFields)==null?void 0:dt[0])==null?void 0:xt.name,{behavior:"smooth",block:"center"})})},wo.createElement("div",{style:{display:"flex",alignItems:"center"}},wo.createElement("div",{style:{flex:1}},wo.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),wo.createElement("span",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898")),((en=he==null?void 0:he.exercise)==null?void 0:en.exercise_status)==1&&!(ie!=null&&ie.isadd)&&wo.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Qn()}},wo.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}})," \u5220\u9664"),wo.createElement(ke.ZP,{onClick:()=>{var Lt,dt,xt,Pn;ie.isadd?(gt(!1),Xt()):(ra.setFieldsValue(El(Xo({},ie),{standard_answers:ie.standard_answer,difficulty:ie.difficult,item_banks_group_id:ie.item_banks_group_id,hack:El(Xo({},ie),{sub_discipline_id:(Lt=he==null?void 0:he.exercise)==null?void 0:Lt.sub_discipline_id,tag_discipline_ids:[]}),hack_codes:{language:(dt=ie==null?void 0:ie.program_attr)==null?void 0:dt.language,code:zi.Base64.decode((xt=ie==null?void 0:ie.program_attr)==null?void 0:xt.code)},hack_sets:Xo({},(Pn=ie==null?void 0:ie.hack_sets)==null?void 0:Pn[0]),repeat_answer:!ie.repeat_answer})),gt(!1))}},"\u53D6\u6D88"),wo.createElement(rt.Z,{overlayClassName:tt.shake,open:it,placement:"bottom",color:"rgba(244,156,14,0.19)",title:wo.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},wo.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")},wo.createElement(ke.ZP,{className:"ml20",type:"primary",onClick:()=>{ra.submit()}},"\u4FDD\u5B58"))),wo.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},wo.createElement(vn.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}),wo.createElement(Pl.t,{form:ra,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7A0B\u5E8F\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:Bt,hackidentifier:ie==null?void 0:ie.hack_identifier,answerKey:"standard_answers"}),wo.createElement(Ca,{getTagData:bn,qitem:ie,exerciseitem:he,TagDiscipline:Se,form:ra}))))},Ei=ae(41510),Yl=ae(99530),Si=ae(48924),cu=ae(78267),lu=ae(57466),Hl=ae(30561),Fn=ae(59301),Kl=Object.defineProperty,iu=Object.defineProperties,Mi=Object.getOwnPropertyDescriptors,ei=Object.getOwnPropertySymbols,ml=Object.prototype.hasOwnProperty,ti=Object.prototype.propertyIsEnumerable,wi=(ie,Se,he)=>Se in ie?Kl(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Sl=(ie,Se)=>{for(var he in Se||(Se={}))ml.call(Se,he)&&wi(ie,he,Se[he]);if(ei)for(var he of ei(Se))ti.call(Se,he)&&wi(ie,he,Se[he]);return ie},Il=(ie,Se)=>iu(ie,Mi(Se)),Co=(ie,Se,he)=>new Promise((gt,bt)=>{var Qn=it=>{try{Xt(he.next(it))}catch(en){bt(en)}},bn=it=>{try{Xt(he.throw(it))}catch(en){bt(en)}},Xt=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,bn);Xt((he=he.apply(ie,Se)).next())});const{confirm:Di}=Ue.default,dl=[{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"}],_l=({user:ie,dispatch:Se,itemid:he,setisedits:gt,exercise:bt,setitemid:Qn})=>{var bn,Xt,it,en,ra,Bt,Lt,dt,xt,Pn,Et,Ht,Nt,Zn,sn,Rt,nr,Kr,qa,Nr,Jn,_r,lo,Do,Ir,Lo,Io,Al;const[Nn,fl]=(0,b.useState)(),[xl,ko]=(0,b.useState)(!1),[Hn,Bl]=(0,b.useState)(),[zl,Jl]=(0,b.useState)(),Wl=(0,b.useRef)(),Ql=(0,b.useRef)(),[vl,Qi]=(0,b.useState)(),[Ni,ai]=(0,b.useState)(!1),[Ho,al]=(0,b.useState)(!1),[Xl,Hr]=(0,b.useState)(),[Uo,yl]=(0,b.useState)(!1),[wl,Ul]=(0,b.useState)(!1),[mi,cl]=(0,b.useState)(!1),[Zi,Pi]=(0,b.useState)(!1),[ui,pl]=(0,b.useState)(!1),[Ui,Gi]=(0,b.useState)(!1),zo=(0,Ee.useParams)(),[yu,Fu]=(0,b.useState)(!1),[tu]=we.default.useForm(),[Ai,Yi]=(0,b.useState)(!1),[Nu,Cu]=(0,b.useState)(!1),[yi,_t]=(0,b.useState)(!1),[zn,Jr]=(0,b.useState)(!1),Br=(0,b.useRef)();(0,b.useEffect)(()=>{he&&fo()},[he]),(0,b.useEffect)(()=>{gt(Ho)},[Ho]),(0,b.useEffect)(()=>{Hn!=null&&Hn.question_id&&(Jl(Hn==null?void 0:Hn.question_score),Ql.current=Hn==null?void 0:Hn.question_id)},[Hn]);const Rr=ea=>Co(void 0,null,function*(){let lr=yield Se({type:"newExercisePaper/getTagDiscipline",payload:{sub_discipline_id:ea}});Se({type:"globalSetting/footerToggle",payload:!1}),Hr(lr)});function fo(){return Co(this,null,function*(){var ea,lr,qr,io,po,zr;ai(!0),ko(!0);const ho=yield Se({type:"exercise/editExercise",payload:{categoryId:he}});ai(!1),ko(!1),fl(ho),pl(!1),(ea=ho==null?void 0:ho.exercise)!=null&&ea.sub_discipline_id&&Rr((lr=ho==null?void 0:ho.exercise)==null?void 0:lr.sub_discipline_id),Bl(Il(Sl({},(po=(io=(qr=ho==null?void 0:ho.exercise_question_types)==null?void 0:qr[0])==null?void 0:io.items)==null?void 0:po[0]),{index:1})),Qi(Il(Sl({},(zr=ho==null?void 0:ho.exercise_question_types)==null?void 0:zr[0]),{indexs:1}))})}function Wo(ea,lr=!0){return Co(this,null,function*(){var qr,io,po,zr;lr&&(ai(!0),ko(!0));const ho=yield Se({type:"exercise/editExercise",payload:{categoryId:he}});fl(ho);let Yo=[];(qr=ho==null?void 0:ho.exercise_question_types)==null||qr.map(Wr=>{var Ko;(Ko=Wr==null?void 0:Wr.items)==null||Ko.map((Ji,vi)=>{Yo.push(Il(Sl({},Ji),{index:vi+1}))})});let Vr=(io=Yo.filter(Wr=>Wr.question_id===(ea==null?void 0:ea.id)))==null?void 0:io[0],Fr=(zr=((po=ho==null?void 0:ho.exercise_question_types)==null?void 0:po.map((Wr,Ko)=>{if((Vr==null?void 0:Vr.question_type)===(Wr==null?void 0:Wr.question_type))return Il(Sl({},Wr),{indexs:Ko+1})})).filter(Wr=>Wr))==null?void 0:zr[0];Qi(Sl({},Fr)),Bl(Sl({},Vr)),Jl(Vr==null?void 0:Vr.question_score),ai(!1),ko(!1),pl(!1)})}function vo(ea){return Co(this,null,function*(){var lr;let qr=Il(Sl({},ea),{repeat_answer:!ea.repeat_answer,difficulty:(ea==null?void 0:ea.difficulty)||2,item_type:ea.question_type,sub_discipline_id:((lr=ea==null?void 0:ea.sub_discipline_id)==null?void 0:lr[1])||"",tag_discipline_ids:[],hack:Il(Sl({},ea==null?void 0:ea.hack),{difficult:(ea==null?void 0:ea.difficulty)||2}),hack_identifier:sessionStorage.projectFill});ea.tag_discipline_ids&&(qr.tag_discipline_ids=Array.isArray(ea.tag_discipline_ids)?ea.tag_discipline_ids:[ea.tag_discipline_ids]);let io=ui?`/api/exercises/${he}/exercise_questions`:`/api/exercise_questions/${ea==null?void 0:ea.question_id}.json`;if((ea==null?void 0:ea.is_my)===1){const po=Di({title:"\u63D0\u793A",content:Fn.createElement("div",null,Fn.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"),Fn.createElement("i",{className:"iconfont icon-guanbi",style:{position:"absolute",top:"20px",right:"20px",cursor:"pointer"},onClick:()=>{po.destroy()}})),okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>Co(this,null,function*(){qr.is_cover=1;let zr=yield(0,te.ZP)(io,{method:ui?"post":"PUT",body:Sl({},qr)});(zr==null?void 0:zr.status)===0&&(al(!1),Wo({id:(zr==null?void 0:zr.exercise_question_id)||(ea==null?void 0:ea.question_id)})),po.destroy()}),onCancel:()=>Co(this,null,function*(){let zr=yield(0,te.ZP)(io,{method:ui?"post":"PUT",body:Sl({},qr)});(zr==null?void 0:zr.status)===0&&(al(!1),Wo({id:(zr==null?void 0:zr.exercise_question_id)||(ea==null?void 0:ea.question_id)})),po.destroy()})})}else{let po=yield(0,te.ZP)(io,{method:ui?"post":"PUT",body:Sl({},qr)});(po==null?void 0:po.status)===0&&(al(!1),Wo({id:(po==null?void 0:po.exercise_question_id)||(ea==null?void 0:ea.question_id)}))}(0,pt.Vf)("#question-scroll-id")})}function fi(ea){return Co(this,null,function*(){var lr,qr;ko(!0);let io=yield(0,te.ZP)(`/api/exercises/${he}/sort_question_type.json`,{method:"post",body:{question_type:ea}});if(ko(!1),(io==null?void 0:io.status)===0){const po=yield Se({type:"exercise/editExercise",payload:{categoryId:he}});fl(po),pl(!1),(lr=po==null?void 0:po.exercise)!=null&&lr.sub_discipline_id&&Rr((qr=po==null?void 0:po.exercise)==null?void 0:qr.sub_discipline_id)}})}const kl=(ea,lr,qr)=>Co(void 0,null,function*(){var io;if(ea.length===0){Be.ZP.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),qr();return}const po={id:zo==null?void 0:zo.exerciseId,file:(io=ea[0])==null?void 0:io.file,sub_discipline_id:lr};Ki(po,`${Ei.Z.API_SERVER}/api/courses/${zo==null?void 0:zo.coursesId}/exercises/import_exercise.json`,zr=>{var ho;if((zr==null?void 0:zr.status)===0){const Yo={};(ho=zr==null?void 0:zr.fail)==null||ho.forEach(Oa=>{var Fr;((Fr=Object.keys(Yo))==null?void 0:Fr.includes(Oa.message))?Yo[Oa.message]=Yo[Oa.message]+1:Yo[Oa.message]=1});let Vr=`\u6210\u529F\u5BFC\u5165${zr==null?void 0:zr.success}\u6761`;Object.keys(Yo).forEach(Oa=>{Vr=Vr+`,${Oa}${Yo[Oa]}\u6761`}),Be.ZP.success(Vr),yl(!1),fo()}(zr==null?void 0:zr.status)===-1&&(Be.ZP.error(zr==null?void 0:zr.message),qr())})}),bu=(ea,lr)=>Co(void 0,null,function*(){Nn.exercise_types.q_scores=Number(Nn.exercise_types.q_scores)+Number(ea)-Number(lr==null?void 0:lr.question_score);const qr=yield(0,Si.zR)({score:(0,cu.round)(ea,1),question_id:lr==null?void 0:lr.question_id});if((qr==null?void 0:qr.status)===0){Be.ZP.success("\u4FEE\u6539\u6210\u529F"),Wo({id:Ql.current},!1);return}(qr==null?void 0:qr.status)===-1&&Jl(lr==null?void 0:lr.question_score)}),Hi=()=>{Jr(!0)};(0,b.useEffect)(()=>{if(zn){const ea=setTimeout(()=>{Jr(!1)},2e3);return()=>clearTimeout(ea)}},[zn]);const Ki=(ea,lr,qr,io,po)=>{const zr=new FormData;Object.keys(ea).forEach(Yo=>{zr.append(Yo,ea[Yo])});const ho=new window.XMLHttpRequest;return ho.withCredentials=!0,ho.addEventListener("load",function(Yo){var Vr;qr(JSON.parse((Vr=Yo==null?void 0:Yo.target)==null?void 0:Vr.response))},!1),ho.addEventListener("error",function(Yo){po&&po(Yo)},!1),ho.upload.onprogress=Yo=>{io&&io(Yo)},ho.open("POST",lr),ho.send(zr),ho};function _i(){return Co(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:()=>Co(this,null,function*(){if(Hn.question_id){let ea=yield(0,te.ZP)(`/api/exercise_questions/${Hn.question_id}.json`,{method:"delete"});(ea==null?void 0:ea.status)===0&&(fo(),al(!1))}else Bl({}),al(!1),fo()}),cancelText:"\u53D6\u6D88"})})}const hs=ea=>Co(void 0,null,function*(){return yield(0,te.ZP)(`/api/exercises/${he}/select_questions.json`,{method:"post",body:Sl({},ea)})}),{overflow:qu,handleMouseEnter:$u,handleMouseLeave:es}=(0,Yl.I)(),Es=(ea,lr)=>Fn.createElement(Mt.default,null,Fn.createElement(Mt.default.Item,{key:"0",onClick:()=>ts(ea==null?void 0:ea.question_type)},Fn.createElement("span",{className:tt.moreSpan},"\u65B0\u589E")),Fn.createElement(Mt.default.Item,{key:"1",disabled:lr===0,onClick:()=>Co(void 0,null,function*(){if(lr===0)return;if(Ho){Hi();return}let qr=(0,pt.rz)(Nn==null?void 0:Nn.exercise_question_types,lr,lr-1);yield fi(qr.map(io=>io.name))})},Fn.createElement("span",{className:tt.moreSpan},"\u4E0A\u79FB")),Fn.createElement(Mt.default.Item,{key:"2",disabled:lr===(Nn==null?void 0:Nn.exercise_question_types.length)-1,onClick:()=>Co(void 0,null,function*(){if(lr===(Nn==null?void 0:Nn.exercise_question_types.length)-1)return;if(Ho){Hi();return}let qr=(0,pt.rz)(Nn==null?void 0:Nn.exercise_question_types,lr,lr+1);yield fi(qr.map(io=>io.name))})},Fn.createElement("span",{className:tt.moreSpan},"\u4E0B\u79FB")),Fn.createElement(Mt.default.Item,{key:"3",onClick:()=>{var qr;tu.setFieldsValue({name:ea.name,item_type_en:(qr=dl.find(io=>io.id==ea.question_type))==null?void 0:qr.nameType}),Yi(!0)}},Fn.createElement("span",{className:tt.moreSpan},"\u91CD\u547D\u540D"))),ts=ea=>{var lr,qr,io,po,zr,ho,Yo,Vr,Oa,Fr,Wr,Ko,Ji,vi,Xi,Ii,mu,nu,Fi,Ss,Bs,Ps,xs,As;if(Ho){Hi();return}if(pl(!0),ea===5){cl(!0),Pi(!0);return}if(ea===6){let Us=(qr=(lr=bt==null?void 0:bt.editData)==null?void 0:lr.exercise)!=null&&qr.set_question_sub_discipline?`/problems/newcreate?express_id=${(io=Nn==null?void 0:Nn.exercise)==null?void 0:io.id}&callback_url=/classrooms/${zo.coursesId}/exercise/add/${he}?type=2&discipline_id=${(zr=(po=bt==null?void 0:bt.editData)==null?void 0:po.exercise)==null?void 0:zr.discipline_id}&sub_discipline_id=${(Yo=(ho=bt==null?void 0:bt.editData)==null?void 0:ho.exercise)==null?void 0:Yo.sub_discipline_id}`:`/problems/newcreate?express_id=${(Vr=Nn==null?void 0:Nn.exercise)==null?void 0:Vr.id}&callback_url=/classrooms/${zo.coursesId}/exercise/add/${he}?type=2`;Ee.history.push(Us);return}al(!0),Bl(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:(Fr=(Oa=bt==null?void 0:bt.editData)==null?void 0:Oa.exercise)!=null&&Fr.set_question_sub_discipline?(Ko=(Wr=bt==null?void 0:bt.editData)==null?void 0:Wr.exercise)==null?void 0:Ko.discipline_id:0,sub_discipline_id:(vi=(Ji=bt==null?void 0:bt.editData)==null?void 0:Ji.exercise)!=null&&vi.set_question_sub_discipline?(Ii=(Xi=bt==null?void 0:bt.editData)==null?void 0:Xi.exercise)==null?void 0:Ii.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:(nu=(mu=bt==null?void 0:bt.editData)==null?void 0:mu.exercise)!=null&&nu.set_question_sub_discipline?(Ss=(Fi=bt==null?void 0:bt.editData)==null?void 0:Fi.exercise)==null?void 0:Ss.discipline_id:0,sub_discipline_id:(Ps=(Bs=bt==null?void 0:bt.editData)==null?void 0:Bs.exercise)!=null&&Ps.set_question_sub_discipline?(As=(xs=bt==null?void 0:bt.editData)==null?void 0:xs.exercise)==null?void 0:As.sub_discipline_id:0,downcase:!0,no_space:!0})},ns=[{key:1,label:"\u6279\u91CF\u5BFC\u5165",onClick:()=>{yl(!0)}},{key:2,label:Fn.createElement("div",null,Fn.createElement("img",{width:26,style:{position:"absolute",top:-2},src:Hl.$}),Fn.createElement("span",null,"\u667A\u80FD\u5BFC\u5165")),onClick:()=>{if(Ho){Hi();return}Cu(!0)}}];return console.log(vl==null?void 0:vl.question_type,Hn==null?void 0:Hn.question_type),Fn.createElement("div",null,Fn.createElement(qt.Z,{spinning:Ni},Fn.createElement("div",{className:tt.bg},((bn=Nn==null?void 0:Nn.exercise_types)==null?void 0:bn.q_counts)===0&&!Ho&&Fn.createElement(Xn.Z,{styles:{marginTop:180},customText:Fn.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",Fn.createElement("span",{className:"c-light-primary"},"\u5E95\u90E8\u64CD\u4F5C\u680F"),"\u8FDB\u884C\u6DFB\u52A0~")}),(((Xt=Nn==null?void 0:Nn.exercise_types)==null?void 0:Xt.q_counts)>0||Ho)&&Fn.createElement("div",{style:{textAlign:"center"}},Fn.createElement("div",{style:{marginTop:20,borderTop:"1px solid #DCDCDC",display:"block",alignItems:"stretch"}},Fn.createElement("div",{style:{backgroundColor:"#F6F7F9",display:"inline-block",position:"sticky",top:0}},Fn.createElement("div",{className:tt.left},Fn.createElement("div",{className:tt.leftAction},((it=Nn==null?void 0:Nn.exercise)==null?void 0:it.exercise_status)===1&&Fn.createElement(ke.ZP,{onClick:()=>{if(Ho){Hi();return}Ul(!0)},className:tt.Button},"\u6279\u91CF\u8BBE\u7F6E\u5206\u503C")),Fn.createElement("div",{className:tt.scrollWrapper,style:{overflow:qu},onMouseEnter:$u,onMouseLeave:es},(en=Nn==null?void 0:Nn.exercise_question_types)==null?void 0:en.map((ea,lr)=>Fn.createElement("div",{key:lr,className:"mb30"},Fn.createElement("div",{className:tt.title},Fn.createElement("div",{className:tt.titleleft},Fn.createElement("span",{style:{color:"#000000",fontWeight:400,fontSize:12}}," ",(0,pt.EM)(lr+1),"\u3001\u3010",ea.name,"\u3011"),Fn.createElement("span",{style:{color:"#464F66",fontSize:12}},"\uFF08",ea.count,"\u5C0F\u9898\uFF0C\u5171",ea.score,"\u5206\uFF09")),Fn.createElement(Ce.Z,{dropdownRender:()=>Es(ea,lr),placement:"bottomLeft"},Fn.createElement("div",{className:tt.more_style},Fn.createElement("i",{className:"iconfont icon-sandian font12"})))),Fn.createElement(da,{handleEditing:Hi,isedit:Ho,setBigqitem:Qi,bigitem:Il(Sl({},ea),{indexs:lr+1}),setqitem:qr=>Co(void 0,null,function*(){var io;(io=Wl.current)==null||io.blur(),Bl(qr)}),qitem:Hn,Itemid:he,getdata:Wo,data:ea.items})))))),Fn.createElement("div",{id:"question-scroll-id",style:{overflow:Ho?"hidden":"auto"},className:tt.right},!(Hn!=null&&Hn.isadd)&&Fn.createElement("div",{className:tt.title},!Ho&&Fn.createElement("div",{style:{flex:1}},Fn.createElement("span",{style:{color:"#000000",fontWeight:600,fontSize:16}}," ",(vl==null?void 0:vl.indexs)&&(0,pt.EM)(vl==null?void 0:vl.indexs),"\u3001\u3010",vl==null?void 0:vl.name,"\u3011"),Fn.createElement(rt.Z,{title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0"},Fn.createElement("i",{className:`${tt.edit} iconfont icon-bianji_Hover mr5 ml5 font18`,onClick:()=>{var ea;tu.setFieldsValue({name:vl.name,item_type_en:(ea=dl.find(lr=>lr.id==vl.question_type))==null?void 0:ea.nameType}),Yi(!0)}})),Fn.createElement("span",{style:{color:"#464F66",fontSize:16,fontWeight:400}},"\uFF08",vl==null?void 0:vl.count,"\u5C0F\u9898\uFF0C\u5171",vl==null?void 0:vl.score,"\u5206\uFF09"),(Hn==null?void 0:Hn.question_type)===6&&Fn.createElement("span",{onClick:()=>{Ue.default.destroyAll(),_t(2)},className:"current c-light-primary font14 bold-400"},"\u6279\u91CF\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00"),(Hn==null?void 0:Hn.question_type)===5&&Fn.createElement(Ke.default,{defaultChecked:(Bt=(ra=bt==null?void 0:bt.editData)==null?void 0:ra.exercise)==null?void 0:Bt.show_challenge_task_pass,onChange:ea=>Co(void 0,null,function*(){let lr=yield(0,te.ZP)(`/api/exercises/${he}/update_show_columns.json`,{method:"post",body:{show_challenge_task_pass:ea.target.checked}});(lr==null?void 0:lr.status)===0&&(Be.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Wo({id:Ql.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u9898\u76EE\u63CF\u8FF0"),(Hn==null?void 0:Hn.question_type)===6&&Fn.createElement("span",{style:{marginLeft:20},onClick:()=>{var ea,lr,qr,io;Ue.default.confirm({title:"\u7F16\u7A0B\u9898\u8BBE\u7F6E",icon:null,centered:!0,closable:!0,footer:null,content:Fn.createElement("div",null,(Hn==null?void 0:Hn.question_type)===6&&Fn.createElement(Ke.default,{defaultChecked:(lr=(ea=bt==null?void 0:bt.editData)==null?void 0:ea.exercise)==null?void 0:lr.show_hack_sets,onChange:po=>Co(void 0,null,function*(){let zr=yield(0,te.ZP)(`/api/exercises/${he}/update_show_columns.json`,{method:"post",body:{show_hack_sets:po.target.checked}});(zr==null?void 0:zr.status)===0&&(Be.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Ue.default.destroyAll(),Wo({id:Ql.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u6D4B\u8BD5\u7528\u4F8B"),Fn.createElement("br",null),(Hn==null?void 0:Hn.question_type)===6&&Fn.createElement(Ke.default,{defaultChecked:(io=(qr=bt==null?void 0:bt.editData)==null?void 0:qr.exercise)==null?void 0:io.show_hack_description,onChange:po=>Co(void 0,null,function*(){let zr=yield(0,te.ZP)(`/api/exercises/${he}/update_show_columns.json`,{method:"post",body:{show_hack_description:po.target.checked}});(zr==null?void 0:zr.status)===0&&(Be.ZP.info("\u8BBE\u7F6E\u6210\u529F"),Ue.default.destroyAll(),Wo({id:Ql.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")),Fn.createElement("div",{style:{display:"flex",alignItems:"center"}},(Hn==null?void 0:Hn.question_type)===5&&!Ho&&Fn.createElement("a",{className:tt.shixun,href:`/shixuns/${Hn==null?void 0:Hn.shixun_identifier}/challenges?exercise=true`,target:"_blank"},Fn.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u8BD5\u9898\u8BE6\u60C5"),!Ho&&((Lt=Nn==null?void 0:Nn.exercise)==null?void 0:Lt.exercise_status)==1&&[0,1,2,4,6].includes(Hn==null?void 0:Hn.question_type)&&Fn.createElement(we.default.Item,{label:"\u5206\u503C",style:{margin:"0 20px"},required:!0},Fn.createElement(De.Z,{precision:1,ref:Wl,onChange:ea=>Jl(ea),value:zl,onBlur:ea=>{bu(ea.target.value,Hn)}})),!Ho&&((dt=Nn==null?void 0:Nn.exercise)==null?void 0:dt.exercise_status)==1&&Fn.createElement(rt.Z,{title:"\u5220\u9664"},Fn.createElement("span",{onClick:()=>{_i()},style:{marginRight:20},className:`${tt.delete} mr8 ml8 `},"\u5220\u9664")),(Hn==null?void 0:Hn.question_type)!==5&&!Ho&&Fn.createElement(Fn.Fragment,null,(Hn==null?void 0:Hn.is_my)==1&&Fn.createElement(rt.Z,{title:"\u67E5\u770B\u539F\u9898"},Fn.createElement("i",{className:`${tt.yuanti} iconfont icon-chakanyuanti mr8 ml8`,onClick:()=>{(Hn==null?void 0:Hn.question_type)==6?window.open(`/problems/newedit/${Hn==null?void 0:Hn.item_bank_hack_identifier}`):(Hn==null?void 0:Hn.question_type)==8?window.open(`/problemset/edit/${Hn==null?void 0:Hn.item_bank_hack_identifier}?type=1`):window.open(`/problemset/edit/${Hn==null?void 0:Hn.item_bank_id}`)}})),Fn.createElement(rt.Z,{title:"\u52A0\u5165\u6211\u7684\u9898\u5E93"},Fn.createElement("i",{className:`${tt.tianjia} iconfont icon-jiarushitiku mr8 ml8`,onClick:()=>{Br.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:Fn.createElement("div",{className:`font14 ${tt.overflow}`,style:{maxHeight:500,overflow:"auto"}},Fn.createElement("p",{className:"c-grey-333"},"\u8BF7\u9009\u62E9\u52A0\u5165\u7684\u6587\u4EF6\u5939"),Fn.createElement(qt.Z,{spinning:!1},Fn.createElement(lu.Z,{defaultValue:!0,value:Br.current,onChange:ea=>Br.current=ea}))),onOk:()=>Co(void 0,null,function*(){var ea;(0,Si.$l)({id:Hn==null?void 0:Hn.question_id,group_id:((ea=Br==null?void 0:Br.current)==null?void 0:ea[0])||""}).then(lr=>{(lr==null?void 0:lr.status)==0&&(Be.ZP.success("\u52A0\u5165\u6210\u529F"),fo())})})})}}))),!Ho&&(((xt=Nn==null?void 0:Nn.exercise)==null?void 0:xt.exercise_status)==1||((Pn=Nn==null?void 0:Nn.exercise)==null?void 0:Pn.exercise_status)==2&&((Ht=(Et=ie.userInfo)==null?void 0:Et.course)==null?void 0:Ht.course_role)!=15||((Nt=Nn==null?void 0:Nn.exercise)==null?void 0:Nt.exercise_status)==3&&((sn=(Zn=ie.userInfo)==null?void 0:Zn.course)==null?void 0:sn.course_role)!=15||((Rt=Nn==null?void 0:Nn.exercise)==null?void 0:Rt.exercise_status)==4&&((Kr=(nr=ie.userInfo)==null?void 0:nr.course)==null?void 0:Kr.course_role)!=15)&&Fn.createElement(rt.Z,{title:"\u7F16\u8F91\u8BD5\u9898"},Fn.createElement("span",{onClick:()=>{(Hn==null?void 0:Hn.question_type)===6?Ee.history.push(`/problems/newedit/${Hn==null?void 0:Hn.hack_identifier}?type=exercises&express_id=${zo.exerciseId}&question_id=${Hn==null?void 0:Hn.question_id}&score=${Hn==null?void 0:Hn.question_score}&exercise=true&callback_url=/classrooms/${zo.coursesId}/exercise/add/${he}?type=2`):al(!0)},className:`${tt.edit} ml8`},"\u7F16\u8F91")))),!Ho&&Fn.createElement("div",null,Fn.createElement("div",{className:tt.qcount},Fn.createElement("span",{className:tt.score},Hn==null?void 0:Hn.question_score,"\u5206"),Fn.createElement(jt.Z,{className:tt.qtitle,value:(Hn==null?void 0:Hn.index)+`\u3001${(Hn==null?void 0:Hn.question_type)==8?(qa=Hn==null?void 0:Hn.program_attr)==null?void 0:qa.description:Hn==null?void 0:Hn.question_title}`}),(Hn==null?void 0:Hn.high_resources_consume)&&Fn.createElement(so.Z,{type:"shixun",style:{marginLeft:10}})),(Hn==null?void 0:Hn.question_type)===6&&Fn.createElement(gn.Z,{onEdit:()=>_t(1),className:"mt10",dataSource:(Hn==null?void 0:Hn.languages)||[]}),Fn.createElement(eu,{exercise:bt,TagDiscipline:Xl,qitem:Hn})),Ho&&Fn.createElement("div",null,(Hn==null?void 0:Hn.question_type)<=1&&Fn.createElement(kt,{deleteitem:_i,getTagData:Rr,seveeditor:vo,exerciseitem:Nn,TagDiscipline:Xl,setisedit:al,qitem:Hn,init:fo,showTip:zn}),(Hn==null?void 0:Hn.question_type)===5&&Fn.createElement(bs,{setqitem:Bl,deleteitem:_i,seveeditor:vo,exerciseitem:Nn,TagDiscipline:Xl,setisedit:al,qitem:Hn,showTip:zn}),(Hn==null?void 0:Hn.question_type)===3&&Fn.createElement(ya,{deleteitem:_i,getTagData:Rr,seveeditor:vo,exerciseitem:Nn,TagDiscipline:Xl,setisedit:al,qitem:Hn,init:fo,showTip:zn}),(Hn==null?void 0:Hn.question_type)===2&&Fn.createElement(ro,{deleteitem:_i,getTagData:Rr,seveeditor:vo,exerciseitem:Nn,TagDiscipline:Xl,setisedit:al,qitem:Hn,init:fo,showTip:zn}),(Hn==null?void 0:Hn.question_type)===4&&Fn.createElement(Yn,{deleteitem:_i,getTagData:Rr,seveeditor:vo,exerciseitem:Nn,TagDiscipline:Xl,setisedit:al,qitem:Hn,init:fo,showTip:zn}),(Hn==null?void 0:Hn.question_type)===7&&Fn.createElement(us,{deleteitem:_i,getTagData:Rr,seveeditor:vo,exerciseitem:Nn,TagDiscipline:Xl,setisedit:al,qitem:Hn,init:fo,showTip:zn}),(Hn==null?void 0:Hn.question_type)===8&&Fn.createElement(xi,{deleteitem:_i,getTagData:Rr,seveeditor:vo,exerciseitem:Nn,TagDiscipline:Xl,setisedit:al,qitem:Hn,init:fo,showTip:zn}))))))),Fn.createElement("div",{className:tt.bottomdiv},Fn.createElement("div",{className:tt.exercise_styles},((Nr=Nn==null?void 0:Nn.exercise)==null?void 0:Nr.exercise_status)==1&&Fn.createElement(Fn.Fragment,null,Fn.createElement("span",{className:tt.spanBtn,onClick:()=>{if(Ho){Hi();return}cl(!0),Pi(!0)}},"\u9898\u5E93\u9009\u9898"),Fn.createElement(Ce.Z,{menu:{items:ns}},Fn.createElement("span",{className:tt.spanBtn},"\u5BFC\u5165\u8BD5\u9898")),Fn.createElement("span",{className:tt.spanBtn,onClick:()=>Co(void 0,null,function*(){var ea;let lr=yield(0,te.ZP)(`/api/exercises/${zo==null?void 0:zo.exerciseId}/simulate_start_answer.json`,{method:"get",params:{coursesId:zo==null?void 0:zo.coursesId,categoryId:zo==null?void 0:zo.exerciseId}});(lr==null?void 0:lr.status)!=-1&&window.open(`/classrooms/${zo==null?void 0:zo.coursesId}/exercise/${zo==null?void 0:zo.exerciseId}/${(ea=ie.userInfo)==null?void 0:ea.login}/initate_answer`)})},"\u6A21\u62DF\u8003\u8BD5"),Fn.createElement("span",{className:tt.spanBtn,onClick:()=>{window.open(`/classrooms/${zo==null?void 0:zo.coursesId}/exercise/${zo==null?void 0:zo.exerciseId}/detail?random=false&tabs=2`)}},"\u8BD5\u5377\u9884\u89C8"),dl==null?void 0:dl.map(ea=>Fn.createElement(ke.ZP,{className:tt.addQuestionBtn,key:ea.id,type:"primary",onClick:()=>{ts(ea.id)}},ea.name))),((Jn=Nn==null?void 0:Nn.exercise)==null?void 0:Jn.exercise_status)!=1&&Fn.createElement(Fn.Fragment,null,Fn.createElement("span",{style:{width:"1022px"}})),Fn.createElement("span",{className:tt.saveBtn,onClick:()=>Co(void 0,null,function*(){var ea,lr,qr;if(Ho){Hi();return}const io=Number(Nn.exercise_types.q_scores);[100,120,150].includes(io)||(yield new Promise((ho,Yo)=>{Ue.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Fn.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",Fn.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},io),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>Co(void 0,null,function*(){ho("")}),onCancel:()=>{Yo()}})}));let po=(lr=(ea=Nn==null?void 0:Nn.exercise_question_types)==null?void 0:ea.filter(ho=>ho.question_type===5)[0])==null?void 0:lr.items,zr=0;po==null||po.map(ho=>{ho.high_resources_consume&&(zr=zr+1)}),console.log(zr),zr>0?Se({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u63D0\u793A",count:zr,fn:()=>{var ho;((ho=Nn==null?void 0:Nn.exercise)==null?void 0:ho.exercise_status)==1?(Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),Ee.history.push(`/classrooms/${zo==null?void 0:zo.coursesId}/exercise/${he}/detail?random=false&tabs=3`),Gi(!1)):Ee.history.back()}}}):((qr=Nn==null?void 0:Nn.exercise)==null?void 0:qr.exercise_status)==1?(Be.ZP.success("\u4FDD\u5B58\u6210\u529F"),Ee.history.push(`/classrooms/${zo==null?void 0:zo.coursesId}/exercise/${he}/detail?random=false&tabs=3`),Gi(!1)):Ee.history.back()})},Fn.createElement("i",{className:"iconfont icon-baocun1",style:{fontSize:15,marginRight:5}}),"\u4FDD\u5B58\u8BD5\u5377"))),Fn.createElement(On,{setScoreShow:Ul,ScoreShow:wl,exerciseitem:Nn,getdata:fo}),mi&&Fn.createElement(il,{setScoreShow:cl,isshixuns:Zi,SpecificDifficulty:(_r=Nn==null?void 0:Nn.exercise)==null?void 0:_r.difficulty,isloadings:yu,ScoreShow:mi,onOk:(ea,lr,qr,io,po)=>Co(void 0,null,function*(){Fu(!0);let ho=yield hs({exam_id:he,item_bank_ids:ea,shixun_ids:lr,shixun_copy_ids:po});Fu(!1),(ho==null?void 0:ho.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:()=>{fo()},onCancel:()=>{cl(!1),fo()}})})}),Fn.createElement(Lu.Z,{sub_discipline_id:(lo=Nn==null?void 0:Nn.exercise)!=null&&lo.sub_discipline_id?[(Do=Nn==null?void 0:Nn.exercise)==null?void 0:Do.discipline_id,(Ir=Nn==null?void 0:Nn.exercise)==null?void 0:Ir.sub_discipline_id]:[],visible:Uo,onCancel:()=>yl(!1),onOk:kl}),Fn.createElement(Ue.default,{title:"\u63D0\u793A",open:Ui,confirmLoading:!1,centered:!0,okText:"\u8BBE\u7F6E\u89C4\u5219",cancelText:"\u4FEE\u6539\u8BD5\u5377",footer:Fn.createElement("div",null,Fn.createElement(ke.ZP,{onClick:()=>{Gi(!1),Ee.history.back()}},"\u7A0D\u540E\u518D\u8BF4"),Fn.createElement(ke.ZP,{type:"primary",onClick:()=>{Ee.history.push(`/classrooms/${zo==null?void 0:zo.coursesId}/exercise/${he}/detail?random=false&tabs=3`),Gi(!1)}},"\u8BBE\u7F6E\u89C4\u5219")),onCancel:()=>{Gi(!1)}},Fn.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")),Fn.createElement(Ue.default,{centered:!0,title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0",open:Ai,width:500,onOk:()=>tu.submit(),onCancel:()=>Yi(!1)},Fn.createElement(we.default,{form:tu,initialValues:{},onFinish:ea=>Co(void 0,null,function*(){(yield(0,Si.RK)(Sl({id:he},ea))).status==0&&(Be.ZP.success("\u4FEE\u6539\u6210\u529F"),fo(),Yi(!1))})},Fn.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,lr){var qr,io,po,zr;const ho=(qr=dl==null?void 0:dl.find(Yo=>Yo.nameType==tu.getFieldValue("item_type_en")))==null?void 0:qr.id;return(zr=(po=(io=Nn==null?void 0:Nn.exercise_question_types)==null?void 0:io.filter(Yo=>Yo.question_type!=ho))==null?void 0:po.map(Yo=>Yo==null?void 0:Yo.name))!=null&&zr.includes(lr)?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()}}]},Fn.createElement(We.default,{size:"large",maxLength:10,showCount:!0})),Fn.createElement(we.default.Item,{hidden:!0,name:"item_type_en"},Fn.createElement(We.default,{size:"large"})))),Fn.createElement(rn.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Nu},Fn.createElement("div",{style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},"\u667A\u80FD\u5BFC\u5165"),Fn.createElement(Hl.Z,{stickyTop:-24,subDisciplineId:(Lo=Nn==null?void 0:Nn.exercise)!=null&&Lo.sub_discipline_id?[(Io=Nn==null?void 0:Nn.exercise)==null?void 0:Io.discipline_id,(Al=Nn==null?void 0:Nn.exercise)==null?void 0:Al.sub_discipline_id]:[],onCancel:()=>Cu(!1),mode:3,gather:{exercise_id:he},onSuccess:()=>{Cu(!1),fo()}}),Fn.createElement("div",{style:{height:70}})),Fn.createElement(gn.Q,{visible:!!yi,setVisible:_t,tip:yi===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:yi===1?Hn==null?void 0:Hn.languages:[],onOk:ea=>Co(void 0,null,function*(){const lr={languages:ea};yi===1?lr.hack_id=Hn==null?void 0:Hn.hack_id:lr.exercise_id=he,(yield(0,te.ZP)("/api/problems/update_languages.json",{method:"post",body:lr})).status===0&&(Be.ZP.success("\u4FEE\u6539\u6210\u529F"),Wo({id:Ql.current}),_t(!1))})}))};var Vi=(0,Ee.connect)(({user:ie,exercise:Se,dispatch:he})=>({user:ie,exercise:Se,dispatch:he}))(_l),qo=ae(60636),ni=ae(3607),Li=ae(82798),Go=ae(87169),Ri=ae(76832),ja=ae(59301),ci=Object.defineProperty,uu=Object.defineProperties,ki=Object.getOwnPropertyDescriptors,Ti=Object.getOwnPropertySymbols,Wi=Object.prototype.hasOwnProperty,Gr=Object.prototype.propertyIsEnumerable,Qa=(ie,Se,he)=>Se in ie?ci(ie,Se,{enumerable:!0,configurable:!0,writable:!0,value:he}):ie[Se]=he,Mr=(ie,Se)=>{for(var he in Se||(Se={}))Wi.call(Se,he)&&Qa(ie,he,Se[he]);if(Ti)for(var he of Ti(Se))Gr.call(Se,he)&&Qa(ie,he,Se[he]);return ie},nl=(ie,Se)=>uu(ie,ki(Se)),gi=(ie,Se)=>{var he={};for(var gt in ie)Wi.call(ie,gt)&&Se.indexOf(gt)<0&&(he[gt]=ie[gt]);if(ie!=null&&Ti)for(var gt of Ti(ie))Se.indexOf(gt)<0&&Gr.call(ie,gt)&&(he[gt]=ie[gt]);return he},ji=(ie,Se,he)=>new Promise((gt,bt)=>{var Qn=it=>{try{Xt(he.next(it))}catch(en){bt(en)}},bn=it=>{try{Xt(he.throw(it))}catch(en){bt(en)}},Xt=it=>it.done?gt(it.value):Promise.resolve(it.value).then(Qn,bn);Xt((he=he.apply(ie,Se)).next())});const Au=ie=>{var Se=ie,{classroomList:he,globalSetting:gt,problemset:bt,loading:Qn,exercise:bn,user:Xt,dispatch:it}=Se,en=gi(Se,["classroomList","globalSetting","problemset","loading","exercise","user","dispatch"]),ra,Bt,Lt,dt,xt,Pn,Et,Ht,Nt,Zn,sn,Rt,nr,Kr;const qa=(0,Ee.useParams)(),[Nr,Jn]=(0,b.useState)(!1),{userInfo:_r}=Xt,[lo]=we.default.useForm();let[Do,Ir]=(0,b.useState)({});const[Lo,Io]=(0,b.useState)(1),[Al,Nn]=(0,b.useState)(""),[fl]=(0,Ee.useSearchParams)(),[xl,ko]=(0,b.useState)(!1),[Hn,Bl]=(0,b.useState)(!1),[zl,Jl]=(0,b.useState)(!1),[Wl,Ql]=(0,b.useState)(""),[vl,Qi]=(0,b.useState)(!1),[Ni,ai]=(0,b.useState)(!1);(0,b.useEffect)(()=>{it({type:"problemset/getEditDisciplines",payload:{source:"new_question",identifier:qa==null?void 0:qa.coursesId}}),it({type:"globalSetting/footerToggle",payload:!1}),lo.setFieldsValue({difficulty:2,courseid:[]})},[]),(0,b.useEffect)(()=>{qa.exerciseId&&ji(void 0,null,function*(){var Hr,Uo,yl;const wl=yield it({type:"exercise/editExercise",payload:{categoryId:qa.exerciseId}});(wl==null?void 0:wl.status)!==-1&&(((Hr=wl==null?void 0:wl.exercise)==null?void 0:Hr.exercise_status)===2||((Uo=wl==null?void 0:wl.exercise)==null?void 0:Uo.exercise_status)===3||((yl=wl==null?void 0:wl.exercise)==null?void 0:yl.exercise_status)===4?Jl(!0):Jl(!1))})},[qa]),(0,b.useEffect)(()=>{if(qa.exerciseId){let Hr=bn.editData.exercise;ai(Hr==null?void 0:Hr.set_question_sub_discipline),lo.setFieldsValue(nl(Mr({},Hr),{courseid:Hr!=null&&Hr.sub_discipline_id?[Hr==null?void 0:Hr.discipline_id,Hr==null?void 0:Hr.sub_discipline_id]:[]}))}},[bn]),(0,b.useEffect)(()=>{fl.get("type")==="2"&&(Nn(qa.exerciseId),Io(2))},[fl.get("type")]),(0,b.useEffect)(()=>{var Hr;let Uo=(Hr=bt==null?void 0:bt.disciplinesData)==null?void 0:Hr.checked;Uo!=null&&Uo.sub_discipline_id&&lo.setFieldsValue({courseid:[Uo==null?void 0:Uo.discipline_id,Uo==null?void 0:Uo.sub_discipline_id]})},[(ra=bt==null?void 0:bt.disciplinesData)==null?void 0:ra.checked]);function Ho(Hr,Uo){return ji(this,null,function*(){var yl,wl,Ul,mi;yield lo.validateFields();const cl=lo.getFieldsValue(),{courseid:Zi}=cl,[Pi,ui]=Zi;cl.sub_discipline_id=ui,cl.is_md=!0,cl.time=parseInt(cl.time)>9999?9999:cl.time;const pl=yield it({type:"exercise/addExercise",payload:Mr(Mr({},cl),qa)});pl.status===0?(yield(0,te.ZP)(`/api/courses/${qa==null?void 0:qa.coursesId}/exercises/notice_at.json`,{method:"POST",body:{course_id:qa==null?void 0:qa.coursesId,id:(yl=pl==null?void 0:pl.data)==null?void 0:yl.exercise_id,time:Hr}}),Xl((wl=pl.data)==null?void 0:wl.exercise_id),Nn((Ul=pl==null?void 0:pl.data)==null?void 0:Ul.exercise_id),Io(2),ko(!1),Ee.history.replace(`/classrooms/${qa.coursesId}/exercise/add/${(mi=pl.data)==null?void 0:mi.exercise_id}?type=2`)):Be.ZP.error(pl.message),Uo()})}function al(Hr){Ir(Mr({},Hr))}function Xl(Hr){return ji(this,null,function*(){if(!(Do!=null&&Do.ec_point_ids))return;const Uo=Mr({},Do);delete Uo.id;let yl=yield(0,te.ZP)(`/api/ec_courses/${Do==null?void 0:Do.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:Mr({exercise_id:Hr},Uo)})})}return ja.createElement("div",{style:{background:"#ffffff",marginTop:-8,padding:8,minHeight:"100vh",paddingBottom:64}},ja.createElement("section",{className:"edu-container"},ja.createElement("section",{className:"animated fadeIn"},ja.createElement("aside",{className:"mt10"},_r&&ja.createElement(Re.Z,{separator:">"},ja.createElement(Re.Z.Item,null,ja.createElement(Ee.Link,{to:`/classrooms/${qa.coursesId}/exercise`},(Bt=_r==null?void 0:_r.course)==null?void 0:Bt.course_name)),ja.createElement(Re.Z.Item,null,ja.createElement(Ee.Link,{to:`/classrooms/${qa.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")),ja.createElement(Re.Z.Item,null,qa.exerciseId?"\u7F16\u8F91\u8BD5\u5377":"\u65B0\u5EFA\u8BD5\u5377")))),qa.exerciseId&&ja.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}},ja.createElement(Go.Z,{style:{marginRight:5,color:"#E99237"}}),ja.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"),ja.createElement("span",{className:ze.addQuestionBtn,onClick:()=>{it({type:"exercise/setActionTabs",payload:{key:"\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93",selectArrs:[qa.exerciseId]}})}},"\u52A0\u5165\u8BD5\u5377\u5E93")),ja.createElement(Li.Z,{haveInit:!0,init:()=>{Ql(new Date)}}),ja.createElement("div",{className:"bg-white"},ja.createElement("div",{style:{display:"flex",justifyContent:"center",paddingTop:20,alignItems:"center"}},ja.createElement("div",{onClick:()=>{if(Hn){Be.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u8BD5\u9898\u3002");return}Io(1)},className:Lo===1?ze.selectdiv:ze.divitem},ja.createElement(qo.Z,{number:1,active:Lo===1,className:"mr10"}),ja.createElement("span",null,"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F")),ja.createElement("div",{style:{width:188,border:"1px dotted #9096A3",margin:"0px 30px",height:1}}),ja.createElement("div",{onClick:()=>{if(!qa.exerciseId&&!Al){Be.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u57FA\u7840\u4FE1\u606F\u518D\u65B0\u5EFA\u8BD5\u9898");return}Io(2),!Al&&Nn(qa.exerciseId)},className:Lo!==1?ze.selectdiv:ze.divitem},ja.createElement(qo.Z,{number:2,active:Lo!==1,className:"mr10"}),ja.createElement("span",null,"\u7F16\u8F91\u8BD5\u9898"))),Lo===2&&ja.createElement("div",{className:"tc"},ja.createElement(ni.Z,{defaultValue:(dt=(Lt=bn==null?void 0:bn.editData)==null?void 0:Lt.exercise)==null?void 0:dt.exercise_name,onFinish:Hr=>ji(void 0,null,function*(){var Uo,yl,wl,Ul,mi,cl,Zi,Pi,ui,pl,Ui,Gi;return Hr.trim()===((yl=(Uo=bn==null?void 0:bn.editData)==null?void 0:Uo.exercise)==null?void 0:yl.exercise_name)?!0:(yield(0,Si.wy)({exercise_name:Hr,exercise_description:(Ul=(wl=bn==null?void 0:bn.editData)==null?void 0:wl.exercise)==null?void 0:Ul.exercise_description,sub_discipline_id:(cl=(mi=bn==null?void 0:bn.editData)==null?void 0:mi.exercise)==null?void 0:cl.sub_discipline_id,time:(Pi=(Zi=bn==null?void 0:bn.editData)==null?void 0:Zi.exercise)==null?void 0:Pi.time,exerciseId:(pl=(ui=bn.editData)==null?void 0:ui.exercise)==null?void 0:pl.id,difficulty:(Gi=(Ui=bn.editData)==null?void 0:Ui.exercise)==null?void 0:Gi.difficulty})).status===0?(lo.setFieldValue("exercise_name",Hr),!0):!1})}),ja.createElement("div",{style:{fontSize:14}},ja.createElement("span",{style:{color:"#5F6368"}},"\u7B54\u9898\u65F6\u957F",ja.createElement("span",{style:{color:"#000000",marginLeft:8}},((Pn=(xt=bn==null?void 0:bn.editData)==null?void 0:xt.exercise)==null?void 0:Pn.time)||"\u4E0D\u9650")),ja.createElement("span",{style:{margin:"0px 30px",color:"#5F6368"}},"\u96BE\u5EA6",ja.createElement("span",{style:{color:"#000000",marginLeft:8}},((Ht=(Et=bn==null?void 0:bn.editData)==null?void 0:Et.exercise)==null?void 0:Ht.difficulty)===1?"\u7B80\u5355":((Zn=(Nt=bn==null?void 0:bn.editData)==null?void 0:Nt.exercise)==null?void 0:Zn.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),ja.createElement("span",{style:{marginRight:30,color:"#5F6368"}},"\u8BD5\u9898\u603B\u6570",ja.createElement("span",{style:{color:"#000000",marginLeft:8}},((Rt=(sn=bn==null?void 0:bn.editData)==null?void 0:sn.exercise_types)==null?void 0:Rt.q_counts)||0)),ja.createElement("span",{style:{color:"#5F6368"}},"\u603B\u5206",ja.createElement("span",{style:{color:"#000000",marginLeft:8}},(Kr=(nr=bn==null?void 0:bn.editData)==null?void 0:nr.exercise_types)==null?void 0:Kr.q_scores))))),Lo===1&&ja.createElement("div",null,ja.createElement("section",{className:[ze.bg,"mt20"].join(" "),style:{padding:"30px 120px 300px 120px"}},ja.createElement(we.default,{form:lo,colon:!1,layout:"horizontal",labelCol:{span:4},wrapperCol:{span:20},initialValues:{time:60},onFinish:Hr=>ji(void 0,null,function*(){var Uo,yl,wl,Ul,mi;if(Jn(!0),ko(!0),qa.exerciseId){Hr.exerciseId=(yl=(Uo=bn.editData)==null?void 0:Uo.exercise)==null?void 0:yl.id,Hr.sub_discipline_id=Hr.courseid[Hr.courseid.length-1],yield(0,Si.wy)(nl(Mr({},Hr),{set_question_sub_discipline:Ni})),Io(2),Xl(qa==null?void 0:qa.exerciseId),Nn(qa.exerciseId),Jn(!1),ko(!1);return}const cl=yield(0,te.ZP)(`/api/courses/${qa==null?void 0:qa.coursesId}/exercises/overload_alert.json`,{method:"get",params:{course_id:qa==null?void 0:qa.coursesId}});if(cl!=null&&cl.alert)it({type:"classroomList/setActionTabs",payload:{key:"\u9884\u7EA6\u5F39\u7A97"}});else{const{courseid:Zi}=Hr,[Pi,ui]=Zi;Hr.sub_discipline_id=ui,Hr.is_md=!0,Hr.time=parseInt(Hr.time)>9999?9999:Hr.time,Hr.set_question_sub_discipline=Ni;const pl=yield it({type:"exercise/addExercise",payload:nl(Mr(Mr({},Hr),qa),{category_id:fl.get("catalogue")||null})});pl.status===0&&(Xl((wl=pl.data)==null?void 0:wl.exercise_id),Ee.history.replace(`/classrooms/${qa.coursesId}/exercise/add/${(Ul=pl.data)==null?void 0:Ul.exercise_id}?type=2`),Nn((mi=pl==null?void 0:pl.data)==null?void 0:mi.exercise_id),Io(2)),ko(!1)}Jn(!1)}),className:ze.formWrap},ja.createElement(we.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u540D\u79F0",className:ze.baseLineHeight,rules:[{required:!0,validator:(Hr,Uo)=>{var yl;return((yl=Uo==null?void 0:Uo.replaceAll(" ",""))==null?void 0:yl.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},ja.createElement(We.default,{maxLength:60,className:ze.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),ja.createElement(we.default.Item,{label:"\u65B9\u5411&\u8BFE\u7A0B",name:"courseid",className:ze.baseLineHeight},ja.createElement(xe.Z,{disabled:zl,placeholder:"\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B",options:bt.courseOptions,className:ze.baseFormItem,size:"large",popupClassName:ze.cascaderPopup,dropdownMenuColumnStyle:{padding:"8px 12px",fontSize:14},allowClear:!0})),ja.createElement("div",{className:ze.concat},ja.createElement("div",null,ja.createElement(Ke.default,{checked:Ni,onChange:Hr=>{ai(Hr.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")),ja.createElement("div",null,"\u6CA1\u6709\u5408\u9002\u7684\u65B9\u5411&\u8BFE\u7A0B\uFF1F",ja.createElement("a",{onClick:()=>Qi(!0)},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"))),ja.createElement(we.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:ze.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},ja.createElement(Oe.ZP.Group,{className:ze.radiogroup,disabled:zl},ja.createElement(Oe.ZP.Button,{className:ze.easy,value:1},"\u7B80\u5355"),ja.createElement(Oe.ZP.Button,{className:ze.medium,value:2},"\u9002\u4E2D"),ja.createElement(Oe.ZP.Button,{className:ze.hard,value:3},"\u56F0\u96BE"))),ja.createElement(we.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:ze.baseLineHeight},ja.createElement("div",{style:{display:"flex",width:"100%"}},ja.createElement(we.default.Item,{name:"time",noStyle:!0},ja.createElement(De.Z,{disabled:zl,min:1,max:9999,className:ze.baseFormItem,style:{width:220},maxLength:60,placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),ja.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),ja.createElement(we.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exercise_description"},ja.createElement(We.default.TextArea,{disabled:zl,rows:6,maxLength:65535,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5"}))),ja.createElement(xn,{exercise_id:qa==null?void 0:qa.exerciseId,setitem:al})),ja.createElement("div",{className:ze.bottmodiv},ja.createElement(ke.ZP,{className:`${ze.cancelBtn}`,type:"primary",onClick:()=>{Ee.history.back()}},"\u53D6\u6D88"),ja.createElement(ke.ZP,{loading:xl,onClick:()=>{lo.validateFields(),lo.submit()},type:"primary",className:`${ze.confirmBtn} ml20`},"\u4E0B\u4E00\u6B65")),ja.createElement(z,{setsubloading:ko,onModalOk:Ho})),Lo===2&&ja.createElement("div",null,ja.createElement(Vi,{key:Wl,setisedits:Bl,setitemid:Nn,itemid:Al}))),ja.createElement(Ri.Z,{open:vl,onCancel:()=>{Qi(!1)}}))};var gu=(0,Ee.connect)(({classroomList:ie,loading:Se,user:he,problemset:gt,globalSetting:bt,exercise:Qn})=>({classroomList:ie,globalSetting:bt,problemset:gt,user:he,exercise:Qn,loading:Se.effects}))(Au)},84097:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return Ye}});var b=ae(78241),Ee=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(6075),ze=ae(23789),Ue=ae(21331),ue={radio_con:"radio_con___cvwXd",result_con:"result_con___m5Gmr",result_title:"result_title___D7L1n"},E=ae(35219),a=ae(37962),x=ae(28900),y=ae(59301),z=Object.defineProperty,te=Object.defineProperties,oe=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,Pe=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={}))le.call($e,be)&&Fe(Ge,be,$e[be]);if(se)for(var be of se($e))Pe.call($e,be)&&Fe(Ge,be,$e[be]);return Ge},Le=(Ge,$e)=>te(Ge,oe($e)),ut=(Ge,$e,be)=>new Promise((ft,ct)=>{var Ft=Bn=>{try{hn(be.next(Bn))}catch(Ut){ct(Ut)}},At=Bn=>{try{hn(be.throw(Bn))}catch(Ut){ct(Ut)}},hn=Bn=>Bn.done?ft(Bn.value):Promise.resolve(Bn.value).then(Ft,At);hn((be=be.apply(Ge,$e)).next())});const Me=({shixunHomeworks:Ge,exercise:$e,loading:be,dispatch:ft})=>{var ct,Ft,At;const{commonHeader:hn}=$e,[Bn,Ut]=(0,De.useState)([]),[Pt,Te]=(0,De.useState)(Le(Qe({},(0,ke.useParams)()),{page:1,limit:10})),[et,Jt]=(0,De.useState)([]),[xn,Mt]=(0,De.useState)(""),[qt,Ce]=(0,De.useState)(1),[rt]=b.default.useForm(),[rn,tt]=(0,De.useState)({}),[pt,Xn]=(0,De.useState)(null),[gn,Yt]=(0,De.useState)(!1),[jt,Vn]=(0,De.useState)([]),[ia,tn]=(0,De.useState)(null),[Ba,Ka]=(0,De.useState)(0),[Fa,kn]=(0,De.useState)(0),[za,Aa]=(0,De.useState)(!1),vr=[{title:"\u5E8F\u53F7",dataIndex:"1",width:80,render:(St,Zt,Za)=>(Pt.page-1)*Pt.limit+Za+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,Zt)=>y.createElement("div",{className:ue.banding,title:St||"--"},St||"--")},{title:"\u63D0\u4EA4\u72B6\u6001",width:200,dataIndex:"commit_status",render:(St,Zt)=>St===0?y.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):St===1?y.createElement("span",{style:{color:"#DF3042"}},!Zt.is_make_up&&"\u8003\u8BD5\u4E2D",Zt.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):St===2?y.createElement("span",{style:{color:"#5AB891"}},!Zt.is_make_up&&!Zt.is_force_commit&&"\u5DF2\u4EA4\u5377",Zt.is_make_up&&!Zt.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",Zt.is_make_up&&Zt.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!Zt.is_make_up&&Zt.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):y.createElement("span",{style:{color:"#5AB891"}},!Zt.is_make_up&&!Zt.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",Zt.is_make_up&&!Zt.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",Zt.is_make_up&&Zt.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!Zt.is_make_up&&Zt.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)")},{title:(hn==null?void 0:hn.exercise_type)==2&&!(0,E.dE)()?"\u6700\u9AD8\u6210\u7EE9":"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:(St,Zt)=>Zt.commit_status===0||Zt.commit_status===1?"--":!Zt.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"&&(Vn([]),tn(null),ua(),da(Pt))},[(ct=$e.actionTabs)==null?void 0:ct.key]);const ua=()=>ut(void 0,null,function*(){var St;if(!((St=$e.actionTabs)!=null&&St.showSelectQuestion))return;const Zt=yield(0,ze.ZP)(`/api/exercises/${Pt==null?void 0:Pt.categoryId}/all_subj_questions.json`,{method:"get"});Zt.status==0&&Vn(Zt.data)}),Tn=(St,Zt)=>{Pt.page=St,Pt.limit=Zt,Te(Qe({},Pt)),da(Pt)},da=St=>ut(void 0,null,function*(){Aa(!0);const Zt=yield(0,ze.ZP)(`/api/exercises/${Pt.categoryId||(Pt==null?void 0:Pt.exerciseId)}/exercise_users.json`,{method:"get",params:St});Zt.status==0&&(Ka(Zt.data.total_count),Te(Le(Qe({},Pt),{total:Zt.data.total_count})),Ut(Zt.data.exercise_users),kn(Zt.data.total_score)),Aa(!1)}),Ea=St=>{Pt.search=St,Pt.page=1,rt.resetFields(),tt({}),Jt([]),Xn(null),Te(Qe({},Pt)),da(Pt)},xa=St=>ut(void 0,null,function*(){var Zt,Za;const Ca=Qe({},rn);if(!((Zt=St==null?void 0:St.content)!=null&&Zt.trim())){Ee.ZP.warning("\u8BF7\u8F93\u5165\u7B54\u9898\u5185\u5BB9\uFF01");return}Ca.content=St==null?void 0:St.content,Ca.attachment_ids=(Za=St==null?void 0:St.attachment_ids)==null?void 0:Za.map(Wa=>Wa.response.id),_a(Ca)}),_a=St=>ut(void 0,null,function*(){var Zt;Yt(!0);const{showSelectQuestion:Za,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:Za?ia:(Zt=$e.actionTabs)==null?void 0:Zt.questionId,ai_review_settings:Ca})});if([0,-3].includes(Wa.status)){Wa.status==0&&Ee.ZP.success("\u8BC4\u5206\u6D4B\u8BD5\u6210\u529F\uFF01"),Xn(Wa);const Da=document.querySelector(".modal-ai-pfcs");if(Da){const Ra=Da.querySelector(".ant-modal-body");Ra&&(Ra.scrollTop=Ra.scrollHeight)}}Yt(!1)}),En=()=>{ft({type:"exercise/setActionTabs",payload:{key:""}}),Ce(1),ln()},ln=()=>{rt.resetFields(),tt({}),Jt([]),Mt(""),Xn(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:gn,open:((Ft=$e.actionTabs)==null?void 0:Ft.key)==="\u6D4B\u8BD5AI\u8BC4\u5206",destroyOnClose:!0,onCancel:()=>En(),okText:pt?"\u91CD\u65B0\u6D4B\u8BD5":"\u5F00\u59CB\u6D4B\u8BD5",onOk:()=>{var St;if((St=$e.actionTabs)!=null&&St.showSelectQuestion&&!ia)return Ee.ZP.warning("\u8BF7\u9009\u62E9\u9898\u76EE\uFF01");if(qt==1){if(et.length==0)return Ee.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 qt==2&&rt.submit()}},y.createElement(Be.Z,{spinning:gn,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:ia,onChange:St=>tn(St)},jt==null?void 0:jt.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&&Tn(1,10),Ce(St.target.value),ln()},value:qt,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"}}]})),qt==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=>Mt(St.target.value),onSearch:Ea})),y.createElement(Oe.default,{rowSelection:{type:"radio",selectedRowKeys:et,onChange:(St,Zt)=>{Jt(St)},getCheckboxProps:St=>({disabled:[0,1].includes(St==null?void 0:St.commit_status)})},loading:za,rowKey:"exercise_user_id",dataSource:Bn||[],columns:vr,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:Tn},onChange:(St,Zt,Za)=>{Pt.page=1,Za.order===void 0?(Pt.order_type=null,Pt.order=null):(Pt.order_type=Za.order==="descend"?"desc":"asc",Pt.order=Za.field),Te(Qe({},Pt)),da(Pt)}})),qt==2&&y.createElement("div",{style:{marginTop:20}},y.createElement(b.default,{form:rt,className:ue.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{tt(Qe({},rt.getFieldsValue()))},onFinish:xa},y.createElement(b.default.Item,{name:"content",label:"",style:{marginBottom:0}},y.createElement(a.Z,{watch:!0})))),pt&&y.createElement("div",{className:ue.result_con},y.createElement("div",{className:ue.result_title},"AI\u8BC4\u5206\u7ED3\u679C"),(pt==null?void 0:pt.status)==0&&y.createElement("div",{className:"p20"},y.createElement("div",{className:"mb5"},y.createElement("span",{style:{color:"#333",fontWeight:"bold"}},"\u8BC4\u5206\uFF1A"),pt==null?void 0:pt.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:pt==null?void 0:pt.content,style:{fontSize:"14px"}}))),(pt==null?void 0:pt.status)==-3&&y.createElement("div",{className:"p20"},y.createElement(x.Z,{value:pt==null?void 0:pt.message,style:{fontSize:"14px"}})))))};var Ye=(0,ke.connect)(({shixunHomeworks:Ge,exercise:$e,loading:be,user:ft})=>({shixunHomeworks:Ge,exercise:$e,loading:be.effects,user:ft}))(Me)},73256:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return E}});var b=ae(59301),Ee=ae(8591),we=ae(43418),Be=ae(19842),Re=ae(54580),We=ae(3113),xe=ae(41510),Ke=ae(21331),Oe=ae(23789),De=ae(6075),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=Pe=>{try{le(y.next(Pe))}catch(Fe){te(Fe)}},se=Pe=>{try{le(y.throw(Pe))}catch(Fe){te(Fe)}},le=Pe=>Pe.done?z(Pe.value):Promise.resolve(Pe.value).then(oe,se);le((y=y.apply(a,x)).next())}),E=({visible:a,onOk:x,onCancel:y,sub_discipline_id:z=[]})=>{const[te,oe]=(0,b.useState)([]),[se,le]=(0,b.useState)(!1),Pe=(0,De.useParams)(),[Fe,Qe]=(0,b.useState)([]),[Le,ut]=(0,b.useState)([]);(0,b.useEffect)(()=>{a?Me():(ut([]),oe([]),le(!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||[]),ut((z==null?void 0:z.length)>0?z:[])}),Ye=()=>{if((Le==null?void 0:Le.length)===0)return Ee.ZP.warning("\u8BF7\u9009\u62E9\u65B9\u5411&\u8BFE\u7A0B\uFF01");console.log("subDisciplineId",Le),le(!0),x(te,Le[1],()=>{le(!1)})},Ge=()=>{y()},$e=()=>{const ct=`${xe.Z.API_SERVER}/api/courses/${Pe.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},ft=()=>{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,Ft)=>{ut(ct||[])}}),ze.createElement("br",null),ze.createElement(Re.default,{action:`${xe.Z.API_SERVER}/api/attachments.json`,beforeUpload:be,onRemove:ft,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:ft})))))))}},82798:function(ot,Gt,ae){"use strict";var b=ae(59301),Ee=ae(43418),we=ae(23789),Be=ae(6075),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,le;let Pe=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=Pe==null?void 0:Pe.cover_exercises)==null?void 0:se.length)>0)ue(!0),a((le=Pe==null?void 0:Pe.cover_exercises)==null?void 0:le[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(),Ee.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(Ee.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 le=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),(le==null?void 0:le.status)===0&&(ke&&De(),ue(!1),Ee.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),Ee.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))))))};Gt.Z=(0,Be.connect)(({exercise:Ke})=>({exercise:Ke}))(xe)},78547:function(ot,Gt,ae){"use strict";ae.d(Gt,{h:function(){return b}});var b=(Ee=>(Ee[Ee.NOMATCH=-1]="NOMATCH",Ee[Ee.OK=0]="OK",Ee[Ee.TIMEOUT=2]="TIMEOUT",Ee[Ee.PODFAILURE=3]="PODFAILURE",Ee[Ee.COMPILEFAILURE=4]="COMPILEFAILURE",Ee[Ee.EXECUTEFAILURE=5]="EXECUTEFAILURE",Ee[Ee.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",Ee))(b||{})},18509:function(ot,Gt,ae){"use strict";ae.d(Gt,{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(23789),Ee=Object.defineProperty,we=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,We=(z,te,oe)=>te in z?Ee(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)}},3607:function(ot,Gt,ae){"use strict";var b=ae(59301),Ee=ae(6848),we=ae(92832),Be=ae(8591),Re=ae(49570),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(Ee.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},We.createElement("i",{className:`${Re.Z.editIcon} iconfont icon-bianji_Hover`,onClick:()=>ze(!0)}))))};Gt.Z=Ke},76832:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return De}});var b=ae(43418),Ee={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:Ee.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")))))}},99530:function(ot,Gt,ae){"use strict";ae.d(Gt,{I:function(){return Ee}});var b=ae(59301);const Ee=()=>{const[we,Be]=(0,b.useState)("hidden");return{overflow:we,handleMouseEnter:()=>Be("auto"),handleMouseLeave:()=>Be("hidden")}}},77578:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return b}});const b=Ee=>Ee?typeof Ee=="function"?Ee():Ee:null},66104:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return $e}});var b=ae(92310),Ee=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:ft}=be;const{getPrefixCls:ct}=Re.useContext(xe.E_),Ft=ct("breadcrumb");return Re.createElement("li",{className:`${Ft}-separator`,"aria-hidden":"true"},ft===""?ft:ft||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var ke=De,ze=function(be,ft){var ct={};for(var Ft in be)Object.prototype.hasOwnProperty.call(be,Ft)&&ft.indexOf(Ft)<0&&(ct[Ft]=be[Ft]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,Ft=Object.getOwnPropertySymbols(be);Atft[At]||Ft)}function ue(be,ft,ct,Ft){if(ct==null)return null;const{className:At,onClick:hn}=ft,Bn=ze(ft,["className","onClick"]),Ut=Object.assign(Object.assign({},(0,Be.Z)(Bn,{data:!0,aria:!0})),{onClick:hn});return Ft!==void 0?Re.createElement("a",Object.assign({},Ut,{className:Ee()(`${be}-link`,At),href:Ft}),ct):Re.createElement("span",Object.assign({},Ut,{className:Ee()(`${be}-link`,At)}),ct)}function E(be,ft){return(Ft,At,hn,Bn,Ut)=>{if(ft)return ft(Ft,At,hn,Bn);const Pt=Ue(Ft,At);return ue(be,Ft,Pt,Ut)}}var a=function(be,ft){var ct={};for(var Ft in be)Object.prototype.hasOwnProperty.call(be,Ft)&&ft.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:ft,separator:ct="/",children:Ft,menu:At,overlay:hn,dropdownProps:Bn,href:Ut}=be,Te=(et=>{if(At||hn){const Jt=Object.assign({},Bn);if(At){const xn=At||{},{items:Mt}=xn,qt=a(xn,["items"]);Jt.menu=Object.assign(Object.assign({},qt),{items:Mt==null?void 0:Mt.map((Ce,rt)=>{var{key:rn,title:tt,label:pt,path:Xn}=Ce,gn=a(Ce,["key","title","label","path"]);let Yt=pt!=null?pt:tt;return Xn&&(Yt=Re.createElement("a",{href:`${Ut}${Xn}`},Yt)),Object.assign(Object.assign({},gn),{key:rn!=null?rn:rt,label:Yt})})})}else hn&&(Jt.overlay=hn);return Re.createElement(Oe.Z,Object.assign({placement:"bottom"},Jt),Re.createElement("span",{className:`${ft}-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:ft,children:ct,href:Ft}=be,At=a(be,["prefixCls","children","href"]),{getPrefixCls:hn}=Re.useContext(xe.E_),Bn=hn("breadcrumb",ft);return Re.createElement(x,Object.assign({},At,{prefixCls:Bn}),ue(Bn,At,ct,Ft))};y.__ANT_BREADCRUMB_ITEM=!0;var z=y,te=ae(17313),oe=ae(83116),se=ae(37613);const le=be=>{const{componentCls:ft,iconCls:ct}=be;return{[ft]: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},[`${ft}-separator`]:{marginInline:be.separatorMargin,color:be.separatorColor},[`${ft}-link`]:{[` + > ${ct} + span, + > ${ct} + a + `]:{marginInlineStart:be.marginXXS}},[`${ft}-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 Pe=(0,oe.Z)("Breadcrumb",be=>{const ft=(0,se.TS)(be,{});return[le(ft)]},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,ft){var ct={};for(var Ft in be)Object.prototype.hasOwnProperty.call(be,Ft)&&ft.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}=hn,Ut=Fe(hn,["breadcrumbName"]);return Object.assign(Object.assign({},Ut),{title:Bn})})}),At}function Le(be,ft){return(0,Re.useMemo)(()=>be||(ft?ft.map(Qe):null),[be,ft])}var ut=function(be,ft){var ct={};for(var Ft in be)Object.prototype.hasOwnProperty.call(be,Ft)&&ft.indexOf(Ft)<0&&(ct[Ft]=be[Ft]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var At=0,Ft=Object.getOwnPropertySymbols(be);At{if(ft===void 0)return ft;let ct=(ft||"").replace(/^\//,"");return Object.keys(be).forEach(Ft=>{ct=ct.replace(`:${Ft}`,be[Ft])}),ct},Ye=be=>{const{prefixCls:ft,separator:ct="/",style:Ft,className:At,rootClassName:hn,routes:Bn,items:Ut,children:Pt,itemRender:Te,params:et={}}=be,Jt=ut(be,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:xn,direction:Mt,breadcrumb:qt}=Re.useContext(xe.E_);let Ce;const rt=xn("breadcrumb",ft),[rn,tt]=Pe(rt),pt=Le(Ut,Bn),Xn=E(rt,Te);if(pt&&pt.length>0){const jt=[],Vn=Ut||Bn;Ce=pt.map((ia,tn)=>{const{path:Ba,key:Ka,type:Fa,menu:kn,overlay:za,onClick:Aa,className:vr,separator:ua,dropdownProps:Tn}=ia,da=Me(et,Ba);da!==void 0&&jt.push(da);const Ea=Ka!=null?Ka:tn;if(Fa==="separator")return Re.createElement(ke,{key:Ea},ua);const xa={},_a=tn===pt.length-1;kn?xa.menu=kn:za&&(xa.overlay=za);let{href:En}=ia;return jt.length&&da!==void 0&&(En=`#/${jt.join("/")}`),Re.createElement(x,Object.assign({key:Ea},xa,(0,Be.Z)(ia,{data:!0,aria:!0}),{className:vr,dropdownProps:Tn,href:En,separator:_a?"":ct,onClick:Aa,prefixCls:rt}),Xn(ia,et,Vn,jt,En))})}else if(Pt){const jt=(0,we.Z)(Pt).length;Ce=(0,we.Z)(Pt).map((Vn,ia)=>{if(!Vn)return Vn;const tn=ia===jt-1;return(0,We.Tm)(Vn,{separator:tn?"":ct,key:ia})})}const gn=Ee()(rt,qt==null?void 0:qt.className,{[`${rt}-rtl`]:Mt==="rtl"},At,hn,tt),Yt=Object.assign(Object.assign({},qt==null?void 0:qt.style),Ft);return rn(Re.createElement("nav",Object.assign({className:gn,style:Yt},Jt),Re.createElement("ol",null,Ce)))};Ye.Item=z,Ye.Separator=ke;var Ge=Ye,$e=Ge},19842:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z:function(){return ba}});var b=ae(77654),Ee=ae(59301),we=ae(33853),Be=ae(58617),Re=ae(38819),We=ae(92310),xe=ae.n(We),Ke=ae(60499),Oe=ae(72190),De=ae(42244),ke=ae(77861),ze=ae(17115),Ue=ae(90782),ue=ae(6089),E=ae(18929),a=Ee.createContext(null),x=a,y=ae(43749),z=ae(18642),te=ae(85899),oe="__rc_cascader_search_mark__",se=function(kt,$t,vn){var Tt=vn.label;return $t.some(function(Wn){return String(Wn[Tt]).toLowerCase().includes(kt.toLowerCase())})},le=function(kt,$t,vn,Tt){return $t.map(function(Wn){return Wn[Tt.label]}).join(" / ")},Pe=function(Ze,kt,$t,vn,Tt,Wn){var Kn=Tt.filter,Je=Kn===void 0?se:Kn,nt=Tt.render,Xe=nt===void 0?le:nt,on=Tt.limit,Cn=on===void 0?50:on,Ln=Tt.sort;return Ee.useMemo(function(){var wa=[];if(!Ze)return[];function pa(ta,ya){var qn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ta.forEach(function(Wt){if(!(!Ln&&Cn!==!1&&Cn>0&&wa.length>=Cn)){var Ma=[].concat((0,b.Z)(ya),[Wt]),hr=Wt[$t.children],So=qn||Wt.disabled;if((!hr||hr.length===0||Wn)&&Je(Ze,Ma,{label:$t.label})){var $a;wa.push((0,te.Z)((0,te.Z)({},Wt),{},($a={disabled:So},(0,z.Z)($a,$t.label,Xe(Ze,Ma,vn,$t)),(0,z.Z)($a,oe,Ma),(0,z.Z)($a,$t.children,void 0),$a)))}hr&&pa(Wt[$t.children],Ma,So)}})}return pa(kt,[]),Ln&&wa.sort(function(ta,ya){return Ln(ta[oe],ya[oe],Ze,$t)}),Cn!==!1&&Cn>0?wa.slice(0,Cn):wa},[Ze,kt,$t,vn,Xe,Wn,Je,Ln,Cn])},Fe="__RC_CASCADER_SPLIT__",Qe="SHOW_PARENT",Le="SHOW_CHILD";function ut(Ze){return Ze.join(Fe)}function Me(Ze){return Ze.map(ut)}function Ye(Ze){return Ze.split(Fe)}function Ge(Ze){var kt=Ze||{},$t=kt.label,vn=kt.value,Tt=kt.children,Wn=vn||"value";return{label:$t||"label",value:Wn,key:Wn,children:Tt||"children"}}function $e(Ze,kt){var $t,vn;return($t=Ze.isLeaf)!==null&&$t!==void 0?$t:!((vn=Ze[kt.children])!==null&&vn!==void 0&&vn.length)}function be(Ze){var kt=Ze.parentElement;if(kt){var $t=Ze.offsetTop-kt.offsetTop;$t-kt.scrollTop<0?kt.scrollTo({top:$t}):$t+Ze.offsetHeight-kt.scrollTop>kt.offsetHeight&&kt.scrollTo({top:$t+Ze.offsetHeight-kt.offsetHeight})}}function ft(Ze,kt){return Ze.map(function($t){var vn;return(vn=$t[oe])===null||vn===void 0?void 0:vn.map(function(Tt){return Tt[kt.value]})})}function ct(Ze,kt,$t){var vn=new Set(Ze),Tt=kt();return Ze.filter(function(Wn){var Kn=Tt[Wn],Je=Kn?Kn.parent:null,nt=Kn?Kn.children:null;return Kn&&Kn.node.disabled?!0:$t===Le?!(nt&&nt.some(function(Xe){return Xe.key&&vn.has(Xe.key)})):!(Je&&!Je.node.disabled&&vn.has(Je.key))})}function Ft(Ze,kt,$t){for(var vn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Tt=kt,Wn=[],Kn=function(){var Xe,on,Cn,Ln=Ze[Je],wa=(Xe=Tt)===null||Xe===void 0?void 0:Xe.findIndex(function(ta){var ya=ta[$t.value];return vn?String(ya)===String(Ln):ya===Ln}),pa=wa!==-1?(on=Tt)===null||on===void 0?void 0:on[wa]:null;Wn.push({value:(Cn=pa==null?void 0:pa[$t.value])!==null&&Cn!==void 0?Cn:Ln,index:wa,option:pa}),Tt=pa==null?void 0:pa[$t.children]},Je=0;Je1){var Vt=pa.slice(0,-1);Wt(Vt)}else Xe(!1)},So=function(){var Vt,$r=((Vt=ya[ta])===null||Vt===void 0?void 0:Vt[$t.children])||[],Ua=$r.find(function(ur){return!ur.disabled});if(Ua){var Pr=[].concat((0,b.Z)(pa),[Ua[$t.value]]);Wt(Pr)}};Ee.useImperativeHandle(Ze,function(){return{onKeyDown:function(Vt){var $r=Vt.which;switch($r){case rt.Z.UP:case rt.Z.DOWN:{var Ua=0;$r===rt.Z.UP?Ua=-1:$r===rt.Z.DOWN&&(Ua=1),Ua!==0&&Ma(Ua);break}case rt.Z.LEFT:{if(nt)break;Cn?So():hr();break}case rt.Z.RIGHT:{if(nt)break;Cn?hr():So();break}case rt.Z.BACKSPACE:{nt||hr();break}case rt.Z.ENTER:{if(pa.length){var Pr=ya[ta],ur=(Pr==null?void 0:Pr[oe])||[];ur.length?Wn(ur.map(function(Qr){return Qr[$t.value]}),ur[ur.length-1]):Wn(pa,ya[ta])}break}case rt.Z.ESC:Xe(!1),on&&Vt.stopPropagation()}},onKeyUp:function(){}}})},tt=Ee.forwardRef(function(Ze,kt){var $t,vn,Tt,Wn,Kn=(0,ke.lk)(),Je=Kn.prefixCls,nt=Kn.multiple,Xe=Kn.searchValue,on=Kn.toggleOpen,Cn=Kn.notFoundContent,Ln=Kn.direction,wa=Kn.open,pa=Ee.useRef(),ta=Ln==="rtl",ya=Ee.useContext(x),qn=ya.options,Wt=ya.values,Ma=ya.halfValues,hr=ya.fieldNames,So=ya.changeOnSelect,$a=ya.onSelect,Vt=ya.searchOptions,$r=ya.dropdownPrefixCls,Ua=ya.loadData,Pr=ya.expandTrigger,ur=$r||Je,Qr=Ee.useState([]),Lr=(0,Oe.Z)(Qr,2),ro=Lr[0],Tr=Lr[1],ca=function(Or){if(!(!Ua||Xe)){var Ao=Ft(Or,qn,hr),Ja=Ao.map(function(Er){var no=Er.option;return no}),Ur=Ja[Ja.length-1];if(Ur&&!$e(Ur,hr)){var to=ut(Or);Tr(function(Er){return[].concat((0,b.Z)(Er),[to])}),Ua(Ja)}}};Ee.useEffect(function(){ro.length&&ro.forEach(function(wr){var Or=Ye(wr),Ao=Ft(Or,qn,hr,!0).map(function(Ur){var to=Ur.option;return to}),Ja=Ao[Ao.length-1];(!Ja||Ja[hr.children]||$e(Ja,hr))&&Tr(function(Ur){return Ur.filter(function(to){return to!==wr})})})},[qn,ro,hr]);var nn=Ee.useMemo(function(){return new Set(Me(Wt))},[Wt]),mr=Ee.useMemo(function(){return new Set(Me(Ma))},[Ma]),ga=Ce(),sr=(0,Oe.Z)(ga,2),Va=sr[0],pn=sr[1],na=function(Or){pn(Or),ca(Or)},La=function(Or){var Ao=Or.disabled,Ja=$e(Or,hr);return!Ao&&(Ja||So||nt)},_n=function(Or,Ao){var Ja=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;$a(Or),!nt&&(Ao||So&&(Pr==="hover"||Ja))&&on(!1)},dr=Ee.useMemo(function(){return Xe?Vt:qn},[Xe,Vt,qn]),tr=Ee.useMemo(function(){for(var wr=[{options:dr}],Or=dr,Ao=ft(Or,hr),Ja=function(){var no=Va[Ur],wt=Or.find(function(ht,Mn){return(Ao[Mn]?ut(Ao[Mn]):ht[hr.value])===no}),yt=wt==null?void 0:wt[hr.children];if(!(yt!=null&&yt.length))return"break";Or=yt,wr.push({options:yt})},Ur=0;Ur":ro,ca=Ze.loadingIcon,nn=Ze.children,mr=Ze.dropdownMatchSelectWidth,ga=mr===void 0?!1:mr,sr=Ze.showCheckedStrategy,Va=sr===void 0?Qe:sr,pn=(0,De.Z)(Ze,jt),na=(0,ze.ZP)($t),La=!!Cn,_n=(0,E.Z)(Kn,{value:Je,postState:ia}),dr=(0,Oe.Z)(_n,2),tr=dr[0],yr=dr[1],eo=Ee.useMemo(function(){return Ge(Wn)},[JSON.stringify(Wn)]),fr=Ee.useMemo(function(){return Wt||[]},[Wt]),_o=Bn(fr,eo),Ro=Ee.useCallback(function(wn){var Gn=_o();return wn.map(function(me){var mt=Gn[me].nodes;return mt.map(function(Ct){return Ct[eo.value]})})},[_o,eo]),Fl=(0,E.Z)("",{value:pa,postState:function(Gn){return Gn||""}}),wr=(0,Oe.Z)(Fl,2),Or=wr[0],Ao=wr[1],Ja=function(Gn,me){Ao(Gn),me.source!=="blur"&&ta&&ta(Gn)},Ur=Te(ya),to=(0,Oe.Z)(Ur,2),Er=to[0],no=to[1],wt=Pe(Or,fr,eo,Ma||Tt,no,nt),yt=Ut(fr,eo),ht=Ee.useMemo(function(){var wn=yt(tr),Gn=(0,Oe.Z)(wn,2),me=Gn[0],mt=Gn[1];if(!La||!tr.length)return[me,[],mt];var Ct=Me(me),dn=_o(),vt=(0,Ue.S)(Ct,!0,dn),Dn=vt.checkedKeys,An=vt.halfCheckedKeys;return[Ro(Dn),Ro(An),mt]},[La,tr,_o,Ro,yt]),Mn=(0,Oe.Z)(ht,3),Ga=Mn[0],rr=Mn[1],Sn=Mn[2],er=Ee.useMemo(function(){var wn=Me(Ga),Gn=ct(wn,_o,Va);return[].concat((0,b.Z)(Sn),(0,b.Z)(Ro(Gn)))},[Ga,_o,Ro,Sn,Va]),Xa=At(er,fr,eo,La,on),oo=(0,ue.Z)(function(wn){if(yr(wn),Xe){var Gn=ia(wn),me=Gn.map(function(dn){return Ft(dn,fr,eo).map(function(vt){return vt.option})}),mt=La?Gn:Gn[0],Ct=La?me:me[0];Xe(mt,Ct)}}),cr=(0,ue.Z)(function(wn){if((!La||wa)&&Ao(""),!La)oo(wn);else{var Gn=ut(wn),me=Me(Ga),mt=Me(rr),Ct=me.includes(Gn),dn=Sn.some(function(ma){return ut(ma)===Gn}),vt=Ga,Dn=Sn;if(dn&&!Ct)Dn=Sn.filter(function(ma){return ut(ma)!==Gn});else{var An=Ct?me.filter(function(ma){return ma!==Gn}):[].concat((0,b.Z)(me),[Gn]),fn=_o(),yn;if(Ct){var Ia=(0,Ue.S)(An,{checked:!1,halfCheckedKeys:mt},fn);yn=Ia.checkedKeys}else{var gr=(0,Ue.S)(An,!0,fn);yn=gr.checkedKeys}var Cr=ct(yn,_o,Va);vt=Ro(Cr)}oo([].concat((0,b.Z)(Dn),(0,b.Z)(vt)))}}),Ha=function(Gn,me){if(me.type==="clear"){oo([]);return}var mt=me.values[0],Ct=mt.valueCells;cr(Ct)},Dr=$a!==void 0?$a:So,bo=$r||Vt,rl=ur||Pr,jr=function(Gn){Qr==null||Qr(Gn),Lr==null||Lr(Gn)},yo=Ee.useMemo(function(){return{options:fr,fieldNames:eo,values:Ga,halfValues:rr,changeOnSelect:nt,onSelect:cr,checkable:Cn,searchOptions:wt,dropdownPrefixCls:Ma,loadData:hr,expandTrigger:qn,expandIcon:Tr,loadingIcon:ca,dropdownMenuColumnStyle:Ua}},[fr,eo,Ga,rr,nt,cr,Cn,wt,Ma,hr,qn,Tr,ca,Ua]),To=!(Or?wt:fr).length,sa=Or&&no.matchInputWidth||To?{}:{minWidth:"auto"};return Ee.createElement(x.Provider,{value:yo},Ee.createElement(ke.Ac,(0,Ke.Z)({},pn,{ref:kt,id:na,prefixCls:Tt,autoClearSearchValue:wa,dropdownMatchSelectWidth:ga,dropdownStyle:sa,displayValues:Xa,onDisplayValuesChange:Ha,mode:La?"multiple":void 0,searchValue:Or,onSearch:Ja,showSearch:Er,OptionList:pt,emptyOptions:To,open:Dr,dropdownClassName:bo,placement:rl,onDropdownVisibleChange:jr,getRawInputElement:function(){return nn}})))});tn.SHOW_PARENT=Qe,tn.SHOW_CHILD=Le;var Ba=tn,Ka=Ba,Fa=ae(2738),kn=ae(62892),za=ae(53487),Aa=ae(19080),vr=ae(36355),ua=ae(93891),Tn=ae(1684),da=ae(19716),Ea=ae(32441),xa=ae(14154),_a=ae(58582),En=ae(84443),ln=ae(66339),St=ae(33234),Zt=ae(98447),Za=ae(17313),Ca=ae(74207),Wa=ae(83116);const Da=Ze=>{const{prefixCls:kt,componentCls:$t,antCls:vn}=Ze,Tt=`${$t}-menu-item`,Wn=` + &${Tt}-expand ${Tt}-expand-icon, + ${Tt}-loading-icon + `;return[{[$t]:{width:Ze.controlWidth}},{[`${$t}-dropdown`]:[(0,Zt.C2)(`${kt}-checkbox`,Ze),{[`&${vn}-select-dropdown`]:{padding:0}},{[$t]:{"&-checkbox":{top:0,marginInlineEnd:Ze.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${$t}-menu-empty`]:{[`${$t}-menu`]:{width:"100%",height:"auto",[Tt]:{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({},Za.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"},[Wn]:{color:Ze.colorTextDisabled}},[`&-active:not(${Tt}-disabled)`]:{"&, &:hover":{fontWeight:Ze.optionSelectedFontWeight,backgroundColor:Ze.optionSelectedBg}},"&-content":{flex:"auto"},[Wn]:{marginInlineStart:Ze.paddingXXS,color:Ze.colorTextDescription,fontSize:Ze.fontSizeIcon},"&-keyword":{color:Ze.colorHighlight}})}}}]},{[`${$t}-dropdown-rtl`]:{direction:"rtl"}},(0,Ca.c)(Ze)]};var Ra=(0,Wa.Z)("Cascader",Ze=>[Da(Ze)],Ze=>{const kt=Math.round((Ze.controlHeight-Ze.fontSize*Ze.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Ze.controlItemBgActive,optionSelectedFontWeight:Ze.fontWeightStrong,optionPadding:`${kt}px ${Ze.paddingSM}px`,menuPadding:Ze.paddingXXS}}),xr=function(Ze,kt){var $t={};for(var vn in Ze)Object.prototype.hasOwnProperty.call(Ze,vn)&&kt.indexOf(vn)<0&&($t[vn]=Ze[vn]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Tt=0,vn=Object.getOwnPropertySymbols(Ze);Ttnt===0?[Je]:[].concat((0,b.Z)(Kn),[kt,Je]),[]),Tt=[];let Wn=0;return vn.forEach((Kn,Je)=>{const nt=Wn+Kn.length;let Xe=Ze.slice(Wn,nt);Wn=nt,Je%2===1&&(Xe=Ee.createElement("span",{className:`${$t}-menu-item-keyword`,key:`separator-${Je}`},Xe)),Tt.push(Xe)}),Tt}const Kt=(Ze,kt,$t,vn)=>{const Tt=[],Wn=Ze.toLowerCase();return kt.forEach((Kn,Je)=>{Je!==0&&Tt.push(" / ");let nt=Kn[vn.label];const Xe=typeof nt;(Xe==="string"||Xe==="number")&&(nt=Mo(String(nt),Wn,$t)),Tt.push(nt)}),Tt},Un=Ee.forwardRef((Ze,kt)=>{const{prefixCls:$t,size:vn,disabled:Tt,className:Wn,rootClassName:Kn,multiple:Je,bordered:nt=!0,transitionName:Xe,choiceTransitionName:on="",popupClassName:Cn,dropdownClassName:Ln,expandIcon:wa,placement:pa,showSearch:ta,allowClear:ya=!0,notFoundContent:qn,direction:Wt,getPopupContainer:Ma,status:hr,showArrow:So,builtinPlacements:$a,style:Vt}=Ze,$r=xr(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)($r,["suffixIcon"]),{getPopupContainer:Pr,getPrefixCls:ur,renderEmpty:Qr,direction:Lr,popupOverflow:ro,cascader:Tr}=Ee.useContext(vr.E_),ca=Wt||Lr,nn=ca==="rtl",{status:mr,hasFeedback:ga,isFormItemInput:sr,feedbackIcon:Va}=Ee.useContext(Ea.aM),pn=(0,Aa.F)(mr,hr),na=qn||(Qr==null?void 0:Qr("Cascader"))||Ee.createElement(ua.Z,{componentName:"Cascader"}),La=ur(),_n=ur("select",$t),dr=ur("cascader",$t),[tr,yr]=(0,xa.Z)(_n),[eo]=Ra(dr),{compactSize:fr,compactItemClassnames:_o}=(0,St.ri)(_n,Wt),Ro=xe()(Cn||Ln,`${dr}-dropdown`,{[`${dr}-dropdown-rtl`]:ca==="rtl"},Kn,yr),Fl=Ee.useMemo(()=>{if(!ta)return ta;let Sn={render:Kt};return typeof ta=="object"&&(Sn=Object.assign(Object.assign({},Sn),ta)),Sn},[ta]),wr=(0,da.Z)(Sn=>{var er;return(er=vn!=null?vn:fr)!==null&&er!==void 0?er:Sn}),Or=Ee.useContext(Tn.Z),Ao=Tt!=null?Tt:Or;let Ja=wa;wa||(Ja=nn?Ee.createElement(we.Z,null):Ee.createElement(Re.Z,null));const Ur=Ee.createElement("span",{className:`${_n}-menu-item-loading-icon`},Ee.createElement(Be.Z,{spin:!0})),to=Ee.useMemo(()=>Je?Ee.createElement("span",{className:`${dr}-checkbox-inner`}):!1,[Je]),Er=(0,En.Z)(Ze.suffixIcon,So),{suffixIcon:no,removeIcon:wt,clearIcon:yt}=(0,ln.Z)(Object.assign(Object.assign({},Ze),{hasFeedback:ga,feedbackIcon:Va,showSuffixIcon:Er,multiple:Je,prefixCls:_n,componentName:"Cascader"})),ht=Ee.useMemo(()=>pa!==void 0?pa:nn?"bottomRight":"bottomLeft",[pa,nn]),Mn=(0,_a.Z)($a,ro),Ga=ya===!0?{clearIcon:yt}:ya,rr=Ee.createElement(Ka,Object.assign({prefixCls:_n,className:xe()(!$t&&dr,{[`${_n}-lg`]:wr==="large",[`${_n}-sm`]:wr==="small",[`${_n}-rtl`]:nn,[`${_n}-borderless`]:!nt,[`${_n}-in-form-item`]:sr},(0,Aa.Z)(_n,pn,ga),_o,Tr==null?void 0:Tr.className,Wn,Kn,yr),disabled:Ao,style:Object.assign(Object.assign({},Tr==null?void 0:Tr.style),Vt)},Ua,{builtinPlacements:Mn,direction:ca,placement:ht,notFoundContent:na,allowClear:Ga,showSearch:Fl,expandIcon:Ja,suffixIcon:no,removeIcon:wt,loadingIcon:Ur,checkable:to,dropdownClassName:Ro,dropdownPrefixCls:$t||dr,choiceTransitionName:(0,kn.m)(La,"",on),transitionName:(0,kn.m)(La,"slide-up",Xe),getPopupContainer:Ma||Pr,ref:kt}));return eo(tr(rr))}),$n=(0,za.Z)(Un);Un.SHOW_PARENT=kr,Un.SHOW_CHILD=ar,Un._InternalPanelDoNotUseOrYouWillBeFired=$n;var ba=Un},36381:function(ot,Gt,ae){"use strict";ae.d(Gt,{default:function(){return rn}});var b=ae(38819),Ee=ae(92310),we=ae.n(Ee),Be=ae(60499),Re=ae(77654),We=ae(72190),xe=ae(43749),Ke=ae(18929),Oe=ae(48736),De=ae(59301),ke=ae(42244),ze=ae(11592),Ue=ae(18642),ue=ae(77900),E=ae(10228),a=De.forwardRef(function(tt,pt){var Xn=tt.prefixCls,gn=tt.forceRender,Yt=tt.className,jt=tt.style,Vn=tt.children,ia=tt.isActive,tn=tt.role,Ba=De.useState(ia||gn),Ka=(0,We.Z)(Ba,2),Fa=Ka[0],kn=Ka[1];return De.useEffect(function(){(gn||ia)&&kn(!0)},[gn,ia]),Fa?De.createElement("div",{ref:pt,className:we()("".concat(Xn,"-content"),(0,Ue.Z)((0,Ue.Z)({},"".concat(Xn,"-content-active"),ia),"".concat(Xn,"-content-inactive"),!ia),Yt),style:jt,role:tn},De.createElement("div",{className:"".concat(Xn,"-content-box")},Vn)):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,pt){var Xn=tt.showArrow,gn=Xn===void 0?!0:Xn,Yt=tt.headerClass,jt=tt.isActive,Vn=tt.onItemClick,ia=tt.forceRender,tn=tt.className,Ba=tt.prefixCls,Ka=tt.collapsible,Fa=tt.accordion,kn=tt.panelKey,za=tt.extra,Aa=tt.header,vr=tt.expandIcon,ua=tt.openMotion,Tn=tt.destroyInactivePanel,da=tt.children,Ea=(0,ke.Z)(tt,y),xa=Ka==="disabled",_a=Ka==="header",En=Ka==="icon",ln=za!=null&&typeof za!="boolean",St=function(){Vn==null||Vn(kn)},Zt=function(xr){(xr.key==="Enter"||xr.keyCode===E.Z.ENTER||xr.which===E.Z.ENTER)&&St()},Za=typeof vr=="function"?vr(tt):De.createElement("i",{className:"arrow"});Za&&(Za=De.createElement("div",{className:"".concat(Ba,"-expand-icon"),onClick:["header","icon"].includes(Ka)?St:void 0},Za));var Ca=we()((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(Ba,"-item"),!0),"".concat(Ba,"-item-active"),jt),"".concat(Ba,"-item-disabled"),xa),tn),Wa=we()(Yt,(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},"".concat(Ba,"-header"),!0),"".concat(Ba,"-header-collapsible-only"),_a),"".concat(Ba,"-icon-collapsible-only"),En)),Da={className:Wa,"aria-expanded":jt,"aria-disabled":xa,onKeyDown:Zt};return!_a&&!En&&(Da.onClick=St,Da.role=Fa?"tab":"button",Da.tabIndex=xa?-1:0),De.createElement("div",(0,Be.Z)({},Ea,{ref:pt,className:Ca}),De.createElement("div",Da,gn&&Za,De.createElement("span",{className:"".concat(Ba,"-header-text"),onClick:Ka==="header"?St:void 0},Aa),ln&&De.createElement("div",{className:"".concat(Ba,"-extra")},za)),De.createElement(ue.default,(0,Be.Z)({visible:jt,leavedClassName:"".concat(Ba,"-content-hidden")},ua,{forceRender:ia,removeOnLeave:Tn}),function(Ra,xr){var ar=Ra.className,kr=Ra.style;return De.createElement(x,{ref:xr,prefixCls:Ba,className:ar,style:kr,isActive:jt,forceRender:ia,role:Fa?"tabpanel":void 0},da)}))}),te=z,oe=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],se=function(pt,Xn){var gn=Xn.prefixCls,Yt=Xn.accordion,jt=Xn.collapsible,Vn=Xn.destroyInactivePanel,ia=Xn.onItemClick,tn=Xn.activeKey,Ba=Xn.openMotion,Ka=Xn.expandIcon;return pt.map(function(Fa,kn){var za=Fa.children,Aa=Fa.label,vr=Fa.key,ua=Fa.collapsible,Tn=Fa.onItemClick,da=Fa.destroyInactivePanel,Ea=(0,ke.Z)(Fa,oe),xa=String(vr!=null?vr:kn),_a=ua!=null?ua:jt,En=da!=null?da:Vn,ln=function(Za){_a!=="disabled"&&(ia(Za),Tn==null||Tn(Za))},St=!1;return Yt?St=tn[0]===xa:St=tn.indexOf(xa)>-1,De.createElement(te,(0,Be.Z)({},Ea,{prefixCls:gn,key:xa,panelKey:xa,isActive:St,accordion:Yt,openMotion:Ba,expandIcon:Ka,header:Aa,collapsible:_a,onItemClick:ln,destroyInactivePanel:En}),za)})},le=function(pt,Xn,gn){if(!pt)return null;var Yt=gn.prefixCls,jt=gn.accordion,Vn=gn.collapsible,ia=gn.destroyInactivePanel,tn=gn.onItemClick,Ba=gn.activeKey,Ka=gn.openMotion,Fa=gn.expandIcon,kn=pt.key||String(Xn),za=pt.props,Aa=za.header,vr=za.headerClass,ua=za.destroyInactivePanel,Tn=za.collapsible,da=za.onItemClick,Ea=!1;jt?Ea=Ba[0]===kn:Ea=Ba.indexOf(kn)>-1;var xa=Tn!=null?Tn:Vn,_a=function(St){xa!=="disabled"&&(tn(St),da==null||da(St))},En={key:kn,panelKey:kn,header:Aa,headerClass:vr,isActive:Ea,prefixCls:Yt,destroyInactivePanel:ua!=null?ua:ia,openMotion:Ka,accordion:jt,children:pt.props.children,onItemClick:_a,expandIcon:Fa,collapsible:xa};return typeof pt.type=="string"?pt:(Object.keys(En).forEach(function(ln){typeof En[ln]=="undefined"&&delete En[ln]}),De.cloneElement(pt,En))};function Pe(tt,pt,Xn){return Array.isArray(tt)?se(tt,Xn):(0,ze.Z)(pt).map(function(gn,Yt){return le(gn,Yt,Xn)})}var Fe=Pe,Qe=ae(26112);function Le(tt){var pt=tt;if(!Array.isArray(pt)){var Xn=(0,xe.Z)(pt);pt=Xn==="number"||Xn==="string"?[pt]:[]}return pt.map(function(gn){return String(gn)})}var ut=De.forwardRef(function(tt,pt){var Xn=tt.prefixCls,gn=Xn===void 0?"rc-collapse":Xn,Yt=tt.destroyInactivePanel,jt=Yt===void 0?!1:Yt,Vn=tt.style,ia=tt.accordion,tn=tt.className,Ba=tt.children,Ka=tt.collapsible,Fa=tt.openMotion,kn=tt.expandIcon,za=tt.activeKey,Aa=tt.defaultActiveKey,vr=tt.onChange,ua=tt.items,Tn=we()(gn,tn),da=(0,Ke.Z)([],{value:za,onChange:function(Zt){return vr==null?void 0:vr(Zt)},defaultValue:Aa,postState:Le}),Ea=(0,We.Z)(da,2),xa=Ea[0],_a=Ea[1],En=function(Zt){return _a(function(){if(ia)return xa[0]===Zt?[]:[Zt];var Za=xa.indexOf(Zt),Ca=Za>-1;return Ca?xa.filter(function(Wa){return Wa!==Zt}):[].concat((0,Re.Z)(xa),[Zt])})};(0,Oe.ZP)(!Ba,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var ln=Fe(ua,Ba,{prefixCls:gn,accordion:ia,openMotion:Fa,expandIcon:kn,collapsible:Ka,destroyInactivePanel:jt,onItemClick:En,activeKey:xa});return De.createElement("div",(0,Be.Z)({ref:pt,className:Tn,style:Vn,role:ia?"tablist":void 0},(0,Qe.Z)(tt,{aria:!0,data:!0})),ln)}),Me=Object.assign(ut,{Panel:te}),Ye=Me,Ge=Me.Panel,$e=ae(2738),be=ae(62892),ft=ae(92343),ct=ae(36355),Ft=ae(19716),hn=De.forwardRef((tt,pt)=>{const{getPrefixCls:Xn}=De.useContext(ct.E_),{prefixCls:gn,className:Yt,showArrow:jt=!0}=tt,Vn=Xn("collapse",gn),ia=we()({[`${Vn}-no-arrow`]:!jt},Yt);return De.createElement(Ye.Panel,Object.assign({ref:pt},tt,{prefixCls:Vn,className:ia}))}),Bn=ae(17313),Ut=ae(8378),Pt=ae(83116),Te=ae(37613);const et=tt=>{const{componentCls:pt,contentBg:Xn,padding:gn,headerBg:Yt,headerPadding:jt,collapseHeaderPaddingSM:Vn,collapseHeaderPaddingLG:ia,collapsePanelBorderRadius:tn,lineWidth:Ba,lineType:Ka,colorBorder:Fa,colorText:kn,colorTextHeading:za,colorTextDisabled:Aa,fontSize:vr,fontSizeLG:ua,lineHeight:Tn,marginSM:da,paddingSM:Ea,paddingLG:xa,paddingXS:_a,motionDurationSlow:En,fontSizeIcon:ln,contentPadding:St}=tt,Zt=`${Ba}px ${Ka} ${Fa}`;return{[pt]:Object.assign(Object.assign({},(0,Bn.Wf)(tt)),{backgroundColor:Yt,border:Zt,borderBottom:0,borderRadius:`${tn}px`,"&-rtl":{direction:"rtl"},[`& > ${pt}-item`]:{borderBottom:Zt,"&:last-child":{[` &, - & > ${pt}-header`]:{borderRadius:`0 0 ${nn}px ${nn}px`}},[`> ${pt}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:kt,color:za,lineHeight:Zn,cursor:"pointer",transition:`all ${Sn}, visibility 0s`,[`> ${pt}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${pt}-expand-icon`]:{height:fr*Zn,display:"flex",alignItems:"center",paddingInlineEnd:da},[`${pt}-arrow`]:Object.assign(Object.assign({},(0,Bn.Ro)()),{fontSize:sn,svg:{transition:`transform ${Sn}`}}),[`${pt}-header-text`]:{marginInlineEnd:"auto"}},[`${pt}-header-collapsible-only`]:{cursor:"default",[`${pt}-header-text`]:{flex:"none",cursor:"pointer"}},[`${pt}-icon-collapsible-only`]:{cursor:"default",[`${pt}-expand-icon`]:{cursor:"pointer"}}},[`${pt}-content`]:{color:jn,backgroundColor:Xn,borderTop:Tt,[`& > ${pt}-content-box`]:{padding:Et},"&-hidden":{display:"none"}},"&-small":{[`> ${pt}-item`]:{[`> ${pt}-header`]:{padding:Wn,paddingInlineStart:_a,[`> ${pt}-expand-icon`]:{marginInlineStart:Ea-_a}},[`> ${pt}-content > ${pt}-content-box`]:{padding:Ea}}},"&-large":{[`> ${pt}-item`]:{fontSize:ua,[`> ${pt}-header`]:{padding:ia,paddingInlineStart:mn,[`> ${pt}-expand-icon`]:{height:ua*Zn,marginInlineStart:xa-mn}},[`> ${pt}-content > ${pt}-content-box`]:{padding:xa}}},[`${pt}-item:last-child`]:{[`> ${pt}-content`]:{borderRadius:`0 0 ${nn}px ${nn}px`}},[`& ${pt}-item-disabled > ${pt}-header`]:{"\n &,\n & > .arrow\n ":{color:Aa,cursor:"not-allowed"}},[`&${pt}-icon-position-end`]:{[`& > ${pt}-item`]:{[`> ${pt}-header`]:{[`${pt}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:da}}}}})}},_t=tt=>{const{componentCls:pt}=tt,Xn=`> ${pt}-item > ${pt}-header ${pt}-arrow svg`;return{[`${pt}-rtl`]:{[Xn]:{transform:"rotate(180deg)"}}}},xn=tt=>{const{componentCls:pt,headerBg:Xn,paddingXXS:mn,colorBorder:Ut}=tt;return{[`${pt}-borderless`]:{backgroundColor:Xn,border:0,[`> ${pt}-item`]:{borderBottom:`1px solid ${Ut}`},[` + & > ${pt}-header`]:{borderRadius:`0 0 ${tn}px ${tn}px`}},[`> ${pt}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:jt,color:za,lineHeight:Tn,cursor:"pointer",transition:`all ${En}, visibility 0s`,[`> ${pt}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${pt}-expand-icon`]:{height:vr*Tn,display:"flex",alignItems:"center",paddingInlineEnd:da},[`${pt}-arrow`]:Object.assign(Object.assign({},(0,Bn.Ro)()),{fontSize:ln,svg:{transition:`transform ${En}`}}),[`${pt}-header-text`]:{marginInlineEnd:"auto"}},[`${pt}-header-collapsible-only`]:{cursor:"default",[`${pt}-header-text`]:{flex:"none",cursor:"pointer"}},[`${pt}-icon-collapsible-only`]:{cursor:"default",[`${pt}-expand-icon`]:{cursor:"pointer"}}},[`${pt}-content`]:{color:kn,backgroundColor:Xn,borderTop:Zt,[`& > ${pt}-content-box`]:{padding:St},"&-hidden":{display:"none"}},"&-small":{[`> ${pt}-item`]:{[`> ${pt}-header`]:{padding:Vn,paddingInlineStart:_a,[`> ${pt}-expand-icon`]:{marginInlineStart:Ea-_a}},[`> ${pt}-content > ${pt}-content-box`]:{padding:Ea}}},"&-large":{[`> ${pt}-item`]:{fontSize:ua,[`> ${pt}-header`]:{padding:ia,paddingInlineStart:gn,[`> ${pt}-expand-icon`]:{height:ua*Tn,marginInlineStart:xa-gn}},[`> ${pt}-content > ${pt}-content-box`]:{padding:xa}}},[`${pt}-item:last-child`]:{[`> ${pt}-content`]:{borderRadius:`0 0 ${tn}px ${tn}px`}},[`& ${pt}-item-disabled > ${pt}-header`]:{"\n &,\n & > .arrow\n ":{color:Aa,cursor:"not-allowed"}},[`&${pt}-icon-position-end`]:{[`& > ${pt}-item`]:{[`> ${pt}-header`]:{[`${pt}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:da}}}}})}},Jt=tt=>{const{componentCls:pt}=tt,Xn=`> ${pt}-item > ${pt}-header ${pt}-arrow svg`;return{[`${pt}-rtl`]:{[Xn]:{transform:"rotate(180deg)"}}}},xn=tt=>{const{componentCls:pt,headerBg:Xn,paddingXXS:gn,colorBorder:Yt}=tt;return{[`${pt}-borderless`]:{backgroundColor:Xn,border:0,[`> ${pt}-item`]:{borderBottom:`1px solid ${Yt}`},[` > ${pt}-item:last-child, > ${pt}-item:last-child ${pt}-header - `]:{borderRadius:0},[`> ${pt}-item:last-child`]:{borderBottom:0},[`> ${pt}-item > ${pt}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${pt}-item > ${pt}-content > ${pt}-content-box`]:{paddingTop:mn}}}},It=tt=>{const{componentCls:pt,paddingSM:Xn}=tt;return{[`${pt}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${pt}-item`]:{borderBottom:0,[`> ${pt}-content`]:{backgroundColor:"transparent",border:0,[`> ${pt}-content-box`]:{paddingBlock:Xn}}}}}};var qt=(0,St.Z)("Collapse",tt=>{const pt=(0,Te.TS)(tt,{collapseHeaderPaddingSM:`${tt.paddingXS}px ${tt.paddingSM}px`,collapseHeaderPaddingLG:`${tt.padding}px ${tt.paddingLG}px`,collapsePanelBorderRadius:tt.borderRadiusLG});return[et(pt),xn(pt),It(pt),_t(pt),(0,Qt.Z)(pt)]},tt=>({headerPadding:`${tt.paddingSM}px ${tt.padding}px`,headerBg:tt.colorFillAlter,contentPadding:`${tt.padding}px 16px`,contentBg:tt.colorBgContainer})),rt=Object.assign(De.forwardRef((tt,pt)=>{const{getPrefixCls:Xn,direction:mn,collapse:Ut}=De.useContext(dt.E_),{prefixCls:kt,className:Wn,rootClassName:ia,style:nn,bordered:Ba=!0,ghost:Ka,size:Fa,expandIconPosition:jn="start",children:za,expandIcon:Aa}=tt,fr=(0,Ft.Z)(Tt=>{var Za;return(Za=Fa!=null?Fa:Tt)!==null&&Za!==void 0?Za:"middle"}),ua=Xn("collapse",kt),Zn=Xn(),[da,Ea]=qt(ua),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 Za=Aa?Aa(Tt):De.createElement(b.Z,{rotate:Tt.isActive?90:void 0});return(0,ft.Tm)(Za,()=>({className:we()(Za.props.className,`${ua}-arrow`)}))},Sn=we()(`${ua}-icon-position-${xa}`,{[`${ua}-borderless`]:!Ba,[`${ua}-rtl`]:mn==="rtl",[`${ua}-ghost`]:!!Ka,[`${ua}-${fr}`]:fr!=="middle"},Ut==null?void 0:Ut.className,Wn,ia,Ea),sn=Object.assign(Object.assign({},(0,be.Z)(Zn)),{motionAppear:!1,leavedClassName:`${ua}-content-hidden`}),Et=De.useMemo(()=>za?(0,ze.Z)(za).map((Tt,Za)=>{var Ca,Wa;if(!((Ca=Tt.props)===null||Ca===void 0)&&Ca.disabled){const Da=(Wa=Tt.key)!==null&&Wa!==void 0?Wa:String(Za),{disabled:Ra,collapsible:Br}=Tt.props,nr=Object.assign(Object.assign({},(0,$e.Z)(Tt.props,["disabled"])),{key:Da,collapsible:Br!=null?Br:Ra?"disabled":void 0});return(0,ft.Tm)(Tt,nr)}return Tt}):null,[za]);return da(De.createElement(Ye,Object.assign({ref:pt,openMotion:sn},(0,$e.Z)(tt,["rootClassName"]),{expandIcon:_a,prefixCls:ua,className:Sn,style:Object.assign(Object.assign({},Ut==null?void 0:Ut.style),nn)}),Et))}),{Panel:En}),on=rt},5083:function(ot,jt,ae){"use strict";ae.d(jt,{default:function(){return ps}});var b=ae(66649),Ee=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);Ee().extend(E()),Ee().extend(Ue()),Ee().extend(Re()),Ee().extend(xe()),Ee().extend(Oe()),Ee().extend(ke()),Ee().extend(function(ce,ge){var fe=ge.prototype,Ne=fe.format;fe.format=function(st){var at=(st||"").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 Ee()()},getFixedDate:function(ge){return Ee()(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 Ee()().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 Ee()().locale(x(ge)).localeData().weekdaysMin()},getShortMonths:function(ge){return Ee()().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),st=0;st1&&(at=ge.addDate(at,-7)),at}function Ea(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 st=function(Rn,wt,dn){for(var Tn=wt;Tn<=dn;){var oa=void 0;switch(Rn){case"date":{if(oa=Ie.setDate(ge,Tn),!Ne(oa))return!1;break}case"month":{if(oa=Ie.setMonth(ge,Tn),!Sn({cellDate:oa,mode:"month",generateConfig:Ie,disabledDate:Ne}))return!1;break}case"year":{if(oa=Ie.setYear(ge,Tn),!Sn({cellDate:oa,mode:"year",generateConfig:Ie,disabledDate:Ne}))return!1;break}}Tn+=1}return!0};switch(fe){case"date":case"week":return Ne(ge);case"month":{var at=1,Lt=Ie.getDate(Ie.getEndDate(ge));return st("date",at,Lt)}case"quarter":{var Nt=Math.floor(Ie.getMonth(ge)/3)*3,rn=Nt+2;return st("month",Nt,rn)}case"year":return st("month",0,11);case"decade":{var Kn=Ie.getYear(ge),Vt=Math.floor(Kn/Ut)*Ut,fn=Vt+Ut-1;return st("year",Vt,fn)}}}function sn(ce,ge){var fe=ge.formatList,Ne=ge.generateConfig,Ie=ge.locale;return(0,Xn.Z)(function(){if(!ce)return[[""],""];for(var st="",at=[],Lt=0;Lt1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(rn.current),Tn){Nt(dn);return}rn.current=requestAnimationFrame(function(){Nt(dn)})}var Vt=sn(Lt,{formatList:fe,generateConfig:Ne,locale:Ie}),fn=(0,on.Z)(Vt,2),Mn=fn[1];function Rn(dn){Kn(dn)}function wt(){var dn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Kn(null,dn)}return(0,le.useEffect)(function(){wt(!0)},[ce]),(0,le.useEffect)(function(){return function(){return cancelAnimationFrame(rn.current)}},[]),[Mn,Rn,wt]}var Tt=ae(10228),Za=ae(16089),Ca=ae(77654),Wa=ae(29194),Da=new Map;function Ra(ce,ge){var fe;function Ne(){(0,Wa.Z)(ce)?ge():fe=(0,Za.Z)(function(){Ne()})}return Ne(),function(){Za.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 nr(ce,ge){var fe=ge.onLeftRight,Ne=ge.onCtrlLeftRight,Ie=ge.onUpDown,st=ge.onPageUpDown,at=ge.onEnter,Lt=ce.which,Nt=ce.ctrlKey,rn=ce.metaKey;switch(Lt){case Tt.Z.LEFT:if(Nt||rn){if(Ne)return Ne(-1),!0}else if(fe)return fe(-1),!0;break;case Tt.Z.RIGHT:if(Nt||rn){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(st)return st(-1),!0;break;case Tt.Z.PAGE_DOWN:if(st)return st(1),!0;break;case Tt.Z.ENTER:if(at)return at(),!0;break}return!1}function Rr(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 Mo(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 Yt=null,Yn=new Set;function ea(ce){return!Yt&&typeof window!="undefined"&&window.addEventListener&&(Yt=function(fe){(0,Ca.Z)(Yn).forEach(function(Ne){Ne(fe)})},window.addEventListener("mousedown",Yt)),Yn.add(ce),function(){Yn.delete(ce),Yn.size===0&&(window.removeEventListener("mousedown",Yt),Yt=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},en=function(ge){return ge==="month"||ge==="date"?"quarter":ge},pn=function(ge){return ge==="date"?"week":ge},Rt={year:Ze,month:Mt,quarter:en,week:pn,time:null,date:null};function Qn(ce,ge){return ce.some(function(fe){return fe&&fe.contains(ge)})}function _n(ce){var ge=ce.open,fe=ce.value,Ne=ce.isClickOutside,Ie=ce.triggerOpen,st=ce.forwardKeyDown,at=ce.onKeyDown,Lt=ce.blurToCancel,Nt=ce.onSubmit,rn=ce.onCancel,Kn=ce.onFocus,Vt=ce.onBlur,fn=ce.changeOnBlur,Mn=(0,le.useState)(!1),Rn=(0,on.Z)(Mn,2),wt=Rn[0],dn=Rn[1],Tn=(0,le.useState)(!1),oa=(0,on.Z)(Tn,2),Sa=oa[0],gn=oa[1],ka=(0,le.useRef)(!1),Ta=(0,le.useRef)(!1),ha=(0,le.useRef)(!1),Jr={onMouseDown:function(){dn(!0),Ie(!0)},onKeyDown:function(Ur){var so=function(){ha.current=!0};if(at(Ur,so),!ha.current){switch(Ur.which){case Tt.Z.ENTER:{ge?Nt()!==!1&&dn(!0):Ie(!0),Ur.preventDefault();return}case Tt.Z.TAB:{wt&&ge&&!Ur.shiftKey?(dn(!1),Ur.preventDefault()):!wt&&ge&&!st(Ur)&&Ur.shiftKey&&(dn(!0),Ur.preventDefault());return}case Tt.Z.ESC:{dn(!0),rn();return}}!ge&&![Tt.Z.SHIFT].includes(Ur.which)?Ie(!0):wt||st(Ur)}},onFocus:function(Ur){dn(!0),gn(!0),Kn&&Kn(Ur)},onBlur:function(Ur){if(ka.current||!Ne(document.activeElement)){ka.current=!1;return}Lt?setTimeout(function(){for(var so=document,Fo=so.activeElement;Fo&&Fo.shadowRoot;)Fo=Fo.shadowRoot.activeElement;Ne(Fo)&&rn()},0):ge&&(Ie(!1),Ta.current&&Nt()),gn(!1),Vt==null||Vt(Ur)}};return(0,le.useEffect)(function(){Ta.current=!1},[ge]),(0,le.useEffect)(function(){Ta.current=!0},[fe]),(0,le.useEffect)(function(){return ea(function(Pr){var Ur=ba(Pr),so=Ne(Ur);ge&&(so?!fn&&(!Sa||so)&&Ie(!1):(ka.current=!0,(0,Za.Z)(function(){ka.current=!1})))})}),[Jr,{focused:Sa,typing:wt}]}function Je(ce,ge){return le.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,on.Z)(fe,2),Ie=Ne[0],st=Ne[1];return{label:Ie,value:st}})):[])},[ce,ge])}var nt=ae(34280);function Xe(ce){var ge=ce.valueTexts,fe=ce.onTextChange,Ne=le.useState(""),Ie=(0,on.Z)(Ne,2),st=Ie[0],at=Ie[1],Lt=le.useRef([]);Lt.current=ge;function Nt(Kn){at(Kn),fe(Kn)}function rn(){at(Lt.current[0])}return(0,nt.Z)(function(){ge.every(function(Kn){return Kn!==st})&&rn()},[ge.join("||")]),[st,Nt,rn]}var ln=le.createContext({}),Cn=ln,Nn=ae(43749);function wa(ce){var ge=ce.cellRender,fe=ce.monthCellRender,Ne=ce.dateRender,Ie=le.useMemo(function(){if(ge)return ge;if(!(!fe&&!Ne))return function(st,at){var Lt=st;return Ne&&at.type==="date"?Ne(Lt,at.today):fe&&at.type==="month"?fe(Lt,at.locale):at.originNode}},[ge,fe,Ne]);return Ie}function pa(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+=st)Ie.push({label:pa(at,2),value:at,disabled:(Ne||[]).includes(at)});return Ie}function $r(ce){var ge=ce.generateConfig,fe=ce.prefixCls,Ne=ce.operationRef,Ie=ce.activeColumnIndex,st=ce.value,at=ce.showHour,Lt=ce.showMinute,Nt=ce.showSecond,rn=ce.use12Hours,Kn=ce.hourStep,Vt=Kn===void 0?1:Kn,fn=ce.minuteStep,Mn=fn===void 0?1:fn,Rn=ce.secondStep,wt=Rn===void 0?1:Rn,dn=ce.disabledHours,Tn=ce.disabledMinutes,oa=ce.disabledSeconds,Sa=ce.disabledTime,gn=ce.hideDisabledOptions,ka=ce.onSelect,Ta=ce.cellRender,ha=ce.locale,Jr=[],Pr="".concat(fe,"-content"),Ur="".concat(fe,"-time-panel"),so,Fo=st?ge.getHour(st):-1,xo=Fo,ll=st?ge.getMinute(st):-1,Gn=st?ge.getSecond(st):-1,co=ge.getNow(),Po=le.useMemo(function(){if(Sa){var mo=Sa(co);return[mo.disabledHours,mo.disabledMinutes,mo.disabledSeconds]}return[dn,Tn,oa]},[dn,Tn,oa,Sa,co]),jo=(0,on.Z)(Po,3),Zo=jo[0],Bo=jo[1],$o=jo[2],bl=Ar(0,23,Vt,Zo&&Zo()),jr=(0,Xn.Z)(function(){return bl},bl,tr);rn&&(so=xo>=12,xo%=12);var el=le.useMemo(function(){if(!rn)return[!1,!1];var mo=[!0,!0];return jr.forEach(function(ul){var tl=ul.disabled,Xo=ul.value;tl||(Xo>=12?mo[1]=!1:mo[0]=!1)}),mo},[rn,jr]),No=(0,on.Z)(el,2),Ml=No[0],il=No[1],Pl=le.useMemo(function(){return rn?jr.filter(so?function(mo){return mo.value>=12}:function(mo){return mo.value<12}).map(function(mo){var ul=mo.value%12,tl=ul===0?"12":pa(ul,2);return(0,rt.Z)((0,rt.Z)({},mo),{},{label:tl,value:ul})}):jr},[rn,so,jr]),wo=Ar(0,59,Mn,Bo&&Bo(Fo)),Vl=Ar(0,59,wt,$o&&$o(Fo,ll)),Nl=La({value:st,generateConfig:ge,disabledMinutes:Bo,disabledSeconds:$o,minutes:wo,seconds:Vl,use12Hours:rn});Ne.current={onUpDown:function(ul){var tl=Jr[Ie];if(tl)for(var Xo=tl.units.findIndex(function(xi){return xi.value===tl.value}),El=tl.units.length,gl=1;gl2&&arguments[2]!==void 0?arguments[2]:!1;(ml===dn||nl)&&(Si(Qa),Jr&&Jr(Qa),Nl&&Nl(Qa,Or),Pr&&!ua(Nt,Qa,Yl)&&!(Mn!=null&&Mn(Qa))&&Pr(Qa))},_l=function(Qa){if(Fr.includes(ml)){var Or,nl,gi=ml==="date";switch(Qa===Tt.Z.PAGE_UP||Qa===Tt.Z.PAGE_DOWN?nl=gi?Nt.addMonth:Nt.addYear:nl=gi?Nt.addDate:Nt.addMonth,Qa){case Tt.Z.LEFT:case Tt.Z.PAGE_UP:Or=nl(Hl,-1);break;case Tt.Z.RIGHT:case Tt.Z.PAGE_DOWN:Or=nl(Hl,1);break;case Tt.Z.UP:case Tt.Z.DOWN:Or=nl(Hl,Number("".concat(Qa===Tt.Z.UP?"-":"").concat(gi?Wn:ar)));break}if(Or)return!(Mn!=null&&Mn(Or))}return!0},Vi=function(Qa){if(gl.current&&gl.current.onKeyDown){var Or=!0,nl=Qa.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(nl)&&(Qa.preventDefault(),nl!==Tt.Z.ENTER&&oa===0&&(Or=_l(nl))),Or)return gl.current.onKeyDown(Qa)}return(0,we.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},qo=function(Qa){gl.current&&gl.current.onBlur&&gl.current.onBlur(Qa)};Vl&&tl!=="right"&&(Vl.current={onKeyDown:Vi,onClose:function(){gl.current&&gl.current.onClose&&gl.current.onClose()}}),le.useEffect(function(){rn&&!Rl.current&&Fn(rn)},[rn]),le.useEffect(function(){Rl.current=!1},[]);var ni,Li=wa({cellRender:el,monthCellRender:jr,dateRender:bl}),Go=(0,rt.Z)((0,rt.Z)({},ce),{},{cellRender:Li,operationRef:gl,prefixCls:Ie,viewDate:Hl,value:Yl,onViewDateChange:Kl,sourceMode:Il,onPanelChange:Di,disabledDate:Mn});switch(delete Go.onChange,delete Go.onSelect,ml){case"decade":ni=le.createElement(ht,(0,se.Z)({},Go,{onSelect:function(Qa,Or){Kl(Qa),dl(Qa,Or)}}));break;case"year":ni=le.createElement(yn,(0,se.Z)({},Go,{onSelect:function(Qa,Or){Kl(Qa),dl(Qa,Or)}}));break;case"month":ni=le.createElement(dr,(0,se.Z)({},Go,{onSelect:function(Qa,Or){Kl(Qa),dl(Qa,Or)}}));break;case"quarter":ni=le.createElement(sa,(0,se.Z)({},Go,{onSelect:function(Qa,Or){Kl(Qa),dl(Qa,Or)}}));break;case"week":ni=le.createElement(Hn,(0,se.Z)({},Go,{onSelect:function(Qa,Or){Kl(Qa),dl(Qa,Or)}}));break;case"time":delete Go.showTime,ni=le.createElement(Fl,(0,se.Z)({},Go,(0,Nn.Z)(gn)==="object"?gn:null,{onSelect:function(Qa,Or){Kl(Qa),dl(Qa,Or)}}));break;default:gn?ni=le.createElement(Ao,(0,se.Z)({},Go,{onSelect:function(Qa,Or){Kl(Qa),dl(Qa,Or)}})):ni=le.createElement(Va,(0,se.Z)({},Go,{onSelect:function(Qa,Or){Kl(Qa),dl(Qa,Or)}}))}var Ri,ja,ci=function(){var Qa=Nt.getNow(),Or=Ua(Nt.getHour(Qa),Nt.getMinute(Qa),Nt.getSecond(Qa),Ml?Po:1,il?Zo:1,Pl?$o:1),nl=Gt(Nt,Qa,Or[0],Or[1],Or[2]);dl(nl,"submit")};$l||(Ri=Ia(Ie,ml,Ta),gn&&ml!=="date"?ja=null:ja=cr({prefixCls:Ie,components:ll,needConfirmButton:No,okDisabled:!Yl||Mn&&Mn(Yl),locale:Lt,showNow:Sa,onNow:No&&ci,onOk:function(){Yl&&(dl(Yl,"submit",!0),xo&&xo(Yl))}}));var uu;if(ka&&ml==="date"&&dn==="date"&&!gn){var ki=Nt.getNow(),Ti="".concat(Ie,"-today-btn"),Wi=Mn&&Mn(ki);uu=le.createElement("a",{className:Te()(Ti,Wi&&"".concat(Ti,"-disabled")),"aria-disabled":Wi,onClick:function(){Wi||dl(ki,"mouse",!0)}},Lt.today)}return le.createElement(Cn.Provider,{value:(0,rt.Z)((0,rt.Z)({},wo),{},{mode:ml,hideHeader:"hideHeader"in ce?ha:wo.hideHeader,hidePrevBtn:ul&&tl==="right",hideNextBtn:ul&&tl==="left"})},le.createElement("div",{tabIndex:oa,className:Te()("".concat(Ie,"-panel"),st,(ge={},(0,Ce.Z)(ge,"".concat(Ie,"-panel-has-range"),Xo&&Xo[0]&&Xo[1]),(0,Ce.Z)(ge,"".concat(Ie,"-panel-has-range-hover"),El&&El[0]&&El[1]),(0,Ce.Z)(ge,"".concat(Ie,"-panel-rtl"),Gn==="rtl"),ge)),style:at,onKeyDown:Vi,onBlur:qo,onMouseDown:so},ni,Ri||ja||uu?le.createElement("div",{className:"".concat(Ie,"-footer")},Ri,ja,uu):null))}var va=ma,rr=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 Jo(ce){var ge,fe=ce.prefixCls,Ne=ce.popupElement,Ie=ce.popupStyle,st=ce.visible,at=ce.dropdownClassName,Lt=ce.dropdownAlign,Nt=ce.transitionName,rn=ce.getPopupContainer,Kn=ce.children,Vt=ce.range,fn=ce.popupPlacement,Mn=ce.direction,Rn="".concat(fe,"-dropdown"),wt=function(){return fn!==void 0?fn:Mn==="rtl"?"bottomRight":"bottomLeft"};return le.createElement(rr.Z,{showAction:[],hideAction:[],popupPlacement:wt(),builtinPlacements:Er,prefixCls:Rn,popupTransitionName:Nt,popup:Ne,popupAlign:Lt,popupVisible:st,popupClassName:Te()(at,(ge={},(0,Ce.Z)(ge,"".concat(Rn,"-range"),Vt),(0,Ce.Z)(ge,"".concat(Rn,"-rtl"),Mn==="rtl"),ge)),popupStyle:Ie,getPopupContainer:rn},Kn)}var sl=Jo;function Qo(ce){var ge=ce.prefixCls,fe=ce.presets,Ne=ce.onClick,Ie=ce.onHover;return fe.length?le.createElement("div",{className:"".concat(ge,"-presets")},le.createElement("ul",null,fe.map(function(st,at){var Lt=st.label,Nt=st.value;return le.createElement("li",{key:at,onClick:function(){return Ne==null?void 0:Ne(Ma(Nt))},onMouseEnter:function(){return Ie==null?void 0:Ie(Ma(Nt))},onMouseLeave:function(){return Ie==null?void 0:Ie(null)}},Lt)}))):null}function ol(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 hl(ce,ge,fe){var Ne=(0,Nn.Z)(ge)==="object"?ge.clearIcon:fe;return Ne||le.createElement("span",{className:"".concat(ce,"-clear-btn")})}function Cl(ce){var ge,fe=ce,Ne=fe.prefixCls,Ie=Ne===void 0?"rc-picker":Ne,st=fe.id,at=fe.name,Lt=fe.tabIndex,Nt=fe.style,rn=fe.className,Kn=fe.dropdownClassName,Vt=fe.dropdownAlign,fn=fe.popupStyle,Mn=fe.transitionName,Rn=fe.generateConfig,wt=fe.locale,dn=fe.inputReadOnly,Tn=fe.allowClear,oa=fe.autoFocus,Sa=fe.showTime,gn=fe.picker,ka=gn===void 0?"date":gn,Ta=fe.format,ha=fe.use12Hours,Jr=fe.value,Pr=fe.defaultValue,Ur=fe.presets,so=fe.open,Fo=fe.defaultOpen,xo=fe.defaultOpenValue,ll=fe.suffixIcon,Gn=fe.clearIcon,co=fe.disabled,Po=fe.disabledDate,jo=fe.placeholder,Zo=fe.getPopupContainer,Bo=fe.pickerRef,$o=fe.panelRender,bl=fe.onChange,jr=fe.onOpenChange,el=fe.onFocus,No=fe.onBlur,Ml=fe.onMouseDown,il=fe.onMouseUp,Pl=fe.onMouseEnter,wo=fe.onMouseLeave,Vl=fe.onContextMenu,Nl=fe.onClick,$l=fe.onKeyDown,ii=fe.onSelect,mo=fe.direction,ul=fe.autoComplete,tl=ul===void 0?"off":ul,Xo=fe.inputRender,El=fe.changeOnBlur,gl=le.useRef(null),Rl=ka==="date"&&!!Sa||ka==="time",xi=Je(Ur),Ei=ya(Rr(Ta,ka,Sa,ha)),Yl=le.useRef(null),Si=le.useRef(null),cu=le.useRef(null),lu=(0,tt.Z)(null,{value:Jr,defaultValue:Pr}),Hl=(0,on.Z)(lu,2),Fn=Hl[0],Kl=Hl[1],iu=le.useState(Fn),Mi=(0,on.Z)(iu,2),ei=Mi[0],ml=Mi[1],ti=le.useRef(null),wi=(0,tt.Z)(!1,{value:so,defaultValue:Fo,postState:function(Dt){return co?!1:Dt},onChange:function(Dt){jr&&jr(Dt),!Dt&&ti.current&&ti.current.onClose&&ti.current.onClose()}}),Sl=(0,on.Z)(wi,2),Il=Sl[0],Co=Sl[1],Di=sn(ei,{formatList:Ei,generateConfig:Rn,locale:wt}),dl=(0,on.Z)(Di,2),_l=dl[0],Vi=dl[1],qo=Xe({valueTexts:_l,onTextChange:function(Dt){var yt=_a(Dt,{locale:wt,formatList:Ei,generateConfig:Rn});yt&&(!Po||!Po(yt))&&ml(yt)}}),ni=(0,on.Z)(qo,3),Li=ni[0],Go=ni[1],Ri=ni[2],ja=function(Dt){ml(Dt),Kl(Dt),bl&&!ua(Rn,Fn,Dt)&&bl(Dt,Dt?xa(Dt,{generateConfig:Rn,locale:wt,format:Ei[0]}):"")},ci=function(Dt){co&&Dt||Co(Dt)},uu=function(Dt){return Il&&ti.current&&ti.current.onKeyDown?ti.current.onKeyDown(Dt):((0,we.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},ki=function(){for(var Dt=arguments.length,yt=new Array(Dt),Bt=0;Btfn(rn);case"month":return Vt(wt)>Vt(rn);case"week":return Kn(wt)>Kn(rn);default:return!za(Lt,wt,rn)&&Lt.isAfter(wt,rn)}return!1},[st,at[1],rn,ge]),Rn=le.useCallback(function(wt){if(at[1]||st&&st(wt))return!0;if(at[0]&&Nt)return!za(Lt,wt,rn)&&Lt.isAfter(Nt,wt);if(!ge&&Nt)switch(fe){case"quarter":return fn(wt)0&&arguments[0]!==void 0?arguments[0]:!1,Oa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yr=null;Se&&vl&&vl[0]&&vl[1]&&wt.isAfter(vl[1],vl[0])&&(yr=vl);var Vr=ha;if(ha&&(0,Nn.Z)(ha)==="object"&&ha.defaultValue){var Ko=ha.defaultValue;Vr=(0,rt.Z)((0,rt.Z)({},ha),{},{defaultValue:qn(Ko,he)||void 0})}return le.createElement($a.Provider,{value:{inRange:!0,panelPosition:zr,rangedValue:zl||Zr,hoverRangedValue:yr}},le.createElement(va,(0,se.Z)({},ce,Oa,{cellRender:kl,showTime:Vr,mode:gi[he],generateConfig:wt,style:void 0,direction:Hl,disabledDate:he===0?tn:In,disabledTime:function(vi){return Po?Po(vi,he===0?"start":"end"):!1},className:Te()((0,Ce.Z)({},"".concat(at,"-panel-focused"),he===0?!Nu:!br)),value:qn(Zr,he),locale:dn,tabIndex:-1,onPanelChange:function(vi,Xi){he===0&&Xl(!0),he===1&&Ul(!0),Au(zt(gi,Xi,he),zt(Zr,vi,he));var Ii=vi;zr==="right"&&gi[he]===Xi&&(Ii=Ea(Ii,Xi,wt,-1)),ki(Ii,he)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:he===0?qn(Zr,1):qn(Zr,0)})))}var Ki=0,_i=0;if(he&&wi.current&&Il.current&&ti.current&&dl.current){Ki=wi.current.offsetWidth+Il.current.offsetWidth;var hs=dl.current.offsetLeft>Ki?dl.current.offsetLeft-Ki:dl.current.offsetLeft,qu=ti.current.offsetWidth,$u=dl.current.offsetWidth;qu&&$u&&Ki>qu-$u-(Hl==="rtl"?0:hs)&&(_i=Ki)}var es=Hl==="rtl"?{right:Ki}:{left:Ki};function Es(){var zr,Oa=Ia(at,gi[he],Nl),yr=cr({prefixCls:at,components:cu,needConfirmButton:ei,okDisabled:!qn(Zr,he)||co&&co(Zr[he]),locale:dn,onOk:function(){var Fi=qn(Zr,he);Fi&&(Bt(Zr,he),Yl==null||Yl(Zr),bt(!1,he,"confirm"))}});if(Ta!=="time"&&!ha){var Vr=uu(he),Ko=Ea(Vr,Ta,wt),Ji=gi[he],vi=Ji===Ta,Xi=Hi(vi?"left":!1,{pickerValue:Vr,onPickerValueChange:function(Fi){ki(Fi,he)}}),Ii=Hi("right",{pickerValue:Ko,onPickerValueChange:function(Fi){ki(Ea(Fi,Ta,wt,-1),he)}});Hl==="rtl"?zr=le.createElement(le.Fragment,null,Ii,vi&&Xi):zr=le.createElement(le.Fragment,null,Xi,vi&&Ii)}else zr=Hi();var mu=le.createElement("div",{className:"".concat(at,"-panel-layout")},le.createElement(Qo,{prefixCls:at,presets:bu,onClick:function(Fi){Bt(Fi,null),bt(!1,he,"preset")},onHover:function(Fi){Jl(Fi)}}),le.createElement("div",null,le.createElement("div",{className:"".concat(at,"-panels")},zr),(Oa||yr)&&le.createElement("div",{className:"".concat(at,"-footer")},Oa,yr)));return $o&&(mu=$o(mu)),le.createElement("div",{className:"".concat(at,"-panel-container"),style:{marginLeft:_i},ref:ti,onMouseDown:function(Fi){Fi.preventDefault()}},mu)}var ts=le.createElement("div",{className:Te()("".concat(at,"-range-wrapper"),"".concat(at,"-").concat(Ta,"-range-wrapper")),style:{minWidth:mt}},le.createElement("div",{ref:dl,className:"".concat(at,"-range-arrow"),style:es}),Es()),ns;Ml&&(ns=le.createElement("span",{className:"".concat(at,"-suffix"),onMouseDown:function(Oa){Oa.preventDefault()}},Ml));var ta=hl(at,No,il),or=le.createElement("span",{onMouseDown:function(Oa){Oa.preventDefault(),Oa.stopPropagation()},onMouseUp:function(Oa){Oa.preventDefault(),Oa.stopPropagation();var yr=Go;qo[0]||(yr=zt(yr,null,0)),qo[1]||(yr=zt(yr,null,1)),Bt(yr,null),bt(!1,he,"clear")},className:"".concat(at,"-clear"),role:"button"},ta),Xr=No&&(qn(Go,0)&&!qo[0]||qn(Go,1)&&!qo[1]),io={size:Mo(Ta,_l[0],wt)},po=0,Hr=0;wi.current&&Sl.current&&Il.current&&(he===0?Hr=wi.current.offsetWidth:(po=Ki,Hr=Sl.current.offsetWidth));var ho=Hl==="rtl"?{right:po}:{left:po},Yo=function(Oa,yr){var Vr=zt(Zr,Oa,he);if(yr==="submit"||yr!=="key"&&!ei){Bt(Vr,he),he===0?Xl():Ul();var Ko=he===0?1:0;qo[Ko]?bt(!1,!1,"confirm"):bt(!1,he,"confirm")}else Qa(Vr)};return le.createElement(Cn.Provider,{value:{operationRef:Vi,hideHeader:Ta==="time",onDateMouseEnter:mi,onDateMouseLeave:cl,hideRanges:!0,onSelect:Yo,open:Se}},le.createElement(sl,{visible:Se,popupElement:ts,popupStyle:Kn,prefixCls:at,dropdownClassName:Vt,dropdownAlign:Mn,getPopupContainer:Rn,transitionName:fn,range:!0,direction:Hl},le.createElement("div",(0,se.Z)({ref:ml,className:Te()(at,"".concat(at,"-range"),rn,(ge={},(0,Ce.Z)(ge,"".concat(at,"-disabled"),qo[0]&&qo[1]),(0,Ce.Z)(ge,"".concat(at,"-focused"),he===0?Yi:_r),(0,Ce.Z)(ge,"".concat(at,"-rtl"),Hl==="rtl"),ge)),style:Nt,onClick:Mr,onMouseEnter:Rl,onMouseLeave:xi,onMouseDown:fo,onMouseUp:gl},(0,pt.Z)(ce,{aria:!0,data:!0})),le.createElement("div",{className:Te()("".concat(at,"-input"),(fe={},(0,Ce.Z)(fe,"".concat(at,"-input-active"),he===0),(0,Ce.Z)(fe,"".concat(at,"-input-placeholder"),!!Ho),fe)),ref:wi},le.createElement("input",(0,se.Z)({id:Lt,disabled:qo[0],readOnly:wo||typeof _l[0]=="function"||!Nu,value:Ho||Lr,onChange:function(Oa){Lo(Oa.target.value)},autoFocus:oa,placeholder:qn(Tn,0)||"",ref:Co},tu,io,{autoComplete:iu}))),le.createElement("div",{className:"".concat(at,"-range-separator"),ref:Il},Ur),le.createElement("div",{className:Te()("".concat(at,"-input"),(Ne={},(0,Ce.Z)(Ne,"".concat(at,"-input-active"),he===1),(0,Ce.Z)(Ne,"".concat(at,"-input-placeholder"),!!yl),Ne)),ref:Sl},le.createElement("input",(0,se.Z)({disabled:qo[1],readOnly:wo||typeof _l[0]=="function"||!br,value:yl||fl,onChange:function(Oa){xl(Oa.target.value)},placeholder:qn(Tn,1)||"",ref:Di},Kt,io,{autoComplete:iu}))),le.createElement("div",{className:"".concat(at,"-active-bar"),style:(0,rt.Z)((0,rt.Z)({},ho),{},{width:Hr,position:"absolute"})}),ns,Xr&&or)))}var Zl=function(ce){(0,It.Z)(fe,ce);var ge=(0,qt.Z)(fe);function fe(){var Ne;(0,et.Z)(this,fe);for(var Ie=arguments.length,st=new Array(Ie),at=0;at{const{lineHeight:Ie}=ce,st=Math.floor(fe*Ie)+2,at=Math.max((ge-st)/2,0),Lt=Math.max(ge-st-at,0);return{padding:`${at}px ${Ne}px ${Lt}px`}},us=ce=>{const{componentCls:ge,pickerCellCls:fe,pickerCellInnerCls:Ne,cellHeight:Ie,motionDurationSlow:st,borderRadiusSM:at,motionDurationMid:Lt,cellHoverBg:Nt,lineWidth:rn,lineType:Kn,colorPrimary:Vt,cellActiveWithRangeBg:fn,colorTextLightSolid:Mn,controlHeightSM:Rn,cellRangeBorderColor:wt,pickerCellBorderGap:dn,cellHoverWithRangeBg:Tn,cellWidth:oa,colorTextDisabled:Sa,cellBgDisabled:gn}=ce;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:Ie,transform:"translateY(-50%)",transition:`all ${st}`,content:'""'},[Ne]:{position:"relative",zIndex:2,display:"inline-block",minWidth:Ie,height:Ie,lineHeight:`${Ie}px`,borderRadius:at,transition:`background ${Lt}, border ${Lt}`},"&-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:Nt}},[`&-in-view${fe}-today ${Ne}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${rn}px ${Kn} ${Vt}`,borderRadius:at,content:'""'}},[`&-in-view${fe}-in-range`]:{position:"relative","&::before":{background:fn}},[`&-in-view${fe}-selected ${Ne}, + `]:{borderRadius:0},[`> ${pt}-item:last-child`]:{borderBottom:0},[`> ${pt}-item > ${pt}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${pt}-item > ${pt}-content > ${pt}-content-box`]:{paddingTop:gn}}}},Mt=tt=>{const{componentCls:pt,paddingSM:Xn}=tt;return{[`${pt}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${pt}-item`]:{borderBottom:0,[`> ${pt}-content`]:{backgroundColor:"transparent",border:0,[`> ${pt}-content-box`]:{paddingBlock:Xn}}}}}};var qt=(0,Pt.Z)("Collapse",tt=>{const pt=(0,Te.TS)(tt,{collapseHeaderPaddingSM:`${tt.paddingXS}px ${tt.paddingSM}px`,collapseHeaderPaddingLG:`${tt.padding}px ${tt.paddingLG}px`,collapsePanelBorderRadius:tt.borderRadiusLG});return[et(pt),xn(pt),Mt(pt),Jt(pt),(0,Ut.Z)(pt)]},tt=>({headerPadding:`${tt.paddingSM}px ${tt.padding}px`,headerBg:tt.colorFillAlter,contentPadding:`${tt.padding}px 16px`,contentBg:tt.colorBgContainer})),rt=Object.assign(De.forwardRef((tt,pt)=>{const{getPrefixCls:Xn,direction:gn,collapse:Yt}=De.useContext(ct.E_),{prefixCls:jt,className:Vn,rootClassName:ia,style:tn,bordered:Ba=!0,ghost:Ka,size:Fa,expandIconPosition:kn="start",children:za,expandIcon:Aa}=tt,vr=(0,Ft.Z)(Zt=>{var Za;return(Za=Fa!=null?Fa:Zt)!==null&&Za!==void 0?Za:"middle"}),ua=Xn("collapse",jt),Tn=Xn(),[da,Ea]=qt(ua),xa=De.useMemo(()=>kn==="left"?"start":kn==="right"?"end":kn,[kn]),_a=function(){let Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const Za=Aa?Aa(Zt):De.createElement(b.Z,{rotate:Zt.isActive?90:void 0});return(0,ft.Tm)(Za,()=>({className:we()(Za.props.className,`${ua}-arrow`)}))},En=we()(`${ua}-icon-position-${xa}`,{[`${ua}-borderless`]:!Ba,[`${ua}-rtl`]:gn==="rtl",[`${ua}-ghost`]:!!Ka,[`${ua}-${vr}`]:vr!=="middle"},Yt==null?void 0:Yt.className,Vn,ia,Ea),ln=Object.assign(Object.assign({},(0,be.Z)(Tn)),{motionAppear:!1,leavedClassName:`${ua}-content-hidden`}),St=De.useMemo(()=>za?(0,ze.Z)(za).map((Zt,Za)=>{var Ca,Wa;if(!((Ca=Zt.props)===null||Ca===void 0)&&Ca.disabled){const Da=(Wa=Zt.key)!==null&&Wa!==void 0?Wa:String(Za),{disabled:Ra,collapsible:xr}=Zt.props,ar=Object.assign(Object.assign({},(0,$e.Z)(Zt.props,["disabled"])),{key:Da,collapsible:xr!=null?xr:Ra?"disabled":void 0});return(0,ft.Tm)(Zt,ar)}return Zt}):null,[za]);return da(De.createElement(Ye,Object.assign({ref:pt,openMotion:ln},(0,$e.Z)(tt,["rootClassName"]),{expandIcon:_a,prefixCls:ua,className:En,style:Object.assign(Object.assign({},Yt==null?void 0:Yt.style),tn)}),St))}),{Panel:hn}),rn=rt},5083:function(ot,Gt,ae){"use strict";ae.d(Gt,{default:function(){return ps}});var b=ae(66649),Ee=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);Ee().extend(E()),Ee().extend(Ue()),Ee().extend(Re()),Ee().extend(xe()),Ee().extend(Oe()),Ee().extend(ke()),Ee().extend(function(ce,ge){var fe=ge.prototype,Ne=fe.format;fe.format=function(st){var at=(st||"").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 Ee()()},getFixedDate:function(ge){return Ee()(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 Ee()().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 Ee()().locale(x(ge)).localeData().weekdaysMin()},getShortMonths:function(ge){return Ee()().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),st=0;st1&&(at=ge.addDate(at,-7)),at}function Ea(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 En(ce){var ge=ce.cellDate,fe=ce.mode,Ne=ce.disabledDate,Ie=ce.generateConfig;if(!Ne)return!1;var st=function(On,Dt,un){for(var Rn=Dt;Rn<=un;){var oa=void 0;switch(On){case"date":{if(oa=Ie.setDate(ge,Rn),!Ne(oa))return!1;break}case"month":{if(oa=Ie.setMonth(ge,Rn),!En({cellDate:oa,mode:"month",generateConfig:Ie,disabledDate:Ne}))return!1;break}case"year":{if(oa=Ie.setYear(ge,Rn),!En({cellDate:oa,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,It=Ie.getDate(Ie.getEndDate(ge));return st("date",at,It)}case"quarter":{var Ot=Math.floor(Ie.getMonth(ge)/3)*3,an=Ot+2;return st("month",Ot,an)}case"year":return st("month",0,11);case"decade":{var Yn=Ie.getYear(ge),Qt=Math.floor(Yn/Yt)*Yt,mn=Qt+Yt-1;return st("year",Qt,mn)}}}function ln(ce,ge){var fe=ge.formatList,Ne=ge.generateConfig,Ie=ge.locale;return(0,Xn.Z)(function(){if(!ce)return[[""],""];for(var st="",at=[],It=0;It1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(an.current),Rn){Ot(un);return}an.current=requestAnimationFrame(function(){Ot(un)})}var Qt=ln(It,{formatList:fe,generateConfig:Ne,locale:Ie}),mn=(0,rn.Z)(Qt,2),In=mn[1];function On(un){Yn(un)}function Dt(){var un=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Yn(null,un)}return(0,le.useEffect)(function(){Dt(!0)},[ce]),(0,le.useEffect)(function(){return function(){return cancelAnimationFrame(an.current)}},[]),[In,On,Dt]}var Zt=ae(10228),Za=ae(16089),Ca=ae(77654),Wa=ae(29194),Da=new Map;function Ra(ce,ge){var fe;function Ne(){(0,Wa.Z)(ce)?ge():fe=(0,Za.Z)(function(){Ne()})}return Ne(),function(){Za.Z.cancel(fe)}}function xr(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&&xr(ce,ge,fe-10)}))}function ar(ce,ge){var fe=ge.onLeftRight,Ne=ge.onCtrlLeftRight,Ie=ge.onUpDown,st=ge.onPageUpDown,at=ge.onEnter,It=ce.which,Ot=ce.ctrlKey,an=ce.metaKey;switch(It){case Zt.Z.LEFT:if(Ot||an){if(Ne)return Ne(-1),!0}else if(fe)return fe(-1),!0;break;case Zt.Z.RIGHT:if(Ot||an){if(Ne)return Ne(1),!0}else if(fe)return fe(1),!0;break;case Zt.Z.UP:if(Ie)return Ie(-1),!0;break;case Zt.Z.DOWN:if(Ie)return Ie(1),!0;break;case Zt.Z.PAGE_UP:if(st)return st(-1),!0;break;case Zt.Z.PAGE_DOWN:if(st)return st(1),!0;break;case Zt.Z.ENTER:if(at)return at(),!0;break}return!1}function kr(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 Mo(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 Kt=null,Un=new Set;function $n(ce){return!Kt&&typeof window!="undefined"&&window.addEventListener&&(Kt=function(fe){(0,Ca.Z)(Un).forEach(function(Ne){Ne(fe)})},window.addEventListener("mousedown",Kt)),Un.add(ce),function(){Un.delete(ce),Un.size===0&&(window.removeEventListener("mousedown",Kt),Kt=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},kt=function(ge){return ge==="date"?"month":ge},$t=function(ge){return ge==="month"||ge==="date"?"quarter":ge},vn=function(ge){return ge==="date"?"week":ge},Tt={year:Ze,month:kt,quarter:$t,week:vn,time:null,date:null};function Wn(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,st=ce.forwardKeyDown,at=ce.onKeyDown,It=ce.blurToCancel,Ot=ce.onSubmit,an=ce.onCancel,Yn=ce.onFocus,Qt=ce.onBlur,mn=ce.changeOnBlur,In=(0,le.useState)(!1),On=(0,rn.Z)(In,2),Dt=On[0],un=On[1],Rn=(0,le.useState)(!1),oa=(0,rn.Z)(Rn,2),Sa=oa[0],cn=oa[1],ka=(0,le.useRef)(!1),Ta=(0,le.useRef)(!1),ha=(0,le.useRef)(!1),Xr={onMouseDown:function(){un(!0),Ie(!0)},onKeyDown:function(Yr){var so=function(){ha.current=!0};if(at(Yr,so),!ha.current){switch(Yr.which){case Zt.Z.ENTER:{ge?Ot()!==!1&&un(!0):Ie(!0),Yr.preventDefault();return}case Zt.Z.TAB:{Dt&&ge&&!Yr.shiftKey?(un(!1),Yr.preventDefault()):!Dt&&ge&&!st(Yr)&&Yr.shiftKey&&(un(!0),Yr.preventDefault());return}case Zt.Z.ESC:{un(!0),an();return}}!ge&&![Zt.Z.SHIFT].includes(Yr.which)?Ie(!0):Dt||st(Yr)}},onFocus:function(Yr){un(!0),cn(!0),Yn&&Yn(Yr)},onBlur:function(Yr){if(ka.current||!Ne(document.activeElement)){ka.current=!1;return}It?setTimeout(function(){for(var so=document,Fo=so.activeElement;Fo&&Fo.shadowRoot;)Fo=Fo.shadowRoot.activeElement;Ne(Fo)&&an()},0):ge&&(Ie(!1),Ta.current&&Ot()),cn(!1),Qt==null||Qt(Yr)}};return(0,le.useEffect)(function(){Ta.current=!1},[ge]),(0,le.useEffect)(function(){Ta.current=!0},[fe]),(0,le.useEffect)(function(){return $n(function(Ar){var Yr=ba(Ar),so=Ne(Yr);ge&&(so?!mn&&(!Sa||so)&&Ie(!1):(ka.current=!0,(0,Za.Z)(function(){ka.current=!1})))})}),[Xr,{focused:Sa,typing:Dt}]}function Je(ce,ge){return le.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,rn.Z)(fe,2),Ie=Ne[0],st=Ne[1];return{label:Ie,value:st}})):[])},[ce,ge])}var nt=ae(34280);function Xe(ce){var ge=ce.valueTexts,fe=ce.onTextChange,Ne=le.useState(""),Ie=(0,rn.Z)(Ne,2),st=Ie[0],at=Ie[1],It=le.useRef([]);It.current=ge;function Ot(Yn){at(Yn),fe(Yn)}function an(){at(It.current[0])}return(0,nt.Z)(function(){ge.every(function(Yn){return Yn!==st})&&an()},[ge.join("||")]),[st,Ot,an]}var on=le.createContext({}),Cn=on,Ln=ae(43749);function wa(ce){var ge=ce.cellRender,fe=ce.monthCellRender,Ne=ce.dateRender,Ie=le.useMemo(function(){if(ge)return ge;if(!(!fe&&!Ne))return function(st,at){var It=st;return Ne&&at.type==="date"?Ne(It,at.today):fe&&at.type==="month"?fe(It,at.locale):at.originNode}},[ge,fe,Ne]);return Ie}function pa(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+=st)Ie.push({label:pa(at,2),value:at,disabled:(Ne||[]).includes(at)});return Ie}function eo(ce){var ge=ce.generateConfig,fe=ce.prefixCls,Ne=ce.operationRef,Ie=ce.activeColumnIndex,st=ce.value,at=ce.showHour,It=ce.showMinute,Ot=ce.showSecond,an=ce.use12Hours,Yn=ce.hourStep,Qt=Yn===void 0?1:Yn,mn=ce.minuteStep,In=mn===void 0?1:mn,On=ce.secondStep,Dt=On===void 0?1:On,un=ce.disabledHours,Rn=ce.disabledMinutes,oa=ce.disabledSeconds,Sa=ce.disabledTime,cn=ce.hideDisabledOptions,ka=ce.onSelect,Ta=ce.cellRender,ha=ce.locale,Xr=[],Ar="".concat(fe,"-content"),Yr="".concat(fe,"-time-panel"),so,Fo=st?ge.getHour(st):-1,xo=Fo,ll=st?ge.getMinute(st):-1,jn=st?ge.getSecond(st):-1,co=ge.getNow(),Po=le.useMemo(function(){if(Sa){var mo=Sa(co);return[mo.disabledHours,mo.disabledMinutes,mo.disabledSeconds]}return[un,Rn,oa]},[un,Rn,oa,Sa,co]),jo=(0,rn.Z)(Po,3),Zo=jo[0],Bo=jo[1],$o=jo[2],bl=yr(0,23,Qt,Zo&&Zo()),Zr=(0,Xn.Z)(function(){return bl},bl,tr);an&&(so=xo>=12,xo%=12);var el=le.useMemo(function(){if(!an)return[!1,!1];var mo=[!0,!0];return Zr.forEach(function(ul){var tl=ul.disabled,Xo=ul.value;tl||(Xo>=12?mo[1]=!1:mo[0]=!1)}),mo},[an,Zr]),No=(0,rn.Z)(el,2),Ml=No[0],il=No[1],Pl=le.useMemo(function(){return an?Zr.filter(so?function(mo){return mo.value>=12}:function(mo){return mo.value<12}).map(function(mo){var ul=mo.value%12,tl=ul===0?"12":pa(ul,2);return(0,rt.Z)((0,rt.Z)({},mo),{},{label:tl,value:ul})}):Zr},[an,so,Zr]),wo=yr(0,59,In,Bo&&Bo(Fo)),Vl=yr(0,59,Dt,$o&&$o(Fo,ll)),Nl=La({value:st,generateConfig:ge,disabledMinutes:Bo,disabledSeconds:$o,minutes:wo,seconds:Vl,use12Hours:an});Ne.current={onUpDown:function(ul){var tl=Xr[Ie];if(tl)for(var Xo=tl.units.findIndex(function(xi){return xi.value===tl.value}),El=tl.units.length,gl=1;gl2&&arguments[2]!==void 0?arguments[2]:!1;(ml===un||nl)&&(Si(Qa),Xr&&Xr(Qa),Nl&&Nl(Qa,Mr),Ar&&!ua(Ot,Qa,Yl)&&!(In!=null&&In(Qa))&&Ar(Qa))},_l=function(Qa){if(Cr.includes(ml)){var Mr,nl,gi=ml==="date";switch(Qa===Zt.Z.PAGE_UP||Qa===Zt.Z.PAGE_DOWN?nl=gi?Ot.addMonth:Ot.addYear:nl=gi?Ot.addDate:Ot.addMonth,Qa){case Zt.Z.LEFT:case Zt.Z.PAGE_UP:Mr=nl(Hl,-1);break;case Zt.Z.RIGHT:case Zt.Z.PAGE_DOWN:Mr=nl(Hl,1);break;case Zt.Z.UP:case Zt.Z.DOWN:Mr=nl(Hl,Number("".concat(Qa===Zt.Z.UP?"-":"").concat(gi?Vn:rr)));break}if(Mr)return!(In!=null&&In(Mr))}return!0},Vi=function(Qa){if(gl.current&&gl.current.onKeyDown){var Mr=!0,nl=Qa.which;if([Zt.Z.LEFT,Zt.Z.RIGHT,Zt.Z.UP,Zt.Z.DOWN,Zt.Z.PAGE_UP,Zt.Z.PAGE_DOWN,Zt.Z.ENTER].includes(nl)&&(Qa.preventDefault(),nl!==Zt.Z.ENTER&&oa===0&&(Mr=_l(nl))),Mr)return gl.current.onKeyDown(Qa)}return(0,we.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},qo=function(Qa){gl.current&&gl.current.onBlur&&gl.current.onBlur(Qa)};Vl&&tl!=="right"&&(Vl.current={onKeyDown:Vi,onClose:function(){gl.current&&gl.current.onClose&&gl.current.onClose()}}),le.useEffect(function(){an&&!Rl.current&&Fn(an)},[an]),le.useEffect(function(){Rl.current=!1},[]);var ni,Li=wa({cellRender:el,monthCellRender:Zr,dateRender:bl}),Go=(0,rt.Z)((0,rt.Z)({},ce),{},{cellRender:Li,operationRef:gl,prefixCls:Ie,viewDate:Hl,value:Yl,onViewDateChange:Kl,sourceMode:Il,onPanelChange:Di,disabledDate:In});switch(delete Go.onChange,delete Go.onSelect,ml){case"decade":ni=le.createElement(ht,(0,se.Z)({},Go,{onSelect:function(Qa,Mr){Kl(Qa),dl(Qa,Mr)}}));break;case"year":ni=le.createElement(yn,(0,se.Z)({},Go,{onSelect:function(Qa,Mr){Kl(Qa),dl(Qa,Mr)}}));break;case"month":ni=le.createElement(cr,(0,se.Z)({},Go,{onSelect:function(Qa,Mr){Kl(Qa),dl(Qa,Mr)}}));break;case"quarter":ni=le.createElement(sa,(0,se.Z)({},Go,{onSelect:function(Qa,Mr){Kl(Qa),dl(Qa,Mr)}}));break;case"week":ni=le.createElement(Gn,(0,se.Z)({},Go,{onSelect:function(Qa,Mr){Kl(Qa),dl(Qa,Mr)}}));break;case"time":delete Go.showTime,ni=le.createElement(Fl,(0,se.Z)({},Go,(0,Ln.Z)(cn)==="object"?cn:null,{onSelect:function(Qa,Mr){Kl(Qa),dl(Qa,Mr)}}));break;default:cn?ni=le.createElement(Ao,(0,se.Z)({},Go,{onSelect:function(Qa,Mr){Kl(Qa),dl(Qa,Mr)}})):ni=le.createElement(Va,(0,se.Z)({},Go,{onSelect:function(Qa,Mr){Kl(Qa),dl(Qa,Mr)}}))}var Ri,ja,ci=function(){var Qa=Ot.getNow(),Mr=Ua(Ot.getHour(Qa),Ot.getMinute(Qa),Ot.getSecond(Qa),Ml?Po:1,il?Zo:1,Pl?$o:1),nl=Vt(Ot,Qa,Mr[0],Mr[1],Mr[2]);dl(nl,"submit")};$l||(Ri=Ia(Ie,ml,Ta),cn&&ml!=="date"?ja=null:ja=gr({prefixCls:Ie,components:ll,needConfirmButton:No,okDisabled:!Yl||In&&In(Yl),locale:It,showNow:Sa,onNow:No&&ci,onOk:function(){Yl&&(dl(Yl,"submit",!0),xo&&xo(Yl))}}));var uu;if(ka&&ml==="date"&&un==="date"&&!cn){var ki=Ot.getNow(),Ti="".concat(Ie,"-today-btn"),Wi=In&&In(ki);uu=le.createElement("a",{className:Te()(Ti,Wi&&"".concat(Ti,"-disabled")),"aria-disabled":Wi,onClick:function(){Wi||dl(ki,"mouse",!0)}},It.today)}return le.createElement(Cn.Provider,{value:(0,rt.Z)((0,rt.Z)({},wo),{},{mode:ml,hideHeader:"hideHeader"in ce?ha:wo.hideHeader,hidePrevBtn:ul&&tl==="right",hideNextBtn:ul&&tl==="left"})},le.createElement("div",{tabIndex:oa,className:Te()("".concat(Ie,"-panel"),st,(ge={},(0,Ce.Z)(ge,"".concat(Ie,"-panel-has-range"),Xo&&Xo[0]&&Xo[1]),(0,Ce.Z)(ge,"".concat(Ie,"-panel-has-range-hover"),El&&El[0]&&El[1]),(0,Ce.Z)(ge,"".concat(Ie,"-panel-rtl"),jn==="rtl"),ge)),style:at,onKeyDown:Vi,onBlur:qo,onMouseDown:so},ni,Ri||ja||uu?le.createElement("div",{className:"".concat(Ie,"-footer")},Ri,ja,uu):null))}var va=ma,or=ae(35593),Sr={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 Jo(ce){var ge,fe=ce.prefixCls,Ne=ce.popupElement,Ie=ce.popupStyle,st=ce.visible,at=ce.dropdownClassName,It=ce.dropdownAlign,Ot=ce.transitionName,an=ce.getPopupContainer,Yn=ce.children,Qt=ce.range,mn=ce.popupPlacement,In=ce.direction,On="".concat(fe,"-dropdown"),Dt=function(){return mn!==void 0?mn:In==="rtl"?"bottomRight":"bottomLeft"};return le.createElement(or.Z,{showAction:[],hideAction:[],popupPlacement:Dt(),builtinPlacements:Sr,prefixCls:On,popupTransitionName:Ot,popup:Ne,popupAlign:It,popupVisible:st,popupClassName:Te()(at,(ge={},(0,Ce.Z)(ge,"".concat(On,"-range"),Qt),(0,Ce.Z)(ge,"".concat(On,"-rtl"),In==="rtl"),ge)),popupStyle:Ie,getPopupContainer:an},Yn)}var sl=Jo;function Qo(ce){var ge=ce.prefixCls,fe=ce.presets,Ne=ce.onClick,Ie=ce.onHover;return fe.length?le.createElement("div",{className:"".concat(ge,"-presets")},le.createElement("ul",null,fe.map(function(st,at){var It=st.label,Ot=st.value;return le.createElement("li",{key:at,onClick:function(){return Ne==null?void 0:Ne(Ma(Ot))},onMouseEnter:function(){return Ie==null?void 0:Ie(Ma(Ot))},onMouseLeave:function(){return Ie==null?void 0:Ie(null)}},It)}))):null}function ol(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 hl(ce,ge,fe){var Ne=(0,Ln.Z)(ge)==="object"?ge.clearIcon:fe;return Ne||le.createElement("span",{className:"".concat(ce,"-clear-btn")})}function Cl(ce){var ge,fe=ce,Ne=fe.prefixCls,Ie=Ne===void 0?"rc-picker":Ne,st=fe.id,at=fe.name,It=fe.tabIndex,Ot=fe.style,an=fe.className,Yn=fe.dropdownClassName,Qt=fe.dropdownAlign,mn=fe.popupStyle,In=fe.transitionName,On=fe.generateConfig,Dt=fe.locale,un=fe.inputReadOnly,Rn=fe.allowClear,oa=fe.autoFocus,Sa=fe.showTime,cn=fe.picker,ka=cn===void 0?"date":cn,Ta=fe.format,ha=fe.use12Hours,Xr=fe.value,Ar=fe.defaultValue,Yr=fe.presets,so=fe.open,Fo=fe.defaultOpen,xo=fe.defaultOpenValue,ll=fe.suffixIcon,jn=fe.clearIcon,co=fe.disabled,Po=fe.disabledDate,jo=fe.placeholder,Zo=fe.getPopupContainer,Bo=fe.pickerRef,$o=fe.panelRender,bl=fe.onChange,Zr=fe.onOpenChange,el=fe.onFocus,No=fe.onBlur,Ml=fe.onMouseDown,il=fe.onMouseUp,Pl=fe.onMouseEnter,wo=fe.onMouseLeave,Vl=fe.onContextMenu,Nl=fe.onClick,$l=fe.onKeyDown,ii=fe.onSelect,mo=fe.direction,ul=fe.autoComplete,tl=ul===void 0?"off":ul,Xo=fe.inputRender,El=fe.changeOnBlur,gl=le.useRef(null),Rl=ka==="date"&&!!Sa||ka==="time",xi=Je(Yr),Ei=ya(kr(Ta,ka,Sa,ha)),Yl=le.useRef(null),Si=le.useRef(null),cu=le.useRef(null),lu=(0,tt.Z)(null,{value:Xr,defaultValue:Ar}),Hl=(0,rn.Z)(lu,2),Fn=Hl[0],Kl=Hl[1],iu=le.useState(Fn),Mi=(0,rn.Z)(iu,2),ei=Mi[0],ml=Mi[1],ti=le.useRef(null),wi=(0,tt.Z)(!1,{value:so,defaultValue:Fo,postState:function(xt){return co?!1:xt},onChange:function(xt){Zr&&Zr(xt),!xt&&ti.current&&ti.current.onClose&&ti.current.onClose()}}),Sl=(0,rn.Z)(wi,2),Il=Sl[0],Co=Sl[1],Di=ln(ei,{formatList:Ei,generateConfig:On,locale:Dt}),dl=(0,rn.Z)(Di,2),_l=dl[0],Vi=dl[1],qo=Xe({valueTexts:_l,onTextChange:function(xt){var Pn=_a(xt,{locale:Dt,formatList:Ei,generateConfig:On});Pn&&(!Po||!Po(Pn))&&ml(Pn)}}),ni=(0,rn.Z)(qo,3),Li=ni[0],Go=ni[1],Ri=ni[2],ja=function(xt){ml(xt),Kl(xt),bl&&!ua(On,Fn,xt)&&bl(xt,xt?xa(xt,{generateConfig:On,locale:Dt,format:Ei[0]}):"")},ci=function(xt){co&&xt||Co(xt)},uu=function(xt){return Il&&ti.current&&ti.current.onKeyDown?ti.current.onKeyDown(xt):((0,we.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},ki=function(){for(var xt=arguments.length,Pn=new Array(xt),Et=0;Etmn(an);case"month":return Qt(Dt)>Qt(an);case"week":return Yn(Dt)>Yn(an);default:return!za(It,Dt,an)&&It.isAfter(Dt,an)}return!1},[st,at[1],an,ge]),On=le.useCallback(function(Dt){if(at[1]||st&&st(Dt))return!0;if(at[0]&&Ot)return!za(It,Dt,an)&&It.isAfter(Ot,Dt);if(!ge&&Ot)switch(fe){case"quarter":return mn(Dt)0&&arguments[0]!==void 0?arguments[0]:!1,Oa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Fr=null;Se&&vl&&vl[0]&&vl[1]&&Dt.isAfter(vl[1],vl[0])&&(Fr=vl);var Wr=ha;if(ha&&(0,Ln.Z)(ha)==="object"&&ha.defaultValue){var Ko=ha.defaultValue;Wr=(0,rt.Z)((0,rt.Z)({},ha),{},{defaultValue:qn(Ko,he)||void 0})}return le.createElement($a.Provider,{value:{inRange:!0,panelPosition:Vr,rangedValue:zl||Gr,hoverRangedValue:Fr}},le.createElement(va,(0,se.Z)({},ce,Oa,{cellRender:kl,showTime:Wr,mode:gi[he],generateConfig:Dt,style:void 0,direction:Hl,disabledDate:he===0?en:ra,disabledTime:function(vi){return Po?Po(vi,he===0?"start":"end"):!1},className:Te()((0,Ce.Z)({},"".concat(at,"-panel-focused"),he===0?!Nu:!Br)),value:qn(Gr,he),locale:un,tabIndex:-1,onPanelChange:function(vi,Xi){he===0&&Xl(!0),he===1&&Ul(!0),Au(Wt(gi,Xi,he),Wt(Gr,vi,he));var Ii=vi;Vr==="right"&&gi[he]===Xi&&(Ii=Ea(Ii,Xi,Dt,-1)),ki(Ii,he)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:he===0?qn(Gr,1):qn(Gr,0)})))}var Ki=0,_i=0;if(he&&wi.current&&Il.current&&ti.current&&dl.current){Ki=wi.current.offsetWidth+Il.current.offsetWidth;var hs=dl.current.offsetLeft>Ki?dl.current.offsetLeft-Ki:dl.current.offsetLeft,qu=ti.current.offsetWidth,$u=dl.current.offsetWidth;qu&&$u&&Ki>qu-$u-(Hl==="rtl"?0:hs)&&(_i=Ki)}var es=Hl==="rtl"?{right:Ki}:{left:Ki};function Es(){var Vr,Oa=Ia(at,gi[he],Nl),Fr=gr({prefixCls:at,components:cu,needConfirmButton:ei,okDisabled:!qn(Gr,he)||co&&co(Gr[he]),locale:un,onOk:function(){var Fi=qn(Gr,he);Fi&&(Et(Gr,he),Yl==null||Yl(Gr),bt(!1,he,"confirm"))}});if(Ta!=="time"&&!ha){var Wr=uu(he),Ko=Ea(Wr,Ta,Dt),Ji=gi[he],vi=Ji===Ta,Xi=Hi(vi?"left":!1,{pickerValue:Wr,onPickerValueChange:function(Fi){ki(Fi,he)}}),Ii=Hi("right",{pickerValue:Ko,onPickerValueChange:function(Fi){ki(Ea(Fi,Ta,Dt,-1),he)}});Hl==="rtl"?Vr=le.createElement(le.Fragment,null,Ii,vi&&Xi):Vr=le.createElement(le.Fragment,null,Xi,vi&&Ii)}else Vr=Hi();var mu=le.createElement("div",{className:"".concat(at,"-panel-layout")},le.createElement(Qo,{prefixCls:at,presets:bu,onClick:function(Fi){Et(Fi,null),bt(!1,he,"preset")},onHover:function(Fi){Jl(Fi)}}),le.createElement("div",null,le.createElement("div",{className:"".concat(at,"-panels")},Vr),(Oa||Fr)&&le.createElement("div",{className:"".concat(at,"-footer")},Oa,Fr)));return $o&&(mu=$o(mu)),le.createElement("div",{className:"".concat(at,"-panel-container"),style:{marginLeft:_i},ref:ti,onMouseDown:function(Fi){Fi.preventDefault()}},mu)}var ts=le.createElement("div",{className:Te()("".concat(at,"-range-wrapper"),"".concat(at,"-").concat(Ta,"-range-wrapper")),style:{minWidth:dt}},le.createElement("div",{ref:dl,className:"".concat(at,"-range-arrow"),style:es}),Es()),ns;Ml&&(ns=le.createElement("span",{className:"".concat(at,"-suffix"),onMouseDown:function(Oa){Oa.preventDefault()}},Ml));var ea=hl(at,No,il),lr=le.createElement("span",{onMouseDown:function(Oa){Oa.preventDefault(),Oa.stopPropagation()},onMouseUp:function(Oa){Oa.preventDefault(),Oa.stopPropagation();var Fr=Go;qo[0]||(Fr=Wt(Fr,null,0)),qo[1]||(Fr=Wt(Fr,null,1)),Et(Fr,null),bt(!1,he,"clear")},className:"".concat(at,"-clear"),role:"button"},ea),qr=No&&(qn(Go,0)&&!qo[0]||qn(Go,1)&&!qo[1]),io={size:Mo(Ta,_l[0],Dt)},po=0,zr=0;wi.current&&Sl.current&&Il.current&&(he===0?zr=wi.current.offsetWidth:(po=Ki,zr=Sl.current.offsetWidth));var ho=Hl==="rtl"?{right:po}:{left:po},Yo=function(Oa,Fr){var Wr=Wt(Gr,Oa,he);if(Fr==="submit"||Fr!=="key"&&!ei){Et(Wr,he),he===0?Xl():Ul();var Ko=he===0?1:0;qo[Ko]?bt(!1,!1,"confirm"):bt(!1,he,"confirm")}else Qa(Wr)};return le.createElement(Cn.Provider,{value:{operationRef:Vi,hideHeader:Ta==="time",onDateMouseEnter:mi,onDateMouseLeave:cl,hideRanges:!0,onSelect:Yo,open:Se}},le.createElement(sl,{visible:Se,popupElement:ts,popupStyle:Yn,prefixCls:at,dropdownClassName:Qt,dropdownAlign:In,getPopupContainer:On,transitionName:mn,range:!0,direction:Hl},le.createElement("div",(0,se.Z)({ref:ml,className:Te()(at,"".concat(at,"-range"),an,(ge={},(0,Ce.Z)(ge,"".concat(at,"-disabled"),qo[0]&&qo[1]),(0,Ce.Z)(ge,"".concat(at,"-focused"),he===0?Yi:Jr),(0,Ce.Z)(ge,"".concat(at,"-rtl"),Hl==="rtl"),ge)),style:Ot,onClick:Rr,onMouseEnter:Rl,onMouseLeave:xi,onMouseDown:fo,onMouseUp:gl},(0,pt.Z)(ce,{aria:!0,data:!0})),le.createElement("div",{className:Te()("".concat(at,"-input"),(fe={},(0,Ce.Z)(fe,"".concat(at,"-input-active"),he===0),(0,Ce.Z)(fe,"".concat(at,"-input-placeholder"),!!Ho),fe)),ref:wi},le.createElement("input",(0,se.Z)({id:It,disabled:qo[0],readOnly:wo||typeof _l[0]=="function"||!Nu,value:Ho||Ir,onChange:function(Oa){Lo(Oa.target.value)},autoFocus:oa,placeholder:qn(Rn,0)||"",ref:Co},tu,io,{autoComplete:iu}))),le.createElement("div",{className:"".concat(at,"-range-separator"),ref:Il},Yr),le.createElement("div",{className:Te()("".concat(at,"-input"),(Ne={},(0,Ce.Z)(Ne,"".concat(at,"-input-active"),he===1),(0,Ce.Z)(Ne,"".concat(at,"-input-placeholder"),!!yl),Ne)),ref:Sl},le.createElement("input",(0,se.Z)({disabled:qo[1],readOnly:wo||typeof _l[0]=="function"||!Br,value:yl||fl,onChange:function(Oa){xl(Oa.target.value)},placeholder:qn(Rn,1)||"",ref:Di},_t,io,{autoComplete:iu}))),le.createElement("div",{className:"".concat(at,"-active-bar"),style:(0,rt.Z)((0,rt.Z)({},ho),{},{width:zr,position:"absolute"})}),ns,qr&&lr)))}var Zl=function(ce){(0,Mt.Z)(fe,ce);var ge=(0,qt.Z)(fe);function fe(){var Ne;(0,et.Z)(this,fe);for(var Ie=arguments.length,st=new Array(Ie),at=0;at{const{lineHeight:Ie}=ce,st=Math.floor(fe*Ie)+2,at=Math.max((ge-st)/2,0),It=Math.max(ge-st-at,0);return{padding:`${at}px ${Ne}px ${It}px`}},us=ce=>{const{componentCls:ge,pickerCellCls:fe,pickerCellInnerCls:Ne,cellHeight:Ie,motionDurationSlow:st,borderRadiusSM:at,motionDurationMid:It,cellHoverBg:Ot,lineWidth:an,lineType:Yn,colorPrimary:Qt,cellActiveWithRangeBg:mn,colorTextLightSolid:In,controlHeightSM:On,cellRangeBorderColor:Dt,pickerCellBorderGap:un,cellHoverWithRangeBg:Rn,cellWidth:oa,colorTextDisabled:Sa,cellBgDisabled:cn}=ce;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:Ie,transform:"translateY(-50%)",transition:`all ${st}`,content:'""'},[Ne]:{position:"relative",zIndex:2,display:"inline-block",minWidth:Ie,height:Ie,lineHeight:`${Ie}px`,borderRadius:at,transition:`background ${It}, border ${It}`},"&-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:Ot}},[`&-in-view${fe}-today ${Ne}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${an}px ${Yn} ${Qt}`,borderRadius:at,content:'""'}},[`&-in-view${fe}-in-range`]:{position:"relative","&::before":{background:mn}},[`&-in-view${fe}-selected ${Ne}, &-in-view${fe}-range-start ${Ne}, - &-in-view${fe}-range-end ${Ne}`]:{color:Mn,background:Vt},[`&-in-view${fe}-range-start:not(${fe}-range-start-single), - &-in-view${fe}-range-end:not(${fe}-range-end-single)`]:{"&::before":{background:fn}},[`&-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-end ${Ne}`]:{color:In,background:Qt},[`&-in-view${fe}-range-start:not(${fe}-range-start-single), + &-in-view${fe}-range-end:not(${fe}-range-end-single)`]:{"&::before":{background:mn}},[`&-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, &-in-view${fe}-range-hover-start${fe}-range-start${fe}-range-end${fe}-range-end-near-hover, &-in-view${fe}-range-hover-end${fe}-range-start${fe}-range-end${fe}-range-start-near-hover, &-in-view${fe}-range-hover-end${fe}-range-end-single, - &-in-view${fe}-range-hover:not(${fe}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:Rn,borderTop:`${rn}px dashed ${wt}`,borderBottom:`${rn}px dashed ${wt}`,transform:"translateY(-50%)",transition:`all ${st}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:dn},[`&-in-view${fe}-in-range${fe}-range-hover::before, + &-in-view${fe}-range-hover:not(${fe}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:On,borderTop:`${an}px dashed ${Dt}`,borderBottom:`${an}px dashed ${Dt}`,transform:"translateY(-50%)",transition:`all ${st}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:un},[`&-in-view${fe}-in-range${fe}-range-hover::before, &-in-view${fe}-in-range${fe}-range-hover-start::before, &-in-view${fe}-in-range${fe}-range-hover-end::before, &-in-view${fe}-range-start${fe}-range-hover::before, @@ -296,24 +296,24 @@ ${Ba} &-in-view${fe}-in-range${fe}-range-hover-start::before, ${ge}-panel > :not(${ge}-date-panel) - &-in-view${fe}-in-range${fe}-range-hover-end::before`]:{background:Tn},[`&-in-view${fe}-range-start:not(${fe}-range-start-single):not(${fe}-range-end) ${Ne}`]:{borderStartStartRadius:at,borderEndStartRadius:at,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${fe}-range-end:not(${fe}-range-end-single):not(${fe}-range-start) ${Ne}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:at,borderEndEndRadius:at},[`&-range-hover${fe}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${fe}-range-hover:first-child::after, + &-in-view${fe}-in-range${fe}-range-hover-end::before`]:{background:Rn},[`&-in-view${fe}-range-start:not(${fe}-range-start-single):not(${fe}-range-end) ${Ne}`]:{borderStartStartRadius:at,borderEndStartRadius:at,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${fe}-range-end:not(${fe}-range-end-single):not(${fe}-range-start) ${Ne}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:at,borderEndEndRadius:at},[`&-range-hover${fe}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${fe}-range-hover:first-child::after, 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:(oa-Ie)/2,borderInlineStart:`${rn}px dashed ${wt}`,borderStartStartRadius:at,borderEndStartRadius:at},[`tr > &-in-view${fe}-range-hover:last-child::after, + &-in-view${fe}-range-hover-start::after`]:{insetInlineStart:(oa-Ie)/2,borderInlineStart:`${an}px dashed ${Dt}`,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:(oa-Ie)/2,borderInlineEnd:`${rn}px dashed ${wt}`,borderStartEndRadius:at,borderEndEndRadius:at},"&-disabled":{color:Sa,pointerEvents:"none",[Ne]:{background:"transparent"},"&::before":{background:gn}},[`&-disabled${fe}-today ${Ne}::before`]:{borderColor:Sa}}},Ju=ce=>{const{componentCls:ge,pickerCellCls:fe,pickerCellInnerCls:Ne,pickerYearMonthCellWidth:Ie,pickerControlIconSize:st,cellWidth:at,paddingSM:Lt,paddingXS:Nt,paddingXXS:rn,colorBgContainer:Kn,lineWidth:Vt,lineType:fn,borderRadiusLG:Mn,colorPrimary:Rn,colorTextHeading:wt,colorSplit:dn,pickerControlIconBorderWidth:Tn,colorIcon:oa,textHeight:Sa,motionDurationMid:gn,colorIconHover:ka,fontWeightStrong:Ta,cellHeight:ha,pickerCellPaddingVertical:Jr,colorTextDisabled:Pr,colorText:Ur,fontSize:so,cellHoverWithRangeBg:Fo,motionDurationSlow:xo,withoutTimeCellHeight:ll,pickerQuarterPanelContentHeight:Gn,colorLink:co,colorLinkActive:Po,colorLinkHover:jo,cellRangeBorderColor:Zo,borderRadiusSM:Bo,colorTextLightSolid:$o,cellHoverBg:bl,timeColumnHeight:jr,timeColumnWidth:el,timeCellHeight:No,controlItemBgActive:Ml,marginXXS:il,pickerDatePanelPaddingHorizontal:Pl}=ce,wo=at*7+Pl*2,Vl=(wo-Nt*2)/3-Ie-Lt,Nl=(wo-Nt*2)/4-Ie;return{[ge]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:Kn,border:`${Vt}px ${fn} ${dn}`,borderRadius:Mn,outline:"none","&-focused":{borderColor:Rn},"&-rtl":{direction:"rtl",[`${ge}-prev-icon, + &-in-view${fe}-range-hover-end::after`]:{insetInlineEnd:(oa-Ie)/2,borderInlineEnd:`${an}px dashed ${Dt}`,borderStartEndRadius:at,borderEndEndRadius:at},"&-disabled":{color:Sa,pointerEvents:"none",[Ne]:{background:"transparent"},"&::before":{background:cn}},[`&-disabled${fe}-today ${Ne}::before`]:{borderColor:Sa}}},Ju=ce=>{const{componentCls:ge,pickerCellCls:fe,pickerCellInnerCls:Ne,pickerYearMonthCellWidth:Ie,pickerControlIconSize:st,cellWidth:at,paddingSM:It,paddingXS:Ot,paddingXXS:an,colorBgContainer:Yn,lineWidth:Qt,lineType:mn,borderRadiusLG:In,colorPrimary:On,colorTextHeading:Dt,colorSplit:un,pickerControlIconBorderWidth:Rn,colorIcon:oa,textHeight:Sa,motionDurationMid:cn,colorIconHover:ka,fontWeightStrong:Ta,cellHeight:ha,pickerCellPaddingVertical:Xr,colorTextDisabled:Ar,colorText:Yr,fontSize:so,cellHoverWithRangeBg:Fo,motionDurationSlow:xo,withoutTimeCellHeight:ll,pickerQuarterPanelContentHeight:jn,colorLink:co,colorLinkActive:Po,colorLinkHover:jo,cellRangeBorderColor:Zo,borderRadiusSM:Bo,colorTextLightSolid:$o,cellHoverBg:bl,timeColumnHeight:Zr,timeColumnWidth:el,timeCellHeight:No,controlItemBgActive:Ml,marginXXS:il,pickerDatePanelPaddingHorizontal:Pl}=ce,wo=at*7+Pl*2,Vl=(wo-Ot*2)/3-Ie-It,Nl=(wo-Ot*2)/4-Ie;return{[ge]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:Yn,border:`${Qt}px ${mn} ${un}`,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:wo},"&-header":{display:"flex",padding:`0 ${Nt}px`,color:wt,borderBottom:`${Vt}px ${fn} ${dn}`,"> *":{flex:"none"},button:{padding:0,color:oa,lineHeight:`${Sa}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${gn}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:so,"&:hover":{color:ka}},"&-view":{flex:"auto",fontWeight:Ta,lineHeight:`${Sa}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:Nt},"&:hover":{color:Rn}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:st,height:st,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:st,height:st,border:"0 solid currentcolor",borderBlockStartWidth:Tn,borderBlockEndWidth:0,borderInlineStartWidth:Tn,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(st/2),insetInlineStart:Math.ceil(st/2),display:"inline-block",width:st,height:st,border:"0 solid currentcolor",borderBlockStartWidth:Tn,borderBlockEndWidth:0,borderInlineStartWidth:Tn,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:Ur,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Jr}px 0`,color:Pr,cursor:"pointer","&-in-view":{color:Ur}},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:wo},"&-header":{display:"flex",padding:`0 ${Ot}px`,color:Dt,borderBottom:`${Qt}px ${mn} ${un}`,"> *":{flex:"none"},button:{padding:0,color:oa,lineHeight:`${Sa}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${cn}`,fontSize:"inherit"},"> button":{minWidth:"1.6em",fontSize:so,"&:hover":{color:ka}},"&-view":{flex:"auto",fontWeight:Ta,lineHeight:`${Sa}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:Ot},"&:hover":{color:On}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:st,height:st,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:st,height:st,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(st/2),insetInlineStart:Math.ceil(st/2),display:"inline-block",width:st,height:st,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+Xr*2,color:Yr,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Xr}px 0`,color:Ar,cursor:"pointer","&-in-view":{color:Yr}},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:Fo,transition:`all ${xo}`,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:ll*4},[Ne]:{padding:`0 ${Nt}px`}},"&-quarter-panel":{[`${ge}-content`]:{height:Gn},[`${ge}-cell-range-hover-start::after`]:{insetInlineStart:Nl,borderInlineStart:`${Vt}px dashed ${Zo}`,[`${ge}-panel-rtl &`]:{insetInlineEnd:Nl,borderInlineEnd:`${Vt}px dashed ${Zo}`}},[`${ge}-cell-range-hover-end::after`]:{insetInlineEnd:Nl,borderInlineEnd:`${Vt}px dashed ${Zo}`,[`${ge}-panel-rtl &`]:{insetInlineStart:Nl,borderInlineStart:`${Vt}px dashed ${Zo}`}}},[`&-panel ${ge}-footer`]:{borderTop:`${Vt}px ${fn} ${dn}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${Sa-2*Vt}px`,textAlign:"center","&-extra":{padding:`0 ${Lt}px`,lineHeight:`${Sa-2*Vt}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${Vt}px ${fn} ${dn}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:co,"&:hover":{color:jo},"&:active":{color:Po},[`&${ge}-today-btn-disabled`]:{color:Pr,cursor:"not-allowed"}},"&-decade-panel":{[Ne]:{padding:`0 ${Nt/2}px`},[`${ge}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${ge}-body`]:{padding:`0 ${Nt}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:Vl,borderInlineStart:`${Vt}px dashed ${Zo}`,[`${ge}-panel-rtl &`]:{insetInlineEnd:Vl,borderInlineEnd:`${Vt}px dashed ${Zo}`}},[`${ge}-cell-range-hover-end::after`]:{insetInlineEnd:Vl,borderInlineEnd:`${Vt}px dashed ${Zo}`,[`${ge}-panel-rtl &`]:{insetInlineStart:Vl,borderInlineStart:`${Vt}px dashed ${Zo}`}}},"&-week-panel":{[`${ge}-body`]:{padding:`${Nt}px ${Lt}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:ll*4},[Ne]:{padding:`0 ${Ot}px`}},"&-quarter-panel":{[`${ge}-content`]:{height:jn},[`${ge}-cell-range-hover-start::after`]:{insetInlineStart:Nl,borderInlineStart:`${Qt}px dashed ${Zo}`,[`${ge}-panel-rtl &`]:{insetInlineEnd:Nl,borderInlineEnd:`${Qt}px dashed ${Zo}`}},[`${ge}-cell-range-hover-end::after`]:{insetInlineEnd:Nl,borderInlineEnd:`${Qt}px dashed ${Zo}`,[`${ge}-panel-rtl &`]:{insetInlineStart:Nl,borderInlineStart:`${Qt}px dashed ${Zo}`}}},[`&-panel ${ge}-footer`]:{borderTop:`${Qt}px ${mn} ${un}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${Sa-2*Qt}px`,textAlign:"center","&-extra":{padding:`0 ${It}px`,lineHeight:`${Sa-2*Qt}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${Qt}px ${mn} ${un}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:co,"&:hover":{color:jo},"&:active":{color:Po},[`&${ge}-today-btn-disabled`]:{color:Ar,cursor:"not-allowed"}},"&-decade-panel":{[Ne]:{padding:`0 ${Ot/2}px`},[`${ge}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${ge}-body`]:{padding:`0 ${Ot}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:Vl,borderInlineStart:`${Qt}px dashed ${Zo}`,[`${ge}-panel-rtl &`]:{insetInlineEnd:Vl,borderInlineEnd:`${Qt}px dashed ${Zo}`}},[`${ge}-cell-range-hover-end::after`]:{insetInlineEnd:Vl,borderInlineEnd:`${Qt}px dashed ${Zo}`,[`${ge}-panel-rtl &`]:{insetInlineStart:Vl,borderInlineStart:`${Qt}px dashed ${Zo}`}}},"&-week-panel":{[`${ge}-body`]:{padding:`${Ot}px ${It}px`},[`${ge}-cell`]:{[`&:hover ${Ne}, &-selected ${Ne}, - ${Ne}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${gn}`},"&:first-child:before":{borderStartStartRadius:Bo,borderEndStartRadius:Bo},"&:last-child:before":{borderStartEndRadius:Bo,borderEndEndRadius:Bo}},"&:hover td":{"&:before":{background:bl}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${fe}`]:{"&:before":{background:Rn},[`&${ge}-cell-week`]:{color:new xu.C($o).setAlpha(.5).toHexString()},[Ne]:{color:$o}}},"&-range-hover td:before":{background:Ml}}},"&-date-panel":{[`${ge}-body`]:{padding:`${Nt}px ${Pl}px`},[`${ge}-content`]:{width:at*7,th:{width:at,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${ge}-time-panel`]:{borderInlineStart:`${Vt}px ${fn} ${dn}`},[`${ge}-date-panel, + ${Ne}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${cn}`},"&:first-child:before":{borderStartStartRadius:Bo,borderEndStartRadius:Bo},"&:last-child:before":{borderStartEndRadius:Bo,borderEndEndRadius:Bo}},"&:hover td":{"&:before":{background:bl}},"&-range-start td,\n &-range-end td,\n &-selected td":{[`&${fe}`]:{"&:before":{background:On},[`&${ge}-cell-week`]:{color:new xu.C($o).setAlpha(.5).toHexString()},[Ne]:{color:$o}}},"&-range-hover td:before":{background:Ml}}},"&-date-panel":{[`${ge}-body`]:{padding:`${Ot}px ${Pl}px`},[`${ge}-content`]:{width:at*7,th:{width:at,boxSizing:"border-box",padding:0}}},"&-datetime-panel":{display:"flex",[`${ge}-time-panel`]:{borderInlineStart:`${Qt}px ${mn} ${un}`},[`${ge}-date-panel, ${ge}-time-panel`]:{transition:`opacity ${xo}`},"&-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:jr},"&-column":{flex:"1 0 auto",width:el,margin:`${rn}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${gn}`,overflowX:"hidden","&::after":{display:"block",height:jr-No,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Vt}px ${fn} ${dn}`},"&-active":{background:new xu.C(Ml).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${ge}-time-panel-cell`]:{marginInline:il,[`${ge}-time-panel-cell-inner`]:{display:"block",width:el-2*il,height:No,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(el-No)/2,color:Ur,lineHeight:`${No}px`,borderRadius:Bo,cursor:"pointer",transition:`background ${gn}`,"&:hover":{background:bl}},"&-selected":{[`${ge}-time-panel-cell-inner`]:{background:Ml}},"&-disabled":{[`${ge}-time-panel-cell-inner`]:{color:Pr,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${ge}-time-panel-column:after`]:{height:jr-No+rn*2}}}},ss=ce=>{const{componentCls:ge,colorBgContainer:fe,colorError:Ne,errorActiveShadow:Ie,colorWarning:st,warningActiveShadow:at}=ce;return{[`${ge}:not(${ge}-disabled)`]:{[`&${ge}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:fe,borderColor:Ne},[`&${ge}-focused, &:focus`]:Object.assign({},(0,Ol.M1)((0,Bi.TS)(ce,{activeBorderColor:Ne,activeShadow:Ie}))),[`${ge}-active-bar`]:{background:Ne}},[`&${ge}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:fe,borderColor:st},[`&${ge}-focused, &:focus`]:Object.assign({},(0,Ol.M1)((0,Bi.TS)(ce,{activeBorderColor:st,activeShadow:at}))),[`${ge}-active-bar`]:{background:st}}}}},Cr=ce=>{const{componentCls:ge,antCls:fe,controlHeight:Ne,fontSize:Ie,paddingInline:st,colorBgContainer:at,lineWidth:Lt,lineType:Nt,colorBorder:rn,borderRadius:Kn,motionDurationMid:Vt,colorBgContainerDisabled:fn,colorTextDisabled:Mn,colorTextPlaceholder:Rn,controlHeightLG:wt,fontSizeLG:dn,controlHeightSM:Tn,paddingInlineSM:oa,paddingXS:Sa,marginXS:gn,colorTextDescription:ka,lineWidthBold:Ta,lineHeight:ha,colorPrimary:Jr,motionDurationSlow:Pr,zIndexPopup:Ur,paddingXXS:so,paddingSM:Fo,textHeight:xo,cellActiveWithRangeBg:ll,colorPrimaryBorder:Gn,sizePopupArrow:co,borderRadiusXS:Po,borderRadiusOuter:jo,colorBgElevated:Zo,borderRadiusLG:Bo,boxShadowSecondary:$o,borderRadiusSM:bl,colorSplit:jr,cellHoverBg:el,presetsWidth:No,presetsMaxWidth:Ml,boxShadowPopoverArrow:il,colorTextQuaternary:Pl}=ce;return[{[ge]:Object.assign(Object.assign(Object.assign({},(0,wu.Wf)(ce)),Zu(ce,Ne,Ie,st)),{position:"relative",display:"inline-flex",alignItems:"center",background:at,lineHeight:1,border:`${Lt}px ${Nt} ${rn}`,borderRadius:Kn,transition:`border ${Vt}, box-shadow ${Vt}`,"&:hover, &-focused":Object.assign({},(0,Ol.pU)(ce)),"&-focused":Object.assign({},(0,Ol.M1)(ce)),[`&${ge}-disabled`]:{background:fn,borderColor:rn,cursor:"not-allowed",[`${ge}-suffix`]:{color:Pl}},[`&${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,Ol.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:Rn}}},"&-large":Object.assign(Object.assign({},Zu(ce,wt,dn,st)),{[`${ge}-input > input`]:{fontSize:dn}}),"&-small":Object.assign({},Zu(ce,Tn,Ie,oa)),[`${ge}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:Sa/2,color:Mn,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:gn}}},[`${ge}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:Mn,lineHeight:1,background:at,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${Vt}, color ${Vt}`,"> *":{verticalAlign:"top"},"&:hover":{color:ka}},[`${ge}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:dn,color:Mn,fontSize:dn,verticalAlign:"top",cursor:"default",[`${ge}-focused &`]:{color:ka},[`${ge}-range-separator &`]:{[`${ge}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${ge}-clear`]:{insetInlineEnd:st},"&:hover":{[`${ge}-clear`]:{opacity:1}},[`${ge}-active-bar`]:{bottom:-Lt,height:Ta,marginInlineStart:st,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 ${Sa}px`,lineHeight:1},[`&${ge}-small`]:{[`${ge}-clear`]:{insetInlineEnd:oa},[`${ge}-active-bar`]:{marginInlineStart:oa}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,wu.Wf)(ce)),Ju(ce)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Ur,[`&${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:Zr},"&-column":{flex:"1 0 auto",width:el,margin:`${an}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${cn}`,overflowX:"hidden","&::after":{display:"block",height:Zr-No,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Qt}px ${mn} ${un}`},"&-active":{background:new xu.C(Ml).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${ge}-time-panel-cell`]:{marginInline:il,[`${ge}-time-panel-cell-inner`]:{display:"block",width:el-2*il,height:No,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(el-No)/2,color:Yr,lineHeight:`${No}px`,borderRadius:Bo,cursor:"pointer",transition:`background ${cn}`,"&:hover":{background:bl}},"&-selected":{[`${ge}-time-panel-cell-inner`]:{background:Ml}},"&-disabled":{[`${ge}-time-panel-cell-inner`]:{color:Ar,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${ge}-time-panel-column:after`]:{height:Zr-No+an*2}}}},ss=ce=>{const{componentCls:ge,colorBgContainer:fe,colorError:Ne,errorActiveShadow:Ie,colorWarning:st,warningActiveShadow:at}=ce;return{[`${ge}:not(${ge}-disabled)`]:{[`&${ge}-status-error`]:{"&, &:not([disabled]):hover":{backgroundColor:fe,borderColor:Ne},[`&${ge}-focused, &:focus`]:Object.assign({},(0,Ol.M1)((0,Bi.TS)(ce,{activeBorderColor:Ne,activeShadow:Ie}))),[`${ge}-active-bar`]:{background:Ne}},[`&${ge}-status-warning`]:{"&, &:not([disabled]):hover":{backgroundColor:fe,borderColor:st},[`&${ge}-focused, &:focus`]:Object.assign({},(0,Ol.M1)((0,Bi.TS)(ce,{activeBorderColor:st,activeShadow:at}))),[`${ge}-active-bar`]:{background:st}}}}},br=ce=>{const{componentCls:ge,antCls:fe,controlHeight:Ne,fontSize:Ie,paddingInline:st,colorBgContainer:at,lineWidth:It,lineType:Ot,colorBorder:an,borderRadius:Yn,motionDurationMid:Qt,colorBgContainerDisabled:mn,colorTextDisabled:In,colorTextPlaceholder:On,controlHeightLG:Dt,fontSizeLG:un,controlHeightSM:Rn,paddingInlineSM:oa,paddingXS:Sa,marginXS:cn,colorTextDescription:ka,lineWidthBold:Ta,lineHeight:ha,colorPrimary:Xr,motionDurationSlow:Ar,zIndexPopup:Yr,paddingXXS:so,paddingSM:Fo,textHeight:xo,cellActiveWithRangeBg:ll,colorPrimaryBorder:jn,sizePopupArrow:co,borderRadiusXS:Po,borderRadiusOuter:jo,colorBgElevated:Zo,borderRadiusLG:Bo,boxShadowSecondary:$o,borderRadiusSM:bl,colorSplit:Zr,cellHoverBg:el,presetsWidth:No,presetsMaxWidth:Ml,boxShadowPopoverArrow:il,colorTextQuaternary:Pl}=ce;return[{[ge]:Object.assign(Object.assign(Object.assign({},(0,wu.Wf)(ce)),Zu(ce,Ne,Ie,st)),{position:"relative",display:"inline-flex",alignItems:"center",background:at,lineHeight:1,border:`${It}px ${Ot} ${an}`,borderRadius:Yn,transition:`border ${Qt}, box-shadow ${Qt}`,"&:hover, &-focused":Object.assign({},(0,Ol.pU)(ce)),"&-focused":Object.assign({},(0,Ol.M1)(ce)),[`&${ge}-disabled`]:{background:mn,borderColor:an,cursor:"not-allowed",[`${ge}-suffix`]:{color:Pl}},[`&${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,Ol.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({},Zu(ce,Dt,un,st)),{[`${ge}-input > input`]:{fontSize:un}}),"&-small":Object.assign({},Zu(ce,Rn,Ie,oa)),[`${ge}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:Sa/2,color:In,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:cn}}},[`${ge}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:In,lineHeight:1,background:at,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${Qt}, color ${Qt}`,"> *":{verticalAlign:"top"},"&:hover":{color:ka}},[`${ge}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:un,color:In,fontSize:un,verticalAlign:"top",cursor:"default",[`${ge}-focused &`]:{color:ka},[`${ge}-range-separator &`]:{[`${ge}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${ge}-clear`]:{insetInlineEnd:st},"&:hover":{[`${ge}-clear`]:{opacity:1}},[`${ge}-active-bar`]:{bottom:-It,height:Ta,marginInlineStart:st,background:Xr,opacity:0,transition:`all ${Ar} ease-out`,pointerEvents:"none"},[`&${ge}-focused`]:{[`${ge}-active-bar`]:{opacity:1}},[`${ge}-range-separator`]:{alignItems:"center",padding:`0 ${Sa}px`,lineHeight:1},[`&${ge}-small`]:{[`${ge}-clear`]:{insetInlineEnd:oa},[`${ge}-active-bar`]:{marginInlineStart:oa}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,wu.Wf)(ce)),Ju(ce)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Yr,[`&${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:$i.Qt},[`&${fe}-slide-up-enter${fe}-slide-up-enter-active${ge}-dropdown-placement-bottomLeft, @@ -321,24 +321,24 @@ ${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:$i.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:$i.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:$i.Uw},[`${ge}-panel > ${ge}-time-panel`]:{paddingTop:so},[`${ge}-ranges`]:{marginBottom:0,padding:`${so}px ${Fo}px`,overflow:"hidden",lineHeight:`${xo-2*Lt-Sa/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${ge}-preset > ${fe}-tag-blue`]:{color:Jr,background:ll,borderColor:Gn,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:st*1.5,transition:`left ${Pr} ease-out`},(0,ls.r)(co,Po,jo,Zo,il)),[`${ge}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:Zo,borderRadius:Bo,boxShadow:$o,transition:`margin ${Pr}`,[`${ge}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${ge}-presets`]:{display:"flex",flexDirection:"column",minWidth:No,maxWidth:Ml,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Sa,borderInlineEnd:`${Lt}px ${Nt} ${jr}`,li:Object.assign(Object.assign({},wu.vS),{borderRadius:bl,paddingInline:Sa,paddingBlock:(Tn-Math.round(Ie*ha))/2,cursor:"pointer",transition:`all ${Pr}`,"+ li":{marginTop:gn},"&:hover":{background:el}})}},[`${ge}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${ge}-panel`]:{borderWidth:`0 0 ${Lt}px`},"&:last-child":{[`${ge}-panel`]:{borderWidth:0}}},[`${ge}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${ge}-content, - table`]:{textAlign:"center"},"&-focused":{borderColor:rn}}}}),"&-dropdown-range":{padding:`${co*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${ge}-separator`]:{transform:"rotate(180deg)"},[`${ge}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,$i.oN)(ce,"slide-up"),(0,$i.oN)(ce,"slide-down"),(0,bi.Fm)(ce,"move-up"),(0,bi.Fm)(ce,"move-down")]},ds=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}},cs=ce=>({cellHoverBg:ce.controlItemBgHover,cellActiveWithRangeBg:ce.controlItemBgActive,cellHoverWithRangeBg:new xu.C(ce.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new xu.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 Gu=(0,is.Z)("DatePicker",ce=>{const ge=(0,Bi.TS)((0,Ol.e5)(ce),ds(ce));return[Cr(ge),ss(ge),(0,ou.c)(ce,{focusElCls:`${ce.componentCls}-focused`})]},ce=>Object.assign(Object.assign(Object.assign({},(0,Ol.TM)(ce)),cs(ce)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:ce.zIndexPopupBase+50}));function Du(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 gs(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 Hu(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 du(ce){return ce?Array.isArray(ce)?ce:[ce]:[]}function Dl(ce){const{format:ge,picker:fe,showHour:Ne,showMinute:Ie,showSecond:st,use12Hours:at}=ce,Lt=du(ge)[0],Nt=Object.assign({},ce);return ge&&Array.isArray(ge)&&(Nt.format=Lt),Lt&&typeof Lt=="string"&&(!Lt.includes("s")&&st===void 0&&(Nt.showSecond=!1),!Lt.includes("m")&&Ie===void 0&&(Nt.showMinute=!1),!Lt.includes("H")&&!Lt.includes("h")&&!Lt.includes("K")&&!Lt.includes("k")&&Ne===void 0&&(Nt.showHour=!1),(Lt.includes("a")||Lt.includes("A"))&&at===void 0&&(Nt.use12Hours=!0)),fe==="time"?Nt:(typeof Lt=="function"&&delete Nt.format,{showTime:Nt})}function ql(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 zu=ae(3113);function ms(ce){return le.createElement(zu.ZP,Object.assign({size:"small",type:"primary"},ce))}var Na={button:ms},Xu=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:st,className:at,placement:Lt,size:Nt,disabled:rn,bordered:Kn=!0,placeholder:Vt,popupClassName:fn,dropdownClassName:Mn,status:Rn,clearIcon:wt,allowClear:dn,rootClassName:Tn}=fe,oa=Xu(fe,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),Sa=le.useRef(null),{getPrefixCls:gn,direction:ka,getPopupContainer:Ta}=(0,le.useContext)(ku.E_),ha=gn("picker",Ie),{compactSize:Jr,compactItemClassnames:Pr}=(0,Gl.ri)(ha,ka),{format:Ur,showTime:so,picker:Fo}=fe,xo=gn(),[ll,Gn]=Gu(ha),co=Object.assign(Object.assign({},so?Dl(Object.assign({format:Ur,picker:Fo},so)):{}),Fo==="time"?Dl(Object.assign(Object.assign({format:Ur},fe),{picker:Fo})):{}),Po=(0,Ku.Z)(il=>{var Pl;return(Pl=Nt!=null?Nt:Jr)!==null&&Pl!==void 0?Pl:il}),jo=le.useContext(ru.Z),Zo=rn!=null?rn:jo,Bo=(0,le.useContext)(Tu.aM),{hasFeedback:$o,status:bl,feedbackIcon:jr}=Bo,el=le.createElement(le.Fragment,null,Fo==="time"?le.createElement(ft,null):le.createElement(Me,null),$o&&jr);(0,le.useImperativeHandle)(Ne,()=>({focus:()=>{var il;return(il=Sa.current)===null||il===void 0?void 0:il.focus()},blur:()=>{var il;return(il=Sa.current)===null||il===void 0?void 0:il.blur()}}));const[No]=(0,ju.Z)("Calendar",_u.Z),Ml=Object.assign(Object.assign({},No),fe.locale);return ll(le.createElement(Yu,Object.assign({separator:le.createElement("span",{"aria-label":"to",className:`${ha}-separator`},le.createElement(Qt,null)),disabled:Zo,ref:Sa,dropdownAlign:Hu(ka,Lt),placeholder:gs(Ml,Fo,Vt),suffixIcon:el,prevIcon:le.createElement("span",{className:`${ha}-prev-icon`}),nextIcon:le.createElement("span",{className:`${ha}-next-icon`}),superPrevIcon:le.createElement("span",{className:`${ha}-super-prev-icon`}),superNextIcon:le.createElement("span",{className:`${ha}-super-next-icon`}),transitionName:`${xo}-slide-up`},oa,co,{className:Te()({[`${ha}-${Po}`]:Po,[`${ha}-borderless`]:!Kn},(0,Su.Z)(ha,(0,Su.F)(bl,Rn),$o),Gn,Pr,at,Tn),locale:Ml.lang,prefixCls:ha,getPopupContainer:st||Ta,generateConfig:ce,components:Na,direction:ka,dropdownClassName:Te()(Gn,fn||Mn,Tn),allowClear:ql(dn,wt,le.createElement(dt.Z,null))})))})}var zi=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:Rn,getPopupContainer:wt,style:dn,className:Tn,rootClassName:oa,size:Sa,bordered:gn=!0,placement:ka,placeholder:Ta,popupClassName:ha,dropdownClassName:Jr,disabled:Pr,status:Ur,clearIcon:so,allowClear:Fo}=fn,xo=zi(fn,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:ll,direction:Gn,getPopupContainer:co,[Kn]:Po}=(0,le.useContext)(ku.E_),jo=ll("picker",Rn),{compactSize:Zo,compactItemClassnames:Bo}=(0,Gl.ri)(jo,Gn),$o=le.useRef(null),{format:bl,showTime:jr}=fn,[el,No]=Gu(jo);(0,le.useImperativeHandle)(Mn,()=>({focus:()=>{var Rl;return(Rl=$o.current)===null||Rl===void 0?void 0:Rl.focus()},blur:()=>{var Rl;return(Rl=$o.current)===null||Rl===void 0?void 0:Rl.blur()}}));const Ml={showToday:!0};let il={};Nt&&(il.picker=Nt);const Pl=Nt||fn.picker;il=Object.assign(Object.assign(Object.assign({},il),jr?Dl(Object.assign({format:bl,picker:Pl},jr)):{}),Pl==="time"?Dl(Object.assign(Object.assign({format:bl},fn),{picker:Pl})):{});const wo=ll(),Vl=(0,Ku.Z)(Rl=>{var xi;return(xi=Sa!=null?Sa:Zo)!==null&&xi!==void 0?xi:Rl}),Nl=le.useContext(ru.Z),$l=Pr!=null?Pr:Nl,ii=(0,le.useContext)(Tu.aM),{hasFeedback:mo,status:ul,feedbackIcon:tl}=ii,Xo=le.createElement(le.Fragment,null,Pl==="time"?le.createElement(ft,null):le.createElement(Me,null),mo&&tl),[El]=(0,ju.Z)("DatePicker",_u.Z),gl=Object.assign(Object.assign({},El),fn.locale);return el(le.createElement(Ru,Object.assign({ref:$o,placeholder:Du(gl,Pl,Ta),suffixIcon:Xo,dropdownAlign:Hu(Gn,ka),prevIcon:le.createElement("span",{className:`${jo}-prev-icon`}),nextIcon:le.createElement("span",{className:`${jo}-next-icon`}),superPrevIcon:le.createElement("span",{className:`${jo}-super-prev-icon`}),superNextIcon:le.createElement("span",{className:`${jo}-super-next-icon`}),transitionName:`${wo}-slide-up`},Ml,xo,il,{locale:gl.lang,className:Te()({[`${jo}-${Vl}`]:Vl,[`${jo}-borderless`]:!gn},(0,Su.Z)(jo,(0,Su.F)(ul,Ur),mo),No,Bo,Po==null?void 0:Po.className,Tn,oa),style:Object.assign(Object.assign({},Po==null?void 0:Po.style),dn),prefixCls:jo,getPopupContainer:wt||co,generateConfig:ce,components:Na,direction:Gn,disabled:$l,dropdownClassName:Te()(No,oa,ha||Jr),allowClear:ql(Fo,so,le.createElement(dt.Z,null))})))});return rn&&(Vt.displayName=rn),Vt}const fe=ge(),Ne=ge("week","WeekPicker"),Ie=ge("month","MonthPicker"),st=ge("year","YearPicker"),at=ge("time","TimePicker"),Lt=ge("quarter","QuarterPicker");return{DatePicker:fe,WeekPicker:Ne,MonthPicker:Ie,YearPicker:st,TimePicker:at,QuarterPicker:Lt}}const Vu=null;function fs(ce){const{DatePicker:ge,WeekPicker:fe,MonthPicker:Ne,YearPicker:Ie,TimePicker:st,QuarterPicker:at}=ra(ce),Lt=Pu(ce),Nt=ge;return Nt.WeekPicker=fe,Nt.MonthPicker=Ne,Nt.YearPicker=Ie,Nt.RangePicker=Lt,Nt.TimePicker=st,Nt.QuarterPicker=at,Nt}var vs=fs;const eu=vs(te);function Lu(ce){const ge=Hu(ce.direction,ce.placement);return ge.overflow.adjustY=!1,ge.overflow.adjustX=!1,Object.assign(Object.assign({},ce),{dropdownAlign:ge})}const Wu=(0,oe.Z)(eu,"picker",null,Lu);eu._InternalPanelDoNotUseOrYouWillBeFired=Wu;const Ll=(0,oe.Z)(eu.RangePicker,"picker",null,Lu);eu._InternalRangePanelDoNotUseOrYouWillBeFired=Ll,eu.generatePicker=vs;var ps=eu},39722:function(ot,jt,ae){"use strict";ae.d(jt,{t5:function(){return De}});var b=ae(92310),Ee=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:Ee()(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(ot,jt,ae){"use strict";var b=ae(92310),Ee=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:le={}}=Ue,Pe=De(Ue,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Fe}=we.useContext(We.E_),Qe=Fe("popover",E),[Le,ut]=(0,Oe.Z)(Qe),Me=Fe(),Ye=Ee()(y,ut);return Le(we.createElement(xe.Z,Object.assign({placement:z,trigger:te,mouseEnterDelay:oe,mouseLeaveDelay:se,overlayStyle:le},Pe,{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",Pe.transitionName),"data-popover-inject":!0})))});ze._InternalPanelDoNotUseOrYouWillBeFired=Ke.ZP,jt.Z=ze},17356:function(ot,jt,ae){"use strict";var b=ae(17313),Ee=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,le=z;return{[ke]:{[`${ke}-inner`]:{padding:0},[`${ke}-title`]:{margin:0,padding:`${oe}px ${le}px ${se}px`,borderBottom:`${ze}px ${Ue} ${ue}`},[`${ke}-inner-content`]:{padding:`${E}px ${le}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,Ee._y)(ue,"zoom-big")]},De=>({width:177,minWidth:177,zIndexPopup:De.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},12563:function(ot,jt,ae){"use strict";ae.d(jt,{default:function(){return ut}});var b=ae(59301),Ee=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,ft=$e-Ge,dt=Ye-Ge;return{[be]:Object.assign(Object.assign({},(0,Oe.Wf)(Me)),{display:"inline-block",height:"auto",marginInlineEnd:Me.marginXS,paddingInline:ft,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:dt,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:ft}}),[`${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:ft,onClick:dt}=Me,Ft=a(Me,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:Pt,tag:En}=b.useContext(Ke.E_),Bn=_t=>{ft==null||ft(!be),dt==null||dt(_t)},Qt=Pt("tag",Ye),[St,Te]=E(Qt),et=Be()(Qt,`${Qt}-checkable`,{[`${Qt}-checkable-checked`]:be},En==null?void 0:En.className,$e,Te);return St(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:ft,darkColor:dt}=Ge;return{[`${Me.componentCls}-${Ye}`]:{color:$e,background:ft,borderColor:be,"&-inverse":{color:Me.colorTextLightSolid,background:dt,borderColor:dt},[`&${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 le=(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 Pe=(0,ke.b)(["Tag","status"],Me=>{const Ye=Ue(Me);return[le(Ye,"success","Success"),le(Ye,"processing","Info"),le(Ye,"error","Error"),le(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:ft,children:dt,icon:Ft,color:Pt,onClose:En,closeIcon:Bn,closable:Qt,bordered:St=!0}=Me,Te=Fe(Me,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:et,direction:_t,tag:xn}=b.useContext(Ke.E_),[It,qt]=b.useState(!0);b.useEffect(()=>{"visible"in Te&&qt(Te.visible)},[Te.visible]);const Ce=(0,Re.o2)(Pt),rt=(0,Re.yT)(Pt),on=Ce||rt,tt=Object.assign(Object.assign({backgroundColor:Pt&&!on?Pt:void 0},xn==null?void 0:xn.style),ft),pt=et("tag",Ge),[Xn,mn]=E(pt),Ut=Be()(pt,xn==null?void 0:xn.className,{[`${pt}-${Pt}`]:on,[`${pt}-has-color`]:Pt&&!on,[`${pt}-hidden`]:!It,[`${pt}-rtl`]:_t==="rtl",[`${pt}-borderless`]:!St},$e,be,mn),kt=Fa=>{Fa.stopPropagation(),En==null||En(Fa),!Fa.defaultPrevented&&qt(!1)},[,Wn]=(0,We.Z)(Qt,Bn,Fa=>Fa===null?b.createElement(Ee.Z,{className:`${pt}-close-icon`,onClick:kt}):b.createElement("span",{className:`${pt}-close-icon`,onClick:kt},Fa),null,!1),ia=typeof Te.onClick=="function"||dt&&dt.type==="a",nn=Ft||null,Ba=nn?b.createElement(b.Fragment,null,nn,dt&&b.createElement("span",null,dt)):dt,Ka=b.createElement("span",Object.assign({},Te,{ref:Ye,className:Ut,style:tt}),Ba,Wn,Ce&&b.createElement(oe,{key:"preset",prefixCls:pt}),rt&&b.createElement(Pe,{key:"status",prefixCls:pt}));return Xn(ia?b.createElement(xe.Z,{component:"Tag"},Ka):Ka)},Le=b.forwardRef(Qe);Le.CheckableTag=y;var ut=Le},98228:function(ot,jt,ae){"use strict";ae.d(jt,{default:function(){return Mo}});var b=ae(92310),Ee=ae.n(b),we=ae(60499),Be=ae(77654),Re=ae(85899),We=ae(72190),xe=ae(42244),Ke=ae(43749),Oe=ae(77861),De=ae(17115),ke=ae(90782),ze=ae(18929),Ue=ae(48736),ue=ae(59301),E=function(Yt){var Yn=ue.useRef({valueLabels:new Map});return ue.useMemo(function(){var ea=Yn.current.valueLabels,ba=new Map,Ze=Yt.map(function(Mt){var en,pn=Mt.value,Rt=(en=Mt.label)!==null&&en!==void 0?en:ea.get(pn);return ba.set(pn,Rt),(0,Re.Z)((0,Re.Z)({},Mt),{},{label:Rt})});return Yn.current.valueLabels=ba,[Ze]},[Yt])},a=function(Yt,Yn,ea,ba){return ue.useMemo(function(){var Ze=Yt.map(function(Rt){var Qn=Rt.value;return Qn}),Mt=Yn.map(function(Rt){var Qn=Rt.value;return Qn}),en=Ze.filter(function(Rt){return!ba[Rt]});if(ea){var pn=(0,ke.S)(Ze,!0,ba);Ze=pn.checkedKeys,Mt=pn.halfCheckedKeys}return[Array.from(new Set([].concat((0,Be.Z)(en),(0,Be.Z)(Ze)))),Mt]},[Yt,Yn,ea,ba])},x=ae(71430),y=function(Yt,Yn){return ue.useMemo(function(){var ea=(0,x.I8)(Yt,{fieldNames:Yn,initWrapper:function(Ze){return(0,Re.Z)((0,Re.Z)({},Ze),{},{valueEntities:new Map})},processEntity:function(Ze,Mt){var en=Ze.node[Yn.value];if(0)var pn;Mt.valueEntities.set(en,Ze)}});return ea},[Yt,Yn])},z=ae(18642),te=ae(11592),oe=function(){return null},se=oe,le=["children","value"];function Pe(Yt){return(0,te.Z)(Yt).map(function(Yn){if(!ue.isValidElement(Yn)||!Yn.type)return null;var ea=Yn,ba=ea.key,Ze=ea.props,Mt=Ze.children,en=Ze.value,pn=(0,xe.Z)(Ze,le),Rt=(0,Re.Z)({key:ba,value:en},pn),Qn=Pe(Mt);return Qn.length&&(Rt.children=Qn),Rt}).filter(function(Yn){return Yn})}function Fe(Yt){if(!Yt)return Yt;var Yn=(0,Re.Z)({},Yt);return"props"in Yn||Object.defineProperty(Yn,"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."),Yn}}),Yn}function Qe(Yt,Yn,ea,ba,Ze,Mt){var en=null,pn=null;function Rt(){function Qn(_n){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return _n.map(function(Xe,ln){var Cn="".concat(Je,"-").concat(ln),Nn=Xe[Mt.value],wa=ea.includes(Nn),pa=Qn(Xe[Mt.children]||[],Cn,wa),na=ue.createElement(se,Xe,pa.map(function(qn){return qn.node}));if(Yn===Nn&&(en=na),wa){var ya={pos:Cn,node:na,children:pa};return nt||pn.push(ya),ya}return null}).filter(function(Xe){return Xe})}pn||(pn=[],Qn(ba),pn.sort(function(_n,Je){var nt=_n.node.props.value,Xe=Je.node.props.value,ln=ea.indexOf(nt),Cn=ea.indexOf(Xe);return ln-Cn}))}Object.defineProperty(Yt,"triggerNode",{get:function(){return(0,Ue.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Rt(),en}}),Object.defineProperty(Yt,"allCheckedNodes",{get:function(){return(0,Ue.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Rt(),Ze?pn:pn.map(function(_n){var Je=_n.node;return Je})}})}var Le=function(Yt,Yn,ea){var ba=ea.treeNodeFilterProp,Ze=ea.filterTreeNode,Mt=ea.fieldNames,en=Mt.children;return ue.useMemo(function(){if(!Yn||Ze===!1)return Yt;var pn;if(typeof Ze=="function")pn=Ze;else{var Rt=Yn.toUpperCase();pn=function(Je,nt){var Xe=nt[ba];return String(Xe).toUpperCase().includes(Rt)}}function Qn(_n){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _n.reduce(function(nt,Xe){var ln=Xe[en],Cn=Je||pn(Yn,Fe(Xe)),Nn=Qn(ln||[],Cn);return(Cn||Nn.length)&&nt.push((0,Re.Z)((0,Re.Z)({},Xe),{},(0,z.Z)({isLeaf:void 0},en,Nn))),nt},[])}return Qn(Yt)},[Yt,Yn,en,ba,Ze])};function ut(Yt){var Yn=ue.useRef();Yn.current=Yt;var ea=ue.useCallback(function(){return Yn.current.apply(Yn,arguments)},[]);return ea}function Me(Yt,Yn){var ea=Yn.id,ba=Yn.pId,Ze=Yn.rootPId,Mt={},en=[],pn=Yt.map(function(Rt){var Qn=(0,Re.Z)({},Rt),_n=Qn[ea];return Mt[_n]=Qn,Qn.key=Qn.key||_n,Qn});return pn.forEach(function(Rt){var Qn=Rt[ba],_n=Mt[Qn];_n&&(_n.children=_n.children||[],_n.children.push(Rt)),(Qn===Ze||!_n&&Ze===null)&&en.push(Rt)}),en}function Ye(Yt,Yn,ea){return ue.useMemo(function(){return Yt?ea?Me(Yt,(0,Re.Z)({id:"id",pId:"pId",rootPId:null},ea!==!0?ea:{})):Yt:Pe(Yn)},[Yn,ea,Yt])}var Ge=ue.createContext(null),$e=Ge,be=ae(10228),ft=ae(80547),dt=ae(38028),Ft=ue.createContext(null),Pt=Ft;function En(Yt){return Array.isArray(Yt)?Yt:Yt!==void 0?[Yt]:[]}function Bn(Yt){var Yn=Yt||{},ea=Yn.label,ba=Yn.value,Ze=Yn.children,Mt=ba||"value";return{_title:ea?[ea]:["title","label"],value:Mt,key:Mt,children:Ze||"children"}}function Qt(Yt){return!Yt||Yt.disabled||Yt.disableCheckbox||Yt.checkable===!1}function St(Yt,Yn){var ea=[];function ba(Ze){Ze.forEach(function(Mt){var en=Mt[Yn.children];en&&(ea.push(Mt[Yn.value]),ba(en))})}return ba(Yt),ea}function Te(Yt){return Yt==null}var et={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},_t=function(Yn,ea){var ba=(0,Oe.lk)(),Ze=ba.prefixCls,Mt=ba.multiple,en=ba.searchValue,pn=ba.toggleOpen,Rt=ba.open,Qn=ba.notFoundContent,_n=ue.useContext(Pt),Je=_n.virtual,nt=_n.listHeight,Xe=_n.listItemHeight,ln=_n.treeData,Cn=_n.fieldNames,Nn=_n.onSelect,wa=_n.dropdownMatchSelectWidth,pa=_n.treeExpandAction,na=ue.useContext($e),ya=na.checkable,qn=na.checkedKeys,zt=na.halfCheckedKeys,Ma=na.treeExpandedKeys,pr=na.treeDefaultExpandAll,So=na.treeDefaultExpandedKeys,$a=na.onTreeExpand,Gt=na.treeIcon,qr=na.showTreeIcon,Ua=na.switcherIcon,Sr=na.treeLine,ir=na.treeNodeFilterProp,Wr=na.loadData,Dr=na.treeLoadedKeys,ao=na.treeMotion,kr=na.onTreeLoad,ca=na.keyEntities,an=ue.useRef(),gr=(0,ft.Z)(function(){return ln},[Rt,ln],function(hr,to){return to[0]&&hr[1]!==to[1]}),ga=ue.useState(null),ur=(0,We.Z)(ga,2),Va=ur[0],hn=ur[1],aa=ca[Va],La=ue.useMemo(function(){return ya?{checked:qn,halfChecked:zt}:null},[ya,qn,zt]);ue.useEffect(function(){if(Rt&&!Mt&&qn.length){var hr;(hr=an.current)===null||hr===void 0||hr.scrollTo({key:qn[0]}),hn(qn[0])}},[Rt]);var Jn=String(en).toLowerCase(),sr=function(to){return Jn?String(to[ir]).toLowerCase().includes(Jn):!1},tr=ue.useState(So),Ar=(0,We.Z)(tr,2),$r=Ar[0],mr=Ar[1],_o=ue.useState(null),Ro=(0,We.Z)(_o,2),Fl=Ro[0],xr=Ro[1],Nr=ue.useMemo(function(){return Ma?(0,Be.Z)(Ma):en?Fl:$r},[$r,Fl,Ma,en]);ue.useEffect(function(){en&&xr(St(ln,Cn))},[en]);var Ao=function(to){mr(to),xr(to),$a&&$a(to)},Ja=function(to){to.preventDefault()},Qr=function(to,xt){var At=xt.node;ya&&Qt(At)||(Nn(At.key,{selected:!qn.includes(At.key)}),Mt||pn(!1))};if(ue.useImperativeHandle(ea,function(){var hr;return{scrollTo:(hr=an.current)===null||hr===void 0?void 0:hr.scrollTo,onKeyDown:function(xt){var At,ht=xt.which;switch(ht){case be.Z.UP:case be.Z.DOWN:case be.Z.LEFT:case be.Z.RIGHT:(At=an.current)===null||At===void 0||At.onKeyDown(xt);break;case be.Z.ENTER:{if(aa){var kn=(aa==null?void 0:aa.node)||{},Ga=kn.selectable,ar=kn.value;Ga!==!1&&Qr(null,{node:{key:Va},selected:!qn.includes(ar)})}break}case be.Z.ESC:pn(!1)}},onKeyUp:function(){}}}),gr.length===0)return ue.createElement("div",{role:"listbox",className:"".concat(Ze,"-empty"),onMouseDown:Ja},Qn);var eo={fieldNames:Cn};return Dr&&(eo.loadedKeys=Dr),Nr&&(eo.expandedKeys=Nr),ue.createElement("div",{onMouseDown:Ja},aa&&Rt&&ue.createElement("span",{style:et,"aria-live":"assertive"},aa.node.value),ue.createElement(dt.Z,(0,we.Z)({ref:an,focusable:!1,prefixCls:"".concat(Ze,"-tree"),treeData:gr,height:nt,itemHeight:Xe,virtual:Je!==!1&&wa!==!1,multiple:Mt,icon:Gt,showIcon:qr,switcherIcon:Ua,showLine:Sr,loadData:en?null:Wr,motion:ao,activeKey:Va,checkable:ya,checkStrictly:!0,checkedKeys:La,selectedKeys:ya?[]:qn,defaultExpandAll:pr},eo,{onActiveChange:hn,onSelect:Qr,onCheck:Qr,onExpand:Ao,onLoad:kr,filterTreeNode:sr,expandAction:pa})))},xn=ue.forwardRef(_t);xn.displayName="OptionList";var It=xn,qt="SHOW_ALL",Ce="SHOW_PARENT",rt="SHOW_CHILD";function on(Yt,Yn,ea,ba){var Ze=new Set(Yt);return Yn===rt?Yt.filter(function(Mt){var en=ea[Mt];return!(en&&en.children&&en.children.some(function(pn){var Rt=pn.node;return Ze.has(Rt[ba.value])})&&en.children.every(function(pn){var Rt=pn.node;return Qt(Rt)||Ze.has(Rt[ba.value])}))}):Yn===Ce?Yt.filter(function(Mt){var en=ea[Mt],pn=en?en.parent:null;return!(pn&&!Qt(pn.node)&&Ze.has(pn.key))}):Yt}function tt(Yt){var Yn=Yt.searchPlaceholder,ea=Yt.treeCheckStrictly,ba=Yt.treeCheckable,Ze=Yt.labelInValue,Mt=Yt.value,en=Yt.multiple;warning(!Yn,"`searchPlaceholder` has been removed."),ea&&Ze===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Ze||ea)&&warning(toArray(Mt).every(function(pn){return pn&&_typeof(pn)==="object"&&"value"in pn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),ea||en||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 pt=null,Xn=["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 mn(Yt){return!Yt||(0,Ke.Z)(Yt)!=="object"}var Ut=ue.forwardRef(function(Yt,Yn){var ea=Yt.id,ba=Yt.prefixCls,Ze=ba===void 0?"rc-tree-select":ba,Mt=Yt.value,en=Yt.defaultValue,pn=Yt.onChange,Rt=Yt.onSelect,Qn=Yt.onDeselect,_n=Yt.searchValue,Je=Yt.inputValue,nt=Yt.onSearch,Xe=Yt.autoClearSearchValue,ln=Xe===void 0?!0:Xe,Cn=Yt.filterTreeNode,Nn=Yt.treeNodeFilterProp,wa=Nn===void 0?"value":Nn,pa=Yt.showCheckedStrategy,na=Yt.treeNodeLabelProp,ya=Yt.multiple,qn=Yt.treeCheckable,zt=Yt.treeCheckStrictly,Ma=Yt.labelInValue,pr=Yt.fieldNames,So=Yt.treeDataSimpleMode,$a=Yt.treeData,Gt=Yt.children,qr=Yt.loadData,Ua=Yt.treeLoadedKeys,Sr=Yt.onTreeLoad,ir=Yt.treeDefaultExpandAll,Wr=Yt.treeExpandedKeys,Dr=Yt.treeDefaultExpandedKeys,ao=Yt.onTreeExpand,kr=Yt.treeExpandAction,ca=Yt.virtual,an=Yt.listHeight,gr=an===void 0?200:an,ga=Yt.listItemHeight,ur=ga===void 0?20:ga,Va=Yt.onDropdownVisibleChange,hn=Yt.dropdownMatchSelectWidth,aa=hn===void 0?!0:hn,La=Yt.treeLine,Jn=Yt.treeIcon,sr=Yt.showTreeIcon,tr=Yt.switcherIcon,Ar=Yt.treeMotion,$r=(0,xe.Z)(Yt,Xn),mr=(0,De.ZP)(ea),_o=qn&&!zt,Ro=qn||zt,Fl=zt||Ma,xr=Ro||ya,Nr=(0,ze.Z)(en,{value:Mt}),Ao=(0,We.Z)(Nr,2),Ja=Ao[0],Qr=Ao[1],eo=ue.useMemo(function(){return qn?pa||rt:qt},[pa,qn]),hr=ue.useMemo(function(){return Bn(pr)},[JSON.stringify(pr)]),to=(0,ze.Z)("",{value:_n!==void 0?_n:Je,postState:function(va){return va||""}}),xt=(0,We.Z)(to,2),At=xt[0],ht=xt[1],kn=function(va){ht(va),nt==null||nt(va)},Ga=Ye($a,Gt,So),ar=y(Ga,hr),Pn=ar.keyEntities,er=ar.valueEntities,Xa=ue.useCallback(function(ma){var va=[],rr=[];return ma.forEach(function(Er){er.has(Er)?rr.push(Er):va.push(Er)}),{missingRawValues:va,existRawValues:rr}},[er]),ro=Le(Ga,At,{fieldNames:hr,treeNodeFilterProp:wa,filterTreeNode:Cn}),dr=ue.useCallback(function(ma){if(ma){if(na)return ma[na];for(var va=hr._title,rr=0;rr{const{componentCls:Yn,treePrefixCls:ea,colorBgElevated:ba}=Yt,Ze=`.${ea}`;return[{[`${Yn}-dropdown`]:[{padding:`${Yt.paddingXS}px ${Yt.paddingXS/2}px`},(0,Za.Yk)(ea,(0,Et.TS)(Yt,{colorBgContainer:ba})),{[Ze]:{borderRadius:0,[`${Ze}-list-holder-inner`]:{alignItems:"stretch",[`${Ze}-treenode`]:{[`${Ze}-node-content-wrapper`]:{flex:"auto"}}}}},(0,sn.C2)(`${ea}-checkbox`,Yt),{"&-rtl":{direction:"rtl",[`${Ze}-switcher${Ze}-switcher_close`]:{[`${Ze}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Wa(Yt,Yn){return(0,Tt.Z)("TreeSelect",ea=>{const ba=(0,Et.TS)(ea,{treePrefixCls:Yn});return[Ca(ba)]},Za.TM)(Yt)}var Da=function(Yt,Yn){var ea={};for(var ba in Yt)Object.prototype.hasOwnProperty.call(Yt,ba)&&Yn.indexOf(ba)<0&&(ea[ba]=Yt[ba]);if(Yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ba=Object.getOwnPropertySymbols(Yt);Ze{var ea,{prefixCls:ba,size:Ze,disabled:Mt,bordered:en=!0,className:pn,rootClassName:Rt,treeCheckable:Qn,multiple:_n,listHeight:Je=256,listItemHeight:nt=26,placement:Xe,notFoundContent:ln,switcherIcon:Cn,treeLine:Nn,getPopupContainer:wa,popupClassName:pa,dropdownClassName:na,treeIcon:ya=!1,transitionName:qn,choiceTransitionName:zt="",status:Ma,treeExpandAction:pr,builtinPlacements:So,dropdownMatchSelectWidth:$a,popupMatchSelectWidth:Gt,allowClear:qr}=Yt,Ua=Da(Yt,["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:ir,renderEmpty:Wr,direction:Dr,virtual:ao,popupMatchSelectWidth:kr,popupOverflow:ca}=ue.useContext(jn.E_),an=ir(),gr=ir("select",ba),ga=ir("select-tree",ba),ur=ir("tree-select",ba),{compactSize:Va,compactItemClassnames:hn}=(0,_a.ri)(gr,Dr),[aa,La]=(0,Zn.Z)(gr),[Jn]=Wa(ur,ga),sr=Ee()(pa||na,`${ur}-dropdown`,{[`${ur}-dropdown-rtl`]:Dr==="rtl"},Rt,La),tr=!!(Qn||_n),Ar=(0,Ea.Z)(Ua.suffixIcon,Ua.showArrow),$r=(ea=Gt!=null?Gt:$a)!==null&&ea!==void 0?ea:kr,{status:mr,hasFeedback:_o,isFormItemInput:Ro,feedbackIcon:Fl}=ue.useContext(ua.aM),xr=(0,Fa.F)(mr,Ma),{suffixIcon:Nr,removeIcon:Ao,clearIcon:Ja}=(0,xa.Z)(Object.assign(Object.assign({},Ua),{multiple:tr,showSuffixIcon:Ar,hasFeedback:_o,feedbackIcon:Fl,prefixCls:gr,componentName:"TreeSelect"})),Qr=qr===!0?{clearIcon:Ja}:qr;let eo;ln!==void 0?eo=ln:eo=(Wr==null?void 0:Wr("Select"))||ue.createElement(Aa.Z,{componentName:"Select"});const hr=(0,nn.Z)(Ua,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),to=ue.useMemo(()=>Xe!==void 0?Xe:Dr==="rtl"?"bottomRight":"bottomLeft",[Xe,Dr]),xt=(0,da.Z)(So,ca),At=(0,fr.Z)(er=>{var Xa;return(Xa=Ze!=null?Ze:Va)!==null&&Xa!==void 0?Xa:er}),ht=ue.useContext(za.Z),kn=Mt!=null?Mt:ht,Ga=Ee()(!ba&&ur,{[`${gr}-lg`]:At==="large",[`${gr}-sm`]:At==="small",[`${gr}-rtl`]:Dr==="rtl",[`${gr}-borderless`]:!en,[`${gr}-in-form-item`]:Ro},(0,Fa.Z)(gr,xr,_o),hn,pn,Rt,La),ar=er=>ue.createElement(Sn.Z,{prefixCls:ga,switcherIcon:Cn,treeNodeProps:er,showLine:Nn}),Pn=ue.createElement(ia,Object.assign({virtual:ao,disabled:kn},hr,{dropdownMatchSelectWidth:$r,builtinPlacements:xt,ref:Yn,prefixCls:gr,className:Ga,listHeight:Je,listItemHeight:nt,treeCheckable:Qn&&ue.createElement("span",{className:`${gr}-tree-checkbox-inner`}),treeLine:!!Nn,suffixIcon:Nr,multiple:tr,placement:to,removeIcon:Ao,allowClear:Qr,switcherIcon:ar,showTreeIcon:ya,notFoundContent:eo,getPopupContainer:wa||Sr,treeMotion:null,dropdownClassName:sr,choiceTransitionName:(0,Ka.m)(an,"",zt),transitionName:(0,Ka.m)(an,"slide-up",qn),treeExpandAction:pr}));return aa(Jn(Pn))},nr=ue.forwardRef(Ra),Rr=(0,Ba.Z)(nr);nr.TreeNode=se,nr.SHOW_ALL=qt,nr.SHOW_PARENT=Ce,nr.SHOW_CHILD=rt,nr._InternalPanelDoNotUseOrYouWillBeFired=Rr;var Mo=nr},24334:function(ot,jt,ae){var b,Ee;(function(we,Be){ot.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,ft=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),ft=[We.charAt(be>>>18),We.charAt(be>>>12&63),$e>=2?"=":We.charAt(be>>>6&63),$e>=1?"=":We.charAt(be&63)];return ft.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="",ft=0,dt=Ge.length;ft>>18)+We.charAt(Bn>>>12&63)+(typeof Pt!="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)},se=function(Ge){var $e=Ge.length,be=$e%4,ft=($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),dt=[Ke(ft>>>16),Ke(ft>>>8&255),Ke(ft&255)];return dt.length-=[0,0,2,1][be],dt.join("")},le=we.atob&&typeof we.atob=="function"?function(Ge){return we.atob(Ge)}:function(Ge){return Ge.replace(/\S{1,4}/g,se)},Pe=function(Ge){return le(String(Ge).replace(/[^A-Za-z0-9\+\/]/g,""))},Fe=function(Ge){return oe(le(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))},ut;we.Uint8Array&&(ut=function(Ge){return Uint8Array.from(Pe(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:Pe,btoa:Ue,fromBase64:Le,toBase64:a,utob:ke,encode:a,encodeURI:x,btou:oe,decode:Le,noConflict:Me,fromUint8Array:y,toUint8Array:ut},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),ot.exports?ot.exports.Base64=we.Base64:(b=[],Ee=function(){return we.Base64}.apply(jt,b),Ee!==void 0&&(ot.exports=Ee)),{Base64:we.Base64}})},43141:function(ot,jt,ae){"use strict";ae.d(jt,{Z5:function(){return Xi},_l:function(){return Vd},bK:function(){return nd}});var b=ae(59301),Ee=ae(29658);function we(ee,ne){ee.prototype=Object.create(ne.prototype),ee.prototype.constructor=ee,(0,Ee.Z)(ee,ne)}var Be=ae(60499),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(69010),z=ae(94266),te=ae.n(z),oe=ae(53410),se=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],le=["reactReduxForwardedRef"],Pe=[],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 ut(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 la=ne.getState(),fa,Pa;try{fa=de(la,ve.current)}catch(Ya){Pa=Ya,He=Ya}Pa||(He=null),fa===pe.current?Ae.current||je():(pe.current=fa,ye.current=fa,Ae.current=!0,qe({type:"STORE_UPDATED",payload:{error:Pa}}))}};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(uo){return"ConnectAdvanced("+uo+")"}: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,la=re.forwardRef,fa=la===void 0?!1:la,Pa=re.context,Ya=Pa===void 0?We:Pa,lr=(0,y.Z)(re,se);if(0)var vr;var Eo=Ya;return function(Oo){var Tl=Oo.displayName||Oo.name||"Component",Vo=ve(Tl),jl=(0,Be.Z)({},lr,{getDisplayName:ve,methodName:Ae,renderCountProp:je,shouldHandleStateChanges:_e,storeKey:Ve,displayName:Vo,wrappedComponentName:Tl,WrappedComponent:Oo}),si=lr.pure;function pi(hi){return ee(hi.dispatch,jl)}var fu=si?b.useMemo:function(hi){return hi()};function su(hi){var Iu=(0,b.useMemo)(function(){var Cs=hi.reactReduxForwardedRef,Qs=(0,y.Z)(hi,le);return[hi.context,Cs,Qs]},[hi]),pu=Iu[0],ys=Iu[1],Qu=Iu[2],Ou=(0,b.useMemo)(function(){return pu&&pu.Consumer&&(0,oe.isContextConsumer)(b.createElement(pu.Consumer,null))?pu:Eo},[pu,Eo]),hu=(0,b.useContext)(Ou),Uu=!!hi.store&&!!hi.store.getState&&!!hi.store.dispatch,Ls=!!hu&&!!hu.store,Eu=Uu?hi.store:hu.store,Fs=(0,b.useMemo)(function(){return pi(Eu)},[Eu]),Ns=(0,b.useMemo)(function(){if(!_e)return Fe;var Cs=ue(Eu,Uu?null:hu.subscription),Qs=Cs.notifyNestedSubs.bind(Cs);return[Cs,Qs]},[Eu,Uu,hu]),as=Ns[0],Is=Ns[1],Os=(0,b.useMemo)(function(){return Uu?hu:(0,Be.Z)({},hu,{subscription:as})},[Uu,hu,as]),ad=(0,b.useReducer)(Le,Pe,Ge),_d=ad[0],Ms=_d[0],Jd=ad[1];if(Ms&&Ms.error)throw Ms.error;var rd=(0,b.useRef)(),zs=(0,b.useRef)(Qu),Rs=(0,b.useRef)(),od=(0,b.useRef)(!1),Vs=fu(function(){return Rs.current&&Qu===zs.current?Rs.current:Fs(Eu.getState(),Qu)},[Eu,Ms,Qu]);ut(Me,[zs,rd,od,Qu,Vs,Rs,Is]),ut(Ye,[_e,Eu,as,Fs,zs,rd,od,Rs,Is,Jd],[Eu,as,Fs]);var Ws=(0,b.useMemo)(function(){return b.createElement(Oo,(0,Be.Z)({},Vs,{ref:ys}))},[ys,Oo,Vs]),Xd=(0,b.useMemo)(function(){return _e?b.createElement(Ou.Provider,{value:Os},Ws):Ws},[Ou,Ws,Os]);return Xd}var qi=si?b.memo(su):su;if(qi.WrappedComponent=Oo,qi.displayName=su.displayName=Vo,fa){var vu=b.forwardRef(function(Iu,pu){return b.createElement(qi,(0,Be.Z)({},Iu,{reactReduxForwardedRef:pu}))});return vu.displayName=Vo,vu.WrappedComponent=Oo,te()(vu,Oo)}return te()(qi,Oo)}}function be(ee,ne){return ee===ne?ee!==0||ne!==0||1/ee===1/ne:ee!==ee&&ne!==ne}function ft(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 ia(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?on:je,_e=ne.selectorFactory,He=_e===void 0?mn:_e;return function(lt,Zt,la,fa){fa===void 0&&(fa={});var Pa=fa,Ya=Pa.pure,lr=Ya===void 0?!0:Ya,vr=Pa.areStatesEqual,Eo=vr===void 0?Wn:vr,uo=Pa.areOwnPropsEqual,Oo=uo===void 0?ft:uo,Tl=Pa.areStatePropsEqual,Vo=Tl===void 0?ft:Tl,jl=Pa.areMergedPropsEqual,si=jl===void 0?ft:jl,pi=(0,y.Z)(Pa,Ut),fu=kt(lt,pe,"mapStateToProps"),su=kt(Zt,ye,"mapDispatchToProps"),qi=kt(la,qe,"mergeProps");return de(He,(0,Be.Z)({methodName:"connect",getDisplayName:function(hi){return"Connect("+hi+")"},shouldHandleStateChanges:!!lt,initMapStateToProps:fu,initMapDispatchToProps:su,initMergeProps:qi,pure:lr,areStatesEqual:Eo,areOwnPropsEqual:Oo,areStatePropsEqual:Vo,areMergedPropsEqual:si},pi))}}var nn=ia();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 za=null,Aa=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:$i.Uw},[`${ge}-panel > ${ge}-time-panel`]:{paddingTop:so},[`${ge}-ranges`]:{marginBottom:0,padding:`${so}px ${Fo}px`,overflow:"hidden",lineHeight:`${xo-2*It-Sa/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${ge}-preset > ${fe}-tag-blue`]:{color:Xr,background:ll,borderColor:jn,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:st*1.5,transition:`left ${Ar} ease-out`},(0,ls.r)(co,Po,jo,Zo,il)),[`${ge}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:Zo,borderRadius:Bo,boxShadow:$o,transition:`margin ${Ar}`,[`${ge}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${ge}-presets`]:{display:"flex",flexDirection:"column",minWidth:No,maxWidth:Ml,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Sa,borderInlineEnd:`${It}px ${Ot} ${Zr}`,li:Object.assign(Object.assign({},wu.vS),{borderRadius:bl,paddingInline:Sa,paddingBlock:(Rn-Math.round(Ie*ha))/2,cursor:"pointer",transition:`all ${Ar}`,"+ li":{marginTop:cn},"&:hover":{background:el}})}},[`${ge}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${ge}-panel`]:{borderWidth:`0 0 ${It}px`},"&:last-child":{[`${ge}-panel`]:{borderWidth:0}}},[`${ge}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${ge}-content, + table`]:{textAlign:"center"},"&-focused":{borderColor:an}}}}),"&-dropdown-range":{padding:`${co*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${ge}-separator`]:{transform:"rotate(180deg)"},[`${ge}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,$i.oN)(ce,"slide-up"),(0,$i.oN)(ce,"slide-down"),(0,bi.Fm)(ce,"move-up"),(0,bi.Fm)(ce,"move-down")]},ds=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}},cs=ce=>({cellHoverBg:ce.controlItemBgHover,cellActiveWithRangeBg:ce.controlItemBgActive,cellHoverWithRangeBg:new xu.C(ce.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new xu.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 Gu=(0,is.Z)("DatePicker",ce=>{const ge=(0,Bi.TS)((0,Ol.e5)(ce),ds(ce));return[br(ge),ss(ge),(0,ou.c)(ce,{focusElCls:`${ce.componentCls}-focused`})]},ce=>Object.assign(Object.assign(Object.assign({},(0,Ol.TM)(ce)),cs(ce)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:ce.zIndexPopupBase+50}));function Du(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 gs(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 Hu(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 du(ce){return ce?Array.isArray(ce)?ce:[ce]:[]}function Dl(ce){const{format:ge,picker:fe,showHour:Ne,showMinute:Ie,showSecond:st,use12Hours:at}=ce,It=du(ge)[0],Ot=Object.assign({},ce);return ge&&Array.isArray(ge)&&(Ot.format=It),It&&typeof It=="string"&&(!It.includes("s")&&st===void 0&&(Ot.showSecond=!1),!It.includes("m")&&Ie===void 0&&(Ot.showMinute=!1),!It.includes("H")&&!It.includes("h")&&!It.includes("K")&&!It.includes("k")&&Ne===void 0&&(Ot.showHour=!1),(It.includes("a")||It.includes("A"))&&at===void 0&&(Ot.use12Hours=!0)),fe==="time"?Ot:(typeof It=="function"&&delete Ot.format,{showTime:Ot})}function ql(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 zu=ae(3113);function ms(ce){return le.createElement(zu.ZP,Object.assign({size:"small",type:"primary"},ce))}var Na={button:ms},Xu=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:st,className:at,placement:It,size:Ot,disabled:an,bordered:Yn=!0,placeholder:Qt,popupClassName:mn,dropdownClassName:In,status:On,clearIcon:Dt,allowClear:un,rootClassName:Rn}=fe,oa=Xu(fe,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","clearIcon","allowClear","rootClassName"]),Sa=le.useRef(null),{getPrefixCls:cn,direction:ka,getPopupContainer:Ta}=(0,le.useContext)(ku.E_),ha=cn("picker",Ie),{compactSize:Xr,compactItemClassnames:Ar}=(0,Gl.ri)(ha,ka),{format:Yr,showTime:so,picker:Fo}=fe,xo=cn(),[ll,jn]=Gu(ha),co=Object.assign(Object.assign({},so?Dl(Object.assign({format:Yr,picker:Fo},so)):{}),Fo==="time"?Dl(Object.assign(Object.assign({format:Yr},fe),{picker:Fo})):{}),Po=(0,Ku.Z)(il=>{var Pl;return(Pl=Ot!=null?Ot:Xr)!==null&&Pl!==void 0?Pl:il}),jo=le.useContext(ru.Z),Zo=an!=null?an:jo,Bo=(0,le.useContext)(Tu.aM),{hasFeedback:$o,status:bl,feedbackIcon:Zr}=Bo,el=le.createElement(le.Fragment,null,Fo==="time"?le.createElement(ft,null):le.createElement(Me,null),$o&&Zr);(0,le.useImperativeHandle)(Ne,()=>({focus:()=>{var il;return(il=Sa.current)===null||il===void 0?void 0:il.focus()},blur:()=>{var il;return(il=Sa.current)===null||il===void 0?void 0:il.blur()}}));const[No]=(0,ju.Z)("Calendar",_u.Z),Ml=Object.assign(Object.assign({},No),fe.locale);return ll(le.createElement(Yu,Object.assign({separator:le.createElement("span",{"aria-label":"to",className:`${ha}-separator`},le.createElement(Ut,null)),disabled:Zo,ref:Sa,dropdownAlign:Hu(ka,It),placeholder:gs(Ml,Fo,Qt),suffixIcon:el,prevIcon:le.createElement("span",{className:`${ha}-prev-icon`}),nextIcon:le.createElement("span",{className:`${ha}-next-icon`}),superPrevIcon:le.createElement("span",{className:`${ha}-super-prev-icon`}),superNextIcon:le.createElement("span",{className:`${ha}-super-next-icon`}),transitionName:`${xo}-slide-up`},oa,co,{className:Te()({[`${ha}-${Po}`]:Po,[`${ha}-borderless`]:!Yn},(0,Su.Z)(ha,(0,Su.F)(bl,On),$o),jn,Ar,at,Rn),locale:Ml.lang,prefixCls:ha,getPopupContainer:st||Ta,generateConfig:ce,components:Na,direction:ka,dropdownClassName:Te()(jn,mn||In,Rn),allowClear:ql(un,Dt,le.createElement(ct.Z,null))})))})}var zi=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:Dt,style:un,className:Rn,rootClassName:oa,size:Sa,bordered:cn=!0,placement:ka,placeholder:Ta,popupClassName:ha,dropdownClassName:Xr,disabled:Ar,status:Yr,clearIcon:so,allowClear:Fo}=mn,xo=zi(mn,["prefixCls","getPopupContainer","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","clearIcon","allowClear"]),{getPrefixCls:ll,direction:jn,getPopupContainer:co,[Yn]:Po}=(0,le.useContext)(ku.E_),jo=ll("picker",On),{compactSize:Zo,compactItemClassnames:Bo}=(0,Gl.ri)(jo,jn),$o=le.useRef(null),{format:bl,showTime:Zr}=mn,[el,No]=Gu(jo);(0,le.useImperativeHandle)(In,()=>({focus:()=>{var Rl;return(Rl=$o.current)===null||Rl===void 0?void 0:Rl.focus()},blur:()=>{var Rl;return(Rl=$o.current)===null||Rl===void 0?void 0:Rl.blur()}}));const Ml={showToday:!0};let il={};Ot&&(il.picker=Ot);const Pl=Ot||mn.picker;il=Object.assign(Object.assign(Object.assign({},il),Zr?Dl(Object.assign({format:bl,picker:Pl},Zr)):{}),Pl==="time"?Dl(Object.assign(Object.assign({format:bl},mn),{picker:Pl})):{});const wo=ll(),Vl=(0,Ku.Z)(Rl=>{var xi;return(xi=Sa!=null?Sa:Zo)!==null&&xi!==void 0?xi:Rl}),Nl=le.useContext(ru.Z),$l=Ar!=null?Ar:Nl,ii=(0,le.useContext)(Tu.aM),{hasFeedback:mo,status:ul,feedbackIcon:tl}=ii,Xo=le.createElement(le.Fragment,null,Pl==="time"?le.createElement(ft,null):le.createElement(Me,null),mo&&tl),[El]=(0,ju.Z)("DatePicker",_u.Z),gl=Object.assign(Object.assign({},El),mn.locale);return el(le.createElement(Ru,Object.assign({ref:$o,placeholder:Du(gl,Pl,Ta),suffixIcon:Xo,dropdownAlign:Hu(jn,ka),prevIcon:le.createElement("span",{className:`${jo}-prev-icon`}),nextIcon:le.createElement("span",{className:`${jo}-next-icon`}),superPrevIcon:le.createElement("span",{className:`${jo}-super-prev-icon`}),superNextIcon:le.createElement("span",{className:`${jo}-super-next-icon`}),transitionName:`${wo}-slide-up`},Ml,xo,il,{locale:gl.lang,className:Te()({[`${jo}-${Vl}`]:Vl,[`${jo}-borderless`]:!cn},(0,Su.Z)(jo,(0,Su.F)(ul,Yr),mo),No,Bo,Po==null?void 0:Po.className,Rn,oa),style:Object.assign(Object.assign({},Po==null?void 0:Po.style),un),prefixCls:jo,getPopupContainer:Dt||co,generateConfig:ce,components:Na,direction:jn,disabled:$l,dropdownClassName:Te()(No,oa,ha||Xr),allowClear:ql(Fo,so,le.createElement(ct.Z,null))})))});return an&&(Qt.displayName=an),Qt}const fe=ge(),Ne=ge("week","WeekPicker"),Ie=ge("month","MonthPicker"),st=ge("year","YearPicker"),at=ge("time","TimePicker"),It=ge("quarter","QuarterPicker");return{DatePicker:fe,WeekPicker:Ne,MonthPicker:Ie,YearPicker:st,TimePicker:at,QuarterPicker:It}}const Vu=null;function fs(ce){const{DatePicker:ge,WeekPicker:fe,MonthPicker:Ne,YearPicker:Ie,TimePicker:st,QuarterPicker:at}=aa(ce),It=Pu(ce),Ot=ge;return Ot.WeekPicker=fe,Ot.MonthPicker=Ne,Ot.YearPicker=Ie,Ot.RangePicker=It,Ot.TimePicker=st,Ot.QuarterPicker=at,Ot}var vs=fs;const eu=vs(te);function Lu(ce){const ge=Hu(ce.direction,ce.placement);return ge.overflow.adjustY=!1,ge.overflow.adjustX=!1,Object.assign(Object.assign({},ce),{dropdownAlign:ge})}const Wu=(0,oe.Z)(eu,"picker",null,Lu);eu._InternalPanelDoNotUseOrYouWillBeFired=Wu;const Ll=(0,oe.Z)(eu.RangePicker,"picker",null,Lu);eu._InternalRangePanelDoNotUseOrYouWillBeFired=Ll,eu.generatePicker=vs;var ps=eu},39722:function(ot,Gt,ae){"use strict";ae.d(Gt,{t5:function(){return De}});var b=ae(92310),Ee=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:Ee()(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})))};Gt.ZP=ke},60324:function(ot,Gt,ae){"use strict";var b=ae(92310),Ee=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:le={}}=Ue,Pe=De(Ue,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:Fe}=we.useContext(We.E_),Qe=Fe("popover",E),[Le,ut]=(0,Oe.Z)(Qe),Me=Fe(),Ye=Ee()(y,ut);return Le(we.createElement(xe.Z,Object.assign({placement:z,trigger:te,mouseEnterDelay:oe,mouseLeaveDelay:se,overlayStyle:le},Pe,{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",Pe.transitionName),"data-popover-inject":!0})))});ze._InternalPanelDoNotUseOrYouWillBeFired=Ke.ZP,Gt.Z=ze},17356:function(ot,Gt,ae){"use strict";var b=ae(17313),Ee=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,le=z;return{[ke]:{[`${ke}-inner`]:{padding:0},[`${ke}-title`]:{margin:0,padding:`${oe}px ${le}px ${se}px`,borderBottom:`${ze}px ${Ue} ${ue}`},[`${ke}-inner-content`]:{padding:`${E}px ${le}px`}}}};Gt.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,Ee._y)(ue,"zoom-big")]},De=>({width:177,minWidth:177,zIndexPopup:De.zIndexPopupBase+30}),{resetStyle:!1,deprecatedTokens:[["width","minWidth"]]})},12563:function(ot,Gt,ae){"use strict";ae.d(Gt,{default:function(){return ut}});var b=ae(59301),Ee=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,ft=$e-Ge,ct=Ye-Ge;return{[be]:Object.assign(Object.assign({},(0,Oe.Wf)(Me)),{display:"inline-block",height:"auto",marginInlineEnd:Me.marginXS,paddingInline:ft,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:ft}}),[`${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:ft,onClick:ct}=Me,Ft=a(Me,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:At,tag:hn}=b.useContext(Ke.E_),Bn=Jt=>{ft==null||ft(!be),ct==null||ct(Jt)},Ut=At("tag",Ye),[Pt,Te]=E(Ut),et=Be()(Ut,`${Ut}-checkable`,{[`${Ut}-checkable-checked`]:be},hn==null?void 0:hn.className,$e,Te);return Pt(b.createElement("span",Object.assign({},Ft,{style:Object.assign(Object.assign({},Ge),hn==null?void 0:hn.style),className:et,onClick:Bn})))},z=ae(45157);const te=Me=>(0,z.Z)(Me,(Ye,Ge)=>{let{textColor:$e,lightBorderColor:be,lightColor:ft,darkColor:ct}=Ge;return{[`${Me.componentCls}-${Ye}`]:{color:$e,background:ft,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 le=(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 Pe=(0,ke.b)(["Tag","status"],Me=>{const Ye=Ue(Me);return[le(Ye,"success","Success"),le(Ye,"processing","Info"),le(Ye,"error","Error"),le(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:ft,children:ct,icon:Ft,color:At,onClose:hn,closeIcon:Bn,closable:Ut,bordered:Pt=!0}=Me,Te=Fe(Me,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:et,direction:Jt,tag:xn}=b.useContext(Ke.E_),[Mt,qt]=b.useState(!0);b.useEffect(()=>{"visible"in Te&&qt(Te.visible)},[Te.visible]);const Ce=(0,Re.o2)(At),rt=(0,Re.yT)(At),rn=Ce||rt,tt=Object.assign(Object.assign({backgroundColor:At&&!rn?At:void 0},xn==null?void 0:xn.style),ft),pt=et("tag",Ge),[Xn,gn]=E(pt),Yt=Be()(pt,xn==null?void 0:xn.className,{[`${pt}-${At}`]:rn,[`${pt}-has-color`]:At&&!rn,[`${pt}-hidden`]:!Mt,[`${pt}-rtl`]:Jt==="rtl",[`${pt}-borderless`]:!Pt},$e,be,gn),jt=Fa=>{Fa.stopPropagation(),hn==null||hn(Fa),!Fa.defaultPrevented&&qt(!1)},[,Vn]=(0,We.Z)(Ut,Bn,Fa=>Fa===null?b.createElement(Ee.Z,{className:`${pt}-close-icon`,onClick:jt}):b.createElement("span",{className:`${pt}-close-icon`,onClick:jt},Fa),null,!1),ia=typeof Te.onClick=="function"||ct&&ct.type==="a",tn=Ft||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:Yt,style:tt}),Ba,Vn,Ce&&b.createElement(oe,{key:"preset",prefixCls:pt}),rt&&b.createElement(Pe,{key:"status",prefixCls:pt}));return Xn(ia?b.createElement(xe.Z,{component:"Tag"},Ka):Ka)},Le=b.forwardRef(Qe);Le.CheckableTag=y;var ut=Le},98228:function(ot,Gt,ae){"use strict";ae.d(Gt,{default:function(){return Mo}});var b=ae(92310),Ee=ae.n(b),we=ae(60499),Be=ae(77654),Re=ae(85899),We=ae(72190),xe=ae(42244),Ke=ae(43749),Oe=ae(77861),De=ae(17115),ke=ae(90782),ze=ae(18929),Ue=ae(48736),ue=ae(59301),E=function(Kt){var Un=ue.useRef({valueLabels:new Map});return ue.useMemo(function(){var $n=Un.current.valueLabels,ba=new Map,Ze=Kt.map(function(kt){var $t,vn=kt.value,Tt=($t=kt.label)!==null&&$t!==void 0?$t:$n.get(vn);return ba.set(vn,Tt),(0,Re.Z)((0,Re.Z)({},kt),{},{label:Tt})});return Un.current.valueLabels=ba,[Ze]},[Kt])},a=function(Kt,Un,$n,ba){return ue.useMemo(function(){var Ze=Kt.map(function(Tt){var Wn=Tt.value;return Wn}),kt=Un.map(function(Tt){var Wn=Tt.value;return Wn}),$t=Ze.filter(function(Tt){return!ba[Tt]});if($n){var vn=(0,ke.S)(Ze,!0,ba);Ze=vn.checkedKeys,kt=vn.halfCheckedKeys}return[Array.from(new Set([].concat((0,Be.Z)($t),(0,Be.Z)(Ze)))),kt]},[Kt,Un,$n,ba])},x=ae(71430),y=function(Kt,Un){return ue.useMemo(function(){var $n=(0,x.I8)(Kt,{fieldNames:Un,initWrapper:function(Ze){return(0,Re.Z)((0,Re.Z)({},Ze),{},{valueEntities:new Map})},processEntity:function(Ze,kt){var $t=Ze.node[Un.value];if(0)var vn;kt.valueEntities.set($t,Ze)}});return $n},[Kt,Un])},z=ae(18642),te=ae(11592),oe=function(){return null},se=oe,le=["children","value"];function Pe(Kt){return(0,te.Z)(Kt).map(function(Un){if(!ue.isValidElement(Un)||!Un.type)return null;var $n=Un,ba=$n.key,Ze=$n.props,kt=Ze.children,$t=Ze.value,vn=(0,xe.Z)(Ze,le),Tt=(0,Re.Z)({key:ba,value:$t},vn),Wn=Pe(kt);return Wn.length&&(Tt.children=Wn),Tt}).filter(function(Un){return Un})}function Fe(Kt){if(!Kt)return Kt;var Un=(0,Re.Z)({},Kt);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(Kt,Un,$n,ba,Ze,kt){var $t=null,vn=null;function Tt(){function Wn(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,on){var Cn="".concat(Je,"-").concat(on),Ln=Xe[kt.value],wa=$n.includes(Ln),pa=Wn(Xe[kt.children]||[],Cn,wa),ta=ue.createElement(se,Xe,pa.map(function(qn){return qn.node}));if(Un===Ln&&($t=ta),wa){var ya={pos:Cn,node:ta,children:pa};return nt||vn.push(ya),ya}return null}).filter(function(Xe){return Xe})}vn||(vn=[],Wn(ba),vn.sort(function(Kn,Je){var nt=Kn.node.props.value,Xe=Je.node.props.value,on=$n.indexOf(nt),Cn=$n.indexOf(Xe);return on-Cn}))}Object.defineProperty(Kt,"triggerNode",{get:function(){return(0,Ue.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),Tt(),$t}}),Object.defineProperty(Kt,"allCheckedNodes",{get:function(){return(0,Ue.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),Tt(),Ze?vn:vn.map(function(Kn){var Je=Kn.node;return Je})}})}var Le=function(Kt,Un,$n){var ba=$n.treeNodeFilterProp,Ze=$n.filterTreeNode,kt=$n.fieldNames,$t=kt.children;return ue.useMemo(function(){if(!Un||Ze===!1)return Kt;var vn;if(typeof Ze=="function")vn=Ze;else{var Tt=Un.toUpperCase();vn=function(Je,nt){var Xe=nt[ba];return String(Xe).toUpperCase().includes(Tt)}}function Wn(Kn){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Kn.reduce(function(nt,Xe){var on=Xe[$t],Cn=Je||vn(Un,Fe(Xe)),Ln=Wn(on||[],Cn);return(Cn||Ln.length)&&nt.push((0,Re.Z)((0,Re.Z)({},Xe),{},(0,z.Z)({isLeaf:void 0},$t,Ln))),nt},[])}return Wn(Kt)},[Kt,Un,$t,ba,Ze])};function ut(Kt){var Un=ue.useRef();Un.current=Kt;var $n=ue.useCallback(function(){return Un.current.apply(Un,arguments)},[]);return $n}function Me(Kt,Un){var $n=Un.id,ba=Un.pId,Ze=Un.rootPId,kt={},$t=[],vn=Kt.map(function(Tt){var Wn=(0,Re.Z)({},Tt),Kn=Wn[$n];return kt[Kn]=Wn,Wn.key=Wn.key||Kn,Wn});return vn.forEach(function(Tt){var Wn=Tt[ba],Kn=kt[Wn];Kn&&(Kn.children=Kn.children||[],Kn.children.push(Tt)),(Wn===Ze||!Kn&&Ze===null)&&$t.push(Tt)}),$t}function Ye(Kt,Un,$n){return ue.useMemo(function(){return Kt?$n?Me(Kt,(0,Re.Z)({id:"id",pId:"pId",rootPId:null},$n!==!0?$n:{})):Kt:Pe(Un)},[Un,$n,Kt])}var Ge=ue.createContext(null),$e=Ge,be=ae(10228),ft=ae(80547),ct=ae(38028),Ft=ue.createContext(null),At=Ft;function hn(Kt){return Array.isArray(Kt)?Kt:Kt!==void 0?[Kt]:[]}function Bn(Kt){var Un=Kt||{},$n=Un.label,ba=Un.value,Ze=Un.children,kt=ba||"value";return{_title:$n?[$n]:["title","label"],value:kt,key:kt,children:Ze||"children"}}function Ut(Kt){return!Kt||Kt.disabled||Kt.disableCheckbox||Kt.checkable===!1}function Pt(Kt,Un){var $n=[];function ba(Ze){Ze.forEach(function(kt){var $t=kt[Un.children];$t&&($n.push(kt[Un.value]),ba($t))})}return ba(Kt),$n}function Te(Kt){return Kt==null}var et={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Jt=function(Un,$n){var ba=(0,Oe.lk)(),Ze=ba.prefixCls,kt=ba.multiple,$t=ba.searchValue,vn=ba.toggleOpen,Tt=ba.open,Wn=ba.notFoundContent,Kn=ue.useContext(At),Je=Kn.virtual,nt=Kn.listHeight,Xe=Kn.listItemHeight,on=Kn.treeData,Cn=Kn.fieldNames,Ln=Kn.onSelect,wa=Kn.dropdownMatchSelectWidth,pa=Kn.treeExpandAction,ta=ue.useContext($e),ya=ta.checkable,qn=ta.checkedKeys,Wt=ta.halfCheckedKeys,Ma=ta.treeExpandedKeys,hr=ta.treeDefaultExpandAll,So=ta.treeDefaultExpandedKeys,$a=ta.onTreeExpand,Vt=ta.treeIcon,$r=ta.showTreeIcon,Ua=ta.switcherIcon,Pr=ta.treeLine,ur=ta.treeNodeFilterProp,Qr=ta.loadData,Lr=ta.treeLoadedKeys,ro=ta.treeMotion,Tr=ta.onTreeLoad,ca=ta.keyEntities,nn=ue.useRef(),mr=(0,ft.Z)(function(){return on},[Tt,on],function(Er,no){return no[0]&&Er[1]!==no[1]}),ga=ue.useState(null),sr=(0,We.Z)(ga,2),Va=sr[0],pn=sr[1],na=ca[Va],La=ue.useMemo(function(){return ya?{checked:qn,halfChecked:Wt}:null},[ya,qn,Wt]);ue.useEffect(function(){if(Tt&&!kt&&qn.length){var Er;(Er=nn.current)===null||Er===void 0||Er.scrollTo({key:qn[0]}),pn(qn[0])}},[Tt]);var _n=String($t).toLowerCase(),dr=function(no){return _n?String(no[ur]).toLowerCase().includes(_n):!1},tr=ue.useState(So),yr=(0,We.Z)(tr,2),eo=yr[0],fr=yr[1],_o=ue.useState(null),Ro=(0,We.Z)(_o,2),Fl=Ro[0],wr=Ro[1],Or=ue.useMemo(function(){return Ma?(0,Be.Z)(Ma):$t?Fl:eo},[eo,Fl,Ma,$t]);ue.useEffect(function(){$t&&wr(Pt(on,Cn))},[$t]);var Ao=function(no){fr(no),wr(no),$a&&$a(no)},Ja=function(no){no.preventDefault()},Ur=function(no,wt){var yt=wt.node;ya&&Ut(yt)||(Ln(yt.key,{selected:!qn.includes(yt.key)}),kt||vn(!1))};if(ue.useImperativeHandle($n,function(){var Er;return{scrollTo:(Er=nn.current)===null||Er===void 0?void 0:Er.scrollTo,onKeyDown:function(wt){var yt,ht=wt.which;switch(ht){case be.Z.UP:case be.Z.DOWN:case be.Z.LEFT:case be.Z.RIGHT:(yt=nn.current)===null||yt===void 0||yt.onKeyDown(wt);break;case be.Z.ENTER:{if(na){var Mn=(na==null?void 0:na.node)||{},Ga=Mn.selectable,rr=Mn.value;Ga!==!1&&Ur(null,{node:{key:Va},selected:!qn.includes(rr)})}break}case be.Z.ESC:vn(!1)}},onKeyUp:function(){}}}),mr.length===0)return ue.createElement("div",{role:"listbox",className:"".concat(Ze,"-empty"),onMouseDown:Ja},Wn);var to={fieldNames:Cn};return Lr&&(to.loadedKeys=Lr),Or&&(to.expandedKeys=Or),ue.createElement("div",{onMouseDown:Ja},na&&Tt&&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:mr,height:nt,itemHeight:Xe,virtual:Je!==!1&&wa!==!1,multiple:kt,icon:Vt,showIcon:$r,switcherIcon:Ua,showLine:Pr,loadData:$t?null:Qr,motion:ro,activeKey:Va,checkable:ya,checkStrictly:!0,checkedKeys:La,selectedKeys:ya?[]:qn,defaultExpandAll:hr},to,{onActiveChange:pn,onSelect:Ur,onCheck:Ur,onExpand:Ao,onLoad:Tr,filterTreeNode:dr,expandAction:pa})))},xn=ue.forwardRef(Jt);xn.displayName="OptionList";var Mt=xn,qt="SHOW_ALL",Ce="SHOW_PARENT",rt="SHOW_CHILD";function rn(Kt,Un,$n,ba){var Ze=new Set(Kt);return Un===rt?Kt.filter(function(kt){var $t=$n[kt];return!($t&&$t.children&&$t.children.some(function(vn){var Tt=vn.node;return Ze.has(Tt[ba.value])})&&$t.children.every(function(vn){var Tt=vn.node;return Ut(Tt)||Ze.has(Tt[ba.value])}))}):Un===Ce?Kt.filter(function(kt){var $t=$n[kt],vn=$t?$t.parent:null;return!(vn&&!Ut(vn.node)&&Ze.has(vn.key))}):Kt}function tt(Kt){var Un=Kt.searchPlaceholder,$n=Kt.treeCheckStrictly,ba=Kt.treeCheckable,Ze=Kt.labelInValue,kt=Kt.value,$t=Kt.multiple;warning(!Un,"`searchPlaceholder` has been removed."),$n&&Ze===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Ze||$n)&&warning(toArray(kt).every(function(vn){return vn&&_typeof(vn)==="object"&&"value"in vn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),$n||$t||ba?warning(!kt||Array.isArray(kt),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(kt),"`value` should not be array when `TreeSelect` is single mode.")}var pt=null,Xn=["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 gn(Kt){return!Kt||(0,Ke.Z)(Kt)!=="object"}var Yt=ue.forwardRef(function(Kt,Un){var $n=Kt.id,ba=Kt.prefixCls,Ze=ba===void 0?"rc-tree-select":ba,kt=Kt.value,$t=Kt.defaultValue,vn=Kt.onChange,Tt=Kt.onSelect,Wn=Kt.onDeselect,Kn=Kt.searchValue,Je=Kt.inputValue,nt=Kt.onSearch,Xe=Kt.autoClearSearchValue,on=Xe===void 0?!0:Xe,Cn=Kt.filterTreeNode,Ln=Kt.treeNodeFilterProp,wa=Ln===void 0?"value":Ln,pa=Kt.showCheckedStrategy,ta=Kt.treeNodeLabelProp,ya=Kt.multiple,qn=Kt.treeCheckable,Wt=Kt.treeCheckStrictly,Ma=Kt.labelInValue,hr=Kt.fieldNames,So=Kt.treeDataSimpleMode,$a=Kt.treeData,Vt=Kt.children,$r=Kt.loadData,Ua=Kt.treeLoadedKeys,Pr=Kt.onTreeLoad,ur=Kt.treeDefaultExpandAll,Qr=Kt.treeExpandedKeys,Lr=Kt.treeDefaultExpandedKeys,ro=Kt.onTreeExpand,Tr=Kt.treeExpandAction,ca=Kt.virtual,nn=Kt.listHeight,mr=nn===void 0?200:nn,ga=Kt.listItemHeight,sr=ga===void 0?20:ga,Va=Kt.onDropdownVisibleChange,pn=Kt.dropdownMatchSelectWidth,na=pn===void 0?!0:pn,La=Kt.treeLine,_n=Kt.treeIcon,dr=Kt.showTreeIcon,tr=Kt.switcherIcon,yr=Kt.treeMotion,eo=(0,xe.Z)(Kt,Xn),fr=(0,De.ZP)($n),_o=qn&&!Wt,Ro=qn||Wt,Fl=Wt||Ma,wr=Ro||ya,Or=(0,ze.Z)($t,{value:kt}),Ao=(0,We.Z)(Or,2),Ja=Ao[0],Ur=Ao[1],to=ue.useMemo(function(){return qn?pa||rt:qt},[pa,qn]),Er=ue.useMemo(function(){return Bn(hr)},[JSON.stringify(hr)]),no=(0,ze.Z)("",{value:Kn!==void 0?Kn:Je,postState:function(va){return va||""}}),wt=(0,We.Z)(no,2),yt=wt[0],ht=wt[1],Mn=function(va){ht(va),nt==null||nt(va)},Ga=Ye($a,Vt,So),rr=y(Ga,Er),Sn=rr.keyEntities,er=rr.valueEntities,Xa=ue.useCallback(function(ma){var va=[],or=[];return ma.forEach(function(Sr){er.has(Sr)?or.push(Sr):va.push(Sr)}),{missingRawValues:va,existRawValues:or}},[er]),oo=Le(Ga,yt,{fieldNames:Er,treeNodeFilterProp:wa,filterTreeNode:Cn}),cr=ue.useCallback(function(ma){if(ma){if(ta)return ma[ta];for(var va=Er._title,or=0;or{const{componentCls:Un,treePrefixCls:$n,colorBgElevated:ba}=Kt,Ze=`.${$n}`;return[{[`${Un}-dropdown`]:[{padding:`${Kt.paddingXS}px ${Kt.paddingXS/2}px`},(0,Za.Yk)($n,(0,St.TS)(Kt,{colorBgContainer:ba})),{[Ze]:{borderRadius:0,[`${Ze}-list-holder-inner`]:{alignItems:"stretch",[`${Ze}-treenode`]:{[`${Ze}-node-content-wrapper`]:{flex:"auto"}}}}},(0,ln.C2)(`${$n}-checkbox`,Kt),{"&-rtl":{direction:"rtl",[`${Ze}-switcher${Ze}-switcher_close`]:{[`${Ze}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function Wa(Kt,Un){return(0,Zt.Z)("TreeSelect",$n=>{const ba=(0,St.TS)($n,{treePrefixCls:Un});return[Ca(ba)]},Za.TM)(Kt)}var Da=function(Kt,Un){var $n={};for(var ba in Kt)Object.prototype.hasOwnProperty.call(Kt,ba)&&Un.indexOf(ba)<0&&($n[ba]=Kt[ba]);if(Kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ba=Object.getOwnPropertySymbols(Kt);Ze{var $n,{prefixCls:ba,size:Ze,disabled:kt,bordered:$t=!0,className:vn,rootClassName:Tt,treeCheckable:Wn,multiple:Kn,listHeight:Je=256,listItemHeight:nt=26,placement:Xe,notFoundContent:on,switcherIcon:Cn,treeLine:Ln,getPopupContainer:wa,popupClassName:pa,dropdownClassName:ta,treeIcon:ya=!1,transitionName:qn,choiceTransitionName:Wt="",status:Ma,treeExpandAction:hr,builtinPlacements:So,dropdownMatchSelectWidth:$a,popupMatchSelectWidth:Vt,allowClear:$r}=Kt,Ua=Da(Kt,["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:Pr,getPrefixCls:ur,renderEmpty:Qr,direction:Lr,virtual:ro,popupMatchSelectWidth:Tr,popupOverflow:ca}=ue.useContext(kn.E_),nn=ur(),mr=ur("select",ba),ga=ur("select-tree",ba),sr=ur("tree-select",ba),{compactSize:Va,compactItemClassnames:pn}=(0,_a.ri)(mr,Lr),[na,La]=(0,Tn.Z)(mr),[_n]=Wa(sr,ga),dr=Ee()(pa||ta,`${sr}-dropdown`,{[`${sr}-dropdown-rtl`]:Lr==="rtl"},Tt,La),tr=!!(Wn||Kn),yr=(0,Ea.Z)(Ua.suffixIcon,Ua.showArrow),eo=($n=Vt!=null?Vt:$a)!==null&&$n!==void 0?$n:Tr,{status:fr,hasFeedback:_o,isFormItemInput:Ro,feedbackIcon:Fl}=ue.useContext(ua.aM),wr=(0,Fa.F)(fr,Ma),{suffixIcon:Or,removeIcon:Ao,clearIcon:Ja}=(0,xa.Z)(Object.assign(Object.assign({},Ua),{multiple:tr,showSuffixIcon:yr,hasFeedback:_o,feedbackIcon:Fl,prefixCls:mr,componentName:"TreeSelect"})),Ur=$r===!0?{clearIcon:Ja}:$r;let to;on!==void 0?to=on:to=(Qr==null?void 0:Qr("Select"))||ue.createElement(Aa.Z,{componentName:"Select"});const Er=(0,tn.Z)(Ua,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),no=ue.useMemo(()=>Xe!==void 0?Xe:Lr==="rtl"?"bottomRight":"bottomLeft",[Xe,Lr]),wt=(0,da.Z)(So,ca),yt=(0,vr.Z)(er=>{var Xa;return(Xa=Ze!=null?Ze:Va)!==null&&Xa!==void 0?Xa:er}),ht=ue.useContext(za.Z),Mn=kt!=null?kt:ht,Ga=Ee()(!ba&&sr,{[`${mr}-lg`]:yt==="large",[`${mr}-sm`]:yt==="small",[`${mr}-rtl`]:Lr==="rtl",[`${mr}-borderless`]:!$t,[`${mr}-in-form-item`]:Ro},(0,Fa.Z)(mr,wr,_o),pn,vn,Tt,La),rr=er=>ue.createElement(En.Z,{prefixCls:ga,switcherIcon:Cn,treeNodeProps:er,showLine:Ln}),Sn=ue.createElement(ia,Object.assign({virtual:ro,disabled:Mn},Er,{dropdownMatchSelectWidth:eo,builtinPlacements:wt,ref:Un,prefixCls:mr,className:Ga,listHeight:Je,listItemHeight:nt,treeCheckable:Wn&&ue.createElement("span",{className:`${mr}-tree-checkbox-inner`}),treeLine:!!Ln,suffixIcon:Or,multiple:tr,placement:no,removeIcon:Ao,allowClear:Ur,switcherIcon:rr,showTreeIcon:ya,notFoundContent:to,getPopupContainer:wa||Pr,treeMotion:null,dropdownClassName:dr,choiceTransitionName:(0,Ka.m)(nn,"",Wt),transitionName:(0,Ka.m)(nn,"slide-up",qn),treeExpandAction:hr}));return na(_n(Sn))},ar=ue.forwardRef(Ra),kr=(0,Ba.Z)(ar);ar.TreeNode=se,ar.SHOW_ALL=qt,ar.SHOW_PARENT=Ce,ar.SHOW_CHILD=rt,ar._InternalPanelDoNotUseOrYouWillBeFired=kr;var Mo=ar},24334:function(ot,Gt,ae){var b,Ee;(function(we,Be){ot.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,ft=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),ft=[We.charAt(be>>>18),We.charAt(be>>>12&63),$e>=2?"=":We.charAt(be>>>6&63),$e>=1?"=":We.charAt(be&63)];return ft.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="",ft=0,ct=Ge.length;ft>>18)+We.charAt(Bn>>>12&63)+(typeof At!="undefined"?We.charAt(Bn>>>6&63):"=")+(typeof hn!="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)},se=function(Ge){var $e=Ge.length,be=$e%4,ft=($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(ft>>>16),Ke(ft>>>8&255),Ke(ft&255)];return ct.length-=[0,0,2,1][be],ct.join("")},le=we.atob&&typeof we.atob=="function"?function(Ge){return we.atob(Ge)}:function(Ge){return Ge.replace(/\S{1,4}/g,se)},Pe=function(Ge){return le(String(Ge).replace(/[^A-Za-z0-9\+\/]/g,""))},Fe=function(Ge){return oe(le(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))},ut;we.Uint8Array&&(ut=function(Ge){return Uint8Array.from(Pe(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:Pe,btoa:Ue,fromBase64:Le,toBase64:a,utob:ke,encode:a,encodeURI:x,btou:oe,decode:Le,noConflict:Me,fromUint8Array:y,toUint8Array:ut},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),ot.exports?ot.exports.Base64=we.Base64:(b=[],Ee=function(){return we.Base64}.apply(Gt,b),Ee!==void 0&&(ot.exports=Ee)),{Base64:we.Base64}})},43141:function(ot,Gt,ae){"use strict";ae.d(Gt,{Z5:function(){return Xi},_l:function(){return Vd},bK:function(){return nd}});var b=ae(59301),Ee=ae(29658);function we(ee,ne){ee.prototype=Object.create(ne.prototype),ee.prototype.constructor=ee,(0,Ee.Z)(ee,ne)}var Be=ae(60499),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(69010),z=ae(94266),te=ae.n(z),oe=ae(53410),se=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],le=["reactReduxForwardedRef"],Pe=[],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 ut(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 la=ne.getState(),fa,Pa;try{fa=de(la,ve.current)}catch(Ya){Pa=Ya,He=Ya}Pa||(He=null),fa===pe.current?Ae.current||je():(pe.current=fa,ye.current=fa,Ae.current=!0,qe({type:"STORE_UPDATED",payload:{error:Pa}}))}};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(uo){return"ConnectAdvanced("+uo+")"}: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,la=re.forwardRef,fa=la===void 0?!1:la,Pa=re.context,Ya=Pa===void 0?We:Pa,ir=(0,y.Z)(re,se);if(0)var pr;var Eo=Ya;return function(Oo){var Tl=Oo.displayName||Oo.name||"Component",Vo=ve(Tl),jl=(0,Be.Z)({},ir,{getDisplayName:ve,methodName:Ae,renderCountProp:je,shouldHandleStateChanges:_e,storeKey:Ve,displayName:Vo,wrappedComponentName:Tl,WrappedComponent:Oo}),si=ir.pure;function pi(hi){return ee(hi.dispatch,jl)}var fu=si?b.useMemo:function(hi){return hi()};function su(hi){var Iu=(0,b.useMemo)(function(){var Cs=hi.reactReduxForwardedRef,Qs=(0,y.Z)(hi,le);return[hi.context,Cs,Qs]},[hi]),pu=Iu[0],ys=Iu[1],Qu=Iu[2],Ou=(0,b.useMemo)(function(){return pu&&pu.Consumer&&(0,oe.isContextConsumer)(b.createElement(pu.Consumer,null))?pu:Eo},[pu,Eo]),hu=(0,b.useContext)(Ou),Uu=!!hi.store&&!!hi.store.getState&&!!hi.store.dispatch,Ls=!!hu&&!!hu.store,Eu=Uu?hi.store:hu.store,Fs=(0,b.useMemo)(function(){return pi(Eu)},[Eu]),Ns=(0,b.useMemo)(function(){if(!_e)return Fe;var Cs=ue(Eu,Uu?null:hu.subscription),Qs=Cs.notifyNestedSubs.bind(Cs);return[Cs,Qs]},[Eu,Uu,hu]),as=Ns[0],Is=Ns[1],Os=(0,b.useMemo)(function(){return Uu?hu:(0,Be.Z)({},hu,{subscription:as})},[Uu,hu,as]),ad=(0,b.useReducer)(Le,Pe,Ge),_d=ad[0],Ms=_d[0],Jd=ad[1];if(Ms&&Ms.error)throw Ms.error;var rd=(0,b.useRef)(),zs=(0,b.useRef)(Qu),Rs=(0,b.useRef)(),od=(0,b.useRef)(!1),Vs=fu(function(){return Rs.current&&Qu===zs.current?Rs.current:Fs(Eu.getState(),Qu)},[Eu,Ms,Qu]);ut(Me,[zs,rd,od,Qu,Vs,Rs,Is]),ut(Ye,[_e,Eu,as,Fs,zs,rd,od,Rs,Is,Jd],[Eu,as,Fs]);var Ws=(0,b.useMemo)(function(){return b.createElement(Oo,(0,Be.Z)({},Vs,{ref:ys}))},[ys,Oo,Vs]),Xd=(0,b.useMemo)(function(){return _e?b.createElement(Ou.Provider,{value:Os},Ws):Ws},[Ou,Ws,Os]);return Xd}var qi=si?b.memo(su):su;if(qi.WrappedComponent=Oo,qi.displayName=su.displayName=Vo,fa){var vu=b.forwardRef(function(Iu,pu){return b.createElement(qi,(0,Be.Z)({},Iu,{reactReduxForwardedRef:pu}))});return vu.displayName=Vo,vu.WrappedComponent=Oo,te()(vu,Oo)}return te()(qi,Oo)}}function be(ee,ne){return ee===ne?ee!==0||ne!==0||1/ee===1/ne:ee!==ee&&ne!==ne}function ft(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 Vn(ee,ne){return ee===ne}function ia(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?rn:je,_e=ne.selectorFactory,He=_e===void 0?gn:_e;return function(lt,zt,la,fa){fa===void 0&&(fa={});var Pa=fa,Ya=Pa.pure,ir=Ya===void 0?!0:Ya,pr=Pa.areStatesEqual,Eo=pr===void 0?Vn:pr,uo=Pa.areOwnPropsEqual,Oo=uo===void 0?ft:uo,Tl=Pa.areStatePropsEqual,Vo=Tl===void 0?ft:Tl,jl=Pa.areMergedPropsEqual,si=jl===void 0?ft:jl,pi=(0,y.Z)(Pa,Yt),fu=jt(lt,pe,"mapStateToProps"),su=jt(zt,ye,"mapDispatchToProps"),qi=jt(la,qe,"mergeProps");return de(He,(0,Be.Z)({methodName:"connect",getDisplayName:function(hi){return"Connect("+hi+")"},shouldHandleStateChanges:!!lt,initMapStateToProps:fu,initMapDispatchToProps:su,initMergeProps:qi,pure:ir,areStatesEqual:Eo,areOwnPropsEqual:Oo,areStatePropsEqual:Vo,areMergedPropsEqual:si},pi))}}var tn=ia();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 kn(ee){ee===void 0&&(ee=ReactReduxContext);var ne=ee===ReactReduxContext?useDefaultStore:createStoreHook(ee);return function(){var de=ne();return de.dispatch}}var za=null,Aa=function(ne,re){return ne===re};function vr(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+=` 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 la=re.getState();if(la===qe.current)return;var fa=je.current(la);if(ne(fa,_e.current))return;_e.current=fa,qe.current=la}catch(Pa){ye.current=Pa}pe()}return Ae.onStateChange=Zt,Ae.trySubscribe(),Zt(),function(){return Ae.tryUnsubscribe()}},[re,Ae]),Ve}function ua(ee){ee===void 0&&(ee=ReactReduxContext);var ne=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(de,ve){ve===void 0&&(ve=Aa);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 Ea(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=Ma(window,[{eventName:"error",fn:this.onWindowError}])},re.componentWillUnmount=function(){this.unbind()},re.componentDidCatch=function(ve){if(ve instanceof $a){this.setState({});return}throw ve},re.render=function(){return this.props.children(this.setCallbacks)},ne}(b.Component),Ua=` +`)},Ln=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 pa(ee,ne){var re;Je||typeof window!="undefined"&&window[wa]||(re=console)[ee].apply(re,Ln(ne))}var ta=pa.bind(null,"warn"),ya=pa.bind(null,"error");function qn(){}function Wt(ee,ne){return(0,Be.Z)({},ee,{},ne)}function Ma(ee,ne,re){var de=ne.map(function(ve){var pe=Wt(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 hr=!0,So="Invariant failed";function $a(ee){this.message=ee}$a.prototype.toString=function(){return this.message};function Vt(ee,ne){if(!ee)throw hr?new $a(So):new $a(So+": "+(ne||""))}var $r=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=Ma(window,[{eventName:"error",fn:this.onWindowError}])},re.componentWillUnmount=function(){this.unbind()},re.componentDidCatch=function(ve){if(ve instanceof $a){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 -`,Sr=function(ne){return ne+1},ir=function(ne){return` - You have lifted an item in position `+Sr(ne.source.index)+` -`},Wr=function(ne,re){var de=ne.droppableId===re.droppableId,ve=Sr(ne.index),pe=Sr(re.index);return de?` +`,Pr=function(ne){return ne+1},ur=function(ne){return` + You have lifted an item in position `+Pr(ne.source.index)+` +`},Qr=function(ne,re){var de=ne.droppableId===re.droppableId,ve=Pr(ne.index),pe=Pr(re.index);return de?` You have moved the item from position `+ve+` to position `+pe+` `:` @@ -346,38 +346,38 @@ The error may be correlated with this previous error: in list `+ne.droppableId+` to list `+re.droppableId+` in position `+pe+` - `},Dr=function(ne,re,de){var ve=re.droppableId===de.droppableId;return ve?` + `},Lr=function(ne,re,de){var ve=re.droppableId===de.droppableId;return ve?` The item `+ne+` has been combined with `+de.draggableId:` The item `+ne+` in list `+re.droppableId+` has been combined with `+de.draggableId+` in list `+de.droppableId+` - `},ao=function(ne){var re=ne.destination;if(re)return Wr(ne.source,re);var de=ne.combine;return de?Dr(ne.draggableId,ne.source,de):"You are over an area that cannot be dropped on"},kr=function(ne){return` + `},ro=function(ne){var re=ne.destination;if(re)return Qr(ne.source,re);var de=ne.combine;return de?Lr(ne.draggableId,ne.source,de):"You are over an area that cannot be dropped on"},Tr=function(ne){return` The item has returned to its starting position - of `+Sr(ne.index)+` + of `+Pr(ne.index)+` `},ca=function(ne){if(ne.reason==="CANCEL")return` Movement cancelled. - `+kr(ne.source)+` + `+Tr(ne.source)+` `;var re=ne.destination,de=ne.combine;return re?` You have dropped the item. - `+Wr(ne.source,re)+` + `+Qr(ne.source,re)+` `:de?` You have dropped the item. - `+Dr(ne.draggableId,ne.source,de)+` + `+Lr(ne.draggableId,ne.source,de)+` `:` The item has been dropped while not over a drop area. - `+kr(ne.source)+` - `},an={dragHandleUsageInstructions:Ua,onDragStart:ir,onDragUpdate:ao,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}},Va=function(ne,re){return ne.x===re.x&&ne.y===re.y},hn=function(ne){return{x:ne.x!==0?-ne.x:0,y:ne.y!==0?-ne.y:0}},aa=function(ne,re,de){var ve;return de===void 0&&(de=0),ve={},ve[ne]=re,ve[ne==="x"?"y":"x"]=de,ve},La=function(ne,re){return Math.sqrt(Math.pow(re.x-ne.x,2)+Math.pow(re.y-ne.y,2))},Jn=function(ne,re){return Math.min.apply(Math,re.map(function(de){return La(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}},$r=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},_o=function(ne,re){return re?Ar(ne,re.scroll.diff.displacement):ne},Ro=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},Fl=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=_o(ne.marginBox,ve),Ae=Ro(pe,de,re),ye=Fl(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=hn(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 Ao(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 Qr(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}},rl=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}},Tr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},yo={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},To=function(ee){return function(ne){var re=wr(ne.top,ne.bottom),de=wr(ne.left,ne.right);return function(ve){return ee===Tr?re(ve.top)&&re(ve.bottom):de(ve.left)&&de(ve.right)}}},sa=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?sa(re,de):re;return Dn(ye,de,Ae)&&Hn(ye,ve,Ae)},gt=function(ne){return me((0,Be.Z)({},ne,{isVisibleThroughFrameFn:bo}))},Ct=function(ne){return me((0,Be.Z)({},ne,{isVisibleThroughFrameFn:rl}))},cn=function(ne){return me((0,Be.Z)({},ne,{isVisibleThroughFrameFn:To(ne.destination.axis)}))},vt=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=vt(He,Ae,pe),Zt={draggableId:He,shouldAnimate:lt};return je.visible[He]=Zt,je},{all:[],visible:{},invisible:{}})}function vn(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=vn(ne,{inHomeList:re});return{displaced:dr,displacedBy:de,at:{type:"REORDER",destination:{droppableId:ve.descriptor.id,index:pe}}}}function Ia(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=eo(re,function(la){return la.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),Zt=An({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:Ia({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:Ia({draggable:de,insideDestination:Ae,destination:pe,viewport:je,last:ye.displaced,displacedBy:ye.displacedBy,index:Ve})},rr=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:hn(ve.point):pe?ve.point:gr},Er=function(ee){var ne=ee.afterCritical,re=ee.impact,de=ee.draggables,ve=ar(re);ve||Gt(!1);var pe=ve.draggableId,Ae=de[pe].page.borderBox.center,ye=rr({displaced:re.displaced,afterCritical:ne,combineWith:pe,displacedBy:re.displacedBy});return ga(Ae,ye)},Jo=function(ne,re){return re.margin[ne.start]+re.borderBox[ne.size]/2},sl=function(ne,re){return re.margin[ne.end]+re.borderBox[ne.size]/2},Qo=function(ne,re,de){return re[ne.crossAxisStart]+de.margin[ne.crossAxisStart]+de.borderBox[ne.crossAxisSize]/2},ol=function(ne){var re=ne.axis,de=ne.moveRelativeTo,ve=ne.isMoving;return aa(re.line,de.marginBox[re.end]+Jo(re,ve),Qo(re,de.marginBox,ve))},hl=function(ne){var re=ne.axis,de=ne.moveRelativeTo,ve=ne.isMoving;return aa(re.line,de.marginBox[re.start]-sl(re,ve),Qo(re,de.marginBox,ve))},Cl=function(ne){var re=ne.axis,de=ne.moveInto,ve=ne.isMoving;return aa(re.line,de.contentBox[re.start]+Jo(re,ve),Qo(re,de.contentBox,ve))},Ci=function(ee){var ne=ee.impact,re=ee.draggable,de=ee.draggables,ve=ee.droppable,pe=ee.afterCritical,Ae=kn(ve.descriptor.id,de),ye=re.page,je=ve.axis;if(!Ae.length)return Cl({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 hl({axis:je,moveRelativeTo:Ve.page,isMoving:ye});var lt=Yt(Ve.page,_e.point);return hl({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 la=Yt(Zt.page,hn(pe.displacedBy.point));return ol({axis:je,moveRelativeTo:la,isMoving:ye})}return ol({axis:je,moveRelativeTo:Zt.page,isMoving:ye})},ri=function(ee,ne){var re=ee.frame;return re?ga(ne,re.scroll.diff.displacement):ne},oi=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"?Ci({impact:re,draggable:de,draggables:pe,droppable:ve,afterCritical:Ae}):Er({impact:re,draggables:pe,afterCritical:Ae})},li=function(ee){var ne=oi(ee),re=ee.droppable,de=re?ri(re,ne):ne;return de},au=function(ee,ne){var re=ur(ne,ee.scroll.initial),de=hn(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 di(ee,ne){return ee.map(function(re){return ne[re]})}function Oi(ee,ne){for(var re=0;re1?_e.sort(function(He,Ve){return Zl(He)[ye.start]-Zl(Ve)[ye.start]})[0]:qe.sort(function(He,Ve){var lt=Jn(re,$r(Zl(He))),Zt=Jn(re,$r(Zl(Ve)));return lt!==Zt?lt-Zt:Zl(He)[ye.start]-Zl(Ve)[ye.start]})[0]},Ru=function(ne,re){var de=ne.page.borderBox.center;return cr(ne.descriptor.id,re)?ur(de,re.displacedBy.point):de},Su=function(ne,re){var de=ne.page.borderBox;return cr(ne.descriptor.id,re)?Ar(de,hn(re.displacedBy.point)):de},ku=function(ee){var ne=ee.pageBorderBoxCenter,re=ee.viewport,de=ee.destination,ve=ee.insideDestination,pe=ee.afterCritical,Ae=ve.filter(function(ye){return Ct({target:Su(ye,pe),destination:de,viewport:re.frame,withDroppableDisplacement:!0})}).sort(function(ye,je){var qe=La(ne,ri(de,Ru(ye,pe))),_e=La(ne,ri(de,Ru(je,pe)));return qe<_e?-1:_ene.left&&ee.topne.top}function Bi(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=aa(Ae.axis.line,ne.center[ye.line],Ae.page.borderBox.center[ye.crossAxisLine]);return{id:Ae.descriptor.id,distance:La(ve,je)}}).sort(function(Ae,ye){return ye.distance-Ae.distance});return pe[0]?pe[0].id:null}function is(ee){var ne=ee.pageBorderBox,re=ee.draggable,de=ee.droppables,ve=At(de).filter(function(pe){if(!pe.isEnabled)return!1;var Ae=pe.subject.active;if(!Ae||!bi(ne,Ae))return!1;if($i(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:Bi({pageBorderBox:ne,draggable:re,candidates:ve}):null}var Zu=function(ne,re){return Ca(Ar(ne,re))},us=function(ee,ne){var re=ee.frame;return re?Zu(ne,re.scroll.diff.value):ne};function Ju(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 Cr=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=ru(de.axis,re.displaceBy),_e=qe.value,He=ne[je.start],Ve=ne[je.end],lt=Pn(re,ve),Zt=eo(lt,function(fa){var Pa=fa.descriptor.id,Ya=fa.page.borderBox.center[je.line],lr=cr(Pa,ye),vr=Ju({displaced:pe,id:Pa});return lr?vr?Ve<=Ya:HePa[ye.start]+lr&&HePa[ye.start]-qe+lr&&_ePa[ye.start]+qe+lr&&HePa[ye.start]+lr&&_e=Zo)return Po;var pe=ve/Zo,Ae=co+jo*pe,ye=de==="CANCEL"?Ae*Bo:Ae;return Number(ye.toFixed(2))},bl=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=Ol(ne),qe=je?ye[je]:null,_e=ye[re.descriptor.droppableId],He=zu({impact:ne,draggable:re,draggables:Ae,afterCritical:pe,droppable:qe||_e,viewport:ve}),Ve=ur(He,re.client.borderBox.center);return Ve},jr=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=ql({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}},el=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(Sa({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=jr({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?Ga(Ve):null,la=lt?ar(Ve):null,fa={index:je.draggable.index,droppableId:je.droppable.id},Pa={draggableId:_e.descriptor.id,type:_e.descriptor.type,source:fa,reason:Ae,mode:pe.movementMode,destination:Zt,combine:la},Ya=bl({impact:Ve,draggable:_e,dimensions:qe,viewport:pe.viewport,afterCritical:pe.afterCritical}),lr={critical:pe.critical,afterCritical:pe.afterCritical,result:Pa,impact:Ve},vr=!Va(pe.current.client.offset,Ya)||!!Pa.combine;if(!vr){re(Tn({completed:lr}));return}var Eo=$o({current:pe.current.client.offset,destination:Ya,reason:Ae}),uo={newHomeClientOffset:Ya,dropDuration:Eo,completed:lr};re(dn(uo))}}}},No=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Ml(ee){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(re){re.target!==window&&re.target!==window.document||ee()}}}function il(ee){var ne=ee.onWindowScroll;function re(){ne(No())}var de=_n(re),ve=Ml(de),pe=qn;function Ae(){return pe!==qn}function ye(){Ae()&&Gt(!1),pe=Ma(window,[ve])}function je(){Ae()||Gt(!1),de.cancel(),pe(),pe=qn}return{start:ye,stop:je,isActive:Ae}}var Pl=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},wo=function(ee){var ne=il({onWindowScroll:function(de){ee.dispatch(rn({newScroll:de}))}});return function(re){return function(de){!ne.isActive()&&de.type==="INITIAL_PUBLISH"&&ne.start(),ne.isActive()&&Pl(de)&&ne.stop(),re(de)}}},Vl=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},Nl=function(){var ee=[],ne=function(pe){var Ae=Qr(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}},$l=function(ne,re){return ne==null&&re==null?!0:ne==null||re==null?!1:ne.droppableId===re.droppableId&&ne.index===re.index},ii=function(ne,re){return ne==null&&re==null?!0:ne==null||re==null?!1:ne.draggableId===re.draggableId&&ne.droppableId===re.droppableId},mo=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},ul=function(ne,re){Pu(),re(),zi()},tl=function(ne,re){return{draggableId:ne.draggable.id,type:ne.droppable.type,source:{droppableId:ne.droppable.id,index:ne.draggable.index},mode:re}},Xo=function(ne,re,de,ve){if(!ne){de(ve(re));return}var pe=Vl(de),Ae={announce:pe};ne(re,Ae),pe.wasCalled()||de(ve(re))},El=function(ee,ne){var re=Nl(),de=null,ve=function(Ve,lt){de&&Gt(!1),ul("onBeforeCapture",function(){var Zt=ee().onBeforeCapture;if(Zt){var la={draggableId:Ve,mode:lt};Zt(la)}})},pe=function(Ve,lt){de&&Gt(!1),ul("onBeforeDragStart",function(){var Zt=ee().onBeforeDragStart;Zt&&Zt(tl(Ve,lt))})},Ae=function(Ve,lt){de&&Gt(!1);var Zt=tl(Ve,lt);de={mode:lt,lastCritical:Ve,lastLocation:Zt.source,lastCombine:null},re.add(function(){ul("onDragStart",function(){return Xo(ee().onDragStart,Zt,ne,an.onDragStart)})})},ye=function(Ve,lt){var Zt=Ga(lt),la=ar(lt);de||Gt(!1);var fa=!mo(Ve,de.lastCritical);fa&&(de.lastCritical=Ve);var Pa=!$l(de.lastLocation,Zt);Pa&&(de.lastLocation=Zt);var Ya=!ii(de.lastCombine,la);if(Ya&&(de.lastCombine=la),!(!fa&&!Pa&&!Ya)){var lr=(0,Be.Z)({},tl(Ve,de.mode),{combine:la,destination:Zt});re.add(function(){ul("onDragUpdate",function(){return Xo(ee().onDragUpdate,lr,ne,an.onDragUpdate)})})}},je=function(){de||Gt(!1),re.flush()},qe=function(Ve){de||Gt(!1),de=null,ul("onDragEnd",function(){return Xo(ee().onDragEnd,Ve,ne,an.onDragEnd)})},_e=function(){if(de){var Ve=(0,Be.Z)({},tl(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}},gl=function(ee,ne){var re=El(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)}}}},Rl=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(Tn({completed:de.completed}))}}},xi=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(gn())}};re=requestAnimationFrame(function(){re=null,ne=Ma(window,[Ae])})}}}},Ei=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)}}}},Yl=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()}}}}}},Si=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},cu=function(ee){return function(ne){return function(re){return function(de){if(Si(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())}}}},lu=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(oa({reason:de.reason})))}}}},Hl=Re.qC,Fn=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)(ps,Hl((0,Re.md)(Jr(de),Ei(ne),ha(ne),el,Rl,xi,lu,cu(Ae),wo,Yl(re),gl(ve,pe))))},Kl=function(){return{additions:{},removals:{},modified:{}}};function iu(ee){var ne=ee.registry,re=ee.callbacks,de=Kl(),ve=null,pe=function(){ve||(re.collectionStarting(),ve=requestAnimationFrame(function(){ve=null,Pu();var _e=de,He=_e.additions,Ve=_e.removals,lt=_e.modified,Zt=Object.keys(He).map(function(Pa){return ne.draggable.getById(Pa).getDimension(gr)}).sort(function(Pa,Ya){return Pa.descriptor.index-Ya.descriptor.index}),la=Object.keys(lt).map(function(Pa){var Ya=ne.droppable.getById(Pa),lr=Ya.callbacks.getScrollWhileDragging();return{droppableId:Pa,scroll:lr}}),fa={additions:Zt,removals:Object.keys(Ve),modified:la};de=Kl(),zi(),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=Kl())};return{add:Ae,remove:ye,stop:je}}var Mi=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},ei=function(){var ee=document.documentElement;return ee||Gt(!1),ee},ml=function(){var ee=ei(),ne=Mi({scrollHeight:ee.scrollHeight,scrollWidth:ee.scrollWidth,width:ee.clientWidth,height:ee.clientHeight});return ne},ti=function(){var ee=No(),ne=ml(),re=ee.y,de=ee.x,ve=ei(),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},wi=function(ee){var ne=ee.critical,re=ee.scrollOptions,de=ee.registry;Pu();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:to(ye)};zi();var _e={dimensions:qe,critical:ne,viewport:ve};return _e};function Sl(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=iu({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"&&Sl(ee,Zt,lt.value)&&de.add(lt.value),lt.type==="REMOVAL"&&Sl(ee,Zt,lt.value)&&de.remove(lt.value)},_e=function(lt){re&&Gt(!1);var Zt=ee.draggable.getById(lt.draggableId),la=ee.droppable.getById(Zt.descriptor.droppableId),fa={draggable:Zt.descriptor,droppable:la.descriptor},Pa=ee.subscribe(qe);return re={critical:fa,unsubscribe:Pa},wi({critical:fa,registry:ee,scrollOptions:lt.scrollOptions})},He={updateDroppableIsEnabled:ve,updateDroppableIsCombineEnabled:pe,scrollDroppable:ye,updateDroppableScroll:Ae,startPublishing:_e,stopPublishing:je};return He},Co=function(ee,ne){return ee.phase==="IDLE"?!0:ee.phase!=="DROP_ANIMATING"||ee.completed.result.draggableId===ne?!1:ee.completed.result.reason==="DROP"},Di=function(ee){window.scrollBy(ee.x,ee.y)},dl=Rt(function(ee){return At(ee).filter(function(ne){return!(!ne.isEnabled||!ne.frame)})}),_l=function(ne,re){var de=eo(dl(re),function(ve){return ve.frame||Gt(!1),$i(ve.frame.pageMarginBox)(ne)});return de},Vi=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=_l(ne,de);return pe},qo={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ne){return Math.pow(ne,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},ni=function(ee,ne){var re=ee[ne.size]*qo.startFromPercentage,de=ee[ne.size]*qo.maxScrollAtPercentage,ve={startScrollingFrom:re,maxScrollValueAt:de};return ve},Li=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},Go=1,Ri=function(ee,ne){if(ee>ne.startScrollingFrom)return 0;if(ee<=ne.maxScrollValueAt)return qo.maxPixelScroll;if(ee===ne.startScrollingFrom)return Go;var re=Li({startOfRange:ne.maxScrollValueAt,endOfRange:ne.startScrollingFrom,current:ee}),de=1-re,ve=qo.maxPixelScroll*qo.ease(de);return Math.ceil(ve)},ja=qo.durationDampening.accelerateAt,ci=qo.durationDampening.stopDampeningAt,uu=function(ee,ne){var re=ne,de=ci,ve=Date.now(),pe=ve-re;if(pe>=ci)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}},Zr=sr(function(ee){return ee===0?0:ee}),Qa=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=Ti({container:re,distanceToEdges:Ae,dragStartTime:ne,axis:Tr,shouldUseTimeDampening:pe}),je=Ti({container:re,distanceToEdges:Ae,dragStartTime:ne,axis:yo,shouldUseTimeDampening:pe}),qe=Zr({x:je,y:ye});if(Va(qe,gr))return null;var _e=Wi({container:re,subject:de,proposedScroll:qe});return _e?Va(_e,gr)?null:_e:null},Or=sr(function(ee){return ee===0?0:ee>0?1:-1}),nl=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 Va(Ae,gr)?null:Ae}}(),gi=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=Or(ve),ye=nl({max:pe,current:de,change:Ae});return!ye||Ae.x!==0&&ye.x===0||Ae.y!==0&&ye.y===0},ji=function(ne,re){return gi({current:ne.scroll.current,max:ne.scroll.max,change:re})},Au=function(ne,re){if(!ji(ne,re))return null;var de=ne.scroll.max,ve=ne.scroll.current;return nl({current:ve,max:de,change:re})},gu=function(ne,re){var de=ne.frame;return de?gi({current:de.scroll.current,max:de.scroll.max,change:re}):!1},ie=function(ne,re){var de=ne.frame;return!de||!gu(ne,re)?null:nl({current:de.scroll.current,max:de.scroll.max,change:re})},Se=function(ee){var ne=ee.viewport,re=ee.subject,de=ee.center,ve=ee.dragStartTime,pe=ee.shouldUseTimeDampening,Ae=Qa({dragStartTime:ve,container:ne.frame,subject:re,center:de,shouldUseTimeDampening:pe});return Ae&&ji(ne,Ae)?Ae:null},he=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=Qa({dragStartTime:ve,container:Ae.pageMarginBox,subject:re,center:de,shouldUseTimeDampening:pe});return ye&&gu(ne,ye)?ye:null},ct=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=Se({dragStartTime:re,viewport:qe,subject:je,center:Ae,shouldUseTimeDampening:de});if(_e){ve(_e);return}}var He=Vi({center:Ae,destination:Ol(ne.impact),droppables:ne.dimensions.droppables});if(He){var Ve=he({dragStartTime:re,droppable:He,subject:je,center:Ae,shouldUseTimeDampening:de});Ve&&pe(He.descriptor.id,Ve)}},bt=function(ee){var ne=ee.scrollWindow,re=ee.scrollDroppable,de=_n(ne),ve=_n(re),pe=null,Ae=function(_e){pe||Gt(!1);var He=pe,Ve=He.shouldUseTimeDampening,lt=He.dragStartTime;ct({state:_e,scrollWindow:de,scrollDroppable:ve,dragStartTime:lt,shouldUseTimeDampening:Ve})},ye=function(_e){Pu(),pe&&Gt(!1);var He=Date.now(),Ve=!1,lt=function(){Ve=!0};ct({state:_e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:lt,scrollDroppable:lt}),pe={dragStartTime:He,shouldUseTimeDampening:Ve},zi(),Ve&&Ae(_e)},je=function(){pe&&(de.cancel(),ve.cancel(),pe=null)};return{start:ye,stop:je,scroll:Ae}},Un=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(!gu(qe,_e))return _e;var He=ie(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||!ji(_e,He))return He;var Ve=Au(_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=Ol(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},bn=function(ee){var ne=ee.scrollDroppable,re=ee.scrollWindow,de=ee.move,ve=bt({scrollWindow:re,scrollDroppable:ne}),pe=Un({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},Jt="data-rbd",it=function(){var ee=Jt+"-drag-handle";return{base:ee,draggableId:ee+"-draggable-id",contextId:ee+"-context-id"}}(),tn=function(){var ee=Jt+"-draggable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),In=function(){var ee=Jt+"-droppable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),Ht={contextId:Jt+"-scroll-container-context-id"},Ot=function(ne){return function(re){return"["+re+'="'+ne+'"]'}},mt=function(ne,re){return ne.map(function(de){var ve=de.styles[re];return ve?de.selector+" { "+ve+" }":""}).join(" ")},Dt="pointer-events: none;",yt=function(ee){var ne=Ot(ee),re=function(){var ye=` + `+Tr(ne.source)+` + `},nn={dragHandleUsageInstructions:Ua,onDragStart:ur,onDragUpdate:ro,onDragEnd:ca},mr={x:0,y:0},ga=function(ne,re){return{x:ne.x+re.x,y:ne.y+re.y}},sr=function(ne,re){return{x:ne.x-re.x,y:ne.y-re.y}},Va=function(ne,re){return ne.x===re.x&&ne.y===re.y},pn=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},La=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 La(ne,de)}))},dr=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},yr=function(ne,re){return{top:ne.top+re.y,left:ne.left+re.x,bottom:ne.bottom+re.y,right:ne.right+re.x}},eo=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}]},fr={top:0,right:0,bottom:0,left:0},_o=function(ne,re){return re?yr(ne,re.scroll.diff.displacement):ne},Ro=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},Fl=function(ne,re){return re&&re.shouldClipSubject?tr(re.pageMarginBox,ne):Ca(ne)},wr=function(ee){var ne=ee.page,re=ee.withPlaceholder,de=ee.axis,ve=ee.frame,pe=_o(ne.marginBox,ve),Ae=Ro(pe,de,re),ye=Fl(Ae,ve);return{page:ne,withPlaceholder:re,active:ye}},Or=function(ee,ne){ee.frame||Vt(!1);var re=ee.frame,de=sr(ne,re.scroll.initial),ve=pn(de),pe=(0,Be.Z)({},re,{scroll:{initial:re.scroll.initial,current:ne,diff:{value:de,displacement:ve},max:re.scroll.max}}),Ae=wr({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 Ao(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 Ur(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}},rl=function(ee){var ne=Dr(ee.top,ee.bottom),re=Dr(ee.left,ee.right);return function(de){var ve=ne(de.top)&&ne(de.bottom)&&re(de.left)&&re(de.right);return ve}},jr={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},yo={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},To=function(ee){return function(ne){var re=Dr(ne.top,ne.bottom),de=Dr(ne.left,ne.right);return function(ve){return ee===jr?re(ve.top)&&re(ve.bottom):de(ve.left)&&de(ve.right)}}},sa=function(ne,re){var de=re.frame?re.frame.scroll.diff.displacement:mr;return yr(ne,de)},wn=function(ne,re,de){return re.subject.active?de(re.subject.active)(ne):!1},Gn=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?sa(re,de):re;return wn(ye,de,Ae)&&Gn(ye,ve,Ae)},mt=function(ne){return me((0,Be.Z)({},ne,{isVisibleThroughFrameFn:bo}))},Ct=function(ne){return me((0,Be.Z)({},ne,{isVisibleThroughFrameFn:rl}))},dn=function(ne){return me((0,Be.Z)({},ne,{isVisibleThroughFrameFn:To(ne.destination.axis)}))},vt=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 Dn(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=Dn(qe,de),He=qe.descriptor.id;je.all.push(He);var Ve=mt({target:_e,destination:re,viewport:ve,withDroppableDisplacement:!0});if(!Ve)return je.invisible[qe.descriptor.id]=!0,je;var lt=vt(He,Ae,pe),zt={draggableId:He,shouldAnimate:lt};return je.visible[He]=zt,je},{all:[],visible:{},invisible:{}})}function fn(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=fn(ne,{inHomeList:re});return{displaced:cr,displacedBy:de,at:{type:"REORDER",destination:{droppableId:ve.descriptor.id,index:pe}}}}function Ia(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=to(re,function(la){return la.descriptor.index===ye});if(!_e)return yn({insideDestination:re,inHomeList:qe,displacedBy:pe,destination:de});var He=Sn(ne,re),Ve=re.indexOf(_e),lt=He.slice(Ve),zt=An({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 gr(ee,ne){return!!ne.effected[ee]}var Cr=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=gr(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||Vt(!1),_e.type==="REORDER"){var He=ma({isMovingForward:ne,isInHomeList:re,location:_e.destination,insideDestination:Ae});return He==null?null:Ia({draggable:de,insideDestination:Ae,destination:pe,viewport:je,last:ye.displaced,displacedBy:ye.displacedBy,index:He})}var Ve=Cr({isMovingForward:ne,destination:pe,displaced:ye.displaced,draggables:ve,combine:_e.combine,afterCritical:qe});return Ve==null?null:Ia({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 gr(de,re)?pe?mr:pn(ve.point):pe?ve.point:mr},Sr=function(ee){var ne=ee.afterCritical,re=ee.impact,de=ee.draggables,ve=rr(re);ve||Vt(!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)},Jo=function(ne,re){return re.margin[ne.start]+re.borderBox[ne.size]/2},sl=function(ne,re){return re.margin[ne.end]+re.borderBox[ne.size]/2},Qo=function(ne,re,de){return re[ne.crossAxisStart]+de.margin[ne.crossAxisStart]+de.borderBox[ne.crossAxisSize]/2},ol=function(ne){var re=ne.axis,de=ne.moveRelativeTo,ve=ne.isMoving;return na(re.line,de.marginBox[re.end]+Jo(re,ve),Qo(re,de.marginBox,ve))},hl=function(ne){var re=ne.axis,de=ne.moveRelativeTo,ve=ne.isMoving;return na(re.line,de.marginBox[re.start]-sl(re,ve),Qo(re,de.marginBox,ve))},Cl=function(ne){var re=ne.axis,de=ne.moveInto,ve=ne.isMoving;return na(re.line,de.contentBox[re.start]+Jo(re,ve),Qo(re,de.contentBox,ve))},Ci=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 Cl({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(gr(He,pe))return hl({axis:je,moveRelativeTo:Ve.page,isMoving:ye});var lt=Kt(Ve.page,_e.point);return hl({axis:je,moveRelativeTo:lt,isMoving:ye})}var zt=Ae[Ae.length-1];if(zt.descriptor.id===re.descriptor.id)return ye.borderBox.center;if(gr(zt.descriptor.id,pe)){var la=Kt(zt.page,pn(pe.displacedBy.point));return ol({axis:je,moveRelativeTo:la,isMoving:ye})}return ol({axis:je,moveRelativeTo:zt.page,isMoving:ye})},ri=function(ee,ne){var re=ee.frame;return re?ga(ne,re.scroll.diff.displacement):ne},oi=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"?Ci({impact:re,draggable:de,draggables:pe,droppable:ve,afterCritical:Ae}):Sr({impact:re,draggables:pe,afterCritical:Ae})},li=function(ee){var ne=oi(ee),re=ee.droppable,de=re?ri(re,ne):ne;return de},au=function(ee,ne){var re=sr(ne,ee.scroll.initial),de=pn(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 di(ee,ne){return ee.map(function(re){return ne[re]})}function Oi(ee,ne){for(var re=0;re1?_e.sort(function(He,Ve){return Zl(He)[ye.start]-Zl(Ve)[ye.start]})[0]:qe.sort(function(He,Ve){var lt=_n(re,eo(Zl(He))),zt=_n(re,eo(Zl(Ve)));return lt!==zt?lt-zt:Zl(He)[ye.start]-Zl(Ve)[ye.start]})[0]},Ru=function(ne,re){var de=ne.page.borderBox.center;return gr(ne.descriptor.id,re)?sr(de,re.displacedBy.point):de},Su=function(ne,re){var de=ne.page.borderBox;return gr(ne.descriptor.id,re)?yr(de,pn(re.displacedBy.point)):de},ku=function(ee){var ne=ee.pageBorderBoxCenter,re=ee.viewport,de=ee.destination,ve=ee.insideDestination,pe=ee.afterCritical,Ae=ve.filter(function(ye){return Ct({target:Su(ye,pe),destination:de,viewport:re.frame,withDroppableDisplacement:!0})}).sort(function(ye,je){var qe=La(ne,ri(de,Ru(ye,pe))),_e=La(ne,ri(de,Ru(je,pe)));return qe<_e?-1:_ene.left&&ee.topne.top}function Bi(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:La(ve,je)}}).sort(function(Ae,ye){return ye.distance-Ae.distance});return pe[0]?pe[0].id:null}function is(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||!bi(ne,Ae))return!1;if($i(Ae)(ne.center))return!0;var ye=pe.axis,je=Ae.center[ye.crossAxisLine],qe=ne[ye.crossAxisStart],_e=ne[ye.crossAxisEnd],He=Dr(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:Bi({pageBorderBox:ne,draggable:re,candidates:ve}):null}var Zu=function(ne,re){return Ca(yr(ne,re))},us=function(ee,ne){var re=ee.frame;return re?Zu(ne,re.scroll.diff.value):ne};function Ju(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 br=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=ru(de.axis,re.displaceBy),_e=qe.value,He=ne[je.start],Ve=ne[je.end],lt=Sn(re,ve),zt=to(lt,function(fa){var Pa=fa.descriptor.id,Ya=fa.page.borderBox.center[je.line],ir=gr(Pa,ye),pr=Ju({displaced:pe,id:Pa});return ir?pr?Ve<=Ya:HePa[ye.start]+ir&&HePa[ye.start]-qe+ir&&_ePa[ye.start]+qe+ir&&HePa[ye.start]+ir&&_e=Zo)return Po;var pe=ve/Zo,Ae=co+jo*pe,ye=de==="CANCEL"?Ae*Bo:Ae;return Number(ye.toFixed(2))},bl=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=Ol(ne),qe=je?ye[je]:null,_e=ye[re.descriptor.droppableId],He=zu({impact:ne,draggable:re,draggables:Ae,afterCritical:pe,droppable:qe||_e,viewport:ve}),Ve=sr(He,re.client.borderBox.center);return Ve},Zr=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=ql({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:cr});return{impact:je,didDropInsideDroppable:!0}},el=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(Sa({reason:Ae}));return}if(pe.phase!=="IDLE"){var ye=pe.phase==="DROP_PENDING"&&pe.isWaiting;ye&&Vt(!1),pe.phase==="DRAGGING"||pe.phase==="DROP_PENDING"||Vt(!1);var je=pe.critical,qe=pe.dimensions,_e=qe.draggables[pe.critical.draggable.id],He=Zr({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?Ga(Ve):null,la=lt?rr(Ve):null,fa={index:je.draggable.index,droppableId:je.droppable.id},Pa={draggableId:_e.descriptor.id,type:_e.descriptor.type,source:fa,reason:Ae,mode:pe.movementMode,destination:zt,combine:la},Ya=bl({impact:Ve,draggable:_e,dimensions:qe,viewport:pe.viewport,afterCritical:pe.afterCritical}),ir={critical:pe.critical,afterCritical:pe.afterCritical,result:Pa,impact:Ve},pr=!Va(pe.current.client.offset,Ya)||!!Pa.combine;if(!pr){re(Rn({completed:ir}));return}var Eo=$o({current:pe.current.client.offset,destination:Ya,reason:Ae}),uo={newHomeClientOffset:Ya,dropDuration:Eo,completed:ir};re(un(uo))}}}},No=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Ml(ee){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(re){re.target!==window&&re.target!==window.document||ee()}}}function il(ee){var ne=ee.onWindowScroll;function re(){ne(No())}var de=Kn(re),ve=Ml(de),pe=qn;function Ae(){return pe!==qn}function ye(){Ae()&&Vt(!1),pe=Ma(window,[ve])}function je(){Ae()||Vt(!1),de.cancel(),pe(),pe=qn}return{start:ye,stop:je,isActive:Ae}}var Pl=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},wo=function(ee){var ne=il({onWindowScroll:function(de){ee.dispatch(an({newScroll:de}))}});return function(re){return function(de){!ne.isActive()&&de.type==="INITIAL_PUBLISH"&&ne.start(),ne.isActive()&&Pl(de)&&ne.stop(),re(de)}}},Vl=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},Nl=function(){var ee=[],ne=function(pe){var Ae=Ur(ee,function(qe){return qe.timerId===pe});Ae===-1&&Vt(!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}},$l=function(ne,re){return ne==null&&re==null?!0:ne==null||re==null?!1:ne.droppableId===re.droppableId&&ne.index===re.index},ii=function(ne,re){return ne==null&&re==null?!0:ne==null||re==null?!1:ne.draggableId===re.draggableId&&ne.droppableId===re.droppableId},mo=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},ul=function(ne,re){Pu(),re(),zi()},tl=function(ne,re){return{draggableId:ne.draggable.id,type:ne.droppable.type,source:{droppableId:ne.droppable.id,index:ne.draggable.index},mode:re}},Xo=function(ne,re,de,ve){if(!ne){de(ve(re));return}var pe=Vl(de),Ae={announce:pe};ne(re,Ae),pe.wasCalled()||de(ve(re))},El=function(ee,ne){var re=Nl(),de=null,ve=function(Ve,lt){de&&Vt(!1),ul("onBeforeCapture",function(){var zt=ee().onBeforeCapture;if(zt){var la={draggableId:Ve,mode:lt};zt(la)}})},pe=function(Ve,lt){de&&Vt(!1),ul("onBeforeDragStart",function(){var zt=ee().onBeforeDragStart;zt&&zt(tl(Ve,lt))})},Ae=function(Ve,lt){de&&Vt(!1);var zt=tl(Ve,lt);de={mode:lt,lastCritical:Ve,lastLocation:zt.source,lastCombine:null},re.add(function(){ul("onDragStart",function(){return Xo(ee().onDragStart,zt,ne,nn.onDragStart)})})},ye=function(Ve,lt){var zt=Ga(lt),la=rr(lt);de||Vt(!1);var fa=!mo(Ve,de.lastCritical);fa&&(de.lastCritical=Ve);var Pa=!$l(de.lastLocation,zt);Pa&&(de.lastLocation=zt);var Ya=!ii(de.lastCombine,la);if(Ya&&(de.lastCombine=la),!(!fa&&!Pa&&!Ya)){var ir=(0,Be.Z)({},tl(Ve,de.mode),{combine:la,destination:zt});re.add(function(){ul("onDragUpdate",function(){return Xo(ee().onDragUpdate,ir,ne,nn.onDragUpdate)})})}},je=function(){de||Vt(!1),re.flush()},qe=function(Ve){de||Vt(!1),de=null,ul("onDragEnd",function(){return Xo(ee().onDragEnd,Ve,ne,nn.onDragEnd)})},_e=function(){if(de){var Ve=(0,Be.Z)({},tl(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}},gl=function(ee,ne){var re=El(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)}}}},Rl=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"&&Vt(!1),ee.dispatch(Rn({completed:de.completed}))}}},xi=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(cn())}};re=requestAnimationFrame(function(){re=null,ne=Ma(window,[Ae])})}}}},Ei=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)}}}},Yl=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()}}}}}},Si=function(ne){return ne.type==="DROP_COMPLETE"||ne.type==="DROP_ANIMATE"||ne.type==="FLUSH"},cu=function(ee){return function(ne){return function(re){return function(de){if(Si(de)){ee.stop(),re(de);return}if(de.type==="INITIAL_PUBLISH"){re(de);var ve=ne.getState();ve.phase!=="DRAGGING"&&Vt(!1),ee.start(ve);return}re(de),ee.scroll(ne.getState())}}}},lu=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(oa({reason:de.reason})))}}}},Hl=Re.qC,Fn=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)(ps,Hl((0,Re.md)(Xr(de),Ei(ne),ha(ne),el,Rl,xi,lu,cu(Ae),wo,Yl(re),gl(ve,pe))))},Kl=function(){return{additions:{},removals:{},modified:{}}};function iu(ee){var ne=ee.registry,re=ee.callbacks,de=Kl(),ve=null,pe=function(){ve||(re.collectionStarting(),ve=requestAnimationFrame(function(){ve=null,Pu();var _e=de,He=_e.additions,Ve=_e.removals,lt=_e.modified,zt=Object.keys(He).map(function(Pa){return ne.draggable.getById(Pa).getDimension(mr)}).sort(function(Pa,Ya){return Pa.descriptor.index-Ya.descriptor.index}),la=Object.keys(lt).map(function(Pa){var Ya=ne.droppable.getById(Pa),ir=Ya.callbacks.getScrollWhileDragging();return{droppableId:Pa,scroll:ir}}),fa={additions:zt,removals:Object.keys(Ve),modified:la};de=Kl(),zi(),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=Kl())};return{add:Ae,remove:ye,stop:je}}var Mi=function(ee){var ne=ee.scrollHeight,re=ee.scrollWidth,de=ee.height,ve=ee.width,pe=sr({x:re,y:ne},{x:ve,y:de}),Ae={x:Math.max(0,pe.x),y:Math.max(0,pe.y)};return Ae},ei=function(){var ee=document.documentElement;return ee||Vt(!1),ee},ml=function(){var ee=ei(),ne=Mi({scrollHeight:ee.scrollHeight,scrollWidth:ee.scrollWidth,width:ee.clientWidth,height:ee.clientHeight});return ne},ti=function(){var ee=No(),ne=ml(),re=ee.y,de=ee.x,ve=ei(),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:mr,displacement:mr}}};return _e},wi=function(ee){var ne=ee.critical,re=ee.scrollOptions,de=ee.registry;Pu();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:wt(je),droppables:no(ye)};zi();var _e={dimensions:qe,critical:ne,viewport:ve};return _e};function Sl(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=iu({callbacks:{publish:ne.publishWhileDragging,collectionStarting:ne.collectionStarting},registry:ee}),ve=function(lt,zt){ee.droppable.exists(lt)||Vt(!1),re&&ne.updateDroppableIsEnabled({id:lt,isEnabled:zt})},pe=function(lt,zt){re&&(ee.droppable.exists(lt)||Vt(!1),ne.updateDroppableIsCombineEnabled({id:lt,isCombineEnabled:zt}))},Ae=function(lt,zt){re&&(ee.droppable.exists(lt)||Vt(!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||Vt(!1);var zt=re.critical.draggable;lt.type==="ADDITION"&&Sl(ee,zt,lt.value)&&de.add(lt.value),lt.type==="REMOVAL"&&Sl(ee,zt,lt.value)&&de.remove(lt.value)},_e=function(lt){re&&Vt(!1);var zt=ee.draggable.getById(lt.draggableId),la=ee.droppable.getById(zt.descriptor.droppableId),fa={draggable:zt.descriptor,droppable:la.descriptor},Pa=ee.subscribe(qe);return re={critical:fa,unsubscribe:Pa},wi({critical:fa,registry:ee,scrollOptions:lt.scrollOptions})},He={updateDroppableIsEnabled:ve,updateDroppableIsCombineEnabled:pe,scrollDroppable:ye,updateDroppableScroll:Ae,startPublishing:_e,stopPublishing:je};return He},Co=function(ee,ne){return ee.phase==="IDLE"?!0:ee.phase!=="DROP_ANIMATING"||ee.completed.result.draggableId===ne?!1:ee.completed.result.reason==="DROP"},Di=function(ee){window.scrollBy(ee.x,ee.y)},dl=Tt(function(ee){return yt(ee).filter(function(ne){return!(!ne.isEnabled||!ne.frame)})}),_l=function(ne,re){var de=to(dl(re),function(ve){return ve.frame||Vt(!1),$i(ve.frame.pageMarginBox)(ne)});return de},Vi=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=_l(ne,de);return pe},qo={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ne){return Math.pow(ne,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},ni=function(ee,ne){var re=ee[ne.size]*qo.startFromPercentage,de=ee[ne.size]*qo.maxScrollAtPercentage,ve={startScrollingFrom:re,maxScrollValueAt:de};return ve},Li=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},Go=1,Ri=function(ee,ne){if(ee>ne.startScrollingFrom)return 0;if(ee<=ne.maxScrollValueAt)return qo.maxPixelScroll;if(ee===ne.startScrollingFrom)return Go;var re=Li({startOfRange:ne.maxScrollValueAt,endOfRange:ne.startScrollingFrom,current:ee}),de=1-re,ve=qo.maxPixelScroll*qo.ease(de);return Math.ceil(ve)},ja=qo.durationDampening.accelerateAt,ci=qo.durationDampening.stopDampeningAt,uu=function(ee,ne){var re=ne,de=ci,ve=Date.now(),pe=ve-re;if(pe>=ci)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}},Gr=dr(function(ee){return ee===0?0:ee}),Qa=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=Ti({container:re,distanceToEdges:Ae,dragStartTime:ne,axis:jr,shouldUseTimeDampening:pe}),je=Ti({container:re,distanceToEdges:Ae,dragStartTime:ne,axis:yo,shouldUseTimeDampening:pe}),qe=Gr({x:je,y:ye});if(Va(qe,mr))return null;var _e=Wi({container:re,subject:de,proposedScroll:qe});return _e?Va(_e,mr)?null:_e:null},Mr=dr(function(ee){return ee===0?0:ee>0?1:-1}),nl=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 Va(Ae,mr)?null:Ae}}(),gi=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=Mr(ve),ye=nl({max:pe,current:de,change:Ae});return!ye||Ae.x!==0&&ye.x===0||Ae.y!==0&&ye.y===0},ji=function(ne,re){return gi({current:ne.scroll.current,max:ne.scroll.max,change:re})},Au=function(ne,re){if(!ji(ne,re))return null;var de=ne.scroll.max,ve=ne.scroll.current;return nl({current:ve,max:de,change:re})},gu=function(ne,re){var de=ne.frame;return de?gi({current:de.scroll.current,max:de.scroll.max,change:re}):!1},ie=function(ne,re){var de=ne.frame;return!de||!gu(ne,re)?null:nl({current:de.scroll.current,max:de.scroll.max,change:re})},Se=function(ee){var ne=ee.viewport,re=ee.subject,de=ee.center,ve=ee.dragStartTime,pe=ee.shouldUseTimeDampening,Ae=Qa({dragStartTime:ve,container:ne.frame,subject:re,center:de,shouldUseTimeDampening:pe});return Ae&&ji(ne,Ae)?Ae:null},he=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=Qa({dragStartTime:ve,container:Ae.pageMarginBox,subject:re,center:de,shouldUseTimeDampening:pe});return ye&&gu(ne,ye)?ye:null},gt=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=Se({dragStartTime:re,viewport:qe,subject:je,center:Ae,shouldUseTimeDampening:de});if(_e){ve(_e);return}}var He=Vi({center:Ae,destination:Ol(ne.impact),droppables:ne.dimensions.droppables});if(He){var Ve=he({dragStartTime:re,droppable:He,subject:je,center:Ae,shouldUseTimeDampening:de});Ve&&pe(He.descriptor.id,Ve)}},bt=function(ee){var ne=ee.scrollWindow,re=ee.scrollDroppable,de=Kn(ne),ve=Kn(re),pe=null,Ae=function(_e){pe||Vt(!1);var He=pe,Ve=He.shouldUseTimeDampening,lt=He.dragStartTime;gt({state:_e,scrollWindow:de,scrollDroppable:ve,dragStartTime:lt,shouldUseTimeDampening:Ve})},ye=function(_e){Pu(),pe&&Vt(!1);var He=Date.now(),Ve=!1,lt=function(){Ve=!0};gt({state:_e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:lt,scrollDroppable:lt}),pe={dragStartTime:He,shouldUseTimeDampening:Ve},zi(),Ve&&Ae(_e)},je=function(){pe&&(de.cancel(),ve.cancel(),pe=null)};return{start:ye,stop:je,scroll:Ae}},Qn=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(!gu(qe,_e))return _e;var He=ie(qe,_e);if(!He)return re(qe.descriptor.id,_e),null;var Ve=sr(_e,He);re(qe.descriptor.id,Ve);var lt=sr(_e,Ve);return lt},Ae=function(qe,_e,He){if(!qe||!ji(_e,He))return He;var Ve=Au(_e,He);if(!Ve)return de(He),null;var lt=sr(He,Ve);de(lt);var zt=sr(He,lt);return zt},ye=function(qe){var _e=qe.scrollJumpRequest;if(_e){var He=Ol(qe.impact);He||Vt(!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},bn=function(ee){var ne=ee.scrollDroppable,re=ee.scrollWindow,de=ee.move,ve=bt({scrollWindow:re,scrollDroppable:ne}),pe=Qn({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},Xt="data-rbd",it=function(){var ee=Xt+"-drag-handle";return{base:ee,draggableId:ee+"-draggable-id",contextId:ee+"-context-id"}}(),en=function(){var ee=Xt+"-draggable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),ra=function(){var ee=Xt+"-droppable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),Bt={contextId:Xt+"-scroll-container-context-id"},Lt=function(ne){return function(re){return"["+re+'="'+ne+'"]'}},dt=function(ne,re){return ne.map(function(de){var ve=de.styles[re];return ve?de.selector+" { "+ve+" }":""}).join(" ")},xt="pointer-events: none;",Pn=function(ee){var ne=Lt(ee),re=function(){var ye=` cursor: -webkit-grab; cursor: grab; `;return{selector:ne(it.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; - `,resting:ye,dragging:Dt,dropAnimating:ye}}}(),de=function(){var ye=` + `,resting:ye,dragging:xt,dropAnimating:ye}}}(),de=function(){var ye=` transition: `+xo.outOfTheWay+`; - `;return{selector:ne(tn.contextId),styles:{dragging:ye,dropAnimating:ye,userCancel:ye}}}(),ve={selector:ne(In.contextId),styles:{always:"overflow-anchor: none;"}},pe={selector:"body",styles:{dragging:` + `;return{selector:ne(en.contextId),styles:{dragging:ye,dropAnimating:ye,userCancel:ye}}}(),ve={selector:ne(ra.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:mt(Ae,"always"),resting:mt(Ae,"resting"),dragging:mt(Ae,"dragging"),dropAnimating:mt(Ae,"dropAnimating"),userCancel:mt(Ae,"userCancel")}},Bt=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect,Xt=function(){var ne=document.querySelector("head");return ne||Gt(!1),ne},$t=function(ne){var re=document.createElement("style");return ne&&re.setAttribute("nonce",ne),re.type="text/css",re};function wn(ee,ne){var re=Sn(function(){return yt(ee)},[ee]),de=(0,b.useRef)(null),ve=(0,b.useRef)(null),pe=sn(Rt(function(He){var Ve=ve.current;Ve||Gt(!1),Ve.textContent=He}),[]),Ae=sn(function(He){var Ve=de.current;Ve||Gt(!1),Ve.textContent=He},[]);Bt(function(){!de.current&&!ve.current||Gt(!1);var He=$t(ne),Ve=$t(ne);return de.current=He,ve.current=Ve,He.setAttribute(Jt+"-always",ee),Ve.setAttribute(Jt+"-dynamic",ee),Xt().appendChild(He),Xt().appendChild(Ve),Ae(re.always),pe(re.resting),function(){var lt=function(la){var fa=la.current;fa||Gt(!1),Xt().removeChild(fa),la.current=null};lt(de),lt(ve)}},[ne,Ae,pe,re.always,re.resting,ee]);var ye=sn(function(){return pe(re.dragging)},[pe,re.dragging]),je=sn(function(He){if(He==="DROP"){pe(re.dropAnimating);return}pe(re.userCancel)},[pe,re.dropAnimating,re.userCancel]),qe=sn(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 un=function(ee){return ee&&ee.ownerDocument?ee.ownerDocument.defaultView:window};function Wt(ee){return ee instanceof un(ee).HTMLElement}function Ir(ee,ne){var re="["+it.contextId+'="'+ee+'"]',de=hr(document.querySelectorAll(re));if(!de.length)return null;var ve=eo(de,function(pe){return pe.getAttribute(it.draggableId)===ne});return!ve||!Wt(ve)?null:ve}function oo(ee){var ne=(0,b.useRef)({}),re=(0,b.useRef)(null),de=(0,b.useRef)(null),ve=(0,b.useRef)(!1),pe=sn(function(Ve,lt){var Zt={id:Ve,focus:lt};return ne.current[Ve]=Zt,function(){var fa=ne.current,Pa=fa[Ve];Pa!==Zt&&delete fa[Ve]}},[]),Ae=sn(function(Ve){var lt=Ir(ee,Ve);lt&<!==document.activeElement&<.focus()},[ee]),ye=sn(function(Ve,lt){re.current===Ve&&(re.current=lt)},[]),je=sn(function(){de.current||ve.current&&(de.current=requestAnimationFrame(function(){de.current=null;var Ve=re.current;Ve&&Ae(Ve)}))},[Ae]),qe=sn(function(Ve){re.current=null;var lt=document.activeElement;lt&<.getAttribute(it.draggableId)===Ve&&(re.current=Ve)},[]);Bt(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 qa(){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 Yr(){var ee=Sn(qa,[]);return(0,b.useEffect)(function(){return function(){requestAnimationFrame(ee.clean)}},[ee]),ee}var $n=b.createContext(null),Kr=function(){var ee=document.body;return ee||Gt(!1),ee},lo={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Do=function(ne){return"rbd-announcement-"+ne};function Lr(ee){var ne=Sn(function(){return Do(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,lo),Kr().appendChild(pe),function(){setTimeout(function(){var je=Kr();je.contains(pe)&&je.removeChild(pe),pe===re.current&&(re.current=null)})}},[ne]);var de=sn(function(ve){var pe=re.current;if(pe){pe.textContent=ve;return}},[]);return de}var Lo=0,Io={separator:"::"};function Al(){Lo=0}function On(ee,ne){return ne===void 0&&(ne=Io),Sn(function(){return""+ee+ne.separator+Lo++},[ne.separator,ee])}function fl(ee){var ne=ee.contextId,re=ee.uniqueId;return"rbd-hidden-text-"+ne+"-"+re}function xl(ee){var ne=ee.contextId,re=ee.text,de=On("hidden-text",{separator:"-"}),ve=Sn(function(){return fl({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",Kr().appendChild(Ae),function(){var je=Kr();je.contains(Ae)&&je.removeChild(Ae)}},[ve,re]),ve}var ko=b.createContext(null),zn={react:"^16.8.5","react-dom":"^16.8.5"},Bl=/(\d+)\.(\d+)\.(\d+)/,zl=function(ne){var re=Bl.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}},Jl=function(ne,re){return re.major>ne.major?!0:re.majorne.minor?!0:re.minor=ne.patch},Wl=function(ee,ne){var re=zl(ee),de=zl(ne);Jl(re,de)},Ql=` + `}},Ae=[de,re,ve,pe];return{always:dt(Ae,"always"),resting:dt(Ae,"resting"),dragging:dt(Ae,"dragging"),dropAnimating:dt(Ae,"dropAnimating"),userCancel:dt(Ae,"userCancel")}},Et=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?b.useLayoutEffect:b.useEffect,Ht=function(){var ne=document.querySelector("head");return ne||Vt(!1),ne},Nt=function(ne){var re=document.createElement("style");return ne&&re.setAttribute("nonce",ne),re.type="text/css",re};function Zn(ee,ne){var re=En(function(){return Pn(ee)},[ee]),de=(0,b.useRef)(null),ve=(0,b.useRef)(null),pe=ln(Tt(function(He){var Ve=ve.current;Ve||Vt(!1),Ve.textContent=He}),[]),Ae=ln(function(He){var Ve=de.current;Ve||Vt(!1),Ve.textContent=He},[]);Et(function(){!de.current&&!ve.current||Vt(!1);var He=Nt(ne),Ve=Nt(ne);return de.current=He,ve.current=Ve,He.setAttribute(Xt+"-always",ee),Ve.setAttribute(Xt+"-dynamic",ee),Ht().appendChild(He),Ht().appendChild(Ve),Ae(re.always),pe(re.resting),function(){var lt=function(la){var fa=la.current;fa||Vt(!1),Ht().removeChild(fa),la.current=null};lt(de),lt(ve)}},[ne,Ae,pe,re.always,re.resting,ee]);var ye=ln(function(){return pe(re.dragging)},[pe,re.dragging]),je=ln(function(He){if(He==="DROP"){pe(re.dropAnimating);return}pe(re.userCancel)},[pe,re.dropAnimating,re.userCancel]),qe=ln(function(){ve.current&&pe(re.resting)},[pe,re.resting]),_e=En(function(){return{dragging:ye,dropping:je,resting:qe}},[ye,je,qe]);return _e}var sn=function(ee){return ee&&ee.ownerDocument?ee.ownerDocument.defaultView:window};function Rt(ee){return ee instanceof sn(ee).HTMLElement}function nr(ee,ne){var re="["+it.contextId+'="'+ee+'"]',de=Er(document.querySelectorAll(re));if(!de.length)return null;var ve=to(de,function(pe){return pe.getAttribute(it.draggableId)===ne});return!ve||!Rt(ve)?null:ve}function Kr(ee){var ne=(0,b.useRef)({}),re=(0,b.useRef)(null),de=(0,b.useRef)(null),ve=(0,b.useRef)(!1),pe=ln(function(Ve,lt){var zt={id:Ve,focus:lt};return ne.current[Ve]=zt,function(){var fa=ne.current,Pa=fa[Ve];Pa!==zt&&delete fa[Ve]}},[]),Ae=ln(function(Ve){var lt=nr(ee,Ve);lt&<!==document.activeElement&<.focus()},[ee]),ye=ln(function(Ve,lt){re.current===Ve&&(re.current=lt)},[]),je=ln(function(){de.current||ve.current&&(de.current=requestAnimationFrame(function(){de.current=null;var Ve=re.current;Ve&&Ae(Ve)}))},[Ae]),qe=ln(function(Ve){re.current=null;var lt=document.activeElement;lt&<.getAttribute(it.draggableId)===Ve&&(re.current=Ve)},[]);Et(function(){return ve.current=!0,function(){ve.current=!1;var Ve=de.current;Ve&&cancelAnimationFrame(Ve)}},[]);var _e=En(function(){return{register:pe,tryRecordFocus:qe,tryRestoreFocusRecorded:je,tryShiftRecord:ye}},[pe,qe,je,ye]);return _e}function qa(){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||Vt(!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||Vt(!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 Nr(){var ee=En(qa,[]);return(0,b.useEffect)(function(){return function(){requestAnimationFrame(ee.clean)}},[ee]),ee}var Jn=b.createContext(null),_r=function(){var ee=document.body;return ee||Vt(!1),ee},lo={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Do=function(ne){return"rbd-announcement-"+ne};function Ir(ee){var ne=En(function(){return Do(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,lo),_r().appendChild(pe),function(){setTimeout(function(){var je=_r();je.contains(pe)&&je.removeChild(pe),pe===re.current&&(re.current=null)})}},[ne]);var de=ln(function(ve){var pe=re.current;if(pe){pe.textContent=ve;return}},[]);return de}var Lo=0,Io={separator:"::"};function Al(){Lo=0}function Nn(ee,ne){return ne===void 0&&(ne=Io),En(function(){return""+ee+ne.separator+Lo++},[ne.separator,ee])}function fl(ee){var ne=ee.contextId,re=ee.uniqueId;return"rbd-hidden-text-"+ne+"-"+re}function xl(ee){var ne=ee.contextId,re=ee.text,de=Nn("hidden-text",{separator:"-"}),ve=En(function(){return fl({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",_r().appendChild(Ae),function(){var je=_r();je.contains(Ae)&&je.removeChild(Ae)}},[ve,re]),ve}var ko=b.createContext(null),Hn={react:"^16.8.5","react-dom":"^16.8.5"},Bl=/(\d+)\.(\d+)\.(\d+)/,zl=function(ne){var re=Bl.exec(ne);re==null&&Vt(!1);var de=Number(re[1]),ve=Number(re[2]),pe=Number(re[3]);return{major:de,minor:ve,patch:pe,raw:ne}},Jl=function(ne,re){return re.major>ne.major?!0:re.majorne.minor?!0:re.minor=ne.patch},Wl=function(ee,ne){var re=zl(ee),de=zl(ne);Jl(re,de)},Ql=` 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 -`,vl=function(ee){var ne=ee.doctype;ne&&(ne.name.toLowerCase(),ne.publicId)};function Qi(ee){}function Ni(ee,ne){}function ai(){Ni(function(){Wl(zn.react,b.version),vl(document)},[])}function Ho(ee){var ne=(0,b.useRef)(ee);return(0,b.useEffect)(function(){ne.current=ee}),ne}function al(){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 Xl=9,Gr=13,Uo=27,yl=32,wl=33,Ul=34,mi=35,cl=36,Zi=37,Pi=38,ui=39,pl=40,Ui,Gi=(Ui={},Ui[Gr]=!0,Ui[Xl]=!0,Ui),zo=function(ee){Gi[ee.keyCode]&&ee.preventDefault()},yu=function(){var ee="visibilitychange";if(typeof document=="undefined")return ee;var ne=[ee,"ms"+ee,"webkit"+ee,"moz"+ee,"o"+ee],re=eo(ne,function(de){return"on"+de in document});return re||ee}(),Fu=0,tu=5;function Ai(ee,ne){return Math.abs(ne.x-ee.x)>=tu||Math.abs(ne.y-ee.y)>=tu}var Yi={type:"IDLE"};function Nu(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===Fu){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(Ai(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===Uo){Ae.preventDefault(),ne();return}zo(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:yu,fn:ne}]}function Cu(ee){var ne=(0,b.useRef)(Yi),re=(0,b.useRef)(qn),de=Sn(function(){return{eventName:"mousedown",fn:function(He){if(!He.defaultPrevented&&He.button===Fu&&!(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=sn(function(){var He={passive:!1,capture:!0};re.current=Ma(window,[ve,de],He)},[ve,de]),Ae=sn(function(){var _e=ne.current;_e.type!=="IDLE"&&(ne.current=Yi,re.current(),pe())},[pe]),ye=sn(function(){var _e=ne.current;Ae(),_e.type==="DRAGGING"&&_e.actions.cancel({shouldBlockNextClick:!0}),_e.type==="PENDING"&&_e.actions.abort()},[Ae]),je=sn(function(){var He={capture:!0,passive:!1},Ve=Nu({cancel:ye,completed:Ae,getPhase:function(){return ne.current},setPhase:function(Zt){ne.current=Zt}});re.current=Ma(window,Ve,He)},[ye,Ae]),qe=sn(function(He,Ve){ne.current.type!=="IDLE"&&Gt(!1),ne.current={type:"PENDING",point:Ve,actions:He},je()},[je]);Bt(function(){return pe(),function(){re.current()}},[pe])}var yi;function Kt(){}var Vn=(yi={},yi[Ul]=!0,yi[wl]=!0,yi[cl]=!0,yi[mi]=!0,yi);function _r(ee,ne){function re(){ne(),ee.cancel()}function de(){ne(),ee.drop()}return[{eventName:"keydown",fn:function(pe){if(pe.keyCode===Uo){pe.preventDefault(),re();return}if(pe.keyCode===yl){pe.preventDefault(),de();return}if(pe.keyCode===pl){pe.preventDefault(),ee.moveDown();return}if(pe.keyCode===Pi){pe.preventDefault(),ee.moveUp();return}if(pe.keyCode===ui){pe.preventDefault(),ee.moveRight();return}if(pe.keyCode===Zi){pe.preventDefault(),ee.moveLeft();return}if(Vn[pe.keyCode]){pe.preventDefault();return}zo(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:yu,fn:re}]}function br(ee){var ne=(0,b.useRef)(Kt),re=Sn(function(){return{eventName:"keydown",fn:function(pe){if(pe.defaultPrevented||pe.keyCode!==yl)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=Ma(window,_r(qe,_e),{capture:!0,passive:!1})}}},[ee]),de=sn(function(){var pe={passive:!1,capture:!0};ne.current=Ma(window,[re],pe)},[re]);Bt(function(){return de(),function(){ne.current()}},[de])}var Mr={type:"IDLE"},fo=120,Wo=.15;function vo(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===Uo&&ve.preventDefault(),ne()}},{eventName:yu,fn:ne}]}function fi(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>=Wo;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:yu,fn:ne}]}function kl(ee){var ne=(0,b.useRef)(Mr),re=(0,b.useRef)(qn),de=sn(function(){return ne.current},[]),ve=sn(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 la=ee.tryGetLock(Zt,ye,{sourceEvent:lt});if(la){var fa=lt.touches[0],Pa=fa.clientX,Ya=fa.clientY,lr={x:Pa,y:Ya};re.current(),He(la,lr)}}}}}},[ee]),Ae=sn(function(){var lt={capture:!0,passive:!1};re.current=Ma(window,[pe],lt)},[pe]),ye=sn(function(){var Ve=ne.current;Ve.type!=="IDLE"&&(Ve.type==="PENDING"&&clearTimeout(Ve.longPressTimerId),ve(Mr),re.current(),Ae())},[Ae,ve]),je=sn(function(){var Ve=ne.current;ye(),Ve.type==="DRAGGING"&&Ve.actions.cancel({shouldBlockNextClick:!0}),Ve.type==="PENDING"&&Ve.actions.abort()},[ye]),qe=sn(function(){var lt={capture:!0,passive:!1},Zt={cancel:je,completed:ye,getPhase:de},la=Ma(window,fi(Zt),lt),fa=Ma(window,vo(Zt),lt);re.current=function(){la(),fa()}},[je,de,ye]),_e=sn(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=sn(function(lt,Zt){de().type!=="IDLE"&&Gt(!1);var la=setTimeout(_e,fo);ve({type:"PENDING",point:Zt,actions:lt,longPressTimerId:la}),qe()},[qe,de,ve,_e]);Bt(function(){return Ae(),function(){re.current();var Zt=de();Zt.type==="PENDING"&&(clearTimeout(Zt.longPressTimerId),ve(Mr))}},[de,Ae,ve]),Bt(function(){var lt=Ma(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return lt},[])}function bu(ee){}var Hi={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Ki(ee,ne){if(ne==null)return!1;var re=!!Hi[ne.tagName.toLowerCase()];if(re)return!0;var de=ne.getAttribute("contenteditable");return de==="true"||de===""?!0:ne===ee?!1:Ki(ee,ne.parentElement)}function _i(ee,ne){var re=ne.target;return Wt(re)?Ki(ee,re):!1}var hs=function(ee){return Ca(ee.getBoundingClientRect()).center};function qu(ee){return ee instanceof un(ee).Element}var $u=function(){var ee="matches";if(typeof document=="undefined")return ee;var ne=[ee,"msMatchesSelector","webkitMatchesSelector"],re=eo(ne,function(de){return de in Element.prototype});return re||ee}();function es(ee,ne){return ee==null?null:ee[$u](ne)?ee:es(ee.parentElement,ne)}function Es(ee,ne){return ee.closest?ee.closest(ne):es(ee,ne)}function ts(ee){return"["+it.contextId+'="'+ee+'"]'}function ns(ee,ne){var re=ne.target;if(!qu(re))return null;var de=ts(ee),ve=Es(re,de);return!ve||!Wt(ve)?null:ve}function ta(ee,ne){var re=ns(ee,ne);return re?re.getAttribute(it.draggableId):null}function or(ee,ne){var re="["+tn.contextId+'="'+ee+'"]',de=hr(document.querySelectorAll(re)),ve=eo(de,function(pe){return pe.getAttribute(tn.id)===ne});return!ve||!Wt(ve)?null:ve}function Xr(ee){ee.preventDefault()}function io(ee){var ne=ee.expected,re=ee.phase,de=ee.isLockActive,ve=ee.shouldWarn;return!(!de()||ne!==re)}function po(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||!Co(re.getState(),ve))}function Hr(ee){var ne=ee.lockAPI,re=ee.contextId,de=ee.store,ve=ee.registry,pe=ee.draggableId,Ae=ee.forceSensorStop,ye=ee.sourceEvent,je=po({lockAPI:ne,store:de,registry:ve,draggableId:pe});if(!je)return null;var qe=ve.draggable.getById(pe),_e=or(re,qe.descriptor.id);if(!_e||ye&&!qe.options.canDragInteractiveElements&&_i(_e,ye))return null;var He=ne.claim(Ae||qn),Ve="PRE_DRAG";function lt(){return qe.options.shouldRespectForcePress}function Zt(){return ne.isActive(He)}function la(uo,Oo){io({expected:uo,phase:Ve,isLockActive:Zt,shouldWarn:!0})&&de.dispatch(Oo())}var fa=la.bind(null,"DRAGGING");function Pa(uo){function Oo(){ne.release(),Ve="COMPLETED"}Ve!=="PRE_DRAG"&&(Oo(),Ve!=="PRE_DRAG"&&Gt(!1)),de.dispatch(ge(uo.liftActionArgs)),Ve="DRAGGING";function Tl(Vo,jl){if(jl===void 0&&(jl={shouldBlockNextClick:!1}),uo.cleanup(),jl.shouldBlockNextClick){var si=Ma(window,[{eventName:"click",fn:Xr,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(si)}Oo(),de.dispatch(oa({reason:Vo}))}return(0,Be.Z)({isActive:function(){return io({expected:"DRAGGING",phase:Ve,isLockActive:Zt,shouldWarn:!1})},shouldRespectForcePress:lt,drop:function(jl){return Tl("DROP",jl)},cancel:function(jl){return Tl("CANCEL",jl)}},uo.actions)}function Ya(uo){var Oo=_n(function(Vo){fa(function(){return Nt({client:Vo})})}),Tl=Pa({liftActionArgs:{id:pe,clientSelection:uo,movementMode:"FLUID"},cleanup:function(){return Oo.cancel()},actions:{move:Oo}});return(0,Be.Z)({},Tl,{move:Oo})}function lr(){var uo={moveUp:function(){return fa(Vt)},moveRight:function(){return fa(Mn)},moveDown:function(){return fa(fn)},moveLeft:function(){return fa(Rn)}};return Pa({liftActionArgs:{id:pe,clientSelection:hs(_e),movementMode:"SNAP"},cleanup:qn,actions:uo})}function vr(){var uo=io({expected:"PRE_DRAG",phase:Ve,isLockActive:Zt,shouldWarn:!0});uo&&ne.release()}var Eo={isActive:function(){return io({expected:"PRE_DRAG",phase:Ve,isLockActive:Zt,shouldWarn:!1})},shouldRespectForcePress:lt,fluidLift:Ya,snapLift:lr,abort:vr};return Eo}var ho=[Cu,br,kl];function Yo(ee){var ne=ee.contextId,re=ee.store,de=ee.registry,ve=ee.customSensors,pe=ee.enableDefaultSensors,Ae=[].concat(pe?ho:[],ve||[]),ye=(0,b.useState)(function(){return al()})[0],je=sn(function(Ya,lr){Ya.isDragging&&!lr.isDragging&&ye.tryAbandon()},[ye]);Bt(function(){var Ya=re.getState(),lr=re.subscribe(function(){var vr=re.getState();je(Ya,vr),Ya=vr});return lr},[ye,re,je]),Bt(function(){return ye.tryAbandon},[ye.tryAbandon]);var qe=sn(function(Pa){return po({lockAPI:ye,registry:de,store:re,draggableId:Pa})},[ye,de,re]),_e=sn(function(Pa,Ya,lr){return Hr({lockAPI:ye,registry:de,contextId:ne,store:re,draggableId:Pa,forceSensorStop:Ya,sourceEvent:lr&&lr.sourceEvent?lr.sourceEvent:null})},[ne,ye,de,re]),He=sn(function(Pa){return ta(ne,Pa)},[ne]),Ve=sn(function(Pa){var Ya=de.draggable.findById(Pa);return Ya?Ya.options:null},[de.draggable]),lt=sn(function(){ye.isClaimed()&&(ye.tryAbandon(),re.getState().phase!=="IDLE"&&re.dispatch(wt()))},[ye,re]),Zt=sn(ye.isClaimed,[ye]),la=Sn(function(){return{canGetLock:qe,tryGetLock:_e,findClosestDraggableId:He,findOptionsForDraggable:Ve,tryReleaseLock:lt,isLockClaimed:Zt}},[qe,_e,He,Ve,lt,Zt]);bu(Ae);for(var fa=0;fa=tu||Math.abs(ne.y-ee.y)>=tu}var Yi={type:"IDLE"};function Nu(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===Fu){var _e={x:je,y:qe},He=de();if(He.type==="DRAGGING"){Ae.preventDefault(),He.actions.move(_e);return}He.type!=="PENDING"&&Vt(!1);var Ve=He.point;if(Ai(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===Uo){Ae.preventDefault(),ne();return}zo(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"&&Vt(!1),ye.actions.shouldRespectForcePress()){ne();return}Ae.preventDefault()}},{eventName:yu,fn:ne}]}function Cu(ee){var ne=(0,b.useRef)(Yi),re=(0,b.useRef)(qn),de=En(function(){return{eventName:"mousedown",fn:function(He){if(!He.defaultPrevented&&He.button===Fu&&!(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=En(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=ln(function(){var He={passive:!1,capture:!0};re.current=Ma(window,[ve,de],He)},[ve,de]),Ae=ln(function(){var _e=ne.current;_e.type!=="IDLE"&&(ne.current=Yi,re.current(),pe())},[pe]),ye=ln(function(){var _e=ne.current;Ae(),_e.type==="DRAGGING"&&_e.actions.cancel({shouldBlockNextClick:!0}),_e.type==="PENDING"&&_e.actions.abort()},[Ae]),je=ln(function(){var He={capture:!0,passive:!1},Ve=Nu({cancel:ye,completed:Ae,getPhase:function(){return ne.current},setPhase:function(zt){ne.current=zt}});re.current=Ma(window,Ve,He)},[ye,Ae]),qe=ln(function(He,Ve){ne.current.type!=="IDLE"&&Vt(!1),ne.current={type:"PENDING",point:Ve,actions:He},je()},[je]);Et(function(){return pe(),function(){re.current()}},[pe])}var yi;function _t(){}var zn=(yi={},yi[Ul]=!0,yi[wl]=!0,yi[cl]=!0,yi[mi]=!0,yi);function Jr(ee,ne){function re(){ne(),ee.cancel()}function de(){ne(),ee.drop()}return[{eventName:"keydown",fn:function(pe){if(pe.keyCode===Uo){pe.preventDefault(),re();return}if(pe.keyCode===yl){pe.preventDefault(),de();return}if(pe.keyCode===pl){pe.preventDefault(),ee.moveDown();return}if(pe.keyCode===Pi){pe.preventDefault(),ee.moveUp();return}if(pe.keyCode===ui){pe.preventDefault(),ee.moveRight();return}if(pe.keyCode===Zi){pe.preventDefault(),ee.moveLeft();return}if(zn[pe.keyCode]){pe.preventDefault();return}zo(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:yu,fn:re}]}function Br(ee){var ne=(0,b.useRef)(_t),re=En(function(){return{eventName:"keydown",fn:function(pe){if(pe.defaultPrevented||pe.keyCode!==yl)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||Vt(!1),je=!1,ne.current(),de()}ne.current=Ma(window,Jr(qe,_e),{capture:!0,passive:!1})}}},[ee]),de=ln(function(){var pe={passive:!1,capture:!0};ne.current=Ma(window,[re],pe)},[re]);Et(function(){return de(),function(){ne.current()}},[de])}var Rr={type:"IDLE"},fo=120,Wo=.15;function vo(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===Uo&&ve.preventDefault(),ne()}},{eventName:yu,fn:ne}]}function fi(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"&&Vt(!1);var ye=pe.touches[0];if(ye){var je=ye.force>=Wo;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:yu,fn:ne}]}function kl(ee){var ne=(0,b.useRef)(Rr),re=(0,b.useRef)(qn),de=ln(function(){return ne.current},[]),ve=ln(function(lt){ne.current=lt},[]),pe=En(function(){return{eventName:"touchstart",fn:function(lt){if(!lt.defaultPrevented){var zt=ee.findClosestDraggableId(lt);if(zt){var la=ee.tryGetLock(zt,ye,{sourceEvent:lt});if(la){var fa=lt.touches[0],Pa=fa.clientX,Ya=fa.clientY,ir={x:Pa,y:Ya};re.current(),He(la,ir)}}}}}},[ee]),Ae=ln(function(){var lt={capture:!0,passive:!1};re.current=Ma(window,[pe],lt)},[pe]),ye=ln(function(){var Ve=ne.current;Ve.type!=="IDLE"&&(Ve.type==="PENDING"&&clearTimeout(Ve.longPressTimerId),ve(Rr),re.current(),Ae())},[Ae,ve]),je=ln(function(){var Ve=ne.current;ye(),Ve.type==="DRAGGING"&&Ve.actions.cancel({shouldBlockNextClick:!0}),Ve.type==="PENDING"&&Ve.actions.abort()},[ye]),qe=ln(function(){var lt={capture:!0,passive:!1},zt={cancel:je,completed:ye,getPhase:de},la=Ma(window,fi(zt),lt),fa=Ma(window,vo(zt),lt);re.current=function(){la(),fa()}},[je,de,ye]),_e=ln(function(){var lt=de();lt.type!=="PENDING"&&Vt(!1);var zt=lt.actions.fluidLift(lt.point);ve({type:"DRAGGING",actions:zt,hasMoved:!1})},[de,ve]),He=ln(function(lt,zt){de().type!=="IDLE"&&Vt(!1);var la=setTimeout(_e,fo);ve({type:"PENDING",point:zt,actions:lt,longPressTimerId:la}),qe()},[qe,de,ve,_e]);Et(function(){return Ae(),function(){re.current();var zt=de();zt.type==="PENDING"&&(clearTimeout(zt.longPressTimerId),ve(Rr))}},[de,Ae,ve]),Et(function(){var lt=Ma(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return lt},[])}function bu(ee){}var Hi={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Ki(ee,ne){if(ne==null)return!1;var re=!!Hi[ne.tagName.toLowerCase()];if(re)return!0;var de=ne.getAttribute("contenteditable");return de==="true"||de===""?!0:ne===ee?!1:Ki(ee,ne.parentElement)}function _i(ee,ne){var re=ne.target;return Rt(re)?Ki(ee,re):!1}var hs=function(ee){return Ca(ee.getBoundingClientRect()).center};function qu(ee){return ee instanceof sn(ee).Element}var $u=function(){var ee="matches";if(typeof document=="undefined")return ee;var ne=[ee,"msMatchesSelector","webkitMatchesSelector"],re=to(ne,function(de){return de in Element.prototype});return re||ee}();function es(ee,ne){return ee==null?null:ee[$u](ne)?ee:es(ee.parentElement,ne)}function Es(ee,ne){return ee.closest?ee.closest(ne):es(ee,ne)}function ts(ee){return"["+it.contextId+'="'+ee+'"]'}function ns(ee,ne){var re=ne.target;if(!qu(re))return null;var de=ts(ee),ve=Es(re,de);return!ve||!Rt(ve)?null:ve}function ea(ee,ne){var re=ns(ee,ne);return re?re.getAttribute(it.draggableId):null}function lr(ee,ne){var re="["+en.contextId+'="'+ee+'"]',de=Er(document.querySelectorAll(re)),ve=to(de,function(pe){return pe.getAttribute(en.id)===ne});return!ve||!Rt(ve)?null:ve}function qr(ee){ee.preventDefault()}function io(ee){var ne=ee.expected,re=ee.phase,de=ee.isLockActive,ve=ee.shouldWarn;return!(!de()||ne!==re)}function po(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||!Co(re.getState(),ve))}function zr(ee){var ne=ee.lockAPI,re=ee.contextId,de=ee.store,ve=ee.registry,pe=ee.draggableId,Ae=ee.forceSensorStop,ye=ee.sourceEvent,je=po({lockAPI:ne,store:de,registry:ve,draggableId:pe});if(!je)return null;var qe=ve.draggable.getById(pe),_e=lr(re,qe.descriptor.id);if(!_e||ye&&!qe.options.canDragInteractiveElements&&_i(_e,ye))return null;var He=ne.claim(Ae||qn),Ve="PRE_DRAG";function lt(){return qe.options.shouldRespectForcePress}function zt(){return ne.isActive(He)}function la(uo,Oo){io({expected:uo,phase:Ve,isLockActive:zt,shouldWarn:!0})&&de.dispatch(Oo())}var fa=la.bind(null,"DRAGGING");function Pa(uo){function Oo(){ne.release(),Ve="COMPLETED"}Ve!=="PRE_DRAG"&&(Oo(),Ve!=="PRE_DRAG"&&Vt(!1)),de.dispatch(ge(uo.liftActionArgs)),Ve="DRAGGING";function Tl(Vo,jl){if(jl===void 0&&(jl={shouldBlockNextClick:!1}),uo.cleanup(),jl.shouldBlockNextClick){var si=Ma(window,[{eventName:"click",fn:qr,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(si)}Oo(),de.dispatch(oa({reason:Vo}))}return(0,Be.Z)({isActive:function(){return io({expected:"DRAGGING",phase:Ve,isLockActive:zt,shouldWarn:!1})},shouldRespectForcePress:lt,drop:function(jl){return Tl("DROP",jl)},cancel:function(jl){return Tl("CANCEL",jl)}},uo.actions)}function Ya(uo){var Oo=Kn(function(Vo){fa(function(){return Ot({client:Vo})})}),Tl=Pa({liftActionArgs:{id:pe,clientSelection:uo,movementMode:"FLUID"},cleanup:function(){return Oo.cancel()},actions:{move:Oo}});return(0,Be.Z)({},Tl,{move:Oo})}function ir(){var uo={moveUp:function(){return fa(Qt)},moveRight:function(){return fa(In)},moveDown:function(){return fa(mn)},moveLeft:function(){return fa(On)}};return Pa({liftActionArgs:{id:pe,clientSelection:hs(_e),movementMode:"SNAP"},cleanup:qn,actions:uo})}function pr(){var uo=io({expected:"PRE_DRAG",phase:Ve,isLockActive:zt,shouldWarn:!0});uo&&ne.release()}var Eo={isActive:function(){return io({expected:"PRE_DRAG",phase:Ve,isLockActive:zt,shouldWarn:!1})},shouldRespectForcePress:lt,fluidLift:Ya,snapLift:ir,abort:pr};return Eo}var ho=[Cu,Br,kl];function Yo(ee){var ne=ee.contextId,re=ee.store,de=ee.registry,ve=ee.customSensors,pe=ee.enableDefaultSensors,Ae=[].concat(pe?ho:[],ve||[]),ye=(0,b.useState)(function(){return al()})[0],je=ln(function(Ya,ir){Ya.isDragging&&!ir.isDragging&&ye.tryAbandon()},[ye]);Et(function(){var Ya=re.getState(),ir=re.subscribe(function(){var pr=re.getState();je(Ya,pr),Ya=pr});return ir},[ye,re,je]),Et(function(){return ye.tryAbandon},[ye.tryAbandon]);var qe=ln(function(Pa){return po({lockAPI:ye,registry:de,store:re,draggableId:Pa})},[ye,de,re]),_e=ln(function(Pa,Ya,ir){return zr({lockAPI:ye,registry:de,contextId:ne,store:re,draggableId:Pa,forceSensorStop:Ya,sourceEvent:ir&&ir.sourceEvent?ir.sourceEvent:null})},[ne,ye,de,re]),He=ln(function(Pa){return ea(ne,Pa)},[ne]),Ve=ln(function(Pa){var Ya=de.draggable.findById(Pa);return Ya?Ya.options:null},[de.draggable]),lt=ln(function(){ye.isClaimed()&&(ye.tryAbandon(),re.getState().phase!=="IDLE"&&re.dispatch(Dt()))},[ye,re]),zt=ln(ye.isClaimed,[ye]),la=En(function(){return{canGetLock:qe,tryGetLock:_e,findClosestDraggableId:He,findOptionsForDraggable:Ve,tryReleaseLock:lt,isLockClaimed:zt}},[qe,_e,He,Ve,lt,zt]);bu(Ae);for(var fa=0;faku(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 Rs{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 Ni({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=xt(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:"9a7028df",67:"cfa5cd07",109:"4c9ec64b",119:"5c51d60a",195:"34d67d4f",201:"0f68dcf8",264:"a6c6e2f5",292:"352ac5a8",316:"1f60ada6",337:"4827f840",354:"d4d139cf",410:"db62a157",479:"524f4c07",485:"7e1acaf5",508:"b9195cbe",518:"31291902",532:"bc3e8950",533:"2cc8ef79",547:"079ee10b",556:"8d53f108",559:"df5fe3e9",570:"ce8f8919",576:"51b0e13f",629:"44a1d9a5",643:"57291494",671:"4a609b8d",680:"fff5185e",700:"eac49f7f",737:"a31523e7",741:"ac5fd360",799:"2c3ced66",879:"379e70d4",895:"77a23185",900:"1b84d86e",906:"a93c4f23",921:"0f117dce",928:"c1deadda",981:"c1caf6fd",1006:"97dde79b",1043:"66cd59aa",1045:"25e63e76",1048:"74131a74",1070:"6b05ad97",1077:"c0c83726",1144:"c90eccaf",1154:"8cb80842",1158:"05141ffe",1211:"793e376e",1253:"4913da25",1257:"8c942674",1274:"5f6ea65a",1276:"8608fe86",1343:"351272a1",1423:"4806b9d4",1427:"9f4b4889",1450:"68d01f3f",1461:"c7afd7ff",1462:"fcf08abc",1470:"69c2a35e",1475:"3f7e872d",1477:"b6310709",1482:"52debedb",1512:"5580f350",1520:"a059b9fb",1545:"48748c8b",1578:"cf131154",1581:"e1ac767e",1582:"1424c3eb",1646:"e6e27b60",1651:"f3db55fe",1657:"86f854cd",1660:"f15d970e",1674:"087f0979",1678:"ef1e6b34",1713:"d927e4ca",1717:"b68c535e",1727:"b325cf86",1754:"871a01bb",1783:"cca7a8ae",1798:"a6d5eb7b",1799:"25c47273",1802:"9e65291b",1831:"43d5a4d9",1836:"843915b7",1855:"5c0b28e0",1880:"c6a6f678",1897:"b1c72970",1939:"d17967b6",1945:"6c9eefbf",1953:"5d4128b2",1962:"ba5131c0",1993:"095aa917",2011:"3bf92350",2045:"20fd4231",2085:"911d63b6",2099:"03cb843b",2102:"1d9384d2",2130:"b5dee9ba",2141:"ffcb1e53",2203:"a948674a",2216:"10e739ea",2240:"73ba2fd2",2249:"f4830452",2281:"623cd6b6",2300:"37cc5b84",2303:"6f6e0cc0",2307:"d8523ba1",2338:"a5fec938",2339:"1acc84e1",2386:"192e235c",2396:"ecdc9f45",2404:"e60dcfdc",2412:"ab0b00e3",2425:"f32ab87f",2443:"f78182af",2476:"7e7fcb51",2494:"68080a87",2501:"d5bec18e",2538:"de4a3723",2539:"79d2e78b",2548:"39d467f8",2570:"b8798ea4",2594:"e87d3761",2603:"7f334c91",2659:"fe88ec52",2707:"4ab8b71e",2788:"5dadb2ae",2806:"57bf5526",2819:"c375bd74",2823:"152a02c5",2829:"9e6c862a",2837:"54a82605",2862:"c83cd22d",2865:"93cc0240",2884:"63929e14",2969:"ab3357d7",2998:"e7089d34",3006:"9f444c82",3086:"ac24feda",3133:"9bf3f89c",3141:"94acbbfa",3157:"77e7f615",3183:"12da84f6",3198:"8e655451",3212:"289ce26c",3220:"2ec02fd0",3247:"a4abe51e",3260:"a000c34a",3276:"e8bbdcab",3317:"7e771f71",3391:"1b5e4ebd",3433:"8cfed2cc",3442:"8af3dde6",3447:"15c226ed",3451:"01cab97c",3509:"3824b1ea",3550:"3dc83156",3581:"2a12dfc5",3585:"b081c627",3667:"1ce4278f",3668:"50e945d0",3697:"481a10d9",3747:"3af8b1a4",3754:"588189ca",3777:"d5b0f2f1",3784:"765e39b3",3805:"9dbcb95e",3831:"9d882ed6",3862:"a8ffbe31",3873:"2cdc0615",3885:"f87f7f15",3910:"b0cab52a",3951:"93790f49",3987:"5cecd51b",4014:"27a8e97c",4017:"6390a59e",4030:"10a713c5",4048:"722b7a52",4056:"a91ce473",4058:"1b8a9ec4",4078:"eba3521b",4088:"236723f3",4093:"021fd4a3",4105:"54ee0238",4144:"ad223789",4164:"419a657c",4216:"20b80c8f",4217:"8d6ec674",4227:"3d7768d7",4259:"f6153731",4264:"d4ccd42e",4297:"020e2c18",4347:"ce21ef2e",4354:"140899b7",4360:"cf5efa52",4449:"9bae7741",4492:"f527b260",4496:"43a8016e",4498:"8cc444fe",4504:"352f033d",4514:"4def1e00",4520:"6d85e76a",4546:"99872034",4565:"55362dc4",4572:"046b7266",4599:"61def4cb",4610:"dc9c8f2b",4621:"5ba5f6d2",4628:"ece2c60c",4662:"cce5e02e",4685:"c33f1528",4715:"4fd94a64",4735:"357746c7",4736:"b381de6c",4741:"30c25f7f",4757:"ed008827",4766:"a8b85f6c",4770:"2a543447",4790:"619413e4",4795:"d3ec984d",4797:"a24e92db",4800:"93fa2f83",4850:"1edda4b7",4889:"02927fa0",4928:"9e3dcab8",4944:"ef75ed38",4973:"3c65b5e7",4994:"1d20b2e3",5022:"42104da0",5043:"819f8378",5048:"9c3a533b",5060:"85dafcc6",5096:"6eeb3201",5111:"a8b62699",5117:"4c3c2f22",5125:"dcd88ff4",5148:"279c0f10",5165:"bc17bdde",5176:"345fb97c",5177:"29bbc26c",5179:"d864046e",5186:"8c7d3f93",5230:"21c86728",5238:"717cff7d",5290:"5dabcdc2",5297:"e3a30b38",5307:"6542239c",5319:"b10fcf46",5321:"1163c84e",5330:"54837f49",5335:"8443a05f",5354:"7ae70604",5357:"5b46c6ae",5359:"325ca615",5382:"f8fbefcc",5402:"41fd92e7",5416:"454536b7",5434:"38b302a6",5466:"3c0cf573",5494:"d89549c4",5518:"eb3f825a",5549:"620b086a",5572:"7b67712f",5573:"b932ca81",5624:"24c5cb2d",5631:"e00d3d36",5650:"3b99d610",5679:"4a090bef",5694:"84bfe34e",5705:"2dab2809",5729:"f4bd13be",5764:"e0d7e586",5775:"5c5bd0af",5776:"2ff16d95",5786:"14be5919",5798:"60b4bb97",5800:"bc8fbff0",5816:"6dee88bd",5823:"cd3c2a33",5876:"5eded409",5888:"f4954129",5891:"8cd29dde",5894:"8310920f",5902:"3cb4d6f5",5911:"84a8d8dc",5915:"daef716d",5930:"cdc416cd",5972:"22f0589f",5989:"c947f3bd",5992:"104aefb0",6029:"1a2e158d",6034:"38e883cb",6045:"d268f87f",6047:"3ce45acd",6063:"b0a9ca0b",6069:"da765190",6080:"73c5cfad",6126:"99519171",6127:"c784043b",6170:"c0534f76",6185:"68c08970",6265:"8e46360f",6270:"78005963",6282:"f5f2025c",6328:"82518e83",6366:"de48b8af",6378:"7f3a946a",6411:"22c818a7",6434:"1797208f",6444:"3ce15985",6451:"45314ee6",6452:"9e892a16",6531:"621daf8b",6583:"771adf31",6587:"02a5b015",6634:"8d61fba5",6637:"774c1cdc",6651:"d9b62315",6682:"f750a0aa",6685:"d6884a5d",6729:"f2d79089",6741:"464eee07",6774:"59d4d618",6776:"a9290b9d",6784:"559431c1",6788:"c048606f",6789:"7b3e4d94",6796:"027689d9",6820:"9f2ac5eb",6882:"a62b6bd1",6904:"58ef1627",6913:"92021430",6963:"1ff41e79",7043:"a86ee064",7045:"19605972",7058:"ff13e368",7062:"c03e78ad",7084:"46ccce72",7099:"9716d012",7156:"e7466006",7178:"5ee36865",7182:"31e8ecb0",7224:"77bd0811",7242:"03c47a27",7260:"4494907d",7289:"07db1877",7322:"22c9739e",7323:"7a75cacf",7329:"d75967fc",7333:"04a3609a",7365:"1005464f",7395:"888976f7",7402:"d74b68e2",7460:"ce795324",7477:"8df28b7f",7482:"b6ff2610",7527:"ed088a10",7545:"28f50100",7560:"8e879fe7",7589:"dfa0be47",7591:"c8233ce9",7614:"81e5d43b",7622:"53fcfa72",7686:"4fcec9f9",7706:"c2a79e40",7806:"c02eb578",7835:"4c8036ed",7855:"a9ef30ef",7857:"b6c514d4",7883:"a6a68d8f",7884:"8429e7ef",7901:"a1d01f99",7922:"a031c0e5",7964:"29aed9a1",8062:"eec47b9d",8072:"ad35ac07",8085:"76021a6d",8089:"d536b13a",8115:"104ff3df",8143:"dca3a764",8145:"420580a8",8155:"383bdfc4",8161:"83c5fa9a",8217:"e968522c",8237:"1862f8b9",8241:"92fd55f2",8286:"9dfb26eb",8302:"55794970",8332:"fbb1e324",8340:"c2b9b5be",8350:"07df8a75",8365:"bada7f28",8366:"956b07be",8398:"66d2e47e",8431:"b96c4e7d",8435:"29ffda57",8447:"2ff2af5d",8458:"0c843383",8479:"6adda880",8517:"b35dd64a",8552:"bf1780a4",8561:"333e8ec9",8563:"58bcf697",8579:"64bc68f5",8639:"b8d91f16",8665:"a7a5b36a",8688:"8e959c7b",8689:"86ffb248",8723:"3bb8773b",8737:"ce7dad23",8776:"0ad26240",8787:"8e771f1e",8823:"e30c4236",8827:"2acc9927",8842:"9f25a3e2",8866:"36a772f0",8882:"286604fb",8885:"7a3d8d41",8898:"d002bcd8",8909:"ecb7ed03",8920:"7f82440c",8963:"790aecdd",8965:"f9244c07",8999:"422afb91",9039:"4c6b9189",9058:"ded8377f",9076:"a39344df",9104:"bbcb2345",9205:"4131aeb2",9252:"0d791a59",9260:"cf5f8140",9366:"a5646051",9391:"293f1a43",9404:"9fcc3d3e",9406:"064fd662",9416:"98443bf3",9417:"8d3fe10e",9449:"d6afa583",9487:"b04a8780",9489:"bcf2c80f",9507:"04cb7d4e",9511:"cb1e9f46",9554:"ed358e7b",9559:"f794af19",9647:"ebfd2437",9649:"c20d638c",9674:"7d9d9f0b",9677:"b1914af1",9695:"6ad8fbf3",9715:"f862902e",9716:"bf01d92e",9785:"681c69a2",9788:"28bd5e2f",9814:"f474f940",9891:"42c80fbd",9895:"b8e31ff2",9906:"cda3756d",9921:"ace3bf4d",9922:"5903443b",9928:"5989f5e0",9944:"e20735c8",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:"8cbcfceb",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",2788:"03cdfb68",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:"8146e5a8",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:"7983f5de",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:"63741303",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",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:"ddf1cdf8",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 Rs{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 Ni({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=xt(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:"9a7028df",67:"cfa5cd07",109:"4c9ec64b",119:"5c51d60a",195:"34d67d4f",201:"0f68dcf8",264:"a6c6e2f5",292:"774e60d0",316:"1f60ada6",337:"4827f840",354:"d4d139cf",410:"db62a157",479:"524f4c07",485:"7e1acaf5",508:"b9195cbe",518:"31291902",532:"bc3e8950",533:"2cc8ef79",547:"079ee10b",556:"8d53f108",559:"df5fe3e9",570:"ce8f8919",576:"51b0e13f",629:"44a1d9a5",643:"57291494",671:"4a609b8d",680:"fff5185e",700:"eac49f7f",737:"a31523e7",741:"ac5fd360",799:"2c3ced66",879:"379e70d4",895:"77a23185",900:"1b84d86e",906:"a93c4f23",921:"0f117dce",928:"c1deadda",981:"c1caf6fd",1006:"97dde79b",1043:"66cd59aa",1045:"25e63e76",1048:"74131a74",1070:"6b05ad97",1077:"c0c83726",1144:"c90eccaf",1154:"8cb80842",1158:"05141ffe",1211:"793e376e",1253:"4913da25",1257:"8c942674",1274:"5f6ea65a",1276:"8608fe86",1343:"351272a1",1423:"4806b9d4",1427:"9f4b4889",1450:"68d01f3f",1461:"c7afd7ff",1462:"fcf08abc",1470:"69c2a35e",1475:"3f7e872d",1477:"b6310709",1482:"52debedb",1512:"5580f350",1520:"a059b9fb",1545:"48748c8b",1578:"cf131154",1581:"e1ac767e",1582:"1424c3eb",1646:"e6e27b60",1651:"f3db55fe",1657:"86f854cd",1660:"f15d970e",1674:"087f0979",1678:"ef1e6b34",1713:"d927e4ca",1717:"b68c535e",1727:"b325cf86",1754:"871a01bb",1783:"cca7a8ae",1798:"a6d5eb7b",1799:"25c47273",1802:"9e65291b",1831:"43d5a4d9",1836:"843915b7",1855:"5c0b28e0",1880:"c6a6f678",1897:"b1c72970",1939:"d17967b6",1945:"6c9eefbf",1953:"5d4128b2",1962:"ba5131c0",1993:"095aa917",2011:"3bf92350",2045:"20fd4231",2085:"911d63b6",2099:"03cb843b",2102:"1d9384d2",2130:"b5dee9ba",2141:"ffcb1e53",2203:"a948674a",2216:"10e739ea",2240:"73ba2fd2",2249:"f4830452",2281:"623cd6b6",2300:"37cc5b84",2303:"6f6e0cc0",2307:"d8523ba1",2338:"a5fec938",2339:"1acc84e1",2386:"192e235c",2396:"ecdc9f45",2404:"e60dcfdc",2412:"ab0b00e3",2425:"f32ab87f",2443:"f78182af",2476:"7e7fcb51",2494:"68080a87",2501:"d5bec18e",2538:"de4a3723",2539:"79d2e78b",2548:"39d467f8",2570:"b8798ea4",2594:"e87d3761",2603:"7f334c91",2659:"fe88ec52",2707:"4ab8b71e",2788:"5dadb2ae",2806:"57bf5526",2819:"c375bd74",2823:"152a02c5",2829:"9e6c862a",2837:"54a82605",2862:"c83cd22d",2865:"93cc0240",2884:"63929e14",2969:"ab3357d7",2998:"e7089d34",3006:"9f444c82",3086:"ac24feda",3133:"9bf3f89c",3141:"94acbbfa",3157:"77e7f615",3183:"12da84f6",3198:"8e655451",3212:"289ce26c",3220:"2ec02fd0",3247:"a4abe51e",3260:"a000c34a",3276:"e8bbdcab",3317:"7e771f71",3391:"1b5e4ebd",3433:"8cfed2cc",3442:"8af3dde6",3447:"15c226ed",3451:"01cab97c",3509:"3824b1ea",3550:"3dc83156",3581:"2a12dfc5",3585:"b081c627",3667:"1ce4278f",3668:"50e945d0",3697:"481a10d9",3747:"3af8b1a4",3754:"588189ca",3777:"d5b0f2f1",3784:"765e39b3",3805:"9dbcb95e",3831:"9d882ed6",3862:"a8ffbe31",3873:"2cdc0615",3885:"f87f7f15",3910:"b0cab52a",3951:"93790f49",3987:"5cecd51b",4014:"27a8e97c",4017:"6390a59e",4030:"10a713c5",4048:"722b7a52",4056:"a91ce473",4058:"1b8a9ec4",4078:"eba3521b",4088:"236723f3",4093:"021fd4a3",4105:"54ee0238",4144:"ad223789",4164:"419a657c",4216:"20b80c8f",4217:"8d6ec674",4227:"3d7768d7",4259:"f6153731",4264:"d4ccd42e",4297:"020e2c18",4347:"ce21ef2e",4354:"140899b7",4360:"cf5efa52",4449:"9bae7741",4492:"f527b260",4496:"43a8016e",4498:"8cc444fe",4504:"352f033d",4514:"4def1e00",4520:"6d85e76a",4546:"99872034",4565:"55362dc4",4572:"046b7266",4599:"61def4cb",4610:"dc9c8f2b",4621:"5ba5f6d2",4628:"ece2c60c",4662:"cce5e02e",4685:"c33f1528",4715:"4fd94a64",4735:"357746c7",4736:"b381de6c",4741:"30c25f7f",4757:"ed008827",4766:"a8b85f6c",4770:"2a543447",4790:"619413e4",4795:"d3ec984d",4797:"a24e92db",4800:"93fa2f83",4850:"1edda4b7",4889:"02927fa0",4928:"9e3dcab8",4944:"ef75ed38",4973:"3c65b5e7",4994:"1d20b2e3",5022:"42104da0",5043:"819f8378",5048:"9c3a533b",5060:"85dafcc6",5096:"6eeb3201",5111:"a8b62699",5117:"4c3c2f22",5125:"dcd88ff4",5148:"279c0f10",5165:"bc17bdde",5176:"345fb97c",5177:"29bbc26c",5179:"d864046e",5186:"8c7d3f93",5230:"21c86728",5238:"717cff7d",5290:"5dabcdc2",5297:"e3a30b38",5307:"6542239c",5319:"b10fcf46",5321:"1163c84e",5330:"54837f49",5335:"8443a05f",5354:"7ae70604",5357:"5b46c6ae",5359:"325ca615",5382:"f8fbefcc",5402:"41fd92e7",5416:"454536b7",5434:"38b302a6",5466:"3c0cf573",5494:"d89549c4",5518:"eb3f825a",5549:"620b086a",5572:"7b67712f",5573:"b932ca81",5624:"24c5cb2d",5631:"e00d3d36",5650:"3b99d610",5679:"4a090bef",5694:"84bfe34e",5705:"2dab2809",5729:"f4bd13be",5764:"e0d7e586",5775:"5c5bd0af",5776:"2ff16d95",5786:"14be5919",5798:"60b4bb97",5800:"bc8fbff0",5816:"6dee88bd",5823:"cd3c2a33",5876:"5eded409",5888:"f4954129",5891:"8cd29dde",5894:"8310920f",5902:"3cb4d6f5",5911:"84a8d8dc",5915:"daef716d",5930:"cdc416cd",5972:"22f0589f",5989:"c947f3bd",5992:"104aefb0",6029:"1a2e158d",6034:"38e883cb",6045:"d268f87f",6047:"3ce45acd",6063:"b0a9ca0b",6069:"da765190",6080:"73c5cfad",6126:"99519171",6127:"c784043b",6170:"c0534f76",6185:"68c08970",6265:"8e46360f",6270:"78005963",6282:"f5f2025c",6328:"82518e83",6366:"de48b8af",6378:"7f3a946a",6411:"22c818a7",6434:"1797208f",6444:"3ce15985",6451:"45314ee6",6452:"9e892a16",6531:"621daf8b",6583:"771adf31",6587:"02a5b015",6634:"8d61fba5",6637:"774c1cdc",6651:"d9b62315",6682:"f750a0aa",6685:"d6884a5d",6729:"f2d79089",6741:"464eee07",6774:"59d4d618",6776:"a9290b9d",6784:"559431c1",6788:"c048606f",6789:"7b3e4d94",6796:"027689d9",6820:"9f2ac5eb",6882:"a62b6bd1",6904:"58ef1627",6913:"92021430",6963:"1ff41e79",7043:"a86ee064",7045:"19605972",7058:"ff13e368",7062:"c03e78ad",7084:"46ccce72",7099:"9716d012",7156:"e7466006",7178:"5ee36865",7182:"31e8ecb0",7224:"77bd0811",7242:"03c47a27",7260:"4494907d",7289:"07db1877",7322:"22c9739e",7323:"7a75cacf",7329:"d75967fc",7333:"04a3609a",7365:"1005464f",7395:"888976f7",7402:"d74b68e2",7460:"ce795324",7477:"8df28b7f",7482:"b6ff2610",7527:"ed088a10",7545:"28f50100",7560:"8e879fe7",7589:"dfa0be47",7591:"c8233ce9",7614:"81e5d43b",7622:"53fcfa72",7686:"4fcec9f9",7706:"c2a79e40",7806:"c02eb578",7835:"4c8036ed",7855:"a9ef30ef",7857:"b6c514d4",7883:"a6a68d8f",7884:"8429e7ef",7901:"a1d01f99",7922:"a031c0e5",7964:"29aed9a1",8062:"eec47b9d",8072:"ad35ac07",8085:"76021a6d",8089:"d536b13a",8115:"104ff3df",8143:"dca3a764",8145:"420580a8",8155:"383bdfc4",8161:"83c5fa9a",8217:"e968522c",8237:"1862f8b9",8241:"92fd55f2",8286:"9dfb26eb",8302:"55794970",8332:"fbb1e324",8340:"c2b9b5be",8350:"07df8a75",8365:"bada7f28",8366:"956b07be",8398:"66d2e47e",8431:"b96c4e7d",8435:"29ffda57",8447:"2ff2af5d",8458:"0c843383",8479:"6adda880",8517:"b35dd64a",8552:"bf1780a4",8561:"333e8ec9",8563:"58bcf697",8579:"64bc68f5",8639:"b8d91f16",8665:"a7a5b36a",8688:"8e959c7b",8689:"86ffb248",8723:"3bb8773b",8737:"ce7dad23",8776:"0ad26240",8787:"8e771f1e",8823:"e30c4236",8827:"2acc9927",8842:"9f25a3e2",8866:"36a772f0",8882:"286604fb",8885:"7a3d8d41",8898:"d002bcd8",8909:"ecb7ed03",8920:"7f82440c",8963:"790aecdd",8965:"f9244c07",8999:"422afb91",9039:"4c6b9189",9058:"ded8377f",9076:"a39344df",9104:"bbcb2345",9205:"4131aeb2",9252:"0d791a59",9260:"cf5f8140",9366:"a5646051",9391:"293f1a43",9404:"9fcc3d3e",9406:"064fd662",9416:"98443bf3",9417:"8d3fe10e",9449:"d6afa583",9487:"b04a8780",9489:"bcf2c80f",9507:"04cb7d4e",9511:"cb1e9f46",9554:"ed358e7b",9559:"f794af19",9647:"ebfd2437",9649:"c20d638c",9674:"7d9d9f0b",9677:"b1914af1",9695:"6ad8fbf3",9715:"f862902e",9716:"bf01d92e",9785:"681c69a2",9788:"28bd5e2f",9814:"f474f940",9891:"42c80fbd",9895:"b8e31ff2",9906:"cda3756d",9921:"ace3bf4d",9922:"5903443b",9928:"5989f5e0",9944:"e20735c8",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:"8cbcfceb",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",2788:"03cdfb68",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:"8146e5a8",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:"7983f5de",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:"63741303",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",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:"ddf1cdf8",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(ks,Yu){return $e.createElement("link",{key:Yu,rel:"shortcut icon",href:ks})}),(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(ks){return $e.createElement("meta",{key:ks.name,name:ks.name,property:ks.property,content:ks.content})}),ca==null||(Ea=ca.links)===null||Ea===void 0?void 0:Ea.map(function(ks,Yu){return $e.createElement("link",(0,dc.Z)({key:Yu},ks))}),ca==null||(ya=ca.styles)===null||ya===void 0?void 0:ya.map(function(ks,Yu){var al=zf(ks),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(ks,Yu){var al=Du(ks),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(ks,Yu){var al=Du(ks),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(ks){return ti[ks].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,ks={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,ks,Fn.hasChildren&&$e.createElement(yu.j3,null))):$e.createElement(ca,ks,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(ks){la(ks)}},ya=ca=>{try{Ds(Xi.throw(ca))}catch(ks){la(ks)}},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(9058).then(__webpack_require__.bind(__webpack_require__,69058))),2:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),3:$e.lazy(()=>Promise.all([__webpack_require__.e(2998),__webpack_require__.e(2099)]).then(__webpack_require__.bind(__webpack_require__,16454))),4:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2998),__webpack_require__.e(3260)]).then(__webpack_require__.bind(__webpack_require__,9105))),5:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2998),__webpack_require__.e(3260)]).then(__webpack_require__.bind(__webpack_require__,9105))),6:$e.lazy(()=>__webpack_require__.e(3247).then(__webpack_require__.bind(__webpack_require__,7068))),7:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2998),__webpack_require__.e(5989),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,17415))),8:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2998),__webpack_require__.e(5989),__webpack_require__.e(1545)]).then(__webpack_require__.bind(__webpack_require__,39305))),9:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),10:$e.lazy(()=>__webpack_require__.e(9906).then(__webpack_require__.bind(__webpack_require__,59605))),11:$e.lazy(()=>__webpack_require__.e(5572).then(__webpack_require__.bind(__webpack_require__,89785))),12:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6080)]).then(__webpack_require__.bind(__webpack_require__,21372))),13:$e.lazy(()=>__webpack_require__.e(7901).then(__webpack_require__.bind(__webpack_require__,15821))),14:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6411),__webpack_require__.e(2281)]).then(__webpack_require__.bind(__webpack_require__,66921))),15:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1651)]).then(__webpack_require__.bind(__webpack_require__,63424))),16:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6080)]).then(__webpack_require__.bind(__webpack_require__,21372))),17:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2998),__webpack_require__.e(5989),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,17415))),18:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2998),__webpack_require__.e(5989),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,17415))),19:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),20:$e.lazy(()=>__webpack_require__.e(6789).then(__webpack_require__.bind(__webpack_require__,96124))),21:$e.lazy(()=>__webpack_require__.e(9921).then(__webpack_require__.bind(__webpack_require__,68934))),22:$e.lazy(()=>__webpack_require__.e(1674).then(__webpack_require__.bind(__webpack_require__,30381))),23:$e.lazy(()=>__webpack_require__.e(6685).then(__webpack_require__.bind(__webpack_require__,87927))),24:$e.lazy(()=>__webpack_require__.e(7323).then(__webpack_require__.bind(__webpack_require__,77015))),25:$e.lazy(()=>__webpack_require__.e(7323).then(__webpack_require__.bind(__webpack_require__,77015))),26:$e.lazy(()=>__webpack_require__.e(6882).then(__webpack_require__.bind(__webpack_require__,98311))),27:$e.lazy(()=>__webpack_require__.e(6882).then(__webpack_require__.bind(__webpack_require__,98311))),28:$e.lazy(()=>__webpack_require__.e(109).then(__webpack_require__.bind(__webpack_require__,5433))),29:$e.lazy(()=>__webpack_require__.e(737).then(__webpack_require__.bind(__webpack_require__,95464))),30:$e.lazy(()=>__webpack_require__.e(3391).then(__webpack_require__.bind(__webpack_require__,71726))),31:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6411),__webpack_require__.e(5694)]).then(__webpack_require__.bind(__webpack_require__,82844))),32:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6411),__webpack_require__.e(5330)]).then(__webpack_require__.bind(__webpack_require__,97132))),33:$e.lazy(()=>Promise.all([__webpack_require__.e(2998),__webpack_require__.e(2303)]).then(__webpack_require__.bind(__webpack_require__,25904))),34:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(1450)]).then(__webpack_require__.bind(__webpack_require__,79743))),35:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(195)]).then(__webpack_require__.bind(__webpack_require__,89644))),36:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(3668)]).then(__webpack_require__.bind(__webpack_require__,40533))),37:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2998),__webpack_require__.e(2338)]).then(__webpack_require__.bind(__webpack_require__,3674))),38:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(4662)]).then(__webpack_require__.bind(__webpack_require__,87258))),39:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(8072)]).then(__webpack_require__.bind(__webpack_require__,67130))),40:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(479)]).then(__webpack_require__.bind(__webpack_require__,68010))),41:$e.lazy(()=>__webpack_require__.e(5297).then(__webpack_require__.bind(__webpack_require__,9445))),42:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6411),__webpack_require__.e(4164)]).then(__webpack_require__.bind(__webpack_require__,30640))),43:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2998),__webpack_require__.e(5989),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,17415))),44:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(1945),__webpack_require__.e(4889)]).then(__webpack_require__.bind(__webpack_require__,78130))),45:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6411),__webpack_require__.e(1945),__webpack_require__.e(4105)]).then(__webpack_require__.bind(__webpack_require__,89823))),46:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(7883)]).then(__webpack_require__.bind(__webpack_require__,3918))),47:$e.lazy(()=>__webpack_require__.e(7482).then(__webpack_require__.bind(__webpack_require__,57739))),48:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,51230))),49:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(337)]).then(__webpack_require__.bind(__webpack_require__,33236))),50:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2998),__webpack_require__.e(292)]).then(__webpack_require__.bind(__webpack_require__,29849))),51:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2998),__webpack_require__.e(292)]).then(__webpack_require__.bind(__webpack_require__,29849))),52:$e.lazy(()=>__webpack_require__.e(5992).then(__webpack_require__.bind(__webpack_require__,76225))),53:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6411),__webpack_require__.e(2998),__webpack_require__.e(1945),__webpack_require__.e(8085)]).then(__webpack_require__.bind(__webpack_require__,11183))),54:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6411),__webpack_require__.e(2998),__webpack_require__.e(1945),__webpack_require__.e(8085)]).then(__webpack_require__.bind(__webpack_require__,11183))),55:$e.lazy(()=>__webpack_require__.e(8431).then(__webpack_require__.bind(__webpack_require__,51210))),56:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5902)]).then(__webpack_require__.bind(__webpack_require__,20626))),57:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(3433)]).then(__webpack_require__.bind(__webpack_require__,15777))),58:$e.lazy(()=>__webpack_require__.e(5125).then(__webpack_require__.bind(__webpack_require__,75830))),59:$e.lazy(()=>__webpack_require__.e(5125).then(__webpack_require__.bind(__webpack_require__,75830))),60:$e.lazy(()=>__webpack_require__.e(921).then(__webpack_require__.bind(__webpack_require__,79274))),61:$e.lazy(()=>__webpack_require__.e(921).then(__webpack_require__.bind(__webpack_require__,79274))),62:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(1578)]).then(__webpack_require__.bind(__webpack_require__,74975))),63:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(3317)]).then(__webpack_require__.bind(__webpack_require__,90863))),64:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(1482)]).then(__webpack_require__.bind(__webpack_require__,95181))),65:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(4795)]).then(__webpack_require__.bind(__webpack_require__,34342))),66:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(26)]).then(__webpack_require__.bind(__webpack_require__,20144))),67:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(8882)]).then(__webpack_require__.bind(__webpack_require__,79553))),68:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5888)]).then(__webpack_require__.bind(__webpack_require__,11851))),69:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(9715)]).then(__webpack_require__.bind(__webpack_require__,3794))),70:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(7045)]).then(__webpack_require__.bind(__webpack_require__,91377))),71:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(1211)]).then(__webpack_require__.bind(__webpack_require__,63279))),72:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(1582)]).then(__webpack_require__.bind(__webpack_require__,60682))),73:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6729)]).then(__webpack_require__.bind(__webpack_require__,317))),74:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(9695)]).then(__webpack_require__.bind(__webpack_require__,38133))),75:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(8723)]).then(__webpack_require__.bind(__webpack_require__,82165))),76:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7622)]).then(__webpack_require__.bind(__webpack_require__,85110))),77:$e.lazy(()=>__webpack_require__.e(5148).then(__webpack_require__.bind(__webpack_require__,78016))),78:$e.lazy(()=>__webpack_require__.e(643).then(__webpack_require__.bind(__webpack_require__,76486))),79:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(3442)]).then(__webpack_require__.bind(__webpack_require__,9789))),80:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2102)]).then(__webpack_require__.bind(__webpack_require__,61742))),81:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2425)]).then(__webpack_require__.bind(__webpack_require__,12022))),82:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2404)]).then(__webpack_require__.bind(__webpack_require__,57032))),83:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(9785)]).then(__webpack_require__.bind(__webpack_require__,35590))),84:$e.lazy(()=>__webpack_require__.e(7901).then(__webpack_require__.bind(__webpack_require__,15821))),85:$e.lazy(()=>__webpack_require__.e(2819).then(__webpack_require__.bind(__webpack_require__,4010))),86:$e.lazy(()=>__webpack_require__.e(1512).then(__webpack_require__.bind(__webpack_require__,19087))),87:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7395)]).then(__webpack_require__.bind(__webpack_require__,71040))),88:$e.lazy(()=>__webpack_require__.e(3585).then(__webpack_require__.bind(__webpack_require__,82505))),89:$e.lazy(()=>__webpack_require__.e(6963).then(__webpack_require__.bind(__webpack_require__,33498))),90:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(4030)]).then(__webpack_require__.bind(__webpack_require__,62360))),91:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(4030)]).then(__webpack_require__.bind(__webpack_require__,62360))),92:$e.lazy(()=>__webpack_require__.e(6127).then(__webpack_require__.bind(__webpack_require__,11207))),93:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(3951)]).then(__webpack_require__.bind(__webpack_require__,56322))),94:$e.lazy(()=>__webpack_require__.e(1048).then(__webpack_require__.bind(__webpack_require__,31325))),95:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2884)]).then(__webpack_require__.bind(__webpack_require__,14219))),96:$e.lazy(()=>__webpack_require__.e(4770).then(__webpack_require__.bind(__webpack_require__,65168))),97:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2603)]).then(__webpack_require__.bind(__webpack_require__,51774))),98:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(4216)]).then(__webpack_require__.bind(__webpack_require__,59352))),99:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5319)]).then(__webpack_require__.bind(__webpack_require__,91233))),100:$e.lazy(()=>__webpack_require__.e(895).then(__webpack_require__.bind(__webpack_require__,92948))),101:$e.lazy(()=>__webpack_require__.e(7322).then(__webpack_require__.bind(__webpack_require__,1444))),102:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5930),__webpack_require__.e(2203)]).then(__webpack_require__.bind(__webpack_require__,39393))),103:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5930),__webpack_require__.e(2203)]).then(__webpack_require__.bind(__webpack_require__,39393))),104:$e.lazy(()=>__webpack_require__.e(5048).then(__webpack_require__.bind(__webpack_require__,1230))),105:$e.lazy(()=>__webpack_require__.e(1043).then(__webpack_require__.bind(__webpack_require__,77199))),106:$e.lazy(()=>__webpack_require__.e(1043).then(__webpack_require__.bind(__webpack_require__,77199))),107:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6776)]).then(__webpack_require__.bind(__webpack_require__,31638))),108:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6776)]).then(__webpack_require__.bind(__webpack_require__,31638))),109:$e.lazy(()=>__webpack_require__.e(4297).then(__webpack_require__.bind(__webpack_require__,17278))),110:$e.lazy(()=>__webpack_require__.e(4297).then(__webpack_require__.bind(__webpack_require__,17278))),111:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5930),__webpack_require__.e(8458)]).then(__webpack_require__.bind(__webpack_require__,32673))),112:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5930),__webpack_require__.e(8458)]).then(__webpack_require__.bind(__webpack_require__,32673))),113:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5930),__webpack_require__.e(1798)]).then(__webpack_require__.bind(__webpack_require__,20491))),114:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5930),__webpack_require__.e(1798)]).then(__webpack_require__.bind(__webpack_require__,20491))),115:$e.lazy(()=>__webpack_require__.e(5177).then(__webpack_require__.bind(__webpack_require__,82785))),116:$e.lazy(()=>__webpack_require__.e(201).then(__webpack_require__.bind(__webpack_require__,89037))),117:$e.lazy(()=>__webpack_require__.e(1477).then(__webpack_require__.bind(__webpack_require__,41820))),118:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5930),__webpack_require__.e(6282)]).then(__webpack_require__.bind(__webpack_require__,69164))),119:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5930),__webpack_require__.e(6282)]).then(__webpack_require__.bind(__webpack_require__,69164))),120:$e.lazy(()=>__webpack_require__.e(1962).then(__webpack_require__.bind(__webpack_require__,51719))),121:$e.lazy(()=>__webpack_require__.e(4928).then(__webpack_require__.bind(__webpack_require__,22338))),122:$e.lazy(()=>__webpack_require__.e(1257).then(__webpack_require__.bind(__webpack_require__,76904))),123:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1802),__webpack_require__.e(7329)]).then(__webpack_require__.bind(__webpack_require__,17423))),124:$e.lazy(()=>__webpack_require__.e(8340).then(__webpack_require__.bind(__webpack_require__,95808))),125:$e.lazy(()=>__webpack_require__.e(4093).then(__webpack_require__.bind(__webpack_require__,32270))),126:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6185)]).then(__webpack_require__.bind(__webpack_require__,21913))),127:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6185)]).then(__webpack_require__.bind(__webpack_require__,21913))),128:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(8827)]).then(__webpack_require__.bind(__webpack_require__,56041))),129:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(8827)]).then(__webpack_require__.bind(__webpack_require__,56041))),130:$e.lazy(()=>__webpack_require__.e(1678).then(__webpack_require__.bind(__webpack_require__,68703))),131:$e.lazy(()=>__webpack_require__.e(1678).then(__webpack_require__.bind(__webpack_require__,68703))),132:$e.lazy(()=>__webpack_require__.e(1754).then(__webpack_require__.bind(__webpack_require__,36646))),133:$e.lazy(()=>__webpack_require__.e(1754).then(__webpack_require__.bind(__webpack_require__,36646))),134:$e.lazy(()=>__webpack_require__.e(4217).then(__webpack_require__.bind(__webpack_require__,9187))),135:$e.lazy(()=>__webpack_require__.e(3220).then(__webpack_require__.bind(__webpack_require__,68850))),136:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(533)]).then(__webpack_require__.bind(__webpack_require__,13124))),137:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5798)]).then(__webpack_require__.bind(__webpack_require__,66599))),138:$e.lazy(()=>__webpack_require__.e(5466).then(__webpack_require__.bind(__webpack_require__,81062))),139:$e.lazy(()=>__webpack_require__.e(5466).then(__webpack_require__.bind(__webpack_require__,81062))),140:$e.lazy(()=>__webpack_require__.e(9944).then(__webpack_require__.bind(__webpack_require__,21930))),141:$e.lazy(()=>__webpack_require__.e(9406).then(__webpack_require__.bind(__webpack_require__,78430))),142:$e.lazy(()=>__webpack_require__.e(9406).then(__webpack_require__.bind(__webpack_require__,78430))),143:$e.lazy(()=>__webpack_require__.e(9039).then(__webpack_require__.bind(__webpack_require__,95212))),144:$e.lazy(()=>__webpack_require__.e(9039).then(__webpack_require__.bind(__webpack_require__,95212))),145:$e.lazy(()=>__webpack_require__.e(7922).then(__webpack_require__.bind(__webpack_require__,77724))),146:$e.lazy(()=>__webpack_require__.e(1727).then(__webpack_require__.bind(__webpack_require__,3285))),147:$e.lazy(()=>__webpack_require__.e(1727).then(__webpack_require__.bind(__webpack_require__,3285))),148:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1427)]).then(__webpack_require__.bind(__webpack_require__,37102))),149:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1427)]).then(__webpack_require__.bind(__webpack_require__,37102))),150:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8689)]).then(__webpack_require__.bind(__webpack_require__,57794))),151:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7806)]).then(__webpack_require__.bind(__webpack_require__,42896))),152:$e.lazy(()=>__webpack_require__.e(3276).then(__webpack_require__.bind(__webpack_require__,62270))),153:$e.lazy(()=>__webpack_require__.e(8885).then(__webpack_require__.bind(__webpack_require__,32946))),154:$e.lazy(()=>__webpack_require__.e(3451).then(__webpack_require__.bind(__webpack_require__,32824))),155:$e.lazy(()=>__webpack_require__.e(9922).then(__webpack_require__.bind(__webpack_require__,96765))),156:$e.lazy(()=>__webpack_require__.e(4572).then(__webpack_require__.bind(__webpack_require__,7075))),157:$e.lazy(()=>__webpack_require__.e(4017).then(__webpack_require__.bind(__webpack_require__,76463))),158:$e.lazy(()=>__webpack_require__.e(5518).then(__webpack_require__.bind(__webpack_require__,45390))),159:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5823)]).then(__webpack_require__.bind(__webpack_require__,57904))),160:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4944)]).then(__webpack_require__.bind(__webpack_require__,95958))),161:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),162:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(3667),__webpack_require__.e(7099)]).then(__webpack_require__.bind(__webpack_require__,30298))),163:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(3667),__webpack_require__.e(7099)]).then(__webpack_require__.bind(__webpack_require__,30298))),164:$e.lazy(()=>__webpack_require__.e(4449).then(__webpack_require__.bind(__webpack_require__,5106))),165:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(3667),__webpack_require__.e(7099)]).then(__webpack_require__.bind(__webpack_require__,30298))),166:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2085),__webpack_require__.e(2570)]).then(__webpack_require__.bind(__webpack_require__,53465))),167:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2085),__webpack_require__.e(2570)]).then(__webpack_require__.bind(__webpack_require__,53465))),168:$e.lazy(()=>__webpack_require__.e(8787).then(__webpack_require__.bind(__webpack_require__,28671))),169:$e.lazy(()=>__webpack_require__.e(5650).then(__webpack_require__.bind(__webpack_require__,22640))),170:$e.lazy(()=>__webpack_require__.e(1799).then(__webpack_require__.bind(__webpack_require__,31586))),171:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2085),__webpack_require__.e(8579)]).then(__webpack_require__.bind(__webpack_require__,53138))),172:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),173:$e.lazy(()=>__webpack_require__.e(8639).then(__webpack_require__.bind(__webpack_require__,19373))),174:$e.lazy(()=>__webpack_require__.e(4048).then(__webpack_require__.bind(__webpack_require__,94915))),175:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(4264)]).then(__webpack_require__.bind(__webpack_require__,1922))),176:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(4264)]).then(__webpack_require__.bind(__webpack_require__,1922))),177:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(508)]).then(__webpack_require__.bind(__webpack_require__,43678))),178:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),179:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2998),__webpack_require__.e(5989),__webpack_require__.e(7835)]).then(__webpack_require__.bind(__webpack_require__,15079))),180:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2998),__webpack_require__.e(1953)]).then(__webpack_require__.bind(__webpack_require__,14238))),181:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2998),__webpack_require__.e(1953)]).then(__webpack_require__.bind(__webpack_require__,14238))),182:$e.lazy(()=>__webpack_require__.e(1581).then(__webpack_require__.bind(__webpack_require__,88897))),183:$e.lazy(()=>__webpack_require__.e(4144).then(__webpack_require__.bind(__webpack_require__,82408))),184:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2998),__webpack_require__.e(5989),__webpack_require__.e(4599)]).then(__webpack_require__.bind(__webpack_require__,17415))),185:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),186:$e.lazy(()=>__webpack_require__.e(8552).then(__webpack_require__.bind(__webpack_require__,37466))),187:$e.lazy(()=>__webpack_require__.e(7884).then(__webpack_require__.bind(__webpack_require__,6677))),188:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5307)]).then(__webpack_require__.bind(__webpack_require__,75791))),189:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5307)]).then(__webpack_require__.bind(__webpack_require__,75791))),190:$e.lazy(()=>__webpack_require__.e(5549).then(__webpack_require__.bind(__webpack_require__,19755))),191:$e.lazy(()=>__webpack_require__.e(9674).then(__webpack_require__.bind(__webpack_require__,28833))),192:$e.lazy(()=>__webpack_require__.e(5573).then(__webpack_require__.bind(__webpack_require__,35011))),193:$e.lazy(()=>__webpack_require__.e(2141).then(__webpack_require__.bind(__webpack_require__,78710))),194:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6411),__webpack_require__.e(4735),__webpack_require__.e(9511)]).then(__webpack_require__.bind(__webpack_require__,11806))),195:$e.lazy(()=>__webpack_require__.e(6328).then(__webpack_require__.bind(__webpack_require__,23284))),196:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(7857)]).then(__webpack_require__.bind(__webpack_require__,39233))),197:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2998),__webpack_require__.e(1657)]).then(__webpack_require__.bind(__webpack_require__,62998))),198:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2998),__webpack_require__.e(1657)]).then(__webpack_require__.bind(__webpack_require__,62998))),199:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2998),__webpack_require__.e(4498)]).then(__webpack_require__.bind(__webpack_require__,71154))),200:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2998),__webpack_require__.e(4498)]).then(__webpack_require__.bind(__webpack_require__,71154))),201:$e.lazy(()=>__webpack_require__.e(9205).then(__webpack_require__.bind(__webpack_require__,74590))),202:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(1423)]).then(__webpack_require__.bind(__webpack_require__,93937))),203:$e.lazy(()=>__webpack_require__.e(7614).then(__webpack_require__.bind(__webpack_require__,44422))),204:$e.lazy(()=>__webpack_require__.e(9449).then(__webpack_require__.bind(__webpack_require__,67941))),205:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9814)]).then(__webpack_require__.bind(__webpack_require__,29390))),206:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6637)]).then(__webpack_require__.bind(__webpack_require__,84270))),207:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6637)]).then(__webpack_require__.bind(__webpack_require__,84270))),208:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(3581)]).then(__webpack_require__.bind(__webpack_require__,67735))),209:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1993)]).then(__webpack_require__.bind(__webpack_require__,73693))),210:$e.lazy(()=>Promise.all([__webpack_require__.e(4735),__webpack_require__.e(1475)]).then(__webpack_require__.bind(__webpack_require__,58411))),211:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6411),__webpack_require__.e(8965)]).then(__webpack_require__.bind(__webpack_require__,47810))),212:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6451)]).then(__webpack_require__.bind(__webpack_require__,44947))),213:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6411),__webpack_require__.e(518)]).then(__webpack_require__.bind(__webpack_require__,24877))),214:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5894)]).then(__webpack_require__.bind(__webpack_require__,27335))),215:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5894)]).then(__webpack_require__.bind(__webpack_require__,27335))),216:$e.lazy(()=>__webpack_require__.e(2130).then(__webpack_require__.bind(__webpack_require__,96365))),217:$e.lazy(()=>__webpack_require__.e(2130).then(__webpack_require__.bind(__webpack_require__,96365))),218:$e.lazy(()=>__webpack_require__.e(5230).then(__webpack_require__.bind(__webpack_require__,3280))),219:$e.lazy(()=>__webpack_require__.e(5230).then(__webpack_require__.bind(__webpack_require__,3280))),220:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,59222))),221:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8688)]).then(__webpack_require__.bind(__webpack_require__,59222))),222:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5096)]).then(__webpack_require__.bind(__webpack_require__,34291))),223:$e.lazy(()=>__webpack_require__.e(3086).then(__webpack_require__.bind(__webpack_require__,36574))),224:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(9417)]).then(__webpack_require__.bind(__webpack_require__,62273))),225:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),226:$e.lazy(()=>__webpack_require__.e(5176).then(__webpack_require__.bind(__webpack_require__,64379))),227:$e.lazy(()=>__webpack_require__.e(6587).then(__webpack_require__.bind(__webpack_require__,93816))),228:$e.lazy(()=>__webpack_require__.e(9891).then(__webpack_require__.bind(__webpack_require__,36830))),229:$e.lazy(()=>__webpack_require__.e(8062).then(__webpack_require__.bind(__webpack_require__,62256))),230:$e.lazy(()=>__webpack_require__.e(5402).then(__webpack_require__.bind(__webpack_require__,24955))),231:$e.lazy(()=>__webpack_require__.e(5402).then(__webpack_require__.bind(__webpack_require__,24955))),232:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6820)]).then(__webpack_require__.bind(__webpack_require__,35618))),233:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(8517)]).then(__webpack_require__.bind(__webpack_require__,78860))),234:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(7043)]).then(__webpack_require__.bind(__webpack_require__,10382))),235:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2806)]).then(__webpack_require__.bind(__webpack_require__,91600))),236:$e.lazy(()=>__webpack_require__.e(5043).then(__webpack_require__.bind(__webpack_require__,78957))),237:$e.lazy(()=>__webpack_require__.e(799).then(__webpack_require__.bind(__webpack_require__,39235))),238:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(3157)]).then(__webpack_require__.bind(__webpack_require__,51923))),239:$e.lazy(()=>__webpack_require__.e(8332).then(__webpack_require__.bind(__webpack_require__,44321))),240:$e.lazy(()=>__webpack_require__.e(6583).then(__webpack_require__.bind(__webpack_require__,77058))),241:$e.lazy(()=>__webpack_require__.e(8217).then(__webpack_require__.bind(__webpack_require__,55831))),242:$e.lazy(()=>__webpack_require__.e(879).then(__webpack_require__.bind(__webpack_require__,35083))),243:$e.lazy(()=>__webpack_require__.e(5776).then(__webpack_require__.bind(__webpack_require__,31393))),244:$e.lazy(()=>__webpack_require__.e(906).then(__webpack_require__.bind(__webpack_require__,85401))),245:$e.lazy(()=>__webpack_require__.e(900).then(__webpack_require__.bind(__webpack_require__,41315))),246:$e.lazy(()=>__webpack_require__.e(6682).then(__webpack_require__.bind(__webpack_require__,94274))),247:$e.lazy(()=>__webpack_require__.e(8115).then(__webpack_require__.bind(__webpack_require__,4199))),248:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2659)]).then(__webpack_require__.bind(__webpack_require__,35205))),249:$e.lazy(()=>__webpack_require__.e(4610).then(__webpack_require__.bind(__webpack_require__,21915))),250:$e.lazy(()=>__webpack_require__.e(8479).then(__webpack_require__.bind(__webpack_require__,87942))),251:$e.lazy(()=>__webpack_require__.e(5800).then(__webpack_require__.bind(__webpack_require__,10302))),252:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2862)]).then(__webpack_require__.bind(__webpack_require__,58388))),253:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(8286)]).then(__webpack_require__.bind(__webpack_require__,50963))),254:$e.lazy(()=>__webpack_require__.e(5117).then(__webpack_require__.bind(__webpack_require__,59837))),255:$e.lazy(()=>__webpack_require__.e(7402).then(__webpack_require__.bind(__webpack_require__,10371))),256:$e.lazy(()=>__webpack_require__.e(1897).then(__webpack_require__.bind(__webpack_require__,88680))),257:$e.lazy(()=>__webpack_require__.e(8145).then(__webpack_require__.bind(__webpack_require__,41246))),258:$e.lazy(()=>__webpack_require__.e(119).then(__webpack_require__.bind(__webpack_require__,30611))),259:$e.lazy(()=>__webpack_require__.e(4736).then(__webpack_require__.bind(__webpack_require__,43406))),260:$e.lazy(()=>__webpack_require__.e(2412).then(__webpack_require__.bind(__webpack_require__,46957))),261:$e.lazy(()=>__webpack_require__.e(2240).then(__webpack_require__.bind(__webpack_require__,57860))),262:$e.lazy(()=>__webpack_require__.e(5165).then(__webpack_require__.bind(__webpack_require__,84165))),263:$e.lazy(()=>__webpack_require__.e(3831).then(__webpack_require__.bind(__webpack_require__,51817))),264:$e.lazy(()=>__webpack_require__.e(2396).then(__webpack_require__.bind(__webpack_require__,57738))),265:$e.lazy(()=>__webpack_require__.e(7855).then(__webpack_require__.bind(__webpack_require__,60870))),266:$e.lazy(()=>__webpack_require__.e(9507).then(__webpack_require__.bind(__webpack_require__,72635))),267:$e.lazy(()=>__webpack_require__.e(1343).then(__webpack_require__.bind(__webpack_require__,58431))),268:$e.lazy(()=>__webpack_require__.e(9058).then(__webpack_require__.bind(__webpack_require__,69058))),269:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),270:$e.lazy(()=>__webpack_require__.e(9647).then(__webpack_require__.bind(__webpack_require__,61343))),271:$e.lazy(()=>__webpack_require__.e(485).then(__webpack_require__.bind(__webpack_require__,23978))),272:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(4741)]).then(__webpack_require__.bind(__webpack_require__,96853))),273:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(4741)]).then(__webpack_require__.bind(__webpack_require__,96853))),274:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(4994)]).then(__webpack_require__.bind(__webpack_require__,99667))),275:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(4994)]).then(__webpack_require__.bind(__webpack_require__,99667))),276:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(7460)]).then(__webpack_require__.bind(__webpack_require__,27341))),277:$e.lazy(()=>__webpack_require__.e(9716).then(__webpack_require__.bind(__webpack_require__,42928))),278:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6913)]).then(__webpack_require__.bind(__webpack_require__,41784))),279:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6913)]).then(__webpack_require__.bind(__webpack_require__,41784))),280:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),281:$e.lazy(()=>__webpack_require__.e(3006).then(__webpack_require__.bind(__webpack_require__,5699))),282:$e.lazy(()=>__webpack_require__.e(2045).then(__webpack_require__.bind(__webpack_require__,38920))),283:$e.lazy(()=>__webpack_require__.e(1520).then(__webpack_require__.bind(__webpack_require__,15585))),284:$e.lazy(()=>__webpack_require__.e(9649).then(__webpack_require__.bind(__webpack_require__,64021))),285:$e.lazy(()=>__webpack_require__.e(4546).then(__webpack_require__.bind(__webpack_require__,48509))),286:$e.lazy(()=>__webpack_require__.e(5357).then(__webpack_require__.bind(__webpack_require__,44167))),287:$e.lazy(()=>__webpack_require__.e(8665).then(__webpack_require__.bind(__webpack_require__,74365))),288:$e.lazy(()=>__webpack_require__.e(3183).then(__webpack_require__.bind(__webpack_require__,26217))),289:$e.lazy(()=>__webpack_require__.e(4800).then(__webpack_require__.bind(__webpack_require__,70990))),290:$e.lazy(()=>__webpack_require__.e(9489).then(__webpack_require__.bind(__webpack_require__,88115))),291:$e.lazy(()=>__webpack_require__.e(9391).then(__webpack_require__.bind(__webpack_require__,53203))),292:$e.lazy(()=>__webpack_require__.e(5335).then(__webpack_require__.bind(__webpack_require__,71270))),293:$e.lazy(()=>__webpack_require__.e(2823).then(__webpack_require__.bind(__webpack_require__,65362))),294:$e.lazy(()=>__webpack_require__.e(4973).then(__webpack_require__.bind(__webpack_require__,47498))),295:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(6651)]).then(__webpack_require__.bind(__webpack_require__,19219))),296:$e.lazy(()=>__webpack_require__.e(6741).then(__webpack_require__.bind(__webpack_require__,68983))),297:$e.lazy(()=>__webpack_require__.e(5775).then(__webpack_require__.bind(__webpack_require__,41264))),298:$e.lazy(()=>__webpack_require__.e(2548).then(__webpack_require__.bind(__webpack_require__,84388))),299:$e.lazy(()=>__webpack_require__.e(9058).then(__webpack_require__.bind(__webpack_require__,69058))),300:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),301:$e.lazy(()=>__webpack_require__.e(6634).then(__webpack_require__.bind(__webpack_require__,24022))),302:$e.lazy(()=>__webpack_require__.e(680).then(__webpack_require__.bind(__webpack_require__,80168))),303:$e.lazy(()=>__webpack_require__.e(6366).then(__webpack_require__.bind(__webpack_require__,97801))),304:$e.lazy(()=>__webpack_require__.e(6452).then(__webpack_require__.bind(__webpack_require__,86468))),305:$e.lazy(()=>__webpack_require__.e(1070).then(__webpack_require__.bind(__webpack_require__,58351))),306:$e.lazy(()=>__webpack_require__.e(7242).then(__webpack_require__.bind(__webpack_require__,28728))),307:$e.lazy(()=>__webpack_require__.e(2707).then(__webpack_require__.bind(__webpack_require__,35001))),308:$e.lazy(()=>__webpack_require__.e(2865).then(__webpack_require__.bind(__webpack_require__,46063))),309:$e.lazy(()=>__webpack_require__.e(6784).then(__webpack_require__.bind(__webpack_require__,91403))),310:$e.lazy(()=>__webpack_require__.e(6784).then(__webpack_require__.bind(__webpack_require__,91403))),311:$e.lazy(()=>__webpack_require__.e(3141).then(__webpack_require__.bind(__webpack_require__,50282))),312:$e.lazy(()=>__webpack_require__.e(9058).then(__webpack_require__.bind(__webpack_require__,69058))),313:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6411),__webpack_require__.e(2998),__webpack_require__.e(7289)]).then(__webpack_require__.bind(__webpack_require__,83687))),314:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2998),__webpack_require__.e(700)]).then(__webpack_require__.bind(__webpack_require__,33759))),315:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6411),__webpack_require__.e(2998),__webpack_require__.e(7289)]).then(__webpack_require__.bind(__webpack_require__,83687))),316:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2998),__webpack_require__.e(700)]).then(__webpack_require__.bind(__webpack_require__,33759))),317:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6411),__webpack_require__.e(2998),__webpack_require__.e(7289)]).then(__webpack_require__.bind(__webpack_require__,83687))),318:$e.lazy(()=>__webpack_require__.e(9058).then(__webpack_require__.bind(__webpack_require__,69058))),319:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(7527)]).then(__webpack_require__.bind(__webpack_require__,95412))),320:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6270)]).then(__webpack_require__.bind(__webpack_require__,74581))),321:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),322:$e.lazy(()=>__webpack_require__.e(547).then(__webpack_require__.bind(__webpack_require__,60649))),323:$e.lazy(()=>__webpack_require__.e(9788).then(__webpack_require__.bind(__webpack_require__,2258))),324:$e.lazy(()=>__webpack_require__.e(576).then(__webpack_require__.bind(__webpack_require__,89987))),325:$e.lazy(()=>__webpack_require__.e(7260).then(__webpack_require__.bind(__webpack_require__,3824))),326:$e.lazy(()=>__webpack_require__.e(4520).then(__webpack_require__.bind(__webpack_require__,67829))),327:$e.lazy(()=>__webpack_require__.e(9076).then(__webpack_require__.bind(__webpack_require__,56697))),328:$e.lazy(()=>__webpack_require__.e(4514).then(__webpack_require__.bind(__webpack_require__,61981))),329:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),330:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(928)]).then(__webpack_require__.bind(__webpack_require__,79060))),331:$e.lazy(()=>__webpack_require__.e(1006).then(__webpack_require__.bind(__webpack_require__,13890))),332:$e.lazy(()=>__webpack_require__.e(1006).then(__webpack_require__.bind(__webpack_require__,13890))),333:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),334:$e.lazy(()=>__webpack_require__.e(1939).then(__webpack_require__.bind(__webpack_require__,44521))),335:$e.lazy(()=>__webpack_require__.e(556).then(__webpack_require__.bind(__webpack_require__,17782))),336:$e.lazy(()=>__webpack_require__.e(6434).then(__webpack_require__.bind(__webpack_require__,15088))),337:$e.lazy(()=>__webpack_require__.e(1880).then(__webpack_require__.bind(__webpack_require__,25727))),338:$e.lazy(()=>__webpack_require__.e(8237).then(__webpack_require__.bind(__webpack_require__,80938))),339:$e.lazy(()=>__webpack_require__.e(3447).then(__webpack_require__.bind(__webpack_require__,71913))),340:$e.lazy(()=>__webpack_require__.e(264).then(__webpack_require__.bind(__webpack_require__,8722))),341:$e.lazy(()=>__webpack_require__.e(4259).then(__webpack_require__.bind(__webpack_require__,22307))),342:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),343:$e.lazy(()=>__webpack_require__.e(4078).then(__webpack_require__.bind(__webpack_require__,3543))),344:$e.lazy(()=>__webpack_require__.e(2829).then(__webpack_require__.bind(__webpack_require__,5123))),345:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5359)]).then(__webpack_require__.bind(__webpack_require__,27386))),346:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),347:$e.lazy(()=>__webpack_require__.e(559).then(__webpack_require__.bind(__webpack_require__,39633))),348:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,78001))),349:$e.lazy(()=>__webpack_require__.e(4757).then(__webpack_require__.bind(__webpack_require__,77860))),350:$e.lazy(()=>__webpack_require__.e(1783).then(__webpack_require__.bind(__webpack_require__,64278))),351:$e.lazy(()=>__webpack_require__.e(7477).then(__webpack_require__.bind(__webpack_require__,55008))),352:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,16283))),353:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,16283))),354:$e.lazy(()=>__webpack_require__.e(6796).then(__webpack_require__.bind(__webpack_require__,33207))),355:$e.lazy(()=>__webpack_require__.e(4504).then(__webpack_require__.bind(__webpack_require__,27453))),356:$e.lazy(()=>__webpack_require__.e(7058).then(__webpack_require__.bind(__webpack_require__,28554))),357:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(8447)]).then(__webpack_require__.bind(__webpack_require__,40340))),358:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,98446))),359:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,98446))),360:$e.lazy(()=>__webpack_require__.e(5238).then(__webpack_require__.bind(__webpack_require__,74385))),361:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(4715)]).then(__webpack_require__.bind(__webpack_require__,92322))),362:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(3873)]).then(__webpack_require__.bind(__webpack_require__,2558))),363:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,51970))),364:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,51970))),365:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6265)]).then(__webpack_require__.bind(__webpack_require__,65061))),366:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,19065))),367:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,19065))),368:$e.lazy(()=>__webpack_require__.e(1713).then(__webpack_require__.bind(__webpack_require__,11197))),369:$e.lazy(()=>__webpack_require__.e(5891).then(__webpack_require__.bind(__webpack_require__,56129))),370:$e.lazy(()=>__webpack_require__.e(8398).then(__webpack_require__.bind(__webpack_require__,24809))),371:$e.lazy(()=>__webpack_require__.e(8241).then(__webpack_require__.bind(__webpack_require__,73487))),372:$e.lazy(()=>__webpack_require__.e(2339).then(__webpack_require__.bind(__webpack_require__,78195))),373:$e.lazy(()=>__webpack_require__.e(7589).then(__webpack_require__.bind(__webpack_require__,61210))),374:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,78001))),375:$e.lazy(()=>__webpack_require__.e(5705).then(__webpack_require__.bind(__webpack_require__,75280))),376:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),377:$e.lazy(()=>__webpack_require__.e(559).then(__webpack_require__.bind(__webpack_require__,39633))),378:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,78001))),379:$e.lazy(()=>__webpack_require__.e(4757).then(__webpack_require__.bind(__webpack_require__,77860))),380:$e.lazy(()=>__webpack_require__.e(1783).then(__webpack_require__.bind(__webpack_require__,64278))),381:$e.lazy(()=>__webpack_require__.e(7477).then(__webpack_require__.bind(__webpack_require__,55008))),382:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,16283))),383:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(9677)]).then(__webpack_require__.bind(__webpack_require__,16283))),384:$e.lazy(()=>__webpack_require__.e(6796).then(__webpack_require__.bind(__webpack_require__,33207))),385:$e.lazy(()=>__webpack_require__.e(4504).then(__webpack_require__.bind(__webpack_require__,27453))),386:$e.lazy(()=>__webpack_require__.e(7058).then(__webpack_require__.bind(__webpack_require__,28554))),387:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(8447)]).then(__webpack_require__.bind(__webpack_require__,40340))),388:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,98446))),389:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(1045)]).then(__webpack_require__.bind(__webpack_require__,98446))),390:$e.lazy(()=>__webpack_require__.e(5238).then(__webpack_require__.bind(__webpack_require__,74385))),391:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(4715)]).then(__webpack_require__.bind(__webpack_require__,92322))),392:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(3873)]).then(__webpack_require__.bind(__webpack_require__,2558))),393:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,51970))),394:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6069)]).then(__webpack_require__.bind(__webpack_require__,51970))),395:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6265)]).then(__webpack_require__.bind(__webpack_require__,65061))),396:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,19065))),397:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(8563)]).then(__webpack_require__.bind(__webpack_require__,19065))),398:$e.lazy(()=>__webpack_require__.e(1713).then(__webpack_require__.bind(__webpack_require__,11197))),399:$e.lazy(()=>__webpack_require__.e(5891).then(__webpack_require__.bind(__webpack_require__,56129))),400:$e.lazy(()=>__webpack_require__.e(8398).then(__webpack_require__.bind(__webpack_require__,24809))),401:$e.lazy(()=>__webpack_require__.e(8241).then(__webpack_require__.bind(__webpack_require__,73487))),402:$e.lazy(()=>__webpack_require__.e(2339).then(__webpack_require__.bind(__webpack_require__,78195))),403:$e.lazy(()=>__webpack_require__.e(7589).then(__webpack_require__.bind(__webpack_require__,61210))),404:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(3747)]).then(__webpack_require__.bind(__webpack_require__,78001))),405:$e.lazy(()=>__webpack_require__.e(5705).then(__webpack_require__.bind(__webpack_require__,75280))),406:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),407:$e.lazy(()=>__webpack_require__.e(4766).then(__webpack_require__.bind(__webpack_require__,54924))),408:$e.lazy(()=>__webpack_require__.e(7560).then(__webpack_require__.bind(__webpack_require__,50100))),409:$e.lazy(()=>__webpack_require__.e(6029).then(__webpack_require__.bind(__webpack_require__,21374))),410:$e.lazy(()=>__webpack_require__.e(5179).then(__webpack_require__.bind(__webpack_require__,35724))),411:$e.lazy(()=>__webpack_require__.e(4621).then(__webpack_require__.bind(__webpack_require__,91549))),412:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),413:$e.lazy(()=>__webpack_require__.e(1831).then(__webpack_require__.bind(__webpack_require__,17248))),414:$e.lazy(()=>__webpack_require__.e(2539).then(__webpack_require__.bind(__webpack_require__,19189))),415:$e.lazy(()=>__webpack_require__.e(8143).then(__webpack_require__.bind(__webpack_require__,84935))),416:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5624)]).then(__webpack_require__.bind(__webpack_require__,11596))),417:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(1461)]).then(__webpack_require__.bind(__webpack_require__,15160))),418:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(4492)]).then(__webpack_require__.bind(__webpack_require__,2445))),419:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(9416)]).then(__webpack_require__.bind(__webpack_require__,66525))),420:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,77670))),421:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,77670))),422:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,77670))),423:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,77670))),424:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(2443)]).then(__webpack_require__.bind(__webpack_require__,77670))),425:$e.lazy(()=>__webpack_require__.e(5022).then(__webpack_require__.bind(__webpack_require__,53925))),426:$e.lazy(()=>__webpack_require__.e(6063).then(__webpack_require__.bind(__webpack_require__,39868))),427:$e.lazy(()=>__webpack_require__.e(6063).then(__webpack_require__.bind(__webpack_require__,39868))),428:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(7545)]).then(__webpack_require__.bind(__webpack_require__,23746))),429:$e.lazy(()=>__webpack_require__.e(1253).then(__webpack_require__.bind(__webpack_require__,31088))),430:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),431:$e.lazy(()=>__webpack_require__.e(2216).then(__webpack_require__.bind(__webpack_require__,54516))),432:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5382)]).then(__webpack_require__.bind(__webpack_require__,47856))),433:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),434:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6411),__webpack_require__.e(8823)]).then(__webpack_require__.bind(__webpack_require__,7780))),435:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5915)]).then(__webpack_require__.bind(__webpack_require__,11983))),436:$e.lazy(()=>__webpack_require__.e(1077).then(__webpack_require__.bind(__webpack_require__,69980))),437:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),438:$e.lazy(()=>__webpack_require__.e(570).then(__webpack_require__.bind(__webpack_require__,95074))),439:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),440:$e.lazy(()=>__webpack_require__.e(8365).then(__webpack_require__.bind(__webpack_require__,7318))),441:$e.lazy(()=>__webpack_require__.e(6788).then(__webpack_require__.bind(__webpack_require__,38470))),442:$e.lazy(()=>__webpack_require__.e(4058).then(__webpack_require__.bind(__webpack_require__,14713))),443:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),444:$e.lazy(()=>__webpack_require__.e(4056).then(__webpack_require__.bind(__webpack_require__,94417))),445:$e.lazy(()=>__webpack_require__.e(9487).then(__webpack_require__.bind(__webpack_require__,58059))),446:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),447:$e.lazy(()=>__webpack_require__.e(532).then(__webpack_require__.bind(__webpack_require__,7006))),448:$e.lazy(()=>__webpack_require__.e(7178).then(__webpack_require__.bind(__webpack_require__,35107))),449:$e.lazy(()=>__webpack_require__.e(1660).then(__webpack_require__.bind(__webpack_require__,98035))),450:$e.lazy(()=>__webpack_require__.e(7333).then(__webpack_require__.bind(__webpack_require__,38934))),451:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4227)]).then(__webpack_require__.bind(__webpack_require__,41345))),452:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(8155)]).then(__webpack_require__.bind(__webpack_require__,20010))),453:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5186)]).then(__webpack_require__.bind(__webpack_require__,35687))),454:$e.lazy(()=>__webpack_require__.e(5786).then(__webpack_require__.bind(__webpack_require__,22779))),455:$e.lazy(()=>__webpack_require__.e(9366).then(__webpack_require__.bind(__webpack_require__,29985))),456:$e.lazy(()=>__webpack_require__.e(5972).then(__webpack_require__.bind(__webpack_require__,41888))),457:$e.lazy(()=>__webpack_require__.e(9366).then(__webpack_require__.bind(__webpack_require__,29985))),458:$e.lazy(()=>__webpack_require__.e(1470).then(__webpack_require__.bind(__webpack_require__,54120))),459:$e.lazy(()=>__webpack_require__.e(7182).then(__webpack_require__.bind(__webpack_require__,34358))),460:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),461:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(2476)]).then(__webpack_require__.bind(__webpack_require__,28344))),462:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),463:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5729)]).then(__webpack_require__.bind(__webpack_require__,2672))),464:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),465:$e.lazy(()=>__webpack_require__.e(6444).then(__webpack_require__.bind(__webpack_require__,52449))),466:$e.lazy(()=>__webpack_require__.e(5111).then(__webpack_require__.bind(__webpack_require__,81069))),467:$e.lazy(()=>__webpack_require__.e(2307).then(__webpack_require__.bind(__webpack_require__,10259))),468:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(7224)]).then(__webpack_require__.bind(__webpack_require__,62596))),469:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(5823)]).then(__webpack_require__.bind(__webpack_require__,57904))),470:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(4944)]).then(__webpack_require__.bind(__webpack_require__,95958))),471:$e.lazy(()=>__webpack_require__.e(7062).then(__webpack_require__.bind(__webpack_require__,70140))),472:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(3667),__webpack_require__.e(8866)]).then(__webpack_require__.bind(__webpack_require__,922))),473:$e.lazy(()=>__webpack_require__.e(2300).then(__webpack_require__.bind(__webpack_require__,37670))),474:$e.lazy(()=>__webpack_require__.e(2501).then(__webpack_require__.bind(__webpack_require__,30402))),475:$e.lazy(()=>__webpack_require__.e(3212).then(__webpack_require__.bind(__webpack_require__,33932))),476:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6904)]).then(__webpack_require__.bind(__webpack_require__,5607))),477:$e.lazy(()=>__webpack_require__.e(1855).then(__webpack_require__.bind(__webpack_require__,47730))),478:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(6904)]).then(__webpack_require__.bind(__webpack_require__,5607))),479:$e.lazy(()=>__webpack_require__.e(1276).then(__webpack_require__.bind(__webpack_require__,6332))),480:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,51230))),481:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(5816)]).then(__webpack_require__.bind(__webpack_require__,51230))),482:$e.lazy(()=>__webpack_require__.e(3784).then(__webpack_require__.bind(__webpack_require__,864))),483:$e.lazy(()=>__webpack_require__.e(3862).then(__webpack_require__.bind(__webpack_require__,76606))),484:$e.lazy(()=>__webpack_require__.e(4565).then(__webpack_require__.bind(__webpack_require__,50460))),485:$e.lazy(()=>__webpack_require__.e(6531).then(__webpack_require__.bind(__webpack_require__,11123))),486:$e.lazy(()=>__webpack_require__.e(6170).then(__webpack_require__.bind(__webpack_require__,2108))),487:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,27768))),488:$e.lazy(()=>__webpack_require__.e(1836).then(__webpack_require__.bind(__webpack_require__,48087))),489:$e.lazy(()=>Promise.all([__webpack_require__.e(6411),__webpack_require__.e(1802),__webpack_require__.e(8435)]).then(__webpack_require__.bind(__webpack_require__,15802))),490:$e.lazy(()=>__webpack_require__.e(3509).then(__webpack_require__.bind(__webpack_require__,52557))),491:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,27768))),492:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(4496)]).then(__webpack_require__.bind(__webpack_require__,27768))),493:$e.lazy(()=>__webpack_require__.e(6034).then(__webpack_require__.bind(__webpack_require__,66295))),494:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(8999)]).then(__webpack_require__.bind(__webpack_require__,59936))),495:$e.lazy(()=>__webpack_require__.e(3910).then(__webpack_require__.bind(__webpack_require__,31613))),496:$e.lazy(()=>Promise.all([__webpack_require__.e(410),__webpack_require__.e(67)]).then(__webpack_require__.bind(__webpack_require__,24330))),497:$e.lazy(()=>__webpack_require__.e(6531).then(__webpack_require__.bind(__webpack_require__,11123))),"@@/global-layout":$e.lazy(()=>__webpack_require__.e(1717).then(__webpack_require__.bind(__webpack_require__,49524)))}}})}var P=__webpack_require__(49865),O=__webpack_require__(29199),L=__webpack_require__(71418),ve=__webpack_require__(5420),ke=()=>$e.createElement(L.Z,{size:"middle",className:ve.Z.loading}),dn=__webpack_require__(6075),Pn=__webpack_require__(66649),hn=__webpack_require__.n(Pn),Bi=__webpack_require__(91392),cs=__webpack_require__.n(Bi),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(ks){la(ks)}},ya=ca=>{try{Ds(Xi.throw(ca))}catch(ks){la(ks)}},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.26"})})()})();